configure 470 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531153215331534153515361537153815391540154115421543154415451546154715481549155015511552155315541555155615571558155915601561156215631564156515661567156815691570157115721573157415751576157715781579158015811582158315841585158615871588158915901591159215931594159515961597159815991600160116021603160416051606160716081609161016111612161316141615161616171618161916201621162216231624162516261627162816291630163116321633163416351636163716381639164016411642164316441645164616471648164916501651165216531654165516561657165816591660166116621663166416651666166716681669167016711672167316741675167616771678167916801681168216831684168516861687168816891690169116921693169416951696169716981699170017011702170317041705170617071708170917101711171217131714171517161717171817191720172117221723172417251726172717281729173017311732173317341735173617371738173917401741174217431744174517461747174817491750175117521753175417551756175717581759176017611762176317641765176617671768176917701771177217731774177517761777177817791780178117821783178417851786178717881789179017911792179317941795179617971798179918001801180218031804180518061807180818091810181118121813181418151816181718181819182018211822182318241825182618271828182918301831183218331834183518361837183818391840184118421843184418451846184718481849185018511852185318541855185618571858185918601861186218631864186518661867186818691870187118721873187418751876187718781879188018811882188318841885188618871888188918901891189218931894189518961897189818991900190119021903190419051906190719081909191019111912191319141915191619171918191919201921192219231924192519261927192819291930193119321933193419351936193719381939194019411942194319441945194619471948194919501951195219531954195519561957195819591960196119621963196419651966196719681969197019711972197319741975197619771978197919801981198219831984198519861987198819891990199119921993199419951996199719981999200020012002200320042005200620072008200920102011201220132014201520162017201820192020202120222023202420252026202720282029203020312032203320342035203620372038203920402041204220432044204520462047204820492050205120522053205420552056205720582059206020612062206320642065206620672068206920702071207220732074207520762077207820792080208120822083208420852086208720882089209020912092209320942095209620972098209921002101210221032104210521062107210821092110211121122113211421152116211721182119212021212122212321242125212621272128212921302131213221332134213521362137213821392140214121422143214421452146214721482149215021512152215321542155215621572158215921602161216221632164216521662167216821692170217121722173217421752176217721782179218021812182218321842185218621872188218921902191219221932194219521962197219821992200220122022203220422052206220722082209221022112212221322142215221622172218221922202221222222232224222522262227222822292230223122322233223422352236223722382239224022412242224322442245224622472248224922502251225222532254225522562257225822592260226122622263226422652266226722682269227022712272227322742275227622772278227922802281228222832284228522862287228822892290229122922293229422952296229722982299230023012302230323042305230623072308230923102311231223132314231523162317231823192320232123222323232423252326232723282329233023312332233323342335233623372338233923402341234223432344234523462347234823492350235123522353235423552356235723582359236023612362236323642365236623672368236923702371237223732374237523762377237823792380238123822383238423852386238723882389239023912392239323942395239623972398239924002401240224032404240524062407240824092410241124122413241424152416241724182419242024212422242324242425242624272428242924302431243224332434243524362437243824392440244124422443244424452446244724482449245024512452245324542455245624572458245924602461246224632464246524662467246824692470247124722473247424752476247724782479248024812482248324842485248624872488248924902491249224932494249524962497249824992500250125022503250425052506250725082509251025112512251325142515251625172518251925202521252225232524252525262527252825292530253125322533253425352536253725382539254025412542254325442545254625472548254925502551255225532554255525562557255825592560256125622563256425652566256725682569257025712572257325742575257625772578257925802581258225832584258525862587258825892590259125922593259425952596259725982599260026012602260326042605260626072608260926102611261226132614261526162617261826192620262126222623262426252626262726282629263026312632263326342635263626372638263926402641264226432644264526462647264826492650265126522653265426552656265726582659266026612662266326642665266626672668266926702671267226732674267526762677267826792680268126822683268426852686268726882689269026912692269326942695269626972698269927002701270227032704270527062707270827092710271127122713271427152716271727182719272027212722272327242725272627272728272927302731273227332734273527362737273827392740274127422743274427452746274727482749275027512752275327542755275627572758275927602761276227632764276527662767276827692770277127722773277427752776277727782779278027812782278327842785278627872788278927902791279227932794279527962797279827992800280128022803280428052806280728082809281028112812281328142815281628172818281928202821282228232824282528262827282828292830283128322833283428352836283728382839284028412842284328442845284628472848284928502851285228532854285528562857285828592860286128622863286428652866286728682869287028712872287328742875287628772878287928802881288228832884288528862887288828892890289128922893289428952896289728982899290029012902290329042905290629072908290929102911291229132914291529162917291829192920292129222923292429252926292729282929293029312932293329342935293629372938293929402941294229432944294529462947294829492950295129522953295429552956295729582959296029612962296329642965296629672968296929702971297229732974297529762977297829792980298129822983298429852986298729882989299029912992299329942995299629972998299930003001300230033004300530063007300830093010301130123013301430153016301730183019302030213022302330243025302630273028302930303031303230333034303530363037303830393040304130423043304430453046304730483049305030513052305330543055305630573058305930603061306230633064306530663067306830693070307130723073307430753076307730783079308030813082308330843085308630873088308930903091309230933094309530963097309830993100310131023103310431053106310731083109311031113112311331143115311631173118311931203121312231233124312531263127312831293130313131323133313431353136313731383139314031413142314331443145314631473148314931503151315231533154315531563157315831593160316131623163316431653166316731683169317031713172317331743175317631773178317931803181318231833184318531863187318831893190319131923193319431953196319731983199320032013202320332043205320632073208320932103211321232133214321532163217321832193220322132223223322432253226322732283229323032313232323332343235323632373238323932403241324232433244324532463247324832493250325132523253325432553256325732583259326032613262326332643265326632673268326932703271327232733274327532763277327832793280328132823283328432853286328732883289329032913292329332943295329632973298329933003301330233033304330533063307330833093310331133123313331433153316331733183319332033213322332333243325332633273328332933303331333233333334333533363337333833393340334133423343334433453346334733483349335033513352335333543355335633573358335933603361336233633364336533663367336833693370337133723373337433753376337733783379338033813382338333843385338633873388338933903391339233933394339533963397339833993400340134023403340434053406340734083409341034113412341334143415341634173418341934203421342234233424342534263427342834293430343134323433343434353436343734383439344034413442344334443445344634473448344934503451345234533454345534563457345834593460346134623463346434653466346734683469347034713472347334743475347634773478347934803481348234833484348534863487348834893490349134923493349434953496349734983499350035013502350335043505350635073508350935103511351235133514351535163517351835193520352135223523352435253526352735283529353035313532353335343535353635373538353935403541354235433544354535463547354835493550355135523553355435553556355735583559356035613562356335643565356635673568356935703571357235733574357535763577357835793580358135823583358435853586358735883589359035913592359335943595359635973598359936003601360236033604360536063607360836093610361136123613361436153616361736183619362036213622362336243625362636273628362936303631363236333634363536363637363836393640364136423643364436453646364736483649365036513652365336543655365636573658365936603661366236633664366536663667366836693670367136723673367436753676367736783679368036813682368336843685368636873688368936903691369236933694369536963697369836993700370137023703370437053706370737083709371037113712371337143715371637173718371937203721372237233724372537263727372837293730373137323733373437353736373737383739374037413742374337443745374637473748374937503751375237533754375537563757375837593760376137623763376437653766376737683769377037713772377337743775377637773778377937803781378237833784378537863787378837893790379137923793379437953796379737983799380038013802380338043805380638073808380938103811381238133814381538163817381838193820382138223823382438253826382738283829383038313832383338343835383638373838383938403841384238433844384538463847384838493850385138523853385438553856385738583859386038613862386338643865386638673868386938703871387238733874387538763877387838793880388138823883388438853886388738883889389038913892389338943895389638973898389939003901390239033904390539063907390839093910391139123913391439153916391739183919392039213922392339243925392639273928392939303931393239333934393539363937393839393940394139423943394439453946394739483949395039513952395339543955395639573958395939603961396239633964396539663967396839693970397139723973397439753976397739783979398039813982398339843985398639873988398939903991399239933994399539963997399839994000400140024003400440054006400740084009401040114012401340144015401640174018401940204021402240234024402540264027402840294030403140324033403440354036403740384039404040414042404340444045404640474048404940504051405240534054405540564057405840594060406140624063406440654066406740684069407040714072407340744075407640774078407940804081408240834084408540864087408840894090409140924093409440954096409740984099410041014102410341044105410641074108410941104111411241134114411541164117411841194120412141224123412441254126412741284129413041314132413341344135413641374138413941404141414241434144414541464147414841494150415141524153415441554156415741584159416041614162416341644165416641674168416941704171417241734174417541764177417841794180418141824183418441854186418741884189419041914192419341944195419641974198419942004201420242034204420542064207420842094210421142124213421442154216421742184219422042214222422342244225422642274228422942304231423242334234423542364237423842394240424142424243424442454246424742484249425042514252425342544255425642574258425942604261426242634264426542664267426842694270427142724273427442754276427742784279428042814282428342844285428642874288428942904291429242934294429542964297429842994300430143024303430443054306430743084309431043114312431343144315431643174318431943204321432243234324432543264327432843294330433143324333433443354336433743384339434043414342434343444345434643474348434943504351435243534354435543564357435843594360436143624363436443654366436743684369437043714372437343744375437643774378437943804381438243834384438543864387438843894390439143924393439443954396439743984399440044014402440344044405440644074408440944104411441244134414441544164417441844194420442144224423442444254426442744284429443044314432443344344435443644374438443944404441444244434444444544464447444844494450445144524453445444554456445744584459446044614462446344644465446644674468446944704471447244734474447544764477447844794480448144824483448444854486448744884489449044914492449344944495449644974498449945004501450245034504450545064507450845094510451145124513451445154516451745184519452045214522452345244525452645274528452945304531453245334534453545364537453845394540454145424543454445454546454745484549455045514552455345544555455645574558455945604561456245634564456545664567456845694570457145724573457445754576457745784579458045814582458345844585458645874588458945904591459245934594459545964597459845994600460146024603460446054606460746084609461046114612461346144615461646174618461946204621462246234624462546264627462846294630463146324633463446354636463746384639464046414642464346444645464646474648464946504651465246534654465546564657465846594660466146624663466446654666466746684669467046714672467346744675467646774678467946804681468246834684468546864687468846894690469146924693469446954696469746984699470047014702470347044705470647074708470947104711471247134714471547164717471847194720472147224723472447254726472747284729473047314732473347344735473647374738473947404741474247434744474547464747474847494750475147524753475447554756475747584759476047614762476347644765476647674768476947704771477247734774477547764777477847794780478147824783478447854786478747884789479047914792479347944795479647974798479948004801480248034804480548064807480848094810481148124813481448154816481748184819482048214822482348244825482648274828482948304831483248334834483548364837483848394840484148424843484448454846484748484849485048514852485348544855485648574858485948604861486248634864486548664867486848694870487148724873487448754876487748784879488048814882488348844885488648874888488948904891489248934894489548964897489848994900490149024903490449054906490749084909491049114912491349144915491649174918491949204921492249234924492549264927492849294930493149324933493449354936493749384939494049414942494349444945494649474948494949504951495249534954495549564957495849594960496149624963496449654966496749684969497049714972497349744975497649774978497949804981498249834984498549864987498849894990499149924993499449954996499749984999500050015002500350045005500650075008500950105011501250135014501550165017501850195020502150225023502450255026502750285029503050315032503350345035503650375038503950405041504250435044504550465047504850495050505150525053505450555056505750585059506050615062506350645065506650675068506950705071507250735074507550765077507850795080508150825083508450855086508750885089509050915092509350945095509650975098509951005101510251035104510551065107510851095110511151125113511451155116511751185119512051215122512351245125512651275128512951305131513251335134513551365137513851395140514151425143514451455146514751485149515051515152515351545155515651575158515951605161516251635164516551665167516851695170517151725173517451755176517751785179518051815182518351845185518651875188518951905191519251935194519551965197519851995200520152025203520452055206520752085209521052115212521352145215521652175218521952205221522252235224522552265227522852295230523152325233523452355236523752385239524052415242524352445245524652475248524952505251525252535254525552565257525852595260526152625263526452655266526752685269527052715272527352745275527652775278527952805281528252835284528552865287528852895290529152925293529452955296529752985299530053015302530353045305530653075308530953105311531253135314531553165317531853195320532153225323532453255326532753285329533053315332533353345335533653375338533953405341534253435344534553465347534853495350535153525353535453555356535753585359536053615362536353645365536653675368536953705371537253735374537553765377537853795380538153825383538453855386538753885389539053915392539353945395539653975398539954005401540254035404540554065407540854095410541154125413541454155416541754185419542054215422542354245425542654275428542954305431543254335434543554365437543854395440544154425443544454455446544754485449545054515452545354545455545654575458545954605461546254635464546554665467546854695470547154725473547454755476547754785479548054815482548354845485548654875488548954905491549254935494549554965497549854995500550155025503550455055506550755085509551055115512551355145515551655175518551955205521552255235524552555265527552855295530553155325533553455355536553755385539554055415542554355445545554655475548554955505551555255535554555555565557555855595560556155625563556455655566556755685569557055715572557355745575557655775578557955805581558255835584558555865587558855895590559155925593559455955596559755985599560056015602560356045605560656075608560956105611561256135614561556165617561856195620562156225623562456255626562756285629563056315632563356345635563656375638563956405641564256435644564556465647564856495650565156525653565456555656565756585659566056615662566356645665566656675668566956705671567256735674567556765677567856795680568156825683568456855686568756885689569056915692569356945695569656975698569957005701570257035704570557065707570857095710571157125713571457155716571757185719572057215722572357245725572657275728572957305731573257335734573557365737573857395740574157425743574457455746574757485749575057515752575357545755575657575758575957605761576257635764576557665767576857695770577157725773577457755776577757785779578057815782578357845785578657875788578957905791579257935794579557965797579857995800580158025803580458055806580758085809581058115812581358145815581658175818581958205821582258235824582558265827582858295830583158325833583458355836583758385839584058415842584358445845584658475848584958505851585258535854585558565857585858595860586158625863586458655866586758685869587058715872587358745875587658775878587958805881588258835884588558865887588858895890589158925893589458955896589758985899590059015902590359045905590659075908590959105911591259135914591559165917591859195920592159225923592459255926592759285929593059315932593359345935593659375938593959405941594259435944594559465947594859495950595159525953595459555956595759585959596059615962596359645965596659675968596959705971597259735974597559765977597859795980598159825983598459855986598759885989599059915992599359945995599659975998599960006001600260036004600560066007600860096010601160126013601460156016601760186019602060216022602360246025602660276028602960306031603260336034603560366037603860396040604160426043604460456046604760486049605060516052605360546055605660576058605960606061606260636064606560666067606860696070607160726073607460756076607760786079608060816082608360846085608660876088608960906091609260936094609560966097609860996100610161026103610461056106610761086109611061116112611361146115611661176118611961206121612261236124612561266127612861296130613161326133613461356136613761386139614061416142614361446145614661476148614961506151615261536154615561566157615861596160616161626163616461656166616761686169617061716172617361746175617661776178617961806181618261836184618561866187618861896190619161926193619461956196619761986199620062016202620362046205620662076208620962106211621262136214621562166217621862196220622162226223622462256226622762286229623062316232623362346235623662376238623962406241624262436244624562466247624862496250625162526253625462556256625762586259626062616262626362646265626662676268626962706271627262736274627562766277627862796280628162826283628462856286628762886289629062916292629362946295629662976298629963006301630263036304630563066307630863096310631163126313631463156316631763186319632063216322632363246325632663276328632963306331633263336334633563366337633863396340634163426343634463456346634763486349635063516352635363546355635663576358635963606361636263636364636563666367636863696370637163726373637463756376637763786379638063816382638363846385638663876388638963906391639263936394639563966397639863996400640164026403640464056406640764086409641064116412641364146415641664176418641964206421642264236424642564266427642864296430643164326433643464356436643764386439644064416442644364446445644664476448644964506451645264536454645564566457645864596460646164626463646464656466646764686469647064716472647364746475647664776478647964806481648264836484648564866487648864896490649164926493649464956496649764986499650065016502650365046505650665076508650965106511651265136514651565166517651865196520652165226523652465256526652765286529653065316532653365346535653665376538653965406541654265436544654565466547654865496550655165526553655465556556655765586559656065616562656365646565656665676568656965706571657265736574657565766577657865796580658165826583658465856586658765886589659065916592659365946595659665976598659966006601660266036604660566066607660866096610661166126613661466156616661766186619662066216622662366246625662666276628662966306631663266336634663566366637663866396640664166426643664466456646664766486649665066516652665366546655665666576658665966606661666266636664666566666667666866696670667166726673667466756676667766786679668066816682668366846685668666876688668966906691669266936694669566966697669866996700670167026703670467056706670767086709671067116712671367146715671667176718671967206721672267236724672567266727672867296730673167326733673467356736673767386739674067416742674367446745674667476748674967506751675267536754675567566757675867596760676167626763676467656766676767686769677067716772677367746775677667776778677967806781678267836784678567866787678867896790679167926793679467956796679767986799680068016802680368046805680668076808680968106811681268136814681568166817681868196820682168226823682468256826682768286829683068316832683368346835683668376838683968406841684268436844684568466847684868496850685168526853685468556856685768586859686068616862686368646865686668676868686968706871687268736874687568766877687868796880688168826883688468856886688768886889689068916892689368946895689668976898689969006901690269036904690569066907690869096910691169126913691469156916691769186919692069216922692369246925692669276928692969306931693269336934693569366937693869396940694169426943694469456946694769486949695069516952695369546955695669576958695969606961696269636964696569666967696869696970697169726973697469756976697769786979698069816982698369846985698669876988698969906991699269936994699569966997699869997000700170027003700470057006700770087009701070117012701370147015701670177018701970207021702270237024702570267027702870297030703170327033703470357036703770387039704070417042704370447045704670477048704970507051705270537054705570567057705870597060706170627063706470657066706770687069707070717072707370747075707670777078707970807081708270837084708570867087708870897090709170927093709470957096709770987099710071017102710371047105710671077108710971107111711271137114711571167117711871197120712171227123712471257126712771287129713071317132713371347135713671377138713971407141714271437144714571467147714871497150715171527153715471557156715771587159716071617162716371647165716671677168716971707171717271737174717571767177717871797180718171827183718471857186718771887189719071917192719371947195719671977198719972007201720272037204720572067207720872097210721172127213721472157216721772187219722072217222722372247225722672277228722972307231723272337234723572367237723872397240724172427243724472457246724772487249725072517252725372547255725672577258725972607261726272637264726572667267726872697270727172727273727472757276727772787279728072817282728372847285728672877288728972907291729272937294729572967297729872997300730173027303730473057306730773087309731073117312731373147315731673177318731973207321732273237324732573267327732873297330733173327333733473357336733773387339734073417342734373447345734673477348734973507351735273537354735573567357735873597360736173627363736473657366736773687369737073717372737373747375737673777378737973807381738273837384738573867387738873897390739173927393739473957396739773987399740074017402740374047405740674077408740974107411741274137414741574167417741874197420742174227423742474257426742774287429743074317432743374347435743674377438743974407441744274437444744574467447744874497450745174527453745474557456745774587459746074617462746374647465746674677468746974707471747274737474747574767477747874797480748174827483748474857486748774887489749074917492749374947495749674977498749975007501750275037504750575067507750875097510751175127513751475157516751775187519752075217522752375247525752675277528752975307531753275337534753575367537753875397540754175427543754475457546754775487549755075517552755375547555755675577558755975607561756275637564756575667567756875697570757175727573757475757576757775787579758075817582758375847585758675877588758975907591759275937594759575967597759875997600760176027603760476057606760776087609761076117612761376147615761676177618761976207621762276237624762576267627762876297630763176327633763476357636763776387639764076417642764376447645764676477648764976507651765276537654765576567657765876597660766176627663766476657666766776687669767076717672767376747675767676777678767976807681768276837684768576867687768876897690769176927693769476957696769776987699770077017702770377047705770677077708770977107711771277137714771577167717771877197720772177227723772477257726772777287729773077317732773377347735773677377738773977407741774277437744774577467747774877497750775177527753775477557756775777587759776077617762776377647765776677677768776977707771777277737774777577767777777877797780778177827783778477857786778777887789779077917792779377947795779677977798779978007801780278037804780578067807780878097810781178127813781478157816781778187819782078217822782378247825782678277828782978307831783278337834783578367837783878397840784178427843784478457846784778487849785078517852785378547855785678577858785978607861786278637864786578667867786878697870787178727873787478757876787778787879788078817882788378847885788678877888788978907891789278937894789578967897789878997900790179027903790479057906790779087909791079117912791379147915791679177918791979207921792279237924792579267927792879297930793179327933793479357936793779387939794079417942794379447945794679477948794979507951795279537954795579567957795879597960796179627963796479657966796779687969797079717972797379747975797679777978797979807981798279837984798579867987798879897990799179927993799479957996799779987999800080018002800380048005800680078008800980108011801280138014801580168017801880198020802180228023802480258026802780288029803080318032803380348035803680378038803980408041804280438044804580468047804880498050805180528053805480558056805780588059806080618062806380648065806680678068806980708071807280738074807580768077807880798080808180828083808480858086808780888089809080918092809380948095809680978098809981008101810281038104810581068107810881098110811181128113811481158116811781188119812081218122812381248125812681278128812981308131813281338134813581368137813881398140814181428143814481458146814781488149815081518152815381548155815681578158815981608161816281638164816581668167816881698170817181728173817481758176817781788179818081818182818381848185818681878188818981908191819281938194819581968197819881998200820182028203820482058206820782088209821082118212821382148215821682178218821982208221822282238224822582268227822882298230823182328233823482358236823782388239824082418242824382448245824682478248824982508251825282538254825582568257825882598260826182628263826482658266826782688269827082718272827382748275827682778278827982808281828282838284828582868287828882898290829182928293829482958296829782988299830083018302830383048305830683078308830983108311831283138314831583168317831883198320832183228323832483258326832783288329833083318332833383348335833683378338833983408341834283438344834583468347834883498350835183528353835483558356835783588359836083618362836383648365836683678368836983708371837283738374837583768377837883798380838183828383838483858386838783888389839083918392839383948395839683978398839984008401840284038404840584068407840884098410841184128413841484158416841784188419842084218422842384248425842684278428842984308431843284338434843584368437843884398440844184428443844484458446844784488449845084518452845384548455845684578458845984608461846284638464846584668467846884698470847184728473847484758476847784788479848084818482848384848485848684878488848984908491849284938494849584968497849884998500850185028503850485058506850785088509851085118512851385148515851685178518851985208521852285238524852585268527852885298530853185328533853485358536853785388539854085418542854385448545854685478548854985508551855285538554855585568557855885598560856185628563856485658566856785688569857085718572857385748575857685778578857985808581858285838584858585868587858885898590859185928593859485958596859785988599860086018602860386048605860686078608860986108611861286138614861586168617861886198620862186228623862486258626862786288629863086318632863386348635863686378638863986408641864286438644864586468647864886498650865186528653865486558656865786588659866086618662866386648665866686678668866986708671867286738674867586768677867886798680868186828683868486858686868786888689869086918692869386948695869686978698869987008701870287038704870587068707870887098710871187128713871487158716871787188719872087218722872387248725872687278728872987308731873287338734873587368737873887398740874187428743874487458746874787488749875087518752875387548755875687578758875987608761876287638764876587668767876887698770877187728773877487758776877787788779878087818782878387848785878687878788878987908791879287938794879587968797879887998800880188028803880488058806880788088809881088118812881388148815881688178818881988208821882288238824882588268827882888298830883188328833883488358836883788388839884088418842884388448845884688478848884988508851885288538854885588568857885888598860886188628863886488658866886788688869887088718872887388748875887688778878887988808881888288838884888588868887888888898890889188928893889488958896889788988899890089018902890389048905890689078908890989108911891289138914891589168917891889198920892189228923892489258926892789288929893089318932893389348935893689378938893989408941894289438944894589468947894889498950895189528953895489558956895789588959896089618962896389648965896689678968896989708971897289738974897589768977897889798980898189828983898489858986898789888989899089918992899389948995899689978998899990009001900290039004900590069007900890099010901190129013901490159016901790189019902090219022902390249025902690279028902990309031903290339034903590369037903890399040904190429043904490459046904790489049905090519052905390549055905690579058905990609061906290639064906590669067906890699070907190729073907490759076907790789079908090819082908390849085908690879088908990909091909290939094909590969097909890999100910191029103910491059106910791089109911091119112911391149115911691179118911991209121912291239124912591269127912891299130913191329133913491359136913791389139914091419142914391449145914691479148914991509151915291539154915591569157915891599160916191629163916491659166916791689169917091719172917391749175917691779178917991809181918291839184918591869187918891899190919191929193919491959196919791989199920092019202920392049205920692079208920992109211921292139214921592169217921892199220922192229223922492259226922792289229923092319232923392349235923692379238923992409241924292439244924592469247924892499250925192529253925492559256925792589259926092619262926392649265926692679268926992709271927292739274927592769277927892799280928192829283928492859286928792889289929092919292929392949295929692979298929993009301930293039304930593069307930893099310931193129313931493159316931793189319932093219322932393249325932693279328932993309331933293339334933593369337933893399340934193429343934493459346934793489349935093519352935393549355935693579358935993609361936293639364936593669367936893699370937193729373937493759376937793789379938093819382938393849385938693879388938993909391939293939394939593969397939893999400940194029403940494059406940794089409941094119412941394149415941694179418941994209421942294239424942594269427942894299430943194329433943494359436943794389439944094419442944394449445944694479448944994509451945294539454945594569457945894599460946194629463946494659466946794689469947094719472947394749475947694779478947994809481948294839484948594869487948894899490949194929493949494959496949794989499950095019502950395049505950695079508950995109511951295139514951595169517951895199520952195229523952495259526952795289529953095319532953395349535953695379538953995409541954295439544954595469547954895499550955195529553955495559556955795589559956095619562956395649565956695679568956995709571957295739574957595769577957895799580958195829583958495859586958795889589959095919592959395949595959695979598959996009601960296039604960596069607960896099610961196129613961496159616961796189619962096219622962396249625962696279628962996309631963296339634963596369637963896399640964196429643964496459646964796489649965096519652965396549655965696579658965996609661966296639664966596669667966896699670967196729673967496759676967796789679968096819682968396849685968696879688968996909691969296939694969596969697969896999700970197029703970497059706970797089709971097119712971397149715971697179718971997209721972297239724972597269727972897299730973197329733973497359736973797389739974097419742974397449745974697479748974997509751975297539754975597569757975897599760976197629763976497659766976797689769977097719772977397749775977697779778977997809781978297839784978597869787978897899790979197929793979497959796979797989799980098019802980398049805980698079808980998109811981298139814981598169817981898199820982198229823982498259826982798289829983098319832983398349835983698379838983998409841984298439844984598469847984898499850985198529853985498559856985798589859986098619862986398649865986698679868986998709871987298739874987598769877987898799880988198829883988498859886988798889889989098919892989398949895989698979898989999009901990299039904990599069907990899099910991199129913991499159916991799189919992099219922992399249925992699279928992999309931993299339934993599369937993899399940994199429943994499459946994799489949995099519952995399549955995699579958995999609961996299639964996599669967996899699970997199729973997499759976997799789979998099819982998399849985998699879988998999909991999299939994999599969997999899991000010001100021000310004100051000610007100081000910010100111001210013100141001510016100171001810019100201002110022100231002410025100261002710028100291003010031100321003310034100351003610037100381003910040100411004210043100441004510046100471004810049100501005110052100531005410055100561005710058100591006010061100621006310064100651006610067100681006910070100711007210073100741007510076100771007810079100801008110082100831008410085100861008710088100891009010091100921009310094100951009610097100981009910100101011010210103101041010510106101071010810109101101011110112101131011410115101161011710118101191012010121101221012310124101251012610127101281012910130101311013210133101341013510136101371013810139101401014110142101431014410145101461014710148101491015010151101521015310154101551015610157101581015910160101611016210163101641016510166101671016810169101701017110172101731017410175101761017710178101791018010181101821018310184101851018610187101881018910190101911019210193101941019510196101971019810199102001020110202102031020410205102061020710208102091021010211102121021310214102151021610217102181021910220102211022210223102241022510226102271022810229102301023110232102331023410235102361023710238102391024010241102421024310244102451024610247102481024910250102511025210253102541025510256102571025810259102601026110262102631026410265102661026710268102691027010271102721027310274102751027610277102781027910280102811028210283102841028510286102871028810289102901029110292102931029410295102961029710298102991030010301103021030310304103051030610307103081030910310103111031210313103141031510316103171031810319103201032110322103231032410325103261032710328103291033010331103321033310334103351033610337103381033910340103411034210343103441034510346103471034810349103501035110352103531035410355103561035710358103591036010361103621036310364103651036610367103681036910370103711037210373103741037510376103771037810379103801038110382103831038410385103861038710388103891039010391103921039310394103951039610397103981039910400104011040210403104041040510406104071040810409104101041110412104131041410415104161041710418104191042010421104221042310424104251042610427104281042910430104311043210433104341043510436104371043810439104401044110442104431044410445104461044710448104491045010451104521045310454104551045610457104581045910460104611046210463104641046510466104671046810469104701047110472104731047410475104761047710478104791048010481104821048310484104851048610487104881048910490104911049210493104941049510496104971049810499105001050110502105031050410505105061050710508105091051010511105121051310514105151051610517105181051910520105211052210523105241052510526105271052810529105301053110532105331053410535105361053710538105391054010541105421054310544105451054610547105481054910550105511055210553105541055510556105571055810559105601056110562105631056410565105661056710568105691057010571105721057310574105751057610577105781057910580105811058210583105841058510586105871058810589105901059110592105931059410595105961059710598105991060010601106021060310604106051060610607106081060910610106111061210613106141061510616106171061810619106201062110622106231062410625106261062710628106291063010631106321063310634106351063610637106381063910640106411064210643106441064510646106471064810649106501065110652106531065410655106561065710658106591066010661106621066310664106651066610667106681066910670106711067210673106741067510676106771067810679106801068110682106831068410685106861068710688106891069010691106921069310694106951069610697106981069910700107011070210703107041070510706107071070810709107101071110712107131071410715107161071710718107191072010721107221072310724107251072610727107281072910730107311073210733107341073510736107371073810739107401074110742107431074410745107461074710748107491075010751107521075310754107551075610757107581075910760107611076210763107641076510766107671076810769107701077110772107731077410775107761077710778107791078010781107821078310784107851078610787107881078910790107911079210793107941079510796107971079810799108001080110802108031080410805108061080710808108091081010811108121081310814108151081610817108181081910820108211082210823108241082510826108271082810829108301083110832108331083410835108361083710838108391084010841108421084310844108451084610847108481084910850108511085210853108541085510856108571085810859108601086110862108631086410865108661086710868108691087010871108721087310874108751087610877108781087910880108811088210883108841088510886108871088810889108901089110892108931089410895108961089710898108991090010901109021090310904109051090610907109081090910910109111091210913109141091510916109171091810919109201092110922109231092410925109261092710928109291093010931109321093310934109351093610937109381093910940109411094210943109441094510946109471094810949109501095110952109531095410955109561095710958109591096010961109621096310964109651096610967109681096910970109711097210973109741097510976109771097810979109801098110982109831098410985109861098710988109891099010991109921099310994109951099610997109981099911000110011100211003110041100511006110071100811009110101101111012110131101411015110161101711018110191102011021110221102311024110251102611027110281102911030110311103211033110341103511036110371103811039110401104111042110431104411045110461104711048110491105011051110521105311054110551105611057110581105911060110611106211063110641106511066110671106811069110701107111072110731107411075110761107711078110791108011081110821108311084110851108611087110881108911090110911109211093110941109511096110971109811099111001110111102111031110411105111061110711108111091111011111111121111311114111151111611117111181111911120111211112211123111241112511126111271112811129111301113111132111331113411135111361113711138111391114011141111421114311144111451114611147111481114911150111511115211153111541115511156111571115811159111601116111162111631116411165111661116711168111691117011171111721117311174111751117611177111781117911180111811118211183111841118511186111871118811189111901119111192111931119411195111961119711198111991120011201112021120311204112051120611207112081120911210112111121211213112141121511216112171121811219112201122111222112231122411225112261122711228112291123011231112321123311234112351123611237112381123911240112411124211243112441124511246112471124811249112501125111252112531125411255112561125711258112591126011261112621126311264112651126611267112681126911270112711127211273112741127511276112771127811279112801128111282112831128411285112861128711288112891129011291112921129311294112951129611297112981129911300113011130211303113041130511306113071130811309113101131111312113131131411315113161131711318113191132011321113221132311324113251132611327113281132911330113311133211333113341133511336113371133811339113401134111342113431134411345113461134711348113491135011351113521135311354113551135611357113581135911360113611136211363113641136511366113671136811369113701137111372113731137411375113761137711378113791138011381113821138311384113851138611387113881138911390113911139211393113941139511396113971139811399114001140111402114031140411405114061140711408114091141011411114121141311414114151141611417114181141911420114211142211423114241142511426114271142811429114301143111432114331143411435114361143711438114391144011441114421144311444114451144611447114481144911450114511145211453114541145511456114571145811459114601146111462114631146411465114661146711468114691147011471114721147311474114751147611477114781147911480114811148211483114841148511486114871148811489114901149111492114931149411495114961149711498114991150011501115021150311504115051150611507115081150911510115111151211513115141151511516115171151811519115201152111522115231152411525115261152711528115291153011531115321153311534115351153611537115381153911540115411154211543115441154511546115471154811549115501155111552115531155411555115561155711558115591156011561115621156311564115651156611567115681156911570115711157211573115741157511576115771157811579115801158111582115831158411585115861158711588115891159011591115921159311594115951159611597115981159911600116011160211603116041160511606116071160811609116101161111612116131161411615116161161711618116191162011621116221162311624116251162611627116281162911630116311163211633116341163511636116371163811639116401164111642116431164411645116461164711648116491165011651116521165311654116551165611657116581165911660116611166211663116641166511666116671166811669116701167111672116731167411675116761167711678116791168011681116821168311684116851168611687116881168911690116911169211693116941169511696116971169811699117001170111702117031170411705117061170711708117091171011711117121171311714117151171611717117181171911720117211172211723117241172511726117271172811729117301173111732117331173411735117361173711738117391174011741117421174311744117451174611747117481174911750117511175211753117541175511756117571175811759117601176111762117631176411765117661176711768117691177011771117721177311774117751177611777117781177911780117811178211783117841178511786117871178811789117901179111792117931179411795117961179711798117991180011801118021180311804118051180611807118081180911810118111181211813118141181511816118171181811819118201182111822118231182411825118261182711828118291183011831118321183311834118351183611837118381183911840118411184211843118441184511846118471184811849118501185111852118531185411855118561185711858118591186011861118621186311864118651186611867118681186911870118711187211873118741187511876118771187811879118801188111882118831188411885118861188711888118891189011891118921189311894118951189611897118981189911900119011190211903119041190511906119071190811909119101191111912119131191411915119161191711918119191192011921119221192311924119251192611927119281192911930119311193211933119341193511936119371193811939119401194111942119431194411945119461194711948119491195011951119521195311954119551195611957119581195911960119611196211963119641196511966119671196811969119701197111972119731197411975119761197711978119791198011981119821198311984119851198611987119881198911990119911199211993119941199511996119971199811999120001200112002120031200412005120061200712008120091201012011120121201312014120151201612017120181201912020120211202212023120241202512026120271202812029120301203112032120331203412035120361203712038120391204012041120421204312044120451204612047120481204912050120511205212053120541205512056120571205812059120601206112062120631206412065120661206712068120691207012071120721207312074120751207612077120781207912080120811208212083120841208512086120871208812089120901209112092120931209412095120961209712098120991210012101121021210312104121051210612107121081210912110121111211212113121141211512116121171211812119121201212112122121231212412125121261212712128121291213012131121321213312134121351213612137121381213912140121411214212143121441214512146121471214812149121501215112152121531215412155121561215712158121591216012161121621216312164121651216612167121681216912170121711217212173121741217512176121771217812179121801218112182121831218412185121861218712188121891219012191121921219312194121951219612197121981219912200122011220212203122041220512206122071220812209122101221112212122131221412215122161221712218122191222012221122221222312224122251222612227122281222912230122311223212233122341223512236122371223812239122401224112242122431224412245122461224712248122491225012251122521225312254122551225612257122581225912260122611226212263122641226512266122671226812269122701227112272122731227412275122761227712278122791228012281122821228312284122851228612287122881228912290122911229212293122941229512296122971229812299123001230112302123031230412305123061230712308123091231012311123121231312314123151231612317123181231912320123211232212323123241232512326123271232812329123301233112332123331233412335123361233712338123391234012341123421234312344123451234612347123481234912350123511235212353123541235512356123571235812359123601236112362123631236412365123661236712368123691237012371123721237312374123751237612377123781237912380123811238212383123841238512386123871238812389123901239112392123931239412395123961239712398123991240012401124021240312404124051240612407124081240912410124111241212413124141241512416124171241812419124201242112422124231242412425124261242712428124291243012431124321243312434124351243612437124381243912440124411244212443124441244512446124471244812449124501245112452124531245412455124561245712458124591246012461124621246312464124651246612467124681246912470124711247212473124741247512476124771247812479124801248112482124831248412485124861248712488124891249012491124921249312494124951249612497124981249912500125011250212503125041250512506125071250812509125101251112512125131251412515125161251712518125191252012521125221252312524125251252612527125281252912530125311253212533125341253512536125371253812539125401254112542125431254412545125461254712548125491255012551125521255312554125551255612557125581255912560125611256212563125641256512566125671256812569125701257112572125731257412575125761257712578125791258012581125821258312584125851258612587125881258912590125911259212593125941259512596125971259812599126001260112602126031260412605126061260712608126091261012611126121261312614126151261612617126181261912620126211262212623126241262512626126271262812629126301263112632126331263412635126361263712638126391264012641126421264312644126451264612647126481264912650126511265212653126541265512656126571265812659126601266112662126631266412665126661266712668126691267012671126721267312674126751267612677126781267912680126811268212683126841268512686126871268812689126901269112692126931269412695126961269712698126991270012701127021270312704127051270612707127081270912710127111271212713127141271512716127171271812719127201272112722127231272412725127261272712728127291273012731127321273312734127351273612737127381273912740127411274212743127441274512746127471274812749127501275112752127531275412755127561275712758127591276012761127621276312764127651276612767127681276912770127711277212773127741277512776127771277812779127801278112782127831278412785127861278712788127891279012791127921279312794127951279612797127981279912800128011280212803128041280512806128071280812809128101281112812128131281412815128161281712818128191282012821128221282312824128251282612827128281282912830128311283212833128341283512836128371283812839128401284112842128431284412845128461284712848128491285012851128521285312854128551285612857128581285912860128611286212863128641286512866128671286812869128701287112872128731287412875128761287712878128791288012881128821288312884128851288612887128881288912890128911289212893128941289512896128971289812899129001290112902129031290412905129061290712908129091291012911129121291312914129151291612917129181291912920129211292212923129241292512926129271292812929129301293112932129331293412935129361293712938129391294012941129421294312944129451294612947129481294912950129511295212953129541295512956129571295812959129601296112962129631296412965129661296712968129691297012971129721297312974129751297612977129781297912980129811298212983129841298512986129871298812989129901299112992129931299412995129961299712998129991300013001130021300313004130051300613007130081300913010130111301213013130141301513016130171301813019130201302113022130231302413025130261302713028130291303013031130321303313034130351303613037130381303913040130411304213043130441304513046130471304813049130501305113052130531305413055130561305713058130591306013061130621306313064130651306613067130681306913070130711307213073130741307513076130771307813079130801308113082130831308413085130861308713088130891309013091130921309313094130951309613097130981309913100131011310213103131041310513106131071310813109131101311113112131131311413115131161311713118131191312013121131221312313124131251312613127131281312913130131311313213133131341313513136131371313813139131401314113142131431314413145131461314713148131491315013151131521315313154131551315613157131581315913160131611316213163131641316513166131671316813169131701317113172131731317413175131761317713178131791318013181131821318313184131851318613187131881318913190131911319213193131941319513196131971319813199132001320113202132031320413205132061320713208132091321013211132121321313214132151321613217132181321913220132211322213223132241322513226132271322813229132301323113232132331323413235132361323713238132391324013241132421324313244132451324613247132481324913250132511325213253132541325513256132571325813259132601326113262132631326413265132661326713268132691327013271132721327313274132751327613277132781327913280132811328213283132841328513286132871328813289132901329113292132931329413295132961329713298132991330013301133021330313304133051330613307133081330913310133111331213313133141331513316133171331813319133201332113322133231332413325133261332713328133291333013331133321333313334133351333613337133381333913340133411334213343133441334513346133471334813349133501335113352133531335413355133561335713358133591336013361133621336313364133651336613367133681336913370133711337213373133741337513376133771337813379133801338113382133831338413385133861338713388133891339013391133921339313394133951339613397133981339913400134011340213403134041340513406134071340813409134101341113412134131341413415134161341713418134191342013421134221342313424134251342613427134281342913430134311343213433134341343513436134371343813439134401344113442134431344413445134461344713448134491345013451134521345313454134551345613457134581345913460134611346213463134641346513466134671346813469134701347113472134731347413475134761347713478134791348013481134821348313484134851348613487134881348913490134911349213493134941349513496134971349813499135001350113502135031350413505135061350713508135091351013511135121351313514135151351613517135181351913520135211352213523135241352513526135271352813529135301353113532135331353413535135361353713538135391354013541135421354313544135451354613547135481354913550135511355213553135541355513556135571355813559135601356113562135631356413565135661356713568135691357013571135721357313574135751357613577135781357913580135811358213583135841358513586135871358813589135901359113592135931359413595135961359713598135991360013601136021360313604136051360613607136081360913610136111361213613136141361513616136171361813619136201362113622136231362413625136261362713628136291363013631136321363313634136351363613637136381363913640136411364213643136441364513646136471364813649136501365113652136531365413655136561365713658136591366013661136621366313664136651366613667136681366913670136711367213673136741367513676136771367813679136801368113682136831368413685136861368713688136891369013691136921369313694136951369613697136981369913700137011370213703137041370513706137071370813709137101371113712137131371413715137161371713718137191372013721137221372313724137251372613727137281372913730137311373213733137341373513736137371373813739137401374113742137431374413745137461374713748137491375013751137521375313754137551375613757137581375913760137611376213763137641376513766137671376813769137701377113772137731377413775137761377713778137791378013781137821378313784137851378613787137881378913790137911379213793137941379513796137971379813799138001380113802138031380413805138061380713808138091381013811138121381313814138151381613817138181381913820138211382213823138241382513826138271382813829138301383113832138331383413835138361383713838138391384013841138421384313844138451384613847138481384913850138511385213853138541385513856138571385813859138601386113862138631386413865138661386713868138691387013871138721387313874138751387613877138781387913880138811388213883138841388513886138871388813889138901389113892138931389413895138961389713898138991390013901139021390313904139051390613907139081390913910139111391213913139141391513916139171391813919139201392113922139231392413925139261392713928139291393013931139321393313934139351393613937139381393913940139411394213943139441394513946139471394813949139501395113952139531395413955139561395713958139591396013961139621396313964139651396613967139681396913970139711397213973139741397513976139771397813979139801398113982139831398413985139861398713988139891399013991139921399313994139951399613997139981399914000140011400214003140041400514006140071400814009140101401114012140131401414015140161401714018140191402014021140221402314024140251402614027140281402914030140311403214033140341403514036140371403814039140401404114042140431404414045140461404714048140491405014051140521405314054140551405614057140581405914060140611406214063140641406514066140671406814069140701407114072140731407414075140761407714078140791408014081140821408314084140851408614087140881408914090140911409214093140941409514096140971409814099141001410114102141031410414105141061410714108141091411014111141121411314114141151411614117141181411914120141211412214123141241412514126141271412814129141301413114132141331413414135141361413714138141391414014141141421414314144141451414614147141481414914150141511415214153141541415514156141571415814159141601416114162141631416414165141661416714168141691417014171141721417314174141751417614177141781417914180141811418214183141841418514186141871418814189141901419114192141931419414195141961419714198141991420014201142021420314204142051420614207142081420914210142111421214213142141421514216142171421814219142201422114222142231422414225142261422714228142291423014231142321423314234142351423614237142381423914240142411424214243142441424514246142471424814249142501425114252142531425414255142561425714258142591426014261142621426314264142651426614267142681426914270142711427214273142741427514276142771427814279142801428114282142831428414285142861428714288142891429014291142921429314294142951429614297142981429914300143011430214303143041430514306143071430814309143101431114312143131431414315143161431714318143191432014321143221432314324143251432614327143281432914330143311433214333143341433514336143371433814339143401434114342143431434414345143461434714348143491435014351143521435314354143551435614357143581435914360143611436214363143641436514366143671436814369143701437114372143731437414375143761437714378143791438014381143821438314384143851438614387143881438914390143911439214393143941439514396143971439814399144001440114402144031440414405144061440714408144091441014411144121441314414144151441614417144181441914420144211442214423144241442514426144271442814429144301443114432144331443414435144361443714438144391444014441144421444314444144451444614447144481444914450144511445214453144541445514456144571445814459144601446114462144631446414465144661446714468144691447014471144721447314474144751447614477144781447914480144811448214483144841448514486144871448814489144901449114492144931449414495144961449714498144991450014501145021450314504145051450614507145081450914510145111451214513145141451514516145171451814519145201452114522145231452414525145261452714528145291453014531145321453314534145351453614537145381453914540145411454214543145441454514546145471454814549145501455114552145531455414555145561455714558145591456014561145621456314564145651456614567145681456914570145711457214573145741457514576145771457814579145801458114582145831458414585145861458714588145891459014591145921459314594145951459614597145981459914600146011460214603146041460514606146071460814609146101461114612146131461414615146161461714618146191462014621146221462314624146251462614627146281462914630146311463214633146341463514636146371463814639146401464114642146431464414645146461464714648146491465014651146521465314654146551465614657146581465914660146611466214663146641466514666146671466814669146701467114672146731467414675146761467714678146791468014681146821468314684146851468614687146881468914690146911469214693146941469514696146971469814699147001470114702147031470414705147061470714708147091471014711147121471314714147151471614717147181471914720147211472214723147241472514726147271472814729147301473114732147331473414735147361473714738147391474014741147421474314744147451474614747147481474914750147511475214753147541475514756147571475814759147601476114762147631476414765147661476714768147691477014771147721477314774147751477614777147781477914780147811478214783147841478514786147871478814789147901479114792147931479414795147961479714798147991480014801148021480314804148051480614807148081480914810148111481214813148141481514816148171481814819148201482114822148231482414825148261482714828148291483014831148321483314834148351483614837148381483914840148411484214843148441484514846148471484814849148501485114852148531485414855148561485714858148591486014861148621486314864148651486614867148681486914870148711487214873148741487514876148771487814879148801488114882148831488414885148861488714888148891489014891148921489314894148951489614897148981489914900149011490214903149041490514906149071490814909149101491114912149131491414915149161491714918149191492014921149221492314924149251492614927149281492914930149311493214933149341493514936149371493814939149401494114942149431494414945149461494714948149491495014951149521495314954149551495614957149581495914960149611496214963149641496514966149671496814969149701497114972149731497414975149761497714978149791498014981149821498314984149851498614987149881498914990149911499214993149941499514996149971499814999150001500115002150031500415005150061500715008150091501015011150121501315014150151501615017150181501915020150211502215023150241502515026150271502815029150301503115032150331503415035150361503715038150391504015041150421504315044150451504615047150481504915050150511505215053150541505515056150571505815059150601506115062150631506415065150661506715068150691507015071150721507315074150751507615077150781507915080150811508215083150841508515086150871508815089150901509115092150931509415095150961509715098150991510015101151021510315104151051510615107151081510915110151111511215113151141511515116151171511815119151201512115122151231512415125151261512715128151291513015131151321513315134151351513615137151381513915140151411514215143151441514515146151471514815149151501515115152151531515415155151561515715158151591516015161151621516315164151651516615167151681516915170151711517215173151741517515176151771517815179151801518115182151831518415185151861518715188151891519015191151921519315194151951519615197151981519915200152011520215203152041520515206152071520815209152101521115212152131521415215152161521715218152191522015221152221522315224152251522615227152281522915230152311523215233152341523515236152371523815239152401524115242152431524415245152461524715248152491525015251152521525315254152551525615257152581525915260152611526215263152641526515266152671526815269152701527115272152731527415275152761527715278152791528015281152821528315284152851528615287152881528915290152911529215293152941529515296152971529815299153001530115302153031530415305153061530715308153091531015311153121531315314153151531615317153181531915320153211532215323153241532515326153271532815329153301533115332153331533415335153361533715338153391534015341153421534315344153451534615347153481534915350153511535215353153541535515356153571535815359153601536115362153631536415365153661536715368153691537015371153721537315374153751537615377153781537915380153811538215383153841538515386153871538815389153901539115392153931539415395153961539715398153991540015401154021540315404154051540615407154081540915410154111541215413154141541515416154171541815419154201542115422154231542415425154261542715428154291543015431154321543315434154351543615437154381543915440154411544215443154441544515446154471544815449154501545115452154531545415455154561545715458154591546015461154621546315464154651546615467154681546915470154711547215473154741547515476154771547815479154801548115482154831548415485154861548715488154891549015491154921549315494154951549615497154981549915500155011550215503155041550515506155071550815509155101551115512155131551415515155161551715518155191552015521155221552315524155251552615527155281552915530155311553215533155341553515536155371553815539155401554115542155431554415545155461554715548155491555015551155521555315554155551555615557155581555915560155611556215563155641556515566155671556815569155701557115572155731557415575155761557715578155791558015581155821558315584155851558615587155881558915590155911559215593155941559515596155971559815599156001560115602156031560415605156061560715608156091561015611156121561315614156151561615617156181561915620156211562215623156241562515626156271562815629156301563115632156331563415635156361563715638156391564015641156421564315644156451564615647156481564915650156511565215653156541565515656156571565815659156601566115662156631566415665156661566715668156691567015671156721567315674156751567615677156781567915680156811568215683156841568515686156871568815689156901569115692156931569415695156961569715698156991570015701157021570315704157051570615707157081570915710157111571215713157141571515716157171571815719157201572115722157231572415725157261572715728157291573015731157321573315734157351573615737157381573915740157411574215743157441574515746157471574815749157501575115752157531575415755157561575715758157591576015761157621576315764157651576615767157681576915770157711577215773157741577515776157771577815779157801578115782157831578415785157861578715788157891579015791157921579315794157951579615797157981579915800158011580215803158041580515806158071580815809158101581115812158131581415815158161581715818158191582015821158221582315824158251582615827158281582915830158311583215833158341583515836158371583815839158401584115842158431584415845158461584715848158491585015851158521585315854158551585615857158581585915860158611586215863158641586515866158671586815869158701587115872158731587415875158761587715878158791588015881158821588315884158851588615887158881588915890158911589215893158941589515896158971589815899159001590115902159031590415905159061590715908159091591015911159121591315914159151591615917159181591915920159211592215923159241592515926159271592815929159301593115932159331593415935159361593715938159391594015941159421594315944159451594615947159481594915950159511595215953159541595515956159571595815959159601596115962159631596415965159661596715968159691597015971159721597315974159751597615977159781597915980159811598215983159841598515986159871598815989159901599115992159931599415995159961599715998159991600016001160021600316004160051600616007160081600916010160111601216013160141601516016160171601816019160201602116022160231602416025160261602716028160291603016031160321603316034160351603616037160381603916040160411604216043160441604516046160471604816049160501605116052160531605416055160561605716058160591606016061160621606316064160651606616067160681606916070160711607216073160741607516076160771607816079160801608116082160831608416085160861608716088160891609016091160921609316094160951609616097160981609916100161011610216103161041610516106161071610816109161101611116112161131611416115161161611716118161191612016121161221612316124161251612616127161281612916130161311613216133161341613516136161371613816139161401614116142161431614416145161461614716148161491615016151161521615316154161551615616157161581615916160161611616216163161641616516166161671616816169161701617116172161731617416175161761617716178161791618016181161821618316184161851618616187161881618916190161911619216193161941619516196161971619816199162001620116202162031620416205162061620716208162091621016211162121621316214162151621616217162181621916220162211622216223162241622516226162271622816229162301623116232162331623416235162361623716238162391624016241162421624316244162451624616247162481624916250162511625216253162541625516256162571625816259162601626116262162631626416265162661626716268162691627016271162721627316274162751627616277162781627916280162811628216283162841628516286162871628816289162901629116292162931629416295162961629716298162991630016301163021630316304163051630616307163081630916310163111631216313163141631516316163171631816319163201632116322163231632416325163261632716328163291633016331163321633316334163351633616337163381633916340163411634216343163441634516346163471634816349163501635116352163531635416355163561635716358163591636016361163621636316364163651636616367163681636916370163711637216373163741637516376163771637816379163801638116382163831638416385163861638716388163891639016391163921639316394163951639616397163981639916400164011640216403164041640516406164071640816409164101641116412164131641416415164161641716418164191642016421164221642316424164251642616427164281642916430164311643216433164341643516436164371643816439164401644116442164431644416445164461644716448164491645016451164521645316454164551645616457164581645916460164611646216463164641646516466164671646816469164701647116472164731647416475164761647716478164791648016481164821648316484164851648616487164881648916490164911649216493164941649516496164971649816499165001650116502165031650416505165061650716508165091651016511165121651316514165151651616517165181651916520165211652216523165241652516526165271652816529165301653116532165331653416535165361653716538165391654016541165421654316544165451654616547165481654916550165511655216553165541655516556165571655816559165601656116562165631656416565165661656716568165691657016571165721657316574165751657616577165781657916580165811658216583165841658516586165871658816589165901659116592165931659416595165961659716598165991660016601166021660316604166051660616607166081660916610166111661216613166141661516616166171661816619166201662116622166231662416625166261662716628166291663016631166321663316634166351663616637166381663916640
  1. #! /bin/sh
  2. # Guess values for system-dependent variables and create Makefiles.
  3. # Generated by GNU Autoconf 2.64 for aria2 1.7.1.
  4. #
  5. # Report bugs to <t-tujikawa@users.sourceforge.net>.
  6. #
  7. # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
  8. # 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009 Free Software
  9. # Foundation, Inc.
  10. #
  11. # This configure script is free software; the Free Software Foundation
  12. # gives unlimited permission to copy, distribute and modify it.
  13. ## -------------------- ##
  14. ## M4sh Initialization. ##
  15. ## -------------------- ##
  16. # Be more Bourne compatible
  17. DUALCASE=1; export DUALCASE # for MKS sh
  18. if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
  19. emulate sh
  20. NULLCMD=:
  21. # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
  22. # is contrary to our usage. Disable this feature.
  23. alias -g '${1+"$@"}'='"$@"'
  24. setopt NO_GLOB_SUBST
  25. else
  26. case `(set -o) 2>/dev/null` in #(
  27. *posix*) :
  28. set -o posix ;; #(
  29. *) :
  30. ;;
  31. esac
  32. fi
  33. as_nl='
  34. '
  35. export as_nl
  36. # Printing a long string crashes Solaris 7 /usr/bin/printf.
  37. as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
  38. as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
  39. as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
  40. # Prefer a ksh shell builtin over an external printf program on Solaris,
  41. # but without wasting forks for bash or zsh.
  42. if test -z "$BASH_VERSION$ZSH_VERSION" \
  43. && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
  44. as_echo='print -r --'
  45. as_echo_n='print -rn --'
  46. elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
  47. as_echo='printf %s\n'
  48. as_echo_n='printf %s'
  49. else
  50. if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
  51. as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
  52. as_echo_n='/usr/ucb/echo -n'
  53. else
  54. as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
  55. as_echo_n_body='eval
  56. arg=$1;
  57. case $arg in #(
  58. *"$as_nl"*)
  59. expr "X$arg" : "X\\(.*\\)$as_nl";
  60. arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
  61. esac;
  62. expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
  63. '
  64. export as_echo_n_body
  65. as_echo_n='sh -c $as_echo_n_body as_echo'
  66. fi
  67. export as_echo_body
  68. as_echo='sh -c $as_echo_body as_echo'
  69. fi
  70. # The user is always right.
  71. if test "${PATH_SEPARATOR+set}" != set; then
  72. PATH_SEPARATOR=:
  73. (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
  74. (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
  75. PATH_SEPARATOR=';'
  76. }
  77. fi
  78. # IFS
  79. # We need space, tab and new line, in precisely that order. Quoting is
  80. # there to prevent editors from complaining about space-tab.
  81. # (If _AS_PATH_WALK were called with IFS unset, it would disable word
  82. # splitting by setting IFS to empty value.)
  83. IFS=" "" $as_nl"
  84. # Find who we are. Look in the path if we contain no directory separator.
  85. case $0 in #((
  86. *[\\/]* ) as_myself=$0 ;;
  87. *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  88. for as_dir in $PATH
  89. do
  90. IFS=$as_save_IFS
  91. test -z "$as_dir" && as_dir=.
  92. test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
  93. done
  94. IFS=$as_save_IFS
  95. ;;
  96. esac
  97. # We did not find ourselves, most probably we were run as `sh COMMAND'
  98. # in which case we are not to be found in the path.
  99. if test "x$as_myself" = x; then
  100. as_myself=$0
  101. fi
  102. if test ! -f "$as_myself"; then
  103. $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
  104. exit 1
  105. fi
  106. # Unset variables that we do not need and which cause bugs (e.g. in
  107. # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
  108. # suppresses any "Segmentation fault" message there. '((' could
  109. # trigger a bug in pdksh 5.2.14.
  110. for as_var in BASH_ENV ENV MAIL MAILPATH
  111. do eval test x\${$as_var+set} = xset \
  112. && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
  113. done
  114. PS1='$ '
  115. PS2='> '
  116. PS4='+ '
  117. # NLS nuisances.
  118. LC_ALL=C
  119. export LC_ALL
  120. LANGUAGE=C
  121. export LANGUAGE
  122. # CDPATH.
  123. (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
  124. if test "x$CONFIG_SHELL" = x; then
  125. as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
  126. emulate sh
  127. NULLCMD=:
  128. # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
  129. # is contrary to our usage. Disable this feature.
  130. alias -g '\${1+\"\$@\"}'='\"\$@\"'
  131. setopt NO_GLOB_SUBST
  132. else
  133. case \`(set -o) 2>/dev/null\` in #(
  134. *posix*) :
  135. set -o posix ;; #(
  136. *) :
  137. ;;
  138. esac
  139. fi
  140. "
  141. as_required="as_fn_return () { (exit \$1); }
  142. as_fn_success () { as_fn_return 0; }
  143. as_fn_failure () { as_fn_return 1; }
  144. as_fn_ret_success () { return 0; }
  145. as_fn_ret_failure () { return 1; }
  146. exitcode=0
  147. as_fn_success || { exitcode=1; echo as_fn_success failed.; }
  148. as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
  149. as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
  150. as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
  151. if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
  152. else
  153. exitcode=1; echo positional parameters were not saved.
  154. fi
  155. test x\$exitcode = x0 || exit 1"
  156. as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
  157. as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
  158. eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
  159. test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
  160. test \$(( 1 + 1 )) = 2 || exit 1"
  161. if (eval "$as_required") 2>/dev/null; then :
  162. as_have_required=yes
  163. else
  164. as_have_required=no
  165. fi
  166. if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
  167. else
  168. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  169. as_found=false
  170. for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
  171. do
  172. IFS=$as_save_IFS
  173. test -z "$as_dir" && as_dir=.
  174. as_found=:
  175. case $as_dir in #(
  176. /*)
  177. for as_base in sh bash ksh sh5; do
  178. # Try only shells that exist, to save several forks.
  179. as_shell=$as_dir/$as_base
  180. if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
  181. { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
  182. CONFIG_SHELL=$as_shell as_have_required=yes
  183. if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
  184. break 2
  185. fi
  186. fi
  187. done;;
  188. esac
  189. as_found=false
  190. done
  191. $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
  192. { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
  193. CONFIG_SHELL=$SHELL as_have_required=yes
  194. fi; }
  195. IFS=$as_save_IFS
  196. if test "x$CONFIG_SHELL" != x; then :
  197. # We cannot yet assume a decent shell, so we have to provide a
  198. # neutralization value for shells without unset; and this also
  199. # works around shells that cannot unset nonexistent variables.
  200. BASH_ENV=/dev/null
  201. ENV=/dev/null
  202. (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
  203. export CONFIG_SHELL
  204. exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
  205. fi
  206. if test x$as_have_required = xno; then :
  207. $as_echo "$0: This script requires a shell more modern than all"
  208. $as_echo "$0: the shells that I found on your system."
  209. if test x${ZSH_VERSION+set} = xset ; then
  210. $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
  211. $as_echo "$0: be upgraded to zsh 4.3.4 or later."
  212. else
  213. $as_echo "$0: Please tell bug-autoconf@gnu.org and
  214. $0: t-tujikawa@users.sourceforge.net about your system,
  215. $0: including any error possibly output before this
  216. $0: message. Then install a modern shell, or manually run
  217. $0: the script under such a shell if you do have one."
  218. fi
  219. exit 1
  220. fi
  221. fi
  222. fi
  223. SHELL=${CONFIG_SHELL-/bin/sh}
  224. export SHELL
  225. # Unset more variables known to interfere with behavior of common tools.
  226. CLICOLOR_FORCE= GREP_OPTIONS=
  227. unset CLICOLOR_FORCE GREP_OPTIONS
  228. ## --------------------- ##
  229. ## M4sh Shell Functions. ##
  230. ## --------------------- ##
  231. # as_fn_unset VAR
  232. # ---------------
  233. # Portably unset VAR.
  234. as_fn_unset ()
  235. {
  236. { eval $1=; unset $1;}
  237. }
  238. as_unset=as_fn_unset
  239. # as_fn_set_status STATUS
  240. # -----------------------
  241. # Set $? to STATUS, without forking.
  242. as_fn_set_status ()
  243. {
  244. return $1
  245. } # as_fn_set_status
  246. # as_fn_exit STATUS
  247. # -----------------
  248. # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
  249. as_fn_exit ()
  250. {
  251. set +e
  252. as_fn_set_status $1
  253. exit $1
  254. } # as_fn_exit
  255. # as_fn_mkdir_p
  256. # -------------
  257. # Create "$as_dir" as a directory, including parents if necessary.
  258. as_fn_mkdir_p ()
  259. {
  260. case $as_dir in #(
  261. -*) as_dir=./$as_dir;;
  262. esac
  263. test -d "$as_dir" || eval $as_mkdir_p || {
  264. as_dirs=
  265. while :; do
  266. case $as_dir in #(
  267. *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
  268. *) as_qdir=$as_dir;;
  269. esac
  270. as_dirs="'$as_qdir' $as_dirs"
  271. as_dir=`$as_dirname -- "$as_dir" ||
  272. $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  273. X"$as_dir" : 'X\(//\)[^/]' \| \
  274. X"$as_dir" : 'X\(//\)$' \| \
  275. X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
  276. $as_echo X"$as_dir" |
  277. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  278. s//\1/
  279. q
  280. }
  281. /^X\(\/\/\)[^/].*/{
  282. s//\1/
  283. q
  284. }
  285. /^X\(\/\/\)$/{
  286. s//\1/
  287. q
  288. }
  289. /^X\(\/\).*/{
  290. s//\1/
  291. q
  292. }
  293. s/.*/./; q'`
  294. test -d "$as_dir" && break
  295. done
  296. test -z "$as_dirs" || eval "mkdir $as_dirs"
  297. } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
  298. } # as_fn_mkdir_p
  299. # as_fn_append VAR VALUE
  300. # ----------------------
  301. # Append the text in VALUE to the end of the definition contained in VAR. Take
  302. # advantage of any shell optimizations that allow amortized linear growth over
  303. # repeated appends, instead of the typical quadratic growth present in naive
  304. # implementations.
  305. if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
  306. eval 'as_fn_append ()
  307. {
  308. eval $1+=\$2
  309. }'
  310. else
  311. as_fn_append ()
  312. {
  313. eval $1=\$$1\$2
  314. }
  315. fi # as_fn_append
  316. # as_fn_arith ARG...
  317. # ------------------
  318. # Perform arithmetic evaluation on the ARGs, and store the result in the
  319. # global $as_val. Take advantage of shells that can avoid forks. The arguments
  320. # must be portable across $(()) and expr.
  321. if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
  322. eval 'as_fn_arith ()
  323. {
  324. as_val=$(( $* ))
  325. }'
  326. else
  327. as_fn_arith ()
  328. {
  329. as_val=`expr "$@" || test $? -eq 1`
  330. }
  331. fi # as_fn_arith
  332. # as_fn_error ERROR [LINENO LOG_FD]
  333. # ---------------------------------
  334. # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
  335. # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
  336. # script with status $?, using 1 if that was 0.
  337. as_fn_error ()
  338. {
  339. as_status=$?; test $as_status -eq 0 && as_status=1
  340. if test "$3"; then
  341. as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  342. $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
  343. fi
  344. $as_echo "$as_me: error: $1" >&2
  345. as_fn_exit $as_status
  346. } # as_fn_error
  347. if expr a : '\(a\)' >/dev/null 2>&1 &&
  348. test "X`expr 00001 : '.*\(...\)'`" = X001; then
  349. as_expr=expr
  350. else
  351. as_expr=false
  352. fi
  353. if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
  354. as_basename=basename
  355. else
  356. as_basename=false
  357. fi
  358. if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
  359. as_dirname=dirname
  360. else
  361. as_dirname=false
  362. fi
  363. as_me=`$as_basename -- "$0" ||
  364. $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
  365. X"$0" : 'X\(//\)$' \| \
  366. X"$0" : 'X\(/\)' \| . 2>/dev/null ||
  367. $as_echo X/"$0" |
  368. sed '/^.*\/\([^/][^/]*\)\/*$/{
  369. s//\1/
  370. q
  371. }
  372. /^X\/\(\/\/\)$/{
  373. s//\1/
  374. q
  375. }
  376. /^X\/\(\/\).*/{
  377. s//\1/
  378. q
  379. }
  380. s/.*/./; q'`
  381. # Avoid depending upon Character Ranges.
  382. as_cr_letters='abcdefghijklmnopqrstuvwxyz'
  383. as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
  384. as_cr_Letters=$as_cr_letters$as_cr_LETTERS
  385. as_cr_digits='0123456789'
  386. as_cr_alnum=$as_cr_Letters$as_cr_digits
  387. as_lineno_1=$LINENO as_lineno_1a=$LINENO
  388. as_lineno_2=$LINENO as_lineno_2a=$LINENO
  389. eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
  390. test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
  391. # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
  392. sed -n '
  393. p
  394. /[$]LINENO/=
  395. ' <$as_myself |
  396. sed '
  397. s/[$]LINENO.*/&-/
  398. t lineno
  399. b
  400. :lineno
  401. N
  402. :loop
  403. s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
  404. t loop
  405. s/-\n.*//
  406. ' >$as_me.lineno &&
  407. chmod +x "$as_me.lineno" ||
  408. { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
  409. # Don't try to exec as it changes $[0], causing all sort of problems
  410. # (the dirname of $[0] is not the place where we might find the
  411. # original and so on. Autoconf is especially sensitive to this).
  412. . "./$as_me.lineno"
  413. # Exit status is that of the last command.
  414. exit
  415. }
  416. ECHO_C= ECHO_N= ECHO_T=
  417. case `echo -n x` in #(((((
  418. -n*)
  419. case `echo 'xy\c'` in
  420. *c*) ECHO_T=' ';; # ECHO_T is single tab character.
  421. xy) ECHO_C='\c';;
  422. *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
  423. ECHO_T=' ';;
  424. esac;;
  425. *)
  426. ECHO_N='-n';;
  427. esac
  428. rm -f conf$$ conf$$.exe conf$$.file
  429. if test -d conf$$.dir; then
  430. rm -f conf$$.dir/conf$$.file
  431. else
  432. rm -f conf$$.dir
  433. mkdir conf$$.dir 2>/dev/null
  434. fi
  435. if (echo >conf$$.file) 2>/dev/null; then
  436. if ln -s conf$$.file conf$$ 2>/dev/null; then
  437. as_ln_s='ln -s'
  438. # ... but there are two gotchas:
  439. # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
  440. # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
  441. # In both cases, we have to default to `cp -p'.
  442. ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
  443. as_ln_s='cp -p'
  444. elif ln conf$$.file conf$$ 2>/dev/null; then
  445. as_ln_s=ln
  446. else
  447. as_ln_s='cp -p'
  448. fi
  449. else
  450. as_ln_s='cp -p'
  451. fi
  452. rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
  453. rmdir conf$$.dir 2>/dev/null
  454. if mkdir -p . 2>/dev/null; then
  455. as_mkdir_p='mkdir -p "$as_dir"'
  456. else
  457. test -d ./-p && rmdir ./-p
  458. as_mkdir_p=false
  459. fi
  460. if test -x / >/dev/null 2>&1; then
  461. as_test_x='test -x'
  462. else
  463. if ls -dL / >/dev/null 2>&1; then
  464. as_ls_L_option=L
  465. else
  466. as_ls_L_option=
  467. fi
  468. as_test_x='
  469. eval sh -c '\''
  470. if test -d "$1"; then
  471. test -d "$1/.";
  472. else
  473. case $1 in #(
  474. -*)set "./$1";;
  475. esac;
  476. case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
  477. ???[sx]*):;;*)false;;esac;fi
  478. '\'' sh
  479. '
  480. fi
  481. as_executable_p=$as_test_x
  482. # Sed expression to map a string onto a valid CPP name.
  483. as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
  484. # Sed expression to map a string onto a valid variable name.
  485. as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
  486. exec 7<&0 </dev/null 6>&1
  487. # Name of the host.
  488. # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
  489. # so uname gets run too.
  490. ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
  491. #
  492. # Initializations.
  493. #
  494. ac_default_prefix=/usr/local
  495. ac_clean_files=
  496. ac_config_libobj_dir=.
  497. LIBOBJS=
  498. cross_compiling=no
  499. subdirs=
  500. MFLAGS=
  501. MAKEFLAGS=
  502. # Identity of this package.
  503. PACKAGE_NAME='aria2'
  504. PACKAGE_TARNAME='aria2'
  505. PACKAGE_VERSION='1.7.1'
  506. PACKAGE_STRING='aria2 1.7.1'
  507. PACKAGE_BUGREPORT='t-tujikawa@users.sourceforge.net'
  508. PACKAGE_URL='http://aria2.sourceforge.net/'
  509. ac_unique_file="src/a2io.h"
  510. # Factoring default headers for most tests.
  511. ac_includes_default="\
  512. #include <stdio.h>
  513. #ifdef HAVE_SYS_TYPES_H
  514. # include <sys/types.h>
  515. #endif
  516. #ifdef HAVE_SYS_STAT_H
  517. # include <sys/stat.h>
  518. #endif
  519. #ifdef STDC_HEADERS
  520. # include <stdlib.h>
  521. # include <stddef.h>
  522. #else
  523. # ifdef HAVE_STDLIB_H
  524. # include <stdlib.h>
  525. # endif
  526. #endif
  527. #ifdef HAVE_STRING_H
  528. # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
  529. # include <memory.h>
  530. # endif
  531. # include <string.h>
  532. #endif
  533. #ifdef HAVE_STRINGS_H
  534. # include <strings.h>
  535. #endif
  536. #ifdef HAVE_INTTYPES_H
  537. # include <inttypes.h>
  538. #endif
  539. #ifdef HAVE_STDINT_H
  540. # include <stdint.h>
  541. #endif
  542. #ifdef HAVE_UNISTD_H
  543. # include <unistd.h>
  544. #endif"
  545. gt_needs=
  546. ac_header_list=
  547. ac_func_list=
  548. ac_subst_vars='am__EXEEXT_FALSE
  549. am__EXEEXT_TRUE
  550. LTLIBOBJS
  551. HAVE_DAEMON_FALSE
  552. HAVE_DAEMON_TRUE
  553. HAVE_TIMEGM_FALSE
  554. HAVE_TIMEGM_TRUE
  555. HAVE_STRPTIME_FALSE
  556. HAVE_STRPTIME_TRUE
  557. HAVE_LOCALTIME_R_FALSE
  558. HAVE_LOCALTIME_R_TRUE
  559. HAVE_INET_ATON_FALSE
  560. HAVE_INET_ATON_TRUE
  561. HAVE_GETTIMEOFDAY_FALSE
  562. HAVE_GETTIMEOFDAY_TRUE
  563. HAVE_GETADDRINFO_FALSE
  564. HAVE_GETADDRINFO_TRUE
  565. HAVE_GAI_STRERROR_FALSE
  566. HAVE_GAI_STRERROR_TRUE
  567. HAVE_BASENAME_FALSE
  568. HAVE_BASENAME_TRUE
  569. HAVE_ASCTIME_R_FALSE
  570. HAVE_ASCTIME_R_TRUE
  571. HAVE_POSIX_FALLOCATE_FALSE
  572. HAVE_POSIX_FALLOCATE_TRUE
  573. HAVE_EPOLL_FALSE
  574. HAVE_EPOLL_TRUE
  575. POW_LIB
  576. LIBOBJS
  577. POSUB
  578. LTLIBINTL
  579. LIBINTL
  580. INTLLIBS
  581. INTL_LIBTOOL_SUFFIX_PREFIX
  582. INTLOBJS
  583. GENCAT
  584. INSTOBJEXT
  585. DATADIRNAME
  586. CATOBJEXT
  587. USE_INCLUDED_LIBINTL
  588. BUILD_INCLUDED_LIBINTL
  589. LTLIBC
  590. WINDRES
  591. WOE32
  592. WOE32DLL
  593. HAVE_WPRINTF
  594. HAVE_SNPRINTF
  595. HAVE_ASPRINTF
  596. HAVE_POSIX_PRINTF
  597. INTL_MACOSX_LIBS
  598. GLIBC21
  599. INTLBISON
  600. LTLIBICONV
  601. LIBICONV
  602. LTLIBMULTITHREAD
  603. LIBMULTITHREAD
  604. LTLIBTHREAD
  605. LIBTHREAD
  606. LIBPTH_PREFIX
  607. LTLIBPTH
  608. LIBPTH
  609. PRI_MACROS_BROKEN
  610. HAVE_VISIBILITY
  611. CFLAG_VISIBILITY
  612. GLIBC2
  613. XGETTEXT_EXTRA_OPTIONS
  614. MSGMERGE
  615. XGETTEXT_015
  616. XGETTEXT
  617. GMSGFMT_015
  618. MSGFMT_015
  619. GMSGFMT
  620. MSGFMT
  621. GETTEXT_MACRO_VERSION
  622. USE_NLS
  623. ALLOCA
  624. HAVE_SQLITE3_FALSE
  625. HAVE_SQLITE3_TRUE
  626. HAVE_LIBZ_FALSE
  627. HAVE_LIBZ_TRUE
  628. ENABLE_ASYNC_DNS_FALSE
  629. ENABLE_ASYNC_DNS_TRUE
  630. HAVE_LIBEXPAT_FALSE
  631. HAVE_LIBEXPAT_TRUE
  632. HAVE_LIBXML2_FALSE
  633. HAVE_LIBXML2_TRUE
  634. ENABLE_XML_RPC_FALSE
  635. ENABLE_XML_RPC_TRUE
  636. ENABLE_METALINK_LIBEXPAT_FALSE
  637. ENABLE_METALINK_LIBEXPAT_TRUE
  638. ENABLE_METALINK_LIBXML2_FALSE
  639. ENABLE_METALINK_LIBXML2_TRUE
  640. ENABLE_METALINK_FALSE
  641. ENABLE_METALINK_TRUE
  642. ENABLE_BITTORRENT_FALSE
  643. ENABLE_BITTORRENT_TRUE
  644. ENABLE_MESSAGE_DIGEST_FALSE
  645. ENABLE_MESSAGE_DIGEST_TRUE
  646. HAVE_LIBSSL_FALSE
  647. HAVE_LIBSSL_TRUE
  648. HAVE_LIBGNUTLS_FALSE
  649. HAVE_LIBGNUTLS_TRUE
  650. ca_bundle
  651. ENABLE_SSL_FALSE
  652. ENABLE_SSL_TRUE
  653. LIBZ_CPPFLAGS
  654. LIBZ_LIBS
  655. LIBCARES_CPPFLAGS
  656. LIBCARES_LIBS
  657. OPENSSL_CFLAGS
  658. OPENSSL_LIBS
  659. LIBGCRYPT_LIBS
  660. LIBGCRYPT_CFLAGS
  661. LIBGCRYPT_CONFIG
  662. LIBGNUTLS_CONFIG
  663. LIBGNUTLS_LIBS
  664. LIBGNUTLS_CFLAGS
  665. SQLITE3_LIBS
  666. SQLITE3_CFLAGS
  667. PKG_CONFIG
  668. LIBEXPAT_CPPFLAGS
  669. LIBEXPAT_LIBS
  670. XML_LIBS
  671. XML_CPPFLAGS
  672. XML2_CONFIG
  673. EGREP
  674. GREP
  675. CXXCPP
  676. YFLAGS
  677. YACC
  678. RANLIB
  679. am__fastdepCC_FALSE
  680. am__fastdepCC_TRUE
  681. CCDEPMODE
  682. ac_ct_CC
  683. CFLAGS
  684. CC
  685. am__fastdepCXX_FALSE
  686. am__fastdepCXX_TRUE
  687. CXXDEPMODE
  688. AMDEPBACKSLASH
  689. AMDEP_FALSE
  690. AMDEP_TRUE
  691. am__quote
  692. am__include
  693. DEPDIR
  694. OBJEXT
  695. EXEEXT
  696. ac_ct_CXX
  697. CPPFLAGS
  698. LDFLAGS
  699. CXXFLAGS
  700. CXX
  701. WINSOCK_LIBS
  702. CPPUNIT_LIBS
  703. CPPUNIT_CFLAGS
  704. CPPUNIT_CONFIG
  705. am__untar
  706. am__tar
  707. AMTAR
  708. am__leading_dot
  709. SET_MAKE
  710. AWK
  711. mkdir_p
  712. MKDIR_P
  713. INSTALL_STRIP_PROGRAM
  714. STRIP
  715. install_sh
  716. MAKEINFO
  717. AUTOHEADER
  718. AUTOMAKE
  719. AUTOCONF
  720. ACLOCAL
  721. VERSION
  722. PACKAGE
  723. CYGPATH_W
  724. am__isrc
  725. INSTALL_DATA
  726. INSTALL_SCRIPT
  727. INSTALL_PROGRAM
  728. target_os
  729. target_vendor
  730. target_cpu
  731. target
  732. host_os
  733. host_vendor
  734. host_cpu
  735. host
  736. build_os
  737. build_vendor
  738. build_cpu
  739. build
  740. target_alias
  741. host_alias
  742. build_alias
  743. LIBS
  744. ECHO_T
  745. ECHO_N
  746. ECHO_C
  747. DEFS
  748. mandir
  749. localedir
  750. libdir
  751. psdir
  752. pdfdir
  753. dvidir
  754. htmldir
  755. infodir
  756. docdir
  757. oldincludedir
  758. includedir
  759. localstatedir
  760. sharedstatedir
  761. sysconfdir
  762. datadir
  763. datarootdir
  764. libexecdir
  765. sbindir
  766. bindir
  767. program_transform_name
  768. prefix
  769. exec_prefix
  770. PACKAGE_URL
  771. PACKAGE_BUGREPORT
  772. PACKAGE_STRING
  773. PACKAGE_VERSION
  774. PACKAGE_TARNAME
  775. PACKAGE_NAME
  776. PATH_SEPARATOR
  777. SHELL'
  778. ac_subst_files=''
  779. ac_user_opts='
  780. enable_option_checking
  781. with_cppunit_prefix
  782. with_cppunit_exec_prefix
  783. with_gnutls
  784. with_openssl
  785. with_sqlite3
  786. with_libxml2
  787. with_libexpat
  788. with_libcares
  789. with_libz
  790. enable_bittorrent
  791. enable_metalink
  792. enable_epoll
  793. with_ca_bundle
  794. enable_dependency_tracking
  795. with_xml_prefix
  796. with_xml_exec_prefix
  797. enable_xmltest
  798. with_libexpat_prefix
  799. with_sqlite3_prefix
  800. with_libgnutls_prefix
  801. with_libgcrypt_prefix
  802. with_openssl_prefix
  803. with_libcares_prefix
  804. with_libz_prefix
  805. enable_largefile
  806. enable_nls
  807. enable_threads
  808. with_gnu_ld
  809. enable_rpath
  810. with_libpth_prefix
  811. with_libiconv_prefix
  812. with_included_gettext
  813. with_libintl_prefix
  814. '
  815. ac_precious_vars='build_alias
  816. host_alias
  817. target_alias
  818. CXX
  819. CXXFLAGS
  820. LDFLAGS
  821. LIBS
  822. CPPFLAGS
  823. CCC
  824. CC
  825. CFLAGS
  826. YACC
  827. YFLAGS
  828. CXXCPP
  829. PKG_CONFIG
  830. SQLITE3_CFLAGS
  831. SQLITE3_LIBS
  832. LIBGNUTLS_CFLAGS
  833. LIBGNUTLS_LIBS'
  834. # Initialize some variables set by options.
  835. ac_init_help=
  836. ac_init_version=false
  837. ac_unrecognized_opts=
  838. ac_unrecognized_sep=
  839. # The variables have the same names as the options, with
  840. # dashes changed to underlines.
  841. cache_file=/dev/null
  842. exec_prefix=NONE
  843. no_create=
  844. no_recursion=
  845. prefix=NONE
  846. program_prefix=NONE
  847. program_suffix=NONE
  848. program_transform_name=s,x,x,
  849. silent=
  850. site=
  851. srcdir=
  852. verbose=
  853. x_includes=NONE
  854. x_libraries=NONE
  855. # Installation directory options.
  856. # These are left unexpanded so users can "make install exec_prefix=/foo"
  857. # and all the variables that are supposed to be based on exec_prefix
  858. # by default will actually change.
  859. # Use braces instead of parens because sh, perl, etc. also accept them.
  860. # (The list follows the same order as the GNU Coding Standards.)
  861. bindir='${exec_prefix}/bin'
  862. sbindir='${exec_prefix}/sbin'
  863. libexecdir='${exec_prefix}/libexec'
  864. datarootdir='${prefix}/share'
  865. datadir='${datarootdir}'
  866. sysconfdir='${prefix}/etc'
  867. sharedstatedir='${prefix}/com'
  868. localstatedir='${prefix}/var'
  869. includedir='${prefix}/include'
  870. oldincludedir='/usr/include'
  871. docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
  872. infodir='${datarootdir}/info'
  873. htmldir='${docdir}'
  874. dvidir='${docdir}'
  875. pdfdir='${docdir}'
  876. psdir='${docdir}'
  877. libdir='${exec_prefix}/lib'
  878. localedir='${datarootdir}/locale'
  879. mandir='${datarootdir}/man'
  880. ac_prev=
  881. ac_dashdash=
  882. for ac_option
  883. do
  884. # If the previous option needs an argument, assign it.
  885. if test -n "$ac_prev"; then
  886. eval $ac_prev=\$ac_option
  887. ac_prev=
  888. continue
  889. fi
  890. case $ac_option in
  891. *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
  892. *) ac_optarg=yes ;;
  893. esac
  894. # Accept the important Cygnus configure options, so we can diagnose typos.
  895. case $ac_dashdash$ac_option in
  896. --)
  897. ac_dashdash=yes ;;
  898. -bindir | --bindir | --bindi | --bind | --bin | --bi)
  899. ac_prev=bindir ;;
  900. -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
  901. bindir=$ac_optarg ;;
  902. -build | --build | --buil | --bui | --bu)
  903. ac_prev=build_alias ;;
  904. -build=* | --build=* | --buil=* | --bui=* | --bu=*)
  905. build_alias=$ac_optarg ;;
  906. -cache-file | --cache-file | --cache-fil | --cache-fi \
  907. | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
  908. ac_prev=cache_file ;;
  909. -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
  910. | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
  911. cache_file=$ac_optarg ;;
  912. --config-cache | -C)
  913. cache_file=config.cache ;;
  914. -datadir | --datadir | --datadi | --datad)
  915. ac_prev=datadir ;;
  916. -datadir=* | --datadir=* | --datadi=* | --datad=*)
  917. datadir=$ac_optarg ;;
  918. -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
  919. | --dataroo | --dataro | --datar)
  920. ac_prev=datarootdir ;;
  921. -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
  922. | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
  923. datarootdir=$ac_optarg ;;
  924. -disable-* | --disable-*)
  925. ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
  926. # Reject names that are not valid shell variable names.
  927. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  928. as_fn_error "invalid feature name: $ac_useropt"
  929. ac_useropt_orig=$ac_useropt
  930. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  931. case $ac_user_opts in
  932. *"
  933. "enable_$ac_useropt"
  934. "*) ;;
  935. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
  936. ac_unrecognized_sep=', ';;
  937. esac
  938. eval enable_$ac_useropt=no ;;
  939. -docdir | --docdir | --docdi | --doc | --do)
  940. ac_prev=docdir ;;
  941. -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
  942. docdir=$ac_optarg ;;
  943. -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
  944. ac_prev=dvidir ;;
  945. -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
  946. dvidir=$ac_optarg ;;
  947. -enable-* | --enable-*)
  948. ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
  949. # Reject names that are not valid shell variable names.
  950. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  951. as_fn_error "invalid feature name: $ac_useropt"
  952. ac_useropt_orig=$ac_useropt
  953. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  954. case $ac_user_opts in
  955. *"
  956. "enable_$ac_useropt"
  957. "*) ;;
  958. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
  959. ac_unrecognized_sep=', ';;
  960. esac
  961. eval enable_$ac_useropt=\$ac_optarg ;;
  962. -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
  963. | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
  964. | --exec | --exe | --ex)
  965. ac_prev=exec_prefix ;;
  966. -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
  967. | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
  968. | --exec=* | --exe=* | --ex=*)
  969. exec_prefix=$ac_optarg ;;
  970. -gas | --gas | --ga | --g)
  971. # Obsolete; use --with-gas.
  972. with_gas=yes ;;
  973. -help | --help | --hel | --he | -h)
  974. ac_init_help=long ;;
  975. -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
  976. ac_init_help=recursive ;;
  977. -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
  978. ac_init_help=short ;;
  979. -host | --host | --hos | --ho)
  980. ac_prev=host_alias ;;
  981. -host=* | --host=* | --hos=* | --ho=*)
  982. host_alias=$ac_optarg ;;
  983. -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
  984. ac_prev=htmldir ;;
  985. -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
  986. | --ht=*)
  987. htmldir=$ac_optarg ;;
  988. -includedir | --includedir | --includedi | --included | --include \
  989. | --includ | --inclu | --incl | --inc)
  990. ac_prev=includedir ;;
  991. -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
  992. | --includ=* | --inclu=* | --incl=* | --inc=*)
  993. includedir=$ac_optarg ;;
  994. -infodir | --infodir | --infodi | --infod | --info | --inf)
  995. ac_prev=infodir ;;
  996. -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
  997. infodir=$ac_optarg ;;
  998. -libdir | --libdir | --libdi | --libd)
  999. ac_prev=libdir ;;
  1000. -libdir=* | --libdir=* | --libdi=* | --libd=*)
  1001. libdir=$ac_optarg ;;
  1002. -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
  1003. | --libexe | --libex | --libe)
  1004. ac_prev=libexecdir ;;
  1005. -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
  1006. | --libexe=* | --libex=* | --libe=*)
  1007. libexecdir=$ac_optarg ;;
  1008. -localedir | --localedir | --localedi | --localed | --locale)
  1009. ac_prev=localedir ;;
  1010. -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
  1011. localedir=$ac_optarg ;;
  1012. -localstatedir | --localstatedir | --localstatedi | --localstated \
  1013. | --localstate | --localstat | --localsta | --localst | --locals)
  1014. ac_prev=localstatedir ;;
  1015. -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
  1016. | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
  1017. localstatedir=$ac_optarg ;;
  1018. -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
  1019. ac_prev=mandir ;;
  1020. -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
  1021. mandir=$ac_optarg ;;
  1022. -nfp | --nfp | --nf)
  1023. # Obsolete; use --without-fp.
  1024. with_fp=no ;;
  1025. -no-create | --no-create | --no-creat | --no-crea | --no-cre \
  1026. | --no-cr | --no-c | -n)
  1027. no_create=yes ;;
  1028. -no-recursion | --no-recursion | --no-recursio | --no-recursi \
  1029. | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
  1030. no_recursion=yes ;;
  1031. -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
  1032. | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
  1033. | --oldin | --oldi | --old | --ol | --o)
  1034. ac_prev=oldincludedir ;;
  1035. -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
  1036. | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
  1037. | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
  1038. oldincludedir=$ac_optarg ;;
  1039. -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
  1040. ac_prev=prefix ;;
  1041. -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
  1042. prefix=$ac_optarg ;;
  1043. -program-prefix | --program-prefix | --program-prefi | --program-pref \
  1044. | --program-pre | --program-pr | --program-p)
  1045. ac_prev=program_prefix ;;
  1046. -program-prefix=* | --program-prefix=* | --program-prefi=* \
  1047. | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
  1048. program_prefix=$ac_optarg ;;
  1049. -program-suffix | --program-suffix | --program-suffi | --program-suff \
  1050. | --program-suf | --program-su | --program-s)
  1051. ac_prev=program_suffix ;;
  1052. -program-suffix=* | --program-suffix=* | --program-suffi=* \
  1053. | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
  1054. program_suffix=$ac_optarg ;;
  1055. -program-transform-name | --program-transform-name \
  1056. | --program-transform-nam | --program-transform-na \
  1057. | --program-transform-n | --program-transform- \
  1058. | --program-transform | --program-transfor \
  1059. | --program-transfo | --program-transf \
  1060. | --program-trans | --program-tran \
  1061. | --progr-tra | --program-tr | --program-t)
  1062. ac_prev=program_transform_name ;;
  1063. -program-transform-name=* | --program-transform-name=* \
  1064. | --program-transform-nam=* | --program-transform-na=* \
  1065. | --program-transform-n=* | --program-transform-=* \
  1066. | --program-transform=* | --program-transfor=* \
  1067. | --program-transfo=* | --program-transf=* \
  1068. | --program-trans=* | --program-tran=* \
  1069. | --progr-tra=* | --program-tr=* | --program-t=*)
  1070. program_transform_name=$ac_optarg ;;
  1071. -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
  1072. ac_prev=pdfdir ;;
  1073. -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
  1074. pdfdir=$ac_optarg ;;
  1075. -psdir | --psdir | --psdi | --psd | --ps)
  1076. ac_prev=psdir ;;
  1077. -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
  1078. psdir=$ac_optarg ;;
  1079. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  1080. | -silent | --silent | --silen | --sile | --sil)
  1081. silent=yes ;;
  1082. -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
  1083. ac_prev=sbindir ;;
  1084. -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
  1085. | --sbi=* | --sb=*)
  1086. sbindir=$ac_optarg ;;
  1087. -sharedstatedir | --sharedstatedir | --sharedstatedi \
  1088. | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
  1089. | --sharedst | --shareds | --shared | --share | --shar \
  1090. | --sha | --sh)
  1091. ac_prev=sharedstatedir ;;
  1092. -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
  1093. | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
  1094. | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
  1095. | --sha=* | --sh=*)
  1096. sharedstatedir=$ac_optarg ;;
  1097. -site | --site | --sit)
  1098. ac_prev=site ;;
  1099. -site=* | --site=* | --sit=*)
  1100. site=$ac_optarg ;;
  1101. -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
  1102. ac_prev=srcdir ;;
  1103. -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
  1104. srcdir=$ac_optarg ;;
  1105. -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
  1106. | --syscon | --sysco | --sysc | --sys | --sy)
  1107. ac_prev=sysconfdir ;;
  1108. -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
  1109. | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
  1110. sysconfdir=$ac_optarg ;;
  1111. -target | --target | --targe | --targ | --tar | --ta | --t)
  1112. ac_prev=target_alias ;;
  1113. -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
  1114. target_alias=$ac_optarg ;;
  1115. -v | -verbose | --verbose | --verbos | --verbo | --verb)
  1116. verbose=yes ;;
  1117. -version | --version | --versio | --versi | --vers | -V)
  1118. ac_init_version=: ;;
  1119. -with-* | --with-*)
  1120. ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
  1121. # Reject names that are not valid shell variable names.
  1122. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  1123. as_fn_error "invalid package name: $ac_useropt"
  1124. ac_useropt_orig=$ac_useropt
  1125. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  1126. case $ac_user_opts in
  1127. *"
  1128. "with_$ac_useropt"
  1129. "*) ;;
  1130. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
  1131. ac_unrecognized_sep=', ';;
  1132. esac
  1133. eval with_$ac_useropt=\$ac_optarg ;;
  1134. -without-* | --without-*)
  1135. ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
  1136. # Reject names that are not valid shell variable names.
  1137. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  1138. as_fn_error "invalid package name: $ac_useropt"
  1139. ac_useropt_orig=$ac_useropt
  1140. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  1141. case $ac_user_opts in
  1142. *"
  1143. "with_$ac_useropt"
  1144. "*) ;;
  1145. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
  1146. ac_unrecognized_sep=', ';;
  1147. esac
  1148. eval with_$ac_useropt=no ;;
  1149. --x)
  1150. # Obsolete; use --with-x.
  1151. with_x=yes ;;
  1152. -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
  1153. | --x-incl | --x-inc | --x-in | --x-i)
  1154. ac_prev=x_includes ;;
  1155. -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
  1156. | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
  1157. x_includes=$ac_optarg ;;
  1158. -x-libraries | --x-libraries | --x-librarie | --x-librari \
  1159. | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
  1160. ac_prev=x_libraries ;;
  1161. -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
  1162. | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
  1163. x_libraries=$ac_optarg ;;
  1164. -*) as_fn_error "unrecognized option: \`$ac_option'
  1165. Try \`$0 --help' for more information."
  1166. ;;
  1167. *=*)
  1168. ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
  1169. # Reject names that are not valid shell variable names.
  1170. case $ac_envvar in #(
  1171. '' | [0-9]* | *[!_$as_cr_alnum]* )
  1172. as_fn_error "invalid variable name: \`$ac_envvar'" ;;
  1173. esac
  1174. eval $ac_envvar=\$ac_optarg
  1175. export $ac_envvar ;;
  1176. *)
  1177. # FIXME: should be removed in autoconf 3.0.
  1178. $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
  1179. expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
  1180. $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
  1181. : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
  1182. ;;
  1183. esac
  1184. done
  1185. if test -n "$ac_prev"; then
  1186. ac_option=--`echo $ac_prev | sed 's/_/-/g'`
  1187. as_fn_error "missing argument to $ac_option"
  1188. fi
  1189. if test -n "$ac_unrecognized_opts"; then
  1190. case $enable_option_checking in
  1191. no) ;;
  1192. fatal) as_fn_error "unrecognized options: $ac_unrecognized_opts" ;;
  1193. *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
  1194. esac
  1195. fi
  1196. # Check all directory arguments for consistency.
  1197. for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
  1198. datadir sysconfdir sharedstatedir localstatedir includedir \
  1199. oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
  1200. libdir localedir mandir
  1201. do
  1202. eval ac_val=\$$ac_var
  1203. # Remove trailing slashes.
  1204. case $ac_val in
  1205. */ )
  1206. ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
  1207. eval $ac_var=\$ac_val;;
  1208. esac
  1209. # Be sure to have absolute directory names.
  1210. case $ac_val in
  1211. [\\/$]* | ?:[\\/]* ) continue;;
  1212. NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
  1213. esac
  1214. as_fn_error "expected an absolute directory name for --$ac_var: $ac_val"
  1215. done
  1216. # There might be people who depend on the old broken behavior: `$host'
  1217. # used to hold the argument of --host etc.
  1218. # FIXME: To remove some day.
  1219. build=$build_alias
  1220. host=$host_alias
  1221. target=$target_alias
  1222. # FIXME: To remove some day.
  1223. if test "x$host_alias" != x; then
  1224. if test "x$build_alias" = x; then
  1225. cross_compiling=maybe
  1226. $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
  1227. If a cross compiler is detected then cross compile mode will be used." >&2
  1228. elif test "x$build_alias" != "x$host_alias"; then
  1229. cross_compiling=yes
  1230. fi
  1231. fi
  1232. ac_tool_prefix=
  1233. test -n "$host_alias" && ac_tool_prefix=$host_alias-
  1234. test "$silent" = yes && exec 6>/dev/null
  1235. ac_pwd=`pwd` && test -n "$ac_pwd" &&
  1236. ac_ls_di=`ls -di .` &&
  1237. ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
  1238. as_fn_error "working directory cannot be determined"
  1239. test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
  1240. as_fn_error "pwd does not report name of working directory"
  1241. # Find the source files, if location was not specified.
  1242. if test -z "$srcdir"; then
  1243. ac_srcdir_defaulted=yes
  1244. # Try the directory containing this script, then the parent directory.
  1245. ac_confdir=`$as_dirname -- "$as_myself" ||
  1246. $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  1247. X"$as_myself" : 'X\(//\)[^/]' \| \
  1248. X"$as_myself" : 'X\(//\)$' \| \
  1249. X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
  1250. $as_echo X"$as_myself" |
  1251. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  1252. s//\1/
  1253. q
  1254. }
  1255. /^X\(\/\/\)[^/].*/{
  1256. s//\1/
  1257. q
  1258. }
  1259. /^X\(\/\/\)$/{
  1260. s//\1/
  1261. q
  1262. }
  1263. /^X\(\/\).*/{
  1264. s//\1/
  1265. q
  1266. }
  1267. s/.*/./; q'`
  1268. srcdir=$ac_confdir
  1269. if test ! -r "$srcdir/$ac_unique_file"; then
  1270. srcdir=..
  1271. fi
  1272. else
  1273. ac_srcdir_defaulted=no
  1274. fi
  1275. if test ! -r "$srcdir/$ac_unique_file"; then
  1276. test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
  1277. as_fn_error "cannot find sources ($ac_unique_file) in $srcdir"
  1278. fi
  1279. ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
  1280. ac_abs_confdir=`(
  1281. cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg"
  1282. pwd)`
  1283. # When building in place, set srcdir=.
  1284. if test "$ac_abs_confdir" = "$ac_pwd"; then
  1285. srcdir=.
  1286. fi
  1287. # Remove unnecessary trailing slashes from srcdir.
  1288. # Double slashes in file names in object file debugging info
  1289. # mess up M-x gdb in Emacs.
  1290. case $srcdir in
  1291. */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
  1292. esac
  1293. for ac_var in $ac_precious_vars; do
  1294. eval ac_env_${ac_var}_set=\${${ac_var}+set}
  1295. eval ac_env_${ac_var}_value=\$${ac_var}
  1296. eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
  1297. eval ac_cv_env_${ac_var}_value=\$${ac_var}
  1298. done
  1299. #
  1300. # Report the --help message.
  1301. #
  1302. if test "$ac_init_help" = "long"; then
  1303. # Omit some internal or obsolete options to make the list less imposing.
  1304. # This message is too long to be a string in the A/UX 3.1 sh.
  1305. cat <<_ACEOF
  1306. \`configure' configures aria2 1.7.1 to adapt to many kinds of systems.
  1307. Usage: $0 [OPTION]... [VAR=VALUE]...
  1308. To assign environment variables (e.g., CC, CFLAGS...), specify them as
  1309. VAR=VALUE. See below for descriptions of some of the useful variables.
  1310. Defaults for the options are specified in brackets.
  1311. Configuration:
  1312. -h, --help display this help and exit
  1313. --help=short display options specific to this package
  1314. --help=recursive display the short help of all the included packages
  1315. -V, --version display version information and exit
  1316. -q, --quiet, --silent do not print \`checking...' messages
  1317. --cache-file=FILE cache test results in FILE [disabled]
  1318. -C, --config-cache alias for \`--cache-file=config.cache'
  1319. -n, --no-create do not create output files
  1320. --srcdir=DIR find the sources in DIR [configure dir or \`..']
  1321. Installation directories:
  1322. --prefix=PREFIX install architecture-independent files in PREFIX
  1323. [$ac_default_prefix]
  1324. --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
  1325. [PREFIX]
  1326. By default, \`make install' will install all the files in
  1327. \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
  1328. an installation prefix other than \`$ac_default_prefix' using \`--prefix',
  1329. for instance \`--prefix=\$HOME'.
  1330. For better control, use the options below.
  1331. Fine tuning of the installation directories:
  1332. --bindir=DIR user executables [EPREFIX/bin]
  1333. --sbindir=DIR system admin executables [EPREFIX/sbin]
  1334. --libexecdir=DIR program executables [EPREFIX/libexec]
  1335. --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
  1336. --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
  1337. --localstatedir=DIR modifiable single-machine data [PREFIX/var]
  1338. --libdir=DIR object code libraries [EPREFIX/lib]
  1339. --includedir=DIR C header files [PREFIX/include]
  1340. --oldincludedir=DIR C header files for non-gcc [/usr/include]
  1341. --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
  1342. --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
  1343. --infodir=DIR info documentation [DATAROOTDIR/info]
  1344. --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
  1345. --mandir=DIR man documentation [DATAROOTDIR/man]
  1346. --docdir=DIR documentation root [DATAROOTDIR/doc/aria2]
  1347. --htmldir=DIR html documentation [DOCDIR]
  1348. --dvidir=DIR dvi documentation [DOCDIR]
  1349. --pdfdir=DIR pdf documentation [DOCDIR]
  1350. --psdir=DIR ps documentation [DOCDIR]
  1351. _ACEOF
  1352. cat <<\_ACEOF
  1353. Program names:
  1354. --program-prefix=PREFIX prepend PREFIX to installed program names
  1355. --program-suffix=SUFFIX append SUFFIX to installed program names
  1356. --program-transform-name=PROGRAM run sed PROGRAM on installed program names
  1357. System types:
  1358. --build=BUILD configure for building on BUILD [guessed]
  1359. --host=HOST cross-compile to build programs to run on HOST [BUILD]
  1360. --target=TARGET configure for building compilers for TARGET [HOST]
  1361. _ACEOF
  1362. fi
  1363. if test -n "$ac_init_help"; then
  1364. case $ac_init_help in
  1365. short | recursive ) echo "Configuration of aria2 1.7.1:";;
  1366. esac
  1367. cat <<\_ACEOF
  1368. Optional Features:
  1369. --disable-option-checking ignore unrecognized --enable/--with options
  1370. --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
  1371. --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
  1372. --enable-bittorrent Enable bittorrent support.
  1373. --enable-metalink Enable metalink support.
  1374. --enable-epoll Enable epoll support.
  1375. --disable-dependency-tracking speeds up one-time build
  1376. --enable-dependency-tracking do not reject slow dependency extractors
  1377. --disable-xmltest Do not try to compile and run a test LIBXML program
  1378. --disable-largefile omit support for large files
  1379. --disable-nls do not use Native Language Support
  1380. --enable-threads={posix|solaris|pth|win32}
  1381. specify multithreading API
  1382. --disable-threads build without multithread safety
  1383. --disable-rpath do not hardcode runtime library paths
  1384. Optional Packages:
  1385. --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
  1386. --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
  1387. --with-cppunit-prefix=PFX Prefix where CppUnit is installed (optional)
  1388. --with-cppunit-exec-prefix=PFX Exec prefix where CppUnit is installed (optional)
  1389. --with-gnutls Use gnutls if it is installed.
  1390. --with-openssl Use openssl if it is installed.
  1391. --with-sqlite3 Use sqlite3 if it is installed.
  1392. --with-libxml2 Use libxml2 if it is installed.
  1393. --with-libexpat Use libexpat if it is installed.
  1394. --with-libcares Use libcares if it is installed.
  1395. --with-libz Use libz if it is installed.
  1396. --with-ca-bundle=FILE Use FILE as default CA bundle.
  1397. --with-xml-prefix=PFX Prefix where libxml is installed (optional)
  1398. --with-xml-exec-prefix=PFX Exec prefix where libxml is installed (optional)
  1399. --with-libexpat-prefix=PREFIX Prefix where libexpat installed (optional)
  1400. --with-sqlite3-prefix=PREFIX Prefix where SQLite3 installed (optional)
  1401. --with-libgnutls-prefix=PFX Prefix where libgnutls is installed (optional)
  1402. --with-libgcrypt-prefix=PFX
  1403. prefix where LIBGCRYPT is installed (optional)
  1404. --with-openssl-prefix=PREFIX Prefix where OpenSSL installed (optional)
  1405. --with-libcares-prefix=PREFIX Prefix where libcares installed (optional)
  1406. --with-libz-prefix=PREFIX Prefix where libz installed (optional)
  1407. --with-gnu-ld assume the C compiler uses GNU ld default=no
  1408. --with-libpth-prefix[=DIR] search for libpth in DIR/include and DIR/lib
  1409. --without-libpth-prefix don't search for libpth in includedir and libdir
  1410. --with-libiconv-prefix[=DIR] search for libiconv in DIR/include and DIR/lib
  1411. --without-libiconv-prefix don't search for libiconv in includedir and libdir
  1412. --with-included-gettext use the GNU gettext library included here
  1413. --with-libintl-prefix[=DIR] search for libintl in DIR/include and DIR/lib
  1414. --without-libintl-prefix don't search for libintl in includedir and libdir
  1415. Some influential environment variables:
  1416. CXX C++ compiler command
  1417. CXXFLAGS C++ compiler flags
  1418. LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
  1419. nonstandard directory <lib dir>
  1420. LIBS libraries to pass to the linker, e.g. -l<library>
  1421. CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
  1422. you have headers in a nonstandard directory <include dir>
  1423. CC C compiler command
  1424. CFLAGS C compiler flags
  1425. YACC The `Yet Another C Compiler' implementation to use. Defaults to
  1426. the first program found out of: `bison -y', `byacc', `yacc'.
  1427. YFLAGS The list of arguments that will be passed by default to $YACC.
  1428. This script will default YFLAGS to the empty string to avoid a
  1429. default value of `-d' given by some make applications.
  1430. CXXCPP C++ preprocessor
  1431. PKG_CONFIG path to pkg-config utility
  1432. SQLITE3_CFLAGS
  1433. C compiler flags for SQLITE3, overriding pkg-config
  1434. SQLITE3_LIBS
  1435. linker flags for SQLITE3, overriding pkg-config
  1436. LIBGNUTLS_CFLAGS
  1437. C compiler flags for LIBGNUTLS, overriding pkg-config
  1438. LIBGNUTLS_LIBS
  1439. linker flags for LIBGNUTLS, overriding pkg-config
  1440. Use these variables to override the choices made by `configure' or to help
  1441. it to find libraries and programs with nonstandard names/locations.
  1442. Report bugs to <t-tujikawa@users.sourceforge.net>.
  1443. aria2 home page: <http://aria2.sourceforge.net/>.
  1444. _ACEOF
  1445. ac_status=$?
  1446. fi
  1447. if test "$ac_init_help" = "recursive"; then
  1448. # If there are subdirs, report their specific --help.
  1449. for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
  1450. test -d "$ac_dir" ||
  1451. { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
  1452. continue
  1453. ac_builddir=.
  1454. case "$ac_dir" in
  1455. .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
  1456. *)
  1457. ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
  1458. # A ".." for each directory in $ac_dir_suffix.
  1459. ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
  1460. case $ac_top_builddir_sub in
  1461. "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
  1462. *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
  1463. esac ;;
  1464. esac
  1465. ac_abs_top_builddir=$ac_pwd
  1466. ac_abs_builddir=$ac_pwd$ac_dir_suffix
  1467. # for backward compatibility:
  1468. ac_top_builddir=$ac_top_build_prefix
  1469. case $srcdir in
  1470. .) # We are building in place.
  1471. ac_srcdir=.
  1472. ac_top_srcdir=$ac_top_builddir_sub
  1473. ac_abs_top_srcdir=$ac_pwd ;;
  1474. [\\/]* | ?:[\\/]* ) # Absolute name.
  1475. ac_srcdir=$srcdir$ac_dir_suffix;
  1476. ac_top_srcdir=$srcdir
  1477. ac_abs_top_srcdir=$srcdir ;;
  1478. *) # Relative name.
  1479. ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
  1480. ac_top_srcdir=$ac_top_build_prefix$srcdir
  1481. ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
  1482. esac
  1483. ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
  1484. cd "$ac_dir" || { ac_status=$?; continue; }
  1485. # Check for guested configure.
  1486. if test -f "$ac_srcdir/configure.gnu"; then
  1487. echo &&
  1488. $SHELL "$ac_srcdir/configure.gnu" --help=recursive
  1489. elif test -f "$ac_srcdir/configure"; then
  1490. echo &&
  1491. $SHELL "$ac_srcdir/configure" --help=recursive
  1492. else
  1493. $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
  1494. fi || ac_status=$?
  1495. cd "$ac_pwd" || { ac_status=$?; break; }
  1496. done
  1497. fi
  1498. test -n "$ac_init_help" && exit $ac_status
  1499. if $ac_init_version; then
  1500. cat <<\_ACEOF
  1501. aria2 configure 1.7.1
  1502. generated by GNU Autoconf 2.64
  1503. Copyright (C) 2009 Free Software Foundation, Inc.
  1504. This configure script is free software; the Free Software Foundation
  1505. gives unlimited permission to copy, distribute and modify it.
  1506. _ACEOF
  1507. exit
  1508. fi
  1509. ## ------------------------ ##
  1510. ## Autoconf initialization. ##
  1511. ## ------------------------ ##
  1512. # ac_fn_cxx_try_compile LINENO
  1513. # ----------------------------
  1514. # Try to compile conftest.$ac_ext, and return whether this succeeded.
  1515. ac_fn_cxx_try_compile ()
  1516. {
  1517. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1518. rm -f conftest.$ac_objext
  1519. if { { ac_try="$ac_compile"
  1520. case "(($ac_try" in
  1521. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1522. *) ac_try_echo=$ac_try;;
  1523. esac
  1524. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1525. $as_echo "$ac_try_echo"; } >&5
  1526. (eval "$ac_compile") 2>conftest.err
  1527. ac_status=$?
  1528. if test -s conftest.err; then
  1529. grep -v '^ *+' conftest.err >conftest.er1
  1530. cat conftest.er1 >&5
  1531. mv -f conftest.er1 conftest.err
  1532. fi
  1533. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1534. test $ac_status = 0; } && {
  1535. test -z "$ac_cxx_werror_flag" ||
  1536. test ! -s conftest.err
  1537. } && test -s conftest.$ac_objext; then :
  1538. ac_retval=0
  1539. else
  1540. $as_echo "$as_me: failed program was:" >&5
  1541. sed 's/^/| /' conftest.$ac_ext >&5
  1542. ac_retval=1
  1543. fi
  1544. eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
  1545. return $ac_retval
  1546. } # ac_fn_cxx_try_compile
  1547. # ac_fn_c_try_compile LINENO
  1548. # --------------------------
  1549. # Try to compile conftest.$ac_ext, and return whether this succeeded.
  1550. ac_fn_c_try_compile ()
  1551. {
  1552. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1553. rm -f conftest.$ac_objext
  1554. if { { ac_try="$ac_compile"
  1555. case "(($ac_try" in
  1556. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1557. *) ac_try_echo=$ac_try;;
  1558. esac
  1559. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1560. $as_echo "$ac_try_echo"; } >&5
  1561. (eval "$ac_compile") 2>conftest.err
  1562. ac_status=$?
  1563. if test -s conftest.err; then
  1564. grep -v '^ *+' conftest.err >conftest.er1
  1565. cat conftest.er1 >&5
  1566. mv -f conftest.er1 conftest.err
  1567. fi
  1568. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1569. test $ac_status = 0; } && {
  1570. test -z "$ac_c_werror_flag" ||
  1571. test ! -s conftest.err
  1572. } && test -s conftest.$ac_objext; then :
  1573. ac_retval=0
  1574. else
  1575. $as_echo "$as_me: failed program was:" >&5
  1576. sed 's/^/| /' conftest.$ac_ext >&5
  1577. ac_retval=1
  1578. fi
  1579. eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
  1580. return $ac_retval
  1581. } # ac_fn_c_try_compile
  1582. # ac_fn_cxx_try_cpp LINENO
  1583. # ------------------------
  1584. # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
  1585. ac_fn_cxx_try_cpp ()
  1586. {
  1587. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1588. if { { ac_try="$ac_cpp conftest.$ac_ext"
  1589. case "(($ac_try" in
  1590. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1591. *) ac_try_echo=$ac_try;;
  1592. esac
  1593. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1594. $as_echo "$ac_try_echo"; } >&5
  1595. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
  1596. ac_status=$?
  1597. if test -s conftest.err; then
  1598. grep -v '^ *+' conftest.err >conftest.er1
  1599. cat conftest.er1 >&5
  1600. mv -f conftest.er1 conftest.err
  1601. fi
  1602. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1603. test $ac_status = 0; } >/dev/null && {
  1604. test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
  1605. test ! -s conftest.err
  1606. }; then :
  1607. ac_retval=0
  1608. else
  1609. $as_echo "$as_me: failed program was:" >&5
  1610. sed 's/^/| /' conftest.$ac_ext >&5
  1611. ac_retval=1
  1612. fi
  1613. eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
  1614. return $ac_retval
  1615. } # ac_fn_cxx_try_cpp
  1616. # ac_fn_cxx_check_header_mongrel LINENO HEADER VAR INCLUDES
  1617. # ---------------------------------------------------------
  1618. # Tests whether HEADER exists, giving a warning if it cannot be compiled using
  1619. # the include files in INCLUDES and setting the cache variable VAR
  1620. # accordingly.
  1621. ac_fn_cxx_check_header_mongrel ()
  1622. {
  1623. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1624. if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
  1625. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  1626. $as_echo_n "checking for $2... " >&6; }
  1627. if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
  1628. $as_echo_n "(cached) " >&6
  1629. fi
  1630. eval ac_res=\$$3
  1631. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1632. $as_echo "$ac_res" >&6; }
  1633. else
  1634. # Is the header compilable?
  1635. { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
  1636. $as_echo_n "checking $2 usability... " >&6; }
  1637. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1638. /* end confdefs.h. */
  1639. $4
  1640. #include <$2>
  1641. _ACEOF
  1642. if ac_fn_cxx_try_compile "$LINENO"; then :
  1643. ac_header_compiler=yes
  1644. else
  1645. ac_header_compiler=no
  1646. fi
  1647. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  1648. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
  1649. $as_echo "$ac_header_compiler" >&6; }
  1650. # Is the header present?
  1651. { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
  1652. $as_echo_n "checking $2 presence... " >&6; }
  1653. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1654. /* end confdefs.h. */
  1655. #include <$2>
  1656. _ACEOF
  1657. if ac_fn_cxx_try_cpp "$LINENO"; then :
  1658. ac_header_preproc=yes
  1659. else
  1660. ac_header_preproc=no
  1661. fi
  1662. rm -f conftest.err conftest.$ac_ext
  1663. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
  1664. $as_echo "$ac_header_preproc" >&6; }
  1665. # So? What about this header?
  1666. case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in #((
  1667. yes:no: )
  1668. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
  1669. $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
  1670. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
  1671. $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
  1672. ;;
  1673. no:yes:* )
  1674. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
  1675. $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
  1676. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
  1677. $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
  1678. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
  1679. $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
  1680. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
  1681. $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
  1682. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
  1683. $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
  1684. ( cat <<\_ASBOX
  1685. ## ----------------------------------------------- ##
  1686. ## Report this to t-tujikawa@users.sourceforge.net ##
  1687. ## ----------------------------------------------- ##
  1688. _ASBOX
  1689. ) | sed "s/^/$as_me: WARNING: /" >&2
  1690. ;;
  1691. esac
  1692. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  1693. $as_echo_n "checking for $2... " >&6; }
  1694. if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
  1695. $as_echo_n "(cached) " >&6
  1696. else
  1697. eval "$3=\$ac_header_compiler"
  1698. fi
  1699. eval ac_res=\$$3
  1700. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1701. $as_echo "$ac_res" >&6; }
  1702. fi
  1703. eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
  1704. } # ac_fn_cxx_check_header_mongrel
  1705. # ac_fn_cxx_try_run LINENO
  1706. # ------------------------
  1707. # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
  1708. # that executables *can* be run.
  1709. ac_fn_cxx_try_run ()
  1710. {
  1711. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1712. if { { ac_try="$ac_link"
  1713. case "(($ac_try" in
  1714. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1715. *) ac_try_echo=$ac_try;;
  1716. esac
  1717. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1718. $as_echo "$ac_try_echo"; } >&5
  1719. (eval "$ac_link") 2>&5
  1720. ac_status=$?
  1721. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1722. test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
  1723. { { case "(($ac_try" in
  1724. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1725. *) ac_try_echo=$ac_try;;
  1726. esac
  1727. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1728. $as_echo "$ac_try_echo"; } >&5
  1729. (eval "$ac_try") 2>&5
  1730. ac_status=$?
  1731. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1732. test $ac_status = 0; }; }; then :
  1733. ac_retval=0
  1734. else
  1735. $as_echo "$as_me: program exited with status $ac_status" >&5
  1736. $as_echo "$as_me: failed program was:" >&5
  1737. sed 's/^/| /' conftest.$ac_ext >&5
  1738. ac_retval=$ac_status
  1739. fi
  1740. rm -rf conftest.dSYM conftest_ipa8_conftest.oo
  1741. eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
  1742. return $ac_retval
  1743. } # ac_fn_cxx_try_run
  1744. # ac_fn_cxx_check_header_compile LINENO HEADER VAR INCLUDES
  1745. # ---------------------------------------------------------
  1746. # Tests whether HEADER exists and can be compiled using the include files in
  1747. # INCLUDES, setting the cache variable VAR accordingly.
  1748. ac_fn_cxx_check_header_compile ()
  1749. {
  1750. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1751. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  1752. $as_echo_n "checking for $2... " >&6; }
  1753. if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
  1754. $as_echo_n "(cached) " >&6
  1755. else
  1756. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1757. /* end confdefs.h. */
  1758. $4
  1759. #include <$2>
  1760. _ACEOF
  1761. if ac_fn_cxx_try_compile "$LINENO"; then :
  1762. eval "$3=yes"
  1763. else
  1764. eval "$3=no"
  1765. fi
  1766. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  1767. fi
  1768. eval ac_res=\$$3
  1769. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1770. $as_echo "$ac_res" >&6; }
  1771. eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
  1772. } # ac_fn_cxx_check_header_compile
  1773. # ac_fn_cxx_try_link LINENO
  1774. # -------------------------
  1775. # Try to link conftest.$ac_ext, and return whether this succeeded.
  1776. ac_fn_cxx_try_link ()
  1777. {
  1778. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1779. rm -f conftest.$ac_objext conftest$ac_exeext
  1780. if { { ac_try="$ac_link"
  1781. case "(($ac_try" in
  1782. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1783. *) ac_try_echo=$ac_try;;
  1784. esac
  1785. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1786. $as_echo "$ac_try_echo"; } >&5
  1787. (eval "$ac_link") 2>conftest.err
  1788. ac_status=$?
  1789. if test -s conftest.err; then
  1790. grep -v '^ *+' conftest.err >conftest.er1
  1791. cat conftest.er1 >&5
  1792. mv -f conftest.er1 conftest.err
  1793. fi
  1794. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1795. test $ac_status = 0; } && {
  1796. test -z "$ac_cxx_werror_flag" ||
  1797. test ! -s conftest.err
  1798. } && test -s conftest$ac_exeext && {
  1799. test "$cross_compiling" = yes ||
  1800. $as_test_x conftest$ac_exeext
  1801. }; then :
  1802. ac_retval=0
  1803. else
  1804. $as_echo "$as_me: failed program was:" >&5
  1805. sed 's/^/| /' conftest.$ac_ext >&5
  1806. ac_retval=1
  1807. fi
  1808. # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
  1809. # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
  1810. # interfere with the next link command; also delete a directory that is
  1811. # left behind by Apple's compiler. We do this before executing the actions.
  1812. rm -rf conftest.dSYM conftest_ipa8_conftest.oo
  1813. eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
  1814. return $ac_retval
  1815. } # ac_fn_cxx_try_link
  1816. # ac_fn_cxx_check_func LINENO FUNC VAR
  1817. # ------------------------------------
  1818. # Tests whether FUNC exists, setting the cache variable VAR accordingly
  1819. ac_fn_cxx_check_func ()
  1820. {
  1821. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1822. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  1823. $as_echo_n "checking for $2... " >&6; }
  1824. if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
  1825. $as_echo_n "(cached) " >&6
  1826. else
  1827. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1828. /* end confdefs.h. */
  1829. /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
  1830. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  1831. #define $2 innocuous_$2
  1832. /* System header to define __stub macros and hopefully few prototypes,
  1833. which can conflict with char $2 (); below.
  1834. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  1835. <limits.h> exists even on freestanding compilers. */
  1836. #ifdef __STDC__
  1837. # include <limits.h>
  1838. #else
  1839. # include <assert.h>
  1840. #endif
  1841. #undef $2
  1842. /* Override any GCC internal prototype to avoid an error.
  1843. Use char because int might match the return type of a GCC
  1844. builtin and then its argument prototype would still apply. */
  1845. #ifdef __cplusplus
  1846. extern "C"
  1847. #endif
  1848. char $2 ();
  1849. /* The GNU C library defines this for functions which it implements
  1850. to always fail with ENOSYS. Some functions are actually named
  1851. something starting with __ and the normal name is an alias. */
  1852. #if defined __stub_$2 || defined __stub___$2
  1853. choke me
  1854. #endif
  1855. int
  1856. main ()
  1857. {
  1858. return $2 ();
  1859. ;
  1860. return 0;
  1861. }
  1862. _ACEOF
  1863. if ac_fn_cxx_try_link "$LINENO"; then :
  1864. eval "$3=yes"
  1865. else
  1866. eval "$3=no"
  1867. fi
  1868. rm -f core conftest.err conftest.$ac_objext \
  1869. conftest$ac_exeext conftest.$ac_ext
  1870. fi
  1871. eval ac_res=\$$3
  1872. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1873. $as_echo "$ac_res" >&6; }
  1874. eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
  1875. } # ac_fn_cxx_check_func
  1876. # ac_fn_cxx_check_type LINENO TYPE VAR INCLUDES
  1877. # ---------------------------------------------
  1878. # Tests whether TYPE exists after having included INCLUDES, setting cache
  1879. # variable VAR accordingly.
  1880. ac_fn_cxx_check_type ()
  1881. {
  1882. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1883. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  1884. $as_echo_n "checking for $2... " >&6; }
  1885. if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
  1886. $as_echo_n "(cached) " >&6
  1887. else
  1888. eval "$3=no"
  1889. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1890. /* end confdefs.h. */
  1891. $4
  1892. int
  1893. main ()
  1894. {
  1895. if (sizeof ($2))
  1896. return 0;
  1897. ;
  1898. return 0;
  1899. }
  1900. _ACEOF
  1901. if ac_fn_cxx_try_compile "$LINENO"; then :
  1902. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1903. /* end confdefs.h. */
  1904. $4
  1905. int
  1906. main ()
  1907. {
  1908. if (sizeof (($2)))
  1909. return 0;
  1910. ;
  1911. return 0;
  1912. }
  1913. _ACEOF
  1914. if ac_fn_cxx_try_compile "$LINENO"; then :
  1915. else
  1916. eval "$3=yes"
  1917. fi
  1918. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  1919. fi
  1920. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  1921. fi
  1922. eval ac_res=\$$3
  1923. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1924. $as_echo "$ac_res" >&6; }
  1925. eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
  1926. } # ac_fn_cxx_check_type
  1927. # ac_fn_c_find_intX_t LINENO BITS VAR
  1928. # -----------------------------------
  1929. # Finds a signed integer type with width BITS, setting cache variable VAR
  1930. # accordingly.
  1931. ac_fn_c_find_intX_t ()
  1932. {
  1933. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1934. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for int$2_t" >&5
  1935. $as_echo_n "checking for int$2_t... " >&6; }
  1936. if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
  1937. $as_echo_n "(cached) " >&6
  1938. else
  1939. eval "$3=no"
  1940. for ac_type in int$2_t 'int' 'long int' \
  1941. 'long long int' 'short int' 'signed char'; do
  1942. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1943. /* end confdefs.h. */
  1944. $ac_includes_default
  1945. int
  1946. main ()
  1947. {
  1948. static int test_array [1 - 2 * !(0 < ($ac_type) (((($ac_type) 1 << ($2 - 2)) - 1) * 2 + 1))];
  1949. test_array [0] = 0
  1950. ;
  1951. return 0;
  1952. }
  1953. _ACEOF
  1954. if ac_fn_cxx_try_compile "$LINENO"; then :
  1955. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1956. /* end confdefs.h. */
  1957. $ac_includes_default
  1958. int
  1959. main ()
  1960. {
  1961. static int test_array [1 - 2 * !(($ac_type) (((($ac_type) 1 << ($2 - 2)) - 1) * 2 + 1)
  1962. < ($ac_type) (((($ac_type) 1 << ($2 - 2)) - 1) * 2 + 2))];
  1963. test_array [0] = 0
  1964. ;
  1965. return 0;
  1966. }
  1967. _ACEOF
  1968. if ac_fn_cxx_try_compile "$LINENO"; then :
  1969. else
  1970. case $ac_type in #(
  1971. int$2_t) :
  1972. eval "$3=yes" ;; #(
  1973. *) :
  1974. eval "$3=\$ac_type" ;;
  1975. esac
  1976. fi
  1977. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  1978. fi
  1979. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  1980. eval as_val=\$$3
  1981. if test "x$as_val" = x""no; then :
  1982. else
  1983. break
  1984. fi
  1985. done
  1986. fi
  1987. eval ac_res=\$$3
  1988. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1989. $as_echo "$ac_res" >&6; }
  1990. eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
  1991. } # ac_fn_c_find_intX_t
  1992. # ac_fn_c_find_uintX_t LINENO BITS VAR
  1993. # ------------------------------------
  1994. # Finds an unsigned integer type with width BITS, setting cache variable VAR
  1995. # accordingly.
  1996. ac_fn_c_find_uintX_t ()
  1997. {
  1998. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1999. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uint$2_t" >&5
  2000. $as_echo_n "checking for uint$2_t... " >&6; }
  2001. if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
  2002. $as_echo_n "(cached) " >&6
  2003. else
  2004. eval "$3=no"
  2005. for ac_type in uint$2_t 'unsigned int' 'unsigned long int' \
  2006. 'unsigned long long int' 'unsigned short int' 'unsigned char'; do
  2007. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2008. /* end confdefs.h. */
  2009. $ac_includes_default
  2010. int
  2011. main ()
  2012. {
  2013. static int test_array [1 - 2 * !(($ac_type) -1 >> ($2 - 1) == 1)];
  2014. test_array [0] = 0
  2015. ;
  2016. return 0;
  2017. }
  2018. _ACEOF
  2019. if ac_fn_cxx_try_compile "$LINENO"; then :
  2020. case $ac_type in #(
  2021. uint$2_t) :
  2022. eval "$3=yes" ;; #(
  2023. *) :
  2024. eval "$3=\$ac_type" ;;
  2025. esac
  2026. fi
  2027. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  2028. eval as_val=\$$3
  2029. if test "x$as_val" = x""no; then :
  2030. else
  2031. break
  2032. fi
  2033. done
  2034. fi
  2035. eval ac_res=\$$3
  2036. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  2037. $as_echo "$ac_res" >&6; }
  2038. eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
  2039. } # ac_fn_c_find_uintX_t
  2040. # ac_fn_cxx_compute_int LINENO EXPR VAR INCLUDES
  2041. # ----------------------------------------------
  2042. # Tries to find the compile-time value of EXPR in a program that includes
  2043. # INCLUDES, setting VAR accordingly. Returns whether the value could be
  2044. # computed
  2045. ac_fn_cxx_compute_int ()
  2046. {
  2047. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  2048. if test "$cross_compiling" = yes; then
  2049. # Depending upon the size, compute the lo and hi bounds.
  2050. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2051. /* end confdefs.h. */
  2052. $4
  2053. int
  2054. main ()
  2055. {
  2056. static int test_array [1 - 2 * !(($2) >= 0)];
  2057. test_array [0] = 0
  2058. ;
  2059. return 0;
  2060. }
  2061. _ACEOF
  2062. if ac_fn_cxx_try_compile "$LINENO"; then :
  2063. ac_lo=0 ac_mid=0
  2064. while :; do
  2065. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2066. /* end confdefs.h. */
  2067. $4
  2068. int
  2069. main ()
  2070. {
  2071. static int test_array [1 - 2 * !(($2) <= $ac_mid)];
  2072. test_array [0] = 0
  2073. ;
  2074. return 0;
  2075. }
  2076. _ACEOF
  2077. if ac_fn_cxx_try_compile "$LINENO"; then :
  2078. ac_hi=$ac_mid; break
  2079. else
  2080. as_fn_arith $ac_mid + 1 && ac_lo=$as_val
  2081. if test $ac_lo -le $ac_mid; then
  2082. ac_lo= ac_hi=
  2083. break
  2084. fi
  2085. as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
  2086. fi
  2087. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  2088. done
  2089. else
  2090. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2091. /* end confdefs.h. */
  2092. $4
  2093. int
  2094. main ()
  2095. {
  2096. static int test_array [1 - 2 * !(($2) < 0)];
  2097. test_array [0] = 0
  2098. ;
  2099. return 0;
  2100. }
  2101. _ACEOF
  2102. if ac_fn_cxx_try_compile "$LINENO"; then :
  2103. ac_hi=-1 ac_mid=-1
  2104. while :; do
  2105. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2106. /* end confdefs.h. */
  2107. $4
  2108. int
  2109. main ()
  2110. {
  2111. static int test_array [1 - 2 * !(($2) >= $ac_mid)];
  2112. test_array [0] = 0
  2113. ;
  2114. return 0;
  2115. }
  2116. _ACEOF
  2117. if ac_fn_cxx_try_compile "$LINENO"; then :
  2118. ac_lo=$ac_mid; break
  2119. else
  2120. as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
  2121. if test $ac_mid -le $ac_hi; then
  2122. ac_lo= ac_hi=
  2123. break
  2124. fi
  2125. as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
  2126. fi
  2127. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  2128. done
  2129. else
  2130. ac_lo= ac_hi=
  2131. fi
  2132. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  2133. fi
  2134. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  2135. # Binary search between lo and hi bounds.
  2136. while test "x$ac_lo" != "x$ac_hi"; do
  2137. as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
  2138. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2139. /* end confdefs.h. */
  2140. $4
  2141. int
  2142. main ()
  2143. {
  2144. static int test_array [1 - 2 * !(($2) <= $ac_mid)];
  2145. test_array [0] = 0
  2146. ;
  2147. return 0;
  2148. }
  2149. _ACEOF
  2150. if ac_fn_cxx_try_compile "$LINENO"; then :
  2151. ac_hi=$ac_mid
  2152. else
  2153. as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
  2154. fi
  2155. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  2156. done
  2157. case $ac_lo in #((
  2158. ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
  2159. '') ac_retval=1 ;;
  2160. esac
  2161. else
  2162. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2163. /* end confdefs.h. */
  2164. $4
  2165. static long int longval () { return $2; }
  2166. static unsigned long int ulongval () { return $2; }
  2167. #include <stdio.h>
  2168. #include <stdlib.h>
  2169. int
  2170. main ()
  2171. {
  2172. FILE *f = fopen ("conftest.val", "w");
  2173. if (! f)
  2174. return 1;
  2175. if (($2) < 0)
  2176. {
  2177. long int i = longval ();
  2178. if (i != ($2))
  2179. return 1;
  2180. fprintf (f, "%ld", i);
  2181. }
  2182. else
  2183. {
  2184. unsigned long int i = ulongval ();
  2185. if (i != ($2))
  2186. return 1;
  2187. fprintf (f, "%lu", i);
  2188. }
  2189. /* Do not output a trailing newline, as this causes \r\n confusion
  2190. on some platforms. */
  2191. return ferror (f) || fclose (f) != 0;
  2192. ;
  2193. return 0;
  2194. }
  2195. _ACEOF
  2196. if ac_fn_cxx_try_run "$LINENO"; then :
  2197. echo >>conftest.val; read $3 <conftest.val; ac_retval=0
  2198. else
  2199. ac_retval=1
  2200. fi
  2201. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  2202. conftest.$ac_objext conftest.beam conftest.$ac_ext
  2203. rm -f conftest.val
  2204. fi
  2205. eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
  2206. return $ac_retval
  2207. } # ac_fn_cxx_compute_int
  2208. # ac_fn_cxx_check_member LINENO AGGR MEMBER VAR INCLUDES
  2209. # ------------------------------------------------------
  2210. # Tries to find if the field MEMBER exists in type AGGR, after including
  2211. # INCLUDES, setting cache variable VAR accordingly.
  2212. ac_fn_cxx_check_member ()
  2213. {
  2214. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  2215. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
  2216. $as_echo_n "checking for $2.$3... " >&6; }
  2217. if { as_var=$4; eval "test \"\${$as_var+set}\" = set"; }; then :
  2218. $as_echo_n "(cached) " >&6
  2219. else
  2220. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2221. /* end confdefs.h. */
  2222. $5
  2223. int
  2224. main ()
  2225. {
  2226. static $2 ac_aggr;
  2227. if (ac_aggr.$3)
  2228. return 0;
  2229. ;
  2230. return 0;
  2231. }
  2232. _ACEOF
  2233. if ac_fn_cxx_try_compile "$LINENO"; then :
  2234. eval "$4=yes"
  2235. else
  2236. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2237. /* end confdefs.h. */
  2238. $5
  2239. int
  2240. main ()
  2241. {
  2242. static $2 ac_aggr;
  2243. if (sizeof ac_aggr.$3)
  2244. return 0;
  2245. ;
  2246. return 0;
  2247. }
  2248. _ACEOF
  2249. if ac_fn_cxx_try_compile "$LINENO"; then :
  2250. eval "$4=yes"
  2251. else
  2252. eval "$4=no"
  2253. fi
  2254. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  2255. fi
  2256. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  2257. fi
  2258. eval ac_res=\$$4
  2259. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  2260. $as_echo "$ac_res" >&6; }
  2261. eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
  2262. } # ac_fn_cxx_check_member
  2263. cat >config.log <<_ACEOF
  2264. This file contains any messages produced by compilers while
  2265. running configure, to aid debugging if configure makes a mistake.
  2266. It was created by aria2 $as_me 1.7.1, which was
  2267. generated by GNU Autoconf 2.64. Invocation command line was
  2268. $ $0 $@
  2269. _ACEOF
  2270. exec 5>>config.log
  2271. {
  2272. cat <<_ASUNAME
  2273. ## --------- ##
  2274. ## Platform. ##
  2275. ## --------- ##
  2276. hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
  2277. uname -m = `(uname -m) 2>/dev/null || echo unknown`
  2278. uname -r = `(uname -r) 2>/dev/null || echo unknown`
  2279. uname -s = `(uname -s) 2>/dev/null || echo unknown`
  2280. uname -v = `(uname -v) 2>/dev/null || echo unknown`
  2281. /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
  2282. /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
  2283. /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
  2284. /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
  2285. /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
  2286. /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
  2287. /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
  2288. /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
  2289. /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
  2290. _ASUNAME
  2291. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2292. for as_dir in $PATH
  2293. do
  2294. IFS=$as_save_IFS
  2295. test -z "$as_dir" && as_dir=.
  2296. $as_echo "PATH: $as_dir"
  2297. done
  2298. IFS=$as_save_IFS
  2299. } >&5
  2300. cat >&5 <<_ACEOF
  2301. ## ----------- ##
  2302. ## Core tests. ##
  2303. ## ----------- ##
  2304. _ACEOF
  2305. # Keep a trace of the command line.
  2306. # Strip out --no-create and --no-recursion so they do not pile up.
  2307. # Strip out --silent because we don't want to record it for future runs.
  2308. # Also quote any args containing shell meta-characters.
  2309. # Make two passes to allow for proper duplicate-argument suppression.
  2310. ac_configure_args=
  2311. ac_configure_args0=
  2312. ac_configure_args1=
  2313. ac_must_keep_next=false
  2314. for ac_pass in 1 2
  2315. do
  2316. for ac_arg
  2317. do
  2318. case $ac_arg in
  2319. -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
  2320. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  2321. | -silent | --silent | --silen | --sile | --sil)
  2322. continue ;;
  2323. *\'*)
  2324. ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
  2325. esac
  2326. case $ac_pass in
  2327. 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
  2328. 2)
  2329. as_fn_append ac_configure_args1 " '$ac_arg'"
  2330. if test $ac_must_keep_next = true; then
  2331. ac_must_keep_next=false # Got value, back to normal.
  2332. else
  2333. case $ac_arg in
  2334. *=* | --config-cache | -C | -disable-* | --disable-* \
  2335. | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
  2336. | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
  2337. | -with-* | --with-* | -without-* | --without-* | --x)
  2338. case "$ac_configure_args0 " in
  2339. "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
  2340. esac
  2341. ;;
  2342. -* ) ac_must_keep_next=true ;;
  2343. esac
  2344. fi
  2345. as_fn_append ac_configure_args " '$ac_arg'"
  2346. ;;
  2347. esac
  2348. done
  2349. done
  2350. { ac_configure_args0=; unset ac_configure_args0;}
  2351. { ac_configure_args1=; unset ac_configure_args1;}
  2352. # When interrupted or exit'd, cleanup temporary files, and complete
  2353. # config.log. We remove comments because anyway the quotes in there
  2354. # would cause problems or look ugly.
  2355. # WARNING: Use '\'' to represent an apostrophe within the trap.
  2356. # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
  2357. trap 'exit_status=$?
  2358. # Save into config.log some information that might help in debugging.
  2359. {
  2360. echo
  2361. cat <<\_ASBOX
  2362. ## ---------------- ##
  2363. ## Cache variables. ##
  2364. ## ---------------- ##
  2365. _ASBOX
  2366. echo
  2367. # The following way of writing the cache mishandles newlines in values,
  2368. (
  2369. for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
  2370. eval ac_val=\$$ac_var
  2371. case $ac_val in #(
  2372. *${as_nl}*)
  2373. case $ac_var in #(
  2374. *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
  2375. $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
  2376. esac
  2377. case $ac_var in #(
  2378. _ | IFS | as_nl) ;; #(
  2379. BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
  2380. *) { eval $ac_var=; unset $ac_var;} ;;
  2381. esac ;;
  2382. esac
  2383. done
  2384. (set) 2>&1 |
  2385. case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
  2386. *${as_nl}ac_space=\ *)
  2387. sed -n \
  2388. "s/'\''/'\''\\\\'\'''\''/g;
  2389. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
  2390. ;; #(
  2391. *)
  2392. sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
  2393. ;;
  2394. esac |
  2395. sort
  2396. )
  2397. echo
  2398. cat <<\_ASBOX
  2399. ## ----------------- ##
  2400. ## Output variables. ##
  2401. ## ----------------- ##
  2402. _ASBOX
  2403. echo
  2404. for ac_var in $ac_subst_vars
  2405. do
  2406. eval ac_val=\$$ac_var
  2407. case $ac_val in
  2408. *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
  2409. esac
  2410. $as_echo "$ac_var='\''$ac_val'\''"
  2411. done | sort
  2412. echo
  2413. if test -n "$ac_subst_files"; then
  2414. cat <<\_ASBOX
  2415. ## ------------------- ##
  2416. ## File substitutions. ##
  2417. ## ------------------- ##
  2418. _ASBOX
  2419. echo
  2420. for ac_var in $ac_subst_files
  2421. do
  2422. eval ac_val=\$$ac_var
  2423. case $ac_val in
  2424. *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
  2425. esac
  2426. $as_echo "$ac_var='\''$ac_val'\''"
  2427. done | sort
  2428. echo
  2429. fi
  2430. if test -s confdefs.h; then
  2431. cat <<\_ASBOX
  2432. ## ----------- ##
  2433. ## confdefs.h. ##
  2434. ## ----------- ##
  2435. _ASBOX
  2436. echo
  2437. cat confdefs.h
  2438. echo
  2439. fi
  2440. test "$ac_signal" != 0 &&
  2441. $as_echo "$as_me: caught signal $ac_signal"
  2442. $as_echo "$as_me: exit $exit_status"
  2443. } >&5
  2444. rm -f core *.core core.conftest.* &&
  2445. rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
  2446. exit $exit_status
  2447. ' 0
  2448. for ac_signal in 1 2 13 15; do
  2449. trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
  2450. done
  2451. ac_signal=0
  2452. # confdefs.h avoids OS command line length limits that DEFS can exceed.
  2453. rm -f -r conftest* confdefs.h
  2454. $as_echo "/* confdefs.h */" > confdefs.h
  2455. # Predefined preprocessor variables.
  2456. cat >>confdefs.h <<_ACEOF
  2457. #define PACKAGE_NAME "$PACKAGE_NAME"
  2458. _ACEOF
  2459. cat >>confdefs.h <<_ACEOF
  2460. #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
  2461. _ACEOF
  2462. cat >>confdefs.h <<_ACEOF
  2463. #define PACKAGE_VERSION "$PACKAGE_VERSION"
  2464. _ACEOF
  2465. cat >>confdefs.h <<_ACEOF
  2466. #define PACKAGE_STRING "$PACKAGE_STRING"
  2467. _ACEOF
  2468. cat >>confdefs.h <<_ACEOF
  2469. #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
  2470. _ACEOF
  2471. cat >>confdefs.h <<_ACEOF
  2472. #define PACKAGE_URL "$PACKAGE_URL"
  2473. _ACEOF
  2474. # Let the site file select an alternate cache file if it wants to.
  2475. # Prefer an explicitly selected file to automatically selected ones.
  2476. ac_site_file1=NONE
  2477. ac_site_file2=NONE
  2478. if test -n "$CONFIG_SITE"; then
  2479. ac_site_file1=$CONFIG_SITE
  2480. elif test "x$prefix" != xNONE; then
  2481. ac_site_file1=$prefix/share/config.site
  2482. ac_site_file2=$prefix/etc/config.site
  2483. else
  2484. ac_site_file1=$ac_default_prefix/share/config.site
  2485. ac_site_file2=$ac_default_prefix/etc/config.site
  2486. fi
  2487. for ac_site_file in "$ac_site_file1" "$ac_site_file2"
  2488. do
  2489. test "x$ac_site_file" = xNONE && continue
  2490. if test -r "$ac_site_file"; then
  2491. { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
  2492. $as_echo "$as_me: loading site script $ac_site_file" >&6;}
  2493. sed 's/^/| /' "$ac_site_file" >&5
  2494. . "$ac_site_file"
  2495. fi
  2496. done
  2497. if test -r "$cache_file"; then
  2498. # Some versions of bash will fail to source /dev/null (special
  2499. # files actually), so we avoid doing that.
  2500. if test -f "$cache_file"; then
  2501. { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
  2502. $as_echo "$as_me: loading cache $cache_file" >&6;}
  2503. case $cache_file in
  2504. [\\/]* | ?:[\\/]* ) . "$cache_file";;
  2505. *) . "./$cache_file";;
  2506. esac
  2507. fi
  2508. else
  2509. { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
  2510. $as_echo "$as_me: creating cache $cache_file" >&6;}
  2511. >$cache_file
  2512. fi
  2513. gt_needs="$gt_needs "
  2514. as_fn_append ac_header_list " sys/time.h"
  2515. as_fn_append ac_header_list " unistd.h"
  2516. as_fn_append ac_func_list " alarm"
  2517. # Check that the precious variables saved in the cache have kept the same
  2518. # value.
  2519. ac_cache_corrupted=false
  2520. for ac_var in $ac_precious_vars; do
  2521. eval ac_old_set=\$ac_cv_env_${ac_var}_set
  2522. eval ac_new_set=\$ac_env_${ac_var}_set
  2523. eval ac_old_val=\$ac_cv_env_${ac_var}_value
  2524. eval ac_new_val=\$ac_env_${ac_var}_value
  2525. case $ac_old_set,$ac_new_set in
  2526. set,)
  2527. { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
  2528. $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
  2529. ac_cache_corrupted=: ;;
  2530. ,set)
  2531. { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
  2532. $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
  2533. ac_cache_corrupted=: ;;
  2534. ,);;
  2535. *)
  2536. if test "x$ac_old_val" != "x$ac_new_val"; then
  2537. # differences in whitespace do not lead to failure.
  2538. ac_old_val_w=`echo x $ac_old_val`
  2539. ac_new_val_w=`echo x $ac_new_val`
  2540. if test "$ac_old_val_w" != "$ac_new_val_w"; then
  2541. { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
  2542. $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
  2543. ac_cache_corrupted=:
  2544. else
  2545. { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
  2546. $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
  2547. eval $ac_var=\$ac_old_val
  2548. fi
  2549. { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
  2550. $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
  2551. { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
  2552. $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
  2553. fi;;
  2554. esac
  2555. # Pass precious variables to config.status.
  2556. if test "$ac_new_set" = set; then
  2557. case $ac_new_val in
  2558. *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
  2559. *) ac_arg=$ac_var=$ac_new_val ;;
  2560. esac
  2561. case " $ac_configure_args " in
  2562. *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
  2563. *) as_fn_append ac_configure_args " '$ac_arg'" ;;
  2564. esac
  2565. fi
  2566. done
  2567. if $ac_cache_corrupted; then
  2568. { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  2569. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  2570. { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
  2571. $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
  2572. as_fn_error "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
  2573. fi
  2574. ## -------------------- ##
  2575. ## Main body of script. ##
  2576. ## -------------------- ##
  2577. ac_ext=c
  2578. ac_cpp='$CPP $CPPFLAGS'
  2579. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  2580. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  2581. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  2582. ac_aux_dir=
  2583. for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
  2584. for ac_t in install-sh install.sh shtool; do
  2585. if test -f "$ac_dir/$ac_t"; then
  2586. ac_aux_dir=$ac_dir
  2587. ac_install_sh="$ac_aux_dir/$ac_t -c"
  2588. break 2
  2589. fi
  2590. done
  2591. done
  2592. if test -z "$ac_aux_dir"; then
  2593. as_fn_error "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
  2594. fi
  2595. # These three variables are undocumented and unsupported,
  2596. # and are intended to be withdrawn in a future Autoconf release.
  2597. # They can cause serious problems if a builder's source tree is in a directory
  2598. # whose full name contains unusual characters.
  2599. ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
  2600. ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
  2601. ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
  2602. # Make sure we can run config.sub.
  2603. $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
  2604. as_fn_error "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
  2605. { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
  2606. $as_echo_n "checking build system type... " >&6; }
  2607. if test "${ac_cv_build+set}" = set; then :
  2608. $as_echo_n "(cached) " >&6
  2609. else
  2610. ac_build_alias=$build_alias
  2611. test "x$ac_build_alias" = x &&
  2612. ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
  2613. test "x$ac_build_alias" = x &&
  2614. as_fn_error "cannot guess build type; you must specify one" "$LINENO" 5
  2615. ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
  2616. as_fn_error "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
  2617. fi
  2618. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
  2619. $as_echo "$ac_cv_build" >&6; }
  2620. case $ac_cv_build in
  2621. *-*-*) ;;
  2622. *) as_fn_error "invalid value of canonical build" "$LINENO" 5;;
  2623. esac
  2624. build=$ac_cv_build
  2625. ac_save_IFS=$IFS; IFS='-'
  2626. set x $ac_cv_build
  2627. shift
  2628. build_cpu=$1
  2629. build_vendor=$2
  2630. shift; shift
  2631. # Remember, the first character of IFS is used to create $*,
  2632. # except with old shells:
  2633. build_os=$*
  2634. IFS=$ac_save_IFS
  2635. case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
  2636. { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
  2637. $as_echo_n "checking host system type... " >&6; }
  2638. if test "${ac_cv_host+set}" = set; then :
  2639. $as_echo_n "(cached) " >&6
  2640. else
  2641. if test "x$host_alias" = x; then
  2642. ac_cv_host=$ac_cv_build
  2643. else
  2644. ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
  2645. as_fn_error "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
  2646. fi
  2647. fi
  2648. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
  2649. $as_echo "$ac_cv_host" >&6; }
  2650. case $ac_cv_host in
  2651. *-*-*) ;;
  2652. *) as_fn_error "invalid value of canonical host" "$LINENO" 5;;
  2653. esac
  2654. host=$ac_cv_host
  2655. ac_save_IFS=$IFS; IFS='-'
  2656. set x $ac_cv_host
  2657. shift
  2658. host_cpu=$1
  2659. host_vendor=$2
  2660. shift; shift
  2661. # Remember, the first character of IFS is used to create $*,
  2662. # except with old shells:
  2663. host_os=$*
  2664. IFS=$ac_save_IFS
  2665. case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
  2666. { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
  2667. $as_echo_n "checking target system type... " >&6; }
  2668. if test "${ac_cv_target+set}" = set; then :
  2669. $as_echo_n "(cached) " >&6
  2670. else
  2671. if test "x$target_alias" = x; then
  2672. ac_cv_target=$ac_cv_host
  2673. else
  2674. ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
  2675. as_fn_error "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
  2676. fi
  2677. fi
  2678. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
  2679. $as_echo "$ac_cv_target" >&6; }
  2680. case $ac_cv_target in
  2681. *-*-*) ;;
  2682. *) as_fn_error "invalid value of canonical target" "$LINENO" 5;;
  2683. esac
  2684. target=$ac_cv_target
  2685. ac_save_IFS=$IFS; IFS='-'
  2686. set x $ac_cv_target
  2687. shift
  2688. target_cpu=$1
  2689. target_vendor=$2
  2690. shift; shift
  2691. # Remember, the first character of IFS is used to create $*,
  2692. # except with old shells:
  2693. target_os=$*
  2694. IFS=$ac_save_IFS
  2695. case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
  2696. # The aliases save the names the user supplied, while $host etc.
  2697. # will get canonicalized.
  2698. test -n "$target_alias" &&
  2699. test "$program_prefix$program_suffix$program_transform_name" = \
  2700. NONENONEs,x,x, &&
  2701. program_prefix=${target_alias}-
  2702. am__api_version='1.11'
  2703. # Find a good install program. We prefer a C program (faster),
  2704. # so one script is as good as another. But avoid the broken or
  2705. # incompatible versions:
  2706. # SysV /etc/install, /usr/sbin/install
  2707. # SunOS /usr/etc/install
  2708. # IRIX /sbin/install
  2709. # AIX /bin/install
  2710. # AmigaOS /C/install, which installs bootblocks on floppy discs
  2711. # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
  2712. # AFS /usr/afsws/bin/install, which mishandles nonexistent args
  2713. # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
  2714. # OS/2's system install, which has a completely different semantic
  2715. # ./install, which can be erroneously created by make from ./install.sh.
  2716. # Reject install programs that cannot install multiple files.
  2717. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
  2718. $as_echo_n "checking for a BSD-compatible install... " >&6; }
  2719. if test -z "$INSTALL"; then
  2720. if test "${ac_cv_path_install+set}" = set; then :
  2721. $as_echo_n "(cached) " >&6
  2722. else
  2723. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2724. for as_dir in $PATH
  2725. do
  2726. IFS=$as_save_IFS
  2727. test -z "$as_dir" && as_dir=.
  2728. # Account for people who put trailing slashes in PATH elements.
  2729. case $as_dir/ in #((
  2730. ./ | .// | /[cC]/* | \
  2731. /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
  2732. ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
  2733. /usr/ucb/* ) ;;
  2734. *)
  2735. # OSF1 and SCO ODT 3.0 have their own names for install.
  2736. # Don't use installbsd from OSF since it installs stuff as root
  2737. # by default.
  2738. for ac_prog in ginstall scoinst install; do
  2739. for ac_exec_ext in '' $ac_executable_extensions; do
  2740. if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
  2741. if test $ac_prog = install &&
  2742. grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
  2743. # AIX install. It has an incompatible calling convention.
  2744. :
  2745. elif test $ac_prog = install &&
  2746. grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
  2747. # program-specific install script used by HP pwplus--don't use.
  2748. :
  2749. else
  2750. rm -rf conftest.one conftest.two conftest.dir
  2751. echo one > conftest.one
  2752. echo two > conftest.two
  2753. mkdir conftest.dir
  2754. if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
  2755. test -s conftest.one && test -s conftest.two &&
  2756. test -s conftest.dir/conftest.one &&
  2757. test -s conftest.dir/conftest.two
  2758. then
  2759. ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
  2760. break 3
  2761. fi
  2762. fi
  2763. fi
  2764. done
  2765. done
  2766. ;;
  2767. esac
  2768. done
  2769. IFS=$as_save_IFS
  2770. rm -rf conftest.one conftest.two conftest.dir
  2771. fi
  2772. if test "${ac_cv_path_install+set}" = set; then
  2773. INSTALL=$ac_cv_path_install
  2774. else
  2775. # As a last resort, use the slow shell script. Don't cache a
  2776. # value for INSTALL within a source directory, because that will
  2777. # break other packages using the cache if that directory is
  2778. # removed, or if the value is a relative name.
  2779. INSTALL=$ac_install_sh
  2780. fi
  2781. fi
  2782. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
  2783. $as_echo "$INSTALL" >&6; }
  2784. # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
  2785. # It thinks the first close brace ends the variable substitution.
  2786. test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
  2787. test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
  2788. test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
  2789. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
  2790. $as_echo_n "checking whether build environment is sane... " >&6; }
  2791. # Just in case
  2792. sleep 1
  2793. echo timestamp > conftest.file
  2794. # Reject unsafe characters in $srcdir or the absolute working directory
  2795. # name. Accept space and tab only in the latter.
  2796. am_lf='
  2797. '
  2798. case `pwd` in
  2799. *[\\\"\#\$\&\'\`$am_lf]*)
  2800. as_fn_error "unsafe absolute working directory name" "$LINENO" 5;;
  2801. esac
  2802. case $srcdir in
  2803. *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
  2804. as_fn_error "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;;
  2805. esac
  2806. # Do `set' in a subshell so we don't clobber the current shell's
  2807. # arguments. Must try -L first in case configure is actually a
  2808. # symlink; some systems play weird games with the mod time of symlinks
  2809. # (eg FreeBSD returns the mod time of the symlink's containing
  2810. # directory).
  2811. if (
  2812. set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
  2813. if test "$*" = "X"; then
  2814. # -L didn't work.
  2815. set X `ls -t "$srcdir/configure" conftest.file`
  2816. fi
  2817. rm -f conftest.file
  2818. if test "$*" != "X $srcdir/configure conftest.file" \
  2819. && test "$*" != "X conftest.file $srcdir/configure"; then
  2820. # If neither matched, then we have a broken ls. This can happen
  2821. # if, for instance, CONFIG_SHELL is bash and it inherits a
  2822. # broken ls alias from the environment. This has actually
  2823. # happened. Such a system could not be considered "sane".
  2824. as_fn_error "ls -t appears to fail. Make sure there is not a broken
  2825. alias in your environment" "$LINENO" 5
  2826. fi
  2827. test "$2" = conftest.file
  2828. )
  2829. then
  2830. # Ok.
  2831. :
  2832. else
  2833. as_fn_error "newly created file is older than distributed files!
  2834. Check your system clock" "$LINENO" 5
  2835. fi
  2836. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  2837. $as_echo "yes" >&6; }
  2838. test "$program_prefix" != NONE &&
  2839. program_transform_name="s&^&$program_prefix&;$program_transform_name"
  2840. # Use a double $ so make ignores it.
  2841. test "$program_suffix" != NONE &&
  2842. program_transform_name="s&\$&$program_suffix&;$program_transform_name"
  2843. # Double any \ or $.
  2844. # By default was `s,x,x', remove it if useless.
  2845. ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
  2846. program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
  2847. # expand $ac_aux_dir to an absolute path
  2848. am_aux_dir=`cd $ac_aux_dir && pwd`
  2849. if test x"${MISSING+set}" != xset; then
  2850. case $am_aux_dir in
  2851. *\ * | *\ *)
  2852. MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
  2853. *)
  2854. MISSING="\${SHELL} $am_aux_dir/missing" ;;
  2855. esac
  2856. fi
  2857. # Use eval to expand $SHELL
  2858. if eval "$MISSING --run true"; then
  2859. am_missing_run="$MISSING --run "
  2860. else
  2861. am_missing_run=
  2862. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
  2863. $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
  2864. fi
  2865. if test x"${install_sh}" != xset; then
  2866. case $am_aux_dir in
  2867. *\ * | *\ *)
  2868. install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
  2869. *)
  2870. install_sh="\${SHELL} $am_aux_dir/install-sh"
  2871. esac
  2872. fi
  2873. # Installed binaries are usually stripped using `strip' when the user
  2874. # run `make install-strip'. However `strip' might not be the right
  2875. # tool to use in cross-compilation environments, therefore Automake
  2876. # will honor the `STRIP' environment variable to overrule this program.
  2877. if test "$cross_compiling" != no; then
  2878. if test -n "$ac_tool_prefix"; then
  2879. # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
  2880. set dummy ${ac_tool_prefix}strip; ac_word=$2
  2881. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2882. $as_echo_n "checking for $ac_word... " >&6; }
  2883. if test "${ac_cv_prog_STRIP+set}" = set; then :
  2884. $as_echo_n "(cached) " >&6
  2885. else
  2886. if test -n "$STRIP"; then
  2887. ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
  2888. else
  2889. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2890. for as_dir in $PATH
  2891. do
  2892. IFS=$as_save_IFS
  2893. test -z "$as_dir" && as_dir=.
  2894. for ac_exec_ext in '' $ac_executable_extensions; do
  2895. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  2896. ac_cv_prog_STRIP="${ac_tool_prefix}strip"
  2897. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2898. break 2
  2899. fi
  2900. done
  2901. done
  2902. IFS=$as_save_IFS
  2903. fi
  2904. fi
  2905. STRIP=$ac_cv_prog_STRIP
  2906. if test -n "$STRIP"; then
  2907. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
  2908. $as_echo "$STRIP" >&6; }
  2909. else
  2910. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2911. $as_echo "no" >&6; }
  2912. fi
  2913. fi
  2914. if test -z "$ac_cv_prog_STRIP"; then
  2915. ac_ct_STRIP=$STRIP
  2916. # Extract the first word of "strip", so it can be a program name with args.
  2917. set dummy strip; ac_word=$2
  2918. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2919. $as_echo_n "checking for $ac_word... " >&6; }
  2920. if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
  2921. $as_echo_n "(cached) " >&6
  2922. else
  2923. if test -n "$ac_ct_STRIP"; then
  2924. ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
  2925. else
  2926. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2927. for as_dir in $PATH
  2928. do
  2929. IFS=$as_save_IFS
  2930. test -z "$as_dir" && as_dir=.
  2931. for ac_exec_ext in '' $ac_executable_extensions; do
  2932. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  2933. ac_cv_prog_ac_ct_STRIP="strip"
  2934. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2935. break 2
  2936. fi
  2937. done
  2938. done
  2939. IFS=$as_save_IFS
  2940. fi
  2941. fi
  2942. ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
  2943. if test -n "$ac_ct_STRIP"; then
  2944. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
  2945. $as_echo "$ac_ct_STRIP" >&6; }
  2946. else
  2947. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2948. $as_echo "no" >&6; }
  2949. fi
  2950. if test "x$ac_ct_STRIP" = x; then
  2951. STRIP=":"
  2952. else
  2953. case $cross_compiling:$ac_tool_warned in
  2954. yes:)
  2955. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  2956. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  2957. ac_tool_warned=yes ;;
  2958. esac
  2959. STRIP=$ac_ct_STRIP
  2960. fi
  2961. else
  2962. STRIP="$ac_cv_prog_STRIP"
  2963. fi
  2964. fi
  2965. INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
  2966. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
  2967. $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
  2968. if test -z "$MKDIR_P"; then
  2969. if test "${ac_cv_path_mkdir+set}" = set; then :
  2970. $as_echo_n "(cached) " >&6
  2971. else
  2972. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2973. for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
  2974. do
  2975. IFS=$as_save_IFS
  2976. test -z "$as_dir" && as_dir=.
  2977. for ac_prog in mkdir gmkdir; do
  2978. for ac_exec_ext in '' $ac_executable_extensions; do
  2979. { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
  2980. case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
  2981. 'mkdir (GNU coreutils) '* | \
  2982. 'mkdir (coreutils) '* | \
  2983. 'mkdir (fileutils) '4.1*)
  2984. ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
  2985. break 3;;
  2986. esac
  2987. done
  2988. done
  2989. done
  2990. IFS=$as_save_IFS
  2991. fi
  2992. if test "${ac_cv_path_mkdir+set}" = set; then
  2993. MKDIR_P="$ac_cv_path_mkdir -p"
  2994. else
  2995. # As a last resort, use the slow shell script. Don't cache a
  2996. # value for MKDIR_P within a source directory, because that will
  2997. # break other packages using the cache if that directory is
  2998. # removed, or if the value is a relative name.
  2999. test -d ./--version && rmdir ./--version
  3000. MKDIR_P="$ac_install_sh -d"
  3001. fi
  3002. fi
  3003. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
  3004. $as_echo "$MKDIR_P" >&6; }
  3005. mkdir_p="$MKDIR_P"
  3006. case $mkdir_p in
  3007. [\\/$]* | ?:[\\/]*) ;;
  3008. */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
  3009. esac
  3010. for ac_prog in gawk mawk nawk awk
  3011. do
  3012. # Extract the first word of "$ac_prog", so it can be a program name with args.
  3013. set dummy $ac_prog; ac_word=$2
  3014. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3015. $as_echo_n "checking for $ac_word... " >&6; }
  3016. if test "${ac_cv_prog_AWK+set}" = set; then :
  3017. $as_echo_n "(cached) " >&6
  3018. else
  3019. if test -n "$AWK"; then
  3020. ac_cv_prog_AWK="$AWK" # Let the user override the test.
  3021. else
  3022. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3023. for as_dir in $PATH
  3024. do
  3025. IFS=$as_save_IFS
  3026. test -z "$as_dir" && as_dir=.
  3027. for ac_exec_ext in '' $ac_executable_extensions; do
  3028. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  3029. ac_cv_prog_AWK="$ac_prog"
  3030. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  3031. break 2
  3032. fi
  3033. done
  3034. done
  3035. IFS=$as_save_IFS
  3036. fi
  3037. fi
  3038. AWK=$ac_cv_prog_AWK
  3039. if test -n "$AWK"; then
  3040. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
  3041. $as_echo "$AWK" >&6; }
  3042. else
  3043. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3044. $as_echo "no" >&6; }
  3045. fi
  3046. test -n "$AWK" && break
  3047. done
  3048. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
  3049. $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
  3050. set x ${MAKE-make}
  3051. ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
  3052. if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then :
  3053. $as_echo_n "(cached) " >&6
  3054. else
  3055. cat >conftest.make <<\_ACEOF
  3056. SHELL = /bin/sh
  3057. all:
  3058. @echo '@@@%%%=$(MAKE)=@@@%%%'
  3059. _ACEOF
  3060. # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
  3061. case `${MAKE-make} -f conftest.make 2>/dev/null` in
  3062. *@@@%%%=?*=@@@%%%*)
  3063. eval ac_cv_prog_make_${ac_make}_set=yes;;
  3064. *)
  3065. eval ac_cv_prog_make_${ac_make}_set=no;;
  3066. esac
  3067. rm -f conftest.make
  3068. fi
  3069. if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
  3070. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  3071. $as_echo "yes" >&6; }
  3072. SET_MAKE=
  3073. else
  3074. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3075. $as_echo "no" >&6; }
  3076. SET_MAKE="MAKE=${MAKE-make}"
  3077. fi
  3078. rm -rf .tst 2>/dev/null
  3079. mkdir .tst 2>/dev/null
  3080. if test -d .tst; then
  3081. am__leading_dot=.
  3082. else
  3083. am__leading_dot=_
  3084. fi
  3085. rmdir .tst 2>/dev/null
  3086. if test "`cd $srcdir && pwd`" != "`pwd`"; then
  3087. # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
  3088. # is not polluted with repeated "-I."
  3089. am__isrc=' -I$(srcdir)'
  3090. # test to see if srcdir already configured
  3091. if test -f $srcdir/config.status; then
  3092. as_fn_error "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
  3093. fi
  3094. fi
  3095. # test whether we have cygpath
  3096. if test -z "$CYGPATH_W"; then
  3097. if (cygpath --version) >/dev/null 2>/dev/null; then
  3098. CYGPATH_W='cygpath -w'
  3099. else
  3100. CYGPATH_W=echo
  3101. fi
  3102. fi
  3103. # Define the identity of the package.
  3104. PACKAGE='aria2'
  3105. VERSION='1.7.1'
  3106. cat >>confdefs.h <<_ACEOF
  3107. #define PACKAGE "$PACKAGE"
  3108. _ACEOF
  3109. cat >>confdefs.h <<_ACEOF
  3110. #define VERSION "$VERSION"
  3111. _ACEOF
  3112. # Some tools Automake needs.
  3113. ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
  3114. AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
  3115. AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
  3116. AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
  3117. MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
  3118. # We need awk for the "check" target. The system "awk" is bad on
  3119. # some platforms.
  3120. # Always define AMTAR for backward compatibility.
  3121. AMTAR=${AMTAR-"${am_missing_run}tar"}
  3122. am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
  3123. # Check whether --with-cppunit-prefix was given.
  3124. if test "${with_cppunit_prefix+set}" = set; then :
  3125. withval=$with_cppunit_prefix; cppunit_config_prefix="$withval"
  3126. else
  3127. cppunit_config_prefix=""
  3128. fi
  3129. # Check whether --with-cppunit-exec-prefix was given.
  3130. if test "${with_cppunit_exec_prefix+set}" = set; then :
  3131. withval=$with_cppunit_exec_prefix; cppunit_config_exec_prefix="$withval"
  3132. else
  3133. cppunit_config_exec_prefix=""
  3134. fi
  3135. if test x$cppunit_config_exec_prefix != x ; then
  3136. cppunit_config_args="$cppunit_config_args --exec-prefix=$cppunit_config_exec_prefix"
  3137. if test x${CPPUNIT_CONFIG+set} != xset ; then
  3138. CPPUNIT_CONFIG=$cppunit_config_exec_prefix/bin/cppunit-config
  3139. fi
  3140. fi
  3141. if test x$cppunit_config_prefix != x ; then
  3142. cppunit_config_args="$cppunit_config_args --prefix=$cppunit_config_prefix"
  3143. if test x${CPPUNIT_CONFIG+set} != xset ; then
  3144. CPPUNIT_CONFIG=$cppunit_config_prefix/bin/cppunit-config
  3145. fi
  3146. fi
  3147. # Extract the first word of "cppunit-config", so it can be a program name with args.
  3148. set dummy cppunit-config; ac_word=$2
  3149. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3150. $as_echo_n "checking for $ac_word... " >&6; }
  3151. if test "${ac_cv_path_CPPUNIT_CONFIG+set}" = set; then :
  3152. $as_echo_n "(cached) " >&6
  3153. else
  3154. case $CPPUNIT_CONFIG in
  3155. [\\/]* | ?:[\\/]*)
  3156. ac_cv_path_CPPUNIT_CONFIG="$CPPUNIT_CONFIG" # Let the user override the test with a path.
  3157. ;;
  3158. *)
  3159. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3160. for as_dir in $PATH
  3161. do
  3162. IFS=$as_save_IFS
  3163. test -z "$as_dir" && as_dir=.
  3164. for ac_exec_ext in '' $ac_executable_extensions; do
  3165. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  3166. ac_cv_path_CPPUNIT_CONFIG="$as_dir/$ac_word$ac_exec_ext"
  3167. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  3168. break 2
  3169. fi
  3170. done
  3171. done
  3172. IFS=$as_save_IFS
  3173. test -z "$ac_cv_path_CPPUNIT_CONFIG" && ac_cv_path_CPPUNIT_CONFIG="no"
  3174. ;;
  3175. esac
  3176. fi
  3177. CPPUNIT_CONFIG=$ac_cv_path_CPPUNIT_CONFIG
  3178. if test -n "$CPPUNIT_CONFIG"; then
  3179. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPPUNIT_CONFIG" >&5
  3180. $as_echo "$CPPUNIT_CONFIG" >&6; }
  3181. else
  3182. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3183. $as_echo "no" >&6; }
  3184. fi
  3185. cppunit_version_min=1.10.2
  3186. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Cppunit - version >= $cppunit_version_min" >&5
  3187. $as_echo_n "checking for Cppunit - version >= $cppunit_version_min... " >&6; }
  3188. no_cppunit=""
  3189. if test "$CPPUNIT_CONFIG" = "no" ; then
  3190. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3191. $as_echo "no" >&6; }
  3192. no_cppunit=yes
  3193. else
  3194. CPPUNIT_CFLAGS=`$CPPUNIT_CONFIG --cflags`
  3195. CPPUNIT_LIBS=`$CPPUNIT_CONFIG --libs`
  3196. cppunit_version=`$CPPUNIT_CONFIG --version`
  3197. cppunit_major_version=`echo $cppunit_version | \
  3198. sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
  3199. cppunit_minor_version=`echo $cppunit_version | \
  3200. sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
  3201. cppunit_micro_version=`echo $cppunit_version | \
  3202. sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
  3203. cppunit_major_min=`echo $cppunit_version_min | \
  3204. sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
  3205. if test "x${cppunit_major_min}" = "x" ; then
  3206. cppunit_major_min=0
  3207. fi
  3208. cppunit_minor_min=`echo $cppunit_version_min | \
  3209. sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
  3210. if test "x${cppunit_minor_min}" = "x" ; then
  3211. cppunit_minor_min=0
  3212. fi
  3213. cppunit_micro_min=`echo $cppunit_version_min | \
  3214. sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
  3215. if test "x${cppunit_micro_min}" = "x" ; then
  3216. cppunit_micro_min=0
  3217. fi
  3218. cppunit_version_proper=`expr \
  3219. $cppunit_major_version \> $cppunit_major_min \| \
  3220. $cppunit_major_version \= $cppunit_major_min \& \
  3221. $cppunit_minor_version \> $cppunit_minor_min \| \
  3222. $cppunit_major_version \= $cppunit_major_min \& \
  3223. $cppunit_minor_version \= $cppunit_minor_min \& \
  3224. $cppunit_micro_version \>= $cppunit_micro_min `
  3225. if test "$cppunit_version_proper" = "1" ; then
  3226. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cppunit_major_version.$cppunit_minor_version.$cppunit_micro_version" >&5
  3227. $as_echo "$cppunit_major_version.$cppunit_minor_version.$cppunit_micro_version" >&6; }
  3228. else
  3229. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3230. $as_echo "no" >&6; }
  3231. no_cppunit=yes
  3232. fi
  3233. fi
  3234. if test "x$no_cppunit" = x ; then
  3235. :
  3236. else
  3237. CPPUNIT_CFLAGS=""
  3238. CPPUNIT_LIBS=""
  3239. :
  3240. fi
  3241. ac_config_headers="$ac_config_headers config.h"
  3242. case "$target" in
  3243. *mingw*|*cygwin*)
  3244. WINSOCK_LIBS="-lws2_32 -lpthread"
  3245. ;;
  3246. esac
  3247. cat >>confdefs.h <<_ACEOF
  3248. #define TARGET "$target"
  3249. _ACEOF
  3250. # Checks for arguments.
  3251. # Check whether --with-gnutls was given.
  3252. if test "${with_gnutls+set}" = set; then :
  3253. withval=$with_gnutls; with_gnutls_requested=$withval with_gnutls=$withval
  3254. else
  3255. with_gnutls=yes
  3256. fi
  3257. # Check whether --with-openssl was given.
  3258. if test "${with_openssl+set}" = set; then :
  3259. withval=$with_openssl; with_openssl_requested=$withval with_openssl=$withval
  3260. else
  3261. with_openssl=yes
  3262. fi
  3263. # Check whether --with-sqlite3 was given.
  3264. if test "${with_sqlite3+set}" = set; then :
  3265. withval=$with_sqlite3; with_sqlite3_requested=$withval with_sqlite3=$withval
  3266. else
  3267. with_sqlite3=yes
  3268. fi
  3269. # Check whether --with-libxml2 was given.
  3270. if test "${with_libxml2+set}" = set; then :
  3271. withval=$with_libxml2; with_libxml2_requested=$withval with_libxml2=$withval
  3272. else
  3273. with_libxml2=yes
  3274. fi
  3275. # Check whether --with-libexpat was given.
  3276. if test "${with_libexpat+set}" = set; then :
  3277. withval=$with_libexpat; with_libexpat_requested=$withval with_libexpat=$withval
  3278. else
  3279. with_libexpat=yes
  3280. fi
  3281. # Check whether --with-libcares was given.
  3282. if test "${with_libcares+set}" = set; then :
  3283. withval=$with_libcares; with_libcares_requested=$withval with_libcares=$withval
  3284. else
  3285. with_libcares=yes
  3286. fi
  3287. # Check whether --with-libz was given.
  3288. if test "${with_libz+set}" = set; then :
  3289. withval=$with_libz; with_libz_requested=$withval with_libz=$withval
  3290. else
  3291. with_libz=yes
  3292. fi
  3293. # Check whether --enable-bittorrent was given.
  3294. if test "${enable_bittorrent+set}" = set; then :
  3295. enableval=$enable_bittorrent; enable_bittorrent_requested=$enableval enable_bittorrent=$enableval
  3296. else
  3297. enable_bittorrent=yes
  3298. fi
  3299. # Check whether --enable-metalink was given.
  3300. if test "${enable_metalink+set}" = set; then :
  3301. enableval=$enable_metalink; enable_metalink_requested=$enableval enable_metalink=$enableval
  3302. else
  3303. enable_metalink=yes
  3304. fi
  3305. # Check whether --enable-epoll was given.
  3306. if test "${enable_epoll+set}" = set; then :
  3307. enableval=$enable_epoll; enable_epoll_requested=$enableval enable_epoll=$enableval
  3308. else
  3309. enable_epoll=yes
  3310. fi
  3311. # Check whether --with-ca-bundle was given.
  3312. if test "${with_ca_bundle+set}" = set; then :
  3313. withval=$with_ca_bundle; ca_bundle=$withval
  3314. else
  3315. ca_bundle=""
  3316. fi
  3317. # Checks for programs.
  3318. ac_ext=cpp
  3319. ac_cpp='$CXXCPP $CPPFLAGS'
  3320. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  3321. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  3322. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  3323. if test -z "$CXX"; then
  3324. if test -n "$CCC"; then
  3325. CXX=$CCC
  3326. else
  3327. if test -n "$ac_tool_prefix"; then
  3328. for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
  3329. do
  3330. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  3331. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  3332. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3333. $as_echo_n "checking for $ac_word... " >&6; }
  3334. if test "${ac_cv_prog_CXX+set}" = set; then :
  3335. $as_echo_n "(cached) " >&6
  3336. else
  3337. if test -n "$CXX"; then
  3338. ac_cv_prog_CXX="$CXX" # Let the user override the test.
  3339. else
  3340. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3341. for as_dir in $PATH
  3342. do
  3343. IFS=$as_save_IFS
  3344. test -z "$as_dir" && as_dir=.
  3345. for ac_exec_ext in '' $ac_executable_extensions; do
  3346. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  3347. ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
  3348. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  3349. break 2
  3350. fi
  3351. done
  3352. done
  3353. IFS=$as_save_IFS
  3354. fi
  3355. fi
  3356. CXX=$ac_cv_prog_CXX
  3357. if test -n "$CXX"; then
  3358. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
  3359. $as_echo "$CXX" >&6; }
  3360. else
  3361. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3362. $as_echo "no" >&6; }
  3363. fi
  3364. test -n "$CXX" && break
  3365. done
  3366. fi
  3367. if test -z "$CXX"; then
  3368. ac_ct_CXX=$CXX
  3369. for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
  3370. do
  3371. # Extract the first word of "$ac_prog", so it can be a program name with args.
  3372. set dummy $ac_prog; ac_word=$2
  3373. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3374. $as_echo_n "checking for $ac_word... " >&6; }
  3375. if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then :
  3376. $as_echo_n "(cached) " >&6
  3377. else
  3378. if test -n "$ac_ct_CXX"; then
  3379. ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
  3380. else
  3381. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3382. for as_dir in $PATH
  3383. do
  3384. IFS=$as_save_IFS
  3385. test -z "$as_dir" && as_dir=.
  3386. for ac_exec_ext in '' $ac_executable_extensions; do
  3387. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  3388. ac_cv_prog_ac_ct_CXX="$ac_prog"
  3389. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  3390. break 2
  3391. fi
  3392. done
  3393. done
  3394. IFS=$as_save_IFS
  3395. fi
  3396. fi
  3397. ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
  3398. if test -n "$ac_ct_CXX"; then
  3399. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
  3400. $as_echo "$ac_ct_CXX" >&6; }
  3401. else
  3402. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3403. $as_echo "no" >&6; }
  3404. fi
  3405. test -n "$ac_ct_CXX" && break
  3406. done
  3407. if test "x$ac_ct_CXX" = x; then
  3408. CXX="g++"
  3409. else
  3410. case $cross_compiling:$ac_tool_warned in
  3411. yes:)
  3412. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  3413. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  3414. ac_tool_warned=yes ;;
  3415. esac
  3416. CXX=$ac_ct_CXX
  3417. fi
  3418. fi
  3419. fi
  3420. fi
  3421. # Provide some information about the compiler.
  3422. $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
  3423. set X $ac_compile
  3424. ac_compiler=$2
  3425. for ac_option in --version -v -V -qversion; do
  3426. { { ac_try="$ac_compiler $ac_option >&5"
  3427. case "(($ac_try" in
  3428. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3429. *) ac_try_echo=$ac_try;;
  3430. esac
  3431. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3432. $as_echo "$ac_try_echo"; } >&5
  3433. (eval "$ac_compiler $ac_option >&5") 2>conftest.err
  3434. ac_status=$?
  3435. if test -s conftest.err; then
  3436. sed '10a\
  3437. ... rest of stderr output deleted ...
  3438. 10q' conftest.err >conftest.er1
  3439. cat conftest.er1 >&5
  3440. rm -f conftest.er1 conftest.err
  3441. fi
  3442. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3443. test $ac_status = 0; }
  3444. done
  3445. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3446. /* end confdefs.h. */
  3447. #include <stdio.h>
  3448. int
  3449. main ()
  3450. {
  3451. FILE *f = fopen ("conftest.out", "w");
  3452. return ferror (f) || fclose (f) != 0;
  3453. ;
  3454. return 0;
  3455. }
  3456. _ACEOF
  3457. ac_clean_files_save=$ac_clean_files
  3458. ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out conftest.out"
  3459. # Try to create an executable without -o first, disregard a.out.
  3460. # It will help us diagnose broken compilers, and finding out an intuition
  3461. # of exeext.
  3462. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler default output file name" >&5
  3463. $as_echo_n "checking for C++ compiler default output file name... " >&6; }
  3464. ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
  3465. # The possible output files:
  3466. ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
  3467. ac_rmfiles=
  3468. for ac_file in $ac_files
  3469. do
  3470. case $ac_file in
  3471. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
  3472. * ) ac_rmfiles="$ac_rmfiles $ac_file";;
  3473. esac
  3474. done
  3475. rm -f $ac_rmfiles
  3476. if { { ac_try="$ac_link_default"
  3477. case "(($ac_try" in
  3478. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3479. *) ac_try_echo=$ac_try;;
  3480. esac
  3481. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3482. $as_echo "$ac_try_echo"; } >&5
  3483. (eval "$ac_link_default") 2>&5
  3484. ac_status=$?
  3485. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3486. test $ac_status = 0; }; then :
  3487. # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
  3488. # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
  3489. # in a Makefile. We should not override ac_cv_exeext if it was cached,
  3490. # so that the user can short-circuit this test for compilers unknown to
  3491. # Autoconf.
  3492. for ac_file in $ac_files ''
  3493. do
  3494. test -f "$ac_file" || continue
  3495. case $ac_file in
  3496. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
  3497. ;;
  3498. [ab].out )
  3499. # We found the default executable, but exeext='' is most
  3500. # certainly right.
  3501. break;;
  3502. *.* )
  3503. if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
  3504. then :; else
  3505. ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
  3506. fi
  3507. # We set ac_cv_exeext here because the later test for it is not
  3508. # safe: cross compilers may not add the suffix if given an `-o'
  3509. # argument, so we may need to know it at that point already.
  3510. # Even if this section looks crufty: it has the advantage of
  3511. # actually working.
  3512. break;;
  3513. * )
  3514. break;;
  3515. esac
  3516. done
  3517. test "$ac_cv_exeext" = no && ac_cv_exeext=
  3518. else
  3519. ac_file=''
  3520. fi
  3521. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
  3522. $as_echo "$ac_file" >&6; }
  3523. if test -z "$ac_file"; then :
  3524. $as_echo "$as_me: failed program was:" >&5
  3525. sed 's/^/| /' conftest.$ac_ext >&5
  3526. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  3527. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  3528. { as_fn_set_status 77
  3529. as_fn_error "C++ compiler cannot create executables
  3530. See \`config.log' for more details." "$LINENO" 5; }; }
  3531. fi
  3532. ac_exeext=$ac_cv_exeext
  3533. # Check that the compiler produces executables we can run. If not, either
  3534. # the compiler is broken, or we cross compile.
  3535. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C++ compiler works" >&5
  3536. $as_echo_n "checking whether the C++ compiler works... " >&6; }
  3537. # If not cross compiling, check that we can run a simple program.
  3538. if test "$cross_compiling" != yes; then
  3539. if { ac_try='./$ac_file'
  3540. { { case "(($ac_try" in
  3541. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3542. *) ac_try_echo=$ac_try;;
  3543. esac
  3544. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3545. $as_echo "$ac_try_echo"; } >&5
  3546. (eval "$ac_try") 2>&5
  3547. ac_status=$?
  3548. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3549. test $ac_status = 0; }; }; then
  3550. cross_compiling=no
  3551. else
  3552. if test "$cross_compiling" = maybe; then
  3553. cross_compiling=yes
  3554. else
  3555. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  3556. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  3557. as_fn_error "cannot run C++ compiled programs.
  3558. If you meant to cross compile, use \`--host'.
  3559. See \`config.log' for more details." "$LINENO" 5; }
  3560. fi
  3561. fi
  3562. fi
  3563. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  3564. $as_echo "yes" >&6; }
  3565. rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out conftest.out
  3566. ac_clean_files=$ac_clean_files_save
  3567. # Check that the compiler produces executables we can run. If not, either
  3568. # the compiler is broken, or we cross compile.
  3569. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
  3570. $as_echo_n "checking whether we are cross compiling... " >&6; }
  3571. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
  3572. $as_echo "$cross_compiling" >&6; }
  3573. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
  3574. $as_echo_n "checking for suffix of executables... " >&6; }
  3575. if { { ac_try="$ac_link"
  3576. case "(($ac_try" in
  3577. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3578. *) ac_try_echo=$ac_try;;
  3579. esac
  3580. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3581. $as_echo "$ac_try_echo"; } >&5
  3582. (eval "$ac_link") 2>&5
  3583. ac_status=$?
  3584. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3585. test $ac_status = 0; }; then :
  3586. # If both `conftest.exe' and `conftest' are `present' (well, observable)
  3587. # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
  3588. # work properly (i.e., refer to `conftest.exe'), while it won't with
  3589. # `rm'.
  3590. for ac_file in conftest.exe conftest conftest.*; do
  3591. test -f "$ac_file" || continue
  3592. case $ac_file in
  3593. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
  3594. *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
  3595. break;;
  3596. * ) break;;
  3597. esac
  3598. done
  3599. else
  3600. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  3601. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  3602. as_fn_error "cannot compute suffix of executables: cannot compile and link
  3603. See \`config.log' for more details." "$LINENO" 5; }
  3604. fi
  3605. rm -f conftest$ac_cv_exeext
  3606. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
  3607. $as_echo "$ac_cv_exeext" >&6; }
  3608. rm -f conftest.$ac_ext
  3609. EXEEXT=$ac_cv_exeext
  3610. ac_exeext=$EXEEXT
  3611. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
  3612. $as_echo_n "checking for suffix of object files... " >&6; }
  3613. if test "${ac_cv_objext+set}" = set; then :
  3614. $as_echo_n "(cached) " >&6
  3615. else
  3616. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3617. /* end confdefs.h. */
  3618. int
  3619. main ()
  3620. {
  3621. ;
  3622. return 0;
  3623. }
  3624. _ACEOF
  3625. rm -f conftest.o conftest.obj
  3626. if { { ac_try="$ac_compile"
  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_compile") 2>&5
  3634. ac_status=$?
  3635. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3636. test $ac_status = 0; }; then :
  3637. for ac_file in conftest.o conftest.obj conftest.*; do
  3638. test -f "$ac_file" || continue;
  3639. case $ac_file in
  3640. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
  3641. *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
  3642. break;;
  3643. esac
  3644. done
  3645. else
  3646. $as_echo "$as_me: failed program was:" >&5
  3647. sed 's/^/| /' conftest.$ac_ext >&5
  3648. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  3649. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  3650. as_fn_error "cannot compute suffix of object files: cannot compile
  3651. See \`config.log' for more details." "$LINENO" 5; }
  3652. fi
  3653. rm -f conftest.$ac_cv_objext conftest.$ac_ext
  3654. fi
  3655. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
  3656. $as_echo "$ac_cv_objext" >&6; }
  3657. OBJEXT=$ac_cv_objext
  3658. ac_objext=$OBJEXT
  3659. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
  3660. $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
  3661. if test "${ac_cv_cxx_compiler_gnu+set}" = set; then :
  3662. $as_echo_n "(cached) " >&6
  3663. else
  3664. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3665. /* end confdefs.h. */
  3666. int
  3667. main ()
  3668. {
  3669. #ifndef __GNUC__
  3670. choke me
  3671. #endif
  3672. ;
  3673. return 0;
  3674. }
  3675. _ACEOF
  3676. if ac_fn_cxx_try_compile "$LINENO"; then :
  3677. ac_compiler_gnu=yes
  3678. else
  3679. ac_compiler_gnu=no
  3680. fi
  3681. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3682. ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
  3683. fi
  3684. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
  3685. $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
  3686. if test $ac_compiler_gnu = yes; then
  3687. GXX=yes
  3688. else
  3689. GXX=
  3690. fi
  3691. ac_test_CXXFLAGS=${CXXFLAGS+set}
  3692. ac_save_CXXFLAGS=$CXXFLAGS
  3693. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
  3694. $as_echo_n "checking whether $CXX accepts -g... " >&6; }
  3695. if test "${ac_cv_prog_cxx_g+set}" = set; then :
  3696. $as_echo_n "(cached) " >&6
  3697. else
  3698. ac_save_cxx_werror_flag=$ac_cxx_werror_flag
  3699. ac_cxx_werror_flag=yes
  3700. ac_cv_prog_cxx_g=no
  3701. CXXFLAGS="-g"
  3702. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3703. /* end confdefs.h. */
  3704. int
  3705. main ()
  3706. {
  3707. ;
  3708. return 0;
  3709. }
  3710. _ACEOF
  3711. if ac_fn_cxx_try_compile "$LINENO"; then :
  3712. ac_cv_prog_cxx_g=yes
  3713. else
  3714. CXXFLAGS=""
  3715. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3716. /* end confdefs.h. */
  3717. int
  3718. main ()
  3719. {
  3720. ;
  3721. return 0;
  3722. }
  3723. _ACEOF
  3724. if ac_fn_cxx_try_compile "$LINENO"; then :
  3725. else
  3726. ac_cxx_werror_flag=$ac_save_cxx_werror_flag
  3727. CXXFLAGS="-g"
  3728. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3729. /* end confdefs.h. */
  3730. int
  3731. main ()
  3732. {
  3733. ;
  3734. return 0;
  3735. }
  3736. _ACEOF
  3737. if ac_fn_cxx_try_compile "$LINENO"; then :
  3738. ac_cv_prog_cxx_g=yes
  3739. fi
  3740. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3741. fi
  3742. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3743. fi
  3744. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3745. ac_cxx_werror_flag=$ac_save_cxx_werror_flag
  3746. fi
  3747. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
  3748. $as_echo "$ac_cv_prog_cxx_g" >&6; }
  3749. if test "$ac_test_CXXFLAGS" = set; then
  3750. CXXFLAGS=$ac_save_CXXFLAGS
  3751. elif test $ac_cv_prog_cxx_g = yes; then
  3752. if test "$GXX" = yes; then
  3753. CXXFLAGS="-g -O2"
  3754. else
  3755. CXXFLAGS="-g"
  3756. fi
  3757. else
  3758. if test "$GXX" = yes; then
  3759. CXXFLAGS="-O2"
  3760. else
  3761. CXXFLAGS=
  3762. fi
  3763. fi
  3764. ac_ext=c
  3765. ac_cpp='$CPP $CPPFLAGS'
  3766. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  3767. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  3768. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  3769. DEPDIR="${am__leading_dot}deps"
  3770. ac_config_commands="$ac_config_commands depfiles"
  3771. am_make=${MAKE-make}
  3772. cat > confinc << 'END'
  3773. am__doit:
  3774. @echo this is the am__doit target
  3775. .PHONY: am__doit
  3776. END
  3777. # If we don't find an include directive, just comment out the code.
  3778. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
  3779. $as_echo_n "checking for style of include used by $am_make... " >&6; }
  3780. am__include="#"
  3781. am__quote=
  3782. _am_result=none
  3783. # First try GNU make style include.
  3784. echo "include confinc" > confmf
  3785. # Ignore all kinds of additional output from `make'.
  3786. case `$am_make -s -f confmf 2> /dev/null` in #(
  3787. *the\ am__doit\ target*)
  3788. am__include=include
  3789. am__quote=
  3790. _am_result=GNU
  3791. ;;
  3792. esac
  3793. # Now try BSD make style include.
  3794. if test "$am__include" = "#"; then
  3795. echo '.include "confinc"' > confmf
  3796. case `$am_make -s -f confmf 2> /dev/null` in #(
  3797. *the\ am__doit\ target*)
  3798. am__include=.include
  3799. am__quote="\""
  3800. _am_result=BSD
  3801. ;;
  3802. esac
  3803. fi
  3804. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
  3805. $as_echo "$_am_result" >&6; }
  3806. rm -f confinc confmf
  3807. # Check whether --enable-dependency-tracking was given.
  3808. if test "${enable_dependency_tracking+set}" = set; then :
  3809. enableval=$enable_dependency_tracking;
  3810. fi
  3811. if test "x$enable_dependency_tracking" != xno; then
  3812. am_depcomp="$ac_aux_dir/depcomp"
  3813. AMDEPBACKSLASH='\'
  3814. fi
  3815. if test "x$enable_dependency_tracking" != xno; then
  3816. AMDEP_TRUE=
  3817. AMDEP_FALSE='#'
  3818. else
  3819. AMDEP_TRUE='#'
  3820. AMDEP_FALSE=
  3821. fi
  3822. depcc="$CXX" am_compiler_list=
  3823. { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
  3824. $as_echo_n "checking dependency style of $depcc... " >&6; }
  3825. if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then :
  3826. $as_echo_n "(cached) " >&6
  3827. else
  3828. if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
  3829. # We make a subdir and do the tests there. Otherwise we can end up
  3830. # making bogus files that we don't know about and never remove. For
  3831. # instance it was reported that on HP-UX the gcc test will end up
  3832. # making a dummy file named `D' -- because `-MD' means `put the output
  3833. # in D'.
  3834. mkdir conftest.dir
  3835. # Copy depcomp to subdir because otherwise we won't find it if we're
  3836. # using a relative directory.
  3837. cp "$am_depcomp" conftest.dir
  3838. cd conftest.dir
  3839. # We will build objects and dependencies in a subdirectory because
  3840. # it helps to detect inapplicable dependency modes. For instance
  3841. # both Tru64's cc and ICC support -MD to output dependencies as a
  3842. # side effect of compilation, but ICC will put the dependencies in
  3843. # the current directory while Tru64 will put them in the object
  3844. # directory.
  3845. mkdir sub
  3846. am_cv_CXX_dependencies_compiler_type=none
  3847. if test "$am_compiler_list" = ""; then
  3848. am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
  3849. fi
  3850. am__universal=false
  3851. case " $depcc " in #(
  3852. *\ -arch\ *\ -arch\ *) am__universal=true ;;
  3853. esac
  3854. for depmode in $am_compiler_list; do
  3855. # Setup a source with many dependencies, because some compilers
  3856. # like to wrap large dependency lists on column 80 (with \), and
  3857. # we should not choose a depcomp mode which is confused by this.
  3858. #
  3859. # We need to recreate these files for each test, as the compiler may
  3860. # overwrite some of them when testing with obscure command lines.
  3861. # This happens at least with the AIX C compiler.
  3862. : > sub/conftest.c
  3863. for i in 1 2 3 4 5 6; do
  3864. echo '#include "conftst'$i'.h"' >> sub/conftest.c
  3865. # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
  3866. # Solaris 8's {/usr,}/bin/sh.
  3867. touch sub/conftst$i.h
  3868. done
  3869. echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
  3870. # We check with `-c' and `-o' for the sake of the "dashmstdout"
  3871. # mode. It turns out that the SunPro C++ compiler does not properly
  3872. # handle `-M -o', and we need to detect this. Also, some Intel
  3873. # versions had trouble with output in subdirs
  3874. am__obj=sub/conftest.${OBJEXT-o}
  3875. am__minus_obj="-o $am__obj"
  3876. case $depmode in
  3877. gcc)
  3878. # This depmode causes a compiler race in universal mode.
  3879. test "$am__universal" = false || continue
  3880. ;;
  3881. nosideeffect)
  3882. # after this tag, mechanisms are not by side-effect, so they'll
  3883. # only be used when explicitly requested
  3884. if test "x$enable_dependency_tracking" = xyes; then
  3885. continue
  3886. else
  3887. break
  3888. fi
  3889. ;;
  3890. msvisualcpp | msvcmsys)
  3891. # This compiler won't grok `-c -o', but also, the minuso test has
  3892. # not run yet. These depmodes are late enough in the game, and
  3893. # so weak that their functioning should not be impacted.
  3894. am__obj=conftest.${OBJEXT-o}
  3895. am__minus_obj=
  3896. ;;
  3897. none) break ;;
  3898. esac
  3899. if depmode=$depmode \
  3900. source=sub/conftest.c object=$am__obj \
  3901. depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
  3902. $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
  3903. >/dev/null 2>conftest.err &&
  3904. grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
  3905. grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
  3906. grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
  3907. ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
  3908. # icc doesn't choke on unknown options, it will just issue warnings
  3909. # or remarks (even with -Werror). So we grep stderr for any message
  3910. # that says an option was ignored or not supported.
  3911. # When given -MP, icc 7.0 and 7.1 complain thusly:
  3912. # icc: Command line warning: ignoring option '-M'; no argument required
  3913. # The diagnosis changed in icc 8.0:
  3914. # icc: Command line remark: option '-MP' not supported
  3915. if (grep 'ignoring option' conftest.err ||
  3916. grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
  3917. am_cv_CXX_dependencies_compiler_type=$depmode
  3918. break
  3919. fi
  3920. fi
  3921. done
  3922. cd ..
  3923. rm -rf conftest.dir
  3924. else
  3925. am_cv_CXX_dependencies_compiler_type=none
  3926. fi
  3927. fi
  3928. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
  3929. $as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
  3930. CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
  3931. if
  3932. test "x$enable_dependency_tracking" != xno \
  3933. && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
  3934. am__fastdepCXX_TRUE=
  3935. am__fastdepCXX_FALSE='#'
  3936. else
  3937. am__fastdepCXX_TRUE='#'
  3938. am__fastdepCXX_FALSE=
  3939. fi
  3940. ac_ext=c
  3941. ac_cpp='$CPP $CPPFLAGS'
  3942. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  3943. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  3944. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  3945. if test -n "$ac_tool_prefix"; then
  3946. # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
  3947. set dummy ${ac_tool_prefix}gcc; ac_word=$2
  3948. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3949. $as_echo_n "checking for $ac_word... " >&6; }
  3950. if test "${ac_cv_prog_CC+set}" = set; then :
  3951. $as_echo_n "(cached) " >&6
  3952. else
  3953. if test -n "$CC"; then
  3954. ac_cv_prog_CC="$CC" # Let the user override the test.
  3955. else
  3956. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3957. for as_dir in $PATH
  3958. do
  3959. IFS=$as_save_IFS
  3960. test -z "$as_dir" && as_dir=.
  3961. for ac_exec_ext in '' $ac_executable_extensions; do
  3962. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  3963. ac_cv_prog_CC="${ac_tool_prefix}gcc"
  3964. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  3965. break 2
  3966. fi
  3967. done
  3968. done
  3969. IFS=$as_save_IFS
  3970. fi
  3971. fi
  3972. CC=$ac_cv_prog_CC
  3973. if test -n "$CC"; then
  3974. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  3975. $as_echo "$CC" >&6; }
  3976. else
  3977. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3978. $as_echo "no" >&6; }
  3979. fi
  3980. fi
  3981. if test -z "$ac_cv_prog_CC"; then
  3982. ac_ct_CC=$CC
  3983. # Extract the first word of "gcc", so it can be a program name with args.
  3984. set dummy gcc; ac_word=$2
  3985. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3986. $as_echo_n "checking for $ac_word... " >&6; }
  3987. if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
  3988. $as_echo_n "(cached) " >&6
  3989. else
  3990. if test -n "$ac_ct_CC"; then
  3991. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  3992. else
  3993. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3994. for as_dir in $PATH
  3995. do
  3996. IFS=$as_save_IFS
  3997. test -z "$as_dir" && as_dir=.
  3998. for ac_exec_ext in '' $ac_executable_extensions; do
  3999. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  4000. ac_cv_prog_ac_ct_CC="gcc"
  4001. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4002. break 2
  4003. fi
  4004. done
  4005. done
  4006. IFS=$as_save_IFS
  4007. fi
  4008. fi
  4009. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  4010. if test -n "$ac_ct_CC"; then
  4011. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
  4012. $as_echo "$ac_ct_CC" >&6; }
  4013. else
  4014. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4015. $as_echo "no" >&6; }
  4016. fi
  4017. if test "x$ac_ct_CC" = x; then
  4018. CC=""
  4019. else
  4020. case $cross_compiling:$ac_tool_warned in
  4021. yes:)
  4022. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  4023. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  4024. ac_tool_warned=yes ;;
  4025. esac
  4026. CC=$ac_ct_CC
  4027. fi
  4028. else
  4029. CC="$ac_cv_prog_CC"
  4030. fi
  4031. if test -z "$CC"; then
  4032. if test -n "$ac_tool_prefix"; then
  4033. # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
  4034. set dummy ${ac_tool_prefix}cc; ac_word=$2
  4035. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4036. $as_echo_n "checking for $ac_word... " >&6; }
  4037. if test "${ac_cv_prog_CC+set}" = set; then :
  4038. $as_echo_n "(cached) " >&6
  4039. else
  4040. if test -n "$CC"; then
  4041. ac_cv_prog_CC="$CC" # Let the user override the test.
  4042. else
  4043. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4044. for as_dir in $PATH
  4045. do
  4046. IFS=$as_save_IFS
  4047. test -z "$as_dir" && as_dir=.
  4048. for ac_exec_ext in '' $ac_executable_extensions; do
  4049. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  4050. ac_cv_prog_CC="${ac_tool_prefix}cc"
  4051. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4052. break 2
  4053. fi
  4054. done
  4055. done
  4056. IFS=$as_save_IFS
  4057. fi
  4058. fi
  4059. CC=$ac_cv_prog_CC
  4060. if test -n "$CC"; then
  4061. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  4062. $as_echo "$CC" >&6; }
  4063. else
  4064. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4065. $as_echo "no" >&6; }
  4066. fi
  4067. fi
  4068. fi
  4069. if test -z "$CC"; then
  4070. # Extract the first word of "cc", so it can be a program name with args.
  4071. set dummy cc; ac_word=$2
  4072. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4073. $as_echo_n "checking for $ac_word... " >&6; }
  4074. if test "${ac_cv_prog_CC+set}" = set; then :
  4075. $as_echo_n "(cached) " >&6
  4076. else
  4077. if test -n "$CC"; then
  4078. ac_cv_prog_CC="$CC" # Let the user override the test.
  4079. else
  4080. ac_prog_rejected=no
  4081. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4082. for as_dir in $PATH
  4083. do
  4084. IFS=$as_save_IFS
  4085. test -z "$as_dir" && as_dir=.
  4086. for ac_exec_ext in '' $ac_executable_extensions; do
  4087. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  4088. if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
  4089. ac_prog_rejected=yes
  4090. continue
  4091. fi
  4092. ac_cv_prog_CC="cc"
  4093. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4094. break 2
  4095. fi
  4096. done
  4097. done
  4098. IFS=$as_save_IFS
  4099. if test $ac_prog_rejected = yes; then
  4100. # We found a bogon in the path, so make sure we never use it.
  4101. set dummy $ac_cv_prog_CC
  4102. shift
  4103. if test $# != 0; then
  4104. # We chose a different compiler from the bogus one.
  4105. # However, it has the same basename, so the bogon will be chosen
  4106. # first if we set CC to just the basename; use the full file name.
  4107. shift
  4108. ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
  4109. fi
  4110. fi
  4111. fi
  4112. fi
  4113. CC=$ac_cv_prog_CC
  4114. if test -n "$CC"; then
  4115. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  4116. $as_echo "$CC" >&6; }
  4117. else
  4118. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4119. $as_echo "no" >&6; }
  4120. fi
  4121. fi
  4122. if test -z "$CC"; then
  4123. if test -n "$ac_tool_prefix"; then
  4124. for ac_prog in cl.exe
  4125. do
  4126. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  4127. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  4128. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4129. $as_echo_n "checking for $ac_word... " >&6; }
  4130. if test "${ac_cv_prog_CC+set}" = set; then :
  4131. $as_echo_n "(cached) " >&6
  4132. else
  4133. if test -n "$CC"; then
  4134. ac_cv_prog_CC="$CC" # Let the user override the test.
  4135. else
  4136. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4137. for as_dir in $PATH
  4138. do
  4139. IFS=$as_save_IFS
  4140. test -z "$as_dir" && as_dir=.
  4141. for ac_exec_ext in '' $ac_executable_extensions; do
  4142. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  4143. ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
  4144. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4145. break 2
  4146. fi
  4147. done
  4148. done
  4149. IFS=$as_save_IFS
  4150. fi
  4151. fi
  4152. CC=$ac_cv_prog_CC
  4153. if test -n "$CC"; then
  4154. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  4155. $as_echo "$CC" >&6; }
  4156. else
  4157. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4158. $as_echo "no" >&6; }
  4159. fi
  4160. test -n "$CC" && break
  4161. done
  4162. fi
  4163. if test -z "$CC"; then
  4164. ac_ct_CC=$CC
  4165. for ac_prog in cl.exe
  4166. do
  4167. # Extract the first word of "$ac_prog", so it can be a program name with args.
  4168. set dummy $ac_prog; ac_word=$2
  4169. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4170. $as_echo_n "checking for $ac_word... " >&6; }
  4171. if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
  4172. $as_echo_n "(cached) " >&6
  4173. else
  4174. if test -n "$ac_ct_CC"; then
  4175. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  4176. else
  4177. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4178. for as_dir in $PATH
  4179. do
  4180. IFS=$as_save_IFS
  4181. test -z "$as_dir" && as_dir=.
  4182. for ac_exec_ext in '' $ac_executable_extensions; do
  4183. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  4184. ac_cv_prog_ac_ct_CC="$ac_prog"
  4185. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4186. break 2
  4187. fi
  4188. done
  4189. done
  4190. IFS=$as_save_IFS
  4191. fi
  4192. fi
  4193. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  4194. if test -n "$ac_ct_CC"; then
  4195. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
  4196. $as_echo "$ac_ct_CC" >&6; }
  4197. else
  4198. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4199. $as_echo "no" >&6; }
  4200. fi
  4201. test -n "$ac_ct_CC" && break
  4202. done
  4203. if test "x$ac_ct_CC" = x; then
  4204. CC=""
  4205. else
  4206. case $cross_compiling:$ac_tool_warned in
  4207. yes:)
  4208. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  4209. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  4210. ac_tool_warned=yes ;;
  4211. esac
  4212. CC=$ac_ct_CC
  4213. fi
  4214. fi
  4215. fi
  4216. test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  4217. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  4218. as_fn_error "no acceptable C compiler found in \$PATH
  4219. See \`config.log' for more details." "$LINENO" 5; }
  4220. # Provide some information about the compiler.
  4221. $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
  4222. set X $ac_compile
  4223. ac_compiler=$2
  4224. for ac_option in --version -v -V -qversion; do
  4225. { { ac_try="$ac_compiler $ac_option >&5"
  4226. case "(($ac_try" in
  4227. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  4228. *) ac_try_echo=$ac_try;;
  4229. esac
  4230. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  4231. $as_echo "$ac_try_echo"; } >&5
  4232. (eval "$ac_compiler $ac_option >&5") 2>conftest.err
  4233. ac_status=$?
  4234. if test -s conftest.err; then
  4235. sed '10a\
  4236. ... rest of stderr output deleted ...
  4237. 10q' conftest.err >conftest.er1
  4238. cat conftest.er1 >&5
  4239. rm -f conftest.er1 conftest.err
  4240. fi
  4241. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  4242. test $ac_status = 0; }
  4243. done
  4244. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
  4245. $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
  4246. if test "${ac_cv_c_compiler_gnu+set}" = set; then :
  4247. $as_echo_n "(cached) " >&6
  4248. else
  4249. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4250. /* end confdefs.h. */
  4251. int
  4252. main ()
  4253. {
  4254. #ifndef __GNUC__
  4255. choke me
  4256. #endif
  4257. ;
  4258. return 0;
  4259. }
  4260. _ACEOF
  4261. if ac_fn_c_try_compile "$LINENO"; then :
  4262. ac_compiler_gnu=yes
  4263. else
  4264. ac_compiler_gnu=no
  4265. fi
  4266. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4267. ac_cv_c_compiler_gnu=$ac_compiler_gnu
  4268. fi
  4269. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
  4270. $as_echo "$ac_cv_c_compiler_gnu" >&6; }
  4271. if test $ac_compiler_gnu = yes; then
  4272. GCC=yes
  4273. else
  4274. GCC=
  4275. fi
  4276. ac_test_CFLAGS=${CFLAGS+set}
  4277. ac_save_CFLAGS=$CFLAGS
  4278. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
  4279. $as_echo_n "checking whether $CC accepts -g... " >&6; }
  4280. if test "${ac_cv_prog_cc_g+set}" = set; then :
  4281. $as_echo_n "(cached) " >&6
  4282. else
  4283. ac_save_c_werror_flag=$ac_c_werror_flag
  4284. ac_c_werror_flag=yes
  4285. ac_cv_prog_cc_g=no
  4286. CFLAGS="-g"
  4287. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4288. /* end confdefs.h. */
  4289. int
  4290. main ()
  4291. {
  4292. ;
  4293. return 0;
  4294. }
  4295. _ACEOF
  4296. if ac_fn_c_try_compile "$LINENO"; then :
  4297. ac_cv_prog_cc_g=yes
  4298. else
  4299. CFLAGS=""
  4300. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4301. /* end confdefs.h. */
  4302. int
  4303. main ()
  4304. {
  4305. ;
  4306. return 0;
  4307. }
  4308. _ACEOF
  4309. if ac_fn_c_try_compile "$LINENO"; then :
  4310. else
  4311. ac_c_werror_flag=$ac_save_c_werror_flag
  4312. CFLAGS="-g"
  4313. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4314. /* end confdefs.h. */
  4315. int
  4316. main ()
  4317. {
  4318. ;
  4319. return 0;
  4320. }
  4321. _ACEOF
  4322. if ac_fn_c_try_compile "$LINENO"; then :
  4323. ac_cv_prog_cc_g=yes
  4324. fi
  4325. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4326. fi
  4327. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4328. fi
  4329. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4330. ac_c_werror_flag=$ac_save_c_werror_flag
  4331. fi
  4332. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
  4333. $as_echo "$ac_cv_prog_cc_g" >&6; }
  4334. if test "$ac_test_CFLAGS" = set; then
  4335. CFLAGS=$ac_save_CFLAGS
  4336. elif test $ac_cv_prog_cc_g = yes; then
  4337. if test "$GCC" = yes; then
  4338. CFLAGS="-g -O2"
  4339. else
  4340. CFLAGS="-g"
  4341. fi
  4342. else
  4343. if test "$GCC" = yes; then
  4344. CFLAGS="-O2"
  4345. else
  4346. CFLAGS=
  4347. fi
  4348. fi
  4349. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
  4350. $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
  4351. if test "${ac_cv_prog_cc_c89+set}" = set; then :
  4352. $as_echo_n "(cached) " >&6
  4353. else
  4354. ac_cv_prog_cc_c89=no
  4355. ac_save_CC=$CC
  4356. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4357. /* end confdefs.h. */
  4358. #include <stdarg.h>
  4359. #include <stdio.h>
  4360. #include <sys/types.h>
  4361. #include <sys/stat.h>
  4362. /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
  4363. struct buf { int x; };
  4364. FILE * (*rcsopen) (struct buf *, struct stat *, int);
  4365. static char *e (p, i)
  4366. char **p;
  4367. int i;
  4368. {
  4369. return p[i];
  4370. }
  4371. static char *f (char * (*g) (char **, int), char **p, ...)
  4372. {
  4373. char *s;
  4374. va_list v;
  4375. va_start (v,p);
  4376. s = g (p, va_arg (v,int));
  4377. va_end (v);
  4378. return s;
  4379. }
  4380. /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
  4381. function prototypes and stuff, but not '\xHH' hex character constants.
  4382. These don't provoke an error unfortunately, instead are silently treated
  4383. as 'x'. The following induces an error, until -std is added to get
  4384. proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
  4385. array size at least. It's necessary to write '\x00'==0 to get something
  4386. that's true only with -std. */
  4387. int osf4_cc_array ['\x00' == 0 ? 1 : -1];
  4388. /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
  4389. inside strings and character constants. */
  4390. #define FOO(x) 'x'
  4391. int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
  4392. int test (int i, double x);
  4393. struct s1 {int (*f) (int a);};
  4394. struct s2 {int (*f) (double a);};
  4395. int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
  4396. int argc;
  4397. char **argv;
  4398. int
  4399. main ()
  4400. {
  4401. return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
  4402. ;
  4403. return 0;
  4404. }
  4405. _ACEOF
  4406. for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
  4407. -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
  4408. do
  4409. CC="$ac_save_CC $ac_arg"
  4410. if ac_fn_c_try_compile "$LINENO"; then :
  4411. ac_cv_prog_cc_c89=$ac_arg
  4412. fi
  4413. rm -f core conftest.err conftest.$ac_objext
  4414. test "x$ac_cv_prog_cc_c89" != "xno" && break
  4415. done
  4416. rm -f conftest.$ac_ext
  4417. CC=$ac_save_CC
  4418. fi
  4419. # AC_CACHE_VAL
  4420. case "x$ac_cv_prog_cc_c89" in
  4421. x)
  4422. { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
  4423. $as_echo "none needed" >&6; } ;;
  4424. xno)
  4425. { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
  4426. $as_echo "unsupported" >&6; } ;;
  4427. *)
  4428. CC="$CC $ac_cv_prog_cc_c89"
  4429. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
  4430. $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
  4431. esac
  4432. if test "x$ac_cv_prog_cc_c89" != xno; then :
  4433. fi
  4434. ac_ext=c
  4435. ac_cpp='$CPP $CPPFLAGS'
  4436. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  4437. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  4438. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  4439. depcc="$CC" am_compiler_list=
  4440. { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
  4441. $as_echo_n "checking dependency style of $depcc... " >&6; }
  4442. if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then :
  4443. $as_echo_n "(cached) " >&6
  4444. else
  4445. if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
  4446. # We make a subdir and do the tests there. Otherwise we can end up
  4447. # making bogus files that we don't know about and never remove. For
  4448. # instance it was reported that on HP-UX the gcc test will end up
  4449. # making a dummy file named `D' -- because `-MD' means `put the output
  4450. # in D'.
  4451. mkdir conftest.dir
  4452. # Copy depcomp to subdir because otherwise we won't find it if we're
  4453. # using a relative directory.
  4454. cp "$am_depcomp" conftest.dir
  4455. cd conftest.dir
  4456. # We will build objects and dependencies in a subdirectory because
  4457. # it helps to detect inapplicable dependency modes. For instance
  4458. # both Tru64's cc and ICC support -MD to output dependencies as a
  4459. # side effect of compilation, but ICC will put the dependencies in
  4460. # the current directory while Tru64 will put them in the object
  4461. # directory.
  4462. mkdir sub
  4463. am_cv_CC_dependencies_compiler_type=none
  4464. if test "$am_compiler_list" = ""; then
  4465. am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
  4466. fi
  4467. am__universal=false
  4468. case " $depcc " in #(
  4469. *\ -arch\ *\ -arch\ *) am__universal=true ;;
  4470. esac
  4471. for depmode in $am_compiler_list; do
  4472. # Setup a source with many dependencies, because some compilers
  4473. # like to wrap large dependency lists on column 80 (with \), and
  4474. # we should not choose a depcomp mode which is confused by this.
  4475. #
  4476. # We need to recreate these files for each test, as the compiler may
  4477. # overwrite some of them when testing with obscure command lines.
  4478. # This happens at least with the AIX C compiler.
  4479. : > sub/conftest.c
  4480. for i in 1 2 3 4 5 6; do
  4481. echo '#include "conftst'$i'.h"' >> sub/conftest.c
  4482. # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
  4483. # Solaris 8's {/usr,}/bin/sh.
  4484. touch sub/conftst$i.h
  4485. done
  4486. echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
  4487. # We check with `-c' and `-o' for the sake of the "dashmstdout"
  4488. # mode. It turns out that the SunPro C++ compiler does not properly
  4489. # handle `-M -o', and we need to detect this. Also, some Intel
  4490. # versions had trouble with output in subdirs
  4491. am__obj=sub/conftest.${OBJEXT-o}
  4492. am__minus_obj="-o $am__obj"
  4493. case $depmode in
  4494. gcc)
  4495. # This depmode causes a compiler race in universal mode.
  4496. test "$am__universal" = false || continue
  4497. ;;
  4498. nosideeffect)
  4499. # after this tag, mechanisms are not by side-effect, so they'll
  4500. # only be used when explicitly requested
  4501. if test "x$enable_dependency_tracking" = xyes; then
  4502. continue
  4503. else
  4504. break
  4505. fi
  4506. ;;
  4507. msvisualcpp | msvcmsys)
  4508. # This compiler won't grok `-c -o', but also, the minuso test has
  4509. # not run yet. These depmodes are late enough in the game, and
  4510. # so weak that their functioning should not be impacted.
  4511. am__obj=conftest.${OBJEXT-o}
  4512. am__minus_obj=
  4513. ;;
  4514. none) break ;;
  4515. esac
  4516. if depmode=$depmode \
  4517. source=sub/conftest.c object=$am__obj \
  4518. depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
  4519. $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
  4520. >/dev/null 2>conftest.err &&
  4521. grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
  4522. grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
  4523. grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
  4524. ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
  4525. # icc doesn't choke on unknown options, it will just issue warnings
  4526. # or remarks (even with -Werror). So we grep stderr for any message
  4527. # that says an option was ignored or not supported.
  4528. # When given -MP, icc 7.0 and 7.1 complain thusly:
  4529. # icc: Command line warning: ignoring option '-M'; no argument required
  4530. # The diagnosis changed in icc 8.0:
  4531. # icc: Command line remark: option '-MP' not supported
  4532. if (grep 'ignoring option' conftest.err ||
  4533. grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
  4534. am_cv_CC_dependencies_compiler_type=$depmode
  4535. break
  4536. fi
  4537. fi
  4538. done
  4539. cd ..
  4540. rm -rf conftest.dir
  4541. else
  4542. am_cv_CC_dependencies_compiler_type=none
  4543. fi
  4544. fi
  4545. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
  4546. $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
  4547. CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
  4548. if
  4549. test "x$enable_dependency_tracking" != xno \
  4550. && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
  4551. am__fastdepCC_TRUE=
  4552. am__fastdepCC_FALSE='#'
  4553. else
  4554. am__fastdepCC_TRUE='#'
  4555. am__fastdepCC_FALSE=
  4556. fi
  4557. if test -n "$ac_tool_prefix"; then
  4558. # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
  4559. set dummy ${ac_tool_prefix}ranlib; ac_word=$2
  4560. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4561. $as_echo_n "checking for $ac_word... " >&6; }
  4562. if test "${ac_cv_prog_RANLIB+set}" = set; then :
  4563. $as_echo_n "(cached) " >&6
  4564. else
  4565. if test -n "$RANLIB"; then
  4566. ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
  4567. else
  4568. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4569. for as_dir in $PATH
  4570. do
  4571. IFS=$as_save_IFS
  4572. test -z "$as_dir" && as_dir=.
  4573. for ac_exec_ext in '' $ac_executable_extensions; do
  4574. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  4575. ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
  4576. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4577. break 2
  4578. fi
  4579. done
  4580. done
  4581. IFS=$as_save_IFS
  4582. fi
  4583. fi
  4584. RANLIB=$ac_cv_prog_RANLIB
  4585. if test -n "$RANLIB"; then
  4586. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
  4587. $as_echo "$RANLIB" >&6; }
  4588. else
  4589. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4590. $as_echo "no" >&6; }
  4591. fi
  4592. fi
  4593. if test -z "$ac_cv_prog_RANLIB"; then
  4594. ac_ct_RANLIB=$RANLIB
  4595. # Extract the first word of "ranlib", so it can be a program name with args.
  4596. set dummy ranlib; ac_word=$2
  4597. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4598. $as_echo_n "checking for $ac_word... " >&6; }
  4599. if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
  4600. $as_echo_n "(cached) " >&6
  4601. else
  4602. if test -n "$ac_ct_RANLIB"; then
  4603. ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
  4604. else
  4605. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4606. for as_dir in $PATH
  4607. do
  4608. IFS=$as_save_IFS
  4609. test -z "$as_dir" && as_dir=.
  4610. for ac_exec_ext in '' $ac_executable_extensions; do
  4611. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  4612. ac_cv_prog_ac_ct_RANLIB="ranlib"
  4613. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4614. break 2
  4615. fi
  4616. done
  4617. done
  4618. IFS=$as_save_IFS
  4619. fi
  4620. fi
  4621. ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
  4622. if test -n "$ac_ct_RANLIB"; then
  4623. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
  4624. $as_echo "$ac_ct_RANLIB" >&6; }
  4625. else
  4626. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4627. $as_echo "no" >&6; }
  4628. fi
  4629. if test "x$ac_ct_RANLIB" = x; then
  4630. RANLIB=":"
  4631. else
  4632. case $cross_compiling:$ac_tool_warned in
  4633. yes:)
  4634. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  4635. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  4636. ac_tool_warned=yes ;;
  4637. esac
  4638. RANLIB=$ac_ct_RANLIB
  4639. fi
  4640. else
  4641. RANLIB="$ac_cv_prog_RANLIB"
  4642. fi
  4643. for ac_prog in 'bison -y' byacc
  4644. do
  4645. # Extract the first word of "$ac_prog", so it can be a program name with args.
  4646. set dummy $ac_prog; ac_word=$2
  4647. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4648. $as_echo_n "checking for $ac_word... " >&6; }
  4649. if test "${ac_cv_prog_YACC+set}" = set; then :
  4650. $as_echo_n "(cached) " >&6
  4651. else
  4652. if test -n "$YACC"; then
  4653. ac_cv_prog_YACC="$YACC" # Let the user override the test.
  4654. else
  4655. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4656. for as_dir in $PATH
  4657. do
  4658. IFS=$as_save_IFS
  4659. test -z "$as_dir" && as_dir=.
  4660. for ac_exec_ext in '' $ac_executable_extensions; do
  4661. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  4662. ac_cv_prog_YACC="$ac_prog"
  4663. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4664. break 2
  4665. fi
  4666. done
  4667. done
  4668. IFS=$as_save_IFS
  4669. fi
  4670. fi
  4671. YACC=$ac_cv_prog_YACC
  4672. if test -n "$YACC"; then
  4673. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $YACC" >&5
  4674. $as_echo "$YACC" >&6; }
  4675. else
  4676. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4677. $as_echo "no" >&6; }
  4678. fi
  4679. test -n "$YACC" && break
  4680. done
  4681. test -n "$YACC" || YACC="yacc"
  4682. # Setting language choice
  4683. ac_ext=cpp
  4684. ac_cpp='$CXXCPP $CPPFLAGS'
  4685. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  4686. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  4687. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  4688. # Enable system extensions
  4689. ac_ext=cpp
  4690. ac_cpp='$CXXCPP $CPPFLAGS'
  4691. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  4692. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  4693. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  4694. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
  4695. $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
  4696. if test -z "$CXXCPP"; then
  4697. if test "${ac_cv_prog_CXXCPP+set}" = set; then :
  4698. $as_echo_n "(cached) " >&6
  4699. else
  4700. # Double quotes because CXXCPP needs to be expanded
  4701. for CXXCPP in "$CXX -E" "/lib/cpp"
  4702. do
  4703. ac_preproc_ok=false
  4704. for ac_cxx_preproc_warn_flag in '' yes
  4705. do
  4706. # Use a header file that comes with gcc, so configuring glibc
  4707. # with a fresh cross-compiler works.
  4708. # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  4709. # <limits.h> exists even on freestanding compilers.
  4710. # On the NeXT, cc -E runs the code through the compiler's parser,
  4711. # not just through cpp. "Syntax error" is here to catch this case.
  4712. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4713. /* end confdefs.h. */
  4714. #ifdef __STDC__
  4715. # include <limits.h>
  4716. #else
  4717. # include <assert.h>
  4718. #endif
  4719. Syntax error
  4720. _ACEOF
  4721. if ac_fn_cxx_try_cpp "$LINENO"; then :
  4722. else
  4723. # Broken: fails on valid input.
  4724. continue
  4725. fi
  4726. rm -f conftest.err conftest.$ac_ext
  4727. # OK, works on sane cases. Now check whether nonexistent headers
  4728. # can be detected and how.
  4729. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4730. /* end confdefs.h. */
  4731. #include <ac_nonexistent.h>
  4732. _ACEOF
  4733. if ac_fn_cxx_try_cpp "$LINENO"; then :
  4734. # Broken: success on invalid input.
  4735. continue
  4736. else
  4737. # Passes both tests.
  4738. ac_preproc_ok=:
  4739. break
  4740. fi
  4741. rm -f conftest.err conftest.$ac_ext
  4742. done
  4743. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  4744. rm -f conftest.err conftest.$ac_ext
  4745. if $ac_preproc_ok; then :
  4746. break
  4747. fi
  4748. done
  4749. ac_cv_prog_CXXCPP=$CXXCPP
  4750. fi
  4751. CXXCPP=$ac_cv_prog_CXXCPP
  4752. else
  4753. ac_cv_prog_CXXCPP=$CXXCPP
  4754. fi
  4755. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
  4756. $as_echo "$CXXCPP" >&6; }
  4757. ac_preproc_ok=false
  4758. for ac_cxx_preproc_warn_flag in '' yes
  4759. do
  4760. # Use a header file that comes with gcc, so configuring glibc
  4761. # with a fresh cross-compiler works.
  4762. # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  4763. # <limits.h> exists even on freestanding compilers.
  4764. # On the NeXT, cc -E runs the code through the compiler's parser,
  4765. # not just through cpp. "Syntax error" is here to catch this case.
  4766. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4767. /* end confdefs.h. */
  4768. #ifdef __STDC__
  4769. # include <limits.h>
  4770. #else
  4771. # include <assert.h>
  4772. #endif
  4773. Syntax error
  4774. _ACEOF
  4775. if ac_fn_cxx_try_cpp "$LINENO"; then :
  4776. else
  4777. # Broken: fails on valid input.
  4778. continue
  4779. fi
  4780. rm -f conftest.err conftest.$ac_ext
  4781. # OK, works on sane cases. Now check whether nonexistent headers
  4782. # can be detected and how.
  4783. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4784. /* end confdefs.h. */
  4785. #include <ac_nonexistent.h>
  4786. _ACEOF
  4787. if ac_fn_cxx_try_cpp "$LINENO"; then :
  4788. # Broken: success on invalid input.
  4789. continue
  4790. else
  4791. # Passes both tests.
  4792. ac_preproc_ok=:
  4793. break
  4794. fi
  4795. rm -f conftest.err conftest.$ac_ext
  4796. done
  4797. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  4798. rm -f conftest.err conftest.$ac_ext
  4799. if $ac_preproc_ok; then :
  4800. else
  4801. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  4802. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  4803. as_fn_error "C++ preprocessor \"$CXXCPP\" fails sanity check
  4804. See \`config.log' for more details." "$LINENO" 5; }
  4805. fi
  4806. ac_ext=cpp
  4807. ac_cpp='$CXXCPP $CPPFLAGS'
  4808. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  4809. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  4810. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  4811. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
  4812. $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
  4813. if test "${ac_cv_path_GREP+set}" = set; then :
  4814. $as_echo_n "(cached) " >&6
  4815. else
  4816. if test -z "$GREP"; then
  4817. ac_path_GREP_found=false
  4818. # Loop through the user's path and test for each of PROGNAME-LIST
  4819. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4820. for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
  4821. do
  4822. IFS=$as_save_IFS
  4823. test -z "$as_dir" && as_dir=.
  4824. for ac_prog in grep ggrep; do
  4825. for ac_exec_ext in '' $ac_executable_extensions; do
  4826. ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
  4827. { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
  4828. # Check for GNU ac_path_GREP and select it if it is found.
  4829. # Check for GNU $ac_path_GREP
  4830. case `"$ac_path_GREP" --version 2>&1` in
  4831. *GNU*)
  4832. ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
  4833. *)
  4834. ac_count=0
  4835. $as_echo_n 0123456789 >"conftest.in"
  4836. while :
  4837. do
  4838. cat "conftest.in" "conftest.in" >"conftest.tmp"
  4839. mv "conftest.tmp" "conftest.in"
  4840. cp "conftest.in" "conftest.nl"
  4841. $as_echo 'GREP' >> "conftest.nl"
  4842. "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
  4843. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  4844. as_fn_arith $ac_count + 1 && ac_count=$as_val
  4845. if test $ac_count -gt ${ac_path_GREP_max-0}; then
  4846. # Best one so far, save it but keep looking for a better one
  4847. ac_cv_path_GREP="$ac_path_GREP"
  4848. ac_path_GREP_max=$ac_count
  4849. fi
  4850. # 10*(2^10) chars as input seems more than enough
  4851. test $ac_count -gt 10 && break
  4852. done
  4853. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  4854. esac
  4855. $ac_path_GREP_found && break 3
  4856. done
  4857. done
  4858. done
  4859. IFS=$as_save_IFS
  4860. if test -z "$ac_cv_path_GREP"; then
  4861. as_fn_error "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
  4862. fi
  4863. else
  4864. ac_cv_path_GREP=$GREP
  4865. fi
  4866. fi
  4867. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
  4868. $as_echo "$ac_cv_path_GREP" >&6; }
  4869. GREP="$ac_cv_path_GREP"
  4870. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
  4871. $as_echo_n "checking for egrep... " >&6; }
  4872. if test "${ac_cv_path_EGREP+set}" = set; then :
  4873. $as_echo_n "(cached) " >&6
  4874. else
  4875. if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
  4876. then ac_cv_path_EGREP="$GREP -E"
  4877. else
  4878. if test -z "$EGREP"; then
  4879. ac_path_EGREP_found=false
  4880. # Loop through the user's path and test for each of PROGNAME-LIST
  4881. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4882. for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
  4883. do
  4884. IFS=$as_save_IFS
  4885. test -z "$as_dir" && as_dir=.
  4886. for ac_prog in egrep; do
  4887. for ac_exec_ext in '' $ac_executable_extensions; do
  4888. ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
  4889. { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
  4890. # Check for GNU ac_path_EGREP and select it if it is found.
  4891. # Check for GNU $ac_path_EGREP
  4892. case `"$ac_path_EGREP" --version 2>&1` in
  4893. *GNU*)
  4894. ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
  4895. *)
  4896. ac_count=0
  4897. $as_echo_n 0123456789 >"conftest.in"
  4898. while :
  4899. do
  4900. cat "conftest.in" "conftest.in" >"conftest.tmp"
  4901. mv "conftest.tmp" "conftest.in"
  4902. cp "conftest.in" "conftest.nl"
  4903. $as_echo 'EGREP' >> "conftest.nl"
  4904. "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
  4905. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  4906. as_fn_arith $ac_count + 1 && ac_count=$as_val
  4907. if test $ac_count -gt ${ac_path_EGREP_max-0}; then
  4908. # Best one so far, save it but keep looking for a better one
  4909. ac_cv_path_EGREP="$ac_path_EGREP"
  4910. ac_path_EGREP_max=$ac_count
  4911. fi
  4912. # 10*(2^10) chars as input seems more than enough
  4913. test $ac_count -gt 10 && break
  4914. done
  4915. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  4916. esac
  4917. $ac_path_EGREP_found && break 3
  4918. done
  4919. done
  4920. done
  4921. IFS=$as_save_IFS
  4922. if test -z "$ac_cv_path_EGREP"; then
  4923. as_fn_error "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
  4924. fi
  4925. else
  4926. ac_cv_path_EGREP=$EGREP
  4927. fi
  4928. fi
  4929. fi
  4930. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
  4931. $as_echo "$ac_cv_path_EGREP" >&6; }
  4932. EGREP="$ac_cv_path_EGREP"
  4933. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
  4934. $as_echo_n "checking for ANSI C header files... " >&6; }
  4935. if test "${ac_cv_header_stdc+set}" = set; then :
  4936. $as_echo_n "(cached) " >&6
  4937. else
  4938. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4939. /* end confdefs.h. */
  4940. #include <stdlib.h>
  4941. #include <stdarg.h>
  4942. #include <string.h>
  4943. #include <float.h>
  4944. int
  4945. main ()
  4946. {
  4947. ;
  4948. return 0;
  4949. }
  4950. _ACEOF
  4951. if ac_fn_cxx_try_compile "$LINENO"; then :
  4952. ac_cv_header_stdc=yes
  4953. else
  4954. ac_cv_header_stdc=no
  4955. fi
  4956. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4957. if test $ac_cv_header_stdc = yes; then
  4958. # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
  4959. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4960. /* end confdefs.h. */
  4961. #include <string.h>
  4962. _ACEOF
  4963. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  4964. $EGREP "memchr" >/dev/null 2>&1; then :
  4965. else
  4966. ac_cv_header_stdc=no
  4967. fi
  4968. rm -f conftest*
  4969. fi
  4970. if test $ac_cv_header_stdc = yes; then
  4971. # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
  4972. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4973. /* end confdefs.h. */
  4974. #include <stdlib.h>
  4975. _ACEOF
  4976. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  4977. $EGREP "free" >/dev/null 2>&1; then :
  4978. else
  4979. ac_cv_header_stdc=no
  4980. fi
  4981. rm -f conftest*
  4982. fi
  4983. if test $ac_cv_header_stdc = yes; then
  4984. # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
  4985. if test "$cross_compiling" = yes; then :
  4986. :
  4987. else
  4988. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4989. /* end confdefs.h. */
  4990. #include <ctype.h>
  4991. #include <stdlib.h>
  4992. #if ((' ' & 0x0FF) == 0x020)
  4993. # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
  4994. # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
  4995. #else
  4996. # define ISLOWER(c) \
  4997. (('a' <= (c) && (c) <= 'i') \
  4998. || ('j' <= (c) && (c) <= 'r') \
  4999. || ('s' <= (c) && (c) <= 'z'))
  5000. # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
  5001. #endif
  5002. #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
  5003. int
  5004. main ()
  5005. {
  5006. int i;
  5007. for (i = 0; i < 256; i++)
  5008. if (XOR (islower (i), ISLOWER (i))
  5009. || toupper (i) != TOUPPER (i))
  5010. return 2;
  5011. return 0;
  5012. }
  5013. _ACEOF
  5014. if ac_fn_cxx_try_run "$LINENO"; then :
  5015. else
  5016. ac_cv_header_stdc=no
  5017. fi
  5018. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  5019. conftest.$ac_objext conftest.beam conftest.$ac_ext
  5020. fi
  5021. fi
  5022. fi
  5023. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
  5024. $as_echo "$ac_cv_header_stdc" >&6; }
  5025. if test $ac_cv_header_stdc = yes; then
  5026. $as_echo "#define STDC_HEADERS 1" >>confdefs.h
  5027. fi
  5028. # On IRIX 5.3, sys/types and inttypes.h are conflicting.
  5029. for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
  5030. inttypes.h stdint.h unistd.h
  5031. do :
  5032. as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
  5033. ac_fn_cxx_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
  5034. "
  5035. eval as_val=\$$as_ac_Header
  5036. if test "x$as_val" = x""yes; then :
  5037. cat >>confdefs.h <<_ACEOF
  5038. #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
  5039. _ACEOF
  5040. fi
  5041. done
  5042. ac_fn_cxx_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
  5043. if test "x$ac_cv_header_minix_config_h" = x""yes; then :
  5044. MINIX=yes
  5045. else
  5046. MINIX=
  5047. fi
  5048. if test "$MINIX" = yes; then
  5049. $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
  5050. $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
  5051. $as_echo "#define _MINIX 1" >>confdefs.h
  5052. fi
  5053. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
  5054. $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
  5055. if test "${ac_cv_safe_to_define___extensions__+set}" = set; then :
  5056. $as_echo_n "(cached) " >&6
  5057. else
  5058. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5059. /* end confdefs.h. */
  5060. # define __EXTENSIONS__ 1
  5061. $ac_includes_default
  5062. int
  5063. main ()
  5064. {
  5065. ;
  5066. return 0;
  5067. }
  5068. _ACEOF
  5069. if ac_fn_cxx_try_compile "$LINENO"; then :
  5070. ac_cv_safe_to_define___extensions__=yes
  5071. else
  5072. ac_cv_safe_to_define___extensions__=no
  5073. fi
  5074. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  5075. fi
  5076. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
  5077. $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
  5078. test $ac_cv_safe_to_define___extensions__ = yes &&
  5079. $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
  5080. $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
  5081. $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
  5082. $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
  5083. $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
  5084. # Checks for libraries.
  5085. if test "x$with_libxml2" = "xyes"; then
  5086. # Check whether --with-xml-prefix was given.
  5087. if test "${with_xml_prefix+set}" = set; then :
  5088. withval=$with_xml_prefix; xml_config_prefix="$withval"
  5089. else
  5090. xml_config_prefix=""
  5091. fi
  5092. # Check whether --with-xml-exec-prefix was given.
  5093. if test "${with_xml_exec_prefix+set}" = set; then :
  5094. withval=$with_xml_exec_prefix; xml_config_exec_prefix="$withval"
  5095. else
  5096. xml_config_exec_prefix=""
  5097. fi
  5098. # Check whether --enable-xmltest was given.
  5099. if test "${enable_xmltest+set}" = set; then :
  5100. enableval=$enable_xmltest;
  5101. else
  5102. enable_xmltest=yes
  5103. fi
  5104. if test x$xml_config_exec_prefix != x ; then
  5105. xml_config_args="$xml_config_args"
  5106. if test x${XML2_CONFIG+set} != xset ; then
  5107. XML2_CONFIG=$xml_config_exec_prefix/bin/xml2-config
  5108. fi
  5109. fi
  5110. if test x$xml_config_prefix != x ; then
  5111. xml_config_args="$xml_config_args --prefix=$xml_config_prefix"
  5112. if test x${XML2_CONFIG+set} != xset ; then
  5113. XML2_CONFIG=$xml_config_prefix/bin/xml2-config
  5114. fi
  5115. fi
  5116. # Extract the first word of "xml2-config", so it can be a program name with args.
  5117. set dummy xml2-config; ac_word=$2
  5118. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5119. $as_echo_n "checking for $ac_word... " >&6; }
  5120. if test "${ac_cv_path_XML2_CONFIG+set}" = set; then :
  5121. $as_echo_n "(cached) " >&6
  5122. else
  5123. case $XML2_CONFIG in
  5124. [\\/]* | ?:[\\/]*)
  5125. ac_cv_path_XML2_CONFIG="$XML2_CONFIG" # Let the user override the test with a path.
  5126. ;;
  5127. *)
  5128. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5129. for as_dir in $PATH
  5130. do
  5131. IFS=$as_save_IFS
  5132. test -z "$as_dir" && as_dir=.
  5133. for ac_exec_ext in '' $ac_executable_extensions; do
  5134. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  5135. ac_cv_path_XML2_CONFIG="$as_dir/$ac_word$ac_exec_ext"
  5136. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5137. break 2
  5138. fi
  5139. done
  5140. done
  5141. IFS=$as_save_IFS
  5142. test -z "$ac_cv_path_XML2_CONFIG" && ac_cv_path_XML2_CONFIG="no"
  5143. ;;
  5144. esac
  5145. fi
  5146. XML2_CONFIG=$ac_cv_path_XML2_CONFIG
  5147. if test -n "$XML2_CONFIG"; then
  5148. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XML2_CONFIG" >&5
  5149. $as_echo "$XML2_CONFIG" >&6; }
  5150. else
  5151. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5152. $as_echo "no" >&6; }
  5153. fi
  5154. min_xml_version=2.6.24
  5155. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libxml - version >= $min_xml_version" >&5
  5156. $as_echo_n "checking for libxml - version >= $min_xml_version... " >&6; }
  5157. no_xml=""
  5158. if test "$XML2_CONFIG" = "no" ; then
  5159. no_xml=yes
  5160. else
  5161. XML_CPPFLAGS=`$XML2_CONFIG $xml_config_args --cflags`
  5162. XML_LIBS=`$XML2_CONFIG $xml_config_args --libs`
  5163. xml_config_major_version=`$XML2_CONFIG $xml_config_args --version | \
  5164. sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
  5165. xml_config_minor_version=`$XML2_CONFIG $xml_config_args --version | \
  5166. sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
  5167. xml_config_micro_version=`$XML2_CONFIG $xml_config_args --version | \
  5168. sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
  5169. if test "x$enable_xmltest" = "xyes" ; then
  5170. ac_save_CPPFLAGS="$CPPFLAGS"
  5171. ac_save_LIBS="$LIBS"
  5172. CPPFLAGS="$CPPFLAGS $XML_CPPFLAGS"
  5173. LIBS="$XML_LIBS $LIBS"
  5174. rm -f conf.xmltest
  5175. if test "$cross_compiling" = yes; then :
  5176. echo $ac_n "cross compiling; assumed OK... $ac_c"
  5177. else
  5178. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5179. /* end confdefs.h. */
  5180. #include <stdlib.h>
  5181. #include <stdio.h>
  5182. #include <string.h>
  5183. #include <libxml/xmlversion.h>
  5184. int
  5185. main()
  5186. {
  5187. int xml_major_version, xml_minor_version, xml_micro_version;
  5188. int major, minor, micro;
  5189. char *tmp_version;
  5190. system("touch conf.xmltest");
  5191. /* Capture xml2-config output via autoconf/configure variables */
  5192. /* HP/UX 9 (%@#!) writes to sscanf strings */
  5193. tmp_version = (char *)strdup("$min_xml_version");
  5194. if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, &micro) != 3) {
  5195. printf("%s, bad version string from xml2-config\n", "$min_xml_version");
  5196. exit(1);
  5197. }
  5198. free(tmp_version);
  5199. /* Capture the version information from the header files */
  5200. tmp_version = (char *)strdup(LIBXML_DOTTED_VERSION);
  5201. if (sscanf(tmp_version, "%d.%d.%d", &xml_major_version, &xml_minor_version, &xml_micro_version) != 3) {
  5202. printf("%s, bad version string from libxml includes\n", "LIBXML_DOTTED_VERSION");
  5203. exit(1);
  5204. }
  5205. free(tmp_version);
  5206. /* Compare xml2-config output to the libxml headers */
  5207. if ((xml_major_version != $xml_config_major_version) ||
  5208. (xml_minor_version != $xml_config_minor_version) ||
  5209. (xml_micro_version != $xml_config_micro_version))
  5210. {
  5211. printf("*** libxml header files (version %d.%d.%d) do not match\n",
  5212. xml_major_version, xml_minor_version, xml_micro_version);
  5213. printf("*** xml2-config (version %d.%d.%d)\n",
  5214. $xml_config_major_version, $xml_config_minor_version, $xml_config_micro_version);
  5215. return 1;
  5216. }
  5217. /* Compare the headers to the library to make sure we match */
  5218. /* Less than ideal -- doesn't provide us with return value feedback,
  5219. * only exits if there's a serious mismatch between header and library.
  5220. */
  5221. LIBXML_TEST_VERSION;
  5222. /* Test that the library is greater than our minimum version */
  5223. if ((xml_major_version > major) ||
  5224. ((xml_major_version == major) && (xml_minor_version > minor)) ||
  5225. ((xml_major_version == major) && (xml_minor_version == minor) &&
  5226. (xml_micro_version >= micro)))
  5227. {
  5228. return 0;
  5229. }
  5230. else
  5231. {
  5232. printf("\n*** An old version of libxml (%d.%d.%d) was found.\n",
  5233. xml_major_version, xml_minor_version, xml_micro_version);
  5234. printf("*** You need a version of libxml newer than %d.%d.%d. The latest version of\n",
  5235. major, minor, micro);
  5236. printf("*** libxml is always available from ftp://ftp.xmlsoft.org.\n");
  5237. printf("***\n");
  5238. printf("*** If you have already installed a sufficiently new version, this error\n");
  5239. printf("*** probably means that the wrong copy of the xml2-config shell script is\n");
  5240. printf("*** being found. The easiest way to fix this is to remove the old version\n");
  5241. printf("*** of LIBXML, but you can also set the XML2_CONFIG environment to point to the\n");
  5242. printf("*** correct copy of xml2-config. (In this case, you will have to\n");
  5243. printf("*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf\n");
  5244. printf("*** so that the correct libraries are found at run-time))\n");
  5245. }
  5246. return 1;
  5247. }
  5248. _ACEOF
  5249. if ac_fn_cxx_try_run "$LINENO"; then :
  5250. else
  5251. no_xml=yes
  5252. fi
  5253. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  5254. conftest.$ac_objext conftest.beam conftest.$ac_ext
  5255. fi
  5256. CPPFLAGS="$ac_save_CPPFLAGS"
  5257. LIBS="$ac_save_LIBS"
  5258. fi
  5259. fi
  5260. if test "x$no_xml" = x ; then
  5261. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes (version $xml_config_major_version.$xml_config_minor_version.$xml_config_micro_version)" >&5
  5262. $as_echo "yes (version $xml_config_major_version.$xml_config_minor_version.$xml_config_micro_version)" >&6; }
  5263. have_libxml2=yes
  5264. else
  5265. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5266. $as_echo "no" >&6; }
  5267. if test "$XML2_CONFIG" = "no" ; then
  5268. echo "*** The xml2-config script installed by LIBXML could not be found"
  5269. echo "*** If libxml was installed in PREFIX, make sure PREFIX/bin is in"
  5270. echo "*** your path, or set the XML2_CONFIG environment variable to the"
  5271. echo "*** full path to xml2-config."
  5272. else
  5273. if test -f conf.xmltest ; then
  5274. :
  5275. else
  5276. echo "*** Could not run libxml test program, checking why..."
  5277. CPPFLAGS="$CPPFLAGS $XML_CPPFLAGS"
  5278. LIBS="$LIBS $XML_LIBS"
  5279. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5280. /* end confdefs.h. */
  5281. #include <libxml/xmlversion.h>
  5282. #include <stdio.h>
  5283. int
  5284. main ()
  5285. {
  5286. LIBXML_TEST_VERSION; return 0;
  5287. ;
  5288. return 0;
  5289. }
  5290. _ACEOF
  5291. if ac_fn_cxx_try_link "$LINENO"; then :
  5292. echo "*** The test program compiled, but did not run. This usually means"
  5293. echo "*** that the run-time linker is not finding LIBXML or finding the wrong"
  5294. echo "*** version of LIBXML. If it is not finding LIBXML, you'll need to set your"
  5295. echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
  5296. echo "*** to the installed location Also, make sure you have run ldconfig if that"
  5297. echo "*** is required on your system"
  5298. echo "***"
  5299. echo "*** If you have an old version installed, it is best to remove it, although"
  5300. echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
  5301. else
  5302. echo "*** The test program failed to compile or link. See the file config.log for the"
  5303. echo "*** exact error that occured. This usually means LIBXML was incorrectly installed"
  5304. echo "*** or that you have moved LIBXML since it was installed. In the latter case, you"
  5305. echo "*** may want to edit the xml2-config script: $XML2_CONFIG"
  5306. fi
  5307. rm -f core conftest.err conftest.$ac_objext \
  5308. conftest$ac_exeext conftest.$ac_ext
  5309. CPPFLAGS="$ac_save_CPPFLAGS"
  5310. LIBS="$ac_save_LIBS"
  5311. fi
  5312. fi
  5313. XML_CPPFLAGS=""
  5314. XML_LIBS=""
  5315. :
  5316. fi
  5317. rm -f conf.xmltest
  5318. if test "x$have_libxml2" = "xyes"; then
  5319. $as_echo "#define HAVE_LIBXML2 1" >>confdefs.h
  5320. elif test "x$with_libxml2_requested" = "xyes"; then
  5321. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  5322. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  5323. as_fn_error "libxml2 is requested but not found in the system.
  5324. See \`config.log' for more details." "$LINENO" 5; }
  5325. fi
  5326. fi
  5327. if test "x$with_libexpat" = "xyes" && test "x$have_libxml2" != "xyes"; then
  5328. # Check whether --with-libexpat-prefix was given.
  5329. if test "${with_libexpat_prefix+set}" = set; then :
  5330. withval=$with_libexpat_prefix; libexpat_prefix=$withval
  5331. else
  5332. libexpat_prefix=""
  5333. fi
  5334. if test "x$libexpat_prefix" = "x"; then
  5335. libexpat_prefix="/usr"
  5336. fi
  5337. libexpat_prefix_lib=$libexpat_prefix/lib
  5338. libexpat_prefix_include=$libexpat_prefix/include
  5339. LIBS_save=$LIBS
  5340. CPPFLAGS_save=$CPPFLAGS
  5341. LIBS="-L$libexpat_prefix_lib $LIBS"
  5342. CPPFLAGS="-I$libexpat_prefix_include $CPPFLAGS"
  5343. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XML_ParserCreate in -lexpat" >&5
  5344. $as_echo_n "checking for XML_ParserCreate in -lexpat... " >&6; }
  5345. if test "${ac_cv_lib_expat_XML_ParserCreate+set}" = set; then :
  5346. $as_echo_n "(cached) " >&6
  5347. else
  5348. ac_check_lib_save_LIBS=$LIBS
  5349. LIBS="-lexpat $LIBS"
  5350. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5351. /* end confdefs.h. */
  5352. /* Override any GCC internal prototype to avoid an error.
  5353. Use char because int might match the return type of a GCC
  5354. builtin and then its argument prototype would still apply. */
  5355. #ifdef __cplusplus
  5356. extern "C"
  5357. #endif
  5358. char XML_ParserCreate ();
  5359. int
  5360. main ()
  5361. {
  5362. return XML_ParserCreate ();
  5363. ;
  5364. return 0;
  5365. }
  5366. _ACEOF
  5367. if ac_fn_cxx_try_link "$LINENO"; then :
  5368. ac_cv_lib_expat_XML_ParserCreate=yes
  5369. else
  5370. ac_cv_lib_expat_XML_ParserCreate=no
  5371. fi
  5372. rm -f core conftest.err conftest.$ac_objext \
  5373. conftest$ac_exeext conftest.$ac_ext
  5374. LIBS=$ac_check_lib_save_LIBS
  5375. fi
  5376. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_expat_XML_ParserCreate" >&5
  5377. $as_echo "$ac_cv_lib_expat_XML_ParserCreate" >&6; }
  5378. if test "x$ac_cv_lib_expat_XML_ParserCreate" = x""yes; then :
  5379. have_libexpat=yes
  5380. fi
  5381. if test "x$have_libexpat" = "xyes"; then
  5382. $as_echo "#define HAVE_LIBEXPAT 1" >>confdefs.h
  5383. LIBEXPAT_LIBS="-L$libexpat_prefix_lib -lexpat"
  5384. LIBEXPAT_CPPFLAGS="-I$libexpat_prefix_include"
  5385. fi
  5386. LIBS=$LIBS_save
  5387. CPPFLAGS=$CPPFLAGS_save
  5388. if test "x$have_libexpat" != "xyes" &&
  5389. test "x$with_libexpat_requested" = "xyes"; then
  5390. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  5391. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  5392. as_fn_error "libexpat is requested but not found in the system.
  5393. See \`config.log' for more details." "$LINENO" 5; }
  5394. fi
  5395. fi
  5396. if test "x$with_sqlite3" = "xyes"; then
  5397. if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
  5398. if test -n "$ac_tool_prefix"; then
  5399. # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
  5400. set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
  5401. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5402. $as_echo_n "checking for $ac_word... " >&6; }
  5403. if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
  5404. $as_echo_n "(cached) " >&6
  5405. else
  5406. case $PKG_CONFIG in
  5407. [\\/]* | ?:[\\/]*)
  5408. ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
  5409. ;;
  5410. *)
  5411. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5412. for as_dir in $PATH
  5413. do
  5414. IFS=$as_save_IFS
  5415. test -z "$as_dir" && as_dir=.
  5416. for ac_exec_ext in '' $ac_executable_extensions; do
  5417. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  5418. ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
  5419. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5420. break 2
  5421. fi
  5422. done
  5423. done
  5424. IFS=$as_save_IFS
  5425. ;;
  5426. esac
  5427. fi
  5428. PKG_CONFIG=$ac_cv_path_PKG_CONFIG
  5429. if test -n "$PKG_CONFIG"; then
  5430. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
  5431. $as_echo "$PKG_CONFIG" >&6; }
  5432. else
  5433. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5434. $as_echo "no" >&6; }
  5435. fi
  5436. fi
  5437. if test -z "$ac_cv_path_PKG_CONFIG"; then
  5438. ac_pt_PKG_CONFIG=$PKG_CONFIG
  5439. # Extract the first word of "pkg-config", so it can be a program name with args.
  5440. set dummy pkg-config; ac_word=$2
  5441. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5442. $as_echo_n "checking for $ac_word... " >&6; }
  5443. if test "${ac_cv_path_ac_pt_PKG_CONFIG+set}" = set; then :
  5444. $as_echo_n "(cached) " >&6
  5445. else
  5446. case $ac_pt_PKG_CONFIG in
  5447. [\\/]* | ?:[\\/]*)
  5448. ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
  5449. ;;
  5450. *)
  5451. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5452. for as_dir in $PATH
  5453. do
  5454. IFS=$as_save_IFS
  5455. test -z "$as_dir" && as_dir=.
  5456. for ac_exec_ext in '' $ac_executable_extensions; do
  5457. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  5458. ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
  5459. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5460. break 2
  5461. fi
  5462. done
  5463. done
  5464. IFS=$as_save_IFS
  5465. ;;
  5466. esac
  5467. fi
  5468. ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
  5469. if test -n "$ac_pt_PKG_CONFIG"; then
  5470. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
  5471. $as_echo "$ac_pt_PKG_CONFIG" >&6; }
  5472. else
  5473. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5474. $as_echo "no" >&6; }
  5475. fi
  5476. if test "x$ac_pt_PKG_CONFIG" = x; then
  5477. PKG_CONFIG=""
  5478. else
  5479. case $cross_compiling:$ac_tool_warned in
  5480. yes:)
  5481. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  5482. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  5483. ac_tool_warned=yes ;;
  5484. esac
  5485. PKG_CONFIG=$ac_pt_PKG_CONFIG
  5486. fi
  5487. else
  5488. PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
  5489. fi
  5490. fi
  5491. if test -n "$PKG_CONFIG"; then
  5492. _pkg_min_version=0.9.0
  5493. { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
  5494. $as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
  5495. if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
  5496. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  5497. $as_echo "yes" >&6; }
  5498. else
  5499. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5500. $as_echo "no" >&6; }
  5501. PKG_CONFIG=""
  5502. fi
  5503. fi
  5504. # Check whether --with-sqlite3-prefix was given.
  5505. if test "${with_sqlite3_prefix+set}" = set; then :
  5506. withval=$with_sqlite3_prefix; sqlite3_prefix=$withval
  5507. else
  5508. sqlite3_prefix=""
  5509. fi
  5510. if test "x$sqlite3_prefix" = "x"; then
  5511. sqlite3_prefix="/usr"
  5512. fi
  5513. LIBS_save=$LIBS
  5514. CPPFLAGS_save=$CPPFLAGS
  5515. pkg_failed=no
  5516. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SQLITE3" >&5
  5517. $as_echo_n "checking for SQLITE3... " >&6; }
  5518. if test -n "$PKG_CONFIG"; then
  5519. if test -n "$SQLITE3_CFLAGS"; then
  5520. pkg_cv_SQLITE3_CFLAGS="$SQLITE3_CFLAGS"
  5521. else
  5522. if test -n "$PKG_CONFIG" && \
  5523. { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"sqlite3\""; } >&5
  5524. ($PKG_CONFIG --exists --print-errors "sqlite3") 2>&5
  5525. ac_status=$?
  5526. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  5527. test $ac_status = 0; }; then
  5528. pkg_cv_SQLITE3_CFLAGS=`$PKG_CONFIG --cflags "sqlite3" 2>/dev/null`
  5529. else
  5530. pkg_failed=yes
  5531. fi
  5532. fi
  5533. else
  5534. pkg_failed=untried
  5535. fi
  5536. if test -n "$PKG_CONFIG"; then
  5537. if test -n "$SQLITE3_LIBS"; then
  5538. pkg_cv_SQLITE3_LIBS="$SQLITE3_LIBS"
  5539. else
  5540. if test -n "$PKG_CONFIG" && \
  5541. { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"sqlite3\""; } >&5
  5542. ($PKG_CONFIG --exists --print-errors "sqlite3") 2>&5
  5543. ac_status=$?
  5544. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  5545. test $ac_status = 0; }; then
  5546. pkg_cv_SQLITE3_LIBS=`$PKG_CONFIG --libs "sqlite3" 2>/dev/null`
  5547. else
  5548. pkg_failed=yes
  5549. fi
  5550. fi
  5551. else
  5552. pkg_failed=untried
  5553. fi
  5554. if test $pkg_failed = yes; then
  5555. if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
  5556. _pkg_short_errors_supported=yes
  5557. else
  5558. _pkg_short_errors_supported=no
  5559. fi
  5560. if test $_pkg_short_errors_supported = yes; then
  5561. SQLITE3_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "sqlite3"`
  5562. else
  5563. SQLITE3_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "sqlite3"`
  5564. fi
  5565. # Put the nasty error message in config.log where it belongs
  5566. echo "$SQLITE3_PKG_ERRORS" >&5
  5567. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5568. $as_echo "no" >&6; }
  5569. have_sqlite3=no
  5570. elif test $pkg_failed = untried; then
  5571. have_sqlite3=no
  5572. else
  5573. SQLITE3_CFLAGS=$pkg_cv_SQLITE3_CFLAGS
  5574. SQLITE3_LIBS=$pkg_cv_SQLITE3_LIBS
  5575. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  5576. $as_echo "yes" >&6; }
  5577. have_sqlite3=yes
  5578. fi
  5579. if test "x$have_sqlite3" != "xyes"; then
  5580. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $SQLITE3_PKG_ERRORS" >&5
  5581. $as_echo "$as_me: WARNING: $SQLITE3_PKG_ERRORS" >&2;}
  5582. sqlite3_prefix_lib=$sqlite3_prefix/lib
  5583. sqlite3_prefix_include=$sqlite3_prefix/include
  5584. LIBS="-L$sqlite3_prefix_lib $LIBS"
  5585. CPPFLAGS="-I$sqlite3_prefix_include $CPPFLAGS"
  5586. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sqlite3_open in -lsqlite3" >&5
  5587. $as_echo_n "checking for sqlite3_open in -lsqlite3... " >&6; }
  5588. if test "${ac_cv_lib_sqlite3_sqlite3_open+set}" = set; then :
  5589. $as_echo_n "(cached) " >&6
  5590. else
  5591. ac_check_lib_save_LIBS=$LIBS
  5592. LIBS="-lsqlite3 $LIBS"
  5593. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5594. /* end confdefs.h. */
  5595. /* Override any GCC internal prototype to avoid an error.
  5596. Use char because int might match the return type of a GCC
  5597. builtin and then its argument prototype would still apply. */
  5598. #ifdef __cplusplus
  5599. extern "C"
  5600. #endif
  5601. char sqlite3_open ();
  5602. int
  5603. main ()
  5604. {
  5605. return sqlite3_open ();
  5606. ;
  5607. return 0;
  5608. }
  5609. _ACEOF
  5610. if ac_fn_cxx_try_link "$LINENO"; then :
  5611. ac_cv_lib_sqlite3_sqlite3_open=yes
  5612. else
  5613. ac_cv_lib_sqlite3_sqlite3_open=no
  5614. fi
  5615. rm -f core conftest.err conftest.$ac_objext \
  5616. conftest$ac_exeext conftest.$ac_ext
  5617. LIBS=$ac_check_lib_save_LIBS
  5618. fi
  5619. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_sqlite3_sqlite3_open" >&5
  5620. $as_echo "$ac_cv_lib_sqlite3_sqlite3_open" >&6; }
  5621. if test "x$ac_cv_lib_sqlite3_sqlite3_open" = x""yes; then :
  5622. have_sqlite3=yes
  5623. fi
  5624. if test "x$have_sqlite3" = "xyes"; then
  5625. SQLITE3_LIBS="-L$sqlite3_prefix_lib -lsqlite3"
  5626. SQLITE3_CFLAGS="-I$sqlite3_prefix_include"
  5627. fi
  5628. fi
  5629. if test "x$have_sqlite3" = "xyes"; then
  5630. LIBS="$SQLITE3_LIBS $LIBS"
  5631. CPPFLAGS="$SQLITE3_CFLAGS $CPPFLAGS"
  5632. for ac_func in sqlite3_open_v2
  5633. do :
  5634. ac_fn_cxx_check_func "$LINENO" "sqlite3_open_v2" "ac_cv_func_sqlite3_open_v2"
  5635. if test "x$ac_cv_func_sqlite3_open_v2" = x""yes; then :
  5636. cat >>confdefs.h <<_ACEOF
  5637. #define HAVE_SQLITE3_OPEN_V2 1
  5638. _ACEOF
  5639. fi
  5640. done
  5641. $as_echo "#define HAVE_SQLITE3 1" >>confdefs.h
  5642. fi
  5643. LIBS=$LIBS_save
  5644. CPPFLAGS=$CPPFLAGS_save
  5645. if test "x$have_sqlite3" != "xyes" &&
  5646. test "x$with_sqlite3_requested" = "xyes"; then
  5647. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  5648. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  5649. as_fn_error "sqlite3 is requested but not found in the system.
  5650. See \`config.log' for more details." "$LINENO" 5; }
  5651. fi
  5652. fi
  5653. if test "x$with_gnutls" = "xyes"; then
  5654. # gnutls >= 2.8 doesn't have libgnutls-config anymore.
  5655. # First check the presence of libgnutls using pkg-config.
  5656. pkg_failed=no
  5657. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LIBGNUTLS" >&5
  5658. $as_echo_n "checking for LIBGNUTLS... " >&6; }
  5659. if test -n "$PKG_CONFIG"; then
  5660. if test -n "$LIBGNUTLS_CFLAGS"; then
  5661. pkg_cv_LIBGNUTLS_CFLAGS="$LIBGNUTLS_CFLAGS"
  5662. else
  5663. if test -n "$PKG_CONFIG" && \
  5664. { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gnutls >= 1.2.9\""; } >&5
  5665. ($PKG_CONFIG --exists --print-errors "gnutls >= 1.2.9") 2>&5
  5666. ac_status=$?
  5667. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  5668. test $ac_status = 0; }; then
  5669. pkg_cv_LIBGNUTLS_CFLAGS=`$PKG_CONFIG --cflags "gnutls >= 1.2.9" 2>/dev/null`
  5670. else
  5671. pkg_failed=yes
  5672. fi
  5673. fi
  5674. else
  5675. pkg_failed=untried
  5676. fi
  5677. if test -n "$PKG_CONFIG"; then
  5678. if test -n "$LIBGNUTLS_LIBS"; then
  5679. pkg_cv_LIBGNUTLS_LIBS="$LIBGNUTLS_LIBS"
  5680. else
  5681. if test -n "$PKG_CONFIG" && \
  5682. { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gnutls >= 1.2.9\""; } >&5
  5683. ($PKG_CONFIG --exists --print-errors "gnutls >= 1.2.9") 2>&5
  5684. ac_status=$?
  5685. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  5686. test $ac_status = 0; }; then
  5687. pkg_cv_LIBGNUTLS_LIBS=`$PKG_CONFIG --libs "gnutls >= 1.2.9" 2>/dev/null`
  5688. else
  5689. pkg_failed=yes
  5690. fi
  5691. fi
  5692. else
  5693. pkg_failed=untried
  5694. fi
  5695. if test $pkg_failed = yes; then
  5696. if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
  5697. _pkg_short_errors_supported=yes
  5698. else
  5699. _pkg_short_errors_supported=no
  5700. fi
  5701. if test $_pkg_short_errors_supported = yes; then
  5702. LIBGNUTLS_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "gnutls >= 1.2.9"`
  5703. else
  5704. LIBGNUTLS_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "gnutls >= 1.2.9"`
  5705. fi
  5706. # Put the nasty error message in config.log where it belongs
  5707. echo "$LIBGNUTLS_PKG_ERRORS" >&5
  5708. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5709. $as_echo "no" >&6; }
  5710. have_libgnutls=no
  5711. elif test $pkg_failed = untried; then
  5712. have_libgnutls=no
  5713. else
  5714. LIBGNUTLS_CFLAGS=$pkg_cv_LIBGNUTLS_CFLAGS
  5715. LIBGNUTLS_LIBS=$pkg_cv_LIBGNUTLS_LIBS
  5716. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  5717. $as_echo "yes" >&6; }
  5718. have_libgnutls=yes
  5719. fi
  5720. # If no libgnutls found by pkg-config, fall back to old macro
  5721. if test "x$have_libgnutls" = "xno"; then
  5722. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $LIBGNUTLS_PKG_ERRORS" >&5
  5723. $as_echo "$as_me: WARNING: $LIBGNUTLS_PKG_ERRORS" >&2;}
  5724. # Check whether --with-libgnutls-prefix was given.
  5725. if test "${with_libgnutls_prefix+set}" = set; then :
  5726. withval=$with_libgnutls_prefix; libgnutls_config_prefix="$withval"
  5727. else
  5728. libgnutls_config_prefix=""
  5729. fi
  5730. if test x$libgnutls_config_prefix != x ; then
  5731. if test x${LIBGNUTLS_CONFIG+set} != xset ; then
  5732. LIBGNUTLS_CONFIG=$libgnutls_config_prefix/bin/libgnutls-config
  5733. fi
  5734. fi
  5735. # Extract the first word of "libgnutls-config", so it can be a program name with args.
  5736. set dummy libgnutls-config; ac_word=$2
  5737. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5738. $as_echo_n "checking for $ac_word... " >&6; }
  5739. if test "${ac_cv_path_LIBGNUTLS_CONFIG+set}" = set; then :
  5740. $as_echo_n "(cached) " >&6
  5741. else
  5742. case $LIBGNUTLS_CONFIG in
  5743. [\\/]* | ?:[\\/]*)
  5744. ac_cv_path_LIBGNUTLS_CONFIG="$LIBGNUTLS_CONFIG" # Let the user override the test with a path.
  5745. ;;
  5746. *)
  5747. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5748. for as_dir in $PATH
  5749. do
  5750. IFS=$as_save_IFS
  5751. test -z "$as_dir" && as_dir=.
  5752. for ac_exec_ext in '' $ac_executable_extensions; do
  5753. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  5754. ac_cv_path_LIBGNUTLS_CONFIG="$as_dir/$ac_word$ac_exec_ext"
  5755. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5756. break 2
  5757. fi
  5758. done
  5759. done
  5760. IFS=$as_save_IFS
  5761. test -z "$ac_cv_path_LIBGNUTLS_CONFIG" && ac_cv_path_LIBGNUTLS_CONFIG="no"
  5762. ;;
  5763. esac
  5764. fi
  5765. LIBGNUTLS_CONFIG=$ac_cv_path_LIBGNUTLS_CONFIG
  5766. if test -n "$LIBGNUTLS_CONFIG"; then
  5767. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBGNUTLS_CONFIG" >&5
  5768. $as_echo "$LIBGNUTLS_CONFIG" >&6; }
  5769. else
  5770. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5771. $as_echo "no" >&6; }
  5772. fi
  5773. min_libgnutls_version=1.2.9
  5774. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libgnutls - version >= $min_libgnutls_version" >&5
  5775. $as_echo_n "checking for libgnutls - version >= $min_libgnutls_version... " >&6; }
  5776. no_libgnutls=""
  5777. if test "$LIBGNUTLS_CONFIG" = "no" ; then
  5778. no_libgnutls=yes
  5779. else
  5780. LIBGNUTLS_CFLAGS=`$LIBGNUTLS_CONFIG $libgnutls_config_args --cflags`
  5781. LIBGNUTLS_LIBS=`$LIBGNUTLS_CONFIG $libgnutls_config_args --libs`
  5782. libgnutls_config_version=`$LIBGNUTLS_CONFIG $libgnutls_config_args --version`
  5783. ac_save_CFLAGS="$CFLAGS"
  5784. ac_save_LIBS="$LIBS"
  5785. CFLAGS="$CFLAGS $LIBGNUTLS_CFLAGS"
  5786. LIBS="$LIBS $LIBGNUTLS_LIBS"
  5787. rm -f conf.libgnutlstest
  5788. if test "$cross_compiling" = yes; then :
  5789. echo $ac_n "cross compiling; assumed OK... $ac_c"
  5790. else
  5791. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5792. /* end confdefs.h. */
  5793. #include <stdio.h>
  5794. #include <stdlib.h>
  5795. #include <string.h>
  5796. #include <gnutls/gnutls.h>
  5797. int
  5798. main ()
  5799. {
  5800. system ("touch conf.libgnutlstest");
  5801. if( strcmp( gnutls_check_version(NULL), "$libgnutls_config_version" ) )
  5802. {
  5803. printf("\n*** 'libgnutls-config --version' returned %s, but LIBGNUTLS (%s)\n",
  5804. "$libgnutls_config_version", gnutls_check_version(NULL) );
  5805. printf("*** was found! If libgnutls-config was correct, then it is best\n");
  5806. printf("*** to remove the old version of LIBGNUTLS. You may also be able to fix the error\n");
  5807. printf("*** by modifying your LD_LIBRARY_PATH enviroment variable, or by editing\n");
  5808. printf("*** /etc/ld.so.conf. Make sure you have run ldconfig if that is\n");
  5809. printf("*** required on your system.\n");
  5810. printf("*** If libgnutls-config was wrong, set the environment variable LIBGNUTLS_CONFIG\n");
  5811. printf("*** to point to the correct copy of libgnutls-config, and remove the file config.cache\n");
  5812. printf("*** before re-running configure\n");
  5813. }
  5814. else if ( strcmp(gnutls_check_version(NULL), LIBGNUTLS_VERSION ) )
  5815. {
  5816. printf("\n*** LIBGNUTLS header file (version %s) does not match\n", LIBGNUTLS_VERSION);
  5817. printf("*** library (version %s)\n", gnutls_check_version(NULL) );
  5818. }
  5819. else
  5820. {
  5821. if ( gnutls_check_version( "$min_libgnutls_version" ) )
  5822. {
  5823. return 0;
  5824. }
  5825. else
  5826. {
  5827. printf("no\n*** An old version of LIBGNUTLS (%s) was found.\n",
  5828. gnutls_check_version(NULL) );
  5829. printf("*** You need a version of LIBGNUTLS newer than %s. The latest version of\n",
  5830. "$min_libgnutls_version" );
  5831. printf("*** LIBGNUTLS is always available from ftp://gnutls.hellug.gr/pub/gnutls.\n");
  5832. printf("*** \n");
  5833. printf("*** If you have already installed a sufficiently new version, this error\n");
  5834. printf("*** probably means that the wrong copy of the libgnutls-config shell script is\n");
  5835. printf("*** being found. The easiest way to fix this is to remove the old version\n");
  5836. printf("*** of LIBGNUTLS, but you can also set the LIBGNUTLS_CONFIG environment to point to the\n");
  5837. printf("*** correct copy of libgnutls-config. (In this case, you will have to\n");
  5838. printf("*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf\n");
  5839. printf("*** so that the correct libraries are found at run-time))\n");
  5840. }
  5841. }
  5842. return 1;
  5843. }
  5844. _ACEOF
  5845. if ac_fn_cxx_try_run "$LINENO"; then :
  5846. else
  5847. no_libgnutls=yes
  5848. fi
  5849. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  5850. conftest.$ac_objext conftest.beam conftest.$ac_ext
  5851. fi
  5852. CFLAGS="$ac_save_CFLAGS"
  5853. LIBS="$ac_save_LIBS"
  5854. fi
  5855. if test "x$no_libgnutls" = x ; then
  5856. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  5857. $as_echo "yes" >&6; }
  5858. have_libgnutls=yes
  5859. else
  5860. if test -f conf.libgnutlstest ; then
  5861. :
  5862. else
  5863. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5864. $as_echo "no" >&6; }
  5865. fi
  5866. if test "$LIBGNUTLS_CONFIG" = "no" ; then
  5867. echo "*** The libgnutls-config script installed by LIBGNUTLS could not be found"
  5868. echo "*** If LIBGNUTLS was installed in PREFIX, make sure PREFIX/bin is in"
  5869. echo "*** your path, or set the LIBGNUTLS_CONFIG environment variable to the"
  5870. echo "*** full path to libgnutls-config."
  5871. else
  5872. if test -f conf.libgnutlstest ; then
  5873. :
  5874. else
  5875. echo "*** Could not run libgnutls test program, checking why..."
  5876. CFLAGS="$CFLAGS $LIBGNUTLS_CFLAGS"
  5877. LIBS="$LIBS $LIBGNUTLS_LIBS"
  5878. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5879. /* end confdefs.h. */
  5880. #include <stdio.h>
  5881. #include <stdlib.h>
  5882. #include <string.h>
  5883. #include <gnutls/gnutls.h>
  5884. int
  5885. main ()
  5886. {
  5887. return !!gnutls_check_version(NULL);
  5888. ;
  5889. return 0;
  5890. }
  5891. _ACEOF
  5892. if ac_fn_cxx_try_link "$LINENO"; then :
  5893. echo "*** The test program compiled, but did not run. This usually means"
  5894. echo "*** that the run-time linker is not finding LIBGNUTLS or finding the wrong"
  5895. echo "*** version of LIBGNUTLS. If it is not finding LIBGNUTLS, you'll need to set your"
  5896. echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
  5897. echo "*** to the installed location Also, make sure you have run ldconfig if that"
  5898. echo "*** is required on your system"
  5899. echo "***"
  5900. echo "*** If you have an old version installed, it is best to remove it, although"
  5901. echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
  5902. echo "***"
  5903. else
  5904. echo "*** The test program failed to compile or link. See the file config.log for the"
  5905. echo "*** exact error that occured. This usually means LIBGNUTLS was incorrectly installed"
  5906. echo "*** or that you have moved LIBGNUTLS since it was installed. In the latter case, you"
  5907. echo "*** may want to edit the libgnutls-config script: $LIBGNUTLS_CONFIG"
  5908. fi
  5909. rm -f core conftest.err conftest.$ac_objext \
  5910. conftest$ac_exeext conftest.$ac_ext
  5911. CFLAGS="$ac_save_CFLAGS"
  5912. LIBS="$ac_save_LIBS"
  5913. fi
  5914. fi
  5915. LIBGNUTLS_CFLAGS=""
  5916. LIBGNUTLS_LIBS=""
  5917. :
  5918. fi
  5919. rm -f conf.libgnutlstest
  5920. fi
  5921. if test "x$have_libgnutls" = "xyes"; then
  5922. $as_echo "#define HAVE_LIBGNUTLS 1" >>confdefs.h
  5923. elif test "x$with_gnutls_requested" = "xyes"; then
  5924. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  5925. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  5926. as_fn_error "gnutls is requested but not found in the system.
  5927. See \`config.log' for more details." "$LINENO" 5; }
  5928. fi
  5929. fi
  5930. if test "x$have_libgnutls" = "xyes"; then
  5931. # Check whether --with-libgcrypt-prefix was given.
  5932. if test "${with_libgcrypt_prefix+set}" = set; then :
  5933. withval=$with_libgcrypt_prefix; libgcrypt_config_prefix="$withval"
  5934. else
  5935. libgcrypt_config_prefix=""
  5936. fi
  5937. if test x$libgcrypt_config_prefix != x ; then
  5938. if test x${LIBGCRYPT_CONFIG+set} != xset ; then
  5939. LIBGCRYPT_CONFIG=$libgcrypt_config_prefix/bin/libgcrypt-config
  5940. fi
  5941. fi
  5942. # Extract the first word of "libgcrypt-config", so it can be a program name with args.
  5943. set dummy libgcrypt-config; ac_word=$2
  5944. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5945. $as_echo_n "checking for $ac_word... " >&6; }
  5946. if test "${ac_cv_path_LIBGCRYPT_CONFIG+set}" = set; then :
  5947. $as_echo_n "(cached) " >&6
  5948. else
  5949. case $LIBGCRYPT_CONFIG in
  5950. [\\/]* | ?:[\\/]*)
  5951. ac_cv_path_LIBGCRYPT_CONFIG="$LIBGCRYPT_CONFIG" # Let the user override the test with a path.
  5952. ;;
  5953. *)
  5954. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5955. for as_dir in $PATH
  5956. do
  5957. IFS=$as_save_IFS
  5958. test -z "$as_dir" && as_dir=.
  5959. for ac_exec_ext in '' $ac_executable_extensions; do
  5960. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  5961. ac_cv_path_LIBGCRYPT_CONFIG="$as_dir/$ac_word$ac_exec_ext"
  5962. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5963. break 2
  5964. fi
  5965. done
  5966. done
  5967. IFS=$as_save_IFS
  5968. test -z "$ac_cv_path_LIBGCRYPT_CONFIG" && ac_cv_path_LIBGCRYPT_CONFIG="no"
  5969. ;;
  5970. esac
  5971. fi
  5972. LIBGCRYPT_CONFIG=$ac_cv_path_LIBGCRYPT_CONFIG
  5973. if test -n "$LIBGCRYPT_CONFIG"; then
  5974. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBGCRYPT_CONFIG" >&5
  5975. $as_echo "$LIBGCRYPT_CONFIG" >&6; }
  5976. else
  5977. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5978. $as_echo "no" >&6; }
  5979. fi
  5980. tmp=1.2.2
  5981. if echo "$tmp" | grep ':' >/dev/null 2>/dev/null ; then
  5982. req_libgcrypt_api=`echo "$tmp" | sed 's/\(.*\):\(.*\)/\1/'`
  5983. min_libgcrypt_version=`echo "$tmp" | sed 's/\(.*\):\(.*\)/\2/'`
  5984. else
  5985. req_libgcrypt_api=0
  5986. min_libgcrypt_version="$tmp"
  5987. fi
  5988. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LIBGCRYPT - version >= $min_libgcrypt_version" >&5
  5989. $as_echo_n "checking for LIBGCRYPT - version >= $min_libgcrypt_version... " >&6; }
  5990. ok=no
  5991. if test "$LIBGCRYPT_CONFIG" != "no" ; then
  5992. req_major=`echo $min_libgcrypt_version | \
  5993. sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\1/'`
  5994. req_minor=`echo $min_libgcrypt_version | \
  5995. sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\2/'`
  5996. req_micro=`echo $min_libgcrypt_version | \
  5997. sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\3/'`
  5998. libgcrypt_config_version=`$LIBGCRYPT_CONFIG --version`
  5999. major=`echo $libgcrypt_config_version | \
  6000. sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\).*/\1/'`
  6001. minor=`echo $libgcrypt_config_version | \
  6002. sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\).*/\2/'`
  6003. micro=`echo $libgcrypt_config_version | \
  6004. sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\).*/\3/'`
  6005. if test "$major" -gt "$req_major"; then
  6006. ok=yes
  6007. else
  6008. if test "$major" -eq "$req_major"; then
  6009. if test "$minor" -gt "$req_minor"; then
  6010. ok=yes
  6011. else
  6012. if test "$minor" -eq "$req_minor"; then
  6013. if test "$micro" -ge "$req_micro"; then
  6014. ok=yes
  6015. fi
  6016. fi
  6017. fi
  6018. fi
  6019. fi
  6020. fi
  6021. if test $ok = yes; then
  6022. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes ($libgcrypt_config_version)" >&5
  6023. $as_echo "yes ($libgcrypt_config_version)" >&6; }
  6024. else
  6025. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6026. $as_echo "no" >&6; }
  6027. fi
  6028. if test $ok = yes; then
  6029. # If we have a recent libgcrypt, we should also check that the
  6030. # API is compatible
  6031. if test "$req_libgcrypt_api" -gt 0 ; then
  6032. tmp=`$LIBGCRYPT_CONFIG --api-version 2>/dev/null || echo 0`
  6033. if test "$tmp" -gt 0 ; then
  6034. { $as_echo "$as_me:${as_lineno-$LINENO}: checking LIBGCRYPT API version" >&5
  6035. $as_echo_n "checking LIBGCRYPT API version... " >&6; }
  6036. if test "$req_libgcrypt_api" -eq "$tmp" ; then
  6037. { $as_echo "$as_me:${as_lineno-$LINENO}: result: okay" >&5
  6038. $as_echo "okay" >&6; }
  6039. else
  6040. ok=no
  6041. { $as_echo "$as_me:${as_lineno-$LINENO}: result: does not match. want=$req_libgcrypt_api got=$tmp" >&5
  6042. $as_echo "does not match. want=$req_libgcrypt_api got=$tmp" >&6; }
  6043. fi
  6044. fi
  6045. fi
  6046. fi
  6047. if test $ok = yes; then
  6048. LIBGCRYPT_CFLAGS=`$LIBGCRYPT_CONFIG --cflags`
  6049. LIBGCRYPT_LIBS=`$LIBGCRYPT_CONFIG --libs`
  6050. have_libgcrypt=yes
  6051. else
  6052. LIBGCRYPT_CFLAGS=""
  6053. LIBGCRYPT_LIBS=""
  6054. :
  6055. fi
  6056. if test "x$have_libgcrypt" = "xyes"; then
  6057. $as_echo "#define HAVE_LIBGCRYPT 1" >>confdefs.h
  6058. fi
  6059. fi
  6060. if test "x$with_openssl" = "xyes" && test "x$have_libgnutls" != "xyes"; then
  6061. # Check whether --with-openssl-prefix was given.
  6062. if test "${with_openssl_prefix+set}" = set; then :
  6063. withval=$with_openssl_prefix; openssl_prefix=$withval
  6064. else
  6065. openssl_prefix=""
  6066. fi
  6067. if test "x$openssl_prefix" = "x"; then
  6068. openssl_prefix="/usr/local"
  6069. fi
  6070. LIBS_save=$LIBS
  6071. CPPFLAGS_save=$CPPFLAGS
  6072. PKG_CONFIG="$openssl_prefix/bin/pkg-config"
  6073. if test -x $PKG_CONFIG; then
  6074. { $as_echo "$as_me:${as_lineno-$LINENO}: checking checking availability of openssl using pkg-config" >&5
  6075. $as_echo_n "checking checking availability of openssl using pkg-config... " >&6; }
  6076. $PKG_CONFIG --exists openssl
  6077. if test "$?" = "0"; then
  6078. # Use pkg-config to detect LIBS and CFLAGS
  6079. OPENSSL_LIBS=`$PKG_CONFIG --libs openssl`
  6080. OPENSSL_CFLAGS=`$PKG_CONFIG --cflags openssl`
  6081. LIBS="$OPENSSL_LIBS $LIBS"
  6082. CPPFLAGS="$OPENSSL_CFLAGS $CPPFLAGS"
  6083. have_openssl=yes
  6084. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  6085. $as_echo "yes" >&6; }
  6086. else
  6087. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6088. $as_echo "no" >&6; }
  6089. fi
  6090. fi
  6091. if test "x$have_openssl" != "xyes"; then
  6092. openssl_prefix_lib=$openssl_prefix/lib
  6093. openssl_prefix_include=$openssl_prefix/include
  6094. LIBS="-L$openssl_prefix_lib $LIBS"
  6095. CPPFLAGS="-I$openssl_prefix_include $CPPFLAGS"
  6096. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SSL_library_init in -lssl" >&5
  6097. $as_echo_n "checking for SSL_library_init in -lssl... " >&6; }
  6098. if test "${ac_cv_lib_ssl_SSL_library_init+set}" = set; then :
  6099. $as_echo_n "(cached) " >&6
  6100. else
  6101. ac_check_lib_save_LIBS=$LIBS
  6102. LIBS="-lssl $LIBS"
  6103. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6104. /* end confdefs.h. */
  6105. /* Override any GCC internal prototype to avoid an error.
  6106. Use char because int might match the return type of a GCC
  6107. builtin and then its argument prototype would still apply. */
  6108. #ifdef __cplusplus
  6109. extern "C"
  6110. #endif
  6111. char SSL_library_init ();
  6112. int
  6113. main ()
  6114. {
  6115. return SSL_library_init ();
  6116. ;
  6117. return 0;
  6118. }
  6119. _ACEOF
  6120. if ac_fn_cxx_try_link "$LINENO"; then :
  6121. ac_cv_lib_ssl_SSL_library_init=yes
  6122. else
  6123. ac_cv_lib_ssl_SSL_library_init=no
  6124. fi
  6125. rm -f core conftest.err conftest.$ac_objext \
  6126. conftest$ac_exeext conftest.$ac_ext
  6127. LIBS=$ac_check_lib_save_LIBS
  6128. fi
  6129. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ssl_SSL_library_init" >&5
  6130. $as_echo "$ac_cv_lib_ssl_SSL_library_init" >&6; }
  6131. if test "x$ac_cv_lib_ssl_SSL_library_init" = x""yes; then :
  6132. have_openssl=yes LIBS="-lssl $LIBS"
  6133. fi
  6134. if test "x$have_openssl" = "xyes"; then
  6135. have_openssl=no
  6136. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lcrypto" >&5
  6137. $as_echo_n "checking for main in -lcrypto... " >&6; }
  6138. if test "${ac_cv_lib_crypto_main+set}" = set; then :
  6139. $as_echo_n "(cached) " >&6
  6140. else
  6141. ac_check_lib_save_LIBS=$LIBS
  6142. LIBS="-lcrypto $LIBS"
  6143. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6144. /* end confdefs.h. */
  6145. int
  6146. main ()
  6147. {
  6148. return main ();
  6149. ;
  6150. return 0;
  6151. }
  6152. _ACEOF
  6153. if ac_fn_cxx_try_link "$LINENO"; then :
  6154. ac_cv_lib_crypto_main=yes
  6155. else
  6156. ac_cv_lib_crypto_main=no
  6157. fi
  6158. rm -f core conftest.err conftest.$ac_objext \
  6159. conftest$ac_exeext conftest.$ac_ext
  6160. LIBS=$ac_check_lib_save_LIBS
  6161. fi
  6162. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_crypto_main" >&5
  6163. $as_echo "$ac_cv_lib_crypto_main" >&6; }
  6164. if test "x$ac_cv_lib_crypto_main" = x""yes; then :
  6165. have_openssl=yes; LIBS="-lcrypto $LIBS"
  6166. fi
  6167. if test "x$have_openssl" = "xyes"; then
  6168. OPENSSL_LIBS="-L$openssl_prefix_lib -lssl -lcrypto"
  6169. OPENSSL_CFLAGS="-I$openssl_prefix_include"
  6170. fi
  6171. fi
  6172. fi
  6173. if test "x$have_openssl" = "xyes"; then
  6174. $as_echo "#define HAVE_LIBSSL 1" >>confdefs.h
  6175. # check whether EVP_DigestInit_ex exists. Old openssl doesn't have it.
  6176. for ac_func in EVP_DigestInit_ex
  6177. do :
  6178. ac_fn_cxx_check_func "$LINENO" "EVP_DigestInit_ex" "ac_cv_func_EVP_DigestInit_ex"
  6179. if test "x$ac_cv_func_EVP_DigestInit_ex" = x""yes; then :
  6180. cat >>confdefs.h <<_ACEOF
  6181. #define HAVE_EVP_DIGESTINIT_EX 1
  6182. _ACEOF
  6183. have_digestinit_ex=yes
  6184. fi
  6185. done
  6186. if test "x$have_digestinit_ex" = "x"; then
  6187. $as_echo "#define HAVE_OLD_LIBSSL 1" >>confdefs.h
  6188. fi
  6189. # search for sha256 support
  6190. for ac_func in EVP_sha256
  6191. do :
  6192. ac_fn_cxx_check_func "$LINENO" "EVP_sha256" "ac_cv_func_EVP_sha256"
  6193. if test "x$ac_cv_func_EVP_sha256" = x""yes; then :
  6194. cat >>confdefs.h <<_ACEOF
  6195. #define HAVE_EVP_SHA256 1
  6196. _ACEOF
  6197. fi
  6198. done
  6199. fi
  6200. LIBS=$LIBS_save
  6201. CPPFLAGS=$CPPFLAGS_save
  6202. if test "x$have_openssl" != "xyes" &&
  6203. test "x$with_openssl_requested" = "xyes"; then
  6204. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  6205. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  6206. as_fn_error "openssl is requested but not found in the system.
  6207. See \`config.log' for more details." "$LINENO" 5; }
  6208. fi
  6209. fi
  6210. if test "x$with_libcares" = "xyes"; then
  6211. # Check whether --with-libcares-prefix was given.
  6212. if test "${with_libcares_prefix+set}" = set; then :
  6213. withval=$with_libcares_prefix; libcares_prefix=$withval
  6214. else
  6215. libcares_prefix=""
  6216. fi
  6217. if test "x$libcares_prefix" = "x"; then
  6218. libcares_prefix="/usr"
  6219. fi
  6220. libcares_prefix_lib=$libcares_prefix/lib
  6221. libcares_prefix_include=$libcares_prefix/include
  6222. LIBS_save=$LIBS
  6223. CPPFLAGS_save=$CPPFLAGS
  6224. LIBS="-L$libcares_prefix_lib $LIBS"
  6225. CPPFLAGS="-I$libcares_prefix_include -Wall $CPPFLAGS"
  6226. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ares_init in -lcares" >&5
  6227. $as_echo_n "checking for ares_init in -lcares... " >&6; }
  6228. if test "${ac_cv_lib_cares_ares_init+set}" = set; then :
  6229. $as_echo_n "(cached) " >&6
  6230. else
  6231. ac_check_lib_save_LIBS=$LIBS
  6232. LIBS="-lcares $LIBS"
  6233. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6234. /* end confdefs.h. */
  6235. /* Override any GCC internal prototype to avoid an error.
  6236. Use char because int might match the return type of a GCC
  6237. builtin and then its argument prototype would still apply. */
  6238. #ifdef __cplusplus
  6239. extern "C"
  6240. #endif
  6241. char ares_init ();
  6242. int
  6243. main ()
  6244. {
  6245. return ares_init ();
  6246. ;
  6247. return 0;
  6248. }
  6249. _ACEOF
  6250. if ac_fn_cxx_try_link "$LINENO"; then :
  6251. ac_cv_lib_cares_ares_init=yes
  6252. else
  6253. ac_cv_lib_cares_ares_init=no
  6254. fi
  6255. rm -f core conftest.err conftest.$ac_objext \
  6256. conftest$ac_exeext conftest.$ac_ext
  6257. LIBS=$ac_check_lib_save_LIBS
  6258. fi
  6259. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_cares_ares_init" >&5
  6260. $as_echo "$ac_cv_lib_cares_ares_init" >&6; }
  6261. if test "x$ac_cv_lib_cares_ares_init" = x""yes; then :
  6262. have_libcares=yes
  6263. fi
  6264. if test "x$have_libcares" != "xyes"; then
  6265. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ares_init in -lcares" >&5
  6266. $as_echo_n "checking for ares_init in -lcares... " >&6; }
  6267. if test "${ac_cv_lib_cares_ares_init+set}" = set; then :
  6268. $as_echo_n "(cached) " >&6
  6269. else
  6270. ac_check_lib_save_LIBS=$LIBS
  6271. LIBS="-lcares -lrt $LIBS"
  6272. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6273. /* end confdefs.h. */
  6274. /* Override any GCC internal prototype to avoid an error.
  6275. Use char because int might match the return type of a GCC
  6276. builtin and then its argument prototype would still apply. */
  6277. #ifdef __cplusplus
  6278. extern "C"
  6279. #endif
  6280. char ares_init ();
  6281. int
  6282. main ()
  6283. {
  6284. return ares_init ();
  6285. ;
  6286. return 0;
  6287. }
  6288. _ACEOF
  6289. if ac_fn_cxx_try_link "$LINENO"; then :
  6290. ac_cv_lib_cares_ares_init=yes
  6291. else
  6292. ac_cv_lib_cares_ares_init=no
  6293. fi
  6294. rm -f core conftest.err conftest.$ac_objext \
  6295. conftest$ac_exeext conftest.$ac_ext
  6296. LIBS=$ac_check_lib_save_LIBS
  6297. fi
  6298. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_cares_ares_init" >&5
  6299. $as_echo "$ac_cv_lib_cares_ares_init" >&6; }
  6300. if test "x$ac_cv_lib_cares_ares_init" = x""yes; then :
  6301. have_libcares=yes need_librt=yes
  6302. fi
  6303. fi
  6304. if test "x$have_libcares" = "xyes"; then
  6305. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ares_host_callback accepts timeouts(c-ares >= 1.5)" >&5
  6306. $as_echo_n "checking whether ares_host_callback accepts timeouts(c-ares >= 1.5)... " >&6; }
  6307. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6308. /* end confdefs.h. */
  6309. #include <ares.h>
  6310. void callback(void* arg, int status, int timeouts, struct hostent* host);
  6311. int
  6312. main ()
  6313. {
  6314. ares_channel channel;
  6315. ares_gethostbyname(channel, "foo", 0, callback, 0);
  6316. ;
  6317. return 0;
  6318. }
  6319. _ACEOF
  6320. if ac_fn_cxx_try_compile "$LINENO"; then :
  6321. have_libcares1_5=yes
  6322. else
  6323. have_libcares1_5=no
  6324. fi
  6325. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  6326. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_libcares1_5" >&5
  6327. $as_echo "$have_libcares1_5" >&6; }
  6328. if test "x$have_libcares1_5" = "xyes"; then
  6329. $as_echo "#define HAVE_LIBCARES1_5 1" >>confdefs.h
  6330. fi
  6331. $as_echo "#define HAVE_LIBCARES 1" >>confdefs.h
  6332. LIBCARES_LIBS="-L$libcares_prefix_lib -lcares"
  6333. if test "x$need_librt" = "xyes"; then
  6334. LIBCARES_LIBS="$LIBCARES_LIBS -lrt"
  6335. fi
  6336. LIBCARES_CPPFLAGS="-I$libcares_prefix_include"
  6337. fi
  6338. LIBS=$LIBS_save
  6339. CPPFLAGS=$CPPFLAGS_save
  6340. if test "x$have_libcares" != "xyes" &&
  6341. test "x$with_libcares_requested" = "xyes"; then
  6342. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  6343. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  6344. as_fn_error "libcares is requested but not found in the system.
  6345. See \`config.log' for more details." "$LINENO" 5; }
  6346. fi
  6347. fi
  6348. # Check availability of libz
  6349. if test "x$with_libz" = "xyes"; then
  6350. # Check whether --with-libz-prefix was given.
  6351. if test "${with_libz_prefix+set}" = set; then :
  6352. withval=$with_libz_prefix; libz_prefix=$withval
  6353. else
  6354. libz_prefix=""
  6355. fi
  6356. if test "x$libz_prefix" = "x"; then
  6357. libz_prefix="/usr"
  6358. fi
  6359. libz_prefix_lib=$libz_prefix/lib
  6360. libz_prefix_include=$libz_prefix/include
  6361. LIBS_save=$LIBS
  6362. CPPFLAGS_save=$CPPFLAGS
  6363. LIBS="-L$libz_prefix_lib $LIBS"
  6364. CPPFLAGS="-I$libz_prefix_include $CPPFLAGS"
  6365. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for zlibVersion in -lz" >&5
  6366. $as_echo_n "checking for zlibVersion in -lz... " >&6; }
  6367. if test "${ac_cv_lib_z_zlibVersion+set}" = set; then :
  6368. $as_echo_n "(cached) " >&6
  6369. else
  6370. ac_check_lib_save_LIBS=$LIBS
  6371. LIBS="-lz $LIBS"
  6372. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6373. /* end confdefs.h. */
  6374. /* Override any GCC internal prototype to avoid an error.
  6375. Use char because int might match the return type of a GCC
  6376. builtin and then its argument prototype would still apply. */
  6377. #ifdef __cplusplus
  6378. extern "C"
  6379. #endif
  6380. char zlibVersion ();
  6381. int
  6382. main ()
  6383. {
  6384. return zlibVersion ();
  6385. ;
  6386. return 0;
  6387. }
  6388. _ACEOF
  6389. if ac_fn_cxx_try_link "$LINENO"; then :
  6390. ac_cv_lib_z_zlibVersion=yes
  6391. else
  6392. ac_cv_lib_z_zlibVersion=no
  6393. fi
  6394. rm -f core conftest.err conftest.$ac_objext \
  6395. conftest$ac_exeext conftest.$ac_ext
  6396. LIBS=$ac_check_lib_save_LIBS
  6397. fi
  6398. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_zlibVersion" >&5
  6399. $as_echo "$ac_cv_lib_z_zlibVersion" >&6; }
  6400. if test "x$ac_cv_lib_z_zlibVersion" = x""yes; then :
  6401. have_libz=yes
  6402. fi
  6403. if test "x$have_libz" = "xyes"; then
  6404. $as_echo "#define HAVE_LIBZ 1" >>confdefs.h
  6405. LIBZ_LIBS="-L$libz_prefix_lib -lz"
  6406. LIBZ_CPPFLAGS="-I$libz_prefix_include"
  6407. fi
  6408. LIBS=$LIBS_save
  6409. CPPFLAGS=$CPPFLAGS_save
  6410. if test "x$have_libz" != "xyes" && test "x$with_libz_requested" = "xyes"; then
  6411. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  6412. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  6413. as_fn_error "libz is requested but not found in the system.
  6414. See \`config.log' for more details." "$LINENO" 5; }
  6415. fi
  6416. fi
  6417. # Define variables based on the result of the checks for libraries.
  6418. if test "x$have_libgnutls" = "xyes" || test "x$have_openssl" = "xyes"; then
  6419. $as_echo "#define ENABLE_SSL 1" >>confdefs.h
  6420. if true; then
  6421. ENABLE_SSL_TRUE=
  6422. ENABLE_SSL_FALSE='#'
  6423. else
  6424. ENABLE_SSL_TRUE='#'
  6425. ENABLE_SSL_FALSE=
  6426. fi
  6427. else
  6428. if false; then
  6429. ENABLE_SSL_TRUE=
  6430. ENABLE_SSL_FALSE='#'
  6431. else
  6432. ENABLE_SSL_TRUE='#'
  6433. ENABLE_SSL_FALSE=
  6434. fi
  6435. fi
  6436. if test "x$have_libgnutls" = "xyes" ; then
  6437. HAVE_LIBGNUTLS_TRUE=
  6438. HAVE_LIBGNUTLS_FALSE='#'
  6439. else
  6440. HAVE_LIBGNUTLS_TRUE='#'
  6441. HAVE_LIBGNUTLS_FALSE=
  6442. fi
  6443. if test "x$have_openssl" = "xyes" ; then
  6444. HAVE_LIBSSL_TRUE=
  6445. HAVE_LIBSSL_FALSE='#'
  6446. else
  6447. HAVE_LIBSSL_TRUE='#'
  6448. HAVE_LIBSSL_FALSE=
  6449. fi
  6450. if test "x$have_libgcrypt" = "xyes" || test "x$have_openssl" = "xyes"; then
  6451. $as_echo "#define ENABLE_MESSAGE_DIGEST 1" >>confdefs.h
  6452. if true; then
  6453. ENABLE_MESSAGE_DIGEST_TRUE=
  6454. ENABLE_MESSAGE_DIGEST_FALSE='#'
  6455. else
  6456. ENABLE_MESSAGE_DIGEST_TRUE='#'
  6457. ENABLE_MESSAGE_DIGEST_FALSE=
  6458. fi
  6459. enable_message_digest=yes
  6460. else
  6461. if false; then
  6462. ENABLE_MESSAGE_DIGEST_TRUE=
  6463. ENABLE_MESSAGE_DIGEST_FALSE='#'
  6464. else
  6465. ENABLE_MESSAGE_DIGEST_TRUE='#'
  6466. ENABLE_MESSAGE_DIGEST_FALSE=
  6467. fi
  6468. fi
  6469. if test "x$enable_bittorrent" = "xyes" &&
  6470. test "x$enable_message_digest" = "xyes"; then
  6471. $as_echo "#define ENABLE_BITTORRENT 1" >>confdefs.h
  6472. if true; then
  6473. ENABLE_BITTORRENT_TRUE=
  6474. ENABLE_BITTORRENT_FALSE='#'
  6475. else
  6476. ENABLE_BITTORRENT_TRUE='#'
  6477. ENABLE_BITTORRENT_FALSE=
  6478. fi
  6479. else
  6480. if test "x$enable_bittorrent_requested" = "xyes"; then
  6481. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  6482. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  6483. as_fn_error "bittorrent is requested but cannot be enabled with current\
  6484. configuration.\
  6485. Make sure that dependent libraries are installed and configure script options\
  6486. are correct.
  6487. See \`config.log' for more details." "$LINENO" 5; }
  6488. fi
  6489. enable_bittorrent=no
  6490. if false; then
  6491. ENABLE_BITTORRENT_TRUE=
  6492. ENABLE_BITTORRENT_FALSE='#'
  6493. else
  6494. ENABLE_BITTORRENT_TRUE='#'
  6495. ENABLE_BITTORRENT_FALSE=
  6496. fi
  6497. fi
  6498. if (test "x$have_libxml2" = "xyes" || test "x$have_libexpat" = "xyes") &&
  6499. test "x$enable_metalink" = "xyes"; then
  6500. $as_echo "#define ENABLE_METALINK 1" >>confdefs.h
  6501. if true; then
  6502. ENABLE_METALINK_TRUE=
  6503. ENABLE_METALINK_FALSE='#'
  6504. else
  6505. ENABLE_METALINK_TRUE='#'
  6506. ENABLE_METALINK_FALSE=
  6507. fi
  6508. else
  6509. if test "x$enable_metalink_requested" = "xyes"; then
  6510. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  6511. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  6512. as_fn_error "metalink is requested but cannot be enabled with current\
  6513. configuration.\
  6514. Make sure that dependent libraries are installed and configure script options\
  6515. are correct.
  6516. See \`config.log' for more details." "$LINENO" 5; }
  6517. fi
  6518. enable_metalink=no
  6519. if false; then
  6520. ENABLE_METALINK_TRUE=
  6521. ENABLE_METALINK_FALSE='#'
  6522. else
  6523. ENABLE_METALINK_TRUE='#'
  6524. ENABLE_METALINK_FALSE=
  6525. fi
  6526. fi
  6527. if test "x$enable_metalink" = "xyes" && test "x$have_libxml2" = "xyes"; then
  6528. ENABLE_METALINK_LIBXML2_TRUE=
  6529. ENABLE_METALINK_LIBXML2_FALSE='#'
  6530. else
  6531. ENABLE_METALINK_LIBXML2_TRUE='#'
  6532. ENABLE_METALINK_LIBXML2_FALSE=
  6533. fi
  6534. if test "x$enable_metalink" = "xyes" && test "x$have_libexpat" = "xyes"; then
  6535. ENABLE_METALINK_LIBEXPAT_TRUE=
  6536. ENABLE_METALINK_LIBEXPAT_FALSE='#'
  6537. else
  6538. ENABLE_METALINK_LIBEXPAT_TRUE='#'
  6539. ENABLE_METALINK_LIBEXPAT_FALSE=
  6540. fi
  6541. if test "x$have_libxml2" = "xyes" || test "x$have_libexpat" = "xyes"; then
  6542. enable_xml_rpc=yes
  6543. fi
  6544. if test "x$enable_xml_rpc" = "xyes"; then
  6545. $as_echo "#define ENABLE_XML_RPC 1" >>confdefs.h
  6546. fi
  6547. if test "x$enable_xml_rpc" = "xyes"; then
  6548. ENABLE_XML_RPC_TRUE=
  6549. ENABLE_XML_RPC_FALSE='#'
  6550. else
  6551. ENABLE_XML_RPC_TRUE='#'
  6552. ENABLE_XML_RPC_FALSE=
  6553. fi
  6554. if test "x$have_libxml2" = "xyes"; then
  6555. HAVE_LIBXML2_TRUE=
  6556. HAVE_LIBXML2_FALSE='#'
  6557. else
  6558. HAVE_LIBXML2_TRUE='#'
  6559. HAVE_LIBXML2_FALSE=
  6560. fi
  6561. if test "x$have_libexpat" = "xyes"; then
  6562. HAVE_LIBEXPAT_TRUE=
  6563. HAVE_LIBEXPAT_FALSE='#'
  6564. else
  6565. HAVE_LIBEXPAT_TRUE='#'
  6566. HAVE_LIBEXPAT_FALSE=
  6567. fi
  6568. if test "x$have_libcares" = "xyes"; then
  6569. $as_echo "#define ENABLE_ASYNC_DNS 1" >>confdefs.h
  6570. if true; then
  6571. ENABLE_ASYNC_DNS_TRUE=
  6572. ENABLE_ASYNC_DNS_FALSE='#'
  6573. else
  6574. ENABLE_ASYNC_DNS_TRUE='#'
  6575. ENABLE_ASYNC_DNS_FALSE=
  6576. fi
  6577. else
  6578. if false; then
  6579. ENABLE_ASYNC_DNS_TRUE=
  6580. ENABLE_ASYNC_DNS_FALSE='#'
  6581. else
  6582. ENABLE_ASYNC_DNS_TRUE='#'
  6583. ENABLE_ASYNC_DNS_FALSE=
  6584. fi
  6585. fi
  6586. # Set conditional for libz
  6587. if test "x$have_libz" = "xyes"; then
  6588. HAVE_LIBZ_TRUE=
  6589. HAVE_LIBZ_FALSE='#'
  6590. else
  6591. HAVE_LIBZ_TRUE='#'
  6592. HAVE_LIBZ_FALSE=
  6593. fi
  6594. # Set conditional for sqlite3
  6595. if test "x$have_sqlite3" = "xyes"; then
  6596. HAVE_SQLITE3_TRUE=
  6597. HAVE_SQLITE3_FALSE='#'
  6598. else
  6599. HAVE_SQLITE3_TRUE='#'
  6600. HAVE_SQLITE3_FALSE=
  6601. fi
  6602. # Checks for header files.
  6603. # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
  6604. # for constant arguments. Useless!
  6605. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working alloca.h" >&5
  6606. $as_echo_n "checking for working alloca.h... " >&6; }
  6607. if test "${ac_cv_working_alloca_h+set}" = set; then :
  6608. $as_echo_n "(cached) " >&6
  6609. else
  6610. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6611. /* end confdefs.h. */
  6612. #include <alloca.h>
  6613. int
  6614. main ()
  6615. {
  6616. char *p = (char *) alloca (2 * sizeof (int));
  6617. if (p) return 0;
  6618. ;
  6619. return 0;
  6620. }
  6621. _ACEOF
  6622. if ac_fn_cxx_try_link "$LINENO"; then :
  6623. ac_cv_working_alloca_h=yes
  6624. else
  6625. ac_cv_working_alloca_h=no
  6626. fi
  6627. rm -f core conftest.err conftest.$ac_objext \
  6628. conftest$ac_exeext conftest.$ac_ext
  6629. fi
  6630. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_alloca_h" >&5
  6631. $as_echo "$ac_cv_working_alloca_h" >&6; }
  6632. if test $ac_cv_working_alloca_h = yes; then
  6633. $as_echo "#define HAVE_ALLOCA_H 1" >>confdefs.h
  6634. fi
  6635. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca" >&5
  6636. $as_echo_n "checking for alloca... " >&6; }
  6637. if test "${ac_cv_func_alloca_works+set}" = set; then :
  6638. $as_echo_n "(cached) " >&6
  6639. else
  6640. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6641. /* end confdefs.h. */
  6642. #ifdef __GNUC__
  6643. # define alloca __builtin_alloca
  6644. #else
  6645. # ifdef _MSC_VER
  6646. # include <malloc.h>
  6647. # define alloca _alloca
  6648. # else
  6649. # ifdef HAVE_ALLOCA_H
  6650. # include <alloca.h>
  6651. # else
  6652. # ifdef _AIX
  6653. #pragma alloca
  6654. # else
  6655. # ifndef alloca /* predefined by HP cc +Olibcalls */
  6656. char *alloca ();
  6657. # endif
  6658. # endif
  6659. # endif
  6660. # endif
  6661. #endif
  6662. int
  6663. main ()
  6664. {
  6665. char *p = (char *) alloca (1);
  6666. if (p) return 0;
  6667. ;
  6668. return 0;
  6669. }
  6670. _ACEOF
  6671. if ac_fn_cxx_try_link "$LINENO"; then :
  6672. ac_cv_func_alloca_works=yes
  6673. else
  6674. ac_cv_func_alloca_works=no
  6675. fi
  6676. rm -f core conftest.err conftest.$ac_objext \
  6677. conftest$ac_exeext conftest.$ac_ext
  6678. fi
  6679. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_alloca_works" >&5
  6680. $as_echo "$ac_cv_func_alloca_works" >&6; }
  6681. if test $ac_cv_func_alloca_works = yes; then
  6682. $as_echo "#define HAVE_ALLOCA 1" >>confdefs.h
  6683. else
  6684. # The SVR3 libPW and SVR4 libucb both contain incompatible functions
  6685. # that cause trouble. Some versions do not even contain alloca or
  6686. # contain a buggy version. If you still want to use their alloca,
  6687. # use ar to extract alloca.o from them instead of compiling alloca.c.
  6688. ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
  6689. $as_echo "#define C_ALLOCA 1" >>confdefs.h
  6690. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether \`alloca.c' needs Cray hooks" >&5
  6691. $as_echo_n "checking whether \`alloca.c' needs Cray hooks... " >&6; }
  6692. if test "${ac_cv_os_cray+set}" = set; then :
  6693. $as_echo_n "(cached) " >&6
  6694. else
  6695. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6696. /* end confdefs.h. */
  6697. #if defined CRAY && ! defined CRAY2
  6698. webecray
  6699. #else
  6700. wenotbecray
  6701. #endif
  6702. _ACEOF
  6703. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  6704. $EGREP "webecray" >/dev/null 2>&1; then :
  6705. ac_cv_os_cray=yes
  6706. else
  6707. ac_cv_os_cray=no
  6708. fi
  6709. rm -f conftest*
  6710. fi
  6711. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_os_cray" >&5
  6712. $as_echo "$ac_cv_os_cray" >&6; }
  6713. if test $ac_cv_os_cray = yes; then
  6714. for ac_func in _getb67 GETB67 getb67; do
  6715. as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
  6716. ac_fn_cxx_check_func "$LINENO" "$ac_func" "$as_ac_var"
  6717. eval as_val=\$$as_ac_var
  6718. if test "x$as_val" = x""yes; then :
  6719. cat >>confdefs.h <<_ACEOF
  6720. #define CRAY_STACKSEG_END $ac_func
  6721. _ACEOF
  6722. break
  6723. fi
  6724. done
  6725. fi
  6726. { $as_echo "$as_me:${as_lineno-$LINENO}: checking stack direction for C alloca" >&5
  6727. $as_echo_n "checking stack direction for C alloca... " >&6; }
  6728. if test "${ac_cv_c_stack_direction+set}" = set; then :
  6729. $as_echo_n "(cached) " >&6
  6730. else
  6731. if test "$cross_compiling" = yes; then :
  6732. ac_cv_c_stack_direction=0
  6733. else
  6734. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6735. /* end confdefs.h. */
  6736. $ac_includes_default
  6737. int
  6738. find_stack_direction ()
  6739. {
  6740. static char *addr = 0;
  6741. auto char dummy;
  6742. if (addr == 0)
  6743. {
  6744. addr = &dummy;
  6745. return find_stack_direction ();
  6746. }
  6747. else
  6748. return (&dummy > addr) ? 1 : -1;
  6749. }
  6750. int
  6751. main ()
  6752. {
  6753. return find_stack_direction () < 0;
  6754. }
  6755. _ACEOF
  6756. if ac_fn_cxx_try_run "$LINENO"; then :
  6757. ac_cv_c_stack_direction=1
  6758. else
  6759. ac_cv_c_stack_direction=-1
  6760. fi
  6761. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  6762. conftest.$ac_objext conftest.beam conftest.$ac_ext
  6763. fi
  6764. fi
  6765. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stack_direction" >&5
  6766. $as_echo "$ac_cv_c_stack_direction" >&6; }
  6767. cat >>confdefs.h <<_ACEOF
  6768. #define STACK_DIRECTION $ac_cv_c_stack_direction
  6769. _ACEOF
  6770. fi
  6771. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
  6772. $as_echo_n "checking for ANSI C header files... " >&6; }
  6773. if test "${ac_cv_header_stdc+set}" = set; then :
  6774. $as_echo_n "(cached) " >&6
  6775. else
  6776. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6777. /* end confdefs.h. */
  6778. #include <stdlib.h>
  6779. #include <stdarg.h>
  6780. #include <string.h>
  6781. #include <float.h>
  6782. int
  6783. main ()
  6784. {
  6785. ;
  6786. return 0;
  6787. }
  6788. _ACEOF
  6789. if ac_fn_cxx_try_compile "$LINENO"; then :
  6790. ac_cv_header_stdc=yes
  6791. else
  6792. ac_cv_header_stdc=no
  6793. fi
  6794. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  6795. if test $ac_cv_header_stdc = yes; then
  6796. # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
  6797. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6798. /* end confdefs.h. */
  6799. #include <string.h>
  6800. _ACEOF
  6801. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  6802. $EGREP "memchr" >/dev/null 2>&1; then :
  6803. else
  6804. ac_cv_header_stdc=no
  6805. fi
  6806. rm -f conftest*
  6807. fi
  6808. if test $ac_cv_header_stdc = yes; then
  6809. # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
  6810. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6811. /* end confdefs.h. */
  6812. #include <stdlib.h>
  6813. _ACEOF
  6814. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  6815. $EGREP "free" >/dev/null 2>&1; then :
  6816. else
  6817. ac_cv_header_stdc=no
  6818. fi
  6819. rm -f conftest*
  6820. fi
  6821. if test $ac_cv_header_stdc = yes; then
  6822. # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
  6823. if test "$cross_compiling" = yes; then :
  6824. :
  6825. else
  6826. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6827. /* end confdefs.h. */
  6828. #include <ctype.h>
  6829. #include <stdlib.h>
  6830. #if ((' ' & 0x0FF) == 0x020)
  6831. # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
  6832. # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
  6833. #else
  6834. # define ISLOWER(c) \
  6835. (('a' <= (c) && (c) <= 'i') \
  6836. || ('j' <= (c) && (c) <= 'r') \
  6837. || ('s' <= (c) && (c) <= 'z'))
  6838. # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
  6839. #endif
  6840. #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
  6841. int
  6842. main ()
  6843. {
  6844. int i;
  6845. for (i = 0; i < 256; i++)
  6846. if (XOR (islower (i), ISLOWER (i))
  6847. || toupper (i) != TOUPPER (i))
  6848. return 2;
  6849. return 0;
  6850. }
  6851. _ACEOF
  6852. if ac_fn_cxx_try_run "$LINENO"; then :
  6853. else
  6854. ac_cv_header_stdc=no
  6855. fi
  6856. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  6857. conftest.$ac_objext conftest.beam conftest.$ac_ext
  6858. fi
  6859. fi
  6860. fi
  6861. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
  6862. $as_echo "$ac_cv_header_stdc" >&6; }
  6863. if test $ac_cv_header_stdc = yes; then
  6864. $as_echo "#define STDC_HEADERS 1" >>confdefs.h
  6865. fi
  6866. case "$target" in
  6867. *mingw*)
  6868. for ac_header in winsock2.h \
  6869. ws2tcpip.h
  6870. do :
  6871. as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
  6872. ac_fn_cxx_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
  6873. eval as_val=\$$as_ac_Header
  6874. if test "x$as_val" = x""yes; then :
  6875. cat >>confdefs.h <<_ACEOF
  6876. #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
  6877. _ACEOF
  6878. fi
  6879. done
  6880. ;;
  6881. esac
  6882. for ac_header in argz.h \
  6883. arpa/inet.h \
  6884. fcntl.h \
  6885. float.h \
  6886. inttypes.h \
  6887. io.h \
  6888. langinfo.h \
  6889. libintl.h \
  6890. limits.h \
  6891. locale.h \
  6892. malloc.h \
  6893. netdb.h \
  6894. netinet/in.h \
  6895. stddef.h \
  6896. stdint.h \
  6897. stdio_ext.h \
  6898. stdlib.h \
  6899. string.h \
  6900. strings.h \
  6901. sys/ioctl.h \
  6902. sys/param.h \
  6903. sys/socket.h \
  6904. sys/time.h \
  6905. termios.h \
  6906. unistd.h \
  6907. utime.h \
  6908. wchar.h \
  6909. ifaddrs.h
  6910. do :
  6911. as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
  6912. ac_fn_cxx_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
  6913. eval as_val=\$$as_ac_Header
  6914. if test "x$as_val" = x""yes; then :
  6915. cat >>confdefs.h <<_ACEOF
  6916. #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
  6917. _ACEOF
  6918. fi
  6919. done
  6920. # Checks for typedefs, structures, and compiler characteristics.
  6921. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for stdbool.h that conforms to C99" >&5
  6922. $as_echo_n "checking for stdbool.h that conforms to C99... " >&6; }
  6923. if test "${ac_cv_header_stdbool_h+set}" = set; then :
  6924. $as_echo_n "(cached) " >&6
  6925. else
  6926. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6927. /* end confdefs.h. */
  6928. #include <stdbool.h>
  6929. #ifndef bool
  6930. "error: bool is not defined"
  6931. #endif
  6932. #ifndef false
  6933. "error: false is not defined"
  6934. #endif
  6935. #if false
  6936. "error: false is not 0"
  6937. #endif
  6938. #ifndef true
  6939. "error: true is not defined"
  6940. #endif
  6941. #if true != 1
  6942. "error: true is not 1"
  6943. #endif
  6944. #ifndef __bool_true_false_are_defined
  6945. "error: __bool_true_false_are_defined is not defined"
  6946. #endif
  6947. struct s { _Bool s: 1; _Bool t; } s;
  6948. char a[true == 1 ? 1 : -1];
  6949. char b[false == 0 ? 1 : -1];
  6950. char c[__bool_true_false_are_defined == 1 ? 1 : -1];
  6951. char d[(bool) 0.5 == true ? 1 : -1];
  6952. bool e = &s;
  6953. char f[(_Bool) 0.0 == false ? 1 : -1];
  6954. char g[true];
  6955. char h[sizeof (_Bool)];
  6956. char i[sizeof s.t];
  6957. enum { j = false, k = true, l = false * true, m = true * 256 };
  6958. /* The following fails for
  6959. HP aC++/ANSI C B3910B A.05.55 [Dec 04 2003]. */
  6960. _Bool n[m];
  6961. char o[sizeof n == m * sizeof n[0] ? 1 : -1];
  6962. char p[-1 - (_Bool) 0 < 0 && -1 - (bool) 0 < 0 ? 1 : -1];
  6963. # if defined __xlc__ || defined __GNUC__
  6964. /* Catch a bug in IBM AIX xlc compiler version 6.0.0.0
  6965. reported by James Lemley on 2005-10-05; see
  6966. http://lists.gnu.org/archive/html/bug-coreutils/2005-10/msg00086.html
  6967. This test is not quite right, since xlc is allowed to
  6968. reject this program, as the initializer for xlcbug is
  6969. not one of the forms that C requires support for.
  6970. However, doing the test right would require a runtime
  6971. test, and that would make cross-compilation harder.
  6972. Let us hope that IBM fixes the xlc bug, and also adds
  6973. support for this kind of constant expression. In the
  6974. meantime, this test will reject xlc, which is OK, since
  6975. our stdbool.h substitute should suffice. We also test
  6976. this with GCC, where it should work, to detect more
  6977. quickly whether someone messes up the test in the
  6978. future. */
  6979. char digs[] = "0123456789";
  6980. int xlcbug = 1 / (&(digs + 5)[-2 + (bool) 1] == &digs[4] ? 1 : -1);
  6981. # endif
  6982. /* Catch a bug in an HP-UX C compiler. See
  6983. http://gcc.gnu.org/ml/gcc-patches/2003-12/msg02303.html
  6984. http://lists.gnu.org/archive/html/bug-coreutils/2005-11/msg00161.html
  6985. */
  6986. _Bool q = true;
  6987. _Bool *pq = &q;
  6988. int
  6989. main ()
  6990. {
  6991. *pq |= q;
  6992. *pq |= ! q;
  6993. /* Refer to every declared value, to avoid compiler optimizations. */
  6994. return (!a + !b + !c + !d + !e + !f + !g + !h + !i + !!j + !k + !!l
  6995. + !m + !n + !o + !p + !q + !pq);
  6996. ;
  6997. return 0;
  6998. }
  6999. _ACEOF
  7000. if ac_fn_cxx_try_compile "$LINENO"; then :
  7001. ac_cv_header_stdbool_h=yes
  7002. else
  7003. ac_cv_header_stdbool_h=no
  7004. fi
  7005. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  7006. fi
  7007. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdbool_h" >&5
  7008. $as_echo "$ac_cv_header_stdbool_h" >&6; }
  7009. ac_fn_cxx_check_type "$LINENO" "_Bool" "ac_cv_type__Bool" "$ac_includes_default"
  7010. if test "x$ac_cv_type__Bool" = x""yes; then :
  7011. cat >>confdefs.h <<_ACEOF
  7012. #define HAVE__BOOL 1
  7013. _ACEOF
  7014. fi
  7015. if test $ac_cv_header_stdbool_h = yes; then
  7016. $as_echo "#define HAVE_STDBOOL_H 1" >>confdefs.h
  7017. fi
  7018. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
  7019. $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
  7020. if test "${ac_cv_c_const+set}" = set; then :
  7021. $as_echo_n "(cached) " >&6
  7022. else
  7023. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7024. /* end confdefs.h. */
  7025. int
  7026. main ()
  7027. {
  7028. /* FIXME: Include the comments suggested by Paul. */
  7029. #ifndef __cplusplus
  7030. /* Ultrix mips cc rejects this. */
  7031. typedef int charset[2];
  7032. const charset cs;
  7033. /* SunOS 4.1.1 cc rejects this. */
  7034. char const *const *pcpcc;
  7035. char **ppc;
  7036. /* NEC SVR4.0.2 mips cc rejects this. */
  7037. struct point {int x, y;};
  7038. static struct point const zero = {0,0};
  7039. /* AIX XL C 1.02.0.0 rejects this.
  7040. It does not let you subtract one const X* pointer from another in
  7041. an arm of an if-expression whose if-part is not a constant
  7042. expression */
  7043. const char *g = "string";
  7044. pcpcc = &g + (g ? g-g : 0);
  7045. /* HPUX 7.0 cc rejects these. */
  7046. ++pcpcc;
  7047. ppc = (char**) pcpcc;
  7048. pcpcc = (char const *const *) ppc;
  7049. { /* SCO 3.2v4 cc rejects this. */
  7050. char *t;
  7051. char const *s = 0 ? (char *) 0 : (char const *) 0;
  7052. *t++ = 0;
  7053. if (s) return 0;
  7054. }
  7055. { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
  7056. int x[] = {25, 17};
  7057. const int *foo = &x[0];
  7058. ++foo;
  7059. }
  7060. { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
  7061. typedef const int *iptr;
  7062. iptr p = 0;
  7063. ++p;
  7064. }
  7065. { /* AIX XL C 1.02.0.0 rejects this saying
  7066. "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
  7067. struct s { int j; const int *ap[3]; };
  7068. struct s *b; b->j = 5;
  7069. }
  7070. { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
  7071. const int foo = 10;
  7072. if (!foo) return 0;
  7073. }
  7074. return !cs[0] && !zero.x;
  7075. #endif
  7076. ;
  7077. return 0;
  7078. }
  7079. _ACEOF
  7080. if ac_fn_cxx_try_compile "$LINENO"; then :
  7081. ac_cv_c_const=yes
  7082. else
  7083. ac_cv_c_const=no
  7084. fi
  7085. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  7086. fi
  7087. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
  7088. $as_echo "$ac_cv_c_const" >&6; }
  7089. if test $ac_cv_c_const = no; then
  7090. $as_echo "#define const /**/" >>confdefs.h
  7091. fi
  7092. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
  7093. $as_echo_n "checking for inline... " >&6; }
  7094. if test "${ac_cv_c_inline+set}" = set; then :
  7095. $as_echo_n "(cached) " >&6
  7096. else
  7097. ac_cv_c_inline=no
  7098. for ac_kw in inline __inline__ __inline; do
  7099. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7100. /* end confdefs.h. */
  7101. #ifndef __cplusplus
  7102. typedef int foo_t;
  7103. static $ac_kw foo_t static_foo () {return 0; }
  7104. $ac_kw foo_t foo () {return 0; }
  7105. #endif
  7106. _ACEOF
  7107. if ac_fn_cxx_try_compile "$LINENO"; then :
  7108. ac_cv_c_inline=$ac_kw
  7109. fi
  7110. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  7111. test "$ac_cv_c_inline" != no && break
  7112. done
  7113. fi
  7114. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
  7115. $as_echo "$ac_cv_c_inline" >&6; }
  7116. case $ac_cv_c_inline in
  7117. inline | yes) ;;
  7118. *)
  7119. case $ac_cv_c_inline in
  7120. no) ac_val=;;
  7121. *) ac_val=$ac_cv_c_inline;;
  7122. esac
  7123. cat >>confdefs.h <<_ACEOF
  7124. #ifndef __cplusplus
  7125. #define inline $ac_val
  7126. #endif
  7127. _ACEOF
  7128. ;;
  7129. esac
  7130. ac_fn_c_find_intX_t "$LINENO" "16" "ac_cv_c_int16_t"
  7131. case $ac_cv_c_int16_t in #(
  7132. no|yes) ;; #(
  7133. *)
  7134. cat >>confdefs.h <<_ACEOF
  7135. #define int16_t $ac_cv_c_int16_t
  7136. _ACEOF
  7137. ;;
  7138. esac
  7139. ac_fn_c_find_intX_t "$LINENO" "32" "ac_cv_c_int32_t"
  7140. case $ac_cv_c_int32_t in #(
  7141. no|yes) ;; #(
  7142. *)
  7143. cat >>confdefs.h <<_ACEOF
  7144. #define int32_t $ac_cv_c_int32_t
  7145. _ACEOF
  7146. ;;
  7147. esac
  7148. ac_fn_c_find_intX_t "$LINENO" "64" "ac_cv_c_int64_t"
  7149. case $ac_cv_c_int64_t in #(
  7150. no|yes) ;; #(
  7151. *)
  7152. cat >>confdefs.h <<_ACEOF
  7153. #define int64_t $ac_cv_c_int64_t
  7154. _ACEOF
  7155. ;;
  7156. esac
  7157. ac_fn_c_find_intX_t "$LINENO" "8" "ac_cv_c_int8_t"
  7158. case $ac_cv_c_int8_t in #(
  7159. no|yes) ;; #(
  7160. *)
  7161. cat >>confdefs.h <<_ACEOF
  7162. #define int8_t $ac_cv_c_int8_t
  7163. _ACEOF
  7164. ;;
  7165. esac
  7166. ac_fn_cxx_check_type "$LINENO" "mode_t" "ac_cv_type_mode_t" "$ac_includes_default"
  7167. if test "x$ac_cv_type_mode_t" = x""yes; then :
  7168. else
  7169. cat >>confdefs.h <<_ACEOF
  7170. #define mode_t int
  7171. _ACEOF
  7172. fi
  7173. ac_fn_cxx_check_type "$LINENO" "off_t" "ac_cv_type_off_t" "$ac_includes_default"
  7174. if test "x$ac_cv_type_off_t" = x""yes; then :
  7175. else
  7176. cat >>confdefs.h <<_ACEOF
  7177. #define off_t long int
  7178. _ACEOF
  7179. fi
  7180. ac_fn_cxx_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
  7181. if test "x$ac_cv_type_size_t" = x""yes; then :
  7182. else
  7183. cat >>confdefs.h <<_ACEOF
  7184. #define size_t unsigned int
  7185. _ACEOF
  7186. fi
  7187. ac_fn_cxx_check_type "$LINENO" "ssize_t" "ac_cv_type_ssize_t" "$ac_includes_default"
  7188. if test "x$ac_cv_type_ssize_t" = x""yes; then :
  7189. else
  7190. cat >>confdefs.h <<_ACEOF
  7191. #define ssize_t int
  7192. _ACEOF
  7193. fi
  7194. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5
  7195. $as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
  7196. if test "${ac_cv_header_time+set}" = set; then :
  7197. $as_echo_n "(cached) " >&6
  7198. else
  7199. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7200. /* end confdefs.h. */
  7201. #include <sys/types.h>
  7202. #include <sys/time.h>
  7203. #include <time.h>
  7204. int
  7205. main ()
  7206. {
  7207. if ((struct tm *) 0)
  7208. return 0;
  7209. ;
  7210. return 0;
  7211. }
  7212. _ACEOF
  7213. if ac_fn_cxx_try_compile "$LINENO"; then :
  7214. ac_cv_header_time=yes
  7215. else
  7216. ac_cv_header_time=no
  7217. fi
  7218. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  7219. fi
  7220. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
  7221. $as_echo "$ac_cv_header_time" >&6; }
  7222. if test $ac_cv_header_time = yes; then
  7223. $as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
  7224. fi
  7225. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct tm is in sys/time.h or time.h" >&5
  7226. $as_echo_n "checking whether struct tm is in sys/time.h or time.h... " >&6; }
  7227. if test "${ac_cv_struct_tm+set}" = set; then :
  7228. $as_echo_n "(cached) " >&6
  7229. else
  7230. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7231. /* end confdefs.h. */
  7232. #include <sys/types.h>
  7233. #include <time.h>
  7234. int
  7235. main ()
  7236. {
  7237. struct tm tm;
  7238. int *p = &tm.tm_sec;
  7239. return !p;
  7240. ;
  7241. return 0;
  7242. }
  7243. _ACEOF
  7244. if ac_fn_cxx_try_compile "$LINENO"; then :
  7245. ac_cv_struct_tm=time.h
  7246. else
  7247. ac_cv_struct_tm=sys/time.h
  7248. fi
  7249. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  7250. fi
  7251. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tm" >&5
  7252. $as_echo "$ac_cv_struct_tm" >&6; }
  7253. if test $ac_cv_struct_tm = sys/time.h; then
  7254. $as_echo "#define TM_IN_SYS_TIME 1" >>confdefs.h
  7255. fi
  7256. ac_fn_c_find_uintX_t "$LINENO" "16" "ac_cv_c_uint16_t"
  7257. case $ac_cv_c_uint16_t in #(
  7258. no|yes) ;; #(
  7259. *)
  7260. cat >>confdefs.h <<_ACEOF
  7261. #define uint16_t $ac_cv_c_uint16_t
  7262. _ACEOF
  7263. ;;
  7264. esac
  7265. ac_fn_c_find_uintX_t "$LINENO" "32" "ac_cv_c_uint32_t"
  7266. case $ac_cv_c_uint32_t in #(
  7267. no|yes) ;; #(
  7268. *)
  7269. $as_echo "#define _UINT32_T 1" >>confdefs.h
  7270. cat >>confdefs.h <<_ACEOF
  7271. #define uint32_t $ac_cv_c_uint32_t
  7272. _ACEOF
  7273. ;;
  7274. esac
  7275. ac_fn_c_find_uintX_t "$LINENO" "64" "ac_cv_c_uint64_t"
  7276. case $ac_cv_c_uint64_t in #(
  7277. no|yes) ;; #(
  7278. *)
  7279. $as_echo "#define _UINT64_T 1" >>confdefs.h
  7280. cat >>confdefs.h <<_ACEOF
  7281. #define uint64_t $ac_cv_c_uint64_t
  7282. _ACEOF
  7283. ;;
  7284. esac
  7285. ac_fn_c_find_uintX_t "$LINENO" "8" "ac_cv_c_uint8_t"
  7286. case $ac_cv_c_uint8_t in #(
  7287. no|yes) ;; #(
  7288. *)
  7289. $as_echo "#define _UINT8_T 1" >>confdefs.h
  7290. cat >>confdefs.h <<_ACEOF
  7291. #define uint8_t $ac_cv_c_uint8_t
  7292. _ACEOF
  7293. ;;
  7294. esac
  7295. ac_fn_cxx_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
  7296. if test "x$ac_cv_type_pid_t" = x""yes; then :
  7297. else
  7298. cat >>confdefs.h <<_ACEOF
  7299. #define pid_t int
  7300. _ACEOF
  7301. fi
  7302. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working volatile" >&5
  7303. $as_echo_n "checking for working volatile... " >&6; }
  7304. if test "${ac_cv_c_volatile+set}" = set; then :
  7305. $as_echo_n "(cached) " >&6
  7306. else
  7307. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7308. /* end confdefs.h. */
  7309. int
  7310. main ()
  7311. {
  7312. volatile int x;
  7313. int * volatile y = (int *) 0;
  7314. return !x && !y;
  7315. ;
  7316. return 0;
  7317. }
  7318. _ACEOF
  7319. if ac_fn_cxx_try_compile "$LINENO"; then :
  7320. ac_cv_c_volatile=yes
  7321. else
  7322. ac_cv_c_volatile=no
  7323. fi
  7324. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  7325. fi
  7326. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_volatile" >&5
  7327. $as_echo "$ac_cv_c_volatile" >&6; }
  7328. if test $ac_cv_c_volatile = no; then
  7329. $as_echo "#define volatile /**/" >>confdefs.h
  7330. fi
  7331. ac_fn_cxx_check_type "$LINENO" "ptrdiff_t" "ac_cv_type_ptrdiff_t" "$ac_includes_default"
  7332. if test "x$ac_cv_type_ptrdiff_t" = x""yes; then :
  7333. cat >>confdefs.h <<_ACEOF
  7334. #define HAVE_PTRDIFF_T 1
  7335. _ACEOF
  7336. fi
  7337. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
  7338. $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
  7339. if test "${ac_cv_c_bigendian+set}" = set; then :
  7340. $as_echo_n "(cached) " >&6
  7341. else
  7342. ac_cv_c_bigendian=unknown
  7343. # See if we're dealing with a universal compiler.
  7344. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7345. /* end confdefs.h. */
  7346. #ifndef __APPLE_CC__
  7347. not a universal capable compiler
  7348. #endif
  7349. typedef int dummy;
  7350. _ACEOF
  7351. if ac_fn_cxx_try_compile "$LINENO"; then :
  7352. # Check for potential -arch flags. It is not universal unless
  7353. # there are at least two -arch flags with different values.
  7354. ac_arch=
  7355. ac_prev=
  7356. for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
  7357. if test -n "$ac_prev"; then
  7358. case $ac_word in
  7359. i?86 | x86_64 | ppc | ppc64)
  7360. if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
  7361. ac_arch=$ac_word
  7362. else
  7363. ac_cv_c_bigendian=universal
  7364. break
  7365. fi
  7366. ;;
  7367. esac
  7368. ac_prev=
  7369. elif test "x$ac_word" = "x-arch"; then
  7370. ac_prev=arch
  7371. fi
  7372. done
  7373. fi
  7374. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  7375. if test $ac_cv_c_bigendian = unknown; then
  7376. # See if sys/param.h defines the BYTE_ORDER macro.
  7377. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7378. /* end confdefs.h. */
  7379. #include <sys/types.h>
  7380. #include <sys/param.h>
  7381. int
  7382. main ()
  7383. {
  7384. #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
  7385. && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
  7386. && LITTLE_ENDIAN)
  7387. bogus endian macros
  7388. #endif
  7389. ;
  7390. return 0;
  7391. }
  7392. _ACEOF
  7393. if ac_fn_cxx_try_compile "$LINENO"; then :
  7394. # It does; now see whether it defined to BIG_ENDIAN or not.
  7395. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7396. /* end confdefs.h. */
  7397. #include <sys/types.h>
  7398. #include <sys/param.h>
  7399. int
  7400. main ()
  7401. {
  7402. #if BYTE_ORDER != BIG_ENDIAN
  7403. not big endian
  7404. #endif
  7405. ;
  7406. return 0;
  7407. }
  7408. _ACEOF
  7409. if ac_fn_cxx_try_compile "$LINENO"; then :
  7410. ac_cv_c_bigendian=yes
  7411. else
  7412. ac_cv_c_bigendian=no
  7413. fi
  7414. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  7415. fi
  7416. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  7417. fi
  7418. if test $ac_cv_c_bigendian = unknown; then
  7419. # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
  7420. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7421. /* end confdefs.h. */
  7422. #include <limits.h>
  7423. int
  7424. main ()
  7425. {
  7426. #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
  7427. bogus endian macros
  7428. #endif
  7429. ;
  7430. return 0;
  7431. }
  7432. _ACEOF
  7433. if ac_fn_cxx_try_compile "$LINENO"; then :
  7434. # It does; now see whether it defined to _BIG_ENDIAN or not.
  7435. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7436. /* end confdefs.h. */
  7437. #include <limits.h>
  7438. int
  7439. main ()
  7440. {
  7441. #ifndef _BIG_ENDIAN
  7442. not big endian
  7443. #endif
  7444. ;
  7445. return 0;
  7446. }
  7447. _ACEOF
  7448. if ac_fn_cxx_try_compile "$LINENO"; then :
  7449. ac_cv_c_bigendian=yes
  7450. else
  7451. ac_cv_c_bigendian=no
  7452. fi
  7453. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  7454. fi
  7455. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  7456. fi
  7457. if test $ac_cv_c_bigendian = unknown; then
  7458. # Compile a test program.
  7459. if test "$cross_compiling" = yes; then :
  7460. # Try to guess by grepping values from an object file.
  7461. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7462. /* end confdefs.h. */
  7463. short int ascii_mm[] =
  7464. { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
  7465. short int ascii_ii[] =
  7466. { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
  7467. int use_ascii (int i) {
  7468. return ascii_mm[i] + ascii_ii[i];
  7469. }
  7470. short int ebcdic_ii[] =
  7471. { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
  7472. short int ebcdic_mm[] =
  7473. { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
  7474. int use_ebcdic (int i) {
  7475. return ebcdic_mm[i] + ebcdic_ii[i];
  7476. }
  7477. extern int foo;
  7478. int
  7479. main ()
  7480. {
  7481. return use_ascii (foo) == use_ebcdic (foo);
  7482. ;
  7483. return 0;
  7484. }
  7485. _ACEOF
  7486. if ac_fn_cxx_try_compile "$LINENO"; then :
  7487. if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
  7488. ac_cv_c_bigendian=yes
  7489. fi
  7490. if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
  7491. if test "$ac_cv_c_bigendian" = unknown; then
  7492. ac_cv_c_bigendian=no
  7493. else
  7494. # finding both strings is unlikely to happen, but who knows?
  7495. ac_cv_c_bigendian=unknown
  7496. fi
  7497. fi
  7498. fi
  7499. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  7500. else
  7501. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7502. /* end confdefs.h. */
  7503. $ac_includes_default
  7504. int
  7505. main ()
  7506. {
  7507. /* Are we little or big endian? From Harbison&Steele. */
  7508. union
  7509. {
  7510. long int l;
  7511. char c[sizeof (long int)];
  7512. } u;
  7513. u.l = 1;
  7514. return u.c[sizeof (long int) - 1] == 1;
  7515. ;
  7516. return 0;
  7517. }
  7518. _ACEOF
  7519. if ac_fn_cxx_try_run "$LINENO"; then :
  7520. ac_cv_c_bigendian=no
  7521. else
  7522. ac_cv_c_bigendian=yes
  7523. fi
  7524. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  7525. conftest.$ac_objext conftest.beam conftest.$ac_ext
  7526. fi
  7527. fi
  7528. fi
  7529. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
  7530. $as_echo "$ac_cv_c_bigendian" >&6; }
  7531. case $ac_cv_c_bigendian in #(
  7532. yes)
  7533. $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
  7534. ;; #(
  7535. no)
  7536. ;; #(
  7537. universal)
  7538. $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
  7539. ;; #(
  7540. *)
  7541. as_fn_error "unknown endianness
  7542. presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
  7543. esac
  7544. # Check whether --enable-largefile was given.
  7545. if test "${enable_largefile+set}" = set; then :
  7546. enableval=$enable_largefile;
  7547. fi
  7548. if test "$enable_largefile" != no; then
  7549. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
  7550. $as_echo_n "checking for special C compiler options needed for large files... " >&6; }
  7551. if test "${ac_cv_sys_largefile_CC+set}" = set; then :
  7552. $as_echo_n "(cached) " >&6
  7553. else
  7554. ac_cv_sys_largefile_CC=no
  7555. if test "$GCC" != yes; then
  7556. ac_save_CC=$CC
  7557. while :; do
  7558. # IRIX 6.2 and later do not support large files by default,
  7559. # so use the C compiler's -n32 option if that helps.
  7560. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7561. /* end confdefs.h. */
  7562. #include <sys/types.h>
  7563. /* Check that off_t can represent 2**63 - 1 correctly.
  7564. We can't simply define LARGE_OFF_T to be 9223372036854775807,
  7565. since some C++ compilers masquerading as C compilers
  7566. incorrectly reject 9223372036854775807. */
  7567. #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
  7568. int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
  7569. && LARGE_OFF_T % 2147483647 == 1)
  7570. ? 1 : -1];
  7571. int
  7572. main ()
  7573. {
  7574. ;
  7575. return 0;
  7576. }
  7577. _ACEOF
  7578. if ac_fn_cxx_try_compile "$LINENO"; then :
  7579. break
  7580. fi
  7581. rm -f core conftest.err conftest.$ac_objext
  7582. CC="$CC -n32"
  7583. if ac_fn_cxx_try_compile "$LINENO"; then :
  7584. ac_cv_sys_largefile_CC=' -n32'; break
  7585. fi
  7586. rm -f core conftest.err conftest.$ac_objext
  7587. break
  7588. done
  7589. CC=$ac_save_CC
  7590. rm -f conftest.$ac_ext
  7591. fi
  7592. fi
  7593. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
  7594. $as_echo "$ac_cv_sys_largefile_CC" >&6; }
  7595. if test "$ac_cv_sys_largefile_CC" != no; then
  7596. CC=$CC$ac_cv_sys_largefile_CC
  7597. fi
  7598. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
  7599. $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
  7600. if test "${ac_cv_sys_file_offset_bits+set}" = set; then :
  7601. $as_echo_n "(cached) " >&6
  7602. else
  7603. while :; do
  7604. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7605. /* end confdefs.h. */
  7606. #include <sys/types.h>
  7607. /* Check that off_t can represent 2**63 - 1 correctly.
  7608. We can't simply define LARGE_OFF_T to be 9223372036854775807,
  7609. since some C++ compilers masquerading as C compilers
  7610. incorrectly reject 9223372036854775807. */
  7611. #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
  7612. int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
  7613. && LARGE_OFF_T % 2147483647 == 1)
  7614. ? 1 : -1];
  7615. int
  7616. main ()
  7617. {
  7618. ;
  7619. return 0;
  7620. }
  7621. _ACEOF
  7622. if ac_fn_cxx_try_compile "$LINENO"; then :
  7623. ac_cv_sys_file_offset_bits=no; break
  7624. fi
  7625. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  7626. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7627. /* end confdefs.h. */
  7628. #define _FILE_OFFSET_BITS 64
  7629. #include <sys/types.h>
  7630. /* Check that off_t can represent 2**63 - 1 correctly.
  7631. We can't simply define LARGE_OFF_T to be 9223372036854775807,
  7632. since some C++ compilers masquerading as C compilers
  7633. incorrectly reject 9223372036854775807. */
  7634. #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
  7635. int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
  7636. && LARGE_OFF_T % 2147483647 == 1)
  7637. ? 1 : -1];
  7638. int
  7639. main ()
  7640. {
  7641. ;
  7642. return 0;
  7643. }
  7644. _ACEOF
  7645. if ac_fn_cxx_try_compile "$LINENO"; then :
  7646. ac_cv_sys_file_offset_bits=64; break
  7647. fi
  7648. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  7649. ac_cv_sys_file_offset_bits=unknown
  7650. break
  7651. done
  7652. fi
  7653. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
  7654. $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
  7655. case $ac_cv_sys_file_offset_bits in #(
  7656. no | unknown) ;;
  7657. *)
  7658. cat >>confdefs.h <<_ACEOF
  7659. #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
  7660. _ACEOF
  7661. ;;
  7662. esac
  7663. rm -rf conftest*
  7664. if test $ac_cv_sys_file_offset_bits = unknown; then
  7665. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
  7666. $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
  7667. if test "${ac_cv_sys_large_files+set}" = set; then :
  7668. $as_echo_n "(cached) " >&6
  7669. else
  7670. while :; do
  7671. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7672. /* end confdefs.h. */
  7673. #include <sys/types.h>
  7674. /* Check that off_t can represent 2**63 - 1 correctly.
  7675. We can't simply define LARGE_OFF_T to be 9223372036854775807,
  7676. since some C++ compilers masquerading as C compilers
  7677. incorrectly reject 9223372036854775807. */
  7678. #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
  7679. int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
  7680. && LARGE_OFF_T % 2147483647 == 1)
  7681. ? 1 : -1];
  7682. int
  7683. main ()
  7684. {
  7685. ;
  7686. return 0;
  7687. }
  7688. _ACEOF
  7689. if ac_fn_cxx_try_compile "$LINENO"; then :
  7690. ac_cv_sys_large_files=no; break
  7691. fi
  7692. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  7693. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7694. /* end confdefs.h. */
  7695. #define _LARGE_FILES 1
  7696. #include <sys/types.h>
  7697. /* Check that off_t can represent 2**63 - 1 correctly.
  7698. We can't simply define LARGE_OFF_T to be 9223372036854775807,
  7699. since some C++ compilers masquerading as C compilers
  7700. incorrectly reject 9223372036854775807. */
  7701. #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
  7702. int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
  7703. && LARGE_OFF_T % 2147483647 == 1)
  7704. ? 1 : -1];
  7705. int
  7706. main ()
  7707. {
  7708. ;
  7709. return 0;
  7710. }
  7711. _ACEOF
  7712. if ac_fn_cxx_try_compile "$LINENO"; then :
  7713. ac_cv_sys_large_files=1; break
  7714. fi
  7715. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  7716. ac_cv_sys_large_files=unknown
  7717. break
  7718. done
  7719. fi
  7720. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
  7721. $as_echo "$ac_cv_sys_large_files" >&6; }
  7722. case $ac_cv_sys_large_files in #(
  7723. no | unknown) ;;
  7724. *)
  7725. cat >>confdefs.h <<_ACEOF
  7726. #define _LARGE_FILES $ac_cv_sys_large_files
  7727. _ACEOF
  7728. ;;
  7729. esac
  7730. rm -rf conftest*
  7731. fi
  7732. fi
  7733. # Checks for library functions.
  7734. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5
  7735. $as_echo_n "checking whether NLS is requested... " >&6; }
  7736. # Check whether --enable-nls was given.
  7737. if test "${enable_nls+set}" = set; then :
  7738. enableval=$enable_nls; USE_NLS=$enableval
  7739. else
  7740. USE_NLS=yes
  7741. fi
  7742. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5
  7743. $as_echo "$USE_NLS" >&6; }
  7744. GETTEXT_MACRO_VERSION=0.17
  7745. # Prepare PATH_SEPARATOR.
  7746. # The user is always right.
  7747. if test "${PATH_SEPARATOR+set}" != set; then
  7748. echo "#! /bin/sh" >conf$$.sh
  7749. echo "exit 0" >>conf$$.sh
  7750. chmod +x conf$$.sh
  7751. if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
  7752. PATH_SEPARATOR=';'
  7753. else
  7754. PATH_SEPARATOR=:
  7755. fi
  7756. rm -f conf$$.sh
  7757. fi
  7758. # Find out how to test for executable files. Don't use a zero-byte file,
  7759. # as systems may use methods other than mode bits to determine executability.
  7760. cat >conf$$.file <<_ASEOF
  7761. #! /bin/sh
  7762. exit 0
  7763. _ASEOF
  7764. chmod +x conf$$.file
  7765. if test -x conf$$.file >/dev/null 2>&1; then
  7766. ac_executable_p="test -x"
  7767. else
  7768. ac_executable_p="test -f"
  7769. fi
  7770. rm -f conf$$.file
  7771. # Extract the first word of "msgfmt", so it can be a program name with args.
  7772. set dummy msgfmt; ac_word=$2
  7773. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  7774. $as_echo_n "checking for $ac_word... " >&6; }
  7775. if test "${ac_cv_path_MSGFMT+set}" = set; then :
  7776. $as_echo_n "(cached) " >&6
  7777. else
  7778. case "$MSGFMT" in
  7779. [\\/]* | ?:[\\/]*)
  7780. ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
  7781. ;;
  7782. *)
  7783. ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
  7784. for ac_dir in $PATH; do
  7785. IFS="$ac_save_IFS"
  7786. test -z "$ac_dir" && ac_dir=.
  7787. for ac_exec_ext in '' $ac_executable_extensions; do
  7788. if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
  7789. echo "$as_me: trying $ac_dir/$ac_word..." >&5
  7790. if $ac_dir/$ac_word --statistics /dev/null >&5 2>&1 &&
  7791. (if $ac_dir/$ac_word --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
  7792. ac_cv_path_MSGFMT="$ac_dir/$ac_word$ac_exec_ext"
  7793. break 2
  7794. fi
  7795. fi
  7796. done
  7797. done
  7798. IFS="$ac_save_IFS"
  7799. test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT=":"
  7800. ;;
  7801. esac
  7802. fi
  7803. MSGFMT="$ac_cv_path_MSGFMT"
  7804. if test "$MSGFMT" != ":"; then
  7805. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGFMT" >&5
  7806. $as_echo "$MSGFMT" >&6; }
  7807. else
  7808. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7809. $as_echo "no" >&6; }
  7810. fi
  7811. # Extract the first word of "gmsgfmt", so it can be a program name with args.
  7812. set dummy gmsgfmt; ac_word=$2
  7813. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  7814. $as_echo_n "checking for $ac_word... " >&6; }
  7815. if test "${ac_cv_path_GMSGFMT+set}" = set; then :
  7816. $as_echo_n "(cached) " >&6
  7817. else
  7818. case $GMSGFMT in
  7819. [\\/]* | ?:[\\/]*)
  7820. ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
  7821. ;;
  7822. *)
  7823. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  7824. for as_dir in $PATH
  7825. do
  7826. IFS=$as_save_IFS
  7827. test -z "$as_dir" && as_dir=.
  7828. for ac_exec_ext in '' $ac_executable_extensions; do
  7829. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  7830. ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
  7831. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  7832. break 2
  7833. fi
  7834. done
  7835. done
  7836. IFS=$as_save_IFS
  7837. test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
  7838. ;;
  7839. esac
  7840. fi
  7841. GMSGFMT=$ac_cv_path_GMSGFMT
  7842. if test -n "$GMSGFMT"; then
  7843. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GMSGFMT" >&5
  7844. $as_echo "$GMSGFMT" >&6; }
  7845. else
  7846. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7847. $as_echo "no" >&6; }
  7848. fi
  7849. case `$MSGFMT --version | sed 1q | sed -e 's,^[^0-9]*,,'` in
  7850. '' | 0.[0-9] | 0.[0-9].* | 0.1[0-4] | 0.1[0-4].*) MSGFMT_015=: ;;
  7851. *) MSGFMT_015=$MSGFMT ;;
  7852. esac
  7853. case `$GMSGFMT --version | sed 1q | sed -e 's,^[^0-9]*,,'` in
  7854. '' | 0.[0-9] | 0.[0-9].* | 0.1[0-4] | 0.1[0-4].*) GMSGFMT_015=: ;;
  7855. *) GMSGFMT_015=$GMSGFMT ;;
  7856. esac
  7857. # Prepare PATH_SEPARATOR.
  7858. # The user is always right.
  7859. if test "${PATH_SEPARATOR+set}" != set; then
  7860. echo "#! /bin/sh" >conf$$.sh
  7861. echo "exit 0" >>conf$$.sh
  7862. chmod +x conf$$.sh
  7863. if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
  7864. PATH_SEPARATOR=';'
  7865. else
  7866. PATH_SEPARATOR=:
  7867. fi
  7868. rm -f conf$$.sh
  7869. fi
  7870. # Find out how to test for executable files. Don't use a zero-byte file,
  7871. # as systems may use methods other than mode bits to determine executability.
  7872. cat >conf$$.file <<_ASEOF
  7873. #! /bin/sh
  7874. exit 0
  7875. _ASEOF
  7876. chmod +x conf$$.file
  7877. if test -x conf$$.file >/dev/null 2>&1; then
  7878. ac_executable_p="test -x"
  7879. else
  7880. ac_executable_p="test -f"
  7881. fi
  7882. rm -f conf$$.file
  7883. # Extract the first word of "xgettext", so it can be a program name with args.
  7884. set dummy xgettext; ac_word=$2
  7885. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  7886. $as_echo_n "checking for $ac_word... " >&6; }
  7887. if test "${ac_cv_path_XGETTEXT+set}" = set; then :
  7888. $as_echo_n "(cached) " >&6
  7889. else
  7890. case "$XGETTEXT" in
  7891. [\\/]* | ?:[\\/]*)
  7892. ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
  7893. ;;
  7894. *)
  7895. ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
  7896. for ac_dir in $PATH; do
  7897. IFS="$ac_save_IFS"
  7898. test -z "$ac_dir" && ac_dir=.
  7899. for ac_exec_ext in '' $ac_executable_extensions; do
  7900. if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
  7901. echo "$as_me: trying $ac_dir/$ac_word..." >&5
  7902. if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >&5 2>&1 &&
  7903. (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
  7904. ac_cv_path_XGETTEXT="$ac_dir/$ac_word$ac_exec_ext"
  7905. break 2
  7906. fi
  7907. fi
  7908. done
  7909. done
  7910. IFS="$ac_save_IFS"
  7911. test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
  7912. ;;
  7913. esac
  7914. fi
  7915. XGETTEXT="$ac_cv_path_XGETTEXT"
  7916. if test "$XGETTEXT" != ":"; then
  7917. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XGETTEXT" >&5
  7918. $as_echo "$XGETTEXT" >&6; }
  7919. else
  7920. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7921. $as_echo "no" >&6; }
  7922. fi
  7923. rm -f messages.po
  7924. case `$XGETTEXT --version | sed 1q | sed -e 's,^[^0-9]*,,'` in
  7925. '' | 0.[0-9] | 0.[0-9].* | 0.1[0-4] | 0.1[0-4].*) XGETTEXT_015=: ;;
  7926. *) XGETTEXT_015=$XGETTEXT ;;
  7927. esac
  7928. # Prepare PATH_SEPARATOR.
  7929. # The user is always right.
  7930. if test "${PATH_SEPARATOR+set}" != set; then
  7931. echo "#! /bin/sh" >conf$$.sh
  7932. echo "exit 0" >>conf$$.sh
  7933. chmod +x conf$$.sh
  7934. if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
  7935. PATH_SEPARATOR=';'
  7936. else
  7937. PATH_SEPARATOR=:
  7938. fi
  7939. rm -f conf$$.sh
  7940. fi
  7941. # Find out how to test for executable files. Don't use a zero-byte file,
  7942. # as systems may use methods other than mode bits to determine executability.
  7943. cat >conf$$.file <<_ASEOF
  7944. #! /bin/sh
  7945. exit 0
  7946. _ASEOF
  7947. chmod +x conf$$.file
  7948. if test -x conf$$.file >/dev/null 2>&1; then
  7949. ac_executable_p="test -x"
  7950. else
  7951. ac_executable_p="test -f"
  7952. fi
  7953. rm -f conf$$.file
  7954. # Extract the first word of "msgmerge", so it can be a program name with args.
  7955. set dummy msgmerge; ac_word=$2
  7956. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  7957. $as_echo_n "checking for $ac_word... " >&6; }
  7958. if test "${ac_cv_path_MSGMERGE+set}" = set; then :
  7959. $as_echo_n "(cached) " >&6
  7960. else
  7961. case "$MSGMERGE" in
  7962. [\\/]* | ?:[\\/]*)
  7963. ac_cv_path_MSGMERGE="$MSGMERGE" # Let the user override the test with a path.
  7964. ;;
  7965. *)
  7966. ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
  7967. for ac_dir in $PATH; do
  7968. IFS="$ac_save_IFS"
  7969. test -z "$ac_dir" && ac_dir=.
  7970. for ac_exec_ext in '' $ac_executable_extensions; do
  7971. if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
  7972. echo "$as_me: trying $ac_dir/$ac_word..." >&5
  7973. if $ac_dir/$ac_word --update -q /dev/null /dev/null >&5 2>&1; then
  7974. ac_cv_path_MSGMERGE="$ac_dir/$ac_word$ac_exec_ext"
  7975. break 2
  7976. fi
  7977. fi
  7978. done
  7979. done
  7980. IFS="$ac_save_IFS"
  7981. test -z "$ac_cv_path_MSGMERGE" && ac_cv_path_MSGMERGE=":"
  7982. ;;
  7983. esac
  7984. fi
  7985. MSGMERGE="$ac_cv_path_MSGMERGE"
  7986. if test "$MSGMERGE" != ":"; then
  7987. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGMERGE" >&5
  7988. $as_echo "$MSGMERGE" >&6; }
  7989. else
  7990. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7991. $as_echo "no" >&6; }
  7992. fi
  7993. test -n "$localedir" || localedir='${datadir}/locale'
  7994. test -n "${XGETTEXT_EXTRA_OPTIONS+set}" || XGETTEXT_EXTRA_OPTIONS=
  7995. ac_config_commands="$ac_config_commands po-directories"
  7996. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C Library 2 or newer" >&5
  7997. $as_echo_n "checking whether we are using the GNU C Library 2 or newer... " >&6; }
  7998. if test "${ac_cv_gnu_library_2+set}" = set; then :
  7999. $as_echo_n "(cached) " >&6
  8000. else
  8001. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  8002. /* end confdefs.h. */
  8003. #include <features.h>
  8004. #ifdef __GNU_LIBRARY__
  8005. #if (__GLIBC__ >= 2)
  8006. Lucky GNU user
  8007. #endif
  8008. #endif
  8009. _ACEOF
  8010. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  8011. $EGREP "Lucky GNU user" >/dev/null 2>&1; then :
  8012. ac_cv_gnu_library_2=yes
  8013. else
  8014. ac_cv_gnu_library_2=no
  8015. fi
  8016. rm -f conftest*
  8017. fi
  8018. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_gnu_library_2" >&5
  8019. $as_echo "$ac_cv_gnu_library_2" >&6; }
  8020. GLIBC2="$ac_cv_gnu_library_2"
  8021. CFLAG_VISIBILITY=
  8022. HAVE_VISIBILITY=0
  8023. if test -n "$GCC"; then
  8024. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for simple visibility declarations" >&5
  8025. $as_echo_n "checking for simple visibility declarations... " >&6; }
  8026. if test "${gl_cv_cc_visibility+set}" = set; then :
  8027. $as_echo_n "(cached) " >&6
  8028. else
  8029. gl_save_CFLAGS="$CFLAGS"
  8030. CFLAGS="$CFLAGS -fvisibility=hidden"
  8031. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  8032. /* end confdefs.h. */
  8033. extern __attribute__((__visibility__("hidden"))) int hiddenvar;
  8034. extern __attribute__((__visibility__("default"))) int exportedvar;
  8035. extern __attribute__((__visibility__("hidden"))) int hiddenfunc (void);
  8036. extern __attribute__((__visibility__("default"))) int exportedfunc (void);
  8037. int
  8038. main ()
  8039. {
  8040. ;
  8041. return 0;
  8042. }
  8043. _ACEOF
  8044. if ac_fn_cxx_try_compile "$LINENO"; then :
  8045. gl_cv_cc_visibility=yes
  8046. else
  8047. gl_cv_cc_visibility=no
  8048. fi
  8049. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  8050. CFLAGS="$gl_save_CFLAGS"
  8051. fi
  8052. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_cc_visibility" >&5
  8053. $as_echo "$gl_cv_cc_visibility" >&6; }
  8054. if test $gl_cv_cc_visibility = yes; then
  8055. CFLAG_VISIBILITY="-fvisibility=hidden"
  8056. HAVE_VISIBILITY=1
  8057. fi
  8058. fi
  8059. cat >>confdefs.h <<_ACEOF
  8060. #define HAVE_VISIBILITY $HAVE_VISIBILITY
  8061. _ACEOF
  8062. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for stdint.h" >&5
  8063. $as_echo_n "checking for stdint.h... " >&6; }
  8064. if test "${gl_cv_header_stdint_h+set}" = set; then :
  8065. $as_echo_n "(cached) " >&6
  8066. else
  8067. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  8068. /* end confdefs.h. */
  8069. #include <sys/types.h>
  8070. #include <stdint.h>
  8071. int
  8072. main ()
  8073. {
  8074. uintmax_t i = (uintmax_t) -1; return !i;
  8075. ;
  8076. return 0;
  8077. }
  8078. _ACEOF
  8079. if ac_fn_cxx_try_compile "$LINENO"; then :
  8080. gl_cv_header_stdint_h=yes
  8081. else
  8082. gl_cv_header_stdint_h=no
  8083. fi
  8084. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  8085. fi
  8086. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_stdint_h" >&5
  8087. $as_echo "$gl_cv_header_stdint_h" >&6; }
  8088. if test $gl_cv_header_stdint_h = yes; then
  8089. cat >>confdefs.h <<_ACEOF
  8090. #define HAVE_STDINT_H_WITH_UINTMAX 1
  8091. _ACEOF
  8092. fi
  8093. for ac_header in stdlib.h unistd.h
  8094. do :
  8095. as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
  8096. ac_fn_cxx_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
  8097. eval as_val=\$$as_ac_Header
  8098. if test "x$as_val" = x""yes; then :
  8099. cat >>confdefs.h <<_ACEOF
  8100. #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
  8101. _ACEOF
  8102. fi
  8103. done
  8104. for ac_func in getpagesize
  8105. do :
  8106. ac_fn_cxx_check_func "$LINENO" "getpagesize" "ac_cv_func_getpagesize"
  8107. if test "x$ac_cv_func_getpagesize" = x""yes; then :
  8108. cat >>confdefs.h <<_ACEOF
  8109. #define HAVE_GETPAGESIZE 1
  8110. _ACEOF
  8111. fi
  8112. done
  8113. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mmap" >&5
  8114. $as_echo_n "checking for working mmap... " >&6; }
  8115. if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then :
  8116. $as_echo_n "(cached) " >&6
  8117. else
  8118. if test "$cross_compiling" = yes; then :
  8119. ac_cv_func_mmap_fixed_mapped=no
  8120. else
  8121. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  8122. /* end confdefs.h. */
  8123. $ac_includes_default
  8124. /* malloc might have been renamed as rpl_malloc. */
  8125. #undef malloc
  8126. /* Thanks to Mike Haertel and Jim Avera for this test.
  8127. Here is a matrix of mmap possibilities:
  8128. mmap private not fixed
  8129. mmap private fixed at somewhere currently unmapped
  8130. mmap private fixed at somewhere already mapped
  8131. mmap shared not fixed
  8132. mmap shared fixed at somewhere currently unmapped
  8133. mmap shared fixed at somewhere already mapped
  8134. For private mappings, we should verify that changes cannot be read()
  8135. back from the file, nor mmap's back from the file at a different
  8136. address. (There have been systems where private was not correctly
  8137. implemented like the infamous i386 svr4.0, and systems where the
  8138. VM page cache was not coherent with the file system buffer cache
  8139. like early versions of FreeBSD and possibly contemporary NetBSD.)
  8140. For shared mappings, we should conversely verify that changes get
  8141. propagated back to all the places they're supposed to be.
  8142. Grep wants private fixed already mapped.
  8143. The main things grep needs to know about mmap are:
  8144. * does it exist and is it safe to write into the mmap'd area
  8145. * how to use it (BSD variants) */
  8146. #include <fcntl.h>
  8147. #include <sys/mman.h>
  8148. #if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
  8149. char *malloc ();
  8150. #endif
  8151. /* This mess was copied from the GNU getpagesize.h. */
  8152. #ifndef HAVE_GETPAGESIZE
  8153. /* Assume that all systems that can run configure have sys/param.h. */
  8154. # ifndef HAVE_SYS_PARAM_H
  8155. # define HAVE_SYS_PARAM_H 1
  8156. # endif
  8157. # ifdef _SC_PAGESIZE
  8158. # define getpagesize() sysconf(_SC_PAGESIZE)
  8159. # else /* no _SC_PAGESIZE */
  8160. # ifdef HAVE_SYS_PARAM_H
  8161. # include <sys/param.h>
  8162. # ifdef EXEC_PAGESIZE
  8163. # define getpagesize() EXEC_PAGESIZE
  8164. # else /* no EXEC_PAGESIZE */
  8165. # ifdef NBPG
  8166. # define getpagesize() NBPG * CLSIZE
  8167. # ifndef CLSIZE
  8168. # define CLSIZE 1
  8169. # endif /* no CLSIZE */
  8170. # else /* no NBPG */
  8171. # ifdef NBPC
  8172. # define getpagesize() NBPC
  8173. # else /* no NBPC */
  8174. # ifdef PAGESIZE
  8175. # define getpagesize() PAGESIZE
  8176. # endif /* PAGESIZE */
  8177. # endif /* no NBPC */
  8178. # endif /* no NBPG */
  8179. # endif /* no EXEC_PAGESIZE */
  8180. # else /* no HAVE_SYS_PARAM_H */
  8181. # define getpagesize() 8192 /* punt totally */
  8182. # endif /* no HAVE_SYS_PARAM_H */
  8183. # endif /* no _SC_PAGESIZE */
  8184. #endif /* no HAVE_GETPAGESIZE */
  8185. int
  8186. main ()
  8187. {
  8188. char *data, *data2, *data3;
  8189. int i, pagesize;
  8190. int fd;
  8191. pagesize = getpagesize ();
  8192. /* First, make a file with some known garbage in it. */
  8193. data = (char *) malloc (pagesize);
  8194. if (!data)
  8195. return 1;
  8196. for (i = 0; i < pagesize; ++i)
  8197. *(data + i) = rand ();
  8198. umask (0);
  8199. fd = creat ("conftest.mmap", 0600);
  8200. if (fd < 0)
  8201. return 1;
  8202. if (write (fd, data, pagesize) != pagesize)
  8203. return 1;
  8204. close (fd);
  8205. /* Next, try to mmap the file at a fixed address which already has
  8206. something else allocated at it. If we can, also make sure that
  8207. we see the same garbage. */
  8208. fd = open ("conftest.mmap", O_RDWR);
  8209. if (fd < 0)
  8210. return 1;
  8211. data2 = (char *) malloc (2 * pagesize);
  8212. if (!data2)
  8213. return 1;
  8214. data2 += (pagesize - ((long int) data2 & (pagesize - 1))) & (pagesize - 1);
  8215. if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
  8216. MAP_PRIVATE | MAP_FIXED, fd, 0L))
  8217. return 1;
  8218. for (i = 0; i < pagesize; ++i)
  8219. if (*(data + i) != *(data2 + i))
  8220. return 1;
  8221. /* Finally, make sure that changes to the mapped area do not
  8222. percolate back to the file as seen by read(). (This is a bug on
  8223. some variants of i386 svr4.0.) */
  8224. for (i = 0; i < pagesize; ++i)
  8225. *(data2 + i) = *(data2 + i) + 1;
  8226. data3 = (char *) malloc (pagesize);
  8227. if (!data3)
  8228. return 1;
  8229. if (read (fd, data3, pagesize) != pagesize)
  8230. return 1;
  8231. for (i = 0; i < pagesize; ++i)
  8232. if (*(data + i) != *(data3 + i))
  8233. return 1;
  8234. close (fd);
  8235. return 0;
  8236. }
  8237. _ACEOF
  8238. if ac_fn_cxx_try_run "$LINENO"; then :
  8239. ac_cv_func_mmap_fixed_mapped=yes
  8240. else
  8241. ac_cv_func_mmap_fixed_mapped=no
  8242. fi
  8243. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  8244. conftest.$ac_objext conftest.beam conftest.$ac_ext
  8245. fi
  8246. fi
  8247. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_mmap_fixed_mapped" >&5
  8248. $as_echo "$ac_cv_func_mmap_fixed_mapped" >&6; }
  8249. if test $ac_cv_func_mmap_fixed_mapped = yes; then
  8250. $as_echo "#define HAVE_MMAP 1" >>confdefs.h
  8251. fi
  8252. rm -f conftest.mmap
  8253. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether integer division by zero raises SIGFPE" >&5
  8254. $as_echo_n "checking whether integer division by zero raises SIGFPE... " >&6; }
  8255. if test "${gt_cv_int_divbyzero_sigfpe+set}" = set; then :
  8256. $as_echo_n "(cached) " >&6
  8257. else
  8258. gt_cv_int_divbyzero_sigfpe=
  8259. case "$host_os" in
  8260. macos* | darwin[6-9]* | darwin[1-9][0-9]*)
  8261. # On MacOS X 10.2 or newer, just assume the same as when cross-
  8262. # compiling. If we were to perform the real test, 1 Crash Report
  8263. # dialog window would pop up.
  8264. case "$host_cpu" in
  8265. i[34567]86 | x86_64)
  8266. gt_cv_int_divbyzero_sigfpe="guessing yes" ;;
  8267. esac
  8268. ;;
  8269. esac
  8270. if test -z "$gt_cv_int_divbyzero_sigfpe"; then
  8271. if test "$cross_compiling" = yes; then :
  8272. # Guess based on the CPU.
  8273. case "$host_cpu" in
  8274. alpha* | i[34567]86 | x86_64 | m68k | s390*)
  8275. gt_cv_int_divbyzero_sigfpe="guessing yes";;
  8276. *)
  8277. gt_cv_int_divbyzero_sigfpe="guessing no";;
  8278. esac
  8279. else
  8280. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  8281. /* end confdefs.h. */
  8282. #include <stdlib.h>
  8283. #include <signal.h>
  8284. static void
  8285. sigfpe_handler (int sig)
  8286. {
  8287. /* Exit with code 0 if SIGFPE, with code 1 if any other signal. */
  8288. exit (sig != SIGFPE);
  8289. }
  8290. int x = 1;
  8291. int y = 0;
  8292. int z;
  8293. int nan;
  8294. int main ()
  8295. {
  8296. signal (SIGFPE, sigfpe_handler);
  8297. /* IRIX and AIX (when "xlc -qcheck" is used) yield signal SIGTRAP. */
  8298. #if (defined (__sgi) || defined (_AIX)) && defined (SIGTRAP)
  8299. signal (SIGTRAP, sigfpe_handler);
  8300. #endif
  8301. /* Linux/SPARC yields signal SIGILL. */
  8302. #if defined (__sparc__) && defined (__linux__)
  8303. signal (SIGILL, sigfpe_handler);
  8304. #endif
  8305. z = x / y;
  8306. nan = y / y;
  8307. exit (1);
  8308. }
  8309. _ACEOF
  8310. if ac_fn_cxx_try_run "$LINENO"; then :
  8311. gt_cv_int_divbyzero_sigfpe=yes
  8312. else
  8313. gt_cv_int_divbyzero_sigfpe=no
  8314. fi
  8315. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  8316. conftest.$ac_objext conftest.beam conftest.$ac_ext
  8317. fi
  8318. fi
  8319. fi
  8320. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_int_divbyzero_sigfpe" >&5
  8321. $as_echo "$gt_cv_int_divbyzero_sigfpe" >&6; }
  8322. case "$gt_cv_int_divbyzero_sigfpe" in
  8323. *yes) value=1;;
  8324. *) value=0;;
  8325. esac
  8326. cat >>confdefs.h <<_ACEOF
  8327. #define INTDIV0_RAISES_SIGFPE $value
  8328. _ACEOF
  8329. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inttypes.h" >&5
  8330. $as_echo_n "checking for inttypes.h... " >&6; }
  8331. if test "${gl_cv_header_inttypes_h+set}" = set; then :
  8332. $as_echo_n "(cached) " >&6
  8333. else
  8334. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  8335. /* end confdefs.h. */
  8336. #include <sys/types.h>
  8337. #include <inttypes.h>
  8338. int
  8339. main ()
  8340. {
  8341. uintmax_t i = (uintmax_t) -1; return !i;
  8342. ;
  8343. return 0;
  8344. }
  8345. _ACEOF
  8346. if ac_fn_cxx_try_compile "$LINENO"; then :
  8347. gl_cv_header_inttypes_h=yes
  8348. else
  8349. gl_cv_header_inttypes_h=no
  8350. fi
  8351. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  8352. fi
  8353. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_inttypes_h" >&5
  8354. $as_echo "$gl_cv_header_inttypes_h" >&6; }
  8355. if test $gl_cv_header_inttypes_h = yes; then
  8356. cat >>confdefs.h <<_ACEOF
  8357. #define HAVE_INTTYPES_H_WITH_UINTMAX 1
  8358. _ACEOF
  8359. fi
  8360. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned long long int" >&5
  8361. $as_echo_n "checking for unsigned long long int... " >&6; }
  8362. if test "${ac_cv_type_unsigned_long_long_int+set}" = set; then :
  8363. $as_echo_n "(cached) " >&6
  8364. else
  8365. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  8366. /* end confdefs.h. */
  8367. /* Test preprocessor. */
  8368. #if ! (-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
  8369. error in preprocessor;
  8370. #endif
  8371. #if ! (18446744073709551615ULL <= -1ull)
  8372. error in preprocessor;
  8373. #endif
  8374. /* Test literals. */
  8375. long long int ll = 9223372036854775807ll;
  8376. long long int nll = -9223372036854775807LL;
  8377. unsigned long long int ull = 18446744073709551615ULL;
  8378. /* Test constant expressions. */
  8379. typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
  8380. ? 1 : -1)];
  8381. typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1
  8382. ? 1 : -1)];
  8383. int i = 63;
  8384. int
  8385. main ()
  8386. {
  8387. /* Test availability of runtime routines for shift and division. */
  8388. long long int llmax = 9223372036854775807ll;
  8389. unsigned long long int ullmax = 18446744073709551615ull;
  8390. return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i)
  8391. | (llmax / ll) | (llmax % ll)
  8392. | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i)
  8393. | (ullmax / ull) | (ullmax % ull));
  8394. ;
  8395. return 0;
  8396. }
  8397. _ACEOF
  8398. if ac_fn_cxx_try_link "$LINENO"; then :
  8399. ac_cv_type_unsigned_long_long_int=yes
  8400. else
  8401. ac_cv_type_unsigned_long_long_int=no
  8402. fi
  8403. rm -f core conftest.err conftest.$ac_objext \
  8404. conftest$ac_exeext conftest.$ac_ext
  8405. fi
  8406. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_unsigned_long_long_int" >&5
  8407. $as_echo "$ac_cv_type_unsigned_long_long_int" >&6; }
  8408. if test $ac_cv_type_unsigned_long_long_int = yes; then
  8409. $as_echo "#define HAVE_UNSIGNED_LONG_LONG_INT 1" >>confdefs.h
  8410. fi
  8411. if test $gl_cv_header_inttypes_h = no && test $gl_cv_header_stdint_h = no; then
  8412. test $ac_cv_type_unsigned_long_long_int = yes \
  8413. && ac_type='unsigned long long' \
  8414. || ac_type='unsigned long'
  8415. cat >>confdefs.h <<_ACEOF
  8416. #define uintmax_t $ac_type
  8417. _ACEOF
  8418. else
  8419. $as_echo "#define HAVE_UINTMAX_T 1" >>confdefs.h
  8420. fi
  8421. for ac_header in inttypes.h
  8422. do :
  8423. ac_fn_cxx_check_header_mongrel "$LINENO" "inttypes.h" "ac_cv_header_inttypes_h" "$ac_includes_default"
  8424. if test "x$ac_cv_header_inttypes_h" = x""yes; then :
  8425. cat >>confdefs.h <<_ACEOF
  8426. #define HAVE_INTTYPES_H 1
  8427. _ACEOF
  8428. fi
  8429. done
  8430. if test $ac_cv_header_inttypes_h = yes; then
  8431. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the inttypes.h PRIxNN macros are broken" >&5
  8432. $as_echo_n "checking whether the inttypes.h PRIxNN macros are broken... " >&6; }
  8433. if test "${gt_cv_inttypes_pri_broken+set}" = set; then :
  8434. $as_echo_n "(cached) " >&6
  8435. else
  8436. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  8437. /* end confdefs.h. */
  8438. #include <inttypes.h>
  8439. #ifdef PRId32
  8440. char *p = PRId32;
  8441. #endif
  8442. int
  8443. main ()
  8444. {
  8445. ;
  8446. return 0;
  8447. }
  8448. _ACEOF
  8449. if ac_fn_cxx_try_compile "$LINENO"; then :
  8450. gt_cv_inttypes_pri_broken=no
  8451. else
  8452. gt_cv_inttypes_pri_broken=yes
  8453. fi
  8454. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  8455. fi
  8456. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_inttypes_pri_broken" >&5
  8457. $as_echo "$gt_cv_inttypes_pri_broken" >&6; }
  8458. fi
  8459. if test "$gt_cv_inttypes_pri_broken" = yes; then
  8460. cat >>confdefs.h <<_ACEOF
  8461. #define PRI_MACROS_BROKEN 1
  8462. _ACEOF
  8463. PRI_MACROS_BROKEN=1
  8464. else
  8465. PRI_MACROS_BROKEN=0
  8466. fi
  8467. # Check whether --enable-threads was given.
  8468. if test "${enable_threads+set}" = set; then :
  8469. enableval=$enable_threads; gl_use_threads=$enableval
  8470. else
  8471. case "$host_os" in
  8472. osf*) gl_use_threads=no ;;
  8473. *) gl_use_threads=yes ;;
  8474. esac
  8475. fi
  8476. if test "$gl_use_threads" = yes || test "$gl_use_threads" = posix; then
  8477. # For using <pthread.h>:
  8478. case "$host_os" in
  8479. osf*)
  8480. # On OSF/1, the compiler needs the flag -D_REENTRANT so that it
  8481. # groks <pthread.h>. cc also understands the flag -pthread, but
  8482. # we don't use it because 1. gcc-2.95 doesn't understand -pthread,
  8483. # 2. putting a flag into CPPFLAGS that has an effect on the linker
  8484. # causes the AC_TRY_LINK test below to succeed unexpectedly,
  8485. # leading to wrong values of LIBTHREAD and LTLIBTHREAD.
  8486. CPPFLAGS="$CPPFLAGS -D_REENTRANT"
  8487. ;;
  8488. esac
  8489. # Some systems optimize for single-threaded programs by default, and
  8490. # need special flags to disable these optimizations. For example, the
  8491. # definition of 'errno' in <errno.h>.
  8492. case "$host_os" in
  8493. aix* | freebsd*) CPPFLAGS="$CPPFLAGS -D_THREAD_SAFE" ;;
  8494. solaris*) CPPFLAGS="$CPPFLAGS -D_REENTRANT" ;;
  8495. esac
  8496. fi
  8497. if test "X$prefix" = "XNONE"; then
  8498. acl_final_prefix="$ac_default_prefix"
  8499. else
  8500. acl_final_prefix="$prefix"
  8501. fi
  8502. if test "X$exec_prefix" = "XNONE"; then
  8503. acl_final_exec_prefix='${prefix}'
  8504. else
  8505. acl_final_exec_prefix="$exec_prefix"
  8506. fi
  8507. acl_save_prefix="$prefix"
  8508. prefix="$acl_final_prefix"
  8509. eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
  8510. prefix="$acl_save_prefix"
  8511. # Check whether --with-gnu-ld was given.
  8512. if test "${with_gnu_ld+set}" = set; then :
  8513. withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
  8514. else
  8515. with_gnu_ld=no
  8516. fi
  8517. # Prepare PATH_SEPARATOR.
  8518. # The user is always right.
  8519. if test "${PATH_SEPARATOR+set}" != set; then
  8520. echo "#! /bin/sh" >conf$$.sh
  8521. echo "exit 0" >>conf$$.sh
  8522. chmod +x conf$$.sh
  8523. if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
  8524. PATH_SEPARATOR=';'
  8525. else
  8526. PATH_SEPARATOR=:
  8527. fi
  8528. rm -f conf$$.sh
  8529. fi
  8530. ac_prog=ld
  8531. if test "$GCC" = yes; then
  8532. # Check if gcc -print-prog-name=ld gives a path.
  8533. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by GCC" >&5
  8534. $as_echo_n "checking for ld used by GCC... " >&6; }
  8535. case $host in
  8536. *-*-mingw*)
  8537. # gcc leaves a trailing carriage return which upsets mingw
  8538. ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
  8539. *)
  8540. ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
  8541. esac
  8542. case $ac_prog in
  8543. # Accept absolute paths.
  8544. [\\/]* | [A-Za-z]:[\\/]*)
  8545. re_direlt='/[^/][^/]*/\.\./'
  8546. # Canonicalize the path of ld
  8547. ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
  8548. while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
  8549. ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
  8550. done
  8551. test -z "$LD" && LD="$ac_prog"
  8552. ;;
  8553. "")
  8554. # If it fails, then pretend we aren't using GCC.
  8555. ac_prog=ld
  8556. ;;
  8557. *)
  8558. # If it is relative, then search for the first ld in PATH.
  8559. with_gnu_ld=unknown
  8560. ;;
  8561. esac
  8562. elif test "$with_gnu_ld" = yes; then
  8563. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
  8564. $as_echo_n "checking for GNU ld... " >&6; }
  8565. else
  8566. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
  8567. $as_echo_n "checking for non-GNU ld... " >&6; }
  8568. fi
  8569. if test "${acl_cv_path_LD+set}" = set; then :
  8570. $as_echo_n "(cached) " >&6
  8571. else
  8572. if test -z "$LD"; then
  8573. IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
  8574. for ac_dir in $PATH; do
  8575. test -z "$ac_dir" && ac_dir=.
  8576. if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
  8577. acl_cv_path_LD="$ac_dir/$ac_prog"
  8578. # Check to see if the program is GNU ld. I'd rather use --version,
  8579. # but apparently some GNU ld's only accept -v.
  8580. # Break only if it was the GNU/non-GNU ld that we prefer.
  8581. case `"$acl_cv_path_LD" -v 2>&1 < /dev/null` in
  8582. *GNU* | *'with BFD'*)
  8583. test "$with_gnu_ld" != no && break ;;
  8584. *)
  8585. test "$with_gnu_ld" != yes && break ;;
  8586. esac
  8587. fi
  8588. done
  8589. IFS="$ac_save_ifs"
  8590. else
  8591. acl_cv_path_LD="$LD" # Let the user override the test with a path.
  8592. fi
  8593. fi
  8594. LD="$acl_cv_path_LD"
  8595. if test -n "$LD"; then
  8596. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
  8597. $as_echo "$LD" >&6; }
  8598. else
  8599. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  8600. $as_echo "no" >&6; }
  8601. fi
  8602. test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
  8603. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
  8604. $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
  8605. if test "${acl_cv_prog_gnu_ld+set}" = set; then :
  8606. $as_echo_n "(cached) " >&6
  8607. else
  8608. # I'd rather use --version here, but apparently some GNU ld's only accept -v.
  8609. case `$LD -v 2>&1 </dev/null` in
  8610. *GNU* | *'with BFD'*)
  8611. acl_cv_prog_gnu_ld=yes ;;
  8612. *)
  8613. acl_cv_prog_gnu_ld=no ;;
  8614. esac
  8615. fi
  8616. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_prog_gnu_ld" >&5
  8617. $as_echo "$acl_cv_prog_gnu_ld" >&6; }
  8618. with_gnu_ld=$acl_cv_prog_gnu_ld
  8619. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shared library run path origin" >&5
  8620. $as_echo_n "checking for shared library run path origin... " >&6; }
  8621. if test "${acl_cv_rpath+set}" = set; then :
  8622. $as_echo_n "(cached) " >&6
  8623. else
  8624. CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
  8625. ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
  8626. . ./conftest.sh
  8627. rm -f ./conftest.sh
  8628. acl_cv_rpath=done
  8629. fi
  8630. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_rpath" >&5
  8631. $as_echo "$acl_cv_rpath" >&6; }
  8632. wl="$acl_cv_wl"
  8633. acl_libext="$acl_cv_libext"
  8634. acl_shlibext="$acl_cv_shlibext"
  8635. acl_libname_spec="$acl_cv_libname_spec"
  8636. acl_library_names_spec="$acl_cv_library_names_spec"
  8637. acl_hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
  8638. acl_hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
  8639. acl_hardcode_direct="$acl_cv_hardcode_direct"
  8640. acl_hardcode_minus_L="$acl_cv_hardcode_minus_L"
  8641. # Check whether --enable-rpath was given.
  8642. if test "${enable_rpath+set}" = set; then :
  8643. enableval=$enable_rpath; :
  8644. else
  8645. enable_rpath=yes
  8646. fi
  8647. acl_libdirstem=lib
  8648. searchpath=`(LC_ALL=C $CC -print-search-dirs) 2>/dev/null | sed -n -e 's,^libraries: ,,p' | sed -e 's,^=,,'`
  8649. if test -n "$searchpath"; then
  8650. acl_save_IFS="${IFS= }"; IFS=":"
  8651. for searchdir in $searchpath; do
  8652. if test -d "$searchdir"; then
  8653. case "$searchdir" in
  8654. */lib64/ | */lib64 ) acl_libdirstem=lib64 ;;
  8655. *) searchdir=`cd "$searchdir" && pwd`
  8656. case "$searchdir" in
  8657. */lib64 ) acl_libdirstem=lib64 ;;
  8658. esac ;;
  8659. esac
  8660. fi
  8661. done
  8662. IFS="$acl_save_IFS"
  8663. fi
  8664. gl_threads_api=none
  8665. LIBTHREAD=
  8666. LTLIBTHREAD=
  8667. LIBMULTITHREAD=
  8668. LTLIBMULTITHREAD=
  8669. if test "$gl_use_threads" != no; then
  8670. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether imported symbols can be declared weak" >&5
  8671. $as_echo_n "checking whether imported symbols can be declared weak... " >&6; }
  8672. gl_have_weak=no
  8673. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  8674. /* end confdefs.h. */
  8675. extern void xyzzy ();
  8676. #pragma weak xyzzy
  8677. int
  8678. main ()
  8679. {
  8680. xyzzy();
  8681. ;
  8682. return 0;
  8683. }
  8684. _ACEOF
  8685. if ac_fn_cxx_try_link "$LINENO"; then :
  8686. gl_have_weak=yes
  8687. fi
  8688. rm -f core conftest.err conftest.$ac_objext \
  8689. conftest$ac_exeext conftest.$ac_ext
  8690. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_have_weak" >&5
  8691. $as_echo "$gl_have_weak" >&6; }
  8692. if test "$gl_use_threads" = yes || test "$gl_use_threads" = posix; then
  8693. # On OSF/1, the compiler needs the flag -pthread or -D_REENTRANT so that
  8694. # it groks <pthread.h>. It's added above, in gl_LOCK_EARLY_BODY.
  8695. ac_fn_cxx_check_header_mongrel "$LINENO" "pthread.h" "ac_cv_header_pthread_h" "$ac_includes_default"
  8696. if test "x$ac_cv_header_pthread_h" = x""yes; then :
  8697. gl_have_pthread_h=yes
  8698. else
  8699. gl_have_pthread_h=no
  8700. fi
  8701. if test "$gl_have_pthread_h" = yes; then
  8702. # Other possible tests:
  8703. # -lpthreads (FSU threads, PCthreads)
  8704. # -lgthreads
  8705. gl_have_pthread=
  8706. # Test whether both pthread_mutex_lock and pthread_mutexattr_init exist
  8707. # in libc. IRIX 6.5 has the first one in both libc and libpthread, but
  8708. # the second one only in libpthread, and lock.c needs it.
  8709. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  8710. /* end confdefs.h. */
  8711. #include <pthread.h>
  8712. int
  8713. main ()
  8714. {
  8715. pthread_mutex_lock((pthread_mutex_t*)0);
  8716. pthread_mutexattr_init((pthread_mutexattr_t*)0);
  8717. ;
  8718. return 0;
  8719. }
  8720. _ACEOF
  8721. if ac_fn_cxx_try_link "$LINENO"; then :
  8722. gl_have_pthread=yes
  8723. fi
  8724. rm -f core conftest.err conftest.$ac_objext \
  8725. conftest$ac_exeext conftest.$ac_ext
  8726. # Test for libpthread by looking for pthread_kill. (Not pthread_self,
  8727. # since it is defined as a macro on OSF/1.)
  8728. if test -n "$gl_have_pthread"; then
  8729. # The program links fine without libpthread. But it may actually
  8730. # need to link with libpthread in order to create multiple threads.
  8731. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_kill in -lpthread" >&5
  8732. $as_echo_n "checking for pthread_kill in -lpthread... " >&6; }
  8733. if test "${ac_cv_lib_pthread_pthread_kill+set}" = set; then :
  8734. $as_echo_n "(cached) " >&6
  8735. else
  8736. ac_check_lib_save_LIBS=$LIBS
  8737. LIBS="-lpthread $LIBS"
  8738. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  8739. /* end confdefs.h. */
  8740. /* Override any GCC internal prototype to avoid an error.
  8741. Use char because int might match the return type of a GCC
  8742. builtin and then its argument prototype would still apply. */
  8743. #ifdef __cplusplus
  8744. extern "C"
  8745. #endif
  8746. char pthread_kill ();
  8747. int
  8748. main ()
  8749. {
  8750. return pthread_kill ();
  8751. ;
  8752. return 0;
  8753. }
  8754. _ACEOF
  8755. if ac_fn_cxx_try_link "$LINENO"; then :
  8756. ac_cv_lib_pthread_pthread_kill=yes
  8757. else
  8758. ac_cv_lib_pthread_pthread_kill=no
  8759. fi
  8760. rm -f core conftest.err conftest.$ac_objext \
  8761. conftest$ac_exeext conftest.$ac_ext
  8762. LIBS=$ac_check_lib_save_LIBS
  8763. fi
  8764. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread_pthread_kill" >&5
  8765. $as_echo "$ac_cv_lib_pthread_pthread_kill" >&6; }
  8766. if test "x$ac_cv_lib_pthread_pthread_kill" = x""yes; then :
  8767. LIBMULTITHREAD=-lpthread LTLIBMULTITHREAD=-lpthread
  8768. # On Solaris and HP-UX, most pthread functions exist also in libc.
  8769. # Therefore pthread_in_use() needs to actually try to create a
  8770. # thread: pthread_create from libc will fail, whereas
  8771. # pthread_create will actually create a thread.
  8772. case "$host_os" in
  8773. solaris* | hpux*)
  8774. $as_echo "#define PTHREAD_IN_USE_DETECTION_HARD 1" >>confdefs.h
  8775. esac
  8776. fi
  8777. else
  8778. # Some library is needed. Try libpthread and libc_r.
  8779. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_kill in -lpthread" >&5
  8780. $as_echo_n "checking for pthread_kill in -lpthread... " >&6; }
  8781. if test "${ac_cv_lib_pthread_pthread_kill+set}" = set; then :
  8782. $as_echo_n "(cached) " >&6
  8783. else
  8784. ac_check_lib_save_LIBS=$LIBS
  8785. LIBS="-lpthread $LIBS"
  8786. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  8787. /* end confdefs.h. */
  8788. /* Override any GCC internal prototype to avoid an error.
  8789. Use char because int might match the return type of a GCC
  8790. builtin and then its argument prototype would still apply. */
  8791. #ifdef __cplusplus
  8792. extern "C"
  8793. #endif
  8794. char pthread_kill ();
  8795. int
  8796. main ()
  8797. {
  8798. return pthread_kill ();
  8799. ;
  8800. return 0;
  8801. }
  8802. _ACEOF
  8803. if ac_fn_cxx_try_link "$LINENO"; then :
  8804. ac_cv_lib_pthread_pthread_kill=yes
  8805. else
  8806. ac_cv_lib_pthread_pthread_kill=no
  8807. fi
  8808. rm -f core conftest.err conftest.$ac_objext \
  8809. conftest$ac_exeext conftest.$ac_ext
  8810. LIBS=$ac_check_lib_save_LIBS
  8811. fi
  8812. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread_pthread_kill" >&5
  8813. $as_echo "$ac_cv_lib_pthread_pthread_kill" >&6; }
  8814. if test "x$ac_cv_lib_pthread_pthread_kill" = x""yes; then :
  8815. gl_have_pthread=yes
  8816. LIBTHREAD=-lpthread LTLIBTHREAD=-lpthread
  8817. LIBMULTITHREAD=-lpthread LTLIBMULTITHREAD=-lpthread
  8818. fi
  8819. if test -z "$gl_have_pthread"; then
  8820. # For FreeBSD 4.
  8821. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_kill in -lc_r" >&5
  8822. $as_echo_n "checking for pthread_kill in -lc_r... " >&6; }
  8823. if test "${ac_cv_lib_c_r_pthread_kill+set}" = set; then :
  8824. $as_echo_n "(cached) " >&6
  8825. else
  8826. ac_check_lib_save_LIBS=$LIBS
  8827. LIBS="-lc_r $LIBS"
  8828. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  8829. /* end confdefs.h. */
  8830. /* Override any GCC internal prototype to avoid an error.
  8831. Use char because int might match the return type of a GCC
  8832. builtin and then its argument prototype would still apply. */
  8833. #ifdef __cplusplus
  8834. extern "C"
  8835. #endif
  8836. char pthread_kill ();
  8837. int
  8838. main ()
  8839. {
  8840. return pthread_kill ();
  8841. ;
  8842. return 0;
  8843. }
  8844. _ACEOF
  8845. if ac_fn_cxx_try_link "$LINENO"; then :
  8846. ac_cv_lib_c_r_pthread_kill=yes
  8847. else
  8848. ac_cv_lib_c_r_pthread_kill=no
  8849. fi
  8850. rm -f core conftest.err conftest.$ac_objext \
  8851. conftest$ac_exeext conftest.$ac_ext
  8852. LIBS=$ac_check_lib_save_LIBS
  8853. fi
  8854. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_c_r_pthread_kill" >&5
  8855. $as_echo "$ac_cv_lib_c_r_pthread_kill" >&6; }
  8856. if test "x$ac_cv_lib_c_r_pthread_kill" = x""yes; then :
  8857. gl_have_pthread=yes
  8858. LIBTHREAD=-lc_r LTLIBTHREAD=-lc_r
  8859. LIBMULTITHREAD=-lc_r LTLIBMULTITHREAD=-lc_r
  8860. fi
  8861. fi
  8862. fi
  8863. if test -n "$gl_have_pthread"; then
  8864. gl_threads_api=posix
  8865. $as_echo "#define USE_POSIX_THREADS 1" >>confdefs.h
  8866. if test -n "$LIBMULTITHREAD" || test -n "$LTLIBMULTITHREAD"; then
  8867. if test $gl_have_weak = yes; then
  8868. $as_echo "#define USE_POSIX_THREADS_WEAK 1" >>confdefs.h
  8869. LIBTHREAD=
  8870. LTLIBTHREAD=
  8871. fi
  8872. fi
  8873. # OSF/1 4.0 and MacOS X 10.1 lack the pthread_rwlock_t type and the
  8874. # pthread_rwlock_* functions.
  8875. ac_fn_cxx_check_type "$LINENO" "pthread_rwlock_t" "ac_cv_type_pthread_rwlock_t" "#include <pthread.h>
  8876. "
  8877. if test "x$ac_cv_type_pthread_rwlock_t" = x""yes; then :
  8878. $as_echo "#define HAVE_PTHREAD_RWLOCK 1" >>confdefs.h
  8879. fi
  8880. # glibc defines PTHREAD_MUTEX_RECURSIVE as enum, not as a macro.
  8881. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  8882. /* end confdefs.h. */
  8883. #include <pthread.h>
  8884. int
  8885. main ()
  8886. {
  8887. #if __FreeBSD__ == 4
  8888. error "No, in FreeBSD 4.0 recursive mutexes actually don't work."
  8889. #else
  8890. int x = (int)PTHREAD_MUTEX_RECURSIVE;
  8891. return !x;
  8892. #endif
  8893. ;
  8894. return 0;
  8895. }
  8896. _ACEOF
  8897. if ac_fn_cxx_try_compile "$LINENO"; then :
  8898. $as_echo "#define HAVE_PTHREAD_MUTEX_RECURSIVE 1" >>confdefs.h
  8899. fi
  8900. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  8901. fi
  8902. fi
  8903. fi
  8904. if test -z "$gl_have_pthread"; then
  8905. if test "$gl_use_threads" = yes || test "$gl_use_threads" = solaris; then
  8906. gl_have_solaristhread=
  8907. gl_save_LIBS="$LIBS"
  8908. LIBS="$LIBS -lthread"
  8909. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  8910. /* end confdefs.h. */
  8911. #include <thread.h>
  8912. #include <synch.h>
  8913. int
  8914. main ()
  8915. {
  8916. thr_self();
  8917. ;
  8918. return 0;
  8919. }
  8920. _ACEOF
  8921. if ac_fn_cxx_try_link "$LINENO"; then :
  8922. gl_have_solaristhread=yes
  8923. fi
  8924. rm -f core conftest.err conftest.$ac_objext \
  8925. conftest$ac_exeext conftest.$ac_ext
  8926. LIBS="$gl_save_LIBS"
  8927. if test -n "$gl_have_solaristhread"; then
  8928. gl_threads_api=solaris
  8929. LIBTHREAD=-lthread
  8930. LTLIBTHREAD=-lthread
  8931. LIBMULTITHREAD="$LIBTHREAD"
  8932. LTLIBMULTITHREAD="$LTLIBTHREAD"
  8933. $as_echo "#define USE_SOLARIS_THREADS 1" >>confdefs.h
  8934. if test $gl_have_weak = yes; then
  8935. $as_echo "#define USE_SOLARIS_THREADS_WEAK 1" >>confdefs.h
  8936. LIBTHREAD=
  8937. LTLIBTHREAD=
  8938. fi
  8939. fi
  8940. fi
  8941. fi
  8942. if test "$gl_use_threads" = pth; then
  8943. gl_save_CPPFLAGS="$CPPFLAGS"
  8944. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libpth" >&5
  8945. $as_echo_n "checking how to link with libpth... " >&6; }
  8946. if test "${ac_cv_libpth_libs+set}" = set; then :
  8947. $as_echo_n "(cached) " >&6
  8948. else
  8949. use_additional=yes
  8950. acl_save_prefix="$prefix"
  8951. prefix="$acl_final_prefix"
  8952. acl_save_exec_prefix="$exec_prefix"
  8953. exec_prefix="$acl_final_exec_prefix"
  8954. eval additional_includedir=\"$includedir\"
  8955. eval additional_libdir=\"$libdir\"
  8956. exec_prefix="$acl_save_exec_prefix"
  8957. prefix="$acl_save_prefix"
  8958. # Check whether --with-libpth-prefix was given.
  8959. if test "${with_libpth_prefix+set}" = set; then :
  8960. withval=$with_libpth_prefix;
  8961. if test "X$withval" = "Xno"; then
  8962. use_additional=no
  8963. else
  8964. if test "X$withval" = "X"; then
  8965. acl_save_prefix="$prefix"
  8966. prefix="$acl_final_prefix"
  8967. acl_save_exec_prefix="$exec_prefix"
  8968. exec_prefix="$acl_final_exec_prefix"
  8969. eval additional_includedir=\"$includedir\"
  8970. eval additional_libdir=\"$libdir\"
  8971. exec_prefix="$acl_save_exec_prefix"
  8972. prefix="$acl_save_prefix"
  8973. else
  8974. additional_includedir="$withval/include"
  8975. additional_libdir="$withval/$acl_libdirstem"
  8976. fi
  8977. fi
  8978. fi
  8979. LIBPTH=
  8980. LTLIBPTH=
  8981. INCPTH=
  8982. LIBPTH_PREFIX=
  8983. rpathdirs=
  8984. ltrpathdirs=
  8985. names_already_handled=
  8986. names_next_round='pth '
  8987. while test -n "$names_next_round"; do
  8988. names_this_round="$names_next_round"
  8989. names_next_round=
  8990. for name in $names_this_round; do
  8991. already_handled=
  8992. for n in $names_already_handled; do
  8993. if test "$n" = "$name"; then
  8994. already_handled=yes
  8995. break
  8996. fi
  8997. done
  8998. if test -z "$already_handled"; then
  8999. names_already_handled="$names_already_handled $name"
  9000. uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
  9001. eval value=\"\$HAVE_LIB$uppername\"
  9002. if test -n "$value"; then
  9003. if test "$value" = yes; then
  9004. eval value=\"\$LIB$uppername\"
  9005. test -z "$value" || LIBPTH="${LIBPTH}${LIBPTH:+ }$value"
  9006. eval value=\"\$LTLIB$uppername\"
  9007. test -z "$value" || LTLIBPTH="${LTLIBPTH}${LTLIBPTH:+ }$value"
  9008. else
  9009. :
  9010. fi
  9011. else
  9012. found_dir=
  9013. found_la=
  9014. found_so=
  9015. found_a=
  9016. eval libname=\"$acl_libname_spec\" # typically: libname=lib$name
  9017. if test -n "$acl_shlibext"; then
  9018. shrext=".$acl_shlibext" # typically: shrext=.so
  9019. else
  9020. shrext=
  9021. fi
  9022. if test $use_additional = yes; then
  9023. dir="$additional_libdir"
  9024. if test -n "$acl_shlibext"; then
  9025. if test -f "$dir/$libname$shrext"; then
  9026. found_dir="$dir"
  9027. found_so="$dir/$libname$shrext"
  9028. else
  9029. if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
  9030. ver=`(cd "$dir" && \
  9031. for f in "$libname$shrext".*; do echo "$f"; done \
  9032. | sed -e "s,^$libname$shrext\\\\.,," \
  9033. | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
  9034. | sed 1q ) 2>/dev/null`
  9035. if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
  9036. found_dir="$dir"
  9037. found_so="$dir/$libname$shrext.$ver"
  9038. fi
  9039. else
  9040. eval library_names=\"$acl_library_names_spec\"
  9041. for f in $library_names; do
  9042. if test -f "$dir/$f"; then
  9043. found_dir="$dir"
  9044. found_so="$dir/$f"
  9045. break
  9046. fi
  9047. done
  9048. fi
  9049. fi
  9050. fi
  9051. if test "X$found_dir" = "X"; then
  9052. if test -f "$dir/$libname.$acl_libext"; then
  9053. found_dir="$dir"
  9054. found_a="$dir/$libname.$acl_libext"
  9055. fi
  9056. fi
  9057. if test "X$found_dir" != "X"; then
  9058. if test -f "$dir/$libname.la"; then
  9059. found_la="$dir/$libname.la"
  9060. fi
  9061. fi
  9062. fi
  9063. if test "X$found_dir" = "X"; then
  9064. for x in $LDFLAGS $LTLIBPTH; do
  9065. acl_save_prefix="$prefix"
  9066. prefix="$acl_final_prefix"
  9067. acl_save_exec_prefix="$exec_prefix"
  9068. exec_prefix="$acl_final_exec_prefix"
  9069. eval x=\"$x\"
  9070. exec_prefix="$acl_save_exec_prefix"
  9071. prefix="$acl_save_prefix"
  9072. case "$x" in
  9073. -L*)
  9074. dir=`echo "X$x" | sed -e 's/^X-L//'`
  9075. if test -n "$acl_shlibext"; then
  9076. if test -f "$dir/$libname$shrext"; then
  9077. found_dir="$dir"
  9078. found_so="$dir/$libname$shrext"
  9079. else
  9080. if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
  9081. ver=`(cd "$dir" && \
  9082. for f in "$libname$shrext".*; do echo "$f"; done \
  9083. | sed -e "s,^$libname$shrext\\\\.,," \
  9084. | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
  9085. | sed 1q ) 2>/dev/null`
  9086. if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
  9087. found_dir="$dir"
  9088. found_so="$dir/$libname$shrext.$ver"
  9089. fi
  9090. else
  9091. eval library_names=\"$acl_library_names_spec\"
  9092. for f in $library_names; do
  9093. if test -f "$dir/$f"; then
  9094. found_dir="$dir"
  9095. found_so="$dir/$f"
  9096. break
  9097. fi
  9098. done
  9099. fi
  9100. fi
  9101. fi
  9102. if test "X$found_dir" = "X"; then
  9103. if test -f "$dir/$libname.$acl_libext"; then
  9104. found_dir="$dir"
  9105. found_a="$dir/$libname.$acl_libext"
  9106. fi
  9107. fi
  9108. if test "X$found_dir" != "X"; then
  9109. if test -f "$dir/$libname.la"; then
  9110. found_la="$dir/$libname.la"
  9111. fi
  9112. fi
  9113. ;;
  9114. esac
  9115. if test "X$found_dir" != "X"; then
  9116. break
  9117. fi
  9118. done
  9119. fi
  9120. if test "X$found_dir" != "X"; then
  9121. LTLIBPTH="${LTLIBPTH}${LTLIBPTH:+ }-L$found_dir -l$name"
  9122. if test "X$found_so" != "X"; then
  9123. if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/$acl_libdirstem"; then
  9124. LIBPTH="${LIBPTH}${LIBPTH:+ }$found_so"
  9125. else
  9126. haveit=
  9127. for x in $ltrpathdirs; do
  9128. if test "X$x" = "X$found_dir"; then
  9129. haveit=yes
  9130. break
  9131. fi
  9132. done
  9133. if test -z "$haveit"; then
  9134. ltrpathdirs="$ltrpathdirs $found_dir"
  9135. fi
  9136. if test "$acl_hardcode_direct" = yes; then
  9137. LIBPTH="${LIBPTH}${LIBPTH:+ }$found_so"
  9138. else
  9139. if test -n "$acl_hardcode_libdir_flag_spec" && test "$acl_hardcode_minus_L" = no; then
  9140. LIBPTH="${LIBPTH}${LIBPTH:+ }$found_so"
  9141. haveit=
  9142. for x in $rpathdirs; do
  9143. if test "X$x" = "X$found_dir"; then
  9144. haveit=yes
  9145. break
  9146. fi
  9147. done
  9148. if test -z "$haveit"; then
  9149. rpathdirs="$rpathdirs $found_dir"
  9150. fi
  9151. else
  9152. haveit=
  9153. for x in $LDFLAGS $LIBPTH; do
  9154. acl_save_prefix="$prefix"
  9155. prefix="$acl_final_prefix"
  9156. acl_save_exec_prefix="$exec_prefix"
  9157. exec_prefix="$acl_final_exec_prefix"
  9158. eval x=\"$x\"
  9159. exec_prefix="$acl_save_exec_prefix"
  9160. prefix="$acl_save_prefix"
  9161. if test "X$x" = "X-L$found_dir"; then
  9162. haveit=yes
  9163. break
  9164. fi
  9165. done
  9166. if test -z "$haveit"; then
  9167. LIBPTH="${LIBPTH}${LIBPTH:+ }-L$found_dir"
  9168. fi
  9169. if test "$acl_hardcode_minus_L" != no; then
  9170. LIBPTH="${LIBPTH}${LIBPTH:+ }$found_so"
  9171. else
  9172. LIBPTH="${LIBPTH}${LIBPTH:+ }-l$name"
  9173. fi
  9174. fi
  9175. fi
  9176. fi
  9177. else
  9178. if test "X$found_a" != "X"; then
  9179. LIBPTH="${LIBPTH}${LIBPTH:+ }$found_a"
  9180. else
  9181. LIBPTH="${LIBPTH}${LIBPTH:+ }-L$found_dir -l$name"
  9182. fi
  9183. fi
  9184. additional_includedir=
  9185. case "$found_dir" in
  9186. */$acl_libdirstem | */$acl_libdirstem/)
  9187. basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem/"'*$,,'`
  9188. LIBPTH_PREFIX="$basedir"
  9189. additional_includedir="$basedir/include"
  9190. ;;
  9191. esac
  9192. if test "X$additional_includedir" != "X"; then
  9193. if test "X$additional_includedir" != "X/usr/include"; then
  9194. haveit=
  9195. if test "X$additional_includedir" = "X/usr/local/include"; then
  9196. if test -n "$GCC"; then
  9197. case $host_os in
  9198. linux* | gnu* | k*bsd*-gnu) haveit=yes;;
  9199. esac
  9200. fi
  9201. fi
  9202. if test -z "$haveit"; then
  9203. for x in $CPPFLAGS $INCPTH; do
  9204. acl_save_prefix="$prefix"
  9205. prefix="$acl_final_prefix"
  9206. acl_save_exec_prefix="$exec_prefix"
  9207. exec_prefix="$acl_final_exec_prefix"
  9208. eval x=\"$x\"
  9209. exec_prefix="$acl_save_exec_prefix"
  9210. prefix="$acl_save_prefix"
  9211. if test "X$x" = "X-I$additional_includedir"; then
  9212. haveit=yes
  9213. break
  9214. fi
  9215. done
  9216. if test -z "$haveit"; then
  9217. if test -d "$additional_includedir"; then
  9218. INCPTH="${INCPTH}${INCPTH:+ }-I$additional_includedir"
  9219. fi
  9220. fi
  9221. fi
  9222. fi
  9223. fi
  9224. if test -n "$found_la"; then
  9225. save_libdir="$libdir"
  9226. case "$found_la" in
  9227. */* | *\\*) . "$found_la" ;;
  9228. *) . "./$found_la" ;;
  9229. esac
  9230. libdir="$save_libdir"
  9231. for dep in $dependency_libs; do
  9232. case "$dep" in
  9233. -L*)
  9234. additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
  9235. if test "X$additional_libdir" != "X/usr/$acl_libdirstem"; then
  9236. haveit=
  9237. if test "X$additional_libdir" = "X/usr/local/$acl_libdirstem"; then
  9238. if test -n "$GCC"; then
  9239. case $host_os in
  9240. linux* | gnu* | k*bsd*-gnu) haveit=yes;;
  9241. esac
  9242. fi
  9243. fi
  9244. if test -z "$haveit"; then
  9245. haveit=
  9246. for x in $LDFLAGS $LIBPTH; do
  9247. acl_save_prefix="$prefix"
  9248. prefix="$acl_final_prefix"
  9249. acl_save_exec_prefix="$exec_prefix"
  9250. exec_prefix="$acl_final_exec_prefix"
  9251. eval x=\"$x\"
  9252. exec_prefix="$acl_save_exec_prefix"
  9253. prefix="$acl_save_prefix"
  9254. if test "X$x" = "X-L$additional_libdir"; then
  9255. haveit=yes
  9256. break
  9257. fi
  9258. done
  9259. if test -z "$haveit"; then
  9260. if test -d "$additional_libdir"; then
  9261. LIBPTH="${LIBPTH}${LIBPTH:+ }-L$additional_libdir"
  9262. fi
  9263. fi
  9264. haveit=
  9265. for x in $LDFLAGS $LTLIBPTH; do
  9266. acl_save_prefix="$prefix"
  9267. prefix="$acl_final_prefix"
  9268. acl_save_exec_prefix="$exec_prefix"
  9269. exec_prefix="$acl_final_exec_prefix"
  9270. eval x=\"$x\"
  9271. exec_prefix="$acl_save_exec_prefix"
  9272. prefix="$acl_save_prefix"
  9273. if test "X$x" = "X-L$additional_libdir"; then
  9274. haveit=yes
  9275. break
  9276. fi
  9277. done
  9278. if test -z "$haveit"; then
  9279. if test -d "$additional_libdir"; then
  9280. LTLIBPTH="${LTLIBPTH}${LTLIBPTH:+ }-L$additional_libdir"
  9281. fi
  9282. fi
  9283. fi
  9284. fi
  9285. ;;
  9286. -R*)
  9287. dir=`echo "X$dep" | sed -e 's/^X-R//'`
  9288. if test "$enable_rpath" != no; then
  9289. haveit=
  9290. for x in $rpathdirs; do
  9291. if test "X$x" = "X$dir"; then
  9292. haveit=yes
  9293. break
  9294. fi
  9295. done
  9296. if test -z "$haveit"; then
  9297. rpathdirs="$rpathdirs $dir"
  9298. fi
  9299. haveit=
  9300. for x in $ltrpathdirs; do
  9301. if test "X$x" = "X$dir"; then
  9302. haveit=yes
  9303. break
  9304. fi
  9305. done
  9306. if test -z "$haveit"; then
  9307. ltrpathdirs="$ltrpathdirs $dir"
  9308. fi
  9309. fi
  9310. ;;
  9311. -l*)
  9312. names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
  9313. ;;
  9314. *.la)
  9315. names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
  9316. ;;
  9317. *)
  9318. LIBPTH="${LIBPTH}${LIBPTH:+ }$dep"
  9319. LTLIBPTH="${LTLIBPTH}${LTLIBPTH:+ }$dep"
  9320. ;;
  9321. esac
  9322. done
  9323. fi
  9324. else
  9325. LIBPTH="${LIBPTH}${LIBPTH:+ }-l$name"
  9326. LTLIBPTH="${LTLIBPTH}${LTLIBPTH:+ }-l$name"
  9327. fi
  9328. fi
  9329. fi
  9330. done
  9331. done
  9332. if test "X$rpathdirs" != "X"; then
  9333. if test -n "$acl_hardcode_libdir_separator"; then
  9334. alldirs=
  9335. for found_dir in $rpathdirs; do
  9336. alldirs="${alldirs}${alldirs:+$acl_hardcode_libdir_separator}$found_dir"
  9337. done
  9338. acl_save_libdir="$libdir"
  9339. libdir="$alldirs"
  9340. eval flag=\"$acl_hardcode_libdir_flag_spec\"
  9341. libdir="$acl_save_libdir"
  9342. LIBPTH="${LIBPTH}${LIBPTH:+ }$flag"
  9343. else
  9344. for found_dir in $rpathdirs; do
  9345. acl_save_libdir="$libdir"
  9346. libdir="$found_dir"
  9347. eval flag=\"$acl_hardcode_libdir_flag_spec\"
  9348. libdir="$acl_save_libdir"
  9349. LIBPTH="${LIBPTH}${LIBPTH:+ }$flag"
  9350. done
  9351. fi
  9352. fi
  9353. if test "X$ltrpathdirs" != "X"; then
  9354. for found_dir in $ltrpathdirs; do
  9355. LTLIBPTH="${LTLIBPTH}${LTLIBPTH:+ }-R$found_dir"
  9356. done
  9357. fi
  9358. ac_cv_libpth_libs="$LIBPTH"
  9359. ac_cv_libpth_ltlibs="$LTLIBPTH"
  9360. ac_cv_libpth_cppflags="$INCPTH"
  9361. ac_cv_libpth_prefix="$LIBPTH_PREFIX"
  9362. fi
  9363. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_libpth_libs" >&5
  9364. $as_echo "$ac_cv_libpth_libs" >&6; }
  9365. LIBPTH="$ac_cv_libpth_libs"
  9366. LTLIBPTH="$ac_cv_libpth_ltlibs"
  9367. INCPTH="$ac_cv_libpth_cppflags"
  9368. LIBPTH_PREFIX="$ac_cv_libpth_prefix"
  9369. for element in $INCPTH; do
  9370. haveit=
  9371. for x in $CPPFLAGS; do
  9372. acl_save_prefix="$prefix"
  9373. prefix="$acl_final_prefix"
  9374. acl_save_exec_prefix="$exec_prefix"
  9375. exec_prefix="$acl_final_exec_prefix"
  9376. eval x=\"$x\"
  9377. exec_prefix="$acl_save_exec_prefix"
  9378. prefix="$acl_save_prefix"
  9379. if test "X$x" = "X$element"; then
  9380. haveit=yes
  9381. break
  9382. fi
  9383. done
  9384. if test -z "$haveit"; then
  9385. CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
  9386. fi
  9387. done
  9388. HAVE_LIBPTH=yes
  9389. gl_have_pth=
  9390. gl_save_LIBS="$LIBS"
  9391. LIBS="$LIBS -lpth"
  9392. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9393. /* end confdefs.h. */
  9394. #include <pth.h>
  9395. int
  9396. main ()
  9397. {
  9398. pth_self();
  9399. ;
  9400. return 0;
  9401. }
  9402. _ACEOF
  9403. if ac_fn_cxx_try_link "$LINENO"; then :
  9404. gl_have_pth=yes
  9405. fi
  9406. rm -f core conftest.err conftest.$ac_objext \
  9407. conftest$ac_exeext conftest.$ac_ext
  9408. LIBS="$gl_save_LIBS"
  9409. if test -n "$gl_have_pth"; then
  9410. gl_threads_api=pth
  9411. LIBTHREAD="$LIBPTH"
  9412. LTLIBTHREAD="$LTLIBPTH"
  9413. LIBMULTITHREAD="$LIBTHREAD"
  9414. LTLIBMULTITHREAD="$LTLIBTHREAD"
  9415. $as_echo "#define USE_PTH_THREADS 1" >>confdefs.h
  9416. if test -n "$LIBMULTITHREAD" || test -n "$LTLIBMULTITHREAD"; then
  9417. if test $gl_have_weak = yes; then
  9418. $as_echo "#define USE_PTH_THREADS_WEAK 1" >>confdefs.h
  9419. LIBTHREAD=
  9420. LTLIBTHREAD=
  9421. fi
  9422. fi
  9423. else
  9424. CPPFLAGS="$gl_save_CPPFLAGS"
  9425. fi
  9426. fi
  9427. if test -z "$gl_have_pthread"; then
  9428. if test "$gl_use_threads" = yes || test "$gl_use_threads" = win32; then
  9429. if { case "$host_os" in
  9430. mingw*) true;;
  9431. *) false;;
  9432. esac
  9433. }; then
  9434. gl_threads_api=win32
  9435. $as_echo "#define USE_WIN32_THREADS 1" >>confdefs.h
  9436. fi
  9437. fi
  9438. fi
  9439. fi
  9440. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for multithread API to use" >&5
  9441. $as_echo_n "checking for multithread API to use... " >&6; }
  9442. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_threads_api" >&5
  9443. $as_echo "$gl_threads_api" >&6; }
  9444. use_additional=yes
  9445. acl_save_prefix="$prefix"
  9446. prefix="$acl_final_prefix"
  9447. acl_save_exec_prefix="$exec_prefix"
  9448. exec_prefix="$acl_final_exec_prefix"
  9449. eval additional_includedir=\"$includedir\"
  9450. eval additional_libdir=\"$libdir\"
  9451. exec_prefix="$acl_save_exec_prefix"
  9452. prefix="$acl_save_prefix"
  9453. # Check whether --with-libiconv-prefix was given.
  9454. if test "${with_libiconv_prefix+set}" = set; then :
  9455. withval=$with_libiconv_prefix;
  9456. if test "X$withval" = "Xno"; then
  9457. use_additional=no
  9458. else
  9459. if test "X$withval" = "X"; then
  9460. acl_save_prefix="$prefix"
  9461. prefix="$acl_final_prefix"
  9462. acl_save_exec_prefix="$exec_prefix"
  9463. exec_prefix="$acl_final_exec_prefix"
  9464. eval additional_includedir=\"$includedir\"
  9465. eval additional_libdir=\"$libdir\"
  9466. exec_prefix="$acl_save_exec_prefix"
  9467. prefix="$acl_save_prefix"
  9468. else
  9469. additional_includedir="$withval/include"
  9470. additional_libdir="$withval/$acl_libdirstem"
  9471. fi
  9472. fi
  9473. fi
  9474. LIBICONV=
  9475. LTLIBICONV=
  9476. INCICONV=
  9477. LIBICONV_PREFIX=
  9478. rpathdirs=
  9479. ltrpathdirs=
  9480. names_already_handled=
  9481. names_next_round='iconv '
  9482. while test -n "$names_next_round"; do
  9483. names_this_round="$names_next_round"
  9484. names_next_round=
  9485. for name in $names_this_round; do
  9486. already_handled=
  9487. for n in $names_already_handled; do
  9488. if test "$n" = "$name"; then
  9489. already_handled=yes
  9490. break
  9491. fi
  9492. done
  9493. if test -z "$already_handled"; then
  9494. names_already_handled="$names_already_handled $name"
  9495. uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
  9496. eval value=\"\$HAVE_LIB$uppername\"
  9497. if test -n "$value"; then
  9498. if test "$value" = yes; then
  9499. eval value=\"\$LIB$uppername\"
  9500. test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value"
  9501. eval value=\"\$LTLIB$uppername\"
  9502. test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value"
  9503. else
  9504. :
  9505. fi
  9506. else
  9507. found_dir=
  9508. found_la=
  9509. found_so=
  9510. found_a=
  9511. eval libname=\"$acl_libname_spec\" # typically: libname=lib$name
  9512. if test -n "$acl_shlibext"; then
  9513. shrext=".$acl_shlibext" # typically: shrext=.so
  9514. else
  9515. shrext=
  9516. fi
  9517. if test $use_additional = yes; then
  9518. dir="$additional_libdir"
  9519. if test -n "$acl_shlibext"; then
  9520. if test -f "$dir/$libname$shrext"; then
  9521. found_dir="$dir"
  9522. found_so="$dir/$libname$shrext"
  9523. else
  9524. if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
  9525. ver=`(cd "$dir" && \
  9526. for f in "$libname$shrext".*; do echo "$f"; done \
  9527. | sed -e "s,^$libname$shrext\\\\.,," \
  9528. | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
  9529. | sed 1q ) 2>/dev/null`
  9530. if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
  9531. found_dir="$dir"
  9532. found_so="$dir/$libname$shrext.$ver"
  9533. fi
  9534. else
  9535. eval library_names=\"$acl_library_names_spec\"
  9536. for f in $library_names; do
  9537. if test -f "$dir/$f"; then
  9538. found_dir="$dir"
  9539. found_so="$dir/$f"
  9540. break
  9541. fi
  9542. done
  9543. fi
  9544. fi
  9545. fi
  9546. if test "X$found_dir" = "X"; then
  9547. if test -f "$dir/$libname.$acl_libext"; then
  9548. found_dir="$dir"
  9549. found_a="$dir/$libname.$acl_libext"
  9550. fi
  9551. fi
  9552. if test "X$found_dir" != "X"; then
  9553. if test -f "$dir/$libname.la"; then
  9554. found_la="$dir/$libname.la"
  9555. fi
  9556. fi
  9557. fi
  9558. if test "X$found_dir" = "X"; then
  9559. for x in $LDFLAGS $LTLIBICONV; do
  9560. acl_save_prefix="$prefix"
  9561. prefix="$acl_final_prefix"
  9562. acl_save_exec_prefix="$exec_prefix"
  9563. exec_prefix="$acl_final_exec_prefix"
  9564. eval x=\"$x\"
  9565. exec_prefix="$acl_save_exec_prefix"
  9566. prefix="$acl_save_prefix"
  9567. case "$x" in
  9568. -L*)
  9569. dir=`echo "X$x" | sed -e 's/^X-L//'`
  9570. if test -n "$acl_shlibext"; then
  9571. if test -f "$dir/$libname$shrext"; then
  9572. found_dir="$dir"
  9573. found_so="$dir/$libname$shrext"
  9574. else
  9575. if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
  9576. ver=`(cd "$dir" && \
  9577. for f in "$libname$shrext".*; do echo "$f"; done \
  9578. | sed -e "s,^$libname$shrext\\\\.,," \
  9579. | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
  9580. | sed 1q ) 2>/dev/null`
  9581. if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
  9582. found_dir="$dir"
  9583. found_so="$dir/$libname$shrext.$ver"
  9584. fi
  9585. else
  9586. eval library_names=\"$acl_library_names_spec\"
  9587. for f in $library_names; do
  9588. if test -f "$dir/$f"; then
  9589. found_dir="$dir"
  9590. found_so="$dir/$f"
  9591. break
  9592. fi
  9593. done
  9594. fi
  9595. fi
  9596. fi
  9597. if test "X$found_dir" = "X"; then
  9598. if test -f "$dir/$libname.$acl_libext"; then
  9599. found_dir="$dir"
  9600. found_a="$dir/$libname.$acl_libext"
  9601. fi
  9602. fi
  9603. if test "X$found_dir" != "X"; then
  9604. if test -f "$dir/$libname.la"; then
  9605. found_la="$dir/$libname.la"
  9606. fi
  9607. fi
  9608. ;;
  9609. esac
  9610. if test "X$found_dir" != "X"; then
  9611. break
  9612. fi
  9613. done
  9614. fi
  9615. if test "X$found_dir" != "X"; then
  9616. LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
  9617. if test "X$found_so" != "X"; then
  9618. if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/$acl_libdirstem"; then
  9619. LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
  9620. else
  9621. haveit=
  9622. for x in $ltrpathdirs; do
  9623. if test "X$x" = "X$found_dir"; then
  9624. haveit=yes
  9625. break
  9626. fi
  9627. done
  9628. if test -z "$haveit"; then
  9629. ltrpathdirs="$ltrpathdirs $found_dir"
  9630. fi
  9631. if test "$acl_hardcode_direct" = yes; then
  9632. LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
  9633. else
  9634. if test -n "$acl_hardcode_libdir_flag_spec" && test "$acl_hardcode_minus_L" = no; then
  9635. LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
  9636. haveit=
  9637. for x in $rpathdirs; do
  9638. if test "X$x" = "X$found_dir"; then
  9639. haveit=yes
  9640. break
  9641. fi
  9642. done
  9643. if test -z "$haveit"; then
  9644. rpathdirs="$rpathdirs $found_dir"
  9645. fi
  9646. else
  9647. haveit=
  9648. for x in $LDFLAGS $LIBICONV; do
  9649. acl_save_prefix="$prefix"
  9650. prefix="$acl_final_prefix"
  9651. acl_save_exec_prefix="$exec_prefix"
  9652. exec_prefix="$acl_final_exec_prefix"
  9653. eval x=\"$x\"
  9654. exec_prefix="$acl_save_exec_prefix"
  9655. prefix="$acl_save_prefix"
  9656. if test "X$x" = "X-L$found_dir"; then
  9657. haveit=yes
  9658. break
  9659. fi
  9660. done
  9661. if test -z "$haveit"; then
  9662. LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir"
  9663. fi
  9664. if test "$acl_hardcode_minus_L" != no; then
  9665. LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
  9666. else
  9667. LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
  9668. fi
  9669. fi
  9670. fi
  9671. fi
  9672. else
  9673. if test "X$found_a" != "X"; then
  9674. LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a"
  9675. else
  9676. LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
  9677. fi
  9678. fi
  9679. additional_includedir=
  9680. case "$found_dir" in
  9681. */$acl_libdirstem | */$acl_libdirstem/)
  9682. basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem/"'*$,,'`
  9683. LIBICONV_PREFIX="$basedir"
  9684. additional_includedir="$basedir/include"
  9685. ;;
  9686. esac
  9687. if test "X$additional_includedir" != "X"; then
  9688. if test "X$additional_includedir" != "X/usr/include"; then
  9689. haveit=
  9690. if test "X$additional_includedir" = "X/usr/local/include"; then
  9691. if test -n "$GCC"; then
  9692. case $host_os in
  9693. linux* | gnu* | k*bsd*-gnu) haveit=yes;;
  9694. esac
  9695. fi
  9696. fi
  9697. if test -z "$haveit"; then
  9698. for x in $CPPFLAGS $INCICONV; do
  9699. acl_save_prefix="$prefix"
  9700. prefix="$acl_final_prefix"
  9701. acl_save_exec_prefix="$exec_prefix"
  9702. exec_prefix="$acl_final_exec_prefix"
  9703. eval x=\"$x\"
  9704. exec_prefix="$acl_save_exec_prefix"
  9705. prefix="$acl_save_prefix"
  9706. if test "X$x" = "X-I$additional_includedir"; then
  9707. haveit=yes
  9708. break
  9709. fi
  9710. done
  9711. if test -z "$haveit"; then
  9712. if test -d "$additional_includedir"; then
  9713. INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir"
  9714. fi
  9715. fi
  9716. fi
  9717. fi
  9718. fi
  9719. if test -n "$found_la"; then
  9720. save_libdir="$libdir"
  9721. case "$found_la" in
  9722. */* | *\\*) . "$found_la" ;;
  9723. *) . "./$found_la" ;;
  9724. esac
  9725. libdir="$save_libdir"
  9726. for dep in $dependency_libs; do
  9727. case "$dep" in
  9728. -L*)
  9729. additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
  9730. if test "X$additional_libdir" != "X/usr/$acl_libdirstem"; then
  9731. haveit=
  9732. if test "X$additional_libdir" = "X/usr/local/$acl_libdirstem"; then
  9733. if test -n "$GCC"; then
  9734. case $host_os in
  9735. linux* | gnu* | k*bsd*-gnu) haveit=yes;;
  9736. esac
  9737. fi
  9738. fi
  9739. if test -z "$haveit"; then
  9740. haveit=
  9741. for x in $LDFLAGS $LIBICONV; do
  9742. acl_save_prefix="$prefix"
  9743. prefix="$acl_final_prefix"
  9744. acl_save_exec_prefix="$exec_prefix"
  9745. exec_prefix="$acl_final_exec_prefix"
  9746. eval x=\"$x\"
  9747. exec_prefix="$acl_save_exec_prefix"
  9748. prefix="$acl_save_prefix"
  9749. if test "X$x" = "X-L$additional_libdir"; then
  9750. haveit=yes
  9751. break
  9752. fi
  9753. done
  9754. if test -z "$haveit"; then
  9755. if test -d "$additional_libdir"; then
  9756. LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
  9757. fi
  9758. fi
  9759. haveit=
  9760. for x in $LDFLAGS $LTLIBICONV; do
  9761. acl_save_prefix="$prefix"
  9762. prefix="$acl_final_prefix"
  9763. acl_save_exec_prefix="$exec_prefix"
  9764. exec_prefix="$acl_final_exec_prefix"
  9765. eval x=\"$x\"
  9766. exec_prefix="$acl_save_exec_prefix"
  9767. prefix="$acl_save_prefix"
  9768. if test "X$x" = "X-L$additional_libdir"; then
  9769. haveit=yes
  9770. break
  9771. fi
  9772. done
  9773. if test -z "$haveit"; then
  9774. if test -d "$additional_libdir"; then
  9775. LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
  9776. fi
  9777. fi
  9778. fi
  9779. fi
  9780. ;;
  9781. -R*)
  9782. dir=`echo "X$dep" | sed -e 's/^X-R//'`
  9783. if test "$enable_rpath" != no; then
  9784. haveit=
  9785. for x in $rpathdirs; do
  9786. if test "X$x" = "X$dir"; then
  9787. haveit=yes
  9788. break
  9789. fi
  9790. done
  9791. if test -z "$haveit"; then
  9792. rpathdirs="$rpathdirs $dir"
  9793. fi
  9794. haveit=
  9795. for x in $ltrpathdirs; do
  9796. if test "X$x" = "X$dir"; then
  9797. haveit=yes
  9798. break
  9799. fi
  9800. done
  9801. if test -z "$haveit"; then
  9802. ltrpathdirs="$ltrpathdirs $dir"
  9803. fi
  9804. fi
  9805. ;;
  9806. -l*)
  9807. names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
  9808. ;;
  9809. *.la)
  9810. names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
  9811. ;;
  9812. *)
  9813. LIBICONV="${LIBICONV}${LIBICONV:+ }$dep"
  9814. LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep"
  9815. ;;
  9816. esac
  9817. done
  9818. fi
  9819. else
  9820. LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
  9821. LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
  9822. fi
  9823. fi
  9824. fi
  9825. done
  9826. done
  9827. if test "X$rpathdirs" != "X"; then
  9828. if test -n "$acl_hardcode_libdir_separator"; then
  9829. alldirs=
  9830. for found_dir in $rpathdirs; do
  9831. alldirs="${alldirs}${alldirs:+$acl_hardcode_libdir_separator}$found_dir"
  9832. done
  9833. acl_save_libdir="$libdir"
  9834. libdir="$alldirs"
  9835. eval flag=\"$acl_hardcode_libdir_flag_spec\"
  9836. libdir="$acl_save_libdir"
  9837. LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
  9838. else
  9839. for found_dir in $rpathdirs; do
  9840. acl_save_libdir="$libdir"
  9841. libdir="$found_dir"
  9842. eval flag=\"$acl_hardcode_libdir_flag_spec\"
  9843. libdir="$acl_save_libdir"
  9844. LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
  9845. done
  9846. fi
  9847. fi
  9848. if test "X$ltrpathdirs" != "X"; then
  9849. for found_dir in $ltrpathdirs; do
  9850. LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
  9851. done
  9852. fi
  9853. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9854. /* end confdefs.h. */
  9855. int foo (int a) { a = __builtin_expect (a, 10); return a == 10 ? 0 : 1; }
  9856. int
  9857. main ()
  9858. {
  9859. ;
  9860. return 0;
  9861. }
  9862. _ACEOF
  9863. if ac_fn_cxx_try_link "$LINENO"; then :
  9864. $as_echo "#define HAVE_BUILTIN_EXPECT 1" >>confdefs.h
  9865. fi
  9866. rm -f core conftest.err conftest.$ac_objext \
  9867. conftest$ac_exeext conftest.$ac_ext
  9868. for ac_header in argz.h inttypes.h limits.h unistd.h sys/param.h
  9869. do :
  9870. as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
  9871. ac_fn_cxx_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
  9872. eval as_val=\$$as_ac_Header
  9873. if test "x$as_val" = x""yes; then :
  9874. cat >>confdefs.h <<_ACEOF
  9875. #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
  9876. _ACEOF
  9877. fi
  9878. done
  9879. for ac_func in getcwd getegid geteuid getgid getuid mempcpy munmap \
  9880. stpcpy strcasecmp strdup strtoul tsearch argz_count argz_stringify \
  9881. argz_next __fsetlocking
  9882. do :
  9883. as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
  9884. ac_fn_cxx_check_func "$LINENO" "$ac_func" "$as_ac_var"
  9885. eval as_val=\$$as_ac_var
  9886. if test "x$as_val" = x""yes; then :
  9887. cat >>confdefs.h <<_ACEOF
  9888. #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
  9889. _ACEOF
  9890. fi
  9891. done
  9892. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether feof_unlocked is declared" >&5
  9893. $as_echo_n "checking whether feof_unlocked is declared... " >&6; }
  9894. if test "${ac_cv_have_decl_feof_unlocked+set}" = set; then :
  9895. $as_echo_n "(cached) " >&6
  9896. else
  9897. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9898. /* end confdefs.h. */
  9899. #include <stdio.h>
  9900. int
  9901. main ()
  9902. {
  9903. #ifndef feof_unlocked
  9904. char *p = (char *) feof_unlocked;
  9905. #endif
  9906. ;
  9907. return 0;
  9908. }
  9909. _ACEOF
  9910. if ac_fn_cxx_try_compile "$LINENO"; then :
  9911. ac_cv_have_decl_feof_unlocked=yes
  9912. else
  9913. ac_cv_have_decl_feof_unlocked=no
  9914. fi
  9915. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  9916. fi
  9917. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_decl_feof_unlocked" >&5
  9918. $as_echo "$ac_cv_have_decl_feof_unlocked" >&6; }
  9919. if test $ac_cv_have_decl_feof_unlocked = yes; then
  9920. gt_value=1
  9921. else
  9922. gt_value=0
  9923. fi
  9924. cat >>confdefs.h <<_ACEOF
  9925. #define HAVE_DECL_FEOF_UNLOCKED $gt_value
  9926. _ACEOF
  9927. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether fgets_unlocked is declared" >&5
  9928. $as_echo_n "checking whether fgets_unlocked is declared... " >&6; }
  9929. if test "${ac_cv_have_decl_fgets_unlocked+set}" = set; then :
  9930. $as_echo_n "(cached) " >&6
  9931. else
  9932. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9933. /* end confdefs.h. */
  9934. #include <stdio.h>
  9935. int
  9936. main ()
  9937. {
  9938. #ifndef fgets_unlocked
  9939. char *p = (char *) fgets_unlocked;
  9940. #endif
  9941. ;
  9942. return 0;
  9943. }
  9944. _ACEOF
  9945. if ac_fn_cxx_try_compile "$LINENO"; then :
  9946. ac_cv_have_decl_fgets_unlocked=yes
  9947. else
  9948. ac_cv_have_decl_fgets_unlocked=no
  9949. fi
  9950. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  9951. fi
  9952. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_decl_fgets_unlocked" >&5
  9953. $as_echo "$ac_cv_have_decl_fgets_unlocked" >&6; }
  9954. if test $ac_cv_have_decl_fgets_unlocked = yes; then
  9955. gt_value=1
  9956. else
  9957. gt_value=0
  9958. fi
  9959. cat >>confdefs.h <<_ACEOF
  9960. #define HAVE_DECL_FGETS_UNLOCKED $gt_value
  9961. _ACEOF
  9962. am_save_CPPFLAGS="$CPPFLAGS"
  9963. for element in $INCICONV; do
  9964. haveit=
  9965. for x in $CPPFLAGS; do
  9966. acl_save_prefix="$prefix"
  9967. prefix="$acl_final_prefix"
  9968. acl_save_exec_prefix="$exec_prefix"
  9969. exec_prefix="$acl_final_exec_prefix"
  9970. eval x=\"$x\"
  9971. exec_prefix="$acl_save_exec_prefix"
  9972. prefix="$acl_save_prefix"
  9973. if test "X$x" = "X$element"; then
  9974. haveit=yes
  9975. break
  9976. fi
  9977. done
  9978. if test -z "$haveit"; then
  9979. CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
  9980. fi
  9981. done
  9982. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv" >&5
  9983. $as_echo_n "checking for iconv... " >&6; }
  9984. if test "${am_cv_func_iconv+set}" = set; then :
  9985. $as_echo_n "(cached) " >&6
  9986. else
  9987. am_cv_func_iconv="no, consider installing GNU libiconv"
  9988. am_cv_lib_iconv=no
  9989. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9990. /* end confdefs.h. */
  9991. #include <stdlib.h>
  9992. #include <iconv.h>
  9993. int
  9994. main ()
  9995. {
  9996. iconv_t cd = iconv_open("","");
  9997. iconv(cd,NULL,NULL,NULL,NULL);
  9998. iconv_close(cd);
  9999. ;
  10000. return 0;
  10001. }
  10002. _ACEOF
  10003. if ac_fn_cxx_try_link "$LINENO"; then :
  10004. am_cv_func_iconv=yes
  10005. fi
  10006. rm -f core conftest.err conftest.$ac_objext \
  10007. conftest$ac_exeext conftest.$ac_ext
  10008. if test "$am_cv_func_iconv" != yes; then
  10009. am_save_LIBS="$LIBS"
  10010. LIBS="$LIBS $LIBICONV"
  10011. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10012. /* end confdefs.h. */
  10013. #include <stdlib.h>
  10014. #include <iconv.h>
  10015. int
  10016. main ()
  10017. {
  10018. iconv_t cd = iconv_open("","");
  10019. iconv(cd,NULL,NULL,NULL,NULL);
  10020. iconv_close(cd);
  10021. ;
  10022. return 0;
  10023. }
  10024. _ACEOF
  10025. if ac_fn_cxx_try_link "$LINENO"; then :
  10026. am_cv_lib_iconv=yes
  10027. am_cv_func_iconv=yes
  10028. fi
  10029. rm -f core conftest.err conftest.$ac_objext \
  10030. conftest$ac_exeext conftest.$ac_ext
  10031. LIBS="$am_save_LIBS"
  10032. fi
  10033. fi
  10034. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv" >&5
  10035. $as_echo "$am_cv_func_iconv" >&6; }
  10036. if test "$am_cv_func_iconv" = yes; then
  10037. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working iconv" >&5
  10038. $as_echo_n "checking for working iconv... " >&6; }
  10039. if test "${am_cv_func_iconv_works+set}" = set; then :
  10040. $as_echo_n "(cached) " >&6
  10041. else
  10042. am_save_LIBS="$LIBS"
  10043. if test $am_cv_lib_iconv = yes; then
  10044. LIBS="$LIBS $LIBICONV"
  10045. fi
  10046. if test "$cross_compiling" = yes; then :
  10047. case "$host_os" in
  10048. aix* | hpux*) am_cv_func_iconv_works="guessing no" ;;
  10049. *) am_cv_func_iconv_works="guessing yes" ;;
  10050. esac
  10051. else
  10052. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10053. /* end confdefs.h. */
  10054. #include <iconv.h>
  10055. #include <string.h>
  10056. int main ()
  10057. {
  10058. /* Test against AIX 5.1 bug: Failures are not distinguishable from successful
  10059. returns. */
  10060. {
  10061. iconv_t cd_utf8_to_88591 = iconv_open ("ISO8859-1", "UTF-8");
  10062. if (cd_utf8_to_88591 != (iconv_t)(-1))
  10063. {
  10064. static const char input[] = "\342\202\254"; /* EURO SIGN */
  10065. char buf[10];
  10066. const char *inptr = input;
  10067. size_t inbytesleft = strlen (input);
  10068. char *outptr = buf;
  10069. size_t outbytesleft = sizeof (buf);
  10070. size_t res = iconv (cd_utf8_to_88591,
  10071. (char **) &inptr, &inbytesleft,
  10072. &outptr, &outbytesleft);
  10073. if (res == 0)
  10074. return 1;
  10075. }
  10076. }
  10077. #if 0 /* This bug could be worked around by the caller. */
  10078. /* Test against HP-UX 11.11 bug: Positive return value instead of 0. */
  10079. {
  10080. iconv_t cd_88591_to_utf8 = iconv_open ("utf8", "iso88591");
  10081. if (cd_88591_to_utf8 != (iconv_t)(-1))
  10082. {
  10083. static const char input[] = "\304rger mit b\366sen B\374bchen ohne Augenma\337";
  10084. char buf[50];
  10085. const char *inptr = input;
  10086. size_t inbytesleft = strlen (input);
  10087. char *outptr = buf;
  10088. size_t outbytesleft = sizeof (buf);
  10089. size_t res = iconv (cd_88591_to_utf8,
  10090. (char **) &inptr, &inbytesleft,
  10091. &outptr, &outbytesleft);
  10092. if ((int)res > 0)
  10093. return 1;
  10094. }
  10095. }
  10096. #endif
  10097. /* Test against HP-UX 11.11 bug: No converter from EUC-JP to UTF-8 is
  10098. provided. */
  10099. if (/* Try standardized names. */
  10100. iconv_open ("UTF-8", "EUC-JP") == (iconv_t)(-1)
  10101. /* Try IRIX, OSF/1 names. */
  10102. && iconv_open ("UTF-8", "eucJP") == (iconv_t)(-1)
  10103. /* Try AIX names. */
  10104. && iconv_open ("UTF-8", "IBM-eucJP") == (iconv_t)(-1)
  10105. /* Try HP-UX names. */
  10106. && iconv_open ("utf8", "eucJP") == (iconv_t)(-1))
  10107. return 1;
  10108. return 0;
  10109. }
  10110. _ACEOF
  10111. if ac_fn_cxx_try_run "$LINENO"; then :
  10112. am_cv_func_iconv_works=yes
  10113. else
  10114. am_cv_func_iconv_works=no
  10115. fi
  10116. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  10117. conftest.$ac_objext conftest.beam conftest.$ac_ext
  10118. fi
  10119. LIBS="$am_save_LIBS"
  10120. fi
  10121. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv_works" >&5
  10122. $as_echo "$am_cv_func_iconv_works" >&6; }
  10123. case "$am_cv_func_iconv_works" in
  10124. *no) am_func_iconv=no am_cv_lib_iconv=no ;;
  10125. *) am_func_iconv=yes ;;
  10126. esac
  10127. else
  10128. am_func_iconv=no am_cv_lib_iconv=no
  10129. fi
  10130. if test "$am_func_iconv" = yes; then
  10131. $as_echo "#define HAVE_ICONV 1" >>confdefs.h
  10132. fi
  10133. if test "$am_cv_lib_iconv" = yes; then
  10134. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libiconv" >&5
  10135. $as_echo_n "checking how to link with libiconv... " >&6; }
  10136. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBICONV" >&5
  10137. $as_echo "$LIBICONV" >&6; }
  10138. else
  10139. CPPFLAGS="$am_save_CPPFLAGS"
  10140. LIBICONV=
  10141. LTLIBICONV=
  10142. fi
  10143. if test "$am_cv_func_iconv" = yes; then
  10144. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv declaration" >&5
  10145. $as_echo_n "checking for iconv declaration... " >&6; }
  10146. if test "${am_cv_proto_iconv+set}" = set; then :
  10147. $as_echo_n "(cached) " >&6
  10148. else
  10149. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10150. /* end confdefs.h. */
  10151. #include <stdlib.h>
  10152. #include <iconv.h>
  10153. extern
  10154. #ifdef __cplusplus
  10155. "C"
  10156. #endif
  10157. #if defined(__STDC__) || defined(__cplusplus)
  10158. size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
  10159. #else
  10160. size_t iconv();
  10161. #endif
  10162. int
  10163. main ()
  10164. {
  10165. ;
  10166. return 0;
  10167. }
  10168. _ACEOF
  10169. if ac_fn_cxx_try_compile "$LINENO"; then :
  10170. am_cv_proto_iconv_arg1=""
  10171. else
  10172. am_cv_proto_iconv_arg1="const"
  10173. fi
  10174. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  10175. 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);"
  10176. fi
  10177. am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
  10178. { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${ac_t:-
  10179. }$am_cv_proto_iconv" >&5
  10180. $as_echo "${ac_t:-
  10181. }$am_cv_proto_iconv" >&6; }
  10182. cat >>confdefs.h <<_ACEOF
  10183. #define ICONV_CONST $am_cv_proto_iconv_arg1
  10184. _ACEOF
  10185. fi
  10186. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for NL_LOCALE_NAME macro" >&5
  10187. $as_echo_n "checking for NL_LOCALE_NAME macro... " >&6; }
  10188. if test "${gt_cv_nl_locale_name+set}" = set; then :
  10189. $as_echo_n "(cached) " >&6
  10190. else
  10191. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10192. /* end confdefs.h. */
  10193. #include <langinfo.h>
  10194. #include <locale.h>
  10195. int
  10196. main ()
  10197. {
  10198. char* cs = nl_langinfo(_NL_LOCALE_NAME(LC_MESSAGES));
  10199. return !cs;
  10200. ;
  10201. return 0;
  10202. }
  10203. _ACEOF
  10204. if ac_fn_cxx_try_link "$LINENO"; then :
  10205. gt_cv_nl_locale_name=yes
  10206. else
  10207. gt_cv_nl_locale_name=no
  10208. fi
  10209. rm -f core conftest.err conftest.$ac_objext \
  10210. conftest$ac_exeext conftest.$ac_ext
  10211. fi
  10212. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_nl_locale_name" >&5
  10213. $as_echo "$gt_cv_nl_locale_name" >&6; }
  10214. if test $gt_cv_nl_locale_name = yes; then
  10215. $as_echo "#define HAVE_NL_LOCALE_NAME 1" >>confdefs.h
  10216. fi
  10217. for ac_prog in bison
  10218. do
  10219. # Extract the first word of "$ac_prog", so it can be a program name with args.
  10220. set dummy $ac_prog; ac_word=$2
  10221. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  10222. $as_echo_n "checking for $ac_word... " >&6; }
  10223. if test "${ac_cv_prog_INTLBISON+set}" = set; then :
  10224. $as_echo_n "(cached) " >&6
  10225. else
  10226. if test -n "$INTLBISON"; then
  10227. ac_cv_prog_INTLBISON="$INTLBISON" # Let the user override the test.
  10228. else
  10229. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  10230. for as_dir in $PATH
  10231. do
  10232. IFS=$as_save_IFS
  10233. test -z "$as_dir" && as_dir=.
  10234. for ac_exec_ext in '' $ac_executable_extensions; do
  10235. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  10236. ac_cv_prog_INTLBISON="$ac_prog"
  10237. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  10238. break 2
  10239. fi
  10240. done
  10241. done
  10242. IFS=$as_save_IFS
  10243. fi
  10244. fi
  10245. INTLBISON=$ac_cv_prog_INTLBISON
  10246. if test -n "$INTLBISON"; then
  10247. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INTLBISON" >&5
  10248. $as_echo "$INTLBISON" >&6; }
  10249. else
  10250. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  10251. $as_echo "no" >&6; }
  10252. fi
  10253. test -n "$INTLBISON" && break
  10254. done
  10255. if test -z "$INTLBISON"; then
  10256. ac_verc_fail=yes
  10257. else
  10258. { $as_echo "$as_me:${as_lineno-$LINENO}: checking version of bison" >&5
  10259. $as_echo_n "checking version of bison... " >&6; }
  10260. ac_prog_version=`$INTLBISON --version 2>&1 | sed -n 's/^.*GNU Bison.* \([0-9]*\.[0-9.]*\).*$/\1/p'`
  10261. case $ac_prog_version in
  10262. '') ac_prog_version="v. ?.??, bad"; ac_verc_fail=yes;;
  10263. 1.2[6-9]* | 1.[3-9][0-9]* | [2-9].*)
  10264. ac_prog_version="$ac_prog_version, ok"; ac_verc_fail=no;;
  10265. *) ac_prog_version="$ac_prog_version, bad"; ac_verc_fail=yes;;
  10266. esac
  10267. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_prog_version" >&5
  10268. $as_echo "$ac_prog_version" >&6; }
  10269. fi
  10270. if test $ac_verc_fail = yes; then
  10271. INTLBISON=:
  10272. fi
  10273. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long long int" >&5
  10274. $as_echo_n "checking for long long int... " >&6; }
  10275. if test "${ac_cv_type_long_long_int+set}" = set; then :
  10276. $as_echo_n "(cached) " >&6
  10277. else
  10278. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10279. /* end confdefs.h. */
  10280. /* Test preprocessor. */
  10281. #if ! (-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
  10282. error in preprocessor;
  10283. #endif
  10284. #if ! (18446744073709551615ULL <= -1ull)
  10285. error in preprocessor;
  10286. #endif
  10287. /* Test literals. */
  10288. long long int ll = 9223372036854775807ll;
  10289. long long int nll = -9223372036854775807LL;
  10290. unsigned long long int ull = 18446744073709551615ULL;
  10291. /* Test constant expressions. */
  10292. typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
  10293. ? 1 : -1)];
  10294. typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1
  10295. ? 1 : -1)];
  10296. int i = 63;
  10297. int
  10298. main ()
  10299. {
  10300. /* Test availability of runtime routines for shift and division. */
  10301. long long int llmax = 9223372036854775807ll;
  10302. unsigned long long int ullmax = 18446744073709551615ull;
  10303. return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i)
  10304. | (llmax / ll) | (llmax % ll)
  10305. | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i)
  10306. | (ullmax / ull) | (ullmax % ull));
  10307. ;
  10308. return 0;
  10309. }
  10310. _ACEOF
  10311. if ac_fn_cxx_try_link "$LINENO"; then :
  10312. if test "$cross_compiling" = yes; then :
  10313. ac_cv_type_long_long_int=yes
  10314. else
  10315. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10316. /* end confdefs.h. */
  10317. #include <limits.h>
  10318. #ifndef LLONG_MAX
  10319. # define HALF \
  10320. (1LL << (sizeof (long long int) * CHAR_BIT - 2))
  10321. # define LLONG_MAX (HALF - 1 + HALF)
  10322. #endif
  10323. int
  10324. main ()
  10325. {
  10326. long long int n = 1;
  10327. int i;
  10328. for (i = 0; ; i++)
  10329. {
  10330. long long int m = n << i;
  10331. if (m >> i != n)
  10332. return 1;
  10333. if (LLONG_MAX / 2 < m)
  10334. break;
  10335. }
  10336. return 0;
  10337. ;
  10338. return 0;
  10339. }
  10340. _ACEOF
  10341. if ac_fn_cxx_try_run "$LINENO"; then :
  10342. ac_cv_type_long_long_int=yes
  10343. else
  10344. ac_cv_type_long_long_int=no
  10345. fi
  10346. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  10347. conftest.$ac_objext conftest.beam conftest.$ac_ext
  10348. fi
  10349. else
  10350. ac_cv_type_long_long_int=no
  10351. fi
  10352. rm -f core conftest.err conftest.$ac_objext \
  10353. conftest$ac_exeext conftest.$ac_ext
  10354. fi
  10355. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_long_long_int" >&5
  10356. $as_echo "$ac_cv_type_long_long_int" >&6; }
  10357. if test $ac_cv_type_long_long_int = yes; then
  10358. $as_echo "#define HAVE_LONG_LONG_INT 1" >>confdefs.h
  10359. fi
  10360. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wchar_t" >&5
  10361. $as_echo_n "checking for wchar_t... " >&6; }
  10362. if test "${gt_cv_c_wchar_t+set}" = set; then :
  10363. $as_echo_n "(cached) " >&6
  10364. else
  10365. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10366. /* end confdefs.h. */
  10367. #include <stddef.h>
  10368. wchar_t foo = (wchar_t)'\0';
  10369. int
  10370. main ()
  10371. {
  10372. ;
  10373. return 0;
  10374. }
  10375. _ACEOF
  10376. if ac_fn_cxx_try_compile "$LINENO"; then :
  10377. gt_cv_c_wchar_t=yes
  10378. else
  10379. gt_cv_c_wchar_t=no
  10380. fi
  10381. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  10382. fi
  10383. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_c_wchar_t" >&5
  10384. $as_echo "$gt_cv_c_wchar_t" >&6; }
  10385. if test $gt_cv_c_wchar_t = yes; then
  10386. $as_echo "#define HAVE_WCHAR_T 1" >>confdefs.h
  10387. fi
  10388. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wint_t" >&5
  10389. $as_echo_n "checking for wint_t... " >&6; }
  10390. if test "${gt_cv_c_wint_t+set}" = set; then :
  10391. $as_echo_n "(cached) " >&6
  10392. else
  10393. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10394. /* end confdefs.h. */
  10395. /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
  10396. <wchar.h>.
  10397. BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be included
  10398. before <wchar.h>. */
  10399. #include <stddef.h>
  10400. #include <stdio.h>
  10401. #include <time.h>
  10402. #include <wchar.h>
  10403. wint_t foo = (wchar_t)'\0';
  10404. int
  10405. main ()
  10406. {
  10407. ;
  10408. return 0;
  10409. }
  10410. _ACEOF
  10411. if ac_fn_cxx_try_compile "$LINENO"; then :
  10412. gt_cv_c_wint_t=yes
  10413. else
  10414. gt_cv_c_wint_t=no
  10415. fi
  10416. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  10417. fi
  10418. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_c_wint_t" >&5
  10419. $as_echo "$gt_cv_c_wint_t" >&6; }
  10420. if test $gt_cv_c_wint_t = yes; then
  10421. $as_echo "#define HAVE_WINT_T 1" >>confdefs.h
  10422. fi
  10423. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for intmax_t" >&5
  10424. $as_echo_n "checking for intmax_t... " >&6; }
  10425. if test "${gt_cv_c_intmax_t+set}" = set; then :
  10426. $as_echo_n "(cached) " >&6
  10427. else
  10428. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10429. /* end confdefs.h. */
  10430. #include <stddef.h>
  10431. #include <stdlib.h>
  10432. #if HAVE_STDINT_H_WITH_UINTMAX
  10433. #include <stdint.h>
  10434. #endif
  10435. #if HAVE_INTTYPES_H_WITH_UINTMAX
  10436. #include <inttypes.h>
  10437. #endif
  10438. int
  10439. main ()
  10440. {
  10441. intmax_t x = -1;
  10442. return !x;
  10443. ;
  10444. return 0;
  10445. }
  10446. _ACEOF
  10447. if ac_fn_cxx_try_compile "$LINENO"; then :
  10448. gt_cv_c_intmax_t=yes
  10449. else
  10450. gt_cv_c_intmax_t=no
  10451. fi
  10452. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  10453. fi
  10454. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_c_intmax_t" >&5
  10455. $as_echo "$gt_cv_c_intmax_t" >&6; }
  10456. if test $gt_cv_c_intmax_t = yes; then
  10457. $as_echo "#define HAVE_INTMAX_T 1" >>confdefs.h
  10458. fi
  10459. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether printf() supports POSIX/XSI format strings" >&5
  10460. $as_echo_n "checking whether printf() supports POSIX/XSI format strings... " >&6; }
  10461. if test "${gt_cv_func_printf_posix+set}" = set; then :
  10462. $as_echo_n "(cached) " >&6
  10463. else
  10464. if test "$cross_compiling" = yes; then :
  10465. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10466. /* end confdefs.h. */
  10467. #if defined __NetBSD__ || defined __BEOS__ || defined _MSC_VER || defined __MINGW32__ || defined __CYGWIN__
  10468. notposix
  10469. #endif
  10470. _ACEOF
  10471. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  10472. $EGREP "notposix" >/dev/null 2>&1; then :
  10473. gt_cv_func_printf_posix="guessing no"
  10474. else
  10475. gt_cv_func_printf_posix="guessing yes"
  10476. fi
  10477. rm -f conftest*
  10478. else
  10479. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10480. /* end confdefs.h. */
  10481. #include <stdio.h>
  10482. #include <string.h>
  10483. /* The string "%2$d %1$d", with dollar characters protected from the shell's
  10484. dollar expansion (possibly an autoconf bug). */
  10485. static char format[] = { '%', '2', '$', 'd', ' ', '%', '1', '$', 'd', '\0' };
  10486. static char buf[100];
  10487. int main ()
  10488. {
  10489. sprintf (buf, format, 33, 55);
  10490. return (strcmp (buf, "55 33") != 0);
  10491. }
  10492. _ACEOF
  10493. if ac_fn_cxx_try_run "$LINENO"; then :
  10494. gt_cv_func_printf_posix=yes
  10495. else
  10496. gt_cv_func_printf_posix=no
  10497. fi
  10498. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  10499. conftest.$ac_objext conftest.beam conftest.$ac_ext
  10500. fi
  10501. fi
  10502. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_printf_posix" >&5
  10503. $as_echo "$gt_cv_func_printf_posix" >&6; }
  10504. case $gt_cv_func_printf_posix in
  10505. *yes)
  10506. $as_echo "#define HAVE_POSIX_PRINTF 1" >>confdefs.h
  10507. ;;
  10508. esac
  10509. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C Library 2.1 or newer" >&5
  10510. $as_echo_n "checking whether we are using the GNU C Library 2.1 or newer... " >&6; }
  10511. if test "${ac_cv_gnu_library_2_1+set}" = set; then :
  10512. $as_echo_n "(cached) " >&6
  10513. else
  10514. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10515. /* end confdefs.h. */
  10516. #include <features.h>
  10517. #ifdef __GNU_LIBRARY__
  10518. #if (__GLIBC__ == 2 && __GLIBC_MINOR__ >= 1) || (__GLIBC__ > 2)
  10519. Lucky GNU user
  10520. #endif
  10521. #endif
  10522. _ACEOF
  10523. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  10524. $EGREP "Lucky GNU user" >/dev/null 2>&1; then :
  10525. ac_cv_gnu_library_2_1=yes
  10526. else
  10527. ac_cv_gnu_library_2_1=no
  10528. fi
  10529. rm -f conftest*
  10530. fi
  10531. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_gnu_library_2_1" >&5
  10532. $as_echo "$ac_cv_gnu_library_2_1" >&6; }
  10533. GLIBC21="$ac_cv_gnu_library_2_1"
  10534. for ac_header in stdint.h
  10535. do :
  10536. ac_fn_cxx_check_header_mongrel "$LINENO" "stdint.h" "ac_cv_header_stdint_h" "$ac_includes_default"
  10537. if test "x$ac_cv_header_stdint_h" = x""yes; then :
  10538. cat >>confdefs.h <<_ACEOF
  10539. #define HAVE_STDINT_H 1
  10540. _ACEOF
  10541. fi
  10542. done
  10543. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SIZE_MAX" >&5
  10544. $as_echo_n "checking for SIZE_MAX... " >&6; }
  10545. if test "${gl_cv_size_max+set}" = set; then :
  10546. $as_echo_n "(cached) " >&6
  10547. else
  10548. gl_cv_size_max=
  10549. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10550. /* end confdefs.h. */
  10551. #include <limits.h>
  10552. #if HAVE_STDINT_H
  10553. #include <stdint.h>
  10554. #endif
  10555. #ifdef SIZE_MAX
  10556. Found it
  10557. #endif
  10558. _ACEOF
  10559. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  10560. $EGREP "Found it" >/dev/null 2>&1; then :
  10561. gl_cv_size_max=yes
  10562. fi
  10563. rm -f conftest*
  10564. if test -z "$gl_cv_size_max"; then
  10565. if ac_fn_cxx_compute_int "$LINENO" "sizeof (size_t) * CHAR_BIT - 1" "size_t_bits_minus_1" "#include <stddef.h>
  10566. #include <limits.h>"; then :
  10567. else
  10568. size_t_bits_minus_1=
  10569. fi
  10570. if ac_fn_cxx_compute_int "$LINENO" "sizeof (size_t) <= sizeof (unsigned int)" "fits_in_uint" "#include <stddef.h>"; then :
  10571. else
  10572. fits_in_uint=
  10573. fi
  10574. if test -n "$size_t_bits_minus_1" && test -n "$fits_in_uint"; then
  10575. if test $fits_in_uint = 1; then
  10576. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10577. /* end confdefs.h. */
  10578. #include <stddef.h>
  10579. extern size_t foo;
  10580. extern unsigned long foo;
  10581. int
  10582. main ()
  10583. {
  10584. ;
  10585. return 0;
  10586. }
  10587. _ACEOF
  10588. if ac_fn_cxx_try_compile "$LINENO"; then :
  10589. fits_in_uint=0
  10590. fi
  10591. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  10592. fi
  10593. if test $fits_in_uint = 1; then
  10594. gl_cv_size_max="(((1U << $size_t_bits_minus_1) - 1) * 2 + 1)"
  10595. else
  10596. gl_cv_size_max="(((1UL << $size_t_bits_minus_1) - 1) * 2 + 1)"
  10597. fi
  10598. else
  10599. gl_cv_size_max='((size_t)~(size_t)0)'
  10600. fi
  10601. fi
  10602. fi
  10603. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_size_max" >&5
  10604. $as_echo "$gl_cv_size_max" >&6; }
  10605. if test "$gl_cv_size_max" != yes; then
  10606. cat >>confdefs.h <<_ACEOF
  10607. #define SIZE_MAX $gl_cv_size_max
  10608. _ACEOF
  10609. fi
  10610. for ac_header in stdint.h
  10611. do :
  10612. ac_fn_cxx_check_header_mongrel "$LINENO" "stdint.h" "ac_cv_header_stdint_h" "$ac_includes_default"
  10613. if test "x$ac_cv_header_stdint_h" = x""yes; then :
  10614. cat >>confdefs.h <<_ACEOF
  10615. #define HAVE_STDINT_H 1
  10616. _ACEOF
  10617. fi
  10618. done
  10619. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CFPreferencesCopyAppValue" >&5
  10620. $as_echo_n "checking for CFPreferencesCopyAppValue... " >&6; }
  10621. if test "${gt_cv_func_CFPreferencesCopyAppValue+set}" = set; then :
  10622. $as_echo_n "(cached) " >&6
  10623. else
  10624. gt_save_LIBS="$LIBS"
  10625. LIBS="$LIBS -Wl,-framework -Wl,CoreFoundation"
  10626. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10627. /* end confdefs.h. */
  10628. #include <CoreFoundation/CFPreferences.h>
  10629. int
  10630. main ()
  10631. {
  10632. CFPreferencesCopyAppValue(NULL, NULL)
  10633. ;
  10634. return 0;
  10635. }
  10636. _ACEOF
  10637. if ac_fn_cxx_try_link "$LINENO"; then :
  10638. gt_cv_func_CFPreferencesCopyAppValue=yes
  10639. else
  10640. gt_cv_func_CFPreferencesCopyAppValue=no
  10641. fi
  10642. rm -f core conftest.err conftest.$ac_objext \
  10643. conftest$ac_exeext conftest.$ac_ext
  10644. LIBS="$gt_save_LIBS"
  10645. fi
  10646. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_CFPreferencesCopyAppValue" >&5
  10647. $as_echo "$gt_cv_func_CFPreferencesCopyAppValue" >&6; }
  10648. if test $gt_cv_func_CFPreferencesCopyAppValue = yes; then
  10649. $as_echo "#define HAVE_CFPREFERENCESCOPYAPPVALUE 1" >>confdefs.h
  10650. fi
  10651. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CFLocaleCopyCurrent" >&5
  10652. $as_echo_n "checking for CFLocaleCopyCurrent... " >&6; }
  10653. if test "${gt_cv_func_CFLocaleCopyCurrent+set}" = set; then :
  10654. $as_echo_n "(cached) " >&6
  10655. else
  10656. gt_save_LIBS="$LIBS"
  10657. LIBS="$LIBS -Wl,-framework -Wl,CoreFoundation"
  10658. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10659. /* end confdefs.h. */
  10660. #include <CoreFoundation/CFLocale.h>
  10661. int
  10662. main ()
  10663. {
  10664. CFLocaleCopyCurrent();
  10665. ;
  10666. return 0;
  10667. }
  10668. _ACEOF
  10669. if ac_fn_cxx_try_link "$LINENO"; then :
  10670. gt_cv_func_CFLocaleCopyCurrent=yes
  10671. else
  10672. gt_cv_func_CFLocaleCopyCurrent=no
  10673. fi
  10674. rm -f core conftest.err conftest.$ac_objext \
  10675. conftest$ac_exeext conftest.$ac_ext
  10676. LIBS="$gt_save_LIBS"
  10677. fi
  10678. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_CFLocaleCopyCurrent" >&5
  10679. $as_echo "$gt_cv_func_CFLocaleCopyCurrent" >&6; }
  10680. if test $gt_cv_func_CFLocaleCopyCurrent = yes; then
  10681. $as_echo "#define HAVE_CFLOCALECOPYCURRENT 1" >>confdefs.h
  10682. fi
  10683. INTL_MACOSX_LIBS=
  10684. if test $gt_cv_func_CFPreferencesCopyAppValue = yes || test $gt_cv_func_CFLocaleCopyCurrent = yes; then
  10685. INTL_MACOSX_LIBS="-Wl,-framework -Wl,CoreFoundation"
  10686. fi
  10687. ac_fn_cxx_check_type "$LINENO" "ptrdiff_t" "ac_cv_type_ptrdiff_t" "$ac_includes_default"
  10688. if test "x$ac_cv_type_ptrdiff_t" = x""yes; then :
  10689. else
  10690. $as_echo "#define ptrdiff_t long" >>confdefs.h
  10691. fi
  10692. for ac_header in stddef.h stdlib.h string.h
  10693. do :
  10694. as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
  10695. ac_fn_cxx_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
  10696. eval as_val=\$$as_ac_Header
  10697. if test "x$as_val" = x""yes; then :
  10698. cat >>confdefs.h <<_ACEOF
  10699. #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
  10700. _ACEOF
  10701. fi
  10702. done
  10703. for ac_func in asprintf fwprintf putenv setenv setlocale snprintf wcslen
  10704. do :
  10705. as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
  10706. ac_fn_cxx_check_func "$LINENO" "$ac_func" "$as_ac_var"
  10707. eval as_val=\$$as_ac_var
  10708. if test "x$as_val" = x""yes; then :
  10709. cat >>confdefs.h <<_ACEOF
  10710. #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
  10711. _ACEOF
  10712. fi
  10713. done
  10714. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether _snprintf is declared" >&5
  10715. $as_echo_n "checking whether _snprintf is declared... " >&6; }
  10716. if test "${ac_cv_have_decl__snprintf+set}" = set; then :
  10717. $as_echo_n "(cached) " >&6
  10718. else
  10719. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10720. /* end confdefs.h. */
  10721. #include <stdio.h>
  10722. int
  10723. main ()
  10724. {
  10725. #ifndef _snprintf
  10726. char *p = (char *) _snprintf;
  10727. #endif
  10728. ;
  10729. return 0;
  10730. }
  10731. _ACEOF
  10732. if ac_fn_cxx_try_compile "$LINENO"; then :
  10733. ac_cv_have_decl__snprintf=yes
  10734. else
  10735. ac_cv_have_decl__snprintf=no
  10736. fi
  10737. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  10738. fi
  10739. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_decl__snprintf" >&5
  10740. $as_echo "$ac_cv_have_decl__snprintf" >&6; }
  10741. if test $ac_cv_have_decl__snprintf = yes; then
  10742. gt_value=1
  10743. else
  10744. gt_value=0
  10745. fi
  10746. cat >>confdefs.h <<_ACEOF
  10747. #define HAVE_DECL__SNPRINTF $gt_value
  10748. _ACEOF
  10749. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether _snwprintf is declared" >&5
  10750. $as_echo_n "checking whether _snwprintf is declared... " >&6; }
  10751. if test "${ac_cv_have_decl__snwprintf+set}" = set; then :
  10752. $as_echo_n "(cached) " >&6
  10753. else
  10754. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10755. /* end confdefs.h. */
  10756. #include <stdio.h>
  10757. int
  10758. main ()
  10759. {
  10760. #ifndef _snwprintf
  10761. char *p = (char *) _snwprintf;
  10762. #endif
  10763. ;
  10764. return 0;
  10765. }
  10766. _ACEOF
  10767. if ac_fn_cxx_try_compile "$LINENO"; then :
  10768. ac_cv_have_decl__snwprintf=yes
  10769. else
  10770. ac_cv_have_decl__snwprintf=no
  10771. fi
  10772. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  10773. fi
  10774. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_decl__snwprintf" >&5
  10775. $as_echo "$ac_cv_have_decl__snwprintf" >&6; }
  10776. if test $ac_cv_have_decl__snwprintf = yes; then
  10777. gt_value=1
  10778. else
  10779. gt_value=0
  10780. fi
  10781. cat >>confdefs.h <<_ACEOF
  10782. #define HAVE_DECL__SNWPRINTF $gt_value
  10783. _ACEOF
  10784. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether getc_unlocked is declared" >&5
  10785. $as_echo_n "checking whether getc_unlocked is declared... " >&6; }
  10786. if test "${ac_cv_have_decl_getc_unlocked+set}" = set; then :
  10787. $as_echo_n "(cached) " >&6
  10788. else
  10789. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10790. /* end confdefs.h. */
  10791. #include <stdio.h>
  10792. int
  10793. main ()
  10794. {
  10795. #ifndef getc_unlocked
  10796. char *p = (char *) getc_unlocked;
  10797. #endif
  10798. ;
  10799. return 0;
  10800. }
  10801. _ACEOF
  10802. if ac_fn_cxx_try_compile "$LINENO"; then :
  10803. ac_cv_have_decl_getc_unlocked=yes
  10804. else
  10805. ac_cv_have_decl_getc_unlocked=no
  10806. fi
  10807. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  10808. fi
  10809. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_decl_getc_unlocked" >&5
  10810. $as_echo "$ac_cv_have_decl_getc_unlocked" >&6; }
  10811. if test $ac_cv_have_decl_getc_unlocked = yes; then
  10812. gt_value=1
  10813. else
  10814. gt_value=0
  10815. fi
  10816. cat >>confdefs.h <<_ACEOF
  10817. #define HAVE_DECL_GETC_UNLOCKED $gt_value
  10818. _ACEOF
  10819. case $gt_cv_func_printf_posix in
  10820. *yes) HAVE_POSIX_PRINTF=1 ;;
  10821. *) HAVE_POSIX_PRINTF=0 ;;
  10822. esac
  10823. if test "$ac_cv_func_asprintf" = yes; then
  10824. HAVE_ASPRINTF=1
  10825. else
  10826. HAVE_ASPRINTF=0
  10827. fi
  10828. if test "$ac_cv_func_snprintf" = yes; then
  10829. HAVE_SNPRINTF=1
  10830. else
  10831. HAVE_SNPRINTF=0
  10832. fi
  10833. if test "$ac_cv_func_wprintf" = yes; then
  10834. HAVE_WPRINTF=1
  10835. else
  10836. HAVE_WPRINTF=0
  10837. fi
  10838. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nl_langinfo and CODESET" >&5
  10839. $as_echo_n "checking for nl_langinfo and CODESET... " >&6; }
  10840. if test "${am_cv_langinfo_codeset+set}" = set; then :
  10841. $as_echo_n "(cached) " >&6
  10842. else
  10843. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10844. /* end confdefs.h. */
  10845. #include <langinfo.h>
  10846. int
  10847. main ()
  10848. {
  10849. char* cs = nl_langinfo(CODESET); return !cs;
  10850. ;
  10851. return 0;
  10852. }
  10853. _ACEOF
  10854. if ac_fn_cxx_try_link "$LINENO"; then :
  10855. am_cv_langinfo_codeset=yes
  10856. else
  10857. am_cv_langinfo_codeset=no
  10858. fi
  10859. rm -f core conftest.err conftest.$ac_objext \
  10860. conftest$ac_exeext conftest.$ac_ext
  10861. fi
  10862. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_langinfo_codeset" >&5
  10863. $as_echo "$am_cv_langinfo_codeset" >&6; }
  10864. if test $am_cv_langinfo_codeset = yes; then
  10865. $as_echo "#define HAVE_LANGINFO_CODESET 1" >>confdefs.h
  10866. fi
  10867. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LC_MESSAGES" >&5
  10868. $as_echo_n "checking for LC_MESSAGES... " >&6; }
  10869. if test "${gt_cv_val_LC_MESSAGES+set}" = set; then :
  10870. $as_echo_n "(cached) " >&6
  10871. else
  10872. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10873. /* end confdefs.h. */
  10874. #include <locale.h>
  10875. int
  10876. main ()
  10877. {
  10878. return LC_MESSAGES
  10879. ;
  10880. return 0;
  10881. }
  10882. _ACEOF
  10883. if ac_fn_cxx_try_link "$LINENO"; then :
  10884. gt_cv_val_LC_MESSAGES=yes
  10885. else
  10886. gt_cv_val_LC_MESSAGES=no
  10887. fi
  10888. rm -f core conftest.err conftest.$ac_objext \
  10889. conftest$ac_exeext conftest.$ac_ext
  10890. fi
  10891. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_val_LC_MESSAGES" >&5
  10892. $as_echo "$gt_cv_val_LC_MESSAGES" >&6; }
  10893. if test $gt_cv_val_LC_MESSAGES = yes; then
  10894. $as_echo "#define HAVE_LC_MESSAGES 1" >>confdefs.h
  10895. fi
  10896. if test "$enable_shared" = yes; then
  10897. case "$host_os" in
  10898. mingw* | cygwin*) is_woe32dll=yes ;;
  10899. *) is_woe32dll=no ;;
  10900. esac
  10901. else
  10902. is_woe32dll=no
  10903. fi
  10904. WOE32DLL=$is_woe32dll
  10905. case "$host_os" in
  10906. mingw* | cygwin*) is_woe32=yes ;;
  10907. *) is_woe32=no ;;
  10908. esac
  10909. WOE32=$is_woe32
  10910. if test $WOE32 = yes; then
  10911. if test -n "$ac_tool_prefix"; then
  10912. # Extract the first word of "${ac_tool_prefix}windres", so it can be a program name with args.
  10913. set dummy ${ac_tool_prefix}windres; ac_word=$2
  10914. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  10915. $as_echo_n "checking for $ac_word... " >&6; }
  10916. if test "${ac_cv_prog_WINDRES+set}" = set; then :
  10917. $as_echo_n "(cached) " >&6
  10918. else
  10919. if test -n "$WINDRES"; then
  10920. ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
  10921. else
  10922. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  10923. for as_dir in $PATH
  10924. do
  10925. IFS=$as_save_IFS
  10926. test -z "$as_dir" && as_dir=.
  10927. for ac_exec_ext in '' $ac_executable_extensions; do
  10928. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  10929. ac_cv_prog_WINDRES="${ac_tool_prefix}windres"
  10930. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  10931. break 2
  10932. fi
  10933. done
  10934. done
  10935. IFS=$as_save_IFS
  10936. fi
  10937. fi
  10938. WINDRES=$ac_cv_prog_WINDRES
  10939. if test -n "$WINDRES"; then
  10940. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES" >&5
  10941. $as_echo "$WINDRES" >&6; }
  10942. else
  10943. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  10944. $as_echo "no" >&6; }
  10945. fi
  10946. fi
  10947. if test -z "$ac_cv_prog_WINDRES"; then
  10948. ac_ct_WINDRES=$WINDRES
  10949. # Extract the first word of "windres", so it can be a program name with args.
  10950. set dummy windres; ac_word=$2
  10951. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  10952. $as_echo_n "checking for $ac_word... " >&6; }
  10953. if test "${ac_cv_prog_ac_ct_WINDRES+set}" = set; then :
  10954. $as_echo_n "(cached) " >&6
  10955. else
  10956. if test -n "$ac_ct_WINDRES"; then
  10957. ac_cv_prog_ac_ct_WINDRES="$ac_ct_WINDRES" # Let the user override the test.
  10958. else
  10959. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  10960. for as_dir in $PATH
  10961. do
  10962. IFS=$as_save_IFS
  10963. test -z "$as_dir" && as_dir=.
  10964. for ac_exec_ext in '' $ac_executable_extensions; do
  10965. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  10966. ac_cv_prog_ac_ct_WINDRES="windres"
  10967. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  10968. break 2
  10969. fi
  10970. done
  10971. done
  10972. IFS=$as_save_IFS
  10973. fi
  10974. fi
  10975. ac_ct_WINDRES=$ac_cv_prog_ac_ct_WINDRES
  10976. if test -n "$ac_ct_WINDRES"; then
  10977. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_WINDRES" >&5
  10978. $as_echo "$ac_ct_WINDRES" >&6; }
  10979. else
  10980. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  10981. $as_echo "no" >&6; }
  10982. fi
  10983. if test "x$ac_ct_WINDRES" = x; then
  10984. WINDRES=""
  10985. else
  10986. case $cross_compiling:$ac_tool_warned in
  10987. yes:)
  10988. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  10989. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  10990. ac_tool_warned=yes ;;
  10991. esac
  10992. WINDRES=$ac_ct_WINDRES
  10993. fi
  10994. else
  10995. WINDRES="$ac_cv_prog_WINDRES"
  10996. fi
  10997. fi
  10998. case "$host_os" in
  10999. hpux*) LTLIBC="" ;;
  11000. *) LTLIBC="-lc" ;;
  11001. esac
  11002. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CFPreferencesCopyAppValue" >&5
  11003. $as_echo_n "checking for CFPreferencesCopyAppValue... " >&6; }
  11004. if test "${gt_cv_func_CFPreferencesCopyAppValue+set}" = set; then :
  11005. $as_echo_n "(cached) " >&6
  11006. else
  11007. gt_save_LIBS="$LIBS"
  11008. LIBS="$LIBS -Wl,-framework -Wl,CoreFoundation"
  11009. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11010. /* end confdefs.h. */
  11011. #include <CoreFoundation/CFPreferences.h>
  11012. int
  11013. main ()
  11014. {
  11015. CFPreferencesCopyAppValue(NULL, NULL)
  11016. ;
  11017. return 0;
  11018. }
  11019. _ACEOF
  11020. if ac_fn_cxx_try_link "$LINENO"; then :
  11021. gt_cv_func_CFPreferencesCopyAppValue=yes
  11022. else
  11023. gt_cv_func_CFPreferencesCopyAppValue=no
  11024. fi
  11025. rm -f core conftest.err conftest.$ac_objext \
  11026. conftest$ac_exeext conftest.$ac_ext
  11027. LIBS="$gt_save_LIBS"
  11028. fi
  11029. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_CFPreferencesCopyAppValue" >&5
  11030. $as_echo "$gt_cv_func_CFPreferencesCopyAppValue" >&6; }
  11031. if test $gt_cv_func_CFPreferencesCopyAppValue = yes; then
  11032. $as_echo "#define HAVE_CFPREFERENCESCOPYAPPVALUE 1" >>confdefs.h
  11033. fi
  11034. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CFLocaleCopyCurrent" >&5
  11035. $as_echo_n "checking for CFLocaleCopyCurrent... " >&6; }
  11036. if test "${gt_cv_func_CFLocaleCopyCurrent+set}" = set; then :
  11037. $as_echo_n "(cached) " >&6
  11038. else
  11039. gt_save_LIBS="$LIBS"
  11040. LIBS="$LIBS -Wl,-framework -Wl,CoreFoundation"
  11041. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11042. /* end confdefs.h. */
  11043. #include <CoreFoundation/CFLocale.h>
  11044. int
  11045. main ()
  11046. {
  11047. CFLocaleCopyCurrent();
  11048. ;
  11049. return 0;
  11050. }
  11051. _ACEOF
  11052. if ac_fn_cxx_try_link "$LINENO"; then :
  11053. gt_cv_func_CFLocaleCopyCurrent=yes
  11054. else
  11055. gt_cv_func_CFLocaleCopyCurrent=no
  11056. fi
  11057. rm -f core conftest.err conftest.$ac_objext \
  11058. conftest$ac_exeext conftest.$ac_ext
  11059. LIBS="$gt_save_LIBS"
  11060. fi
  11061. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_CFLocaleCopyCurrent" >&5
  11062. $as_echo "$gt_cv_func_CFLocaleCopyCurrent" >&6; }
  11063. if test $gt_cv_func_CFLocaleCopyCurrent = yes; then
  11064. $as_echo "#define HAVE_CFLOCALECOPYCURRENT 1" >>confdefs.h
  11065. fi
  11066. INTL_MACOSX_LIBS=
  11067. if test $gt_cv_func_CFPreferencesCopyAppValue = yes || test $gt_cv_func_CFLocaleCopyCurrent = yes; then
  11068. INTL_MACOSX_LIBS="-Wl,-framework -Wl,CoreFoundation"
  11069. fi
  11070. BUILD_INCLUDED_LIBINTL=no
  11071. USE_INCLUDED_LIBINTL=no
  11072. LIBINTL=
  11073. LTLIBINTL=
  11074. POSUB=
  11075. case " $gt_needs " in
  11076. *" need-formatstring-macros "*) gt_api_version=3 ;;
  11077. *" need-ngettext "*) gt_api_version=2 ;;
  11078. *) gt_api_version=1 ;;
  11079. esac
  11080. gt_func_gnugettext_libc="gt_cv_func_gnugettext${gt_api_version}_libc"
  11081. gt_func_gnugettext_libintl="gt_cv_func_gnugettext${gt_api_version}_libintl"
  11082. if test "$USE_NLS" = "yes"; then
  11083. gt_use_preinstalled_gnugettext=no
  11084. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether included gettext is requested" >&5
  11085. $as_echo_n "checking whether included gettext is requested... " >&6; }
  11086. # Check whether --with-included-gettext was given.
  11087. if test "${with_included_gettext+set}" = set; then :
  11088. withval=$with_included_gettext; nls_cv_force_use_gnu_gettext=$withval
  11089. else
  11090. nls_cv_force_use_gnu_gettext=no
  11091. fi
  11092. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $nls_cv_force_use_gnu_gettext" >&5
  11093. $as_echo "$nls_cv_force_use_gnu_gettext" >&6; }
  11094. nls_cv_use_gnu_gettext="$nls_cv_force_use_gnu_gettext"
  11095. if test "$nls_cv_force_use_gnu_gettext" != "yes"; then
  11096. if test $gt_api_version -ge 3; then
  11097. gt_revision_test_code='
  11098. #ifndef __GNU_GETTEXT_SUPPORTED_REVISION
  11099. #define __GNU_GETTEXT_SUPPORTED_REVISION(major) ((major) == 0 ? 0 : -1)
  11100. #endif
  11101. typedef int array [2 * (__GNU_GETTEXT_SUPPORTED_REVISION(0) >= 1) - 1];
  11102. '
  11103. else
  11104. gt_revision_test_code=
  11105. fi
  11106. if test $gt_api_version -ge 2; then
  11107. gt_expression_test_code=' + * ngettext ("", "", 0)'
  11108. else
  11109. gt_expression_test_code=
  11110. fi
  11111. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU gettext in libc" >&5
  11112. $as_echo_n "checking for GNU gettext in libc... " >&6; }
  11113. if { as_var=$gt_func_gnugettext_libc; eval "test \"\${$as_var+set}\" = set"; }; then :
  11114. $as_echo_n "(cached) " >&6
  11115. else
  11116. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11117. /* end confdefs.h. */
  11118. #include <libintl.h>
  11119. $gt_revision_test_code
  11120. extern int _nl_msg_cat_cntr;
  11121. extern int *_nl_domain_bindings;
  11122. int
  11123. main ()
  11124. {
  11125. bindtextdomain ("", "");
  11126. return * gettext ("")$gt_expression_test_code + _nl_msg_cat_cntr + *_nl_domain_bindings
  11127. ;
  11128. return 0;
  11129. }
  11130. _ACEOF
  11131. if ac_fn_cxx_try_link "$LINENO"; then :
  11132. eval "$gt_func_gnugettext_libc=yes"
  11133. else
  11134. eval "$gt_func_gnugettext_libc=no"
  11135. fi
  11136. rm -f core conftest.err conftest.$ac_objext \
  11137. conftest$ac_exeext conftest.$ac_ext
  11138. fi
  11139. eval ac_res=\$$gt_func_gnugettext_libc
  11140. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  11141. $as_echo "$ac_res" >&6; }
  11142. if { eval "gt_val=\$$gt_func_gnugettext_libc"; test "$gt_val" != "yes"; }; then
  11143. use_additional=yes
  11144. acl_save_prefix="$prefix"
  11145. prefix="$acl_final_prefix"
  11146. acl_save_exec_prefix="$exec_prefix"
  11147. exec_prefix="$acl_final_exec_prefix"
  11148. eval additional_includedir=\"$includedir\"
  11149. eval additional_libdir=\"$libdir\"
  11150. exec_prefix="$acl_save_exec_prefix"
  11151. prefix="$acl_save_prefix"
  11152. # Check whether --with-libintl-prefix was given.
  11153. if test "${with_libintl_prefix+set}" = set; then :
  11154. withval=$with_libintl_prefix;
  11155. if test "X$withval" = "Xno"; then
  11156. use_additional=no
  11157. else
  11158. if test "X$withval" = "X"; then
  11159. acl_save_prefix="$prefix"
  11160. prefix="$acl_final_prefix"
  11161. acl_save_exec_prefix="$exec_prefix"
  11162. exec_prefix="$acl_final_exec_prefix"
  11163. eval additional_includedir=\"$includedir\"
  11164. eval additional_libdir=\"$libdir\"
  11165. exec_prefix="$acl_save_exec_prefix"
  11166. prefix="$acl_save_prefix"
  11167. else
  11168. additional_includedir="$withval/include"
  11169. additional_libdir="$withval/$acl_libdirstem"
  11170. fi
  11171. fi
  11172. fi
  11173. LIBINTL=
  11174. LTLIBINTL=
  11175. INCINTL=
  11176. LIBINTL_PREFIX=
  11177. rpathdirs=
  11178. ltrpathdirs=
  11179. names_already_handled=
  11180. names_next_round='intl '
  11181. while test -n "$names_next_round"; do
  11182. names_this_round="$names_next_round"
  11183. names_next_round=
  11184. for name in $names_this_round; do
  11185. already_handled=
  11186. for n in $names_already_handled; do
  11187. if test "$n" = "$name"; then
  11188. already_handled=yes
  11189. break
  11190. fi
  11191. done
  11192. if test -z "$already_handled"; then
  11193. names_already_handled="$names_already_handled $name"
  11194. uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
  11195. eval value=\"\$HAVE_LIB$uppername\"
  11196. if test -n "$value"; then
  11197. if test "$value" = yes; then
  11198. eval value=\"\$LIB$uppername\"
  11199. test -z "$value" || LIBINTL="${LIBINTL}${LIBINTL:+ }$value"
  11200. eval value=\"\$LTLIB$uppername\"
  11201. test -z "$value" || LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$value"
  11202. else
  11203. :
  11204. fi
  11205. else
  11206. found_dir=
  11207. found_la=
  11208. found_so=
  11209. found_a=
  11210. eval libname=\"$acl_libname_spec\" # typically: libname=lib$name
  11211. if test -n "$acl_shlibext"; then
  11212. shrext=".$acl_shlibext" # typically: shrext=.so
  11213. else
  11214. shrext=
  11215. fi
  11216. if test $use_additional = yes; then
  11217. dir="$additional_libdir"
  11218. if test -n "$acl_shlibext"; then
  11219. if test -f "$dir/$libname$shrext"; then
  11220. found_dir="$dir"
  11221. found_so="$dir/$libname$shrext"
  11222. else
  11223. if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
  11224. ver=`(cd "$dir" && \
  11225. for f in "$libname$shrext".*; do echo "$f"; done \
  11226. | sed -e "s,^$libname$shrext\\\\.,," \
  11227. | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
  11228. | sed 1q ) 2>/dev/null`
  11229. if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
  11230. found_dir="$dir"
  11231. found_so="$dir/$libname$shrext.$ver"
  11232. fi
  11233. else
  11234. eval library_names=\"$acl_library_names_spec\"
  11235. for f in $library_names; do
  11236. if test -f "$dir/$f"; then
  11237. found_dir="$dir"
  11238. found_so="$dir/$f"
  11239. break
  11240. fi
  11241. done
  11242. fi
  11243. fi
  11244. fi
  11245. if test "X$found_dir" = "X"; then
  11246. if test -f "$dir/$libname.$acl_libext"; then
  11247. found_dir="$dir"
  11248. found_a="$dir/$libname.$acl_libext"
  11249. fi
  11250. fi
  11251. if test "X$found_dir" != "X"; then
  11252. if test -f "$dir/$libname.la"; then
  11253. found_la="$dir/$libname.la"
  11254. fi
  11255. fi
  11256. fi
  11257. if test "X$found_dir" = "X"; then
  11258. for x in $LDFLAGS $LTLIBINTL; do
  11259. acl_save_prefix="$prefix"
  11260. prefix="$acl_final_prefix"
  11261. acl_save_exec_prefix="$exec_prefix"
  11262. exec_prefix="$acl_final_exec_prefix"
  11263. eval x=\"$x\"
  11264. exec_prefix="$acl_save_exec_prefix"
  11265. prefix="$acl_save_prefix"
  11266. case "$x" in
  11267. -L*)
  11268. dir=`echo "X$x" | sed -e 's/^X-L//'`
  11269. if test -n "$acl_shlibext"; then
  11270. if test -f "$dir/$libname$shrext"; then
  11271. found_dir="$dir"
  11272. found_so="$dir/$libname$shrext"
  11273. else
  11274. if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
  11275. ver=`(cd "$dir" && \
  11276. for f in "$libname$shrext".*; do echo "$f"; done \
  11277. | sed -e "s,^$libname$shrext\\\\.,," \
  11278. | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
  11279. | sed 1q ) 2>/dev/null`
  11280. if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
  11281. found_dir="$dir"
  11282. found_so="$dir/$libname$shrext.$ver"
  11283. fi
  11284. else
  11285. eval library_names=\"$acl_library_names_spec\"
  11286. for f in $library_names; do
  11287. if test -f "$dir/$f"; then
  11288. found_dir="$dir"
  11289. found_so="$dir/$f"
  11290. break
  11291. fi
  11292. done
  11293. fi
  11294. fi
  11295. fi
  11296. if test "X$found_dir" = "X"; then
  11297. if test -f "$dir/$libname.$acl_libext"; then
  11298. found_dir="$dir"
  11299. found_a="$dir/$libname.$acl_libext"
  11300. fi
  11301. fi
  11302. if test "X$found_dir" != "X"; then
  11303. if test -f "$dir/$libname.la"; then
  11304. found_la="$dir/$libname.la"
  11305. fi
  11306. fi
  11307. ;;
  11308. esac
  11309. if test "X$found_dir" != "X"; then
  11310. break
  11311. fi
  11312. done
  11313. fi
  11314. if test "X$found_dir" != "X"; then
  11315. LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$found_dir -l$name"
  11316. if test "X$found_so" != "X"; then
  11317. if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/$acl_libdirstem"; then
  11318. LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
  11319. else
  11320. haveit=
  11321. for x in $ltrpathdirs; do
  11322. if test "X$x" = "X$found_dir"; then
  11323. haveit=yes
  11324. break
  11325. fi
  11326. done
  11327. if test -z "$haveit"; then
  11328. ltrpathdirs="$ltrpathdirs $found_dir"
  11329. fi
  11330. if test "$acl_hardcode_direct" = yes; then
  11331. LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
  11332. else
  11333. if test -n "$acl_hardcode_libdir_flag_spec" && test "$acl_hardcode_minus_L" = no; then
  11334. LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
  11335. haveit=
  11336. for x in $rpathdirs; do
  11337. if test "X$x" = "X$found_dir"; then
  11338. haveit=yes
  11339. break
  11340. fi
  11341. done
  11342. if test -z "$haveit"; then
  11343. rpathdirs="$rpathdirs $found_dir"
  11344. fi
  11345. else
  11346. haveit=
  11347. for x in $LDFLAGS $LIBINTL; do
  11348. acl_save_prefix="$prefix"
  11349. prefix="$acl_final_prefix"
  11350. acl_save_exec_prefix="$exec_prefix"
  11351. exec_prefix="$acl_final_exec_prefix"
  11352. eval x=\"$x\"
  11353. exec_prefix="$acl_save_exec_prefix"
  11354. prefix="$acl_save_prefix"
  11355. if test "X$x" = "X-L$found_dir"; then
  11356. haveit=yes
  11357. break
  11358. fi
  11359. done
  11360. if test -z "$haveit"; then
  11361. LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir"
  11362. fi
  11363. if test "$acl_hardcode_minus_L" != no; then
  11364. LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
  11365. else
  11366. LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
  11367. fi
  11368. fi
  11369. fi
  11370. fi
  11371. else
  11372. if test "X$found_a" != "X"; then
  11373. LIBINTL="${LIBINTL}${LIBINTL:+ }$found_a"
  11374. else
  11375. LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir -l$name"
  11376. fi
  11377. fi
  11378. additional_includedir=
  11379. case "$found_dir" in
  11380. */$acl_libdirstem | */$acl_libdirstem/)
  11381. basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem/"'*$,,'`
  11382. LIBINTL_PREFIX="$basedir"
  11383. additional_includedir="$basedir/include"
  11384. ;;
  11385. esac
  11386. if test "X$additional_includedir" != "X"; then
  11387. if test "X$additional_includedir" != "X/usr/include"; then
  11388. haveit=
  11389. if test "X$additional_includedir" = "X/usr/local/include"; then
  11390. if test -n "$GCC"; then
  11391. case $host_os in
  11392. linux* | gnu* | k*bsd*-gnu) haveit=yes;;
  11393. esac
  11394. fi
  11395. fi
  11396. if test -z "$haveit"; then
  11397. for x in $CPPFLAGS $INCINTL; do
  11398. acl_save_prefix="$prefix"
  11399. prefix="$acl_final_prefix"
  11400. acl_save_exec_prefix="$exec_prefix"
  11401. exec_prefix="$acl_final_exec_prefix"
  11402. eval x=\"$x\"
  11403. exec_prefix="$acl_save_exec_prefix"
  11404. prefix="$acl_save_prefix"
  11405. if test "X$x" = "X-I$additional_includedir"; then
  11406. haveit=yes
  11407. break
  11408. fi
  11409. done
  11410. if test -z "$haveit"; then
  11411. if test -d "$additional_includedir"; then
  11412. INCINTL="${INCINTL}${INCINTL:+ }-I$additional_includedir"
  11413. fi
  11414. fi
  11415. fi
  11416. fi
  11417. fi
  11418. if test -n "$found_la"; then
  11419. save_libdir="$libdir"
  11420. case "$found_la" in
  11421. */* | *\\*) . "$found_la" ;;
  11422. *) . "./$found_la" ;;
  11423. esac
  11424. libdir="$save_libdir"
  11425. for dep in $dependency_libs; do
  11426. case "$dep" in
  11427. -L*)
  11428. additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
  11429. if test "X$additional_libdir" != "X/usr/$acl_libdirstem"; then
  11430. haveit=
  11431. if test "X$additional_libdir" = "X/usr/local/$acl_libdirstem"; then
  11432. if test -n "$GCC"; then
  11433. case $host_os in
  11434. linux* | gnu* | k*bsd*-gnu) haveit=yes;;
  11435. esac
  11436. fi
  11437. fi
  11438. if test -z "$haveit"; then
  11439. haveit=
  11440. for x in $LDFLAGS $LIBINTL; do
  11441. acl_save_prefix="$prefix"
  11442. prefix="$acl_final_prefix"
  11443. acl_save_exec_prefix="$exec_prefix"
  11444. exec_prefix="$acl_final_exec_prefix"
  11445. eval x=\"$x\"
  11446. exec_prefix="$acl_save_exec_prefix"
  11447. prefix="$acl_save_prefix"
  11448. if test "X$x" = "X-L$additional_libdir"; then
  11449. haveit=yes
  11450. break
  11451. fi
  11452. done
  11453. if test -z "$haveit"; then
  11454. if test -d "$additional_libdir"; then
  11455. LIBINTL="${LIBINTL}${LIBINTL:+ }-L$additional_libdir"
  11456. fi
  11457. fi
  11458. haveit=
  11459. for x in $LDFLAGS $LTLIBINTL; do
  11460. acl_save_prefix="$prefix"
  11461. prefix="$acl_final_prefix"
  11462. acl_save_exec_prefix="$exec_prefix"
  11463. exec_prefix="$acl_final_exec_prefix"
  11464. eval x=\"$x\"
  11465. exec_prefix="$acl_save_exec_prefix"
  11466. prefix="$acl_save_prefix"
  11467. if test "X$x" = "X-L$additional_libdir"; then
  11468. haveit=yes
  11469. break
  11470. fi
  11471. done
  11472. if test -z "$haveit"; then
  11473. if test -d "$additional_libdir"; then
  11474. LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$additional_libdir"
  11475. fi
  11476. fi
  11477. fi
  11478. fi
  11479. ;;
  11480. -R*)
  11481. dir=`echo "X$dep" | sed -e 's/^X-R//'`
  11482. if test "$enable_rpath" != no; then
  11483. haveit=
  11484. for x in $rpathdirs; do
  11485. if test "X$x" = "X$dir"; then
  11486. haveit=yes
  11487. break
  11488. fi
  11489. done
  11490. if test -z "$haveit"; then
  11491. rpathdirs="$rpathdirs $dir"
  11492. fi
  11493. haveit=
  11494. for x in $ltrpathdirs; do
  11495. if test "X$x" = "X$dir"; then
  11496. haveit=yes
  11497. break
  11498. fi
  11499. done
  11500. if test -z "$haveit"; then
  11501. ltrpathdirs="$ltrpathdirs $dir"
  11502. fi
  11503. fi
  11504. ;;
  11505. -l*)
  11506. names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
  11507. ;;
  11508. *.la)
  11509. names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
  11510. ;;
  11511. *)
  11512. LIBINTL="${LIBINTL}${LIBINTL:+ }$dep"
  11513. LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$dep"
  11514. ;;
  11515. esac
  11516. done
  11517. fi
  11518. else
  11519. LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
  11520. LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-l$name"
  11521. fi
  11522. fi
  11523. fi
  11524. done
  11525. done
  11526. if test "X$rpathdirs" != "X"; then
  11527. if test -n "$acl_hardcode_libdir_separator"; then
  11528. alldirs=
  11529. for found_dir in $rpathdirs; do
  11530. alldirs="${alldirs}${alldirs:+$acl_hardcode_libdir_separator}$found_dir"
  11531. done
  11532. acl_save_libdir="$libdir"
  11533. libdir="$alldirs"
  11534. eval flag=\"$acl_hardcode_libdir_flag_spec\"
  11535. libdir="$acl_save_libdir"
  11536. LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
  11537. else
  11538. for found_dir in $rpathdirs; do
  11539. acl_save_libdir="$libdir"
  11540. libdir="$found_dir"
  11541. eval flag=\"$acl_hardcode_libdir_flag_spec\"
  11542. libdir="$acl_save_libdir"
  11543. LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
  11544. done
  11545. fi
  11546. fi
  11547. if test "X$ltrpathdirs" != "X"; then
  11548. for found_dir in $ltrpathdirs; do
  11549. LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-R$found_dir"
  11550. done
  11551. fi
  11552. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU gettext in libintl" >&5
  11553. $as_echo_n "checking for GNU gettext in libintl... " >&6; }
  11554. if { as_var=$gt_func_gnugettext_libintl; eval "test \"\${$as_var+set}\" = set"; }; then :
  11555. $as_echo_n "(cached) " >&6
  11556. else
  11557. gt_save_CPPFLAGS="$CPPFLAGS"
  11558. CPPFLAGS="$CPPFLAGS $INCINTL"
  11559. gt_save_LIBS="$LIBS"
  11560. LIBS="$LIBS $LIBINTL"
  11561. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11562. /* end confdefs.h. */
  11563. #include <libintl.h>
  11564. $gt_revision_test_code
  11565. extern int _nl_msg_cat_cntr;
  11566. extern
  11567. #ifdef __cplusplus
  11568. "C"
  11569. #endif
  11570. const char *_nl_expand_alias (const char *);
  11571. int
  11572. main ()
  11573. {
  11574. bindtextdomain ("", "");
  11575. return * gettext ("")$gt_expression_test_code + _nl_msg_cat_cntr + *_nl_expand_alias ("")
  11576. ;
  11577. return 0;
  11578. }
  11579. _ACEOF
  11580. if ac_fn_cxx_try_link "$LINENO"; then :
  11581. eval "$gt_func_gnugettext_libintl=yes"
  11582. else
  11583. eval "$gt_func_gnugettext_libintl=no"
  11584. fi
  11585. rm -f core conftest.err conftest.$ac_objext \
  11586. conftest$ac_exeext conftest.$ac_ext
  11587. if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" != yes; } && test -n "$LIBICONV"; then
  11588. LIBS="$LIBS $LIBICONV"
  11589. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11590. /* end confdefs.h. */
  11591. #include <libintl.h>
  11592. $gt_revision_test_code
  11593. extern int _nl_msg_cat_cntr;
  11594. extern
  11595. #ifdef __cplusplus
  11596. "C"
  11597. #endif
  11598. const char *_nl_expand_alias (const char *);
  11599. int
  11600. main ()
  11601. {
  11602. bindtextdomain ("", "");
  11603. return * gettext ("")$gt_expression_test_code + _nl_msg_cat_cntr + *_nl_expand_alias ("")
  11604. ;
  11605. return 0;
  11606. }
  11607. _ACEOF
  11608. if ac_fn_cxx_try_link "$LINENO"; then :
  11609. LIBINTL="$LIBINTL $LIBICONV"
  11610. LTLIBINTL="$LTLIBINTL $LTLIBICONV"
  11611. eval "$gt_func_gnugettext_libintl=yes"
  11612. fi
  11613. rm -f core conftest.err conftest.$ac_objext \
  11614. conftest$ac_exeext conftest.$ac_ext
  11615. fi
  11616. CPPFLAGS="$gt_save_CPPFLAGS"
  11617. LIBS="$gt_save_LIBS"
  11618. fi
  11619. eval ac_res=\$$gt_func_gnugettext_libintl
  11620. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  11621. $as_echo "$ac_res" >&6; }
  11622. fi
  11623. if { eval "gt_val=\$$gt_func_gnugettext_libc"; test "$gt_val" = "yes"; } \
  11624. || { { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; } \
  11625. && test "$PACKAGE" != gettext-runtime \
  11626. && test "$PACKAGE" != gettext-tools; }; then
  11627. gt_use_preinstalled_gnugettext=yes
  11628. else
  11629. LIBINTL=
  11630. LTLIBINTL=
  11631. INCINTL=
  11632. fi
  11633. if test "$gt_use_preinstalled_gnugettext" != "yes"; then
  11634. nls_cv_use_gnu_gettext=yes
  11635. fi
  11636. fi
  11637. if test "$nls_cv_use_gnu_gettext" = "yes"; then
  11638. BUILD_INCLUDED_LIBINTL=yes
  11639. USE_INCLUDED_LIBINTL=yes
  11640. LIBINTL="\${top_builddir}/intl/libintl.a $LIBICONV $LIBTHREAD"
  11641. LTLIBINTL="\${top_builddir}/intl/libintl.a $LTLIBICONV $LTLIBTHREAD"
  11642. LIBS=`echo " $LIBS " | sed -e 's/ -lintl / /' -e 's/^ //' -e 's/ $//'`
  11643. fi
  11644. CATOBJEXT=
  11645. if test "$gt_use_preinstalled_gnugettext" = "yes" \
  11646. || test "$nls_cv_use_gnu_gettext" = "yes"; then
  11647. CATOBJEXT=.gmo
  11648. fi
  11649. if test -n "$INTL_MACOSX_LIBS"; then
  11650. if test "$gt_use_preinstalled_gnugettext" = "yes" \
  11651. || test "$nls_cv_use_gnu_gettext" = "yes"; then
  11652. LIBINTL="$LIBINTL $INTL_MACOSX_LIBS"
  11653. LTLIBINTL="$LTLIBINTL $INTL_MACOSX_LIBS"
  11654. fi
  11655. fi
  11656. if test "$gt_use_preinstalled_gnugettext" = "yes" \
  11657. || test "$nls_cv_use_gnu_gettext" = "yes"; then
  11658. $as_echo "#define ENABLE_NLS 1" >>confdefs.h
  11659. else
  11660. USE_NLS=no
  11661. fi
  11662. fi
  11663. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use NLS" >&5
  11664. $as_echo_n "checking whether to use NLS... " >&6; }
  11665. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5
  11666. $as_echo "$USE_NLS" >&6; }
  11667. if test "$USE_NLS" = "yes"; then
  11668. { $as_echo "$as_me:${as_lineno-$LINENO}: checking where the gettext function comes from" >&5
  11669. $as_echo_n "checking where the gettext function comes from... " >&6; }
  11670. if test "$gt_use_preinstalled_gnugettext" = "yes"; then
  11671. if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; }; then
  11672. gt_source="external libintl"
  11673. else
  11674. gt_source="libc"
  11675. fi
  11676. else
  11677. gt_source="included intl directory"
  11678. fi
  11679. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_source" >&5
  11680. $as_echo "$gt_source" >&6; }
  11681. fi
  11682. if test "$USE_NLS" = "yes"; then
  11683. if test "$gt_use_preinstalled_gnugettext" = "yes"; then
  11684. if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; }; then
  11685. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libintl" >&5
  11686. $as_echo_n "checking how to link with libintl... " >&6; }
  11687. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBINTL" >&5
  11688. $as_echo "$LIBINTL" >&6; }
  11689. for element in $INCINTL; do
  11690. haveit=
  11691. for x in $CPPFLAGS; do
  11692. acl_save_prefix="$prefix"
  11693. prefix="$acl_final_prefix"
  11694. acl_save_exec_prefix="$exec_prefix"
  11695. exec_prefix="$acl_final_exec_prefix"
  11696. eval x=\"$x\"
  11697. exec_prefix="$acl_save_exec_prefix"
  11698. prefix="$acl_save_prefix"
  11699. if test "X$x" = "X$element"; then
  11700. haveit=yes
  11701. break
  11702. fi
  11703. done
  11704. if test -z "$haveit"; then
  11705. CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
  11706. fi
  11707. done
  11708. fi
  11709. $as_echo "#define HAVE_GETTEXT 1" >>confdefs.h
  11710. $as_echo "#define HAVE_DCGETTEXT 1" >>confdefs.h
  11711. fi
  11712. POSUB=po
  11713. fi
  11714. if test "$PACKAGE" = gettext-runtime || test "$PACKAGE" = gettext-tools; then
  11715. BUILD_INCLUDED_LIBINTL=yes
  11716. fi
  11717. nls_cv_header_intl=
  11718. nls_cv_header_libgt=
  11719. DATADIRNAME=share
  11720. INSTOBJEXT=.mo
  11721. GENCAT=gencat
  11722. INTLOBJS=
  11723. if test "$USE_INCLUDED_LIBINTL" = yes; then
  11724. INTLOBJS="\$(GETTOBJS)"
  11725. fi
  11726. INTL_LIBTOOL_SUFFIX_PREFIX=
  11727. INTLLIBS="$LIBINTL"
  11728. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for error_at_line" >&5
  11729. $as_echo_n "checking for error_at_line... " >&6; }
  11730. if test "${ac_cv_lib_error_at_line+set}" = set; then :
  11731. $as_echo_n "(cached) " >&6
  11732. else
  11733. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11734. /* end confdefs.h. */
  11735. #include <error.h>
  11736. int
  11737. main ()
  11738. {
  11739. error_at_line (0, 0, "", 0, "an error occurred");
  11740. ;
  11741. return 0;
  11742. }
  11743. _ACEOF
  11744. if ac_fn_cxx_try_link "$LINENO"; then :
  11745. ac_cv_lib_error_at_line=yes
  11746. else
  11747. ac_cv_lib_error_at_line=no
  11748. fi
  11749. rm -f core conftest.err conftest.$ac_objext \
  11750. conftest$ac_exeext conftest.$ac_ext
  11751. fi
  11752. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_error_at_line" >&5
  11753. $as_echo "$ac_cv_lib_error_at_line" >&6; }
  11754. if test $ac_cv_lib_error_at_line = no; then
  11755. case " $LIBOBJS " in
  11756. *" error.$ac_objext "* ) ;;
  11757. *) LIBOBJS="$LIBOBJS error.$ac_objext"
  11758. ;;
  11759. esac
  11760. fi
  11761. if test $ac_cv_c_compiler_gnu = yes; then
  11762. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC needs -traditional" >&5
  11763. $as_echo_n "checking whether $CC needs -traditional... " >&6; }
  11764. if test "${ac_cv_prog_gcc_traditional+set}" = set; then :
  11765. $as_echo_n "(cached) " >&6
  11766. else
  11767. ac_pattern="Autoconf.*'x'"
  11768. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11769. /* end confdefs.h. */
  11770. #include <sgtty.h>
  11771. Autoconf TIOCGETP
  11772. _ACEOF
  11773. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  11774. $EGREP "$ac_pattern" >/dev/null 2>&1; then :
  11775. ac_cv_prog_gcc_traditional=yes
  11776. else
  11777. ac_cv_prog_gcc_traditional=no
  11778. fi
  11779. rm -f conftest*
  11780. if test $ac_cv_prog_gcc_traditional = no; then
  11781. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11782. /* end confdefs.h. */
  11783. #include <termio.h>
  11784. Autoconf TCGETA
  11785. _ACEOF
  11786. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  11787. $EGREP "$ac_pattern" >/dev/null 2>&1; then :
  11788. ac_cv_prog_gcc_traditional=yes
  11789. fi
  11790. rm -f conftest*
  11791. fi
  11792. fi
  11793. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_gcc_traditional" >&5
  11794. $as_echo "$ac_cv_prog_gcc_traditional" >&6; }
  11795. if test $ac_cv_prog_gcc_traditional = yes; then
  11796. CC="$CC -traditional"
  11797. fi
  11798. fi
  11799. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working memcmp" >&5
  11800. $as_echo_n "checking for working memcmp... " >&6; }
  11801. if test "${ac_cv_func_memcmp_working+set}" = set; then :
  11802. $as_echo_n "(cached) " >&6
  11803. else
  11804. if test "$cross_compiling" = yes; then :
  11805. ac_cv_func_memcmp_working=no
  11806. else
  11807. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11808. /* end confdefs.h. */
  11809. $ac_includes_default
  11810. int
  11811. main ()
  11812. {
  11813. /* Some versions of memcmp are not 8-bit clean. */
  11814. char c0 = '\100', c1 = '\200', c2 = '\201';
  11815. if (memcmp(&c0, &c2, 1) >= 0 || memcmp(&c1, &c2, 1) >= 0)
  11816. return 1;
  11817. /* The Next x86 OpenStep bug shows up only when comparing 16 bytes
  11818. or more and with at least one buffer not starting on a 4-byte boundary.
  11819. William Lewis provided this test program. */
  11820. {
  11821. char foo[21];
  11822. char bar[21];
  11823. int i;
  11824. for (i = 0; i < 4; i++)
  11825. {
  11826. char *a = foo + i;
  11827. char *b = bar + i;
  11828. strcpy (a, "--------01111111");
  11829. strcpy (b, "--------10000000");
  11830. if (memcmp (a, b, 16) >= 0)
  11831. return 1;
  11832. }
  11833. return 0;
  11834. }
  11835. ;
  11836. return 0;
  11837. }
  11838. _ACEOF
  11839. if ac_fn_cxx_try_run "$LINENO"; then :
  11840. ac_cv_func_memcmp_working=yes
  11841. else
  11842. ac_cv_func_memcmp_working=no
  11843. fi
  11844. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  11845. conftest.$ac_objext conftest.beam conftest.$ac_ext
  11846. fi
  11847. fi
  11848. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_memcmp_working" >&5
  11849. $as_echo "$ac_cv_func_memcmp_working" >&6; }
  11850. test $ac_cv_func_memcmp_working = no && case " $LIBOBJS " in
  11851. *" memcmp.$ac_objext "* ) ;;
  11852. *) LIBOBJS="$LIBOBJS memcmp.$ac_objext"
  11853. ;;
  11854. esac
  11855. for ac_header in $ac_header_list
  11856. do :
  11857. as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
  11858. ac_fn_cxx_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
  11859. "
  11860. eval as_val=\$$as_ac_Header
  11861. if test "x$as_val" = x""yes; then :
  11862. cat >>confdefs.h <<_ACEOF
  11863. #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
  11864. _ACEOF
  11865. fi
  11866. done
  11867. for ac_func in $ac_func_list
  11868. do :
  11869. as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
  11870. ac_fn_cxx_check_func "$LINENO" "$ac_func" "$as_ac_var"
  11871. eval as_val=\$$as_ac_var
  11872. if test "x$as_val" = x""yes; then :
  11873. cat >>confdefs.h <<_ACEOF
  11874. #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
  11875. _ACEOF
  11876. fi
  11877. done
  11878. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mktime" >&5
  11879. $as_echo_n "checking for working mktime... " >&6; }
  11880. if test "${ac_cv_func_working_mktime+set}" = set; then :
  11881. $as_echo_n "(cached) " >&6
  11882. else
  11883. if test "$cross_compiling" = yes; then :
  11884. ac_cv_func_working_mktime=no
  11885. else
  11886. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11887. /* end confdefs.h. */
  11888. /* Test program from Paul Eggert and Tony Leneis. */
  11889. #ifdef TIME_WITH_SYS_TIME
  11890. # include <sys/time.h>
  11891. # include <time.h>
  11892. #else
  11893. # ifdef HAVE_SYS_TIME_H
  11894. # include <sys/time.h>
  11895. # else
  11896. # include <time.h>
  11897. # endif
  11898. #endif
  11899. #include <limits.h>
  11900. #include <stdlib.h>
  11901. #ifdef HAVE_UNISTD_H
  11902. # include <unistd.h>
  11903. #endif
  11904. #ifndef HAVE_ALARM
  11905. # define alarm(X) /* empty */
  11906. #endif
  11907. /* Work around redefinition to rpl_putenv by other config tests. */
  11908. #undef putenv
  11909. static time_t time_t_max;
  11910. static time_t time_t_min;
  11911. /* Values we'll use to set the TZ environment variable. */
  11912. static char *tz_strings[] = {
  11913. (char *) 0, "TZ=GMT0", "TZ=JST-9",
  11914. "TZ=EST+3EDT+2,M10.1.0/00:00:00,M2.3.0/00:00:00"
  11915. };
  11916. #define N_STRINGS (sizeof (tz_strings) / sizeof (tz_strings[0]))
  11917. /* Return 0 if mktime fails to convert a date in the spring-forward gap.
  11918. Based on a problem report from Andreas Jaeger. */
  11919. static int
  11920. spring_forward_gap ()
  11921. {
  11922. /* glibc (up to about 1998-10-07) failed this test. */
  11923. struct tm tm;
  11924. /* Use the portable POSIX.1 specification "TZ=PST8PDT,M4.1.0,M10.5.0"
  11925. instead of "TZ=America/Vancouver" in order to detect the bug even
  11926. on systems that don't support the Olson extension, or don't have the
  11927. full zoneinfo tables installed. */
  11928. putenv ("TZ=PST8PDT,M4.1.0,M10.5.0");
  11929. tm.tm_year = 98;
  11930. tm.tm_mon = 3;
  11931. tm.tm_mday = 5;
  11932. tm.tm_hour = 2;
  11933. tm.tm_min = 0;
  11934. tm.tm_sec = 0;
  11935. tm.tm_isdst = -1;
  11936. return mktime (&tm) != (time_t) -1;
  11937. }
  11938. static int
  11939. mktime_test1 (now)
  11940. time_t now;
  11941. {
  11942. struct tm *lt;
  11943. return ! (lt = localtime (&now)) || mktime (lt) == now;
  11944. }
  11945. static int
  11946. mktime_test (now)
  11947. time_t now;
  11948. {
  11949. return (mktime_test1 (now)
  11950. && mktime_test1 ((time_t) (time_t_max - now))
  11951. && mktime_test1 ((time_t) (time_t_min + now)));
  11952. }
  11953. static int
  11954. irix_6_4_bug ()
  11955. {
  11956. /* Based on code from Ariel Faigon. */
  11957. struct tm tm;
  11958. tm.tm_year = 96;
  11959. tm.tm_mon = 3;
  11960. tm.tm_mday = 0;
  11961. tm.tm_hour = 0;
  11962. tm.tm_min = 0;
  11963. tm.tm_sec = 0;
  11964. tm.tm_isdst = -1;
  11965. mktime (&tm);
  11966. return tm.tm_mon == 2 && tm.tm_mday == 31;
  11967. }
  11968. static int
  11969. bigtime_test (j)
  11970. int j;
  11971. {
  11972. struct tm tm;
  11973. time_t now;
  11974. tm.tm_year = tm.tm_mon = tm.tm_mday = tm.tm_hour = tm.tm_min = tm.tm_sec = j;
  11975. now = mktime (&tm);
  11976. if (now != (time_t) -1)
  11977. {
  11978. struct tm *lt = localtime (&now);
  11979. if (! (lt
  11980. && lt->tm_year == tm.tm_year
  11981. && lt->tm_mon == tm.tm_mon
  11982. && lt->tm_mday == tm.tm_mday
  11983. && lt->tm_hour == tm.tm_hour
  11984. && lt->tm_min == tm.tm_min
  11985. && lt->tm_sec == tm.tm_sec
  11986. && lt->tm_yday == tm.tm_yday
  11987. && lt->tm_wday == tm.tm_wday
  11988. && ((lt->tm_isdst < 0 ? -1 : 0 < lt->tm_isdst)
  11989. == (tm.tm_isdst < 0 ? -1 : 0 < tm.tm_isdst))))
  11990. return 0;
  11991. }
  11992. return 1;
  11993. }
  11994. static int
  11995. year_2050_test ()
  11996. {
  11997. /* The correct answer for 2050-02-01 00:00:00 in Pacific time,
  11998. ignoring leap seconds. */
  11999. unsigned long int answer = 2527315200UL;
  12000. struct tm tm;
  12001. time_t t;
  12002. tm.tm_year = 2050 - 1900;
  12003. tm.tm_mon = 2 - 1;
  12004. tm.tm_mday = 1;
  12005. tm.tm_hour = tm.tm_min = tm.tm_sec = 0;
  12006. tm.tm_isdst = -1;
  12007. /* Use the portable POSIX.1 specification "TZ=PST8PDT,M4.1.0,M10.5.0"
  12008. instead of "TZ=America/Vancouver" in order to detect the bug even
  12009. on systems that don't support the Olson extension, or don't have the
  12010. full zoneinfo tables installed. */
  12011. putenv ("TZ=PST8PDT,M4.1.0,M10.5.0");
  12012. t = mktime (&tm);
  12013. /* Check that the result is either a failure, or close enough
  12014. to the correct answer that we can assume the discrepancy is
  12015. due to leap seconds. */
  12016. return (t == (time_t) -1
  12017. || (0 < t && answer - 120 <= t && t <= answer + 120));
  12018. }
  12019. int
  12020. main ()
  12021. {
  12022. time_t t, delta;
  12023. int i, j;
  12024. /* This test makes some buggy mktime implementations loop.
  12025. Give up after 60 seconds; a mktime slower than that
  12026. isn't worth using anyway. */
  12027. alarm (60);
  12028. for (;;)
  12029. {
  12030. t = (time_t_max << 1) + 1;
  12031. if (t <= time_t_max)
  12032. break;
  12033. time_t_max = t;
  12034. }
  12035. time_t_min = - ((time_t) ~ (time_t) 0 == (time_t) -1) - time_t_max;
  12036. delta = time_t_max / 997; /* a suitable prime number */
  12037. for (i = 0; i < N_STRINGS; i++)
  12038. {
  12039. if (tz_strings[i])
  12040. putenv (tz_strings[i]);
  12041. for (t = 0; t <= time_t_max - delta; t += delta)
  12042. if (! mktime_test (t))
  12043. return 1;
  12044. if (! (mktime_test ((time_t) 1)
  12045. && mktime_test ((time_t) (60 * 60))
  12046. && mktime_test ((time_t) (60 * 60 * 24))))
  12047. return 1;
  12048. for (j = 1; ; j <<= 1)
  12049. if (! bigtime_test (j))
  12050. return 1;
  12051. else if (INT_MAX / 2 < j)
  12052. break;
  12053. if (! bigtime_test (INT_MAX))
  12054. return 1;
  12055. }
  12056. return ! (irix_6_4_bug () && spring_forward_gap () && year_2050_test ());
  12057. }
  12058. _ACEOF
  12059. if ac_fn_cxx_try_run "$LINENO"; then :
  12060. ac_cv_func_working_mktime=yes
  12061. else
  12062. ac_cv_func_working_mktime=no
  12063. fi
  12064. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  12065. conftest.$ac_objext conftest.beam conftest.$ac_ext
  12066. fi
  12067. fi
  12068. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_working_mktime" >&5
  12069. $as_echo "$ac_cv_func_working_mktime" >&6; }
  12070. if test $ac_cv_func_working_mktime = no; then
  12071. case " $LIBOBJS " in
  12072. *" mktime.$ac_objext "* ) ;;
  12073. *) LIBOBJS="$LIBOBJS mktime.$ac_objext"
  12074. ;;
  12075. esac
  12076. fi
  12077. for ac_header in stdlib.h unistd.h
  12078. do :
  12079. as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
  12080. ac_fn_cxx_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
  12081. eval as_val=\$$as_ac_Header
  12082. if test "x$as_val" = x""yes; then :
  12083. cat >>confdefs.h <<_ACEOF
  12084. #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
  12085. _ACEOF
  12086. fi
  12087. done
  12088. for ac_func in getpagesize
  12089. do :
  12090. ac_fn_cxx_check_func "$LINENO" "getpagesize" "ac_cv_func_getpagesize"
  12091. if test "x$ac_cv_func_getpagesize" = x""yes; then :
  12092. cat >>confdefs.h <<_ACEOF
  12093. #define HAVE_GETPAGESIZE 1
  12094. _ACEOF
  12095. fi
  12096. done
  12097. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mmap" >&5
  12098. $as_echo_n "checking for working mmap... " >&6; }
  12099. if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then :
  12100. $as_echo_n "(cached) " >&6
  12101. else
  12102. if test "$cross_compiling" = yes; then :
  12103. ac_cv_func_mmap_fixed_mapped=no
  12104. else
  12105. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12106. /* end confdefs.h. */
  12107. $ac_includes_default
  12108. /* malloc might have been renamed as rpl_malloc. */
  12109. #undef malloc
  12110. /* Thanks to Mike Haertel and Jim Avera for this test.
  12111. Here is a matrix of mmap possibilities:
  12112. mmap private not fixed
  12113. mmap private fixed at somewhere currently unmapped
  12114. mmap private fixed at somewhere already mapped
  12115. mmap shared not fixed
  12116. mmap shared fixed at somewhere currently unmapped
  12117. mmap shared fixed at somewhere already mapped
  12118. For private mappings, we should verify that changes cannot be read()
  12119. back from the file, nor mmap's back from the file at a different
  12120. address. (There have been systems where private was not correctly
  12121. implemented like the infamous i386 svr4.0, and systems where the
  12122. VM page cache was not coherent with the file system buffer cache
  12123. like early versions of FreeBSD and possibly contemporary NetBSD.)
  12124. For shared mappings, we should conversely verify that changes get
  12125. propagated back to all the places they're supposed to be.
  12126. Grep wants private fixed already mapped.
  12127. The main things grep needs to know about mmap are:
  12128. * does it exist and is it safe to write into the mmap'd area
  12129. * how to use it (BSD variants) */
  12130. #include <fcntl.h>
  12131. #include <sys/mman.h>
  12132. #if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
  12133. char *malloc ();
  12134. #endif
  12135. /* This mess was copied from the GNU getpagesize.h. */
  12136. #ifndef HAVE_GETPAGESIZE
  12137. /* Assume that all systems that can run configure have sys/param.h. */
  12138. # ifndef HAVE_SYS_PARAM_H
  12139. # define HAVE_SYS_PARAM_H 1
  12140. # endif
  12141. # ifdef _SC_PAGESIZE
  12142. # define getpagesize() sysconf(_SC_PAGESIZE)
  12143. # else /* no _SC_PAGESIZE */
  12144. # ifdef HAVE_SYS_PARAM_H
  12145. # include <sys/param.h>
  12146. # ifdef EXEC_PAGESIZE
  12147. # define getpagesize() EXEC_PAGESIZE
  12148. # else /* no EXEC_PAGESIZE */
  12149. # ifdef NBPG
  12150. # define getpagesize() NBPG * CLSIZE
  12151. # ifndef CLSIZE
  12152. # define CLSIZE 1
  12153. # endif /* no CLSIZE */
  12154. # else /* no NBPG */
  12155. # ifdef NBPC
  12156. # define getpagesize() NBPC
  12157. # else /* no NBPC */
  12158. # ifdef PAGESIZE
  12159. # define getpagesize() PAGESIZE
  12160. # endif /* PAGESIZE */
  12161. # endif /* no NBPC */
  12162. # endif /* no NBPG */
  12163. # endif /* no EXEC_PAGESIZE */
  12164. # else /* no HAVE_SYS_PARAM_H */
  12165. # define getpagesize() 8192 /* punt totally */
  12166. # endif /* no HAVE_SYS_PARAM_H */
  12167. # endif /* no _SC_PAGESIZE */
  12168. #endif /* no HAVE_GETPAGESIZE */
  12169. int
  12170. main ()
  12171. {
  12172. char *data, *data2, *data3;
  12173. int i, pagesize;
  12174. int fd;
  12175. pagesize = getpagesize ();
  12176. /* First, make a file with some known garbage in it. */
  12177. data = (char *) malloc (pagesize);
  12178. if (!data)
  12179. return 1;
  12180. for (i = 0; i < pagesize; ++i)
  12181. *(data + i) = rand ();
  12182. umask (0);
  12183. fd = creat ("conftest.mmap", 0600);
  12184. if (fd < 0)
  12185. return 1;
  12186. if (write (fd, data, pagesize) != pagesize)
  12187. return 1;
  12188. close (fd);
  12189. /* Next, try to mmap the file at a fixed address which already has
  12190. something else allocated at it. If we can, also make sure that
  12191. we see the same garbage. */
  12192. fd = open ("conftest.mmap", O_RDWR);
  12193. if (fd < 0)
  12194. return 1;
  12195. data2 = (char *) malloc (2 * pagesize);
  12196. if (!data2)
  12197. return 1;
  12198. data2 += (pagesize - ((long int) data2 & (pagesize - 1))) & (pagesize - 1);
  12199. if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
  12200. MAP_PRIVATE | MAP_FIXED, fd, 0L))
  12201. return 1;
  12202. for (i = 0; i < pagesize; ++i)
  12203. if (*(data + i) != *(data2 + i))
  12204. return 1;
  12205. /* Finally, make sure that changes to the mapped area do not
  12206. percolate back to the file as seen by read(). (This is a bug on
  12207. some variants of i386 svr4.0.) */
  12208. for (i = 0; i < pagesize; ++i)
  12209. *(data2 + i) = *(data2 + i) + 1;
  12210. data3 = (char *) malloc (pagesize);
  12211. if (!data3)
  12212. return 1;
  12213. if (read (fd, data3, pagesize) != pagesize)
  12214. return 1;
  12215. for (i = 0; i < pagesize; ++i)
  12216. if (*(data + i) != *(data3 + i))
  12217. return 1;
  12218. close (fd);
  12219. return 0;
  12220. }
  12221. _ACEOF
  12222. if ac_fn_cxx_try_run "$LINENO"; then :
  12223. ac_cv_func_mmap_fixed_mapped=yes
  12224. else
  12225. ac_cv_func_mmap_fixed_mapped=no
  12226. fi
  12227. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  12228. conftest.$ac_objext conftest.beam conftest.$ac_ext
  12229. fi
  12230. fi
  12231. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_mmap_fixed_mapped" >&5
  12232. $as_echo "$ac_cv_func_mmap_fixed_mapped" >&6; }
  12233. if test $ac_cv_func_mmap_fixed_mapped = yes; then
  12234. $as_echo "#define HAVE_MMAP 1" >>confdefs.h
  12235. fi
  12236. rm -f conftest.mmap
  12237. for ac_header in sys/select.h sys/socket.h
  12238. do :
  12239. as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
  12240. ac_fn_cxx_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
  12241. eval as_val=\$$as_ac_Header
  12242. if test "x$as_val" = x""yes; then :
  12243. cat >>confdefs.h <<_ACEOF
  12244. #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
  12245. _ACEOF
  12246. fi
  12247. done
  12248. { $as_echo "$as_me:${as_lineno-$LINENO}: checking types of arguments for select" >&5
  12249. $as_echo_n "checking types of arguments for select... " >&6; }
  12250. if test "${ac_cv_func_select_args+set}" = set; then :
  12251. $as_echo_n "(cached) " >&6
  12252. else
  12253. for ac_arg234 in 'fd_set *' 'int *' 'void *'; do
  12254. for ac_arg1 in 'int' 'size_t' 'unsigned long int' 'unsigned int'; do
  12255. for ac_arg5 in 'struct timeval *' 'const struct timeval *'; do
  12256. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12257. /* end confdefs.h. */
  12258. $ac_includes_default
  12259. #ifdef HAVE_SYS_SELECT_H
  12260. # include <sys/select.h>
  12261. #endif
  12262. #ifdef HAVE_SYS_SOCKET_H
  12263. # include <sys/socket.h>
  12264. #endif
  12265. int
  12266. main ()
  12267. {
  12268. extern int select ($ac_arg1,
  12269. $ac_arg234, $ac_arg234, $ac_arg234,
  12270. $ac_arg5);
  12271. ;
  12272. return 0;
  12273. }
  12274. _ACEOF
  12275. if ac_fn_cxx_try_compile "$LINENO"; then :
  12276. ac_cv_func_select_args="$ac_arg1,$ac_arg234,$ac_arg5"; break 3
  12277. fi
  12278. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  12279. done
  12280. done
  12281. done
  12282. # Provide a safe default value.
  12283. : ${ac_cv_func_select_args='int,int *,struct timeval *'}
  12284. fi
  12285. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_select_args" >&5
  12286. $as_echo "$ac_cv_func_select_args" >&6; }
  12287. ac_save_IFS=$IFS; IFS=','
  12288. set dummy `echo "$ac_cv_func_select_args" | sed 's/\*/\*/g'`
  12289. IFS=$ac_save_IFS
  12290. shift
  12291. cat >>confdefs.h <<_ACEOF
  12292. #define SELECT_TYPE_ARG1 $1
  12293. _ACEOF
  12294. cat >>confdefs.h <<_ACEOF
  12295. #define SELECT_TYPE_ARG234 ($2)
  12296. _ACEOF
  12297. cat >>confdefs.h <<_ACEOF
  12298. #define SELECT_TYPE_ARG5 ($3)
  12299. _ACEOF
  12300. rm -f conftest*
  12301. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether lstat dereferences a symlink specified with a trailing slash" >&5
  12302. $as_echo_n "checking whether lstat dereferences a symlink specified with a trailing slash... " >&6; }
  12303. if test "${ac_cv_func_lstat_dereferences_slashed_symlink+set}" = set; then :
  12304. $as_echo_n "(cached) " >&6
  12305. else
  12306. rm -f conftest.sym conftest.file
  12307. echo >conftest.file
  12308. if test "$as_ln_s" = "ln -s" && ln -s conftest.file conftest.sym; then
  12309. if test "$cross_compiling" = yes; then :
  12310. ac_cv_func_lstat_dereferences_slashed_symlink=no
  12311. else
  12312. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12313. /* end confdefs.h. */
  12314. $ac_includes_default
  12315. int
  12316. main ()
  12317. {
  12318. struct stat sbuf;
  12319. /* Linux will dereference the symlink and fail.
  12320. That is better in the sense that it means we will not
  12321. have to compile and use the lstat wrapper. */
  12322. return lstat ("conftest.sym/", &sbuf) == 0;
  12323. ;
  12324. return 0;
  12325. }
  12326. _ACEOF
  12327. if ac_fn_cxx_try_run "$LINENO"; then :
  12328. ac_cv_func_lstat_dereferences_slashed_symlink=yes
  12329. else
  12330. ac_cv_func_lstat_dereferences_slashed_symlink=no
  12331. fi
  12332. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  12333. conftest.$ac_objext conftest.beam conftest.$ac_ext
  12334. fi
  12335. else
  12336. # If the `ln -s' command failed, then we probably don't even
  12337. # have an lstat function.
  12338. ac_cv_func_lstat_dereferences_slashed_symlink=no
  12339. fi
  12340. rm -f conftest.sym conftest.file
  12341. fi
  12342. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_lstat_dereferences_slashed_symlink" >&5
  12343. $as_echo "$ac_cv_func_lstat_dereferences_slashed_symlink" >&6; }
  12344. test $ac_cv_func_lstat_dereferences_slashed_symlink = yes &&
  12345. cat >>confdefs.h <<_ACEOF
  12346. #define LSTAT_FOLLOWS_SLASHED_SYMLINK 1
  12347. _ACEOF
  12348. if test $ac_cv_func_lstat_dereferences_slashed_symlink = no; then
  12349. case " $LIBOBJS " in
  12350. *" lstat.$ac_objext "* ) ;;
  12351. *) LIBOBJS="$LIBOBJS lstat.$ac_objext"
  12352. ;;
  12353. esac
  12354. fi
  12355. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stat accepts an empty string" >&5
  12356. $as_echo_n "checking whether stat accepts an empty string... " >&6; }
  12357. if test "${ac_cv_func_stat_empty_string_bug+set}" = set; then :
  12358. $as_echo_n "(cached) " >&6
  12359. else
  12360. if test "$cross_compiling" = yes; then :
  12361. ac_cv_func_stat_empty_string_bug=yes
  12362. else
  12363. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12364. /* end confdefs.h. */
  12365. $ac_includes_default
  12366. int
  12367. main ()
  12368. {
  12369. struct stat sbuf;
  12370. return stat ("", &sbuf) == 0;
  12371. ;
  12372. return 0;
  12373. }
  12374. _ACEOF
  12375. if ac_fn_cxx_try_run "$LINENO"; then :
  12376. ac_cv_func_stat_empty_string_bug=no
  12377. else
  12378. ac_cv_func_stat_empty_string_bug=yes
  12379. fi
  12380. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  12381. conftest.$ac_objext conftest.beam conftest.$ac_ext
  12382. fi
  12383. fi
  12384. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_stat_empty_string_bug" >&5
  12385. $as_echo "$ac_cv_func_stat_empty_string_bug" >&6; }
  12386. if test $ac_cv_func_stat_empty_string_bug = yes; then
  12387. case " $LIBOBJS " in
  12388. *" stat.$ac_objext "* ) ;;
  12389. *) LIBOBJS="$LIBOBJS stat.$ac_objext"
  12390. ;;
  12391. esac
  12392. cat >>confdefs.h <<_ACEOF
  12393. #define HAVE_STAT_EMPTY_STRING_BUG 1
  12394. _ACEOF
  12395. fi
  12396. for ac_func in strftime
  12397. do :
  12398. ac_fn_cxx_check_func "$LINENO" "strftime" "ac_cv_func_strftime"
  12399. if test "x$ac_cv_func_strftime" = x""yes; then :
  12400. cat >>confdefs.h <<_ACEOF
  12401. #define HAVE_STRFTIME 1
  12402. _ACEOF
  12403. else
  12404. # strftime is in -lintl on SCO UNIX.
  12405. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for strftime in -lintl" >&5
  12406. $as_echo_n "checking for strftime in -lintl... " >&6; }
  12407. if test "${ac_cv_lib_intl_strftime+set}" = set; then :
  12408. $as_echo_n "(cached) " >&6
  12409. else
  12410. ac_check_lib_save_LIBS=$LIBS
  12411. LIBS="-lintl $LIBS"
  12412. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12413. /* end confdefs.h. */
  12414. /* Override any GCC internal prototype to avoid an error.
  12415. Use char because int might match the return type of a GCC
  12416. builtin and then its argument prototype would still apply. */
  12417. #ifdef __cplusplus
  12418. extern "C"
  12419. #endif
  12420. char strftime ();
  12421. int
  12422. main ()
  12423. {
  12424. return strftime ();
  12425. ;
  12426. return 0;
  12427. }
  12428. _ACEOF
  12429. if ac_fn_cxx_try_link "$LINENO"; then :
  12430. ac_cv_lib_intl_strftime=yes
  12431. else
  12432. ac_cv_lib_intl_strftime=no
  12433. fi
  12434. rm -f core conftest.err conftest.$ac_objext \
  12435. conftest$ac_exeext conftest.$ac_ext
  12436. LIBS=$ac_check_lib_save_LIBS
  12437. fi
  12438. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_intl_strftime" >&5
  12439. $as_echo "$ac_cv_lib_intl_strftime" >&6; }
  12440. if test "x$ac_cv_lib_intl_strftime" = x""yes; then :
  12441. $as_echo "#define HAVE_STRFTIME 1" >>confdefs.h
  12442. LIBS="-lintl $LIBS"
  12443. fi
  12444. fi
  12445. done
  12446. for ac_func in vprintf
  12447. do :
  12448. ac_fn_cxx_check_func "$LINENO" "vprintf" "ac_cv_func_vprintf"
  12449. if test "x$ac_cv_func_vprintf" = x""yes; then :
  12450. cat >>confdefs.h <<_ACEOF
  12451. #define HAVE_VPRINTF 1
  12452. _ACEOF
  12453. ac_fn_cxx_check_func "$LINENO" "_doprnt" "ac_cv_func__doprnt"
  12454. if test "x$ac_cv_func__doprnt" = x""yes; then :
  12455. $as_echo "#define HAVE_DOPRNT 1" >>confdefs.h
  12456. fi
  12457. fi
  12458. done
  12459. for ac_header in vfork.h
  12460. do :
  12461. ac_fn_cxx_check_header_mongrel "$LINENO" "vfork.h" "ac_cv_header_vfork_h" "$ac_includes_default"
  12462. if test "x$ac_cv_header_vfork_h" = x""yes; then :
  12463. cat >>confdefs.h <<_ACEOF
  12464. #define HAVE_VFORK_H 1
  12465. _ACEOF
  12466. fi
  12467. done
  12468. for ac_func in fork vfork
  12469. do :
  12470. as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
  12471. ac_fn_cxx_check_func "$LINENO" "$ac_func" "$as_ac_var"
  12472. eval as_val=\$$as_ac_var
  12473. if test "x$as_val" = x""yes; then :
  12474. cat >>confdefs.h <<_ACEOF
  12475. #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
  12476. _ACEOF
  12477. fi
  12478. done
  12479. if test "x$ac_cv_func_fork" = xyes; then
  12480. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working fork" >&5
  12481. $as_echo_n "checking for working fork... " >&6; }
  12482. if test "${ac_cv_func_fork_works+set}" = set; then :
  12483. $as_echo_n "(cached) " >&6
  12484. else
  12485. if test "$cross_compiling" = yes; then :
  12486. ac_cv_func_fork_works=cross
  12487. else
  12488. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12489. /* end confdefs.h. */
  12490. $ac_includes_default
  12491. int
  12492. main ()
  12493. {
  12494. /* By Ruediger Kuhlmann. */
  12495. return fork () < 0;
  12496. ;
  12497. return 0;
  12498. }
  12499. _ACEOF
  12500. if ac_fn_cxx_try_run "$LINENO"; then :
  12501. ac_cv_func_fork_works=yes
  12502. else
  12503. ac_cv_func_fork_works=no
  12504. fi
  12505. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  12506. conftest.$ac_objext conftest.beam conftest.$ac_ext
  12507. fi
  12508. fi
  12509. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_fork_works" >&5
  12510. $as_echo "$ac_cv_func_fork_works" >&6; }
  12511. else
  12512. ac_cv_func_fork_works=$ac_cv_func_fork
  12513. fi
  12514. if test "x$ac_cv_func_fork_works" = xcross; then
  12515. case $host in
  12516. *-*-amigaos* | *-*-msdosdjgpp*)
  12517. # Override, as these systems have only a dummy fork() stub
  12518. ac_cv_func_fork_works=no
  12519. ;;
  12520. *)
  12521. ac_cv_func_fork_works=yes
  12522. ;;
  12523. esac
  12524. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
  12525. $as_echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
  12526. fi
  12527. ac_cv_func_vfork_works=$ac_cv_func_vfork
  12528. if test "x$ac_cv_func_vfork" = xyes; then
  12529. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working vfork" >&5
  12530. $as_echo_n "checking for working vfork... " >&6; }
  12531. if test "${ac_cv_func_vfork_works+set}" = set; then :
  12532. $as_echo_n "(cached) " >&6
  12533. else
  12534. if test "$cross_compiling" = yes; then :
  12535. ac_cv_func_vfork_works=cross
  12536. else
  12537. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12538. /* end confdefs.h. */
  12539. /* Thanks to Paul Eggert for this test. */
  12540. $ac_includes_default
  12541. #include <sys/wait.h>
  12542. #ifdef HAVE_VFORK_H
  12543. # include <vfork.h>
  12544. #endif
  12545. /* On some sparc systems, changes by the child to local and incoming
  12546. argument registers are propagated back to the parent. The compiler
  12547. is told about this with #include <vfork.h>, but some compilers
  12548. (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
  12549. static variable whose address is put into a register that is
  12550. clobbered by the vfork. */
  12551. static void
  12552. #ifdef __cplusplus
  12553. sparc_address_test (int arg)
  12554. # else
  12555. sparc_address_test (arg) int arg;
  12556. #endif
  12557. {
  12558. static pid_t child;
  12559. if (!child) {
  12560. child = vfork ();
  12561. if (child < 0) {
  12562. perror ("vfork");
  12563. _exit(2);
  12564. }
  12565. if (!child) {
  12566. arg = getpid();
  12567. write(-1, "", 0);
  12568. _exit (arg);
  12569. }
  12570. }
  12571. }
  12572. int
  12573. main ()
  12574. {
  12575. pid_t parent = getpid ();
  12576. pid_t child;
  12577. sparc_address_test (0);
  12578. child = vfork ();
  12579. if (child == 0) {
  12580. /* Here is another test for sparc vfork register problems. This
  12581. test uses lots of local variables, at least as many local
  12582. variables as main has allocated so far including compiler
  12583. temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
  12584. 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
  12585. reuse the register of parent for one of the local variables,
  12586. since it will think that parent can't possibly be used any more
  12587. in this routine. Assigning to the local variable will thus
  12588. munge parent in the parent process. */
  12589. pid_t
  12590. p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
  12591. p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
  12592. /* Convince the compiler that p..p7 are live; otherwise, it might
  12593. use the same hardware register for all 8 local variables. */
  12594. if (p != p1 || p != p2 || p != p3 || p != p4
  12595. || p != p5 || p != p6 || p != p7)
  12596. _exit(1);
  12597. /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
  12598. from child file descriptors. If the child closes a descriptor
  12599. before it execs or exits, this munges the parent's descriptor
  12600. as well. Test for this by closing stdout in the child. */
  12601. _exit(close(fileno(stdout)) != 0);
  12602. } else {
  12603. int status;
  12604. struct stat st;
  12605. while (wait(&status) != child)
  12606. ;
  12607. return (
  12608. /* Was there some problem with vforking? */
  12609. child < 0
  12610. /* Did the child fail? (This shouldn't happen.) */
  12611. || status
  12612. /* Did the vfork/compiler bug occur? */
  12613. || parent != getpid()
  12614. /* Did the file descriptor bug occur? */
  12615. || fstat(fileno(stdout), &st) != 0
  12616. );
  12617. }
  12618. }
  12619. _ACEOF
  12620. if ac_fn_cxx_try_run "$LINENO"; then :
  12621. ac_cv_func_vfork_works=yes
  12622. else
  12623. ac_cv_func_vfork_works=no
  12624. fi
  12625. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  12626. conftest.$ac_objext conftest.beam conftest.$ac_ext
  12627. fi
  12628. fi
  12629. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_vfork_works" >&5
  12630. $as_echo "$ac_cv_func_vfork_works" >&6; }
  12631. fi;
  12632. if test "x$ac_cv_func_fork_works" = xcross; then
  12633. ac_cv_func_vfork_works=$ac_cv_func_vfork
  12634. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
  12635. $as_echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
  12636. fi
  12637. if test "x$ac_cv_func_vfork_works" = xyes; then
  12638. $as_echo "#define HAVE_WORKING_VFORK 1" >>confdefs.h
  12639. else
  12640. $as_echo "#define vfork fork" >>confdefs.h
  12641. fi
  12642. if test "x$ac_cv_func_fork_works" = xyes; then
  12643. $as_echo "#define HAVE_WORKING_FORK 1" >>confdefs.h
  12644. fi
  12645. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working strtod" >&5
  12646. $as_echo_n "checking for working strtod... " >&6; }
  12647. if test "${ac_cv_func_strtod+set}" = set; then :
  12648. $as_echo_n "(cached) " >&6
  12649. else
  12650. if test "$cross_compiling" = yes; then :
  12651. ac_cv_func_strtod=no
  12652. else
  12653. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12654. /* end confdefs.h. */
  12655. $ac_includes_default
  12656. #ifndef strtod
  12657. double strtod ();
  12658. #endif
  12659. int
  12660. main()
  12661. {
  12662. {
  12663. /* Some versions of Linux strtod mis-parse strings with leading '+'. */
  12664. char *string = " +69";
  12665. char *term;
  12666. double value;
  12667. value = strtod (string, &term);
  12668. if (value != 69 || term != (string + 4))
  12669. return 1;
  12670. }
  12671. {
  12672. /* Under Solaris 2.4, strtod returns the wrong value for the
  12673. terminating character under some conditions. */
  12674. char *string = "NaN";
  12675. char *term;
  12676. strtod (string, &term);
  12677. if (term != string && *(term - 1) == 0)
  12678. return 1;
  12679. }
  12680. return 0;
  12681. }
  12682. _ACEOF
  12683. if ac_fn_cxx_try_run "$LINENO"; then :
  12684. ac_cv_func_strtod=yes
  12685. else
  12686. ac_cv_func_strtod=no
  12687. fi
  12688. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  12689. conftest.$ac_objext conftest.beam conftest.$ac_ext
  12690. fi
  12691. fi
  12692. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_strtod" >&5
  12693. $as_echo "$ac_cv_func_strtod" >&6; }
  12694. if test $ac_cv_func_strtod = no; then
  12695. case " $LIBOBJS " in
  12696. *" strtod.$ac_objext "* ) ;;
  12697. *) LIBOBJS="$LIBOBJS strtod.$ac_objext"
  12698. ;;
  12699. esac
  12700. ac_fn_cxx_check_func "$LINENO" "pow" "ac_cv_func_pow"
  12701. if test "x$ac_cv_func_pow" = x""yes; then :
  12702. fi
  12703. if test $ac_cv_func_pow = no; then
  12704. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pow in -lm" >&5
  12705. $as_echo_n "checking for pow in -lm... " >&6; }
  12706. if test "${ac_cv_lib_m_pow+set}" = set; then :
  12707. $as_echo_n "(cached) " >&6
  12708. else
  12709. ac_check_lib_save_LIBS=$LIBS
  12710. LIBS="-lm $LIBS"
  12711. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12712. /* end confdefs.h. */
  12713. /* Override any GCC internal prototype to avoid an error.
  12714. Use char because int might match the return type of a GCC
  12715. builtin and then its argument prototype would still apply. */
  12716. #ifdef __cplusplus
  12717. extern "C"
  12718. #endif
  12719. char pow ();
  12720. int
  12721. main ()
  12722. {
  12723. return pow ();
  12724. ;
  12725. return 0;
  12726. }
  12727. _ACEOF
  12728. if ac_fn_cxx_try_link "$LINENO"; then :
  12729. ac_cv_lib_m_pow=yes
  12730. else
  12731. ac_cv_lib_m_pow=no
  12732. fi
  12733. rm -f core conftest.err conftest.$ac_objext \
  12734. conftest$ac_exeext conftest.$ac_ext
  12735. LIBS=$ac_check_lib_save_LIBS
  12736. fi
  12737. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_pow" >&5
  12738. $as_echo "$ac_cv_lib_m_pow" >&6; }
  12739. if test "x$ac_cv_lib_m_pow" = x""yes; then :
  12740. POW_LIB=-lm
  12741. else
  12742. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cannot find library containing definition of pow" >&5
  12743. $as_echo "$as_me: WARNING: cannot find library containing definition of pow" >&2;}
  12744. fi
  12745. fi
  12746. fi
  12747. for ac_func in __argz_count \
  12748. __argz_next \
  12749. __argz_stringify \
  12750. atexit \
  12751. ftruncate \
  12752. getcwd \
  12753. gethostbyaddr \
  12754. gethostbyname \
  12755. getifaddrs \
  12756. getpagesize \
  12757. inet_ntoa \
  12758. memchr \
  12759. memmove \
  12760. mempcpy \
  12761. memset \
  12762. mkdir \
  12763. munmap \
  12764. nl_langinfo \
  12765. posix_memalign \
  12766. pow \
  12767. putenv \
  12768. rmdir \
  12769. select \
  12770. setlocale \
  12771. sleep \
  12772. socket \
  12773. stpcpy \
  12774. strcasecmp \
  12775. strchr \
  12776. strcspn \
  12777. strdup \
  12778. strerror \
  12779. strncasecmp \
  12780. strstr \
  12781. strtol \
  12782. strtoul \
  12783. strtoull \
  12784. tzset \
  12785. unsetenv \
  12786. usleep \
  12787. utime
  12788. do :
  12789. as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
  12790. ac_fn_cxx_check_func "$LINENO" "$ac_func" "$as_ac_var"
  12791. eval as_val=\$$as_ac_var
  12792. if test "x$as_val" = x""yes; then :
  12793. cat >>confdefs.h <<_ACEOF
  12794. #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
  12795. _ACEOF
  12796. fi
  12797. done
  12798. if test "x$enable_epoll" = "xyes"; then
  12799. for ac_func in epoll_create
  12800. do :
  12801. ac_fn_cxx_check_func "$LINENO" "epoll_create" "ac_cv_func_epoll_create"
  12802. if test "x$ac_cv_func_epoll_create" = x""yes; then :
  12803. cat >>confdefs.h <<_ACEOF
  12804. #define HAVE_EPOLL_CREATE 1
  12805. _ACEOF
  12806. have_epoll=yes
  12807. fi
  12808. done
  12809. if test "x$have_epoll" = "xyes"; then
  12810. $as_echo "#define HAVE_EPOLL 1" >>confdefs.h
  12811. fi
  12812. fi
  12813. if test "x$have_epoll" = "xyes"; then
  12814. HAVE_EPOLL_TRUE=
  12815. HAVE_EPOLL_FALSE='#'
  12816. else
  12817. HAVE_EPOLL_TRUE='#'
  12818. HAVE_EPOLL_FALSE=
  12819. fi
  12820. for ac_func in posix_fallocate
  12821. do :
  12822. ac_fn_cxx_check_func "$LINENO" "posix_fallocate" "ac_cv_func_posix_fallocate"
  12823. if test "x$ac_cv_func_posix_fallocate" = x""yes; then :
  12824. cat >>confdefs.h <<_ACEOF
  12825. #define HAVE_POSIX_FALLOCATE 1
  12826. _ACEOF
  12827. have_posix_fallocate=yes
  12828. fi
  12829. done
  12830. if test "x$have_posix_fallocate" = "xyes"; then
  12831. HAVE_POSIX_FALLOCATE_TRUE=
  12832. HAVE_POSIX_FALLOCATE_FALSE='#'
  12833. else
  12834. HAVE_POSIX_FALLOCATE_TRUE='#'
  12835. HAVE_POSIX_FALLOCATE_FALSE=
  12836. fi
  12837. for ac_func in asctime_r
  12838. do :
  12839. ac_fn_cxx_check_func "$LINENO" "asctime_r" "ac_cv_func_asctime_r"
  12840. if test "x$ac_cv_func_asctime_r" = x""yes; then :
  12841. cat >>confdefs.h <<_ACEOF
  12842. #define HAVE_ASCTIME_R 1
  12843. _ACEOF
  12844. if true; then
  12845. HAVE_ASCTIME_R_TRUE=
  12846. HAVE_ASCTIME_R_FALSE='#'
  12847. else
  12848. HAVE_ASCTIME_R_TRUE='#'
  12849. HAVE_ASCTIME_R_FALSE=
  12850. fi
  12851. else
  12852. if false; then
  12853. HAVE_ASCTIME_R_TRUE=
  12854. HAVE_ASCTIME_R_FALSE='#'
  12855. else
  12856. HAVE_ASCTIME_R_TRUE='#'
  12857. HAVE_ASCTIME_R_FALSE=
  12858. fi
  12859. fi
  12860. done
  12861. for ac_func in basename
  12862. do :
  12863. ac_fn_cxx_check_func "$LINENO" "basename" "ac_cv_func_basename"
  12864. if test "x$ac_cv_func_basename" = x""yes; then :
  12865. cat >>confdefs.h <<_ACEOF
  12866. #define HAVE_BASENAME 1
  12867. _ACEOF
  12868. if true; then
  12869. HAVE_BASENAME_TRUE=
  12870. HAVE_BASENAME_FALSE='#'
  12871. else
  12872. HAVE_BASENAME_TRUE='#'
  12873. HAVE_BASENAME_FALSE=
  12874. fi
  12875. else
  12876. if false; then
  12877. HAVE_BASENAME_TRUE=
  12878. HAVE_BASENAME_FALSE='#'
  12879. else
  12880. HAVE_BASENAME_TRUE='#'
  12881. HAVE_BASENAME_FALSE=
  12882. fi
  12883. fi
  12884. done
  12885. for ac_func in gai_strerror
  12886. do :
  12887. ac_fn_cxx_check_func "$LINENO" "gai_strerror" "ac_cv_func_gai_strerror"
  12888. if test "x$ac_cv_func_gai_strerror" = x""yes; then :
  12889. cat >>confdefs.h <<_ACEOF
  12890. #define HAVE_GAI_STRERROR 1
  12891. _ACEOF
  12892. if true; then
  12893. HAVE_GAI_STRERROR_TRUE=
  12894. HAVE_GAI_STRERROR_FALSE='#'
  12895. else
  12896. HAVE_GAI_STRERROR_TRUE='#'
  12897. HAVE_GAI_STRERROR_FALSE=
  12898. fi
  12899. else
  12900. if false; then
  12901. HAVE_GAI_STRERROR_TRUE=
  12902. HAVE_GAI_STRERROR_FALSE='#'
  12903. else
  12904. HAVE_GAI_STRERROR_TRUE='#'
  12905. HAVE_GAI_STRERROR_FALSE=
  12906. fi
  12907. fi
  12908. done
  12909. for ac_func in getaddrinfo
  12910. do :
  12911. ac_fn_cxx_check_func "$LINENO" "getaddrinfo" "ac_cv_func_getaddrinfo"
  12912. if test "x$ac_cv_func_getaddrinfo" = x""yes; then :
  12913. cat >>confdefs.h <<_ACEOF
  12914. #define HAVE_GETADDRINFO 1
  12915. _ACEOF
  12916. if true; then
  12917. HAVE_GETADDRINFO_TRUE=
  12918. HAVE_GETADDRINFO_FALSE='#'
  12919. else
  12920. HAVE_GETADDRINFO_TRUE='#'
  12921. HAVE_GETADDRINFO_FALSE=
  12922. fi
  12923. else
  12924. if false; then
  12925. HAVE_GETADDRINFO_TRUE=
  12926. HAVE_GETADDRINFO_FALSE='#'
  12927. else
  12928. HAVE_GETADDRINFO_TRUE='#'
  12929. HAVE_GETADDRINFO_FALSE=
  12930. fi
  12931. fi
  12932. done
  12933. for ac_func in gettimeofday
  12934. do :
  12935. ac_fn_cxx_check_func "$LINENO" "gettimeofday" "ac_cv_func_gettimeofday"
  12936. if test "x$ac_cv_func_gettimeofday" = x""yes; then :
  12937. cat >>confdefs.h <<_ACEOF
  12938. #define HAVE_GETTIMEOFDAY 1
  12939. _ACEOF
  12940. if true; then
  12941. HAVE_GETTIMEOFDAY_TRUE=
  12942. HAVE_GETTIMEOFDAY_FALSE='#'
  12943. else
  12944. HAVE_GETTIMEOFDAY_TRUE='#'
  12945. HAVE_GETTIMEOFDAY_FALSE=
  12946. fi
  12947. else
  12948. if false; then
  12949. HAVE_GETTIMEOFDAY_TRUE=
  12950. HAVE_GETTIMEOFDAY_FALSE='#'
  12951. else
  12952. HAVE_GETTIMEOFDAY_TRUE='#'
  12953. HAVE_GETTIMEOFDAY_FALSE=
  12954. fi
  12955. fi
  12956. done
  12957. for ac_func in inet_aton
  12958. do :
  12959. ac_fn_cxx_check_func "$LINENO" "inet_aton" "ac_cv_func_inet_aton"
  12960. if test "x$ac_cv_func_inet_aton" = x""yes; then :
  12961. cat >>confdefs.h <<_ACEOF
  12962. #define HAVE_INET_ATON 1
  12963. _ACEOF
  12964. if true; then
  12965. HAVE_INET_ATON_TRUE=
  12966. HAVE_INET_ATON_FALSE='#'
  12967. else
  12968. HAVE_INET_ATON_TRUE='#'
  12969. HAVE_INET_ATON_FALSE=
  12970. fi
  12971. else
  12972. if false; then
  12973. HAVE_INET_ATON_TRUE=
  12974. HAVE_INET_ATON_FALSE='#'
  12975. else
  12976. HAVE_INET_ATON_TRUE='#'
  12977. HAVE_INET_ATON_FALSE=
  12978. fi
  12979. fi
  12980. done
  12981. for ac_func in localtime_r
  12982. do :
  12983. ac_fn_cxx_check_func "$LINENO" "localtime_r" "ac_cv_func_localtime_r"
  12984. if test "x$ac_cv_func_localtime_r" = x""yes; then :
  12985. cat >>confdefs.h <<_ACEOF
  12986. #define HAVE_LOCALTIME_R 1
  12987. _ACEOF
  12988. if true; then
  12989. HAVE_LOCALTIME_R_TRUE=
  12990. HAVE_LOCALTIME_R_FALSE='#'
  12991. else
  12992. HAVE_LOCALTIME_R_TRUE='#'
  12993. HAVE_LOCALTIME_R_FALSE=
  12994. fi
  12995. else
  12996. if false; then
  12997. HAVE_LOCALTIME_R_TRUE=
  12998. HAVE_LOCALTIME_R_FALSE='#'
  12999. else
  13000. HAVE_LOCALTIME_R_TRUE='#'
  13001. HAVE_LOCALTIME_R_FALSE=
  13002. fi
  13003. fi
  13004. done
  13005. for ac_func in strptime
  13006. do :
  13007. ac_fn_cxx_check_func "$LINENO" "strptime" "ac_cv_func_strptime"
  13008. if test "x$ac_cv_func_strptime" = x""yes; then :
  13009. cat >>confdefs.h <<_ACEOF
  13010. #define HAVE_STRPTIME 1
  13011. _ACEOF
  13012. if true; then
  13013. HAVE_STRPTIME_TRUE=
  13014. HAVE_STRPTIME_FALSE='#'
  13015. else
  13016. HAVE_STRPTIME_TRUE='#'
  13017. HAVE_STRPTIME_FALSE=
  13018. fi
  13019. else
  13020. if false; then
  13021. HAVE_STRPTIME_TRUE=
  13022. HAVE_STRPTIME_FALSE='#'
  13023. else
  13024. HAVE_STRPTIME_TRUE='#'
  13025. HAVE_STRPTIME_FALSE=
  13026. fi
  13027. fi
  13028. done
  13029. for ac_func in timegm
  13030. do :
  13031. ac_fn_cxx_check_func "$LINENO" "timegm" "ac_cv_func_timegm"
  13032. if test "x$ac_cv_func_timegm" = x""yes; then :
  13033. cat >>confdefs.h <<_ACEOF
  13034. #define HAVE_TIMEGM 1
  13035. _ACEOF
  13036. if true; then
  13037. HAVE_TIMEGM_TRUE=
  13038. HAVE_TIMEGM_FALSE='#'
  13039. else
  13040. HAVE_TIMEGM_TRUE='#'
  13041. HAVE_TIMEGM_FALSE=
  13042. fi
  13043. else
  13044. if false; then
  13045. HAVE_TIMEGM_TRUE=
  13046. HAVE_TIMEGM_FALSE='#'
  13047. else
  13048. HAVE_TIMEGM_TRUE='#'
  13049. HAVE_TIMEGM_FALSE=
  13050. fi
  13051. fi
  13052. done
  13053. for ac_func in daemon
  13054. do :
  13055. ac_fn_cxx_check_func "$LINENO" "daemon" "ac_cv_func_daemon"
  13056. if test "x$ac_cv_func_daemon" = x""yes; then :
  13057. cat >>confdefs.h <<_ACEOF
  13058. #define HAVE_DAEMON 1
  13059. _ACEOF
  13060. have_daemon=yes
  13061. fi
  13062. done
  13063. if test "x$have_daemon" = "xyes"; then
  13064. HAVE_DAEMON_TRUE=
  13065. HAVE_DAEMON_FALSE='#'
  13066. else
  13067. HAVE_DAEMON_TRUE='#'
  13068. HAVE_DAEMON_FALSE=
  13069. fi
  13070. case "$target" in
  13071. *mingw*)
  13072. if true; then
  13073. HAVE_GETADDRINFO_TRUE=
  13074. HAVE_GETADDRINFO_FALSE='#'
  13075. else
  13076. HAVE_GETADDRINFO_TRUE='#'
  13077. HAVE_GETADDRINFO_FALSE=
  13078. fi
  13079. if false; then
  13080. HAVE_GAI_STRERROR_TRUE=
  13081. HAVE_GAI_STRERROR_FALSE='#'
  13082. else
  13083. HAVE_GAI_STRERROR_TRUE='#'
  13084. HAVE_GAI_STRERROR_FALSE=
  13085. fi
  13086. ;;
  13087. esac
  13088. ac_fn_cxx_check_member "$LINENO" "struct sockaddr_in" "sin_len" "ac_cv_member_struct_sockaddr_in_sin_len" "#include <netinet/in.h>
  13089. "
  13090. if test "x$ac_cv_member_struct_sockaddr_in_sin_len" = x""yes; then :
  13091. $as_echo "#define HAVE_SOCKADDR_IN_SIN_LEN 1" >>confdefs.h
  13092. fi
  13093. # Check struct option.name is assignable from const char*. struct
  13094. # option.name in opensolaris is of type char*. In Linux, it is const
  13095. # char*
  13096. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct option.name is assignable from const char*" >&5
  13097. $as_echo_n "checking whether struct option.name is assignable from const char*... " >&6; }
  13098. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13099. /* end confdefs.h. */
  13100. #include <unistd.h>
  13101. #include <getopt.h>
  13102. int
  13103. main ()
  13104. {
  13105. const char* s = "const char";
  13106. option op;
  13107. op.name = s;
  13108. ;
  13109. return 0;
  13110. }
  13111. _ACEOF
  13112. if ac_fn_cxx_try_compile "$LINENO"; then :
  13113. have_option_const_name=yes
  13114. else
  13115. have_option_const_name=no
  13116. fi
  13117. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  13118. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_option_const_name" >&5
  13119. $as_echo "$have_option_const_name" >&6; }
  13120. if test "x$have_option_const_name" = "xyes"; then
  13121. $as_echo "#define HAVE_OPTION_CONST_NAME 1" >>confdefs.h
  13122. fi
  13123. ac_config_files="$ac_config_files Makefile src/Makefile test/Makefile po/Makefile.in intl/Makefile lib/Makefile doc/Makefile"
  13124. cat >confcache <<\_ACEOF
  13125. # This file is a shell script that caches the results of configure
  13126. # tests run on this system so they can be shared between configure
  13127. # scripts and configure runs, see configure's option --config-cache.
  13128. # It is not useful on other systems. If it contains results you don't
  13129. # want to keep, you may remove or edit it.
  13130. #
  13131. # config.status only pays attention to the cache file if you give it
  13132. # the --recheck option to rerun configure.
  13133. #
  13134. # `ac_cv_env_foo' variables (set or unset) will be overridden when
  13135. # loading this file, other *unset* `ac_cv_foo' will be assigned the
  13136. # following values.
  13137. _ACEOF
  13138. # The following way of writing the cache mishandles newlines in values,
  13139. # but we know of no workaround that is simple, portable, and efficient.
  13140. # So, we kill variables containing newlines.
  13141. # Ultrix sh set writes to stderr and can't be redirected directly,
  13142. # and sets the high bit in the cache file unless we assign to the vars.
  13143. (
  13144. for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
  13145. eval ac_val=\$$ac_var
  13146. case $ac_val in #(
  13147. *${as_nl}*)
  13148. case $ac_var in #(
  13149. *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
  13150. $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
  13151. esac
  13152. case $ac_var in #(
  13153. _ | IFS | as_nl) ;; #(
  13154. BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
  13155. *) { eval $ac_var=; unset $ac_var;} ;;
  13156. esac ;;
  13157. esac
  13158. done
  13159. (set) 2>&1 |
  13160. case $as_nl`(ac_space=' '; set) 2>&1` in #(
  13161. *${as_nl}ac_space=\ *)
  13162. # `set' does not quote correctly, so add quotes: double-quote
  13163. # substitution turns \\\\ into \\, and sed turns \\ into \.
  13164. sed -n \
  13165. "s/'/'\\\\''/g;
  13166. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
  13167. ;; #(
  13168. *)
  13169. # `set' quotes correctly as required by POSIX, so do not add quotes.
  13170. sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
  13171. ;;
  13172. esac |
  13173. sort
  13174. ) |
  13175. sed '
  13176. /^ac_cv_env_/b end
  13177. t clear
  13178. :clear
  13179. s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
  13180. t end
  13181. s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
  13182. :end' >>confcache
  13183. if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
  13184. if test -w "$cache_file"; then
  13185. test "x$cache_file" != "x/dev/null" &&
  13186. { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
  13187. $as_echo "$as_me: updating cache $cache_file" >&6;}
  13188. cat confcache >$cache_file
  13189. else
  13190. { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
  13191. $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
  13192. fi
  13193. fi
  13194. rm -f confcache
  13195. test "x$prefix" = xNONE && prefix=$ac_default_prefix
  13196. # Let make expand exec_prefix.
  13197. test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
  13198. DEFS=-DHAVE_CONFIG_H
  13199. ac_libobjs=
  13200. ac_ltlibobjs=
  13201. for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
  13202. # 1. Remove the extension, and $U if already installed.
  13203. ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
  13204. ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
  13205. # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
  13206. # will be set to the directory where LIBOBJS objects are built.
  13207. as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
  13208. as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
  13209. done
  13210. LIBOBJS=$ac_libobjs
  13211. LTLIBOBJS=$ac_ltlibobjs
  13212. if test -n "$EXEEXT"; then
  13213. am__EXEEXT_TRUE=
  13214. am__EXEEXT_FALSE='#'
  13215. else
  13216. am__EXEEXT_TRUE='#'
  13217. am__EXEEXT_FALSE=
  13218. fi
  13219. if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
  13220. as_fn_error "conditional \"AMDEP\" was never defined.
  13221. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  13222. fi
  13223. if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
  13224. as_fn_error "conditional \"am__fastdepCXX\" was never defined.
  13225. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  13226. fi
  13227. if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
  13228. as_fn_error "conditional \"am__fastdepCC\" was never defined.
  13229. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  13230. fi
  13231. if test -z "${ENABLE_SSL_TRUE}" && test -z "${ENABLE_SSL_FALSE}"; then
  13232. as_fn_error "conditional \"ENABLE_SSL\" was never defined.
  13233. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  13234. fi
  13235. if test -z "${ENABLE_SSL_TRUE}" && test -z "${ENABLE_SSL_FALSE}"; then
  13236. as_fn_error "conditional \"ENABLE_SSL\" was never defined.
  13237. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  13238. fi
  13239. if test -z "${HAVE_LIBGNUTLS_TRUE}" && test -z "${HAVE_LIBGNUTLS_FALSE}"; then
  13240. as_fn_error "conditional \"HAVE_LIBGNUTLS\" was never defined.
  13241. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  13242. fi
  13243. if test -z "${HAVE_LIBSSL_TRUE}" && test -z "${HAVE_LIBSSL_FALSE}"; then
  13244. as_fn_error "conditional \"HAVE_LIBSSL\" was never defined.
  13245. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  13246. fi
  13247. if test -z "${ENABLE_MESSAGE_DIGEST_TRUE}" && test -z "${ENABLE_MESSAGE_DIGEST_FALSE}"; then
  13248. as_fn_error "conditional \"ENABLE_MESSAGE_DIGEST\" was never defined.
  13249. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  13250. fi
  13251. if test -z "${ENABLE_MESSAGE_DIGEST_TRUE}" && test -z "${ENABLE_MESSAGE_DIGEST_FALSE}"; then
  13252. as_fn_error "conditional \"ENABLE_MESSAGE_DIGEST\" was never defined.
  13253. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  13254. fi
  13255. if test -z "${ENABLE_BITTORRENT_TRUE}" && test -z "${ENABLE_BITTORRENT_FALSE}"; then
  13256. as_fn_error "conditional \"ENABLE_BITTORRENT\" was never defined.
  13257. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  13258. fi
  13259. if test -z "${ENABLE_BITTORRENT_TRUE}" && test -z "${ENABLE_BITTORRENT_FALSE}"; then
  13260. as_fn_error "conditional \"ENABLE_BITTORRENT\" was never defined.
  13261. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  13262. fi
  13263. if test -z "${ENABLE_METALINK_TRUE}" && test -z "${ENABLE_METALINK_FALSE}"; then
  13264. as_fn_error "conditional \"ENABLE_METALINK\" was never defined.
  13265. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  13266. fi
  13267. if test -z "${ENABLE_METALINK_TRUE}" && test -z "${ENABLE_METALINK_FALSE}"; then
  13268. as_fn_error "conditional \"ENABLE_METALINK\" was never defined.
  13269. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  13270. fi
  13271. if test -z "${ENABLE_METALINK_LIBXML2_TRUE}" && test -z "${ENABLE_METALINK_LIBXML2_FALSE}"; then
  13272. as_fn_error "conditional \"ENABLE_METALINK_LIBXML2\" was never defined.
  13273. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  13274. fi
  13275. if test -z "${ENABLE_METALINK_LIBEXPAT_TRUE}" && test -z "${ENABLE_METALINK_LIBEXPAT_FALSE}"; then
  13276. as_fn_error "conditional \"ENABLE_METALINK_LIBEXPAT\" was never defined.
  13277. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  13278. fi
  13279. if test -z "${ENABLE_XML_RPC_TRUE}" && test -z "${ENABLE_XML_RPC_FALSE}"; then
  13280. as_fn_error "conditional \"ENABLE_XML_RPC\" was never defined.
  13281. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  13282. fi
  13283. if test -z "${HAVE_LIBXML2_TRUE}" && test -z "${HAVE_LIBXML2_FALSE}"; then
  13284. as_fn_error "conditional \"HAVE_LIBXML2\" was never defined.
  13285. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  13286. fi
  13287. if test -z "${HAVE_LIBEXPAT_TRUE}" && test -z "${HAVE_LIBEXPAT_FALSE}"; then
  13288. as_fn_error "conditional \"HAVE_LIBEXPAT\" was never defined.
  13289. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  13290. fi
  13291. if test -z "${ENABLE_ASYNC_DNS_TRUE}" && test -z "${ENABLE_ASYNC_DNS_FALSE}"; then
  13292. as_fn_error "conditional \"ENABLE_ASYNC_DNS\" was never defined.
  13293. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  13294. fi
  13295. if test -z "${ENABLE_ASYNC_DNS_TRUE}" && test -z "${ENABLE_ASYNC_DNS_FALSE}"; then
  13296. as_fn_error "conditional \"ENABLE_ASYNC_DNS\" was never defined.
  13297. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  13298. fi
  13299. if test -z "${HAVE_LIBZ_TRUE}" && test -z "${HAVE_LIBZ_FALSE}"; then
  13300. as_fn_error "conditional \"HAVE_LIBZ\" was never defined.
  13301. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  13302. fi
  13303. if test -z "${HAVE_SQLITE3_TRUE}" && test -z "${HAVE_SQLITE3_FALSE}"; then
  13304. as_fn_error "conditional \"HAVE_SQLITE3\" was never defined.
  13305. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  13306. fi
  13307. if test -z "${HAVE_EPOLL_TRUE}" && test -z "${HAVE_EPOLL_FALSE}"; then
  13308. as_fn_error "conditional \"HAVE_EPOLL\" was never defined.
  13309. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  13310. fi
  13311. if test -z "${HAVE_POSIX_FALLOCATE_TRUE}" && test -z "${HAVE_POSIX_FALLOCATE_FALSE}"; then
  13312. as_fn_error "conditional \"HAVE_POSIX_FALLOCATE\" was never defined.
  13313. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  13314. fi
  13315. if test -z "${HAVE_ASCTIME_R_TRUE}" && test -z "${HAVE_ASCTIME_R_FALSE}"; then
  13316. as_fn_error "conditional \"HAVE_ASCTIME_R\" was never defined.
  13317. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  13318. fi
  13319. if test -z "${HAVE_ASCTIME_R_TRUE}" && test -z "${HAVE_ASCTIME_R_FALSE}"; then
  13320. as_fn_error "conditional \"HAVE_ASCTIME_R\" was never defined.
  13321. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  13322. fi
  13323. if test -z "${HAVE_BASENAME_TRUE}" && test -z "${HAVE_BASENAME_FALSE}"; then
  13324. as_fn_error "conditional \"HAVE_BASENAME\" was never defined.
  13325. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  13326. fi
  13327. if test -z "${HAVE_BASENAME_TRUE}" && test -z "${HAVE_BASENAME_FALSE}"; then
  13328. as_fn_error "conditional \"HAVE_BASENAME\" was never defined.
  13329. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  13330. fi
  13331. if test -z "${HAVE_GAI_STRERROR_TRUE}" && test -z "${HAVE_GAI_STRERROR_FALSE}"; then
  13332. as_fn_error "conditional \"HAVE_GAI_STRERROR\" was never defined.
  13333. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  13334. fi
  13335. if test -z "${HAVE_GAI_STRERROR_TRUE}" && test -z "${HAVE_GAI_STRERROR_FALSE}"; then
  13336. as_fn_error "conditional \"HAVE_GAI_STRERROR\" was never defined.
  13337. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  13338. fi
  13339. if test -z "${HAVE_GETADDRINFO_TRUE}" && test -z "${HAVE_GETADDRINFO_FALSE}"; then
  13340. as_fn_error "conditional \"HAVE_GETADDRINFO\" was never defined.
  13341. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  13342. fi
  13343. if test -z "${HAVE_GETADDRINFO_TRUE}" && test -z "${HAVE_GETADDRINFO_FALSE}"; then
  13344. as_fn_error "conditional \"HAVE_GETADDRINFO\" was never defined.
  13345. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  13346. fi
  13347. if test -z "${HAVE_GETTIMEOFDAY_TRUE}" && test -z "${HAVE_GETTIMEOFDAY_FALSE}"; then
  13348. as_fn_error "conditional \"HAVE_GETTIMEOFDAY\" was never defined.
  13349. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  13350. fi
  13351. if test -z "${HAVE_GETTIMEOFDAY_TRUE}" && test -z "${HAVE_GETTIMEOFDAY_FALSE}"; then
  13352. as_fn_error "conditional \"HAVE_GETTIMEOFDAY\" was never defined.
  13353. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  13354. fi
  13355. if test -z "${HAVE_INET_ATON_TRUE}" && test -z "${HAVE_INET_ATON_FALSE}"; then
  13356. as_fn_error "conditional \"HAVE_INET_ATON\" was never defined.
  13357. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  13358. fi
  13359. if test -z "${HAVE_INET_ATON_TRUE}" && test -z "${HAVE_INET_ATON_FALSE}"; then
  13360. as_fn_error "conditional \"HAVE_INET_ATON\" was never defined.
  13361. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  13362. fi
  13363. if test -z "${HAVE_LOCALTIME_R_TRUE}" && test -z "${HAVE_LOCALTIME_R_FALSE}"; then
  13364. as_fn_error "conditional \"HAVE_LOCALTIME_R\" was never defined.
  13365. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  13366. fi
  13367. if test -z "${HAVE_LOCALTIME_R_TRUE}" && test -z "${HAVE_LOCALTIME_R_FALSE}"; then
  13368. as_fn_error "conditional \"HAVE_LOCALTIME_R\" was never defined.
  13369. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  13370. fi
  13371. if test -z "${HAVE_STRPTIME_TRUE}" && test -z "${HAVE_STRPTIME_FALSE}"; then
  13372. as_fn_error "conditional \"HAVE_STRPTIME\" was never defined.
  13373. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  13374. fi
  13375. if test -z "${HAVE_STRPTIME_TRUE}" && test -z "${HAVE_STRPTIME_FALSE}"; then
  13376. as_fn_error "conditional \"HAVE_STRPTIME\" was never defined.
  13377. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  13378. fi
  13379. if test -z "${HAVE_TIMEGM_TRUE}" && test -z "${HAVE_TIMEGM_FALSE}"; then
  13380. as_fn_error "conditional \"HAVE_TIMEGM\" was never defined.
  13381. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  13382. fi
  13383. if test -z "${HAVE_TIMEGM_TRUE}" && test -z "${HAVE_TIMEGM_FALSE}"; then
  13384. as_fn_error "conditional \"HAVE_TIMEGM\" was never defined.
  13385. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  13386. fi
  13387. if test -z "${HAVE_DAEMON_TRUE}" && test -z "${HAVE_DAEMON_FALSE}"; then
  13388. as_fn_error "conditional \"HAVE_DAEMON\" was never defined.
  13389. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  13390. fi
  13391. if test -z "${HAVE_GETADDRINFO_TRUE}" && test -z "${HAVE_GETADDRINFO_FALSE}"; then
  13392. as_fn_error "conditional \"HAVE_GETADDRINFO\" was never defined.
  13393. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  13394. fi
  13395. if test -z "${HAVE_GAI_STRERROR_TRUE}" && test -z "${HAVE_GAI_STRERROR_FALSE}"; then
  13396. as_fn_error "conditional \"HAVE_GAI_STRERROR\" was never defined.
  13397. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  13398. fi
  13399. : ${CONFIG_STATUS=./config.status}
  13400. ac_write_fail=0
  13401. ac_clean_files_save=$ac_clean_files
  13402. ac_clean_files="$ac_clean_files $CONFIG_STATUS"
  13403. { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
  13404. $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
  13405. as_write_fail=0
  13406. cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
  13407. #! $SHELL
  13408. # Generated by $as_me.
  13409. # Run this file to recreate the current configuration.
  13410. # Compiler output produced by configure, useful for debugging
  13411. # configure, is in config.log if it exists.
  13412. debug=false
  13413. ac_cs_recheck=false
  13414. ac_cs_silent=false
  13415. SHELL=\${CONFIG_SHELL-$SHELL}
  13416. export SHELL
  13417. _ASEOF
  13418. cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
  13419. ## -------------------- ##
  13420. ## M4sh Initialization. ##
  13421. ## -------------------- ##
  13422. # Be more Bourne compatible
  13423. DUALCASE=1; export DUALCASE # for MKS sh
  13424. if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
  13425. emulate sh
  13426. NULLCMD=:
  13427. # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
  13428. # is contrary to our usage. Disable this feature.
  13429. alias -g '${1+"$@"}'='"$@"'
  13430. setopt NO_GLOB_SUBST
  13431. else
  13432. case `(set -o) 2>/dev/null` in #(
  13433. *posix*) :
  13434. set -o posix ;; #(
  13435. *) :
  13436. ;;
  13437. esac
  13438. fi
  13439. as_nl='
  13440. '
  13441. export as_nl
  13442. # Printing a long string crashes Solaris 7 /usr/bin/printf.
  13443. as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
  13444. as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
  13445. as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
  13446. # Prefer a ksh shell builtin over an external printf program on Solaris,
  13447. # but without wasting forks for bash or zsh.
  13448. if test -z "$BASH_VERSION$ZSH_VERSION" \
  13449. && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
  13450. as_echo='print -r --'
  13451. as_echo_n='print -rn --'
  13452. elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
  13453. as_echo='printf %s\n'
  13454. as_echo_n='printf %s'
  13455. else
  13456. if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
  13457. as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
  13458. as_echo_n='/usr/ucb/echo -n'
  13459. else
  13460. as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
  13461. as_echo_n_body='eval
  13462. arg=$1;
  13463. case $arg in #(
  13464. *"$as_nl"*)
  13465. expr "X$arg" : "X\\(.*\\)$as_nl";
  13466. arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
  13467. esac;
  13468. expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
  13469. '
  13470. export as_echo_n_body
  13471. as_echo_n='sh -c $as_echo_n_body as_echo'
  13472. fi
  13473. export as_echo_body
  13474. as_echo='sh -c $as_echo_body as_echo'
  13475. fi
  13476. # The user is always right.
  13477. if test "${PATH_SEPARATOR+set}" != set; then
  13478. PATH_SEPARATOR=:
  13479. (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
  13480. (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
  13481. PATH_SEPARATOR=';'
  13482. }
  13483. fi
  13484. # IFS
  13485. # We need space, tab and new line, in precisely that order. Quoting is
  13486. # there to prevent editors from complaining about space-tab.
  13487. # (If _AS_PATH_WALK were called with IFS unset, it would disable word
  13488. # splitting by setting IFS to empty value.)
  13489. IFS=" "" $as_nl"
  13490. # Find who we are. Look in the path if we contain no directory separator.
  13491. case $0 in #((
  13492. *[\\/]* ) as_myself=$0 ;;
  13493. *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  13494. for as_dir in $PATH
  13495. do
  13496. IFS=$as_save_IFS
  13497. test -z "$as_dir" && as_dir=.
  13498. test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
  13499. done
  13500. IFS=$as_save_IFS
  13501. ;;
  13502. esac
  13503. # We did not find ourselves, most probably we were run as `sh COMMAND'
  13504. # in which case we are not to be found in the path.
  13505. if test "x$as_myself" = x; then
  13506. as_myself=$0
  13507. fi
  13508. if test ! -f "$as_myself"; then
  13509. $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
  13510. exit 1
  13511. fi
  13512. # Unset variables that we do not need and which cause bugs (e.g. in
  13513. # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
  13514. # suppresses any "Segmentation fault" message there. '((' could
  13515. # trigger a bug in pdksh 5.2.14.
  13516. for as_var in BASH_ENV ENV MAIL MAILPATH
  13517. do eval test x\${$as_var+set} = xset \
  13518. && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
  13519. done
  13520. PS1='$ '
  13521. PS2='> '
  13522. PS4='+ '
  13523. # NLS nuisances.
  13524. LC_ALL=C
  13525. export LC_ALL
  13526. LANGUAGE=C
  13527. export LANGUAGE
  13528. # CDPATH.
  13529. (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
  13530. # as_fn_error ERROR [LINENO LOG_FD]
  13531. # ---------------------------------
  13532. # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
  13533. # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
  13534. # script with status $?, using 1 if that was 0.
  13535. as_fn_error ()
  13536. {
  13537. as_status=$?; test $as_status -eq 0 && as_status=1
  13538. if test "$3"; then
  13539. as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  13540. $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
  13541. fi
  13542. $as_echo "$as_me: error: $1" >&2
  13543. as_fn_exit $as_status
  13544. } # as_fn_error
  13545. # as_fn_set_status STATUS
  13546. # -----------------------
  13547. # Set $? to STATUS, without forking.
  13548. as_fn_set_status ()
  13549. {
  13550. return $1
  13551. } # as_fn_set_status
  13552. # as_fn_exit STATUS
  13553. # -----------------
  13554. # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
  13555. as_fn_exit ()
  13556. {
  13557. set +e
  13558. as_fn_set_status $1
  13559. exit $1
  13560. } # as_fn_exit
  13561. # as_fn_unset VAR
  13562. # ---------------
  13563. # Portably unset VAR.
  13564. as_fn_unset ()
  13565. {
  13566. { eval $1=; unset $1;}
  13567. }
  13568. as_unset=as_fn_unset
  13569. # as_fn_append VAR VALUE
  13570. # ----------------------
  13571. # Append the text in VALUE to the end of the definition contained in VAR. Take
  13572. # advantage of any shell optimizations that allow amortized linear growth over
  13573. # repeated appends, instead of the typical quadratic growth present in naive
  13574. # implementations.
  13575. if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
  13576. eval 'as_fn_append ()
  13577. {
  13578. eval $1+=\$2
  13579. }'
  13580. else
  13581. as_fn_append ()
  13582. {
  13583. eval $1=\$$1\$2
  13584. }
  13585. fi # as_fn_append
  13586. # as_fn_arith ARG...
  13587. # ------------------
  13588. # Perform arithmetic evaluation on the ARGs, and store the result in the
  13589. # global $as_val. Take advantage of shells that can avoid forks. The arguments
  13590. # must be portable across $(()) and expr.
  13591. if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
  13592. eval 'as_fn_arith ()
  13593. {
  13594. as_val=$(( $* ))
  13595. }'
  13596. else
  13597. as_fn_arith ()
  13598. {
  13599. as_val=`expr "$@" || test $? -eq 1`
  13600. }
  13601. fi # as_fn_arith
  13602. if expr a : '\(a\)' >/dev/null 2>&1 &&
  13603. test "X`expr 00001 : '.*\(...\)'`" = X001; then
  13604. as_expr=expr
  13605. else
  13606. as_expr=false
  13607. fi
  13608. if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
  13609. as_basename=basename
  13610. else
  13611. as_basename=false
  13612. fi
  13613. if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
  13614. as_dirname=dirname
  13615. else
  13616. as_dirname=false
  13617. fi
  13618. as_me=`$as_basename -- "$0" ||
  13619. $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
  13620. X"$0" : 'X\(//\)$' \| \
  13621. X"$0" : 'X\(/\)' \| . 2>/dev/null ||
  13622. $as_echo X/"$0" |
  13623. sed '/^.*\/\([^/][^/]*\)\/*$/{
  13624. s//\1/
  13625. q
  13626. }
  13627. /^X\/\(\/\/\)$/{
  13628. s//\1/
  13629. q
  13630. }
  13631. /^X\/\(\/\).*/{
  13632. s//\1/
  13633. q
  13634. }
  13635. s/.*/./; q'`
  13636. # Avoid depending upon Character Ranges.
  13637. as_cr_letters='abcdefghijklmnopqrstuvwxyz'
  13638. as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
  13639. as_cr_Letters=$as_cr_letters$as_cr_LETTERS
  13640. as_cr_digits='0123456789'
  13641. as_cr_alnum=$as_cr_Letters$as_cr_digits
  13642. ECHO_C= ECHO_N= ECHO_T=
  13643. case `echo -n x` in #(((((
  13644. -n*)
  13645. case `echo 'xy\c'` in
  13646. *c*) ECHO_T=' ';; # ECHO_T is single tab character.
  13647. xy) ECHO_C='\c';;
  13648. *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
  13649. ECHO_T=' ';;
  13650. esac;;
  13651. *)
  13652. ECHO_N='-n';;
  13653. esac
  13654. rm -f conf$$ conf$$.exe conf$$.file
  13655. if test -d conf$$.dir; then
  13656. rm -f conf$$.dir/conf$$.file
  13657. else
  13658. rm -f conf$$.dir
  13659. mkdir conf$$.dir 2>/dev/null
  13660. fi
  13661. if (echo >conf$$.file) 2>/dev/null; then
  13662. if ln -s conf$$.file conf$$ 2>/dev/null; then
  13663. as_ln_s='ln -s'
  13664. # ... but there are two gotchas:
  13665. # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
  13666. # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
  13667. # In both cases, we have to default to `cp -p'.
  13668. ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
  13669. as_ln_s='cp -p'
  13670. elif ln conf$$.file conf$$ 2>/dev/null; then
  13671. as_ln_s=ln
  13672. else
  13673. as_ln_s='cp -p'
  13674. fi
  13675. else
  13676. as_ln_s='cp -p'
  13677. fi
  13678. rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
  13679. rmdir conf$$.dir 2>/dev/null
  13680. # as_fn_mkdir_p
  13681. # -------------
  13682. # Create "$as_dir" as a directory, including parents if necessary.
  13683. as_fn_mkdir_p ()
  13684. {
  13685. case $as_dir in #(
  13686. -*) as_dir=./$as_dir;;
  13687. esac
  13688. test -d "$as_dir" || eval $as_mkdir_p || {
  13689. as_dirs=
  13690. while :; do
  13691. case $as_dir in #(
  13692. *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
  13693. *) as_qdir=$as_dir;;
  13694. esac
  13695. as_dirs="'$as_qdir' $as_dirs"
  13696. as_dir=`$as_dirname -- "$as_dir" ||
  13697. $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  13698. X"$as_dir" : 'X\(//\)[^/]' \| \
  13699. X"$as_dir" : 'X\(//\)$' \| \
  13700. X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
  13701. $as_echo X"$as_dir" |
  13702. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  13703. s//\1/
  13704. q
  13705. }
  13706. /^X\(\/\/\)[^/].*/{
  13707. s//\1/
  13708. q
  13709. }
  13710. /^X\(\/\/\)$/{
  13711. s//\1/
  13712. q
  13713. }
  13714. /^X\(\/\).*/{
  13715. s//\1/
  13716. q
  13717. }
  13718. s/.*/./; q'`
  13719. test -d "$as_dir" && break
  13720. done
  13721. test -z "$as_dirs" || eval "mkdir $as_dirs"
  13722. } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
  13723. } # as_fn_mkdir_p
  13724. if mkdir -p . 2>/dev/null; then
  13725. as_mkdir_p='mkdir -p "$as_dir"'
  13726. else
  13727. test -d ./-p && rmdir ./-p
  13728. as_mkdir_p=false
  13729. fi
  13730. if test -x / >/dev/null 2>&1; then
  13731. as_test_x='test -x'
  13732. else
  13733. if ls -dL / >/dev/null 2>&1; then
  13734. as_ls_L_option=L
  13735. else
  13736. as_ls_L_option=
  13737. fi
  13738. as_test_x='
  13739. eval sh -c '\''
  13740. if test -d "$1"; then
  13741. test -d "$1/.";
  13742. else
  13743. case $1 in #(
  13744. -*)set "./$1";;
  13745. esac;
  13746. case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
  13747. ???[sx]*):;;*)false;;esac;fi
  13748. '\'' sh
  13749. '
  13750. fi
  13751. as_executable_p=$as_test_x
  13752. # Sed expression to map a string onto a valid CPP name.
  13753. as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
  13754. # Sed expression to map a string onto a valid variable name.
  13755. as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
  13756. exec 6>&1
  13757. ## ----------------------------------- ##
  13758. ## Main body of $CONFIG_STATUS script. ##
  13759. ## ----------------------------------- ##
  13760. _ASEOF
  13761. test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
  13762. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  13763. # Save the log message, to keep $0 and so on meaningful, and to
  13764. # report actual input values of CONFIG_FILES etc. instead of their
  13765. # values after options handling.
  13766. ac_log="
  13767. This file was extended by aria2 $as_me 1.7.1, which was
  13768. generated by GNU Autoconf 2.64. Invocation command line was
  13769. CONFIG_FILES = $CONFIG_FILES
  13770. CONFIG_HEADERS = $CONFIG_HEADERS
  13771. CONFIG_LINKS = $CONFIG_LINKS
  13772. CONFIG_COMMANDS = $CONFIG_COMMANDS
  13773. $ $0 $@
  13774. on `(hostname || uname -n) 2>/dev/null | sed 1q`
  13775. "
  13776. _ACEOF
  13777. case $ac_config_files in *"
  13778. "*) set x $ac_config_files; shift; ac_config_files=$*;;
  13779. esac
  13780. case $ac_config_headers in *"
  13781. "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
  13782. esac
  13783. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  13784. # Files that config.status was made for.
  13785. config_files="$ac_config_files"
  13786. config_headers="$ac_config_headers"
  13787. config_commands="$ac_config_commands"
  13788. _ACEOF
  13789. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  13790. ac_cs_usage="\
  13791. \`$as_me' instantiates files and other configuration actions
  13792. from templates according to the current configuration. Unless the files
  13793. and actions are specified as TAGs, all are instantiated by default.
  13794. Usage: $0 [OPTION]... [TAG]...
  13795. -h, --help print this help, then exit
  13796. -V, --version print version number and configuration settings, then exit
  13797. -q, --quiet, --silent
  13798. do not print progress messages
  13799. -d, --debug don't remove temporary files
  13800. --recheck update $as_me by reconfiguring in the same conditions
  13801. --file=FILE[:TEMPLATE]
  13802. instantiate the configuration file FILE
  13803. --header=FILE[:TEMPLATE]
  13804. instantiate the configuration header FILE
  13805. Configuration files:
  13806. $config_files
  13807. Configuration headers:
  13808. $config_headers
  13809. Configuration commands:
  13810. $config_commands
  13811. Report bugs to <t-tujikawa@users.sourceforge.net>.
  13812. aria2 home page: <http://aria2.sourceforge.net/>."
  13813. _ACEOF
  13814. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  13815. ac_cs_version="\\
  13816. aria2 config.status 1.7.1
  13817. configured by $0, generated by GNU Autoconf 2.64,
  13818. with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
  13819. Copyright (C) 2009 Free Software Foundation, Inc.
  13820. This config.status script is free software; the Free Software Foundation
  13821. gives unlimited permission to copy, distribute and modify it."
  13822. ac_pwd='$ac_pwd'
  13823. srcdir='$srcdir'
  13824. INSTALL='$INSTALL'
  13825. MKDIR_P='$MKDIR_P'
  13826. AWK='$AWK'
  13827. test -n "\$AWK" || AWK=awk
  13828. _ACEOF
  13829. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  13830. # The default lists apply if the user does not specify any file.
  13831. ac_need_defaults=:
  13832. while test $# != 0
  13833. do
  13834. case $1 in
  13835. --*=*)
  13836. ac_option=`expr "X$1" : 'X\([^=]*\)='`
  13837. ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
  13838. ac_shift=:
  13839. ;;
  13840. *)
  13841. ac_option=$1
  13842. ac_optarg=$2
  13843. ac_shift=shift
  13844. ;;
  13845. esac
  13846. case $ac_option in
  13847. # Handling of the options.
  13848. -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
  13849. ac_cs_recheck=: ;;
  13850. --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
  13851. $as_echo "$ac_cs_version"; exit ;;
  13852. --debug | --debu | --deb | --de | --d | -d )
  13853. debug=: ;;
  13854. --file | --fil | --fi | --f )
  13855. $ac_shift
  13856. case $ac_optarg in
  13857. *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
  13858. esac
  13859. as_fn_append CONFIG_FILES " '$ac_optarg'"
  13860. ac_need_defaults=false;;
  13861. --header | --heade | --head | --hea )
  13862. $ac_shift
  13863. case $ac_optarg in
  13864. *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
  13865. esac
  13866. as_fn_append CONFIG_HEADERS " '$ac_optarg'"
  13867. ac_need_defaults=false;;
  13868. --he | --h)
  13869. # Conflict between --help and --header
  13870. as_fn_error "ambiguous option: \`$1'
  13871. Try \`$0 --help' for more information.";;
  13872. --help | --hel | -h )
  13873. $as_echo "$ac_cs_usage"; exit ;;
  13874. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  13875. | -silent | --silent | --silen | --sile | --sil | --si | --s)
  13876. ac_cs_silent=: ;;
  13877. # This is an error.
  13878. -*) as_fn_error "unrecognized option: \`$1'
  13879. Try \`$0 --help' for more information." ;;
  13880. *) as_fn_append ac_config_targets " $1"
  13881. ac_need_defaults=false ;;
  13882. esac
  13883. shift
  13884. done
  13885. ac_configure_extra_args=
  13886. if $ac_cs_silent; then
  13887. exec 6>/dev/null
  13888. ac_configure_extra_args="$ac_configure_extra_args --silent"
  13889. fi
  13890. _ACEOF
  13891. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  13892. if \$ac_cs_recheck; then
  13893. set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
  13894. shift
  13895. \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
  13896. CONFIG_SHELL='$SHELL'
  13897. export CONFIG_SHELL
  13898. exec "\$@"
  13899. fi
  13900. _ACEOF
  13901. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  13902. exec 5>>config.log
  13903. {
  13904. echo
  13905. sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
  13906. ## Running $as_me. ##
  13907. _ASBOX
  13908. $as_echo "$ac_log"
  13909. } >&5
  13910. _ACEOF
  13911. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  13912. #
  13913. # INIT-COMMANDS
  13914. #
  13915. AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
  13916. # Capture the value of obsolete ALL_LINGUAS because we need it to compute
  13917. # POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES, CATALOGS. But hide it
  13918. # from automake < 1.5.
  13919. eval 'OBSOLETE_ALL_LINGUAS''="$ALL_LINGUAS"'
  13920. # Capture the value of LINGUAS because we need it to compute CATALOGS.
  13921. LINGUAS="${LINGUAS-%UNSET%}"
  13922. _ACEOF
  13923. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  13924. # Handling of arguments.
  13925. for ac_config_target in $ac_config_targets
  13926. do
  13927. case $ac_config_target in
  13928. "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
  13929. "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
  13930. "po-directories") CONFIG_COMMANDS="$CONFIG_COMMANDS po-directories" ;;
  13931. "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
  13932. "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
  13933. "test/Makefile") CONFIG_FILES="$CONFIG_FILES test/Makefile" ;;
  13934. "po/Makefile.in") CONFIG_FILES="$CONFIG_FILES po/Makefile.in" ;;
  13935. "intl/Makefile") CONFIG_FILES="$CONFIG_FILES intl/Makefile" ;;
  13936. "lib/Makefile") CONFIG_FILES="$CONFIG_FILES lib/Makefile" ;;
  13937. "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
  13938. *) as_fn_error "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
  13939. esac
  13940. done
  13941. # If the user did not use the arguments to specify the items to instantiate,
  13942. # then the envvar interface is used. Set only those that are not.
  13943. # We use the long form for the default assignment because of an extremely
  13944. # bizarre bug on SunOS 4.1.3.
  13945. if $ac_need_defaults; then
  13946. test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
  13947. test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
  13948. test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
  13949. fi
  13950. # Have a temporary directory for convenience. Make it in the build tree
  13951. # simply because there is no reason against having it here, and in addition,
  13952. # creating and moving files from /tmp can sometimes cause problems.
  13953. # Hook for its removal unless debugging.
  13954. # Note that there is a small window in which the directory will not be cleaned:
  13955. # after its creation but before its name has been assigned to `$tmp'.
  13956. $debug ||
  13957. {
  13958. tmp=
  13959. trap 'exit_status=$?
  13960. { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
  13961. ' 0
  13962. trap 'as_fn_exit 1' 1 2 13 15
  13963. }
  13964. # Create a (secure) tmp directory for tmp files.
  13965. {
  13966. tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
  13967. test -n "$tmp" && test -d "$tmp"
  13968. } ||
  13969. {
  13970. tmp=./conf$$-$RANDOM
  13971. (umask 077 && mkdir "$tmp")
  13972. } || as_fn_error "cannot create a temporary directory in ." "$LINENO" 5
  13973. # Set up the scripts for CONFIG_FILES section.
  13974. # No need to generate them if there are no CONFIG_FILES.
  13975. # This happens for instance with `./config.status config.h'.
  13976. if test -n "$CONFIG_FILES"; then
  13977. ac_cr=`echo X | tr X '\015'`
  13978. # On cygwin, bash can eat \r inside `` if the user requested igncr.
  13979. # But we know of no other shell where ac_cr would be empty at this
  13980. # point, so we can use a bashism as a fallback.
  13981. if test "x$ac_cr" = x; then
  13982. eval ac_cr=\$\'\\r\'
  13983. fi
  13984. ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
  13985. if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
  13986. ac_cs_awk_cr='\r'
  13987. else
  13988. ac_cs_awk_cr=$ac_cr
  13989. fi
  13990. echo 'BEGIN {' >"$tmp/subs1.awk" &&
  13991. _ACEOF
  13992. {
  13993. echo "cat >conf$$subs.awk <<_ACEOF" &&
  13994. echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
  13995. echo "_ACEOF"
  13996. } >conf$$subs.sh ||
  13997. as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
  13998. ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
  13999. ac_delim='%!_!# '
  14000. for ac_last_try in false false false false false :; do
  14001. . ./conf$$subs.sh ||
  14002. as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
  14003. ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
  14004. if test $ac_delim_n = $ac_delim_num; then
  14005. break
  14006. elif $ac_last_try; then
  14007. as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
  14008. else
  14009. ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
  14010. fi
  14011. done
  14012. rm -f conf$$subs.sh
  14013. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  14014. cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
  14015. _ACEOF
  14016. sed -n '
  14017. h
  14018. s/^/S["/; s/!.*/"]=/
  14019. p
  14020. g
  14021. s/^[^!]*!//
  14022. :repl
  14023. t repl
  14024. s/'"$ac_delim"'$//
  14025. t delim
  14026. :nl
  14027. h
  14028. s/\(.\{148\}\).*/\1/
  14029. t more1
  14030. s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
  14031. p
  14032. n
  14033. b repl
  14034. :more1
  14035. s/["\\]/\\&/g; s/^/"/; s/$/"\\/
  14036. p
  14037. g
  14038. s/.\{148\}//
  14039. t nl
  14040. :delim
  14041. h
  14042. s/\(.\{148\}\).*/\1/
  14043. t more2
  14044. s/["\\]/\\&/g; s/^/"/; s/$/"/
  14045. p
  14046. b
  14047. :more2
  14048. s/["\\]/\\&/g; s/^/"/; s/$/"\\/
  14049. p
  14050. g
  14051. s/.\{148\}//
  14052. t delim
  14053. ' <conf$$subs.awk | sed '
  14054. /^[^""]/{
  14055. N
  14056. s/\n//
  14057. }
  14058. ' >>$CONFIG_STATUS || ac_write_fail=1
  14059. rm -f conf$$subs.awk
  14060. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  14061. _ACAWK
  14062. cat >>"\$tmp/subs1.awk" <<_ACAWK &&
  14063. for (key in S) S_is_set[key] = 1
  14064. FS = ""
  14065. }
  14066. {
  14067. line = $ 0
  14068. nfields = split(line, field, "@")
  14069. substed = 0
  14070. len = length(field[1])
  14071. for (i = 2; i < nfields; i++) {
  14072. key = field[i]
  14073. keylen = length(key)
  14074. if (S_is_set[key]) {
  14075. value = S[key]
  14076. line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
  14077. len += length(value) + length(field[++i])
  14078. substed = 1
  14079. } else
  14080. len += 1 + keylen
  14081. }
  14082. print line
  14083. }
  14084. _ACAWK
  14085. _ACEOF
  14086. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  14087. if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
  14088. sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
  14089. else
  14090. cat
  14091. fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
  14092. || as_fn_error "could not setup config files machinery" "$LINENO" 5
  14093. _ACEOF
  14094. # VPATH may cause trouble with some makes, so we remove $(srcdir),
  14095. # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
  14096. # trailing colons and then remove the whole line if VPATH becomes empty
  14097. # (actually we leave an empty line to preserve line numbers).
  14098. if test "x$srcdir" = x.; then
  14099. ac_vpsub='/^[ ]*VPATH[ ]*=/{
  14100. s/:*\$(srcdir):*/:/
  14101. s/:*\${srcdir}:*/:/
  14102. s/:*@srcdir@:*/:/
  14103. s/^\([^=]*=[ ]*\):*/\1/
  14104. s/:*$//
  14105. s/^[^=]*=[ ]*$//
  14106. }'
  14107. fi
  14108. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  14109. fi # test -n "$CONFIG_FILES"
  14110. # Set up the scripts for CONFIG_HEADERS section.
  14111. # No need to generate them if there are no CONFIG_HEADERS.
  14112. # This happens for instance with `./config.status Makefile'.
  14113. if test -n "$CONFIG_HEADERS"; then
  14114. cat >"$tmp/defines.awk" <<\_ACAWK ||
  14115. BEGIN {
  14116. _ACEOF
  14117. # Transform confdefs.h into an awk script `defines.awk', embedded as
  14118. # here-document in config.status, that substitutes the proper values into
  14119. # config.h.in to produce config.h.
  14120. # Create a delimiter string that does not exist in confdefs.h, to ease
  14121. # handling of long lines.
  14122. ac_delim='%!_!# '
  14123. for ac_last_try in false false :; do
  14124. ac_t=`sed -n "/$ac_delim/p" confdefs.h`
  14125. if test -z "$ac_t"; then
  14126. break
  14127. elif $ac_last_try; then
  14128. as_fn_error "could not make $CONFIG_HEADERS" "$LINENO" 5
  14129. else
  14130. ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
  14131. fi
  14132. done
  14133. # For the awk script, D is an array of macro values keyed by name,
  14134. # likewise P contains macro parameters if any. Preserve backslash
  14135. # newline sequences.
  14136. ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
  14137. sed -n '
  14138. s/.\{148\}/&'"$ac_delim"'/g
  14139. t rset
  14140. :rset
  14141. s/^[ ]*#[ ]*define[ ][ ]*/ /
  14142. t def
  14143. d
  14144. :def
  14145. s/\\$//
  14146. t bsnl
  14147. s/["\\]/\\&/g
  14148. s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
  14149. D["\1"]=" \3"/p
  14150. s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
  14151. d
  14152. :bsnl
  14153. s/["\\]/\\&/g
  14154. s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
  14155. D["\1"]=" \3\\\\\\n"\\/p
  14156. t cont
  14157. s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
  14158. t cont
  14159. d
  14160. :cont
  14161. n
  14162. s/.\{148\}/&'"$ac_delim"'/g
  14163. t clear
  14164. :clear
  14165. s/\\$//
  14166. t bsnlc
  14167. s/["\\]/\\&/g; s/^/"/; s/$/"/p
  14168. d
  14169. :bsnlc
  14170. s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
  14171. b cont
  14172. ' <confdefs.h | sed '
  14173. s/'"$ac_delim"'/"\\\
  14174. "/g' >>$CONFIG_STATUS || ac_write_fail=1
  14175. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  14176. for (key in D) D_is_set[key] = 1
  14177. FS = ""
  14178. }
  14179. /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
  14180. line = \$ 0
  14181. split(line, arg, " ")
  14182. if (arg[1] == "#") {
  14183. defundef = arg[2]
  14184. mac1 = arg[3]
  14185. } else {
  14186. defundef = substr(arg[1], 2)
  14187. mac1 = arg[2]
  14188. }
  14189. split(mac1, mac2, "(") #)
  14190. macro = mac2[1]
  14191. prefix = substr(line, 1, index(line, defundef) - 1)
  14192. if (D_is_set[macro]) {
  14193. # Preserve the white space surrounding the "#".
  14194. print prefix "define", macro P[macro] D[macro]
  14195. next
  14196. } else {
  14197. # Replace #undef with comments. This is necessary, for example,
  14198. # in the case of _POSIX_SOURCE, which is predefined and required
  14199. # on some systems where configure will not decide to define it.
  14200. if (defundef == "undef") {
  14201. print "/*", prefix defundef, macro, "*/"
  14202. next
  14203. }
  14204. }
  14205. }
  14206. { print }
  14207. _ACAWK
  14208. _ACEOF
  14209. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  14210. as_fn_error "could not setup config headers machinery" "$LINENO" 5
  14211. fi # test -n "$CONFIG_HEADERS"
  14212. eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
  14213. shift
  14214. for ac_tag
  14215. do
  14216. case $ac_tag in
  14217. :[FHLC]) ac_mode=$ac_tag; continue;;
  14218. esac
  14219. case $ac_mode$ac_tag in
  14220. :[FHL]*:*);;
  14221. :L* | :C*:*) as_fn_error "invalid tag \`$ac_tag'" "$LINENO" 5;;
  14222. :[FH]-) ac_tag=-:-;;
  14223. :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
  14224. esac
  14225. ac_save_IFS=$IFS
  14226. IFS=:
  14227. set x $ac_tag
  14228. IFS=$ac_save_IFS
  14229. shift
  14230. ac_file=$1
  14231. shift
  14232. case $ac_mode in
  14233. :L) ac_source=$1;;
  14234. :[FH])
  14235. ac_file_inputs=
  14236. for ac_f
  14237. do
  14238. case $ac_f in
  14239. -) ac_f="$tmp/stdin";;
  14240. *) # Look for the file first in the build tree, then in the source tree
  14241. # (if the path is not absolute). The absolute path cannot be DOS-style,
  14242. # because $ac_f cannot contain `:'.
  14243. test -f "$ac_f" ||
  14244. case $ac_f in
  14245. [\\/$]*) false;;
  14246. *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
  14247. esac ||
  14248. as_fn_error "cannot find input file: \`$ac_f'" "$LINENO" 5;;
  14249. esac
  14250. case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
  14251. as_fn_append ac_file_inputs " '$ac_f'"
  14252. done
  14253. # Let's still pretend it is `configure' which instantiates (i.e., don't
  14254. # use $as_me), people would be surprised to read:
  14255. # /* config.h. Generated by config.status. */
  14256. configure_input='Generated from '`
  14257. $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
  14258. `' by configure.'
  14259. if test x"$ac_file" != x-; then
  14260. configure_input="$ac_file. $configure_input"
  14261. { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
  14262. $as_echo "$as_me: creating $ac_file" >&6;}
  14263. fi
  14264. # Neutralize special characters interpreted by sed in replacement strings.
  14265. case $configure_input in #(
  14266. *\&* | *\|* | *\\* )
  14267. ac_sed_conf_input=`$as_echo "$configure_input" |
  14268. sed 's/[\\\\&|]/\\\\&/g'`;; #(
  14269. *) ac_sed_conf_input=$configure_input;;
  14270. esac
  14271. case $ac_tag in
  14272. *:-:* | *:-) cat >"$tmp/stdin" \
  14273. || as_fn_error "could not create $ac_file" "$LINENO" 5 ;;
  14274. esac
  14275. ;;
  14276. esac
  14277. ac_dir=`$as_dirname -- "$ac_file" ||
  14278. $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  14279. X"$ac_file" : 'X\(//\)[^/]' \| \
  14280. X"$ac_file" : 'X\(//\)$' \| \
  14281. X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
  14282. $as_echo X"$ac_file" |
  14283. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  14284. s//\1/
  14285. q
  14286. }
  14287. /^X\(\/\/\)[^/].*/{
  14288. s//\1/
  14289. q
  14290. }
  14291. /^X\(\/\/\)$/{
  14292. s//\1/
  14293. q
  14294. }
  14295. /^X\(\/\).*/{
  14296. s//\1/
  14297. q
  14298. }
  14299. s/.*/./; q'`
  14300. as_dir="$ac_dir"; as_fn_mkdir_p
  14301. ac_builddir=.
  14302. case "$ac_dir" in
  14303. .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
  14304. *)
  14305. ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
  14306. # A ".." for each directory in $ac_dir_suffix.
  14307. ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
  14308. case $ac_top_builddir_sub in
  14309. "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
  14310. *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
  14311. esac ;;
  14312. esac
  14313. ac_abs_top_builddir=$ac_pwd
  14314. ac_abs_builddir=$ac_pwd$ac_dir_suffix
  14315. # for backward compatibility:
  14316. ac_top_builddir=$ac_top_build_prefix
  14317. case $srcdir in
  14318. .) # We are building in place.
  14319. ac_srcdir=.
  14320. ac_top_srcdir=$ac_top_builddir_sub
  14321. ac_abs_top_srcdir=$ac_pwd ;;
  14322. [\\/]* | ?:[\\/]* ) # Absolute name.
  14323. ac_srcdir=$srcdir$ac_dir_suffix;
  14324. ac_top_srcdir=$srcdir
  14325. ac_abs_top_srcdir=$srcdir ;;
  14326. *) # Relative name.
  14327. ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
  14328. ac_top_srcdir=$ac_top_build_prefix$srcdir
  14329. ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
  14330. esac
  14331. ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
  14332. case $ac_mode in
  14333. :F)
  14334. #
  14335. # CONFIG_FILE
  14336. #
  14337. case $INSTALL in
  14338. [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
  14339. *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
  14340. esac
  14341. ac_MKDIR_P=$MKDIR_P
  14342. case $MKDIR_P in
  14343. [\\/$]* | ?:[\\/]* ) ;;
  14344. */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
  14345. esac
  14346. _ACEOF
  14347. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  14348. # If the template does not know about datarootdir, expand it.
  14349. # FIXME: This hack should be removed a few years after 2.60.
  14350. ac_datarootdir_hack=; ac_datarootdir_seen=
  14351. ac_sed_dataroot='
  14352. /datarootdir/ {
  14353. p
  14354. q
  14355. }
  14356. /@datadir@/p
  14357. /@docdir@/p
  14358. /@infodir@/p
  14359. /@localedir@/p
  14360. /@mandir@/p'
  14361. case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
  14362. *datarootdir*) ac_datarootdir_seen=yes;;
  14363. *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
  14364. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
  14365. $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
  14366. _ACEOF
  14367. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  14368. ac_datarootdir_hack='
  14369. s&@datadir@&$datadir&g
  14370. s&@docdir@&$docdir&g
  14371. s&@infodir@&$infodir&g
  14372. s&@localedir@&$localedir&g
  14373. s&@mandir@&$mandir&g
  14374. s&\\\${datarootdir}&$datarootdir&g' ;;
  14375. esac
  14376. _ACEOF
  14377. # Neutralize VPATH when `$srcdir' = `.'.
  14378. # Shell code in configure.ac might set extrasub.
  14379. # FIXME: do we really want to maintain this feature?
  14380. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  14381. ac_sed_extra="$ac_vpsub
  14382. $extrasub
  14383. _ACEOF
  14384. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  14385. :t
  14386. /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
  14387. s|@configure_input@|$ac_sed_conf_input|;t t
  14388. s&@top_builddir@&$ac_top_builddir_sub&;t t
  14389. s&@top_build_prefix@&$ac_top_build_prefix&;t t
  14390. s&@srcdir@&$ac_srcdir&;t t
  14391. s&@abs_srcdir@&$ac_abs_srcdir&;t t
  14392. s&@top_srcdir@&$ac_top_srcdir&;t t
  14393. s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
  14394. s&@builddir@&$ac_builddir&;t t
  14395. s&@abs_builddir@&$ac_abs_builddir&;t t
  14396. s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
  14397. s&@INSTALL@&$ac_INSTALL&;t t
  14398. s&@MKDIR_P@&$ac_MKDIR_P&;t t
  14399. $ac_datarootdir_hack
  14400. "
  14401. eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
  14402. || as_fn_error "could not create $ac_file" "$LINENO" 5
  14403. test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
  14404. { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
  14405. { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
  14406. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
  14407. which seems to be undefined. Please make sure it is defined." >&5
  14408. $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
  14409. which seems to be undefined. Please make sure it is defined." >&2;}
  14410. rm -f "$tmp/stdin"
  14411. case $ac_file in
  14412. -) cat "$tmp/out" && rm -f "$tmp/out";;
  14413. *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
  14414. esac \
  14415. || as_fn_error "could not create $ac_file" "$LINENO" 5
  14416. ;;
  14417. :H)
  14418. #
  14419. # CONFIG_HEADER
  14420. #
  14421. if test x"$ac_file" != x-; then
  14422. {
  14423. $as_echo "/* $configure_input */" \
  14424. && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
  14425. } >"$tmp/config.h" \
  14426. || as_fn_error "could not create $ac_file" "$LINENO" 5
  14427. if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
  14428. { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
  14429. $as_echo "$as_me: $ac_file is unchanged" >&6;}
  14430. else
  14431. rm -f "$ac_file"
  14432. mv "$tmp/config.h" "$ac_file" \
  14433. || as_fn_error "could not create $ac_file" "$LINENO" 5
  14434. fi
  14435. else
  14436. $as_echo "/* $configure_input */" \
  14437. && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
  14438. || as_fn_error "could not create -" "$LINENO" 5
  14439. fi
  14440. # Compute "$ac_file"'s index in $config_headers.
  14441. _am_arg="$ac_file"
  14442. _am_stamp_count=1
  14443. for _am_header in $config_headers :; do
  14444. case $_am_header in
  14445. $_am_arg | $_am_arg:* )
  14446. break ;;
  14447. * )
  14448. _am_stamp_count=`expr $_am_stamp_count + 1` ;;
  14449. esac
  14450. done
  14451. echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
  14452. $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  14453. X"$_am_arg" : 'X\(//\)[^/]' \| \
  14454. X"$_am_arg" : 'X\(//\)$' \| \
  14455. X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
  14456. $as_echo X"$_am_arg" |
  14457. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  14458. s//\1/
  14459. q
  14460. }
  14461. /^X\(\/\/\)[^/].*/{
  14462. s//\1/
  14463. q
  14464. }
  14465. /^X\(\/\/\)$/{
  14466. s//\1/
  14467. q
  14468. }
  14469. /^X\(\/\).*/{
  14470. s//\1/
  14471. q
  14472. }
  14473. s/.*/./; q'`/stamp-h$_am_stamp_count
  14474. ;;
  14475. :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
  14476. $as_echo "$as_me: executing $ac_file commands" >&6;}
  14477. ;;
  14478. esac
  14479. case $ac_file$ac_mode in
  14480. "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
  14481. # Autoconf 2.62 quotes --file arguments for eval, but not when files
  14482. # are listed without --file. Let's play safe and only enable the eval
  14483. # if we detect the quoting.
  14484. case $CONFIG_FILES in
  14485. *\'*) eval set x "$CONFIG_FILES" ;;
  14486. *) set x $CONFIG_FILES ;;
  14487. esac
  14488. shift
  14489. for mf
  14490. do
  14491. # Strip MF so we end up with the name of the file.
  14492. mf=`echo "$mf" | sed -e 's/:.*$//'`
  14493. # Check whether this is an Automake generated Makefile or not.
  14494. # We used to match only the files named `Makefile.in', but
  14495. # some people rename them; so instead we look at the file content.
  14496. # Grep'ing the first line is not enough: some people post-process
  14497. # each Makefile.in and add a new line on top of each file to say so.
  14498. # Grep'ing the whole file is not good either: AIX grep has a line
  14499. # limit of 2048, but all sed's we know have understand at least 4000.
  14500. if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
  14501. dirpart=`$as_dirname -- "$mf" ||
  14502. $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  14503. X"$mf" : 'X\(//\)[^/]' \| \
  14504. X"$mf" : 'X\(//\)$' \| \
  14505. X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
  14506. $as_echo X"$mf" |
  14507. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  14508. s//\1/
  14509. q
  14510. }
  14511. /^X\(\/\/\)[^/].*/{
  14512. s//\1/
  14513. q
  14514. }
  14515. /^X\(\/\/\)$/{
  14516. s//\1/
  14517. q
  14518. }
  14519. /^X\(\/\).*/{
  14520. s//\1/
  14521. q
  14522. }
  14523. s/.*/./; q'`
  14524. else
  14525. continue
  14526. fi
  14527. # Extract the definition of DEPDIR, am__include, and am__quote
  14528. # from the Makefile without running `make'.
  14529. DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
  14530. test -z "$DEPDIR" && continue
  14531. am__include=`sed -n 's/^am__include = //p' < "$mf"`
  14532. test -z "am__include" && continue
  14533. am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
  14534. # When using ansi2knr, U may be empty or an underscore; expand it
  14535. U=`sed -n 's/^U = //p' < "$mf"`
  14536. # Find all dependency output files, they are included files with
  14537. # $(DEPDIR) in their names. We invoke sed twice because it is the
  14538. # simplest approach to changing $(DEPDIR) to its actual value in the
  14539. # expansion.
  14540. for file in `sed -n "
  14541. s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
  14542. sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
  14543. # Make sure the directory exists.
  14544. test -f "$dirpart/$file" && continue
  14545. fdir=`$as_dirname -- "$file" ||
  14546. $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  14547. X"$file" : 'X\(//\)[^/]' \| \
  14548. X"$file" : 'X\(//\)$' \| \
  14549. X"$file" : 'X\(/\)' \| . 2>/dev/null ||
  14550. $as_echo X"$file" |
  14551. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  14552. s//\1/
  14553. q
  14554. }
  14555. /^X\(\/\/\)[^/].*/{
  14556. s//\1/
  14557. q
  14558. }
  14559. /^X\(\/\/\)$/{
  14560. s//\1/
  14561. q
  14562. }
  14563. /^X\(\/\).*/{
  14564. s//\1/
  14565. q
  14566. }
  14567. s/.*/./; q'`
  14568. as_dir=$dirpart/$fdir; as_fn_mkdir_p
  14569. # echo "creating $dirpart/$file"
  14570. echo '# dummy' > "$dirpart/$file"
  14571. done
  14572. done
  14573. }
  14574. ;;
  14575. "po-directories":C)
  14576. for ac_file in $CONFIG_FILES; do
  14577. # Support "outfile[:infile[:infile...]]"
  14578. case "$ac_file" in
  14579. *:*) ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
  14580. esac
  14581. # PO directories have a Makefile.in generated from Makefile.in.in.
  14582. case "$ac_file" in */Makefile.in)
  14583. # Adjust a relative srcdir.
  14584. ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'`
  14585. ac_dir_suffix="/`echo "$ac_dir"|sed 's%^\./%%'`"
  14586. ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'`
  14587. # In autoconf-2.13 it is called $ac_given_srcdir.
  14588. # In autoconf-2.50 it is called $srcdir.
  14589. test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir"
  14590. case "$ac_given_srcdir" in
  14591. .) top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;;
  14592. /*) top_srcdir="$ac_given_srcdir" ;;
  14593. *) top_srcdir="$ac_dots$ac_given_srcdir" ;;
  14594. esac
  14595. # Treat a directory as a PO directory if and only if it has a
  14596. # POTFILES.in file. This allows packages to have multiple PO
  14597. # directories under different names or in different locations.
  14598. if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then
  14599. rm -f "$ac_dir/POTFILES"
  14600. test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES"
  14601. cat "$ac_given_srcdir/$ac_dir/POTFILES.in" | sed -e "/^#/d" -e "/^[ ]*\$/d" -e "s,.*, $top_srcdir/& \\\\," | sed -e "\$s/\(.*\) \\\\/\1/" > "$ac_dir/POTFILES"
  14602. POMAKEFILEDEPS="POTFILES.in"
  14603. # ALL_LINGUAS, POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES depend
  14604. # on $ac_dir but don't depend on user-specified configuration
  14605. # parameters.
  14606. if test -f "$ac_given_srcdir/$ac_dir/LINGUAS"; then
  14607. # The LINGUAS file contains the set of available languages.
  14608. if test -n "$OBSOLETE_ALL_LINGUAS"; then
  14609. test -n "$as_me" && echo "$as_me: setting ALL_LINGUAS in configure.in is obsolete" || echo "setting ALL_LINGUAS in configure.in is obsolete"
  14610. fi
  14611. ALL_LINGUAS_=`sed -e "/^#/d" -e "s/#.*//" "$ac_given_srcdir/$ac_dir/LINGUAS"`
  14612. # Hide the ALL_LINGUAS assigment from automake < 1.5.
  14613. eval 'ALL_LINGUAS''=$ALL_LINGUAS_'
  14614. POMAKEFILEDEPS="$POMAKEFILEDEPS LINGUAS"
  14615. else
  14616. # The set of available languages was given in configure.in.
  14617. # Hide the ALL_LINGUAS assigment from automake < 1.5.
  14618. eval 'ALL_LINGUAS''=$OBSOLETE_ALL_LINGUAS'
  14619. fi
  14620. # Compute POFILES
  14621. # as $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).po)
  14622. # Compute UPDATEPOFILES
  14623. # as $(foreach lang, $(ALL_LINGUAS), $(lang).po-update)
  14624. # Compute DUMMYPOFILES
  14625. # as $(foreach lang, $(ALL_LINGUAS), $(lang).nop)
  14626. # Compute GMOFILES
  14627. # as $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).gmo)
  14628. case "$ac_given_srcdir" in
  14629. .) srcdirpre= ;;
  14630. *) srcdirpre='$(srcdir)/' ;;
  14631. esac
  14632. POFILES=
  14633. UPDATEPOFILES=
  14634. DUMMYPOFILES=
  14635. GMOFILES=
  14636. for lang in $ALL_LINGUAS; do
  14637. POFILES="$POFILES $srcdirpre$lang.po"
  14638. UPDATEPOFILES="$UPDATEPOFILES $lang.po-update"
  14639. DUMMYPOFILES="$DUMMYPOFILES $lang.nop"
  14640. GMOFILES="$GMOFILES $srcdirpre$lang.gmo"
  14641. done
  14642. # CATALOGS depends on both $ac_dir and the user's LINGUAS
  14643. # environment variable.
  14644. INST_LINGUAS=
  14645. if test -n "$ALL_LINGUAS"; then
  14646. for presentlang in $ALL_LINGUAS; do
  14647. useit=no
  14648. if test "%UNSET%" != "$LINGUAS"; then
  14649. desiredlanguages="$LINGUAS"
  14650. else
  14651. desiredlanguages="$ALL_LINGUAS"
  14652. fi
  14653. for desiredlang in $desiredlanguages; do
  14654. # Use the presentlang catalog if desiredlang is
  14655. # a. equal to presentlang, or
  14656. # b. a variant of presentlang (because in this case,
  14657. # presentlang can be used as a fallback for messages
  14658. # which are not translated in the desiredlang catalog).
  14659. case "$desiredlang" in
  14660. "$presentlang"*) useit=yes;;
  14661. esac
  14662. done
  14663. if test $useit = yes; then
  14664. INST_LINGUAS="$INST_LINGUAS $presentlang"
  14665. fi
  14666. done
  14667. fi
  14668. CATALOGS=
  14669. if test -n "$INST_LINGUAS"; then
  14670. for lang in $INST_LINGUAS; do
  14671. CATALOGS="$CATALOGS $lang.gmo"
  14672. done
  14673. fi
  14674. test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" || echo "creating $ac_dir/Makefile"
  14675. 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"
  14676. for f in "$ac_given_srcdir/$ac_dir"/Rules-*; do
  14677. if test -f "$f"; then
  14678. case "$f" in
  14679. *.orig | *.bak | *~) ;;
  14680. *) cat "$f" >> "$ac_dir/Makefile" ;;
  14681. esac
  14682. fi
  14683. done
  14684. fi
  14685. ;;
  14686. esac
  14687. done ;;
  14688. esac
  14689. done # for ac_tag
  14690. as_fn_exit 0
  14691. _ACEOF
  14692. ac_clean_files=$ac_clean_files_save
  14693. test $ac_write_fail = 0 ||
  14694. as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5
  14695. # configure is writing to config.log, and then calls config.status.
  14696. # config.status does its own redirection, appending to config.log.
  14697. # Unfortunately, on DOS this fails, as config.log is still kept open
  14698. # by configure, so config.status won't be able to write to it; its
  14699. # output is simply discarded. So we exec the FD to /dev/null,
  14700. # effectively closing config.log, so it can be properly (re)opened and
  14701. # appended to by config.status. When coming back to configure, we
  14702. # need to make the FD available again.
  14703. if test "$no_create" != yes; then
  14704. ac_cs_success=:
  14705. ac_config_status_args=
  14706. test "$silent" = yes &&
  14707. ac_config_status_args="$ac_config_status_args --quiet"
  14708. exec 5>/dev/null
  14709. $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
  14710. exec 5>>config.log
  14711. # Use ||, not &&, to avoid exiting from the if with $? = 1, which
  14712. # would make configure fail if this is the last instruction.
  14713. $ac_cs_success || as_fn_exit $?
  14714. fi
  14715. if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
  14716. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
  14717. $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
  14718. fi
  14719. echo " "
  14720. echo "Build: $build"
  14721. echo "Target: $target"
  14722. echo "Install prefix: $prefix"
  14723. echo "CFLAGS: $CFLAGS"
  14724. echo "CPPFLAGS: $CPPFLAGS"
  14725. echo "LDFLAGS: $LDFLAGS"
  14726. echo "LIBS: $LIBS"
  14727. echo "SQLite3: $have_sqlite3"
  14728. echo "GnuTLS: $have_libgnutls"
  14729. echo "OpenSSL: $have_openssl"
  14730. echo "CA Bundle: $ca_bundle"
  14731. echo "LibXML2: $have_libxml2"
  14732. echo "LibExpat: $have_libexpat"
  14733. echo "LibCares: $have_libcares"
  14734. echo "Libz: $have_libz"
  14735. echo "Epoll: $have_epoll"
  14736. echo "Bittorrent: $enable_bittorrent"
  14737. echo "Metalink: $enable_metalink"
  14738. echo "XML-RPC: $enable_xml_rpc"