configure 479 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531153215331534153515361537153815391540154115421543154415451546154715481549155015511552155315541555155615571558155915601561156215631564156515661567156815691570157115721573157415751576157715781579158015811582158315841585158615871588158915901591159215931594159515961597159815991600160116021603160416051606160716081609161016111612161316141615161616171618161916201621162216231624162516261627162816291630163116321633163416351636163716381639164016411642164316441645164616471648164916501651165216531654165516561657165816591660166116621663166416651666166716681669167016711672167316741675167616771678167916801681168216831684168516861687168816891690169116921693169416951696169716981699170017011702170317041705170617071708170917101711171217131714171517161717171817191720172117221723172417251726172717281729173017311732173317341735173617371738173917401741174217431744174517461747174817491750175117521753175417551756175717581759176017611762176317641765176617671768176917701771177217731774177517761777177817791780178117821783178417851786178717881789179017911792179317941795179617971798179918001801180218031804180518061807180818091810181118121813181418151816181718181819182018211822182318241825182618271828182918301831183218331834183518361837183818391840184118421843184418451846184718481849185018511852185318541855185618571858185918601861186218631864186518661867186818691870187118721873187418751876187718781879188018811882188318841885188618871888188918901891189218931894189518961897189818991900190119021903190419051906190719081909191019111912191319141915191619171918191919201921192219231924192519261927192819291930193119321933193419351936193719381939194019411942194319441945194619471948194919501951195219531954195519561957195819591960196119621963196419651966196719681969197019711972197319741975197619771978197919801981198219831984198519861987198819891990199119921993199419951996199719981999200020012002200320042005200620072008200920102011201220132014201520162017201820192020202120222023202420252026202720282029203020312032203320342035203620372038203920402041204220432044204520462047204820492050205120522053205420552056205720582059206020612062206320642065206620672068206920702071207220732074207520762077207820792080208120822083208420852086208720882089209020912092209320942095209620972098209921002101210221032104210521062107210821092110211121122113211421152116211721182119212021212122212321242125212621272128212921302131213221332134213521362137213821392140214121422143214421452146214721482149215021512152215321542155215621572158215921602161216221632164216521662167216821692170217121722173217421752176217721782179218021812182218321842185218621872188218921902191219221932194219521962197219821992200220122022203220422052206220722082209221022112212221322142215221622172218221922202221222222232224222522262227222822292230223122322233223422352236223722382239224022412242224322442245224622472248224922502251225222532254225522562257225822592260226122622263226422652266226722682269227022712272227322742275227622772278227922802281228222832284228522862287228822892290229122922293229422952296229722982299230023012302230323042305230623072308230923102311231223132314231523162317231823192320232123222323232423252326232723282329233023312332233323342335233623372338233923402341234223432344234523462347234823492350235123522353235423552356235723582359236023612362236323642365236623672368236923702371237223732374237523762377237823792380238123822383238423852386238723882389239023912392239323942395239623972398239924002401240224032404240524062407240824092410241124122413241424152416241724182419242024212422242324242425242624272428242924302431243224332434243524362437243824392440244124422443244424452446244724482449245024512452245324542455245624572458245924602461246224632464246524662467246824692470247124722473247424752476247724782479248024812482248324842485248624872488248924902491249224932494249524962497249824992500250125022503250425052506250725082509251025112512251325142515251625172518251925202521252225232524252525262527252825292530253125322533253425352536253725382539254025412542254325442545254625472548254925502551255225532554255525562557255825592560256125622563256425652566256725682569257025712572257325742575257625772578257925802581258225832584258525862587258825892590259125922593259425952596259725982599260026012602260326042605260626072608260926102611261226132614261526162617261826192620262126222623262426252626262726282629263026312632263326342635263626372638263926402641264226432644264526462647264826492650265126522653265426552656265726582659266026612662266326642665266626672668266926702671267226732674267526762677267826792680268126822683268426852686268726882689269026912692269326942695269626972698269927002701270227032704270527062707270827092710271127122713271427152716271727182719272027212722272327242725272627272728272927302731273227332734273527362737273827392740274127422743274427452746274727482749275027512752275327542755275627572758275927602761276227632764276527662767276827692770277127722773277427752776277727782779278027812782278327842785278627872788278927902791279227932794279527962797279827992800280128022803280428052806280728082809281028112812281328142815281628172818281928202821282228232824282528262827282828292830283128322833283428352836283728382839284028412842284328442845284628472848284928502851285228532854285528562857285828592860286128622863286428652866286728682869287028712872287328742875287628772878287928802881288228832884288528862887288828892890289128922893289428952896289728982899290029012902290329042905290629072908290929102911291229132914291529162917291829192920292129222923292429252926292729282929293029312932293329342935293629372938293929402941294229432944294529462947294829492950295129522953295429552956295729582959296029612962296329642965296629672968296929702971297229732974297529762977297829792980298129822983298429852986298729882989299029912992299329942995299629972998299930003001300230033004300530063007300830093010301130123013301430153016301730183019302030213022302330243025302630273028302930303031303230333034303530363037303830393040304130423043304430453046304730483049305030513052305330543055305630573058305930603061306230633064306530663067306830693070307130723073307430753076307730783079308030813082308330843085308630873088308930903091309230933094309530963097309830993100310131023103310431053106310731083109311031113112311331143115311631173118311931203121312231233124312531263127312831293130313131323133313431353136313731383139314031413142314331443145314631473148314931503151315231533154315531563157315831593160316131623163316431653166316731683169317031713172317331743175317631773178317931803181318231833184318531863187318831893190319131923193319431953196319731983199320032013202320332043205320632073208320932103211321232133214321532163217321832193220322132223223322432253226322732283229323032313232323332343235323632373238323932403241324232433244324532463247324832493250325132523253325432553256325732583259326032613262326332643265326632673268326932703271327232733274327532763277327832793280328132823283328432853286328732883289329032913292329332943295329632973298329933003301330233033304330533063307330833093310331133123313331433153316331733183319332033213322332333243325332633273328332933303331333233333334333533363337333833393340334133423343334433453346334733483349335033513352335333543355335633573358335933603361336233633364336533663367336833693370337133723373337433753376337733783379338033813382338333843385338633873388338933903391339233933394339533963397339833993400340134023403340434053406340734083409341034113412341334143415341634173418341934203421342234233424342534263427342834293430343134323433343434353436343734383439344034413442344334443445344634473448344934503451345234533454345534563457345834593460346134623463346434653466346734683469347034713472347334743475347634773478347934803481348234833484348534863487348834893490349134923493349434953496349734983499350035013502350335043505350635073508350935103511351235133514351535163517351835193520352135223523352435253526352735283529353035313532353335343535353635373538353935403541354235433544354535463547354835493550355135523553355435553556355735583559356035613562356335643565356635673568356935703571357235733574357535763577357835793580358135823583358435853586358735883589359035913592359335943595359635973598359936003601360236033604360536063607360836093610361136123613361436153616361736183619362036213622362336243625362636273628362936303631363236333634363536363637363836393640364136423643364436453646364736483649365036513652365336543655365636573658365936603661366236633664366536663667366836693670367136723673367436753676367736783679368036813682368336843685368636873688368936903691369236933694369536963697369836993700370137023703370437053706370737083709371037113712371337143715371637173718371937203721372237233724372537263727372837293730373137323733373437353736373737383739374037413742374337443745374637473748374937503751375237533754375537563757375837593760376137623763376437653766376737683769377037713772377337743775377637773778377937803781378237833784378537863787378837893790379137923793379437953796379737983799380038013802380338043805380638073808380938103811381238133814381538163817381838193820382138223823382438253826382738283829383038313832383338343835383638373838383938403841384238433844384538463847384838493850385138523853385438553856385738583859386038613862386338643865386638673868386938703871387238733874387538763877387838793880388138823883388438853886388738883889389038913892389338943895389638973898389939003901390239033904390539063907390839093910391139123913391439153916391739183919392039213922392339243925392639273928392939303931393239333934393539363937393839393940394139423943394439453946394739483949395039513952395339543955395639573958395939603961396239633964396539663967396839693970397139723973397439753976397739783979398039813982398339843985398639873988398939903991399239933994399539963997399839994000400140024003400440054006400740084009401040114012401340144015401640174018401940204021402240234024402540264027402840294030403140324033403440354036403740384039404040414042404340444045404640474048404940504051405240534054405540564057405840594060406140624063406440654066406740684069407040714072407340744075407640774078407940804081408240834084408540864087408840894090409140924093409440954096409740984099410041014102410341044105410641074108410941104111411241134114411541164117411841194120412141224123412441254126412741284129413041314132413341344135413641374138413941404141414241434144414541464147414841494150415141524153415441554156415741584159416041614162416341644165416641674168416941704171417241734174417541764177417841794180418141824183418441854186418741884189419041914192419341944195419641974198419942004201420242034204420542064207420842094210421142124213421442154216421742184219422042214222422342244225422642274228422942304231423242334234423542364237423842394240424142424243424442454246424742484249425042514252425342544255425642574258425942604261426242634264426542664267426842694270427142724273427442754276427742784279428042814282428342844285428642874288428942904291429242934294429542964297429842994300430143024303430443054306430743084309431043114312431343144315431643174318431943204321432243234324432543264327432843294330433143324333433443354336433743384339434043414342434343444345434643474348434943504351435243534354435543564357435843594360436143624363436443654366436743684369437043714372437343744375437643774378437943804381438243834384438543864387438843894390439143924393439443954396439743984399440044014402440344044405440644074408440944104411441244134414441544164417441844194420442144224423442444254426442744284429443044314432443344344435443644374438443944404441444244434444444544464447444844494450445144524453445444554456445744584459446044614462446344644465446644674468446944704471447244734474447544764477447844794480448144824483448444854486448744884489449044914492449344944495449644974498449945004501450245034504450545064507450845094510451145124513451445154516451745184519452045214522452345244525452645274528452945304531453245334534453545364537453845394540454145424543454445454546454745484549455045514552455345544555455645574558455945604561456245634564456545664567456845694570457145724573457445754576457745784579458045814582458345844585458645874588458945904591459245934594459545964597459845994600460146024603460446054606460746084609461046114612461346144615461646174618461946204621462246234624462546264627462846294630463146324633463446354636463746384639464046414642464346444645464646474648464946504651465246534654465546564657465846594660466146624663466446654666466746684669467046714672467346744675467646774678467946804681468246834684468546864687468846894690469146924693469446954696469746984699470047014702470347044705470647074708470947104711471247134714471547164717471847194720472147224723472447254726472747284729473047314732473347344735473647374738473947404741474247434744474547464747474847494750475147524753475447554756475747584759476047614762476347644765476647674768476947704771477247734774477547764777477847794780478147824783478447854786478747884789479047914792479347944795479647974798479948004801480248034804480548064807480848094810481148124813481448154816481748184819482048214822482348244825482648274828482948304831483248334834483548364837483848394840484148424843484448454846484748484849485048514852485348544855485648574858485948604861486248634864486548664867486848694870487148724873487448754876487748784879488048814882488348844885488648874888488948904891489248934894489548964897489848994900490149024903490449054906490749084909491049114912491349144915491649174918491949204921492249234924492549264927492849294930493149324933493449354936493749384939494049414942494349444945494649474948494949504951495249534954495549564957495849594960496149624963496449654966496749684969497049714972497349744975497649774978497949804981498249834984498549864987498849894990499149924993499449954996499749984999500050015002500350045005500650075008500950105011501250135014501550165017501850195020502150225023502450255026502750285029503050315032503350345035503650375038503950405041504250435044504550465047504850495050505150525053505450555056505750585059506050615062506350645065506650675068506950705071507250735074507550765077507850795080508150825083508450855086508750885089509050915092509350945095509650975098509951005101510251035104510551065107510851095110511151125113511451155116511751185119512051215122512351245125512651275128512951305131513251335134513551365137513851395140514151425143514451455146514751485149515051515152515351545155515651575158515951605161516251635164516551665167516851695170517151725173517451755176517751785179518051815182518351845185518651875188518951905191519251935194519551965197519851995200520152025203520452055206520752085209521052115212521352145215521652175218521952205221522252235224522552265227522852295230523152325233523452355236523752385239524052415242524352445245524652475248524952505251525252535254525552565257525852595260526152625263526452655266526752685269527052715272527352745275527652775278527952805281528252835284528552865287528852895290529152925293529452955296529752985299530053015302530353045305530653075308530953105311531253135314531553165317531853195320532153225323532453255326532753285329533053315332533353345335533653375338533953405341534253435344534553465347534853495350535153525353535453555356535753585359536053615362536353645365536653675368536953705371537253735374537553765377537853795380538153825383538453855386538753885389539053915392539353945395539653975398539954005401540254035404540554065407540854095410541154125413541454155416541754185419542054215422542354245425542654275428542954305431543254335434543554365437543854395440544154425443544454455446544754485449545054515452545354545455545654575458545954605461546254635464546554665467546854695470547154725473547454755476547754785479548054815482548354845485548654875488548954905491549254935494549554965497549854995500550155025503550455055506550755085509551055115512551355145515551655175518551955205521552255235524552555265527552855295530553155325533553455355536553755385539554055415542554355445545554655475548554955505551555255535554555555565557555855595560556155625563556455655566556755685569557055715572557355745575557655775578557955805581558255835584558555865587558855895590559155925593559455955596559755985599560056015602560356045605560656075608560956105611561256135614561556165617561856195620562156225623562456255626562756285629563056315632563356345635563656375638563956405641564256435644564556465647564856495650565156525653565456555656565756585659566056615662566356645665566656675668566956705671567256735674567556765677567856795680568156825683568456855686568756885689569056915692569356945695569656975698569957005701570257035704570557065707570857095710571157125713571457155716571757185719572057215722572357245725572657275728572957305731573257335734573557365737573857395740574157425743574457455746574757485749575057515752575357545755575657575758575957605761576257635764576557665767576857695770577157725773577457755776577757785779578057815782578357845785578657875788578957905791579257935794579557965797579857995800580158025803580458055806580758085809581058115812581358145815581658175818581958205821582258235824582558265827582858295830583158325833583458355836583758385839584058415842584358445845584658475848584958505851585258535854585558565857585858595860586158625863586458655866586758685869587058715872587358745875587658775878587958805881588258835884588558865887588858895890589158925893589458955896589758985899590059015902590359045905590659075908590959105911591259135914591559165917591859195920592159225923592459255926592759285929593059315932593359345935593659375938593959405941594259435944594559465947594859495950595159525953595459555956595759585959596059615962596359645965596659675968596959705971597259735974597559765977597859795980598159825983598459855986598759885989599059915992599359945995599659975998599960006001600260036004600560066007600860096010601160126013601460156016601760186019602060216022602360246025602660276028602960306031603260336034603560366037603860396040604160426043604460456046604760486049605060516052605360546055605660576058605960606061606260636064606560666067606860696070607160726073607460756076607760786079608060816082608360846085608660876088608960906091609260936094609560966097609860996100610161026103610461056106610761086109611061116112611361146115611661176118611961206121612261236124612561266127612861296130613161326133613461356136613761386139614061416142614361446145614661476148614961506151615261536154615561566157615861596160616161626163616461656166616761686169617061716172617361746175617661776178617961806181618261836184618561866187618861896190619161926193619461956196619761986199620062016202620362046205620662076208620962106211621262136214621562166217621862196220622162226223622462256226622762286229623062316232623362346235623662376238623962406241624262436244624562466247624862496250625162526253625462556256625762586259626062616262626362646265626662676268626962706271627262736274627562766277627862796280628162826283628462856286628762886289629062916292629362946295629662976298629963006301630263036304630563066307630863096310631163126313631463156316631763186319632063216322632363246325632663276328632963306331633263336334633563366337633863396340634163426343634463456346634763486349635063516352635363546355635663576358635963606361636263636364636563666367636863696370637163726373637463756376637763786379638063816382638363846385638663876388638963906391639263936394639563966397639863996400640164026403640464056406640764086409641064116412641364146415641664176418641964206421642264236424642564266427642864296430643164326433643464356436643764386439644064416442644364446445644664476448644964506451645264536454645564566457645864596460646164626463646464656466646764686469647064716472647364746475647664776478647964806481648264836484648564866487648864896490649164926493649464956496649764986499650065016502650365046505650665076508650965106511651265136514651565166517651865196520652165226523652465256526652765286529653065316532653365346535653665376538653965406541654265436544654565466547654865496550655165526553655465556556655765586559656065616562656365646565656665676568656965706571657265736574657565766577657865796580658165826583658465856586658765886589659065916592659365946595659665976598659966006601660266036604660566066607660866096610661166126613661466156616661766186619662066216622662366246625662666276628662966306631663266336634663566366637663866396640664166426643664466456646664766486649665066516652665366546655665666576658665966606661666266636664666566666667666866696670667166726673667466756676667766786679668066816682668366846685668666876688668966906691669266936694669566966697669866996700670167026703670467056706670767086709671067116712671367146715671667176718671967206721672267236724672567266727672867296730673167326733673467356736673767386739674067416742674367446745674667476748674967506751675267536754675567566757675867596760676167626763676467656766676767686769677067716772677367746775677667776778677967806781678267836784678567866787678867896790679167926793679467956796679767986799680068016802680368046805680668076808680968106811681268136814681568166817681868196820682168226823682468256826682768286829683068316832683368346835683668376838683968406841684268436844684568466847684868496850685168526853685468556856685768586859686068616862686368646865686668676868686968706871687268736874687568766877687868796880688168826883688468856886688768886889689068916892689368946895689668976898689969006901690269036904690569066907690869096910691169126913691469156916691769186919692069216922692369246925692669276928692969306931693269336934693569366937693869396940694169426943694469456946694769486949695069516952695369546955695669576958695969606961696269636964696569666967696869696970697169726973697469756976697769786979698069816982698369846985698669876988698969906991699269936994699569966997699869997000700170027003700470057006700770087009701070117012701370147015701670177018701970207021702270237024702570267027702870297030703170327033703470357036703770387039704070417042704370447045704670477048704970507051705270537054705570567057705870597060706170627063706470657066706770687069707070717072707370747075707670777078707970807081708270837084708570867087708870897090709170927093709470957096709770987099710071017102710371047105710671077108710971107111711271137114711571167117711871197120712171227123712471257126712771287129713071317132713371347135713671377138713971407141714271437144714571467147714871497150715171527153715471557156715771587159716071617162716371647165716671677168716971707171717271737174717571767177717871797180718171827183718471857186718771887189719071917192719371947195719671977198719972007201720272037204720572067207720872097210721172127213721472157216721772187219722072217222722372247225722672277228722972307231723272337234723572367237723872397240724172427243724472457246724772487249725072517252725372547255725672577258725972607261726272637264726572667267726872697270727172727273727472757276727772787279728072817282728372847285728672877288728972907291729272937294729572967297729872997300730173027303730473057306730773087309731073117312731373147315731673177318731973207321732273237324732573267327732873297330733173327333733473357336733773387339734073417342734373447345734673477348734973507351735273537354735573567357735873597360736173627363736473657366736773687369737073717372737373747375737673777378737973807381738273837384738573867387738873897390739173927393739473957396739773987399740074017402740374047405740674077408740974107411741274137414741574167417741874197420742174227423742474257426742774287429743074317432743374347435743674377438743974407441744274437444744574467447744874497450745174527453745474557456745774587459746074617462746374647465746674677468746974707471747274737474747574767477747874797480748174827483748474857486748774887489749074917492749374947495749674977498749975007501750275037504750575067507750875097510751175127513751475157516751775187519752075217522752375247525752675277528752975307531753275337534753575367537753875397540754175427543754475457546754775487549755075517552755375547555755675577558755975607561756275637564756575667567756875697570757175727573757475757576757775787579758075817582758375847585758675877588758975907591759275937594759575967597759875997600760176027603760476057606760776087609761076117612761376147615761676177618761976207621762276237624762576267627762876297630763176327633763476357636763776387639764076417642764376447645764676477648764976507651765276537654765576567657765876597660766176627663766476657666766776687669767076717672767376747675767676777678767976807681768276837684768576867687768876897690769176927693769476957696769776987699770077017702770377047705770677077708770977107711771277137714771577167717771877197720772177227723772477257726772777287729773077317732773377347735773677377738773977407741774277437744774577467747774877497750775177527753775477557756775777587759776077617762776377647765776677677768776977707771777277737774777577767777777877797780778177827783778477857786778777887789779077917792779377947795779677977798779978007801780278037804780578067807780878097810781178127813781478157816781778187819782078217822782378247825782678277828782978307831783278337834783578367837783878397840784178427843784478457846784778487849785078517852785378547855785678577858785978607861786278637864786578667867786878697870787178727873787478757876787778787879788078817882788378847885788678877888788978907891789278937894789578967897789878997900790179027903790479057906790779087909791079117912791379147915791679177918791979207921792279237924792579267927792879297930793179327933793479357936793779387939794079417942794379447945794679477948794979507951795279537954795579567957795879597960796179627963796479657966796779687969797079717972797379747975797679777978797979807981798279837984798579867987798879897990799179927993799479957996799779987999800080018002800380048005800680078008800980108011801280138014801580168017801880198020802180228023802480258026802780288029803080318032803380348035803680378038803980408041804280438044804580468047804880498050805180528053805480558056805780588059806080618062806380648065806680678068806980708071807280738074807580768077807880798080808180828083808480858086808780888089809080918092809380948095809680978098809981008101810281038104810581068107810881098110811181128113811481158116811781188119812081218122812381248125812681278128812981308131813281338134813581368137813881398140814181428143814481458146814781488149815081518152815381548155815681578158815981608161816281638164816581668167816881698170817181728173817481758176817781788179818081818182818381848185818681878188818981908191819281938194819581968197819881998200820182028203820482058206820782088209821082118212821382148215821682178218821982208221822282238224822582268227822882298230823182328233823482358236823782388239824082418242824382448245824682478248824982508251825282538254825582568257825882598260826182628263826482658266826782688269827082718272827382748275827682778278827982808281828282838284828582868287828882898290829182928293829482958296829782988299830083018302830383048305830683078308830983108311831283138314831583168317831883198320832183228323832483258326832783288329833083318332833383348335833683378338833983408341834283438344834583468347834883498350835183528353835483558356835783588359836083618362836383648365836683678368836983708371837283738374837583768377837883798380838183828383838483858386838783888389839083918392839383948395839683978398839984008401840284038404840584068407840884098410841184128413841484158416841784188419842084218422842384248425842684278428842984308431843284338434843584368437843884398440844184428443844484458446844784488449845084518452845384548455845684578458845984608461846284638464846584668467846884698470847184728473847484758476847784788479848084818482848384848485848684878488848984908491849284938494849584968497849884998500850185028503850485058506850785088509851085118512851385148515851685178518851985208521852285238524852585268527852885298530853185328533853485358536853785388539854085418542854385448545854685478548854985508551855285538554855585568557855885598560856185628563856485658566856785688569857085718572857385748575857685778578857985808581858285838584858585868587858885898590859185928593859485958596859785988599860086018602860386048605860686078608860986108611861286138614861586168617861886198620862186228623862486258626862786288629863086318632863386348635863686378638863986408641864286438644864586468647864886498650865186528653865486558656865786588659866086618662866386648665866686678668866986708671867286738674867586768677867886798680868186828683868486858686868786888689869086918692869386948695869686978698869987008701870287038704870587068707870887098710871187128713871487158716871787188719872087218722872387248725872687278728872987308731873287338734873587368737873887398740874187428743874487458746874787488749875087518752875387548755875687578758875987608761876287638764876587668767876887698770877187728773877487758776877787788779878087818782878387848785878687878788878987908791879287938794879587968797879887998800880188028803880488058806880788088809881088118812881388148815881688178818881988208821882288238824882588268827882888298830883188328833883488358836883788388839884088418842884388448845884688478848884988508851885288538854885588568857885888598860886188628863886488658866886788688869887088718872887388748875887688778878887988808881888288838884888588868887888888898890889188928893889488958896889788988899890089018902890389048905890689078908890989108911891289138914891589168917891889198920892189228923892489258926892789288929893089318932893389348935893689378938893989408941894289438944894589468947894889498950895189528953895489558956895789588959896089618962896389648965896689678968896989708971897289738974897589768977897889798980898189828983898489858986898789888989899089918992899389948995899689978998899990009001900290039004900590069007900890099010901190129013901490159016901790189019902090219022902390249025902690279028902990309031903290339034903590369037903890399040904190429043904490459046904790489049905090519052905390549055905690579058905990609061906290639064906590669067906890699070907190729073907490759076907790789079908090819082908390849085908690879088908990909091909290939094909590969097909890999100910191029103910491059106910791089109911091119112911391149115911691179118911991209121912291239124912591269127912891299130913191329133913491359136913791389139914091419142914391449145914691479148914991509151915291539154915591569157915891599160916191629163916491659166916791689169917091719172917391749175917691779178917991809181918291839184918591869187918891899190919191929193919491959196919791989199920092019202920392049205920692079208920992109211921292139214921592169217921892199220922192229223922492259226922792289229923092319232923392349235923692379238923992409241924292439244924592469247924892499250925192529253925492559256925792589259926092619262926392649265926692679268926992709271927292739274927592769277927892799280928192829283928492859286928792889289929092919292929392949295929692979298929993009301930293039304930593069307930893099310931193129313931493159316931793189319932093219322932393249325932693279328932993309331933293339334933593369337933893399340934193429343934493459346934793489349935093519352935393549355935693579358935993609361936293639364936593669367936893699370937193729373937493759376937793789379938093819382938393849385938693879388938993909391939293939394939593969397939893999400940194029403940494059406940794089409941094119412941394149415941694179418941994209421942294239424942594269427942894299430943194329433943494359436943794389439944094419442944394449445944694479448944994509451945294539454945594569457945894599460946194629463946494659466946794689469947094719472947394749475947694779478947994809481948294839484948594869487948894899490949194929493949494959496949794989499950095019502950395049505950695079508950995109511951295139514951595169517951895199520952195229523952495259526952795289529953095319532953395349535953695379538953995409541954295439544954595469547954895499550955195529553955495559556955795589559956095619562956395649565956695679568956995709571957295739574957595769577957895799580958195829583958495859586958795889589959095919592959395949595959695979598959996009601960296039604960596069607960896099610961196129613961496159616961796189619962096219622962396249625962696279628962996309631963296339634963596369637963896399640964196429643964496459646964796489649965096519652965396549655965696579658965996609661966296639664966596669667966896699670967196729673967496759676967796789679968096819682968396849685968696879688968996909691969296939694969596969697969896999700970197029703970497059706970797089709971097119712971397149715971697179718971997209721972297239724972597269727972897299730973197329733973497359736973797389739974097419742974397449745974697479748974997509751975297539754975597569757975897599760976197629763976497659766976797689769977097719772977397749775977697779778977997809781978297839784978597869787978897899790979197929793979497959796979797989799980098019802980398049805980698079808980998109811981298139814981598169817981898199820982198229823982498259826982798289829983098319832983398349835983698379838983998409841984298439844984598469847984898499850985198529853985498559856985798589859986098619862986398649865986698679868986998709871987298739874987598769877987898799880988198829883988498859886988798889889989098919892989398949895989698979898989999009901990299039904990599069907990899099910991199129913991499159916991799189919992099219922992399249925992699279928992999309931993299339934993599369937993899399940994199429943994499459946994799489949995099519952995399549955995699579958995999609961996299639964996599669967996899699970997199729973997499759976997799789979998099819982998399849985998699879988998999909991999299939994999599969997999899991000010001100021000310004100051000610007100081000910010100111001210013100141001510016100171001810019100201002110022100231002410025100261002710028100291003010031100321003310034100351003610037100381003910040100411004210043100441004510046100471004810049100501005110052100531005410055100561005710058100591006010061100621006310064100651006610067100681006910070100711007210073100741007510076100771007810079100801008110082100831008410085100861008710088100891009010091100921009310094100951009610097100981009910100101011010210103101041010510106101071010810109101101011110112101131011410115101161011710118101191012010121101221012310124101251012610127101281012910130101311013210133101341013510136101371013810139101401014110142101431014410145101461014710148101491015010151101521015310154101551015610157101581015910160101611016210163101641016510166101671016810169101701017110172101731017410175101761017710178101791018010181101821018310184101851018610187101881018910190101911019210193101941019510196101971019810199102001020110202102031020410205102061020710208102091021010211102121021310214102151021610217102181021910220102211022210223102241022510226102271022810229102301023110232102331023410235102361023710238102391024010241102421024310244102451024610247102481024910250102511025210253102541025510256102571025810259102601026110262102631026410265102661026710268102691027010271102721027310274102751027610277102781027910280102811028210283102841028510286102871028810289102901029110292102931029410295102961029710298102991030010301103021030310304103051030610307103081030910310103111031210313103141031510316103171031810319103201032110322103231032410325103261032710328103291033010331103321033310334103351033610337103381033910340103411034210343103441034510346103471034810349103501035110352103531035410355103561035710358103591036010361103621036310364103651036610367103681036910370103711037210373103741037510376103771037810379103801038110382103831038410385103861038710388103891039010391103921039310394103951039610397103981039910400104011040210403104041040510406104071040810409104101041110412104131041410415104161041710418104191042010421104221042310424104251042610427104281042910430104311043210433104341043510436104371043810439104401044110442104431044410445104461044710448104491045010451104521045310454104551045610457104581045910460104611046210463104641046510466104671046810469104701047110472104731047410475104761047710478104791048010481104821048310484104851048610487104881048910490104911049210493104941049510496104971049810499105001050110502105031050410505105061050710508105091051010511105121051310514105151051610517105181051910520105211052210523105241052510526105271052810529105301053110532105331053410535105361053710538105391054010541105421054310544105451054610547105481054910550105511055210553105541055510556105571055810559105601056110562105631056410565105661056710568105691057010571105721057310574105751057610577105781057910580105811058210583105841058510586105871058810589105901059110592105931059410595105961059710598105991060010601106021060310604106051060610607106081060910610106111061210613106141061510616106171061810619106201062110622106231062410625106261062710628106291063010631106321063310634106351063610637106381063910640106411064210643106441064510646106471064810649106501065110652106531065410655106561065710658106591066010661106621066310664106651066610667106681066910670106711067210673106741067510676106771067810679106801068110682106831068410685106861068710688106891069010691106921069310694106951069610697106981069910700107011070210703107041070510706107071070810709107101071110712107131071410715107161071710718107191072010721107221072310724107251072610727107281072910730107311073210733107341073510736107371073810739107401074110742107431074410745107461074710748107491075010751107521075310754107551075610757107581075910760107611076210763107641076510766107671076810769107701077110772107731077410775107761077710778107791078010781107821078310784107851078610787107881078910790107911079210793107941079510796107971079810799108001080110802108031080410805108061080710808108091081010811108121081310814108151081610817108181081910820108211082210823108241082510826108271082810829108301083110832108331083410835108361083710838108391084010841108421084310844108451084610847108481084910850108511085210853108541085510856108571085810859108601086110862108631086410865108661086710868108691087010871108721087310874108751087610877108781087910880108811088210883108841088510886108871088810889108901089110892108931089410895108961089710898108991090010901109021090310904109051090610907109081090910910109111091210913109141091510916109171091810919109201092110922109231092410925109261092710928109291093010931109321093310934109351093610937109381093910940109411094210943109441094510946109471094810949109501095110952109531095410955109561095710958109591096010961109621096310964109651096610967109681096910970109711097210973109741097510976109771097810979109801098110982109831098410985109861098710988109891099010991109921099310994109951099610997109981099911000110011100211003110041100511006110071100811009110101101111012110131101411015110161101711018110191102011021110221102311024110251102611027110281102911030110311103211033110341103511036110371103811039110401104111042110431104411045110461104711048110491105011051110521105311054110551105611057110581105911060110611106211063110641106511066110671106811069110701107111072110731107411075110761107711078110791108011081110821108311084110851108611087110881108911090110911109211093110941109511096110971109811099111001110111102111031110411105111061110711108111091111011111111121111311114111151111611117111181111911120111211112211123111241112511126111271112811129111301113111132111331113411135111361113711138111391114011141111421114311144111451114611147111481114911150111511115211153111541115511156111571115811159111601116111162111631116411165111661116711168111691117011171111721117311174111751117611177111781117911180111811118211183111841118511186111871118811189111901119111192111931119411195111961119711198111991120011201112021120311204112051120611207112081120911210112111121211213112141121511216112171121811219112201122111222112231122411225112261122711228112291123011231112321123311234112351123611237112381123911240112411124211243112441124511246112471124811249112501125111252112531125411255112561125711258112591126011261112621126311264112651126611267112681126911270112711127211273112741127511276112771127811279112801128111282112831128411285112861128711288112891129011291112921129311294112951129611297112981129911300113011130211303113041130511306113071130811309113101131111312113131131411315113161131711318113191132011321113221132311324113251132611327113281132911330113311133211333113341133511336113371133811339113401134111342113431134411345113461134711348113491135011351113521135311354113551135611357113581135911360113611136211363113641136511366113671136811369113701137111372113731137411375113761137711378113791138011381113821138311384113851138611387113881138911390113911139211393113941139511396113971139811399114001140111402114031140411405114061140711408114091141011411114121141311414114151141611417114181141911420114211142211423114241142511426114271142811429114301143111432114331143411435114361143711438114391144011441114421144311444114451144611447114481144911450114511145211453114541145511456114571145811459114601146111462114631146411465114661146711468114691147011471114721147311474114751147611477114781147911480114811148211483114841148511486114871148811489114901149111492114931149411495114961149711498114991150011501115021150311504115051150611507115081150911510115111151211513115141151511516115171151811519115201152111522115231152411525115261152711528115291153011531115321153311534115351153611537115381153911540115411154211543115441154511546115471154811549115501155111552115531155411555115561155711558115591156011561115621156311564115651156611567115681156911570115711157211573115741157511576115771157811579115801158111582115831158411585115861158711588115891159011591115921159311594115951159611597115981159911600116011160211603116041160511606116071160811609116101161111612116131161411615116161161711618116191162011621116221162311624116251162611627116281162911630116311163211633116341163511636116371163811639116401164111642116431164411645116461164711648116491165011651116521165311654116551165611657116581165911660116611166211663116641166511666116671166811669116701167111672116731167411675116761167711678116791168011681116821168311684116851168611687116881168911690116911169211693116941169511696116971169811699117001170111702117031170411705117061170711708117091171011711117121171311714117151171611717117181171911720117211172211723117241172511726117271172811729117301173111732117331173411735117361173711738117391174011741117421174311744117451174611747117481174911750117511175211753117541175511756117571175811759117601176111762117631176411765117661176711768117691177011771117721177311774117751177611777117781177911780117811178211783117841178511786117871178811789117901179111792117931179411795117961179711798117991180011801118021180311804118051180611807118081180911810118111181211813118141181511816118171181811819118201182111822118231182411825118261182711828118291183011831118321183311834118351183611837118381183911840118411184211843118441184511846118471184811849118501185111852118531185411855118561185711858118591186011861118621186311864118651186611867118681186911870118711187211873118741187511876118771187811879118801188111882118831188411885118861188711888118891189011891118921189311894118951189611897118981189911900119011190211903119041190511906119071190811909119101191111912119131191411915119161191711918119191192011921119221192311924119251192611927119281192911930119311193211933119341193511936119371193811939119401194111942119431194411945119461194711948119491195011951119521195311954119551195611957119581195911960119611196211963119641196511966119671196811969119701197111972119731197411975119761197711978119791198011981119821198311984119851198611987119881198911990119911199211993119941199511996119971199811999120001200112002120031200412005120061200712008120091201012011120121201312014120151201612017120181201912020120211202212023120241202512026120271202812029120301203112032120331203412035120361203712038120391204012041120421204312044120451204612047120481204912050120511205212053120541205512056120571205812059120601206112062120631206412065120661206712068120691207012071120721207312074120751207612077120781207912080120811208212083120841208512086120871208812089120901209112092120931209412095120961209712098120991210012101121021210312104121051210612107121081210912110121111211212113121141211512116121171211812119121201212112122121231212412125121261212712128121291213012131121321213312134121351213612137121381213912140121411214212143121441214512146121471214812149121501215112152121531215412155121561215712158121591216012161121621216312164121651216612167121681216912170121711217212173121741217512176121771217812179121801218112182121831218412185121861218712188121891219012191121921219312194121951219612197121981219912200122011220212203122041220512206122071220812209122101221112212122131221412215122161221712218122191222012221122221222312224122251222612227122281222912230122311223212233122341223512236122371223812239122401224112242122431224412245122461224712248122491225012251122521225312254122551225612257122581225912260122611226212263122641226512266122671226812269122701227112272122731227412275122761227712278122791228012281122821228312284122851228612287122881228912290122911229212293122941229512296122971229812299123001230112302123031230412305123061230712308123091231012311123121231312314123151231612317123181231912320123211232212323123241232512326123271232812329123301233112332123331233412335123361233712338123391234012341123421234312344123451234612347123481234912350123511235212353123541235512356123571235812359123601236112362123631236412365123661236712368123691237012371123721237312374123751237612377123781237912380123811238212383123841238512386123871238812389123901239112392123931239412395123961239712398123991240012401124021240312404124051240612407124081240912410124111241212413124141241512416124171241812419124201242112422124231242412425124261242712428124291243012431124321243312434124351243612437124381243912440124411244212443124441244512446124471244812449124501245112452124531245412455124561245712458124591246012461124621246312464124651246612467124681246912470124711247212473124741247512476124771247812479124801248112482124831248412485124861248712488124891249012491124921249312494124951249612497124981249912500125011250212503125041250512506125071250812509125101251112512125131251412515125161251712518125191252012521125221252312524125251252612527125281252912530125311253212533125341253512536125371253812539125401254112542125431254412545125461254712548125491255012551125521255312554125551255612557125581255912560125611256212563125641256512566125671256812569125701257112572125731257412575125761257712578125791258012581125821258312584125851258612587125881258912590125911259212593125941259512596125971259812599126001260112602126031260412605126061260712608126091261012611126121261312614126151261612617126181261912620126211262212623126241262512626126271262812629126301263112632126331263412635126361263712638126391264012641126421264312644126451264612647126481264912650126511265212653126541265512656126571265812659126601266112662126631266412665126661266712668126691267012671126721267312674126751267612677126781267912680126811268212683126841268512686126871268812689126901269112692126931269412695126961269712698126991270012701127021270312704127051270612707127081270912710127111271212713127141271512716127171271812719127201272112722127231272412725127261272712728127291273012731127321273312734127351273612737127381273912740127411274212743127441274512746127471274812749127501275112752127531275412755127561275712758127591276012761127621276312764127651276612767127681276912770127711277212773127741277512776127771277812779127801278112782127831278412785127861278712788127891279012791127921279312794127951279612797127981279912800128011280212803128041280512806128071280812809128101281112812128131281412815128161281712818128191282012821128221282312824128251282612827128281282912830128311283212833128341283512836128371283812839128401284112842128431284412845128461284712848128491285012851128521285312854128551285612857128581285912860128611286212863128641286512866128671286812869128701287112872128731287412875128761287712878128791288012881128821288312884128851288612887128881288912890128911289212893128941289512896128971289812899129001290112902129031290412905129061290712908129091291012911129121291312914129151291612917129181291912920129211292212923129241292512926129271292812929129301293112932129331293412935129361293712938129391294012941129421294312944129451294612947129481294912950129511295212953129541295512956129571295812959129601296112962129631296412965129661296712968129691297012971129721297312974129751297612977129781297912980129811298212983129841298512986129871298812989129901299112992129931299412995129961299712998129991300013001130021300313004130051300613007130081300913010130111301213013130141301513016130171301813019130201302113022130231302413025130261302713028130291303013031130321303313034130351303613037130381303913040130411304213043130441304513046130471304813049130501305113052130531305413055130561305713058130591306013061130621306313064130651306613067130681306913070130711307213073130741307513076130771307813079130801308113082130831308413085130861308713088130891309013091130921309313094130951309613097130981309913100131011310213103131041310513106131071310813109131101311113112131131311413115131161311713118131191312013121131221312313124131251312613127131281312913130131311313213133131341313513136131371313813139131401314113142131431314413145131461314713148131491315013151131521315313154131551315613157131581315913160131611316213163131641316513166131671316813169131701317113172131731317413175131761317713178131791318013181131821318313184131851318613187131881318913190131911319213193131941319513196131971319813199132001320113202132031320413205132061320713208132091321013211132121321313214132151321613217132181321913220132211322213223132241322513226132271322813229132301323113232132331323413235132361323713238132391324013241132421324313244132451324613247132481324913250132511325213253132541325513256132571325813259132601326113262132631326413265132661326713268132691327013271132721327313274132751327613277132781327913280132811328213283132841328513286132871328813289132901329113292132931329413295132961329713298132991330013301133021330313304133051330613307133081330913310133111331213313133141331513316133171331813319133201332113322133231332413325133261332713328133291333013331133321333313334133351333613337133381333913340133411334213343133441334513346133471334813349133501335113352133531335413355133561335713358133591336013361133621336313364133651336613367133681336913370133711337213373133741337513376133771337813379133801338113382133831338413385133861338713388133891339013391133921339313394133951339613397133981339913400134011340213403134041340513406134071340813409134101341113412134131341413415134161341713418134191342013421134221342313424134251342613427134281342913430134311343213433134341343513436134371343813439134401344113442134431344413445134461344713448134491345013451134521345313454134551345613457134581345913460134611346213463134641346513466134671346813469134701347113472134731347413475134761347713478134791348013481134821348313484134851348613487134881348913490134911349213493134941349513496134971349813499135001350113502135031350413505135061350713508135091351013511135121351313514135151351613517135181351913520135211352213523135241352513526135271352813529135301353113532135331353413535135361353713538135391354013541135421354313544135451354613547135481354913550135511355213553135541355513556135571355813559135601356113562135631356413565135661356713568135691357013571135721357313574135751357613577135781357913580135811358213583135841358513586135871358813589135901359113592135931359413595135961359713598135991360013601136021360313604136051360613607136081360913610136111361213613136141361513616136171361813619136201362113622136231362413625136261362713628136291363013631136321363313634136351363613637136381363913640136411364213643136441364513646136471364813649136501365113652136531365413655136561365713658136591366013661136621366313664136651366613667136681366913670136711367213673136741367513676136771367813679136801368113682136831368413685136861368713688136891369013691136921369313694136951369613697136981369913700137011370213703137041370513706137071370813709137101371113712137131371413715137161371713718137191372013721137221372313724137251372613727137281372913730137311373213733137341373513736137371373813739137401374113742137431374413745137461374713748137491375013751137521375313754137551375613757137581375913760137611376213763137641376513766137671376813769137701377113772137731377413775137761377713778137791378013781137821378313784137851378613787137881378913790137911379213793137941379513796137971379813799138001380113802138031380413805138061380713808138091381013811138121381313814138151381613817138181381913820138211382213823138241382513826138271382813829138301383113832138331383413835138361383713838138391384013841138421384313844138451384613847138481384913850138511385213853138541385513856138571385813859138601386113862138631386413865138661386713868138691387013871138721387313874138751387613877138781387913880138811388213883138841388513886138871388813889138901389113892138931389413895138961389713898138991390013901139021390313904139051390613907139081390913910139111391213913139141391513916139171391813919139201392113922139231392413925139261392713928139291393013931139321393313934139351393613937139381393913940139411394213943139441394513946139471394813949139501395113952139531395413955139561395713958139591396013961139621396313964139651396613967139681396913970139711397213973139741397513976139771397813979139801398113982139831398413985139861398713988139891399013991139921399313994139951399613997139981399914000140011400214003140041400514006140071400814009140101401114012140131401414015140161401714018140191402014021140221402314024140251402614027140281402914030140311403214033140341403514036140371403814039140401404114042140431404414045140461404714048140491405014051140521405314054140551405614057140581405914060140611406214063140641406514066140671406814069140701407114072140731407414075140761407714078140791408014081140821408314084140851408614087140881408914090140911409214093140941409514096140971409814099141001410114102141031410414105141061410714108141091411014111141121411314114141151411614117141181411914120141211412214123141241412514126141271412814129141301413114132141331413414135141361413714138141391414014141141421414314144141451414614147141481414914150141511415214153141541415514156141571415814159141601416114162141631416414165141661416714168141691417014171141721417314174141751417614177141781417914180141811418214183141841418514186141871418814189141901419114192141931419414195141961419714198141991420014201142021420314204142051420614207142081420914210142111421214213142141421514216142171421814219142201422114222142231422414225142261422714228142291423014231142321423314234142351423614237142381423914240142411424214243142441424514246142471424814249142501425114252142531425414255142561425714258142591426014261142621426314264142651426614267142681426914270142711427214273142741427514276142771427814279142801428114282142831428414285142861428714288142891429014291142921429314294142951429614297142981429914300143011430214303143041430514306143071430814309143101431114312143131431414315143161431714318143191432014321143221432314324143251432614327143281432914330143311433214333143341433514336143371433814339143401434114342143431434414345143461434714348143491435014351143521435314354143551435614357143581435914360143611436214363143641436514366143671436814369143701437114372143731437414375143761437714378143791438014381143821438314384143851438614387143881438914390143911439214393143941439514396143971439814399144001440114402144031440414405144061440714408144091441014411144121441314414144151441614417144181441914420144211442214423144241442514426144271442814429144301443114432144331443414435144361443714438144391444014441144421444314444144451444614447144481444914450144511445214453144541445514456144571445814459144601446114462144631446414465144661446714468144691447014471144721447314474144751447614477144781447914480144811448214483144841448514486144871448814489144901449114492144931449414495144961449714498144991450014501145021450314504145051450614507145081450914510145111451214513145141451514516145171451814519145201452114522145231452414525145261452714528145291453014531145321453314534145351453614537145381453914540145411454214543145441454514546145471454814549145501455114552145531455414555145561455714558145591456014561145621456314564145651456614567145681456914570145711457214573145741457514576145771457814579145801458114582145831458414585145861458714588145891459014591145921459314594145951459614597145981459914600146011460214603146041460514606146071460814609146101461114612146131461414615146161461714618146191462014621146221462314624146251462614627146281462914630146311463214633146341463514636146371463814639146401464114642146431464414645146461464714648146491465014651146521465314654146551465614657146581465914660146611466214663146641466514666146671466814669146701467114672146731467414675146761467714678146791468014681146821468314684146851468614687146881468914690146911469214693146941469514696146971469814699147001470114702147031470414705147061470714708147091471014711147121471314714147151471614717147181471914720147211472214723147241472514726147271472814729147301473114732147331473414735147361473714738147391474014741147421474314744147451474614747147481474914750147511475214753147541475514756147571475814759147601476114762147631476414765147661476714768147691477014771147721477314774147751477614777147781477914780147811478214783147841478514786147871478814789147901479114792147931479414795147961479714798147991480014801148021480314804148051480614807148081480914810148111481214813148141481514816148171481814819148201482114822148231482414825148261482714828148291483014831148321483314834148351483614837148381483914840148411484214843148441484514846148471484814849148501485114852148531485414855148561485714858148591486014861148621486314864148651486614867148681486914870148711487214873148741487514876148771487814879148801488114882148831488414885148861488714888148891489014891148921489314894148951489614897148981489914900149011490214903149041490514906149071490814909149101491114912149131491414915149161491714918149191492014921149221492314924149251492614927149281492914930149311493214933149341493514936149371493814939149401494114942149431494414945149461494714948149491495014951149521495314954149551495614957149581495914960149611496214963149641496514966149671496814969149701497114972149731497414975149761497714978149791498014981149821498314984149851498614987149881498914990149911499214993149941499514996149971499814999150001500115002150031500415005150061500715008150091501015011150121501315014150151501615017150181501915020150211502215023150241502515026150271502815029150301503115032150331503415035150361503715038150391504015041150421504315044150451504615047150481504915050150511505215053150541505515056150571505815059150601506115062150631506415065150661506715068150691507015071150721507315074150751507615077150781507915080150811508215083150841508515086150871508815089150901509115092150931509415095150961509715098150991510015101151021510315104151051510615107151081510915110151111511215113151141511515116151171511815119151201512115122151231512415125151261512715128151291513015131151321513315134151351513615137151381513915140151411514215143151441514515146151471514815149151501515115152151531515415155151561515715158151591516015161151621516315164151651516615167151681516915170151711517215173151741517515176151771517815179151801518115182151831518415185151861518715188151891519015191151921519315194151951519615197151981519915200152011520215203152041520515206152071520815209152101521115212152131521415215152161521715218152191522015221152221522315224152251522615227152281522915230152311523215233152341523515236152371523815239152401524115242152431524415245152461524715248152491525015251152521525315254152551525615257152581525915260152611526215263152641526515266152671526815269152701527115272152731527415275152761527715278152791528015281152821528315284152851528615287152881528915290152911529215293152941529515296152971529815299153001530115302153031530415305153061530715308153091531015311153121531315314153151531615317153181531915320153211532215323153241532515326153271532815329153301533115332153331533415335153361533715338153391534015341153421534315344153451534615347153481534915350153511535215353153541535515356153571535815359153601536115362153631536415365153661536715368153691537015371153721537315374153751537615377153781537915380153811538215383153841538515386153871538815389153901539115392153931539415395153961539715398153991540015401154021540315404154051540615407154081540915410154111541215413154141541515416154171541815419154201542115422154231542415425154261542715428154291543015431154321543315434154351543615437154381543915440154411544215443154441544515446154471544815449154501545115452154531545415455154561545715458154591546015461154621546315464154651546615467154681546915470154711547215473154741547515476154771547815479154801548115482154831548415485154861548715488154891549015491154921549315494154951549615497154981549915500155011550215503155041550515506155071550815509155101551115512155131551415515155161551715518155191552015521155221552315524155251552615527155281552915530155311553215533155341553515536155371553815539155401554115542155431554415545155461554715548155491555015551155521555315554155551555615557155581555915560155611556215563155641556515566155671556815569155701557115572155731557415575155761557715578155791558015581155821558315584155851558615587155881558915590155911559215593155941559515596155971559815599156001560115602156031560415605156061560715608156091561015611156121561315614156151561615617156181561915620156211562215623156241562515626156271562815629156301563115632156331563415635156361563715638156391564015641156421564315644156451564615647156481564915650156511565215653156541565515656156571565815659156601566115662156631566415665156661566715668156691567015671156721567315674156751567615677156781567915680156811568215683156841568515686156871568815689156901569115692156931569415695156961569715698156991570015701157021570315704157051570615707157081570915710157111571215713157141571515716157171571815719157201572115722157231572415725157261572715728157291573015731157321573315734157351573615737157381573915740157411574215743157441574515746157471574815749157501575115752157531575415755157561575715758157591576015761157621576315764157651576615767157681576915770157711577215773157741577515776157771577815779157801578115782157831578415785157861578715788157891579015791157921579315794157951579615797157981579915800158011580215803158041580515806158071580815809158101581115812158131581415815158161581715818158191582015821158221582315824158251582615827158281582915830158311583215833158341583515836158371583815839158401584115842158431584415845158461584715848158491585015851158521585315854158551585615857158581585915860158611586215863158641586515866158671586815869158701587115872158731587415875158761587715878158791588015881158821588315884158851588615887158881588915890158911589215893158941589515896158971589815899159001590115902159031590415905159061590715908159091591015911159121591315914159151591615917159181591915920159211592215923159241592515926159271592815929159301593115932159331593415935159361593715938159391594015941159421594315944159451594615947159481594915950159511595215953159541595515956159571595815959159601596115962159631596415965159661596715968159691597015971159721597315974159751597615977159781597915980159811598215983159841598515986159871598815989159901599115992159931599415995159961599715998159991600016001160021600316004160051600616007160081600916010160111601216013160141601516016160171601816019160201602116022160231602416025160261602716028160291603016031160321603316034160351603616037160381603916040160411604216043160441604516046160471604816049160501605116052160531605416055160561605716058160591606016061160621606316064160651606616067160681606916070160711607216073160741607516076160771607816079160801608116082160831608416085160861608716088160891609016091160921609316094160951609616097160981609916100161011610216103161041610516106161071610816109161101611116112161131611416115161161611716118161191612016121161221612316124161251612616127161281612916130161311613216133161341613516136161371613816139161401614116142161431614416145161461614716148161491615016151161521615316154161551615616157161581615916160161611616216163161641616516166161671616816169161701617116172161731617416175161761617716178161791618016181161821618316184161851618616187161881618916190161911619216193161941619516196161971619816199162001620116202162031620416205162061620716208162091621016211162121621316214162151621616217162181621916220162211622216223162241622516226162271622816229162301623116232162331623416235162361623716238162391624016241162421624316244162451624616247162481624916250162511625216253162541625516256162571625816259162601626116262162631626416265162661626716268162691627016271162721627316274162751627616277162781627916280162811628216283162841628516286162871628816289162901629116292162931629416295162961629716298162991630016301163021630316304163051630616307163081630916310163111631216313163141631516316163171631816319163201632116322163231632416325163261632716328163291633016331163321633316334163351633616337163381633916340163411634216343163441634516346163471634816349163501635116352163531635416355163561635716358163591636016361163621636316364163651636616367163681636916370163711637216373163741637516376163771637816379163801638116382163831638416385163861638716388163891639016391163921639316394163951639616397163981639916400164011640216403164041640516406164071640816409164101641116412164131641416415164161641716418164191642016421164221642316424164251642616427164281642916430164311643216433164341643516436164371643816439164401644116442164431644416445164461644716448164491645016451164521645316454164551645616457164581645916460164611646216463164641646516466164671646816469164701647116472164731647416475164761647716478164791648016481164821648316484164851648616487164881648916490164911649216493164941649516496164971649816499165001650116502165031650416505165061650716508165091651016511165121651316514165151651616517165181651916520165211652216523165241652516526165271652816529165301653116532165331653416535165361653716538165391654016541165421654316544165451654616547165481654916550165511655216553165541655516556165571655816559165601656116562165631656416565165661656716568165691657016571165721657316574165751657616577165781657916580165811658216583165841658516586165871658816589165901659116592165931659416595165961659716598165991660016601166021660316604166051660616607166081660916610166111661216613166141661516616166171661816619166201662116622166231662416625166261662716628166291663016631166321663316634166351663616637166381663916640166411664216643166441664516646166471664816649166501665116652166531665416655166561665716658166591666016661166621666316664166651666616667166681666916670166711667216673166741667516676166771667816679166801668116682166831668416685166861668716688166891669016691166921669316694166951669616697166981669916700167011670216703167041670516706167071670816709167101671116712167131671416715167161671716718167191672016721167221672316724167251672616727167281672916730167311673216733167341673516736167371673816739167401674116742167431674416745167461674716748167491675016751167521675316754167551675616757167581675916760167611676216763167641676516766167671676816769167701677116772167731677416775167761677716778167791678016781167821678316784167851678616787167881678916790167911679216793167941679516796167971679816799168001680116802168031680416805168061680716808168091681016811168121681316814168151681616817168181681916820168211682216823168241682516826168271682816829168301683116832168331683416835168361683716838168391684016841168421684316844168451684616847168481684916850168511685216853168541685516856168571685816859168601686116862168631686416865168661686716868168691687016871168721687316874168751687616877168781687916880168811688216883168841688516886168871688816889168901689116892168931689416895168961689716898168991690016901169021690316904169051690616907169081690916910169111691216913169141691516916169171691816919169201692116922169231692416925169261692716928169291693016931169321693316934169351693616937169381693916940169411694216943169441694516946169471694816949169501695116952169531695416955169561695716958169591696016961169621696316964169651696616967169681696916970169711697216973169741697516976169771697816979169801698116982169831698416985169861698716988169891699016991169921699316994
  1. #! /bin/sh
  2. # Guess values for system-dependent variables and create Makefiles.
  3. # Generated by GNU Autoconf 2.65 for aria2 1.9.1.
  4. #
  5. # Report bugs to <t-tujikawa@users.sourceforge.net>.
  6. #
  7. #
  8. # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
  9. # 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009 Free Software Foundation,
  10. # Inc.
  11. #
  12. #
  13. # This configure script is free software; the Free Software Foundation
  14. # gives unlimited permission to copy, distribute and modify it.
  15. ## -------------------- ##
  16. ## M4sh Initialization. ##
  17. ## -------------------- ##
  18. # Be more Bourne compatible
  19. DUALCASE=1; export DUALCASE # for MKS sh
  20. if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
  21. emulate sh
  22. NULLCMD=:
  23. # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
  24. # is contrary to our usage. Disable this feature.
  25. alias -g '${1+"$@"}'='"$@"'
  26. setopt NO_GLOB_SUBST
  27. else
  28. case `(set -o) 2>/dev/null` in #(
  29. *posix*) :
  30. set -o posix ;; #(
  31. *) :
  32. ;;
  33. esac
  34. fi
  35. as_nl='
  36. '
  37. export as_nl
  38. # Printing a long string crashes Solaris 7 /usr/bin/printf.
  39. as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
  40. as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
  41. as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
  42. # Prefer a ksh shell builtin over an external printf program on Solaris,
  43. # but without wasting forks for bash or zsh.
  44. if test -z "$BASH_VERSION$ZSH_VERSION" \
  45. && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
  46. as_echo='print -r --'
  47. as_echo_n='print -rn --'
  48. elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
  49. as_echo='printf %s\n'
  50. as_echo_n='printf %s'
  51. else
  52. if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
  53. as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
  54. as_echo_n='/usr/ucb/echo -n'
  55. else
  56. as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
  57. as_echo_n_body='eval
  58. arg=$1;
  59. case $arg in #(
  60. *"$as_nl"*)
  61. expr "X$arg" : "X\\(.*\\)$as_nl";
  62. arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
  63. esac;
  64. expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
  65. '
  66. export as_echo_n_body
  67. as_echo_n='sh -c $as_echo_n_body as_echo'
  68. fi
  69. export as_echo_body
  70. as_echo='sh -c $as_echo_body as_echo'
  71. fi
  72. # The user is always right.
  73. if test "${PATH_SEPARATOR+set}" != set; then
  74. PATH_SEPARATOR=:
  75. (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
  76. (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
  77. PATH_SEPARATOR=';'
  78. }
  79. fi
  80. # IFS
  81. # We need space, tab and new line, in precisely that order. Quoting is
  82. # there to prevent editors from complaining about space-tab.
  83. # (If _AS_PATH_WALK were called with IFS unset, it would disable word
  84. # splitting by setting IFS to empty value.)
  85. IFS=" "" $as_nl"
  86. # Find who we are. Look in the path if we contain no directory separator.
  87. case $0 in #((
  88. *[\\/]* ) as_myself=$0 ;;
  89. *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  90. for as_dir in $PATH
  91. do
  92. IFS=$as_save_IFS
  93. test -z "$as_dir" && as_dir=.
  94. test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
  95. done
  96. IFS=$as_save_IFS
  97. ;;
  98. esac
  99. # We did not find ourselves, most probably we were run as `sh COMMAND'
  100. # in which case we are not to be found in the path.
  101. if test "x$as_myself" = x; then
  102. as_myself=$0
  103. fi
  104. if test ! -f "$as_myself"; then
  105. $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
  106. exit 1
  107. fi
  108. # Unset variables that we do not need and which cause bugs (e.g. in
  109. # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
  110. # suppresses any "Segmentation fault" message there. '((' could
  111. # trigger a bug in pdksh 5.2.14.
  112. for as_var in BASH_ENV ENV MAIL MAILPATH
  113. do eval test x\${$as_var+set} = xset \
  114. && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
  115. done
  116. PS1='$ '
  117. PS2='> '
  118. PS4='+ '
  119. # NLS nuisances.
  120. LC_ALL=C
  121. export LC_ALL
  122. LANGUAGE=C
  123. export LANGUAGE
  124. # CDPATH.
  125. (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
  126. if test "x$CONFIG_SHELL" = x; then
  127. as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
  128. emulate sh
  129. NULLCMD=:
  130. # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
  131. # is contrary to our usage. Disable this feature.
  132. alias -g '\${1+\"\$@\"}'='\"\$@\"'
  133. setopt NO_GLOB_SUBST
  134. else
  135. case \`(set -o) 2>/dev/null\` in #(
  136. *posix*) :
  137. set -o posix ;; #(
  138. *) :
  139. ;;
  140. esac
  141. fi
  142. "
  143. as_required="as_fn_return () { (exit \$1); }
  144. as_fn_success () { as_fn_return 0; }
  145. as_fn_failure () { as_fn_return 1; }
  146. as_fn_ret_success () { return 0; }
  147. as_fn_ret_failure () { return 1; }
  148. exitcode=0
  149. as_fn_success || { exitcode=1; echo as_fn_success failed.; }
  150. as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
  151. as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
  152. as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
  153. if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
  154. else
  155. exitcode=1; echo positional parameters were not saved.
  156. fi
  157. test x\$exitcode = x0 || exit 1"
  158. as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
  159. as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
  160. eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
  161. test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
  162. test \$(( 1 + 1 )) = 2 || exit 1"
  163. if (eval "$as_required") 2>/dev/null; then :
  164. as_have_required=yes
  165. else
  166. as_have_required=no
  167. fi
  168. if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
  169. else
  170. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  171. as_found=false
  172. for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
  173. do
  174. IFS=$as_save_IFS
  175. test -z "$as_dir" && as_dir=.
  176. as_found=:
  177. case $as_dir in #(
  178. /*)
  179. for as_base in sh bash ksh sh5; do
  180. # Try only shells that exist, to save several forks.
  181. as_shell=$as_dir/$as_base
  182. if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
  183. { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
  184. CONFIG_SHELL=$as_shell as_have_required=yes
  185. if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
  186. break 2
  187. fi
  188. fi
  189. done;;
  190. esac
  191. as_found=false
  192. done
  193. $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
  194. { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
  195. CONFIG_SHELL=$SHELL as_have_required=yes
  196. fi; }
  197. IFS=$as_save_IFS
  198. if test "x$CONFIG_SHELL" != x; then :
  199. # We cannot yet assume a decent shell, so we have to provide a
  200. # neutralization value for shells without unset; and this also
  201. # works around shells that cannot unset nonexistent variables.
  202. BASH_ENV=/dev/null
  203. ENV=/dev/null
  204. (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
  205. export CONFIG_SHELL
  206. exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
  207. fi
  208. if test x$as_have_required = xno; then :
  209. $as_echo "$0: This script requires a shell more modern than all"
  210. $as_echo "$0: the shells that I found on your system."
  211. if test x${ZSH_VERSION+set} = xset ; then
  212. $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
  213. $as_echo "$0: be upgraded to zsh 4.3.4 or later."
  214. else
  215. $as_echo "$0: Please tell bug-autoconf@gnu.org and
  216. $0: t-tujikawa@users.sourceforge.net about your system,
  217. $0: including any error possibly output before this
  218. $0: message. Then install a modern shell, or manually run
  219. $0: the script under such a shell if you do have one."
  220. fi
  221. exit 1
  222. fi
  223. fi
  224. fi
  225. SHELL=${CONFIG_SHELL-/bin/sh}
  226. export SHELL
  227. # Unset more variables known to interfere with behavior of common tools.
  228. CLICOLOR_FORCE= GREP_OPTIONS=
  229. unset CLICOLOR_FORCE GREP_OPTIONS
  230. ## --------------------- ##
  231. ## M4sh Shell Functions. ##
  232. ## --------------------- ##
  233. # as_fn_unset VAR
  234. # ---------------
  235. # Portably unset VAR.
  236. as_fn_unset ()
  237. {
  238. { eval $1=; unset $1;}
  239. }
  240. as_unset=as_fn_unset
  241. # as_fn_set_status STATUS
  242. # -----------------------
  243. # Set $? to STATUS, without forking.
  244. as_fn_set_status ()
  245. {
  246. return $1
  247. } # as_fn_set_status
  248. # as_fn_exit STATUS
  249. # -----------------
  250. # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
  251. as_fn_exit ()
  252. {
  253. set +e
  254. as_fn_set_status $1
  255. exit $1
  256. } # as_fn_exit
  257. # as_fn_mkdir_p
  258. # -------------
  259. # Create "$as_dir" as a directory, including parents if necessary.
  260. as_fn_mkdir_p ()
  261. {
  262. case $as_dir in #(
  263. -*) as_dir=./$as_dir;;
  264. esac
  265. test -d "$as_dir" || eval $as_mkdir_p || {
  266. as_dirs=
  267. while :; do
  268. case $as_dir in #(
  269. *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
  270. *) as_qdir=$as_dir;;
  271. esac
  272. as_dirs="'$as_qdir' $as_dirs"
  273. as_dir=`$as_dirname -- "$as_dir" ||
  274. $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  275. X"$as_dir" : 'X\(//\)[^/]' \| \
  276. X"$as_dir" : 'X\(//\)$' \| \
  277. X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
  278. $as_echo X"$as_dir" |
  279. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  280. s//\1/
  281. q
  282. }
  283. /^X\(\/\/\)[^/].*/{
  284. s//\1/
  285. q
  286. }
  287. /^X\(\/\/\)$/{
  288. s//\1/
  289. q
  290. }
  291. /^X\(\/\).*/{
  292. s//\1/
  293. q
  294. }
  295. s/.*/./; q'`
  296. test -d "$as_dir" && break
  297. done
  298. test -z "$as_dirs" || eval "mkdir $as_dirs"
  299. } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
  300. } # as_fn_mkdir_p
  301. # as_fn_append VAR VALUE
  302. # ----------------------
  303. # Append the text in VALUE to the end of the definition contained in VAR. Take
  304. # advantage of any shell optimizations that allow amortized linear growth over
  305. # repeated appends, instead of the typical quadratic growth present in naive
  306. # implementations.
  307. if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
  308. eval 'as_fn_append ()
  309. {
  310. eval $1+=\$2
  311. }'
  312. else
  313. as_fn_append ()
  314. {
  315. eval $1=\$$1\$2
  316. }
  317. fi # as_fn_append
  318. # as_fn_arith ARG...
  319. # ------------------
  320. # Perform arithmetic evaluation on the ARGs, and store the result in the
  321. # global $as_val. Take advantage of shells that can avoid forks. The arguments
  322. # must be portable across $(()) and expr.
  323. if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
  324. eval 'as_fn_arith ()
  325. {
  326. as_val=$(( $* ))
  327. }'
  328. else
  329. as_fn_arith ()
  330. {
  331. as_val=`expr "$@" || test $? -eq 1`
  332. }
  333. fi # as_fn_arith
  334. # as_fn_error ERROR [LINENO LOG_FD]
  335. # ---------------------------------
  336. # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
  337. # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
  338. # script with status $?, using 1 if that was 0.
  339. as_fn_error ()
  340. {
  341. as_status=$?; test $as_status -eq 0 && as_status=1
  342. if test "$3"; then
  343. as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  344. $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
  345. fi
  346. $as_echo "$as_me: error: $1" >&2
  347. as_fn_exit $as_status
  348. } # as_fn_error
  349. if expr a : '\(a\)' >/dev/null 2>&1 &&
  350. test "X`expr 00001 : '.*\(...\)'`" = X001; then
  351. as_expr=expr
  352. else
  353. as_expr=false
  354. fi
  355. if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
  356. as_basename=basename
  357. else
  358. as_basename=false
  359. fi
  360. if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
  361. as_dirname=dirname
  362. else
  363. as_dirname=false
  364. fi
  365. as_me=`$as_basename -- "$0" ||
  366. $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
  367. X"$0" : 'X\(//\)$' \| \
  368. X"$0" : 'X\(/\)' \| . 2>/dev/null ||
  369. $as_echo X/"$0" |
  370. sed '/^.*\/\([^/][^/]*\)\/*$/{
  371. s//\1/
  372. q
  373. }
  374. /^X\/\(\/\/\)$/{
  375. s//\1/
  376. q
  377. }
  378. /^X\/\(\/\).*/{
  379. s//\1/
  380. q
  381. }
  382. s/.*/./; q'`
  383. # Avoid depending upon Character Ranges.
  384. as_cr_letters='abcdefghijklmnopqrstuvwxyz'
  385. as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
  386. as_cr_Letters=$as_cr_letters$as_cr_LETTERS
  387. as_cr_digits='0123456789'
  388. as_cr_alnum=$as_cr_Letters$as_cr_digits
  389. as_lineno_1=$LINENO as_lineno_1a=$LINENO
  390. as_lineno_2=$LINENO as_lineno_2a=$LINENO
  391. eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
  392. test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
  393. # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
  394. sed -n '
  395. p
  396. /[$]LINENO/=
  397. ' <$as_myself |
  398. sed '
  399. s/[$]LINENO.*/&-/
  400. t lineno
  401. b
  402. :lineno
  403. N
  404. :loop
  405. s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
  406. t loop
  407. s/-\n.*//
  408. ' >$as_me.lineno &&
  409. chmod +x "$as_me.lineno" ||
  410. { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
  411. # Don't try to exec as it changes $[0], causing all sort of problems
  412. # (the dirname of $[0] is not the place where we might find the
  413. # original and so on. Autoconf is especially sensitive to this).
  414. . "./$as_me.lineno"
  415. # Exit status is that of the last command.
  416. exit
  417. }
  418. ECHO_C= ECHO_N= ECHO_T=
  419. case `echo -n x` in #(((((
  420. -n*)
  421. case `echo 'xy\c'` in
  422. *c*) ECHO_T=' ';; # ECHO_T is single tab character.
  423. xy) ECHO_C='\c';;
  424. *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
  425. ECHO_T=' ';;
  426. esac;;
  427. *)
  428. ECHO_N='-n';;
  429. esac
  430. rm -f conf$$ conf$$.exe conf$$.file
  431. if test -d conf$$.dir; then
  432. rm -f conf$$.dir/conf$$.file
  433. else
  434. rm -f conf$$.dir
  435. mkdir conf$$.dir 2>/dev/null
  436. fi
  437. if (echo >conf$$.file) 2>/dev/null; then
  438. if ln -s conf$$.file conf$$ 2>/dev/null; then
  439. as_ln_s='ln -s'
  440. # ... but there are two gotchas:
  441. # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
  442. # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
  443. # In both cases, we have to default to `cp -p'.
  444. ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
  445. as_ln_s='cp -p'
  446. elif ln conf$$.file conf$$ 2>/dev/null; then
  447. as_ln_s=ln
  448. else
  449. as_ln_s='cp -p'
  450. fi
  451. else
  452. as_ln_s='cp -p'
  453. fi
  454. rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
  455. rmdir conf$$.dir 2>/dev/null
  456. if mkdir -p . 2>/dev/null; then
  457. as_mkdir_p='mkdir -p "$as_dir"'
  458. else
  459. test -d ./-p && rmdir ./-p
  460. as_mkdir_p=false
  461. fi
  462. if test -x / >/dev/null 2>&1; then
  463. as_test_x='test -x'
  464. else
  465. if ls -dL / >/dev/null 2>&1; then
  466. as_ls_L_option=L
  467. else
  468. as_ls_L_option=
  469. fi
  470. as_test_x='
  471. eval sh -c '\''
  472. if test -d "$1"; then
  473. test -d "$1/.";
  474. else
  475. case $1 in #(
  476. -*)set "./$1";;
  477. esac;
  478. case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
  479. ???[sx]*):;;*)false;;esac;fi
  480. '\'' sh
  481. '
  482. fi
  483. as_executable_p=$as_test_x
  484. # Sed expression to map a string onto a valid CPP name.
  485. as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
  486. # Sed expression to map a string onto a valid variable name.
  487. as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
  488. test -n "$DJDIR" || exec 7<&0 </dev/null
  489. exec 6>&1
  490. # Name of the host.
  491. # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
  492. # so uname gets run too.
  493. ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
  494. #
  495. # Initializations.
  496. #
  497. ac_default_prefix=/usr/local
  498. ac_clean_files=
  499. ac_config_libobj_dir=.
  500. LIBOBJS=
  501. cross_compiling=no
  502. subdirs=
  503. MFLAGS=
  504. MAKEFLAGS=
  505. # Identity of this package.
  506. PACKAGE_NAME='aria2'
  507. PACKAGE_TARNAME='aria2'
  508. PACKAGE_VERSION='1.9.1'
  509. PACKAGE_STRING='aria2 1.9.1'
  510. PACKAGE_BUGREPORT='t-tujikawa@users.sourceforge.net'
  511. PACKAGE_URL='http://aria2.sourceforge.net/'
  512. ac_unique_file="src/a2io.h"
  513. # Factoring default headers for most tests.
  514. ac_includes_default="\
  515. #include <stdio.h>
  516. #ifdef HAVE_SYS_TYPES_H
  517. # include <sys/types.h>
  518. #endif
  519. #ifdef HAVE_SYS_STAT_H
  520. # include <sys/stat.h>
  521. #endif
  522. #ifdef STDC_HEADERS
  523. # include <stdlib.h>
  524. # include <stddef.h>
  525. #else
  526. # ifdef HAVE_STDLIB_H
  527. # include <stdlib.h>
  528. # endif
  529. #endif
  530. #ifdef HAVE_STRING_H
  531. # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
  532. # include <memory.h>
  533. # endif
  534. # include <string.h>
  535. #endif
  536. #ifdef HAVE_STRINGS_H
  537. # include <strings.h>
  538. #endif
  539. #ifdef HAVE_INTTYPES_H
  540. # include <inttypes.h>
  541. #endif
  542. #ifdef HAVE_STDINT_H
  543. # include <stdint.h>
  544. #endif
  545. #ifdef HAVE_UNISTD_H
  546. # include <unistd.h>
  547. #endif"
  548. gt_needs=
  549. ac_header_list=
  550. ac_func_list=
  551. ac_subst_vars='am__EXEEXT_FALSE
  552. am__EXEEXT_TRUE
  553. LTLIBOBJS
  554. HAVE_PORT_ASSOCIATE_FALSE
  555. HAVE_PORT_ASSOCIATE_TRUE
  556. HAVE_TIMEGETTIME_FALSE
  557. HAVE_TIMEGETTIME_TRUE
  558. HAVE_POLL_FALSE
  559. HAVE_POLL_TRUE
  560. HAVE_MACH_ABSOLUTE_TIME_FALSE
  561. HAVE_MACH_ABSOLUTE_TIME_TRUE
  562. HAVE_DAEMON_FALSE
  563. HAVE_DAEMON_TRUE
  564. HAVE_TIMEGM_FALSE
  565. HAVE_TIMEGM_TRUE
  566. HAVE_STRPTIME_FALSE
  567. HAVE_STRPTIME_TRUE
  568. HAVE_LOCALTIME_R_FALSE
  569. HAVE_LOCALTIME_R_TRUE
  570. HAVE_INET_ATON_FALSE
  571. HAVE_INET_ATON_TRUE
  572. HAVE_GETTIMEOFDAY_FALSE
  573. HAVE_GETTIMEOFDAY_TRUE
  574. HAVE_GETADDRINFO_FALSE
  575. HAVE_GETADDRINFO_TRUE
  576. HAVE_GAI_STRERROR_FALSE
  577. HAVE_GAI_STRERROR_TRUE
  578. HAVE_BASENAME_FALSE
  579. HAVE_BASENAME_TRUE
  580. HAVE_ASCTIME_R_FALSE
  581. HAVE_ASCTIME_R_TRUE
  582. HAVE_POSIX_FALLOCATE_FALSE
  583. HAVE_POSIX_FALLOCATE_TRUE
  584. HAVE_EPOLL_FALSE
  585. HAVE_EPOLL_TRUE
  586. POW_LIB
  587. LIBOBJS
  588. POSUB
  589. LTLIBINTL
  590. LIBINTL
  591. INTLLIBS
  592. INTL_LIBTOOL_SUFFIX_PREFIX
  593. INTLOBJS
  594. GENCAT
  595. INSTOBJEXT
  596. DATADIRNAME
  597. CATOBJEXT
  598. USE_INCLUDED_LIBINTL
  599. BUILD_INCLUDED_LIBINTL
  600. LTLIBC
  601. WINDRES
  602. WOE32
  603. WOE32DLL
  604. HAVE_WPRINTF
  605. HAVE_SNPRINTF
  606. HAVE_ASPRINTF
  607. HAVE_POSIX_PRINTF
  608. INTL_MACOSX_LIBS
  609. GLIBC21
  610. INTLBISON
  611. LTLIBICONV
  612. LIBICONV
  613. LTLIBMULTITHREAD
  614. LIBMULTITHREAD
  615. LTLIBTHREAD
  616. LIBTHREAD
  617. LIBPTH_PREFIX
  618. LTLIBPTH
  619. LIBPTH
  620. PRI_MACROS_BROKEN
  621. HAVE_VISIBILITY
  622. CFLAG_VISIBILITY
  623. GLIBC2
  624. XGETTEXT_EXTRA_OPTIONS
  625. MSGMERGE
  626. XGETTEXT_015
  627. XGETTEXT
  628. GMSGFMT_015
  629. MSGFMT_015
  630. GMSGFMT
  631. MSGFMT
  632. GETTEXT_MACRO_VERSION
  633. USE_NLS
  634. ALLOCA
  635. HAVE_SQLITE3_FALSE
  636. HAVE_SQLITE3_TRUE
  637. HAVE_LIBZ_FALSE
  638. HAVE_LIBZ_TRUE
  639. ENABLE_ASYNC_DNS_FALSE
  640. ENABLE_ASYNC_DNS_TRUE
  641. HAVE_LIBEXPAT_FALSE
  642. HAVE_LIBEXPAT_TRUE
  643. HAVE_LIBXML2_FALSE
  644. HAVE_LIBXML2_TRUE
  645. ENABLE_XML_RPC_FALSE
  646. ENABLE_XML_RPC_TRUE
  647. ENABLE_METALINK_LIBEXPAT_FALSE
  648. ENABLE_METALINK_LIBEXPAT_TRUE
  649. ENABLE_METALINK_LIBXML2_FALSE
  650. ENABLE_METALINK_LIBXML2_TRUE
  651. ENABLE_METALINK_FALSE
  652. ENABLE_METALINK_TRUE
  653. ENABLE_BITTORRENT_FALSE
  654. ENABLE_BITTORRENT_TRUE
  655. ENABLE_MESSAGE_DIGEST_FALSE
  656. ENABLE_MESSAGE_DIGEST_TRUE
  657. HAVE_LIBSSL_FALSE
  658. HAVE_LIBSSL_TRUE
  659. HAVE_LIBGNUTLS_FALSE
  660. HAVE_LIBGNUTLS_TRUE
  661. ca_bundle
  662. ENABLE_SSL_FALSE
  663. ENABLE_SSL_TRUE
  664. LIBZ_CPPFLAGS
  665. LIBZ_LIBS
  666. LIBCARES_CPPFLAGS
  667. LIBCARES_LIBS
  668. OPENSSL_CFLAGS
  669. OPENSSL_LIBS
  670. LIBGCRYPT_LIBS
  671. LIBGCRYPT_CFLAGS
  672. LIBGCRYPT_CONFIG
  673. LIBGNUTLS_CONFIG
  674. LIBGNUTLS_LIBS
  675. LIBGNUTLS_CFLAGS
  676. SQLITE3_LIBS
  677. SQLITE3_CFLAGS
  678. LIBEXPAT_CPPFLAGS
  679. LIBEXPAT_LIBS
  680. XML_LIBS
  681. XML_CPPFLAGS
  682. XML2_CONFIG
  683. PKG_CONFIG
  684. EGREP
  685. GREP
  686. CXXCPP
  687. YFLAGS
  688. YACC
  689. RANLIB
  690. am__fastdepCC_FALSE
  691. am__fastdepCC_TRUE
  692. CCDEPMODE
  693. ac_ct_CC
  694. CFLAGS
  695. CC
  696. am__fastdepCXX_FALSE
  697. am__fastdepCXX_TRUE
  698. CXXDEPMODE
  699. AMDEPBACKSLASH
  700. AMDEP_FALSE
  701. AMDEP_TRUE
  702. am__quote
  703. am__include
  704. DEPDIR
  705. OBJEXT
  706. EXEEXT
  707. ac_ct_CXX
  708. CPPFLAGS
  709. LDFLAGS
  710. CXXFLAGS
  711. CXX
  712. WINSOCK_LIBS
  713. CPPUNIT_LIBS
  714. CPPUNIT_CFLAGS
  715. CPPUNIT_CONFIG
  716. am__untar
  717. am__tar
  718. AMTAR
  719. am__leading_dot
  720. SET_MAKE
  721. AWK
  722. mkdir_p
  723. MKDIR_P
  724. INSTALL_STRIP_PROGRAM
  725. STRIP
  726. install_sh
  727. MAKEINFO
  728. AUTOHEADER
  729. AUTOMAKE
  730. AUTOCONF
  731. ACLOCAL
  732. VERSION
  733. PACKAGE
  734. CYGPATH_W
  735. am__isrc
  736. INSTALL_DATA
  737. INSTALL_SCRIPT
  738. INSTALL_PROGRAM
  739. target_os
  740. target_vendor
  741. target_cpu
  742. target
  743. host_os
  744. host_vendor
  745. host_cpu
  746. host
  747. build_os
  748. build_vendor
  749. build_cpu
  750. build
  751. target_alias
  752. host_alias
  753. build_alias
  754. LIBS
  755. ECHO_T
  756. ECHO_N
  757. ECHO_C
  758. DEFS
  759. mandir
  760. localedir
  761. libdir
  762. psdir
  763. pdfdir
  764. dvidir
  765. htmldir
  766. infodir
  767. docdir
  768. oldincludedir
  769. includedir
  770. localstatedir
  771. sharedstatedir
  772. sysconfdir
  773. datadir
  774. datarootdir
  775. libexecdir
  776. sbindir
  777. bindir
  778. program_transform_name
  779. prefix
  780. exec_prefix
  781. PACKAGE_URL
  782. PACKAGE_BUGREPORT
  783. PACKAGE_STRING
  784. PACKAGE_VERSION
  785. PACKAGE_TARNAME
  786. PACKAGE_NAME
  787. PATH_SEPARATOR
  788. SHELL'
  789. ac_subst_files=''
  790. ac_user_opts='
  791. enable_option_checking
  792. with_cppunit_prefix
  793. with_cppunit_exec_prefix
  794. with_gnutls
  795. with_openssl
  796. with_sqlite3
  797. with_libxml2
  798. with_libexpat
  799. with_libcares
  800. with_libz
  801. enable_bittorrent
  802. enable_metalink
  803. enable_epoll
  804. with_ca_bundle
  805. enable_dependency_tracking
  806. with_xml_prefix
  807. with_xml_exec_prefix
  808. enable_xmltest
  809. with_libexpat_prefix
  810. with_sqlite3_prefix
  811. with_libgnutls_prefix
  812. with_libgcrypt_prefix
  813. with_openssl_prefix
  814. with_libcares_prefix
  815. with_libz_prefix
  816. enable_largefile
  817. enable_nls
  818. enable_threads
  819. with_gnu_ld
  820. enable_rpath
  821. with_libpth_prefix
  822. with_libiconv_prefix
  823. with_included_gettext
  824. with_libintl_prefix
  825. '
  826. ac_precious_vars='build_alias
  827. host_alias
  828. target_alias
  829. CXX
  830. CXXFLAGS
  831. LDFLAGS
  832. LIBS
  833. CPPFLAGS
  834. CCC
  835. CC
  836. CFLAGS
  837. YACC
  838. YFLAGS
  839. CXXCPP
  840. PKG_CONFIG
  841. SQLITE3_CFLAGS
  842. SQLITE3_LIBS
  843. LIBGNUTLS_CFLAGS
  844. LIBGNUTLS_LIBS'
  845. # Initialize some variables set by options.
  846. ac_init_help=
  847. ac_init_version=false
  848. ac_unrecognized_opts=
  849. ac_unrecognized_sep=
  850. # The variables have the same names as the options, with
  851. # dashes changed to underlines.
  852. cache_file=/dev/null
  853. exec_prefix=NONE
  854. no_create=
  855. no_recursion=
  856. prefix=NONE
  857. program_prefix=NONE
  858. program_suffix=NONE
  859. program_transform_name=s,x,x,
  860. silent=
  861. site=
  862. srcdir=
  863. verbose=
  864. x_includes=NONE
  865. x_libraries=NONE
  866. # Installation directory options.
  867. # These are left unexpanded so users can "make install exec_prefix=/foo"
  868. # and all the variables that are supposed to be based on exec_prefix
  869. # by default will actually change.
  870. # Use braces instead of parens because sh, perl, etc. also accept them.
  871. # (The list follows the same order as the GNU Coding Standards.)
  872. bindir='${exec_prefix}/bin'
  873. sbindir='${exec_prefix}/sbin'
  874. libexecdir='${exec_prefix}/libexec'
  875. datarootdir='${prefix}/share'
  876. datadir='${datarootdir}'
  877. sysconfdir='${prefix}/etc'
  878. sharedstatedir='${prefix}/com'
  879. localstatedir='${prefix}/var'
  880. includedir='${prefix}/include'
  881. oldincludedir='/usr/include'
  882. docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
  883. infodir='${datarootdir}/info'
  884. htmldir='${docdir}'
  885. dvidir='${docdir}'
  886. pdfdir='${docdir}'
  887. psdir='${docdir}'
  888. libdir='${exec_prefix}/lib'
  889. localedir='${datarootdir}/locale'
  890. mandir='${datarootdir}/man'
  891. ac_prev=
  892. ac_dashdash=
  893. for ac_option
  894. do
  895. # If the previous option needs an argument, assign it.
  896. if test -n "$ac_prev"; then
  897. eval $ac_prev=\$ac_option
  898. ac_prev=
  899. continue
  900. fi
  901. case $ac_option in
  902. *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
  903. *) ac_optarg=yes ;;
  904. esac
  905. # Accept the important Cygnus configure options, so we can diagnose typos.
  906. case $ac_dashdash$ac_option in
  907. --)
  908. ac_dashdash=yes ;;
  909. -bindir | --bindir | --bindi | --bind | --bin | --bi)
  910. ac_prev=bindir ;;
  911. -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
  912. bindir=$ac_optarg ;;
  913. -build | --build | --buil | --bui | --bu)
  914. ac_prev=build_alias ;;
  915. -build=* | --build=* | --buil=* | --bui=* | --bu=*)
  916. build_alias=$ac_optarg ;;
  917. -cache-file | --cache-file | --cache-fil | --cache-fi \
  918. | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
  919. ac_prev=cache_file ;;
  920. -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
  921. | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
  922. cache_file=$ac_optarg ;;
  923. --config-cache | -C)
  924. cache_file=config.cache ;;
  925. -datadir | --datadir | --datadi | --datad)
  926. ac_prev=datadir ;;
  927. -datadir=* | --datadir=* | --datadi=* | --datad=*)
  928. datadir=$ac_optarg ;;
  929. -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
  930. | --dataroo | --dataro | --datar)
  931. ac_prev=datarootdir ;;
  932. -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
  933. | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
  934. datarootdir=$ac_optarg ;;
  935. -disable-* | --disable-*)
  936. ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
  937. # Reject names that are not valid shell variable names.
  938. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  939. as_fn_error "invalid feature name: $ac_useropt"
  940. ac_useropt_orig=$ac_useropt
  941. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  942. case $ac_user_opts in
  943. *"
  944. "enable_$ac_useropt"
  945. "*) ;;
  946. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
  947. ac_unrecognized_sep=', ';;
  948. esac
  949. eval enable_$ac_useropt=no ;;
  950. -docdir | --docdir | --docdi | --doc | --do)
  951. ac_prev=docdir ;;
  952. -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
  953. docdir=$ac_optarg ;;
  954. -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
  955. ac_prev=dvidir ;;
  956. -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
  957. dvidir=$ac_optarg ;;
  958. -enable-* | --enable-*)
  959. ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
  960. # Reject names that are not valid shell variable names.
  961. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  962. as_fn_error "invalid feature name: $ac_useropt"
  963. ac_useropt_orig=$ac_useropt
  964. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  965. case $ac_user_opts in
  966. *"
  967. "enable_$ac_useropt"
  968. "*) ;;
  969. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
  970. ac_unrecognized_sep=', ';;
  971. esac
  972. eval enable_$ac_useropt=\$ac_optarg ;;
  973. -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
  974. | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
  975. | --exec | --exe | --ex)
  976. ac_prev=exec_prefix ;;
  977. -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
  978. | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
  979. | --exec=* | --exe=* | --ex=*)
  980. exec_prefix=$ac_optarg ;;
  981. -gas | --gas | --ga | --g)
  982. # Obsolete; use --with-gas.
  983. with_gas=yes ;;
  984. -help | --help | --hel | --he | -h)
  985. ac_init_help=long ;;
  986. -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
  987. ac_init_help=recursive ;;
  988. -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
  989. ac_init_help=short ;;
  990. -host | --host | --hos | --ho)
  991. ac_prev=host_alias ;;
  992. -host=* | --host=* | --hos=* | --ho=*)
  993. host_alias=$ac_optarg ;;
  994. -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
  995. ac_prev=htmldir ;;
  996. -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
  997. | --ht=*)
  998. htmldir=$ac_optarg ;;
  999. -includedir | --includedir | --includedi | --included | --include \
  1000. | --includ | --inclu | --incl | --inc)
  1001. ac_prev=includedir ;;
  1002. -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
  1003. | --includ=* | --inclu=* | --incl=* | --inc=*)
  1004. includedir=$ac_optarg ;;
  1005. -infodir | --infodir | --infodi | --infod | --info | --inf)
  1006. ac_prev=infodir ;;
  1007. -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
  1008. infodir=$ac_optarg ;;
  1009. -libdir | --libdir | --libdi | --libd)
  1010. ac_prev=libdir ;;
  1011. -libdir=* | --libdir=* | --libdi=* | --libd=*)
  1012. libdir=$ac_optarg ;;
  1013. -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
  1014. | --libexe | --libex | --libe)
  1015. ac_prev=libexecdir ;;
  1016. -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
  1017. | --libexe=* | --libex=* | --libe=*)
  1018. libexecdir=$ac_optarg ;;
  1019. -localedir | --localedir | --localedi | --localed | --locale)
  1020. ac_prev=localedir ;;
  1021. -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
  1022. localedir=$ac_optarg ;;
  1023. -localstatedir | --localstatedir | --localstatedi | --localstated \
  1024. | --localstate | --localstat | --localsta | --localst | --locals)
  1025. ac_prev=localstatedir ;;
  1026. -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
  1027. | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
  1028. localstatedir=$ac_optarg ;;
  1029. -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
  1030. ac_prev=mandir ;;
  1031. -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
  1032. mandir=$ac_optarg ;;
  1033. -nfp | --nfp | --nf)
  1034. # Obsolete; use --without-fp.
  1035. with_fp=no ;;
  1036. -no-create | --no-create | --no-creat | --no-crea | --no-cre \
  1037. | --no-cr | --no-c | -n)
  1038. no_create=yes ;;
  1039. -no-recursion | --no-recursion | --no-recursio | --no-recursi \
  1040. | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
  1041. no_recursion=yes ;;
  1042. -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
  1043. | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
  1044. | --oldin | --oldi | --old | --ol | --o)
  1045. ac_prev=oldincludedir ;;
  1046. -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
  1047. | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
  1048. | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
  1049. oldincludedir=$ac_optarg ;;
  1050. -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
  1051. ac_prev=prefix ;;
  1052. -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
  1053. prefix=$ac_optarg ;;
  1054. -program-prefix | --program-prefix | --program-prefi | --program-pref \
  1055. | --program-pre | --program-pr | --program-p)
  1056. ac_prev=program_prefix ;;
  1057. -program-prefix=* | --program-prefix=* | --program-prefi=* \
  1058. | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
  1059. program_prefix=$ac_optarg ;;
  1060. -program-suffix | --program-suffix | --program-suffi | --program-suff \
  1061. | --program-suf | --program-su | --program-s)
  1062. ac_prev=program_suffix ;;
  1063. -program-suffix=* | --program-suffix=* | --program-suffi=* \
  1064. | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
  1065. program_suffix=$ac_optarg ;;
  1066. -program-transform-name | --program-transform-name \
  1067. | --program-transform-nam | --program-transform-na \
  1068. | --program-transform-n | --program-transform- \
  1069. | --program-transform | --program-transfor \
  1070. | --program-transfo | --program-transf \
  1071. | --program-trans | --program-tran \
  1072. | --progr-tra | --program-tr | --program-t)
  1073. ac_prev=program_transform_name ;;
  1074. -program-transform-name=* | --program-transform-name=* \
  1075. | --program-transform-nam=* | --program-transform-na=* \
  1076. | --program-transform-n=* | --program-transform-=* \
  1077. | --program-transform=* | --program-transfor=* \
  1078. | --program-transfo=* | --program-transf=* \
  1079. | --program-trans=* | --program-tran=* \
  1080. | --progr-tra=* | --program-tr=* | --program-t=*)
  1081. program_transform_name=$ac_optarg ;;
  1082. -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
  1083. ac_prev=pdfdir ;;
  1084. -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
  1085. pdfdir=$ac_optarg ;;
  1086. -psdir | --psdir | --psdi | --psd | --ps)
  1087. ac_prev=psdir ;;
  1088. -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
  1089. psdir=$ac_optarg ;;
  1090. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  1091. | -silent | --silent | --silen | --sile | --sil)
  1092. silent=yes ;;
  1093. -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
  1094. ac_prev=sbindir ;;
  1095. -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
  1096. | --sbi=* | --sb=*)
  1097. sbindir=$ac_optarg ;;
  1098. -sharedstatedir | --sharedstatedir | --sharedstatedi \
  1099. | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
  1100. | --sharedst | --shareds | --shared | --share | --shar \
  1101. | --sha | --sh)
  1102. ac_prev=sharedstatedir ;;
  1103. -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
  1104. | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
  1105. | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
  1106. | --sha=* | --sh=*)
  1107. sharedstatedir=$ac_optarg ;;
  1108. -site | --site | --sit)
  1109. ac_prev=site ;;
  1110. -site=* | --site=* | --sit=*)
  1111. site=$ac_optarg ;;
  1112. -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
  1113. ac_prev=srcdir ;;
  1114. -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
  1115. srcdir=$ac_optarg ;;
  1116. -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
  1117. | --syscon | --sysco | --sysc | --sys | --sy)
  1118. ac_prev=sysconfdir ;;
  1119. -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
  1120. | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
  1121. sysconfdir=$ac_optarg ;;
  1122. -target | --target | --targe | --targ | --tar | --ta | --t)
  1123. ac_prev=target_alias ;;
  1124. -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
  1125. target_alias=$ac_optarg ;;
  1126. -v | -verbose | --verbose | --verbos | --verbo | --verb)
  1127. verbose=yes ;;
  1128. -version | --version | --versio | --versi | --vers | -V)
  1129. ac_init_version=: ;;
  1130. -with-* | --with-*)
  1131. ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
  1132. # Reject names that are not valid shell variable names.
  1133. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  1134. as_fn_error "invalid package name: $ac_useropt"
  1135. ac_useropt_orig=$ac_useropt
  1136. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  1137. case $ac_user_opts in
  1138. *"
  1139. "with_$ac_useropt"
  1140. "*) ;;
  1141. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
  1142. ac_unrecognized_sep=', ';;
  1143. esac
  1144. eval with_$ac_useropt=\$ac_optarg ;;
  1145. -without-* | --without-*)
  1146. ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
  1147. # Reject names that are not valid shell variable names.
  1148. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  1149. as_fn_error "invalid package name: $ac_useropt"
  1150. ac_useropt_orig=$ac_useropt
  1151. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  1152. case $ac_user_opts in
  1153. *"
  1154. "with_$ac_useropt"
  1155. "*) ;;
  1156. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
  1157. ac_unrecognized_sep=', ';;
  1158. esac
  1159. eval with_$ac_useropt=no ;;
  1160. --x)
  1161. # Obsolete; use --with-x.
  1162. with_x=yes ;;
  1163. -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
  1164. | --x-incl | --x-inc | --x-in | --x-i)
  1165. ac_prev=x_includes ;;
  1166. -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
  1167. | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
  1168. x_includes=$ac_optarg ;;
  1169. -x-libraries | --x-libraries | --x-librarie | --x-librari \
  1170. | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
  1171. ac_prev=x_libraries ;;
  1172. -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
  1173. | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
  1174. x_libraries=$ac_optarg ;;
  1175. -*) as_fn_error "unrecognized option: \`$ac_option'
  1176. Try \`$0 --help' for more information."
  1177. ;;
  1178. *=*)
  1179. ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
  1180. # Reject names that are not valid shell variable names.
  1181. case $ac_envvar in #(
  1182. '' | [0-9]* | *[!_$as_cr_alnum]* )
  1183. as_fn_error "invalid variable name: \`$ac_envvar'" ;;
  1184. esac
  1185. eval $ac_envvar=\$ac_optarg
  1186. export $ac_envvar ;;
  1187. *)
  1188. # FIXME: should be removed in autoconf 3.0.
  1189. $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
  1190. expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
  1191. $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
  1192. : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
  1193. ;;
  1194. esac
  1195. done
  1196. if test -n "$ac_prev"; then
  1197. ac_option=--`echo $ac_prev | sed 's/_/-/g'`
  1198. as_fn_error "missing argument to $ac_option"
  1199. fi
  1200. if test -n "$ac_unrecognized_opts"; then
  1201. case $enable_option_checking in
  1202. no) ;;
  1203. fatal) as_fn_error "unrecognized options: $ac_unrecognized_opts" ;;
  1204. *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
  1205. esac
  1206. fi
  1207. # Check all directory arguments for consistency.
  1208. for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
  1209. datadir sysconfdir sharedstatedir localstatedir includedir \
  1210. oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
  1211. libdir localedir mandir
  1212. do
  1213. eval ac_val=\$$ac_var
  1214. # Remove trailing slashes.
  1215. case $ac_val in
  1216. */ )
  1217. ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
  1218. eval $ac_var=\$ac_val;;
  1219. esac
  1220. # Be sure to have absolute directory names.
  1221. case $ac_val in
  1222. [\\/$]* | ?:[\\/]* ) continue;;
  1223. NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
  1224. esac
  1225. as_fn_error "expected an absolute directory name for --$ac_var: $ac_val"
  1226. done
  1227. # There might be people who depend on the old broken behavior: `$host'
  1228. # used to hold the argument of --host etc.
  1229. # FIXME: To remove some day.
  1230. build=$build_alias
  1231. host=$host_alias
  1232. target=$target_alias
  1233. # FIXME: To remove some day.
  1234. if test "x$host_alias" != x; then
  1235. if test "x$build_alias" = x; then
  1236. cross_compiling=maybe
  1237. $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
  1238. If a cross compiler is detected then cross compile mode will be used." >&2
  1239. elif test "x$build_alias" != "x$host_alias"; then
  1240. cross_compiling=yes
  1241. fi
  1242. fi
  1243. ac_tool_prefix=
  1244. test -n "$host_alias" && ac_tool_prefix=$host_alias-
  1245. test "$silent" = yes && exec 6>/dev/null
  1246. ac_pwd=`pwd` && test -n "$ac_pwd" &&
  1247. ac_ls_di=`ls -di .` &&
  1248. ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
  1249. as_fn_error "working directory cannot be determined"
  1250. test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
  1251. as_fn_error "pwd does not report name of working directory"
  1252. # Find the source files, if location was not specified.
  1253. if test -z "$srcdir"; then
  1254. ac_srcdir_defaulted=yes
  1255. # Try the directory containing this script, then the parent directory.
  1256. ac_confdir=`$as_dirname -- "$as_myself" ||
  1257. $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  1258. X"$as_myself" : 'X\(//\)[^/]' \| \
  1259. X"$as_myself" : 'X\(//\)$' \| \
  1260. X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
  1261. $as_echo X"$as_myself" |
  1262. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  1263. s//\1/
  1264. q
  1265. }
  1266. /^X\(\/\/\)[^/].*/{
  1267. s//\1/
  1268. q
  1269. }
  1270. /^X\(\/\/\)$/{
  1271. s//\1/
  1272. q
  1273. }
  1274. /^X\(\/\).*/{
  1275. s//\1/
  1276. q
  1277. }
  1278. s/.*/./; q'`
  1279. srcdir=$ac_confdir
  1280. if test ! -r "$srcdir/$ac_unique_file"; then
  1281. srcdir=..
  1282. fi
  1283. else
  1284. ac_srcdir_defaulted=no
  1285. fi
  1286. if test ! -r "$srcdir/$ac_unique_file"; then
  1287. test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
  1288. as_fn_error "cannot find sources ($ac_unique_file) in $srcdir"
  1289. fi
  1290. ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
  1291. ac_abs_confdir=`(
  1292. cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg"
  1293. pwd)`
  1294. # When building in place, set srcdir=.
  1295. if test "$ac_abs_confdir" = "$ac_pwd"; then
  1296. srcdir=.
  1297. fi
  1298. # Remove unnecessary trailing slashes from srcdir.
  1299. # Double slashes in file names in object file debugging info
  1300. # mess up M-x gdb in Emacs.
  1301. case $srcdir in
  1302. */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
  1303. esac
  1304. for ac_var in $ac_precious_vars; do
  1305. eval ac_env_${ac_var}_set=\${${ac_var}+set}
  1306. eval ac_env_${ac_var}_value=\$${ac_var}
  1307. eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
  1308. eval ac_cv_env_${ac_var}_value=\$${ac_var}
  1309. done
  1310. #
  1311. # Report the --help message.
  1312. #
  1313. if test "$ac_init_help" = "long"; then
  1314. # Omit some internal or obsolete options to make the list less imposing.
  1315. # This message is too long to be a string in the A/UX 3.1 sh.
  1316. cat <<_ACEOF
  1317. \`configure' configures aria2 1.9.1 to adapt to many kinds of systems.
  1318. Usage: $0 [OPTION]... [VAR=VALUE]...
  1319. To assign environment variables (e.g., CC, CFLAGS...), specify them as
  1320. VAR=VALUE. See below for descriptions of some of the useful variables.
  1321. Defaults for the options are specified in brackets.
  1322. Configuration:
  1323. -h, --help display this help and exit
  1324. --help=short display options specific to this package
  1325. --help=recursive display the short help of all the included packages
  1326. -V, --version display version information and exit
  1327. -q, --quiet, --silent do not print \`checking...' messages
  1328. --cache-file=FILE cache test results in FILE [disabled]
  1329. -C, --config-cache alias for \`--cache-file=config.cache'
  1330. -n, --no-create do not create output files
  1331. --srcdir=DIR find the sources in DIR [configure dir or \`..']
  1332. Installation directories:
  1333. --prefix=PREFIX install architecture-independent files in PREFIX
  1334. [$ac_default_prefix]
  1335. --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
  1336. [PREFIX]
  1337. By default, \`make install' will install all the files in
  1338. \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
  1339. an installation prefix other than \`$ac_default_prefix' using \`--prefix',
  1340. for instance \`--prefix=\$HOME'.
  1341. For better control, use the options below.
  1342. Fine tuning of the installation directories:
  1343. --bindir=DIR user executables [EPREFIX/bin]
  1344. --sbindir=DIR system admin executables [EPREFIX/sbin]
  1345. --libexecdir=DIR program executables [EPREFIX/libexec]
  1346. --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
  1347. --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
  1348. --localstatedir=DIR modifiable single-machine data [PREFIX/var]
  1349. --libdir=DIR object code libraries [EPREFIX/lib]
  1350. --includedir=DIR C header files [PREFIX/include]
  1351. --oldincludedir=DIR C header files for non-gcc [/usr/include]
  1352. --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
  1353. --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
  1354. --infodir=DIR info documentation [DATAROOTDIR/info]
  1355. --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
  1356. --mandir=DIR man documentation [DATAROOTDIR/man]
  1357. --docdir=DIR documentation root [DATAROOTDIR/doc/aria2]
  1358. --htmldir=DIR html documentation [DOCDIR]
  1359. --dvidir=DIR dvi documentation [DOCDIR]
  1360. --pdfdir=DIR pdf documentation [DOCDIR]
  1361. --psdir=DIR ps documentation [DOCDIR]
  1362. _ACEOF
  1363. cat <<\_ACEOF
  1364. Program names:
  1365. --program-prefix=PREFIX prepend PREFIX to installed program names
  1366. --program-suffix=SUFFIX append SUFFIX to installed program names
  1367. --program-transform-name=PROGRAM run sed PROGRAM on installed program names
  1368. System types:
  1369. --build=BUILD configure for building on BUILD [guessed]
  1370. --host=HOST cross-compile to build programs to run on HOST [BUILD]
  1371. --target=TARGET configure for building compilers for TARGET [HOST]
  1372. _ACEOF
  1373. fi
  1374. if test -n "$ac_init_help"; then
  1375. case $ac_init_help in
  1376. short | recursive ) echo "Configuration of aria2 1.9.1:";;
  1377. esac
  1378. cat <<\_ACEOF
  1379. Optional Features:
  1380. --disable-option-checking ignore unrecognized --enable/--with options
  1381. --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
  1382. --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
  1383. --enable-bittorrent Enable bittorrent support.
  1384. --enable-metalink Enable metalink support.
  1385. --enable-epoll Enable epoll support.
  1386. --disable-dependency-tracking speeds up one-time build
  1387. --enable-dependency-tracking do not reject slow dependency extractors
  1388. --disable-xmltest Do not try to compile and run a test LIBXML program
  1389. --disable-largefile omit support for large files
  1390. --disable-nls do not use Native Language Support
  1391. --enable-threads={posix|solaris|pth|win32}
  1392. specify multithreading API
  1393. --disable-threads build without multithread safety
  1394. --disable-rpath do not hardcode runtime library paths
  1395. Optional Packages:
  1396. --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
  1397. --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
  1398. --with-cppunit-prefix=PFX Prefix where CppUnit is installed (optional)
  1399. --with-cppunit-exec-prefix=PFX Exec prefix where CppUnit is installed (optional)
  1400. --with-gnutls Use gnutls if it is installed.
  1401. --with-openssl Use openssl if it is installed.
  1402. --with-sqlite3 Use sqlite3 if it is installed.
  1403. --with-libxml2 Use libxml2 if it is installed.
  1404. --with-libexpat Use libexpat if it is installed.
  1405. --with-libcares Use libcares if it is installed.
  1406. --with-libz Use libz if it is installed.
  1407. --with-ca-bundle=FILE Use FILE as default CA bundle.
  1408. --with-xml-prefix=PFX Prefix where libxml is installed (optional)
  1409. --with-xml-exec-prefix=PFX Exec prefix where libxml is installed (optional)
  1410. --with-libexpat-prefix=PREFIX Prefix where libexpat installed (optional)
  1411. --with-sqlite3-prefix=PREFIX Prefix where SQLite3 installed (optional)
  1412. --with-libgnutls-prefix=PFX Prefix where libgnutls is installed (optional)
  1413. --with-libgcrypt-prefix=PFX
  1414. prefix where LIBGCRYPT is installed (optional)
  1415. --with-openssl-prefix=PREFIX Prefix where OpenSSL installed (optional)
  1416. --with-libcares-prefix=PREFIX Prefix where libcares installed (optional)
  1417. --with-libz-prefix=PREFIX Prefix where libz installed (optional)
  1418. --with-gnu-ld assume the C compiler uses GNU ld default=no
  1419. --with-libpth-prefix[=DIR] search for libpth in DIR/include and DIR/lib
  1420. --without-libpth-prefix don't search for libpth in includedir and libdir
  1421. --with-libiconv-prefix[=DIR] search for libiconv in DIR/include and DIR/lib
  1422. --without-libiconv-prefix don't search for libiconv in includedir and libdir
  1423. --with-included-gettext use the GNU gettext library included here
  1424. --with-libintl-prefix[=DIR] search for libintl in DIR/include and DIR/lib
  1425. --without-libintl-prefix don't search for libintl in includedir and libdir
  1426. Some influential environment variables:
  1427. CXX C++ compiler command
  1428. CXXFLAGS C++ compiler flags
  1429. LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
  1430. nonstandard directory <lib dir>
  1431. LIBS libraries to pass to the linker, e.g. -l<library>
  1432. CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
  1433. you have headers in a nonstandard directory <include dir>
  1434. CC C compiler command
  1435. CFLAGS C compiler flags
  1436. YACC The `Yet Another C Compiler' implementation to use. Defaults to
  1437. the first program found out of: `bison -y', `byacc', `yacc'.
  1438. YFLAGS The list of arguments that will be passed by default to $YACC.
  1439. This script will default YFLAGS to the empty string to avoid a
  1440. default value of `-d' given by some make applications.
  1441. CXXCPP C++ preprocessor
  1442. PKG_CONFIG path to pkg-config utility
  1443. SQLITE3_CFLAGS
  1444. C compiler flags for SQLITE3, overriding pkg-config
  1445. SQLITE3_LIBS
  1446. linker flags for SQLITE3, overriding pkg-config
  1447. LIBGNUTLS_CFLAGS
  1448. C compiler flags for LIBGNUTLS, overriding pkg-config
  1449. LIBGNUTLS_LIBS
  1450. linker flags for LIBGNUTLS, overriding pkg-config
  1451. Use these variables to override the choices made by `configure' or to help
  1452. it to find libraries and programs with nonstandard names/locations.
  1453. Report bugs to <t-tujikawa@users.sourceforge.net>.
  1454. aria2 home page: <http://aria2.sourceforge.net/>.
  1455. _ACEOF
  1456. ac_status=$?
  1457. fi
  1458. if test "$ac_init_help" = "recursive"; then
  1459. # If there are subdirs, report their specific --help.
  1460. for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
  1461. test -d "$ac_dir" ||
  1462. { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
  1463. continue
  1464. ac_builddir=.
  1465. case "$ac_dir" in
  1466. .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
  1467. *)
  1468. ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
  1469. # A ".." for each directory in $ac_dir_suffix.
  1470. ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
  1471. case $ac_top_builddir_sub in
  1472. "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
  1473. *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
  1474. esac ;;
  1475. esac
  1476. ac_abs_top_builddir=$ac_pwd
  1477. ac_abs_builddir=$ac_pwd$ac_dir_suffix
  1478. # for backward compatibility:
  1479. ac_top_builddir=$ac_top_build_prefix
  1480. case $srcdir in
  1481. .) # We are building in place.
  1482. ac_srcdir=.
  1483. ac_top_srcdir=$ac_top_builddir_sub
  1484. ac_abs_top_srcdir=$ac_pwd ;;
  1485. [\\/]* | ?:[\\/]* ) # Absolute name.
  1486. ac_srcdir=$srcdir$ac_dir_suffix;
  1487. ac_top_srcdir=$srcdir
  1488. ac_abs_top_srcdir=$srcdir ;;
  1489. *) # Relative name.
  1490. ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
  1491. ac_top_srcdir=$ac_top_build_prefix$srcdir
  1492. ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
  1493. esac
  1494. ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
  1495. cd "$ac_dir" || { ac_status=$?; continue; }
  1496. # Check for guested configure.
  1497. if test -f "$ac_srcdir/configure.gnu"; then
  1498. echo &&
  1499. $SHELL "$ac_srcdir/configure.gnu" --help=recursive
  1500. elif test -f "$ac_srcdir/configure"; then
  1501. echo &&
  1502. $SHELL "$ac_srcdir/configure" --help=recursive
  1503. else
  1504. $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
  1505. fi || ac_status=$?
  1506. cd "$ac_pwd" || { ac_status=$?; break; }
  1507. done
  1508. fi
  1509. test -n "$ac_init_help" && exit $ac_status
  1510. if $ac_init_version; then
  1511. cat <<\_ACEOF
  1512. aria2 configure 1.9.1
  1513. generated by GNU Autoconf 2.65
  1514. Copyright (C) 2009 Free Software Foundation, Inc.
  1515. This configure script is free software; the Free Software Foundation
  1516. gives unlimited permission to copy, distribute and modify it.
  1517. _ACEOF
  1518. exit
  1519. fi
  1520. ## ------------------------ ##
  1521. ## Autoconf initialization. ##
  1522. ## ------------------------ ##
  1523. # ac_fn_cxx_try_compile LINENO
  1524. # ----------------------------
  1525. # Try to compile conftest.$ac_ext, and return whether this succeeded.
  1526. ac_fn_cxx_try_compile ()
  1527. {
  1528. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1529. rm -f conftest.$ac_objext
  1530. if { { ac_try="$ac_compile"
  1531. case "(($ac_try" in
  1532. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1533. *) ac_try_echo=$ac_try;;
  1534. esac
  1535. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1536. $as_echo "$ac_try_echo"; } >&5
  1537. (eval "$ac_compile") 2>conftest.err
  1538. ac_status=$?
  1539. if test -s conftest.err; then
  1540. grep -v '^ *+' conftest.err >conftest.er1
  1541. cat conftest.er1 >&5
  1542. mv -f conftest.er1 conftest.err
  1543. fi
  1544. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1545. test $ac_status = 0; } && {
  1546. test -z "$ac_cxx_werror_flag" ||
  1547. test ! -s conftest.err
  1548. } && test -s conftest.$ac_objext; then :
  1549. ac_retval=0
  1550. else
  1551. $as_echo "$as_me: failed program was:" >&5
  1552. sed 's/^/| /' conftest.$ac_ext >&5
  1553. ac_retval=1
  1554. fi
  1555. eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
  1556. as_fn_set_status $ac_retval
  1557. } # ac_fn_cxx_try_compile
  1558. # ac_fn_c_try_compile LINENO
  1559. # --------------------------
  1560. # Try to compile conftest.$ac_ext, and return whether this succeeded.
  1561. ac_fn_c_try_compile ()
  1562. {
  1563. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1564. rm -f conftest.$ac_objext
  1565. if { { ac_try="$ac_compile"
  1566. case "(($ac_try" in
  1567. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1568. *) ac_try_echo=$ac_try;;
  1569. esac
  1570. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1571. $as_echo "$ac_try_echo"; } >&5
  1572. (eval "$ac_compile") 2>conftest.err
  1573. ac_status=$?
  1574. if test -s conftest.err; then
  1575. grep -v '^ *+' conftest.err >conftest.er1
  1576. cat conftest.er1 >&5
  1577. mv -f conftest.er1 conftest.err
  1578. fi
  1579. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1580. test $ac_status = 0; } && {
  1581. test -z "$ac_c_werror_flag" ||
  1582. test ! -s conftest.err
  1583. } && test -s conftest.$ac_objext; then :
  1584. ac_retval=0
  1585. else
  1586. $as_echo "$as_me: failed program was:" >&5
  1587. sed 's/^/| /' conftest.$ac_ext >&5
  1588. ac_retval=1
  1589. fi
  1590. eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
  1591. as_fn_set_status $ac_retval
  1592. } # ac_fn_c_try_compile
  1593. # ac_fn_cxx_try_cpp LINENO
  1594. # ------------------------
  1595. # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
  1596. ac_fn_cxx_try_cpp ()
  1597. {
  1598. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1599. if { { ac_try="$ac_cpp conftest.$ac_ext"
  1600. case "(($ac_try" in
  1601. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1602. *) ac_try_echo=$ac_try;;
  1603. esac
  1604. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1605. $as_echo "$ac_try_echo"; } >&5
  1606. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
  1607. ac_status=$?
  1608. if test -s conftest.err; then
  1609. grep -v '^ *+' conftest.err >conftest.er1
  1610. cat conftest.er1 >&5
  1611. mv -f conftest.er1 conftest.err
  1612. fi
  1613. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1614. test $ac_status = 0; } >/dev/null && {
  1615. test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
  1616. test ! -s conftest.err
  1617. }; then :
  1618. ac_retval=0
  1619. else
  1620. $as_echo "$as_me: failed program was:" >&5
  1621. sed 's/^/| /' conftest.$ac_ext >&5
  1622. ac_retval=1
  1623. fi
  1624. eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
  1625. as_fn_set_status $ac_retval
  1626. } # ac_fn_cxx_try_cpp
  1627. # ac_fn_cxx_check_header_mongrel LINENO HEADER VAR INCLUDES
  1628. # ---------------------------------------------------------
  1629. # Tests whether HEADER exists, giving a warning if it cannot be compiled using
  1630. # the include files in INCLUDES and setting the cache variable VAR
  1631. # accordingly.
  1632. ac_fn_cxx_check_header_mongrel ()
  1633. {
  1634. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1635. if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
  1636. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  1637. $as_echo_n "checking for $2... " >&6; }
  1638. if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
  1639. $as_echo_n "(cached) " >&6
  1640. fi
  1641. eval ac_res=\$$3
  1642. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1643. $as_echo "$ac_res" >&6; }
  1644. else
  1645. # Is the header compilable?
  1646. { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
  1647. $as_echo_n "checking $2 usability... " >&6; }
  1648. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1649. /* end confdefs.h. */
  1650. $4
  1651. #include <$2>
  1652. _ACEOF
  1653. if ac_fn_cxx_try_compile "$LINENO"; then :
  1654. ac_header_compiler=yes
  1655. else
  1656. ac_header_compiler=no
  1657. fi
  1658. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  1659. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
  1660. $as_echo "$ac_header_compiler" >&6; }
  1661. # Is the header present?
  1662. { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
  1663. $as_echo_n "checking $2 presence... " >&6; }
  1664. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1665. /* end confdefs.h. */
  1666. #include <$2>
  1667. _ACEOF
  1668. if ac_fn_cxx_try_cpp "$LINENO"; then :
  1669. ac_header_preproc=yes
  1670. else
  1671. ac_header_preproc=no
  1672. fi
  1673. rm -f conftest.err conftest.$ac_ext
  1674. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
  1675. $as_echo "$ac_header_preproc" >&6; }
  1676. # So? What about this header?
  1677. case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in #((
  1678. yes:no: )
  1679. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
  1680. $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
  1681. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
  1682. $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
  1683. ;;
  1684. no:yes:* )
  1685. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
  1686. $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
  1687. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
  1688. $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
  1689. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
  1690. $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
  1691. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
  1692. $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
  1693. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
  1694. $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
  1695. ( cat <<\_ASBOX
  1696. ## ----------------------------------------------- ##
  1697. ## Report this to t-tujikawa@users.sourceforge.net ##
  1698. ## ----------------------------------------------- ##
  1699. _ASBOX
  1700. ) | sed "s/^/$as_me: WARNING: /" >&2
  1701. ;;
  1702. esac
  1703. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  1704. $as_echo_n "checking for $2... " >&6; }
  1705. if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
  1706. $as_echo_n "(cached) " >&6
  1707. else
  1708. eval "$3=\$ac_header_compiler"
  1709. fi
  1710. eval ac_res=\$$3
  1711. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1712. $as_echo "$ac_res" >&6; }
  1713. fi
  1714. eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
  1715. } # ac_fn_cxx_check_header_mongrel
  1716. # ac_fn_cxx_try_run LINENO
  1717. # ------------------------
  1718. # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
  1719. # that executables *can* be run.
  1720. ac_fn_cxx_try_run ()
  1721. {
  1722. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1723. if { { ac_try="$ac_link"
  1724. case "(($ac_try" in
  1725. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1726. *) ac_try_echo=$ac_try;;
  1727. esac
  1728. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1729. $as_echo "$ac_try_echo"; } >&5
  1730. (eval "$ac_link") 2>&5
  1731. ac_status=$?
  1732. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1733. test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
  1734. { { case "(($ac_try" in
  1735. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1736. *) ac_try_echo=$ac_try;;
  1737. esac
  1738. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1739. $as_echo "$ac_try_echo"; } >&5
  1740. (eval "$ac_try") 2>&5
  1741. ac_status=$?
  1742. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1743. test $ac_status = 0; }; }; then :
  1744. ac_retval=0
  1745. else
  1746. $as_echo "$as_me: program exited with status $ac_status" >&5
  1747. $as_echo "$as_me: failed program was:" >&5
  1748. sed 's/^/| /' conftest.$ac_ext >&5
  1749. ac_retval=$ac_status
  1750. fi
  1751. rm -rf conftest.dSYM conftest_ipa8_conftest.oo
  1752. eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
  1753. as_fn_set_status $ac_retval
  1754. } # ac_fn_cxx_try_run
  1755. # ac_fn_cxx_check_header_compile LINENO HEADER VAR INCLUDES
  1756. # ---------------------------------------------------------
  1757. # Tests whether HEADER exists and can be compiled using the include files in
  1758. # INCLUDES, setting the cache variable VAR accordingly.
  1759. ac_fn_cxx_check_header_compile ()
  1760. {
  1761. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1762. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  1763. $as_echo_n "checking for $2... " >&6; }
  1764. if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
  1765. $as_echo_n "(cached) " >&6
  1766. else
  1767. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1768. /* end confdefs.h. */
  1769. $4
  1770. #include <$2>
  1771. _ACEOF
  1772. if ac_fn_cxx_try_compile "$LINENO"; then :
  1773. eval "$3=yes"
  1774. else
  1775. eval "$3=no"
  1776. fi
  1777. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  1778. fi
  1779. eval ac_res=\$$3
  1780. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1781. $as_echo "$ac_res" >&6; }
  1782. eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
  1783. } # ac_fn_cxx_check_header_compile
  1784. # ac_fn_cxx_try_link LINENO
  1785. # -------------------------
  1786. # Try to link conftest.$ac_ext, and return whether this succeeded.
  1787. ac_fn_cxx_try_link ()
  1788. {
  1789. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1790. rm -f conftest.$ac_objext conftest$ac_exeext
  1791. if { { ac_try="$ac_link"
  1792. case "(($ac_try" in
  1793. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1794. *) ac_try_echo=$ac_try;;
  1795. esac
  1796. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1797. $as_echo "$ac_try_echo"; } >&5
  1798. (eval "$ac_link") 2>conftest.err
  1799. ac_status=$?
  1800. if test -s conftest.err; then
  1801. grep -v '^ *+' conftest.err >conftest.er1
  1802. cat conftest.er1 >&5
  1803. mv -f conftest.er1 conftest.err
  1804. fi
  1805. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1806. test $ac_status = 0; } && {
  1807. test -z "$ac_cxx_werror_flag" ||
  1808. test ! -s conftest.err
  1809. } && test -s conftest$ac_exeext && {
  1810. test "$cross_compiling" = yes ||
  1811. $as_test_x conftest$ac_exeext
  1812. }; then :
  1813. ac_retval=0
  1814. else
  1815. $as_echo "$as_me: failed program was:" >&5
  1816. sed 's/^/| /' conftest.$ac_ext >&5
  1817. ac_retval=1
  1818. fi
  1819. # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
  1820. # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
  1821. # interfere with the next link command; also delete a directory that is
  1822. # left behind by Apple's compiler. We do this before executing the actions.
  1823. rm -rf conftest.dSYM conftest_ipa8_conftest.oo
  1824. eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
  1825. as_fn_set_status $ac_retval
  1826. } # ac_fn_cxx_try_link
  1827. # ac_fn_cxx_check_func LINENO FUNC VAR
  1828. # ------------------------------------
  1829. # Tests whether FUNC exists, setting the cache variable VAR accordingly
  1830. ac_fn_cxx_check_func ()
  1831. {
  1832. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1833. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  1834. $as_echo_n "checking for $2... " >&6; }
  1835. if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
  1836. $as_echo_n "(cached) " >&6
  1837. else
  1838. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1839. /* end confdefs.h. */
  1840. /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
  1841. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  1842. #define $2 innocuous_$2
  1843. /* System header to define __stub macros and hopefully few prototypes,
  1844. which can conflict with char $2 (); below.
  1845. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  1846. <limits.h> exists even on freestanding compilers. */
  1847. #ifdef __STDC__
  1848. # include <limits.h>
  1849. #else
  1850. # include <assert.h>
  1851. #endif
  1852. #undef $2
  1853. /* Override any GCC internal prototype to avoid an error.
  1854. Use char because int might match the return type of a GCC
  1855. builtin and then its argument prototype would still apply. */
  1856. #ifdef __cplusplus
  1857. extern "C"
  1858. #endif
  1859. char $2 ();
  1860. /* The GNU C library defines this for functions which it implements
  1861. to always fail with ENOSYS. Some functions are actually named
  1862. something starting with __ and the normal name is an alias. */
  1863. #if defined __stub_$2 || defined __stub___$2
  1864. choke me
  1865. #endif
  1866. int
  1867. main ()
  1868. {
  1869. return $2 ();
  1870. ;
  1871. return 0;
  1872. }
  1873. _ACEOF
  1874. if ac_fn_cxx_try_link "$LINENO"; then :
  1875. eval "$3=yes"
  1876. else
  1877. eval "$3=no"
  1878. fi
  1879. rm -f core conftest.err conftest.$ac_objext \
  1880. conftest$ac_exeext conftest.$ac_ext
  1881. fi
  1882. eval ac_res=\$$3
  1883. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1884. $as_echo "$ac_res" >&6; }
  1885. eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
  1886. } # ac_fn_cxx_check_func
  1887. # ac_fn_cxx_check_type LINENO TYPE VAR INCLUDES
  1888. # ---------------------------------------------
  1889. # Tests whether TYPE exists after having included INCLUDES, setting cache
  1890. # variable VAR accordingly.
  1891. ac_fn_cxx_check_type ()
  1892. {
  1893. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1894. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  1895. $as_echo_n "checking for $2... " >&6; }
  1896. if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
  1897. $as_echo_n "(cached) " >&6
  1898. else
  1899. eval "$3=no"
  1900. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1901. /* end confdefs.h. */
  1902. $4
  1903. int
  1904. main ()
  1905. {
  1906. if (sizeof ($2))
  1907. return 0;
  1908. ;
  1909. return 0;
  1910. }
  1911. _ACEOF
  1912. if ac_fn_cxx_try_compile "$LINENO"; then :
  1913. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1914. /* end confdefs.h. */
  1915. $4
  1916. int
  1917. main ()
  1918. {
  1919. if (sizeof (($2)))
  1920. return 0;
  1921. ;
  1922. return 0;
  1923. }
  1924. _ACEOF
  1925. if ac_fn_cxx_try_compile "$LINENO"; then :
  1926. else
  1927. eval "$3=yes"
  1928. fi
  1929. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  1930. fi
  1931. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  1932. fi
  1933. eval ac_res=\$$3
  1934. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1935. $as_echo "$ac_res" >&6; }
  1936. eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
  1937. } # ac_fn_cxx_check_type
  1938. # ac_fn_c_find_intX_t LINENO BITS VAR
  1939. # -----------------------------------
  1940. # Finds a signed integer type with width BITS, setting cache variable VAR
  1941. # accordingly.
  1942. ac_fn_c_find_intX_t ()
  1943. {
  1944. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1945. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for int$2_t" >&5
  1946. $as_echo_n "checking for int$2_t... " >&6; }
  1947. if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
  1948. $as_echo_n "(cached) " >&6
  1949. else
  1950. eval "$3=no"
  1951. # Order is important - never check a type that is potentially smaller
  1952. # than half of the expected target width.
  1953. for ac_type in int$2_t 'int' 'long int' \
  1954. 'long long int' 'short int' 'signed char'; do
  1955. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1956. /* end confdefs.h. */
  1957. $ac_includes_default
  1958. enum { N = $2 / 2 - 1 };
  1959. int
  1960. main ()
  1961. {
  1962. static int test_array [1 - 2 * !(0 < ($ac_type) ((((($ac_type) 1 << N) << N) - 1) * 2 + 1))];
  1963. test_array [0] = 0
  1964. ;
  1965. return 0;
  1966. }
  1967. _ACEOF
  1968. if ac_fn_cxx_try_compile "$LINENO"; then :
  1969. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1970. /* end confdefs.h. */
  1971. $ac_includes_default
  1972. enum { N = $2 / 2 - 1 };
  1973. int
  1974. main ()
  1975. {
  1976. static int test_array [1 - 2 * !(($ac_type) ((((($ac_type) 1 << N) << N) - 1) * 2 + 1)
  1977. < ($ac_type) ((((($ac_type) 1 << N) << N) - 1) * 2 + 2))];
  1978. test_array [0] = 0
  1979. ;
  1980. return 0;
  1981. }
  1982. _ACEOF
  1983. if ac_fn_cxx_try_compile "$LINENO"; then :
  1984. else
  1985. case $ac_type in #(
  1986. int$2_t) :
  1987. eval "$3=yes" ;; #(
  1988. *) :
  1989. eval "$3=\$ac_type" ;;
  1990. esac
  1991. fi
  1992. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  1993. fi
  1994. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  1995. eval as_val=\$$3
  1996. if test "x$as_val" = x""no; then :
  1997. else
  1998. break
  1999. fi
  2000. done
  2001. fi
  2002. eval ac_res=\$$3
  2003. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  2004. $as_echo "$ac_res" >&6; }
  2005. eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
  2006. } # ac_fn_c_find_intX_t
  2007. # ac_fn_c_find_uintX_t LINENO BITS VAR
  2008. # ------------------------------------
  2009. # Finds an unsigned integer type with width BITS, setting cache variable VAR
  2010. # accordingly.
  2011. ac_fn_c_find_uintX_t ()
  2012. {
  2013. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  2014. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uint$2_t" >&5
  2015. $as_echo_n "checking for uint$2_t... " >&6; }
  2016. if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
  2017. $as_echo_n "(cached) " >&6
  2018. else
  2019. eval "$3=no"
  2020. # Order is important - never check a type that is potentially smaller
  2021. # than half of the expected target width.
  2022. for ac_type in uint$2_t 'unsigned int' 'unsigned long int' \
  2023. 'unsigned long long int' 'unsigned short int' 'unsigned char'; do
  2024. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2025. /* end confdefs.h. */
  2026. $ac_includes_default
  2027. int
  2028. main ()
  2029. {
  2030. static int test_array [1 - 2 * !((($ac_type) -1 >> ($2 / 2 - 1)) >> ($2 / 2 - 1) == 3)];
  2031. test_array [0] = 0
  2032. ;
  2033. return 0;
  2034. }
  2035. _ACEOF
  2036. if ac_fn_cxx_try_compile "$LINENO"; then :
  2037. case $ac_type in #(
  2038. uint$2_t) :
  2039. eval "$3=yes" ;; #(
  2040. *) :
  2041. eval "$3=\$ac_type" ;;
  2042. esac
  2043. fi
  2044. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  2045. eval as_val=\$$3
  2046. if test "x$as_val" = x""no; then :
  2047. else
  2048. break
  2049. fi
  2050. done
  2051. fi
  2052. eval ac_res=\$$3
  2053. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  2054. $as_echo "$ac_res" >&6; }
  2055. eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
  2056. } # ac_fn_c_find_uintX_t
  2057. # ac_fn_cxx_compute_int LINENO EXPR VAR INCLUDES
  2058. # ----------------------------------------------
  2059. # Tries to find the compile-time value of EXPR in a program that includes
  2060. # INCLUDES, setting VAR accordingly. Returns whether the value could be
  2061. # computed
  2062. ac_fn_cxx_compute_int ()
  2063. {
  2064. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  2065. if test "$cross_compiling" = yes; then
  2066. # Depending upon the size, compute the lo and hi bounds.
  2067. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2068. /* end confdefs.h. */
  2069. $4
  2070. int
  2071. main ()
  2072. {
  2073. static int test_array [1 - 2 * !(($2) >= 0)];
  2074. test_array [0] = 0
  2075. ;
  2076. return 0;
  2077. }
  2078. _ACEOF
  2079. if ac_fn_cxx_try_compile "$LINENO"; then :
  2080. ac_lo=0 ac_mid=0
  2081. while :; do
  2082. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2083. /* end confdefs.h. */
  2084. $4
  2085. int
  2086. main ()
  2087. {
  2088. static int test_array [1 - 2 * !(($2) <= $ac_mid)];
  2089. test_array [0] = 0
  2090. ;
  2091. return 0;
  2092. }
  2093. _ACEOF
  2094. if ac_fn_cxx_try_compile "$LINENO"; then :
  2095. ac_hi=$ac_mid; break
  2096. else
  2097. as_fn_arith $ac_mid + 1 && ac_lo=$as_val
  2098. if test $ac_lo -le $ac_mid; then
  2099. ac_lo= ac_hi=
  2100. break
  2101. fi
  2102. as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
  2103. fi
  2104. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  2105. done
  2106. else
  2107. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2108. /* end confdefs.h. */
  2109. $4
  2110. int
  2111. main ()
  2112. {
  2113. static int test_array [1 - 2 * !(($2) < 0)];
  2114. test_array [0] = 0
  2115. ;
  2116. return 0;
  2117. }
  2118. _ACEOF
  2119. if ac_fn_cxx_try_compile "$LINENO"; then :
  2120. ac_hi=-1 ac_mid=-1
  2121. while :; do
  2122. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2123. /* end confdefs.h. */
  2124. $4
  2125. int
  2126. main ()
  2127. {
  2128. static int test_array [1 - 2 * !(($2) >= $ac_mid)];
  2129. test_array [0] = 0
  2130. ;
  2131. return 0;
  2132. }
  2133. _ACEOF
  2134. if ac_fn_cxx_try_compile "$LINENO"; then :
  2135. ac_lo=$ac_mid; break
  2136. else
  2137. as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
  2138. if test $ac_mid -le $ac_hi; then
  2139. ac_lo= ac_hi=
  2140. break
  2141. fi
  2142. as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
  2143. fi
  2144. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  2145. done
  2146. else
  2147. ac_lo= ac_hi=
  2148. fi
  2149. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  2150. fi
  2151. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  2152. # Binary search between lo and hi bounds.
  2153. while test "x$ac_lo" != "x$ac_hi"; do
  2154. as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
  2155. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2156. /* end confdefs.h. */
  2157. $4
  2158. int
  2159. main ()
  2160. {
  2161. static int test_array [1 - 2 * !(($2) <= $ac_mid)];
  2162. test_array [0] = 0
  2163. ;
  2164. return 0;
  2165. }
  2166. _ACEOF
  2167. if ac_fn_cxx_try_compile "$LINENO"; then :
  2168. ac_hi=$ac_mid
  2169. else
  2170. as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
  2171. fi
  2172. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  2173. done
  2174. case $ac_lo in #((
  2175. ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
  2176. '') ac_retval=1 ;;
  2177. esac
  2178. else
  2179. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2180. /* end confdefs.h. */
  2181. $4
  2182. static long int longval () { return $2; }
  2183. static unsigned long int ulongval () { return $2; }
  2184. #include <stdio.h>
  2185. #include <stdlib.h>
  2186. int
  2187. main ()
  2188. {
  2189. FILE *f = fopen ("conftest.val", "w");
  2190. if (! f)
  2191. return 1;
  2192. if (($2) < 0)
  2193. {
  2194. long int i = longval ();
  2195. if (i != ($2))
  2196. return 1;
  2197. fprintf (f, "%ld", i);
  2198. }
  2199. else
  2200. {
  2201. unsigned long int i = ulongval ();
  2202. if (i != ($2))
  2203. return 1;
  2204. fprintf (f, "%lu", i);
  2205. }
  2206. /* Do not output a trailing newline, as this causes \r\n confusion
  2207. on some platforms. */
  2208. return ferror (f) || fclose (f) != 0;
  2209. ;
  2210. return 0;
  2211. }
  2212. _ACEOF
  2213. if ac_fn_cxx_try_run "$LINENO"; then :
  2214. echo >>conftest.val; read $3 <conftest.val; ac_retval=0
  2215. else
  2216. ac_retval=1
  2217. fi
  2218. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  2219. conftest.$ac_objext conftest.beam conftest.$ac_ext
  2220. rm -f conftest.val
  2221. fi
  2222. eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
  2223. as_fn_set_status $ac_retval
  2224. } # ac_fn_cxx_compute_int
  2225. # ac_fn_cxx_check_member LINENO AGGR MEMBER VAR INCLUDES
  2226. # ------------------------------------------------------
  2227. # Tries to find if the field MEMBER exists in type AGGR, after including
  2228. # INCLUDES, setting cache variable VAR accordingly.
  2229. ac_fn_cxx_check_member ()
  2230. {
  2231. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  2232. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
  2233. $as_echo_n "checking for $2.$3... " >&6; }
  2234. if { as_var=$4; eval "test \"\${$as_var+set}\" = set"; }; then :
  2235. $as_echo_n "(cached) " >&6
  2236. else
  2237. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2238. /* end confdefs.h. */
  2239. $5
  2240. int
  2241. main ()
  2242. {
  2243. static $2 ac_aggr;
  2244. if (ac_aggr.$3)
  2245. return 0;
  2246. ;
  2247. return 0;
  2248. }
  2249. _ACEOF
  2250. if ac_fn_cxx_try_compile "$LINENO"; then :
  2251. eval "$4=yes"
  2252. else
  2253. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2254. /* end confdefs.h. */
  2255. $5
  2256. int
  2257. main ()
  2258. {
  2259. static $2 ac_aggr;
  2260. if (sizeof ac_aggr.$3)
  2261. return 0;
  2262. ;
  2263. return 0;
  2264. }
  2265. _ACEOF
  2266. if ac_fn_cxx_try_compile "$LINENO"; then :
  2267. eval "$4=yes"
  2268. else
  2269. eval "$4=no"
  2270. fi
  2271. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  2272. fi
  2273. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  2274. fi
  2275. eval ac_res=\$$4
  2276. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  2277. $as_echo "$ac_res" >&6; }
  2278. eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
  2279. } # ac_fn_cxx_check_member
  2280. cat >config.log <<_ACEOF
  2281. This file contains any messages produced by compilers while
  2282. running configure, to aid debugging if configure makes a mistake.
  2283. It was created by aria2 $as_me 1.9.1, which was
  2284. generated by GNU Autoconf 2.65. Invocation command line was
  2285. $ $0 $@
  2286. _ACEOF
  2287. exec 5>>config.log
  2288. {
  2289. cat <<_ASUNAME
  2290. ## --------- ##
  2291. ## Platform. ##
  2292. ## --------- ##
  2293. hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
  2294. uname -m = `(uname -m) 2>/dev/null || echo unknown`
  2295. uname -r = `(uname -r) 2>/dev/null || echo unknown`
  2296. uname -s = `(uname -s) 2>/dev/null || echo unknown`
  2297. uname -v = `(uname -v) 2>/dev/null || echo unknown`
  2298. /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
  2299. /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
  2300. /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
  2301. /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
  2302. /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
  2303. /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
  2304. /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
  2305. /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
  2306. /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
  2307. _ASUNAME
  2308. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2309. for as_dir in $PATH
  2310. do
  2311. IFS=$as_save_IFS
  2312. test -z "$as_dir" && as_dir=.
  2313. $as_echo "PATH: $as_dir"
  2314. done
  2315. IFS=$as_save_IFS
  2316. } >&5
  2317. cat >&5 <<_ACEOF
  2318. ## ----------- ##
  2319. ## Core tests. ##
  2320. ## ----------- ##
  2321. _ACEOF
  2322. # Keep a trace of the command line.
  2323. # Strip out --no-create and --no-recursion so they do not pile up.
  2324. # Strip out --silent because we don't want to record it for future runs.
  2325. # Also quote any args containing shell meta-characters.
  2326. # Make two passes to allow for proper duplicate-argument suppression.
  2327. ac_configure_args=
  2328. ac_configure_args0=
  2329. ac_configure_args1=
  2330. ac_must_keep_next=false
  2331. for ac_pass in 1 2
  2332. do
  2333. for ac_arg
  2334. do
  2335. case $ac_arg in
  2336. -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
  2337. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  2338. | -silent | --silent | --silen | --sile | --sil)
  2339. continue ;;
  2340. *\'*)
  2341. ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
  2342. esac
  2343. case $ac_pass in
  2344. 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
  2345. 2)
  2346. as_fn_append ac_configure_args1 " '$ac_arg'"
  2347. if test $ac_must_keep_next = true; then
  2348. ac_must_keep_next=false # Got value, back to normal.
  2349. else
  2350. case $ac_arg in
  2351. *=* | --config-cache | -C | -disable-* | --disable-* \
  2352. | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
  2353. | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
  2354. | -with-* | --with-* | -without-* | --without-* | --x)
  2355. case "$ac_configure_args0 " in
  2356. "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
  2357. esac
  2358. ;;
  2359. -* ) ac_must_keep_next=true ;;
  2360. esac
  2361. fi
  2362. as_fn_append ac_configure_args " '$ac_arg'"
  2363. ;;
  2364. esac
  2365. done
  2366. done
  2367. { ac_configure_args0=; unset ac_configure_args0;}
  2368. { ac_configure_args1=; unset ac_configure_args1;}
  2369. # When interrupted or exit'd, cleanup temporary files, and complete
  2370. # config.log. We remove comments because anyway the quotes in there
  2371. # would cause problems or look ugly.
  2372. # WARNING: Use '\'' to represent an apostrophe within the trap.
  2373. # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
  2374. trap 'exit_status=$?
  2375. # Save into config.log some information that might help in debugging.
  2376. {
  2377. echo
  2378. cat <<\_ASBOX
  2379. ## ---------------- ##
  2380. ## Cache variables. ##
  2381. ## ---------------- ##
  2382. _ASBOX
  2383. echo
  2384. # The following way of writing the cache mishandles newlines in values,
  2385. (
  2386. for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
  2387. eval ac_val=\$$ac_var
  2388. case $ac_val in #(
  2389. *${as_nl}*)
  2390. case $ac_var in #(
  2391. *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
  2392. $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
  2393. esac
  2394. case $ac_var in #(
  2395. _ | IFS | as_nl) ;; #(
  2396. BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
  2397. *) { eval $ac_var=; unset $ac_var;} ;;
  2398. esac ;;
  2399. esac
  2400. done
  2401. (set) 2>&1 |
  2402. case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
  2403. *${as_nl}ac_space=\ *)
  2404. sed -n \
  2405. "s/'\''/'\''\\\\'\'''\''/g;
  2406. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
  2407. ;; #(
  2408. *)
  2409. sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
  2410. ;;
  2411. esac |
  2412. sort
  2413. )
  2414. echo
  2415. cat <<\_ASBOX
  2416. ## ----------------- ##
  2417. ## Output variables. ##
  2418. ## ----------------- ##
  2419. _ASBOX
  2420. echo
  2421. for ac_var in $ac_subst_vars
  2422. do
  2423. eval ac_val=\$$ac_var
  2424. case $ac_val in
  2425. *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
  2426. esac
  2427. $as_echo "$ac_var='\''$ac_val'\''"
  2428. done | sort
  2429. echo
  2430. if test -n "$ac_subst_files"; then
  2431. cat <<\_ASBOX
  2432. ## ------------------- ##
  2433. ## File substitutions. ##
  2434. ## ------------------- ##
  2435. _ASBOX
  2436. echo
  2437. for ac_var in $ac_subst_files
  2438. do
  2439. eval ac_val=\$$ac_var
  2440. case $ac_val in
  2441. *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
  2442. esac
  2443. $as_echo "$ac_var='\''$ac_val'\''"
  2444. done | sort
  2445. echo
  2446. fi
  2447. if test -s confdefs.h; then
  2448. cat <<\_ASBOX
  2449. ## ----------- ##
  2450. ## confdefs.h. ##
  2451. ## ----------- ##
  2452. _ASBOX
  2453. echo
  2454. cat confdefs.h
  2455. echo
  2456. fi
  2457. test "$ac_signal" != 0 &&
  2458. $as_echo "$as_me: caught signal $ac_signal"
  2459. $as_echo "$as_me: exit $exit_status"
  2460. } >&5
  2461. rm -f core *.core core.conftest.* &&
  2462. rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
  2463. exit $exit_status
  2464. ' 0
  2465. for ac_signal in 1 2 13 15; do
  2466. trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
  2467. done
  2468. ac_signal=0
  2469. # confdefs.h avoids OS command line length limits that DEFS can exceed.
  2470. rm -f -r conftest* confdefs.h
  2471. $as_echo "/* confdefs.h */" > confdefs.h
  2472. # Predefined preprocessor variables.
  2473. cat >>confdefs.h <<_ACEOF
  2474. #define PACKAGE_NAME "$PACKAGE_NAME"
  2475. _ACEOF
  2476. cat >>confdefs.h <<_ACEOF
  2477. #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
  2478. _ACEOF
  2479. cat >>confdefs.h <<_ACEOF
  2480. #define PACKAGE_VERSION "$PACKAGE_VERSION"
  2481. _ACEOF
  2482. cat >>confdefs.h <<_ACEOF
  2483. #define PACKAGE_STRING "$PACKAGE_STRING"
  2484. _ACEOF
  2485. cat >>confdefs.h <<_ACEOF
  2486. #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
  2487. _ACEOF
  2488. cat >>confdefs.h <<_ACEOF
  2489. #define PACKAGE_URL "$PACKAGE_URL"
  2490. _ACEOF
  2491. # Let the site file select an alternate cache file if it wants to.
  2492. # Prefer an explicitly selected file to automatically selected ones.
  2493. ac_site_file1=NONE
  2494. ac_site_file2=NONE
  2495. if test -n "$CONFIG_SITE"; then
  2496. ac_site_file1=$CONFIG_SITE
  2497. elif test "x$prefix" != xNONE; then
  2498. ac_site_file1=$prefix/share/config.site
  2499. ac_site_file2=$prefix/etc/config.site
  2500. else
  2501. ac_site_file1=$ac_default_prefix/share/config.site
  2502. ac_site_file2=$ac_default_prefix/etc/config.site
  2503. fi
  2504. for ac_site_file in "$ac_site_file1" "$ac_site_file2"
  2505. do
  2506. test "x$ac_site_file" = xNONE && continue
  2507. if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
  2508. { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
  2509. $as_echo "$as_me: loading site script $ac_site_file" >&6;}
  2510. sed 's/^/| /' "$ac_site_file" >&5
  2511. . "$ac_site_file"
  2512. fi
  2513. done
  2514. if test -r "$cache_file"; then
  2515. # Some versions of bash will fail to source /dev/null (special files
  2516. # actually), so we avoid doing that. DJGPP emulates it as a regular file.
  2517. if test /dev/null != "$cache_file" && test -f "$cache_file"; then
  2518. { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
  2519. $as_echo "$as_me: loading cache $cache_file" >&6;}
  2520. case $cache_file in
  2521. [\\/]* | ?:[\\/]* ) . "$cache_file";;
  2522. *) . "./$cache_file";;
  2523. esac
  2524. fi
  2525. else
  2526. { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
  2527. $as_echo "$as_me: creating cache $cache_file" >&6;}
  2528. >$cache_file
  2529. fi
  2530. gt_needs="$gt_needs "
  2531. as_fn_append ac_header_list " stdlib.h"
  2532. as_fn_append ac_header_list " unistd.h"
  2533. as_fn_append ac_header_list " sys/param.h"
  2534. as_fn_append ac_header_list " sys/time.h"
  2535. as_fn_append ac_func_list " alarm"
  2536. # Check that the precious variables saved in the cache have kept the same
  2537. # value.
  2538. ac_cache_corrupted=false
  2539. for ac_var in $ac_precious_vars; do
  2540. eval ac_old_set=\$ac_cv_env_${ac_var}_set
  2541. eval ac_new_set=\$ac_env_${ac_var}_set
  2542. eval ac_old_val=\$ac_cv_env_${ac_var}_value
  2543. eval ac_new_val=\$ac_env_${ac_var}_value
  2544. case $ac_old_set,$ac_new_set in
  2545. set,)
  2546. { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
  2547. $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
  2548. ac_cache_corrupted=: ;;
  2549. ,set)
  2550. { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
  2551. $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
  2552. ac_cache_corrupted=: ;;
  2553. ,);;
  2554. *)
  2555. if test "x$ac_old_val" != "x$ac_new_val"; then
  2556. # differences in whitespace do not lead to failure.
  2557. ac_old_val_w=`echo x $ac_old_val`
  2558. ac_new_val_w=`echo x $ac_new_val`
  2559. if test "$ac_old_val_w" != "$ac_new_val_w"; then
  2560. { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
  2561. $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
  2562. ac_cache_corrupted=:
  2563. else
  2564. { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
  2565. $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
  2566. eval $ac_var=\$ac_old_val
  2567. fi
  2568. { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
  2569. $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
  2570. { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
  2571. $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
  2572. fi;;
  2573. esac
  2574. # Pass precious variables to config.status.
  2575. if test "$ac_new_set" = set; then
  2576. case $ac_new_val in
  2577. *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
  2578. *) ac_arg=$ac_var=$ac_new_val ;;
  2579. esac
  2580. case " $ac_configure_args " in
  2581. *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
  2582. *) as_fn_append ac_configure_args " '$ac_arg'" ;;
  2583. esac
  2584. fi
  2585. done
  2586. if $ac_cache_corrupted; then
  2587. { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  2588. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  2589. { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
  2590. $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
  2591. as_fn_error "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
  2592. fi
  2593. ## -------------------- ##
  2594. ## Main body of script. ##
  2595. ## -------------------- ##
  2596. ac_ext=c
  2597. ac_cpp='$CPP $CPPFLAGS'
  2598. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  2599. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  2600. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  2601. ac_aux_dir=
  2602. for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
  2603. for ac_t in install-sh install.sh shtool; do
  2604. if test -f "$ac_dir/$ac_t"; then
  2605. ac_aux_dir=$ac_dir
  2606. ac_install_sh="$ac_aux_dir/$ac_t -c"
  2607. break 2
  2608. fi
  2609. done
  2610. done
  2611. if test -z "$ac_aux_dir"; then
  2612. as_fn_error "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
  2613. fi
  2614. # These three variables are undocumented and unsupported,
  2615. # and are intended to be withdrawn in a future Autoconf release.
  2616. # They can cause serious problems if a builder's source tree is in a directory
  2617. # whose full name contains unusual characters.
  2618. ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
  2619. ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
  2620. ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
  2621. # Make sure we can run config.sub.
  2622. $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
  2623. as_fn_error "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
  2624. { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
  2625. $as_echo_n "checking build system type... " >&6; }
  2626. if test "${ac_cv_build+set}" = set; then :
  2627. $as_echo_n "(cached) " >&6
  2628. else
  2629. ac_build_alias=$build_alias
  2630. test "x$ac_build_alias" = x &&
  2631. ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
  2632. test "x$ac_build_alias" = x &&
  2633. as_fn_error "cannot guess build type; you must specify one" "$LINENO" 5
  2634. ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
  2635. as_fn_error "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
  2636. fi
  2637. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
  2638. $as_echo "$ac_cv_build" >&6; }
  2639. case $ac_cv_build in
  2640. *-*-*) ;;
  2641. *) as_fn_error "invalid value of canonical build" "$LINENO" 5;;
  2642. esac
  2643. build=$ac_cv_build
  2644. ac_save_IFS=$IFS; IFS='-'
  2645. set x $ac_cv_build
  2646. shift
  2647. build_cpu=$1
  2648. build_vendor=$2
  2649. shift; shift
  2650. # Remember, the first character of IFS is used to create $*,
  2651. # except with old shells:
  2652. build_os=$*
  2653. IFS=$ac_save_IFS
  2654. case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
  2655. { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
  2656. $as_echo_n "checking host system type... " >&6; }
  2657. if test "${ac_cv_host+set}" = set; then :
  2658. $as_echo_n "(cached) " >&6
  2659. else
  2660. if test "x$host_alias" = x; then
  2661. ac_cv_host=$ac_cv_build
  2662. else
  2663. ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
  2664. as_fn_error "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
  2665. fi
  2666. fi
  2667. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
  2668. $as_echo "$ac_cv_host" >&6; }
  2669. case $ac_cv_host in
  2670. *-*-*) ;;
  2671. *) as_fn_error "invalid value of canonical host" "$LINENO" 5;;
  2672. esac
  2673. host=$ac_cv_host
  2674. ac_save_IFS=$IFS; IFS='-'
  2675. set x $ac_cv_host
  2676. shift
  2677. host_cpu=$1
  2678. host_vendor=$2
  2679. shift; shift
  2680. # Remember, the first character of IFS is used to create $*,
  2681. # except with old shells:
  2682. host_os=$*
  2683. IFS=$ac_save_IFS
  2684. case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
  2685. { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
  2686. $as_echo_n "checking target system type... " >&6; }
  2687. if test "${ac_cv_target+set}" = set; then :
  2688. $as_echo_n "(cached) " >&6
  2689. else
  2690. if test "x$target_alias" = x; then
  2691. ac_cv_target=$ac_cv_host
  2692. else
  2693. ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
  2694. as_fn_error "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
  2695. fi
  2696. fi
  2697. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
  2698. $as_echo "$ac_cv_target" >&6; }
  2699. case $ac_cv_target in
  2700. *-*-*) ;;
  2701. *) as_fn_error "invalid value of canonical target" "$LINENO" 5;;
  2702. esac
  2703. target=$ac_cv_target
  2704. ac_save_IFS=$IFS; IFS='-'
  2705. set x $ac_cv_target
  2706. shift
  2707. target_cpu=$1
  2708. target_vendor=$2
  2709. shift; shift
  2710. # Remember, the first character of IFS is used to create $*,
  2711. # except with old shells:
  2712. target_os=$*
  2713. IFS=$ac_save_IFS
  2714. case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
  2715. # The aliases save the names the user supplied, while $host etc.
  2716. # will get canonicalized.
  2717. test -n "$target_alias" &&
  2718. test "$program_prefix$program_suffix$program_transform_name" = \
  2719. NONENONEs,x,x, &&
  2720. program_prefix=${target_alias}-
  2721. am__api_version='1.11'
  2722. # Find a good install program. We prefer a C program (faster),
  2723. # so one script is as good as another. But avoid the broken or
  2724. # incompatible versions:
  2725. # SysV /etc/install, /usr/sbin/install
  2726. # SunOS /usr/etc/install
  2727. # IRIX /sbin/install
  2728. # AIX /bin/install
  2729. # AmigaOS /C/install, which installs bootblocks on floppy discs
  2730. # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
  2731. # AFS /usr/afsws/bin/install, which mishandles nonexistent args
  2732. # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
  2733. # OS/2's system install, which has a completely different semantic
  2734. # ./install, which can be erroneously created by make from ./install.sh.
  2735. # Reject install programs that cannot install multiple files.
  2736. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
  2737. $as_echo_n "checking for a BSD-compatible install... " >&6; }
  2738. if test -z "$INSTALL"; then
  2739. if test "${ac_cv_path_install+set}" = set; then :
  2740. $as_echo_n "(cached) " >&6
  2741. else
  2742. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2743. for as_dir in $PATH
  2744. do
  2745. IFS=$as_save_IFS
  2746. test -z "$as_dir" && as_dir=.
  2747. # Account for people who put trailing slashes in PATH elements.
  2748. case $as_dir/ in #((
  2749. ./ | .// | /[cC]/* | \
  2750. /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
  2751. ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
  2752. /usr/ucb/* ) ;;
  2753. *)
  2754. # OSF1 and SCO ODT 3.0 have their own names for install.
  2755. # Don't use installbsd from OSF since it installs stuff as root
  2756. # by default.
  2757. for ac_prog in ginstall scoinst install; do
  2758. for ac_exec_ext in '' $ac_executable_extensions; do
  2759. if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
  2760. if test $ac_prog = install &&
  2761. grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
  2762. # AIX install. It has an incompatible calling convention.
  2763. :
  2764. elif test $ac_prog = install &&
  2765. grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
  2766. # program-specific install script used by HP pwplus--don't use.
  2767. :
  2768. else
  2769. rm -rf conftest.one conftest.two conftest.dir
  2770. echo one > conftest.one
  2771. echo two > conftest.two
  2772. mkdir conftest.dir
  2773. if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
  2774. test -s conftest.one && test -s conftest.two &&
  2775. test -s conftest.dir/conftest.one &&
  2776. test -s conftest.dir/conftest.two
  2777. then
  2778. ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
  2779. break 3
  2780. fi
  2781. fi
  2782. fi
  2783. done
  2784. done
  2785. ;;
  2786. esac
  2787. done
  2788. IFS=$as_save_IFS
  2789. rm -rf conftest.one conftest.two conftest.dir
  2790. fi
  2791. if test "${ac_cv_path_install+set}" = set; then
  2792. INSTALL=$ac_cv_path_install
  2793. else
  2794. # As a last resort, use the slow shell script. Don't cache a
  2795. # value for INSTALL within a source directory, because that will
  2796. # break other packages using the cache if that directory is
  2797. # removed, or if the value is a relative name.
  2798. INSTALL=$ac_install_sh
  2799. fi
  2800. fi
  2801. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
  2802. $as_echo "$INSTALL" >&6; }
  2803. # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
  2804. # It thinks the first close brace ends the variable substitution.
  2805. test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
  2806. test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
  2807. test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
  2808. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
  2809. $as_echo_n "checking whether build environment is sane... " >&6; }
  2810. # Just in case
  2811. sleep 1
  2812. echo timestamp > conftest.file
  2813. # Reject unsafe characters in $srcdir or the absolute working directory
  2814. # name. Accept space and tab only in the latter.
  2815. am_lf='
  2816. '
  2817. case `pwd` in
  2818. *[\\\"\#\$\&\'\`$am_lf]*)
  2819. as_fn_error "unsafe absolute working directory name" "$LINENO" 5;;
  2820. esac
  2821. case $srcdir in
  2822. *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
  2823. as_fn_error "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;;
  2824. esac
  2825. # Do `set' in a subshell so we don't clobber the current shell's
  2826. # arguments. Must try -L first in case configure is actually a
  2827. # symlink; some systems play weird games with the mod time of symlinks
  2828. # (eg FreeBSD returns the mod time of the symlink's containing
  2829. # directory).
  2830. if (
  2831. set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
  2832. if test "$*" = "X"; then
  2833. # -L didn't work.
  2834. set X `ls -t "$srcdir/configure" conftest.file`
  2835. fi
  2836. rm -f conftest.file
  2837. if test "$*" != "X $srcdir/configure conftest.file" \
  2838. && test "$*" != "X conftest.file $srcdir/configure"; then
  2839. # If neither matched, then we have a broken ls. This can happen
  2840. # if, for instance, CONFIG_SHELL is bash and it inherits a
  2841. # broken ls alias from the environment. This has actually
  2842. # happened. Such a system could not be considered "sane".
  2843. as_fn_error "ls -t appears to fail. Make sure there is not a broken
  2844. alias in your environment" "$LINENO" 5
  2845. fi
  2846. test "$2" = conftest.file
  2847. )
  2848. then
  2849. # Ok.
  2850. :
  2851. else
  2852. as_fn_error "newly created file is older than distributed files!
  2853. Check your system clock" "$LINENO" 5
  2854. fi
  2855. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  2856. $as_echo "yes" >&6; }
  2857. test "$program_prefix" != NONE &&
  2858. program_transform_name="s&^&$program_prefix&;$program_transform_name"
  2859. # Use a double $ so make ignores it.
  2860. test "$program_suffix" != NONE &&
  2861. program_transform_name="s&\$&$program_suffix&;$program_transform_name"
  2862. # Double any \ or $.
  2863. # By default was `s,x,x', remove it if useless.
  2864. ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
  2865. program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
  2866. # expand $ac_aux_dir to an absolute path
  2867. am_aux_dir=`cd $ac_aux_dir && pwd`
  2868. if test x"${MISSING+set}" != xset; then
  2869. case $am_aux_dir in
  2870. *\ * | *\ *)
  2871. MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
  2872. *)
  2873. MISSING="\${SHELL} $am_aux_dir/missing" ;;
  2874. esac
  2875. fi
  2876. # Use eval to expand $SHELL
  2877. if eval "$MISSING --run true"; then
  2878. am_missing_run="$MISSING --run "
  2879. else
  2880. am_missing_run=
  2881. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
  2882. $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
  2883. fi
  2884. if test x"${install_sh}" != xset; then
  2885. case $am_aux_dir in
  2886. *\ * | *\ *)
  2887. install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
  2888. *)
  2889. install_sh="\${SHELL} $am_aux_dir/install-sh"
  2890. esac
  2891. fi
  2892. # Installed binaries are usually stripped using `strip' when the user
  2893. # run `make install-strip'. However `strip' might not be the right
  2894. # tool to use in cross-compilation environments, therefore Automake
  2895. # will honor the `STRIP' environment variable to overrule this program.
  2896. if test "$cross_compiling" != no; then
  2897. if test -n "$ac_tool_prefix"; then
  2898. # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
  2899. set dummy ${ac_tool_prefix}strip; ac_word=$2
  2900. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2901. $as_echo_n "checking for $ac_word... " >&6; }
  2902. if test "${ac_cv_prog_STRIP+set}" = set; then :
  2903. $as_echo_n "(cached) " >&6
  2904. else
  2905. if test -n "$STRIP"; then
  2906. ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
  2907. else
  2908. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2909. for as_dir in $PATH
  2910. do
  2911. IFS=$as_save_IFS
  2912. test -z "$as_dir" && as_dir=.
  2913. for ac_exec_ext in '' $ac_executable_extensions; do
  2914. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  2915. ac_cv_prog_STRIP="${ac_tool_prefix}strip"
  2916. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2917. break 2
  2918. fi
  2919. done
  2920. done
  2921. IFS=$as_save_IFS
  2922. fi
  2923. fi
  2924. STRIP=$ac_cv_prog_STRIP
  2925. if test -n "$STRIP"; then
  2926. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
  2927. $as_echo "$STRIP" >&6; }
  2928. else
  2929. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2930. $as_echo "no" >&6; }
  2931. fi
  2932. fi
  2933. if test -z "$ac_cv_prog_STRIP"; then
  2934. ac_ct_STRIP=$STRIP
  2935. # Extract the first word of "strip", so it can be a program name with args.
  2936. set dummy strip; ac_word=$2
  2937. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2938. $as_echo_n "checking for $ac_word... " >&6; }
  2939. if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
  2940. $as_echo_n "(cached) " >&6
  2941. else
  2942. if test -n "$ac_ct_STRIP"; then
  2943. ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
  2944. else
  2945. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2946. for as_dir in $PATH
  2947. do
  2948. IFS=$as_save_IFS
  2949. test -z "$as_dir" && as_dir=.
  2950. for ac_exec_ext in '' $ac_executable_extensions; do
  2951. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  2952. ac_cv_prog_ac_ct_STRIP="strip"
  2953. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2954. break 2
  2955. fi
  2956. done
  2957. done
  2958. IFS=$as_save_IFS
  2959. fi
  2960. fi
  2961. ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
  2962. if test -n "$ac_ct_STRIP"; then
  2963. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
  2964. $as_echo "$ac_ct_STRIP" >&6; }
  2965. else
  2966. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2967. $as_echo "no" >&6; }
  2968. fi
  2969. if test "x$ac_ct_STRIP" = x; then
  2970. STRIP=":"
  2971. else
  2972. case $cross_compiling:$ac_tool_warned in
  2973. yes:)
  2974. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  2975. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  2976. ac_tool_warned=yes ;;
  2977. esac
  2978. STRIP=$ac_ct_STRIP
  2979. fi
  2980. else
  2981. STRIP="$ac_cv_prog_STRIP"
  2982. fi
  2983. fi
  2984. INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
  2985. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
  2986. $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
  2987. if test -z "$MKDIR_P"; then
  2988. if test "${ac_cv_path_mkdir+set}" = set; then :
  2989. $as_echo_n "(cached) " >&6
  2990. else
  2991. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2992. for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
  2993. do
  2994. IFS=$as_save_IFS
  2995. test -z "$as_dir" && as_dir=.
  2996. for ac_prog in mkdir gmkdir; do
  2997. for ac_exec_ext in '' $ac_executable_extensions; do
  2998. { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
  2999. case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
  3000. 'mkdir (GNU coreutils) '* | \
  3001. 'mkdir (coreutils) '* | \
  3002. 'mkdir (fileutils) '4.1*)
  3003. ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
  3004. break 3;;
  3005. esac
  3006. done
  3007. done
  3008. done
  3009. IFS=$as_save_IFS
  3010. fi
  3011. test -d ./--version && rmdir ./--version
  3012. if test "${ac_cv_path_mkdir+set}" = set; then
  3013. MKDIR_P="$ac_cv_path_mkdir -p"
  3014. else
  3015. # As a last resort, use the slow shell script. Don't cache a
  3016. # value for MKDIR_P within a source directory, because that will
  3017. # break other packages using the cache if that directory is
  3018. # removed, or if the value is a relative name.
  3019. MKDIR_P="$ac_install_sh -d"
  3020. fi
  3021. fi
  3022. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
  3023. $as_echo "$MKDIR_P" >&6; }
  3024. mkdir_p="$MKDIR_P"
  3025. case $mkdir_p in
  3026. [\\/$]* | ?:[\\/]*) ;;
  3027. */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
  3028. esac
  3029. for ac_prog in gawk mawk nawk awk
  3030. do
  3031. # Extract the first word of "$ac_prog", so it can be a program name with args.
  3032. set dummy $ac_prog; ac_word=$2
  3033. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3034. $as_echo_n "checking for $ac_word... " >&6; }
  3035. if test "${ac_cv_prog_AWK+set}" = set; then :
  3036. $as_echo_n "(cached) " >&6
  3037. else
  3038. if test -n "$AWK"; then
  3039. ac_cv_prog_AWK="$AWK" # Let the user override the test.
  3040. else
  3041. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3042. for as_dir in $PATH
  3043. do
  3044. IFS=$as_save_IFS
  3045. test -z "$as_dir" && as_dir=.
  3046. for ac_exec_ext in '' $ac_executable_extensions; do
  3047. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  3048. ac_cv_prog_AWK="$ac_prog"
  3049. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  3050. break 2
  3051. fi
  3052. done
  3053. done
  3054. IFS=$as_save_IFS
  3055. fi
  3056. fi
  3057. AWK=$ac_cv_prog_AWK
  3058. if test -n "$AWK"; then
  3059. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
  3060. $as_echo "$AWK" >&6; }
  3061. else
  3062. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3063. $as_echo "no" >&6; }
  3064. fi
  3065. test -n "$AWK" && break
  3066. done
  3067. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
  3068. $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
  3069. set x ${MAKE-make}
  3070. ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
  3071. if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then :
  3072. $as_echo_n "(cached) " >&6
  3073. else
  3074. cat >conftest.make <<\_ACEOF
  3075. SHELL = /bin/sh
  3076. all:
  3077. @echo '@@@%%%=$(MAKE)=@@@%%%'
  3078. _ACEOF
  3079. # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
  3080. case `${MAKE-make} -f conftest.make 2>/dev/null` in
  3081. *@@@%%%=?*=@@@%%%*)
  3082. eval ac_cv_prog_make_${ac_make}_set=yes;;
  3083. *)
  3084. eval ac_cv_prog_make_${ac_make}_set=no;;
  3085. esac
  3086. rm -f conftest.make
  3087. fi
  3088. if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
  3089. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  3090. $as_echo "yes" >&6; }
  3091. SET_MAKE=
  3092. else
  3093. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3094. $as_echo "no" >&6; }
  3095. SET_MAKE="MAKE=${MAKE-make}"
  3096. fi
  3097. rm -rf .tst 2>/dev/null
  3098. mkdir .tst 2>/dev/null
  3099. if test -d .tst; then
  3100. am__leading_dot=.
  3101. else
  3102. am__leading_dot=_
  3103. fi
  3104. rmdir .tst 2>/dev/null
  3105. if test "`cd $srcdir && pwd`" != "`pwd`"; then
  3106. # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
  3107. # is not polluted with repeated "-I."
  3108. am__isrc=' -I$(srcdir)'
  3109. # test to see if srcdir already configured
  3110. if test -f $srcdir/config.status; then
  3111. as_fn_error "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
  3112. fi
  3113. fi
  3114. # test whether we have cygpath
  3115. if test -z "$CYGPATH_W"; then
  3116. if (cygpath --version) >/dev/null 2>/dev/null; then
  3117. CYGPATH_W='cygpath -w'
  3118. else
  3119. CYGPATH_W=echo
  3120. fi
  3121. fi
  3122. # Define the identity of the package.
  3123. PACKAGE='aria2'
  3124. VERSION='1.9.1'
  3125. cat >>confdefs.h <<_ACEOF
  3126. #define PACKAGE "$PACKAGE"
  3127. _ACEOF
  3128. cat >>confdefs.h <<_ACEOF
  3129. #define VERSION "$VERSION"
  3130. _ACEOF
  3131. # Some tools Automake needs.
  3132. ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
  3133. AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
  3134. AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
  3135. AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
  3136. MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
  3137. # We need awk for the "check" target. The system "awk" is bad on
  3138. # some platforms.
  3139. # Always define AMTAR for backward compatibility.
  3140. AMTAR=${AMTAR-"${am_missing_run}tar"}
  3141. am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
  3142. # Check whether --with-cppunit-prefix was given.
  3143. if test "${with_cppunit_prefix+set}" = set; then :
  3144. withval=$with_cppunit_prefix; cppunit_config_prefix="$withval"
  3145. else
  3146. cppunit_config_prefix=""
  3147. fi
  3148. # Check whether --with-cppunit-exec-prefix was given.
  3149. if test "${with_cppunit_exec_prefix+set}" = set; then :
  3150. withval=$with_cppunit_exec_prefix; cppunit_config_exec_prefix="$withval"
  3151. else
  3152. cppunit_config_exec_prefix=""
  3153. fi
  3154. if test x$cppunit_config_exec_prefix != x ; then
  3155. cppunit_config_args="$cppunit_config_args --exec-prefix=$cppunit_config_exec_prefix"
  3156. if test x${CPPUNIT_CONFIG+set} != xset ; then
  3157. CPPUNIT_CONFIG=$cppunit_config_exec_prefix/bin/cppunit-config
  3158. fi
  3159. fi
  3160. if test x$cppunit_config_prefix != x ; then
  3161. cppunit_config_args="$cppunit_config_args --prefix=$cppunit_config_prefix"
  3162. if test x${CPPUNIT_CONFIG+set} != xset ; then
  3163. CPPUNIT_CONFIG=$cppunit_config_prefix/bin/cppunit-config
  3164. fi
  3165. fi
  3166. # Extract the first word of "cppunit-config", so it can be a program name with args.
  3167. set dummy cppunit-config; ac_word=$2
  3168. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3169. $as_echo_n "checking for $ac_word... " >&6; }
  3170. if test "${ac_cv_path_CPPUNIT_CONFIG+set}" = set; then :
  3171. $as_echo_n "(cached) " >&6
  3172. else
  3173. case $CPPUNIT_CONFIG in
  3174. [\\/]* | ?:[\\/]*)
  3175. ac_cv_path_CPPUNIT_CONFIG="$CPPUNIT_CONFIG" # Let the user override the test with a path.
  3176. ;;
  3177. *)
  3178. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3179. for as_dir in $PATH
  3180. do
  3181. IFS=$as_save_IFS
  3182. test -z "$as_dir" && as_dir=.
  3183. for ac_exec_ext in '' $ac_executable_extensions; do
  3184. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  3185. ac_cv_path_CPPUNIT_CONFIG="$as_dir/$ac_word$ac_exec_ext"
  3186. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  3187. break 2
  3188. fi
  3189. done
  3190. done
  3191. IFS=$as_save_IFS
  3192. test -z "$ac_cv_path_CPPUNIT_CONFIG" && ac_cv_path_CPPUNIT_CONFIG="no"
  3193. ;;
  3194. esac
  3195. fi
  3196. CPPUNIT_CONFIG=$ac_cv_path_CPPUNIT_CONFIG
  3197. if test -n "$CPPUNIT_CONFIG"; then
  3198. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPPUNIT_CONFIG" >&5
  3199. $as_echo "$CPPUNIT_CONFIG" >&6; }
  3200. else
  3201. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3202. $as_echo "no" >&6; }
  3203. fi
  3204. cppunit_version_min=1.10.2
  3205. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Cppunit - version >= $cppunit_version_min" >&5
  3206. $as_echo_n "checking for Cppunit - version >= $cppunit_version_min... " >&6; }
  3207. no_cppunit=""
  3208. if test "$CPPUNIT_CONFIG" = "no" ; then
  3209. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3210. $as_echo "no" >&6; }
  3211. no_cppunit=yes
  3212. else
  3213. CPPUNIT_CFLAGS=`$CPPUNIT_CONFIG --cflags`
  3214. CPPUNIT_LIBS=`$CPPUNIT_CONFIG --libs`
  3215. cppunit_version=`$CPPUNIT_CONFIG --version`
  3216. cppunit_major_version=`echo $cppunit_version | \
  3217. sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
  3218. cppunit_minor_version=`echo $cppunit_version | \
  3219. sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
  3220. cppunit_micro_version=`echo $cppunit_version | \
  3221. sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
  3222. cppunit_major_min=`echo $cppunit_version_min | \
  3223. sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
  3224. if test "x${cppunit_major_min}" = "x" ; then
  3225. cppunit_major_min=0
  3226. fi
  3227. cppunit_minor_min=`echo $cppunit_version_min | \
  3228. sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
  3229. if test "x${cppunit_minor_min}" = "x" ; then
  3230. cppunit_minor_min=0
  3231. fi
  3232. cppunit_micro_min=`echo $cppunit_version_min | \
  3233. sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
  3234. if test "x${cppunit_micro_min}" = "x" ; then
  3235. cppunit_micro_min=0
  3236. fi
  3237. cppunit_version_proper=`expr \
  3238. $cppunit_major_version \> $cppunit_major_min \| \
  3239. $cppunit_major_version \= $cppunit_major_min \& \
  3240. $cppunit_minor_version \> $cppunit_minor_min \| \
  3241. $cppunit_major_version \= $cppunit_major_min \& \
  3242. $cppunit_minor_version \= $cppunit_minor_min \& \
  3243. $cppunit_micro_version \>= $cppunit_micro_min `
  3244. if test "$cppunit_version_proper" = "1" ; then
  3245. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cppunit_major_version.$cppunit_minor_version.$cppunit_micro_version" >&5
  3246. $as_echo "$cppunit_major_version.$cppunit_minor_version.$cppunit_micro_version" >&6; }
  3247. else
  3248. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3249. $as_echo "no" >&6; }
  3250. no_cppunit=yes
  3251. fi
  3252. fi
  3253. if test "x$no_cppunit" = x ; then
  3254. :
  3255. else
  3256. CPPUNIT_CFLAGS=""
  3257. CPPUNIT_LIBS=""
  3258. :
  3259. fi
  3260. ac_config_headers="$ac_config_headers config.h"
  3261. case "$target" in
  3262. *mingw*|*cygwin*)
  3263. WINSOCK_LIBS="-lws2_32"
  3264. LIBS="-lws2_32 -lcrypto -lwsock32 -lgdi32 -lwinmm $LIBS"
  3265. ;;
  3266. esac
  3267. cat >>confdefs.h <<_ACEOF
  3268. #define TARGET "$target"
  3269. _ACEOF
  3270. # Checks for arguments.
  3271. # Check whether --with-gnutls was given.
  3272. if test "${with_gnutls+set}" = set; then :
  3273. withval=$with_gnutls; with_gnutls_requested=$withval with_gnutls=$withval
  3274. else
  3275. with_gnutls=yes
  3276. fi
  3277. # Check whether --with-openssl was given.
  3278. if test "${with_openssl+set}" = set; then :
  3279. withval=$with_openssl; with_openssl_requested=$withval with_openssl=$withval
  3280. else
  3281. with_openssl=yes
  3282. fi
  3283. # Check whether --with-sqlite3 was given.
  3284. if test "${with_sqlite3+set}" = set; then :
  3285. withval=$with_sqlite3; with_sqlite3_requested=$withval with_sqlite3=$withval
  3286. else
  3287. with_sqlite3=yes
  3288. fi
  3289. # Check whether --with-libxml2 was given.
  3290. if test "${with_libxml2+set}" = set; then :
  3291. withval=$with_libxml2; with_libxml2_requested=$withval with_libxml2=$withval
  3292. else
  3293. with_libxml2=yes
  3294. fi
  3295. # Check whether --with-libexpat was given.
  3296. if test "${with_libexpat+set}" = set; then :
  3297. withval=$with_libexpat; with_libexpat_requested=$withval with_libexpat=$withval
  3298. else
  3299. with_libexpat=yes
  3300. fi
  3301. # Check whether --with-libcares was given.
  3302. if test "${with_libcares+set}" = set; then :
  3303. withval=$with_libcares; with_libcares_requested=$withval with_libcares=$withval
  3304. else
  3305. with_libcares=yes
  3306. fi
  3307. # Check whether --with-libz was given.
  3308. if test "${with_libz+set}" = set; then :
  3309. withval=$with_libz; with_libz_requested=$withval with_libz=$withval
  3310. else
  3311. with_libz=yes
  3312. fi
  3313. # Check whether --enable-bittorrent was given.
  3314. if test "${enable_bittorrent+set}" = set; then :
  3315. enableval=$enable_bittorrent; enable_bittorrent_requested=$enableval enable_bittorrent=$enableval
  3316. else
  3317. enable_bittorrent=yes
  3318. fi
  3319. # Check whether --enable-metalink was given.
  3320. if test "${enable_metalink+set}" = set; then :
  3321. enableval=$enable_metalink; enable_metalink_requested=$enableval enable_metalink=$enableval
  3322. else
  3323. enable_metalink=yes
  3324. fi
  3325. # Check whether --enable-epoll was given.
  3326. if test "${enable_epoll+set}" = set; then :
  3327. enableval=$enable_epoll; enable_epoll_requested=$enableval enable_epoll=$enableval
  3328. else
  3329. enable_epoll=yes
  3330. fi
  3331. # Check whether --with-ca-bundle was given.
  3332. if test "${with_ca_bundle+set}" = set; then :
  3333. withval=$with_ca_bundle; ca_bundle=$withval
  3334. else
  3335. ca_bundle=""
  3336. fi
  3337. # Checks for programs.
  3338. ac_ext=cpp
  3339. ac_cpp='$CXXCPP $CPPFLAGS'
  3340. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  3341. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  3342. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  3343. if test -z "$CXX"; then
  3344. if test -n "$CCC"; then
  3345. CXX=$CCC
  3346. else
  3347. if test -n "$ac_tool_prefix"; then
  3348. for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
  3349. do
  3350. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  3351. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  3352. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3353. $as_echo_n "checking for $ac_word... " >&6; }
  3354. if test "${ac_cv_prog_CXX+set}" = set; then :
  3355. $as_echo_n "(cached) " >&6
  3356. else
  3357. if test -n "$CXX"; then
  3358. ac_cv_prog_CXX="$CXX" # Let the user override the test.
  3359. else
  3360. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3361. for as_dir in $PATH
  3362. do
  3363. IFS=$as_save_IFS
  3364. test -z "$as_dir" && as_dir=.
  3365. for ac_exec_ext in '' $ac_executable_extensions; do
  3366. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  3367. ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
  3368. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  3369. break 2
  3370. fi
  3371. done
  3372. done
  3373. IFS=$as_save_IFS
  3374. fi
  3375. fi
  3376. CXX=$ac_cv_prog_CXX
  3377. if test -n "$CXX"; then
  3378. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
  3379. $as_echo "$CXX" >&6; }
  3380. else
  3381. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3382. $as_echo "no" >&6; }
  3383. fi
  3384. test -n "$CXX" && break
  3385. done
  3386. fi
  3387. if test -z "$CXX"; then
  3388. ac_ct_CXX=$CXX
  3389. for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
  3390. do
  3391. # Extract the first word of "$ac_prog", so it can be a program name with args.
  3392. set dummy $ac_prog; ac_word=$2
  3393. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3394. $as_echo_n "checking for $ac_word... " >&6; }
  3395. if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then :
  3396. $as_echo_n "(cached) " >&6
  3397. else
  3398. if test -n "$ac_ct_CXX"; then
  3399. ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
  3400. else
  3401. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3402. for as_dir in $PATH
  3403. do
  3404. IFS=$as_save_IFS
  3405. test -z "$as_dir" && as_dir=.
  3406. for ac_exec_ext in '' $ac_executable_extensions; do
  3407. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  3408. ac_cv_prog_ac_ct_CXX="$ac_prog"
  3409. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  3410. break 2
  3411. fi
  3412. done
  3413. done
  3414. IFS=$as_save_IFS
  3415. fi
  3416. fi
  3417. ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
  3418. if test -n "$ac_ct_CXX"; then
  3419. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
  3420. $as_echo "$ac_ct_CXX" >&6; }
  3421. else
  3422. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3423. $as_echo "no" >&6; }
  3424. fi
  3425. test -n "$ac_ct_CXX" && break
  3426. done
  3427. if test "x$ac_ct_CXX" = x; then
  3428. CXX="g++"
  3429. else
  3430. case $cross_compiling:$ac_tool_warned in
  3431. yes:)
  3432. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  3433. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  3434. ac_tool_warned=yes ;;
  3435. esac
  3436. CXX=$ac_ct_CXX
  3437. fi
  3438. fi
  3439. fi
  3440. fi
  3441. # Provide some information about the compiler.
  3442. $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
  3443. set X $ac_compile
  3444. ac_compiler=$2
  3445. for ac_option in --version -v -V -qversion; do
  3446. { { ac_try="$ac_compiler $ac_option >&5"
  3447. case "(($ac_try" in
  3448. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3449. *) ac_try_echo=$ac_try;;
  3450. esac
  3451. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3452. $as_echo "$ac_try_echo"; } >&5
  3453. (eval "$ac_compiler $ac_option >&5") 2>conftest.err
  3454. ac_status=$?
  3455. if test -s conftest.err; then
  3456. sed '10a\
  3457. ... rest of stderr output deleted ...
  3458. 10q' conftest.err >conftest.er1
  3459. cat conftest.er1 >&5
  3460. fi
  3461. rm -f conftest.er1 conftest.err
  3462. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3463. test $ac_status = 0; }
  3464. done
  3465. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3466. /* end confdefs.h. */
  3467. int
  3468. main ()
  3469. {
  3470. ;
  3471. return 0;
  3472. }
  3473. _ACEOF
  3474. ac_clean_files_save=$ac_clean_files
  3475. ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
  3476. # Try to create an executable without -o first, disregard a.out.
  3477. # It will help us diagnose broken compilers, and finding out an intuition
  3478. # of exeext.
  3479. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C++ compiler works" >&5
  3480. $as_echo_n "checking whether the C++ compiler works... " >&6; }
  3481. ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
  3482. # The possible output files:
  3483. ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
  3484. ac_rmfiles=
  3485. for ac_file in $ac_files
  3486. do
  3487. case $ac_file in
  3488. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
  3489. * ) ac_rmfiles="$ac_rmfiles $ac_file";;
  3490. esac
  3491. done
  3492. rm -f $ac_rmfiles
  3493. if { { ac_try="$ac_link_default"
  3494. case "(($ac_try" in
  3495. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3496. *) ac_try_echo=$ac_try;;
  3497. esac
  3498. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3499. $as_echo "$ac_try_echo"; } >&5
  3500. (eval "$ac_link_default") 2>&5
  3501. ac_status=$?
  3502. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3503. test $ac_status = 0; }; then :
  3504. # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
  3505. # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
  3506. # in a Makefile. We should not override ac_cv_exeext if it was cached,
  3507. # so that the user can short-circuit this test for compilers unknown to
  3508. # Autoconf.
  3509. for ac_file in $ac_files ''
  3510. do
  3511. test -f "$ac_file" || continue
  3512. case $ac_file in
  3513. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
  3514. ;;
  3515. [ab].out )
  3516. # We found the default executable, but exeext='' is most
  3517. # certainly right.
  3518. break;;
  3519. *.* )
  3520. if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
  3521. then :; else
  3522. ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
  3523. fi
  3524. # We set ac_cv_exeext here because the later test for it is not
  3525. # safe: cross compilers may not add the suffix if given an `-o'
  3526. # argument, so we may need to know it at that point already.
  3527. # Even if this section looks crufty: it has the advantage of
  3528. # actually working.
  3529. break;;
  3530. * )
  3531. break;;
  3532. esac
  3533. done
  3534. test "$ac_cv_exeext" = no && ac_cv_exeext=
  3535. else
  3536. ac_file=''
  3537. fi
  3538. if test -z "$ac_file"; then :
  3539. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3540. $as_echo "no" >&6; }
  3541. $as_echo "$as_me: failed program was:" >&5
  3542. sed 's/^/| /' conftest.$ac_ext >&5
  3543. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  3544. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  3545. { as_fn_set_status 77
  3546. as_fn_error "C++ compiler cannot create executables
  3547. See \`config.log' for more details." "$LINENO" 5; }; }
  3548. else
  3549. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  3550. $as_echo "yes" >&6; }
  3551. fi
  3552. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler default output file name" >&5
  3553. $as_echo_n "checking for C++ compiler default output file name... " >&6; }
  3554. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
  3555. $as_echo "$ac_file" >&6; }
  3556. ac_exeext=$ac_cv_exeext
  3557. rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
  3558. ac_clean_files=$ac_clean_files_save
  3559. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
  3560. $as_echo_n "checking for suffix of executables... " >&6; }
  3561. if { { ac_try="$ac_link"
  3562. case "(($ac_try" in
  3563. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3564. *) ac_try_echo=$ac_try;;
  3565. esac
  3566. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3567. $as_echo "$ac_try_echo"; } >&5
  3568. (eval "$ac_link") 2>&5
  3569. ac_status=$?
  3570. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3571. test $ac_status = 0; }; then :
  3572. # If both `conftest.exe' and `conftest' are `present' (well, observable)
  3573. # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
  3574. # work properly (i.e., refer to `conftest.exe'), while it won't with
  3575. # `rm'.
  3576. for ac_file in conftest.exe conftest conftest.*; do
  3577. test -f "$ac_file" || continue
  3578. case $ac_file in
  3579. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
  3580. *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
  3581. break;;
  3582. * ) break;;
  3583. esac
  3584. done
  3585. else
  3586. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  3587. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  3588. as_fn_error "cannot compute suffix of executables: cannot compile and link
  3589. See \`config.log' for more details." "$LINENO" 5; }
  3590. fi
  3591. rm -f conftest conftest$ac_cv_exeext
  3592. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
  3593. $as_echo "$ac_cv_exeext" >&6; }
  3594. rm -f conftest.$ac_ext
  3595. EXEEXT=$ac_cv_exeext
  3596. ac_exeext=$EXEEXT
  3597. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3598. /* end confdefs.h. */
  3599. #include <stdio.h>
  3600. int
  3601. main ()
  3602. {
  3603. FILE *f = fopen ("conftest.out", "w");
  3604. return ferror (f) || fclose (f) != 0;
  3605. ;
  3606. return 0;
  3607. }
  3608. _ACEOF
  3609. ac_clean_files="$ac_clean_files conftest.out"
  3610. # Check that the compiler produces executables we can run. If not, either
  3611. # the compiler is broken, or we cross compile.
  3612. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
  3613. $as_echo_n "checking whether we are cross compiling... " >&6; }
  3614. if test "$cross_compiling" != yes; then
  3615. { { ac_try="$ac_link"
  3616. case "(($ac_try" in
  3617. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3618. *) ac_try_echo=$ac_try;;
  3619. esac
  3620. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3621. $as_echo "$ac_try_echo"; } >&5
  3622. (eval "$ac_link") 2>&5
  3623. ac_status=$?
  3624. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3625. test $ac_status = 0; }
  3626. if { ac_try='./conftest$ac_cv_exeext'
  3627. { { case "(($ac_try" in
  3628. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3629. *) ac_try_echo=$ac_try;;
  3630. esac
  3631. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3632. $as_echo "$ac_try_echo"; } >&5
  3633. (eval "$ac_try") 2>&5
  3634. ac_status=$?
  3635. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3636. test $ac_status = 0; }; }; then
  3637. cross_compiling=no
  3638. else
  3639. if test "$cross_compiling" = maybe; then
  3640. cross_compiling=yes
  3641. else
  3642. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  3643. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  3644. as_fn_error "cannot run C++ compiled programs.
  3645. If you meant to cross compile, use \`--host'.
  3646. See \`config.log' for more details." "$LINENO" 5; }
  3647. fi
  3648. fi
  3649. fi
  3650. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
  3651. $as_echo "$cross_compiling" >&6; }
  3652. rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
  3653. ac_clean_files=$ac_clean_files_save
  3654. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
  3655. $as_echo_n "checking for suffix of object files... " >&6; }
  3656. if test "${ac_cv_objext+set}" = set; then :
  3657. $as_echo_n "(cached) " >&6
  3658. else
  3659. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3660. /* end confdefs.h. */
  3661. int
  3662. main ()
  3663. {
  3664. ;
  3665. return 0;
  3666. }
  3667. _ACEOF
  3668. rm -f conftest.o conftest.obj
  3669. if { { ac_try="$ac_compile"
  3670. case "(($ac_try" in
  3671. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3672. *) ac_try_echo=$ac_try;;
  3673. esac
  3674. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3675. $as_echo "$ac_try_echo"; } >&5
  3676. (eval "$ac_compile") 2>&5
  3677. ac_status=$?
  3678. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3679. test $ac_status = 0; }; then :
  3680. for ac_file in conftest.o conftest.obj conftest.*; do
  3681. test -f "$ac_file" || continue;
  3682. case $ac_file in
  3683. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
  3684. *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
  3685. break;;
  3686. esac
  3687. done
  3688. else
  3689. $as_echo "$as_me: failed program was:" >&5
  3690. sed 's/^/| /' conftest.$ac_ext >&5
  3691. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  3692. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  3693. as_fn_error "cannot compute suffix of object files: cannot compile
  3694. See \`config.log' for more details." "$LINENO" 5; }
  3695. fi
  3696. rm -f conftest.$ac_cv_objext conftest.$ac_ext
  3697. fi
  3698. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
  3699. $as_echo "$ac_cv_objext" >&6; }
  3700. OBJEXT=$ac_cv_objext
  3701. ac_objext=$OBJEXT
  3702. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
  3703. $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
  3704. if test "${ac_cv_cxx_compiler_gnu+set}" = set; then :
  3705. $as_echo_n "(cached) " >&6
  3706. else
  3707. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3708. /* end confdefs.h. */
  3709. int
  3710. main ()
  3711. {
  3712. #ifndef __GNUC__
  3713. choke me
  3714. #endif
  3715. ;
  3716. return 0;
  3717. }
  3718. _ACEOF
  3719. if ac_fn_cxx_try_compile "$LINENO"; then :
  3720. ac_compiler_gnu=yes
  3721. else
  3722. ac_compiler_gnu=no
  3723. fi
  3724. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3725. ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
  3726. fi
  3727. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
  3728. $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
  3729. if test $ac_compiler_gnu = yes; then
  3730. GXX=yes
  3731. else
  3732. GXX=
  3733. fi
  3734. ac_test_CXXFLAGS=${CXXFLAGS+set}
  3735. ac_save_CXXFLAGS=$CXXFLAGS
  3736. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
  3737. $as_echo_n "checking whether $CXX accepts -g... " >&6; }
  3738. if test "${ac_cv_prog_cxx_g+set}" = set; then :
  3739. $as_echo_n "(cached) " >&6
  3740. else
  3741. ac_save_cxx_werror_flag=$ac_cxx_werror_flag
  3742. ac_cxx_werror_flag=yes
  3743. ac_cv_prog_cxx_g=no
  3744. CXXFLAGS="-g"
  3745. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3746. /* end confdefs.h. */
  3747. int
  3748. main ()
  3749. {
  3750. ;
  3751. return 0;
  3752. }
  3753. _ACEOF
  3754. if ac_fn_cxx_try_compile "$LINENO"; then :
  3755. ac_cv_prog_cxx_g=yes
  3756. else
  3757. CXXFLAGS=""
  3758. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3759. /* end confdefs.h. */
  3760. int
  3761. main ()
  3762. {
  3763. ;
  3764. return 0;
  3765. }
  3766. _ACEOF
  3767. if ac_fn_cxx_try_compile "$LINENO"; then :
  3768. else
  3769. ac_cxx_werror_flag=$ac_save_cxx_werror_flag
  3770. CXXFLAGS="-g"
  3771. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3772. /* end confdefs.h. */
  3773. int
  3774. main ()
  3775. {
  3776. ;
  3777. return 0;
  3778. }
  3779. _ACEOF
  3780. if ac_fn_cxx_try_compile "$LINENO"; then :
  3781. ac_cv_prog_cxx_g=yes
  3782. fi
  3783. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3784. fi
  3785. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3786. fi
  3787. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3788. ac_cxx_werror_flag=$ac_save_cxx_werror_flag
  3789. fi
  3790. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
  3791. $as_echo "$ac_cv_prog_cxx_g" >&6; }
  3792. if test "$ac_test_CXXFLAGS" = set; then
  3793. CXXFLAGS=$ac_save_CXXFLAGS
  3794. elif test $ac_cv_prog_cxx_g = yes; then
  3795. if test "$GXX" = yes; then
  3796. CXXFLAGS="-g -O2"
  3797. else
  3798. CXXFLAGS="-g"
  3799. fi
  3800. else
  3801. if test "$GXX" = yes; then
  3802. CXXFLAGS="-O2"
  3803. else
  3804. CXXFLAGS=
  3805. fi
  3806. fi
  3807. ac_ext=c
  3808. ac_cpp='$CPP $CPPFLAGS'
  3809. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  3810. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  3811. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  3812. DEPDIR="${am__leading_dot}deps"
  3813. ac_config_commands="$ac_config_commands depfiles"
  3814. am_make=${MAKE-make}
  3815. cat > confinc << 'END'
  3816. am__doit:
  3817. @echo this is the am__doit target
  3818. .PHONY: am__doit
  3819. END
  3820. # If we don't find an include directive, just comment out the code.
  3821. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
  3822. $as_echo_n "checking for style of include used by $am_make... " >&6; }
  3823. am__include="#"
  3824. am__quote=
  3825. _am_result=none
  3826. # First try GNU make style include.
  3827. echo "include confinc" > confmf
  3828. # Ignore all kinds of additional output from `make'.
  3829. case `$am_make -s -f confmf 2> /dev/null` in #(
  3830. *the\ am__doit\ target*)
  3831. am__include=include
  3832. am__quote=
  3833. _am_result=GNU
  3834. ;;
  3835. esac
  3836. # Now try BSD make style include.
  3837. if test "$am__include" = "#"; then
  3838. echo '.include "confinc"' > confmf
  3839. case `$am_make -s -f confmf 2> /dev/null` in #(
  3840. *the\ am__doit\ target*)
  3841. am__include=.include
  3842. am__quote="\""
  3843. _am_result=BSD
  3844. ;;
  3845. esac
  3846. fi
  3847. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
  3848. $as_echo "$_am_result" >&6; }
  3849. rm -f confinc confmf
  3850. # Check whether --enable-dependency-tracking was given.
  3851. if test "${enable_dependency_tracking+set}" = set; then :
  3852. enableval=$enable_dependency_tracking;
  3853. fi
  3854. if test "x$enable_dependency_tracking" != xno; then
  3855. am_depcomp="$ac_aux_dir/depcomp"
  3856. AMDEPBACKSLASH='\'
  3857. fi
  3858. if test "x$enable_dependency_tracking" != xno; then
  3859. AMDEP_TRUE=
  3860. AMDEP_FALSE='#'
  3861. else
  3862. AMDEP_TRUE='#'
  3863. AMDEP_FALSE=
  3864. fi
  3865. depcc="$CXX" am_compiler_list=
  3866. { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
  3867. $as_echo_n "checking dependency style of $depcc... " >&6; }
  3868. if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then :
  3869. $as_echo_n "(cached) " >&6
  3870. else
  3871. if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
  3872. # We make a subdir and do the tests there. Otherwise we can end up
  3873. # making bogus files that we don't know about and never remove. For
  3874. # instance it was reported that on HP-UX the gcc test will end up
  3875. # making a dummy file named `D' -- because `-MD' means `put the output
  3876. # in D'.
  3877. mkdir conftest.dir
  3878. # Copy depcomp to subdir because otherwise we won't find it if we're
  3879. # using a relative directory.
  3880. cp "$am_depcomp" conftest.dir
  3881. cd conftest.dir
  3882. # We will build objects and dependencies in a subdirectory because
  3883. # it helps to detect inapplicable dependency modes. For instance
  3884. # both Tru64's cc and ICC support -MD to output dependencies as a
  3885. # side effect of compilation, but ICC will put the dependencies in
  3886. # the current directory while Tru64 will put them in the object
  3887. # directory.
  3888. mkdir sub
  3889. am_cv_CXX_dependencies_compiler_type=none
  3890. if test "$am_compiler_list" = ""; then
  3891. am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
  3892. fi
  3893. am__universal=false
  3894. case " $depcc " in #(
  3895. *\ -arch\ *\ -arch\ *) am__universal=true ;;
  3896. esac
  3897. for depmode in $am_compiler_list; do
  3898. # Setup a source with many dependencies, because some compilers
  3899. # like to wrap large dependency lists on column 80 (with \), and
  3900. # we should not choose a depcomp mode which is confused by this.
  3901. #
  3902. # We need to recreate these files for each test, as the compiler may
  3903. # overwrite some of them when testing with obscure command lines.
  3904. # This happens at least with the AIX C compiler.
  3905. : > sub/conftest.c
  3906. for i in 1 2 3 4 5 6; do
  3907. echo '#include "conftst'$i'.h"' >> sub/conftest.c
  3908. # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
  3909. # Solaris 8's {/usr,}/bin/sh.
  3910. touch sub/conftst$i.h
  3911. done
  3912. echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
  3913. # We check with `-c' and `-o' for the sake of the "dashmstdout"
  3914. # mode. It turns out that the SunPro C++ compiler does not properly
  3915. # handle `-M -o', and we need to detect this. Also, some Intel
  3916. # versions had trouble with output in subdirs
  3917. am__obj=sub/conftest.${OBJEXT-o}
  3918. am__minus_obj="-o $am__obj"
  3919. case $depmode in
  3920. gcc)
  3921. # This depmode causes a compiler race in universal mode.
  3922. test "$am__universal" = false || continue
  3923. ;;
  3924. nosideeffect)
  3925. # after this tag, mechanisms are not by side-effect, so they'll
  3926. # only be used when explicitly requested
  3927. if test "x$enable_dependency_tracking" = xyes; then
  3928. continue
  3929. else
  3930. break
  3931. fi
  3932. ;;
  3933. msvisualcpp | msvcmsys)
  3934. # This compiler won't grok `-c -o', but also, the minuso test has
  3935. # not run yet. These depmodes are late enough in the game, and
  3936. # so weak that their functioning should not be impacted.
  3937. am__obj=conftest.${OBJEXT-o}
  3938. am__minus_obj=
  3939. ;;
  3940. none) break ;;
  3941. esac
  3942. if depmode=$depmode \
  3943. source=sub/conftest.c object=$am__obj \
  3944. depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
  3945. $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
  3946. >/dev/null 2>conftest.err &&
  3947. grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
  3948. grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
  3949. grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
  3950. ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
  3951. # icc doesn't choke on unknown options, it will just issue warnings
  3952. # or remarks (even with -Werror). So we grep stderr for any message
  3953. # that says an option was ignored or not supported.
  3954. # When given -MP, icc 7.0 and 7.1 complain thusly:
  3955. # icc: Command line warning: ignoring option '-M'; no argument required
  3956. # The diagnosis changed in icc 8.0:
  3957. # icc: Command line remark: option '-MP' not supported
  3958. if (grep 'ignoring option' conftest.err ||
  3959. grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
  3960. am_cv_CXX_dependencies_compiler_type=$depmode
  3961. break
  3962. fi
  3963. fi
  3964. done
  3965. cd ..
  3966. rm -rf conftest.dir
  3967. else
  3968. am_cv_CXX_dependencies_compiler_type=none
  3969. fi
  3970. fi
  3971. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
  3972. $as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
  3973. CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
  3974. if
  3975. test "x$enable_dependency_tracking" != xno \
  3976. && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
  3977. am__fastdepCXX_TRUE=
  3978. am__fastdepCXX_FALSE='#'
  3979. else
  3980. am__fastdepCXX_TRUE='#'
  3981. am__fastdepCXX_FALSE=
  3982. fi
  3983. ac_ext=c
  3984. ac_cpp='$CPP $CPPFLAGS'
  3985. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  3986. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  3987. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  3988. if test -n "$ac_tool_prefix"; then
  3989. # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
  3990. set dummy ${ac_tool_prefix}gcc; ac_word=$2
  3991. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3992. $as_echo_n "checking for $ac_word... " >&6; }
  3993. if test "${ac_cv_prog_CC+set}" = set; then :
  3994. $as_echo_n "(cached) " >&6
  3995. else
  3996. if test -n "$CC"; then
  3997. ac_cv_prog_CC="$CC" # Let the user override the test.
  3998. else
  3999. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4000. for as_dir in $PATH
  4001. do
  4002. IFS=$as_save_IFS
  4003. test -z "$as_dir" && as_dir=.
  4004. for ac_exec_ext in '' $ac_executable_extensions; do
  4005. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  4006. ac_cv_prog_CC="${ac_tool_prefix}gcc"
  4007. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4008. break 2
  4009. fi
  4010. done
  4011. done
  4012. IFS=$as_save_IFS
  4013. fi
  4014. fi
  4015. CC=$ac_cv_prog_CC
  4016. if test -n "$CC"; then
  4017. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  4018. $as_echo "$CC" >&6; }
  4019. else
  4020. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4021. $as_echo "no" >&6; }
  4022. fi
  4023. fi
  4024. if test -z "$ac_cv_prog_CC"; then
  4025. ac_ct_CC=$CC
  4026. # Extract the first word of "gcc", so it can be a program name with args.
  4027. set dummy gcc; ac_word=$2
  4028. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4029. $as_echo_n "checking for $ac_word... " >&6; }
  4030. if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
  4031. $as_echo_n "(cached) " >&6
  4032. else
  4033. if test -n "$ac_ct_CC"; then
  4034. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  4035. else
  4036. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4037. for as_dir in $PATH
  4038. do
  4039. IFS=$as_save_IFS
  4040. test -z "$as_dir" && as_dir=.
  4041. for ac_exec_ext in '' $ac_executable_extensions; do
  4042. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  4043. ac_cv_prog_ac_ct_CC="gcc"
  4044. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4045. break 2
  4046. fi
  4047. done
  4048. done
  4049. IFS=$as_save_IFS
  4050. fi
  4051. fi
  4052. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  4053. if test -n "$ac_ct_CC"; then
  4054. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
  4055. $as_echo "$ac_ct_CC" >&6; }
  4056. else
  4057. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4058. $as_echo "no" >&6; }
  4059. fi
  4060. if test "x$ac_ct_CC" = x; then
  4061. CC=""
  4062. else
  4063. case $cross_compiling:$ac_tool_warned in
  4064. yes:)
  4065. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  4066. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  4067. ac_tool_warned=yes ;;
  4068. esac
  4069. CC=$ac_ct_CC
  4070. fi
  4071. else
  4072. CC="$ac_cv_prog_CC"
  4073. fi
  4074. if test -z "$CC"; then
  4075. if test -n "$ac_tool_prefix"; then
  4076. # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
  4077. set dummy ${ac_tool_prefix}cc; ac_word=$2
  4078. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4079. $as_echo_n "checking for $ac_word... " >&6; }
  4080. if test "${ac_cv_prog_CC+set}" = set; then :
  4081. $as_echo_n "(cached) " >&6
  4082. else
  4083. if test -n "$CC"; then
  4084. ac_cv_prog_CC="$CC" # Let the user override the test.
  4085. else
  4086. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4087. for as_dir in $PATH
  4088. do
  4089. IFS=$as_save_IFS
  4090. test -z "$as_dir" && as_dir=.
  4091. for ac_exec_ext in '' $ac_executable_extensions; do
  4092. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  4093. ac_cv_prog_CC="${ac_tool_prefix}cc"
  4094. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4095. break 2
  4096. fi
  4097. done
  4098. done
  4099. IFS=$as_save_IFS
  4100. fi
  4101. fi
  4102. CC=$ac_cv_prog_CC
  4103. if test -n "$CC"; then
  4104. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  4105. $as_echo "$CC" >&6; }
  4106. else
  4107. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4108. $as_echo "no" >&6; }
  4109. fi
  4110. fi
  4111. fi
  4112. if test -z "$CC"; then
  4113. # Extract the first word of "cc", so it can be a program name with args.
  4114. set dummy cc; ac_word=$2
  4115. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4116. $as_echo_n "checking for $ac_word... " >&6; }
  4117. if test "${ac_cv_prog_CC+set}" = set; then :
  4118. $as_echo_n "(cached) " >&6
  4119. else
  4120. if test -n "$CC"; then
  4121. ac_cv_prog_CC="$CC" # Let the user override the test.
  4122. else
  4123. ac_prog_rejected=no
  4124. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4125. for as_dir in $PATH
  4126. do
  4127. IFS=$as_save_IFS
  4128. test -z "$as_dir" && as_dir=.
  4129. for ac_exec_ext in '' $ac_executable_extensions; do
  4130. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  4131. if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
  4132. ac_prog_rejected=yes
  4133. continue
  4134. fi
  4135. ac_cv_prog_CC="cc"
  4136. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4137. break 2
  4138. fi
  4139. done
  4140. done
  4141. IFS=$as_save_IFS
  4142. if test $ac_prog_rejected = yes; then
  4143. # We found a bogon in the path, so make sure we never use it.
  4144. set dummy $ac_cv_prog_CC
  4145. shift
  4146. if test $# != 0; then
  4147. # We chose a different compiler from the bogus one.
  4148. # However, it has the same basename, so the bogon will be chosen
  4149. # first if we set CC to just the basename; use the full file name.
  4150. shift
  4151. ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
  4152. fi
  4153. fi
  4154. fi
  4155. fi
  4156. CC=$ac_cv_prog_CC
  4157. if test -n "$CC"; then
  4158. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  4159. $as_echo "$CC" >&6; }
  4160. else
  4161. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4162. $as_echo "no" >&6; }
  4163. fi
  4164. fi
  4165. if test -z "$CC"; then
  4166. if test -n "$ac_tool_prefix"; then
  4167. for ac_prog in cl.exe
  4168. do
  4169. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  4170. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  4171. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4172. $as_echo_n "checking for $ac_word... " >&6; }
  4173. if test "${ac_cv_prog_CC+set}" = set; then :
  4174. $as_echo_n "(cached) " >&6
  4175. else
  4176. if test -n "$CC"; then
  4177. ac_cv_prog_CC="$CC" # Let the user override the test.
  4178. else
  4179. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4180. for as_dir in $PATH
  4181. do
  4182. IFS=$as_save_IFS
  4183. test -z "$as_dir" && as_dir=.
  4184. for ac_exec_ext in '' $ac_executable_extensions; do
  4185. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  4186. ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
  4187. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4188. break 2
  4189. fi
  4190. done
  4191. done
  4192. IFS=$as_save_IFS
  4193. fi
  4194. fi
  4195. CC=$ac_cv_prog_CC
  4196. if test -n "$CC"; then
  4197. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  4198. $as_echo "$CC" >&6; }
  4199. else
  4200. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4201. $as_echo "no" >&6; }
  4202. fi
  4203. test -n "$CC" && break
  4204. done
  4205. fi
  4206. if test -z "$CC"; then
  4207. ac_ct_CC=$CC
  4208. for ac_prog in cl.exe
  4209. do
  4210. # Extract the first word of "$ac_prog", so it can be a program name with args.
  4211. set dummy $ac_prog; ac_word=$2
  4212. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4213. $as_echo_n "checking for $ac_word... " >&6; }
  4214. if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
  4215. $as_echo_n "(cached) " >&6
  4216. else
  4217. if test -n "$ac_ct_CC"; then
  4218. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  4219. else
  4220. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4221. for as_dir in $PATH
  4222. do
  4223. IFS=$as_save_IFS
  4224. test -z "$as_dir" && as_dir=.
  4225. for ac_exec_ext in '' $ac_executable_extensions; do
  4226. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  4227. ac_cv_prog_ac_ct_CC="$ac_prog"
  4228. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4229. break 2
  4230. fi
  4231. done
  4232. done
  4233. IFS=$as_save_IFS
  4234. fi
  4235. fi
  4236. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  4237. if test -n "$ac_ct_CC"; then
  4238. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
  4239. $as_echo "$ac_ct_CC" >&6; }
  4240. else
  4241. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4242. $as_echo "no" >&6; }
  4243. fi
  4244. test -n "$ac_ct_CC" && break
  4245. done
  4246. if test "x$ac_ct_CC" = x; then
  4247. CC=""
  4248. else
  4249. case $cross_compiling:$ac_tool_warned in
  4250. yes:)
  4251. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  4252. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  4253. ac_tool_warned=yes ;;
  4254. esac
  4255. CC=$ac_ct_CC
  4256. fi
  4257. fi
  4258. fi
  4259. test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  4260. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  4261. as_fn_error "no acceptable C compiler found in \$PATH
  4262. See \`config.log' for more details." "$LINENO" 5; }
  4263. # Provide some information about the compiler.
  4264. $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
  4265. set X $ac_compile
  4266. ac_compiler=$2
  4267. for ac_option in --version -v -V -qversion; do
  4268. { { ac_try="$ac_compiler $ac_option >&5"
  4269. case "(($ac_try" in
  4270. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  4271. *) ac_try_echo=$ac_try;;
  4272. esac
  4273. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  4274. $as_echo "$ac_try_echo"; } >&5
  4275. (eval "$ac_compiler $ac_option >&5") 2>conftest.err
  4276. ac_status=$?
  4277. if test -s conftest.err; then
  4278. sed '10a\
  4279. ... rest of stderr output deleted ...
  4280. 10q' conftest.err >conftest.er1
  4281. cat conftest.er1 >&5
  4282. fi
  4283. rm -f conftest.er1 conftest.err
  4284. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  4285. test $ac_status = 0; }
  4286. done
  4287. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
  4288. $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
  4289. if test "${ac_cv_c_compiler_gnu+set}" = set; then :
  4290. $as_echo_n "(cached) " >&6
  4291. else
  4292. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4293. /* end confdefs.h. */
  4294. int
  4295. main ()
  4296. {
  4297. #ifndef __GNUC__
  4298. choke me
  4299. #endif
  4300. ;
  4301. return 0;
  4302. }
  4303. _ACEOF
  4304. if ac_fn_c_try_compile "$LINENO"; then :
  4305. ac_compiler_gnu=yes
  4306. else
  4307. ac_compiler_gnu=no
  4308. fi
  4309. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4310. ac_cv_c_compiler_gnu=$ac_compiler_gnu
  4311. fi
  4312. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
  4313. $as_echo "$ac_cv_c_compiler_gnu" >&6; }
  4314. if test $ac_compiler_gnu = yes; then
  4315. GCC=yes
  4316. else
  4317. GCC=
  4318. fi
  4319. ac_test_CFLAGS=${CFLAGS+set}
  4320. ac_save_CFLAGS=$CFLAGS
  4321. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
  4322. $as_echo_n "checking whether $CC accepts -g... " >&6; }
  4323. if test "${ac_cv_prog_cc_g+set}" = set; then :
  4324. $as_echo_n "(cached) " >&6
  4325. else
  4326. ac_save_c_werror_flag=$ac_c_werror_flag
  4327. ac_c_werror_flag=yes
  4328. ac_cv_prog_cc_g=no
  4329. CFLAGS="-g"
  4330. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4331. /* end confdefs.h. */
  4332. int
  4333. main ()
  4334. {
  4335. ;
  4336. return 0;
  4337. }
  4338. _ACEOF
  4339. if ac_fn_c_try_compile "$LINENO"; then :
  4340. ac_cv_prog_cc_g=yes
  4341. else
  4342. CFLAGS=""
  4343. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4344. /* end confdefs.h. */
  4345. int
  4346. main ()
  4347. {
  4348. ;
  4349. return 0;
  4350. }
  4351. _ACEOF
  4352. if ac_fn_c_try_compile "$LINENO"; then :
  4353. else
  4354. ac_c_werror_flag=$ac_save_c_werror_flag
  4355. CFLAGS="-g"
  4356. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4357. /* end confdefs.h. */
  4358. int
  4359. main ()
  4360. {
  4361. ;
  4362. return 0;
  4363. }
  4364. _ACEOF
  4365. if ac_fn_c_try_compile "$LINENO"; then :
  4366. ac_cv_prog_cc_g=yes
  4367. fi
  4368. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4369. fi
  4370. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4371. fi
  4372. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4373. ac_c_werror_flag=$ac_save_c_werror_flag
  4374. fi
  4375. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
  4376. $as_echo "$ac_cv_prog_cc_g" >&6; }
  4377. if test "$ac_test_CFLAGS" = set; then
  4378. CFLAGS=$ac_save_CFLAGS
  4379. elif test $ac_cv_prog_cc_g = yes; then
  4380. if test "$GCC" = yes; then
  4381. CFLAGS="-g -O2"
  4382. else
  4383. CFLAGS="-g"
  4384. fi
  4385. else
  4386. if test "$GCC" = yes; then
  4387. CFLAGS="-O2"
  4388. else
  4389. CFLAGS=
  4390. fi
  4391. fi
  4392. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
  4393. $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
  4394. if test "${ac_cv_prog_cc_c89+set}" = set; then :
  4395. $as_echo_n "(cached) " >&6
  4396. else
  4397. ac_cv_prog_cc_c89=no
  4398. ac_save_CC=$CC
  4399. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4400. /* end confdefs.h. */
  4401. #include <stdarg.h>
  4402. #include <stdio.h>
  4403. #include <sys/types.h>
  4404. #include <sys/stat.h>
  4405. /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
  4406. struct buf { int x; };
  4407. FILE * (*rcsopen) (struct buf *, struct stat *, int);
  4408. static char *e (p, i)
  4409. char **p;
  4410. int i;
  4411. {
  4412. return p[i];
  4413. }
  4414. static char *f (char * (*g) (char **, int), char **p, ...)
  4415. {
  4416. char *s;
  4417. va_list v;
  4418. va_start (v,p);
  4419. s = g (p, va_arg (v,int));
  4420. va_end (v);
  4421. return s;
  4422. }
  4423. /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
  4424. function prototypes and stuff, but not '\xHH' hex character constants.
  4425. These don't provoke an error unfortunately, instead are silently treated
  4426. as 'x'. The following induces an error, until -std is added to get
  4427. proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
  4428. array size at least. It's necessary to write '\x00'==0 to get something
  4429. that's true only with -std. */
  4430. int osf4_cc_array ['\x00' == 0 ? 1 : -1];
  4431. /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
  4432. inside strings and character constants. */
  4433. #define FOO(x) 'x'
  4434. int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
  4435. int test (int i, double x);
  4436. struct s1 {int (*f) (int a);};
  4437. struct s2 {int (*f) (double a);};
  4438. int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
  4439. int argc;
  4440. char **argv;
  4441. int
  4442. main ()
  4443. {
  4444. return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
  4445. ;
  4446. return 0;
  4447. }
  4448. _ACEOF
  4449. for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
  4450. -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
  4451. do
  4452. CC="$ac_save_CC $ac_arg"
  4453. if ac_fn_c_try_compile "$LINENO"; then :
  4454. ac_cv_prog_cc_c89=$ac_arg
  4455. fi
  4456. rm -f core conftest.err conftest.$ac_objext
  4457. test "x$ac_cv_prog_cc_c89" != "xno" && break
  4458. done
  4459. rm -f conftest.$ac_ext
  4460. CC=$ac_save_CC
  4461. fi
  4462. # AC_CACHE_VAL
  4463. case "x$ac_cv_prog_cc_c89" in
  4464. x)
  4465. { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
  4466. $as_echo "none needed" >&6; } ;;
  4467. xno)
  4468. { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
  4469. $as_echo "unsupported" >&6; } ;;
  4470. *)
  4471. CC="$CC $ac_cv_prog_cc_c89"
  4472. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
  4473. $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
  4474. esac
  4475. if test "x$ac_cv_prog_cc_c89" != xno; then :
  4476. fi
  4477. ac_ext=c
  4478. ac_cpp='$CPP $CPPFLAGS'
  4479. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  4480. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  4481. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  4482. depcc="$CC" am_compiler_list=
  4483. { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
  4484. $as_echo_n "checking dependency style of $depcc... " >&6; }
  4485. if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then :
  4486. $as_echo_n "(cached) " >&6
  4487. else
  4488. if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
  4489. # We make a subdir and do the tests there. Otherwise we can end up
  4490. # making bogus files that we don't know about and never remove. For
  4491. # instance it was reported that on HP-UX the gcc test will end up
  4492. # making a dummy file named `D' -- because `-MD' means `put the output
  4493. # in D'.
  4494. mkdir conftest.dir
  4495. # Copy depcomp to subdir because otherwise we won't find it if we're
  4496. # using a relative directory.
  4497. cp "$am_depcomp" conftest.dir
  4498. cd conftest.dir
  4499. # We will build objects and dependencies in a subdirectory because
  4500. # it helps to detect inapplicable dependency modes. For instance
  4501. # both Tru64's cc and ICC support -MD to output dependencies as a
  4502. # side effect of compilation, but ICC will put the dependencies in
  4503. # the current directory while Tru64 will put them in the object
  4504. # directory.
  4505. mkdir sub
  4506. am_cv_CC_dependencies_compiler_type=none
  4507. if test "$am_compiler_list" = ""; then
  4508. am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
  4509. fi
  4510. am__universal=false
  4511. case " $depcc " in #(
  4512. *\ -arch\ *\ -arch\ *) am__universal=true ;;
  4513. esac
  4514. for depmode in $am_compiler_list; do
  4515. # Setup a source with many dependencies, because some compilers
  4516. # like to wrap large dependency lists on column 80 (with \), and
  4517. # we should not choose a depcomp mode which is confused by this.
  4518. #
  4519. # We need to recreate these files for each test, as the compiler may
  4520. # overwrite some of them when testing with obscure command lines.
  4521. # This happens at least with the AIX C compiler.
  4522. : > sub/conftest.c
  4523. for i in 1 2 3 4 5 6; do
  4524. echo '#include "conftst'$i'.h"' >> sub/conftest.c
  4525. # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
  4526. # Solaris 8's {/usr,}/bin/sh.
  4527. touch sub/conftst$i.h
  4528. done
  4529. echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
  4530. # We check with `-c' and `-o' for the sake of the "dashmstdout"
  4531. # mode. It turns out that the SunPro C++ compiler does not properly
  4532. # handle `-M -o', and we need to detect this. Also, some Intel
  4533. # versions had trouble with output in subdirs
  4534. am__obj=sub/conftest.${OBJEXT-o}
  4535. am__minus_obj="-o $am__obj"
  4536. case $depmode in
  4537. gcc)
  4538. # This depmode causes a compiler race in universal mode.
  4539. test "$am__universal" = false || continue
  4540. ;;
  4541. nosideeffect)
  4542. # after this tag, mechanisms are not by side-effect, so they'll
  4543. # only be used when explicitly requested
  4544. if test "x$enable_dependency_tracking" = xyes; then
  4545. continue
  4546. else
  4547. break
  4548. fi
  4549. ;;
  4550. msvisualcpp | msvcmsys)
  4551. # This compiler won't grok `-c -o', but also, the minuso test has
  4552. # not run yet. These depmodes are late enough in the game, and
  4553. # so weak that their functioning should not be impacted.
  4554. am__obj=conftest.${OBJEXT-o}
  4555. am__minus_obj=
  4556. ;;
  4557. none) break ;;
  4558. esac
  4559. if depmode=$depmode \
  4560. source=sub/conftest.c object=$am__obj \
  4561. depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
  4562. $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
  4563. >/dev/null 2>conftest.err &&
  4564. grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
  4565. grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
  4566. grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
  4567. ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
  4568. # icc doesn't choke on unknown options, it will just issue warnings
  4569. # or remarks (even with -Werror). So we grep stderr for any message
  4570. # that says an option was ignored or not supported.
  4571. # When given -MP, icc 7.0 and 7.1 complain thusly:
  4572. # icc: Command line warning: ignoring option '-M'; no argument required
  4573. # The diagnosis changed in icc 8.0:
  4574. # icc: Command line remark: option '-MP' not supported
  4575. if (grep 'ignoring option' conftest.err ||
  4576. grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
  4577. am_cv_CC_dependencies_compiler_type=$depmode
  4578. break
  4579. fi
  4580. fi
  4581. done
  4582. cd ..
  4583. rm -rf conftest.dir
  4584. else
  4585. am_cv_CC_dependencies_compiler_type=none
  4586. fi
  4587. fi
  4588. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
  4589. $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
  4590. CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
  4591. if
  4592. test "x$enable_dependency_tracking" != xno \
  4593. && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
  4594. am__fastdepCC_TRUE=
  4595. am__fastdepCC_FALSE='#'
  4596. else
  4597. am__fastdepCC_TRUE='#'
  4598. am__fastdepCC_FALSE=
  4599. fi
  4600. if test -n "$ac_tool_prefix"; then
  4601. # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
  4602. set dummy ${ac_tool_prefix}ranlib; ac_word=$2
  4603. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4604. $as_echo_n "checking for $ac_word... " >&6; }
  4605. if test "${ac_cv_prog_RANLIB+set}" = set; then :
  4606. $as_echo_n "(cached) " >&6
  4607. else
  4608. if test -n "$RANLIB"; then
  4609. ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
  4610. else
  4611. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4612. for as_dir in $PATH
  4613. do
  4614. IFS=$as_save_IFS
  4615. test -z "$as_dir" && as_dir=.
  4616. for ac_exec_ext in '' $ac_executable_extensions; do
  4617. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  4618. ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
  4619. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4620. break 2
  4621. fi
  4622. done
  4623. done
  4624. IFS=$as_save_IFS
  4625. fi
  4626. fi
  4627. RANLIB=$ac_cv_prog_RANLIB
  4628. if test -n "$RANLIB"; then
  4629. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
  4630. $as_echo "$RANLIB" >&6; }
  4631. else
  4632. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4633. $as_echo "no" >&6; }
  4634. fi
  4635. fi
  4636. if test -z "$ac_cv_prog_RANLIB"; then
  4637. ac_ct_RANLIB=$RANLIB
  4638. # Extract the first word of "ranlib", so it can be a program name with args.
  4639. set dummy ranlib; ac_word=$2
  4640. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4641. $as_echo_n "checking for $ac_word... " >&6; }
  4642. if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
  4643. $as_echo_n "(cached) " >&6
  4644. else
  4645. if test -n "$ac_ct_RANLIB"; then
  4646. ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
  4647. else
  4648. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4649. for as_dir in $PATH
  4650. do
  4651. IFS=$as_save_IFS
  4652. test -z "$as_dir" && as_dir=.
  4653. for ac_exec_ext in '' $ac_executable_extensions; do
  4654. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  4655. ac_cv_prog_ac_ct_RANLIB="ranlib"
  4656. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4657. break 2
  4658. fi
  4659. done
  4660. done
  4661. IFS=$as_save_IFS
  4662. fi
  4663. fi
  4664. ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
  4665. if test -n "$ac_ct_RANLIB"; then
  4666. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
  4667. $as_echo "$ac_ct_RANLIB" >&6; }
  4668. else
  4669. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4670. $as_echo "no" >&6; }
  4671. fi
  4672. if test "x$ac_ct_RANLIB" = x; then
  4673. RANLIB=":"
  4674. else
  4675. case $cross_compiling:$ac_tool_warned in
  4676. yes:)
  4677. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  4678. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  4679. ac_tool_warned=yes ;;
  4680. esac
  4681. RANLIB=$ac_ct_RANLIB
  4682. fi
  4683. else
  4684. RANLIB="$ac_cv_prog_RANLIB"
  4685. fi
  4686. for ac_prog in 'bison -y' byacc
  4687. do
  4688. # Extract the first word of "$ac_prog", so it can be a program name with args.
  4689. set dummy $ac_prog; ac_word=$2
  4690. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4691. $as_echo_n "checking for $ac_word... " >&6; }
  4692. if test "${ac_cv_prog_YACC+set}" = set; then :
  4693. $as_echo_n "(cached) " >&6
  4694. else
  4695. if test -n "$YACC"; then
  4696. ac_cv_prog_YACC="$YACC" # Let the user override the test.
  4697. else
  4698. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4699. for as_dir in $PATH
  4700. do
  4701. IFS=$as_save_IFS
  4702. test -z "$as_dir" && as_dir=.
  4703. for ac_exec_ext in '' $ac_executable_extensions; do
  4704. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  4705. ac_cv_prog_YACC="$ac_prog"
  4706. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4707. break 2
  4708. fi
  4709. done
  4710. done
  4711. IFS=$as_save_IFS
  4712. fi
  4713. fi
  4714. YACC=$ac_cv_prog_YACC
  4715. if test -n "$YACC"; then
  4716. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $YACC" >&5
  4717. $as_echo "$YACC" >&6; }
  4718. else
  4719. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4720. $as_echo "no" >&6; }
  4721. fi
  4722. test -n "$YACC" && break
  4723. done
  4724. test -n "$YACC" || YACC="yacc"
  4725. # Setting language choice
  4726. ac_ext=cpp
  4727. ac_cpp='$CXXCPP $CPPFLAGS'
  4728. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  4729. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  4730. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  4731. # Enable system extensions
  4732. ac_ext=cpp
  4733. ac_cpp='$CXXCPP $CPPFLAGS'
  4734. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  4735. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  4736. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  4737. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
  4738. $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
  4739. if test -z "$CXXCPP"; then
  4740. if test "${ac_cv_prog_CXXCPP+set}" = set; then :
  4741. $as_echo_n "(cached) " >&6
  4742. else
  4743. # Double quotes because CXXCPP needs to be expanded
  4744. for CXXCPP in "$CXX -E" "/lib/cpp"
  4745. do
  4746. ac_preproc_ok=false
  4747. for ac_cxx_preproc_warn_flag in '' yes
  4748. do
  4749. # Use a header file that comes with gcc, so configuring glibc
  4750. # with a fresh cross-compiler works.
  4751. # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  4752. # <limits.h> exists even on freestanding compilers.
  4753. # On the NeXT, cc -E runs the code through the compiler's parser,
  4754. # not just through cpp. "Syntax error" is here to catch this case.
  4755. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4756. /* end confdefs.h. */
  4757. #ifdef __STDC__
  4758. # include <limits.h>
  4759. #else
  4760. # include <assert.h>
  4761. #endif
  4762. Syntax error
  4763. _ACEOF
  4764. if ac_fn_cxx_try_cpp "$LINENO"; then :
  4765. else
  4766. # Broken: fails on valid input.
  4767. continue
  4768. fi
  4769. rm -f conftest.err conftest.$ac_ext
  4770. # OK, works on sane cases. Now check whether nonexistent headers
  4771. # can be detected and how.
  4772. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4773. /* end confdefs.h. */
  4774. #include <ac_nonexistent.h>
  4775. _ACEOF
  4776. if ac_fn_cxx_try_cpp "$LINENO"; then :
  4777. # Broken: success on invalid input.
  4778. continue
  4779. else
  4780. # Passes both tests.
  4781. ac_preproc_ok=:
  4782. break
  4783. fi
  4784. rm -f conftest.err conftest.$ac_ext
  4785. done
  4786. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  4787. rm -f conftest.err conftest.$ac_ext
  4788. if $ac_preproc_ok; then :
  4789. break
  4790. fi
  4791. done
  4792. ac_cv_prog_CXXCPP=$CXXCPP
  4793. fi
  4794. CXXCPP=$ac_cv_prog_CXXCPP
  4795. else
  4796. ac_cv_prog_CXXCPP=$CXXCPP
  4797. fi
  4798. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
  4799. $as_echo "$CXXCPP" >&6; }
  4800. ac_preproc_ok=false
  4801. for ac_cxx_preproc_warn_flag in '' yes
  4802. do
  4803. # Use a header file that comes with gcc, so configuring glibc
  4804. # with a fresh cross-compiler works.
  4805. # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  4806. # <limits.h> exists even on freestanding compilers.
  4807. # On the NeXT, cc -E runs the code through the compiler's parser,
  4808. # not just through cpp. "Syntax error" is here to catch this case.
  4809. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4810. /* end confdefs.h. */
  4811. #ifdef __STDC__
  4812. # include <limits.h>
  4813. #else
  4814. # include <assert.h>
  4815. #endif
  4816. Syntax error
  4817. _ACEOF
  4818. if ac_fn_cxx_try_cpp "$LINENO"; then :
  4819. else
  4820. # Broken: fails on valid input.
  4821. continue
  4822. fi
  4823. rm -f conftest.err conftest.$ac_ext
  4824. # OK, works on sane cases. Now check whether nonexistent headers
  4825. # can be detected and how.
  4826. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4827. /* end confdefs.h. */
  4828. #include <ac_nonexistent.h>
  4829. _ACEOF
  4830. if ac_fn_cxx_try_cpp "$LINENO"; then :
  4831. # Broken: success on invalid input.
  4832. continue
  4833. else
  4834. # Passes both tests.
  4835. ac_preproc_ok=:
  4836. break
  4837. fi
  4838. rm -f conftest.err conftest.$ac_ext
  4839. done
  4840. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  4841. rm -f conftest.err conftest.$ac_ext
  4842. if $ac_preproc_ok; then :
  4843. else
  4844. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  4845. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  4846. as_fn_error "C++ preprocessor \"$CXXCPP\" fails sanity check
  4847. See \`config.log' for more details." "$LINENO" 5; }
  4848. fi
  4849. ac_ext=cpp
  4850. ac_cpp='$CXXCPP $CPPFLAGS'
  4851. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  4852. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  4853. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  4854. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
  4855. $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
  4856. if test "${ac_cv_path_GREP+set}" = set; then :
  4857. $as_echo_n "(cached) " >&6
  4858. else
  4859. if test -z "$GREP"; then
  4860. ac_path_GREP_found=false
  4861. # Loop through the user's path and test for each of PROGNAME-LIST
  4862. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4863. for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
  4864. do
  4865. IFS=$as_save_IFS
  4866. test -z "$as_dir" && as_dir=.
  4867. for ac_prog in grep ggrep; do
  4868. for ac_exec_ext in '' $ac_executable_extensions; do
  4869. ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
  4870. { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
  4871. # Check for GNU ac_path_GREP and select it if it is found.
  4872. # Check for GNU $ac_path_GREP
  4873. case `"$ac_path_GREP" --version 2>&1` in
  4874. *GNU*)
  4875. ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
  4876. *)
  4877. ac_count=0
  4878. $as_echo_n 0123456789 >"conftest.in"
  4879. while :
  4880. do
  4881. cat "conftest.in" "conftest.in" >"conftest.tmp"
  4882. mv "conftest.tmp" "conftest.in"
  4883. cp "conftest.in" "conftest.nl"
  4884. $as_echo 'GREP' >> "conftest.nl"
  4885. "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
  4886. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  4887. as_fn_arith $ac_count + 1 && ac_count=$as_val
  4888. if test $ac_count -gt ${ac_path_GREP_max-0}; then
  4889. # Best one so far, save it but keep looking for a better one
  4890. ac_cv_path_GREP="$ac_path_GREP"
  4891. ac_path_GREP_max=$ac_count
  4892. fi
  4893. # 10*(2^10) chars as input seems more than enough
  4894. test $ac_count -gt 10 && break
  4895. done
  4896. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  4897. esac
  4898. $ac_path_GREP_found && break 3
  4899. done
  4900. done
  4901. done
  4902. IFS=$as_save_IFS
  4903. if test -z "$ac_cv_path_GREP"; then
  4904. as_fn_error "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
  4905. fi
  4906. else
  4907. ac_cv_path_GREP=$GREP
  4908. fi
  4909. fi
  4910. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
  4911. $as_echo "$ac_cv_path_GREP" >&6; }
  4912. GREP="$ac_cv_path_GREP"
  4913. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
  4914. $as_echo_n "checking for egrep... " >&6; }
  4915. if test "${ac_cv_path_EGREP+set}" = set; then :
  4916. $as_echo_n "(cached) " >&6
  4917. else
  4918. if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
  4919. then ac_cv_path_EGREP="$GREP -E"
  4920. else
  4921. if test -z "$EGREP"; then
  4922. ac_path_EGREP_found=false
  4923. # Loop through the user's path and test for each of PROGNAME-LIST
  4924. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4925. for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
  4926. do
  4927. IFS=$as_save_IFS
  4928. test -z "$as_dir" && as_dir=.
  4929. for ac_prog in egrep; do
  4930. for ac_exec_ext in '' $ac_executable_extensions; do
  4931. ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
  4932. { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
  4933. # Check for GNU ac_path_EGREP and select it if it is found.
  4934. # Check for GNU $ac_path_EGREP
  4935. case `"$ac_path_EGREP" --version 2>&1` in
  4936. *GNU*)
  4937. ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
  4938. *)
  4939. ac_count=0
  4940. $as_echo_n 0123456789 >"conftest.in"
  4941. while :
  4942. do
  4943. cat "conftest.in" "conftest.in" >"conftest.tmp"
  4944. mv "conftest.tmp" "conftest.in"
  4945. cp "conftest.in" "conftest.nl"
  4946. $as_echo 'EGREP' >> "conftest.nl"
  4947. "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
  4948. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  4949. as_fn_arith $ac_count + 1 && ac_count=$as_val
  4950. if test $ac_count -gt ${ac_path_EGREP_max-0}; then
  4951. # Best one so far, save it but keep looking for a better one
  4952. ac_cv_path_EGREP="$ac_path_EGREP"
  4953. ac_path_EGREP_max=$ac_count
  4954. fi
  4955. # 10*(2^10) chars as input seems more than enough
  4956. test $ac_count -gt 10 && break
  4957. done
  4958. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  4959. esac
  4960. $ac_path_EGREP_found && break 3
  4961. done
  4962. done
  4963. done
  4964. IFS=$as_save_IFS
  4965. if test -z "$ac_cv_path_EGREP"; then
  4966. as_fn_error "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
  4967. fi
  4968. else
  4969. ac_cv_path_EGREP=$EGREP
  4970. fi
  4971. fi
  4972. fi
  4973. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
  4974. $as_echo "$ac_cv_path_EGREP" >&6; }
  4975. EGREP="$ac_cv_path_EGREP"
  4976. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
  4977. $as_echo_n "checking for ANSI C header files... " >&6; }
  4978. if test "${ac_cv_header_stdc+set}" = set; then :
  4979. $as_echo_n "(cached) " >&6
  4980. else
  4981. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4982. /* end confdefs.h. */
  4983. #include <stdlib.h>
  4984. #include <stdarg.h>
  4985. #include <string.h>
  4986. #include <float.h>
  4987. int
  4988. main ()
  4989. {
  4990. ;
  4991. return 0;
  4992. }
  4993. _ACEOF
  4994. if ac_fn_cxx_try_compile "$LINENO"; then :
  4995. ac_cv_header_stdc=yes
  4996. else
  4997. ac_cv_header_stdc=no
  4998. fi
  4999. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  5000. if test $ac_cv_header_stdc = yes; then
  5001. # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
  5002. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5003. /* end confdefs.h. */
  5004. #include <string.h>
  5005. _ACEOF
  5006. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  5007. $EGREP "memchr" >/dev/null 2>&1; then :
  5008. else
  5009. ac_cv_header_stdc=no
  5010. fi
  5011. rm -f conftest*
  5012. fi
  5013. if test $ac_cv_header_stdc = yes; then
  5014. # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
  5015. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5016. /* end confdefs.h. */
  5017. #include <stdlib.h>
  5018. _ACEOF
  5019. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  5020. $EGREP "free" >/dev/null 2>&1; then :
  5021. else
  5022. ac_cv_header_stdc=no
  5023. fi
  5024. rm -f conftest*
  5025. fi
  5026. if test $ac_cv_header_stdc = yes; then
  5027. # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
  5028. if test "$cross_compiling" = yes; then :
  5029. :
  5030. else
  5031. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5032. /* end confdefs.h. */
  5033. #include <ctype.h>
  5034. #include <stdlib.h>
  5035. #if ((' ' & 0x0FF) == 0x020)
  5036. # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
  5037. # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
  5038. #else
  5039. # define ISLOWER(c) \
  5040. (('a' <= (c) && (c) <= 'i') \
  5041. || ('j' <= (c) && (c) <= 'r') \
  5042. || ('s' <= (c) && (c) <= 'z'))
  5043. # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
  5044. #endif
  5045. #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
  5046. int
  5047. main ()
  5048. {
  5049. int i;
  5050. for (i = 0; i < 256; i++)
  5051. if (XOR (islower (i), ISLOWER (i))
  5052. || toupper (i) != TOUPPER (i))
  5053. return 2;
  5054. return 0;
  5055. }
  5056. _ACEOF
  5057. if ac_fn_cxx_try_run "$LINENO"; then :
  5058. else
  5059. ac_cv_header_stdc=no
  5060. fi
  5061. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  5062. conftest.$ac_objext conftest.beam conftest.$ac_ext
  5063. fi
  5064. fi
  5065. fi
  5066. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
  5067. $as_echo "$ac_cv_header_stdc" >&6; }
  5068. if test $ac_cv_header_stdc = yes; then
  5069. $as_echo "#define STDC_HEADERS 1" >>confdefs.h
  5070. fi
  5071. # On IRIX 5.3, sys/types and inttypes.h are conflicting.
  5072. for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
  5073. inttypes.h stdint.h unistd.h
  5074. do :
  5075. as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
  5076. ac_fn_cxx_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
  5077. "
  5078. eval as_val=\$$as_ac_Header
  5079. if test "x$as_val" = x""yes; then :
  5080. cat >>confdefs.h <<_ACEOF
  5081. #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
  5082. _ACEOF
  5083. fi
  5084. done
  5085. ac_fn_cxx_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
  5086. if test "x$ac_cv_header_minix_config_h" = x""yes; then :
  5087. MINIX=yes
  5088. else
  5089. MINIX=
  5090. fi
  5091. if test "$MINIX" = yes; then
  5092. $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
  5093. $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
  5094. $as_echo "#define _MINIX 1" >>confdefs.h
  5095. fi
  5096. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
  5097. $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
  5098. if test "${ac_cv_safe_to_define___extensions__+set}" = set; then :
  5099. $as_echo_n "(cached) " >&6
  5100. else
  5101. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5102. /* end confdefs.h. */
  5103. # define __EXTENSIONS__ 1
  5104. $ac_includes_default
  5105. int
  5106. main ()
  5107. {
  5108. ;
  5109. return 0;
  5110. }
  5111. _ACEOF
  5112. if ac_fn_cxx_try_compile "$LINENO"; then :
  5113. ac_cv_safe_to_define___extensions__=yes
  5114. else
  5115. ac_cv_safe_to_define___extensions__=no
  5116. fi
  5117. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  5118. fi
  5119. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
  5120. $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
  5121. test $ac_cv_safe_to_define___extensions__ = yes &&
  5122. $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
  5123. $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
  5124. $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
  5125. $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
  5126. $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
  5127. # Check pkg-config is available
  5128. if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
  5129. if test -n "$ac_tool_prefix"; then
  5130. # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
  5131. set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
  5132. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5133. $as_echo_n "checking for $ac_word... " >&6; }
  5134. if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
  5135. $as_echo_n "(cached) " >&6
  5136. else
  5137. case $PKG_CONFIG in
  5138. [\\/]* | ?:[\\/]*)
  5139. ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
  5140. ;;
  5141. *)
  5142. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5143. for as_dir in $PATH
  5144. do
  5145. IFS=$as_save_IFS
  5146. test -z "$as_dir" && as_dir=.
  5147. for ac_exec_ext in '' $ac_executable_extensions; do
  5148. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  5149. ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
  5150. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5151. break 2
  5152. fi
  5153. done
  5154. done
  5155. IFS=$as_save_IFS
  5156. ;;
  5157. esac
  5158. fi
  5159. PKG_CONFIG=$ac_cv_path_PKG_CONFIG
  5160. if test -n "$PKG_CONFIG"; then
  5161. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
  5162. $as_echo "$PKG_CONFIG" >&6; }
  5163. else
  5164. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5165. $as_echo "no" >&6; }
  5166. fi
  5167. fi
  5168. if test -z "$ac_cv_path_PKG_CONFIG"; then
  5169. ac_pt_PKG_CONFIG=$PKG_CONFIG
  5170. # Extract the first word of "pkg-config", so it can be a program name with args.
  5171. set dummy pkg-config; ac_word=$2
  5172. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5173. $as_echo_n "checking for $ac_word... " >&6; }
  5174. if test "${ac_cv_path_ac_pt_PKG_CONFIG+set}" = set; then :
  5175. $as_echo_n "(cached) " >&6
  5176. else
  5177. case $ac_pt_PKG_CONFIG in
  5178. [\\/]* | ?:[\\/]*)
  5179. ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
  5180. ;;
  5181. *)
  5182. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5183. for as_dir in $PATH
  5184. do
  5185. IFS=$as_save_IFS
  5186. test -z "$as_dir" && as_dir=.
  5187. for ac_exec_ext in '' $ac_executable_extensions; do
  5188. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  5189. ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
  5190. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5191. break 2
  5192. fi
  5193. done
  5194. done
  5195. IFS=$as_save_IFS
  5196. ;;
  5197. esac
  5198. fi
  5199. ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
  5200. if test -n "$ac_pt_PKG_CONFIG"; then
  5201. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
  5202. $as_echo "$ac_pt_PKG_CONFIG" >&6; }
  5203. else
  5204. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5205. $as_echo "no" >&6; }
  5206. fi
  5207. if test "x$ac_pt_PKG_CONFIG" = x; then
  5208. PKG_CONFIG=""
  5209. else
  5210. case $cross_compiling:$ac_tool_warned in
  5211. yes:)
  5212. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  5213. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  5214. ac_tool_warned=yes ;;
  5215. esac
  5216. PKG_CONFIG=$ac_pt_PKG_CONFIG
  5217. fi
  5218. else
  5219. PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
  5220. fi
  5221. fi
  5222. if test -n "$PKG_CONFIG"; then
  5223. _pkg_min_version=0.20
  5224. { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
  5225. $as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
  5226. if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
  5227. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  5228. $as_echo "yes" >&6; }
  5229. else
  5230. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5231. $as_echo "no" >&6; }
  5232. PKG_CONFIG=""
  5233. fi
  5234. fi
  5235. # Checks for libraries.
  5236. if test "x$with_libxml2" = "xyes"; then
  5237. # Check whether --with-xml-prefix was given.
  5238. if test "${with_xml_prefix+set}" = set; then :
  5239. withval=$with_xml_prefix; xml_config_prefix="$withval"
  5240. else
  5241. xml_config_prefix=""
  5242. fi
  5243. # Check whether --with-xml-exec-prefix was given.
  5244. if test "${with_xml_exec_prefix+set}" = set; then :
  5245. withval=$with_xml_exec_prefix; xml_config_exec_prefix="$withval"
  5246. else
  5247. xml_config_exec_prefix=""
  5248. fi
  5249. # Check whether --enable-xmltest was given.
  5250. if test "${enable_xmltest+set}" = set; then :
  5251. enableval=$enable_xmltest;
  5252. else
  5253. enable_xmltest=yes
  5254. fi
  5255. if test x$xml_config_exec_prefix != x ; then
  5256. xml_config_args="$xml_config_args"
  5257. if test x${XML2_CONFIG+set} != xset ; then
  5258. XML2_CONFIG=$xml_config_exec_prefix/bin/xml2-config
  5259. fi
  5260. fi
  5261. if test x$xml_config_prefix != x ; then
  5262. xml_config_args="$xml_config_args --prefix=$xml_config_prefix"
  5263. if test x${XML2_CONFIG+set} != xset ; then
  5264. XML2_CONFIG=$xml_config_prefix/bin/xml2-config
  5265. fi
  5266. fi
  5267. # Extract the first word of "xml2-config", so it can be a program name with args.
  5268. set dummy xml2-config; ac_word=$2
  5269. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5270. $as_echo_n "checking for $ac_word... " >&6; }
  5271. if test "${ac_cv_path_XML2_CONFIG+set}" = set; then :
  5272. $as_echo_n "(cached) " >&6
  5273. else
  5274. case $XML2_CONFIG in
  5275. [\\/]* | ?:[\\/]*)
  5276. ac_cv_path_XML2_CONFIG="$XML2_CONFIG" # Let the user override the test with a path.
  5277. ;;
  5278. *)
  5279. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5280. for as_dir in $PATH
  5281. do
  5282. IFS=$as_save_IFS
  5283. test -z "$as_dir" && as_dir=.
  5284. for ac_exec_ext in '' $ac_executable_extensions; do
  5285. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  5286. ac_cv_path_XML2_CONFIG="$as_dir/$ac_word$ac_exec_ext"
  5287. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5288. break 2
  5289. fi
  5290. done
  5291. done
  5292. IFS=$as_save_IFS
  5293. test -z "$ac_cv_path_XML2_CONFIG" && ac_cv_path_XML2_CONFIG="no"
  5294. ;;
  5295. esac
  5296. fi
  5297. XML2_CONFIG=$ac_cv_path_XML2_CONFIG
  5298. if test -n "$XML2_CONFIG"; then
  5299. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XML2_CONFIG" >&5
  5300. $as_echo "$XML2_CONFIG" >&6; }
  5301. else
  5302. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5303. $as_echo "no" >&6; }
  5304. fi
  5305. min_xml_version=2.6.24
  5306. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libxml - version >= $min_xml_version" >&5
  5307. $as_echo_n "checking for libxml - version >= $min_xml_version... " >&6; }
  5308. no_xml=""
  5309. if test "$XML2_CONFIG" = "no" ; then
  5310. no_xml=yes
  5311. else
  5312. XML_CPPFLAGS=`$XML2_CONFIG $xml_config_args --cflags`
  5313. XML_LIBS=`$XML2_CONFIG $xml_config_args --libs`
  5314. xml_config_major_version=`$XML2_CONFIG $xml_config_args --version | \
  5315. sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
  5316. xml_config_minor_version=`$XML2_CONFIG $xml_config_args --version | \
  5317. sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
  5318. xml_config_micro_version=`$XML2_CONFIG $xml_config_args --version | \
  5319. sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
  5320. if test "x$enable_xmltest" = "xyes" ; then
  5321. ac_save_CPPFLAGS="$CPPFLAGS"
  5322. ac_save_LIBS="$LIBS"
  5323. CPPFLAGS="$CPPFLAGS $XML_CPPFLAGS"
  5324. LIBS="$XML_LIBS $LIBS"
  5325. rm -f conf.xmltest
  5326. if test "$cross_compiling" = yes; then :
  5327. echo $ac_n "cross compiling; assumed OK... $ac_c"
  5328. else
  5329. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5330. /* end confdefs.h. */
  5331. #include <stdlib.h>
  5332. #include <stdio.h>
  5333. #include <string.h>
  5334. #include <libxml/xmlversion.h>
  5335. int
  5336. main()
  5337. {
  5338. int xml_major_version, xml_minor_version, xml_micro_version;
  5339. int major, minor, micro;
  5340. char *tmp_version;
  5341. system("touch conf.xmltest");
  5342. /* Capture xml2-config output via autoconf/configure variables */
  5343. /* HP/UX 9 (%@#!) writes to sscanf strings */
  5344. tmp_version = (char *)strdup("$min_xml_version");
  5345. if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, &micro) != 3) {
  5346. printf("%s, bad version string from xml2-config\n", "$min_xml_version");
  5347. exit(1);
  5348. }
  5349. free(tmp_version);
  5350. /* Capture the version information from the header files */
  5351. tmp_version = (char *)strdup(LIBXML_DOTTED_VERSION);
  5352. if (sscanf(tmp_version, "%d.%d.%d", &xml_major_version, &xml_minor_version, &xml_micro_version) != 3) {
  5353. printf("%s, bad version string from libxml includes\n", "LIBXML_DOTTED_VERSION");
  5354. exit(1);
  5355. }
  5356. free(tmp_version);
  5357. /* Compare xml2-config output to the libxml headers */
  5358. if ((xml_major_version != $xml_config_major_version) ||
  5359. (xml_minor_version != $xml_config_minor_version) ||
  5360. (xml_micro_version != $xml_config_micro_version))
  5361. {
  5362. printf("*** libxml header files (version %d.%d.%d) do not match\n",
  5363. xml_major_version, xml_minor_version, xml_micro_version);
  5364. printf("*** xml2-config (version %d.%d.%d)\n",
  5365. $xml_config_major_version, $xml_config_minor_version, $xml_config_micro_version);
  5366. return 1;
  5367. }
  5368. /* Compare the headers to the library to make sure we match */
  5369. /* Less than ideal -- doesn't provide us with return value feedback,
  5370. * only exits if there's a serious mismatch between header and library.
  5371. */
  5372. LIBXML_TEST_VERSION;
  5373. /* Test that the library is greater than our minimum version */
  5374. if ((xml_major_version > major) ||
  5375. ((xml_major_version == major) && (xml_minor_version > minor)) ||
  5376. ((xml_major_version == major) && (xml_minor_version == minor) &&
  5377. (xml_micro_version >= micro)))
  5378. {
  5379. return 0;
  5380. }
  5381. else
  5382. {
  5383. printf("\n*** An old version of libxml (%d.%d.%d) was found.\n",
  5384. xml_major_version, xml_minor_version, xml_micro_version);
  5385. printf("*** You need a version of libxml newer than %d.%d.%d. The latest version of\n",
  5386. major, minor, micro);
  5387. printf("*** libxml is always available from ftp://ftp.xmlsoft.org.\n");
  5388. printf("***\n");
  5389. printf("*** If you have already installed a sufficiently new version, this error\n");
  5390. printf("*** probably means that the wrong copy of the xml2-config shell script is\n");
  5391. printf("*** being found. The easiest way to fix this is to remove the old version\n");
  5392. printf("*** of LIBXML, but you can also set the XML2_CONFIG environment to point to the\n");
  5393. printf("*** correct copy of xml2-config. (In this case, you will have to\n");
  5394. printf("*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf\n");
  5395. printf("*** so that the correct libraries are found at run-time))\n");
  5396. }
  5397. return 1;
  5398. }
  5399. _ACEOF
  5400. if ac_fn_cxx_try_run "$LINENO"; then :
  5401. else
  5402. no_xml=yes
  5403. fi
  5404. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  5405. conftest.$ac_objext conftest.beam conftest.$ac_ext
  5406. fi
  5407. CPPFLAGS="$ac_save_CPPFLAGS"
  5408. LIBS="$ac_save_LIBS"
  5409. fi
  5410. fi
  5411. if test "x$no_xml" = x ; then
  5412. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes (version $xml_config_major_version.$xml_config_minor_version.$xml_config_micro_version)" >&5
  5413. $as_echo "yes (version $xml_config_major_version.$xml_config_minor_version.$xml_config_micro_version)" >&6; }
  5414. have_libxml2=yes
  5415. else
  5416. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5417. $as_echo "no" >&6; }
  5418. if test "$XML2_CONFIG" = "no" ; then
  5419. echo "*** The xml2-config script installed by LIBXML could not be found"
  5420. echo "*** If libxml was installed in PREFIX, make sure PREFIX/bin is in"
  5421. echo "*** your path, or set the XML2_CONFIG environment variable to the"
  5422. echo "*** full path to xml2-config."
  5423. else
  5424. if test -f conf.xmltest ; then
  5425. :
  5426. else
  5427. echo "*** Could not run libxml test program, checking why..."
  5428. CPPFLAGS="$CPPFLAGS $XML_CPPFLAGS"
  5429. LIBS="$LIBS $XML_LIBS"
  5430. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5431. /* end confdefs.h. */
  5432. #include <libxml/xmlversion.h>
  5433. #include <stdio.h>
  5434. int
  5435. main ()
  5436. {
  5437. LIBXML_TEST_VERSION; return 0;
  5438. ;
  5439. return 0;
  5440. }
  5441. _ACEOF
  5442. if ac_fn_cxx_try_link "$LINENO"; then :
  5443. echo "*** The test program compiled, but did not run. This usually means"
  5444. echo "*** that the run-time linker is not finding LIBXML or finding the wrong"
  5445. echo "*** version of LIBXML. If it is not finding LIBXML, you'll need to set your"
  5446. echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
  5447. echo "*** to the installed location Also, make sure you have run ldconfig if that"
  5448. echo "*** is required on your system"
  5449. echo "***"
  5450. echo "*** If you have an old version installed, it is best to remove it, although"
  5451. echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
  5452. else
  5453. echo "*** The test program failed to compile or link. See the file config.log for the"
  5454. echo "*** exact error that occured. This usually means LIBXML was incorrectly installed"
  5455. echo "*** or that you have moved LIBXML since it was installed. In the latter case, you"
  5456. echo "*** may want to edit the xml2-config script: $XML2_CONFIG"
  5457. fi
  5458. rm -f core conftest.err conftest.$ac_objext \
  5459. conftest$ac_exeext conftest.$ac_ext
  5460. CPPFLAGS="$ac_save_CPPFLAGS"
  5461. LIBS="$ac_save_LIBS"
  5462. fi
  5463. fi
  5464. XML_CPPFLAGS=""
  5465. XML_LIBS=""
  5466. :
  5467. fi
  5468. rm -f conf.xmltest
  5469. if test "x$have_libxml2" = "xyes"; then
  5470. $as_echo "#define HAVE_LIBXML2 1" >>confdefs.h
  5471. elif test "x$with_libxml2_requested" = "xyes"; then
  5472. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  5473. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  5474. as_fn_error "libxml2 is requested but not found in the system.
  5475. See \`config.log' for more details." "$LINENO" 5; }
  5476. fi
  5477. fi
  5478. if test "x$with_libexpat" = "xyes" && test "x$have_libxml2" != "xyes"; then
  5479. # Check whether --with-libexpat-prefix was given.
  5480. if test "${with_libexpat_prefix+set}" = set; then :
  5481. withval=$with_libexpat_prefix; libexpat_prefix=$withval
  5482. else
  5483. libexpat_prefix=""
  5484. fi
  5485. if test "x$libexpat_prefix" = "x"; then
  5486. libexpat_prefix="/usr"
  5487. fi
  5488. libexpat_prefix_lib=$libexpat_prefix/lib
  5489. libexpat_prefix_include=$libexpat_prefix/include
  5490. LIBS_save=$LIBS
  5491. CPPFLAGS_save=$CPPFLAGS
  5492. LIBS="-L$libexpat_prefix_lib $LIBS"
  5493. CPPFLAGS="-I$libexpat_prefix_include $CPPFLAGS"
  5494. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XML_ParserCreate in -lexpat" >&5
  5495. $as_echo_n "checking for XML_ParserCreate in -lexpat... " >&6; }
  5496. if test "${ac_cv_lib_expat_XML_ParserCreate+set}" = set; then :
  5497. $as_echo_n "(cached) " >&6
  5498. else
  5499. ac_check_lib_save_LIBS=$LIBS
  5500. LIBS="-lexpat $LIBS"
  5501. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5502. /* end confdefs.h. */
  5503. /* Override any GCC internal prototype to avoid an error.
  5504. Use char because int might match the return type of a GCC
  5505. builtin and then its argument prototype would still apply. */
  5506. #ifdef __cplusplus
  5507. extern "C"
  5508. #endif
  5509. char XML_ParserCreate ();
  5510. int
  5511. main ()
  5512. {
  5513. return XML_ParserCreate ();
  5514. ;
  5515. return 0;
  5516. }
  5517. _ACEOF
  5518. if ac_fn_cxx_try_link "$LINENO"; then :
  5519. ac_cv_lib_expat_XML_ParserCreate=yes
  5520. else
  5521. ac_cv_lib_expat_XML_ParserCreate=no
  5522. fi
  5523. rm -f core conftest.err conftest.$ac_objext \
  5524. conftest$ac_exeext conftest.$ac_ext
  5525. LIBS=$ac_check_lib_save_LIBS
  5526. fi
  5527. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_expat_XML_ParserCreate" >&5
  5528. $as_echo "$ac_cv_lib_expat_XML_ParserCreate" >&6; }
  5529. if test "x$ac_cv_lib_expat_XML_ParserCreate" = x""yes; then :
  5530. have_libexpat=yes
  5531. fi
  5532. if test "x$have_libexpat" = "xyes"; then
  5533. $as_echo "#define HAVE_LIBEXPAT 1" >>confdefs.h
  5534. LIBEXPAT_LIBS="-L$libexpat_prefix_lib -lexpat"
  5535. LIBEXPAT_CPPFLAGS="-I$libexpat_prefix_include"
  5536. fi
  5537. LIBS=$LIBS_save
  5538. CPPFLAGS=$CPPFLAGS_save
  5539. if test "x$have_libexpat" != "xyes" &&
  5540. test "x$with_libexpat_requested" = "xyes"; then
  5541. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  5542. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  5543. as_fn_error "libexpat is requested but not found in the system.
  5544. See \`config.log' for more details." "$LINENO" 5; }
  5545. fi
  5546. fi
  5547. if test "x$with_sqlite3" = "xyes"; then
  5548. # Check whether --with-sqlite3-prefix was given.
  5549. if test "${with_sqlite3_prefix+set}" = set; then :
  5550. withval=$with_sqlite3_prefix; sqlite3_prefix=$withval
  5551. else
  5552. sqlite3_prefix=""
  5553. fi
  5554. if test "x$sqlite3_prefix" = "x"; then
  5555. sqlite3_prefix="/usr"
  5556. fi
  5557. LIBS_save=$LIBS
  5558. CPPFLAGS_save=$CPPFLAGS
  5559. pkg_failed=no
  5560. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SQLITE3" >&5
  5561. $as_echo_n "checking for SQLITE3... " >&6; }
  5562. if test -n "$PKG_CONFIG"; then
  5563. if test -n "$SQLITE3_CFLAGS"; then
  5564. pkg_cv_SQLITE3_CFLAGS="$SQLITE3_CFLAGS"
  5565. else
  5566. if test -n "$PKG_CONFIG" && \
  5567. { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"sqlite3\""; } >&5
  5568. ($PKG_CONFIG --exists --print-errors "sqlite3") 2>&5
  5569. ac_status=$?
  5570. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  5571. test $ac_status = 0; }; then
  5572. pkg_cv_SQLITE3_CFLAGS=`$PKG_CONFIG --cflags "sqlite3" 2>/dev/null`
  5573. else
  5574. pkg_failed=yes
  5575. fi
  5576. fi
  5577. else
  5578. pkg_failed=untried
  5579. fi
  5580. if test -n "$PKG_CONFIG"; then
  5581. if test -n "$SQLITE3_LIBS"; then
  5582. pkg_cv_SQLITE3_LIBS="$SQLITE3_LIBS"
  5583. else
  5584. if test -n "$PKG_CONFIG" && \
  5585. { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"sqlite3\""; } >&5
  5586. ($PKG_CONFIG --exists --print-errors "sqlite3") 2>&5
  5587. ac_status=$?
  5588. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  5589. test $ac_status = 0; }; then
  5590. pkg_cv_SQLITE3_LIBS=`$PKG_CONFIG --libs "sqlite3" 2>/dev/null`
  5591. else
  5592. pkg_failed=yes
  5593. fi
  5594. fi
  5595. else
  5596. pkg_failed=untried
  5597. fi
  5598. if test $pkg_failed = yes; then
  5599. if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
  5600. _pkg_short_errors_supported=yes
  5601. else
  5602. _pkg_short_errors_supported=no
  5603. fi
  5604. if test $_pkg_short_errors_supported = yes; then
  5605. SQLITE3_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "sqlite3"`
  5606. else
  5607. SQLITE3_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "sqlite3"`
  5608. fi
  5609. # Put the nasty error message in config.log where it belongs
  5610. echo "$SQLITE3_PKG_ERRORS" >&5
  5611. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5612. $as_echo "no" >&6; }
  5613. have_sqlite3=no
  5614. elif test $pkg_failed = untried; then
  5615. have_sqlite3=no
  5616. else
  5617. SQLITE3_CFLAGS=$pkg_cv_SQLITE3_CFLAGS
  5618. SQLITE3_LIBS=$pkg_cv_SQLITE3_LIBS
  5619. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  5620. $as_echo "yes" >&6; }
  5621. have_sqlite3=yes
  5622. fi
  5623. if test "x$have_sqlite3" != "xyes"; then
  5624. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $SQLITE3_PKG_ERRORS" >&5
  5625. $as_echo "$as_me: WARNING: $SQLITE3_PKG_ERRORS" >&2;}
  5626. sqlite3_prefix_lib=$sqlite3_prefix/lib
  5627. sqlite3_prefix_include=$sqlite3_prefix/include
  5628. LIBS="-L$sqlite3_prefix_lib $LIBS"
  5629. CPPFLAGS="-I$sqlite3_prefix_include $CPPFLAGS"
  5630. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sqlite3_open in -lsqlite3" >&5
  5631. $as_echo_n "checking for sqlite3_open in -lsqlite3... " >&6; }
  5632. if test "${ac_cv_lib_sqlite3_sqlite3_open+set}" = set; then :
  5633. $as_echo_n "(cached) " >&6
  5634. else
  5635. ac_check_lib_save_LIBS=$LIBS
  5636. LIBS="-lsqlite3 $LIBS"
  5637. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5638. /* end confdefs.h. */
  5639. /* Override any GCC internal prototype to avoid an error.
  5640. Use char because int might match the return type of a GCC
  5641. builtin and then its argument prototype would still apply. */
  5642. #ifdef __cplusplus
  5643. extern "C"
  5644. #endif
  5645. char sqlite3_open ();
  5646. int
  5647. main ()
  5648. {
  5649. return sqlite3_open ();
  5650. ;
  5651. return 0;
  5652. }
  5653. _ACEOF
  5654. if ac_fn_cxx_try_link "$LINENO"; then :
  5655. ac_cv_lib_sqlite3_sqlite3_open=yes
  5656. else
  5657. ac_cv_lib_sqlite3_sqlite3_open=no
  5658. fi
  5659. rm -f core conftest.err conftest.$ac_objext \
  5660. conftest$ac_exeext conftest.$ac_ext
  5661. LIBS=$ac_check_lib_save_LIBS
  5662. fi
  5663. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_sqlite3_sqlite3_open" >&5
  5664. $as_echo "$ac_cv_lib_sqlite3_sqlite3_open" >&6; }
  5665. if test "x$ac_cv_lib_sqlite3_sqlite3_open" = x""yes; then :
  5666. have_sqlite3=yes
  5667. fi
  5668. if test "x$have_sqlite3" = "xyes"; then
  5669. SQLITE3_LIBS="-L$sqlite3_prefix_lib -lsqlite3"
  5670. SQLITE3_CFLAGS="-I$sqlite3_prefix_include"
  5671. fi
  5672. fi
  5673. if test "x$have_sqlite3" = "xyes"; then
  5674. LIBS="$SQLITE3_LIBS $LIBS"
  5675. CPPFLAGS="$SQLITE3_CFLAGS $CPPFLAGS"
  5676. for ac_func in sqlite3_open_v2
  5677. do :
  5678. ac_fn_cxx_check_func "$LINENO" "sqlite3_open_v2" "ac_cv_func_sqlite3_open_v2"
  5679. if test "x$ac_cv_func_sqlite3_open_v2" = x""yes; then :
  5680. cat >>confdefs.h <<_ACEOF
  5681. #define HAVE_SQLITE3_OPEN_V2 1
  5682. _ACEOF
  5683. fi
  5684. done
  5685. $as_echo "#define HAVE_SQLITE3 1" >>confdefs.h
  5686. fi
  5687. LIBS=$LIBS_save
  5688. CPPFLAGS=$CPPFLAGS_save
  5689. if test "x$have_sqlite3" != "xyes" &&
  5690. test "x$with_sqlite3_requested" = "xyes"; then
  5691. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  5692. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  5693. as_fn_error "sqlite3 is requested but not found in the system.
  5694. See \`config.log' for more details." "$LINENO" 5; }
  5695. fi
  5696. fi
  5697. if test "x$with_gnutls" = "xyes"; then
  5698. # gnutls >= 2.8 doesn't have libgnutls-config anymore.
  5699. # First check the presence of libgnutls using pkg-config.
  5700. pkg_failed=no
  5701. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LIBGNUTLS" >&5
  5702. $as_echo_n "checking for LIBGNUTLS... " >&6; }
  5703. if test -n "$PKG_CONFIG"; then
  5704. if test -n "$LIBGNUTLS_CFLAGS"; then
  5705. pkg_cv_LIBGNUTLS_CFLAGS="$LIBGNUTLS_CFLAGS"
  5706. else
  5707. if test -n "$PKG_CONFIG" && \
  5708. { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gnutls >= 1.2.9\""; } >&5
  5709. ($PKG_CONFIG --exists --print-errors "gnutls >= 1.2.9") 2>&5
  5710. ac_status=$?
  5711. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  5712. test $ac_status = 0; }; then
  5713. pkg_cv_LIBGNUTLS_CFLAGS=`$PKG_CONFIG --cflags "gnutls >= 1.2.9" 2>/dev/null`
  5714. else
  5715. pkg_failed=yes
  5716. fi
  5717. fi
  5718. else
  5719. pkg_failed=untried
  5720. fi
  5721. if test -n "$PKG_CONFIG"; then
  5722. if test -n "$LIBGNUTLS_LIBS"; then
  5723. pkg_cv_LIBGNUTLS_LIBS="$LIBGNUTLS_LIBS"
  5724. else
  5725. if test -n "$PKG_CONFIG" && \
  5726. { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gnutls >= 1.2.9\""; } >&5
  5727. ($PKG_CONFIG --exists --print-errors "gnutls >= 1.2.9") 2>&5
  5728. ac_status=$?
  5729. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  5730. test $ac_status = 0; }; then
  5731. pkg_cv_LIBGNUTLS_LIBS=`$PKG_CONFIG --libs "gnutls >= 1.2.9" 2>/dev/null`
  5732. else
  5733. pkg_failed=yes
  5734. fi
  5735. fi
  5736. else
  5737. pkg_failed=untried
  5738. fi
  5739. if test $pkg_failed = yes; then
  5740. if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
  5741. _pkg_short_errors_supported=yes
  5742. else
  5743. _pkg_short_errors_supported=no
  5744. fi
  5745. if test $_pkg_short_errors_supported = yes; then
  5746. LIBGNUTLS_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "gnutls >= 1.2.9"`
  5747. else
  5748. LIBGNUTLS_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "gnutls >= 1.2.9"`
  5749. fi
  5750. # Put the nasty error message in config.log where it belongs
  5751. echo "$LIBGNUTLS_PKG_ERRORS" >&5
  5752. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5753. $as_echo "no" >&6; }
  5754. have_libgnutls=no
  5755. elif test $pkg_failed = untried; then
  5756. have_libgnutls=no
  5757. else
  5758. LIBGNUTLS_CFLAGS=$pkg_cv_LIBGNUTLS_CFLAGS
  5759. LIBGNUTLS_LIBS=$pkg_cv_LIBGNUTLS_LIBS
  5760. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  5761. $as_echo "yes" >&6; }
  5762. have_libgnutls=yes
  5763. fi
  5764. # If no libgnutls found by pkg-config, fall back to old macro
  5765. if test "x$have_libgnutls" = "xno"; then
  5766. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $LIBGNUTLS_PKG_ERRORS" >&5
  5767. $as_echo "$as_me: WARNING: $LIBGNUTLS_PKG_ERRORS" >&2;}
  5768. # Check whether --with-libgnutls-prefix was given.
  5769. if test "${with_libgnutls_prefix+set}" = set; then :
  5770. withval=$with_libgnutls_prefix; libgnutls_config_prefix="$withval"
  5771. else
  5772. libgnutls_config_prefix=""
  5773. fi
  5774. if test x$libgnutls_config_prefix != x ; then
  5775. if test x${LIBGNUTLS_CONFIG+set} != xset ; then
  5776. LIBGNUTLS_CONFIG=$libgnutls_config_prefix/bin/libgnutls-config
  5777. fi
  5778. fi
  5779. # Extract the first word of "libgnutls-config", so it can be a program name with args.
  5780. set dummy libgnutls-config; ac_word=$2
  5781. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5782. $as_echo_n "checking for $ac_word... " >&6; }
  5783. if test "${ac_cv_path_LIBGNUTLS_CONFIG+set}" = set; then :
  5784. $as_echo_n "(cached) " >&6
  5785. else
  5786. case $LIBGNUTLS_CONFIG in
  5787. [\\/]* | ?:[\\/]*)
  5788. ac_cv_path_LIBGNUTLS_CONFIG="$LIBGNUTLS_CONFIG" # Let the user override the test with a path.
  5789. ;;
  5790. *)
  5791. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5792. for as_dir in $PATH
  5793. do
  5794. IFS=$as_save_IFS
  5795. test -z "$as_dir" && as_dir=.
  5796. for ac_exec_ext in '' $ac_executable_extensions; do
  5797. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  5798. ac_cv_path_LIBGNUTLS_CONFIG="$as_dir/$ac_word$ac_exec_ext"
  5799. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5800. break 2
  5801. fi
  5802. done
  5803. done
  5804. IFS=$as_save_IFS
  5805. test -z "$ac_cv_path_LIBGNUTLS_CONFIG" && ac_cv_path_LIBGNUTLS_CONFIG="no"
  5806. ;;
  5807. esac
  5808. fi
  5809. LIBGNUTLS_CONFIG=$ac_cv_path_LIBGNUTLS_CONFIG
  5810. if test -n "$LIBGNUTLS_CONFIG"; then
  5811. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBGNUTLS_CONFIG" >&5
  5812. $as_echo "$LIBGNUTLS_CONFIG" >&6; }
  5813. else
  5814. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5815. $as_echo "no" >&6; }
  5816. fi
  5817. min_libgnutls_version=1.2.9
  5818. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libgnutls - version >= $min_libgnutls_version" >&5
  5819. $as_echo_n "checking for libgnutls - version >= $min_libgnutls_version... " >&6; }
  5820. no_libgnutls=""
  5821. if test "$LIBGNUTLS_CONFIG" = "no" ; then
  5822. no_libgnutls=yes
  5823. else
  5824. LIBGNUTLS_CFLAGS=`$LIBGNUTLS_CONFIG $libgnutls_config_args --cflags`
  5825. LIBGNUTLS_LIBS=`$LIBGNUTLS_CONFIG $libgnutls_config_args --libs`
  5826. libgnutls_config_version=`$LIBGNUTLS_CONFIG $libgnutls_config_args --version`
  5827. ac_save_CFLAGS="$CFLAGS"
  5828. ac_save_LIBS="$LIBS"
  5829. CFLAGS="$CFLAGS $LIBGNUTLS_CFLAGS"
  5830. LIBS="$LIBS $LIBGNUTLS_LIBS"
  5831. rm -f conf.libgnutlstest
  5832. if test "$cross_compiling" = yes; then :
  5833. echo $ac_n "cross compiling; assumed OK... $ac_c"
  5834. else
  5835. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5836. /* end confdefs.h. */
  5837. #include <stdio.h>
  5838. #include <stdlib.h>
  5839. #include <string.h>
  5840. #include <gnutls/gnutls.h>
  5841. int
  5842. main ()
  5843. {
  5844. system ("touch conf.libgnutlstest");
  5845. if( strcmp( gnutls_check_version(NULL), "$libgnutls_config_version" ) )
  5846. {
  5847. printf("\n*** 'libgnutls-config --version' returned %s, but LIBGNUTLS (%s)\n",
  5848. "$libgnutls_config_version", gnutls_check_version(NULL) );
  5849. printf("*** was found! If libgnutls-config was correct, then it is best\n");
  5850. printf("*** to remove the old version of LIBGNUTLS. You may also be able to fix the error\n");
  5851. printf("*** by modifying your LD_LIBRARY_PATH enviroment variable, or by editing\n");
  5852. printf("*** /etc/ld.so.conf. Make sure you have run ldconfig if that is\n");
  5853. printf("*** required on your system.\n");
  5854. printf("*** If libgnutls-config was wrong, set the environment variable LIBGNUTLS_CONFIG\n");
  5855. printf("*** to point to the correct copy of libgnutls-config, and remove the file config.cache\n");
  5856. printf("*** before re-running configure\n");
  5857. }
  5858. else if ( strcmp(gnutls_check_version(NULL), LIBGNUTLS_VERSION ) )
  5859. {
  5860. printf("\n*** LIBGNUTLS header file (version %s) does not match\n", LIBGNUTLS_VERSION);
  5861. printf("*** library (version %s)\n", gnutls_check_version(NULL) );
  5862. }
  5863. else
  5864. {
  5865. if ( gnutls_check_version( "$min_libgnutls_version" ) )
  5866. {
  5867. return 0;
  5868. }
  5869. else
  5870. {
  5871. printf("no\n*** An old version of LIBGNUTLS (%s) was found.\n",
  5872. gnutls_check_version(NULL) );
  5873. printf("*** You need a version of LIBGNUTLS newer than %s. The latest version of\n",
  5874. "$min_libgnutls_version" );
  5875. printf("*** LIBGNUTLS is always available from ftp://gnutls.hellug.gr/pub/gnutls.\n");
  5876. printf("*** \n");
  5877. printf("*** If you have already installed a sufficiently new version, this error\n");
  5878. printf("*** probably means that the wrong copy of the libgnutls-config shell script is\n");
  5879. printf("*** being found. The easiest way to fix this is to remove the old version\n");
  5880. printf("*** of LIBGNUTLS, but you can also set the LIBGNUTLS_CONFIG environment to point to the\n");
  5881. printf("*** correct copy of libgnutls-config. (In this case, you will have to\n");
  5882. printf("*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf\n");
  5883. printf("*** so that the correct libraries are found at run-time))\n");
  5884. }
  5885. }
  5886. return 1;
  5887. }
  5888. _ACEOF
  5889. if ac_fn_cxx_try_run "$LINENO"; then :
  5890. else
  5891. no_libgnutls=yes
  5892. fi
  5893. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  5894. conftest.$ac_objext conftest.beam conftest.$ac_ext
  5895. fi
  5896. CFLAGS="$ac_save_CFLAGS"
  5897. LIBS="$ac_save_LIBS"
  5898. fi
  5899. if test "x$no_libgnutls" = x ; then
  5900. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  5901. $as_echo "yes" >&6; }
  5902. have_libgnutls=yes
  5903. else
  5904. if test -f conf.libgnutlstest ; then
  5905. :
  5906. else
  5907. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5908. $as_echo "no" >&6; }
  5909. fi
  5910. if test "$LIBGNUTLS_CONFIG" = "no" ; then
  5911. echo "*** The libgnutls-config script installed by LIBGNUTLS could not be found"
  5912. echo "*** If LIBGNUTLS was installed in PREFIX, make sure PREFIX/bin is in"
  5913. echo "*** your path, or set the LIBGNUTLS_CONFIG environment variable to the"
  5914. echo "*** full path to libgnutls-config."
  5915. else
  5916. if test -f conf.libgnutlstest ; then
  5917. :
  5918. else
  5919. echo "*** Could not run libgnutls test program, checking why..."
  5920. CFLAGS="$CFLAGS $LIBGNUTLS_CFLAGS"
  5921. LIBS="$LIBS $LIBGNUTLS_LIBS"
  5922. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5923. /* end confdefs.h. */
  5924. #include <stdio.h>
  5925. #include <stdlib.h>
  5926. #include <string.h>
  5927. #include <gnutls/gnutls.h>
  5928. int
  5929. main ()
  5930. {
  5931. return !!gnutls_check_version(NULL);
  5932. ;
  5933. return 0;
  5934. }
  5935. _ACEOF
  5936. if ac_fn_cxx_try_link "$LINENO"; then :
  5937. echo "*** The test program compiled, but did not run. This usually means"
  5938. echo "*** that the run-time linker is not finding LIBGNUTLS or finding the wrong"
  5939. echo "*** version of LIBGNUTLS. If it is not finding LIBGNUTLS, you'll need to set your"
  5940. echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
  5941. echo "*** to the installed location Also, make sure you have run ldconfig if that"
  5942. echo "*** is required on your system"
  5943. echo "***"
  5944. echo "*** If you have an old version installed, it is best to remove it, although"
  5945. echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
  5946. echo "***"
  5947. else
  5948. echo "*** The test program failed to compile or link. See the file config.log for the"
  5949. echo "*** exact error that occured. This usually means LIBGNUTLS was incorrectly installed"
  5950. echo "*** or that you have moved LIBGNUTLS since it was installed. In the latter case, you"
  5951. echo "*** may want to edit the libgnutls-config script: $LIBGNUTLS_CONFIG"
  5952. fi
  5953. rm -f core conftest.err conftest.$ac_objext \
  5954. conftest$ac_exeext conftest.$ac_ext
  5955. CFLAGS="$ac_save_CFLAGS"
  5956. LIBS="$ac_save_LIBS"
  5957. fi
  5958. fi
  5959. LIBGNUTLS_CFLAGS=""
  5960. LIBGNUTLS_LIBS=""
  5961. :
  5962. fi
  5963. rm -f conf.libgnutlstest
  5964. fi
  5965. if test "x$have_libgnutls" = "xyes"; then
  5966. $as_echo "#define HAVE_LIBGNUTLS 1" >>confdefs.h
  5967. elif test "x$with_gnutls_requested" = "xyes"; then
  5968. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  5969. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  5970. as_fn_error "gnutls is requested but not found in the system.
  5971. See \`config.log' for more details." "$LINENO" 5; }
  5972. fi
  5973. fi
  5974. if test "x$have_libgnutls" = "xyes"; then
  5975. # Check whether --with-libgcrypt-prefix was given.
  5976. if test "${with_libgcrypt_prefix+set}" = set; then :
  5977. withval=$with_libgcrypt_prefix; libgcrypt_config_prefix="$withval"
  5978. else
  5979. libgcrypt_config_prefix=""
  5980. fi
  5981. if test x$libgcrypt_config_prefix != x ; then
  5982. if test x${LIBGCRYPT_CONFIG+set} != xset ; then
  5983. LIBGCRYPT_CONFIG=$libgcrypt_config_prefix/bin/libgcrypt-config
  5984. fi
  5985. fi
  5986. # Extract the first word of "libgcrypt-config", so it can be a program name with args.
  5987. set dummy libgcrypt-config; ac_word=$2
  5988. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5989. $as_echo_n "checking for $ac_word... " >&6; }
  5990. if test "${ac_cv_path_LIBGCRYPT_CONFIG+set}" = set; then :
  5991. $as_echo_n "(cached) " >&6
  5992. else
  5993. case $LIBGCRYPT_CONFIG in
  5994. [\\/]* | ?:[\\/]*)
  5995. ac_cv_path_LIBGCRYPT_CONFIG="$LIBGCRYPT_CONFIG" # Let the user override the test with a path.
  5996. ;;
  5997. *)
  5998. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5999. for as_dir in $PATH
  6000. do
  6001. IFS=$as_save_IFS
  6002. test -z "$as_dir" && as_dir=.
  6003. for ac_exec_ext in '' $ac_executable_extensions; do
  6004. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  6005. ac_cv_path_LIBGCRYPT_CONFIG="$as_dir/$ac_word$ac_exec_ext"
  6006. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6007. break 2
  6008. fi
  6009. done
  6010. done
  6011. IFS=$as_save_IFS
  6012. test -z "$ac_cv_path_LIBGCRYPT_CONFIG" && ac_cv_path_LIBGCRYPT_CONFIG="no"
  6013. ;;
  6014. esac
  6015. fi
  6016. LIBGCRYPT_CONFIG=$ac_cv_path_LIBGCRYPT_CONFIG
  6017. if test -n "$LIBGCRYPT_CONFIG"; then
  6018. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBGCRYPT_CONFIG" >&5
  6019. $as_echo "$LIBGCRYPT_CONFIG" >&6; }
  6020. else
  6021. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6022. $as_echo "no" >&6; }
  6023. fi
  6024. tmp=1.2.2
  6025. if echo "$tmp" | grep ':' >/dev/null 2>/dev/null ; then
  6026. req_libgcrypt_api=`echo "$tmp" | sed 's/\(.*\):\(.*\)/\1/'`
  6027. min_libgcrypt_version=`echo "$tmp" | sed 's/\(.*\):\(.*\)/\2/'`
  6028. else
  6029. req_libgcrypt_api=0
  6030. min_libgcrypt_version="$tmp"
  6031. fi
  6032. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LIBGCRYPT - version >= $min_libgcrypt_version" >&5
  6033. $as_echo_n "checking for LIBGCRYPT - version >= $min_libgcrypt_version... " >&6; }
  6034. ok=no
  6035. if test "$LIBGCRYPT_CONFIG" != "no" ; then
  6036. req_major=`echo $min_libgcrypt_version | \
  6037. sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\1/'`
  6038. req_minor=`echo $min_libgcrypt_version | \
  6039. sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\2/'`
  6040. req_micro=`echo $min_libgcrypt_version | \
  6041. sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\3/'`
  6042. libgcrypt_config_version=`$LIBGCRYPT_CONFIG --version`
  6043. major=`echo $libgcrypt_config_version | \
  6044. sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\).*/\1/'`
  6045. minor=`echo $libgcrypt_config_version | \
  6046. sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\).*/\2/'`
  6047. micro=`echo $libgcrypt_config_version | \
  6048. sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\).*/\3/'`
  6049. if test "$major" -gt "$req_major"; then
  6050. ok=yes
  6051. else
  6052. if test "$major" -eq "$req_major"; then
  6053. if test "$minor" -gt "$req_minor"; then
  6054. ok=yes
  6055. else
  6056. if test "$minor" -eq "$req_minor"; then
  6057. if test "$micro" -ge "$req_micro"; then
  6058. ok=yes
  6059. fi
  6060. fi
  6061. fi
  6062. fi
  6063. fi
  6064. fi
  6065. if test $ok = yes; then
  6066. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes ($libgcrypt_config_version)" >&5
  6067. $as_echo "yes ($libgcrypt_config_version)" >&6; }
  6068. else
  6069. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6070. $as_echo "no" >&6; }
  6071. fi
  6072. if test $ok = yes; then
  6073. # If we have a recent libgcrypt, we should also check that the
  6074. # API is compatible
  6075. if test "$req_libgcrypt_api" -gt 0 ; then
  6076. tmp=`$LIBGCRYPT_CONFIG --api-version 2>/dev/null || echo 0`
  6077. if test "$tmp" -gt 0 ; then
  6078. { $as_echo "$as_me:${as_lineno-$LINENO}: checking LIBGCRYPT API version" >&5
  6079. $as_echo_n "checking LIBGCRYPT API version... " >&6; }
  6080. if test "$req_libgcrypt_api" -eq "$tmp" ; then
  6081. { $as_echo "$as_me:${as_lineno-$LINENO}: result: okay" >&5
  6082. $as_echo "okay" >&6; }
  6083. else
  6084. ok=no
  6085. { $as_echo "$as_me:${as_lineno-$LINENO}: result: does not match. want=$req_libgcrypt_api got=$tmp" >&5
  6086. $as_echo "does not match. want=$req_libgcrypt_api got=$tmp" >&6; }
  6087. fi
  6088. fi
  6089. fi
  6090. fi
  6091. if test $ok = yes; then
  6092. LIBGCRYPT_CFLAGS=`$LIBGCRYPT_CONFIG --cflags`
  6093. LIBGCRYPT_LIBS=`$LIBGCRYPT_CONFIG --libs`
  6094. have_libgcrypt=yes
  6095. else
  6096. LIBGCRYPT_CFLAGS=""
  6097. LIBGCRYPT_LIBS=""
  6098. :
  6099. fi
  6100. if test "x$have_libgcrypt" = "xyes"; then
  6101. $as_echo "#define HAVE_LIBGCRYPT 1" >>confdefs.h
  6102. fi
  6103. fi
  6104. if test "x$with_openssl" = "xyes" && test "x$have_libgnutls" != "xyes"; then
  6105. # Check whether --with-openssl-prefix was given.
  6106. if test "${with_openssl_prefix+set}" = set; then :
  6107. withval=$with_openssl_prefix; openssl_prefix=$withval
  6108. else
  6109. openssl_prefix=""
  6110. fi
  6111. if test "x$openssl_prefix" = "x"; then
  6112. openssl_prefix="/usr/local"
  6113. fi
  6114. LIBS_save=$LIBS
  6115. CPPFLAGS_save=$CPPFLAGS
  6116. PKG_CONFIG="$openssl_prefix/bin/pkg-config"
  6117. if test -x $PKG_CONFIG; then
  6118. { $as_echo "$as_me:${as_lineno-$LINENO}: checking checking availability of openssl using pkg-config" >&5
  6119. $as_echo_n "checking checking availability of openssl using pkg-config... " >&6; }
  6120. $PKG_CONFIG --exists openssl
  6121. if test "$?" = "0"; then
  6122. # Use pkg-config to detect LIBS and CFLAGS
  6123. OPENSSL_LIBS=`$PKG_CONFIG --libs openssl`
  6124. OPENSSL_CFLAGS=`$PKG_CONFIG --cflags openssl`
  6125. LIBS="$OPENSSL_LIBS $LIBS"
  6126. CPPFLAGS="$OPENSSL_CFLAGS $CPPFLAGS"
  6127. have_openssl=yes
  6128. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  6129. $as_echo "yes" >&6; }
  6130. else
  6131. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6132. $as_echo "no" >&6; }
  6133. fi
  6134. fi
  6135. if test "x$have_openssl" != "xyes"; then
  6136. openssl_prefix_lib=$openssl_prefix/lib
  6137. openssl_prefix_include=$openssl_prefix/include
  6138. LIBS="-L$openssl_prefix_lib $LIBS"
  6139. CPPFLAGS="-I$openssl_prefix_include $CPPFLAGS"
  6140. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SSL_library_init in -lssl" >&5
  6141. $as_echo_n "checking for SSL_library_init in -lssl... " >&6; }
  6142. if test "${ac_cv_lib_ssl_SSL_library_init+set}" = set; then :
  6143. $as_echo_n "(cached) " >&6
  6144. else
  6145. ac_check_lib_save_LIBS=$LIBS
  6146. LIBS="-lssl $LIBS"
  6147. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6148. /* end confdefs.h. */
  6149. /* Override any GCC internal prototype to avoid an error.
  6150. Use char because int might match the return type of a GCC
  6151. builtin and then its argument prototype would still apply. */
  6152. #ifdef __cplusplus
  6153. extern "C"
  6154. #endif
  6155. char SSL_library_init ();
  6156. int
  6157. main ()
  6158. {
  6159. return SSL_library_init ();
  6160. ;
  6161. return 0;
  6162. }
  6163. _ACEOF
  6164. if ac_fn_cxx_try_link "$LINENO"; then :
  6165. ac_cv_lib_ssl_SSL_library_init=yes
  6166. else
  6167. ac_cv_lib_ssl_SSL_library_init=no
  6168. fi
  6169. rm -f core conftest.err conftest.$ac_objext \
  6170. conftest$ac_exeext conftest.$ac_ext
  6171. LIBS=$ac_check_lib_save_LIBS
  6172. fi
  6173. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ssl_SSL_library_init" >&5
  6174. $as_echo "$ac_cv_lib_ssl_SSL_library_init" >&6; }
  6175. if test "x$ac_cv_lib_ssl_SSL_library_init" = x""yes; then :
  6176. have_openssl=yes LIBS="-lssl $LIBS"
  6177. fi
  6178. if test "x$have_openssl" = "xyes"; then
  6179. have_openssl=no
  6180. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lcrypto" >&5
  6181. $as_echo_n "checking for main in -lcrypto... " >&6; }
  6182. if test "${ac_cv_lib_crypto_main+set}" = set; then :
  6183. $as_echo_n "(cached) " >&6
  6184. else
  6185. ac_check_lib_save_LIBS=$LIBS
  6186. LIBS="-lcrypto $LIBS"
  6187. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6188. /* end confdefs.h. */
  6189. int
  6190. main ()
  6191. {
  6192. return main ();
  6193. ;
  6194. return 0;
  6195. }
  6196. _ACEOF
  6197. if ac_fn_cxx_try_link "$LINENO"; then :
  6198. ac_cv_lib_crypto_main=yes
  6199. else
  6200. ac_cv_lib_crypto_main=no
  6201. fi
  6202. rm -f core conftest.err conftest.$ac_objext \
  6203. conftest$ac_exeext conftest.$ac_ext
  6204. LIBS=$ac_check_lib_save_LIBS
  6205. fi
  6206. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_crypto_main" >&5
  6207. $as_echo "$ac_cv_lib_crypto_main" >&6; }
  6208. if test "x$ac_cv_lib_crypto_main" = x""yes; then :
  6209. have_openssl=yes; LIBS="-lcrypto $LIBS"
  6210. fi
  6211. if test "x$have_openssl" = "xyes"; then
  6212. OPENSSL_LIBS="-L$openssl_prefix_lib -lssl -lcrypto"
  6213. OPENSSL_CFLAGS="-I$openssl_prefix_include"
  6214. fi
  6215. fi
  6216. fi
  6217. if test "x$have_openssl" = "xyes"; then
  6218. $as_echo "#define HAVE_LIBSSL 1" >>confdefs.h
  6219. # check whether EVP_DigestInit_ex exists. Old openssl doesn't have it.
  6220. for ac_func in EVP_DigestInit_ex
  6221. do :
  6222. ac_fn_cxx_check_func "$LINENO" "EVP_DigestInit_ex" "ac_cv_func_EVP_DigestInit_ex"
  6223. if test "x$ac_cv_func_EVP_DigestInit_ex" = x""yes; then :
  6224. cat >>confdefs.h <<_ACEOF
  6225. #define HAVE_EVP_DIGESTINIT_EX 1
  6226. _ACEOF
  6227. have_digestinit_ex=yes
  6228. fi
  6229. done
  6230. if test "x$have_digestinit_ex" = "x"; then
  6231. $as_echo "#define HAVE_OLD_LIBSSL 1" >>confdefs.h
  6232. fi
  6233. # search for sha256 support
  6234. for ac_func in EVP_sha256
  6235. do :
  6236. ac_fn_cxx_check_func "$LINENO" "EVP_sha256" "ac_cv_func_EVP_sha256"
  6237. if test "x$ac_cv_func_EVP_sha256" = x""yes; then :
  6238. cat >>confdefs.h <<_ACEOF
  6239. #define HAVE_EVP_SHA256 1
  6240. _ACEOF
  6241. fi
  6242. done
  6243. fi
  6244. LIBS=$LIBS_save
  6245. CPPFLAGS=$CPPFLAGS_save
  6246. if test "x$have_openssl" != "xyes" &&
  6247. test "x$with_openssl_requested" = "xyes"; then
  6248. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  6249. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  6250. as_fn_error "openssl is requested but not found in the system.
  6251. See \`config.log' for more details." "$LINENO" 5; }
  6252. fi
  6253. fi
  6254. if test "x$with_libcares" = "xyes"; then
  6255. # Check whether --with-libcares-prefix was given.
  6256. if test "${with_libcares_prefix+set}" = set; then :
  6257. withval=$with_libcares_prefix; libcares_prefix=$withval
  6258. else
  6259. libcares_prefix=""
  6260. fi
  6261. if test "x$libcares_prefix" = "x"; then
  6262. libcares_prefix="/usr"
  6263. fi
  6264. libcares_prefix_lib=$libcares_prefix/lib
  6265. libcares_prefix_include=$libcares_prefix/include
  6266. LIBS_save=$LIBS
  6267. CPPFLAGS_save=$CPPFLAGS
  6268. LIBS="-L$libcares_prefix_lib $LIBS"
  6269. CPPFLAGS="-I$libcares_prefix_include -Wall $CPPFLAGS"
  6270. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ares_init in -lcares" >&5
  6271. $as_echo_n "checking for ares_init in -lcares... " >&6; }
  6272. if test "${ac_cv_lib_cares_ares_init+set}" = set; then :
  6273. $as_echo_n "(cached) " >&6
  6274. else
  6275. ac_check_lib_save_LIBS=$LIBS
  6276. LIBS="-lcares $LIBS"
  6277. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6278. /* end confdefs.h. */
  6279. /* Override any GCC internal prototype to avoid an error.
  6280. Use char because int might match the return type of a GCC
  6281. builtin and then its argument prototype would still apply. */
  6282. #ifdef __cplusplus
  6283. extern "C"
  6284. #endif
  6285. char ares_init ();
  6286. int
  6287. main ()
  6288. {
  6289. return ares_init ();
  6290. ;
  6291. return 0;
  6292. }
  6293. _ACEOF
  6294. if ac_fn_cxx_try_link "$LINENO"; then :
  6295. ac_cv_lib_cares_ares_init=yes
  6296. else
  6297. ac_cv_lib_cares_ares_init=no
  6298. fi
  6299. rm -f core conftest.err conftest.$ac_objext \
  6300. conftest$ac_exeext conftest.$ac_ext
  6301. LIBS=$ac_check_lib_save_LIBS
  6302. fi
  6303. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_cares_ares_init" >&5
  6304. $as_echo "$ac_cv_lib_cares_ares_init" >&6; }
  6305. if test "x$ac_cv_lib_cares_ares_init" = x""yes; then :
  6306. have_libcares=yes
  6307. fi
  6308. if test "x$have_libcares" != "xyes"; then
  6309. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ares_init in -lcares" >&5
  6310. $as_echo_n "checking for ares_init in -lcares... " >&6; }
  6311. if test "${ac_cv_lib_cares_ares_init+set}" = set; then :
  6312. $as_echo_n "(cached) " >&6
  6313. else
  6314. ac_check_lib_save_LIBS=$LIBS
  6315. LIBS="-lcares -lrt $LIBS"
  6316. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6317. /* end confdefs.h. */
  6318. /* Override any GCC internal prototype to avoid an error.
  6319. Use char because int might match the return type of a GCC
  6320. builtin and then its argument prototype would still apply. */
  6321. #ifdef __cplusplus
  6322. extern "C"
  6323. #endif
  6324. char ares_init ();
  6325. int
  6326. main ()
  6327. {
  6328. return ares_init ();
  6329. ;
  6330. return 0;
  6331. }
  6332. _ACEOF
  6333. if ac_fn_cxx_try_link "$LINENO"; then :
  6334. ac_cv_lib_cares_ares_init=yes
  6335. else
  6336. ac_cv_lib_cares_ares_init=no
  6337. fi
  6338. rm -f core conftest.err conftest.$ac_objext \
  6339. conftest$ac_exeext conftest.$ac_ext
  6340. LIBS=$ac_check_lib_save_LIBS
  6341. fi
  6342. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_cares_ares_init" >&5
  6343. $as_echo "$ac_cv_lib_cares_ares_init" >&6; }
  6344. if test "x$ac_cv_lib_cares_ares_init" = x""yes; then :
  6345. have_libcares=yes need_librt=yes
  6346. fi
  6347. fi
  6348. if test "x$have_libcares" = "xyes"; then
  6349. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ares_host_callback accepts timeouts(c-ares >= 1.5)" >&5
  6350. $as_echo_n "checking whether ares_host_callback accepts timeouts(c-ares >= 1.5)... " >&6; }
  6351. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6352. /* end confdefs.h. */
  6353. #include <ares.h>
  6354. void callback(void* arg, int status, int timeouts, struct hostent* host);
  6355. int
  6356. main ()
  6357. {
  6358. ares_channel channel;
  6359. ares_gethostbyname(channel, "foo", 0, callback, 0);
  6360. ;
  6361. return 0;
  6362. }
  6363. _ACEOF
  6364. if ac_fn_cxx_try_compile "$LINENO"; then :
  6365. have_libcares1_5=yes
  6366. else
  6367. have_libcares1_5=no
  6368. fi
  6369. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  6370. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_libcares1_5" >&5
  6371. $as_echo "$have_libcares1_5" >&6; }
  6372. if test "x$have_libcares1_5" = "xyes"; then
  6373. $as_echo "#define HAVE_LIBCARES1_5 1" >>confdefs.h
  6374. fi
  6375. $as_echo "#define HAVE_LIBCARES 1" >>confdefs.h
  6376. LIBCARES_LIBS="-L$libcares_prefix_lib -lcares"
  6377. if test "x$need_librt" = "xyes"; then
  6378. LIBCARES_LIBS="$LIBCARES_LIBS -lrt"
  6379. fi
  6380. LIBCARES_CPPFLAGS="-I$libcares_prefix_include"
  6381. fi
  6382. LIBS=$LIBS_save
  6383. CPPFLAGS=$CPPFLAGS_save
  6384. if test "x$have_libcares" != "xyes" &&
  6385. test "x$with_libcares_requested" = "xyes"; then
  6386. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  6387. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  6388. as_fn_error "libcares is requested but not found in the system.
  6389. See \`config.log' for more details." "$LINENO" 5; }
  6390. fi
  6391. fi
  6392. # Check availability of libz
  6393. if test "x$with_libz" = "xyes"; then
  6394. # Check whether --with-libz-prefix was given.
  6395. if test "${with_libz_prefix+set}" = set; then :
  6396. withval=$with_libz_prefix; libz_prefix=$withval
  6397. else
  6398. libz_prefix=""
  6399. fi
  6400. if test "x$libz_prefix" = "x"; then
  6401. libz_prefix="/usr"
  6402. fi
  6403. libz_prefix_lib=$libz_prefix/lib
  6404. libz_prefix_include=$libz_prefix/include
  6405. LIBS_save=$LIBS
  6406. CPPFLAGS_save=$CPPFLAGS
  6407. LIBS="-L$libz_prefix_lib $LIBS"
  6408. CPPFLAGS="-I$libz_prefix_include $CPPFLAGS"
  6409. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for zlibVersion in -lz" >&5
  6410. $as_echo_n "checking for zlibVersion in -lz... " >&6; }
  6411. if test "${ac_cv_lib_z_zlibVersion+set}" = set; then :
  6412. $as_echo_n "(cached) " >&6
  6413. else
  6414. ac_check_lib_save_LIBS=$LIBS
  6415. LIBS="-lz $LIBS"
  6416. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6417. /* end confdefs.h. */
  6418. /* Override any GCC internal prototype to avoid an error.
  6419. Use char because int might match the return type of a GCC
  6420. builtin and then its argument prototype would still apply. */
  6421. #ifdef __cplusplus
  6422. extern "C"
  6423. #endif
  6424. char zlibVersion ();
  6425. int
  6426. main ()
  6427. {
  6428. return zlibVersion ();
  6429. ;
  6430. return 0;
  6431. }
  6432. _ACEOF
  6433. if ac_fn_cxx_try_link "$LINENO"; then :
  6434. ac_cv_lib_z_zlibVersion=yes
  6435. else
  6436. ac_cv_lib_z_zlibVersion=no
  6437. fi
  6438. rm -f core conftest.err conftest.$ac_objext \
  6439. conftest$ac_exeext conftest.$ac_ext
  6440. LIBS=$ac_check_lib_save_LIBS
  6441. fi
  6442. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_zlibVersion" >&5
  6443. $as_echo "$ac_cv_lib_z_zlibVersion" >&6; }
  6444. if test "x$ac_cv_lib_z_zlibVersion" = x""yes; then :
  6445. have_libz=yes
  6446. fi
  6447. if test "x$have_libz" = "xyes"; then
  6448. $as_echo "#define HAVE_LIBZ 1" >>confdefs.h
  6449. LIBZ_LIBS="-L$libz_prefix_lib -lz"
  6450. LIBZ_CPPFLAGS="-I$libz_prefix_include"
  6451. fi
  6452. LIBS=$LIBS_save
  6453. CPPFLAGS=$CPPFLAGS_save
  6454. if test "x$have_libz" != "xyes" && test "x$with_libz_requested" = "xyes"; then
  6455. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  6456. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  6457. as_fn_error "libz is requested but not found in the system.
  6458. See \`config.log' for more details." "$LINENO" 5; }
  6459. fi
  6460. fi
  6461. # Define variables based on the result of the checks for libraries.
  6462. if test "x$have_libgnutls" = "xyes" || test "x$have_openssl" = "xyes"; then
  6463. $as_echo "#define ENABLE_SSL 1" >>confdefs.h
  6464. if true; then
  6465. ENABLE_SSL_TRUE=
  6466. ENABLE_SSL_FALSE='#'
  6467. else
  6468. ENABLE_SSL_TRUE='#'
  6469. ENABLE_SSL_FALSE=
  6470. fi
  6471. else
  6472. if false; then
  6473. ENABLE_SSL_TRUE=
  6474. ENABLE_SSL_FALSE='#'
  6475. else
  6476. ENABLE_SSL_TRUE='#'
  6477. ENABLE_SSL_FALSE=
  6478. fi
  6479. fi
  6480. if test "x$have_libgnutls" = "xyes" ; then
  6481. HAVE_LIBGNUTLS_TRUE=
  6482. HAVE_LIBGNUTLS_FALSE='#'
  6483. else
  6484. HAVE_LIBGNUTLS_TRUE='#'
  6485. HAVE_LIBGNUTLS_FALSE=
  6486. fi
  6487. if test "x$have_openssl" = "xyes" ; then
  6488. HAVE_LIBSSL_TRUE=
  6489. HAVE_LIBSSL_FALSE='#'
  6490. else
  6491. HAVE_LIBSSL_TRUE='#'
  6492. HAVE_LIBSSL_FALSE=
  6493. fi
  6494. if test "x$have_libgcrypt" = "xyes" || test "x$have_openssl" = "xyes"; then
  6495. $as_echo "#define ENABLE_MESSAGE_DIGEST 1" >>confdefs.h
  6496. if true; then
  6497. ENABLE_MESSAGE_DIGEST_TRUE=
  6498. ENABLE_MESSAGE_DIGEST_FALSE='#'
  6499. else
  6500. ENABLE_MESSAGE_DIGEST_TRUE='#'
  6501. ENABLE_MESSAGE_DIGEST_FALSE=
  6502. fi
  6503. enable_message_digest=yes
  6504. else
  6505. if false; then
  6506. ENABLE_MESSAGE_DIGEST_TRUE=
  6507. ENABLE_MESSAGE_DIGEST_FALSE='#'
  6508. else
  6509. ENABLE_MESSAGE_DIGEST_TRUE='#'
  6510. ENABLE_MESSAGE_DIGEST_FALSE=
  6511. fi
  6512. fi
  6513. if test "x$enable_bittorrent" = "xyes" &&
  6514. test "x$enable_message_digest" = "xyes"; then
  6515. $as_echo "#define ENABLE_BITTORRENT 1" >>confdefs.h
  6516. if true; then
  6517. ENABLE_BITTORRENT_TRUE=
  6518. ENABLE_BITTORRENT_FALSE='#'
  6519. else
  6520. ENABLE_BITTORRENT_TRUE='#'
  6521. ENABLE_BITTORRENT_FALSE=
  6522. fi
  6523. else
  6524. if test "x$enable_bittorrent_requested" = "xyes"; then
  6525. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  6526. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  6527. as_fn_error "bittorrent is requested but cannot be enabled with current\
  6528. configuration.\
  6529. Make sure that dependent libraries are installed and configure script options\
  6530. are correct.
  6531. See \`config.log' for more details." "$LINENO" 5; }
  6532. fi
  6533. enable_bittorrent=no
  6534. if false; then
  6535. ENABLE_BITTORRENT_TRUE=
  6536. ENABLE_BITTORRENT_FALSE='#'
  6537. else
  6538. ENABLE_BITTORRENT_TRUE='#'
  6539. ENABLE_BITTORRENT_FALSE=
  6540. fi
  6541. fi
  6542. if (test "x$have_libxml2" = "xyes" || test "x$have_libexpat" = "xyes") &&
  6543. test "x$enable_metalink" = "xyes"; then
  6544. $as_echo "#define ENABLE_METALINK 1" >>confdefs.h
  6545. if true; then
  6546. ENABLE_METALINK_TRUE=
  6547. ENABLE_METALINK_FALSE='#'
  6548. else
  6549. ENABLE_METALINK_TRUE='#'
  6550. ENABLE_METALINK_FALSE=
  6551. fi
  6552. else
  6553. if test "x$enable_metalink_requested" = "xyes"; then
  6554. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  6555. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  6556. as_fn_error "metalink is requested but cannot be enabled with current\
  6557. configuration.\
  6558. Make sure that dependent libraries are installed and configure script options\
  6559. are correct.
  6560. See \`config.log' for more details." "$LINENO" 5; }
  6561. fi
  6562. enable_metalink=no
  6563. if false; then
  6564. ENABLE_METALINK_TRUE=
  6565. ENABLE_METALINK_FALSE='#'
  6566. else
  6567. ENABLE_METALINK_TRUE='#'
  6568. ENABLE_METALINK_FALSE=
  6569. fi
  6570. fi
  6571. if test "x$enable_metalink" = "xyes" && test "x$have_libxml2" = "xyes"; then
  6572. ENABLE_METALINK_LIBXML2_TRUE=
  6573. ENABLE_METALINK_LIBXML2_FALSE='#'
  6574. else
  6575. ENABLE_METALINK_LIBXML2_TRUE='#'
  6576. ENABLE_METALINK_LIBXML2_FALSE=
  6577. fi
  6578. if test "x$enable_metalink" = "xyes" && test "x$have_libexpat" = "xyes"; then
  6579. ENABLE_METALINK_LIBEXPAT_TRUE=
  6580. ENABLE_METALINK_LIBEXPAT_FALSE='#'
  6581. else
  6582. ENABLE_METALINK_LIBEXPAT_TRUE='#'
  6583. ENABLE_METALINK_LIBEXPAT_FALSE=
  6584. fi
  6585. if test "x$have_libxml2" = "xyes" || test "x$have_libexpat" = "xyes"; then
  6586. enable_xml_rpc=yes
  6587. fi
  6588. if test "x$enable_xml_rpc" = "xyes"; then
  6589. $as_echo "#define ENABLE_XML_RPC 1" >>confdefs.h
  6590. fi
  6591. if test "x$enable_xml_rpc" = "xyes"; then
  6592. ENABLE_XML_RPC_TRUE=
  6593. ENABLE_XML_RPC_FALSE='#'
  6594. else
  6595. ENABLE_XML_RPC_TRUE='#'
  6596. ENABLE_XML_RPC_FALSE=
  6597. fi
  6598. if test "x$have_libxml2" = "xyes"; then
  6599. HAVE_LIBXML2_TRUE=
  6600. HAVE_LIBXML2_FALSE='#'
  6601. else
  6602. HAVE_LIBXML2_TRUE='#'
  6603. HAVE_LIBXML2_FALSE=
  6604. fi
  6605. if test "x$have_libexpat" = "xyes"; then
  6606. HAVE_LIBEXPAT_TRUE=
  6607. HAVE_LIBEXPAT_FALSE='#'
  6608. else
  6609. HAVE_LIBEXPAT_TRUE='#'
  6610. HAVE_LIBEXPAT_FALSE=
  6611. fi
  6612. if test "x$have_libcares" = "xyes"; then
  6613. $as_echo "#define ENABLE_ASYNC_DNS 1" >>confdefs.h
  6614. if true; then
  6615. ENABLE_ASYNC_DNS_TRUE=
  6616. ENABLE_ASYNC_DNS_FALSE='#'
  6617. else
  6618. ENABLE_ASYNC_DNS_TRUE='#'
  6619. ENABLE_ASYNC_DNS_FALSE=
  6620. fi
  6621. else
  6622. if false; then
  6623. ENABLE_ASYNC_DNS_TRUE=
  6624. ENABLE_ASYNC_DNS_FALSE='#'
  6625. else
  6626. ENABLE_ASYNC_DNS_TRUE='#'
  6627. ENABLE_ASYNC_DNS_FALSE=
  6628. fi
  6629. fi
  6630. # Set conditional for libz
  6631. if test "x$have_libz" = "xyes"; then
  6632. HAVE_LIBZ_TRUE=
  6633. HAVE_LIBZ_FALSE='#'
  6634. else
  6635. HAVE_LIBZ_TRUE='#'
  6636. HAVE_LIBZ_FALSE=
  6637. fi
  6638. # Set conditional for sqlite3
  6639. if test "x$have_sqlite3" = "xyes"; then
  6640. HAVE_SQLITE3_TRUE=
  6641. HAVE_SQLITE3_FALSE='#'
  6642. else
  6643. HAVE_SQLITE3_TRUE='#'
  6644. HAVE_SQLITE3_FALSE=
  6645. fi
  6646. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing clock_gettime" >&5
  6647. $as_echo_n "checking for library containing clock_gettime... " >&6; }
  6648. if test "${ac_cv_search_clock_gettime+set}" = set; then :
  6649. $as_echo_n "(cached) " >&6
  6650. else
  6651. ac_func_search_save_LIBS=$LIBS
  6652. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6653. /* end confdefs.h. */
  6654. /* Override any GCC internal prototype to avoid an error.
  6655. Use char because int might match the return type of a GCC
  6656. builtin and then its argument prototype would still apply. */
  6657. #ifdef __cplusplus
  6658. extern "C"
  6659. #endif
  6660. char clock_gettime ();
  6661. int
  6662. main ()
  6663. {
  6664. return clock_gettime ();
  6665. ;
  6666. return 0;
  6667. }
  6668. _ACEOF
  6669. for ac_lib in '' rt; do
  6670. if test -z "$ac_lib"; then
  6671. ac_res="none required"
  6672. else
  6673. ac_res=-l$ac_lib
  6674. LIBS="-l$ac_lib $ac_func_search_save_LIBS"
  6675. fi
  6676. if ac_fn_cxx_try_link "$LINENO"; then :
  6677. ac_cv_search_clock_gettime=$ac_res
  6678. fi
  6679. rm -f core conftest.err conftest.$ac_objext \
  6680. conftest$ac_exeext
  6681. if test "${ac_cv_search_clock_gettime+set}" = set; then :
  6682. break
  6683. fi
  6684. done
  6685. if test "${ac_cv_search_clock_gettime+set}" = set; then :
  6686. else
  6687. ac_cv_search_clock_gettime=no
  6688. fi
  6689. rm conftest.$ac_ext
  6690. LIBS=$ac_func_search_save_LIBS
  6691. fi
  6692. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_clock_gettime" >&5
  6693. $as_echo "$ac_cv_search_clock_gettime" >&6; }
  6694. ac_res=$ac_cv_search_clock_gettime
  6695. if test "$ac_res" != no; then :
  6696. test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
  6697. fi
  6698. case "$target" in
  6699. *solaris*)
  6700. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing getaddrinfo" >&5
  6701. $as_echo_n "checking for library containing getaddrinfo... " >&6; }
  6702. if test "${ac_cv_search_getaddrinfo+set}" = set; then :
  6703. $as_echo_n "(cached) " >&6
  6704. else
  6705. ac_func_search_save_LIBS=$LIBS
  6706. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6707. /* end confdefs.h. */
  6708. /* Override any GCC internal prototype to avoid an error.
  6709. Use char because int might match the return type of a GCC
  6710. builtin and then its argument prototype would still apply. */
  6711. #ifdef __cplusplus
  6712. extern "C"
  6713. #endif
  6714. char getaddrinfo ();
  6715. int
  6716. main ()
  6717. {
  6718. return getaddrinfo ();
  6719. ;
  6720. return 0;
  6721. }
  6722. _ACEOF
  6723. for ac_lib in '' nsl socket; do
  6724. if test -z "$ac_lib"; then
  6725. ac_res="none required"
  6726. else
  6727. ac_res=-l$ac_lib
  6728. LIBS="-l$ac_lib $ac_func_search_save_LIBS"
  6729. fi
  6730. if ac_fn_cxx_try_link "$LINENO"; then :
  6731. ac_cv_search_getaddrinfo=$ac_res
  6732. fi
  6733. rm -f core conftest.err conftest.$ac_objext \
  6734. conftest$ac_exeext
  6735. if test "${ac_cv_search_getaddrinfo+set}" = set; then :
  6736. break
  6737. fi
  6738. done
  6739. if test "${ac_cv_search_getaddrinfo+set}" = set; then :
  6740. else
  6741. ac_cv_search_getaddrinfo=no
  6742. fi
  6743. rm conftest.$ac_ext
  6744. LIBS=$ac_func_search_save_LIBS
  6745. fi
  6746. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_getaddrinfo" >&5
  6747. $as_echo "$ac_cv_search_getaddrinfo" >&6; }
  6748. ac_res=$ac_cv_search_getaddrinfo
  6749. if test "$ac_res" != no; then :
  6750. test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
  6751. fi
  6752. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing inet_aton" >&5
  6753. $as_echo_n "checking for library containing inet_aton... " >&6; }
  6754. if test "${ac_cv_search_inet_aton+set}" = set; then :
  6755. $as_echo_n "(cached) " >&6
  6756. else
  6757. ac_func_search_save_LIBS=$LIBS
  6758. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6759. /* end confdefs.h. */
  6760. /* Override any GCC internal prototype to avoid an error.
  6761. Use char because int might match the return type of a GCC
  6762. builtin and then its argument prototype would still apply. */
  6763. #ifdef __cplusplus
  6764. extern "C"
  6765. #endif
  6766. char inet_aton ();
  6767. int
  6768. main ()
  6769. {
  6770. return inet_aton ();
  6771. ;
  6772. return 0;
  6773. }
  6774. _ACEOF
  6775. for ac_lib in '' nsl socket; do
  6776. if test -z "$ac_lib"; then
  6777. ac_res="none required"
  6778. else
  6779. ac_res=-l$ac_lib
  6780. LIBS="-l$ac_lib $ac_func_search_save_LIBS"
  6781. fi
  6782. if ac_fn_cxx_try_link "$LINENO"; then :
  6783. ac_cv_search_inet_aton=$ac_res
  6784. fi
  6785. rm -f core conftest.err conftest.$ac_objext \
  6786. conftest$ac_exeext
  6787. if test "${ac_cv_search_inet_aton+set}" = set; then :
  6788. break
  6789. fi
  6790. done
  6791. if test "${ac_cv_search_inet_aton+set}" = set; then :
  6792. else
  6793. ac_cv_search_inet_aton=no
  6794. fi
  6795. rm conftest.$ac_ext
  6796. LIBS=$ac_func_search_save_LIBS
  6797. fi
  6798. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_inet_aton" >&5
  6799. $as_echo "$ac_cv_search_inet_aton" >&6; }
  6800. ac_res=$ac_cv_search_inet_aton
  6801. if test "$ac_res" != no; then :
  6802. test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
  6803. fi
  6804. ;;
  6805. esac
  6806. # Checks for header files.
  6807. # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
  6808. # for constant arguments. Useless!
  6809. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working alloca.h" >&5
  6810. $as_echo_n "checking for working alloca.h... " >&6; }
  6811. if test "${ac_cv_working_alloca_h+set}" = set; then :
  6812. $as_echo_n "(cached) " >&6
  6813. else
  6814. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6815. /* end confdefs.h. */
  6816. #include <alloca.h>
  6817. int
  6818. main ()
  6819. {
  6820. char *p = (char *) alloca (2 * sizeof (int));
  6821. if (p) return 0;
  6822. ;
  6823. return 0;
  6824. }
  6825. _ACEOF
  6826. if ac_fn_cxx_try_link "$LINENO"; then :
  6827. ac_cv_working_alloca_h=yes
  6828. else
  6829. ac_cv_working_alloca_h=no
  6830. fi
  6831. rm -f core conftest.err conftest.$ac_objext \
  6832. conftest$ac_exeext conftest.$ac_ext
  6833. fi
  6834. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_alloca_h" >&5
  6835. $as_echo "$ac_cv_working_alloca_h" >&6; }
  6836. if test $ac_cv_working_alloca_h = yes; then
  6837. $as_echo "#define HAVE_ALLOCA_H 1" >>confdefs.h
  6838. fi
  6839. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca" >&5
  6840. $as_echo_n "checking for alloca... " >&6; }
  6841. if test "${ac_cv_func_alloca_works+set}" = set; then :
  6842. $as_echo_n "(cached) " >&6
  6843. else
  6844. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6845. /* end confdefs.h. */
  6846. #ifdef __GNUC__
  6847. # define alloca __builtin_alloca
  6848. #else
  6849. # ifdef _MSC_VER
  6850. # include <malloc.h>
  6851. # define alloca _alloca
  6852. # else
  6853. # ifdef HAVE_ALLOCA_H
  6854. # include <alloca.h>
  6855. # else
  6856. # ifdef _AIX
  6857. #pragma alloca
  6858. # else
  6859. # ifndef alloca /* predefined by HP cc +Olibcalls */
  6860. char *alloca ();
  6861. # endif
  6862. # endif
  6863. # endif
  6864. # endif
  6865. #endif
  6866. int
  6867. main ()
  6868. {
  6869. char *p = (char *) alloca (1);
  6870. if (p) return 0;
  6871. ;
  6872. return 0;
  6873. }
  6874. _ACEOF
  6875. if ac_fn_cxx_try_link "$LINENO"; then :
  6876. ac_cv_func_alloca_works=yes
  6877. else
  6878. ac_cv_func_alloca_works=no
  6879. fi
  6880. rm -f core conftest.err conftest.$ac_objext \
  6881. conftest$ac_exeext conftest.$ac_ext
  6882. fi
  6883. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_alloca_works" >&5
  6884. $as_echo "$ac_cv_func_alloca_works" >&6; }
  6885. if test $ac_cv_func_alloca_works = yes; then
  6886. $as_echo "#define HAVE_ALLOCA 1" >>confdefs.h
  6887. else
  6888. # The SVR3 libPW and SVR4 libucb both contain incompatible functions
  6889. # that cause trouble. Some versions do not even contain alloca or
  6890. # contain a buggy version. If you still want to use their alloca,
  6891. # use ar to extract alloca.o from them instead of compiling alloca.c.
  6892. ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
  6893. $as_echo "#define C_ALLOCA 1" >>confdefs.h
  6894. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether \`alloca.c' needs Cray hooks" >&5
  6895. $as_echo_n "checking whether \`alloca.c' needs Cray hooks... " >&6; }
  6896. if test "${ac_cv_os_cray+set}" = set; then :
  6897. $as_echo_n "(cached) " >&6
  6898. else
  6899. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6900. /* end confdefs.h. */
  6901. #if defined CRAY && ! defined CRAY2
  6902. webecray
  6903. #else
  6904. wenotbecray
  6905. #endif
  6906. _ACEOF
  6907. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  6908. $EGREP "webecray" >/dev/null 2>&1; then :
  6909. ac_cv_os_cray=yes
  6910. else
  6911. ac_cv_os_cray=no
  6912. fi
  6913. rm -f conftest*
  6914. fi
  6915. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_os_cray" >&5
  6916. $as_echo "$ac_cv_os_cray" >&6; }
  6917. if test $ac_cv_os_cray = yes; then
  6918. for ac_func in _getb67 GETB67 getb67; do
  6919. as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
  6920. ac_fn_cxx_check_func "$LINENO" "$ac_func" "$as_ac_var"
  6921. eval as_val=\$$as_ac_var
  6922. if test "x$as_val" = x""yes; then :
  6923. cat >>confdefs.h <<_ACEOF
  6924. #define CRAY_STACKSEG_END $ac_func
  6925. _ACEOF
  6926. break
  6927. fi
  6928. done
  6929. fi
  6930. { $as_echo "$as_me:${as_lineno-$LINENO}: checking stack direction for C alloca" >&5
  6931. $as_echo_n "checking stack direction for C alloca... " >&6; }
  6932. if test "${ac_cv_c_stack_direction+set}" = set; then :
  6933. $as_echo_n "(cached) " >&6
  6934. else
  6935. if test "$cross_compiling" = yes; then :
  6936. ac_cv_c_stack_direction=0
  6937. else
  6938. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6939. /* end confdefs.h. */
  6940. $ac_includes_default
  6941. int
  6942. find_stack_direction ()
  6943. {
  6944. static char *addr = 0;
  6945. auto char dummy;
  6946. if (addr == 0)
  6947. {
  6948. addr = &dummy;
  6949. return find_stack_direction ();
  6950. }
  6951. else
  6952. return (&dummy > addr) ? 1 : -1;
  6953. }
  6954. int
  6955. main ()
  6956. {
  6957. return find_stack_direction () < 0;
  6958. }
  6959. _ACEOF
  6960. if ac_fn_cxx_try_run "$LINENO"; then :
  6961. ac_cv_c_stack_direction=1
  6962. else
  6963. ac_cv_c_stack_direction=-1
  6964. fi
  6965. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  6966. conftest.$ac_objext conftest.beam conftest.$ac_ext
  6967. fi
  6968. fi
  6969. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stack_direction" >&5
  6970. $as_echo "$ac_cv_c_stack_direction" >&6; }
  6971. cat >>confdefs.h <<_ACEOF
  6972. #define STACK_DIRECTION $ac_cv_c_stack_direction
  6973. _ACEOF
  6974. fi
  6975. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
  6976. $as_echo_n "checking for ANSI C header files... " >&6; }
  6977. if test "${ac_cv_header_stdc+set}" = set; then :
  6978. $as_echo_n "(cached) " >&6
  6979. else
  6980. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6981. /* end confdefs.h. */
  6982. #include <stdlib.h>
  6983. #include <stdarg.h>
  6984. #include <string.h>
  6985. #include <float.h>
  6986. int
  6987. main ()
  6988. {
  6989. ;
  6990. return 0;
  6991. }
  6992. _ACEOF
  6993. if ac_fn_cxx_try_compile "$LINENO"; then :
  6994. ac_cv_header_stdc=yes
  6995. else
  6996. ac_cv_header_stdc=no
  6997. fi
  6998. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  6999. if test $ac_cv_header_stdc = yes; then
  7000. # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
  7001. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7002. /* end confdefs.h. */
  7003. #include <string.h>
  7004. _ACEOF
  7005. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  7006. $EGREP "memchr" >/dev/null 2>&1; then :
  7007. else
  7008. ac_cv_header_stdc=no
  7009. fi
  7010. rm -f conftest*
  7011. fi
  7012. if test $ac_cv_header_stdc = yes; then
  7013. # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
  7014. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7015. /* end confdefs.h. */
  7016. #include <stdlib.h>
  7017. _ACEOF
  7018. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  7019. $EGREP "free" >/dev/null 2>&1; then :
  7020. else
  7021. ac_cv_header_stdc=no
  7022. fi
  7023. rm -f conftest*
  7024. fi
  7025. if test $ac_cv_header_stdc = yes; then
  7026. # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
  7027. if test "$cross_compiling" = yes; then :
  7028. :
  7029. else
  7030. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7031. /* end confdefs.h. */
  7032. #include <ctype.h>
  7033. #include <stdlib.h>
  7034. #if ((' ' & 0x0FF) == 0x020)
  7035. # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
  7036. # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
  7037. #else
  7038. # define ISLOWER(c) \
  7039. (('a' <= (c) && (c) <= 'i') \
  7040. || ('j' <= (c) && (c) <= 'r') \
  7041. || ('s' <= (c) && (c) <= 'z'))
  7042. # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
  7043. #endif
  7044. #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
  7045. int
  7046. main ()
  7047. {
  7048. int i;
  7049. for (i = 0; i < 256; i++)
  7050. if (XOR (islower (i), ISLOWER (i))
  7051. || toupper (i) != TOUPPER (i))
  7052. return 2;
  7053. return 0;
  7054. }
  7055. _ACEOF
  7056. if ac_fn_cxx_try_run "$LINENO"; then :
  7057. else
  7058. ac_cv_header_stdc=no
  7059. fi
  7060. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  7061. conftest.$ac_objext conftest.beam conftest.$ac_ext
  7062. fi
  7063. fi
  7064. fi
  7065. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
  7066. $as_echo "$ac_cv_header_stdc" >&6; }
  7067. if test $ac_cv_header_stdc = yes; then
  7068. $as_echo "#define STDC_HEADERS 1" >>confdefs.h
  7069. fi
  7070. case "$target" in
  7071. *mingw*)
  7072. for ac_header in windows.h \
  7073. winsock2.h \
  7074. ws2tcpip.h \
  7075. mmsystem.h
  7076. do :
  7077. as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
  7078. ac_fn_cxx_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "#ifdef HAVE_WINDOWS_H
  7079. # include <windows.h>
  7080. #endif
  7081. "
  7082. eval as_val=\$$as_ac_Header
  7083. if test "x$as_val" = x""yes; then :
  7084. cat >>confdefs.h <<_ACEOF
  7085. #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
  7086. _ACEOF
  7087. fi
  7088. done
  7089. ;;
  7090. esac
  7091. for ac_header in argz.h \
  7092. arpa/inet.h \
  7093. fcntl.h \
  7094. float.h \
  7095. inttypes.h \
  7096. io.h \
  7097. langinfo.h \
  7098. libintl.h \
  7099. limits.h \
  7100. locale.h \
  7101. malloc.h \
  7102. netdb.h \
  7103. netinet/in.h \
  7104. poll.h \
  7105. port.h \
  7106. stddef.h \
  7107. stdint.h \
  7108. stdio_ext.h \
  7109. stdlib.h \
  7110. string.h \
  7111. strings.h \
  7112. sys/ioctl.h \
  7113. sys/param.h \
  7114. sys/socket.h \
  7115. sys/time.h \
  7116. termios.h \
  7117. unistd.h \
  7118. utime.h \
  7119. wchar.h \
  7120. ifaddrs.h
  7121. do :
  7122. as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
  7123. ac_fn_cxx_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
  7124. eval as_val=\$$as_ac_Header
  7125. if test "x$as_val" = x""yes; then :
  7126. cat >>confdefs.h <<_ACEOF
  7127. #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
  7128. _ACEOF
  7129. fi
  7130. done
  7131. # Checks for typedefs, structures, and compiler characteristics.
  7132. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for stdbool.h that conforms to C99" >&5
  7133. $as_echo_n "checking for stdbool.h that conforms to C99... " >&6; }
  7134. if test "${ac_cv_header_stdbool_h+set}" = set; then :
  7135. $as_echo_n "(cached) " >&6
  7136. else
  7137. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7138. /* end confdefs.h. */
  7139. #include <stdbool.h>
  7140. #ifndef bool
  7141. "error: bool is not defined"
  7142. #endif
  7143. #ifndef false
  7144. "error: false is not defined"
  7145. #endif
  7146. #if false
  7147. "error: false is not 0"
  7148. #endif
  7149. #ifndef true
  7150. "error: true is not defined"
  7151. #endif
  7152. #if true != 1
  7153. "error: true is not 1"
  7154. #endif
  7155. #ifndef __bool_true_false_are_defined
  7156. "error: __bool_true_false_are_defined is not defined"
  7157. #endif
  7158. struct s { _Bool s: 1; _Bool t; } s;
  7159. char a[true == 1 ? 1 : -1];
  7160. char b[false == 0 ? 1 : -1];
  7161. char c[__bool_true_false_are_defined == 1 ? 1 : -1];
  7162. char d[(bool) 0.5 == true ? 1 : -1];
  7163. bool e = &s;
  7164. char f[(_Bool) 0.0 == false ? 1 : -1];
  7165. char g[true];
  7166. char h[sizeof (_Bool)];
  7167. char i[sizeof s.t];
  7168. enum { j = false, k = true, l = false * true, m = true * 256 };
  7169. /* The following fails for
  7170. HP aC++/ANSI C B3910B A.05.55 [Dec 04 2003]. */
  7171. _Bool n[m];
  7172. char o[sizeof n == m * sizeof n[0] ? 1 : -1];
  7173. char p[-1 - (_Bool) 0 < 0 && -1 - (bool) 0 < 0 ? 1 : -1];
  7174. # if defined __xlc__ || defined __GNUC__
  7175. /* Catch a bug in IBM AIX xlc compiler version 6.0.0.0
  7176. reported by James Lemley on 2005-10-05; see
  7177. http://lists.gnu.org/archive/html/bug-coreutils/2005-10/msg00086.html
  7178. This test is not quite right, since xlc is allowed to
  7179. reject this program, as the initializer for xlcbug is
  7180. not one of the forms that C requires support for.
  7181. However, doing the test right would require a runtime
  7182. test, and that would make cross-compilation harder.
  7183. Let us hope that IBM fixes the xlc bug, and also adds
  7184. support for this kind of constant expression. In the
  7185. meantime, this test will reject xlc, which is OK, since
  7186. our stdbool.h substitute should suffice. We also test
  7187. this with GCC, where it should work, to detect more
  7188. quickly whether someone messes up the test in the
  7189. future. */
  7190. char digs[] = "0123456789";
  7191. int xlcbug = 1 / (&(digs + 5)[-2 + (bool) 1] == &digs[4] ? 1 : -1);
  7192. # endif
  7193. /* Catch a bug in an HP-UX C compiler. See
  7194. http://gcc.gnu.org/ml/gcc-patches/2003-12/msg02303.html
  7195. http://lists.gnu.org/archive/html/bug-coreutils/2005-11/msg00161.html
  7196. */
  7197. _Bool q = true;
  7198. _Bool *pq = &q;
  7199. int
  7200. main ()
  7201. {
  7202. *pq |= q;
  7203. *pq |= ! q;
  7204. /* Refer to every declared value, to avoid compiler optimizations. */
  7205. return (!a + !b + !c + !d + !e + !f + !g + !h + !i + !!j + !k + !!l
  7206. + !m + !n + !o + !p + !q + !pq);
  7207. ;
  7208. return 0;
  7209. }
  7210. _ACEOF
  7211. if ac_fn_cxx_try_compile "$LINENO"; then :
  7212. ac_cv_header_stdbool_h=yes
  7213. else
  7214. ac_cv_header_stdbool_h=no
  7215. fi
  7216. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  7217. fi
  7218. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdbool_h" >&5
  7219. $as_echo "$ac_cv_header_stdbool_h" >&6; }
  7220. ac_fn_cxx_check_type "$LINENO" "_Bool" "ac_cv_type__Bool" "$ac_includes_default"
  7221. if test "x$ac_cv_type__Bool" = x""yes; then :
  7222. cat >>confdefs.h <<_ACEOF
  7223. #define HAVE__BOOL 1
  7224. _ACEOF
  7225. fi
  7226. if test $ac_cv_header_stdbool_h = yes; then
  7227. $as_echo "#define HAVE_STDBOOL_H 1" >>confdefs.h
  7228. fi
  7229. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
  7230. $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
  7231. if test "${ac_cv_c_const+set}" = set; then :
  7232. $as_echo_n "(cached) " >&6
  7233. else
  7234. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7235. /* end confdefs.h. */
  7236. int
  7237. main ()
  7238. {
  7239. /* FIXME: Include the comments suggested by Paul. */
  7240. #ifndef __cplusplus
  7241. /* Ultrix mips cc rejects this. */
  7242. typedef int charset[2];
  7243. const charset cs;
  7244. /* SunOS 4.1.1 cc rejects this. */
  7245. char const *const *pcpcc;
  7246. char **ppc;
  7247. /* NEC SVR4.0.2 mips cc rejects this. */
  7248. struct point {int x, y;};
  7249. static struct point const zero = {0,0};
  7250. /* AIX XL C 1.02.0.0 rejects this.
  7251. It does not let you subtract one const X* pointer from another in
  7252. an arm of an if-expression whose if-part is not a constant
  7253. expression */
  7254. const char *g = "string";
  7255. pcpcc = &g + (g ? g-g : 0);
  7256. /* HPUX 7.0 cc rejects these. */
  7257. ++pcpcc;
  7258. ppc = (char**) pcpcc;
  7259. pcpcc = (char const *const *) ppc;
  7260. { /* SCO 3.2v4 cc rejects this. */
  7261. char *t;
  7262. char const *s = 0 ? (char *) 0 : (char const *) 0;
  7263. *t++ = 0;
  7264. if (s) return 0;
  7265. }
  7266. { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
  7267. int x[] = {25, 17};
  7268. const int *foo = &x[0];
  7269. ++foo;
  7270. }
  7271. { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
  7272. typedef const int *iptr;
  7273. iptr p = 0;
  7274. ++p;
  7275. }
  7276. { /* AIX XL C 1.02.0.0 rejects this saying
  7277. "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
  7278. struct s { int j; const int *ap[3]; };
  7279. struct s *b; b->j = 5;
  7280. }
  7281. { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
  7282. const int foo = 10;
  7283. if (!foo) return 0;
  7284. }
  7285. return !cs[0] && !zero.x;
  7286. #endif
  7287. ;
  7288. return 0;
  7289. }
  7290. _ACEOF
  7291. if ac_fn_cxx_try_compile "$LINENO"; then :
  7292. ac_cv_c_const=yes
  7293. else
  7294. ac_cv_c_const=no
  7295. fi
  7296. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  7297. fi
  7298. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
  7299. $as_echo "$ac_cv_c_const" >&6; }
  7300. if test $ac_cv_c_const = no; then
  7301. $as_echo "#define const /**/" >>confdefs.h
  7302. fi
  7303. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
  7304. $as_echo_n "checking for inline... " >&6; }
  7305. if test "${ac_cv_c_inline+set}" = set; then :
  7306. $as_echo_n "(cached) " >&6
  7307. else
  7308. ac_cv_c_inline=no
  7309. for ac_kw in inline __inline__ __inline; do
  7310. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7311. /* end confdefs.h. */
  7312. #ifndef __cplusplus
  7313. typedef int foo_t;
  7314. static $ac_kw foo_t static_foo () {return 0; }
  7315. $ac_kw foo_t foo () {return 0; }
  7316. #endif
  7317. _ACEOF
  7318. if ac_fn_cxx_try_compile "$LINENO"; then :
  7319. ac_cv_c_inline=$ac_kw
  7320. fi
  7321. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  7322. test "$ac_cv_c_inline" != no && break
  7323. done
  7324. fi
  7325. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
  7326. $as_echo "$ac_cv_c_inline" >&6; }
  7327. case $ac_cv_c_inline in
  7328. inline | yes) ;;
  7329. *)
  7330. case $ac_cv_c_inline in
  7331. no) ac_val=;;
  7332. *) ac_val=$ac_cv_c_inline;;
  7333. esac
  7334. cat >>confdefs.h <<_ACEOF
  7335. #ifndef __cplusplus
  7336. #define inline $ac_val
  7337. #endif
  7338. _ACEOF
  7339. ;;
  7340. esac
  7341. ac_fn_c_find_intX_t "$LINENO" "16" "ac_cv_c_int16_t"
  7342. case $ac_cv_c_int16_t in #(
  7343. no|yes) ;; #(
  7344. *)
  7345. cat >>confdefs.h <<_ACEOF
  7346. #define int16_t $ac_cv_c_int16_t
  7347. _ACEOF
  7348. ;;
  7349. esac
  7350. ac_fn_c_find_intX_t "$LINENO" "32" "ac_cv_c_int32_t"
  7351. case $ac_cv_c_int32_t in #(
  7352. no|yes) ;; #(
  7353. *)
  7354. cat >>confdefs.h <<_ACEOF
  7355. #define int32_t $ac_cv_c_int32_t
  7356. _ACEOF
  7357. ;;
  7358. esac
  7359. ac_fn_c_find_intX_t "$LINENO" "64" "ac_cv_c_int64_t"
  7360. case $ac_cv_c_int64_t in #(
  7361. no|yes) ;; #(
  7362. *)
  7363. cat >>confdefs.h <<_ACEOF
  7364. #define int64_t $ac_cv_c_int64_t
  7365. _ACEOF
  7366. ;;
  7367. esac
  7368. ac_fn_c_find_intX_t "$LINENO" "8" "ac_cv_c_int8_t"
  7369. case $ac_cv_c_int8_t in #(
  7370. no|yes) ;; #(
  7371. *)
  7372. cat >>confdefs.h <<_ACEOF
  7373. #define int8_t $ac_cv_c_int8_t
  7374. _ACEOF
  7375. ;;
  7376. esac
  7377. ac_fn_cxx_check_type "$LINENO" "mode_t" "ac_cv_type_mode_t" "$ac_includes_default"
  7378. if test "x$ac_cv_type_mode_t" = x""yes; then :
  7379. else
  7380. cat >>confdefs.h <<_ACEOF
  7381. #define mode_t int
  7382. _ACEOF
  7383. fi
  7384. ac_fn_cxx_check_type "$LINENO" "off_t" "ac_cv_type_off_t" "$ac_includes_default"
  7385. if test "x$ac_cv_type_off_t" = x""yes; then :
  7386. else
  7387. cat >>confdefs.h <<_ACEOF
  7388. #define off_t long int
  7389. _ACEOF
  7390. fi
  7391. ac_fn_cxx_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
  7392. if test "x$ac_cv_type_size_t" = x""yes; then :
  7393. else
  7394. cat >>confdefs.h <<_ACEOF
  7395. #define size_t unsigned int
  7396. _ACEOF
  7397. fi
  7398. ac_fn_cxx_check_type "$LINENO" "ssize_t" "ac_cv_type_ssize_t" "$ac_includes_default"
  7399. if test "x$ac_cv_type_ssize_t" = x""yes; then :
  7400. else
  7401. cat >>confdefs.h <<_ACEOF
  7402. #define ssize_t int
  7403. _ACEOF
  7404. fi
  7405. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5
  7406. $as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
  7407. if test "${ac_cv_header_time+set}" = set; then :
  7408. $as_echo_n "(cached) " >&6
  7409. else
  7410. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7411. /* end confdefs.h. */
  7412. #include <sys/types.h>
  7413. #include <sys/time.h>
  7414. #include <time.h>
  7415. int
  7416. main ()
  7417. {
  7418. if ((struct tm *) 0)
  7419. return 0;
  7420. ;
  7421. return 0;
  7422. }
  7423. _ACEOF
  7424. if ac_fn_cxx_try_compile "$LINENO"; then :
  7425. ac_cv_header_time=yes
  7426. else
  7427. ac_cv_header_time=no
  7428. fi
  7429. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  7430. fi
  7431. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
  7432. $as_echo "$ac_cv_header_time" >&6; }
  7433. if test $ac_cv_header_time = yes; then
  7434. $as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
  7435. fi
  7436. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct tm is in sys/time.h or time.h" >&5
  7437. $as_echo_n "checking whether struct tm is in sys/time.h or time.h... " >&6; }
  7438. if test "${ac_cv_struct_tm+set}" = set; then :
  7439. $as_echo_n "(cached) " >&6
  7440. else
  7441. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7442. /* end confdefs.h. */
  7443. #include <sys/types.h>
  7444. #include <time.h>
  7445. int
  7446. main ()
  7447. {
  7448. struct tm tm;
  7449. int *p = &tm.tm_sec;
  7450. return !p;
  7451. ;
  7452. return 0;
  7453. }
  7454. _ACEOF
  7455. if ac_fn_cxx_try_compile "$LINENO"; then :
  7456. ac_cv_struct_tm=time.h
  7457. else
  7458. ac_cv_struct_tm=sys/time.h
  7459. fi
  7460. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  7461. fi
  7462. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tm" >&5
  7463. $as_echo "$ac_cv_struct_tm" >&6; }
  7464. if test $ac_cv_struct_tm = sys/time.h; then
  7465. $as_echo "#define TM_IN_SYS_TIME 1" >>confdefs.h
  7466. fi
  7467. ac_fn_c_find_uintX_t "$LINENO" "16" "ac_cv_c_uint16_t"
  7468. case $ac_cv_c_uint16_t in #(
  7469. no|yes) ;; #(
  7470. *)
  7471. cat >>confdefs.h <<_ACEOF
  7472. #define uint16_t $ac_cv_c_uint16_t
  7473. _ACEOF
  7474. ;;
  7475. esac
  7476. ac_fn_c_find_uintX_t "$LINENO" "32" "ac_cv_c_uint32_t"
  7477. case $ac_cv_c_uint32_t in #(
  7478. no|yes) ;; #(
  7479. *)
  7480. $as_echo "#define _UINT32_T 1" >>confdefs.h
  7481. cat >>confdefs.h <<_ACEOF
  7482. #define uint32_t $ac_cv_c_uint32_t
  7483. _ACEOF
  7484. ;;
  7485. esac
  7486. ac_fn_c_find_uintX_t "$LINENO" "64" "ac_cv_c_uint64_t"
  7487. case $ac_cv_c_uint64_t in #(
  7488. no|yes) ;; #(
  7489. *)
  7490. $as_echo "#define _UINT64_T 1" >>confdefs.h
  7491. cat >>confdefs.h <<_ACEOF
  7492. #define uint64_t $ac_cv_c_uint64_t
  7493. _ACEOF
  7494. ;;
  7495. esac
  7496. ac_fn_c_find_uintX_t "$LINENO" "8" "ac_cv_c_uint8_t"
  7497. case $ac_cv_c_uint8_t in #(
  7498. no|yes) ;; #(
  7499. *)
  7500. $as_echo "#define _UINT8_T 1" >>confdefs.h
  7501. cat >>confdefs.h <<_ACEOF
  7502. #define uint8_t $ac_cv_c_uint8_t
  7503. _ACEOF
  7504. ;;
  7505. esac
  7506. ac_fn_cxx_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
  7507. if test "x$ac_cv_type_pid_t" = x""yes; then :
  7508. else
  7509. cat >>confdefs.h <<_ACEOF
  7510. #define pid_t int
  7511. _ACEOF
  7512. fi
  7513. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working volatile" >&5
  7514. $as_echo_n "checking for working volatile... " >&6; }
  7515. if test "${ac_cv_c_volatile+set}" = set; then :
  7516. $as_echo_n "(cached) " >&6
  7517. else
  7518. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7519. /* end confdefs.h. */
  7520. int
  7521. main ()
  7522. {
  7523. volatile int x;
  7524. int * volatile y = (int *) 0;
  7525. return !x && !y;
  7526. ;
  7527. return 0;
  7528. }
  7529. _ACEOF
  7530. if ac_fn_cxx_try_compile "$LINENO"; then :
  7531. ac_cv_c_volatile=yes
  7532. else
  7533. ac_cv_c_volatile=no
  7534. fi
  7535. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  7536. fi
  7537. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_volatile" >&5
  7538. $as_echo "$ac_cv_c_volatile" >&6; }
  7539. if test $ac_cv_c_volatile = no; then
  7540. $as_echo "#define volatile /**/" >>confdefs.h
  7541. fi
  7542. ac_fn_cxx_check_type "$LINENO" "ptrdiff_t" "ac_cv_type_ptrdiff_t" "$ac_includes_default"
  7543. if test "x$ac_cv_type_ptrdiff_t" = x""yes; then :
  7544. cat >>confdefs.h <<_ACEOF
  7545. #define HAVE_PTRDIFF_T 1
  7546. _ACEOF
  7547. fi
  7548. ac_fn_cxx_check_type "$LINENO" "struct timespec" "ac_cv_type_struct_timespec" "$ac_includes_default"
  7549. if test "x$ac_cv_type_struct_timespec" = x""yes; then :
  7550. cat >>confdefs.h <<_ACEOF
  7551. #define HAVE_STRUCT_TIMESPEC 1
  7552. _ACEOF
  7553. fi
  7554. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
  7555. $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
  7556. if test "${ac_cv_c_bigendian+set}" = set; then :
  7557. $as_echo_n "(cached) " >&6
  7558. else
  7559. ac_cv_c_bigendian=unknown
  7560. # See if we're dealing with a universal compiler.
  7561. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7562. /* end confdefs.h. */
  7563. #ifndef __APPLE_CC__
  7564. not a universal capable compiler
  7565. #endif
  7566. typedef int dummy;
  7567. _ACEOF
  7568. if ac_fn_cxx_try_compile "$LINENO"; then :
  7569. # Check for potential -arch flags. It is not universal unless
  7570. # there are at least two -arch flags with different values.
  7571. ac_arch=
  7572. ac_prev=
  7573. for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
  7574. if test -n "$ac_prev"; then
  7575. case $ac_word in
  7576. i?86 | x86_64 | ppc | ppc64)
  7577. if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
  7578. ac_arch=$ac_word
  7579. else
  7580. ac_cv_c_bigendian=universal
  7581. break
  7582. fi
  7583. ;;
  7584. esac
  7585. ac_prev=
  7586. elif test "x$ac_word" = "x-arch"; then
  7587. ac_prev=arch
  7588. fi
  7589. done
  7590. fi
  7591. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  7592. if test $ac_cv_c_bigendian = unknown; then
  7593. # See if sys/param.h defines the BYTE_ORDER macro.
  7594. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7595. /* end confdefs.h. */
  7596. #include <sys/types.h>
  7597. #include <sys/param.h>
  7598. int
  7599. main ()
  7600. {
  7601. #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
  7602. && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
  7603. && LITTLE_ENDIAN)
  7604. bogus endian macros
  7605. #endif
  7606. ;
  7607. return 0;
  7608. }
  7609. _ACEOF
  7610. if ac_fn_cxx_try_compile "$LINENO"; then :
  7611. # It does; now see whether it defined to BIG_ENDIAN or not.
  7612. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7613. /* end confdefs.h. */
  7614. #include <sys/types.h>
  7615. #include <sys/param.h>
  7616. int
  7617. main ()
  7618. {
  7619. #if BYTE_ORDER != BIG_ENDIAN
  7620. not big endian
  7621. #endif
  7622. ;
  7623. return 0;
  7624. }
  7625. _ACEOF
  7626. if ac_fn_cxx_try_compile "$LINENO"; then :
  7627. ac_cv_c_bigendian=yes
  7628. else
  7629. ac_cv_c_bigendian=no
  7630. fi
  7631. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  7632. fi
  7633. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  7634. fi
  7635. if test $ac_cv_c_bigendian = unknown; then
  7636. # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
  7637. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7638. /* end confdefs.h. */
  7639. #include <limits.h>
  7640. int
  7641. main ()
  7642. {
  7643. #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
  7644. bogus endian macros
  7645. #endif
  7646. ;
  7647. return 0;
  7648. }
  7649. _ACEOF
  7650. if ac_fn_cxx_try_compile "$LINENO"; then :
  7651. # It does; now see whether it defined to _BIG_ENDIAN or not.
  7652. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7653. /* end confdefs.h. */
  7654. #include <limits.h>
  7655. int
  7656. main ()
  7657. {
  7658. #ifndef _BIG_ENDIAN
  7659. not big endian
  7660. #endif
  7661. ;
  7662. return 0;
  7663. }
  7664. _ACEOF
  7665. if ac_fn_cxx_try_compile "$LINENO"; then :
  7666. ac_cv_c_bigendian=yes
  7667. else
  7668. ac_cv_c_bigendian=no
  7669. fi
  7670. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  7671. fi
  7672. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  7673. fi
  7674. if test $ac_cv_c_bigendian = unknown; then
  7675. # Compile a test program.
  7676. if test "$cross_compiling" = yes; then :
  7677. # Try to guess by grepping values from an object file.
  7678. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7679. /* end confdefs.h. */
  7680. short int ascii_mm[] =
  7681. { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
  7682. short int ascii_ii[] =
  7683. { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
  7684. int use_ascii (int i) {
  7685. return ascii_mm[i] + ascii_ii[i];
  7686. }
  7687. short int ebcdic_ii[] =
  7688. { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
  7689. short int ebcdic_mm[] =
  7690. { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
  7691. int use_ebcdic (int i) {
  7692. return ebcdic_mm[i] + ebcdic_ii[i];
  7693. }
  7694. extern int foo;
  7695. int
  7696. main ()
  7697. {
  7698. return use_ascii (foo) == use_ebcdic (foo);
  7699. ;
  7700. return 0;
  7701. }
  7702. _ACEOF
  7703. if ac_fn_cxx_try_compile "$LINENO"; then :
  7704. if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
  7705. ac_cv_c_bigendian=yes
  7706. fi
  7707. if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
  7708. if test "$ac_cv_c_bigendian" = unknown; then
  7709. ac_cv_c_bigendian=no
  7710. else
  7711. # finding both strings is unlikely to happen, but who knows?
  7712. ac_cv_c_bigendian=unknown
  7713. fi
  7714. fi
  7715. fi
  7716. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  7717. else
  7718. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7719. /* end confdefs.h. */
  7720. $ac_includes_default
  7721. int
  7722. main ()
  7723. {
  7724. /* Are we little or big endian? From Harbison&Steele. */
  7725. union
  7726. {
  7727. long int l;
  7728. char c[sizeof (long int)];
  7729. } u;
  7730. u.l = 1;
  7731. return u.c[sizeof (long int) - 1] == 1;
  7732. ;
  7733. return 0;
  7734. }
  7735. _ACEOF
  7736. if ac_fn_cxx_try_run "$LINENO"; then :
  7737. ac_cv_c_bigendian=no
  7738. else
  7739. ac_cv_c_bigendian=yes
  7740. fi
  7741. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  7742. conftest.$ac_objext conftest.beam conftest.$ac_ext
  7743. fi
  7744. fi
  7745. fi
  7746. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
  7747. $as_echo "$ac_cv_c_bigendian" >&6; }
  7748. case $ac_cv_c_bigendian in #(
  7749. yes)
  7750. $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
  7751. ;; #(
  7752. no)
  7753. ;; #(
  7754. universal)
  7755. $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
  7756. ;; #(
  7757. *)
  7758. as_fn_error "unknown endianness
  7759. presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
  7760. esac
  7761. # Check whether --enable-largefile was given.
  7762. if test "${enable_largefile+set}" = set; then :
  7763. enableval=$enable_largefile;
  7764. fi
  7765. if test "$enable_largefile" != no; then
  7766. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
  7767. $as_echo_n "checking for special C compiler options needed for large files... " >&6; }
  7768. if test "${ac_cv_sys_largefile_CC+set}" = set; then :
  7769. $as_echo_n "(cached) " >&6
  7770. else
  7771. ac_cv_sys_largefile_CC=no
  7772. if test "$GCC" != yes; then
  7773. ac_save_CC=$CC
  7774. while :; do
  7775. # IRIX 6.2 and later do not support large files by default,
  7776. # so use the C compiler's -n32 option if that helps.
  7777. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7778. /* end confdefs.h. */
  7779. #include <sys/types.h>
  7780. /* Check that off_t can represent 2**63 - 1 correctly.
  7781. We can't simply define LARGE_OFF_T to be 9223372036854775807,
  7782. since some C++ compilers masquerading as C compilers
  7783. incorrectly reject 9223372036854775807. */
  7784. #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
  7785. int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
  7786. && LARGE_OFF_T % 2147483647 == 1)
  7787. ? 1 : -1];
  7788. int
  7789. main ()
  7790. {
  7791. ;
  7792. return 0;
  7793. }
  7794. _ACEOF
  7795. if ac_fn_cxx_try_compile "$LINENO"; then :
  7796. break
  7797. fi
  7798. rm -f core conftest.err conftest.$ac_objext
  7799. CC="$CC -n32"
  7800. if ac_fn_cxx_try_compile "$LINENO"; then :
  7801. ac_cv_sys_largefile_CC=' -n32'; break
  7802. fi
  7803. rm -f core conftest.err conftest.$ac_objext
  7804. break
  7805. done
  7806. CC=$ac_save_CC
  7807. rm -f conftest.$ac_ext
  7808. fi
  7809. fi
  7810. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
  7811. $as_echo "$ac_cv_sys_largefile_CC" >&6; }
  7812. if test "$ac_cv_sys_largefile_CC" != no; then
  7813. CC=$CC$ac_cv_sys_largefile_CC
  7814. fi
  7815. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
  7816. $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
  7817. if test "${ac_cv_sys_file_offset_bits+set}" = set; then :
  7818. $as_echo_n "(cached) " >&6
  7819. else
  7820. while :; do
  7821. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7822. /* end confdefs.h. */
  7823. #include <sys/types.h>
  7824. /* Check that off_t can represent 2**63 - 1 correctly.
  7825. We can't simply define LARGE_OFF_T to be 9223372036854775807,
  7826. since some C++ compilers masquerading as C compilers
  7827. incorrectly reject 9223372036854775807. */
  7828. #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
  7829. int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
  7830. && LARGE_OFF_T % 2147483647 == 1)
  7831. ? 1 : -1];
  7832. int
  7833. main ()
  7834. {
  7835. ;
  7836. return 0;
  7837. }
  7838. _ACEOF
  7839. if ac_fn_cxx_try_compile "$LINENO"; then :
  7840. ac_cv_sys_file_offset_bits=no; break
  7841. fi
  7842. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  7843. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7844. /* end confdefs.h. */
  7845. #define _FILE_OFFSET_BITS 64
  7846. #include <sys/types.h>
  7847. /* Check that off_t can represent 2**63 - 1 correctly.
  7848. We can't simply define LARGE_OFF_T to be 9223372036854775807,
  7849. since some C++ compilers masquerading as C compilers
  7850. incorrectly reject 9223372036854775807. */
  7851. #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
  7852. int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
  7853. && LARGE_OFF_T % 2147483647 == 1)
  7854. ? 1 : -1];
  7855. int
  7856. main ()
  7857. {
  7858. ;
  7859. return 0;
  7860. }
  7861. _ACEOF
  7862. if ac_fn_cxx_try_compile "$LINENO"; then :
  7863. ac_cv_sys_file_offset_bits=64; break
  7864. fi
  7865. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  7866. ac_cv_sys_file_offset_bits=unknown
  7867. break
  7868. done
  7869. fi
  7870. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
  7871. $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
  7872. case $ac_cv_sys_file_offset_bits in #(
  7873. no | unknown) ;;
  7874. *)
  7875. cat >>confdefs.h <<_ACEOF
  7876. #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
  7877. _ACEOF
  7878. ;;
  7879. esac
  7880. rm -rf conftest*
  7881. if test $ac_cv_sys_file_offset_bits = unknown; then
  7882. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
  7883. $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
  7884. if test "${ac_cv_sys_large_files+set}" = set; then :
  7885. $as_echo_n "(cached) " >&6
  7886. else
  7887. while :; do
  7888. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7889. /* end confdefs.h. */
  7890. #include <sys/types.h>
  7891. /* Check that off_t can represent 2**63 - 1 correctly.
  7892. We can't simply define LARGE_OFF_T to be 9223372036854775807,
  7893. since some C++ compilers masquerading as C compilers
  7894. incorrectly reject 9223372036854775807. */
  7895. #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
  7896. int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
  7897. && LARGE_OFF_T % 2147483647 == 1)
  7898. ? 1 : -1];
  7899. int
  7900. main ()
  7901. {
  7902. ;
  7903. return 0;
  7904. }
  7905. _ACEOF
  7906. if ac_fn_cxx_try_compile "$LINENO"; then :
  7907. ac_cv_sys_large_files=no; break
  7908. fi
  7909. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  7910. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7911. /* end confdefs.h. */
  7912. #define _LARGE_FILES 1
  7913. #include <sys/types.h>
  7914. /* Check that off_t can represent 2**63 - 1 correctly.
  7915. We can't simply define LARGE_OFF_T to be 9223372036854775807,
  7916. since some C++ compilers masquerading as C compilers
  7917. incorrectly reject 9223372036854775807. */
  7918. #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
  7919. int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
  7920. && LARGE_OFF_T % 2147483647 == 1)
  7921. ? 1 : -1];
  7922. int
  7923. main ()
  7924. {
  7925. ;
  7926. return 0;
  7927. }
  7928. _ACEOF
  7929. if ac_fn_cxx_try_compile "$LINENO"; then :
  7930. ac_cv_sys_large_files=1; break
  7931. fi
  7932. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  7933. ac_cv_sys_large_files=unknown
  7934. break
  7935. done
  7936. fi
  7937. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
  7938. $as_echo "$ac_cv_sys_large_files" >&6; }
  7939. case $ac_cv_sys_large_files in #(
  7940. no | unknown) ;;
  7941. *)
  7942. cat >>confdefs.h <<_ACEOF
  7943. #define _LARGE_FILES $ac_cv_sys_large_files
  7944. _ACEOF
  7945. ;;
  7946. esac
  7947. rm -rf conftest*
  7948. fi
  7949. fi
  7950. # Checks for library functions.
  7951. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5
  7952. $as_echo_n "checking whether NLS is requested... " >&6; }
  7953. # Check whether --enable-nls was given.
  7954. if test "${enable_nls+set}" = set; then :
  7955. enableval=$enable_nls; USE_NLS=$enableval
  7956. else
  7957. USE_NLS=yes
  7958. fi
  7959. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5
  7960. $as_echo "$USE_NLS" >&6; }
  7961. GETTEXT_MACRO_VERSION=0.17
  7962. # Prepare PATH_SEPARATOR.
  7963. # The user is always right.
  7964. if test "${PATH_SEPARATOR+set}" != set; then
  7965. echo "#! /bin/sh" >conf$$.sh
  7966. echo "exit 0" >>conf$$.sh
  7967. chmod +x conf$$.sh
  7968. if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
  7969. PATH_SEPARATOR=';'
  7970. else
  7971. PATH_SEPARATOR=:
  7972. fi
  7973. rm -f conf$$.sh
  7974. fi
  7975. # Find out how to test for executable files. Don't use a zero-byte file,
  7976. # as systems may use methods other than mode bits to determine executability.
  7977. cat >conf$$.file <<_ASEOF
  7978. #! /bin/sh
  7979. exit 0
  7980. _ASEOF
  7981. chmod +x conf$$.file
  7982. if test -x conf$$.file >/dev/null 2>&1; then
  7983. ac_executable_p="test -x"
  7984. else
  7985. ac_executable_p="test -f"
  7986. fi
  7987. rm -f conf$$.file
  7988. # Extract the first word of "msgfmt", so it can be a program name with args.
  7989. set dummy msgfmt; ac_word=$2
  7990. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  7991. $as_echo_n "checking for $ac_word... " >&6; }
  7992. if test "${ac_cv_path_MSGFMT+set}" = set; then :
  7993. $as_echo_n "(cached) " >&6
  7994. else
  7995. case "$MSGFMT" in
  7996. [\\/]* | ?:[\\/]*)
  7997. ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
  7998. ;;
  7999. *)
  8000. ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
  8001. for ac_dir in $PATH; do
  8002. IFS="$ac_save_IFS"
  8003. test -z "$ac_dir" && ac_dir=.
  8004. for ac_exec_ext in '' $ac_executable_extensions; do
  8005. if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
  8006. echo "$as_me: trying $ac_dir/$ac_word..." >&5
  8007. if $ac_dir/$ac_word --statistics /dev/null >&5 2>&1 &&
  8008. (if $ac_dir/$ac_word --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
  8009. ac_cv_path_MSGFMT="$ac_dir/$ac_word$ac_exec_ext"
  8010. break 2
  8011. fi
  8012. fi
  8013. done
  8014. done
  8015. IFS="$ac_save_IFS"
  8016. test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT=":"
  8017. ;;
  8018. esac
  8019. fi
  8020. MSGFMT="$ac_cv_path_MSGFMT"
  8021. if test "$MSGFMT" != ":"; then
  8022. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGFMT" >&5
  8023. $as_echo "$MSGFMT" >&6; }
  8024. else
  8025. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  8026. $as_echo "no" >&6; }
  8027. fi
  8028. # Extract the first word of "gmsgfmt", so it can be a program name with args.
  8029. set dummy gmsgfmt; ac_word=$2
  8030. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  8031. $as_echo_n "checking for $ac_word... " >&6; }
  8032. if test "${ac_cv_path_GMSGFMT+set}" = set; then :
  8033. $as_echo_n "(cached) " >&6
  8034. else
  8035. case $GMSGFMT in
  8036. [\\/]* | ?:[\\/]*)
  8037. ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
  8038. ;;
  8039. *)
  8040. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  8041. for as_dir in $PATH
  8042. do
  8043. IFS=$as_save_IFS
  8044. test -z "$as_dir" && as_dir=.
  8045. for ac_exec_ext in '' $ac_executable_extensions; do
  8046. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  8047. ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
  8048. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  8049. break 2
  8050. fi
  8051. done
  8052. done
  8053. IFS=$as_save_IFS
  8054. test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
  8055. ;;
  8056. esac
  8057. fi
  8058. GMSGFMT=$ac_cv_path_GMSGFMT
  8059. if test -n "$GMSGFMT"; then
  8060. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GMSGFMT" >&5
  8061. $as_echo "$GMSGFMT" >&6; }
  8062. else
  8063. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  8064. $as_echo "no" >&6; }
  8065. fi
  8066. case `$MSGFMT --version | sed 1q | sed -e 's,^[^0-9]*,,'` in
  8067. '' | 0.[0-9] | 0.[0-9].* | 0.1[0-4] | 0.1[0-4].*) MSGFMT_015=: ;;
  8068. *) MSGFMT_015=$MSGFMT ;;
  8069. esac
  8070. case `$GMSGFMT --version | sed 1q | sed -e 's,^[^0-9]*,,'` in
  8071. '' | 0.[0-9] | 0.[0-9].* | 0.1[0-4] | 0.1[0-4].*) GMSGFMT_015=: ;;
  8072. *) GMSGFMT_015=$GMSGFMT ;;
  8073. esac
  8074. # Prepare PATH_SEPARATOR.
  8075. # The user is always right.
  8076. if test "${PATH_SEPARATOR+set}" != set; then
  8077. echo "#! /bin/sh" >conf$$.sh
  8078. echo "exit 0" >>conf$$.sh
  8079. chmod +x conf$$.sh
  8080. if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
  8081. PATH_SEPARATOR=';'
  8082. else
  8083. PATH_SEPARATOR=:
  8084. fi
  8085. rm -f conf$$.sh
  8086. fi
  8087. # Find out how to test for executable files. Don't use a zero-byte file,
  8088. # as systems may use methods other than mode bits to determine executability.
  8089. cat >conf$$.file <<_ASEOF
  8090. #! /bin/sh
  8091. exit 0
  8092. _ASEOF
  8093. chmod +x conf$$.file
  8094. if test -x conf$$.file >/dev/null 2>&1; then
  8095. ac_executable_p="test -x"
  8096. else
  8097. ac_executable_p="test -f"
  8098. fi
  8099. rm -f conf$$.file
  8100. # Extract the first word of "xgettext", so it can be a program name with args.
  8101. set dummy xgettext; ac_word=$2
  8102. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  8103. $as_echo_n "checking for $ac_word... " >&6; }
  8104. if test "${ac_cv_path_XGETTEXT+set}" = set; then :
  8105. $as_echo_n "(cached) " >&6
  8106. else
  8107. case "$XGETTEXT" in
  8108. [\\/]* | ?:[\\/]*)
  8109. ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
  8110. ;;
  8111. *)
  8112. ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
  8113. for ac_dir in $PATH; do
  8114. IFS="$ac_save_IFS"
  8115. test -z "$ac_dir" && ac_dir=.
  8116. for ac_exec_ext in '' $ac_executable_extensions; do
  8117. if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
  8118. echo "$as_me: trying $ac_dir/$ac_word..." >&5
  8119. if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >&5 2>&1 &&
  8120. (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
  8121. ac_cv_path_XGETTEXT="$ac_dir/$ac_word$ac_exec_ext"
  8122. break 2
  8123. fi
  8124. fi
  8125. done
  8126. done
  8127. IFS="$ac_save_IFS"
  8128. test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
  8129. ;;
  8130. esac
  8131. fi
  8132. XGETTEXT="$ac_cv_path_XGETTEXT"
  8133. if test "$XGETTEXT" != ":"; then
  8134. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XGETTEXT" >&5
  8135. $as_echo "$XGETTEXT" >&6; }
  8136. else
  8137. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  8138. $as_echo "no" >&6; }
  8139. fi
  8140. rm -f messages.po
  8141. case `$XGETTEXT --version | sed 1q | sed -e 's,^[^0-9]*,,'` in
  8142. '' | 0.[0-9] | 0.[0-9].* | 0.1[0-4] | 0.1[0-4].*) XGETTEXT_015=: ;;
  8143. *) XGETTEXT_015=$XGETTEXT ;;
  8144. esac
  8145. # Prepare PATH_SEPARATOR.
  8146. # The user is always right.
  8147. if test "${PATH_SEPARATOR+set}" != set; then
  8148. echo "#! /bin/sh" >conf$$.sh
  8149. echo "exit 0" >>conf$$.sh
  8150. chmod +x conf$$.sh
  8151. if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
  8152. PATH_SEPARATOR=';'
  8153. else
  8154. PATH_SEPARATOR=:
  8155. fi
  8156. rm -f conf$$.sh
  8157. fi
  8158. # Find out how to test for executable files. Don't use a zero-byte file,
  8159. # as systems may use methods other than mode bits to determine executability.
  8160. cat >conf$$.file <<_ASEOF
  8161. #! /bin/sh
  8162. exit 0
  8163. _ASEOF
  8164. chmod +x conf$$.file
  8165. if test -x conf$$.file >/dev/null 2>&1; then
  8166. ac_executable_p="test -x"
  8167. else
  8168. ac_executable_p="test -f"
  8169. fi
  8170. rm -f conf$$.file
  8171. # Extract the first word of "msgmerge", so it can be a program name with args.
  8172. set dummy msgmerge; ac_word=$2
  8173. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  8174. $as_echo_n "checking for $ac_word... " >&6; }
  8175. if test "${ac_cv_path_MSGMERGE+set}" = set; then :
  8176. $as_echo_n "(cached) " >&6
  8177. else
  8178. case "$MSGMERGE" in
  8179. [\\/]* | ?:[\\/]*)
  8180. ac_cv_path_MSGMERGE="$MSGMERGE" # Let the user override the test with a path.
  8181. ;;
  8182. *)
  8183. ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
  8184. for ac_dir in $PATH; do
  8185. IFS="$ac_save_IFS"
  8186. test -z "$ac_dir" && ac_dir=.
  8187. for ac_exec_ext in '' $ac_executable_extensions; do
  8188. if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
  8189. echo "$as_me: trying $ac_dir/$ac_word..." >&5
  8190. if $ac_dir/$ac_word --update -q /dev/null /dev/null >&5 2>&1; then
  8191. ac_cv_path_MSGMERGE="$ac_dir/$ac_word$ac_exec_ext"
  8192. break 2
  8193. fi
  8194. fi
  8195. done
  8196. done
  8197. IFS="$ac_save_IFS"
  8198. test -z "$ac_cv_path_MSGMERGE" && ac_cv_path_MSGMERGE=":"
  8199. ;;
  8200. esac
  8201. fi
  8202. MSGMERGE="$ac_cv_path_MSGMERGE"
  8203. if test "$MSGMERGE" != ":"; then
  8204. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGMERGE" >&5
  8205. $as_echo "$MSGMERGE" >&6; }
  8206. else
  8207. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  8208. $as_echo "no" >&6; }
  8209. fi
  8210. test -n "$localedir" || localedir='${datadir}/locale'
  8211. test -n "${XGETTEXT_EXTRA_OPTIONS+set}" || XGETTEXT_EXTRA_OPTIONS=
  8212. ac_config_commands="$ac_config_commands po-directories"
  8213. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C Library 2 or newer" >&5
  8214. $as_echo_n "checking whether we are using the GNU C Library 2 or newer... " >&6; }
  8215. if test "${ac_cv_gnu_library_2+set}" = set; then :
  8216. $as_echo_n "(cached) " >&6
  8217. else
  8218. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  8219. /* end confdefs.h. */
  8220. #include <features.h>
  8221. #ifdef __GNU_LIBRARY__
  8222. #if (__GLIBC__ >= 2)
  8223. Lucky GNU user
  8224. #endif
  8225. #endif
  8226. _ACEOF
  8227. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  8228. $EGREP "Lucky GNU user" >/dev/null 2>&1; then :
  8229. ac_cv_gnu_library_2=yes
  8230. else
  8231. ac_cv_gnu_library_2=no
  8232. fi
  8233. rm -f conftest*
  8234. fi
  8235. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_gnu_library_2" >&5
  8236. $as_echo "$ac_cv_gnu_library_2" >&6; }
  8237. GLIBC2="$ac_cv_gnu_library_2"
  8238. CFLAG_VISIBILITY=
  8239. HAVE_VISIBILITY=0
  8240. if test -n "$GCC"; then
  8241. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for simple visibility declarations" >&5
  8242. $as_echo_n "checking for simple visibility declarations... " >&6; }
  8243. if test "${gl_cv_cc_visibility+set}" = set; then :
  8244. $as_echo_n "(cached) " >&6
  8245. else
  8246. gl_save_CFLAGS="$CFLAGS"
  8247. CFLAGS="$CFLAGS -fvisibility=hidden"
  8248. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  8249. /* end confdefs.h. */
  8250. extern __attribute__((__visibility__("hidden"))) int hiddenvar;
  8251. extern __attribute__((__visibility__("default"))) int exportedvar;
  8252. extern __attribute__((__visibility__("hidden"))) int hiddenfunc (void);
  8253. extern __attribute__((__visibility__("default"))) int exportedfunc (void);
  8254. int
  8255. main ()
  8256. {
  8257. ;
  8258. return 0;
  8259. }
  8260. _ACEOF
  8261. if ac_fn_cxx_try_compile "$LINENO"; then :
  8262. gl_cv_cc_visibility=yes
  8263. else
  8264. gl_cv_cc_visibility=no
  8265. fi
  8266. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  8267. CFLAGS="$gl_save_CFLAGS"
  8268. fi
  8269. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_cc_visibility" >&5
  8270. $as_echo "$gl_cv_cc_visibility" >&6; }
  8271. if test $gl_cv_cc_visibility = yes; then
  8272. CFLAG_VISIBILITY="-fvisibility=hidden"
  8273. HAVE_VISIBILITY=1
  8274. fi
  8275. fi
  8276. cat >>confdefs.h <<_ACEOF
  8277. #define HAVE_VISIBILITY $HAVE_VISIBILITY
  8278. _ACEOF
  8279. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for stdint.h" >&5
  8280. $as_echo_n "checking for stdint.h... " >&6; }
  8281. if test "${gl_cv_header_stdint_h+set}" = set; then :
  8282. $as_echo_n "(cached) " >&6
  8283. else
  8284. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  8285. /* end confdefs.h. */
  8286. #include <sys/types.h>
  8287. #include <stdint.h>
  8288. int
  8289. main ()
  8290. {
  8291. uintmax_t i = (uintmax_t) -1; return !i;
  8292. ;
  8293. return 0;
  8294. }
  8295. _ACEOF
  8296. if ac_fn_cxx_try_compile "$LINENO"; then :
  8297. gl_cv_header_stdint_h=yes
  8298. else
  8299. gl_cv_header_stdint_h=no
  8300. fi
  8301. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  8302. fi
  8303. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_stdint_h" >&5
  8304. $as_echo "$gl_cv_header_stdint_h" >&6; }
  8305. if test $gl_cv_header_stdint_h = yes; then
  8306. cat >>confdefs.h <<_ACEOF
  8307. #define HAVE_STDINT_H_WITH_UINTMAX 1
  8308. _ACEOF
  8309. fi
  8310. for ac_header in $ac_header_list
  8311. do :
  8312. as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
  8313. ac_fn_cxx_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
  8314. "
  8315. eval as_val=\$$as_ac_Header
  8316. if test "x$as_val" = x""yes; then :
  8317. cat >>confdefs.h <<_ACEOF
  8318. #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
  8319. _ACEOF
  8320. fi
  8321. done
  8322. for ac_func in getpagesize
  8323. do :
  8324. ac_fn_cxx_check_func "$LINENO" "getpagesize" "ac_cv_func_getpagesize"
  8325. if test "x$ac_cv_func_getpagesize" = x""yes; then :
  8326. cat >>confdefs.h <<_ACEOF
  8327. #define HAVE_GETPAGESIZE 1
  8328. _ACEOF
  8329. fi
  8330. done
  8331. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mmap" >&5
  8332. $as_echo_n "checking for working mmap... " >&6; }
  8333. if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then :
  8334. $as_echo_n "(cached) " >&6
  8335. else
  8336. if test "$cross_compiling" = yes; then :
  8337. ac_cv_func_mmap_fixed_mapped=no
  8338. else
  8339. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  8340. /* end confdefs.h. */
  8341. $ac_includes_default
  8342. /* malloc might have been renamed as rpl_malloc. */
  8343. #undef malloc
  8344. /* Thanks to Mike Haertel and Jim Avera for this test.
  8345. Here is a matrix of mmap possibilities:
  8346. mmap private not fixed
  8347. mmap private fixed at somewhere currently unmapped
  8348. mmap private fixed at somewhere already mapped
  8349. mmap shared not fixed
  8350. mmap shared fixed at somewhere currently unmapped
  8351. mmap shared fixed at somewhere already mapped
  8352. For private mappings, we should verify that changes cannot be read()
  8353. back from the file, nor mmap's back from the file at a different
  8354. address. (There have been systems where private was not correctly
  8355. implemented like the infamous i386 svr4.0, and systems where the
  8356. VM page cache was not coherent with the file system buffer cache
  8357. like early versions of FreeBSD and possibly contemporary NetBSD.)
  8358. For shared mappings, we should conversely verify that changes get
  8359. propagated back to all the places they're supposed to be.
  8360. Grep wants private fixed already mapped.
  8361. The main things grep needs to know about mmap are:
  8362. * does it exist and is it safe to write into the mmap'd area
  8363. * how to use it (BSD variants) */
  8364. #include <fcntl.h>
  8365. #include <sys/mman.h>
  8366. #if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
  8367. char *malloc ();
  8368. #endif
  8369. /* This mess was copied from the GNU getpagesize.h. */
  8370. #ifndef HAVE_GETPAGESIZE
  8371. # ifdef _SC_PAGESIZE
  8372. # define getpagesize() sysconf(_SC_PAGESIZE)
  8373. # else /* no _SC_PAGESIZE */
  8374. # ifdef HAVE_SYS_PARAM_H
  8375. # include <sys/param.h>
  8376. # ifdef EXEC_PAGESIZE
  8377. # define getpagesize() EXEC_PAGESIZE
  8378. # else /* no EXEC_PAGESIZE */
  8379. # ifdef NBPG
  8380. # define getpagesize() NBPG * CLSIZE
  8381. # ifndef CLSIZE
  8382. # define CLSIZE 1
  8383. # endif /* no CLSIZE */
  8384. # else /* no NBPG */
  8385. # ifdef NBPC
  8386. # define getpagesize() NBPC
  8387. # else /* no NBPC */
  8388. # ifdef PAGESIZE
  8389. # define getpagesize() PAGESIZE
  8390. # endif /* PAGESIZE */
  8391. # endif /* no NBPC */
  8392. # endif /* no NBPG */
  8393. # endif /* no EXEC_PAGESIZE */
  8394. # else /* no HAVE_SYS_PARAM_H */
  8395. # define getpagesize() 8192 /* punt totally */
  8396. # endif /* no HAVE_SYS_PARAM_H */
  8397. # endif /* no _SC_PAGESIZE */
  8398. #endif /* no HAVE_GETPAGESIZE */
  8399. int
  8400. main ()
  8401. {
  8402. char *data, *data2, *data3;
  8403. const char *cdata2;
  8404. int i, pagesize;
  8405. int fd, fd2;
  8406. pagesize = getpagesize ();
  8407. /* First, make a file with some known garbage in it. */
  8408. data = (char *) malloc (pagesize);
  8409. if (!data)
  8410. return 1;
  8411. for (i = 0; i < pagesize; ++i)
  8412. *(data + i) = rand ();
  8413. umask (0);
  8414. fd = creat ("conftest.mmap", 0600);
  8415. if (fd < 0)
  8416. return 2;
  8417. if (write (fd, data, pagesize) != pagesize)
  8418. return 3;
  8419. close (fd);
  8420. /* Next, check that the tail of a page is zero-filled. File must have
  8421. non-zero length, otherwise we risk SIGBUS for entire page. */
  8422. fd2 = open ("conftest.txt", O_RDWR | O_CREAT | O_TRUNC, 0600);
  8423. if (fd2 < 0)
  8424. return 4;
  8425. cdata2 = "";
  8426. if (write (fd2, cdata2, 1) != 1)
  8427. return 5;
  8428. data2 = (char *) mmap (0, pagesize, PROT_READ | PROT_WRITE, MAP_SHARED, fd2, 0L);
  8429. if (data2 == MAP_FAILED)
  8430. return 6;
  8431. for (i = 0; i < pagesize; ++i)
  8432. if (*(data2 + i))
  8433. return 7;
  8434. close (fd2);
  8435. if (munmap (data2, pagesize))
  8436. return 8;
  8437. /* Next, try to mmap the file at a fixed address which already has
  8438. something else allocated at it. If we can, also make sure that
  8439. we see the same garbage. */
  8440. fd = open ("conftest.mmap", O_RDWR);
  8441. if (fd < 0)
  8442. return 9;
  8443. if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
  8444. MAP_PRIVATE | MAP_FIXED, fd, 0L))
  8445. return 10;
  8446. for (i = 0; i < pagesize; ++i)
  8447. if (*(data + i) != *(data2 + i))
  8448. return 11;
  8449. /* Finally, make sure that changes to the mapped area do not
  8450. percolate back to the file as seen by read(). (This is a bug on
  8451. some variants of i386 svr4.0.) */
  8452. for (i = 0; i < pagesize; ++i)
  8453. *(data2 + i) = *(data2 + i) + 1;
  8454. data3 = (char *) malloc (pagesize);
  8455. if (!data3)
  8456. return 12;
  8457. if (read (fd, data3, pagesize) != pagesize)
  8458. return 13;
  8459. for (i = 0; i < pagesize; ++i)
  8460. if (*(data + i) != *(data3 + i))
  8461. return 14;
  8462. close (fd);
  8463. return 0;
  8464. }
  8465. _ACEOF
  8466. if ac_fn_cxx_try_run "$LINENO"; then :
  8467. ac_cv_func_mmap_fixed_mapped=yes
  8468. else
  8469. ac_cv_func_mmap_fixed_mapped=no
  8470. fi
  8471. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  8472. conftest.$ac_objext conftest.beam conftest.$ac_ext
  8473. fi
  8474. fi
  8475. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_mmap_fixed_mapped" >&5
  8476. $as_echo "$ac_cv_func_mmap_fixed_mapped" >&6; }
  8477. if test $ac_cv_func_mmap_fixed_mapped = yes; then
  8478. $as_echo "#define HAVE_MMAP 1" >>confdefs.h
  8479. fi
  8480. rm -f conftest.mmap conftest.txt
  8481. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether integer division by zero raises SIGFPE" >&5
  8482. $as_echo_n "checking whether integer division by zero raises SIGFPE... " >&6; }
  8483. if test "${gt_cv_int_divbyzero_sigfpe+set}" = set; then :
  8484. $as_echo_n "(cached) " >&6
  8485. else
  8486. gt_cv_int_divbyzero_sigfpe=
  8487. case "$host_os" in
  8488. macos* | darwin[6-9]* | darwin[1-9][0-9]*)
  8489. # On MacOS X 10.2 or newer, just assume the same as when cross-
  8490. # compiling. If we were to perform the real test, 1 Crash Report
  8491. # dialog window would pop up.
  8492. case "$host_cpu" in
  8493. i[34567]86 | x86_64)
  8494. gt_cv_int_divbyzero_sigfpe="guessing yes" ;;
  8495. esac
  8496. ;;
  8497. esac
  8498. if test -z "$gt_cv_int_divbyzero_sigfpe"; then
  8499. if test "$cross_compiling" = yes; then :
  8500. # Guess based on the CPU.
  8501. case "$host_cpu" in
  8502. alpha* | i[34567]86 | x86_64 | m68k | s390*)
  8503. gt_cv_int_divbyzero_sigfpe="guessing yes";;
  8504. *)
  8505. gt_cv_int_divbyzero_sigfpe="guessing no";;
  8506. esac
  8507. else
  8508. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  8509. /* end confdefs.h. */
  8510. #include <stdlib.h>
  8511. #include <signal.h>
  8512. static void
  8513. sigfpe_handler (int sig)
  8514. {
  8515. /* Exit with code 0 if SIGFPE, with code 1 if any other signal. */
  8516. exit (sig != SIGFPE);
  8517. }
  8518. int x = 1;
  8519. int y = 0;
  8520. int z;
  8521. int nan;
  8522. int main ()
  8523. {
  8524. signal (SIGFPE, sigfpe_handler);
  8525. /* IRIX and AIX (when "xlc -qcheck" is used) yield signal SIGTRAP. */
  8526. #if (defined (__sgi) || defined (_AIX)) && defined (SIGTRAP)
  8527. signal (SIGTRAP, sigfpe_handler);
  8528. #endif
  8529. /* Linux/SPARC yields signal SIGILL. */
  8530. #if defined (__sparc__) && defined (__linux__)
  8531. signal (SIGILL, sigfpe_handler);
  8532. #endif
  8533. z = x / y;
  8534. nan = y / y;
  8535. exit (1);
  8536. }
  8537. _ACEOF
  8538. if ac_fn_cxx_try_run "$LINENO"; then :
  8539. gt_cv_int_divbyzero_sigfpe=yes
  8540. else
  8541. gt_cv_int_divbyzero_sigfpe=no
  8542. fi
  8543. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  8544. conftest.$ac_objext conftest.beam conftest.$ac_ext
  8545. fi
  8546. fi
  8547. fi
  8548. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_int_divbyzero_sigfpe" >&5
  8549. $as_echo "$gt_cv_int_divbyzero_sigfpe" >&6; }
  8550. case "$gt_cv_int_divbyzero_sigfpe" in
  8551. *yes) value=1;;
  8552. *) value=0;;
  8553. esac
  8554. cat >>confdefs.h <<_ACEOF
  8555. #define INTDIV0_RAISES_SIGFPE $value
  8556. _ACEOF
  8557. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inttypes.h" >&5
  8558. $as_echo_n "checking for inttypes.h... " >&6; }
  8559. if test "${gl_cv_header_inttypes_h+set}" = set; then :
  8560. $as_echo_n "(cached) " >&6
  8561. else
  8562. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  8563. /* end confdefs.h. */
  8564. #include <sys/types.h>
  8565. #include <inttypes.h>
  8566. int
  8567. main ()
  8568. {
  8569. uintmax_t i = (uintmax_t) -1; return !i;
  8570. ;
  8571. return 0;
  8572. }
  8573. _ACEOF
  8574. if ac_fn_cxx_try_compile "$LINENO"; then :
  8575. gl_cv_header_inttypes_h=yes
  8576. else
  8577. gl_cv_header_inttypes_h=no
  8578. fi
  8579. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  8580. fi
  8581. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_inttypes_h" >&5
  8582. $as_echo "$gl_cv_header_inttypes_h" >&6; }
  8583. if test $gl_cv_header_inttypes_h = yes; then
  8584. cat >>confdefs.h <<_ACEOF
  8585. #define HAVE_INTTYPES_H_WITH_UINTMAX 1
  8586. _ACEOF
  8587. fi
  8588. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned long long int" >&5
  8589. $as_echo_n "checking for unsigned long long int... " >&6; }
  8590. if test "${ac_cv_type_unsigned_long_long_int+set}" = set; then :
  8591. $as_echo_n "(cached) " >&6
  8592. else
  8593. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  8594. /* end confdefs.h. */
  8595. /* Test preprocessor. */
  8596. #if ! (-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
  8597. error in preprocessor;
  8598. #endif
  8599. #if ! (18446744073709551615ULL <= -1ull)
  8600. error in preprocessor;
  8601. #endif
  8602. /* Test literals. */
  8603. long long int ll = 9223372036854775807ll;
  8604. long long int nll = -9223372036854775807LL;
  8605. unsigned long long int ull = 18446744073709551615ULL;
  8606. /* Test constant expressions. */
  8607. typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
  8608. ? 1 : -1)];
  8609. typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1
  8610. ? 1 : -1)];
  8611. int i = 63;
  8612. int
  8613. main ()
  8614. {
  8615. /* Test availability of runtime routines for shift and division. */
  8616. long long int llmax = 9223372036854775807ll;
  8617. unsigned long long int ullmax = 18446744073709551615ull;
  8618. return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i)
  8619. | (llmax / ll) | (llmax % ll)
  8620. | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i)
  8621. | (ullmax / ull) | (ullmax % ull));
  8622. ;
  8623. return 0;
  8624. }
  8625. _ACEOF
  8626. if ac_fn_cxx_try_link "$LINENO"; then :
  8627. ac_cv_type_unsigned_long_long_int=yes
  8628. else
  8629. ac_cv_type_unsigned_long_long_int=no
  8630. fi
  8631. rm -f core conftest.err conftest.$ac_objext \
  8632. conftest$ac_exeext conftest.$ac_ext
  8633. fi
  8634. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_unsigned_long_long_int" >&5
  8635. $as_echo "$ac_cv_type_unsigned_long_long_int" >&6; }
  8636. if test $ac_cv_type_unsigned_long_long_int = yes; then
  8637. $as_echo "#define HAVE_UNSIGNED_LONG_LONG_INT 1" >>confdefs.h
  8638. fi
  8639. if test $gl_cv_header_inttypes_h = no && test $gl_cv_header_stdint_h = no; then
  8640. test $ac_cv_type_unsigned_long_long_int = yes \
  8641. && ac_type='unsigned long long' \
  8642. || ac_type='unsigned long'
  8643. cat >>confdefs.h <<_ACEOF
  8644. #define uintmax_t $ac_type
  8645. _ACEOF
  8646. else
  8647. $as_echo "#define HAVE_UINTMAX_T 1" >>confdefs.h
  8648. fi
  8649. for ac_header in inttypes.h
  8650. do :
  8651. ac_fn_cxx_check_header_mongrel "$LINENO" "inttypes.h" "ac_cv_header_inttypes_h" "$ac_includes_default"
  8652. if test "x$ac_cv_header_inttypes_h" = x""yes; then :
  8653. cat >>confdefs.h <<_ACEOF
  8654. #define HAVE_INTTYPES_H 1
  8655. _ACEOF
  8656. fi
  8657. done
  8658. if test $ac_cv_header_inttypes_h = yes; then
  8659. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the inttypes.h PRIxNN macros are broken" >&5
  8660. $as_echo_n "checking whether the inttypes.h PRIxNN macros are broken... " >&6; }
  8661. if test "${gt_cv_inttypes_pri_broken+set}" = set; then :
  8662. $as_echo_n "(cached) " >&6
  8663. else
  8664. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  8665. /* end confdefs.h. */
  8666. #include <inttypes.h>
  8667. #ifdef PRId32
  8668. char *p = PRId32;
  8669. #endif
  8670. int
  8671. main ()
  8672. {
  8673. ;
  8674. return 0;
  8675. }
  8676. _ACEOF
  8677. if ac_fn_cxx_try_compile "$LINENO"; then :
  8678. gt_cv_inttypes_pri_broken=no
  8679. else
  8680. gt_cv_inttypes_pri_broken=yes
  8681. fi
  8682. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  8683. fi
  8684. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_inttypes_pri_broken" >&5
  8685. $as_echo "$gt_cv_inttypes_pri_broken" >&6; }
  8686. fi
  8687. if test "$gt_cv_inttypes_pri_broken" = yes; then
  8688. cat >>confdefs.h <<_ACEOF
  8689. #define PRI_MACROS_BROKEN 1
  8690. _ACEOF
  8691. PRI_MACROS_BROKEN=1
  8692. else
  8693. PRI_MACROS_BROKEN=0
  8694. fi
  8695. # Check whether --enable-threads was given.
  8696. if test "${enable_threads+set}" = set; then :
  8697. enableval=$enable_threads; gl_use_threads=$enableval
  8698. else
  8699. case "$host_os" in
  8700. osf*) gl_use_threads=no ;;
  8701. *) gl_use_threads=yes ;;
  8702. esac
  8703. fi
  8704. if test "$gl_use_threads" = yes || test "$gl_use_threads" = posix; then
  8705. # For using <pthread.h>:
  8706. case "$host_os" in
  8707. osf*)
  8708. # On OSF/1, the compiler needs the flag -D_REENTRANT so that it
  8709. # groks <pthread.h>. cc also understands the flag -pthread, but
  8710. # we don't use it because 1. gcc-2.95 doesn't understand -pthread,
  8711. # 2. putting a flag into CPPFLAGS that has an effect on the linker
  8712. # causes the AC_TRY_LINK test below to succeed unexpectedly,
  8713. # leading to wrong values of LIBTHREAD and LTLIBTHREAD.
  8714. CPPFLAGS="$CPPFLAGS -D_REENTRANT"
  8715. ;;
  8716. esac
  8717. # Some systems optimize for single-threaded programs by default, and
  8718. # need special flags to disable these optimizations. For example, the
  8719. # definition of 'errno' in <errno.h>.
  8720. case "$host_os" in
  8721. aix* | freebsd*) CPPFLAGS="$CPPFLAGS -D_THREAD_SAFE" ;;
  8722. solaris*) CPPFLAGS="$CPPFLAGS -D_REENTRANT" ;;
  8723. esac
  8724. fi
  8725. if test "X$prefix" = "XNONE"; then
  8726. acl_final_prefix="$ac_default_prefix"
  8727. else
  8728. acl_final_prefix="$prefix"
  8729. fi
  8730. if test "X$exec_prefix" = "XNONE"; then
  8731. acl_final_exec_prefix='${prefix}'
  8732. else
  8733. acl_final_exec_prefix="$exec_prefix"
  8734. fi
  8735. acl_save_prefix="$prefix"
  8736. prefix="$acl_final_prefix"
  8737. eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
  8738. prefix="$acl_save_prefix"
  8739. # Check whether --with-gnu-ld was given.
  8740. if test "${with_gnu_ld+set}" = set; then :
  8741. withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
  8742. else
  8743. with_gnu_ld=no
  8744. fi
  8745. # Prepare PATH_SEPARATOR.
  8746. # The user is always right.
  8747. if test "${PATH_SEPARATOR+set}" != set; then
  8748. echo "#! /bin/sh" >conf$$.sh
  8749. echo "exit 0" >>conf$$.sh
  8750. chmod +x conf$$.sh
  8751. if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
  8752. PATH_SEPARATOR=';'
  8753. else
  8754. PATH_SEPARATOR=:
  8755. fi
  8756. rm -f conf$$.sh
  8757. fi
  8758. ac_prog=ld
  8759. if test "$GCC" = yes; then
  8760. # Check if gcc -print-prog-name=ld gives a path.
  8761. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by GCC" >&5
  8762. $as_echo_n "checking for ld used by GCC... " >&6; }
  8763. case $host in
  8764. *-*-mingw*)
  8765. # gcc leaves a trailing carriage return which upsets mingw
  8766. ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
  8767. *)
  8768. ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
  8769. esac
  8770. case $ac_prog in
  8771. # Accept absolute paths.
  8772. [\\/]* | [A-Za-z]:[\\/]*)
  8773. re_direlt='/[^/][^/]*/\.\./'
  8774. # Canonicalize the path of ld
  8775. ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
  8776. while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
  8777. ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
  8778. done
  8779. test -z "$LD" && LD="$ac_prog"
  8780. ;;
  8781. "")
  8782. # If it fails, then pretend we aren't using GCC.
  8783. ac_prog=ld
  8784. ;;
  8785. *)
  8786. # If it is relative, then search for the first ld in PATH.
  8787. with_gnu_ld=unknown
  8788. ;;
  8789. esac
  8790. elif test "$with_gnu_ld" = yes; then
  8791. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
  8792. $as_echo_n "checking for GNU ld... " >&6; }
  8793. else
  8794. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
  8795. $as_echo_n "checking for non-GNU ld... " >&6; }
  8796. fi
  8797. if test "${acl_cv_path_LD+set}" = set; then :
  8798. $as_echo_n "(cached) " >&6
  8799. else
  8800. if test -z "$LD"; then
  8801. IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
  8802. for ac_dir in $PATH; do
  8803. test -z "$ac_dir" && ac_dir=.
  8804. if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
  8805. acl_cv_path_LD="$ac_dir/$ac_prog"
  8806. # Check to see if the program is GNU ld. I'd rather use --version,
  8807. # but apparently some GNU ld's only accept -v.
  8808. # Break only if it was the GNU/non-GNU ld that we prefer.
  8809. case `"$acl_cv_path_LD" -v 2>&1 < /dev/null` in
  8810. *GNU* | *'with BFD'*)
  8811. test "$with_gnu_ld" != no && break ;;
  8812. *)
  8813. test "$with_gnu_ld" != yes && break ;;
  8814. esac
  8815. fi
  8816. done
  8817. IFS="$ac_save_ifs"
  8818. else
  8819. acl_cv_path_LD="$LD" # Let the user override the test with a path.
  8820. fi
  8821. fi
  8822. LD="$acl_cv_path_LD"
  8823. if test -n "$LD"; then
  8824. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
  8825. $as_echo "$LD" >&6; }
  8826. else
  8827. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  8828. $as_echo "no" >&6; }
  8829. fi
  8830. test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
  8831. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
  8832. $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
  8833. if test "${acl_cv_prog_gnu_ld+set}" = set; then :
  8834. $as_echo_n "(cached) " >&6
  8835. else
  8836. # I'd rather use --version here, but apparently some GNU ld's only accept -v.
  8837. case `$LD -v 2>&1 </dev/null` in
  8838. *GNU* | *'with BFD'*)
  8839. acl_cv_prog_gnu_ld=yes ;;
  8840. *)
  8841. acl_cv_prog_gnu_ld=no ;;
  8842. esac
  8843. fi
  8844. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_prog_gnu_ld" >&5
  8845. $as_echo "$acl_cv_prog_gnu_ld" >&6; }
  8846. with_gnu_ld=$acl_cv_prog_gnu_ld
  8847. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shared library run path origin" >&5
  8848. $as_echo_n "checking for shared library run path origin... " >&6; }
  8849. if test "${acl_cv_rpath+set}" = set; then :
  8850. $as_echo_n "(cached) " >&6
  8851. else
  8852. CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
  8853. ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
  8854. . ./conftest.sh
  8855. rm -f ./conftest.sh
  8856. acl_cv_rpath=done
  8857. fi
  8858. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_rpath" >&5
  8859. $as_echo "$acl_cv_rpath" >&6; }
  8860. wl="$acl_cv_wl"
  8861. acl_libext="$acl_cv_libext"
  8862. acl_shlibext="$acl_cv_shlibext"
  8863. acl_libname_spec="$acl_cv_libname_spec"
  8864. acl_library_names_spec="$acl_cv_library_names_spec"
  8865. acl_hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
  8866. acl_hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
  8867. acl_hardcode_direct="$acl_cv_hardcode_direct"
  8868. acl_hardcode_minus_L="$acl_cv_hardcode_minus_L"
  8869. # Check whether --enable-rpath was given.
  8870. if test "${enable_rpath+set}" = set; then :
  8871. enableval=$enable_rpath; :
  8872. else
  8873. enable_rpath=yes
  8874. fi
  8875. acl_libdirstem=lib
  8876. searchpath=`(LC_ALL=C $CC -print-search-dirs) 2>/dev/null | sed -n -e 's,^libraries: ,,p' | sed -e 's,^=,,'`
  8877. if test -n "$searchpath"; then
  8878. acl_save_IFS="${IFS= }"; IFS=":"
  8879. for searchdir in $searchpath; do
  8880. if test -d "$searchdir"; then
  8881. case "$searchdir" in
  8882. */lib64/ | */lib64 ) acl_libdirstem=lib64 ;;
  8883. *) searchdir=`cd "$searchdir" && pwd`
  8884. case "$searchdir" in
  8885. */lib64 ) acl_libdirstem=lib64 ;;
  8886. esac ;;
  8887. esac
  8888. fi
  8889. done
  8890. IFS="$acl_save_IFS"
  8891. fi
  8892. gl_threads_api=none
  8893. LIBTHREAD=
  8894. LTLIBTHREAD=
  8895. LIBMULTITHREAD=
  8896. LTLIBMULTITHREAD=
  8897. if test "$gl_use_threads" != no; then
  8898. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether imported symbols can be declared weak" >&5
  8899. $as_echo_n "checking whether imported symbols can be declared weak... " >&6; }
  8900. gl_have_weak=no
  8901. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  8902. /* end confdefs.h. */
  8903. extern void xyzzy ();
  8904. #pragma weak xyzzy
  8905. int
  8906. main ()
  8907. {
  8908. xyzzy();
  8909. ;
  8910. return 0;
  8911. }
  8912. _ACEOF
  8913. if ac_fn_cxx_try_link "$LINENO"; then :
  8914. gl_have_weak=yes
  8915. fi
  8916. rm -f core conftest.err conftest.$ac_objext \
  8917. conftest$ac_exeext conftest.$ac_ext
  8918. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_have_weak" >&5
  8919. $as_echo "$gl_have_weak" >&6; }
  8920. if test "$gl_use_threads" = yes || test "$gl_use_threads" = posix; then
  8921. # On OSF/1, the compiler needs the flag -pthread or -D_REENTRANT so that
  8922. # it groks <pthread.h>. It's added above, in gl_LOCK_EARLY_BODY.
  8923. ac_fn_cxx_check_header_mongrel "$LINENO" "pthread.h" "ac_cv_header_pthread_h" "$ac_includes_default"
  8924. if test "x$ac_cv_header_pthread_h" = x""yes; then :
  8925. gl_have_pthread_h=yes
  8926. else
  8927. gl_have_pthread_h=no
  8928. fi
  8929. if test "$gl_have_pthread_h" = yes; then
  8930. # Other possible tests:
  8931. # -lpthreads (FSU threads, PCthreads)
  8932. # -lgthreads
  8933. gl_have_pthread=
  8934. # Test whether both pthread_mutex_lock and pthread_mutexattr_init exist
  8935. # in libc. IRIX 6.5 has the first one in both libc and libpthread, but
  8936. # the second one only in libpthread, and lock.c needs it.
  8937. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  8938. /* end confdefs.h. */
  8939. #include <pthread.h>
  8940. int
  8941. main ()
  8942. {
  8943. pthread_mutex_lock((pthread_mutex_t*)0);
  8944. pthread_mutexattr_init((pthread_mutexattr_t*)0);
  8945. ;
  8946. return 0;
  8947. }
  8948. _ACEOF
  8949. if ac_fn_cxx_try_link "$LINENO"; then :
  8950. gl_have_pthread=yes
  8951. fi
  8952. rm -f core conftest.err conftest.$ac_objext \
  8953. conftest$ac_exeext conftest.$ac_ext
  8954. # Test for libpthread by looking for pthread_kill. (Not pthread_self,
  8955. # since it is defined as a macro on OSF/1.)
  8956. if test -n "$gl_have_pthread"; then
  8957. # The program links fine without libpthread. But it may actually
  8958. # need to link with libpthread in order to create multiple threads.
  8959. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_kill in -lpthread" >&5
  8960. $as_echo_n "checking for pthread_kill in -lpthread... " >&6; }
  8961. if test "${ac_cv_lib_pthread_pthread_kill+set}" = set; then :
  8962. $as_echo_n "(cached) " >&6
  8963. else
  8964. ac_check_lib_save_LIBS=$LIBS
  8965. LIBS="-lpthread $LIBS"
  8966. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  8967. /* end confdefs.h. */
  8968. /* Override any GCC internal prototype to avoid an error.
  8969. Use char because int might match the return type of a GCC
  8970. builtin and then its argument prototype would still apply. */
  8971. #ifdef __cplusplus
  8972. extern "C"
  8973. #endif
  8974. char pthread_kill ();
  8975. int
  8976. main ()
  8977. {
  8978. return pthread_kill ();
  8979. ;
  8980. return 0;
  8981. }
  8982. _ACEOF
  8983. if ac_fn_cxx_try_link "$LINENO"; then :
  8984. ac_cv_lib_pthread_pthread_kill=yes
  8985. else
  8986. ac_cv_lib_pthread_pthread_kill=no
  8987. fi
  8988. rm -f core conftest.err conftest.$ac_objext \
  8989. conftest$ac_exeext conftest.$ac_ext
  8990. LIBS=$ac_check_lib_save_LIBS
  8991. fi
  8992. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread_pthread_kill" >&5
  8993. $as_echo "$ac_cv_lib_pthread_pthread_kill" >&6; }
  8994. if test "x$ac_cv_lib_pthread_pthread_kill" = x""yes; then :
  8995. LIBMULTITHREAD=-lpthread LTLIBMULTITHREAD=-lpthread
  8996. # On Solaris and HP-UX, most pthread functions exist also in libc.
  8997. # Therefore pthread_in_use() needs to actually try to create a
  8998. # thread: pthread_create from libc will fail, whereas
  8999. # pthread_create will actually create a thread.
  9000. case "$host_os" in
  9001. solaris* | hpux*)
  9002. $as_echo "#define PTHREAD_IN_USE_DETECTION_HARD 1" >>confdefs.h
  9003. esac
  9004. fi
  9005. else
  9006. # Some library is needed. Try libpthread and libc_r.
  9007. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_kill in -lpthread" >&5
  9008. $as_echo_n "checking for pthread_kill in -lpthread... " >&6; }
  9009. if test "${ac_cv_lib_pthread_pthread_kill+set}" = set; then :
  9010. $as_echo_n "(cached) " >&6
  9011. else
  9012. ac_check_lib_save_LIBS=$LIBS
  9013. LIBS="-lpthread $LIBS"
  9014. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9015. /* end confdefs.h. */
  9016. /* Override any GCC internal prototype to avoid an error.
  9017. Use char because int might match the return type of a GCC
  9018. builtin and then its argument prototype would still apply. */
  9019. #ifdef __cplusplus
  9020. extern "C"
  9021. #endif
  9022. char pthread_kill ();
  9023. int
  9024. main ()
  9025. {
  9026. return pthread_kill ();
  9027. ;
  9028. return 0;
  9029. }
  9030. _ACEOF
  9031. if ac_fn_cxx_try_link "$LINENO"; then :
  9032. ac_cv_lib_pthread_pthread_kill=yes
  9033. else
  9034. ac_cv_lib_pthread_pthread_kill=no
  9035. fi
  9036. rm -f core conftest.err conftest.$ac_objext \
  9037. conftest$ac_exeext conftest.$ac_ext
  9038. LIBS=$ac_check_lib_save_LIBS
  9039. fi
  9040. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread_pthread_kill" >&5
  9041. $as_echo "$ac_cv_lib_pthread_pthread_kill" >&6; }
  9042. if test "x$ac_cv_lib_pthread_pthread_kill" = x""yes; then :
  9043. gl_have_pthread=yes
  9044. LIBTHREAD=-lpthread LTLIBTHREAD=-lpthread
  9045. LIBMULTITHREAD=-lpthread LTLIBMULTITHREAD=-lpthread
  9046. fi
  9047. if test -z "$gl_have_pthread"; then
  9048. # For FreeBSD 4.
  9049. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_kill in -lc_r" >&5
  9050. $as_echo_n "checking for pthread_kill in -lc_r... " >&6; }
  9051. if test "${ac_cv_lib_c_r_pthread_kill+set}" = set; then :
  9052. $as_echo_n "(cached) " >&6
  9053. else
  9054. ac_check_lib_save_LIBS=$LIBS
  9055. LIBS="-lc_r $LIBS"
  9056. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9057. /* end confdefs.h. */
  9058. /* Override any GCC internal prototype to avoid an error.
  9059. Use char because int might match the return type of a GCC
  9060. builtin and then its argument prototype would still apply. */
  9061. #ifdef __cplusplus
  9062. extern "C"
  9063. #endif
  9064. char pthread_kill ();
  9065. int
  9066. main ()
  9067. {
  9068. return pthread_kill ();
  9069. ;
  9070. return 0;
  9071. }
  9072. _ACEOF
  9073. if ac_fn_cxx_try_link "$LINENO"; then :
  9074. ac_cv_lib_c_r_pthread_kill=yes
  9075. else
  9076. ac_cv_lib_c_r_pthread_kill=no
  9077. fi
  9078. rm -f core conftest.err conftest.$ac_objext \
  9079. conftest$ac_exeext conftest.$ac_ext
  9080. LIBS=$ac_check_lib_save_LIBS
  9081. fi
  9082. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_c_r_pthread_kill" >&5
  9083. $as_echo "$ac_cv_lib_c_r_pthread_kill" >&6; }
  9084. if test "x$ac_cv_lib_c_r_pthread_kill" = x""yes; then :
  9085. gl_have_pthread=yes
  9086. LIBTHREAD=-lc_r LTLIBTHREAD=-lc_r
  9087. LIBMULTITHREAD=-lc_r LTLIBMULTITHREAD=-lc_r
  9088. fi
  9089. fi
  9090. fi
  9091. if test -n "$gl_have_pthread"; then
  9092. gl_threads_api=posix
  9093. $as_echo "#define USE_POSIX_THREADS 1" >>confdefs.h
  9094. if test -n "$LIBMULTITHREAD" || test -n "$LTLIBMULTITHREAD"; then
  9095. if test $gl_have_weak = yes; then
  9096. $as_echo "#define USE_POSIX_THREADS_WEAK 1" >>confdefs.h
  9097. LIBTHREAD=
  9098. LTLIBTHREAD=
  9099. fi
  9100. fi
  9101. # OSF/1 4.0 and MacOS X 10.1 lack the pthread_rwlock_t type and the
  9102. # pthread_rwlock_* functions.
  9103. ac_fn_cxx_check_type "$LINENO" "pthread_rwlock_t" "ac_cv_type_pthread_rwlock_t" "#include <pthread.h>
  9104. "
  9105. if test "x$ac_cv_type_pthread_rwlock_t" = x""yes; then :
  9106. $as_echo "#define HAVE_PTHREAD_RWLOCK 1" >>confdefs.h
  9107. fi
  9108. # glibc defines PTHREAD_MUTEX_RECURSIVE as enum, not as a macro.
  9109. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9110. /* end confdefs.h. */
  9111. #include <pthread.h>
  9112. int
  9113. main ()
  9114. {
  9115. #if __FreeBSD__ == 4
  9116. error "No, in FreeBSD 4.0 recursive mutexes actually don't work."
  9117. #else
  9118. int x = (int)PTHREAD_MUTEX_RECURSIVE;
  9119. return !x;
  9120. #endif
  9121. ;
  9122. return 0;
  9123. }
  9124. _ACEOF
  9125. if ac_fn_cxx_try_compile "$LINENO"; then :
  9126. $as_echo "#define HAVE_PTHREAD_MUTEX_RECURSIVE 1" >>confdefs.h
  9127. fi
  9128. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  9129. fi
  9130. fi
  9131. fi
  9132. if test -z "$gl_have_pthread"; then
  9133. if test "$gl_use_threads" = yes || test "$gl_use_threads" = solaris; then
  9134. gl_have_solaristhread=
  9135. gl_save_LIBS="$LIBS"
  9136. LIBS="$LIBS -lthread"
  9137. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9138. /* end confdefs.h. */
  9139. #include <thread.h>
  9140. #include <synch.h>
  9141. int
  9142. main ()
  9143. {
  9144. thr_self();
  9145. ;
  9146. return 0;
  9147. }
  9148. _ACEOF
  9149. if ac_fn_cxx_try_link "$LINENO"; then :
  9150. gl_have_solaristhread=yes
  9151. fi
  9152. rm -f core conftest.err conftest.$ac_objext \
  9153. conftest$ac_exeext conftest.$ac_ext
  9154. LIBS="$gl_save_LIBS"
  9155. if test -n "$gl_have_solaristhread"; then
  9156. gl_threads_api=solaris
  9157. LIBTHREAD=-lthread
  9158. LTLIBTHREAD=-lthread
  9159. LIBMULTITHREAD="$LIBTHREAD"
  9160. LTLIBMULTITHREAD="$LTLIBTHREAD"
  9161. $as_echo "#define USE_SOLARIS_THREADS 1" >>confdefs.h
  9162. if test $gl_have_weak = yes; then
  9163. $as_echo "#define USE_SOLARIS_THREADS_WEAK 1" >>confdefs.h
  9164. LIBTHREAD=
  9165. LTLIBTHREAD=
  9166. fi
  9167. fi
  9168. fi
  9169. fi
  9170. if test "$gl_use_threads" = pth; then
  9171. gl_save_CPPFLAGS="$CPPFLAGS"
  9172. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libpth" >&5
  9173. $as_echo_n "checking how to link with libpth... " >&6; }
  9174. if test "${ac_cv_libpth_libs+set}" = set; then :
  9175. $as_echo_n "(cached) " >&6
  9176. else
  9177. use_additional=yes
  9178. acl_save_prefix="$prefix"
  9179. prefix="$acl_final_prefix"
  9180. acl_save_exec_prefix="$exec_prefix"
  9181. exec_prefix="$acl_final_exec_prefix"
  9182. eval additional_includedir=\"$includedir\"
  9183. eval additional_libdir=\"$libdir\"
  9184. exec_prefix="$acl_save_exec_prefix"
  9185. prefix="$acl_save_prefix"
  9186. # Check whether --with-libpth-prefix was given.
  9187. if test "${with_libpth_prefix+set}" = set; then :
  9188. withval=$with_libpth_prefix;
  9189. if test "X$withval" = "Xno"; then
  9190. use_additional=no
  9191. else
  9192. if test "X$withval" = "X"; then
  9193. acl_save_prefix="$prefix"
  9194. prefix="$acl_final_prefix"
  9195. acl_save_exec_prefix="$exec_prefix"
  9196. exec_prefix="$acl_final_exec_prefix"
  9197. eval additional_includedir=\"$includedir\"
  9198. eval additional_libdir=\"$libdir\"
  9199. exec_prefix="$acl_save_exec_prefix"
  9200. prefix="$acl_save_prefix"
  9201. else
  9202. additional_includedir="$withval/include"
  9203. additional_libdir="$withval/$acl_libdirstem"
  9204. fi
  9205. fi
  9206. fi
  9207. LIBPTH=
  9208. LTLIBPTH=
  9209. INCPTH=
  9210. LIBPTH_PREFIX=
  9211. rpathdirs=
  9212. ltrpathdirs=
  9213. names_already_handled=
  9214. names_next_round='pth '
  9215. while test -n "$names_next_round"; do
  9216. names_this_round="$names_next_round"
  9217. names_next_round=
  9218. for name in $names_this_round; do
  9219. already_handled=
  9220. for n in $names_already_handled; do
  9221. if test "$n" = "$name"; then
  9222. already_handled=yes
  9223. break
  9224. fi
  9225. done
  9226. if test -z "$already_handled"; then
  9227. names_already_handled="$names_already_handled $name"
  9228. uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
  9229. eval value=\"\$HAVE_LIB$uppername\"
  9230. if test -n "$value"; then
  9231. if test "$value" = yes; then
  9232. eval value=\"\$LIB$uppername\"
  9233. test -z "$value" || LIBPTH="${LIBPTH}${LIBPTH:+ }$value"
  9234. eval value=\"\$LTLIB$uppername\"
  9235. test -z "$value" || LTLIBPTH="${LTLIBPTH}${LTLIBPTH:+ }$value"
  9236. else
  9237. :
  9238. fi
  9239. else
  9240. found_dir=
  9241. found_la=
  9242. found_so=
  9243. found_a=
  9244. eval libname=\"$acl_libname_spec\" # typically: libname=lib$name
  9245. if test -n "$acl_shlibext"; then
  9246. shrext=".$acl_shlibext" # typically: shrext=.so
  9247. else
  9248. shrext=
  9249. fi
  9250. if test $use_additional = yes; then
  9251. dir="$additional_libdir"
  9252. if test -n "$acl_shlibext"; then
  9253. if test -f "$dir/$libname$shrext"; then
  9254. found_dir="$dir"
  9255. found_so="$dir/$libname$shrext"
  9256. else
  9257. if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
  9258. ver=`(cd "$dir" && \
  9259. for f in "$libname$shrext".*; do echo "$f"; done \
  9260. | sed -e "s,^$libname$shrext\\\\.,," \
  9261. | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
  9262. | sed 1q ) 2>/dev/null`
  9263. if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
  9264. found_dir="$dir"
  9265. found_so="$dir/$libname$shrext.$ver"
  9266. fi
  9267. else
  9268. eval library_names=\"$acl_library_names_spec\"
  9269. for f in $library_names; do
  9270. if test -f "$dir/$f"; then
  9271. found_dir="$dir"
  9272. found_so="$dir/$f"
  9273. break
  9274. fi
  9275. done
  9276. fi
  9277. fi
  9278. fi
  9279. if test "X$found_dir" = "X"; then
  9280. if test -f "$dir/$libname.$acl_libext"; then
  9281. found_dir="$dir"
  9282. found_a="$dir/$libname.$acl_libext"
  9283. fi
  9284. fi
  9285. if test "X$found_dir" != "X"; then
  9286. if test -f "$dir/$libname.la"; then
  9287. found_la="$dir/$libname.la"
  9288. fi
  9289. fi
  9290. fi
  9291. if test "X$found_dir" = "X"; then
  9292. for x in $LDFLAGS $LTLIBPTH; do
  9293. acl_save_prefix="$prefix"
  9294. prefix="$acl_final_prefix"
  9295. acl_save_exec_prefix="$exec_prefix"
  9296. exec_prefix="$acl_final_exec_prefix"
  9297. eval x=\"$x\"
  9298. exec_prefix="$acl_save_exec_prefix"
  9299. prefix="$acl_save_prefix"
  9300. case "$x" in
  9301. -L*)
  9302. dir=`echo "X$x" | sed -e 's/^X-L//'`
  9303. if test -n "$acl_shlibext"; then
  9304. if test -f "$dir/$libname$shrext"; then
  9305. found_dir="$dir"
  9306. found_so="$dir/$libname$shrext"
  9307. else
  9308. if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
  9309. ver=`(cd "$dir" && \
  9310. for f in "$libname$shrext".*; do echo "$f"; done \
  9311. | sed -e "s,^$libname$shrext\\\\.,," \
  9312. | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
  9313. | sed 1q ) 2>/dev/null`
  9314. if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
  9315. found_dir="$dir"
  9316. found_so="$dir/$libname$shrext.$ver"
  9317. fi
  9318. else
  9319. eval library_names=\"$acl_library_names_spec\"
  9320. for f in $library_names; do
  9321. if test -f "$dir/$f"; then
  9322. found_dir="$dir"
  9323. found_so="$dir/$f"
  9324. break
  9325. fi
  9326. done
  9327. fi
  9328. fi
  9329. fi
  9330. if test "X$found_dir" = "X"; then
  9331. if test -f "$dir/$libname.$acl_libext"; then
  9332. found_dir="$dir"
  9333. found_a="$dir/$libname.$acl_libext"
  9334. fi
  9335. fi
  9336. if test "X$found_dir" != "X"; then
  9337. if test -f "$dir/$libname.la"; then
  9338. found_la="$dir/$libname.la"
  9339. fi
  9340. fi
  9341. ;;
  9342. esac
  9343. if test "X$found_dir" != "X"; then
  9344. break
  9345. fi
  9346. done
  9347. fi
  9348. if test "X$found_dir" != "X"; then
  9349. LTLIBPTH="${LTLIBPTH}${LTLIBPTH:+ }-L$found_dir -l$name"
  9350. if test "X$found_so" != "X"; then
  9351. if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/$acl_libdirstem"; then
  9352. LIBPTH="${LIBPTH}${LIBPTH:+ }$found_so"
  9353. else
  9354. haveit=
  9355. for x in $ltrpathdirs; do
  9356. if test "X$x" = "X$found_dir"; then
  9357. haveit=yes
  9358. break
  9359. fi
  9360. done
  9361. if test -z "$haveit"; then
  9362. ltrpathdirs="$ltrpathdirs $found_dir"
  9363. fi
  9364. if test "$acl_hardcode_direct" = yes; then
  9365. LIBPTH="${LIBPTH}${LIBPTH:+ }$found_so"
  9366. else
  9367. if test -n "$acl_hardcode_libdir_flag_spec" && test "$acl_hardcode_minus_L" = no; then
  9368. LIBPTH="${LIBPTH}${LIBPTH:+ }$found_so"
  9369. haveit=
  9370. for x in $rpathdirs; do
  9371. if test "X$x" = "X$found_dir"; then
  9372. haveit=yes
  9373. break
  9374. fi
  9375. done
  9376. if test -z "$haveit"; then
  9377. rpathdirs="$rpathdirs $found_dir"
  9378. fi
  9379. else
  9380. haveit=
  9381. for x in $LDFLAGS $LIBPTH; do
  9382. acl_save_prefix="$prefix"
  9383. prefix="$acl_final_prefix"
  9384. acl_save_exec_prefix="$exec_prefix"
  9385. exec_prefix="$acl_final_exec_prefix"
  9386. eval x=\"$x\"
  9387. exec_prefix="$acl_save_exec_prefix"
  9388. prefix="$acl_save_prefix"
  9389. if test "X$x" = "X-L$found_dir"; then
  9390. haveit=yes
  9391. break
  9392. fi
  9393. done
  9394. if test -z "$haveit"; then
  9395. LIBPTH="${LIBPTH}${LIBPTH:+ }-L$found_dir"
  9396. fi
  9397. if test "$acl_hardcode_minus_L" != no; then
  9398. LIBPTH="${LIBPTH}${LIBPTH:+ }$found_so"
  9399. else
  9400. LIBPTH="${LIBPTH}${LIBPTH:+ }-l$name"
  9401. fi
  9402. fi
  9403. fi
  9404. fi
  9405. else
  9406. if test "X$found_a" != "X"; then
  9407. LIBPTH="${LIBPTH}${LIBPTH:+ }$found_a"
  9408. else
  9409. LIBPTH="${LIBPTH}${LIBPTH:+ }-L$found_dir -l$name"
  9410. fi
  9411. fi
  9412. additional_includedir=
  9413. case "$found_dir" in
  9414. */$acl_libdirstem | */$acl_libdirstem/)
  9415. basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem/"'*$,,'`
  9416. LIBPTH_PREFIX="$basedir"
  9417. additional_includedir="$basedir/include"
  9418. ;;
  9419. esac
  9420. if test "X$additional_includedir" != "X"; then
  9421. if test "X$additional_includedir" != "X/usr/include"; then
  9422. haveit=
  9423. if test "X$additional_includedir" = "X/usr/local/include"; then
  9424. if test -n "$GCC"; then
  9425. case $host_os in
  9426. linux* | gnu* | k*bsd*-gnu) haveit=yes;;
  9427. esac
  9428. fi
  9429. fi
  9430. if test -z "$haveit"; then
  9431. for x in $CPPFLAGS $INCPTH; do
  9432. acl_save_prefix="$prefix"
  9433. prefix="$acl_final_prefix"
  9434. acl_save_exec_prefix="$exec_prefix"
  9435. exec_prefix="$acl_final_exec_prefix"
  9436. eval x=\"$x\"
  9437. exec_prefix="$acl_save_exec_prefix"
  9438. prefix="$acl_save_prefix"
  9439. if test "X$x" = "X-I$additional_includedir"; then
  9440. haveit=yes
  9441. break
  9442. fi
  9443. done
  9444. if test -z "$haveit"; then
  9445. if test -d "$additional_includedir"; then
  9446. INCPTH="${INCPTH}${INCPTH:+ }-I$additional_includedir"
  9447. fi
  9448. fi
  9449. fi
  9450. fi
  9451. fi
  9452. if test -n "$found_la"; then
  9453. save_libdir="$libdir"
  9454. case "$found_la" in
  9455. */* | *\\*) . "$found_la" ;;
  9456. *) . "./$found_la" ;;
  9457. esac
  9458. libdir="$save_libdir"
  9459. for dep in $dependency_libs; do
  9460. case "$dep" in
  9461. -L*)
  9462. additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
  9463. if test "X$additional_libdir" != "X/usr/$acl_libdirstem"; then
  9464. haveit=
  9465. if test "X$additional_libdir" = "X/usr/local/$acl_libdirstem"; then
  9466. if test -n "$GCC"; then
  9467. case $host_os in
  9468. linux* | gnu* | k*bsd*-gnu) haveit=yes;;
  9469. esac
  9470. fi
  9471. fi
  9472. if test -z "$haveit"; then
  9473. haveit=
  9474. for x in $LDFLAGS $LIBPTH; do
  9475. acl_save_prefix="$prefix"
  9476. prefix="$acl_final_prefix"
  9477. acl_save_exec_prefix="$exec_prefix"
  9478. exec_prefix="$acl_final_exec_prefix"
  9479. eval x=\"$x\"
  9480. exec_prefix="$acl_save_exec_prefix"
  9481. prefix="$acl_save_prefix"
  9482. if test "X$x" = "X-L$additional_libdir"; then
  9483. haveit=yes
  9484. break
  9485. fi
  9486. done
  9487. if test -z "$haveit"; then
  9488. if test -d "$additional_libdir"; then
  9489. LIBPTH="${LIBPTH}${LIBPTH:+ }-L$additional_libdir"
  9490. fi
  9491. fi
  9492. haveit=
  9493. for x in $LDFLAGS $LTLIBPTH; do
  9494. acl_save_prefix="$prefix"
  9495. prefix="$acl_final_prefix"
  9496. acl_save_exec_prefix="$exec_prefix"
  9497. exec_prefix="$acl_final_exec_prefix"
  9498. eval x=\"$x\"
  9499. exec_prefix="$acl_save_exec_prefix"
  9500. prefix="$acl_save_prefix"
  9501. if test "X$x" = "X-L$additional_libdir"; then
  9502. haveit=yes
  9503. break
  9504. fi
  9505. done
  9506. if test -z "$haveit"; then
  9507. if test -d "$additional_libdir"; then
  9508. LTLIBPTH="${LTLIBPTH}${LTLIBPTH:+ }-L$additional_libdir"
  9509. fi
  9510. fi
  9511. fi
  9512. fi
  9513. ;;
  9514. -R*)
  9515. dir=`echo "X$dep" | sed -e 's/^X-R//'`
  9516. if test "$enable_rpath" != no; then
  9517. haveit=
  9518. for x in $rpathdirs; do
  9519. if test "X$x" = "X$dir"; then
  9520. haveit=yes
  9521. break
  9522. fi
  9523. done
  9524. if test -z "$haveit"; then
  9525. rpathdirs="$rpathdirs $dir"
  9526. fi
  9527. haveit=
  9528. for x in $ltrpathdirs; do
  9529. if test "X$x" = "X$dir"; then
  9530. haveit=yes
  9531. break
  9532. fi
  9533. done
  9534. if test -z "$haveit"; then
  9535. ltrpathdirs="$ltrpathdirs $dir"
  9536. fi
  9537. fi
  9538. ;;
  9539. -l*)
  9540. names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
  9541. ;;
  9542. *.la)
  9543. names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
  9544. ;;
  9545. *)
  9546. LIBPTH="${LIBPTH}${LIBPTH:+ }$dep"
  9547. LTLIBPTH="${LTLIBPTH}${LTLIBPTH:+ }$dep"
  9548. ;;
  9549. esac
  9550. done
  9551. fi
  9552. else
  9553. LIBPTH="${LIBPTH}${LIBPTH:+ }-l$name"
  9554. LTLIBPTH="${LTLIBPTH}${LTLIBPTH:+ }-l$name"
  9555. fi
  9556. fi
  9557. fi
  9558. done
  9559. done
  9560. if test "X$rpathdirs" != "X"; then
  9561. if test -n "$acl_hardcode_libdir_separator"; then
  9562. alldirs=
  9563. for found_dir in $rpathdirs; do
  9564. alldirs="${alldirs}${alldirs:+$acl_hardcode_libdir_separator}$found_dir"
  9565. done
  9566. acl_save_libdir="$libdir"
  9567. libdir="$alldirs"
  9568. eval flag=\"$acl_hardcode_libdir_flag_spec\"
  9569. libdir="$acl_save_libdir"
  9570. LIBPTH="${LIBPTH}${LIBPTH:+ }$flag"
  9571. else
  9572. for found_dir in $rpathdirs; do
  9573. acl_save_libdir="$libdir"
  9574. libdir="$found_dir"
  9575. eval flag=\"$acl_hardcode_libdir_flag_spec\"
  9576. libdir="$acl_save_libdir"
  9577. LIBPTH="${LIBPTH}${LIBPTH:+ }$flag"
  9578. done
  9579. fi
  9580. fi
  9581. if test "X$ltrpathdirs" != "X"; then
  9582. for found_dir in $ltrpathdirs; do
  9583. LTLIBPTH="${LTLIBPTH}${LTLIBPTH:+ }-R$found_dir"
  9584. done
  9585. fi
  9586. ac_cv_libpth_libs="$LIBPTH"
  9587. ac_cv_libpth_ltlibs="$LTLIBPTH"
  9588. ac_cv_libpth_cppflags="$INCPTH"
  9589. ac_cv_libpth_prefix="$LIBPTH_PREFIX"
  9590. fi
  9591. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_libpth_libs" >&5
  9592. $as_echo "$ac_cv_libpth_libs" >&6; }
  9593. LIBPTH="$ac_cv_libpth_libs"
  9594. LTLIBPTH="$ac_cv_libpth_ltlibs"
  9595. INCPTH="$ac_cv_libpth_cppflags"
  9596. LIBPTH_PREFIX="$ac_cv_libpth_prefix"
  9597. for element in $INCPTH; do
  9598. haveit=
  9599. for x in $CPPFLAGS; do
  9600. acl_save_prefix="$prefix"
  9601. prefix="$acl_final_prefix"
  9602. acl_save_exec_prefix="$exec_prefix"
  9603. exec_prefix="$acl_final_exec_prefix"
  9604. eval x=\"$x\"
  9605. exec_prefix="$acl_save_exec_prefix"
  9606. prefix="$acl_save_prefix"
  9607. if test "X$x" = "X$element"; then
  9608. haveit=yes
  9609. break
  9610. fi
  9611. done
  9612. if test -z "$haveit"; then
  9613. CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
  9614. fi
  9615. done
  9616. HAVE_LIBPTH=yes
  9617. gl_have_pth=
  9618. gl_save_LIBS="$LIBS"
  9619. LIBS="$LIBS -lpth"
  9620. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9621. /* end confdefs.h. */
  9622. #include <pth.h>
  9623. int
  9624. main ()
  9625. {
  9626. pth_self();
  9627. ;
  9628. return 0;
  9629. }
  9630. _ACEOF
  9631. if ac_fn_cxx_try_link "$LINENO"; then :
  9632. gl_have_pth=yes
  9633. fi
  9634. rm -f core conftest.err conftest.$ac_objext \
  9635. conftest$ac_exeext conftest.$ac_ext
  9636. LIBS="$gl_save_LIBS"
  9637. if test -n "$gl_have_pth"; then
  9638. gl_threads_api=pth
  9639. LIBTHREAD="$LIBPTH"
  9640. LTLIBTHREAD="$LTLIBPTH"
  9641. LIBMULTITHREAD="$LIBTHREAD"
  9642. LTLIBMULTITHREAD="$LTLIBTHREAD"
  9643. $as_echo "#define USE_PTH_THREADS 1" >>confdefs.h
  9644. if test -n "$LIBMULTITHREAD" || test -n "$LTLIBMULTITHREAD"; then
  9645. if test $gl_have_weak = yes; then
  9646. $as_echo "#define USE_PTH_THREADS_WEAK 1" >>confdefs.h
  9647. LIBTHREAD=
  9648. LTLIBTHREAD=
  9649. fi
  9650. fi
  9651. else
  9652. CPPFLAGS="$gl_save_CPPFLAGS"
  9653. fi
  9654. fi
  9655. if test -z "$gl_have_pthread"; then
  9656. if test "$gl_use_threads" = yes || test "$gl_use_threads" = win32; then
  9657. if { case "$host_os" in
  9658. mingw*) true;;
  9659. *) false;;
  9660. esac
  9661. }; then
  9662. gl_threads_api=win32
  9663. $as_echo "#define USE_WIN32_THREADS 1" >>confdefs.h
  9664. fi
  9665. fi
  9666. fi
  9667. fi
  9668. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for multithread API to use" >&5
  9669. $as_echo_n "checking for multithread API to use... " >&6; }
  9670. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_threads_api" >&5
  9671. $as_echo "$gl_threads_api" >&6; }
  9672. use_additional=yes
  9673. acl_save_prefix="$prefix"
  9674. prefix="$acl_final_prefix"
  9675. acl_save_exec_prefix="$exec_prefix"
  9676. exec_prefix="$acl_final_exec_prefix"
  9677. eval additional_includedir=\"$includedir\"
  9678. eval additional_libdir=\"$libdir\"
  9679. exec_prefix="$acl_save_exec_prefix"
  9680. prefix="$acl_save_prefix"
  9681. # Check whether --with-libiconv-prefix was given.
  9682. if test "${with_libiconv_prefix+set}" = set; then :
  9683. withval=$with_libiconv_prefix;
  9684. if test "X$withval" = "Xno"; then
  9685. use_additional=no
  9686. else
  9687. if test "X$withval" = "X"; then
  9688. acl_save_prefix="$prefix"
  9689. prefix="$acl_final_prefix"
  9690. acl_save_exec_prefix="$exec_prefix"
  9691. exec_prefix="$acl_final_exec_prefix"
  9692. eval additional_includedir=\"$includedir\"
  9693. eval additional_libdir=\"$libdir\"
  9694. exec_prefix="$acl_save_exec_prefix"
  9695. prefix="$acl_save_prefix"
  9696. else
  9697. additional_includedir="$withval/include"
  9698. additional_libdir="$withval/$acl_libdirstem"
  9699. fi
  9700. fi
  9701. fi
  9702. LIBICONV=
  9703. LTLIBICONV=
  9704. INCICONV=
  9705. LIBICONV_PREFIX=
  9706. rpathdirs=
  9707. ltrpathdirs=
  9708. names_already_handled=
  9709. names_next_round='iconv '
  9710. while test -n "$names_next_round"; do
  9711. names_this_round="$names_next_round"
  9712. names_next_round=
  9713. for name in $names_this_round; do
  9714. already_handled=
  9715. for n in $names_already_handled; do
  9716. if test "$n" = "$name"; then
  9717. already_handled=yes
  9718. break
  9719. fi
  9720. done
  9721. if test -z "$already_handled"; then
  9722. names_already_handled="$names_already_handled $name"
  9723. uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
  9724. eval value=\"\$HAVE_LIB$uppername\"
  9725. if test -n "$value"; then
  9726. if test "$value" = yes; then
  9727. eval value=\"\$LIB$uppername\"
  9728. test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value"
  9729. eval value=\"\$LTLIB$uppername\"
  9730. test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value"
  9731. else
  9732. :
  9733. fi
  9734. else
  9735. found_dir=
  9736. found_la=
  9737. found_so=
  9738. found_a=
  9739. eval libname=\"$acl_libname_spec\" # typically: libname=lib$name
  9740. if test -n "$acl_shlibext"; then
  9741. shrext=".$acl_shlibext" # typically: shrext=.so
  9742. else
  9743. shrext=
  9744. fi
  9745. if test $use_additional = yes; then
  9746. dir="$additional_libdir"
  9747. if test -n "$acl_shlibext"; then
  9748. if test -f "$dir/$libname$shrext"; then
  9749. found_dir="$dir"
  9750. found_so="$dir/$libname$shrext"
  9751. else
  9752. if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
  9753. ver=`(cd "$dir" && \
  9754. for f in "$libname$shrext".*; do echo "$f"; done \
  9755. | sed -e "s,^$libname$shrext\\\\.,," \
  9756. | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
  9757. | sed 1q ) 2>/dev/null`
  9758. if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
  9759. found_dir="$dir"
  9760. found_so="$dir/$libname$shrext.$ver"
  9761. fi
  9762. else
  9763. eval library_names=\"$acl_library_names_spec\"
  9764. for f in $library_names; do
  9765. if test -f "$dir/$f"; then
  9766. found_dir="$dir"
  9767. found_so="$dir/$f"
  9768. break
  9769. fi
  9770. done
  9771. fi
  9772. fi
  9773. fi
  9774. if test "X$found_dir" = "X"; then
  9775. if test -f "$dir/$libname.$acl_libext"; then
  9776. found_dir="$dir"
  9777. found_a="$dir/$libname.$acl_libext"
  9778. fi
  9779. fi
  9780. if test "X$found_dir" != "X"; then
  9781. if test -f "$dir/$libname.la"; then
  9782. found_la="$dir/$libname.la"
  9783. fi
  9784. fi
  9785. fi
  9786. if test "X$found_dir" = "X"; then
  9787. for x in $LDFLAGS $LTLIBICONV; do
  9788. acl_save_prefix="$prefix"
  9789. prefix="$acl_final_prefix"
  9790. acl_save_exec_prefix="$exec_prefix"
  9791. exec_prefix="$acl_final_exec_prefix"
  9792. eval x=\"$x\"
  9793. exec_prefix="$acl_save_exec_prefix"
  9794. prefix="$acl_save_prefix"
  9795. case "$x" in
  9796. -L*)
  9797. dir=`echo "X$x" | sed -e 's/^X-L//'`
  9798. if test -n "$acl_shlibext"; then
  9799. if test -f "$dir/$libname$shrext"; then
  9800. found_dir="$dir"
  9801. found_so="$dir/$libname$shrext"
  9802. else
  9803. if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
  9804. ver=`(cd "$dir" && \
  9805. for f in "$libname$shrext".*; do echo "$f"; done \
  9806. | sed -e "s,^$libname$shrext\\\\.,," \
  9807. | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
  9808. | sed 1q ) 2>/dev/null`
  9809. if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
  9810. found_dir="$dir"
  9811. found_so="$dir/$libname$shrext.$ver"
  9812. fi
  9813. else
  9814. eval library_names=\"$acl_library_names_spec\"
  9815. for f in $library_names; do
  9816. if test -f "$dir/$f"; then
  9817. found_dir="$dir"
  9818. found_so="$dir/$f"
  9819. break
  9820. fi
  9821. done
  9822. fi
  9823. fi
  9824. fi
  9825. if test "X$found_dir" = "X"; then
  9826. if test -f "$dir/$libname.$acl_libext"; then
  9827. found_dir="$dir"
  9828. found_a="$dir/$libname.$acl_libext"
  9829. fi
  9830. fi
  9831. if test "X$found_dir" != "X"; then
  9832. if test -f "$dir/$libname.la"; then
  9833. found_la="$dir/$libname.la"
  9834. fi
  9835. fi
  9836. ;;
  9837. esac
  9838. if test "X$found_dir" != "X"; then
  9839. break
  9840. fi
  9841. done
  9842. fi
  9843. if test "X$found_dir" != "X"; then
  9844. LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
  9845. if test "X$found_so" != "X"; then
  9846. if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/$acl_libdirstem"; then
  9847. LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
  9848. else
  9849. haveit=
  9850. for x in $ltrpathdirs; do
  9851. if test "X$x" = "X$found_dir"; then
  9852. haveit=yes
  9853. break
  9854. fi
  9855. done
  9856. if test -z "$haveit"; then
  9857. ltrpathdirs="$ltrpathdirs $found_dir"
  9858. fi
  9859. if test "$acl_hardcode_direct" = yes; then
  9860. LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
  9861. else
  9862. if test -n "$acl_hardcode_libdir_flag_spec" && test "$acl_hardcode_minus_L" = no; then
  9863. LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
  9864. haveit=
  9865. for x in $rpathdirs; do
  9866. if test "X$x" = "X$found_dir"; then
  9867. haveit=yes
  9868. break
  9869. fi
  9870. done
  9871. if test -z "$haveit"; then
  9872. rpathdirs="$rpathdirs $found_dir"
  9873. fi
  9874. else
  9875. haveit=
  9876. for x in $LDFLAGS $LIBICONV; do
  9877. acl_save_prefix="$prefix"
  9878. prefix="$acl_final_prefix"
  9879. acl_save_exec_prefix="$exec_prefix"
  9880. exec_prefix="$acl_final_exec_prefix"
  9881. eval x=\"$x\"
  9882. exec_prefix="$acl_save_exec_prefix"
  9883. prefix="$acl_save_prefix"
  9884. if test "X$x" = "X-L$found_dir"; then
  9885. haveit=yes
  9886. break
  9887. fi
  9888. done
  9889. if test -z "$haveit"; then
  9890. LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir"
  9891. fi
  9892. if test "$acl_hardcode_minus_L" != no; then
  9893. LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
  9894. else
  9895. LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
  9896. fi
  9897. fi
  9898. fi
  9899. fi
  9900. else
  9901. if test "X$found_a" != "X"; then
  9902. LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a"
  9903. else
  9904. LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
  9905. fi
  9906. fi
  9907. additional_includedir=
  9908. case "$found_dir" in
  9909. */$acl_libdirstem | */$acl_libdirstem/)
  9910. basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem/"'*$,,'`
  9911. LIBICONV_PREFIX="$basedir"
  9912. additional_includedir="$basedir/include"
  9913. ;;
  9914. esac
  9915. if test "X$additional_includedir" != "X"; then
  9916. if test "X$additional_includedir" != "X/usr/include"; then
  9917. haveit=
  9918. if test "X$additional_includedir" = "X/usr/local/include"; then
  9919. if test -n "$GCC"; then
  9920. case $host_os in
  9921. linux* | gnu* | k*bsd*-gnu) haveit=yes;;
  9922. esac
  9923. fi
  9924. fi
  9925. if test -z "$haveit"; then
  9926. for x in $CPPFLAGS $INCICONV; do
  9927. acl_save_prefix="$prefix"
  9928. prefix="$acl_final_prefix"
  9929. acl_save_exec_prefix="$exec_prefix"
  9930. exec_prefix="$acl_final_exec_prefix"
  9931. eval x=\"$x\"
  9932. exec_prefix="$acl_save_exec_prefix"
  9933. prefix="$acl_save_prefix"
  9934. if test "X$x" = "X-I$additional_includedir"; then
  9935. haveit=yes
  9936. break
  9937. fi
  9938. done
  9939. if test -z "$haveit"; then
  9940. if test -d "$additional_includedir"; then
  9941. INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir"
  9942. fi
  9943. fi
  9944. fi
  9945. fi
  9946. fi
  9947. if test -n "$found_la"; then
  9948. save_libdir="$libdir"
  9949. case "$found_la" in
  9950. */* | *\\*) . "$found_la" ;;
  9951. *) . "./$found_la" ;;
  9952. esac
  9953. libdir="$save_libdir"
  9954. for dep in $dependency_libs; do
  9955. case "$dep" in
  9956. -L*)
  9957. additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
  9958. if test "X$additional_libdir" != "X/usr/$acl_libdirstem"; then
  9959. haveit=
  9960. if test "X$additional_libdir" = "X/usr/local/$acl_libdirstem"; then
  9961. if test -n "$GCC"; then
  9962. case $host_os in
  9963. linux* | gnu* | k*bsd*-gnu) haveit=yes;;
  9964. esac
  9965. fi
  9966. fi
  9967. if test -z "$haveit"; then
  9968. haveit=
  9969. for x in $LDFLAGS $LIBICONV; do
  9970. acl_save_prefix="$prefix"
  9971. prefix="$acl_final_prefix"
  9972. acl_save_exec_prefix="$exec_prefix"
  9973. exec_prefix="$acl_final_exec_prefix"
  9974. eval x=\"$x\"
  9975. exec_prefix="$acl_save_exec_prefix"
  9976. prefix="$acl_save_prefix"
  9977. if test "X$x" = "X-L$additional_libdir"; then
  9978. haveit=yes
  9979. break
  9980. fi
  9981. done
  9982. if test -z "$haveit"; then
  9983. if test -d "$additional_libdir"; then
  9984. LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
  9985. fi
  9986. fi
  9987. haveit=
  9988. for x in $LDFLAGS $LTLIBICONV; do
  9989. acl_save_prefix="$prefix"
  9990. prefix="$acl_final_prefix"
  9991. acl_save_exec_prefix="$exec_prefix"
  9992. exec_prefix="$acl_final_exec_prefix"
  9993. eval x=\"$x\"
  9994. exec_prefix="$acl_save_exec_prefix"
  9995. prefix="$acl_save_prefix"
  9996. if test "X$x" = "X-L$additional_libdir"; then
  9997. haveit=yes
  9998. break
  9999. fi
  10000. done
  10001. if test -z "$haveit"; then
  10002. if test -d "$additional_libdir"; then
  10003. LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
  10004. fi
  10005. fi
  10006. fi
  10007. fi
  10008. ;;
  10009. -R*)
  10010. dir=`echo "X$dep" | sed -e 's/^X-R//'`
  10011. if test "$enable_rpath" != no; then
  10012. haveit=
  10013. for x in $rpathdirs; do
  10014. if test "X$x" = "X$dir"; then
  10015. haveit=yes
  10016. break
  10017. fi
  10018. done
  10019. if test -z "$haveit"; then
  10020. rpathdirs="$rpathdirs $dir"
  10021. fi
  10022. haveit=
  10023. for x in $ltrpathdirs; do
  10024. if test "X$x" = "X$dir"; then
  10025. haveit=yes
  10026. break
  10027. fi
  10028. done
  10029. if test -z "$haveit"; then
  10030. ltrpathdirs="$ltrpathdirs $dir"
  10031. fi
  10032. fi
  10033. ;;
  10034. -l*)
  10035. names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
  10036. ;;
  10037. *.la)
  10038. names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
  10039. ;;
  10040. *)
  10041. LIBICONV="${LIBICONV}${LIBICONV:+ }$dep"
  10042. LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep"
  10043. ;;
  10044. esac
  10045. done
  10046. fi
  10047. else
  10048. LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
  10049. LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
  10050. fi
  10051. fi
  10052. fi
  10053. done
  10054. done
  10055. if test "X$rpathdirs" != "X"; then
  10056. if test -n "$acl_hardcode_libdir_separator"; then
  10057. alldirs=
  10058. for found_dir in $rpathdirs; do
  10059. alldirs="${alldirs}${alldirs:+$acl_hardcode_libdir_separator}$found_dir"
  10060. done
  10061. acl_save_libdir="$libdir"
  10062. libdir="$alldirs"
  10063. eval flag=\"$acl_hardcode_libdir_flag_spec\"
  10064. libdir="$acl_save_libdir"
  10065. LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
  10066. else
  10067. for found_dir in $rpathdirs; do
  10068. acl_save_libdir="$libdir"
  10069. libdir="$found_dir"
  10070. eval flag=\"$acl_hardcode_libdir_flag_spec\"
  10071. libdir="$acl_save_libdir"
  10072. LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
  10073. done
  10074. fi
  10075. fi
  10076. if test "X$ltrpathdirs" != "X"; then
  10077. for found_dir in $ltrpathdirs; do
  10078. LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
  10079. done
  10080. fi
  10081. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10082. /* end confdefs.h. */
  10083. int foo (int a) { a = __builtin_expect (a, 10); return a == 10 ? 0 : 1; }
  10084. int
  10085. main ()
  10086. {
  10087. ;
  10088. return 0;
  10089. }
  10090. _ACEOF
  10091. if ac_fn_cxx_try_link "$LINENO"; then :
  10092. $as_echo "#define HAVE_BUILTIN_EXPECT 1" >>confdefs.h
  10093. fi
  10094. rm -f core conftest.err conftest.$ac_objext \
  10095. conftest$ac_exeext conftest.$ac_ext
  10096. for ac_header in argz.h inttypes.h limits.h unistd.h sys/param.h
  10097. do :
  10098. as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
  10099. ac_fn_cxx_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
  10100. eval as_val=\$$as_ac_Header
  10101. if test "x$as_val" = x""yes; then :
  10102. cat >>confdefs.h <<_ACEOF
  10103. #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
  10104. _ACEOF
  10105. fi
  10106. done
  10107. for ac_func in getcwd getegid geteuid getgid getuid mempcpy munmap \
  10108. stpcpy strcasecmp strdup strtoul tsearch argz_count argz_stringify \
  10109. argz_next __fsetlocking
  10110. do :
  10111. as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
  10112. ac_fn_cxx_check_func "$LINENO" "$ac_func" "$as_ac_var"
  10113. eval as_val=\$$as_ac_var
  10114. if test "x$as_val" = x""yes; then :
  10115. cat >>confdefs.h <<_ACEOF
  10116. #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
  10117. _ACEOF
  10118. fi
  10119. done
  10120. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether feof_unlocked is declared" >&5
  10121. $as_echo_n "checking whether feof_unlocked is declared... " >&6; }
  10122. if test "${ac_cv_have_decl_feof_unlocked+set}" = set; then :
  10123. $as_echo_n "(cached) " >&6
  10124. else
  10125. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10126. /* end confdefs.h. */
  10127. #include <stdio.h>
  10128. int
  10129. main ()
  10130. {
  10131. #ifndef feof_unlocked
  10132. char *p = (char *) feof_unlocked;
  10133. #endif
  10134. ;
  10135. return 0;
  10136. }
  10137. _ACEOF
  10138. if ac_fn_cxx_try_compile "$LINENO"; then :
  10139. ac_cv_have_decl_feof_unlocked=yes
  10140. else
  10141. ac_cv_have_decl_feof_unlocked=no
  10142. fi
  10143. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  10144. fi
  10145. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_decl_feof_unlocked" >&5
  10146. $as_echo "$ac_cv_have_decl_feof_unlocked" >&6; }
  10147. if test $ac_cv_have_decl_feof_unlocked = yes; then
  10148. gt_value=1
  10149. else
  10150. gt_value=0
  10151. fi
  10152. cat >>confdefs.h <<_ACEOF
  10153. #define HAVE_DECL_FEOF_UNLOCKED $gt_value
  10154. _ACEOF
  10155. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether fgets_unlocked is declared" >&5
  10156. $as_echo_n "checking whether fgets_unlocked is declared... " >&6; }
  10157. if test "${ac_cv_have_decl_fgets_unlocked+set}" = set; then :
  10158. $as_echo_n "(cached) " >&6
  10159. else
  10160. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10161. /* end confdefs.h. */
  10162. #include <stdio.h>
  10163. int
  10164. main ()
  10165. {
  10166. #ifndef fgets_unlocked
  10167. char *p = (char *) fgets_unlocked;
  10168. #endif
  10169. ;
  10170. return 0;
  10171. }
  10172. _ACEOF
  10173. if ac_fn_cxx_try_compile "$LINENO"; then :
  10174. ac_cv_have_decl_fgets_unlocked=yes
  10175. else
  10176. ac_cv_have_decl_fgets_unlocked=no
  10177. fi
  10178. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  10179. fi
  10180. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_decl_fgets_unlocked" >&5
  10181. $as_echo "$ac_cv_have_decl_fgets_unlocked" >&6; }
  10182. if test $ac_cv_have_decl_fgets_unlocked = yes; then
  10183. gt_value=1
  10184. else
  10185. gt_value=0
  10186. fi
  10187. cat >>confdefs.h <<_ACEOF
  10188. #define HAVE_DECL_FGETS_UNLOCKED $gt_value
  10189. _ACEOF
  10190. am_save_CPPFLAGS="$CPPFLAGS"
  10191. for element in $INCICONV; do
  10192. haveit=
  10193. for x in $CPPFLAGS; do
  10194. acl_save_prefix="$prefix"
  10195. prefix="$acl_final_prefix"
  10196. acl_save_exec_prefix="$exec_prefix"
  10197. exec_prefix="$acl_final_exec_prefix"
  10198. eval x=\"$x\"
  10199. exec_prefix="$acl_save_exec_prefix"
  10200. prefix="$acl_save_prefix"
  10201. if test "X$x" = "X$element"; then
  10202. haveit=yes
  10203. break
  10204. fi
  10205. done
  10206. if test -z "$haveit"; then
  10207. CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
  10208. fi
  10209. done
  10210. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv" >&5
  10211. $as_echo_n "checking for iconv... " >&6; }
  10212. if test "${am_cv_func_iconv+set}" = set; then :
  10213. $as_echo_n "(cached) " >&6
  10214. else
  10215. am_cv_func_iconv="no, consider installing GNU libiconv"
  10216. am_cv_lib_iconv=no
  10217. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10218. /* end confdefs.h. */
  10219. #include <stdlib.h>
  10220. #include <iconv.h>
  10221. int
  10222. main ()
  10223. {
  10224. iconv_t cd = iconv_open("","");
  10225. iconv(cd,NULL,NULL,NULL,NULL);
  10226. iconv_close(cd);
  10227. ;
  10228. return 0;
  10229. }
  10230. _ACEOF
  10231. if ac_fn_cxx_try_link "$LINENO"; then :
  10232. am_cv_func_iconv=yes
  10233. fi
  10234. rm -f core conftest.err conftest.$ac_objext \
  10235. conftest$ac_exeext conftest.$ac_ext
  10236. if test "$am_cv_func_iconv" != yes; then
  10237. am_save_LIBS="$LIBS"
  10238. LIBS="$LIBS $LIBICONV"
  10239. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10240. /* end confdefs.h. */
  10241. #include <stdlib.h>
  10242. #include <iconv.h>
  10243. int
  10244. main ()
  10245. {
  10246. iconv_t cd = iconv_open("","");
  10247. iconv(cd,NULL,NULL,NULL,NULL);
  10248. iconv_close(cd);
  10249. ;
  10250. return 0;
  10251. }
  10252. _ACEOF
  10253. if ac_fn_cxx_try_link "$LINENO"; then :
  10254. am_cv_lib_iconv=yes
  10255. am_cv_func_iconv=yes
  10256. fi
  10257. rm -f core conftest.err conftest.$ac_objext \
  10258. conftest$ac_exeext conftest.$ac_ext
  10259. LIBS="$am_save_LIBS"
  10260. fi
  10261. fi
  10262. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv" >&5
  10263. $as_echo "$am_cv_func_iconv" >&6; }
  10264. if test "$am_cv_func_iconv" = yes; then
  10265. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working iconv" >&5
  10266. $as_echo_n "checking for working iconv... " >&6; }
  10267. if test "${am_cv_func_iconv_works+set}" = set; then :
  10268. $as_echo_n "(cached) " >&6
  10269. else
  10270. am_save_LIBS="$LIBS"
  10271. if test $am_cv_lib_iconv = yes; then
  10272. LIBS="$LIBS $LIBICONV"
  10273. fi
  10274. if test "$cross_compiling" = yes; then :
  10275. case "$host_os" in
  10276. aix* | hpux*) am_cv_func_iconv_works="guessing no" ;;
  10277. *) am_cv_func_iconv_works="guessing yes" ;;
  10278. esac
  10279. else
  10280. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10281. /* end confdefs.h. */
  10282. #include <iconv.h>
  10283. #include <string.h>
  10284. int main ()
  10285. {
  10286. /* Test against AIX 5.1 bug: Failures are not distinguishable from successful
  10287. returns. */
  10288. {
  10289. iconv_t cd_utf8_to_88591 = iconv_open ("ISO8859-1", "UTF-8");
  10290. if (cd_utf8_to_88591 != (iconv_t)(-1))
  10291. {
  10292. static const char input[] = "\342\202\254"; /* EURO SIGN */
  10293. char buf[10];
  10294. const char *inptr = input;
  10295. size_t inbytesleft = strlen (input);
  10296. char *outptr = buf;
  10297. size_t outbytesleft = sizeof (buf);
  10298. size_t res = iconv (cd_utf8_to_88591,
  10299. (char **) &inptr, &inbytesleft,
  10300. &outptr, &outbytesleft);
  10301. if (res == 0)
  10302. return 1;
  10303. }
  10304. }
  10305. #if 0 /* This bug could be worked around by the caller. */
  10306. /* Test against HP-UX 11.11 bug: Positive return value instead of 0. */
  10307. {
  10308. iconv_t cd_88591_to_utf8 = iconv_open ("utf8", "iso88591");
  10309. if (cd_88591_to_utf8 != (iconv_t)(-1))
  10310. {
  10311. static const char input[] = "\304rger mit b\366sen B\374bchen ohne Augenma\337";
  10312. char buf[50];
  10313. const char *inptr = input;
  10314. size_t inbytesleft = strlen (input);
  10315. char *outptr = buf;
  10316. size_t outbytesleft = sizeof (buf);
  10317. size_t res = iconv (cd_88591_to_utf8,
  10318. (char **) &inptr, &inbytesleft,
  10319. &outptr, &outbytesleft);
  10320. if ((int)res > 0)
  10321. return 1;
  10322. }
  10323. }
  10324. #endif
  10325. /* Test against HP-UX 11.11 bug: No converter from EUC-JP to UTF-8 is
  10326. provided. */
  10327. if (/* Try standardized names. */
  10328. iconv_open ("UTF-8", "EUC-JP") == (iconv_t)(-1)
  10329. /* Try IRIX, OSF/1 names. */
  10330. && iconv_open ("UTF-8", "eucJP") == (iconv_t)(-1)
  10331. /* Try AIX names. */
  10332. && iconv_open ("UTF-8", "IBM-eucJP") == (iconv_t)(-1)
  10333. /* Try HP-UX names. */
  10334. && iconv_open ("utf8", "eucJP") == (iconv_t)(-1))
  10335. return 1;
  10336. return 0;
  10337. }
  10338. _ACEOF
  10339. if ac_fn_cxx_try_run "$LINENO"; then :
  10340. am_cv_func_iconv_works=yes
  10341. else
  10342. am_cv_func_iconv_works=no
  10343. fi
  10344. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  10345. conftest.$ac_objext conftest.beam conftest.$ac_ext
  10346. fi
  10347. LIBS="$am_save_LIBS"
  10348. fi
  10349. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv_works" >&5
  10350. $as_echo "$am_cv_func_iconv_works" >&6; }
  10351. case "$am_cv_func_iconv_works" in
  10352. *no) am_func_iconv=no am_cv_lib_iconv=no ;;
  10353. *) am_func_iconv=yes ;;
  10354. esac
  10355. else
  10356. am_func_iconv=no am_cv_lib_iconv=no
  10357. fi
  10358. if test "$am_func_iconv" = yes; then
  10359. $as_echo "#define HAVE_ICONV 1" >>confdefs.h
  10360. fi
  10361. if test "$am_cv_lib_iconv" = yes; then
  10362. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libiconv" >&5
  10363. $as_echo_n "checking how to link with libiconv... " >&6; }
  10364. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBICONV" >&5
  10365. $as_echo "$LIBICONV" >&6; }
  10366. else
  10367. CPPFLAGS="$am_save_CPPFLAGS"
  10368. LIBICONV=
  10369. LTLIBICONV=
  10370. fi
  10371. if test "$am_cv_func_iconv" = yes; then
  10372. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv declaration" >&5
  10373. $as_echo_n "checking for iconv declaration... " >&6; }
  10374. if test "${am_cv_proto_iconv+set}" = set; then :
  10375. $as_echo_n "(cached) " >&6
  10376. else
  10377. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10378. /* end confdefs.h. */
  10379. #include <stdlib.h>
  10380. #include <iconv.h>
  10381. extern
  10382. #ifdef __cplusplus
  10383. "C"
  10384. #endif
  10385. #if defined(__STDC__) || defined(__cplusplus)
  10386. size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
  10387. #else
  10388. size_t iconv();
  10389. #endif
  10390. int
  10391. main ()
  10392. {
  10393. ;
  10394. return 0;
  10395. }
  10396. _ACEOF
  10397. if ac_fn_cxx_try_compile "$LINENO"; then :
  10398. am_cv_proto_iconv_arg1=""
  10399. else
  10400. am_cv_proto_iconv_arg1="const"
  10401. fi
  10402. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  10403. 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);"
  10404. fi
  10405. am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
  10406. { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${ac_t:-
  10407. }$am_cv_proto_iconv" >&5
  10408. $as_echo "${ac_t:-
  10409. }$am_cv_proto_iconv" >&6; }
  10410. cat >>confdefs.h <<_ACEOF
  10411. #define ICONV_CONST $am_cv_proto_iconv_arg1
  10412. _ACEOF
  10413. fi
  10414. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for NL_LOCALE_NAME macro" >&5
  10415. $as_echo_n "checking for NL_LOCALE_NAME macro... " >&6; }
  10416. if test "${gt_cv_nl_locale_name+set}" = set; then :
  10417. $as_echo_n "(cached) " >&6
  10418. else
  10419. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10420. /* end confdefs.h. */
  10421. #include <langinfo.h>
  10422. #include <locale.h>
  10423. int
  10424. main ()
  10425. {
  10426. char* cs = nl_langinfo(_NL_LOCALE_NAME(LC_MESSAGES));
  10427. return !cs;
  10428. ;
  10429. return 0;
  10430. }
  10431. _ACEOF
  10432. if ac_fn_cxx_try_link "$LINENO"; then :
  10433. gt_cv_nl_locale_name=yes
  10434. else
  10435. gt_cv_nl_locale_name=no
  10436. fi
  10437. rm -f core conftest.err conftest.$ac_objext \
  10438. conftest$ac_exeext conftest.$ac_ext
  10439. fi
  10440. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_nl_locale_name" >&5
  10441. $as_echo "$gt_cv_nl_locale_name" >&6; }
  10442. if test $gt_cv_nl_locale_name = yes; then
  10443. $as_echo "#define HAVE_NL_LOCALE_NAME 1" >>confdefs.h
  10444. fi
  10445. for ac_prog in bison
  10446. do
  10447. # Extract the first word of "$ac_prog", so it can be a program name with args.
  10448. set dummy $ac_prog; ac_word=$2
  10449. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  10450. $as_echo_n "checking for $ac_word... " >&6; }
  10451. if test "${ac_cv_prog_INTLBISON+set}" = set; then :
  10452. $as_echo_n "(cached) " >&6
  10453. else
  10454. if test -n "$INTLBISON"; then
  10455. ac_cv_prog_INTLBISON="$INTLBISON" # Let the user override the test.
  10456. else
  10457. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  10458. for as_dir in $PATH
  10459. do
  10460. IFS=$as_save_IFS
  10461. test -z "$as_dir" && as_dir=.
  10462. for ac_exec_ext in '' $ac_executable_extensions; do
  10463. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  10464. ac_cv_prog_INTLBISON="$ac_prog"
  10465. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  10466. break 2
  10467. fi
  10468. done
  10469. done
  10470. IFS=$as_save_IFS
  10471. fi
  10472. fi
  10473. INTLBISON=$ac_cv_prog_INTLBISON
  10474. if test -n "$INTLBISON"; then
  10475. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INTLBISON" >&5
  10476. $as_echo "$INTLBISON" >&6; }
  10477. else
  10478. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  10479. $as_echo "no" >&6; }
  10480. fi
  10481. test -n "$INTLBISON" && break
  10482. done
  10483. if test -z "$INTLBISON"; then
  10484. ac_verc_fail=yes
  10485. else
  10486. { $as_echo "$as_me:${as_lineno-$LINENO}: checking version of bison" >&5
  10487. $as_echo_n "checking version of bison... " >&6; }
  10488. ac_prog_version=`$INTLBISON --version 2>&1 | sed -n 's/^.*GNU Bison.* \([0-9]*\.[0-9.]*\).*$/\1/p'`
  10489. case $ac_prog_version in
  10490. '') ac_prog_version="v. ?.??, bad"; ac_verc_fail=yes;;
  10491. 1.2[6-9]* | 1.[3-9][0-9]* | [2-9].*)
  10492. ac_prog_version="$ac_prog_version, ok"; ac_verc_fail=no;;
  10493. *) ac_prog_version="$ac_prog_version, bad"; ac_verc_fail=yes;;
  10494. esac
  10495. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_prog_version" >&5
  10496. $as_echo "$ac_prog_version" >&6; }
  10497. fi
  10498. if test $ac_verc_fail = yes; then
  10499. INTLBISON=:
  10500. fi
  10501. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long long int" >&5
  10502. $as_echo_n "checking for long long int... " >&6; }
  10503. if test "${ac_cv_type_long_long_int+set}" = set; then :
  10504. $as_echo_n "(cached) " >&6
  10505. else
  10506. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10507. /* end confdefs.h. */
  10508. /* Test preprocessor. */
  10509. #if ! (-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
  10510. error in preprocessor;
  10511. #endif
  10512. #if ! (18446744073709551615ULL <= -1ull)
  10513. error in preprocessor;
  10514. #endif
  10515. /* Test literals. */
  10516. long long int ll = 9223372036854775807ll;
  10517. long long int nll = -9223372036854775807LL;
  10518. unsigned long long int ull = 18446744073709551615ULL;
  10519. /* Test constant expressions. */
  10520. typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
  10521. ? 1 : -1)];
  10522. typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1
  10523. ? 1 : -1)];
  10524. int i = 63;
  10525. int
  10526. main ()
  10527. {
  10528. /* Test availability of runtime routines for shift and division. */
  10529. long long int llmax = 9223372036854775807ll;
  10530. unsigned long long int ullmax = 18446744073709551615ull;
  10531. return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i)
  10532. | (llmax / ll) | (llmax % ll)
  10533. | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i)
  10534. | (ullmax / ull) | (ullmax % ull));
  10535. ;
  10536. return 0;
  10537. }
  10538. _ACEOF
  10539. if ac_fn_cxx_try_link "$LINENO"; then :
  10540. if test "$cross_compiling" = yes; then :
  10541. ac_cv_type_long_long_int=yes
  10542. else
  10543. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10544. /* end confdefs.h. */
  10545. #include <limits.h>
  10546. #ifndef LLONG_MAX
  10547. # define HALF \
  10548. (1LL << (sizeof (long long int) * CHAR_BIT - 2))
  10549. # define LLONG_MAX (HALF - 1 + HALF)
  10550. #endif
  10551. int
  10552. main ()
  10553. {
  10554. long long int n = 1;
  10555. int i;
  10556. for (i = 0; ; i++)
  10557. {
  10558. long long int m = n << i;
  10559. if (m >> i != n)
  10560. return 1;
  10561. if (LLONG_MAX / 2 < m)
  10562. break;
  10563. }
  10564. return 0;
  10565. ;
  10566. return 0;
  10567. }
  10568. _ACEOF
  10569. if ac_fn_cxx_try_run "$LINENO"; then :
  10570. ac_cv_type_long_long_int=yes
  10571. else
  10572. ac_cv_type_long_long_int=no
  10573. fi
  10574. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  10575. conftest.$ac_objext conftest.beam conftest.$ac_ext
  10576. fi
  10577. else
  10578. ac_cv_type_long_long_int=no
  10579. fi
  10580. rm -f core conftest.err conftest.$ac_objext \
  10581. conftest$ac_exeext conftest.$ac_ext
  10582. fi
  10583. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_long_long_int" >&5
  10584. $as_echo "$ac_cv_type_long_long_int" >&6; }
  10585. if test $ac_cv_type_long_long_int = yes; then
  10586. $as_echo "#define HAVE_LONG_LONG_INT 1" >>confdefs.h
  10587. fi
  10588. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wchar_t" >&5
  10589. $as_echo_n "checking for wchar_t... " >&6; }
  10590. if test "${gt_cv_c_wchar_t+set}" = set; then :
  10591. $as_echo_n "(cached) " >&6
  10592. else
  10593. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10594. /* end confdefs.h. */
  10595. #include <stddef.h>
  10596. wchar_t foo = (wchar_t)'\0';
  10597. int
  10598. main ()
  10599. {
  10600. ;
  10601. return 0;
  10602. }
  10603. _ACEOF
  10604. if ac_fn_cxx_try_compile "$LINENO"; then :
  10605. gt_cv_c_wchar_t=yes
  10606. else
  10607. gt_cv_c_wchar_t=no
  10608. fi
  10609. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  10610. fi
  10611. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_c_wchar_t" >&5
  10612. $as_echo "$gt_cv_c_wchar_t" >&6; }
  10613. if test $gt_cv_c_wchar_t = yes; then
  10614. $as_echo "#define HAVE_WCHAR_T 1" >>confdefs.h
  10615. fi
  10616. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wint_t" >&5
  10617. $as_echo_n "checking for wint_t... " >&6; }
  10618. if test "${gt_cv_c_wint_t+set}" = set; then :
  10619. $as_echo_n "(cached) " >&6
  10620. else
  10621. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10622. /* end confdefs.h. */
  10623. /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
  10624. <wchar.h>.
  10625. BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be included
  10626. before <wchar.h>. */
  10627. #include <stddef.h>
  10628. #include <stdio.h>
  10629. #include <time.h>
  10630. #include <wchar.h>
  10631. wint_t foo = (wchar_t)'\0';
  10632. int
  10633. main ()
  10634. {
  10635. ;
  10636. return 0;
  10637. }
  10638. _ACEOF
  10639. if ac_fn_cxx_try_compile "$LINENO"; then :
  10640. gt_cv_c_wint_t=yes
  10641. else
  10642. gt_cv_c_wint_t=no
  10643. fi
  10644. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  10645. fi
  10646. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_c_wint_t" >&5
  10647. $as_echo "$gt_cv_c_wint_t" >&6; }
  10648. if test $gt_cv_c_wint_t = yes; then
  10649. $as_echo "#define HAVE_WINT_T 1" >>confdefs.h
  10650. fi
  10651. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for intmax_t" >&5
  10652. $as_echo_n "checking for intmax_t... " >&6; }
  10653. if test "${gt_cv_c_intmax_t+set}" = set; then :
  10654. $as_echo_n "(cached) " >&6
  10655. else
  10656. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10657. /* end confdefs.h. */
  10658. #include <stddef.h>
  10659. #include <stdlib.h>
  10660. #if HAVE_STDINT_H_WITH_UINTMAX
  10661. #include <stdint.h>
  10662. #endif
  10663. #if HAVE_INTTYPES_H_WITH_UINTMAX
  10664. #include <inttypes.h>
  10665. #endif
  10666. int
  10667. main ()
  10668. {
  10669. intmax_t x = -1;
  10670. return !x;
  10671. ;
  10672. return 0;
  10673. }
  10674. _ACEOF
  10675. if ac_fn_cxx_try_compile "$LINENO"; then :
  10676. gt_cv_c_intmax_t=yes
  10677. else
  10678. gt_cv_c_intmax_t=no
  10679. fi
  10680. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  10681. fi
  10682. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_c_intmax_t" >&5
  10683. $as_echo "$gt_cv_c_intmax_t" >&6; }
  10684. if test $gt_cv_c_intmax_t = yes; then
  10685. $as_echo "#define HAVE_INTMAX_T 1" >>confdefs.h
  10686. fi
  10687. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether printf() supports POSIX/XSI format strings" >&5
  10688. $as_echo_n "checking whether printf() supports POSIX/XSI format strings... " >&6; }
  10689. if test "${gt_cv_func_printf_posix+set}" = set; then :
  10690. $as_echo_n "(cached) " >&6
  10691. else
  10692. if test "$cross_compiling" = yes; then :
  10693. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10694. /* end confdefs.h. */
  10695. #if defined __NetBSD__ || defined __BEOS__ || defined _MSC_VER || defined __MINGW32__ || defined __CYGWIN__
  10696. notposix
  10697. #endif
  10698. _ACEOF
  10699. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  10700. $EGREP "notposix" >/dev/null 2>&1; then :
  10701. gt_cv_func_printf_posix="guessing no"
  10702. else
  10703. gt_cv_func_printf_posix="guessing yes"
  10704. fi
  10705. rm -f conftest*
  10706. else
  10707. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10708. /* end confdefs.h. */
  10709. #include <stdio.h>
  10710. #include <string.h>
  10711. /* The string "%2$d %1$d", with dollar characters protected from the shell's
  10712. dollar expansion (possibly an autoconf bug). */
  10713. static char format[] = { '%', '2', '$', 'd', ' ', '%', '1', '$', 'd', '\0' };
  10714. static char buf[100];
  10715. int main ()
  10716. {
  10717. sprintf (buf, format, 33, 55);
  10718. return (strcmp (buf, "55 33") != 0);
  10719. }
  10720. _ACEOF
  10721. if ac_fn_cxx_try_run "$LINENO"; then :
  10722. gt_cv_func_printf_posix=yes
  10723. else
  10724. gt_cv_func_printf_posix=no
  10725. fi
  10726. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  10727. conftest.$ac_objext conftest.beam conftest.$ac_ext
  10728. fi
  10729. fi
  10730. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_printf_posix" >&5
  10731. $as_echo "$gt_cv_func_printf_posix" >&6; }
  10732. case $gt_cv_func_printf_posix in
  10733. *yes)
  10734. $as_echo "#define HAVE_POSIX_PRINTF 1" >>confdefs.h
  10735. ;;
  10736. esac
  10737. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C Library 2.1 or newer" >&5
  10738. $as_echo_n "checking whether we are using the GNU C Library 2.1 or newer... " >&6; }
  10739. if test "${ac_cv_gnu_library_2_1+set}" = set; then :
  10740. $as_echo_n "(cached) " >&6
  10741. else
  10742. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10743. /* end confdefs.h. */
  10744. #include <features.h>
  10745. #ifdef __GNU_LIBRARY__
  10746. #if (__GLIBC__ == 2 && __GLIBC_MINOR__ >= 1) || (__GLIBC__ > 2)
  10747. Lucky GNU user
  10748. #endif
  10749. #endif
  10750. _ACEOF
  10751. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  10752. $EGREP "Lucky GNU user" >/dev/null 2>&1; then :
  10753. ac_cv_gnu_library_2_1=yes
  10754. else
  10755. ac_cv_gnu_library_2_1=no
  10756. fi
  10757. rm -f conftest*
  10758. fi
  10759. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_gnu_library_2_1" >&5
  10760. $as_echo "$ac_cv_gnu_library_2_1" >&6; }
  10761. GLIBC21="$ac_cv_gnu_library_2_1"
  10762. for ac_header in stdint.h
  10763. do :
  10764. ac_fn_cxx_check_header_mongrel "$LINENO" "stdint.h" "ac_cv_header_stdint_h" "$ac_includes_default"
  10765. if test "x$ac_cv_header_stdint_h" = x""yes; then :
  10766. cat >>confdefs.h <<_ACEOF
  10767. #define HAVE_STDINT_H 1
  10768. _ACEOF
  10769. fi
  10770. done
  10771. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SIZE_MAX" >&5
  10772. $as_echo_n "checking for SIZE_MAX... " >&6; }
  10773. if test "${gl_cv_size_max+set}" = set; then :
  10774. $as_echo_n "(cached) " >&6
  10775. else
  10776. gl_cv_size_max=
  10777. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10778. /* end confdefs.h. */
  10779. #include <limits.h>
  10780. #if HAVE_STDINT_H
  10781. #include <stdint.h>
  10782. #endif
  10783. #ifdef SIZE_MAX
  10784. Found it
  10785. #endif
  10786. _ACEOF
  10787. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  10788. $EGREP "Found it" >/dev/null 2>&1; then :
  10789. gl_cv_size_max=yes
  10790. fi
  10791. rm -f conftest*
  10792. if test -z "$gl_cv_size_max"; then
  10793. if ac_fn_cxx_compute_int "$LINENO" "sizeof (size_t) * CHAR_BIT - 1" "size_t_bits_minus_1" "#include <stddef.h>
  10794. #include <limits.h>"; then :
  10795. else
  10796. size_t_bits_minus_1=
  10797. fi
  10798. if ac_fn_cxx_compute_int "$LINENO" "sizeof (size_t) <= sizeof (unsigned int)" "fits_in_uint" "#include <stddef.h>"; then :
  10799. else
  10800. fits_in_uint=
  10801. fi
  10802. if test -n "$size_t_bits_minus_1" && test -n "$fits_in_uint"; then
  10803. if test $fits_in_uint = 1; then
  10804. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10805. /* end confdefs.h. */
  10806. #include <stddef.h>
  10807. extern size_t foo;
  10808. extern unsigned long foo;
  10809. int
  10810. main ()
  10811. {
  10812. ;
  10813. return 0;
  10814. }
  10815. _ACEOF
  10816. if ac_fn_cxx_try_compile "$LINENO"; then :
  10817. fits_in_uint=0
  10818. fi
  10819. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  10820. fi
  10821. if test $fits_in_uint = 1; then
  10822. gl_cv_size_max="(((1U << $size_t_bits_minus_1) - 1) * 2 + 1)"
  10823. else
  10824. gl_cv_size_max="(((1UL << $size_t_bits_minus_1) - 1) * 2 + 1)"
  10825. fi
  10826. else
  10827. gl_cv_size_max='((size_t)~(size_t)0)'
  10828. fi
  10829. fi
  10830. fi
  10831. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_size_max" >&5
  10832. $as_echo "$gl_cv_size_max" >&6; }
  10833. if test "$gl_cv_size_max" != yes; then
  10834. cat >>confdefs.h <<_ACEOF
  10835. #define SIZE_MAX $gl_cv_size_max
  10836. _ACEOF
  10837. fi
  10838. for ac_header in stdint.h
  10839. do :
  10840. ac_fn_cxx_check_header_mongrel "$LINENO" "stdint.h" "ac_cv_header_stdint_h" "$ac_includes_default"
  10841. if test "x$ac_cv_header_stdint_h" = x""yes; then :
  10842. cat >>confdefs.h <<_ACEOF
  10843. #define HAVE_STDINT_H 1
  10844. _ACEOF
  10845. fi
  10846. done
  10847. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CFPreferencesCopyAppValue" >&5
  10848. $as_echo_n "checking for CFPreferencesCopyAppValue... " >&6; }
  10849. if test "${gt_cv_func_CFPreferencesCopyAppValue+set}" = set; then :
  10850. $as_echo_n "(cached) " >&6
  10851. else
  10852. gt_save_LIBS="$LIBS"
  10853. LIBS="$LIBS -Wl,-framework -Wl,CoreFoundation"
  10854. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10855. /* end confdefs.h. */
  10856. #include <CoreFoundation/CFPreferences.h>
  10857. int
  10858. main ()
  10859. {
  10860. CFPreferencesCopyAppValue(NULL, NULL)
  10861. ;
  10862. return 0;
  10863. }
  10864. _ACEOF
  10865. if ac_fn_cxx_try_link "$LINENO"; then :
  10866. gt_cv_func_CFPreferencesCopyAppValue=yes
  10867. else
  10868. gt_cv_func_CFPreferencesCopyAppValue=no
  10869. fi
  10870. rm -f core conftest.err conftest.$ac_objext \
  10871. conftest$ac_exeext conftest.$ac_ext
  10872. LIBS="$gt_save_LIBS"
  10873. fi
  10874. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_CFPreferencesCopyAppValue" >&5
  10875. $as_echo "$gt_cv_func_CFPreferencesCopyAppValue" >&6; }
  10876. if test $gt_cv_func_CFPreferencesCopyAppValue = yes; then
  10877. $as_echo "#define HAVE_CFPREFERENCESCOPYAPPVALUE 1" >>confdefs.h
  10878. fi
  10879. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CFLocaleCopyCurrent" >&5
  10880. $as_echo_n "checking for CFLocaleCopyCurrent... " >&6; }
  10881. if test "${gt_cv_func_CFLocaleCopyCurrent+set}" = set; then :
  10882. $as_echo_n "(cached) " >&6
  10883. else
  10884. gt_save_LIBS="$LIBS"
  10885. LIBS="$LIBS -Wl,-framework -Wl,CoreFoundation"
  10886. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10887. /* end confdefs.h. */
  10888. #include <CoreFoundation/CFLocale.h>
  10889. int
  10890. main ()
  10891. {
  10892. CFLocaleCopyCurrent();
  10893. ;
  10894. return 0;
  10895. }
  10896. _ACEOF
  10897. if ac_fn_cxx_try_link "$LINENO"; then :
  10898. gt_cv_func_CFLocaleCopyCurrent=yes
  10899. else
  10900. gt_cv_func_CFLocaleCopyCurrent=no
  10901. fi
  10902. rm -f core conftest.err conftest.$ac_objext \
  10903. conftest$ac_exeext conftest.$ac_ext
  10904. LIBS="$gt_save_LIBS"
  10905. fi
  10906. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_CFLocaleCopyCurrent" >&5
  10907. $as_echo "$gt_cv_func_CFLocaleCopyCurrent" >&6; }
  10908. if test $gt_cv_func_CFLocaleCopyCurrent = yes; then
  10909. $as_echo "#define HAVE_CFLOCALECOPYCURRENT 1" >>confdefs.h
  10910. fi
  10911. INTL_MACOSX_LIBS=
  10912. if test $gt_cv_func_CFPreferencesCopyAppValue = yes || test $gt_cv_func_CFLocaleCopyCurrent = yes; then
  10913. INTL_MACOSX_LIBS="-Wl,-framework -Wl,CoreFoundation"
  10914. fi
  10915. ac_fn_cxx_check_type "$LINENO" "ptrdiff_t" "ac_cv_type_ptrdiff_t" "$ac_includes_default"
  10916. if test "x$ac_cv_type_ptrdiff_t" = x""yes; then :
  10917. else
  10918. $as_echo "#define ptrdiff_t long" >>confdefs.h
  10919. fi
  10920. for ac_header in stddef.h stdlib.h string.h
  10921. do :
  10922. as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
  10923. ac_fn_cxx_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
  10924. eval as_val=\$$as_ac_Header
  10925. if test "x$as_val" = x""yes; then :
  10926. cat >>confdefs.h <<_ACEOF
  10927. #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
  10928. _ACEOF
  10929. fi
  10930. done
  10931. for ac_func in asprintf fwprintf putenv setenv setlocale snprintf wcslen
  10932. do :
  10933. as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
  10934. ac_fn_cxx_check_func "$LINENO" "$ac_func" "$as_ac_var"
  10935. eval as_val=\$$as_ac_var
  10936. if test "x$as_val" = x""yes; then :
  10937. cat >>confdefs.h <<_ACEOF
  10938. #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
  10939. _ACEOF
  10940. fi
  10941. done
  10942. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether _snprintf is declared" >&5
  10943. $as_echo_n "checking whether _snprintf is declared... " >&6; }
  10944. if test "${ac_cv_have_decl__snprintf+set}" = set; then :
  10945. $as_echo_n "(cached) " >&6
  10946. else
  10947. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10948. /* end confdefs.h. */
  10949. #include <stdio.h>
  10950. int
  10951. main ()
  10952. {
  10953. #ifndef _snprintf
  10954. char *p = (char *) _snprintf;
  10955. #endif
  10956. ;
  10957. return 0;
  10958. }
  10959. _ACEOF
  10960. if ac_fn_cxx_try_compile "$LINENO"; then :
  10961. ac_cv_have_decl__snprintf=yes
  10962. else
  10963. ac_cv_have_decl__snprintf=no
  10964. fi
  10965. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  10966. fi
  10967. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_decl__snprintf" >&5
  10968. $as_echo "$ac_cv_have_decl__snprintf" >&6; }
  10969. if test $ac_cv_have_decl__snprintf = yes; then
  10970. gt_value=1
  10971. else
  10972. gt_value=0
  10973. fi
  10974. cat >>confdefs.h <<_ACEOF
  10975. #define HAVE_DECL__SNPRINTF $gt_value
  10976. _ACEOF
  10977. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether _snwprintf is declared" >&5
  10978. $as_echo_n "checking whether _snwprintf is declared... " >&6; }
  10979. if test "${ac_cv_have_decl__snwprintf+set}" = set; then :
  10980. $as_echo_n "(cached) " >&6
  10981. else
  10982. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10983. /* end confdefs.h. */
  10984. #include <stdio.h>
  10985. int
  10986. main ()
  10987. {
  10988. #ifndef _snwprintf
  10989. char *p = (char *) _snwprintf;
  10990. #endif
  10991. ;
  10992. return 0;
  10993. }
  10994. _ACEOF
  10995. if ac_fn_cxx_try_compile "$LINENO"; then :
  10996. ac_cv_have_decl__snwprintf=yes
  10997. else
  10998. ac_cv_have_decl__snwprintf=no
  10999. fi
  11000. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  11001. fi
  11002. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_decl__snwprintf" >&5
  11003. $as_echo "$ac_cv_have_decl__snwprintf" >&6; }
  11004. if test $ac_cv_have_decl__snwprintf = yes; then
  11005. gt_value=1
  11006. else
  11007. gt_value=0
  11008. fi
  11009. cat >>confdefs.h <<_ACEOF
  11010. #define HAVE_DECL__SNWPRINTF $gt_value
  11011. _ACEOF
  11012. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether getc_unlocked is declared" >&5
  11013. $as_echo_n "checking whether getc_unlocked is declared... " >&6; }
  11014. if test "${ac_cv_have_decl_getc_unlocked+set}" = set; then :
  11015. $as_echo_n "(cached) " >&6
  11016. else
  11017. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11018. /* end confdefs.h. */
  11019. #include <stdio.h>
  11020. int
  11021. main ()
  11022. {
  11023. #ifndef getc_unlocked
  11024. char *p = (char *) getc_unlocked;
  11025. #endif
  11026. ;
  11027. return 0;
  11028. }
  11029. _ACEOF
  11030. if ac_fn_cxx_try_compile "$LINENO"; then :
  11031. ac_cv_have_decl_getc_unlocked=yes
  11032. else
  11033. ac_cv_have_decl_getc_unlocked=no
  11034. fi
  11035. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  11036. fi
  11037. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_decl_getc_unlocked" >&5
  11038. $as_echo "$ac_cv_have_decl_getc_unlocked" >&6; }
  11039. if test $ac_cv_have_decl_getc_unlocked = yes; then
  11040. gt_value=1
  11041. else
  11042. gt_value=0
  11043. fi
  11044. cat >>confdefs.h <<_ACEOF
  11045. #define HAVE_DECL_GETC_UNLOCKED $gt_value
  11046. _ACEOF
  11047. case $gt_cv_func_printf_posix in
  11048. *yes) HAVE_POSIX_PRINTF=1 ;;
  11049. *) HAVE_POSIX_PRINTF=0 ;;
  11050. esac
  11051. if test "$ac_cv_func_asprintf" = yes; then
  11052. HAVE_ASPRINTF=1
  11053. else
  11054. HAVE_ASPRINTF=0
  11055. fi
  11056. if test "$ac_cv_func_snprintf" = yes; then
  11057. HAVE_SNPRINTF=1
  11058. else
  11059. HAVE_SNPRINTF=0
  11060. fi
  11061. if test "$ac_cv_func_wprintf" = yes; then
  11062. HAVE_WPRINTF=1
  11063. else
  11064. HAVE_WPRINTF=0
  11065. fi
  11066. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nl_langinfo and CODESET" >&5
  11067. $as_echo_n "checking for nl_langinfo and CODESET... " >&6; }
  11068. if test "${am_cv_langinfo_codeset+set}" = set; then :
  11069. $as_echo_n "(cached) " >&6
  11070. else
  11071. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11072. /* end confdefs.h. */
  11073. #include <langinfo.h>
  11074. int
  11075. main ()
  11076. {
  11077. char* cs = nl_langinfo(CODESET); return !cs;
  11078. ;
  11079. return 0;
  11080. }
  11081. _ACEOF
  11082. if ac_fn_cxx_try_link "$LINENO"; then :
  11083. am_cv_langinfo_codeset=yes
  11084. else
  11085. am_cv_langinfo_codeset=no
  11086. fi
  11087. rm -f core conftest.err conftest.$ac_objext \
  11088. conftest$ac_exeext conftest.$ac_ext
  11089. fi
  11090. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_langinfo_codeset" >&5
  11091. $as_echo "$am_cv_langinfo_codeset" >&6; }
  11092. if test $am_cv_langinfo_codeset = yes; then
  11093. $as_echo "#define HAVE_LANGINFO_CODESET 1" >>confdefs.h
  11094. fi
  11095. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LC_MESSAGES" >&5
  11096. $as_echo_n "checking for LC_MESSAGES... " >&6; }
  11097. if test "${gt_cv_val_LC_MESSAGES+set}" = set; then :
  11098. $as_echo_n "(cached) " >&6
  11099. else
  11100. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11101. /* end confdefs.h. */
  11102. #include <locale.h>
  11103. int
  11104. main ()
  11105. {
  11106. return LC_MESSAGES
  11107. ;
  11108. return 0;
  11109. }
  11110. _ACEOF
  11111. if ac_fn_cxx_try_link "$LINENO"; then :
  11112. gt_cv_val_LC_MESSAGES=yes
  11113. else
  11114. gt_cv_val_LC_MESSAGES=no
  11115. fi
  11116. rm -f core conftest.err conftest.$ac_objext \
  11117. conftest$ac_exeext conftest.$ac_ext
  11118. fi
  11119. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_val_LC_MESSAGES" >&5
  11120. $as_echo "$gt_cv_val_LC_MESSAGES" >&6; }
  11121. if test $gt_cv_val_LC_MESSAGES = yes; then
  11122. $as_echo "#define HAVE_LC_MESSAGES 1" >>confdefs.h
  11123. fi
  11124. if test "$enable_shared" = yes; then
  11125. case "$host_os" in
  11126. mingw* | cygwin*) is_woe32dll=yes ;;
  11127. *) is_woe32dll=no ;;
  11128. esac
  11129. else
  11130. is_woe32dll=no
  11131. fi
  11132. WOE32DLL=$is_woe32dll
  11133. case "$host_os" in
  11134. mingw* | cygwin*) is_woe32=yes ;;
  11135. *) is_woe32=no ;;
  11136. esac
  11137. WOE32=$is_woe32
  11138. if test $WOE32 = yes; then
  11139. if test -n "$ac_tool_prefix"; then
  11140. # Extract the first word of "${ac_tool_prefix}windres", so it can be a program name with args.
  11141. set dummy ${ac_tool_prefix}windres; ac_word=$2
  11142. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  11143. $as_echo_n "checking for $ac_word... " >&6; }
  11144. if test "${ac_cv_prog_WINDRES+set}" = set; then :
  11145. $as_echo_n "(cached) " >&6
  11146. else
  11147. if test -n "$WINDRES"; then
  11148. ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
  11149. else
  11150. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  11151. for as_dir in $PATH
  11152. do
  11153. IFS=$as_save_IFS
  11154. test -z "$as_dir" && as_dir=.
  11155. for ac_exec_ext in '' $ac_executable_extensions; do
  11156. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  11157. ac_cv_prog_WINDRES="${ac_tool_prefix}windres"
  11158. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  11159. break 2
  11160. fi
  11161. done
  11162. done
  11163. IFS=$as_save_IFS
  11164. fi
  11165. fi
  11166. WINDRES=$ac_cv_prog_WINDRES
  11167. if test -n "$WINDRES"; then
  11168. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES" >&5
  11169. $as_echo "$WINDRES" >&6; }
  11170. else
  11171. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  11172. $as_echo "no" >&6; }
  11173. fi
  11174. fi
  11175. if test -z "$ac_cv_prog_WINDRES"; then
  11176. ac_ct_WINDRES=$WINDRES
  11177. # Extract the first word of "windres", so it can be a program name with args.
  11178. set dummy windres; ac_word=$2
  11179. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  11180. $as_echo_n "checking for $ac_word... " >&6; }
  11181. if test "${ac_cv_prog_ac_ct_WINDRES+set}" = set; then :
  11182. $as_echo_n "(cached) " >&6
  11183. else
  11184. if test -n "$ac_ct_WINDRES"; then
  11185. ac_cv_prog_ac_ct_WINDRES="$ac_ct_WINDRES" # Let the user override the test.
  11186. else
  11187. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  11188. for as_dir in $PATH
  11189. do
  11190. IFS=$as_save_IFS
  11191. test -z "$as_dir" && as_dir=.
  11192. for ac_exec_ext in '' $ac_executable_extensions; do
  11193. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  11194. ac_cv_prog_ac_ct_WINDRES="windres"
  11195. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  11196. break 2
  11197. fi
  11198. done
  11199. done
  11200. IFS=$as_save_IFS
  11201. fi
  11202. fi
  11203. ac_ct_WINDRES=$ac_cv_prog_ac_ct_WINDRES
  11204. if test -n "$ac_ct_WINDRES"; then
  11205. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_WINDRES" >&5
  11206. $as_echo "$ac_ct_WINDRES" >&6; }
  11207. else
  11208. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  11209. $as_echo "no" >&6; }
  11210. fi
  11211. if test "x$ac_ct_WINDRES" = x; then
  11212. WINDRES=""
  11213. else
  11214. case $cross_compiling:$ac_tool_warned in
  11215. yes:)
  11216. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  11217. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  11218. ac_tool_warned=yes ;;
  11219. esac
  11220. WINDRES=$ac_ct_WINDRES
  11221. fi
  11222. else
  11223. WINDRES="$ac_cv_prog_WINDRES"
  11224. fi
  11225. fi
  11226. case "$host_os" in
  11227. hpux*) LTLIBC="" ;;
  11228. *) LTLIBC="-lc" ;;
  11229. esac
  11230. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CFPreferencesCopyAppValue" >&5
  11231. $as_echo_n "checking for CFPreferencesCopyAppValue... " >&6; }
  11232. if test "${gt_cv_func_CFPreferencesCopyAppValue+set}" = set; then :
  11233. $as_echo_n "(cached) " >&6
  11234. else
  11235. gt_save_LIBS="$LIBS"
  11236. LIBS="$LIBS -Wl,-framework -Wl,CoreFoundation"
  11237. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11238. /* end confdefs.h. */
  11239. #include <CoreFoundation/CFPreferences.h>
  11240. int
  11241. main ()
  11242. {
  11243. CFPreferencesCopyAppValue(NULL, NULL)
  11244. ;
  11245. return 0;
  11246. }
  11247. _ACEOF
  11248. if ac_fn_cxx_try_link "$LINENO"; then :
  11249. gt_cv_func_CFPreferencesCopyAppValue=yes
  11250. else
  11251. gt_cv_func_CFPreferencesCopyAppValue=no
  11252. fi
  11253. rm -f core conftest.err conftest.$ac_objext \
  11254. conftest$ac_exeext conftest.$ac_ext
  11255. LIBS="$gt_save_LIBS"
  11256. fi
  11257. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_CFPreferencesCopyAppValue" >&5
  11258. $as_echo "$gt_cv_func_CFPreferencesCopyAppValue" >&6; }
  11259. if test $gt_cv_func_CFPreferencesCopyAppValue = yes; then
  11260. $as_echo "#define HAVE_CFPREFERENCESCOPYAPPVALUE 1" >>confdefs.h
  11261. fi
  11262. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CFLocaleCopyCurrent" >&5
  11263. $as_echo_n "checking for CFLocaleCopyCurrent... " >&6; }
  11264. if test "${gt_cv_func_CFLocaleCopyCurrent+set}" = set; then :
  11265. $as_echo_n "(cached) " >&6
  11266. else
  11267. gt_save_LIBS="$LIBS"
  11268. LIBS="$LIBS -Wl,-framework -Wl,CoreFoundation"
  11269. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11270. /* end confdefs.h. */
  11271. #include <CoreFoundation/CFLocale.h>
  11272. int
  11273. main ()
  11274. {
  11275. CFLocaleCopyCurrent();
  11276. ;
  11277. return 0;
  11278. }
  11279. _ACEOF
  11280. if ac_fn_cxx_try_link "$LINENO"; then :
  11281. gt_cv_func_CFLocaleCopyCurrent=yes
  11282. else
  11283. gt_cv_func_CFLocaleCopyCurrent=no
  11284. fi
  11285. rm -f core conftest.err conftest.$ac_objext \
  11286. conftest$ac_exeext conftest.$ac_ext
  11287. LIBS="$gt_save_LIBS"
  11288. fi
  11289. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_CFLocaleCopyCurrent" >&5
  11290. $as_echo "$gt_cv_func_CFLocaleCopyCurrent" >&6; }
  11291. if test $gt_cv_func_CFLocaleCopyCurrent = yes; then
  11292. $as_echo "#define HAVE_CFLOCALECOPYCURRENT 1" >>confdefs.h
  11293. fi
  11294. INTL_MACOSX_LIBS=
  11295. if test $gt_cv_func_CFPreferencesCopyAppValue = yes || test $gt_cv_func_CFLocaleCopyCurrent = yes; then
  11296. INTL_MACOSX_LIBS="-Wl,-framework -Wl,CoreFoundation"
  11297. fi
  11298. BUILD_INCLUDED_LIBINTL=no
  11299. USE_INCLUDED_LIBINTL=no
  11300. LIBINTL=
  11301. LTLIBINTL=
  11302. POSUB=
  11303. case " $gt_needs " in
  11304. *" need-formatstring-macros "*) gt_api_version=3 ;;
  11305. *" need-ngettext "*) gt_api_version=2 ;;
  11306. *) gt_api_version=1 ;;
  11307. esac
  11308. gt_func_gnugettext_libc="gt_cv_func_gnugettext${gt_api_version}_libc"
  11309. gt_func_gnugettext_libintl="gt_cv_func_gnugettext${gt_api_version}_libintl"
  11310. if test "$USE_NLS" = "yes"; then
  11311. gt_use_preinstalled_gnugettext=no
  11312. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether included gettext is requested" >&5
  11313. $as_echo_n "checking whether included gettext is requested... " >&6; }
  11314. # Check whether --with-included-gettext was given.
  11315. if test "${with_included_gettext+set}" = set; then :
  11316. withval=$with_included_gettext; nls_cv_force_use_gnu_gettext=$withval
  11317. else
  11318. nls_cv_force_use_gnu_gettext=no
  11319. fi
  11320. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $nls_cv_force_use_gnu_gettext" >&5
  11321. $as_echo "$nls_cv_force_use_gnu_gettext" >&6; }
  11322. nls_cv_use_gnu_gettext="$nls_cv_force_use_gnu_gettext"
  11323. if test "$nls_cv_force_use_gnu_gettext" != "yes"; then
  11324. if test $gt_api_version -ge 3; then
  11325. gt_revision_test_code='
  11326. #ifndef __GNU_GETTEXT_SUPPORTED_REVISION
  11327. #define __GNU_GETTEXT_SUPPORTED_REVISION(major) ((major) == 0 ? 0 : -1)
  11328. #endif
  11329. typedef int array [2 * (__GNU_GETTEXT_SUPPORTED_REVISION(0) >= 1) - 1];
  11330. '
  11331. else
  11332. gt_revision_test_code=
  11333. fi
  11334. if test $gt_api_version -ge 2; then
  11335. gt_expression_test_code=' + * ngettext ("", "", 0)'
  11336. else
  11337. gt_expression_test_code=
  11338. fi
  11339. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU gettext in libc" >&5
  11340. $as_echo_n "checking for GNU gettext in libc... " >&6; }
  11341. if { as_var=$gt_func_gnugettext_libc; eval "test \"\${$as_var+set}\" = set"; }; then :
  11342. $as_echo_n "(cached) " >&6
  11343. else
  11344. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11345. /* end confdefs.h. */
  11346. #include <libintl.h>
  11347. $gt_revision_test_code
  11348. extern int _nl_msg_cat_cntr;
  11349. extern int *_nl_domain_bindings;
  11350. int
  11351. main ()
  11352. {
  11353. bindtextdomain ("", "");
  11354. return * gettext ("")$gt_expression_test_code + _nl_msg_cat_cntr + *_nl_domain_bindings
  11355. ;
  11356. return 0;
  11357. }
  11358. _ACEOF
  11359. if ac_fn_cxx_try_link "$LINENO"; then :
  11360. eval "$gt_func_gnugettext_libc=yes"
  11361. else
  11362. eval "$gt_func_gnugettext_libc=no"
  11363. fi
  11364. rm -f core conftest.err conftest.$ac_objext \
  11365. conftest$ac_exeext conftest.$ac_ext
  11366. fi
  11367. eval ac_res=\$$gt_func_gnugettext_libc
  11368. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  11369. $as_echo "$ac_res" >&6; }
  11370. if { eval "gt_val=\$$gt_func_gnugettext_libc"; test "$gt_val" != "yes"; }; then
  11371. use_additional=yes
  11372. acl_save_prefix="$prefix"
  11373. prefix="$acl_final_prefix"
  11374. acl_save_exec_prefix="$exec_prefix"
  11375. exec_prefix="$acl_final_exec_prefix"
  11376. eval additional_includedir=\"$includedir\"
  11377. eval additional_libdir=\"$libdir\"
  11378. exec_prefix="$acl_save_exec_prefix"
  11379. prefix="$acl_save_prefix"
  11380. # Check whether --with-libintl-prefix was given.
  11381. if test "${with_libintl_prefix+set}" = set; then :
  11382. withval=$with_libintl_prefix;
  11383. if test "X$withval" = "Xno"; then
  11384. use_additional=no
  11385. else
  11386. if test "X$withval" = "X"; then
  11387. acl_save_prefix="$prefix"
  11388. prefix="$acl_final_prefix"
  11389. acl_save_exec_prefix="$exec_prefix"
  11390. exec_prefix="$acl_final_exec_prefix"
  11391. eval additional_includedir=\"$includedir\"
  11392. eval additional_libdir=\"$libdir\"
  11393. exec_prefix="$acl_save_exec_prefix"
  11394. prefix="$acl_save_prefix"
  11395. else
  11396. additional_includedir="$withval/include"
  11397. additional_libdir="$withval/$acl_libdirstem"
  11398. fi
  11399. fi
  11400. fi
  11401. LIBINTL=
  11402. LTLIBINTL=
  11403. INCINTL=
  11404. LIBINTL_PREFIX=
  11405. rpathdirs=
  11406. ltrpathdirs=
  11407. names_already_handled=
  11408. names_next_round='intl '
  11409. while test -n "$names_next_round"; do
  11410. names_this_round="$names_next_round"
  11411. names_next_round=
  11412. for name in $names_this_round; do
  11413. already_handled=
  11414. for n in $names_already_handled; do
  11415. if test "$n" = "$name"; then
  11416. already_handled=yes
  11417. break
  11418. fi
  11419. done
  11420. if test -z "$already_handled"; then
  11421. names_already_handled="$names_already_handled $name"
  11422. uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
  11423. eval value=\"\$HAVE_LIB$uppername\"
  11424. if test -n "$value"; then
  11425. if test "$value" = yes; then
  11426. eval value=\"\$LIB$uppername\"
  11427. test -z "$value" || LIBINTL="${LIBINTL}${LIBINTL:+ }$value"
  11428. eval value=\"\$LTLIB$uppername\"
  11429. test -z "$value" || LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$value"
  11430. else
  11431. :
  11432. fi
  11433. else
  11434. found_dir=
  11435. found_la=
  11436. found_so=
  11437. found_a=
  11438. eval libname=\"$acl_libname_spec\" # typically: libname=lib$name
  11439. if test -n "$acl_shlibext"; then
  11440. shrext=".$acl_shlibext" # typically: shrext=.so
  11441. else
  11442. shrext=
  11443. fi
  11444. if test $use_additional = yes; then
  11445. dir="$additional_libdir"
  11446. if test -n "$acl_shlibext"; then
  11447. if test -f "$dir/$libname$shrext"; then
  11448. found_dir="$dir"
  11449. found_so="$dir/$libname$shrext"
  11450. else
  11451. if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
  11452. ver=`(cd "$dir" && \
  11453. for f in "$libname$shrext".*; do echo "$f"; done \
  11454. | sed -e "s,^$libname$shrext\\\\.,," \
  11455. | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
  11456. | sed 1q ) 2>/dev/null`
  11457. if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
  11458. found_dir="$dir"
  11459. found_so="$dir/$libname$shrext.$ver"
  11460. fi
  11461. else
  11462. eval library_names=\"$acl_library_names_spec\"
  11463. for f in $library_names; do
  11464. if test -f "$dir/$f"; then
  11465. found_dir="$dir"
  11466. found_so="$dir/$f"
  11467. break
  11468. fi
  11469. done
  11470. fi
  11471. fi
  11472. fi
  11473. if test "X$found_dir" = "X"; then
  11474. if test -f "$dir/$libname.$acl_libext"; then
  11475. found_dir="$dir"
  11476. found_a="$dir/$libname.$acl_libext"
  11477. fi
  11478. fi
  11479. if test "X$found_dir" != "X"; then
  11480. if test -f "$dir/$libname.la"; then
  11481. found_la="$dir/$libname.la"
  11482. fi
  11483. fi
  11484. fi
  11485. if test "X$found_dir" = "X"; then
  11486. for x in $LDFLAGS $LTLIBINTL; do
  11487. acl_save_prefix="$prefix"
  11488. prefix="$acl_final_prefix"
  11489. acl_save_exec_prefix="$exec_prefix"
  11490. exec_prefix="$acl_final_exec_prefix"
  11491. eval x=\"$x\"
  11492. exec_prefix="$acl_save_exec_prefix"
  11493. prefix="$acl_save_prefix"
  11494. case "$x" in
  11495. -L*)
  11496. dir=`echo "X$x" | sed -e 's/^X-L//'`
  11497. if test -n "$acl_shlibext"; then
  11498. if test -f "$dir/$libname$shrext"; then
  11499. found_dir="$dir"
  11500. found_so="$dir/$libname$shrext"
  11501. else
  11502. if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
  11503. ver=`(cd "$dir" && \
  11504. for f in "$libname$shrext".*; do echo "$f"; done \
  11505. | sed -e "s,^$libname$shrext\\\\.,," \
  11506. | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
  11507. | sed 1q ) 2>/dev/null`
  11508. if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
  11509. found_dir="$dir"
  11510. found_so="$dir/$libname$shrext.$ver"
  11511. fi
  11512. else
  11513. eval library_names=\"$acl_library_names_spec\"
  11514. for f in $library_names; do
  11515. if test -f "$dir/$f"; then
  11516. found_dir="$dir"
  11517. found_so="$dir/$f"
  11518. break
  11519. fi
  11520. done
  11521. fi
  11522. fi
  11523. fi
  11524. if test "X$found_dir" = "X"; then
  11525. if test -f "$dir/$libname.$acl_libext"; then
  11526. found_dir="$dir"
  11527. found_a="$dir/$libname.$acl_libext"
  11528. fi
  11529. fi
  11530. if test "X$found_dir" != "X"; then
  11531. if test -f "$dir/$libname.la"; then
  11532. found_la="$dir/$libname.la"
  11533. fi
  11534. fi
  11535. ;;
  11536. esac
  11537. if test "X$found_dir" != "X"; then
  11538. break
  11539. fi
  11540. done
  11541. fi
  11542. if test "X$found_dir" != "X"; then
  11543. LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$found_dir -l$name"
  11544. if test "X$found_so" != "X"; then
  11545. if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/$acl_libdirstem"; then
  11546. LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
  11547. else
  11548. haveit=
  11549. for x in $ltrpathdirs; do
  11550. if test "X$x" = "X$found_dir"; then
  11551. haveit=yes
  11552. break
  11553. fi
  11554. done
  11555. if test -z "$haveit"; then
  11556. ltrpathdirs="$ltrpathdirs $found_dir"
  11557. fi
  11558. if test "$acl_hardcode_direct" = yes; then
  11559. LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
  11560. else
  11561. if test -n "$acl_hardcode_libdir_flag_spec" && test "$acl_hardcode_minus_L" = no; then
  11562. LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
  11563. haveit=
  11564. for x in $rpathdirs; do
  11565. if test "X$x" = "X$found_dir"; then
  11566. haveit=yes
  11567. break
  11568. fi
  11569. done
  11570. if test -z "$haveit"; then
  11571. rpathdirs="$rpathdirs $found_dir"
  11572. fi
  11573. else
  11574. haveit=
  11575. for x in $LDFLAGS $LIBINTL; do
  11576. acl_save_prefix="$prefix"
  11577. prefix="$acl_final_prefix"
  11578. acl_save_exec_prefix="$exec_prefix"
  11579. exec_prefix="$acl_final_exec_prefix"
  11580. eval x=\"$x\"
  11581. exec_prefix="$acl_save_exec_prefix"
  11582. prefix="$acl_save_prefix"
  11583. if test "X$x" = "X-L$found_dir"; then
  11584. haveit=yes
  11585. break
  11586. fi
  11587. done
  11588. if test -z "$haveit"; then
  11589. LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir"
  11590. fi
  11591. if test "$acl_hardcode_minus_L" != no; then
  11592. LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
  11593. else
  11594. LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
  11595. fi
  11596. fi
  11597. fi
  11598. fi
  11599. else
  11600. if test "X$found_a" != "X"; then
  11601. LIBINTL="${LIBINTL}${LIBINTL:+ }$found_a"
  11602. else
  11603. LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir -l$name"
  11604. fi
  11605. fi
  11606. additional_includedir=
  11607. case "$found_dir" in
  11608. */$acl_libdirstem | */$acl_libdirstem/)
  11609. basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem/"'*$,,'`
  11610. LIBINTL_PREFIX="$basedir"
  11611. additional_includedir="$basedir/include"
  11612. ;;
  11613. esac
  11614. if test "X$additional_includedir" != "X"; then
  11615. if test "X$additional_includedir" != "X/usr/include"; then
  11616. haveit=
  11617. if test "X$additional_includedir" = "X/usr/local/include"; then
  11618. if test -n "$GCC"; then
  11619. case $host_os in
  11620. linux* | gnu* | k*bsd*-gnu) haveit=yes;;
  11621. esac
  11622. fi
  11623. fi
  11624. if test -z "$haveit"; then
  11625. for x in $CPPFLAGS $INCINTL; do
  11626. acl_save_prefix="$prefix"
  11627. prefix="$acl_final_prefix"
  11628. acl_save_exec_prefix="$exec_prefix"
  11629. exec_prefix="$acl_final_exec_prefix"
  11630. eval x=\"$x\"
  11631. exec_prefix="$acl_save_exec_prefix"
  11632. prefix="$acl_save_prefix"
  11633. if test "X$x" = "X-I$additional_includedir"; then
  11634. haveit=yes
  11635. break
  11636. fi
  11637. done
  11638. if test -z "$haveit"; then
  11639. if test -d "$additional_includedir"; then
  11640. INCINTL="${INCINTL}${INCINTL:+ }-I$additional_includedir"
  11641. fi
  11642. fi
  11643. fi
  11644. fi
  11645. fi
  11646. if test -n "$found_la"; then
  11647. save_libdir="$libdir"
  11648. case "$found_la" in
  11649. */* | *\\*) . "$found_la" ;;
  11650. *) . "./$found_la" ;;
  11651. esac
  11652. libdir="$save_libdir"
  11653. for dep in $dependency_libs; do
  11654. case "$dep" in
  11655. -L*)
  11656. additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
  11657. if test "X$additional_libdir" != "X/usr/$acl_libdirstem"; then
  11658. haveit=
  11659. if test "X$additional_libdir" = "X/usr/local/$acl_libdirstem"; then
  11660. if test -n "$GCC"; then
  11661. case $host_os in
  11662. linux* | gnu* | k*bsd*-gnu) haveit=yes;;
  11663. esac
  11664. fi
  11665. fi
  11666. if test -z "$haveit"; then
  11667. haveit=
  11668. for x in $LDFLAGS $LIBINTL; do
  11669. acl_save_prefix="$prefix"
  11670. prefix="$acl_final_prefix"
  11671. acl_save_exec_prefix="$exec_prefix"
  11672. exec_prefix="$acl_final_exec_prefix"
  11673. eval x=\"$x\"
  11674. exec_prefix="$acl_save_exec_prefix"
  11675. prefix="$acl_save_prefix"
  11676. if test "X$x" = "X-L$additional_libdir"; then
  11677. haveit=yes
  11678. break
  11679. fi
  11680. done
  11681. if test -z "$haveit"; then
  11682. if test -d "$additional_libdir"; then
  11683. LIBINTL="${LIBINTL}${LIBINTL:+ }-L$additional_libdir"
  11684. fi
  11685. fi
  11686. haveit=
  11687. for x in $LDFLAGS $LTLIBINTL; do
  11688. acl_save_prefix="$prefix"
  11689. prefix="$acl_final_prefix"
  11690. acl_save_exec_prefix="$exec_prefix"
  11691. exec_prefix="$acl_final_exec_prefix"
  11692. eval x=\"$x\"
  11693. exec_prefix="$acl_save_exec_prefix"
  11694. prefix="$acl_save_prefix"
  11695. if test "X$x" = "X-L$additional_libdir"; then
  11696. haveit=yes
  11697. break
  11698. fi
  11699. done
  11700. if test -z "$haveit"; then
  11701. if test -d "$additional_libdir"; then
  11702. LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$additional_libdir"
  11703. fi
  11704. fi
  11705. fi
  11706. fi
  11707. ;;
  11708. -R*)
  11709. dir=`echo "X$dep" | sed -e 's/^X-R//'`
  11710. if test "$enable_rpath" != no; then
  11711. haveit=
  11712. for x in $rpathdirs; do
  11713. if test "X$x" = "X$dir"; then
  11714. haveit=yes
  11715. break
  11716. fi
  11717. done
  11718. if test -z "$haveit"; then
  11719. rpathdirs="$rpathdirs $dir"
  11720. fi
  11721. haveit=
  11722. for x in $ltrpathdirs; do
  11723. if test "X$x" = "X$dir"; then
  11724. haveit=yes
  11725. break
  11726. fi
  11727. done
  11728. if test -z "$haveit"; then
  11729. ltrpathdirs="$ltrpathdirs $dir"
  11730. fi
  11731. fi
  11732. ;;
  11733. -l*)
  11734. names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
  11735. ;;
  11736. *.la)
  11737. names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
  11738. ;;
  11739. *)
  11740. LIBINTL="${LIBINTL}${LIBINTL:+ }$dep"
  11741. LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$dep"
  11742. ;;
  11743. esac
  11744. done
  11745. fi
  11746. else
  11747. LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
  11748. LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-l$name"
  11749. fi
  11750. fi
  11751. fi
  11752. done
  11753. done
  11754. if test "X$rpathdirs" != "X"; then
  11755. if test -n "$acl_hardcode_libdir_separator"; then
  11756. alldirs=
  11757. for found_dir in $rpathdirs; do
  11758. alldirs="${alldirs}${alldirs:+$acl_hardcode_libdir_separator}$found_dir"
  11759. done
  11760. acl_save_libdir="$libdir"
  11761. libdir="$alldirs"
  11762. eval flag=\"$acl_hardcode_libdir_flag_spec\"
  11763. libdir="$acl_save_libdir"
  11764. LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
  11765. else
  11766. for found_dir in $rpathdirs; do
  11767. acl_save_libdir="$libdir"
  11768. libdir="$found_dir"
  11769. eval flag=\"$acl_hardcode_libdir_flag_spec\"
  11770. libdir="$acl_save_libdir"
  11771. LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
  11772. done
  11773. fi
  11774. fi
  11775. if test "X$ltrpathdirs" != "X"; then
  11776. for found_dir in $ltrpathdirs; do
  11777. LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-R$found_dir"
  11778. done
  11779. fi
  11780. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU gettext in libintl" >&5
  11781. $as_echo_n "checking for GNU gettext in libintl... " >&6; }
  11782. if { as_var=$gt_func_gnugettext_libintl; eval "test \"\${$as_var+set}\" = set"; }; then :
  11783. $as_echo_n "(cached) " >&6
  11784. else
  11785. gt_save_CPPFLAGS="$CPPFLAGS"
  11786. CPPFLAGS="$CPPFLAGS $INCINTL"
  11787. gt_save_LIBS="$LIBS"
  11788. LIBS="$LIBS $LIBINTL"
  11789. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11790. /* end confdefs.h. */
  11791. #include <libintl.h>
  11792. $gt_revision_test_code
  11793. extern int _nl_msg_cat_cntr;
  11794. extern
  11795. #ifdef __cplusplus
  11796. "C"
  11797. #endif
  11798. const char *_nl_expand_alias (const char *);
  11799. int
  11800. main ()
  11801. {
  11802. bindtextdomain ("", "");
  11803. return * gettext ("")$gt_expression_test_code + _nl_msg_cat_cntr + *_nl_expand_alias ("")
  11804. ;
  11805. return 0;
  11806. }
  11807. _ACEOF
  11808. if ac_fn_cxx_try_link "$LINENO"; then :
  11809. eval "$gt_func_gnugettext_libintl=yes"
  11810. else
  11811. eval "$gt_func_gnugettext_libintl=no"
  11812. fi
  11813. rm -f core conftest.err conftest.$ac_objext \
  11814. conftest$ac_exeext conftest.$ac_ext
  11815. if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" != yes; } && test -n "$LIBICONV"; then
  11816. LIBS="$LIBS $LIBICONV"
  11817. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11818. /* end confdefs.h. */
  11819. #include <libintl.h>
  11820. $gt_revision_test_code
  11821. extern int _nl_msg_cat_cntr;
  11822. extern
  11823. #ifdef __cplusplus
  11824. "C"
  11825. #endif
  11826. const char *_nl_expand_alias (const char *);
  11827. int
  11828. main ()
  11829. {
  11830. bindtextdomain ("", "");
  11831. return * gettext ("")$gt_expression_test_code + _nl_msg_cat_cntr + *_nl_expand_alias ("")
  11832. ;
  11833. return 0;
  11834. }
  11835. _ACEOF
  11836. if ac_fn_cxx_try_link "$LINENO"; then :
  11837. LIBINTL="$LIBINTL $LIBICONV"
  11838. LTLIBINTL="$LTLIBINTL $LTLIBICONV"
  11839. eval "$gt_func_gnugettext_libintl=yes"
  11840. fi
  11841. rm -f core conftest.err conftest.$ac_objext \
  11842. conftest$ac_exeext conftest.$ac_ext
  11843. fi
  11844. CPPFLAGS="$gt_save_CPPFLAGS"
  11845. LIBS="$gt_save_LIBS"
  11846. fi
  11847. eval ac_res=\$$gt_func_gnugettext_libintl
  11848. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  11849. $as_echo "$ac_res" >&6; }
  11850. fi
  11851. if { eval "gt_val=\$$gt_func_gnugettext_libc"; test "$gt_val" = "yes"; } \
  11852. || { { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; } \
  11853. && test "$PACKAGE" != gettext-runtime \
  11854. && test "$PACKAGE" != gettext-tools; }; then
  11855. gt_use_preinstalled_gnugettext=yes
  11856. else
  11857. LIBINTL=
  11858. LTLIBINTL=
  11859. INCINTL=
  11860. fi
  11861. if test "$gt_use_preinstalled_gnugettext" != "yes"; then
  11862. nls_cv_use_gnu_gettext=yes
  11863. fi
  11864. fi
  11865. if test "$nls_cv_use_gnu_gettext" = "yes"; then
  11866. BUILD_INCLUDED_LIBINTL=yes
  11867. USE_INCLUDED_LIBINTL=yes
  11868. LIBINTL="\${top_builddir}/intl/libintl.a $LIBICONV $LIBTHREAD"
  11869. LTLIBINTL="\${top_builddir}/intl/libintl.a $LTLIBICONV $LTLIBTHREAD"
  11870. LIBS=`echo " $LIBS " | sed -e 's/ -lintl / /' -e 's/^ //' -e 's/ $//'`
  11871. fi
  11872. CATOBJEXT=
  11873. if test "$gt_use_preinstalled_gnugettext" = "yes" \
  11874. || test "$nls_cv_use_gnu_gettext" = "yes"; then
  11875. CATOBJEXT=.gmo
  11876. fi
  11877. if test -n "$INTL_MACOSX_LIBS"; then
  11878. if test "$gt_use_preinstalled_gnugettext" = "yes" \
  11879. || test "$nls_cv_use_gnu_gettext" = "yes"; then
  11880. LIBINTL="$LIBINTL $INTL_MACOSX_LIBS"
  11881. LTLIBINTL="$LTLIBINTL $INTL_MACOSX_LIBS"
  11882. fi
  11883. fi
  11884. if test "$gt_use_preinstalled_gnugettext" = "yes" \
  11885. || test "$nls_cv_use_gnu_gettext" = "yes"; then
  11886. $as_echo "#define ENABLE_NLS 1" >>confdefs.h
  11887. else
  11888. USE_NLS=no
  11889. fi
  11890. fi
  11891. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use NLS" >&5
  11892. $as_echo_n "checking whether to use NLS... " >&6; }
  11893. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5
  11894. $as_echo "$USE_NLS" >&6; }
  11895. if test "$USE_NLS" = "yes"; then
  11896. { $as_echo "$as_me:${as_lineno-$LINENO}: checking where the gettext function comes from" >&5
  11897. $as_echo_n "checking where the gettext function comes from... " >&6; }
  11898. if test "$gt_use_preinstalled_gnugettext" = "yes"; then
  11899. if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; }; then
  11900. gt_source="external libintl"
  11901. else
  11902. gt_source="libc"
  11903. fi
  11904. else
  11905. gt_source="included intl directory"
  11906. fi
  11907. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_source" >&5
  11908. $as_echo "$gt_source" >&6; }
  11909. fi
  11910. if test "$USE_NLS" = "yes"; then
  11911. if test "$gt_use_preinstalled_gnugettext" = "yes"; then
  11912. if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; }; then
  11913. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libintl" >&5
  11914. $as_echo_n "checking how to link with libintl... " >&6; }
  11915. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBINTL" >&5
  11916. $as_echo "$LIBINTL" >&6; }
  11917. for element in $INCINTL; do
  11918. haveit=
  11919. for x in $CPPFLAGS; do
  11920. acl_save_prefix="$prefix"
  11921. prefix="$acl_final_prefix"
  11922. acl_save_exec_prefix="$exec_prefix"
  11923. exec_prefix="$acl_final_exec_prefix"
  11924. eval x=\"$x\"
  11925. exec_prefix="$acl_save_exec_prefix"
  11926. prefix="$acl_save_prefix"
  11927. if test "X$x" = "X$element"; then
  11928. haveit=yes
  11929. break
  11930. fi
  11931. done
  11932. if test -z "$haveit"; then
  11933. CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
  11934. fi
  11935. done
  11936. fi
  11937. $as_echo "#define HAVE_GETTEXT 1" >>confdefs.h
  11938. $as_echo "#define HAVE_DCGETTEXT 1" >>confdefs.h
  11939. fi
  11940. POSUB=po
  11941. fi
  11942. if test "$PACKAGE" = gettext-runtime || test "$PACKAGE" = gettext-tools; then
  11943. BUILD_INCLUDED_LIBINTL=yes
  11944. fi
  11945. nls_cv_header_intl=
  11946. nls_cv_header_libgt=
  11947. DATADIRNAME=share
  11948. INSTOBJEXT=.mo
  11949. GENCAT=gencat
  11950. INTLOBJS=
  11951. if test "$USE_INCLUDED_LIBINTL" = yes; then
  11952. INTLOBJS="\$(GETTOBJS)"
  11953. fi
  11954. INTL_LIBTOOL_SUFFIX_PREFIX=
  11955. INTLLIBS="$LIBINTL"
  11956. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for error_at_line" >&5
  11957. $as_echo_n "checking for error_at_line... " >&6; }
  11958. if test "${ac_cv_lib_error_at_line+set}" = set; then :
  11959. $as_echo_n "(cached) " >&6
  11960. else
  11961. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11962. /* end confdefs.h. */
  11963. #include <error.h>
  11964. int
  11965. main ()
  11966. {
  11967. error_at_line (0, 0, "", 0, "an error occurred");
  11968. ;
  11969. return 0;
  11970. }
  11971. _ACEOF
  11972. if ac_fn_cxx_try_link "$LINENO"; then :
  11973. ac_cv_lib_error_at_line=yes
  11974. else
  11975. ac_cv_lib_error_at_line=no
  11976. fi
  11977. rm -f core conftest.err conftest.$ac_objext \
  11978. conftest$ac_exeext conftest.$ac_ext
  11979. fi
  11980. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_error_at_line" >&5
  11981. $as_echo "$ac_cv_lib_error_at_line" >&6; }
  11982. if test $ac_cv_lib_error_at_line = no; then
  11983. case " $LIBOBJS " in
  11984. *" error.$ac_objext "* ) ;;
  11985. *) LIBOBJS="$LIBOBJS error.$ac_objext"
  11986. ;;
  11987. esac
  11988. fi
  11989. if test $ac_cv_c_compiler_gnu = yes; then
  11990. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC needs -traditional" >&5
  11991. $as_echo_n "checking whether $CC needs -traditional... " >&6; }
  11992. if test "${ac_cv_prog_gcc_traditional+set}" = set; then :
  11993. $as_echo_n "(cached) " >&6
  11994. else
  11995. ac_pattern="Autoconf.*'x'"
  11996. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11997. /* end confdefs.h. */
  11998. #include <sgtty.h>
  11999. Autoconf TIOCGETP
  12000. _ACEOF
  12001. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  12002. $EGREP "$ac_pattern" >/dev/null 2>&1; then :
  12003. ac_cv_prog_gcc_traditional=yes
  12004. else
  12005. ac_cv_prog_gcc_traditional=no
  12006. fi
  12007. rm -f conftest*
  12008. if test $ac_cv_prog_gcc_traditional = no; then
  12009. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12010. /* end confdefs.h. */
  12011. #include <termio.h>
  12012. Autoconf TCGETA
  12013. _ACEOF
  12014. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  12015. $EGREP "$ac_pattern" >/dev/null 2>&1; then :
  12016. ac_cv_prog_gcc_traditional=yes
  12017. fi
  12018. rm -f conftest*
  12019. fi
  12020. fi
  12021. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_gcc_traditional" >&5
  12022. $as_echo "$ac_cv_prog_gcc_traditional" >&6; }
  12023. if test $ac_cv_prog_gcc_traditional = yes; then
  12024. CC="$CC -traditional"
  12025. fi
  12026. fi
  12027. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working memcmp" >&5
  12028. $as_echo_n "checking for working memcmp... " >&6; }
  12029. if test "${ac_cv_func_memcmp_working+set}" = set; then :
  12030. $as_echo_n "(cached) " >&6
  12031. else
  12032. if test "$cross_compiling" = yes; then :
  12033. ac_cv_func_memcmp_working=no
  12034. else
  12035. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12036. /* end confdefs.h. */
  12037. $ac_includes_default
  12038. int
  12039. main ()
  12040. {
  12041. /* Some versions of memcmp are not 8-bit clean. */
  12042. char c0 = '\100', c1 = '\200', c2 = '\201';
  12043. if (memcmp(&c0, &c2, 1) >= 0 || memcmp(&c1, &c2, 1) >= 0)
  12044. return 1;
  12045. /* The Next x86 OpenStep bug shows up only when comparing 16 bytes
  12046. or more and with at least one buffer not starting on a 4-byte boundary.
  12047. William Lewis provided this test program. */
  12048. {
  12049. char foo[21];
  12050. char bar[21];
  12051. int i;
  12052. for (i = 0; i < 4; i++)
  12053. {
  12054. char *a = foo + i;
  12055. char *b = bar + i;
  12056. strcpy (a, "--------01111111");
  12057. strcpy (b, "--------10000000");
  12058. if (memcmp (a, b, 16) >= 0)
  12059. return 1;
  12060. }
  12061. return 0;
  12062. }
  12063. ;
  12064. return 0;
  12065. }
  12066. _ACEOF
  12067. if ac_fn_cxx_try_run "$LINENO"; then :
  12068. ac_cv_func_memcmp_working=yes
  12069. else
  12070. ac_cv_func_memcmp_working=no
  12071. fi
  12072. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  12073. conftest.$ac_objext conftest.beam conftest.$ac_ext
  12074. fi
  12075. fi
  12076. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_memcmp_working" >&5
  12077. $as_echo "$ac_cv_func_memcmp_working" >&6; }
  12078. test $ac_cv_func_memcmp_working = no && case " $LIBOBJS " in
  12079. *" memcmp.$ac_objext "* ) ;;
  12080. *) LIBOBJS="$LIBOBJS memcmp.$ac_objext"
  12081. ;;
  12082. esac
  12083. for ac_func in $ac_func_list
  12084. do :
  12085. as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
  12086. ac_fn_cxx_check_func "$LINENO" "$ac_func" "$as_ac_var"
  12087. eval as_val=\$$as_ac_var
  12088. if test "x$as_val" = x""yes; then :
  12089. cat >>confdefs.h <<_ACEOF
  12090. #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
  12091. _ACEOF
  12092. fi
  12093. done
  12094. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mktime" >&5
  12095. $as_echo_n "checking for working mktime... " >&6; }
  12096. if test "${ac_cv_func_working_mktime+set}" = set; then :
  12097. $as_echo_n "(cached) " >&6
  12098. else
  12099. if test "$cross_compiling" = yes; then :
  12100. ac_cv_func_working_mktime=no
  12101. else
  12102. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12103. /* end confdefs.h. */
  12104. /* Test program from Paul Eggert and Tony Leneis. */
  12105. #ifdef TIME_WITH_SYS_TIME
  12106. # include <sys/time.h>
  12107. # include <time.h>
  12108. #else
  12109. # ifdef HAVE_SYS_TIME_H
  12110. # include <sys/time.h>
  12111. # else
  12112. # include <time.h>
  12113. # endif
  12114. #endif
  12115. #include <limits.h>
  12116. #include <stdlib.h>
  12117. #ifdef HAVE_UNISTD_H
  12118. # include <unistd.h>
  12119. #endif
  12120. #ifndef HAVE_ALARM
  12121. # define alarm(X) /* empty */
  12122. #endif
  12123. /* Work around redefinition to rpl_putenv by other config tests. */
  12124. #undef putenv
  12125. static time_t time_t_max;
  12126. static time_t time_t_min;
  12127. /* Values we'll use to set the TZ environment variable. */
  12128. static char *tz_strings[] = {
  12129. (char *) 0, "TZ=GMT0", "TZ=JST-9",
  12130. "TZ=EST+3EDT+2,M10.1.0/00:00:00,M2.3.0/00:00:00"
  12131. };
  12132. #define N_STRINGS (sizeof (tz_strings) / sizeof (tz_strings[0]))
  12133. /* Return 0 if mktime fails to convert a date in the spring-forward gap.
  12134. Based on a problem report from Andreas Jaeger. */
  12135. static int
  12136. spring_forward_gap ()
  12137. {
  12138. /* glibc (up to about 1998-10-07) failed this test. */
  12139. struct tm tm;
  12140. /* Use the portable POSIX.1 specification "TZ=PST8PDT,M4.1.0,M10.5.0"
  12141. instead of "TZ=America/Vancouver" in order to detect the bug even
  12142. on systems that don't support the Olson extension, or don't have the
  12143. full zoneinfo tables installed. */
  12144. putenv ("TZ=PST8PDT,M4.1.0,M10.5.0");
  12145. tm.tm_year = 98;
  12146. tm.tm_mon = 3;
  12147. tm.tm_mday = 5;
  12148. tm.tm_hour = 2;
  12149. tm.tm_min = 0;
  12150. tm.tm_sec = 0;
  12151. tm.tm_isdst = -1;
  12152. return mktime (&tm) != (time_t) -1;
  12153. }
  12154. static int
  12155. mktime_test1 (now)
  12156. time_t now;
  12157. {
  12158. struct tm *lt;
  12159. return ! (lt = localtime (&now)) || mktime (lt) == now;
  12160. }
  12161. static int
  12162. mktime_test (now)
  12163. time_t now;
  12164. {
  12165. return (mktime_test1 (now)
  12166. && mktime_test1 ((time_t) (time_t_max - now))
  12167. && mktime_test1 ((time_t) (time_t_min + now)));
  12168. }
  12169. static int
  12170. irix_6_4_bug ()
  12171. {
  12172. /* Based on code from Ariel Faigon. */
  12173. struct tm tm;
  12174. tm.tm_year = 96;
  12175. tm.tm_mon = 3;
  12176. tm.tm_mday = 0;
  12177. tm.tm_hour = 0;
  12178. tm.tm_min = 0;
  12179. tm.tm_sec = 0;
  12180. tm.tm_isdst = -1;
  12181. mktime (&tm);
  12182. return tm.tm_mon == 2 && tm.tm_mday == 31;
  12183. }
  12184. static int
  12185. bigtime_test (j)
  12186. int j;
  12187. {
  12188. struct tm tm;
  12189. time_t now;
  12190. tm.tm_year = tm.tm_mon = tm.tm_mday = tm.tm_hour = tm.tm_min = tm.tm_sec = j;
  12191. now = mktime (&tm);
  12192. if (now != (time_t) -1)
  12193. {
  12194. struct tm *lt = localtime (&now);
  12195. if (! (lt
  12196. && lt->tm_year == tm.tm_year
  12197. && lt->tm_mon == tm.tm_mon
  12198. && lt->tm_mday == tm.tm_mday
  12199. && lt->tm_hour == tm.tm_hour
  12200. && lt->tm_min == tm.tm_min
  12201. && lt->tm_sec == tm.tm_sec
  12202. && lt->tm_yday == tm.tm_yday
  12203. && lt->tm_wday == tm.tm_wday
  12204. && ((lt->tm_isdst < 0 ? -1 : 0 < lt->tm_isdst)
  12205. == (tm.tm_isdst < 0 ? -1 : 0 < tm.tm_isdst))))
  12206. return 0;
  12207. }
  12208. return 1;
  12209. }
  12210. static int
  12211. year_2050_test ()
  12212. {
  12213. /* The correct answer for 2050-02-01 00:00:00 in Pacific time,
  12214. ignoring leap seconds. */
  12215. unsigned long int answer = 2527315200UL;
  12216. struct tm tm;
  12217. time_t t;
  12218. tm.tm_year = 2050 - 1900;
  12219. tm.tm_mon = 2 - 1;
  12220. tm.tm_mday = 1;
  12221. tm.tm_hour = tm.tm_min = tm.tm_sec = 0;
  12222. tm.tm_isdst = -1;
  12223. /* Use the portable POSIX.1 specification "TZ=PST8PDT,M4.1.0,M10.5.0"
  12224. instead of "TZ=America/Vancouver" in order to detect the bug even
  12225. on systems that don't support the Olson extension, or don't have the
  12226. full zoneinfo tables installed. */
  12227. putenv ("TZ=PST8PDT,M4.1.0,M10.5.0");
  12228. t = mktime (&tm);
  12229. /* Check that the result is either a failure, or close enough
  12230. to the correct answer that we can assume the discrepancy is
  12231. due to leap seconds. */
  12232. return (t == (time_t) -1
  12233. || (0 < t && answer - 120 <= t && t <= answer + 120));
  12234. }
  12235. int
  12236. main ()
  12237. {
  12238. time_t t, delta;
  12239. int i, j;
  12240. /* This test makes some buggy mktime implementations loop.
  12241. Give up after 60 seconds; a mktime slower than that
  12242. isn't worth using anyway. */
  12243. alarm (60);
  12244. for (;;)
  12245. {
  12246. t = (time_t_max << 1) + 1;
  12247. if (t <= time_t_max)
  12248. break;
  12249. time_t_max = t;
  12250. }
  12251. time_t_min = - ((time_t) ~ (time_t) 0 == (time_t) -1) - time_t_max;
  12252. delta = time_t_max / 997; /* a suitable prime number */
  12253. for (i = 0; i < N_STRINGS; i++)
  12254. {
  12255. if (tz_strings[i])
  12256. putenv (tz_strings[i]);
  12257. for (t = 0; t <= time_t_max - delta; t += delta)
  12258. if (! mktime_test (t))
  12259. return 1;
  12260. if (! (mktime_test ((time_t) 1)
  12261. && mktime_test ((time_t) (60 * 60))
  12262. && mktime_test ((time_t) (60 * 60 * 24))))
  12263. return 1;
  12264. for (j = 1; ; j <<= 1)
  12265. if (! bigtime_test (j))
  12266. return 1;
  12267. else if (INT_MAX / 2 < j)
  12268. break;
  12269. if (! bigtime_test (INT_MAX))
  12270. return 1;
  12271. }
  12272. return ! (irix_6_4_bug () && spring_forward_gap () && year_2050_test ());
  12273. }
  12274. _ACEOF
  12275. if ac_fn_cxx_try_run "$LINENO"; then :
  12276. ac_cv_func_working_mktime=yes
  12277. else
  12278. ac_cv_func_working_mktime=no
  12279. fi
  12280. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  12281. conftest.$ac_objext conftest.beam conftest.$ac_ext
  12282. fi
  12283. fi
  12284. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_working_mktime" >&5
  12285. $as_echo "$ac_cv_func_working_mktime" >&6; }
  12286. if test $ac_cv_func_working_mktime = no; then
  12287. case " $LIBOBJS " in
  12288. *" mktime.$ac_objext "* ) ;;
  12289. *) LIBOBJS="$LIBOBJS mktime.$ac_objext"
  12290. ;;
  12291. esac
  12292. fi
  12293. for ac_func in getpagesize
  12294. do :
  12295. ac_fn_cxx_check_func "$LINENO" "getpagesize" "ac_cv_func_getpagesize"
  12296. if test "x$ac_cv_func_getpagesize" = x""yes; then :
  12297. cat >>confdefs.h <<_ACEOF
  12298. #define HAVE_GETPAGESIZE 1
  12299. _ACEOF
  12300. fi
  12301. done
  12302. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mmap" >&5
  12303. $as_echo_n "checking for working mmap... " >&6; }
  12304. if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then :
  12305. $as_echo_n "(cached) " >&6
  12306. else
  12307. if test "$cross_compiling" = yes; then :
  12308. ac_cv_func_mmap_fixed_mapped=no
  12309. else
  12310. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12311. /* end confdefs.h. */
  12312. $ac_includes_default
  12313. /* malloc might have been renamed as rpl_malloc. */
  12314. #undef malloc
  12315. /* Thanks to Mike Haertel and Jim Avera for this test.
  12316. Here is a matrix of mmap possibilities:
  12317. mmap private not fixed
  12318. mmap private fixed at somewhere currently unmapped
  12319. mmap private fixed at somewhere already mapped
  12320. mmap shared not fixed
  12321. mmap shared fixed at somewhere currently unmapped
  12322. mmap shared fixed at somewhere already mapped
  12323. For private mappings, we should verify that changes cannot be read()
  12324. back from the file, nor mmap's back from the file at a different
  12325. address. (There have been systems where private was not correctly
  12326. implemented like the infamous i386 svr4.0, and systems where the
  12327. VM page cache was not coherent with the file system buffer cache
  12328. like early versions of FreeBSD and possibly contemporary NetBSD.)
  12329. For shared mappings, we should conversely verify that changes get
  12330. propagated back to all the places they're supposed to be.
  12331. Grep wants private fixed already mapped.
  12332. The main things grep needs to know about mmap are:
  12333. * does it exist and is it safe to write into the mmap'd area
  12334. * how to use it (BSD variants) */
  12335. #include <fcntl.h>
  12336. #include <sys/mman.h>
  12337. #if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
  12338. char *malloc ();
  12339. #endif
  12340. /* This mess was copied from the GNU getpagesize.h. */
  12341. #ifndef HAVE_GETPAGESIZE
  12342. # ifdef _SC_PAGESIZE
  12343. # define getpagesize() sysconf(_SC_PAGESIZE)
  12344. # else /* no _SC_PAGESIZE */
  12345. # ifdef HAVE_SYS_PARAM_H
  12346. # include <sys/param.h>
  12347. # ifdef EXEC_PAGESIZE
  12348. # define getpagesize() EXEC_PAGESIZE
  12349. # else /* no EXEC_PAGESIZE */
  12350. # ifdef NBPG
  12351. # define getpagesize() NBPG * CLSIZE
  12352. # ifndef CLSIZE
  12353. # define CLSIZE 1
  12354. # endif /* no CLSIZE */
  12355. # else /* no NBPG */
  12356. # ifdef NBPC
  12357. # define getpagesize() NBPC
  12358. # else /* no NBPC */
  12359. # ifdef PAGESIZE
  12360. # define getpagesize() PAGESIZE
  12361. # endif /* PAGESIZE */
  12362. # endif /* no NBPC */
  12363. # endif /* no NBPG */
  12364. # endif /* no EXEC_PAGESIZE */
  12365. # else /* no HAVE_SYS_PARAM_H */
  12366. # define getpagesize() 8192 /* punt totally */
  12367. # endif /* no HAVE_SYS_PARAM_H */
  12368. # endif /* no _SC_PAGESIZE */
  12369. #endif /* no HAVE_GETPAGESIZE */
  12370. int
  12371. main ()
  12372. {
  12373. char *data, *data2, *data3;
  12374. const char *cdata2;
  12375. int i, pagesize;
  12376. int fd, fd2;
  12377. pagesize = getpagesize ();
  12378. /* First, make a file with some known garbage in it. */
  12379. data = (char *) malloc (pagesize);
  12380. if (!data)
  12381. return 1;
  12382. for (i = 0; i < pagesize; ++i)
  12383. *(data + i) = rand ();
  12384. umask (0);
  12385. fd = creat ("conftest.mmap", 0600);
  12386. if (fd < 0)
  12387. return 2;
  12388. if (write (fd, data, pagesize) != pagesize)
  12389. return 3;
  12390. close (fd);
  12391. /* Next, check that the tail of a page is zero-filled. File must have
  12392. non-zero length, otherwise we risk SIGBUS for entire page. */
  12393. fd2 = open ("conftest.txt", O_RDWR | O_CREAT | O_TRUNC, 0600);
  12394. if (fd2 < 0)
  12395. return 4;
  12396. cdata2 = "";
  12397. if (write (fd2, cdata2, 1) != 1)
  12398. return 5;
  12399. data2 = (char *) mmap (0, pagesize, PROT_READ | PROT_WRITE, MAP_SHARED, fd2, 0L);
  12400. if (data2 == MAP_FAILED)
  12401. return 6;
  12402. for (i = 0; i < pagesize; ++i)
  12403. if (*(data2 + i))
  12404. return 7;
  12405. close (fd2);
  12406. if (munmap (data2, pagesize))
  12407. return 8;
  12408. /* Next, try to mmap the file at a fixed address which already has
  12409. something else allocated at it. If we can, also make sure that
  12410. we see the same garbage. */
  12411. fd = open ("conftest.mmap", O_RDWR);
  12412. if (fd < 0)
  12413. return 9;
  12414. if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
  12415. MAP_PRIVATE | MAP_FIXED, fd, 0L))
  12416. return 10;
  12417. for (i = 0; i < pagesize; ++i)
  12418. if (*(data + i) != *(data2 + i))
  12419. return 11;
  12420. /* Finally, make sure that changes to the mapped area do not
  12421. percolate back to the file as seen by read(). (This is a bug on
  12422. some variants of i386 svr4.0.) */
  12423. for (i = 0; i < pagesize; ++i)
  12424. *(data2 + i) = *(data2 + i) + 1;
  12425. data3 = (char *) malloc (pagesize);
  12426. if (!data3)
  12427. return 12;
  12428. if (read (fd, data3, pagesize) != pagesize)
  12429. return 13;
  12430. for (i = 0; i < pagesize; ++i)
  12431. if (*(data + i) != *(data3 + i))
  12432. return 14;
  12433. close (fd);
  12434. return 0;
  12435. }
  12436. _ACEOF
  12437. if ac_fn_cxx_try_run "$LINENO"; then :
  12438. ac_cv_func_mmap_fixed_mapped=yes
  12439. else
  12440. ac_cv_func_mmap_fixed_mapped=no
  12441. fi
  12442. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  12443. conftest.$ac_objext conftest.beam conftest.$ac_ext
  12444. fi
  12445. fi
  12446. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_mmap_fixed_mapped" >&5
  12447. $as_echo "$ac_cv_func_mmap_fixed_mapped" >&6; }
  12448. if test $ac_cv_func_mmap_fixed_mapped = yes; then
  12449. $as_echo "#define HAVE_MMAP 1" >>confdefs.h
  12450. fi
  12451. rm -f conftest.mmap conftest.txt
  12452. for ac_header in sys/select.h sys/socket.h
  12453. do :
  12454. as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
  12455. ac_fn_cxx_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
  12456. eval as_val=\$$as_ac_Header
  12457. if test "x$as_val" = x""yes; then :
  12458. cat >>confdefs.h <<_ACEOF
  12459. #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
  12460. _ACEOF
  12461. fi
  12462. done
  12463. { $as_echo "$as_me:${as_lineno-$LINENO}: checking types of arguments for select" >&5
  12464. $as_echo_n "checking types of arguments for select... " >&6; }
  12465. if test "${ac_cv_func_select_args+set}" = set; then :
  12466. $as_echo_n "(cached) " >&6
  12467. else
  12468. for ac_arg234 in 'fd_set *' 'int *' 'void *'; do
  12469. for ac_arg1 in 'int' 'size_t' 'unsigned long int' 'unsigned int'; do
  12470. for ac_arg5 in 'struct timeval *' 'const struct timeval *'; do
  12471. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12472. /* end confdefs.h. */
  12473. $ac_includes_default
  12474. #ifdef HAVE_SYS_SELECT_H
  12475. # include <sys/select.h>
  12476. #endif
  12477. #ifdef HAVE_SYS_SOCKET_H
  12478. # include <sys/socket.h>
  12479. #endif
  12480. int
  12481. main ()
  12482. {
  12483. extern int select ($ac_arg1,
  12484. $ac_arg234, $ac_arg234, $ac_arg234,
  12485. $ac_arg5);
  12486. ;
  12487. return 0;
  12488. }
  12489. _ACEOF
  12490. if ac_fn_cxx_try_compile "$LINENO"; then :
  12491. ac_cv_func_select_args="$ac_arg1,$ac_arg234,$ac_arg5"; break 3
  12492. fi
  12493. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  12494. done
  12495. done
  12496. done
  12497. # Provide a safe default value.
  12498. : ${ac_cv_func_select_args='int,int *,struct timeval *'}
  12499. fi
  12500. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_select_args" >&5
  12501. $as_echo "$ac_cv_func_select_args" >&6; }
  12502. ac_save_IFS=$IFS; IFS=','
  12503. set dummy `echo "$ac_cv_func_select_args" | sed 's/\*/\*/g'`
  12504. IFS=$ac_save_IFS
  12505. shift
  12506. cat >>confdefs.h <<_ACEOF
  12507. #define SELECT_TYPE_ARG1 $1
  12508. _ACEOF
  12509. cat >>confdefs.h <<_ACEOF
  12510. #define SELECT_TYPE_ARG234 ($2)
  12511. _ACEOF
  12512. cat >>confdefs.h <<_ACEOF
  12513. #define SELECT_TYPE_ARG5 ($3)
  12514. _ACEOF
  12515. rm -f conftest*
  12516. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether lstat correctly handles trailing slash" >&5
  12517. $as_echo_n "checking whether lstat correctly handles trailing slash... " >&6; }
  12518. if test "${ac_cv_func_lstat_dereferences_slashed_symlink+set}" = set; then :
  12519. $as_echo_n "(cached) " >&6
  12520. else
  12521. rm -f conftest.sym conftest.file
  12522. echo >conftest.file
  12523. if test "$as_ln_s" = "ln -s" && ln -s conftest.file conftest.sym; then
  12524. if test "$cross_compiling" = yes; then :
  12525. ac_cv_func_lstat_dereferences_slashed_symlink=no
  12526. else
  12527. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12528. /* end confdefs.h. */
  12529. $ac_includes_default
  12530. int
  12531. main ()
  12532. {
  12533. struct stat sbuf;
  12534. /* Linux will dereference the symlink and fail, as required by POSIX.
  12535. That is better in the sense that it means we will not
  12536. have to compile and use the lstat wrapper. */
  12537. return lstat ("conftest.sym/", &sbuf) == 0;
  12538. ;
  12539. return 0;
  12540. }
  12541. _ACEOF
  12542. if ac_fn_cxx_try_run "$LINENO"; then :
  12543. ac_cv_func_lstat_dereferences_slashed_symlink=yes
  12544. else
  12545. ac_cv_func_lstat_dereferences_slashed_symlink=no
  12546. fi
  12547. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  12548. conftest.$ac_objext conftest.beam conftest.$ac_ext
  12549. fi
  12550. else
  12551. # If the `ln -s' command failed, then we probably don't even
  12552. # have an lstat function.
  12553. ac_cv_func_lstat_dereferences_slashed_symlink=no
  12554. fi
  12555. rm -f conftest.sym conftest.file
  12556. fi
  12557. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_lstat_dereferences_slashed_symlink" >&5
  12558. $as_echo "$ac_cv_func_lstat_dereferences_slashed_symlink" >&6; }
  12559. test $ac_cv_func_lstat_dereferences_slashed_symlink = yes &&
  12560. cat >>confdefs.h <<_ACEOF
  12561. #define LSTAT_FOLLOWS_SLASHED_SYMLINK 1
  12562. _ACEOF
  12563. if test "x$ac_cv_func_lstat_dereferences_slashed_symlink" = xno; then
  12564. case " $LIBOBJS " in
  12565. *" lstat.$ac_objext "* ) ;;
  12566. *) LIBOBJS="$LIBOBJS lstat.$ac_objext"
  12567. ;;
  12568. esac
  12569. fi
  12570. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stat accepts an empty string" >&5
  12571. $as_echo_n "checking whether stat accepts an empty string... " >&6; }
  12572. if test "${ac_cv_func_stat_empty_string_bug+set}" = set; then :
  12573. $as_echo_n "(cached) " >&6
  12574. else
  12575. if test "$cross_compiling" = yes; then :
  12576. ac_cv_func_stat_empty_string_bug=yes
  12577. else
  12578. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12579. /* end confdefs.h. */
  12580. $ac_includes_default
  12581. int
  12582. main ()
  12583. {
  12584. struct stat sbuf;
  12585. return stat ("", &sbuf) == 0;
  12586. ;
  12587. return 0;
  12588. }
  12589. _ACEOF
  12590. if ac_fn_cxx_try_run "$LINENO"; then :
  12591. ac_cv_func_stat_empty_string_bug=no
  12592. else
  12593. ac_cv_func_stat_empty_string_bug=yes
  12594. fi
  12595. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  12596. conftest.$ac_objext conftest.beam conftest.$ac_ext
  12597. fi
  12598. fi
  12599. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_stat_empty_string_bug" >&5
  12600. $as_echo "$ac_cv_func_stat_empty_string_bug" >&6; }
  12601. if test $ac_cv_func_stat_empty_string_bug = yes; then
  12602. case " $LIBOBJS " in
  12603. *" stat.$ac_objext "* ) ;;
  12604. *) LIBOBJS="$LIBOBJS stat.$ac_objext"
  12605. ;;
  12606. esac
  12607. cat >>confdefs.h <<_ACEOF
  12608. #define HAVE_STAT_EMPTY_STRING_BUG 1
  12609. _ACEOF
  12610. fi
  12611. for ac_func in strftime
  12612. do :
  12613. ac_fn_cxx_check_func "$LINENO" "strftime" "ac_cv_func_strftime"
  12614. if test "x$ac_cv_func_strftime" = x""yes; then :
  12615. cat >>confdefs.h <<_ACEOF
  12616. #define HAVE_STRFTIME 1
  12617. _ACEOF
  12618. else
  12619. # strftime is in -lintl on SCO UNIX.
  12620. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for strftime in -lintl" >&5
  12621. $as_echo_n "checking for strftime in -lintl... " >&6; }
  12622. if test "${ac_cv_lib_intl_strftime+set}" = set; then :
  12623. $as_echo_n "(cached) " >&6
  12624. else
  12625. ac_check_lib_save_LIBS=$LIBS
  12626. LIBS="-lintl $LIBS"
  12627. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12628. /* end confdefs.h. */
  12629. /* Override any GCC internal prototype to avoid an error.
  12630. Use char because int might match the return type of a GCC
  12631. builtin and then its argument prototype would still apply. */
  12632. #ifdef __cplusplus
  12633. extern "C"
  12634. #endif
  12635. char strftime ();
  12636. int
  12637. main ()
  12638. {
  12639. return strftime ();
  12640. ;
  12641. return 0;
  12642. }
  12643. _ACEOF
  12644. if ac_fn_cxx_try_link "$LINENO"; then :
  12645. ac_cv_lib_intl_strftime=yes
  12646. else
  12647. ac_cv_lib_intl_strftime=no
  12648. fi
  12649. rm -f core conftest.err conftest.$ac_objext \
  12650. conftest$ac_exeext conftest.$ac_ext
  12651. LIBS=$ac_check_lib_save_LIBS
  12652. fi
  12653. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_intl_strftime" >&5
  12654. $as_echo "$ac_cv_lib_intl_strftime" >&6; }
  12655. if test "x$ac_cv_lib_intl_strftime" = x""yes; then :
  12656. $as_echo "#define HAVE_STRFTIME 1" >>confdefs.h
  12657. LIBS="-lintl $LIBS"
  12658. fi
  12659. fi
  12660. done
  12661. for ac_func in vprintf
  12662. do :
  12663. ac_fn_cxx_check_func "$LINENO" "vprintf" "ac_cv_func_vprintf"
  12664. if test "x$ac_cv_func_vprintf" = x""yes; then :
  12665. cat >>confdefs.h <<_ACEOF
  12666. #define HAVE_VPRINTF 1
  12667. _ACEOF
  12668. ac_fn_cxx_check_func "$LINENO" "_doprnt" "ac_cv_func__doprnt"
  12669. if test "x$ac_cv_func__doprnt" = x""yes; then :
  12670. $as_echo "#define HAVE_DOPRNT 1" >>confdefs.h
  12671. fi
  12672. fi
  12673. done
  12674. for ac_header in vfork.h
  12675. do :
  12676. ac_fn_cxx_check_header_mongrel "$LINENO" "vfork.h" "ac_cv_header_vfork_h" "$ac_includes_default"
  12677. if test "x$ac_cv_header_vfork_h" = x""yes; then :
  12678. cat >>confdefs.h <<_ACEOF
  12679. #define HAVE_VFORK_H 1
  12680. _ACEOF
  12681. fi
  12682. done
  12683. for ac_func in fork vfork
  12684. do :
  12685. as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
  12686. ac_fn_cxx_check_func "$LINENO" "$ac_func" "$as_ac_var"
  12687. eval as_val=\$$as_ac_var
  12688. if test "x$as_val" = x""yes; then :
  12689. cat >>confdefs.h <<_ACEOF
  12690. #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
  12691. _ACEOF
  12692. fi
  12693. done
  12694. if test "x$ac_cv_func_fork" = xyes; then
  12695. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working fork" >&5
  12696. $as_echo_n "checking for working fork... " >&6; }
  12697. if test "${ac_cv_func_fork_works+set}" = set; then :
  12698. $as_echo_n "(cached) " >&6
  12699. else
  12700. if test "$cross_compiling" = yes; then :
  12701. ac_cv_func_fork_works=cross
  12702. else
  12703. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12704. /* end confdefs.h. */
  12705. $ac_includes_default
  12706. int
  12707. main ()
  12708. {
  12709. /* By Ruediger Kuhlmann. */
  12710. return fork () < 0;
  12711. ;
  12712. return 0;
  12713. }
  12714. _ACEOF
  12715. if ac_fn_cxx_try_run "$LINENO"; then :
  12716. ac_cv_func_fork_works=yes
  12717. else
  12718. ac_cv_func_fork_works=no
  12719. fi
  12720. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  12721. conftest.$ac_objext conftest.beam conftest.$ac_ext
  12722. fi
  12723. fi
  12724. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_fork_works" >&5
  12725. $as_echo "$ac_cv_func_fork_works" >&6; }
  12726. else
  12727. ac_cv_func_fork_works=$ac_cv_func_fork
  12728. fi
  12729. if test "x$ac_cv_func_fork_works" = xcross; then
  12730. case $host in
  12731. *-*-amigaos* | *-*-msdosdjgpp*)
  12732. # Override, as these systems have only a dummy fork() stub
  12733. ac_cv_func_fork_works=no
  12734. ;;
  12735. *)
  12736. ac_cv_func_fork_works=yes
  12737. ;;
  12738. esac
  12739. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
  12740. $as_echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
  12741. fi
  12742. ac_cv_func_vfork_works=$ac_cv_func_vfork
  12743. if test "x$ac_cv_func_vfork" = xyes; then
  12744. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working vfork" >&5
  12745. $as_echo_n "checking for working vfork... " >&6; }
  12746. if test "${ac_cv_func_vfork_works+set}" = set; then :
  12747. $as_echo_n "(cached) " >&6
  12748. else
  12749. if test "$cross_compiling" = yes; then :
  12750. ac_cv_func_vfork_works=cross
  12751. else
  12752. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12753. /* end confdefs.h. */
  12754. /* Thanks to Paul Eggert for this test. */
  12755. $ac_includes_default
  12756. #include <sys/wait.h>
  12757. #ifdef HAVE_VFORK_H
  12758. # include <vfork.h>
  12759. #endif
  12760. /* On some sparc systems, changes by the child to local and incoming
  12761. argument registers are propagated back to the parent. The compiler
  12762. is told about this with #include <vfork.h>, but some compilers
  12763. (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
  12764. static variable whose address is put into a register that is
  12765. clobbered by the vfork. */
  12766. static void
  12767. #ifdef __cplusplus
  12768. sparc_address_test (int arg)
  12769. # else
  12770. sparc_address_test (arg) int arg;
  12771. #endif
  12772. {
  12773. static pid_t child;
  12774. if (!child) {
  12775. child = vfork ();
  12776. if (child < 0) {
  12777. perror ("vfork");
  12778. _exit(2);
  12779. }
  12780. if (!child) {
  12781. arg = getpid();
  12782. write(-1, "", 0);
  12783. _exit (arg);
  12784. }
  12785. }
  12786. }
  12787. int
  12788. main ()
  12789. {
  12790. pid_t parent = getpid ();
  12791. pid_t child;
  12792. sparc_address_test (0);
  12793. child = vfork ();
  12794. if (child == 0) {
  12795. /* Here is another test for sparc vfork register problems. This
  12796. test uses lots of local variables, at least as many local
  12797. variables as main has allocated so far including compiler
  12798. temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
  12799. 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
  12800. reuse the register of parent for one of the local variables,
  12801. since it will think that parent can't possibly be used any more
  12802. in this routine. Assigning to the local variable will thus
  12803. munge parent in the parent process. */
  12804. pid_t
  12805. p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
  12806. p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
  12807. /* Convince the compiler that p..p7 are live; otherwise, it might
  12808. use the same hardware register for all 8 local variables. */
  12809. if (p != p1 || p != p2 || p != p3 || p != p4
  12810. || p != p5 || p != p6 || p != p7)
  12811. _exit(1);
  12812. /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
  12813. from child file descriptors. If the child closes a descriptor
  12814. before it execs or exits, this munges the parent's descriptor
  12815. as well. Test for this by closing stdout in the child. */
  12816. _exit(close(fileno(stdout)) != 0);
  12817. } else {
  12818. int status;
  12819. struct stat st;
  12820. while (wait(&status) != child)
  12821. ;
  12822. return (
  12823. /* Was there some problem with vforking? */
  12824. child < 0
  12825. /* Did the child fail? (This shouldn't happen.) */
  12826. || status
  12827. /* Did the vfork/compiler bug occur? */
  12828. || parent != getpid()
  12829. /* Did the file descriptor bug occur? */
  12830. || fstat(fileno(stdout), &st) != 0
  12831. );
  12832. }
  12833. }
  12834. _ACEOF
  12835. if ac_fn_cxx_try_run "$LINENO"; then :
  12836. ac_cv_func_vfork_works=yes
  12837. else
  12838. ac_cv_func_vfork_works=no
  12839. fi
  12840. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  12841. conftest.$ac_objext conftest.beam conftest.$ac_ext
  12842. fi
  12843. fi
  12844. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_vfork_works" >&5
  12845. $as_echo "$ac_cv_func_vfork_works" >&6; }
  12846. fi;
  12847. if test "x$ac_cv_func_fork_works" = xcross; then
  12848. ac_cv_func_vfork_works=$ac_cv_func_vfork
  12849. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
  12850. $as_echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
  12851. fi
  12852. if test "x$ac_cv_func_vfork_works" = xyes; then
  12853. $as_echo "#define HAVE_WORKING_VFORK 1" >>confdefs.h
  12854. else
  12855. $as_echo "#define vfork fork" >>confdefs.h
  12856. fi
  12857. if test "x$ac_cv_func_fork_works" = xyes; then
  12858. $as_echo "#define HAVE_WORKING_FORK 1" >>confdefs.h
  12859. fi
  12860. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working strtod" >&5
  12861. $as_echo_n "checking for working strtod... " >&6; }
  12862. if test "${ac_cv_func_strtod+set}" = set; then :
  12863. $as_echo_n "(cached) " >&6
  12864. else
  12865. if test "$cross_compiling" = yes; then :
  12866. ac_cv_func_strtod=no
  12867. else
  12868. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12869. /* end confdefs.h. */
  12870. $ac_includes_default
  12871. #ifndef strtod
  12872. double strtod ();
  12873. #endif
  12874. int
  12875. main()
  12876. {
  12877. {
  12878. /* Some versions of Linux strtod mis-parse strings with leading '+'. */
  12879. char *string = " +69";
  12880. char *term;
  12881. double value;
  12882. value = strtod (string, &term);
  12883. if (value != 69 || term != (string + 4))
  12884. return 1;
  12885. }
  12886. {
  12887. /* Under Solaris 2.4, strtod returns the wrong value for the
  12888. terminating character under some conditions. */
  12889. char *string = "NaN";
  12890. char *term;
  12891. strtod (string, &term);
  12892. if (term != string && *(term - 1) == 0)
  12893. return 1;
  12894. }
  12895. return 0;
  12896. }
  12897. _ACEOF
  12898. if ac_fn_cxx_try_run "$LINENO"; then :
  12899. ac_cv_func_strtod=yes
  12900. else
  12901. ac_cv_func_strtod=no
  12902. fi
  12903. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  12904. conftest.$ac_objext conftest.beam conftest.$ac_ext
  12905. fi
  12906. fi
  12907. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_strtod" >&5
  12908. $as_echo "$ac_cv_func_strtod" >&6; }
  12909. if test $ac_cv_func_strtod = no; then
  12910. case " $LIBOBJS " in
  12911. *" strtod.$ac_objext "* ) ;;
  12912. *) LIBOBJS="$LIBOBJS strtod.$ac_objext"
  12913. ;;
  12914. esac
  12915. ac_fn_cxx_check_func "$LINENO" "pow" "ac_cv_func_pow"
  12916. if test "x$ac_cv_func_pow" = x""yes; then :
  12917. fi
  12918. if test $ac_cv_func_pow = no; then
  12919. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pow in -lm" >&5
  12920. $as_echo_n "checking for pow in -lm... " >&6; }
  12921. if test "${ac_cv_lib_m_pow+set}" = set; then :
  12922. $as_echo_n "(cached) " >&6
  12923. else
  12924. ac_check_lib_save_LIBS=$LIBS
  12925. LIBS="-lm $LIBS"
  12926. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12927. /* end confdefs.h. */
  12928. /* Override any GCC internal prototype to avoid an error.
  12929. Use char because int might match the return type of a GCC
  12930. builtin and then its argument prototype would still apply. */
  12931. #ifdef __cplusplus
  12932. extern "C"
  12933. #endif
  12934. char pow ();
  12935. int
  12936. main ()
  12937. {
  12938. return pow ();
  12939. ;
  12940. return 0;
  12941. }
  12942. _ACEOF
  12943. if ac_fn_cxx_try_link "$LINENO"; then :
  12944. ac_cv_lib_m_pow=yes
  12945. else
  12946. ac_cv_lib_m_pow=no
  12947. fi
  12948. rm -f core conftest.err conftest.$ac_objext \
  12949. conftest$ac_exeext conftest.$ac_ext
  12950. LIBS=$ac_check_lib_save_LIBS
  12951. fi
  12952. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_pow" >&5
  12953. $as_echo "$ac_cv_lib_m_pow" >&6; }
  12954. if test "x$ac_cv_lib_m_pow" = x""yes; then :
  12955. POW_LIB=-lm
  12956. else
  12957. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cannot find library containing definition of pow" >&5
  12958. $as_echo "$as_me: WARNING: cannot find library containing definition of pow" >&2;}
  12959. fi
  12960. fi
  12961. fi
  12962. for ac_func in __argz_count \
  12963. __argz_next \
  12964. __argz_stringify \
  12965. atexit \
  12966. ftruncate \
  12967. getcwd \
  12968. gethostbyaddr \
  12969. gethostbyname \
  12970. getifaddrs \
  12971. getpagesize \
  12972. inet_ntoa \
  12973. memchr \
  12974. memmove \
  12975. mempcpy \
  12976. memset \
  12977. mkdir \
  12978. munmap \
  12979. nl_langinfo \
  12980. posix_memalign \
  12981. pow \
  12982. putenv \
  12983. rmdir \
  12984. select \
  12985. setlocale \
  12986. sleep \
  12987. socket \
  12988. stpcpy \
  12989. strcasecmp \
  12990. strchr \
  12991. strcspn \
  12992. strdup \
  12993. strerror \
  12994. strncasecmp \
  12995. strstr \
  12996. strtol \
  12997. strtoul \
  12998. strtoull \
  12999. tzset \
  13000. unsetenv \
  13001. usleep \
  13002. utime
  13003. do :
  13004. as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
  13005. ac_fn_cxx_check_func "$LINENO" "$ac_func" "$as_ac_var"
  13006. eval as_val=\$$as_ac_var
  13007. if test "x$as_val" = x""yes; then :
  13008. cat >>confdefs.h <<_ACEOF
  13009. #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
  13010. _ACEOF
  13011. fi
  13012. done
  13013. if test "x$enable_epoll" = "xyes"; then
  13014. for ac_func in epoll_create
  13015. do :
  13016. ac_fn_cxx_check_func "$LINENO" "epoll_create" "ac_cv_func_epoll_create"
  13017. if test "x$ac_cv_func_epoll_create" = x""yes; then :
  13018. cat >>confdefs.h <<_ACEOF
  13019. #define HAVE_EPOLL_CREATE 1
  13020. _ACEOF
  13021. have_epoll=yes
  13022. fi
  13023. done
  13024. if test "x$have_epoll" = "xyes"; then
  13025. $as_echo "#define HAVE_EPOLL 1" >>confdefs.h
  13026. fi
  13027. fi
  13028. if test "x$have_epoll" = "xyes"; then
  13029. HAVE_EPOLL_TRUE=
  13030. HAVE_EPOLL_FALSE='#'
  13031. else
  13032. HAVE_EPOLL_TRUE='#'
  13033. HAVE_EPOLL_FALSE=
  13034. fi
  13035. for ac_func in posix_fallocate
  13036. do :
  13037. ac_fn_cxx_check_func "$LINENO" "posix_fallocate" "ac_cv_func_posix_fallocate"
  13038. if test "x$ac_cv_func_posix_fallocate" = x""yes; then :
  13039. cat >>confdefs.h <<_ACEOF
  13040. #define HAVE_POSIX_FALLOCATE 1
  13041. _ACEOF
  13042. have_posix_fallocate=yes
  13043. fi
  13044. done
  13045. if test "x$have_posix_fallocate" = "xyes"; then
  13046. HAVE_POSIX_FALLOCATE_TRUE=
  13047. HAVE_POSIX_FALLOCATE_FALSE='#'
  13048. else
  13049. HAVE_POSIX_FALLOCATE_TRUE='#'
  13050. HAVE_POSIX_FALLOCATE_FALSE=
  13051. fi
  13052. for ac_func in asctime_r
  13053. do :
  13054. ac_fn_cxx_check_func "$LINENO" "asctime_r" "ac_cv_func_asctime_r"
  13055. if test "x$ac_cv_func_asctime_r" = x""yes; then :
  13056. cat >>confdefs.h <<_ACEOF
  13057. #define HAVE_ASCTIME_R 1
  13058. _ACEOF
  13059. if true; then
  13060. HAVE_ASCTIME_R_TRUE=
  13061. HAVE_ASCTIME_R_FALSE='#'
  13062. else
  13063. HAVE_ASCTIME_R_TRUE='#'
  13064. HAVE_ASCTIME_R_FALSE=
  13065. fi
  13066. else
  13067. if false; then
  13068. HAVE_ASCTIME_R_TRUE=
  13069. HAVE_ASCTIME_R_FALSE='#'
  13070. else
  13071. HAVE_ASCTIME_R_TRUE='#'
  13072. HAVE_ASCTIME_R_FALSE=
  13073. fi
  13074. fi
  13075. done
  13076. for ac_func in basename
  13077. do :
  13078. ac_fn_cxx_check_func "$LINENO" "basename" "ac_cv_func_basename"
  13079. if test "x$ac_cv_func_basename" = x""yes; then :
  13080. cat >>confdefs.h <<_ACEOF
  13081. #define HAVE_BASENAME 1
  13082. _ACEOF
  13083. if true; then
  13084. HAVE_BASENAME_TRUE=
  13085. HAVE_BASENAME_FALSE='#'
  13086. else
  13087. HAVE_BASENAME_TRUE='#'
  13088. HAVE_BASENAME_FALSE=
  13089. fi
  13090. else
  13091. if false; then
  13092. HAVE_BASENAME_TRUE=
  13093. HAVE_BASENAME_FALSE='#'
  13094. else
  13095. HAVE_BASENAME_TRUE='#'
  13096. HAVE_BASENAME_FALSE=
  13097. fi
  13098. fi
  13099. done
  13100. for ac_func in gai_strerror
  13101. do :
  13102. ac_fn_cxx_check_func "$LINENO" "gai_strerror" "ac_cv_func_gai_strerror"
  13103. if test "x$ac_cv_func_gai_strerror" = x""yes; then :
  13104. cat >>confdefs.h <<_ACEOF
  13105. #define HAVE_GAI_STRERROR 1
  13106. _ACEOF
  13107. if true; then
  13108. HAVE_GAI_STRERROR_TRUE=
  13109. HAVE_GAI_STRERROR_FALSE='#'
  13110. else
  13111. HAVE_GAI_STRERROR_TRUE='#'
  13112. HAVE_GAI_STRERROR_FALSE=
  13113. fi
  13114. else
  13115. if false; then
  13116. HAVE_GAI_STRERROR_TRUE=
  13117. HAVE_GAI_STRERROR_FALSE='#'
  13118. else
  13119. HAVE_GAI_STRERROR_TRUE='#'
  13120. HAVE_GAI_STRERROR_FALSE=
  13121. fi
  13122. fi
  13123. done
  13124. for ac_func in getaddrinfo
  13125. do :
  13126. ac_fn_cxx_check_func "$LINENO" "getaddrinfo" "ac_cv_func_getaddrinfo"
  13127. if test "x$ac_cv_func_getaddrinfo" = x""yes; then :
  13128. cat >>confdefs.h <<_ACEOF
  13129. #define HAVE_GETADDRINFO 1
  13130. _ACEOF
  13131. if true; then
  13132. HAVE_GETADDRINFO_TRUE=
  13133. HAVE_GETADDRINFO_FALSE='#'
  13134. else
  13135. HAVE_GETADDRINFO_TRUE='#'
  13136. HAVE_GETADDRINFO_FALSE=
  13137. fi
  13138. else
  13139. if false; then
  13140. HAVE_GETADDRINFO_TRUE=
  13141. HAVE_GETADDRINFO_FALSE='#'
  13142. else
  13143. HAVE_GETADDRINFO_TRUE='#'
  13144. HAVE_GETADDRINFO_FALSE=
  13145. fi
  13146. fi
  13147. done
  13148. for ac_func in gettimeofday
  13149. do :
  13150. ac_fn_cxx_check_func "$LINENO" "gettimeofday" "ac_cv_func_gettimeofday"
  13151. if test "x$ac_cv_func_gettimeofday" = x""yes; then :
  13152. cat >>confdefs.h <<_ACEOF
  13153. #define HAVE_GETTIMEOFDAY 1
  13154. _ACEOF
  13155. if true; then
  13156. HAVE_GETTIMEOFDAY_TRUE=
  13157. HAVE_GETTIMEOFDAY_FALSE='#'
  13158. else
  13159. HAVE_GETTIMEOFDAY_TRUE='#'
  13160. HAVE_GETTIMEOFDAY_FALSE=
  13161. fi
  13162. else
  13163. if false; then
  13164. HAVE_GETTIMEOFDAY_TRUE=
  13165. HAVE_GETTIMEOFDAY_FALSE='#'
  13166. else
  13167. HAVE_GETTIMEOFDAY_TRUE='#'
  13168. HAVE_GETTIMEOFDAY_FALSE=
  13169. fi
  13170. fi
  13171. done
  13172. for ac_func in inet_aton
  13173. do :
  13174. ac_fn_cxx_check_func "$LINENO" "inet_aton" "ac_cv_func_inet_aton"
  13175. if test "x$ac_cv_func_inet_aton" = x""yes; then :
  13176. cat >>confdefs.h <<_ACEOF
  13177. #define HAVE_INET_ATON 1
  13178. _ACEOF
  13179. if true; then
  13180. HAVE_INET_ATON_TRUE=
  13181. HAVE_INET_ATON_FALSE='#'
  13182. else
  13183. HAVE_INET_ATON_TRUE='#'
  13184. HAVE_INET_ATON_FALSE=
  13185. fi
  13186. else
  13187. if false; then
  13188. HAVE_INET_ATON_TRUE=
  13189. HAVE_INET_ATON_FALSE='#'
  13190. else
  13191. HAVE_INET_ATON_TRUE='#'
  13192. HAVE_INET_ATON_FALSE=
  13193. fi
  13194. fi
  13195. done
  13196. for ac_func in localtime_r
  13197. do :
  13198. ac_fn_cxx_check_func "$LINENO" "localtime_r" "ac_cv_func_localtime_r"
  13199. if test "x$ac_cv_func_localtime_r" = x""yes; then :
  13200. cat >>confdefs.h <<_ACEOF
  13201. #define HAVE_LOCALTIME_R 1
  13202. _ACEOF
  13203. if true; then
  13204. HAVE_LOCALTIME_R_TRUE=
  13205. HAVE_LOCALTIME_R_FALSE='#'
  13206. else
  13207. HAVE_LOCALTIME_R_TRUE='#'
  13208. HAVE_LOCALTIME_R_FALSE=
  13209. fi
  13210. else
  13211. if false; then
  13212. HAVE_LOCALTIME_R_TRUE=
  13213. HAVE_LOCALTIME_R_FALSE='#'
  13214. else
  13215. HAVE_LOCALTIME_R_TRUE='#'
  13216. HAVE_LOCALTIME_R_FALSE=
  13217. fi
  13218. fi
  13219. done
  13220. for ac_func in strptime
  13221. do :
  13222. ac_fn_cxx_check_func "$LINENO" "strptime" "ac_cv_func_strptime"
  13223. if test "x$ac_cv_func_strptime" = x""yes; then :
  13224. cat >>confdefs.h <<_ACEOF
  13225. #define HAVE_STRPTIME 1
  13226. _ACEOF
  13227. if true; then
  13228. HAVE_STRPTIME_TRUE=
  13229. HAVE_STRPTIME_FALSE='#'
  13230. else
  13231. HAVE_STRPTIME_TRUE='#'
  13232. HAVE_STRPTIME_FALSE=
  13233. fi
  13234. else
  13235. if false; then
  13236. HAVE_STRPTIME_TRUE=
  13237. HAVE_STRPTIME_FALSE='#'
  13238. else
  13239. HAVE_STRPTIME_TRUE='#'
  13240. HAVE_STRPTIME_FALSE=
  13241. fi
  13242. fi
  13243. done
  13244. for ac_func in timegm
  13245. do :
  13246. ac_fn_cxx_check_func "$LINENO" "timegm" "ac_cv_func_timegm"
  13247. if test "x$ac_cv_func_timegm" = x""yes; then :
  13248. cat >>confdefs.h <<_ACEOF
  13249. #define HAVE_TIMEGM 1
  13250. _ACEOF
  13251. if true; then
  13252. HAVE_TIMEGM_TRUE=
  13253. HAVE_TIMEGM_FALSE='#'
  13254. else
  13255. HAVE_TIMEGM_TRUE='#'
  13256. HAVE_TIMEGM_FALSE=
  13257. fi
  13258. else
  13259. if false; then
  13260. HAVE_TIMEGM_TRUE=
  13261. HAVE_TIMEGM_FALSE='#'
  13262. else
  13263. HAVE_TIMEGM_TRUE='#'
  13264. HAVE_TIMEGM_FALSE=
  13265. fi
  13266. fi
  13267. done
  13268. for ac_func in daemon
  13269. do :
  13270. ac_fn_cxx_check_func "$LINENO" "daemon" "ac_cv_func_daemon"
  13271. if test "x$ac_cv_func_daemon" = x""yes; then :
  13272. cat >>confdefs.h <<_ACEOF
  13273. #define HAVE_DAEMON 1
  13274. _ACEOF
  13275. have_daemon=yes
  13276. fi
  13277. done
  13278. if test "x$have_daemon" = "xyes"; then
  13279. HAVE_DAEMON_TRUE=
  13280. HAVE_DAEMON_FALSE='#'
  13281. else
  13282. HAVE_DAEMON_TRUE='#'
  13283. HAVE_DAEMON_FALSE=
  13284. fi
  13285. for ac_func in clock_gettime
  13286. do :
  13287. ac_fn_cxx_check_func "$LINENO" "clock_gettime" "ac_cv_func_clock_gettime"
  13288. if test "x$ac_cv_func_clock_gettime" = x""yes; then :
  13289. cat >>confdefs.h <<_ACEOF
  13290. #define HAVE_CLOCK_GETTIME 1
  13291. _ACEOF
  13292. have_clock_gettime=yes
  13293. fi
  13294. done
  13295. if test "x$have_clock_gettime" != "xyes"; then
  13296. for ac_func in mach_absolute_time
  13297. do :
  13298. ac_fn_cxx_check_func "$LINENO" "mach_absolute_time" "ac_cv_func_mach_absolute_time"
  13299. if test "x$ac_cv_func_mach_absolute_time" = x""yes; then :
  13300. cat >>confdefs.h <<_ACEOF
  13301. #define HAVE_MACH_ABSOLUTE_TIME 1
  13302. _ACEOF
  13303. have_mach_absolute_time=yes
  13304. fi
  13305. done
  13306. fi
  13307. if test "x$have_mach_absolute_time" = "xyes"; then
  13308. HAVE_MACH_ABSOLUTE_TIME_TRUE=
  13309. HAVE_MACH_ABSOLUTE_TIME_FALSE='#'
  13310. else
  13311. HAVE_MACH_ABSOLUTE_TIME_TRUE='#'
  13312. HAVE_MACH_ABSOLUTE_TIME_FALSE=
  13313. fi
  13314. for ac_func in poll
  13315. do :
  13316. ac_fn_cxx_check_func "$LINENO" "poll" "ac_cv_func_poll"
  13317. if test "x$ac_cv_func_poll" = x""yes; then :
  13318. cat >>confdefs.h <<_ACEOF
  13319. #define HAVE_POLL 1
  13320. _ACEOF
  13321. have_poll=yes
  13322. fi
  13323. done
  13324. if test "x$have_poll" = "xyes"; then
  13325. HAVE_POLL_TRUE=
  13326. HAVE_POLL_FALSE='#'
  13327. else
  13328. HAVE_POLL_TRUE='#'
  13329. HAVE_POLL_FALSE=
  13330. fi
  13331. case "$target" in
  13332. *mingw*)
  13333. if true; then
  13334. HAVE_GETADDRINFO_TRUE=
  13335. HAVE_GETADDRINFO_FALSE='#'
  13336. else
  13337. HAVE_GETADDRINFO_TRUE='#'
  13338. HAVE_GETADDRINFO_FALSE=
  13339. fi
  13340. if false; then
  13341. HAVE_GAI_STRERROR_TRUE=
  13342. HAVE_GAI_STRERROR_FALSE='#'
  13343. else
  13344. HAVE_GAI_STRERROR_TRUE='#'
  13345. HAVE_GAI_STRERROR_FALSE=
  13346. fi
  13347. if test "x$have_clock_gettime" != "xyes"; then
  13348. if true; then
  13349. HAVE_TIMEGETTIME_TRUE=
  13350. HAVE_TIMEGETTIME_FALSE='#'
  13351. else
  13352. HAVE_TIMEGETTIME_TRUE='#'
  13353. HAVE_TIMEGETTIME_FALSE=
  13354. fi
  13355. fi
  13356. ;;
  13357. *)
  13358. if false; then
  13359. HAVE_TIMEGETTIME_TRUE=
  13360. HAVE_TIMEGETTIME_FALSE='#'
  13361. else
  13362. HAVE_TIMEGETTIME_TRUE='#'
  13363. HAVE_TIMEGETTIME_FALSE=
  13364. fi
  13365. ;;
  13366. esac
  13367. for ac_func in port_associate
  13368. do :
  13369. ac_fn_cxx_check_func "$LINENO" "port_associate" "ac_cv_func_port_associate"
  13370. if test "x$ac_cv_func_port_associate" = x""yes; then :
  13371. cat >>confdefs.h <<_ACEOF
  13372. #define HAVE_PORT_ASSOCIATE 1
  13373. _ACEOF
  13374. have_port_associate=yes
  13375. fi
  13376. done
  13377. if test "x$have_port_associate" = "xyes"; then
  13378. HAVE_PORT_ASSOCIATE_TRUE=
  13379. HAVE_PORT_ASSOCIATE_FALSE='#'
  13380. else
  13381. HAVE_PORT_ASSOCIATE_TRUE='#'
  13382. HAVE_PORT_ASSOCIATE_FALSE=
  13383. fi
  13384. ac_fn_cxx_check_member "$LINENO" "struct sockaddr_in" "sin_len" "ac_cv_member_struct_sockaddr_in_sin_len" "#include <netinet/in.h>
  13385. "
  13386. if test "x$ac_cv_member_struct_sockaddr_in_sin_len" = x""yes; then :
  13387. $as_echo "#define HAVE_SOCKADDR_IN_SIN_LEN 1" >>confdefs.h
  13388. fi
  13389. # Check struct option.name is assignable from const char*. struct
  13390. # option.name in opensolaris is of type char*. In Linux, it is const
  13391. # char*
  13392. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct option.name is assignable from const char*" >&5
  13393. $as_echo_n "checking whether struct option.name is assignable from const char*... " >&6; }
  13394. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13395. /* end confdefs.h. */
  13396. #include <unistd.h>
  13397. #include <getopt.h>
  13398. int
  13399. main ()
  13400. {
  13401. const char* s = "const char";
  13402. option op;
  13403. op.name = s;
  13404. ;
  13405. return 0;
  13406. }
  13407. _ACEOF
  13408. if ac_fn_cxx_try_compile "$LINENO"; then :
  13409. have_option_const_name=yes
  13410. else
  13411. have_option_const_name=no
  13412. fi
  13413. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  13414. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_option_const_name" >&5
  13415. $as_echo "$have_option_const_name" >&6; }
  13416. if test "x$have_option_const_name" = "xyes"; then
  13417. $as_echo "#define HAVE_OPTION_CONST_NAME 1" >>confdefs.h
  13418. fi
  13419. ac_config_files="$ac_config_files Makefile src/Makefile test/Makefile po/Makefile.in intl/Makefile lib/Makefile doc/Makefile"
  13420. cat >confcache <<\_ACEOF
  13421. # This file is a shell script that caches the results of configure
  13422. # tests run on this system so they can be shared between configure
  13423. # scripts and configure runs, see configure's option --config-cache.
  13424. # It is not useful on other systems. If it contains results you don't
  13425. # want to keep, you may remove or edit it.
  13426. #
  13427. # config.status only pays attention to the cache file if you give it
  13428. # the --recheck option to rerun configure.
  13429. #
  13430. # `ac_cv_env_foo' variables (set or unset) will be overridden when
  13431. # loading this file, other *unset* `ac_cv_foo' will be assigned the
  13432. # following values.
  13433. _ACEOF
  13434. # The following way of writing the cache mishandles newlines in values,
  13435. # but we know of no workaround that is simple, portable, and efficient.
  13436. # So, we kill variables containing newlines.
  13437. # Ultrix sh set writes to stderr and can't be redirected directly,
  13438. # and sets the high bit in the cache file unless we assign to the vars.
  13439. (
  13440. for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
  13441. eval ac_val=\$$ac_var
  13442. case $ac_val in #(
  13443. *${as_nl}*)
  13444. case $ac_var in #(
  13445. *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
  13446. $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
  13447. esac
  13448. case $ac_var in #(
  13449. _ | IFS | as_nl) ;; #(
  13450. BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
  13451. *) { eval $ac_var=; unset $ac_var;} ;;
  13452. esac ;;
  13453. esac
  13454. done
  13455. (set) 2>&1 |
  13456. case $as_nl`(ac_space=' '; set) 2>&1` in #(
  13457. *${as_nl}ac_space=\ *)
  13458. # `set' does not quote correctly, so add quotes: double-quote
  13459. # substitution turns \\\\ into \\, and sed turns \\ into \.
  13460. sed -n \
  13461. "s/'/'\\\\''/g;
  13462. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
  13463. ;; #(
  13464. *)
  13465. # `set' quotes correctly as required by POSIX, so do not add quotes.
  13466. sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
  13467. ;;
  13468. esac |
  13469. sort
  13470. ) |
  13471. sed '
  13472. /^ac_cv_env_/b end
  13473. t clear
  13474. :clear
  13475. s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
  13476. t end
  13477. s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
  13478. :end' >>confcache
  13479. if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
  13480. if test -w "$cache_file"; then
  13481. test "x$cache_file" != "x/dev/null" &&
  13482. { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
  13483. $as_echo "$as_me: updating cache $cache_file" >&6;}
  13484. cat confcache >$cache_file
  13485. else
  13486. { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
  13487. $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
  13488. fi
  13489. fi
  13490. rm -f confcache
  13491. test "x$prefix" = xNONE && prefix=$ac_default_prefix
  13492. # Let make expand exec_prefix.
  13493. test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
  13494. DEFS=-DHAVE_CONFIG_H
  13495. ac_libobjs=
  13496. ac_ltlibobjs=
  13497. for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
  13498. # 1. Remove the extension, and $U if already installed.
  13499. ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
  13500. ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
  13501. # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
  13502. # will be set to the directory where LIBOBJS objects are built.
  13503. as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
  13504. as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
  13505. done
  13506. LIBOBJS=$ac_libobjs
  13507. LTLIBOBJS=$ac_ltlibobjs
  13508. if test -n "$EXEEXT"; then
  13509. am__EXEEXT_TRUE=
  13510. am__EXEEXT_FALSE='#'
  13511. else
  13512. am__EXEEXT_TRUE='#'
  13513. am__EXEEXT_FALSE=
  13514. fi
  13515. if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
  13516. as_fn_error "conditional \"AMDEP\" was never defined.
  13517. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  13518. fi
  13519. if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
  13520. as_fn_error "conditional \"am__fastdepCXX\" was never defined.
  13521. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  13522. fi
  13523. if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
  13524. as_fn_error "conditional \"am__fastdepCC\" was never defined.
  13525. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  13526. fi
  13527. if test -z "${ENABLE_SSL_TRUE}" && test -z "${ENABLE_SSL_FALSE}"; then
  13528. as_fn_error "conditional \"ENABLE_SSL\" was never defined.
  13529. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  13530. fi
  13531. if test -z "${ENABLE_SSL_TRUE}" && test -z "${ENABLE_SSL_FALSE}"; then
  13532. as_fn_error "conditional \"ENABLE_SSL\" was never defined.
  13533. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  13534. fi
  13535. if test -z "${HAVE_LIBGNUTLS_TRUE}" && test -z "${HAVE_LIBGNUTLS_FALSE}"; then
  13536. as_fn_error "conditional \"HAVE_LIBGNUTLS\" was never defined.
  13537. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  13538. fi
  13539. if test -z "${HAVE_LIBSSL_TRUE}" && test -z "${HAVE_LIBSSL_FALSE}"; then
  13540. as_fn_error "conditional \"HAVE_LIBSSL\" was never defined.
  13541. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  13542. fi
  13543. if test -z "${ENABLE_MESSAGE_DIGEST_TRUE}" && test -z "${ENABLE_MESSAGE_DIGEST_FALSE}"; then
  13544. as_fn_error "conditional \"ENABLE_MESSAGE_DIGEST\" was never defined.
  13545. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  13546. fi
  13547. if test -z "${ENABLE_MESSAGE_DIGEST_TRUE}" && test -z "${ENABLE_MESSAGE_DIGEST_FALSE}"; then
  13548. as_fn_error "conditional \"ENABLE_MESSAGE_DIGEST\" was never defined.
  13549. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  13550. fi
  13551. if test -z "${ENABLE_BITTORRENT_TRUE}" && test -z "${ENABLE_BITTORRENT_FALSE}"; then
  13552. as_fn_error "conditional \"ENABLE_BITTORRENT\" was never defined.
  13553. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  13554. fi
  13555. if test -z "${ENABLE_BITTORRENT_TRUE}" && test -z "${ENABLE_BITTORRENT_FALSE}"; then
  13556. as_fn_error "conditional \"ENABLE_BITTORRENT\" was never defined.
  13557. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  13558. fi
  13559. if test -z "${ENABLE_METALINK_TRUE}" && test -z "${ENABLE_METALINK_FALSE}"; then
  13560. as_fn_error "conditional \"ENABLE_METALINK\" was never defined.
  13561. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  13562. fi
  13563. if test -z "${ENABLE_METALINK_TRUE}" && test -z "${ENABLE_METALINK_FALSE}"; then
  13564. as_fn_error "conditional \"ENABLE_METALINK\" was never defined.
  13565. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  13566. fi
  13567. if test -z "${ENABLE_METALINK_LIBXML2_TRUE}" && test -z "${ENABLE_METALINK_LIBXML2_FALSE}"; then
  13568. as_fn_error "conditional \"ENABLE_METALINK_LIBXML2\" was never defined.
  13569. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  13570. fi
  13571. if test -z "${ENABLE_METALINK_LIBEXPAT_TRUE}" && test -z "${ENABLE_METALINK_LIBEXPAT_FALSE}"; then
  13572. as_fn_error "conditional \"ENABLE_METALINK_LIBEXPAT\" was never defined.
  13573. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  13574. fi
  13575. if test -z "${ENABLE_XML_RPC_TRUE}" && test -z "${ENABLE_XML_RPC_FALSE}"; then
  13576. as_fn_error "conditional \"ENABLE_XML_RPC\" was never defined.
  13577. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  13578. fi
  13579. if test -z "${HAVE_LIBXML2_TRUE}" && test -z "${HAVE_LIBXML2_FALSE}"; then
  13580. as_fn_error "conditional \"HAVE_LIBXML2\" was never defined.
  13581. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  13582. fi
  13583. if test -z "${HAVE_LIBEXPAT_TRUE}" && test -z "${HAVE_LIBEXPAT_FALSE}"; then
  13584. as_fn_error "conditional \"HAVE_LIBEXPAT\" was never defined.
  13585. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  13586. fi
  13587. if test -z "${ENABLE_ASYNC_DNS_TRUE}" && test -z "${ENABLE_ASYNC_DNS_FALSE}"; then
  13588. as_fn_error "conditional \"ENABLE_ASYNC_DNS\" was never defined.
  13589. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  13590. fi
  13591. if test -z "${ENABLE_ASYNC_DNS_TRUE}" && test -z "${ENABLE_ASYNC_DNS_FALSE}"; then
  13592. as_fn_error "conditional \"ENABLE_ASYNC_DNS\" was never defined.
  13593. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  13594. fi
  13595. if test -z "${HAVE_LIBZ_TRUE}" && test -z "${HAVE_LIBZ_FALSE}"; then
  13596. as_fn_error "conditional \"HAVE_LIBZ\" was never defined.
  13597. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  13598. fi
  13599. if test -z "${HAVE_SQLITE3_TRUE}" && test -z "${HAVE_SQLITE3_FALSE}"; then
  13600. as_fn_error "conditional \"HAVE_SQLITE3\" was never defined.
  13601. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  13602. fi
  13603. if test -z "${HAVE_EPOLL_TRUE}" && test -z "${HAVE_EPOLL_FALSE}"; then
  13604. as_fn_error "conditional \"HAVE_EPOLL\" was never defined.
  13605. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  13606. fi
  13607. if test -z "${HAVE_POSIX_FALLOCATE_TRUE}" && test -z "${HAVE_POSIX_FALLOCATE_FALSE}"; then
  13608. as_fn_error "conditional \"HAVE_POSIX_FALLOCATE\" was never defined.
  13609. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  13610. fi
  13611. if test -z "${HAVE_ASCTIME_R_TRUE}" && test -z "${HAVE_ASCTIME_R_FALSE}"; then
  13612. as_fn_error "conditional \"HAVE_ASCTIME_R\" was never defined.
  13613. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  13614. fi
  13615. if test -z "${HAVE_ASCTIME_R_TRUE}" && test -z "${HAVE_ASCTIME_R_FALSE}"; then
  13616. as_fn_error "conditional \"HAVE_ASCTIME_R\" was never defined.
  13617. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  13618. fi
  13619. if test -z "${HAVE_BASENAME_TRUE}" && test -z "${HAVE_BASENAME_FALSE}"; then
  13620. as_fn_error "conditional \"HAVE_BASENAME\" was never defined.
  13621. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  13622. fi
  13623. if test -z "${HAVE_BASENAME_TRUE}" && test -z "${HAVE_BASENAME_FALSE}"; then
  13624. as_fn_error "conditional \"HAVE_BASENAME\" was never defined.
  13625. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  13626. fi
  13627. if test -z "${HAVE_GAI_STRERROR_TRUE}" && test -z "${HAVE_GAI_STRERROR_FALSE}"; then
  13628. as_fn_error "conditional \"HAVE_GAI_STRERROR\" was never defined.
  13629. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  13630. fi
  13631. if test -z "${HAVE_GAI_STRERROR_TRUE}" && test -z "${HAVE_GAI_STRERROR_FALSE}"; then
  13632. as_fn_error "conditional \"HAVE_GAI_STRERROR\" was never defined.
  13633. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  13634. fi
  13635. if test -z "${HAVE_GETADDRINFO_TRUE}" && test -z "${HAVE_GETADDRINFO_FALSE}"; then
  13636. as_fn_error "conditional \"HAVE_GETADDRINFO\" was never defined.
  13637. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  13638. fi
  13639. if test -z "${HAVE_GETADDRINFO_TRUE}" && test -z "${HAVE_GETADDRINFO_FALSE}"; then
  13640. as_fn_error "conditional \"HAVE_GETADDRINFO\" was never defined.
  13641. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  13642. fi
  13643. if test -z "${HAVE_GETTIMEOFDAY_TRUE}" && test -z "${HAVE_GETTIMEOFDAY_FALSE}"; then
  13644. as_fn_error "conditional \"HAVE_GETTIMEOFDAY\" was never defined.
  13645. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  13646. fi
  13647. if test -z "${HAVE_GETTIMEOFDAY_TRUE}" && test -z "${HAVE_GETTIMEOFDAY_FALSE}"; then
  13648. as_fn_error "conditional \"HAVE_GETTIMEOFDAY\" was never defined.
  13649. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  13650. fi
  13651. if test -z "${HAVE_INET_ATON_TRUE}" && test -z "${HAVE_INET_ATON_FALSE}"; then
  13652. as_fn_error "conditional \"HAVE_INET_ATON\" was never defined.
  13653. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  13654. fi
  13655. if test -z "${HAVE_INET_ATON_TRUE}" && test -z "${HAVE_INET_ATON_FALSE}"; then
  13656. as_fn_error "conditional \"HAVE_INET_ATON\" was never defined.
  13657. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  13658. fi
  13659. if test -z "${HAVE_LOCALTIME_R_TRUE}" && test -z "${HAVE_LOCALTIME_R_FALSE}"; then
  13660. as_fn_error "conditional \"HAVE_LOCALTIME_R\" was never defined.
  13661. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  13662. fi
  13663. if test -z "${HAVE_LOCALTIME_R_TRUE}" && test -z "${HAVE_LOCALTIME_R_FALSE}"; then
  13664. as_fn_error "conditional \"HAVE_LOCALTIME_R\" was never defined.
  13665. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  13666. fi
  13667. if test -z "${HAVE_STRPTIME_TRUE}" && test -z "${HAVE_STRPTIME_FALSE}"; then
  13668. as_fn_error "conditional \"HAVE_STRPTIME\" was never defined.
  13669. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  13670. fi
  13671. if test -z "${HAVE_STRPTIME_TRUE}" && test -z "${HAVE_STRPTIME_FALSE}"; then
  13672. as_fn_error "conditional \"HAVE_STRPTIME\" was never defined.
  13673. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  13674. fi
  13675. if test -z "${HAVE_TIMEGM_TRUE}" && test -z "${HAVE_TIMEGM_FALSE}"; then
  13676. as_fn_error "conditional \"HAVE_TIMEGM\" was never defined.
  13677. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  13678. fi
  13679. if test -z "${HAVE_TIMEGM_TRUE}" && test -z "${HAVE_TIMEGM_FALSE}"; then
  13680. as_fn_error "conditional \"HAVE_TIMEGM\" was never defined.
  13681. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  13682. fi
  13683. if test -z "${HAVE_DAEMON_TRUE}" && test -z "${HAVE_DAEMON_FALSE}"; then
  13684. as_fn_error "conditional \"HAVE_DAEMON\" was never defined.
  13685. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  13686. fi
  13687. if test -z "${HAVE_MACH_ABSOLUTE_TIME_TRUE}" && test -z "${HAVE_MACH_ABSOLUTE_TIME_FALSE}"; then
  13688. as_fn_error "conditional \"HAVE_MACH_ABSOLUTE_TIME\" was never defined.
  13689. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  13690. fi
  13691. if test -z "${HAVE_POLL_TRUE}" && test -z "${HAVE_POLL_FALSE}"; then
  13692. as_fn_error "conditional \"HAVE_POLL\" was never defined.
  13693. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  13694. fi
  13695. if test -z "${HAVE_GETADDRINFO_TRUE}" && test -z "${HAVE_GETADDRINFO_FALSE}"; then
  13696. as_fn_error "conditional \"HAVE_GETADDRINFO\" was never defined.
  13697. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  13698. fi
  13699. if test -z "${HAVE_GAI_STRERROR_TRUE}" && test -z "${HAVE_GAI_STRERROR_FALSE}"; then
  13700. as_fn_error "conditional \"HAVE_GAI_STRERROR\" was never defined.
  13701. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  13702. fi
  13703. if test -z "${HAVE_TIMEGETTIME_TRUE}" && test -z "${HAVE_TIMEGETTIME_FALSE}"; then
  13704. as_fn_error "conditional \"HAVE_TIMEGETTIME\" was never defined.
  13705. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  13706. fi
  13707. if test -z "${HAVE_TIMEGETTIME_TRUE}" && test -z "${HAVE_TIMEGETTIME_FALSE}"; then
  13708. as_fn_error "conditional \"HAVE_TIMEGETTIME\" was never defined.
  13709. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  13710. fi
  13711. if test -z "${HAVE_PORT_ASSOCIATE_TRUE}" && test -z "${HAVE_PORT_ASSOCIATE_FALSE}"; then
  13712. as_fn_error "conditional \"HAVE_PORT_ASSOCIATE\" was never defined.
  13713. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  13714. fi
  13715. : ${CONFIG_STATUS=./config.status}
  13716. ac_write_fail=0
  13717. ac_clean_files_save=$ac_clean_files
  13718. ac_clean_files="$ac_clean_files $CONFIG_STATUS"
  13719. { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
  13720. $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
  13721. as_write_fail=0
  13722. cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
  13723. #! $SHELL
  13724. # Generated by $as_me.
  13725. # Run this file to recreate the current configuration.
  13726. # Compiler output produced by configure, useful for debugging
  13727. # configure, is in config.log if it exists.
  13728. debug=false
  13729. ac_cs_recheck=false
  13730. ac_cs_silent=false
  13731. SHELL=\${CONFIG_SHELL-$SHELL}
  13732. export SHELL
  13733. _ASEOF
  13734. cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
  13735. ## -------------------- ##
  13736. ## M4sh Initialization. ##
  13737. ## -------------------- ##
  13738. # Be more Bourne compatible
  13739. DUALCASE=1; export DUALCASE # for MKS sh
  13740. if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
  13741. emulate sh
  13742. NULLCMD=:
  13743. # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
  13744. # is contrary to our usage. Disable this feature.
  13745. alias -g '${1+"$@"}'='"$@"'
  13746. setopt NO_GLOB_SUBST
  13747. else
  13748. case `(set -o) 2>/dev/null` in #(
  13749. *posix*) :
  13750. set -o posix ;; #(
  13751. *) :
  13752. ;;
  13753. esac
  13754. fi
  13755. as_nl='
  13756. '
  13757. export as_nl
  13758. # Printing a long string crashes Solaris 7 /usr/bin/printf.
  13759. as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
  13760. as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
  13761. as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
  13762. # Prefer a ksh shell builtin over an external printf program on Solaris,
  13763. # but without wasting forks for bash or zsh.
  13764. if test -z "$BASH_VERSION$ZSH_VERSION" \
  13765. && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
  13766. as_echo='print -r --'
  13767. as_echo_n='print -rn --'
  13768. elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
  13769. as_echo='printf %s\n'
  13770. as_echo_n='printf %s'
  13771. else
  13772. if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
  13773. as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
  13774. as_echo_n='/usr/ucb/echo -n'
  13775. else
  13776. as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
  13777. as_echo_n_body='eval
  13778. arg=$1;
  13779. case $arg in #(
  13780. *"$as_nl"*)
  13781. expr "X$arg" : "X\\(.*\\)$as_nl";
  13782. arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
  13783. esac;
  13784. expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
  13785. '
  13786. export as_echo_n_body
  13787. as_echo_n='sh -c $as_echo_n_body as_echo'
  13788. fi
  13789. export as_echo_body
  13790. as_echo='sh -c $as_echo_body as_echo'
  13791. fi
  13792. # The user is always right.
  13793. if test "${PATH_SEPARATOR+set}" != set; then
  13794. PATH_SEPARATOR=:
  13795. (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
  13796. (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
  13797. PATH_SEPARATOR=';'
  13798. }
  13799. fi
  13800. # IFS
  13801. # We need space, tab and new line, in precisely that order. Quoting is
  13802. # there to prevent editors from complaining about space-tab.
  13803. # (If _AS_PATH_WALK were called with IFS unset, it would disable word
  13804. # splitting by setting IFS to empty value.)
  13805. IFS=" "" $as_nl"
  13806. # Find who we are. Look in the path if we contain no directory separator.
  13807. case $0 in #((
  13808. *[\\/]* ) as_myself=$0 ;;
  13809. *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  13810. for as_dir in $PATH
  13811. do
  13812. IFS=$as_save_IFS
  13813. test -z "$as_dir" && as_dir=.
  13814. test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
  13815. done
  13816. IFS=$as_save_IFS
  13817. ;;
  13818. esac
  13819. # We did not find ourselves, most probably we were run as `sh COMMAND'
  13820. # in which case we are not to be found in the path.
  13821. if test "x$as_myself" = x; then
  13822. as_myself=$0
  13823. fi
  13824. if test ! -f "$as_myself"; then
  13825. $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
  13826. exit 1
  13827. fi
  13828. # Unset variables that we do not need and which cause bugs (e.g. in
  13829. # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
  13830. # suppresses any "Segmentation fault" message there. '((' could
  13831. # trigger a bug in pdksh 5.2.14.
  13832. for as_var in BASH_ENV ENV MAIL MAILPATH
  13833. do eval test x\${$as_var+set} = xset \
  13834. && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
  13835. done
  13836. PS1='$ '
  13837. PS2='> '
  13838. PS4='+ '
  13839. # NLS nuisances.
  13840. LC_ALL=C
  13841. export LC_ALL
  13842. LANGUAGE=C
  13843. export LANGUAGE
  13844. # CDPATH.
  13845. (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
  13846. # as_fn_error ERROR [LINENO LOG_FD]
  13847. # ---------------------------------
  13848. # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
  13849. # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
  13850. # script with status $?, using 1 if that was 0.
  13851. as_fn_error ()
  13852. {
  13853. as_status=$?; test $as_status -eq 0 && as_status=1
  13854. if test "$3"; then
  13855. as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  13856. $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
  13857. fi
  13858. $as_echo "$as_me: error: $1" >&2
  13859. as_fn_exit $as_status
  13860. } # as_fn_error
  13861. # as_fn_set_status STATUS
  13862. # -----------------------
  13863. # Set $? to STATUS, without forking.
  13864. as_fn_set_status ()
  13865. {
  13866. return $1
  13867. } # as_fn_set_status
  13868. # as_fn_exit STATUS
  13869. # -----------------
  13870. # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
  13871. as_fn_exit ()
  13872. {
  13873. set +e
  13874. as_fn_set_status $1
  13875. exit $1
  13876. } # as_fn_exit
  13877. # as_fn_unset VAR
  13878. # ---------------
  13879. # Portably unset VAR.
  13880. as_fn_unset ()
  13881. {
  13882. { eval $1=; unset $1;}
  13883. }
  13884. as_unset=as_fn_unset
  13885. # as_fn_append VAR VALUE
  13886. # ----------------------
  13887. # Append the text in VALUE to the end of the definition contained in VAR. Take
  13888. # advantage of any shell optimizations that allow amortized linear growth over
  13889. # repeated appends, instead of the typical quadratic growth present in naive
  13890. # implementations.
  13891. if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
  13892. eval 'as_fn_append ()
  13893. {
  13894. eval $1+=\$2
  13895. }'
  13896. else
  13897. as_fn_append ()
  13898. {
  13899. eval $1=\$$1\$2
  13900. }
  13901. fi # as_fn_append
  13902. # as_fn_arith ARG...
  13903. # ------------------
  13904. # Perform arithmetic evaluation on the ARGs, and store the result in the
  13905. # global $as_val. Take advantage of shells that can avoid forks. The arguments
  13906. # must be portable across $(()) and expr.
  13907. if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
  13908. eval 'as_fn_arith ()
  13909. {
  13910. as_val=$(( $* ))
  13911. }'
  13912. else
  13913. as_fn_arith ()
  13914. {
  13915. as_val=`expr "$@" || test $? -eq 1`
  13916. }
  13917. fi # as_fn_arith
  13918. if expr a : '\(a\)' >/dev/null 2>&1 &&
  13919. test "X`expr 00001 : '.*\(...\)'`" = X001; then
  13920. as_expr=expr
  13921. else
  13922. as_expr=false
  13923. fi
  13924. if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
  13925. as_basename=basename
  13926. else
  13927. as_basename=false
  13928. fi
  13929. if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
  13930. as_dirname=dirname
  13931. else
  13932. as_dirname=false
  13933. fi
  13934. as_me=`$as_basename -- "$0" ||
  13935. $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
  13936. X"$0" : 'X\(//\)$' \| \
  13937. X"$0" : 'X\(/\)' \| . 2>/dev/null ||
  13938. $as_echo X/"$0" |
  13939. sed '/^.*\/\([^/][^/]*\)\/*$/{
  13940. s//\1/
  13941. q
  13942. }
  13943. /^X\/\(\/\/\)$/{
  13944. s//\1/
  13945. q
  13946. }
  13947. /^X\/\(\/\).*/{
  13948. s//\1/
  13949. q
  13950. }
  13951. s/.*/./; q'`
  13952. # Avoid depending upon Character Ranges.
  13953. as_cr_letters='abcdefghijklmnopqrstuvwxyz'
  13954. as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
  13955. as_cr_Letters=$as_cr_letters$as_cr_LETTERS
  13956. as_cr_digits='0123456789'
  13957. as_cr_alnum=$as_cr_Letters$as_cr_digits
  13958. ECHO_C= ECHO_N= ECHO_T=
  13959. case `echo -n x` in #(((((
  13960. -n*)
  13961. case `echo 'xy\c'` in
  13962. *c*) ECHO_T=' ';; # ECHO_T is single tab character.
  13963. xy) ECHO_C='\c';;
  13964. *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
  13965. ECHO_T=' ';;
  13966. esac;;
  13967. *)
  13968. ECHO_N='-n';;
  13969. esac
  13970. rm -f conf$$ conf$$.exe conf$$.file
  13971. if test -d conf$$.dir; then
  13972. rm -f conf$$.dir/conf$$.file
  13973. else
  13974. rm -f conf$$.dir
  13975. mkdir conf$$.dir 2>/dev/null
  13976. fi
  13977. if (echo >conf$$.file) 2>/dev/null; then
  13978. if ln -s conf$$.file conf$$ 2>/dev/null; then
  13979. as_ln_s='ln -s'
  13980. # ... but there are two gotchas:
  13981. # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
  13982. # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
  13983. # In both cases, we have to default to `cp -p'.
  13984. ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
  13985. as_ln_s='cp -p'
  13986. elif ln conf$$.file conf$$ 2>/dev/null; then
  13987. as_ln_s=ln
  13988. else
  13989. as_ln_s='cp -p'
  13990. fi
  13991. else
  13992. as_ln_s='cp -p'
  13993. fi
  13994. rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
  13995. rmdir conf$$.dir 2>/dev/null
  13996. # as_fn_mkdir_p
  13997. # -------------
  13998. # Create "$as_dir" as a directory, including parents if necessary.
  13999. as_fn_mkdir_p ()
  14000. {
  14001. case $as_dir in #(
  14002. -*) as_dir=./$as_dir;;
  14003. esac
  14004. test -d "$as_dir" || eval $as_mkdir_p || {
  14005. as_dirs=
  14006. while :; do
  14007. case $as_dir in #(
  14008. *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
  14009. *) as_qdir=$as_dir;;
  14010. esac
  14011. as_dirs="'$as_qdir' $as_dirs"
  14012. as_dir=`$as_dirname -- "$as_dir" ||
  14013. $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  14014. X"$as_dir" : 'X\(//\)[^/]' \| \
  14015. X"$as_dir" : 'X\(//\)$' \| \
  14016. X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
  14017. $as_echo X"$as_dir" |
  14018. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  14019. s//\1/
  14020. q
  14021. }
  14022. /^X\(\/\/\)[^/].*/{
  14023. s//\1/
  14024. q
  14025. }
  14026. /^X\(\/\/\)$/{
  14027. s//\1/
  14028. q
  14029. }
  14030. /^X\(\/\).*/{
  14031. s//\1/
  14032. q
  14033. }
  14034. s/.*/./; q'`
  14035. test -d "$as_dir" && break
  14036. done
  14037. test -z "$as_dirs" || eval "mkdir $as_dirs"
  14038. } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
  14039. } # as_fn_mkdir_p
  14040. if mkdir -p . 2>/dev/null; then
  14041. as_mkdir_p='mkdir -p "$as_dir"'
  14042. else
  14043. test -d ./-p && rmdir ./-p
  14044. as_mkdir_p=false
  14045. fi
  14046. if test -x / >/dev/null 2>&1; then
  14047. as_test_x='test -x'
  14048. else
  14049. if ls -dL / >/dev/null 2>&1; then
  14050. as_ls_L_option=L
  14051. else
  14052. as_ls_L_option=
  14053. fi
  14054. as_test_x='
  14055. eval sh -c '\''
  14056. if test -d "$1"; then
  14057. test -d "$1/.";
  14058. else
  14059. case $1 in #(
  14060. -*)set "./$1";;
  14061. esac;
  14062. case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
  14063. ???[sx]*):;;*)false;;esac;fi
  14064. '\'' sh
  14065. '
  14066. fi
  14067. as_executable_p=$as_test_x
  14068. # Sed expression to map a string onto a valid CPP name.
  14069. as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
  14070. # Sed expression to map a string onto a valid variable name.
  14071. as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
  14072. exec 6>&1
  14073. ## ----------------------------------- ##
  14074. ## Main body of $CONFIG_STATUS script. ##
  14075. ## ----------------------------------- ##
  14076. _ASEOF
  14077. test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
  14078. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  14079. # Save the log message, to keep $0 and so on meaningful, and to
  14080. # report actual input values of CONFIG_FILES etc. instead of their
  14081. # values after options handling.
  14082. ac_log="
  14083. This file was extended by aria2 $as_me 1.9.1, which was
  14084. generated by GNU Autoconf 2.65. Invocation command line was
  14085. CONFIG_FILES = $CONFIG_FILES
  14086. CONFIG_HEADERS = $CONFIG_HEADERS
  14087. CONFIG_LINKS = $CONFIG_LINKS
  14088. CONFIG_COMMANDS = $CONFIG_COMMANDS
  14089. $ $0 $@
  14090. on `(hostname || uname -n) 2>/dev/null | sed 1q`
  14091. "
  14092. _ACEOF
  14093. case $ac_config_files in *"
  14094. "*) set x $ac_config_files; shift; ac_config_files=$*;;
  14095. esac
  14096. case $ac_config_headers in *"
  14097. "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
  14098. esac
  14099. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  14100. # Files that config.status was made for.
  14101. config_files="$ac_config_files"
  14102. config_headers="$ac_config_headers"
  14103. config_commands="$ac_config_commands"
  14104. _ACEOF
  14105. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  14106. ac_cs_usage="\
  14107. \`$as_me' instantiates files and other configuration actions
  14108. from templates according to the current configuration. Unless the files
  14109. and actions are specified as TAGs, all are instantiated by default.
  14110. Usage: $0 [OPTION]... [TAG]...
  14111. -h, --help print this help, then exit
  14112. -V, --version print version number and configuration settings, then exit
  14113. --config print configuration, then exit
  14114. -q, --quiet, --silent
  14115. do not print progress messages
  14116. -d, --debug don't remove temporary files
  14117. --recheck update $as_me by reconfiguring in the same conditions
  14118. --file=FILE[:TEMPLATE]
  14119. instantiate the configuration file FILE
  14120. --header=FILE[:TEMPLATE]
  14121. instantiate the configuration header FILE
  14122. Configuration files:
  14123. $config_files
  14124. Configuration headers:
  14125. $config_headers
  14126. Configuration commands:
  14127. $config_commands
  14128. Report bugs to <t-tujikawa@users.sourceforge.net>.
  14129. aria2 home page: <http://aria2.sourceforge.net/>."
  14130. _ACEOF
  14131. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  14132. ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
  14133. ac_cs_version="\\
  14134. aria2 config.status 1.9.1
  14135. configured by $0, generated by GNU Autoconf 2.65,
  14136. with options \\"\$ac_cs_config\\"
  14137. Copyright (C) 2009 Free Software Foundation, Inc.
  14138. This config.status script is free software; the Free Software Foundation
  14139. gives unlimited permission to copy, distribute and modify it."
  14140. ac_pwd='$ac_pwd'
  14141. srcdir='$srcdir'
  14142. INSTALL='$INSTALL'
  14143. MKDIR_P='$MKDIR_P'
  14144. AWK='$AWK'
  14145. test -n "\$AWK" || AWK=awk
  14146. _ACEOF
  14147. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  14148. # The default lists apply if the user does not specify any file.
  14149. ac_need_defaults=:
  14150. while test $# != 0
  14151. do
  14152. case $1 in
  14153. --*=*)
  14154. ac_option=`expr "X$1" : 'X\([^=]*\)='`
  14155. ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
  14156. ac_shift=:
  14157. ;;
  14158. *)
  14159. ac_option=$1
  14160. ac_optarg=$2
  14161. ac_shift=shift
  14162. ;;
  14163. esac
  14164. case $ac_option in
  14165. # Handling of the options.
  14166. -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
  14167. ac_cs_recheck=: ;;
  14168. --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
  14169. $as_echo "$ac_cs_version"; exit ;;
  14170. --config | --confi | --conf | --con | --co | --c )
  14171. $as_echo "$ac_cs_config"; exit ;;
  14172. --debug | --debu | --deb | --de | --d | -d )
  14173. debug=: ;;
  14174. --file | --fil | --fi | --f )
  14175. $ac_shift
  14176. case $ac_optarg in
  14177. *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
  14178. esac
  14179. as_fn_append CONFIG_FILES " '$ac_optarg'"
  14180. ac_need_defaults=false;;
  14181. --header | --heade | --head | --hea )
  14182. $ac_shift
  14183. case $ac_optarg in
  14184. *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
  14185. esac
  14186. as_fn_append CONFIG_HEADERS " '$ac_optarg'"
  14187. ac_need_defaults=false;;
  14188. --he | --h)
  14189. # Conflict between --help and --header
  14190. as_fn_error "ambiguous option: \`$1'
  14191. Try \`$0 --help' for more information.";;
  14192. --help | --hel | -h )
  14193. $as_echo "$ac_cs_usage"; exit ;;
  14194. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  14195. | -silent | --silent | --silen | --sile | --sil | --si | --s)
  14196. ac_cs_silent=: ;;
  14197. # This is an error.
  14198. -*) as_fn_error "unrecognized option: \`$1'
  14199. Try \`$0 --help' for more information." ;;
  14200. *) as_fn_append ac_config_targets " $1"
  14201. ac_need_defaults=false ;;
  14202. esac
  14203. shift
  14204. done
  14205. ac_configure_extra_args=
  14206. if $ac_cs_silent; then
  14207. exec 6>/dev/null
  14208. ac_configure_extra_args="$ac_configure_extra_args --silent"
  14209. fi
  14210. _ACEOF
  14211. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  14212. if \$ac_cs_recheck; then
  14213. set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
  14214. shift
  14215. \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
  14216. CONFIG_SHELL='$SHELL'
  14217. export CONFIG_SHELL
  14218. exec "\$@"
  14219. fi
  14220. _ACEOF
  14221. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  14222. exec 5>>config.log
  14223. {
  14224. echo
  14225. sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
  14226. ## Running $as_me. ##
  14227. _ASBOX
  14228. $as_echo "$ac_log"
  14229. } >&5
  14230. _ACEOF
  14231. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  14232. #
  14233. # INIT-COMMANDS
  14234. #
  14235. AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
  14236. # Capture the value of obsolete ALL_LINGUAS because we need it to compute
  14237. # POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES, CATALOGS. But hide it
  14238. # from automake < 1.5.
  14239. eval 'OBSOLETE_ALL_LINGUAS''="$ALL_LINGUAS"'
  14240. # Capture the value of LINGUAS because we need it to compute CATALOGS.
  14241. LINGUAS="${LINGUAS-%UNSET%}"
  14242. _ACEOF
  14243. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  14244. # Handling of arguments.
  14245. for ac_config_target in $ac_config_targets
  14246. do
  14247. case $ac_config_target in
  14248. "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
  14249. "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
  14250. "po-directories") CONFIG_COMMANDS="$CONFIG_COMMANDS po-directories" ;;
  14251. "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
  14252. "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
  14253. "test/Makefile") CONFIG_FILES="$CONFIG_FILES test/Makefile" ;;
  14254. "po/Makefile.in") CONFIG_FILES="$CONFIG_FILES po/Makefile.in" ;;
  14255. "intl/Makefile") CONFIG_FILES="$CONFIG_FILES intl/Makefile" ;;
  14256. "lib/Makefile") CONFIG_FILES="$CONFIG_FILES lib/Makefile" ;;
  14257. "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
  14258. *) as_fn_error "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
  14259. esac
  14260. done
  14261. # If the user did not use the arguments to specify the items to instantiate,
  14262. # then the envvar interface is used. Set only those that are not.
  14263. # We use the long form for the default assignment because of an extremely
  14264. # bizarre bug on SunOS 4.1.3.
  14265. if $ac_need_defaults; then
  14266. test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
  14267. test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
  14268. test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
  14269. fi
  14270. # Have a temporary directory for convenience. Make it in the build tree
  14271. # simply because there is no reason against having it here, and in addition,
  14272. # creating and moving files from /tmp can sometimes cause problems.
  14273. # Hook for its removal unless debugging.
  14274. # Note that there is a small window in which the directory will not be cleaned:
  14275. # after its creation but before its name has been assigned to `$tmp'.
  14276. $debug ||
  14277. {
  14278. tmp=
  14279. trap 'exit_status=$?
  14280. { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
  14281. ' 0
  14282. trap 'as_fn_exit 1' 1 2 13 15
  14283. }
  14284. # Create a (secure) tmp directory for tmp files.
  14285. {
  14286. tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
  14287. test -n "$tmp" && test -d "$tmp"
  14288. } ||
  14289. {
  14290. tmp=./conf$$-$RANDOM
  14291. (umask 077 && mkdir "$tmp")
  14292. } || as_fn_error "cannot create a temporary directory in ." "$LINENO" 5
  14293. # Set up the scripts for CONFIG_FILES section.
  14294. # No need to generate them if there are no CONFIG_FILES.
  14295. # This happens for instance with `./config.status config.h'.
  14296. if test -n "$CONFIG_FILES"; then
  14297. ac_cr=`echo X | tr X '\015'`
  14298. # On cygwin, bash can eat \r inside `` if the user requested igncr.
  14299. # But we know of no other shell where ac_cr would be empty at this
  14300. # point, so we can use a bashism as a fallback.
  14301. if test "x$ac_cr" = x; then
  14302. eval ac_cr=\$\'\\r\'
  14303. fi
  14304. ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
  14305. if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
  14306. ac_cs_awk_cr='\r'
  14307. else
  14308. ac_cs_awk_cr=$ac_cr
  14309. fi
  14310. echo 'BEGIN {' >"$tmp/subs1.awk" &&
  14311. _ACEOF
  14312. {
  14313. echo "cat >conf$$subs.awk <<_ACEOF" &&
  14314. echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
  14315. echo "_ACEOF"
  14316. } >conf$$subs.sh ||
  14317. as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
  14318. ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
  14319. ac_delim='%!_!# '
  14320. for ac_last_try in false false false false false :; do
  14321. . ./conf$$subs.sh ||
  14322. as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
  14323. ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
  14324. if test $ac_delim_n = $ac_delim_num; then
  14325. break
  14326. elif $ac_last_try; then
  14327. as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
  14328. else
  14329. ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
  14330. fi
  14331. done
  14332. rm -f conf$$subs.sh
  14333. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  14334. cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
  14335. _ACEOF
  14336. sed -n '
  14337. h
  14338. s/^/S["/; s/!.*/"]=/
  14339. p
  14340. g
  14341. s/^[^!]*!//
  14342. :repl
  14343. t repl
  14344. s/'"$ac_delim"'$//
  14345. t delim
  14346. :nl
  14347. h
  14348. s/\(.\{148\}\)..*/\1/
  14349. t more1
  14350. s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
  14351. p
  14352. n
  14353. b repl
  14354. :more1
  14355. s/["\\]/\\&/g; s/^/"/; s/$/"\\/
  14356. p
  14357. g
  14358. s/.\{148\}//
  14359. t nl
  14360. :delim
  14361. h
  14362. s/\(.\{148\}\)..*/\1/
  14363. t more2
  14364. s/["\\]/\\&/g; s/^/"/; s/$/"/
  14365. p
  14366. b
  14367. :more2
  14368. s/["\\]/\\&/g; s/^/"/; s/$/"\\/
  14369. p
  14370. g
  14371. s/.\{148\}//
  14372. t delim
  14373. ' <conf$$subs.awk | sed '
  14374. /^[^""]/{
  14375. N
  14376. s/\n//
  14377. }
  14378. ' >>$CONFIG_STATUS || ac_write_fail=1
  14379. rm -f conf$$subs.awk
  14380. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  14381. _ACAWK
  14382. cat >>"\$tmp/subs1.awk" <<_ACAWK &&
  14383. for (key in S) S_is_set[key] = 1
  14384. FS = ""
  14385. }
  14386. {
  14387. line = $ 0
  14388. nfields = split(line, field, "@")
  14389. substed = 0
  14390. len = length(field[1])
  14391. for (i = 2; i < nfields; i++) {
  14392. key = field[i]
  14393. keylen = length(key)
  14394. if (S_is_set[key]) {
  14395. value = S[key]
  14396. line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
  14397. len += length(value) + length(field[++i])
  14398. substed = 1
  14399. } else
  14400. len += 1 + keylen
  14401. }
  14402. print line
  14403. }
  14404. _ACAWK
  14405. _ACEOF
  14406. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  14407. if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
  14408. sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
  14409. else
  14410. cat
  14411. fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
  14412. || as_fn_error "could not setup config files machinery" "$LINENO" 5
  14413. _ACEOF
  14414. # VPATH may cause trouble with some makes, so we remove $(srcdir),
  14415. # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
  14416. # trailing colons and then remove the whole line if VPATH becomes empty
  14417. # (actually we leave an empty line to preserve line numbers).
  14418. if test "x$srcdir" = x.; then
  14419. ac_vpsub='/^[ ]*VPATH[ ]*=/{
  14420. s/:*\$(srcdir):*/:/
  14421. s/:*\${srcdir}:*/:/
  14422. s/:*@srcdir@:*/:/
  14423. s/^\([^=]*=[ ]*\):*/\1/
  14424. s/:*$//
  14425. s/^[^=]*=[ ]*$//
  14426. }'
  14427. fi
  14428. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  14429. fi # test -n "$CONFIG_FILES"
  14430. # Set up the scripts for CONFIG_HEADERS section.
  14431. # No need to generate them if there are no CONFIG_HEADERS.
  14432. # This happens for instance with `./config.status Makefile'.
  14433. if test -n "$CONFIG_HEADERS"; then
  14434. cat >"$tmp/defines.awk" <<\_ACAWK ||
  14435. BEGIN {
  14436. _ACEOF
  14437. # Transform confdefs.h into an awk script `defines.awk', embedded as
  14438. # here-document in config.status, that substitutes the proper values into
  14439. # config.h.in to produce config.h.
  14440. # Create a delimiter string that does not exist in confdefs.h, to ease
  14441. # handling of long lines.
  14442. ac_delim='%!_!# '
  14443. for ac_last_try in false false :; do
  14444. ac_t=`sed -n "/$ac_delim/p" confdefs.h`
  14445. if test -z "$ac_t"; then
  14446. break
  14447. elif $ac_last_try; then
  14448. as_fn_error "could not make $CONFIG_HEADERS" "$LINENO" 5
  14449. else
  14450. ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
  14451. fi
  14452. done
  14453. # For the awk script, D is an array of macro values keyed by name,
  14454. # likewise P contains macro parameters if any. Preserve backslash
  14455. # newline sequences.
  14456. ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
  14457. sed -n '
  14458. s/.\{148\}/&'"$ac_delim"'/g
  14459. t rset
  14460. :rset
  14461. s/^[ ]*#[ ]*define[ ][ ]*/ /
  14462. t def
  14463. d
  14464. :def
  14465. s/\\$//
  14466. t bsnl
  14467. s/["\\]/\\&/g
  14468. s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
  14469. D["\1"]=" \3"/p
  14470. s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
  14471. d
  14472. :bsnl
  14473. s/["\\]/\\&/g
  14474. s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
  14475. D["\1"]=" \3\\\\\\n"\\/p
  14476. t cont
  14477. s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
  14478. t cont
  14479. d
  14480. :cont
  14481. n
  14482. s/.\{148\}/&'"$ac_delim"'/g
  14483. t clear
  14484. :clear
  14485. s/\\$//
  14486. t bsnlc
  14487. s/["\\]/\\&/g; s/^/"/; s/$/"/p
  14488. d
  14489. :bsnlc
  14490. s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
  14491. b cont
  14492. ' <confdefs.h | sed '
  14493. s/'"$ac_delim"'/"\\\
  14494. "/g' >>$CONFIG_STATUS || ac_write_fail=1
  14495. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  14496. for (key in D) D_is_set[key] = 1
  14497. FS = ""
  14498. }
  14499. /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
  14500. line = \$ 0
  14501. split(line, arg, " ")
  14502. if (arg[1] == "#") {
  14503. defundef = arg[2]
  14504. mac1 = arg[3]
  14505. } else {
  14506. defundef = substr(arg[1], 2)
  14507. mac1 = arg[2]
  14508. }
  14509. split(mac1, mac2, "(") #)
  14510. macro = mac2[1]
  14511. prefix = substr(line, 1, index(line, defundef) - 1)
  14512. if (D_is_set[macro]) {
  14513. # Preserve the white space surrounding the "#".
  14514. print prefix "define", macro P[macro] D[macro]
  14515. next
  14516. } else {
  14517. # Replace #undef with comments. This is necessary, for example,
  14518. # in the case of _POSIX_SOURCE, which is predefined and required
  14519. # on some systems where configure will not decide to define it.
  14520. if (defundef == "undef") {
  14521. print "/*", prefix defundef, macro, "*/"
  14522. next
  14523. }
  14524. }
  14525. }
  14526. { print }
  14527. _ACAWK
  14528. _ACEOF
  14529. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  14530. as_fn_error "could not setup config headers machinery" "$LINENO" 5
  14531. fi # test -n "$CONFIG_HEADERS"
  14532. eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
  14533. shift
  14534. for ac_tag
  14535. do
  14536. case $ac_tag in
  14537. :[FHLC]) ac_mode=$ac_tag; continue;;
  14538. esac
  14539. case $ac_mode$ac_tag in
  14540. :[FHL]*:*);;
  14541. :L* | :C*:*) as_fn_error "invalid tag \`$ac_tag'" "$LINENO" 5;;
  14542. :[FH]-) ac_tag=-:-;;
  14543. :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
  14544. esac
  14545. ac_save_IFS=$IFS
  14546. IFS=:
  14547. set x $ac_tag
  14548. IFS=$ac_save_IFS
  14549. shift
  14550. ac_file=$1
  14551. shift
  14552. case $ac_mode in
  14553. :L) ac_source=$1;;
  14554. :[FH])
  14555. ac_file_inputs=
  14556. for ac_f
  14557. do
  14558. case $ac_f in
  14559. -) ac_f="$tmp/stdin";;
  14560. *) # Look for the file first in the build tree, then in the source tree
  14561. # (if the path is not absolute). The absolute path cannot be DOS-style,
  14562. # because $ac_f cannot contain `:'.
  14563. test -f "$ac_f" ||
  14564. case $ac_f in
  14565. [\\/$]*) false;;
  14566. *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
  14567. esac ||
  14568. as_fn_error "cannot find input file: \`$ac_f'" "$LINENO" 5;;
  14569. esac
  14570. case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
  14571. as_fn_append ac_file_inputs " '$ac_f'"
  14572. done
  14573. # Let's still pretend it is `configure' which instantiates (i.e., don't
  14574. # use $as_me), people would be surprised to read:
  14575. # /* config.h. Generated by config.status. */
  14576. configure_input='Generated from '`
  14577. $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
  14578. `' by configure.'
  14579. if test x"$ac_file" != x-; then
  14580. configure_input="$ac_file. $configure_input"
  14581. { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
  14582. $as_echo "$as_me: creating $ac_file" >&6;}
  14583. fi
  14584. # Neutralize special characters interpreted by sed in replacement strings.
  14585. case $configure_input in #(
  14586. *\&* | *\|* | *\\* )
  14587. ac_sed_conf_input=`$as_echo "$configure_input" |
  14588. sed 's/[\\\\&|]/\\\\&/g'`;; #(
  14589. *) ac_sed_conf_input=$configure_input;;
  14590. esac
  14591. case $ac_tag in
  14592. *:-:* | *:-) cat >"$tmp/stdin" \
  14593. || as_fn_error "could not create $ac_file" "$LINENO" 5 ;;
  14594. esac
  14595. ;;
  14596. esac
  14597. ac_dir=`$as_dirname -- "$ac_file" ||
  14598. $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  14599. X"$ac_file" : 'X\(//\)[^/]' \| \
  14600. X"$ac_file" : 'X\(//\)$' \| \
  14601. X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
  14602. $as_echo X"$ac_file" |
  14603. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  14604. s//\1/
  14605. q
  14606. }
  14607. /^X\(\/\/\)[^/].*/{
  14608. s//\1/
  14609. q
  14610. }
  14611. /^X\(\/\/\)$/{
  14612. s//\1/
  14613. q
  14614. }
  14615. /^X\(\/\).*/{
  14616. s//\1/
  14617. q
  14618. }
  14619. s/.*/./; q'`
  14620. as_dir="$ac_dir"; as_fn_mkdir_p
  14621. ac_builddir=.
  14622. case "$ac_dir" in
  14623. .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
  14624. *)
  14625. ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
  14626. # A ".." for each directory in $ac_dir_suffix.
  14627. ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
  14628. case $ac_top_builddir_sub in
  14629. "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
  14630. *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
  14631. esac ;;
  14632. esac
  14633. ac_abs_top_builddir=$ac_pwd
  14634. ac_abs_builddir=$ac_pwd$ac_dir_suffix
  14635. # for backward compatibility:
  14636. ac_top_builddir=$ac_top_build_prefix
  14637. case $srcdir in
  14638. .) # We are building in place.
  14639. ac_srcdir=.
  14640. ac_top_srcdir=$ac_top_builddir_sub
  14641. ac_abs_top_srcdir=$ac_pwd ;;
  14642. [\\/]* | ?:[\\/]* ) # Absolute name.
  14643. ac_srcdir=$srcdir$ac_dir_suffix;
  14644. ac_top_srcdir=$srcdir
  14645. ac_abs_top_srcdir=$srcdir ;;
  14646. *) # Relative name.
  14647. ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
  14648. ac_top_srcdir=$ac_top_build_prefix$srcdir
  14649. ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
  14650. esac
  14651. ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
  14652. case $ac_mode in
  14653. :F)
  14654. #
  14655. # CONFIG_FILE
  14656. #
  14657. case $INSTALL in
  14658. [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
  14659. *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
  14660. esac
  14661. ac_MKDIR_P=$MKDIR_P
  14662. case $MKDIR_P in
  14663. [\\/$]* | ?:[\\/]* ) ;;
  14664. */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
  14665. esac
  14666. _ACEOF
  14667. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  14668. # If the template does not know about datarootdir, expand it.
  14669. # FIXME: This hack should be removed a few years after 2.60.
  14670. ac_datarootdir_hack=; ac_datarootdir_seen=
  14671. ac_sed_dataroot='
  14672. /datarootdir/ {
  14673. p
  14674. q
  14675. }
  14676. /@datadir@/p
  14677. /@docdir@/p
  14678. /@infodir@/p
  14679. /@localedir@/p
  14680. /@mandir@/p'
  14681. case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
  14682. *datarootdir*) ac_datarootdir_seen=yes;;
  14683. *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
  14684. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
  14685. $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
  14686. _ACEOF
  14687. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  14688. ac_datarootdir_hack='
  14689. s&@datadir@&$datadir&g
  14690. s&@docdir@&$docdir&g
  14691. s&@infodir@&$infodir&g
  14692. s&@localedir@&$localedir&g
  14693. s&@mandir@&$mandir&g
  14694. s&\\\${datarootdir}&$datarootdir&g' ;;
  14695. esac
  14696. _ACEOF
  14697. # Neutralize VPATH when `$srcdir' = `.'.
  14698. # Shell code in configure.ac might set extrasub.
  14699. # FIXME: do we really want to maintain this feature?
  14700. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  14701. ac_sed_extra="$ac_vpsub
  14702. $extrasub
  14703. _ACEOF
  14704. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  14705. :t
  14706. /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
  14707. s|@configure_input@|$ac_sed_conf_input|;t t
  14708. s&@top_builddir@&$ac_top_builddir_sub&;t t
  14709. s&@top_build_prefix@&$ac_top_build_prefix&;t t
  14710. s&@srcdir@&$ac_srcdir&;t t
  14711. s&@abs_srcdir@&$ac_abs_srcdir&;t t
  14712. s&@top_srcdir@&$ac_top_srcdir&;t t
  14713. s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
  14714. s&@builddir@&$ac_builddir&;t t
  14715. s&@abs_builddir@&$ac_abs_builddir&;t t
  14716. s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
  14717. s&@INSTALL@&$ac_INSTALL&;t t
  14718. s&@MKDIR_P@&$ac_MKDIR_P&;t t
  14719. $ac_datarootdir_hack
  14720. "
  14721. eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
  14722. || as_fn_error "could not create $ac_file" "$LINENO" 5
  14723. test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
  14724. { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
  14725. { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
  14726. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
  14727. which seems to be undefined. Please make sure it is defined." >&5
  14728. $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
  14729. which seems to be undefined. Please make sure it is defined." >&2;}
  14730. rm -f "$tmp/stdin"
  14731. case $ac_file in
  14732. -) cat "$tmp/out" && rm -f "$tmp/out";;
  14733. *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
  14734. esac \
  14735. || as_fn_error "could not create $ac_file" "$LINENO" 5
  14736. ;;
  14737. :H)
  14738. #
  14739. # CONFIG_HEADER
  14740. #
  14741. if test x"$ac_file" != x-; then
  14742. {
  14743. $as_echo "/* $configure_input */" \
  14744. && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
  14745. } >"$tmp/config.h" \
  14746. || as_fn_error "could not create $ac_file" "$LINENO" 5
  14747. if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
  14748. { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
  14749. $as_echo "$as_me: $ac_file is unchanged" >&6;}
  14750. else
  14751. rm -f "$ac_file"
  14752. mv "$tmp/config.h" "$ac_file" \
  14753. || as_fn_error "could not create $ac_file" "$LINENO" 5
  14754. fi
  14755. else
  14756. $as_echo "/* $configure_input */" \
  14757. && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
  14758. || as_fn_error "could not create -" "$LINENO" 5
  14759. fi
  14760. # Compute "$ac_file"'s index in $config_headers.
  14761. _am_arg="$ac_file"
  14762. _am_stamp_count=1
  14763. for _am_header in $config_headers :; do
  14764. case $_am_header in
  14765. $_am_arg | $_am_arg:* )
  14766. break ;;
  14767. * )
  14768. _am_stamp_count=`expr $_am_stamp_count + 1` ;;
  14769. esac
  14770. done
  14771. echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
  14772. $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  14773. X"$_am_arg" : 'X\(//\)[^/]' \| \
  14774. X"$_am_arg" : 'X\(//\)$' \| \
  14775. X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
  14776. $as_echo X"$_am_arg" |
  14777. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  14778. s//\1/
  14779. q
  14780. }
  14781. /^X\(\/\/\)[^/].*/{
  14782. s//\1/
  14783. q
  14784. }
  14785. /^X\(\/\/\)$/{
  14786. s//\1/
  14787. q
  14788. }
  14789. /^X\(\/\).*/{
  14790. s//\1/
  14791. q
  14792. }
  14793. s/.*/./; q'`/stamp-h$_am_stamp_count
  14794. ;;
  14795. :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
  14796. $as_echo "$as_me: executing $ac_file commands" >&6;}
  14797. ;;
  14798. esac
  14799. case $ac_file$ac_mode in
  14800. "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
  14801. # Autoconf 2.62 quotes --file arguments for eval, but not when files
  14802. # are listed without --file. Let's play safe and only enable the eval
  14803. # if we detect the quoting.
  14804. case $CONFIG_FILES in
  14805. *\'*) eval set x "$CONFIG_FILES" ;;
  14806. *) set x $CONFIG_FILES ;;
  14807. esac
  14808. shift
  14809. for mf
  14810. do
  14811. # Strip MF so we end up with the name of the file.
  14812. mf=`echo "$mf" | sed -e 's/:.*$//'`
  14813. # Check whether this is an Automake generated Makefile or not.
  14814. # We used to match only the files named `Makefile.in', but
  14815. # some people rename them; so instead we look at the file content.
  14816. # Grep'ing the first line is not enough: some people post-process
  14817. # each Makefile.in and add a new line on top of each file to say so.
  14818. # Grep'ing the whole file is not good either: AIX grep has a line
  14819. # limit of 2048, but all sed's we know have understand at least 4000.
  14820. if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
  14821. dirpart=`$as_dirname -- "$mf" ||
  14822. $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  14823. X"$mf" : 'X\(//\)[^/]' \| \
  14824. X"$mf" : 'X\(//\)$' \| \
  14825. X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
  14826. $as_echo X"$mf" |
  14827. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  14828. s//\1/
  14829. q
  14830. }
  14831. /^X\(\/\/\)[^/].*/{
  14832. s//\1/
  14833. q
  14834. }
  14835. /^X\(\/\/\)$/{
  14836. s//\1/
  14837. q
  14838. }
  14839. /^X\(\/\).*/{
  14840. s//\1/
  14841. q
  14842. }
  14843. s/.*/./; q'`
  14844. else
  14845. continue
  14846. fi
  14847. # Extract the definition of DEPDIR, am__include, and am__quote
  14848. # from the Makefile without running `make'.
  14849. DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
  14850. test -z "$DEPDIR" && continue
  14851. am__include=`sed -n 's/^am__include = //p' < "$mf"`
  14852. test -z "am__include" && continue
  14853. am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
  14854. # When using ansi2knr, U may be empty or an underscore; expand it
  14855. U=`sed -n 's/^U = //p' < "$mf"`
  14856. # Find all dependency output files, they are included files with
  14857. # $(DEPDIR) in their names. We invoke sed twice because it is the
  14858. # simplest approach to changing $(DEPDIR) to its actual value in the
  14859. # expansion.
  14860. for file in `sed -n "
  14861. s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
  14862. sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
  14863. # Make sure the directory exists.
  14864. test -f "$dirpart/$file" && continue
  14865. fdir=`$as_dirname -- "$file" ||
  14866. $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  14867. X"$file" : 'X\(//\)[^/]' \| \
  14868. X"$file" : 'X\(//\)$' \| \
  14869. X"$file" : 'X\(/\)' \| . 2>/dev/null ||
  14870. $as_echo X"$file" |
  14871. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  14872. s//\1/
  14873. q
  14874. }
  14875. /^X\(\/\/\)[^/].*/{
  14876. s//\1/
  14877. q
  14878. }
  14879. /^X\(\/\/\)$/{
  14880. s//\1/
  14881. q
  14882. }
  14883. /^X\(\/\).*/{
  14884. s//\1/
  14885. q
  14886. }
  14887. s/.*/./; q'`
  14888. as_dir=$dirpart/$fdir; as_fn_mkdir_p
  14889. # echo "creating $dirpart/$file"
  14890. echo '# dummy' > "$dirpart/$file"
  14891. done
  14892. done
  14893. }
  14894. ;;
  14895. "po-directories":C)
  14896. for ac_file in $CONFIG_FILES; do
  14897. # Support "outfile[:infile[:infile...]]"
  14898. case "$ac_file" in
  14899. *:*) ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
  14900. esac
  14901. # PO directories have a Makefile.in generated from Makefile.in.in.
  14902. case "$ac_file" in */Makefile.in)
  14903. # Adjust a relative srcdir.
  14904. ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'`
  14905. ac_dir_suffix="/`echo "$ac_dir"|sed 's%^\./%%'`"
  14906. ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'`
  14907. # In autoconf-2.13 it is called $ac_given_srcdir.
  14908. # In autoconf-2.50 it is called $srcdir.
  14909. test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir"
  14910. case "$ac_given_srcdir" in
  14911. .) top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;;
  14912. /*) top_srcdir="$ac_given_srcdir" ;;
  14913. *) top_srcdir="$ac_dots$ac_given_srcdir" ;;
  14914. esac
  14915. # Treat a directory as a PO directory if and only if it has a
  14916. # POTFILES.in file. This allows packages to have multiple PO
  14917. # directories under different names or in different locations.
  14918. if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then
  14919. rm -f "$ac_dir/POTFILES"
  14920. test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES"
  14921. cat "$ac_given_srcdir/$ac_dir/POTFILES.in" | sed -e "/^#/d" -e "/^[ ]*\$/d" -e "s,.*, $top_srcdir/& \\\\," | sed -e "\$s/\(.*\) \\\\/\1/" > "$ac_dir/POTFILES"
  14922. POMAKEFILEDEPS="POTFILES.in"
  14923. # ALL_LINGUAS, POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES depend
  14924. # on $ac_dir but don't depend on user-specified configuration
  14925. # parameters.
  14926. if test -f "$ac_given_srcdir/$ac_dir/LINGUAS"; then
  14927. # The LINGUAS file contains the set of available languages.
  14928. if test -n "$OBSOLETE_ALL_LINGUAS"; then
  14929. test -n "$as_me" && echo "$as_me: setting ALL_LINGUAS in configure.in is obsolete" || echo "setting ALL_LINGUAS in configure.in is obsolete"
  14930. fi
  14931. ALL_LINGUAS_=`sed -e "/^#/d" -e "s/#.*//" "$ac_given_srcdir/$ac_dir/LINGUAS"`
  14932. # Hide the ALL_LINGUAS assigment from automake < 1.5.
  14933. eval 'ALL_LINGUAS''=$ALL_LINGUAS_'
  14934. POMAKEFILEDEPS="$POMAKEFILEDEPS LINGUAS"
  14935. else
  14936. # The set of available languages was given in configure.in.
  14937. # Hide the ALL_LINGUAS assigment from automake < 1.5.
  14938. eval 'ALL_LINGUAS''=$OBSOLETE_ALL_LINGUAS'
  14939. fi
  14940. # Compute POFILES
  14941. # as $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).po)
  14942. # Compute UPDATEPOFILES
  14943. # as $(foreach lang, $(ALL_LINGUAS), $(lang).po-update)
  14944. # Compute DUMMYPOFILES
  14945. # as $(foreach lang, $(ALL_LINGUAS), $(lang).nop)
  14946. # Compute GMOFILES
  14947. # as $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).gmo)
  14948. case "$ac_given_srcdir" in
  14949. .) srcdirpre= ;;
  14950. *) srcdirpre='$(srcdir)/' ;;
  14951. esac
  14952. POFILES=
  14953. UPDATEPOFILES=
  14954. DUMMYPOFILES=
  14955. GMOFILES=
  14956. for lang in $ALL_LINGUAS; do
  14957. POFILES="$POFILES $srcdirpre$lang.po"
  14958. UPDATEPOFILES="$UPDATEPOFILES $lang.po-update"
  14959. DUMMYPOFILES="$DUMMYPOFILES $lang.nop"
  14960. GMOFILES="$GMOFILES $srcdirpre$lang.gmo"
  14961. done
  14962. # CATALOGS depends on both $ac_dir and the user's LINGUAS
  14963. # environment variable.
  14964. INST_LINGUAS=
  14965. if test -n "$ALL_LINGUAS"; then
  14966. for presentlang in $ALL_LINGUAS; do
  14967. useit=no
  14968. if test "%UNSET%" != "$LINGUAS"; then
  14969. desiredlanguages="$LINGUAS"
  14970. else
  14971. desiredlanguages="$ALL_LINGUAS"
  14972. fi
  14973. for desiredlang in $desiredlanguages; do
  14974. # Use the presentlang catalog if desiredlang is
  14975. # a. equal to presentlang, or
  14976. # b. a variant of presentlang (because in this case,
  14977. # presentlang can be used as a fallback for messages
  14978. # which are not translated in the desiredlang catalog).
  14979. case "$desiredlang" in
  14980. "$presentlang"*) useit=yes;;
  14981. esac
  14982. done
  14983. if test $useit = yes; then
  14984. INST_LINGUAS="$INST_LINGUAS $presentlang"
  14985. fi
  14986. done
  14987. fi
  14988. CATALOGS=
  14989. if test -n "$INST_LINGUAS"; then
  14990. for lang in $INST_LINGUAS; do
  14991. CATALOGS="$CATALOGS $lang.gmo"
  14992. done
  14993. fi
  14994. test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" || echo "creating $ac_dir/Makefile"
  14995. sed -e "/^POTFILES =/r $ac_dir/POTFILES" -e "/^# Makevars/r $ac_given_srcdir/$ac_dir/Makevars" -e "s|@POFILES@|$POFILES|g" -e "s|@UPDATEPOFILES@|$UPDATEPOFILES|g" -e "s|@DUMMYPOFILES@|$DUMMYPOFILES|g" -e "s|@GMOFILES@|$GMOFILES|g" -e "s|@CATALOGS@|$CATALOGS|g" -e "s|@POMAKEFILEDEPS@|$POMAKEFILEDEPS|g" "$ac_dir/Makefile.in" > "$ac_dir/Makefile"
  14996. for f in "$ac_given_srcdir/$ac_dir"/Rules-*; do
  14997. if test -f "$f"; then
  14998. case "$f" in
  14999. *.orig | *.bak | *~) ;;
  15000. *) cat "$f" >> "$ac_dir/Makefile" ;;
  15001. esac
  15002. fi
  15003. done
  15004. fi
  15005. ;;
  15006. esac
  15007. done ;;
  15008. esac
  15009. done # for ac_tag
  15010. as_fn_exit 0
  15011. _ACEOF
  15012. ac_clean_files=$ac_clean_files_save
  15013. test $ac_write_fail = 0 ||
  15014. as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5
  15015. # configure is writing to config.log, and then calls config.status.
  15016. # config.status does its own redirection, appending to config.log.
  15017. # Unfortunately, on DOS this fails, as config.log is still kept open
  15018. # by configure, so config.status won't be able to write to it; its
  15019. # output is simply discarded. So we exec the FD to /dev/null,
  15020. # effectively closing config.log, so it can be properly (re)opened and
  15021. # appended to by config.status. When coming back to configure, we
  15022. # need to make the FD available again.
  15023. if test "$no_create" != yes; then
  15024. ac_cs_success=:
  15025. ac_config_status_args=
  15026. test "$silent" = yes &&
  15027. ac_config_status_args="$ac_config_status_args --quiet"
  15028. exec 5>/dev/null
  15029. $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
  15030. exec 5>>config.log
  15031. # Use ||, not &&, to avoid exiting from the if with $? = 1, which
  15032. # would make configure fail if this is the last instruction.
  15033. $ac_cs_success || as_fn_exit $?
  15034. fi
  15035. if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
  15036. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
  15037. $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
  15038. fi
  15039. echo " "
  15040. echo "Build: $build"
  15041. echo "Target: $target"
  15042. echo "Install prefix: $prefix"
  15043. echo "CXXFLAGS: $CXXFLAGS"
  15044. echo "CFLAGS: $CFLAGS"
  15045. echo "CPPFLAGS: $CPPFLAGS"
  15046. echo "LDFLAGS: $LDFLAGS"
  15047. echo "LIBS: $LIBS"
  15048. echo "SQLite3: $have_sqlite3"
  15049. echo "GnuTLS: $have_libgnutls"
  15050. echo "OpenSSL: $have_openssl"
  15051. echo "CA Bundle: $ca_bundle"
  15052. echo "LibXML2: $have_libxml2"
  15053. echo "LibExpat: $have_libexpat"
  15054. echo "LibCares: $have_libcares"
  15055. echo "Libz: $have_libz"
  15056. echo "Epoll: $have_epoll"
  15057. echo "Bittorrent: $enable_bittorrent"
  15058. echo "Metalink: $enable_metalink"
  15059. echo "XML-RPC: $enable_xml_rpc"