configure 401 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531153215331534153515361537153815391540154115421543154415451546154715481549155015511552155315541555155615571558155915601561156215631564156515661567156815691570157115721573157415751576157715781579158015811582158315841585158615871588158915901591159215931594159515961597159815991600160116021603160416051606160716081609161016111612161316141615161616171618161916201621162216231624162516261627162816291630163116321633163416351636163716381639164016411642164316441645164616471648164916501651165216531654165516561657165816591660166116621663166416651666166716681669167016711672167316741675167616771678167916801681168216831684168516861687168816891690169116921693169416951696169716981699170017011702170317041705170617071708170917101711171217131714171517161717171817191720172117221723172417251726172717281729173017311732173317341735173617371738173917401741174217431744174517461747174817491750175117521753175417551756175717581759176017611762176317641765176617671768176917701771177217731774177517761777177817791780178117821783178417851786178717881789179017911792179317941795179617971798179918001801180218031804180518061807180818091810181118121813181418151816181718181819182018211822182318241825182618271828182918301831183218331834183518361837183818391840184118421843184418451846184718481849185018511852185318541855185618571858185918601861186218631864186518661867186818691870187118721873187418751876187718781879188018811882188318841885188618871888188918901891189218931894189518961897189818991900190119021903190419051906190719081909191019111912191319141915191619171918191919201921192219231924192519261927192819291930193119321933193419351936193719381939194019411942194319441945194619471948194919501951195219531954195519561957195819591960196119621963196419651966196719681969197019711972197319741975197619771978197919801981198219831984198519861987198819891990199119921993199419951996199719981999200020012002200320042005200620072008200920102011201220132014201520162017201820192020202120222023202420252026202720282029203020312032203320342035203620372038203920402041204220432044204520462047204820492050205120522053205420552056205720582059206020612062206320642065206620672068206920702071207220732074207520762077207820792080208120822083208420852086208720882089209020912092209320942095209620972098209921002101210221032104210521062107210821092110211121122113211421152116211721182119212021212122212321242125212621272128212921302131213221332134213521362137213821392140214121422143214421452146214721482149215021512152215321542155215621572158215921602161216221632164216521662167216821692170217121722173217421752176217721782179218021812182218321842185218621872188218921902191219221932194219521962197219821992200220122022203220422052206220722082209221022112212221322142215221622172218221922202221222222232224222522262227222822292230223122322233223422352236223722382239224022412242224322442245224622472248224922502251225222532254225522562257225822592260226122622263226422652266226722682269227022712272227322742275227622772278227922802281228222832284228522862287228822892290229122922293229422952296229722982299230023012302230323042305230623072308230923102311231223132314231523162317231823192320232123222323232423252326232723282329233023312332233323342335233623372338233923402341234223432344234523462347234823492350235123522353235423552356235723582359236023612362236323642365236623672368236923702371237223732374237523762377237823792380238123822383238423852386238723882389239023912392239323942395239623972398239924002401240224032404240524062407240824092410241124122413241424152416241724182419242024212422242324242425242624272428242924302431243224332434243524362437243824392440244124422443244424452446244724482449245024512452245324542455245624572458245924602461246224632464246524662467246824692470247124722473247424752476247724782479248024812482248324842485248624872488248924902491249224932494249524962497249824992500250125022503250425052506250725082509251025112512251325142515251625172518251925202521252225232524252525262527252825292530253125322533253425352536253725382539254025412542254325442545254625472548254925502551255225532554255525562557255825592560256125622563256425652566256725682569257025712572257325742575257625772578257925802581258225832584258525862587258825892590259125922593259425952596259725982599260026012602260326042605260626072608260926102611261226132614261526162617261826192620262126222623262426252626262726282629263026312632263326342635263626372638263926402641264226432644264526462647264826492650265126522653265426552656265726582659266026612662266326642665266626672668266926702671267226732674267526762677267826792680268126822683268426852686268726882689269026912692269326942695269626972698269927002701270227032704270527062707270827092710271127122713271427152716271727182719272027212722272327242725272627272728272927302731273227332734273527362737273827392740274127422743274427452746274727482749275027512752275327542755275627572758275927602761276227632764276527662767276827692770277127722773277427752776277727782779278027812782278327842785278627872788278927902791279227932794279527962797279827992800280128022803280428052806280728082809281028112812281328142815281628172818281928202821282228232824282528262827282828292830283128322833283428352836283728382839284028412842284328442845284628472848284928502851285228532854285528562857285828592860286128622863286428652866286728682869287028712872287328742875287628772878287928802881288228832884288528862887288828892890289128922893289428952896289728982899290029012902290329042905290629072908290929102911291229132914291529162917291829192920292129222923292429252926292729282929293029312932293329342935293629372938293929402941294229432944294529462947294829492950295129522953295429552956295729582959296029612962296329642965296629672968296929702971297229732974297529762977297829792980298129822983298429852986298729882989299029912992299329942995299629972998299930003001300230033004300530063007300830093010301130123013301430153016301730183019302030213022302330243025302630273028302930303031303230333034303530363037303830393040304130423043304430453046304730483049305030513052305330543055305630573058305930603061306230633064306530663067306830693070307130723073307430753076307730783079308030813082308330843085308630873088308930903091309230933094309530963097309830993100310131023103310431053106310731083109311031113112311331143115311631173118311931203121312231233124312531263127312831293130313131323133313431353136313731383139314031413142314331443145314631473148314931503151315231533154315531563157315831593160316131623163316431653166316731683169317031713172317331743175317631773178317931803181318231833184318531863187318831893190319131923193319431953196319731983199320032013202320332043205320632073208320932103211321232133214321532163217321832193220322132223223322432253226322732283229323032313232323332343235323632373238323932403241324232433244324532463247324832493250325132523253325432553256325732583259326032613262326332643265326632673268326932703271327232733274327532763277327832793280328132823283328432853286328732883289329032913292329332943295329632973298329933003301330233033304330533063307330833093310331133123313331433153316331733183319332033213322332333243325332633273328332933303331333233333334333533363337333833393340334133423343334433453346334733483349335033513352335333543355335633573358335933603361336233633364336533663367336833693370337133723373337433753376337733783379338033813382338333843385338633873388338933903391339233933394339533963397339833993400340134023403340434053406340734083409341034113412341334143415341634173418341934203421342234233424342534263427342834293430343134323433343434353436343734383439344034413442344334443445344634473448344934503451345234533454345534563457345834593460346134623463346434653466346734683469347034713472347334743475347634773478347934803481348234833484348534863487348834893490349134923493349434953496349734983499350035013502350335043505350635073508350935103511351235133514351535163517351835193520352135223523352435253526352735283529353035313532353335343535353635373538353935403541354235433544354535463547354835493550355135523553355435553556355735583559356035613562356335643565356635673568356935703571357235733574357535763577357835793580358135823583358435853586358735883589359035913592359335943595359635973598359936003601360236033604360536063607360836093610361136123613361436153616361736183619362036213622362336243625362636273628362936303631363236333634363536363637363836393640364136423643364436453646364736483649365036513652365336543655365636573658365936603661366236633664366536663667366836693670367136723673367436753676367736783679368036813682368336843685368636873688368936903691369236933694369536963697369836993700370137023703370437053706370737083709371037113712371337143715371637173718371937203721372237233724372537263727372837293730373137323733373437353736373737383739374037413742374337443745374637473748374937503751375237533754375537563757375837593760376137623763376437653766376737683769377037713772377337743775377637773778377937803781378237833784378537863787378837893790379137923793379437953796379737983799380038013802380338043805380638073808380938103811381238133814381538163817381838193820382138223823382438253826382738283829383038313832383338343835383638373838383938403841384238433844384538463847384838493850385138523853385438553856385738583859386038613862386338643865386638673868386938703871387238733874387538763877387838793880388138823883388438853886388738883889389038913892389338943895389638973898389939003901390239033904390539063907390839093910391139123913391439153916391739183919392039213922392339243925392639273928392939303931393239333934393539363937393839393940394139423943394439453946394739483949395039513952395339543955395639573958395939603961396239633964396539663967396839693970397139723973397439753976397739783979398039813982398339843985398639873988398939903991399239933994399539963997399839994000400140024003400440054006400740084009401040114012401340144015401640174018401940204021402240234024402540264027402840294030403140324033403440354036403740384039404040414042404340444045404640474048404940504051405240534054405540564057405840594060406140624063406440654066406740684069407040714072407340744075407640774078407940804081408240834084408540864087408840894090409140924093409440954096409740984099410041014102410341044105410641074108410941104111411241134114411541164117411841194120412141224123412441254126412741284129413041314132413341344135413641374138413941404141414241434144414541464147414841494150415141524153415441554156415741584159416041614162416341644165416641674168416941704171417241734174417541764177417841794180418141824183418441854186418741884189419041914192419341944195419641974198419942004201420242034204420542064207420842094210421142124213421442154216421742184219422042214222422342244225422642274228422942304231423242334234423542364237423842394240424142424243424442454246424742484249425042514252425342544255425642574258425942604261426242634264426542664267426842694270427142724273427442754276427742784279428042814282428342844285428642874288428942904291429242934294429542964297429842994300430143024303430443054306430743084309431043114312431343144315431643174318431943204321432243234324432543264327432843294330433143324333433443354336433743384339434043414342434343444345434643474348434943504351435243534354435543564357435843594360436143624363436443654366436743684369437043714372437343744375437643774378437943804381438243834384438543864387438843894390439143924393439443954396439743984399440044014402440344044405440644074408440944104411441244134414441544164417441844194420442144224423442444254426442744284429443044314432443344344435443644374438443944404441444244434444444544464447444844494450445144524453445444554456445744584459446044614462446344644465446644674468446944704471447244734474447544764477447844794480448144824483448444854486448744884489449044914492449344944495449644974498449945004501450245034504450545064507450845094510451145124513451445154516451745184519452045214522452345244525452645274528452945304531453245334534453545364537453845394540454145424543454445454546454745484549455045514552455345544555455645574558455945604561456245634564456545664567456845694570457145724573457445754576457745784579458045814582458345844585458645874588458945904591459245934594459545964597459845994600460146024603460446054606460746084609461046114612461346144615461646174618461946204621462246234624462546264627462846294630463146324633463446354636463746384639464046414642464346444645464646474648464946504651465246534654465546564657465846594660466146624663466446654666466746684669467046714672467346744675467646774678467946804681468246834684468546864687468846894690469146924693469446954696469746984699470047014702470347044705470647074708470947104711471247134714471547164717471847194720472147224723472447254726472747284729473047314732473347344735473647374738473947404741474247434744474547464747474847494750475147524753475447554756475747584759476047614762476347644765476647674768476947704771477247734774477547764777477847794780478147824783478447854786478747884789479047914792479347944795479647974798479948004801480248034804480548064807480848094810481148124813481448154816481748184819482048214822482348244825482648274828482948304831483248334834483548364837483848394840484148424843484448454846484748484849485048514852485348544855485648574858485948604861486248634864486548664867486848694870487148724873487448754876487748784879488048814882488348844885488648874888488948904891489248934894489548964897489848994900490149024903490449054906490749084909491049114912491349144915491649174918491949204921492249234924492549264927492849294930493149324933493449354936493749384939494049414942494349444945494649474948494949504951495249534954495549564957495849594960496149624963496449654966496749684969497049714972497349744975497649774978497949804981498249834984498549864987498849894990499149924993499449954996499749984999500050015002500350045005500650075008500950105011501250135014501550165017501850195020502150225023502450255026502750285029503050315032503350345035503650375038503950405041504250435044504550465047504850495050505150525053505450555056505750585059506050615062506350645065506650675068506950705071507250735074507550765077507850795080508150825083508450855086508750885089509050915092509350945095509650975098509951005101510251035104510551065107510851095110511151125113511451155116511751185119512051215122512351245125512651275128512951305131513251335134513551365137513851395140514151425143514451455146514751485149515051515152515351545155515651575158515951605161516251635164516551665167516851695170517151725173517451755176517751785179518051815182518351845185518651875188518951905191519251935194519551965197519851995200520152025203520452055206520752085209521052115212521352145215521652175218521952205221522252235224522552265227522852295230523152325233523452355236523752385239524052415242524352445245524652475248524952505251525252535254525552565257525852595260526152625263526452655266526752685269527052715272527352745275527652775278527952805281528252835284528552865287528852895290529152925293529452955296529752985299530053015302530353045305530653075308530953105311531253135314531553165317531853195320532153225323532453255326532753285329533053315332533353345335533653375338533953405341534253435344534553465347534853495350535153525353535453555356535753585359536053615362536353645365536653675368536953705371537253735374537553765377537853795380538153825383538453855386538753885389539053915392539353945395539653975398539954005401540254035404540554065407540854095410541154125413541454155416541754185419542054215422542354245425542654275428542954305431543254335434543554365437543854395440544154425443544454455446544754485449545054515452545354545455545654575458545954605461546254635464546554665467546854695470547154725473547454755476547754785479548054815482548354845485548654875488548954905491549254935494549554965497549854995500550155025503550455055506550755085509551055115512551355145515551655175518551955205521552255235524552555265527552855295530553155325533553455355536553755385539554055415542554355445545554655475548554955505551555255535554555555565557555855595560556155625563556455655566556755685569557055715572557355745575557655775578557955805581558255835584558555865587558855895590559155925593559455955596559755985599560056015602560356045605560656075608560956105611561256135614561556165617561856195620562156225623562456255626562756285629563056315632563356345635563656375638563956405641564256435644564556465647564856495650565156525653565456555656565756585659566056615662566356645665566656675668566956705671567256735674567556765677567856795680568156825683568456855686568756885689569056915692569356945695569656975698569957005701570257035704570557065707570857095710571157125713571457155716571757185719572057215722572357245725572657275728572957305731573257335734573557365737573857395740574157425743574457455746574757485749575057515752575357545755575657575758575957605761576257635764576557665767576857695770577157725773577457755776577757785779578057815782578357845785578657875788578957905791579257935794579557965797579857995800580158025803580458055806580758085809581058115812581358145815581658175818581958205821582258235824582558265827582858295830583158325833583458355836583758385839584058415842584358445845584658475848584958505851585258535854585558565857585858595860586158625863586458655866586758685869587058715872587358745875587658775878587958805881588258835884588558865887588858895890589158925893589458955896589758985899590059015902590359045905590659075908590959105911591259135914591559165917591859195920592159225923592459255926592759285929593059315932593359345935593659375938593959405941594259435944594559465947594859495950595159525953595459555956595759585959596059615962596359645965596659675968596959705971597259735974597559765977597859795980598159825983598459855986598759885989599059915992599359945995599659975998599960006001600260036004600560066007600860096010601160126013601460156016601760186019602060216022602360246025602660276028602960306031603260336034603560366037603860396040604160426043604460456046604760486049605060516052605360546055605660576058605960606061606260636064606560666067606860696070607160726073607460756076607760786079608060816082608360846085608660876088608960906091609260936094609560966097609860996100610161026103610461056106610761086109611061116112611361146115611661176118611961206121612261236124612561266127612861296130613161326133613461356136613761386139614061416142614361446145614661476148614961506151615261536154615561566157615861596160616161626163616461656166616761686169617061716172617361746175617661776178617961806181618261836184618561866187618861896190619161926193619461956196619761986199620062016202620362046205620662076208620962106211621262136214621562166217621862196220622162226223622462256226622762286229623062316232623362346235623662376238623962406241624262436244624562466247624862496250625162526253625462556256625762586259626062616262626362646265626662676268626962706271627262736274627562766277627862796280628162826283628462856286628762886289629062916292629362946295629662976298629963006301630263036304630563066307630863096310631163126313631463156316631763186319632063216322632363246325632663276328632963306331633263336334633563366337633863396340634163426343634463456346634763486349635063516352635363546355635663576358635963606361636263636364636563666367636863696370637163726373637463756376637763786379638063816382638363846385638663876388638963906391639263936394639563966397639863996400640164026403640464056406640764086409641064116412641364146415641664176418641964206421642264236424642564266427642864296430643164326433643464356436643764386439644064416442644364446445644664476448644964506451645264536454645564566457645864596460646164626463646464656466646764686469647064716472647364746475647664776478647964806481648264836484648564866487648864896490649164926493649464956496649764986499650065016502650365046505650665076508650965106511651265136514651565166517651865196520652165226523652465256526652765286529653065316532653365346535653665376538653965406541654265436544654565466547654865496550655165526553655465556556655765586559656065616562656365646565656665676568656965706571657265736574657565766577657865796580658165826583658465856586658765886589659065916592659365946595659665976598659966006601660266036604660566066607660866096610661166126613661466156616661766186619662066216622662366246625662666276628662966306631663266336634663566366637663866396640664166426643664466456646664766486649665066516652665366546655665666576658665966606661666266636664666566666667666866696670667166726673667466756676667766786679668066816682668366846685668666876688668966906691669266936694669566966697669866996700670167026703670467056706670767086709671067116712671367146715671667176718671967206721672267236724672567266727672867296730673167326733673467356736673767386739674067416742674367446745674667476748674967506751675267536754675567566757675867596760676167626763676467656766676767686769677067716772677367746775677667776778677967806781678267836784678567866787678867896790679167926793679467956796679767986799680068016802680368046805680668076808680968106811681268136814681568166817681868196820682168226823682468256826682768286829683068316832683368346835683668376838683968406841684268436844684568466847684868496850685168526853685468556856685768586859686068616862686368646865686668676868686968706871687268736874687568766877687868796880688168826883688468856886688768886889689068916892689368946895689668976898689969006901690269036904690569066907690869096910691169126913691469156916691769186919692069216922692369246925692669276928692969306931693269336934693569366937693869396940694169426943694469456946694769486949695069516952695369546955695669576958695969606961696269636964696569666967696869696970697169726973697469756976697769786979698069816982698369846985698669876988698969906991699269936994699569966997699869997000700170027003700470057006700770087009701070117012701370147015701670177018701970207021702270237024702570267027702870297030703170327033703470357036703770387039704070417042704370447045704670477048704970507051705270537054705570567057705870597060706170627063706470657066706770687069707070717072707370747075707670777078707970807081708270837084708570867087708870897090709170927093709470957096709770987099710071017102710371047105710671077108710971107111711271137114711571167117711871197120712171227123712471257126712771287129713071317132713371347135713671377138713971407141714271437144714571467147714871497150715171527153715471557156715771587159716071617162716371647165716671677168716971707171717271737174717571767177717871797180718171827183718471857186718771887189719071917192719371947195719671977198719972007201720272037204720572067207720872097210721172127213721472157216721772187219722072217222722372247225722672277228722972307231723272337234723572367237723872397240724172427243724472457246724772487249725072517252725372547255725672577258725972607261726272637264726572667267726872697270727172727273727472757276727772787279728072817282728372847285728672877288728972907291729272937294729572967297729872997300730173027303730473057306730773087309731073117312731373147315731673177318731973207321732273237324732573267327732873297330733173327333733473357336733773387339734073417342734373447345734673477348734973507351735273537354735573567357735873597360736173627363736473657366736773687369737073717372737373747375737673777378737973807381738273837384738573867387738873897390739173927393739473957396739773987399740074017402740374047405740674077408740974107411741274137414741574167417741874197420742174227423742474257426742774287429743074317432743374347435743674377438743974407441744274437444744574467447744874497450745174527453745474557456745774587459746074617462746374647465746674677468746974707471747274737474747574767477747874797480748174827483748474857486748774887489749074917492749374947495749674977498749975007501750275037504750575067507750875097510751175127513751475157516751775187519752075217522752375247525752675277528752975307531753275337534753575367537753875397540754175427543754475457546754775487549755075517552755375547555755675577558755975607561756275637564756575667567756875697570757175727573757475757576757775787579758075817582758375847585758675877588758975907591759275937594759575967597759875997600760176027603760476057606760776087609761076117612761376147615761676177618761976207621762276237624762576267627762876297630763176327633763476357636763776387639764076417642764376447645764676477648764976507651765276537654765576567657765876597660766176627663766476657666766776687669767076717672767376747675767676777678767976807681768276837684768576867687768876897690769176927693769476957696769776987699770077017702770377047705770677077708770977107711771277137714771577167717771877197720772177227723772477257726772777287729773077317732773377347735773677377738773977407741774277437744774577467747774877497750775177527753775477557756775777587759776077617762776377647765776677677768776977707771777277737774777577767777777877797780778177827783778477857786778777887789779077917792779377947795779677977798779978007801780278037804780578067807780878097810781178127813781478157816781778187819782078217822782378247825782678277828782978307831783278337834783578367837783878397840784178427843784478457846784778487849785078517852785378547855785678577858785978607861786278637864786578667867786878697870787178727873787478757876787778787879788078817882788378847885788678877888788978907891789278937894789578967897789878997900790179027903790479057906790779087909791079117912791379147915791679177918791979207921792279237924792579267927792879297930793179327933793479357936793779387939794079417942794379447945794679477948794979507951795279537954795579567957795879597960796179627963796479657966796779687969797079717972797379747975797679777978797979807981798279837984798579867987798879897990799179927993799479957996799779987999800080018002800380048005800680078008800980108011801280138014801580168017801880198020802180228023802480258026802780288029803080318032803380348035803680378038803980408041804280438044804580468047804880498050805180528053805480558056805780588059806080618062806380648065806680678068806980708071807280738074807580768077807880798080808180828083808480858086808780888089809080918092809380948095809680978098809981008101810281038104810581068107810881098110811181128113811481158116811781188119812081218122812381248125812681278128812981308131813281338134813581368137813881398140814181428143814481458146814781488149815081518152815381548155815681578158815981608161816281638164816581668167816881698170817181728173817481758176817781788179818081818182818381848185818681878188818981908191819281938194819581968197819881998200820182028203820482058206820782088209821082118212821382148215821682178218821982208221822282238224822582268227822882298230823182328233823482358236823782388239824082418242824382448245824682478248824982508251825282538254825582568257825882598260826182628263826482658266826782688269827082718272827382748275827682778278827982808281828282838284828582868287828882898290829182928293829482958296829782988299830083018302830383048305830683078308830983108311831283138314831583168317831883198320832183228323832483258326832783288329833083318332833383348335833683378338833983408341834283438344834583468347834883498350835183528353835483558356835783588359836083618362836383648365836683678368836983708371837283738374837583768377837883798380838183828383838483858386838783888389839083918392839383948395839683978398839984008401840284038404840584068407840884098410841184128413841484158416841784188419842084218422842384248425842684278428842984308431843284338434843584368437843884398440844184428443844484458446844784488449845084518452845384548455845684578458845984608461846284638464846584668467846884698470847184728473847484758476847784788479848084818482848384848485848684878488848984908491849284938494849584968497849884998500850185028503850485058506850785088509851085118512851385148515851685178518851985208521852285238524852585268527852885298530853185328533853485358536853785388539854085418542854385448545854685478548854985508551855285538554855585568557855885598560856185628563856485658566856785688569857085718572857385748575857685778578857985808581858285838584858585868587858885898590859185928593859485958596859785988599860086018602860386048605860686078608860986108611861286138614861586168617861886198620862186228623862486258626862786288629863086318632863386348635863686378638863986408641864286438644864586468647864886498650865186528653865486558656865786588659866086618662866386648665866686678668866986708671867286738674867586768677867886798680868186828683868486858686868786888689869086918692869386948695869686978698869987008701870287038704870587068707870887098710871187128713871487158716871787188719872087218722872387248725872687278728872987308731873287338734873587368737873887398740874187428743874487458746874787488749875087518752875387548755875687578758875987608761876287638764876587668767876887698770877187728773877487758776877787788779878087818782878387848785878687878788878987908791879287938794879587968797879887998800880188028803880488058806880788088809881088118812881388148815881688178818881988208821882288238824882588268827882888298830883188328833883488358836883788388839884088418842884388448845884688478848884988508851885288538854885588568857885888598860886188628863886488658866886788688869887088718872887388748875887688778878887988808881888288838884888588868887888888898890889188928893889488958896889788988899890089018902890389048905890689078908890989108911891289138914891589168917891889198920892189228923892489258926892789288929893089318932893389348935893689378938893989408941894289438944894589468947894889498950895189528953895489558956895789588959896089618962896389648965896689678968896989708971897289738974897589768977897889798980898189828983898489858986898789888989899089918992899389948995899689978998899990009001900290039004900590069007900890099010901190129013901490159016901790189019902090219022902390249025902690279028902990309031903290339034903590369037903890399040904190429043904490459046904790489049905090519052905390549055905690579058905990609061906290639064906590669067906890699070907190729073907490759076907790789079908090819082908390849085908690879088908990909091909290939094909590969097909890999100910191029103910491059106910791089109911091119112911391149115911691179118911991209121912291239124912591269127912891299130913191329133913491359136913791389139914091419142914391449145914691479148914991509151915291539154915591569157915891599160916191629163916491659166916791689169917091719172917391749175917691779178917991809181918291839184918591869187918891899190919191929193919491959196919791989199920092019202920392049205920692079208920992109211921292139214921592169217921892199220922192229223922492259226922792289229923092319232923392349235923692379238923992409241924292439244924592469247924892499250925192529253925492559256925792589259926092619262926392649265926692679268926992709271927292739274927592769277927892799280928192829283928492859286928792889289929092919292929392949295929692979298929993009301930293039304930593069307930893099310931193129313931493159316931793189319932093219322932393249325932693279328932993309331933293339334933593369337933893399340934193429343934493459346934793489349935093519352935393549355935693579358935993609361936293639364936593669367936893699370937193729373937493759376937793789379938093819382938393849385938693879388938993909391939293939394939593969397939893999400940194029403940494059406940794089409941094119412941394149415941694179418941994209421942294239424942594269427942894299430943194329433943494359436943794389439944094419442944394449445944694479448944994509451945294539454945594569457945894599460946194629463946494659466946794689469947094719472947394749475947694779478947994809481948294839484948594869487948894899490949194929493949494959496949794989499950095019502950395049505950695079508950995109511951295139514951595169517951895199520952195229523952495259526952795289529953095319532953395349535953695379538953995409541954295439544954595469547954895499550955195529553955495559556955795589559956095619562956395649565956695679568956995709571957295739574957595769577957895799580958195829583958495859586958795889589959095919592959395949595959695979598959996009601960296039604960596069607960896099610961196129613961496159616961796189619962096219622962396249625962696279628962996309631963296339634963596369637963896399640964196429643964496459646964796489649965096519652965396549655965696579658965996609661966296639664966596669667966896699670967196729673967496759676967796789679968096819682968396849685968696879688968996909691969296939694969596969697969896999700970197029703970497059706970797089709971097119712971397149715971697179718971997209721972297239724972597269727972897299730973197329733973497359736973797389739974097419742974397449745974697479748974997509751975297539754975597569757975897599760976197629763976497659766976797689769977097719772977397749775977697779778977997809781978297839784978597869787978897899790979197929793979497959796979797989799980098019802980398049805980698079808980998109811981298139814981598169817981898199820982198229823982498259826982798289829983098319832983398349835983698379838983998409841984298439844984598469847984898499850985198529853985498559856985798589859986098619862986398649865986698679868986998709871987298739874987598769877987898799880988198829883988498859886988798889889989098919892989398949895989698979898989999009901990299039904990599069907990899099910991199129913991499159916991799189919992099219922992399249925992699279928992999309931993299339934993599369937993899399940994199429943994499459946994799489949995099519952995399549955995699579958995999609961996299639964996599669967996899699970997199729973997499759976997799789979998099819982998399849985998699879988998999909991999299939994999599969997999899991000010001100021000310004100051000610007100081000910010100111001210013100141001510016100171001810019100201002110022100231002410025100261002710028100291003010031100321003310034100351003610037100381003910040100411004210043100441004510046100471004810049100501005110052100531005410055100561005710058100591006010061100621006310064100651006610067100681006910070100711007210073100741007510076100771007810079100801008110082100831008410085100861008710088100891009010091100921009310094100951009610097100981009910100101011010210103101041010510106101071010810109101101011110112101131011410115101161011710118101191012010121101221012310124101251012610127101281012910130101311013210133101341013510136101371013810139101401014110142101431014410145101461014710148101491015010151101521015310154101551015610157101581015910160101611016210163101641016510166101671016810169101701017110172101731017410175101761017710178101791018010181101821018310184101851018610187101881018910190101911019210193101941019510196101971019810199102001020110202102031020410205102061020710208102091021010211102121021310214102151021610217102181021910220102211022210223102241022510226102271022810229102301023110232102331023410235102361023710238102391024010241102421024310244102451024610247102481024910250102511025210253102541025510256102571025810259102601026110262102631026410265102661026710268102691027010271102721027310274102751027610277102781027910280102811028210283102841028510286102871028810289102901029110292102931029410295102961029710298102991030010301103021030310304103051030610307103081030910310103111031210313103141031510316103171031810319103201032110322103231032410325103261032710328103291033010331103321033310334103351033610337103381033910340103411034210343103441034510346103471034810349103501035110352103531035410355103561035710358103591036010361103621036310364103651036610367103681036910370103711037210373103741037510376103771037810379103801038110382103831038410385103861038710388103891039010391103921039310394103951039610397103981039910400104011040210403104041040510406104071040810409104101041110412104131041410415104161041710418104191042010421104221042310424104251042610427104281042910430104311043210433104341043510436104371043810439104401044110442104431044410445104461044710448104491045010451104521045310454104551045610457104581045910460104611046210463104641046510466104671046810469104701047110472104731047410475104761047710478104791048010481104821048310484104851048610487104881048910490104911049210493104941049510496104971049810499105001050110502105031050410505105061050710508105091051010511105121051310514105151051610517105181051910520105211052210523105241052510526105271052810529105301053110532105331053410535105361053710538105391054010541105421054310544105451054610547105481054910550105511055210553105541055510556105571055810559105601056110562105631056410565105661056710568105691057010571105721057310574105751057610577105781057910580105811058210583105841058510586105871058810589105901059110592105931059410595105961059710598105991060010601106021060310604106051060610607106081060910610106111061210613106141061510616106171061810619106201062110622106231062410625106261062710628106291063010631106321063310634106351063610637106381063910640106411064210643106441064510646106471064810649106501065110652106531065410655106561065710658106591066010661106621066310664106651066610667106681066910670106711067210673106741067510676106771067810679106801068110682106831068410685106861068710688106891069010691106921069310694106951069610697106981069910700107011070210703107041070510706107071070810709107101071110712107131071410715107161071710718107191072010721107221072310724107251072610727107281072910730107311073210733107341073510736107371073810739107401074110742107431074410745107461074710748107491075010751107521075310754107551075610757107581075910760107611076210763107641076510766107671076810769107701077110772107731077410775107761077710778107791078010781107821078310784107851078610787107881078910790107911079210793107941079510796107971079810799108001080110802108031080410805108061080710808108091081010811108121081310814108151081610817108181081910820108211082210823108241082510826108271082810829108301083110832108331083410835108361083710838108391084010841108421084310844108451084610847108481084910850108511085210853108541085510856108571085810859108601086110862108631086410865108661086710868108691087010871108721087310874108751087610877108781087910880108811088210883108841088510886108871088810889108901089110892108931089410895108961089710898108991090010901109021090310904109051090610907109081090910910109111091210913109141091510916109171091810919109201092110922109231092410925109261092710928109291093010931109321093310934109351093610937109381093910940109411094210943109441094510946109471094810949109501095110952109531095410955109561095710958109591096010961109621096310964109651096610967109681096910970109711097210973109741097510976109771097810979109801098110982109831098410985109861098710988109891099010991109921099310994109951099610997109981099911000110011100211003110041100511006110071100811009110101101111012110131101411015110161101711018110191102011021110221102311024110251102611027110281102911030110311103211033110341103511036110371103811039110401104111042110431104411045110461104711048110491105011051110521105311054110551105611057110581105911060110611106211063110641106511066110671106811069110701107111072110731107411075110761107711078110791108011081110821108311084110851108611087110881108911090110911109211093110941109511096110971109811099111001110111102111031110411105111061110711108111091111011111111121111311114111151111611117111181111911120111211112211123111241112511126111271112811129111301113111132111331113411135111361113711138111391114011141111421114311144111451114611147111481114911150111511115211153111541115511156111571115811159111601116111162111631116411165111661116711168111691117011171111721117311174111751117611177111781117911180111811118211183111841118511186111871118811189111901119111192111931119411195111961119711198111991120011201112021120311204112051120611207112081120911210112111121211213112141121511216112171121811219112201122111222112231122411225112261122711228112291123011231112321123311234112351123611237112381123911240112411124211243112441124511246112471124811249112501125111252112531125411255112561125711258112591126011261112621126311264112651126611267112681126911270112711127211273112741127511276112771127811279112801128111282112831128411285112861128711288112891129011291112921129311294112951129611297112981129911300113011130211303113041130511306113071130811309113101131111312113131131411315113161131711318113191132011321113221132311324113251132611327113281132911330113311133211333113341133511336113371133811339113401134111342113431134411345113461134711348113491135011351113521135311354113551135611357113581135911360113611136211363113641136511366113671136811369113701137111372113731137411375113761137711378113791138011381113821138311384113851138611387113881138911390113911139211393113941139511396113971139811399114001140111402114031140411405114061140711408114091141011411114121141311414114151141611417114181141911420114211142211423114241142511426114271142811429114301143111432114331143411435114361143711438114391144011441114421144311444114451144611447114481144911450114511145211453114541145511456114571145811459114601146111462114631146411465114661146711468114691147011471114721147311474114751147611477114781147911480114811148211483114841148511486114871148811489114901149111492114931149411495114961149711498114991150011501115021150311504115051150611507115081150911510115111151211513115141151511516115171151811519115201152111522115231152411525115261152711528115291153011531115321153311534115351153611537115381153911540115411154211543115441154511546115471154811549115501155111552115531155411555115561155711558115591156011561115621156311564115651156611567115681156911570115711157211573115741157511576115771157811579115801158111582115831158411585115861158711588115891159011591115921159311594115951159611597115981159911600116011160211603116041160511606116071160811609116101161111612116131161411615116161161711618116191162011621116221162311624116251162611627116281162911630116311163211633116341163511636116371163811639116401164111642116431164411645116461164711648116491165011651116521165311654116551165611657116581165911660116611166211663116641166511666116671166811669116701167111672116731167411675116761167711678116791168011681116821168311684116851168611687116881168911690116911169211693116941169511696116971169811699117001170111702117031170411705117061170711708117091171011711117121171311714117151171611717117181171911720117211172211723117241172511726117271172811729117301173111732117331173411735117361173711738117391174011741117421174311744117451174611747117481174911750117511175211753117541175511756117571175811759117601176111762117631176411765117661176711768117691177011771117721177311774117751177611777117781177911780117811178211783117841178511786117871178811789117901179111792117931179411795117961179711798117991180011801118021180311804118051180611807118081180911810118111181211813118141181511816118171181811819118201182111822118231182411825118261182711828118291183011831118321183311834118351183611837118381183911840118411184211843118441184511846118471184811849118501185111852118531185411855118561185711858118591186011861118621186311864118651186611867118681186911870118711187211873118741187511876118771187811879118801188111882118831188411885118861188711888118891189011891118921189311894118951189611897118981189911900119011190211903119041190511906119071190811909119101191111912119131191411915119161191711918119191192011921119221192311924119251192611927119281192911930119311193211933119341193511936119371193811939119401194111942119431194411945119461194711948119491195011951119521195311954119551195611957119581195911960119611196211963119641196511966119671196811969119701197111972119731197411975119761197711978119791198011981119821198311984119851198611987119881198911990119911199211993119941199511996119971199811999120001200112002120031200412005120061200712008120091201012011120121201312014120151201612017120181201912020120211202212023120241202512026120271202812029120301203112032120331203412035120361203712038120391204012041120421204312044120451204612047120481204912050120511205212053120541205512056120571205812059120601206112062120631206412065120661206712068120691207012071120721207312074120751207612077120781207912080120811208212083120841208512086120871208812089120901209112092120931209412095120961209712098120991210012101121021210312104121051210612107121081210912110121111211212113121141211512116121171211812119121201212112122121231212412125121261212712128121291213012131121321213312134121351213612137121381213912140121411214212143121441214512146121471214812149121501215112152121531215412155121561215712158121591216012161121621216312164121651216612167121681216912170121711217212173121741217512176121771217812179121801218112182121831218412185121861218712188121891219012191121921219312194121951219612197121981219912200122011220212203122041220512206122071220812209122101221112212122131221412215122161221712218122191222012221122221222312224122251222612227122281222912230122311223212233122341223512236122371223812239122401224112242122431224412245122461224712248122491225012251122521225312254122551225612257122581225912260122611226212263122641226512266122671226812269122701227112272122731227412275122761227712278122791228012281122821228312284122851228612287122881228912290122911229212293122941229512296122971229812299123001230112302123031230412305123061230712308123091231012311123121231312314123151231612317123181231912320123211232212323123241232512326123271232812329123301233112332123331233412335123361233712338123391234012341123421234312344123451234612347123481234912350123511235212353123541235512356123571235812359123601236112362123631236412365123661236712368123691237012371123721237312374123751237612377123781237912380123811238212383123841238512386123871238812389123901239112392123931239412395123961239712398123991240012401124021240312404124051240612407124081240912410124111241212413124141241512416124171241812419124201242112422124231242412425124261242712428124291243012431124321243312434124351243612437124381243912440124411244212443124441244512446124471244812449124501245112452124531245412455124561245712458124591246012461124621246312464124651246612467124681246912470124711247212473124741247512476124771247812479124801248112482124831248412485124861248712488124891249012491124921249312494124951249612497124981249912500125011250212503125041250512506125071250812509125101251112512125131251412515125161251712518125191252012521125221252312524125251252612527125281252912530125311253212533125341253512536125371253812539125401254112542125431254412545125461254712548125491255012551125521255312554125551255612557125581255912560125611256212563125641256512566125671256812569125701257112572125731257412575125761257712578125791258012581125821258312584125851258612587125881258912590125911259212593125941259512596125971259812599126001260112602126031260412605126061260712608126091261012611126121261312614126151261612617126181261912620126211262212623126241262512626126271262812629126301263112632126331263412635126361263712638126391264012641126421264312644126451264612647126481264912650126511265212653126541265512656126571265812659126601266112662126631266412665126661266712668126691267012671126721267312674126751267612677126781267912680126811268212683126841268512686126871268812689126901269112692126931269412695126961269712698126991270012701127021270312704127051270612707127081270912710127111271212713127141271512716127171271812719127201272112722127231272412725127261272712728127291273012731127321273312734127351273612737127381273912740127411274212743127441274512746127471274812749127501275112752127531275412755127561275712758127591276012761127621276312764127651276612767127681276912770127711277212773127741277512776127771277812779127801278112782127831278412785127861278712788127891279012791127921279312794127951279612797127981279912800128011280212803128041280512806128071280812809128101281112812128131281412815128161281712818128191282012821128221282312824128251282612827128281282912830128311283212833128341283512836128371283812839128401284112842128431284412845128461284712848128491285012851128521285312854128551285612857128581285912860128611286212863128641286512866128671286812869128701287112872128731287412875128761287712878128791288012881128821288312884128851288612887128881288912890128911289212893128941289512896128971289812899129001290112902129031290412905129061290712908129091291012911129121291312914129151291612917129181291912920129211292212923129241292512926129271292812929129301293112932129331293412935129361293712938129391294012941129421294312944129451294612947129481294912950129511295212953129541295512956129571295812959129601296112962129631296412965129661296712968129691297012971129721297312974129751297612977129781297912980129811298212983129841298512986129871298812989129901299112992129931299412995129961299712998129991300013001130021300313004130051300613007130081300913010130111301213013130141301513016130171301813019130201302113022130231302413025130261302713028130291303013031130321303313034130351303613037130381303913040130411304213043130441304513046130471304813049130501305113052130531305413055130561305713058130591306013061130621306313064130651306613067130681306913070130711307213073130741307513076130771307813079130801308113082130831308413085130861308713088130891309013091130921309313094130951309613097130981309913100131011310213103131041310513106131071310813109131101311113112131131311413115131161311713118131191312013121131221312313124131251312613127131281312913130131311313213133131341313513136131371313813139131401314113142131431314413145131461314713148131491315013151131521315313154131551315613157131581315913160131611316213163131641316513166131671316813169131701317113172131731317413175131761317713178131791318013181131821318313184131851318613187131881318913190131911319213193131941319513196131971319813199132001320113202132031320413205132061320713208132091321013211132121321313214132151321613217132181321913220132211322213223132241322513226132271322813229132301323113232132331323413235132361323713238132391324013241132421324313244132451324613247132481324913250132511325213253132541325513256132571325813259132601326113262132631326413265132661326713268132691327013271132721327313274132751327613277132781327913280132811328213283132841328513286132871328813289132901329113292132931329413295132961329713298132991330013301133021330313304133051330613307133081330913310133111331213313133141331513316133171331813319133201332113322133231332413325133261332713328133291333013331133321333313334133351333613337133381333913340133411334213343133441334513346133471334813349133501335113352133531335413355133561335713358133591336013361133621336313364133651336613367133681336913370133711337213373133741337513376133771337813379133801338113382133831338413385133861338713388133891339013391133921339313394133951339613397133981339913400134011340213403134041340513406134071340813409134101341113412134131341413415134161341713418134191342013421134221342313424134251342613427134281342913430134311343213433134341343513436134371343813439134401344113442134431344413445134461344713448134491345013451134521345313454134551345613457134581345913460134611346213463134641346513466134671346813469134701347113472134731347413475134761347713478134791348013481134821348313484134851348613487134881348913490134911349213493134941349513496134971349813499135001350113502135031350413505135061350713508135091351013511135121351313514135151351613517135181351913520135211352213523135241352513526135271352813529135301353113532135331353413535135361353713538135391354013541135421354313544135451354613547135481354913550135511355213553135541355513556135571355813559135601356113562135631356413565135661356713568135691357013571135721357313574135751357613577135781357913580135811358213583135841358513586135871358813589135901359113592135931359413595135961359713598135991360013601136021360313604136051360613607136081360913610136111361213613136141361513616136171361813619136201362113622136231362413625136261362713628136291363013631136321363313634136351363613637136381363913640136411364213643136441364513646136471364813649136501365113652136531365413655136561365713658136591366013661136621366313664136651366613667136681366913670136711367213673136741367513676136771367813679136801368113682136831368413685136861368713688136891369013691136921369313694136951369613697136981369913700137011370213703137041370513706137071370813709137101371113712137131371413715137161371713718137191372013721137221372313724137251372613727137281372913730137311373213733137341373513736137371373813739137401374113742137431374413745137461374713748137491375013751137521375313754137551375613757137581375913760137611376213763137641376513766137671376813769137701377113772137731377413775137761377713778137791378013781137821378313784137851378613787137881378913790137911379213793137941379513796137971379813799138001380113802138031380413805138061380713808138091381013811138121381313814138151381613817138181381913820138211382213823138241382513826138271382813829138301383113832138331383413835138361383713838138391384013841138421384313844138451384613847138481384913850138511385213853138541385513856138571385813859138601386113862138631386413865138661386713868138691387013871138721387313874138751387613877138781387913880138811388213883138841388513886138871388813889138901389113892138931389413895138961389713898138991390013901139021390313904139051390613907139081390913910139111391213913139141391513916139171391813919139201392113922139231392413925139261392713928139291393013931139321393313934139351393613937139381393913940139411394213943139441394513946139471394813949139501395113952139531395413955139561395713958139591396013961139621396313964139651396613967139681396913970139711397213973139741397513976139771397813979139801398113982139831398413985139861398713988139891399013991139921399313994139951399613997139981399914000140011400214003140041400514006140071400814009140101401114012140131401414015140161401714018140191402014021140221402314024140251402614027140281402914030140311403214033140341403514036140371403814039140401404114042140431404414045140461404714048140491405014051140521405314054140551405614057140581405914060140611406214063140641406514066140671406814069140701407114072140731407414075140761407714078140791408014081140821408314084140851408614087140881408914090140911409214093140941409514096140971409814099141001410114102141031410414105
  1. #! /bin/sh
  2. # Guess values for system-dependent variables and create Makefiles.
  3. # Generated by GNU Autoconf 2.61 for aria2c 0.11.1.
  4. #
  5. # Report bugs to <t-tujikawa@users.sourceforge.net>.
  6. #
  7. # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
  8. # 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
  9. # This configure script is free software; the Free Software Foundation
  10. # gives unlimited permission to copy, distribute and modify it.
  11. ## --------------------- ##
  12. ## M4sh Initialization. ##
  13. ## --------------------- ##
  14. # Be more Bourne compatible
  15. DUALCASE=1; export DUALCASE # for MKS sh
  16. if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
  17. emulate sh
  18. NULLCMD=:
  19. # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
  20. # is contrary to our usage. Disable this feature.
  21. alias -g '${1+"$@"}'='"$@"'
  22. setopt NO_GLOB_SUBST
  23. else
  24. case `(set -o) 2>/dev/null` in
  25. *posix*) set -o posix ;;
  26. esac
  27. fi
  28. # PATH needs CR
  29. # Avoid depending upon Character Ranges.
  30. as_cr_letters='abcdefghijklmnopqrstuvwxyz'
  31. as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
  32. as_cr_Letters=$as_cr_letters$as_cr_LETTERS
  33. as_cr_digits='0123456789'
  34. as_cr_alnum=$as_cr_Letters$as_cr_digits
  35. # The user is always right.
  36. if test "${PATH_SEPARATOR+set}" != set; then
  37. echo "#! /bin/sh" >conf$$.sh
  38. echo "exit 0" >>conf$$.sh
  39. chmod +x conf$$.sh
  40. if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
  41. PATH_SEPARATOR=';'
  42. else
  43. PATH_SEPARATOR=:
  44. fi
  45. rm -f conf$$.sh
  46. fi
  47. # Support unset when possible.
  48. if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
  49. as_unset=unset
  50. else
  51. as_unset=false
  52. fi
  53. # IFS
  54. # We need space, tab and new line, in precisely that order. Quoting is
  55. # there to prevent editors from complaining about space-tab.
  56. # (If _AS_PATH_WALK were called with IFS unset, it would disable word
  57. # splitting by setting IFS to empty value.)
  58. as_nl='
  59. '
  60. IFS=" "" $as_nl"
  61. # Find who we are. Look in the path if we contain no directory separator.
  62. case $0 in
  63. *[\\/]* ) as_myself=$0 ;;
  64. *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  65. for as_dir in $PATH
  66. do
  67. IFS=$as_save_IFS
  68. test -z "$as_dir" && as_dir=.
  69. test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
  70. done
  71. IFS=$as_save_IFS
  72. ;;
  73. esac
  74. # We did not find ourselves, most probably we were run as `sh COMMAND'
  75. # in which case we are not to be found in the path.
  76. if test "x$as_myself" = x; then
  77. as_myself=$0
  78. fi
  79. if test ! -f "$as_myself"; then
  80. echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
  81. { (exit 1); exit 1; }
  82. fi
  83. # Work around bugs in pre-3.0 UWIN ksh.
  84. for as_var in ENV MAIL MAILPATH
  85. do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
  86. done
  87. PS1='$ '
  88. PS2='> '
  89. PS4='+ '
  90. # NLS nuisances.
  91. for as_var in \
  92. LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
  93. LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
  94. LC_TELEPHONE LC_TIME
  95. do
  96. if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
  97. eval $as_var=C; export $as_var
  98. else
  99. ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
  100. fi
  101. done
  102. # Required to use basename.
  103. if expr a : '\(a\)' >/dev/null 2>&1 &&
  104. test "X`expr 00001 : '.*\(...\)'`" = X001; then
  105. as_expr=expr
  106. else
  107. as_expr=false
  108. fi
  109. if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
  110. as_basename=basename
  111. else
  112. as_basename=false
  113. fi
  114. # Name of the executable.
  115. as_me=`$as_basename -- "$0" ||
  116. $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
  117. X"$0" : 'X\(//\)$' \| \
  118. X"$0" : 'X\(/\)' \| . 2>/dev/null ||
  119. echo X/"$0" |
  120. sed '/^.*\/\([^/][^/]*\)\/*$/{
  121. s//\1/
  122. q
  123. }
  124. /^X\/\(\/\/\)$/{
  125. s//\1/
  126. q
  127. }
  128. /^X\/\(\/\).*/{
  129. s//\1/
  130. q
  131. }
  132. s/.*/./; q'`
  133. # CDPATH.
  134. $as_unset CDPATH
  135. if test "x$CONFIG_SHELL" = x; then
  136. if (eval ":") 2>/dev/null; then
  137. as_have_required=yes
  138. else
  139. as_have_required=no
  140. fi
  141. if test $as_have_required = yes && (eval ":
  142. (as_func_return () {
  143. (exit \$1)
  144. }
  145. as_func_success () {
  146. as_func_return 0
  147. }
  148. as_func_failure () {
  149. as_func_return 1
  150. }
  151. as_func_ret_success () {
  152. return 0
  153. }
  154. as_func_ret_failure () {
  155. return 1
  156. }
  157. exitcode=0
  158. if as_func_success; then
  159. :
  160. else
  161. exitcode=1
  162. echo as_func_success failed.
  163. fi
  164. if as_func_failure; then
  165. exitcode=1
  166. echo as_func_failure succeeded.
  167. fi
  168. if as_func_ret_success; then
  169. :
  170. else
  171. exitcode=1
  172. echo as_func_ret_success failed.
  173. fi
  174. if as_func_ret_failure; then
  175. exitcode=1
  176. echo as_func_ret_failure succeeded.
  177. fi
  178. if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
  179. :
  180. else
  181. exitcode=1
  182. echo positional parameters were not saved.
  183. fi
  184. test \$exitcode = 0) || { (exit 1); exit 1; }
  185. (
  186. as_lineno_1=\$LINENO
  187. as_lineno_2=\$LINENO
  188. test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" &&
  189. test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; }
  190. ") 2> /dev/null; then
  191. :
  192. else
  193. as_candidate_shells=
  194. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  195. for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
  196. do
  197. IFS=$as_save_IFS
  198. test -z "$as_dir" && as_dir=.
  199. case $as_dir in
  200. /*)
  201. for as_base in sh bash ksh sh5; do
  202. as_candidate_shells="$as_candidate_shells $as_dir/$as_base"
  203. done;;
  204. esac
  205. done
  206. IFS=$as_save_IFS
  207. for as_shell in $as_candidate_shells $SHELL; do
  208. # Try only shells that exist, to save several forks.
  209. if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
  210. { ("$as_shell") 2> /dev/null <<\_ASEOF
  211. if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
  212. emulate sh
  213. NULLCMD=:
  214. # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
  215. # is contrary to our usage. Disable this feature.
  216. alias -g '${1+"$@"}'='"$@"'
  217. setopt NO_GLOB_SUBST
  218. else
  219. case `(set -o) 2>/dev/null` in
  220. *posix*) set -o posix ;;
  221. esac
  222. fi
  223. :
  224. _ASEOF
  225. }; then
  226. CONFIG_SHELL=$as_shell
  227. as_have_required=yes
  228. if { "$as_shell" 2> /dev/null <<\_ASEOF
  229. if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
  230. emulate sh
  231. NULLCMD=:
  232. # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
  233. # is contrary to our usage. Disable this feature.
  234. alias -g '${1+"$@"}'='"$@"'
  235. setopt NO_GLOB_SUBST
  236. else
  237. case `(set -o) 2>/dev/null` in
  238. *posix*) set -o posix ;;
  239. esac
  240. fi
  241. :
  242. (as_func_return () {
  243. (exit $1)
  244. }
  245. as_func_success () {
  246. as_func_return 0
  247. }
  248. as_func_failure () {
  249. as_func_return 1
  250. }
  251. as_func_ret_success () {
  252. return 0
  253. }
  254. as_func_ret_failure () {
  255. return 1
  256. }
  257. exitcode=0
  258. if as_func_success; then
  259. :
  260. else
  261. exitcode=1
  262. echo as_func_success failed.
  263. fi
  264. if as_func_failure; then
  265. exitcode=1
  266. echo as_func_failure succeeded.
  267. fi
  268. if as_func_ret_success; then
  269. :
  270. else
  271. exitcode=1
  272. echo as_func_ret_success failed.
  273. fi
  274. if as_func_ret_failure; then
  275. exitcode=1
  276. echo as_func_ret_failure succeeded.
  277. fi
  278. if ( set x; as_func_ret_success y && test x = "$1" ); then
  279. :
  280. else
  281. exitcode=1
  282. echo positional parameters were not saved.
  283. fi
  284. test $exitcode = 0) || { (exit 1); exit 1; }
  285. (
  286. as_lineno_1=$LINENO
  287. as_lineno_2=$LINENO
  288. test "x$as_lineno_1" != "x$as_lineno_2" &&
  289. test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; }
  290. _ASEOF
  291. }; then
  292. break
  293. fi
  294. fi
  295. done
  296. if test "x$CONFIG_SHELL" != x; then
  297. for as_var in BASH_ENV ENV
  298. do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
  299. done
  300. export CONFIG_SHELL
  301. exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
  302. fi
  303. if test $as_have_required = no; then
  304. echo This script requires a shell more modern than all the
  305. echo shells that I found on your system. Please install a
  306. echo modern shell, or manually run the script under such a
  307. echo shell if you do have one.
  308. { (exit 1); exit 1; }
  309. fi
  310. fi
  311. fi
  312. (eval "as_func_return () {
  313. (exit \$1)
  314. }
  315. as_func_success () {
  316. as_func_return 0
  317. }
  318. as_func_failure () {
  319. as_func_return 1
  320. }
  321. as_func_ret_success () {
  322. return 0
  323. }
  324. as_func_ret_failure () {
  325. return 1
  326. }
  327. exitcode=0
  328. if as_func_success; then
  329. :
  330. else
  331. exitcode=1
  332. echo as_func_success failed.
  333. fi
  334. if as_func_failure; then
  335. exitcode=1
  336. echo as_func_failure succeeded.
  337. fi
  338. if as_func_ret_success; then
  339. :
  340. else
  341. exitcode=1
  342. echo as_func_ret_success failed.
  343. fi
  344. if as_func_ret_failure; then
  345. exitcode=1
  346. echo as_func_ret_failure succeeded.
  347. fi
  348. if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
  349. :
  350. else
  351. exitcode=1
  352. echo positional parameters were not saved.
  353. fi
  354. test \$exitcode = 0") || {
  355. echo No shell found that supports shell functions.
  356. echo Please tell autoconf@gnu.org about your system,
  357. echo including any error possibly output before this
  358. echo message
  359. }
  360. as_lineno_1=$LINENO
  361. as_lineno_2=$LINENO
  362. test "x$as_lineno_1" != "x$as_lineno_2" &&
  363. test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
  364. # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
  365. # uniformly replaced by the line number. The first 'sed' inserts a
  366. # line-number line after each line using $LINENO; the second 'sed'
  367. # does the real work. The second script uses 'N' to pair each
  368. # line-number line with the line containing $LINENO, and appends
  369. # trailing '-' during substitution so that $LINENO is not a special
  370. # case at line end.
  371. # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
  372. # scripts with optimization help from Paolo Bonzini. Blame Lee
  373. # E. McMahon (1931-1989) for sed's syntax. :-)
  374. sed -n '
  375. p
  376. /[$]LINENO/=
  377. ' <$as_myself |
  378. sed '
  379. s/[$]LINENO.*/&-/
  380. t lineno
  381. b
  382. :lineno
  383. N
  384. :loop
  385. s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
  386. t loop
  387. s/-\n.*//
  388. ' >$as_me.lineno &&
  389. chmod +x "$as_me.lineno" ||
  390. { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
  391. { (exit 1); exit 1; }; }
  392. # Don't try to exec as it changes $[0], causing all sort of problems
  393. # (the dirname of $[0] is not the place where we might find the
  394. # original and so on. Autoconf is especially sensitive to this).
  395. . "./$as_me.lineno"
  396. # Exit status is that of the last command.
  397. exit
  398. }
  399. if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
  400. as_dirname=dirname
  401. else
  402. as_dirname=false
  403. fi
  404. ECHO_C= ECHO_N= ECHO_T=
  405. case `echo -n x` in
  406. -n*)
  407. case `echo 'x\c'` in
  408. *c*) ECHO_T=' ';; # ECHO_T is single tab character.
  409. *) ECHO_C='\c';;
  410. esac;;
  411. *)
  412. ECHO_N='-n';;
  413. esac
  414. if expr a : '\(a\)' >/dev/null 2>&1 &&
  415. test "X`expr 00001 : '.*\(...\)'`" = X001; then
  416. as_expr=expr
  417. else
  418. as_expr=false
  419. fi
  420. rm -f conf$$ conf$$.exe conf$$.file
  421. if test -d conf$$.dir; then
  422. rm -f conf$$.dir/conf$$.file
  423. else
  424. rm -f conf$$.dir
  425. mkdir conf$$.dir
  426. fi
  427. echo >conf$$.file
  428. if ln -s conf$$.file conf$$ 2>/dev/null; then
  429. as_ln_s='ln -s'
  430. # ... but there are two gotchas:
  431. # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
  432. # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
  433. # In both cases, we have to default to `cp -p'.
  434. ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
  435. as_ln_s='cp -p'
  436. elif ln conf$$.file conf$$ 2>/dev/null; then
  437. as_ln_s=ln
  438. else
  439. as_ln_s='cp -p'
  440. fi
  441. rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
  442. rmdir conf$$.dir 2>/dev/null
  443. if mkdir -p . 2>/dev/null; then
  444. as_mkdir_p=:
  445. else
  446. test -d ./-p && rmdir ./-p
  447. as_mkdir_p=false
  448. fi
  449. if test -x / >/dev/null 2>&1; then
  450. as_test_x='test -x'
  451. else
  452. if ls -dL / >/dev/null 2>&1; then
  453. as_ls_L_option=L
  454. else
  455. as_ls_L_option=
  456. fi
  457. as_test_x='
  458. eval sh -c '\''
  459. if test -d "$1"; then
  460. test -d "$1/.";
  461. else
  462. case $1 in
  463. -*)set "./$1";;
  464. esac;
  465. case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
  466. ???[sx]*):;;*)false;;esac;fi
  467. '\'' sh
  468. '
  469. fi
  470. as_executable_p=$as_test_x
  471. # Sed expression to map a string onto a valid CPP name.
  472. as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
  473. # Sed expression to map a string onto a valid variable name.
  474. as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
  475. exec 7<&0 </dev/null 6>&1
  476. # Name of the host.
  477. # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
  478. # so uname gets run too.
  479. ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
  480. #
  481. # Initializations.
  482. #
  483. ac_default_prefix=/usr/local
  484. ac_clean_files=
  485. ac_config_libobj_dir=.
  486. LIBOBJS=
  487. cross_compiling=no
  488. subdirs=
  489. MFLAGS=
  490. MAKEFLAGS=
  491. SHELL=${CONFIG_SHELL-/bin/sh}
  492. # Identity of this package.
  493. PACKAGE_NAME='aria2c'
  494. PACKAGE_TARNAME='aria2c'
  495. PACKAGE_VERSION='0.11.1'
  496. PACKAGE_STRING='aria2c 0.11.1'
  497. PACKAGE_BUGREPORT='t-tujikawa@users.sourceforge.net'
  498. ac_unique_file="src/Socket.h"
  499. # Factoring default headers for most tests.
  500. ac_includes_default="\
  501. #include <stdio.h>
  502. #ifdef HAVE_SYS_TYPES_H
  503. # include <sys/types.h>
  504. #endif
  505. #ifdef HAVE_SYS_STAT_H
  506. # include <sys/stat.h>
  507. #endif
  508. #ifdef STDC_HEADERS
  509. # include <stdlib.h>
  510. # include <stddef.h>
  511. #else
  512. # ifdef HAVE_STDLIB_H
  513. # include <stdlib.h>
  514. # endif
  515. #endif
  516. #ifdef HAVE_STRING_H
  517. # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
  518. # include <memory.h>
  519. # endif
  520. # include <string.h>
  521. #endif
  522. #ifdef HAVE_STRINGS_H
  523. # include <strings.h>
  524. #endif
  525. #ifdef HAVE_INTTYPES_H
  526. # include <inttypes.h>
  527. #endif
  528. #ifdef HAVE_STDINT_H
  529. # include <stdint.h>
  530. #endif
  531. #ifdef HAVE_UNISTD_H
  532. # include <unistd.h>
  533. #endif"
  534. ac_subst_vars='SHELL
  535. PATH_SEPARATOR
  536. PACKAGE_NAME
  537. PACKAGE_TARNAME
  538. PACKAGE_VERSION
  539. PACKAGE_STRING
  540. PACKAGE_BUGREPORT
  541. exec_prefix
  542. prefix
  543. program_transform_name
  544. bindir
  545. sbindir
  546. libexecdir
  547. datarootdir
  548. datadir
  549. sysconfdir
  550. sharedstatedir
  551. localstatedir
  552. includedir
  553. oldincludedir
  554. docdir
  555. infodir
  556. htmldir
  557. dvidir
  558. pdfdir
  559. psdir
  560. libdir
  561. localedir
  562. mandir
  563. DEFS
  564. ECHO_C
  565. ECHO_N
  566. ECHO_T
  567. LIBS
  568. build_alias
  569. host_alias
  570. target_alias
  571. INSTALL_PROGRAM
  572. INSTALL_SCRIPT
  573. INSTALL_DATA
  574. CYGPATH_W
  575. PACKAGE
  576. VERSION
  577. ACLOCAL
  578. AUTOCONF
  579. AUTOMAKE
  580. AUTOHEADER
  581. MAKEINFO
  582. install_sh
  583. STRIP
  584. INSTALL_STRIP_PROGRAM
  585. mkdir_p
  586. AWK
  587. SET_MAKE
  588. am__leading_dot
  589. AMTAR
  590. am__tar
  591. am__untar
  592. CPPUNIT_CONFIG
  593. CPPUNIT_CFLAGS
  594. CPPUNIT_LIBS
  595. CXX
  596. CXXFLAGS
  597. LDFLAGS
  598. CPPFLAGS
  599. ac_ct_CXX
  600. EXEEXT
  601. OBJEXT
  602. DEPDIR
  603. am__include
  604. am__quote
  605. AMDEP_TRUE
  606. AMDEP_FALSE
  607. AMDEPBACKSLASH
  608. CXXDEPMODE
  609. am__fastdepCXX_TRUE
  610. am__fastdepCXX_FALSE
  611. CC
  612. CFLAGS
  613. ac_ct_CC
  614. CCDEPMODE
  615. am__fastdepCC_TRUE
  616. am__fastdepCC_FALSE
  617. RANLIB
  618. YACC
  619. YFLAGS
  620. XML2_CONFIG
  621. XML_CPPFLAGS
  622. XML_LIBS
  623. LIBGNUTLS_CONFIG
  624. LIBGNUTLS_CFLAGS
  625. LIBGNUTLS_LIBS
  626. LIBGCRYPT_CONFIG
  627. LIBGCRYPT_CFLAGS
  628. LIBGCRYPT_LIBS
  629. OPENSSL_LIBS
  630. OPENSSL_CFLAGS
  631. LIBCARES_LIBS
  632. LIBCARES_CPPFLAGS
  633. LIBARES_LIBS
  634. LIBARES_CPPFLAGS
  635. ENABLE_MESSAGE_DIGEST_TRUE
  636. ENABLE_MESSAGE_DIGEST_FALSE
  637. ENABLE_BITTORRENT_TRUE
  638. ENABLE_BITTORRENT_FALSE
  639. ENABLE_METALINK_TRUE
  640. ENABLE_METALINK_FALSE
  641. ENABLE_ASYNC_DNS_TRUE
  642. ENABLE_ASYNC_DNS_FALSE
  643. ALLOCA
  644. CPP
  645. GREP
  646. EGREP
  647. MKINSTALLDIRS
  648. USE_NLS
  649. MSGFMT
  650. GMSGFMT
  651. XGETTEXT
  652. MSGMERGE
  653. build
  654. build_cpu
  655. build_vendor
  656. build_os
  657. host
  658. host_cpu
  659. host_vendor
  660. host_os
  661. GLIBC21
  662. LIBICONV
  663. LTLIBICONV
  664. INTLBISON
  665. BUILD_INCLUDED_LIBINTL
  666. USE_INCLUDED_LIBINTL
  667. CATOBJEXT
  668. DATADIRNAME
  669. INSTOBJEXT
  670. GENCAT
  671. INTLOBJS
  672. INTL_LIBTOOL_SUFFIX_PREFIX
  673. INTLLIBS
  674. LIBINTL
  675. LTLIBINTL
  676. POSUB
  677. LIBOBJS
  678. LTLIBOBJS'
  679. ac_subst_files=''
  680. ac_precious_vars='build_alias
  681. host_alias
  682. target_alias
  683. CXX
  684. CXXFLAGS
  685. LDFLAGS
  686. LIBS
  687. CPPFLAGS
  688. CCC
  689. CC
  690. CFLAGS
  691. YACC
  692. YFLAGS
  693. CPP'
  694. # Initialize some variables set by options.
  695. ac_init_help=
  696. ac_init_version=false
  697. # The variables have the same names as the options, with
  698. # dashes changed to underlines.
  699. cache_file=/dev/null
  700. exec_prefix=NONE
  701. no_create=
  702. no_recursion=
  703. prefix=NONE
  704. program_prefix=NONE
  705. program_suffix=NONE
  706. program_transform_name=s,x,x,
  707. silent=
  708. site=
  709. srcdir=
  710. verbose=
  711. x_includes=NONE
  712. x_libraries=NONE
  713. # Installation directory options.
  714. # These are left unexpanded so users can "make install exec_prefix=/foo"
  715. # and all the variables that are supposed to be based on exec_prefix
  716. # by default will actually change.
  717. # Use braces instead of parens because sh, perl, etc. also accept them.
  718. # (The list follows the same order as the GNU Coding Standards.)
  719. bindir='${exec_prefix}/bin'
  720. sbindir='${exec_prefix}/sbin'
  721. libexecdir='${exec_prefix}/libexec'
  722. datarootdir='${prefix}/share'
  723. datadir='${datarootdir}'
  724. sysconfdir='${prefix}/etc'
  725. sharedstatedir='${prefix}/com'
  726. localstatedir='${prefix}/var'
  727. includedir='${prefix}/include'
  728. oldincludedir='/usr/include'
  729. docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
  730. infodir='${datarootdir}/info'
  731. htmldir='${docdir}'
  732. dvidir='${docdir}'
  733. pdfdir='${docdir}'
  734. psdir='${docdir}'
  735. libdir='${exec_prefix}/lib'
  736. localedir='${datarootdir}/locale'
  737. mandir='${datarootdir}/man'
  738. ac_prev=
  739. ac_dashdash=
  740. for ac_option
  741. do
  742. # If the previous option needs an argument, assign it.
  743. if test -n "$ac_prev"; then
  744. eval $ac_prev=\$ac_option
  745. ac_prev=
  746. continue
  747. fi
  748. case $ac_option in
  749. *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
  750. *) ac_optarg=yes ;;
  751. esac
  752. # Accept the important Cygnus configure options, so we can diagnose typos.
  753. case $ac_dashdash$ac_option in
  754. --)
  755. ac_dashdash=yes ;;
  756. -bindir | --bindir | --bindi | --bind | --bin | --bi)
  757. ac_prev=bindir ;;
  758. -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
  759. bindir=$ac_optarg ;;
  760. -build | --build | --buil | --bui | --bu)
  761. ac_prev=build_alias ;;
  762. -build=* | --build=* | --buil=* | --bui=* | --bu=*)
  763. build_alias=$ac_optarg ;;
  764. -cache-file | --cache-file | --cache-fil | --cache-fi \
  765. | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
  766. ac_prev=cache_file ;;
  767. -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
  768. | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
  769. cache_file=$ac_optarg ;;
  770. --config-cache | -C)
  771. cache_file=config.cache ;;
  772. -datadir | --datadir | --datadi | --datad)
  773. ac_prev=datadir ;;
  774. -datadir=* | --datadir=* | --datadi=* | --datad=*)
  775. datadir=$ac_optarg ;;
  776. -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
  777. | --dataroo | --dataro | --datar)
  778. ac_prev=datarootdir ;;
  779. -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
  780. | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
  781. datarootdir=$ac_optarg ;;
  782. -disable-* | --disable-*)
  783. ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
  784. # Reject names that are not valid shell variable names.
  785. expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
  786. { echo "$as_me: error: invalid feature name: $ac_feature" >&2
  787. { (exit 1); exit 1; }; }
  788. ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
  789. eval enable_$ac_feature=no ;;
  790. -docdir | --docdir | --docdi | --doc | --do)
  791. ac_prev=docdir ;;
  792. -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
  793. docdir=$ac_optarg ;;
  794. -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
  795. ac_prev=dvidir ;;
  796. -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
  797. dvidir=$ac_optarg ;;
  798. -enable-* | --enable-*)
  799. ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
  800. # Reject names that are not valid shell variable names.
  801. expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
  802. { echo "$as_me: error: invalid feature name: $ac_feature" >&2
  803. { (exit 1); exit 1; }; }
  804. ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
  805. eval enable_$ac_feature=\$ac_optarg ;;
  806. -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
  807. | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
  808. | --exec | --exe | --ex)
  809. ac_prev=exec_prefix ;;
  810. -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
  811. | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
  812. | --exec=* | --exe=* | --ex=*)
  813. exec_prefix=$ac_optarg ;;
  814. -gas | --gas | --ga | --g)
  815. # Obsolete; use --with-gas.
  816. with_gas=yes ;;
  817. -help | --help | --hel | --he | -h)
  818. ac_init_help=long ;;
  819. -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
  820. ac_init_help=recursive ;;
  821. -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
  822. ac_init_help=short ;;
  823. -host | --host | --hos | --ho)
  824. ac_prev=host_alias ;;
  825. -host=* | --host=* | --hos=* | --ho=*)
  826. host_alias=$ac_optarg ;;
  827. -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
  828. ac_prev=htmldir ;;
  829. -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
  830. | --ht=*)
  831. htmldir=$ac_optarg ;;
  832. -includedir | --includedir | --includedi | --included | --include \
  833. | --includ | --inclu | --incl | --inc)
  834. ac_prev=includedir ;;
  835. -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
  836. | --includ=* | --inclu=* | --incl=* | --inc=*)
  837. includedir=$ac_optarg ;;
  838. -infodir | --infodir | --infodi | --infod | --info | --inf)
  839. ac_prev=infodir ;;
  840. -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
  841. infodir=$ac_optarg ;;
  842. -libdir | --libdir | --libdi | --libd)
  843. ac_prev=libdir ;;
  844. -libdir=* | --libdir=* | --libdi=* | --libd=*)
  845. libdir=$ac_optarg ;;
  846. -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
  847. | --libexe | --libex | --libe)
  848. ac_prev=libexecdir ;;
  849. -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
  850. | --libexe=* | --libex=* | --libe=*)
  851. libexecdir=$ac_optarg ;;
  852. -localedir | --localedir | --localedi | --localed | --locale)
  853. ac_prev=localedir ;;
  854. -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
  855. localedir=$ac_optarg ;;
  856. -localstatedir | --localstatedir | --localstatedi | --localstated \
  857. | --localstate | --localstat | --localsta | --localst | --locals)
  858. ac_prev=localstatedir ;;
  859. -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
  860. | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
  861. localstatedir=$ac_optarg ;;
  862. -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
  863. ac_prev=mandir ;;
  864. -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
  865. mandir=$ac_optarg ;;
  866. -nfp | --nfp | --nf)
  867. # Obsolete; use --without-fp.
  868. with_fp=no ;;
  869. -no-create | --no-create | --no-creat | --no-crea | --no-cre \
  870. | --no-cr | --no-c | -n)
  871. no_create=yes ;;
  872. -no-recursion | --no-recursion | --no-recursio | --no-recursi \
  873. | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
  874. no_recursion=yes ;;
  875. -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
  876. | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
  877. | --oldin | --oldi | --old | --ol | --o)
  878. ac_prev=oldincludedir ;;
  879. -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
  880. | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
  881. | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
  882. oldincludedir=$ac_optarg ;;
  883. -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
  884. ac_prev=prefix ;;
  885. -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
  886. prefix=$ac_optarg ;;
  887. -program-prefix | --program-prefix | --program-prefi | --program-pref \
  888. | --program-pre | --program-pr | --program-p)
  889. ac_prev=program_prefix ;;
  890. -program-prefix=* | --program-prefix=* | --program-prefi=* \
  891. | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
  892. program_prefix=$ac_optarg ;;
  893. -program-suffix | --program-suffix | --program-suffi | --program-suff \
  894. | --program-suf | --program-su | --program-s)
  895. ac_prev=program_suffix ;;
  896. -program-suffix=* | --program-suffix=* | --program-suffi=* \
  897. | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
  898. program_suffix=$ac_optarg ;;
  899. -program-transform-name | --program-transform-name \
  900. | --program-transform-nam | --program-transform-na \
  901. | --program-transform-n | --program-transform- \
  902. | --program-transform | --program-transfor \
  903. | --program-transfo | --program-transf \
  904. | --program-trans | --program-tran \
  905. | --progr-tra | --program-tr | --program-t)
  906. ac_prev=program_transform_name ;;
  907. -program-transform-name=* | --program-transform-name=* \
  908. | --program-transform-nam=* | --program-transform-na=* \
  909. | --program-transform-n=* | --program-transform-=* \
  910. | --program-transform=* | --program-transfor=* \
  911. | --program-transfo=* | --program-transf=* \
  912. | --program-trans=* | --program-tran=* \
  913. | --progr-tra=* | --program-tr=* | --program-t=*)
  914. program_transform_name=$ac_optarg ;;
  915. -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
  916. ac_prev=pdfdir ;;
  917. -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
  918. pdfdir=$ac_optarg ;;
  919. -psdir | --psdir | --psdi | --psd | --ps)
  920. ac_prev=psdir ;;
  921. -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
  922. psdir=$ac_optarg ;;
  923. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  924. | -silent | --silent | --silen | --sile | --sil)
  925. silent=yes ;;
  926. -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
  927. ac_prev=sbindir ;;
  928. -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
  929. | --sbi=* | --sb=*)
  930. sbindir=$ac_optarg ;;
  931. -sharedstatedir | --sharedstatedir | --sharedstatedi \
  932. | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
  933. | --sharedst | --shareds | --shared | --share | --shar \
  934. | --sha | --sh)
  935. ac_prev=sharedstatedir ;;
  936. -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
  937. | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
  938. | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
  939. | --sha=* | --sh=*)
  940. sharedstatedir=$ac_optarg ;;
  941. -site | --site | --sit)
  942. ac_prev=site ;;
  943. -site=* | --site=* | --sit=*)
  944. site=$ac_optarg ;;
  945. -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
  946. ac_prev=srcdir ;;
  947. -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
  948. srcdir=$ac_optarg ;;
  949. -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
  950. | --syscon | --sysco | --sysc | --sys | --sy)
  951. ac_prev=sysconfdir ;;
  952. -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
  953. | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
  954. sysconfdir=$ac_optarg ;;
  955. -target | --target | --targe | --targ | --tar | --ta | --t)
  956. ac_prev=target_alias ;;
  957. -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
  958. target_alias=$ac_optarg ;;
  959. -v | -verbose | --verbose | --verbos | --verbo | --verb)
  960. verbose=yes ;;
  961. -version | --version | --versio | --versi | --vers | -V)
  962. ac_init_version=: ;;
  963. -with-* | --with-*)
  964. ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
  965. # Reject names that are not valid shell variable names.
  966. expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
  967. { echo "$as_me: error: invalid package name: $ac_package" >&2
  968. { (exit 1); exit 1; }; }
  969. ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
  970. eval with_$ac_package=\$ac_optarg ;;
  971. -without-* | --without-*)
  972. ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
  973. # Reject names that are not valid shell variable names.
  974. expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
  975. { echo "$as_me: error: invalid package name: $ac_package" >&2
  976. { (exit 1); exit 1; }; }
  977. ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
  978. eval with_$ac_package=no ;;
  979. --x)
  980. # Obsolete; use --with-x.
  981. with_x=yes ;;
  982. -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
  983. | --x-incl | --x-inc | --x-in | --x-i)
  984. ac_prev=x_includes ;;
  985. -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
  986. | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
  987. x_includes=$ac_optarg ;;
  988. -x-libraries | --x-libraries | --x-librarie | --x-librari \
  989. | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
  990. ac_prev=x_libraries ;;
  991. -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
  992. | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
  993. x_libraries=$ac_optarg ;;
  994. -*) { echo "$as_me: error: unrecognized option: $ac_option
  995. Try \`$0 --help' for more information." >&2
  996. { (exit 1); exit 1; }; }
  997. ;;
  998. *=*)
  999. ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
  1000. # Reject names that are not valid shell variable names.
  1001. expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
  1002. { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
  1003. { (exit 1); exit 1; }; }
  1004. eval $ac_envvar=\$ac_optarg
  1005. export $ac_envvar ;;
  1006. *)
  1007. # FIXME: should be removed in autoconf 3.0.
  1008. echo "$as_me: WARNING: you should use --build, --host, --target" >&2
  1009. expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
  1010. echo "$as_me: WARNING: invalid host type: $ac_option" >&2
  1011. : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
  1012. ;;
  1013. esac
  1014. done
  1015. if test -n "$ac_prev"; then
  1016. ac_option=--`echo $ac_prev | sed 's/_/-/g'`
  1017. { echo "$as_me: error: missing argument to $ac_option" >&2
  1018. { (exit 1); exit 1; }; }
  1019. fi
  1020. # Be sure to have absolute directory names.
  1021. for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
  1022. datadir sysconfdir sharedstatedir localstatedir includedir \
  1023. oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
  1024. libdir localedir mandir
  1025. do
  1026. eval ac_val=\$$ac_var
  1027. case $ac_val in
  1028. [\\/$]* | ?:[\\/]* ) continue;;
  1029. NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
  1030. esac
  1031. { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
  1032. { (exit 1); exit 1; }; }
  1033. done
  1034. # There might be people who depend on the old broken behavior: `$host'
  1035. # used to hold the argument of --host etc.
  1036. # FIXME: To remove some day.
  1037. build=$build_alias
  1038. host=$host_alias
  1039. target=$target_alias
  1040. # FIXME: To remove some day.
  1041. if test "x$host_alias" != x; then
  1042. if test "x$build_alias" = x; then
  1043. cross_compiling=maybe
  1044. echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
  1045. If a cross compiler is detected then cross compile mode will be used." >&2
  1046. elif test "x$build_alias" != "x$host_alias"; then
  1047. cross_compiling=yes
  1048. fi
  1049. fi
  1050. ac_tool_prefix=
  1051. test -n "$host_alias" && ac_tool_prefix=$host_alias-
  1052. test "$silent" = yes && exec 6>/dev/null
  1053. ac_pwd=`pwd` && test -n "$ac_pwd" &&
  1054. ac_ls_di=`ls -di .` &&
  1055. ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
  1056. { echo "$as_me: error: Working directory cannot be determined" >&2
  1057. { (exit 1); exit 1; }; }
  1058. test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
  1059. { echo "$as_me: error: pwd does not report name of working directory" >&2
  1060. { (exit 1); exit 1; }; }
  1061. # Find the source files, if location was not specified.
  1062. if test -z "$srcdir"; then
  1063. ac_srcdir_defaulted=yes
  1064. # Try the directory containing this script, then the parent directory.
  1065. ac_confdir=`$as_dirname -- "$0" ||
  1066. $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  1067. X"$0" : 'X\(//\)[^/]' \| \
  1068. X"$0" : 'X\(//\)$' \| \
  1069. X"$0" : 'X\(/\)' \| . 2>/dev/null ||
  1070. echo X"$0" |
  1071. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  1072. s//\1/
  1073. q
  1074. }
  1075. /^X\(\/\/\)[^/].*/{
  1076. s//\1/
  1077. q
  1078. }
  1079. /^X\(\/\/\)$/{
  1080. s//\1/
  1081. q
  1082. }
  1083. /^X\(\/\).*/{
  1084. s//\1/
  1085. q
  1086. }
  1087. s/.*/./; q'`
  1088. srcdir=$ac_confdir
  1089. if test ! -r "$srcdir/$ac_unique_file"; then
  1090. srcdir=..
  1091. fi
  1092. else
  1093. ac_srcdir_defaulted=no
  1094. fi
  1095. if test ! -r "$srcdir/$ac_unique_file"; then
  1096. test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
  1097. { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
  1098. { (exit 1); exit 1; }; }
  1099. fi
  1100. ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
  1101. ac_abs_confdir=`(
  1102. cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
  1103. { (exit 1); exit 1; }; }
  1104. pwd)`
  1105. # When building in place, set srcdir=.
  1106. if test "$ac_abs_confdir" = "$ac_pwd"; then
  1107. srcdir=.
  1108. fi
  1109. # Remove unnecessary trailing slashes from srcdir.
  1110. # Double slashes in file names in object file debugging info
  1111. # mess up M-x gdb in Emacs.
  1112. case $srcdir in
  1113. */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
  1114. esac
  1115. for ac_var in $ac_precious_vars; do
  1116. eval ac_env_${ac_var}_set=\${${ac_var}+set}
  1117. eval ac_env_${ac_var}_value=\$${ac_var}
  1118. eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
  1119. eval ac_cv_env_${ac_var}_value=\$${ac_var}
  1120. done
  1121. #
  1122. # Report the --help message.
  1123. #
  1124. if test "$ac_init_help" = "long"; then
  1125. # Omit some internal or obsolete options to make the list less imposing.
  1126. # This message is too long to be a string in the A/UX 3.1 sh.
  1127. cat <<_ACEOF
  1128. \`configure' configures aria2c 0.11.1 to adapt to many kinds of systems.
  1129. Usage: $0 [OPTION]... [VAR=VALUE]...
  1130. To assign environment variables (e.g., CC, CFLAGS...), specify them as
  1131. VAR=VALUE. See below for descriptions of some of the useful variables.
  1132. Defaults for the options are specified in brackets.
  1133. Configuration:
  1134. -h, --help display this help and exit
  1135. --help=short display options specific to this package
  1136. --help=recursive display the short help of all the included packages
  1137. -V, --version display version information and exit
  1138. -q, --quiet, --silent do not print \`checking...' messages
  1139. --cache-file=FILE cache test results in FILE [disabled]
  1140. -C, --config-cache alias for \`--cache-file=config.cache'
  1141. -n, --no-create do not create output files
  1142. --srcdir=DIR find the sources in DIR [configure dir or \`..']
  1143. Installation directories:
  1144. --prefix=PREFIX install architecture-independent files in PREFIX
  1145. [$ac_default_prefix]
  1146. --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
  1147. [PREFIX]
  1148. By default, \`make install' will install all the files in
  1149. \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
  1150. an installation prefix other than \`$ac_default_prefix' using \`--prefix',
  1151. for instance \`--prefix=\$HOME'.
  1152. For better control, use the options below.
  1153. Fine tuning of the installation directories:
  1154. --bindir=DIR user executables [EPREFIX/bin]
  1155. --sbindir=DIR system admin executables [EPREFIX/sbin]
  1156. --libexecdir=DIR program executables [EPREFIX/libexec]
  1157. --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
  1158. --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
  1159. --localstatedir=DIR modifiable single-machine data [PREFIX/var]
  1160. --libdir=DIR object code libraries [EPREFIX/lib]
  1161. --includedir=DIR C header files [PREFIX/include]
  1162. --oldincludedir=DIR C header files for non-gcc [/usr/include]
  1163. --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
  1164. --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
  1165. --infodir=DIR info documentation [DATAROOTDIR/info]
  1166. --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
  1167. --mandir=DIR man documentation [DATAROOTDIR/man]
  1168. --docdir=DIR documentation root [DATAROOTDIR/doc/aria2c]
  1169. --htmldir=DIR html documentation [DOCDIR]
  1170. --dvidir=DIR dvi documentation [DOCDIR]
  1171. --pdfdir=DIR pdf documentation [DOCDIR]
  1172. --psdir=DIR ps documentation [DOCDIR]
  1173. _ACEOF
  1174. cat <<\_ACEOF
  1175. Program names:
  1176. --program-prefix=PREFIX prepend PREFIX to installed program names
  1177. --program-suffix=SUFFIX append SUFFIX to installed program names
  1178. --program-transform-name=PROGRAM run sed PROGRAM on installed program names
  1179. System types:
  1180. --build=BUILD configure for building on BUILD [guessed]
  1181. --host=HOST cross-compile to build programs to run on HOST [BUILD]
  1182. _ACEOF
  1183. fi
  1184. if test -n "$ac_init_help"; then
  1185. case $ac_init_help in
  1186. short | recursive ) echo "Configuration of aria2c 0.11.1:";;
  1187. esac
  1188. cat <<\_ACEOF
  1189. Optional Features:
  1190. --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
  1191. --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
  1192. --enable-bittorrent enable BitTorrent support. Default: yes
  1193. --enable-metalink enable Metalink support. Default: yes
  1194. --disable-dependency-tracking speeds up one-time build
  1195. --enable-dependency-tracking do not reject slow dependency extractors
  1196. --disable-xmltest Do not try to compile and run a test LIBXML program
  1197. --disable-nls do not use Native Language Support
  1198. --disable-rpath do not hardcode runtime library paths
  1199. Optional Packages:
  1200. --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
  1201. --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
  1202. --with-cppunit-prefix=PFX Prefix where CppUnit is installed (optional)
  1203. --with-cppunit-exec-prefix=PFX Exec prefix where CppUnit is installed (optional)
  1204. --with-gnutls use gnutls library if installed. Default: yes
  1205. --with-openssl use openssl library if installed. Default: yes
  1206. --with-libxml2 use libxml2 library if installed. Default: yes
  1207. --with-libares use ares library if installed. Default: yes
  1208. --with-libcares use c-ares library if installed. Default: yes
  1209. --with-xml-prefix=PFX Prefix where libxml is installed (optional)
  1210. --with-xml-exec-prefix=PFX Exec prefix where libxml is installed (optional)
  1211. --with-libgnutls-prefix=PFX Prefix where libgnutls is installed (optional)
  1212. --with-libgcrypt-prefix=PFX
  1213. prefix where LIBGCRYPT is installed (optional)
  1214. --with-openssl-prefix=PREFIX Prefix where OpenSSL installed (optional)
  1215. --with-libcares-prefix=PREFIX Prefix where libcares installed (optional)
  1216. --with-libares-prefix=PREFIX Prefix where libares installed (optional)
  1217. --with-gnu-ld assume the C compiler uses GNU ld default=no
  1218. --with-libiconv-prefix[=DIR] search for libiconv in DIR/include and DIR/lib
  1219. --without-libiconv-prefix don't search for libiconv in includedir and libdir
  1220. --with-included-gettext use the GNU gettext library included here
  1221. --with-libintl-prefix[=DIR] search for libintl in DIR/include and DIR/lib
  1222. --without-libintl-prefix don't search for libintl in includedir and libdir
  1223. Some influential environment variables:
  1224. CXX C++ compiler command
  1225. CXXFLAGS C++ compiler flags
  1226. LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
  1227. nonstandard directory <lib dir>
  1228. LIBS libraries to pass to the linker, e.g. -l<library>
  1229. CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
  1230. you have headers in a nonstandard directory <include dir>
  1231. CC C compiler command
  1232. CFLAGS C compiler flags
  1233. YACC The `Yet Another C Compiler' implementation to use. Defaults to
  1234. the first program found out of: `bison -y', `byacc', `yacc'.
  1235. YFLAGS The list of arguments that will be passed by default to $YACC.
  1236. This script will default YFLAGS to the empty string to avoid a
  1237. default value of `-d' given by some make applications.
  1238. CPP C preprocessor
  1239. Use these variables to override the choices made by `configure' or to help
  1240. it to find libraries and programs with nonstandard names/locations.
  1241. Report bugs to <t-tujikawa@users.sourceforge.net>.
  1242. _ACEOF
  1243. ac_status=$?
  1244. fi
  1245. if test "$ac_init_help" = "recursive"; then
  1246. # If there are subdirs, report their specific --help.
  1247. for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
  1248. test -d "$ac_dir" || continue
  1249. ac_builddir=.
  1250. case "$ac_dir" in
  1251. .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
  1252. *)
  1253. ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
  1254. # A ".." for each directory in $ac_dir_suffix.
  1255. ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
  1256. case $ac_top_builddir_sub in
  1257. "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
  1258. *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
  1259. esac ;;
  1260. esac
  1261. ac_abs_top_builddir=$ac_pwd
  1262. ac_abs_builddir=$ac_pwd$ac_dir_suffix
  1263. # for backward compatibility:
  1264. ac_top_builddir=$ac_top_build_prefix
  1265. case $srcdir in
  1266. .) # We are building in place.
  1267. ac_srcdir=.
  1268. ac_top_srcdir=$ac_top_builddir_sub
  1269. ac_abs_top_srcdir=$ac_pwd ;;
  1270. [\\/]* | ?:[\\/]* ) # Absolute name.
  1271. ac_srcdir=$srcdir$ac_dir_suffix;
  1272. ac_top_srcdir=$srcdir
  1273. ac_abs_top_srcdir=$srcdir ;;
  1274. *) # Relative name.
  1275. ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
  1276. ac_top_srcdir=$ac_top_build_prefix$srcdir
  1277. ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
  1278. esac
  1279. ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
  1280. cd "$ac_dir" || { ac_status=$?; continue; }
  1281. # Check for guested configure.
  1282. if test -f "$ac_srcdir/configure.gnu"; then
  1283. echo &&
  1284. $SHELL "$ac_srcdir/configure.gnu" --help=recursive
  1285. elif test -f "$ac_srcdir/configure"; then
  1286. echo &&
  1287. $SHELL "$ac_srcdir/configure" --help=recursive
  1288. else
  1289. echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
  1290. fi || ac_status=$?
  1291. cd "$ac_pwd" || { ac_status=$?; break; }
  1292. done
  1293. fi
  1294. test -n "$ac_init_help" && exit $ac_status
  1295. if $ac_init_version; then
  1296. cat <<\_ACEOF
  1297. aria2c configure 0.11.1
  1298. generated by GNU Autoconf 2.61
  1299. Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
  1300. 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
  1301. This configure script is free software; the Free Software Foundation
  1302. gives unlimited permission to copy, distribute and modify it.
  1303. _ACEOF
  1304. exit
  1305. fi
  1306. cat >config.log <<_ACEOF
  1307. This file contains any messages produced by compilers while
  1308. running configure, to aid debugging if configure makes a mistake.
  1309. It was created by aria2c $as_me 0.11.1, which was
  1310. generated by GNU Autoconf 2.61. Invocation command line was
  1311. $ $0 $@
  1312. _ACEOF
  1313. exec 5>>config.log
  1314. {
  1315. cat <<_ASUNAME
  1316. ## --------- ##
  1317. ## Platform. ##
  1318. ## --------- ##
  1319. hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
  1320. uname -m = `(uname -m) 2>/dev/null || echo unknown`
  1321. uname -r = `(uname -r) 2>/dev/null || echo unknown`
  1322. uname -s = `(uname -s) 2>/dev/null || echo unknown`
  1323. uname -v = `(uname -v) 2>/dev/null || echo unknown`
  1324. /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
  1325. /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
  1326. /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
  1327. /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
  1328. /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
  1329. /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
  1330. /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
  1331. /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
  1332. /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
  1333. _ASUNAME
  1334. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  1335. for as_dir in $PATH
  1336. do
  1337. IFS=$as_save_IFS
  1338. test -z "$as_dir" && as_dir=.
  1339. echo "PATH: $as_dir"
  1340. done
  1341. IFS=$as_save_IFS
  1342. } >&5
  1343. cat >&5 <<_ACEOF
  1344. ## ----------- ##
  1345. ## Core tests. ##
  1346. ## ----------- ##
  1347. _ACEOF
  1348. # Keep a trace of the command line.
  1349. # Strip out --no-create and --no-recursion so they do not pile up.
  1350. # Strip out --silent because we don't want to record it for future runs.
  1351. # Also quote any args containing shell meta-characters.
  1352. # Make two passes to allow for proper duplicate-argument suppression.
  1353. ac_configure_args=
  1354. ac_configure_args0=
  1355. ac_configure_args1=
  1356. ac_must_keep_next=false
  1357. for ac_pass in 1 2
  1358. do
  1359. for ac_arg
  1360. do
  1361. case $ac_arg in
  1362. -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
  1363. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  1364. | -silent | --silent | --silen | --sile | --sil)
  1365. continue ;;
  1366. *\'*)
  1367. ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
  1368. esac
  1369. case $ac_pass in
  1370. 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
  1371. 2)
  1372. ac_configure_args1="$ac_configure_args1 '$ac_arg'"
  1373. if test $ac_must_keep_next = true; then
  1374. ac_must_keep_next=false # Got value, back to normal.
  1375. else
  1376. case $ac_arg in
  1377. *=* | --config-cache | -C | -disable-* | --disable-* \
  1378. | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
  1379. | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
  1380. | -with-* | --with-* | -without-* | --without-* | --x)
  1381. case "$ac_configure_args0 " in
  1382. "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
  1383. esac
  1384. ;;
  1385. -* ) ac_must_keep_next=true ;;
  1386. esac
  1387. fi
  1388. ac_configure_args="$ac_configure_args '$ac_arg'"
  1389. ;;
  1390. esac
  1391. done
  1392. done
  1393. $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
  1394. $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
  1395. # When interrupted or exit'd, cleanup temporary files, and complete
  1396. # config.log. We remove comments because anyway the quotes in there
  1397. # would cause problems or look ugly.
  1398. # WARNING: Use '\'' to represent an apostrophe within the trap.
  1399. # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
  1400. trap 'exit_status=$?
  1401. # Save into config.log some information that might help in debugging.
  1402. {
  1403. echo
  1404. cat <<\_ASBOX
  1405. ## ---------------- ##
  1406. ## Cache variables. ##
  1407. ## ---------------- ##
  1408. _ASBOX
  1409. echo
  1410. # The following way of writing the cache mishandles newlines in values,
  1411. (
  1412. for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
  1413. eval ac_val=\$$ac_var
  1414. case $ac_val in #(
  1415. *${as_nl}*)
  1416. case $ac_var in #(
  1417. *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
  1418. echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
  1419. esac
  1420. case $ac_var in #(
  1421. _ | IFS | as_nl) ;; #(
  1422. *) $as_unset $ac_var ;;
  1423. esac ;;
  1424. esac
  1425. done
  1426. (set) 2>&1 |
  1427. case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
  1428. *${as_nl}ac_space=\ *)
  1429. sed -n \
  1430. "s/'\''/'\''\\\\'\'''\''/g;
  1431. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
  1432. ;; #(
  1433. *)
  1434. sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
  1435. ;;
  1436. esac |
  1437. sort
  1438. )
  1439. echo
  1440. cat <<\_ASBOX
  1441. ## ----------------- ##
  1442. ## Output variables. ##
  1443. ## ----------------- ##
  1444. _ASBOX
  1445. echo
  1446. for ac_var in $ac_subst_vars
  1447. do
  1448. eval ac_val=\$$ac_var
  1449. case $ac_val in
  1450. *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
  1451. esac
  1452. echo "$ac_var='\''$ac_val'\''"
  1453. done | sort
  1454. echo
  1455. if test -n "$ac_subst_files"; then
  1456. cat <<\_ASBOX
  1457. ## ------------------- ##
  1458. ## File substitutions. ##
  1459. ## ------------------- ##
  1460. _ASBOX
  1461. echo
  1462. for ac_var in $ac_subst_files
  1463. do
  1464. eval ac_val=\$$ac_var
  1465. case $ac_val in
  1466. *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
  1467. esac
  1468. echo "$ac_var='\''$ac_val'\''"
  1469. done | sort
  1470. echo
  1471. fi
  1472. if test -s confdefs.h; then
  1473. cat <<\_ASBOX
  1474. ## ----------- ##
  1475. ## confdefs.h. ##
  1476. ## ----------- ##
  1477. _ASBOX
  1478. echo
  1479. cat confdefs.h
  1480. echo
  1481. fi
  1482. test "$ac_signal" != 0 &&
  1483. echo "$as_me: caught signal $ac_signal"
  1484. echo "$as_me: exit $exit_status"
  1485. } >&5
  1486. rm -f core *.core core.conftest.* &&
  1487. rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
  1488. exit $exit_status
  1489. ' 0
  1490. for ac_signal in 1 2 13 15; do
  1491. trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
  1492. done
  1493. ac_signal=0
  1494. # confdefs.h avoids OS command line length limits that DEFS can exceed.
  1495. rm -f -r conftest* confdefs.h
  1496. # Predefined preprocessor variables.
  1497. cat >>confdefs.h <<_ACEOF
  1498. #define PACKAGE_NAME "$PACKAGE_NAME"
  1499. _ACEOF
  1500. cat >>confdefs.h <<_ACEOF
  1501. #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
  1502. _ACEOF
  1503. cat >>confdefs.h <<_ACEOF
  1504. #define PACKAGE_VERSION "$PACKAGE_VERSION"
  1505. _ACEOF
  1506. cat >>confdefs.h <<_ACEOF
  1507. #define PACKAGE_STRING "$PACKAGE_STRING"
  1508. _ACEOF
  1509. cat >>confdefs.h <<_ACEOF
  1510. #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
  1511. _ACEOF
  1512. # Let the site file select an alternate cache file if it wants to.
  1513. # Prefer explicitly selected file to automatically selected ones.
  1514. if test -n "$CONFIG_SITE"; then
  1515. set x "$CONFIG_SITE"
  1516. elif test "x$prefix" != xNONE; then
  1517. set x "$prefix/share/config.site" "$prefix/etc/config.site"
  1518. else
  1519. set x "$ac_default_prefix/share/config.site" \
  1520. "$ac_default_prefix/etc/config.site"
  1521. fi
  1522. shift
  1523. for ac_site_file
  1524. do
  1525. if test -r "$ac_site_file"; then
  1526. { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
  1527. echo "$as_me: loading site script $ac_site_file" >&6;}
  1528. sed 's/^/| /' "$ac_site_file" >&5
  1529. . "$ac_site_file"
  1530. fi
  1531. done
  1532. if test -r "$cache_file"; then
  1533. # Some versions of bash will fail to source /dev/null (special
  1534. # files actually), so we avoid doing that.
  1535. if test -f "$cache_file"; then
  1536. { echo "$as_me:$LINENO: loading cache $cache_file" >&5
  1537. echo "$as_me: loading cache $cache_file" >&6;}
  1538. case $cache_file in
  1539. [\\/]* | ?:[\\/]* ) . "$cache_file";;
  1540. *) . "./$cache_file";;
  1541. esac
  1542. fi
  1543. else
  1544. { echo "$as_me:$LINENO: creating cache $cache_file" >&5
  1545. echo "$as_me: creating cache $cache_file" >&6;}
  1546. >$cache_file
  1547. fi
  1548. # Check that the precious variables saved in the cache have kept the same
  1549. # value.
  1550. ac_cache_corrupted=false
  1551. for ac_var in $ac_precious_vars; do
  1552. eval ac_old_set=\$ac_cv_env_${ac_var}_set
  1553. eval ac_new_set=\$ac_env_${ac_var}_set
  1554. eval ac_old_val=\$ac_cv_env_${ac_var}_value
  1555. eval ac_new_val=\$ac_env_${ac_var}_value
  1556. case $ac_old_set,$ac_new_set in
  1557. set,)
  1558. { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
  1559. echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
  1560. ac_cache_corrupted=: ;;
  1561. ,set)
  1562. { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
  1563. echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
  1564. ac_cache_corrupted=: ;;
  1565. ,);;
  1566. *)
  1567. if test "x$ac_old_val" != "x$ac_new_val"; then
  1568. { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
  1569. echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
  1570. { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
  1571. echo "$as_me: former value: $ac_old_val" >&2;}
  1572. { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
  1573. echo "$as_me: current value: $ac_new_val" >&2;}
  1574. ac_cache_corrupted=:
  1575. fi;;
  1576. esac
  1577. # Pass precious variables to config.status.
  1578. if test "$ac_new_set" = set; then
  1579. case $ac_new_val in
  1580. *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
  1581. *) ac_arg=$ac_var=$ac_new_val ;;
  1582. esac
  1583. case " $ac_configure_args " in
  1584. *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
  1585. *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
  1586. esac
  1587. fi
  1588. done
  1589. if $ac_cache_corrupted; then
  1590. { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
  1591. echo "$as_me: error: changes in the environment can compromise the build" >&2;}
  1592. { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
  1593. echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
  1594. { (exit 1); exit 1; }; }
  1595. fi
  1596. ac_ext=c
  1597. ac_cpp='$CPP $CPPFLAGS'
  1598. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  1599. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  1600. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  1601. am__api_version="1.9"
  1602. ac_aux_dir=
  1603. for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
  1604. if test -f "$ac_dir/install-sh"; then
  1605. ac_aux_dir=$ac_dir
  1606. ac_install_sh="$ac_aux_dir/install-sh -c"
  1607. break
  1608. elif test -f "$ac_dir/install.sh"; then
  1609. ac_aux_dir=$ac_dir
  1610. ac_install_sh="$ac_aux_dir/install.sh -c"
  1611. break
  1612. elif test -f "$ac_dir/shtool"; then
  1613. ac_aux_dir=$ac_dir
  1614. ac_install_sh="$ac_aux_dir/shtool install -c"
  1615. break
  1616. fi
  1617. done
  1618. if test -z "$ac_aux_dir"; then
  1619. { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5
  1620. echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;}
  1621. { (exit 1); exit 1; }; }
  1622. fi
  1623. # These three variables are undocumented and unsupported,
  1624. # and are intended to be withdrawn in a future Autoconf release.
  1625. # They can cause serious problems if a builder's source tree is in a directory
  1626. # whose full name contains unusual characters.
  1627. ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
  1628. ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
  1629. ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
  1630. # Find a good install program. We prefer a C program (faster),
  1631. # so one script is as good as another. But avoid the broken or
  1632. # incompatible versions:
  1633. # SysV /etc/install, /usr/sbin/install
  1634. # SunOS /usr/etc/install
  1635. # IRIX /sbin/install
  1636. # AIX /bin/install
  1637. # AmigaOS /C/install, which installs bootblocks on floppy discs
  1638. # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
  1639. # AFS /usr/afsws/bin/install, which mishandles nonexistent args
  1640. # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
  1641. # OS/2's system install, which has a completely different semantic
  1642. # ./install, which can be erroneously created by make from ./install.sh.
  1643. { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
  1644. echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
  1645. if test -z "$INSTALL"; then
  1646. if test "${ac_cv_path_install+set}" = set; then
  1647. echo $ECHO_N "(cached) $ECHO_C" >&6
  1648. else
  1649. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  1650. for as_dir in $PATH
  1651. do
  1652. IFS=$as_save_IFS
  1653. test -z "$as_dir" && as_dir=.
  1654. # Account for people who put trailing slashes in PATH elements.
  1655. case $as_dir/ in
  1656. ./ | .// | /cC/* | \
  1657. /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
  1658. ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
  1659. /usr/ucb/* ) ;;
  1660. *)
  1661. # OSF1 and SCO ODT 3.0 have their own names for install.
  1662. # Don't use installbsd from OSF since it installs stuff as root
  1663. # by default.
  1664. for ac_prog in ginstall scoinst install; do
  1665. for ac_exec_ext in '' $ac_executable_extensions; do
  1666. if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
  1667. if test $ac_prog = install &&
  1668. grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
  1669. # AIX install. It has an incompatible calling convention.
  1670. :
  1671. elif test $ac_prog = install &&
  1672. grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
  1673. # program-specific install script used by HP pwplus--don't use.
  1674. :
  1675. else
  1676. ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
  1677. break 3
  1678. fi
  1679. fi
  1680. done
  1681. done
  1682. ;;
  1683. esac
  1684. done
  1685. IFS=$as_save_IFS
  1686. fi
  1687. if test "${ac_cv_path_install+set}" = set; then
  1688. INSTALL=$ac_cv_path_install
  1689. else
  1690. # As a last resort, use the slow shell script. Don't cache a
  1691. # value for INSTALL within a source directory, because that will
  1692. # break other packages using the cache if that directory is
  1693. # removed, or if the value is a relative name.
  1694. INSTALL=$ac_install_sh
  1695. fi
  1696. fi
  1697. { echo "$as_me:$LINENO: result: $INSTALL" >&5
  1698. echo "${ECHO_T}$INSTALL" >&6; }
  1699. # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
  1700. # It thinks the first close brace ends the variable substitution.
  1701. test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
  1702. test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
  1703. test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
  1704. { echo "$as_me:$LINENO: checking whether build environment is sane" >&5
  1705. echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6; }
  1706. # Just in case
  1707. sleep 1
  1708. echo timestamp > conftest.file
  1709. # Do `set' in a subshell so we don't clobber the current shell's
  1710. # arguments. Must try -L first in case configure is actually a
  1711. # symlink; some systems play weird games with the mod time of symlinks
  1712. # (eg FreeBSD returns the mod time of the symlink's containing
  1713. # directory).
  1714. if (
  1715. set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
  1716. if test "$*" = "X"; then
  1717. # -L didn't work.
  1718. set X `ls -t $srcdir/configure conftest.file`
  1719. fi
  1720. rm -f conftest.file
  1721. if test "$*" != "X $srcdir/configure conftest.file" \
  1722. && test "$*" != "X conftest.file $srcdir/configure"; then
  1723. # If neither matched, then we have a broken ls. This can happen
  1724. # if, for instance, CONFIG_SHELL is bash and it inherits a
  1725. # broken ls alias from the environment. This has actually
  1726. # happened. Such a system could not be considered "sane".
  1727. { { echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken
  1728. alias in your environment" >&5
  1729. echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken
  1730. alias in your environment" >&2;}
  1731. { (exit 1); exit 1; }; }
  1732. fi
  1733. test "$2" = conftest.file
  1734. )
  1735. then
  1736. # Ok.
  1737. :
  1738. else
  1739. { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
  1740. Check your system clock" >&5
  1741. echo "$as_me: error: newly created file is older than distributed files!
  1742. Check your system clock" >&2;}
  1743. { (exit 1); exit 1; }; }
  1744. fi
  1745. { echo "$as_me:$LINENO: result: yes" >&5
  1746. echo "${ECHO_T}yes" >&6; }
  1747. test "$program_prefix" != NONE &&
  1748. program_transform_name="s&^&$program_prefix&;$program_transform_name"
  1749. # Use a double $ so make ignores it.
  1750. test "$program_suffix" != NONE &&
  1751. program_transform_name="s&\$&$program_suffix&;$program_transform_name"
  1752. # Double any \ or $. echo might interpret backslashes.
  1753. # By default was `s,x,x', remove it if useless.
  1754. cat <<\_ACEOF >conftest.sed
  1755. s/[\\$]/&&/g;s/;s,x,x,$//
  1756. _ACEOF
  1757. program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
  1758. rm -f conftest.sed
  1759. # expand $ac_aux_dir to an absolute path
  1760. am_aux_dir=`cd $ac_aux_dir && pwd`
  1761. test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
  1762. # Use eval to expand $SHELL
  1763. if eval "$MISSING --run true"; then
  1764. am_missing_run="$MISSING --run "
  1765. else
  1766. am_missing_run=
  1767. { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
  1768. echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
  1769. fi
  1770. if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then
  1771. # We used to keeping the `.' as first argument, in order to
  1772. # allow $(mkdir_p) to be used without argument. As in
  1773. # $(mkdir_p) $(somedir)
  1774. # where $(somedir) is conditionally defined. However this is wrong
  1775. # for two reasons:
  1776. # 1. if the package is installed by a user who cannot write `.'
  1777. # make install will fail,
  1778. # 2. the above comment should most certainly read
  1779. # $(mkdir_p) $(DESTDIR)$(somedir)
  1780. # so it does not work when $(somedir) is undefined and
  1781. # $(DESTDIR) is not.
  1782. # To support the latter case, we have to write
  1783. # test -z "$(somedir)" || $(mkdir_p) $(DESTDIR)$(somedir),
  1784. # so the `.' trick is pointless.
  1785. mkdir_p='mkdir -p --'
  1786. else
  1787. # On NextStep and OpenStep, the `mkdir' command does not
  1788. # recognize any option. It will interpret all options as
  1789. # directories to create, and then abort because `.' already
  1790. # exists.
  1791. for d in ./-p ./--version;
  1792. do
  1793. test -d $d && rmdir $d
  1794. done
  1795. # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists.
  1796. if test -f "$ac_aux_dir/mkinstalldirs"; then
  1797. mkdir_p='$(mkinstalldirs)'
  1798. else
  1799. mkdir_p='$(install_sh) -d'
  1800. fi
  1801. fi
  1802. for ac_prog in gawk mawk nawk awk
  1803. do
  1804. # Extract the first word of "$ac_prog", so it can be a program name with args.
  1805. set dummy $ac_prog; ac_word=$2
  1806. { echo "$as_me:$LINENO: checking for $ac_word" >&5
  1807. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  1808. if test "${ac_cv_prog_AWK+set}" = set; then
  1809. echo $ECHO_N "(cached) $ECHO_C" >&6
  1810. else
  1811. if test -n "$AWK"; then
  1812. ac_cv_prog_AWK="$AWK" # Let the user override the test.
  1813. else
  1814. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  1815. for as_dir in $PATH
  1816. do
  1817. IFS=$as_save_IFS
  1818. test -z "$as_dir" && as_dir=.
  1819. for ac_exec_ext in '' $ac_executable_extensions; do
  1820. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  1821. ac_cv_prog_AWK="$ac_prog"
  1822. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  1823. break 2
  1824. fi
  1825. done
  1826. done
  1827. IFS=$as_save_IFS
  1828. fi
  1829. fi
  1830. AWK=$ac_cv_prog_AWK
  1831. if test -n "$AWK"; then
  1832. { echo "$as_me:$LINENO: result: $AWK" >&5
  1833. echo "${ECHO_T}$AWK" >&6; }
  1834. else
  1835. { echo "$as_me:$LINENO: result: no" >&5
  1836. echo "${ECHO_T}no" >&6; }
  1837. fi
  1838. test -n "$AWK" && break
  1839. done
  1840. { echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
  1841. echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; }
  1842. set x ${MAKE-make}; ac_make=`echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
  1843. if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
  1844. echo $ECHO_N "(cached) $ECHO_C" >&6
  1845. else
  1846. cat >conftest.make <<\_ACEOF
  1847. SHELL = /bin/sh
  1848. all:
  1849. @echo '@@@%%%=$(MAKE)=@@@%%%'
  1850. _ACEOF
  1851. # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
  1852. case `${MAKE-make} -f conftest.make 2>/dev/null` in
  1853. *@@@%%%=?*=@@@%%%*)
  1854. eval ac_cv_prog_make_${ac_make}_set=yes;;
  1855. *)
  1856. eval ac_cv_prog_make_${ac_make}_set=no;;
  1857. esac
  1858. rm -f conftest.make
  1859. fi
  1860. if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
  1861. { echo "$as_me:$LINENO: result: yes" >&5
  1862. echo "${ECHO_T}yes" >&6; }
  1863. SET_MAKE=
  1864. else
  1865. { echo "$as_me:$LINENO: result: no" >&5
  1866. echo "${ECHO_T}no" >&6; }
  1867. SET_MAKE="MAKE=${MAKE-make}"
  1868. fi
  1869. rm -rf .tst 2>/dev/null
  1870. mkdir .tst 2>/dev/null
  1871. if test -d .tst; then
  1872. am__leading_dot=.
  1873. else
  1874. am__leading_dot=_
  1875. fi
  1876. rmdir .tst 2>/dev/null
  1877. # test to see if srcdir already configured
  1878. if test "`cd $srcdir && pwd`" != "`pwd`" &&
  1879. test -f $srcdir/config.status; then
  1880. { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
  1881. echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
  1882. { (exit 1); exit 1; }; }
  1883. fi
  1884. # test whether we have cygpath
  1885. if test -z "$CYGPATH_W"; then
  1886. if (cygpath --version) >/dev/null 2>/dev/null; then
  1887. CYGPATH_W='cygpath -w'
  1888. else
  1889. CYGPATH_W=echo
  1890. fi
  1891. fi
  1892. # Define the identity of the package.
  1893. PACKAGE='aria2c'
  1894. VERSION='0.11.1'
  1895. cat >>confdefs.h <<_ACEOF
  1896. #define PACKAGE "$PACKAGE"
  1897. _ACEOF
  1898. cat >>confdefs.h <<_ACEOF
  1899. #define VERSION "$VERSION"
  1900. _ACEOF
  1901. # Some tools Automake needs.
  1902. ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
  1903. AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
  1904. AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
  1905. AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
  1906. MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
  1907. install_sh=${install_sh-"$am_aux_dir/install-sh"}
  1908. # Installed binaries are usually stripped using `strip' when the user
  1909. # run `make install-strip'. However `strip' might not be the right
  1910. # tool to use in cross-compilation environments, therefore Automake
  1911. # will honor the `STRIP' environment variable to overrule this program.
  1912. if test "$cross_compiling" != no; then
  1913. if test -n "$ac_tool_prefix"; then
  1914. # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
  1915. set dummy ${ac_tool_prefix}strip; ac_word=$2
  1916. { echo "$as_me:$LINENO: checking for $ac_word" >&5
  1917. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  1918. if test "${ac_cv_prog_STRIP+set}" = set; then
  1919. echo $ECHO_N "(cached) $ECHO_C" >&6
  1920. else
  1921. if test -n "$STRIP"; then
  1922. ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
  1923. else
  1924. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  1925. for as_dir in $PATH
  1926. do
  1927. IFS=$as_save_IFS
  1928. test -z "$as_dir" && as_dir=.
  1929. for ac_exec_ext in '' $ac_executable_extensions; do
  1930. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  1931. ac_cv_prog_STRIP="${ac_tool_prefix}strip"
  1932. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  1933. break 2
  1934. fi
  1935. done
  1936. done
  1937. IFS=$as_save_IFS
  1938. fi
  1939. fi
  1940. STRIP=$ac_cv_prog_STRIP
  1941. if test -n "$STRIP"; then
  1942. { echo "$as_me:$LINENO: result: $STRIP" >&5
  1943. echo "${ECHO_T}$STRIP" >&6; }
  1944. else
  1945. { echo "$as_me:$LINENO: result: no" >&5
  1946. echo "${ECHO_T}no" >&6; }
  1947. fi
  1948. fi
  1949. if test -z "$ac_cv_prog_STRIP"; then
  1950. ac_ct_STRIP=$STRIP
  1951. # Extract the first word of "strip", so it can be a program name with args.
  1952. set dummy strip; ac_word=$2
  1953. { echo "$as_me:$LINENO: checking for $ac_word" >&5
  1954. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  1955. if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
  1956. echo $ECHO_N "(cached) $ECHO_C" >&6
  1957. else
  1958. if test -n "$ac_ct_STRIP"; then
  1959. ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
  1960. else
  1961. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  1962. for as_dir in $PATH
  1963. do
  1964. IFS=$as_save_IFS
  1965. test -z "$as_dir" && as_dir=.
  1966. for ac_exec_ext in '' $ac_executable_extensions; do
  1967. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  1968. ac_cv_prog_ac_ct_STRIP="strip"
  1969. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  1970. break 2
  1971. fi
  1972. done
  1973. done
  1974. IFS=$as_save_IFS
  1975. fi
  1976. fi
  1977. ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
  1978. if test -n "$ac_ct_STRIP"; then
  1979. { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
  1980. echo "${ECHO_T}$ac_ct_STRIP" >&6; }
  1981. else
  1982. { echo "$as_me:$LINENO: result: no" >&5
  1983. echo "${ECHO_T}no" >&6; }
  1984. fi
  1985. if test "x$ac_ct_STRIP" = x; then
  1986. STRIP=":"
  1987. else
  1988. case $cross_compiling:$ac_tool_warned in
  1989. yes:)
  1990. { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
  1991. whose name does not start with the host triplet. If you think this
  1992. configuration is useful to you, please write to autoconf@gnu.org." >&5
  1993. echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
  1994. whose name does not start with the host triplet. If you think this
  1995. configuration is useful to you, please write to autoconf@gnu.org." >&2;}
  1996. ac_tool_warned=yes ;;
  1997. esac
  1998. STRIP=$ac_ct_STRIP
  1999. fi
  2000. else
  2001. STRIP="$ac_cv_prog_STRIP"
  2002. fi
  2003. fi
  2004. INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
  2005. # We need awk for the "check" target. The system "awk" is bad on
  2006. # some platforms.
  2007. # Always define AMTAR for backward compatibility.
  2008. AMTAR=${AMTAR-"${am_missing_run}tar"}
  2009. am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
  2010. # Check whether --with-cppunit-prefix was given.
  2011. if test "${with_cppunit_prefix+set}" = set; then
  2012. withval=$with_cppunit_prefix; cppunit_config_prefix="$withval"
  2013. else
  2014. cppunit_config_prefix=""
  2015. fi
  2016. # Check whether --with-cppunit-exec-prefix was given.
  2017. if test "${with_cppunit_exec_prefix+set}" = set; then
  2018. withval=$with_cppunit_exec_prefix; cppunit_config_exec_prefix="$withval"
  2019. else
  2020. cppunit_config_exec_prefix=""
  2021. fi
  2022. if test x$cppunit_config_exec_prefix != x ; then
  2023. cppunit_config_args="$cppunit_config_args --exec-prefix=$cppunit_config_exec_prefix"
  2024. if test x${CPPUNIT_CONFIG+set} != xset ; then
  2025. CPPUNIT_CONFIG=$cppunit_config_exec_prefix/bin/cppunit-config
  2026. fi
  2027. fi
  2028. if test x$cppunit_config_prefix != x ; then
  2029. cppunit_config_args="$cppunit_config_args --prefix=$cppunit_config_prefix"
  2030. if test x${CPPUNIT_CONFIG+set} != xset ; then
  2031. CPPUNIT_CONFIG=$cppunit_config_prefix/bin/cppunit-config
  2032. fi
  2033. fi
  2034. # Extract the first word of "cppunit-config", so it can be a program name with args.
  2035. set dummy cppunit-config; ac_word=$2
  2036. { echo "$as_me:$LINENO: checking for $ac_word" >&5
  2037. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  2038. if test "${ac_cv_path_CPPUNIT_CONFIG+set}" = set; then
  2039. echo $ECHO_N "(cached) $ECHO_C" >&6
  2040. else
  2041. case $CPPUNIT_CONFIG in
  2042. [\\/]* | ?:[\\/]*)
  2043. ac_cv_path_CPPUNIT_CONFIG="$CPPUNIT_CONFIG" # Let the user override the test with a path.
  2044. ;;
  2045. *)
  2046. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2047. for as_dir in $PATH
  2048. do
  2049. IFS=$as_save_IFS
  2050. test -z "$as_dir" && as_dir=.
  2051. for ac_exec_ext in '' $ac_executable_extensions; do
  2052. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  2053. ac_cv_path_CPPUNIT_CONFIG="$as_dir/$ac_word$ac_exec_ext"
  2054. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  2055. break 2
  2056. fi
  2057. done
  2058. done
  2059. IFS=$as_save_IFS
  2060. test -z "$ac_cv_path_CPPUNIT_CONFIG" && ac_cv_path_CPPUNIT_CONFIG="no"
  2061. ;;
  2062. esac
  2063. fi
  2064. CPPUNIT_CONFIG=$ac_cv_path_CPPUNIT_CONFIG
  2065. if test -n "$CPPUNIT_CONFIG"; then
  2066. { echo "$as_me:$LINENO: result: $CPPUNIT_CONFIG" >&5
  2067. echo "${ECHO_T}$CPPUNIT_CONFIG" >&6; }
  2068. else
  2069. { echo "$as_me:$LINENO: result: no" >&5
  2070. echo "${ECHO_T}no" >&6; }
  2071. fi
  2072. cppunit_version_min=1.10.2
  2073. { echo "$as_me:$LINENO: checking for Cppunit - version >= $cppunit_version_min" >&5
  2074. echo $ECHO_N "checking for Cppunit - version >= $cppunit_version_min... $ECHO_C" >&6; }
  2075. no_cppunit=""
  2076. if test "$CPPUNIT_CONFIG" = "no" ; then
  2077. { echo "$as_me:$LINENO: result: no" >&5
  2078. echo "${ECHO_T}no" >&6; }
  2079. no_cppunit=yes
  2080. else
  2081. CPPUNIT_CFLAGS=`$CPPUNIT_CONFIG --cflags`
  2082. CPPUNIT_LIBS=`$CPPUNIT_CONFIG --libs`
  2083. cppunit_version=`$CPPUNIT_CONFIG --version`
  2084. cppunit_major_version=`echo $cppunit_version | \
  2085. sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
  2086. cppunit_minor_version=`echo $cppunit_version | \
  2087. sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
  2088. cppunit_micro_version=`echo $cppunit_version | \
  2089. sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
  2090. cppunit_major_min=`echo $cppunit_version_min | \
  2091. sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
  2092. if test "x${cppunit_major_min}" = "x" ; then
  2093. cppunit_major_min=0
  2094. fi
  2095. cppunit_minor_min=`echo $cppunit_version_min | \
  2096. sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
  2097. if test "x${cppunit_minor_min}" = "x" ; then
  2098. cppunit_minor_min=0
  2099. fi
  2100. cppunit_micro_min=`echo $cppunit_version_min | \
  2101. sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
  2102. if test "x${cppunit_micro_min}" = "x" ; then
  2103. cppunit_micro_min=0
  2104. fi
  2105. cppunit_version_proper=`expr \
  2106. $cppunit_major_version \> $cppunit_major_min \| \
  2107. $cppunit_major_version \= $cppunit_major_min \& \
  2108. $cppunit_minor_version \> $cppunit_minor_min \| \
  2109. $cppunit_major_version \= $cppunit_major_min \& \
  2110. $cppunit_minor_version \= $cppunit_minor_min \& \
  2111. $cppunit_micro_version \>= $cppunit_micro_min `
  2112. if test "$cppunit_version_proper" = "1" ; then
  2113. { echo "$as_me:$LINENO: result: $cppunit_major_version.$cppunit_minor_version.$cppunit_micro_version" >&5
  2114. echo "${ECHO_T}$cppunit_major_version.$cppunit_minor_version.$cppunit_micro_version" >&6; }
  2115. else
  2116. { echo "$as_me:$LINENO: result: no" >&5
  2117. echo "${ECHO_T}no" >&6; }
  2118. no_cppunit=yes
  2119. fi
  2120. fi
  2121. if test "x$no_cppunit" = x ; then
  2122. :
  2123. else
  2124. CPPUNIT_CFLAGS=""
  2125. CPPUNIT_LIBS=""
  2126. :
  2127. fi
  2128. ac_config_headers="$ac_config_headers config.h"
  2129. # Set localedir
  2130. localedir=${datadir}/locale
  2131. # Checks for arguments.
  2132. # Check whether --with-gnutls was given.
  2133. if test "${with_gnutls+set}" = set; then
  2134. withval=$with_gnutls; with_gnutls=$withval
  2135. else
  2136. with_gnutls=yes
  2137. fi
  2138. # Check whether --with-openssl was given.
  2139. if test "${with_openssl+set}" = set; then
  2140. withval=$with_openssl; with_openssl=$withval
  2141. else
  2142. with_openssl=yes
  2143. fi
  2144. # Check whether --with-libxml2 was given.
  2145. if test "${with_libxml2+set}" = set; then
  2146. withval=$with_libxml2; with_libxml2=$withval
  2147. else
  2148. with_libxml2=yes
  2149. fi
  2150. # Check whether --with-libares was given.
  2151. if test "${with_libares+set}" = set; then
  2152. withval=$with_libares; with_libares=$withval
  2153. else
  2154. with_libares=yes
  2155. fi
  2156. # Check whether --with-libcares was given.
  2157. if test "${with_libcares+set}" = set; then
  2158. withval=$with_libcares; with_libcares=$withval
  2159. else
  2160. with_libcares=yes
  2161. fi
  2162. # Check whether --enable-bittorrent was given.
  2163. if test "${enable_bittorrent+set}" = set; then
  2164. enableval=$enable_bittorrent; enable_bittorrent=$enableval
  2165. else
  2166. enable_bittorrent=yes
  2167. fi
  2168. # Check whether --enable-metalink was given.
  2169. if test "${enable_metalink+set}" = set; then
  2170. enableval=$enable_metalink; enable_metalink=$enableval
  2171. else
  2172. enable_metalink=yes
  2173. fi
  2174. # Checks for programs.
  2175. ac_ext=cpp
  2176. ac_cpp='$CXXCPP $CPPFLAGS'
  2177. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  2178. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  2179. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  2180. if test -z "$CXX"; then
  2181. if test -n "$CCC"; then
  2182. CXX=$CCC
  2183. else
  2184. if test -n "$ac_tool_prefix"; then
  2185. for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
  2186. do
  2187. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  2188. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  2189. { echo "$as_me:$LINENO: checking for $ac_word" >&5
  2190. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  2191. if test "${ac_cv_prog_CXX+set}" = set; then
  2192. echo $ECHO_N "(cached) $ECHO_C" >&6
  2193. else
  2194. if test -n "$CXX"; then
  2195. ac_cv_prog_CXX="$CXX" # Let the user override the test.
  2196. else
  2197. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2198. for as_dir in $PATH
  2199. do
  2200. IFS=$as_save_IFS
  2201. test -z "$as_dir" && as_dir=.
  2202. for ac_exec_ext in '' $ac_executable_extensions; do
  2203. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  2204. ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
  2205. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  2206. break 2
  2207. fi
  2208. done
  2209. done
  2210. IFS=$as_save_IFS
  2211. fi
  2212. fi
  2213. CXX=$ac_cv_prog_CXX
  2214. if test -n "$CXX"; then
  2215. { echo "$as_me:$LINENO: result: $CXX" >&5
  2216. echo "${ECHO_T}$CXX" >&6; }
  2217. else
  2218. { echo "$as_me:$LINENO: result: no" >&5
  2219. echo "${ECHO_T}no" >&6; }
  2220. fi
  2221. test -n "$CXX" && break
  2222. done
  2223. fi
  2224. if test -z "$CXX"; then
  2225. ac_ct_CXX=$CXX
  2226. for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
  2227. do
  2228. # Extract the first word of "$ac_prog", so it can be a program name with args.
  2229. set dummy $ac_prog; ac_word=$2
  2230. { echo "$as_me:$LINENO: checking for $ac_word" >&5
  2231. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  2232. if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
  2233. echo $ECHO_N "(cached) $ECHO_C" >&6
  2234. else
  2235. if test -n "$ac_ct_CXX"; then
  2236. ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
  2237. else
  2238. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2239. for as_dir in $PATH
  2240. do
  2241. IFS=$as_save_IFS
  2242. test -z "$as_dir" && as_dir=.
  2243. for ac_exec_ext in '' $ac_executable_extensions; do
  2244. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  2245. ac_cv_prog_ac_ct_CXX="$ac_prog"
  2246. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  2247. break 2
  2248. fi
  2249. done
  2250. done
  2251. IFS=$as_save_IFS
  2252. fi
  2253. fi
  2254. ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
  2255. if test -n "$ac_ct_CXX"; then
  2256. { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
  2257. echo "${ECHO_T}$ac_ct_CXX" >&6; }
  2258. else
  2259. { echo "$as_me:$LINENO: result: no" >&5
  2260. echo "${ECHO_T}no" >&6; }
  2261. fi
  2262. test -n "$ac_ct_CXX" && break
  2263. done
  2264. if test "x$ac_ct_CXX" = x; then
  2265. CXX="g++"
  2266. else
  2267. case $cross_compiling:$ac_tool_warned in
  2268. yes:)
  2269. { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
  2270. whose name does not start with the host triplet. If you think this
  2271. configuration is useful to you, please write to autoconf@gnu.org." >&5
  2272. echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
  2273. whose name does not start with the host triplet. If you think this
  2274. configuration is useful to you, please write to autoconf@gnu.org." >&2;}
  2275. ac_tool_warned=yes ;;
  2276. esac
  2277. CXX=$ac_ct_CXX
  2278. fi
  2279. fi
  2280. fi
  2281. fi
  2282. # Provide some information about the compiler.
  2283. echo "$as_me:$LINENO: checking for C++ compiler version" >&5
  2284. ac_compiler=`set X $ac_compile; echo $2`
  2285. { (ac_try="$ac_compiler --version >&5"
  2286. case "(($ac_try" in
  2287. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2288. *) ac_try_echo=$ac_try;;
  2289. esac
  2290. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  2291. (eval "$ac_compiler --version >&5") 2>&5
  2292. ac_status=$?
  2293. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2294. (exit $ac_status); }
  2295. { (ac_try="$ac_compiler -v >&5"
  2296. case "(($ac_try" in
  2297. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2298. *) ac_try_echo=$ac_try;;
  2299. esac
  2300. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  2301. (eval "$ac_compiler -v >&5") 2>&5
  2302. ac_status=$?
  2303. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2304. (exit $ac_status); }
  2305. { (ac_try="$ac_compiler -V >&5"
  2306. case "(($ac_try" in
  2307. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2308. *) ac_try_echo=$ac_try;;
  2309. esac
  2310. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  2311. (eval "$ac_compiler -V >&5") 2>&5
  2312. ac_status=$?
  2313. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2314. (exit $ac_status); }
  2315. cat >conftest.$ac_ext <<_ACEOF
  2316. /* confdefs.h. */
  2317. _ACEOF
  2318. cat confdefs.h >>conftest.$ac_ext
  2319. cat >>conftest.$ac_ext <<_ACEOF
  2320. /* end confdefs.h. */
  2321. int
  2322. main ()
  2323. {
  2324. ;
  2325. return 0;
  2326. }
  2327. _ACEOF
  2328. ac_clean_files_save=$ac_clean_files
  2329. ac_clean_files="$ac_clean_files a.out a.exe b.out"
  2330. # Try to create an executable without -o first, disregard a.out.
  2331. # It will help us diagnose broken compilers, and finding out an intuition
  2332. # of exeext.
  2333. { echo "$as_me:$LINENO: checking for C++ compiler default output file name" >&5
  2334. echo $ECHO_N "checking for C++ compiler default output file name... $ECHO_C" >&6; }
  2335. ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
  2336. #
  2337. # List of possible output files, starting from the most likely.
  2338. # The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
  2339. # only as a last resort. b.out is created by i960 compilers.
  2340. ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
  2341. #
  2342. # The IRIX 6 linker writes into existing files which may not be
  2343. # executable, retaining their permissions. Remove them first so a
  2344. # subsequent execution test works.
  2345. ac_rmfiles=
  2346. for ac_file in $ac_files
  2347. do
  2348. case $ac_file in
  2349. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
  2350. * ) ac_rmfiles="$ac_rmfiles $ac_file";;
  2351. esac
  2352. done
  2353. rm -f $ac_rmfiles
  2354. if { (ac_try="$ac_link_default"
  2355. case "(($ac_try" in
  2356. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2357. *) ac_try_echo=$ac_try;;
  2358. esac
  2359. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  2360. (eval "$ac_link_default") 2>&5
  2361. ac_status=$?
  2362. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2363. (exit $ac_status); }; then
  2364. # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
  2365. # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
  2366. # in a Makefile. We should not override ac_cv_exeext if it was cached,
  2367. # so that the user can short-circuit this test for compilers unknown to
  2368. # Autoconf.
  2369. for ac_file in $ac_files ''
  2370. do
  2371. test -f "$ac_file" || continue
  2372. case $ac_file in
  2373. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
  2374. ;;
  2375. [ab].out )
  2376. # We found the default executable, but exeext='' is most
  2377. # certainly right.
  2378. break;;
  2379. *.* )
  2380. if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
  2381. then :; else
  2382. ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
  2383. fi
  2384. # We set ac_cv_exeext here because the later test for it is not
  2385. # safe: cross compilers may not add the suffix if given an `-o'
  2386. # argument, so we may need to know it at that point already.
  2387. # Even if this section looks crufty: it has the advantage of
  2388. # actually working.
  2389. break;;
  2390. * )
  2391. break;;
  2392. esac
  2393. done
  2394. test "$ac_cv_exeext" = no && ac_cv_exeext=
  2395. else
  2396. ac_file=''
  2397. fi
  2398. { echo "$as_me:$LINENO: result: $ac_file" >&5
  2399. echo "${ECHO_T}$ac_file" >&6; }
  2400. if test -z "$ac_file"; then
  2401. echo "$as_me: failed program was:" >&5
  2402. sed 's/^/| /' conftest.$ac_ext >&5
  2403. { { echo "$as_me:$LINENO: error: C++ compiler cannot create executables
  2404. See \`config.log' for more details." >&5
  2405. echo "$as_me: error: C++ compiler cannot create executables
  2406. See \`config.log' for more details." >&2;}
  2407. { (exit 77); exit 77; }; }
  2408. fi
  2409. ac_exeext=$ac_cv_exeext
  2410. # Check that the compiler produces executables we can run. If not, either
  2411. # the compiler is broken, or we cross compile.
  2412. { echo "$as_me:$LINENO: checking whether the C++ compiler works" >&5
  2413. echo $ECHO_N "checking whether the C++ compiler works... $ECHO_C" >&6; }
  2414. # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
  2415. # If not cross compiling, check that we can run a simple program.
  2416. if test "$cross_compiling" != yes; then
  2417. if { ac_try='./$ac_file'
  2418. { (case "(($ac_try" in
  2419. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2420. *) ac_try_echo=$ac_try;;
  2421. esac
  2422. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  2423. (eval "$ac_try") 2>&5
  2424. ac_status=$?
  2425. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2426. (exit $ac_status); }; }; then
  2427. cross_compiling=no
  2428. else
  2429. if test "$cross_compiling" = maybe; then
  2430. cross_compiling=yes
  2431. else
  2432. { { echo "$as_me:$LINENO: error: cannot run C++ compiled programs.
  2433. If you meant to cross compile, use \`--host'.
  2434. See \`config.log' for more details." >&5
  2435. echo "$as_me: error: cannot run C++ compiled programs.
  2436. If you meant to cross compile, use \`--host'.
  2437. See \`config.log' for more details." >&2;}
  2438. { (exit 1); exit 1; }; }
  2439. fi
  2440. fi
  2441. fi
  2442. { echo "$as_me:$LINENO: result: yes" >&5
  2443. echo "${ECHO_T}yes" >&6; }
  2444. rm -f a.out a.exe conftest$ac_cv_exeext b.out
  2445. ac_clean_files=$ac_clean_files_save
  2446. # Check that the compiler produces executables we can run. If not, either
  2447. # the compiler is broken, or we cross compile.
  2448. { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
  2449. echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
  2450. { echo "$as_me:$LINENO: result: $cross_compiling" >&5
  2451. echo "${ECHO_T}$cross_compiling" >&6; }
  2452. { echo "$as_me:$LINENO: checking for suffix of executables" >&5
  2453. echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
  2454. if { (ac_try="$ac_link"
  2455. case "(($ac_try" in
  2456. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2457. *) ac_try_echo=$ac_try;;
  2458. esac
  2459. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  2460. (eval "$ac_link") 2>&5
  2461. ac_status=$?
  2462. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2463. (exit $ac_status); }; then
  2464. # If both `conftest.exe' and `conftest' are `present' (well, observable)
  2465. # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
  2466. # work properly (i.e., refer to `conftest.exe'), while it won't with
  2467. # `rm'.
  2468. for ac_file in conftest.exe conftest conftest.*; do
  2469. test -f "$ac_file" || continue
  2470. case $ac_file in
  2471. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
  2472. *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
  2473. break;;
  2474. * ) break;;
  2475. esac
  2476. done
  2477. else
  2478. { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
  2479. See \`config.log' for more details." >&5
  2480. echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
  2481. See \`config.log' for more details." >&2;}
  2482. { (exit 1); exit 1; }; }
  2483. fi
  2484. rm -f conftest$ac_cv_exeext
  2485. { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
  2486. echo "${ECHO_T}$ac_cv_exeext" >&6; }
  2487. rm -f conftest.$ac_ext
  2488. EXEEXT=$ac_cv_exeext
  2489. ac_exeext=$EXEEXT
  2490. { echo "$as_me:$LINENO: checking for suffix of object files" >&5
  2491. echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
  2492. if test "${ac_cv_objext+set}" = set; then
  2493. echo $ECHO_N "(cached) $ECHO_C" >&6
  2494. else
  2495. cat >conftest.$ac_ext <<_ACEOF
  2496. /* confdefs.h. */
  2497. _ACEOF
  2498. cat confdefs.h >>conftest.$ac_ext
  2499. cat >>conftest.$ac_ext <<_ACEOF
  2500. /* end confdefs.h. */
  2501. int
  2502. main ()
  2503. {
  2504. ;
  2505. return 0;
  2506. }
  2507. _ACEOF
  2508. rm -f conftest.o conftest.obj
  2509. if { (ac_try="$ac_compile"
  2510. case "(($ac_try" in
  2511. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2512. *) ac_try_echo=$ac_try;;
  2513. esac
  2514. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  2515. (eval "$ac_compile") 2>&5
  2516. ac_status=$?
  2517. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2518. (exit $ac_status); }; then
  2519. for ac_file in conftest.o conftest.obj conftest.*; do
  2520. test -f "$ac_file" || continue;
  2521. case $ac_file in
  2522. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
  2523. *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
  2524. break;;
  2525. esac
  2526. done
  2527. else
  2528. echo "$as_me: failed program was:" >&5
  2529. sed 's/^/| /' conftest.$ac_ext >&5
  2530. { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
  2531. See \`config.log' for more details." >&5
  2532. echo "$as_me: error: cannot compute suffix of object files: cannot compile
  2533. See \`config.log' for more details." >&2;}
  2534. { (exit 1); exit 1; }; }
  2535. fi
  2536. rm -f conftest.$ac_cv_objext conftest.$ac_ext
  2537. fi
  2538. { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
  2539. echo "${ECHO_T}$ac_cv_objext" >&6; }
  2540. OBJEXT=$ac_cv_objext
  2541. ac_objext=$OBJEXT
  2542. { echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
  2543. echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; }
  2544. if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
  2545. echo $ECHO_N "(cached) $ECHO_C" >&6
  2546. else
  2547. cat >conftest.$ac_ext <<_ACEOF
  2548. /* confdefs.h. */
  2549. _ACEOF
  2550. cat confdefs.h >>conftest.$ac_ext
  2551. cat >>conftest.$ac_ext <<_ACEOF
  2552. /* end confdefs.h. */
  2553. int
  2554. main ()
  2555. {
  2556. #ifndef __GNUC__
  2557. choke me
  2558. #endif
  2559. ;
  2560. return 0;
  2561. }
  2562. _ACEOF
  2563. rm -f conftest.$ac_objext
  2564. if { (ac_try="$ac_compile"
  2565. case "(($ac_try" in
  2566. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2567. *) ac_try_echo=$ac_try;;
  2568. esac
  2569. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  2570. (eval "$ac_compile") 2>conftest.er1
  2571. ac_status=$?
  2572. grep -v '^ *+' conftest.er1 >conftest.err
  2573. rm -f conftest.er1
  2574. cat conftest.err >&5
  2575. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2576. (exit $ac_status); } && {
  2577. test -z "$ac_cxx_werror_flag" ||
  2578. test ! -s conftest.err
  2579. } && test -s conftest.$ac_objext; then
  2580. ac_compiler_gnu=yes
  2581. else
  2582. echo "$as_me: failed program was:" >&5
  2583. sed 's/^/| /' conftest.$ac_ext >&5
  2584. ac_compiler_gnu=no
  2585. fi
  2586. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  2587. ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
  2588. fi
  2589. { echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
  2590. echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; }
  2591. GXX=`test $ac_compiler_gnu = yes && echo yes`
  2592. ac_test_CXXFLAGS=${CXXFLAGS+set}
  2593. ac_save_CXXFLAGS=$CXXFLAGS
  2594. { echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
  2595. echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; }
  2596. if test "${ac_cv_prog_cxx_g+set}" = set; then
  2597. echo $ECHO_N "(cached) $ECHO_C" >&6
  2598. else
  2599. ac_save_cxx_werror_flag=$ac_cxx_werror_flag
  2600. ac_cxx_werror_flag=yes
  2601. ac_cv_prog_cxx_g=no
  2602. CXXFLAGS="-g"
  2603. cat >conftest.$ac_ext <<_ACEOF
  2604. /* confdefs.h. */
  2605. _ACEOF
  2606. cat confdefs.h >>conftest.$ac_ext
  2607. cat >>conftest.$ac_ext <<_ACEOF
  2608. /* end confdefs.h. */
  2609. int
  2610. main ()
  2611. {
  2612. ;
  2613. return 0;
  2614. }
  2615. _ACEOF
  2616. rm -f conftest.$ac_objext
  2617. if { (ac_try="$ac_compile"
  2618. case "(($ac_try" in
  2619. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2620. *) ac_try_echo=$ac_try;;
  2621. esac
  2622. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  2623. (eval "$ac_compile") 2>conftest.er1
  2624. ac_status=$?
  2625. grep -v '^ *+' conftest.er1 >conftest.err
  2626. rm -f conftest.er1
  2627. cat conftest.err >&5
  2628. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2629. (exit $ac_status); } && {
  2630. test -z "$ac_cxx_werror_flag" ||
  2631. test ! -s conftest.err
  2632. } && test -s conftest.$ac_objext; then
  2633. ac_cv_prog_cxx_g=yes
  2634. else
  2635. echo "$as_me: failed program was:" >&5
  2636. sed 's/^/| /' conftest.$ac_ext >&5
  2637. CXXFLAGS=""
  2638. cat >conftest.$ac_ext <<_ACEOF
  2639. /* confdefs.h. */
  2640. _ACEOF
  2641. cat confdefs.h >>conftest.$ac_ext
  2642. cat >>conftest.$ac_ext <<_ACEOF
  2643. /* end confdefs.h. */
  2644. int
  2645. main ()
  2646. {
  2647. ;
  2648. return 0;
  2649. }
  2650. _ACEOF
  2651. rm -f conftest.$ac_objext
  2652. if { (ac_try="$ac_compile"
  2653. case "(($ac_try" in
  2654. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2655. *) ac_try_echo=$ac_try;;
  2656. esac
  2657. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  2658. (eval "$ac_compile") 2>conftest.er1
  2659. ac_status=$?
  2660. grep -v '^ *+' conftest.er1 >conftest.err
  2661. rm -f conftest.er1
  2662. cat conftest.err >&5
  2663. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2664. (exit $ac_status); } && {
  2665. test -z "$ac_cxx_werror_flag" ||
  2666. test ! -s conftest.err
  2667. } && test -s conftest.$ac_objext; then
  2668. :
  2669. else
  2670. echo "$as_me: failed program was:" >&5
  2671. sed 's/^/| /' conftest.$ac_ext >&5
  2672. ac_cxx_werror_flag=$ac_save_cxx_werror_flag
  2673. CXXFLAGS="-g"
  2674. cat >conftest.$ac_ext <<_ACEOF
  2675. /* confdefs.h. */
  2676. _ACEOF
  2677. cat confdefs.h >>conftest.$ac_ext
  2678. cat >>conftest.$ac_ext <<_ACEOF
  2679. /* end confdefs.h. */
  2680. int
  2681. main ()
  2682. {
  2683. ;
  2684. return 0;
  2685. }
  2686. _ACEOF
  2687. rm -f conftest.$ac_objext
  2688. if { (ac_try="$ac_compile"
  2689. case "(($ac_try" in
  2690. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2691. *) ac_try_echo=$ac_try;;
  2692. esac
  2693. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  2694. (eval "$ac_compile") 2>conftest.er1
  2695. ac_status=$?
  2696. grep -v '^ *+' conftest.er1 >conftest.err
  2697. rm -f conftest.er1
  2698. cat conftest.err >&5
  2699. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2700. (exit $ac_status); } && {
  2701. test -z "$ac_cxx_werror_flag" ||
  2702. test ! -s conftest.err
  2703. } && test -s conftest.$ac_objext; then
  2704. ac_cv_prog_cxx_g=yes
  2705. else
  2706. echo "$as_me: failed program was:" >&5
  2707. sed 's/^/| /' conftest.$ac_ext >&5
  2708. fi
  2709. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  2710. fi
  2711. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  2712. fi
  2713. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  2714. ac_cxx_werror_flag=$ac_save_cxx_werror_flag
  2715. fi
  2716. { echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
  2717. echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; }
  2718. if test "$ac_test_CXXFLAGS" = set; then
  2719. CXXFLAGS=$ac_save_CXXFLAGS
  2720. elif test $ac_cv_prog_cxx_g = yes; then
  2721. if test "$GXX" = yes; then
  2722. CXXFLAGS="-g -O2"
  2723. else
  2724. CXXFLAGS="-g"
  2725. fi
  2726. else
  2727. if test "$GXX" = yes; then
  2728. CXXFLAGS="-O2"
  2729. else
  2730. CXXFLAGS=
  2731. fi
  2732. fi
  2733. ac_ext=c
  2734. ac_cpp='$CPP $CPPFLAGS'
  2735. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  2736. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  2737. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  2738. DEPDIR="${am__leading_dot}deps"
  2739. ac_config_commands="$ac_config_commands depfiles"
  2740. am_make=${MAKE-make}
  2741. cat > confinc << 'END'
  2742. am__doit:
  2743. @echo done
  2744. .PHONY: am__doit
  2745. END
  2746. # If we don't find an include directive, just comment out the code.
  2747. { echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
  2748. echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6; }
  2749. am__include="#"
  2750. am__quote=
  2751. _am_result=none
  2752. # First try GNU make style include.
  2753. echo "include confinc" > confmf
  2754. # We grep out `Entering directory' and `Leaving directory'
  2755. # messages which can occur if `w' ends up in MAKEFLAGS.
  2756. # In particular we don't look at `^make:' because GNU make might
  2757. # be invoked under some other name (usually "gmake"), in which
  2758. # case it prints its new name instead of `make'.
  2759. if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
  2760. am__include=include
  2761. am__quote=
  2762. _am_result=GNU
  2763. fi
  2764. # Now try BSD make style include.
  2765. if test "$am__include" = "#"; then
  2766. echo '.include "confinc"' > confmf
  2767. if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
  2768. am__include=.include
  2769. am__quote="\""
  2770. _am_result=BSD
  2771. fi
  2772. fi
  2773. { echo "$as_me:$LINENO: result: $_am_result" >&5
  2774. echo "${ECHO_T}$_am_result" >&6; }
  2775. rm -f confinc confmf
  2776. # Check whether --enable-dependency-tracking was given.
  2777. if test "${enable_dependency_tracking+set}" = set; then
  2778. enableval=$enable_dependency_tracking;
  2779. fi
  2780. if test "x$enable_dependency_tracking" != xno; then
  2781. am_depcomp="$ac_aux_dir/depcomp"
  2782. AMDEPBACKSLASH='\'
  2783. fi
  2784. if test "x$enable_dependency_tracking" != xno; then
  2785. AMDEP_TRUE=
  2786. AMDEP_FALSE='#'
  2787. else
  2788. AMDEP_TRUE='#'
  2789. AMDEP_FALSE=
  2790. fi
  2791. depcc="$CXX" am_compiler_list=
  2792. { echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
  2793. echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; }
  2794. if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then
  2795. echo $ECHO_N "(cached) $ECHO_C" >&6
  2796. else
  2797. if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
  2798. # We make a subdir and do the tests there. Otherwise we can end up
  2799. # making bogus files that we don't know about and never remove. For
  2800. # instance it was reported that on HP-UX the gcc test will end up
  2801. # making a dummy file named `D' -- because `-MD' means `put the output
  2802. # in D'.
  2803. mkdir conftest.dir
  2804. # Copy depcomp to subdir because otherwise we won't find it if we're
  2805. # using a relative directory.
  2806. cp "$am_depcomp" conftest.dir
  2807. cd conftest.dir
  2808. # We will build objects and dependencies in a subdirectory because
  2809. # it helps to detect inapplicable dependency modes. For instance
  2810. # both Tru64's cc and ICC support -MD to output dependencies as a
  2811. # side effect of compilation, but ICC will put the dependencies in
  2812. # the current directory while Tru64 will put them in the object
  2813. # directory.
  2814. mkdir sub
  2815. am_cv_CXX_dependencies_compiler_type=none
  2816. if test "$am_compiler_list" = ""; then
  2817. am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
  2818. fi
  2819. for depmode in $am_compiler_list; do
  2820. # Setup a source with many dependencies, because some compilers
  2821. # like to wrap large dependency lists on column 80 (with \), and
  2822. # we should not choose a depcomp mode which is confused by this.
  2823. #
  2824. # We need to recreate these files for each test, as the compiler may
  2825. # overwrite some of them when testing with obscure command lines.
  2826. # This happens at least with the AIX C compiler.
  2827. : > sub/conftest.c
  2828. for i in 1 2 3 4 5 6; do
  2829. echo '#include "conftst'$i'.h"' >> sub/conftest.c
  2830. # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
  2831. # Solaris 8's {/usr,}/bin/sh.
  2832. touch sub/conftst$i.h
  2833. done
  2834. echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
  2835. case $depmode in
  2836. nosideeffect)
  2837. # after this tag, mechanisms are not by side-effect, so they'll
  2838. # only be used when explicitly requested
  2839. if test "x$enable_dependency_tracking" = xyes; then
  2840. continue
  2841. else
  2842. break
  2843. fi
  2844. ;;
  2845. none) break ;;
  2846. esac
  2847. # We check with `-c' and `-o' for the sake of the "dashmstdout"
  2848. # mode. It turns out that the SunPro C++ compiler does not properly
  2849. # handle `-M -o', and we need to detect this.
  2850. if depmode=$depmode \
  2851. source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
  2852. depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
  2853. $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
  2854. >/dev/null 2>conftest.err &&
  2855. grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
  2856. grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
  2857. ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
  2858. # icc doesn't choke on unknown options, it will just issue warnings
  2859. # or remarks (even with -Werror). So we grep stderr for any message
  2860. # that says an option was ignored or not supported.
  2861. # When given -MP, icc 7.0 and 7.1 complain thusly:
  2862. # icc: Command line warning: ignoring option '-M'; no argument required
  2863. # The diagnosis changed in icc 8.0:
  2864. # icc: Command line remark: option '-MP' not supported
  2865. if (grep 'ignoring option' conftest.err ||
  2866. grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
  2867. am_cv_CXX_dependencies_compiler_type=$depmode
  2868. break
  2869. fi
  2870. fi
  2871. done
  2872. cd ..
  2873. rm -rf conftest.dir
  2874. else
  2875. am_cv_CXX_dependencies_compiler_type=none
  2876. fi
  2877. fi
  2878. { echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5
  2879. echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6; }
  2880. CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
  2881. if
  2882. test "x$enable_dependency_tracking" != xno \
  2883. && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
  2884. am__fastdepCXX_TRUE=
  2885. am__fastdepCXX_FALSE='#'
  2886. else
  2887. am__fastdepCXX_TRUE='#'
  2888. am__fastdepCXX_FALSE=
  2889. fi
  2890. ac_ext=c
  2891. ac_cpp='$CPP $CPPFLAGS'
  2892. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  2893. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  2894. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  2895. if test -n "$ac_tool_prefix"; then
  2896. # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
  2897. set dummy ${ac_tool_prefix}gcc; ac_word=$2
  2898. { echo "$as_me:$LINENO: checking for $ac_word" >&5
  2899. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  2900. if test "${ac_cv_prog_CC+set}" = set; then
  2901. echo $ECHO_N "(cached) $ECHO_C" >&6
  2902. else
  2903. if test -n "$CC"; then
  2904. ac_cv_prog_CC="$CC" # Let the user override the test.
  2905. else
  2906. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2907. for as_dir in $PATH
  2908. do
  2909. IFS=$as_save_IFS
  2910. test -z "$as_dir" && as_dir=.
  2911. for ac_exec_ext in '' $ac_executable_extensions; do
  2912. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  2913. ac_cv_prog_CC="${ac_tool_prefix}gcc"
  2914. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  2915. break 2
  2916. fi
  2917. done
  2918. done
  2919. IFS=$as_save_IFS
  2920. fi
  2921. fi
  2922. CC=$ac_cv_prog_CC
  2923. if test -n "$CC"; then
  2924. { echo "$as_me:$LINENO: result: $CC" >&5
  2925. echo "${ECHO_T}$CC" >&6; }
  2926. else
  2927. { echo "$as_me:$LINENO: result: no" >&5
  2928. echo "${ECHO_T}no" >&6; }
  2929. fi
  2930. fi
  2931. if test -z "$ac_cv_prog_CC"; then
  2932. ac_ct_CC=$CC
  2933. # Extract the first word of "gcc", so it can be a program name with args.
  2934. set dummy gcc; ac_word=$2
  2935. { echo "$as_me:$LINENO: checking for $ac_word" >&5
  2936. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  2937. if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
  2938. echo $ECHO_N "(cached) $ECHO_C" >&6
  2939. else
  2940. if test -n "$ac_ct_CC"; then
  2941. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  2942. else
  2943. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2944. for as_dir in $PATH
  2945. do
  2946. IFS=$as_save_IFS
  2947. test -z "$as_dir" && as_dir=.
  2948. for ac_exec_ext in '' $ac_executable_extensions; do
  2949. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  2950. ac_cv_prog_ac_ct_CC="gcc"
  2951. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  2952. break 2
  2953. fi
  2954. done
  2955. done
  2956. IFS=$as_save_IFS
  2957. fi
  2958. fi
  2959. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  2960. if test -n "$ac_ct_CC"; then
  2961. { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
  2962. echo "${ECHO_T}$ac_ct_CC" >&6; }
  2963. else
  2964. { echo "$as_me:$LINENO: result: no" >&5
  2965. echo "${ECHO_T}no" >&6; }
  2966. fi
  2967. if test "x$ac_ct_CC" = x; then
  2968. CC=""
  2969. else
  2970. case $cross_compiling:$ac_tool_warned in
  2971. yes:)
  2972. { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
  2973. whose name does not start with the host triplet. If you think this
  2974. configuration is useful to you, please write to autoconf@gnu.org." >&5
  2975. echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
  2976. whose name does not start with the host triplet. If you think this
  2977. configuration is useful to you, please write to autoconf@gnu.org." >&2;}
  2978. ac_tool_warned=yes ;;
  2979. esac
  2980. CC=$ac_ct_CC
  2981. fi
  2982. else
  2983. CC="$ac_cv_prog_CC"
  2984. fi
  2985. if test -z "$CC"; then
  2986. if test -n "$ac_tool_prefix"; then
  2987. # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
  2988. set dummy ${ac_tool_prefix}cc; ac_word=$2
  2989. { echo "$as_me:$LINENO: checking for $ac_word" >&5
  2990. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  2991. if test "${ac_cv_prog_CC+set}" = set; then
  2992. echo $ECHO_N "(cached) $ECHO_C" >&6
  2993. else
  2994. if test -n "$CC"; then
  2995. ac_cv_prog_CC="$CC" # Let the user override the test.
  2996. else
  2997. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2998. for as_dir in $PATH
  2999. do
  3000. IFS=$as_save_IFS
  3001. test -z "$as_dir" && as_dir=.
  3002. for ac_exec_ext in '' $ac_executable_extensions; do
  3003. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  3004. ac_cv_prog_CC="${ac_tool_prefix}cc"
  3005. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  3006. break 2
  3007. fi
  3008. done
  3009. done
  3010. IFS=$as_save_IFS
  3011. fi
  3012. fi
  3013. CC=$ac_cv_prog_CC
  3014. if test -n "$CC"; then
  3015. { echo "$as_me:$LINENO: result: $CC" >&5
  3016. echo "${ECHO_T}$CC" >&6; }
  3017. else
  3018. { echo "$as_me:$LINENO: result: no" >&5
  3019. echo "${ECHO_T}no" >&6; }
  3020. fi
  3021. fi
  3022. fi
  3023. if test -z "$CC"; then
  3024. # Extract the first word of "cc", so it can be a program name with args.
  3025. set dummy cc; ac_word=$2
  3026. { echo "$as_me:$LINENO: checking for $ac_word" >&5
  3027. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  3028. if test "${ac_cv_prog_CC+set}" = set; then
  3029. echo $ECHO_N "(cached) $ECHO_C" >&6
  3030. else
  3031. if test -n "$CC"; then
  3032. ac_cv_prog_CC="$CC" # Let the user override the test.
  3033. else
  3034. ac_prog_rejected=no
  3035. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3036. for as_dir in $PATH
  3037. do
  3038. IFS=$as_save_IFS
  3039. test -z "$as_dir" && as_dir=.
  3040. for ac_exec_ext in '' $ac_executable_extensions; do
  3041. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  3042. if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
  3043. ac_prog_rejected=yes
  3044. continue
  3045. fi
  3046. ac_cv_prog_CC="cc"
  3047. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  3048. break 2
  3049. fi
  3050. done
  3051. done
  3052. IFS=$as_save_IFS
  3053. if test $ac_prog_rejected = yes; then
  3054. # We found a bogon in the path, so make sure we never use it.
  3055. set dummy $ac_cv_prog_CC
  3056. shift
  3057. if test $# != 0; then
  3058. # We chose a different compiler from the bogus one.
  3059. # However, it has the same basename, so the bogon will be chosen
  3060. # first if we set CC to just the basename; use the full file name.
  3061. shift
  3062. ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
  3063. fi
  3064. fi
  3065. fi
  3066. fi
  3067. CC=$ac_cv_prog_CC
  3068. if test -n "$CC"; then
  3069. { echo "$as_me:$LINENO: result: $CC" >&5
  3070. echo "${ECHO_T}$CC" >&6; }
  3071. else
  3072. { echo "$as_me:$LINENO: result: no" >&5
  3073. echo "${ECHO_T}no" >&6; }
  3074. fi
  3075. fi
  3076. if test -z "$CC"; then
  3077. if test -n "$ac_tool_prefix"; then
  3078. for ac_prog in cl.exe
  3079. do
  3080. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  3081. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  3082. { echo "$as_me:$LINENO: checking for $ac_word" >&5
  3083. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  3084. if test "${ac_cv_prog_CC+set}" = set; then
  3085. echo $ECHO_N "(cached) $ECHO_C" >&6
  3086. else
  3087. if test -n "$CC"; then
  3088. ac_cv_prog_CC="$CC" # Let the user override the test.
  3089. else
  3090. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3091. for as_dir in $PATH
  3092. do
  3093. IFS=$as_save_IFS
  3094. test -z "$as_dir" && as_dir=.
  3095. for ac_exec_ext in '' $ac_executable_extensions; do
  3096. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  3097. ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
  3098. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  3099. break 2
  3100. fi
  3101. done
  3102. done
  3103. IFS=$as_save_IFS
  3104. fi
  3105. fi
  3106. CC=$ac_cv_prog_CC
  3107. if test -n "$CC"; then
  3108. { echo "$as_me:$LINENO: result: $CC" >&5
  3109. echo "${ECHO_T}$CC" >&6; }
  3110. else
  3111. { echo "$as_me:$LINENO: result: no" >&5
  3112. echo "${ECHO_T}no" >&6; }
  3113. fi
  3114. test -n "$CC" && break
  3115. done
  3116. fi
  3117. if test -z "$CC"; then
  3118. ac_ct_CC=$CC
  3119. for ac_prog in cl.exe
  3120. do
  3121. # Extract the first word of "$ac_prog", so it can be a program name with args.
  3122. set dummy $ac_prog; ac_word=$2
  3123. { echo "$as_me:$LINENO: checking for $ac_word" >&5
  3124. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  3125. if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
  3126. echo $ECHO_N "(cached) $ECHO_C" >&6
  3127. else
  3128. if test -n "$ac_ct_CC"; then
  3129. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  3130. else
  3131. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3132. for as_dir in $PATH
  3133. do
  3134. IFS=$as_save_IFS
  3135. test -z "$as_dir" && as_dir=.
  3136. for ac_exec_ext in '' $ac_executable_extensions; do
  3137. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  3138. ac_cv_prog_ac_ct_CC="$ac_prog"
  3139. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  3140. break 2
  3141. fi
  3142. done
  3143. done
  3144. IFS=$as_save_IFS
  3145. fi
  3146. fi
  3147. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  3148. if test -n "$ac_ct_CC"; then
  3149. { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
  3150. echo "${ECHO_T}$ac_ct_CC" >&6; }
  3151. else
  3152. { echo "$as_me:$LINENO: result: no" >&5
  3153. echo "${ECHO_T}no" >&6; }
  3154. fi
  3155. test -n "$ac_ct_CC" && break
  3156. done
  3157. if test "x$ac_ct_CC" = x; then
  3158. CC=""
  3159. else
  3160. case $cross_compiling:$ac_tool_warned in
  3161. yes:)
  3162. { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
  3163. whose name does not start with the host triplet. If you think this
  3164. configuration is useful to you, please write to autoconf@gnu.org." >&5
  3165. echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
  3166. whose name does not start with the host triplet. If you think this
  3167. configuration is useful to you, please write to autoconf@gnu.org." >&2;}
  3168. ac_tool_warned=yes ;;
  3169. esac
  3170. CC=$ac_ct_CC
  3171. fi
  3172. fi
  3173. fi
  3174. test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
  3175. See \`config.log' for more details." >&5
  3176. echo "$as_me: error: no acceptable C compiler found in \$PATH
  3177. See \`config.log' for more details." >&2;}
  3178. { (exit 1); exit 1; }; }
  3179. # Provide some information about the compiler.
  3180. echo "$as_me:$LINENO: checking for C compiler version" >&5
  3181. ac_compiler=`set X $ac_compile; echo $2`
  3182. { (ac_try="$ac_compiler --version >&5"
  3183. case "(($ac_try" in
  3184. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3185. *) ac_try_echo=$ac_try;;
  3186. esac
  3187. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  3188. (eval "$ac_compiler --version >&5") 2>&5
  3189. ac_status=$?
  3190. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3191. (exit $ac_status); }
  3192. { (ac_try="$ac_compiler -v >&5"
  3193. case "(($ac_try" in
  3194. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3195. *) ac_try_echo=$ac_try;;
  3196. esac
  3197. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  3198. (eval "$ac_compiler -v >&5") 2>&5
  3199. ac_status=$?
  3200. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3201. (exit $ac_status); }
  3202. { (ac_try="$ac_compiler -V >&5"
  3203. case "(($ac_try" in
  3204. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3205. *) ac_try_echo=$ac_try;;
  3206. esac
  3207. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  3208. (eval "$ac_compiler -V >&5") 2>&5
  3209. ac_status=$?
  3210. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3211. (exit $ac_status); }
  3212. { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
  3213. echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
  3214. if test "${ac_cv_c_compiler_gnu+set}" = set; then
  3215. echo $ECHO_N "(cached) $ECHO_C" >&6
  3216. else
  3217. cat >conftest.$ac_ext <<_ACEOF
  3218. /* confdefs.h. */
  3219. _ACEOF
  3220. cat confdefs.h >>conftest.$ac_ext
  3221. cat >>conftest.$ac_ext <<_ACEOF
  3222. /* end confdefs.h. */
  3223. int
  3224. main ()
  3225. {
  3226. #ifndef __GNUC__
  3227. choke me
  3228. #endif
  3229. ;
  3230. return 0;
  3231. }
  3232. _ACEOF
  3233. rm -f conftest.$ac_objext
  3234. if { (ac_try="$ac_compile"
  3235. case "(($ac_try" in
  3236. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3237. *) ac_try_echo=$ac_try;;
  3238. esac
  3239. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  3240. (eval "$ac_compile") 2>conftest.er1
  3241. ac_status=$?
  3242. grep -v '^ *+' conftest.er1 >conftest.err
  3243. rm -f conftest.er1
  3244. cat conftest.err >&5
  3245. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3246. (exit $ac_status); } && {
  3247. test -z "$ac_c_werror_flag" ||
  3248. test ! -s conftest.err
  3249. } && test -s conftest.$ac_objext; then
  3250. ac_compiler_gnu=yes
  3251. else
  3252. echo "$as_me: failed program was:" >&5
  3253. sed 's/^/| /' conftest.$ac_ext >&5
  3254. ac_compiler_gnu=no
  3255. fi
  3256. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3257. ac_cv_c_compiler_gnu=$ac_compiler_gnu
  3258. fi
  3259. { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
  3260. echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
  3261. GCC=`test $ac_compiler_gnu = yes && echo yes`
  3262. ac_test_CFLAGS=${CFLAGS+set}
  3263. ac_save_CFLAGS=$CFLAGS
  3264. { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
  3265. echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
  3266. if test "${ac_cv_prog_cc_g+set}" = set; then
  3267. echo $ECHO_N "(cached) $ECHO_C" >&6
  3268. else
  3269. ac_save_c_werror_flag=$ac_c_werror_flag
  3270. ac_c_werror_flag=yes
  3271. ac_cv_prog_cc_g=no
  3272. CFLAGS="-g"
  3273. cat >conftest.$ac_ext <<_ACEOF
  3274. /* confdefs.h. */
  3275. _ACEOF
  3276. cat confdefs.h >>conftest.$ac_ext
  3277. cat >>conftest.$ac_ext <<_ACEOF
  3278. /* end confdefs.h. */
  3279. int
  3280. main ()
  3281. {
  3282. ;
  3283. return 0;
  3284. }
  3285. _ACEOF
  3286. rm -f conftest.$ac_objext
  3287. if { (ac_try="$ac_compile"
  3288. case "(($ac_try" in
  3289. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3290. *) ac_try_echo=$ac_try;;
  3291. esac
  3292. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  3293. (eval "$ac_compile") 2>conftest.er1
  3294. ac_status=$?
  3295. grep -v '^ *+' conftest.er1 >conftest.err
  3296. rm -f conftest.er1
  3297. cat conftest.err >&5
  3298. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3299. (exit $ac_status); } && {
  3300. test -z "$ac_c_werror_flag" ||
  3301. test ! -s conftest.err
  3302. } && test -s conftest.$ac_objext; then
  3303. ac_cv_prog_cc_g=yes
  3304. else
  3305. echo "$as_me: failed program was:" >&5
  3306. sed 's/^/| /' conftest.$ac_ext >&5
  3307. CFLAGS=""
  3308. cat >conftest.$ac_ext <<_ACEOF
  3309. /* confdefs.h. */
  3310. _ACEOF
  3311. cat confdefs.h >>conftest.$ac_ext
  3312. cat >>conftest.$ac_ext <<_ACEOF
  3313. /* end confdefs.h. */
  3314. int
  3315. main ()
  3316. {
  3317. ;
  3318. return 0;
  3319. }
  3320. _ACEOF
  3321. rm -f conftest.$ac_objext
  3322. if { (ac_try="$ac_compile"
  3323. case "(($ac_try" in
  3324. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3325. *) ac_try_echo=$ac_try;;
  3326. esac
  3327. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  3328. (eval "$ac_compile") 2>conftest.er1
  3329. ac_status=$?
  3330. grep -v '^ *+' conftest.er1 >conftest.err
  3331. rm -f conftest.er1
  3332. cat conftest.err >&5
  3333. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3334. (exit $ac_status); } && {
  3335. test -z "$ac_c_werror_flag" ||
  3336. test ! -s conftest.err
  3337. } && test -s conftest.$ac_objext; then
  3338. :
  3339. else
  3340. echo "$as_me: failed program was:" >&5
  3341. sed 's/^/| /' conftest.$ac_ext >&5
  3342. ac_c_werror_flag=$ac_save_c_werror_flag
  3343. CFLAGS="-g"
  3344. cat >conftest.$ac_ext <<_ACEOF
  3345. /* confdefs.h. */
  3346. _ACEOF
  3347. cat confdefs.h >>conftest.$ac_ext
  3348. cat >>conftest.$ac_ext <<_ACEOF
  3349. /* end confdefs.h. */
  3350. int
  3351. main ()
  3352. {
  3353. ;
  3354. return 0;
  3355. }
  3356. _ACEOF
  3357. rm -f conftest.$ac_objext
  3358. if { (ac_try="$ac_compile"
  3359. case "(($ac_try" in
  3360. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3361. *) ac_try_echo=$ac_try;;
  3362. esac
  3363. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  3364. (eval "$ac_compile") 2>conftest.er1
  3365. ac_status=$?
  3366. grep -v '^ *+' conftest.er1 >conftest.err
  3367. rm -f conftest.er1
  3368. cat conftest.err >&5
  3369. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3370. (exit $ac_status); } && {
  3371. test -z "$ac_c_werror_flag" ||
  3372. test ! -s conftest.err
  3373. } && test -s conftest.$ac_objext; then
  3374. ac_cv_prog_cc_g=yes
  3375. else
  3376. echo "$as_me: failed program was:" >&5
  3377. sed 's/^/| /' conftest.$ac_ext >&5
  3378. fi
  3379. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3380. fi
  3381. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3382. fi
  3383. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3384. ac_c_werror_flag=$ac_save_c_werror_flag
  3385. fi
  3386. { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
  3387. echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
  3388. if test "$ac_test_CFLAGS" = set; then
  3389. CFLAGS=$ac_save_CFLAGS
  3390. elif test $ac_cv_prog_cc_g = yes; then
  3391. if test "$GCC" = yes; then
  3392. CFLAGS="-g -O2"
  3393. else
  3394. CFLAGS="-g"
  3395. fi
  3396. else
  3397. if test "$GCC" = yes; then
  3398. CFLAGS="-O2"
  3399. else
  3400. CFLAGS=
  3401. fi
  3402. fi
  3403. { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
  3404. echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
  3405. if test "${ac_cv_prog_cc_c89+set}" = set; then
  3406. echo $ECHO_N "(cached) $ECHO_C" >&6
  3407. else
  3408. ac_cv_prog_cc_c89=no
  3409. ac_save_CC=$CC
  3410. cat >conftest.$ac_ext <<_ACEOF
  3411. /* confdefs.h. */
  3412. _ACEOF
  3413. cat confdefs.h >>conftest.$ac_ext
  3414. cat >>conftest.$ac_ext <<_ACEOF
  3415. /* end confdefs.h. */
  3416. #include <stdarg.h>
  3417. #include <stdio.h>
  3418. #include <sys/types.h>
  3419. #include <sys/stat.h>
  3420. /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
  3421. struct buf { int x; };
  3422. FILE * (*rcsopen) (struct buf *, struct stat *, int);
  3423. static char *e (p, i)
  3424. char **p;
  3425. int i;
  3426. {
  3427. return p[i];
  3428. }
  3429. static char *f (char * (*g) (char **, int), char **p, ...)
  3430. {
  3431. char *s;
  3432. va_list v;
  3433. va_start (v,p);
  3434. s = g (p, va_arg (v,int));
  3435. va_end (v);
  3436. return s;
  3437. }
  3438. /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
  3439. function prototypes and stuff, but not '\xHH' hex character constants.
  3440. These don't provoke an error unfortunately, instead are silently treated
  3441. as 'x'. The following induces an error, until -std is added to get
  3442. proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
  3443. array size at least. It's necessary to write '\x00'==0 to get something
  3444. that's true only with -std. */
  3445. int osf4_cc_array ['\x00' == 0 ? 1 : -1];
  3446. /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
  3447. inside strings and character constants. */
  3448. #define FOO(x) 'x'
  3449. int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
  3450. int test (int i, double x);
  3451. struct s1 {int (*f) (int a);};
  3452. struct s2 {int (*f) (double a);};
  3453. int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
  3454. int argc;
  3455. char **argv;
  3456. int
  3457. main ()
  3458. {
  3459. return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
  3460. ;
  3461. return 0;
  3462. }
  3463. _ACEOF
  3464. for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
  3465. -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
  3466. do
  3467. CC="$ac_save_CC $ac_arg"
  3468. rm -f conftest.$ac_objext
  3469. if { (ac_try="$ac_compile"
  3470. case "(($ac_try" in
  3471. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3472. *) ac_try_echo=$ac_try;;
  3473. esac
  3474. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  3475. (eval "$ac_compile") 2>conftest.er1
  3476. ac_status=$?
  3477. grep -v '^ *+' conftest.er1 >conftest.err
  3478. rm -f conftest.er1
  3479. cat conftest.err >&5
  3480. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3481. (exit $ac_status); } && {
  3482. test -z "$ac_c_werror_flag" ||
  3483. test ! -s conftest.err
  3484. } && test -s conftest.$ac_objext; then
  3485. ac_cv_prog_cc_c89=$ac_arg
  3486. else
  3487. echo "$as_me: failed program was:" >&5
  3488. sed 's/^/| /' conftest.$ac_ext >&5
  3489. fi
  3490. rm -f core conftest.err conftest.$ac_objext
  3491. test "x$ac_cv_prog_cc_c89" != "xno" && break
  3492. done
  3493. rm -f conftest.$ac_ext
  3494. CC=$ac_save_CC
  3495. fi
  3496. # AC_CACHE_VAL
  3497. case "x$ac_cv_prog_cc_c89" in
  3498. x)
  3499. { echo "$as_me:$LINENO: result: none needed" >&5
  3500. echo "${ECHO_T}none needed" >&6; } ;;
  3501. xno)
  3502. { echo "$as_me:$LINENO: result: unsupported" >&5
  3503. echo "${ECHO_T}unsupported" >&6; } ;;
  3504. *)
  3505. CC="$CC $ac_cv_prog_cc_c89"
  3506. { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
  3507. echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
  3508. esac
  3509. ac_ext=c
  3510. ac_cpp='$CPP $CPPFLAGS'
  3511. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  3512. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  3513. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  3514. depcc="$CC" am_compiler_list=
  3515. { echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
  3516. echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; }
  3517. if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
  3518. echo $ECHO_N "(cached) $ECHO_C" >&6
  3519. else
  3520. if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
  3521. # We make a subdir and do the tests there. Otherwise we can end up
  3522. # making bogus files that we don't know about and never remove. For
  3523. # instance it was reported that on HP-UX the gcc test will end up
  3524. # making a dummy file named `D' -- because `-MD' means `put the output
  3525. # in D'.
  3526. mkdir conftest.dir
  3527. # Copy depcomp to subdir because otherwise we won't find it if we're
  3528. # using a relative directory.
  3529. cp "$am_depcomp" conftest.dir
  3530. cd conftest.dir
  3531. # We will build objects and dependencies in a subdirectory because
  3532. # it helps to detect inapplicable dependency modes. For instance
  3533. # both Tru64's cc and ICC support -MD to output dependencies as a
  3534. # side effect of compilation, but ICC will put the dependencies in
  3535. # the current directory while Tru64 will put them in the object
  3536. # directory.
  3537. mkdir sub
  3538. am_cv_CC_dependencies_compiler_type=none
  3539. if test "$am_compiler_list" = ""; then
  3540. am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
  3541. fi
  3542. for depmode in $am_compiler_list; do
  3543. # Setup a source with many dependencies, because some compilers
  3544. # like to wrap large dependency lists on column 80 (with \), and
  3545. # we should not choose a depcomp mode which is confused by this.
  3546. #
  3547. # We need to recreate these files for each test, as the compiler may
  3548. # overwrite some of them when testing with obscure command lines.
  3549. # This happens at least with the AIX C compiler.
  3550. : > sub/conftest.c
  3551. for i in 1 2 3 4 5 6; do
  3552. echo '#include "conftst'$i'.h"' >> sub/conftest.c
  3553. # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
  3554. # Solaris 8's {/usr,}/bin/sh.
  3555. touch sub/conftst$i.h
  3556. done
  3557. echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
  3558. case $depmode in
  3559. nosideeffect)
  3560. # after this tag, mechanisms are not by side-effect, so they'll
  3561. # only be used when explicitly requested
  3562. if test "x$enable_dependency_tracking" = xyes; then
  3563. continue
  3564. else
  3565. break
  3566. fi
  3567. ;;
  3568. none) break ;;
  3569. esac
  3570. # We check with `-c' and `-o' for the sake of the "dashmstdout"
  3571. # mode. It turns out that the SunPro C++ compiler does not properly
  3572. # handle `-M -o', and we need to detect this.
  3573. if depmode=$depmode \
  3574. source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
  3575. depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
  3576. $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
  3577. >/dev/null 2>conftest.err &&
  3578. grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
  3579. grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
  3580. ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
  3581. # icc doesn't choke on unknown options, it will just issue warnings
  3582. # or remarks (even with -Werror). So we grep stderr for any message
  3583. # that says an option was ignored or not supported.
  3584. # When given -MP, icc 7.0 and 7.1 complain thusly:
  3585. # icc: Command line warning: ignoring option '-M'; no argument required
  3586. # The diagnosis changed in icc 8.0:
  3587. # icc: Command line remark: option '-MP' not supported
  3588. if (grep 'ignoring option' conftest.err ||
  3589. grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
  3590. am_cv_CC_dependencies_compiler_type=$depmode
  3591. break
  3592. fi
  3593. fi
  3594. done
  3595. cd ..
  3596. rm -rf conftest.dir
  3597. else
  3598. am_cv_CC_dependencies_compiler_type=none
  3599. fi
  3600. fi
  3601. { echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
  3602. echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6; }
  3603. CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
  3604. if
  3605. test "x$enable_dependency_tracking" != xno \
  3606. && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
  3607. am__fastdepCC_TRUE=
  3608. am__fastdepCC_FALSE='#'
  3609. else
  3610. am__fastdepCC_TRUE='#'
  3611. am__fastdepCC_FALSE=
  3612. fi
  3613. # Find a good install program. We prefer a C program (faster),
  3614. # so one script is as good as another. But avoid the broken or
  3615. # incompatible versions:
  3616. # SysV /etc/install, /usr/sbin/install
  3617. # SunOS /usr/etc/install
  3618. # IRIX /sbin/install
  3619. # AIX /bin/install
  3620. # AmigaOS /C/install, which installs bootblocks on floppy discs
  3621. # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
  3622. # AFS /usr/afsws/bin/install, which mishandles nonexistent args
  3623. # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
  3624. # OS/2's system install, which has a completely different semantic
  3625. # ./install, which can be erroneously created by make from ./install.sh.
  3626. { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
  3627. echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
  3628. if test -z "$INSTALL"; then
  3629. if test "${ac_cv_path_install+set}" = set; then
  3630. echo $ECHO_N "(cached) $ECHO_C" >&6
  3631. else
  3632. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3633. for as_dir in $PATH
  3634. do
  3635. IFS=$as_save_IFS
  3636. test -z "$as_dir" && as_dir=.
  3637. # Account for people who put trailing slashes in PATH elements.
  3638. case $as_dir/ in
  3639. ./ | .// | /cC/* | \
  3640. /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
  3641. ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
  3642. /usr/ucb/* ) ;;
  3643. *)
  3644. # OSF1 and SCO ODT 3.0 have their own names for install.
  3645. # Don't use installbsd from OSF since it installs stuff as root
  3646. # by default.
  3647. for ac_prog in ginstall scoinst install; do
  3648. for ac_exec_ext in '' $ac_executable_extensions; do
  3649. if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
  3650. if test $ac_prog = install &&
  3651. grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
  3652. # AIX install. It has an incompatible calling convention.
  3653. :
  3654. elif test $ac_prog = install &&
  3655. grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
  3656. # program-specific install script used by HP pwplus--don't use.
  3657. :
  3658. else
  3659. ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
  3660. break 3
  3661. fi
  3662. fi
  3663. done
  3664. done
  3665. ;;
  3666. esac
  3667. done
  3668. IFS=$as_save_IFS
  3669. fi
  3670. if test "${ac_cv_path_install+set}" = set; then
  3671. INSTALL=$ac_cv_path_install
  3672. else
  3673. # As a last resort, use the slow shell script. Don't cache a
  3674. # value for INSTALL within a source directory, because that will
  3675. # break other packages using the cache if that directory is
  3676. # removed, or if the value is a relative name.
  3677. INSTALL=$ac_install_sh
  3678. fi
  3679. fi
  3680. { echo "$as_me:$LINENO: result: $INSTALL" >&5
  3681. echo "${ECHO_T}$INSTALL" >&6; }
  3682. # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
  3683. # It thinks the first close brace ends the variable substitution.
  3684. test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
  3685. test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
  3686. test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
  3687. if test -n "$ac_tool_prefix"; then
  3688. # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
  3689. set dummy ${ac_tool_prefix}ranlib; ac_word=$2
  3690. { echo "$as_me:$LINENO: checking for $ac_word" >&5
  3691. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  3692. if test "${ac_cv_prog_RANLIB+set}" = set; then
  3693. echo $ECHO_N "(cached) $ECHO_C" >&6
  3694. else
  3695. if test -n "$RANLIB"; then
  3696. ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
  3697. else
  3698. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3699. for as_dir in $PATH
  3700. do
  3701. IFS=$as_save_IFS
  3702. test -z "$as_dir" && as_dir=.
  3703. for ac_exec_ext in '' $ac_executable_extensions; do
  3704. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  3705. ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
  3706. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  3707. break 2
  3708. fi
  3709. done
  3710. done
  3711. IFS=$as_save_IFS
  3712. fi
  3713. fi
  3714. RANLIB=$ac_cv_prog_RANLIB
  3715. if test -n "$RANLIB"; then
  3716. { echo "$as_me:$LINENO: result: $RANLIB" >&5
  3717. echo "${ECHO_T}$RANLIB" >&6; }
  3718. else
  3719. { echo "$as_me:$LINENO: result: no" >&5
  3720. echo "${ECHO_T}no" >&6; }
  3721. fi
  3722. fi
  3723. if test -z "$ac_cv_prog_RANLIB"; then
  3724. ac_ct_RANLIB=$RANLIB
  3725. # Extract the first word of "ranlib", so it can be a program name with args.
  3726. set dummy ranlib; ac_word=$2
  3727. { echo "$as_me:$LINENO: checking for $ac_word" >&5
  3728. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  3729. if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
  3730. echo $ECHO_N "(cached) $ECHO_C" >&6
  3731. else
  3732. if test -n "$ac_ct_RANLIB"; then
  3733. ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
  3734. else
  3735. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3736. for as_dir in $PATH
  3737. do
  3738. IFS=$as_save_IFS
  3739. test -z "$as_dir" && as_dir=.
  3740. for ac_exec_ext in '' $ac_executable_extensions; do
  3741. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  3742. ac_cv_prog_ac_ct_RANLIB="ranlib"
  3743. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  3744. break 2
  3745. fi
  3746. done
  3747. done
  3748. IFS=$as_save_IFS
  3749. fi
  3750. fi
  3751. ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
  3752. if test -n "$ac_ct_RANLIB"; then
  3753. { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
  3754. echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
  3755. else
  3756. { echo "$as_me:$LINENO: result: no" >&5
  3757. echo "${ECHO_T}no" >&6; }
  3758. fi
  3759. if test "x$ac_ct_RANLIB" = x; then
  3760. RANLIB=":"
  3761. else
  3762. case $cross_compiling:$ac_tool_warned in
  3763. yes:)
  3764. { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
  3765. whose name does not start with the host triplet. If you think this
  3766. configuration is useful to you, please write to autoconf@gnu.org." >&5
  3767. echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
  3768. whose name does not start with the host triplet. If you think this
  3769. configuration is useful to you, please write to autoconf@gnu.org." >&2;}
  3770. ac_tool_warned=yes ;;
  3771. esac
  3772. RANLIB=$ac_ct_RANLIB
  3773. fi
  3774. else
  3775. RANLIB="$ac_cv_prog_RANLIB"
  3776. fi
  3777. for ac_prog in 'bison -y' byacc
  3778. do
  3779. # Extract the first word of "$ac_prog", so it can be a program name with args.
  3780. set dummy $ac_prog; ac_word=$2
  3781. { echo "$as_me:$LINENO: checking for $ac_word" >&5
  3782. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  3783. if test "${ac_cv_prog_YACC+set}" = set; then
  3784. echo $ECHO_N "(cached) $ECHO_C" >&6
  3785. else
  3786. if test -n "$YACC"; then
  3787. ac_cv_prog_YACC="$YACC" # Let the user override the test.
  3788. else
  3789. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3790. for as_dir in $PATH
  3791. do
  3792. IFS=$as_save_IFS
  3793. test -z "$as_dir" && as_dir=.
  3794. for ac_exec_ext in '' $ac_executable_extensions; do
  3795. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  3796. ac_cv_prog_YACC="$ac_prog"
  3797. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  3798. break 2
  3799. fi
  3800. done
  3801. done
  3802. IFS=$as_save_IFS
  3803. fi
  3804. fi
  3805. YACC=$ac_cv_prog_YACC
  3806. if test -n "$YACC"; then
  3807. { echo "$as_me:$LINENO: result: $YACC" >&5
  3808. echo "${ECHO_T}$YACC" >&6; }
  3809. else
  3810. { echo "$as_me:$LINENO: result: no" >&5
  3811. echo "${ECHO_T}no" >&6; }
  3812. fi
  3813. test -n "$YACC" && break
  3814. done
  3815. test -n "$YACC" || YACC="yacc"
  3816. # Checks for libraries.
  3817. if test "x$with_libxml2" = "xyes"; then
  3818. # Check whether --with-xml-prefix was given.
  3819. if test "${with_xml_prefix+set}" = set; then
  3820. withval=$with_xml_prefix; xml_config_prefix="$withval"
  3821. else
  3822. xml_config_prefix=""
  3823. fi
  3824. # Check whether --with-xml-exec-prefix was given.
  3825. if test "${with_xml_exec_prefix+set}" = set; then
  3826. withval=$with_xml_exec_prefix; xml_config_exec_prefix="$withval"
  3827. else
  3828. xml_config_exec_prefix=""
  3829. fi
  3830. # Check whether --enable-xmltest was given.
  3831. if test "${enable_xmltest+set}" = set; then
  3832. enableval=$enable_xmltest;
  3833. else
  3834. enable_xmltest=yes
  3835. fi
  3836. if test x$xml_config_exec_prefix != x ; then
  3837. xml_config_args="$xml_config_args"
  3838. if test x${XML2_CONFIG+set} != xset ; then
  3839. XML2_CONFIG=$xml_config_exec_prefix/bin/xml2-config
  3840. fi
  3841. fi
  3842. if test x$xml_config_prefix != x ; then
  3843. xml_config_args="$xml_config_args --prefix=$xml_config_prefix"
  3844. if test x${XML2_CONFIG+set} != xset ; then
  3845. XML2_CONFIG=$xml_config_prefix/bin/xml2-config
  3846. fi
  3847. fi
  3848. # Extract the first word of "xml2-config", so it can be a program name with args.
  3849. set dummy xml2-config; ac_word=$2
  3850. { echo "$as_me:$LINENO: checking for $ac_word" >&5
  3851. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  3852. if test "${ac_cv_path_XML2_CONFIG+set}" = set; then
  3853. echo $ECHO_N "(cached) $ECHO_C" >&6
  3854. else
  3855. case $XML2_CONFIG in
  3856. [\\/]* | ?:[\\/]*)
  3857. ac_cv_path_XML2_CONFIG="$XML2_CONFIG" # Let the user override the test with a path.
  3858. ;;
  3859. *)
  3860. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3861. for as_dir in $PATH
  3862. do
  3863. IFS=$as_save_IFS
  3864. test -z "$as_dir" && as_dir=.
  3865. for ac_exec_ext in '' $ac_executable_extensions; do
  3866. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  3867. ac_cv_path_XML2_CONFIG="$as_dir/$ac_word$ac_exec_ext"
  3868. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  3869. break 2
  3870. fi
  3871. done
  3872. done
  3873. IFS=$as_save_IFS
  3874. test -z "$ac_cv_path_XML2_CONFIG" && ac_cv_path_XML2_CONFIG="no"
  3875. ;;
  3876. esac
  3877. fi
  3878. XML2_CONFIG=$ac_cv_path_XML2_CONFIG
  3879. if test -n "$XML2_CONFIG"; then
  3880. { echo "$as_me:$LINENO: result: $XML2_CONFIG" >&5
  3881. echo "${ECHO_T}$XML2_CONFIG" >&6; }
  3882. else
  3883. { echo "$as_me:$LINENO: result: no" >&5
  3884. echo "${ECHO_T}no" >&6; }
  3885. fi
  3886. min_xml_version=2.6.24
  3887. { echo "$as_me:$LINENO: checking for libxml - version >= $min_xml_version" >&5
  3888. echo $ECHO_N "checking for libxml - version >= $min_xml_version... $ECHO_C" >&6; }
  3889. no_xml=""
  3890. if test "$XML2_CONFIG" = "no" ; then
  3891. no_xml=yes
  3892. else
  3893. XML_CPPFLAGS=`$XML2_CONFIG $xml_config_args --cflags`
  3894. XML_LIBS=`$XML2_CONFIG $xml_config_args --libs`
  3895. xml_config_major_version=`$XML2_CONFIG $xml_config_args --version | \
  3896. sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
  3897. xml_config_minor_version=`$XML2_CONFIG $xml_config_args --version | \
  3898. sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
  3899. xml_config_micro_version=`$XML2_CONFIG $xml_config_args --version | \
  3900. sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
  3901. if test "x$enable_xmltest" = "xyes" ; then
  3902. ac_save_CPPFLAGS="$CPPFLAGS"
  3903. ac_save_LIBS="$LIBS"
  3904. CPPFLAGS="$CPPFLAGS $XML_CPPFLAGS"
  3905. LIBS="$XML_LIBS $LIBS"
  3906. rm -f conf.xmltest
  3907. if test "$cross_compiling" = yes; then
  3908. echo $ac_n "cross compiling; assumed OK... $ac_c"
  3909. else
  3910. cat >conftest.$ac_ext <<_ACEOF
  3911. /* confdefs.h. */
  3912. _ACEOF
  3913. cat confdefs.h >>conftest.$ac_ext
  3914. cat >>conftest.$ac_ext <<_ACEOF
  3915. /* end confdefs.h. */
  3916. #include <stdlib.h>
  3917. #include <stdio.h>
  3918. #include <string.h>
  3919. #include <libxml/xmlversion.h>
  3920. int
  3921. main()
  3922. {
  3923. int xml_major_version, xml_minor_version, xml_micro_version;
  3924. int major, minor, micro;
  3925. char *tmp_version;
  3926. system("touch conf.xmltest");
  3927. /* Capture xml2-config output via autoconf/configure variables */
  3928. /* HP/UX 9 (%@#!) writes to sscanf strings */
  3929. tmp_version = (char *)strdup("$min_xml_version");
  3930. if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, &micro) != 3) {
  3931. printf("%s, bad version string from xml2-config\n", "$min_xml_version");
  3932. exit(1);
  3933. }
  3934. free(tmp_version);
  3935. /* Capture the version information from the header files */
  3936. tmp_version = (char *)strdup(LIBXML_DOTTED_VERSION);
  3937. if (sscanf(tmp_version, "%d.%d.%d", &xml_major_version, &xml_minor_version, &xml_micro_version) != 3) {
  3938. printf("%s, bad version string from libxml includes\n", "LIBXML_DOTTED_VERSION");
  3939. exit(1);
  3940. }
  3941. free(tmp_version);
  3942. /* Compare xml2-config output to the libxml headers */
  3943. if ((xml_major_version != $xml_config_major_version) ||
  3944. (xml_minor_version != $xml_config_minor_version) ||
  3945. (xml_micro_version != $xml_config_micro_version))
  3946. {
  3947. printf("*** libxml header files (version %d.%d.%d) do not match\n",
  3948. xml_major_version, xml_minor_version, xml_micro_version);
  3949. printf("*** xml2-config (version %d.%d.%d)\n",
  3950. $xml_config_major_version, $xml_config_minor_version, $xml_config_micro_version);
  3951. return 1;
  3952. }
  3953. /* Compare the headers to the library to make sure we match */
  3954. /* Less than ideal -- doesn't provide us with return value feedback,
  3955. * only exits if there's a serious mismatch between header and library.
  3956. */
  3957. LIBXML_TEST_VERSION;
  3958. /* Test that the library is greater than our minimum version */
  3959. if ((xml_major_version > major) ||
  3960. ((xml_major_version == major) && (xml_minor_version > minor)) ||
  3961. ((xml_major_version == major) && (xml_minor_version == minor) &&
  3962. (xml_micro_version >= micro)))
  3963. {
  3964. return 0;
  3965. }
  3966. else
  3967. {
  3968. printf("\n*** An old version of libxml (%d.%d.%d) was found.\n",
  3969. xml_major_version, xml_minor_version, xml_micro_version);
  3970. printf("*** You need a version of libxml newer than %d.%d.%d. The latest version of\n",
  3971. major, minor, micro);
  3972. printf("*** libxml is always available from ftp://ftp.xmlsoft.org.\n");
  3973. printf("***\n");
  3974. printf("*** If you have already installed a sufficiently new version, this error\n");
  3975. printf("*** probably means that the wrong copy of the xml2-config shell script is\n");
  3976. printf("*** being found. The easiest way to fix this is to remove the old version\n");
  3977. printf("*** of LIBXML, but you can also set the XML2_CONFIG environment to point to the\n");
  3978. printf("*** correct copy of xml2-config. (In this case, you will have to\n");
  3979. printf("*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf\n");
  3980. printf("*** so that the correct libraries are found at run-time))\n");
  3981. }
  3982. return 1;
  3983. }
  3984. _ACEOF
  3985. rm -f conftest$ac_exeext
  3986. if { (ac_try="$ac_link"
  3987. case "(($ac_try" in
  3988. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3989. *) ac_try_echo=$ac_try;;
  3990. esac
  3991. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  3992. (eval "$ac_link") 2>&5
  3993. ac_status=$?
  3994. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3995. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  3996. { (case "(($ac_try" in
  3997. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3998. *) ac_try_echo=$ac_try;;
  3999. esac
  4000. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  4001. (eval "$ac_try") 2>&5
  4002. ac_status=$?
  4003. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4004. (exit $ac_status); }; }; then
  4005. :
  4006. else
  4007. echo "$as_me: program exited with status $ac_status" >&5
  4008. echo "$as_me: failed program was:" >&5
  4009. sed 's/^/| /' conftest.$ac_ext >&5
  4010. ( exit $ac_status )
  4011. no_xml=yes
  4012. fi
  4013. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  4014. fi
  4015. CPPFLAGS="$ac_save_CPPFLAGS"
  4016. LIBS="$ac_save_LIBS"
  4017. fi
  4018. fi
  4019. if test "x$no_xml" = x ; then
  4020. { echo "$as_me:$LINENO: result: yes (version $xml_config_major_version.$xml_config_minor_version.$xml_config_micro_version)" >&5
  4021. echo "${ECHO_T}yes (version $xml_config_major_version.$xml_config_minor_version.$xml_config_micro_version)" >&6; }
  4022. have_libxml2=yes
  4023. else
  4024. { echo "$as_me:$LINENO: result: no" >&5
  4025. echo "${ECHO_T}no" >&6; }
  4026. if test "$XML2_CONFIG" = "no" ; then
  4027. echo "*** The xml2-config script installed by LIBXML could not be found"
  4028. echo "*** If libxml was installed in PREFIX, make sure PREFIX/bin is in"
  4029. echo "*** your path, or set the XML2_CONFIG environment variable to the"
  4030. echo "*** full path to xml2-config."
  4031. else
  4032. if test -f conf.xmltest ; then
  4033. :
  4034. else
  4035. echo "*** Could not run libxml test program, checking why..."
  4036. CPPFLAGS="$CPPFLAGS $XML_CPPFLAGS"
  4037. LIBS="$LIBS $XML_LIBS"
  4038. cat >conftest.$ac_ext <<_ACEOF
  4039. /* confdefs.h. */
  4040. _ACEOF
  4041. cat confdefs.h >>conftest.$ac_ext
  4042. cat >>conftest.$ac_ext <<_ACEOF
  4043. /* end confdefs.h. */
  4044. #include <libxml/xmlversion.h>
  4045. #include <stdio.h>
  4046. int
  4047. main ()
  4048. {
  4049. LIBXML_TEST_VERSION; return 0;
  4050. ;
  4051. return 0;
  4052. }
  4053. _ACEOF
  4054. rm -f conftest.$ac_objext conftest$ac_exeext
  4055. if { (ac_try="$ac_link"
  4056. case "(($ac_try" in
  4057. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  4058. *) ac_try_echo=$ac_try;;
  4059. esac
  4060. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  4061. (eval "$ac_link") 2>conftest.er1
  4062. ac_status=$?
  4063. grep -v '^ *+' conftest.er1 >conftest.err
  4064. rm -f conftest.er1
  4065. cat conftest.err >&5
  4066. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4067. (exit $ac_status); } && {
  4068. test -z "$ac_c_werror_flag" ||
  4069. test ! -s conftest.err
  4070. } && test -s conftest$ac_exeext &&
  4071. $as_test_x conftest$ac_exeext; then
  4072. echo "*** The test program compiled, but did not run. This usually means"
  4073. echo "*** that the run-time linker is not finding LIBXML or finding the wrong"
  4074. echo "*** version of LIBXML. If it is not finding LIBXML, you'll need to set your"
  4075. echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
  4076. echo "*** to the installed location Also, make sure you have run ldconfig if that"
  4077. echo "*** is required on your system"
  4078. echo "***"
  4079. echo "*** If you have an old version installed, it is best to remove it, although"
  4080. echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
  4081. else
  4082. echo "$as_me: failed program was:" >&5
  4083. sed 's/^/| /' conftest.$ac_ext >&5
  4084. echo "*** The test program failed to compile or link. See the file config.log for the"
  4085. echo "*** exact error that occured. This usually means LIBXML was incorrectly installed"
  4086. echo "*** or that you have moved LIBXML since it was installed. In the latter case, you"
  4087. echo "*** may want to edit the xml2-config script: $XML2_CONFIG"
  4088. fi
  4089. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  4090. conftest$ac_exeext conftest.$ac_ext
  4091. CPPFLAGS="$ac_save_CPPFLAGS"
  4092. LIBS="$ac_save_LIBS"
  4093. fi
  4094. fi
  4095. XML_CPPFLAGS=""
  4096. XML_LIBS=""
  4097. :
  4098. fi
  4099. rm -f conf.xmltest
  4100. if test "x$have_libxml2" = "xyes"; then
  4101. cat >>confdefs.h <<\_ACEOF
  4102. #define HAVE_LIBXML2 1
  4103. _ACEOF
  4104. fi
  4105. fi
  4106. if test "x$with_gnutls" = "xyes"; then
  4107. # Check whether --with-libgnutls-prefix was given.
  4108. if test "${with_libgnutls_prefix+set}" = set; then
  4109. withval=$with_libgnutls_prefix; libgnutls_config_prefix="$withval"
  4110. else
  4111. libgnutls_config_prefix=""
  4112. fi
  4113. if test x$libgnutls_config_prefix != x ; then
  4114. if test x${LIBGNUTLS_CONFIG+set} != xset ; then
  4115. LIBGNUTLS_CONFIG=$libgnutls_config_prefix/bin/libgnutls-config
  4116. fi
  4117. fi
  4118. # Extract the first word of "libgnutls-config", so it can be a program name with args.
  4119. set dummy libgnutls-config; ac_word=$2
  4120. { echo "$as_me:$LINENO: checking for $ac_word" >&5
  4121. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  4122. if test "${ac_cv_path_LIBGNUTLS_CONFIG+set}" = set; then
  4123. echo $ECHO_N "(cached) $ECHO_C" >&6
  4124. else
  4125. case $LIBGNUTLS_CONFIG in
  4126. [\\/]* | ?:[\\/]*)
  4127. ac_cv_path_LIBGNUTLS_CONFIG="$LIBGNUTLS_CONFIG" # Let the user override the test with a path.
  4128. ;;
  4129. *)
  4130. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4131. for as_dir in $PATH
  4132. do
  4133. IFS=$as_save_IFS
  4134. test -z "$as_dir" && as_dir=.
  4135. for ac_exec_ext in '' $ac_executable_extensions; do
  4136. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  4137. ac_cv_path_LIBGNUTLS_CONFIG="$as_dir/$ac_word$ac_exec_ext"
  4138. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  4139. break 2
  4140. fi
  4141. done
  4142. done
  4143. IFS=$as_save_IFS
  4144. test -z "$ac_cv_path_LIBGNUTLS_CONFIG" && ac_cv_path_LIBGNUTLS_CONFIG="no"
  4145. ;;
  4146. esac
  4147. fi
  4148. LIBGNUTLS_CONFIG=$ac_cv_path_LIBGNUTLS_CONFIG
  4149. if test -n "$LIBGNUTLS_CONFIG"; then
  4150. { echo "$as_me:$LINENO: result: $LIBGNUTLS_CONFIG" >&5
  4151. echo "${ECHO_T}$LIBGNUTLS_CONFIG" >&6; }
  4152. else
  4153. { echo "$as_me:$LINENO: result: no" >&5
  4154. echo "${ECHO_T}no" >&6; }
  4155. fi
  4156. min_libgnutls_version=1.2.9
  4157. { echo "$as_me:$LINENO: checking for libgnutls - version >= $min_libgnutls_version" >&5
  4158. echo $ECHO_N "checking for libgnutls - version >= $min_libgnutls_version... $ECHO_C" >&6; }
  4159. no_libgnutls=""
  4160. if test "$LIBGNUTLS_CONFIG" = "no" ; then
  4161. no_libgnutls=yes
  4162. else
  4163. LIBGNUTLS_CFLAGS=`$LIBGNUTLS_CONFIG $libgnutls_config_args --cflags`
  4164. LIBGNUTLS_LIBS=`$LIBGNUTLS_CONFIG $libgnutls_config_args --libs`
  4165. libgnutls_config_version=`$LIBGNUTLS_CONFIG $libgnutls_config_args --version`
  4166. ac_save_CFLAGS="$CFLAGS"
  4167. ac_save_LIBS="$LIBS"
  4168. CFLAGS="$CFLAGS $LIBGNUTLS_CFLAGS"
  4169. LIBS="$LIBS $LIBGNUTLS_LIBS"
  4170. rm -f conf.libgnutlstest
  4171. if test "$cross_compiling" = yes; then
  4172. echo $ac_n "cross compiling; assumed OK... $ac_c"
  4173. else
  4174. cat >conftest.$ac_ext <<_ACEOF
  4175. /* confdefs.h. */
  4176. _ACEOF
  4177. cat confdefs.h >>conftest.$ac_ext
  4178. cat >>conftest.$ac_ext <<_ACEOF
  4179. /* end confdefs.h. */
  4180. #include <stdio.h>
  4181. #include <stdlib.h>
  4182. #include <string.h>
  4183. #include <gnutls/gnutls.h>
  4184. int
  4185. main ()
  4186. {
  4187. system ("touch conf.libgnutlstest");
  4188. if( strcmp( gnutls_check_version(NULL), "$libgnutls_config_version" ) )
  4189. {
  4190. printf("\n*** 'libgnutls-config --version' returned %s, but LIBGNUTLS (%s)\n",
  4191. "$libgnutls_config_version", gnutls_check_version(NULL) );
  4192. printf("*** was found! If libgnutls-config was correct, then it is best\n");
  4193. printf("*** to remove the old version of LIBGNUTLS. You may also be able to fix the error\n");
  4194. printf("*** by modifying your LD_LIBRARY_PATH enviroment variable, or by editing\n");
  4195. printf("*** /etc/ld.so.conf. Make sure you have run ldconfig if that is\n");
  4196. printf("*** required on your system.\n");
  4197. printf("*** If libgnutls-config was wrong, set the environment variable LIBGNUTLS_CONFIG\n");
  4198. printf("*** to point to the correct copy of libgnutls-config, and remove the file config.cache\n");
  4199. printf("*** before re-running configure\n");
  4200. }
  4201. else if ( strcmp(gnutls_check_version(NULL), LIBGNUTLS_VERSION ) )
  4202. {
  4203. printf("\n*** LIBGNUTLS header file (version %s) does not match\n", LIBGNUTLS_VERSION);
  4204. printf("*** library (version %s)\n", gnutls_check_version(NULL) );
  4205. }
  4206. else
  4207. {
  4208. if ( gnutls_check_version( "$min_libgnutls_version" ) )
  4209. {
  4210. return 0;
  4211. }
  4212. else
  4213. {
  4214. printf("no\n*** An old version of LIBGNUTLS (%s) was found.\n",
  4215. gnutls_check_version(NULL) );
  4216. printf("*** You need a version of LIBGNUTLS newer than %s. The latest version of\n",
  4217. "$min_libgnutls_version" );
  4218. printf("*** LIBGNUTLS is always available from ftp://gnutls.hellug.gr/pub/gnutls.\n");
  4219. printf("*** \n");
  4220. printf("*** If you have already installed a sufficiently new version, this error\n");
  4221. printf("*** probably means that the wrong copy of the libgnutls-config shell script is\n");
  4222. printf("*** being found. The easiest way to fix this is to remove the old version\n");
  4223. printf("*** of LIBGNUTLS, but you can also set the LIBGNUTLS_CONFIG environment to point to the\n");
  4224. printf("*** correct copy of libgnutls-config. (In this case, you will have to\n");
  4225. printf("*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf\n");
  4226. printf("*** so that the correct libraries are found at run-time))\n");
  4227. }
  4228. }
  4229. return 1;
  4230. }
  4231. _ACEOF
  4232. rm -f conftest$ac_exeext
  4233. if { (ac_try="$ac_link"
  4234. case "(($ac_try" in
  4235. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  4236. *) ac_try_echo=$ac_try;;
  4237. esac
  4238. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  4239. (eval "$ac_link") 2>&5
  4240. ac_status=$?
  4241. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4242. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  4243. { (case "(($ac_try" in
  4244. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  4245. *) ac_try_echo=$ac_try;;
  4246. esac
  4247. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  4248. (eval "$ac_try") 2>&5
  4249. ac_status=$?
  4250. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4251. (exit $ac_status); }; }; then
  4252. :
  4253. else
  4254. echo "$as_me: program exited with status $ac_status" >&5
  4255. echo "$as_me: failed program was:" >&5
  4256. sed 's/^/| /' conftest.$ac_ext >&5
  4257. ( exit $ac_status )
  4258. no_libgnutls=yes
  4259. fi
  4260. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  4261. fi
  4262. CFLAGS="$ac_save_CFLAGS"
  4263. LIBS="$ac_save_LIBS"
  4264. fi
  4265. if test "x$no_libgnutls" = x ; then
  4266. { echo "$as_me:$LINENO: result: yes" >&5
  4267. echo "${ECHO_T}yes" >&6; }
  4268. have_libgnutls=yes
  4269. else
  4270. if test -f conf.libgnutlstest ; then
  4271. :
  4272. else
  4273. { echo "$as_me:$LINENO: result: no" >&5
  4274. echo "${ECHO_T}no" >&6; }
  4275. fi
  4276. if test "$LIBGNUTLS_CONFIG" = "no" ; then
  4277. echo "*** The libgnutls-config script installed by LIBGNUTLS could not be found"
  4278. echo "*** If LIBGNUTLS was installed in PREFIX, make sure PREFIX/bin is in"
  4279. echo "*** your path, or set the LIBGNUTLS_CONFIG environment variable to the"
  4280. echo "*** full path to libgnutls-config."
  4281. else
  4282. if test -f conf.libgnutlstest ; then
  4283. :
  4284. else
  4285. echo "*** Could not run libgnutls test program, checking why..."
  4286. CFLAGS="$CFLAGS $LIBGNUTLS_CFLAGS"
  4287. LIBS="$LIBS $LIBGNUTLS_LIBS"
  4288. cat >conftest.$ac_ext <<_ACEOF
  4289. /* confdefs.h. */
  4290. _ACEOF
  4291. cat confdefs.h >>conftest.$ac_ext
  4292. cat >>conftest.$ac_ext <<_ACEOF
  4293. /* end confdefs.h. */
  4294. #include <stdio.h>
  4295. #include <stdlib.h>
  4296. #include <string.h>
  4297. #include <gnutls/gnutls.h>
  4298. int
  4299. main ()
  4300. {
  4301. return !!gnutls_check_version(NULL);
  4302. ;
  4303. return 0;
  4304. }
  4305. _ACEOF
  4306. rm -f conftest.$ac_objext conftest$ac_exeext
  4307. if { (ac_try="$ac_link"
  4308. case "(($ac_try" in
  4309. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  4310. *) ac_try_echo=$ac_try;;
  4311. esac
  4312. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  4313. (eval "$ac_link") 2>conftest.er1
  4314. ac_status=$?
  4315. grep -v '^ *+' conftest.er1 >conftest.err
  4316. rm -f conftest.er1
  4317. cat conftest.err >&5
  4318. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4319. (exit $ac_status); } && {
  4320. test -z "$ac_c_werror_flag" ||
  4321. test ! -s conftest.err
  4322. } && test -s conftest$ac_exeext &&
  4323. $as_test_x conftest$ac_exeext; then
  4324. echo "*** The test program compiled, but did not run. This usually means"
  4325. echo "*** that the run-time linker is not finding LIBGNUTLS or finding the wrong"
  4326. echo "*** version of LIBGNUTLS. If it is not finding LIBGNUTLS, you'll need to set your"
  4327. echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
  4328. echo "*** to the installed location Also, make sure you have run ldconfig if that"
  4329. echo "*** is required on your system"
  4330. echo "***"
  4331. echo "*** If you have an old version installed, it is best to remove it, although"
  4332. echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
  4333. echo "***"
  4334. else
  4335. echo "$as_me: failed program was:" >&5
  4336. sed 's/^/| /' conftest.$ac_ext >&5
  4337. echo "*** The test program failed to compile or link. See the file config.log for the"
  4338. echo "*** exact error that occured. This usually means LIBGNUTLS was incorrectly installed"
  4339. echo "*** or that you have moved LIBGNUTLS since it was installed. In the latter case, you"
  4340. echo "*** may want to edit the libgnutls-config script: $LIBGNUTLS_CONFIG"
  4341. fi
  4342. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  4343. conftest$ac_exeext conftest.$ac_ext
  4344. CFLAGS="$ac_save_CFLAGS"
  4345. LIBS="$ac_save_LIBS"
  4346. fi
  4347. fi
  4348. LIBGNUTLS_CFLAGS=""
  4349. LIBGNUTLS_LIBS=""
  4350. :
  4351. fi
  4352. rm -f conf.libgnutlstest
  4353. if test "x$have_libgnutls" = "xyes"; then
  4354. cat >>confdefs.h <<\_ACEOF
  4355. #define HAVE_LIBGNUTLS 1
  4356. _ACEOF
  4357. fi
  4358. fi
  4359. if test "x$have_libgnutls" = "xyes"; then
  4360. # Check whether --with-libgcrypt-prefix was given.
  4361. if test "${with_libgcrypt_prefix+set}" = set; then
  4362. withval=$with_libgcrypt_prefix; libgcrypt_config_prefix="$withval"
  4363. else
  4364. libgcrypt_config_prefix=""
  4365. fi
  4366. if test x$libgcrypt_config_prefix != x ; then
  4367. if test x${LIBGCRYPT_CONFIG+set} != xset ; then
  4368. LIBGCRYPT_CONFIG=$libgcrypt_config_prefix/bin/libgcrypt-config
  4369. fi
  4370. fi
  4371. # Extract the first word of "libgcrypt-config", so it can be a program name with args.
  4372. set dummy libgcrypt-config; ac_word=$2
  4373. { echo "$as_me:$LINENO: checking for $ac_word" >&5
  4374. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  4375. if test "${ac_cv_path_LIBGCRYPT_CONFIG+set}" = set; then
  4376. echo $ECHO_N "(cached) $ECHO_C" >&6
  4377. else
  4378. case $LIBGCRYPT_CONFIG in
  4379. [\\/]* | ?:[\\/]*)
  4380. ac_cv_path_LIBGCRYPT_CONFIG="$LIBGCRYPT_CONFIG" # Let the user override the test with a path.
  4381. ;;
  4382. *)
  4383. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4384. for as_dir in $PATH
  4385. do
  4386. IFS=$as_save_IFS
  4387. test -z "$as_dir" && as_dir=.
  4388. for ac_exec_ext in '' $ac_executable_extensions; do
  4389. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  4390. ac_cv_path_LIBGCRYPT_CONFIG="$as_dir/$ac_word$ac_exec_ext"
  4391. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  4392. break 2
  4393. fi
  4394. done
  4395. done
  4396. IFS=$as_save_IFS
  4397. test -z "$ac_cv_path_LIBGCRYPT_CONFIG" && ac_cv_path_LIBGCRYPT_CONFIG="no"
  4398. ;;
  4399. esac
  4400. fi
  4401. LIBGCRYPT_CONFIG=$ac_cv_path_LIBGCRYPT_CONFIG
  4402. if test -n "$LIBGCRYPT_CONFIG"; then
  4403. { echo "$as_me:$LINENO: result: $LIBGCRYPT_CONFIG" >&5
  4404. echo "${ECHO_T}$LIBGCRYPT_CONFIG" >&6; }
  4405. else
  4406. { echo "$as_me:$LINENO: result: no" >&5
  4407. echo "${ECHO_T}no" >&6; }
  4408. fi
  4409. tmp=1.2.2
  4410. if echo "$tmp" | grep ':' >/dev/null 2>/dev/null ; then
  4411. req_libgcrypt_api=`echo "$tmp" | sed 's/\(.*\):\(.*\)/\1/'`
  4412. min_libgcrypt_version=`echo "$tmp" | sed 's/\(.*\):\(.*\)/\2/'`
  4413. else
  4414. req_libgcrypt_api=0
  4415. min_libgcrypt_version="$tmp"
  4416. fi
  4417. { echo "$as_me:$LINENO: checking for LIBGCRYPT - version >= $min_libgcrypt_version" >&5
  4418. echo $ECHO_N "checking for LIBGCRYPT - version >= $min_libgcrypt_version... $ECHO_C" >&6; }
  4419. ok=no
  4420. if test "$LIBGCRYPT_CONFIG" != "no" ; then
  4421. req_major=`echo $min_libgcrypt_version | \
  4422. sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\1/'`
  4423. req_minor=`echo $min_libgcrypt_version | \
  4424. sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\2/'`
  4425. req_micro=`echo $min_libgcrypt_version | \
  4426. sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\3/'`
  4427. libgcrypt_config_version=`$LIBGCRYPT_CONFIG --version`
  4428. major=`echo $libgcrypt_config_version | \
  4429. sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\).*/\1/'`
  4430. minor=`echo $libgcrypt_config_version | \
  4431. sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\).*/\2/'`
  4432. micro=`echo $libgcrypt_config_version | \
  4433. sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\).*/\3/'`
  4434. if test "$major" -gt "$req_major"; then
  4435. ok=yes
  4436. else
  4437. if test "$major" -eq "$req_major"; then
  4438. if test "$minor" -gt "$req_minor"; then
  4439. ok=yes
  4440. else
  4441. if test "$minor" -eq "$req_minor"; then
  4442. if test "$micro" -ge "$req_micro"; then
  4443. ok=yes
  4444. fi
  4445. fi
  4446. fi
  4447. fi
  4448. fi
  4449. fi
  4450. if test $ok = yes; then
  4451. { echo "$as_me:$LINENO: result: yes" >&5
  4452. echo "${ECHO_T}yes" >&6; }
  4453. else
  4454. { echo "$as_me:$LINENO: result: no" >&5
  4455. echo "${ECHO_T}no" >&6; }
  4456. fi
  4457. if test $ok = yes; then
  4458. # If we have a recent libgcrypt, we should also check that the
  4459. # API is compatible
  4460. if test "$req_libgcrypt_api" -gt 0 ; then
  4461. tmp=`$LIBGCRYPT_CONFIG --api-version 2>/dev/null || echo 0`
  4462. if test "$tmp" -gt 0 ; then
  4463. { echo "$as_me:$LINENO: checking LIBGCRYPT API version" >&5
  4464. echo $ECHO_N "checking LIBGCRYPT API version... $ECHO_C" >&6; }
  4465. if test "$req_libgcrypt_api" -eq "$tmp" ; then
  4466. { echo "$as_me:$LINENO: result: okay" >&5
  4467. echo "${ECHO_T}okay" >&6; }
  4468. else
  4469. ok=no
  4470. { echo "$as_me:$LINENO: result: does not match (want=$req_libgcrypt_api got=$tmp)" >&5
  4471. echo "${ECHO_T}does not match (want=$req_libgcrypt_api got=$tmp)" >&6; }
  4472. fi
  4473. fi
  4474. fi
  4475. fi
  4476. if test $ok = yes; then
  4477. LIBGCRYPT_CFLAGS=`$LIBGCRYPT_CONFIG --cflags`
  4478. LIBGCRYPT_LIBS=`$LIBGCRYPT_CONFIG --libs`
  4479. have_libgcrypt=yes
  4480. else
  4481. LIBGCRYPT_CFLAGS=""
  4482. LIBGCRYPT_LIBS=""
  4483. :
  4484. fi
  4485. if test "x$have_libgcrypt" = "xyes"; then
  4486. cat >>confdefs.h <<\_ACEOF
  4487. #define HAVE_LIBGCRYPT 1
  4488. _ACEOF
  4489. fi
  4490. fi
  4491. if test "x$with_openssl" = "xyes" && test "x$have_libgnutls" != "xyes"; then
  4492. # Check whether --with-openssl-prefix was given.
  4493. if test "${with_openssl_prefix+set}" = set; then
  4494. withval=$with_openssl_prefix; openssl_prefix=$withval
  4495. else
  4496. openssl_prefix=""
  4497. fi
  4498. if test "x$openssl_prefix" = "x"; then
  4499. openssl_prefix="/usr/local"
  4500. fi
  4501. openssl_prefix_lib=$openssl_prefix/lib
  4502. openssl_prefix_include=$openssl_prefix/include
  4503. LIBS_save=$LIBS
  4504. CPPFLAGS_save=$CPPFLAGS
  4505. LIBS="-L$openssl_prefix_lib $LIBS"
  4506. CPPFLAGS="-I$openssl_prefix_include $CPPFLAGS"
  4507. { echo "$as_me:$LINENO: checking for SSL_library_init in -lssl" >&5
  4508. echo $ECHO_N "checking for SSL_library_init in -lssl... $ECHO_C" >&6; }
  4509. if test "${ac_cv_lib_ssl_SSL_library_init+set}" = set; then
  4510. echo $ECHO_N "(cached) $ECHO_C" >&6
  4511. else
  4512. ac_check_lib_save_LIBS=$LIBS
  4513. LIBS="-lssl $LIBS"
  4514. cat >conftest.$ac_ext <<_ACEOF
  4515. /* confdefs.h. */
  4516. _ACEOF
  4517. cat confdefs.h >>conftest.$ac_ext
  4518. cat >>conftest.$ac_ext <<_ACEOF
  4519. /* end confdefs.h. */
  4520. /* Override any GCC internal prototype to avoid an error.
  4521. Use char because int might match the return type of a GCC
  4522. builtin and then its argument prototype would still apply. */
  4523. #ifdef __cplusplus
  4524. extern "C"
  4525. #endif
  4526. char SSL_library_init ();
  4527. int
  4528. main ()
  4529. {
  4530. return SSL_library_init ();
  4531. ;
  4532. return 0;
  4533. }
  4534. _ACEOF
  4535. rm -f conftest.$ac_objext conftest$ac_exeext
  4536. if { (ac_try="$ac_link"
  4537. case "(($ac_try" in
  4538. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  4539. *) ac_try_echo=$ac_try;;
  4540. esac
  4541. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  4542. (eval "$ac_link") 2>conftest.er1
  4543. ac_status=$?
  4544. grep -v '^ *+' conftest.er1 >conftest.err
  4545. rm -f conftest.er1
  4546. cat conftest.err >&5
  4547. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4548. (exit $ac_status); } && {
  4549. test -z "$ac_c_werror_flag" ||
  4550. test ! -s conftest.err
  4551. } && test -s conftest$ac_exeext &&
  4552. $as_test_x conftest$ac_exeext; then
  4553. ac_cv_lib_ssl_SSL_library_init=yes
  4554. else
  4555. echo "$as_me: failed program was:" >&5
  4556. sed 's/^/| /' conftest.$ac_ext >&5
  4557. ac_cv_lib_ssl_SSL_library_init=no
  4558. fi
  4559. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  4560. conftest$ac_exeext conftest.$ac_ext
  4561. LIBS=$ac_check_lib_save_LIBS
  4562. fi
  4563. { echo "$as_me:$LINENO: result: $ac_cv_lib_ssl_SSL_library_init" >&5
  4564. echo "${ECHO_T}$ac_cv_lib_ssl_SSL_library_init" >&6; }
  4565. if test $ac_cv_lib_ssl_SSL_library_init = yes; then
  4566. have_openssl=yes
  4567. fi
  4568. if test "x$have_openssl" = "xyes"; then
  4569. have_openssl=no
  4570. { echo "$as_me:$LINENO: checking for main in -lcrypto" >&5
  4571. echo $ECHO_N "checking for main in -lcrypto... $ECHO_C" >&6; }
  4572. if test "${ac_cv_lib_crypto_main+set}" = set; then
  4573. echo $ECHO_N "(cached) $ECHO_C" >&6
  4574. else
  4575. ac_check_lib_save_LIBS=$LIBS
  4576. LIBS="-lcrypto $LIBS"
  4577. cat >conftest.$ac_ext <<_ACEOF
  4578. /* confdefs.h. */
  4579. _ACEOF
  4580. cat confdefs.h >>conftest.$ac_ext
  4581. cat >>conftest.$ac_ext <<_ACEOF
  4582. /* end confdefs.h. */
  4583. int
  4584. main ()
  4585. {
  4586. return main ();
  4587. ;
  4588. return 0;
  4589. }
  4590. _ACEOF
  4591. rm -f conftest.$ac_objext conftest$ac_exeext
  4592. if { (ac_try="$ac_link"
  4593. case "(($ac_try" in
  4594. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  4595. *) ac_try_echo=$ac_try;;
  4596. esac
  4597. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  4598. (eval "$ac_link") 2>conftest.er1
  4599. ac_status=$?
  4600. grep -v '^ *+' conftest.er1 >conftest.err
  4601. rm -f conftest.er1
  4602. cat conftest.err >&5
  4603. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4604. (exit $ac_status); } && {
  4605. test -z "$ac_c_werror_flag" ||
  4606. test ! -s conftest.err
  4607. } && test -s conftest$ac_exeext &&
  4608. $as_test_x conftest$ac_exeext; then
  4609. ac_cv_lib_crypto_main=yes
  4610. else
  4611. echo "$as_me: failed program was:" >&5
  4612. sed 's/^/| /' conftest.$ac_ext >&5
  4613. ac_cv_lib_crypto_main=no
  4614. fi
  4615. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  4616. conftest$ac_exeext conftest.$ac_ext
  4617. LIBS=$ac_check_lib_save_LIBS
  4618. fi
  4619. { echo "$as_me:$LINENO: result: $ac_cv_lib_crypto_main" >&5
  4620. echo "${ECHO_T}$ac_cv_lib_crypto_main" >&6; }
  4621. if test $ac_cv_lib_crypto_main = yes; then
  4622. have_openssl=yes
  4623. fi
  4624. if test "x$have_openssl" = "xyes"; then
  4625. cat >>confdefs.h <<\_ACEOF
  4626. #define HAVE_LIBSSL 1
  4627. _ACEOF
  4628. OPENSSL_LIBS="-L$openssl_prefix_lib -lssl -lcrypto"
  4629. OPENSSL_CFLAGS="-I$openssl_prefix_include"
  4630. fi
  4631. fi
  4632. LIBS=$LIBS_save
  4633. CPPFLAGS=$CPPFLAGS_save
  4634. fi
  4635. if test "x$with_libcares" = "xyes"; then
  4636. # Check whether --with-libcares-prefix was given.
  4637. if test "${with_libcares_prefix+set}" = set; then
  4638. withval=$with_libcares_prefix; libcares_prefix=$withval
  4639. else
  4640. libcares_prefix=""
  4641. fi
  4642. if test "x$libcares_prefix" = "x"; then
  4643. libcares_prefix="/usr"
  4644. fi
  4645. libcares_prefix_lib=$libcares_prefix/lib
  4646. libcares_prefix_include=$libcares_prefix/include
  4647. LIBS_save=$LIBS
  4648. CPPFLAGS_save=$CPPFLAGS
  4649. LIBS="-L$libcares_prefix_lib $LIBS"
  4650. CPPFLAGS="-I$libcares_prefix_include $CPPFLAGS"
  4651. { echo "$as_me:$LINENO: checking for ares_init in -lcares" >&5
  4652. echo $ECHO_N "checking for ares_init in -lcares... $ECHO_C" >&6; }
  4653. if test "${ac_cv_lib_cares_ares_init+set}" = set; then
  4654. echo $ECHO_N "(cached) $ECHO_C" >&6
  4655. else
  4656. ac_check_lib_save_LIBS=$LIBS
  4657. LIBS="-lcares $LIBS"
  4658. cat >conftest.$ac_ext <<_ACEOF
  4659. /* confdefs.h. */
  4660. _ACEOF
  4661. cat confdefs.h >>conftest.$ac_ext
  4662. cat >>conftest.$ac_ext <<_ACEOF
  4663. /* end confdefs.h. */
  4664. /* Override any GCC internal prototype to avoid an error.
  4665. Use char because int might match the return type of a GCC
  4666. builtin and then its argument prototype would still apply. */
  4667. #ifdef __cplusplus
  4668. extern "C"
  4669. #endif
  4670. char ares_init ();
  4671. int
  4672. main ()
  4673. {
  4674. return ares_init ();
  4675. ;
  4676. return 0;
  4677. }
  4678. _ACEOF
  4679. rm -f conftest.$ac_objext conftest$ac_exeext
  4680. if { (ac_try="$ac_link"
  4681. case "(($ac_try" in
  4682. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  4683. *) ac_try_echo=$ac_try;;
  4684. esac
  4685. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  4686. (eval "$ac_link") 2>conftest.er1
  4687. ac_status=$?
  4688. grep -v '^ *+' conftest.er1 >conftest.err
  4689. rm -f conftest.er1
  4690. cat conftest.err >&5
  4691. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4692. (exit $ac_status); } && {
  4693. test -z "$ac_c_werror_flag" ||
  4694. test ! -s conftest.err
  4695. } && test -s conftest$ac_exeext &&
  4696. $as_test_x conftest$ac_exeext; then
  4697. ac_cv_lib_cares_ares_init=yes
  4698. else
  4699. echo "$as_me: failed program was:" >&5
  4700. sed 's/^/| /' conftest.$ac_ext >&5
  4701. ac_cv_lib_cares_ares_init=no
  4702. fi
  4703. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  4704. conftest$ac_exeext conftest.$ac_ext
  4705. LIBS=$ac_check_lib_save_LIBS
  4706. fi
  4707. { echo "$as_me:$LINENO: result: $ac_cv_lib_cares_ares_init" >&5
  4708. echo "${ECHO_T}$ac_cv_lib_cares_ares_init" >&6; }
  4709. if test $ac_cv_lib_cares_ares_init = yes; then
  4710. have_libcares=yes
  4711. fi
  4712. if test "x$have_libcares" = "xyes"; then
  4713. cat >>confdefs.h <<\_ACEOF
  4714. #define HAVE_LIBCARES 1
  4715. _ACEOF
  4716. LIBCARES_LIBS="-L$libcares_prefix_lib -lcares"
  4717. LIBCARES_CPPFLAGS="-I$libcares_prefix_include"
  4718. fi
  4719. LIBS=$LIBS_save
  4720. CPPFLAGS=$CPPFLAGS_save
  4721. fi
  4722. if test "x$have_libcares" = "x"; then
  4723. if test "x$with_libares" = "xyes"; then
  4724. # Check whether --with-libares-prefix was given.
  4725. if test "${with_libares_prefix+set}" = set; then
  4726. withval=$with_libares_prefix; libares_prefix=$withval
  4727. else
  4728. libares_prefix=""
  4729. fi
  4730. if test "x$libares_prefix" = "x"; then
  4731. libares_prefix="/usr"
  4732. fi
  4733. libares_prefix_lib=$libares_prefix/lib
  4734. libares_prefix_include=$libares_prefix/include
  4735. LIBS_save=$LIBS
  4736. CPPFLAGS_save=$CPPFLAGS
  4737. LIBS="-L$libares_prefix_lib $LIBS"
  4738. CPPFLAGS="-I$libares_prefix_include $CPPFLAGS"
  4739. { echo "$as_me:$LINENO: checking for ares_init in -lares" >&5
  4740. echo $ECHO_N "checking for ares_init in -lares... $ECHO_C" >&6; }
  4741. if test "${ac_cv_lib_ares_ares_init+set}" = set; then
  4742. echo $ECHO_N "(cached) $ECHO_C" >&6
  4743. else
  4744. ac_check_lib_save_LIBS=$LIBS
  4745. LIBS="-lares $LIBS"
  4746. cat >conftest.$ac_ext <<_ACEOF
  4747. /* confdefs.h. */
  4748. _ACEOF
  4749. cat confdefs.h >>conftest.$ac_ext
  4750. cat >>conftest.$ac_ext <<_ACEOF
  4751. /* end confdefs.h. */
  4752. /* Override any GCC internal prototype to avoid an error.
  4753. Use char because int might match the return type of a GCC
  4754. builtin and then its argument prototype would still apply. */
  4755. #ifdef __cplusplus
  4756. extern "C"
  4757. #endif
  4758. char ares_init ();
  4759. int
  4760. main ()
  4761. {
  4762. return ares_init ();
  4763. ;
  4764. return 0;
  4765. }
  4766. _ACEOF
  4767. rm -f conftest.$ac_objext conftest$ac_exeext
  4768. if { (ac_try="$ac_link"
  4769. case "(($ac_try" in
  4770. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  4771. *) ac_try_echo=$ac_try;;
  4772. esac
  4773. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  4774. (eval "$ac_link") 2>conftest.er1
  4775. ac_status=$?
  4776. grep -v '^ *+' conftest.er1 >conftest.err
  4777. rm -f conftest.er1
  4778. cat conftest.err >&5
  4779. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4780. (exit $ac_status); } && {
  4781. test -z "$ac_c_werror_flag" ||
  4782. test ! -s conftest.err
  4783. } && test -s conftest$ac_exeext &&
  4784. $as_test_x conftest$ac_exeext; then
  4785. ac_cv_lib_ares_ares_init=yes
  4786. else
  4787. echo "$as_me: failed program was:" >&5
  4788. sed 's/^/| /' conftest.$ac_ext >&5
  4789. ac_cv_lib_ares_ares_init=no
  4790. fi
  4791. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  4792. conftest$ac_exeext conftest.$ac_ext
  4793. LIBS=$ac_check_lib_save_LIBS
  4794. fi
  4795. { echo "$as_me:$LINENO: result: $ac_cv_lib_ares_ares_init" >&5
  4796. echo "${ECHO_T}$ac_cv_lib_ares_ares_init" >&6; }
  4797. if test $ac_cv_lib_ares_ares_init = yes; then
  4798. have_libares=yes
  4799. fi
  4800. if test "x$have_libares" = "xyes"; then
  4801. cat >>confdefs.h <<\_ACEOF
  4802. #define HAVE_LIBARES 1
  4803. _ACEOF
  4804. LIBARES_LIBS="-L$libares_prefix_lib -lares"
  4805. LIBARES_CPPFLAGS="-I$libares_prefix_include"
  4806. fi
  4807. LIBS=$LIBS_save
  4808. CPPFLAGS=$CPPFLAGS_save
  4809. fi
  4810. fi
  4811. # Define variables based on the result of the checks for libraries.
  4812. if test "x$have_libgnutls" = "xyes" || test "x$have_openssl" = "xyes"; then
  4813. cat >>confdefs.h <<\_ACEOF
  4814. #define ENABLE_SSL 1
  4815. _ACEOF
  4816. fi
  4817. if test "x$have_libgcrypt" = "xyes" || test "x$have_openssl" = "xyes"; then
  4818. cat >>confdefs.h <<\_ACEOF
  4819. #define ENABLE_MESSAGE_DIGEST 1
  4820. _ACEOF
  4821. if true; then
  4822. ENABLE_MESSAGE_DIGEST_TRUE=
  4823. ENABLE_MESSAGE_DIGEST_FALSE='#'
  4824. else
  4825. ENABLE_MESSAGE_DIGEST_TRUE='#'
  4826. ENABLE_MESSAGE_DIGEST_FALSE=
  4827. fi
  4828. enable_message_digest=yes
  4829. else
  4830. if false; then
  4831. ENABLE_MESSAGE_DIGEST_TRUE=
  4832. ENABLE_MESSAGE_DIGEST_FALSE='#'
  4833. else
  4834. ENABLE_MESSAGE_DIGEST_TRUE='#'
  4835. ENABLE_MESSAGE_DIGEST_FALSE=
  4836. fi
  4837. fi
  4838. if test "x$enable_bittorrent" = "xyes" && test "x$enable_message_digest" = "xyes"; then
  4839. cat >>confdefs.h <<\_ACEOF
  4840. #define ENABLE_BITTORRENT 1
  4841. _ACEOF
  4842. if true; then
  4843. ENABLE_BITTORRENT_TRUE=
  4844. ENABLE_BITTORRENT_FALSE='#'
  4845. else
  4846. ENABLE_BITTORRENT_TRUE='#'
  4847. ENABLE_BITTORRENT_FALSE=
  4848. fi
  4849. else
  4850. if false; then
  4851. ENABLE_BITTORRENT_TRUE=
  4852. ENABLE_BITTORRENT_FALSE='#'
  4853. else
  4854. ENABLE_BITTORRENT_TRUE='#'
  4855. ENABLE_BITTORRENT_FALSE=
  4856. fi
  4857. fi
  4858. if test "x$have_libxml2" = "xyes" && test "x$enable_metalink" = "xyes"; then
  4859. cat >>confdefs.h <<\_ACEOF
  4860. #define ENABLE_METALINK 1
  4861. _ACEOF
  4862. if true; then
  4863. ENABLE_METALINK_TRUE=
  4864. ENABLE_METALINK_FALSE='#'
  4865. else
  4866. ENABLE_METALINK_TRUE='#'
  4867. ENABLE_METALINK_FALSE=
  4868. fi
  4869. else
  4870. if false; then
  4871. ENABLE_METALINK_TRUE=
  4872. ENABLE_METALINK_FALSE='#'
  4873. else
  4874. ENABLE_METALINK_TRUE='#'
  4875. ENABLE_METALINK_FALSE=
  4876. fi
  4877. fi
  4878. if test "x$have_libcares" = "xyes" || test "x$have_libares" = "xyes"; then
  4879. cat >>confdefs.h <<\_ACEOF
  4880. #define ENABLE_ASYNC_DNS 1
  4881. _ACEOF
  4882. if true; then
  4883. ENABLE_ASYNC_DNS_TRUE=
  4884. ENABLE_ASYNC_DNS_FALSE='#'
  4885. else
  4886. ENABLE_ASYNC_DNS_TRUE='#'
  4887. ENABLE_ASYNC_DNS_FALSE=
  4888. fi
  4889. else
  4890. if false; then
  4891. ENABLE_ASYNC_DNS_TRUE=
  4892. ENABLE_ASYNC_DNS_FALSE='#'
  4893. else
  4894. ENABLE_ASYNC_DNS_TRUE='#'
  4895. ENABLE_ASYNC_DNS_FALSE=
  4896. fi
  4897. fi
  4898. # Checks for header files.
  4899. ac_ext=c
  4900. ac_cpp='$CPP $CPPFLAGS'
  4901. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  4902. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  4903. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  4904. { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
  4905. echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
  4906. # On Suns, sometimes $CPP names a directory.
  4907. if test -n "$CPP" && test -d "$CPP"; then
  4908. CPP=
  4909. fi
  4910. if test -z "$CPP"; then
  4911. if test "${ac_cv_prog_CPP+set}" = set; then
  4912. echo $ECHO_N "(cached) $ECHO_C" >&6
  4913. else
  4914. # Double quotes because CPP needs to be expanded
  4915. for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
  4916. do
  4917. ac_preproc_ok=false
  4918. for ac_c_preproc_warn_flag in '' yes
  4919. do
  4920. # Use a header file that comes with gcc, so configuring glibc
  4921. # with a fresh cross-compiler works.
  4922. # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  4923. # <limits.h> exists even on freestanding compilers.
  4924. # On the NeXT, cc -E runs the code through the compiler's parser,
  4925. # not just through cpp. "Syntax error" is here to catch this case.
  4926. cat >conftest.$ac_ext <<_ACEOF
  4927. /* confdefs.h. */
  4928. _ACEOF
  4929. cat confdefs.h >>conftest.$ac_ext
  4930. cat >>conftest.$ac_ext <<_ACEOF
  4931. /* end confdefs.h. */
  4932. #ifdef __STDC__
  4933. # include <limits.h>
  4934. #else
  4935. # include <assert.h>
  4936. #endif
  4937. Syntax error
  4938. _ACEOF
  4939. if { (ac_try="$ac_cpp conftest.$ac_ext"
  4940. case "(($ac_try" in
  4941. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  4942. *) ac_try_echo=$ac_try;;
  4943. esac
  4944. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  4945. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  4946. ac_status=$?
  4947. grep -v '^ *+' conftest.er1 >conftest.err
  4948. rm -f conftest.er1
  4949. cat conftest.err >&5
  4950. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4951. (exit $ac_status); } >/dev/null && {
  4952. test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
  4953. test ! -s conftest.err
  4954. }; then
  4955. :
  4956. else
  4957. echo "$as_me: failed program was:" >&5
  4958. sed 's/^/| /' conftest.$ac_ext >&5
  4959. # Broken: fails on valid input.
  4960. continue
  4961. fi
  4962. rm -f conftest.err conftest.$ac_ext
  4963. # OK, works on sane cases. Now check whether nonexistent headers
  4964. # can be detected and how.
  4965. cat >conftest.$ac_ext <<_ACEOF
  4966. /* confdefs.h. */
  4967. _ACEOF
  4968. cat confdefs.h >>conftest.$ac_ext
  4969. cat >>conftest.$ac_ext <<_ACEOF
  4970. /* end confdefs.h. */
  4971. #include <ac_nonexistent.h>
  4972. _ACEOF
  4973. if { (ac_try="$ac_cpp conftest.$ac_ext"
  4974. case "(($ac_try" in
  4975. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  4976. *) ac_try_echo=$ac_try;;
  4977. esac
  4978. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  4979. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  4980. ac_status=$?
  4981. grep -v '^ *+' conftest.er1 >conftest.err
  4982. rm -f conftest.er1
  4983. cat conftest.err >&5
  4984. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4985. (exit $ac_status); } >/dev/null && {
  4986. test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
  4987. test ! -s conftest.err
  4988. }; then
  4989. # Broken: success on invalid input.
  4990. continue
  4991. else
  4992. echo "$as_me: failed program was:" >&5
  4993. sed 's/^/| /' conftest.$ac_ext >&5
  4994. # Passes both tests.
  4995. ac_preproc_ok=:
  4996. break
  4997. fi
  4998. rm -f conftest.err conftest.$ac_ext
  4999. done
  5000. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  5001. rm -f conftest.err conftest.$ac_ext
  5002. if $ac_preproc_ok; then
  5003. break
  5004. fi
  5005. done
  5006. ac_cv_prog_CPP=$CPP
  5007. fi
  5008. CPP=$ac_cv_prog_CPP
  5009. else
  5010. ac_cv_prog_CPP=$CPP
  5011. fi
  5012. { echo "$as_me:$LINENO: result: $CPP" >&5
  5013. echo "${ECHO_T}$CPP" >&6; }
  5014. ac_preproc_ok=false
  5015. for ac_c_preproc_warn_flag in '' yes
  5016. do
  5017. # Use a header file that comes with gcc, so configuring glibc
  5018. # with a fresh cross-compiler works.
  5019. # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  5020. # <limits.h> exists even on freestanding compilers.
  5021. # On the NeXT, cc -E runs the code through the compiler's parser,
  5022. # not just through cpp. "Syntax error" is here to catch this case.
  5023. cat >conftest.$ac_ext <<_ACEOF
  5024. /* confdefs.h. */
  5025. _ACEOF
  5026. cat confdefs.h >>conftest.$ac_ext
  5027. cat >>conftest.$ac_ext <<_ACEOF
  5028. /* end confdefs.h. */
  5029. #ifdef __STDC__
  5030. # include <limits.h>
  5031. #else
  5032. # include <assert.h>
  5033. #endif
  5034. Syntax error
  5035. _ACEOF
  5036. if { (ac_try="$ac_cpp conftest.$ac_ext"
  5037. case "(($ac_try" in
  5038. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  5039. *) ac_try_echo=$ac_try;;
  5040. esac
  5041. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  5042. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  5043. ac_status=$?
  5044. grep -v '^ *+' conftest.er1 >conftest.err
  5045. rm -f conftest.er1
  5046. cat conftest.err >&5
  5047. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5048. (exit $ac_status); } >/dev/null && {
  5049. test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
  5050. test ! -s conftest.err
  5051. }; then
  5052. :
  5053. else
  5054. echo "$as_me: failed program was:" >&5
  5055. sed 's/^/| /' conftest.$ac_ext >&5
  5056. # Broken: fails on valid input.
  5057. continue
  5058. fi
  5059. rm -f conftest.err conftest.$ac_ext
  5060. # OK, works on sane cases. Now check whether nonexistent headers
  5061. # can be detected and how.
  5062. cat >conftest.$ac_ext <<_ACEOF
  5063. /* confdefs.h. */
  5064. _ACEOF
  5065. cat confdefs.h >>conftest.$ac_ext
  5066. cat >>conftest.$ac_ext <<_ACEOF
  5067. /* end confdefs.h. */
  5068. #include <ac_nonexistent.h>
  5069. _ACEOF
  5070. if { (ac_try="$ac_cpp conftest.$ac_ext"
  5071. case "(($ac_try" in
  5072. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  5073. *) ac_try_echo=$ac_try;;
  5074. esac
  5075. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  5076. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  5077. ac_status=$?
  5078. grep -v '^ *+' conftest.er1 >conftest.err
  5079. rm -f conftest.er1
  5080. cat conftest.err >&5
  5081. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5082. (exit $ac_status); } >/dev/null && {
  5083. test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
  5084. test ! -s conftest.err
  5085. }; then
  5086. # Broken: success on invalid input.
  5087. continue
  5088. else
  5089. echo "$as_me: failed program was:" >&5
  5090. sed 's/^/| /' conftest.$ac_ext >&5
  5091. # Passes both tests.
  5092. ac_preproc_ok=:
  5093. break
  5094. fi
  5095. rm -f conftest.err conftest.$ac_ext
  5096. done
  5097. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  5098. rm -f conftest.err conftest.$ac_ext
  5099. if $ac_preproc_ok; then
  5100. :
  5101. else
  5102. { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
  5103. See \`config.log' for more details." >&5
  5104. echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
  5105. See \`config.log' for more details." >&2;}
  5106. { (exit 1); exit 1; }; }
  5107. fi
  5108. ac_ext=c
  5109. ac_cpp='$CPP $CPPFLAGS'
  5110. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  5111. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  5112. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  5113. { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
  5114. echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
  5115. if test "${ac_cv_path_GREP+set}" = set; then
  5116. echo $ECHO_N "(cached) $ECHO_C" >&6
  5117. else
  5118. # Extract the first word of "grep ggrep" to use in msg output
  5119. if test -z "$GREP"; then
  5120. set dummy grep ggrep; ac_prog_name=$2
  5121. if test "${ac_cv_path_GREP+set}" = set; then
  5122. echo $ECHO_N "(cached) $ECHO_C" >&6
  5123. else
  5124. ac_path_GREP_found=false
  5125. # Loop through the user's path and test for each of PROGNAME-LIST
  5126. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5127. for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
  5128. do
  5129. IFS=$as_save_IFS
  5130. test -z "$as_dir" && as_dir=.
  5131. for ac_prog in grep ggrep; do
  5132. for ac_exec_ext in '' $ac_executable_extensions; do
  5133. ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
  5134. { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
  5135. # Check for GNU ac_path_GREP and select it if it is found.
  5136. # Check for GNU $ac_path_GREP
  5137. case `"$ac_path_GREP" --version 2>&1` in
  5138. *GNU*)
  5139. ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
  5140. *)
  5141. ac_count=0
  5142. echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
  5143. while :
  5144. do
  5145. cat "conftest.in" "conftest.in" >"conftest.tmp"
  5146. mv "conftest.tmp" "conftest.in"
  5147. cp "conftest.in" "conftest.nl"
  5148. echo 'GREP' >> "conftest.nl"
  5149. "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
  5150. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  5151. ac_count=`expr $ac_count + 1`
  5152. if test $ac_count -gt ${ac_path_GREP_max-0}; then
  5153. # Best one so far, save it but keep looking for a better one
  5154. ac_cv_path_GREP="$ac_path_GREP"
  5155. ac_path_GREP_max=$ac_count
  5156. fi
  5157. # 10*(2^10) chars as input seems more than enough
  5158. test $ac_count -gt 10 && break
  5159. done
  5160. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  5161. esac
  5162. $ac_path_GREP_found && break 3
  5163. done
  5164. done
  5165. done
  5166. IFS=$as_save_IFS
  5167. fi
  5168. GREP="$ac_cv_path_GREP"
  5169. if test -z "$GREP"; then
  5170. { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
  5171. echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
  5172. { (exit 1); exit 1; }; }
  5173. fi
  5174. else
  5175. ac_cv_path_GREP=$GREP
  5176. fi
  5177. fi
  5178. { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
  5179. echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
  5180. GREP="$ac_cv_path_GREP"
  5181. { echo "$as_me:$LINENO: checking for egrep" >&5
  5182. echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
  5183. if test "${ac_cv_path_EGREP+set}" = set; then
  5184. echo $ECHO_N "(cached) $ECHO_C" >&6
  5185. else
  5186. if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
  5187. then ac_cv_path_EGREP="$GREP -E"
  5188. else
  5189. # Extract the first word of "egrep" to use in msg output
  5190. if test -z "$EGREP"; then
  5191. set dummy egrep; ac_prog_name=$2
  5192. if test "${ac_cv_path_EGREP+set}" = set; then
  5193. echo $ECHO_N "(cached) $ECHO_C" >&6
  5194. else
  5195. ac_path_EGREP_found=false
  5196. # Loop through the user's path and test for each of PROGNAME-LIST
  5197. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5198. for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
  5199. do
  5200. IFS=$as_save_IFS
  5201. test -z "$as_dir" && as_dir=.
  5202. for ac_prog in egrep; do
  5203. for ac_exec_ext in '' $ac_executable_extensions; do
  5204. ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
  5205. { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
  5206. # Check for GNU ac_path_EGREP and select it if it is found.
  5207. # Check for GNU $ac_path_EGREP
  5208. case `"$ac_path_EGREP" --version 2>&1` in
  5209. *GNU*)
  5210. ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
  5211. *)
  5212. ac_count=0
  5213. echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
  5214. while :
  5215. do
  5216. cat "conftest.in" "conftest.in" >"conftest.tmp"
  5217. mv "conftest.tmp" "conftest.in"
  5218. cp "conftest.in" "conftest.nl"
  5219. echo 'EGREP' >> "conftest.nl"
  5220. "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
  5221. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  5222. ac_count=`expr $ac_count + 1`
  5223. if test $ac_count -gt ${ac_path_EGREP_max-0}; then
  5224. # Best one so far, save it but keep looking for a better one
  5225. ac_cv_path_EGREP="$ac_path_EGREP"
  5226. ac_path_EGREP_max=$ac_count
  5227. fi
  5228. # 10*(2^10) chars as input seems more than enough
  5229. test $ac_count -gt 10 && break
  5230. done
  5231. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  5232. esac
  5233. $ac_path_EGREP_found && break 3
  5234. done
  5235. done
  5236. done
  5237. IFS=$as_save_IFS
  5238. fi
  5239. EGREP="$ac_cv_path_EGREP"
  5240. if test -z "$EGREP"; then
  5241. { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
  5242. echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
  5243. { (exit 1); exit 1; }; }
  5244. fi
  5245. else
  5246. ac_cv_path_EGREP=$EGREP
  5247. fi
  5248. fi
  5249. fi
  5250. { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
  5251. echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
  5252. EGREP="$ac_cv_path_EGREP"
  5253. { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
  5254. echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
  5255. if test "${ac_cv_header_stdc+set}" = set; then
  5256. echo $ECHO_N "(cached) $ECHO_C" >&6
  5257. else
  5258. cat >conftest.$ac_ext <<_ACEOF
  5259. /* confdefs.h. */
  5260. _ACEOF
  5261. cat confdefs.h >>conftest.$ac_ext
  5262. cat >>conftest.$ac_ext <<_ACEOF
  5263. /* end confdefs.h. */
  5264. #include <stdlib.h>
  5265. #include <stdarg.h>
  5266. #include <string.h>
  5267. #include <float.h>
  5268. int
  5269. main ()
  5270. {
  5271. ;
  5272. return 0;
  5273. }
  5274. _ACEOF
  5275. rm -f conftest.$ac_objext
  5276. if { (ac_try="$ac_compile"
  5277. case "(($ac_try" in
  5278. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  5279. *) ac_try_echo=$ac_try;;
  5280. esac
  5281. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  5282. (eval "$ac_compile") 2>conftest.er1
  5283. ac_status=$?
  5284. grep -v '^ *+' conftest.er1 >conftest.err
  5285. rm -f conftest.er1
  5286. cat conftest.err >&5
  5287. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5288. (exit $ac_status); } && {
  5289. test -z "$ac_c_werror_flag" ||
  5290. test ! -s conftest.err
  5291. } && test -s conftest.$ac_objext; then
  5292. ac_cv_header_stdc=yes
  5293. else
  5294. echo "$as_me: failed program was:" >&5
  5295. sed 's/^/| /' conftest.$ac_ext >&5
  5296. ac_cv_header_stdc=no
  5297. fi
  5298. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  5299. if test $ac_cv_header_stdc = yes; then
  5300. # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
  5301. cat >conftest.$ac_ext <<_ACEOF
  5302. /* confdefs.h. */
  5303. _ACEOF
  5304. cat confdefs.h >>conftest.$ac_ext
  5305. cat >>conftest.$ac_ext <<_ACEOF
  5306. /* end confdefs.h. */
  5307. #include <string.h>
  5308. _ACEOF
  5309. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  5310. $EGREP "memchr" >/dev/null 2>&1; then
  5311. :
  5312. else
  5313. ac_cv_header_stdc=no
  5314. fi
  5315. rm -f conftest*
  5316. fi
  5317. if test $ac_cv_header_stdc = yes; then
  5318. # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
  5319. cat >conftest.$ac_ext <<_ACEOF
  5320. /* confdefs.h. */
  5321. _ACEOF
  5322. cat confdefs.h >>conftest.$ac_ext
  5323. cat >>conftest.$ac_ext <<_ACEOF
  5324. /* end confdefs.h. */
  5325. #include <stdlib.h>
  5326. _ACEOF
  5327. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  5328. $EGREP "free" >/dev/null 2>&1; then
  5329. :
  5330. else
  5331. ac_cv_header_stdc=no
  5332. fi
  5333. rm -f conftest*
  5334. fi
  5335. if test $ac_cv_header_stdc = yes; then
  5336. # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
  5337. if test "$cross_compiling" = yes; then
  5338. :
  5339. else
  5340. cat >conftest.$ac_ext <<_ACEOF
  5341. /* confdefs.h. */
  5342. _ACEOF
  5343. cat confdefs.h >>conftest.$ac_ext
  5344. cat >>conftest.$ac_ext <<_ACEOF
  5345. /* end confdefs.h. */
  5346. #include <ctype.h>
  5347. #include <stdlib.h>
  5348. #if ((' ' & 0x0FF) == 0x020)
  5349. # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
  5350. # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
  5351. #else
  5352. # define ISLOWER(c) \
  5353. (('a' <= (c) && (c) <= 'i') \
  5354. || ('j' <= (c) && (c) <= 'r') \
  5355. || ('s' <= (c) && (c) <= 'z'))
  5356. # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
  5357. #endif
  5358. #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
  5359. int
  5360. main ()
  5361. {
  5362. int i;
  5363. for (i = 0; i < 256; i++)
  5364. if (XOR (islower (i), ISLOWER (i))
  5365. || toupper (i) != TOUPPER (i))
  5366. return 2;
  5367. return 0;
  5368. }
  5369. _ACEOF
  5370. rm -f conftest$ac_exeext
  5371. if { (ac_try="$ac_link"
  5372. case "(($ac_try" in
  5373. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  5374. *) ac_try_echo=$ac_try;;
  5375. esac
  5376. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  5377. (eval "$ac_link") 2>&5
  5378. ac_status=$?
  5379. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5380. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  5381. { (case "(($ac_try" in
  5382. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  5383. *) ac_try_echo=$ac_try;;
  5384. esac
  5385. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  5386. (eval "$ac_try") 2>&5
  5387. ac_status=$?
  5388. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5389. (exit $ac_status); }; }; then
  5390. :
  5391. else
  5392. echo "$as_me: program exited with status $ac_status" >&5
  5393. echo "$as_me: failed program was:" >&5
  5394. sed 's/^/| /' conftest.$ac_ext >&5
  5395. ( exit $ac_status )
  5396. ac_cv_header_stdc=no
  5397. fi
  5398. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  5399. fi
  5400. fi
  5401. fi
  5402. { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
  5403. echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
  5404. if test $ac_cv_header_stdc = yes; then
  5405. cat >>confdefs.h <<\_ACEOF
  5406. #define STDC_HEADERS 1
  5407. _ACEOF
  5408. fi
  5409. # On IRIX 5.3, sys/types and inttypes.h are conflicting.
  5410. for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
  5411. inttypes.h stdint.h unistd.h
  5412. do
  5413. as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
  5414. { echo "$as_me:$LINENO: checking for $ac_header" >&5
  5415. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
  5416. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  5417. echo $ECHO_N "(cached) $ECHO_C" >&6
  5418. else
  5419. cat >conftest.$ac_ext <<_ACEOF
  5420. /* confdefs.h. */
  5421. _ACEOF
  5422. cat confdefs.h >>conftest.$ac_ext
  5423. cat >>conftest.$ac_ext <<_ACEOF
  5424. /* end confdefs.h. */
  5425. $ac_includes_default
  5426. #include <$ac_header>
  5427. _ACEOF
  5428. rm -f conftest.$ac_objext
  5429. if { (ac_try="$ac_compile"
  5430. case "(($ac_try" in
  5431. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  5432. *) ac_try_echo=$ac_try;;
  5433. esac
  5434. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  5435. (eval "$ac_compile") 2>conftest.er1
  5436. ac_status=$?
  5437. grep -v '^ *+' conftest.er1 >conftest.err
  5438. rm -f conftest.er1
  5439. cat conftest.err >&5
  5440. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5441. (exit $ac_status); } && {
  5442. test -z "$ac_c_werror_flag" ||
  5443. test ! -s conftest.err
  5444. } && test -s conftest.$ac_objext; then
  5445. eval "$as_ac_Header=yes"
  5446. else
  5447. echo "$as_me: failed program was:" >&5
  5448. sed 's/^/| /' conftest.$ac_ext >&5
  5449. eval "$as_ac_Header=no"
  5450. fi
  5451. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  5452. fi
  5453. ac_res=`eval echo '${'$as_ac_Header'}'`
  5454. { echo "$as_me:$LINENO: result: $ac_res" >&5
  5455. echo "${ECHO_T}$ac_res" >&6; }
  5456. if test `eval echo '${'$as_ac_Header'}'` = yes; then
  5457. cat >>confdefs.h <<_ACEOF
  5458. #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
  5459. _ACEOF
  5460. fi
  5461. done
  5462. # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
  5463. # for constant arguments. Useless!
  5464. { echo "$as_me:$LINENO: checking for working alloca.h" >&5
  5465. echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6; }
  5466. if test "${ac_cv_working_alloca_h+set}" = set; then
  5467. echo $ECHO_N "(cached) $ECHO_C" >&6
  5468. else
  5469. cat >conftest.$ac_ext <<_ACEOF
  5470. /* confdefs.h. */
  5471. _ACEOF
  5472. cat confdefs.h >>conftest.$ac_ext
  5473. cat >>conftest.$ac_ext <<_ACEOF
  5474. /* end confdefs.h. */
  5475. #include <alloca.h>
  5476. int
  5477. main ()
  5478. {
  5479. char *p = (char *) alloca (2 * sizeof (int));
  5480. if (p) return 0;
  5481. ;
  5482. return 0;
  5483. }
  5484. _ACEOF
  5485. rm -f conftest.$ac_objext conftest$ac_exeext
  5486. if { (ac_try="$ac_link"
  5487. case "(($ac_try" in
  5488. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  5489. *) ac_try_echo=$ac_try;;
  5490. esac
  5491. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  5492. (eval "$ac_link") 2>conftest.er1
  5493. ac_status=$?
  5494. grep -v '^ *+' conftest.er1 >conftest.err
  5495. rm -f conftest.er1
  5496. cat conftest.err >&5
  5497. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5498. (exit $ac_status); } && {
  5499. test -z "$ac_c_werror_flag" ||
  5500. test ! -s conftest.err
  5501. } && test -s conftest$ac_exeext &&
  5502. $as_test_x conftest$ac_exeext; then
  5503. ac_cv_working_alloca_h=yes
  5504. else
  5505. echo "$as_me: failed program was:" >&5
  5506. sed 's/^/| /' conftest.$ac_ext >&5
  5507. ac_cv_working_alloca_h=no
  5508. fi
  5509. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  5510. conftest$ac_exeext conftest.$ac_ext
  5511. fi
  5512. { echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
  5513. echo "${ECHO_T}$ac_cv_working_alloca_h" >&6; }
  5514. if test $ac_cv_working_alloca_h = yes; then
  5515. cat >>confdefs.h <<\_ACEOF
  5516. #define HAVE_ALLOCA_H 1
  5517. _ACEOF
  5518. fi
  5519. { echo "$as_me:$LINENO: checking for alloca" >&5
  5520. echo $ECHO_N "checking for alloca... $ECHO_C" >&6; }
  5521. if test "${ac_cv_func_alloca_works+set}" = set; then
  5522. echo $ECHO_N "(cached) $ECHO_C" >&6
  5523. else
  5524. cat >conftest.$ac_ext <<_ACEOF
  5525. /* confdefs.h. */
  5526. _ACEOF
  5527. cat confdefs.h >>conftest.$ac_ext
  5528. cat >>conftest.$ac_ext <<_ACEOF
  5529. /* end confdefs.h. */
  5530. #ifdef __GNUC__
  5531. # define alloca __builtin_alloca
  5532. #else
  5533. # ifdef _MSC_VER
  5534. # include <malloc.h>
  5535. # define alloca _alloca
  5536. # else
  5537. # ifdef HAVE_ALLOCA_H
  5538. # include <alloca.h>
  5539. # else
  5540. # ifdef _AIX
  5541. #pragma alloca
  5542. # else
  5543. # ifndef alloca /* predefined by HP cc +Olibcalls */
  5544. char *alloca ();
  5545. # endif
  5546. # endif
  5547. # endif
  5548. # endif
  5549. #endif
  5550. int
  5551. main ()
  5552. {
  5553. char *p = (char *) alloca (1);
  5554. if (p) return 0;
  5555. ;
  5556. return 0;
  5557. }
  5558. _ACEOF
  5559. rm -f conftest.$ac_objext conftest$ac_exeext
  5560. if { (ac_try="$ac_link"
  5561. case "(($ac_try" in
  5562. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  5563. *) ac_try_echo=$ac_try;;
  5564. esac
  5565. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  5566. (eval "$ac_link") 2>conftest.er1
  5567. ac_status=$?
  5568. grep -v '^ *+' conftest.er1 >conftest.err
  5569. rm -f conftest.er1
  5570. cat conftest.err >&5
  5571. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5572. (exit $ac_status); } && {
  5573. test -z "$ac_c_werror_flag" ||
  5574. test ! -s conftest.err
  5575. } && test -s conftest$ac_exeext &&
  5576. $as_test_x conftest$ac_exeext; then
  5577. ac_cv_func_alloca_works=yes
  5578. else
  5579. echo "$as_me: failed program was:" >&5
  5580. sed 's/^/| /' conftest.$ac_ext >&5
  5581. ac_cv_func_alloca_works=no
  5582. fi
  5583. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  5584. conftest$ac_exeext conftest.$ac_ext
  5585. fi
  5586. { echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
  5587. echo "${ECHO_T}$ac_cv_func_alloca_works" >&6; }
  5588. if test $ac_cv_func_alloca_works = yes; then
  5589. cat >>confdefs.h <<\_ACEOF
  5590. #define HAVE_ALLOCA 1
  5591. _ACEOF
  5592. else
  5593. # The SVR3 libPW and SVR4 libucb both contain incompatible functions
  5594. # that cause trouble. Some versions do not even contain alloca or
  5595. # contain a buggy version. If you still want to use their alloca,
  5596. # use ar to extract alloca.o from them instead of compiling alloca.c.
  5597. ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
  5598. cat >>confdefs.h <<\_ACEOF
  5599. #define C_ALLOCA 1
  5600. _ACEOF
  5601. { echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
  5602. echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6; }
  5603. if test "${ac_cv_os_cray+set}" = set; then
  5604. echo $ECHO_N "(cached) $ECHO_C" >&6
  5605. else
  5606. cat >conftest.$ac_ext <<_ACEOF
  5607. /* confdefs.h. */
  5608. _ACEOF
  5609. cat confdefs.h >>conftest.$ac_ext
  5610. cat >>conftest.$ac_ext <<_ACEOF
  5611. /* end confdefs.h. */
  5612. #if defined CRAY && ! defined CRAY2
  5613. webecray
  5614. #else
  5615. wenotbecray
  5616. #endif
  5617. _ACEOF
  5618. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  5619. $EGREP "webecray" >/dev/null 2>&1; then
  5620. ac_cv_os_cray=yes
  5621. else
  5622. ac_cv_os_cray=no
  5623. fi
  5624. rm -f conftest*
  5625. fi
  5626. { echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
  5627. echo "${ECHO_T}$ac_cv_os_cray" >&6; }
  5628. if test $ac_cv_os_cray = yes; then
  5629. for ac_func in _getb67 GETB67 getb67; do
  5630. as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
  5631. { echo "$as_me:$LINENO: checking for $ac_func" >&5
  5632. echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
  5633. if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
  5634. echo $ECHO_N "(cached) $ECHO_C" >&6
  5635. else
  5636. cat >conftest.$ac_ext <<_ACEOF
  5637. /* confdefs.h. */
  5638. _ACEOF
  5639. cat confdefs.h >>conftest.$ac_ext
  5640. cat >>conftest.$ac_ext <<_ACEOF
  5641. /* end confdefs.h. */
  5642. /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
  5643. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  5644. #define $ac_func innocuous_$ac_func
  5645. /* System header to define __stub macros and hopefully few prototypes,
  5646. which can conflict with char $ac_func (); below.
  5647. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  5648. <limits.h> exists even on freestanding compilers. */
  5649. #ifdef __STDC__
  5650. # include <limits.h>
  5651. #else
  5652. # include <assert.h>
  5653. #endif
  5654. #undef $ac_func
  5655. /* Override any GCC internal prototype to avoid an error.
  5656. Use char because int might match the return type of a GCC
  5657. builtin and then its argument prototype would still apply. */
  5658. #ifdef __cplusplus
  5659. extern "C"
  5660. #endif
  5661. char $ac_func ();
  5662. /* The GNU C library defines this for functions which it implements
  5663. to always fail with ENOSYS. Some functions are actually named
  5664. something starting with __ and the normal name is an alias. */
  5665. #if defined __stub_$ac_func || defined __stub___$ac_func
  5666. choke me
  5667. #endif
  5668. int
  5669. main ()
  5670. {
  5671. return $ac_func ();
  5672. ;
  5673. return 0;
  5674. }
  5675. _ACEOF
  5676. rm -f conftest.$ac_objext conftest$ac_exeext
  5677. if { (ac_try="$ac_link"
  5678. case "(($ac_try" in
  5679. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  5680. *) ac_try_echo=$ac_try;;
  5681. esac
  5682. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  5683. (eval "$ac_link") 2>conftest.er1
  5684. ac_status=$?
  5685. grep -v '^ *+' conftest.er1 >conftest.err
  5686. rm -f conftest.er1
  5687. cat conftest.err >&5
  5688. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5689. (exit $ac_status); } && {
  5690. test -z "$ac_c_werror_flag" ||
  5691. test ! -s conftest.err
  5692. } && test -s conftest$ac_exeext &&
  5693. $as_test_x conftest$ac_exeext; then
  5694. eval "$as_ac_var=yes"
  5695. else
  5696. echo "$as_me: failed program was:" >&5
  5697. sed 's/^/| /' conftest.$ac_ext >&5
  5698. eval "$as_ac_var=no"
  5699. fi
  5700. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  5701. conftest$ac_exeext conftest.$ac_ext
  5702. fi
  5703. ac_res=`eval echo '${'$as_ac_var'}'`
  5704. { echo "$as_me:$LINENO: result: $ac_res" >&5
  5705. echo "${ECHO_T}$ac_res" >&6; }
  5706. if test `eval echo '${'$as_ac_var'}'` = yes; then
  5707. cat >>confdefs.h <<_ACEOF
  5708. #define CRAY_STACKSEG_END $ac_func
  5709. _ACEOF
  5710. break
  5711. fi
  5712. done
  5713. fi
  5714. { echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
  5715. echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6; }
  5716. if test "${ac_cv_c_stack_direction+set}" = set; then
  5717. echo $ECHO_N "(cached) $ECHO_C" >&6
  5718. else
  5719. if test "$cross_compiling" = yes; then
  5720. ac_cv_c_stack_direction=0
  5721. else
  5722. cat >conftest.$ac_ext <<_ACEOF
  5723. /* confdefs.h. */
  5724. _ACEOF
  5725. cat confdefs.h >>conftest.$ac_ext
  5726. cat >>conftest.$ac_ext <<_ACEOF
  5727. /* end confdefs.h. */
  5728. $ac_includes_default
  5729. int
  5730. find_stack_direction ()
  5731. {
  5732. static char *addr = 0;
  5733. auto char dummy;
  5734. if (addr == 0)
  5735. {
  5736. addr = &dummy;
  5737. return find_stack_direction ();
  5738. }
  5739. else
  5740. return (&dummy > addr) ? 1 : -1;
  5741. }
  5742. int
  5743. main ()
  5744. {
  5745. return find_stack_direction () < 0;
  5746. }
  5747. _ACEOF
  5748. rm -f conftest$ac_exeext
  5749. if { (ac_try="$ac_link"
  5750. case "(($ac_try" in
  5751. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  5752. *) ac_try_echo=$ac_try;;
  5753. esac
  5754. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  5755. (eval "$ac_link") 2>&5
  5756. ac_status=$?
  5757. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5758. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  5759. { (case "(($ac_try" in
  5760. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  5761. *) ac_try_echo=$ac_try;;
  5762. esac
  5763. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  5764. (eval "$ac_try") 2>&5
  5765. ac_status=$?
  5766. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5767. (exit $ac_status); }; }; then
  5768. ac_cv_c_stack_direction=1
  5769. else
  5770. echo "$as_me: program exited with status $ac_status" >&5
  5771. echo "$as_me: failed program was:" >&5
  5772. sed 's/^/| /' conftest.$ac_ext >&5
  5773. ( exit $ac_status )
  5774. ac_cv_c_stack_direction=-1
  5775. fi
  5776. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  5777. fi
  5778. fi
  5779. { echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
  5780. echo "${ECHO_T}$ac_cv_c_stack_direction" >&6; }
  5781. cat >>confdefs.h <<_ACEOF
  5782. #define STACK_DIRECTION $ac_cv_c_stack_direction
  5783. _ACEOF
  5784. fi
  5785. #AC_HEADER_STDC
  5786. 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
  5787. do
  5788. as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
  5789. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  5790. { echo "$as_me:$LINENO: checking for $ac_header" >&5
  5791. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
  5792. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  5793. echo $ECHO_N "(cached) $ECHO_C" >&6
  5794. fi
  5795. ac_res=`eval echo '${'$as_ac_Header'}'`
  5796. { echo "$as_me:$LINENO: result: $ac_res" >&5
  5797. echo "${ECHO_T}$ac_res" >&6; }
  5798. else
  5799. # Is the header compilable?
  5800. { echo "$as_me:$LINENO: checking $ac_header usability" >&5
  5801. echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
  5802. cat >conftest.$ac_ext <<_ACEOF
  5803. /* confdefs.h. */
  5804. _ACEOF
  5805. cat confdefs.h >>conftest.$ac_ext
  5806. cat >>conftest.$ac_ext <<_ACEOF
  5807. /* end confdefs.h. */
  5808. $ac_includes_default
  5809. #include <$ac_header>
  5810. _ACEOF
  5811. rm -f conftest.$ac_objext
  5812. if { (ac_try="$ac_compile"
  5813. case "(($ac_try" in
  5814. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  5815. *) ac_try_echo=$ac_try;;
  5816. esac
  5817. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  5818. (eval "$ac_compile") 2>conftest.er1
  5819. ac_status=$?
  5820. grep -v '^ *+' conftest.er1 >conftest.err
  5821. rm -f conftest.er1
  5822. cat conftest.err >&5
  5823. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5824. (exit $ac_status); } && {
  5825. test -z "$ac_c_werror_flag" ||
  5826. test ! -s conftest.err
  5827. } && test -s conftest.$ac_objext; then
  5828. ac_header_compiler=yes
  5829. else
  5830. echo "$as_me: failed program was:" >&5
  5831. sed 's/^/| /' conftest.$ac_ext >&5
  5832. ac_header_compiler=no
  5833. fi
  5834. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  5835. { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  5836. echo "${ECHO_T}$ac_header_compiler" >&6; }
  5837. # Is the header present?
  5838. { echo "$as_me:$LINENO: checking $ac_header presence" >&5
  5839. echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
  5840. cat >conftest.$ac_ext <<_ACEOF
  5841. /* confdefs.h. */
  5842. _ACEOF
  5843. cat confdefs.h >>conftest.$ac_ext
  5844. cat >>conftest.$ac_ext <<_ACEOF
  5845. /* end confdefs.h. */
  5846. #include <$ac_header>
  5847. _ACEOF
  5848. if { (ac_try="$ac_cpp conftest.$ac_ext"
  5849. case "(($ac_try" in
  5850. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  5851. *) ac_try_echo=$ac_try;;
  5852. esac
  5853. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  5854. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  5855. ac_status=$?
  5856. grep -v '^ *+' conftest.er1 >conftest.err
  5857. rm -f conftest.er1
  5858. cat conftest.err >&5
  5859. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5860. (exit $ac_status); } >/dev/null && {
  5861. test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
  5862. test ! -s conftest.err
  5863. }; then
  5864. ac_header_preproc=yes
  5865. else
  5866. echo "$as_me: failed program was:" >&5
  5867. sed 's/^/| /' conftest.$ac_ext >&5
  5868. ac_header_preproc=no
  5869. fi
  5870. rm -f conftest.err conftest.$ac_ext
  5871. { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  5872. echo "${ECHO_T}$ac_header_preproc" >&6; }
  5873. # So? What about this header?
  5874. case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
  5875. yes:no: )
  5876. { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
  5877. echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
  5878. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
  5879. echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
  5880. ac_header_preproc=yes
  5881. ;;
  5882. no:yes:* )
  5883. { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
  5884. echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
  5885. { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
  5886. echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
  5887. { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
  5888. echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
  5889. { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
  5890. echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
  5891. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
  5892. echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
  5893. { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
  5894. echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
  5895. ( cat <<\_ASBOX
  5896. ## ----------------------------------------------- ##
  5897. ## Report this to t-tujikawa@users.sourceforge.net ##
  5898. ## ----------------------------------------------- ##
  5899. _ASBOX
  5900. ) | sed "s/^/$as_me: WARNING: /" >&2
  5901. ;;
  5902. esac
  5903. { echo "$as_me:$LINENO: checking for $ac_header" >&5
  5904. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
  5905. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  5906. echo $ECHO_N "(cached) $ECHO_C" >&6
  5907. else
  5908. eval "$as_ac_Header=\$ac_header_preproc"
  5909. fi
  5910. ac_res=`eval echo '${'$as_ac_Header'}'`
  5911. { echo "$as_me:$LINENO: result: $ac_res" >&5
  5912. echo "${ECHO_T}$ac_res" >&6; }
  5913. fi
  5914. if test `eval echo '${'$as_ac_Header'}'` = yes; then
  5915. cat >>confdefs.h <<_ACEOF
  5916. #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
  5917. _ACEOF
  5918. fi
  5919. done
  5920. # Checks for typedefs, structures, and compiler characteristics.
  5921. { echo "$as_me:$LINENO: checking for stdbool.h that conforms to C99" >&5
  5922. echo $ECHO_N "checking for stdbool.h that conforms to C99... $ECHO_C" >&6; }
  5923. if test "${ac_cv_header_stdbool_h+set}" = set; then
  5924. echo $ECHO_N "(cached) $ECHO_C" >&6
  5925. else
  5926. cat >conftest.$ac_ext <<_ACEOF
  5927. /* confdefs.h. */
  5928. _ACEOF
  5929. cat confdefs.h >>conftest.$ac_ext
  5930. cat >>conftest.$ac_ext <<_ACEOF
  5931. /* end confdefs.h. */
  5932. #include <stdbool.h>
  5933. #ifndef bool
  5934. "error: bool is not defined"
  5935. #endif
  5936. #ifndef false
  5937. "error: false is not defined"
  5938. #endif
  5939. #if false
  5940. "error: false is not 0"
  5941. #endif
  5942. #ifndef true
  5943. "error: true is not defined"
  5944. #endif
  5945. #if true != 1
  5946. "error: true is not 1"
  5947. #endif
  5948. #ifndef __bool_true_false_are_defined
  5949. "error: __bool_true_false_are_defined is not defined"
  5950. #endif
  5951. struct s { _Bool s: 1; _Bool t; } s;
  5952. char a[true == 1 ? 1 : -1];
  5953. char b[false == 0 ? 1 : -1];
  5954. char c[__bool_true_false_are_defined == 1 ? 1 : -1];
  5955. char d[(bool) 0.5 == true ? 1 : -1];
  5956. bool e = &s;
  5957. char f[(_Bool) 0.0 == false ? 1 : -1];
  5958. char g[true];
  5959. char h[sizeof (_Bool)];
  5960. char i[sizeof s.t];
  5961. enum { j = false, k = true, l = false * true, m = true * 256 };
  5962. _Bool n[m];
  5963. char o[sizeof n == m * sizeof n[0] ? 1 : -1];
  5964. char p[-1 - (_Bool) 0 < 0 && -1 - (bool) 0 < 0 ? 1 : -1];
  5965. # if defined __xlc__ || defined __GNUC__
  5966. /* Catch a bug in IBM AIX xlc compiler version 6.0.0.0
  5967. reported by James Lemley on 2005-10-05; see
  5968. http://lists.gnu.org/archive/html/bug-coreutils/2005-10/msg00086.html
  5969. This test is not quite right, since xlc is allowed to
  5970. reject this program, as the initializer for xlcbug is
  5971. not one of the forms that C requires support for.
  5972. However, doing the test right would require a runtime
  5973. test, and that would make cross-compilation harder.
  5974. Let us hope that IBM fixes the xlc bug, and also adds
  5975. support for this kind of constant expression. In the
  5976. meantime, this test will reject xlc, which is OK, since
  5977. our stdbool.h substitute should suffice. We also test
  5978. this with GCC, where it should work, to detect more
  5979. quickly whether someone messes up the test in the
  5980. future. */
  5981. char digs[] = "0123456789";
  5982. int xlcbug = 1 / (&(digs + 5)[-2 + (bool) 1] == &digs[4] ? 1 : -1);
  5983. # endif
  5984. /* Catch a bug in an HP-UX C compiler. See
  5985. http://gcc.gnu.org/ml/gcc-patches/2003-12/msg02303.html
  5986. http://lists.gnu.org/archive/html/bug-coreutils/2005-11/msg00161.html
  5987. */
  5988. _Bool q = true;
  5989. _Bool *pq = &q;
  5990. int
  5991. main ()
  5992. {
  5993. *pq |= q;
  5994. *pq |= ! q;
  5995. /* Refer to every declared value, to avoid compiler optimizations. */
  5996. return (!a + !b + !c + !d + !e + !f + !g + !h + !i + !!j + !k + !!l
  5997. + !m + !n + !o + !p + !q + !pq);
  5998. ;
  5999. return 0;
  6000. }
  6001. _ACEOF
  6002. rm -f conftest.$ac_objext
  6003. if { (ac_try="$ac_compile"
  6004. case "(($ac_try" in
  6005. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  6006. *) ac_try_echo=$ac_try;;
  6007. esac
  6008. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  6009. (eval "$ac_compile") 2>conftest.er1
  6010. ac_status=$?
  6011. grep -v '^ *+' conftest.er1 >conftest.err
  6012. rm -f conftest.er1
  6013. cat conftest.err >&5
  6014. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6015. (exit $ac_status); } && {
  6016. test -z "$ac_c_werror_flag" ||
  6017. test ! -s conftest.err
  6018. } && test -s conftest.$ac_objext; then
  6019. ac_cv_header_stdbool_h=yes
  6020. else
  6021. echo "$as_me: failed program was:" >&5
  6022. sed 's/^/| /' conftest.$ac_ext >&5
  6023. ac_cv_header_stdbool_h=no
  6024. fi
  6025. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  6026. fi
  6027. { echo "$as_me:$LINENO: result: $ac_cv_header_stdbool_h" >&5
  6028. echo "${ECHO_T}$ac_cv_header_stdbool_h" >&6; }
  6029. { echo "$as_me:$LINENO: checking for _Bool" >&5
  6030. echo $ECHO_N "checking for _Bool... $ECHO_C" >&6; }
  6031. if test "${ac_cv_type__Bool+set}" = set; then
  6032. echo $ECHO_N "(cached) $ECHO_C" >&6
  6033. else
  6034. cat >conftest.$ac_ext <<_ACEOF
  6035. /* confdefs.h. */
  6036. _ACEOF
  6037. cat confdefs.h >>conftest.$ac_ext
  6038. cat >>conftest.$ac_ext <<_ACEOF
  6039. /* end confdefs.h. */
  6040. $ac_includes_default
  6041. typedef _Bool ac__type_new_;
  6042. int
  6043. main ()
  6044. {
  6045. if ((ac__type_new_ *) 0)
  6046. return 0;
  6047. if (sizeof (ac__type_new_))
  6048. return 0;
  6049. ;
  6050. return 0;
  6051. }
  6052. _ACEOF
  6053. rm -f conftest.$ac_objext
  6054. if { (ac_try="$ac_compile"
  6055. case "(($ac_try" in
  6056. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  6057. *) ac_try_echo=$ac_try;;
  6058. esac
  6059. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  6060. (eval "$ac_compile") 2>conftest.er1
  6061. ac_status=$?
  6062. grep -v '^ *+' conftest.er1 >conftest.err
  6063. rm -f conftest.er1
  6064. cat conftest.err >&5
  6065. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6066. (exit $ac_status); } && {
  6067. test -z "$ac_c_werror_flag" ||
  6068. test ! -s conftest.err
  6069. } && test -s conftest.$ac_objext; then
  6070. ac_cv_type__Bool=yes
  6071. else
  6072. echo "$as_me: failed program was:" >&5
  6073. sed 's/^/| /' conftest.$ac_ext >&5
  6074. ac_cv_type__Bool=no
  6075. fi
  6076. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  6077. fi
  6078. { echo "$as_me:$LINENO: result: $ac_cv_type__Bool" >&5
  6079. echo "${ECHO_T}$ac_cv_type__Bool" >&6; }
  6080. if test $ac_cv_type__Bool = yes; then
  6081. cat >>confdefs.h <<_ACEOF
  6082. #define HAVE__BOOL 1
  6083. _ACEOF
  6084. fi
  6085. if test $ac_cv_header_stdbool_h = yes; then
  6086. cat >>confdefs.h <<\_ACEOF
  6087. #define HAVE_STDBOOL_H 1
  6088. _ACEOF
  6089. fi
  6090. { echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
  6091. echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
  6092. if test "${ac_cv_c_const+set}" = set; then
  6093. echo $ECHO_N "(cached) $ECHO_C" >&6
  6094. else
  6095. cat >conftest.$ac_ext <<_ACEOF
  6096. /* confdefs.h. */
  6097. _ACEOF
  6098. cat confdefs.h >>conftest.$ac_ext
  6099. cat >>conftest.$ac_ext <<_ACEOF
  6100. /* end confdefs.h. */
  6101. int
  6102. main ()
  6103. {
  6104. /* FIXME: Include the comments suggested by Paul. */
  6105. #ifndef __cplusplus
  6106. /* Ultrix mips cc rejects this. */
  6107. typedef int charset[2];
  6108. const charset cs;
  6109. /* SunOS 4.1.1 cc rejects this. */
  6110. char const *const *pcpcc;
  6111. char **ppc;
  6112. /* NEC SVR4.0.2 mips cc rejects this. */
  6113. struct point {int x, y;};
  6114. static struct point const zero = {0,0};
  6115. /* AIX XL C 1.02.0.0 rejects this.
  6116. It does not let you subtract one const X* pointer from another in
  6117. an arm of an if-expression whose if-part is not a constant
  6118. expression */
  6119. const char *g = "string";
  6120. pcpcc = &g + (g ? g-g : 0);
  6121. /* HPUX 7.0 cc rejects these. */
  6122. ++pcpcc;
  6123. ppc = (char**) pcpcc;
  6124. pcpcc = (char const *const *) ppc;
  6125. { /* SCO 3.2v4 cc rejects this. */
  6126. char *t;
  6127. char const *s = 0 ? (char *) 0 : (char const *) 0;
  6128. *t++ = 0;
  6129. if (s) return 0;
  6130. }
  6131. { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
  6132. int x[] = {25, 17};
  6133. const int *foo = &x[0];
  6134. ++foo;
  6135. }
  6136. { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
  6137. typedef const int *iptr;
  6138. iptr p = 0;
  6139. ++p;
  6140. }
  6141. { /* AIX XL C 1.02.0.0 rejects this saying
  6142. "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
  6143. struct s { int j; const int *ap[3]; };
  6144. struct s *b; b->j = 5;
  6145. }
  6146. { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
  6147. const int foo = 10;
  6148. if (!foo) return 0;
  6149. }
  6150. return !cs[0] && !zero.x;
  6151. #endif
  6152. ;
  6153. return 0;
  6154. }
  6155. _ACEOF
  6156. rm -f conftest.$ac_objext
  6157. if { (ac_try="$ac_compile"
  6158. case "(($ac_try" in
  6159. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  6160. *) ac_try_echo=$ac_try;;
  6161. esac
  6162. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  6163. (eval "$ac_compile") 2>conftest.er1
  6164. ac_status=$?
  6165. grep -v '^ *+' conftest.er1 >conftest.err
  6166. rm -f conftest.er1
  6167. cat conftest.err >&5
  6168. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6169. (exit $ac_status); } && {
  6170. test -z "$ac_c_werror_flag" ||
  6171. test ! -s conftest.err
  6172. } && test -s conftest.$ac_objext; then
  6173. ac_cv_c_const=yes
  6174. else
  6175. echo "$as_me: failed program was:" >&5
  6176. sed 's/^/| /' conftest.$ac_ext >&5
  6177. ac_cv_c_const=no
  6178. fi
  6179. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  6180. fi
  6181. { echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
  6182. echo "${ECHO_T}$ac_cv_c_const" >&6; }
  6183. if test $ac_cv_c_const = no; then
  6184. cat >>confdefs.h <<\_ACEOF
  6185. #define const
  6186. _ACEOF
  6187. fi
  6188. { echo "$as_me:$LINENO: checking for inline" >&5
  6189. echo $ECHO_N "checking for inline... $ECHO_C" >&6; }
  6190. if test "${ac_cv_c_inline+set}" = set; then
  6191. echo $ECHO_N "(cached) $ECHO_C" >&6
  6192. else
  6193. ac_cv_c_inline=no
  6194. for ac_kw in inline __inline__ __inline; do
  6195. cat >conftest.$ac_ext <<_ACEOF
  6196. /* confdefs.h. */
  6197. _ACEOF
  6198. cat confdefs.h >>conftest.$ac_ext
  6199. cat >>conftest.$ac_ext <<_ACEOF
  6200. /* end confdefs.h. */
  6201. #ifndef __cplusplus
  6202. typedef int foo_t;
  6203. static $ac_kw foo_t static_foo () {return 0; }
  6204. $ac_kw foo_t foo () {return 0; }
  6205. #endif
  6206. _ACEOF
  6207. rm -f conftest.$ac_objext
  6208. if { (ac_try="$ac_compile"
  6209. case "(($ac_try" in
  6210. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  6211. *) ac_try_echo=$ac_try;;
  6212. esac
  6213. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  6214. (eval "$ac_compile") 2>conftest.er1
  6215. ac_status=$?
  6216. grep -v '^ *+' conftest.er1 >conftest.err
  6217. rm -f conftest.er1
  6218. cat conftest.err >&5
  6219. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6220. (exit $ac_status); } && {
  6221. test -z "$ac_c_werror_flag" ||
  6222. test ! -s conftest.err
  6223. } && test -s conftest.$ac_objext; then
  6224. ac_cv_c_inline=$ac_kw
  6225. else
  6226. echo "$as_me: failed program was:" >&5
  6227. sed 's/^/| /' conftest.$ac_ext >&5
  6228. fi
  6229. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  6230. test "$ac_cv_c_inline" != no && break
  6231. done
  6232. fi
  6233. { echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
  6234. echo "${ECHO_T}$ac_cv_c_inline" >&6; }
  6235. case $ac_cv_c_inline in
  6236. inline | yes) ;;
  6237. *)
  6238. case $ac_cv_c_inline in
  6239. no) ac_val=;;
  6240. *) ac_val=$ac_cv_c_inline;;
  6241. esac
  6242. cat >>confdefs.h <<_ACEOF
  6243. #ifndef __cplusplus
  6244. #define inline $ac_val
  6245. #endif
  6246. _ACEOF
  6247. ;;
  6248. esac
  6249. { echo "$as_me:$LINENO: checking for size_t" >&5
  6250. echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
  6251. if test "${ac_cv_type_size_t+set}" = set; then
  6252. echo $ECHO_N "(cached) $ECHO_C" >&6
  6253. else
  6254. cat >conftest.$ac_ext <<_ACEOF
  6255. /* confdefs.h. */
  6256. _ACEOF
  6257. cat confdefs.h >>conftest.$ac_ext
  6258. cat >>conftest.$ac_ext <<_ACEOF
  6259. /* end confdefs.h. */
  6260. $ac_includes_default
  6261. typedef size_t ac__type_new_;
  6262. int
  6263. main ()
  6264. {
  6265. if ((ac__type_new_ *) 0)
  6266. return 0;
  6267. if (sizeof (ac__type_new_))
  6268. return 0;
  6269. ;
  6270. return 0;
  6271. }
  6272. _ACEOF
  6273. rm -f conftest.$ac_objext
  6274. if { (ac_try="$ac_compile"
  6275. case "(($ac_try" in
  6276. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  6277. *) ac_try_echo=$ac_try;;
  6278. esac
  6279. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  6280. (eval "$ac_compile") 2>conftest.er1
  6281. ac_status=$?
  6282. grep -v '^ *+' conftest.er1 >conftest.err
  6283. rm -f conftest.er1
  6284. cat conftest.err >&5
  6285. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6286. (exit $ac_status); } && {
  6287. test -z "$ac_c_werror_flag" ||
  6288. test ! -s conftest.err
  6289. } && test -s conftest.$ac_objext; then
  6290. ac_cv_type_size_t=yes
  6291. else
  6292. echo "$as_me: failed program was:" >&5
  6293. sed 's/^/| /' conftest.$ac_ext >&5
  6294. ac_cv_type_size_t=no
  6295. fi
  6296. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  6297. fi
  6298. { echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
  6299. echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
  6300. if test $ac_cv_type_size_t = yes; then
  6301. :
  6302. else
  6303. cat >>confdefs.h <<_ACEOF
  6304. #define size_t unsigned int
  6305. _ACEOF
  6306. fi
  6307. { echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
  6308. echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6; }
  6309. if test "${ac_cv_header_time+set}" = set; then
  6310. echo $ECHO_N "(cached) $ECHO_C" >&6
  6311. else
  6312. cat >conftest.$ac_ext <<_ACEOF
  6313. /* confdefs.h. */
  6314. _ACEOF
  6315. cat confdefs.h >>conftest.$ac_ext
  6316. cat >>conftest.$ac_ext <<_ACEOF
  6317. /* end confdefs.h. */
  6318. #include <sys/types.h>
  6319. #include <sys/time.h>
  6320. #include <time.h>
  6321. int
  6322. main ()
  6323. {
  6324. if ((struct tm *) 0)
  6325. return 0;
  6326. ;
  6327. return 0;
  6328. }
  6329. _ACEOF
  6330. rm -f conftest.$ac_objext
  6331. if { (ac_try="$ac_compile"
  6332. case "(($ac_try" in
  6333. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  6334. *) ac_try_echo=$ac_try;;
  6335. esac
  6336. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  6337. (eval "$ac_compile") 2>conftest.er1
  6338. ac_status=$?
  6339. grep -v '^ *+' conftest.er1 >conftest.err
  6340. rm -f conftest.er1
  6341. cat conftest.err >&5
  6342. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6343. (exit $ac_status); } && {
  6344. test -z "$ac_c_werror_flag" ||
  6345. test ! -s conftest.err
  6346. } && test -s conftest.$ac_objext; then
  6347. ac_cv_header_time=yes
  6348. else
  6349. echo "$as_me: failed program was:" >&5
  6350. sed 's/^/| /' conftest.$ac_ext >&5
  6351. ac_cv_header_time=no
  6352. fi
  6353. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  6354. fi
  6355. { echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
  6356. echo "${ECHO_T}$ac_cv_header_time" >&6; }
  6357. if test $ac_cv_header_time = yes; then
  6358. cat >>confdefs.h <<\_ACEOF
  6359. #define TIME_WITH_SYS_TIME 1
  6360. _ACEOF
  6361. fi
  6362. { echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
  6363. echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6; }
  6364. if test "${ac_cv_struct_tm+set}" = set; then
  6365. echo $ECHO_N "(cached) $ECHO_C" >&6
  6366. else
  6367. cat >conftest.$ac_ext <<_ACEOF
  6368. /* confdefs.h. */
  6369. _ACEOF
  6370. cat confdefs.h >>conftest.$ac_ext
  6371. cat >>conftest.$ac_ext <<_ACEOF
  6372. /* end confdefs.h. */
  6373. #include <sys/types.h>
  6374. #include <time.h>
  6375. int
  6376. main ()
  6377. {
  6378. struct tm tm;
  6379. int *p = &tm.tm_sec;
  6380. return !p;
  6381. ;
  6382. return 0;
  6383. }
  6384. _ACEOF
  6385. rm -f conftest.$ac_objext
  6386. if { (ac_try="$ac_compile"
  6387. case "(($ac_try" in
  6388. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  6389. *) ac_try_echo=$ac_try;;
  6390. esac
  6391. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  6392. (eval "$ac_compile") 2>conftest.er1
  6393. ac_status=$?
  6394. grep -v '^ *+' conftest.er1 >conftest.err
  6395. rm -f conftest.er1
  6396. cat conftest.err >&5
  6397. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6398. (exit $ac_status); } && {
  6399. test -z "$ac_c_werror_flag" ||
  6400. test ! -s conftest.err
  6401. } && test -s conftest.$ac_objext; then
  6402. ac_cv_struct_tm=time.h
  6403. else
  6404. echo "$as_me: failed program was:" >&5
  6405. sed 's/^/| /' conftest.$ac_ext >&5
  6406. ac_cv_struct_tm=sys/time.h
  6407. fi
  6408. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  6409. fi
  6410. { echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
  6411. echo "${ECHO_T}$ac_cv_struct_tm" >&6; }
  6412. if test $ac_cv_struct_tm = sys/time.h; then
  6413. cat >>confdefs.h <<\_ACEOF
  6414. #define TM_IN_SYS_TIME 1
  6415. _ACEOF
  6416. fi
  6417. { echo "$as_me:$LINENO: checking for working volatile" >&5
  6418. echo $ECHO_N "checking for working volatile... $ECHO_C" >&6; }
  6419. if test "${ac_cv_c_volatile+set}" = set; then
  6420. echo $ECHO_N "(cached) $ECHO_C" >&6
  6421. else
  6422. cat >conftest.$ac_ext <<_ACEOF
  6423. /* confdefs.h. */
  6424. _ACEOF
  6425. cat confdefs.h >>conftest.$ac_ext
  6426. cat >>conftest.$ac_ext <<_ACEOF
  6427. /* end confdefs.h. */
  6428. int
  6429. main ()
  6430. {
  6431. volatile int x;
  6432. int * volatile y = (int *) 0;
  6433. return !x && !y;
  6434. ;
  6435. return 0;
  6436. }
  6437. _ACEOF
  6438. rm -f conftest.$ac_objext
  6439. if { (ac_try="$ac_compile"
  6440. case "(($ac_try" in
  6441. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  6442. *) ac_try_echo=$ac_try;;
  6443. esac
  6444. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  6445. (eval "$ac_compile") 2>conftest.er1
  6446. ac_status=$?
  6447. grep -v '^ *+' conftest.er1 >conftest.err
  6448. rm -f conftest.er1
  6449. cat conftest.err >&5
  6450. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6451. (exit $ac_status); } && {
  6452. test -z "$ac_c_werror_flag" ||
  6453. test ! -s conftest.err
  6454. } && test -s conftest.$ac_objext; then
  6455. ac_cv_c_volatile=yes
  6456. else
  6457. echo "$as_me: failed program was:" >&5
  6458. sed 's/^/| /' conftest.$ac_ext >&5
  6459. ac_cv_c_volatile=no
  6460. fi
  6461. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  6462. fi
  6463. { echo "$as_me:$LINENO: result: $ac_cv_c_volatile" >&5
  6464. echo "${ECHO_T}$ac_cv_c_volatile" >&6; }
  6465. if test $ac_cv_c_volatile = no; then
  6466. cat >>confdefs.h <<\_ACEOF
  6467. #define volatile
  6468. _ACEOF
  6469. fi
  6470. # Checks for library functions.
  6471. MKINSTALLDIRS=
  6472. if test -n "$ac_aux_dir"; then
  6473. case "$ac_aux_dir" in
  6474. /*) MKINSTALLDIRS="$ac_aux_dir/mkinstalldirs" ;;
  6475. *) MKINSTALLDIRS="\$(top_builddir)/$ac_aux_dir/mkinstalldirs" ;;
  6476. esac
  6477. fi
  6478. if test -z "$MKINSTALLDIRS"; then
  6479. MKINSTALLDIRS="\$(top_srcdir)/mkinstalldirs"
  6480. fi
  6481. { echo "$as_me:$LINENO: checking whether NLS is requested" >&5
  6482. echo $ECHO_N "checking whether NLS is requested... $ECHO_C" >&6; }
  6483. # Check whether --enable-nls was given.
  6484. if test "${enable_nls+set}" = set; then
  6485. enableval=$enable_nls; USE_NLS=$enableval
  6486. else
  6487. USE_NLS=yes
  6488. fi
  6489. { echo "$as_me:$LINENO: result: $USE_NLS" >&5
  6490. echo "${ECHO_T}$USE_NLS" >&6; }
  6491. # Prepare PATH_SEPARATOR.
  6492. # The user is always right.
  6493. if test "${PATH_SEPARATOR+set}" != set; then
  6494. echo "#! /bin/sh" >conf$$.sh
  6495. echo "exit 0" >>conf$$.sh
  6496. chmod +x conf$$.sh
  6497. if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
  6498. PATH_SEPARATOR=';'
  6499. else
  6500. PATH_SEPARATOR=:
  6501. fi
  6502. rm -f conf$$.sh
  6503. fi
  6504. # Find out how to test for executable files. Don't use a zero-byte file,
  6505. # as systems may use methods other than mode bits to determine executability.
  6506. cat >conf$$.file <<_ASEOF
  6507. #! /bin/sh
  6508. exit 0
  6509. _ASEOF
  6510. chmod +x conf$$.file
  6511. if test -x conf$$.file >/dev/null 2>&1; then
  6512. ac_executable_p="test -x"
  6513. else
  6514. ac_executable_p="test -f"
  6515. fi
  6516. rm -f conf$$.file
  6517. # Extract the first word of "msgfmt", so it can be a program name with args.
  6518. set dummy msgfmt; ac_word=$2
  6519. { echo "$as_me:$LINENO: checking for $ac_word" >&5
  6520. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  6521. if test "${ac_cv_path_MSGFMT+set}" = set; then
  6522. echo $ECHO_N "(cached) $ECHO_C" >&6
  6523. else
  6524. case "$MSGFMT" in
  6525. [\\/]* | ?:[\\/]*)
  6526. ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
  6527. ;;
  6528. *)
  6529. ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
  6530. for ac_dir in $PATH; do
  6531. IFS="$ac_save_IFS"
  6532. test -z "$ac_dir" && ac_dir=.
  6533. for ac_exec_ext in '' $ac_executable_extensions; do
  6534. if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
  6535. if $ac_dir/$ac_word --statistics /dev/null >/dev/null 2>&1 &&
  6536. (if $ac_dir/$ac_word --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
  6537. ac_cv_path_MSGFMT="$ac_dir/$ac_word$ac_exec_ext"
  6538. break 2
  6539. fi
  6540. fi
  6541. done
  6542. done
  6543. IFS="$ac_save_IFS"
  6544. test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT=":"
  6545. ;;
  6546. esac
  6547. fi
  6548. MSGFMT="$ac_cv_path_MSGFMT"
  6549. if test "$MSGFMT" != ":"; then
  6550. { echo "$as_me:$LINENO: result: $MSGFMT" >&5
  6551. echo "${ECHO_T}$MSGFMT" >&6; }
  6552. else
  6553. { echo "$as_me:$LINENO: result: no" >&5
  6554. echo "${ECHO_T}no" >&6; }
  6555. fi
  6556. # Extract the first word of "gmsgfmt", so it can be a program name with args.
  6557. set dummy gmsgfmt; ac_word=$2
  6558. { echo "$as_me:$LINENO: checking for $ac_word" >&5
  6559. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  6560. if test "${ac_cv_path_GMSGFMT+set}" = set; then
  6561. echo $ECHO_N "(cached) $ECHO_C" >&6
  6562. else
  6563. case $GMSGFMT in
  6564. [\\/]* | ?:[\\/]*)
  6565. ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
  6566. ;;
  6567. *)
  6568. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6569. for as_dir in $PATH
  6570. do
  6571. IFS=$as_save_IFS
  6572. test -z "$as_dir" && as_dir=.
  6573. for ac_exec_ext in '' $ac_executable_extensions; do
  6574. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  6575. ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
  6576. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  6577. break 2
  6578. fi
  6579. done
  6580. done
  6581. IFS=$as_save_IFS
  6582. test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
  6583. ;;
  6584. esac
  6585. fi
  6586. GMSGFMT=$ac_cv_path_GMSGFMT
  6587. if test -n "$GMSGFMT"; then
  6588. { echo "$as_me:$LINENO: result: $GMSGFMT" >&5
  6589. echo "${ECHO_T}$GMSGFMT" >&6; }
  6590. else
  6591. { echo "$as_me:$LINENO: result: no" >&5
  6592. echo "${ECHO_T}no" >&6; }
  6593. fi
  6594. # Prepare PATH_SEPARATOR.
  6595. # The user is always right.
  6596. if test "${PATH_SEPARATOR+set}" != set; then
  6597. echo "#! /bin/sh" >conf$$.sh
  6598. echo "exit 0" >>conf$$.sh
  6599. chmod +x conf$$.sh
  6600. if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
  6601. PATH_SEPARATOR=';'
  6602. else
  6603. PATH_SEPARATOR=:
  6604. fi
  6605. rm -f conf$$.sh
  6606. fi
  6607. # Find out how to test for executable files. Don't use a zero-byte file,
  6608. # as systems may use methods other than mode bits to determine executability.
  6609. cat >conf$$.file <<_ASEOF
  6610. #! /bin/sh
  6611. exit 0
  6612. _ASEOF
  6613. chmod +x conf$$.file
  6614. if test -x conf$$.file >/dev/null 2>&1; then
  6615. ac_executable_p="test -x"
  6616. else
  6617. ac_executable_p="test -f"
  6618. fi
  6619. rm -f conf$$.file
  6620. # Extract the first word of "xgettext", so it can be a program name with args.
  6621. set dummy xgettext; ac_word=$2
  6622. { echo "$as_me:$LINENO: checking for $ac_word" >&5
  6623. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  6624. if test "${ac_cv_path_XGETTEXT+set}" = set; then
  6625. echo $ECHO_N "(cached) $ECHO_C" >&6
  6626. else
  6627. case "$XGETTEXT" in
  6628. [\\/]* | ?:[\\/]*)
  6629. ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
  6630. ;;
  6631. *)
  6632. ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
  6633. for ac_dir in $PATH; do
  6634. IFS="$ac_save_IFS"
  6635. test -z "$ac_dir" && ac_dir=.
  6636. for ac_exec_ext in '' $ac_executable_extensions; do
  6637. if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
  6638. if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >/dev/null 2>&1 &&
  6639. (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
  6640. ac_cv_path_XGETTEXT="$ac_dir/$ac_word$ac_exec_ext"
  6641. break 2
  6642. fi
  6643. fi
  6644. done
  6645. done
  6646. IFS="$ac_save_IFS"
  6647. test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
  6648. ;;
  6649. esac
  6650. fi
  6651. XGETTEXT="$ac_cv_path_XGETTEXT"
  6652. if test "$XGETTEXT" != ":"; then
  6653. { echo "$as_me:$LINENO: result: $XGETTEXT" >&5
  6654. echo "${ECHO_T}$XGETTEXT" >&6; }
  6655. else
  6656. { echo "$as_me:$LINENO: result: no" >&5
  6657. echo "${ECHO_T}no" >&6; }
  6658. fi
  6659. rm -f messages.po
  6660. # Prepare PATH_SEPARATOR.
  6661. # The user is always right.
  6662. if test "${PATH_SEPARATOR+set}" != set; then
  6663. echo "#! /bin/sh" >conf$$.sh
  6664. echo "exit 0" >>conf$$.sh
  6665. chmod +x conf$$.sh
  6666. if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
  6667. PATH_SEPARATOR=';'
  6668. else
  6669. PATH_SEPARATOR=:
  6670. fi
  6671. rm -f conf$$.sh
  6672. fi
  6673. # Find out how to test for executable files. Don't use a zero-byte file,
  6674. # as systems may use methods other than mode bits to determine executability.
  6675. cat >conf$$.file <<_ASEOF
  6676. #! /bin/sh
  6677. exit 0
  6678. _ASEOF
  6679. chmod +x conf$$.file
  6680. if test -x conf$$.file >/dev/null 2>&1; then
  6681. ac_executable_p="test -x"
  6682. else
  6683. ac_executable_p="test -f"
  6684. fi
  6685. rm -f conf$$.file
  6686. # Extract the first word of "msgmerge", so it can be a program name with args.
  6687. set dummy msgmerge; ac_word=$2
  6688. { echo "$as_me:$LINENO: checking for $ac_word" >&5
  6689. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  6690. if test "${ac_cv_path_MSGMERGE+set}" = set; then
  6691. echo $ECHO_N "(cached) $ECHO_C" >&6
  6692. else
  6693. case "$MSGMERGE" in
  6694. [\\/]* | ?:[\\/]*)
  6695. ac_cv_path_MSGMERGE="$MSGMERGE" # Let the user override the test with a path.
  6696. ;;
  6697. *)
  6698. ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
  6699. for ac_dir in $PATH; do
  6700. IFS="$ac_save_IFS"
  6701. test -z "$ac_dir" && ac_dir=.
  6702. for ac_exec_ext in '' $ac_executable_extensions; do
  6703. if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
  6704. if $ac_dir/$ac_word --update -q /dev/null /dev/null >/dev/null 2>&1; then
  6705. ac_cv_path_MSGMERGE="$ac_dir/$ac_word$ac_exec_ext"
  6706. break 2
  6707. fi
  6708. fi
  6709. done
  6710. done
  6711. IFS="$ac_save_IFS"
  6712. test -z "$ac_cv_path_MSGMERGE" && ac_cv_path_MSGMERGE=":"
  6713. ;;
  6714. esac
  6715. fi
  6716. MSGMERGE="$ac_cv_path_MSGMERGE"
  6717. if test "$MSGMERGE" != ":"; then
  6718. { echo "$as_me:$LINENO: result: $MSGMERGE" >&5
  6719. echo "${ECHO_T}$MSGMERGE" >&6; }
  6720. else
  6721. { echo "$as_me:$LINENO: result: no" >&5
  6722. echo "${ECHO_T}no" >&6; }
  6723. fi
  6724. if test "$GMSGFMT" != ":"; then
  6725. if $GMSGFMT --statistics /dev/null >/dev/null 2>&1 &&
  6726. (if $GMSGFMT --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
  6727. : ;
  6728. else
  6729. GMSGFMT=`echo "$GMSGFMT" | sed -e 's,^.*/,,'`
  6730. { echo "$as_me:$LINENO: result: found $GMSGFMT program is not GNU msgfmt; ignore it" >&5
  6731. echo "${ECHO_T}found $GMSGFMT program is not GNU msgfmt; ignore it" >&6; }
  6732. GMSGFMT=":"
  6733. fi
  6734. fi
  6735. if test "$XGETTEXT" != ":"; then
  6736. if $XGETTEXT --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >/dev/null 2>&1 &&
  6737. (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
  6738. : ;
  6739. else
  6740. { echo "$as_me:$LINENO: result: found xgettext program is not GNU xgettext; ignore it" >&5
  6741. echo "${ECHO_T}found xgettext program is not GNU xgettext; ignore it" >&6; }
  6742. XGETTEXT=":"
  6743. fi
  6744. rm -f messages.po
  6745. fi
  6746. ac_config_commands="$ac_config_commands default-1"
  6747. # Make sure we can run config.sub.
  6748. $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
  6749. { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
  6750. echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
  6751. { (exit 1); exit 1; }; }
  6752. { echo "$as_me:$LINENO: checking build system type" >&5
  6753. echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
  6754. if test "${ac_cv_build+set}" = set; then
  6755. echo $ECHO_N "(cached) $ECHO_C" >&6
  6756. else
  6757. ac_build_alias=$build_alias
  6758. test "x$ac_build_alias" = x &&
  6759. ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
  6760. test "x$ac_build_alias" = x &&
  6761. { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
  6762. echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
  6763. { (exit 1); exit 1; }; }
  6764. ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
  6765. { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
  6766. echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
  6767. { (exit 1); exit 1; }; }
  6768. fi
  6769. { echo "$as_me:$LINENO: result: $ac_cv_build" >&5
  6770. echo "${ECHO_T}$ac_cv_build" >&6; }
  6771. case $ac_cv_build in
  6772. *-*-*) ;;
  6773. *) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
  6774. echo "$as_me: error: invalid value of canonical build" >&2;}
  6775. { (exit 1); exit 1; }; };;
  6776. esac
  6777. build=$ac_cv_build
  6778. ac_save_IFS=$IFS; IFS='-'
  6779. set x $ac_cv_build
  6780. shift
  6781. build_cpu=$1
  6782. build_vendor=$2
  6783. shift; shift
  6784. # Remember, the first character of IFS is used to create $*,
  6785. # except with old shells:
  6786. build_os=$*
  6787. IFS=$ac_save_IFS
  6788. case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
  6789. { echo "$as_me:$LINENO: checking host system type" >&5
  6790. echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
  6791. if test "${ac_cv_host+set}" = set; then
  6792. echo $ECHO_N "(cached) $ECHO_C" >&6
  6793. else
  6794. if test "x$host_alias" = x; then
  6795. ac_cv_host=$ac_cv_build
  6796. else
  6797. ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
  6798. { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
  6799. echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
  6800. { (exit 1); exit 1; }; }
  6801. fi
  6802. fi
  6803. { echo "$as_me:$LINENO: result: $ac_cv_host" >&5
  6804. echo "${ECHO_T}$ac_cv_host" >&6; }
  6805. case $ac_cv_host in
  6806. *-*-*) ;;
  6807. *) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
  6808. echo "$as_me: error: invalid value of canonical host" >&2;}
  6809. { (exit 1); exit 1; }; };;
  6810. esac
  6811. host=$ac_cv_host
  6812. ac_save_IFS=$IFS; IFS='-'
  6813. set x $ac_cv_host
  6814. shift
  6815. host_cpu=$1
  6816. host_vendor=$2
  6817. shift; shift
  6818. # Remember, the first character of IFS is used to create $*,
  6819. # except with old shells:
  6820. host_os=$*
  6821. IFS=$ac_save_IFS
  6822. case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
  6823. { echo "$as_me:$LINENO: checking for strerror in -lcposix" >&5
  6824. echo $ECHO_N "checking for strerror in -lcposix... $ECHO_C" >&6; }
  6825. if test "${ac_cv_lib_cposix_strerror+set}" = set; then
  6826. echo $ECHO_N "(cached) $ECHO_C" >&6
  6827. else
  6828. ac_check_lib_save_LIBS=$LIBS
  6829. LIBS="-lcposix $LIBS"
  6830. cat >conftest.$ac_ext <<_ACEOF
  6831. /* confdefs.h. */
  6832. _ACEOF
  6833. cat confdefs.h >>conftest.$ac_ext
  6834. cat >>conftest.$ac_ext <<_ACEOF
  6835. /* end confdefs.h. */
  6836. /* Override any GCC internal prototype to avoid an error.
  6837. Use char because int might match the return type of a GCC
  6838. builtin and then its argument prototype would still apply. */
  6839. #ifdef __cplusplus
  6840. extern "C"
  6841. #endif
  6842. char strerror ();
  6843. int
  6844. main ()
  6845. {
  6846. return strerror ();
  6847. ;
  6848. return 0;
  6849. }
  6850. _ACEOF
  6851. rm -f conftest.$ac_objext conftest$ac_exeext
  6852. if { (ac_try="$ac_link"
  6853. case "(($ac_try" in
  6854. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  6855. *) ac_try_echo=$ac_try;;
  6856. esac
  6857. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  6858. (eval "$ac_link") 2>conftest.er1
  6859. ac_status=$?
  6860. grep -v '^ *+' conftest.er1 >conftest.err
  6861. rm -f conftest.er1
  6862. cat conftest.err >&5
  6863. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6864. (exit $ac_status); } && {
  6865. test -z "$ac_c_werror_flag" ||
  6866. test ! -s conftest.err
  6867. } && test -s conftest$ac_exeext &&
  6868. $as_test_x conftest$ac_exeext; then
  6869. ac_cv_lib_cposix_strerror=yes
  6870. else
  6871. echo "$as_me: failed program was:" >&5
  6872. sed 's/^/| /' conftest.$ac_ext >&5
  6873. ac_cv_lib_cposix_strerror=no
  6874. fi
  6875. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  6876. conftest$ac_exeext conftest.$ac_ext
  6877. LIBS=$ac_check_lib_save_LIBS
  6878. fi
  6879. { echo "$as_me:$LINENO: result: $ac_cv_lib_cposix_strerror" >&5
  6880. echo "${ECHO_T}$ac_cv_lib_cposix_strerror" >&6; }
  6881. if test $ac_cv_lib_cposix_strerror = yes; then
  6882. LIBS="$LIBS -lcposix"
  6883. fi
  6884. { echo "$as_me:$LINENO: checking for off_t" >&5
  6885. echo $ECHO_N "checking for off_t... $ECHO_C" >&6; }
  6886. if test "${ac_cv_type_off_t+set}" = set; then
  6887. echo $ECHO_N "(cached) $ECHO_C" >&6
  6888. else
  6889. cat >conftest.$ac_ext <<_ACEOF
  6890. /* confdefs.h. */
  6891. _ACEOF
  6892. cat confdefs.h >>conftest.$ac_ext
  6893. cat >>conftest.$ac_ext <<_ACEOF
  6894. /* end confdefs.h. */
  6895. $ac_includes_default
  6896. typedef off_t ac__type_new_;
  6897. int
  6898. main ()
  6899. {
  6900. if ((ac__type_new_ *) 0)
  6901. return 0;
  6902. if (sizeof (ac__type_new_))
  6903. return 0;
  6904. ;
  6905. return 0;
  6906. }
  6907. _ACEOF
  6908. rm -f conftest.$ac_objext
  6909. if { (ac_try="$ac_compile"
  6910. case "(($ac_try" in
  6911. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  6912. *) ac_try_echo=$ac_try;;
  6913. esac
  6914. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  6915. (eval "$ac_compile") 2>conftest.er1
  6916. ac_status=$?
  6917. grep -v '^ *+' conftest.er1 >conftest.err
  6918. rm -f conftest.er1
  6919. cat conftest.err >&5
  6920. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6921. (exit $ac_status); } && {
  6922. test -z "$ac_c_werror_flag" ||
  6923. test ! -s conftest.err
  6924. } && test -s conftest.$ac_objext; then
  6925. ac_cv_type_off_t=yes
  6926. else
  6927. echo "$as_me: failed program was:" >&5
  6928. sed 's/^/| /' conftest.$ac_ext >&5
  6929. ac_cv_type_off_t=no
  6930. fi
  6931. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  6932. fi
  6933. { echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
  6934. echo "${ECHO_T}$ac_cv_type_off_t" >&6; }
  6935. if test $ac_cv_type_off_t = yes; then
  6936. :
  6937. else
  6938. cat >>confdefs.h <<_ACEOF
  6939. #define off_t long int
  6940. _ACEOF
  6941. fi
  6942. for ac_header in stdlib.h unistd.h
  6943. do
  6944. as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
  6945. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  6946. { echo "$as_me:$LINENO: checking for $ac_header" >&5
  6947. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
  6948. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  6949. echo $ECHO_N "(cached) $ECHO_C" >&6
  6950. fi
  6951. ac_res=`eval echo '${'$as_ac_Header'}'`
  6952. { echo "$as_me:$LINENO: result: $ac_res" >&5
  6953. echo "${ECHO_T}$ac_res" >&6; }
  6954. else
  6955. # Is the header compilable?
  6956. { echo "$as_me:$LINENO: checking $ac_header usability" >&5
  6957. echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
  6958. cat >conftest.$ac_ext <<_ACEOF
  6959. /* confdefs.h. */
  6960. _ACEOF
  6961. cat confdefs.h >>conftest.$ac_ext
  6962. cat >>conftest.$ac_ext <<_ACEOF
  6963. /* end confdefs.h. */
  6964. $ac_includes_default
  6965. #include <$ac_header>
  6966. _ACEOF
  6967. rm -f conftest.$ac_objext
  6968. if { (ac_try="$ac_compile"
  6969. case "(($ac_try" in
  6970. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  6971. *) ac_try_echo=$ac_try;;
  6972. esac
  6973. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  6974. (eval "$ac_compile") 2>conftest.er1
  6975. ac_status=$?
  6976. grep -v '^ *+' conftest.er1 >conftest.err
  6977. rm -f conftest.er1
  6978. cat conftest.err >&5
  6979. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6980. (exit $ac_status); } && {
  6981. test -z "$ac_c_werror_flag" ||
  6982. test ! -s conftest.err
  6983. } && test -s conftest.$ac_objext; then
  6984. ac_header_compiler=yes
  6985. else
  6986. echo "$as_me: failed program was:" >&5
  6987. sed 's/^/| /' conftest.$ac_ext >&5
  6988. ac_header_compiler=no
  6989. fi
  6990. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  6991. { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  6992. echo "${ECHO_T}$ac_header_compiler" >&6; }
  6993. # Is the header present?
  6994. { echo "$as_me:$LINENO: checking $ac_header presence" >&5
  6995. echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
  6996. cat >conftest.$ac_ext <<_ACEOF
  6997. /* confdefs.h. */
  6998. _ACEOF
  6999. cat confdefs.h >>conftest.$ac_ext
  7000. cat >>conftest.$ac_ext <<_ACEOF
  7001. /* end confdefs.h. */
  7002. #include <$ac_header>
  7003. _ACEOF
  7004. if { (ac_try="$ac_cpp conftest.$ac_ext"
  7005. case "(($ac_try" in
  7006. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  7007. *) ac_try_echo=$ac_try;;
  7008. esac
  7009. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  7010. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  7011. ac_status=$?
  7012. grep -v '^ *+' conftest.er1 >conftest.err
  7013. rm -f conftest.er1
  7014. cat conftest.err >&5
  7015. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7016. (exit $ac_status); } >/dev/null && {
  7017. test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
  7018. test ! -s conftest.err
  7019. }; then
  7020. ac_header_preproc=yes
  7021. else
  7022. echo "$as_me: failed program was:" >&5
  7023. sed 's/^/| /' conftest.$ac_ext >&5
  7024. ac_header_preproc=no
  7025. fi
  7026. rm -f conftest.err conftest.$ac_ext
  7027. { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  7028. echo "${ECHO_T}$ac_header_preproc" >&6; }
  7029. # So? What about this header?
  7030. case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
  7031. yes:no: )
  7032. { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
  7033. echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
  7034. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
  7035. echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
  7036. ac_header_preproc=yes
  7037. ;;
  7038. no:yes:* )
  7039. { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
  7040. echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
  7041. { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
  7042. echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
  7043. { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
  7044. echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
  7045. { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
  7046. echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
  7047. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
  7048. echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
  7049. { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
  7050. echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
  7051. ( cat <<\_ASBOX
  7052. ## ----------------------------------------------- ##
  7053. ## Report this to t-tujikawa@users.sourceforge.net ##
  7054. ## ----------------------------------------------- ##
  7055. _ASBOX
  7056. ) | sed "s/^/$as_me: WARNING: /" >&2
  7057. ;;
  7058. esac
  7059. { echo "$as_me:$LINENO: checking for $ac_header" >&5
  7060. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
  7061. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  7062. echo $ECHO_N "(cached) $ECHO_C" >&6
  7063. else
  7064. eval "$as_ac_Header=\$ac_header_preproc"
  7065. fi
  7066. ac_res=`eval echo '${'$as_ac_Header'}'`
  7067. { echo "$as_me:$LINENO: result: $ac_res" >&5
  7068. echo "${ECHO_T}$ac_res" >&6; }
  7069. fi
  7070. if test `eval echo '${'$as_ac_Header'}'` = yes; then
  7071. cat >>confdefs.h <<_ACEOF
  7072. #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
  7073. _ACEOF
  7074. fi
  7075. done
  7076. for ac_func in getpagesize
  7077. do
  7078. as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
  7079. { echo "$as_me:$LINENO: checking for $ac_func" >&5
  7080. echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
  7081. if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
  7082. echo $ECHO_N "(cached) $ECHO_C" >&6
  7083. else
  7084. cat >conftest.$ac_ext <<_ACEOF
  7085. /* confdefs.h. */
  7086. _ACEOF
  7087. cat confdefs.h >>conftest.$ac_ext
  7088. cat >>conftest.$ac_ext <<_ACEOF
  7089. /* end confdefs.h. */
  7090. /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
  7091. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  7092. #define $ac_func innocuous_$ac_func
  7093. /* System header to define __stub macros and hopefully few prototypes,
  7094. which can conflict with char $ac_func (); below.
  7095. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  7096. <limits.h> exists even on freestanding compilers. */
  7097. #ifdef __STDC__
  7098. # include <limits.h>
  7099. #else
  7100. # include <assert.h>
  7101. #endif
  7102. #undef $ac_func
  7103. /* Override any GCC internal prototype to avoid an error.
  7104. Use char because int might match the return type of a GCC
  7105. builtin and then its argument prototype would still apply. */
  7106. #ifdef __cplusplus
  7107. extern "C"
  7108. #endif
  7109. char $ac_func ();
  7110. /* The GNU C library defines this for functions which it implements
  7111. to always fail with ENOSYS. Some functions are actually named
  7112. something starting with __ and the normal name is an alias. */
  7113. #if defined __stub_$ac_func || defined __stub___$ac_func
  7114. choke me
  7115. #endif
  7116. int
  7117. main ()
  7118. {
  7119. return $ac_func ();
  7120. ;
  7121. return 0;
  7122. }
  7123. _ACEOF
  7124. rm -f conftest.$ac_objext conftest$ac_exeext
  7125. if { (ac_try="$ac_link"
  7126. case "(($ac_try" in
  7127. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  7128. *) ac_try_echo=$ac_try;;
  7129. esac
  7130. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  7131. (eval "$ac_link") 2>conftest.er1
  7132. ac_status=$?
  7133. grep -v '^ *+' conftest.er1 >conftest.err
  7134. rm -f conftest.er1
  7135. cat conftest.err >&5
  7136. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7137. (exit $ac_status); } && {
  7138. test -z "$ac_c_werror_flag" ||
  7139. test ! -s conftest.err
  7140. } && test -s conftest$ac_exeext &&
  7141. $as_test_x conftest$ac_exeext; then
  7142. eval "$as_ac_var=yes"
  7143. else
  7144. echo "$as_me: failed program was:" >&5
  7145. sed 's/^/| /' conftest.$ac_ext >&5
  7146. eval "$as_ac_var=no"
  7147. fi
  7148. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  7149. conftest$ac_exeext conftest.$ac_ext
  7150. fi
  7151. ac_res=`eval echo '${'$as_ac_var'}'`
  7152. { echo "$as_me:$LINENO: result: $ac_res" >&5
  7153. echo "${ECHO_T}$ac_res" >&6; }
  7154. if test `eval echo '${'$as_ac_var'}'` = yes; then
  7155. cat >>confdefs.h <<_ACEOF
  7156. #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
  7157. _ACEOF
  7158. fi
  7159. done
  7160. { echo "$as_me:$LINENO: checking for working mmap" >&5
  7161. echo $ECHO_N "checking for working mmap... $ECHO_C" >&6; }
  7162. if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
  7163. echo $ECHO_N "(cached) $ECHO_C" >&6
  7164. else
  7165. if test "$cross_compiling" = yes; then
  7166. ac_cv_func_mmap_fixed_mapped=no
  7167. else
  7168. cat >conftest.$ac_ext <<_ACEOF
  7169. /* confdefs.h. */
  7170. _ACEOF
  7171. cat confdefs.h >>conftest.$ac_ext
  7172. cat >>conftest.$ac_ext <<_ACEOF
  7173. /* end confdefs.h. */
  7174. $ac_includes_default
  7175. /* malloc might have been renamed as rpl_malloc. */
  7176. #undef malloc
  7177. /* Thanks to Mike Haertel and Jim Avera for this test.
  7178. Here is a matrix of mmap possibilities:
  7179. mmap private not fixed
  7180. mmap private fixed at somewhere currently unmapped
  7181. mmap private fixed at somewhere already mapped
  7182. mmap shared not fixed
  7183. mmap shared fixed at somewhere currently unmapped
  7184. mmap shared fixed at somewhere already mapped
  7185. For private mappings, we should verify that changes cannot be read()
  7186. back from the file, nor mmap's back from the file at a different
  7187. address. (There have been systems where private was not correctly
  7188. implemented like the infamous i386 svr4.0, and systems where the
  7189. VM page cache was not coherent with the file system buffer cache
  7190. like early versions of FreeBSD and possibly contemporary NetBSD.)
  7191. For shared mappings, we should conversely verify that changes get
  7192. propagated back to all the places they're supposed to be.
  7193. Grep wants private fixed already mapped.
  7194. The main things grep needs to know about mmap are:
  7195. * does it exist and is it safe to write into the mmap'd area
  7196. * how to use it (BSD variants) */
  7197. #include <fcntl.h>
  7198. #include <sys/mman.h>
  7199. #if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
  7200. char *malloc ();
  7201. #endif
  7202. /* This mess was copied from the GNU getpagesize.h. */
  7203. #ifndef HAVE_GETPAGESIZE
  7204. /* Assume that all systems that can run configure have sys/param.h. */
  7205. # ifndef HAVE_SYS_PARAM_H
  7206. # define HAVE_SYS_PARAM_H 1
  7207. # endif
  7208. # ifdef _SC_PAGESIZE
  7209. # define getpagesize() sysconf(_SC_PAGESIZE)
  7210. # else /* no _SC_PAGESIZE */
  7211. # ifdef HAVE_SYS_PARAM_H
  7212. # include <sys/param.h>
  7213. # ifdef EXEC_PAGESIZE
  7214. # define getpagesize() EXEC_PAGESIZE
  7215. # else /* no EXEC_PAGESIZE */
  7216. # ifdef NBPG
  7217. # define getpagesize() NBPG * CLSIZE
  7218. # ifndef CLSIZE
  7219. # define CLSIZE 1
  7220. # endif /* no CLSIZE */
  7221. # else /* no NBPG */
  7222. # ifdef NBPC
  7223. # define getpagesize() NBPC
  7224. # else /* no NBPC */
  7225. # ifdef PAGESIZE
  7226. # define getpagesize() PAGESIZE
  7227. # endif /* PAGESIZE */
  7228. # endif /* no NBPC */
  7229. # endif /* no NBPG */
  7230. # endif /* no EXEC_PAGESIZE */
  7231. # else /* no HAVE_SYS_PARAM_H */
  7232. # define getpagesize() 8192 /* punt totally */
  7233. # endif /* no HAVE_SYS_PARAM_H */
  7234. # endif /* no _SC_PAGESIZE */
  7235. #endif /* no HAVE_GETPAGESIZE */
  7236. int
  7237. main ()
  7238. {
  7239. char *data, *data2, *data3;
  7240. int i, pagesize;
  7241. int fd;
  7242. pagesize = getpagesize ();
  7243. /* First, make a file with some known garbage in it. */
  7244. data = (char *) malloc (pagesize);
  7245. if (!data)
  7246. return 1;
  7247. for (i = 0; i < pagesize; ++i)
  7248. *(data + i) = rand ();
  7249. umask (0);
  7250. fd = creat ("conftest.mmap", 0600);
  7251. if (fd < 0)
  7252. return 1;
  7253. if (write (fd, data, pagesize) != pagesize)
  7254. return 1;
  7255. close (fd);
  7256. /* Next, try to mmap the file at a fixed address which already has
  7257. something else allocated at it. If we can, also make sure that
  7258. we see the same garbage. */
  7259. fd = open ("conftest.mmap", O_RDWR);
  7260. if (fd < 0)
  7261. return 1;
  7262. data2 = (char *) malloc (2 * pagesize);
  7263. if (!data2)
  7264. return 1;
  7265. data2 += (pagesize - ((long int) data2 & (pagesize - 1))) & (pagesize - 1);
  7266. if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
  7267. MAP_PRIVATE | MAP_FIXED, fd, 0L))
  7268. return 1;
  7269. for (i = 0; i < pagesize; ++i)
  7270. if (*(data + i) != *(data2 + i))
  7271. return 1;
  7272. /* Finally, make sure that changes to the mapped area do not
  7273. percolate back to the file as seen by read(). (This is a bug on
  7274. some variants of i386 svr4.0.) */
  7275. for (i = 0; i < pagesize; ++i)
  7276. *(data2 + i) = *(data2 + i) + 1;
  7277. data3 = (char *) malloc (pagesize);
  7278. if (!data3)
  7279. return 1;
  7280. if (read (fd, data3, pagesize) != pagesize)
  7281. return 1;
  7282. for (i = 0; i < pagesize; ++i)
  7283. if (*(data + i) != *(data3 + i))
  7284. return 1;
  7285. close (fd);
  7286. return 0;
  7287. }
  7288. _ACEOF
  7289. rm -f conftest$ac_exeext
  7290. if { (ac_try="$ac_link"
  7291. case "(($ac_try" in
  7292. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  7293. *) ac_try_echo=$ac_try;;
  7294. esac
  7295. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  7296. (eval "$ac_link") 2>&5
  7297. ac_status=$?
  7298. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7299. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  7300. { (case "(($ac_try" in
  7301. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  7302. *) ac_try_echo=$ac_try;;
  7303. esac
  7304. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  7305. (eval "$ac_try") 2>&5
  7306. ac_status=$?
  7307. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7308. (exit $ac_status); }; }; then
  7309. ac_cv_func_mmap_fixed_mapped=yes
  7310. else
  7311. echo "$as_me: program exited with status $ac_status" >&5
  7312. echo "$as_me: failed program was:" >&5
  7313. sed 's/^/| /' conftest.$ac_ext >&5
  7314. ( exit $ac_status )
  7315. ac_cv_func_mmap_fixed_mapped=no
  7316. fi
  7317. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  7318. fi
  7319. fi
  7320. { echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
  7321. echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6; }
  7322. if test $ac_cv_func_mmap_fixed_mapped = yes; then
  7323. cat >>confdefs.h <<\_ACEOF
  7324. #define HAVE_MMAP 1
  7325. _ACEOF
  7326. fi
  7327. rm -f conftest.mmap
  7328. { echo "$as_me:$LINENO: checking whether we are using the GNU C Library 2.1 or newer" >&5
  7329. echo $ECHO_N "checking whether we are using the GNU C Library 2.1 or newer... $ECHO_C" >&6; }
  7330. if test "${ac_cv_gnu_library_2_1+set}" = set; then
  7331. echo $ECHO_N "(cached) $ECHO_C" >&6
  7332. else
  7333. cat >conftest.$ac_ext <<_ACEOF
  7334. /* confdefs.h. */
  7335. _ACEOF
  7336. cat confdefs.h >>conftest.$ac_ext
  7337. cat >>conftest.$ac_ext <<_ACEOF
  7338. /* end confdefs.h. */
  7339. #include <features.h>
  7340. #ifdef __GNU_LIBRARY__
  7341. #if (__GLIBC__ == 2 && __GLIBC_MINOR__ >= 1) || (__GLIBC__ > 2)
  7342. Lucky GNU user
  7343. #endif
  7344. #endif
  7345. _ACEOF
  7346. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  7347. $EGREP "Lucky GNU user" >/dev/null 2>&1; then
  7348. ac_cv_gnu_library_2_1=yes
  7349. else
  7350. ac_cv_gnu_library_2_1=no
  7351. fi
  7352. rm -f conftest*
  7353. fi
  7354. { echo "$as_me:$LINENO: result: $ac_cv_gnu_library_2_1" >&5
  7355. echo "${ECHO_T}$ac_cv_gnu_library_2_1" >&6; }
  7356. GLIBC21="$ac_cv_gnu_library_2_1"
  7357. { echo "$as_me:$LINENO: checking whether integer division by zero raises SIGFPE" >&5
  7358. echo $ECHO_N "checking whether integer division by zero raises SIGFPE... $ECHO_C" >&6; }
  7359. if test "${gt_cv_int_divbyzero_sigfpe+set}" = set; then
  7360. echo $ECHO_N "(cached) $ECHO_C" >&6
  7361. else
  7362. if test "$cross_compiling" = yes; then
  7363. # Guess based on the CPU.
  7364. case "$host_cpu" in
  7365. alpha* | i3456786 | m68k | s390*)
  7366. gt_cv_int_divbyzero_sigfpe="guessing yes";;
  7367. *)
  7368. gt_cv_int_divbyzero_sigfpe="guessing no";;
  7369. esac
  7370. else
  7371. cat >conftest.$ac_ext <<_ACEOF
  7372. /* confdefs.h. */
  7373. _ACEOF
  7374. cat confdefs.h >>conftest.$ac_ext
  7375. cat >>conftest.$ac_ext <<_ACEOF
  7376. /* end confdefs.h. */
  7377. #include <stdlib.h>
  7378. #include <signal.h>
  7379. static void
  7380. #ifdef __cplusplus
  7381. sigfpe_handler (int sig)
  7382. #else
  7383. sigfpe_handler (sig) int sig;
  7384. #endif
  7385. {
  7386. /* Exit with code 0 if SIGFPE, with code 1 if any other signal. */
  7387. exit (sig != SIGFPE);
  7388. }
  7389. int x = 1;
  7390. int y = 0;
  7391. int z;
  7392. int nan;
  7393. int main ()
  7394. {
  7395. signal (SIGFPE, sigfpe_handler);
  7396. /* IRIX and AIX (when "xlc -qcheck" is used) yield signal SIGTRAP. */
  7397. #if (defined (__sgi) || defined (_AIX)) && defined (SIGTRAP)
  7398. signal (SIGTRAP, sigfpe_handler);
  7399. #endif
  7400. /* Linux/SPARC yields signal SIGILL. */
  7401. #if defined (__sparc__) && defined (__linux__)
  7402. signal (SIGILL, sigfpe_handler);
  7403. #endif
  7404. z = x / y;
  7405. nan = y / y;
  7406. exit (1);
  7407. }
  7408. _ACEOF
  7409. rm -f conftest$ac_exeext
  7410. if { (ac_try="$ac_link"
  7411. case "(($ac_try" in
  7412. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  7413. *) ac_try_echo=$ac_try;;
  7414. esac
  7415. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  7416. (eval "$ac_link") 2>&5
  7417. ac_status=$?
  7418. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7419. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  7420. { (case "(($ac_try" in
  7421. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  7422. *) ac_try_echo=$ac_try;;
  7423. esac
  7424. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  7425. (eval "$ac_try") 2>&5
  7426. ac_status=$?
  7427. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7428. (exit $ac_status); }; }; then
  7429. gt_cv_int_divbyzero_sigfpe=yes
  7430. else
  7431. echo "$as_me: program exited with status $ac_status" >&5
  7432. echo "$as_me: failed program was:" >&5
  7433. sed 's/^/| /' conftest.$ac_ext >&5
  7434. ( exit $ac_status )
  7435. gt_cv_int_divbyzero_sigfpe=no
  7436. fi
  7437. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  7438. fi
  7439. fi
  7440. { echo "$as_me:$LINENO: result: $gt_cv_int_divbyzero_sigfpe" >&5
  7441. echo "${ECHO_T}$gt_cv_int_divbyzero_sigfpe" >&6; }
  7442. case "$gt_cv_int_divbyzero_sigfpe" in
  7443. *yes) value=1;;
  7444. *) value=0;;
  7445. esac
  7446. cat >>confdefs.h <<_ACEOF
  7447. #define INTDIV0_RAISES_SIGFPE $value
  7448. _ACEOF
  7449. { echo "$as_me:$LINENO: checking for inttypes.h" >&5
  7450. echo $ECHO_N "checking for inttypes.h... $ECHO_C" >&6; }
  7451. if test "${jm_ac_cv_header_inttypes_h+set}" = set; then
  7452. echo $ECHO_N "(cached) $ECHO_C" >&6
  7453. else
  7454. cat >conftest.$ac_ext <<_ACEOF
  7455. /* confdefs.h. */
  7456. _ACEOF
  7457. cat confdefs.h >>conftest.$ac_ext
  7458. cat >>conftest.$ac_ext <<_ACEOF
  7459. /* end confdefs.h. */
  7460. #include <sys/types.h>
  7461. #include <inttypes.h>
  7462. int
  7463. main ()
  7464. {
  7465. uintmax_t i = (uintmax_t) -1;
  7466. ;
  7467. return 0;
  7468. }
  7469. _ACEOF
  7470. rm -f conftest.$ac_objext
  7471. if { (ac_try="$ac_compile"
  7472. case "(($ac_try" in
  7473. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  7474. *) ac_try_echo=$ac_try;;
  7475. esac
  7476. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  7477. (eval "$ac_compile") 2>conftest.er1
  7478. ac_status=$?
  7479. grep -v '^ *+' conftest.er1 >conftest.err
  7480. rm -f conftest.er1
  7481. cat conftest.err >&5
  7482. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7483. (exit $ac_status); } && {
  7484. test -z "$ac_c_werror_flag" ||
  7485. test ! -s conftest.err
  7486. } && test -s conftest.$ac_objext; then
  7487. jm_ac_cv_header_inttypes_h=yes
  7488. else
  7489. echo "$as_me: failed program was:" >&5
  7490. sed 's/^/| /' conftest.$ac_ext >&5
  7491. jm_ac_cv_header_inttypes_h=no
  7492. fi
  7493. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  7494. fi
  7495. { echo "$as_me:$LINENO: result: $jm_ac_cv_header_inttypes_h" >&5
  7496. echo "${ECHO_T}$jm_ac_cv_header_inttypes_h" >&6; }
  7497. if test $jm_ac_cv_header_inttypes_h = yes; then
  7498. cat >>confdefs.h <<_ACEOF
  7499. #define HAVE_INTTYPES_H_WITH_UINTMAX 1
  7500. _ACEOF
  7501. fi
  7502. { echo "$as_me:$LINENO: checking for stdint.h" >&5
  7503. echo $ECHO_N "checking for stdint.h... $ECHO_C" >&6; }
  7504. if test "${jm_ac_cv_header_stdint_h+set}" = set; then
  7505. echo $ECHO_N "(cached) $ECHO_C" >&6
  7506. else
  7507. cat >conftest.$ac_ext <<_ACEOF
  7508. /* confdefs.h. */
  7509. _ACEOF
  7510. cat confdefs.h >>conftest.$ac_ext
  7511. cat >>conftest.$ac_ext <<_ACEOF
  7512. /* end confdefs.h. */
  7513. #include <sys/types.h>
  7514. #include <stdint.h>
  7515. int
  7516. main ()
  7517. {
  7518. uintmax_t i = (uintmax_t) -1;
  7519. ;
  7520. return 0;
  7521. }
  7522. _ACEOF
  7523. rm -f conftest.$ac_objext
  7524. if { (ac_try="$ac_compile"
  7525. case "(($ac_try" in
  7526. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  7527. *) ac_try_echo=$ac_try;;
  7528. esac
  7529. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  7530. (eval "$ac_compile") 2>conftest.er1
  7531. ac_status=$?
  7532. grep -v '^ *+' conftest.er1 >conftest.err
  7533. rm -f conftest.er1
  7534. cat conftest.err >&5
  7535. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7536. (exit $ac_status); } && {
  7537. test -z "$ac_c_werror_flag" ||
  7538. test ! -s conftest.err
  7539. } && test -s conftest.$ac_objext; then
  7540. jm_ac_cv_header_stdint_h=yes
  7541. else
  7542. echo "$as_me: failed program was:" >&5
  7543. sed 's/^/| /' conftest.$ac_ext >&5
  7544. jm_ac_cv_header_stdint_h=no
  7545. fi
  7546. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  7547. fi
  7548. { echo "$as_me:$LINENO: result: $jm_ac_cv_header_stdint_h" >&5
  7549. echo "${ECHO_T}$jm_ac_cv_header_stdint_h" >&6; }
  7550. if test $jm_ac_cv_header_stdint_h = yes; then
  7551. cat >>confdefs.h <<_ACEOF
  7552. #define HAVE_STDINT_H_WITH_UINTMAX 1
  7553. _ACEOF
  7554. fi
  7555. { echo "$as_me:$LINENO: checking for unsigned long long" >&5
  7556. echo $ECHO_N "checking for unsigned long long... $ECHO_C" >&6; }
  7557. if test "${ac_cv_type_unsigned_long_long+set}" = set; then
  7558. echo $ECHO_N "(cached) $ECHO_C" >&6
  7559. else
  7560. cat >conftest.$ac_ext <<_ACEOF
  7561. /* confdefs.h. */
  7562. _ACEOF
  7563. cat confdefs.h >>conftest.$ac_ext
  7564. cat >>conftest.$ac_ext <<_ACEOF
  7565. /* end confdefs.h. */
  7566. unsigned long long ull = 1; int i = 63;
  7567. int
  7568. main ()
  7569. {
  7570. unsigned long long ullmax = (unsigned long long) -1;
  7571. return ull << i | ull >> i | ullmax / ull | ullmax % ull;
  7572. ;
  7573. return 0;
  7574. }
  7575. _ACEOF
  7576. rm -f conftest.$ac_objext conftest$ac_exeext
  7577. if { (ac_try="$ac_link"
  7578. case "(($ac_try" in
  7579. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  7580. *) ac_try_echo=$ac_try;;
  7581. esac
  7582. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  7583. (eval "$ac_link") 2>conftest.er1
  7584. ac_status=$?
  7585. grep -v '^ *+' conftest.er1 >conftest.err
  7586. rm -f conftest.er1
  7587. cat conftest.err >&5
  7588. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7589. (exit $ac_status); } && {
  7590. test -z "$ac_c_werror_flag" ||
  7591. test ! -s conftest.err
  7592. } && test -s conftest$ac_exeext &&
  7593. $as_test_x conftest$ac_exeext; then
  7594. ac_cv_type_unsigned_long_long=yes
  7595. else
  7596. echo "$as_me: failed program was:" >&5
  7597. sed 's/^/| /' conftest.$ac_ext >&5
  7598. ac_cv_type_unsigned_long_long=no
  7599. fi
  7600. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  7601. conftest$ac_exeext conftest.$ac_ext
  7602. fi
  7603. { echo "$as_me:$LINENO: result: $ac_cv_type_unsigned_long_long" >&5
  7604. echo "${ECHO_T}$ac_cv_type_unsigned_long_long" >&6; }
  7605. if test $ac_cv_type_unsigned_long_long = yes; then
  7606. cat >>confdefs.h <<\_ACEOF
  7607. #define HAVE_UNSIGNED_LONG_LONG 1
  7608. _ACEOF
  7609. fi
  7610. if test $jm_ac_cv_header_inttypes_h = no && test $jm_ac_cv_header_stdint_h = no; then
  7611. test $ac_cv_type_unsigned_long_long = yes \
  7612. && ac_type='unsigned long long' \
  7613. || ac_type='unsigned long'
  7614. cat >>confdefs.h <<_ACEOF
  7615. #define uintmax_t $ac_type
  7616. _ACEOF
  7617. else
  7618. cat >>confdefs.h <<\_ACEOF
  7619. #define HAVE_UINTMAX_T 1
  7620. _ACEOF
  7621. fi
  7622. { echo "$as_me:$LINENO: checking for inttypes.h" >&5
  7623. echo $ECHO_N "checking for inttypes.h... $ECHO_C" >&6; }
  7624. if test "${gt_cv_header_inttypes_h+set}" = set; then
  7625. echo $ECHO_N "(cached) $ECHO_C" >&6
  7626. else
  7627. cat >conftest.$ac_ext <<_ACEOF
  7628. /* confdefs.h. */
  7629. _ACEOF
  7630. cat confdefs.h >>conftest.$ac_ext
  7631. cat >>conftest.$ac_ext <<_ACEOF
  7632. /* end confdefs.h. */
  7633. #include <sys/types.h>
  7634. #include <inttypes.h>
  7635. int
  7636. main ()
  7637. {
  7638. ;
  7639. return 0;
  7640. }
  7641. _ACEOF
  7642. rm -f conftest.$ac_objext
  7643. if { (ac_try="$ac_compile"
  7644. case "(($ac_try" in
  7645. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  7646. *) ac_try_echo=$ac_try;;
  7647. esac
  7648. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  7649. (eval "$ac_compile") 2>conftest.er1
  7650. ac_status=$?
  7651. grep -v '^ *+' conftest.er1 >conftest.err
  7652. rm -f conftest.er1
  7653. cat conftest.err >&5
  7654. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7655. (exit $ac_status); } && {
  7656. test -z "$ac_c_werror_flag" ||
  7657. test ! -s conftest.err
  7658. } && test -s conftest.$ac_objext; then
  7659. gt_cv_header_inttypes_h=yes
  7660. else
  7661. echo "$as_me: failed program was:" >&5
  7662. sed 's/^/| /' conftest.$ac_ext >&5
  7663. gt_cv_header_inttypes_h=no
  7664. fi
  7665. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  7666. fi
  7667. { echo "$as_me:$LINENO: result: $gt_cv_header_inttypes_h" >&5
  7668. echo "${ECHO_T}$gt_cv_header_inttypes_h" >&6; }
  7669. if test $gt_cv_header_inttypes_h = yes; then
  7670. cat >>confdefs.h <<_ACEOF
  7671. #define HAVE_INTTYPES_H 1
  7672. _ACEOF
  7673. fi
  7674. if test $gt_cv_header_inttypes_h = yes; then
  7675. { echo "$as_me:$LINENO: checking whether the inttypes.h PRIxNN macros are broken" >&5
  7676. echo $ECHO_N "checking whether the inttypes.h PRIxNN macros are broken... $ECHO_C" >&6; }
  7677. if test "${gt_cv_inttypes_pri_broken+set}" = set; then
  7678. echo $ECHO_N "(cached) $ECHO_C" >&6
  7679. else
  7680. cat >conftest.$ac_ext <<_ACEOF
  7681. /* confdefs.h. */
  7682. _ACEOF
  7683. cat confdefs.h >>conftest.$ac_ext
  7684. cat >>conftest.$ac_ext <<_ACEOF
  7685. /* end confdefs.h. */
  7686. #include <inttypes.h>
  7687. #ifdef PRId32
  7688. char *p = PRId32;
  7689. #endif
  7690. int
  7691. main ()
  7692. {
  7693. ;
  7694. return 0;
  7695. }
  7696. _ACEOF
  7697. rm -f conftest.$ac_objext
  7698. if { (ac_try="$ac_compile"
  7699. case "(($ac_try" in
  7700. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  7701. *) ac_try_echo=$ac_try;;
  7702. esac
  7703. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  7704. (eval "$ac_compile") 2>conftest.er1
  7705. ac_status=$?
  7706. grep -v '^ *+' conftest.er1 >conftest.err
  7707. rm -f conftest.er1
  7708. cat conftest.err >&5
  7709. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7710. (exit $ac_status); } && {
  7711. test -z "$ac_c_werror_flag" ||
  7712. test ! -s conftest.err
  7713. } && test -s conftest.$ac_objext; then
  7714. gt_cv_inttypes_pri_broken=no
  7715. else
  7716. echo "$as_me: failed program was:" >&5
  7717. sed 's/^/| /' conftest.$ac_ext >&5
  7718. gt_cv_inttypes_pri_broken=yes
  7719. fi
  7720. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  7721. fi
  7722. { echo "$as_me:$LINENO: result: $gt_cv_inttypes_pri_broken" >&5
  7723. echo "${ECHO_T}$gt_cv_inttypes_pri_broken" >&6; }
  7724. fi
  7725. if test "$gt_cv_inttypes_pri_broken" = yes; then
  7726. cat >>confdefs.h <<_ACEOF
  7727. #define PRI_MACROS_BROKEN 1
  7728. _ACEOF
  7729. fi
  7730. if test "X$prefix" = "XNONE"; then
  7731. acl_final_prefix="$ac_default_prefix"
  7732. else
  7733. acl_final_prefix="$prefix"
  7734. fi
  7735. if test "X$exec_prefix" = "XNONE"; then
  7736. acl_final_exec_prefix='${prefix}'
  7737. else
  7738. acl_final_exec_prefix="$exec_prefix"
  7739. fi
  7740. acl_save_prefix="$prefix"
  7741. prefix="$acl_final_prefix"
  7742. eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
  7743. prefix="$acl_save_prefix"
  7744. # Check whether --with-gnu-ld was given.
  7745. if test "${with_gnu_ld+set}" = set; then
  7746. withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
  7747. else
  7748. with_gnu_ld=no
  7749. fi
  7750. # Prepare PATH_SEPARATOR.
  7751. # The user is always right.
  7752. if test "${PATH_SEPARATOR+set}" != set; then
  7753. echo "#! /bin/sh" >conf$$.sh
  7754. echo "exit 0" >>conf$$.sh
  7755. chmod +x conf$$.sh
  7756. if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
  7757. PATH_SEPARATOR=';'
  7758. else
  7759. PATH_SEPARATOR=:
  7760. fi
  7761. rm -f conf$$.sh
  7762. fi
  7763. ac_prog=ld
  7764. if test "$GCC" = yes; then
  7765. # Check if gcc -print-prog-name=ld gives a path.
  7766. { echo "$as_me:$LINENO: checking for ld used by GCC" >&5
  7767. echo $ECHO_N "checking for ld used by GCC... $ECHO_C" >&6; }
  7768. case $host in
  7769. *-*-mingw*)
  7770. # gcc leaves a trailing carriage return which upsets mingw
  7771. ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
  7772. *)
  7773. ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
  7774. esac
  7775. case $ac_prog in
  7776. # Accept absolute paths.
  7777. [\\/]* | [A-Za-z]:[\\/]*)
  7778. re_direlt='/[^/][^/]*/\.\./'
  7779. # Canonicalize the path of ld
  7780. ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
  7781. while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
  7782. ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
  7783. done
  7784. test -z "$LD" && LD="$ac_prog"
  7785. ;;
  7786. "")
  7787. # If it fails, then pretend we aren't using GCC.
  7788. ac_prog=ld
  7789. ;;
  7790. *)
  7791. # If it is relative, then search for the first ld in PATH.
  7792. with_gnu_ld=unknown
  7793. ;;
  7794. esac
  7795. elif test "$with_gnu_ld" = yes; then
  7796. { echo "$as_me:$LINENO: checking for GNU ld" >&5
  7797. echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
  7798. else
  7799. { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
  7800. echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
  7801. fi
  7802. if test "${acl_cv_path_LD+set}" = set; then
  7803. echo $ECHO_N "(cached) $ECHO_C" >&6
  7804. else
  7805. if test -z "$LD"; then
  7806. IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
  7807. for ac_dir in $PATH; do
  7808. test -z "$ac_dir" && ac_dir=.
  7809. if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
  7810. acl_cv_path_LD="$ac_dir/$ac_prog"
  7811. # Check to see if the program is GNU ld. I'd rather use --version,
  7812. # but apparently some GNU ld's only accept -v.
  7813. # Break only if it was the GNU/non-GNU ld that we prefer.
  7814. if "$acl_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
  7815. test "$with_gnu_ld" != no && break
  7816. else
  7817. test "$with_gnu_ld" != yes && break
  7818. fi
  7819. fi
  7820. done
  7821. IFS="$ac_save_ifs"
  7822. else
  7823. acl_cv_path_LD="$LD" # Let the user override the test with a path.
  7824. fi
  7825. fi
  7826. LD="$acl_cv_path_LD"
  7827. if test -n "$LD"; then
  7828. { echo "$as_me:$LINENO: result: $LD" >&5
  7829. echo "${ECHO_T}$LD" >&6; }
  7830. else
  7831. { echo "$as_me:$LINENO: result: no" >&5
  7832. echo "${ECHO_T}no" >&6; }
  7833. fi
  7834. test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
  7835. echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
  7836. { (exit 1); exit 1; }; }
  7837. { echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
  7838. echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
  7839. if test "${acl_cv_prog_gnu_ld+set}" = set; then
  7840. echo $ECHO_N "(cached) $ECHO_C" >&6
  7841. else
  7842. # I'd rather use --version here, but apparently some GNU ld's only accept -v.
  7843. if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
  7844. acl_cv_prog_gnu_ld=yes
  7845. else
  7846. acl_cv_prog_gnu_ld=no
  7847. fi
  7848. fi
  7849. { echo "$as_me:$LINENO: result: $acl_cv_prog_gnu_ld" >&5
  7850. echo "${ECHO_T}$acl_cv_prog_gnu_ld" >&6; }
  7851. with_gnu_ld=$acl_cv_prog_gnu_ld
  7852. { echo "$as_me:$LINENO: checking for shared library run path origin" >&5
  7853. echo $ECHO_N "checking for shared library run path origin... $ECHO_C" >&6; }
  7854. if test "${acl_cv_rpath+set}" = set; then
  7855. echo $ECHO_N "(cached) $ECHO_C" >&6
  7856. else
  7857. CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
  7858. ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
  7859. . ./conftest.sh
  7860. rm -f ./conftest.sh
  7861. acl_cv_rpath=done
  7862. fi
  7863. { echo "$as_me:$LINENO: result: $acl_cv_rpath" >&5
  7864. echo "${ECHO_T}$acl_cv_rpath" >&6; }
  7865. wl="$acl_cv_wl"
  7866. libext="$acl_cv_libext"
  7867. shlibext="$acl_cv_shlibext"
  7868. hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
  7869. hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
  7870. hardcode_direct="$acl_cv_hardcode_direct"
  7871. hardcode_minus_L="$acl_cv_hardcode_minus_L"
  7872. # Check whether --enable-rpath was given.
  7873. if test "${enable_rpath+set}" = set; then
  7874. enableval=$enable_rpath; :
  7875. else
  7876. enable_rpath=yes
  7877. fi
  7878. use_additional=yes
  7879. acl_save_prefix="$prefix"
  7880. prefix="$acl_final_prefix"
  7881. acl_save_exec_prefix="$exec_prefix"
  7882. exec_prefix="$acl_final_exec_prefix"
  7883. eval additional_includedir=\"$includedir\"
  7884. eval additional_libdir=\"$libdir\"
  7885. exec_prefix="$acl_save_exec_prefix"
  7886. prefix="$acl_save_prefix"
  7887. # Check whether --with-libiconv-prefix was given.
  7888. if test "${with_libiconv_prefix+set}" = set; then
  7889. withval=$with_libiconv_prefix;
  7890. if test "X$withval" = "Xno"; then
  7891. use_additional=no
  7892. else
  7893. if test "X$withval" = "X"; then
  7894. acl_save_prefix="$prefix"
  7895. prefix="$acl_final_prefix"
  7896. acl_save_exec_prefix="$exec_prefix"
  7897. exec_prefix="$acl_final_exec_prefix"
  7898. eval additional_includedir=\"$includedir\"
  7899. eval additional_libdir=\"$libdir\"
  7900. exec_prefix="$acl_save_exec_prefix"
  7901. prefix="$acl_save_prefix"
  7902. else
  7903. additional_includedir="$withval/include"
  7904. additional_libdir="$withval/lib"
  7905. fi
  7906. fi
  7907. fi
  7908. LIBICONV=
  7909. LTLIBICONV=
  7910. INCICONV=
  7911. rpathdirs=
  7912. ltrpathdirs=
  7913. names_already_handled=
  7914. names_next_round='iconv '
  7915. while test -n "$names_next_round"; do
  7916. names_this_round="$names_next_round"
  7917. names_next_round=
  7918. for name in $names_this_round; do
  7919. already_handled=
  7920. for n in $names_already_handled; do
  7921. if test "$n" = "$name"; then
  7922. already_handled=yes
  7923. break
  7924. fi
  7925. done
  7926. if test -z "$already_handled"; then
  7927. names_already_handled="$names_already_handled $name"
  7928. uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
  7929. eval value=\"\$HAVE_LIB$uppername\"
  7930. if test -n "$value"; then
  7931. if test "$value" = yes; then
  7932. eval value=\"\$LIB$uppername\"
  7933. test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value"
  7934. eval value=\"\$LTLIB$uppername\"
  7935. test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value"
  7936. else
  7937. :
  7938. fi
  7939. else
  7940. found_dir=
  7941. found_la=
  7942. found_so=
  7943. found_a=
  7944. if test $use_additional = yes; then
  7945. if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
  7946. found_dir="$additional_libdir"
  7947. found_so="$additional_libdir/lib$name.$shlibext"
  7948. if test -f "$additional_libdir/lib$name.la"; then
  7949. found_la="$additional_libdir/lib$name.la"
  7950. fi
  7951. else
  7952. if test -f "$additional_libdir/lib$name.$libext"; then
  7953. found_dir="$additional_libdir"
  7954. found_a="$additional_libdir/lib$name.$libext"
  7955. if test -f "$additional_libdir/lib$name.la"; then
  7956. found_la="$additional_libdir/lib$name.la"
  7957. fi
  7958. fi
  7959. fi
  7960. fi
  7961. if test "X$found_dir" = "X"; then
  7962. for x in $LDFLAGS $LTLIBICONV; do
  7963. acl_save_prefix="$prefix"
  7964. prefix="$acl_final_prefix"
  7965. acl_save_exec_prefix="$exec_prefix"
  7966. exec_prefix="$acl_final_exec_prefix"
  7967. eval x=\"$x\"
  7968. exec_prefix="$acl_save_exec_prefix"
  7969. prefix="$acl_save_prefix"
  7970. case "$x" in
  7971. -L*)
  7972. dir=`echo "X$x" | sed -e 's/^X-L//'`
  7973. if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
  7974. found_dir="$dir"
  7975. found_so="$dir/lib$name.$shlibext"
  7976. if test -f "$dir/lib$name.la"; then
  7977. found_la="$dir/lib$name.la"
  7978. fi
  7979. else
  7980. if test -f "$dir/lib$name.$libext"; then
  7981. found_dir="$dir"
  7982. found_a="$dir/lib$name.$libext"
  7983. if test -f "$dir/lib$name.la"; then
  7984. found_la="$dir/lib$name.la"
  7985. fi
  7986. fi
  7987. fi
  7988. ;;
  7989. esac
  7990. if test "X$found_dir" != "X"; then
  7991. break
  7992. fi
  7993. done
  7994. fi
  7995. if test "X$found_dir" != "X"; then
  7996. LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
  7997. if test "X$found_so" != "X"; then
  7998. if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
  7999. LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
  8000. else
  8001. haveit=
  8002. for x in $ltrpathdirs; do
  8003. if test "X$x" = "X$found_dir"; then
  8004. haveit=yes
  8005. break
  8006. fi
  8007. done
  8008. if test -z "$haveit"; then
  8009. ltrpathdirs="$ltrpathdirs $found_dir"
  8010. fi
  8011. if test "$hardcode_direct" = yes; then
  8012. LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
  8013. else
  8014. if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
  8015. LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
  8016. haveit=
  8017. for x in $rpathdirs; do
  8018. if test "X$x" = "X$found_dir"; then
  8019. haveit=yes
  8020. break
  8021. fi
  8022. done
  8023. if test -z "$haveit"; then
  8024. rpathdirs="$rpathdirs $found_dir"
  8025. fi
  8026. else
  8027. haveit=
  8028. for x in $LDFLAGS $LIBICONV; do
  8029. acl_save_prefix="$prefix"
  8030. prefix="$acl_final_prefix"
  8031. acl_save_exec_prefix="$exec_prefix"
  8032. exec_prefix="$acl_final_exec_prefix"
  8033. eval x=\"$x\"
  8034. exec_prefix="$acl_save_exec_prefix"
  8035. prefix="$acl_save_prefix"
  8036. if test "X$x" = "X-L$found_dir"; then
  8037. haveit=yes
  8038. break
  8039. fi
  8040. done
  8041. if test -z "$haveit"; then
  8042. LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir"
  8043. fi
  8044. if test "$hardcode_minus_L" != no; then
  8045. LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
  8046. else
  8047. LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
  8048. fi
  8049. fi
  8050. fi
  8051. fi
  8052. else
  8053. if test "X$found_a" != "X"; then
  8054. LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a"
  8055. else
  8056. LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
  8057. fi
  8058. fi
  8059. additional_includedir=
  8060. case "$found_dir" in
  8061. */lib | */lib/)
  8062. basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
  8063. additional_includedir="$basedir/include"
  8064. ;;
  8065. esac
  8066. if test "X$additional_includedir" != "X"; then
  8067. if test "X$additional_includedir" != "X/usr/include"; then
  8068. haveit=
  8069. if test "X$additional_includedir" = "X/usr/local/include"; then
  8070. if test -n "$GCC"; then
  8071. case $host_os in
  8072. linux*) haveit=yes;;
  8073. esac
  8074. fi
  8075. fi
  8076. if test -z "$haveit"; then
  8077. for x in $CPPFLAGS $INCICONV; do
  8078. acl_save_prefix="$prefix"
  8079. prefix="$acl_final_prefix"
  8080. acl_save_exec_prefix="$exec_prefix"
  8081. exec_prefix="$acl_final_exec_prefix"
  8082. eval x=\"$x\"
  8083. exec_prefix="$acl_save_exec_prefix"
  8084. prefix="$acl_save_prefix"
  8085. if test "X$x" = "X-I$additional_includedir"; then
  8086. haveit=yes
  8087. break
  8088. fi
  8089. done
  8090. if test -z "$haveit"; then
  8091. if test -d "$additional_includedir"; then
  8092. INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir"
  8093. fi
  8094. fi
  8095. fi
  8096. fi
  8097. fi
  8098. if test -n "$found_la"; then
  8099. save_libdir="$libdir"
  8100. case "$found_la" in
  8101. */* | *\\*) . "$found_la" ;;
  8102. *) . "./$found_la" ;;
  8103. esac
  8104. libdir="$save_libdir"
  8105. for dep in $dependency_libs; do
  8106. case "$dep" in
  8107. -L*)
  8108. additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
  8109. if test "X$additional_libdir" != "X/usr/lib"; then
  8110. haveit=
  8111. if test "X$additional_libdir" = "X/usr/local/lib"; then
  8112. if test -n "$GCC"; then
  8113. case $host_os in
  8114. linux*) haveit=yes;;
  8115. esac
  8116. fi
  8117. fi
  8118. if test -z "$haveit"; then
  8119. haveit=
  8120. for x in $LDFLAGS $LIBICONV; do
  8121. acl_save_prefix="$prefix"
  8122. prefix="$acl_final_prefix"
  8123. acl_save_exec_prefix="$exec_prefix"
  8124. exec_prefix="$acl_final_exec_prefix"
  8125. eval x=\"$x\"
  8126. exec_prefix="$acl_save_exec_prefix"
  8127. prefix="$acl_save_prefix"
  8128. if test "X$x" = "X-L$additional_libdir"; then
  8129. haveit=yes
  8130. break
  8131. fi
  8132. done
  8133. if test -z "$haveit"; then
  8134. if test -d "$additional_libdir"; then
  8135. LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
  8136. fi
  8137. fi
  8138. haveit=
  8139. for x in $LDFLAGS $LTLIBICONV; do
  8140. acl_save_prefix="$prefix"
  8141. prefix="$acl_final_prefix"
  8142. acl_save_exec_prefix="$exec_prefix"
  8143. exec_prefix="$acl_final_exec_prefix"
  8144. eval x=\"$x\"
  8145. exec_prefix="$acl_save_exec_prefix"
  8146. prefix="$acl_save_prefix"
  8147. if test "X$x" = "X-L$additional_libdir"; then
  8148. haveit=yes
  8149. break
  8150. fi
  8151. done
  8152. if test -z "$haveit"; then
  8153. if test -d "$additional_libdir"; then
  8154. LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
  8155. fi
  8156. fi
  8157. fi
  8158. fi
  8159. ;;
  8160. -R*)
  8161. dir=`echo "X$dep" | sed -e 's/^X-R//'`
  8162. if test "$enable_rpath" != no; then
  8163. haveit=
  8164. for x in $rpathdirs; do
  8165. if test "X$x" = "X$dir"; then
  8166. haveit=yes
  8167. break
  8168. fi
  8169. done
  8170. if test -z "$haveit"; then
  8171. rpathdirs="$rpathdirs $dir"
  8172. fi
  8173. haveit=
  8174. for x in $ltrpathdirs; do
  8175. if test "X$x" = "X$dir"; then
  8176. haveit=yes
  8177. break
  8178. fi
  8179. done
  8180. if test -z "$haveit"; then
  8181. ltrpathdirs="$ltrpathdirs $dir"
  8182. fi
  8183. fi
  8184. ;;
  8185. -l*)
  8186. names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
  8187. ;;
  8188. *.la)
  8189. names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
  8190. ;;
  8191. *)
  8192. LIBICONV="${LIBICONV}${LIBICONV:+ }$dep"
  8193. LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep"
  8194. ;;
  8195. esac
  8196. done
  8197. fi
  8198. else
  8199. LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
  8200. LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
  8201. fi
  8202. fi
  8203. fi
  8204. done
  8205. done
  8206. if test "X$rpathdirs" != "X"; then
  8207. if test -n "$hardcode_libdir_separator"; then
  8208. alldirs=
  8209. for found_dir in $rpathdirs; do
  8210. alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
  8211. done
  8212. acl_save_libdir="$libdir"
  8213. libdir="$alldirs"
  8214. eval flag=\"$hardcode_libdir_flag_spec\"
  8215. libdir="$acl_save_libdir"
  8216. LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
  8217. else
  8218. for found_dir in $rpathdirs; do
  8219. acl_save_libdir="$libdir"
  8220. libdir="$found_dir"
  8221. eval flag=\"$hardcode_libdir_flag_spec\"
  8222. libdir="$acl_save_libdir"
  8223. LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
  8224. done
  8225. fi
  8226. fi
  8227. if test "X$ltrpathdirs" != "X"; then
  8228. for found_dir in $ltrpathdirs; do
  8229. LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
  8230. done
  8231. fi
  8232. for ac_header in argz.h limits.h locale.h nl_types.h malloc.h stddef.h \
  8233. stdlib.h string.h unistd.h sys/param.h
  8234. do
  8235. as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
  8236. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  8237. { echo "$as_me:$LINENO: checking for $ac_header" >&5
  8238. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
  8239. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  8240. echo $ECHO_N "(cached) $ECHO_C" >&6
  8241. fi
  8242. ac_res=`eval echo '${'$as_ac_Header'}'`
  8243. { echo "$as_me:$LINENO: result: $ac_res" >&5
  8244. echo "${ECHO_T}$ac_res" >&6; }
  8245. else
  8246. # Is the header compilable?
  8247. { echo "$as_me:$LINENO: checking $ac_header usability" >&5
  8248. echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
  8249. cat >conftest.$ac_ext <<_ACEOF
  8250. /* confdefs.h. */
  8251. _ACEOF
  8252. cat confdefs.h >>conftest.$ac_ext
  8253. cat >>conftest.$ac_ext <<_ACEOF
  8254. /* end confdefs.h. */
  8255. $ac_includes_default
  8256. #include <$ac_header>
  8257. _ACEOF
  8258. rm -f conftest.$ac_objext
  8259. if { (ac_try="$ac_compile"
  8260. case "(($ac_try" in
  8261. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  8262. *) ac_try_echo=$ac_try;;
  8263. esac
  8264. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  8265. (eval "$ac_compile") 2>conftest.er1
  8266. ac_status=$?
  8267. grep -v '^ *+' conftest.er1 >conftest.err
  8268. rm -f conftest.er1
  8269. cat conftest.err >&5
  8270. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8271. (exit $ac_status); } && {
  8272. test -z "$ac_c_werror_flag" ||
  8273. test ! -s conftest.err
  8274. } && test -s conftest.$ac_objext; then
  8275. ac_header_compiler=yes
  8276. else
  8277. echo "$as_me: failed program was:" >&5
  8278. sed 's/^/| /' conftest.$ac_ext >&5
  8279. ac_header_compiler=no
  8280. fi
  8281. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  8282. { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  8283. echo "${ECHO_T}$ac_header_compiler" >&6; }
  8284. # Is the header present?
  8285. { echo "$as_me:$LINENO: checking $ac_header presence" >&5
  8286. echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
  8287. cat >conftest.$ac_ext <<_ACEOF
  8288. /* confdefs.h. */
  8289. _ACEOF
  8290. cat confdefs.h >>conftest.$ac_ext
  8291. cat >>conftest.$ac_ext <<_ACEOF
  8292. /* end confdefs.h. */
  8293. #include <$ac_header>
  8294. _ACEOF
  8295. if { (ac_try="$ac_cpp conftest.$ac_ext"
  8296. case "(($ac_try" in
  8297. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  8298. *) ac_try_echo=$ac_try;;
  8299. esac
  8300. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  8301. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  8302. ac_status=$?
  8303. grep -v '^ *+' conftest.er1 >conftest.err
  8304. rm -f conftest.er1
  8305. cat conftest.err >&5
  8306. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8307. (exit $ac_status); } >/dev/null && {
  8308. test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
  8309. test ! -s conftest.err
  8310. }; then
  8311. ac_header_preproc=yes
  8312. else
  8313. echo "$as_me: failed program was:" >&5
  8314. sed 's/^/| /' conftest.$ac_ext >&5
  8315. ac_header_preproc=no
  8316. fi
  8317. rm -f conftest.err conftest.$ac_ext
  8318. { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  8319. echo "${ECHO_T}$ac_header_preproc" >&6; }
  8320. # So? What about this header?
  8321. case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
  8322. yes:no: )
  8323. { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
  8324. echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
  8325. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
  8326. echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
  8327. ac_header_preproc=yes
  8328. ;;
  8329. no:yes:* )
  8330. { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
  8331. echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
  8332. { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
  8333. echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
  8334. { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
  8335. echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
  8336. { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
  8337. echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
  8338. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
  8339. echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
  8340. { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
  8341. echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
  8342. ( cat <<\_ASBOX
  8343. ## ----------------------------------------------- ##
  8344. ## Report this to t-tujikawa@users.sourceforge.net ##
  8345. ## ----------------------------------------------- ##
  8346. _ASBOX
  8347. ) | sed "s/^/$as_me: WARNING: /" >&2
  8348. ;;
  8349. esac
  8350. { echo "$as_me:$LINENO: checking for $ac_header" >&5
  8351. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
  8352. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  8353. echo $ECHO_N "(cached) $ECHO_C" >&6
  8354. else
  8355. eval "$as_ac_Header=\$ac_header_preproc"
  8356. fi
  8357. ac_res=`eval echo '${'$as_ac_Header'}'`
  8358. { echo "$as_me:$LINENO: result: $ac_res" >&5
  8359. echo "${ECHO_T}$ac_res" >&6; }
  8360. fi
  8361. if test `eval echo '${'$as_ac_Header'}'` = yes; then
  8362. cat >>confdefs.h <<_ACEOF
  8363. #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
  8364. _ACEOF
  8365. fi
  8366. done
  8367. for ac_func in feof_unlocked fgets_unlocked getc_unlocked getcwd getegid \
  8368. geteuid getgid getuid mempcpy munmap putenv setenv setlocale stpcpy \
  8369. strcasecmp strdup strtoul tsearch __argz_count __argz_stringify __argz_next \
  8370. __fsetlocking
  8371. do
  8372. as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
  8373. { echo "$as_me:$LINENO: checking for $ac_func" >&5
  8374. echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
  8375. if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
  8376. echo $ECHO_N "(cached) $ECHO_C" >&6
  8377. else
  8378. cat >conftest.$ac_ext <<_ACEOF
  8379. /* confdefs.h. */
  8380. _ACEOF
  8381. cat confdefs.h >>conftest.$ac_ext
  8382. cat >>conftest.$ac_ext <<_ACEOF
  8383. /* end confdefs.h. */
  8384. /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
  8385. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  8386. #define $ac_func innocuous_$ac_func
  8387. /* System header to define __stub macros and hopefully few prototypes,
  8388. which can conflict with char $ac_func (); below.
  8389. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  8390. <limits.h> exists even on freestanding compilers. */
  8391. #ifdef __STDC__
  8392. # include <limits.h>
  8393. #else
  8394. # include <assert.h>
  8395. #endif
  8396. #undef $ac_func
  8397. /* Override any GCC internal prototype to avoid an error.
  8398. Use char because int might match the return type of a GCC
  8399. builtin and then its argument prototype would still apply. */
  8400. #ifdef __cplusplus
  8401. extern "C"
  8402. #endif
  8403. char $ac_func ();
  8404. /* The GNU C library defines this for functions which it implements
  8405. to always fail with ENOSYS. Some functions are actually named
  8406. something starting with __ and the normal name is an alias. */
  8407. #if defined __stub_$ac_func || defined __stub___$ac_func
  8408. choke me
  8409. #endif
  8410. int
  8411. main ()
  8412. {
  8413. return $ac_func ();
  8414. ;
  8415. return 0;
  8416. }
  8417. _ACEOF
  8418. rm -f conftest.$ac_objext conftest$ac_exeext
  8419. if { (ac_try="$ac_link"
  8420. case "(($ac_try" in
  8421. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  8422. *) ac_try_echo=$ac_try;;
  8423. esac
  8424. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  8425. (eval "$ac_link") 2>conftest.er1
  8426. ac_status=$?
  8427. grep -v '^ *+' conftest.er1 >conftest.err
  8428. rm -f conftest.er1
  8429. cat conftest.err >&5
  8430. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8431. (exit $ac_status); } && {
  8432. test -z "$ac_c_werror_flag" ||
  8433. test ! -s conftest.err
  8434. } && test -s conftest$ac_exeext &&
  8435. $as_test_x conftest$ac_exeext; then
  8436. eval "$as_ac_var=yes"
  8437. else
  8438. echo "$as_me: failed program was:" >&5
  8439. sed 's/^/| /' conftest.$ac_ext >&5
  8440. eval "$as_ac_var=no"
  8441. fi
  8442. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  8443. conftest$ac_exeext conftest.$ac_ext
  8444. fi
  8445. ac_res=`eval echo '${'$as_ac_var'}'`
  8446. { echo "$as_me:$LINENO: result: $ac_res" >&5
  8447. echo "${ECHO_T}$ac_res" >&6; }
  8448. if test `eval echo '${'$as_ac_var'}'` = yes; then
  8449. cat >>confdefs.h <<_ACEOF
  8450. #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
  8451. _ACEOF
  8452. fi
  8453. done
  8454. am_save_CPPFLAGS="$CPPFLAGS"
  8455. for element in $INCICONV; do
  8456. haveit=
  8457. for x in $CPPFLAGS; do
  8458. acl_save_prefix="$prefix"
  8459. prefix="$acl_final_prefix"
  8460. acl_save_exec_prefix="$exec_prefix"
  8461. exec_prefix="$acl_final_exec_prefix"
  8462. eval x=\"$x\"
  8463. exec_prefix="$acl_save_exec_prefix"
  8464. prefix="$acl_save_prefix"
  8465. if test "X$x" = "X$element"; then
  8466. haveit=yes
  8467. break
  8468. fi
  8469. done
  8470. if test -z "$haveit"; then
  8471. CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
  8472. fi
  8473. done
  8474. { echo "$as_me:$LINENO: checking for iconv" >&5
  8475. echo $ECHO_N "checking for iconv... $ECHO_C" >&6; }
  8476. if test "${am_cv_func_iconv+set}" = set; then
  8477. echo $ECHO_N "(cached) $ECHO_C" >&6
  8478. else
  8479. am_cv_func_iconv="no, consider installing GNU libiconv"
  8480. am_cv_lib_iconv=no
  8481. cat >conftest.$ac_ext <<_ACEOF
  8482. /* confdefs.h. */
  8483. _ACEOF
  8484. cat confdefs.h >>conftest.$ac_ext
  8485. cat >>conftest.$ac_ext <<_ACEOF
  8486. /* end confdefs.h. */
  8487. #include <stdlib.h>
  8488. #include <iconv.h>
  8489. int
  8490. main ()
  8491. {
  8492. iconv_t cd = iconv_open("","");
  8493. iconv(cd,NULL,NULL,NULL,NULL);
  8494. iconv_close(cd);
  8495. ;
  8496. return 0;
  8497. }
  8498. _ACEOF
  8499. rm -f conftest.$ac_objext conftest$ac_exeext
  8500. if { (ac_try="$ac_link"
  8501. case "(($ac_try" in
  8502. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  8503. *) ac_try_echo=$ac_try;;
  8504. esac
  8505. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  8506. (eval "$ac_link") 2>conftest.er1
  8507. ac_status=$?
  8508. grep -v '^ *+' conftest.er1 >conftest.err
  8509. rm -f conftest.er1
  8510. cat conftest.err >&5
  8511. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8512. (exit $ac_status); } && {
  8513. test -z "$ac_c_werror_flag" ||
  8514. test ! -s conftest.err
  8515. } && test -s conftest$ac_exeext &&
  8516. $as_test_x conftest$ac_exeext; then
  8517. am_cv_func_iconv=yes
  8518. else
  8519. echo "$as_me: failed program was:" >&5
  8520. sed 's/^/| /' conftest.$ac_ext >&5
  8521. fi
  8522. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  8523. conftest$ac_exeext conftest.$ac_ext
  8524. if test "$am_cv_func_iconv" != yes; then
  8525. am_save_LIBS="$LIBS"
  8526. LIBS="$LIBS $LIBICONV"
  8527. cat >conftest.$ac_ext <<_ACEOF
  8528. /* confdefs.h. */
  8529. _ACEOF
  8530. cat confdefs.h >>conftest.$ac_ext
  8531. cat >>conftest.$ac_ext <<_ACEOF
  8532. /* end confdefs.h. */
  8533. #include <stdlib.h>
  8534. #include <iconv.h>
  8535. int
  8536. main ()
  8537. {
  8538. iconv_t cd = iconv_open("","");
  8539. iconv(cd,NULL,NULL,NULL,NULL);
  8540. iconv_close(cd);
  8541. ;
  8542. return 0;
  8543. }
  8544. _ACEOF
  8545. rm -f conftest.$ac_objext conftest$ac_exeext
  8546. if { (ac_try="$ac_link"
  8547. case "(($ac_try" in
  8548. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  8549. *) ac_try_echo=$ac_try;;
  8550. esac
  8551. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  8552. (eval "$ac_link") 2>conftest.er1
  8553. ac_status=$?
  8554. grep -v '^ *+' conftest.er1 >conftest.err
  8555. rm -f conftest.er1
  8556. cat conftest.err >&5
  8557. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8558. (exit $ac_status); } && {
  8559. test -z "$ac_c_werror_flag" ||
  8560. test ! -s conftest.err
  8561. } && test -s conftest$ac_exeext &&
  8562. $as_test_x conftest$ac_exeext; then
  8563. am_cv_lib_iconv=yes
  8564. am_cv_func_iconv=yes
  8565. else
  8566. echo "$as_me: failed program was:" >&5
  8567. sed 's/^/| /' conftest.$ac_ext >&5
  8568. fi
  8569. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  8570. conftest$ac_exeext conftest.$ac_ext
  8571. LIBS="$am_save_LIBS"
  8572. fi
  8573. fi
  8574. { echo "$as_me:$LINENO: result: $am_cv_func_iconv" >&5
  8575. echo "${ECHO_T}$am_cv_func_iconv" >&6; }
  8576. if test "$am_cv_func_iconv" = yes; then
  8577. cat >>confdefs.h <<\_ACEOF
  8578. #define HAVE_ICONV 1
  8579. _ACEOF
  8580. fi
  8581. if test "$am_cv_lib_iconv" = yes; then
  8582. { echo "$as_me:$LINENO: checking how to link with libiconv" >&5
  8583. echo $ECHO_N "checking how to link with libiconv... $ECHO_C" >&6; }
  8584. { echo "$as_me:$LINENO: result: $LIBICONV" >&5
  8585. echo "${ECHO_T}$LIBICONV" >&6; }
  8586. else
  8587. CPPFLAGS="$am_save_CPPFLAGS"
  8588. LIBICONV=
  8589. LTLIBICONV=
  8590. fi
  8591. if test "$am_cv_func_iconv" = yes; then
  8592. { echo "$as_me:$LINENO: checking for iconv declaration" >&5
  8593. echo $ECHO_N "checking for iconv declaration... $ECHO_C" >&6; }
  8594. if test "${am_cv_proto_iconv+set}" = set; then
  8595. echo $ECHO_N "(cached) $ECHO_C" >&6
  8596. else
  8597. cat >conftest.$ac_ext <<_ACEOF
  8598. /* confdefs.h. */
  8599. _ACEOF
  8600. cat confdefs.h >>conftest.$ac_ext
  8601. cat >>conftest.$ac_ext <<_ACEOF
  8602. /* end confdefs.h. */
  8603. #include <stdlib.h>
  8604. #include <iconv.h>
  8605. extern
  8606. #ifdef __cplusplus
  8607. "C"
  8608. #endif
  8609. #if defined(__STDC__) || defined(__cplusplus)
  8610. size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
  8611. #else
  8612. size_t iconv();
  8613. #endif
  8614. int
  8615. main ()
  8616. {
  8617. ;
  8618. return 0;
  8619. }
  8620. _ACEOF
  8621. rm -f conftest.$ac_objext
  8622. if { (ac_try="$ac_compile"
  8623. case "(($ac_try" in
  8624. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  8625. *) ac_try_echo=$ac_try;;
  8626. esac
  8627. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  8628. (eval "$ac_compile") 2>conftest.er1
  8629. ac_status=$?
  8630. grep -v '^ *+' conftest.er1 >conftest.err
  8631. rm -f conftest.er1
  8632. cat conftest.err >&5
  8633. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8634. (exit $ac_status); } && {
  8635. test -z "$ac_c_werror_flag" ||
  8636. test ! -s conftest.err
  8637. } && test -s conftest.$ac_objext; then
  8638. am_cv_proto_iconv_arg1=""
  8639. else
  8640. echo "$as_me: failed program was:" >&5
  8641. sed 's/^/| /' conftest.$ac_ext >&5
  8642. am_cv_proto_iconv_arg1="const"
  8643. fi
  8644. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  8645. 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);"
  8646. fi
  8647. am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
  8648. { echo "$as_me:$LINENO: result: ${ac_t:-
  8649. }$am_cv_proto_iconv" >&5
  8650. echo "${ECHO_T}${ac_t:-
  8651. }$am_cv_proto_iconv" >&6; }
  8652. cat >>confdefs.h <<_ACEOF
  8653. #define ICONV_CONST $am_cv_proto_iconv_arg1
  8654. _ACEOF
  8655. fi
  8656. { echo "$as_me:$LINENO: checking for nl_langinfo and CODESET" >&5
  8657. echo $ECHO_N "checking for nl_langinfo and CODESET... $ECHO_C" >&6; }
  8658. if test "${am_cv_langinfo_codeset+set}" = set; then
  8659. echo $ECHO_N "(cached) $ECHO_C" >&6
  8660. else
  8661. cat >conftest.$ac_ext <<_ACEOF
  8662. /* confdefs.h. */
  8663. _ACEOF
  8664. cat confdefs.h >>conftest.$ac_ext
  8665. cat >>conftest.$ac_ext <<_ACEOF
  8666. /* end confdefs.h. */
  8667. #include <langinfo.h>
  8668. int
  8669. main ()
  8670. {
  8671. char* cs = nl_langinfo(CODESET);
  8672. ;
  8673. return 0;
  8674. }
  8675. _ACEOF
  8676. rm -f conftest.$ac_objext conftest$ac_exeext
  8677. if { (ac_try="$ac_link"
  8678. case "(($ac_try" in
  8679. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  8680. *) ac_try_echo=$ac_try;;
  8681. esac
  8682. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  8683. (eval "$ac_link") 2>conftest.er1
  8684. ac_status=$?
  8685. grep -v '^ *+' conftest.er1 >conftest.err
  8686. rm -f conftest.er1
  8687. cat conftest.err >&5
  8688. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8689. (exit $ac_status); } && {
  8690. test -z "$ac_c_werror_flag" ||
  8691. test ! -s conftest.err
  8692. } && test -s conftest$ac_exeext &&
  8693. $as_test_x conftest$ac_exeext; then
  8694. am_cv_langinfo_codeset=yes
  8695. else
  8696. echo "$as_me: failed program was:" >&5
  8697. sed 's/^/| /' conftest.$ac_ext >&5
  8698. am_cv_langinfo_codeset=no
  8699. fi
  8700. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  8701. conftest$ac_exeext conftest.$ac_ext
  8702. fi
  8703. { echo "$as_me:$LINENO: result: $am_cv_langinfo_codeset" >&5
  8704. echo "${ECHO_T}$am_cv_langinfo_codeset" >&6; }
  8705. if test $am_cv_langinfo_codeset = yes; then
  8706. cat >>confdefs.h <<\_ACEOF
  8707. #define HAVE_LANGINFO_CODESET 1
  8708. _ACEOF
  8709. fi
  8710. if test $ac_cv_header_locale_h = yes; then
  8711. { echo "$as_me:$LINENO: checking for LC_MESSAGES" >&5
  8712. echo $ECHO_N "checking for LC_MESSAGES... $ECHO_C" >&6; }
  8713. if test "${am_cv_val_LC_MESSAGES+set}" = set; then
  8714. echo $ECHO_N "(cached) $ECHO_C" >&6
  8715. else
  8716. cat >conftest.$ac_ext <<_ACEOF
  8717. /* confdefs.h. */
  8718. _ACEOF
  8719. cat confdefs.h >>conftest.$ac_ext
  8720. cat >>conftest.$ac_ext <<_ACEOF
  8721. /* end confdefs.h. */
  8722. #include <locale.h>
  8723. int
  8724. main ()
  8725. {
  8726. return LC_MESSAGES
  8727. ;
  8728. return 0;
  8729. }
  8730. _ACEOF
  8731. rm -f conftest.$ac_objext conftest$ac_exeext
  8732. if { (ac_try="$ac_link"
  8733. case "(($ac_try" in
  8734. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  8735. *) ac_try_echo=$ac_try;;
  8736. esac
  8737. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  8738. (eval "$ac_link") 2>conftest.er1
  8739. ac_status=$?
  8740. grep -v '^ *+' conftest.er1 >conftest.err
  8741. rm -f conftest.er1
  8742. cat conftest.err >&5
  8743. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8744. (exit $ac_status); } && {
  8745. test -z "$ac_c_werror_flag" ||
  8746. test ! -s conftest.err
  8747. } && test -s conftest$ac_exeext &&
  8748. $as_test_x conftest$ac_exeext; then
  8749. am_cv_val_LC_MESSAGES=yes
  8750. else
  8751. echo "$as_me: failed program was:" >&5
  8752. sed 's/^/| /' conftest.$ac_ext >&5
  8753. am_cv_val_LC_MESSAGES=no
  8754. fi
  8755. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  8756. conftest$ac_exeext conftest.$ac_ext
  8757. fi
  8758. { echo "$as_me:$LINENO: result: $am_cv_val_LC_MESSAGES" >&5
  8759. echo "${ECHO_T}$am_cv_val_LC_MESSAGES" >&6; }
  8760. if test $am_cv_val_LC_MESSAGES = yes; then
  8761. cat >>confdefs.h <<\_ACEOF
  8762. #define HAVE_LC_MESSAGES 1
  8763. _ACEOF
  8764. fi
  8765. fi
  8766. for ac_prog in bison
  8767. do
  8768. # Extract the first word of "$ac_prog", so it can be a program name with args.
  8769. set dummy $ac_prog; ac_word=$2
  8770. { echo "$as_me:$LINENO: checking for $ac_word" >&5
  8771. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  8772. if test "${ac_cv_prog_INTLBISON+set}" = set; then
  8773. echo $ECHO_N "(cached) $ECHO_C" >&6
  8774. else
  8775. if test -n "$INTLBISON"; then
  8776. ac_cv_prog_INTLBISON="$INTLBISON" # Let the user override the test.
  8777. else
  8778. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  8779. for as_dir in $PATH
  8780. do
  8781. IFS=$as_save_IFS
  8782. test -z "$as_dir" && as_dir=.
  8783. for ac_exec_ext in '' $ac_executable_extensions; do
  8784. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  8785. ac_cv_prog_INTLBISON="$ac_prog"
  8786. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  8787. break 2
  8788. fi
  8789. done
  8790. done
  8791. IFS=$as_save_IFS
  8792. fi
  8793. fi
  8794. INTLBISON=$ac_cv_prog_INTLBISON
  8795. if test -n "$INTLBISON"; then
  8796. { echo "$as_me:$LINENO: result: $INTLBISON" >&5
  8797. echo "${ECHO_T}$INTLBISON" >&6; }
  8798. else
  8799. { echo "$as_me:$LINENO: result: no" >&5
  8800. echo "${ECHO_T}no" >&6; }
  8801. fi
  8802. test -n "$INTLBISON" && break
  8803. done
  8804. if test -z "$INTLBISON"; then
  8805. ac_verc_fail=yes
  8806. else
  8807. { echo "$as_me:$LINENO: checking version of bison" >&5
  8808. echo $ECHO_N "checking version of bison... $ECHO_C" >&6; }
  8809. ac_prog_version=`$INTLBISON --version 2>&1 | sed -n 's/^.*GNU Bison.* \([0-9]*\.[0-9.]*\).*$/\1/p'`
  8810. case $ac_prog_version in
  8811. '') ac_prog_version="v. ?.??, bad"; ac_verc_fail=yes;;
  8812. 1.2[6-9]* | 1.[3-9][0-9]* | [2-9].*)
  8813. ac_prog_version="$ac_prog_version, ok"; ac_verc_fail=no;;
  8814. *) ac_prog_version="$ac_prog_version, bad"; ac_verc_fail=yes;;
  8815. esac
  8816. { echo "$as_me:$LINENO: result: $ac_prog_version" >&5
  8817. echo "${ECHO_T}$ac_prog_version" >&6; }
  8818. fi
  8819. if test $ac_verc_fail = yes; then
  8820. INTLBISON=:
  8821. fi
  8822. { echo "$as_me:$LINENO: checking whether NLS is requested" >&5
  8823. echo $ECHO_N "checking whether NLS is requested... $ECHO_C" >&6; }
  8824. # Check whether --enable-nls was given.
  8825. if test "${enable_nls+set}" = set; then
  8826. enableval=$enable_nls; USE_NLS=$enableval
  8827. else
  8828. USE_NLS=yes
  8829. fi
  8830. { echo "$as_me:$LINENO: result: $USE_NLS" >&5
  8831. echo "${ECHO_T}$USE_NLS" >&6; }
  8832. BUILD_INCLUDED_LIBINTL=no
  8833. USE_INCLUDED_LIBINTL=no
  8834. LIBINTL=
  8835. LTLIBINTL=
  8836. POSUB=
  8837. if test "$USE_NLS" = "yes"; then
  8838. gt_use_preinstalled_gnugettext=no
  8839. { echo "$as_me:$LINENO: checking whether included gettext is requested" >&5
  8840. echo $ECHO_N "checking whether included gettext is requested... $ECHO_C" >&6; }
  8841. # Check whether --with-included-gettext was given.
  8842. if test "${with_included_gettext+set}" = set; then
  8843. withval=$with_included_gettext; nls_cv_force_use_gnu_gettext=$withval
  8844. else
  8845. nls_cv_force_use_gnu_gettext=no
  8846. fi
  8847. { echo "$as_me:$LINENO: result: $nls_cv_force_use_gnu_gettext" >&5
  8848. echo "${ECHO_T}$nls_cv_force_use_gnu_gettext" >&6; }
  8849. nls_cv_use_gnu_gettext="$nls_cv_force_use_gnu_gettext"
  8850. if test "$nls_cv_force_use_gnu_gettext" != "yes"; then
  8851. { echo "$as_me:$LINENO: checking for GNU gettext in libc" >&5
  8852. echo $ECHO_N "checking for GNU gettext in libc... $ECHO_C" >&6; }
  8853. if test "${gt_cv_func_gnugettext1_libc+set}" = set; then
  8854. echo $ECHO_N "(cached) $ECHO_C" >&6
  8855. else
  8856. cat >conftest.$ac_ext <<_ACEOF
  8857. /* confdefs.h. */
  8858. _ACEOF
  8859. cat confdefs.h >>conftest.$ac_ext
  8860. cat >>conftest.$ac_ext <<_ACEOF
  8861. /* end confdefs.h. */
  8862. #include <libintl.h>
  8863. extern int _nl_msg_cat_cntr;
  8864. extern int *_nl_domain_bindings;
  8865. int
  8866. main ()
  8867. {
  8868. bindtextdomain ("", "");
  8869. return (int) gettext ("") + _nl_msg_cat_cntr + *_nl_domain_bindings
  8870. ;
  8871. return 0;
  8872. }
  8873. _ACEOF
  8874. rm -f conftest.$ac_objext conftest$ac_exeext
  8875. if { (ac_try="$ac_link"
  8876. case "(($ac_try" in
  8877. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  8878. *) ac_try_echo=$ac_try;;
  8879. esac
  8880. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  8881. (eval "$ac_link") 2>conftest.er1
  8882. ac_status=$?
  8883. grep -v '^ *+' conftest.er1 >conftest.err
  8884. rm -f conftest.er1
  8885. cat conftest.err >&5
  8886. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8887. (exit $ac_status); } && {
  8888. test -z "$ac_c_werror_flag" ||
  8889. test ! -s conftest.err
  8890. } && test -s conftest$ac_exeext &&
  8891. $as_test_x conftest$ac_exeext; then
  8892. gt_cv_func_gnugettext1_libc=yes
  8893. else
  8894. echo "$as_me: failed program was:" >&5
  8895. sed 's/^/| /' conftest.$ac_ext >&5
  8896. gt_cv_func_gnugettext1_libc=no
  8897. fi
  8898. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  8899. conftest$ac_exeext conftest.$ac_ext
  8900. fi
  8901. { echo "$as_me:$LINENO: result: $gt_cv_func_gnugettext1_libc" >&5
  8902. echo "${ECHO_T}$gt_cv_func_gnugettext1_libc" >&6; }
  8903. if test "$gt_cv_func_gnugettext1_libc" != "yes"; then
  8904. use_additional=yes
  8905. acl_save_prefix="$prefix"
  8906. prefix="$acl_final_prefix"
  8907. acl_save_exec_prefix="$exec_prefix"
  8908. exec_prefix="$acl_final_exec_prefix"
  8909. eval additional_includedir=\"$includedir\"
  8910. eval additional_libdir=\"$libdir\"
  8911. exec_prefix="$acl_save_exec_prefix"
  8912. prefix="$acl_save_prefix"
  8913. # Check whether --with-libintl-prefix was given.
  8914. if test "${with_libintl_prefix+set}" = set; then
  8915. withval=$with_libintl_prefix;
  8916. if test "X$withval" = "Xno"; then
  8917. use_additional=no
  8918. else
  8919. if test "X$withval" = "X"; then
  8920. acl_save_prefix="$prefix"
  8921. prefix="$acl_final_prefix"
  8922. acl_save_exec_prefix="$exec_prefix"
  8923. exec_prefix="$acl_final_exec_prefix"
  8924. eval additional_includedir=\"$includedir\"
  8925. eval additional_libdir=\"$libdir\"
  8926. exec_prefix="$acl_save_exec_prefix"
  8927. prefix="$acl_save_prefix"
  8928. else
  8929. additional_includedir="$withval/include"
  8930. additional_libdir="$withval/lib"
  8931. fi
  8932. fi
  8933. fi
  8934. LIBINTL=
  8935. LTLIBINTL=
  8936. INCINTL=
  8937. rpathdirs=
  8938. ltrpathdirs=
  8939. names_already_handled=
  8940. names_next_round='intl '
  8941. while test -n "$names_next_round"; do
  8942. names_this_round="$names_next_round"
  8943. names_next_round=
  8944. for name in $names_this_round; do
  8945. already_handled=
  8946. for n in $names_already_handled; do
  8947. if test "$n" = "$name"; then
  8948. already_handled=yes
  8949. break
  8950. fi
  8951. done
  8952. if test -z "$already_handled"; then
  8953. names_already_handled="$names_already_handled $name"
  8954. uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
  8955. eval value=\"\$HAVE_LIB$uppername\"
  8956. if test -n "$value"; then
  8957. if test "$value" = yes; then
  8958. eval value=\"\$LIB$uppername\"
  8959. test -z "$value" || LIBINTL="${LIBINTL}${LIBINTL:+ }$value"
  8960. eval value=\"\$LTLIB$uppername\"
  8961. test -z "$value" || LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$value"
  8962. else
  8963. :
  8964. fi
  8965. else
  8966. found_dir=
  8967. found_la=
  8968. found_so=
  8969. found_a=
  8970. if test $use_additional = yes; then
  8971. if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
  8972. found_dir="$additional_libdir"
  8973. found_so="$additional_libdir/lib$name.$shlibext"
  8974. if test -f "$additional_libdir/lib$name.la"; then
  8975. found_la="$additional_libdir/lib$name.la"
  8976. fi
  8977. else
  8978. if test -f "$additional_libdir/lib$name.$libext"; then
  8979. found_dir="$additional_libdir"
  8980. found_a="$additional_libdir/lib$name.$libext"
  8981. if test -f "$additional_libdir/lib$name.la"; then
  8982. found_la="$additional_libdir/lib$name.la"
  8983. fi
  8984. fi
  8985. fi
  8986. fi
  8987. if test "X$found_dir" = "X"; then
  8988. for x in $LDFLAGS $LTLIBINTL; do
  8989. acl_save_prefix="$prefix"
  8990. prefix="$acl_final_prefix"
  8991. acl_save_exec_prefix="$exec_prefix"
  8992. exec_prefix="$acl_final_exec_prefix"
  8993. eval x=\"$x\"
  8994. exec_prefix="$acl_save_exec_prefix"
  8995. prefix="$acl_save_prefix"
  8996. case "$x" in
  8997. -L*)
  8998. dir=`echo "X$x" | sed -e 's/^X-L//'`
  8999. if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
  9000. found_dir="$dir"
  9001. found_so="$dir/lib$name.$shlibext"
  9002. if test -f "$dir/lib$name.la"; then
  9003. found_la="$dir/lib$name.la"
  9004. fi
  9005. else
  9006. if test -f "$dir/lib$name.$libext"; then
  9007. found_dir="$dir"
  9008. found_a="$dir/lib$name.$libext"
  9009. if test -f "$dir/lib$name.la"; then
  9010. found_la="$dir/lib$name.la"
  9011. fi
  9012. fi
  9013. fi
  9014. ;;
  9015. esac
  9016. if test "X$found_dir" != "X"; then
  9017. break
  9018. fi
  9019. done
  9020. fi
  9021. if test "X$found_dir" != "X"; then
  9022. LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$found_dir -l$name"
  9023. if test "X$found_so" != "X"; then
  9024. if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
  9025. LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
  9026. else
  9027. haveit=
  9028. for x in $ltrpathdirs; do
  9029. if test "X$x" = "X$found_dir"; then
  9030. haveit=yes
  9031. break
  9032. fi
  9033. done
  9034. if test -z "$haveit"; then
  9035. ltrpathdirs="$ltrpathdirs $found_dir"
  9036. fi
  9037. if test "$hardcode_direct" = yes; then
  9038. LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
  9039. else
  9040. if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
  9041. LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
  9042. haveit=
  9043. for x in $rpathdirs; do
  9044. if test "X$x" = "X$found_dir"; then
  9045. haveit=yes
  9046. break
  9047. fi
  9048. done
  9049. if test -z "$haveit"; then
  9050. rpathdirs="$rpathdirs $found_dir"
  9051. fi
  9052. else
  9053. haveit=
  9054. for x in $LDFLAGS $LIBINTL; do
  9055. acl_save_prefix="$prefix"
  9056. prefix="$acl_final_prefix"
  9057. acl_save_exec_prefix="$exec_prefix"
  9058. exec_prefix="$acl_final_exec_prefix"
  9059. eval x=\"$x\"
  9060. exec_prefix="$acl_save_exec_prefix"
  9061. prefix="$acl_save_prefix"
  9062. if test "X$x" = "X-L$found_dir"; then
  9063. haveit=yes
  9064. break
  9065. fi
  9066. done
  9067. if test -z "$haveit"; then
  9068. LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir"
  9069. fi
  9070. if test "$hardcode_minus_L" != no; then
  9071. LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
  9072. else
  9073. LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
  9074. fi
  9075. fi
  9076. fi
  9077. fi
  9078. else
  9079. if test "X$found_a" != "X"; then
  9080. LIBINTL="${LIBINTL}${LIBINTL:+ }$found_a"
  9081. else
  9082. LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir -l$name"
  9083. fi
  9084. fi
  9085. additional_includedir=
  9086. case "$found_dir" in
  9087. */lib | */lib/)
  9088. basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
  9089. additional_includedir="$basedir/include"
  9090. ;;
  9091. esac
  9092. if test "X$additional_includedir" != "X"; then
  9093. if test "X$additional_includedir" != "X/usr/include"; then
  9094. haveit=
  9095. if test "X$additional_includedir" = "X/usr/local/include"; then
  9096. if test -n "$GCC"; then
  9097. case $host_os in
  9098. linux*) haveit=yes;;
  9099. esac
  9100. fi
  9101. fi
  9102. if test -z "$haveit"; then
  9103. for x in $CPPFLAGS $INCINTL; do
  9104. acl_save_prefix="$prefix"
  9105. prefix="$acl_final_prefix"
  9106. acl_save_exec_prefix="$exec_prefix"
  9107. exec_prefix="$acl_final_exec_prefix"
  9108. eval x=\"$x\"
  9109. exec_prefix="$acl_save_exec_prefix"
  9110. prefix="$acl_save_prefix"
  9111. if test "X$x" = "X-I$additional_includedir"; then
  9112. haveit=yes
  9113. break
  9114. fi
  9115. done
  9116. if test -z "$haveit"; then
  9117. if test -d "$additional_includedir"; then
  9118. INCINTL="${INCINTL}${INCINTL:+ }-I$additional_includedir"
  9119. fi
  9120. fi
  9121. fi
  9122. fi
  9123. fi
  9124. if test -n "$found_la"; then
  9125. save_libdir="$libdir"
  9126. case "$found_la" in
  9127. */* | *\\*) . "$found_la" ;;
  9128. *) . "./$found_la" ;;
  9129. esac
  9130. libdir="$save_libdir"
  9131. for dep in $dependency_libs; do
  9132. case "$dep" in
  9133. -L*)
  9134. additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
  9135. if test "X$additional_libdir" != "X/usr/lib"; then
  9136. haveit=
  9137. if test "X$additional_libdir" = "X/usr/local/lib"; then
  9138. if test -n "$GCC"; then
  9139. case $host_os in
  9140. linux*) haveit=yes;;
  9141. esac
  9142. fi
  9143. fi
  9144. if test -z "$haveit"; then
  9145. haveit=
  9146. for x in $LDFLAGS $LIBINTL; do
  9147. acl_save_prefix="$prefix"
  9148. prefix="$acl_final_prefix"
  9149. acl_save_exec_prefix="$exec_prefix"
  9150. exec_prefix="$acl_final_exec_prefix"
  9151. eval x=\"$x\"
  9152. exec_prefix="$acl_save_exec_prefix"
  9153. prefix="$acl_save_prefix"
  9154. if test "X$x" = "X-L$additional_libdir"; then
  9155. haveit=yes
  9156. break
  9157. fi
  9158. done
  9159. if test -z "$haveit"; then
  9160. if test -d "$additional_libdir"; then
  9161. LIBINTL="${LIBINTL}${LIBINTL:+ }-L$additional_libdir"
  9162. fi
  9163. fi
  9164. haveit=
  9165. for x in $LDFLAGS $LTLIBINTL; do
  9166. acl_save_prefix="$prefix"
  9167. prefix="$acl_final_prefix"
  9168. acl_save_exec_prefix="$exec_prefix"
  9169. exec_prefix="$acl_final_exec_prefix"
  9170. eval x=\"$x\"
  9171. exec_prefix="$acl_save_exec_prefix"
  9172. prefix="$acl_save_prefix"
  9173. if test "X$x" = "X-L$additional_libdir"; then
  9174. haveit=yes
  9175. break
  9176. fi
  9177. done
  9178. if test -z "$haveit"; then
  9179. if test -d "$additional_libdir"; then
  9180. LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$additional_libdir"
  9181. fi
  9182. fi
  9183. fi
  9184. fi
  9185. ;;
  9186. -R*)
  9187. dir=`echo "X$dep" | sed -e 's/^X-R//'`
  9188. if test "$enable_rpath" != no; then
  9189. haveit=
  9190. for x in $rpathdirs; do
  9191. if test "X$x" = "X$dir"; then
  9192. haveit=yes
  9193. break
  9194. fi
  9195. done
  9196. if test -z "$haveit"; then
  9197. rpathdirs="$rpathdirs $dir"
  9198. fi
  9199. haveit=
  9200. for x in $ltrpathdirs; do
  9201. if test "X$x" = "X$dir"; then
  9202. haveit=yes
  9203. break
  9204. fi
  9205. done
  9206. if test -z "$haveit"; then
  9207. ltrpathdirs="$ltrpathdirs $dir"
  9208. fi
  9209. fi
  9210. ;;
  9211. -l*)
  9212. names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
  9213. ;;
  9214. *.la)
  9215. names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
  9216. ;;
  9217. *)
  9218. LIBINTL="${LIBINTL}${LIBINTL:+ }$dep"
  9219. LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$dep"
  9220. ;;
  9221. esac
  9222. done
  9223. fi
  9224. else
  9225. LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
  9226. LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-l$name"
  9227. fi
  9228. fi
  9229. fi
  9230. done
  9231. done
  9232. if test "X$rpathdirs" != "X"; then
  9233. if test -n "$hardcode_libdir_separator"; then
  9234. alldirs=
  9235. for found_dir in $rpathdirs; do
  9236. alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
  9237. done
  9238. acl_save_libdir="$libdir"
  9239. libdir="$alldirs"
  9240. eval flag=\"$hardcode_libdir_flag_spec\"
  9241. libdir="$acl_save_libdir"
  9242. LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
  9243. else
  9244. for found_dir in $rpathdirs; do
  9245. acl_save_libdir="$libdir"
  9246. libdir="$found_dir"
  9247. eval flag=\"$hardcode_libdir_flag_spec\"
  9248. libdir="$acl_save_libdir"
  9249. LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
  9250. done
  9251. fi
  9252. fi
  9253. if test "X$ltrpathdirs" != "X"; then
  9254. for found_dir in $ltrpathdirs; do
  9255. LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-R$found_dir"
  9256. done
  9257. fi
  9258. { echo "$as_me:$LINENO: checking for GNU gettext in libintl" >&5
  9259. echo $ECHO_N "checking for GNU gettext in libintl... $ECHO_C" >&6; }
  9260. if test "${gt_cv_func_gnugettext1_libintl+set}" = set; then
  9261. echo $ECHO_N "(cached) $ECHO_C" >&6
  9262. else
  9263. gt_save_CPPFLAGS="$CPPFLAGS"
  9264. CPPFLAGS="$CPPFLAGS $INCINTL"
  9265. gt_save_LIBS="$LIBS"
  9266. LIBS="$LIBS $LIBINTL"
  9267. cat >conftest.$ac_ext <<_ACEOF
  9268. /* confdefs.h. */
  9269. _ACEOF
  9270. cat confdefs.h >>conftest.$ac_ext
  9271. cat >>conftest.$ac_ext <<_ACEOF
  9272. /* end confdefs.h. */
  9273. #include <libintl.h>
  9274. extern int _nl_msg_cat_cntr;
  9275. extern
  9276. #ifdef __cplusplus
  9277. "C"
  9278. #endif
  9279. const char *_nl_expand_alias ();
  9280. int
  9281. main ()
  9282. {
  9283. bindtextdomain ("", "");
  9284. return (int) gettext ("") + _nl_msg_cat_cntr + *_nl_expand_alias (0)
  9285. ;
  9286. return 0;
  9287. }
  9288. _ACEOF
  9289. rm -f conftest.$ac_objext conftest$ac_exeext
  9290. if { (ac_try="$ac_link"
  9291. case "(($ac_try" in
  9292. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  9293. *) ac_try_echo=$ac_try;;
  9294. esac
  9295. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  9296. (eval "$ac_link") 2>conftest.er1
  9297. ac_status=$?
  9298. grep -v '^ *+' conftest.er1 >conftest.err
  9299. rm -f conftest.er1
  9300. cat conftest.err >&5
  9301. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9302. (exit $ac_status); } && {
  9303. test -z "$ac_c_werror_flag" ||
  9304. test ! -s conftest.err
  9305. } && test -s conftest$ac_exeext &&
  9306. $as_test_x conftest$ac_exeext; then
  9307. gt_cv_func_gnugettext1_libintl=yes
  9308. else
  9309. echo "$as_me: failed program was:" >&5
  9310. sed 's/^/| /' conftest.$ac_ext >&5
  9311. gt_cv_func_gnugettext1_libintl=no
  9312. fi
  9313. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  9314. conftest$ac_exeext conftest.$ac_ext
  9315. if test "$gt_cv_func_gnugettext1_libintl" != yes && test -n "$LIBICONV"; then
  9316. LIBS="$LIBS $LIBICONV"
  9317. cat >conftest.$ac_ext <<_ACEOF
  9318. /* confdefs.h. */
  9319. _ACEOF
  9320. cat confdefs.h >>conftest.$ac_ext
  9321. cat >>conftest.$ac_ext <<_ACEOF
  9322. /* end confdefs.h. */
  9323. #include <libintl.h>
  9324. extern int _nl_msg_cat_cntr;
  9325. extern
  9326. #ifdef __cplusplus
  9327. "C"
  9328. #endif
  9329. const char *_nl_expand_alias ();
  9330. int
  9331. main ()
  9332. {
  9333. bindtextdomain ("", "");
  9334. return (int) gettext ("") + _nl_msg_cat_cntr + *_nl_expand_alias (0)
  9335. ;
  9336. return 0;
  9337. }
  9338. _ACEOF
  9339. rm -f conftest.$ac_objext conftest$ac_exeext
  9340. if { (ac_try="$ac_link"
  9341. case "(($ac_try" in
  9342. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  9343. *) ac_try_echo=$ac_try;;
  9344. esac
  9345. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  9346. (eval "$ac_link") 2>conftest.er1
  9347. ac_status=$?
  9348. grep -v '^ *+' conftest.er1 >conftest.err
  9349. rm -f conftest.er1
  9350. cat conftest.err >&5
  9351. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9352. (exit $ac_status); } && {
  9353. test -z "$ac_c_werror_flag" ||
  9354. test ! -s conftest.err
  9355. } && test -s conftest$ac_exeext &&
  9356. $as_test_x conftest$ac_exeext; then
  9357. LIBINTL="$LIBINTL $LIBICONV"
  9358. LTLIBINTL="$LTLIBINTL $LTLIBICONV"
  9359. gt_cv_func_gnugettext1_libintl=yes
  9360. else
  9361. echo "$as_me: failed program was:" >&5
  9362. sed 's/^/| /' conftest.$ac_ext >&5
  9363. fi
  9364. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  9365. conftest$ac_exeext conftest.$ac_ext
  9366. fi
  9367. CPPFLAGS="$gt_save_CPPFLAGS"
  9368. LIBS="$gt_save_LIBS"
  9369. fi
  9370. { echo "$as_me:$LINENO: result: $gt_cv_func_gnugettext1_libintl" >&5
  9371. echo "${ECHO_T}$gt_cv_func_gnugettext1_libintl" >&6; }
  9372. fi
  9373. if test "$gt_cv_func_gnugettext1_libc" = "yes" \
  9374. || { test "$gt_cv_func_gnugettext1_libintl" = "yes" \
  9375. && test "$PACKAGE" != gettext-runtime \
  9376. && test "$PACKAGE" != gettext-tools; }; then
  9377. gt_use_preinstalled_gnugettext=yes
  9378. else
  9379. LIBINTL=
  9380. LTLIBINTL=
  9381. INCINTL=
  9382. fi
  9383. if test "$gt_use_preinstalled_gnugettext" != "yes"; then
  9384. nls_cv_use_gnu_gettext=yes
  9385. fi
  9386. fi
  9387. if test "$nls_cv_use_gnu_gettext" = "yes"; then
  9388. BUILD_INCLUDED_LIBINTL=yes
  9389. USE_INCLUDED_LIBINTL=yes
  9390. LIBINTL="\${top_builddir}/intl/libintl.a $LIBICONV"
  9391. LTLIBINTL="\${top_builddir}/intl/libintl.a $LTLIBICONV"
  9392. LIBS=`echo " $LIBS " | sed -e 's/ -lintl / /' -e 's/^ //' -e 's/ $//'`
  9393. fi
  9394. if test "$gt_use_preinstalled_gnugettext" = "yes" \
  9395. || test "$nls_cv_use_gnu_gettext" = "yes"; then
  9396. CATOBJEXT=.gmo
  9397. fi
  9398. if test "$gt_use_preinstalled_gnugettext" = "yes" \
  9399. || test "$nls_cv_use_gnu_gettext" = "yes"; then
  9400. cat >>confdefs.h <<\_ACEOF
  9401. #define ENABLE_NLS 1
  9402. _ACEOF
  9403. else
  9404. USE_NLS=no
  9405. fi
  9406. fi
  9407. { echo "$as_me:$LINENO: checking whether to use NLS" >&5
  9408. echo $ECHO_N "checking whether to use NLS... $ECHO_C" >&6; }
  9409. { echo "$as_me:$LINENO: result: $USE_NLS" >&5
  9410. echo "${ECHO_T}$USE_NLS" >&6; }
  9411. if test "$USE_NLS" = "yes"; then
  9412. { echo "$as_me:$LINENO: checking where the gettext function comes from" >&5
  9413. echo $ECHO_N "checking where the gettext function comes from... $ECHO_C" >&6; }
  9414. if test "$gt_use_preinstalled_gnugettext" = "yes"; then
  9415. if test "$gt_cv_func_gnugettext1_libintl" = "yes"; then
  9416. gt_source="external libintl"
  9417. else
  9418. gt_source="libc"
  9419. fi
  9420. else
  9421. gt_source="included intl directory"
  9422. fi
  9423. { echo "$as_me:$LINENO: result: $gt_source" >&5
  9424. echo "${ECHO_T}$gt_source" >&6; }
  9425. fi
  9426. if test "$USE_NLS" = "yes"; then
  9427. if test "$gt_use_preinstalled_gnugettext" = "yes"; then
  9428. if test "$gt_cv_func_gnugettext1_libintl" = "yes"; then
  9429. { echo "$as_me:$LINENO: checking how to link with libintl" >&5
  9430. echo $ECHO_N "checking how to link with libintl... $ECHO_C" >&6; }
  9431. { echo "$as_me:$LINENO: result: $LIBINTL" >&5
  9432. echo "${ECHO_T}$LIBINTL" >&6; }
  9433. for element in $INCINTL; do
  9434. haveit=
  9435. for x in $CPPFLAGS; do
  9436. acl_save_prefix="$prefix"
  9437. prefix="$acl_final_prefix"
  9438. acl_save_exec_prefix="$exec_prefix"
  9439. exec_prefix="$acl_final_exec_prefix"
  9440. eval x=\"$x\"
  9441. exec_prefix="$acl_save_exec_prefix"
  9442. prefix="$acl_save_prefix"
  9443. if test "X$x" = "X$element"; then
  9444. haveit=yes
  9445. break
  9446. fi
  9447. done
  9448. if test -z "$haveit"; then
  9449. CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
  9450. fi
  9451. done
  9452. fi
  9453. cat >>confdefs.h <<\_ACEOF
  9454. #define HAVE_GETTEXT 1
  9455. _ACEOF
  9456. cat >>confdefs.h <<\_ACEOF
  9457. #define HAVE_DCGETTEXT 1
  9458. _ACEOF
  9459. fi
  9460. POSUB=po
  9461. fi
  9462. if test "$PACKAGE" = gettext-runtime || test "$PACKAGE" = gettext-tools; then
  9463. BUILD_INCLUDED_LIBINTL=yes
  9464. fi
  9465. nls_cv_header_intl=
  9466. nls_cv_header_libgt=
  9467. DATADIRNAME=share
  9468. INSTOBJEXT=.mo
  9469. GENCAT=gencat
  9470. if test "$USE_INCLUDED_LIBINTL" = yes; then
  9471. INTLOBJS="\$(GETTOBJS)"
  9472. fi
  9473. INTL_LIBTOOL_SUFFIX_PREFIX=
  9474. INTLLIBS="$LIBINTL"
  9475. { echo "$as_me:$LINENO: checking for error_at_line" >&5
  9476. echo $ECHO_N "checking for error_at_line... $ECHO_C" >&6; }
  9477. if test "${ac_cv_lib_error_at_line+set}" = set; then
  9478. echo $ECHO_N "(cached) $ECHO_C" >&6
  9479. else
  9480. cat >conftest.$ac_ext <<_ACEOF
  9481. /* confdefs.h. */
  9482. _ACEOF
  9483. cat confdefs.h >>conftest.$ac_ext
  9484. cat >>conftest.$ac_ext <<_ACEOF
  9485. /* end confdefs.h. */
  9486. #include <error.h>
  9487. int
  9488. main ()
  9489. {
  9490. error_at_line (0, 0, "", 0, "an error occurred");
  9491. ;
  9492. return 0;
  9493. }
  9494. _ACEOF
  9495. rm -f conftest.$ac_objext conftest$ac_exeext
  9496. if { (ac_try="$ac_link"
  9497. case "(($ac_try" in
  9498. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  9499. *) ac_try_echo=$ac_try;;
  9500. esac
  9501. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  9502. (eval "$ac_link") 2>conftest.er1
  9503. ac_status=$?
  9504. grep -v '^ *+' conftest.er1 >conftest.err
  9505. rm -f conftest.er1
  9506. cat conftest.err >&5
  9507. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9508. (exit $ac_status); } && {
  9509. test -z "$ac_c_werror_flag" ||
  9510. test ! -s conftest.err
  9511. } && test -s conftest$ac_exeext &&
  9512. $as_test_x conftest$ac_exeext; then
  9513. ac_cv_lib_error_at_line=yes
  9514. else
  9515. echo "$as_me: failed program was:" >&5
  9516. sed 's/^/| /' conftest.$ac_ext >&5
  9517. ac_cv_lib_error_at_line=no
  9518. fi
  9519. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  9520. conftest$ac_exeext conftest.$ac_ext
  9521. fi
  9522. { echo "$as_me:$LINENO: result: $ac_cv_lib_error_at_line" >&5
  9523. echo "${ECHO_T}$ac_cv_lib_error_at_line" >&6; }
  9524. if test $ac_cv_lib_error_at_line = no; then
  9525. case " $LIBOBJS " in
  9526. *" error.$ac_objext "* ) ;;
  9527. *) LIBOBJS="$LIBOBJS error.$ac_objext"
  9528. ;;
  9529. esac
  9530. fi
  9531. for ac_header in stdlib.h
  9532. do
  9533. as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
  9534. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  9535. { echo "$as_me:$LINENO: checking for $ac_header" >&5
  9536. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
  9537. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  9538. echo $ECHO_N "(cached) $ECHO_C" >&6
  9539. fi
  9540. ac_res=`eval echo '${'$as_ac_Header'}'`
  9541. { echo "$as_me:$LINENO: result: $ac_res" >&5
  9542. echo "${ECHO_T}$ac_res" >&6; }
  9543. else
  9544. # Is the header compilable?
  9545. { echo "$as_me:$LINENO: checking $ac_header usability" >&5
  9546. echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
  9547. cat >conftest.$ac_ext <<_ACEOF
  9548. /* confdefs.h. */
  9549. _ACEOF
  9550. cat confdefs.h >>conftest.$ac_ext
  9551. cat >>conftest.$ac_ext <<_ACEOF
  9552. /* end confdefs.h. */
  9553. $ac_includes_default
  9554. #include <$ac_header>
  9555. _ACEOF
  9556. rm -f conftest.$ac_objext
  9557. if { (ac_try="$ac_compile"
  9558. case "(($ac_try" in
  9559. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  9560. *) ac_try_echo=$ac_try;;
  9561. esac
  9562. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  9563. (eval "$ac_compile") 2>conftest.er1
  9564. ac_status=$?
  9565. grep -v '^ *+' conftest.er1 >conftest.err
  9566. rm -f conftest.er1
  9567. cat conftest.err >&5
  9568. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9569. (exit $ac_status); } && {
  9570. test -z "$ac_c_werror_flag" ||
  9571. test ! -s conftest.err
  9572. } && test -s conftest.$ac_objext; then
  9573. ac_header_compiler=yes
  9574. else
  9575. echo "$as_me: failed program was:" >&5
  9576. sed 's/^/| /' conftest.$ac_ext >&5
  9577. ac_header_compiler=no
  9578. fi
  9579. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  9580. { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  9581. echo "${ECHO_T}$ac_header_compiler" >&6; }
  9582. # Is the header present?
  9583. { echo "$as_me:$LINENO: checking $ac_header presence" >&5
  9584. echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
  9585. cat >conftest.$ac_ext <<_ACEOF
  9586. /* confdefs.h. */
  9587. _ACEOF
  9588. cat confdefs.h >>conftest.$ac_ext
  9589. cat >>conftest.$ac_ext <<_ACEOF
  9590. /* end confdefs.h. */
  9591. #include <$ac_header>
  9592. _ACEOF
  9593. if { (ac_try="$ac_cpp conftest.$ac_ext"
  9594. case "(($ac_try" in
  9595. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  9596. *) ac_try_echo=$ac_try;;
  9597. esac
  9598. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  9599. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  9600. ac_status=$?
  9601. grep -v '^ *+' conftest.er1 >conftest.err
  9602. rm -f conftest.er1
  9603. cat conftest.err >&5
  9604. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9605. (exit $ac_status); } >/dev/null && {
  9606. test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
  9607. test ! -s conftest.err
  9608. }; then
  9609. ac_header_preproc=yes
  9610. else
  9611. echo "$as_me: failed program was:" >&5
  9612. sed 's/^/| /' conftest.$ac_ext >&5
  9613. ac_header_preproc=no
  9614. fi
  9615. rm -f conftest.err conftest.$ac_ext
  9616. { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  9617. echo "${ECHO_T}$ac_header_preproc" >&6; }
  9618. # So? What about this header?
  9619. case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
  9620. yes:no: )
  9621. { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
  9622. echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
  9623. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
  9624. echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
  9625. ac_header_preproc=yes
  9626. ;;
  9627. no:yes:* )
  9628. { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
  9629. echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
  9630. { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
  9631. echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
  9632. { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
  9633. echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
  9634. { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
  9635. echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
  9636. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
  9637. echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
  9638. { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
  9639. echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
  9640. ( cat <<\_ASBOX
  9641. ## ----------------------------------------------- ##
  9642. ## Report this to t-tujikawa@users.sourceforge.net ##
  9643. ## ----------------------------------------------- ##
  9644. _ASBOX
  9645. ) | sed "s/^/$as_me: WARNING: /" >&2
  9646. ;;
  9647. esac
  9648. { echo "$as_me:$LINENO: checking for $ac_header" >&5
  9649. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
  9650. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  9651. echo $ECHO_N "(cached) $ECHO_C" >&6
  9652. else
  9653. eval "$as_ac_Header=\$ac_header_preproc"
  9654. fi
  9655. ac_res=`eval echo '${'$as_ac_Header'}'`
  9656. { echo "$as_me:$LINENO: result: $ac_res" >&5
  9657. echo "${ECHO_T}$ac_res" >&6; }
  9658. fi
  9659. if test `eval echo '${'$as_ac_Header'}'` = yes; then
  9660. cat >>confdefs.h <<_ACEOF
  9661. #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
  9662. _ACEOF
  9663. fi
  9664. done
  9665. { echo "$as_me:$LINENO: checking for GNU libc compatible malloc" >&5
  9666. echo $ECHO_N "checking for GNU libc compatible malloc... $ECHO_C" >&6; }
  9667. if test "${ac_cv_func_malloc_0_nonnull+set}" = set; then
  9668. echo $ECHO_N "(cached) $ECHO_C" >&6
  9669. else
  9670. if test "$cross_compiling" = yes; then
  9671. ac_cv_func_malloc_0_nonnull=no
  9672. else
  9673. cat >conftest.$ac_ext <<_ACEOF
  9674. /* confdefs.h. */
  9675. _ACEOF
  9676. cat confdefs.h >>conftest.$ac_ext
  9677. cat >>conftest.$ac_ext <<_ACEOF
  9678. /* end confdefs.h. */
  9679. #if defined STDC_HEADERS || defined HAVE_STDLIB_H
  9680. # include <stdlib.h>
  9681. #else
  9682. char *malloc ();
  9683. #endif
  9684. int
  9685. main ()
  9686. {
  9687. return ! malloc (0);
  9688. ;
  9689. return 0;
  9690. }
  9691. _ACEOF
  9692. rm -f conftest$ac_exeext
  9693. if { (ac_try="$ac_link"
  9694. case "(($ac_try" in
  9695. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  9696. *) ac_try_echo=$ac_try;;
  9697. esac
  9698. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  9699. (eval "$ac_link") 2>&5
  9700. ac_status=$?
  9701. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9702. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  9703. { (case "(($ac_try" in
  9704. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  9705. *) ac_try_echo=$ac_try;;
  9706. esac
  9707. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  9708. (eval "$ac_try") 2>&5
  9709. ac_status=$?
  9710. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9711. (exit $ac_status); }; }; then
  9712. ac_cv_func_malloc_0_nonnull=yes
  9713. else
  9714. echo "$as_me: program exited with status $ac_status" >&5
  9715. echo "$as_me: failed program was:" >&5
  9716. sed 's/^/| /' conftest.$ac_ext >&5
  9717. ( exit $ac_status )
  9718. ac_cv_func_malloc_0_nonnull=no
  9719. fi
  9720. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  9721. fi
  9722. fi
  9723. { echo "$as_me:$LINENO: result: $ac_cv_func_malloc_0_nonnull" >&5
  9724. echo "${ECHO_T}$ac_cv_func_malloc_0_nonnull" >&6; }
  9725. if test $ac_cv_func_malloc_0_nonnull = yes; then
  9726. cat >>confdefs.h <<\_ACEOF
  9727. #define HAVE_MALLOC 1
  9728. _ACEOF
  9729. else
  9730. cat >>confdefs.h <<\_ACEOF
  9731. #define HAVE_MALLOC 0
  9732. _ACEOF
  9733. case " $LIBOBJS " in
  9734. *" malloc.$ac_objext "* ) ;;
  9735. *) LIBOBJS="$LIBOBJS malloc.$ac_objext"
  9736. ;;
  9737. esac
  9738. cat >>confdefs.h <<\_ACEOF
  9739. #define malloc rpl_malloc
  9740. _ACEOF
  9741. fi
  9742. { echo "$as_me:$LINENO: checking for working memcmp" >&5
  9743. echo $ECHO_N "checking for working memcmp... $ECHO_C" >&6; }
  9744. if test "${ac_cv_func_memcmp_working+set}" = set; then
  9745. echo $ECHO_N "(cached) $ECHO_C" >&6
  9746. else
  9747. if test "$cross_compiling" = yes; then
  9748. ac_cv_func_memcmp_working=no
  9749. else
  9750. cat >conftest.$ac_ext <<_ACEOF
  9751. /* confdefs.h. */
  9752. _ACEOF
  9753. cat confdefs.h >>conftest.$ac_ext
  9754. cat >>conftest.$ac_ext <<_ACEOF
  9755. /* end confdefs.h. */
  9756. $ac_includes_default
  9757. int
  9758. main ()
  9759. {
  9760. /* Some versions of memcmp are not 8-bit clean. */
  9761. char c0 = '\100', c1 = '\200', c2 = '\201';
  9762. if (memcmp(&c0, &c2, 1) >= 0 || memcmp(&c1, &c2, 1) >= 0)
  9763. return 1;
  9764. /* The Next x86 OpenStep bug shows up only when comparing 16 bytes
  9765. or more and with at least one buffer not starting on a 4-byte boundary.
  9766. William Lewis provided this test program. */
  9767. {
  9768. char foo[21];
  9769. char bar[21];
  9770. int i;
  9771. for (i = 0; i < 4; i++)
  9772. {
  9773. char *a = foo + i;
  9774. char *b = bar + i;
  9775. strcpy (a, "--------01111111");
  9776. strcpy (b, "--------10000000");
  9777. if (memcmp (a, b, 16) >= 0)
  9778. return 1;
  9779. }
  9780. return 0;
  9781. }
  9782. ;
  9783. return 0;
  9784. }
  9785. _ACEOF
  9786. rm -f conftest$ac_exeext
  9787. if { (ac_try="$ac_link"
  9788. case "(($ac_try" in
  9789. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  9790. *) ac_try_echo=$ac_try;;
  9791. esac
  9792. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  9793. (eval "$ac_link") 2>&5
  9794. ac_status=$?
  9795. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9796. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  9797. { (case "(($ac_try" in
  9798. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  9799. *) ac_try_echo=$ac_try;;
  9800. esac
  9801. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  9802. (eval "$ac_try") 2>&5
  9803. ac_status=$?
  9804. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9805. (exit $ac_status); }; }; then
  9806. ac_cv_func_memcmp_working=yes
  9807. else
  9808. echo "$as_me: program exited with status $ac_status" >&5
  9809. echo "$as_me: failed program was:" >&5
  9810. sed 's/^/| /' conftest.$ac_ext >&5
  9811. ( exit $ac_status )
  9812. ac_cv_func_memcmp_working=no
  9813. fi
  9814. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  9815. fi
  9816. fi
  9817. { echo "$as_me:$LINENO: result: $ac_cv_func_memcmp_working" >&5
  9818. echo "${ECHO_T}$ac_cv_func_memcmp_working" >&6; }
  9819. test $ac_cv_func_memcmp_working = no && case " $LIBOBJS " in
  9820. *" memcmp.$ac_objext "* ) ;;
  9821. *) LIBOBJS="$LIBOBJS memcmp.$ac_objext"
  9822. ;;
  9823. esac
  9824. for ac_header in stdlib.h unistd.h
  9825. do
  9826. as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
  9827. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  9828. { echo "$as_me:$LINENO: checking for $ac_header" >&5
  9829. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
  9830. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  9831. echo $ECHO_N "(cached) $ECHO_C" >&6
  9832. fi
  9833. ac_res=`eval echo '${'$as_ac_Header'}'`
  9834. { echo "$as_me:$LINENO: result: $ac_res" >&5
  9835. echo "${ECHO_T}$ac_res" >&6; }
  9836. else
  9837. # Is the header compilable?
  9838. { echo "$as_me:$LINENO: checking $ac_header usability" >&5
  9839. echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
  9840. cat >conftest.$ac_ext <<_ACEOF
  9841. /* confdefs.h. */
  9842. _ACEOF
  9843. cat confdefs.h >>conftest.$ac_ext
  9844. cat >>conftest.$ac_ext <<_ACEOF
  9845. /* end confdefs.h. */
  9846. $ac_includes_default
  9847. #include <$ac_header>
  9848. _ACEOF
  9849. rm -f conftest.$ac_objext
  9850. if { (ac_try="$ac_compile"
  9851. case "(($ac_try" in
  9852. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  9853. *) ac_try_echo=$ac_try;;
  9854. esac
  9855. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  9856. (eval "$ac_compile") 2>conftest.er1
  9857. ac_status=$?
  9858. grep -v '^ *+' conftest.er1 >conftest.err
  9859. rm -f conftest.er1
  9860. cat conftest.err >&5
  9861. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9862. (exit $ac_status); } && {
  9863. test -z "$ac_c_werror_flag" ||
  9864. test ! -s conftest.err
  9865. } && test -s conftest.$ac_objext; then
  9866. ac_header_compiler=yes
  9867. else
  9868. echo "$as_me: failed program was:" >&5
  9869. sed 's/^/| /' conftest.$ac_ext >&5
  9870. ac_header_compiler=no
  9871. fi
  9872. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  9873. { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  9874. echo "${ECHO_T}$ac_header_compiler" >&6; }
  9875. # Is the header present?
  9876. { echo "$as_me:$LINENO: checking $ac_header presence" >&5
  9877. echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
  9878. cat >conftest.$ac_ext <<_ACEOF
  9879. /* confdefs.h. */
  9880. _ACEOF
  9881. cat confdefs.h >>conftest.$ac_ext
  9882. cat >>conftest.$ac_ext <<_ACEOF
  9883. /* end confdefs.h. */
  9884. #include <$ac_header>
  9885. _ACEOF
  9886. if { (ac_try="$ac_cpp conftest.$ac_ext"
  9887. case "(($ac_try" in
  9888. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  9889. *) ac_try_echo=$ac_try;;
  9890. esac
  9891. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  9892. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  9893. ac_status=$?
  9894. grep -v '^ *+' conftest.er1 >conftest.err
  9895. rm -f conftest.er1
  9896. cat conftest.err >&5
  9897. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9898. (exit $ac_status); } >/dev/null && {
  9899. test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
  9900. test ! -s conftest.err
  9901. }; then
  9902. ac_header_preproc=yes
  9903. else
  9904. echo "$as_me: failed program was:" >&5
  9905. sed 's/^/| /' conftest.$ac_ext >&5
  9906. ac_header_preproc=no
  9907. fi
  9908. rm -f conftest.err conftest.$ac_ext
  9909. { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  9910. echo "${ECHO_T}$ac_header_preproc" >&6; }
  9911. # So? What about this header?
  9912. case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
  9913. yes:no: )
  9914. { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
  9915. echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
  9916. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
  9917. echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
  9918. ac_header_preproc=yes
  9919. ;;
  9920. no:yes:* )
  9921. { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
  9922. echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
  9923. { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
  9924. echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
  9925. { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
  9926. echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
  9927. { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
  9928. echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
  9929. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
  9930. echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
  9931. { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
  9932. echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
  9933. ( cat <<\_ASBOX
  9934. ## ----------------------------------------------- ##
  9935. ## Report this to t-tujikawa@users.sourceforge.net ##
  9936. ## ----------------------------------------------- ##
  9937. _ASBOX
  9938. ) | sed "s/^/$as_me: WARNING: /" >&2
  9939. ;;
  9940. esac
  9941. { echo "$as_me:$LINENO: checking for $ac_header" >&5
  9942. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
  9943. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  9944. echo $ECHO_N "(cached) $ECHO_C" >&6
  9945. else
  9946. eval "$as_ac_Header=\$ac_header_preproc"
  9947. fi
  9948. ac_res=`eval echo '${'$as_ac_Header'}'`
  9949. { echo "$as_me:$LINENO: result: $ac_res" >&5
  9950. echo "${ECHO_T}$ac_res" >&6; }
  9951. fi
  9952. if test `eval echo '${'$as_ac_Header'}'` = yes; then
  9953. cat >>confdefs.h <<_ACEOF
  9954. #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
  9955. _ACEOF
  9956. fi
  9957. done
  9958. for ac_func in getpagesize
  9959. do
  9960. as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
  9961. { echo "$as_me:$LINENO: checking for $ac_func" >&5
  9962. echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
  9963. if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
  9964. echo $ECHO_N "(cached) $ECHO_C" >&6
  9965. else
  9966. cat >conftest.$ac_ext <<_ACEOF
  9967. /* confdefs.h. */
  9968. _ACEOF
  9969. cat confdefs.h >>conftest.$ac_ext
  9970. cat >>conftest.$ac_ext <<_ACEOF
  9971. /* end confdefs.h. */
  9972. /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
  9973. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  9974. #define $ac_func innocuous_$ac_func
  9975. /* System header to define __stub macros and hopefully few prototypes,
  9976. which can conflict with char $ac_func (); below.
  9977. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  9978. <limits.h> exists even on freestanding compilers. */
  9979. #ifdef __STDC__
  9980. # include <limits.h>
  9981. #else
  9982. # include <assert.h>
  9983. #endif
  9984. #undef $ac_func
  9985. /* Override any GCC internal prototype to avoid an error.
  9986. Use char because int might match the return type of a GCC
  9987. builtin and then its argument prototype would still apply. */
  9988. #ifdef __cplusplus
  9989. extern "C"
  9990. #endif
  9991. char $ac_func ();
  9992. /* The GNU C library defines this for functions which it implements
  9993. to always fail with ENOSYS. Some functions are actually named
  9994. something starting with __ and the normal name is an alias. */
  9995. #if defined __stub_$ac_func || defined __stub___$ac_func
  9996. choke me
  9997. #endif
  9998. int
  9999. main ()
  10000. {
  10001. return $ac_func ();
  10002. ;
  10003. return 0;
  10004. }
  10005. _ACEOF
  10006. rm -f conftest.$ac_objext conftest$ac_exeext
  10007. if { (ac_try="$ac_link"
  10008. case "(($ac_try" in
  10009. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  10010. *) ac_try_echo=$ac_try;;
  10011. esac
  10012. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  10013. (eval "$ac_link") 2>conftest.er1
  10014. ac_status=$?
  10015. grep -v '^ *+' conftest.er1 >conftest.err
  10016. rm -f conftest.er1
  10017. cat conftest.err >&5
  10018. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10019. (exit $ac_status); } && {
  10020. test -z "$ac_c_werror_flag" ||
  10021. test ! -s conftest.err
  10022. } && test -s conftest$ac_exeext &&
  10023. $as_test_x conftest$ac_exeext; then
  10024. eval "$as_ac_var=yes"
  10025. else
  10026. echo "$as_me: failed program was:" >&5
  10027. sed 's/^/| /' conftest.$ac_ext >&5
  10028. eval "$as_ac_var=no"
  10029. fi
  10030. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  10031. conftest$ac_exeext conftest.$ac_ext
  10032. fi
  10033. ac_res=`eval echo '${'$as_ac_var'}'`
  10034. { echo "$as_me:$LINENO: result: $ac_res" >&5
  10035. echo "${ECHO_T}$ac_res" >&6; }
  10036. if test `eval echo '${'$as_ac_var'}'` = yes; then
  10037. cat >>confdefs.h <<_ACEOF
  10038. #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
  10039. _ACEOF
  10040. fi
  10041. done
  10042. { echo "$as_me:$LINENO: checking for working mmap" >&5
  10043. echo $ECHO_N "checking for working mmap... $ECHO_C" >&6; }
  10044. if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
  10045. echo $ECHO_N "(cached) $ECHO_C" >&6
  10046. else
  10047. if test "$cross_compiling" = yes; then
  10048. ac_cv_func_mmap_fixed_mapped=no
  10049. else
  10050. cat >conftest.$ac_ext <<_ACEOF
  10051. /* confdefs.h. */
  10052. _ACEOF
  10053. cat confdefs.h >>conftest.$ac_ext
  10054. cat >>conftest.$ac_ext <<_ACEOF
  10055. /* end confdefs.h. */
  10056. $ac_includes_default
  10057. /* malloc might have been renamed as rpl_malloc. */
  10058. #undef malloc
  10059. /* Thanks to Mike Haertel and Jim Avera for this test.
  10060. Here is a matrix of mmap possibilities:
  10061. mmap private not fixed
  10062. mmap private fixed at somewhere currently unmapped
  10063. mmap private fixed at somewhere already mapped
  10064. mmap shared not fixed
  10065. mmap shared fixed at somewhere currently unmapped
  10066. mmap shared fixed at somewhere already mapped
  10067. For private mappings, we should verify that changes cannot be read()
  10068. back from the file, nor mmap's back from the file at a different
  10069. address. (There have been systems where private was not correctly
  10070. implemented like the infamous i386 svr4.0, and systems where the
  10071. VM page cache was not coherent with the file system buffer cache
  10072. like early versions of FreeBSD and possibly contemporary NetBSD.)
  10073. For shared mappings, we should conversely verify that changes get
  10074. propagated back to all the places they're supposed to be.
  10075. Grep wants private fixed already mapped.
  10076. The main things grep needs to know about mmap are:
  10077. * does it exist and is it safe to write into the mmap'd area
  10078. * how to use it (BSD variants) */
  10079. #include <fcntl.h>
  10080. #include <sys/mman.h>
  10081. #if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
  10082. char *malloc ();
  10083. #endif
  10084. /* This mess was copied from the GNU getpagesize.h. */
  10085. #ifndef HAVE_GETPAGESIZE
  10086. /* Assume that all systems that can run configure have sys/param.h. */
  10087. # ifndef HAVE_SYS_PARAM_H
  10088. # define HAVE_SYS_PARAM_H 1
  10089. # endif
  10090. # ifdef _SC_PAGESIZE
  10091. # define getpagesize() sysconf(_SC_PAGESIZE)
  10092. # else /* no _SC_PAGESIZE */
  10093. # ifdef HAVE_SYS_PARAM_H
  10094. # include <sys/param.h>
  10095. # ifdef EXEC_PAGESIZE
  10096. # define getpagesize() EXEC_PAGESIZE
  10097. # else /* no EXEC_PAGESIZE */
  10098. # ifdef NBPG
  10099. # define getpagesize() NBPG * CLSIZE
  10100. # ifndef CLSIZE
  10101. # define CLSIZE 1
  10102. # endif /* no CLSIZE */
  10103. # else /* no NBPG */
  10104. # ifdef NBPC
  10105. # define getpagesize() NBPC
  10106. # else /* no NBPC */
  10107. # ifdef PAGESIZE
  10108. # define getpagesize() PAGESIZE
  10109. # endif /* PAGESIZE */
  10110. # endif /* no NBPC */
  10111. # endif /* no NBPG */
  10112. # endif /* no EXEC_PAGESIZE */
  10113. # else /* no HAVE_SYS_PARAM_H */
  10114. # define getpagesize() 8192 /* punt totally */
  10115. # endif /* no HAVE_SYS_PARAM_H */
  10116. # endif /* no _SC_PAGESIZE */
  10117. #endif /* no HAVE_GETPAGESIZE */
  10118. int
  10119. main ()
  10120. {
  10121. char *data, *data2, *data3;
  10122. int i, pagesize;
  10123. int fd;
  10124. pagesize = getpagesize ();
  10125. /* First, make a file with some known garbage in it. */
  10126. data = (char *) malloc (pagesize);
  10127. if (!data)
  10128. return 1;
  10129. for (i = 0; i < pagesize; ++i)
  10130. *(data + i) = rand ();
  10131. umask (0);
  10132. fd = creat ("conftest.mmap", 0600);
  10133. if (fd < 0)
  10134. return 1;
  10135. if (write (fd, data, pagesize) != pagesize)
  10136. return 1;
  10137. close (fd);
  10138. /* Next, try to mmap the file at a fixed address which already has
  10139. something else allocated at it. If we can, also make sure that
  10140. we see the same garbage. */
  10141. fd = open ("conftest.mmap", O_RDWR);
  10142. if (fd < 0)
  10143. return 1;
  10144. data2 = (char *) malloc (2 * pagesize);
  10145. if (!data2)
  10146. return 1;
  10147. data2 += (pagesize - ((long int) data2 & (pagesize - 1))) & (pagesize - 1);
  10148. if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
  10149. MAP_PRIVATE | MAP_FIXED, fd, 0L))
  10150. return 1;
  10151. for (i = 0; i < pagesize; ++i)
  10152. if (*(data + i) != *(data2 + i))
  10153. return 1;
  10154. /* Finally, make sure that changes to the mapped area do not
  10155. percolate back to the file as seen by read(). (This is a bug on
  10156. some variants of i386 svr4.0.) */
  10157. for (i = 0; i < pagesize; ++i)
  10158. *(data2 + i) = *(data2 + i) + 1;
  10159. data3 = (char *) malloc (pagesize);
  10160. if (!data3)
  10161. return 1;
  10162. if (read (fd, data3, pagesize) != pagesize)
  10163. return 1;
  10164. for (i = 0; i < pagesize; ++i)
  10165. if (*(data + i) != *(data3 + i))
  10166. return 1;
  10167. close (fd);
  10168. return 0;
  10169. }
  10170. _ACEOF
  10171. rm -f conftest$ac_exeext
  10172. if { (ac_try="$ac_link"
  10173. case "(($ac_try" in
  10174. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  10175. *) ac_try_echo=$ac_try;;
  10176. esac
  10177. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  10178. (eval "$ac_link") 2>&5
  10179. ac_status=$?
  10180. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10181. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  10182. { (case "(($ac_try" in
  10183. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  10184. *) ac_try_echo=$ac_try;;
  10185. esac
  10186. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  10187. (eval "$ac_try") 2>&5
  10188. ac_status=$?
  10189. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10190. (exit $ac_status); }; }; then
  10191. ac_cv_func_mmap_fixed_mapped=yes
  10192. else
  10193. echo "$as_me: program exited with status $ac_status" >&5
  10194. echo "$as_me: failed program was:" >&5
  10195. sed 's/^/| /' conftest.$ac_ext >&5
  10196. ( exit $ac_status )
  10197. ac_cv_func_mmap_fixed_mapped=no
  10198. fi
  10199. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  10200. fi
  10201. fi
  10202. { echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
  10203. echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6; }
  10204. if test $ac_cv_func_mmap_fixed_mapped = yes; then
  10205. cat >>confdefs.h <<\_ACEOF
  10206. #define HAVE_MMAP 1
  10207. _ACEOF
  10208. fi
  10209. rm -f conftest.mmap
  10210. for ac_header in stdlib.h
  10211. do
  10212. as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
  10213. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  10214. { echo "$as_me:$LINENO: checking for $ac_header" >&5
  10215. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
  10216. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  10217. echo $ECHO_N "(cached) $ECHO_C" >&6
  10218. fi
  10219. ac_res=`eval echo '${'$as_ac_Header'}'`
  10220. { echo "$as_me:$LINENO: result: $ac_res" >&5
  10221. echo "${ECHO_T}$ac_res" >&6; }
  10222. else
  10223. # Is the header compilable?
  10224. { echo "$as_me:$LINENO: checking $ac_header usability" >&5
  10225. echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
  10226. cat >conftest.$ac_ext <<_ACEOF
  10227. /* confdefs.h. */
  10228. _ACEOF
  10229. cat confdefs.h >>conftest.$ac_ext
  10230. cat >>conftest.$ac_ext <<_ACEOF
  10231. /* end confdefs.h. */
  10232. $ac_includes_default
  10233. #include <$ac_header>
  10234. _ACEOF
  10235. rm -f conftest.$ac_objext
  10236. if { (ac_try="$ac_compile"
  10237. case "(($ac_try" in
  10238. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  10239. *) ac_try_echo=$ac_try;;
  10240. esac
  10241. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  10242. (eval "$ac_compile") 2>conftest.er1
  10243. ac_status=$?
  10244. grep -v '^ *+' conftest.er1 >conftest.err
  10245. rm -f conftest.er1
  10246. cat conftest.err >&5
  10247. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10248. (exit $ac_status); } && {
  10249. test -z "$ac_c_werror_flag" ||
  10250. test ! -s conftest.err
  10251. } && test -s conftest.$ac_objext; then
  10252. ac_header_compiler=yes
  10253. else
  10254. echo "$as_me: failed program was:" >&5
  10255. sed 's/^/| /' conftest.$ac_ext >&5
  10256. ac_header_compiler=no
  10257. fi
  10258. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  10259. { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  10260. echo "${ECHO_T}$ac_header_compiler" >&6; }
  10261. # Is the header present?
  10262. { echo "$as_me:$LINENO: checking $ac_header presence" >&5
  10263. echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
  10264. cat >conftest.$ac_ext <<_ACEOF
  10265. /* confdefs.h. */
  10266. _ACEOF
  10267. cat confdefs.h >>conftest.$ac_ext
  10268. cat >>conftest.$ac_ext <<_ACEOF
  10269. /* end confdefs.h. */
  10270. #include <$ac_header>
  10271. _ACEOF
  10272. if { (ac_try="$ac_cpp conftest.$ac_ext"
  10273. case "(($ac_try" in
  10274. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  10275. *) ac_try_echo=$ac_try;;
  10276. esac
  10277. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  10278. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  10279. ac_status=$?
  10280. grep -v '^ *+' conftest.er1 >conftest.err
  10281. rm -f conftest.er1
  10282. cat conftest.err >&5
  10283. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10284. (exit $ac_status); } >/dev/null && {
  10285. test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
  10286. test ! -s conftest.err
  10287. }; then
  10288. ac_header_preproc=yes
  10289. else
  10290. echo "$as_me: failed program was:" >&5
  10291. sed 's/^/| /' conftest.$ac_ext >&5
  10292. ac_header_preproc=no
  10293. fi
  10294. rm -f conftest.err conftest.$ac_ext
  10295. { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  10296. echo "${ECHO_T}$ac_header_preproc" >&6; }
  10297. # So? What about this header?
  10298. case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
  10299. yes:no: )
  10300. { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
  10301. echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
  10302. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
  10303. echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
  10304. ac_header_preproc=yes
  10305. ;;
  10306. no:yes:* )
  10307. { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
  10308. echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
  10309. { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
  10310. echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
  10311. { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
  10312. echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
  10313. { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
  10314. echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
  10315. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
  10316. echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
  10317. { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
  10318. echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
  10319. ( cat <<\_ASBOX
  10320. ## ----------------------------------------------- ##
  10321. ## Report this to t-tujikawa@users.sourceforge.net ##
  10322. ## ----------------------------------------------- ##
  10323. _ASBOX
  10324. ) | sed "s/^/$as_me: WARNING: /" >&2
  10325. ;;
  10326. esac
  10327. { echo "$as_me:$LINENO: checking for $ac_header" >&5
  10328. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
  10329. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  10330. echo $ECHO_N "(cached) $ECHO_C" >&6
  10331. else
  10332. eval "$as_ac_Header=\$ac_header_preproc"
  10333. fi
  10334. ac_res=`eval echo '${'$as_ac_Header'}'`
  10335. { echo "$as_me:$LINENO: result: $ac_res" >&5
  10336. echo "${ECHO_T}$ac_res" >&6; }
  10337. fi
  10338. if test `eval echo '${'$as_ac_Header'}'` = yes; then
  10339. cat >>confdefs.h <<_ACEOF
  10340. #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
  10341. _ACEOF
  10342. fi
  10343. done
  10344. { echo "$as_me:$LINENO: checking for GNU libc compatible realloc" >&5
  10345. echo $ECHO_N "checking for GNU libc compatible realloc... $ECHO_C" >&6; }
  10346. if test "${ac_cv_func_realloc_0_nonnull+set}" = set; then
  10347. echo $ECHO_N "(cached) $ECHO_C" >&6
  10348. else
  10349. if test "$cross_compiling" = yes; then
  10350. ac_cv_func_realloc_0_nonnull=no
  10351. else
  10352. cat >conftest.$ac_ext <<_ACEOF
  10353. /* confdefs.h. */
  10354. _ACEOF
  10355. cat confdefs.h >>conftest.$ac_ext
  10356. cat >>conftest.$ac_ext <<_ACEOF
  10357. /* end confdefs.h. */
  10358. #if defined STDC_HEADERS || defined HAVE_STDLIB_H
  10359. # include <stdlib.h>
  10360. #else
  10361. char *realloc ();
  10362. #endif
  10363. int
  10364. main ()
  10365. {
  10366. return ! realloc (0, 0);
  10367. ;
  10368. return 0;
  10369. }
  10370. _ACEOF
  10371. rm -f conftest$ac_exeext
  10372. if { (ac_try="$ac_link"
  10373. case "(($ac_try" in
  10374. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  10375. *) ac_try_echo=$ac_try;;
  10376. esac
  10377. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  10378. (eval "$ac_link") 2>&5
  10379. ac_status=$?
  10380. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10381. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  10382. { (case "(($ac_try" in
  10383. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  10384. *) ac_try_echo=$ac_try;;
  10385. esac
  10386. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  10387. (eval "$ac_try") 2>&5
  10388. ac_status=$?
  10389. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10390. (exit $ac_status); }; }; then
  10391. ac_cv_func_realloc_0_nonnull=yes
  10392. else
  10393. echo "$as_me: program exited with status $ac_status" >&5
  10394. echo "$as_me: failed program was:" >&5
  10395. sed 's/^/| /' conftest.$ac_ext >&5
  10396. ( exit $ac_status )
  10397. ac_cv_func_realloc_0_nonnull=no
  10398. fi
  10399. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  10400. fi
  10401. fi
  10402. { echo "$as_me:$LINENO: result: $ac_cv_func_realloc_0_nonnull" >&5
  10403. echo "${ECHO_T}$ac_cv_func_realloc_0_nonnull" >&6; }
  10404. if test $ac_cv_func_realloc_0_nonnull = yes; then
  10405. cat >>confdefs.h <<\_ACEOF
  10406. #define HAVE_REALLOC 1
  10407. _ACEOF
  10408. else
  10409. cat >>confdefs.h <<\_ACEOF
  10410. #define HAVE_REALLOC 0
  10411. _ACEOF
  10412. case " $LIBOBJS " in
  10413. *" realloc.$ac_objext "* ) ;;
  10414. *) LIBOBJS="$LIBOBJS realloc.$ac_objext"
  10415. ;;
  10416. esac
  10417. cat >>confdefs.h <<\_ACEOF
  10418. #define realloc rpl_realloc
  10419. _ACEOF
  10420. fi
  10421. for ac_header in sys/select.h sys/socket.h
  10422. do
  10423. as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
  10424. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  10425. { echo "$as_me:$LINENO: checking for $ac_header" >&5
  10426. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
  10427. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  10428. echo $ECHO_N "(cached) $ECHO_C" >&6
  10429. fi
  10430. ac_res=`eval echo '${'$as_ac_Header'}'`
  10431. { echo "$as_me:$LINENO: result: $ac_res" >&5
  10432. echo "${ECHO_T}$ac_res" >&6; }
  10433. else
  10434. # Is the header compilable?
  10435. { echo "$as_me:$LINENO: checking $ac_header usability" >&5
  10436. echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
  10437. cat >conftest.$ac_ext <<_ACEOF
  10438. /* confdefs.h. */
  10439. _ACEOF
  10440. cat confdefs.h >>conftest.$ac_ext
  10441. cat >>conftest.$ac_ext <<_ACEOF
  10442. /* end confdefs.h. */
  10443. $ac_includes_default
  10444. #include <$ac_header>
  10445. _ACEOF
  10446. rm -f conftest.$ac_objext
  10447. if { (ac_try="$ac_compile"
  10448. case "(($ac_try" in
  10449. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  10450. *) ac_try_echo=$ac_try;;
  10451. esac
  10452. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  10453. (eval "$ac_compile") 2>conftest.er1
  10454. ac_status=$?
  10455. grep -v '^ *+' conftest.er1 >conftest.err
  10456. rm -f conftest.er1
  10457. cat conftest.err >&5
  10458. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10459. (exit $ac_status); } && {
  10460. test -z "$ac_c_werror_flag" ||
  10461. test ! -s conftest.err
  10462. } && test -s conftest.$ac_objext; then
  10463. ac_header_compiler=yes
  10464. else
  10465. echo "$as_me: failed program was:" >&5
  10466. sed 's/^/| /' conftest.$ac_ext >&5
  10467. ac_header_compiler=no
  10468. fi
  10469. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  10470. { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  10471. echo "${ECHO_T}$ac_header_compiler" >&6; }
  10472. # Is the header present?
  10473. { echo "$as_me:$LINENO: checking $ac_header presence" >&5
  10474. echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
  10475. cat >conftest.$ac_ext <<_ACEOF
  10476. /* confdefs.h. */
  10477. _ACEOF
  10478. cat confdefs.h >>conftest.$ac_ext
  10479. cat >>conftest.$ac_ext <<_ACEOF
  10480. /* end confdefs.h. */
  10481. #include <$ac_header>
  10482. _ACEOF
  10483. if { (ac_try="$ac_cpp conftest.$ac_ext"
  10484. case "(($ac_try" in
  10485. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  10486. *) ac_try_echo=$ac_try;;
  10487. esac
  10488. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  10489. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  10490. ac_status=$?
  10491. grep -v '^ *+' conftest.er1 >conftest.err
  10492. rm -f conftest.er1
  10493. cat conftest.err >&5
  10494. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10495. (exit $ac_status); } >/dev/null && {
  10496. test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
  10497. test ! -s conftest.err
  10498. }; then
  10499. ac_header_preproc=yes
  10500. else
  10501. echo "$as_me: failed program was:" >&5
  10502. sed 's/^/| /' conftest.$ac_ext >&5
  10503. ac_header_preproc=no
  10504. fi
  10505. rm -f conftest.err conftest.$ac_ext
  10506. { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  10507. echo "${ECHO_T}$ac_header_preproc" >&6; }
  10508. # So? What about this header?
  10509. case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
  10510. yes:no: )
  10511. { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
  10512. echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
  10513. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
  10514. echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
  10515. ac_header_preproc=yes
  10516. ;;
  10517. no:yes:* )
  10518. { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
  10519. echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
  10520. { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
  10521. echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
  10522. { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
  10523. echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
  10524. { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
  10525. echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
  10526. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
  10527. echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
  10528. { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
  10529. echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
  10530. ( cat <<\_ASBOX
  10531. ## ----------------------------------------------- ##
  10532. ## Report this to t-tujikawa@users.sourceforge.net ##
  10533. ## ----------------------------------------------- ##
  10534. _ASBOX
  10535. ) | sed "s/^/$as_me: WARNING: /" >&2
  10536. ;;
  10537. esac
  10538. { echo "$as_me:$LINENO: checking for $ac_header" >&5
  10539. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
  10540. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  10541. echo $ECHO_N "(cached) $ECHO_C" >&6
  10542. else
  10543. eval "$as_ac_Header=\$ac_header_preproc"
  10544. fi
  10545. ac_res=`eval echo '${'$as_ac_Header'}'`
  10546. { echo "$as_me:$LINENO: result: $ac_res" >&5
  10547. echo "${ECHO_T}$ac_res" >&6; }
  10548. fi
  10549. if test `eval echo '${'$as_ac_Header'}'` = yes; then
  10550. cat >>confdefs.h <<_ACEOF
  10551. #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
  10552. _ACEOF
  10553. fi
  10554. done
  10555. { echo "$as_me:$LINENO: checking types of arguments for select" >&5
  10556. echo $ECHO_N "checking types of arguments for select... $ECHO_C" >&6; }
  10557. if test "${ac_cv_func_select_args+set}" = set; then
  10558. echo $ECHO_N "(cached) $ECHO_C" >&6
  10559. else
  10560. for ac_arg234 in 'fd_set *' 'int *' 'void *'; do
  10561. for ac_arg1 in 'int' 'size_t' 'unsigned long int' 'unsigned int'; do
  10562. for ac_arg5 in 'struct timeval *' 'const struct timeval *'; do
  10563. cat >conftest.$ac_ext <<_ACEOF
  10564. /* confdefs.h. */
  10565. _ACEOF
  10566. cat confdefs.h >>conftest.$ac_ext
  10567. cat >>conftest.$ac_ext <<_ACEOF
  10568. /* end confdefs.h. */
  10569. $ac_includes_default
  10570. #ifdef HAVE_SYS_SELECT_H
  10571. # include <sys/select.h>
  10572. #endif
  10573. #ifdef HAVE_SYS_SOCKET_H
  10574. # include <sys/socket.h>
  10575. #endif
  10576. int
  10577. main ()
  10578. {
  10579. extern int select ($ac_arg1,
  10580. $ac_arg234, $ac_arg234, $ac_arg234,
  10581. $ac_arg5);
  10582. ;
  10583. return 0;
  10584. }
  10585. _ACEOF
  10586. rm -f conftest.$ac_objext
  10587. if { (ac_try="$ac_compile"
  10588. case "(($ac_try" in
  10589. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  10590. *) ac_try_echo=$ac_try;;
  10591. esac
  10592. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  10593. (eval "$ac_compile") 2>conftest.er1
  10594. ac_status=$?
  10595. grep -v '^ *+' conftest.er1 >conftest.err
  10596. rm -f conftest.er1
  10597. cat conftest.err >&5
  10598. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10599. (exit $ac_status); } && {
  10600. test -z "$ac_c_werror_flag" ||
  10601. test ! -s conftest.err
  10602. } && test -s conftest.$ac_objext; then
  10603. ac_cv_func_select_args="$ac_arg1,$ac_arg234,$ac_arg5"; break 3
  10604. else
  10605. echo "$as_me: failed program was:" >&5
  10606. sed 's/^/| /' conftest.$ac_ext >&5
  10607. fi
  10608. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  10609. done
  10610. done
  10611. done
  10612. # Provide a safe default value.
  10613. : ${ac_cv_func_select_args='int,int *,struct timeval *'}
  10614. fi
  10615. { echo "$as_me:$LINENO: result: $ac_cv_func_select_args" >&5
  10616. echo "${ECHO_T}$ac_cv_func_select_args" >&6; }
  10617. ac_save_IFS=$IFS; IFS=','
  10618. set dummy `echo "$ac_cv_func_select_args" | sed 's/\*/\*/g'`
  10619. IFS=$ac_save_IFS
  10620. shift
  10621. cat >>confdefs.h <<_ACEOF
  10622. #define SELECT_TYPE_ARG1 $1
  10623. _ACEOF
  10624. cat >>confdefs.h <<_ACEOF
  10625. #define SELECT_TYPE_ARG234 ($2)
  10626. _ACEOF
  10627. cat >>confdefs.h <<_ACEOF
  10628. #define SELECT_TYPE_ARG5 ($3)
  10629. _ACEOF
  10630. rm -f conftest*
  10631. { echo "$as_me:$LINENO: checking whether lstat dereferences a symlink specified with a trailing slash" >&5
  10632. echo $ECHO_N "checking whether lstat dereferences a symlink specified with a trailing slash... $ECHO_C" >&6; }
  10633. if test "${ac_cv_func_lstat_dereferences_slashed_symlink+set}" = set; then
  10634. echo $ECHO_N "(cached) $ECHO_C" >&6
  10635. else
  10636. rm -f conftest.sym conftest.file
  10637. echo >conftest.file
  10638. if test "$as_ln_s" = "ln -s" && ln -s conftest.file conftest.sym; then
  10639. if test "$cross_compiling" = yes; then
  10640. ac_cv_func_lstat_dereferences_slashed_symlink=no
  10641. else
  10642. cat >conftest.$ac_ext <<_ACEOF
  10643. /* confdefs.h. */
  10644. _ACEOF
  10645. cat confdefs.h >>conftest.$ac_ext
  10646. cat >>conftest.$ac_ext <<_ACEOF
  10647. /* end confdefs.h. */
  10648. $ac_includes_default
  10649. int
  10650. main ()
  10651. {
  10652. struct stat sbuf;
  10653. /* Linux will dereference the symlink and fail.
  10654. That is better in the sense that it means we will not
  10655. have to compile and use the lstat wrapper. */
  10656. return lstat ("conftest.sym/", &sbuf) == 0;
  10657. ;
  10658. return 0;
  10659. }
  10660. _ACEOF
  10661. rm -f conftest$ac_exeext
  10662. if { (ac_try="$ac_link"
  10663. case "(($ac_try" in
  10664. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  10665. *) ac_try_echo=$ac_try;;
  10666. esac
  10667. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  10668. (eval "$ac_link") 2>&5
  10669. ac_status=$?
  10670. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10671. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  10672. { (case "(($ac_try" in
  10673. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  10674. *) ac_try_echo=$ac_try;;
  10675. esac
  10676. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  10677. (eval "$ac_try") 2>&5
  10678. ac_status=$?
  10679. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10680. (exit $ac_status); }; }; then
  10681. ac_cv_func_lstat_dereferences_slashed_symlink=yes
  10682. else
  10683. echo "$as_me: program exited with status $ac_status" >&5
  10684. echo "$as_me: failed program was:" >&5
  10685. sed 's/^/| /' conftest.$ac_ext >&5
  10686. ( exit $ac_status )
  10687. ac_cv_func_lstat_dereferences_slashed_symlink=no
  10688. fi
  10689. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  10690. fi
  10691. else
  10692. # If the `ln -s' command failed, then we probably don't even
  10693. # have an lstat function.
  10694. ac_cv_func_lstat_dereferences_slashed_symlink=no
  10695. fi
  10696. rm -f conftest.sym conftest.file
  10697. fi
  10698. { echo "$as_me:$LINENO: result: $ac_cv_func_lstat_dereferences_slashed_symlink" >&5
  10699. echo "${ECHO_T}$ac_cv_func_lstat_dereferences_slashed_symlink" >&6; }
  10700. test $ac_cv_func_lstat_dereferences_slashed_symlink = yes &&
  10701. cat >>confdefs.h <<_ACEOF
  10702. #define LSTAT_FOLLOWS_SLASHED_SYMLINK 1
  10703. _ACEOF
  10704. if test $ac_cv_func_lstat_dereferences_slashed_symlink = no; then
  10705. case " $LIBOBJS " in
  10706. *" lstat.$ac_objext "* ) ;;
  10707. *) LIBOBJS="$LIBOBJS lstat.$ac_objext"
  10708. ;;
  10709. esac
  10710. fi
  10711. { echo "$as_me:$LINENO: checking whether stat accepts an empty string" >&5
  10712. echo $ECHO_N "checking whether stat accepts an empty string... $ECHO_C" >&6; }
  10713. if test "${ac_cv_func_stat_empty_string_bug+set}" = set; then
  10714. echo $ECHO_N "(cached) $ECHO_C" >&6
  10715. else
  10716. if test "$cross_compiling" = yes; then
  10717. ac_cv_func_stat_empty_string_bug=yes
  10718. else
  10719. cat >conftest.$ac_ext <<_ACEOF
  10720. /* confdefs.h. */
  10721. _ACEOF
  10722. cat confdefs.h >>conftest.$ac_ext
  10723. cat >>conftest.$ac_ext <<_ACEOF
  10724. /* end confdefs.h. */
  10725. $ac_includes_default
  10726. int
  10727. main ()
  10728. {
  10729. struct stat sbuf;
  10730. return stat ("", &sbuf) == 0;
  10731. ;
  10732. return 0;
  10733. }
  10734. _ACEOF
  10735. rm -f conftest$ac_exeext
  10736. if { (ac_try="$ac_link"
  10737. case "(($ac_try" in
  10738. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  10739. *) ac_try_echo=$ac_try;;
  10740. esac
  10741. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  10742. (eval "$ac_link") 2>&5
  10743. ac_status=$?
  10744. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10745. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  10746. { (case "(($ac_try" in
  10747. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  10748. *) ac_try_echo=$ac_try;;
  10749. esac
  10750. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  10751. (eval "$ac_try") 2>&5
  10752. ac_status=$?
  10753. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10754. (exit $ac_status); }; }; then
  10755. ac_cv_func_stat_empty_string_bug=no
  10756. else
  10757. echo "$as_me: program exited with status $ac_status" >&5
  10758. echo "$as_me: failed program was:" >&5
  10759. sed 's/^/| /' conftest.$ac_ext >&5
  10760. ( exit $ac_status )
  10761. ac_cv_func_stat_empty_string_bug=yes
  10762. fi
  10763. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  10764. fi
  10765. fi
  10766. { echo "$as_me:$LINENO: result: $ac_cv_func_stat_empty_string_bug" >&5
  10767. echo "${ECHO_T}$ac_cv_func_stat_empty_string_bug" >&6; }
  10768. if test $ac_cv_func_stat_empty_string_bug = yes; then
  10769. case " $LIBOBJS " in
  10770. *" stat.$ac_objext "* ) ;;
  10771. *) LIBOBJS="$LIBOBJS stat.$ac_objext"
  10772. ;;
  10773. esac
  10774. cat >>confdefs.h <<_ACEOF
  10775. #define HAVE_STAT_EMPTY_STRING_BUG 1
  10776. _ACEOF
  10777. fi
  10778. for ac_func in vprintf
  10779. do
  10780. as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
  10781. { echo "$as_me:$LINENO: checking for $ac_func" >&5
  10782. echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
  10783. if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
  10784. echo $ECHO_N "(cached) $ECHO_C" >&6
  10785. else
  10786. cat >conftest.$ac_ext <<_ACEOF
  10787. /* confdefs.h. */
  10788. _ACEOF
  10789. cat confdefs.h >>conftest.$ac_ext
  10790. cat >>conftest.$ac_ext <<_ACEOF
  10791. /* end confdefs.h. */
  10792. /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
  10793. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  10794. #define $ac_func innocuous_$ac_func
  10795. /* System header to define __stub macros and hopefully few prototypes,
  10796. which can conflict with char $ac_func (); below.
  10797. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  10798. <limits.h> exists even on freestanding compilers. */
  10799. #ifdef __STDC__
  10800. # include <limits.h>
  10801. #else
  10802. # include <assert.h>
  10803. #endif
  10804. #undef $ac_func
  10805. /* Override any GCC internal prototype to avoid an error.
  10806. Use char because int might match the return type of a GCC
  10807. builtin and then its argument prototype would still apply. */
  10808. #ifdef __cplusplus
  10809. extern "C"
  10810. #endif
  10811. char $ac_func ();
  10812. /* The GNU C library defines this for functions which it implements
  10813. to always fail with ENOSYS. Some functions are actually named
  10814. something starting with __ and the normal name is an alias. */
  10815. #if defined __stub_$ac_func || defined __stub___$ac_func
  10816. choke me
  10817. #endif
  10818. int
  10819. main ()
  10820. {
  10821. return $ac_func ();
  10822. ;
  10823. return 0;
  10824. }
  10825. _ACEOF
  10826. rm -f conftest.$ac_objext conftest$ac_exeext
  10827. if { (ac_try="$ac_link"
  10828. case "(($ac_try" in
  10829. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  10830. *) ac_try_echo=$ac_try;;
  10831. esac
  10832. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  10833. (eval "$ac_link") 2>conftest.er1
  10834. ac_status=$?
  10835. grep -v '^ *+' conftest.er1 >conftest.err
  10836. rm -f conftest.er1
  10837. cat conftest.err >&5
  10838. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10839. (exit $ac_status); } && {
  10840. test -z "$ac_c_werror_flag" ||
  10841. test ! -s conftest.err
  10842. } && test -s conftest$ac_exeext &&
  10843. $as_test_x conftest$ac_exeext; then
  10844. eval "$as_ac_var=yes"
  10845. else
  10846. echo "$as_me: failed program was:" >&5
  10847. sed 's/^/| /' conftest.$ac_ext >&5
  10848. eval "$as_ac_var=no"
  10849. fi
  10850. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  10851. conftest$ac_exeext conftest.$ac_ext
  10852. fi
  10853. ac_res=`eval echo '${'$as_ac_var'}'`
  10854. { echo "$as_me:$LINENO: result: $ac_res" >&5
  10855. echo "${ECHO_T}$ac_res" >&6; }
  10856. if test `eval echo '${'$as_ac_var'}'` = yes; then
  10857. cat >>confdefs.h <<_ACEOF
  10858. #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
  10859. _ACEOF
  10860. { echo "$as_me:$LINENO: checking for _doprnt" >&5
  10861. echo $ECHO_N "checking for _doprnt... $ECHO_C" >&6; }
  10862. if test "${ac_cv_func__doprnt+set}" = set; then
  10863. echo $ECHO_N "(cached) $ECHO_C" >&6
  10864. else
  10865. cat >conftest.$ac_ext <<_ACEOF
  10866. /* confdefs.h. */
  10867. _ACEOF
  10868. cat confdefs.h >>conftest.$ac_ext
  10869. cat >>conftest.$ac_ext <<_ACEOF
  10870. /* end confdefs.h. */
  10871. /* Define _doprnt to an innocuous variant, in case <limits.h> declares _doprnt.
  10872. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  10873. #define _doprnt innocuous__doprnt
  10874. /* System header to define __stub macros and hopefully few prototypes,
  10875. which can conflict with char _doprnt (); below.
  10876. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  10877. <limits.h> exists even on freestanding compilers. */
  10878. #ifdef __STDC__
  10879. # include <limits.h>
  10880. #else
  10881. # include <assert.h>
  10882. #endif
  10883. #undef _doprnt
  10884. /* Override any GCC internal prototype to avoid an error.
  10885. Use char because int might match the return type of a GCC
  10886. builtin and then its argument prototype would still apply. */
  10887. #ifdef __cplusplus
  10888. extern "C"
  10889. #endif
  10890. char _doprnt ();
  10891. /* The GNU C library defines this for functions which it implements
  10892. to always fail with ENOSYS. Some functions are actually named
  10893. something starting with __ and the normal name is an alias. */
  10894. #if defined __stub__doprnt || defined __stub____doprnt
  10895. choke me
  10896. #endif
  10897. int
  10898. main ()
  10899. {
  10900. return _doprnt ();
  10901. ;
  10902. return 0;
  10903. }
  10904. _ACEOF
  10905. rm -f conftest.$ac_objext conftest$ac_exeext
  10906. if { (ac_try="$ac_link"
  10907. case "(($ac_try" in
  10908. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  10909. *) ac_try_echo=$ac_try;;
  10910. esac
  10911. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  10912. (eval "$ac_link") 2>conftest.er1
  10913. ac_status=$?
  10914. grep -v '^ *+' conftest.er1 >conftest.err
  10915. rm -f conftest.er1
  10916. cat conftest.err >&5
  10917. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10918. (exit $ac_status); } && {
  10919. test -z "$ac_c_werror_flag" ||
  10920. test ! -s conftest.err
  10921. } && test -s conftest$ac_exeext &&
  10922. $as_test_x conftest$ac_exeext; then
  10923. ac_cv_func__doprnt=yes
  10924. else
  10925. echo "$as_me: failed program was:" >&5
  10926. sed 's/^/| /' conftest.$ac_ext >&5
  10927. ac_cv_func__doprnt=no
  10928. fi
  10929. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  10930. conftest$ac_exeext conftest.$ac_ext
  10931. fi
  10932. { echo "$as_me:$LINENO: result: $ac_cv_func__doprnt" >&5
  10933. echo "${ECHO_T}$ac_cv_func__doprnt" >&6; }
  10934. if test $ac_cv_func__doprnt = yes; then
  10935. cat >>confdefs.h <<\_ACEOF
  10936. #define HAVE_DOPRNT 1
  10937. _ACEOF
  10938. fi
  10939. fi
  10940. done
  10941. 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
  10942. do
  10943. as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
  10944. { echo "$as_me:$LINENO: checking for $ac_func" >&5
  10945. echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
  10946. if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
  10947. echo $ECHO_N "(cached) $ECHO_C" >&6
  10948. else
  10949. cat >conftest.$ac_ext <<_ACEOF
  10950. /* confdefs.h. */
  10951. _ACEOF
  10952. cat confdefs.h >>conftest.$ac_ext
  10953. cat >>conftest.$ac_ext <<_ACEOF
  10954. /* end confdefs.h. */
  10955. /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
  10956. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  10957. #define $ac_func innocuous_$ac_func
  10958. /* System header to define __stub macros and hopefully few prototypes,
  10959. which can conflict with char $ac_func (); below.
  10960. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  10961. <limits.h> exists even on freestanding compilers. */
  10962. #ifdef __STDC__
  10963. # include <limits.h>
  10964. #else
  10965. # include <assert.h>
  10966. #endif
  10967. #undef $ac_func
  10968. /* Override any GCC internal prototype to avoid an error.
  10969. Use char because int might match the return type of a GCC
  10970. builtin and then its argument prototype would still apply. */
  10971. #ifdef __cplusplus
  10972. extern "C"
  10973. #endif
  10974. char $ac_func ();
  10975. /* The GNU C library defines this for functions which it implements
  10976. to always fail with ENOSYS. Some functions are actually named
  10977. something starting with __ and the normal name is an alias. */
  10978. #if defined __stub_$ac_func || defined __stub___$ac_func
  10979. choke me
  10980. #endif
  10981. int
  10982. main ()
  10983. {
  10984. return $ac_func ();
  10985. ;
  10986. return 0;
  10987. }
  10988. _ACEOF
  10989. rm -f conftest.$ac_objext conftest$ac_exeext
  10990. if { (ac_try="$ac_link"
  10991. case "(($ac_try" in
  10992. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  10993. *) ac_try_echo=$ac_try;;
  10994. esac
  10995. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  10996. (eval "$ac_link") 2>conftest.er1
  10997. ac_status=$?
  10998. grep -v '^ *+' conftest.er1 >conftest.err
  10999. rm -f conftest.er1
  11000. cat conftest.err >&5
  11001. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  11002. (exit $ac_status); } && {
  11003. test -z "$ac_c_werror_flag" ||
  11004. test ! -s conftest.err
  11005. } && test -s conftest$ac_exeext &&
  11006. $as_test_x conftest$ac_exeext; then
  11007. eval "$as_ac_var=yes"
  11008. else
  11009. echo "$as_me: failed program was:" >&5
  11010. sed 's/^/| /' conftest.$ac_ext >&5
  11011. eval "$as_ac_var=no"
  11012. fi
  11013. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  11014. conftest$ac_exeext conftest.$ac_ext
  11015. fi
  11016. ac_res=`eval echo '${'$as_ac_var'}'`
  11017. { echo "$as_me:$LINENO: result: $ac_res" >&5
  11018. echo "${ECHO_T}$ac_res" >&6; }
  11019. if test `eval echo '${'$as_ac_var'}'` = yes; then
  11020. cat >>confdefs.h <<_ACEOF
  11021. #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
  11022. _ACEOF
  11023. fi
  11024. done
  11025. ac_config_files="$ac_config_files Makefile src/Makefile test/Makefile po/Makefile.in m4/Makefile intl/Makefile doc/Makefile"
  11026. cat >confcache <<\_ACEOF
  11027. # This file is a shell script that caches the results of configure
  11028. # tests run on this system so they can be shared between configure
  11029. # scripts and configure runs, see configure's option --config-cache.
  11030. # It is not useful on other systems. If it contains results you don't
  11031. # want to keep, you may remove or edit it.
  11032. #
  11033. # config.status only pays attention to the cache file if you give it
  11034. # the --recheck option to rerun configure.
  11035. #
  11036. # `ac_cv_env_foo' variables (set or unset) will be overridden when
  11037. # loading this file, other *unset* `ac_cv_foo' will be assigned the
  11038. # following values.
  11039. _ACEOF
  11040. # The following way of writing the cache mishandles newlines in values,
  11041. # but we know of no workaround that is simple, portable, and efficient.
  11042. # So, we kill variables containing newlines.
  11043. # Ultrix sh set writes to stderr and can't be redirected directly,
  11044. # and sets the high bit in the cache file unless we assign to the vars.
  11045. (
  11046. for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
  11047. eval ac_val=\$$ac_var
  11048. case $ac_val in #(
  11049. *${as_nl}*)
  11050. case $ac_var in #(
  11051. *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
  11052. echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
  11053. esac
  11054. case $ac_var in #(
  11055. _ | IFS | as_nl) ;; #(
  11056. *) $as_unset $ac_var ;;
  11057. esac ;;
  11058. esac
  11059. done
  11060. (set) 2>&1 |
  11061. case $as_nl`(ac_space=' '; set) 2>&1` in #(
  11062. *${as_nl}ac_space=\ *)
  11063. # `set' does not quote correctly, so add quotes (double-quote
  11064. # substitution turns \\\\ into \\, and sed turns \\ into \).
  11065. sed -n \
  11066. "s/'/'\\\\''/g;
  11067. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
  11068. ;; #(
  11069. *)
  11070. # `set' quotes correctly as required by POSIX, so do not add quotes.
  11071. sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
  11072. ;;
  11073. esac |
  11074. sort
  11075. ) |
  11076. sed '
  11077. /^ac_cv_env_/b end
  11078. t clear
  11079. :clear
  11080. s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
  11081. t end
  11082. s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
  11083. :end' >>confcache
  11084. if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
  11085. if test -w "$cache_file"; then
  11086. test "x$cache_file" != "x/dev/null" &&
  11087. { echo "$as_me:$LINENO: updating cache $cache_file" >&5
  11088. echo "$as_me: updating cache $cache_file" >&6;}
  11089. cat confcache >$cache_file
  11090. else
  11091. { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
  11092. echo "$as_me: not updating unwritable cache $cache_file" >&6;}
  11093. fi
  11094. fi
  11095. rm -f confcache
  11096. test "x$prefix" = xNONE && prefix=$ac_default_prefix
  11097. # Let make expand exec_prefix.
  11098. test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
  11099. DEFS=-DHAVE_CONFIG_H
  11100. ac_libobjs=
  11101. ac_ltlibobjs=
  11102. for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
  11103. # 1. Remove the extension, and $U if already installed.
  11104. ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
  11105. ac_i=`echo "$ac_i" | sed "$ac_script"`
  11106. # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
  11107. # will be set to the directory where LIBOBJS objects are built.
  11108. ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
  11109. ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
  11110. done
  11111. LIBOBJS=$ac_libobjs
  11112. LTLIBOBJS=$ac_ltlibobjs
  11113. if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
  11114. { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
  11115. Usually this means the macro was only invoked conditionally." >&5
  11116. echo "$as_me: error: conditional \"AMDEP\" was never defined.
  11117. Usually this means the macro was only invoked conditionally." >&2;}
  11118. { (exit 1); exit 1; }; }
  11119. fi
  11120. if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
  11121. { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined.
  11122. Usually this means the macro was only invoked conditionally." >&5
  11123. echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined.
  11124. Usually this means the macro was only invoked conditionally." >&2;}
  11125. { (exit 1); exit 1; }; }
  11126. fi
  11127. if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
  11128. { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
  11129. Usually this means the macro was only invoked conditionally." >&5
  11130. echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
  11131. Usually this means the macro was only invoked conditionally." >&2;}
  11132. { (exit 1); exit 1; }; }
  11133. fi
  11134. if test -z "${ENABLE_MESSAGE_DIGEST_TRUE}" && test -z "${ENABLE_MESSAGE_DIGEST_FALSE}"; then
  11135. { { echo "$as_me:$LINENO: error: conditional \"ENABLE_MESSAGE_DIGEST\" was never defined.
  11136. Usually this means the macro was only invoked conditionally." >&5
  11137. echo "$as_me: error: conditional \"ENABLE_MESSAGE_DIGEST\" was never defined.
  11138. Usually this means the macro was only invoked conditionally." >&2;}
  11139. { (exit 1); exit 1; }; }
  11140. fi
  11141. if test -z "${ENABLE_MESSAGE_DIGEST_TRUE}" && test -z "${ENABLE_MESSAGE_DIGEST_FALSE}"; then
  11142. { { echo "$as_me:$LINENO: error: conditional \"ENABLE_MESSAGE_DIGEST\" was never defined.
  11143. Usually this means the macro was only invoked conditionally." >&5
  11144. echo "$as_me: error: conditional \"ENABLE_MESSAGE_DIGEST\" was never defined.
  11145. Usually this means the macro was only invoked conditionally." >&2;}
  11146. { (exit 1); exit 1; }; }
  11147. fi
  11148. if test -z "${ENABLE_BITTORRENT_TRUE}" && test -z "${ENABLE_BITTORRENT_FALSE}"; then
  11149. { { echo "$as_me:$LINENO: error: conditional \"ENABLE_BITTORRENT\" was never defined.
  11150. Usually this means the macro was only invoked conditionally." >&5
  11151. echo "$as_me: error: conditional \"ENABLE_BITTORRENT\" was never defined.
  11152. Usually this means the macro was only invoked conditionally." >&2;}
  11153. { (exit 1); exit 1; }; }
  11154. fi
  11155. if test -z "${ENABLE_BITTORRENT_TRUE}" && test -z "${ENABLE_BITTORRENT_FALSE}"; then
  11156. { { echo "$as_me:$LINENO: error: conditional \"ENABLE_BITTORRENT\" was never defined.
  11157. Usually this means the macro was only invoked conditionally." >&5
  11158. echo "$as_me: error: conditional \"ENABLE_BITTORRENT\" was never defined.
  11159. Usually this means the macro was only invoked conditionally." >&2;}
  11160. { (exit 1); exit 1; }; }
  11161. fi
  11162. if test -z "${ENABLE_METALINK_TRUE}" && test -z "${ENABLE_METALINK_FALSE}"; then
  11163. { { echo "$as_me:$LINENO: error: conditional \"ENABLE_METALINK\" was never defined.
  11164. Usually this means the macro was only invoked conditionally." >&5
  11165. echo "$as_me: error: conditional \"ENABLE_METALINK\" was never defined.
  11166. Usually this means the macro was only invoked conditionally." >&2;}
  11167. { (exit 1); exit 1; }; }
  11168. fi
  11169. if test -z "${ENABLE_METALINK_TRUE}" && test -z "${ENABLE_METALINK_FALSE}"; then
  11170. { { echo "$as_me:$LINENO: error: conditional \"ENABLE_METALINK\" was never defined.
  11171. Usually this means the macro was only invoked conditionally." >&5
  11172. echo "$as_me: error: conditional \"ENABLE_METALINK\" was never defined.
  11173. Usually this means the macro was only invoked conditionally." >&2;}
  11174. { (exit 1); exit 1; }; }
  11175. fi
  11176. if test -z "${ENABLE_ASYNC_DNS_TRUE}" && test -z "${ENABLE_ASYNC_DNS_FALSE}"; then
  11177. { { echo "$as_me:$LINENO: error: conditional \"ENABLE_ASYNC_DNS\" was never defined.
  11178. Usually this means the macro was only invoked conditionally." >&5
  11179. echo "$as_me: error: conditional \"ENABLE_ASYNC_DNS\" was never defined.
  11180. Usually this means the macro was only invoked conditionally." >&2;}
  11181. { (exit 1); exit 1; }; }
  11182. fi
  11183. if test -z "${ENABLE_ASYNC_DNS_TRUE}" && test -z "${ENABLE_ASYNC_DNS_FALSE}"; then
  11184. { { echo "$as_me:$LINENO: error: conditional \"ENABLE_ASYNC_DNS\" was never defined.
  11185. Usually this means the macro was only invoked conditionally." >&5
  11186. echo "$as_me: error: conditional \"ENABLE_ASYNC_DNS\" was never defined.
  11187. Usually this means the macro was only invoked conditionally." >&2;}
  11188. { (exit 1); exit 1; }; }
  11189. fi
  11190. : ${CONFIG_STATUS=./config.status}
  11191. ac_clean_files_save=$ac_clean_files
  11192. ac_clean_files="$ac_clean_files $CONFIG_STATUS"
  11193. { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
  11194. echo "$as_me: creating $CONFIG_STATUS" >&6;}
  11195. cat >$CONFIG_STATUS <<_ACEOF
  11196. #! $SHELL
  11197. # Generated by $as_me.
  11198. # Run this file to recreate the current configuration.
  11199. # Compiler output produced by configure, useful for debugging
  11200. # configure, is in config.log if it exists.
  11201. debug=false
  11202. ac_cs_recheck=false
  11203. ac_cs_silent=false
  11204. SHELL=\${CONFIG_SHELL-$SHELL}
  11205. _ACEOF
  11206. cat >>$CONFIG_STATUS <<\_ACEOF
  11207. ## --------------------- ##
  11208. ## M4sh Initialization. ##
  11209. ## --------------------- ##
  11210. # Be more Bourne compatible
  11211. DUALCASE=1; export DUALCASE # for MKS sh
  11212. if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
  11213. emulate sh
  11214. NULLCMD=:
  11215. # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
  11216. # is contrary to our usage. Disable this feature.
  11217. alias -g '${1+"$@"}'='"$@"'
  11218. setopt NO_GLOB_SUBST
  11219. else
  11220. case `(set -o) 2>/dev/null` in
  11221. *posix*) set -o posix ;;
  11222. esac
  11223. fi
  11224. # PATH needs CR
  11225. # Avoid depending upon Character Ranges.
  11226. as_cr_letters='abcdefghijklmnopqrstuvwxyz'
  11227. as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
  11228. as_cr_Letters=$as_cr_letters$as_cr_LETTERS
  11229. as_cr_digits='0123456789'
  11230. as_cr_alnum=$as_cr_Letters$as_cr_digits
  11231. # The user is always right.
  11232. if test "${PATH_SEPARATOR+set}" != set; then
  11233. echo "#! /bin/sh" >conf$$.sh
  11234. echo "exit 0" >>conf$$.sh
  11235. chmod +x conf$$.sh
  11236. if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
  11237. PATH_SEPARATOR=';'
  11238. else
  11239. PATH_SEPARATOR=:
  11240. fi
  11241. rm -f conf$$.sh
  11242. fi
  11243. # Support unset when possible.
  11244. if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
  11245. as_unset=unset
  11246. else
  11247. as_unset=false
  11248. fi
  11249. # IFS
  11250. # We need space, tab and new line, in precisely that order. Quoting is
  11251. # there to prevent editors from complaining about space-tab.
  11252. # (If _AS_PATH_WALK were called with IFS unset, it would disable word
  11253. # splitting by setting IFS to empty value.)
  11254. as_nl='
  11255. '
  11256. IFS=" "" $as_nl"
  11257. # Find who we are. Look in the path if we contain no directory separator.
  11258. case $0 in
  11259. *[\\/]* ) as_myself=$0 ;;
  11260. *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  11261. for as_dir in $PATH
  11262. do
  11263. IFS=$as_save_IFS
  11264. test -z "$as_dir" && as_dir=.
  11265. test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
  11266. done
  11267. IFS=$as_save_IFS
  11268. ;;
  11269. esac
  11270. # We did not find ourselves, most probably we were run as `sh COMMAND'
  11271. # in which case we are not to be found in the path.
  11272. if test "x$as_myself" = x; then
  11273. as_myself=$0
  11274. fi
  11275. if test ! -f "$as_myself"; then
  11276. echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
  11277. { (exit 1); exit 1; }
  11278. fi
  11279. # Work around bugs in pre-3.0 UWIN ksh.
  11280. for as_var in ENV MAIL MAILPATH
  11281. do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
  11282. done
  11283. PS1='$ '
  11284. PS2='> '
  11285. PS4='+ '
  11286. # NLS nuisances.
  11287. for as_var in \
  11288. LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
  11289. LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
  11290. LC_TELEPHONE LC_TIME
  11291. do
  11292. if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
  11293. eval $as_var=C; export $as_var
  11294. else
  11295. ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
  11296. fi
  11297. done
  11298. # Required to use basename.
  11299. if expr a : '\(a\)' >/dev/null 2>&1 &&
  11300. test "X`expr 00001 : '.*\(...\)'`" = X001; then
  11301. as_expr=expr
  11302. else
  11303. as_expr=false
  11304. fi
  11305. if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
  11306. as_basename=basename
  11307. else
  11308. as_basename=false
  11309. fi
  11310. # Name of the executable.
  11311. as_me=`$as_basename -- "$0" ||
  11312. $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
  11313. X"$0" : 'X\(//\)$' \| \
  11314. X"$0" : 'X\(/\)' \| . 2>/dev/null ||
  11315. echo X/"$0" |
  11316. sed '/^.*\/\([^/][^/]*\)\/*$/{
  11317. s//\1/
  11318. q
  11319. }
  11320. /^X\/\(\/\/\)$/{
  11321. s//\1/
  11322. q
  11323. }
  11324. /^X\/\(\/\).*/{
  11325. s//\1/
  11326. q
  11327. }
  11328. s/.*/./; q'`
  11329. # CDPATH.
  11330. $as_unset CDPATH
  11331. as_lineno_1=$LINENO
  11332. as_lineno_2=$LINENO
  11333. test "x$as_lineno_1" != "x$as_lineno_2" &&
  11334. test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
  11335. # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
  11336. # uniformly replaced by the line number. The first 'sed' inserts a
  11337. # line-number line after each line using $LINENO; the second 'sed'
  11338. # does the real work. The second script uses 'N' to pair each
  11339. # line-number line with the line containing $LINENO, and appends
  11340. # trailing '-' during substitution so that $LINENO is not a special
  11341. # case at line end.
  11342. # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
  11343. # scripts with optimization help from Paolo Bonzini. Blame Lee
  11344. # E. McMahon (1931-1989) for sed's syntax. :-)
  11345. sed -n '
  11346. p
  11347. /[$]LINENO/=
  11348. ' <$as_myself |
  11349. sed '
  11350. s/[$]LINENO.*/&-/
  11351. t lineno
  11352. b
  11353. :lineno
  11354. N
  11355. :loop
  11356. s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
  11357. t loop
  11358. s/-\n.*//
  11359. ' >$as_me.lineno &&
  11360. chmod +x "$as_me.lineno" ||
  11361. { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
  11362. { (exit 1); exit 1; }; }
  11363. # Don't try to exec as it changes $[0], causing all sort of problems
  11364. # (the dirname of $[0] is not the place where we might find the
  11365. # original and so on. Autoconf is especially sensitive to this).
  11366. . "./$as_me.lineno"
  11367. # Exit status is that of the last command.
  11368. exit
  11369. }
  11370. if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
  11371. as_dirname=dirname
  11372. else
  11373. as_dirname=false
  11374. fi
  11375. ECHO_C= ECHO_N= ECHO_T=
  11376. case `echo -n x` in
  11377. -n*)
  11378. case `echo 'x\c'` in
  11379. *c*) ECHO_T=' ';; # ECHO_T is single tab character.
  11380. *) ECHO_C='\c';;
  11381. esac;;
  11382. *)
  11383. ECHO_N='-n';;
  11384. esac
  11385. if expr a : '\(a\)' >/dev/null 2>&1 &&
  11386. test "X`expr 00001 : '.*\(...\)'`" = X001; then
  11387. as_expr=expr
  11388. else
  11389. as_expr=false
  11390. fi
  11391. rm -f conf$$ conf$$.exe conf$$.file
  11392. if test -d conf$$.dir; then
  11393. rm -f conf$$.dir/conf$$.file
  11394. else
  11395. rm -f conf$$.dir
  11396. mkdir conf$$.dir
  11397. fi
  11398. echo >conf$$.file
  11399. if ln -s conf$$.file conf$$ 2>/dev/null; then
  11400. as_ln_s='ln -s'
  11401. # ... but there are two gotchas:
  11402. # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
  11403. # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
  11404. # In both cases, we have to default to `cp -p'.
  11405. ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
  11406. as_ln_s='cp -p'
  11407. elif ln conf$$.file conf$$ 2>/dev/null; then
  11408. as_ln_s=ln
  11409. else
  11410. as_ln_s='cp -p'
  11411. fi
  11412. rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
  11413. rmdir conf$$.dir 2>/dev/null
  11414. if mkdir -p . 2>/dev/null; then
  11415. as_mkdir_p=:
  11416. else
  11417. test -d ./-p && rmdir ./-p
  11418. as_mkdir_p=false
  11419. fi
  11420. if test -x / >/dev/null 2>&1; then
  11421. as_test_x='test -x'
  11422. else
  11423. if ls -dL / >/dev/null 2>&1; then
  11424. as_ls_L_option=L
  11425. else
  11426. as_ls_L_option=
  11427. fi
  11428. as_test_x='
  11429. eval sh -c '\''
  11430. if test -d "$1"; then
  11431. test -d "$1/.";
  11432. else
  11433. case $1 in
  11434. -*)set "./$1";;
  11435. esac;
  11436. case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
  11437. ???[sx]*):;;*)false;;esac;fi
  11438. '\'' sh
  11439. '
  11440. fi
  11441. as_executable_p=$as_test_x
  11442. # Sed expression to map a string onto a valid CPP name.
  11443. as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
  11444. # Sed expression to map a string onto a valid variable name.
  11445. as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
  11446. exec 6>&1
  11447. # Save the log message, to keep $[0] and so on meaningful, and to
  11448. # report actual input values of CONFIG_FILES etc. instead of their
  11449. # values after options handling.
  11450. ac_log="
  11451. This file was extended by aria2c $as_me 0.11.1, which was
  11452. generated by GNU Autoconf 2.61. Invocation command line was
  11453. CONFIG_FILES = $CONFIG_FILES
  11454. CONFIG_HEADERS = $CONFIG_HEADERS
  11455. CONFIG_LINKS = $CONFIG_LINKS
  11456. CONFIG_COMMANDS = $CONFIG_COMMANDS
  11457. $ $0 $@
  11458. on `(hostname || uname -n) 2>/dev/null | sed 1q`
  11459. "
  11460. _ACEOF
  11461. cat >>$CONFIG_STATUS <<_ACEOF
  11462. # Files that config.status was made for.
  11463. config_files="$ac_config_files"
  11464. config_headers="$ac_config_headers"
  11465. config_commands="$ac_config_commands"
  11466. _ACEOF
  11467. cat >>$CONFIG_STATUS <<\_ACEOF
  11468. ac_cs_usage="\
  11469. \`$as_me' instantiates files from templates according to the
  11470. current configuration.
  11471. Usage: $0 [OPTIONS] [FILE]...
  11472. -h, --help print this help, then exit
  11473. -V, --version print version number and configuration settings, then exit
  11474. -q, --quiet do not print progress messages
  11475. -d, --debug don't remove temporary files
  11476. --recheck update $as_me by reconfiguring in the same conditions
  11477. --file=FILE[:TEMPLATE]
  11478. instantiate the configuration file FILE
  11479. --header=FILE[:TEMPLATE]
  11480. instantiate the configuration header FILE
  11481. Configuration files:
  11482. $config_files
  11483. Configuration headers:
  11484. $config_headers
  11485. Configuration commands:
  11486. $config_commands
  11487. Report bugs to <bug-autoconf@gnu.org>."
  11488. _ACEOF
  11489. cat >>$CONFIG_STATUS <<_ACEOF
  11490. ac_cs_version="\\
  11491. aria2c config.status 0.11.1
  11492. configured by $0, generated by GNU Autoconf 2.61,
  11493. with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
  11494. Copyright (C) 2006 Free Software Foundation, Inc.
  11495. This config.status script is free software; the Free Software Foundation
  11496. gives unlimited permission to copy, distribute and modify it."
  11497. ac_pwd='$ac_pwd'
  11498. srcdir='$srcdir'
  11499. INSTALL='$INSTALL'
  11500. _ACEOF
  11501. cat >>$CONFIG_STATUS <<\_ACEOF
  11502. # If no file are specified by the user, then we need to provide default
  11503. # value. By we need to know if files were specified by the user.
  11504. ac_need_defaults=:
  11505. while test $# != 0
  11506. do
  11507. case $1 in
  11508. --*=*)
  11509. ac_option=`expr "X$1" : 'X\([^=]*\)='`
  11510. ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
  11511. ac_shift=:
  11512. ;;
  11513. *)
  11514. ac_option=$1
  11515. ac_optarg=$2
  11516. ac_shift=shift
  11517. ;;
  11518. esac
  11519. case $ac_option in
  11520. # Handling of the options.
  11521. -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
  11522. ac_cs_recheck=: ;;
  11523. --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
  11524. echo "$ac_cs_version"; exit ;;
  11525. --debug | --debu | --deb | --de | --d | -d )
  11526. debug=: ;;
  11527. --file | --fil | --fi | --f )
  11528. $ac_shift
  11529. CONFIG_FILES="$CONFIG_FILES $ac_optarg"
  11530. ac_need_defaults=false;;
  11531. --header | --heade | --head | --hea )
  11532. $ac_shift
  11533. CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
  11534. ac_need_defaults=false;;
  11535. --he | --h)
  11536. # Conflict between --help and --header
  11537. { echo "$as_me: error: ambiguous option: $1
  11538. Try \`$0 --help' for more information." >&2
  11539. { (exit 1); exit 1; }; };;
  11540. --help | --hel | -h )
  11541. echo "$ac_cs_usage"; exit ;;
  11542. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  11543. | -silent | --silent | --silen | --sile | --sil | --si | --s)
  11544. ac_cs_silent=: ;;
  11545. # This is an error.
  11546. -*) { echo "$as_me: error: unrecognized option: $1
  11547. Try \`$0 --help' for more information." >&2
  11548. { (exit 1); exit 1; }; } ;;
  11549. *) ac_config_targets="$ac_config_targets $1"
  11550. ac_need_defaults=false ;;
  11551. esac
  11552. shift
  11553. done
  11554. ac_configure_extra_args=
  11555. if $ac_cs_silent; then
  11556. exec 6>/dev/null
  11557. ac_configure_extra_args="$ac_configure_extra_args --silent"
  11558. fi
  11559. _ACEOF
  11560. cat >>$CONFIG_STATUS <<_ACEOF
  11561. if \$ac_cs_recheck; then
  11562. echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
  11563. CONFIG_SHELL=$SHELL
  11564. export CONFIG_SHELL
  11565. exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
  11566. fi
  11567. _ACEOF
  11568. cat >>$CONFIG_STATUS <<\_ACEOF
  11569. exec 5>>config.log
  11570. {
  11571. echo
  11572. sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
  11573. ## Running $as_me. ##
  11574. _ASBOX
  11575. echo "$ac_log"
  11576. } >&5
  11577. _ACEOF
  11578. cat >>$CONFIG_STATUS <<_ACEOF
  11579. #
  11580. # INIT-COMMANDS
  11581. #
  11582. AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
  11583. # Capture the value of obsolete ALL_LINGUAS because we need it to compute
  11584. # POFILES, GMOFILES, UPDATEPOFILES, DUMMYPOFILES, CATALOGS. But hide it
  11585. # from automake.
  11586. eval 'OBSOLETE_ALL_LINGUAS''="$ALL_LINGUAS"'
  11587. # Capture the value of LINGUAS because we need it to compute CATALOGS.
  11588. LINGUAS="${LINGUAS-%UNSET%}"
  11589. _ACEOF
  11590. cat >>$CONFIG_STATUS <<\_ACEOF
  11591. # Handling of arguments.
  11592. for ac_config_target in $ac_config_targets
  11593. do
  11594. case $ac_config_target in
  11595. "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
  11596. "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
  11597. "default-1") CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
  11598. "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
  11599. "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
  11600. "test/Makefile") CONFIG_FILES="$CONFIG_FILES test/Makefile" ;;
  11601. "po/Makefile.in") CONFIG_FILES="$CONFIG_FILES po/Makefile.in" ;;
  11602. "m4/Makefile") CONFIG_FILES="$CONFIG_FILES m4/Makefile" ;;
  11603. "intl/Makefile") CONFIG_FILES="$CONFIG_FILES intl/Makefile" ;;
  11604. "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
  11605. *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
  11606. echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
  11607. { (exit 1); exit 1; }; };;
  11608. esac
  11609. done
  11610. # If the user did not use the arguments to specify the items to instantiate,
  11611. # then the envvar interface is used. Set only those that are not.
  11612. # We use the long form for the default assignment because of an extremely
  11613. # bizarre bug on SunOS 4.1.3.
  11614. if $ac_need_defaults; then
  11615. test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
  11616. test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
  11617. test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
  11618. fi
  11619. # Have a temporary directory for convenience. Make it in the build tree
  11620. # simply because there is no reason against having it here, and in addition,
  11621. # creating and moving files from /tmp can sometimes cause problems.
  11622. # Hook for its removal unless debugging.
  11623. # Note that there is a small window in which the directory will not be cleaned:
  11624. # after its creation but before its name has been assigned to `$tmp'.
  11625. $debug ||
  11626. {
  11627. tmp=
  11628. trap 'exit_status=$?
  11629. { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
  11630. ' 0
  11631. trap '{ (exit 1); exit 1; }' 1 2 13 15
  11632. }
  11633. # Create a (secure) tmp directory for tmp files.
  11634. {
  11635. tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
  11636. test -n "$tmp" && test -d "$tmp"
  11637. } ||
  11638. {
  11639. tmp=./conf$$-$RANDOM
  11640. (umask 077 && mkdir "$tmp")
  11641. } ||
  11642. {
  11643. echo "$me: cannot create a temporary directory in ." >&2
  11644. { (exit 1); exit 1; }
  11645. }
  11646. #
  11647. # Set up the sed scripts for CONFIG_FILES section.
  11648. #
  11649. # No need to generate the scripts if there are no CONFIG_FILES.
  11650. # This happens for instance when ./config.status config.h
  11651. if test -n "$CONFIG_FILES"; then
  11652. _ACEOF
  11653. ac_delim='%!_!# '
  11654. for ac_last_try in false false false false false :; do
  11655. cat >conf$$subs.sed <<_ACEOF
  11656. SHELL!$SHELL$ac_delim
  11657. PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
  11658. PACKAGE_NAME!$PACKAGE_NAME$ac_delim
  11659. PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
  11660. PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
  11661. PACKAGE_STRING!$PACKAGE_STRING$ac_delim
  11662. PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
  11663. exec_prefix!$exec_prefix$ac_delim
  11664. prefix!$prefix$ac_delim
  11665. program_transform_name!$program_transform_name$ac_delim
  11666. bindir!$bindir$ac_delim
  11667. sbindir!$sbindir$ac_delim
  11668. libexecdir!$libexecdir$ac_delim
  11669. datarootdir!$datarootdir$ac_delim
  11670. datadir!$datadir$ac_delim
  11671. sysconfdir!$sysconfdir$ac_delim
  11672. sharedstatedir!$sharedstatedir$ac_delim
  11673. localstatedir!$localstatedir$ac_delim
  11674. includedir!$includedir$ac_delim
  11675. oldincludedir!$oldincludedir$ac_delim
  11676. docdir!$docdir$ac_delim
  11677. infodir!$infodir$ac_delim
  11678. htmldir!$htmldir$ac_delim
  11679. dvidir!$dvidir$ac_delim
  11680. pdfdir!$pdfdir$ac_delim
  11681. psdir!$psdir$ac_delim
  11682. libdir!$libdir$ac_delim
  11683. localedir!$localedir$ac_delim
  11684. mandir!$mandir$ac_delim
  11685. DEFS!$DEFS$ac_delim
  11686. ECHO_C!$ECHO_C$ac_delim
  11687. ECHO_N!$ECHO_N$ac_delim
  11688. ECHO_T!$ECHO_T$ac_delim
  11689. LIBS!$LIBS$ac_delim
  11690. build_alias!$build_alias$ac_delim
  11691. host_alias!$host_alias$ac_delim
  11692. target_alias!$target_alias$ac_delim
  11693. INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
  11694. INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
  11695. INSTALL_DATA!$INSTALL_DATA$ac_delim
  11696. CYGPATH_W!$CYGPATH_W$ac_delim
  11697. PACKAGE!$PACKAGE$ac_delim
  11698. VERSION!$VERSION$ac_delim
  11699. ACLOCAL!$ACLOCAL$ac_delim
  11700. AUTOCONF!$AUTOCONF$ac_delim
  11701. AUTOMAKE!$AUTOMAKE$ac_delim
  11702. AUTOHEADER!$AUTOHEADER$ac_delim
  11703. MAKEINFO!$MAKEINFO$ac_delim
  11704. install_sh!$install_sh$ac_delim
  11705. STRIP!$STRIP$ac_delim
  11706. INSTALL_STRIP_PROGRAM!$INSTALL_STRIP_PROGRAM$ac_delim
  11707. mkdir_p!$mkdir_p$ac_delim
  11708. AWK!$AWK$ac_delim
  11709. SET_MAKE!$SET_MAKE$ac_delim
  11710. am__leading_dot!$am__leading_dot$ac_delim
  11711. AMTAR!$AMTAR$ac_delim
  11712. am__tar!$am__tar$ac_delim
  11713. am__untar!$am__untar$ac_delim
  11714. CPPUNIT_CONFIG!$CPPUNIT_CONFIG$ac_delim
  11715. CPPUNIT_CFLAGS!$CPPUNIT_CFLAGS$ac_delim
  11716. CPPUNIT_LIBS!$CPPUNIT_LIBS$ac_delim
  11717. CXX!$CXX$ac_delim
  11718. CXXFLAGS!$CXXFLAGS$ac_delim
  11719. LDFLAGS!$LDFLAGS$ac_delim
  11720. CPPFLAGS!$CPPFLAGS$ac_delim
  11721. ac_ct_CXX!$ac_ct_CXX$ac_delim
  11722. EXEEXT!$EXEEXT$ac_delim
  11723. OBJEXT!$OBJEXT$ac_delim
  11724. DEPDIR!$DEPDIR$ac_delim
  11725. am__include!$am__include$ac_delim
  11726. am__quote!$am__quote$ac_delim
  11727. AMDEP_TRUE!$AMDEP_TRUE$ac_delim
  11728. AMDEP_FALSE!$AMDEP_FALSE$ac_delim
  11729. AMDEPBACKSLASH!$AMDEPBACKSLASH$ac_delim
  11730. CXXDEPMODE!$CXXDEPMODE$ac_delim
  11731. am__fastdepCXX_TRUE!$am__fastdepCXX_TRUE$ac_delim
  11732. am__fastdepCXX_FALSE!$am__fastdepCXX_FALSE$ac_delim
  11733. CC!$CC$ac_delim
  11734. CFLAGS!$CFLAGS$ac_delim
  11735. ac_ct_CC!$ac_ct_CC$ac_delim
  11736. CCDEPMODE!$CCDEPMODE$ac_delim
  11737. am__fastdepCC_TRUE!$am__fastdepCC_TRUE$ac_delim
  11738. am__fastdepCC_FALSE!$am__fastdepCC_FALSE$ac_delim
  11739. RANLIB!$RANLIB$ac_delim
  11740. YACC!$YACC$ac_delim
  11741. YFLAGS!$YFLAGS$ac_delim
  11742. XML2_CONFIG!$XML2_CONFIG$ac_delim
  11743. XML_CPPFLAGS!$XML_CPPFLAGS$ac_delim
  11744. XML_LIBS!$XML_LIBS$ac_delim
  11745. LIBGNUTLS_CONFIG!$LIBGNUTLS_CONFIG$ac_delim
  11746. LIBGNUTLS_CFLAGS!$LIBGNUTLS_CFLAGS$ac_delim
  11747. LIBGNUTLS_LIBS!$LIBGNUTLS_LIBS$ac_delim
  11748. LIBGCRYPT_CONFIG!$LIBGCRYPT_CONFIG$ac_delim
  11749. LIBGCRYPT_CFLAGS!$LIBGCRYPT_CFLAGS$ac_delim
  11750. LIBGCRYPT_LIBS!$LIBGCRYPT_LIBS$ac_delim
  11751. OPENSSL_LIBS!$OPENSSL_LIBS$ac_delim
  11752. OPENSSL_CFLAGS!$OPENSSL_CFLAGS$ac_delim
  11753. _ACEOF
  11754. if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
  11755. break
  11756. elif $ac_last_try; then
  11757. { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
  11758. echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
  11759. { (exit 1); exit 1; }; }
  11760. else
  11761. ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
  11762. fi
  11763. done
  11764. ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
  11765. if test -n "$ac_eof"; then
  11766. ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
  11767. ac_eof=`expr $ac_eof + 1`
  11768. fi
  11769. cat >>$CONFIG_STATUS <<_ACEOF
  11770. cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
  11771. /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
  11772. _ACEOF
  11773. sed '
  11774. s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
  11775. s/^/s,@/; s/!/@,|#_!!_#|/
  11776. :n
  11777. t n
  11778. s/'"$ac_delim"'$/,g/; t
  11779. s/$/\\/; p
  11780. N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
  11781. ' >>$CONFIG_STATUS <conf$$subs.sed
  11782. rm -f conf$$subs.sed
  11783. cat >>$CONFIG_STATUS <<_ACEOF
  11784. CEOF$ac_eof
  11785. _ACEOF
  11786. ac_delim='%!_!# '
  11787. for ac_last_try in false false false false false :; do
  11788. cat >conf$$subs.sed <<_ACEOF
  11789. LIBCARES_LIBS!$LIBCARES_LIBS$ac_delim
  11790. LIBCARES_CPPFLAGS!$LIBCARES_CPPFLAGS$ac_delim
  11791. LIBARES_LIBS!$LIBARES_LIBS$ac_delim
  11792. LIBARES_CPPFLAGS!$LIBARES_CPPFLAGS$ac_delim
  11793. ENABLE_MESSAGE_DIGEST_TRUE!$ENABLE_MESSAGE_DIGEST_TRUE$ac_delim
  11794. ENABLE_MESSAGE_DIGEST_FALSE!$ENABLE_MESSAGE_DIGEST_FALSE$ac_delim
  11795. ENABLE_BITTORRENT_TRUE!$ENABLE_BITTORRENT_TRUE$ac_delim
  11796. ENABLE_BITTORRENT_FALSE!$ENABLE_BITTORRENT_FALSE$ac_delim
  11797. ENABLE_METALINK_TRUE!$ENABLE_METALINK_TRUE$ac_delim
  11798. ENABLE_METALINK_FALSE!$ENABLE_METALINK_FALSE$ac_delim
  11799. ENABLE_ASYNC_DNS_TRUE!$ENABLE_ASYNC_DNS_TRUE$ac_delim
  11800. ENABLE_ASYNC_DNS_FALSE!$ENABLE_ASYNC_DNS_FALSE$ac_delim
  11801. ALLOCA!$ALLOCA$ac_delim
  11802. CPP!$CPP$ac_delim
  11803. GREP!$GREP$ac_delim
  11804. EGREP!$EGREP$ac_delim
  11805. MKINSTALLDIRS!$MKINSTALLDIRS$ac_delim
  11806. USE_NLS!$USE_NLS$ac_delim
  11807. MSGFMT!$MSGFMT$ac_delim
  11808. GMSGFMT!$GMSGFMT$ac_delim
  11809. XGETTEXT!$XGETTEXT$ac_delim
  11810. MSGMERGE!$MSGMERGE$ac_delim
  11811. build!$build$ac_delim
  11812. build_cpu!$build_cpu$ac_delim
  11813. build_vendor!$build_vendor$ac_delim
  11814. build_os!$build_os$ac_delim
  11815. host!$host$ac_delim
  11816. host_cpu!$host_cpu$ac_delim
  11817. host_vendor!$host_vendor$ac_delim
  11818. host_os!$host_os$ac_delim
  11819. GLIBC21!$GLIBC21$ac_delim
  11820. LIBICONV!$LIBICONV$ac_delim
  11821. LTLIBICONV!$LTLIBICONV$ac_delim
  11822. INTLBISON!$INTLBISON$ac_delim
  11823. BUILD_INCLUDED_LIBINTL!$BUILD_INCLUDED_LIBINTL$ac_delim
  11824. USE_INCLUDED_LIBINTL!$USE_INCLUDED_LIBINTL$ac_delim
  11825. CATOBJEXT!$CATOBJEXT$ac_delim
  11826. DATADIRNAME!$DATADIRNAME$ac_delim
  11827. INSTOBJEXT!$INSTOBJEXT$ac_delim
  11828. GENCAT!$GENCAT$ac_delim
  11829. INTLOBJS!$INTLOBJS$ac_delim
  11830. INTL_LIBTOOL_SUFFIX_PREFIX!$INTL_LIBTOOL_SUFFIX_PREFIX$ac_delim
  11831. INTLLIBS!$INTLLIBS$ac_delim
  11832. LIBINTL!$LIBINTL$ac_delim
  11833. LTLIBINTL!$LTLIBINTL$ac_delim
  11834. POSUB!$POSUB$ac_delim
  11835. LIBOBJS!$LIBOBJS$ac_delim
  11836. LTLIBOBJS!$LTLIBOBJS$ac_delim
  11837. _ACEOF
  11838. if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 48; then
  11839. break
  11840. elif $ac_last_try; then
  11841. { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
  11842. echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
  11843. { (exit 1); exit 1; }; }
  11844. else
  11845. ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
  11846. fi
  11847. done
  11848. ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
  11849. if test -n "$ac_eof"; then
  11850. ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
  11851. ac_eof=`expr $ac_eof + 1`
  11852. fi
  11853. cat >>$CONFIG_STATUS <<_ACEOF
  11854. cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
  11855. /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
  11856. _ACEOF
  11857. sed '
  11858. s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
  11859. s/^/s,@/; s/!/@,|#_!!_#|/
  11860. :n
  11861. t n
  11862. s/'"$ac_delim"'$/,g/; t
  11863. s/$/\\/; p
  11864. N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
  11865. ' >>$CONFIG_STATUS <conf$$subs.sed
  11866. rm -f conf$$subs.sed
  11867. cat >>$CONFIG_STATUS <<_ACEOF
  11868. :end
  11869. s/|#_!!_#|//g
  11870. CEOF$ac_eof
  11871. _ACEOF
  11872. # VPATH may cause trouble with some makes, so we remove $(srcdir),
  11873. # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
  11874. # trailing colons and then remove the whole line if VPATH becomes empty
  11875. # (actually we leave an empty line to preserve line numbers).
  11876. if test "x$srcdir" = x.; then
  11877. ac_vpsub='/^[ ]*VPATH[ ]*=/{
  11878. s/:*\$(srcdir):*/:/
  11879. s/:*\${srcdir}:*/:/
  11880. s/:*@srcdir@:*/:/
  11881. s/^\([^=]*=[ ]*\):*/\1/
  11882. s/:*$//
  11883. s/^[^=]*=[ ]*$//
  11884. }'
  11885. fi
  11886. cat >>$CONFIG_STATUS <<\_ACEOF
  11887. fi # test -n "$CONFIG_FILES"
  11888. for ac_tag in :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS
  11889. do
  11890. case $ac_tag in
  11891. :[FHLC]) ac_mode=$ac_tag; continue;;
  11892. esac
  11893. case $ac_mode$ac_tag in
  11894. :[FHL]*:*);;
  11895. :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
  11896. echo "$as_me: error: Invalid tag $ac_tag." >&2;}
  11897. { (exit 1); exit 1; }; };;
  11898. :[FH]-) ac_tag=-:-;;
  11899. :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
  11900. esac
  11901. ac_save_IFS=$IFS
  11902. IFS=:
  11903. set x $ac_tag
  11904. IFS=$ac_save_IFS
  11905. shift
  11906. ac_file=$1
  11907. shift
  11908. case $ac_mode in
  11909. :L) ac_source=$1;;
  11910. :[FH])
  11911. ac_file_inputs=
  11912. for ac_f
  11913. do
  11914. case $ac_f in
  11915. -) ac_f="$tmp/stdin";;
  11916. *) # Look for the file first in the build tree, then in the source tree
  11917. # (if the path is not absolute). The absolute path cannot be DOS-style,
  11918. # because $ac_f cannot contain `:'.
  11919. test -f "$ac_f" ||
  11920. case $ac_f in
  11921. [\\/$]*) false;;
  11922. *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
  11923. esac ||
  11924. { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
  11925. echo "$as_me: error: cannot find input file: $ac_f" >&2;}
  11926. { (exit 1); exit 1; }; };;
  11927. esac
  11928. ac_file_inputs="$ac_file_inputs $ac_f"
  11929. done
  11930. # Let's still pretend it is `configure' which instantiates (i.e., don't
  11931. # use $as_me), people would be surprised to read:
  11932. # /* config.h. Generated by config.status. */
  11933. configure_input="Generated from "`IFS=:
  11934. echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
  11935. if test x"$ac_file" != x-; then
  11936. configure_input="$ac_file. $configure_input"
  11937. { echo "$as_me:$LINENO: creating $ac_file" >&5
  11938. echo "$as_me: creating $ac_file" >&6;}
  11939. fi
  11940. case $ac_tag in
  11941. *:-:* | *:-) cat >"$tmp/stdin";;
  11942. esac
  11943. ;;
  11944. esac
  11945. ac_dir=`$as_dirname -- "$ac_file" ||
  11946. $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  11947. X"$ac_file" : 'X\(//\)[^/]' \| \
  11948. X"$ac_file" : 'X\(//\)$' \| \
  11949. X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
  11950. echo X"$ac_file" |
  11951. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  11952. s//\1/
  11953. q
  11954. }
  11955. /^X\(\/\/\)[^/].*/{
  11956. s//\1/
  11957. q
  11958. }
  11959. /^X\(\/\/\)$/{
  11960. s//\1/
  11961. q
  11962. }
  11963. /^X\(\/\).*/{
  11964. s//\1/
  11965. q
  11966. }
  11967. s/.*/./; q'`
  11968. { as_dir="$ac_dir"
  11969. case $as_dir in #(
  11970. -*) as_dir=./$as_dir;;
  11971. esac
  11972. test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
  11973. as_dirs=
  11974. while :; do
  11975. case $as_dir in #(
  11976. *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
  11977. *) as_qdir=$as_dir;;
  11978. esac
  11979. as_dirs="'$as_qdir' $as_dirs"
  11980. as_dir=`$as_dirname -- "$as_dir" ||
  11981. $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  11982. X"$as_dir" : 'X\(//\)[^/]' \| \
  11983. X"$as_dir" : 'X\(//\)$' \| \
  11984. X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
  11985. echo X"$as_dir" |
  11986. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  11987. s//\1/
  11988. q
  11989. }
  11990. /^X\(\/\/\)[^/].*/{
  11991. s//\1/
  11992. q
  11993. }
  11994. /^X\(\/\/\)$/{
  11995. s//\1/
  11996. q
  11997. }
  11998. /^X\(\/\).*/{
  11999. s//\1/
  12000. q
  12001. }
  12002. s/.*/./; q'`
  12003. test -d "$as_dir" && break
  12004. done
  12005. test -z "$as_dirs" || eval "mkdir $as_dirs"
  12006. } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
  12007. echo "$as_me: error: cannot create directory $as_dir" >&2;}
  12008. { (exit 1); exit 1; }; }; }
  12009. ac_builddir=.
  12010. case "$ac_dir" in
  12011. .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
  12012. *)
  12013. ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
  12014. # A ".." for each directory in $ac_dir_suffix.
  12015. ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
  12016. case $ac_top_builddir_sub in
  12017. "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
  12018. *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
  12019. esac ;;
  12020. esac
  12021. ac_abs_top_builddir=$ac_pwd
  12022. ac_abs_builddir=$ac_pwd$ac_dir_suffix
  12023. # for backward compatibility:
  12024. ac_top_builddir=$ac_top_build_prefix
  12025. case $srcdir in
  12026. .) # We are building in place.
  12027. ac_srcdir=.
  12028. ac_top_srcdir=$ac_top_builddir_sub
  12029. ac_abs_top_srcdir=$ac_pwd ;;
  12030. [\\/]* | ?:[\\/]* ) # Absolute name.
  12031. ac_srcdir=$srcdir$ac_dir_suffix;
  12032. ac_top_srcdir=$srcdir
  12033. ac_abs_top_srcdir=$srcdir ;;
  12034. *) # Relative name.
  12035. ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
  12036. ac_top_srcdir=$ac_top_build_prefix$srcdir
  12037. ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
  12038. esac
  12039. ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
  12040. case $ac_mode in
  12041. :F)
  12042. #
  12043. # CONFIG_FILE
  12044. #
  12045. case $INSTALL in
  12046. [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
  12047. *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
  12048. esac
  12049. _ACEOF
  12050. cat >>$CONFIG_STATUS <<\_ACEOF
  12051. # If the template does not know about datarootdir, expand it.
  12052. # FIXME: This hack should be removed a few years after 2.60.
  12053. ac_datarootdir_hack=; ac_datarootdir_seen=
  12054. case `sed -n '/datarootdir/ {
  12055. p
  12056. q
  12057. }
  12058. /@datadir@/p
  12059. /@docdir@/p
  12060. /@infodir@/p
  12061. /@localedir@/p
  12062. /@mandir@/p
  12063. ' $ac_file_inputs` in
  12064. *datarootdir*) ac_datarootdir_seen=yes;;
  12065. *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
  12066. { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
  12067. echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
  12068. _ACEOF
  12069. cat >>$CONFIG_STATUS <<_ACEOF
  12070. ac_datarootdir_hack='
  12071. s&@datadir@&$datadir&g
  12072. s&@docdir@&$docdir&g
  12073. s&@infodir@&$infodir&g
  12074. s&@localedir@&$localedir&g
  12075. s&@mandir@&$mandir&g
  12076. s&\\\${datarootdir}&$datarootdir&g' ;;
  12077. esac
  12078. _ACEOF
  12079. # Neutralize VPATH when `$srcdir' = `.'.
  12080. # Shell code in configure.ac might set extrasub.
  12081. # FIXME: do we really want to maintain this feature?
  12082. cat >>$CONFIG_STATUS <<_ACEOF
  12083. sed "$ac_vpsub
  12084. $extrasub
  12085. _ACEOF
  12086. cat >>$CONFIG_STATUS <<\_ACEOF
  12087. :t
  12088. /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
  12089. s&@configure_input@&$configure_input&;t t
  12090. s&@top_builddir@&$ac_top_builddir_sub&;t t
  12091. s&@srcdir@&$ac_srcdir&;t t
  12092. s&@abs_srcdir@&$ac_abs_srcdir&;t t
  12093. s&@top_srcdir@&$ac_top_srcdir&;t t
  12094. s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
  12095. s&@builddir@&$ac_builddir&;t t
  12096. s&@abs_builddir@&$ac_abs_builddir&;t t
  12097. s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
  12098. s&@INSTALL@&$ac_INSTALL&;t t
  12099. $ac_datarootdir_hack
  12100. " $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" >$tmp/out
  12101. test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
  12102. { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
  12103. { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
  12104. { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
  12105. which seems to be undefined. Please make sure it is defined." >&5
  12106. echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
  12107. which seems to be undefined. Please make sure it is defined." >&2;}
  12108. rm -f "$tmp/stdin"
  12109. case $ac_file in
  12110. -) cat "$tmp/out"; rm -f "$tmp/out";;
  12111. *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
  12112. esac
  12113. ;;
  12114. :H)
  12115. #
  12116. # CONFIG_HEADER
  12117. #
  12118. _ACEOF
  12119. # Transform confdefs.h into a sed script `conftest.defines', that
  12120. # substitutes the proper values into config.h.in to produce config.h.
  12121. rm -f conftest.defines conftest.tail
  12122. # First, append a space to every undef/define line, to ease matching.
  12123. echo 's/$/ /' >conftest.defines
  12124. # Then, protect against being on the right side of a sed subst, or in
  12125. # an unquoted here document, in config.status. If some macros were
  12126. # called several times there might be several #defines for the same
  12127. # symbol, which is useless. But do not sort them, since the last
  12128. # AC_DEFINE must be honored.
  12129. ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
  12130. # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
  12131. # NAME is the cpp macro being defined, VALUE is the value it is being given.
  12132. # PARAMS is the parameter list in the macro definition--in most cases, it's
  12133. # just an empty string.
  12134. ac_dA='s,^\\([ #]*\\)[^ ]*\\([ ]*'
  12135. ac_dB='\\)[ (].*,\\1define\\2'
  12136. ac_dC=' '
  12137. ac_dD=' ,'
  12138. uniq confdefs.h |
  12139. sed -n '
  12140. t rset
  12141. :rset
  12142. s/^[ ]*#[ ]*define[ ][ ]*//
  12143. t ok
  12144. d
  12145. :ok
  12146. s/[\\&,]/\\&/g
  12147. s/^\('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
  12148. s/^\('"$ac_word_re"'\)[ ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
  12149. ' >>conftest.defines
  12150. # Remove the space that was appended to ease matching.
  12151. # Then replace #undef with comments. This is necessary, for
  12152. # example, in the case of _POSIX_SOURCE, which is predefined and required
  12153. # on some systems where configure will not decide to define it.
  12154. # (The regexp can be short, since the line contains either #define or #undef.)
  12155. echo 's/ $//
  12156. s,^[ #]*u.*,/* & */,' >>conftest.defines
  12157. # Break up conftest.defines:
  12158. ac_max_sed_lines=50
  12159. # First sed command is: sed -f defines.sed $ac_file_inputs >"$tmp/out1"
  12160. # Second one is: sed -f defines.sed "$tmp/out1" >"$tmp/out2"
  12161. # Third one will be: sed -f defines.sed "$tmp/out2" >"$tmp/out1"
  12162. # et cetera.
  12163. ac_in='$ac_file_inputs'
  12164. ac_out='"$tmp/out1"'
  12165. ac_nxt='"$tmp/out2"'
  12166. while :
  12167. do
  12168. # Write a here document:
  12169. cat >>$CONFIG_STATUS <<_ACEOF
  12170. # First, check the format of the line:
  12171. cat >"\$tmp/defines.sed" <<\\CEOF
  12172. /^[ ]*#[ ]*undef[ ][ ]*$ac_word_re[ ]*\$/b def
  12173. /^[ ]*#[ ]*define[ ][ ]*$ac_word_re[( ]/b def
  12174. b
  12175. :def
  12176. _ACEOF
  12177. sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
  12178. echo 'CEOF
  12179. sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
  12180. ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
  12181. sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
  12182. grep . conftest.tail >/dev/null || break
  12183. rm -f conftest.defines
  12184. mv conftest.tail conftest.defines
  12185. done
  12186. rm -f conftest.defines conftest.tail
  12187. echo "ac_result=$ac_in" >>$CONFIG_STATUS
  12188. cat >>$CONFIG_STATUS <<\_ACEOF
  12189. if test x"$ac_file" != x-; then
  12190. echo "/* $configure_input */" >"$tmp/config.h"
  12191. cat "$ac_result" >>"$tmp/config.h"
  12192. if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
  12193. { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
  12194. echo "$as_me: $ac_file is unchanged" >&6;}
  12195. else
  12196. rm -f $ac_file
  12197. mv "$tmp/config.h" $ac_file
  12198. fi
  12199. else
  12200. echo "/* $configure_input */"
  12201. cat "$ac_result"
  12202. fi
  12203. rm -f "$tmp/out12"
  12204. # Compute $ac_file's index in $config_headers.
  12205. _am_stamp_count=1
  12206. for _am_header in $config_headers :; do
  12207. case $_am_header in
  12208. $ac_file | $ac_file:* )
  12209. break ;;
  12210. * )
  12211. _am_stamp_count=`expr $_am_stamp_count + 1` ;;
  12212. esac
  12213. done
  12214. echo "timestamp for $ac_file" >`$as_dirname -- $ac_file ||
  12215. $as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  12216. X$ac_file : 'X\(//\)[^/]' \| \
  12217. X$ac_file : 'X\(//\)$' \| \
  12218. X$ac_file : 'X\(/\)' \| . 2>/dev/null ||
  12219. echo X$ac_file |
  12220. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  12221. s//\1/
  12222. q
  12223. }
  12224. /^X\(\/\/\)[^/].*/{
  12225. s//\1/
  12226. q
  12227. }
  12228. /^X\(\/\/\)$/{
  12229. s//\1/
  12230. q
  12231. }
  12232. /^X\(\/\).*/{
  12233. s//\1/
  12234. q
  12235. }
  12236. s/.*/./; q'`/stamp-h$_am_stamp_count
  12237. ;;
  12238. :C) { echo "$as_me:$LINENO: executing $ac_file commands" >&5
  12239. echo "$as_me: executing $ac_file commands" >&6;}
  12240. ;;
  12241. esac
  12242. case $ac_file$ac_mode in
  12243. "depfiles":C) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
  12244. # Strip MF so we end up with the name of the file.
  12245. mf=`echo "$mf" | sed -e 's/:.*$//'`
  12246. # Check whether this is an Automake generated Makefile or not.
  12247. # We used to match only the files named `Makefile.in', but
  12248. # some people rename them; so instead we look at the file content.
  12249. # Grep'ing the first line is not enough: some people post-process
  12250. # each Makefile.in and add a new line on top of each file to say so.
  12251. # So let's grep whole file.
  12252. if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
  12253. dirpart=`$as_dirname -- "$mf" ||
  12254. $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  12255. X"$mf" : 'X\(//\)[^/]' \| \
  12256. X"$mf" : 'X\(//\)$' \| \
  12257. X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
  12258. echo X"$mf" |
  12259. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  12260. s//\1/
  12261. q
  12262. }
  12263. /^X\(\/\/\)[^/].*/{
  12264. s//\1/
  12265. q
  12266. }
  12267. /^X\(\/\/\)$/{
  12268. s//\1/
  12269. q
  12270. }
  12271. /^X\(\/\).*/{
  12272. s//\1/
  12273. q
  12274. }
  12275. s/.*/./; q'`
  12276. else
  12277. continue
  12278. fi
  12279. # Extract the definition of DEPDIR, am__include, and am__quote
  12280. # from the Makefile without running `make'.
  12281. DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
  12282. test -z "$DEPDIR" && continue
  12283. am__include=`sed -n 's/^am__include = //p' < "$mf"`
  12284. test -z "am__include" && continue
  12285. am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
  12286. # When using ansi2knr, U may be empty or an underscore; expand it
  12287. U=`sed -n 's/^U = //p' < "$mf"`
  12288. # Find all dependency output files, they are included files with
  12289. # $(DEPDIR) in their names. We invoke sed twice because it is the
  12290. # simplest approach to changing $(DEPDIR) to its actual value in the
  12291. # expansion.
  12292. for file in `sed -n "
  12293. s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
  12294. sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
  12295. # Make sure the directory exists.
  12296. test -f "$dirpart/$file" && continue
  12297. fdir=`$as_dirname -- "$file" ||
  12298. $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  12299. X"$file" : 'X\(//\)[^/]' \| \
  12300. X"$file" : 'X\(//\)$' \| \
  12301. X"$file" : 'X\(/\)' \| . 2>/dev/null ||
  12302. echo X"$file" |
  12303. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  12304. s//\1/
  12305. q
  12306. }
  12307. /^X\(\/\/\)[^/].*/{
  12308. s//\1/
  12309. q
  12310. }
  12311. /^X\(\/\/\)$/{
  12312. s//\1/
  12313. q
  12314. }
  12315. /^X\(\/\).*/{
  12316. s//\1/
  12317. q
  12318. }
  12319. s/.*/./; q'`
  12320. { as_dir=$dirpart/$fdir
  12321. case $as_dir in #(
  12322. -*) as_dir=./$as_dir;;
  12323. esac
  12324. test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
  12325. as_dirs=
  12326. while :; do
  12327. case $as_dir in #(
  12328. *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
  12329. *) as_qdir=$as_dir;;
  12330. esac
  12331. as_dirs="'$as_qdir' $as_dirs"
  12332. as_dir=`$as_dirname -- "$as_dir" ||
  12333. $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  12334. X"$as_dir" : 'X\(//\)[^/]' \| \
  12335. X"$as_dir" : 'X\(//\)$' \| \
  12336. X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
  12337. echo X"$as_dir" |
  12338. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  12339. s//\1/
  12340. q
  12341. }
  12342. /^X\(\/\/\)[^/].*/{
  12343. s//\1/
  12344. q
  12345. }
  12346. /^X\(\/\/\)$/{
  12347. s//\1/
  12348. q
  12349. }
  12350. /^X\(\/\).*/{
  12351. s//\1/
  12352. q
  12353. }
  12354. s/.*/./; q'`
  12355. test -d "$as_dir" && break
  12356. done
  12357. test -z "$as_dirs" || eval "mkdir $as_dirs"
  12358. } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
  12359. echo "$as_me: error: cannot create directory $as_dir" >&2;}
  12360. { (exit 1); exit 1; }; }; }
  12361. # echo "creating $dirpart/$file"
  12362. echo '# dummy' > "$dirpart/$file"
  12363. done
  12364. done
  12365. ;;
  12366. "default-1":C)
  12367. for ac_file in $CONFIG_FILES; do
  12368. # Support "outfile[:infile[:infile...]]"
  12369. case "$ac_file" in
  12370. *:*) ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
  12371. esac
  12372. # PO directories have a Makefile.in generated from Makefile.in.in.
  12373. case "$ac_file" in */Makefile.in)
  12374. # Adjust a relative srcdir.
  12375. ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'`
  12376. ac_dir_suffix="/`echo "$ac_dir"|sed 's%^\./%%'`"
  12377. ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'`
  12378. # In autoconf-2.13 it is called $ac_given_srcdir.
  12379. # In autoconf-2.50 it is called $srcdir.
  12380. test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir"
  12381. case "$ac_given_srcdir" in
  12382. .) top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;;
  12383. /*) top_srcdir="$ac_given_srcdir" ;;
  12384. *) top_srcdir="$ac_dots$ac_given_srcdir" ;;
  12385. esac
  12386. if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then
  12387. rm -f "$ac_dir/POTFILES"
  12388. test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES"
  12389. cat "$ac_given_srcdir/$ac_dir/POTFILES.in" | sed -e "/^#/d" -e "/^[ ]*\$/d" -e "s,.*, $top_srcdir/& \\\\," | sed -e "\$s/\(.*\) \\\\/\1/" > "$ac_dir/POTFILES"
  12390. POMAKEFILEDEPS="POTFILES.in"
  12391. # ALL_LINGUAS, POFILES, GMOFILES, UPDATEPOFILES, DUMMYPOFILES depend
  12392. # on $ac_dir but don't depend on user-specified configuration
  12393. # parameters.
  12394. if test -f "$ac_given_srcdir/$ac_dir/LINGUAS"; then
  12395. # The LINGUAS file contains the set of available languages.
  12396. if test -n "$OBSOLETE_ALL_LINGUAS"; then
  12397. test -n "$as_me" && echo "$as_me: setting ALL_LINGUAS in configure.in is obsolete" || echo "setting ALL_LINGUAS in configure.in is obsolete"
  12398. fi
  12399. ALL_LINGUAS_=`sed -e "/^#/d" "$ac_given_srcdir/$ac_dir/LINGUAS"`
  12400. # Hide the ALL_LINGUAS assigment from automake.
  12401. eval 'ALL_LINGUAS''=$ALL_LINGUAS_'
  12402. POMAKEFILEDEPS="$POMAKEFILEDEPS LINGUAS"
  12403. else
  12404. # The set of available languages was given in configure.in.
  12405. eval 'ALL_LINGUAS''=$OBSOLETE_ALL_LINGUAS'
  12406. fi
  12407. case "$ac_given_srcdir" in
  12408. .) srcdirpre= ;;
  12409. *) srcdirpre='$(srcdir)/' ;;
  12410. esac
  12411. POFILES=
  12412. GMOFILES=
  12413. UPDATEPOFILES=
  12414. DUMMYPOFILES=
  12415. for lang in $ALL_LINGUAS; do
  12416. POFILES="$POFILES $srcdirpre$lang.po"
  12417. GMOFILES="$GMOFILES $srcdirpre$lang.gmo"
  12418. UPDATEPOFILES="$UPDATEPOFILES $lang.po-update"
  12419. DUMMYPOFILES="$DUMMYPOFILES $lang.nop"
  12420. done
  12421. # CATALOGS depends on both $ac_dir and the user's LINGUAS
  12422. # environment variable.
  12423. INST_LINGUAS=
  12424. if test -n "$ALL_LINGUAS"; then
  12425. for presentlang in $ALL_LINGUAS; do
  12426. useit=no
  12427. if test "%UNSET%" != "$LINGUAS"; then
  12428. desiredlanguages="$LINGUAS"
  12429. else
  12430. desiredlanguages="$ALL_LINGUAS"
  12431. fi
  12432. for desiredlang in $desiredlanguages; do
  12433. # Use the presentlang catalog if desiredlang is
  12434. # a. equal to presentlang, or
  12435. # b. a variant of presentlang (because in this case,
  12436. # presentlang can be used as a fallback for messages
  12437. # which are not translated in the desiredlang catalog).
  12438. case "$desiredlang" in
  12439. "$presentlang"*) useit=yes;;
  12440. esac
  12441. done
  12442. if test $useit = yes; then
  12443. INST_LINGUAS="$INST_LINGUAS $presentlang"
  12444. fi
  12445. done
  12446. fi
  12447. CATALOGS=
  12448. if test -n "$INST_LINGUAS"; then
  12449. for lang in $INST_LINGUAS; do
  12450. CATALOGS="$CATALOGS $lang.gmo"
  12451. done
  12452. fi
  12453. test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" || echo "creating $ac_dir/Makefile"
  12454. 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"
  12455. for f in "$ac_given_srcdir/$ac_dir"/Rules-*; do
  12456. if test -f "$f"; then
  12457. case "$f" in
  12458. *.orig | *.bak | *~) ;;
  12459. *) cat "$f" >> "$ac_dir/Makefile" ;;
  12460. esac
  12461. fi
  12462. done
  12463. fi
  12464. ;;
  12465. esac
  12466. done ;;
  12467. esac
  12468. done # for ac_tag
  12469. { (exit 0); exit 0; }
  12470. _ACEOF
  12471. chmod +x $CONFIG_STATUS
  12472. ac_clean_files=$ac_clean_files_save
  12473. # configure is writing to config.log, and then calls config.status.
  12474. # config.status does its own redirection, appending to config.log.
  12475. # Unfortunately, on DOS this fails, as config.log is still kept open
  12476. # by configure, so config.status won't be able to write to it; its
  12477. # output is simply discarded. So we exec the FD to /dev/null,
  12478. # effectively closing config.log, so it can be properly (re)opened and
  12479. # appended to by config.status. When coming back to configure, we
  12480. # need to make the FD available again.
  12481. if test "$no_create" != yes; then
  12482. ac_cs_success=:
  12483. ac_config_status_args=
  12484. test "$silent" = yes &&
  12485. ac_config_status_args="$ac_config_status_args --quiet"
  12486. exec 5>/dev/null
  12487. $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
  12488. exec 5>>config.log
  12489. # Use ||, not &&, to avoid exiting from the if with $? = 1, which
  12490. # would make configure fail if this is the last instruction.
  12491. $ac_cs_success || { (exit 1); exit 1; }
  12492. fi