configure 471 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155815591560156115621563156415651566156715681569157015711572157315741575157615771578157915801581158215831584158515861587158815891590159115921593159415951596159715981599160016011602160316041605160616071608160916101611161216131614161516161617161816191620162116221623162416251626162716281629163016311632163316341635163616371638163916401641164216431644164516461647164816491650165116521653165416551656165716581659166016611662166316641665166616671668166916701671167216731674167516761677167816791680168116821683168416851686168716881689169016911692169316941695169616971698169917001701170217031704170517061707170817091710171117121713171417151716171717181719172017211722172317241725172617271728172917301731173217331734173517361737173817391740174117421743174417451746174717481749175017511752175317541755175617571758175917601761176217631764176517661767176817691770177117721773177417751776177717781779178017811782178317841785178617871788178917901791179217931794179517961797179817991800180118021803180418051806180718081809181018111812181318141815181618171818181918201821182218231824182518261827182818291830183118321833183418351836183718381839184018411842184318441845184618471848184918501851185218531854185518561857185818591860186118621863186418651866186718681869187018711872187318741875187618771878187918801881188218831884188518861887188818891890189118921893189418951896189718981899190019011902190319041905190619071908190919101911191219131914191519161917191819191920192119221923192419251926192719281929193019311932193319341935193619371938193919401941194219431944194519461947194819491950195119521953195419551956195719581959196019611962196319641965196619671968196919701971197219731974197519761977197819791980198119821983198419851986198719881989199019911992199319941995199619971998199920002001200220032004200520062007200820092010201120122013201420152016201720182019202020212022202320242025202620272028202920302031203220332034203520362037203820392040204120422043204420452046204720482049205020512052205320542055205620572058205920602061206220632064206520662067206820692070207120722073207420752076207720782079208020812082208320842085208620872088208920902091209220932094209520962097209820992100210121022103210421052106210721082109211021112112211321142115211621172118211921202121212221232124212521262127212821292130213121322133213421352136213721382139214021412142214321442145214621472148214921502151215221532154215521562157215821592160216121622163216421652166216721682169217021712172217321742175217621772178217921802181218221832184218521862187218821892190219121922193219421952196219721982199220022012202220322042205220622072208220922102211221222132214221522162217221822192220222122222223222422252226222722282229223022312232223322342235223622372238223922402241224222432244224522462247224822492250225122522253225422552256225722582259226022612262226322642265226622672268226922702271227222732274227522762277227822792280228122822283228422852286228722882289229022912292229322942295229622972298229923002301230223032304230523062307230823092310231123122313231423152316231723182319232023212322232323242325232623272328232923302331233223332334233523362337233823392340234123422343234423452346234723482349235023512352235323542355235623572358235923602361236223632364236523662367236823692370237123722373237423752376237723782379238023812382238323842385238623872388238923902391239223932394239523962397239823992400240124022403240424052406240724082409241024112412241324142415241624172418241924202421242224232424242524262427242824292430243124322433243424352436243724382439244024412442244324442445244624472448244924502451245224532454245524562457245824592460246124622463246424652466246724682469247024712472247324742475247624772478247924802481248224832484248524862487248824892490249124922493249424952496249724982499250025012502250325042505250625072508250925102511251225132514251525162517251825192520252125222523252425252526252725282529253025312532253325342535253625372538253925402541254225432544254525462547254825492550255125522553255425552556255725582559256025612562256325642565256625672568256925702571257225732574257525762577257825792580258125822583258425852586258725882589259025912592259325942595259625972598259926002601260226032604260526062607260826092610261126122613261426152616261726182619262026212622262326242625262626272628262926302631263226332634263526362637263826392640264126422643264426452646264726482649265026512652265326542655265626572658265926602661266226632664266526662667266826692670267126722673267426752676267726782679268026812682268326842685268626872688268926902691269226932694269526962697269826992700270127022703270427052706270727082709271027112712271327142715271627172718271927202721272227232724272527262727272827292730273127322733273427352736273727382739274027412742274327442745274627472748274927502751275227532754275527562757275827592760276127622763276427652766276727682769277027712772277327742775277627772778277927802781278227832784278527862787278827892790279127922793279427952796279727982799280028012802280328042805280628072808280928102811281228132814281528162817281828192820282128222823282428252826282728282829283028312832283328342835283628372838283928402841284228432844284528462847284828492850285128522853285428552856285728582859286028612862286328642865286628672868286928702871287228732874287528762877287828792880288128822883288428852886288728882889289028912892289328942895289628972898289929002901290229032904290529062907290829092910291129122913291429152916291729182919292029212922292329242925292629272928292929302931293229332934293529362937293829392940294129422943294429452946294729482949295029512952295329542955295629572958295929602961296229632964296529662967296829692970297129722973297429752976297729782979298029812982298329842985298629872988298929902991299229932994299529962997299829993000300130023003300430053006300730083009301030113012301330143015301630173018301930203021302230233024302530263027302830293030303130323033303430353036303730383039304030413042304330443045304630473048304930503051305230533054305530563057305830593060306130623063306430653066306730683069307030713072307330743075307630773078307930803081308230833084308530863087308830893090309130923093309430953096309730983099310031013102310331043105310631073108310931103111311231133114311531163117311831193120312131223123312431253126312731283129313031313132313331343135313631373138313931403141314231433144314531463147314831493150315131523153315431553156315731583159316031613162316331643165316631673168316931703171317231733174317531763177317831793180318131823183318431853186318731883189319031913192319331943195319631973198319932003201320232033204320532063207320832093210321132123213321432153216321732183219322032213222322332243225322632273228322932303231323232333234323532363237323832393240324132423243324432453246324732483249325032513252325332543255325632573258325932603261326232633264326532663267326832693270327132723273327432753276327732783279328032813282328332843285328632873288328932903291329232933294329532963297329832993300330133023303330433053306330733083309331033113312331333143315331633173318331933203321332233233324332533263327332833293330333133323333333433353336333733383339334033413342334333443345334633473348334933503351335233533354335533563357335833593360336133623363336433653366336733683369337033713372337333743375337633773378337933803381338233833384338533863387338833893390339133923393339433953396339733983399340034013402340334043405340634073408340934103411341234133414341534163417341834193420342134223423342434253426342734283429343034313432343334343435343634373438343934403441344234433444344534463447344834493450345134523453345434553456345734583459346034613462346334643465346634673468346934703471347234733474347534763477347834793480348134823483348434853486348734883489349034913492349334943495349634973498349935003501350235033504350535063507350835093510351135123513351435153516351735183519352035213522352335243525352635273528352935303531353235333534353535363537353835393540354135423543354435453546354735483549355035513552355335543555355635573558355935603561356235633564356535663567356835693570357135723573357435753576357735783579358035813582358335843585358635873588358935903591359235933594359535963597359835993600360136023603360436053606360736083609361036113612361336143615361636173618361936203621362236233624362536263627362836293630363136323633363436353636363736383639364036413642364336443645364636473648364936503651365236533654365536563657365836593660366136623663366436653666366736683669367036713672367336743675367636773678367936803681368236833684368536863687368836893690369136923693369436953696369736983699370037013702370337043705370637073708370937103711371237133714371537163717371837193720372137223723372437253726372737283729373037313732373337343735373637373738373937403741374237433744374537463747374837493750375137523753375437553756375737583759376037613762376337643765376637673768376937703771377237733774377537763777377837793780378137823783378437853786378737883789379037913792379337943795379637973798379938003801380238033804380538063807380838093810381138123813381438153816381738183819382038213822382338243825382638273828382938303831383238333834383538363837383838393840384138423843384438453846384738483849385038513852385338543855385638573858385938603861386238633864386538663867386838693870387138723873387438753876387738783879388038813882388338843885388638873888388938903891389238933894389538963897389838993900390139023903390439053906390739083909391039113912391339143915391639173918391939203921392239233924392539263927392839293930393139323933393439353936393739383939394039413942394339443945394639473948394939503951395239533954395539563957395839593960396139623963396439653966396739683969397039713972397339743975397639773978397939803981398239833984398539863987398839893990399139923993399439953996399739983999400040014002400340044005400640074008400940104011401240134014401540164017401840194020402140224023402440254026402740284029403040314032403340344035403640374038403940404041404240434044404540464047404840494050405140524053405440554056405740584059406040614062406340644065406640674068406940704071407240734074407540764077407840794080408140824083408440854086408740884089409040914092409340944095409640974098409941004101410241034104410541064107410841094110411141124113411441154116411741184119412041214122412341244125412641274128412941304131413241334134413541364137413841394140414141424143414441454146414741484149415041514152415341544155415641574158415941604161416241634164416541664167416841694170417141724173417441754176417741784179418041814182418341844185418641874188418941904191419241934194419541964197419841994200420142024203420442054206420742084209421042114212421342144215421642174218421942204221422242234224422542264227422842294230423142324233423442354236423742384239424042414242424342444245424642474248424942504251425242534254425542564257425842594260426142624263426442654266426742684269427042714272427342744275427642774278427942804281428242834284428542864287428842894290429142924293429442954296429742984299430043014302430343044305430643074308430943104311431243134314431543164317431843194320432143224323432443254326432743284329433043314332433343344335433643374338433943404341434243434344434543464347434843494350435143524353435443554356435743584359436043614362436343644365436643674368436943704371437243734374437543764377437843794380438143824383438443854386438743884389439043914392439343944395439643974398439944004401440244034404440544064407440844094410441144124413441444154416441744184419442044214422442344244425442644274428442944304431443244334434443544364437443844394440444144424443444444454446444744484449445044514452445344544455445644574458445944604461446244634464446544664467446844694470447144724473447444754476447744784479448044814482448344844485448644874488448944904491449244934494449544964497449844994500450145024503450445054506450745084509451045114512451345144515451645174518451945204521452245234524452545264527452845294530453145324533453445354536453745384539454045414542454345444545454645474548454945504551455245534554455545564557455845594560456145624563456445654566456745684569457045714572457345744575457645774578457945804581458245834584458545864587458845894590459145924593459445954596459745984599460046014602460346044605460646074608460946104611461246134614461546164617461846194620462146224623462446254626462746284629463046314632463346344635463646374638463946404641464246434644464546464647464846494650465146524653465446554656465746584659466046614662466346644665466646674668466946704671467246734674467546764677467846794680468146824683468446854686468746884689469046914692469346944695469646974698469947004701470247034704470547064707470847094710471147124713471447154716471747184719472047214722472347244725472647274728472947304731473247334734473547364737473847394740474147424743474447454746474747484749475047514752475347544755475647574758475947604761476247634764476547664767476847694770477147724773477447754776477747784779478047814782478347844785478647874788478947904791479247934794479547964797479847994800480148024803480448054806480748084809481048114812481348144815481648174818481948204821482248234824482548264827482848294830483148324833483448354836483748384839484048414842484348444845484648474848484948504851485248534854485548564857485848594860486148624863486448654866486748684869487048714872487348744875487648774878487948804881488248834884488548864887488848894890489148924893489448954896489748984899490049014902490349044905490649074908490949104911491249134914491549164917491849194920492149224923492449254926492749284929493049314932493349344935493649374938493949404941494249434944494549464947494849494950495149524953495449554956495749584959496049614962496349644965496649674968496949704971497249734974497549764977497849794980498149824983498449854986498749884989499049914992499349944995499649974998499950005001500250035004500550065007500850095010501150125013501450155016501750185019502050215022502350245025502650275028502950305031503250335034503550365037503850395040504150425043504450455046504750485049505050515052505350545055505650575058505950605061506250635064506550665067506850695070507150725073507450755076507750785079508050815082508350845085508650875088508950905091509250935094509550965097509850995100510151025103510451055106510751085109511051115112511351145115511651175118511951205121512251235124512551265127512851295130513151325133513451355136513751385139514051415142514351445145514651475148514951505151515251535154515551565157515851595160516151625163516451655166516751685169517051715172517351745175517651775178517951805181518251835184518551865187518851895190519151925193519451955196519751985199520052015202520352045205520652075208520952105211521252135214521552165217521852195220522152225223522452255226522752285229523052315232523352345235523652375238523952405241524252435244524552465247524852495250525152525253525452555256525752585259526052615262526352645265526652675268526952705271527252735274527552765277527852795280528152825283528452855286528752885289529052915292529352945295529652975298529953005301530253035304530553065307530853095310531153125313531453155316531753185319532053215322532353245325532653275328532953305331533253335334533553365337533853395340534153425343534453455346534753485349535053515352535353545355535653575358535953605361536253635364536553665367536853695370537153725373537453755376537753785379538053815382538353845385538653875388538953905391539253935394539553965397539853995400540154025403540454055406540754085409541054115412541354145415541654175418541954205421542254235424542554265427542854295430543154325433543454355436543754385439544054415442544354445445544654475448544954505451545254535454545554565457545854595460546154625463546454655466546754685469547054715472547354745475547654775478547954805481548254835484548554865487548854895490549154925493549454955496549754985499550055015502550355045505550655075508550955105511551255135514551555165517551855195520552155225523552455255526552755285529553055315532553355345535553655375538553955405541554255435544554555465547554855495550555155525553555455555556555755585559556055615562556355645565556655675568556955705571557255735574557555765577557855795580558155825583558455855586558755885589559055915592559355945595559655975598559956005601560256035604560556065607560856095610561156125613561456155616561756185619562056215622562356245625562656275628562956305631563256335634563556365637563856395640564156425643564456455646564756485649565056515652565356545655565656575658565956605661566256635664566556665667566856695670567156725673567456755676567756785679568056815682568356845685568656875688568956905691569256935694569556965697569856995700570157025703570457055706570757085709571057115712571357145715571657175718571957205721572257235724572557265727572857295730573157325733573457355736573757385739574057415742574357445745574657475748574957505751575257535754575557565757575857595760576157625763576457655766576757685769577057715772577357745775577657775778577957805781578257835784578557865787578857895790579157925793579457955796579757985799580058015802580358045805580658075808580958105811581258135814581558165817581858195820582158225823582458255826582758285829583058315832583358345835583658375838583958405841584258435844584558465847584858495850585158525853585458555856585758585859586058615862586358645865586658675868586958705871587258735874587558765877587858795880588158825883588458855886588758885889589058915892589358945895589658975898589959005901590259035904590559065907590859095910591159125913591459155916591759185919592059215922592359245925592659275928592959305931593259335934593559365937593859395940594159425943594459455946594759485949595059515952595359545955595659575958595959605961596259635964596559665967596859695970597159725973597459755976597759785979598059815982598359845985598659875988598959905991599259935994599559965997599859996000600160026003600460056006600760086009601060116012601360146015601660176018601960206021602260236024602560266027602860296030603160326033603460356036603760386039604060416042604360446045604660476048604960506051605260536054605560566057605860596060606160626063606460656066606760686069607060716072607360746075607660776078607960806081608260836084608560866087608860896090609160926093609460956096609760986099610061016102610361046105610661076108610961106111611261136114611561166117611861196120612161226123612461256126612761286129613061316132613361346135613661376138613961406141614261436144614561466147614861496150615161526153615461556156615761586159616061616162616361646165616661676168616961706171617261736174617561766177617861796180618161826183618461856186618761886189619061916192619361946195619661976198619962006201620262036204620562066207620862096210621162126213621462156216621762186219622062216222622362246225622662276228622962306231623262336234623562366237623862396240624162426243624462456246624762486249625062516252625362546255625662576258625962606261626262636264626562666267626862696270627162726273627462756276627762786279628062816282628362846285628662876288628962906291629262936294629562966297629862996300630163026303630463056306630763086309631063116312631363146315631663176318631963206321632263236324632563266327632863296330633163326333633463356336633763386339634063416342634363446345634663476348634963506351635263536354635563566357635863596360636163626363636463656366636763686369637063716372637363746375637663776378637963806381638263836384638563866387638863896390639163926393639463956396639763986399640064016402640364046405640664076408640964106411641264136414641564166417641864196420642164226423642464256426642764286429643064316432643364346435643664376438643964406441644264436444644564466447644864496450645164526453645464556456645764586459646064616462646364646465646664676468646964706471647264736474647564766477647864796480648164826483648464856486648764886489649064916492649364946495649664976498649965006501650265036504650565066507650865096510651165126513651465156516651765186519652065216522652365246525652665276528652965306531653265336534653565366537653865396540654165426543654465456546654765486549655065516552655365546555655665576558655965606561656265636564656565666567656865696570657165726573657465756576657765786579658065816582658365846585658665876588658965906591659265936594659565966597659865996600660166026603660466056606660766086609661066116612661366146615661666176618661966206621662266236624662566266627662866296630663166326633663466356636663766386639664066416642664366446645664666476648664966506651665266536654665566566657665866596660666166626663666466656666666766686669667066716672667366746675667666776678667966806681668266836684668566866687668866896690669166926693669466956696669766986699670067016702670367046705670667076708670967106711671267136714671567166717671867196720672167226723672467256726672767286729673067316732673367346735673667376738673967406741674267436744674567466747674867496750675167526753675467556756675767586759676067616762676367646765676667676768676967706771677267736774677567766777677867796780678167826783678467856786678767886789679067916792679367946795679667976798679968006801680268036804680568066807680868096810681168126813681468156816681768186819682068216822682368246825682668276828682968306831683268336834683568366837683868396840684168426843684468456846684768486849685068516852685368546855685668576858685968606861686268636864686568666867686868696870687168726873687468756876687768786879688068816882688368846885688668876888688968906891689268936894689568966897689868996900690169026903690469056906690769086909691069116912691369146915691669176918691969206921692269236924692569266927692869296930693169326933693469356936693769386939694069416942694369446945694669476948694969506951695269536954695569566957695869596960696169626963696469656966696769686969697069716972697369746975697669776978697969806981698269836984698569866987698869896990699169926993699469956996699769986999700070017002700370047005700670077008700970107011701270137014701570167017701870197020702170227023702470257026702770287029703070317032703370347035703670377038703970407041704270437044704570467047704870497050705170527053705470557056705770587059706070617062706370647065706670677068706970707071707270737074707570767077707870797080708170827083708470857086708770887089709070917092709370947095709670977098709971007101710271037104710571067107710871097110711171127113711471157116711771187119712071217122712371247125712671277128712971307131713271337134713571367137713871397140714171427143714471457146714771487149715071517152715371547155715671577158715971607161716271637164716571667167716871697170717171727173717471757176717771787179718071817182718371847185718671877188718971907191719271937194719571967197719871997200720172027203720472057206720772087209721072117212721372147215721672177218721972207221722272237224722572267227722872297230723172327233723472357236723772387239724072417242724372447245724672477248724972507251725272537254725572567257725872597260726172627263726472657266726772687269727072717272727372747275727672777278727972807281728272837284728572867287728872897290729172927293729472957296729772987299730073017302730373047305730673077308730973107311731273137314731573167317731873197320732173227323732473257326732773287329733073317332733373347335733673377338733973407341734273437344734573467347734873497350735173527353735473557356735773587359736073617362736373647365736673677368736973707371737273737374737573767377737873797380738173827383738473857386738773887389739073917392739373947395739673977398739974007401740274037404740574067407740874097410741174127413741474157416741774187419742074217422742374247425742674277428742974307431743274337434743574367437743874397440744174427443744474457446744774487449745074517452745374547455745674577458745974607461746274637464746574667467746874697470747174727473747474757476747774787479748074817482748374847485748674877488748974907491749274937494749574967497749874997500750175027503750475057506750775087509751075117512751375147515751675177518751975207521752275237524752575267527752875297530753175327533753475357536753775387539754075417542754375447545754675477548754975507551755275537554755575567557755875597560756175627563756475657566756775687569757075717572757375747575757675777578757975807581758275837584758575867587758875897590759175927593759475957596759775987599760076017602760376047605760676077608760976107611761276137614761576167617761876197620762176227623762476257626762776287629763076317632763376347635763676377638763976407641764276437644764576467647764876497650765176527653765476557656765776587659766076617662766376647665766676677668766976707671767276737674767576767677767876797680768176827683768476857686768776887689769076917692769376947695769676977698769977007701770277037704770577067707770877097710771177127713771477157716771777187719772077217722772377247725772677277728772977307731773277337734773577367737773877397740774177427743774477457746774777487749775077517752775377547755775677577758775977607761776277637764776577667767776877697770777177727773777477757776777777787779778077817782778377847785778677877788778977907791779277937794779577967797779877997800780178027803780478057806780778087809781078117812781378147815781678177818781978207821782278237824782578267827782878297830783178327833783478357836783778387839784078417842784378447845784678477848784978507851785278537854785578567857785878597860786178627863786478657866786778687869787078717872787378747875787678777878787978807881788278837884788578867887788878897890789178927893789478957896789778987899790079017902790379047905790679077908790979107911791279137914791579167917791879197920792179227923792479257926792779287929793079317932793379347935793679377938793979407941794279437944794579467947794879497950795179527953795479557956795779587959796079617962796379647965796679677968796979707971797279737974797579767977797879797980798179827983798479857986798779887989799079917992799379947995799679977998799980008001800280038004800580068007800880098010801180128013801480158016801780188019802080218022802380248025802680278028802980308031803280338034803580368037803880398040804180428043804480458046804780488049805080518052805380548055805680578058805980608061806280638064806580668067806880698070807180728073807480758076807780788079808080818082808380848085808680878088808980908091809280938094809580968097809880998100810181028103810481058106810781088109811081118112811381148115811681178118811981208121812281238124812581268127812881298130813181328133813481358136813781388139814081418142814381448145814681478148814981508151815281538154815581568157815881598160816181628163816481658166816781688169817081718172817381748175817681778178817981808181818281838184818581868187818881898190819181928193819481958196819781988199820082018202820382048205820682078208820982108211821282138214821582168217821882198220822182228223822482258226822782288229823082318232823382348235823682378238823982408241824282438244824582468247824882498250825182528253825482558256825782588259826082618262826382648265826682678268826982708271827282738274827582768277827882798280828182828283828482858286828782888289829082918292829382948295829682978298829983008301830283038304830583068307830883098310831183128313831483158316831783188319832083218322832383248325832683278328832983308331833283338334833583368337833883398340834183428343834483458346834783488349835083518352835383548355835683578358835983608361836283638364836583668367836883698370837183728373837483758376837783788379838083818382838383848385838683878388838983908391839283938394839583968397839883998400840184028403840484058406840784088409841084118412841384148415841684178418841984208421842284238424842584268427842884298430843184328433843484358436843784388439844084418442844384448445844684478448844984508451845284538454845584568457845884598460846184628463846484658466846784688469847084718472847384748475847684778478847984808481848284838484848584868487848884898490849184928493849484958496849784988499850085018502850385048505850685078508850985108511851285138514851585168517851885198520852185228523852485258526852785288529853085318532853385348535853685378538853985408541854285438544854585468547854885498550855185528553855485558556855785588559856085618562856385648565856685678568856985708571857285738574857585768577857885798580858185828583858485858586858785888589859085918592859385948595859685978598859986008601860286038604860586068607860886098610861186128613861486158616861786188619862086218622862386248625862686278628862986308631863286338634863586368637863886398640864186428643864486458646864786488649865086518652865386548655865686578658865986608661866286638664866586668667866886698670867186728673867486758676867786788679868086818682868386848685868686878688868986908691869286938694869586968697869886998700870187028703870487058706870787088709871087118712871387148715871687178718871987208721872287238724872587268727872887298730873187328733873487358736873787388739874087418742874387448745874687478748874987508751875287538754875587568757875887598760876187628763876487658766876787688769877087718772877387748775877687778778877987808781878287838784878587868787878887898790879187928793879487958796879787988799880088018802880388048805880688078808880988108811881288138814881588168817881888198820882188228823882488258826882788288829883088318832883388348835883688378838883988408841884288438844884588468847884888498850885188528853885488558856885788588859886088618862886388648865886688678868886988708871887288738874887588768877887888798880888188828883888488858886888788888889889088918892889388948895889688978898889989008901890289038904890589068907890889098910891189128913891489158916891789188919892089218922892389248925892689278928892989308931893289338934893589368937893889398940894189428943894489458946894789488949895089518952895389548955895689578958895989608961896289638964896589668967896889698970897189728973897489758976897789788979898089818982898389848985898689878988898989908991899289938994899589968997899889999000900190029003900490059006900790089009901090119012901390149015901690179018901990209021902290239024902590269027902890299030903190329033903490359036903790389039904090419042904390449045904690479048904990509051905290539054905590569057905890599060906190629063906490659066906790689069907090719072907390749075907690779078907990809081908290839084908590869087908890899090909190929093909490959096909790989099910091019102910391049105910691079108910991109111911291139114911591169117911891199120912191229123912491259126912791289129913091319132913391349135913691379138913991409141914291439144914591469147914891499150915191529153915491559156915791589159916091619162916391649165916691679168916991709171917291739174917591769177917891799180918191829183918491859186918791889189919091919192919391949195919691979198919992009201920292039204920592069207920892099210921192129213921492159216921792189219922092219222922392249225922692279228922992309231923292339234923592369237923892399240924192429243924492459246924792489249925092519252925392549255925692579258925992609261926292639264926592669267926892699270927192729273927492759276927792789279928092819282928392849285928692879288928992909291929292939294929592969297929892999300930193029303930493059306930793089309931093119312931393149315931693179318931993209321932293239324932593269327932893299330933193329333933493359336933793389339934093419342934393449345934693479348934993509351935293539354935593569357935893599360936193629363936493659366936793689369937093719372937393749375937693779378937993809381938293839384938593869387938893899390939193929393939493959396939793989399940094019402940394049405940694079408940994109411941294139414941594169417941894199420942194229423942494259426942794289429943094319432943394349435943694379438943994409441944294439444944594469447944894499450945194529453945494559456945794589459946094619462946394649465946694679468946994709471947294739474947594769477947894799480948194829483948494859486948794889489949094919492949394949495949694979498949995009501950295039504950595069507950895099510951195129513951495159516951795189519952095219522952395249525952695279528952995309531953295339534953595369537953895399540954195429543954495459546954795489549955095519552955395549555955695579558955995609561956295639564956595669567956895699570957195729573957495759576957795789579958095819582958395849585958695879588958995909591959295939594959595969597959895999600960196029603960496059606960796089609961096119612961396149615961696179618961996209621962296239624962596269627962896299630963196329633963496359636963796389639964096419642964396449645964696479648964996509651965296539654965596569657965896599660966196629663966496659666966796689669967096719672967396749675967696779678967996809681968296839684968596869687968896899690969196929693969496959696969796989699970097019702970397049705970697079708970997109711971297139714971597169717971897199720972197229723972497259726972797289729973097319732973397349735973697379738973997409741974297439744974597469747974897499750975197529753975497559756975797589759976097619762976397649765976697679768976997709771977297739774977597769777977897799780978197829783978497859786978797889789979097919792979397949795979697979798979998009801980298039804980598069807980898099810981198129813981498159816981798189819982098219822982398249825982698279828982998309831983298339834983598369837983898399840984198429843984498459846984798489849985098519852985398549855985698579858985998609861986298639864986598669867986898699870987198729873987498759876987798789879988098819882988398849885988698879888988998909891989298939894989598969897989898999900990199029903990499059906990799089909991099119912991399149915991699179918991999209921992299239924992599269927992899299930993199329933993499359936993799389939994099419942994399449945994699479948994999509951995299539954995599569957995899599960996199629963996499659966996799689969997099719972997399749975997699779978997999809981998299839984998599869987998899899990999199929993999499959996999799989999100001000110002100031000410005100061000710008100091001010011100121001310014100151001610017100181001910020100211002210023100241002510026100271002810029100301003110032100331003410035100361003710038100391004010041100421004310044100451004610047100481004910050100511005210053100541005510056100571005810059100601006110062100631006410065100661006710068100691007010071100721007310074100751007610077100781007910080100811008210083100841008510086100871008810089100901009110092100931009410095100961009710098100991010010101101021010310104101051010610107101081010910110101111011210113101141011510116101171011810119101201012110122101231012410125101261012710128101291013010131101321013310134101351013610137101381013910140101411014210143101441014510146101471014810149101501015110152101531015410155101561015710158101591016010161101621016310164101651016610167101681016910170101711017210173101741017510176101771017810179101801018110182101831018410185101861018710188101891019010191101921019310194101951019610197101981019910200102011020210203102041020510206102071020810209102101021110212102131021410215102161021710218102191022010221102221022310224102251022610227102281022910230102311023210233102341023510236102371023810239102401024110242102431024410245102461024710248102491025010251102521025310254102551025610257102581025910260102611026210263102641026510266102671026810269102701027110272102731027410275102761027710278102791028010281102821028310284102851028610287102881028910290102911029210293102941029510296102971029810299103001030110302103031030410305103061030710308103091031010311103121031310314103151031610317103181031910320103211032210323103241032510326103271032810329103301033110332103331033410335103361033710338103391034010341103421034310344103451034610347103481034910350103511035210353103541035510356103571035810359103601036110362103631036410365103661036710368103691037010371103721037310374103751037610377103781037910380103811038210383103841038510386103871038810389103901039110392103931039410395103961039710398103991040010401104021040310404104051040610407104081040910410104111041210413104141041510416104171041810419104201042110422104231042410425104261042710428104291043010431104321043310434104351043610437104381043910440104411044210443104441044510446104471044810449104501045110452104531045410455104561045710458104591046010461104621046310464104651046610467104681046910470104711047210473104741047510476104771047810479104801048110482104831048410485104861048710488104891049010491104921049310494104951049610497104981049910500105011050210503105041050510506105071050810509105101051110512105131051410515105161051710518105191052010521105221052310524105251052610527105281052910530105311053210533105341053510536105371053810539105401054110542105431054410545105461054710548105491055010551105521055310554105551055610557105581055910560105611056210563105641056510566105671056810569105701057110572105731057410575105761057710578105791058010581105821058310584105851058610587105881058910590105911059210593105941059510596105971059810599106001060110602106031060410605106061060710608106091061010611106121061310614106151061610617106181061910620106211062210623106241062510626106271062810629106301063110632106331063410635106361063710638106391064010641106421064310644106451064610647106481064910650106511065210653106541065510656106571065810659106601066110662106631066410665106661066710668106691067010671106721067310674106751067610677106781067910680106811068210683106841068510686106871068810689106901069110692106931069410695106961069710698106991070010701107021070310704107051070610707107081070910710107111071210713107141071510716107171071810719107201072110722107231072410725107261072710728107291073010731107321073310734107351073610737107381073910740107411074210743107441074510746107471074810749107501075110752107531075410755107561075710758107591076010761107621076310764107651076610767107681076910770107711077210773107741077510776107771077810779107801078110782107831078410785107861078710788107891079010791107921079310794107951079610797107981079910800108011080210803108041080510806108071080810809108101081110812108131081410815108161081710818108191082010821108221082310824108251082610827108281082910830108311083210833108341083510836108371083810839108401084110842108431084410845108461084710848108491085010851108521085310854108551085610857108581085910860108611086210863108641086510866108671086810869108701087110872108731087410875108761087710878108791088010881108821088310884108851088610887108881088910890108911089210893108941089510896108971089810899109001090110902109031090410905109061090710908109091091010911109121091310914109151091610917109181091910920109211092210923109241092510926109271092810929109301093110932109331093410935109361093710938109391094010941109421094310944109451094610947109481094910950109511095210953109541095510956109571095810959109601096110962109631096410965109661096710968109691097010971109721097310974109751097610977109781097910980109811098210983109841098510986109871098810989109901099110992109931099410995109961099710998109991100011001110021100311004110051100611007110081100911010110111101211013110141101511016110171101811019110201102111022110231102411025110261102711028110291103011031110321103311034110351103611037110381103911040110411104211043110441104511046110471104811049110501105111052110531105411055110561105711058110591106011061110621106311064110651106611067110681106911070110711107211073110741107511076110771107811079110801108111082110831108411085110861108711088110891109011091110921109311094110951109611097110981109911100111011110211103111041110511106111071110811109111101111111112111131111411115111161111711118111191112011121111221112311124111251112611127111281112911130111311113211133111341113511136111371113811139111401114111142111431114411145111461114711148111491115011151111521115311154111551115611157111581115911160111611116211163111641116511166111671116811169111701117111172111731117411175111761117711178111791118011181111821118311184111851118611187111881118911190111911119211193111941119511196111971119811199112001120111202112031120411205112061120711208112091121011211112121121311214112151121611217112181121911220112211122211223112241122511226112271122811229112301123111232112331123411235112361123711238112391124011241112421124311244112451124611247112481124911250112511125211253112541125511256112571125811259112601126111262112631126411265112661126711268112691127011271112721127311274112751127611277112781127911280112811128211283112841128511286112871128811289112901129111292112931129411295112961129711298112991130011301113021130311304113051130611307113081130911310113111131211313113141131511316113171131811319113201132111322113231132411325113261132711328113291133011331113321133311334113351133611337113381133911340113411134211343113441134511346113471134811349113501135111352113531135411355113561135711358113591136011361113621136311364113651136611367113681136911370113711137211373113741137511376113771137811379113801138111382113831138411385113861138711388113891139011391113921139311394113951139611397113981139911400114011140211403114041140511406114071140811409114101141111412114131141411415114161141711418114191142011421114221142311424114251142611427114281142911430114311143211433114341143511436114371143811439114401144111442114431144411445114461144711448114491145011451114521145311454114551145611457114581145911460114611146211463114641146511466114671146811469114701147111472114731147411475114761147711478114791148011481114821148311484114851148611487114881148911490114911149211493114941149511496114971149811499115001150111502115031150411505115061150711508115091151011511115121151311514115151151611517115181151911520115211152211523115241152511526115271152811529115301153111532115331153411535115361153711538115391154011541115421154311544115451154611547115481154911550115511155211553115541155511556115571155811559115601156111562115631156411565115661156711568115691157011571115721157311574115751157611577115781157911580115811158211583115841158511586115871158811589115901159111592115931159411595115961159711598115991160011601116021160311604116051160611607116081160911610116111161211613116141161511616116171161811619116201162111622116231162411625116261162711628116291163011631116321163311634116351163611637116381163911640116411164211643116441164511646116471164811649116501165111652116531165411655116561165711658116591166011661116621166311664116651166611667116681166911670116711167211673116741167511676116771167811679116801168111682116831168411685116861168711688116891169011691116921169311694116951169611697116981169911700117011170211703117041170511706117071170811709117101171111712117131171411715117161171711718117191172011721117221172311724117251172611727117281172911730117311173211733117341173511736117371173811739117401174111742117431174411745117461174711748117491175011751117521175311754117551175611757117581175911760117611176211763117641176511766117671176811769117701177111772117731177411775117761177711778117791178011781117821178311784117851178611787117881178911790117911179211793117941179511796117971179811799118001180111802118031180411805118061180711808118091181011811118121181311814118151181611817118181181911820118211182211823118241182511826118271182811829118301183111832118331183411835118361183711838118391184011841118421184311844118451184611847118481184911850118511185211853118541185511856118571185811859118601186111862118631186411865118661186711868118691187011871118721187311874118751187611877118781187911880118811188211883118841188511886118871188811889118901189111892118931189411895118961189711898118991190011901119021190311904119051190611907119081190911910119111191211913119141191511916119171191811919119201192111922119231192411925119261192711928119291193011931119321193311934119351193611937119381193911940119411194211943119441194511946119471194811949119501195111952119531195411955119561195711958119591196011961119621196311964119651196611967119681196911970119711197211973119741197511976119771197811979119801198111982119831198411985119861198711988119891199011991119921199311994119951199611997119981199912000120011200212003120041200512006120071200812009120101201112012120131201412015120161201712018120191202012021120221202312024120251202612027120281202912030120311203212033120341203512036120371203812039120401204112042120431204412045120461204712048120491205012051120521205312054120551205612057120581205912060120611206212063120641206512066120671206812069120701207112072120731207412075120761207712078120791208012081120821208312084120851208612087120881208912090120911209212093120941209512096120971209812099121001210112102121031210412105121061210712108121091211012111121121211312114121151211612117121181211912120121211212212123121241212512126121271212812129121301213112132121331213412135121361213712138121391214012141121421214312144121451214612147121481214912150121511215212153121541215512156121571215812159121601216112162121631216412165121661216712168121691217012171121721217312174121751217612177121781217912180121811218212183121841218512186121871218812189121901219112192121931219412195121961219712198121991220012201122021220312204122051220612207122081220912210122111221212213122141221512216122171221812219122201222112222122231222412225122261222712228122291223012231122321223312234122351223612237122381223912240122411224212243122441224512246122471224812249122501225112252122531225412255122561225712258122591226012261122621226312264122651226612267122681226912270122711227212273122741227512276122771227812279122801228112282122831228412285122861228712288122891229012291122921229312294122951229612297122981229912300123011230212303123041230512306123071230812309123101231112312123131231412315123161231712318123191232012321123221232312324123251232612327123281232912330123311233212333123341233512336123371233812339123401234112342123431234412345123461234712348123491235012351123521235312354123551235612357123581235912360123611236212363123641236512366123671236812369123701237112372123731237412375123761237712378123791238012381123821238312384123851238612387123881238912390123911239212393123941239512396123971239812399124001240112402124031240412405124061240712408124091241012411124121241312414124151241612417124181241912420124211242212423124241242512426124271242812429124301243112432124331243412435124361243712438124391244012441124421244312444124451244612447124481244912450124511245212453124541245512456124571245812459124601246112462124631246412465124661246712468124691247012471124721247312474124751247612477124781247912480124811248212483124841248512486124871248812489124901249112492124931249412495124961249712498124991250012501125021250312504125051250612507125081250912510125111251212513125141251512516125171251812519125201252112522125231252412525125261252712528125291253012531125321253312534125351253612537125381253912540125411254212543125441254512546125471254812549125501255112552125531255412555125561255712558125591256012561125621256312564125651256612567125681256912570125711257212573125741257512576125771257812579125801258112582125831258412585125861258712588125891259012591125921259312594125951259612597125981259912600126011260212603126041260512606126071260812609126101261112612126131261412615126161261712618126191262012621126221262312624126251262612627126281262912630126311263212633126341263512636126371263812639126401264112642126431264412645126461264712648126491265012651126521265312654126551265612657126581265912660126611266212663126641266512666126671266812669126701267112672126731267412675126761267712678126791268012681126821268312684126851268612687126881268912690126911269212693126941269512696126971269812699127001270112702127031270412705127061270712708127091271012711127121271312714127151271612717127181271912720127211272212723127241272512726127271272812729127301273112732127331273412735127361273712738127391274012741127421274312744127451274612747127481274912750127511275212753127541275512756127571275812759127601276112762127631276412765127661276712768127691277012771127721277312774127751277612777127781277912780127811278212783127841278512786127871278812789127901279112792127931279412795127961279712798127991280012801128021280312804128051280612807128081280912810128111281212813128141281512816128171281812819128201282112822128231282412825128261282712828128291283012831128321283312834128351283612837128381283912840128411284212843128441284512846128471284812849128501285112852128531285412855128561285712858128591286012861128621286312864128651286612867128681286912870128711287212873128741287512876128771287812879128801288112882128831288412885128861288712888128891289012891128921289312894128951289612897128981289912900129011290212903129041290512906129071290812909129101291112912129131291412915129161291712918129191292012921129221292312924129251292612927129281292912930129311293212933129341293512936129371293812939129401294112942129431294412945129461294712948129491295012951129521295312954129551295612957129581295912960129611296212963129641296512966129671296812969129701297112972129731297412975129761297712978129791298012981129821298312984129851298612987129881298912990129911299212993129941299512996129971299812999130001300113002130031300413005130061300713008130091301013011130121301313014130151301613017130181301913020130211302213023130241302513026130271302813029130301303113032130331303413035130361303713038130391304013041130421304313044130451304613047130481304913050130511305213053130541305513056130571305813059130601306113062130631306413065130661306713068130691307013071130721307313074130751307613077130781307913080130811308213083130841308513086130871308813089130901309113092130931309413095130961309713098130991310013101131021310313104131051310613107131081310913110131111311213113131141311513116131171311813119131201312113122131231312413125131261312713128131291313013131131321313313134131351313613137131381313913140131411314213143131441314513146131471314813149131501315113152131531315413155131561315713158131591316013161131621316313164131651316613167131681316913170131711317213173131741317513176131771317813179131801318113182131831318413185131861318713188131891319013191131921319313194131951319613197131981319913200132011320213203132041320513206132071320813209132101321113212132131321413215132161321713218132191322013221132221322313224132251322613227132281322913230132311323213233132341323513236132371323813239132401324113242132431324413245132461324713248132491325013251132521325313254132551325613257132581325913260132611326213263132641326513266132671326813269132701327113272132731327413275132761327713278132791328013281132821328313284132851328613287132881328913290132911329213293132941329513296132971329813299133001330113302133031330413305133061330713308133091331013311133121331313314133151331613317133181331913320133211332213323133241332513326133271332813329133301333113332133331333413335133361333713338133391334013341133421334313344133451334613347133481334913350133511335213353133541335513356133571335813359133601336113362133631336413365133661336713368133691337013371133721337313374133751337613377133781337913380133811338213383133841338513386133871338813389133901339113392133931339413395133961339713398133991340013401134021340313404134051340613407134081340913410134111341213413134141341513416134171341813419134201342113422134231342413425134261342713428134291343013431134321343313434134351343613437134381343913440134411344213443134441344513446134471344813449134501345113452134531345413455134561345713458134591346013461134621346313464134651346613467134681346913470134711347213473134741347513476134771347813479134801348113482134831348413485134861348713488134891349013491134921349313494134951349613497134981349913500135011350213503135041350513506135071350813509135101351113512135131351413515135161351713518135191352013521135221352313524135251352613527135281352913530135311353213533135341353513536135371353813539135401354113542135431354413545135461354713548135491355013551135521355313554135551355613557135581355913560135611356213563135641356513566135671356813569135701357113572135731357413575135761357713578135791358013581135821358313584135851358613587135881358913590135911359213593135941359513596135971359813599136001360113602136031360413605136061360713608136091361013611136121361313614136151361613617136181361913620136211362213623136241362513626136271362813629136301363113632136331363413635136361363713638136391364013641136421364313644136451364613647136481364913650136511365213653136541365513656136571365813659136601366113662136631366413665136661366713668136691367013671136721367313674136751367613677136781367913680136811368213683136841368513686136871368813689136901369113692136931369413695136961369713698136991370013701137021370313704137051370613707137081370913710137111371213713137141371513716137171371813719137201372113722137231372413725137261372713728137291373013731137321373313734137351373613737137381373913740137411374213743137441374513746137471374813749137501375113752137531375413755137561375713758137591376013761137621376313764137651376613767137681376913770137711377213773137741377513776137771377813779137801378113782137831378413785137861378713788137891379013791137921379313794137951379613797137981379913800138011380213803138041380513806138071380813809138101381113812138131381413815138161381713818138191382013821138221382313824138251382613827138281382913830138311383213833138341383513836138371383813839138401384113842138431384413845138461384713848138491385013851138521385313854138551385613857138581385913860138611386213863138641386513866138671386813869138701387113872138731387413875138761387713878138791388013881138821388313884138851388613887138881388913890138911389213893138941389513896138971389813899139001390113902139031390413905139061390713908139091391013911139121391313914139151391613917139181391913920139211392213923139241392513926139271392813929139301393113932139331393413935139361393713938139391394013941139421394313944139451394613947139481394913950139511395213953139541395513956139571395813959139601396113962139631396413965139661396713968139691397013971139721397313974139751397613977139781397913980139811398213983139841398513986139871398813989139901399113992139931399413995139961399713998139991400014001140021400314004140051400614007140081400914010140111401214013140141401514016140171401814019140201402114022140231402414025140261402714028140291403014031140321403314034140351403614037140381403914040140411404214043140441404514046140471404814049140501405114052140531405414055140561405714058140591406014061140621406314064140651406614067140681406914070140711407214073140741407514076140771407814079140801408114082140831408414085140861408714088140891409014091140921409314094140951409614097140981409914100141011410214103141041410514106141071410814109141101411114112141131411414115141161411714118141191412014121141221412314124141251412614127141281412914130141311413214133141341413514136141371413814139141401414114142141431414414145141461414714148141491415014151141521415314154141551415614157141581415914160141611416214163141641416514166141671416814169141701417114172141731417414175141761417714178141791418014181141821418314184141851418614187141881418914190141911419214193141941419514196141971419814199142001420114202142031420414205142061420714208142091421014211142121421314214142151421614217142181421914220142211422214223142241422514226142271422814229142301423114232142331423414235142361423714238142391424014241142421424314244142451424614247142481424914250142511425214253142541425514256142571425814259142601426114262142631426414265142661426714268142691427014271142721427314274142751427614277142781427914280142811428214283142841428514286142871428814289142901429114292142931429414295142961429714298142991430014301143021430314304143051430614307143081430914310143111431214313143141431514316143171431814319143201432114322143231432414325143261432714328143291433014331143321433314334143351433614337143381433914340143411434214343143441434514346143471434814349143501435114352143531435414355143561435714358143591436014361143621436314364143651436614367143681436914370143711437214373143741437514376143771437814379143801438114382143831438414385143861438714388143891439014391143921439314394143951439614397143981439914400144011440214403144041440514406144071440814409144101441114412144131441414415144161441714418144191442014421144221442314424144251442614427144281442914430144311443214433144341443514436144371443814439144401444114442144431444414445144461444714448144491445014451144521445314454144551445614457144581445914460144611446214463144641446514466144671446814469144701447114472144731447414475144761447714478144791448014481144821448314484144851448614487144881448914490144911449214493144941449514496144971449814499145001450114502145031450414505145061450714508145091451014511145121451314514145151451614517145181451914520145211452214523145241452514526145271452814529145301453114532145331453414535145361453714538145391454014541145421454314544145451454614547145481454914550145511455214553145541455514556145571455814559145601456114562145631456414565145661456714568145691457014571145721457314574145751457614577145781457914580145811458214583145841458514586145871458814589145901459114592145931459414595145961459714598145991460014601146021460314604146051460614607146081460914610146111461214613146141461514616146171461814619146201462114622146231462414625146261462714628146291463014631146321463314634146351463614637146381463914640146411464214643146441464514646146471464814649146501465114652146531465414655146561465714658146591466014661146621466314664146651466614667146681466914670146711467214673146741467514676146771467814679146801468114682146831468414685146861468714688146891469014691146921469314694146951469614697146981469914700147011470214703147041470514706147071470814709147101471114712147131471414715147161471714718147191472014721147221472314724147251472614727147281472914730147311473214733147341473514736147371473814739147401474114742147431474414745147461474714748147491475014751147521475314754147551475614757147581475914760147611476214763147641476514766147671476814769147701477114772147731477414775147761477714778147791478014781147821478314784147851478614787147881478914790147911479214793147941479514796147971479814799148001480114802148031480414805148061480714808148091481014811148121481314814148151481614817148181481914820148211482214823148241482514826148271482814829148301483114832148331483414835148361483714838148391484014841148421484314844148451484614847148481484914850148511485214853148541485514856148571485814859148601486114862148631486414865148661486714868148691487014871148721487314874148751487614877148781487914880148811488214883148841488514886148871488814889148901489114892148931489414895148961489714898148991490014901149021490314904149051490614907149081490914910149111491214913149141491514916149171491814919149201492114922149231492414925149261492714928149291493014931149321493314934149351493614937149381493914940149411494214943149441494514946149471494814949149501495114952149531495414955149561495714958149591496014961149621496314964149651496614967149681496914970149711497214973149741497514976149771497814979149801498114982149831498414985149861498714988149891499014991149921499314994149951499614997149981499915000150011500215003150041500515006150071500815009150101501115012150131501415015150161501715018150191502015021150221502315024150251502615027150281502915030150311503215033150341503515036150371503815039150401504115042150431504415045150461504715048150491505015051150521505315054150551505615057150581505915060150611506215063150641506515066150671506815069150701507115072150731507415075150761507715078150791508015081150821508315084150851508615087150881508915090150911509215093150941509515096150971509815099151001510115102151031510415105151061510715108151091511015111151121511315114151151511615117151181511915120151211512215123151241512515126151271512815129151301513115132151331513415135151361513715138151391514015141151421514315144151451514615147151481514915150151511515215153151541515515156151571515815159151601516115162151631516415165151661516715168151691517015171151721517315174151751517615177151781517915180151811518215183151841518515186151871518815189151901519115192151931519415195151961519715198151991520015201152021520315204152051520615207152081520915210152111521215213152141521515216152171521815219152201522115222152231522415225152261522715228152291523015231152321523315234152351523615237152381523915240152411524215243152441524515246152471524815249152501525115252152531525415255152561525715258152591526015261152621526315264152651526615267152681526915270152711527215273152741527515276152771527815279152801528115282152831528415285152861528715288152891529015291152921529315294152951529615297152981529915300153011530215303153041530515306153071530815309153101531115312153131531415315153161531715318153191532015321153221532315324153251532615327153281532915330153311533215333153341533515336153371533815339153401534115342153431534415345153461534715348153491535015351153521535315354153551535615357153581535915360153611536215363153641536515366153671536815369153701537115372153731537415375153761537715378153791538015381153821538315384153851538615387153881538915390153911539215393153941539515396153971539815399154001540115402154031540415405154061540715408154091541015411154121541315414154151541615417154181541915420154211542215423154241542515426154271542815429154301543115432154331543415435154361543715438154391544015441154421544315444154451544615447154481544915450154511545215453154541545515456154571545815459154601546115462154631546415465154661546715468154691547015471154721547315474154751547615477154781547915480154811548215483154841548515486154871548815489154901549115492154931549415495154961549715498154991550015501155021550315504155051550615507155081550915510155111551215513155141551515516155171551815519155201552115522155231552415525155261552715528155291553015531155321553315534155351553615537155381553915540155411554215543155441554515546155471554815549155501555115552155531555415555155561555715558155591556015561155621556315564155651556615567155681556915570155711557215573155741557515576155771557815579155801558115582155831558415585155861558715588155891559015591155921559315594155951559615597155981559915600156011560215603156041560515606156071560815609156101561115612156131561415615156161561715618156191562015621156221562315624156251562615627156281562915630156311563215633156341563515636156371563815639156401564115642156431564415645156461564715648156491565015651156521565315654156551565615657156581565915660156611566215663156641566515666156671566815669156701567115672156731567415675156761567715678156791568015681156821568315684156851568615687156881568915690156911569215693156941569515696156971569815699157001570115702157031570415705157061570715708157091571015711157121571315714157151571615717157181571915720157211572215723157241572515726157271572815729157301573115732157331573415735157361573715738157391574015741157421574315744157451574615747157481574915750157511575215753157541575515756157571575815759157601576115762157631576415765157661576715768157691577015771157721577315774157751577615777157781577915780157811578215783157841578515786157871578815789157901579115792157931579415795157961579715798157991580015801158021580315804158051580615807158081580915810158111581215813158141581515816158171581815819158201582115822158231582415825158261582715828158291583015831158321583315834158351583615837158381583915840158411584215843158441584515846158471584815849158501585115852158531585415855158561585715858158591586015861158621586315864158651586615867158681586915870158711587215873158741587515876158771587815879158801588115882158831588415885158861588715888158891589015891158921589315894158951589615897158981589915900159011590215903159041590515906159071590815909159101591115912159131591415915159161591715918159191592015921159221592315924159251592615927159281592915930159311593215933159341593515936159371593815939159401594115942159431594415945159461594715948159491595015951159521595315954159551595615957159581595915960159611596215963159641596515966159671596815969159701597115972159731597415975159761597715978159791598015981159821598315984159851598615987159881598915990159911599215993159941599515996159971599815999160001600116002160031600416005160061600716008160091601016011160121601316014160151601616017160181601916020160211602216023160241602516026160271602816029160301603116032160331603416035160361603716038160391604016041160421604316044160451604616047160481604916050160511605216053160541605516056160571605816059160601606116062160631606416065160661606716068160691607016071160721607316074160751607616077160781607916080160811608216083160841608516086160871608816089160901609116092160931609416095160961609716098160991610016101161021610316104161051610616107161081610916110161111611216113161141611516116161171611816119161201612116122161231612416125161261612716128161291613016131161321613316134161351613616137161381613916140161411614216143161441614516146161471614816149161501615116152161531615416155161561615716158161591616016161161621616316164161651616616167161681616916170161711617216173161741617516176161771617816179161801618116182161831618416185161861618716188161891619016191161921619316194161951619616197161981619916200162011620216203162041620516206162071620816209162101621116212162131621416215162161621716218162191622016221162221622316224162251622616227162281622916230162311623216233162341623516236162371623816239162401624116242162431624416245162461624716248162491625016251162521625316254162551625616257162581625916260162611626216263162641626516266162671626816269162701627116272162731627416275162761627716278162791628016281162821628316284162851628616287162881628916290162911629216293162941629516296162971629816299163001630116302163031630416305163061630716308163091631016311163121631316314163151631616317163181631916320163211632216323163241632516326163271632816329163301633116332163331633416335163361633716338163391634016341163421634316344163451634616347163481634916350163511635216353163541635516356163571635816359163601636116362163631636416365163661636716368163691637016371163721637316374163751637616377163781637916380163811638216383163841638516386163871638816389163901639116392163931639416395163961639716398163991640016401164021640316404164051640616407164081640916410164111641216413164141641516416164171641816419164201642116422164231642416425164261642716428164291643016431164321643316434164351643616437164381643916440164411644216443164441644516446164471644816449164501645116452164531645416455164561645716458164591646016461164621646316464164651646616467164681646916470164711647216473164741647516476164771647816479164801648116482164831648416485164861648716488164891649016491164921649316494164951649616497164981649916500165011650216503165041650516506165071650816509165101651116512165131651416515165161651716518165191652016521165221652316524165251652616527165281652916530165311653216533165341653516536165371653816539165401654116542165431654416545165461654716548165491655016551165521655316554165551655616557165581655916560165611656216563165641656516566165671656816569165701657116572165731657416575165761657716578165791658016581165821658316584165851658616587165881658916590165911659216593165941659516596165971659816599166001660116602166031660416605166061660716608166091661016611166121661316614166151661616617166181661916620166211662216623166241662516626166271662816629166301663116632166331663416635166361663716638166391664016641166421664316644166451664616647166481664916650166511665216653166541665516656166571665816659166601666116662166631666416665166661666716668166691667016671166721667316674166751667616677166781667916680
  1. #! /bin/sh
  2. # Guess values for system-dependent variables and create Makefiles.
  3. # Generated by GNU Autoconf 2.65 for aria2 1.9.0a.
  4. #
  5. # Report bugs to <t-tujikawa@users.sourceforge.net>.
  6. #
  7. #
  8. # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
  9. # 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009 Free Software Foundation,
  10. # Inc.
  11. #
  12. #
  13. # This configure script is free software; the Free Software Foundation
  14. # gives unlimited permission to copy, distribute and modify it.
  15. ## -------------------- ##
  16. ## M4sh Initialization. ##
  17. ## -------------------- ##
  18. # Be more Bourne compatible
  19. DUALCASE=1; export DUALCASE # for MKS sh
  20. if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
  21. emulate sh
  22. NULLCMD=:
  23. # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
  24. # is contrary to our usage. Disable this feature.
  25. alias -g '${1+"$@"}'='"$@"'
  26. setopt NO_GLOB_SUBST
  27. else
  28. case `(set -o) 2>/dev/null` in #(
  29. *posix*) :
  30. set -o posix ;; #(
  31. *) :
  32. ;;
  33. esac
  34. fi
  35. as_nl='
  36. '
  37. export as_nl
  38. # Printing a long string crashes Solaris 7 /usr/bin/printf.
  39. as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
  40. as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
  41. as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
  42. # Prefer a ksh shell builtin over an external printf program on Solaris,
  43. # but without wasting forks for bash or zsh.
  44. if test -z "$BASH_VERSION$ZSH_VERSION" \
  45. && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
  46. as_echo='print -r --'
  47. as_echo_n='print -rn --'
  48. elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
  49. as_echo='printf %s\n'
  50. as_echo_n='printf %s'
  51. else
  52. if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
  53. as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
  54. as_echo_n='/usr/ucb/echo -n'
  55. else
  56. as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
  57. as_echo_n_body='eval
  58. arg=$1;
  59. case $arg in #(
  60. *"$as_nl"*)
  61. expr "X$arg" : "X\\(.*\\)$as_nl";
  62. arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
  63. esac;
  64. expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
  65. '
  66. export as_echo_n_body
  67. as_echo_n='sh -c $as_echo_n_body as_echo'
  68. fi
  69. export as_echo_body
  70. as_echo='sh -c $as_echo_body as_echo'
  71. fi
  72. # The user is always right.
  73. if test "${PATH_SEPARATOR+set}" != set; then
  74. PATH_SEPARATOR=:
  75. (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
  76. (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
  77. PATH_SEPARATOR=';'
  78. }
  79. fi
  80. # IFS
  81. # We need space, tab and new line, in precisely that order. Quoting is
  82. # there to prevent editors from complaining about space-tab.
  83. # (If _AS_PATH_WALK were called with IFS unset, it would disable word
  84. # splitting by setting IFS to empty value.)
  85. IFS=" "" $as_nl"
  86. # Find who we are. Look in the path if we contain no directory separator.
  87. case $0 in #((
  88. *[\\/]* ) as_myself=$0 ;;
  89. *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  90. for as_dir in $PATH
  91. do
  92. IFS=$as_save_IFS
  93. test -z "$as_dir" && as_dir=.
  94. test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
  95. done
  96. IFS=$as_save_IFS
  97. ;;
  98. esac
  99. # We did not find ourselves, most probably we were run as `sh COMMAND'
  100. # in which case we are not to be found in the path.
  101. if test "x$as_myself" = x; then
  102. as_myself=$0
  103. fi
  104. if test ! -f "$as_myself"; then
  105. $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
  106. exit 1
  107. fi
  108. # Unset variables that we do not need and which cause bugs (e.g. in
  109. # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
  110. # suppresses any "Segmentation fault" message there. '((' could
  111. # trigger a bug in pdksh 5.2.14.
  112. for as_var in BASH_ENV ENV MAIL MAILPATH
  113. do eval test x\${$as_var+set} = xset \
  114. && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
  115. done
  116. PS1='$ '
  117. PS2='> '
  118. PS4='+ '
  119. # NLS nuisances.
  120. LC_ALL=C
  121. export LC_ALL
  122. LANGUAGE=C
  123. export LANGUAGE
  124. # CDPATH.
  125. (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
  126. if test "x$CONFIG_SHELL" = x; then
  127. as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
  128. emulate sh
  129. NULLCMD=:
  130. # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
  131. # is contrary to our usage. Disable this feature.
  132. alias -g '\${1+\"\$@\"}'='\"\$@\"'
  133. setopt NO_GLOB_SUBST
  134. else
  135. case \`(set -o) 2>/dev/null\` in #(
  136. *posix*) :
  137. set -o posix ;; #(
  138. *) :
  139. ;;
  140. esac
  141. fi
  142. "
  143. as_required="as_fn_return () { (exit \$1); }
  144. as_fn_success () { as_fn_return 0; }
  145. as_fn_failure () { as_fn_return 1; }
  146. as_fn_ret_success () { return 0; }
  147. as_fn_ret_failure () { return 1; }
  148. exitcode=0
  149. as_fn_success || { exitcode=1; echo as_fn_success failed.; }
  150. as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
  151. as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
  152. as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
  153. if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
  154. else
  155. exitcode=1; echo positional parameters were not saved.
  156. fi
  157. test x\$exitcode = x0 || exit 1"
  158. as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
  159. as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
  160. eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
  161. test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
  162. test \$(( 1 + 1 )) = 2 || exit 1"
  163. if (eval "$as_required") 2>/dev/null; then :
  164. as_have_required=yes
  165. else
  166. as_have_required=no
  167. fi
  168. if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
  169. else
  170. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  171. as_found=false
  172. for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
  173. do
  174. IFS=$as_save_IFS
  175. test -z "$as_dir" && as_dir=.
  176. as_found=:
  177. case $as_dir in #(
  178. /*)
  179. for as_base in sh bash ksh sh5; do
  180. # Try only shells that exist, to save several forks.
  181. as_shell=$as_dir/$as_base
  182. if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
  183. { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
  184. CONFIG_SHELL=$as_shell as_have_required=yes
  185. if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
  186. break 2
  187. fi
  188. fi
  189. done;;
  190. esac
  191. as_found=false
  192. done
  193. $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
  194. { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
  195. CONFIG_SHELL=$SHELL as_have_required=yes
  196. fi; }
  197. IFS=$as_save_IFS
  198. if test "x$CONFIG_SHELL" != x; then :
  199. # We cannot yet assume a decent shell, so we have to provide a
  200. # neutralization value for shells without unset; and this also
  201. # works around shells that cannot unset nonexistent variables.
  202. BASH_ENV=/dev/null
  203. ENV=/dev/null
  204. (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
  205. export CONFIG_SHELL
  206. exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
  207. fi
  208. if test x$as_have_required = xno; then :
  209. $as_echo "$0: This script requires a shell more modern than all"
  210. $as_echo "$0: the shells that I found on your system."
  211. if test x${ZSH_VERSION+set} = xset ; then
  212. $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
  213. $as_echo "$0: be upgraded to zsh 4.3.4 or later."
  214. else
  215. $as_echo "$0: Please tell bug-autoconf@gnu.org and
  216. $0: t-tujikawa@users.sourceforge.net about your system,
  217. $0: including any error possibly output before this
  218. $0: message. Then install a modern shell, or manually run
  219. $0: the script under such a shell if you do have one."
  220. fi
  221. exit 1
  222. fi
  223. fi
  224. fi
  225. SHELL=${CONFIG_SHELL-/bin/sh}
  226. export SHELL
  227. # Unset more variables known to interfere with behavior of common tools.
  228. CLICOLOR_FORCE= GREP_OPTIONS=
  229. unset CLICOLOR_FORCE GREP_OPTIONS
  230. ## --------------------- ##
  231. ## M4sh Shell Functions. ##
  232. ## --------------------- ##
  233. # as_fn_unset VAR
  234. # ---------------
  235. # Portably unset VAR.
  236. as_fn_unset ()
  237. {
  238. { eval $1=; unset $1;}
  239. }
  240. as_unset=as_fn_unset
  241. # as_fn_set_status STATUS
  242. # -----------------------
  243. # Set $? to STATUS, without forking.
  244. as_fn_set_status ()
  245. {
  246. return $1
  247. } # as_fn_set_status
  248. # as_fn_exit STATUS
  249. # -----------------
  250. # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
  251. as_fn_exit ()
  252. {
  253. set +e
  254. as_fn_set_status $1
  255. exit $1
  256. } # as_fn_exit
  257. # as_fn_mkdir_p
  258. # -------------
  259. # Create "$as_dir" as a directory, including parents if necessary.
  260. as_fn_mkdir_p ()
  261. {
  262. case $as_dir in #(
  263. -*) as_dir=./$as_dir;;
  264. esac
  265. test -d "$as_dir" || eval $as_mkdir_p || {
  266. as_dirs=
  267. while :; do
  268. case $as_dir in #(
  269. *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
  270. *) as_qdir=$as_dir;;
  271. esac
  272. as_dirs="'$as_qdir' $as_dirs"
  273. as_dir=`$as_dirname -- "$as_dir" ||
  274. $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  275. X"$as_dir" : 'X\(//\)[^/]' \| \
  276. X"$as_dir" : 'X\(//\)$' \| \
  277. X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
  278. $as_echo X"$as_dir" |
  279. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  280. s//\1/
  281. q
  282. }
  283. /^X\(\/\/\)[^/].*/{
  284. s//\1/
  285. q
  286. }
  287. /^X\(\/\/\)$/{
  288. s//\1/
  289. q
  290. }
  291. /^X\(\/\).*/{
  292. s//\1/
  293. q
  294. }
  295. s/.*/./; q'`
  296. test -d "$as_dir" && break
  297. done
  298. test -z "$as_dirs" || eval "mkdir $as_dirs"
  299. } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
  300. } # as_fn_mkdir_p
  301. # as_fn_append VAR VALUE
  302. # ----------------------
  303. # Append the text in VALUE to the end of the definition contained in VAR. Take
  304. # advantage of any shell optimizations that allow amortized linear growth over
  305. # repeated appends, instead of the typical quadratic growth present in naive
  306. # implementations.
  307. if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
  308. eval 'as_fn_append ()
  309. {
  310. eval $1+=\$2
  311. }'
  312. else
  313. as_fn_append ()
  314. {
  315. eval $1=\$$1\$2
  316. }
  317. fi # as_fn_append
  318. # as_fn_arith ARG...
  319. # ------------------
  320. # Perform arithmetic evaluation on the ARGs, and store the result in the
  321. # global $as_val. Take advantage of shells that can avoid forks. The arguments
  322. # must be portable across $(()) and expr.
  323. if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
  324. eval 'as_fn_arith ()
  325. {
  326. as_val=$(( $* ))
  327. }'
  328. else
  329. as_fn_arith ()
  330. {
  331. as_val=`expr "$@" || test $? -eq 1`
  332. }
  333. fi # as_fn_arith
  334. # as_fn_error ERROR [LINENO LOG_FD]
  335. # ---------------------------------
  336. # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
  337. # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
  338. # script with status $?, using 1 if that was 0.
  339. as_fn_error ()
  340. {
  341. as_status=$?; test $as_status -eq 0 && as_status=1
  342. if test "$3"; then
  343. as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  344. $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
  345. fi
  346. $as_echo "$as_me: error: $1" >&2
  347. as_fn_exit $as_status
  348. } # as_fn_error
  349. if expr a : '\(a\)' >/dev/null 2>&1 &&
  350. test "X`expr 00001 : '.*\(...\)'`" = X001; then
  351. as_expr=expr
  352. else
  353. as_expr=false
  354. fi
  355. if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
  356. as_basename=basename
  357. else
  358. as_basename=false
  359. fi
  360. if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
  361. as_dirname=dirname
  362. else
  363. as_dirname=false
  364. fi
  365. as_me=`$as_basename -- "$0" ||
  366. $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
  367. X"$0" : 'X\(//\)$' \| \
  368. X"$0" : 'X\(/\)' \| . 2>/dev/null ||
  369. $as_echo X/"$0" |
  370. sed '/^.*\/\([^/][^/]*\)\/*$/{
  371. s//\1/
  372. q
  373. }
  374. /^X\/\(\/\/\)$/{
  375. s//\1/
  376. q
  377. }
  378. /^X\/\(\/\).*/{
  379. s//\1/
  380. q
  381. }
  382. s/.*/./; q'`
  383. # Avoid depending upon Character Ranges.
  384. as_cr_letters='abcdefghijklmnopqrstuvwxyz'
  385. as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
  386. as_cr_Letters=$as_cr_letters$as_cr_LETTERS
  387. as_cr_digits='0123456789'
  388. as_cr_alnum=$as_cr_Letters$as_cr_digits
  389. as_lineno_1=$LINENO as_lineno_1a=$LINENO
  390. as_lineno_2=$LINENO as_lineno_2a=$LINENO
  391. eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
  392. test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
  393. # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
  394. sed -n '
  395. p
  396. /[$]LINENO/=
  397. ' <$as_myself |
  398. sed '
  399. s/[$]LINENO.*/&-/
  400. t lineno
  401. b
  402. :lineno
  403. N
  404. :loop
  405. s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
  406. t loop
  407. s/-\n.*//
  408. ' >$as_me.lineno &&
  409. chmod +x "$as_me.lineno" ||
  410. { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
  411. # Don't try to exec as it changes $[0], causing all sort of problems
  412. # (the dirname of $[0] is not the place where we might find the
  413. # original and so on. Autoconf is especially sensitive to this).
  414. . "./$as_me.lineno"
  415. # Exit status is that of the last command.
  416. exit
  417. }
  418. ECHO_C= ECHO_N= ECHO_T=
  419. case `echo -n x` in #(((((
  420. -n*)
  421. case `echo 'xy\c'` in
  422. *c*) ECHO_T=' ';; # ECHO_T is single tab character.
  423. xy) ECHO_C='\c';;
  424. *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
  425. ECHO_T=' ';;
  426. esac;;
  427. *)
  428. ECHO_N='-n';;
  429. esac
  430. rm -f conf$$ conf$$.exe conf$$.file
  431. if test -d conf$$.dir; then
  432. rm -f conf$$.dir/conf$$.file
  433. else
  434. rm -f conf$$.dir
  435. mkdir conf$$.dir 2>/dev/null
  436. fi
  437. if (echo >conf$$.file) 2>/dev/null; then
  438. if ln -s conf$$.file conf$$ 2>/dev/null; then
  439. as_ln_s='ln -s'
  440. # ... but there are two gotchas:
  441. # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
  442. # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
  443. # In both cases, we have to default to `cp -p'.
  444. ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
  445. as_ln_s='cp -p'
  446. elif ln conf$$.file conf$$ 2>/dev/null; then
  447. as_ln_s=ln
  448. else
  449. as_ln_s='cp -p'
  450. fi
  451. else
  452. as_ln_s='cp -p'
  453. fi
  454. rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
  455. rmdir conf$$.dir 2>/dev/null
  456. if mkdir -p . 2>/dev/null; then
  457. as_mkdir_p='mkdir -p "$as_dir"'
  458. else
  459. test -d ./-p && rmdir ./-p
  460. as_mkdir_p=false
  461. fi
  462. if test -x / >/dev/null 2>&1; then
  463. as_test_x='test -x'
  464. else
  465. if ls -dL / >/dev/null 2>&1; then
  466. as_ls_L_option=L
  467. else
  468. as_ls_L_option=
  469. fi
  470. as_test_x='
  471. eval sh -c '\''
  472. if test -d "$1"; then
  473. test -d "$1/.";
  474. else
  475. case $1 in #(
  476. -*)set "./$1";;
  477. esac;
  478. case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
  479. ???[sx]*):;;*)false;;esac;fi
  480. '\'' sh
  481. '
  482. fi
  483. as_executable_p=$as_test_x
  484. # Sed expression to map a string onto a valid CPP name.
  485. as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
  486. # Sed expression to map a string onto a valid variable name.
  487. as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
  488. test -n "$DJDIR" || exec 7<&0 </dev/null
  489. exec 6>&1
  490. # Name of the host.
  491. # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
  492. # so uname gets run too.
  493. ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
  494. #
  495. # Initializations.
  496. #
  497. ac_default_prefix=/usr/local
  498. ac_clean_files=
  499. ac_config_libobj_dir=.
  500. LIBOBJS=
  501. cross_compiling=no
  502. subdirs=
  503. MFLAGS=
  504. MAKEFLAGS=
  505. # Identity of this package.
  506. PACKAGE_NAME='aria2'
  507. PACKAGE_TARNAME='aria2'
  508. PACKAGE_VERSION='1.9.0a'
  509. PACKAGE_STRING='aria2 1.9.0a'
  510. PACKAGE_BUGREPORT='t-tujikawa@users.sourceforge.net'
  511. PACKAGE_URL='http://aria2.sourceforge.net/'
  512. ac_unique_file="src/a2io.h"
  513. # Factoring default headers for most tests.
  514. ac_includes_default="\
  515. #include <stdio.h>
  516. #ifdef HAVE_SYS_TYPES_H
  517. # include <sys/types.h>
  518. #endif
  519. #ifdef HAVE_SYS_STAT_H
  520. # include <sys/stat.h>
  521. #endif
  522. #ifdef STDC_HEADERS
  523. # include <stdlib.h>
  524. # include <stddef.h>
  525. #else
  526. # ifdef HAVE_STDLIB_H
  527. # include <stdlib.h>
  528. # endif
  529. #endif
  530. #ifdef HAVE_STRING_H
  531. # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
  532. # include <memory.h>
  533. # endif
  534. # include <string.h>
  535. #endif
  536. #ifdef HAVE_STRINGS_H
  537. # include <strings.h>
  538. #endif
  539. #ifdef HAVE_INTTYPES_H
  540. # include <inttypes.h>
  541. #endif
  542. #ifdef HAVE_STDINT_H
  543. # include <stdint.h>
  544. #endif
  545. #ifdef HAVE_UNISTD_H
  546. # include <unistd.h>
  547. #endif"
  548. gt_needs=
  549. ac_header_list=
  550. ac_func_list=
  551. ac_subst_vars='am__EXEEXT_FALSE
  552. am__EXEEXT_TRUE
  553. LTLIBOBJS
  554. HAVE_DAEMON_FALSE
  555. HAVE_DAEMON_TRUE
  556. HAVE_TIMEGM_FALSE
  557. HAVE_TIMEGM_TRUE
  558. HAVE_STRPTIME_FALSE
  559. HAVE_STRPTIME_TRUE
  560. HAVE_LOCALTIME_R_FALSE
  561. HAVE_LOCALTIME_R_TRUE
  562. HAVE_INET_ATON_FALSE
  563. HAVE_INET_ATON_TRUE
  564. HAVE_GETTIMEOFDAY_FALSE
  565. HAVE_GETTIMEOFDAY_TRUE
  566. HAVE_GETADDRINFO_FALSE
  567. HAVE_GETADDRINFO_TRUE
  568. HAVE_GAI_STRERROR_FALSE
  569. HAVE_GAI_STRERROR_TRUE
  570. HAVE_BASENAME_FALSE
  571. HAVE_BASENAME_TRUE
  572. HAVE_ASCTIME_R_FALSE
  573. HAVE_ASCTIME_R_TRUE
  574. HAVE_POSIX_FALLOCATE_FALSE
  575. HAVE_POSIX_FALLOCATE_TRUE
  576. HAVE_EPOLL_FALSE
  577. HAVE_EPOLL_TRUE
  578. POW_LIB
  579. LIBOBJS
  580. POSUB
  581. LTLIBINTL
  582. LIBINTL
  583. INTLLIBS
  584. INTL_LIBTOOL_SUFFIX_PREFIX
  585. INTLOBJS
  586. GENCAT
  587. INSTOBJEXT
  588. DATADIRNAME
  589. CATOBJEXT
  590. USE_INCLUDED_LIBINTL
  591. BUILD_INCLUDED_LIBINTL
  592. LTLIBC
  593. WINDRES
  594. WOE32
  595. WOE32DLL
  596. HAVE_WPRINTF
  597. HAVE_SNPRINTF
  598. HAVE_ASPRINTF
  599. HAVE_POSIX_PRINTF
  600. INTL_MACOSX_LIBS
  601. GLIBC21
  602. INTLBISON
  603. LTLIBICONV
  604. LIBICONV
  605. LTLIBMULTITHREAD
  606. LIBMULTITHREAD
  607. LTLIBTHREAD
  608. LIBTHREAD
  609. LIBPTH_PREFIX
  610. LTLIBPTH
  611. LIBPTH
  612. PRI_MACROS_BROKEN
  613. HAVE_VISIBILITY
  614. CFLAG_VISIBILITY
  615. GLIBC2
  616. XGETTEXT_EXTRA_OPTIONS
  617. MSGMERGE
  618. XGETTEXT_015
  619. XGETTEXT
  620. GMSGFMT_015
  621. MSGFMT_015
  622. GMSGFMT
  623. MSGFMT
  624. GETTEXT_MACRO_VERSION
  625. USE_NLS
  626. ALLOCA
  627. HAVE_SQLITE3_FALSE
  628. HAVE_SQLITE3_TRUE
  629. HAVE_LIBZ_FALSE
  630. HAVE_LIBZ_TRUE
  631. ENABLE_ASYNC_DNS_FALSE
  632. ENABLE_ASYNC_DNS_TRUE
  633. HAVE_LIBEXPAT_FALSE
  634. HAVE_LIBEXPAT_TRUE
  635. HAVE_LIBXML2_FALSE
  636. HAVE_LIBXML2_TRUE
  637. ENABLE_XML_RPC_FALSE
  638. ENABLE_XML_RPC_TRUE
  639. ENABLE_METALINK_LIBEXPAT_FALSE
  640. ENABLE_METALINK_LIBEXPAT_TRUE
  641. ENABLE_METALINK_LIBXML2_FALSE
  642. ENABLE_METALINK_LIBXML2_TRUE
  643. ENABLE_METALINK_FALSE
  644. ENABLE_METALINK_TRUE
  645. ENABLE_BITTORRENT_FALSE
  646. ENABLE_BITTORRENT_TRUE
  647. ENABLE_MESSAGE_DIGEST_FALSE
  648. ENABLE_MESSAGE_DIGEST_TRUE
  649. HAVE_LIBSSL_FALSE
  650. HAVE_LIBSSL_TRUE
  651. HAVE_LIBGNUTLS_FALSE
  652. HAVE_LIBGNUTLS_TRUE
  653. ca_bundle
  654. ENABLE_SSL_FALSE
  655. ENABLE_SSL_TRUE
  656. LIBZ_CPPFLAGS
  657. LIBZ_LIBS
  658. LIBCARES_CPPFLAGS
  659. LIBCARES_LIBS
  660. OPENSSL_CFLAGS
  661. OPENSSL_LIBS
  662. LIBGCRYPT_LIBS
  663. LIBGCRYPT_CFLAGS
  664. LIBGCRYPT_CONFIG
  665. LIBGNUTLS_CONFIG
  666. LIBGNUTLS_LIBS
  667. LIBGNUTLS_CFLAGS
  668. SQLITE3_LIBS
  669. SQLITE3_CFLAGS
  670. LIBEXPAT_CPPFLAGS
  671. LIBEXPAT_LIBS
  672. XML_LIBS
  673. XML_CPPFLAGS
  674. XML2_CONFIG
  675. PKG_CONFIG
  676. EGREP
  677. GREP
  678. CXXCPP
  679. YFLAGS
  680. YACC
  681. RANLIB
  682. am__fastdepCC_FALSE
  683. am__fastdepCC_TRUE
  684. CCDEPMODE
  685. ac_ct_CC
  686. CFLAGS
  687. CC
  688. am__fastdepCXX_FALSE
  689. am__fastdepCXX_TRUE
  690. CXXDEPMODE
  691. AMDEPBACKSLASH
  692. AMDEP_FALSE
  693. AMDEP_TRUE
  694. am__quote
  695. am__include
  696. DEPDIR
  697. OBJEXT
  698. EXEEXT
  699. ac_ct_CXX
  700. CPPFLAGS
  701. LDFLAGS
  702. CXXFLAGS
  703. CXX
  704. WINSOCK_LIBS
  705. CPPUNIT_LIBS
  706. CPPUNIT_CFLAGS
  707. CPPUNIT_CONFIG
  708. am__untar
  709. am__tar
  710. AMTAR
  711. am__leading_dot
  712. SET_MAKE
  713. AWK
  714. mkdir_p
  715. MKDIR_P
  716. INSTALL_STRIP_PROGRAM
  717. STRIP
  718. install_sh
  719. MAKEINFO
  720. AUTOHEADER
  721. AUTOMAKE
  722. AUTOCONF
  723. ACLOCAL
  724. VERSION
  725. PACKAGE
  726. CYGPATH_W
  727. am__isrc
  728. INSTALL_DATA
  729. INSTALL_SCRIPT
  730. INSTALL_PROGRAM
  731. target_os
  732. target_vendor
  733. target_cpu
  734. target
  735. host_os
  736. host_vendor
  737. host_cpu
  738. host
  739. build_os
  740. build_vendor
  741. build_cpu
  742. build
  743. target_alias
  744. host_alias
  745. build_alias
  746. LIBS
  747. ECHO_T
  748. ECHO_N
  749. ECHO_C
  750. DEFS
  751. mandir
  752. localedir
  753. libdir
  754. psdir
  755. pdfdir
  756. dvidir
  757. htmldir
  758. infodir
  759. docdir
  760. oldincludedir
  761. includedir
  762. localstatedir
  763. sharedstatedir
  764. sysconfdir
  765. datadir
  766. datarootdir
  767. libexecdir
  768. sbindir
  769. bindir
  770. program_transform_name
  771. prefix
  772. exec_prefix
  773. PACKAGE_URL
  774. PACKAGE_BUGREPORT
  775. PACKAGE_STRING
  776. PACKAGE_VERSION
  777. PACKAGE_TARNAME
  778. PACKAGE_NAME
  779. PATH_SEPARATOR
  780. SHELL'
  781. ac_subst_files=''
  782. ac_user_opts='
  783. enable_option_checking
  784. with_cppunit_prefix
  785. with_cppunit_exec_prefix
  786. with_gnutls
  787. with_openssl
  788. with_sqlite3
  789. with_libxml2
  790. with_libexpat
  791. with_libcares
  792. with_libz
  793. enable_bittorrent
  794. enable_metalink
  795. enable_epoll
  796. with_ca_bundle
  797. enable_dependency_tracking
  798. with_xml_prefix
  799. with_xml_exec_prefix
  800. enable_xmltest
  801. with_libexpat_prefix
  802. with_sqlite3_prefix
  803. with_libgnutls_prefix
  804. with_libgcrypt_prefix
  805. with_openssl_prefix
  806. with_libcares_prefix
  807. with_libz_prefix
  808. enable_largefile
  809. enable_nls
  810. enable_threads
  811. with_gnu_ld
  812. enable_rpath
  813. with_libpth_prefix
  814. with_libiconv_prefix
  815. with_included_gettext
  816. with_libintl_prefix
  817. '
  818. ac_precious_vars='build_alias
  819. host_alias
  820. target_alias
  821. CXX
  822. CXXFLAGS
  823. LDFLAGS
  824. LIBS
  825. CPPFLAGS
  826. CCC
  827. CC
  828. CFLAGS
  829. YACC
  830. YFLAGS
  831. CXXCPP
  832. PKG_CONFIG
  833. SQLITE3_CFLAGS
  834. SQLITE3_LIBS
  835. LIBGNUTLS_CFLAGS
  836. LIBGNUTLS_LIBS'
  837. # Initialize some variables set by options.
  838. ac_init_help=
  839. ac_init_version=false
  840. ac_unrecognized_opts=
  841. ac_unrecognized_sep=
  842. # The variables have the same names as the options, with
  843. # dashes changed to underlines.
  844. cache_file=/dev/null
  845. exec_prefix=NONE
  846. no_create=
  847. no_recursion=
  848. prefix=NONE
  849. program_prefix=NONE
  850. program_suffix=NONE
  851. program_transform_name=s,x,x,
  852. silent=
  853. site=
  854. srcdir=
  855. verbose=
  856. x_includes=NONE
  857. x_libraries=NONE
  858. # Installation directory options.
  859. # These are left unexpanded so users can "make install exec_prefix=/foo"
  860. # and all the variables that are supposed to be based on exec_prefix
  861. # by default will actually change.
  862. # Use braces instead of parens because sh, perl, etc. also accept them.
  863. # (The list follows the same order as the GNU Coding Standards.)
  864. bindir='${exec_prefix}/bin'
  865. sbindir='${exec_prefix}/sbin'
  866. libexecdir='${exec_prefix}/libexec'
  867. datarootdir='${prefix}/share'
  868. datadir='${datarootdir}'
  869. sysconfdir='${prefix}/etc'
  870. sharedstatedir='${prefix}/com'
  871. localstatedir='${prefix}/var'
  872. includedir='${prefix}/include'
  873. oldincludedir='/usr/include'
  874. docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
  875. infodir='${datarootdir}/info'
  876. htmldir='${docdir}'
  877. dvidir='${docdir}'
  878. pdfdir='${docdir}'
  879. psdir='${docdir}'
  880. libdir='${exec_prefix}/lib'
  881. localedir='${datarootdir}/locale'
  882. mandir='${datarootdir}/man'
  883. ac_prev=
  884. ac_dashdash=
  885. for ac_option
  886. do
  887. # If the previous option needs an argument, assign it.
  888. if test -n "$ac_prev"; then
  889. eval $ac_prev=\$ac_option
  890. ac_prev=
  891. continue
  892. fi
  893. case $ac_option in
  894. *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
  895. *) ac_optarg=yes ;;
  896. esac
  897. # Accept the important Cygnus configure options, so we can diagnose typos.
  898. case $ac_dashdash$ac_option in
  899. --)
  900. ac_dashdash=yes ;;
  901. -bindir | --bindir | --bindi | --bind | --bin | --bi)
  902. ac_prev=bindir ;;
  903. -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
  904. bindir=$ac_optarg ;;
  905. -build | --build | --buil | --bui | --bu)
  906. ac_prev=build_alias ;;
  907. -build=* | --build=* | --buil=* | --bui=* | --bu=*)
  908. build_alias=$ac_optarg ;;
  909. -cache-file | --cache-file | --cache-fil | --cache-fi \
  910. | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
  911. ac_prev=cache_file ;;
  912. -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
  913. | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
  914. cache_file=$ac_optarg ;;
  915. --config-cache | -C)
  916. cache_file=config.cache ;;
  917. -datadir | --datadir | --datadi | --datad)
  918. ac_prev=datadir ;;
  919. -datadir=* | --datadir=* | --datadi=* | --datad=*)
  920. datadir=$ac_optarg ;;
  921. -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
  922. | --dataroo | --dataro | --datar)
  923. ac_prev=datarootdir ;;
  924. -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
  925. | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
  926. datarootdir=$ac_optarg ;;
  927. -disable-* | --disable-*)
  928. ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
  929. # Reject names that are not valid shell variable names.
  930. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  931. as_fn_error "invalid feature name: $ac_useropt"
  932. ac_useropt_orig=$ac_useropt
  933. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  934. case $ac_user_opts in
  935. *"
  936. "enable_$ac_useropt"
  937. "*) ;;
  938. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
  939. ac_unrecognized_sep=', ';;
  940. esac
  941. eval enable_$ac_useropt=no ;;
  942. -docdir | --docdir | --docdi | --doc | --do)
  943. ac_prev=docdir ;;
  944. -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
  945. docdir=$ac_optarg ;;
  946. -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
  947. ac_prev=dvidir ;;
  948. -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
  949. dvidir=$ac_optarg ;;
  950. -enable-* | --enable-*)
  951. ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
  952. # Reject names that are not valid shell variable names.
  953. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  954. as_fn_error "invalid feature name: $ac_useropt"
  955. ac_useropt_orig=$ac_useropt
  956. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  957. case $ac_user_opts in
  958. *"
  959. "enable_$ac_useropt"
  960. "*) ;;
  961. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
  962. ac_unrecognized_sep=', ';;
  963. esac
  964. eval enable_$ac_useropt=\$ac_optarg ;;
  965. -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
  966. | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
  967. | --exec | --exe | --ex)
  968. ac_prev=exec_prefix ;;
  969. -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
  970. | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
  971. | --exec=* | --exe=* | --ex=*)
  972. exec_prefix=$ac_optarg ;;
  973. -gas | --gas | --ga | --g)
  974. # Obsolete; use --with-gas.
  975. with_gas=yes ;;
  976. -help | --help | --hel | --he | -h)
  977. ac_init_help=long ;;
  978. -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
  979. ac_init_help=recursive ;;
  980. -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
  981. ac_init_help=short ;;
  982. -host | --host | --hos | --ho)
  983. ac_prev=host_alias ;;
  984. -host=* | --host=* | --hos=* | --ho=*)
  985. host_alias=$ac_optarg ;;
  986. -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
  987. ac_prev=htmldir ;;
  988. -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
  989. | --ht=*)
  990. htmldir=$ac_optarg ;;
  991. -includedir | --includedir | --includedi | --included | --include \
  992. | --includ | --inclu | --incl | --inc)
  993. ac_prev=includedir ;;
  994. -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
  995. | --includ=* | --inclu=* | --incl=* | --inc=*)
  996. includedir=$ac_optarg ;;
  997. -infodir | --infodir | --infodi | --infod | --info | --inf)
  998. ac_prev=infodir ;;
  999. -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
  1000. infodir=$ac_optarg ;;
  1001. -libdir | --libdir | --libdi | --libd)
  1002. ac_prev=libdir ;;
  1003. -libdir=* | --libdir=* | --libdi=* | --libd=*)
  1004. libdir=$ac_optarg ;;
  1005. -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
  1006. | --libexe | --libex | --libe)
  1007. ac_prev=libexecdir ;;
  1008. -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
  1009. | --libexe=* | --libex=* | --libe=*)
  1010. libexecdir=$ac_optarg ;;
  1011. -localedir | --localedir | --localedi | --localed | --locale)
  1012. ac_prev=localedir ;;
  1013. -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
  1014. localedir=$ac_optarg ;;
  1015. -localstatedir | --localstatedir | --localstatedi | --localstated \
  1016. | --localstate | --localstat | --localsta | --localst | --locals)
  1017. ac_prev=localstatedir ;;
  1018. -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
  1019. | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
  1020. localstatedir=$ac_optarg ;;
  1021. -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
  1022. ac_prev=mandir ;;
  1023. -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
  1024. mandir=$ac_optarg ;;
  1025. -nfp | --nfp | --nf)
  1026. # Obsolete; use --without-fp.
  1027. with_fp=no ;;
  1028. -no-create | --no-create | --no-creat | --no-crea | --no-cre \
  1029. | --no-cr | --no-c | -n)
  1030. no_create=yes ;;
  1031. -no-recursion | --no-recursion | --no-recursio | --no-recursi \
  1032. | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
  1033. no_recursion=yes ;;
  1034. -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
  1035. | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
  1036. | --oldin | --oldi | --old | --ol | --o)
  1037. ac_prev=oldincludedir ;;
  1038. -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
  1039. | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
  1040. | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
  1041. oldincludedir=$ac_optarg ;;
  1042. -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
  1043. ac_prev=prefix ;;
  1044. -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
  1045. prefix=$ac_optarg ;;
  1046. -program-prefix | --program-prefix | --program-prefi | --program-pref \
  1047. | --program-pre | --program-pr | --program-p)
  1048. ac_prev=program_prefix ;;
  1049. -program-prefix=* | --program-prefix=* | --program-prefi=* \
  1050. | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
  1051. program_prefix=$ac_optarg ;;
  1052. -program-suffix | --program-suffix | --program-suffi | --program-suff \
  1053. | --program-suf | --program-su | --program-s)
  1054. ac_prev=program_suffix ;;
  1055. -program-suffix=* | --program-suffix=* | --program-suffi=* \
  1056. | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
  1057. program_suffix=$ac_optarg ;;
  1058. -program-transform-name | --program-transform-name \
  1059. | --program-transform-nam | --program-transform-na \
  1060. | --program-transform-n | --program-transform- \
  1061. | --program-transform | --program-transfor \
  1062. | --program-transfo | --program-transf \
  1063. | --program-trans | --program-tran \
  1064. | --progr-tra | --program-tr | --program-t)
  1065. ac_prev=program_transform_name ;;
  1066. -program-transform-name=* | --program-transform-name=* \
  1067. | --program-transform-nam=* | --program-transform-na=* \
  1068. | --program-transform-n=* | --program-transform-=* \
  1069. | --program-transform=* | --program-transfor=* \
  1070. | --program-transfo=* | --program-transf=* \
  1071. | --program-trans=* | --program-tran=* \
  1072. | --progr-tra=* | --program-tr=* | --program-t=*)
  1073. program_transform_name=$ac_optarg ;;
  1074. -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
  1075. ac_prev=pdfdir ;;
  1076. -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
  1077. pdfdir=$ac_optarg ;;
  1078. -psdir | --psdir | --psdi | --psd | --ps)
  1079. ac_prev=psdir ;;
  1080. -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
  1081. psdir=$ac_optarg ;;
  1082. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  1083. | -silent | --silent | --silen | --sile | --sil)
  1084. silent=yes ;;
  1085. -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
  1086. ac_prev=sbindir ;;
  1087. -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
  1088. | --sbi=* | --sb=*)
  1089. sbindir=$ac_optarg ;;
  1090. -sharedstatedir | --sharedstatedir | --sharedstatedi \
  1091. | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
  1092. | --sharedst | --shareds | --shared | --share | --shar \
  1093. | --sha | --sh)
  1094. ac_prev=sharedstatedir ;;
  1095. -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
  1096. | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
  1097. | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
  1098. | --sha=* | --sh=*)
  1099. sharedstatedir=$ac_optarg ;;
  1100. -site | --site | --sit)
  1101. ac_prev=site ;;
  1102. -site=* | --site=* | --sit=*)
  1103. site=$ac_optarg ;;
  1104. -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
  1105. ac_prev=srcdir ;;
  1106. -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
  1107. srcdir=$ac_optarg ;;
  1108. -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
  1109. | --syscon | --sysco | --sysc | --sys | --sy)
  1110. ac_prev=sysconfdir ;;
  1111. -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
  1112. | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
  1113. sysconfdir=$ac_optarg ;;
  1114. -target | --target | --targe | --targ | --tar | --ta | --t)
  1115. ac_prev=target_alias ;;
  1116. -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
  1117. target_alias=$ac_optarg ;;
  1118. -v | -verbose | --verbose | --verbos | --verbo | --verb)
  1119. verbose=yes ;;
  1120. -version | --version | --versio | --versi | --vers | -V)
  1121. ac_init_version=: ;;
  1122. -with-* | --with-*)
  1123. ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
  1124. # Reject names that are not valid shell variable names.
  1125. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  1126. as_fn_error "invalid package name: $ac_useropt"
  1127. ac_useropt_orig=$ac_useropt
  1128. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  1129. case $ac_user_opts in
  1130. *"
  1131. "with_$ac_useropt"
  1132. "*) ;;
  1133. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
  1134. ac_unrecognized_sep=', ';;
  1135. esac
  1136. eval with_$ac_useropt=\$ac_optarg ;;
  1137. -without-* | --without-*)
  1138. ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
  1139. # Reject names that are not valid shell variable names.
  1140. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  1141. as_fn_error "invalid package name: $ac_useropt"
  1142. ac_useropt_orig=$ac_useropt
  1143. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  1144. case $ac_user_opts in
  1145. *"
  1146. "with_$ac_useropt"
  1147. "*) ;;
  1148. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
  1149. ac_unrecognized_sep=', ';;
  1150. esac
  1151. eval with_$ac_useropt=no ;;
  1152. --x)
  1153. # Obsolete; use --with-x.
  1154. with_x=yes ;;
  1155. -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
  1156. | --x-incl | --x-inc | --x-in | --x-i)
  1157. ac_prev=x_includes ;;
  1158. -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
  1159. | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
  1160. x_includes=$ac_optarg ;;
  1161. -x-libraries | --x-libraries | --x-librarie | --x-librari \
  1162. | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
  1163. ac_prev=x_libraries ;;
  1164. -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
  1165. | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
  1166. x_libraries=$ac_optarg ;;
  1167. -*) as_fn_error "unrecognized option: \`$ac_option'
  1168. Try \`$0 --help' for more information."
  1169. ;;
  1170. *=*)
  1171. ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
  1172. # Reject names that are not valid shell variable names.
  1173. case $ac_envvar in #(
  1174. '' | [0-9]* | *[!_$as_cr_alnum]* )
  1175. as_fn_error "invalid variable name: \`$ac_envvar'" ;;
  1176. esac
  1177. eval $ac_envvar=\$ac_optarg
  1178. export $ac_envvar ;;
  1179. *)
  1180. # FIXME: should be removed in autoconf 3.0.
  1181. $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
  1182. expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
  1183. $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
  1184. : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
  1185. ;;
  1186. esac
  1187. done
  1188. if test -n "$ac_prev"; then
  1189. ac_option=--`echo $ac_prev | sed 's/_/-/g'`
  1190. as_fn_error "missing argument to $ac_option"
  1191. fi
  1192. if test -n "$ac_unrecognized_opts"; then
  1193. case $enable_option_checking in
  1194. no) ;;
  1195. fatal) as_fn_error "unrecognized options: $ac_unrecognized_opts" ;;
  1196. *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
  1197. esac
  1198. fi
  1199. # Check all directory arguments for consistency.
  1200. for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
  1201. datadir sysconfdir sharedstatedir localstatedir includedir \
  1202. oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
  1203. libdir localedir mandir
  1204. do
  1205. eval ac_val=\$$ac_var
  1206. # Remove trailing slashes.
  1207. case $ac_val in
  1208. */ )
  1209. ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
  1210. eval $ac_var=\$ac_val;;
  1211. esac
  1212. # Be sure to have absolute directory names.
  1213. case $ac_val in
  1214. [\\/$]* | ?:[\\/]* ) continue;;
  1215. NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
  1216. esac
  1217. as_fn_error "expected an absolute directory name for --$ac_var: $ac_val"
  1218. done
  1219. # There might be people who depend on the old broken behavior: `$host'
  1220. # used to hold the argument of --host etc.
  1221. # FIXME: To remove some day.
  1222. build=$build_alias
  1223. host=$host_alias
  1224. target=$target_alias
  1225. # FIXME: To remove some day.
  1226. if test "x$host_alias" != x; then
  1227. if test "x$build_alias" = x; then
  1228. cross_compiling=maybe
  1229. $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
  1230. If a cross compiler is detected then cross compile mode will be used." >&2
  1231. elif test "x$build_alias" != "x$host_alias"; then
  1232. cross_compiling=yes
  1233. fi
  1234. fi
  1235. ac_tool_prefix=
  1236. test -n "$host_alias" && ac_tool_prefix=$host_alias-
  1237. test "$silent" = yes && exec 6>/dev/null
  1238. ac_pwd=`pwd` && test -n "$ac_pwd" &&
  1239. ac_ls_di=`ls -di .` &&
  1240. ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
  1241. as_fn_error "working directory cannot be determined"
  1242. test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
  1243. as_fn_error "pwd does not report name of working directory"
  1244. # Find the source files, if location was not specified.
  1245. if test -z "$srcdir"; then
  1246. ac_srcdir_defaulted=yes
  1247. # Try the directory containing this script, then the parent directory.
  1248. ac_confdir=`$as_dirname -- "$as_myself" ||
  1249. $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  1250. X"$as_myself" : 'X\(//\)[^/]' \| \
  1251. X"$as_myself" : 'X\(//\)$' \| \
  1252. X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
  1253. $as_echo X"$as_myself" |
  1254. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  1255. s//\1/
  1256. q
  1257. }
  1258. /^X\(\/\/\)[^/].*/{
  1259. s//\1/
  1260. q
  1261. }
  1262. /^X\(\/\/\)$/{
  1263. s//\1/
  1264. q
  1265. }
  1266. /^X\(\/\).*/{
  1267. s//\1/
  1268. q
  1269. }
  1270. s/.*/./; q'`
  1271. srcdir=$ac_confdir
  1272. if test ! -r "$srcdir/$ac_unique_file"; then
  1273. srcdir=..
  1274. fi
  1275. else
  1276. ac_srcdir_defaulted=no
  1277. fi
  1278. if test ! -r "$srcdir/$ac_unique_file"; then
  1279. test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
  1280. as_fn_error "cannot find sources ($ac_unique_file) in $srcdir"
  1281. fi
  1282. ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
  1283. ac_abs_confdir=`(
  1284. cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg"
  1285. pwd)`
  1286. # When building in place, set srcdir=.
  1287. if test "$ac_abs_confdir" = "$ac_pwd"; then
  1288. srcdir=.
  1289. fi
  1290. # Remove unnecessary trailing slashes from srcdir.
  1291. # Double slashes in file names in object file debugging info
  1292. # mess up M-x gdb in Emacs.
  1293. case $srcdir in
  1294. */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
  1295. esac
  1296. for ac_var in $ac_precious_vars; do
  1297. eval ac_env_${ac_var}_set=\${${ac_var}+set}
  1298. eval ac_env_${ac_var}_value=\$${ac_var}
  1299. eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
  1300. eval ac_cv_env_${ac_var}_value=\$${ac_var}
  1301. done
  1302. #
  1303. # Report the --help message.
  1304. #
  1305. if test "$ac_init_help" = "long"; then
  1306. # Omit some internal or obsolete options to make the list less imposing.
  1307. # This message is too long to be a string in the A/UX 3.1 sh.
  1308. cat <<_ACEOF
  1309. \`configure' configures aria2 1.9.0a to adapt to many kinds of systems.
  1310. Usage: $0 [OPTION]... [VAR=VALUE]...
  1311. To assign environment variables (e.g., CC, CFLAGS...), specify them as
  1312. VAR=VALUE. See below for descriptions of some of the useful variables.
  1313. Defaults for the options are specified in brackets.
  1314. Configuration:
  1315. -h, --help display this help and exit
  1316. --help=short display options specific to this package
  1317. --help=recursive display the short help of all the included packages
  1318. -V, --version display version information and exit
  1319. -q, --quiet, --silent do not print \`checking...' messages
  1320. --cache-file=FILE cache test results in FILE [disabled]
  1321. -C, --config-cache alias for \`--cache-file=config.cache'
  1322. -n, --no-create do not create output files
  1323. --srcdir=DIR find the sources in DIR [configure dir or \`..']
  1324. Installation directories:
  1325. --prefix=PREFIX install architecture-independent files in PREFIX
  1326. [$ac_default_prefix]
  1327. --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
  1328. [PREFIX]
  1329. By default, \`make install' will install all the files in
  1330. \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
  1331. an installation prefix other than \`$ac_default_prefix' using \`--prefix',
  1332. for instance \`--prefix=\$HOME'.
  1333. For better control, use the options below.
  1334. Fine tuning of the installation directories:
  1335. --bindir=DIR user executables [EPREFIX/bin]
  1336. --sbindir=DIR system admin executables [EPREFIX/sbin]
  1337. --libexecdir=DIR program executables [EPREFIX/libexec]
  1338. --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
  1339. --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
  1340. --localstatedir=DIR modifiable single-machine data [PREFIX/var]
  1341. --libdir=DIR object code libraries [EPREFIX/lib]
  1342. --includedir=DIR C header files [PREFIX/include]
  1343. --oldincludedir=DIR C header files for non-gcc [/usr/include]
  1344. --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
  1345. --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
  1346. --infodir=DIR info documentation [DATAROOTDIR/info]
  1347. --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
  1348. --mandir=DIR man documentation [DATAROOTDIR/man]
  1349. --docdir=DIR documentation root [DATAROOTDIR/doc/aria2]
  1350. --htmldir=DIR html documentation [DOCDIR]
  1351. --dvidir=DIR dvi documentation [DOCDIR]
  1352. --pdfdir=DIR pdf documentation [DOCDIR]
  1353. --psdir=DIR ps documentation [DOCDIR]
  1354. _ACEOF
  1355. cat <<\_ACEOF
  1356. Program names:
  1357. --program-prefix=PREFIX prepend PREFIX to installed program names
  1358. --program-suffix=SUFFIX append SUFFIX to installed program names
  1359. --program-transform-name=PROGRAM run sed PROGRAM on installed program names
  1360. System types:
  1361. --build=BUILD configure for building on BUILD [guessed]
  1362. --host=HOST cross-compile to build programs to run on HOST [BUILD]
  1363. --target=TARGET configure for building compilers for TARGET [HOST]
  1364. _ACEOF
  1365. fi
  1366. if test -n "$ac_init_help"; then
  1367. case $ac_init_help in
  1368. short | recursive ) echo "Configuration of aria2 1.9.0a:";;
  1369. esac
  1370. cat <<\_ACEOF
  1371. Optional Features:
  1372. --disable-option-checking ignore unrecognized --enable/--with options
  1373. --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
  1374. --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
  1375. --enable-bittorrent Enable bittorrent support.
  1376. --enable-metalink Enable metalink support.
  1377. --enable-epoll Enable epoll support.
  1378. --disable-dependency-tracking speeds up one-time build
  1379. --enable-dependency-tracking do not reject slow dependency extractors
  1380. --disable-xmltest Do not try to compile and run a test LIBXML program
  1381. --disable-largefile omit support for large files
  1382. --disable-nls do not use Native Language Support
  1383. --enable-threads={posix|solaris|pth|win32}
  1384. specify multithreading API
  1385. --disable-threads build without multithread safety
  1386. --disable-rpath do not hardcode runtime library paths
  1387. Optional Packages:
  1388. --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
  1389. --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
  1390. --with-cppunit-prefix=PFX Prefix where CppUnit is installed (optional)
  1391. --with-cppunit-exec-prefix=PFX Exec prefix where CppUnit is installed (optional)
  1392. --with-gnutls Use gnutls if it is installed.
  1393. --with-openssl Use openssl if it is installed.
  1394. --with-sqlite3 Use sqlite3 if it is installed.
  1395. --with-libxml2 Use libxml2 if it is installed.
  1396. --with-libexpat Use libexpat if it is installed.
  1397. --with-libcares Use libcares if it is installed.
  1398. --with-libz Use libz if it is installed.
  1399. --with-ca-bundle=FILE Use FILE as default CA bundle.
  1400. --with-xml-prefix=PFX Prefix where libxml is installed (optional)
  1401. --with-xml-exec-prefix=PFX Exec prefix where libxml is installed (optional)
  1402. --with-libexpat-prefix=PREFIX Prefix where libexpat installed (optional)
  1403. --with-sqlite3-prefix=PREFIX Prefix where SQLite3 installed (optional)
  1404. --with-libgnutls-prefix=PFX Prefix where libgnutls is installed (optional)
  1405. --with-libgcrypt-prefix=PFX
  1406. prefix where LIBGCRYPT is installed (optional)
  1407. --with-openssl-prefix=PREFIX Prefix where OpenSSL installed (optional)
  1408. --with-libcares-prefix=PREFIX Prefix where libcares installed (optional)
  1409. --with-libz-prefix=PREFIX Prefix where libz installed (optional)
  1410. --with-gnu-ld assume the C compiler uses GNU ld default=no
  1411. --with-libpth-prefix[=DIR] search for libpth in DIR/include and DIR/lib
  1412. --without-libpth-prefix don't search for libpth in includedir and libdir
  1413. --with-libiconv-prefix[=DIR] search for libiconv in DIR/include and DIR/lib
  1414. --without-libiconv-prefix don't search for libiconv in includedir and libdir
  1415. --with-included-gettext use the GNU gettext library included here
  1416. --with-libintl-prefix[=DIR] search for libintl in DIR/include and DIR/lib
  1417. --without-libintl-prefix don't search for libintl in includedir and libdir
  1418. Some influential environment variables:
  1419. CXX C++ compiler command
  1420. CXXFLAGS C++ compiler flags
  1421. LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
  1422. nonstandard directory <lib dir>
  1423. LIBS libraries to pass to the linker, e.g. -l<library>
  1424. CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
  1425. you have headers in a nonstandard directory <include dir>
  1426. CC C compiler command
  1427. CFLAGS C compiler flags
  1428. YACC The `Yet Another C Compiler' implementation to use. Defaults to
  1429. the first program found out of: `bison -y', `byacc', `yacc'.
  1430. YFLAGS The list of arguments that will be passed by default to $YACC.
  1431. This script will default YFLAGS to the empty string to avoid a
  1432. default value of `-d' given by some make applications.
  1433. CXXCPP C++ preprocessor
  1434. PKG_CONFIG path to pkg-config utility
  1435. SQLITE3_CFLAGS
  1436. C compiler flags for SQLITE3, overriding pkg-config
  1437. SQLITE3_LIBS
  1438. linker flags for SQLITE3, overriding pkg-config
  1439. LIBGNUTLS_CFLAGS
  1440. C compiler flags for LIBGNUTLS, overriding pkg-config
  1441. LIBGNUTLS_LIBS
  1442. linker flags for LIBGNUTLS, overriding pkg-config
  1443. Use these variables to override the choices made by `configure' or to help
  1444. it to find libraries and programs with nonstandard names/locations.
  1445. Report bugs to <t-tujikawa@users.sourceforge.net>.
  1446. aria2 home page: <http://aria2.sourceforge.net/>.
  1447. _ACEOF
  1448. ac_status=$?
  1449. fi
  1450. if test "$ac_init_help" = "recursive"; then
  1451. # If there are subdirs, report their specific --help.
  1452. for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
  1453. test -d "$ac_dir" ||
  1454. { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
  1455. continue
  1456. ac_builddir=.
  1457. case "$ac_dir" in
  1458. .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
  1459. *)
  1460. ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
  1461. # A ".." for each directory in $ac_dir_suffix.
  1462. ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
  1463. case $ac_top_builddir_sub in
  1464. "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
  1465. *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
  1466. esac ;;
  1467. esac
  1468. ac_abs_top_builddir=$ac_pwd
  1469. ac_abs_builddir=$ac_pwd$ac_dir_suffix
  1470. # for backward compatibility:
  1471. ac_top_builddir=$ac_top_build_prefix
  1472. case $srcdir in
  1473. .) # We are building in place.
  1474. ac_srcdir=.
  1475. ac_top_srcdir=$ac_top_builddir_sub
  1476. ac_abs_top_srcdir=$ac_pwd ;;
  1477. [\\/]* | ?:[\\/]* ) # Absolute name.
  1478. ac_srcdir=$srcdir$ac_dir_suffix;
  1479. ac_top_srcdir=$srcdir
  1480. ac_abs_top_srcdir=$srcdir ;;
  1481. *) # Relative name.
  1482. ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
  1483. ac_top_srcdir=$ac_top_build_prefix$srcdir
  1484. ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
  1485. esac
  1486. ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
  1487. cd "$ac_dir" || { ac_status=$?; continue; }
  1488. # Check for guested configure.
  1489. if test -f "$ac_srcdir/configure.gnu"; then
  1490. echo &&
  1491. $SHELL "$ac_srcdir/configure.gnu" --help=recursive
  1492. elif test -f "$ac_srcdir/configure"; then
  1493. echo &&
  1494. $SHELL "$ac_srcdir/configure" --help=recursive
  1495. else
  1496. $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
  1497. fi || ac_status=$?
  1498. cd "$ac_pwd" || { ac_status=$?; break; }
  1499. done
  1500. fi
  1501. test -n "$ac_init_help" && exit $ac_status
  1502. if $ac_init_version; then
  1503. cat <<\_ACEOF
  1504. aria2 configure 1.9.0a
  1505. generated by GNU Autoconf 2.65
  1506. Copyright (C) 2009 Free Software Foundation, Inc.
  1507. This configure script is free software; the Free Software Foundation
  1508. gives unlimited permission to copy, distribute and modify it.
  1509. _ACEOF
  1510. exit
  1511. fi
  1512. ## ------------------------ ##
  1513. ## Autoconf initialization. ##
  1514. ## ------------------------ ##
  1515. # ac_fn_cxx_try_compile LINENO
  1516. # ----------------------------
  1517. # Try to compile conftest.$ac_ext, and return whether this succeeded.
  1518. ac_fn_cxx_try_compile ()
  1519. {
  1520. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1521. rm -f conftest.$ac_objext
  1522. if { { ac_try="$ac_compile"
  1523. case "(($ac_try" in
  1524. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1525. *) ac_try_echo=$ac_try;;
  1526. esac
  1527. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1528. $as_echo "$ac_try_echo"; } >&5
  1529. (eval "$ac_compile") 2>conftest.err
  1530. ac_status=$?
  1531. if test -s conftest.err; then
  1532. grep -v '^ *+' conftest.err >conftest.er1
  1533. cat conftest.er1 >&5
  1534. mv -f conftest.er1 conftest.err
  1535. fi
  1536. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1537. test $ac_status = 0; } && {
  1538. test -z "$ac_cxx_werror_flag" ||
  1539. test ! -s conftest.err
  1540. } && test -s conftest.$ac_objext; then :
  1541. ac_retval=0
  1542. else
  1543. $as_echo "$as_me: failed program was:" >&5
  1544. sed 's/^/| /' conftest.$ac_ext >&5
  1545. ac_retval=1
  1546. fi
  1547. eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
  1548. as_fn_set_status $ac_retval
  1549. } # ac_fn_cxx_try_compile
  1550. # ac_fn_c_try_compile LINENO
  1551. # --------------------------
  1552. # Try to compile conftest.$ac_ext, and return whether this succeeded.
  1553. ac_fn_c_try_compile ()
  1554. {
  1555. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1556. rm -f conftest.$ac_objext
  1557. if { { ac_try="$ac_compile"
  1558. case "(($ac_try" in
  1559. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1560. *) ac_try_echo=$ac_try;;
  1561. esac
  1562. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1563. $as_echo "$ac_try_echo"; } >&5
  1564. (eval "$ac_compile") 2>conftest.err
  1565. ac_status=$?
  1566. if test -s conftest.err; then
  1567. grep -v '^ *+' conftest.err >conftest.er1
  1568. cat conftest.er1 >&5
  1569. mv -f conftest.er1 conftest.err
  1570. fi
  1571. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1572. test $ac_status = 0; } && {
  1573. test -z "$ac_c_werror_flag" ||
  1574. test ! -s conftest.err
  1575. } && test -s conftest.$ac_objext; then :
  1576. ac_retval=0
  1577. else
  1578. $as_echo "$as_me: failed program was:" >&5
  1579. sed 's/^/| /' conftest.$ac_ext >&5
  1580. ac_retval=1
  1581. fi
  1582. eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
  1583. as_fn_set_status $ac_retval
  1584. } # ac_fn_c_try_compile
  1585. # ac_fn_cxx_try_cpp LINENO
  1586. # ------------------------
  1587. # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
  1588. ac_fn_cxx_try_cpp ()
  1589. {
  1590. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1591. if { { ac_try="$ac_cpp conftest.$ac_ext"
  1592. case "(($ac_try" in
  1593. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1594. *) ac_try_echo=$ac_try;;
  1595. esac
  1596. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1597. $as_echo "$ac_try_echo"; } >&5
  1598. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
  1599. ac_status=$?
  1600. if test -s conftest.err; then
  1601. grep -v '^ *+' conftest.err >conftest.er1
  1602. cat conftest.er1 >&5
  1603. mv -f conftest.er1 conftest.err
  1604. fi
  1605. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1606. test $ac_status = 0; } >/dev/null && {
  1607. test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
  1608. test ! -s conftest.err
  1609. }; then :
  1610. ac_retval=0
  1611. else
  1612. $as_echo "$as_me: failed program was:" >&5
  1613. sed 's/^/| /' conftest.$ac_ext >&5
  1614. ac_retval=1
  1615. fi
  1616. eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
  1617. as_fn_set_status $ac_retval
  1618. } # ac_fn_cxx_try_cpp
  1619. # ac_fn_cxx_check_header_mongrel LINENO HEADER VAR INCLUDES
  1620. # ---------------------------------------------------------
  1621. # Tests whether HEADER exists, giving a warning if it cannot be compiled using
  1622. # the include files in INCLUDES and setting the cache variable VAR
  1623. # accordingly.
  1624. ac_fn_cxx_check_header_mongrel ()
  1625. {
  1626. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1627. if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
  1628. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  1629. $as_echo_n "checking for $2... " >&6; }
  1630. if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
  1631. $as_echo_n "(cached) " >&6
  1632. fi
  1633. eval ac_res=\$$3
  1634. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1635. $as_echo "$ac_res" >&6; }
  1636. else
  1637. # Is the header compilable?
  1638. { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
  1639. $as_echo_n "checking $2 usability... " >&6; }
  1640. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1641. /* end confdefs.h. */
  1642. $4
  1643. #include <$2>
  1644. _ACEOF
  1645. if ac_fn_cxx_try_compile "$LINENO"; then :
  1646. ac_header_compiler=yes
  1647. else
  1648. ac_header_compiler=no
  1649. fi
  1650. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  1651. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
  1652. $as_echo "$ac_header_compiler" >&6; }
  1653. # Is the header present?
  1654. { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
  1655. $as_echo_n "checking $2 presence... " >&6; }
  1656. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1657. /* end confdefs.h. */
  1658. #include <$2>
  1659. _ACEOF
  1660. if ac_fn_cxx_try_cpp "$LINENO"; then :
  1661. ac_header_preproc=yes
  1662. else
  1663. ac_header_preproc=no
  1664. fi
  1665. rm -f conftest.err conftest.$ac_ext
  1666. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
  1667. $as_echo "$ac_header_preproc" >&6; }
  1668. # So? What about this header?
  1669. case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in #((
  1670. yes:no: )
  1671. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
  1672. $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
  1673. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
  1674. $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
  1675. ;;
  1676. no:yes:* )
  1677. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
  1678. $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
  1679. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
  1680. $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
  1681. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
  1682. $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
  1683. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
  1684. $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
  1685. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
  1686. $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
  1687. ( cat <<\_ASBOX
  1688. ## ----------------------------------------------- ##
  1689. ## Report this to t-tujikawa@users.sourceforge.net ##
  1690. ## ----------------------------------------------- ##
  1691. _ASBOX
  1692. ) | sed "s/^/$as_me: WARNING: /" >&2
  1693. ;;
  1694. esac
  1695. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  1696. $as_echo_n "checking for $2... " >&6; }
  1697. if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
  1698. $as_echo_n "(cached) " >&6
  1699. else
  1700. eval "$3=\$ac_header_compiler"
  1701. fi
  1702. eval ac_res=\$$3
  1703. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1704. $as_echo "$ac_res" >&6; }
  1705. fi
  1706. eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
  1707. } # ac_fn_cxx_check_header_mongrel
  1708. # ac_fn_cxx_try_run LINENO
  1709. # ------------------------
  1710. # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
  1711. # that executables *can* be run.
  1712. ac_fn_cxx_try_run ()
  1713. {
  1714. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1715. if { { ac_try="$ac_link"
  1716. case "(($ac_try" in
  1717. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1718. *) ac_try_echo=$ac_try;;
  1719. esac
  1720. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1721. $as_echo "$ac_try_echo"; } >&5
  1722. (eval "$ac_link") 2>&5
  1723. ac_status=$?
  1724. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1725. test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
  1726. { { case "(($ac_try" in
  1727. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1728. *) ac_try_echo=$ac_try;;
  1729. esac
  1730. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1731. $as_echo "$ac_try_echo"; } >&5
  1732. (eval "$ac_try") 2>&5
  1733. ac_status=$?
  1734. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1735. test $ac_status = 0; }; }; then :
  1736. ac_retval=0
  1737. else
  1738. $as_echo "$as_me: program exited with status $ac_status" >&5
  1739. $as_echo "$as_me: failed program was:" >&5
  1740. sed 's/^/| /' conftest.$ac_ext >&5
  1741. ac_retval=$ac_status
  1742. fi
  1743. rm -rf conftest.dSYM conftest_ipa8_conftest.oo
  1744. eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
  1745. as_fn_set_status $ac_retval
  1746. } # ac_fn_cxx_try_run
  1747. # ac_fn_cxx_check_header_compile LINENO HEADER VAR INCLUDES
  1748. # ---------------------------------------------------------
  1749. # Tests whether HEADER exists and can be compiled using the include files in
  1750. # INCLUDES, setting the cache variable VAR accordingly.
  1751. ac_fn_cxx_check_header_compile ()
  1752. {
  1753. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1754. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  1755. $as_echo_n "checking for $2... " >&6; }
  1756. if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
  1757. $as_echo_n "(cached) " >&6
  1758. else
  1759. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1760. /* end confdefs.h. */
  1761. $4
  1762. #include <$2>
  1763. _ACEOF
  1764. if ac_fn_cxx_try_compile "$LINENO"; then :
  1765. eval "$3=yes"
  1766. else
  1767. eval "$3=no"
  1768. fi
  1769. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  1770. fi
  1771. eval ac_res=\$$3
  1772. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1773. $as_echo "$ac_res" >&6; }
  1774. eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
  1775. } # ac_fn_cxx_check_header_compile
  1776. # ac_fn_cxx_try_link LINENO
  1777. # -------------------------
  1778. # Try to link conftest.$ac_ext, and return whether this succeeded.
  1779. ac_fn_cxx_try_link ()
  1780. {
  1781. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1782. rm -f conftest.$ac_objext conftest$ac_exeext
  1783. if { { ac_try="$ac_link"
  1784. case "(($ac_try" in
  1785. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1786. *) ac_try_echo=$ac_try;;
  1787. esac
  1788. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1789. $as_echo "$ac_try_echo"; } >&5
  1790. (eval "$ac_link") 2>conftest.err
  1791. ac_status=$?
  1792. if test -s conftest.err; then
  1793. grep -v '^ *+' conftest.err >conftest.er1
  1794. cat conftest.er1 >&5
  1795. mv -f conftest.er1 conftest.err
  1796. fi
  1797. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1798. test $ac_status = 0; } && {
  1799. test -z "$ac_cxx_werror_flag" ||
  1800. test ! -s conftest.err
  1801. } && test -s conftest$ac_exeext && {
  1802. test "$cross_compiling" = yes ||
  1803. $as_test_x conftest$ac_exeext
  1804. }; then :
  1805. ac_retval=0
  1806. else
  1807. $as_echo "$as_me: failed program was:" >&5
  1808. sed 's/^/| /' conftest.$ac_ext >&5
  1809. ac_retval=1
  1810. fi
  1811. # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
  1812. # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
  1813. # interfere with the next link command; also delete a directory that is
  1814. # left behind by Apple's compiler. We do this before executing the actions.
  1815. rm -rf conftest.dSYM conftest_ipa8_conftest.oo
  1816. eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
  1817. as_fn_set_status $ac_retval
  1818. } # ac_fn_cxx_try_link
  1819. # ac_fn_cxx_check_func LINENO FUNC VAR
  1820. # ------------------------------------
  1821. # Tests whether FUNC exists, setting the cache variable VAR accordingly
  1822. ac_fn_cxx_check_func ()
  1823. {
  1824. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1825. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  1826. $as_echo_n "checking for $2... " >&6; }
  1827. if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
  1828. $as_echo_n "(cached) " >&6
  1829. else
  1830. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1831. /* end confdefs.h. */
  1832. /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
  1833. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  1834. #define $2 innocuous_$2
  1835. /* System header to define __stub macros and hopefully few prototypes,
  1836. which can conflict with char $2 (); below.
  1837. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  1838. <limits.h> exists even on freestanding compilers. */
  1839. #ifdef __STDC__
  1840. # include <limits.h>
  1841. #else
  1842. # include <assert.h>
  1843. #endif
  1844. #undef $2
  1845. /* Override any GCC internal prototype to avoid an error.
  1846. Use char because int might match the return type of a GCC
  1847. builtin and then its argument prototype would still apply. */
  1848. #ifdef __cplusplus
  1849. extern "C"
  1850. #endif
  1851. char $2 ();
  1852. /* The GNU C library defines this for functions which it implements
  1853. to always fail with ENOSYS. Some functions are actually named
  1854. something starting with __ and the normal name is an alias. */
  1855. #if defined __stub_$2 || defined __stub___$2
  1856. choke me
  1857. #endif
  1858. int
  1859. main ()
  1860. {
  1861. return $2 ();
  1862. ;
  1863. return 0;
  1864. }
  1865. _ACEOF
  1866. if ac_fn_cxx_try_link "$LINENO"; then :
  1867. eval "$3=yes"
  1868. else
  1869. eval "$3=no"
  1870. fi
  1871. rm -f core conftest.err conftest.$ac_objext \
  1872. conftest$ac_exeext conftest.$ac_ext
  1873. fi
  1874. eval ac_res=\$$3
  1875. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1876. $as_echo "$ac_res" >&6; }
  1877. eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
  1878. } # ac_fn_cxx_check_func
  1879. # ac_fn_cxx_check_type LINENO TYPE VAR INCLUDES
  1880. # ---------------------------------------------
  1881. # Tests whether TYPE exists after having included INCLUDES, setting cache
  1882. # variable VAR accordingly.
  1883. ac_fn_cxx_check_type ()
  1884. {
  1885. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1886. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  1887. $as_echo_n "checking for $2... " >&6; }
  1888. if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
  1889. $as_echo_n "(cached) " >&6
  1890. else
  1891. eval "$3=no"
  1892. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1893. /* end confdefs.h. */
  1894. $4
  1895. int
  1896. main ()
  1897. {
  1898. if (sizeof ($2))
  1899. return 0;
  1900. ;
  1901. return 0;
  1902. }
  1903. _ACEOF
  1904. if ac_fn_cxx_try_compile "$LINENO"; then :
  1905. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1906. /* end confdefs.h. */
  1907. $4
  1908. int
  1909. main ()
  1910. {
  1911. if (sizeof (($2)))
  1912. return 0;
  1913. ;
  1914. return 0;
  1915. }
  1916. _ACEOF
  1917. if ac_fn_cxx_try_compile "$LINENO"; then :
  1918. else
  1919. eval "$3=yes"
  1920. fi
  1921. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  1922. fi
  1923. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  1924. fi
  1925. eval ac_res=\$$3
  1926. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1927. $as_echo "$ac_res" >&6; }
  1928. eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
  1929. } # ac_fn_cxx_check_type
  1930. # ac_fn_c_find_intX_t LINENO BITS VAR
  1931. # -----------------------------------
  1932. # Finds a signed integer type with width BITS, setting cache variable VAR
  1933. # accordingly.
  1934. ac_fn_c_find_intX_t ()
  1935. {
  1936. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1937. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for int$2_t" >&5
  1938. $as_echo_n "checking for int$2_t... " >&6; }
  1939. if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
  1940. $as_echo_n "(cached) " >&6
  1941. else
  1942. eval "$3=no"
  1943. # Order is important - never check a type that is potentially smaller
  1944. # than half of the expected target width.
  1945. for ac_type in int$2_t 'int' 'long int' \
  1946. 'long long int' 'short int' 'signed char'; do
  1947. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1948. /* end confdefs.h. */
  1949. $ac_includes_default
  1950. enum { N = $2 / 2 - 1 };
  1951. int
  1952. main ()
  1953. {
  1954. static int test_array [1 - 2 * !(0 < ($ac_type) ((((($ac_type) 1 << N) << N) - 1) * 2 + 1))];
  1955. test_array [0] = 0
  1956. ;
  1957. return 0;
  1958. }
  1959. _ACEOF
  1960. if ac_fn_cxx_try_compile "$LINENO"; then :
  1961. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1962. /* end confdefs.h. */
  1963. $ac_includes_default
  1964. enum { N = $2 / 2 - 1 };
  1965. int
  1966. main ()
  1967. {
  1968. static int test_array [1 - 2 * !(($ac_type) ((((($ac_type) 1 << N) << N) - 1) * 2 + 1)
  1969. < ($ac_type) ((((($ac_type) 1 << N) << N) - 1) * 2 + 2))];
  1970. test_array [0] = 0
  1971. ;
  1972. return 0;
  1973. }
  1974. _ACEOF
  1975. if ac_fn_cxx_try_compile "$LINENO"; then :
  1976. else
  1977. case $ac_type in #(
  1978. int$2_t) :
  1979. eval "$3=yes" ;; #(
  1980. *) :
  1981. eval "$3=\$ac_type" ;;
  1982. esac
  1983. fi
  1984. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  1985. fi
  1986. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  1987. eval as_val=\$$3
  1988. if test "x$as_val" = x""no; then :
  1989. else
  1990. break
  1991. fi
  1992. done
  1993. fi
  1994. eval ac_res=\$$3
  1995. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1996. $as_echo "$ac_res" >&6; }
  1997. eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
  1998. } # ac_fn_c_find_intX_t
  1999. # ac_fn_c_find_uintX_t LINENO BITS VAR
  2000. # ------------------------------------
  2001. # Finds an unsigned integer type with width BITS, setting cache variable VAR
  2002. # accordingly.
  2003. ac_fn_c_find_uintX_t ()
  2004. {
  2005. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  2006. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uint$2_t" >&5
  2007. $as_echo_n "checking for uint$2_t... " >&6; }
  2008. if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
  2009. $as_echo_n "(cached) " >&6
  2010. else
  2011. eval "$3=no"
  2012. # Order is important - never check a type that is potentially smaller
  2013. # than half of the expected target width.
  2014. for ac_type in uint$2_t 'unsigned int' 'unsigned long int' \
  2015. 'unsigned long long int' 'unsigned short int' 'unsigned char'; do
  2016. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2017. /* end confdefs.h. */
  2018. $ac_includes_default
  2019. int
  2020. main ()
  2021. {
  2022. static int test_array [1 - 2 * !((($ac_type) -1 >> ($2 / 2 - 1)) >> ($2 / 2 - 1) == 3)];
  2023. test_array [0] = 0
  2024. ;
  2025. return 0;
  2026. }
  2027. _ACEOF
  2028. if ac_fn_cxx_try_compile "$LINENO"; then :
  2029. case $ac_type in #(
  2030. uint$2_t) :
  2031. eval "$3=yes" ;; #(
  2032. *) :
  2033. eval "$3=\$ac_type" ;;
  2034. esac
  2035. fi
  2036. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  2037. eval as_val=\$$3
  2038. if test "x$as_val" = x""no; then :
  2039. else
  2040. break
  2041. fi
  2042. done
  2043. fi
  2044. eval ac_res=\$$3
  2045. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  2046. $as_echo "$ac_res" >&6; }
  2047. eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
  2048. } # ac_fn_c_find_uintX_t
  2049. # ac_fn_cxx_compute_int LINENO EXPR VAR INCLUDES
  2050. # ----------------------------------------------
  2051. # Tries to find the compile-time value of EXPR in a program that includes
  2052. # INCLUDES, setting VAR accordingly. Returns whether the value could be
  2053. # computed
  2054. ac_fn_cxx_compute_int ()
  2055. {
  2056. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  2057. if test "$cross_compiling" = yes; then
  2058. # Depending upon the size, compute the lo and hi bounds.
  2059. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2060. /* end confdefs.h. */
  2061. $4
  2062. int
  2063. main ()
  2064. {
  2065. static int test_array [1 - 2 * !(($2) >= 0)];
  2066. test_array [0] = 0
  2067. ;
  2068. return 0;
  2069. }
  2070. _ACEOF
  2071. if ac_fn_cxx_try_compile "$LINENO"; then :
  2072. ac_lo=0 ac_mid=0
  2073. while :; do
  2074. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2075. /* end confdefs.h. */
  2076. $4
  2077. int
  2078. main ()
  2079. {
  2080. static int test_array [1 - 2 * !(($2) <= $ac_mid)];
  2081. test_array [0] = 0
  2082. ;
  2083. return 0;
  2084. }
  2085. _ACEOF
  2086. if ac_fn_cxx_try_compile "$LINENO"; then :
  2087. ac_hi=$ac_mid; break
  2088. else
  2089. as_fn_arith $ac_mid + 1 && ac_lo=$as_val
  2090. if test $ac_lo -le $ac_mid; then
  2091. ac_lo= ac_hi=
  2092. break
  2093. fi
  2094. as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
  2095. fi
  2096. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  2097. done
  2098. else
  2099. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2100. /* end confdefs.h. */
  2101. $4
  2102. int
  2103. main ()
  2104. {
  2105. static int test_array [1 - 2 * !(($2) < 0)];
  2106. test_array [0] = 0
  2107. ;
  2108. return 0;
  2109. }
  2110. _ACEOF
  2111. if ac_fn_cxx_try_compile "$LINENO"; then :
  2112. ac_hi=-1 ac_mid=-1
  2113. while :; do
  2114. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2115. /* end confdefs.h. */
  2116. $4
  2117. int
  2118. main ()
  2119. {
  2120. static int test_array [1 - 2 * !(($2) >= $ac_mid)];
  2121. test_array [0] = 0
  2122. ;
  2123. return 0;
  2124. }
  2125. _ACEOF
  2126. if ac_fn_cxx_try_compile "$LINENO"; then :
  2127. ac_lo=$ac_mid; break
  2128. else
  2129. as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
  2130. if test $ac_mid -le $ac_hi; then
  2131. ac_lo= ac_hi=
  2132. break
  2133. fi
  2134. as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
  2135. fi
  2136. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  2137. done
  2138. else
  2139. ac_lo= ac_hi=
  2140. fi
  2141. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  2142. fi
  2143. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  2144. # Binary search between lo and hi bounds.
  2145. while test "x$ac_lo" != "x$ac_hi"; do
  2146. as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
  2147. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2148. /* end confdefs.h. */
  2149. $4
  2150. int
  2151. main ()
  2152. {
  2153. static int test_array [1 - 2 * !(($2) <= $ac_mid)];
  2154. test_array [0] = 0
  2155. ;
  2156. return 0;
  2157. }
  2158. _ACEOF
  2159. if ac_fn_cxx_try_compile "$LINENO"; then :
  2160. ac_hi=$ac_mid
  2161. else
  2162. as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
  2163. fi
  2164. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  2165. done
  2166. case $ac_lo in #((
  2167. ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
  2168. '') ac_retval=1 ;;
  2169. esac
  2170. else
  2171. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2172. /* end confdefs.h. */
  2173. $4
  2174. static long int longval () { return $2; }
  2175. static unsigned long int ulongval () { return $2; }
  2176. #include <stdio.h>
  2177. #include <stdlib.h>
  2178. int
  2179. main ()
  2180. {
  2181. FILE *f = fopen ("conftest.val", "w");
  2182. if (! f)
  2183. return 1;
  2184. if (($2) < 0)
  2185. {
  2186. long int i = longval ();
  2187. if (i != ($2))
  2188. return 1;
  2189. fprintf (f, "%ld", i);
  2190. }
  2191. else
  2192. {
  2193. unsigned long int i = ulongval ();
  2194. if (i != ($2))
  2195. return 1;
  2196. fprintf (f, "%lu", i);
  2197. }
  2198. /* Do not output a trailing newline, as this causes \r\n confusion
  2199. on some platforms. */
  2200. return ferror (f) || fclose (f) != 0;
  2201. ;
  2202. return 0;
  2203. }
  2204. _ACEOF
  2205. if ac_fn_cxx_try_run "$LINENO"; then :
  2206. echo >>conftest.val; read $3 <conftest.val; ac_retval=0
  2207. else
  2208. ac_retval=1
  2209. fi
  2210. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  2211. conftest.$ac_objext conftest.beam conftest.$ac_ext
  2212. rm -f conftest.val
  2213. fi
  2214. eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
  2215. as_fn_set_status $ac_retval
  2216. } # ac_fn_cxx_compute_int
  2217. # ac_fn_cxx_check_member LINENO AGGR MEMBER VAR INCLUDES
  2218. # ------------------------------------------------------
  2219. # Tries to find if the field MEMBER exists in type AGGR, after including
  2220. # INCLUDES, setting cache variable VAR accordingly.
  2221. ac_fn_cxx_check_member ()
  2222. {
  2223. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  2224. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
  2225. $as_echo_n "checking for $2.$3... " >&6; }
  2226. if { as_var=$4; eval "test \"\${$as_var+set}\" = set"; }; then :
  2227. $as_echo_n "(cached) " >&6
  2228. else
  2229. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2230. /* end confdefs.h. */
  2231. $5
  2232. int
  2233. main ()
  2234. {
  2235. static $2 ac_aggr;
  2236. if (ac_aggr.$3)
  2237. return 0;
  2238. ;
  2239. return 0;
  2240. }
  2241. _ACEOF
  2242. if ac_fn_cxx_try_compile "$LINENO"; then :
  2243. eval "$4=yes"
  2244. else
  2245. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2246. /* end confdefs.h. */
  2247. $5
  2248. int
  2249. main ()
  2250. {
  2251. static $2 ac_aggr;
  2252. if (sizeof ac_aggr.$3)
  2253. return 0;
  2254. ;
  2255. return 0;
  2256. }
  2257. _ACEOF
  2258. if ac_fn_cxx_try_compile "$LINENO"; then :
  2259. eval "$4=yes"
  2260. else
  2261. eval "$4=no"
  2262. fi
  2263. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  2264. fi
  2265. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  2266. fi
  2267. eval ac_res=\$$4
  2268. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  2269. $as_echo "$ac_res" >&6; }
  2270. eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
  2271. } # ac_fn_cxx_check_member
  2272. cat >config.log <<_ACEOF
  2273. This file contains any messages produced by compilers while
  2274. running configure, to aid debugging if configure makes a mistake.
  2275. It was created by aria2 $as_me 1.9.0a, which was
  2276. generated by GNU Autoconf 2.65. Invocation command line was
  2277. $ $0 $@
  2278. _ACEOF
  2279. exec 5>>config.log
  2280. {
  2281. cat <<_ASUNAME
  2282. ## --------- ##
  2283. ## Platform. ##
  2284. ## --------- ##
  2285. hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
  2286. uname -m = `(uname -m) 2>/dev/null || echo unknown`
  2287. uname -r = `(uname -r) 2>/dev/null || echo unknown`
  2288. uname -s = `(uname -s) 2>/dev/null || echo unknown`
  2289. uname -v = `(uname -v) 2>/dev/null || echo unknown`
  2290. /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
  2291. /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
  2292. /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
  2293. /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
  2294. /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
  2295. /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
  2296. /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
  2297. /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
  2298. /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
  2299. _ASUNAME
  2300. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2301. for as_dir in $PATH
  2302. do
  2303. IFS=$as_save_IFS
  2304. test -z "$as_dir" && as_dir=.
  2305. $as_echo "PATH: $as_dir"
  2306. done
  2307. IFS=$as_save_IFS
  2308. } >&5
  2309. cat >&5 <<_ACEOF
  2310. ## ----------- ##
  2311. ## Core tests. ##
  2312. ## ----------- ##
  2313. _ACEOF
  2314. # Keep a trace of the command line.
  2315. # Strip out --no-create and --no-recursion so they do not pile up.
  2316. # Strip out --silent because we don't want to record it for future runs.
  2317. # Also quote any args containing shell meta-characters.
  2318. # Make two passes to allow for proper duplicate-argument suppression.
  2319. ac_configure_args=
  2320. ac_configure_args0=
  2321. ac_configure_args1=
  2322. ac_must_keep_next=false
  2323. for ac_pass in 1 2
  2324. do
  2325. for ac_arg
  2326. do
  2327. case $ac_arg in
  2328. -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
  2329. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  2330. | -silent | --silent | --silen | --sile | --sil)
  2331. continue ;;
  2332. *\'*)
  2333. ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
  2334. esac
  2335. case $ac_pass in
  2336. 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
  2337. 2)
  2338. as_fn_append ac_configure_args1 " '$ac_arg'"
  2339. if test $ac_must_keep_next = true; then
  2340. ac_must_keep_next=false # Got value, back to normal.
  2341. else
  2342. case $ac_arg in
  2343. *=* | --config-cache | -C | -disable-* | --disable-* \
  2344. | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
  2345. | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
  2346. | -with-* | --with-* | -without-* | --without-* | --x)
  2347. case "$ac_configure_args0 " in
  2348. "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
  2349. esac
  2350. ;;
  2351. -* ) ac_must_keep_next=true ;;
  2352. esac
  2353. fi
  2354. as_fn_append ac_configure_args " '$ac_arg'"
  2355. ;;
  2356. esac
  2357. done
  2358. done
  2359. { ac_configure_args0=; unset ac_configure_args0;}
  2360. { ac_configure_args1=; unset ac_configure_args1;}
  2361. # When interrupted or exit'd, cleanup temporary files, and complete
  2362. # config.log. We remove comments because anyway the quotes in there
  2363. # would cause problems or look ugly.
  2364. # WARNING: Use '\'' to represent an apostrophe within the trap.
  2365. # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
  2366. trap 'exit_status=$?
  2367. # Save into config.log some information that might help in debugging.
  2368. {
  2369. echo
  2370. cat <<\_ASBOX
  2371. ## ---------------- ##
  2372. ## Cache variables. ##
  2373. ## ---------------- ##
  2374. _ASBOX
  2375. echo
  2376. # The following way of writing the cache mishandles newlines in values,
  2377. (
  2378. for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
  2379. eval ac_val=\$$ac_var
  2380. case $ac_val in #(
  2381. *${as_nl}*)
  2382. case $ac_var in #(
  2383. *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
  2384. $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
  2385. esac
  2386. case $ac_var in #(
  2387. _ | IFS | as_nl) ;; #(
  2388. BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
  2389. *) { eval $ac_var=; unset $ac_var;} ;;
  2390. esac ;;
  2391. esac
  2392. done
  2393. (set) 2>&1 |
  2394. case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
  2395. *${as_nl}ac_space=\ *)
  2396. sed -n \
  2397. "s/'\''/'\''\\\\'\'''\''/g;
  2398. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
  2399. ;; #(
  2400. *)
  2401. sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
  2402. ;;
  2403. esac |
  2404. sort
  2405. )
  2406. echo
  2407. cat <<\_ASBOX
  2408. ## ----------------- ##
  2409. ## Output variables. ##
  2410. ## ----------------- ##
  2411. _ASBOX
  2412. echo
  2413. for ac_var in $ac_subst_vars
  2414. do
  2415. eval ac_val=\$$ac_var
  2416. case $ac_val in
  2417. *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
  2418. esac
  2419. $as_echo "$ac_var='\''$ac_val'\''"
  2420. done | sort
  2421. echo
  2422. if test -n "$ac_subst_files"; then
  2423. cat <<\_ASBOX
  2424. ## ------------------- ##
  2425. ## File substitutions. ##
  2426. ## ------------------- ##
  2427. _ASBOX
  2428. echo
  2429. for ac_var in $ac_subst_files
  2430. do
  2431. eval ac_val=\$$ac_var
  2432. case $ac_val in
  2433. *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
  2434. esac
  2435. $as_echo "$ac_var='\''$ac_val'\''"
  2436. done | sort
  2437. echo
  2438. fi
  2439. if test -s confdefs.h; then
  2440. cat <<\_ASBOX
  2441. ## ----------- ##
  2442. ## confdefs.h. ##
  2443. ## ----------- ##
  2444. _ASBOX
  2445. echo
  2446. cat confdefs.h
  2447. echo
  2448. fi
  2449. test "$ac_signal" != 0 &&
  2450. $as_echo "$as_me: caught signal $ac_signal"
  2451. $as_echo "$as_me: exit $exit_status"
  2452. } >&5
  2453. rm -f core *.core core.conftest.* &&
  2454. rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
  2455. exit $exit_status
  2456. ' 0
  2457. for ac_signal in 1 2 13 15; do
  2458. trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
  2459. done
  2460. ac_signal=0
  2461. # confdefs.h avoids OS command line length limits that DEFS can exceed.
  2462. rm -f -r conftest* confdefs.h
  2463. $as_echo "/* confdefs.h */" > confdefs.h
  2464. # Predefined preprocessor variables.
  2465. cat >>confdefs.h <<_ACEOF
  2466. #define PACKAGE_NAME "$PACKAGE_NAME"
  2467. _ACEOF
  2468. cat >>confdefs.h <<_ACEOF
  2469. #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
  2470. _ACEOF
  2471. cat >>confdefs.h <<_ACEOF
  2472. #define PACKAGE_VERSION "$PACKAGE_VERSION"
  2473. _ACEOF
  2474. cat >>confdefs.h <<_ACEOF
  2475. #define PACKAGE_STRING "$PACKAGE_STRING"
  2476. _ACEOF
  2477. cat >>confdefs.h <<_ACEOF
  2478. #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
  2479. _ACEOF
  2480. cat >>confdefs.h <<_ACEOF
  2481. #define PACKAGE_URL "$PACKAGE_URL"
  2482. _ACEOF
  2483. # Let the site file select an alternate cache file if it wants to.
  2484. # Prefer an explicitly selected file to automatically selected ones.
  2485. ac_site_file1=NONE
  2486. ac_site_file2=NONE
  2487. if test -n "$CONFIG_SITE"; then
  2488. ac_site_file1=$CONFIG_SITE
  2489. elif test "x$prefix" != xNONE; then
  2490. ac_site_file1=$prefix/share/config.site
  2491. ac_site_file2=$prefix/etc/config.site
  2492. else
  2493. ac_site_file1=$ac_default_prefix/share/config.site
  2494. ac_site_file2=$ac_default_prefix/etc/config.site
  2495. fi
  2496. for ac_site_file in "$ac_site_file1" "$ac_site_file2"
  2497. do
  2498. test "x$ac_site_file" = xNONE && continue
  2499. if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
  2500. { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
  2501. $as_echo "$as_me: loading site script $ac_site_file" >&6;}
  2502. sed 's/^/| /' "$ac_site_file" >&5
  2503. . "$ac_site_file"
  2504. fi
  2505. done
  2506. if test -r "$cache_file"; then
  2507. # Some versions of bash will fail to source /dev/null (special files
  2508. # actually), so we avoid doing that. DJGPP emulates it as a regular file.
  2509. if test /dev/null != "$cache_file" && test -f "$cache_file"; then
  2510. { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
  2511. $as_echo "$as_me: loading cache $cache_file" >&6;}
  2512. case $cache_file in
  2513. [\\/]* | ?:[\\/]* ) . "$cache_file";;
  2514. *) . "./$cache_file";;
  2515. esac
  2516. fi
  2517. else
  2518. { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
  2519. $as_echo "$as_me: creating cache $cache_file" >&6;}
  2520. >$cache_file
  2521. fi
  2522. gt_needs="$gt_needs "
  2523. as_fn_append ac_header_list " stdlib.h"
  2524. as_fn_append ac_header_list " unistd.h"
  2525. as_fn_append ac_header_list " sys/param.h"
  2526. as_fn_append ac_header_list " sys/time.h"
  2527. as_fn_append ac_func_list " alarm"
  2528. # Check that the precious variables saved in the cache have kept the same
  2529. # value.
  2530. ac_cache_corrupted=false
  2531. for ac_var in $ac_precious_vars; do
  2532. eval ac_old_set=\$ac_cv_env_${ac_var}_set
  2533. eval ac_new_set=\$ac_env_${ac_var}_set
  2534. eval ac_old_val=\$ac_cv_env_${ac_var}_value
  2535. eval ac_new_val=\$ac_env_${ac_var}_value
  2536. case $ac_old_set,$ac_new_set in
  2537. set,)
  2538. { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
  2539. $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
  2540. ac_cache_corrupted=: ;;
  2541. ,set)
  2542. { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
  2543. $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
  2544. ac_cache_corrupted=: ;;
  2545. ,);;
  2546. *)
  2547. if test "x$ac_old_val" != "x$ac_new_val"; then
  2548. # differences in whitespace do not lead to failure.
  2549. ac_old_val_w=`echo x $ac_old_val`
  2550. ac_new_val_w=`echo x $ac_new_val`
  2551. if test "$ac_old_val_w" != "$ac_new_val_w"; then
  2552. { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
  2553. $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
  2554. ac_cache_corrupted=:
  2555. else
  2556. { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
  2557. $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
  2558. eval $ac_var=\$ac_old_val
  2559. fi
  2560. { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
  2561. $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
  2562. { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
  2563. $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
  2564. fi;;
  2565. esac
  2566. # Pass precious variables to config.status.
  2567. if test "$ac_new_set" = set; then
  2568. case $ac_new_val in
  2569. *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
  2570. *) ac_arg=$ac_var=$ac_new_val ;;
  2571. esac
  2572. case " $ac_configure_args " in
  2573. *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
  2574. *) as_fn_append ac_configure_args " '$ac_arg'" ;;
  2575. esac
  2576. fi
  2577. done
  2578. if $ac_cache_corrupted; then
  2579. { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  2580. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  2581. { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
  2582. $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
  2583. as_fn_error "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
  2584. fi
  2585. ## -------------------- ##
  2586. ## Main body of script. ##
  2587. ## -------------------- ##
  2588. ac_ext=c
  2589. ac_cpp='$CPP $CPPFLAGS'
  2590. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  2591. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  2592. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  2593. ac_aux_dir=
  2594. for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
  2595. for ac_t in install-sh install.sh shtool; do
  2596. if test -f "$ac_dir/$ac_t"; then
  2597. ac_aux_dir=$ac_dir
  2598. ac_install_sh="$ac_aux_dir/$ac_t -c"
  2599. break 2
  2600. fi
  2601. done
  2602. done
  2603. if test -z "$ac_aux_dir"; then
  2604. as_fn_error "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
  2605. fi
  2606. # These three variables are undocumented and unsupported,
  2607. # and are intended to be withdrawn in a future Autoconf release.
  2608. # They can cause serious problems if a builder's source tree is in a directory
  2609. # whose full name contains unusual characters.
  2610. ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
  2611. ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
  2612. ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
  2613. # Make sure we can run config.sub.
  2614. $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
  2615. as_fn_error "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
  2616. { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
  2617. $as_echo_n "checking build system type... " >&6; }
  2618. if test "${ac_cv_build+set}" = set; then :
  2619. $as_echo_n "(cached) " >&6
  2620. else
  2621. ac_build_alias=$build_alias
  2622. test "x$ac_build_alias" = x &&
  2623. ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
  2624. test "x$ac_build_alias" = x &&
  2625. as_fn_error "cannot guess build type; you must specify one" "$LINENO" 5
  2626. ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
  2627. as_fn_error "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
  2628. fi
  2629. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
  2630. $as_echo "$ac_cv_build" >&6; }
  2631. case $ac_cv_build in
  2632. *-*-*) ;;
  2633. *) as_fn_error "invalid value of canonical build" "$LINENO" 5;;
  2634. esac
  2635. build=$ac_cv_build
  2636. ac_save_IFS=$IFS; IFS='-'
  2637. set x $ac_cv_build
  2638. shift
  2639. build_cpu=$1
  2640. build_vendor=$2
  2641. shift; shift
  2642. # Remember, the first character of IFS is used to create $*,
  2643. # except with old shells:
  2644. build_os=$*
  2645. IFS=$ac_save_IFS
  2646. case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
  2647. { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
  2648. $as_echo_n "checking host system type... " >&6; }
  2649. if test "${ac_cv_host+set}" = set; then :
  2650. $as_echo_n "(cached) " >&6
  2651. else
  2652. if test "x$host_alias" = x; then
  2653. ac_cv_host=$ac_cv_build
  2654. else
  2655. ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
  2656. as_fn_error "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
  2657. fi
  2658. fi
  2659. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
  2660. $as_echo "$ac_cv_host" >&6; }
  2661. case $ac_cv_host in
  2662. *-*-*) ;;
  2663. *) as_fn_error "invalid value of canonical host" "$LINENO" 5;;
  2664. esac
  2665. host=$ac_cv_host
  2666. ac_save_IFS=$IFS; IFS='-'
  2667. set x $ac_cv_host
  2668. shift
  2669. host_cpu=$1
  2670. host_vendor=$2
  2671. shift; shift
  2672. # Remember, the first character of IFS is used to create $*,
  2673. # except with old shells:
  2674. host_os=$*
  2675. IFS=$ac_save_IFS
  2676. case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
  2677. { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
  2678. $as_echo_n "checking target system type... " >&6; }
  2679. if test "${ac_cv_target+set}" = set; then :
  2680. $as_echo_n "(cached) " >&6
  2681. else
  2682. if test "x$target_alias" = x; then
  2683. ac_cv_target=$ac_cv_host
  2684. else
  2685. ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
  2686. as_fn_error "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
  2687. fi
  2688. fi
  2689. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
  2690. $as_echo "$ac_cv_target" >&6; }
  2691. case $ac_cv_target in
  2692. *-*-*) ;;
  2693. *) as_fn_error "invalid value of canonical target" "$LINENO" 5;;
  2694. esac
  2695. target=$ac_cv_target
  2696. ac_save_IFS=$IFS; IFS='-'
  2697. set x $ac_cv_target
  2698. shift
  2699. target_cpu=$1
  2700. target_vendor=$2
  2701. shift; shift
  2702. # Remember, the first character of IFS is used to create $*,
  2703. # except with old shells:
  2704. target_os=$*
  2705. IFS=$ac_save_IFS
  2706. case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
  2707. # The aliases save the names the user supplied, while $host etc.
  2708. # will get canonicalized.
  2709. test -n "$target_alias" &&
  2710. test "$program_prefix$program_suffix$program_transform_name" = \
  2711. NONENONEs,x,x, &&
  2712. program_prefix=${target_alias}-
  2713. am__api_version='1.11'
  2714. # Find a good install program. We prefer a C program (faster),
  2715. # so one script is as good as another. But avoid the broken or
  2716. # incompatible versions:
  2717. # SysV /etc/install, /usr/sbin/install
  2718. # SunOS /usr/etc/install
  2719. # IRIX /sbin/install
  2720. # AIX /bin/install
  2721. # AmigaOS /C/install, which installs bootblocks on floppy discs
  2722. # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
  2723. # AFS /usr/afsws/bin/install, which mishandles nonexistent args
  2724. # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
  2725. # OS/2's system install, which has a completely different semantic
  2726. # ./install, which can be erroneously created by make from ./install.sh.
  2727. # Reject install programs that cannot install multiple files.
  2728. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
  2729. $as_echo_n "checking for a BSD-compatible install... " >&6; }
  2730. if test -z "$INSTALL"; then
  2731. if test "${ac_cv_path_install+set}" = set; then :
  2732. $as_echo_n "(cached) " >&6
  2733. else
  2734. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2735. for as_dir in $PATH
  2736. do
  2737. IFS=$as_save_IFS
  2738. test -z "$as_dir" && as_dir=.
  2739. # Account for people who put trailing slashes in PATH elements.
  2740. case $as_dir/ in #((
  2741. ./ | .// | /[cC]/* | \
  2742. /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
  2743. ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
  2744. /usr/ucb/* ) ;;
  2745. *)
  2746. # OSF1 and SCO ODT 3.0 have their own names for install.
  2747. # Don't use installbsd from OSF since it installs stuff as root
  2748. # by default.
  2749. for ac_prog in ginstall scoinst install; do
  2750. for ac_exec_ext in '' $ac_executable_extensions; do
  2751. if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
  2752. if test $ac_prog = install &&
  2753. grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
  2754. # AIX install. It has an incompatible calling convention.
  2755. :
  2756. elif test $ac_prog = install &&
  2757. grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
  2758. # program-specific install script used by HP pwplus--don't use.
  2759. :
  2760. else
  2761. rm -rf conftest.one conftest.two conftest.dir
  2762. echo one > conftest.one
  2763. echo two > conftest.two
  2764. mkdir conftest.dir
  2765. if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
  2766. test -s conftest.one && test -s conftest.two &&
  2767. test -s conftest.dir/conftest.one &&
  2768. test -s conftest.dir/conftest.two
  2769. then
  2770. ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
  2771. break 3
  2772. fi
  2773. fi
  2774. fi
  2775. done
  2776. done
  2777. ;;
  2778. esac
  2779. done
  2780. IFS=$as_save_IFS
  2781. rm -rf conftest.one conftest.two conftest.dir
  2782. fi
  2783. if test "${ac_cv_path_install+set}" = set; then
  2784. INSTALL=$ac_cv_path_install
  2785. else
  2786. # As a last resort, use the slow shell script. Don't cache a
  2787. # value for INSTALL within a source directory, because that will
  2788. # break other packages using the cache if that directory is
  2789. # removed, or if the value is a relative name.
  2790. INSTALL=$ac_install_sh
  2791. fi
  2792. fi
  2793. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
  2794. $as_echo "$INSTALL" >&6; }
  2795. # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
  2796. # It thinks the first close brace ends the variable substitution.
  2797. test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
  2798. test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
  2799. test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
  2800. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
  2801. $as_echo_n "checking whether build environment is sane... " >&6; }
  2802. # Just in case
  2803. sleep 1
  2804. echo timestamp > conftest.file
  2805. # Reject unsafe characters in $srcdir or the absolute working directory
  2806. # name. Accept space and tab only in the latter.
  2807. am_lf='
  2808. '
  2809. case `pwd` in
  2810. *[\\\"\#\$\&\'\`$am_lf]*)
  2811. as_fn_error "unsafe absolute working directory name" "$LINENO" 5;;
  2812. esac
  2813. case $srcdir in
  2814. *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
  2815. as_fn_error "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;;
  2816. esac
  2817. # Do `set' in a subshell so we don't clobber the current shell's
  2818. # arguments. Must try -L first in case configure is actually a
  2819. # symlink; some systems play weird games with the mod time of symlinks
  2820. # (eg FreeBSD returns the mod time of the symlink's containing
  2821. # directory).
  2822. if (
  2823. set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
  2824. if test "$*" = "X"; then
  2825. # -L didn't work.
  2826. set X `ls -t "$srcdir/configure" conftest.file`
  2827. fi
  2828. rm -f conftest.file
  2829. if test "$*" != "X $srcdir/configure conftest.file" \
  2830. && test "$*" != "X conftest.file $srcdir/configure"; then
  2831. # If neither matched, then we have a broken ls. This can happen
  2832. # if, for instance, CONFIG_SHELL is bash and it inherits a
  2833. # broken ls alias from the environment. This has actually
  2834. # happened. Such a system could not be considered "sane".
  2835. as_fn_error "ls -t appears to fail. Make sure there is not a broken
  2836. alias in your environment" "$LINENO" 5
  2837. fi
  2838. test "$2" = conftest.file
  2839. )
  2840. then
  2841. # Ok.
  2842. :
  2843. else
  2844. as_fn_error "newly created file is older than distributed files!
  2845. Check your system clock" "$LINENO" 5
  2846. fi
  2847. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  2848. $as_echo "yes" >&6; }
  2849. test "$program_prefix" != NONE &&
  2850. program_transform_name="s&^&$program_prefix&;$program_transform_name"
  2851. # Use a double $ so make ignores it.
  2852. test "$program_suffix" != NONE &&
  2853. program_transform_name="s&\$&$program_suffix&;$program_transform_name"
  2854. # Double any \ or $.
  2855. # By default was `s,x,x', remove it if useless.
  2856. ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
  2857. program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
  2858. # expand $ac_aux_dir to an absolute path
  2859. am_aux_dir=`cd $ac_aux_dir && pwd`
  2860. if test x"${MISSING+set}" != xset; then
  2861. case $am_aux_dir in
  2862. *\ * | *\ *)
  2863. MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
  2864. *)
  2865. MISSING="\${SHELL} $am_aux_dir/missing" ;;
  2866. esac
  2867. fi
  2868. # Use eval to expand $SHELL
  2869. if eval "$MISSING --run true"; then
  2870. am_missing_run="$MISSING --run "
  2871. else
  2872. am_missing_run=
  2873. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
  2874. $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
  2875. fi
  2876. if test x"${install_sh}" != xset; then
  2877. case $am_aux_dir in
  2878. *\ * | *\ *)
  2879. install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
  2880. *)
  2881. install_sh="\${SHELL} $am_aux_dir/install-sh"
  2882. esac
  2883. fi
  2884. # Installed binaries are usually stripped using `strip' when the user
  2885. # run `make install-strip'. However `strip' might not be the right
  2886. # tool to use in cross-compilation environments, therefore Automake
  2887. # will honor the `STRIP' environment variable to overrule this program.
  2888. if test "$cross_compiling" != no; then
  2889. if test -n "$ac_tool_prefix"; then
  2890. # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
  2891. set dummy ${ac_tool_prefix}strip; ac_word=$2
  2892. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2893. $as_echo_n "checking for $ac_word... " >&6; }
  2894. if test "${ac_cv_prog_STRIP+set}" = set; then :
  2895. $as_echo_n "(cached) " >&6
  2896. else
  2897. if test -n "$STRIP"; then
  2898. ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
  2899. else
  2900. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2901. for as_dir in $PATH
  2902. do
  2903. IFS=$as_save_IFS
  2904. test -z "$as_dir" && as_dir=.
  2905. for ac_exec_ext in '' $ac_executable_extensions; do
  2906. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  2907. ac_cv_prog_STRIP="${ac_tool_prefix}strip"
  2908. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2909. break 2
  2910. fi
  2911. done
  2912. done
  2913. IFS=$as_save_IFS
  2914. fi
  2915. fi
  2916. STRIP=$ac_cv_prog_STRIP
  2917. if test -n "$STRIP"; then
  2918. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
  2919. $as_echo "$STRIP" >&6; }
  2920. else
  2921. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2922. $as_echo "no" >&6; }
  2923. fi
  2924. fi
  2925. if test -z "$ac_cv_prog_STRIP"; then
  2926. ac_ct_STRIP=$STRIP
  2927. # Extract the first word of "strip", so it can be a program name with args.
  2928. set dummy strip; ac_word=$2
  2929. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2930. $as_echo_n "checking for $ac_word... " >&6; }
  2931. if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
  2932. $as_echo_n "(cached) " >&6
  2933. else
  2934. if test -n "$ac_ct_STRIP"; then
  2935. ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
  2936. else
  2937. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2938. for as_dir in $PATH
  2939. do
  2940. IFS=$as_save_IFS
  2941. test -z "$as_dir" && as_dir=.
  2942. for ac_exec_ext in '' $ac_executable_extensions; do
  2943. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  2944. ac_cv_prog_ac_ct_STRIP="strip"
  2945. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2946. break 2
  2947. fi
  2948. done
  2949. done
  2950. IFS=$as_save_IFS
  2951. fi
  2952. fi
  2953. ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
  2954. if test -n "$ac_ct_STRIP"; then
  2955. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
  2956. $as_echo "$ac_ct_STRIP" >&6; }
  2957. else
  2958. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2959. $as_echo "no" >&6; }
  2960. fi
  2961. if test "x$ac_ct_STRIP" = x; then
  2962. STRIP=":"
  2963. else
  2964. case $cross_compiling:$ac_tool_warned in
  2965. yes:)
  2966. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  2967. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  2968. ac_tool_warned=yes ;;
  2969. esac
  2970. STRIP=$ac_ct_STRIP
  2971. fi
  2972. else
  2973. STRIP="$ac_cv_prog_STRIP"
  2974. fi
  2975. fi
  2976. INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
  2977. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
  2978. $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
  2979. if test -z "$MKDIR_P"; then
  2980. if test "${ac_cv_path_mkdir+set}" = set; then :
  2981. $as_echo_n "(cached) " >&6
  2982. else
  2983. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2984. for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
  2985. do
  2986. IFS=$as_save_IFS
  2987. test -z "$as_dir" && as_dir=.
  2988. for ac_prog in mkdir gmkdir; do
  2989. for ac_exec_ext in '' $ac_executable_extensions; do
  2990. { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
  2991. case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
  2992. 'mkdir (GNU coreutils) '* | \
  2993. 'mkdir (coreutils) '* | \
  2994. 'mkdir (fileutils) '4.1*)
  2995. ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
  2996. break 3;;
  2997. esac
  2998. done
  2999. done
  3000. done
  3001. IFS=$as_save_IFS
  3002. fi
  3003. test -d ./--version && rmdir ./--version
  3004. if test "${ac_cv_path_mkdir+set}" = set; then
  3005. MKDIR_P="$ac_cv_path_mkdir -p"
  3006. else
  3007. # As a last resort, use the slow shell script. Don't cache a
  3008. # value for MKDIR_P within a source directory, because that will
  3009. # break other packages using the cache if that directory is
  3010. # removed, or if the value is a relative name.
  3011. MKDIR_P="$ac_install_sh -d"
  3012. fi
  3013. fi
  3014. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
  3015. $as_echo "$MKDIR_P" >&6; }
  3016. mkdir_p="$MKDIR_P"
  3017. case $mkdir_p in
  3018. [\\/$]* | ?:[\\/]*) ;;
  3019. */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
  3020. esac
  3021. for ac_prog in gawk mawk nawk awk
  3022. do
  3023. # Extract the first word of "$ac_prog", so it can be a program name with args.
  3024. set dummy $ac_prog; ac_word=$2
  3025. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3026. $as_echo_n "checking for $ac_word... " >&6; }
  3027. if test "${ac_cv_prog_AWK+set}" = set; then :
  3028. $as_echo_n "(cached) " >&6
  3029. else
  3030. if test -n "$AWK"; then
  3031. ac_cv_prog_AWK="$AWK" # Let the user override the test.
  3032. else
  3033. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3034. for as_dir in $PATH
  3035. do
  3036. IFS=$as_save_IFS
  3037. test -z "$as_dir" && as_dir=.
  3038. for ac_exec_ext in '' $ac_executable_extensions; do
  3039. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  3040. ac_cv_prog_AWK="$ac_prog"
  3041. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  3042. break 2
  3043. fi
  3044. done
  3045. done
  3046. IFS=$as_save_IFS
  3047. fi
  3048. fi
  3049. AWK=$ac_cv_prog_AWK
  3050. if test -n "$AWK"; then
  3051. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
  3052. $as_echo "$AWK" >&6; }
  3053. else
  3054. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3055. $as_echo "no" >&6; }
  3056. fi
  3057. test -n "$AWK" && break
  3058. done
  3059. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
  3060. $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
  3061. set x ${MAKE-make}
  3062. ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
  3063. if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then :
  3064. $as_echo_n "(cached) " >&6
  3065. else
  3066. cat >conftest.make <<\_ACEOF
  3067. SHELL = /bin/sh
  3068. all:
  3069. @echo '@@@%%%=$(MAKE)=@@@%%%'
  3070. _ACEOF
  3071. # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
  3072. case `${MAKE-make} -f conftest.make 2>/dev/null` in
  3073. *@@@%%%=?*=@@@%%%*)
  3074. eval ac_cv_prog_make_${ac_make}_set=yes;;
  3075. *)
  3076. eval ac_cv_prog_make_${ac_make}_set=no;;
  3077. esac
  3078. rm -f conftest.make
  3079. fi
  3080. if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
  3081. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  3082. $as_echo "yes" >&6; }
  3083. SET_MAKE=
  3084. else
  3085. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3086. $as_echo "no" >&6; }
  3087. SET_MAKE="MAKE=${MAKE-make}"
  3088. fi
  3089. rm -rf .tst 2>/dev/null
  3090. mkdir .tst 2>/dev/null
  3091. if test -d .tst; then
  3092. am__leading_dot=.
  3093. else
  3094. am__leading_dot=_
  3095. fi
  3096. rmdir .tst 2>/dev/null
  3097. if test "`cd $srcdir && pwd`" != "`pwd`"; then
  3098. # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
  3099. # is not polluted with repeated "-I."
  3100. am__isrc=' -I$(srcdir)'
  3101. # test to see if srcdir already configured
  3102. if test -f $srcdir/config.status; then
  3103. as_fn_error "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
  3104. fi
  3105. fi
  3106. # test whether we have cygpath
  3107. if test -z "$CYGPATH_W"; then
  3108. if (cygpath --version) >/dev/null 2>/dev/null; then
  3109. CYGPATH_W='cygpath -w'
  3110. else
  3111. CYGPATH_W=echo
  3112. fi
  3113. fi
  3114. # Define the identity of the package.
  3115. PACKAGE='aria2'
  3116. VERSION='1.9.0a'
  3117. cat >>confdefs.h <<_ACEOF
  3118. #define PACKAGE "$PACKAGE"
  3119. _ACEOF
  3120. cat >>confdefs.h <<_ACEOF
  3121. #define VERSION "$VERSION"
  3122. _ACEOF
  3123. # Some tools Automake needs.
  3124. ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
  3125. AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
  3126. AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
  3127. AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
  3128. MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
  3129. # We need awk for the "check" target. The system "awk" is bad on
  3130. # some platforms.
  3131. # Always define AMTAR for backward compatibility.
  3132. AMTAR=${AMTAR-"${am_missing_run}tar"}
  3133. am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
  3134. # Check whether --with-cppunit-prefix was given.
  3135. if test "${with_cppunit_prefix+set}" = set; then :
  3136. withval=$with_cppunit_prefix; cppunit_config_prefix="$withval"
  3137. else
  3138. cppunit_config_prefix=""
  3139. fi
  3140. # Check whether --with-cppunit-exec-prefix was given.
  3141. if test "${with_cppunit_exec_prefix+set}" = set; then :
  3142. withval=$with_cppunit_exec_prefix; cppunit_config_exec_prefix="$withval"
  3143. else
  3144. cppunit_config_exec_prefix=""
  3145. fi
  3146. if test x$cppunit_config_exec_prefix != x ; then
  3147. cppunit_config_args="$cppunit_config_args --exec-prefix=$cppunit_config_exec_prefix"
  3148. if test x${CPPUNIT_CONFIG+set} != xset ; then
  3149. CPPUNIT_CONFIG=$cppunit_config_exec_prefix/bin/cppunit-config
  3150. fi
  3151. fi
  3152. if test x$cppunit_config_prefix != x ; then
  3153. cppunit_config_args="$cppunit_config_args --prefix=$cppunit_config_prefix"
  3154. if test x${CPPUNIT_CONFIG+set} != xset ; then
  3155. CPPUNIT_CONFIG=$cppunit_config_prefix/bin/cppunit-config
  3156. fi
  3157. fi
  3158. # Extract the first word of "cppunit-config", so it can be a program name with args.
  3159. set dummy cppunit-config; ac_word=$2
  3160. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3161. $as_echo_n "checking for $ac_word... " >&6; }
  3162. if test "${ac_cv_path_CPPUNIT_CONFIG+set}" = set; then :
  3163. $as_echo_n "(cached) " >&6
  3164. else
  3165. case $CPPUNIT_CONFIG in
  3166. [\\/]* | ?:[\\/]*)
  3167. ac_cv_path_CPPUNIT_CONFIG="$CPPUNIT_CONFIG" # Let the user override the test with a path.
  3168. ;;
  3169. *)
  3170. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3171. for as_dir in $PATH
  3172. do
  3173. IFS=$as_save_IFS
  3174. test -z "$as_dir" && as_dir=.
  3175. for ac_exec_ext in '' $ac_executable_extensions; do
  3176. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  3177. ac_cv_path_CPPUNIT_CONFIG="$as_dir/$ac_word$ac_exec_ext"
  3178. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  3179. break 2
  3180. fi
  3181. done
  3182. done
  3183. IFS=$as_save_IFS
  3184. test -z "$ac_cv_path_CPPUNIT_CONFIG" && ac_cv_path_CPPUNIT_CONFIG="no"
  3185. ;;
  3186. esac
  3187. fi
  3188. CPPUNIT_CONFIG=$ac_cv_path_CPPUNIT_CONFIG
  3189. if test -n "$CPPUNIT_CONFIG"; then
  3190. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPPUNIT_CONFIG" >&5
  3191. $as_echo "$CPPUNIT_CONFIG" >&6; }
  3192. else
  3193. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3194. $as_echo "no" >&6; }
  3195. fi
  3196. cppunit_version_min=1.10.2
  3197. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Cppunit - version >= $cppunit_version_min" >&5
  3198. $as_echo_n "checking for Cppunit - version >= $cppunit_version_min... " >&6; }
  3199. no_cppunit=""
  3200. if test "$CPPUNIT_CONFIG" = "no" ; then
  3201. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3202. $as_echo "no" >&6; }
  3203. no_cppunit=yes
  3204. else
  3205. CPPUNIT_CFLAGS=`$CPPUNIT_CONFIG --cflags`
  3206. CPPUNIT_LIBS=`$CPPUNIT_CONFIG --libs`
  3207. cppunit_version=`$CPPUNIT_CONFIG --version`
  3208. cppunit_major_version=`echo $cppunit_version | \
  3209. sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
  3210. cppunit_minor_version=`echo $cppunit_version | \
  3211. sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
  3212. cppunit_micro_version=`echo $cppunit_version | \
  3213. sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
  3214. cppunit_major_min=`echo $cppunit_version_min | \
  3215. sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
  3216. if test "x${cppunit_major_min}" = "x" ; then
  3217. cppunit_major_min=0
  3218. fi
  3219. cppunit_minor_min=`echo $cppunit_version_min | \
  3220. sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
  3221. if test "x${cppunit_minor_min}" = "x" ; then
  3222. cppunit_minor_min=0
  3223. fi
  3224. cppunit_micro_min=`echo $cppunit_version_min | \
  3225. sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
  3226. if test "x${cppunit_micro_min}" = "x" ; then
  3227. cppunit_micro_min=0
  3228. fi
  3229. cppunit_version_proper=`expr \
  3230. $cppunit_major_version \> $cppunit_major_min \| \
  3231. $cppunit_major_version \= $cppunit_major_min \& \
  3232. $cppunit_minor_version \> $cppunit_minor_min \| \
  3233. $cppunit_major_version \= $cppunit_major_min \& \
  3234. $cppunit_minor_version \= $cppunit_minor_min \& \
  3235. $cppunit_micro_version \>= $cppunit_micro_min `
  3236. if test "$cppunit_version_proper" = "1" ; then
  3237. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cppunit_major_version.$cppunit_minor_version.$cppunit_micro_version" >&5
  3238. $as_echo "$cppunit_major_version.$cppunit_minor_version.$cppunit_micro_version" >&6; }
  3239. else
  3240. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3241. $as_echo "no" >&6; }
  3242. no_cppunit=yes
  3243. fi
  3244. fi
  3245. if test "x$no_cppunit" = x ; then
  3246. :
  3247. else
  3248. CPPUNIT_CFLAGS=""
  3249. CPPUNIT_LIBS=""
  3250. :
  3251. fi
  3252. ac_config_headers="$ac_config_headers config.h"
  3253. case "$target" in
  3254. *mingw*|*cygwin*)
  3255. WINSOCK_LIBS="-lws2_32 -lpthread"
  3256. ;;
  3257. esac
  3258. cat >>confdefs.h <<_ACEOF
  3259. #define TARGET "$target"
  3260. _ACEOF
  3261. # Checks for arguments.
  3262. # Check whether --with-gnutls was given.
  3263. if test "${with_gnutls+set}" = set; then :
  3264. withval=$with_gnutls; with_gnutls_requested=$withval with_gnutls=$withval
  3265. else
  3266. with_gnutls=yes
  3267. fi
  3268. # Check whether --with-openssl was given.
  3269. if test "${with_openssl+set}" = set; then :
  3270. withval=$with_openssl; with_openssl_requested=$withval with_openssl=$withval
  3271. else
  3272. with_openssl=yes
  3273. fi
  3274. # Check whether --with-sqlite3 was given.
  3275. if test "${with_sqlite3+set}" = set; then :
  3276. withval=$with_sqlite3; with_sqlite3_requested=$withval with_sqlite3=$withval
  3277. else
  3278. with_sqlite3=yes
  3279. fi
  3280. # Check whether --with-libxml2 was given.
  3281. if test "${with_libxml2+set}" = set; then :
  3282. withval=$with_libxml2; with_libxml2_requested=$withval with_libxml2=$withval
  3283. else
  3284. with_libxml2=yes
  3285. fi
  3286. # Check whether --with-libexpat was given.
  3287. if test "${with_libexpat+set}" = set; then :
  3288. withval=$with_libexpat; with_libexpat_requested=$withval with_libexpat=$withval
  3289. else
  3290. with_libexpat=yes
  3291. fi
  3292. # Check whether --with-libcares was given.
  3293. if test "${with_libcares+set}" = set; then :
  3294. withval=$with_libcares; with_libcares_requested=$withval with_libcares=$withval
  3295. else
  3296. with_libcares=yes
  3297. fi
  3298. # Check whether --with-libz was given.
  3299. if test "${with_libz+set}" = set; then :
  3300. withval=$with_libz; with_libz_requested=$withval with_libz=$withval
  3301. else
  3302. with_libz=yes
  3303. fi
  3304. # Check whether --enable-bittorrent was given.
  3305. if test "${enable_bittorrent+set}" = set; then :
  3306. enableval=$enable_bittorrent; enable_bittorrent_requested=$enableval enable_bittorrent=$enableval
  3307. else
  3308. enable_bittorrent=yes
  3309. fi
  3310. # Check whether --enable-metalink was given.
  3311. if test "${enable_metalink+set}" = set; then :
  3312. enableval=$enable_metalink; enable_metalink_requested=$enableval enable_metalink=$enableval
  3313. else
  3314. enable_metalink=yes
  3315. fi
  3316. # Check whether --enable-epoll was given.
  3317. if test "${enable_epoll+set}" = set; then :
  3318. enableval=$enable_epoll; enable_epoll_requested=$enableval enable_epoll=$enableval
  3319. else
  3320. enable_epoll=yes
  3321. fi
  3322. # Check whether --with-ca-bundle was given.
  3323. if test "${with_ca_bundle+set}" = set; then :
  3324. withval=$with_ca_bundle; ca_bundle=$withval
  3325. else
  3326. ca_bundle=""
  3327. fi
  3328. # Checks for programs.
  3329. ac_ext=cpp
  3330. ac_cpp='$CXXCPP $CPPFLAGS'
  3331. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  3332. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  3333. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  3334. if test -z "$CXX"; then
  3335. if test -n "$CCC"; then
  3336. CXX=$CCC
  3337. else
  3338. if test -n "$ac_tool_prefix"; then
  3339. for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
  3340. do
  3341. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  3342. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  3343. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3344. $as_echo_n "checking for $ac_word... " >&6; }
  3345. if test "${ac_cv_prog_CXX+set}" = set; then :
  3346. $as_echo_n "(cached) " >&6
  3347. else
  3348. if test -n "$CXX"; then
  3349. ac_cv_prog_CXX="$CXX" # Let the user override the test.
  3350. else
  3351. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3352. for as_dir in $PATH
  3353. do
  3354. IFS=$as_save_IFS
  3355. test -z "$as_dir" && as_dir=.
  3356. for ac_exec_ext in '' $ac_executable_extensions; do
  3357. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  3358. ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
  3359. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  3360. break 2
  3361. fi
  3362. done
  3363. done
  3364. IFS=$as_save_IFS
  3365. fi
  3366. fi
  3367. CXX=$ac_cv_prog_CXX
  3368. if test -n "$CXX"; then
  3369. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
  3370. $as_echo "$CXX" >&6; }
  3371. else
  3372. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3373. $as_echo "no" >&6; }
  3374. fi
  3375. test -n "$CXX" && break
  3376. done
  3377. fi
  3378. if test -z "$CXX"; then
  3379. ac_ct_CXX=$CXX
  3380. for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
  3381. do
  3382. # Extract the first word of "$ac_prog", so it can be a program name with args.
  3383. set dummy $ac_prog; ac_word=$2
  3384. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3385. $as_echo_n "checking for $ac_word... " >&6; }
  3386. if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then :
  3387. $as_echo_n "(cached) " >&6
  3388. else
  3389. if test -n "$ac_ct_CXX"; then
  3390. ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
  3391. else
  3392. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3393. for as_dir in $PATH
  3394. do
  3395. IFS=$as_save_IFS
  3396. test -z "$as_dir" && as_dir=.
  3397. for ac_exec_ext in '' $ac_executable_extensions; do
  3398. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  3399. ac_cv_prog_ac_ct_CXX="$ac_prog"
  3400. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  3401. break 2
  3402. fi
  3403. done
  3404. done
  3405. IFS=$as_save_IFS
  3406. fi
  3407. fi
  3408. ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
  3409. if test -n "$ac_ct_CXX"; then
  3410. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
  3411. $as_echo "$ac_ct_CXX" >&6; }
  3412. else
  3413. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3414. $as_echo "no" >&6; }
  3415. fi
  3416. test -n "$ac_ct_CXX" && break
  3417. done
  3418. if test "x$ac_ct_CXX" = x; then
  3419. CXX="g++"
  3420. else
  3421. case $cross_compiling:$ac_tool_warned in
  3422. yes:)
  3423. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  3424. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  3425. ac_tool_warned=yes ;;
  3426. esac
  3427. CXX=$ac_ct_CXX
  3428. fi
  3429. fi
  3430. fi
  3431. fi
  3432. # Provide some information about the compiler.
  3433. $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
  3434. set X $ac_compile
  3435. ac_compiler=$2
  3436. for ac_option in --version -v -V -qversion; do
  3437. { { ac_try="$ac_compiler $ac_option >&5"
  3438. case "(($ac_try" in
  3439. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3440. *) ac_try_echo=$ac_try;;
  3441. esac
  3442. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3443. $as_echo "$ac_try_echo"; } >&5
  3444. (eval "$ac_compiler $ac_option >&5") 2>conftest.err
  3445. ac_status=$?
  3446. if test -s conftest.err; then
  3447. sed '10a\
  3448. ... rest of stderr output deleted ...
  3449. 10q' conftest.err >conftest.er1
  3450. cat conftest.er1 >&5
  3451. fi
  3452. rm -f conftest.er1 conftest.err
  3453. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3454. test $ac_status = 0; }
  3455. done
  3456. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3457. /* end confdefs.h. */
  3458. int
  3459. main ()
  3460. {
  3461. ;
  3462. return 0;
  3463. }
  3464. _ACEOF
  3465. ac_clean_files_save=$ac_clean_files
  3466. ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
  3467. # Try to create an executable without -o first, disregard a.out.
  3468. # It will help us diagnose broken compilers, and finding out an intuition
  3469. # of exeext.
  3470. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C++ compiler works" >&5
  3471. $as_echo_n "checking whether the C++ compiler works... " >&6; }
  3472. ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
  3473. # The possible output files:
  3474. ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
  3475. ac_rmfiles=
  3476. for ac_file in $ac_files
  3477. do
  3478. case $ac_file in
  3479. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
  3480. * ) ac_rmfiles="$ac_rmfiles $ac_file";;
  3481. esac
  3482. done
  3483. rm -f $ac_rmfiles
  3484. if { { ac_try="$ac_link_default"
  3485. case "(($ac_try" in
  3486. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3487. *) ac_try_echo=$ac_try;;
  3488. esac
  3489. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3490. $as_echo "$ac_try_echo"; } >&5
  3491. (eval "$ac_link_default") 2>&5
  3492. ac_status=$?
  3493. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3494. test $ac_status = 0; }; then :
  3495. # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
  3496. # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
  3497. # in a Makefile. We should not override ac_cv_exeext if it was cached,
  3498. # so that the user can short-circuit this test for compilers unknown to
  3499. # Autoconf.
  3500. for ac_file in $ac_files ''
  3501. do
  3502. test -f "$ac_file" || continue
  3503. case $ac_file in
  3504. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
  3505. ;;
  3506. [ab].out )
  3507. # We found the default executable, but exeext='' is most
  3508. # certainly right.
  3509. break;;
  3510. *.* )
  3511. if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
  3512. then :; else
  3513. ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
  3514. fi
  3515. # We set ac_cv_exeext here because the later test for it is not
  3516. # safe: cross compilers may not add the suffix if given an `-o'
  3517. # argument, so we may need to know it at that point already.
  3518. # Even if this section looks crufty: it has the advantage of
  3519. # actually working.
  3520. break;;
  3521. * )
  3522. break;;
  3523. esac
  3524. done
  3525. test "$ac_cv_exeext" = no && ac_cv_exeext=
  3526. else
  3527. ac_file=''
  3528. fi
  3529. if test -z "$ac_file"; then :
  3530. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3531. $as_echo "no" >&6; }
  3532. $as_echo "$as_me: failed program was:" >&5
  3533. sed 's/^/| /' conftest.$ac_ext >&5
  3534. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  3535. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  3536. { as_fn_set_status 77
  3537. as_fn_error "C++ compiler cannot create executables
  3538. See \`config.log' for more details." "$LINENO" 5; }; }
  3539. else
  3540. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  3541. $as_echo "yes" >&6; }
  3542. fi
  3543. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler default output file name" >&5
  3544. $as_echo_n "checking for C++ compiler default output file name... " >&6; }
  3545. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
  3546. $as_echo "$ac_file" >&6; }
  3547. ac_exeext=$ac_cv_exeext
  3548. rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
  3549. ac_clean_files=$ac_clean_files_save
  3550. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
  3551. $as_echo_n "checking for suffix of executables... " >&6; }
  3552. if { { ac_try="$ac_link"
  3553. case "(($ac_try" in
  3554. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3555. *) ac_try_echo=$ac_try;;
  3556. esac
  3557. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3558. $as_echo "$ac_try_echo"; } >&5
  3559. (eval "$ac_link") 2>&5
  3560. ac_status=$?
  3561. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3562. test $ac_status = 0; }; then :
  3563. # If both `conftest.exe' and `conftest' are `present' (well, observable)
  3564. # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
  3565. # work properly (i.e., refer to `conftest.exe'), while it won't with
  3566. # `rm'.
  3567. for ac_file in conftest.exe conftest conftest.*; do
  3568. test -f "$ac_file" || continue
  3569. case $ac_file in
  3570. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
  3571. *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
  3572. break;;
  3573. * ) break;;
  3574. esac
  3575. done
  3576. else
  3577. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  3578. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  3579. as_fn_error "cannot compute suffix of executables: cannot compile and link
  3580. See \`config.log' for more details." "$LINENO" 5; }
  3581. fi
  3582. rm -f conftest conftest$ac_cv_exeext
  3583. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
  3584. $as_echo "$ac_cv_exeext" >&6; }
  3585. rm -f conftest.$ac_ext
  3586. EXEEXT=$ac_cv_exeext
  3587. ac_exeext=$EXEEXT
  3588. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3589. /* end confdefs.h. */
  3590. #include <stdio.h>
  3591. int
  3592. main ()
  3593. {
  3594. FILE *f = fopen ("conftest.out", "w");
  3595. return ferror (f) || fclose (f) != 0;
  3596. ;
  3597. return 0;
  3598. }
  3599. _ACEOF
  3600. ac_clean_files="$ac_clean_files conftest.out"
  3601. # Check that the compiler produces executables we can run. If not, either
  3602. # the compiler is broken, or we cross compile.
  3603. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
  3604. $as_echo_n "checking whether we are cross compiling... " >&6; }
  3605. if test "$cross_compiling" != yes; then
  3606. { { ac_try="$ac_link"
  3607. case "(($ac_try" in
  3608. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3609. *) ac_try_echo=$ac_try;;
  3610. esac
  3611. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3612. $as_echo "$ac_try_echo"; } >&5
  3613. (eval "$ac_link") 2>&5
  3614. ac_status=$?
  3615. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3616. test $ac_status = 0; }
  3617. if { ac_try='./conftest$ac_cv_exeext'
  3618. { { case "(($ac_try" in
  3619. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3620. *) ac_try_echo=$ac_try;;
  3621. esac
  3622. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3623. $as_echo "$ac_try_echo"; } >&5
  3624. (eval "$ac_try") 2>&5
  3625. ac_status=$?
  3626. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3627. test $ac_status = 0; }; }; then
  3628. cross_compiling=no
  3629. else
  3630. if test "$cross_compiling" = maybe; then
  3631. cross_compiling=yes
  3632. else
  3633. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  3634. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  3635. as_fn_error "cannot run C++ compiled programs.
  3636. If you meant to cross compile, use \`--host'.
  3637. See \`config.log' for more details." "$LINENO" 5; }
  3638. fi
  3639. fi
  3640. fi
  3641. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
  3642. $as_echo "$cross_compiling" >&6; }
  3643. rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
  3644. ac_clean_files=$ac_clean_files_save
  3645. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
  3646. $as_echo_n "checking for suffix of object files... " >&6; }
  3647. if test "${ac_cv_objext+set}" = set; then :
  3648. $as_echo_n "(cached) " >&6
  3649. else
  3650. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3651. /* end confdefs.h. */
  3652. int
  3653. main ()
  3654. {
  3655. ;
  3656. return 0;
  3657. }
  3658. _ACEOF
  3659. rm -f conftest.o conftest.obj
  3660. if { { ac_try="$ac_compile"
  3661. case "(($ac_try" in
  3662. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3663. *) ac_try_echo=$ac_try;;
  3664. esac
  3665. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3666. $as_echo "$ac_try_echo"; } >&5
  3667. (eval "$ac_compile") 2>&5
  3668. ac_status=$?
  3669. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3670. test $ac_status = 0; }; then :
  3671. for ac_file in conftest.o conftest.obj conftest.*; do
  3672. test -f "$ac_file" || continue;
  3673. case $ac_file in
  3674. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
  3675. *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
  3676. break;;
  3677. esac
  3678. done
  3679. else
  3680. $as_echo "$as_me: failed program was:" >&5
  3681. sed 's/^/| /' conftest.$ac_ext >&5
  3682. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  3683. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  3684. as_fn_error "cannot compute suffix of object files: cannot compile
  3685. See \`config.log' for more details." "$LINENO" 5; }
  3686. fi
  3687. rm -f conftest.$ac_cv_objext conftest.$ac_ext
  3688. fi
  3689. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
  3690. $as_echo "$ac_cv_objext" >&6; }
  3691. OBJEXT=$ac_cv_objext
  3692. ac_objext=$OBJEXT
  3693. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
  3694. $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
  3695. if test "${ac_cv_cxx_compiler_gnu+set}" = set; then :
  3696. $as_echo_n "(cached) " >&6
  3697. else
  3698. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3699. /* end confdefs.h. */
  3700. int
  3701. main ()
  3702. {
  3703. #ifndef __GNUC__
  3704. choke me
  3705. #endif
  3706. ;
  3707. return 0;
  3708. }
  3709. _ACEOF
  3710. if ac_fn_cxx_try_compile "$LINENO"; then :
  3711. ac_compiler_gnu=yes
  3712. else
  3713. ac_compiler_gnu=no
  3714. fi
  3715. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3716. ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
  3717. fi
  3718. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
  3719. $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
  3720. if test $ac_compiler_gnu = yes; then
  3721. GXX=yes
  3722. else
  3723. GXX=
  3724. fi
  3725. ac_test_CXXFLAGS=${CXXFLAGS+set}
  3726. ac_save_CXXFLAGS=$CXXFLAGS
  3727. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
  3728. $as_echo_n "checking whether $CXX accepts -g... " >&6; }
  3729. if test "${ac_cv_prog_cxx_g+set}" = set; then :
  3730. $as_echo_n "(cached) " >&6
  3731. else
  3732. ac_save_cxx_werror_flag=$ac_cxx_werror_flag
  3733. ac_cxx_werror_flag=yes
  3734. ac_cv_prog_cxx_g=no
  3735. CXXFLAGS="-g"
  3736. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3737. /* end confdefs.h. */
  3738. int
  3739. main ()
  3740. {
  3741. ;
  3742. return 0;
  3743. }
  3744. _ACEOF
  3745. if ac_fn_cxx_try_compile "$LINENO"; then :
  3746. ac_cv_prog_cxx_g=yes
  3747. else
  3748. CXXFLAGS=""
  3749. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3750. /* end confdefs.h. */
  3751. int
  3752. main ()
  3753. {
  3754. ;
  3755. return 0;
  3756. }
  3757. _ACEOF
  3758. if ac_fn_cxx_try_compile "$LINENO"; then :
  3759. else
  3760. ac_cxx_werror_flag=$ac_save_cxx_werror_flag
  3761. CXXFLAGS="-g"
  3762. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3763. /* end confdefs.h. */
  3764. int
  3765. main ()
  3766. {
  3767. ;
  3768. return 0;
  3769. }
  3770. _ACEOF
  3771. if ac_fn_cxx_try_compile "$LINENO"; then :
  3772. ac_cv_prog_cxx_g=yes
  3773. fi
  3774. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3775. fi
  3776. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3777. fi
  3778. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3779. ac_cxx_werror_flag=$ac_save_cxx_werror_flag
  3780. fi
  3781. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
  3782. $as_echo "$ac_cv_prog_cxx_g" >&6; }
  3783. if test "$ac_test_CXXFLAGS" = set; then
  3784. CXXFLAGS=$ac_save_CXXFLAGS
  3785. elif test $ac_cv_prog_cxx_g = yes; then
  3786. if test "$GXX" = yes; then
  3787. CXXFLAGS="-g -O2"
  3788. else
  3789. CXXFLAGS="-g"
  3790. fi
  3791. else
  3792. if test "$GXX" = yes; then
  3793. CXXFLAGS="-O2"
  3794. else
  3795. CXXFLAGS=
  3796. fi
  3797. fi
  3798. ac_ext=c
  3799. ac_cpp='$CPP $CPPFLAGS'
  3800. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  3801. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  3802. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  3803. DEPDIR="${am__leading_dot}deps"
  3804. ac_config_commands="$ac_config_commands depfiles"
  3805. am_make=${MAKE-make}
  3806. cat > confinc << 'END'
  3807. am__doit:
  3808. @echo this is the am__doit target
  3809. .PHONY: am__doit
  3810. END
  3811. # If we don't find an include directive, just comment out the code.
  3812. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
  3813. $as_echo_n "checking for style of include used by $am_make... " >&6; }
  3814. am__include="#"
  3815. am__quote=
  3816. _am_result=none
  3817. # First try GNU make style include.
  3818. echo "include confinc" > confmf
  3819. # Ignore all kinds of additional output from `make'.
  3820. case `$am_make -s -f confmf 2> /dev/null` in #(
  3821. *the\ am__doit\ target*)
  3822. am__include=include
  3823. am__quote=
  3824. _am_result=GNU
  3825. ;;
  3826. esac
  3827. # Now try BSD make style include.
  3828. if test "$am__include" = "#"; then
  3829. echo '.include "confinc"' > confmf
  3830. case `$am_make -s -f confmf 2> /dev/null` in #(
  3831. *the\ am__doit\ target*)
  3832. am__include=.include
  3833. am__quote="\""
  3834. _am_result=BSD
  3835. ;;
  3836. esac
  3837. fi
  3838. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
  3839. $as_echo "$_am_result" >&6; }
  3840. rm -f confinc confmf
  3841. # Check whether --enable-dependency-tracking was given.
  3842. if test "${enable_dependency_tracking+set}" = set; then :
  3843. enableval=$enable_dependency_tracking;
  3844. fi
  3845. if test "x$enable_dependency_tracking" != xno; then
  3846. am_depcomp="$ac_aux_dir/depcomp"
  3847. AMDEPBACKSLASH='\'
  3848. fi
  3849. if test "x$enable_dependency_tracking" != xno; then
  3850. AMDEP_TRUE=
  3851. AMDEP_FALSE='#'
  3852. else
  3853. AMDEP_TRUE='#'
  3854. AMDEP_FALSE=
  3855. fi
  3856. depcc="$CXX" am_compiler_list=
  3857. { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
  3858. $as_echo_n "checking dependency style of $depcc... " >&6; }
  3859. if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then :
  3860. $as_echo_n "(cached) " >&6
  3861. else
  3862. if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
  3863. # We make a subdir and do the tests there. Otherwise we can end up
  3864. # making bogus files that we don't know about and never remove. For
  3865. # instance it was reported that on HP-UX the gcc test will end up
  3866. # making a dummy file named `D' -- because `-MD' means `put the output
  3867. # in D'.
  3868. mkdir conftest.dir
  3869. # Copy depcomp to subdir because otherwise we won't find it if we're
  3870. # using a relative directory.
  3871. cp "$am_depcomp" conftest.dir
  3872. cd conftest.dir
  3873. # We will build objects and dependencies in a subdirectory because
  3874. # it helps to detect inapplicable dependency modes. For instance
  3875. # both Tru64's cc and ICC support -MD to output dependencies as a
  3876. # side effect of compilation, but ICC will put the dependencies in
  3877. # the current directory while Tru64 will put them in the object
  3878. # directory.
  3879. mkdir sub
  3880. am_cv_CXX_dependencies_compiler_type=none
  3881. if test "$am_compiler_list" = ""; then
  3882. am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
  3883. fi
  3884. am__universal=false
  3885. case " $depcc " in #(
  3886. *\ -arch\ *\ -arch\ *) am__universal=true ;;
  3887. esac
  3888. for depmode in $am_compiler_list; do
  3889. # Setup a source with many dependencies, because some compilers
  3890. # like to wrap large dependency lists on column 80 (with \), and
  3891. # we should not choose a depcomp mode which is confused by this.
  3892. #
  3893. # We need to recreate these files for each test, as the compiler may
  3894. # overwrite some of them when testing with obscure command lines.
  3895. # This happens at least with the AIX C compiler.
  3896. : > sub/conftest.c
  3897. for i in 1 2 3 4 5 6; do
  3898. echo '#include "conftst'$i'.h"' >> sub/conftest.c
  3899. # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
  3900. # Solaris 8's {/usr,}/bin/sh.
  3901. touch sub/conftst$i.h
  3902. done
  3903. echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
  3904. # We check with `-c' and `-o' for the sake of the "dashmstdout"
  3905. # mode. It turns out that the SunPro C++ compiler does not properly
  3906. # handle `-M -o', and we need to detect this. Also, some Intel
  3907. # versions had trouble with output in subdirs
  3908. am__obj=sub/conftest.${OBJEXT-o}
  3909. am__minus_obj="-o $am__obj"
  3910. case $depmode in
  3911. gcc)
  3912. # This depmode causes a compiler race in universal mode.
  3913. test "$am__universal" = false || continue
  3914. ;;
  3915. nosideeffect)
  3916. # after this tag, mechanisms are not by side-effect, so they'll
  3917. # only be used when explicitly requested
  3918. if test "x$enable_dependency_tracking" = xyes; then
  3919. continue
  3920. else
  3921. break
  3922. fi
  3923. ;;
  3924. msvisualcpp | msvcmsys)
  3925. # This compiler won't grok `-c -o', but also, the minuso test has
  3926. # not run yet. These depmodes are late enough in the game, and
  3927. # so weak that their functioning should not be impacted.
  3928. am__obj=conftest.${OBJEXT-o}
  3929. am__minus_obj=
  3930. ;;
  3931. none) break ;;
  3932. esac
  3933. if depmode=$depmode \
  3934. source=sub/conftest.c object=$am__obj \
  3935. depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
  3936. $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
  3937. >/dev/null 2>conftest.err &&
  3938. grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
  3939. grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
  3940. grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
  3941. ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
  3942. # icc doesn't choke on unknown options, it will just issue warnings
  3943. # or remarks (even with -Werror). So we grep stderr for any message
  3944. # that says an option was ignored or not supported.
  3945. # When given -MP, icc 7.0 and 7.1 complain thusly:
  3946. # icc: Command line warning: ignoring option '-M'; no argument required
  3947. # The diagnosis changed in icc 8.0:
  3948. # icc: Command line remark: option '-MP' not supported
  3949. if (grep 'ignoring option' conftest.err ||
  3950. grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
  3951. am_cv_CXX_dependencies_compiler_type=$depmode
  3952. break
  3953. fi
  3954. fi
  3955. done
  3956. cd ..
  3957. rm -rf conftest.dir
  3958. else
  3959. am_cv_CXX_dependencies_compiler_type=none
  3960. fi
  3961. fi
  3962. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
  3963. $as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
  3964. CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
  3965. if
  3966. test "x$enable_dependency_tracking" != xno \
  3967. && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
  3968. am__fastdepCXX_TRUE=
  3969. am__fastdepCXX_FALSE='#'
  3970. else
  3971. am__fastdepCXX_TRUE='#'
  3972. am__fastdepCXX_FALSE=
  3973. fi
  3974. ac_ext=c
  3975. ac_cpp='$CPP $CPPFLAGS'
  3976. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  3977. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  3978. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  3979. if test -n "$ac_tool_prefix"; then
  3980. # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
  3981. set dummy ${ac_tool_prefix}gcc; ac_word=$2
  3982. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3983. $as_echo_n "checking for $ac_word... " >&6; }
  3984. if test "${ac_cv_prog_CC+set}" = set; then :
  3985. $as_echo_n "(cached) " >&6
  3986. else
  3987. if test -n "$CC"; then
  3988. ac_cv_prog_CC="$CC" # Let the user override the test.
  3989. else
  3990. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3991. for as_dir in $PATH
  3992. do
  3993. IFS=$as_save_IFS
  3994. test -z "$as_dir" && as_dir=.
  3995. for ac_exec_ext in '' $ac_executable_extensions; do
  3996. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  3997. ac_cv_prog_CC="${ac_tool_prefix}gcc"
  3998. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  3999. break 2
  4000. fi
  4001. done
  4002. done
  4003. IFS=$as_save_IFS
  4004. fi
  4005. fi
  4006. CC=$ac_cv_prog_CC
  4007. if test -n "$CC"; then
  4008. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  4009. $as_echo "$CC" >&6; }
  4010. else
  4011. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4012. $as_echo "no" >&6; }
  4013. fi
  4014. fi
  4015. if test -z "$ac_cv_prog_CC"; then
  4016. ac_ct_CC=$CC
  4017. # Extract the first word of "gcc", so it can be a program name with args.
  4018. set dummy gcc; ac_word=$2
  4019. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4020. $as_echo_n "checking for $ac_word... " >&6; }
  4021. if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
  4022. $as_echo_n "(cached) " >&6
  4023. else
  4024. if test -n "$ac_ct_CC"; then
  4025. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  4026. else
  4027. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4028. for as_dir in $PATH
  4029. do
  4030. IFS=$as_save_IFS
  4031. test -z "$as_dir" && as_dir=.
  4032. for ac_exec_ext in '' $ac_executable_extensions; do
  4033. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  4034. ac_cv_prog_ac_ct_CC="gcc"
  4035. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4036. break 2
  4037. fi
  4038. done
  4039. done
  4040. IFS=$as_save_IFS
  4041. fi
  4042. fi
  4043. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  4044. if test -n "$ac_ct_CC"; then
  4045. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
  4046. $as_echo "$ac_ct_CC" >&6; }
  4047. else
  4048. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4049. $as_echo "no" >&6; }
  4050. fi
  4051. if test "x$ac_ct_CC" = x; then
  4052. CC=""
  4053. else
  4054. case $cross_compiling:$ac_tool_warned in
  4055. yes:)
  4056. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  4057. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  4058. ac_tool_warned=yes ;;
  4059. esac
  4060. CC=$ac_ct_CC
  4061. fi
  4062. else
  4063. CC="$ac_cv_prog_CC"
  4064. fi
  4065. if test -z "$CC"; then
  4066. if test -n "$ac_tool_prefix"; then
  4067. # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
  4068. set dummy ${ac_tool_prefix}cc; ac_word=$2
  4069. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4070. $as_echo_n "checking for $ac_word... " >&6; }
  4071. if test "${ac_cv_prog_CC+set}" = set; then :
  4072. $as_echo_n "(cached) " >&6
  4073. else
  4074. if test -n "$CC"; then
  4075. ac_cv_prog_CC="$CC" # Let the user override the test.
  4076. else
  4077. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4078. for as_dir in $PATH
  4079. do
  4080. IFS=$as_save_IFS
  4081. test -z "$as_dir" && as_dir=.
  4082. for ac_exec_ext in '' $ac_executable_extensions; do
  4083. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  4084. ac_cv_prog_CC="${ac_tool_prefix}cc"
  4085. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4086. break 2
  4087. fi
  4088. done
  4089. done
  4090. IFS=$as_save_IFS
  4091. fi
  4092. fi
  4093. CC=$ac_cv_prog_CC
  4094. if test -n "$CC"; then
  4095. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  4096. $as_echo "$CC" >&6; }
  4097. else
  4098. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4099. $as_echo "no" >&6; }
  4100. fi
  4101. fi
  4102. fi
  4103. if test -z "$CC"; then
  4104. # Extract the first word of "cc", so it can be a program name with args.
  4105. set dummy cc; ac_word=$2
  4106. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4107. $as_echo_n "checking for $ac_word... " >&6; }
  4108. if test "${ac_cv_prog_CC+set}" = set; then :
  4109. $as_echo_n "(cached) " >&6
  4110. else
  4111. if test -n "$CC"; then
  4112. ac_cv_prog_CC="$CC" # Let the user override the test.
  4113. else
  4114. ac_prog_rejected=no
  4115. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4116. for as_dir in $PATH
  4117. do
  4118. IFS=$as_save_IFS
  4119. test -z "$as_dir" && as_dir=.
  4120. for ac_exec_ext in '' $ac_executable_extensions; do
  4121. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  4122. if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
  4123. ac_prog_rejected=yes
  4124. continue
  4125. fi
  4126. ac_cv_prog_CC="cc"
  4127. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4128. break 2
  4129. fi
  4130. done
  4131. done
  4132. IFS=$as_save_IFS
  4133. if test $ac_prog_rejected = yes; then
  4134. # We found a bogon in the path, so make sure we never use it.
  4135. set dummy $ac_cv_prog_CC
  4136. shift
  4137. if test $# != 0; then
  4138. # We chose a different compiler from the bogus one.
  4139. # However, it has the same basename, so the bogon will be chosen
  4140. # first if we set CC to just the basename; use the full file name.
  4141. shift
  4142. ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
  4143. fi
  4144. fi
  4145. fi
  4146. fi
  4147. CC=$ac_cv_prog_CC
  4148. if test -n "$CC"; then
  4149. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  4150. $as_echo "$CC" >&6; }
  4151. else
  4152. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4153. $as_echo "no" >&6; }
  4154. fi
  4155. fi
  4156. if test -z "$CC"; then
  4157. if test -n "$ac_tool_prefix"; then
  4158. for ac_prog in cl.exe
  4159. do
  4160. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  4161. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  4162. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4163. $as_echo_n "checking for $ac_word... " >&6; }
  4164. if test "${ac_cv_prog_CC+set}" = set; then :
  4165. $as_echo_n "(cached) " >&6
  4166. else
  4167. if test -n "$CC"; then
  4168. ac_cv_prog_CC="$CC" # Let the user override the test.
  4169. else
  4170. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4171. for as_dir in $PATH
  4172. do
  4173. IFS=$as_save_IFS
  4174. test -z "$as_dir" && as_dir=.
  4175. for ac_exec_ext in '' $ac_executable_extensions; do
  4176. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  4177. ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
  4178. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4179. break 2
  4180. fi
  4181. done
  4182. done
  4183. IFS=$as_save_IFS
  4184. fi
  4185. fi
  4186. CC=$ac_cv_prog_CC
  4187. if test -n "$CC"; then
  4188. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  4189. $as_echo "$CC" >&6; }
  4190. else
  4191. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4192. $as_echo "no" >&6; }
  4193. fi
  4194. test -n "$CC" && break
  4195. done
  4196. fi
  4197. if test -z "$CC"; then
  4198. ac_ct_CC=$CC
  4199. for ac_prog in cl.exe
  4200. do
  4201. # Extract the first word of "$ac_prog", so it can be a program name with args.
  4202. set dummy $ac_prog; ac_word=$2
  4203. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4204. $as_echo_n "checking for $ac_word... " >&6; }
  4205. if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
  4206. $as_echo_n "(cached) " >&6
  4207. else
  4208. if test -n "$ac_ct_CC"; then
  4209. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  4210. else
  4211. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4212. for as_dir in $PATH
  4213. do
  4214. IFS=$as_save_IFS
  4215. test -z "$as_dir" && as_dir=.
  4216. for ac_exec_ext in '' $ac_executable_extensions; do
  4217. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  4218. ac_cv_prog_ac_ct_CC="$ac_prog"
  4219. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4220. break 2
  4221. fi
  4222. done
  4223. done
  4224. IFS=$as_save_IFS
  4225. fi
  4226. fi
  4227. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  4228. if test -n "$ac_ct_CC"; then
  4229. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
  4230. $as_echo "$ac_ct_CC" >&6; }
  4231. else
  4232. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4233. $as_echo "no" >&6; }
  4234. fi
  4235. test -n "$ac_ct_CC" && break
  4236. done
  4237. if test "x$ac_ct_CC" = x; then
  4238. CC=""
  4239. else
  4240. case $cross_compiling:$ac_tool_warned in
  4241. yes:)
  4242. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  4243. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  4244. ac_tool_warned=yes ;;
  4245. esac
  4246. CC=$ac_ct_CC
  4247. fi
  4248. fi
  4249. fi
  4250. test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  4251. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  4252. as_fn_error "no acceptable C compiler found in \$PATH
  4253. See \`config.log' for more details." "$LINENO" 5; }
  4254. # Provide some information about the compiler.
  4255. $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
  4256. set X $ac_compile
  4257. ac_compiler=$2
  4258. for ac_option in --version -v -V -qversion; do
  4259. { { ac_try="$ac_compiler $ac_option >&5"
  4260. case "(($ac_try" in
  4261. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  4262. *) ac_try_echo=$ac_try;;
  4263. esac
  4264. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  4265. $as_echo "$ac_try_echo"; } >&5
  4266. (eval "$ac_compiler $ac_option >&5") 2>conftest.err
  4267. ac_status=$?
  4268. if test -s conftest.err; then
  4269. sed '10a\
  4270. ... rest of stderr output deleted ...
  4271. 10q' conftest.err >conftest.er1
  4272. cat conftest.er1 >&5
  4273. fi
  4274. rm -f conftest.er1 conftest.err
  4275. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  4276. test $ac_status = 0; }
  4277. done
  4278. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
  4279. $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
  4280. if test "${ac_cv_c_compiler_gnu+set}" = set; then :
  4281. $as_echo_n "(cached) " >&6
  4282. else
  4283. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4284. /* end confdefs.h. */
  4285. int
  4286. main ()
  4287. {
  4288. #ifndef __GNUC__
  4289. choke me
  4290. #endif
  4291. ;
  4292. return 0;
  4293. }
  4294. _ACEOF
  4295. if ac_fn_c_try_compile "$LINENO"; then :
  4296. ac_compiler_gnu=yes
  4297. else
  4298. ac_compiler_gnu=no
  4299. fi
  4300. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4301. ac_cv_c_compiler_gnu=$ac_compiler_gnu
  4302. fi
  4303. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
  4304. $as_echo "$ac_cv_c_compiler_gnu" >&6; }
  4305. if test $ac_compiler_gnu = yes; then
  4306. GCC=yes
  4307. else
  4308. GCC=
  4309. fi
  4310. ac_test_CFLAGS=${CFLAGS+set}
  4311. ac_save_CFLAGS=$CFLAGS
  4312. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
  4313. $as_echo_n "checking whether $CC accepts -g... " >&6; }
  4314. if test "${ac_cv_prog_cc_g+set}" = set; then :
  4315. $as_echo_n "(cached) " >&6
  4316. else
  4317. ac_save_c_werror_flag=$ac_c_werror_flag
  4318. ac_c_werror_flag=yes
  4319. ac_cv_prog_cc_g=no
  4320. CFLAGS="-g"
  4321. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4322. /* end confdefs.h. */
  4323. int
  4324. main ()
  4325. {
  4326. ;
  4327. return 0;
  4328. }
  4329. _ACEOF
  4330. if ac_fn_c_try_compile "$LINENO"; then :
  4331. ac_cv_prog_cc_g=yes
  4332. else
  4333. CFLAGS=""
  4334. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4335. /* end confdefs.h. */
  4336. int
  4337. main ()
  4338. {
  4339. ;
  4340. return 0;
  4341. }
  4342. _ACEOF
  4343. if ac_fn_c_try_compile "$LINENO"; then :
  4344. else
  4345. ac_c_werror_flag=$ac_save_c_werror_flag
  4346. CFLAGS="-g"
  4347. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4348. /* end confdefs.h. */
  4349. int
  4350. main ()
  4351. {
  4352. ;
  4353. return 0;
  4354. }
  4355. _ACEOF
  4356. if ac_fn_c_try_compile "$LINENO"; then :
  4357. ac_cv_prog_cc_g=yes
  4358. fi
  4359. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4360. fi
  4361. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4362. fi
  4363. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4364. ac_c_werror_flag=$ac_save_c_werror_flag
  4365. fi
  4366. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
  4367. $as_echo "$ac_cv_prog_cc_g" >&6; }
  4368. if test "$ac_test_CFLAGS" = set; then
  4369. CFLAGS=$ac_save_CFLAGS
  4370. elif test $ac_cv_prog_cc_g = yes; then
  4371. if test "$GCC" = yes; then
  4372. CFLAGS="-g -O2"
  4373. else
  4374. CFLAGS="-g"
  4375. fi
  4376. else
  4377. if test "$GCC" = yes; then
  4378. CFLAGS="-O2"
  4379. else
  4380. CFLAGS=
  4381. fi
  4382. fi
  4383. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
  4384. $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
  4385. if test "${ac_cv_prog_cc_c89+set}" = set; then :
  4386. $as_echo_n "(cached) " >&6
  4387. else
  4388. ac_cv_prog_cc_c89=no
  4389. ac_save_CC=$CC
  4390. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4391. /* end confdefs.h. */
  4392. #include <stdarg.h>
  4393. #include <stdio.h>
  4394. #include <sys/types.h>
  4395. #include <sys/stat.h>
  4396. /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
  4397. struct buf { int x; };
  4398. FILE * (*rcsopen) (struct buf *, struct stat *, int);
  4399. static char *e (p, i)
  4400. char **p;
  4401. int i;
  4402. {
  4403. return p[i];
  4404. }
  4405. static char *f (char * (*g) (char **, int), char **p, ...)
  4406. {
  4407. char *s;
  4408. va_list v;
  4409. va_start (v,p);
  4410. s = g (p, va_arg (v,int));
  4411. va_end (v);
  4412. return s;
  4413. }
  4414. /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
  4415. function prototypes and stuff, but not '\xHH' hex character constants.
  4416. These don't provoke an error unfortunately, instead are silently treated
  4417. as 'x'. The following induces an error, until -std is added to get
  4418. proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
  4419. array size at least. It's necessary to write '\x00'==0 to get something
  4420. that's true only with -std. */
  4421. int osf4_cc_array ['\x00' == 0 ? 1 : -1];
  4422. /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
  4423. inside strings and character constants. */
  4424. #define FOO(x) 'x'
  4425. int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
  4426. int test (int i, double x);
  4427. struct s1 {int (*f) (int a);};
  4428. struct s2 {int (*f) (double a);};
  4429. int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
  4430. int argc;
  4431. char **argv;
  4432. int
  4433. main ()
  4434. {
  4435. return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
  4436. ;
  4437. return 0;
  4438. }
  4439. _ACEOF
  4440. for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
  4441. -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
  4442. do
  4443. CC="$ac_save_CC $ac_arg"
  4444. if ac_fn_c_try_compile "$LINENO"; then :
  4445. ac_cv_prog_cc_c89=$ac_arg
  4446. fi
  4447. rm -f core conftest.err conftest.$ac_objext
  4448. test "x$ac_cv_prog_cc_c89" != "xno" && break
  4449. done
  4450. rm -f conftest.$ac_ext
  4451. CC=$ac_save_CC
  4452. fi
  4453. # AC_CACHE_VAL
  4454. case "x$ac_cv_prog_cc_c89" in
  4455. x)
  4456. { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
  4457. $as_echo "none needed" >&6; } ;;
  4458. xno)
  4459. { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
  4460. $as_echo "unsupported" >&6; } ;;
  4461. *)
  4462. CC="$CC $ac_cv_prog_cc_c89"
  4463. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
  4464. $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
  4465. esac
  4466. if test "x$ac_cv_prog_cc_c89" != xno; then :
  4467. fi
  4468. ac_ext=c
  4469. ac_cpp='$CPP $CPPFLAGS'
  4470. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  4471. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  4472. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  4473. depcc="$CC" am_compiler_list=
  4474. { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
  4475. $as_echo_n "checking dependency style of $depcc... " >&6; }
  4476. if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then :
  4477. $as_echo_n "(cached) " >&6
  4478. else
  4479. if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
  4480. # We make a subdir and do the tests there. Otherwise we can end up
  4481. # making bogus files that we don't know about and never remove. For
  4482. # instance it was reported that on HP-UX the gcc test will end up
  4483. # making a dummy file named `D' -- because `-MD' means `put the output
  4484. # in D'.
  4485. mkdir conftest.dir
  4486. # Copy depcomp to subdir because otherwise we won't find it if we're
  4487. # using a relative directory.
  4488. cp "$am_depcomp" conftest.dir
  4489. cd conftest.dir
  4490. # We will build objects and dependencies in a subdirectory because
  4491. # it helps to detect inapplicable dependency modes. For instance
  4492. # both Tru64's cc and ICC support -MD to output dependencies as a
  4493. # side effect of compilation, but ICC will put the dependencies in
  4494. # the current directory while Tru64 will put them in the object
  4495. # directory.
  4496. mkdir sub
  4497. am_cv_CC_dependencies_compiler_type=none
  4498. if test "$am_compiler_list" = ""; then
  4499. am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
  4500. fi
  4501. am__universal=false
  4502. case " $depcc " in #(
  4503. *\ -arch\ *\ -arch\ *) am__universal=true ;;
  4504. esac
  4505. for depmode in $am_compiler_list; do
  4506. # Setup a source with many dependencies, because some compilers
  4507. # like to wrap large dependency lists on column 80 (with \), and
  4508. # we should not choose a depcomp mode which is confused by this.
  4509. #
  4510. # We need to recreate these files for each test, as the compiler may
  4511. # overwrite some of them when testing with obscure command lines.
  4512. # This happens at least with the AIX C compiler.
  4513. : > sub/conftest.c
  4514. for i in 1 2 3 4 5 6; do
  4515. echo '#include "conftst'$i'.h"' >> sub/conftest.c
  4516. # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
  4517. # Solaris 8's {/usr,}/bin/sh.
  4518. touch sub/conftst$i.h
  4519. done
  4520. echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
  4521. # We check with `-c' and `-o' for the sake of the "dashmstdout"
  4522. # mode. It turns out that the SunPro C++ compiler does not properly
  4523. # handle `-M -o', and we need to detect this. Also, some Intel
  4524. # versions had trouble with output in subdirs
  4525. am__obj=sub/conftest.${OBJEXT-o}
  4526. am__minus_obj="-o $am__obj"
  4527. case $depmode in
  4528. gcc)
  4529. # This depmode causes a compiler race in universal mode.
  4530. test "$am__universal" = false || continue
  4531. ;;
  4532. nosideeffect)
  4533. # after this tag, mechanisms are not by side-effect, so they'll
  4534. # only be used when explicitly requested
  4535. if test "x$enable_dependency_tracking" = xyes; then
  4536. continue
  4537. else
  4538. break
  4539. fi
  4540. ;;
  4541. msvisualcpp | msvcmsys)
  4542. # This compiler won't grok `-c -o', but also, the minuso test has
  4543. # not run yet. These depmodes are late enough in the game, and
  4544. # so weak that their functioning should not be impacted.
  4545. am__obj=conftest.${OBJEXT-o}
  4546. am__minus_obj=
  4547. ;;
  4548. none) break ;;
  4549. esac
  4550. if depmode=$depmode \
  4551. source=sub/conftest.c object=$am__obj \
  4552. depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
  4553. $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
  4554. >/dev/null 2>conftest.err &&
  4555. grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
  4556. grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
  4557. grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
  4558. ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
  4559. # icc doesn't choke on unknown options, it will just issue warnings
  4560. # or remarks (even with -Werror). So we grep stderr for any message
  4561. # that says an option was ignored or not supported.
  4562. # When given -MP, icc 7.0 and 7.1 complain thusly:
  4563. # icc: Command line warning: ignoring option '-M'; no argument required
  4564. # The diagnosis changed in icc 8.0:
  4565. # icc: Command line remark: option '-MP' not supported
  4566. if (grep 'ignoring option' conftest.err ||
  4567. grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
  4568. am_cv_CC_dependencies_compiler_type=$depmode
  4569. break
  4570. fi
  4571. fi
  4572. done
  4573. cd ..
  4574. rm -rf conftest.dir
  4575. else
  4576. am_cv_CC_dependencies_compiler_type=none
  4577. fi
  4578. fi
  4579. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
  4580. $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
  4581. CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
  4582. if
  4583. test "x$enable_dependency_tracking" != xno \
  4584. && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
  4585. am__fastdepCC_TRUE=
  4586. am__fastdepCC_FALSE='#'
  4587. else
  4588. am__fastdepCC_TRUE='#'
  4589. am__fastdepCC_FALSE=
  4590. fi
  4591. if test -n "$ac_tool_prefix"; then
  4592. # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
  4593. set dummy ${ac_tool_prefix}ranlib; ac_word=$2
  4594. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4595. $as_echo_n "checking for $ac_word... " >&6; }
  4596. if test "${ac_cv_prog_RANLIB+set}" = set; then :
  4597. $as_echo_n "(cached) " >&6
  4598. else
  4599. if test -n "$RANLIB"; then
  4600. ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
  4601. else
  4602. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4603. for as_dir in $PATH
  4604. do
  4605. IFS=$as_save_IFS
  4606. test -z "$as_dir" && as_dir=.
  4607. for ac_exec_ext in '' $ac_executable_extensions; do
  4608. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  4609. ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
  4610. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4611. break 2
  4612. fi
  4613. done
  4614. done
  4615. IFS=$as_save_IFS
  4616. fi
  4617. fi
  4618. RANLIB=$ac_cv_prog_RANLIB
  4619. if test -n "$RANLIB"; then
  4620. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
  4621. $as_echo "$RANLIB" >&6; }
  4622. else
  4623. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4624. $as_echo "no" >&6; }
  4625. fi
  4626. fi
  4627. if test -z "$ac_cv_prog_RANLIB"; then
  4628. ac_ct_RANLIB=$RANLIB
  4629. # Extract the first word of "ranlib", so it can be a program name with args.
  4630. set dummy ranlib; ac_word=$2
  4631. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4632. $as_echo_n "checking for $ac_word... " >&6; }
  4633. if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
  4634. $as_echo_n "(cached) " >&6
  4635. else
  4636. if test -n "$ac_ct_RANLIB"; then
  4637. ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
  4638. else
  4639. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4640. for as_dir in $PATH
  4641. do
  4642. IFS=$as_save_IFS
  4643. test -z "$as_dir" && as_dir=.
  4644. for ac_exec_ext in '' $ac_executable_extensions; do
  4645. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  4646. ac_cv_prog_ac_ct_RANLIB="ranlib"
  4647. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4648. break 2
  4649. fi
  4650. done
  4651. done
  4652. IFS=$as_save_IFS
  4653. fi
  4654. fi
  4655. ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
  4656. if test -n "$ac_ct_RANLIB"; then
  4657. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
  4658. $as_echo "$ac_ct_RANLIB" >&6; }
  4659. else
  4660. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4661. $as_echo "no" >&6; }
  4662. fi
  4663. if test "x$ac_ct_RANLIB" = x; then
  4664. RANLIB=":"
  4665. else
  4666. case $cross_compiling:$ac_tool_warned in
  4667. yes:)
  4668. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  4669. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  4670. ac_tool_warned=yes ;;
  4671. esac
  4672. RANLIB=$ac_ct_RANLIB
  4673. fi
  4674. else
  4675. RANLIB="$ac_cv_prog_RANLIB"
  4676. fi
  4677. for ac_prog in 'bison -y' byacc
  4678. do
  4679. # Extract the first word of "$ac_prog", so it can be a program name with args.
  4680. set dummy $ac_prog; ac_word=$2
  4681. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4682. $as_echo_n "checking for $ac_word... " >&6; }
  4683. if test "${ac_cv_prog_YACC+set}" = set; then :
  4684. $as_echo_n "(cached) " >&6
  4685. else
  4686. if test -n "$YACC"; then
  4687. ac_cv_prog_YACC="$YACC" # Let the user override the test.
  4688. else
  4689. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4690. for as_dir in $PATH
  4691. do
  4692. IFS=$as_save_IFS
  4693. test -z "$as_dir" && as_dir=.
  4694. for ac_exec_ext in '' $ac_executable_extensions; do
  4695. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  4696. ac_cv_prog_YACC="$ac_prog"
  4697. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4698. break 2
  4699. fi
  4700. done
  4701. done
  4702. IFS=$as_save_IFS
  4703. fi
  4704. fi
  4705. YACC=$ac_cv_prog_YACC
  4706. if test -n "$YACC"; then
  4707. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $YACC" >&5
  4708. $as_echo "$YACC" >&6; }
  4709. else
  4710. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4711. $as_echo "no" >&6; }
  4712. fi
  4713. test -n "$YACC" && break
  4714. done
  4715. test -n "$YACC" || YACC="yacc"
  4716. # Setting language choice
  4717. ac_ext=cpp
  4718. ac_cpp='$CXXCPP $CPPFLAGS'
  4719. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  4720. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  4721. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  4722. # Enable system extensions
  4723. ac_ext=cpp
  4724. ac_cpp='$CXXCPP $CPPFLAGS'
  4725. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  4726. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  4727. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  4728. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
  4729. $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
  4730. if test -z "$CXXCPP"; then
  4731. if test "${ac_cv_prog_CXXCPP+set}" = set; then :
  4732. $as_echo_n "(cached) " >&6
  4733. else
  4734. # Double quotes because CXXCPP needs to be expanded
  4735. for CXXCPP in "$CXX -E" "/lib/cpp"
  4736. do
  4737. ac_preproc_ok=false
  4738. for ac_cxx_preproc_warn_flag in '' yes
  4739. do
  4740. # Use a header file that comes with gcc, so configuring glibc
  4741. # with a fresh cross-compiler works.
  4742. # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  4743. # <limits.h> exists even on freestanding compilers.
  4744. # On the NeXT, cc -E runs the code through the compiler's parser,
  4745. # not just through cpp. "Syntax error" is here to catch this case.
  4746. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4747. /* end confdefs.h. */
  4748. #ifdef __STDC__
  4749. # include <limits.h>
  4750. #else
  4751. # include <assert.h>
  4752. #endif
  4753. Syntax error
  4754. _ACEOF
  4755. if ac_fn_cxx_try_cpp "$LINENO"; then :
  4756. else
  4757. # Broken: fails on valid input.
  4758. continue
  4759. fi
  4760. rm -f conftest.err conftest.$ac_ext
  4761. # OK, works on sane cases. Now check whether nonexistent headers
  4762. # can be detected and how.
  4763. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4764. /* end confdefs.h. */
  4765. #include <ac_nonexistent.h>
  4766. _ACEOF
  4767. if ac_fn_cxx_try_cpp "$LINENO"; then :
  4768. # Broken: success on invalid input.
  4769. continue
  4770. else
  4771. # Passes both tests.
  4772. ac_preproc_ok=:
  4773. break
  4774. fi
  4775. rm -f conftest.err conftest.$ac_ext
  4776. done
  4777. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  4778. rm -f conftest.err conftest.$ac_ext
  4779. if $ac_preproc_ok; then :
  4780. break
  4781. fi
  4782. done
  4783. ac_cv_prog_CXXCPP=$CXXCPP
  4784. fi
  4785. CXXCPP=$ac_cv_prog_CXXCPP
  4786. else
  4787. ac_cv_prog_CXXCPP=$CXXCPP
  4788. fi
  4789. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
  4790. $as_echo "$CXXCPP" >&6; }
  4791. ac_preproc_ok=false
  4792. for ac_cxx_preproc_warn_flag in '' yes
  4793. do
  4794. # Use a header file that comes with gcc, so configuring glibc
  4795. # with a fresh cross-compiler works.
  4796. # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  4797. # <limits.h> exists even on freestanding compilers.
  4798. # On the NeXT, cc -E runs the code through the compiler's parser,
  4799. # not just through cpp. "Syntax error" is here to catch this case.
  4800. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4801. /* end confdefs.h. */
  4802. #ifdef __STDC__
  4803. # include <limits.h>
  4804. #else
  4805. # include <assert.h>
  4806. #endif
  4807. Syntax error
  4808. _ACEOF
  4809. if ac_fn_cxx_try_cpp "$LINENO"; then :
  4810. else
  4811. # Broken: fails on valid input.
  4812. continue
  4813. fi
  4814. rm -f conftest.err conftest.$ac_ext
  4815. # OK, works on sane cases. Now check whether nonexistent headers
  4816. # can be detected and how.
  4817. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4818. /* end confdefs.h. */
  4819. #include <ac_nonexistent.h>
  4820. _ACEOF
  4821. if ac_fn_cxx_try_cpp "$LINENO"; then :
  4822. # Broken: success on invalid input.
  4823. continue
  4824. else
  4825. # Passes both tests.
  4826. ac_preproc_ok=:
  4827. break
  4828. fi
  4829. rm -f conftest.err conftest.$ac_ext
  4830. done
  4831. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  4832. rm -f conftest.err conftest.$ac_ext
  4833. if $ac_preproc_ok; then :
  4834. else
  4835. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  4836. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  4837. as_fn_error "C++ preprocessor \"$CXXCPP\" fails sanity check
  4838. See \`config.log' for more details." "$LINENO" 5; }
  4839. fi
  4840. ac_ext=cpp
  4841. ac_cpp='$CXXCPP $CPPFLAGS'
  4842. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  4843. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  4844. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  4845. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
  4846. $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
  4847. if test "${ac_cv_path_GREP+set}" = set; then :
  4848. $as_echo_n "(cached) " >&6
  4849. else
  4850. if test -z "$GREP"; then
  4851. ac_path_GREP_found=false
  4852. # Loop through the user's path and test for each of PROGNAME-LIST
  4853. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4854. for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
  4855. do
  4856. IFS=$as_save_IFS
  4857. test -z "$as_dir" && as_dir=.
  4858. for ac_prog in grep ggrep; do
  4859. for ac_exec_ext in '' $ac_executable_extensions; do
  4860. ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
  4861. { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
  4862. # Check for GNU ac_path_GREP and select it if it is found.
  4863. # Check for GNU $ac_path_GREP
  4864. case `"$ac_path_GREP" --version 2>&1` in
  4865. *GNU*)
  4866. ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
  4867. *)
  4868. ac_count=0
  4869. $as_echo_n 0123456789 >"conftest.in"
  4870. while :
  4871. do
  4872. cat "conftest.in" "conftest.in" >"conftest.tmp"
  4873. mv "conftest.tmp" "conftest.in"
  4874. cp "conftest.in" "conftest.nl"
  4875. $as_echo 'GREP' >> "conftest.nl"
  4876. "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
  4877. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  4878. as_fn_arith $ac_count + 1 && ac_count=$as_val
  4879. if test $ac_count -gt ${ac_path_GREP_max-0}; then
  4880. # Best one so far, save it but keep looking for a better one
  4881. ac_cv_path_GREP="$ac_path_GREP"
  4882. ac_path_GREP_max=$ac_count
  4883. fi
  4884. # 10*(2^10) chars as input seems more than enough
  4885. test $ac_count -gt 10 && break
  4886. done
  4887. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  4888. esac
  4889. $ac_path_GREP_found && break 3
  4890. done
  4891. done
  4892. done
  4893. IFS=$as_save_IFS
  4894. if test -z "$ac_cv_path_GREP"; then
  4895. as_fn_error "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
  4896. fi
  4897. else
  4898. ac_cv_path_GREP=$GREP
  4899. fi
  4900. fi
  4901. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
  4902. $as_echo "$ac_cv_path_GREP" >&6; }
  4903. GREP="$ac_cv_path_GREP"
  4904. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
  4905. $as_echo_n "checking for egrep... " >&6; }
  4906. if test "${ac_cv_path_EGREP+set}" = set; then :
  4907. $as_echo_n "(cached) " >&6
  4908. else
  4909. if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
  4910. then ac_cv_path_EGREP="$GREP -E"
  4911. else
  4912. if test -z "$EGREP"; then
  4913. ac_path_EGREP_found=false
  4914. # Loop through the user's path and test for each of PROGNAME-LIST
  4915. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4916. for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
  4917. do
  4918. IFS=$as_save_IFS
  4919. test -z "$as_dir" && as_dir=.
  4920. for ac_prog in egrep; do
  4921. for ac_exec_ext in '' $ac_executable_extensions; do
  4922. ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
  4923. { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
  4924. # Check for GNU ac_path_EGREP and select it if it is found.
  4925. # Check for GNU $ac_path_EGREP
  4926. case `"$ac_path_EGREP" --version 2>&1` in
  4927. *GNU*)
  4928. ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
  4929. *)
  4930. ac_count=0
  4931. $as_echo_n 0123456789 >"conftest.in"
  4932. while :
  4933. do
  4934. cat "conftest.in" "conftest.in" >"conftest.tmp"
  4935. mv "conftest.tmp" "conftest.in"
  4936. cp "conftest.in" "conftest.nl"
  4937. $as_echo 'EGREP' >> "conftest.nl"
  4938. "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
  4939. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  4940. as_fn_arith $ac_count + 1 && ac_count=$as_val
  4941. if test $ac_count -gt ${ac_path_EGREP_max-0}; then
  4942. # Best one so far, save it but keep looking for a better one
  4943. ac_cv_path_EGREP="$ac_path_EGREP"
  4944. ac_path_EGREP_max=$ac_count
  4945. fi
  4946. # 10*(2^10) chars as input seems more than enough
  4947. test $ac_count -gt 10 && break
  4948. done
  4949. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  4950. esac
  4951. $ac_path_EGREP_found && break 3
  4952. done
  4953. done
  4954. done
  4955. IFS=$as_save_IFS
  4956. if test -z "$ac_cv_path_EGREP"; then
  4957. as_fn_error "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
  4958. fi
  4959. else
  4960. ac_cv_path_EGREP=$EGREP
  4961. fi
  4962. fi
  4963. fi
  4964. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
  4965. $as_echo "$ac_cv_path_EGREP" >&6; }
  4966. EGREP="$ac_cv_path_EGREP"
  4967. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
  4968. $as_echo_n "checking for ANSI C header files... " >&6; }
  4969. if test "${ac_cv_header_stdc+set}" = set; then :
  4970. $as_echo_n "(cached) " >&6
  4971. else
  4972. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4973. /* end confdefs.h. */
  4974. #include <stdlib.h>
  4975. #include <stdarg.h>
  4976. #include <string.h>
  4977. #include <float.h>
  4978. int
  4979. main ()
  4980. {
  4981. ;
  4982. return 0;
  4983. }
  4984. _ACEOF
  4985. if ac_fn_cxx_try_compile "$LINENO"; then :
  4986. ac_cv_header_stdc=yes
  4987. else
  4988. ac_cv_header_stdc=no
  4989. fi
  4990. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4991. if test $ac_cv_header_stdc = yes; then
  4992. # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
  4993. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4994. /* end confdefs.h. */
  4995. #include <string.h>
  4996. _ACEOF
  4997. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  4998. $EGREP "memchr" >/dev/null 2>&1; then :
  4999. else
  5000. ac_cv_header_stdc=no
  5001. fi
  5002. rm -f conftest*
  5003. fi
  5004. if test $ac_cv_header_stdc = yes; then
  5005. # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
  5006. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5007. /* end confdefs.h. */
  5008. #include <stdlib.h>
  5009. _ACEOF
  5010. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  5011. $EGREP "free" >/dev/null 2>&1; then :
  5012. else
  5013. ac_cv_header_stdc=no
  5014. fi
  5015. rm -f conftest*
  5016. fi
  5017. if test $ac_cv_header_stdc = yes; then
  5018. # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
  5019. if test "$cross_compiling" = yes; then :
  5020. :
  5021. else
  5022. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5023. /* end confdefs.h. */
  5024. #include <ctype.h>
  5025. #include <stdlib.h>
  5026. #if ((' ' & 0x0FF) == 0x020)
  5027. # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
  5028. # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
  5029. #else
  5030. # define ISLOWER(c) \
  5031. (('a' <= (c) && (c) <= 'i') \
  5032. || ('j' <= (c) && (c) <= 'r') \
  5033. || ('s' <= (c) && (c) <= 'z'))
  5034. # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
  5035. #endif
  5036. #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
  5037. int
  5038. main ()
  5039. {
  5040. int i;
  5041. for (i = 0; i < 256; i++)
  5042. if (XOR (islower (i), ISLOWER (i))
  5043. || toupper (i) != TOUPPER (i))
  5044. return 2;
  5045. return 0;
  5046. }
  5047. _ACEOF
  5048. if ac_fn_cxx_try_run "$LINENO"; then :
  5049. else
  5050. ac_cv_header_stdc=no
  5051. fi
  5052. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  5053. conftest.$ac_objext conftest.beam conftest.$ac_ext
  5054. fi
  5055. fi
  5056. fi
  5057. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
  5058. $as_echo "$ac_cv_header_stdc" >&6; }
  5059. if test $ac_cv_header_stdc = yes; then
  5060. $as_echo "#define STDC_HEADERS 1" >>confdefs.h
  5061. fi
  5062. # On IRIX 5.3, sys/types and inttypes.h are conflicting.
  5063. for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
  5064. inttypes.h stdint.h unistd.h
  5065. do :
  5066. as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
  5067. ac_fn_cxx_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
  5068. "
  5069. eval as_val=\$$as_ac_Header
  5070. if test "x$as_val" = x""yes; then :
  5071. cat >>confdefs.h <<_ACEOF
  5072. #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
  5073. _ACEOF
  5074. fi
  5075. done
  5076. ac_fn_cxx_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
  5077. if test "x$ac_cv_header_minix_config_h" = x""yes; then :
  5078. MINIX=yes
  5079. else
  5080. MINIX=
  5081. fi
  5082. if test "$MINIX" = yes; then
  5083. $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
  5084. $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
  5085. $as_echo "#define _MINIX 1" >>confdefs.h
  5086. fi
  5087. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
  5088. $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
  5089. if test "${ac_cv_safe_to_define___extensions__+set}" = set; then :
  5090. $as_echo_n "(cached) " >&6
  5091. else
  5092. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5093. /* end confdefs.h. */
  5094. # define __EXTENSIONS__ 1
  5095. $ac_includes_default
  5096. int
  5097. main ()
  5098. {
  5099. ;
  5100. return 0;
  5101. }
  5102. _ACEOF
  5103. if ac_fn_cxx_try_compile "$LINENO"; then :
  5104. ac_cv_safe_to_define___extensions__=yes
  5105. else
  5106. ac_cv_safe_to_define___extensions__=no
  5107. fi
  5108. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  5109. fi
  5110. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
  5111. $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
  5112. test $ac_cv_safe_to_define___extensions__ = yes &&
  5113. $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
  5114. $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
  5115. $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
  5116. $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
  5117. $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
  5118. # Check pkg-config is available
  5119. if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
  5120. if test -n "$ac_tool_prefix"; then
  5121. # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
  5122. set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
  5123. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5124. $as_echo_n "checking for $ac_word... " >&6; }
  5125. if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
  5126. $as_echo_n "(cached) " >&6
  5127. else
  5128. case $PKG_CONFIG in
  5129. [\\/]* | ?:[\\/]*)
  5130. ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
  5131. ;;
  5132. *)
  5133. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5134. for as_dir in $PATH
  5135. do
  5136. IFS=$as_save_IFS
  5137. test -z "$as_dir" && as_dir=.
  5138. for ac_exec_ext in '' $ac_executable_extensions; do
  5139. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  5140. ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
  5141. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5142. break 2
  5143. fi
  5144. done
  5145. done
  5146. IFS=$as_save_IFS
  5147. ;;
  5148. esac
  5149. fi
  5150. PKG_CONFIG=$ac_cv_path_PKG_CONFIG
  5151. if test -n "$PKG_CONFIG"; then
  5152. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
  5153. $as_echo "$PKG_CONFIG" >&6; }
  5154. else
  5155. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5156. $as_echo "no" >&6; }
  5157. fi
  5158. fi
  5159. if test -z "$ac_cv_path_PKG_CONFIG"; then
  5160. ac_pt_PKG_CONFIG=$PKG_CONFIG
  5161. # Extract the first word of "pkg-config", so it can be a program name with args.
  5162. set dummy pkg-config; ac_word=$2
  5163. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5164. $as_echo_n "checking for $ac_word... " >&6; }
  5165. if test "${ac_cv_path_ac_pt_PKG_CONFIG+set}" = set; then :
  5166. $as_echo_n "(cached) " >&6
  5167. else
  5168. case $ac_pt_PKG_CONFIG in
  5169. [\\/]* | ?:[\\/]*)
  5170. ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
  5171. ;;
  5172. *)
  5173. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5174. for as_dir in $PATH
  5175. do
  5176. IFS=$as_save_IFS
  5177. test -z "$as_dir" && as_dir=.
  5178. for ac_exec_ext in '' $ac_executable_extensions; do
  5179. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  5180. ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
  5181. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5182. break 2
  5183. fi
  5184. done
  5185. done
  5186. IFS=$as_save_IFS
  5187. ;;
  5188. esac
  5189. fi
  5190. ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
  5191. if test -n "$ac_pt_PKG_CONFIG"; then
  5192. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
  5193. $as_echo "$ac_pt_PKG_CONFIG" >&6; }
  5194. else
  5195. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5196. $as_echo "no" >&6; }
  5197. fi
  5198. if test "x$ac_pt_PKG_CONFIG" = x; then
  5199. PKG_CONFIG=""
  5200. else
  5201. case $cross_compiling:$ac_tool_warned in
  5202. yes:)
  5203. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  5204. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  5205. ac_tool_warned=yes ;;
  5206. esac
  5207. PKG_CONFIG=$ac_pt_PKG_CONFIG
  5208. fi
  5209. else
  5210. PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
  5211. fi
  5212. fi
  5213. if test -n "$PKG_CONFIG"; then
  5214. _pkg_min_version=0.20
  5215. { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
  5216. $as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
  5217. if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
  5218. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  5219. $as_echo "yes" >&6; }
  5220. else
  5221. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5222. $as_echo "no" >&6; }
  5223. PKG_CONFIG=""
  5224. fi
  5225. fi
  5226. # Checks for libraries.
  5227. if test "x$with_libxml2" = "xyes"; then
  5228. # Check whether --with-xml-prefix was given.
  5229. if test "${with_xml_prefix+set}" = set; then :
  5230. withval=$with_xml_prefix; xml_config_prefix="$withval"
  5231. else
  5232. xml_config_prefix=""
  5233. fi
  5234. # Check whether --with-xml-exec-prefix was given.
  5235. if test "${with_xml_exec_prefix+set}" = set; then :
  5236. withval=$with_xml_exec_prefix; xml_config_exec_prefix="$withval"
  5237. else
  5238. xml_config_exec_prefix=""
  5239. fi
  5240. # Check whether --enable-xmltest was given.
  5241. if test "${enable_xmltest+set}" = set; then :
  5242. enableval=$enable_xmltest;
  5243. else
  5244. enable_xmltest=yes
  5245. fi
  5246. if test x$xml_config_exec_prefix != x ; then
  5247. xml_config_args="$xml_config_args"
  5248. if test x${XML2_CONFIG+set} != xset ; then
  5249. XML2_CONFIG=$xml_config_exec_prefix/bin/xml2-config
  5250. fi
  5251. fi
  5252. if test x$xml_config_prefix != x ; then
  5253. xml_config_args="$xml_config_args --prefix=$xml_config_prefix"
  5254. if test x${XML2_CONFIG+set} != xset ; then
  5255. XML2_CONFIG=$xml_config_prefix/bin/xml2-config
  5256. fi
  5257. fi
  5258. # Extract the first word of "xml2-config", so it can be a program name with args.
  5259. set dummy xml2-config; ac_word=$2
  5260. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5261. $as_echo_n "checking for $ac_word... " >&6; }
  5262. if test "${ac_cv_path_XML2_CONFIG+set}" = set; then :
  5263. $as_echo_n "(cached) " >&6
  5264. else
  5265. case $XML2_CONFIG in
  5266. [\\/]* | ?:[\\/]*)
  5267. ac_cv_path_XML2_CONFIG="$XML2_CONFIG" # Let the user override the test with a path.
  5268. ;;
  5269. *)
  5270. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5271. for as_dir in $PATH
  5272. do
  5273. IFS=$as_save_IFS
  5274. test -z "$as_dir" && as_dir=.
  5275. for ac_exec_ext in '' $ac_executable_extensions; do
  5276. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  5277. ac_cv_path_XML2_CONFIG="$as_dir/$ac_word$ac_exec_ext"
  5278. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5279. break 2
  5280. fi
  5281. done
  5282. done
  5283. IFS=$as_save_IFS
  5284. test -z "$ac_cv_path_XML2_CONFIG" && ac_cv_path_XML2_CONFIG="no"
  5285. ;;
  5286. esac
  5287. fi
  5288. XML2_CONFIG=$ac_cv_path_XML2_CONFIG
  5289. if test -n "$XML2_CONFIG"; then
  5290. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XML2_CONFIG" >&5
  5291. $as_echo "$XML2_CONFIG" >&6; }
  5292. else
  5293. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5294. $as_echo "no" >&6; }
  5295. fi
  5296. min_xml_version=2.6.24
  5297. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libxml - version >= $min_xml_version" >&5
  5298. $as_echo_n "checking for libxml - version >= $min_xml_version... " >&6; }
  5299. no_xml=""
  5300. if test "$XML2_CONFIG" = "no" ; then
  5301. no_xml=yes
  5302. else
  5303. XML_CPPFLAGS=`$XML2_CONFIG $xml_config_args --cflags`
  5304. XML_LIBS=`$XML2_CONFIG $xml_config_args --libs`
  5305. xml_config_major_version=`$XML2_CONFIG $xml_config_args --version | \
  5306. sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
  5307. xml_config_minor_version=`$XML2_CONFIG $xml_config_args --version | \
  5308. sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
  5309. xml_config_micro_version=`$XML2_CONFIG $xml_config_args --version | \
  5310. sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
  5311. if test "x$enable_xmltest" = "xyes" ; then
  5312. ac_save_CPPFLAGS="$CPPFLAGS"
  5313. ac_save_LIBS="$LIBS"
  5314. CPPFLAGS="$CPPFLAGS $XML_CPPFLAGS"
  5315. LIBS="$XML_LIBS $LIBS"
  5316. rm -f conf.xmltest
  5317. if test "$cross_compiling" = yes; then :
  5318. echo $ac_n "cross compiling; assumed OK... $ac_c"
  5319. else
  5320. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5321. /* end confdefs.h. */
  5322. #include <stdlib.h>
  5323. #include <stdio.h>
  5324. #include <string.h>
  5325. #include <libxml/xmlversion.h>
  5326. int
  5327. main()
  5328. {
  5329. int xml_major_version, xml_minor_version, xml_micro_version;
  5330. int major, minor, micro;
  5331. char *tmp_version;
  5332. system("touch conf.xmltest");
  5333. /* Capture xml2-config output via autoconf/configure variables */
  5334. /* HP/UX 9 (%@#!) writes to sscanf strings */
  5335. tmp_version = (char *)strdup("$min_xml_version");
  5336. if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, &micro) != 3) {
  5337. printf("%s, bad version string from xml2-config\n", "$min_xml_version");
  5338. exit(1);
  5339. }
  5340. free(tmp_version);
  5341. /* Capture the version information from the header files */
  5342. tmp_version = (char *)strdup(LIBXML_DOTTED_VERSION);
  5343. if (sscanf(tmp_version, "%d.%d.%d", &xml_major_version, &xml_minor_version, &xml_micro_version) != 3) {
  5344. printf("%s, bad version string from libxml includes\n", "LIBXML_DOTTED_VERSION");
  5345. exit(1);
  5346. }
  5347. free(tmp_version);
  5348. /* Compare xml2-config output to the libxml headers */
  5349. if ((xml_major_version != $xml_config_major_version) ||
  5350. (xml_minor_version != $xml_config_minor_version) ||
  5351. (xml_micro_version != $xml_config_micro_version))
  5352. {
  5353. printf("*** libxml header files (version %d.%d.%d) do not match\n",
  5354. xml_major_version, xml_minor_version, xml_micro_version);
  5355. printf("*** xml2-config (version %d.%d.%d)\n",
  5356. $xml_config_major_version, $xml_config_minor_version, $xml_config_micro_version);
  5357. return 1;
  5358. }
  5359. /* Compare the headers to the library to make sure we match */
  5360. /* Less than ideal -- doesn't provide us with return value feedback,
  5361. * only exits if there's a serious mismatch between header and library.
  5362. */
  5363. LIBXML_TEST_VERSION;
  5364. /* Test that the library is greater than our minimum version */
  5365. if ((xml_major_version > major) ||
  5366. ((xml_major_version == major) && (xml_minor_version > minor)) ||
  5367. ((xml_major_version == major) && (xml_minor_version == minor) &&
  5368. (xml_micro_version >= micro)))
  5369. {
  5370. return 0;
  5371. }
  5372. else
  5373. {
  5374. printf("\n*** An old version of libxml (%d.%d.%d) was found.\n",
  5375. xml_major_version, xml_minor_version, xml_micro_version);
  5376. printf("*** You need a version of libxml newer than %d.%d.%d. The latest version of\n",
  5377. major, minor, micro);
  5378. printf("*** libxml is always available from ftp://ftp.xmlsoft.org.\n");
  5379. printf("***\n");
  5380. printf("*** If you have already installed a sufficiently new version, this error\n");
  5381. printf("*** probably means that the wrong copy of the xml2-config shell script is\n");
  5382. printf("*** being found. The easiest way to fix this is to remove the old version\n");
  5383. printf("*** of LIBXML, but you can also set the XML2_CONFIG environment to point to the\n");
  5384. printf("*** correct copy of xml2-config. (In this case, you will have to\n");
  5385. printf("*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf\n");
  5386. printf("*** so that the correct libraries are found at run-time))\n");
  5387. }
  5388. return 1;
  5389. }
  5390. _ACEOF
  5391. if ac_fn_cxx_try_run "$LINENO"; then :
  5392. else
  5393. no_xml=yes
  5394. fi
  5395. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  5396. conftest.$ac_objext conftest.beam conftest.$ac_ext
  5397. fi
  5398. CPPFLAGS="$ac_save_CPPFLAGS"
  5399. LIBS="$ac_save_LIBS"
  5400. fi
  5401. fi
  5402. if test "x$no_xml" = x ; then
  5403. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes (version $xml_config_major_version.$xml_config_minor_version.$xml_config_micro_version)" >&5
  5404. $as_echo "yes (version $xml_config_major_version.$xml_config_minor_version.$xml_config_micro_version)" >&6; }
  5405. have_libxml2=yes
  5406. else
  5407. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5408. $as_echo "no" >&6; }
  5409. if test "$XML2_CONFIG" = "no" ; then
  5410. echo "*** The xml2-config script installed by LIBXML could not be found"
  5411. echo "*** If libxml was installed in PREFIX, make sure PREFIX/bin is in"
  5412. echo "*** your path, or set the XML2_CONFIG environment variable to the"
  5413. echo "*** full path to xml2-config."
  5414. else
  5415. if test -f conf.xmltest ; then
  5416. :
  5417. else
  5418. echo "*** Could not run libxml test program, checking why..."
  5419. CPPFLAGS="$CPPFLAGS $XML_CPPFLAGS"
  5420. LIBS="$LIBS $XML_LIBS"
  5421. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5422. /* end confdefs.h. */
  5423. #include <libxml/xmlversion.h>
  5424. #include <stdio.h>
  5425. int
  5426. main ()
  5427. {
  5428. LIBXML_TEST_VERSION; return 0;
  5429. ;
  5430. return 0;
  5431. }
  5432. _ACEOF
  5433. if ac_fn_cxx_try_link "$LINENO"; then :
  5434. echo "*** The test program compiled, but did not run. This usually means"
  5435. echo "*** that the run-time linker is not finding LIBXML or finding the wrong"
  5436. echo "*** version of LIBXML. If it is not finding LIBXML, you'll need to set your"
  5437. echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
  5438. echo "*** to the installed location Also, make sure you have run ldconfig if that"
  5439. echo "*** is required on your system"
  5440. echo "***"
  5441. echo "*** If you have an old version installed, it is best to remove it, although"
  5442. echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
  5443. else
  5444. echo "*** The test program failed to compile or link. See the file config.log for the"
  5445. echo "*** exact error that occured. This usually means LIBXML was incorrectly installed"
  5446. echo "*** or that you have moved LIBXML since it was installed. In the latter case, you"
  5447. echo "*** may want to edit the xml2-config script: $XML2_CONFIG"
  5448. fi
  5449. rm -f core conftest.err conftest.$ac_objext \
  5450. conftest$ac_exeext conftest.$ac_ext
  5451. CPPFLAGS="$ac_save_CPPFLAGS"
  5452. LIBS="$ac_save_LIBS"
  5453. fi
  5454. fi
  5455. XML_CPPFLAGS=""
  5456. XML_LIBS=""
  5457. :
  5458. fi
  5459. rm -f conf.xmltest
  5460. if test "x$have_libxml2" = "xyes"; then
  5461. $as_echo "#define HAVE_LIBXML2 1" >>confdefs.h
  5462. elif test "x$with_libxml2_requested" = "xyes"; then
  5463. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  5464. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  5465. as_fn_error "libxml2 is requested but not found in the system.
  5466. See \`config.log' for more details." "$LINENO" 5; }
  5467. fi
  5468. fi
  5469. if test "x$with_libexpat" = "xyes" && test "x$have_libxml2" != "xyes"; then
  5470. # Check whether --with-libexpat-prefix was given.
  5471. if test "${with_libexpat_prefix+set}" = set; then :
  5472. withval=$with_libexpat_prefix; libexpat_prefix=$withval
  5473. else
  5474. libexpat_prefix=""
  5475. fi
  5476. if test "x$libexpat_prefix" = "x"; then
  5477. libexpat_prefix="/usr"
  5478. fi
  5479. libexpat_prefix_lib=$libexpat_prefix/lib
  5480. libexpat_prefix_include=$libexpat_prefix/include
  5481. LIBS_save=$LIBS
  5482. CPPFLAGS_save=$CPPFLAGS
  5483. LIBS="-L$libexpat_prefix_lib $LIBS"
  5484. CPPFLAGS="-I$libexpat_prefix_include $CPPFLAGS"
  5485. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XML_ParserCreate in -lexpat" >&5
  5486. $as_echo_n "checking for XML_ParserCreate in -lexpat... " >&6; }
  5487. if test "${ac_cv_lib_expat_XML_ParserCreate+set}" = set; then :
  5488. $as_echo_n "(cached) " >&6
  5489. else
  5490. ac_check_lib_save_LIBS=$LIBS
  5491. LIBS="-lexpat $LIBS"
  5492. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5493. /* end confdefs.h. */
  5494. /* Override any GCC internal prototype to avoid an error.
  5495. Use char because int might match the return type of a GCC
  5496. builtin and then its argument prototype would still apply. */
  5497. #ifdef __cplusplus
  5498. extern "C"
  5499. #endif
  5500. char XML_ParserCreate ();
  5501. int
  5502. main ()
  5503. {
  5504. return XML_ParserCreate ();
  5505. ;
  5506. return 0;
  5507. }
  5508. _ACEOF
  5509. if ac_fn_cxx_try_link "$LINENO"; then :
  5510. ac_cv_lib_expat_XML_ParserCreate=yes
  5511. else
  5512. ac_cv_lib_expat_XML_ParserCreate=no
  5513. fi
  5514. rm -f core conftest.err conftest.$ac_objext \
  5515. conftest$ac_exeext conftest.$ac_ext
  5516. LIBS=$ac_check_lib_save_LIBS
  5517. fi
  5518. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_expat_XML_ParserCreate" >&5
  5519. $as_echo "$ac_cv_lib_expat_XML_ParserCreate" >&6; }
  5520. if test "x$ac_cv_lib_expat_XML_ParserCreate" = x""yes; then :
  5521. have_libexpat=yes
  5522. fi
  5523. if test "x$have_libexpat" = "xyes"; then
  5524. $as_echo "#define HAVE_LIBEXPAT 1" >>confdefs.h
  5525. LIBEXPAT_LIBS="-L$libexpat_prefix_lib -lexpat"
  5526. LIBEXPAT_CPPFLAGS="-I$libexpat_prefix_include"
  5527. fi
  5528. LIBS=$LIBS_save
  5529. CPPFLAGS=$CPPFLAGS_save
  5530. if test "x$have_libexpat" != "xyes" &&
  5531. test "x$with_libexpat_requested" = "xyes"; then
  5532. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  5533. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  5534. as_fn_error "libexpat is requested but not found in the system.
  5535. See \`config.log' for more details." "$LINENO" 5; }
  5536. fi
  5537. fi
  5538. if test "x$with_sqlite3" = "xyes"; then
  5539. # Check whether --with-sqlite3-prefix was given.
  5540. if test "${with_sqlite3_prefix+set}" = set; then :
  5541. withval=$with_sqlite3_prefix; sqlite3_prefix=$withval
  5542. else
  5543. sqlite3_prefix=""
  5544. fi
  5545. if test "x$sqlite3_prefix" = "x"; then
  5546. sqlite3_prefix="/usr"
  5547. fi
  5548. LIBS_save=$LIBS
  5549. CPPFLAGS_save=$CPPFLAGS
  5550. pkg_failed=no
  5551. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SQLITE3" >&5
  5552. $as_echo_n "checking for SQLITE3... " >&6; }
  5553. if test -n "$PKG_CONFIG"; then
  5554. if test -n "$SQLITE3_CFLAGS"; then
  5555. pkg_cv_SQLITE3_CFLAGS="$SQLITE3_CFLAGS"
  5556. else
  5557. if test -n "$PKG_CONFIG" && \
  5558. { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"sqlite3\""; } >&5
  5559. ($PKG_CONFIG --exists --print-errors "sqlite3") 2>&5
  5560. ac_status=$?
  5561. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  5562. test $ac_status = 0; }; then
  5563. pkg_cv_SQLITE3_CFLAGS=`$PKG_CONFIG --cflags "sqlite3" 2>/dev/null`
  5564. else
  5565. pkg_failed=yes
  5566. fi
  5567. fi
  5568. else
  5569. pkg_failed=untried
  5570. fi
  5571. if test -n "$PKG_CONFIG"; then
  5572. if test -n "$SQLITE3_LIBS"; then
  5573. pkg_cv_SQLITE3_LIBS="$SQLITE3_LIBS"
  5574. else
  5575. if test -n "$PKG_CONFIG" && \
  5576. { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"sqlite3\""; } >&5
  5577. ($PKG_CONFIG --exists --print-errors "sqlite3") 2>&5
  5578. ac_status=$?
  5579. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  5580. test $ac_status = 0; }; then
  5581. pkg_cv_SQLITE3_LIBS=`$PKG_CONFIG --libs "sqlite3" 2>/dev/null`
  5582. else
  5583. pkg_failed=yes
  5584. fi
  5585. fi
  5586. else
  5587. pkg_failed=untried
  5588. fi
  5589. if test $pkg_failed = yes; then
  5590. if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
  5591. _pkg_short_errors_supported=yes
  5592. else
  5593. _pkg_short_errors_supported=no
  5594. fi
  5595. if test $_pkg_short_errors_supported = yes; then
  5596. SQLITE3_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "sqlite3"`
  5597. else
  5598. SQLITE3_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "sqlite3"`
  5599. fi
  5600. # Put the nasty error message in config.log where it belongs
  5601. echo "$SQLITE3_PKG_ERRORS" >&5
  5602. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5603. $as_echo "no" >&6; }
  5604. have_sqlite3=no
  5605. elif test $pkg_failed = untried; then
  5606. have_sqlite3=no
  5607. else
  5608. SQLITE3_CFLAGS=$pkg_cv_SQLITE3_CFLAGS
  5609. SQLITE3_LIBS=$pkg_cv_SQLITE3_LIBS
  5610. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  5611. $as_echo "yes" >&6; }
  5612. have_sqlite3=yes
  5613. fi
  5614. if test "x$have_sqlite3" != "xyes"; then
  5615. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $SQLITE3_PKG_ERRORS" >&5
  5616. $as_echo "$as_me: WARNING: $SQLITE3_PKG_ERRORS" >&2;}
  5617. sqlite3_prefix_lib=$sqlite3_prefix/lib
  5618. sqlite3_prefix_include=$sqlite3_prefix/include
  5619. LIBS="-L$sqlite3_prefix_lib $LIBS"
  5620. CPPFLAGS="-I$sqlite3_prefix_include $CPPFLAGS"
  5621. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sqlite3_open in -lsqlite3" >&5
  5622. $as_echo_n "checking for sqlite3_open in -lsqlite3... " >&6; }
  5623. if test "${ac_cv_lib_sqlite3_sqlite3_open+set}" = set; then :
  5624. $as_echo_n "(cached) " >&6
  5625. else
  5626. ac_check_lib_save_LIBS=$LIBS
  5627. LIBS="-lsqlite3 $LIBS"
  5628. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5629. /* end confdefs.h. */
  5630. /* Override any GCC internal prototype to avoid an error.
  5631. Use char because int might match the return type of a GCC
  5632. builtin and then its argument prototype would still apply. */
  5633. #ifdef __cplusplus
  5634. extern "C"
  5635. #endif
  5636. char sqlite3_open ();
  5637. int
  5638. main ()
  5639. {
  5640. return sqlite3_open ();
  5641. ;
  5642. return 0;
  5643. }
  5644. _ACEOF
  5645. if ac_fn_cxx_try_link "$LINENO"; then :
  5646. ac_cv_lib_sqlite3_sqlite3_open=yes
  5647. else
  5648. ac_cv_lib_sqlite3_sqlite3_open=no
  5649. fi
  5650. rm -f core conftest.err conftest.$ac_objext \
  5651. conftest$ac_exeext conftest.$ac_ext
  5652. LIBS=$ac_check_lib_save_LIBS
  5653. fi
  5654. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_sqlite3_sqlite3_open" >&5
  5655. $as_echo "$ac_cv_lib_sqlite3_sqlite3_open" >&6; }
  5656. if test "x$ac_cv_lib_sqlite3_sqlite3_open" = x""yes; then :
  5657. have_sqlite3=yes
  5658. fi
  5659. if test "x$have_sqlite3" = "xyes"; then
  5660. SQLITE3_LIBS="-L$sqlite3_prefix_lib -lsqlite3"
  5661. SQLITE3_CFLAGS="-I$sqlite3_prefix_include"
  5662. fi
  5663. fi
  5664. if test "x$have_sqlite3" = "xyes"; then
  5665. LIBS="$SQLITE3_LIBS $LIBS"
  5666. CPPFLAGS="$SQLITE3_CFLAGS $CPPFLAGS"
  5667. for ac_func in sqlite3_open_v2
  5668. do :
  5669. ac_fn_cxx_check_func "$LINENO" "sqlite3_open_v2" "ac_cv_func_sqlite3_open_v2"
  5670. if test "x$ac_cv_func_sqlite3_open_v2" = x""yes; then :
  5671. cat >>confdefs.h <<_ACEOF
  5672. #define HAVE_SQLITE3_OPEN_V2 1
  5673. _ACEOF
  5674. fi
  5675. done
  5676. $as_echo "#define HAVE_SQLITE3 1" >>confdefs.h
  5677. fi
  5678. LIBS=$LIBS_save
  5679. CPPFLAGS=$CPPFLAGS_save
  5680. if test "x$have_sqlite3" != "xyes" &&
  5681. test "x$with_sqlite3_requested" = "xyes"; then
  5682. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  5683. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  5684. as_fn_error "sqlite3 is requested but not found in the system.
  5685. See \`config.log' for more details." "$LINENO" 5; }
  5686. fi
  5687. fi
  5688. if test "x$with_gnutls" = "xyes"; then
  5689. # gnutls >= 2.8 doesn't have libgnutls-config anymore.
  5690. # First check the presence of libgnutls using pkg-config.
  5691. pkg_failed=no
  5692. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LIBGNUTLS" >&5
  5693. $as_echo_n "checking for LIBGNUTLS... " >&6; }
  5694. if test -n "$PKG_CONFIG"; then
  5695. if test -n "$LIBGNUTLS_CFLAGS"; then
  5696. pkg_cv_LIBGNUTLS_CFLAGS="$LIBGNUTLS_CFLAGS"
  5697. else
  5698. if test -n "$PKG_CONFIG" && \
  5699. { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gnutls >= 1.2.9\""; } >&5
  5700. ($PKG_CONFIG --exists --print-errors "gnutls >= 1.2.9") 2>&5
  5701. ac_status=$?
  5702. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  5703. test $ac_status = 0; }; then
  5704. pkg_cv_LIBGNUTLS_CFLAGS=`$PKG_CONFIG --cflags "gnutls >= 1.2.9" 2>/dev/null`
  5705. else
  5706. pkg_failed=yes
  5707. fi
  5708. fi
  5709. else
  5710. pkg_failed=untried
  5711. fi
  5712. if test -n "$PKG_CONFIG"; then
  5713. if test -n "$LIBGNUTLS_LIBS"; then
  5714. pkg_cv_LIBGNUTLS_LIBS="$LIBGNUTLS_LIBS"
  5715. else
  5716. if test -n "$PKG_CONFIG" && \
  5717. { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gnutls >= 1.2.9\""; } >&5
  5718. ($PKG_CONFIG --exists --print-errors "gnutls >= 1.2.9") 2>&5
  5719. ac_status=$?
  5720. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  5721. test $ac_status = 0; }; then
  5722. pkg_cv_LIBGNUTLS_LIBS=`$PKG_CONFIG --libs "gnutls >= 1.2.9" 2>/dev/null`
  5723. else
  5724. pkg_failed=yes
  5725. fi
  5726. fi
  5727. else
  5728. pkg_failed=untried
  5729. fi
  5730. if test $pkg_failed = yes; then
  5731. if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
  5732. _pkg_short_errors_supported=yes
  5733. else
  5734. _pkg_short_errors_supported=no
  5735. fi
  5736. if test $_pkg_short_errors_supported = yes; then
  5737. LIBGNUTLS_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "gnutls >= 1.2.9"`
  5738. else
  5739. LIBGNUTLS_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "gnutls >= 1.2.9"`
  5740. fi
  5741. # Put the nasty error message in config.log where it belongs
  5742. echo "$LIBGNUTLS_PKG_ERRORS" >&5
  5743. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5744. $as_echo "no" >&6; }
  5745. have_libgnutls=no
  5746. elif test $pkg_failed = untried; then
  5747. have_libgnutls=no
  5748. else
  5749. LIBGNUTLS_CFLAGS=$pkg_cv_LIBGNUTLS_CFLAGS
  5750. LIBGNUTLS_LIBS=$pkg_cv_LIBGNUTLS_LIBS
  5751. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  5752. $as_echo "yes" >&6; }
  5753. have_libgnutls=yes
  5754. fi
  5755. # If no libgnutls found by pkg-config, fall back to old macro
  5756. if test "x$have_libgnutls" = "xno"; then
  5757. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $LIBGNUTLS_PKG_ERRORS" >&5
  5758. $as_echo "$as_me: WARNING: $LIBGNUTLS_PKG_ERRORS" >&2;}
  5759. # Check whether --with-libgnutls-prefix was given.
  5760. if test "${with_libgnutls_prefix+set}" = set; then :
  5761. withval=$with_libgnutls_prefix; libgnutls_config_prefix="$withval"
  5762. else
  5763. libgnutls_config_prefix=""
  5764. fi
  5765. if test x$libgnutls_config_prefix != x ; then
  5766. if test x${LIBGNUTLS_CONFIG+set} != xset ; then
  5767. LIBGNUTLS_CONFIG=$libgnutls_config_prefix/bin/libgnutls-config
  5768. fi
  5769. fi
  5770. # Extract the first word of "libgnutls-config", so it can be a program name with args.
  5771. set dummy libgnutls-config; ac_word=$2
  5772. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5773. $as_echo_n "checking for $ac_word... " >&6; }
  5774. if test "${ac_cv_path_LIBGNUTLS_CONFIG+set}" = set; then :
  5775. $as_echo_n "(cached) " >&6
  5776. else
  5777. case $LIBGNUTLS_CONFIG in
  5778. [\\/]* | ?:[\\/]*)
  5779. ac_cv_path_LIBGNUTLS_CONFIG="$LIBGNUTLS_CONFIG" # Let the user override the test with a path.
  5780. ;;
  5781. *)
  5782. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5783. for as_dir in $PATH
  5784. do
  5785. IFS=$as_save_IFS
  5786. test -z "$as_dir" && as_dir=.
  5787. for ac_exec_ext in '' $ac_executable_extensions; do
  5788. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  5789. ac_cv_path_LIBGNUTLS_CONFIG="$as_dir/$ac_word$ac_exec_ext"
  5790. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5791. break 2
  5792. fi
  5793. done
  5794. done
  5795. IFS=$as_save_IFS
  5796. test -z "$ac_cv_path_LIBGNUTLS_CONFIG" && ac_cv_path_LIBGNUTLS_CONFIG="no"
  5797. ;;
  5798. esac
  5799. fi
  5800. LIBGNUTLS_CONFIG=$ac_cv_path_LIBGNUTLS_CONFIG
  5801. if test -n "$LIBGNUTLS_CONFIG"; then
  5802. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBGNUTLS_CONFIG" >&5
  5803. $as_echo "$LIBGNUTLS_CONFIG" >&6; }
  5804. else
  5805. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5806. $as_echo "no" >&6; }
  5807. fi
  5808. min_libgnutls_version=1.2.9
  5809. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libgnutls - version >= $min_libgnutls_version" >&5
  5810. $as_echo_n "checking for libgnutls - version >= $min_libgnutls_version... " >&6; }
  5811. no_libgnutls=""
  5812. if test "$LIBGNUTLS_CONFIG" = "no" ; then
  5813. no_libgnutls=yes
  5814. else
  5815. LIBGNUTLS_CFLAGS=`$LIBGNUTLS_CONFIG $libgnutls_config_args --cflags`
  5816. LIBGNUTLS_LIBS=`$LIBGNUTLS_CONFIG $libgnutls_config_args --libs`
  5817. libgnutls_config_version=`$LIBGNUTLS_CONFIG $libgnutls_config_args --version`
  5818. ac_save_CFLAGS="$CFLAGS"
  5819. ac_save_LIBS="$LIBS"
  5820. CFLAGS="$CFLAGS $LIBGNUTLS_CFLAGS"
  5821. LIBS="$LIBS $LIBGNUTLS_LIBS"
  5822. rm -f conf.libgnutlstest
  5823. if test "$cross_compiling" = yes; then :
  5824. echo $ac_n "cross compiling; assumed OK... $ac_c"
  5825. else
  5826. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5827. /* end confdefs.h. */
  5828. #include <stdio.h>
  5829. #include <stdlib.h>
  5830. #include <string.h>
  5831. #include <gnutls/gnutls.h>
  5832. int
  5833. main ()
  5834. {
  5835. system ("touch conf.libgnutlstest");
  5836. if( strcmp( gnutls_check_version(NULL), "$libgnutls_config_version" ) )
  5837. {
  5838. printf("\n*** 'libgnutls-config --version' returned %s, but LIBGNUTLS (%s)\n",
  5839. "$libgnutls_config_version", gnutls_check_version(NULL) );
  5840. printf("*** was found! If libgnutls-config was correct, then it is best\n");
  5841. printf("*** to remove the old version of LIBGNUTLS. You may also be able to fix the error\n");
  5842. printf("*** by modifying your LD_LIBRARY_PATH enviroment variable, or by editing\n");
  5843. printf("*** /etc/ld.so.conf. Make sure you have run ldconfig if that is\n");
  5844. printf("*** required on your system.\n");
  5845. printf("*** If libgnutls-config was wrong, set the environment variable LIBGNUTLS_CONFIG\n");
  5846. printf("*** to point to the correct copy of libgnutls-config, and remove the file config.cache\n");
  5847. printf("*** before re-running configure\n");
  5848. }
  5849. else if ( strcmp(gnutls_check_version(NULL), LIBGNUTLS_VERSION ) )
  5850. {
  5851. printf("\n*** LIBGNUTLS header file (version %s) does not match\n", LIBGNUTLS_VERSION);
  5852. printf("*** library (version %s)\n", gnutls_check_version(NULL) );
  5853. }
  5854. else
  5855. {
  5856. if ( gnutls_check_version( "$min_libgnutls_version" ) )
  5857. {
  5858. return 0;
  5859. }
  5860. else
  5861. {
  5862. printf("no\n*** An old version of LIBGNUTLS (%s) was found.\n",
  5863. gnutls_check_version(NULL) );
  5864. printf("*** You need a version of LIBGNUTLS newer than %s. The latest version of\n",
  5865. "$min_libgnutls_version" );
  5866. printf("*** LIBGNUTLS is always available from ftp://gnutls.hellug.gr/pub/gnutls.\n");
  5867. printf("*** \n");
  5868. printf("*** If you have already installed a sufficiently new version, this error\n");
  5869. printf("*** probably means that the wrong copy of the libgnutls-config shell script is\n");
  5870. printf("*** being found. The easiest way to fix this is to remove the old version\n");
  5871. printf("*** of LIBGNUTLS, but you can also set the LIBGNUTLS_CONFIG environment to point to the\n");
  5872. printf("*** correct copy of libgnutls-config. (In this case, you will have to\n");
  5873. printf("*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf\n");
  5874. printf("*** so that the correct libraries are found at run-time))\n");
  5875. }
  5876. }
  5877. return 1;
  5878. }
  5879. _ACEOF
  5880. if ac_fn_cxx_try_run "$LINENO"; then :
  5881. else
  5882. no_libgnutls=yes
  5883. fi
  5884. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  5885. conftest.$ac_objext conftest.beam conftest.$ac_ext
  5886. fi
  5887. CFLAGS="$ac_save_CFLAGS"
  5888. LIBS="$ac_save_LIBS"
  5889. fi
  5890. if test "x$no_libgnutls" = x ; then
  5891. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  5892. $as_echo "yes" >&6; }
  5893. have_libgnutls=yes
  5894. else
  5895. if test -f conf.libgnutlstest ; then
  5896. :
  5897. else
  5898. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5899. $as_echo "no" >&6; }
  5900. fi
  5901. if test "$LIBGNUTLS_CONFIG" = "no" ; then
  5902. echo "*** The libgnutls-config script installed by LIBGNUTLS could not be found"
  5903. echo "*** If LIBGNUTLS was installed in PREFIX, make sure PREFIX/bin is in"
  5904. echo "*** your path, or set the LIBGNUTLS_CONFIG environment variable to the"
  5905. echo "*** full path to libgnutls-config."
  5906. else
  5907. if test -f conf.libgnutlstest ; then
  5908. :
  5909. else
  5910. echo "*** Could not run libgnutls test program, checking why..."
  5911. CFLAGS="$CFLAGS $LIBGNUTLS_CFLAGS"
  5912. LIBS="$LIBS $LIBGNUTLS_LIBS"
  5913. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5914. /* end confdefs.h. */
  5915. #include <stdio.h>
  5916. #include <stdlib.h>
  5917. #include <string.h>
  5918. #include <gnutls/gnutls.h>
  5919. int
  5920. main ()
  5921. {
  5922. return !!gnutls_check_version(NULL);
  5923. ;
  5924. return 0;
  5925. }
  5926. _ACEOF
  5927. if ac_fn_cxx_try_link "$LINENO"; then :
  5928. echo "*** The test program compiled, but did not run. This usually means"
  5929. echo "*** that the run-time linker is not finding LIBGNUTLS or finding the wrong"
  5930. echo "*** version of LIBGNUTLS. If it is not finding LIBGNUTLS, you'll need to set your"
  5931. echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
  5932. echo "*** to the installed location Also, make sure you have run ldconfig if that"
  5933. echo "*** is required on your system"
  5934. echo "***"
  5935. echo "*** If you have an old version installed, it is best to remove it, although"
  5936. echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
  5937. echo "***"
  5938. else
  5939. echo "*** The test program failed to compile or link. See the file config.log for the"
  5940. echo "*** exact error that occured. This usually means LIBGNUTLS was incorrectly installed"
  5941. echo "*** or that you have moved LIBGNUTLS since it was installed. In the latter case, you"
  5942. echo "*** may want to edit the libgnutls-config script: $LIBGNUTLS_CONFIG"
  5943. fi
  5944. rm -f core conftest.err conftest.$ac_objext \
  5945. conftest$ac_exeext conftest.$ac_ext
  5946. CFLAGS="$ac_save_CFLAGS"
  5947. LIBS="$ac_save_LIBS"
  5948. fi
  5949. fi
  5950. LIBGNUTLS_CFLAGS=""
  5951. LIBGNUTLS_LIBS=""
  5952. :
  5953. fi
  5954. rm -f conf.libgnutlstest
  5955. fi
  5956. if test "x$have_libgnutls" = "xyes"; then
  5957. $as_echo "#define HAVE_LIBGNUTLS 1" >>confdefs.h
  5958. elif test "x$with_gnutls_requested" = "xyes"; then
  5959. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  5960. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  5961. as_fn_error "gnutls is requested but not found in the system.
  5962. See \`config.log' for more details." "$LINENO" 5; }
  5963. fi
  5964. fi
  5965. if test "x$have_libgnutls" = "xyes"; then
  5966. # Check whether --with-libgcrypt-prefix was given.
  5967. if test "${with_libgcrypt_prefix+set}" = set; then :
  5968. withval=$with_libgcrypt_prefix; libgcrypt_config_prefix="$withval"
  5969. else
  5970. libgcrypt_config_prefix=""
  5971. fi
  5972. if test x$libgcrypt_config_prefix != x ; then
  5973. if test x${LIBGCRYPT_CONFIG+set} != xset ; then
  5974. LIBGCRYPT_CONFIG=$libgcrypt_config_prefix/bin/libgcrypt-config
  5975. fi
  5976. fi
  5977. # Extract the first word of "libgcrypt-config", so it can be a program name with args.
  5978. set dummy libgcrypt-config; ac_word=$2
  5979. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5980. $as_echo_n "checking for $ac_word... " >&6; }
  5981. if test "${ac_cv_path_LIBGCRYPT_CONFIG+set}" = set; then :
  5982. $as_echo_n "(cached) " >&6
  5983. else
  5984. case $LIBGCRYPT_CONFIG in
  5985. [\\/]* | ?:[\\/]*)
  5986. ac_cv_path_LIBGCRYPT_CONFIG="$LIBGCRYPT_CONFIG" # Let the user override the test with a path.
  5987. ;;
  5988. *)
  5989. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5990. for as_dir in $PATH
  5991. do
  5992. IFS=$as_save_IFS
  5993. test -z "$as_dir" && as_dir=.
  5994. for ac_exec_ext in '' $ac_executable_extensions; do
  5995. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  5996. ac_cv_path_LIBGCRYPT_CONFIG="$as_dir/$ac_word$ac_exec_ext"
  5997. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5998. break 2
  5999. fi
  6000. done
  6001. done
  6002. IFS=$as_save_IFS
  6003. test -z "$ac_cv_path_LIBGCRYPT_CONFIG" && ac_cv_path_LIBGCRYPT_CONFIG="no"
  6004. ;;
  6005. esac
  6006. fi
  6007. LIBGCRYPT_CONFIG=$ac_cv_path_LIBGCRYPT_CONFIG
  6008. if test -n "$LIBGCRYPT_CONFIG"; then
  6009. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBGCRYPT_CONFIG" >&5
  6010. $as_echo "$LIBGCRYPT_CONFIG" >&6; }
  6011. else
  6012. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6013. $as_echo "no" >&6; }
  6014. fi
  6015. tmp=1.2.2
  6016. if echo "$tmp" | grep ':' >/dev/null 2>/dev/null ; then
  6017. req_libgcrypt_api=`echo "$tmp" | sed 's/\(.*\):\(.*\)/\1/'`
  6018. min_libgcrypt_version=`echo "$tmp" | sed 's/\(.*\):\(.*\)/\2/'`
  6019. else
  6020. req_libgcrypt_api=0
  6021. min_libgcrypt_version="$tmp"
  6022. fi
  6023. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LIBGCRYPT - version >= $min_libgcrypt_version" >&5
  6024. $as_echo_n "checking for LIBGCRYPT - version >= $min_libgcrypt_version... " >&6; }
  6025. ok=no
  6026. if test "$LIBGCRYPT_CONFIG" != "no" ; then
  6027. req_major=`echo $min_libgcrypt_version | \
  6028. sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\1/'`
  6029. req_minor=`echo $min_libgcrypt_version | \
  6030. sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\2/'`
  6031. req_micro=`echo $min_libgcrypt_version | \
  6032. sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\3/'`
  6033. libgcrypt_config_version=`$LIBGCRYPT_CONFIG --version`
  6034. major=`echo $libgcrypt_config_version | \
  6035. sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\).*/\1/'`
  6036. minor=`echo $libgcrypt_config_version | \
  6037. sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\).*/\2/'`
  6038. micro=`echo $libgcrypt_config_version | \
  6039. sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\).*/\3/'`
  6040. if test "$major" -gt "$req_major"; then
  6041. ok=yes
  6042. else
  6043. if test "$major" -eq "$req_major"; then
  6044. if test "$minor" -gt "$req_minor"; then
  6045. ok=yes
  6046. else
  6047. if test "$minor" -eq "$req_minor"; then
  6048. if test "$micro" -ge "$req_micro"; then
  6049. ok=yes
  6050. fi
  6051. fi
  6052. fi
  6053. fi
  6054. fi
  6055. fi
  6056. if test $ok = yes; then
  6057. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes ($libgcrypt_config_version)" >&5
  6058. $as_echo "yes ($libgcrypt_config_version)" >&6; }
  6059. else
  6060. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6061. $as_echo "no" >&6; }
  6062. fi
  6063. if test $ok = yes; then
  6064. # If we have a recent libgcrypt, we should also check that the
  6065. # API is compatible
  6066. if test "$req_libgcrypt_api" -gt 0 ; then
  6067. tmp=`$LIBGCRYPT_CONFIG --api-version 2>/dev/null || echo 0`
  6068. if test "$tmp" -gt 0 ; then
  6069. { $as_echo "$as_me:${as_lineno-$LINENO}: checking LIBGCRYPT API version" >&5
  6070. $as_echo_n "checking LIBGCRYPT API version... " >&6; }
  6071. if test "$req_libgcrypt_api" -eq "$tmp" ; then
  6072. { $as_echo "$as_me:${as_lineno-$LINENO}: result: okay" >&5
  6073. $as_echo "okay" >&6; }
  6074. else
  6075. ok=no
  6076. { $as_echo "$as_me:${as_lineno-$LINENO}: result: does not match. want=$req_libgcrypt_api got=$tmp" >&5
  6077. $as_echo "does not match. want=$req_libgcrypt_api got=$tmp" >&6; }
  6078. fi
  6079. fi
  6080. fi
  6081. fi
  6082. if test $ok = yes; then
  6083. LIBGCRYPT_CFLAGS=`$LIBGCRYPT_CONFIG --cflags`
  6084. LIBGCRYPT_LIBS=`$LIBGCRYPT_CONFIG --libs`
  6085. have_libgcrypt=yes
  6086. else
  6087. LIBGCRYPT_CFLAGS=""
  6088. LIBGCRYPT_LIBS=""
  6089. :
  6090. fi
  6091. if test "x$have_libgcrypt" = "xyes"; then
  6092. $as_echo "#define HAVE_LIBGCRYPT 1" >>confdefs.h
  6093. fi
  6094. fi
  6095. if test "x$with_openssl" = "xyes" && test "x$have_libgnutls" != "xyes"; then
  6096. # Check whether --with-openssl-prefix was given.
  6097. if test "${with_openssl_prefix+set}" = set; then :
  6098. withval=$with_openssl_prefix; openssl_prefix=$withval
  6099. else
  6100. openssl_prefix=""
  6101. fi
  6102. if test "x$openssl_prefix" = "x"; then
  6103. openssl_prefix="/usr/local"
  6104. fi
  6105. LIBS_save=$LIBS
  6106. CPPFLAGS_save=$CPPFLAGS
  6107. PKG_CONFIG="$openssl_prefix/bin/pkg-config"
  6108. if test -x $PKG_CONFIG; then
  6109. { $as_echo "$as_me:${as_lineno-$LINENO}: checking checking availability of openssl using pkg-config" >&5
  6110. $as_echo_n "checking checking availability of openssl using pkg-config... " >&6; }
  6111. $PKG_CONFIG --exists openssl
  6112. if test "$?" = "0"; then
  6113. # Use pkg-config to detect LIBS and CFLAGS
  6114. OPENSSL_LIBS=`$PKG_CONFIG --libs openssl`
  6115. OPENSSL_CFLAGS=`$PKG_CONFIG --cflags openssl`
  6116. LIBS="$OPENSSL_LIBS $LIBS"
  6117. CPPFLAGS="$OPENSSL_CFLAGS $CPPFLAGS"
  6118. have_openssl=yes
  6119. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  6120. $as_echo "yes" >&6; }
  6121. else
  6122. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6123. $as_echo "no" >&6; }
  6124. fi
  6125. fi
  6126. if test "x$have_openssl" != "xyes"; then
  6127. openssl_prefix_lib=$openssl_prefix/lib
  6128. openssl_prefix_include=$openssl_prefix/include
  6129. LIBS="-L$openssl_prefix_lib $LIBS"
  6130. CPPFLAGS="-I$openssl_prefix_include $CPPFLAGS"
  6131. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SSL_library_init in -lssl" >&5
  6132. $as_echo_n "checking for SSL_library_init in -lssl... " >&6; }
  6133. if test "${ac_cv_lib_ssl_SSL_library_init+set}" = set; then :
  6134. $as_echo_n "(cached) " >&6
  6135. else
  6136. ac_check_lib_save_LIBS=$LIBS
  6137. LIBS="-lssl $LIBS"
  6138. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6139. /* end confdefs.h. */
  6140. /* Override any GCC internal prototype to avoid an error.
  6141. Use char because int might match the return type of a GCC
  6142. builtin and then its argument prototype would still apply. */
  6143. #ifdef __cplusplus
  6144. extern "C"
  6145. #endif
  6146. char SSL_library_init ();
  6147. int
  6148. main ()
  6149. {
  6150. return SSL_library_init ();
  6151. ;
  6152. return 0;
  6153. }
  6154. _ACEOF
  6155. if ac_fn_cxx_try_link "$LINENO"; then :
  6156. ac_cv_lib_ssl_SSL_library_init=yes
  6157. else
  6158. ac_cv_lib_ssl_SSL_library_init=no
  6159. fi
  6160. rm -f core conftest.err conftest.$ac_objext \
  6161. conftest$ac_exeext conftest.$ac_ext
  6162. LIBS=$ac_check_lib_save_LIBS
  6163. fi
  6164. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ssl_SSL_library_init" >&5
  6165. $as_echo "$ac_cv_lib_ssl_SSL_library_init" >&6; }
  6166. if test "x$ac_cv_lib_ssl_SSL_library_init" = x""yes; then :
  6167. have_openssl=yes LIBS="-lssl $LIBS"
  6168. fi
  6169. if test "x$have_openssl" = "xyes"; then
  6170. have_openssl=no
  6171. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lcrypto" >&5
  6172. $as_echo_n "checking for main in -lcrypto... " >&6; }
  6173. if test "${ac_cv_lib_crypto_main+set}" = set; then :
  6174. $as_echo_n "(cached) " >&6
  6175. else
  6176. ac_check_lib_save_LIBS=$LIBS
  6177. LIBS="-lcrypto $LIBS"
  6178. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6179. /* end confdefs.h. */
  6180. int
  6181. main ()
  6182. {
  6183. return main ();
  6184. ;
  6185. return 0;
  6186. }
  6187. _ACEOF
  6188. if ac_fn_cxx_try_link "$LINENO"; then :
  6189. ac_cv_lib_crypto_main=yes
  6190. else
  6191. ac_cv_lib_crypto_main=no
  6192. fi
  6193. rm -f core conftest.err conftest.$ac_objext \
  6194. conftest$ac_exeext conftest.$ac_ext
  6195. LIBS=$ac_check_lib_save_LIBS
  6196. fi
  6197. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_crypto_main" >&5
  6198. $as_echo "$ac_cv_lib_crypto_main" >&6; }
  6199. if test "x$ac_cv_lib_crypto_main" = x""yes; then :
  6200. have_openssl=yes; LIBS="-lcrypto $LIBS"
  6201. fi
  6202. if test "x$have_openssl" = "xyes"; then
  6203. OPENSSL_LIBS="-L$openssl_prefix_lib -lssl -lcrypto"
  6204. OPENSSL_CFLAGS="-I$openssl_prefix_include"
  6205. fi
  6206. fi
  6207. fi
  6208. if test "x$have_openssl" = "xyes"; then
  6209. $as_echo "#define HAVE_LIBSSL 1" >>confdefs.h
  6210. # check whether EVP_DigestInit_ex exists. Old openssl doesn't have it.
  6211. for ac_func in EVP_DigestInit_ex
  6212. do :
  6213. ac_fn_cxx_check_func "$LINENO" "EVP_DigestInit_ex" "ac_cv_func_EVP_DigestInit_ex"
  6214. if test "x$ac_cv_func_EVP_DigestInit_ex" = x""yes; then :
  6215. cat >>confdefs.h <<_ACEOF
  6216. #define HAVE_EVP_DIGESTINIT_EX 1
  6217. _ACEOF
  6218. have_digestinit_ex=yes
  6219. fi
  6220. done
  6221. if test "x$have_digestinit_ex" = "x"; then
  6222. $as_echo "#define HAVE_OLD_LIBSSL 1" >>confdefs.h
  6223. fi
  6224. # search for sha256 support
  6225. for ac_func in EVP_sha256
  6226. do :
  6227. ac_fn_cxx_check_func "$LINENO" "EVP_sha256" "ac_cv_func_EVP_sha256"
  6228. if test "x$ac_cv_func_EVP_sha256" = x""yes; then :
  6229. cat >>confdefs.h <<_ACEOF
  6230. #define HAVE_EVP_SHA256 1
  6231. _ACEOF
  6232. fi
  6233. done
  6234. fi
  6235. LIBS=$LIBS_save
  6236. CPPFLAGS=$CPPFLAGS_save
  6237. if test "x$have_openssl" != "xyes" &&
  6238. test "x$with_openssl_requested" = "xyes"; then
  6239. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  6240. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  6241. as_fn_error "openssl is requested but not found in the system.
  6242. See \`config.log' for more details." "$LINENO" 5; }
  6243. fi
  6244. fi
  6245. if test "x$with_libcares" = "xyes"; then
  6246. # Check whether --with-libcares-prefix was given.
  6247. if test "${with_libcares_prefix+set}" = set; then :
  6248. withval=$with_libcares_prefix; libcares_prefix=$withval
  6249. else
  6250. libcares_prefix=""
  6251. fi
  6252. if test "x$libcares_prefix" = "x"; then
  6253. libcares_prefix="/usr"
  6254. fi
  6255. libcares_prefix_lib=$libcares_prefix/lib
  6256. libcares_prefix_include=$libcares_prefix/include
  6257. LIBS_save=$LIBS
  6258. CPPFLAGS_save=$CPPFLAGS
  6259. LIBS="-L$libcares_prefix_lib $LIBS"
  6260. CPPFLAGS="-I$libcares_prefix_include -Wall $CPPFLAGS"
  6261. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ares_init in -lcares" >&5
  6262. $as_echo_n "checking for ares_init in -lcares... " >&6; }
  6263. if test "${ac_cv_lib_cares_ares_init+set}" = set; then :
  6264. $as_echo_n "(cached) " >&6
  6265. else
  6266. ac_check_lib_save_LIBS=$LIBS
  6267. LIBS="-lcares $LIBS"
  6268. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6269. /* end confdefs.h. */
  6270. /* Override any GCC internal prototype to avoid an error.
  6271. Use char because int might match the return type of a GCC
  6272. builtin and then its argument prototype would still apply. */
  6273. #ifdef __cplusplus
  6274. extern "C"
  6275. #endif
  6276. char ares_init ();
  6277. int
  6278. main ()
  6279. {
  6280. return ares_init ();
  6281. ;
  6282. return 0;
  6283. }
  6284. _ACEOF
  6285. if ac_fn_cxx_try_link "$LINENO"; then :
  6286. ac_cv_lib_cares_ares_init=yes
  6287. else
  6288. ac_cv_lib_cares_ares_init=no
  6289. fi
  6290. rm -f core conftest.err conftest.$ac_objext \
  6291. conftest$ac_exeext conftest.$ac_ext
  6292. LIBS=$ac_check_lib_save_LIBS
  6293. fi
  6294. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_cares_ares_init" >&5
  6295. $as_echo "$ac_cv_lib_cares_ares_init" >&6; }
  6296. if test "x$ac_cv_lib_cares_ares_init" = x""yes; then :
  6297. have_libcares=yes
  6298. fi
  6299. if test "x$have_libcares" != "xyes"; then
  6300. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ares_init in -lcares" >&5
  6301. $as_echo_n "checking for ares_init in -lcares... " >&6; }
  6302. if test "${ac_cv_lib_cares_ares_init+set}" = set; then :
  6303. $as_echo_n "(cached) " >&6
  6304. else
  6305. ac_check_lib_save_LIBS=$LIBS
  6306. LIBS="-lcares -lrt $LIBS"
  6307. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6308. /* end confdefs.h. */
  6309. /* Override any GCC internal prototype to avoid an error.
  6310. Use char because int might match the return type of a GCC
  6311. builtin and then its argument prototype would still apply. */
  6312. #ifdef __cplusplus
  6313. extern "C"
  6314. #endif
  6315. char ares_init ();
  6316. int
  6317. main ()
  6318. {
  6319. return ares_init ();
  6320. ;
  6321. return 0;
  6322. }
  6323. _ACEOF
  6324. if ac_fn_cxx_try_link "$LINENO"; then :
  6325. ac_cv_lib_cares_ares_init=yes
  6326. else
  6327. ac_cv_lib_cares_ares_init=no
  6328. fi
  6329. rm -f core conftest.err conftest.$ac_objext \
  6330. conftest$ac_exeext conftest.$ac_ext
  6331. LIBS=$ac_check_lib_save_LIBS
  6332. fi
  6333. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_cares_ares_init" >&5
  6334. $as_echo "$ac_cv_lib_cares_ares_init" >&6; }
  6335. if test "x$ac_cv_lib_cares_ares_init" = x""yes; then :
  6336. have_libcares=yes need_librt=yes
  6337. fi
  6338. fi
  6339. if test "x$have_libcares" = "xyes"; then
  6340. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ares_host_callback accepts timeouts(c-ares >= 1.5)" >&5
  6341. $as_echo_n "checking whether ares_host_callback accepts timeouts(c-ares >= 1.5)... " >&6; }
  6342. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6343. /* end confdefs.h. */
  6344. #include <ares.h>
  6345. void callback(void* arg, int status, int timeouts, struct hostent* host);
  6346. int
  6347. main ()
  6348. {
  6349. ares_channel channel;
  6350. ares_gethostbyname(channel, "foo", 0, callback, 0);
  6351. ;
  6352. return 0;
  6353. }
  6354. _ACEOF
  6355. if ac_fn_cxx_try_compile "$LINENO"; then :
  6356. have_libcares1_5=yes
  6357. else
  6358. have_libcares1_5=no
  6359. fi
  6360. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  6361. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_libcares1_5" >&5
  6362. $as_echo "$have_libcares1_5" >&6; }
  6363. if test "x$have_libcares1_5" = "xyes"; then
  6364. $as_echo "#define HAVE_LIBCARES1_5 1" >>confdefs.h
  6365. fi
  6366. $as_echo "#define HAVE_LIBCARES 1" >>confdefs.h
  6367. LIBCARES_LIBS="-L$libcares_prefix_lib -lcares"
  6368. if test "x$need_librt" = "xyes"; then
  6369. LIBCARES_LIBS="$LIBCARES_LIBS -lrt"
  6370. fi
  6371. LIBCARES_CPPFLAGS="-I$libcares_prefix_include"
  6372. fi
  6373. LIBS=$LIBS_save
  6374. CPPFLAGS=$CPPFLAGS_save
  6375. if test "x$have_libcares" != "xyes" &&
  6376. test "x$with_libcares_requested" = "xyes"; then
  6377. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  6378. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  6379. as_fn_error "libcares is requested but not found in the system.
  6380. See \`config.log' for more details." "$LINENO" 5; }
  6381. fi
  6382. fi
  6383. # Check availability of libz
  6384. if test "x$with_libz" = "xyes"; then
  6385. # Check whether --with-libz-prefix was given.
  6386. if test "${with_libz_prefix+set}" = set; then :
  6387. withval=$with_libz_prefix; libz_prefix=$withval
  6388. else
  6389. libz_prefix=""
  6390. fi
  6391. if test "x$libz_prefix" = "x"; then
  6392. libz_prefix="/usr"
  6393. fi
  6394. libz_prefix_lib=$libz_prefix/lib
  6395. libz_prefix_include=$libz_prefix/include
  6396. LIBS_save=$LIBS
  6397. CPPFLAGS_save=$CPPFLAGS
  6398. LIBS="-L$libz_prefix_lib $LIBS"
  6399. CPPFLAGS="-I$libz_prefix_include $CPPFLAGS"
  6400. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for zlibVersion in -lz" >&5
  6401. $as_echo_n "checking for zlibVersion in -lz... " >&6; }
  6402. if test "${ac_cv_lib_z_zlibVersion+set}" = set; then :
  6403. $as_echo_n "(cached) " >&6
  6404. else
  6405. ac_check_lib_save_LIBS=$LIBS
  6406. LIBS="-lz $LIBS"
  6407. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6408. /* end confdefs.h. */
  6409. /* Override any GCC internal prototype to avoid an error.
  6410. Use char because int might match the return type of a GCC
  6411. builtin and then its argument prototype would still apply. */
  6412. #ifdef __cplusplus
  6413. extern "C"
  6414. #endif
  6415. char zlibVersion ();
  6416. int
  6417. main ()
  6418. {
  6419. return zlibVersion ();
  6420. ;
  6421. return 0;
  6422. }
  6423. _ACEOF
  6424. if ac_fn_cxx_try_link "$LINENO"; then :
  6425. ac_cv_lib_z_zlibVersion=yes
  6426. else
  6427. ac_cv_lib_z_zlibVersion=no
  6428. fi
  6429. rm -f core conftest.err conftest.$ac_objext \
  6430. conftest$ac_exeext conftest.$ac_ext
  6431. LIBS=$ac_check_lib_save_LIBS
  6432. fi
  6433. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_zlibVersion" >&5
  6434. $as_echo "$ac_cv_lib_z_zlibVersion" >&6; }
  6435. if test "x$ac_cv_lib_z_zlibVersion" = x""yes; then :
  6436. have_libz=yes
  6437. fi
  6438. if test "x$have_libz" = "xyes"; then
  6439. $as_echo "#define HAVE_LIBZ 1" >>confdefs.h
  6440. LIBZ_LIBS="-L$libz_prefix_lib -lz"
  6441. LIBZ_CPPFLAGS="-I$libz_prefix_include"
  6442. fi
  6443. LIBS=$LIBS_save
  6444. CPPFLAGS=$CPPFLAGS_save
  6445. if test "x$have_libz" != "xyes" && test "x$with_libz_requested" = "xyes"; then
  6446. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  6447. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  6448. as_fn_error "libz is requested but not found in the system.
  6449. See \`config.log' for more details." "$LINENO" 5; }
  6450. fi
  6451. fi
  6452. # Define variables based on the result of the checks for libraries.
  6453. if test "x$have_libgnutls" = "xyes" || test "x$have_openssl" = "xyes"; then
  6454. $as_echo "#define ENABLE_SSL 1" >>confdefs.h
  6455. if true; then
  6456. ENABLE_SSL_TRUE=
  6457. ENABLE_SSL_FALSE='#'
  6458. else
  6459. ENABLE_SSL_TRUE='#'
  6460. ENABLE_SSL_FALSE=
  6461. fi
  6462. else
  6463. if false; then
  6464. ENABLE_SSL_TRUE=
  6465. ENABLE_SSL_FALSE='#'
  6466. else
  6467. ENABLE_SSL_TRUE='#'
  6468. ENABLE_SSL_FALSE=
  6469. fi
  6470. fi
  6471. if test "x$have_libgnutls" = "xyes" ; then
  6472. HAVE_LIBGNUTLS_TRUE=
  6473. HAVE_LIBGNUTLS_FALSE='#'
  6474. else
  6475. HAVE_LIBGNUTLS_TRUE='#'
  6476. HAVE_LIBGNUTLS_FALSE=
  6477. fi
  6478. if test "x$have_openssl" = "xyes" ; then
  6479. HAVE_LIBSSL_TRUE=
  6480. HAVE_LIBSSL_FALSE='#'
  6481. else
  6482. HAVE_LIBSSL_TRUE='#'
  6483. HAVE_LIBSSL_FALSE=
  6484. fi
  6485. if test "x$have_libgcrypt" = "xyes" || test "x$have_openssl" = "xyes"; then
  6486. $as_echo "#define ENABLE_MESSAGE_DIGEST 1" >>confdefs.h
  6487. if true; then
  6488. ENABLE_MESSAGE_DIGEST_TRUE=
  6489. ENABLE_MESSAGE_DIGEST_FALSE='#'
  6490. else
  6491. ENABLE_MESSAGE_DIGEST_TRUE='#'
  6492. ENABLE_MESSAGE_DIGEST_FALSE=
  6493. fi
  6494. enable_message_digest=yes
  6495. else
  6496. if false; then
  6497. ENABLE_MESSAGE_DIGEST_TRUE=
  6498. ENABLE_MESSAGE_DIGEST_FALSE='#'
  6499. else
  6500. ENABLE_MESSAGE_DIGEST_TRUE='#'
  6501. ENABLE_MESSAGE_DIGEST_FALSE=
  6502. fi
  6503. fi
  6504. if test "x$enable_bittorrent" = "xyes" &&
  6505. test "x$enable_message_digest" = "xyes"; then
  6506. $as_echo "#define ENABLE_BITTORRENT 1" >>confdefs.h
  6507. if true; then
  6508. ENABLE_BITTORRENT_TRUE=
  6509. ENABLE_BITTORRENT_FALSE='#'
  6510. else
  6511. ENABLE_BITTORRENT_TRUE='#'
  6512. ENABLE_BITTORRENT_FALSE=
  6513. fi
  6514. else
  6515. if test "x$enable_bittorrent_requested" = "xyes"; then
  6516. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  6517. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  6518. as_fn_error "bittorrent is requested but cannot be enabled with current\
  6519. configuration.\
  6520. Make sure that dependent libraries are installed and configure script options\
  6521. are correct.
  6522. See \`config.log' for more details." "$LINENO" 5; }
  6523. fi
  6524. enable_bittorrent=no
  6525. if false; then
  6526. ENABLE_BITTORRENT_TRUE=
  6527. ENABLE_BITTORRENT_FALSE='#'
  6528. else
  6529. ENABLE_BITTORRENT_TRUE='#'
  6530. ENABLE_BITTORRENT_FALSE=
  6531. fi
  6532. fi
  6533. if (test "x$have_libxml2" = "xyes" || test "x$have_libexpat" = "xyes") &&
  6534. test "x$enable_metalink" = "xyes"; then
  6535. $as_echo "#define ENABLE_METALINK 1" >>confdefs.h
  6536. if true; then
  6537. ENABLE_METALINK_TRUE=
  6538. ENABLE_METALINK_FALSE='#'
  6539. else
  6540. ENABLE_METALINK_TRUE='#'
  6541. ENABLE_METALINK_FALSE=
  6542. fi
  6543. else
  6544. if test "x$enable_metalink_requested" = "xyes"; then
  6545. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  6546. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  6547. as_fn_error "metalink is requested but cannot be enabled with current\
  6548. configuration.\
  6549. Make sure that dependent libraries are installed and configure script options\
  6550. are correct.
  6551. See \`config.log' for more details." "$LINENO" 5; }
  6552. fi
  6553. enable_metalink=no
  6554. if false; then
  6555. ENABLE_METALINK_TRUE=
  6556. ENABLE_METALINK_FALSE='#'
  6557. else
  6558. ENABLE_METALINK_TRUE='#'
  6559. ENABLE_METALINK_FALSE=
  6560. fi
  6561. fi
  6562. if test "x$enable_metalink" = "xyes" && test "x$have_libxml2" = "xyes"; then
  6563. ENABLE_METALINK_LIBXML2_TRUE=
  6564. ENABLE_METALINK_LIBXML2_FALSE='#'
  6565. else
  6566. ENABLE_METALINK_LIBXML2_TRUE='#'
  6567. ENABLE_METALINK_LIBXML2_FALSE=
  6568. fi
  6569. if test "x$enable_metalink" = "xyes" && test "x$have_libexpat" = "xyes"; then
  6570. ENABLE_METALINK_LIBEXPAT_TRUE=
  6571. ENABLE_METALINK_LIBEXPAT_FALSE='#'
  6572. else
  6573. ENABLE_METALINK_LIBEXPAT_TRUE='#'
  6574. ENABLE_METALINK_LIBEXPAT_FALSE=
  6575. fi
  6576. if test "x$have_libxml2" = "xyes" || test "x$have_libexpat" = "xyes"; then
  6577. enable_xml_rpc=yes
  6578. fi
  6579. if test "x$enable_xml_rpc" = "xyes"; then
  6580. $as_echo "#define ENABLE_XML_RPC 1" >>confdefs.h
  6581. fi
  6582. if test "x$enable_xml_rpc" = "xyes"; then
  6583. ENABLE_XML_RPC_TRUE=
  6584. ENABLE_XML_RPC_FALSE='#'
  6585. else
  6586. ENABLE_XML_RPC_TRUE='#'
  6587. ENABLE_XML_RPC_FALSE=
  6588. fi
  6589. if test "x$have_libxml2" = "xyes"; then
  6590. HAVE_LIBXML2_TRUE=
  6591. HAVE_LIBXML2_FALSE='#'
  6592. else
  6593. HAVE_LIBXML2_TRUE='#'
  6594. HAVE_LIBXML2_FALSE=
  6595. fi
  6596. if test "x$have_libexpat" = "xyes"; then
  6597. HAVE_LIBEXPAT_TRUE=
  6598. HAVE_LIBEXPAT_FALSE='#'
  6599. else
  6600. HAVE_LIBEXPAT_TRUE='#'
  6601. HAVE_LIBEXPAT_FALSE=
  6602. fi
  6603. if test "x$have_libcares" = "xyes"; then
  6604. $as_echo "#define ENABLE_ASYNC_DNS 1" >>confdefs.h
  6605. if true; then
  6606. ENABLE_ASYNC_DNS_TRUE=
  6607. ENABLE_ASYNC_DNS_FALSE='#'
  6608. else
  6609. ENABLE_ASYNC_DNS_TRUE='#'
  6610. ENABLE_ASYNC_DNS_FALSE=
  6611. fi
  6612. else
  6613. if false; then
  6614. ENABLE_ASYNC_DNS_TRUE=
  6615. ENABLE_ASYNC_DNS_FALSE='#'
  6616. else
  6617. ENABLE_ASYNC_DNS_TRUE='#'
  6618. ENABLE_ASYNC_DNS_FALSE=
  6619. fi
  6620. fi
  6621. # Set conditional for libz
  6622. if test "x$have_libz" = "xyes"; then
  6623. HAVE_LIBZ_TRUE=
  6624. HAVE_LIBZ_FALSE='#'
  6625. else
  6626. HAVE_LIBZ_TRUE='#'
  6627. HAVE_LIBZ_FALSE=
  6628. fi
  6629. # Set conditional for sqlite3
  6630. if test "x$have_sqlite3" = "xyes"; then
  6631. HAVE_SQLITE3_TRUE=
  6632. HAVE_SQLITE3_FALSE='#'
  6633. else
  6634. HAVE_SQLITE3_TRUE='#'
  6635. HAVE_SQLITE3_FALSE=
  6636. fi
  6637. # Checks for header files.
  6638. # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
  6639. # for constant arguments. Useless!
  6640. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working alloca.h" >&5
  6641. $as_echo_n "checking for working alloca.h... " >&6; }
  6642. if test "${ac_cv_working_alloca_h+set}" = set; then :
  6643. $as_echo_n "(cached) " >&6
  6644. else
  6645. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6646. /* end confdefs.h. */
  6647. #include <alloca.h>
  6648. int
  6649. main ()
  6650. {
  6651. char *p = (char *) alloca (2 * sizeof (int));
  6652. if (p) return 0;
  6653. ;
  6654. return 0;
  6655. }
  6656. _ACEOF
  6657. if ac_fn_cxx_try_link "$LINENO"; then :
  6658. ac_cv_working_alloca_h=yes
  6659. else
  6660. ac_cv_working_alloca_h=no
  6661. fi
  6662. rm -f core conftest.err conftest.$ac_objext \
  6663. conftest$ac_exeext conftest.$ac_ext
  6664. fi
  6665. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_alloca_h" >&5
  6666. $as_echo "$ac_cv_working_alloca_h" >&6; }
  6667. if test $ac_cv_working_alloca_h = yes; then
  6668. $as_echo "#define HAVE_ALLOCA_H 1" >>confdefs.h
  6669. fi
  6670. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca" >&5
  6671. $as_echo_n "checking for alloca... " >&6; }
  6672. if test "${ac_cv_func_alloca_works+set}" = set; then :
  6673. $as_echo_n "(cached) " >&6
  6674. else
  6675. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6676. /* end confdefs.h. */
  6677. #ifdef __GNUC__
  6678. # define alloca __builtin_alloca
  6679. #else
  6680. # ifdef _MSC_VER
  6681. # include <malloc.h>
  6682. # define alloca _alloca
  6683. # else
  6684. # ifdef HAVE_ALLOCA_H
  6685. # include <alloca.h>
  6686. # else
  6687. # ifdef _AIX
  6688. #pragma alloca
  6689. # else
  6690. # ifndef alloca /* predefined by HP cc +Olibcalls */
  6691. char *alloca ();
  6692. # endif
  6693. # endif
  6694. # endif
  6695. # endif
  6696. #endif
  6697. int
  6698. main ()
  6699. {
  6700. char *p = (char *) alloca (1);
  6701. if (p) return 0;
  6702. ;
  6703. return 0;
  6704. }
  6705. _ACEOF
  6706. if ac_fn_cxx_try_link "$LINENO"; then :
  6707. ac_cv_func_alloca_works=yes
  6708. else
  6709. ac_cv_func_alloca_works=no
  6710. fi
  6711. rm -f core conftest.err conftest.$ac_objext \
  6712. conftest$ac_exeext conftest.$ac_ext
  6713. fi
  6714. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_alloca_works" >&5
  6715. $as_echo "$ac_cv_func_alloca_works" >&6; }
  6716. if test $ac_cv_func_alloca_works = yes; then
  6717. $as_echo "#define HAVE_ALLOCA 1" >>confdefs.h
  6718. else
  6719. # The SVR3 libPW and SVR4 libucb both contain incompatible functions
  6720. # that cause trouble. Some versions do not even contain alloca or
  6721. # contain a buggy version. If you still want to use their alloca,
  6722. # use ar to extract alloca.o from them instead of compiling alloca.c.
  6723. ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
  6724. $as_echo "#define C_ALLOCA 1" >>confdefs.h
  6725. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether \`alloca.c' needs Cray hooks" >&5
  6726. $as_echo_n "checking whether \`alloca.c' needs Cray hooks... " >&6; }
  6727. if test "${ac_cv_os_cray+set}" = set; then :
  6728. $as_echo_n "(cached) " >&6
  6729. else
  6730. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6731. /* end confdefs.h. */
  6732. #if defined CRAY && ! defined CRAY2
  6733. webecray
  6734. #else
  6735. wenotbecray
  6736. #endif
  6737. _ACEOF
  6738. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  6739. $EGREP "webecray" >/dev/null 2>&1; then :
  6740. ac_cv_os_cray=yes
  6741. else
  6742. ac_cv_os_cray=no
  6743. fi
  6744. rm -f conftest*
  6745. fi
  6746. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_os_cray" >&5
  6747. $as_echo "$ac_cv_os_cray" >&6; }
  6748. if test $ac_cv_os_cray = yes; then
  6749. for ac_func in _getb67 GETB67 getb67; do
  6750. as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
  6751. ac_fn_cxx_check_func "$LINENO" "$ac_func" "$as_ac_var"
  6752. eval as_val=\$$as_ac_var
  6753. if test "x$as_val" = x""yes; then :
  6754. cat >>confdefs.h <<_ACEOF
  6755. #define CRAY_STACKSEG_END $ac_func
  6756. _ACEOF
  6757. break
  6758. fi
  6759. done
  6760. fi
  6761. { $as_echo "$as_me:${as_lineno-$LINENO}: checking stack direction for C alloca" >&5
  6762. $as_echo_n "checking stack direction for C alloca... " >&6; }
  6763. if test "${ac_cv_c_stack_direction+set}" = set; then :
  6764. $as_echo_n "(cached) " >&6
  6765. else
  6766. if test "$cross_compiling" = yes; then :
  6767. ac_cv_c_stack_direction=0
  6768. else
  6769. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6770. /* end confdefs.h. */
  6771. $ac_includes_default
  6772. int
  6773. find_stack_direction ()
  6774. {
  6775. static char *addr = 0;
  6776. auto char dummy;
  6777. if (addr == 0)
  6778. {
  6779. addr = &dummy;
  6780. return find_stack_direction ();
  6781. }
  6782. else
  6783. return (&dummy > addr) ? 1 : -1;
  6784. }
  6785. int
  6786. main ()
  6787. {
  6788. return find_stack_direction () < 0;
  6789. }
  6790. _ACEOF
  6791. if ac_fn_cxx_try_run "$LINENO"; then :
  6792. ac_cv_c_stack_direction=1
  6793. else
  6794. ac_cv_c_stack_direction=-1
  6795. fi
  6796. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  6797. conftest.$ac_objext conftest.beam conftest.$ac_ext
  6798. fi
  6799. fi
  6800. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stack_direction" >&5
  6801. $as_echo "$ac_cv_c_stack_direction" >&6; }
  6802. cat >>confdefs.h <<_ACEOF
  6803. #define STACK_DIRECTION $ac_cv_c_stack_direction
  6804. _ACEOF
  6805. fi
  6806. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
  6807. $as_echo_n "checking for ANSI C header files... " >&6; }
  6808. if test "${ac_cv_header_stdc+set}" = set; then :
  6809. $as_echo_n "(cached) " >&6
  6810. else
  6811. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6812. /* end confdefs.h. */
  6813. #include <stdlib.h>
  6814. #include <stdarg.h>
  6815. #include <string.h>
  6816. #include <float.h>
  6817. int
  6818. main ()
  6819. {
  6820. ;
  6821. return 0;
  6822. }
  6823. _ACEOF
  6824. if ac_fn_cxx_try_compile "$LINENO"; then :
  6825. ac_cv_header_stdc=yes
  6826. else
  6827. ac_cv_header_stdc=no
  6828. fi
  6829. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  6830. if test $ac_cv_header_stdc = yes; then
  6831. # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
  6832. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6833. /* end confdefs.h. */
  6834. #include <string.h>
  6835. _ACEOF
  6836. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  6837. $EGREP "memchr" >/dev/null 2>&1; then :
  6838. else
  6839. ac_cv_header_stdc=no
  6840. fi
  6841. rm -f conftest*
  6842. fi
  6843. if test $ac_cv_header_stdc = yes; then
  6844. # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
  6845. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6846. /* end confdefs.h. */
  6847. #include <stdlib.h>
  6848. _ACEOF
  6849. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  6850. $EGREP "free" >/dev/null 2>&1; then :
  6851. else
  6852. ac_cv_header_stdc=no
  6853. fi
  6854. rm -f conftest*
  6855. fi
  6856. if test $ac_cv_header_stdc = yes; then
  6857. # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
  6858. if test "$cross_compiling" = yes; then :
  6859. :
  6860. else
  6861. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6862. /* end confdefs.h. */
  6863. #include <ctype.h>
  6864. #include <stdlib.h>
  6865. #if ((' ' & 0x0FF) == 0x020)
  6866. # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
  6867. # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
  6868. #else
  6869. # define ISLOWER(c) \
  6870. (('a' <= (c) && (c) <= 'i') \
  6871. || ('j' <= (c) && (c) <= 'r') \
  6872. || ('s' <= (c) && (c) <= 'z'))
  6873. # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
  6874. #endif
  6875. #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
  6876. int
  6877. main ()
  6878. {
  6879. int i;
  6880. for (i = 0; i < 256; i++)
  6881. if (XOR (islower (i), ISLOWER (i))
  6882. || toupper (i) != TOUPPER (i))
  6883. return 2;
  6884. return 0;
  6885. }
  6886. _ACEOF
  6887. if ac_fn_cxx_try_run "$LINENO"; then :
  6888. else
  6889. ac_cv_header_stdc=no
  6890. fi
  6891. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  6892. conftest.$ac_objext conftest.beam conftest.$ac_ext
  6893. fi
  6894. fi
  6895. fi
  6896. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
  6897. $as_echo "$ac_cv_header_stdc" >&6; }
  6898. if test $ac_cv_header_stdc = yes; then
  6899. $as_echo "#define STDC_HEADERS 1" >>confdefs.h
  6900. fi
  6901. case "$target" in
  6902. *mingw*)
  6903. for ac_header in winsock2.h \
  6904. ws2tcpip.h
  6905. do :
  6906. as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
  6907. ac_fn_cxx_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
  6908. eval as_val=\$$as_ac_Header
  6909. if test "x$as_val" = x""yes; then :
  6910. cat >>confdefs.h <<_ACEOF
  6911. #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
  6912. _ACEOF
  6913. fi
  6914. done
  6915. ;;
  6916. esac
  6917. for ac_header in argz.h \
  6918. arpa/inet.h \
  6919. fcntl.h \
  6920. float.h \
  6921. inttypes.h \
  6922. io.h \
  6923. langinfo.h \
  6924. libintl.h \
  6925. limits.h \
  6926. locale.h \
  6927. malloc.h \
  6928. netdb.h \
  6929. netinet/in.h \
  6930. stddef.h \
  6931. stdint.h \
  6932. stdio_ext.h \
  6933. stdlib.h \
  6934. string.h \
  6935. strings.h \
  6936. sys/ioctl.h \
  6937. sys/param.h \
  6938. sys/socket.h \
  6939. sys/time.h \
  6940. termios.h \
  6941. unistd.h \
  6942. utime.h \
  6943. wchar.h \
  6944. ifaddrs.h
  6945. do :
  6946. as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
  6947. ac_fn_cxx_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
  6948. eval as_val=\$$as_ac_Header
  6949. if test "x$as_val" = x""yes; then :
  6950. cat >>confdefs.h <<_ACEOF
  6951. #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
  6952. _ACEOF
  6953. fi
  6954. done
  6955. # Checks for typedefs, structures, and compiler characteristics.
  6956. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for stdbool.h that conforms to C99" >&5
  6957. $as_echo_n "checking for stdbool.h that conforms to C99... " >&6; }
  6958. if test "${ac_cv_header_stdbool_h+set}" = set; then :
  6959. $as_echo_n "(cached) " >&6
  6960. else
  6961. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6962. /* end confdefs.h. */
  6963. #include <stdbool.h>
  6964. #ifndef bool
  6965. "error: bool is not defined"
  6966. #endif
  6967. #ifndef false
  6968. "error: false is not defined"
  6969. #endif
  6970. #if false
  6971. "error: false is not 0"
  6972. #endif
  6973. #ifndef true
  6974. "error: true is not defined"
  6975. #endif
  6976. #if true != 1
  6977. "error: true is not 1"
  6978. #endif
  6979. #ifndef __bool_true_false_are_defined
  6980. "error: __bool_true_false_are_defined is not defined"
  6981. #endif
  6982. struct s { _Bool s: 1; _Bool t; } s;
  6983. char a[true == 1 ? 1 : -1];
  6984. char b[false == 0 ? 1 : -1];
  6985. char c[__bool_true_false_are_defined == 1 ? 1 : -1];
  6986. char d[(bool) 0.5 == true ? 1 : -1];
  6987. bool e = &s;
  6988. char f[(_Bool) 0.0 == false ? 1 : -1];
  6989. char g[true];
  6990. char h[sizeof (_Bool)];
  6991. char i[sizeof s.t];
  6992. enum { j = false, k = true, l = false * true, m = true * 256 };
  6993. /* The following fails for
  6994. HP aC++/ANSI C B3910B A.05.55 [Dec 04 2003]. */
  6995. _Bool n[m];
  6996. char o[sizeof n == m * sizeof n[0] ? 1 : -1];
  6997. char p[-1 - (_Bool) 0 < 0 && -1 - (bool) 0 < 0 ? 1 : -1];
  6998. # if defined __xlc__ || defined __GNUC__
  6999. /* Catch a bug in IBM AIX xlc compiler version 6.0.0.0
  7000. reported by James Lemley on 2005-10-05; see
  7001. http://lists.gnu.org/archive/html/bug-coreutils/2005-10/msg00086.html
  7002. This test is not quite right, since xlc is allowed to
  7003. reject this program, as the initializer for xlcbug is
  7004. not one of the forms that C requires support for.
  7005. However, doing the test right would require a runtime
  7006. test, and that would make cross-compilation harder.
  7007. Let us hope that IBM fixes the xlc bug, and also adds
  7008. support for this kind of constant expression. In the
  7009. meantime, this test will reject xlc, which is OK, since
  7010. our stdbool.h substitute should suffice. We also test
  7011. this with GCC, where it should work, to detect more
  7012. quickly whether someone messes up the test in the
  7013. future. */
  7014. char digs[] = "0123456789";
  7015. int xlcbug = 1 / (&(digs + 5)[-2 + (bool) 1] == &digs[4] ? 1 : -1);
  7016. # endif
  7017. /* Catch a bug in an HP-UX C compiler. See
  7018. http://gcc.gnu.org/ml/gcc-patches/2003-12/msg02303.html
  7019. http://lists.gnu.org/archive/html/bug-coreutils/2005-11/msg00161.html
  7020. */
  7021. _Bool q = true;
  7022. _Bool *pq = &q;
  7023. int
  7024. main ()
  7025. {
  7026. *pq |= q;
  7027. *pq |= ! q;
  7028. /* Refer to every declared value, to avoid compiler optimizations. */
  7029. return (!a + !b + !c + !d + !e + !f + !g + !h + !i + !!j + !k + !!l
  7030. + !m + !n + !o + !p + !q + !pq);
  7031. ;
  7032. return 0;
  7033. }
  7034. _ACEOF
  7035. if ac_fn_cxx_try_compile "$LINENO"; then :
  7036. ac_cv_header_stdbool_h=yes
  7037. else
  7038. ac_cv_header_stdbool_h=no
  7039. fi
  7040. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  7041. fi
  7042. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdbool_h" >&5
  7043. $as_echo "$ac_cv_header_stdbool_h" >&6; }
  7044. ac_fn_cxx_check_type "$LINENO" "_Bool" "ac_cv_type__Bool" "$ac_includes_default"
  7045. if test "x$ac_cv_type__Bool" = x""yes; then :
  7046. cat >>confdefs.h <<_ACEOF
  7047. #define HAVE__BOOL 1
  7048. _ACEOF
  7049. fi
  7050. if test $ac_cv_header_stdbool_h = yes; then
  7051. $as_echo "#define HAVE_STDBOOL_H 1" >>confdefs.h
  7052. fi
  7053. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
  7054. $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
  7055. if test "${ac_cv_c_const+set}" = set; then :
  7056. $as_echo_n "(cached) " >&6
  7057. else
  7058. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7059. /* end confdefs.h. */
  7060. int
  7061. main ()
  7062. {
  7063. /* FIXME: Include the comments suggested by Paul. */
  7064. #ifndef __cplusplus
  7065. /* Ultrix mips cc rejects this. */
  7066. typedef int charset[2];
  7067. const charset cs;
  7068. /* SunOS 4.1.1 cc rejects this. */
  7069. char const *const *pcpcc;
  7070. char **ppc;
  7071. /* NEC SVR4.0.2 mips cc rejects this. */
  7072. struct point {int x, y;};
  7073. static struct point const zero = {0,0};
  7074. /* AIX XL C 1.02.0.0 rejects this.
  7075. It does not let you subtract one const X* pointer from another in
  7076. an arm of an if-expression whose if-part is not a constant
  7077. expression */
  7078. const char *g = "string";
  7079. pcpcc = &g + (g ? g-g : 0);
  7080. /* HPUX 7.0 cc rejects these. */
  7081. ++pcpcc;
  7082. ppc = (char**) pcpcc;
  7083. pcpcc = (char const *const *) ppc;
  7084. { /* SCO 3.2v4 cc rejects this. */
  7085. char *t;
  7086. char const *s = 0 ? (char *) 0 : (char const *) 0;
  7087. *t++ = 0;
  7088. if (s) return 0;
  7089. }
  7090. { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
  7091. int x[] = {25, 17};
  7092. const int *foo = &x[0];
  7093. ++foo;
  7094. }
  7095. { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
  7096. typedef const int *iptr;
  7097. iptr p = 0;
  7098. ++p;
  7099. }
  7100. { /* AIX XL C 1.02.0.0 rejects this saying
  7101. "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
  7102. struct s { int j; const int *ap[3]; };
  7103. struct s *b; b->j = 5;
  7104. }
  7105. { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
  7106. const int foo = 10;
  7107. if (!foo) return 0;
  7108. }
  7109. return !cs[0] && !zero.x;
  7110. #endif
  7111. ;
  7112. return 0;
  7113. }
  7114. _ACEOF
  7115. if ac_fn_cxx_try_compile "$LINENO"; then :
  7116. ac_cv_c_const=yes
  7117. else
  7118. ac_cv_c_const=no
  7119. fi
  7120. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  7121. fi
  7122. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
  7123. $as_echo "$ac_cv_c_const" >&6; }
  7124. if test $ac_cv_c_const = no; then
  7125. $as_echo "#define const /**/" >>confdefs.h
  7126. fi
  7127. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
  7128. $as_echo_n "checking for inline... " >&6; }
  7129. if test "${ac_cv_c_inline+set}" = set; then :
  7130. $as_echo_n "(cached) " >&6
  7131. else
  7132. ac_cv_c_inline=no
  7133. for ac_kw in inline __inline__ __inline; do
  7134. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7135. /* end confdefs.h. */
  7136. #ifndef __cplusplus
  7137. typedef int foo_t;
  7138. static $ac_kw foo_t static_foo () {return 0; }
  7139. $ac_kw foo_t foo () {return 0; }
  7140. #endif
  7141. _ACEOF
  7142. if ac_fn_cxx_try_compile "$LINENO"; then :
  7143. ac_cv_c_inline=$ac_kw
  7144. fi
  7145. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  7146. test "$ac_cv_c_inline" != no && break
  7147. done
  7148. fi
  7149. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
  7150. $as_echo "$ac_cv_c_inline" >&6; }
  7151. case $ac_cv_c_inline in
  7152. inline | yes) ;;
  7153. *)
  7154. case $ac_cv_c_inline in
  7155. no) ac_val=;;
  7156. *) ac_val=$ac_cv_c_inline;;
  7157. esac
  7158. cat >>confdefs.h <<_ACEOF
  7159. #ifndef __cplusplus
  7160. #define inline $ac_val
  7161. #endif
  7162. _ACEOF
  7163. ;;
  7164. esac
  7165. ac_fn_c_find_intX_t "$LINENO" "16" "ac_cv_c_int16_t"
  7166. case $ac_cv_c_int16_t in #(
  7167. no|yes) ;; #(
  7168. *)
  7169. cat >>confdefs.h <<_ACEOF
  7170. #define int16_t $ac_cv_c_int16_t
  7171. _ACEOF
  7172. ;;
  7173. esac
  7174. ac_fn_c_find_intX_t "$LINENO" "32" "ac_cv_c_int32_t"
  7175. case $ac_cv_c_int32_t in #(
  7176. no|yes) ;; #(
  7177. *)
  7178. cat >>confdefs.h <<_ACEOF
  7179. #define int32_t $ac_cv_c_int32_t
  7180. _ACEOF
  7181. ;;
  7182. esac
  7183. ac_fn_c_find_intX_t "$LINENO" "64" "ac_cv_c_int64_t"
  7184. case $ac_cv_c_int64_t in #(
  7185. no|yes) ;; #(
  7186. *)
  7187. cat >>confdefs.h <<_ACEOF
  7188. #define int64_t $ac_cv_c_int64_t
  7189. _ACEOF
  7190. ;;
  7191. esac
  7192. ac_fn_c_find_intX_t "$LINENO" "8" "ac_cv_c_int8_t"
  7193. case $ac_cv_c_int8_t in #(
  7194. no|yes) ;; #(
  7195. *)
  7196. cat >>confdefs.h <<_ACEOF
  7197. #define int8_t $ac_cv_c_int8_t
  7198. _ACEOF
  7199. ;;
  7200. esac
  7201. ac_fn_cxx_check_type "$LINENO" "mode_t" "ac_cv_type_mode_t" "$ac_includes_default"
  7202. if test "x$ac_cv_type_mode_t" = x""yes; then :
  7203. else
  7204. cat >>confdefs.h <<_ACEOF
  7205. #define mode_t int
  7206. _ACEOF
  7207. fi
  7208. ac_fn_cxx_check_type "$LINENO" "off_t" "ac_cv_type_off_t" "$ac_includes_default"
  7209. if test "x$ac_cv_type_off_t" = x""yes; then :
  7210. else
  7211. cat >>confdefs.h <<_ACEOF
  7212. #define off_t long int
  7213. _ACEOF
  7214. fi
  7215. ac_fn_cxx_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
  7216. if test "x$ac_cv_type_size_t" = x""yes; then :
  7217. else
  7218. cat >>confdefs.h <<_ACEOF
  7219. #define size_t unsigned int
  7220. _ACEOF
  7221. fi
  7222. ac_fn_cxx_check_type "$LINENO" "ssize_t" "ac_cv_type_ssize_t" "$ac_includes_default"
  7223. if test "x$ac_cv_type_ssize_t" = x""yes; then :
  7224. else
  7225. cat >>confdefs.h <<_ACEOF
  7226. #define ssize_t int
  7227. _ACEOF
  7228. fi
  7229. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5
  7230. $as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
  7231. if test "${ac_cv_header_time+set}" = set; then :
  7232. $as_echo_n "(cached) " >&6
  7233. else
  7234. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7235. /* end confdefs.h. */
  7236. #include <sys/types.h>
  7237. #include <sys/time.h>
  7238. #include <time.h>
  7239. int
  7240. main ()
  7241. {
  7242. if ((struct tm *) 0)
  7243. return 0;
  7244. ;
  7245. return 0;
  7246. }
  7247. _ACEOF
  7248. if ac_fn_cxx_try_compile "$LINENO"; then :
  7249. ac_cv_header_time=yes
  7250. else
  7251. ac_cv_header_time=no
  7252. fi
  7253. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  7254. fi
  7255. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
  7256. $as_echo "$ac_cv_header_time" >&6; }
  7257. if test $ac_cv_header_time = yes; then
  7258. $as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
  7259. fi
  7260. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct tm is in sys/time.h or time.h" >&5
  7261. $as_echo_n "checking whether struct tm is in sys/time.h or time.h... " >&6; }
  7262. if test "${ac_cv_struct_tm+set}" = set; then :
  7263. $as_echo_n "(cached) " >&6
  7264. else
  7265. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7266. /* end confdefs.h. */
  7267. #include <sys/types.h>
  7268. #include <time.h>
  7269. int
  7270. main ()
  7271. {
  7272. struct tm tm;
  7273. int *p = &tm.tm_sec;
  7274. return !p;
  7275. ;
  7276. return 0;
  7277. }
  7278. _ACEOF
  7279. if ac_fn_cxx_try_compile "$LINENO"; then :
  7280. ac_cv_struct_tm=time.h
  7281. else
  7282. ac_cv_struct_tm=sys/time.h
  7283. fi
  7284. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  7285. fi
  7286. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tm" >&5
  7287. $as_echo "$ac_cv_struct_tm" >&6; }
  7288. if test $ac_cv_struct_tm = sys/time.h; then
  7289. $as_echo "#define TM_IN_SYS_TIME 1" >>confdefs.h
  7290. fi
  7291. ac_fn_c_find_uintX_t "$LINENO" "16" "ac_cv_c_uint16_t"
  7292. case $ac_cv_c_uint16_t in #(
  7293. no|yes) ;; #(
  7294. *)
  7295. cat >>confdefs.h <<_ACEOF
  7296. #define uint16_t $ac_cv_c_uint16_t
  7297. _ACEOF
  7298. ;;
  7299. esac
  7300. ac_fn_c_find_uintX_t "$LINENO" "32" "ac_cv_c_uint32_t"
  7301. case $ac_cv_c_uint32_t in #(
  7302. no|yes) ;; #(
  7303. *)
  7304. $as_echo "#define _UINT32_T 1" >>confdefs.h
  7305. cat >>confdefs.h <<_ACEOF
  7306. #define uint32_t $ac_cv_c_uint32_t
  7307. _ACEOF
  7308. ;;
  7309. esac
  7310. ac_fn_c_find_uintX_t "$LINENO" "64" "ac_cv_c_uint64_t"
  7311. case $ac_cv_c_uint64_t in #(
  7312. no|yes) ;; #(
  7313. *)
  7314. $as_echo "#define _UINT64_T 1" >>confdefs.h
  7315. cat >>confdefs.h <<_ACEOF
  7316. #define uint64_t $ac_cv_c_uint64_t
  7317. _ACEOF
  7318. ;;
  7319. esac
  7320. ac_fn_c_find_uintX_t "$LINENO" "8" "ac_cv_c_uint8_t"
  7321. case $ac_cv_c_uint8_t in #(
  7322. no|yes) ;; #(
  7323. *)
  7324. $as_echo "#define _UINT8_T 1" >>confdefs.h
  7325. cat >>confdefs.h <<_ACEOF
  7326. #define uint8_t $ac_cv_c_uint8_t
  7327. _ACEOF
  7328. ;;
  7329. esac
  7330. ac_fn_cxx_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
  7331. if test "x$ac_cv_type_pid_t" = x""yes; then :
  7332. else
  7333. cat >>confdefs.h <<_ACEOF
  7334. #define pid_t int
  7335. _ACEOF
  7336. fi
  7337. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working volatile" >&5
  7338. $as_echo_n "checking for working volatile... " >&6; }
  7339. if test "${ac_cv_c_volatile+set}" = set; then :
  7340. $as_echo_n "(cached) " >&6
  7341. else
  7342. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7343. /* end confdefs.h. */
  7344. int
  7345. main ()
  7346. {
  7347. volatile int x;
  7348. int * volatile y = (int *) 0;
  7349. return !x && !y;
  7350. ;
  7351. return 0;
  7352. }
  7353. _ACEOF
  7354. if ac_fn_cxx_try_compile "$LINENO"; then :
  7355. ac_cv_c_volatile=yes
  7356. else
  7357. ac_cv_c_volatile=no
  7358. fi
  7359. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  7360. fi
  7361. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_volatile" >&5
  7362. $as_echo "$ac_cv_c_volatile" >&6; }
  7363. if test $ac_cv_c_volatile = no; then
  7364. $as_echo "#define volatile /**/" >>confdefs.h
  7365. fi
  7366. ac_fn_cxx_check_type "$LINENO" "ptrdiff_t" "ac_cv_type_ptrdiff_t" "$ac_includes_default"
  7367. if test "x$ac_cv_type_ptrdiff_t" = x""yes; then :
  7368. cat >>confdefs.h <<_ACEOF
  7369. #define HAVE_PTRDIFF_T 1
  7370. _ACEOF
  7371. fi
  7372. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
  7373. $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
  7374. if test "${ac_cv_c_bigendian+set}" = set; then :
  7375. $as_echo_n "(cached) " >&6
  7376. else
  7377. ac_cv_c_bigendian=unknown
  7378. # See if we're dealing with a universal compiler.
  7379. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7380. /* end confdefs.h. */
  7381. #ifndef __APPLE_CC__
  7382. not a universal capable compiler
  7383. #endif
  7384. typedef int dummy;
  7385. _ACEOF
  7386. if ac_fn_cxx_try_compile "$LINENO"; then :
  7387. # Check for potential -arch flags. It is not universal unless
  7388. # there are at least two -arch flags with different values.
  7389. ac_arch=
  7390. ac_prev=
  7391. for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
  7392. if test -n "$ac_prev"; then
  7393. case $ac_word in
  7394. i?86 | x86_64 | ppc | ppc64)
  7395. if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
  7396. ac_arch=$ac_word
  7397. else
  7398. ac_cv_c_bigendian=universal
  7399. break
  7400. fi
  7401. ;;
  7402. esac
  7403. ac_prev=
  7404. elif test "x$ac_word" = "x-arch"; then
  7405. ac_prev=arch
  7406. fi
  7407. done
  7408. fi
  7409. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  7410. if test $ac_cv_c_bigendian = unknown; then
  7411. # See if sys/param.h defines the BYTE_ORDER macro.
  7412. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7413. /* end confdefs.h. */
  7414. #include <sys/types.h>
  7415. #include <sys/param.h>
  7416. int
  7417. main ()
  7418. {
  7419. #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
  7420. && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
  7421. && LITTLE_ENDIAN)
  7422. bogus endian macros
  7423. #endif
  7424. ;
  7425. return 0;
  7426. }
  7427. _ACEOF
  7428. if ac_fn_cxx_try_compile "$LINENO"; then :
  7429. # It does; now see whether it defined to BIG_ENDIAN or not.
  7430. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7431. /* end confdefs.h. */
  7432. #include <sys/types.h>
  7433. #include <sys/param.h>
  7434. int
  7435. main ()
  7436. {
  7437. #if BYTE_ORDER != BIG_ENDIAN
  7438. not big endian
  7439. #endif
  7440. ;
  7441. return 0;
  7442. }
  7443. _ACEOF
  7444. if ac_fn_cxx_try_compile "$LINENO"; then :
  7445. ac_cv_c_bigendian=yes
  7446. else
  7447. ac_cv_c_bigendian=no
  7448. fi
  7449. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  7450. fi
  7451. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  7452. fi
  7453. if test $ac_cv_c_bigendian = unknown; then
  7454. # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
  7455. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7456. /* end confdefs.h. */
  7457. #include <limits.h>
  7458. int
  7459. main ()
  7460. {
  7461. #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
  7462. bogus endian macros
  7463. #endif
  7464. ;
  7465. return 0;
  7466. }
  7467. _ACEOF
  7468. if ac_fn_cxx_try_compile "$LINENO"; then :
  7469. # It does; now see whether it defined to _BIG_ENDIAN or not.
  7470. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7471. /* end confdefs.h. */
  7472. #include <limits.h>
  7473. int
  7474. main ()
  7475. {
  7476. #ifndef _BIG_ENDIAN
  7477. not big endian
  7478. #endif
  7479. ;
  7480. return 0;
  7481. }
  7482. _ACEOF
  7483. if ac_fn_cxx_try_compile "$LINENO"; then :
  7484. ac_cv_c_bigendian=yes
  7485. else
  7486. ac_cv_c_bigendian=no
  7487. fi
  7488. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  7489. fi
  7490. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  7491. fi
  7492. if test $ac_cv_c_bigendian = unknown; then
  7493. # Compile a test program.
  7494. if test "$cross_compiling" = yes; then :
  7495. # Try to guess by grepping values from an object file.
  7496. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7497. /* end confdefs.h. */
  7498. short int ascii_mm[] =
  7499. { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
  7500. short int ascii_ii[] =
  7501. { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
  7502. int use_ascii (int i) {
  7503. return ascii_mm[i] + ascii_ii[i];
  7504. }
  7505. short int ebcdic_ii[] =
  7506. { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
  7507. short int ebcdic_mm[] =
  7508. { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
  7509. int use_ebcdic (int i) {
  7510. return ebcdic_mm[i] + ebcdic_ii[i];
  7511. }
  7512. extern int foo;
  7513. int
  7514. main ()
  7515. {
  7516. return use_ascii (foo) == use_ebcdic (foo);
  7517. ;
  7518. return 0;
  7519. }
  7520. _ACEOF
  7521. if ac_fn_cxx_try_compile "$LINENO"; then :
  7522. if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
  7523. ac_cv_c_bigendian=yes
  7524. fi
  7525. if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
  7526. if test "$ac_cv_c_bigendian" = unknown; then
  7527. ac_cv_c_bigendian=no
  7528. else
  7529. # finding both strings is unlikely to happen, but who knows?
  7530. ac_cv_c_bigendian=unknown
  7531. fi
  7532. fi
  7533. fi
  7534. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  7535. else
  7536. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7537. /* end confdefs.h. */
  7538. $ac_includes_default
  7539. int
  7540. main ()
  7541. {
  7542. /* Are we little or big endian? From Harbison&Steele. */
  7543. union
  7544. {
  7545. long int l;
  7546. char c[sizeof (long int)];
  7547. } u;
  7548. u.l = 1;
  7549. return u.c[sizeof (long int) - 1] == 1;
  7550. ;
  7551. return 0;
  7552. }
  7553. _ACEOF
  7554. if ac_fn_cxx_try_run "$LINENO"; then :
  7555. ac_cv_c_bigendian=no
  7556. else
  7557. ac_cv_c_bigendian=yes
  7558. fi
  7559. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  7560. conftest.$ac_objext conftest.beam conftest.$ac_ext
  7561. fi
  7562. fi
  7563. fi
  7564. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
  7565. $as_echo "$ac_cv_c_bigendian" >&6; }
  7566. case $ac_cv_c_bigendian in #(
  7567. yes)
  7568. $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
  7569. ;; #(
  7570. no)
  7571. ;; #(
  7572. universal)
  7573. $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
  7574. ;; #(
  7575. *)
  7576. as_fn_error "unknown endianness
  7577. presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
  7578. esac
  7579. # Check whether --enable-largefile was given.
  7580. if test "${enable_largefile+set}" = set; then :
  7581. enableval=$enable_largefile;
  7582. fi
  7583. if test "$enable_largefile" != no; then
  7584. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
  7585. $as_echo_n "checking for special C compiler options needed for large files... " >&6; }
  7586. if test "${ac_cv_sys_largefile_CC+set}" = set; then :
  7587. $as_echo_n "(cached) " >&6
  7588. else
  7589. ac_cv_sys_largefile_CC=no
  7590. if test "$GCC" != yes; then
  7591. ac_save_CC=$CC
  7592. while :; do
  7593. # IRIX 6.2 and later do not support large files by default,
  7594. # so use the C compiler's -n32 option if that helps.
  7595. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7596. /* end confdefs.h. */
  7597. #include <sys/types.h>
  7598. /* Check that off_t can represent 2**63 - 1 correctly.
  7599. We can't simply define LARGE_OFF_T to be 9223372036854775807,
  7600. since some C++ compilers masquerading as C compilers
  7601. incorrectly reject 9223372036854775807. */
  7602. #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
  7603. int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
  7604. && LARGE_OFF_T % 2147483647 == 1)
  7605. ? 1 : -1];
  7606. int
  7607. main ()
  7608. {
  7609. ;
  7610. return 0;
  7611. }
  7612. _ACEOF
  7613. if ac_fn_cxx_try_compile "$LINENO"; then :
  7614. break
  7615. fi
  7616. rm -f core conftest.err conftest.$ac_objext
  7617. CC="$CC -n32"
  7618. if ac_fn_cxx_try_compile "$LINENO"; then :
  7619. ac_cv_sys_largefile_CC=' -n32'; break
  7620. fi
  7621. rm -f core conftest.err conftest.$ac_objext
  7622. break
  7623. done
  7624. CC=$ac_save_CC
  7625. rm -f conftest.$ac_ext
  7626. fi
  7627. fi
  7628. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
  7629. $as_echo "$ac_cv_sys_largefile_CC" >&6; }
  7630. if test "$ac_cv_sys_largefile_CC" != no; then
  7631. CC=$CC$ac_cv_sys_largefile_CC
  7632. fi
  7633. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
  7634. $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
  7635. if test "${ac_cv_sys_file_offset_bits+set}" = set; then :
  7636. $as_echo_n "(cached) " >&6
  7637. else
  7638. while :; do
  7639. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7640. /* end confdefs.h. */
  7641. #include <sys/types.h>
  7642. /* Check that off_t can represent 2**63 - 1 correctly.
  7643. We can't simply define LARGE_OFF_T to be 9223372036854775807,
  7644. since some C++ compilers masquerading as C compilers
  7645. incorrectly reject 9223372036854775807. */
  7646. #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
  7647. int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
  7648. && LARGE_OFF_T % 2147483647 == 1)
  7649. ? 1 : -1];
  7650. int
  7651. main ()
  7652. {
  7653. ;
  7654. return 0;
  7655. }
  7656. _ACEOF
  7657. if ac_fn_cxx_try_compile "$LINENO"; then :
  7658. ac_cv_sys_file_offset_bits=no; break
  7659. fi
  7660. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  7661. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7662. /* end confdefs.h. */
  7663. #define _FILE_OFFSET_BITS 64
  7664. #include <sys/types.h>
  7665. /* Check that off_t can represent 2**63 - 1 correctly.
  7666. We can't simply define LARGE_OFF_T to be 9223372036854775807,
  7667. since some C++ compilers masquerading as C compilers
  7668. incorrectly reject 9223372036854775807. */
  7669. #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
  7670. int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
  7671. && LARGE_OFF_T % 2147483647 == 1)
  7672. ? 1 : -1];
  7673. int
  7674. main ()
  7675. {
  7676. ;
  7677. return 0;
  7678. }
  7679. _ACEOF
  7680. if ac_fn_cxx_try_compile "$LINENO"; then :
  7681. ac_cv_sys_file_offset_bits=64; break
  7682. fi
  7683. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  7684. ac_cv_sys_file_offset_bits=unknown
  7685. break
  7686. done
  7687. fi
  7688. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
  7689. $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
  7690. case $ac_cv_sys_file_offset_bits in #(
  7691. no | unknown) ;;
  7692. *)
  7693. cat >>confdefs.h <<_ACEOF
  7694. #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
  7695. _ACEOF
  7696. ;;
  7697. esac
  7698. rm -rf conftest*
  7699. if test $ac_cv_sys_file_offset_bits = unknown; then
  7700. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
  7701. $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
  7702. if test "${ac_cv_sys_large_files+set}" = set; then :
  7703. $as_echo_n "(cached) " >&6
  7704. else
  7705. while :; do
  7706. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7707. /* end confdefs.h. */
  7708. #include <sys/types.h>
  7709. /* Check that off_t can represent 2**63 - 1 correctly.
  7710. We can't simply define LARGE_OFF_T to be 9223372036854775807,
  7711. since some C++ compilers masquerading as C compilers
  7712. incorrectly reject 9223372036854775807. */
  7713. #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
  7714. int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
  7715. && LARGE_OFF_T % 2147483647 == 1)
  7716. ? 1 : -1];
  7717. int
  7718. main ()
  7719. {
  7720. ;
  7721. return 0;
  7722. }
  7723. _ACEOF
  7724. if ac_fn_cxx_try_compile "$LINENO"; then :
  7725. ac_cv_sys_large_files=no; break
  7726. fi
  7727. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  7728. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7729. /* end confdefs.h. */
  7730. #define _LARGE_FILES 1
  7731. #include <sys/types.h>
  7732. /* Check that off_t can represent 2**63 - 1 correctly.
  7733. We can't simply define LARGE_OFF_T to be 9223372036854775807,
  7734. since some C++ compilers masquerading as C compilers
  7735. incorrectly reject 9223372036854775807. */
  7736. #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
  7737. int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
  7738. && LARGE_OFF_T % 2147483647 == 1)
  7739. ? 1 : -1];
  7740. int
  7741. main ()
  7742. {
  7743. ;
  7744. return 0;
  7745. }
  7746. _ACEOF
  7747. if ac_fn_cxx_try_compile "$LINENO"; then :
  7748. ac_cv_sys_large_files=1; break
  7749. fi
  7750. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  7751. ac_cv_sys_large_files=unknown
  7752. break
  7753. done
  7754. fi
  7755. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
  7756. $as_echo "$ac_cv_sys_large_files" >&6; }
  7757. case $ac_cv_sys_large_files in #(
  7758. no | unknown) ;;
  7759. *)
  7760. cat >>confdefs.h <<_ACEOF
  7761. #define _LARGE_FILES $ac_cv_sys_large_files
  7762. _ACEOF
  7763. ;;
  7764. esac
  7765. rm -rf conftest*
  7766. fi
  7767. fi
  7768. # Checks for library functions.
  7769. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5
  7770. $as_echo_n "checking whether NLS is requested... " >&6; }
  7771. # Check whether --enable-nls was given.
  7772. if test "${enable_nls+set}" = set; then :
  7773. enableval=$enable_nls; USE_NLS=$enableval
  7774. else
  7775. USE_NLS=yes
  7776. fi
  7777. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5
  7778. $as_echo "$USE_NLS" >&6; }
  7779. GETTEXT_MACRO_VERSION=0.17
  7780. # Prepare PATH_SEPARATOR.
  7781. # The user is always right.
  7782. if test "${PATH_SEPARATOR+set}" != set; then
  7783. echo "#! /bin/sh" >conf$$.sh
  7784. echo "exit 0" >>conf$$.sh
  7785. chmod +x conf$$.sh
  7786. if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
  7787. PATH_SEPARATOR=';'
  7788. else
  7789. PATH_SEPARATOR=:
  7790. fi
  7791. rm -f conf$$.sh
  7792. fi
  7793. # Find out how to test for executable files. Don't use a zero-byte file,
  7794. # as systems may use methods other than mode bits to determine executability.
  7795. cat >conf$$.file <<_ASEOF
  7796. #! /bin/sh
  7797. exit 0
  7798. _ASEOF
  7799. chmod +x conf$$.file
  7800. if test -x conf$$.file >/dev/null 2>&1; then
  7801. ac_executable_p="test -x"
  7802. else
  7803. ac_executable_p="test -f"
  7804. fi
  7805. rm -f conf$$.file
  7806. # Extract the first word of "msgfmt", so it can be a program name with args.
  7807. set dummy msgfmt; ac_word=$2
  7808. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  7809. $as_echo_n "checking for $ac_word... " >&6; }
  7810. if test "${ac_cv_path_MSGFMT+set}" = set; then :
  7811. $as_echo_n "(cached) " >&6
  7812. else
  7813. case "$MSGFMT" in
  7814. [\\/]* | ?:[\\/]*)
  7815. ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
  7816. ;;
  7817. *)
  7818. ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
  7819. for ac_dir in $PATH; do
  7820. IFS="$ac_save_IFS"
  7821. test -z "$ac_dir" && ac_dir=.
  7822. for ac_exec_ext in '' $ac_executable_extensions; do
  7823. if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
  7824. echo "$as_me: trying $ac_dir/$ac_word..." >&5
  7825. if $ac_dir/$ac_word --statistics /dev/null >&5 2>&1 &&
  7826. (if $ac_dir/$ac_word --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
  7827. ac_cv_path_MSGFMT="$ac_dir/$ac_word$ac_exec_ext"
  7828. break 2
  7829. fi
  7830. fi
  7831. done
  7832. done
  7833. IFS="$ac_save_IFS"
  7834. test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT=":"
  7835. ;;
  7836. esac
  7837. fi
  7838. MSGFMT="$ac_cv_path_MSGFMT"
  7839. if test "$MSGFMT" != ":"; then
  7840. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGFMT" >&5
  7841. $as_echo "$MSGFMT" >&6; }
  7842. else
  7843. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7844. $as_echo "no" >&6; }
  7845. fi
  7846. # Extract the first word of "gmsgfmt", so it can be a program name with args.
  7847. set dummy gmsgfmt; ac_word=$2
  7848. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  7849. $as_echo_n "checking for $ac_word... " >&6; }
  7850. if test "${ac_cv_path_GMSGFMT+set}" = set; then :
  7851. $as_echo_n "(cached) " >&6
  7852. else
  7853. case $GMSGFMT in
  7854. [\\/]* | ?:[\\/]*)
  7855. ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
  7856. ;;
  7857. *)
  7858. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  7859. for as_dir in $PATH
  7860. do
  7861. IFS=$as_save_IFS
  7862. test -z "$as_dir" && as_dir=.
  7863. for ac_exec_ext in '' $ac_executable_extensions; do
  7864. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  7865. ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
  7866. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  7867. break 2
  7868. fi
  7869. done
  7870. done
  7871. IFS=$as_save_IFS
  7872. test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
  7873. ;;
  7874. esac
  7875. fi
  7876. GMSGFMT=$ac_cv_path_GMSGFMT
  7877. if test -n "$GMSGFMT"; then
  7878. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GMSGFMT" >&5
  7879. $as_echo "$GMSGFMT" >&6; }
  7880. else
  7881. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7882. $as_echo "no" >&6; }
  7883. fi
  7884. case `$MSGFMT --version | sed 1q | sed -e 's,^[^0-9]*,,'` in
  7885. '' | 0.[0-9] | 0.[0-9].* | 0.1[0-4] | 0.1[0-4].*) MSGFMT_015=: ;;
  7886. *) MSGFMT_015=$MSGFMT ;;
  7887. esac
  7888. case `$GMSGFMT --version | sed 1q | sed -e 's,^[^0-9]*,,'` in
  7889. '' | 0.[0-9] | 0.[0-9].* | 0.1[0-4] | 0.1[0-4].*) GMSGFMT_015=: ;;
  7890. *) GMSGFMT_015=$GMSGFMT ;;
  7891. esac
  7892. # Prepare PATH_SEPARATOR.
  7893. # The user is always right.
  7894. if test "${PATH_SEPARATOR+set}" != set; then
  7895. echo "#! /bin/sh" >conf$$.sh
  7896. echo "exit 0" >>conf$$.sh
  7897. chmod +x conf$$.sh
  7898. if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
  7899. PATH_SEPARATOR=';'
  7900. else
  7901. PATH_SEPARATOR=:
  7902. fi
  7903. rm -f conf$$.sh
  7904. fi
  7905. # Find out how to test for executable files. Don't use a zero-byte file,
  7906. # as systems may use methods other than mode bits to determine executability.
  7907. cat >conf$$.file <<_ASEOF
  7908. #! /bin/sh
  7909. exit 0
  7910. _ASEOF
  7911. chmod +x conf$$.file
  7912. if test -x conf$$.file >/dev/null 2>&1; then
  7913. ac_executable_p="test -x"
  7914. else
  7915. ac_executable_p="test -f"
  7916. fi
  7917. rm -f conf$$.file
  7918. # Extract the first word of "xgettext", so it can be a program name with args.
  7919. set dummy xgettext; ac_word=$2
  7920. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  7921. $as_echo_n "checking for $ac_word... " >&6; }
  7922. if test "${ac_cv_path_XGETTEXT+set}" = set; then :
  7923. $as_echo_n "(cached) " >&6
  7924. else
  7925. case "$XGETTEXT" in
  7926. [\\/]* | ?:[\\/]*)
  7927. ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
  7928. ;;
  7929. *)
  7930. ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
  7931. for ac_dir in $PATH; do
  7932. IFS="$ac_save_IFS"
  7933. test -z "$ac_dir" && ac_dir=.
  7934. for ac_exec_ext in '' $ac_executable_extensions; do
  7935. if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
  7936. echo "$as_me: trying $ac_dir/$ac_word..." >&5
  7937. if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >&5 2>&1 &&
  7938. (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
  7939. ac_cv_path_XGETTEXT="$ac_dir/$ac_word$ac_exec_ext"
  7940. break 2
  7941. fi
  7942. fi
  7943. done
  7944. done
  7945. IFS="$ac_save_IFS"
  7946. test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
  7947. ;;
  7948. esac
  7949. fi
  7950. XGETTEXT="$ac_cv_path_XGETTEXT"
  7951. if test "$XGETTEXT" != ":"; then
  7952. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XGETTEXT" >&5
  7953. $as_echo "$XGETTEXT" >&6; }
  7954. else
  7955. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7956. $as_echo "no" >&6; }
  7957. fi
  7958. rm -f messages.po
  7959. case `$XGETTEXT --version | sed 1q | sed -e 's,^[^0-9]*,,'` in
  7960. '' | 0.[0-9] | 0.[0-9].* | 0.1[0-4] | 0.1[0-4].*) XGETTEXT_015=: ;;
  7961. *) XGETTEXT_015=$XGETTEXT ;;
  7962. esac
  7963. # Prepare PATH_SEPARATOR.
  7964. # The user is always right.
  7965. if test "${PATH_SEPARATOR+set}" != set; then
  7966. echo "#! /bin/sh" >conf$$.sh
  7967. echo "exit 0" >>conf$$.sh
  7968. chmod +x conf$$.sh
  7969. if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
  7970. PATH_SEPARATOR=';'
  7971. else
  7972. PATH_SEPARATOR=:
  7973. fi
  7974. rm -f conf$$.sh
  7975. fi
  7976. # Find out how to test for executable files. Don't use a zero-byte file,
  7977. # as systems may use methods other than mode bits to determine executability.
  7978. cat >conf$$.file <<_ASEOF
  7979. #! /bin/sh
  7980. exit 0
  7981. _ASEOF
  7982. chmod +x conf$$.file
  7983. if test -x conf$$.file >/dev/null 2>&1; then
  7984. ac_executable_p="test -x"
  7985. else
  7986. ac_executable_p="test -f"
  7987. fi
  7988. rm -f conf$$.file
  7989. # Extract the first word of "msgmerge", so it can be a program name with args.
  7990. set dummy msgmerge; ac_word=$2
  7991. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  7992. $as_echo_n "checking for $ac_word... " >&6; }
  7993. if test "${ac_cv_path_MSGMERGE+set}" = set; then :
  7994. $as_echo_n "(cached) " >&6
  7995. else
  7996. case "$MSGMERGE" in
  7997. [\\/]* | ?:[\\/]*)
  7998. ac_cv_path_MSGMERGE="$MSGMERGE" # Let the user override the test with a path.
  7999. ;;
  8000. *)
  8001. ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
  8002. for ac_dir in $PATH; do
  8003. IFS="$ac_save_IFS"
  8004. test -z "$ac_dir" && ac_dir=.
  8005. for ac_exec_ext in '' $ac_executable_extensions; do
  8006. if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
  8007. echo "$as_me: trying $ac_dir/$ac_word..." >&5
  8008. if $ac_dir/$ac_word --update -q /dev/null /dev/null >&5 2>&1; then
  8009. ac_cv_path_MSGMERGE="$ac_dir/$ac_word$ac_exec_ext"
  8010. break 2
  8011. fi
  8012. fi
  8013. done
  8014. done
  8015. IFS="$ac_save_IFS"
  8016. test -z "$ac_cv_path_MSGMERGE" && ac_cv_path_MSGMERGE=":"
  8017. ;;
  8018. esac
  8019. fi
  8020. MSGMERGE="$ac_cv_path_MSGMERGE"
  8021. if test "$MSGMERGE" != ":"; then
  8022. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGMERGE" >&5
  8023. $as_echo "$MSGMERGE" >&6; }
  8024. else
  8025. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  8026. $as_echo "no" >&6; }
  8027. fi
  8028. test -n "$localedir" || localedir='${datadir}/locale'
  8029. test -n "${XGETTEXT_EXTRA_OPTIONS+set}" || XGETTEXT_EXTRA_OPTIONS=
  8030. ac_config_commands="$ac_config_commands po-directories"
  8031. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C Library 2 or newer" >&5
  8032. $as_echo_n "checking whether we are using the GNU C Library 2 or newer... " >&6; }
  8033. if test "${ac_cv_gnu_library_2+set}" = set; then :
  8034. $as_echo_n "(cached) " >&6
  8035. else
  8036. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  8037. /* end confdefs.h. */
  8038. #include <features.h>
  8039. #ifdef __GNU_LIBRARY__
  8040. #if (__GLIBC__ >= 2)
  8041. Lucky GNU user
  8042. #endif
  8043. #endif
  8044. _ACEOF
  8045. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  8046. $EGREP "Lucky GNU user" >/dev/null 2>&1; then :
  8047. ac_cv_gnu_library_2=yes
  8048. else
  8049. ac_cv_gnu_library_2=no
  8050. fi
  8051. rm -f conftest*
  8052. fi
  8053. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_gnu_library_2" >&5
  8054. $as_echo "$ac_cv_gnu_library_2" >&6; }
  8055. GLIBC2="$ac_cv_gnu_library_2"
  8056. CFLAG_VISIBILITY=
  8057. HAVE_VISIBILITY=0
  8058. if test -n "$GCC"; then
  8059. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for simple visibility declarations" >&5
  8060. $as_echo_n "checking for simple visibility declarations... " >&6; }
  8061. if test "${gl_cv_cc_visibility+set}" = set; then :
  8062. $as_echo_n "(cached) " >&6
  8063. else
  8064. gl_save_CFLAGS="$CFLAGS"
  8065. CFLAGS="$CFLAGS -fvisibility=hidden"
  8066. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  8067. /* end confdefs.h. */
  8068. extern __attribute__((__visibility__("hidden"))) int hiddenvar;
  8069. extern __attribute__((__visibility__("default"))) int exportedvar;
  8070. extern __attribute__((__visibility__("hidden"))) int hiddenfunc (void);
  8071. extern __attribute__((__visibility__("default"))) int exportedfunc (void);
  8072. int
  8073. main ()
  8074. {
  8075. ;
  8076. return 0;
  8077. }
  8078. _ACEOF
  8079. if ac_fn_cxx_try_compile "$LINENO"; then :
  8080. gl_cv_cc_visibility=yes
  8081. else
  8082. gl_cv_cc_visibility=no
  8083. fi
  8084. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  8085. CFLAGS="$gl_save_CFLAGS"
  8086. fi
  8087. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_cc_visibility" >&5
  8088. $as_echo "$gl_cv_cc_visibility" >&6; }
  8089. if test $gl_cv_cc_visibility = yes; then
  8090. CFLAG_VISIBILITY="-fvisibility=hidden"
  8091. HAVE_VISIBILITY=1
  8092. fi
  8093. fi
  8094. cat >>confdefs.h <<_ACEOF
  8095. #define HAVE_VISIBILITY $HAVE_VISIBILITY
  8096. _ACEOF
  8097. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for stdint.h" >&5
  8098. $as_echo_n "checking for stdint.h... " >&6; }
  8099. if test "${gl_cv_header_stdint_h+set}" = set; then :
  8100. $as_echo_n "(cached) " >&6
  8101. else
  8102. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  8103. /* end confdefs.h. */
  8104. #include <sys/types.h>
  8105. #include <stdint.h>
  8106. int
  8107. main ()
  8108. {
  8109. uintmax_t i = (uintmax_t) -1; return !i;
  8110. ;
  8111. return 0;
  8112. }
  8113. _ACEOF
  8114. if ac_fn_cxx_try_compile "$LINENO"; then :
  8115. gl_cv_header_stdint_h=yes
  8116. else
  8117. gl_cv_header_stdint_h=no
  8118. fi
  8119. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  8120. fi
  8121. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_stdint_h" >&5
  8122. $as_echo "$gl_cv_header_stdint_h" >&6; }
  8123. if test $gl_cv_header_stdint_h = yes; then
  8124. cat >>confdefs.h <<_ACEOF
  8125. #define HAVE_STDINT_H_WITH_UINTMAX 1
  8126. _ACEOF
  8127. fi
  8128. for ac_header in $ac_header_list
  8129. do :
  8130. as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
  8131. ac_fn_cxx_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
  8132. "
  8133. eval as_val=\$$as_ac_Header
  8134. if test "x$as_val" = x""yes; then :
  8135. cat >>confdefs.h <<_ACEOF
  8136. #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
  8137. _ACEOF
  8138. fi
  8139. done
  8140. for ac_func in getpagesize
  8141. do :
  8142. ac_fn_cxx_check_func "$LINENO" "getpagesize" "ac_cv_func_getpagesize"
  8143. if test "x$ac_cv_func_getpagesize" = x""yes; then :
  8144. cat >>confdefs.h <<_ACEOF
  8145. #define HAVE_GETPAGESIZE 1
  8146. _ACEOF
  8147. fi
  8148. done
  8149. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mmap" >&5
  8150. $as_echo_n "checking for working mmap... " >&6; }
  8151. if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then :
  8152. $as_echo_n "(cached) " >&6
  8153. else
  8154. if test "$cross_compiling" = yes; then :
  8155. ac_cv_func_mmap_fixed_mapped=no
  8156. else
  8157. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  8158. /* end confdefs.h. */
  8159. $ac_includes_default
  8160. /* malloc might have been renamed as rpl_malloc. */
  8161. #undef malloc
  8162. /* Thanks to Mike Haertel and Jim Avera for this test.
  8163. Here is a matrix of mmap possibilities:
  8164. mmap private not fixed
  8165. mmap private fixed at somewhere currently unmapped
  8166. mmap private fixed at somewhere already mapped
  8167. mmap shared not fixed
  8168. mmap shared fixed at somewhere currently unmapped
  8169. mmap shared fixed at somewhere already mapped
  8170. For private mappings, we should verify that changes cannot be read()
  8171. back from the file, nor mmap's back from the file at a different
  8172. address. (There have been systems where private was not correctly
  8173. implemented like the infamous i386 svr4.0, and systems where the
  8174. VM page cache was not coherent with the file system buffer cache
  8175. like early versions of FreeBSD and possibly contemporary NetBSD.)
  8176. For shared mappings, we should conversely verify that changes get
  8177. propagated back to all the places they're supposed to be.
  8178. Grep wants private fixed already mapped.
  8179. The main things grep needs to know about mmap are:
  8180. * does it exist and is it safe to write into the mmap'd area
  8181. * how to use it (BSD variants) */
  8182. #include <fcntl.h>
  8183. #include <sys/mman.h>
  8184. #if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
  8185. char *malloc ();
  8186. #endif
  8187. /* This mess was copied from the GNU getpagesize.h. */
  8188. #ifndef HAVE_GETPAGESIZE
  8189. # ifdef _SC_PAGESIZE
  8190. # define getpagesize() sysconf(_SC_PAGESIZE)
  8191. # else /* no _SC_PAGESIZE */
  8192. # ifdef HAVE_SYS_PARAM_H
  8193. # include <sys/param.h>
  8194. # ifdef EXEC_PAGESIZE
  8195. # define getpagesize() EXEC_PAGESIZE
  8196. # else /* no EXEC_PAGESIZE */
  8197. # ifdef NBPG
  8198. # define getpagesize() NBPG * CLSIZE
  8199. # ifndef CLSIZE
  8200. # define CLSIZE 1
  8201. # endif /* no CLSIZE */
  8202. # else /* no NBPG */
  8203. # ifdef NBPC
  8204. # define getpagesize() NBPC
  8205. # else /* no NBPC */
  8206. # ifdef PAGESIZE
  8207. # define getpagesize() PAGESIZE
  8208. # endif /* PAGESIZE */
  8209. # endif /* no NBPC */
  8210. # endif /* no NBPG */
  8211. # endif /* no EXEC_PAGESIZE */
  8212. # else /* no HAVE_SYS_PARAM_H */
  8213. # define getpagesize() 8192 /* punt totally */
  8214. # endif /* no HAVE_SYS_PARAM_H */
  8215. # endif /* no _SC_PAGESIZE */
  8216. #endif /* no HAVE_GETPAGESIZE */
  8217. int
  8218. main ()
  8219. {
  8220. char *data, *data2, *data3;
  8221. const char *cdata2;
  8222. int i, pagesize;
  8223. int fd, fd2;
  8224. pagesize = getpagesize ();
  8225. /* First, make a file with some known garbage in it. */
  8226. data = (char *) malloc (pagesize);
  8227. if (!data)
  8228. return 1;
  8229. for (i = 0; i < pagesize; ++i)
  8230. *(data + i) = rand ();
  8231. umask (0);
  8232. fd = creat ("conftest.mmap", 0600);
  8233. if (fd < 0)
  8234. return 2;
  8235. if (write (fd, data, pagesize) != pagesize)
  8236. return 3;
  8237. close (fd);
  8238. /* Next, check that the tail of a page is zero-filled. File must have
  8239. non-zero length, otherwise we risk SIGBUS for entire page. */
  8240. fd2 = open ("conftest.txt", O_RDWR | O_CREAT | O_TRUNC, 0600);
  8241. if (fd2 < 0)
  8242. return 4;
  8243. cdata2 = "";
  8244. if (write (fd2, cdata2, 1) != 1)
  8245. return 5;
  8246. data2 = (char *) mmap (0, pagesize, PROT_READ | PROT_WRITE, MAP_SHARED, fd2, 0L);
  8247. if (data2 == MAP_FAILED)
  8248. return 6;
  8249. for (i = 0; i < pagesize; ++i)
  8250. if (*(data2 + i))
  8251. return 7;
  8252. close (fd2);
  8253. if (munmap (data2, pagesize))
  8254. return 8;
  8255. /* Next, try to mmap the file at a fixed address which already has
  8256. something else allocated at it. If we can, also make sure that
  8257. we see the same garbage. */
  8258. fd = open ("conftest.mmap", O_RDWR);
  8259. if (fd < 0)
  8260. return 9;
  8261. if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
  8262. MAP_PRIVATE | MAP_FIXED, fd, 0L))
  8263. return 10;
  8264. for (i = 0; i < pagesize; ++i)
  8265. if (*(data + i) != *(data2 + i))
  8266. return 11;
  8267. /* Finally, make sure that changes to the mapped area do not
  8268. percolate back to the file as seen by read(). (This is a bug on
  8269. some variants of i386 svr4.0.) */
  8270. for (i = 0; i < pagesize; ++i)
  8271. *(data2 + i) = *(data2 + i) + 1;
  8272. data3 = (char *) malloc (pagesize);
  8273. if (!data3)
  8274. return 12;
  8275. if (read (fd, data3, pagesize) != pagesize)
  8276. return 13;
  8277. for (i = 0; i < pagesize; ++i)
  8278. if (*(data + i) != *(data3 + i))
  8279. return 14;
  8280. close (fd);
  8281. return 0;
  8282. }
  8283. _ACEOF
  8284. if ac_fn_cxx_try_run "$LINENO"; then :
  8285. ac_cv_func_mmap_fixed_mapped=yes
  8286. else
  8287. ac_cv_func_mmap_fixed_mapped=no
  8288. fi
  8289. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  8290. conftest.$ac_objext conftest.beam conftest.$ac_ext
  8291. fi
  8292. fi
  8293. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_mmap_fixed_mapped" >&5
  8294. $as_echo "$ac_cv_func_mmap_fixed_mapped" >&6; }
  8295. if test $ac_cv_func_mmap_fixed_mapped = yes; then
  8296. $as_echo "#define HAVE_MMAP 1" >>confdefs.h
  8297. fi
  8298. rm -f conftest.mmap conftest.txt
  8299. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether integer division by zero raises SIGFPE" >&5
  8300. $as_echo_n "checking whether integer division by zero raises SIGFPE... " >&6; }
  8301. if test "${gt_cv_int_divbyzero_sigfpe+set}" = set; then :
  8302. $as_echo_n "(cached) " >&6
  8303. else
  8304. gt_cv_int_divbyzero_sigfpe=
  8305. case "$host_os" in
  8306. macos* | darwin[6-9]* | darwin[1-9][0-9]*)
  8307. # On MacOS X 10.2 or newer, just assume the same as when cross-
  8308. # compiling. If we were to perform the real test, 1 Crash Report
  8309. # dialog window would pop up.
  8310. case "$host_cpu" in
  8311. i[34567]86 | x86_64)
  8312. gt_cv_int_divbyzero_sigfpe="guessing yes" ;;
  8313. esac
  8314. ;;
  8315. esac
  8316. if test -z "$gt_cv_int_divbyzero_sigfpe"; then
  8317. if test "$cross_compiling" = yes; then :
  8318. # Guess based on the CPU.
  8319. case "$host_cpu" in
  8320. alpha* | i[34567]86 | x86_64 | m68k | s390*)
  8321. gt_cv_int_divbyzero_sigfpe="guessing yes";;
  8322. *)
  8323. gt_cv_int_divbyzero_sigfpe="guessing no";;
  8324. esac
  8325. else
  8326. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  8327. /* end confdefs.h. */
  8328. #include <stdlib.h>
  8329. #include <signal.h>
  8330. static void
  8331. sigfpe_handler (int sig)
  8332. {
  8333. /* Exit with code 0 if SIGFPE, with code 1 if any other signal. */
  8334. exit (sig != SIGFPE);
  8335. }
  8336. int x = 1;
  8337. int y = 0;
  8338. int z;
  8339. int nan;
  8340. int main ()
  8341. {
  8342. signal (SIGFPE, sigfpe_handler);
  8343. /* IRIX and AIX (when "xlc -qcheck" is used) yield signal SIGTRAP. */
  8344. #if (defined (__sgi) || defined (_AIX)) && defined (SIGTRAP)
  8345. signal (SIGTRAP, sigfpe_handler);
  8346. #endif
  8347. /* Linux/SPARC yields signal SIGILL. */
  8348. #if defined (__sparc__) && defined (__linux__)
  8349. signal (SIGILL, sigfpe_handler);
  8350. #endif
  8351. z = x / y;
  8352. nan = y / y;
  8353. exit (1);
  8354. }
  8355. _ACEOF
  8356. if ac_fn_cxx_try_run "$LINENO"; then :
  8357. gt_cv_int_divbyzero_sigfpe=yes
  8358. else
  8359. gt_cv_int_divbyzero_sigfpe=no
  8360. fi
  8361. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  8362. conftest.$ac_objext conftest.beam conftest.$ac_ext
  8363. fi
  8364. fi
  8365. fi
  8366. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_int_divbyzero_sigfpe" >&5
  8367. $as_echo "$gt_cv_int_divbyzero_sigfpe" >&6; }
  8368. case "$gt_cv_int_divbyzero_sigfpe" in
  8369. *yes) value=1;;
  8370. *) value=0;;
  8371. esac
  8372. cat >>confdefs.h <<_ACEOF
  8373. #define INTDIV0_RAISES_SIGFPE $value
  8374. _ACEOF
  8375. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inttypes.h" >&5
  8376. $as_echo_n "checking for inttypes.h... " >&6; }
  8377. if test "${gl_cv_header_inttypes_h+set}" = set; then :
  8378. $as_echo_n "(cached) " >&6
  8379. else
  8380. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  8381. /* end confdefs.h. */
  8382. #include <sys/types.h>
  8383. #include <inttypes.h>
  8384. int
  8385. main ()
  8386. {
  8387. uintmax_t i = (uintmax_t) -1; return !i;
  8388. ;
  8389. return 0;
  8390. }
  8391. _ACEOF
  8392. if ac_fn_cxx_try_compile "$LINENO"; then :
  8393. gl_cv_header_inttypes_h=yes
  8394. else
  8395. gl_cv_header_inttypes_h=no
  8396. fi
  8397. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  8398. fi
  8399. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_inttypes_h" >&5
  8400. $as_echo "$gl_cv_header_inttypes_h" >&6; }
  8401. if test $gl_cv_header_inttypes_h = yes; then
  8402. cat >>confdefs.h <<_ACEOF
  8403. #define HAVE_INTTYPES_H_WITH_UINTMAX 1
  8404. _ACEOF
  8405. fi
  8406. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned long long int" >&5
  8407. $as_echo_n "checking for unsigned long long int... " >&6; }
  8408. if test "${ac_cv_type_unsigned_long_long_int+set}" = set; then :
  8409. $as_echo_n "(cached) " >&6
  8410. else
  8411. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  8412. /* end confdefs.h. */
  8413. /* Test preprocessor. */
  8414. #if ! (-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
  8415. error in preprocessor;
  8416. #endif
  8417. #if ! (18446744073709551615ULL <= -1ull)
  8418. error in preprocessor;
  8419. #endif
  8420. /* Test literals. */
  8421. long long int ll = 9223372036854775807ll;
  8422. long long int nll = -9223372036854775807LL;
  8423. unsigned long long int ull = 18446744073709551615ULL;
  8424. /* Test constant expressions. */
  8425. typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
  8426. ? 1 : -1)];
  8427. typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1
  8428. ? 1 : -1)];
  8429. int i = 63;
  8430. int
  8431. main ()
  8432. {
  8433. /* Test availability of runtime routines for shift and division. */
  8434. long long int llmax = 9223372036854775807ll;
  8435. unsigned long long int ullmax = 18446744073709551615ull;
  8436. return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i)
  8437. | (llmax / ll) | (llmax % ll)
  8438. | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i)
  8439. | (ullmax / ull) | (ullmax % ull));
  8440. ;
  8441. return 0;
  8442. }
  8443. _ACEOF
  8444. if ac_fn_cxx_try_link "$LINENO"; then :
  8445. ac_cv_type_unsigned_long_long_int=yes
  8446. else
  8447. ac_cv_type_unsigned_long_long_int=no
  8448. fi
  8449. rm -f core conftest.err conftest.$ac_objext \
  8450. conftest$ac_exeext conftest.$ac_ext
  8451. fi
  8452. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_unsigned_long_long_int" >&5
  8453. $as_echo "$ac_cv_type_unsigned_long_long_int" >&6; }
  8454. if test $ac_cv_type_unsigned_long_long_int = yes; then
  8455. $as_echo "#define HAVE_UNSIGNED_LONG_LONG_INT 1" >>confdefs.h
  8456. fi
  8457. if test $gl_cv_header_inttypes_h = no && test $gl_cv_header_stdint_h = no; then
  8458. test $ac_cv_type_unsigned_long_long_int = yes \
  8459. && ac_type='unsigned long long' \
  8460. || ac_type='unsigned long'
  8461. cat >>confdefs.h <<_ACEOF
  8462. #define uintmax_t $ac_type
  8463. _ACEOF
  8464. else
  8465. $as_echo "#define HAVE_UINTMAX_T 1" >>confdefs.h
  8466. fi
  8467. for ac_header in inttypes.h
  8468. do :
  8469. ac_fn_cxx_check_header_mongrel "$LINENO" "inttypes.h" "ac_cv_header_inttypes_h" "$ac_includes_default"
  8470. if test "x$ac_cv_header_inttypes_h" = x""yes; then :
  8471. cat >>confdefs.h <<_ACEOF
  8472. #define HAVE_INTTYPES_H 1
  8473. _ACEOF
  8474. fi
  8475. done
  8476. if test $ac_cv_header_inttypes_h = yes; then
  8477. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the inttypes.h PRIxNN macros are broken" >&5
  8478. $as_echo_n "checking whether the inttypes.h PRIxNN macros are broken... " >&6; }
  8479. if test "${gt_cv_inttypes_pri_broken+set}" = set; then :
  8480. $as_echo_n "(cached) " >&6
  8481. else
  8482. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  8483. /* end confdefs.h. */
  8484. #include <inttypes.h>
  8485. #ifdef PRId32
  8486. char *p = PRId32;
  8487. #endif
  8488. int
  8489. main ()
  8490. {
  8491. ;
  8492. return 0;
  8493. }
  8494. _ACEOF
  8495. if ac_fn_cxx_try_compile "$LINENO"; then :
  8496. gt_cv_inttypes_pri_broken=no
  8497. else
  8498. gt_cv_inttypes_pri_broken=yes
  8499. fi
  8500. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  8501. fi
  8502. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_inttypes_pri_broken" >&5
  8503. $as_echo "$gt_cv_inttypes_pri_broken" >&6; }
  8504. fi
  8505. if test "$gt_cv_inttypes_pri_broken" = yes; then
  8506. cat >>confdefs.h <<_ACEOF
  8507. #define PRI_MACROS_BROKEN 1
  8508. _ACEOF
  8509. PRI_MACROS_BROKEN=1
  8510. else
  8511. PRI_MACROS_BROKEN=0
  8512. fi
  8513. # Check whether --enable-threads was given.
  8514. if test "${enable_threads+set}" = set; then :
  8515. enableval=$enable_threads; gl_use_threads=$enableval
  8516. else
  8517. case "$host_os" in
  8518. osf*) gl_use_threads=no ;;
  8519. *) gl_use_threads=yes ;;
  8520. esac
  8521. fi
  8522. if test "$gl_use_threads" = yes || test "$gl_use_threads" = posix; then
  8523. # For using <pthread.h>:
  8524. case "$host_os" in
  8525. osf*)
  8526. # On OSF/1, the compiler needs the flag -D_REENTRANT so that it
  8527. # groks <pthread.h>. cc also understands the flag -pthread, but
  8528. # we don't use it because 1. gcc-2.95 doesn't understand -pthread,
  8529. # 2. putting a flag into CPPFLAGS that has an effect on the linker
  8530. # causes the AC_TRY_LINK test below to succeed unexpectedly,
  8531. # leading to wrong values of LIBTHREAD and LTLIBTHREAD.
  8532. CPPFLAGS="$CPPFLAGS -D_REENTRANT"
  8533. ;;
  8534. esac
  8535. # Some systems optimize for single-threaded programs by default, and
  8536. # need special flags to disable these optimizations. For example, the
  8537. # definition of 'errno' in <errno.h>.
  8538. case "$host_os" in
  8539. aix* | freebsd*) CPPFLAGS="$CPPFLAGS -D_THREAD_SAFE" ;;
  8540. solaris*) CPPFLAGS="$CPPFLAGS -D_REENTRANT" ;;
  8541. esac
  8542. fi
  8543. if test "X$prefix" = "XNONE"; then
  8544. acl_final_prefix="$ac_default_prefix"
  8545. else
  8546. acl_final_prefix="$prefix"
  8547. fi
  8548. if test "X$exec_prefix" = "XNONE"; then
  8549. acl_final_exec_prefix='${prefix}'
  8550. else
  8551. acl_final_exec_prefix="$exec_prefix"
  8552. fi
  8553. acl_save_prefix="$prefix"
  8554. prefix="$acl_final_prefix"
  8555. eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
  8556. prefix="$acl_save_prefix"
  8557. # Check whether --with-gnu-ld was given.
  8558. if test "${with_gnu_ld+set}" = set; then :
  8559. withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
  8560. else
  8561. with_gnu_ld=no
  8562. fi
  8563. # Prepare PATH_SEPARATOR.
  8564. # The user is always right.
  8565. if test "${PATH_SEPARATOR+set}" != set; then
  8566. echo "#! /bin/sh" >conf$$.sh
  8567. echo "exit 0" >>conf$$.sh
  8568. chmod +x conf$$.sh
  8569. if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
  8570. PATH_SEPARATOR=';'
  8571. else
  8572. PATH_SEPARATOR=:
  8573. fi
  8574. rm -f conf$$.sh
  8575. fi
  8576. ac_prog=ld
  8577. if test "$GCC" = yes; then
  8578. # Check if gcc -print-prog-name=ld gives a path.
  8579. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by GCC" >&5
  8580. $as_echo_n "checking for ld used by GCC... " >&6; }
  8581. case $host in
  8582. *-*-mingw*)
  8583. # gcc leaves a trailing carriage return which upsets mingw
  8584. ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
  8585. *)
  8586. ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
  8587. esac
  8588. case $ac_prog in
  8589. # Accept absolute paths.
  8590. [\\/]* | [A-Za-z]:[\\/]*)
  8591. re_direlt='/[^/][^/]*/\.\./'
  8592. # Canonicalize the path of ld
  8593. ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
  8594. while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
  8595. ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
  8596. done
  8597. test -z "$LD" && LD="$ac_prog"
  8598. ;;
  8599. "")
  8600. # If it fails, then pretend we aren't using GCC.
  8601. ac_prog=ld
  8602. ;;
  8603. *)
  8604. # If it is relative, then search for the first ld in PATH.
  8605. with_gnu_ld=unknown
  8606. ;;
  8607. esac
  8608. elif test "$with_gnu_ld" = yes; then
  8609. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
  8610. $as_echo_n "checking for GNU ld... " >&6; }
  8611. else
  8612. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
  8613. $as_echo_n "checking for non-GNU ld... " >&6; }
  8614. fi
  8615. if test "${acl_cv_path_LD+set}" = set; then :
  8616. $as_echo_n "(cached) " >&6
  8617. else
  8618. if test -z "$LD"; then
  8619. IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
  8620. for ac_dir in $PATH; do
  8621. test -z "$ac_dir" && ac_dir=.
  8622. if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
  8623. acl_cv_path_LD="$ac_dir/$ac_prog"
  8624. # Check to see if the program is GNU ld. I'd rather use --version,
  8625. # but apparently some GNU ld's only accept -v.
  8626. # Break only if it was the GNU/non-GNU ld that we prefer.
  8627. case `"$acl_cv_path_LD" -v 2>&1 < /dev/null` in
  8628. *GNU* | *'with BFD'*)
  8629. test "$with_gnu_ld" != no && break ;;
  8630. *)
  8631. test "$with_gnu_ld" != yes && break ;;
  8632. esac
  8633. fi
  8634. done
  8635. IFS="$ac_save_ifs"
  8636. else
  8637. acl_cv_path_LD="$LD" # Let the user override the test with a path.
  8638. fi
  8639. fi
  8640. LD="$acl_cv_path_LD"
  8641. if test -n "$LD"; then
  8642. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
  8643. $as_echo "$LD" >&6; }
  8644. else
  8645. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  8646. $as_echo "no" >&6; }
  8647. fi
  8648. test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
  8649. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
  8650. $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
  8651. if test "${acl_cv_prog_gnu_ld+set}" = set; then :
  8652. $as_echo_n "(cached) " >&6
  8653. else
  8654. # I'd rather use --version here, but apparently some GNU ld's only accept -v.
  8655. case `$LD -v 2>&1 </dev/null` in
  8656. *GNU* | *'with BFD'*)
  8657. acl_cv_prog_gnu_ld=yes ;;
  8658. *)
  8659. acl_cv_prog_gnu_ld=no ;;
  8660. esac
  8661. fi
  8662. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_prog_gnu_ld" >&5
  8663. $as_echo "$acl_cv_prog_gnu_ld" >&6; }
  8664. with_gnu_ld=$acl_cv_prog_gnu_ld
  8665. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shared library run path origin" >&5
  8666. $as_echo_n "checking for shared library run path origin... " >&6; }
  8667. if test "${acl_cv_rpath+set}" = set; then :
  8668. $as_echo_n "(cached) " >&6
  8669. else
  8670. CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
  8671. ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
  8672. . ./conftest.sh
  8673. rm -f ./conftest.sh
  8674. acl_cv_rpath=done
  8675. fi
  8676. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_rpath" >&5
  8677. $as_echo "$acl_cv_rpath" >&6; }
  8678. wl="$acl_cv_wl"
  8679. acl_libext="$acl_cv_libext"
  8680. acl_shlibext="$acl_cv_shlibext"
  8681. acl_libname_spec="$acl_cv_libname_spec"
  8682. acl_library_names_spec="$acl_cv_library_names_spec"
  8683. acl_hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
  8684. acl_hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
  8685. acl_hardcode_direct="$acl_cv_hardcode_direct"
  8686. acl_hardcode_minus_L="$acl_cv_hardcode_minus_L"
  8687. # Check whether --enable-rpath was given.
  8688. if test "${enable_rpath+set}" = set; then :
  8689. enableval=$enable_rpath; :
  8690. else
  8691. enable_rpath=yes
  8692. fi
  8693. acl_libdirstem=lib
  8694. searchpath=`(LC_ALL=C $CC -print-search-dirs) 2>/dev/null | sed -n -e 's,^libraries: ,,p' | sed -e 's,^=,,'`
  8695. if test -n "$searchpath"; then
  8696. acl_save_IFS="${IFS= }"; IFS=":"
  8697. for searchdir in $searchpath; do
  8698. if test -d "$searchdir"; then
  8699. case "$searchdir" in
  8700. */lib64/ | */lib64 ) acl_libdirstem=lib64 ;;
  8701. *) searchdir=`cd "$searchdir" && pwd`
  8702. case "$searchdir" in
  8703. */lib64 ) acl_libdirstem=lib64 ;;
  8704. esac ;;
  8705. esac
  8706. fi
  8707. done
  8708. IFS="$acl_save_IFS"
  8709. fi
  8710. gl_threads_api=none
  8711. LIBTHREAD=
  8712. LTLIBTHREAD=
  8713. LIBMULTITHREAD=
  8714. LTLIBMULTITHREAD=
  8715. if test "$gl_use_threads" != no; then
  8716. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether imported symbols can be declared weak" >&5
  8717. $as_echo_n "checking whether imported symbols can be declared weak... " >&6; }
  8718. gl_have_weak=no
  8719. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  8720. /* end confdefs.h. */
  8721. extern void xyzzy ();
  8722. #pragma weak xyzzy
  8723. int
  8724. main ()
  8725. {
  8726. xyzzy();
  8727. ;
  8728. return 0;
  8729. }
  8730. _ACEOF
  8731. if ac_fn_cxx_try_link "$LINENO"; then :
  8732. gl_have_weak=yes
  8733. fi
  8734. rm -f core conftest.err conftest.$ac_objext \
  8735. conftest$ac_exeext conftest.$ac_ext
  8736. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_have_weak" >&5
  8737. $as_echo "$gl_have_weak" >&6; }
  8738. if test "$gl_use_threads" = yes || test "$gl_use_threads" = posix; then
  8739. # On OSF/1, the compiler needs the flag -pthread or -D_REENTRANT so that
  8740. # it groks <pthread.h>. It's added above, in gl_LOCK_EARLY_BODY.
  8741. ac_fn_cxx_check_header_mongrel "$LINENO" "pthread.h" "ac_cv_header_pthread_h" "$ac_includes_default"
  8742. if test "x$ac_cv_header_pthread_h" = x""yes; then :
  8743. gl_have_pthread_h=yes
  8744. else
  8745. gl_have_pthread_h=no
  8746. fi
  8747. if test "$gl_have_pthread_h" = yes; then
  8748. # Other possible tests:
  8749. # -lpthreads (FSU threads, PCthreads)
  8750. # -lgthreads
  8751. gl_have_pthread=
  8752. # Test whether both pthread_mutex_lock and pthread_mutexattr_init exist
  8753. # in libc. IRIX 6.5 has the first one in both libc and libpthread, but
  8754. # the second one only in libpthread, and lock.c needs it.
  8755. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  8756. /* end confdefs.h. */
  8757. #include <pthread.h>
  8758. int
  8759. main ()
  8760. {
  8761. pthread_mutex_lock((pthread_mutex_t*)0);
  8762. pthread_mutexattr_init((pthread_mutexattr_t*)0);
  8763. ;
  8764. return 0;
  8765. }
  8766. _ACEOF
  8767. if ac_fn_cxx_try_link "$LINENO"; then :
  8768. gl_have_pthread=yes
  8769. fi
  8770. rm -f core conftest.err conftest.$ac_objext \
  8771. conftest$ac_exeext conftest.$ac_ext
  8772. # Test for libpthread by looking for pthread_kill. (Not pthread_self,
  8773. # since it is defined as a macro on OSF/1.)
  8774. if test -n "$gl_have_pthread"; then
  8775. # The program links fine without libpthread. But it may actually
  8776. # need to link with libpthread in order to create multiple threads.
  8777. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_kill in -lpthread" >&5
  8778. $as_echo_n "checking for pthread_kill in -lpthread... " >&6; }
  8779. if test "${ac_cv_lib_pthread_pthread_kill+set}" = set; then :
  8780. $as_echo_n "(cached) " >&6
  8781. else
  8782. ac_check_lib_save_LIBS=$LIBS
  8783. LIBS="-lpthread $LIBS"
  8784. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  8785. /* end confdefs.h. */
  8786. /* Override any GCC internal prototype to avoid an error.
  8787. Use char because int might match the return type of a GCC
  8788. builtin and then its argument prototype would still apply. */
  8789. #ifdef __cplusplus
  8790. extern "C"
  8791. #endif
  8792. char pthread_kill ();
  8793. int
  8794. main ()
  8795. {
  8796. return pthread_kill ();
  8797. ;
  8798. return 0;
  8799. }
  8800. _ACEOF
  8801. if ac_fn_cxx_try_link "$LINENO"; then :
  8802. ac_cv_lib_pthread_pthread_kill=yes
  8803. else
  8804. ac_cv_lib_pthread_pthread_kill=no
  8805. fi
  8806. rm -f core conftest.err conftest.$ac_objext \
  8807. conftest$ac_exeext conftest.$ac_ext
  8808. LIBS=$ac_check_lib_save_LIBS
  8809. fi
  8810. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread_pthread_kill" >&5
  8811. $as_echo "$ac_cv_lib_pthread_pthread_kill" >&6; }
  8812. if test "x$ac_cv_lib_pthread_pthread_kill" = x""yes; then :
  8813. LIBMULTITHREAD=-lpthread LTLIBMULTITHREAD=-lpthread
  8814. # On Solaris and HP-UX, most pthread functions exist also in libc.
  8815. # Therefore pthread_in_use() needs to actually try to create a
  8816. # thread: pthread_create from libc will fail, whereas
  8817. # pthread_create will actually create a thread.
  8818. case "$host_os" in
  8819. solaris* | hpux*)
  8820. $as_echo "#define PTHREAD_IN_USE_DETECTION_HARD 1" >>confdefs.h
  8821. esac
  8822. fi
  8823. else
  8824. # Some library is needed. Try libpthread and libc_r.
  8825. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_kill in -lpthread" >&5
  8826. $as_echo_n "checking for pthread_kill in -lpthread... " >&6; }
  8827. if test "${ac_cv_lib_pthread_pthread_kill+set}" = set; then :
  8828. $as_echo_n "(cached) " >&6
  8829. else
  8830. ac_check_lib_save_LIBS=$LIBS
  8831. LIBS="-lpthread $LIBS"
  8832. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  8833. /* end confdefs.h. */
  8834. /* Override any GCC internal prototype to avoid an error.
  8835. Use char because int might match the return type of a GCC
  8836. builtin and then its argument prototype would still apply. */
  8837. #ifdef __cplusplus
  8838. extern "C"
  8839. #endif
  8840. char pthread_kill ();
  8841. int
  8842. main ()
  8843. {
  8844. return pthread_kill ();
  8845. ;
  8846. return 0;
  8847. }
  8848. _ACEOF
  8849. if ac_fn_cxx_try_link "$LINENO"; then :
  8850. ac_cv_lib_pthread_pthread_kill=yes
  8851. else
  8852. ac_cv_lib_pthread_pthread_kill=no
  8853. fi
  8854. rm -f core conftest.err conftest.$ac_objext \
  8855. conftest$ac_exeext conftest.$ac_ext
  8856. LIBS=$ac_check_lib_save_LIBS
  8857. fi
  8858. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread_pthread_kill" >&5
  8859. $as_echo "$ac_cv_lib_pthread_pthread_kill" >&6; }
  8860. if test "x$ac_cv_lib_pthread_pthread_kill" = x""yes; then :
  8861. gl_have_pthread=yes
  8862. LIBTHREAD=-lpthread LTLIBTHREAD=-lpthread
  8863. LIBMULTITHREAD=-lpthread LTLIBMULTITHREAD=-lpthread
  8864. fi
  8865. if test -z "$gl_have_pthread"; then
  8866. # For FreeBSD 4.
  8867. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_kill in -lc_r" >&5
  8868. $as_echo_n "checking for pthread_kill in -lc_r... " >&6; }
  8869. if test "${ac_cv_lib_c_r_pthread_kill+set}" = set; then :
  8870. $as_echo_n "(cached) " >&6
  8871. else
  8872. ac_check_lib_save_LIBS=$LIBS
  8873. LIBS="-lc_r $LIBS"
  8874. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  8875. /* end confdefs.h. */
  8876. /* Override any GCC internal prototype to avoid an error.
  8877. Use char because int might match the return type of a GCC
  8878. builtin and then its argument prototype would still apply. */
  8879. #ifdef __cplusplus
  8880. extern "C"
  8881. #endif
  8882. char pthread_kill ();
  8883. int
  8884. main ()
  8885. {
  8886. return pthread_kill ();
  8887. ;
  8888. return 0;
  8889. }
  8890. _ACEOF
  8891. if ac_fn_cxx_try_link "$LINENO"; then :
  8892. ac_cv_lib_c_r_pthread_kill=yes
  8893. else
  8894. ac_cv_lib_c_r_pthread_kill=no
  8895. fi
  8896. rm -f core conftest.err conftest.$ac_objext \
  8897. conftest$ac_exeext conftest.$ac_ext
  8898. LIBS=$ac_check_lib_save_LIBS
  8899. fi
  8900. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_c_r_pthread_kill" >&5
  8901. $as_echo "$ac_cv_lib_c_r_pthread_kill" >&6; }
  8902. if test "x$ac_cv_lib_c_r_pthread_kill" = x""yes; then :
  8903. gl_have_pthread=yes
  8904. LIBTHREAD=-lc_r LTLIBTHREAD=-lc_r
  8905. LIBMULTITHREAD=-lc_r LTLIBMULTITHREAD=-lc_r
  8906. fi
  8907. fi
  8908. fi
  8909. if test -n "$gl_have_pthread"; then
  8910. gl_threads_api=posix
  8911. $as_echo "#define USE_POSIX_THREADS 1" >>confdefs.h
  8912. if test -n "$LIBMULTITHREAD" || test -n "$LTLIBMULTITHREAD"; then
  8913. if test $gl_have_weak = yes; then
  8914. $as_echo "#define USE_POSIX_THREADS_WEAK 1" >>confdefs.h
  8915. LIBTHREAD=
  8916. LTLIBTHREAD=
  8917. fi
  8918. fi
  8919. # OSF/1 4.0 and MacOS X 10.1 lack the pthread_rwlock_t type and the
  8920. # pthread_rwlock_* functions.
  8921. ac_fn_cxx_check_type "$LINENO" "pthread_rwlock_t" "ac_cv_type_pthread_rwlock_t" "#include <pthread.h>
  8922. "
  8923. if test "x$ac_cv_type_pthread_rwlock_t" = x""yes; then :
  8924. $as_echo "#define HAVE_PTHREAD_RWLOCK 1" >>confdefs.h
  8925. fi
  8926. # glibc defines PTHREAD_MUTEX_RECURSIVE as enum, not as a macro.
  8927. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  8928. /* end confdefs.h. */
  8929. #include <pthread.h>
  8930. int
  8931. main ()
  8932. {
  8933. #if __FreeBSD__ == 4
  8934. error "No, in FreeBSD 4.0 recursive mutexes actually don't work."
  8935. #else
  8936. int x = (int)PTHREAD_MUTEX_RECURSIVE;
  8937. return !x;
  8938. #endif
  8939. ;
  8940. return 0;
  8941. }
  8942. _ACEOF
  8943. if ac_fn_cxx_try_compile "$LINENO"; then :
  8944. $as_echo "#define HAVE_PTHREAD_MUTEX_RECURSIVE 1" >>confdefs.h
  8945. fi
  8946. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  8947. fi
  8948. fi
  8949. fi
  8950. if test -z "$gl_have_pthread"; then
  8951. if test "$gl_use_threads" = yes || test "$gl_use_threads" = solaris; then
  8952. gl_have_solaristhread=
  8953. gl_save_LIBS="$LIBS"
  8954. LIBS="$LIBS -lthread"
  8955. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  8956. /* end confdefs.h. */
  8957. #include <thread.h>
  8958. #include <synch.h>
  8959. int
  8960. main ()
  8961. {
  8962. thr_self();
  8963. ;
  8964. return 0;
  8965. }
  8966. _ACEOF
  8967. if ac_fn_cxx_try_link "$LINENO"; then :
  8968. gl_have_solaristhread=yes
  8969. fi
  8970. rm -f core conftest.err conftest.$ac_objext \
  8971. conftest$ac_exeext conftest.$ac_ext
  8972. LIBS="$gl_save_LIBS"
  8973. if test -n "$gl_have_solaristhread"; then
  8974. gl_threads_api=solaris
  8975. LIBTHREAD=-lthread
  8976. LTLIBTHREAD=-lthread
  8977. LIBMULTITHREAD="$LIBTHREAD"
  8978. LTLIBMULTITHREAD="$LTLIBTHREAD"
  8979. $as_echo "#define USE_SOLARIS_THREADS 1" >>confdefs.h
  8980. if test $gl_have_weak = yes; then
  8981. $as_echo "#define USE_SOLARIS_THREADS_WEAK 1" >>confdefs.h
  8982. LIBTHREAD=
  8983. LTLIBTHREAD=
  8984. fi
  8985. fi
  8986. fi
  8987. fi
  8988. if test "$gl_use_threads" = pth; then
  8989. gl_save_CPPFLAGS="$CPPFLAGS"
  8990. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libpth" >&5
  8991. $as_echo_n "checking how to link with libpth... " >&6; }
  8992. if test "${ac_cv_libpth_libs+set}" = set; then :
  8993. $as_echo_n "(cached) " >&6
  8994. else
  8995. use_additional=yes
  8996. acl_save_prefix="$prefix"
  8997. prefix="$acl_final_prefix"
  8998. acl_save_exec_prefix="$exec_prefix"
  8999. exec_prefix="$acl_final_exec_prefix"
  9000. eval additional_includedir=\"$includedir\"
  9001. eval additional_libdir=\"$libdir\"
  9002. exec_prefix="$acl_save_exec_prefix"
  9003. prefix="$acl_save_prefix"
  9004. # Check whether --with-libpth-prefix was given.
  9005. if test "${with_libpth_prefix+set}" = set; then :
  9006. withval=$with_libpth_prefix;
  9007. if test "X$withval" = "Xno"; then
  9008. use_additional=no
  9009. else
  9010. if test "X$withval" = "X"; then
  9011. acl_save_prefix="$prefix"
  9012. prefix="$acl_final_prefix"
  9013. acl_save_exec_prefix="$exec_prefix"
  9014. exec_prefix="$acl_final_exec_prefix"
  9015. eval additional_includedir=\"$includedir\"
  9016. eval additional_libdir=\"$libdir\"
  9017. exec_prefix="$acl_save_exec_prefix"
  9018. prefix="$acl_save_prefix"
  9019. else
  9020. additional_includedir="$withval/include"
  9021. additional_libdir="$withval/$acl_libdirstem"
  9022. fi
  9023. fi
  9024. fi
  9025. LIBPTH=
  9026. LTLIBPTH=
  9027. INCPTH=
  9028. LIBPTH_PREFIX=
  9029. rpathdirs=
  9030. ltrpathdirs=
  9031. names_already_handled=
  9032. names_next_round='pth '
  9033. while test -n "$names_next_round"; do
  9034. names_this_round="$names_next_round"
  9035. names_next_round=
  9036. for name in $names_this_round; do
  9037. already_handled=
  9038. for n in $names_already_handled; do
  9039. if test "$n" = "$name"; then
  9040. already_handled=yes
  9041. break
  9042. fi
  9043. done
  9044. if test -z "$already_handled"; then
  9045. names_already_handled="$names_already_handled $name"
  9046. uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
  9047. eval value=\"\$HAVE_LIB$uppername\"
  9048. if test -n "$value"; then
  9049. if test "$value" = yes; then
  9050. eval value=\"\$LIB$uppername\"
  9051. test -z "$value" || LIBPTH="${LIBPTH}${LIBPTH:+ }$value"
  9052. eval value=\"\$LTLIB$uppername\"
  9053. test -z "$value" || LTLIBPTH="${LTLIBPTH}${LTLIBPTH:+ }$value"
  9054. else
  9055. :
  9056. fi
  9057. else
  9058. found_dir=
  9059. found_la=
  9060. found_so=
  9061. found_a=
  9062. eval libname=\"$acl_libname_spec\" # typically: libname=lib$name
  9063. if test -n "$acl_shlibext"; then
  9064. shrext=".$acl_shlibext" # typically: shrext=.so
  9065. else
  9066. shrext=
  9067. fi
  9068. if test $use_additional = yes; then
  9069. dir="$additional_libdir"
  9070. if test -n "$acl_shlibext"; then
  9071. if test -f "$dir/$libname$shrext"; then
  9072. found_dir="$dir"
  9073. found_so="$dir/$libname$shrext"
  9074. else
  9075. if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
  9076. ver=`(cd "$dir" && \
  9077. for f in "$libname$shrext".*; do echo "$f"; done \
  9078. | sed -e "s,^$libname$shrext\\\\.,," \
  9079. | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
  9080. | sed 1q ) 2>/dev/null`
  9081. if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
  9082. found_dir="$dir"
  9083. found_so="$dir/$libname$shrext.$ver"
  9084. fi
  9085. else
  9086. eval library_names=\"$acl_library_names_spec\"
  9087. for f in $library_names; do
  9088. if test -f "$dir/$f"; then
  9089. found_dir="$dir"
  9090. found_so="$dir/$f"
  9091. break
  9092. fi
  9093. done
  9094. fi
  9095. fi
  9096. fi
  9097. if test "X$found_dir" = "X"; then
  9098. if test -f "$dir/$libname.$acl_libext"; then
  9099. found_dir="$dir"
  9100. found_a="$dir/$libname.$acl_libext"
  9101. fi
  9102. fi
  9103. if test "X$found_dir" != "X"; then
  9104. if test -f "$dir/$libname.la"; then
  9105. found_la="$dir/$libname.la"
  9106. fi
  9107. fi
  9108. fi
  9109. if test "X$found_dir" = "X"; then
  9110. for x in $LDFLAGS $LTLIBPTH; do
  9111. acl_save_prefix="$prefix"
  9112. prefix="$acl_final_prefix"
  9113. acl_save_exec_prefix="$exec_prefix"
  9114. exec_prefix="$acl_final_exec_prefix"
  9115. eval x=\"$x\"
  9116. exec_prefix="$acl_save_exec_prefix"
  9117. prefix="$acl_save_prefix"
  9118. case "$x" in
  9119. -L*)
  9120. dir=`echo "X$x" | sed -e 's/^X-L//'`
  9121. if test -n "$acl_shlibext"; then
  9122. if test -f "$dir/$libname$shrext"; then
  9123. found_dir="$dir"
  9124. found_so="$dir/$libname$shrext"
  9125. else
  9126. if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
  9127. ver=`(cd "$dir" && \
  9128. for f in "$libname$shrext".*; do echo "$f"; done \
  9129. | sed -e "s,^$libname$shrext\\\\.,," \
  9130. | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
  9131. | sed 1q ) 2>/dev/null`
  9132. if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
  9133. found_dir="$dir"
  9134. found_so="$dir/$libname$shrext.$ver"
  9135. fi
  9136. else
  9137. eval library_names=\"$acl_library_names_spec\"
  9138. for f in $library_names; do
  9139. if test -f "$dir/$f"; then
  9140. found_dir="$dir"
  9141. found_so="$dir/$f"
  9142. break
  9143. fi
  9144. done
  9145. fi
  9146. fi
  9147. fi
  9148. if test "X$found_dir" = "X"; then
  9149. if test -f "$dir/$libname.$acl_libext"; then
  9150. found_dir="$dir"
  9151. found_a="$dir/$libname.$acl_libext"
  9152. fi
  9153. fi
  9154. if test "X$found_dir" != "X"; then
  9155. if test -f "$dir/$libname.la"; then
  9156. found_la="$dir/$libname.la"
  9157. fi
  9158. fi
  9159. ;;
  9160. esac
  9161. if test "X$found_dir" != "X"; then
  9162. break
  9163. fi
  9164. done
  9165. fi
  9166. if test "X$found_dir" != "X"; then
  9167. LTLIBPTH="${LTLIBPTH}${LTLIBPTH:+ }-L$found_dir -l$name"
  9168. if test "X$found_so" != "X"; then
  9169. if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/$acl_libdirstem"; then
  9170. LIBPTH="${LIBPTH}${LIBPTH:+ }$found_so"
  9171. else
  9172. haveit=
  9173. for x in $ltrpathdirs; do
  9174. if test "X$x" = "X$found_dir"; then
  9175. haveit=yes
  9176. break
  9177. fi
  9178. done
  9179. if test -z "$haveit"; then
  9180. ltrpathdirs="$ltrpathdirs $found_dir"
  9181. fi
  9182. if test "$acl_hardcode_direct" = yes; then
  9183. LIBPTH="${LIBPTH}${LIBPTH:+ }$found_so"
  9184. else
  9185. if test -n "$acl_hardcode_libdir_flag_spec" && test "$acl_hardcode_minus_L" = no; then
  9186. LIBPTH="${LIBPTH}${LIBPTH:+ }$found_so"
  9187. haveit=
  9188. for x in $rpathdirs; do
  9189. if test "X$x" = "X$found_dir"; then
  9190. haveit=yes
  9191. break
  9192. fi
  9193. done
  9194. if test -z "$haveit"; then
  9195. rpathdirs="$rpathdirs $found_dir"
  9196. fi
  9197. else
  9198. haveit=
  9199. for x in $LDFLAGS $LIBPTH; do
  9200. acl_save_prefix="$prefix"
  9201. prefix="$acl_final_prefix"
  9202. acl_save_exec_prefix="$exec_prefix"
  9203. exec_prefix="$acl_final_exec_prefix"
  9204. eval x=\"$x\"
  9205. exec_prefix="$acl_save_exec_prefix"
  9206. prefix="$acl_save_prefix"
  9207. if test "X$x" = "X-L$found_dir"; then
  9208. haveit=yes
  9209. break
  9210. fi
  9211. done
  9212. if test -z "$haveit"; then
  9213. LIBPTH="${LIBPTH}${LIBPTH:+ }-L$found_dir"
  9214. fi
  9215. if test "$acl_hardcode_minus_L" != no; then
  9216. LIBPTH="${LIBPTH}${LIBPTH:+ }$found_so"
  9217. else
  9218. LIBPTH="${LIBPTH}${LIBPTH:+ }-l$name"
  9219. fi
  9220. fi
  9221. fi
  9222. fi
  9223. else
  9224. if test "X$found_a" != "X"; then
  9225. LIBPTH="${LIBPTH}${LIBPTH:+ }$found_a"
  9226. else
  9227. LIBPTH="${LIBPTH}${LIBPTH:+ }-L$found_dir -l$name"
  9228. fi
  9229. fi
  9230. additional_includedir=
  9231. case "$found_dir" in
  9232. */$acl_libdirstem | */$acl_libdirstem/)
  9233. basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem/"'*$,,'`
  9234. LIBPTH_PREFIX="$basedir"
  9235. additional_includedir="$basedir/include"
  9236. ;;
  9237. esac
  9238. if test "X$additional_includedir" != "X"; then
  9239. if test "X$additional_includedir" != "X/usr/include"; then
  9240. haveit=
  9241. if test "X$additional_includedir" = "X/usr/local/include"; then
  9242. if test -n "$GCC"; then
  9243. case $host_os in
  9244. linux* | gnu* | k*bsd*-gnu) haveit=yes;;
  9245. esac
  9246. fi
  9247. fi
  9248. if test -z "$haveit"; then
  9249. for x in $CPPFLAGS $INCPTH; do
  9250. acl_save_prefix="$prefix"
  9251. prefix="$acl_final_prefix"
  9252. acl_save_exec_prefix="$exec_prefix"
  9253. exec_prefix="$acl_final_exec_prefix"
  9254. eval x=\"$x\"
  9255. exec_prefix="$acl_save_exec_prefix"
  9256. prefix="$acl_save_prefix"
  9257. if test "X$x" = "X-I$additional_includedir"; then
  9258. haveit=yes
  9259. break
  9260. fi
  9261. done
  9262. if test -z "$haveit"; then
  9263. if test -d "$additional_includedir"; then
  9264. INCPTH="${INCPTH}${INCPTH:+ }-I$additional_includedir"
  9265. fi
  9266. fi
  9267. fi
  9268. fi
  9269. fi
  9270. if test -n "$found_la"; then
  9271. save_libdir="$libdir"
  9272. case "$found_la" in
  9273. */* | *\\*) . "$found_la" ;;
  9274. *) . "./$found_la" ;;
  9275. esac
  9276. libdir="$save_libdir"
  9277. for dep in $dependency_libs; do
  9278. case "$dep" in
  9279. -L*)
  9280. additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
  9281. if test "X$additional_libdir" != "X/usr/$acl_libdirstem"; then
  9282. haveit=
  9283. if test "X$additional_libdir" = "X/usr/local/$acl_libdirstem"; then
  9284. if test -n "$GCC"; then
  9285. case $host_os in
  9286. linux* | gnu* | k*bsd*-gnu) haveit=yes;;
  9287. esac
  9288. fi
  9289. fi
  9290. if test -z "$haveit"; then
  9291. haveit=
  9292. for x in $LDFLAGS $LIBPTH; do
  9293. acl_save_prefix="$prefix"
  9294. prefix="$acl_final_prefix"
  9295. acl_save_exec_prefix="$exec_prefix"
  9296. exec_prefix="$acl_final_exec_prefix"
  9297. eval x=\"$x\"
  9298. exec_prefix="$acl_save_exec_prefix"
  9299. prefix="$acl_save_prefix"
  9300. if test "X$x" = "X-L$additional_libdir"; then
  9301. haveit=yes
  9302. break
  9303. fi
  9304. done
  9305. if test -z "$haveit"; then
  9306. if test -d "$additional_libdir"; then
  9307. LIBPTH="${LIBPTH}${LIBPTH:+ }-L$additional_libdir"
  9308. fi
  9309. fi
  9310. haveit=
  9311. for x in $LDFLAGS $LTLIBPTH; do
  9312. acl_save_prefix="$prefix"
  9313. prefix="$acl_final_prefix"
  9314. acl_save_exec_prefix="$exec_prefix"
  9315. exec_prefix="$acl_final_exec_prefix"
  9316. eval x=\"$x\"
  9317. exec_prefix="$acl_save_exec_prefix"
  9318. prefix="$acl_save_prefix"
  9319. if test "X$x" = "X-L$additional_libdir"; then
  9320. haveit=yes
  9321. break
  9322. fi
  9323. done
  9324. if test -z "$haveit"; then
  9325. if test -d "$additional_libdir"; then
  9326. LTLIBPTH="${LTLIBPTH}${LTLIBPTH:+ }-L$additional_libdir"
  9327. fi
  9328. fi
  9329. fi
  9330. fi
  9331. ;;
  9332. -R*)
  9333. dir=`echo "X$dep" | sed -e 's/^X-R//'`
  9334. if test "$enable_rpath" != no; then
  9335. haveit=
  9336. for x in $rpathdirs; do
  9337. if test "X$x" = "X$dir"; then
  9338. haveit=yes
  9339. break
  9340. fi
  9341. done
  9342. if test -z "$haveit"; then
  9343. rpathdirs="$rpathdirs $dir"
  9344. fi
  9345. haveit=
  9346. for x in $ltrpathdirs; do
  9347. if test "X$x" = "X$dir"; then
  9348. haveit=yes
  9349. break
  9350. fi
  9351. done
  9352. if test -z "$haveit"; then
  9353. ltrpathdirs="$ltrpathdirs $dir"
  9354. fi
  9355. fi
  9356. ;;
  9357. -l*)
  9358. names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
  9359. ;;
  9360. *.la)
  9361. names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
  9362. ;;
  9363. *)
  9364. LIBPTH="${LIBPTH}${LIBPTH:+ }$dep"
  9365. LTLIBPTH="${LTLIBPTH}${LTLIBPTH:+ }$dep"
  9366. ;;
  9367. esac
  9368. done
  9369. fi
  9370. else
  9371. LIBPTH="${LIBPTH}${LIBPTH:+ }-l$name"
  9372. LTLIBPTH="${LTLIBPTH}${LTLIBPTH:+ }-l$name"
  9373. fi
  9374. fi
  9375. fi
  9376. done
  9377. done
  9378. if test "X$rpathdirs" != "X"; then
  9379. if test -n "$acl_hardcode_libdir_separator"; then
  9380. alldirs=
  9381. for found_dir in $rpathdirs; do
  9382. alldirs="${alldirs}${alldirs:+$acl_hardcode_libdir_separator}$found_dir"
  9383. done
  9384. acl_save_libdir="$libdir"
  9385. libdir="$alldirs"
  9386. eval flag=\"$acl_hardcode_libdir_flag_spec\"
  9387. libdir="$acl_save_libdir"
  9388. LIBPTH="${LIBPTH}${LIBPTH:+ }$flag"
  9389. else
  9390. for found_dir in $rpathdirs; do
  9391. acl_save_libdir="$libdir"
  9392. libdir="$found_dir"
  9393. eval flag=\"$acl_hardcode_libdir_flag_spec\"
  9394. libdir="$acl_save_libdir"
  9395. LIBPTH="${LIBPTH}${LIBPTH:+ }$flag"
  9396. done
  9397. fi
  9398. fi
  9399. if test "X$ltrpathdirs" != "X"; then
  9400. for found_dir in $ltrpathdirs; do
  9401. LTLIBPTH="${LTLIBPTH}${LTLIBPTH:+ }-R$found_dir"
  9402. done
  9403. fi
  9404. ac_cv_libpth_libs="$LIBPTH"
  9405. ac_cv_libpth_ltlibs="$LTLIBPTH"
  9406. ac_cv_libpth_cppflags="$INCPTH"
  9407. ac_cv_libpth_prefix="$LIBPTH_PREFIX"
  9408. fi
  9409. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_libpth_libs" >&5
  9410. $as_echo "$ac_cv_libpth_libs" >&6; }
  9411. LIBPTH="$ac_cv_libpth_libs"
  9412. LTLIBPTH="$ac_cv_libpth_ltlibs"
  9413. INCPTH="$ac_cv_libpth_cppflags"
  9414. LIBPTH_PREFIX="$ac_cv_libpth_prefix"
  9415. for element in $INCPTH; do
  9416. haveit=
  9417. for x in $CPPFLAGS; do
  9418. acl_save_prefix="$prefix"
  9419. prefix="$acl_final_prefix"
  9420. acl_save_exec_prefix="$exec_prefix"
  9421. exec_prefix="$acl_final_exec_prefix"
  9422. eval x=\"$x\"
  9423. exec_prefix="$acl_save_exec_prefix"
  9424. prefix="$acl_save_prefix"
  9425. if test "X$x" = "X$element"; then
  9426. haveit=yes
  9427. break
  9428. fi
  9429. done
  9430. if test -z "$haveit"; then
  9431. CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
  9432. fi
  9433. done
  9434. HAVE_LIBPTH=yes
  9435. gl_have_pth=
  9436. gl_save_LIBS="$LIBS"
  9437. LIBS="$LIBS -lpth"
  9438. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9439. /* end confdefs.h. */
  9440. #include <pth.h>
  9441. int
  9442. main ()
  9443. {
  9444. pth_self();
  9445. ;
  9446. return 0;
  9447. }
  9448. _ACEOF
  9449. if ac_fn_cxx_try_link "$LINENO"; then :
  9450. gl_have_pth=yes
  9451. fi
  9452. rm -f core conftest.err conftest.$ac_objext \
  9453. conftest$ac_exeext conftest.$ac_ext
  9454. LIBS="$gl_save_LIBS"
  9455. if test -n "$gl_have_pth"; then
  9456. gl_threads_api=pth
  9457. LIBTHREAD="$LIBPTH"
  9458. LTLIBTHREAD="$LTLIBPTH"
  9459. LIBMULTITHREAD="$LIBTHREAD"
  9460. LTLIBMULTITHREAD="$LTLIBTHREAD"
  9461. $as_echo "#define USE_PTH_THREADS 1" >>confdefs.h
  9462. if test -n "$LIBMULTITHREAD" || test -n "$LTLIBMULTITHREAD"; then
  9463. if test $gl_have_weak = yes; then
  9464. $as_echo "#define USE_PTH_THREADS_WEAK 1" >>confdefs.h
  9465. LIBTHREAD=
  9466. LTLIBTHREAD=
  9467. fi
  9468. fi
  9469. else
  9470. CPPFLAGS="$gl_save_CPPFLAGS"
  9471. fi
  9472. fi
  9473. if test -z "$gl_have_pthread"; then
  9474. if test "$gl_use_threads" = yes || test "$gl_use_threads" = win32; then
  9475. if { case "$host_os" in
  9476. mingw*) true;;
  9477. *) false;;
  9478. esac
  9479. }; then
  9480. gl_threads_api=win32
  9481. $as_echo "#define USE_WIN32_THREADS 1" >>confdefs.h
  9482. fi
  9483. fi
  9484. fi
  9485. fi
  9486. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for multithread API to use" >&5
  9487. $as_echo_n "checking for multithread API to use... " >&6; }
  9488. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_threads_api" >&5
  9489. $as_echo "$gl_threads_api" >&6; }
  9490. use_additional=yes
  9491. acl_save_prefix="$prefix"
  9492. prefix="$acl_final_prefix"
  9493. acl_save_exec_prefix="$exec_prefix"
  9494. exec_prefix="$acl_final_exec_prefix"
  9495. eval additional_includedir=\"$includedir\"
  9496. eval additional_libdir=\"$libdir\"
  9497. exec_prefix="$acl_save_exec_prefix"
  9498. prefix="$acl_save_prefix"
  9499. # Check whether --with-libiconv-prefix was given.
  9500. if test "${with_libiconv_prefix+set}" = set; then :
  9501. withval=$with_libiconv_prefix;
  9502. if test "X$withval" = "Xno"; then
  9503. use_additional=no
  9504. else
  9505. if test "X$withval" = "X"; then
  9506. acl_save_prefix="$prefix"
  9507. prefix="$acl_final_prefix"
  9508. acl_save_exec_prefix="$exec_prefix"
  9509. exec_prefix="$acl_final_exec_prefix"
  9510. eval additional_includedir=\"$includedir\"
  9511. eval additional_libdir=\"$libdir\"
  9512. exec_prefix="$acl_save_exec_prefix"
  9513. prefix="$acl_save_prefix"
  9514. else
  9515. additional_includedir="$withval/include"
  9516. additional_libdir="$withval/$acl_libdirstem"
  9517. fi
  9518. fi
  9519. fi
  9520. LIBICONV=
  9521. LTLIBICONV=
  9522. INCICONV=
  9523. LIBICONV_PREFIX=
  9524. rpathdirs=
  9525. ltrpathdirs=
  9526. names_already_handled=
  9527. names_next_round='iconv '
  9528. while test -n "$names_next_round"; do
  9529. names_this_round="$names_next_round"
  9530. names_next_round=
  9531. for name in $names_this_round; do
  9532. already_handled=
  9533. for n in $names_already_handled; do
  9534. if test "$n" = "$name"; then
  9535. already_handled=yes
  9536. break
  9537. fi
  9538. done
  9539. if test -z "$already_handled"; then
  9540. names_already_handled="$names_already_handled $name"
  9541. uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
  9542. eval value=\"\$HAVE_LIB$uppername\"
  9543. if test -n "$value"; then
  9544. if test "$value" = yes; then
  9545. eval value=\"\$LIB$uppername\"
  9546. test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value"
  9547. eval value=\"\$LTLIB$uppername\"
  9548. test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value"
  9549. else
  9550. :
  9551. fi
  9552. else
  9553. found_dir=
  9554. found_la=
  9555. found_so=
  9556. found_a=
  9557. eval libname=\"$acl_libname_spec\" # typically: libname=lib$name
  9558. if test -n "$acl_shlibext"; then
  9559. shrext=".$acl_shlibext" # typically: shrext=.so
  9560. else
  9561. shrext=
  9562. fi
  9563. if test $use_additional = yes; then
  9564. dir="$additional_libdir"
  9565. if test -n "$acl_shlibext"; then
  9566. if test -f "$dir/$libname$shrext"; then
  9567. found_dir="$dir"
  9568. found_so="$dir/$libname$shrext"
  9569. else
  9570. if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
  9571. ver=`(cd "$dir" && \
  9572. for f in "$libname$shrext".*; do echo "$f"; done \
  9573. | sed -e "s,^$libname$shrext\\\\.,," \
  9574. | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
  9575. | sed 1q ) 2>/dev/null`
  9576. if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
  9577. found_dir="$dir"
  9578. found_so="$dir/$libname$shrext.$ver"
  9579. fi
  9580. else
  9581. eval library_names=\"$acl_library_names_spec\"
  9582. for f in $library_names; do
  9583. if test -f "$dir/$f"; then
  9584. found_dir="$dir"
  9585. found_so="$dir/$f"
  9586. break
  9587. fi
  9588. done
  9589. fi
  9590. fi
  9591. fi
  9592. if test "X$found_dir" = "X"; then
  9593. if test -f "$dir/$libname.$acl_libext"; then
  9594. found_dir="$dir"
  9595. found_a="$dir/$libname.$acl_libext"
  9596. fi
  9597. fi
  9598. if test "X$found_dir" != "X"; then
  9599. if test -f "$dir/$libname.la"; then
  9600. found_la="$dir/$libname.la"
  9601. fi
  9602. fi
  9603. fi
  9604. if test "X$found_dir" = "X"; then
  9605. for x in $LDFLAGS $LTLIBICONV; do
  9606. acl_save_prefix="$prefix"
  9607. prefix="$acl_final_prefix"
  9608. acl_save_exec_prefix="$exec_prefix"
  9609. exec_prefix="$acl_final_exec_prefix"
  9610. eval x=\"$x\"
  9611. exec_prefix="$acl_save_exec_prefix"
  9612. prefix="$acl_save_prefix"
  9613. case "$x" in
  9614. -L*)
  9615. dir=`echo "X$x" | sed -e 's/^X-L//'`
  9616. if test -n "$acl_shlibext"; then
  9617. if test -f "$dir/$libname$shrext"; then
  9618. found_dir="$dir"
  9619. found_so="$dir/$libname$shrext"
  9620. else
  9621. if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
  9622. ver=`(cd "$dir" && \
  9623. for f in "$libname$shrext".*; do echo "$f"; done \
  9624. | sed -e "s,^$libname$shrext\\\\.,," \
  9625. | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
  9626. | sed 1q ) 2>/dev/null`
  9627. if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
  9628. found_dir="$dir"
  9629. found_so="$dir/$libname$shrext.$ver"
  9630. fi
  9631. else
  9632. eval library_names=\"$acl_library_names_spec\"
  9633. for f in $library_names; do
  9634. if test -f "$dir/$f"; then
  9635. found_dir="$dir"
  9636. found_so="$dir/$f"
  9637. break
  9638. fi
  9639. done
  9640. fi
  9641. fi
  9642. fi
  9643. if test "X$found_dir" = "X"; then
  9644. if test -f "$dir/$libname.$acl_libext"; then
  9645. found_dir="$dir"
  9646. found_a="$dir/$libname.$acl_libext"
  9647. fi
  9648. fi
  9649. if test "X$found_dir" != "X"; then
  9650. if test -f "$dir/$libname.la"; then
  9651. found_la="$dir/$libname.la"
  9652. fi
  9653. fi
  9654. ;;
  9655. esac
  9656. if test "X$found_dir" != "X"; then
  9657. break
  9658. fi
  9659. done
  9660. fi
  9661. if test "X$found_dir" != "X"; then
  9662. LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
  9663. if test "X$found_so" != "X"; then
  9664. if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/$acl_libdirstem"; then
  9665. LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
  9666. else
  9667. haveit=
  9668. for x in $ltrpathdirs; do
  9669. if test "X$x" = "X$found_dir"; then
  9670. haveit=yes
  9671. break
  9672. fi
  9673. done
  9674. if test -z "$haveit"; then
  9675. ltrpathdirs="$ltrpathdirs $found_dir"
  9676. fi
  9677. if test "$acl_hardcode_direct" = yes; then
  9678. LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
  9679. else
  9680. if test -n "$acl_hardcode_libdir_flag_spec" && test "$acl_hardcode_minus_L" = no; then
  9681. LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
  9682. haveit=
  9683. for x in $rpathdirs; do
  9684. if test "X$x" = "X$found_dir"; then
  9685. haveit=yes
  9686. break
  9687. fi
  9688. done
  9689. if test -z "$haveit"; then
  9690. rpathdirs="$rpathdirs $found_dir"
  9691. fi
  9692. else
  9693. haveit=
  9694. for x in $LDFLAGS $LIBICONV; do
  9695. acl_save_prefix="$prefix"
  9696. prefix="$acl_final_prefix"
  9697. acl_save_exec_prefix="$exec_prefix"
  9698. exec_prefix="$acl_final_exec_prefix"
  9699. eval x=\"$x\"
  9700. exec_prefix="$acl_save_exec_prefix"
  9701. prefix="$acl_save_prefix"
  9702. if test "X$x" = "X-L$found_dir"; then
  9703. haveit=yes
  9704. break
  9705. fi
  9706. done
  9707. if test -z "$haveit"; then
  9708. LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir"
  9709. fi
  9710. if test "$acl_hardcode_minus_L" != no; then
  9711. LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
  9712. else
  9713. LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
  9714. fi
  9715. fi
  9716. fi
  9717. fi
  9718. else
  9719. if test "X$found_a" != "X"; then
  9720. LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a"
  9721. else
  9722. LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
  9723. fi
  9724. fi
  9725. additional_includedir=
  9726. case "$found_dir" in
  9727. */$acl_libdirstem | */$acl_libdirstem/)
  9728. basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem/"'*$,,'`
  9729. LIBICONV_PREFIX="$basedir"
  9730. additional_includedir="$basedir/include"
  9731. ;;
  9732. esac
  9733. if test "X$additional_includedir" != "X"; then
  9734. if test "X$additional_includedir" != "X/usr/include"; then
  9735. haveit=
  9736. if test "X$additional_includedir" = "X/usr/local/include"; then
  9737. if test -n "$GCC"; then
  9738. case $host_os in
  9739. linux* | gnu* | k*bsd*-gnu) haveit=yes;;
  9740. esac
  9741. fi
  9742. fi
  9743. if test -z "$haveit"; then
  9744. for x in $CPPFLAGS $INCICONV; do
  9745. acl_save_prefix="$prefix"
  9746. prefix="$acl_final_prefix"
  9747. acl_save_exec_prefix="$exec_prefix"
  9748. exec_prefix="$acl_final_exec_prefix"
  9749. eval x=\"$x\"
  9750. exec_prefix="$acl_save_exec_prefix"
  9751. prefix="$acl_save_prefix"
  9752. if test "X$x" = "X-I$additional_includedir"; then
  9753. haveit=yes
  9754. break
  9755. fi
  9756. done
  9757. if test -z "$haveit"; then
  9758. if test -d "$additional_includedir"; then
  9759. INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir"
  9760. fi
  9761. fi
  9762. fi
  9763. fi
  9764. fi
  9765. if test -n "$found_la"; then
  9766. save_libdir="$libdir"
  9767. case "$found_la" in
  9768. */* | *\\*) . "$found_la" ;;
  9769. *) . "./$found_la" ;;
  9770. esac
  9771. libdir="$save_libdir"
  9772. for dep in $dependency_libs; do
  9773. case "$dep" in
  9774. -L*)
  9775. additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
  9776. if test "X$additional_libdir" != "X/usr/$acl_libdirstem"; then
  9777. haveit=
  9778. if test "X$additional_libdir" = "X/usr/local/$acl_libdirstem"; then
  9779. if test -n "$GCC"; then
  9780. case $host_os in
  9781. linux* | gnu* | k*bsd*-gnu) haveit=yes;;
  9782. esac
  9783. fi
  9784. fi
  9785. if test -z "$haveit"; then
  9786. haveit=
  9787. for x in $LDFLAGS $LIBICONV; do
  9788. acl_save_prefix="$prefix"
  9789. prefix="$acl_final_prefix"
  9790. acl_save_exec_prefix="$exec_prefix"
  9791. exec_prefix="$acl_final_exec_prefix"
  9792. eval x=\"$x\"
  9793. exec_prefix="$acl_save_exec_prefix"
  9794. prefix="$acl_save_prefix"
  9795. if test "X$x" = "X-L$additional_libdir"; then
  9796. haveit=yes
  9797. break
  9798. fi
  9799. done
  9800. if test -z "$haveit"; then
  9801. if test -d "$additional_libdir"; then
  9802. LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
  9803. fi
  9804. fi
  9805. haveit=
  9806. for x in $LDFLAGS $LTLIBICONV; do
  9807. acl_save_prefix="$prefix"
  9808. prefix="$acl_final_prefix"
  9809. acl_save_exec_prefix="$exec_prefix"
  9810. exec_prefix="$acl_final_exec_prefix"
  9811. eval x=\"$x\"
  9812. exec_prefix="$acl_save_exec_prefix"
  9813. prefix="$acl_save_prefix"
  9814. if test "X$x" = "X-L$additional_libdir"; then
  9815. haveit=yes
  9816. break
  9817. fi
  9818. done
  9819. if test -z "$haveit"; then
  9820. if test -d "$additional_libdir"; then
  9821. LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
  9822. fi
  9823. fi
  9824. fi
  9825. fi
  9826. ;;
  9827. -R*)
  9828. dir=`echo "X$dep" | sed -e 's/^X-R//'`
  9829. if test "$enable_rpath" != no; then
  9830. haveit=
  9831. for x in $rpathdirs; do
  9832. if test "X$x" = "X$dir"; then
  9833. haveit=yes
  9834. break
  9835. fi
  9836. done
  9837. if test -z "$haveit"; then
  9838. rpathdirs="$rpathdirs $dir"
  9839. fi
  9840. haveit=
  9841. for x in $ltrpathdirs; do
  9842. if test "X$x" = "X$dir"; then
  9843. haveit=yes
  9844. break
  9845. fi
  9846. done
  9847. if test -z "$haveit"; then
  9848. ltrpathdirs="$ltrpathdirs $dir"
  9849. fi
  9850. fi
  9851. ;;
  9852. -l*)
  9853. names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
  9854. ;;
  9855. *.la)
  9856. names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
  9857. ;;
  9858. *)
  9859. LIBICONV="${LIBICONV}${LIBICONV:+ }$dep"
  9860. LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep"
  9861. ;;
  9862. esac
  9863. done
  9864. fi
  9865. else
  9866. LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
  9867. LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
  9868. fi
  9869. fi
  9870. fi
  9871. done
  9872. done
  9873. if test "X$rpathdirs" != "X"; then
  9874. if test -n "$acl_hardcode_libdir_separator"; then
  9875. alldirs=
  9876. for found_dir in $rpathdirs; do
  9877. alldirs="${alldirs}${alldirs:+$acl_hardcode_libdir_separator}$found_dir"
  9878. done
  9879. acl_save_libdir="$libdir"
  9880. libdir="$alldirs"
  9881. eval flag=\"$acl_hardcode_libdir_flag_spec\"
  9882. libdir="$acl_save_libdir"
  9883. LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
  9884. else
  9885. for found_dir in $rpathdirs; do
  9886. acl_save_libdir="$libdir"
  9887. libdir="$found_dir"
  9888. eval flag=\"$acl_hardcode_libdir_flag_spec\"
  9889. libdir="$acl_save_libdir"
  9890. LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
  9891. done
  9892. fi
  9893. fi
  9894. if test "X$ltrpathdirs" != "X"; then
  9895. for found_dir in $ltrpathdirs; do
  9896. LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
  9897. done
  9898. fi
  9899. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9900. /* end confdefs.h. */
  9901. int foo (int a) { a = __builtin_expect (a, 10); return a == 10 ? 0 : 1; }
  9902. int
  9903. main ()
  9904. {
  9905. ;
  9906. return 0;
  9907. }
  9908. _ACEOF
  9909. if ac_fn_cxx_try_link "$LINENO"; then :
  9910. $as_echo "#define HAVE_BUILTIN_EXPECT 1" >>confdefs.h
  9911. fi
  9912. rm -f core conftest.err conftest.$ac_objext \
  9913. conftest$ac_exeext conftest.$ac_ext
  9914. for ac_header in argz.h inttypes.h limits.h unistd.h sys/param.h
  9915. do :
  9916. as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
  9917. ac_fn_cxx_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
  9918. eval as_val=\$$as_ac_Header
  9919. if test "x$as_val" = x""yes; then :
  9920. cat >>confdefs.h <<_ACEOF
  9921. #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
  9922. _ACEOF
  9923. fi
  9924. done
  9925. for ac_func in getcwd getegid geteuid getgid getuid mempcpy munmap \
  9926. stpcpy strcasecmp strdup strtoul tsearch argz_count argz_stringify \
  9927. argz_next __fsetlocking
  9928. do :
  9929. as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
  9930. ac_fn_cxx_check_func "$LINENO" "$ac_func" "$as_ac_var"
  9931. eval as_val=\$$as_ac_var
  9932. if test "x$as_val" = x""yes; then :
  9933. cat >>confdefs.h <<_ACEOF
  9934. #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
  9935. _ACEOF
  9936. fi
  9937. done
  9938. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether feof_unlocked is declared" >&5
  9939. $as_echo_n "checking whether feof_unlocked is declared... " >&6; }
  9940. if test "${ac_cv_have_decl_feof_unlocked+set}" = set; then :
  9941. $as_echo_n "(cached) " >&6
  9942. else
  9943. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9944. /* end confdefs.h. */
  9945. #include <stdio.h>
  9946. int
  9947. main ()
  9948. {
  9949. #ifndef feof_unlocked
  9950. char *p = (char *) feof_unlocked;
  9951. #endif
  9952. ;
  9953. return 0;
  9954. }
  9955. _ACEOF
  9956. if ac_fn_cxx_try_compile "$LINENO"; then :
  9957. ac_cv_have_decl_feof_unlocked=yes
  9958. else
  9959. ac_cv_have_decl_feof_unlocked=no
  9960. fi
  9961. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  9962. fi
  9963. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_decl_feof_unlocked" >&5
  9964. $as_echo "$ac_cv_have_decl_feof_unlocked" >&6; }
  9965. if test $ac_cv_have_decl_feof_unlocked = yes; then
  9966. gt_value=1
  9967. else
  9968. gt_value=0
  9969. fi
  9970. cat >>confdefs.h <<_ACEOF
  9971. #define HAVE_DECL_FEOF_UNLOCKED $gt_value
  9972. _ACEOF
  9973. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether fgets_unlocked is declared" >&5
  9974. $as_echo_n "checking whether fgets_unlocked is declared... " >&6; }
  9975. if test "${ac_cv_have_decl_fgets_unlocked+set}" = set; then :
  9976. $as_echo_n "(cached) " >&6
  9977. else
  9978. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9979. /* end confdefs.h. */
  9980. #include <stdio.h>
  9981. int
  9982. main ()
  9983. {
  9984. #ifndef fgets_unlocked
  9985. char *p = (char *) fgets_unlocked;
  9986. #endif
  9987. ;
  9988. return 0;
  9989. }
  9990. _ACEOF
  9991. if ac_fn_cxx_try_compile "$LINENO"; then :
  9992. ac_cv_have_decl_fgets_unlocked=yes
  9993. else
  9994. ac_cv_have_decl_fgets_unlocked=no
  9995. fi
  9996. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  9997. fi
  9998. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_decl_fgets_unlocked" >&5
  9999. $as_echo "$ac_cv_have_decl_fgets_unlocked" >&6; }
  10000. if test $ac_cv_have_decl_fgets_unlocked = yes; then
  10001. gt_value=1
  10002. else
  10003. gt_value=0
  10004. fi
  10005. cat >>confdefs.h <<_ACEOF
  10006. #define HAVE_DECL_FGETS_UNLOCKED $gt_value
  10007. _ACEOF
  10008. am_save_CPPFLAGS="$CPPFLAGS"
  10009. for element in $INCICONV; do
  10010. haveit=
  10011. for x in $CPPFLAGS; do
  10012. acl_save_prefix="$prefix"
  10013. prefix="$acl_final_prefix"
  10014. acl_save_exec_prefix="$exec_prefix"
  10015. exec_prefix="$acl_final_exec_prefix"
  10016. eval x=\"$x\"
  10017. exec_prefix="$acl_save_exec_prefix"
  10018. prefix="$acl_save_prefix"
  10019. if test "X$x" = "X$element"; then
  10020. haveit=yes
  10021. break
  10022. fi
  10023. done
  10024. if test -z "$haveit"; then
  10025. CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
  10026. fi
  10027. done
  10028. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv" >&5
  10029. $as_echo_n "checking for iconv... " >&6; }
  10030. if test "${am_cv_func_iconv+set}" = set; then :
  10031. $as_echo_n "(cached) " >&6
  10032. else
  10033. am_cv_func_iconv="no, consider installing GNU libiconv"
  10034. am_cv_lib_iconv=no
  10035. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10036. /* end confdefs.h. */
  10037. #include <stdlib.h>
  10038. #include <iconv.h>
  10039. int
  10040. main ()
  10041. {
  10042. iconv_t cd = iconv_open("","");
  10043. iconv(cd,NULL,NULL,NULL,NULL);
  10044. iconv_close(cd);
  10045. ;
  10046. return 0;
  10047. }
  10048. _ACEOF
  10049. if ac_fn_cxx_try_link "$LINENO"; then :
  10050. am_cv_func_iconv=yes
  10051. fi
  10052. rm -f core conftest.err conftest.$ac_objext \
  10053. conftest$ac_exeext conftest.$ac_ext
  10054. if test "$am_cv_func_iconv" != yes; then
  10055. am_save_LIBS="$LIBS"
  10056. LIBS="$LIBS $LIBICONV"
  10057. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10058. /* end confdefs.h. */
  10059. #include <stdlib.h>
  10060. #include <iconv.h>
  10061. int
  10062. main ()
  10063. {
  10064. iconv_t cd = iconv_open("","");
  10065. iconv(cd,NULL,NULL,NULL,NULL);
  10066. iconv_close(cd);
  10067. ;
  10068. return 0;
  10069. }
  10070. _ACEOF
  10071. if ac_fn_cxx_try_link "$LINENO"; then :
  10072. am_cv_lib_iconv=yes
  10073. am_cv_func_iconv=yes
  10074. fi
  10075. rm -f core conftest.err conftest.$ac_objext \
  10076. conftest$ac_exeext conftest.$ac_ext
  10077. LIBS="$am_save_LIBS"
  10078. fi
  10079. fi
  10080. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv" >&5
  10081. $as_echo "$am_cv_func_iconv" >&6; }
  10082. if test "$am_cv_func_iconv" = yes; then
  10083. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working iconv" >&5
  10084. $as_echo_n "checking for working iconv... " >&6; }
  10085. if test "${am_cv_func_iconv_works+set}" = set; then :
  10086. $as_echo_n "(cached) " >&6
  10087. else
  10088. am_save_LIBS="$LIBS"
  10089. if test $am_cv_lib_iconv = yes; then
  10090. LIBS="$LIBS $LIBICONV"
  10091. fi
  10092. if test "$cross_compiling" = yes; then :
  10093. case "$host_os" in
  10094. aix* | hpux*) am_cv_func_iconv_works="guessing no" ;;
  10095. *) am_cv_func_iconv_works="guessing yes" ;;
  10096. esac
  10097. else
  10098. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10099. /* end confdefs.h. */
  10100. #include <iconv.h>
  10101. #include <string.h>
  10102. int main ()
  10103. {
  10104. /* Test against AIX 5.1 bug: Failures are not distinguishable from successful
  10105. returns. */
  10106. {
  10107. iconv_t cd_utf8_to_88591 = iconv_open ("ISO8859-1", "UTF-8");
  10108. if (cd_utf8_to_88591 != (iconv_t)(-1))
  10109. {
  10110. static const char input[] = "\342\202\254"; /* EURO SIGN */
  10111. char buf[10];
  10112. const char *inptr = input;
  10113. size_t inbytesleft = strlen (input);
  10114. char *outptr = buf;
  10115. size_t outbytesleft = sizeof (buf);
  10116. size_t res = iconv (cd_utf8_to_88591,
  10117. (char **) &inptr, &inbytesleft,
  10118. &outptr, &outbytesleft);
  10119. if (res == 0)
  10120. return 1;
  10121. }
  10122. }
  10123. #if 0 /* This bug could be worked around by the caller. */
  10124. /* Test against HP-UX 11.11 bug: Positive return value instead of 0. */
  10125. {
  10126. iconv_t cd_88591_to_utf8 = iconv_open ("utf8", "iso88591");
  10127. if (cd_88591_to_utf8 != (iconv_t)(-1))
  10128. {
  10129. static const char input[] = "\304rger mit b\366sen B\374bchen ohne Augenma\337";
  10130. char buf[50];
  10131. const char *inptr = input;
  10132. size_t inbytesleft = strlen (input);
  10133. char *outptr = buf;
  10134. size_t outbytesleft = sizeof (buf);
  10135. size_t res = iconv (cd_88591_to_utf8,
  10136. (char **) &inptr, &inbytesleft,
  10137. &outptr, &outbytesleft);
  10138. if ((int)res > 0)
  10139. return 1;
  10140. }
  10141. }
  10142. #endif
  10143. /* Test against HP-UX 11.11 bug: No converter from EUC-JP to UTF-8 is
  10144. provided. */
  10145. if (/* Try standardized names. */
  10146. iconv_open ("UTF-8", "EUC-JP") == (iconv_t)(-1)
  10147. /* Try IRIX, OSF/1 names. */
  10148. && iconv_open ("UTF-8", "eucJP") == (iconv_t)(-1)
  10149. /* Try AIX names. */
  10150. && iconv_open ("UTF-8", "IBM-eucJP") == (iconv_t)(-1)
  10151. /* Try HP-UX names. */
  10152. && iconv_open ("utf8", "eucJP") == (iconv_t)(-1))
  10153. return 1;
  10154. return 0;
  10155. }
  10156. _ACEOF
  10157. if ac_fn_cxx_try_run "$LINENO"; then :
  10158. am_cv_func_iconv_works=yes
  10159. else
  10160. am_cv_func_iconv_works=no
  10161. fi
  10162. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  10163. conftest.$ac_objext conftest.beam conftest.$ac_ext
  10164. fi
  10165. LIBS="$am_save_LIBS"
  10166. fi
  10167. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv_works" >&5
  10168. $as_echo "$am_cv_func_iconv_works" >&6; }
  10169. case "$am_cv_func_iconv_works" in
  10170. *no) am_func_iconv=no am_cv_lib_iconv=no ;;
  10171. *) am_func_iconv=yes ;;
  10172. esac
  10173. else
  10174. am_func_iconv=no am_cv_lib_iconv=no
  10175. fi
  10176. if test "$am_func_iconv" = yes; then
  10177. $as_echo "#define HAVE_ICONV 1" >>confdefs.h
  10178. fi
  10179. if test "$am_cv_lib_iconv" = yes; then
  10180. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libiconv" >&5
  10181. $as_echo_n "checking how to link with libiconv... " >&6; }
  10182. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBICONV" >&5
  10183. $as_echo "$LIBICONV" >&6; }
  10184. else
  10185. CPPFLAGS="$am_save_CPPFLAGS"
  10186. LIBICONV=
  10187. LTLIBICONV=
  10188. fi
  10189. if test "$am_cv_func_iconv" = yes; then
  10190. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv declaration" >&5
  10191. $as_echo_n "checking for iconv declaration... " >&6; }
  10192. if test "${am_cv_proto_iconv+set}" = set; then :
  10193. $as_echo_n "(cached) " >&6
  10194. else
  10195. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10196. /* end confdefs.h. */
  10197. #include <stdlib.h>
  10198. #include <iconv.h>
  10199. extern
  10200. #ifdef __cplusplus
  10201. "C"
  10202. #endif
  10203. #if defined(__STDC__) || defined(__cplusplus)
  10204. size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
  10205. #else
  10206. size_t iconv();
  10207. #endif
  10208. int
  10209. main ()
  10210. {
  10211. ;
  10212. return 0;
  10213. }
  10214. _ACEOF
  10215. if ac_fn_cxx_try_compile "$LINENO"; then :
  10216. am_cv_proto_iconv_arg1=""
  10217. else
  10218. am_cv_proto_iconv_arg1="const"
  10219. fi
  10220. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  10221. 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);"
  10222. fi
  10223. am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
  10224. { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${ac_t:-
  10225. }$am_cv_proto_iconv" >&5
  10226. $as_echo "${ac_t:-
  10227. }$am_cv_proto_iconv" >&6; }
  10228. cat >>confdefs.h <<_ACEOF
  10229. #define ICONV_CONST $am_cv_proto_iconv_arg1
  10230. _ACEOF
  10231. fi
  10232. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for NL_LOCALE_NAME macro" >&5
  10233. $as_echo_n "checking for NL_LOCALE_NAME macro... " >&6; }
  10234. if test "${gt_cv_nl_locale_name+set}" = set; then :
  10235. $as_echo_n "(cached) " >&6
  10236. else
  10237. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10238. /* end confdefs.h. */
  10239. #include <langinfo.h>
  10240. #include <locale.h>
  10241. int
  10242. main ()
  10243. {
  10244. char* cs = nl_langinfo(_NL_LOCALE_NAME(LC_MESSAGES));
  10245. return !cs;
  10246. ;
  10247. return 0;
  10248. }
  10249. _ACEOF
  10250. if ac_fn_cxx_try_link "$LINENO"; then :
  10251. gt_cv_nl_locale_name=yes
  10252. else
  10253. gt_cv_nl_locale_name=no
  10254. fi
  10255. rm -f core conftest.err conftest.$ac_objext \
  10256. conftest$ac_exeext conftest.$ac_ext
  10257. fi
  10258. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_nl_locale_name" >&5
  10259. $as_echo "$gt_cv_nl_locale_name" >&6; }
  10260. if test $gt_cv_nl_locale_name = yes; then
  10261. $as_echo "#define HAVE_NL_LOCALE_NAME 1" >>confdefs.h
  10262. fi
  10263. for ac_prog in bison
  10264. do
  10265. # Extract the first word of "$ac_prog", so it can be a program name with args.
  10266. set dummy $ac_prog; ac_word=$2
  10267. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  10268. $as_echo_n "checking for $ac_word... " >&6; }
  10269. if test "${ac_cv_prog_INTLBISON+set}" = set; then :
  10270. $as_echo_n "(cached) " >&6
  10271. else
  10272. if test -n "$INTLBISON"; then
  10273. ac_cv_prog_INTLBISON="$INTLBISON" # Let the user override the test.
  10274. else
  10275. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  10276. for as_dir in $PATH
  10277. do
  10278. IFS=$as_save_IFS
  10279. test -z "$as_dir" && as_dir=.
  10280. for ac_exec_ext in '' $ac_executable_extensions; do
  10281. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  10282. ac_cv_prog_INTLBISON="$ac_prog"
  10283. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  10284. break 2
  10285. fi
  10286. done
  10287. done
  10288. IFS=$as_save_IFS
  10289. fi
  10290. fi
  10291. INTLBISON=$ac_cv_prog_INTLBISON
  10292. if test -n "$INTLBISON"; then
  10293. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INTLBISON" >&5
  10294. $as_echo "$INTLBISON" >&6; }
  10295. else
  10296. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  10297. $as_echo "no" >&6; }
  10298. fi
  10299. test -n "$INTLBISON" && break
  10300. done
  10301. if test -z "$INTLBISON"; then
  10302. ac_verc_fail=yes
  10303. else
  10304. { $as_echo "$as_me:${as_lineno-$LINENO}: checking version of bison" >&5
  10305. $as_echo_n "checking version of bison... " >&6; }
  10306. ac_prog_version=`$INTLBISON --version 2>&1 | sed -n 's/^.*GNU Bison.* \([0-9]*\.[0-9.]*\).*$/\1/p'`
  10307. case $ac_prog_version in
  10308. '') ac_prog_version="v. ?.??, bad"; ac_verc_fail=yes;;
  10309. 1.2[6-9]* | 1.[3-9][0-9]* | [2-9].*)
  10310. ac_prog_version="$ac_prog_version, ok"; ac_verc_fail=no;;
  10311. *) ac_prog_version="$ac_prog_version, bad"; ac_verc_fail=yes;;
  10312. esac
  10313. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_prog_version" >&5
  10314. $as_echo "$ac_prog_version" >&6; }
  10315. fi
  10316. if test $ac_verc_fail = yes; then
  10317. INTLBISON=:
  10318. fi
  10319. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long long int" >&5
  10320. $as_echo_n "checking for long long int... " >&6; }
  10321. if test "${ac_cv_type_long_long_int+set}" = set; then :
  10322. $as_echo_n "(cached) " >&6
  10323. else
  10324. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10325. /* end confdefs.h. */
  10326. /* Test preprocessor. */
  10327. #if ! (-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
  10328. error in preprocessor;
  10329. #endif
  10330. #if ! (18446744073709551615ULL <= -1ull)
  10331. error in preprocessor;
  10332. #endif
  10333. /* Test literals. */
  10334. long long int ll = 9223372036854775807ll;
  10335. long long int nll = -9223372036854775807LL;
  10336. unsigned long long int ull = 18446744073709551615ULL;
  10337. /* Test constant expressions. */
  10338. typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
  10339. ? 1 : -1)];
  10340. typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1
  10341. ? 1 : -1)];
  10342. int i = 63;
  10343. int
  10344. main ()
  10345. {
  10346. /* Test availability of runtime routines for shift and division. */
  10347. long long int llmax = 9223372036854775807ll;
  10348. unsigned long long int ullmax = 18446744073709551615ull;
  10349. return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i)
  10350. | (llmax / ll) | (llmax % ll)
  10351. | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i)
  10352. | (ullmax / ull) | (ullmax % ull));
  10353. ;
  10354. return 0;
  10355. }
  10356. _ACEOF
  10357. if ac_fn_cxx_try_link "$LINENO"; then :
  10358. if test "$cross_compiling" = yes; then :
  10359. ac_cv_type_long_long_int=yes
  10360. else
  10361. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10362. /* end confdefs.h. */
  10363. #include <limits.h>
  10364. #ifndef LLONG_MAX
  10365. # define HALF \
  10366. (1LL << (sizeof (long long int) * CHAR_BIT - 2))
  10367. # define LLONG_MAX (HALF - 1 + HALF)
  10368. #endif
  10369. int
  10370. main ()
  10371. {
  10372. long long int n = 1;
  10373. int i;
  10374. for (i = 0; ; i++)
  10375. {
  10376. long long int m = n << i;
  10377. if (m >> i != n)
  10378. return 1;
  10379. if (LLONG_MAX / 2 < m)
  10380. break;
  10381. }
  10382. return 0;
  10383. ;
  10384. return 0;
  10385. }
  10386. _ACEOF
  10387. if ac_fn_cxx_try_run "$LINENO"; then :
  10388. ac_cv_type_long_long_int=yes
  10389. else
  10390. ac_cv_type_long_long_int=no
  10391. fi
  10392. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  10393. conftest.$ac_objext conftest.beam conftest.$ac_ext
  10394. fi
  10395. else
  10396. ac_cv_type_long_long_int=no
  10397. fi
  10398. rm -f core conftest.err conftest.$ac_objext \
  10399. conftest$ac_exeext conftest.$ac_ext
  10400. fi
  10401. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_long_long_int" >&5
  10402. $as_echo "$ac_cv_type_long_long_int" >&6; }
  10403. if test $ac_cv_type_long_long_int = yes; then
  10404. $as_echo "#define HAVE_LONG_LONG_INT 1" >>confdefs.h
  10405. fi
  10406. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wchar_t" >&5
  10407. $as_echo_n "checking for wchar_t... " >&6; }
  10408. if test "${gt_cv_c_wchar_t+set}" = set; then :
  10409. $as_echo_n "(cached) " >&6
  10410. else
  10411. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10412. /* end confdefs.h. */
  10413. #include <stddef.h>
  10414. wchar_t foo = (wchar_t)'\0';
  10415. int
  10416. main ()
  10417. {
  10418. ;
  10419. return 0;
  10420. }
  10421. _ACEOF
  10422. if ac_fn_cxx_try_compile "$LINENO"; then :
  10423. gt_cv_c_wchar_t=yes
  10424. else
  10425. gt_cv_c_wchar_t=no
  10426. fi
  10427. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  10428. fi
  10429. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_c_wchar_t" >&5
  10430. $as_echo "$gt_cv_c_wchar_t" >&6; }
  10431. if test $gt_cv_c_wchar_t = yes; then
  10432. $as_echo "#define HAVE_WCHAR_T 1" >>confdefs.h
  10433. fi
  10434. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wint_t" >&5
  10435. $as_echo_n "checking for wint_t... " >&6; }
  10436. if test "${gt_cv_c_wint_t+set}" = set; then :
  10437. $as_echo_n "(cached) " >&6
  10438. else
  10439. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10440. /* end confdefs.h. */
  10441. /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
  10442. <wchar.h>.
  10443. BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be included
  10444. before <wchar.h>. */
  10445. #include <stddef.h>
  10446. #include <stdio.h>
  10447. #include <time.h>
  10448. #include <wchar.h>
  10449. wint_t foo = (wchar_t)'\0';
  10450. int
  10451. main ()
  10452. {
  10453. ;
  10454. return 0;
  10455. }
  10456. _ACEOF
  10457. if ac_fn_cxx_try_compile "$LINENO"; then :
  10458. gt_cv_c_wint_t=yes
  10459. else
  10460. gt_cv_c_wint_t=no
  10461. fi
  10462. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  10463. fi
  10464. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_c_wint_t" >&5
  10465. $as_echo "$gt_cv_c_wint_t" >&6; }
  10466. if test $gt_cv_c_wint_t = yes; then
  10467. $as_echo "#define HAVE_WINT_T 1" >>confdefs.h
  10468. fi
  10469. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for intmax_t" >&5
  10470. $as_echo_n "checking for intmax_t... " >&6; }
  10471. if test "${gt_cv_c_intmax_t+set}" = set; then :
  10472. $as_echo_n "(cached) " >&6
  10473. else
  10474. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10475. /* end confdefs.h. */
  10476. #include <stddef.h>
  10477. #include <stdlib.h>
  10478. #if HAVE_STDINT_H_WITH_UINTMAX
  10479. #include <stdint.h>
  10480. #endif
  10481. #if HAVE_INTTYPES_H_WITH_UINTMAX
  10482. #include <inttypes.h>
  10483. #endif
  10484. int
  10485. main ()
  10486. {
  10487. intmax_t x = -1;
  10488. return !x;
  10489. ;
  10490. return 0;
  10491. }
  10492. _ACEOF
  10493. if ac_fn_cxx_try_compile "$LINENO"; then :
  10494. gt_cv_c_intmax_t=yes
  10495. else
  10496. gt_cv_c_intmax_t=no
  10497. fi
  10498. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  10499. fi
  10500. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_c_intmax_t" >&5
  10501. $as_echo "$gt_cv_c_intmax_t" >&6; }
  10502. if test $gt_cv_c_intmax_t = yes; then
  10503. $as_echo "#define HAVE_INTMAX_T 1" >>confdefs.h
  10504. fi
  10505. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether printf() supports POSIX/XSI format strings" >&5
  10506. $as_echo_n "checking whether printf() supports POSIX/XSI format strings... " >&6; }
  10507. if test "${gt_cv_func_printf_posix+set}" = set; then :
  10508. $as_echo_n "(cached) " >&6
  10509. else
  10510. if test "$cross_compiling" = yes; then :
  10511. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10512. /* end confdefs.h. */
  10513. #if defined __NetBSD__ || defined __BEOS__ || defined _MSC_VER || defined __MINGW32__ || defined __CYGWIN__
  10514. notposix
  10515. #endif
  10516. _ACEOF
  10517. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  10518. $EGREP "notposix" >/dev/null 2>&1; then :
  10519. gt_cv_func_printf_posix="guessing no"
  10520. else
  10521. gt_cv_func_printf_posix="guessing yes"
  10522. fi
  10523. rm -f conftest*
  10524. else
  10525. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10526. /* end confdefs.h. */
  10527. #include <stdio.h>
  10528. #include <string.h>
  10529. /* The string "%2$d %1$d", with dollar characters protected from the shell's
  10530. dollar expansion (possibly an autoconf bug). */
  10531. static char format[] = { '%', '2', '$', 'd', ' ', '%', '1', '$', 'd', '\0' };
  10532. static char buf[100];
  10533. int main ()
  10534. {
  10535. sprintf (buf, format, 33, 55);
  10536. return (strcmp (buf, "55 33") != 0);
  10537. }
  10538. _ACEOF
  10539. if ac_fn_cxx_try_run "$LINENO"; then :
  10540. gt_cv_func_printf_posix=yes
  10541. else
  10542. gt_cv_func_printf_posix=no
  10543. fi
  10544. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  10545. conftest.$ac_objext conftest.beam conftest.$ac_ext
  10546. fi
  10547. fi
  10548. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_printf_posix" >&5
  10549. $as_echo "$gt_cv_func_printf_posix" >&6; }
  10550. case $gt_cv_func_printf_posix in
  10551. *yes)
  10552. $as_echo "#define HAVE_POSIX_PRINTF 1" >>confdefs.h
  10553. ;;
  10554. esac
  10555. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C Library 2.1 or newer" >&5
  10556. $as_echo_n "checking whether we are using the GNU C Library 2.1 or newer... " >&6; }
  10557. if test "${ac_cv_gnu_library_2_1+set}" = set; then :
  10558. $as_echo_n "(cached) " >&6
  10559. else
  10560. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10561. /* end confdefs.h. */
  10562. #include <features.h>
  10563. #ifdef __GNU_LIBRARY__
  10564. #if (__GLIBC__ == 2 && __GLIBC_MINOR__ >= 1) || (__GLIBC__ > 2)
  10565. Lucky GNU user
  10566. #endif
  10567. #endif
  10568. _ACEOF
  10569. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  10570. $EGREP "Lucky GNU user" >/dev/null 2>&1; then :
  10571. ac_cv_gnu_library_2_1=yes
  10572. else
  10573. ac_cv_gnu_library_2_1=no
  10574. fi
  10575. rm -f conftest*
  10576. fi
  10577. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_gnu_library_2_1" >&5
  10578. $as_echo "$ac_cv_gnu_library_2_1" >&6; }
  10579. GLIBC21="$ac_cv_gnu_library_2_1"
  10580. for ac_header in stdint.h
  10581. do :
  10582. ac_fn_cxx_check_header_mongrel "$LINENO" "stdint.h" "ac_cv_header_stdint_h" "$ac_includes_default"
  10583. if test "x$ac_cv_header_stdint_h" = x""yes; then :
  10584. cat >>confdefs.h <<_ACEOF
  10585. #define HAVE_STDINT_H 1
  10586. _ACEOF
  10587. fi
  10588. done
  10589. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SIZE_MAX" >&5
  10590. $as_echo_n "checking for SIZE_MAX... " >&6; }
  10591. if test "${gl_cv_size_max+set}" = set; then :
  10592. $as_echo_n "(cached) " >&6
  10593. else
  10594. gl_cv_size_max=
  10595. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10596. /* end confdefs.h. */
  10597. #include <limits.h>
  10598. #if HAVE_STDINT_H
  10599. #include <stdint.h>
  10600. #endif
  10601. #ifdef SIZE_MAX
  10602. Found it
  10603. #endif
  10604. _ACEOF
  10605. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  10606. $EGREP "Found it" >/dev/null 2>&1; then :
  10607. gl_cv_size_max=yes
  10608. fi
  10609. rm -f conftest*
  10610. if test -z "$gl_cv_size_max"; then
  10611. if ac_fn_cxx_compute_int "$LINENO" "sizeof (size_t) * CHAR_BIT - 1" "size_t_bits_minus_1" "#include <stddef.h>
  10612. #include <limits.h>"; then :
  10613. else
  10614. size_t_bits_minus_1=
  10615. fi
  10616. if ac_fn_cxx_compute_int "$LINENO" "sizeof (size_t) <= sizeof (unsigned int)" "fits_in_uint" "#include <stddef.h>"; then :
  10617. else
  10618. fits_in_uint=
  10619. fi
  10620. if test -n "$size_t_bits_minus_1" && test -n "$fits_in_uint"; then
  10621. if test $fits_in_uint = 1; then
  10622. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10623. /* end confdefs.h. */
  10624. #include <stddef.h>
  10625. extern size_t foo;
  10626. extern unsigned long foo;
  10627. int
  10628. main ()
  10629. {
  10630. ;
  10631. return 0;
  10632. }
  10633. _ACEOF
  10634. if ac_fn_cxx_try_compile "$LINENO"; then :
  10635. fits_in_uint=0
  10636. fi
  10637. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  10638. fi
  10639. if test $fits_in_uint = 1; then
  10640. gl_cv_size_max="(((1U << $size_t_bits_minus_1) - 1) * 2 + 1)"
  10641. else
  10642. gl_cv_size_max="(((1UL << $size_t_bits_minus_1) - 1) * 2 + 1)"
  10643. fi
  10644. else
  10645. gl_cv_size_max='((size_t)~(size_t)0)'
  10646. fi
  10647. fi
  10648. fi
  10649. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_size_max" >&5
  10650. $as_echo "$gl_cv_size_max" >&6; }
  10651. if test "$gl_cv_size_max" != yes; then
  10652. cat >>confdefs.h <<_ACEOF
  10653. #define SIZE_MAX $gl_cv_size_max
  10654. _ACEOF
  10655. fi
  10656. for ac_header in stdint.h
  10657. do :
  10658. ac_fn_cxx_check_header_mongrel "$LINENO" "stdint.h" "ac_cv_header_stdint_h" "$ac_includes_default"
  10659. if test "x$ac_cv_header_stdint_h" = x""yes; then :
  10660. cat >>confdefs.h <<_ACEOF
  10661. #define HAVE_STDINT_H 1
  10662. _ACEOF
  10663. fi
  10664. done
  10665. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CFPreferencesCopyAppValue" >&5
  10666. $as_echo_n "checking for CFPreferencesCopyAppValue... " >&6; }
  10667. if test "${gt_cv_func_CFPreferencesCopyAppValue+set}" = set; then :
  10668. $as_echo_n "(cached) " >&6
  10669. else
  10670. gt_save_LIBS="$LIBS"
  10671. LIBS="$LIBS -Wl,-framework -Wl,CoreFoundation"
  10672. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10673. /* end confdefs.h. */
  10674. #include <CoreFoundation/CFPreferences.h>
  10675. int
  10676. main ()
  10677. {
  10678. CFPreferencesCopyAppValue(NULL, NULL)
  10679. ;
  10680. return 0;
  10681. }
  10682. _ACEOF
  10683. if ac_fn_cxx_try_link "$LINENO"; then :
  10684. gt_cv_func_CFPreferencesCopyAppValue=yes
  10685. else
  10686. gt_cv_func_CFPreferencesCopyAppValue=no
  10687. fi
  10688. rm -f core conftest.err conftest.$ac_objext \
  10689. conftest$ac_exeext conftest.$ac_ext
  10690. LIBS="$gt_save_LIBS"
  10691. fi
  10692. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_CFPreferencesCopyAppValue" >&5
  10693. $as_echo "$gt_cv_func_CFPreferencesCopyAppValue" >&6; }
  10694. if test $gt_cv_func_CFPreferencesCopyAppValue = yes; then
  10695. $as_echo "#define HAVE_CFPREFERENCESCOPYAPPVALUE 1" >>confdefs.h
  10696. fi
  10697. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CFLocaleCopyCurrent" >&5
  10698. $as_echo_n "checking for CFLocaleCopyCurrent... " >&6; }
  10699. if test "${gt_cv_func_CFLocaleCopyCurrent+set}" = set; then :
  10700. $as_echo_n "(cached) " >&6
  10701. else
  10702. gt_save_LIBS="$LIBS"
  10703. LIBS="$LIBS -Wl,-framework -Wl,CoreFoundation"
  10704. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10705. /* end confdefs.h. */
  10706. #include <CoreFoundation/CFLocale.h>
  10707. int
  10708. main ()
  10709. {
  10710. CFLocaleCopyCurrent();
  10711. ;
  10712. return 0;
  10713. }
  10714. _ACEOF
  10715. if ac_fn_cxx_try_link "$LINENO"; then :
  10716. gt_cv_func_CFLocaleCopyCurrent=yes
  10717. else
  10718. gt_cv_func_CFLocaleCopyCurrent=no
  10719. fi
  10720. rm -f core conftest.err conftest.$ac_objext \
  10721. conftest$ac_exeext conftest.$ac_ext
  10722. LIBS="$gt_save_LIBS"
  10723. fi
  10724. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_CFLocaleCopyCurrent" >&5
  10725. $as_echo "$gt_cv_func_CFLocaleCopyCurrent" >&6; }
  10726. if test $gt_cv_func_CFLocaleCopyCurrent = yes; then
  10727. $as_echo "#define HAVE_CFLOCALECOPYCURRENT 1" >>confdefs.h
  10728. fi
  10729. INTL_MACOSX_LIBS=
  10730. if test $gt_cv_func_CFPreferencesCopyAppValue = yes || test $gt_cv_func_CFLocaleCopyCurrent = yes; then
  10731. INTL_MACOSX_LIBS="-Wl,-framework -Wl,CoreFoundation"
  10732. fi
  10733. ac_fn_cxx_check_type "$LINENO" "ptrdiff_t" "ac_cv_type_ptrdiff_t" "$ac_includes_default"
  10734. if test "x$ac_cv_type_ptrdiff_t" = x""yes; then :
  10735. else
  10736. $as_echo "#define ptrdiff_t long" >>confdefs.h
  10737. fi
  10738. for ac_header in stddef.h stdlib.h string.h
  10739. do :
  10740. as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
  10741. ac_fn_cxx_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
  10742. eval as_val=\$$as_ac_Header
  10743. if test "x$as_val" = x""yes; then :
  10744. cat >>confdefs.h <<_ACEOF
  10745. #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
  10746. _ACEOF
  10747. fi
  10748. done
  10749. for ac_func in asprintf fwprintf putenv setenv setlocale snprintf wcslen
  10750. do :
  10751. as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
  10752. ac_fn_cxx_check_func "$LINENO" "$ac_func" "$as_ac_var"
  10753. eval as_val=\$$as_ac_var
  10754. if test "x$as_val" = x""yes; then :
  10755. cat >>confdefs.h <<_ACEOF
  10756. #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
  10757. _ACEOF
  10758. fi
  10759. done
  10760. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether _snprintf is declared" >&5
  10761. $as_echo_n "checking whether _snprintf is declared... " >&6; }
  10762. if test "${ac_cv_have_decl__snprintf+set}" = set; then :
  10763. $as_echo_n "(cached) " >&6
  10764. else
  10765. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10766. /* end confdefs.h. */
  10767. #include <stdio.h>
  10768. int
  10769. main ()
  10770. {
  10771. #ifndef _snprintf
  10772. char *p = (char *) _snprintf;
  10773. #endif
  10774. ;
  10775. return 0;
  10776. }
  10777. _ACEOF
  10778. if ac_fn_cxx_try_compile "$LINENO"; then :
  10779. ac_cv_have_decl__snprintf=yes
  10780. else
  10781. ac_cv_have_decl__snprintf=no
  10782. fi
  10783. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  10784. fi
  10785. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_decl__snprintf" >&5
  10786. $as_echo "$ac_cv_have_decl__snprintf" >&6; }
  10787. if test $ac_cv_have_decl__snprintf = yes; then
  10788. gt_value=1
  10789. else
  10790. gt_value=0
  10791. fi
  10792. cat >>confdefs.h <<_ACEOF
  10793. #define HAVE_DECL__SNPRINTF $gt_value
  10794. _ACEOF
  10795. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether _snwprintf is declared" >&5
  10796. $as_echo_n "checking whether _snwprintf is declared... " >&6; }
  10797. if test "${ac_cv_have_decl__snwprintf+set}" = set; then :
  10798. $as_echo_n "(cached) " >&6
  10799. else
  10800. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10801. /* end confdefs.h. */
  10802. #include <stdio.h>
  10803. int
  10804. main ()
  10805. {
  10806. #ifndef _snwprintf
  10807. char *p = (char *) _snwprintf;
  10808. #endif
  10809. ;
  10810. return 0;
  10811. }
  10812. _ACEOF
  10813. if ac_fn_cxx_try_compile "$LINENO"; then :
  10814. ac_cv_have_decl__snwprintf=yes
  10815. else
  10816. ac_cv_have_decl__snwprintf=no
  10817. fi
  10818. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  10819. fi
  10820. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_decl__snwprintf" >&5
  10821. $as_echo "$ac_cv_have_decl__snwprintf" >&6; }
  10822. if test $ac_cv_have_decl__snwprintf = yes; then
  10823. gt_value=1
  10824. else
  10825. gt_value=0
  10826. fi
  10827. cat >>confdefs.h <<_ACEOF
  10828. #define HAVE_DECL__SNWPRINTF $gt_value
  10829. _ACEOF
  10830. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether getc_unlocked is declared" >&5
  10831. $as_echo_n "checking whether getc_unlocked is declared... " >&6; }
  10832. if test "${ac_cv_have_decl_getc_unlocked+set}" = set; then :
  10833. $as_echo_n "(cached) " >&6
  10834. else
  10835. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10836. /* end confdefs.h. */
  10837. #include <stdio.h>
  10838. int
  10839. main ()
  10840. {
  10841. #ifndef getc_unlocked
  10842. char *p = (char *) getc_unlocked;
  10843. #endif
  10844. ;
  10845. return 0;
  10846. }
  10847. _ACEOF
  10848. if ac_fn_cxx_try_compile "$LINENO"; then :
  10849. ac_cv_have_decl_getc_unlocked=yes
  10850. else
  10851. ac_cv_have_decl_getc_unlocked=no
  10852. fi
  10853. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  10854. fi
  10855. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_decl_getc_unlocked" >&5
  10856. $as_echo "$ac_cv_have_decl_getc_unlocked" >&6; }
  10857. if test $ac_cv_have_decl_getc_unlocked = yes; then
  10858. gt_value=1
  10859. else
  10860. gt_value=0
  10861. fi
  10862. cat >>confdefs.h <<_ACEOF
  10863. #define HAVE_DECL_GETC_UNLOCKED $gt_value
  10864. _ACEOF
  10865. case $gt_cv_func_printf_posix in
  10866. *yes) HAVE_POSIX_PRINTF=1 ;;
  10867. *) HAVE_POSIX_PRINTF=0 ;;
  10868. esac
  10869. if test "$ac_cv_func_asprintf" = yes; then
  10870. HAVE_ASPRINTF=1
  10871. else
  10872. HAVE_ASPRINTF=0
  10873. fi
  10874. if test "$ac_cv_func_snprintf" = yes; then
  10875. HAVE_SNPRINTF=1
  10876. else
  10877. HAVE_SNPRINTF=0
  10878. fi
  10879. if test "$ac_cv_func_wprintf" = yes; then
  10880. HAVE_WPRINTF=1
  10881. else
  10882. HAVE_WPRINTF=0
  10883. fi
  10884. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nl_langinfo and CODESET" >&5
  10885. $as_echo_n "checking for nl_langinfo and CODESET... " >&6; }
  10886. if test "${am_cv_langinfo_codeset+set}" = set; then :
  10887. $as_echo_n "(cached) " >&6
  10888. else
  10889. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10890. /* end confdefs.h. */
  10891. #include <langinfo.h>
  10892. int
  10893. main ()
  10894. {
  10895. char* cs = nl_langinfo(CODESET); return !cs;
  10896. ;
  10897. return 0;
  10898. }
  10899. _ACEOF
  10900. if ac_fn_cxx_try_link "$LINENO"; then :
  10901. am_cv_langinfo_codeset=yes
  10902. else
  10903. am_cv_langinfo_codeset=no
  10904. fi
  10905. rm -f core conftest.err conftest.$ac_objext \
  10906. conftest$ac_exeext conftest.$ac_ext
  10907. fi
  10908. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_langinfo_codeset" >&5
  10909. $as_echo "$am_cv_langinfo_codeset" >&6; }
  10910. if test $am_cv_langinfo_codeset = yes; then
  10911. $as_echo "#define HAVE_LANGINFO_CODESET 1" >>confdefs.h
  10912. fi
  10913. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LC_MESSAGES" >&5
  10914. $as_echo_n "checking for LC_MESSAGES... " >&6; }
  10915. if test "${gt_cv_val_LC_MESSAGES+set}" = set; then :
  10916. $as_echo_n "(cached) " >&6
  10917. else
  10918. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10919. /* end confdefs.h. */
  10920. #include <locale.h>
  10921. int
  10922. main ()
  10923. {
  10924. return LC_MESSAGES
  10925. ;
  10926. return 0;
  10927. }
  10928. _ACEOF
  10929. if ac_fn_cxx_try_link "$LINENO"; then :
  10930. gt_cv_val_LC_MESSAGES=yes
  10931. else
  10932. gt_cv_val_LC_MESSAGES=no
  10933. fi
  10934. rm -f core conftest.err conftest.$ac_objext \
  10935. conftest$ac_exeext conftest.$ac_ext
  10936. fi
  10937. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_val_LC_MESSAGES" >&5
  10938. $as_echo "$gt_cv_val_LC_MESSAGES" >&6; }
  10939. if test $gt_cv_val_LC_MESSAGES = yes; then
  10940. $as_echo "#define HAVE_LC_MESSAGES 1" >>confdefs.h
  10941. fi
  10942. if test "$enable_shared" = yes; then
  10943. case "$host_os" in
  10944. mingw* | cygwin*) is_woe32dll=yes ;;
  10945. *) is_woe32dll=no ;;
  10946. esac
  10947. else
  10948. is_woe32dll=no
  10949. fi
  10950. WOE32DLL=$is_woe32dll
  10951. case "$host_os" in
  10952. mingw* | cygwin*) is_woe32=yes ;;
  10953. *) is_woe32=no ;;
  10954. esac
  10955. WOE32=$is_woe32
  10956. if test $WOE32 = yes; then
  10957. if test -n "$ac_tool_prefix"; then
  10958. # Extract the first word of "${ac_tool_prefix}windres", so it can be a program name with args.
  10959. set dummy ${ac_tool_prefix}windres; ac_word=$2
  10960. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  10961. $as_echo_n "checking for $ac_word... " >&6; }
  10962. if test "${ac_cv_prog_WINDRES+set}" = set; then :
  10963. $as_echo_n "(cached) " >&6
  10964. else
  10965. if test -n "$WINDRES"; then
  10966. ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
  10967. else
  10968. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  10969. for as_dir in $PATH
  10970. do
  10971. IFS=$as_save_IFS
  10972. test -z "$as_dir" && as_dir=.
  10973. for ac_exec_ext in '' $ac_executable_extensions; do
  10974. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  10975. ac_cv_prog_WINDRES="${ac_tool_prefix}windres"
  10976. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  10977. break 2
  10978. fi
  10979. done
  10980. done
  10981. IFS=$as_save_IFS
  10982. fi
  10983. fi
  10984. WINDRES=$ac_cv_prog_WINDRES
  10985. if test -n "$WINDRES"; then
  10986. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES" >&5
  10987. $as_echo "$WINDRES" >&6; }
  10988. else
  10989. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  10990. $as_echo "no" >&6; }
  10991. fi
  10992. fi
  10993. if test -z "$ac_cv_prog_WINDRES"; then
  10994. ac_ct_WINDRES=$WINDRES
  10995. # Extract the first word of "windres", so it can be a program name with args.
  10996. set dummy windres; ac_word=$2
  10997. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  10998. $as_echo_n "checking for $ac_word... " >&6; }
  10999. if test "${ac_cv_prog_ac_ct_WINDRES+set}" = set; then :
  11000. $as_echo_n "(cached) " >&6
  11001. else
  11002. if test -n "$ac_ct_WINDRES"; then
  11003. ac_cv_prog_ac_ct_WINDRES="$ac_ct_WINDRES" # Let the user override the test.
  11004. else
  11005. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  11006. for as_dir in $PATH
  11007. do
  11008. IFS=$as_save_IFS
  11009. test -z "$as_dir" && as_dir=.
  11010. for ac_exec_ext in '' $ac_executable_extensions; do
  11011. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  11012. ac_cv_prog_ac_ct_WINDRES="windres"
  11013. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  11014. break 2
  11015. fi
  11016. done
  11017. done
  11018. IFS=$as_save_IFS
  11019. fi
  11020. fi
  11021. ac_ct_WINDRES=$ac_cv_prog_ac_ct_WINDRES
  11022. if test -n "$ac_ct_WINDRES"; then
  11023. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_WINDRES" >&5
  11024. $as_echo "$ac_ct_WINDRES" >&6; }
  11025. else
  11026. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  11027. $as_echo "no" >&6; }
  11028. fi
  11029. if test "x$ac_ct_WINDRES" = x; then
  11030. WINDRES=""
  11031. else
  11032. case $cross_compiling:$ac_tool_warned in
  11033. yes:)
  11034. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  11035. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  11036. ac_tool_warned=yes ;;
  11037. esac
  11038. WINDRES=$ac_ct_WINDRES
  11039. fi
  11040. else
  11041. WINDRES="$ac_cv_prog_WINDRES"
  11042. fi
  11043. fi
  11044. case "$host_os" in
  11045. hpux*) LTLIBC="" ;;
  11046. *) LTLIBC="-lc" ;;
  11047. esac
  11048. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CFPreferencesCopyAppValue" >&5
  11049. $as_echo_n "checking for CFPreferencesCopyAppValue... " >&6; }
  11050. if test "${gt_cv_func_CFPreferencesCopyAppValue+set}" = set; then :
  11051. $as_echo_n "(cached) " >&6
  11052. else
  11053. gt_save_LIBS="$LIBS"
  11054. LIBS="$LIBS -Wl,-framework -Wl,CoreFoundation"
  11055. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11056. /* end confdefs.h. */
  11057. #include <CoreFoundation/CFPreferences.h>
  11058. int
  11059. main ()
  11060. {
  11061. CFPreferencesCopyAppValue(NULL, NULL)
  11062. ;
  11063. return 0;
  11064. }
  11065. _ACEOF
  11066. if ac_fn_cxx_try_link "$LINENO"; then :
  11067. gt_cv_func_CFPreferencesCopyAppValue=yes
  11068. else
  11069. gt_cv_func_CFPreferencesCopyAppValue=no
  11070. fi
  11071. rm -f core conftest.err conftest.$ac_objext \
  11072. conftest$ac_exeext conftest.$ac_ext
  11073. LIBS="$gt_save_LIBS"
  11074. fi
  11075. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_CFPreferencesCopyAppValue" >&5
  11076. $as_echo "$gt_cv_func_CFPreferencesCopyAppValue" >&6; }
  11077. if test $gt_cv_func_CFPreferencesCopyAppValue = yes; then
  11078. $as_echo "#define HAVE_CFPREFERENCESCOPYAPPVALUE 1" >>confdefs.h
  11079. fi
  11080. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CFLocaleCopyCurrent" >&5
  11081. $as_echo_n "checking for CFLocaleCopyCurrent... " >&6; }
  11082. if test "${gt_cv_func_CFLocaleCopyCurrent+set}" = set; then :
  11083. $as_echo_n "(cached) " >&6
  11084. else
  11085. gt_save_LIBS="$LIBS"
  11086. LIBS="$LIBS -Wl,-framework -Wl,CoreFoundation"
  11087. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11088. /* end confdefs.h. */
  11089. #include <CoreFoundation/CFLocale.h>
  11090. int
  11091. main ()
  11092. {
  11093. CFLocaleCopyCurrent();
  11094. ;
  11095. return 0;
  11096. }
  11097. _ACEOF
  11098. if ac_fn_cxx_try_link "$LINENO"; then :
  11099. gt_cv_func_CFLocaleCopyCurrent=yes
  11100. else
  11101. gt_cv_func_CFLocaleCopyCurrent=no
  11102. fi
  11103. rm -f core conftest.err conftest.$ac_objext \
  11104. conftest$ac_exeext conftest.$ac_ext
  11105. LIBS="$gt_save_LIBS"
  11106. fi
  11107. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_CFLocaleCopyCurrent" >&5
  11108. $as_echo "$gt_cv_func_CFLocaleCopyCurrent" >&6; }
  11109. if test $gt_cv_func_CFLocaleCopyCurrent = yes; then
  11110. $as_echo "#define HAVE_CFLOCALECOPYCURRENT 1" >>confdefs.h
  11111. fi
  11112. INTL_MACOSX_LIBS=
  11113. if test $gt_cv_func_CFPreferencesCopyAppValue = yes || test $gt_cv_func_CFLocaleCopyCurrent = yes; then
  11114. INTL_MACOSX_LIBS="-Wl,-framework -Wl,CoreFoundation"
  11115. fi
  11116. BUILD_INCLUDED_LIBINTL=no
  11117. USE_INCLUDED_LIBINTL=no
  11118. LIBINTL=
  11119. LTLIBINTL=
  11120. POSUB=
  11121. case " $gt_needs " in
  11122. *" need-formatstring-macros "*) gt_api_version=3 ;;
  11123. *" need-ngettext "*) gt_api_version=2 ;;
  11124. *) gt_api_version=1 ;;
  11125. esac
  11126. gt_func_gnugettext_libc="gt_cv_func_gnugettext${gt_api_version}_libc"
  11127. gt_func_gnugettext_libintl="gt_cv_func_gnugettext${gt_api_version}_libintl"
  11128. if test "$USE_NLS" = "yes"; then
  11129. gt_use_preinstalled_gnugettext=no
  11130. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether included gettext is requested" >&5
  11131. $as_echo_n "checking whether included gettext is requested... " >&6; }
  11132. # Check whether --with-included-gettext was given.
  11133. if test "${with_included_gettext+set}" = set; then :
  11134. withval=$with_included_gettext; nls_cv_force_use_gnu_gettext=$withval
  11135. else
  11136. nls_cv_force_use_gnu_gettext=no
  11137. fi
  11138. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $nls_cv_force_use_gnu_gettext" >&5
  11139. $as_echo "$nls_cv_force_use_gnu_gettext" >&6; }
  11140. nls_cv_use_gnu_gettext="$nls_cv_force_use_gnu_gettext"
  11141. if test "$nls_cv_force_use_gnu_gettext" != "yes"; then
  11142. if test $gt_api_version -ge 3; then
  11143. gt_revision_test_code='
  11144. #ifndef __GNU_GETTEXT_SUPPORTED_REVISION
  11145. #define __GNU_GETTEXT_SUPPORTED_REVISION(major) ((major) == 0 ? 0 : -1)
  11146. #endif
  11147. typedef int array [2 * (__GNU_GETTEXT_SUPPORTED_REVISION(0) >= 1) - 1];
  11148. '
  11149. else
  11150. gt_revision_test_code=
  11151. fi
  11152. if test $gt_api_version -ge 2; then
  11153. gt_expression_test_code=' + * ngettext ("", "", 0)'
  11154. else
  11155. gt_expression_test_code=
  11156. fi
  11157. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU gettext in libc" >&5
  11158. $as_echo_n "checking for GNU gettext in libc... " >&6; }
  11159. if { as_var=$gt_func_gnugettext_libc; eval "test \"\${$as_var+set}\" = set"; }; then :
  11160. $as_echo_n "(cached) " >&6
  11161. else
  11162. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11163. /* end confdefs.h. */
  11164. #include <libintl.h>
  11165. $gt_revision_test_code
  11166. extern int _nl_msg_cat_cntr;
  11167. extern int *_nl_domain_bindings;
  11168. int
  11169. main ()
  11170. {
  11171. bindtextdomain ("", "");
  11172. return * gettext ("")$gt_expression_test_code + _nl_msg_cat_cntr + *_nl_domain_bindings
  11173. ;
  11174. return 0;
  11175. }
  11176. _ACEOF
  11177. if ac_fn_cxx_try_link "$LINENO"; then :
  11178. eval "$gt_func_gnugettext_libc=yes"
  11179. else
  11180. eval "$gt_func_gnugettext_libc=no"
  11181. fi
  11182. rm -f core conftest.err conftest.$ac_objext \
  11183. conftest$ac_exeext conftest.$ac_ext
  11184. fi
  11185. eval ac_res=\$$gt_func_gnugettext_libc
  11186. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  11187. $as_echo "$ac_res" >&6; }
  11188. if { eval "gt_val=\$$gt_func_gnugettext_libc"; test "$gt_val" != "yes"; }; then
  11189. use_additional=yes
  11190. acl_save_prefix="$prefix"
  11191. prefix="$acl_final_prefix"
  11192. acl_save_exec_prefix="$exec_prefix"
  11193. exec_prefix="$acl_final_exec_prefix"
  11194. eval additional_includedir=\"$includedir\"
  11195. eval additional_libdir=\"$libdir\"
  11196. exec_prefix="$acl_save_exec_prefix"
  11197. prefix="$acl_save_prefix"
  11198. # Check whether --with-libintl-prefix was given.
  11199. if test "${with_libintl_prefix+set}" = set; then :
  11200. withval=$with_libintl_prefix;
  11201. if test "X$withval" = "Xno"; then
  11202. use_additional=no
  11203. else
  11204. if test "X$withval" = "X"; then
  11205. acl_save_prefix="$prefix"
  11206. prefix="$acl_final_prefix"
  11207. acl_save_exec_prefix="$exec_prefix"
  11208. exec_prefix="$acl_final_exec_prefix"
  11209. eval additional_includedir=\"$includedir\"
  11210. eval additional_libdir=\"$libdir\"
  11211. exec_prefix="$acl_save_exec_prefix"
  11212. prefix="$acl_save_prefix"
  11213. else
  11214. additional_includedir="$withval/include"
  11215. additional_libdir="$withval/$acl_libdirstem"
  11216. fi
  11217. fi
  11218. fi
  11219. LIBINTL=
  11220. LTLIBINTL=
  11221. INCINTL=
  11222. LIBINTL_PREFIX=
  11223. rpathdirs=
  11224. ltrpathdirs=
  11225. names_already_handled=
  11226. names_next_round='intl '
  11227. while test -n "$names_next_round"; do
  11228. names_this_round="$names_next_round"
  11229. names_next_round=
  11230. for name in $names_this_round; do
  11231. already_handled=
  11232. for n in $names_already_handled; do
  11233. if test "$n" = "$name"; then
  11234. already_handled=yes
  11235. break
  11236. fi
  11237. done
  11238. if test -z "$already_handled"; then
  11239. names_already_handled="$names_already_handled $name"
  11240. uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
  11241. eval value=\"\$HAVE_LIB$uppername\"
  11242. if test -n "$value"; then
  11243. if test "$value" = yes; then
  11244. eval value=\"\$LIB$uppername\"
  11245. test -z "$value" || LIBINTL="${LIBINTL}${LIBINTL:+ }$value"
  11246. eval value=\"\$LTLIB$uppername\"
  11247. test -z "$value" || LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$value"
  11248. else
  11249. :
  11250. fi
  11251. else
  11252. found_dir=
  11253. found_la=
  11254. found_so=
  11255. found_a=
  11256. eval libname=\"$acl_libname_spec\" # typically: libname=lib$name
  11257. if test -n "$acl_shlibext"; then
  11258. shrext=".$acl_shlibext" # typically: shrext=.so
  11259. else
  11260. shrext=
  11261. fi
  11262. if test $use_additional = yes; then
  11263. dir="$additional_libdir"
  11264. if test -n "$acl_shlibext"; then
  11265. if test -f "$dir/$libname$shrext"; then
  11266. found_dir="$dir"
  11267. found_so="$dir/$libname$shrext"
  11268. else
  11269. if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
  11270. ver=`(cd "$dir" && \
  11271. for f in "$libname$shrext".*; do echo "$f"; done \
  11272. | sed -e "s,^$libname$shrext\\\\.,," \
  11273. | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
  11274. | sed 1q ) 2>/dev/null`
  11275. if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
  11276. found_dir="$dir"
  11277. found_so="$dir/$libname$shrext.$ver"
  11278. fi
  11279. else
  11280. eval library_names=\"$acl_library_names_spec\"
  11281. for f in $library_names; do
  11282. if test -f "$dir/$f"; then
  11283. found_dir="$dir"
  11284. found_so="$dir/$f"
  11285. break
  11286. fi
  11287. done
  11288. fi
  11289. fi
  11290. fi
  11291. if test "X$found_dir" = "X"; then
  11292. if test -f "$dir/$libname.$acl_libext"; then
  11293. found_dir="$dir"
  11294. found_a="$dir/$libname.$acl_libext"
  11295. fi
  11296. fi
  11297. if test "X$found_dir" != "X"; then
  11298. if test -f "$dir/$libname.la"; then
  11299. found_la="$dir/$libname.la"
  11300. fi
  11301. fi
  11302. fi
  11303. if test "X$found_dir" = "X"; then
  11304. for x in $LDFLAGS $LTLIBINTL; do
  11305. acl_save_prefix="$prefix"
  11306. prefix="$acl_final_prefix"
  11307. acl_save_exec_prefix="$exec_prefix"
  11308. exec_prefix="$acl_final_exec_prefix"
  11309. eval x=\"$x\"
  11310. exec_prefix="$acl_save_exec_prefix"
  11311. prefix="$acl_save_prefix"
  11312. case "$x" in
  11313. -L*)
  11314. dir=`echo "X$x" | sed -e 's/^X-L//'`
  11315. if test -n "$acl_shlibext"; then
  11316. if test -f "$dir/$libname$shrext"; then
  11317. found_dir="$dir"
  11318. found_so="$dir/$libname$shrext"
  11319. else
  11320. if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
  11321. ver=`(cd "$dir" && \
  11322. for f in "$libname$shrext".*; do echo "$f"; done \
  11323. | sed -e "s,^$libname$shrext\\\\.,," \
  11324. | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
  11325. | sed 1q ) 2>/dev/null`
  11326. if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
  11327. found_dir="$dir"
  11328. found_so="$dir/$libname$shrext.$ver"
  11329. fi
  11330. else
  11331. eval library_names=\"$acl_library_names_spec\"
  11332. for f in $library_names; do
  11333. if test -f "$dir/$f"; then
  11334. found_dir="$dir"
  11335. found_so="$dir/$f"
  11336. break
  11337. fi
  11338. done
  11339. fi
  11340. fi
  11341. fi
  11342. if test "X$found_dir" = "X"; then
  11343. if test -f "$dir/$libname.$acl_libext"; then
  11344. found_dir="$dir"
  11345. found_a="$dir/$libname.$acl_libext"
  11346. fi
  11347. fi
  11348. if test "X$found_dir" != "X"; then
  11349. if test -f "$dir/$libname.la"; then
  11350. found_la="$dir/$libname.la"
  11351. fi
  11352. fi
  11353. ;;
  11354. esac
  11355. if test "X$found_dir" != "X"; then
  11356. break
  11357. fi
  11358. done
  11359. fi
  11360. if test "X$found_dir" != "X"; then
  11361. LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$found_dir -l$name"
  11362. if test "X$found_so" != "X"; then
  11363. if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/$acl_libdirstem"; then
  11364. LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
  11365. else
  11366. haveit=
  11367. for x in $ltrpathdirs; do
  11368. if test "X$x" = "X$found_dir"; then
  11369. haveit=yes
  11370. break
  11371. fi
  11372. done
  11373. if test -z "$haveit"; then
  11374. ltrpathdirs="$ltrpathdirs $found_dir"
  11375. fi
  11376. if test "$acl_hardcode_direct" = yes; then
  11377. LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
  11378. else
  11379. if test -n "$acl_hardcode_libdir_flag_spec" && test "$acl_hardcode_minus_L" = no; then
  11380. LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
  11381. haveit=
  11382. for x in $rpathdirs; do
  11383. if test "X$x" = "X$found_dir"; then
  11384. haveit=yes
  11385. break
  11386. fi
  11387. done
  11388. if test -z "$haveit"; then
  11389. rpathdirs="$rpathdirs $found_dir"
  11390. fi
  11391. else
  11392. haveit=
  11393. for x in $LDFLAGS $LIBINTL; do
  11394. acl_save_prefix="$prefix"
  11395. prefix="$acl_final_prefix"
  11396. acl_save_exec_prefix="$exec_prefix"
  11397. exec_prefix="$acl_final_exec_prefix"
  11398. eval x=\"$x\"
  11399. exec_prefix="$acl_save_exec_prefix"
  11400. prefix="$acl_save_prefix"
  11401. if test "X$x" = "X-L$found_dir"; then
  11402. haveit=yes
  11403. break
  11404. fi
  11405. done
  11406. if test -z "$haveit"; then
  11407. LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir"
  11408. fi
  11409. if test "$acl_hardcode_minus_L" != no; then
  11410. LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
  11411. else
  11412. LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
  11413. fi
  11414. fi
  11415. fi
  11416. fi
  11417. else
  11418. if test "X$found_a" != "X"; then
  11419. LIBINTL="${LIBINTL}${LIBINTL:+ }$found_a"
  11420. else
  11421. LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir -l$name"
  11422. fi
  11423. fi
  11424. additional_includedir=
  11425. case "$found_dir" in
  11426. */$acl_libdirstem | */$acl_libdirstem/)
  11427. basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem/"'*$,,'`
  11428. LIBINTL_PREFIX="$basedir"
  11429. additional_includedir="$basedir/include"
  11430. ;;
  11431. esac
  11432. if test "X$additional_includedir" != "X"; then
  11433. if test "X$additional_includedir" != "X/usr/include"; then
  11434. haveit=
  11435. if test "X$additional_includedir" = "X/usr/local/include"; then
  11436. if test -n "$GCC"; then
  11437. case $host_os in
  11438. linux* | gnu* | k*bsd*-gnu) haveit=yes;;
  11439. esac
  11440. fi
  11441. fi
  11442. if test -z "$haveit"; then
  11443. for x in $CPPFLAGS $INCINTL; do
  11444. acl_save_prefix="$prefix"
  11445. prefix="$acl_final_prefix"
  11446. acl_save_exec_prefix="$exec_prefix"
  11447. exec_prefix="$acl_final_exec_prefix"
  11448. eval x=\"$x\"
  11449. exec_prefix="$acl_save_exec_prefix"
  11450. prefix="$acl_save_prefix"
  11451. if test "X$x" = "X-I$additional_includedir"; then
  11452. haveit=yes
  11453. break
  11454. fi
  11455. done
  11456. if test -z "$haveit"; then
  11457. if test -d "$additional_includedir"; then
  11458. INCINTL="${INCINTL}${INCINTL:+ }-I$additional_includedir"
  11459. fi
  11460. fi
  11461. fi
  11462. fi
  11463. fi
  11464. if test -n "$found_la"; then
  11465. save_libdir="$libdir"
  11466. case "$found_la" in
  11467. */* | *\\*) . "$found_la" ;;
  11468. *) . "./$found_la" ;;
  11469. esac
  11470. libdir="$save_libdir"
  11471. for dep in $dependency_libs; do
  11472. case "$dep" in
  11473. -L*)
  11474. additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
  11475. if test "X$additional_libdir" != "X/usr/$acl_libdirstem"; then
  11476. haveit=
  11477. if test "X$additional_libdir" = "X/usr/local/$acl_libdirstem"; then
  11478. if test -n "$GCC"; then
  11479. case $host_os in
  11480. linux* | gnu* | k*bsd*-gnu) haveit=yes;;
  11481. esac
  11482. fi
  11483. fi
  11484. if test -z "$haveit"; then
  11485. haveit=
  11486. for x in $LDFLAGS $LIBINTL; do
  11487. acl_save_prefix="$prefix"
  11488. prefix="$acl_final_prefix"
  11489. acl_save_exec_prefix="$exec_prefix"
  11490. exec_prefix="$acl_final_exec_prefix"
  11491. eval x=\"$x\"
  11492. exec_prefix="$acl_save_exec_prefix"
  11493. prefix="$acl_save_prefix"
  11494. if test "X$x" = "X-L$additional_libdir"; then
  11495. haveit=yes
  11496. break
  11497. fi
  11498. done
  11499. if test -z "$haveit"; then
  11500. if test -d "$additional_libdir"; then
  11501. LIBINTL="${LIBINTL}${LIBINTL:+ }-L$additional_libdir"
  11502. fi
  11503. fi
  11504. haveit=
  11505. for x in $LDFLAGS $LTLIBINTL; do
  11506. acl_save_prefix="$prefix"
  11507. prefix="$acl_final_prefix"
  11508. acl_save_exec_prefix="$exec_prefix"
  11509. exec_prefix="$acl_final_exec_prefix"
  11510. eval x=\"$x\"
  11511. exec_prefix="$acl_save_exec_prefix"
  11512. prefix="$acl_save_prefix"
  11513. if test "X$x" = "X-L$additional_libdir"; then
  11514. haveit=yes
  11515. break
  11516. fi
  11517. done
  11518. if test -z "$haveit"; then
  11519. if test -d "$additional_libdir"; then
  11520. LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$additional_libdir"
  11521. fi
  11522. fi
  11523. fi
  11524. fi
  11525. ;;
  11526. -R*)
  11527. dir=`echo "X$dep" | sed -e 's/^X-R//'`
  11528. if test "$enable_rpath" != no; then
  11529. haveit=
  11530. for x in $rpathdirs; do
  11531. if test "X$x" = "X$dir"; then
  11532. haveit=yes
  11533. break
  11534. fi
  11535. done
  11536. if test -z "$haveit"; then
  11537. rpathdirs="$rpathdirs $dir"
  11538. fi
  11539. haveit=
  11540. for x in $ltrpathdirs; do
  11541. if test "X$x" = "X$dir"; then
  11542. haveit=yes
  11543. break
  11544. fi
  11545. done
  11546. if test -z "$haveit"; then
  11547. ltrpathdirs="$ltrpathdirs $dir"
  11548. fi
  11549. fi
  11550. ;;
  11551. -l*)
  11552. names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
  11553. ;;
  11554. *.la)
  11555. names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
  11556. ;;
  11557. *)
  11558. LIBINTL="${LIBINTL}${LIBINTL:+ }$dep"
  11559. LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$dep"
  11560. ;;
  11561. esac
  11562. done
  11563. fi
  11564. else
  11565. LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
  11566. LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-l$name"
  11567. fi
  11568. fi
  11569. fi
  11570. done
  11571. done
  11572. if test "X$rpathdirs" != "X"; then
  11573. if test -n "$acl_hardcode_libdir_separator"; then
  11574. alldirs=
  11575. for found_dir in $rpathdirs; do
  11576. alldirs="${alldirs}${alldirs:+$acl_hardcode_libdir_separator}$found_dir"
  11577. done
  11578. acl_save_libdir="$libdir"
  11579. libdir="$alldirs"
  11580. eval flag=\"$acl_hardcode_libdir_flag_spec\"
  11581. libdir="$acl_save_libdir"
  11582. LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
  11583. else
  11584. for found_dir in $rpathdirs; do
  11585. acl_save_libdir="$libdir"
  11586. libdir="$found_dir"
  11587. eval flag=\"$acl_hardcode_libdir_flag_spec\"
  11588. libdir="$acl_save_libdir"
  11589. LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
  11590. done
  11591. fi
  11592. fi
  11593. if test "X$ltrpathdirs" != "X"; then
  11594. for found_dir in $ltrpathdirs; do
  11595. LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-R$found_dir"
  11596. done
  11597. fi
  11598. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU gettext in libintl" >&5
  11599. $as_echo_n "checking for GNU gettext in libintl... " >&6; }
  11600. if { as_var=$gt_func_gnugettext_libintl; eval "test \"\${$as_var+set}\" = set"; }; then :
  11601. $as_echo_n "(cached) " >&6
  11602. else
  11603. gt_save_CPPFLAGS="$CPPFLAGS"
  11604. CPPFLAGS="$CPPFLAGS $INCINTL"
  11605. gt_save_LIBS="$LIBS"
  11606. LIBS="$LIBS $LIBINTL"
  11607. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11608. /* end confdefs.h. */
  11609. #include <libintl.h>
  11610. $gt_revision_test_code
  11611. extern int _nl_msg_cat_cntr;
  11612. extern
  11613. #ifdef __cplusplus
  11614. "C"
  11615. #endif
  11616. const char *_nl_expand_alias (const char *);
  11617. int
  11618. main ()
  11619. {
  11620. bindtextdomain ("", "");
  11621. return * gettext ("")$gt_expression_test_code + _nl_msg_cat_cntr + *_nl_expand_alias ("")
  11622. ;
  11623. return 0;
  11624. }
  11625. _ACEOF
  11626. if ac_fn_cxx_try_link "$LINENO"; then :
  11627. eval "$gt_func_gnugettext_libintl=yes"
  11628. else
  11629. eval "$gt_func_gnugettext_libintl=no"
  11630. fi
  11631. rm -f core conftest.err conftest.$ac_objext \
  11632. conftest$ac_exeext conftest.$ac_ext
  11633. if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" != yes; } && test -n "$LIBICONV"; then
  11634. LIBS="$LIBS $LIBICONV"
  11635. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11636. /* end confdefs.h. */
  11637. #include <libintl.h>
  11638. $gt_revision_test_code
  11639. extern int _nl_msg_cat_cntr;
  11640. extern
  11641. #ifdef __cplusplus
  11642. "C"
  11643. #endif
  11644. const char *_nl_expand_alias (const char *);
  11645. int
  11646. main ()
  11647. {
  11648. bindtextdomain ("", "");
  11649. return * gettext ("")$gt_expression_test_code + _nl_msg_cat_cntr + *_nl_expand_alias ("")
  11650. ;
  11651. return 0;
  11652. }
  11653. _ACEOF
  11654. if ac_fn_cxx_try_link "$LINENO"; then :
  11655. LIBINTL="$LIBINTL $LIBICONV"
  11656. LTLIBINTL="$LTLIBINTL $LTLIBICONV"
  11657. eval "$gt_func_gnugettext_libintl=yes"
  11658. fi
  11659. rm -f core conftest.err conftest.$ac_objext \
  11660. conftest$ac_exeext conftest.$ac_ext
  11661. fi
  11662. CPPFLAGS="$gt_save_CPPFLAGS"
  11663. LIBS="$gt_save_LIBS"
  11664. fi
  11665. eval ac_res=\$$gt_func_gnugettext_libintl
  11666. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  11667. $as_echo "$ac_res" >&6; }
  11668. fi
  11669. if { eval "gt_val=\$$gt_func_gnugettext_libc"; test "$gt_val" = "yes"; } \
  11670. || { { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; } \
  11671. && test "$PACKAGE" != gettext-runtime \
  11672. && test "$PACKAGE" != gettext-tools; }; then
  11673. gt_use_preinstalled_gnugettext=yes
  11674. else
  11675. LIBINTL=
  11676. LTLIBINTL=
  11677. INCINTL=
  11678. fi
  11679. if test "$gt_use_preinstalled_gnugettext" != "yes"; then
  11680. nls_cv_use_gnu_gettext=yes
  11681. fi
  11682. fi
  11683. if test "$nls_cv_use_gnu_gettext" = "yes"; then
  11684. BUILD_INCLUDED_LIBINTL=yes
  11685. USE_INCLUDED_LIBINTL=yes
  11686. LIBINTL="\${top_builddir}/intl/libintl.a $LIBICONV $LIBTHREAD"
  11687. LTLIBINTL="\${top_builddir}/intl/libintl.a $LTLIBICONV $LTLIBTHREAD"
  11688. LIBS=`echo " $LIBS " | sed -e 's/ -lintl / /' -e 's/^ //' -e 's/ $//'`
  11689. fi
  11690. CATOBJEXT=
  11691. if test "$gt_use_preinstalled_gnugettext" = "yes" \
  11692. || test "$nls_cv_use_gnu_gettext" = "yes"; then
  11693. CATOBJEXT=.gmo
  11694. fi
  11695. if test -n "$INTL_MACOSX_LIBS"; then
  11696. if test "$gt_use_preinstalled_gnugettext" = "yes" \
  11697. || test "$nls_cv_use_gnu_gettext" = "yes"; then
  11698. LIBINTL="$LIBINTL $INTL_MACOSX_LIBS"
  11699. LTLIBINTL="$LTLIBINTL $INTL_MACOSX_LIBS"
  11700. fi
  11701. fi
  11702. if test "$gt_use_preinstalled_gnugettext" = "yes" \
  11703. || test "$nls_cv_use_gnu_gettext" = "yes"; then
  11704. $as_echo "#define ENABLE_NLS 1" >>confdefs.h
  11705. else
  11706. USE_NLS=no
  11707. fi
  11708. fi
  11709. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use NLS" >&5
  11710. $as_echo_n "checking whether to use NLS... " >&6; }
  11711. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5
  11712. $as_echo "$USE_NLS" >&6; }
  11713. if test "$USE_NLS" = "yes"; then
  11714. { $as_echo "$as_me:${as_lineno-$LINENO}: checking where the gettext function comes from" >&5
  11715. $as_echo_n "checking where the gettext function comes from... " >&6; }
  11716. if test "$gt_use_preinstalled_gnugettext" = "yes"; then
  11717. if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; }; then
  11718. gt_source="external libintl"
  11719. else
  11720. gt_source="libc"
  11721. fi
  11722. else
  11723. gt_source="included intl directory"
  11724. fi
  11725. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_source" >&5
  11726. $as_echo "$gt_source" >&6; }
  11727. fi
  11728. if test "$USE_NLS" = "yes"; then
  11729. if test "$gt_use_preinstalled_gnugettext" = "yes"; then
  11730. if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; }; then
  11731. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libintl" >&5
  11732. $as_echo_n "checking how to link with libintl... " >&6; }
  11733. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBINTL" >&5
  11734. $as_echo "$LIBINTL" >&6; }
  11735. for element in $INCINTL; do
  11736. haveit=
  11737. for x in $CPPFLAGS; do
  11738. acl_save_prefix="$prefix"
  11739. prefix="$acl_final_prefix"
  11740. acl_save_exec_prefix="$exec_prefix"
  11741. exec_prefix="$acl_final_exec_prefix"
  11742. eval x=\"$x\"
  11743. exec_prefix="$acl_save_exec_prefix"
  11744. prefix="$acl_save_prefix"
  11745. if test "X$x" = "X$element"; then
  11746. haveit=yes
  11747. break
  11748. fi
  11749. done
  11750. if test -z "$haveit"; then
  11751. CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
  11752. fi
  11753. done
  11754. fi
  11755. $as_echo "#define HAVE_GETTEXT 1" >>confdefs.h
  11756. $as_echo "#define HAVE_DCGETTEXT 1" >>confdefs.h
  11757. fi
  11758. POSUB=po
  11759. fi
  11760. if test "$PACKAGE" = gettext-runtime || test "$PACKAGE" = gettext-tools; then
  11761. BUILD_INCLUDED_LIBINTL=yes
  11762. fi
  11763. nls_cv_header_intl=
  11764. nls_cv_header_libgt=
  11765. DATADIRNAME=share
  11766. INSTOBJEXT=.mo
  11767. GENCAT=gencat
  11768. INTLOBJS=
  11769. if test "$USE_INCLUDED_LIBINTL" = yes; then
  11770. INTLOBJS="\$(GETTOBJS)"
  11771. fi
  11772. INTL_LIBTOOL_SUFFIX_PREFIX=
  11773. INTLLIBS="$LIBINTL"
  11774. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for error_at_line" >&5
  11775. $as_echo_n "checking for error_at_line... " >&6; }
  11776. if test "${ac_cv_lib_error_at_line+set}" = set; then :
  11777. $as_echo_n "(cached) " >&6
  11778. else
  11779. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11780. /* end confdefs.h. */
  11781. #include <error.h>
  11782. int
  11783. main ()
  11784. {
  11785. error_at_line (0, 0, "", 0, "an error occurred");
  11786. ;
  11787. return 0;
  11788. }
  11789. _ACEOF
  11790. if ac_fn_cxx_try_link "$LINENO"; then :
  11791. ac_cv_lib_error_at_line=yes
  11792. else
  11793. ac_cv_lib_error_at_line=no
  11794. fi
  11795. rm -f core conftest.err conftest.$ac_objext \
  11796. conftest$ac_exeext conftest.$ac_ext
  11797. fi
  11798. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_error_at_line" >&5
  11799. $as_echo "$ac_cv_lib_error_at_line" >&6; }
  11800. if test $ac_cv_lib_error_at_line = no; then
  11801. case " $LIBOBJS " in
  11802. *" error.$ac_objext "* ) ;;
  11803. *) LIBOBJS="$LIBOBJS error.$ac_objext"
  11804. ;;
  11805. esac
  11806. fi
  11807. if test $ac_cv_c_compiler_gnu = yes; then
  11808. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC needs -traditional" >&5
  11809. $as_echo_n "checking whether $CC needs -traditional... " >&6; }
  11810. if test "${ac_cv_prog_gcc_traditional+set}" = set; then :
  11811. $as_echo_n "(cached) " >&6
  11812. else
  11813. ac_pattern="Autoconf.*'x'"
  11814. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11815. /* end confdefs.h. */
  11816. #include <sgtty.h>
  11817. Autoconf TIOCGETP
  11818. _ACEOF
  11819. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  11820. $EGREP "$ac_pattern" >/dev/null 2>&1; then :
  11821. ac_cv_prog_gcc_traditional=yes
  11822. else
  11823. ac_cv_prog_gcc_traditional=no
  11824. fi
  11825. rm -f conftest*
  11826. if test $ac_cv_prog_gcc_traditional = no; then
  11827. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11828. /* end confdefs.h. */
  11829. #include <termio.h>
  11830. Autoconf TCGETA
  11831. _ACEOF
  11832. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  11833. $EGREP "$ac_pattern" >/dev/null 2>&1; then :
  11834. ac_cv_prog_gcc_traditional=yes
  11835. fi
  11836. rm -f conftest*
  11837. fi
  11838. fi
  11839. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_gcc_traditional" >&5
  11840. $as_echo "$ac_cv_prog_gcc_traditional" >&6; }
  11841. if test $ac_cv_prog_gcc_traditional = yes; then
  11842. CC="$CC -traditional"
  11843. fi
  11844. fi
  11845. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working memcmp" >&5
  11846. $as_echo_n "checking for working memcmp... " >&6; }
  11847. if test "${ac_cv_func_memcmp_working+set}" = set; then :
  11848. $as_echo_n "(cached) " >&6
  11849. else
  11850. if test "$cross_compiling" = yes; then :
  11851. ac_cv_func_memcmp_working=no
  11852. else
  11853. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11854. /* end confdefs.h. */
  11855. $ac_includes_default
  11856. int
  11857. main ()
  11858. {
  11859. /* Some versions of memcmp are not 8-bit clean. */
  11860. char c0 = '\100', c1 = '\200', c2 = '\201';
  11861. if (memcmp(&c0, &c2, 1) >= 0 || memcmp(&c1, &c2, 1) >= 0)
  11862. return 1;
  11863. /* The Next x86 OpenStep bug shows up only when comparing 16 bytes
  11864. or more and with at least one buffer not starting on a 4-byte boundary.
  11865. William Lewis provided this test program. */
  11866. {
  11867. char foo[21];
  11868. char bar[21];
  11869. int i;
  11870. for (i = 0; i < 4; i++)
  11871. {
  11872. char *a = foo + i;
  11873. char *b = bar + i;
  11874. strcpy (a, "--------01111111");
  11875. strcpy (b, "--------10000000");
  11876. if (memcmp (a, b, 16) >= 0)
  11877. return 1;
  11878. }
  11879. return 0;
  11880. }
  11881. ;
  11882. return 0;
  11883. }
  11884. _ACEOF
  11885. if ac_fn_cxx_try_run "$LINENO"; then :
  11886. ac_cv_func_memcmp_working=yes
  11887. else
  11888. ac_cv_func_memcmp_working=no
  11889. fi
  11890. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  11891. conftest.$ac_objext conftest.beam conftest.$ac_ext
  11892. fi
  11893. fi
  11894. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_memcmp_working" >&5
  11895. $as_echo "$ac_cv_func_memcmp_working" >&6; }
  11896. test $ac_cv_func_memcmp_working = no && case " $LIBOBJS " in
  11897. *" memcmp.$ac_objext "* ) ;;
  11898. *) LIBOBJS="$LIBOBJS memcmp.$ac_objext"
  11899. ;;
  11900. esac
  11901. for ac_func in $ac_func_list
  11902. do :
  11903. as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
  11904. ac_fn_cxx_check_func "$LINENO" "$ac_func" "$as_ac_var"
  11905. eval as_val=\$$as_ac_var
  11906. if test "x$as_val" = x""yes; then :
  11907. cat >>confdefs.h <<_ACEOF
  11908. #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
  11909. _ACEOF
  11910. fi
  11911. done
  11912. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mktime" >&5
  11913. $as_echo_n "checking for working mktime... " >&6; }
  11914. if test "${ac_cv_func_working_mktime+set}" = set; then :
  11915. $as_echo_n "(cached) " >&6
  11916. else
  11917. if test "$cross_compiling" = yes; then :
  11918. ac_cv_func_working_mktime=no
  11919. else
  11920. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11921. /* end confdefs.h. */
  11922. /* Test program from Paul Eggert and Tony Leneis. */
  11923. #ifdef TIME_WITH_SYS_TIME
  11924. # include <sys/time.h>
  11925. # include <time.h>
  11926. #else
  11927. # ifdef HAVE_SYS_TIME_H
  11928. # include <sys/time.h>
  11929. # else
  11930. # include <time.h>
  11931. # endif
  11932. #endif
  11933. #include <limits.h>
  11934. #include <stdlib.h>
  11935. #ifdef HAVE_UNISTD_H
  11936. # include <unistd.h>
  11937. #endif
  11938. #ifndef HAVE_ALARM
  11939. # define alarm(X) /* empty */
  11940. #endif
  11941. /* Work around redefinition to rpl_putenv by other config tests. */
  11942. #undef putenv
  11943. static time_t time_t_max;
  11944. static time_t time_t_min;
  11945. /* Values we'll use to set the TZ environment variable. */
  11946. static char *tz_strings[] = {
  11947. (char *) 0, "TZ=GMT0", "TZ=JST-9",
  11948. "TZ=EST+3EDT+2,M10.1.0/00:00:00,M2.3.0/00:00:00"
  11949. };
  11950. #define N_STRINGS (sizeof (tz_strings) / sizeof (tz_strings[0]))
  11951. /* Return 0 if mktime fails to convert a date in the spring-forward gap.
  11952. Based on a problem report from Andreas Jaeger. */
  11953. static int
  11954. spring_forward_gap ()
  11955. {
  11956. /* glibc (up to about 1998-10-07) failed this test. */
  11957. struct tm tm;
  11958. /* Use the portable POSIX.1 specification "TZ=PST8PDT,M4.1.0,M10.5.0"
  11959. instead of "TZ=America/Vancouver" in order to detect the bug even
  11960. on systems that don't support the Olson extension, or don't have the
  11961. full zoneinfo tables installed. */
  11962. putenv ("TZ=PST8PDT,M4.1.0,M10.5.0");
  11963. tm.tm_year = 98;
  11964. tm.tm_mon = 3;
  11965. tm.tm_mday = 5;
  11966. tm.tm_hour = 2;
  11967. tm.tm_min = 0;
  11968. tm.tm_sec = 0;
  11969. tm.tm_isdst = -1;
  11970. return mktime (&tm) != (time_t) -1;
  11971. }
  11972. static int
  11973. mktime_test1 (now)
  11974. time_t now;
  11975. {
  11976. struct tm *lt;
  11977. return ! (lt = localtime (&now)) || mktime (lt) == now;
  11978. }
  11979. static int
  11980. mktime_test (now)
  11981. time_t now;
  11982. {
  11983. return (mktime_test1 (now)
  11984. && mktime_test1 ((time_t) (time_t_max - now))
  11985. && mktime_test1 ((time_t) (time_t_min + now)));
  11986. }
  11987. static int
  11988. irix_6_4_bug ()
  11989. {
  11990. /* Based on code from Ariel Faigon. */
  11991. struct tm tm;
  11992. tm.tm_year = 96;
  11993. tm.tm_mon = 3;
  11994. tm.tm_mday = 0;
  11995. tm.tm_hour = 0;
  11996. tm.tm_min = 0;
  11997. tm.tm_sec = 0;
  11998. tm.tm_isdst = -1;
  11999. mktime (&tm);
  12000. return tm.tm_mon == 2 && tm.tm_mday == 31;
  12001. }
  12002. static int
  12003. bigtime_test (j)
  12004. int j;
  12005. {
  12006. struct tm tm;
  12007. time_t now;
  12008. tm.tm_year = tm.tm_mon = tm.tm_mday = tm.tm_hour = tm.tm_min = tm.tm_sec = j;
  12009. now = mktime (&tm);
  12010. if (now != (time_t) -1)
  12011. {
  12012. struct tm *lt = localtime (&now);
  12013. if (! (lt
  12014. && lt->tm_year == tm.tm_year
  12015. && lt->tm_mon == tm.tm_mon
  12016. && lt->tm_mday == tm.tm_mday
  12017. && lt->tm_hour == tm.tm_hour
  12018. && lt->tm_min == tm.tm_min
  12019. && lt->tm_sec == tm.tm_sec
  12020. && lt->tm_yday == tm.tm_yday
  12021. && lt->tm_wday == tm.tm_wday
  12022. && ((lt->tm_isdst < 0 ? -1 : 0 < lt->tm_isdst)
  12023. == (tm.tm_isdst < 0 ? -1 : 0 < tm.tm_isdst))))
  12024. return 0;
  12025. }
  12026. return 1;
  12027. }
  12028. static int
  12029. year_2050_test ()
  12030. {
  12031. /* The correct answer for 2050-02-01 00:00:00 in Pacific time,
  12032. ignoring leap seconds. */
  12033. unsigned long int answer = 2527315200UL;
  12034. struct tm tm;
  12035. time_t t;
  12036. tm.tm_year = 2050 - 1900;
  12037. tm.tm_mon = 2 - 1;
  12038. tm.tm_mday = 1;
  12039. tm.tm_hour = tm.tm_min = tm.tm_sec = 0;
  12040. tm.tm_isdst = -1;
  12041. /* Use the portable POSIX.1 specification "TZ=PST8PDT,M4.1.0,M10.5.0"
  12042. instead of "TZ=America/Vancouver" in order to detect the bug even
  12043. on systems that don't support the Olson extension, or don't have the
  12044. full zoneinfo tables installed. */
  12045. putenv ("TZ=PST8PDT,M4.1.0,M10.5.0");
  12046. t = mktime (&tm);
  12047. /* Check that the result is either a failure, or close enough
  12048. to the correct answer that we can assume the discrepancy is
  12049. due to leap seconds. */
  12050. return (t == (time_t) -1
  12051. || (0 < t && answer - 120 <= t && t <= answer + 120));
  12052. }
  12053. int
  12054. main ()
  12055. {
  12056. time_t t, delta;
  12057. int i, j;
  12058. /* This test makes some buggy mktime implementations loop.
  12059. Give up after 60 seconds; a mktime slower than that
  12060. isn't worth using anyway. */
  12061. alarm (60);
  12062. for (;;)
  12063. {
  12064. t = (time_t_max << 1) + 1;
  12065. if (t <= time_t_max)
  12066. break;
  12067. time_t_max = t;
  12068. }
  12069. time_t_min = - ((time_t) ~ (time_t) 0 == (time_t) -1) - time_t_max;
  12070. delta = time_t_max / 997; /* a suitable prime number */
  12071. for (i = 0; i < N_STRINGS; i++)
  12072. {
  12073. if (tz_strings[i])
  12074. putenv (tz_strings[i]);
  12075. for (t = 0; t <= time_t_max - delta; t += delta)
  12076. if (! mktime_test (t))
  12077. return 1;
  12078. if (! (mktime_test ((time_t) 1)
  12079. && mktime_test ((time_t) (60 * 60))
  12080. && mktime_test ((time_t) (60 * 60 * 24))))
  12081. return 1;
  12082. for (j = 1; ; j <<= 1)
  12083. if (! bigtime_test (j))
  12084. return 1;
  12085. else if (INT_MAX / 2 < j)
  12086. break;
  12087. if (! bigtime_test (INT_MAX))
  12088. return 1;
  12089. }
  12090. return ! (irix_6_4_bug () && spring_forward_gap () && year_2050_test ());
  12091. }
  12092. _ACEOF
  12093. if ac_fn_cxx_try_run "$LINENO"; then :
  12094. ac_cv_func_working_mktime=yes
  12095. else
  12096. ac_cv_func_working_mktime=no
  12097. fi
  12098. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  12099. conftest.$ac_objext conftest.beam conftest.$ac_ext
  12100. fi
  12101. fi
  12102. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_working_mktime" >&5
  12103. $as_echo "$ac_cv_func_working_mktime" >&6; }
  12104. if test $ac_cv_func_working_mktime = no; then
  12105. case " $LIBOBJS " in
  12106. *" mktime.$ac_objext "* ) ;;
  12107. *) LIBOBJS="$LIBOBJS mktime.$ac_objext"
  12108. ;;
  12109. esac
  12110. fi
  12111. for ac_func in getpagesize
  12112. do :
  12113. ac_fn_cxx_check_func "$LINENO" "getpagesize" "ac_cv_func_getpagesize"
  12114. if test "x$ac_cv_func_getpagesize" = x""yes; then :
  12115. cat >>confdefs.h <<_ACEOF
  12116. #define HAVE_GETPAGESIZE 1
  12117. _ACEOF
  12118. fi
  12119. done
  12120. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mmap" >&5
  12121. $as_echo_n "checking for working mmap... " >&6; }
  12122. if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then :
  12123. $as_echo_n "(cached) " >&6
  12124. else
  12125. if test "$cross_compiling" = yes; then :
  12126. ac_cv_func_mmap_fixed_mapped=no
  12127. else
  12128. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12129. /* end confdefs.h. */
  12130. $ac_includes_default
  12131. /* malloc might have been renamed as rpl_malloc. */
  12132. #undef malloc
  12133. /* Thanks to Mike Haertel and Jim Avera for this test.
  12134. Here is a matrix of mmap possibilities:
  12135. mmap private not fixed
  12136. mmap private fixed at somewhere currently unmapped
  12137. mmap private fixed at somewhere already mapped
  12138. mmap shared not fixed
  12139. mmap shared fixed at somewhere currently unmapped
  12140. mmap shared fixed at somewhere already mapped
  12141. For private mappings, we should verify that changes cannot be read()
  12142. back from the file, nor mmap's back from the file at a different
  12143. address. (There have been systems where private was not correctly
  12144. implemented like the infamous i386 svr4.0, and systems where the
  12145. VM page cache was not coherent with the file system buffer cache
  12146. like early versions of FreeBSD and possibly contemporary NetBSD.)
  12147. For shared mappings, we should conversely verify that changes get
  12148. propagated back to all the places they're supposed to be.
  12149. Grep wants private fixed already mapped.
  12150. The main things grep needs to know about mmap are:
  12151. * does it exist and is it safe to write into the mmap'd area
  12152. * how to use it (BSD variants) */
  12153. #include <fcntl.h>
  12154. #include <sys/mman.h>
  12155. #if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
  12156. char *malloc ();
  12157. #endif
  12158. /* This mess was copied from the GNU getpagesize.h. */
  12159. #ifndef HAVE_GETPAGESIZE
  12160. # ifdef _SC_PAGESIZE
  12161. # define getpagesize() sysconf(_SC_PAGESIZE)
  12162. # else /* no _SC_PAGESIZE */
  12163. # ifdef HAVE_SYS_PARAM_H
  12164. # include <sys/param.h>
  12165. # ifdef EXEC_PAGESIZE
  12166. # define getpagesize() EXEC_PAGESIZE
  12167. # else /* no EXEC_PAGESIZE */
  12168. # ifdef NBPG
  12169. # define getpagesize() NBPG * CLSIZE
  12170. # ifndef CLSIZE
  12171. # define CLSIZE 1
  12172. # endif /* no CLSIZE */
  12173. # else /* no NBPG */
  12174. # ifdef NBPC
  12175. # define getpagesize() NBPC
  12176. # else /* no NBPC */
  12177. # ifdef PAGESIZE
  12178. # define getpagesize() PAGESIZE
  12179. # endif /* PAGESIZE */
  12180. # endif /* no NBPC */
  12181. # endif /* no NBPG */
  12182. # endif /* no EXEC_PAGESIZE */
  12183. # else /* no HAVE_SYS_PARAM_H */
  12184. # define getpagesize() 8192 /* punt totally */
  12185. # endif /* no HAVE_SYS_PARAM_H */
  12186. # endif /* no _SC_PAGESIZE */
  12187. #endif /* no HAVE_GETPAGESIZE */
  12188. int
  12189. main ()
  12190. {
  12191. char *data, *data2, *data3;
  12192. const char *cdata2;
  12193. int i, pagesize;
  12194. int fd, fd2;
  12195. pagesize = getpagesize ();
  12196. /* First, make a file with some known garbage in it. */
  12197. data = (char *) malloc (pagesize);
  12198. if (!data)
  12199. return 1;
  12200. for (i = 0; i < pagesize; ++i)
  12201. *(data + i) = rand ();
  12202. umask (0);
  12203. fd = creat ("conftest.mmap", 0600);
  12204. if (fd < 0)
  12205. return 2;
  12206. if (write (fd, data, pagesize) != pagesize)
  12207. return 3;
  12208. close (fd);
  12209. /* Next, check that the tail of a page is zero-filled. File must have
  12210. non-zero length, otherwise we risk SIGBUS for entire page. */
  12211. fd2 = open ("conftest.txt", O_RDWR | O_CREAT | O_TRUNC, 0600);
  12212. if (fd2 < 0)
  12213. return 4;
  12214. cdata2 = "";
  12215. if (write (fd2, cdata2, 1) != 1)
  12216. return 5;
  12217. data2 = (char *) mmap (0, pagesize, PROT_READ | PROT_WRITE, MAP_SHARED, fd2, 0L);
  12218. if (data2 == MAP_FAILED)
  12219. return 6;
  12220. for (i = 0; i < pagesize; ++i)
  12221. if (*(data2 + i))
  12222. return 7;
  12223. close (fd2);
  12224. if (munmap (data2, pagesize))
  12225. return 8;
  12226. /* Next, try to mmap the file at a fixed address which already has
  12227. something else allocated at it. If we can, also make sure that
  12228. we see the same garbage. */
  12229. fd = open ("conftest.mmap", O_RDWR);
  12230. if (fd < 0)
  12231. return 9;
  12232. if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
  12233. MAP_PRIVATE | MAP_FIXED, fd, 0L))
  12234. return 10;
  12235. for (i = 0; i < pagesize; ++i)
  12236. if (*(data + i) != *(data2 + i))
  12237. return 11;
  12238. /* Finally, make sure that changes to the mapped area do not
  12239. percolate back to the file as seen by read(). (This is a bug on
  12240. some variants of i386 svr4.0.) */
  12241. for (i = 0; i < pagesize; ++i)
  12242. *(data2 + i) = *(data2 + i) + 1;
  12243. data3 = (char *) malloc (pagesize);
  12244. if (!data3)
  12245. return 12;
  12246. if (read (fd, data3, pagesize) != pagesize)
  12247. return 13;
  12248. for (i = 0; i < pagesize; ++i)
  12249. if (*(data + i) != *(data3 + i))
  12250. return 14;
  12251. close (fd);
  12252. return 0;
  12253. }
  12254. _ACEOF
  12255. if ac_fn_cxx_try_run "$LINENO"; then :
  12256. ac_cv_func_mmap_fixed_mapped=yes
  12257. else
  12258. ac_cv_func_mmap_fixed_mapped=no
  12259. fi
  12260. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  12261. conftest.$ac_objext conftest.beam conftest.$ac_ext
  12262. fi
  12263. fi
  12264. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_mmap_fixed_mapped" >&5
  12265. $as_echo "$ac_cv_func_mmap_fixed_mapped" >&6; }
  12266. if test $ac_cv_func_mmap_fixed_mapped = yes; then
  12267. $as_echo "#define HAVE_MMAP 1" >>confdefs.h
  12268. fi
  12269. rm -f conftest.mmap conftest.txt
  12270. for ac_header in sys/select.h sys/socket.h
  12271. do :
  12272. as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
  12273. ac_fn_cxx_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
  12274. eval as_val=\$$as_ac_Header
  12275. if test "x$as_val" = x""yes; then :
  12276. cat >>confdefs.h <<_ACEOF
  12277. #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
  12278. _ACEOF
  12279. fi
  12280. done
  12281. { $as_echo "$as_me:${as_lineno-$LINENO}: checking types of arguments for select" >&5
  12282. $as_echo_n "checking types of arguments for select... " >&6; }
  12283. if test "${ac_cv_func_select_args+set}" = set; then :
  12284. $as_echo_n "(cached) " >&6
  12285. else
  12286. for ac_arg234 in 'fd_set *' 'int *' 'void *'; do
  12287. for ac_arg1 in 'int' 'size_t' 'unsigned long int' 'unsigned int'; do
  12288. for ac_arg5 in 'struct timeval *' 'const struct timeval *'; do
  12289. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12290. /* end confdefs.h. */
  12291. $ac_includes_default
  12292. #ifdef HAVE_SYS_SELECT_H
  12293. # include <sys/select.h>
  12294. #endif
  12295. #ifdef HAVE_SYS_SOCKET_H
  12296. # include <sys/socket.h>
  12297. #endif
  12298. int
  12299. main ()
  12300. {
  12301. extern int select ($ac_arg1,
  12302. $ac_arg234, $ac_arg234, $ac_arg234,
  12303. $ac_arg5);
  12304. ;
  12305. return 0;
  12306. }
  12307. _ACEOF
  12308. if ac_fn_cxx_try_compile "$LINENO"; then :
  12309. ac_cv_func_select_args="$ac_arg1,$ac_arg234,$ac_arg5"; break 3
  12310. fi
  12311. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  12312. done
  12313. done
  12314. done
  12315. # Provide a safe default value.
  12316. : ${ac_cv_func_select_args='int,int *,struct timeval *'}
  12317. fi
  12318. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_select_args" >&5
  12319. $as_echo "$ac_cv_func_select_args" >&6; }
  12320. ac_save_IFS=$IFS; IFS=','
  12321. set dummy `echo "$ac_cv_func_select_args" | sed 's/\*/\*/g'`
  12322. IFS=$ac_save_IFS
  12323. shift
  12324. cat >>confdefs.h <<_ACEOF
  12325. #define SELECT_TYPE_ARG1 $1
  12326. _ACEOF
  12327. cat >>confdefs.h <<_ACEOF
  12328. #define SELECT_TYPE_ARG234 ($2)
  12329. _ACEOF
  12330. cat >>confdefs.h <<_ACEOF
  12331. #define SELECT_TYPE_ARG5 ($3)
  12332. _ACEOF
  12333. rm -f conftest*
  12334. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether lstat correctly handles trailing slash" >&5
  12335. $as_echo_n "checking whether lstat correctly handles trailing slash... " >&6; }
  12336. if test "${ac_cv_func_lstat_dereferences_slashed_symlink+set}" = set; then :
  12337. $as_echo_n "(cached) " >&6
  12338. else
  12339. rm -f conftest.sym conftest.file
  12340. echo >conftest.file
  12341. if test "$as_ln_s" = "ln -s" && ln -s conftest.file conftest.sym; then
  12342. if test "$cross_compiling" = yes; then :
  12343. ac_cv_func_lstat_dereferences_slashed_symlink=no
  12344. else
  12345. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12346. /* end confdefs.h. */
  12347. $ac_includes_default
  12348. int
  12349. main ()
  12350. {
  12351. struct stat sbuf;
  12352. /* Linux will dereference the symlink and fail, as required by POSIX.
  12353. That is better in the sense that it means we will not
  12354. have to compile and use the lstat wrapper. */
  12355. return lstat ("conftest.sym/", &sbuf) == 0;
  12356. ;
  12357. return 0;
  12358. }
  12359. _ACEOF
  12360. if ac_fn_cxx_try_run "$LINENO"; then :
  12361. ac_cv_func_lstat_dereferences_slashed_symlink=yes
  12362. else
  12363. ac_cv_func_lstat_dereferences_slashed_symlink=no
  12364. fi
  12365. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  12366. conftest.$ac_objext conftest.beam conftest.$ac_ext
  12367. fi
  12368. else
  12369. # If the `ln -s' command failed, then we probably don't even
  12370. # have an lstat function.
  12371. ac_cv_func_lstat_dereferences_slashed_symlink=no
  12372. fi
  12373. rm -f conftest.sym conftest.file
  12374. fi
  12375. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_lstat_dereferences_slashed_symlink" >&5
  12376. $as_echo "$ac_cv_func_lstat_dereferences_slashed_symlink" >&6; }
  12377. test $ac_cv_func_lstat_dereferences_slashed_symlink = yes &&
  12378. cat >>confdefs.h <<_ACEOF
  12379. #define LSTAT_FOLLOWS_SLASHED_SYMLINK 1
  12380. _ACEOF
  12381. if test "x$ac_cv_func_lstat_dereferences_slashed_symlink" = xno; then
  12382. case " $LIBOBJS " in
  12383. *" lstat.$ac_objext "* ) ;;
  12384. *) LIBOBJS="$LIBOBJS lstat.$ac_objext"
  12385. ;;
  12386. esac
  12387. fi
  12388. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stat accepts an empty string" >&5
  12389. $as_echo_n "checking whether stat accepts an empty string... " >&6; }
  12390. if test "${ac_cv_func_stat_empty_string_bug+set}" = set; then :
  12391. $as_echo_n "(cached) " >&6
  12392. else
  12393. if test "$cross_compiling" = yes; then :
  12394. ac_cv_func_stat_empty_string_bug=yes
  12395. else
  12396. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12397. /* end confdefs.h. */
  12398. $ac_includes_default
  12399. int
  12400. main ()
  12401. {
  12402. struct stat sbuf;
  12403. return stat ("", &sbuf) == 0;
  12404. ;
  12405. return 0;
  12406. }
  12407. _ACEOF
  12408. if ac_fn_cxx_try_run "$LINENO"; then :
  12409. ac_cv_func_stat_empty_string_bug=no
  12410. else
  12411. ac_cv_func_stat_empty_string_bug=yes
  12412. fi
  12413. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  12414. conftest.$ac_objext conftest.beam conftest.$ac_ext
  12415. fi
  12416. fi
  12417. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_stat_empty_string_bug" >&5
  12418. $as_echo "$ac_cv_func_stat_empty_string_bug" >&6; }
  12419. if test $ac_cv_func_stat_empty_string_bug = yes; then
  12420. case " $LIBOBJS " in
  12421. *" stat.$ac_objext "* ) ;;
  12422. *) LIBOBJS="$LIBOBJS stat.$ac_objext"
  12423. ;;
  12424. esac
  12425. cat >>confdefs.h <<_ACEOF
  12426. #define HAVE_STAT_EMPTY_STRING_BUG 1
  12427. _ACEOF
  12428. fi
  12429. for ac_func in strftime
  12430. do :
  12431. ac_fn_cxx_check_func "$LINENO" "strftime" "ac_cv_func_strftime"
  12432. if test "x$ac_cv_func_strftime" = x""yes; then :
  12433. cat >>confdefs.h <<_ACEOF
  12434. #define HAVE_STRFTIME 1
  12435. _ACEOF
  12436. else
  12437. # strftime is in -lintl on SCO UNIX.
  12438. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for strftime in -lintl" >&5
  12439. $as_echo_n "checking for strftime in -lintl... " >&6; }
  12440. if test "${ac_cv_lib_intl_strftime+set}" = set; then :
  12441. $as_echo_n "(cached) " >&6
  12442. else
  12443. ac_check_lib_save_LIBS=$LIBS
  12444. LIBS="-lintl $LIBS"
  12445. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12446. /* end confdefs.h. */
  12447. /* Override any GCC internal prototype to avoid an error.
  12448. Use char because int might match the return type of a GCC
  12449. builtin and then its argument prototype would still apply. */
  12450. #ifdef __cplusplus
  12451. extern "C"
  12452. #endif
  12453. char strftime ();
  12454. int
  12455. main ()
  12456. {
  12457. return strftime ();
  12458. ;
  12459. return 0;
  12460. }
  12461. _ACEOF
  12462. if ac_fn_cxx_try_link "$LINENO"; then :
  12463. ac_cv_lib_intl_strftime=yes
  12464. else
  12465. ac_cv_lib_intl_strftime=no
  12466. fi
  12467. rm -f core conftest.err conftest.$ac_objext \
  12468. conftest$ac_exeext conftest.$ac_ext
  12469. LIBS=$ac_check_lib_save_LIBS
  12470. fi
  12471. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_intl_strftime" >&5
  12472. $as_echo "$ac_cv_lib_intl_strftime" >&6; }
  12473. if test "x$ac_cv_lib_intl_strftime" = x""yes; then :
  12474. $as_echo "#define HAVE_STRFTIME 1" >>confdefs.h
  12475. LIBS="-lintl $LIBS"
  12476. fi
  12477. fi
  12478. done
  12479. for ac_func in vprintf
  12480. do :
  12481. ac_fn_cxx_check_func "$LINENO" "vprintf" "ac_cv_func_vprintf"
  12482. if test "x$ac_cv_func_vprintf" = x""yes; then :
  12483. cat >>confdefs.h <<_ACEOF
  12484. #define HAVE_VPRINTF 1
  12485. _ACEOF
  12486. ac_fn_cxx_check_func "$LINENO" "_doprnt" "ac_cv_func__doprnt"
  12487. if test "x$ac_cv_func__doprnt" = x""yes; then :
  12488. $as_echo "#define HAVE_DOPRNT 1" >>confdefs.h
  12489. fi
  12490. fi
  12491. done
  12492. for ac_header in vfork.h
  12493. do :
  12494. ac_fn_cxx_check_header_mongrel "$LINENO" "vfork.h" "ac_cv_header_vfork_h" "$ac_includes_default"
  12495. if test "x$ac_cv_header_vfork_h" = x""yes; then :
  12496. cat >>confdefs.h <<_ACEOF
  12497. #define HAVE_VFORK_H 1
  12498. _ACEOF
  12499. fi
  12500. done
  12501. for ac_func in fork vfork
  12502. do :
  12503. as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
  12504. ac_fn_cxx_check_func "$LINENO" "$ac_func" "$as_ac_var"
  12505. eval as_val=\$$as_ac_var
  12506. if test "x$as_val" = x""yes; then :
  12507. cat >>confdefs.h <<_ACEOF
  12508. #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
  12509. _ACEOF
  12510. fi
  12511. done
  12512. if test "x$ac_cv_func_fork" = xyes; then
  12513. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working fork" >&5
  12514. $as_echo_n "checking for working fork... " >&6; }
  12515. if test "${ac_cv_func_fork_works+set}" = set; then :
  12516. $as_echo_n "(cached) " >&6
  12517. else
  12518. if test "$cross_compiling" = yes; then :
  12519. ac_cv_func_fork_works=cross
  12520. else
  12521. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12522. /* end confdefs.h. */
  12523. $ac_includes_default
  12524. int
  12525. main ()
  12526. {
  12527. /* By Ruediger Kuhlmann. */
  12528. return fork () < 0;
  12529. ;
  12530. return 0;
  12531. }
  12532. _ACEOF
  12533. if ac_fn_cxx_try_run "$LINENO"; then :
  12534. ac_cv_func_fork_works=yes
  12535. else
  12536. ac_cv_func_fork_works=no
  12537. fi
  12538. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  12539. conftest.$ac_objext conftest.beam conftest.$ac_ext
  12540. fi
  12541. fi
  12542. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_fork_works" >&5
  12543. $as_echo "$ac_cv_func_fork_works" >&6; }
  12544. else
  12545. ac_cv_func_fork_works=$ac_cv_func_fork
  12546. fi
  12547. if test "x$ac_cv_func_fork_works" = xcross; then
  12548. case $host in
  12549. *-*-amigaos* | *-*-msdosdjgpp*)
  12550. # Override, as these systems have only a dummy fork() stub
  12551. ac_cv_func_fork_works=no
  12552. ;;
  12553. *)
  12554. ac_cv_func_fork_works=yes
  12555. ;;
  12556. esac
  12557. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
  12558. $as_echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
  12559. fi
  12560. ac_cv_func_vfork_works=$ac_cv_func_vfork
  12561. if test "x$ac_cv_func_vfork" = xyes; then
  12562. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working vfork" >&5
  12563. $as_echo_n "checking for working vfork... " >&6; }
  12564. if test "${ac_cv_func_vfork_works+set}" = set; then :
  12565. $as_echo_n "(cached) " >&6
  12566. else
  12567. if test "$cross_compiling" = yes; then :
  12568. ac_cv_func_vfork_works=cross
  12569. else
  12570. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12571. /* end confdefs.h. */
  12572. /* Thanks to Paul Eggert for this test. */
  12573. $ac_includes_default
  12574. #include <sys/wait.h>
  12575. #ifdef HAVE_VFORK_H
  12576. # include <vfork.h>
  12577. #endif
  12578. /* On some sparc systems, changes by the child to local and incoming
  12579. argument registers are propagated back to the parent. The compiler
  12580. is told about this with #include <vfork.h>, but some compilers
  12581. (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
  12582. static variable whose address is put into a register that is
  12583. clobbered by the vfork. */
  12584. static void
  12585. #ifdef __cplusplus
  12586. sparc_address_test (int arg)
  12587. # else
  12588. sparc_address_test (arg) int arg;
  12589. #endif
  12590. {
  12591. static pid_t child;
  12592. if (!child) {
  12593. child = vfork ();
  12594. if (child < 0) {
  12595. perror ("vfork");
  12596. _exit(2);
  12597. }
  12598. if (!child) {
  12599. arg = getpid();
  12600. write(-1, "", 0);
  12601. _exit (arg);
  12602. }
  12603. }
  12604. }
  12605. int
  12606. main ()
  12607. {
  12608. pid_t parent = getpid ();
  12609. pid_t child;
  12610. sparc_address_test (0);
  12611. child = vfork ();
  12612. if (child == 0) {
  12613. /* Here is another test for sparc vfork register problems. This
  12614. test uses lots of local variables, at least as many local
  12615. variables as main has allocated so far including compiler
  12616. temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
  12617. 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
  12618. reuse the register of parent for one of the local variables,
  12619. since it will think that parent can't possibly be used any more
  12620. in this routine. Assigning to the local variable will thus
  12621. munge parent in the parent process. */
  12622. pid_t
  12623. p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
  12624. p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
  12625. /* Convince the compiler that p..p7 are live; otherwise, it might
  12626. use the same hardware register for all 8 local variables. */
  12627. if (p != p1 || p != p2 || p != p3 || p != p4
  12628. || p != p5 || p != p6 || p != p7)
  12629. _exit(1);
  12630. /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
  12631. from child file descriptors. If the child closes a descriptor
  12632. before it execs or exits, this munges the parent's descriptor
  12633. as well. Test for this by closing stdout in the child. */
  12634. _exit(close(fileno(stdout)) != 0);
  12635. } else {
  12636. int status;
  12637. struct stat st;
  12638. while (wait(&status) != child)
  12639. ;
  12640. return (
  12641. /* Was there some problem with vforking? */
  12642. child < 0
  12643. /* Did the child fail? (This shouldn't happen.) */
  12644. || status
  12645. /* Did the vfork/compiler bug occur? */
  12646. || parent != getpid()
  12647. /* Did the file descriptor bug occur? */
  12648. || fstat(fileno(stdout), &st) != 0
  12649. );
  12650. }
  12651. }
  12652. _ACEOF
  12653. if ac_fn_cxx_try_run "$LINENO"; then :
  12654. ac_cv_func_vfork_works=yes
  12655. else
  12656. ac_cv_func_vfork_works=no
  12657. fi
  12658. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  12659. conftest.$ac_objext conftest.beam conftest.$ac_ext
  12660. fi
  12661. fi
  12662. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_vfork_works" >&5
  12663. $as_echo "$ac_cv_func_vfork_works" >&6; }
  12664. fi;
  12665. if test "x$ac_cv_func_fork_works" = xcross; then
  12666. ac_cv_func_vfork_works=$ac_cv_func_vfork
  12667. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
  12668. $as_echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
  12669. fi
  12670. if test "x$ac_cv_func_vfork_works" = xyes; then
  12671. $as_echo "#define HAVE_WORKING_VFORK 1" >>confdefs.h
  12672. else
  12673. $as_echo "#define vfork fork" >>confdefs.h
  12674. fi
  12675. if test "x$ac_cv_func_fork_works" = xyes; then
  12676. $as_echo "#define HAVE_WORKING_FORK 1" >>confdefs.h
  12677. fi
  12678. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working strtod" >&5
  12679. $as_echo_n "checking for working strtod... " >&6; }
  12680. if test "${ac_cv_func_strtod+set}" = set; then :
  12681. $as_echo_n "(cached) " >&6
  12682. else
  12683. if test "$cross_compiling" = yes; then :
  12684. ac_cv_func_strtod=no
  12685. else
  12686. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12687. /* end confdefs.h. */
  12688. $ac_includes_default
  12689. #ifndef strtod
  12690. double strtod ();
  12691. #endif
  12692. int
  12693. main()
  12694. {
  12695. {
  12696. /* Some versions of Linux strtod mis-parse strings with leading '+'. */
  12697. char *string = " +69";
  12698. char *term;
  12699. double value;
  12700. value = strtod (string, &term);
  12701. if (value != 69 || term != (string + 4))
  12702. return 1;
  12703. }
  12704. {
  12705. /* Under Solaris 2.4, strtod returns the wrong value for the
  12706. terminating character under some conditions. */
  12707. char *string = "NaN";
  12708. char *term;
  12709. strtod (string, &term);
  12710. if (term != string && *(term - 1) == 0)
  12711. return 1;
  12712. }
  12713. return 0;
  12714. }
  12715. _ACEOF
  12716. if ac_fn_cxx_try_run "$LINENO"; then :
  12717. ac_cv_func_strtod=yes
  12718. else
  12719. ac_cv_func_strtod=no
  12720. fi
  12721. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  12722. conftest.$ac_objext conftest.beam conftest.$ac_ext
  12723. fi
  12724. fi
  12725. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_strtod" >&5
  12726. $as_echo "$ac_cv_func_strtod" >&6; }
  12727. if test $ac_cv_func_strtod = no; then
  12728. case " $LIBOBJS " in
  12729. *" strtod.$ac_objext "* ) ;;
  12730. *) LIBOBJS="$LIBOBJS strtod.$ac_objext"
  12731. ;;
  12732. esac
  12733. ac_fn_cxx_check_func "$LINENO" "pow" "ac_cv_func_pow"
  12734. if test "x$ac_cv_func_pow" = x""yes; then :
  12735. fi
  12736. if test $ac_cv_func_pow = no; then
  12737. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pow in -lm" >&5
  12738. $as_echo_n "checking for pow in -lm... " >&6; }
  12739. if test "${ac_cv_lib_m_pow+set}" = set; then :
  12740. $as_echo_n "(cached) " >&6
  12741. else
  12742. ac_check_lib_save_LIBS=$LIBS
  12743. LIBS="-lm $LIBS"
  12744. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12745. /* end confdefs.h. */
  12746. /* Override any GCC internal prototype to avoid an error.
  12747. Use char because int might match the return type of a GCC
  12748. builtin and then its argument prototype would still apply. */
  12749. #ifdef __cplusplus
  12750. extern "C"
  12751. #endif
  12752. char pow ();
  12753. int
  12754. main ()
  12755. {
  12756. return pow ();
  12757. ;
  12758. return 0;
  12759. }
  12760. _ACEOF
  12761. if ac_fn_cxx_try_link "$LINENO"; then :
  12762. ac_cv_lib_m_pow=yes
  12763. else
  12764. ac_cv_lib_m_pow=no
  12765. fi
  12766. rm -f core conftest.err conftest.$ac_objext \
  12767. conftest$ac_exeext conftest.$ac_ext
  12768. LIBS=$ac_check_lib_save_LIBS
  12769. fi
  12770. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_pow" >&5
  12771. $as_echo "$ac_cv_lib_m_pow" >&6; }
  12772. if test "x$ac_cv_lib_m_pow" = x""yes; then :
  12773. POW_LIB=-lm
  12774. else
  12775. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cannot find library containing definition of pow" >&5
  12776. $as_echo "$as_me: WARNING: cannot find library containing definition of pow" >&2;}
  12777. fi
  12778. fi
  12779. fi
  12780. for ac_func in __argz_count \
  12781. __argz_next \
  12782. __argz_stringify \
  12783. atexit \
  12784. ftruncate \
  12785. getcwd \
  12786. gethostbyaddr \
  12787. gethostbyname \
  12788. getifaddrs \
  12789. getpagesize \
  12790. inet_ntoa \
  12791. memchr \
  12792. memmove \
  12793. mempcpy \
  12794. memset \
  12795. mkdir \
  12796. munmap \
  12797. nl_langinfo \
  12798. posix_memalign \
  12799. pow \
  12800. putenv \
  12801. rmdir \
  12802. select \
  12803. setlocale \
  12804. sleep \
  12805. socket \
  12806. stpcpy \
  12807. strcasecmp \
  12808. strchr \
  12809. strcspn \
  12810. strdup \
  12811. strerror \
  12812. strncasecmp \
  12813. strstr \
  12814. strtol \
  12815. strtoul \
  12816. strtoull \
  12817. tzset \
  12818. unsetenv \
  12819. usleep \
  12820. utime
  12821. do :
  12822. as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
  12823. ac_fn_cxx_check_func "$LINENO" "$ac_func" "$as_ac_var"
  12824. eval as_val=\$$as_ac_var
  12825. if test "x$as_val" = x""yes; then :
  12826. cat >>confdefs.h <<_ACEOF
  12827. #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
  12828. _ACEOF
  12829. fi
  12830. done
  12831. if test "x$enable_epoll" = "xyes"; then
  12832. for ac_func in epoll_create
  12833. do :
  12834. ac_fn_cxx_check_func "$LINENO" "epoll_create" "ac_cv_func_epoll_create"
  12835. if test "x$ac_cv_func_epoll_create" = x""yes; then :
  12836. cat >>confdefs.h <<_ACEOF
  12837. #define HAVE_EPOLL_CREATE 1
  12838. _ACEOF
  12839. have_epoll=yes
  12840. fi
  12841. done
  12842. if test "x$have_epoll" = "xyes"; then
  12843. $as_echo "#define HAVE_EPOLL 1" >>confdefs.h
  12844. fi
  12845. fi
  12846. if test "x$have_epoll" = "xyes"; then
  12847. HAVE_EPOLL_TRUE=
  12848. HAVE_EPOLL_FALSE='#'
  12849. else
  12850. HAVE_EPOLL_TRUE='#'
  12851. HAVE_EPOLL_FALSE=
  12852. fi
  12853. for ac_func in posix_fallocate
  12854. do :
  12855. ac_fn_cxx_check_func "$LINENO" "posix_fallocate" "ac_cv_func_posix_fallocate"
  12856. if test "x$ac_cv_func_posix_fallocate" = x""yes; then :
  12857. cat >>confdefs.h <<_ACEOF
  12858. #define HAVE_POSIX_FALLOCATE 1
  12859. _ACEOF
  12860. have_posix_fallocate=yes
  12861. fi
  12862. done
  12863. if test "x$have_posix_fallocate" = "xyes"; then
  12864. HAVE_POSIX_FALLOCATE_TRUE=
  12865. HAVE_POSIX_FALLOCATE_FALSE='#'
  12866. else
  12867. HAVE_POSIX_FALLOCATE_TRUE='#'
  12868. HAVE_POSIX_FALLOCATE_FALSE=
  12869. fi
  12870. for ac_func in asctime_r
  12871. do :
  12872. ac_fn_cxx_check_func "$LINENO" "asctime_r" "ac_cv_func_asctime_r"
  12873. if test "x$ac_cv_func_asctime_r" = x""yes; then :
  12874. cat >>confdefs.h <<_ACEOF
  12875. #define HAVE_ASCTIME_R 1
  12876. _ACEOF
  12877. if true; then
  12878. HAVE_ASCTIME_R_TRUE=
  12879. HAVE_ASCTIME_R_FALSE='#'
  12880. else
  12881. HAVE_ASCTIME_R_TRUE='#'
  12882. HAVE_ASCTIME_R_FALSE=
  12883. fi
  12884. else
  12885. if false; then
  12886. HAVE_ASCTIME_R_TRUE=
  12887. HAVE_ASCTIME_R_FALSE='#'
  12888. else
  12889. HAVE_ASCTIME_R_TRUE='#'
  12890. HAVE_ASCTIME_R_FALSE=
  12891. fi
  12892. fi
  12893. done
  12894. for ac_func in basename
  12895. do :
  12896. ac_fn_cxx_check_func "$LINENO" "basename" "ac_cv_func_basename"
  12897. if test "x$ac_cv_func_basename" = x""yes; then :
  12898. cat >>confdefs.h <<_ACEOF
  12899. #define HAVE_BASENAME 1
  12900. _ACEOF
  12901. if true; then
  12902. HAVE_BASENAME_TRUE=
  12903. HAVE_BASENAME_FALSE='#'
  12904. else
  12905. HAVE_BASENAME_TRUE='#'
  12906. HAVE_BASENAME_FALSE=
  12907. fi
  12908. else
  12909. if false; then
  12910. HAVE_BASENAME_TRUE=
  12911. HAVE_BASENAME_FALSE='#'
  12912. else
  12913. HAVE_BASENAME_TRUE='#'
  12914. HAVE_BASENAME_FALSE=
  12915. fi
  12916. fi
  12917. done
  12918. for ac_func in gai_strerror
  12919. do :
  12920. ac_fn_cxx_check_func "$LINENO" "gai_strerror" "ac_cv_func_gai_strerror"
  12921. if test "x$ac_cv_func_gai_strerror" = x""yes; then :
  12922. cat >>confdefs.h <<_ACEOF
  12923. #define HAVE_GAI_STRERROR 1
  12924. _ACEOF
  12925. if true; then
  12926. HAVE_GAI_STRERROR_TRUE=
  12927. HAVE_GAI_STRERROR_FALSE='#'
  12928. else
  12929. HAVE_GAI_STRERROR_TRUE='#'
  12930. HAVE_GAI_STRERROR_FALSE=
  12931. fi
  12932. else
  12933. if false; then
  12934. HAVE_GAI_STRERROR_TRUE=
  12935. HAVE_GAI_STRERROR_FALSE='#'
  12936. else
  12937. HAVE_GAI_STRERROR_TRUE='#'
  12938. HAVE_GAI_STRERROR_FALSE=
  12939. fi
  12940. fi
  12941. done
  12942. for ac_func in getaddrinfo
  12943. do :
  12944. ac_fn_cxx_check_func "$LINENO" "getaddrinfo" "ac_cv_func_getaddrinfo"
  12945. if test "x$ac_cv_func_getaddrinfo" = x""yes; then :
  12946. cat >>confdefs.h <<_ACEOF
  12947. #define HAVE_GETADDRINFO 1
  12948. _ACEOF
  12949. if true; then
  12950. HAVE_GETADDRINFO_TRUE=
  12951. HAVE_GETADDRINFO_FALSE='#'
  12952. else
  12953. HAVE_GETADDRINFO_TRUE='#'
  12954. HAVE_GETADDRINFO_FALSE=
  12955. fi
  12956. else
  12957. if false; then
  12958. HAVE_GETADDRINFO_TRUE=
  12959. HAVE_GETADDRINFO_FALSE='#'
  12960. else
  12961. HAVE_GETADDRINFO_TRUE='#'
  12962. HAVE_GETADDRINFO_FALSE=
  12963. fi
  12964. fi
  12965. done
  12966. for ac_func in gettimeofday
  12967. do :
  12968. ac_fn_cxx_check_func "$LINENO" "gettimeofday" "ac_cv_func_gettimeofday"
  12969. if test "x$ac_cv_func_gettimeofday" = x""yes; then :
  12970. cat >>confdefs.h <<_ACEOF
  12971. #define HAVE_GETTIMEOFDAY 1
  12972. _ACEOF
  12973. if true; then
  12974. HAVE_GETTIMEOFDAY_TRUE=
  12975. HAVE_GETTIMEOFDAY_FALSE='#'
  12976. else
  12977. HAVE_GETTIMEOFDAY_TRUE='#'
  12978. HAVE_GETTIMEOFDAY_FALSE=
  12979. fi
  12980. else
  12981. if false; then
  12982. HAVE_GETTIMEOFDAY_TRUE=
  12983. HAVE_GETTIMEOFDAY_FALSE='#'
  12984. else
  12985. HAVE_GETTIMEOFDAY_TRUE='#'
  12986. HAVE_GETTIMEOFDAY_FALSE=
  12987. fi
  12988. fi
  12989. done
  12990. for ac_func in inet_aton
  12991. do :
  12992. ac_fn_cxx_check_func "$LINENO" "inet_aton" "ac_cv_func_inet_aton"
  12993. if test "x$ac_cv_func_inet_aton" = x""yes; then :
  12994. cat >>confdefs.h <<_ACEOF
  12995. #define HAVE_INET_ATON 1
  12996. _ACEOF
  12997. if true; then
  12998. HAVE_INET_ATON_TRUE=
  12999. HAVE_INET_ATON_FALSE='#'
  13000. else
  13001. HAVE_INET_ATON_TRUE='#'
  13002. HAVE_INET_ATON_FALSE=
  13003. fi
  13004. else
  13005. if false; then
  13006. HAVE_INET_ATON_TRUE=
  13007. HAVE_INET_ATON_FALSE='#'
  13008. else
  13009. HAVE_INET_ATON_TRUE='#'
  13010. HAVE_INET_ATON_FALSE=
  13011. fi
  13012. fi
  13013. done
  13014. for ac_func in localtime_r
  13015. do :
  13016. ac_fn_cxx_check_func "$LINENO" "localtime_r" "ac_cv_func_localtime_r"
  13017. if test "x$ac_cv_func_localtime_r" = x""yes; then :
  13018. cat >>confdefs.h <<_ACEOF
  13019. #define HAVE_LOCALTIME_R 1
  13020. _ACEOF
  13021. if true; then
  13022. HAVE_LOCALTIME_R_TRUE=
  13023. HAVE_LOCALTIME_R_FALSE='#'
  13024. else
  13025. HAVE_LOCALTIME_R_TRUE='#'
  13026. HAVE_LOCALTIME_R_FALSE=
  13027. fi
  13028. else
  13029. if false; then
  13030. HAVE_LOCALTIME_R_TRUE=
  13031. HAVE_LOCALTIME_R_FALSE='#'
  13032. else
  13033. HAVE_LOCALTIME_R_TRUE='#'
  13034. HAVE_LOCALTIME_R_FALSE=
  13035. fi
  13036. fi
  13037. done
  13038. for ac_func in strptime
  13039. do :
  13040. ac_fn_cxx_check_func "$LINENO" "strptime" "ac_cv_func_strptime"
  13041. if test "x$ac_cv_func_strptime" = x""yes; then :
  13042. cat >>confdefs.h <<_ACEOF
  13043. #define HAVE_STRPTIME 1
  13044. _ACEOF
  13045. if true; then
  13046. HAVE_STRPTIME_TRUE=
  13047. HAVE_STRPTIME_FALSE='#'
  13048. else
  13049. HAVE_STRPTIME_TRUE='#'
  13050. HAVE_STRPTIME_FALSE=
  13051. fi
  13052. else
  13053. if false; then
  13054. HAVE_STRPTIME_TRUE=
  13055. HAVE_STRPTIME_FALSE='#'
  13056. else
  13057. HAVE_STRPTIME_TRUE='#'
  13058. HAVE_STRPTIME_FALSE=
  13059. fi
  13060. fi
  13061. done
  13062. for ac_func in timegm
  13063. do :
  13064. ac_fn_cxx_check_func "$LINENO" "timegm" "ac_cv_func_timegm"
  13065. if test "x$ac_cv_func_timegm" = x""yes; then :
  13066. cat >>confdefs.h <<_ACEOF
  13067. #define HAVE_TIMEGM 1
  13068. _ACEOF
  13069. if true; then
  13070. HAVE_TIMEGM_TRUE=
  13071. HAVE_TIMEGM_FALSE='#'
  13072. else
  13073. HAVE_TIMEGM_TRUE='#'
  13074. HAVE_TIMEGM_FALSE=
  13075. fi
  13076. else
  13077. if false; then
  13078. HAVE_TIMEGM_TRUE=
  13079. HAVE_TIMEGM_FALSE='#'
  13080. else
  13081. HAVE_TIMEGM_TRUE='#'
  13082. HAVE_TIMEGM_FALSE=
  13083. fi
  13084. fi
  13085. done
  13086. for ac_func in daemon
  13087. do :
  13088. ac_fn_cxx_check_func "$LINENO" "daemon" "ac_cv_func_daemon"
  13089. if test "x$ac_cv_func_daemon" = x""yes; then :
  13090. cat >>confdefs.h <<_ACEOF
  13091. #define HAVE_DAEMON 1
  13092. _ACEOF
  13093. have_daemon=yes
  13094. fi
  13095. done
  13096. if test "x$have_daemon" = "xyes"; then
  13097. HAVE_DAEMON_TRUE=
  13098. HAVE_DAEMON_FALSE='#'
  13099. else
  13100. HAVE_DAEMON_TRUE='#'
  13101. HAVE_DAEMON_FALSE=
  13102. fi
  13103. case "$target" in
  13104. *mingw*)
  13105. if true; then
  13106. HAVE_GETADDRINFO_TRUE=
  13107. HAVE_GETADDRINFO_FALSE='#'
  13108. else
  13109. HAVE_GETADDRINFO_TRUE='#'
  13110. HAVE_GETADDRINFO_FALSE=
  13111. fi
  13112. if false; then
  13113. HAVE_GAI_STRERROR_TRUE=
  13114. HAVE_GAI_STRERROR_FALSE='#'
  13115. else
  13116. HAVE_GAI_STRERROR_TRUE='#'
  13117. HAVE_GAI_STRERROR_FALSE=
  13118. fi
  13119. ;;
  13120. esac
  13121. ac_fn_cxx_check_member "$LINENO" "struct sockaddr_in" "sin_len" "ac_cv_member_struct_sockaddr_in_sin_len" "#include <netinet/in.h>
  13122. "
  13123. if test "x$ac_cv_member_struct_sockaddr_in_sin_len" = x""yes; then :
  13124. $as_echo "#define HAVE_SOCKADDR_IN_SIN_LEN 1" >>confdefs.h
  13125. fi
  13126. # Check struct option.name is assignable from const char*. struct
  13127. # option.name in opensolaris is of type char*. In Linux, it is const
  13128. # char*
  13129. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct option.name is assignable from const char*" >&5
  13130. $as_echo_n "checking whether struct option.name is assignable from const char*... " >&6; }
  13131. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13132. /* end confdefs.h. */
  13133. #include <unistd.h>
  13134. #include <getopt.h>
  13135. int
  13136. main ()
  13137. {
  13138. const char* s = "const char";
  13139. option op;
  13140. op.name = s;
  13141. ;
  13142. return 0;
  13143. }
  13144. _ACEOF
  13145. if ac_fn_cxx_try_compile "$LINENO"; then :
  13146. have_option_const_name=yes
  13147. else
  13148. have_option_const_name=no
  13149. fi
  13150. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  13151. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_option_const_name" >&5
  13152. $as_echo "$have_option_const_name" >&6; }
  13153. if test "x$have_option_const_name" = "xyes"; then
  13154. $as_echo "#define HAVE_OPTION_CONST_NAME 1" >>confdefs.h
  13155. fi
  13156. ac_config_files="$ac_config_files Makefile src/Makefile test/Makefile po/Makefile.in intl/Makefile lib/Makefile doc/Makefile"
  13157. cat >confcache <<\_ACEOF
  13158. # This file is a shell script that caches the results of configure
  13159. # tests run on this system so they can be shared between configure
  13160. # scripts and configure runs, see configure's option --config-cache.
  13161. # It is not useful on other systems. If it contains results you don't
  13162. # want to keep, you may remove or edit it.
  13163. #
  13164. # config.status only pays attention to the cache file if you give it
  13165. # the --recheck option to rerun configure.
  13166. #
  13167. # `ac_cv_env_foo' variables (set or unset) will be overridden when
  13168. # loading this file, other *unset* `ac_cv_foo' will be assigned the
  13169. # following values.
  13170. _ACEOF
  13171. # The following way of writing the cache mishandles newlines in values,
  13172. # but we know of no workaround that is simple, portable, and efficient.
  13173. # So, we kill variables containing newlines.
  13174. # Ultrix sh set writes to stderr and can't be redirected directly,
  13175. # and sets the high bit in the cache file unless we assign to the vars.
  13176. (
  13177. for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
  13178. eval ac_val=\$$ac_var
  13179. case $ac_val in #(
  13180. *${as_nl}*)
  13181. case $ac_var in #(
  13182. *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
  13183. $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
  13184. esac
  13185. case $ac_var in #(
  13186. _ | IFS | as_nl) ;; #(
  13187. BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
  13188. *) { eval $ac_var=; unset $ac_var;} ;;
  13189. esac ;;
  13190. esac
  13191. done
  13192. (set) 2>&1 |
  13193. case $as_nl`(ac_space=' '; set) 2>&1` in #(
  13194. *${as_nl}ac_space=\ *)
  13195. # `set' does not quote correctly, so add quotes: double-quote
  13196. # substitution turns \\\\ into \\, and sed turns \\ into \.
  13197. sed -n \
  13198. "s/'/'\\\\''/g;
  13199. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
  13200. ;; #(
  13201. *)
  13202. # `set' quotes correctly as required by POSIX, so do not add quotes.
  13203. sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
  13204. ;;
  13205. esac |
  13206. sort
  13207. ) |
  13208. sed '
  13209. /^ac_cv_env_/b end
  13210. t clear
  13211. :clear
  13212. s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
  13213. t end
  13214. s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
  13215. :end' >>confcache
  13216. if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
  13217. if test -w "$cache_file"; then
  13218. test "x$cache_file" != "x/dev/null" &&
  13219. { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
  13220. $as_echo "$as_me: updating cache $cache_file" >&6;}
  13221. cat confcache >$cache_file
  13222. else
  13223. { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
  13224. $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
  13225. fi
  13226. fi
  13227. rm -f confcache
  13228. test "x$prefix" = xNONE && prefix=$ac_default_prefix
  13229. # Let make expand exec_prefix.
  13230. test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
  13231. DEFS=-DHAVE_CONFIG_H
  13232. ac_libobjs=
  13233. ac_ltlibobjs=
  13234. for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
  13235. # 1. Remove the extension, and $U if already installed.
  13236. ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
  13237. ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
  13238. # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
  13239. # will be set to the directory where LIBOBJS objects are built.
  13240. as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
  13241. as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
  13242. done
  13243. LIBOBJS=$ac_libobjs
  13244. LTLIBOBJS=$ac_ltlibobjs
  13245. if test -n "$EXEEXT"; then
  13246. am__EXEEXT_TRUE=
  13247. am__EXEEXT_FALSE='#'
  13248. else
  13249. am__EXEEXT_TRUE='#'
  13250. am__EXEEXT_FALSE=
  13251. fi
  13252. if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
  13253. as_fn_error "conditional \"AMDEP\" was never defined.
  13254. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  13255. fi
  13256. if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
  13257. as_fn_error "conditional \"am__fastdepCXX\" was never defined.
  13258. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  13259. fi
  13260. if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
  13261. as_fn_error "conditional \"am__fastdepCC\" was never defined.
  13262. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  13263. fi
  13264. if test -z "${ENABLE_SSL_TRUE}" && test -z "${ENABLE_SSL_FALSE}"; then
  13265. as_fn_error "conditional \"ENABLE_SSL\" was never defined.
  13266. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  13267. fi
  13268. if test -z "${ENABLE_SSL_TRUE}" && test -z "${ENABLE_SSL_FALSE}"; then
  13269. as_fn_error "conditional \"ENABLE_SSL\" was never defined.
  13270. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  13271. fi
  13272. if test -z "${HAVE_LIBGNUTLS_TRUE}" && test -z "${HAVE_LIBGNUTLS_FALSE}"; then
  13273. as_fn_error "conditional \"HAVE_LIBGNUTLS\" was never defined.
  13274. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  13275. fi
  13276. if test -z "${HAVE_LIBSSL_TRUE}" && test -z "${HAVE_LIBSSL_FALSE}"; then
  13277. as_fn_error "conditional \"HAVE_LIBSSL\" was never defined.
  13278. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  13279. fi
  13280. if test -z "${ENABLE_MESSAGE_DIGEST_TRUE}" && test -z "${ENABLE_MESSAGE_DIGEST_FALSE}"; then
  13281. as_fn_error "conditional \"ENABLE_MESSAGE_DIGEST\" was never defined.
  13282. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  13283. fi
  13284. if test -z "${ENABLE_MESSAGE_DIGEST_TRUE}" && test -z "${ENABLE_MESSAGE_DIGEST_FALSE}"; then
  13285. as_fn_error "conditional \"ENABLE_MESSAGE_DIGEST\" was never defined.
  13286. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  13287. fi
  13288. if test -z "${ENABLE_BITTORRENT_TRUE}" && test -z "${ENABLE_BITTORRENT_FALSE}"; then
  13289. as_fn_error "conditional \"ENABLE_BITTORRENT\" was never defined.
  13290. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  13291. fi
  13292. if test -z "${ENABLE_BITTORRENT_TRUE}" && test -z "${ENABLE_BITTORRENT_FALSE}"; then
  13293. as_fn_error "conditional \"ENABLE_BITTORRENT\" was never defined.
  13294. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  13295. fi
  13296. if test -z "${ENABLE_METALINK_TRUE}" && test -z "${ENABLE_METALINK_FALSE}"; then
  13297. as_fn_error "conditional \"ENABLE_METALINK\" was never defined.
  13298. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  13299. fi
  13300. if test -z "${ENABLE_METALINK_TRUE}" && test -z "${ENABLE_METALINK_FALSE}"; then
  13301. as_fn_error "conditional \"ENABLE_METALINK\" was never defined.
  13302. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  13303. fi
  13304. if test -z "${ENABLE_METALINK_LIBXML2_TRUE}" && test -z "${ENABLE_METALINK_LIBXML2_FALSE}"; then
  13305. as_fn_error "conditional \"ENABLE_METALINK_LIBXML2\" was never defined.
  13306. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  13307. fi
  13308. if test -z "${ENABLE_METALINK_LIBEXPAT_TRUE}" && test -z "${ENABLE_METALINK_LIBEXPAT_FALSE}"; then
  13309. as_fn_error "conditional \"ENABLE_METALINK_LIBEXPAT\" was never defined.
  13310. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  13311. fi
  13312. if test -z "${ENABLE_XML_RPC_TRUE}" && test -z "${ENABLE_XML_RPC_FALSE}"; then
  13313. as_fn_error "conditional \"ENABLE_XML_RPC\" was never defined.
  13314. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  13315. fi
  13316. if test -z "${HAVE_LIBXML2_TRUE}" && test -z "${HAVE_LIBXML2_FALSE}"; then
  13317. as_fn_error "conditional \"HAVE_LIBXML2\" was never defined.
  13318. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  13319. fi
  13320. if test -z "${HAVE_LIBEXPAT_TRUE}" && test -z "${HAVE_LIBEXPAT_FALSE}"; then
  13321. as_fn_error "conditional \"HAVE_LIBEXPAT\" was never defined.
  13322. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  13323. fi
  13324. if test -z "${ENABLE_ASYNC_DNS_TRUE}" && test -z "${ENABLE_ASYNC_DNS_FALSE}"; then
  13325. as_fn_error "conditional \"ENABLE_ASYNC_DNS\" was never defined.
  13326. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  13327. fi
  13328. if test -z "${ENABLE_ASYNC_DNS_TRUE}" && test -z "${ENABLE_ASYNC_DNS_FALSE}"; then
  13329. as_fn_error "conditional \"ENABLE_ASYNC_DNS\" was never defined.
  13330. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  13331. fi
  13332. if test -z "${HAVE_LIBZ_TRUE}" && test -z "${HAVE_LIBZ_FALSE}"; then
  13333. as_fn_error "conditional \"HAVE_LIBZ\" was never defined.
  13334. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  13335. fi
  13336. if test -z "${HAVE_SQLITE3_TRUE}" && test -z "${HAVE_SQLITE3_FALSE}"; then
  13337. as_fn_error "conditional \"HAVE_SQLITE3\" was never defined.
  13338. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  13339. fi
  13340. if test -z "${HAVE_EPOLL_TRUE}" && test -z "${HAVE_EPOLL_FALSE}"; then
  13341. as_fn_error "conditional \"HAVE_EPOLL\" was never defined.
  13342. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  13343. fi
  13344. if test -z "${HAVE_POSIX_FALLOCATE_TRUE}" && test -z "${HAVE_POSIX_FALLOCATE_FALSE}"; then
  13345. as_fn_error "conditional \"HAVE_POSIX_FALLOCATE\" was never defined.
  13346. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  13347. fi
  13348. if test -z "${HAVE_ASCTIME_R_TRUE}" && test -z "${HAVE_ASCTIME_R_FALSE}"; then
  13349. as_fn_error "conditional \"HAVE_ASCTIME_R\" was never defined.
  13350. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  13351. fi
  13352. if test -z "${HAVE_ASCTIME_R_TRUE}" && test -z "${HAVE_ASCTIME_R_FALSE}"; then
  13353. as_fn_error "conditional \"HAVE_ASCTIME_R\" was never defined.
  13354. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  13355. fi
  13356. if test -z "${HAVE_BASENAME_TRUE}" && test -z "${HAVE_BASENAME_FALSE}"; then
  13357. as_fn_error "conditional \"HAVE_BASENAME\" was never defined.
  13358. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  13359. fi
  13360. if test -z "${HAVE_BASENAME_TRUE}" && test -z "${HAVE_BASENAME_FALSE}"; then
  13361. as_fn_error "conditional \"HAVE_BASENAME\" was never defined.
  13362. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  13363. fi
  13364. if test -z "${HAVE_GAI_STRERROR_TRUE}" && test -z "${HAVE_GAI_STRERROR_FALSE}"; then
  13365. as_fn_error "conditional \"HAVE_GAI_STRERROR\" was never defined.
  13366. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  13367. fi
  13368. if test -z "${HAVE_GAI_STRERROR_TRUE}" && test -z "${HAVE_GAI_STRERROR_FALSE}"; then
  13369. as_fn_error "conditional \"HAVE_GAI_STRERROR\" was never defined.
  13370. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  13371. fi
  13372. if test -z "${HAVE_GETADDRINFO_TRUE}" && test -z "${HAVE_GETADDRINFO_FALSE}"; then
  13373. as_fn_error "conditional \"HAVE_GETADDRINFO\" was never defined.
  13374. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  13375. fi
  13376. if test -z "${HAVE_GETADDRINFO_TRUE}" && test -z "${HAVE_GETADDRINFO_FALSE}"; then
  13377. as_fn_error "conditional \"HAVE_GETADDRINFO\" was never defined.
  13378. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  13379. fi
  13380. if test -z "${HAVE_GETTIMEOFDAY_TRUE}" && test -z "${HAVE_GETTIMEOFDAY_FALSE}"; then
  13381. as_fn_error "conditional \"HAVE_GETTIMEOFDAY\" was never defined.
  13382. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  13383. fi
  13384. if test -z "${HAVE_GETTIMEOFDAY_TRUE}" && test -z "${HAVE_GETTIMEOFDAY_FALSE}"; then
  13385. as_fn_error "conditional \"HAVE_GETTIMEOFDAY\" was never defined.
  13386. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  13387. fi
  13388. if test -z "${HAVE_INET_ATON_TRUE}" && test -z "${HAVE_INET_ATON_FALSE}"; then
  13389. as_fn_error "conditional \"HAVE_INET_ATON\" was never defined.
  13390. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  13391. fi
  13392. if test -z "${HAVE_INET_ATON_TRUE}" && test -z "${HAVE_INET_ATON_FALSE}"; then
  13393. as_fn_error "conditional \"HAVE_INET_ATON\" was never defined.
  13394. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  13395. fi
  13396. if test -z "${HAVE_LOCALTIME_R_TRUE}" && test -z "${HAVE_LOCALTIME_R_FALSE}"; then
  13397. as_fn_error "conditional \"HAVE_LOCALTIME_R\" was never defined.
  13398. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  13399. fi
  13400. if test -z "${HAVE_LOCALTIME_R_TRUE}" && test -z "${HAVE_LOCALTIME_R_FALSE}"; then
  13401. as_fn_error "conditional \"HAVE_LOCALTIME_R\" was never defined.
  13402. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  13403. fi
  13404. if test -z "${HAVE_STRPTIME_TRUE}" && test -z "${HAVE_STRPTIME_FALSE}"; then
  13405. as_fn_error "conditional \"HAVE_STRPTIME\" was never defined.
  13406. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  13407. fi
  13408. if test -z "${HAVE_STRPTIME_TRUE}" && test -z "${HAVE_STRPTIME_FALSE}"; then
  13409. as_fn_error "conditional \"HAVE_STRPTIME\" was never defined.
  13410. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  13411. fi
  13412. if test -z "${HAVE_TIMEGM_TRUE}" && test -z "${HAVE_TIMEGM_FALSE}"; then
  13413. as_fn_error "conditional \"HAVE_TIMEGM\" was never defined.
  13414. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  13415. fi
  13416. if test -z "${HAVE_TIMEGM_TRUE}" && test -z "${HAVE_TIMEGM_FALSE}"; then
  13417. as_fn_error "conditional \"HAVE_TIMEGM\" was never defined.
  13418. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  13419. fi
  13420. if test -z "${HAVE_DAEMON_TRUE}" && test -z "${HAVE_DAEMON_FALSE}"; then
  13421. as_fn_error "conditional \"HAVE_DAEMON\" was never defined.
  13422. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  13423. fi
  13424. if test -z "${HAVE_GETADDRINFO_TRUE}" && test -z "${HAVE_GETADDRINFO_FALSE}"; then
  13425. as_fn_error "conditional \"HAVE_GETADDRINFO\" was never defined.
  13426. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  13427. fi
  13428. if test -z "${HAVE_GAI_STRERROR_TRUE}" && test -z "${HAVE_GAI_STRERROR_FALSE}"; then
  13429. as_fn_error "conditional \"HAVE_GAI_STRERROR\" was never defined.
  13430. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  13431. fi
  13432. : ${CONFIG_STATUS=./config.status}
  13433. ac_write_fail=0
  13434. ac_clean_files_save=$ac_clean_files
  13435. ac_clean_files="$ac_clean_files $CONFIG_STATUS"
  13436. { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
  13437. $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
  13438. as_write_fail=0
  13439. cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
  13440. #! $SHELL
  13441. # Generated by $as_me.
  13442. # Run this file to recreate the current configuration.
  13443. # Compiler output produced by configure, useful for debugging
  13444. # configure, is in config.log if it exists.
  13445. debug=false
  13446. ac_cs_recheck=false
  13447. ac_cs_silent=false
  13448. SHELL=\${CONFIG_SHELL-$SHELL}
  13449. export SHELL
  13450. _ASEOF
  13451. cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
  13452. ## -------------------- ##
  13453. ## M4sh Initialization. ##
  13454. ## -------------------- ##
  13455. # Be more Bourne compatible
  13456. DUALCASE=1; export DUALCASE # for MKS sh
  13457. if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
  13458. emulate sh
  13459. NULLCMD=:
  13460. # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
  13461. # is contrary to our usage. Disable this feature.
  13462. alias -g '${1+"$@"}'='"$@"'
  13463. setopt NO_GLOB_SUBST
  13464. else
  13465. case `(set -o) 2>/dev/null` in #(
  13466. *posix*) :
  13467. set -o posix ;; #(
  13468. *) :
  13469. ;;
  13470. esac
  13471. fi
  13472. as_nl='
  13473. '
  13474. export as_nl
  13475. # Printing a long string crashes Solaris 7 /usr/bin/printf.
  13476. as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
  13477. as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
  13478. as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
  13479. # Prefer a ksh shell builtin over an external printf program on Solaris,
  13480. # but without wasting forks for bash or zsh.
  13481. if test -z "$BASH_VERSION$ZSH_VERSION" \
  13482. && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
  13483. as_echo='print -r --'
  13484. as_echo_n='print -rn --'
  13485. elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
  13486. as_echo='printf %s\n'
  13487. as_echo_n='printf %s'
  13488. else
  13489. if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
  13490. as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
  13491. as_echo_n='/usr/ucb/echo -n'
  13492. else
  13493. as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
  13494. as_echo_n_body='eval
  13495. arg=$1;
  13496. case $arg in #(
  13497. *"$as_nl"*)
  13498. expr "X$arg" : "X\\(.*\\)$as_nl";
  13499. arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
  13500. esac;
  13501. expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
  13502. '
  13503. export as_echo_n_body
  13504. as_echo_n='sh -c $as_echo_n_body as_echo'
  13505. fi
  13506. export as_echo_body
  13507. as_echo='sh -c $as_echo_body as_echo'
  13508. fi
  13509. # The user is always right.
  13510. if test "${PATH_SEPARATOR+set}" != set; then
  13511. PATH_SEPARATOR=:
  13512. (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
  13513. (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
  13514. PATH_SEPARATOR=';'
  13515. }
  13516. fi
  13517. # IFS
  13518. # We need space, tab and new line, in precisely that order. Quoting is
  13519. # there to prevent editors from complaining about space-tab.
  13520. # (If _AS_PATH_WALK were called with IFS unset, it would disable word
  13521. # splitting by setting IFS to empty value.)
  13522. IFS=" "" $as_nl"
  13523. # Find who we are. Look in the path if we contain no directory separator.
  13524. case $0 in #((
  13525. *[\\/]* ) as_myself=$0 ;;
  13526. *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  13527. for as_dir in $PATH
  13528. do
  13529. IFS=$as_save_IFS
  13530. test -z "$as_dir" && as_dir=.
  13531. test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
  13532. done
  13533. IFS=$as_save_IFS
  13534. ;;
  13535. esac
  13536. # We did not find ourselves, most probably we were run as `sh COMMAND'
  13537. # in which case we are not to be found in the path.
  13538. if test "x$as_myself" = x; then
  13539. as_myself=$0
  13540. fi
  13541. if test ! -f "$as_myself"; then
  13542. $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
  13543. exit 1
  13544. fi
  13545. # Unset variables that we do not need and which cause bugs (e.g. in
  13546. # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
  13547. # suppresses any "Segmentation fault" message there. '((' could
  13548. # trigger a bug in pdksh 5.2.14.
  13549. for as_var in BASH_ENV ENV MAIL MAILPATH
  13550. do eval test x\${$as_var+set} = xset \
  13551. && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
  13552. done
  13553. PS1='$ '
  13554. PS2='> '
  13555. PS4='+ '
  13556. # NLS nuisances.
  13557. LC_ALL=C
  13558. export LC_ALL
  13559. LANGUAGE=C
  13560. export LANGUAGE
  13561. # CDPATH.
  13562. (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
  13563. # as_fn_error ERROR [LINENO LOG_FD]
  13564. # ---------------------------------
  13565. # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
  13566. # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
  13567. # script with status $?, using 1 if that was 0.
  13568. as_fn_error ()
  13569. {
  13570. as_status=$?; test $as_status -eq 0 && as_status=1
  13571. if test "$3"; then
  13572. as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  13573. $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
  13574. fi
  13575. $as_echo "$as_me: error: $1" >&2
  13576. as_fn_exit $as_status
  13577. } # as_fn_error
  13578. # as_fn_set_status STATUS
  13579. # -----------------------
  13580. # Set $? to STATUS, without forking.
  13581. as_fn_set_status ()
  13582. {
  13583. return $1
  13584. } # as_fn_set_status
  13585. # as_fn_exit STATUS
  13586. # -----------------
  13587. # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
  13588. as_fn_exit ()
  13589. {
  13590. set +e
  13591. as_fn_set_status $1
  13592. exit $1
  13593. } # as_fn_exit
  13594. # as_fn_unset VAR
  13595. # ---------------
  13596. # Portably unset VAR.
  13597. as_fn_unset ()
  13598. {
  13599. { eval $1=; unset $1;}
  13600. }
  13601. as_unset=as_fn_unset
  13602. # as_fn_append VAR VALUE
  13603. # ----------------------
  13604. # Append the text in VALUE to the end of the definition contained in VAR. Take
  13605. # advantage of any shell optimizations that allow amortized linear growth over
  13606. # repeated appends, instead of the typical quadratic growth present in naive
  13607. # implementations.
  13608. if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
  13609. eval 'as_fn_append ()
  13610. {
  13611. eval $1+=\$2
  13612. }'
  13613. else
  13614. as_fn_append ()
  13615. {
  13616. eval $1=\$$1\$2
  13617. }
  13618. fi # as_fn_append
  13619. # as_fn_arith ARG...
  13620. # ------------------
  13621. # Perform arithmetic evaluation on the ARGs, and store the result in the
  13622. # global $as_val. Take advantage of shells that can avoid forks. The arguments
  13623. # must be portable across $(()) and expr.
  13624. if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
  13625. eval 'as_fn_arith ()
  13626. {
  13627. as_val=$(( $* ))
  13628. }'
  13629. else
  13630. as_fn_arith ()
  13631. {
  13632. as_val=`expr "$@" || test $? -eq 1`
  13633. }
  13634. fi # as_fn_arith
  13635. if expr a : '\(a\)' >/dev/null 2>&1 &&
  13636. test "X`expr 00001 : '.*\(...\)'`" = X001; then
  13637. as_expr=expr
  13638. else
  13639. as_expr=false
  13640. fi
  13641. if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
  13642. as_basename=basename
  13643. else
  13644. as_basename=false
  13645. fi
  13646. if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
  13647. as_dirname=dirname
  13648. else
  13649. as_dirname=false
  13650. fi
  13651. as_me=`$as_basename -- "$0" ||
  13652. $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
  13653. X"$0" : 'X\(//\)$' \| \
  13654. X"$0" : 'X\(/\)' \| . 2>/dev/null ||
  13655. $as_echo X/"$0" |
  13656. sed '/^.*\/\([^/][^/]*\)\/*$/{
  13657. s//\1/
  13658. q
  13659. }
  13660. /^X\/\(\/\/\)$/{
  13661. s//\1/
  13662. q
  13663. }
  13664. /^X\/\(\/\).*/{
  13665. s//\1/
  13666. q
  13667. }
  13668. s/.*/./; q'`
  13669. # Avoid depending upon Character Ranges.
  13670. as_cr_letters='abcdefghijklmnopqrstuvwxyz'
  13671. as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
  13672. as_cr_Letters=$as_cr_letters$as_cr_LETTERS
  13673. as_cr_digits='0123456789'
  13674. as_cr_alnum=$as_cr_Letters$as_cr_digits
  13675. ECHO_C= ECHO_N= ECHO_T=
  13676. case `echo -n x` in #(((((
  13677. -n*)
  13678. case `echo 'xy\c'` in
  13679. *c*) ECHO_T=' ';; # ECHO_T is single tab character.
  13680. xy) ECHO_C='\c';;
  13681. *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
  13682. ECHO_T=' ';;
  13683. esac;;
  13684. *)
  13685. ECHO_N='-n';;
  13686. esac
  13687. rm -f conf$$ conf$$.exe conf$$.file
  13688. if test -d conf$$.dir; then
  13689. rm -f conf$$.dir/conf$$.file
  13690. else
  13691. rm -f conf$$.dir
  13692. mkdir conf$$.dir 2>/dev/null
  13693. fi
  13694. if (echo >conf$$.file) 2>/dev/null; then
  13695. if ln -s conf$$.file conf$$ 2>/dev/null; then
  13696. as_ln_s='ln -s'
  13697. # ... but there are two gotchas:
  13698. # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
  13699. # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
  13700. # In both cases, we have to default to `cp -p'.
  13701. ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
  13702. as_ln_s='cp -p'
  13703. elif ln conf$$.file conf$$ 2>/dev/null; then
  13704. as_ln_s=ln
  13705. else
  13706. as_ln_s='cp -p'
  13707. fi
  13708. else
  13709. as_ln_s='cp -p'
  13710. fi
  13711. rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
  13712. rmdir conf$$.dir 2>/dev/null
  13713. # as_fn_mkdir_p
  13714. # -------------
  13715. # Create "$as_dir" as a directory, including parents if necessary.
  13716. as_fn_mkdir_p ()
  13717. {
  13718. case $as_dir in #(
  13719. -*) as_dir=./$as_dir;;
  13720. esac
  13721. test -d "$as_dir" || eval $as_mkdir_p || {
  13722. as_dirs=
  13723. while :; do
  13724. case $as_dir in #(
  13725. *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
  13726. *) as_qdir=$as_dir;;
  13727. esac
  13728. as_dirs="'$as_qdir' $as_dirs"
  13729. as_dir=`$as_dirname -- "$as_dir" ||
  13730. $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  13731. X"$as_dir" : 'X\(//\)[^/]' \| \
  13732. X"$as_dir" : 'X\(//\)$' \| \
  13733. X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
  13734. $as_echo X"$as_dir" |
  13735. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  13736. s//\1/
  13737. q
  13738. }
  13739. /^X\(\/\/\)[^/].*/{
  13740. s//\1/
  13741. q
  13742. }
  13743. /^X\(\/\/\)$/{
  13744. s//\1/
  13745. q
  13746. }
  13747. /^X\(\/\).*/{
  13748. s//\1/
  13749. q
  13750. }
  13751. s/.*/./; q'`
  13752. test -d "$as_dir" && break
  13753. done
  13754. test -z "$as_dirs" || eval "mkdir $as_dirs"
  13755. } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
  13756. } # as_fn_mkdir_p
  13757. if mkdir -p . 2>/dev/null; then
  13758. as_mkdir_p='mkdir -p "$as_dir"'
  13759. else
  13760. test -d ./-p && rmdir ./-p
  13761. as_mkdir_p=false
  13762. fi
  13763. if test -x / >/dev/null 2>&1; then
  13764. as_test_x='test -x'
  13765. else
  13766. if ls -dL / >/dev/null 2>&1; then
  13767. as_ls_L_option=L
  13768. else
  13769. as_ls_L_option=
  13770. fi
  13771. as_test_x='
  13772. eval sh -c '\''
  13773. if test -d "$1"; then
  13774. test -d "$1/.";
  13775. else
  13776. case $1 in #(
  13777. -*)set "./$1";;
  13778. esac;
  13779. case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
  13780. ???[sx]*):;;*)false;;esac;fi
  13781. '\'' sh
  13782. '
  13783. fi
  13784. as_executable_p=$as_test_x
  13785. # Sed expression to map a string onto a valid CPP name.
  13786. as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
  13787. # Sed expression to map a string onto a valid variable name.
  13788. as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
  13789. exec 6>&1
  13790. ## ----------------------------------- ##
  13791. ## Main body of $CONFIG_STATUS script. ##
  13792. ## ----------------------------------- ##
  13793. _ASEOF
  13794. test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
  13795. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  13796. # Save the log message, to keep $0 and so on meaningful, and to
  13797. # report actual input values of CONFIG_FILES etc. instead of their
  13798. # values after options handling.
  13799. ac_log="
  13800. This file was extended by aria2 $as_me 1.9.0a, which was
  13801. generated by GNU Autoconf 2.65. Invocation command line was
  13802. CONFIG_FILES = $CONFIG_FILES
  13803. CONFIG_HEADERS = $CONFIG_HEADERS
  13804. CONFIG_LINKS = $CONFIG_LINKS
  13805. CONFIG_COMMANDS = $CONFIG_COMMANDS
  13806. $ $0 $@
  13807. on `(hostname || uname -n) 2>/dev/null | sed 1q`
  13808. "
  13809. _ACEOF
  13810. case $ac_config_files in *"
  13811. "*) set x $ac_config_files; shift; ac_config_files=$*;;
  13812. esac
  13813. case $ac_config_headers in *"
  13814. "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
  13815. esac
  13816. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  13817. # Files that config.status was made for.
  13818. config_files="$ac_config_files"
  13819. config_headers="$ac_config_headers"
  13820. config_commands="$ac_config_commands"
  13821. _ACEOF
  13822. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  13823. ac_cs_usage="\
  13824. \`$as_me' instantiates files and other configuration actions
  13825. from templates according to the current configuration. Unless the files
  13826. and actions are specified as TAGs, all are instantiated by default.
  13827. Usage: $0 [OPTION]... [TAG]...
  13828. -h, --help print this help, then exit
  13829. -V, --version print version number and configuration settings, then exit
  13830. --config print configuration, then exit
  13831. -q, --quiet, --silent
  13832. do not print progress messages
  13833. -d, --debug don't remove temporary files
  13834. --recheck update $as_me by reconfiguring in the same conditions
  13835. --file=FILE[:TEMPLATE]
  13836. instantiate the configuration file FILE
  13837. --header=FILE[:TEMPLATE]
  13838. instantiate the configuration header FILE
  13839. Configuration files:
  13840. $config_files
  13841. Configuration headers:
  13842. $config_headers
  13843. Configuration commands:
  13844. $config_commands
  13845. Report bugs to <t-tujikawa@users.sourceforge.net>.
  13846. aria2 home page: <http://aria2.sourceforge.net/>."
  13847. _ACEOF
  13848. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  13849. ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
  13850. ac_cs_version="\\
  13851. aria2 config.status 1.9.0a
  13852. configured by $0, generated by GNU Autoconf 2.65,
  13853. with options \\"\$ac_cs_config\\"
  13854. Copyright (C) 2009 Free Software Foundation, Inc.
  13855. This config.status script is free software; the Free Software Foundation
  13856. gives unlimited permission to copy, distribute and modify it."
  13857. ac_pwd='$ac_pwd'
  13858. srcdir='$srcdir'
  13859. INSTALL='$INSTALL'
  13860. MKDIR_P='$MKDIR_P'
  13861. AWK='$AWK'
  13862. test -n "\$AWK" || AWK=awk
  13863. _ACEOF
  13864. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  13865. # The default lists apply if the user does not specify any file.
  13866. ac_need_defaults=:
  13867. while test $# != 0
  13868. do
  13869. case $1 in
  13870. --*=*)
  13871. ac_option=`expr "X$1" : 'X\([^=]*\)='`
  13872. ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
  13873. ac_shift=:
  13874. ;;
  13875. *)
  13876. ac_option=$1
  13877. ac_optarg=$2
  13878. ac_shift=shift
  13879. ;;
  13880. esac
  13881. case $ac_option in
  13882. # Handling of the options.
  13883. -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
  13884. ac_cs_recheck=: ;;
  13885. --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
  13886. $as_echo "$ac_cs_version"; exit ;;
  13887. --config | --confi | --conf | --con | --co | --c )
  13888. $as_echo "$ac_cs_config"; exit ;;
  13889. --debug | --debu | --deb | --de | --d | -d )
  13890. debug=: ;;
  13891. --file | --fil | --fi | --f )
  13892. $ac_shift
  13893. case $ac_optarg in
  13894. *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
  13895. esac
  13896. as_fn_append CONFIG_FILES " '$ac_optarg'"
  13897. ac_need_defaults=false;;
  13898. --header | --heade | --head | --hea )
  13899. $ac_shift
  13900. case $ac_optarg in
  13901. *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
  13902. esac
  13903. as_fn_append CONFIG_HEADERS " '$ac_optarg'"
  13904. ac_need_defaults=false;;
  13905. --he | --h)
  13906. # Conflict between --help and --header
  13907. as_fn_error "ambiguous option: \`$1'
  13908. Try \`$0 --help' for more information.";;
  13909. --help | --hel | -h )
  13910. $as_echo "$ac_cs_usage"; exit ;;
  13911. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  13912. | -silent | --silent | --silen | --sile | --sil | --si | --s)
  13913. ac_cs_silent=: ;;
  13914. # This is an error.
  13915. -*) as_fn_error "unrecognized option: \`$1'
  13916. Try \`$0 --help' for more information." ;;
  13917. *) as_fn_append ac_config_targets " $1"
  13918. ac_need_defaults=false ;;
  13919. esac
  13920. shift
  13921. done
  13922. ac_configure_extra_args=
  13923. if $ac_cs_silent; then
  13924. exec 6>/dev/null
  13925. ac_configure_extra_args="$ac_configure_extra_args --silent"
  13926. fi
  13927. _ACEOF
  13928. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  13929. if \$ac_cs_recheck; then
  13930. set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
  13931. shift
  13932. \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
  13933. CONFIG_SHELL='$SHELL'
  13934. export CONFIG_SHELL
  13935. exec "\$@"
  13936. fi
  13937. _ACEOF
  13938. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  13939. exec 5>>config.log
  13940. {
  13941. echo
  13942. sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
  13943. ## Running $as_me. ##
  13944. _ASBOX
  13945. $as_echo "$ac_log"
  13946. } >&5
  13947. _ACEOF
  13948. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  13949. #
  13950. # INIT-COMMANDS
  13951. #
  13952. AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
  13953. # Capture the value of obsolete ALL_LINGUAS because we need it to compute
  13954. # POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES, CATALOGS. But hide it
  13955. # from automake < 1.5.
  13956. eval 'OBSOLETE_ALL_LINGUAS''="$ALL_LINGUAS"'
  13957. # Capture the value of LINGUAS because we need it to compute CATALOGS.
  13958. LINGUAS="${LINGUAS-%UNSET%}"
  13959. _ACEOF
  13960. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  13961. # Handling of arguments.
  13962. for ac_config_target in $ac_config_targets
  13963. do
  13964. case $ac_config_target in
  13965. "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
  13966. "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
  13967. "po-directories") CONFIG_COMMANDS="$CONFIG_COMMANDS po-directories" ;;
  13968. "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
  13969. "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
  13970. "test/Makefile") CONFIG_FILES="$CONFIG_FILES test/Makefile" ;;
  13971. "po/Makefile.in") CONFIG_FILES="$CONFIG_FILES po/Makefile.in" ;;
  13972. "intl/Makefile") CONFIG_FILES="$CONFIG_FILES intl/Makefile" ;;
  13973. "lib/Makefile") CONFIG_FILES="$CONFIG_FILES lib/Makefile" ;;
  13974. "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
  13975. *) as_fn_error "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
  13976. esac
  13977. done
  13978. # If the user did not use the arguments to specify the items to instantiate,
  13979. # then the envvar interface is used. Set only those that are not.
  13980. # We use the long form for the default assignment because of an extremely
  13981. # bizarre bug on SunOS 4.1.3.
  13982. if $ac_need_defaults; then
  13983. test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
  13984. test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
  13985. test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
  13986. fi
  13987. # Have a temporary directory for convenience. Make it in the build tree
  13988. # simply because there is no reason against having it here, and in addition,
  13989. # creating and moving files from /tmp can sometimes cause problems.
  13990. # Hook for its removal unless debugging.
  13991. # Note that there is a small window in which the directory will not be cleaned:
  13992. # after its creation but before its name has been assigned to `$tmp'.
  13993. $debug ||
  13994. {
  13995. tmp=
  13996. trap 'exit_status=$?
  13997. { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
  13998. ' 0
  13999. trap 'as_fn_exit 1' 1 2 13 15
  14000. }
  14001. # Create a (secure) tmp directory for tmp files.
  14002. {
  14003. tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
  14004. test -n "$tmp" && test -d "$tmp"
  14005. } ||
  14006. {
  14007. tmp=./conf$$-$RANDOM
  14008. (umask 077 && mkdir "$tmp")
  14009. } || as_fn_error "cannot create a temporary directory in ." "$LINENO" 5
  14010. # Set up the scripts for CONFIG_FILES section.
  14011. # No need to generate them if there are no CONFIG_FILES.
  14012. # This happens for instance with `./config.status config.h'.
  14013. if test -n "$CONFIG_FILES"; then
  14014. ac_cr=`echo X | tr X '\015'`
  14015. # On cygwin, bash can eat \r inside `` if the user requested igncr.
  14016. # But we know of no other shell where ac_cr would be empty at this
  14017. # point, so we can use a bashism as a fallback.
  14018. if test "x$ac_cr" = x; then
  14019. eval ac_cr=\$\'\\r\'
  14020. fi
  14021. ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
  14022. if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
  14023. ac_cs_awk_cr='\r'
  14024. else
  14025. ac_cs_awk_cr=$ac_cr
  14026. fi
  14027. echo 'BEGIN {' >"$tmp/subs1.awk" &&
  14028. _ACEOF
  14029. {
  14030. echo "cat >conf$$subs.awk <<_ACEOF" &&
  14031. echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
  14032. echo "_ACEOF"
  14033. } >conf$$subs.sh ||
  14034. as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
  14035. ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
  14036. ac_delim='%!_!# '
  14037. for ac_last_try in false false false false false :; do
  14038. . ./conf$$subs.sh ||
  14039. as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
  14040. ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
  14041. if test $ac_delim_n = $ac_delim_num; then
  14042. break
  14043. elif $ac_last_try; then
  14044. as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
  14045. else
  14046. ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
  14047. fi
  14048. done
  14049. rm -f conf$$subs.sh
  14050. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  14051. cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
  14052. _ACEOF
  14053. sed -n '
  14054. h
  14055. s/^/S["/; s/!.*/"]=/
  14056. p
  14057. g
  14058. s/^[^!]*!//
  14059. :repl
  14060. t repl
  14061. s/'"$ac_delim"'$//
  14062. t delim
  14063. :nl
  14064. h
  14065. s/\(.\{148\}\)..*/\1/
  14066. t more1
  14067. s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
  14068. p
  14069. n
  14070. b repl
  14071. :more1
  14072. s/["\\]/\\&/g; s/^/"/; s/$/"\\/
  14073. p
  14074. g
  14075. s/.\{148\}//
  14076. t nl
  14077. :delim
  14078. h
  14079. s/\(.\{148\}\)..*/\1/
  14080. t more2
  14081. s/["\\]/\\&/g; s/^/"/; s/$/"/
  14082. p
  14083. b
  14084. :more2
  14085. s/["\\]/\\&/g; s/^/"/; s/$/"\\/
  14086. p
  14087. g
  14088. s/.\{148\}//
  14089. t delim
  14090. ' <conf$$subs.awk | sed '
  14091. /^[^""]/{
  14092. N
  14093. s/\n//
  14094. }
  14095. ' >>$CONFIG_STATUS || ac_write_fail=1
  14096. rm -f conf$$subs.awk
  14097. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  14098. _ACAWK
  14099. cat >>"\$tmp/subs1.awk" <<_ACAWK &&
  14100. for (key in S) S_is_set[key] = 1
  14101. FS = ""
  14102. }
  14103. {
  14104. line = $ 0
  14105. nfields = split(line, field, "@")
  14106. substed = 0
  14107. len = length(field[1])
  14108. for (i = 2; i < nfields; i++) {
  14109. key = field[i]
  14110. keylen = length(key)
  14111. if (S_is_set[key]) {
  14112. value = S[key]
  14113. line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
  14114. len += length(value) + length(field[++i])
  14115. substed = 1
  14116. } else
  14117. len += 1 + keylen
  14118. }
  14119. print line
  14120. }
  14121. _ACAWK
  14122. _ACEOF
  14123. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  14124. if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
  14125. sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
  14126. else
  14127. cat
  14128. fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
  14129. || as_fn_error "could not setup config files machinery" "$LINENO" 5
  14130. _ACEOF
  14131. # VPATH may cause trouble with some makes, so we remove $(srcdir),
  14132. # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
  14133. # trailing colons and then remove the whole line if VPATH becomes empty
  14134. # (actually we leave an empty line to preserve line numbers).
  14135. if test "x$srcdir" = x.; then
  14136. ac_vpsub='/^[ ]*VPATH[ ]*=/{
  14137. s/:*\$(srcdir):*/:/
  14138. s/:*\${srcdir}:*/:/
  14139. s/:*@srcdir@:*/:/
  14140. s/^\([^=]*=[ ]*\):*/\1/
  14141. s/:*$//
  14142. s/^[^=]*=[ ]*$//
  14143. }'
  14144. fi
  14145. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  14146. fi # test -n "$CONFIG_FILES"
  14147. # Set up the scripts for CONFIG_HEADERS section.
  14148. # No need to generate them if there are no CONFIG_HEADERS.
  14149. # This happens for instance with `./config.status Makefile'.
  14150. if test -n "$CONFIG_HEADERS"; then
  14151. cat >"$tmp/defines.awk" <<\_ACAWK ||
  14152. BEGIN {
  14153. _ACEOF
  14154. # Transform confdefs.h into an awk script `defines.awk', embedded as
  14155. # here-document in config.status, that substitutes the proper values into
  14156. # config.h.in to produce config.h.
  14157. # Create a delimiter string that does not exist in confdefs.h, to ease
  14158. # handling of long lines.
  14159. ac_delim='%!_!# '
  14160. for ac_last_try in false false :; do
  14161. ac_t=`sed -n "/$ac_delim/p" confdefs.h`
  14162. if test -z "$ac_t"; then
  14163. break
  14164. elif $ac_last_try; then
  14165. as_fn_error "could not make $CONFIG_HEADERS" "$LINENO" 5
  14166. else
  14167. ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
  14168. fi
  14169. done
  14170. # For the awk script, D is an array of macro values keyed by name,
  14171. # likewise P contains macro parameters if any. Preserve backslash
  14172. # newline sequences.
  14173. ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
  14174. sed -n '
  14175. s/.\{148\}/&'"$ac_delim"'/g
  14176. t rset
  14177. :rset
  14178. s/^[ ]*#[ ]*define[ ][ ]*/ /
  14179. t def
  14180. d
  14181. :def
  14182. s/\\$//
  14183. t bsnl
  14184. s/["\\]/\\&/g
  14185. s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
  14186. D["\1"]=" \3"/p
  14187. s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
  14188. d
  14189. :bsnl
  14190. s/["\\]/\\&/g
  14191. s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
  14192. D["\1"]=" \3\\\\\\n"\\/p
  14193. t cont
  14194. s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
  14195. t cont
  14196. d
  14197. :cont
  14198. n
  14199. s/.\{148\}/&'"$ac_delim"'/g
  14200. t clear
  14201. :clear
  14202. s/\\$//
  14203. t bsnlc
  14204. s/["\\]/\\&/g; s/^/"/; s/$/"/p
  14205. d
  14206. :bsnlc
  14207. s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
  14208. b cont
  14209. ' <confdefs.h | sed '
  14210. s/'"$ac_delim"'/"\\\
  14211. "/g' >>$CONFIG_STATUS || ac_write_fail=1
  14212. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  14213. for (key in D) D_is_set[key] = 1
  14214. FS = ""
  14215. }
  14216. /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
  14217. line = \$ 0
  14218. split(line, arg, " ")
  14219. if (arg[1] == "#") {
  14220. defundef = arg[2]
  14221. mac1 = arg[3]
  14222. } else {
  14223. defundef = substr(arg[1], 2)
  14224. mac1 = arg[2]
  14225. }
  14226. split(mac1, mac2, "(") #)
  14227. macro = mac2[1]
  14228. prefix = substr(line, 1, index(line, defundef) - 1)
  14229. if (D_is_set[macro]) {
  14230. # Preserve the white space surrounding the "#".
  14231. print prefix "define", macro P[macro] D[macro]
  14232. next
  14233. } else {
  14234. # Replace #undef with comments. This is necessary, for example,
  14235. # in the case of _POSIX_SOURCE, which is predefined and required
  14236. # on some systems where configure will not decide to define it.
  14237. if (defundef == "undef") {
  14238. print "/*", prefix defundef, macro, "*/"
  14239. next
  14240. }
  14241. }
  14242. }
  14243. { print }
  14244. _ACAWK
  14245. _ACEOF
  14246. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  14247. as_fn_error "could not setup config headers machinery" "$LINENO" 5
  14248. fi # test -n "$CONFIG_HEADERS"
  14249. eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
  14250. shift
  14251. for ac_tag
  14252. do
  14253. case $ac_tag in
  14254. :[FHLC]) ac_mode=$ac_tag; continue;;
  14255. esac
  14256. case $ac_mode$ac_tag in
  14257. :[FHL]*:*);;
  14258. :L* | :C*:*) as_fn_error "invalid tag \`$ac_tag'" "$LINENO" 5;;
  14259. :[FH]-) ac_tag=-:-;;
  14260. :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
  14261. esac
  14262. ac_save_IFS=$IFS
  14263. IFS=:
  14264. set x $ac_tag
  14265. IFS=$ac_save_IFS
  14266. shift
  14267. ac_file=$1
  14268. shift
  14269. case $ac_mode in
  14270. :L) ac_source=$1;;
  14271. :[FH])
  14272. ac_file_inputs=
  14273. for ac_f
  14274. do
  14275. case $ac_f in
  14276. -) ac_f="$tmp/stdin";;
  14277. *) # Look for the file first in the build tree, then in the source tree
  14278. # (if the path is not absolute). The absolute path cannot be DOS-style,
  14279. # because $ac_f cannot contain `:'.
  14280. test -f "$ac_f" ||
  14281. case $ac_f in
  14282. [\\/$]*) false;;
  14283. *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
  14284. esac ||
  14285. as_fn_error "cannot find input file: \`$ac_f'" "$LINENO" 5;;
  14286. esac
  14287. case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
  14288. as_fn_append ac_file_inputs " '$ac_f'"
  14289. done
  14290. # Let's still pretend it is `configure' which instantiates (i.e., don't
  14291. # use $as_me), people would be surprised to read:
  14292. # /* config.h. Generated by config.status. */
  14293. configure_input='Generated from '`
  14294. $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
  14295. `' by configure.'
  14296. if test x"$ac_file" != x-; then
  14297. configure_input="$ac_file. $configure_input"
  14298. { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
  14299. $as_echo "$as_me: creating $ac_file" >&6;}
  14300. fi
  14301. # Neutralize special characters interpreted by sed in replacement strings.
  14302. case $configure_input in #(
  14303. *\&* | *\|* | *\\* )
  14304. ac_sed_conf_input=`$as_echo "$configure_input" |
  14305. sed 's/[\\\\&|]/\\\\&/g'`;; #(
  14306. *) ac_sed_conf_input=$configure_input;;
  14307. esac
  14308. case $ac_tag in
  14309. *:-:* | *:-) cat >"$tmp/stdin" \
  14310. || as_fn_error "could not create $ac_file" "$LINENO" 5 ;;
  14311. esac
  14312. ;;
  14313. esac
  14314. ac_dir=`$as_dirname -- "$ac_file" ||
  14315. $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  14316. X"$ac_file" : 'X\(//\)[^/]' \| \
  14317. X"$ac_file" : 'X\(//\)$' \| \
  14318. X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
  14319. $as_echo X"$ac_file" |
  14320. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  14321. s//\1/
  14322. q
  14323. }
  14324. /^X\(\/\/\)[^/].*/{
  14325. s//\1/
  14326. q
  14327. }
  14328. /^X\(\/\/\)$/{
  14329. s//\1/
  14330. q
  14331. }
  14332. /^X\(\/\).*/{
  14333. s//\1/
  14334. q
  14335. }
  14336. s/.*/./; q'`
  14337. as_dir="$ac_dir"; as_fn_mkdir_p
  14338. ac_builddir=.
  14339. case "$ac_dir" in
  14340. .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
  14341. *)
  14342. ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
  14343. # A ".." for each directory in $ac_dir_suffix.
  14344. ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
  14345. case $ac_top_builddir_sub in
  14346. "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
  14347. *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
  14348. esac ;;
  14349. esac
  14350. ac_abs_top_builddir=$ac_pwd
  14351. ac_abs_builddir=$ac_pwd$ac_dir_suffix
  14352. # for backward compatibility:
  14353. ac_top_builddir=$ac_top_build_prefix
  14354. case $srcdir in
  14355. .) # We are building in place.
  14356. ac_srcdir=.
  14357. ac_top_srcdir=$ac_top_builddir_sub
  14358. ac_abs_top_srcdir=$ac_pwd ;;
  14359. [\\/]* | ?:[\\/]* ) # Absolute name.
  14360. ac_srcdir=$srcdir$ac_dir_suffix;
  14361. ac_top_srcdir=$srcdir
  14362. ac_abs_top_srcdir=$srcdir ;;
  14363. *) # Relative name.
  14364. ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
  14365. ac_top_srcdir=$ac_top_build_prefix$srcdir
  14366. ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
  14367. esac
  14368. ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
  14369. case $ac_mode in
  14370. :F)
  14371. #
  14372. # CONFIG_FILE
  14373. #
  14374. case $INSTALL in
  14375. [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
  14376. *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
  14377. esac
  14378. ac_MKDIR_P=$MKDIR_P
  14379. case $MKDIR_P in
  14380. [\\/$]* | ?:[\\/]* ) ;;
  14381. */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
  14382. esac
  14383. _ACEOF
  14384. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  14385. # If the template does not know about datarootdir, expand it.
  14386. # FIXME: This hack should be removed a few years after 2.60.
  14387. ac_datarootdir_hack=; ac_datarootdir_seen=
  14388. ac_sed_dataroot='
  14389. /datarootdir/ {
  14390. p
  14391. q
  14392. }
  14393. /@datadir@/p
  14394. /@docdir@/p
  14395. /@infodir@/p
  14396. /@localedir@/p
  14397. /@mandir@/p'
  14398. case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
  14399. *datarootdir*) ac_datarootdir_seen=yes;;
  14400. *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
  14401. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
  14402. $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
  14403. _ACEOF
  14404. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  14405. ac_datarootdir_hack='
  14406. s&@datadir@&$datadir&g
  14407. s&@docdir@&$docdir&g
  14408. s&@infodir@&$infodir&g
  14409. s&@localedir@&$localedir&g
  14410. s&@mandir@&$mandir&g
  14411. s&\\\${datarootdir}&$datarootdir&g' ;;
  14412. esac
  14413. _ACEOF
  14414. # Neutralize VPATH when `$srcdir' = `.'.
  14415. # Shell code in configure.ac might set extrasub.
  14416. # FIXME: do we really want to maintain this feature?
  14417. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  14418. ac_sed_extra="$ac_vpsub
  14419. $extrasub
  14420. _ACEOF
  14421. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  14422. :t
  14423. /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
  14424. s|@configure_input@|$ac_sed_conf_input|;t t
  14425. s&@top_builddir@&$ac_top_builddir_sub&;t t
  14426. s&@top_build_prefix@&$ac_top_build_prefix&;t t
  14427. s&@srcdir@&$ac_srcdir&;t t
  14428. s&@abs_srcdir@&$ac_abs_srcdir&;t t
  14429. s&@top_srcdir@&$ac_top_srcdir&;t t
  14430. s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
  14431. s&@builddir@&$ac_builddir&;t t
  14432. s&@abs_builddir@&$ac_abs_builddir&;t t
  14433. s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
  14434. s&@INSTALL@&$ac_INSTALL&;t t
  14435. s&@MKDIR_P@&$ac_MKDIR_P&;t t
  14436. $ac_datarootdir_hack
  14437. "
  14438. eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
  14439. || as_fn_error "could not create $ac_file" "$LINENO" 5
  14440. test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
  14441. { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
  14442. { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
  14443. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
  14444. which seems to be undefined. Please make sure it is defined." >&5
  14445. $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
  14446. which seems to be undefined. Please make sure it is defined." >&2;}
  14447. rm -f "$tmp/stdin"
  14448. case $ac_file in
  14449. -) cat "$tmp/out" && rm -f "$tmp/out";;
  14450. *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
  14451. esac \
  14452. || as_fn_error "could not create $ac_file" "$LINENO" 5
  14453. ;;
  14454. :H)
  14455. #
  14456. # CONFIG_HEADER
  14457. #
  14458. if test x"$ac_file" != x-; then
  14459. {
  14460. $as_echo "/* $configure_input */" \
  14461. && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
  14462. } >"$tmp/config.h" \
  14463. || as_fn_error "could not create $ac_file" "$LINENO" 5
  14464. if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
  14465. { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
  14466. $as_echo "$as_me: $ac_file is unchanged" >&6;}
  14467. else
  14468. rm -f "$ac_file"
  14469. mv "$tmp/config.h" "$ac_file" \
  14470. || as_fn_error "could not create $ac_file" "$LINENO" 5
  14471. fi
  14472. else
  14473. $as_echo "/* $configure_input */" \
  14474. && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
  14475. || as_fn_error "could not create -" "$LINENO" 5
  14476. fi
  14477. # Compute "$ac_file"'s index in $config_headers.
  14478. _am_arg="$ac_file"
  14479. _am_stamp_count=1
  14480. for _am_header in $config_headers :; do
  14481. case $_am_header in
  14482. $_am_arg | $_am_arg:* )
  14483. break ;;
  14484. * )
  14485. _am_stamp_count=`expr $_am_stamp_count + 1` ;;
  14486. esac
  14487. done
  14488. echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
  14489. $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  14490. X"$_am_arg" : 'X\(//\)[^/]' \| \
  14491. X"$_am_arg" : 'X\(//\)$' \| \
  14492. X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
  14493. $as_echo X"$_am_arg" |
  14494. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  14495. s//\1/
  14496. q
  14497. }
  14498. /^X\(\/\/\)[^/].*/{
  14499. s//\1/
  14500. q
  14501. }
  14502. /^X\(\/\/\)$/{
  14503. s//\1/
  14504. q
  14505. }
  14506. /^X\(\/\).*/{
  14507. s//\1/
  14508. q
  14509. }
  14510. s/.*/./; q'`/stamp-h$_am_stamp_count
  14511. ;;
  14512. :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
  14513. $as_echo "$as_me: executing $ac_file commands" >&6;}
  14514. ;;
  14515. esac
  14516. case $ac_file$ac_mode in
  14517. "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
  14518. # Autoconf 2.62 quotes --file arguments for eval, but not when files
  14519. # are listed without --file. Let's play safe and only enable the eval
  14520. # if we detect the quoting.
  14521. case $CONFIG_FILES in
  14522. *\'*) eval set x "$CONFIG_FILES" ;;
  14523. *) set x $CONFIG_FILES ;;
  14524. esac
  14525. shift
  14526. for mf
  14527. do
  14528. # Strip MF so we end up with the name of the file.
  14529. mf=`echo "$mf" | sed -e 's/:.*$//'`
  14530. # Check whether this is an Automake generated Makefile or not.
  14531. # We used to match only the files named `Makefile.in', but
  14532. # some people rename them; so instead we look at the file content.
  14533. # Grep'ing the first line is not enough: some people post-process
  14534. # each Makefile.in and add a new line on top of each file to say so.
  14535. # Grep'ing the whole file is not good either: AIX grep has a line
  14536. # limit of 2048, but all sed's we know have understand at least 4000.
  14537. if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
  14538. dirpart=`$as_dirname -- "$mf" ||
  14539. $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  14540. X"$mf" : 'X\(//\)[^/]' \| \
  14541. X"$mf" : 'X\(//\)$' \| \
  14542. X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
  14543. $as_echo X"$mf" |
  14544. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  14545. s//\1/
  14546. q
  14547. }
  14548. /^X\(\/\/\)[^/].*/{
  14549. s//\1/
  14550. q
  14551. }
  14552. /^X\(\/\/\)$/{
  14553. s//\1/
  14554. q
  14555. }
  14556. /^X\(\/\).*/{
  14557. s//\1/
  14558. q
  14559. }
  14560. s/.*/./; q'`
  14561. else
  14562. continue
  14563. fi
  14564. # Extract the definition of DEPDIR, am__include, and am__quote
  14565. # from the Makefile without running `make'.
  14566. DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
  14567. test -z "$DEPDIR" && continue
  14568. am__include=`sed -n 's/^am__include = //p' < "$mf"`
  14569. test -z "am__include" && continue
  14570. am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
  14571. # When using ansi2knr, U may be empty or an underscore; expand it
  14572. U=`sed -n 's/^U = //p' < "$mf"`
  14573. # Find all dependency output files, they are included files with
  14574. # $(DEPDIR) in their names. We invoke sed twice because it is the
  14575. # simplest approach to changing $(DEPDIR) to its actual value in the
  14576. # expansion.
  14577. for file in `sed -n "
  14578. s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
  14579. sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
  14580. # Make sure the directory exists.
  14581. test -f "$dirpart/$file" && continue
  14582. fdir=`$as_dirname -- "$file" ||
  14583. $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  14584. X"$file" : 'X\(//\)[^/]' \| \
  14585. X"$file" : 'X\(//\)$' \| \
  14586. X"$file" : 'X\(/\)' \| . 2>/dev/null ||
  14587. $as_echo X"$file" |
  14588. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  14589. s//\1/
  14590. q
  14591. }
  14592. /^X\(\/\/\)[^/].*/{
  14593. s//\1/
  14594. q
  14595. }
  14596. /^X\(\/\/\)$/{
  14597. s//\1/
  14598. q
  14599. }
  14600. /^X\(\/\).*/{
  14601. s//\1/
  14602. q
  14603. }
  14604. s/.*/./; q'`
  14605. as_dir=$dirpart/$fdir; as_fn_mkdir_p
  14606. # echo "creating $dirpart/$file"
  14607. echo '# dummy' > "$dirpart/$file"
  14608. done
  14609. done
  14610. }
  14611. ;;
  14612. "po-directories":C)
  14613. for ac_file in $CONFIG_FILES; do
  14614. # Support "outfile[:infile[:infile...]]"
  14615. case "$ac_file" in
  14616. *:*) ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
  14617. esac
  14618. # PO directories have a Makefile.in generated from Makefile.in.in.
  14619. case "$ac_file" in */Makefile.in)
  14620. # Adjust a relative srcdir.
  14621. ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'`
  14622. ac_dir_suffix="/`echo "$ac_dir"|sed 's%^\./%%'`"
  14623. ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'`
  14624. # In autoconf-2.13 it is called $ac_given_srcdir.
  14625. # In autoconf-2.50 it is called $srcdir.
  14626. test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir"
  14627. case "$ac_given_srcdir" in
  14628. .) top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;;
  14629. /*) top_srcdir="$ac_given_srcdir" ;;
  14630. *) top_srcdir="$ac_dots$ac_given_srcdir" ;;
  14631. esac
  14632. # Treat a directory as a PO directory if and only if it has a
  14633. # POTFILES.in file. This allows packages to have multiple PO
  14634. # directories under different names or in different locations.
  14635. if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then
  14636. rm -f "$ac_dir/POTFILES"
  14637. test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES"
  14638. cat "$ac_given_srcdir/$ac_dir/POTFILES.in" | sed -e "/^#/d" -e "/^[ ]*\$/d" -e "s,.*, $top_srcdir/& \\\\," | sed -e "\$s/\(.*\) \\\\/\1/" > "$ac_dir/POTFILES"
  14639. POMAKEFILEDEPS="POTFILES.in"
  14640. # ALL_LINGUAS, POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES depend
  14641. # on $ac_dir but don't depend on user-specified configuration
  14642. # parameters.
  14643. if test -f "$ac_given_srcdir/$ac_dir/LINGUAS"; then
  14644. # The LINGUAS file contains the set of available languages.
  14645. if test -n "$OBSOLETE_ALL_LINGUAS"; then
  14646. test -n "$as_me" && echo "$as_me: setting ALL_LINGUAS in configure.in is obsolete" || echo "setting ALL_LINGUAS in configure.in is obsolete"
  14647. fi
  14648. ALL_LINGUAS_=`sed -e "/^#/d" -e "s/#.*//" "$ac_given_srcdir/$ac_dir/LINGUAS"`
  14649. # Hide the ALL_LINGUAS assigment from automake < 1.5.
  14650. eval 'ALL_LINGUAS''=$ALL_LINGUAS_'
  14651. POMAKEFILEDEPS="$POMAKEFILEDEPS LINGUAS"
  14652. else
  14653. # The set of available languages was given in configure.in.
  14654. # Hide the ALL_LINGUAS assigment from automake < 1.5.
  14655. eval 'ALL_LINGUAS''=$OBSOLETE_ALL_LINGUAS'
  14656. fi
  14657. # Compute POFILES
  14658. # as $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).po)
  14659. # Compute UPDATEPOFILES
  14660. # as $(foreach lang, $(ALL_LINGUAS), $(lang).po-update)
  14661. # Compute DUMMYPOFILES
  14662. # as $(foreach lang, $(ALL_LINGUAS), $(lang).nop)
  14663. # Compute GMOFILES
  14664. # as $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).gmo)
  14665. case "$ac_given_srcdir" in
  14666. .) srcdirpre= ;;
  14667. *) srcdirpre='$(srcdir)/' ;;
  14668. esac
  14669. POFILES=
  14670. UPDATEPOFILES=
  14671. DUMMYPOFILES=
  14672. GMOFILES=
  14673. for lang in $ALL_LINGUAS; do
  14674. POFILES="$POFILES $srcdirpre$lang.po"
  14675. UPDATEPOFILES="$UPDATEPOFILES $lang.po-update"
  14676. DUMMYPOFILES="$DUMMYPOFILES $lang.nop"
  14677. GMOFILES="$GMOFILES $srcdirpre$lang.gmo"
  14678. done
  14679. # CATALOGS depends on both $ac_dir and the user's LINGUAS
  14680. # environment variable.
  14681. INST_LINGUAS=
  14682. if test -n "$ALL_LINGUAS"; then
  14683. for presentlang in $ALL_LINGUAS; do
  14684. useit=no
  14685. if test "%UNSET%" != "$LINGUAS"; then
  14686. desiredlanguages="$LINGUAS"
  14687. else
  14688. desiredlanguages="$ALL_LINGUAS"
  14689. fi
  14690. for desiredlang in $desiredlanguages; do
  14691. # Use the presentlang catalog if desiredlang is
  14692. # a. equal to presentlang, or
  14693. # b. a variant of presentlang (because in this case,
  14694. # presentlang can be used as a fallback for messages
  14695. # which are not translated in the desiredlang catalog).
  14696. case "$desiredlang" in
  14697. "$presentlang"*) useit=yes;;
  14698. esac
  14699. done
  14700. if test $useit = yes; then
  14701. INST_LINGUAS="$INST_LINGUAS $presentlang"
  14702. fi
  14703. done
  14704. fi
  14705. CATALOGS=
  14706. if test -n "$INST_LINGUAS"; then
  14707. for lang in $INST_LINGUAS; do
  14708. CATALOGS="$CATALOGS $lang.gmo"
  14709. done
  14710. fi
  14711. test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" || echo "creating $ac_dir/Makefile"
  14712. 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"
  14713. for f in "$ac_given_srcdir/$ac_dir"/Rules-*; do
  14714. if test -f "$f"; then
  14715. case "$f" in
  14716. *.orig | *.bak | *~) ;;
  14717. *) cat "$f" >> "$ac_dir/Makefile" ;;
  14718. esac
  14719. fi
  14720. done
  14721. fi
  14722. ;;
  14723. esac
  14724. done ;;
  14725. esac
  14726. done # for ac_tag
  14727. as_fn_exit 0
  14728. _ACEOF
  14729. ac_clean_files=$ac_clean_files_save
  14730. test $ac_write_fail = 0 ||
  14731. as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5
  14732. # configure is writing to config.log, and then calls config.status.
  14733. # config.status does its own redirection, appending to config.log.
  14734. # Unfortunately, on DOS this fails, as config.log is still kept open
  14735. # by configure, so config.status won't be able to write to it; its
  14736. # output is simply discarded. So we exec the FD to /dev/null,
  14737. # effectively closing config.log, so it can be properly (re)opened and
  14738. # appended to by config.status. When coming back to configure, we
  14739. # need to make the FD available again.
  14740. if test "$no_create" != yes; then
  14741. ac_cs_success=:
  14742. ac_config_status_args=
  14743. test "$silent" = yes &&
  14744. ac_config_status_args="$ac_config_status_args --quiet"
  14745. exec 5>/dev/null
  14746. $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
  14747. exec 5>>config.log
  14748. # Use ||, not &&, to avoid exiting from the if with $? = 1, which
  14749. # would make configure fail if this is the last instruction.
  14750. $ac_cs_success || as_fn_exit $?
  14751. fi
  14752. if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
  14753. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
  14754. $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
  14755. fi
  14756. echo " "
  14757. echo "Build: $build"
  14758. echo "Target: $target"
  14759. echo "Install prefix: $prefix"
  14760. echo "CXXFLAGS: $CXXFLAGS"
  14761. echo "CFLAGS: $CFLAGS"
  14762. echo "CPPFLAGS: $CPPFLAGS"
  14763. echo "LDFLAGS: $LDFLAGS"
  14764. echo "LIBS: $LIBS"
  14765. echo "SQLite3: $have_sqlite3"
  14766. echo "GnuTLS: $have_libgnutls"
  14767. echo "OpenSSL: $have_openssl"
  14768. echo "CA Bundle: $ca_bundle"
  14769. echo "LibXML2: $have_libxml2"
  14770. echo "LibExpat: $have_libexpat"
  14771. echo "LibCares: $have_libcares"
  14772. echo "Libz: $have_libz"
  14773. echo "Epoll: $have_epoll"
  14774. echo "Bittorrent: $enable_bittorrent"
  14775. echo "Metalink: $enable_metalink"
  14776. echo "XML-RPC: $enable_xml_rpc"