configure 467 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155815591560156115621563156415651566156715681569157015711572157315741575157615771578157915801581158215831584158515861587158815891590159115921593159415951596159715981599160016011602160316041605160616071608160916101611161216131614161516161617161816191620162116221623162416251626162716281629163016311632163316341635163616371638163916401641164216431644164516461647164816491650165116521653165416551656165716581659166016611662166316641665166616671668166916701671167216731674167516761677167816791680168116821683168416851686168716881689169016911692169316941695169616971698169917001701170217031704170517061707170817091710171117121713171417151716171717181719172017211722172317241725172617271728172917301731173217331734173517361737173817391740174117421743174417451746174717481749175017511752175317541755175617571758175917601761176217631764176517661767176817691770177117721773177417751776177717781779178017811782178317841785178617871788178917901791179217931794179517961797179817991800180118021803180418051806180718081809181018111812181318141815181618171818181918201821182218231824182518261827182818291830183118321833183418351836183718381839184018411842184318441845184618471848184918501851185218531854185518561857185818591860186118621863186418651866186718681869187018711872187318741875187618771878187918801881188218831884188518861887188818891890189118921893189418951896189718981899190019011902190319041905190619071908190919101911191219131914191519161917191819191920192119221923192419251926192719281929193019311932193319341935193619371938193919401941194219431944194519461947194819491950195119521953195419551956195719581959196019611962196319641965196619671968196919701971197219731974197519761977197819791980198119821983198419851986198719881989199019911992199319941995199619971998199920002001200220032004200520062007200820092010201120122013201420152016201720182019202020212022202320242025202620272028202920302031203220332034203520362037203820392040204120422043204420452046204720482049205020512052205320542055205620572058205920602061206220632064206520662067206820692070207120722073207420752076207720782079208020812082208320842085208620872088208920902091209220932094209520962097209820992100210121022103210421052106210721082109211021112112211321142115211621172118211921202121212221232124212521262127212821292130213121322133213421352136213721382139214021412142214321442145214621472148214921502151215221532154215521562157215821592160216121622163216421652166216721682169217021712172217321742175217621772178217921802181218221832184218521862187218821892190219121922193219421952196219721982199220022012202220322042205220622072208220922102211221222132214221522162217221822192220222122222223222422252226222722282229223022312232223322342235223622372238223922402241224222432244224522462247224822492250225122522253225422552256225722582259226022612262226322642265226622672268226922702271227222732274227522762277227822792280228122822283228422852286228722882289229022912292229322942295229622972298229923002301230223032304230523062307230823092310231123122313231423152316231723182319232023212322232323242325232623272328232923302331233223332334233523362337233823392340234123422343234423452346234723482349235023512352235323542355235623572358235923602361236223632364236523662367236823692370237123722373237423752376237723782379238023812382238323842385238623872388238923902391239223932394239523962397239823992400240124022403240424052406240724082409241024112412241324142415241624172418241924202421242224232424242524262427242824292430243124322433243424352436243724382439244024412442244324442445244624472448244924502451245224532454245524562457245824592460246124622463246424652466246724682469247024712472247324742475247624772478247924802481248224832484248524862487248824892490249124922493249424952496249724982499250025012502250325042505250625072508250925102511251225132514251525162517251825192520252125222523252425252526252725282529253025312532253325342535253625372538253925402541254225432544254525462547254825492550255125522553255425552556255725582559256025612562256325642565256625672568256925702571257225732574257525762577257825792580258125822583258425852586258725882589259025912592259325942595259625972598259926002601260226032604260526062607260826092610261126122613261426152616261726182619262026212622262326242625262626272628262926302631263226332634263526362637263826392640264126422643264426452646264726482649265026512652265326542655265626572658265926602661266226632664266526662667266826692670267126722673267426752676267726782679268026812682268326842685268626872688268926902691269226932694269526962697269826992700270127022703270427052706270727082709271027112712271327142715271627172718271927202721272227232724272527262727272827292730273127322733273427352736273727382739274027412742274327442745274627472748274927502751275227532754275527562757275827592760276127622763276427652766276727682769277027712772277327742775277627772778277927802781278227832784278527862787278827892790279127922793279427952796279727982799280028012802280328042805280628072808280928102811281228132814281528162817281828192820282128222823282428252826282728282829283028312832283328342835283628372838283928402841284228432844284528462847284828492850285128522853285428552856285728582859286028612862286328642865286628672868286928702871287228732874287528762877287828792880288128822883288428852886288728882889289028912892289328942895289628972898289929002901290229032904290529062907290829092910291129122913291429152916291729182919292029212922292329242925292629272928292929302931293229332934293529362937293829392940294129422943294429452946294729482949295029512952295329542955295629572958295929602961296229632964296529662967296829692970297129722973297429752976297729782979298029812982298329842985298629872988298929902991299229932994299529962997299829993000300130023003300430053006300730083009301030113012301330143015301630173018301930203021302230233024302530263027302830293030303130323033303430353036303730383039304030413042304330443045304630473048304930503051305230533054305530563057305830593060306130623063306430653066306730683069307030713072307330743075307630773078307930803081308230833084308530863087308830893090309130923093309430953096309730983099310031013102310331043105310631073108310931103111311231133114311531163117311831193120312131223123312431253126312731283129313031313132313331343135313631373138313931403141314231433144314531463147314831493150315131523153315431553156315731583159316031613162316331643165316631673168316931703171317231733174317531763177317831793180318131823183318431853186318731883189319031913192319331943195319631973198319932003201320232033204320532063207320832093210321132123213321432153216321732183219322032213222322332243225322632273228322932303231323232333234323532363237323832393240324132423243324432453246324732483249325032513252325332543255325632573258325932603261326232633264326532663267326832693270327132723273327432753276327732783279328032813282328332843285328632873288328932903291329232933294329532963297329832993300330133023303330433053306330733083309331033113312331333143315331633173318331933203321332233233324332533263327332833293330333133323333333433353336333733383339334033413342334333443345334633473348334933503351335233533354335533563357335833593360336133623363336433653366336733683369337033713372337333743375337633773378337933803381338233833384338533863387338833893390339133923393339433953396339733983399340034013402340334043405340634073408340934103411341234133414341534163417341834193420342134223423342434253426342734283429343034313432343334343435343634373438343934403441344234433444344534463447344834493450345134523453345434553456345734583459346034613462346334643465346634673468346934703471347234733474347534763477347834793480348134823483348434853486348734883489349034913492349334943495349634973498349935003501350235033504350535063507350835093510351135123513351435153516351735183519352035213522352335243525352635273528352935303531353235333534353535363537353835393540354135423543354435453546354735483549355035513552355335543555355635573558355935603561356235633564356535663567356835693570357135723573357435753576357735783579358035813582358335843585358635873588358935903591359235933594359535963597359835993600360136023603360436053606360736083609361036113612361336143615361636173618361936203621362236233624362536263627362836293630363136323633363436353636363736383639364036413642364336443645364636473648364936503651365236533654365536563657365836593660366136623663366436653666366736683669367036713672367336743675367636773678367936803681368236833684368536863687368836893690369136923693369436953696369736983699370037013702370337043705370637073708370937103711371237133714371537163717371837193720372137223723372437253726372737283729373037313732373337343735373637373738373937403741374237433744374537463747374837493750375137523753375437553756375737583759376037613762376337643765376637673768376937703771377237733774377537763777377837793780378137823783378437853786378737883789379037913792379337943795379637973798379938003801380238033804380538063807380838093810381138123813381438153816381738183819382038213822382338243825382638273828382938303831383238333834383538363837383838393840384138423843384438453846384738483849385038513852385338543855385638573858385938603861386238633864386538663867386838693870387138723873387438753876387738783879388038813882388338843885388638873888388938903891389238933894389538963897389838993900390139023903390439053906390739083909391039113912391339143915391639173918391939203921392239233924392539263927392839293930393139323933393439353936393739383939394039413942394339443945394639473948394939503951395239533954395539563957395839593960396139623963396439653966396739683969397039713972397339743975397639773978397939803981398239833984398539863987398839893990399139923993399439953996399739983999400040014002400340044005400640074008400940104011401240134014401540164017401840194020402140224023402440254026402740284029403040314032403340344035403640374038403940404041404240434044404540464047404840494050405140524053405440554056405740584059406040614062406340644065406640674068406940704071407240734074407540764077407840794080408140824083408440854086408740884089409040914092409340944095409640974098409941004101410241034104410541064107410841094110411141124113411441154116411741184119412041214122412341244125412641274128412941304131413241334134413541364137413841394140414141424143414441454146414741484149415041514152415341544155415641574158415941604161416241634164416541664167416841694170417141724173417441754176417741784179418041814182418341844185418641874188418941904191419241934194419541964197419841994200420142024203420442054206420742084209421042114212421342144215421642174218421942204221422242234224422542264227422842294230423142324233423442354236423742384239424042414242424342444245424642474248424942504251425242534254425542564257425842594260426142624263426442654266426742684269427042714272427342744275427642774278427942804281428242834284428542864287428842894290429142924293429442954296429742984299430043014302430343044305430643074308430943104311431243134314431543164317431843194320432143224323432443254326432743284329433043314332433343344335433643374338433943404341434243434344434543464347434843494350435143524353435443554356435743584359436043614362436343644365436643674368436943704371437243734374437543764377437843794380438143824383438443854386438743884389439043914392439343944395439643974398439944004401440244034404440544064407440844094410441144124413441444154416441744184419442044214422442344244425442644274428442944304431443244334434443544364437443844394440444144424443444444454446444744484449445044514452445344544455445644574458445944604461446244634464446544664467446844694470447144724473447444754476447744784479448044814482448344844485448644874488448944904491449244934494449544964497449844994500450145024503450445054506450745084509451045114512451345144515451645174518451945204521452245234524452545264527452845294530453145324533453445354536453745384539454045414542454345444545454645474548454945504551455245534554455545564557455845594560456145624563456445654566456745684569457045714572457345744575457645774578457945804581458245834584458545864587458845894590459145924593459445954596459745984599460046014602460346044605460646074608460946104611461246134614461546164617461846194620462146224623462446254626462746284629463046314632463346344635463646374638463946404641464246434644464546464647464846494650465146524653465446554656465746584659466046614662466346644665466646674668466946704671467246734674467546764677467846794680468146824683468446854686468746884689469046914692469346944695469646974698469947004701470247034704470547064707470847094710471147124713471447154716471747184719472047214722472347244725472647274728472947304731473247334734473547364737473847394740474147424743474447454746474747484749475047514752475347544755475647574758475947604761476247634764476547664767476847694770477147724773477447754776477747784779478047814782478347844785478647874788478947904791479247934794479547964797479847994800480148024803480448054806480748084809481048114812481348144815481648174818481948204821482248234824482548264827482848294830483148324833483448354836483748384839484048414842484348444845484648474848484948504851485248534854485548564857485848594860486148624863486448654866486748684869487048714872487348744875487648774878487948804881488248834884488548864887488848894890489148924893489448954896489748984899490049014902490349044905490649074908490949104911491249134914491549164917491849194920492149224923492449254926492749284929493049314932493349344935493649374938493949404941494249434944494549464947494849494950495149524953495449554956495749584959496049614962496349644965496649674968496949704971497249734974497549764977497849794980498149824983498449854986498749884989499049914992499349944995499649974998499950005001500250035004500550065007500850095010501150125013501450155016501750185019502050215022502350245025502650275028502950305031503250335034503550365037503850395040504150425043504450455046504750485049505050515052505350545055505650575058505950605061506250635064506550665067506850695070507150725073507450755076507750785079508050815082508350845085508650875088508950905091509250935094509550965097509850995100510151025103510451055106510751085109511051115112511351145115511651175118511951205121512251235124512551265127512851295130513151325133513451355136513751385139514051415142514351445145514651475148514951505151515251535154515551565157515851595160516151625163516451655166516751685169517051715172517351745175517651775178517951805181518251835184518551865187518851895190519151925193519451955196519751985199520052015202520352045205520652075208520952105211521252135214521552165217521852195220522152225223522452255226522752285229523052315232523352345235523652375238523952405241524252435244524552465247524852495250525152525253525452555256525752585259526052615262526352645265526652675268526952705271527252735274527552765277527852795280528152825283528452855286528752885289529052915292529352945295529652975298529953005301530253035304530553065307530853095310531153125313531453155316531753185319532053215322532353245325532653275328532953305331533253335334533553365337533853395340534153425343534453455346534753485349535053515352535353545355535653575358535953605361536253635364536553665367536853695370537153725373537453755376537753785379538053815382538353845385538653875388538953905391539253935394539553965397539853995400540154025403540454055406540754085409541054115412541354145415541654175418541954205421542254235424542554265427542854295430543154325433543454355436543754385439544054415442544354445445544654475448544954505451545254535454545554565457545854595460546154625463546454655466546754685469547054715472547354745475547654775478547954805481548254835484548554865487548854895490549154925493549454955496549754985499550055015502550355045505550655075508550955105511551255135514551555165517551855195520552155225523552455255526552755285529553055315532553355345535553655375538553955405541554255435544554555465547554855495550555155525553555455555556555755585559556055615562556355645565556655675568556955705571557255735574557555765577557855795580558155825583558455855586558755885589559055915592559355945595559655975598559956005601560256035604560556065607560856095610561156125613561456155616561756185619562056215622562356245625562656275628562956305631563256335634563556365637563856395640564156425643564456455646564756485649565056515652565356545655565656575658565956605661566256635664566556665667566856695670567156725673567456755676567756785679568056815682568356845685568656875688568956905691569256935694569556965697569856995700570157025703570457055706570757085709571057115712571357145715571657175718571957205721572257235724572557265727572857295730573157325733573457355736573757385739574057415742574357445745574657475748574957505751575257535754575557565757575857595760576157625763576457655766576757685769577057715772577357745775577657775778577957805781578257835784578557865787578857895790579157925793579457955796579757985799580058015802580358045805580658075808580958105811581258135814581558165817581858195820582158225823582458255826582758285829583058315832583358345835583658375838583958405841584258435844584558465847584858495850585158525853585458555856585758585859586058615862586358645865586658675868586958705871587258735874587558765877587858795880588158825883588458855886588758885889589058915892589358945895589658975898589959005901590259035904590559065907590859095910591159125913591459155916591759185919592059215922592359245925592659275928592959305931593259335934593559365937593859395940594159425943594459455946594759485949595059515952595359545955595659575958595959605961596259635964596559665967596859695970597159725973597459755976597759785979598059815982598359845985598659875988598959905991599259935994599559965997599859996000600160026003600460056006600760086009601060116012601360146015601660176018601960206021602260236024602560266027602860296030603160326033603460356036603760386039604060416042604360446045604660476048604960506051605260536054605560566057605860596060606160626063606460656066606760686069607060716072607360746075607660776078607960806081608260836084608560866087608860896090609160926093609460956096609760986099610061016102610361046105610661076108610961106111611261136114611561166117611861196120612161226123612461256126612761286129613061316132613361346135613661376138613961406141614261436144614561466147614861496150615161526153615461556156615761586159616061616162616361646165616661676168616961706171617261736174617561766177617861796180618161826183618461856186618761886189619061916192619361946195619661976198619962006201620262036204620562066207620862096210621162126213621462156216621762186219622062216222622362246225622662276228622962306231623262336234623562366237623862396240624162426243624462456246624762486249625062516252625362546255625662576258625962606261626262636264626562666267626862696270627162726273627462756276627762786279628062816282628362846285628662876288628962906291629262936294629562966297629862996300630163026303630463056306630763086309631063116312631363146315631663176318631963206321632263236324632563266327632863296330633163326333633463356336633763386339634063416342634363446345634663476348634963506351635263536354635563566357635863596360636163626363636463656366636763686369637063716372637363746375637663776378637963806381638263836384638563866387638863896390639163926393639463956396639763986399640064016402640364046405640664076408640964106411641264136414641564166417641864196420642164226423642464256426642764286429643064316432643364346435643664376438643964406441644264436444644564466447644864496450645164526453645464556456645764586459646064616462646364646465646664676468646964706471647264736474647564766477647864796480648164826483648464856486648764886489649064916492649364946495649664976498649965006501650265036504650565066507650865096510651165126513651465156516651765186519652065216522652365246525652665276528652965306531653265336534653565366537653865396540654165426543654465456546654765486549655065516552655365546555655665576558655965606561656265636564656565666567656865696570657165726573657465756576657765786579658065816582658365846585658665876588658965906591659265936594659565966597659865996600660166026603660466056606660766086609661066116612661366146615661666176618661966206621662266236624662566266627662866296630663166326633663466356636663766386639664066416642664366446645664666476648664966506651665266536654665566566657665866596660666166626663666466656666666766686669667066716672667366746675667666776678667966806681668266836684668566866687668866896690669166926693669466956696669766986699670067016702670367046705670667076708670967106711671267136714671567166717671867196720672167226723672467256726672767286729673067316732673367346735673667376738673967406741674267436744674567466747674867496750675167526753675467556756675767586759676067616762676367646765676667676768676967706771677267736774677567766777677867796780678167826783678467856786678767886789679067916792679367946795679667976798679968006801680268036804680568066807680868096810681168126813681468156816681768186819682068216822682368246825682668276828682968306831683268336834683568366837683868396840684168426843684468456846684768486849685068516852685368546855685668576858685968606861686268636864686568666867686868696870687168726873687468756876687768786879688068816882688368846885688668876888688968906891689268936894689568966897689868996900690169026903690469056906690769086909691069116912691369146915691669176918691969206921692269236924692569266927692869296930693169326933693469356936693769386939694069416942694369446945694669476948694969506951695269536954695569566957695869596960696169626963696469656966696769686969697069716972697369746975697669776978697969806981698269836984698569866987698869896990699169926993699469956996699769986999700070017002700370047005700670077008700970107011701270137014701570167017701870197020702170227023702470257026702770287029703070317032703370347035703670377038703970407041704270437044704570467047704870497050705170527053705470557056705770587059706070617062706370647065706670677068706970707071707270737074707570767077707870797080708170827083708470857086708770887089709070917092709370947095709670977098709971007101710271037104710571067107710871097110711171127113711471157116711771187119712071217122712371247125712671277128712971307131713271337134713571367137713871397140714171427143714471457146714771487149715071517152715371547155715671577158715971607161716271637164716571667167716871697170717171727173717471757176717771787179718071817182718371847185718671877188718971907191719271937194719571967197719871997200720172027203720472057206720772087209721072117212721372147215721672177218721972207221722272237224722572267227722872297230723172327233723472357236723772387239724072417242724372447245724672477248724972507251725272537254725572567257725872597260726172627263726472657266726772687269727072717272727372747275727672777278727972807281728272837284728572867287728872897290729172927293729472957296729772987299730073017302730373047305730673077308730973107311731273137314731573167317731873197320732173227323732473257326732773287329733073317332733373347335733673377338733973407341734273437344734573467347734873497350735173527353735473557356735773587359736073617362736373647365736673677368736973707371737273737374737573767377737873797380738173827383738473857386738773887389739073917392739373947395739673977398739974007401740274037404740574067407740874097410741174127413741474157416741774187419742074217422742374247425742674277428742974307431743274337434743574367437743874397440744174427443744474457446744774487449745074517452745374547455745674577458745974607461746274637464746574667467746874697470747174727473747474757476747774787479748074817482748374847485748674877488748974907491749274937494749574967497749874997500750175027503750475057506750775087509751075117512751375147515751675177518751975207521752275237524752575267527752875297530753175327533753475357536753775387539754075417542754375447545754675477548754975507551755275537554755575567557755875597560756175627563756475657566756775687569757075717572757375747575757675777578757975807581758275837584758575867587758875897590759175927593759475957596759775987599760076017602760376047605760676077608760976107611761276137614761576167617761876197620762176227623762476257626762776287629763076317632763376347635763676377638763976407641764276437644764576467647764876497650765176527653765476557656765776587659766076617662766376647665766676677668766976707671767276737674767576767677767876797680768176827683768476857686768776887689769076917692769376947695769676977698769977007701770277037704770577067707770877097710771177127713771477157716771777187719772077217722772377247725772677277728772977307731773277337734773577367737773877397740774177427743774477457746774777487749775077517752775377547755775677577758775977607761776277637764776577667767776877697770777177727773777477757776777777787779778077817782778377847785778677877788778977907791779277937794779577967797779877997800780178027803780478057806780778087809781078117812781378147815781678177818781978207821782278237824782578267827782878297830783178327833783478357836783778387839784078417842784378447845784678477848784978507851785278537854785578567857785878597860786178627863786478657866786778687869787078717872787378747875787678777878787978807881788278837884788578867887788878897890789178927893789478957896789778987899790079017902790379047905790679077908790979107911791279137914791579167917791879197920792179227923792479257926792779287929793079317932793379347935793679377938793979407941794279437944794579467947794879497950795179527953795479557956795779587959796079617962796379647965796679677968796979707971797279737974797579767977797879797980798179827983798479857986798779887989799079917992799379947995799679977998799980008001800280038004800580068007800880098010801180128013801480158016801780188019802080218022802380248025802680278028802980308031803280338034803580368037803880398040804180428043804480458046804780488049805080518052805380548055805680578058805980608061806280638064806580668067806880698070807180728073807480758076807780788079808080818082808380848085808680878088808980908091809280938094809580968097809880998100810181028103810481058106810781088109811081118112811381148115811681178118811981208121812281238124812581268127812881298130813181328133813481358136813781388139814081418142814381448145814681478148814981508151815281538154815581568157815881598160816181628163816481658166816781688169817081718172817381748175817681778178817981808181818281838184818581868187818881898190819181928193819481958196819781988199820082018202820382048205820682078208820982108211821282138214821582168217821882198220822182228223822482258226822782288229823082318232823382348235823682378238823982408241824282438244824582468247824882498250825182528253825482558256825782588259826082618262826382648265826682678268826982708271827282738274827582768277827882798280828182828283828482858286828782888289829082918292829382948295829682978298829983008301830283038304830583068307830883098310831183128313831483158316831783188319832083218322832383248325832683278328832983308331833283338334833583368337833883398340834183428343834483458346834783488349835083518352835383548355835683578358835983608361836283638364836583668367836883698370837183728373837483758376837783788379838083818382838383848385838683878388838983908391839283938394839583968397839883998400840184028403840484058406840784088409841084118412841384148415841684178418841984208421842284238424842584268427842884298430843184328433843484358436843784388439844084418442844384448445844684478448844984508451845284538454845584568457845884598460846184628463846484658466846784688469847084718472847384748475847684778478847984808481848284838484848584868487848884898490849184928493849484958496849784988499850085018502850385048505850685078508850985108511851285138514851585168517851885198520852185228523852485258526852785288529853085318532853385348535853685378538853985408541854285438544854585468547854885498550855185528553855485558556855785588559856085618562856385648565856685678568856985708571857285738574857585768577857885798580858185828583858485858586858785888589859085918592859385948595859685978598859986008601860286038604860586068607860886098610861186128613861486158616861786188619862086218622862386248625862686278628862986308631863286338634863586368637863886398640864186428643864486458646864786488649865086518652865386548655865686578658865986608661866286638664866586668667866886698670867186728673867486758676867786788679868086818682868386848685868686878688868986908691869286938694869586968697869886998700870187028703870487058706870787088709871087118712871387148715871687178718871987208721872287238724872587268727872887298730873187328733873487358736873787388739874087418742874387448745874687478748874987508751875287538754875587568757875887598760876187628763876487658766876787688769877087718772877387748775877687778778877987808781878287838784878587868787878887898790879187928793879487958796879787988799880088018802880388048805880688078808880988108811881288138814881588168817881888198820882188228823882488258826882788288829883088318832883388348835883688378838883988408841884288438844884588468847884888498850885188528853885488558856885788588859886088618862886388648865886688678868886988708871887288738874887588768877887888798880888188828883888488858886888788888889889088918892889388948895889688978898889989008901890289038904890589068907890889098910891189128913891489158916891789188919892089218922892389248925892689278928892989308931893289338934893589368937893889398940894189428943894489458946894789488949895089518952895389548955895689578958895989608961896289638964896589668967896889698970897189728973897489758976897789788979898089818982898389848985898689878988898989908991899289938994899589968997899889999000900190029003900490059006900790089009901090119012901390149015901690179018901990209021902290239024902590269027902890299030903190329033903490359036903790389039904090419042904390449045904690479048904990509051905290539054905590569057905890599060906190629063906490659066906790689069907090719072907390749075907690779078907990809081908290839084908590869087908890899090909190929093909490959096909790989099910091019102910391049105910691079108910991109111911291139114911591169117911891199120912191229123912491259126912791289129913091319132913391349135913691379138913991409141914291439144914591469147914891499150915191529153915491559156915791589159916091619162916391649165916691679168916991709171917291739174917591769177917891799180918191829183918491859186918791889189919091919192919391949195919691979198919992009201920292039204920592069207920892099210921192129213921492159216921792189219922092219222922392249225922692279228922992309231923292339234923592369237923892399240924192429243924492459246924792489249925092519252925392549255925692579258925992609261926292639264926592669267926892699270927192729273927492759276927792789279928092819282928392849285928692879288928992909291929292939294929592969297929892999300930193029303930493059306930793089309931093119312931393149315931693179318931993209321932293239324932593269327932893299330933193329333933493359336933793389339934093419342934393449345934693479348934993509351935293539354935593569357935893599360936193629363936493659366936793689369937093719372937393749375937693779378937993809381938293839384938593869387938893899390939193929393939493959396939793989399940094019402940394049405940694079408940994109411941294139414941594169417941894199420942194229423942494259426942794289429943094319432943394349435943694379438943994409441944294439444944594469447944894499450945194529453945494559456945794589459946094619462946394649465946694679468946994709471947294739474947594769477947894799480948194829483948494859486948794889489949094919492949394949495949694979498949995009501950295039504950595069507950895099510951195129513951495159516951795189519952095219522952395249525952695279528952995309531953295339534953595369537953895399540954195429543954495459546954795489549955095519552955395549555955695579558955995609561956295639564956595669567956895699570957195729573957495759576957795789579958095819582958395849585958695879588958995909591959295939594959595969597959895999600960196029603960496059606960796089609961096119612961396149615961696179618961996209621962296239624962596269627962896299630963196329633963496359636963796389639964096419642964396449645964696479648964996509651965296539654965596569657965896599660966196629663966496659666966796689669967096719672967396749675967696779678967996809681968296839684968596869687968896899690969196929693969496959696969796989699970097019702970397049705970697079708970997109711971297139714971597169717971897199720972197229723972497259726972797289729973097319732973397349735973697379738973997409741974297439744974597469747974897499750975197529753975497559756975797589759976097619762976397649765976697679768976997709771977297739774977597769777977897799780978197829783978497859786978797889789979097919792979397949795979697979798979998009801980298039804980598069807980898099810981198129813981498159816981798189819982098219822982398249825982698279828982998309831983298339834983598369837983898399840984198429843984498459846984798489849985098519852985398549855985698579858985998609861986298639864986598669867986898699870987198729873987498759876987798789879988098819882988398849885988698879888988998909891989298939894989598969897989898999900990199029903990499059906990799089909991099119912991399149915991699179918991999209921992299239924992599269927992899299930993199329933993499359936993799389939994099419942994399449945994699479948994999509951995299539954995599569957995899599960996199629963996499659966996799689969997099719972997399749975997699779978997999809981998299839984998599869987998899899990999199929993999499959996999799989999100001000110002100031000410005100061000710008100091001010011100121001310014100151001610017100181001910020100211002210023100241002510026100271002810029100301003110032100331003410035100361003710038100391004010041100421004310044100451004610047100481004910050100511005210053100541005510056100571005810059100601006110062100631006410065100661006710068100691007010071100721007310074100751007610077100781007910080100811008210083100841008510086100871008810089100901009110092100931009410095100961009710098100991010010101101021010310104101051010610107101081010910110101111011210113101141011510116101171011810119101201012110122101231012410125101261012710128101291013010131101321013310134101351013610137101381013910140101411014210143101441014510146101471014810149101501015110152101531015410155101561015710158101591016010161101621016310164101651016610167101681016910170101711017210173101741017510176101771017810179101801018110182101831018410185101861018710188101891019010191101921019310194101951019610197101981019910200102011020210203102041020510206102071020810209102101021110212102131021410215102161021710218102191022010221102221022310224102251022610227102281022910230102311023210233102341023510236102371023810239102401024110242102431024410245102461024710248102491025010251102521025310254102551025610257102581025910260102611026210263102641026510266102671026810269102701027110272102731027410275102761027710278102791028010281102821028310284102851028610287102881028910290102911029210293102941029510296102971029810299103001030110302103031030410305103061030710308103091031010311103121031310314103151031610317103181031910320103211032210323103241032510326103271032810329103301033110332103331033410335103361033710338103391034010341103421034310344103451034610347103481034910350103511035210353103541035510356103571035810359103601036110362103631036410365103661036710368103691037010371103721037310374103751037610377103781037910380103811038210383103841038510386103871038810389103901039110392103931039410395103961039710398103991040010401104021040310404104051040610407104081040910410104111041210413104141041510416104171041810419104201042110422104231042410425104261042710428104291043010431104321043310434104351043610437104381043910440104411044210443104441044510446104471044810449104501045110452104531045410455104561045710458104591046010461104621046310464104651046610467104681046910470104711047210473104741047510476104771047810479104801048110482104831048410485104861048710488104891049010491104921049310494104951049610497104981049910500105011050210503105041050510506105071050810509105101051110512105131051410515105161051710518105191052010521105221052310524105251052610527105281052910530105311053210533105341053510536105371053810539105401054110542105431054410545105461054710548105491055010551105521055310554105551055610557105581055910560105611056210563105641056510566105671056810569105701057110572105731057410575105761057710578105791058010581105821058310584105851058610587105881058910590105911059210593105941059510596105971059810599106001060110602106031060410605106061060710608106091061010611106121061310614106151061610617106181061910620106211062210623106241062510626106271062810629106301063110632106331063410635106361063710638106391064010641106421064310644106451064610647106481064910650106511065210653106541065510656106571065810659106601066110662106631066410665106661066710668106691067010671106721067310674106751067610677106781067910680106811068210683106841068510686106871068810689106901069110692106931069410695106961069710698106991070010701107021070310704107051070610707107081070910710107111071210713107141071510716107171071810719107201072110722107231072410725107261072710728107291073010731107321073310734107351073610737107381073910740107411074210743107441074510746107471074810749107501075110752107531075410755107561075710758107591076010761107621076310764107651076610767107681076910770107711077210773107741077510776107771077810779107801078110782107831078410785107861078710788107891079010791107921079310794107951079610797107981079910800108011080210803108041080510806108071080810809108101081110812108131081410815108161081710818108191082010821108221082310824108251082610827108281082910830108311083210833108341083510836108371083810839108401084110842108431084410845108461084710848108491085010851108521085310854108551085610857108581085910860108611086210863108641086510866108671086810869108701087110872108731087410875108761087710878108791088010881108821088310884108851088610887108881088910890108911089210893108941089510896108971089810899109001090110902109031090410905109061090710908109091091010911109121091310914109151091610917109181091910920109211092210923109241092510926109271092810929109301093110932109331093410935109361093710938109391094010941109421094310944109451094610947109481094910950109511095210953109541095510956109571095810959109601096110962109631096410965109661096710968109691097010971109721097310974109751097610977109781097910980109811098210983109841098510986109871098810989109901099110992109931099410995109961099710998109991100011001110021100311004110051100611007110081100911010110111101211013110141101511016110171101811019110201102111022110231102411025110261102711028110291103011031110321103311034110351103611037110381103911040110411104211043110441104511046110471104811049110501105111052110531105411055110561105711058110591106011061110621106311064110651106611067110681106911070110711107211073110741107511076110771107811079110801108111082110831108411085110861108711088110891109011091110921109311094110951109611097110981109911100111011110211103111041110511106111071110811109111101111111112111131111411115111161111711118111191112011121111221112311124111251112611127111281112911130111311113211133111341113511136111371113811139111401114111142111431114411145111461114711148111491115011151111521115311154111551115611157111581115911160111611116211163111641116511166111671116811169111701117111172111731117411175111761117711178111791118011181111821118311184111851118611187111881118911190111911119211193111941119511196111971119811199112001120111202112031120411205112061120711208112091121011211112121121311214112151121611217112181121911220112211122211223112241122511226112271122811229112301123111232112331123411235112361123711238112391124011241112421124311244112451124611247112481124911250112511125211253112541125511256112571125811259112601126111262112631126411265112661126711268112691127011271112721127311274112751127611277112781127911280112811128211283112841128511286112871128811289112901129111292112931129411295112961129711298112991130011301113021130311304113051130611307113081130911310113111131211313113141131511316113171131811319113201132111322113231132411325113261132711328113291133011331113321133311334113351133611337113381133911340113411134211343113441134511346113471134811349113501135111352113531135411355113561135711358113591136011361113621136311364113651136611367113681136911370113711137211373113741137511376113771137811379113801138111382113831138411385113861138711388113891139011391113921139311394113951139611397113981139911400114011140211403114041140511406114071140811409114101141111412114131141411415114161141711418114191142011421114221142311424114251142611427114281142911430114311143211433114341143511436114371143811439114401144111442114431144411445114461144711448114491145011451114521145311454114551145611457114581145911460114611146211463114641146511466114671146811469114701147111472114731147411475114761147711478114791148011481114821148311484114851148611487114881148911490114911149211493114941149511496114971149811499115001150111502115031150411505115061150711508115091151011511115121151311514115151151611517115181151911520115211152211523115241152511526115271152811529115301153111532115331153411535115361153711538115391154011541115421154311544115451154611547115481154911550115511155211553115541155511556115571155811559115601156111562115631156411565115661156711568115691157011571115721157311574115751157611577115781157911580115811158211583115841158511586115871158811589115901159111592115931159411595115961159711598115991160011601116021160311604116051160611607116081160911610116111161211613116141161511616116171161811619116201162111622116231162411625116261162711628116291163011631116321163311634116351163611637116381163911640116411164211643116441164511646116471164811649116501165111652116531165411655116561165711658116591166011661116621166311664116651166611667116681166911670116711167211673116741167511676116771167811679116801168111682116831168411685116861168711688116891169011691116921169311694116951169611697116981169911700117011170211703117041170511706117071170811709117101171111712117131171411715117161171711718117191172011721117221172311724117251172611727117281172911730117311173211733117341173511736117371173811739117401174111742117431174411745117461174711748117491175011751117521175311754117551175611757117581175911760117611176211763117641176511766117671176811769117701177111772117731177411775117761177711778117791178011781117821178311784117851178611787117881178911790117911179211793117941179511796117971179811799118001180111802118031180411805118061180711808118091181011811118121181311814118151181611817118181181911820118211182211823118241182511826118271182811829118301183111832118331183411835118361183711838118391184011841118421184311844118451184611847118481184911850118511185211853118541185511856118571185811859118601186111862118631186411865118661186711868118691187011871118721187311874118751187611877118781187911880118811188211883118841188511886118871188811889118901189111892118931189411895118961189711898118991190011901119021190311904119051190611907119081190911910119111191211913119141191511916119171191811919119201192111922119231192411925119261192711928119291193011931119321193311934119351193611937119381193911940119411194211943119441194511946119471194811949119501195111952119531195411955119561195711958119591196011961119621196311964119651196611967119681196911970119711197211973119741197511976119771197811979119801198111982119831198411985119861198711988119891199011991119921199311994119951199611997119981199912000120011200212003120041200512006120071200812009120101201112012120131201412015120161201712018120191202012021120221202312024120251202612027120281202912030120311203212033120341203512036120371203812039120401204112042120431204412045120461204712048120491205012051120521205312054120551205612057120581205912060120611206212063120641206512066120671206812069120701207112072120731207412075120761207712078120791208012081120821208312084120851208612087120881208912090120911209212093120941209512096120971209812099121001210112102121031210412105121061210712108121091211012111121121211312114121151211612117121181211912120121211212212123121241212512126121271212812129121301213112132121331213412135121361213712138121391214012141121421214312144121451214612147121481214912150121511215212153121541215512156121571215812159121601216112162121631216412165121661216712168121691217012171121721217312174121751217612177121781217912180121811218212183121841218512186121871218812189121901219112192121931219412195121961219712198121991220012201122021220312204122051220612207122081220912210122111221212213122141221512216122171221812219122201222112222122231222412225122261222712228122291223012231122321223312234122351223612237122381223912240122411224212243122441224512246122471224812249122501225112252122531225412255122561225712258122591226012261122621226312264122651226612267122681226912270122711227212273122741227512276122771227812279122801228112282122831228412285122861228712288122891229012291122921229312294122951229612297122981229912300123011230212303123041230512306123071230812309123101231112312123131231412315123161231712318123191232012321123221232312324123251232612327123281232912330123311233212333123341233512336123371233812339123401234112342123431234412345123461234712348123491235012351123521235312354123551235612357123581235912360123611236212363123641236512366123671236812369123701237112372123731237412375123761237712378123791238012381123821238312384123851238612387123881238912390123911239212393123941239512396123971239812399124001240112402124031240412405124061240712408124091241012411124121241312414124151241612417124181241912420124211242212423124241242512426124271242812429124301243112432124331243412435124361243712438124391244012441124421244312444124451244612447124481244912450124511245212453124541245512456124571245812459124601246112462124631246412465124661246712468124691247012471124721247312474124751247612477124781247912480124811248212483124841248512486124871248812489124901249112492124931249412495124961249712498124991250012501125021250312504125051250612507125081250912510125111251212513125141251512516125171251812519125201252112522125231252412525125261252712528125291253012531125321253312534125351253612537125381253912540125411254212543125441254512546125471254812549125501255112552125531255412555125561255712558125591256012561125621256312564125651256612567125681256912570125711257212573125741257512576125771257812579125801258112582125831258412585125861258712588125891259012591125921259312594125951259612597125981259912600126011260212603126041260512606126071260812609126101261112612126131261412615126161261712618126191262012621126221262312624126251262612627126281262912630126311263212633126341263512636126371263812639126401264112642126431264412645126461264712648126491265012651126521265312654126551265612657126581265912660126611266212663126641266512666126671266812669126701267112672126731267412675126761267712678126791268012681126821268312684126851268612687126881268912690126911269212693126941269512696126971269812699127001270112702127031270412705127061270712708127091271012711127121271312714127151271612717127181271912720127211272212723127241272512726127271272812729127301273112732127331273412735127361273712738127391274012741127421274312744127451274612747127481274912750127511275212753127541275512756127571275812759127601276112762127631276412765127661276712768127691277012771127721277312774127751277612777127781277912780127811278212783127841278512786127871278812789127901279112792127931279412795127961279712798127991280012801128021280312804128051280612807128081280912810128111281212813128141281512816128171281812819128201282112822128231282412825128261282712828128291283012831128321283312834128351283612837128381283912840128411284212843128441284512846128471284812849128501285112852128531285412855128561285712858128591286012861128621286312864128651286612867128681286912870128711287212873128741287512876128771287812879128801288112882128831288412885128861288712888128891289012891128921289312894128951289612897128981289912900129011290212903129041290512906129071290812909129101291112912129131291412915129161291712918129191292012921129221292312924129251292612927129281292912930129311293212933129341293512936129371293812939129401294112942129431294412945129461294712948129491295012951129521295312954129551295612957129581295912960129611296212963129641296512966129671296812969129701297112972129731297412975129761297712978129791298012981129821298312984129851298612987129881298912990129911299212993129941299512996129971299812999130001300113002130031300413005130061300713008130091301013011130121301313014130151301613017130181301913020130211302213023130241302513026130271302813029130301303113032130331303413035130361303713038130391304013041130421304313044130451304613047130481304913050130511305213053130541305513056130571305813059130601306113062130631306413065130661306713068130691307013071130721307313074130751307613077130781307913080130811308213083130841308513086130871308813089130901309113092130931309413095130961309713098130991310013101131021310313104131051310613107131081310913110131111311213113131141311513116131171311813119131201312113122131231312413125131261312713128131291313013131131321313313134131351313613137131381313913140131411314213143131441314513146131471314813149131501315113152131531315413155131561315713158131591316013161131621316313164131651316613167131681316913170131711317213173131741317513176131771317813179131801318113182131831318413185131861318713188131891319013191131921319313194131951319613197131981319913200132011320213203132041320513206132071320813209132101321113212132131321413215132161321713218132191322013221132221322313224132251322613227132281322913230132311323213233132341323513236132371323813239132401324113242132431324413245132461324713248132491325013251132521325313254132551325613257132581325913260132611326213263132641326513266132671326813269132701327113272132731327413275132761327713278132791328013281132821328313284132851328613287132881328913290132911329213293132941329513296132971329813299133001330113302133031330413305133061330713308133091331013311133121331313314133151331613317133181331913320133211332213323133241332513326133271332813329133301333113332133331333413335133361333713338133391334013341133421334313344133451334613347133481334913350133511335213353133541335513356133571335813359133601336113362133631336413365133661336713368133691337013371133721337313374133751337613377133781337913380133811338213383133841338513386133871338813389133901339113392133931339413395133961339713398133991340013401134021340313404134051340613407134081340913410134111341213413134141341513416134171341813419134201342113422134231342413425134261342713428134291343013431134321343313434134351343613437134381343913440134411344213443134441344513446134471344813449134501345113452134531345413455134561345713458134591346013461134621346313464134651346613467134681346913470134711347213473134741347513476134771347813479134801348113482134831348413485134861348713488134891349013491134921349313494134951349613497134981349913500135011350213503135041350513506135071350813509135101351113512135131351413515135161351713518135191352013521135221352313524135251352613527135281352913530135311353213533135341353513536135371353813539135401354113542135431354413545135461354713548135491355013551135521355313554135551355613557135581355913560135611356213563135641356513566135671356813569135701357113572135731357413575135761357713578135791358013581135821358313584135851358613587135881358913590135911359213593135941359513596135971359813599136001360113602136031360413605136061360713608136091361013611136121361313614136151361613617136181361913620136211362213623136241362513626136271362813629136301363113632136331363413635136361363713638136391364013641136421364313644136451364613647136481364913650136511365213653136541365513656136571365813659136601366113662136631366413665136661366713668136691367013671136721367313674136751367613677136781367913680136811368213683136841368513686136871368813689136901369113692136931369413695136961369713698136991370013701137021370313704137051370613707137081370913710137111371213713137141371513716137171371813719137201372113722137231372413725137261372713728137291373013731137321373313734137351373613737137381373913740137411374213743137441374513746137471374813749137501375113752137531375413755137561375713758137591376013761137621376313764137651376613767137681376913770137711377213773137741377513776137771377813779137801378113782137831378413785137861378713788137891379013791137921379313794137951379613797137981379913800138011380213803138041380513806138071380813809138101381113812138131381413815138161381713818138191382013821138221382313824138251382613827138281382913830138311383213833138341383513836138371383813839138401384113842138431384413845138461384713848138491385013851138521385313854138551385613857138581385913860138611386213863138641386513866138671386813869138701387113872138731387413875138761387713878138791388013881138821388313884138851388613887138881388913890138911389213893138941389513896138971389813899139001390113902139031390413905139061390713908139091391013911139121391313914139151391613917139181391913920139211392213923139241392513926139271392813929139301393113932139331393413935139361393713938139391394013941139421394313944139451394613947139481394913950139511395213953139541395513956139571395813959139601396113962139631396413965139661396713968139691397013971139721397313974139751397613977139781397913980139811398213983139841398513986139871398813989139901399113992139931399413995139961399713998139991400014001140021400314004140051400614007140081400914010140111401214013140141401514016140171401814019140201402114022140231402414025140261402714028140291403014031140321403314034140351403614037140381403914040140411404214043140441404514046140471404814049140501405114052140531405414055140561405714058140591406014061140621406314064140651406614067140681406914070140711407214073140741407514076140771407814079140801408114082140831408414085140861408714088140891409014091140921409314094140951409614097140981409914100141011410214103141041410514106141071410814109141101411114112141131411414115141161411714118141191412014121141221412314124141251412614127141281412914130141311413214133141341413514136141371413814139141401414114142141431414414145141461414714148141491415014151141521415314154141551415614157141581415914160141611416214163141641416514166141671416814169141701417114172141731417414175141761417714178141791418014181141821418314184141851418614187141881418914190141911419214193141941419514196141971419814199142001420114202142031420414205142061420714208142091421014211142121421314214142151421614217142181421914220142211422214223142241422514226142271422814229142301423114232142331423414235142361423714238142391424014241142421424314244142451424614247142481424914250142511425214253142541425514256142571425814259142601426114262142631426414265142661426714268142691427014271142721427314274142751427614277142781427914280142811428214283142841428514286142871428814289142901429114292142931429414295142961429714298142991430014301143021430314304143051430614307143081430914310143111431214313143141431514316143171431814319143201432114322143231432414325143261432714328143291433014331143321433314334143351433614337143381433914340143411434214343143441434514346143471434814349143501435114352143531435414355143561435714358143591436014361143621436314364143651436614367143681436914370143711437214373143741437514376143771437814379143801438114382143831438414385143861438714388143891439014391143921439314394143951439614397143981439914400144011440214403144041440514406144071440814409144101441114412144131441414415144161441714418144191442014421144221442314424144251442614427144281442914430144311443214433144341443514436144371443814439144401444114442144431444414445144461444714448144491445014451144521445314454144551445614457144581445914460144611446214463144641446514466144671446814469144701447114472144731447414475144761447714478144791448014481144821448314484144851448614487144881448914490144911449214493144941449514496144971449814499145001450114502145031450414505145061450714508145091451014511145121451314514145151451614517145181451914520145211452214523145241452514526145271452814529145301453114532145331453414535145361453714538145391454014541145421454314544145451454614547145481454914550145511455214553145541455514556145571455814559145601456114562145631456414565145661456714568145691457014571145721457314574145751457614577145781457914580145811458214583145841458514586145871458814589145901459114592145931459414595145961459714598145991460014601146021460314604146051460614607146081460914610146111461214613146141461514616146171461814619146201462114622146231462414625146261462714628146291463014631146321463314634146351463614637146381463914640146411464214643146441464514646146471464814649146501465114652146531465414655146561465714658146591466014661146621466314664146651466614667146681466914670146711467214673146741467514676146771467814679146801468114682146831468414685146861468714688146891469014691146921469314694146951469614697146981469914700147011470214703147041470514706147071470814709147101471114712147131471414715147161471714718147191472014721147221472314724147251472614727147281472914730147311473214733147341473514736147371473814739147401474114742147431474414745147461474714748147491475014751147521475314754147551475614757147581475914760147611476214763147641476514766147671476814769147701477114772147731477414775147761477714778147791478014781147821478314784147851478614787147881478914790147911479214793147941479514796147971479814799148001480114802148031480414805148061480714808148091481014811148121481314814148151481614817148181481914820148211482214823148241482514826148271482814829148301483114832148331483414835148361483714838148391484014841148421484314844148451484614847148481484914850148511485214853148541485514856148571485814859148601486114862148631486414865148661486714868148691487014871148721487314874148751487614877148781487914880148811488214883148841488514886148871488814889148901489114892148931489414895148961489714898148991490014901149021490314904149051490614907149081490914910149111491214913149141491514916149171491814919149201492114922149231492414925149261492714928149291493014931149321493314934149351493614937149381493914940149411494214943149441494514946149471494814949149501495114952149531495414955149561495714958149591496014961149621496314964149651496614967149681496914970149711497214973149741497514976149771497814979149801498114982149831498414985149861498714988149891499014991149921499314994149951499614997149981499915000150011500215003150041500515006150071500815009150101501115012150131501415015150161501715018150191502015021150221502315024150251502615027150281502915030150311503215033150341503515036150371503815039150401504115042150431504415045150461504715048150491505015051150521505315054150551505615057150581505915060150611506215063150641506515066150671506815069150701507115072150731507415075150761507715078150791508015081150821508315084150851508615087150881508915090150911509215093150941509515096150971509815099151001510115102151031510415105151061510715108151091511015111151121511315114151151511615117151181511915120151211512215123151241512515126151271512815129151301513115132151331513415135151361513715138151391514015141151421514315144151451514615147151481514915150151511515215153151541515515156151571515815159151601516115162151631516415165151661516715168151691517015171151721517315174151751517615177151781517915180151811518215183151841518515186151871518815189151901519115192151931519415195151961519715198151991520015201152021520315204152051520615207152081520915210152111521215213152141521515216152171521815219152201522115222152231522415225152261522715228152291523015231152321523315234152351523615237152381523915240152411524215243152441524515246152471524815249152501525115252152531525415255152561525715258152591526015261152621526315264152651526615267152681526915270152711527215273152741527515276152771527815279152801528115282152831528415285152861528715288152891529015291152921529315294152951529615297152981529915300153011530215303153041530515306153071530815309153101531115312153131531415315153161531715318153191532015321153221532315324153251532615327153281532915330153311533215333153341533515336153371533815339153401534115342153431534415345153461534715348153491535015351153521535315354153551535615357153581535915360153611536215363153641536515366153671536815369153701537115372153731537415375153761537715378153791538015381153821538315384153851538615387153881538915390153911539215393153941539515396153971539815399154001540115402154031540415405154061540715408154091541015411154121541315414154151541615417154181541915420154211542215423154241542515426154271542815429154301543115432154331543415435154361543715438154391544015441154421544315444154451544615447154481544915450154511545215453154541545515456154571545815459154601546115462154631546415465154661546715468154691547015471154721547315474154751547615477154781547915480154811548215483154841548515486154871548815489154901549115492154931549415495154961549715498154991550015501155021550315504155051550615507155081550915510155111551215513155141551515516155171551815519155201552115522155231552415525155261552715528155291553015531155321553315534155351553615537155381553915540155411554215543155441554515546155471554815549155501555115552155531555415555155561555715558155591556015561155621556315564155651556615567155681556915570155711557215573155741557515576155771557815579155801558115582155831558415585155861558715588155891559015591155921559315594155951559615597155981559915600156011560215603156041560515606156071560815609156101561115612156131561415615156161561715618156191562015621156221562315624156251562615627156281562915630156311563215633156341563515636156371563815639156401564115642156431564415645156461564715648156491565015651156521565315654156551565615657156581565915660156611566215663156641566515666156671566815669156701567115672156731567415675156761567715678156791568015681156821568315684156851568615687156881568915690156911569215693156941569515696156971569815699157001570115702157031570415705157061570715708157091571015711157121571315714157151571615717157181571915720157211572215723157241572515726157271572815729157301573115732157331573415735157361573715738157391574015741157421574315744157451574615747157481574915750157511575215753157541575515756157571575815759157601576115762157631576415765157661576715768157691577015771157721577315774157751577615777157781577915780157811578215783157841578515786157871578815789157901579115792157931579415795157961579715798157991580015801158021580315804158051580615807158081580915810158111581215813158141581515816158171581815819158201582115822158231582415825158261582715828158291583015831158321583315834158351583615837158381583915840158411584215843158441584515846158471584815849158501585115852158531585415855158561585715858158591586015861158621586315864158651586615867158681586915870158711587215873158741587515876158771587815879158801588115882158831588415885158861588715888158891589015891158921589315894158951589615897158981589915900159011590215903159041590515906159071590815909159101591115912159131591415915159161591715918159191592015921159221592315924159251592615927159281592915930159311593215933159341593515936159371593815939159401594115942159431594415945159461594715948159491595015951159521595315954159551595615957159581595915960159611596215963159641596515966159671596815969159701597115972159731597415975159761597715978159791598015981159821598315984159851598615987159881598915990159911599215993159941599515996159971599815999160001600116002160031600416005160061600716008160091601016011160121601316014160151601616017160181601916020160211602216023160241602516026160271602816029160301603116032160331603416035160361603716038160391604016041160421604316044160451604616047160481604916050160511605216053160541605516056160571605816059160601606116062160631606416065160661606716068160691607016071160721607316074160751607616077160781607916080160811608216083160841608516086160871608816089160901609116092160931609416095160961609716098160991610016101161021610316104161051610616107161081610916110161111611216113161141611516116161171611816119161201612116122161231612416125161261612716128161291613016131161321613316134161351613616137161381613916140161411614216143161441614516146161471614816149161501615116152161531615416155161561615716158161591616016161161621616316164161651616616167161681616916170161711617216173161741617516176161771617816179161801618116182161831618416185161861618716188161891619016191161921619316194161951619616197161981619916200162011620216203162041620516206162071620816209162101621116212162131621416215162161621716218162191622016221162221622316224162251622616227162281622916230162311623216233162341623516236162371623816239162401624116242162431624416245162461624716248162491625016251162521625316254162551625616257162581625916260162611626216263162641626516266162671626816269162701627116272162731627416275162761627716278162791628016281162821628316284162851628616287162881628916290162911629216293162941629516296162971629816299163001630116302163031630416305163061630716308163091631016311163121631316314163151631616317163181631916320163211632216323163241632516326163271632816329163301633116332163331633416335163361633716338163391634016341163421634316344163451634616347163481634916350163511635216353163541635516356163571635816359163601636116362163631636416365163661636716368163691637016371163721637316374163751637616377163781637916380163811638216383163841638516386163871638816389163901639116392163931639416395163961639716398163991640016401164021640316404164051640616407164081640916410164111641216413164141641516416164171641816419164201642116422164231642416425164261642716428164291643016431164321643316434164351643616437164381643916440164411644216443164441644516446164471644816449164501645116452164531645416455164561645716458164591646016461164621646316464164651646616467164681646916470164711647216473164741647516476164771647816479164801648116482164831648416485164861648716488164891649016491164921649316494164951649616497164981649916500165011650216503165041650516506165071650816509165101651116512165131651416515165161651716518165191652016521165221652316524165251652616527165281652916530165311653216533165341653516536165371653816539165401654116542165431654416545165461654716548165491655016551165521655316554165551655616557165581655916560165611656216563165641656516566165671656816569165701657116572165731657416575165761657716578
  1. #! /bin/sh
  2. # Guess values for system-dependent variables and create Makefiles.
  3. # Generated by GNU Autoconf 2.64 for aria2 1.6.3.
  4. #
  5. # Report bugs to <t-tujikawa@users.sourceforge.net>.
  6. #
  7. # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
  8. # 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009 Free Software
  9. # Foundation, Inc.
  10. #
  11. # This configure script is free software; the Free Software Foundation
  12. # gives unlimited permission to copy, distribute and modify it.
  13. ## -------------------- ##
  14. ## M4sh Initialization. ##
  15. ## -------------------- ##
  16. # Be more Bourne compatible
  17. DUALCASE=1; export DUALCASE # for MKS sh
  18. if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
  19. emulate sh
  20. NULLCMD=:
  21. # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
  22. # is contrary to our usage. Disable this feature.
  23. alias -g '${1+"$@"}'='"$@"'
  24. setopt NO_GLOB_SUBST
  25. else
  26. case `(set -o) 2>/dev/null` in #(
  27. *posix*) :
  28. set -o posix ;; #(
  29. *) :
  30. ;;
  31. esac
  32. fi
  33. as_nl='
  34. '
  35. export as_nl
  36. # Printing a long string crashes Solaris 7 /usr/bin/printf.
  37. as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
  38. as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
  39. as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
  40. # Prefer a ksh shell builtin over an external printf program on Solaris,
  41. # but without wasting forks for bash or zsh.
  42. if test -z "$BASH_VERSION$ZSH_VERSION" \
  43. && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
  44. as_echo='print -r --'
  45. as_echo_n='print -rn --'
  46. elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
  47. as_echo='printf %s\n'
  48. as_echo_n='printf %s'
  49. else
  50. if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
  51. as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
  52. as_echo_n='/usr/ucb/echo -n'
  53. else
  54. as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
  55. as_echo_n_body='eval
  56. arg=$1;
  57. case $arg in #(
  58. *"$as_nl"*)
  59. expr "X$arg" : "X\\(.*\\)$as_nl";
  60. arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
  61. esac;
  62. expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
  63. '
  64. export as_echo_n_body
  65. as_echo_n='sh -c $as_echo_n_body as_echo'
  66. fi
  67. export as_echo_body
  68. as_echo='sh -c $as_echo_body as_echo'
  69. fi
  70. # The user is always right.
  71. if test "${PATH_SEPARATOR+set}" != set; then
  72. PATH_SEPARATOR=:
  73. (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
  74. (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
  75. PATH_SEPARATOR=';'
  76. }
  77. fi
  78. # IFS
  79. # We need space, tab and new line, in precisely that order. Quoting is
  80. # there to prevent editors from complaining about space-tab.
  81. # (If _AS_PATH_WALK were called with IFS unset, it would disable word
  82. # splitting by setting IFS to empty value.)
  83. IFS=" "" $as_nl"
  84. # Find who we are. Look in the path if we contain no directory separator.
  85. case $0 in #((
  86. *[\\/]* ) as_myself=$0 ;;
  87. *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  88. for as_dir in $PATH
  89. do
  90. IFS=$as_save_IFS
  91. test -z "$as_dir" && as_dir=.
  92. test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
  93. done
  94. IFS=$as_save_IFS
  95. ;;
  96. esac
  97. # We did not find ourselves, most probably we were run as `sh COMMAND'
  98. # in which case we are not to be found in the path.
  99. if test "x$as_myself" = x; then
  100. as_myself=$0
  101. fi
  102. if test ! -f "$as_myself"; then
  103. $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
  104. exit 1
  105. fi
  106. # Unset variables that we do not need and which cause bugs (e.g. in
  107. # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
  108. # suppresses any "Segmentation fault" message there. '((' could
  109. # trigger a bug in pdksh 5.2.14.
  110. for as_var in BASH_ENV ENV MAIL MAILPATH
  111. do eval test x\${$as_var+set} = xset \
  112. && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
  113. done
  114. PS1='$ '
  115. PS2='> '
  116. PS4='+ '
  117. # NLS nuisances.
  118. LC_ALL=C
  119. export LC_ALL
  120. LANGUAGE=C
  121. export LANGUAGE
  122. # CDPATH.
  123. (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
  124. if test "x$CONFIG_SHELL" = x; then
  125. as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
  126. emulate sh
  127. NULLCMD=:
  128. # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
  129. # is contrary to our usage. Disable this feature.
  130. alias -g '\${1+\"\$@\"}'='\"\$@\"'
  131. setopt NO_GLOB_SUBST
  132. else
  133. case \`(set -o) 2>/dev/null\` in #(
  134. *posix*) :
  135. set -o posix ;; #(
  136. *) :
  137. ;;
  138. esac
  139. fi
  140. "
  141. as_required="as_fn_return () { (exit \$1); }
  142. as_fn_success () { as_fn_return 0; }
  143. as_fn_failure () { as_fn_return 1; }
  144. as_fn_ret_success () { return 0; }
  145. as_fn_ret_failure () { return 1; }
  146. exitcode=0
  147. as_fn_success || { exitcode=1; echo as_fn_success failed.; }
  148. as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
  149. as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
  150. as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
  151. if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
  152. else
  153. exitcode=1; echo positional parameters were not saved.
  154. fi
  155. test x\$exitcode = x0 || exit 1"
  156. as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
  157. as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
  158. eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
  159. test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
  160. test \$(( 1 + 1 )) = 2 || exit 1"
  161. if (eval "$as_required") 2>/dev/null; then :
  162. as_have_required=yes
  163. else
  164. as_have_required=no
  165. fi
  166. if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
  167. else
  168. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  169. as_found=false
  170. for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
  171. do
  172. IFS=$as_save_IFS
  173. test -z "$as_dir" && as_dir=.
  174. as_found=:
  175. case $as_dir in #(
  176. /*)
  177. for as_base in sh bash ksh sh5; do
  178. # Try only shells that exist, to save several forks.
  179. as_shell=$as_dir/$as_base
  180. if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
  181. { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
  182. CONFIG_SHELL=$as_shell as_have_required=yes
  183. if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
  184. break 2
  185. fi
  186. fi
  187. done;;
  188. esac
  189. as_found=false
  190. done
  191. $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
  192. { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
  193. CONFIG_SHELL=$SHELL as_have_required=yes
  194. fi; }
  195. IFS=$as_save_IFS
  196. if test "x$CONFIG_SHELL" != x; then :
  197. # We cannot yet assume a decent shell, so we have to provide a
  198. # neutralization value for shells without unset; and this also
  199. # works around shells that cannot unset nonexistent variables.
  200. BASH_ENV=/dev/null
  201. ENV=/dev/null
  202. (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
  203. export CONFIG_SHELL
  204. exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
  205. fi
  206. if test x$as_have_required = xno; then :
  207. $as_echo "$0: This script requires a shell more modern than all"
  208. $as_echo "$0: the shells that I found on your system."
  209. if test x${ZSH_VERSION+set} = xset ; then
  210. $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
  211. $as_echo "$0: be upgraded to zsh 4.3.4 or later."
  212. else
  213. $as_echo "$0: Please tell bug-autoconf@gnu.org and
  214. $0: t-tujikawa@users.sourceforge.net about your system,
  215. $0: including any error possibly output before this
  216. $0: message. Then install a modern shell, or manually run
  217. $0: the script under such a shell if you do have one."
  218. fi
  219. exit 1
  220. fi
  221. fi
  222. fi
  223. SHELL=${CONFIG_SHELL-/bin/sh}
  224. export SHELL
  225. # Unset more variables known to interfere with behavior of common tools.
  226. CLICOLOR_FORCE= GREP_OPTIONS=
  227. unset CLICOLOR_FORCE GREP_OPTIONS
  228. ## --------------------- ##
  229. ## M4sh Shell Functions. ##
  230. ## --------------------- ##
  231. # as_fn_unset VAR
  232. # ---------------
  233. # Portably unset VAR.
  234. as_fn_unset ()
  235. {
  236. { eval $1=; unset $1;}
  237. }
  238. as_unset=as_fn_unset
  239. # as_fn_set_status STATUS
  240. # -----------------------
  241. # Set $? to STATUS, without forking.
  242. as_fn_set_status ()
  243. {
  244. return $1
  245. } # as_fn_set_status
  246. # as_fn_exit STATUS
  247. # -----------------
  248. # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
  249. as_fn_exit ()
  250. {
  251. set +e
  252. as_fn_set_status $1
  253. exit $1
  254. } # as_fn_exit
  255. # as_fn_mkdir_p
  256. # -------------
  257. # Create "$as_dir" as a directory, including parents if necessary.
  258. as_fn_mkdir_p ()
  259. {
  260. case $as_dir in #(
  261. -*) as_dir=./$as_dir;;
  262. esac
  263. test -d "$as_dir" || eval $as_mkdir_p || {
  264. as_dirs=
  265. while :; do
  266. case $as_dir in #(
  267. *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
  268. *) as_qdir=$as_dir;;
  269. esac
  270. as_dirs="'$as_qdir' $as_dirs"
  271. as_dir=`$as_dirname -- "$as_dir" ||
  272. $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  273. X"$as_dir" : 'X\(//\)[^/]' \| \
  274. X"$as_dir" : 'X\(//\)$' \| \
  275. X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
  276. $as_echo X"$as_dir" |
  277. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  278. s//\1/
  279. q
  280. }
  281. /^X\(\/\/\)[^/].*/{
  282. s//\1/
  283. q
  284. }
  285. /^X\(\/\/\)$/{
  286. s//\1/
  287. q
  288. }
  289. /^X\(\/\).*/{
  290. s//\1/
  291. q
  292. }
  293. s/.*/./; q'`
  294. test -d "$as_dir" && break
  295. done
  296. test -z "$as_dirs" || eval "mkdir $as_dirs"
  297. } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
  298. } # as_fn_mkdir_p
  299. # as_fn_append VAR VALUE
  300. # ----------------------
  301. # Append the text in VALUE to the end of the definition contained in VAR. Take
  302. # advantage of any shell optimizations that allow amortized linear growth over
  303. # repeated appends, instead of the typical quadratic growth present in naive
  304. # implementations.
  305. if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
  306. eval 'as_fn_append ()
  307. {
  308. eval $1+=\$2
  309. }'
  310. else
  311. as_fn_append ()
  312. {
  313. eval $1=\$$1\$2
  314. }
  315. fi # as_fn_append
  316. # as_fn_arith ARG...
  317. # ------------------
  318. # Perform arithmetic evaluation on the ARGs, and store the result in the
  319. # global $as_val. Take advantage of shells that can avoid forks. The arguments
  320. # must be portable across $(()) and expr.
  321. if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
  322. eval 'as_fn_arith ()
  323. {
  324. as_val=$(( $* ))
  325. }'
  326. else
  327. as_fn_arith ()
  328. {
  329. as_val=`expr "$@" || test $? -eq 1`
  330. }
  331. fi # as_fn_arith
  332. # as_fn_error ERROR [LINENO LOG_FD]
  333. # ---------------------------------
  334. # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
  335. # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
  336. # script with status $?, using 1 if that was 0.
  337. as_fn_error ()
  338. {
  339. as_status=$?; test $as_status -eq 0 && as_status=1
  340. if test "$3"; then
  341. as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  342. $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
  343. fi
  344. $as_echo "$as_me: error: $1" >&2
  345. as_fn_exit $as_status
  346. } # as_fn_error
  347. if expr a : '\(a\)' >/dev/null 2>&1 &&
  348. test "X`expr 00001 : '.*\(...\)'`" = X001; then
  349. as_expr=expr
  350. else
  351. as_expr=false
  352. fi
  353. if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
  354. as_basename=basename
  355. else
  356. as_basename=false
  357. fi
  358. if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
  359. as_dirname=dirname
  360. else
  361. as_dirname=false
  362. fi
  363. as_me=`$as_basename -- "$0" ||
  364. $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
  365. X"$0" : 'X\(//\)$' \| \
  366. X"$0" : 'X\(/\)' \| . 2>/dev/null ||
  367. $as_echo X/"$0" |
  368. sed '/^.*\/\([^/][^/]*\)\/*$/{
  369. s//\1/
  370. q
  371. }
  372. /^X\/\(\/\/\)$/{
  373. s//\1/
  374. q
  375. }
  376. /^X\/\(\/\).*/{
  377. s//\1/
  378. q
  379. }
  380. s/.*/./; q'`
  381. # Avoid depending upon Character Ranges.
  382. as_cr_letters='abcdefghijklmnopqrstuvwxyz'
  383. as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
  384. as_cr_Letters=$as_cr_letters$as_cr_LETTERS
  385. as_cr_digits='0123456789'
  386. as_cr_alnum=$as_cr_Letters$as_cr_digits
  387. as_lineno_1=$LINENO as_lineno_1a=$LINENO
  388. as_lineno_2=$LINENO as_lineno_2a=$LINENO
  389. eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
  390. test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
  391. # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
  392. sed -n '
  393. p
  394. /[$]LINENO/=
  395. ' <$as_myself |
  396. sed '
  397. s/[$]LINENO.*/&-/
  398. t lineno
  399. b
  400. :lineno
  401. N
  402. :loop
  403. s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
  404. t loop
  405. s/-\n.*//
  406. ' >$as_me.lineno &&
  407. chmod +x "$as_me.lineno" ||
  408. { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
  409. # Don't try to exec as it changes $[0], causing all sort of problems
  410. # (the dirname of $[0] is not the place where we might find the
  411. # original and so on. Autoconf is especially sensitive to this).
  412. . "./$as_me.lineno"
  413. # Exit status is that of the last command.
  414. exit
  415. }
  416. ECHO_C= ECHO_N= ECHO_T=
  417. case `echo -n x` in #(((((
  418. -n*)
  419. case `echo 'xy\c'` in
  420. *c*) ECHO_T=' ';; # ECHO_T is single tab character.
  421. xy) ECHO_C='\c';;
  422. *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
  423. ECHO_T=' ';;
  424. esac;;
  425. *)
  426. ECHO_N='-n';;
  427. esac
  428. rm -f conf$$ conf$$.exe conf$$.file
  429. if test -d conf$$.dir; then
  430. rm -f conf$$.dir/conf$$.file
  431. else
  432. rm -f conf$$.dir
  433. mkdir conf$$.dir 2>/dev/null
  434. fi
  435. if (echo >conf$$.file) 2>/dev/null; then
  436. if ln -s conf$$.file conf$$ 2>/dev/null; then
  437. as_ln_s='ln -s'
  438. # ... but there are two gotchas:
  439. # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
  440. # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
  441. # In both cases, we have to default to `cp -p'.
  442. ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
  443. as_ln_s='cp -p'
  444. elif ln conf$$.file conf$$ 2>/dev/null; then
  445. as_ln_s=ln
  446. else
  447. as_ln_s='cp -p'
  448. fi
  449. else
  450. as_ln_s='cp -p'
  451. fi
  452. rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
  453. rmdir conf$$.dir 2>/dev/null
  454. if mkdir -p . 2>/dev/null; then
  455. as_mkdir_p='mkdir -p "$as_dir"'
  456. else
  457. test -d ./-p && rmdir ./-p
  458. as_mkdir_p=false
  459. fi
  460. if test -x / >/dev/null 2>&1; then
  461. as_test_x='test -x'
  462. else
  463. if ls -dL / >/dev/null 2>&1; then
  464. as_ls_L_option=L
  465. else
  466. as_ls_L_option=
  467. fi
  468. as_test_x='
  469. eval sh -c '\''
  470. if test -d "$1"; then
  471. test -d "$1/.";
  472. else
  473. case $1 in #(
  474. -*)set "./$1";;
  475. esac;
  476. case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
  477. ???[sx]*):;;*)false;;esac;fi
  478. '\'' sh
  479. '
  480. fi
  481. as_executable_p=$as_test_x
  482. # Sed expression to map a string onto a valid CPP name.
  483. as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
  484. # Sed expression to map a string onto a valid variable name.
  485. as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
  486. exec 7<&0 </dev/null 6>&1
  487. # Name of the host.
  488. # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
  489. # so uname gets run too.
  490. ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
  491. #
  492. # Initializations.
  493. #
  494. ac_default_prefix=/usr/local
  495. ac_clean_files=
  496. ac_config_libobj_dir=.
  497. LIBOBJS=
  498. cross_compiling=no
  499. subdirs=
  500. MFLAGS=
  501. MAKEFLAGS=
  502. # Identity of this package.
  503. PACKAGE_NAME='aria2'
  504. PACKAGE_TARNAME='aria2'
  505. PACKAGE_VERSION='1.6.3'
  506. PACKAGE_STRING='aria2 1.6.3'
  507. PACKAGE_BUGREPORT='t-tujikawa@users.sourceforge.net'
  508. PACKAGE_URL='http://aria2.sourceforge.net/'
  509. ac_unique_file="src/a2io.h"
  510. # Factoring default headers for most tests.
  511. ac_includes_default="\
  512. #include <stdio.h>
  513. #ifdef HAVE_SYS_TYPES_H
  514. # include <sys/types.h>
  515. #endif
  516. #ifdef HAVE_SYS_STAT_H
  517. # include <sys/stat.h>
  518. #endif
  519. #ifdef STDC_HEADERS
  520. # include <stdlib.h>
  521. # include <stddef.h>
  522. #else
  523. # ifdef HAVE_STDLIB_H
  524. # include <stdlib.h>
  525. # endif
  526. #endif
  527. #ifdef HAVE_STRING_H
  528. # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
  529. # include <memory.h>
  530. # endif
  531. # include <string.h>
  532. #endif
  533. #ifdef HAVE_STRINGS_H
  534. # include <strings.h>
  535. #endif
  536. #ifdef HAVE_INTTYPES_H
  537. # include <inttypes.h>
  538. #endif
  539. #ifdef HAVE_STDINT_H
  540. # include <stdint.h>
  541. #endif
  542. #ifdef HAVE_UNISTD_H
  543. # include <unistd.h>
  544. #endif"
  545. gt_needs=
  546. ac_header_list=
  547. ac_func_list=
  548. ac_subst_vars='am__EXEEXT_FALSE
  549. am__EXEEXT_TRUE
  550. LTLIBOBJS
  551. HAVE_DAEMON_FALSE
  552. HAVE_DAEMON_TRUE
  553. HAVE_TIMEGM_FALSE
  554. HAVE_TIMEGM_TRUE
  555. HAVE_STRPTIME_FALSE
  556. HAVE_STRPTIME_TRUE
  557. HAVE_LOCALTIME_R_FALSE
  558. HAVE_LOCALTIME_R_TRUE
  559. HAVE_INET_ATON_FALSE
  560. HAVE_INET_ATON_TRUE
  561. HAVE_GETTIMEOFDAY_FALSE
  562. HAVE_GETTIMEOFDAY_TRUE
  563. HAVE_GETADDRINFO_FALSE
  564. HAVE_GETADDRINFO_TRUE
  565. HAVE_GAI_STRERROR_FALSE
  566. HAVE_GAI_STRERROR_TRUE
  567. HAVE_BASENAME_FALSE
  568. HAVE_BASENAME_TRUE
  569. HAVE_ASCTIME_R_FALSE
  570. HAVE_ASCTIME_R_TRUE
  571. HAVE_POSIX_FALLOCATE_FALSE
  572. HAVE_POSIX_FALLOCATE_TRUE
  573. HAVE_EPOLL_FALSE
  574. HAVE_EPOLL_TRUE
  575. POW_LIB
  576. LIBOBJS
  577. POSUB
  578. LTLIBINTL
  579. LIBINTL
  580. INTLLIBS
  581. INTL_LIBTOOL_SUFFIX_PREFIX
  582. INTLOBJS
  583. GENCAT
  584. INSTOBJEXT
  585. DATADIRNAME
  586. CATOBJEXT
  587. USE_INCLUDED_LIBINTL
  588. BUILD_INCLUDED_LIBINTL
  589. LTLIBC
  590. WINDRES
  591. WOE32
  592. WOE32DLL
  593. HAVE_WPRINTF
  594. HAVE_SNPRINTF
  595. HAVE_ASPRINTF
  596. HAVE_POSIX_PRINTF
  597. INTL_MACOSX_LIBS
  598. GLIBC21
  599. INTLBISON
  600. LTLIBICONV
  601. LIBICONV
  602. LTLIBMULTITHREAD
  603. LIBMULTITHREAD
  604. LTLIBTHREAD
  605. LIBTHREAD
  606. LIBPTH_PREFIX
  607. LTLIBPTH
  608. LIBPTH
  609. PRI_MACROS_BROKEN
  610. HAVE_VISIBILITY
  611. CFLAG_VISIBILITY
  612. GLIBC2
  613. XGETTEXT_EXTRA_OPTIONS
  614. MSGMERGE
  615. XGETTEXT_015
  616. XGETTEXT
  617. GMSGFMT_015
  618. MSGFMT_015
  619. GMSGFMT
  620. MSGFMT
  621. GETTEXT_MACRO_VERSION
  622. USE_NLS
  623. ALLOCA
  624. HAVE_SQLITE3_FALSE
  625. HAVE_SQLITE3_TRUE
  626. HAVE_LIBZ_FALSE
  627. HAVE_LIBZ_TRUE
  628. ENABLE_ASYNC_DNS_FALSE
  629. ENABLE_ASYNC_DNS_TRUE
  630. HAVE_LIBEXPAT_FALSE
  631. HAVE_LIBEXPAT_TRUE
  632. HAVE_LIBXML2_FALSE
  633. HAVE_LIBXML2_TRUE
  634. ENABLE_XML_RPC_FALSE
  635. ENABLE_XML_RPC_TRUE
  636. ENABLE_METALINK_LIBEXPAT_FALSE
  637. ENABLE_METALINK_LIBEXPAT_TRUE
  638. ENABLE_METALINK_LIBXML2_FALSE
  639. ENABLE_METALINK_LIBXML2_TRUE
  640. ENABLE_METALINK_FALSE
  641. ENABLE_METALINK_TRUE
  642. ENABLE_BITTORRENT_FALSE
  643. ENABLE_BITTORRENT_TRUE
  644. ENABLE_MESSAGE_DIGEST_FALSE
  645. ENABLE_MESSAGE_DIGEST_TRUE
  646. HAVE_LIBSSL_FALSE
  647. HAVE_LIBSSL_TRUE
  648. HAVE_LIBGNUTLS_FALSE
  649. HAVE_LIBGNUTLS_TRUE
  650. ca_bundle
  651. ENABLE_SSL_FALSE
  652. ENABLE_SSL_TRUE
  653. LIBZ_CPPFLAGS
  654. LIBZ_LIBS
  655. LIBCARES_CPPFLAGS
  656. LIBCARES_LIBS
  657. OPENSSL_CFLAGS
  658. OPENSSL_LIBS
  659. LIBGCRYPT_LIBS
  660. LIBGCRYPT_CFLAGS
  661. LIBGCRYPT_CONFIG
  662. LIBGNUTLS_CONFIG
  663. LIBGNUTLS_LIBS
  664. LIBGNUTLS_CFLAGS
  665. SQLITE3_LIBS
  666. SQLITE3_CFLAGS
  667. PKG_CONFIG
  668. LIBEXPAT_CPPFLAGS
  669. LIBEXPAT_LIBS
  670. XML_LIBS
  671. XML_CPPFLAGS
  672. XML2_CONFIG
  673. EGREP
  674. GREP
  675. CXXCPP
  676. YFLAGS
  677. YACC
  678. RANLIB
  679. am__fastdepCC_FALSE
  680. am__fastdepCC_TRUE
  681. CCDEPMODE
  682. ac_ct_CC
  683. CFLAGS
  684. CC
  685. am__fastdepCXX_FALSE
  686. am__fastdepCXX_TRUE
  687. CXXDEPMODE
  688. AMDEPBACKSLASH
  689. AMDEP_FALSE
  690. AMDEP_TRUE
  691. am__quote
  692. am__include
  693. DEPDIR
  694. OBJEXT
  695. EXEEXT
  696. ac_ct_CXX
  697. CPPFLAGS
  698. LDFLAGS
  699. CXXFLAGS
  700. CXX
  701. WINSOCK_LIBS
  702. CPPUNIT_LIBS
  703. CPPUNIT_CFLAGS
  704. CPPUNIT_CONFIG
  705. am__untar
  706. am__tar
  707. AMTAR
  708. am__leading_dot
  709. SET_MAKE
  710. AWK
  711. mkdir_p
  712. MKDIR_P
  713. INSTALL_STRIP_PROGRAM
  714. STRIP
  715. install_sh
  716. MAKEINFO
  717. AUTOHEADER
  718. AUTOMAKE
  719. AUTOCONF
  720. ACLOCAL
  721. VERSION
  722. PACKAGE
  723. CYGPATH_W
  724. am__isrc
  725. INSTALL_DATA
  726. INSTALL_SCRIPT
  727. INSTALL_PROGRAM
  728. target_os
  729. target_vendor
  730. target_cpu
  731. target
  732. host_os
  733. host_vendor
  734. host_cpu
  735. host
  736. build_os
  737. build_vendor
  738. build_cpu
  739. build
  740. target_alias
  741. host_alias
  742. build_alias
  743. LIBS
  744. ECHO_T
  745. ECHO_N
  746. ECHO_C
  747. DEFS
  748. mandir
  749. localedir
  750. libdir
  751. psdir
  752. pdfdir
  753. dvidir
  754. htmldir
  755. infodir
  756. docdir
  757. oldincludedir
  758. includedir
  759. localstatedir
  760. sharedstatedir
  761. sysconfdir
  762. datadir
  763. datarootdir
  764. libexecdir
  765. sbindir
  766. bindir
  767. program_transform_name
  768. prefix
  769. exec_prefix
  770. PACKAGE_URL
  771. PACKAGE_BUGREPORT
  772. PACKAGE_STRING
  773. PACKAGE_VERSION
  774. PACKAGE_TARNAME
  775. PACKAGE_NAME
  776. PATH_SEPARATOR
  777. SHELL'
  778. ac_subst_files=''
  779. ac_user_opts='
  780. enable_option_checking
  781. with_cppunit_prefix
  782. with_cppunit_exec_prefix
  783. with_gnutls
  784. with_openssl
  785. with_sqlite3
  786. with_libxml2
  787. with_libexpat
  788. with_libcares
  789. with_libz
  790. enable_bittorrent
  791. enable_metalink
  792. enable_epoll
  793. with_ca_bundle
  794. enable_dependency_tracking
  795. with_xml_prefix
  796. with_xml_exec_prefix
  797. enable_xmltest
  798. with_libexpat_prefix
  799. with_sqlite3_prefix
  800. with_libgnutls_prefix
  801. with_libgcrypt_prefix
  802. with_openssl_prefix
  803. with_libcares_prefix
  804. with_libz_prefix
  805. enable_largefile
  806. enable_nls
  807. enable_threads
  808. with_gnu_ld
  809. enable_rpath
  810. with_libpth_prefix
  811. with_libiconv_prefix
  812. with_included_gettext
  813. with_libintl_prefix
  814. '
  815. ac_precious_vars='build_alias
  816. host_alias
  817. target_alias
  818. CXX
  819. CXXFLAGS
  820. LDFLAGS
  821. LIBS
  822. CPPFLAGS
  823. CCC
  824. CC
  825. CFLAGS
  826. YACC
  827. YFLAGS
  828. CXXCPP
  829. PKG_CONFIG
  830. SQLITE3_CFLAGS
  831. SQLITE3_LIBS
  832. LIBGNUTLS_CFLAGS
  833. LIBGNUTLS_LIBS'
  834. # Initialize some variables set by options.
  835. ac_init_help=
  836. ac_init_version=false
  837. ac_unrecognized_opts=
  838. ac_unrecognized_sep=
  839. # The variables have the same names as the options, with
  840. # dashes changed to underlines.
  841. cache_file=/dev/null
  842. exec_prefix=NONE
  843. no_create=
  844. no_recursion=
  845. prefix=NONE
  846. program_prefix=NONE
  847. program_suffix=NONE
  848. program_transform_name=s,x,x,
  849. silent=
  850. site=
  851. srcdir=
  852. verbose=
  853. x_includes=NONE
  854. x_libraries=NONE
  855. # Installation directory options.
  856. # These are left unexpanded so users can "make install exec_prefix=/foo"
  857. # and all the variables that are supposed to be based on exec_prefix
  858. # by default will actually change.
  859. # Use braces instead of parens because sh, perl, etc. also accept them.
  860. # (The list follows the same order as the GNU Coding Standards.)
  861. bindir='${exec_prefix}/bin'
  862. sbindir='${exec_prefix}/sbin'
  863. libexecdir='${exec_prefix}/libexec'
  864. datarootdir='${prefix}/share'
  865. datadir='${datarootdir}'
  866. sysconfdir='${prefix}/etc'
  867. sharedstatedir='${prefix}/com'
  868. localstatedir='${prefix}/var'
  869. includedir='${prefix}/include'
  870. oldincludedir='/usr/include'
  871. docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
  872. infodir='${datarootdir}/info'
  873. htmldir='${docdir}'
  874. dvidir='${docdir}'
  875. pdfdir='${docdir}'
  876. psdir='${docdir}'
  877. libdir='${exec_prefix}/lib'
  878. localedir='${datarootdir}/locale'
  879. mandir='${datarootdir}/man'
  880. ac_prev=
  881. ac_dashdash=
  882. for ac_option
  883. do
  884. # If the previous option needs an argument, assign it.
  885. if test -n "$ac_prev"; then
  886. eval $ac_prev=\$ac_option
  887. ac_prev=
  888. continue
  889. fi
  890. case $ac_option in
  891. *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
  892. *) ac_optarg=yes ;;
  893. esac
  894. # Accept the important Cygnus configure options, so we can diagnose typos.
  895. case $ac_dashdash$ac_option in
  896. --)
  897. ac_dashdash=yes ;;
  898. -bindir | --bindir | --bindi | --bind | --bin | --bi)
  899. ac_prev=bindir ;;
  900. -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
  901. bindir=$ac_optarg ;;
  902. -build | --build | --buil | --bui | --bu)
  903. ac_prev=build_alias ;;
  904. -build=* | --build=* | --buil=* | --bui=* | --bu=*)
  905. build_alias=$ac_optarg ;;
  906. -cache-file | --cache-file | --cache-fil | --cache-fi \
  907. | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
  908. ac_prev=cache_file ;;
  909. -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
  910. | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
  911. cache_file=$ac_optarg ;;
  912. --config-cache | -C)
  913. cache_file=config.cache ;;
  914. -datadir | --datadir | --datadi | --datad)
  915. ac_prev=datadir ;;
  916. -datadir=* | --datadir=* | --datadi=* | --datad=*)
  917. datadir=$ac_optarg ;;
  918. -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
  919. | --dataroo | --dataro | --datar)
  920. ac_prev=datarootdir ;;
  921. -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
  922. | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
  923. datarootdir=$ac_optarg ;;
  924. -disable-* | --disable-*)
  925. ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
  926. # Reject names that are not valid shell variable names.
  927. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  928. as_fn_error "invalid feature name: $ac_useropt"
  929. ac_useropt_orig=$ac_useropt
  930. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  931. case $ac_user_opts in
  932. *"
  933. "enable_$ac_useropt"
  934. "*) ;;
  935. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
  936. ac_unrecognized_sep=', ';;
  937. esac
  938. eval enable_$ac_useropt=no ;;
  939. -docdir | --docdir | --docdi | --doc | --do)
  940. ac_prev=docdir ;;
  941. -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
  942. docdir=$ac_optarg ;;
  943. -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
  944. ac_prev=dvidir ;;
  945. -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
  946. dvidir=$ac_optarg ;;
  947. -enable-* | --enable-*)
  948. ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
  949. # Reject names that are not valid shell variable names.
  950. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  951. as_fn_error "invalid feature name: $ac_useropt"
  952. ac_useropt_orig=$ac_useropt
  953. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  954. case $ac_user_opts in
  955. *"
  956. "enable_$ac_useropt"
  957. "*) ;;
  958. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
  959. ac_unrecognized_sep=', ';;
  960. esac
  961. eval enable_$ac_useropt=\$ac_optarg ;;
  962. -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
  963. | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
  964. | --exec | --exe | --ex)
  965. ac_prev=exec_prefix ;;
  966. -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
  967. | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
  968. | --exec=* | --exe=* | --ex=*)
  969. exec_prefix=$ac_optarg ;;
  970. -gas | --gas | --ga | --g)
  971. # Obsolete; use --with-gas.
  972. with_gas=yes ;;
  973. -help | --help | --hel | --he | -h)
  974. ac_init_help=long ;;
  975. -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
  976. ac_init_help=recursive ;;
  977. -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
  978. ac_init_help=short ;;
  979. -host | --host | --hos | --ho)
  980. ac_prev=host_alias ;;
  981. -host=* | --host=* | --hos=* | --ho=*)
  982. host_alias=$ac_optarg ;;
  983. -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
  984. ac_prev=htmldir ;;
  985. -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
  986. | --ht=*)
  987. htmldir=$ac_optarg ;;
  988. -includedir | --includedir | --includedi | --included | --include \
  989. | --includ | --inclu | --incl | --inc)
  990. ac_prev=includedir ;;
  991. -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
  992. | --includ=* | --inclu=* | --incl=* | --inc=*)
  993. includedir=$ac_optarg ;;
  994. -infodir | --infodir | --infodi | --infod | --info | --inf)
  995. ac_prev=infodir ;;
  996. -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
  997. infodir=$ac_optarg ;;
  998. -libdir | --libdir | --libdi | --libd)
  999. ac_prev=libdir ;;
  1000. -libdir=* | --libdir=* | --libdi=* | --libd=*)
  1001. libdir=$ac_optarg ;;
  1002. -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
  1003. | --libexe | --libex | --libe)
  1004. ac_prev=libexecdir ;;
  1005. -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
  1006. | --libexe=* | --libex=* | --libe=*)
  1007. libexecdir=$ac_optarg ;;
  1008. -localedir | --localedir | --localedi | --localed | --locale)
  1009. ac_prev=localedir ;;
  1010. -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
  1011. localedir=$ac_optarg ;;
  1012. -localstatedir | --localstatedir | --localstatedi | --localstated \
  1013. | --localstate | --localstat | --localsta | --localst | --locals)
  1014. ac_prev=localstatedir ;;
  1015. -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
  1016. | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
  1017. localstatedir=$ac_optarg ;;
  1018. -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
  1019. ac_prev=mandir ;;
  1020. -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
  1021. mandir=$ac_optarg ;;
  1022. -nfp | --nfp | --nf)
  1023. # Obsolete; use --without-fp.
  1024. with_fp=no ;;
  1025. -no-create | --no-create | --no-creat | --no-crea | --no-cre \
  1026. | --no-cr | --no-c | -n)
  1027. no_create=yes ;;
  1028. -no-recursion | --no-recursion | --no-recursio | --no-recursi \
  1029. | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
  1030. no_recursion=yes ;;
  1031. -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
  1032. | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
  1033. | --oldin | --oldi | --old | --ol | --o)
  1034. ac_prev=oldincludedir ;;
  1035. -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
  1036. | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
  1037. | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
  1038. oldincludedir=$ac_optarg ;;
  1039. -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
  1040. ac_prev=prefix ;;
  1041. -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
  1042. prefix=$ac_optarg ;;
  1043. -program-prefix | --program-prefix | --program-prefi | --program-pref \
  1044. | --program-pre | --program-pr | --program-p)
  1045. ac_prev=program_prefix ;;
  1046. -program-prefix=* | --program-prefix=* | --program-prefi=* \
  1047. | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
  1048. program_prefix=$ac_optarg ;;
  1049. -program-suffix | --program-suffix | --program-suffi | --program-suff \
  1050. | --program-suf | --program-su | --program-s)
  1051. ac_prev=program_suffix ;;
  1052. -program-suffix=* | --program-suffix=* | --program-suffi=* \
  1053. | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
  1054. program_suffix=$ac_optarg ;;
  1055. -program-transform-name | --program-transform-name \
  1056. | --program-transform-nam | --program-transform-na \
  1057. | --program-transform-n | --program-transform- \
  1058. | --program-transform | --program-transfor \
  1059. | --program-transfo | --program-transf \
  1060. | --program-trans | --program-tran \
  1061. | --progr-tra | --program-tr | --program-t)
  1062. ac_prev=program_transform_name ;;
  1063. -program-transform-name=* | --program-transform-name=* \
  1064. | --program-transform-nam=* | --program-transform-na=* \
  1065. | --program-transform-n=* | --program-transform-=* \
  1066. | --program-transform=* | --program-transfor=* \
  1067. | --program-transfo=* | --program-transf=* \
  1068. | --program-trans=* | --program-tran=* \
  1069. | --progr-tra=* | --program-tr=* | --program-t=*)
  1070. program_transform_name=$ac_optarg ;;
  1071. -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
  1072. ac_prev=pdfdir ;;
  1073. -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
  1074. pdfdir=$ac_optarg ;;
  1075. -psdir | --psdir | --psdi | --psd | --ps)
  1076. ac_prev=psdir ;;
  1077. -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
  1078. psdir=$ac_optarg ;;
  1079. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  1080. | -silent | --silent | --silen | --sile | --sil)
  1081. silent=yes ;;
  1082. -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
  1083. ac_prev=sbindir ;;
  1084. -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
  1085. | --sbi=* | --sb=*)
  1086. sbindir=$ac_optarg ;;
  1087. -sharedstatedir | --sharedstatedir | --sharedstatedi \
  1088. | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
  1089. | --sharedst | --shareds | --shared | --share | --shar \
  1090. | --sha | --sh)
  1091. ac_prev=sharedstatedir ;;
  1092. -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
  1093. | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
  1094. | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
  1095. | --sha=* | --sh=*)
  1096. sharedstatedir=$ac_optarg ;;
  1097. -site | --site | --sit)
  1098. ac_prev=site ;;
  1099. -site=* | --site=* | --sit=*)
  1100. site=$ac_optarg ;;
  1101. -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
  1102. ac_prev=srcdir ;;
  1103. -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
  1104. srcdir=$ac_optarg ;;
  1105. -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
  1106. | --syscon | --sysco | --sysc | --sys | --sy)
  1107. ac_prev=sysconfdir ;;
  1108. -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
  1109. | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
  1110. sysconfdir=$ac_optarg ;;
  1111. -target | --target | --targe | --targ | --tar | --ta | --t)
  1112. ac_prev=target_alias ;;
  1113. -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
  1114. target_alias=$ac_optarg ;;
  1115. -v | -verbose | --verbose | --verbos | --verbo | --verb)
  1116. verbose=yes ;;
  1117. -version | --version | --versio | --versi | --vers | -V)
  1118. ac_init_version=: ;;
  1119. -with-* | --with-*)
  1120. ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
  1121. # Reject names that are not valid shell variable names.
  1122. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  1123. as_fn_error "invalid package name: $ac_useropt"
  1124. ac_useropt_orig=$ac_useropt
  1125. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  1126. case $ac_user_opts in
  1127. *"
  1128. "with_$ac_useropt"
  1129. "*) ;;
  1130. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
  1131. ac_unrecognized_sep=', ';;
  1132. esac
  1133. eval with_$ac_useropt=\$ac_optarg ;;
  1134. -without-* | --without-*)
  1135. ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
  1136. # Reject names that are not valid shell variable names.
  1137. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  1138. as_fn_error "invalid package name: $ac_useropt"
  1139. ac_useropt_orig=$ac_useropt
  1140. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  1141. case $ac_user_opts in
  1142. *"
  1143. "with_$ac_useropt"
  1144. "*) ;;
  1145. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
  1146. ac_unrecognized_sep=', ';;
  1147. esac
  1148. eval with_$ac_useropt=no ;;
  1149. --x)
  1150. # Obsolete; use --with-x.
  1151. with_x=yes ;;
  1152. -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
  1153. | --x-incl | --x-inc | --x-in | --x-i)
  1154. ac_prev=x_includes ;;
  1155. -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
  1156. | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
  1157. x_includes=$ac_optarg ;;
  1158. -x-libraries | --x-libraries | --x-librarie | --x-librari \
  1159. | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
  1160. ac_prev=x_libraries ;;
  1161. -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
  1162. | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
  1163. x_libraries=$ac_optarg ;;
  1164. -*) as_fn_error "unrecognized option: \`$ac_option'
  1165. Try \`$0 --help' for more information."
  1166. ;;
  1167. *=*)
  1168. ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
  1169. # Reject names that are not valid shell variable names.
  1170. case $ac_envvar in #(
  1171. '' | [0-9]* | *[!_$as_cr_alnum]* )
  1172. as_fn_error "invalid variable name: \`$ac_envvar'" ;;
  1173. esac
  1174. eval $ac_envvar=\$ac_optarg
  1175. export $ac_envvar ;;
  1176. *)
  1177. # FIXME: should be removed in autoconf 3.0.
  1178. $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
  1179. expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
  1180. $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
  1181. : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
  1182. ;;
  1183. esac
  1184. done
  1185. if test -n "$ac_prev"; then
  1186. ac_option=--`echo $ac_prev | sed 's/_/-/g'`
  1187. as_fn_error "missing argument to $ac_option"
  1188. fi
  1189. if test -n "$ac_unrecognized_opts"; then
  1190. case $enable_option_checking in
  1191. no) ;;
  1192. fatal) as_fn_error "unrecognized options: $ac_unrecognized_opts" ;;
  1193. *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
  1194. esac
  1195. fi
  1196. # Check all directory arguments for consistency.
  1197. for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
  1198. datadir sysconfdir sharedstatedir localstatedir includedir \
  1199. oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
  1200. libdir localedir mandir
  1201. do
  1202. eval ac_val=\$$ac_var
  1203. # Remove trailing slashes.
  1204. case $ac_val in
  1205. */ )
  1206. ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
  1207. eval $ac_var=\$ac_val;;
  1208. esac
  1209. # Be sure to have absolute directory names.
  1210. case $ac_val in
  1211. [\\/$]* | ?:[\\/]* ) continue;;
  1212. NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
  1213. esac
  1214. as_fn_error "expected an absolute directory name for --$ac_var: $ac_val"
  1215. done
  1216. # There might be people who depend on the old broken behavior: `$host'
  1217. # used to hold the argument of --host etc.
  1218. # FIXME: To remove some day.
  1219. build=$build_alias
  1220. host=$host_alias
  1221. target=$target_alias
  1222. # FIXME: To remove some day.
  1223. if test "x$host_alias" != x; then
  1224. if test "x$build_alias" = x; then
  1225. cross_compiling=maybe
  1226. $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
  1227. If a cross compiler is detected then cross compile mode will be used." >&2
  1228. elif test "x$build_alias" != "x$host_alias"; then
  1229. cross_compiling=yes
  1230. fi
  1231. fi
  1232. ac_tool_prefix=
  1233. test -n "$host_alias" && ac_tool_prefix=$host_alias-
  1234. test "$silent" = yes && exec 6>/dev/null
  1235. ac_pwd=`pwd` && test -n "$ac_pwd" &&
  1236. ac_ls_di=`ls -di .` &&
  1237. ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
  1238. as_fn_error "working directory cannot be determined"
  1239. test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
  1240. as_fn_error "pwd does not report name of working directory"
  1241. # Find the source files, if location was not specified.
  1242. if test -z "$srcdir"; then
  1243. ac_srcdir_defaulted=yes
  1244. # Try the directory containing this script, then the parent directory.
  1245. ac_confdir=`$as_dirname -- "$as_myself" ||
  1246. $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  1247. X"$as_myself" : 'X\(//\)[^/]' \| \
  1248. X"$as_myself" : 'X\(//\)$' \| \
  1249. X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
  1250. $as_echo X"$as_myself" |
  1251. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  1252. s//\1/
  1253. q
  1254. }
  1255. /^X\(\/\/\)[^/].*/{
  1256. s//\1/
  1257. q
  1258. }
  1259. /^X\(\/\/\)$/{
  1260. s//\1/
  1261. q
  1262. }
  1263. /^X\(\/\).*/{
  1264. s//\1/
  1265. q
  1266. }
  1267. s/.*/./; q'`
  1268. srcdir=$ac_confdir
  1269. if test ! -r "$srcdir/$ac_unique_file"; then
  1270. srcdir=..
  1271. fi
  1272. else
  1273. ac_srcdir_defaulted=no
  1274. fi
  1275. if test ! -r "$srcdir/$ac_unique_file"; then
  1276. test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
  1277. as_fn_error "cannot find sources ($ac_unique_file) in $srcdir"
  1278. fi
  1279. ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
  1280. ac_abs_confdir=`(
  1281. cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg"
  1282. pwd)`
  1283. # When building in place, set srcdir=.
  1284. if test "$ac_abs_confdir" = "$ac_pwd"; then
  1285. srcdir=.
  1286. fi
  1287. # Remove unnecessary trailing slashes from srcdir.
  1288. # Double slashes in file names in object file debugging info
  1289. # mess up M-x gdb in Emacs.
  1290. case $srcdir in
  1291. */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
  1292. esac
  1293. for ac_var in $ac_precious_vars; do
  1294. eval ac_env_${ac_var}_set=\${${ac_var}+set}
  1295. eval ac_env_${ac_var}_value=\$${ac_var}
  1296. eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
  1297. eval ac_cv_env_${ac_var}_value=\$${ac_var}
  1298. done
  1299. #
  1300. # Report the --help message.
  1301. #
  1302. if test "$ac_init_help" = "long"; then
  1303. # Omit some internal or obsolete options to make the list less imposing.
  1304. # This message is too long to be a string in the A/UX 3.1 sh.
  1305. cat <<_ACEOF
  1306. \`configure' configures aria2 1.6.3 to adapt to many kinds of systems.
  1307. Usage: $0 [OPTION]... [VAR=VALUE]...
  1308. To assign environment variables (e.g., CC, CFLAGS...), specify them as
  1309. VAR=VALUE. See below for descriptions of some of the useful variables.
  1310. Defaults for the options are specified in brackets.
  1311. Configuration:
  1312. -h, --help display this help and exit
  1313. --help=short display options specific to this package
  1314. --help=recursive display the short help of all the included packages
  1315. -V, --version display version information and exit
  1316. -q, --quiet, --silent do not print \`checking...' messages
  1317. --cache-file=FILE cache test results in FILE [disabled]
  1318. -C, --config-cache alias for \`--cache-file=config.cache'
  1319. -n, --no-create do not create output files
  1320. --srcdir=DIR find the sources in DIR [configure dir or \`..']
  1321. Installation directories:
  1322. --prefix=PREFIX install architecture-independent files in PREFIX
  1323. [$ac_default_prefix]
  1324. --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
  1325. [PREFIX]
  1326. By default, \`make install' will install all the files in
  1327. \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
  1328. an installation prefix other than \`$ac_default_prefix' using \`--prefix',
  1329. for instance \`--prefix=\$HOME'.
  1330. For better control, use the options below.
  1331. Fine tuning of the installation directories:
  1332. --bindir=DIR user executables [EPREFIX/bin]
  1333. --sbindir=DIR system admin executables [EPREFIX/sbin]
  1334. --libexecdir=DIR program executables [EPREFIX/libexec]
  1335. --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
  1336. --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
  1337. --localstatedir=DIR modifiable single-machine data [PREFIX/var]
  1338. --libdir=DIR object code libraries [EPREFIX/lib]
  1339. --includedir=DIR C header files [PREFIX/include]
  1340. --oldincludedir=DIR C header files for non-gcc [/usr/include]
  1341. --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
  1342. --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
  1343. --infodir=DIR info documentation [DATAROOTDIR/info]
  1344. --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
  1345. --mandir=DIR man documentation [DATAROOTDIR/man]
  1346. --docdir=DIR documentation root [DATAROOTDIR/doc/aria2]
  1347. --htmldir=DIR html documentation [DOCDIR]
  1348. --dvidir=DIR dvi documentation [DOCDIR]
  1349. --pdfdir=DIR pdf documentation [DOCDIR]
  1350. --psdir=DIR ps documentation [DOCDIR]
  1351. _ACEOF
  1352. cat <<\_ACEOF
  1353. Program names:
  1354. --program-prefix=PREFIX prepend PREFIX to installed program names
  1355. --program-suffix=SUFFIX append SUFFIX to installed program names
  1356. --program-transform-name=PROGRAM run sed PROGRAM on installed program names
  1357. System types:
  1358. --build=BUILD configure for building on BUILD [guessed]
  1359. --host=HOST cross-compile to build programs to run on HOST [BUILD]
  1360. --target=TARGET configure for building compilers for TARGET [HOST]
  1361. _ACEOF
  1362. fi
  1363. if test -n "$ac_init_help"; then
  1364. case $ac_init_help in
  1365. short | recursive ) echo "Configuration of aria2 1.6.3:";;
  1366. esac
  1367. cat <<\_ACEOF
  1368. Optional Features:
  1369. --disable-option-checking ignore unrecognized --enable/--with options
  1370. --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
  1371. --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
  1372. --enable-bittorrent Enable bittorrent support.
  1373. --enable-metalink Enable metalink support.
  1374. --enable-epoll Enable epoll support.
  1375. --disable-dependency-tracking speeds up one-time build
  1376. --enable-dependency-tracking do not reject slow dependency extractors
  1377. --disable-xmltest Do not try to compile and run a test LIBXML program
  1378. --disable-largefile omit support for large files
  1379. --disable-nls do not use Native Language Support
  1380. --enable-threads={posix|solaris|pth|win32}
  1381. specify multithreading API
  1382. --disable-threads build without multithread safety
  1383. --disable-rpath do not hardcode runtime library paths
  1384. Optional Packages:
  1385. --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
  1386. --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
  1387. --with-cppunit-prefix=PFX Prefix where CppUnit is installed (optional)
  1388. --with-cppunit-exec-prefix=PFX Exec prefix where CppUnit is installed (optional)
  1389. --with-gnutls Use gnutls if it is installed.
  1390. --with-openssl Use openssl if it is installed.
  1391. --with-sqlite3 Use sqlite3 if it is installed.
  1392. --with-libxml2 Use libxml2 if it is installed.
  1393. --with-libexpat Use libexpat if it is installed.
  1394. --with-libcares Use libcares if it is installed.
  1395. --with-libz Use libz if it is installed.
  1396. --with-ca-bundle=FILE Use FILE as default CA bundle.
  1397. --with-xml-prefix=PFX Prefix where libxml is installed (optional)
  1398. --with-xml-exec-prefix=PFX Exec prefix where libxml is installed (optional)
  1399. --with-libexpat-prefix=PREFIX Prefix where libexpat installed (optional)
  1400. --with-sqlite3-prefix=PREFIX Prefix where SQLite3 installed (optional)
  1401. --with-libgnutls-prefix=PFX Prefix where libgnutls is installed (optional)
  1402. --with-libgcrypt-prefix=PFX
  1403. prefix where LIBGCRYPT is installed (optional)
  1404. --with-openssl-prefix=PREFIX Prefix where OpenSSL installed (optional)
  1405. --with-libcares-prefix=PREFIX Prefix where libcares installed (optional)
  1406. --with-libz-prefix=PREFIX Prefix where libz installed (optional)
  1407. --with-gnu-ld assume the C compiler uses GNU ld default=no
  1408. --with-libpth-prefix[=DIR] search for libpth in DIR/include and DIR/lib
  1409. --without-libpth-prefix don't search for libpth in includedir and libdir
  1410. --with-libiconv-prefix[=DIR] search for libiconv in DIR/include and DIR/lib
  1411. --without-libiconv-prefix don't search for libiconv in includedir and libdir
  1412. --with-included-gettext use the GNU gettext library included here
  1413. --with-libintl-prefix[=DIR] search for libintl in DIR/include and DIR/lib
  1414. --without-libintl-prefix don't search for libintl in includedir and libdir
  1415. Some influential environment variables:
  1416. CXX C++ compiler command
  1417. CXXFLAGS C++ compiler flags
  1418. LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
  1419. nonstandard directory <lib dir>
  1420. LIBS libraries to pass to the linker, e.g. -l<library>
  1421. CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
  1422. you have headers in a nonstandard directory <include dir>
  1423. CC C compiler command
  1424. CFLAGS C compiler flags
  1425. YACC The `Yet Another C Compiler' implementation to use. Defaults to
  1426. the first program found out of: `bison -y', `byacc', `yacc'.
  1427. YFLAGS The list of arguments that will be passed by default to $YACC.
  1428. This script will default YFLAGS to the empty string to avoid a
  1429. default value of `-d' given by some make applications.
  1430. CXXCPP C++ preprocessor
  1431. PKG_CONFIG path to pkg-config utility
  1432. SQLITE3_CFLAGS
  1433. C compiler flags for SQLITE3, overriding pkg-config
  1434. SQLITE3_LIBS
  1435. linker flags for SQLITE3, overriding pkg-config
  1436. LIBGNUTLS_CFLAGS
  1437. C compiler flags for LIBGNUTLS, overriding pkg-config
  1438. LIBGNUTLS_LIBS
  1439. linker flags for LIBGNUTLS, overriding pkg-config
  1440. Use these variables to override the choices made by `configure' or to help
  1441. it to find libraries and programs with nonstandard names/locations.
  1442. Report bugs to <t-tujikawa@users.sourceforge.net>.
  1443. aria2 home page: <http://aria2.sourceforge.net/>.
  1444. _ACEOF
  1445. ac_status=$?
  1446. fi
  1447. if test "$ac_init_help" = "recursive"; then
  1448. # If there are subdirs, report their specific --help.
  1449. for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
  1450. test -d "$ac_dir" ||
  1451. { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
  1452. continue
  1453. ac_builddir=.
  1454. case "$ac_dir" in
  1455. .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
  1456. *)
  1457. ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
  1458. # A ".." for each directory in $ac_dir_suffix.
  1459. ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
  1460. case $ac_top_builddir_sub in
  1461. "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
  1462. *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
  1463. esac ;;
  1464. esac
  1465. ac_abs_top_builddir=$ac_pwd
  1466. ac_abs_builddir=$ac_pwd$ac_dir_suffix
  1467. # for backward compatibility:
  1468. ac_top_builddir=$ac_top_build_prefix
  1469. case $srcdir in
  1470. .) # We are building in place.
  1471. ac_srcdir=.
  1472. ac_top_srcdir=$ac_top_builddir_sub
  1473. ac_abs_top_srcdir=$ac_pwd ;;
  1474. [\\/]* | ?:[\\/]* ) # Absolute name.
  1475. ac_srcdir=$srcdir$ac_dir_suffix;
  1476. ac_top_srcdir=$srcdir
  1477. ac_abs_top_srcdir=$srcdir ;;
  1478. *) # Relative name.
  1479. ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
  1480. ac_top_srcdir=$ac_top_build_prefix$srcdir
  1481. ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
  1482. esac
  1483. ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
  1484. cd "$ac_dir" || { ac_status=$?; continue; }
  1485. # Check for guested configure.
  1486. if test -f "$ac_srcdir/configure.gnu"; then
  1487. echo &&
  1488. $SHELL "$ac_srcdir/configure.gnu" --help=recursive
  1489. elif test -f "$ac_srcdir/configure"; then
  1490. echo &&
  1491. $SHELL "$ac_srcdir/configure" --help=recursive
  1492. else
  1493. $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
  1494. fi || ac_status=$?
  1495. cd "$ac_pwd" || { ac_status=$?; break; }
  1496. done
  1497. fi
  1498. test -n "$ac_init_help" && exit $ac_status
  1499. if $ac_init_version; then
  1500. cat <<\_ACEOF
  1501. aria2 configure 1.6.3
  1502. generated by GNU Autoconf 2.64
  1503. Copyright (C) 2009 Free Software Foundation, Inc.
  1504. This configure script is free software; the Free Software Foundation
  1505. gives unlimited permission to copy, distribute and modify it.
  1506. _ACEOF
  1507. exit
  1508. fi
  1509. ## ------------------------ ##
  1510. ## Autoconf initialization. ##
  1511. ## ------------------------ ##
  1512. # ac_fn_cxx_try_compile LINENO
  1513. # ----------------------------
  1514. # Try to compile conftest.$ac_ext, and return whether this succeeded.
  1515. ac_fn_cxx_try_compile ()
  1516. {
  1517. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1518. rm -f conftest.$ac_objext
  1519. if { { ac_try="$ac_compile"
  1520. case "(($ac_try" in
  1521. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1522. *) ac_try_echo=$ac_try;;
  1523. esac
  1524. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1525. $as_echo "$ac_try_echo"; } >&5
  1526. (eval "$ac_compile") 2>conftest.err
  1527. ac_status=$?
  1528. if test -s conftest.err; then
  1529. grep -v '^ *+' conftest.err >conftest.er1
  1530. cat conftest.er1 >&5
  1531. mv -f conftest.er1 conftest.err
  1532. fi
  1533. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1534. test $ac_status = 0; } && {
  1535. test -z "$ac_cxx_werror_flag" ||
  1536. test ! -s conftest.err
  1537. } && test -s conftest.$ac_objext; then :
  1538. ac_retval=0
  1539. else
  1540. $as_echo "$as_me: failed program was:" >&5
  1541. sed 's/^/| /' conftest.$ac_ext >&5
  1542. ac_retval=1
  1543. fi
  1544. eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
  1545. return $ac_retval
  1546. } # ac_fn_cxx_try_compile
  1547. # ac_fn_c_try_compile LINENO
  1548. # --------------------------
  1549. # Try to compile conftest.$ac_ext, and return whether this succeeded.
  1550. ac_fn_c_try_compile ()
  1551. {
  1552. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1553. rm -f conftest.$ac_objext
  1554. if { { ac_try="$ac_compile"
  1555. case "(($ac_try" in
  1556. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1557. *) ac_try_echo=$ac_try;;
  1558. esac
  1559. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1560. $as_echo "$ac_try_echo"; } >&5
  1561. (eval "$ac_compile") 2>conftest.err
  1562. ac_status=$?
  1563. if test -s conftest.err; then
  1564. grep -v '^ *+' conftest.err >conftest.er1
  1565. cat conftest.er1 >&5
  1566. mv -f conftest.er1 conftest.err
  1567. fi
  1568. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1569. test $ac_status = 0; } && {
  1570. test -z "$ac_c_werror_flag" ||
  1571. test ! -s conftest.err
  1572. } && test -s conftest.$ac_objext; then :
  1573. ac_retval=0
  1574. else
  1575. $as_echo "$as_me: failed program was:" >&5
  1576. sed 's/^/| /' conftest.$ac_ext >&5
  1577. ac_retval=1
  1578. fi
  1579. eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
  1580. return $ac_retval
  1581. } # ac_fn_c_try_compile
  1582. # ac_fn_cxx_try_cpp LINENO
  1583. # ------------------------
  1584. # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
  1585. ac_fn_cxx_try_cpp ()
  1586. {
  1587. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1588. if { { ac_try="$ac_cpp conftest.$ac_ext"
  1589. case "(($ac_try" in
  1590. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1591. *) ac_try_echo=$ac_try;;
  1592. esac
  1593. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1594. $as_echo "$ac_try_echo"; } >&5
  1595. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
  1596. ac_status=$?
  1597. if test -s conftest.err; then
  1598. grep -v '^ *+' conftest.err >conftest.er1
  1599. cat conftest.er1 >&5
  1600. mv -f conftest.er1 conftest.err
  1601. fi
  1602. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1603. test $ac_status = 0; } >/dev/null && {
  1604. test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
  1605. test ! -s conftest.err
  1606. }; then :
  1607. ac_retval=0
  1608. else
  1609. $as_echo "$as_me: failed program was:" >&5
  1610. sed 's/^/| /' conftest.$ac_ext >&5
  1611. ac_retval=1
  1612. fi
  1613. eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
  1614. return $ac_retval
  1615. } # ac_fn_cxx_try_cpp
  1616. # ac_fn_cxx_check_header_mongrel LINENO HEADER VAR INCLUDES
  1617. # ---------------------------------------------------------
  1618. # Tests whether HEADER exists, giving a warning if it cannot be compiled using
  1619. # the include files in INCLUDES and setting the cache variable VAR
  1620. # accordingly.
  1621. ac_fn_cxx_check_header_mongrel ()
  1622. {
  1623. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1624. if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
  1625. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  1626. $as_echo_n "checking for $2... " >&6; }
  1627. if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
  1628. $as_echo_n "(cached) " >&6
  1629. fi
  1630. eval ac_res=\$$3
  1631. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1632. $as_echo "$ac_res" >&6; }
  1633. else
  1634. # Is the header compilable?
  1635. { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
  1636. $as_echo_n "checking $2 usability... " >&6; }
  1637. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1638. /* end confdefs.h. */
  1639. $4
  1640. #include <$2>
  1641. _ACEOF
  1642. if ac_fn_cxx_try_compile "$LINENO"; then :
  1643. ac_header_compiler=yes
  1644. else
  1645. ac_header_compiler=no
  1646. fi
  1647. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  1648. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
  1649. $as_echo "$ac_header_compiler" >&6; }
  1650. # Is the header present?
  1651. { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
  1652. $as_echo_n "checking $2 presence... " >&6; }
  1653. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1654. /* end confdefs.h. */
  1655. #include <$2>
  1656. _ACEOF
  1657. if ac_fn_cxx_try_cpp "$LINENO"; then :
  1658. ac_header_preproc=yes
  1659. else
  1660. ac_header_preproc=no
  1661. fi
  1662. rm -f conftest.err conftest.$ac_ext
  1663. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
  1664. $as_echo "$ac_header_preproc" >&6; }
  1665. # So? What about this header?
  1666. case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in #((
  1667. yes:no: )
  1668. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
  1669. $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
  1670. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
  1671. $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
  1672. ;;
  1673. no:yes:* )
  1674. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
  1675. $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
  1676. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
  1677. $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
  1678. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
  1679. $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
  1680. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
  1681. $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
  1682. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
  1683. $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
  1684. ( cat <<\_ASBOX
  1685. ## ----------------------------------------------- ##
  1686. ## Report this to t-tujikawa@users.sourceforge.net ##
  1687. ## ----------------------------------------------- ##
  1688. _ASBOX
  1689. ) | sed "s/^/$as_me: WARNING: /" >&2
  1690. ;;
  1691. esac
  1692. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  1693. $as_echo_n "checking for $2... " >&6; }
  1694. if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
  1695. $as_echo_n "(cached) " >&6
  1696. else
  1697. eval "$3=\$ac_header_compiler"
  1698. fi
  1699. eval ac_res=\$$3
  1700. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1701. $as_echo "$ac_res" >&6; }
  1702. fi
  1703. eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
  1704. } # ac_fn_cxx_check_header_mongrel
  1705. # ac_fn_cxx_try_run LINENO
  1706. # ------------------------
  1707. # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
  1708. # that executables *can* be run.
  1709. ac_fn_cxx_try_run ()
  1710. {
  1711. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1712. if { { ac_try="$ac_link"
  1713. case "(($ac_try" in
  1714. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1715. *) ac_try_echo=$ac_try;;
  1716. esac
  1717. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1718. $as_echo "$ac_try_echo"; } >&5
  1719. (eval "$ac_link") 2>&5
  1720. ac_status=$?
  1721. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1722. test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
  1723. { { case "(($ac_try" in
  1724. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1725. *) ac_try_echo=$ac_try;;
  1726. esac
  1727. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1728. $as_echo "$ac_try_echo"; } >&5
  1729. (eval "$ac_try") 2>&5
  1730. ac_status=$?
  1731. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1732. test $ac_status = 0; }; }; then :
  1733. ac_retval=0
  1734. else
  1735. $as_echo "$as_me: program exited with status $ac_status" >&5
  1736. $as_echo "$as_me: failed program was:" >&5
  1737. sed 's/^/| /' conftest.$ac_ext >&5
  1738. ac_retval=$ac_status
  1739. fi
  1740. rm -rf conftest.dSYM conftest_ipa8_conftest.oo
  1741. eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
  1742. return $ac_retval
  1743. } # ac_fn_cxx_try_run
  1744. # ac_fn_cxx_check_header_compile LINENO HEADER VAR INCLUDES
  1745. # ---------------------------------------------------------
  1746. # Tests whether HEADER exists and can be compiled using the include files in
  1747. # INCLUDES, setting the cache variable VAR accordingly.
  1748. ac_fn_cxx_check_header_compile ()
  1749. {
  1750. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1751. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  1752. $as_echo_n "checking for $2... " >&6; }
  1753. if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
  1754. $as_echo_n "(cached) " >&6
  1755. else
  1756. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1757. /* end confdefs.h. */
  1758. $4
  1759. #include <$2>
  1760. _ACEOF
  1761. if ac_fn_cxx_try_compile "$LINENO"; then :
  1762. eval "$3=yes"
  1763. else
  1764. eval "$3=no"
  1765. fi
  1766. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  1767. fi
  1768. eval ac_res=\$$3
  1769. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1770. $as_echo "$ac_res" >&6; }
  1771. eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
  1772. } # ac_fn_cxx_check_header_compile
  1773. # ac_fn_cxx_try_link LINENO
  1774. # -------------------------
  1775. # Try to link conftest.$ac_ext, and return whether this succeeded.
  1776. ac_fn_cxx_try_link ()
  1777. {
  1778. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1779. rm -f conftest.$ac_objext conftest$ac_exeext
  1780. if { { ac_try="$ac_link"
  1781. case "(($ac_try" in
  1782. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1783. *) ac_try_echo=$ac_try;;
  1784. esac
  1785. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1786. $as_echo "$ac_try_echo"; } >&5
  1787. (eval "$ac_link") 2>conftest.err
  1788. ac_status=$?
  1789. if test -s conftest.err; then
  1790. grep -v '^ *+' conftest.err >conftest.er1
  1791. cat conftest.er1 >&5
  1792. mv -f conftest.er1 conftest.err
  1793. fi
  1794. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1795. test $ac_status = 0; } && {
  1796. test -z "$ac_cxx_werror_flag" ||
  1797. test ! -s conftest.err
  1798. } && test -s conftest$ac_exeext && {
  1799. test "$cross_compiling" = yes ||
  1800. $as_test_x conftest$ac_exeext
  1801. }; then :
  1802. ac_retval=0
  1803. else
  1804. $as_echo "$as_me: failed program was:" >&5
  1805. sed 's/^/| /' conftest.$ac_ext >&5
  1806. ac_retval=1
  1807. fi
  1808. # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
  1809. # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
  1810. # interfere with the next link command; also delete a directory that is
  1811. # left behind by Apple's compiler. We do this before executing the actions.
  1812. rm -rf conftest.dSYM conftest_ipa8_conftest.oo
  1813. eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
  1814. return $ac_retval
  1815. } # ac_fn_cxx_try_link
  1816. # ac_fn_cxx_check_func LINENO FUNC VAR
  1817. # ------------------------------------
  1818. # Tests whether FUNC exists, setting the cache variable VAR accordingly
  1819. ac_fn_cxx_check_func ()
  1820. {
  1821. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1822. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  1823. $as_echo_n "checking for $2... " >&6; }
  1824. if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
  1825. $as_echo_n "(cached) " >&6
  1826. else
  1827. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1828. /* end confdefs.h. */
  1829. /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
  1830. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  1831. #define $2 innocuous_$2
  1832. /* System header to define __stub macros and hopefully few prototypes,
  1833. which can conflict with char $2 (); below.
  1834. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  1835. <limits.h> exists even on freestanding compilers. */
  1836. #ifdef __STDC__
  1837. # include <limits.h>
  1838. #else
  1839. # include <assert.h>
  1840. #endif
  1841. #undef $2
  1842. /* Override any GCC internal prototype to avoid an error.
  1843. Use char because int might match the return type of a GCC
  1844. builtin and then its argument prototype would still apply. */
  1845. #ifdef __cplusplus
  1846. extern "C"
  1847. #endif
  1848. char $2 ();
  1849. /* The GNU C library defines this for functions which it implements
  1850. to always fail with ENOSYS. Some functions are actually named
  1851. something starting with __ and the normal name is an alias. */
  1852. #if defined __stub_$2 || defined __stub___$2
  1853. choke me
  1854. #endif
  1855. int
  1856. main ()
  1857. {
  1858. return $2 ();
  1859. ;
  1860. return 0;
  1861. }
  1862. _ACEOF
  1863. if ac_fn_cxx_try_link "$LINENO"; then :
  1864. eval "$3=yes"
  1865. else
  1866. eval "$3=no"
  1867. fi
  1868. rm -f core conftest.err conftest.$ac_objext \
  1869. conftest$ac_exeext conftest.$ac_ext
  1870. fi
  1871. eval ac_res=\$$3
  1872. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1873. $as_echo "$ac_res" >&6; }
  1874. eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
  1875. } # ac_fn_cxx_check_func
  1876. # ac_fn_cxx_check_type LINENO TYPE VAR INCLUDES
  1877. # ---------------------------------------------
  1878. # Tests whether TYPE exists after having included INCLUDES, setting cache
  1879. # variable VAR accordingly.
  1880. ac_fn_cxx_check_type ()
  1881. {
  1882. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1883. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  1884. $as_echo_n "checking for $2... " >&6; }
  1885. if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
  1886. $as_echo_n "(cached) " >&6
  1887. else
  1888. eval "$3=no"
  1889. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1890. /* end confdefs.h. */
  1891. $4
  1892. int
  1893. main ()
  1894. {
  1895. if (sizeof ($2))
  1896. return 0;
  1897. ;
  1898. return 0;
  1899. }
  1900. _ACEOF
  1901. if ac_fn_cxx_try_compile "$LINENO"; then :
  1902. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1903. /* end confdefs.h. */
  1904. $4
  1905. int
  1906. main ()
  1907. {
  1908. if (sizeof (($2)))
  1909. return 0;
  1910. ;
  1911. return 0;
  1912. }
  1913. _ACEOF
  1914. if ac_fn_cxx_try_compile "$LINENO"; then :
  1915. else
  1916. eval "$3=yes"
  1917. fi
  1918. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  1919. fi
  1920. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  1921. fi
  1922. eval ac_res=\$$3
  1923. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1924. $as_echo "$ac_res" >&6; }
  1925. eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
  1926. } # ac_fn_cxx_check_type
  1927. # ac_fn_c_find_intX_t LINENO BITS VAR
  1928. # -----------------------------------
  1929. # Finds a signed integer type with width BITS, setting cache variable VAR
  1930. # accordingly.
  1931. ac_fn_c_find_intX_t ()
  1932. {
  1933. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1934. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for int$2_t" >&5
  1935. $as_echo_n "checking for int$2_t... " >&6; }
  1936. if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
  1937. $as_echo_n "(cached) " >&6
  1938. else
  1939. eval "$3=no"
  1940. for ac_type in int$2_t 'int' 'long int' \
  1941. 'long long int' 'short int' 'signed char'; do
  1942. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1943. /* end confdefs.h. */
  1944. $ac_includes_default
  1945. int
  1946. main ()
  1947. {
  1948. static int test_array [1 - 2 * !(0 < ($ac_type) (((($ac_type) 1 << ($2 - 2)) - 1) * 2 + 1))];
  1949. test_array [0] = 0
  1950. ;
  1951. return 0;
  1952. }
  1953. _ACEOF
  1954. if ac_fn_cxx_try_compile "$LINENO"; then :
  1955. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1956. /* end confdefs.h. */
  1957. $ac_includes_default
  1958. int
  1959. main ()
  1960. {
  1961. static int test_array [1 - 2 * !(($ac_type) (((($ac_type) 1 << ($2 - 2)) - 1) * 2 + 1)
  1962. < ($ac_type) (((($ac_type) 1 << ($2 - 2)) - 1) * 2 + 2))];
  1963. test_array [0] = 0
  1964. ;
  1965. return 0;
  1966. }
  1967. _ACEOF
  1968. if ac_fn_cxx_try_compile "$LINENO"; then :
  1969. else
  1970. case $ac_type in #(
  1971. int$2_t) :
  1972. eval "$3=yes" ;; #(
  1973. *) :
  1974. eval "$3=\$ac_type" ;;
  1975. esac
  1976. fi
  1977. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  1978. fi
  1979. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  1980. eval as_val=\$$3
  1981. if test "x$as_val" = x""no; then :
  1982. else
  1983. break
  1984. fi
  1985. done
  1986. fi
  1987. eval ac_res=\$$3
  1988. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1989. $as_echo "$ac_res" >&6; }
  1990. eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
  1991. } # ac_fn_c_find_intX_t
  1992. # ac_fn_c_find_uintX_t LINENO BITS VAR
  1993. # ------------------------------------
  1994. # Finds an unsigned integer type with width BITS, setting cache variable VAR
  1995. # accordingly.
  1996. ac_fn_c_find_uintX_t ()
  1997. {
  1998. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1999. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uint$2_t" >&5
  2000. $as_echo_n "checking for uint$2_t... " >&6; }
  2001. if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
  2002. $as_echo_n "(cached) " >&6
  2003. else
  2004. eval "$3=no"
  2005. for ac_type in uint$2_t 'unsigned int' 'unsigned long int' \
  2006. 'unsigned long long int' 'unsigned short int' 'unsigned char'; do
  2007. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2008. /* end confdefs.h. */
  2009. $ac_includes_default
  2010. int
  2011. main ()
  2012. {
  2013. static int test_array [1 - 2 * !(($ac_type) -1 >> ($2 - 1) == 1)];
  2014. test_array [0] = 0
  2015. ;
  2016. return 0;
  2017. }
  2018. _ACEOF
  2019. if ac_fn_cxx_try_compile "$LINENO"; then :
  2020. case $ac_type in #(
  2021. uint$2_t) :
  2022. eval "$3=yes" ;; #(
  2023. *) :
  2024. eval "$3=\$ac_type" ;;
  2025. esac
  2026. fi
  2027. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  2028. eval as_val=\$$3
  2029. if test "x$as_val" = x""no; then :
  2030. else
  2031. break
  2032. fi
  2033. done
  2034. fi
  2035. eval ac_res=\$$3
  2036. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  2037. $as_echo "$ac_res" >&6; }
  2038. eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
  2039. } # ac_fn_c_find_uintX_t
  2040. # ac_fn_cxx_compute_int LINENO EXPR VAR INCLUDES
  2041. # ----------------------------------------------
  2042. # Tries to find the compile-time value of EXPR in a program that includes
  2043. # INCLUDES, setting VAR accordingly. Returns whether the value could be
  2044. # computed
  2045. ac_fn_cxx_compute_int ()
  2046. {
  2047. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  2048. if test "$cross_compiling" = yes; then
  2049. # Depending upon the size, compute the lo and hi bounds.
  2050. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2051. /* end confdefs.h. */
  2052. $4
  2053. int
  2054. main ()
  2055. {
  2056. static int test_array [1 - 2 * !(($2) >= 0)];
  2057. test_array [0] = 0
  2058. ;
  2059. return 0;
  2060. }
  2061. _ACEOF
  2062. if ac_fn_cxx_try_compile "$LINENO"; then :
  2063. ac_lo=0 ac_mid=0
  2064. while :; do
  2065. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2066. /* end confdefs.h. */
  2067. $4
  2068. int
  2069. main ()
  2070. {
  2071. static int test_array [1 - 2 * !(($2) <= $ac_mid)];
  2072. test_array [0] = 0
  2073. ;
  2074. return 0;
  2075. }
  2076. _ACEOF
  2077. if ac_fn_cxx_try_compile "$LINENO"; then :
  2078. ac_hi=$ac_mid; break
  2079. else
  2080. as_fn_arith $ac_mid + 1 && ac_lo=$as_val
  2081. if test $ac_lo -le $ac_mid; then
  2082. ac_lo= ac_hi=
  2083. break
  2084. fi
  2085. as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
  2086. fi
  2087. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  2088. done
  2089. else
  2090. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2091. /* end confdefs.h. */
  2092. $4
  2093. int
  2094. main ()
  2095. {
  2096. static int test_array [1 - 2 * !(($2) < 0)];
  2097. test_array [0] = 0
  2098. ;
  2099. return 0;
  2100. }
  2101. _ACEOF
  2102. if ac_fn_cxx_try_compile "$LINENO"; then :
  2103. ac_hi=-1 ac_mid=-1
  2104. while :; do
  2105. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2106. /* end confdefs.h. */
  2107. $4
  2108. int
  2109. main ()
  2110. {
  2111. static int test_array [1 - 2 * !(($2) >= $ac_mid)];
  2112. test_array [0] = 0
  2113. ;
  2114. return 0;
  2115. }
  2116. _ACEOF
  2117. if ac_fn_cxx_try_compile "$LINENO"; then :
  2118. ac_lo=$ac_mid; break
  2119. else
  2120. as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
  2121. if test $ac_mid -le $ac_hi; then
  2122. ac_lo= ac_hi=
  2123. break
  2124. fi
  2125. as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
  2126. fi
  2127. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  2128. done
  2129. else
  2130. ac_lo= ac_hi=
  2131. fi
  2132. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  2133. fi
  2134. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  2135. # Binary search between lo and hi bounds.
  2136. while test "x$ac_lo" != "x$ac_hi"; do
  2137. as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
  2138. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2139. /* end confdefs.h. */
  2140. $4
  2141. int
  2142. main ()
  2143. {
  2144. static int test_array [1 - 2 * !(($2) <= $ac_mid)];
  2145. test_array [0] = 0
  2146. ;
  2147. return 0;
  2148. }
  2149. _ACEOF
  2150. if ac_fn_cxx_try_compile "$LINENO"; then :
  2151. ac_hi=$ac_mid
  2152. else
  2153. as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
  2154. fi
  2155. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  2156. done
  2157. case $ac_lo in #((
  2158. ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
  2159. '') ac_retval=1 ;;
  2160. esac
  2161. else
  2162. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2163. /* end confdefs.h. */
  2164. $4
  2165. static long int longval () { return $2; }
  2166. static unsigned long int ulongval () { return $2; }
  2167. #include <stdio.h>
  2168. #include <stdlib.h>
  2169. int
  2170. main ()
  2171. {
  2172. FILE *f = fopen ("conftest.val", "w");
  2173. if (! f)
  2174. return 1;
  2175. if (($2) < 0)
  2176. {
  2177. long int i = longval ();
  2178. if (i != ($2))
  2179. return 1;
  2180. fprintf (f, "%ld", i);
  2181. }
  2182. else
  2183. {
  2184. unsigned long int i = ulongval ();
  2185. if (i != ($2))
  2186. return 1;
  2187. fprintf (f, "%lu", i);
  2188. }
  2189. /* Do not output a trailing newline, as this causes \r\n confusion
  2190. on some platforms. */
  2191. return ferror (f) || fclose (f) != 0;
  2192. ;
  2193. return 0;
  2194. }
  2195. _ACEOF
  2196. if ac_fn_cxx_try_run "$LINENO"; then :
  2197. echo >>conftest.val; read $3 <conftest.val; ac_retval=0
  2198. else
  2199. ac_retval=1
  2200. fi
  2201. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  2202. conftest.$ac_objext conftest.beam conftest.$ac_ext
  2203. rm -f conftest.val
  2204. fi
  2205. eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
  2206. return $ac_retval
  2207. } # ac_fn_cxx_compute_int
  2208. # ac_fn_cxx_check_member LINENO AGGR MEMBER VAR INCLUDES
  2209. # ------------------------------------------------------
  2210. # Tries to find if the field MEMBER exists in type AGGR, after including
  2211. # INCLUDES, setting cache variable VAR accordingly.
  2212. ac_fn_cxx_check_member ()
  2213. {
  2214. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  2215. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
  2216. $as_echo_n "checking for $2.$3... " >&6; }
  2217. if { as_var=$4; eval "test \"\${$as_var+set}\" = set"; }; then :
  2218. $as_echo_n "(cached) " >&6
  2219. else
  2220. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2221. /* end confdefs.h. */
  2222. $5
  2223. int
  2224. main ()
  2225. {
  2226. static $2 ac_aggr;
  2227. if (ac_aggr.$3)
  2228. return 0;
  2229. ;
  2230. return 0;
  2231. }
  2232. _ACEOF
  2233. if ac_fn_cxx_try_compile "$LINENO"; then :
  2234. eval "$4=yes"
  2235. else
  2236. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2237. /* end confdefs.h. */
  2238. $5
  2239. int
  2240. main ()
  2241. {
  2242. static $2 ac_aggr;
  2243. if (sizeof ac_aggr.$3)
  2244. return 0;
  2245. ;
  2246. return 0;
  2247. }
  2248. _ACEOF
  2249. if ac_fn_cxx_try_compile "$LINENO"; then :
  2250. eval "$4=yes"
  2251. else
  2252. eval "$4=no"
  2253. fi
  2254. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  2255. fi
  2256. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  2257. fi
  2258. eval ac_res=\$$4
  2259. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  2260. $as_echo "$ac_res" >&6; }
  2261. eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
  2262. } # ac_fn_cxx_check_member
  2263. cat >config.log <<_ACEOF
  2264. This file contains any messages produced by compilers while
  2265. running configure, to aid debugging if configure makes a mistake.
  2266. It was created by aria2 $as_me 1.6.3, which was
  2267. generated by GNU Autoconf 2.64. Invocation command line was
  2268. $ $0 $@
  2269. _ACEOF
  2270. exec 5>>config.log
  2271. {
  2272. cat <<_ASUNAME
  2273. ## --------- ##
  2274. ## Platform. ##
  2275. ## --------- ##
  2276. hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
  2277. uname -m = `(uname -m) 2>/dev/null || echo unknown`
  2278. uname -r = `(uname -r) 2>/dev/null || echo unknown`
  2279. uname -s = `(uname -s) 2>/dev/null || echo unknown`
  2280. uname -v = `(uname -v) 2>/dev/null || echo unknown`
  2281. /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
  2282. /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
  2283. /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
  2284. /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
  2285. /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
  2286. /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
  2287. /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
  2288. /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
  2289. /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
  2290. _ASUNAME
  2291. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2292. for as_dir in $PATH
  2293. do
  2294. IFS=$as_save_IFS
  2295. test -z "$as_dir" && as_dir=.
  2296. $as_echo "PATH: $as_dir"
  2297. done
  2298. IFS=$as_save_IFS
  2299. } >&5
  2300. cat >&5 <<_ACEOF
  2301. ## ----------- ##
  2302. ## Core tests. ##
  2303. ## ----------- ##
  2304. _ACEOF
  2305. # Keep a trace of the command line.
  2306. # Strip out --no-create and --no-recursion so they do not pile up.
  2307. # Strip out --silent because we don't want to record it for future runs.
  2308. # Also quote any args containing shell meta-characters.
  2309. # Make two passes to allow for proper duplicate-argument suppression.
  2310. ac_configure_args=
  2311. ac_configure_args0=
  2312. ac_configure_args1=
  2313. ac_must_keep_next=false
  2314. for ac_pass in 1 2
  2315. do
  2316. for ac_arg
  2317. do
  2318. case $ac_arg in
  2319. -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
  2320. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  2321. | -silent | --silent | --silen | --sile | --sil)
  2322. continue ;;
  2323. *\'*)
  2324. ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
  2325. esac
  2326. case $ac_pass in
  2327. 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
  2328. 2)
  2329. as_fn_append ac_configure_args1 " '$ac_arg'"
  2330. if test $ac_must_keep_next = true; then
  2331. ac_must_keep_next=false # Got value, back to normal.
  2332. else
  2333. case $ac_arg in
  2334. *=* | --config-cache | -C | -disable-* | --disable-* \
  2335. | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
  2336. | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
  2337. | -with-* | --with-* | -without-* | --without-* | --x)
  2338. case "$ac_configure_args0 " in
  2339. "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
  2340. esac
  2341. ;;
  2342. -* ) ac_must_keep_next=true ;;
  2343. esac
  2344. fi
  2345. as_fn_append ac_configure_args " '$ac_arg'"
  2346. ;;
  2347. esac
  2348. done
  2349. done
  2350. { ac_configure_args0=; unset ac_configure_args0;}
  2351. { ac_configure_args1=; unset ac_configure_args1;}
  2352. # When interrupted or exit'd, cleanup temporary files, and complete
  2353. # config.log. We remove comments because anyway the quotes in there
  2354. # would cause problems or look ugly.
  2355. # WARNING: Use '\'' to represent an apostrophe within the trap.
  2356. # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
  2357. trap 'exit_status=$?
  2358. # Save into config.log some information that might help in debugging.
  2359. {
  2360. echo
  2361. cat <<\_ASBOX
  2362. ## ---------------- ##
  2363. ## Cache variables. ##
  2364. ## ---------------- ##
  2365. _ASBOX
  2366. echo
  2367. # The following way of writing the cache mishandles newlines in values,
  2368. (
  2369. for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
  2370. eval ac_val=\$$ac_var
  2371. case $ac_val in #(
  2372. *${as_nl}*)
  2373. case $ac_var in #(
  2374. *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
  2375. $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
  2376. esac
  2377. case $ac_var in #(
  2378. _ | IFS | as_nl) ;; #(
  2379. BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
  2380. *) { eval $ac_var=; unset $ac_var;} ;;
  2381. esac ;;
  2382. esac
  2383. done
  2384. (set) 2>&1 |
  2385. case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
  2386. *${as_nl}ac_space=\ *)
  2387. sed -n \
  2388. "s/'\''/'\''\\\\'\'''\''/g;
  2389. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
  2390. ;; #(
  2391. *)
  2392. sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
  2393. ;;
  2394. esac |
  2395. sort
  2396. )
  2397. echo
  2398. cat <<\_ASBOX
  2399. ## ----------------- ##
  2400. ## Output variables. ##
  2401. ## ----------------- ##
  2402. _ASBOX
  2403. echo
  2404. for ac_var in $ac_subst_vars
  2405. do
  2406. eval ac_val=\$$ac_var
  2407. case $ac_val in
  2408. *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
  2409. esac
  2410. $as_echo "$ac_var='\''$ac_val'\''"
  2411. done | sort
  2412. echo
  2413. if test -n "$ac_subst_files"; then
  2414. cat <<\_ASBOX
  2415. ## ------------------- ##
  2416. ## File substitutions. ##
  2417. ## ------------------- ##
  2418. _ASBOX
  2419. echo
  2420. for ac_var in $ac_subst_files
  2421. do
  2422. eval ac_val=\$$ac_var
  2423. case $ac_val in
  2424. *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
  2425. esac
  2426. $as_echo "$ac_var='\''$ac_val'\''"
  2427. done | sort
  2428. echo
  2429. fi
  2430. if test -s confdefs.h; then
  2431. cat <<\_ASBOX
  2432. ## ----------- ##
  2433. ## confdefs.h. ##
  2434. ## ----------- ##
  2435. _ASBOX
  2436. echo
  2437. cat confdefs.h
  2438. echo
  2439. fi
  2440. test "$ac_signal" != 0 &&
  2441. $as_echo "$as_me: caught signal $ac_signal"
  2442. $as_echo "$as_me: exit $exit_status"
  2443. } >&5
  2444. rm -f core *.core core.conftest.* &&
  2445. rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
  2446. exit $exit_status
  2447. ' 0
  2448. for ac_signal in 1 2 13 15; do
  2449. trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
  2450. done
  2451. ac_signal=0
  2452. # confdefs.h avoids OS command line length limits that DEFS can exceed.
  2453. rm -f -r conftest* confdefs.h
  2454. $as_echo "/* confdefs.h */" > confdefs.h
  2455. # Predefined preprocessor variables.
  2456. cat >>confdefs.h <<_ACEOF
  2457. #define PACKAGE_NAME "$PACKAGE_NAME"
  2458. _ACEOF
  2459. cat >>confdefs.h <<_ACEOF
  2460. #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
  2461. _ACEOF
  2462. cat >>confdefs.h <<_ACEOF
  2463. #define PACKAGE_VERSION "$PACKAGE_VERSION"
  2464. _ACEOF
  2465. cat >>confdefs.h <<_ACEOF
  2466. #define PACKAGE_STRING "$PACKAGE_STRING"
  2467. _ACEOF
  2468. cat >>confdefs.h <<_ACEOF
  2469. #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
  2470. _ACEOF
  2471. cat >>confdefs.h <<_ACEOF
  2472. #define PACKAGE_URL "$PACKAGE_URL"
  2473. _ACEOF
  2474. # Let the site file select an alternate cache file if it wants to.
  2475. # Prefer an explicitly selected file to automatically selected ones.
  2476. ac_site_file1=NONE
  2477. ac_site_file2=NONE
  2478. if test -n "$CONFIG_SITE"; then
  2479. ac_site_file1=$CONFIG_SITE
  2480. elif test "x$prefix" != xNONE; then
  2481. ac_site_file1=$prefix/share/config.site
  2482. ac_site_file2=$prefix/etc/config.site
  2483. else
  2484. ac_site_file1=$ac_default_prefix/share/config.site
  2485. ac_site_file2=$ac_default_prefix/etc/config.site
  2486. fi
  2487. for ac_site_file in "$ac_site_file1" "$ac_site_file2"
  2488. do
  2489. test "x$ac_site_file" = xNONE && continue
  2490. if test -r "$ac_site_file"; then
  2491. { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
  2492. $as_echo "$as_me: loading site script $ac_site_file" >&6;}
  2493. sed 's/^/| /' "$ac_site_file" >&5
  2494. . "$ac_site_file"
  2495. fi
  2496. done
  2497. if test -r "$cache_file"; then
  2498. # Some versions of bash will fail to source /dev/null (special
  2499. # files actually), so we avoid doing that.
  2500. if test -f "$cache_file"; then
  2501. { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
  2502. $as_echo "$as_me: loading cache $cache_file" >&6;}
  2503. case $cache_file in
  2504. [\\/]* | ?:[\\/]* ) . "$cache_file";;
  2505. *) . "./$cache_file";;
  2506. esac
  2507. fi
  2508. else
  2509. { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
  2510. $as_echo "$as_me: creating cache $cache_file" >&6;}
  2511. >$cache_file
  2512. fi
  2513. gt_needs="$gt_needs "
  2514. as_fn_append ac_header_list " sys/time.h"
  2515. as_fn_append ac_header_list " unistd.h"
  2516. as_fn_append ac_func_list " alarm"
  2517. # Check that the precious variables saved in the cache have kept the same
  2518. # value.
  2519. ac_cache_corrupted=false
  2520. for ac_var in $ac_precious_vars; do
  2521. eval ac_old_set=\$ac_cv_env_${ac_var}_set
  2522. eval ac_new_set=\$ac_env_${ac_var}_set
  2523. eval ac_old_val=\$ac_cv_env_${ac_var}_value
  2524. eval ac_new_val=\$ac_env_${ac_var}_value
  2525. case $ac_old_set,$ac_new_set in
  2526. set,)
  2527. { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
  2528. $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
  2529. ac_cache_corrupted=: ;;
  2530. ,set)
  2531. { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
  2532. $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
  2533. ac_cache_corrupted=: ;;
  2534. ,);;
  2535. *)
  2536. if test "x$ac_old_val" != "x$ac_new_val"; then
  2537. # differences in whitespace do not lead to failure.
  2538. ac_old_val_w=`echo x $ac_old_val`
  2539. ac_new_val_w=`echo x $ac_new_val`
  2540. if test "$ac_old_val_w" != "$ac_new_val_w"; then
  2541. { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
  2542. $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
  2543. ac_cache_corrupted=:
  2544. else
  2545. { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
  2546. $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
  2547. eval $ac_var=\$ac_old_val
  2548. fi
  2549. { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
  2550. $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
  2551. { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
  2552. $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
  2553. fi;;
  2554. esac
  2555. # Pass precious variables to config.status.
  2556. if test "$ac_new_set" = set; then
  2557. case $ac_new_val in
  2558. *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
  2559. *) ac_arg=$ac_var=$ac_new_val ;;
  2560. esac
  2561. case " $ac_configure_args " in
  2562. *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
  2563. *) as_fn_append ac_configure_args " '$ac_arg'" ;;
  2564. esac
  2565. fi
  2566. done
  2567. if $ac_cache_corrupted; then
  2568. { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  2569. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  2570. { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
  2571. $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
  2572. as_fn_error "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
  2573. fi
  2574. ## -------------------- ##
  2575. ## Main body of script. ##
  2576. ## -------------------- ##
  2577. ac_ext=c
  2578. ac_cpp='$CPP $CPPFLAGS'
  2579. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  2580. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  2581. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  2582. ac_aux_dir=
  2583. for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
  2584. for ac_t in install-sh install.sh shtool; do
  2585. if test -f "$ac_dir/$ac_t"; then
  2586. ac_aux_dir=$ac_dir
  2587. ac_install_sh="$ac_aux_dir/$ac_t -c"
  2588. break 2
  2589. fi
  2590. done
  2591. done
  2592. if test -z "$ac_aux_dir"; then
  2593. as_fn_error "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
  2594. fi
  2595. # These three variables are undocumented and unsupported,
  2596. # and are intended to be withdrawn in a future Autoconf release.
  2597. # They can cause serious problems if a builder's source tree is in a directory
  2598. # whose full name contains unusual characters.
  2599. ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
  2600. ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
  2601. ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
  2602. # Make sure we can run config.sub.
  2603. $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
  2604. as_fn_error "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
  2605. { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
  2606. $as_echo_n "checking build system type... " >&6; }
  2607. if test "${ac_cv_build+set}" = set; then :
  2608. $as_echo_n "(cached) " >&6
  2609. else
  2610. ac_build_alias=$build_alias
  2611. test "x$ac_build_alias" = x &&
  2612. ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
  2613. test "x$ac_build_alias" = x &&
  2614. as_fn_error "cannot guess build type; you must specify one" "$LINENO" 5
  2615. ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
  2616. as_fn_error "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
  2617. fi
  2618. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
  2619. $as_echo "$ac_cv_build" >&6; }
  2620. case $ac_cv_build in
  2621. *-*-*) ;;
  2622. *) as_fn_error "invalid value of canonical build" "$LINENO" 5;;
  2623. esac
  2624. build=$ac_cv_build
  2625. ac_save_IFS=$IFS; IFS='-'
  2626. set x $ac_cv_build
  2627. shift
  2628. build_cpu=$1
  2629. build_vendor=$2
  2630. shift; shift
  2631. # Remember, the first character of IFS is used to create $*,
  2632. # except with old shells:
  2633. build_os=$*
  2634. IFS=$ac_save_IFS
  2635. case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
  2636. { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
  2637. $as_echo_n "checking host system type... " >&6; }
  2638. if test "${ac_cv_host+set}" = set; then :
  2639. $as_echo_n "(cached) " >&6
  2640. else
  2641. if test "x$host_alias" = x; then
  2642. ac_cv_host=$ac_cv_build
  2643. else
  2644. ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
  2645. as_fn_error "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
  2646. fi
  2647. fi
  2648. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
  2649. $as_echo "$ac_cv_host" >&6; }
  2650. case $ac_cv_host in
  2651. *-*-*) ;;
  2652. *) as_fn_error "invalid value of canonical host" "$LINENO" 5;;
  2653. esac
  2654. host=$ac_cv_host
  2655. ac_save_IFS=$IFS; IFS='-'
  2656. set x $ac_cv_host
  2657. shift
  2658. host_cpu=$1
  2659. host_vendor=$2
  2660. shift; shift
  2661. # Remember, the first character of IFS is used to create $*,
  2662. # except with old shells:
  2663. host_os=$*
  2664. IFS=$ac_save_IFS
  2665. case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
  2666. { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
  2667. $as_echo_n "checking target system type... " >&6; }
  2668. if test "${ac_cv_target+set}" = set; then :
  2669. $as_echo_n "(cached) " >&6
  2670. else
  2671. if test "x$target_alias" = x; then
  2672. ac_cv_target=$ac_cv_host
  2673. else
  2674. ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
  2675. as_fn_error "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
  2676. fi
  2677. fi
  2678. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
  2679. $as_echo "$ac_cv_target" >&6; }
  2680. case $ac_cv_target in
  2681. *-*-*) ;;
  2682. *) as_fn_error "invalid value of canonical target" "$LINENO" 5;;
  2683. esac
  2684. target=$ac_cv_target
  2685. ac_save_IFS=$IFS; IFS='-'
  2686. set x $ac_cv_target
  2687. shift
  2688. target_cpu=$1
  2689. target_vendor=$2
  2690. shift; shift
  2691. # Remember, the first character of IFS is used to create $*,
  2692. # except with old shells:
  2693. target_os=$*
  2694. IFS=$ac_save_IFS
  2695. case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
  2696. # The aliases save the names the user supplied, while $host etc.
  2697. # will get canonicalized.
  2698. test -n "$target_alias" &&
  2699. test "$program_prefix$program_suffix$program_transform_name" = \
  2700. NONENONEs,x,x, &&
  2701. program_prefix=${target_alias}-
  2702. am__api_version='1.11'
  2703. # Find a good install program. We prefer a C program (faster),
  2704. # so one script is as good as another. But avoid the broken or
  2705. # incompatible versions:
  2706. # SysV /etc/install, /usr/sbin/install
  2707. # SunOS /usr/etc/install
  2708. # IRIX /sbin/install
  2709. # AIX /bin/install
  2710. # AmigaOS /C/install, which installs bootblocks on floppy discs
  2711. # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
  2712. # AFS /usr/afsws/bin/install, which mishandles nonexistent args
  2713. # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
  2714. # OS/2's system install, which has a completely different semantic
  2715. # ./install, which can be erroneously created by make from ./install.sh.
  2716. # Reject install programs that cannot install multiple files.
  2717. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
  2718. $as_echo_n "checking for a BSD-compatible install... " >&6; }
  2719. if test -z "$INSTALL"; then
  2720. if test "${ac_cv_path_install+set}" = set; then :
  2721. $as_echo_n "(cached) " >&6
  2722. else
  2723. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2724. for as_dir in $PATH
  2725. do
  2726. IFS=$as_save_IFS
  2727. test -z "$as_dir" && as_dir=.
  2728. # Account for people who put trailing slashes in PATH elements.
  2729. case $as_dir/ in #((
  2730. ./ | .// | /[cC]/* | \
  2731. /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
  2732. ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
  2733. /usr/ucb/* ) ;;
  2734. *)
  2735. # OSF1 and SCO ODT 3.0 have their own names for install.
  2736. # Don't use installbsd from OSF since it installs stuff as root
  2737. # by default.
  2738. for ac_prog in ginstall scoinst install; do
  2739. for ac_exec_ext in '' $ac_executable_extensions; do
  2740. if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
  2741. if test $ac_prog = install &&
  2742. grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
  2743. # AIX install. It has an incompatible calling convention.
  2744. :
  2745. elif test $ac_prog = install &&
  2746. grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
  2747. # program-specific install script used by HP pwplus--don't use.
  2748. :
  2749. else
  2750. rm -rf conftest.one conftest.two conftest.dir
  2751. echo one > conftest.one
  2752. echo two > conftest.two
  2753. mkdir conftest.dir
  2754. if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
  2755. test -s conftest.one && test -s conftest.two &&
  2756. test -s conftest.dir/conftest.one &&
  2757. test -s conftest.dir/conftest.two
  2758. then
  2759. ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
  2760. break 3
  2761. fi
  2762. fi
  2763. fi
  2764. done
  2765. done
  2766. ;;
  2767. esac
  2768. done
  2769. IFS=$as_save_IFS
  2770. rm -rf conftest.one conftest.two conftest.dir
  2771. fi
  2772. if test "${ac_cv_path_install+set}" = set; then
  2773. INSTALL=$ac_cv_path_install
  2774. else
  2775. # As a last resort, use the slow shell script. Don't cache a
  2776. # value for INSTALL within a source directory, because that will
  2777. # break other packages using the cache if that directory is
  2778. # removed, or if the value is a relative name.
  2779. INSTALL=$ac_install_sh
  2780. fi
  2781. fi
  2782. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
  2783. $as_echo "$INSTALL" >&6; }
  2784. # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
  2785. # It thinks the first close brace ends the variable substitution.
  2786. test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
  2787. test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
  2788. test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
  2789. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
  2790. $as_echo_n "checking whether build environment is sane... " >&6; }
  2791. # Just in case
  2792. sleep 1
  2793. echo timestamp > conftest.file
  2794. # Reject unsafe characters in $srcdir or the absolute working directory
  2795. # name. Accept space and tab only in the latter.
  2796. am_lf='
  2797. '
  2798. case `pwd` in
  2799. *[\\\"\#\$\&\'\`$am_lf]*)
  2800. as_fn_error "unsafe absolute working directory name" "$LINENO" 5;;
  2801. esac
  2802. case $srcdir in
  2803. *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
  2804. as_fn_error "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;;
  2805. esac
  2806. # Do `set' in a subshell so we don't clobber the current shell's
  2807. # arguments. Must try -L first in case configure is actually a
  2808. # symlink; some systems play weird games with the mod time of symlinks
  2809. # (eg FreeBSD returns the mod time of the symlink's containing
  2810. # directory).
  2811. if (
  2812. set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
  2813. if test "$*" = "X"; then
  2814. # -L didn't work.
  2815. set X `ls -t "$srcdir/configure" conftest.file`
  2816. fi
  2817. rm -f conftest.file
  2818. if test "$*" != "X $srcdir/configure conftest.file" \
  2819. && test "$*" != "X conftest.file $srcdir/configure"; then
  2820. # If neither matched, then we have a broken ls. This can happen
  2821. # if, for instance, CONFIG_SHELL is bash and it inherits a
  2822. # broken ls alias from the environment. This has actually
  2823. # happened. Such a system could not be considered "sane".
  2824. as_fn_error "ls -t appears to fail. Make sure there is not a broken
  2825. alias in your environment" "$LINENO" 5
  2826. fi
  2827. test "$2" = conftest.file
  2828. )
  2829. then
  2830. # Ok.
  2831. :
  2832. else
  2833. as_fn_error "newly created file is older than distributed files!
  2834. Check your system clock" "$LINENO" 5
  2835. fi
  2836. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  2837. $as_echo "yes" >&6; }
  2838. test "$program_prefix" != NONE &&
  2839. program_transform_name="s&^&$program_prefix&;$program_transform_name"
  2840. # Use a double $ so make ignores it.
  2841. test "$program_suffix" != NONE &&
  2842. program_transform_name="s&\$&$program_suffix&;$program_transform_name"
  2843. # Double any \ or $.
  2844. # By default was `s,x,x', remove it if useless.
  2845. ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
  2846. program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
  2847. # expand $ac_aux_dir to an absolute path
  2848. am_aux_dir=`cd $ac_aux_dir && pwd`
  2849. if test x"${MISSING+set}" != xset; then
  2850. case $am_aux_dir in
  2851. *\ * | *\ *)
  2852. MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
  2853. *)
  2854. MISSING="\${SHELL} $am_aux_dir/missing" ;;
  2855. esac
  2856. fi
  2857. # Use eval to expand $SHELL
  2858. if eval "$MISSING --run true"; then
  2859. am_missing_run="$MISSING --run "
  2860. else
  2861. am_missing_run=
  2862. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
  2863. $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
  2864. fi
  2865. if test x"${install_sh}" != xset; then
  2866. case $am_aux_dir in
  2867. *\ * | *\ *)
  2868. install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
  2869. *)
  2870. install_sh="\${SHELL} $am_aux_dir/install-sh"
  2871. esac
  2872. fi
  2873. # Installed binaries are usually stripped using `strip' when the user
  2874. # run `make install-strip'. However `strip' might not be the right
  2875. # tool to use in cross-compilation environments, therefore Automake
  2876. # will honor the `STRIP' environment variable to overrule this program.
  2877. if test "$cross_compiling" != no; then
  2878. if test -n "$ac_tool_prefix"; then
  2879. # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
  2880. set dummy ${ac_tool_prefix}strip; ac_word=$2
  2881. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2882. $as_echo_n "checking for $ac_word... " >&6; }
  2883. if test "${ac_cv_prog_STRIP+set}" = set; then :
  2884. $as_echo_n "(cached) " >&6
  2885. else
  2886. if test -n "$STRIP"; then
  2887. ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
  2888. else
  2889. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2890. for as_dir in $PATH
  2891. do
  2892. IFS=$as_save_IFS
  2893. test -z "$as_dir" && as_dir=.
  2894. for ac_exec_ext in '' $ac_executable_extensions; do
  2895. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  2896. ac_cv_prog_STRIP="${ac_tool_prefix}strip"
  2897. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2898. break 2
  2899. fi
  2900. done
  2901. done
  2902. IFS=$as_save_IFS
  2903. fi
  2904. fi
  2905. STRIP=$ac_cv_prog_STRIP
  2906. if test -n "$STRIP"; then
  2907. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
  2908. $as_echo "$STRIP" >&6; }
  2909. else
  2910. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2911. $as_echo "no" >&6; }
  2912. fi
  2913. fi
  2914. if test -z "$ac_cv_prog_STRIP"; then
  2915. ac_ct_STRIP=$STRIP
  2916. # Extract the first word of "strip", so it can be a program name with args.
  2917. set dummy strip; ac_word=$2
  2918. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2919. $as_echo_n "checking for $ac_word... " >&6; }
  2920. if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
  2921. $as_echo_n "(cached) " >&6
  2922. else
  2923. if test -n "$ac_ct_STRIP"; then
  2924. ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
  2925. else
  2926. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2927. for as_dir in $PATH
  2928. do
  2929. IFS=$as_save_IFS
  2930. test -z "$as_dir" && as_dir=.
  2931. for ac_exec_ext in '' $ac_executable_extensions; do
  2932. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  2933. ac_cv_prog_ac_ct_STRIP="strip"
  2934. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2935. break 2
  2936. fi
  2937. done
  2938. done
  2939. IFS=$as_save_IFS
  2940. fi
  2941. fi
  2942. ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
  2943. if test -n "$ac_ct_STRIP"; then
  2944. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
  2945. $as_echo "$ac_ct_STRIP" >&6; }
  2946. else
  2947. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2948. $as_echo "no" >&6; }
  2949. fi
  2950. if test "x$ac_ct_STRIP" = x; then
  2951. STRIP=":"
  2952. else
  2953. case $cross_compiling:$ac_tool_warned in
  2954. yes:)
  2955. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  2956. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  2957. ac_tool_warned=yes ;;
  2958. esac
  2959. STRIP=$ac_ct_STRIP
  2960. fi
  2961. else
  2962. STRIP="$ac_cv_prog_STRIP"
  2963. fi
  2964. fi
  2965. INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
  2966. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
  2967. $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
  2968. if test -z "$MKDIR_P"; then
  2969. if test "${ac_cv_path_mkdir+set}" = set; then :
  2970. $as_echo_n "(cached) " >&6
  2971. else
  2972. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2973. for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
  2974. do
  2975. IFS=$as_save_IFS
  2976. test -z "$as_dir" && as_dir=.
  2977. for ac_prog in mkdir gmkdir; do
  2978. for ac_exec_ext in '' $ac_executable_extensions; do
  2979. { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
  2980. case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
  2981. 'mkdir (GNU coreutils) '* | \
  2982. 'mkdir (coreutils) '* | \
  2983. 'mkdir (fileutils) '4.1*)
  2984. ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
  2985. break 3;;
  2986. esac
  2987. done
  2988. done
  2989. done
  2990. IFS=$as_save_IFS
  2991. fi
  2992. if test "${ac_cv_path_mkdir+set}" = set; then
  2993. MKDIR_P="$ac_cv_path_mkdir -p"
  2994. else
  2995. # As a last resort, use the slow shell script. Don't cache a
  2996. # value for MKDIR_P within a source directory, because that will
  2997. # break other packages using the cache if that directory is
  2998. # removed, or if the value is a relative name.
  2999. test -d ./--version && rmdir ./--version
  3000. MKDIR_P="$ac_install_sh -d"
  3001. fi
  3002. fi
  3003. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
  3004. $as_echo "$MKDIR_P" >&6; }
  3005. mkdir_p="$MKDIR_P"
  3006. case $mkdir_p in
  3007. [\\/$]* | ?:[\\/]*) ;;
  3008. */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
  3009. esac
  3010. for ac_prog in gawk mawk nawk awk
  3011. do
  3012. # Extract the first word of "$ac_prog", so it can be a program name with args.
  3013. set dummy $ac_prog; ac_word=$2
  3014. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3015. $as_echo_n "checking for $ac_word... " >&6; }
  3016. if test "${ac_cv_prog_AWK+set}" = set; then :
  3017. $as_echo_n "(cached) " >&6
  3018. else
  3019. if test -n "$AWK"; then
  3020. ac_cv_prog_AWK="$AWK" # Let the user override the test.
  3021. else
  3022. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3023. for as_dir in $PATH
  3024. do
  3025. IFS=$as_save_IFS
  3026. test -z "$as_dir" && as_dir=.
  3027. for ac_exec_ext in '' $ac_executable_extensions; do
  3028. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  3029. ac_cv_prog_AWK="$ac_prog"
  3030. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  3031. break 2
  3032. fi
  3033. done
  3034. done
  3035. IFS=$as_save_IFS
  3036. fi
  3037. fi
  3038. AWK=$ac_cv_prog_AWK
  3039. if test -n "$AWK"; then
  3040. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
  3041. $as_echo "$AWK" >&6; }
  3042. else
  3043. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3044. $as_echo "no" >&6; }
  3045. fi
  3046. test -n "$AWK" && break
  3047. done
  3048. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
  3049. $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
  3050. set x ${MAKE-make}
  3051. ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
  3052. if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then :
  3053. $as_echo_n "(cached) " >&6
  3054. else
  3055. cat >conftest.make <<\_ACEOF
  3056. SHELL = /bin/sh
  3057. all:
  3058. @echo '@@@%%%=$(MAKE)=@@@%%%'
  3059. _ACEOF
  3060. # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
  3061. case `${MAKE-make} -f conftest.make 2>/dev/null` in
  3062. *@@@%%%=?*=@@@%%%*)
  3063. eval ac_cv_prog_make_${ac_make}_set=yes;;
  3064. *)
  3065. eval ac_cv_prog_make_${ac_make}_set=no;;
  3066. esac
  3067. rm -f conftest.make
  3068. fi
  3069. if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
  3070. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  3071. $as_echo "yes" >&6; }
  3072. SET_MAKE=
  3073. else
  3074. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3075. $as_echo "no" >&6; }
  3076. SET_MAKE="MAKE=${MAKE-make}"
  3077. fi
  3078. rm -rf .tst 2>/dev/null
  3079. mkdir .tst 2>/dev/null
  3080. if test -d .tst; then
  3081. am__leading_dot=.
  3082. else
  3083. am__leading_dot=_
  3084. fi
  3085. rmdir .tst 2>/dev/null
  3086. if test "`cd $srcdir && pwd`" != "`pwd`"; then
  3087. # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
  3088. # is not polluted with repeated "-I."
  3089. am__isrc=' -I$(srcdir)'
  3090. # test to see if srcdir already configured
  3091. if test -f $srcdir/config.status; then
  3092. as_fn_error "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
  3093. fi
  3094. fi
  3095. # test whether we have cygpath
  3096. if test -z "$CYGPATH_W"; then
  3097. if (cygpath --version) >/dev/null 2>/dev/null; then
  3098. CYGPATH_W='cygpath -w'
  3099. else
  3100. CYGPATH_W=echo
  3101. fi
  3102. fi
  3103. # Define the identity of the package.
  3104. PACKAGE='aria2'
  3105. VERSION='1.6.3'
  3106. cat >>confdefs.h <<_ACEOF
  3107. #define PACKAGE "$PACKAGE"
  3108. _ACEOF
  3109. cat >>confdefs.h <<_ACEOF
  3110. #define VERSION "$VERSION"
  3111. _ACEOF
  3112. # Some tools Automake needs.
  3113. ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
  3114. AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
  3115. AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
  3116. AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
  3117. MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
  3118. # We need awk for the "check" target. The system "awk" is bad on
  3119. # some platforms.
  3120. # Always define AMTAR for backward compatibility.
  3121. AMTAR=${AMTAR-"${am_missing_run}tar"}
  3122. am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
  3123. # Check whether --with-cppunit-prefix was given.
  3124. if test "${with_cppunit_prefix+set}" = set; then :
  3125. withval=$with_cppunit_prefix; cppunit_config_prefix="$withval"
  3126. else
  3127. cppunit_config_prefix=""
  3128. fi
  3129. # Check whether --with-cppunit-exec-prefix was given.
  3130. if test "${with_cppunit_exec_prefix+set}" = set; then :
  3131. withval=$with_cppunit_exec_prefix; cppunit_config_exec_prefix="$withval"
  3132. else
  3133. cppunit_config_exec_prefix=""
  3134. fi
  3135. if test x$cppunit_config_exec_prefix != x ; then
  3136. cppunit_config_args="$cppunit_config_args --exec-prefix=$cppunit_config_exec_prefix"
  3137. if test x${CPPUNIT_CONFIG+set} != xset ; then
  3138. CPPUNIT_CONFIG=$cppunit_config_exec_prefix/bin/cppunit-config
  3139. fi
  3140. fi
  3141. if test x$cppunit_config_prefix != x ; then
  3142. cppunit_config_args="$cppunit_config_args --prefix=$cppunit_config_prefix"
  3143. if test x${CPPUNIT_CONFIG+set} != xset ; then
  3144. CPPUNIT_CONFIG=$cppunit_config_prefix/bin/cppunit-config
  3145. fi
  3146. fi
  3147. # Extract the first word of "cppunit-config", so it can be a program name with args.
  3148. set dummy cppunit-config; ac_word=$2
  3149. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3150. $as_echo_n "checking for $ac_word... " >&6; }
  3151. if test "${ac_cv_path_CPPUNIT_CONFIG+set}" = set; then :
  3152. $as_echo_n "(cached) " >&6
  3153. else
  3154. case $CPPUNIT_CONFIG in
  3155. [\\/]* | ?:[\\/]*)
  3156. ac_cv_path_CPPUNIT_CONFIG="$CPPUNIT_CONFIG" # Let the user override the test with a path.
  3157. ;;
  3158. *)
  3159. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3160. for as_dir in $PATH
  3161. do
  3162. IFS=$as_save_IFS
  3163. test -z "$as_dir" && as_dir=.
  3164. for ac_exec_ext in '' $ac_executable_extensions; do
  3165. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  3166. ac_cv_path_CPPUNIT_CONFIG="$as_dir/$ac_word$ac_exec_ext"
  3167. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  3168. break 2
  3169. fi
  3170. done
  3171. done
  3172. IFS=$as_save_IFS
  3173. test -z "$ac_cv_path_CPPUNIT_CONFIG" && ac_cv_path_CPPUNIT_CONFIG="no"
  3174. ;;
  3175. esac
  3176. fi
  3177. CPPUNIT_CONFIG=$ac_cv_path_CPPUNIT_CONFIG
  3178. if test -n "$CPPUNIT_CONFIG"; then
  3179. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPPUNIT_CONFIG" >&5
  3180. $as_echo "$CPPUNIT_CONFIG" >&6; }
  3181. else
  3182. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3183. $as_echo "no" >&6; }
  3184. fi
  3185. cppunit_version_min=1.10.2
  3186. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Cppunit - version >= $cppunit_version_min" >&5
  3187. $as_echo_n "checking for Cppunit - version >= $cppunit_version_min... " >&6; }
  3188. no_cppunit=""
  3189. if test "$CPPUNIT_CONFIG" = "no" ; then
  3190. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3191. $as_echo "no" >&6; }
  3192. no_cppunit=yes
  3193. else
  3194. CPPUNIT_CFLAGS=`$CPPUNIT_CONFIG --cflags`
  3195. CPPUNIT_LIBS=`$CPPUNIT_CONFIG --libs`
  3196. cppunit_version=`$CPPUNIT_CONFIG --version`
  3197. cppunit_major_version=`echo $cppunit_version | \
  3198. sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
  3199. cppunit_minor_version=`echo $cppunit_version | \
  3200. sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
  3201. cppunit_micro_version=`echo $cppunit_version | \
  3202. sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
  3203. cppunit_major_min=`echo $cppunit_version_min | \
  3204. sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
  3205. if test "x${cppunit_major_min}" = "x" ; then
  3206. cppunit_major_min=0
  3207. fi
  3208. cppunit_minor_min=`echo $cppunit_version_min | \
  3209. sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
  3210. if test "x${cppunit_minor_min}" = "x" ; then
  3211. cppunit_minor_min=0
  3212. fi
  3213. cppunit_micro_min=`echo $cppunit_version_min | \
  3214. sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
  3215. if test "x${cppunit_micro_min}" = "x" ; then
  3216. cppunit_micro_min=0
  3217. fi
  3218. cppunit_version_proper=`expr \
  3219. $cppunit_major_version \> $cppunit_major_min \| \
  3220. $cppunit_major_version \= $cppunit_major_min \& \
  3221. $cppunit_minor_version \> $cppunit_minor_min \| \
  3222. $cppunit_major_version \= $cppunit_major_min \& \
  3223. $cppunit_minor_version \= $cppunit_minor_min \& \
  3224. $cppunit_micro_version \>= $cppunit_micro_min `
  3225. if test "$cppunit_version_proper" = "1" ; then
  3226. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cppunit_major_version.$cppunit_minor_version.$cppunit_micro_version" >&5
  3227. $as_echo "$cppunit_major_version.$cppunit_minor_version.$cppunit_micro_version" >&6; }
  3228. else
  3229. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3230. $as_echo "no" >&6; }
  3231. no_cppunit=yes
  3232. fi
  3233. fi
  3234. if test "x$no_cppunit" = x ; then
  3235. :
  3236. else
  3237. CPPUNIT_CFLAGS=""
  3238. CPPUNIT_LIBS=""
  3239. :
  3240. fi
  3241. ac_config_headers="$ac_config_headers config.h"
  3242. case "$target" in
  3243. *mingw*|*cygwin*)
  3244. WINSOCK_LIBS="-lws2_32 -lpthread"
  3245. ;;
  3246. esac
  3247. cat >>confdefs.h <<_ACEOF
  3248. #define TARGET "$target"
  3249. _ACEOF
  3250. # Checks for arguments.
  3251. # Check whether --with-gnutls was given.
  3252. if test "${with_gnutls+set}" = set; then :
  3253. withval=$with_gnutls; with_gnutls=$withval
  3254. else
  3255. with_gnutls=yes
  3256. fi
  3257. # Check whether --with-openssl was given.
  3258. if test "${with_openssl+set}" = set; then :
  3259. withval=$with_openssl; with_openssl=$withval
  3260. else
  3261. with_openssl=yes
  3262. fi
  3263. # Check whether --with-sqlite3 was given.
  3264. if test "${with_sqlite3+set}" = set; then :
  3265. withval=$with_sqlite3; with_sqlite3=$withval
  3266. else
  3267. with_sqlite3=yes
  3268. fi
  3269. # Check whether --with-libxml2 was given.
  3270. if test "${with_libxml2+set}" = set; then :
  3271. withval=$with_libxml2; with_libxml2=$withval
  3272. else
  3273. with_libxml2=yes
  3274. fi
  3275. # Check whether --with-libexpat was given.
  3276. if test "${with_libexpat+set}" = set; then :
  3277. withval=$with_libexpat; with_libexpat=$withval
  3278. else
  3279. with_libexpat=yes
  3280. fi
  3281. # Check whether --with-libcares was given.
  3282. if test "${with_libcares+set}" = set; then :
  3283. withval=$with_libcares; with_libcares=$withval
  3284. else
  3285. with_libcares=yes
  3286. fi
  3287. # Check whether --with-libz was given.
  3288. if test "${with_libz+set}" = set; then :
  3289. withval=$with_libz; with_libz=$withval
  3290. else
  3291. with_libz=yes
  3292. fi
  3293. # Check whether --enable-bittorrent was given.
  3294. if test "${enable_bittorrent+set}" = set; then :
  3295. enableval=$enable_bittorrent; enable_bittorrent=$enableval
  3296. else
  3297. enable_bittorrent=yes
  3298. fi
  3299. # Check whether --enable-metalink was given.
  3300. if test "${enable_metalink+set}" = set; then :
  3301. enableval=$enable_metalink; enable_metalink=$enableval
  3302. else
  3303. enable_metalink=yes
  3304. fi
  3305. # Check whether --enable-epoll was given.
  3306. if test "${enable_epoll+set}" = set; then :
  3307. enableval=$enable_epoll; enable_epoll=$enableval
  3308. else
  3309. enable_epoll=yes
  3310. fi
  3311. # Check whether --with-ca-bundle was given.
  3312. if test "${with_ca_bundle+set}" = set; then :
  3313. withval=$with_ca_bundle; ca_bundle=$withval
  3314. else
  3315. ca_bundle=""
  3316. fi
  3317. # Checks for programs.
  3318. ac_ext=cpp
  3319. ac_cpp='$CXXCPP $CPPFLAGS'
  3320. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  3321. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  3322. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  3323. if test -z "$CXX"; then
  3324. if test -n "$CCC"; then
  3325. CXX=$CCC
  3326. else
  3327. if test -n "$ac_tool_prefix"; then
  3328. for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
  3329. do
  3330. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  3331. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  3332. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3333. $as_echo_n "checking for $ac_word... " >&6; }
  3334. if test "${ac_cv_prog_CXX+set}" = set; then :
  3335. $as_echo_n "(cached) " >&6
  3336. else
  3337. if test -n "$CXX"; then
  3338. ac_cv_prog_CXX="$CXX" # Let the user override the test.
  3339. else
  3340. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3341. for as_dir in $PATH
  3342. do
  3343. IFS=$as_save_IFS
  3344. test -z "$as_dir" && as_dir=.
  3345. for ac_exec_ext in '' $ac_executable_extensions; do
  3346. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  3347. ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
  3348. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  3349. break 2
  3350. fi
  3351. done
  3352. done
  3353. IFS=$as_save_IFS
  3354. fi
  3355. fi
  3356. CXX=$ac_cv_prog_CXX
  3357. if test -n "$CXX"; then
  3358. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
  3359. $as_echo "$CXX" >&6; }
  3360. else
  3361. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3362. $as_echo "no" >&6; }
  3363. fi
  3364. test -n "$CXX" && break
  3365. done
  3366. fi
  3367. if test -z "$CXX"; then
  3368. ac_ct_CXX=$CXX
  3369. for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
  3370. do
  3371. # Extract the first word of "$ac_prog", so it can be a program name with args.
  3372. set dummy $ac_prog; ac_word=$2
  3373. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3374. $as_echo_n "checking for $ac_word... " >&6; }
  3375. if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then :
  3376. $as_echo_n "(cached) " >&6
  3377. else
  3378. if test -n "$ac_ct_CXX"; then
  3379. ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
  3380. else
  3381. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3382. for as_dir in $PATH
  3383. do
  3384. IFS=$as_save_IFS
  3385. test -z "$as_dir" && as_dir=.
  3386. for ac_exec_ext in '' $ac_executable_extensions; do
  3387. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  3388. ac_cv_prog_ac_ct_CXX="$ac_prog"
  3389. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  3390. break 2
  3391. fi
  3392. done
  3393. done
  3394. IFS=$as_save_IFS
  3395. fi
  3396. fi
  3397. ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
  3398. if test -n "$ac_ct_CXX"; then
  3399. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
  3400. $as_echo "$ac_ct_CXX" >&6; }
  3401. else
  3402. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3403. $as_echo "no" >&6; }
  3404. fi
  3405. test -n "$ac_ct_CXX" && break
  3406. done
  3407. if test "x$ac_ct_CXX" = x; then
  3408. CXX="g++"
  3409. else
  3410. case $cross_compiling:$ac_tool_warned in
  3411. yes:)
  3412. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  3413. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  3414. ac_tool_warned=yes ;;
  3415. esac
  3416. CXX=$ac_ct_CXX
  3417. fi
  3418. fi
  3419. fi
  3420. fi
  3421. # Provide some information about the compiler.
  3422. $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
  3423. set X $ac_compile
  3424. ac_compiler=$2
  3425. for ac_option in --version -v -V -qversion; do
  3426. { { ac_try="$ac_compiler $ac_option >&5"
  3427. case "(($ac_try" in
  3428. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3429. *) ac_try_echo=$ac_try;;
  3430. esac
  3431. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3432. $as_echo "$ac_try_echo"; } >&5
  3433. (eval "$ac_compiler $ac_option >&5") 2>conftest.err
  3434. ac_status=$?
  3435. if test -s conftest.err; then
  3436. sed '10a\
  3437. ... rest of stderr output deleted ...
  3438. 10q' conftest.err >conftest.er1
  3439. cat conftest.er1 >&5
  3440. rm -f conftest.er1 conftest.err
  3441. fi
  3442. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3443. test $ac_status = 0; }
  3444. done
  3445. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3446. /* end confdefs.h. */
  3447. #include <stdio.h>
  3448. int
  3449. main ()
  3450. {
  3451. FILE *f = fopen ("conftest.out", "w");
  3452. return ferror (f) || fclose (f) != 0;
  3453. ;
  3454. return 0;
  3455. }
  3456. _ACEOF
  3457. ac_clean_files_save=$ac_clean_files
  3458. ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out conftest.out"
  3459. # Try to create an executable without -o first, disregard a.out.
  3460. # It will help us diagnose broken compilers, and finding out an intuition
  3461. # of exeext.
  3462. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler default output file name" >&5
  3463. $as_echo_n "checking for C++ compiler default output file name... " >&6; }
  3464. ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
  3465. # The possible output files:
  3466. ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
  3467. ac_rmfiles=
  3468. for ac_file in $ac_files
  3469. do
  3470. case $ac_file in
  3471. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
  3472. * ) ac_rmfiles="$ac_rmfiles $ac_file";;
  3473. esac
  3474. done
  3475. rm -f $ac_rmfiles
  3476. if { { ac_try="$ac_link_default"
  3477. case "(($ac_try" in
  3478. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3479. *) ac_try_echo=$ac_try;;
  3480. esac
  3481. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3482. $as_echo "$ac_try_echo"; } >&5
  3483. (eval "$ac_link_default") 2>&5
  3484. ac_status=$?
  3485. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3486. test $ac_status = 0; }; then :
  3487. # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
  3488. # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
  3489. # in a Makefile. We should not override ac_cv_exeext if it was cached,
  3490. # so that the user can short-circuit this test for compilers unknown to
  3491. # Autoconf.
  3492. for ac_file in $ac_files ''
  3493. do
  3494. test -f "$ac_file" || continue
  3495. case $ac_file in
  3496. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
  3497. ;;
  3498. [ab].out )
  3499. # We found the default executable, but exeext='' is most
  3500. # certainly right.
  3501. break;;
  3502. *.* )
  3503. if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
  3504. then :; else
  3505. ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
  3506. fi
  3507. # We set ac_cv_exeext here because the later test for it is not
  3508. # safe: cross compilers may not add the suffix if given an `-o'
  3509. # argument, so we may need to know it at that point already.
  3510. # Even if this section looks crufty: it has the advantage of
  3511. # actually working.
  3512. break;;
  3513. * )
  3514. break;;
  3515. esac
  3516. done
  3517. test "$ac_cv_exeext" = no && ac_cv_exeext=
  3518. else
  3519. ac_file=''
  3520. fi
  3521. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
  3522. $as_echo "$ac_file" >&6; }
  3523. if test -z "$ac_file"; then :
  3524. $as_echo "$as_me: failed program was:" >&5
  3525. sed 's/^/| /' conftest.$ac_ext >&5
  3526. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  3527. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  3528. { as_fn_set_status 77
  3529. as_fn_error "C++ compiler cannot create executables
  3530. See \`config.log' for more details." "$LINENO" 5; }; }
  3531. fi
  3532. ac_exeext=$ac_cv_exeext
  3533. # Check that the compiler produces executables we can run. If not, either
  3534. # the compiler is broken, or we cross compile.
  3535. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C++ compiler works" >&5
  3536. $as_echo_n "checking whether the C++ compiler works... " >&6; }
  3537. # If not cross compiling, check that we can run a simple program.
  3538. if test "$cross_compiling" != yes; then
  3539. if { ac_try='./$ac_file'
  3540. { { case "(($ac_try" in
  3541. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3542. *) ac_try_echo=$ac_try;;
  3543. esac
  3544. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3545. $as_echo "$ac_try_echo"; } >&5
  3546. (eval "$ac_try") 2>&5
  3547. ac_status=$?
  3548. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3549. test $ac_status = 0; }; }; then
  3550. cross_compiling=no
  3551. else
  3552. if test "$cross_compiling" = maybe; then
  3553. cross_compiling=yes
  3554. else
  3555. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  3556. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  3557. as_fn_error "cannot run C++ compiled programs.
  3558. If you meant to cross compile, use \`--host'.
  3559. See \`config.log' for more details." "$LINENO" 5; }
  3560. fi
  3561. fi
  3562. fi
  3563. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  3564. $as_echo "yes" >&6; }
  3565. rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out conftest.out
  3566. ac_clean_files=$ac_clean_files_save
  3567. # Check that the compiler produces executables we can run. If not, either
  3568. # the compiler is broken, or we cross compile.
  3569. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
  3570. $as_echo_n "checking whether we are cross compiling... " >&6; }
  3571. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
  3572. $as_echo "$cross_compiling" >&6; }
  3573. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
  3574. $as_echo_n "checking for suffix of executables... " >&6; }
  3575. if { { ac_try="$ac_link"
  3576. case "(($ac_try" in
  3577. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3578. *) ac_try_echo=$ac_try;;
  3579. esac
  3580. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3581. $as_echo "$ac_try_echo"; } >&5
  3582. (eval "$ac_link") 2>&5
  3583. ac_status=$?
  3584. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3585. test $ac_status = 0; }; then :
  3586. # If both `conftest.exe' and `conftest' are `present' (well, observable)
  3587. # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
  3588. # work properly (i.e., refer to `conftest.exe'), while it won't with
  3589. # `rm'.
  3590. for ac_file in conftest.exe conftest conftest.*; do
  3591. test -f "$ac_file" || continue
  3592. case $ac_file in
  3593. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
  3594. *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
  3595. break;;
  3596. * ) break;;
  3597. esac
  3598. done
  3599. else
  3600. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  3601. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  3602. as_fn_error "cannot compute suffix of executables: cannot compile and link
  3603. See \`config.log' for more details." "$LINENO" 5; }
  3604. fi
  3605. rm -f conftest$ac_cv_exeext
  3606. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
  3607. $as_echo "$ac_cv_exeext" >&6; }
  3608. rm -f conftest.$ac_ext
  3609. EXEEXT=$ac_cv_exeext
  3610. ac_exeext=$EXEEXT
  3611. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
  3612. $as_echo_n "checking for suffix of object files... " >&6; }
  3613. if test "${ac_cv_objext+set}" = set; then :
  3614. $as_echo_n "(cached) " >&6
  3615. else
  3616. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3617. /* end confdefs.h. */
  3618. int
  3619. main ()
  3620. {
  3621. ;
  3622. return 0;
  3623. }
  3624. _ACEOF
  3625. rm -f conftest.o conftest.obj
  3626. if { { ac_try="$ac_compile"
  3627. case "(($ac_try" in
  3628. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3629. *) ac_try_echo=$ac_try;;
  3630. esac
  3631. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3632. $as_echo "$ac_try_echo"; } >&5
  3633. (eval "$ac_compile") 2>&5
  3634. ac_status=$?
  3635. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3636. test $ac_status = 0; }; then :
  3637. for ac_file in conftest.o conftest.obj conftest.*; do
  3638. test -f "$ac_file" || continue;
  3639. case $ac_file in
  3640. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
  3641. *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
  3642. break;;
  3643. esac
  3644. done
  3645. else
  3646. $as_echo "$as_me: failed program was:" >&5
  3647. sed 's/^/| /' conftest.$ac_ext >&5
  3648. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  3649. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  3650. as_fn_error "cannot compute suffix of object files: cannot compile
  3651. See \`config.log' for more details." "$LINENO" 5; }
  3652. fi
  3653. rm -f conftest.$ac_cv_objext conftest.$ac_ext
  3654. fi
  3655. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
  3656. $as_echo "$ac_cv_objext" >&6; }
  3657. OBJEXT=$ac_cv_objext
  3658. ac_objext=$OBJEXT
  3659. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
  3660. $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
  3661. if test "${ac_cv_cxx_compiler_gnu+set}" = set; then :
  3662. $as_echo_n "(cached) " >&6
  3663. else
  3664. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3665. /* end confdefs.h. */
  3666. int
  3667. main ()
  3668. {
  3669. #ifndef __GNUC__
  3670. choke me
  3671. #endif
  3672. ;
  3673. return 0;
  3674. }
  3675. _ACEOF
  3676. if ac_fn_cxx_try_compile "$LINENO"; then :
  3677. ac_compiler_gnu=yes
  3678. else
  3679. ac_compiler_gnu=no
  3680. fi
  3681. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3682. ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
  3683. fi
  3684. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
  3685. $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
  3686. if test $ac_compiler_gnu = yes; then
  3687. GXX=yes
  3688. else
  3689. GXX=
  3690. fi
  3691. ac_test_CXXFLAGS=${CXXFLAGS+set}
  3692. ac_save_CXXFLAGS=$CXXFLAGS
  3693. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
  3694. $as_echo_n "checking whether $CXX accepts -g... " >&6; }
  3695. if test "${ac_cv_prog_cxx_g+set}" = set; then :
  3696. $as_echo_n "(cached) " >&6
  3697. else
  3698. ac_save_cxx_werror_flag=$ac_cxx_werror_flag
  3699. ac_cxx_werror_flag=yes
  3700. ac_cv_prog_cxx_g=no
  3701. CXXFLAGS="-g"
  3702. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3703. /* end confdefs.h. */
  3704. int
  3705. main ()
  3706. {
  3707. ;
  3708. return 0;
  3709. }
  3710. _ACEOF
  3711. if ac_fn_cxx_try_compile "$LINENO"; then :
  3712. ac_cv_prog_cxx_g=yes
  3713. else
  3714. CXXFLAGS=""
  3715. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3716. /* end confdefs.h. */
  3717. int
  3718. main ()
  3719. {
  3720. ;
  3721. return 0;
  3722. }
  3723. _ACEOF
  3724. if ac_fn_cxx_try_compile "$LINENO"; then :
  3725. else
  3726. ac_cxx_werror_flag=$ac_save_cxx_werror_flag
  3727. CXXFLAGS="-g"
  3728. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3729. /* end confdefs.h. */
  3730. int
  3731. main ()
  3732. {
  3733. ;
  3734. return 0;
  3735. }
  3736. _ACEOF
  3737. if ac_fn_cxx_try_compile "$LINENO"; then :
  3738. ac_cv_prog_cxx_g=yes
  3739. fi
  3740. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3741. fi
  3742. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3743. fi
  3744. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3745. ac_cxx_werror_flag=$ac_save_cxx_werror_flag
  3746. fi
  3747. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
  3748. $as_echo "$ac_cv_prog_cxx_g" >&6; }
  3749. if test "$ac_test_CXXFLAGS" = set; then
  3750. CXXFLAGS=$ac_save_CXXFLAGS
  3751. elif test $ac_cv_prog_cxx_g = yes; then
  3752. if test "$GXX" = yes; then
  3753. CXXFLAGS="-g -O2"
  3754. else
  3755. CXXFLAGS="-g"
  3756. fi
  3757. else
  3758. if test "$GXX" = yes; then
  3759. CXXFLAGS="-O2"
  3760. else
  3761. CXXFLAGS=
  3762. fi
  3763. fi
  3764. ac_ext=c
  3765. ac_cpp='$CPP $CPPFLAGS'
  3766. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  3767. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  3768. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  3769. DEPDIR="${am__leading_dot}deps"
  3770. ac_config_commands="$ac_config_commands depfiles"
  3771. am_make=${MAKE-make}
  3772. cat > confinc << 'END'
  3773. am__doit:
  3774. @echo this is the am__doit target
  3775. .PHONY: am__doit
  3776. END
  3777. # If we don't find an include directive, just comment out the code.
  3778. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
  3779. $as_echo_n "checking for style of include used by $am_make... " >&6; }
  3780. am__include="#"
  3781. am__quote=
  3782. _am_result=none
  3783. # First try GNU make style include.
  3784. echo "include confinc" > confmf
  3785. # Ignore all kinds of additional output from `make'.
  3786. case `$am_make -s -f confmf 2> /dev/null` in #(
  3787. *the\ am__doit\ target*)
  3788. am__include=include
  3789. am__quote=
  3790. _am_result=GNU
  3791. ;;
  3792. esac
  3793. # Now try BSD make style include.
  3794. if test "$am__include" = "#"; then
  3795. echo '.include "confinc"' > confmf
  3796. case `$am_make -s -f confmf 2> /dev/null` in #(
  3797. *the\ am__doit\ target*)
  3798. am__include=.include
  3799. am__quote="\""
  3800. _am_result=BSD
  3801. ;;
  3802. esac
  3803. fi
  3804. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
  3805. $as_echo "$_am_result" >&6; }
  3806. rm -f confinc confmf
  3807. # Check whether --enable-dependency-tracking was given.
  3808. if test "${enable_dependency_tracking+set}" = set; then :
  3809. enableval=$enable_dependency_tracking;
  3810. fi
  3811. if test "x$enable_dependency_tracking" != xno; then
  3812. am_depcomp="$ac_aux_dir/depcomp"
  3813. AMDEPBACKSLASH='\'
  3814. fi
  3815. if test "x$enable_dependency_tracking" != xno; then
  3816. AMDEP_TRUE=
  3817. AMDEP_FALSE='#'
  3818. else
  3819. AMDEP_TRUE='#'
  3820. AMDEP_FALSE=
  3821. fi
  3822. depcc="$CXX" am_compiler_list=
  3823. { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
  3824. $as_echo_n "checking dependency style of $depcc... " >&6; }
  3825. if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then :
  3826. $as_echo_n "(cached) " >&6
  3827. else
  3828. if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
  3829. # We make a subdir and do the tests there. Otherwise we can end up
  3830. # making bogus files that we don't know about and never remove. For
  3831. # instance it was reported that on HP-UX the gcc test will end up
  3832. # making a dummy file named `D' -- because `-MD' means `put the output
  3833. # in D'.
  3834. mkdir conftest.dir
  3835. # Copy depcomp to subdir because otherwise we won't find it if we're
  3836. # using a relative directory.
  3837. cp "$am_depcomp" conftest.dir
  3838. cd conftest.dir
  3839. # We will build objects and dependencies in a subdirectory because
  3840. # it helps to detect inapplicable dependency modes. For instance
  3841. # both Tru64's cc and ICC support -MD to output dependencies as a
  3842. # side effect of compilation, but ICC will put the dependencies in
  3843. # the current directory while Tru64 will put them in the object
  3844. # directory.
  3845. mkdir sub
  3846. am_cv_CXX_dependencies_compiler_type=none
  3847. if test "$am_compiler_list" = ""; then
  3848. am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
  3849. fi
  3850. am__universal=false
  3851. case " $depcc " in #(
  3852. *\ -arch\ *\ -arch\ *) am__universal=true ;;
  3853. esac
  3854. for depmode in $am_compiler_list; do
  3855. # Setup a source with many dependencies, because some compilers
  3856. # like to wrap large dependency lists on column 80 (with \), and
  3857. # we should not choose a depcomp mode which is confused by this.
  3858. #
  3859. # We need to recreate these files for each test, as the compiler may
  3860. # overwrite some of them when testing with obscure command lines.
  3861. # This happens at least with the AIX C compiler.
  3862. : > sub/conftest.c
  3863. for i in 1 2 3 4 5 6; do
  3864. echo '#include "conftst'$i'.h"' >> sub/conftest.c
  3865. # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
  3866. # Solaris 8's {/usr,}/bin/sh.
  3867. touch sub/conftst$i.h
  3868. done
  3869. echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
  3870. # We check with `-c' and `-o' for the sake of the "dashmstdout"
  3871. # mode. It turns out that the SunPro C++ compiler does not properly
  3872. # handle `-M -o', and we need to detect this. Also, some Intel
  3873. # versions had trouble with output in subdirs
  3874. am__obj=sub/conftest.${OBJEXT-o}
  3875. am__minus_obj="-o $am__obj"
  3876. case $depmode in
  3877. gcc)
  3878. # This depmode causes a compiler race in universal mode.
  3879. test "$am__universal" = false || continue
  3880. ;;
  3881. nosideeffect)
  3882. # after this tag, mechanisms are not by side-effect, so they'll
  3883. # only be used when explicitly requested
  3884. if test "x$enable_dependency_tracking" = xyes; then
  3885. continue
  3886. else
  3887. break
  3888. fi
  3889. ;;
  3890. msvisualcpp | msvcmsys)
  3891. # This compiler won't grok `-c -o', but also, the minuso test has
  3892. # not run yet. These depmodes are late enough in the game, and
  3893. # so weak that their functioning should not be impacted.
  3894. am__obj=conftest.${OBJEXT-o}
  3895. am__minus_obj=
  3896. ;;
  3897. none) break ;;
  3898. esac
  3899. if depmode=$depmode \
  3900. source=sub/conftest.c object=$am__obj \
  3901. depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
  3902. $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
  3903. >/dev/null 2>conftest.err &&
  3904. grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
  3905. grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
  3906. grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
  3907. ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
  3908. # icc doesn't choke on unknown options, it will just issue warnings
  3909. # or remarks (even with -Werror). So we grep stderr for any message
  3910. # that says an option was ignored or not supported.
  3911. # When given -MP, icc 7.0 and 7.1 complain thusly:
  3912. # icc: Command line warning: ignoring option '-M'; no argument required
  3913. # The diagnosis changed in icc 8.0:
  3914. # icc: Command line remark: option '-MP' not supported
  3915. if (grep 'ignoring option' conftest.err ||
  3916. grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
  3917. am_cv_CXX_dependencies_compiler_type=$depmode
  3918. break
  3919. fi
  3920. fi
  3921. done
  3922. cd ..
  3923. rm -rf conftest.dir
  3924. else
  3925. am_cv_CXX_dependencies_compiler_type=none
  3926. fi
  3927. fi
  3928. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
  3929. $as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
  3930. CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
  3931. if
  3932. test "x$enable_dependency_tracking" != xno \
  3933. && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
  3934. am__fastdepCXX_TRUE=
  3935. am__fastdepCXX_FALSE='#'
  3936. else
  3937. am__fastdepCXX_TRUE='#'
  3938. am__fastdepCXX_FALSE=
  3939. fi
  3940. ac_ext=c
  3941. ac_cpp='$CPP $CPPFLAGS'
  3942. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  3943. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  3944. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  3945. if test -n "$ac_tool_prefix"; then
  3946. # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
  3947. set dummy ${ac_tool_prefix}gcc; ac_word=$2
  3948. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3949. $as_echo_n "checking for $ac_word... " >&6; }
  3950. if test "${ac_cv_prog_CC+set}" = set; then :
  3951. $as_echo_n "(cached) " >&6
  3952. else
  3953. if test -n "$CC"; then
  3954. ac_cv_prog_CC="$CC" # Let the user override the test.
  3955. else
  3956. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3957. for as_dir in $PATH
  3958. do
  3959. IFS=$as_save_IFS
  3960. test -z "$as_dir" && as_dir=.
  3961. for ac_exec_ext in '' $ac_executable_extensions; do
  3962. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  3963. ac_cv_prog_CC="${ac_tool_prefix}gcc"
  3964. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  3965. break 2
  3966. fi
  3967. done
  3968. done
  3969. IFS=$as_save_IFS
  3970. fi
  3971. fi
  3972. CC=$ac_cv_prog_CC
  3973. if test -n "$CC"; then
  3974. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  3975. $as_echo "$CC" >&6; }
  3976. else
  3977. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3978. $as_echo "no" >&6; }
  3979. fi
  3980. fi
  3981. if test -z "$ac_cv_prog_CC"; then
  3982. ac_ct_CC=$CC
  3983. # Extract the first word of "gcc", so it can be a program name with args.
  3984. set dummy gcc; ac_word=$2
  3985. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3986. $as_echo_n "checking for $ac_word... " >&6; }
  3987. if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
  3988. $as_echo_n "(cached) " >&6
  3989. else
  3990. if test -n "$ac_ct_CC"; then
  3991. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  3992. else
  3993. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3994. for as_dir in $PATH
  3995. do
  3996. IFS=$as_save_IFS
  3997. test -z "$as_dir" && as_dir=.
  3998. for ac_exec_ext in '' $ac_executable_extensions; do
  3999. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  4000. ac_cv_prog_ac_ct_CC="gcc"
  4001. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4002. break 2
  4003. fi
  4004. done
  4005. done
  4006. IFS=$as_save_IFS
  4007. fi
  4008. fi
  4009. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  4010. if test -n "$ac_ct_CC"; then
  4011. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
  4012. $as_echo "$ac_ct_CC" >&6; }
  4013. else
  4014. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4015. $as_echo "no" >&6; }
  4016. fi
  4017. if test "x$ac_ct_CC" = x; then
  4018. CC=""
  4019. else
  4020. case $cross_compiling:$ac_tool_warned in
  4021. yes:)
  4022. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  4023. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  4024. ac_tool_warned=yes ;;
  4025. esac
  4026. CC=$ac_ct_CC
  4027. fi
  4028. else
  4029. CC="$ac_cv_prog_CC"
  4030. fi
  4031. if test -z "$CC"; then
  4032. if test -n "$ac_tool_prefix"; then
  4033. # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
  4034. set dummy ${ac_tool_prefix}cc; ac_word=$2
  4035. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4036. $as_echo_n "checking for $ac_word... " >&6; }
  4037. if test "${ac_cv_prog_CC+set}" = set; then :
  4038. $as_echo_n "(cached) " >&6
  4039. else
  4040. if test -n "$CC"; then
  4041. ac_cv_prog_CC="$CC" # Let the user override the test.
  4042. else
  4043. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4044. for as_dir in $PATH
  4045. do
  4046. IFS=$as_save_IFS
  4047. test -z "$as_dir" && as_dir=.
  4048. for ac_exec_ext in '' $ac_executable_extensions; do
  4049. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  4050. ac_cv_prog_CC="${ac_tool_prefix}cc"
  4051. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4052. break 2
  4053. fi
  4054. done
  4055. done
  4056. IFS=$as_save_IFS
  4057. fi
  4058. fi
  4059. CC=$ac_cv_prog_CC
  4060. if test -n "$CC"; then
  4061. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  4062. $as_echo "$CC" >&6; }
  4063. else
  4064. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4065. $as_echo "no" >&6; }
  4066. fi
  4067. fi
  4068. fi
  4069. if test -z "$CC"; then
  4070. # Extract the first word of "cc", so it can be a program name with args.
  4071. set dummy cc; ac_word=$2
  4072. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4073. $as_echo_n "checking for $ac_word... " >&6; }
  4074. if test "${ac_cv_prog_CC+set}" = set; then :
  4075. $as_echo_n "(cached) " >&6
  4076. else
  4077. if test -n "$CC"; then
  4078. ac_cv_prog_CC="$CC" # Let the user override the test.
  4079. else
  4080. ac_prog_rejected=no
  4081. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4082. for as_dir in $PATH
  4083. do
  4084. IFS=$as_save_IFS
  4085. test -z "$as_dir" && as_dir=.
  4086. for ac_exec_ext in '' $ac_executable_extensions; do
  4087. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  4088. if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
  4089. ac_prog_rejected=yes
  4090. continue
  4091. fi
  4092. ac_cv_prog_CC="cc"
  4093. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4094. break 2
  4095. fi
  4096. done
  4097. done
  4098. IFS=$as_save_IFS
  4099. if test $ac_prog_rejected = yes; then
  4100. # We found a bogon in the path, so make sure we never use it.
  4101. set dummy $ac_cv_prog_CC
  4102. shift
  4103. if test $# != 0; then
  4104. # We chose a different compiler from the bogus one.
  4105. # However, it has the same basename, so the bogon will be chosen
  4106. # first if we set CC to just the basename; use the full file name.
  4107. shift
  4108. ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
  4109. fi
  4110. fi
  4111. fi
  4112. fi
  4113. CC=$ac_cv_prog_CC
  4114. if test -n "$CC"; then
  4115. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  4116. $as_echo "$CC" >&6; }
  4117. else
  4118. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4119. $as_echo "no" >&6; }
  4120. fi
  4121. fi
  4122. if test -z "$CC"; then
  4123. if test -n "$ac_tool_prefix"; then
  4124. for ac_prog in cl.exe
  4125. do
  4126. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  4127. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  4128. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4129. $as_echo_n "checking for $ac_word... " >&6; }
  4130. if test "${ac_cv_prog_CC+set}" = set; then :
  4131. $as_echo_n "(cached) " >&6
  4132. else
  4133. if test -n "$CC"; then
  4134. ac_cv_prog_CC="$CC" # Let the user override the test.
  4135. else
  4136. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4137. for as_dir in $PATH
  4138. do
  4139. IFS=$as_save_IFS
  4140. test -z "$as_dir" && as_dir=.
  4141. for ac_exec_ext in '' $ac_executable_extensions; do
  4142. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  4143. ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
  4144. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4145. break 2
  4146. fi
  4147. done
  4148. done
  4149. IFS=$as_save_IFS
  4150. fi
  4151. fi
  4152. CC=$ac_cv_prog_CC
  4153. if test -n "$CC"; then
  4154. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  4155. $as_echo "$CC" >&6; }
  4156. else
  4157. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4158. $as_echo "no" >&6; }
  4159. fi
  4160. test -n "$CC" && break
  4161. done
  4162. fi
  4163. if test -z "$CC"; then
  4164. ac_ct_CC=$CC
  4165. for ac_prog in cl.exe
  4166. do
  4167. # Extract the first word of "$ac_prog", so it can be a program name with args.
  4168. set dummy $ac_prog; ac_word=$2
  4169. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4170. $as_echo_n "checking for $ac_word... " >&6; }
  4171. if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
  4172. $as_echo_n "(cached) " >&6
  4173. else
  4174. if test -n "$ac_ct_CC"; then
  4175. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  4176. else
  4177. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4178. for as_dir in $PATH
  4179. do
  4180. IFS=$as_save_IFS
  4181. test -z "$as_dir" && as_dir=.
  4182. for ac_exec_ext in '' $ac_executable_extensions; do
  4183. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  4184. ac_cv_prog_ac_ct_CC="$ac_prog"
  4185. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4186. break 2
  4187. fi
  4188. done
  4189. done
  4190. IFS=$as_save_IFS
  4191. fi
  4192. fi
  4193. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  4194. if test -n "$ac_ct_CC"; then
  4195. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
  4196. $as_echo "$ac_ct_CC" >&6; }
  4197. else
  4198. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4199. $as_echo "no" >&6; }
  4200. fi
  4201. test -n "$ac_ct_CC" && break
  4202. done
  4203. if test "x$ac_ct_CC" = x; then
  4204. CC=""
  4205. else
  4206. case $cross_compiling:$ac_tool_warned in
  4207. yes:)
  4208. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  4209. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  4210. ac_tool_warned=yes ;;
  4211. esac
  4212. CC=$ac_ct_CC
  4213. fi
  4214. fi
  4215. fi
  4216. test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  4217. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  4218. as_fn_error "no acceptable C compiler found in \$PATH
  4219. See \`config.log' for more details." "$LINENO" 5; }
  4220. # Provide some information about the compiler.
  4221. $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
  4222. set X $ac_compile
  4223. ac_compiler=$2
  4224. for ac_option in --version -v -V -qversion; do
  4225. { { ac_try="$ac_compiler $ac_option >&5"
  4226. case "(($ac_try" in
  4227. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  4228. *) ac_try_echo=$ac_try;;
  4229. esac
  4230. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  4231. $as_echo "$ac_try_echo"; } >&5
  4232. (eval "$ac_compiler $ac_option >&5") 2>conftest.err
  4233. ac_status=$?
  4234. if test -s conftest.err; then
  4235. sed '10a\
  4236. ... rest of stderr output deleted ...
  4237. 10q' conftest.err >conftest.er1
  4238. cat conftest.er1 >&5
  4239. rm -f conftest.er1 conftest.err
  4240. fi
  4241. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  4242. test $ac_status = 0; }
  4243. done
  4244. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
  4245. $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
  4246. if test "${ac_cv_c_compiler_gnu+set}" = set; then :
  4247. $as_echo_n "(cached) " >&6
  4248. else
  4249. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4250. /* end confdefs.h. */
  4251. int
  4252. main ()
  4253. {
  4254. #ifndef __GNUC__
  4255. choke me
  4256. #endif
  4257. ;
  4258. return 0;
  4259. }
  4260. _ACEOF
  4261. if ac_fn_c_try_compile "$LINENO"; then :
  4262. ac_compiler_gnu=yes
  4263. else
  4264. ac_compiler_gnu=no
  4265. fi
  4266. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4267. ac_cv_c_compiler_gnu=$ac_compiler_gnu
  4268. fi
  4269. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
  4270. $as_echo "$ac_cv_c_compiler_gnu" >&6; }
  4271. if test $ac_compiler_gnu = yes; then
  4272. GCC=yes
  4273. else
  4274. GCC=
  4275. fi
  4276. ac_test_CFLAGS=${CFLAGS+set}
  4277. ac_save_CFLAGS=$CFLAGS
  4278. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
  4279. $as_echo_n "checking whether $CC accepts -g... " >&6; }
  4280. if test "${ac_cv_prog_cc_g+set}" = set; then :
  4281. $as_echo_n "(cached) " >&6
  4282. else
  4283. ac_save_c_werror_flag=$ac_c_werror_flag
  4284. ac_c_werror_flag=yes
  4285. ac_cv_prog_cc_g=no
  4286. CFLAGS="-g"
  4287. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4288. /* end confdefs.h. */
  4289. int
  4290. main ()
  4291. {
  4292. ;
  4293. return 0;
  4294. }
  4295. _ACEOF
  4296. if ac_fn_c_try_compile "$LINENO"; then :
  4297. ac_cv_prog_cc_g=yes
  4298. else
  4299. CFLAGS=""
  4300. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4301. /* end confdefs.h. */
  4302. int
  4303. main ()
  4304. {
  4305. ;
  4306. return 0;
  4307. }
  4308. _ACEOF
  4309. if ac_fn_c_try_compile "$LINENO"; then :
  4310. else
  4311. ac_c_werror_flag=$ac_save_c_werror_flag
  4312. CFLAGS="-g"
  4313. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4314. /* end confdefs.h. */
  4315. int
  4316. main ()
  4317. {
  4318. ;
  4319. return 0;
  4320. }
  4321. _ACEOF
  4322. if ac_fn_c_try_compile "$LINENO"; then :
  4323. ac_cv_prog_cc_g=yes
  4324. fi
  4325. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4326. fi
  4327. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4328. fi
  4329. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4330. ac_c_werror_flag=$ac_save_c_werror_flag
  4331. fi
  4332. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
  4333. $as_echo "$ac_cv_prog_cc_g" >&6; }
  4334. if test "$ac_test_CFLAGS" = set; then
  4335. CFLAGS=$ac_save_CFLAGS
  4336. elif test $ac_cv_prog_cc_g = yes; then
  4337. if test "$GCC" = yes; then
  4338. CFLAGS="-g -O2"
  4339. else
  4340. CFLAGS="-g"
  4341. fi
  4342. else
  4343. if test "$GCC" = yes; then
  4344. CFLAGS="-O2"
  4345. else
  4346. CFLAGS=
  4347. fi
  4348. fi
  4349. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
  4350. $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
  4351. if test "${ac_cv_prog_cc_c89+set}" = set; then :
  4352. $as_echo_n "(cached) " >&6
  4353. else
  4354. ac_cv_prog_cc_c89=no
  4355. ac_save_CC=$CC
  4356. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4357. /* end confdefs.h. */
  4358. #include <stdarg.h>
  4359. #include <stdio.h>
  4360. #include <sys/types.h>
  4361. #include <sys/stat.h>
  4362. /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
  4363. struct buf { int x; };
  4364. FILE * (*rcsopen) (struct buf *, struct stat *, int);
  4365. static char *e (p, i)
  4366. char **p;
  4367. int i;
  4368. {
  4369. return p[i];
  4370. }
  4371. static char *f (char * (*g) (char **, int), char **p, ...)
  4372. {
  4373. char *s;
  4374. va_list v;
  4375. va_start (v,p);
  4376. s = g (p, va_arg (v,int));
  4377. va_end (v);
  4378. return s;
  4379. }
  4380. /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
  4381. function prototypes and stuff, but not '\xHH' hex character constants.
  4382. These don't provoke an error unfortunately, instead are silently treated
  4383. as 'x'. The following induces an error, until -std is added to get
  4384. proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
  4385. array size at least. It's necessary to write '\x00'==0 to get something
  4386. that's true only with -std. */
  4387. int osf4_cc_array ['\x00' == 0 ? 1 : -1];
  4388. /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
  4389. inside strings and character constants. */
  4390. #define FOO(x) 'x'
  4391. int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
  4392. int test (int i, double x);
  4393. struct s1 {int (*f) (int a);};
  4394. struct s2 {int (*f) (double a);};
  4395. int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
  4396. int argc;
  4397. char **argv;
  4398. int
  4399. main ()
  4400. {
  4401. return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
  4402. ;
  4403. return 0;
  4404. }
  4405. _ACEOF
  4406. for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
  4407. -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
  4408. do
  4409. CC="$ac_save_CC $ac_arg"
  4410. if ac_fn_c_try_compile "$LINENO"; then :
  4411. ac_cv_prog_cc_c89=$ac_arg
  4412. fi
  4413. rm -f core conftest.err conftest.$ac_objext
  4414. test "x$ac_cv_prog_cc_c89" != "xno" && break
  4415. done
  4416. rm -f conftest.$ac_ext
  4417. CC=$ac_save_CC
  4418. fi
  4419. # AC_CACHE_VAL
  4420. case "x$ac_cv_prog_cc_c89" in
  4421. x)
  4422. { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
  4423. $as_echo "none needed" >&6; } ;;
  4424. xno)
  4425. { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
  4426. $as_echo "unsupported" >&6; } ;;
  4427. *)
  4428. CC="$CC $ac_cv_prog_cc_c89"
  4429. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
  4430. $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
  4431. esac
  4432. if test "x$ac_cv_prog_cc_c89" != xno; then :
  4433. fi
  4434. ac_ext=c
  4435. ac_cpp='$CPP $CPPFLAGS'
  4436. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  4437. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  4438. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  4439. depcc="$CC" am_compiler_list=
  4440. { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
  4441. $as_echo_n "checking dependency style of $depcc... " >&6; }
  4442. if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then :
  4443. $as_echo_n "(cached) " >&6
  4444. else
  4445. if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
  4446. # We make a subdir and do the tests there. Otherwise we can end up
  4447. # making bogus files that we don't know about and never remove. For
  4448. # instance it was reported that on HP-UX the gcc test will end up
  4449. # making a dummy file named `D' -- because `-MD' means `put the output
  4450. # in D'.
  4451. mkdir conftest.dir
  4452. # Copy depcomp to subdir because otherwise we won't find it if we're
  4453. # using a relative directory.
  4454. cp "$am_depcomp" conftest.dir
  4455. cd conftest.dir
  4456. # We will build objects and dependencies in a subdirectory because
  4457. # it helps to detect inapplicable dependency modes. For instance
  4458. # both Tru64's cc and ICC support -MD to output dependencies as a
  4459. # side effect of compilation, but ICC will put the dependencies in
  4460. # the current directory while Tru64 will put them in the object
  4461. # directory.
  4462. mkdir sub
  4463. am_cv_CC_dependencies_compiler_type=none
  4464. if test "$am_compiler_list" = ""; then
  4465. am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
  4466. fi
  4467. am__universal=false
  4468. case " $depcc " in #(
  4469. *\ -arch\ *\ -arch\ *) am__universal=true ;;
  4470. esac
  4471. for depmode in $am_compiler_list; do
  4472. # Setup a source with many dependencies, because some compilers
  4473. # like to wrap large dependency lists on column 80 (with \), and
  4474. # we should not choose a depcomp mode which is confused by this.
  4475. #
  4476. # We need to recreate these files for each test, as the compiler may
  4477. # overwrite some of them when testing with obscure command lines.
  4478. # This happens at least with the AIX C compiler.
  4479. : > sub/conftest.c
  4480. for i in 1 2 3 4 5 6; do
  4481. echo '#include "conftst'$i'.h"' >> sub/conftest.c
  4482. # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
  4483. # Solaris 8's {/usr,}/bin/sh.
  4484. touch sub/conftst$i.h
  4485. done
  4486. echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
  4487. # We check with `-c' and `-o' for the sake of the "dashmstdout"
  4488. # mode. It turns out that the SunPro C++ compiler does not properly
  4489. # handle `-M -o', and we need to detect this. Also, some Intel
  4490. # versions had trouble with output in subdirs
  4491. am__obj=sub/conftest.${OBJEXT-o}
  4492. am__minus_obj="-o $am__obj"
  4493. case $depmode in
  4494. gcc)
  4495. # This depmode causes a compiler race in universal mode.
  4496. test "$am__universal" = false || continue
  4497. ;;
  4498. nosideeffect)
  4499. # after this tag, mechanisms are not by side-effect, so they'll
  4500. # only be used when explicitly requested
  4501. if test "x$enable_dependency_tracking" = xyes; then
  4502. continue
  4503. else
  4504. break
  4505. fi
  4506. ;;
  4507. msvisualcpp | msvcmsys)
  4508. # This compiler won't grok `-c -o', but also, the minuso test has
  4509. # not run yet. These depmodes are late enough in the game, and
  4510. # so weak that their functioning should not be impacted.
  4511. am__obj=conftest.${OBJEXT-o}
  4512. am__minus_obj=
  4513. ;;
  4514. none) break ;;
  4515. esac
  4516. if depmode=$depmode \
  4517. source=sub/conftest.c object=$am__obj \
  4518. depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
  4519. $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
  4520. >/dev/null 2>conftest.err &&
  4521. grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
  4522. grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
  4523. grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
  4524. ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
  4525. # icc doesn't choke on unknown options, it will just issue warnings
  4526. # or remarks (even with -Werror). So we grep stderr for any message
  4527. # that says an option was ignored or not supported.
  4528. # When given -MP, icc 7.0 and 7.1 complain thusly:
  4529. # icc: Command line warning: ignoring option '-M'; no argument required
  4530. # The diagnosis changed in icc 8.0:
  4531. # icc: Command line remark: option '-MP' not supported
  4532. if (grep 'ignoring option' conftest.err ||
  4533. grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
  4534. am_cv_CC_dependencies_compiler_type=$depmode
  4535. break
  4536. fi
  4537. fi
  4538. done
  4539. cd ..
  4540. rm -rf conftest.dir
  4541. else
  4542. am_cv_CC_dependencies_compiler_type=none
  4543. fi
  4544. fi
  4545. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
  4546. $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
  4547. CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
  4548. if
  4549. test "x$enable_dependency_tracking" != xno \
  4550. && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
  4551. am__fastdepCC_TRUE=
  4552. am__fastdepCC_FALSE='#'
  4553. else
  4554. am__fastdepCC_TRUE='#'
  4555. am__fastdepCC_FALSE=
  4556. fi
  4557. if test -n "$ac_tool_prefix"; then
  4558. # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
  4559. set dummy ${ac_tool_prefix}ranlib; ac_word=$2
  4560. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4561. $as_echo_n "checking for $ac_word... " >&6; }
  4562. if test "${ac_cv_prog_RANLIB+set}" = set; then :
  4563. $as_echo_n "(cached) " >&6
  4564. else
  4565. if test -n "$RANLIB"; then
  4566. ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
  4567. else
  4568. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4569. for as_dir in $PATH
  4570. do
  4571. IFS=$as_save_IFS
  4572. test -z "$as_dir" && as_dir=.
  4573. for ac_exec_ext in '' $ac_executable_extensions; do
  4574. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  4575. ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
  4576. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4577. break 2
  4578. fi
  4579. done
  4580. done
  4581. IFS=$as_save_IFS
  4582. fi
  4583. fi
  4584. RANLIB=$ac_cv_prog_RANLIB
  4585. if test -n "$RANLIB"; then
  4586. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
  4587. $as_echo "$RANLIB" >&6; }
  4588. else
  4589. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4590. $as_echo "no" >&6; }
  4591. fi
  4592. fi
  4593. if test -z "$ac_cv_prog_RANLIB"; then
  4594. ac_ct_RANLIB=$RANLIB
  4595. # Extract the first word of "ranlib", so it can be a program name with args.
  4596. set dummy ranlib; ac_word=$2
  4597. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4598. $as_echo_n "checking for $ac_word... " >&6; }
  4599. if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
  4600. $as_echo_n "(cached) " >&6
  4601. else
  4602. if test -n "$ac_ct_RANLIB"; then
  4603. ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
  4604. else
  4605. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4606. for as_dir in $PATH
  4607. do
  4608. IFS=$as_save_IFS
  4609. test -z "$as_dir" && as_dir=.
  4610. for ac_exec_ext in '' $ac_executable_extensions; do
  4611. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  4612. ac_cv_prog_ac_ct_RANLIB="ranlib"
  4613. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4614. break 2
  4615. fi
  4616. done
  4617. done
  4618. IFS=$as_save_IFS
  4619. fi
  4620. fi
  4621. ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
  4622. if test -n "$ac_ct_RANLIB"; then
  4623. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
  4624. $as_echo "$ac_ct_RANLIB" >&6; }
  4625. else
  4626. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4627. $as_echo "no" >&6; }
  4628. fi
  4629. if test "x$ac_ct_RANLIB" = x; then
  4630. RANLIB=":"
  4631. else
  4632. case $cross_compiling:$ac_tool_warned in
  4633. yes:)
  4634. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  4635. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  4636. ac_tool_warned=yes ;;
  4637. esac
  4638. RANLIB=$ac_ct_RANLIB
  4639. fi
  4640. else
  4641. RANLIB="$ac_cv_prog_RANLIB"
  4642. fi
  4643. for ac_prog in 'bison -y' byacc
  4644. do
  4645. # Extract the first word of "$ac_prog", so it can be a program name with args.
  4646. set dummy $ac_prog; ac_word=$2
  4647. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4648. $as_echo_n "checking for $ac_word... " >&6; }
  4649. if test "${ac_cv_prog_YACC+set}" = set; then :
  4650. $as_echo_n "(cached) " >&6
  4651. else
  4652. if test -n "$YACC"; then
  4653. ac_cv_prog_YACC="$YACC" # Let the user override the test.
  4654. else
  4655. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4656. for as_dir in $PATH
  4657. do
  4658. IFS=$as_save_IFS
  4659. test -z "$as_dir" && as_dir=.
  4660. for ac_exec_ext in '' $ac_executable_extensions; do
  4661. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  4662. ac_cv_prog_YACC="$ac_prog"
  4663. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4664. break 2
  4665. fi
  4666. done
  4667. done
  4668. IFS=$as_save_IFS
  4669. fi
  4670. fi
  4671. YACC=$ac_cv_prog_YACC
  4672. if test -n "$YACC"; then
  4673. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $YACC" >&5
  4674. $as_echo "$YACC" >&6; }
  4675. else
  4676. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4677. $as_echo "no" >&6; }
  4678. fi
  4679. test -n "$YACC" && break
  4680. done
  4681. test -n "$YACC" || YACC="yacc"
  4682. # Setting language choice
  4683. ac_ext=cpp
  4684. ac_cpp='$CXXCPP $CPPFLAGS'
  4685. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  4686. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  4687. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  4688. # Enable system extensions
  4689. ac_ext=cpp
  4690. ac_cpp='$CXXCPP $CPPFLAGS'
  4691. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  4692. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  4693. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  4694. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
  4695. $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
  4696. if test -z "$CXXCPP"; then
  4697. if test "${ac_cv_prog_CXXCPP+set}" = set; then :
  4698. $as_echo_n "(cached) " >&6
  4699. else
  4700. # Double quotes because CXXCPP needs to be expanded
  4701. for CXXCPP in "$CXX -E" "/lib/cpp"
  4702. do
  4703. ac_preproc_ok=false
  4704. for ac_cxx_preproc_warn_flag in '' yes
  4705. do
  4706. # Use a header file that comes with gcc, so configuring glibc
  4707. # with a fresh cross-compiler works.
  4708. # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  4709. # <limits.h> exists even on freestanding compilers.
  4710. # On the NeXT, cc -E runs the code through the compiler's parser,
  4711. # not just through cpp. "Syntax error" is here to catch this case.
  4712. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4713. /* end confdefs.h. */
  4714. #ifdef __STDC__
  4715. # include <limits.h>
  4716. #else
  4717. # include <assert.h>
  4718. #endif
  4719. Syntax error
  4720. _ACEOF
  4721. if ac_fn_cxx_try_cpp "$LINENO"; then :
  4722. else
  4723. # Broken: fails on valid input.
  4724. continue
  4725. fi
  4726. rm -f conftest.err conftest.$ac_ext
  4727. # OK, works on sane cases. Now check whether nonexistent headers
  4728. # can be detected and how.
  4729. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4730. /* end confdefs.h. */
  4731. #include <ac_nonexistent.h>
  4732. _ACEOF
  4733. if ac_fn_cxx_try_cpp "$LINENO"; then :
  4734. # Broken: success on invalid input.
  4735. continue
  4736. else
  4737. # Passes both tests.
  4738. ac_preproc_ok=:
  4739. break
  4740. fi
  4741. rm -f conftest.err conftest.$ac_ext
  4742. done
  4743. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  4744. rm -f conftest.err conftest.$ac_ext
  4745. if $ac_preproc_ok; then :
  4746. break
  4747. fi
  4748. done
  4749. ac_cv_prog_CXXCPP=$CXXCPP
  4750. fi
  4751. CXXCPP=$ac_cv_prog_CXXCPP
  4752. else
  4753. ac_cv_prog_CXXCPP=$CXXCPP
  4754. fi
  4755. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
  4756. $as_echo "$CXXCPP" >&6; }
  4757. ac_preproc_ok=false
  4758. for ac_cxx_preproc_warn_flag in '' yes
  4759. do
  4760. # Use a header file that comes with gcc, so configuring glibc
  4761. # with a fresh cross-compiler works.
  4762. # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  4763. # <limits.h> exists even on freestanding compilers.
  4764. # On the NeXT, cc -E runs the code through the compiler's parser,
  4765. # not just through cpp. "Syntax error" is here to catch this case.
  4766. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4767. /* end confdefs.h. */
  4768. #ifdef __STDC__
  4769. # include <limits.h>
  4770. #else
  4771. # include <assert.h>
  4772. #endif
  4773. Syntax error
  4774. _ACEOF
  4775. if ac_fn_cxx_try_cpp "$LINENO"; then :
  4776. else
  4777. # Broken: fails on valid input.
  4778. continue
  4779. fi
  4780. rm -f conftest.err conftest.$ac_ext
  4781. # OK, works on sane cases. Now check whether nonexistent headers
  4782. # can be detected and how.
  4783. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4784. /* end confdefs.h. */
  4785. #include <ac_nonexistent.h>
  4786. _ACEOF
  4787. if ac_fn_cxx_try_cpp "$LINENO"; then :
  4788. # Broken: success on invalid input.
  4789. continue
  4790. else
  4791. # Passes both tests.
  4792. ac_preproc_ok=:
  4793. break
  4794. fi
  4795. rm -f conftest.err conftest.$ac_ext
  4796. done
  4797. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  4798. rm -f conftest.err conftest.$ac_ext
  4799. if $ac_preproc_ok; then :
  4800. else
  4801. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  4802. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  4803. as_fn_error "C++ preprocessor \"$CXXCPP\" fails sanity check
  4804. See \`config.log' for more details." "$LINENO" 5; }
  4805. fi
  4806. ac_ext=cpp
  4807. ac_cpp='$CXXCPP $CPPFLAGS'
  4808. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  4809. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  4810. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  4811. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
  4812. $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
  4813. if test "${ac_cv_path_GREP+set}" = set; then :
  4814. $as_echo_n "(cached) " >&6
  4815. else
  4816. if test -z "$GREP"; then
  4817. ac_path_GREP_found=false
  4818. # Loop through the user's path and test for each of PROGNAME-LIST
  4819. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4820. for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
  4821. do
  4822. IFS=$as_save_IFS
  4823. test -z "$as_dir" && as_dir=.
  4824. for ac_prog in grep ggrep; do
  4825. for ac_exec_ext in '' $ac_executable_extensions; do
  4826. ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
  4827. { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
  4828. # Check for GNU ac_path_GREP and select it if it is found.
  4829. # Check for GNU $ac_path_GREP
  4830. case `"$ac_path_GREP" --version 2>&1` in
  4831. *GNU*)
  4832. ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
  4833. *)
  4834. ac_count=0
  4835. $as_echo_n 0123456789 >"conftest.in"
  4836. while :
  4837. do
  4838. cat "conftest.in" "conftest.in" >"conftest.tmp"
  4839. mv "conftest.tmp" "conftest.in"
  4840. cp "conftest.in" "conftest.nl"
  4841. $as_echo 'GREP' >> "conftest.nl"
  4842. "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
  4843. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  4844. as_fn_arith $ac_count + 1 && ac_count=$as_val
  4845. if test $ac_count -gt ${ac_path_GREP_max-0}; then
  4846. # Best one so far, save it but keep looking for a better one
  4847. ac_cv_path_GREP="$ac_path_GREP"
  4848. ac_path_GREP_max=$ac_count
  4849. fi
  4850. # 10*(2^10) chars as input seems more than enough
  4851. test $ac_count -gt 10 && break
  4852. done
  4853. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  4854. esac
  4855. $ac_path_GREP_found && break 3
  4856. done
  4857. done
  4858. done
  4859. IFS=$as_save_IFS
  4860. if test -z "$ac_cv_path_GREP"; then
  4861. as_fn_error "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
  4862. fi
  4863. else
  4864. ac_cv_path_GREP=$GREP
  4865. fi
  4866. fi
  4867. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
  4868. $as_echo "$ac_cv_path_GREP" >&6; }
  4869. GREP="$ac_cv_path_GREP"
  4870. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
  4871. $as_echo_n "checking for egrep... " >&6; }
  4872. if test "${ac_cv_path_EGREP+set}" = set; then :
  4873. $as_echo_n "(cached) " >&6
  4874. else
  4875. if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
  4876. then ac_cv_path_EGREP="$GREP -E"
  4877. else
  4878. if test -z "$EGREP"; then
  4879. ac_path_EGREP_found=false
  4880. # Loop through the user's path and test for each of PROGNAME-LIST
  4881. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4882. for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
  4883. do
  4884. IFS=$as_save_IFS
  4885. test -z "$as_dir" && as_dir=.
  4886. for ac_prog in egrep; do
  4887. for ac_exec_ext in '' $ac_executable_extensions; do
  4888. ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
  4889. { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
  4890. # Check for GNU ac_path_EGREP and select it if it is found.
  4891. # Check for GNU $ac_path_EGREP
  4892. case `"$ac_path_EGREP" --version 2>&1` in
  4893. *GNU*)
  4894. ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
  4895. *)
  4896. ac_count=0
  4897. $as_echo_n 0123456789 >"conftest.in"
  4898. while :
  4899. do
  4900. cat "conftest.in" "conftest.in" >"conftest.tmp"
  4901. mv "conftest.tmp" "conftest.in"
  4902. cp "conftest.in" "conftest.nl"
  4903. $as_echo 'EGREP' >> "conftest.nl"
  4904. "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
  4905. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  4906. as_fn_arith $ac_count + 1 && ac_count=$as_val
  4907. if test $ac_count -gt ${ac_path_EGREP_max-0}; then
  4908. # Best one so far, save it but keep looking for a better one
  4909. ac_cv_path_EGREP="$ac_path_EGREP"
  4910. ac_path_EGREP_max=$ac_count
  4911. fi
  4912. # 10*(2^10) chars as input seems more than enough
  4913. test $ac_count -gt 10 && break
  4914. done
  4915. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  4916. esac
  4917. $ac_path_EGREP_found && break 3
  4918. done
  4919. done
  4920. done
  4921. IFS=$as_save_IFS
  4922. if test -z "$ac_cv_path_EGREP"; then
  4923. as_fn_error "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
  4924. fi
  4925. else
  4926. ac_cv_path_EGREP=$EGREP
  4927. fi
  4928. fi
  4929. fi
  4930. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
  4931. $as_echo "$ac_cv_path_EGREP" >&6; }
  4932. EGREP="$ac_cv_path_EGREP"
  4933. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
  4934. $as_echo_n "checking for ANSI C header files... " >&6; }
  4935. if test "${ac_cv_header_stdc+set}" = set; then :
  4936. $as_echo_n "(cached) " >&6
  4937. else
  4938. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4939. /* end confdefs.h. */
  4940. #include <stdlib.h>
  4941. #include <stdarg.h>
  4942. #include <string.h>
  4943. #include <float.h>
  4944. int
  4945. main ()
  4946. {
  4947. ;
  4948. return 0;
  4949. }
  4950. _ACEOF
  4951. if ac_fn_cxx_try_compile "$LINENO"; then :
  4952. ac_cv_header_stdc=yes
  4953. else
  4954. ac_cv_header_stdc=no
  4955. fi
  4956. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4957. if test $ac_cv_header_stdc = yes; then
  4958. # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
  4959. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4960. /* end confdefs.h. */
  4961. #include <string.h>
  4962. _ACEOF
  4963. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  4964. $EGREP "memchr" >/dev/null 2>&1; then :
  4965. else
  4966. ac_cv_header_stdc=no
  4967. fi
  4968. rm -f conftest*
  4969. fi
  4970. if test $ac_cv_header_stdc = yes; then
  4971. # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
  4972. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4973. /* end confdefs.h. */
  4974. #include <stdlib.h>
  4975. _ACEOF
  4976. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  4977. $EGREP "free" >/dev/null 2>&1; then :
  4978. else
  4979. ac_cv_header_stdc=no
  4980. fi
  4981. rm -f conftest*
  4982. fi
  4983. if test $ac_cv_header_stdc = yes; then
  4984. # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
  4985. if test "$cross_compiling" = yes; then :
  4986. :
  4987. else
  4988. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4989. /* end confdefs.h. */
  4990. #include <ctype.h>
  4991. #include <stdlib.h>
  4992. #if ((' ' & 0x0FF) == 0x020)
  4993. # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
  4994. # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
  4995. #else
  4996. # define ISLOWER(c) \
  4997. (('a' <= (c) && (c) <= 'i') \
  4998. || ('j' <= (c) && (c) <= 'r') \
  4999. || ('s' <= (c) && (c) <= 'z'))
  5000. # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
  5001. #endif
  5002. #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
  5003. int
  5004. main ()
  5005. {
  5006. int i;
  5007. for (i = 0; i < 256; i++)
  5008. if (XOR (islower (i), ISLOWER (i))
  5009. || toupper (i) != TOUPPER (i))
  5010. return 2;
  5011. return 0;
  5012. }
  5013. _ACEOF
  5014. if ac_fn_cxx_try_run "$LINENO"; then :
  5015. else
  5016. ac_cv_header_stdc=no
  5017. fi
  5018. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  5019. conftest.$ac_objext conftest.beam conftest.$ac_ext
  5020. fi
  5021. fi
  5022. fi
  5023. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
  5024. $as_echo "$ac_cv_header_stdc" >&6; }
  5025. if test $ac_cv_header_stdc = yes; then
  5026. $as_echo "#define STDC_HEADERS 1" >>confdefs.h
  5027. fi
  5028. # On IRIX 5.3, sys/types and inttypes.h are conflicting.
  5029. for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
  5030. inttypes.h stdint.h unistd.h
  5031. do :
  5032. as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
  5033. ac_fn_cxx_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
  5034. "
  5035. eval as_val=\$$as_ac_Header
  5036. if test "x$as_val" = x""yes; then :
  5037. cat >>confdefs.h <<_ACEOF
  5038. #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
  5039. _ACEOF
  5040. fi
  5041. done
  5042. ac_fn_cxx_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
  5043. if test "x$ac_cv_header_minix_config_h" = x""yes; then :
  5044. MINIX=yes
  5045. else
  5046. MINIX=
  5047. fi
  5048. if test "$MINIX" = yes; then
  5049. $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
  5050. $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
  5051. $as_echo "#define _MINIX 1" >>confdefs.h
  5052. fi
  5053. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
  5054. $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
  5055. if test "${ac_cv_safe_to_define___extensions__+set}" = set; then :
  5056. $as_echo_n "(cached) " >&6
  5057. else
  5058. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5059. /* end confdefs.h. */
  5060. # define __EXTENSIONS__ 1
  5061. $ac_includes_default
  5062. int
  5063. main ()
  5064. {
  5065. ;
  5066. return 0;
  5067. }
  5068. _ACEOF
  5069. if ac_fn_cxx_try_compile "$LINENO"; then :
  5070. ac_cv_safe_to_define___extensions__=yes
  5071. else
  5072. ac_cv_safe_to_define___extensions__=no
  5073. fi
  5074. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  5075. fi
  5076. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
  5077. $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
  5078. test $ac_cv_safe_to_define___extensions__ = yes &&
  5079. $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
  5080. $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
  5081. $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
  5082. $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
  5083. $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
  5084. # Checks for libraries.
  5085. if test "x$with_libxml2" = "xyes"; then
  5086. # Check whether --with-xml-prefix was given.
  5087. if test "${with_xml_prefix+set}" = set; then :
  5088. withval=$with_xml_prefix; xml_config_prefix="$withval"
  5089. else
  5090. xml_config_prefix=""
  5091. fi
  5092. # Check whether --with-xml-exec-prefix was given.
  5093. if test "${with_xml_exec_prefix+set}" = set; then :
  5094. withval=$with_xml_exec_prefix; xml_config_exec_prefix="$withval"
  5095. else
  5096. xml_config_exec_prefix=""
  5097. fi
  5098. # Check whether --enable-xmltest was given.
  5099. if test "${enable_xmltest+set}" = set; then :
  5100. enableval=$enable_xmltest;
  5101. else
  5102. enable_xmltest=yes
  5103. fi
  5104. if test x$xml_config_exec_prefix != x ; then
  5105. xml_config_args="$xml_config_args"
  5106. if test x${XML2_CONFIG+set} != xset ; then
  5107. XML2_CONFIG=$xml_config_exec_prefix/bin/xml2-config
  5108. fi
  5109. fi
  5110. if test x$xml_config_prefix != x ; then
  5111. xml_config_args="$xml_config_args --prefix=$xml_config_prefix"
  5112. if test x${XML2_CONFIG+set} != xset ; then
  5113. XML2_CONFIG=$xml_config_prefix/bin/xml2-config
  5114. fi
  5115. fi
  5116. # Extract the first word of "xml2-config", so it can be a program name with args.
  5117. set dummy xml2-config; ac_word=$2
  5118. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5119. $as_echo_n "checking for $ac_word... " >&6; }
  5120. if test "${ac_cv_path_XML2_CONFIG+set}" = set; then :
  5121. $as_echo_n "(cached) " >&6
  5122. else
  5123. case $XML2_CONFIG in
  5124. [\\/]* | ?:[\\/]*)
  5125. ac_cv_path_XML2_CONFIG="$XML2_CONFIG" # Let the user override the test with a path.
  5126. ;;
  5127. *)
  5128. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5129. for as_dir in $PATH
  5130. do
  5131. IFS=$as_save_IFS
  5132. test -z "$as_dir" && as_dir=.
  5133. for ac_exec_ext in '' $ac_executable_extensions; do
  5134. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  5135. ac_cv_path_XML2_CONFIG="$as_dir/$ac_word$ac_exec_ext"
  5136. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5137. break 2
  5138. fi
  5139. done
  5140. done
  5141. IFS=$as_save_IFS
  5142. test -z "$ac_cv_path_XML2_CONFIG" && ac_cv_path_XML2_CONFIG="no"
  5143. ;;
  5144. esac
  5145. fi
  5146. XML2_CONFIG=$ac_cv_path_XML2_CONFIG
  5147. if test -n "$XML2_CONFIG"; then
  5148. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XML2_CONFIG" >&5
  5149. $as_echo "$XML2_CONFIG" >&6; }
  5150. else
  5151. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5152. $as_echo "no" >&6; }
  5153. fi
  5154. min_xml_version=2.6.24
  5155. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libxml - version >= $min_xml_version" >&5
  5156. $as_echo_n "checking for libxml - version >= $min_xml_version... " >&6; }
  5157. no_xml=""
  5158. if test "$XML2_CONFIG" = "no" ; then
  5159. no_xml=yes
  5160. else
  5161. XML_CPPFLAGS=`$XML2_CONFIG $xml_config_args --cflags`
  5162. XML_LIBS=`$XML2_CONFIG $xml_config_args --libs`
  5163. xml_config_major_version=`$XML2_CONFIG $xml_config_args --version | \
  5164. sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
  5165. xml_config_minor_version=`$XML2_CONFIG $xml_config_args --version | \
  5166. sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
  5167. xml_config_micro_version=`$XML2_CONFIG $xml_config_args --version | \
  5168. sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
  5169. if test "x$enable_xmltest" = "xyes" ; then
  5170. ac_save_CPPFLAGS="$CPPFLAGS"
  5171. ac_save_LIBS="$LIBS"
  5172. CPPFLAGS="$CPPFLAGS $XML_CPPFLAGS"
  5173. LIBS="$XML_LIBS $LIBS"
  5174. rm -f conf.xmltest
  5175. if test "$cross_compiling" = yes; then :
  5176. echo $ac_n "cross compiling; assumed OK... $ac_c"
  5177. else
  5178. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5179. /* end confdefs.h. */
  5180. #include <stdlib.h>
  5181. #include <stdio.h>
  5182. #include <string.h>
  5183. #include <libxml/xmlversion.h>
  5184. int
  5185. main()
  5186. {
  5187. int xml_major_version, xml_minor_version, xml_micro_version;
  5188. int major, minor, micro;
  5189. char *tmp_version;
  5190. system("touch conf.xmltest");
  5191. /* Capture xml2-config output via autoconf/configure variables */
  5192. /* HP/UX 9 (%@#!) writes to sscanf strings */
  5193. tmp_version = (char *)strdup("$min_xml_version");
  5194. if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, &micro) != 3) {
  5195. printf("%s, bad version string from xml2-config\n", "$min_xml_version");
  5196. exit(1);
  5197. }
  5198. free(tmp_version);
  5199. /* Capture the version information from the header files */
  5200. tmp_version = (char *)strdup(LIBXML_DOTTED_VERSION);
  5201. if (sscanf(tmp_version, "%d.%d.%d", &xml_major_version, &xml_minor_version, &xml_micro_version) != 3) {
  5202. printf("%s, bad version string from libxml includes\n", "LIBXML_DOTTED_VERSION");
  5203. exit(1);
  5204. }
  5205. free(tmp_version);
  5206. /* Compare xml2-config output to the libxml headers */
  5207. if ((xml_major_version != $xml_config_major_version) ||
  5208. (xml_minor_version != $xml_config_minor_version) ||
  5209. (xml_micro_version != $xml_config_micro_version))
  5210. {
  5211. printf("*** libxml header files (version %d.%d.%d) do not match\n",
  5212. xml_major_version, xml_minor_version, xml_micro_version);
  5213. printf("*** xml2-config (version %d.%d.%d)\n",
  5214. $xml_config_major_version, $xml_config_minor_version, $xml_config_micro_version);
  5215. return 1;
  5216. }
  5217. /* Compare the headers to the library to make sure we match */
  5218. /* Less than ideal -- doesn't provide us with return value feedback,
  5219. * only exits if there's a serious mismatch between header and library.
  5220. */
  5221. LIBXML_TEST_VERSION;
  5222. /* Test that the library is greater than our minimum version */
  5223. if ((xml_major_version > major) ||
  5224. ((xml_major_version == major) && (xml_minor_version > minor)) ||
  5225. ((xml_major_version == major) && (xml_minor_version == minor) &&
  5226. (xml_micro_version >= micro)))
  5227. {
  5228. return 0;
  5229. }
  5230. else
  5231. {
  5232. printf("\n*** An old version of libxml (%d.%d.%d) was found.\n",
  5233. xml_major_version, xml_minor_version, xml_micro_version);
  5234. printf("*** You need a version of libxml newer than %d.%d.%d. The latest version of\n",
  5235. major, minor, micro);
  5236. printf("*** libxml is always available from ftp://ftp.xmlsoft.org.\n");
  5237. printf("***\n");
  5238. printf("*** If you have already installed a sufficiently new version, this error\n");
  5239. printf("*** probably means that the wrong copy of the xml2-config shell script is\n");
  5240. printf("*** being found. The easiest way to fix this is to remove the old version\n");
  5241. printf("*** of LIBXML, but you can also set the XML2_CONFIG environment to point to the\n");
  5242. printf("*** correct copy of xml2-config. (In this case, you will have to\n");
  5243. printf("*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf\n");
  5244. printf("*** so that the correct libraries are found at run-time))\n");
  5245. }
  5246. return 1;
  5247. }
  5248. _ACEOF
  5249. if ac_fn_cxx_try_run "$LINENO"; then :
  5250. else
  5251. no_xml=yes
  5252. fi
  5253. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  5254. conftest.$ac_objext conftest.beam conftest.$ac_ext
  5255. fi
  5256. CPPFLAGS="$ac_save_CPPFLAGS"
  5257. LIBS="$ac_save_LIBS"
  5258. fi
  5259. fi
  5260. if test "x$no_xml" = x ; then
  5261. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes (version $xml_config_major_version.$xml_config_minor_version.$xml_config_micro_version)" >&5
  5262. $as_echo "yes (version $xml_config_major_version.$xml_config_minor_version.$xml_config_micro_version)" >&6; }
  5263. have_libxml2=yes
  5264. else
  5265. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5266. $as_echo "no" >&6; }
  5267. if test "$XML2_CONFIG" = "no" ; then
  5268. echo "*** The xml2-config script installed by LIBXML could not be found"
  5269. echo "*** If libxml was installed in PREFIX, make sure PREFIX/bin is in"
  5270. echo "*** your path, or set the XML2_CONFIG environment variable to the"
  5271. echo "*** full path to xml2-config."
  5272. else
  5273. if test -f conf.xmltest ; then
  5274. :
  5275. else
  5276. echo "*** Could not run libxml test program, checking why..."
  5277. CPPFLAGS="$CPPFLAGS $XML_CPPFLAGS"
  5278. LIBS="$LIBS $XML_LIBS"
  5279. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5280. /* end confdefs.h. */
  5281. #include <libxml/xmlversion.h>
  5282. #include <stdio.h>
  5283. int
  5284. main ()
  5285. {
  5286. LIBXML_TEST_VERSION; return 0;
  5287. ;
  5288. return 0;
  5289. }
  5290. _ACEOF
  5291. if ac_fn_cxx_try_link "$LINENO"; then :
  5292. echo "*** The test program compiled, but did not run. This usually means"
  5293. echo "*** that the run-time linker is not finding LIBXML or finding the wrong"
  5294. echo "*** version of LIBXML. If it is not finding LIBXML, you'll need to set your"
  5295. echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
  5296. echo "*** to the installed location Also, make sure you have run ldconfig if that"
  5297. echo "*** is required on your system"
  5298. echo "***"
  5299. echo "*** If you have an old version installed, it is best to remove it, although"
  5300. echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
  5301. else
  5302. echo "*** The test program failed to compile or link. See the file config.log for the"
  5303. echo "*** exact error that occured. This usually means LIBXML was incorrectly installed"
  5304. echo "*** or that you have moved LIBXML since it was installed. In the latter case, you"
  5305. echo "*** may want to edit the xml2-config script: $XML2_CONFIG"
  5306. fi
  5307. rm -f core conftest.err conftest.$ac_objext \
  5308. conftest$ac_exeext conftest.$ac_ext
  5309. CPPFLAGS="$ac_save_CPPFLAGS"
  5310. LIBS="$ac_save_LIBS"
  5311. fi
  5312. fi
  5313. XML_CPPFLAGS=""
  5314. XML_LIBS=""
  5315. :
  5316. fi
  5317. rm -f conf.xmltest
  5318. if test "x$have_libxml2" = "xyes"; then
  5319. $as_echo "#define HAVE_LIBXML2 1" >>confdefs.h
  5320. fi
  5321. fi
  5322. if test "x$with_libexpat" = "xyes" && test "x$have_libxml2" != "xyes"; then
  5323. # Check whether --with-libexpat-prefix was given.
  5324. if test "${with_libexpat_prefix+set}" = set; then :
  5325. withval=$with_libexpat_prefix; libexpat_prefix=$withval
  5326. else
  5327. libexpat_prefix=""
  5328. fi
  5329. if test "x$libexpat_prefix" = "x"; then
  5330. libexpat_prefix="/usr"
  5331. fi
  5332. libexpat_prefix_lib=$libexpat_prefix/lib
  5333. libexpat_prefix_include=$libexpat_prefix/include
  5334. LIBS_save=$LIBS
  5335. CPPFLAGS_save=$CPPFLAGS
  5336. LIBS="-L$libexpat_prefix_lib $LIBS"
  5337. CPPFLAGS="-I$libexpat_prefix_include $CPPFLAGS"
  5338. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XML_ParserCreate in -lexpat" >&5
  5339. $as_echo_n "checking for XML_ParserCreate in -lexpat... " >&6; }
  5340. if test "${ac_cv_lib_expat_XML_ParserCreate+set}" = set; then :
  5341. $as_echo_n "(cached) " >&6
  5342. else
  5343. ac_check_lib_save_LIBS=$LIBS
  5344. LIBS="-lexpat $LIBS"
  5345. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5346. /* end confdefs.h. */
  5347. /* Override any GCC internal prototype to avoid an error.
  5348. Use char because int might match the return type of a GCC
  5349. builtin and then its argument prototype would still apply. */
  5350. #ifdef __cplusplus
  5351. extern "C"
  5352. #endif
  5353. char XML_ParserCreate ();
  5354. int
  5355. main ()
  5356. {
  5357. return XML_ParserCreate ();
  5358. ;
  5359. return 0;
  5360. }
  5361. _ACEOF
  5362. if ac_fn_cxx_try_link "$LINENO"; then :
  5363. ac_cv_lib_expat_XML_ParserCreate=yes
  5364. else
  5365. ac_cv_lib_expat_XML_ParserCreate=no
  5366. fi
  5367. rm -f core conftest.err conftest.$ac_objext \
  5368. conftest$ac_exeext conftest.$ac_ext
  5369. LIBS=$ac_check_lib_save_LIBS
  5370. fi
  5371. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_expat_XML_ParserCreate" >&5
  5372. $as_echo "$ac_cv_lib_expat_XML_ParserCreate" >&6; }
  5373. if test "x$ac_cv_lib_expat_XML_ParserCreate" = x""yes; then :
  5374. have_libexpat=yes
  5375. fi
  5376. if test "x$have_libexpat" = "xyes"; then
  5377. $as_echo "#define HAVE_LIBEXPAT 1" >>confdefs.h
  5378. LIBEXPAT_LIBS="-L$libexpat_prefix_lib -lexpat"
  5379. LIBEXPAT_CPPFLAGS="-I$libexpat_prefix_include"
  5380. fi
  5381. LIBS=$LIBS_save
  5382. CPPFLAGS=$CPPFLAGS_save
  5383. fi
  5384. if test "x$with_sqlite3" = "xyes"; then
  5385. if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
  5386. if test -n "$ac_tool_prefix"; then
  5387. # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
  5388. set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
  5389. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5390. $as_echo_n "checking for $ac_word... " >&6; }
  5391. if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
  5392. $as_echo_n "(cached) " >&6
  5393. else
  5394. case $PKG_CONFIG in
  5395. [\\/]* | ?:[\\/]*)
  5396. ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
  5397. ;;
  5398. *)
  5399. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5400. for as_dir in $PATH
  5401. do
  5402. IFS=$as_save_IFS
  5403. test -z "$as_dir" && as_dir=.
  5404. for ac_exec_ext in '' $ac_executable_extensions; do
  5405. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  5406. ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
  5407. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5408. break 2
  5409. fi
  5410. done
  5411. done
  5412. IFS=$as_save_IFS
  5413. ;;
  5414. esac
  5415. fi
  5416. PKG_CONFIG=$ac_cv_path_PKG_CONFIG
  5417. if test -n "$PKG_CONFIG"; then
  5418. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
  5419. $as_echo "$PKG_CONFIG" >&6; }
  5420. else
  5421. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5422. $as_echo "no" >&6; }
  5423. fi
  5424. fi
  5425. if test -z "$ac_cv_path_PKG_CONFIG"; then
  5426. ac_pt_PKG_CONFIG=$PKG_CONFIG
  5427. # Extract the first word of "pkg-config", so it can be a program name with args.
  5428. set dummy pkg-config; ac_word=$2
  5429. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5430. $as_echo_n "checking for $ac_word... " >&6; }
  5431. if test "${ac_cv_path_ac_pt_PKG_CONFIG+set}" = set; then :
  5432. $as_echo_n "(cached) " >&6
  5433. else
  5434. case $ac_pt_PKG_CONFIG in
  5435. [\\/]* | ?:[\\/]*)
  5436. ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
  5437. ;;
  5438. *)
  5439. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5440. for as_dir in $PATH
  5441. do
  5442. IFS=$as_save_IFS
  5443. test -z "$as_dir" && as_dir=.
  5444. for ac_exec_ext in '' $ac_executable_extensions; do
  5445. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  5446. ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
  5447. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5448. break 2
  5449. fi
  5450. done
  5451. done
  5452. IFS=$as_save_IFS
  5453. ;;
  5454. esac
  5455. fi
  5456. ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
  5457. if test -n "$ac_pt_PKG_CONFIG"; then
  5458. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
  5459. $as_echo "$ac_pt_PKG_CONFIG" >&6; }
  5460. else
  5461. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5462. $as_echo "no" >&6; }
  5463. fi
  5464. if test "x$ac_pt_PKG_CONFIG" = x; then
  5465. PKG_CONFIG=""
  5466. else
  5467. case $cross_compiling:$ac_tool_warned in
  5468. yes:)
  5469. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  5470. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  5471. ac_tool_warned=yes ;;
  5472. esac
  5473. PKG_CONFIG=$ac_pt_PKG_CONFIG
  5474. fi
  5475. else
  5476. PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
  5477. fi
  5478. fi
  5479. if test -n "$PKG_CONFIG"; then
  5480. _pkg_min_version=0.9.0
  5481. { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
  5482. $as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
  5483. if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
  5484. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  5485. $as_echo "yes" >&6; }
  5486. else
  5487. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5488. $as_echo "no" >&6; }
  5489. PKG_CONFIG=""
  5490. fi
  5491. fi
  5492. # Check whether --with-sqlite3-prefix was given.
  5493. if test "${with_sqlite3_prefix+set}" = set; then :
  5494. withval=$with_sqlite3_prefix; sqlite3_prefix=$withval
  5495. else
  5496. sqlite3_prefix=""
  5497. fi
  5498. if test "x$sqlite3_prefix" = "x"; then
  5499. sqlite3_prefix="/usr"
  5500. fi
  5501. LIBS_save=$LIBS
  5502. CPPFLAGS_save=$CPPFLAGS
  5503. pkg_failed=no
  5504. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SQLITE3" >&5
  5505. $as_echo_n "checking for SQLITE3... " >&6; }
  5506. if test -n "$PKG_CONFIG"; then
  5507. if test -n "$SQLITE3_CFLAGS"; then
  5508. pkg_cv_SQLITE3_CFLAGS="$SQLITE3_CFLAGS"
  5509. else
  5510. if test -n "$PKG_CONFIG" && \
  5511. { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"sqlite3\""; } >&5
  5512. ($PKG_CONFIG --exists --print-errors "sqlite3") 2>&5
  5513. ac_status=$?
  5514. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  5515. test $ac_status = 0; }; then
  5516. pkg_cv_SQLITE3_CFLAGS=`$PKG_CONFIG --cflags "sqlite3" 2>/dev/null`
  5517. else
  5518. pkg_failed=yes
  5519. fi
  5520. fi
  5521. else
  5522. pkg_failed=untried
  5523. fi
  5524. if test -n "$PKG_CONFIG"; then
  5525. if test -n "$SQLITE3_LIBS"; then
  5526. pkg_cv_SQLITE3_LIBS="$SQLITE3_LIBS"
  5527. else
  5528. if test -n "$PKG_CONFIG" && \
  5529. { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"sqlite3\""; } >&5
  5530. ($PKG_CONFIG --exists --print-errors "sqlite3") 2>&5
  5531. ac_status=$?
  5532. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  5533. test $ac_status = 0; }; then
  5534. pkg_cv_SQLITE3_LIBS=`$PKG_CONFIG --libs "sqlite3" 2>/dev/null`
  5535. else
  5536. pkg_failed=yes
  5537. fi
  5538. fi
  5539. else
  5540. pkg_failed=untried
  5541. fi
  5542. if test $pkg_failed = yes; then
  5543. if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
  5544. _pkg_short_errors_supported=yes
  5545. else
  5546. _pkg_short_errors_supported=no
  5547. fi
  5548. if test $_pkg_short_errors_supported = yes; then
  5549. SQLITE3_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "sqlite3"`
  5550. else
  5551. SQLITE3_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "sqlite3"`
  5552. fi
  5553. # Put the nasty error message in config.log where it belongs
  5554. echo "$SQLITE3_PKG_ERRORS" >&5
  5555. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5556. $as_echo "no" >&6; }
  5557. have_sqlite3=no
  5558. elif test $pkg_failed = untried; then
  5559. have_sqlite3=no
  5560. else
  5561. SQLITE3_CFLAGS=$pkg_cv_SQLITE3_CFLAGS
  5562. SQLITE3_LIBS=$pkg_cv_SQLITE3_LIBS
  5563. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  5564. $as_echo "yes" >&6; }
  5565. have_sqlite3=yes
  5566. fi
  5567. if test "x$have_sqlite3" != "xyes"; then
  5568. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $SQLITE3_PKG_ERRORS" >&5
  5569. $as_echo "$as_me: WARNING: $SQLITE3_PKG_ERRORS" >&2;}
  5570. sqlite3_prefix_lib=$sqlite3_prefix/lib
  5571. sqlite3_prefix_include=$sqlite3_prefix/include
  5572. LIBS="-L$sqlite3_prefix_lib $LIBS"
  5573. CPPFLAGS="-I$sqlite3_prefix_include $CPPFLAGS"
  5574. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sqlite3_open in -lsqlite3" >&5
  5575. $as_echo_n "checking for sqlite3_open in -lsqlite3... " >&6; }
  5576. if test "${ac_cv_lib_sqlite3_sqlite3_open+set}" = set; then :
  5577. $as_echo_n "(cached) " >&6
  5578. else
  5579. ac_check_lib_save_LIBS=$LIBS
  5580. LIBS="-lsqlite3 $LIBS"
  5581. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5582. /* end confdefs.h. */
  5583. /* Override any GCC internal prototype to avoid an error.
  5584. Use char because int might match the return type of a GCC
  5585. builtin and then its argument prototype would still apply. */
  5586. #ifdef __cplusplus
  5587. extern "C"
  5588. #endif
  5589. char sqlite3_open ();
  5590. int
  5591. main ()
  5592. {
  5593. return sqlite3_open ();
  5594. ;
  5595. return 0;
  5596. }
  5597. _ACEOF
  5598. if ac_fn_cxx_try_link "$LINENO"; then :
  5599. ac_cv_lib_sqlite3_sqlite3_open=yes
  5600. else
  5601. ac_cv_lib_sqlite3_sqlite3_open=no
  5602. fi
  5603. rm -f core conftest.err conftest.$ac_objext \
  5604. conftest$ac_exeext conftest.$ac_ext
  5605. LIBS=$ac_check_lib_save_LIBS
  5606. fi
  5607. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_sqlite3_sqlite3_open" >&5
  5608. $as_echo "$ac_cv_lib_sqlite3_sqlite3_open" >&6; }
  5609. if test "x$ac_cv_lib_sqlite3_sqlite3_open" = x""yes; then :
  5610. have_sqlite3=yes
  5611. fi
  5612. if test "x$have_sqlite3" = "xyes"; then
  5613. SQLITE3_LIBS="-L$sqlite3_prefix_lib -lsqlite3"
  5614. SQLITE3_CFLAGS="-I$sqlite3_prefix_include"
  5615. fi
  5616. fi
  5617. if test "x$have_sqlite3" = "xyes"; then
  5618. LIBS="$SQLITE3_LIBS $LIBS"
  5619. CPPFLAGS="$SQLITE3_CFLAGS $CPPFLAGS"
  5620. for ac_func in sqlite3_open_v2
  5621. do :
  5622. ac_fn_cxx_check_func "$LINENO" "sqlite3_open_v2" "ac_cv_func_sqlite3_open_v2"
  5623. if test "x$ac_cv_func_sqlite3_open_v2" = x""yes; then :
  5624. cat >>confdefs.h <<_ACEOF
  5625. #define HAVE_SQLITE3_OPEN_V2 1
  5626. _ACEOF
  5627. fi
  5628. done
  5629. $as_echo "#define HAVE_SQLITE3 1" >>confdefs.h
  5630. fi
  5631. LIBS=$LIBS_save
  5632. CPPFLAGS=$CPPFLAGS_save
  5633. fi
  5634. if test "x$with_gnutls" = "xyes"; then
  5635. # gnutls >= 2.8 doesn't have libgnutls-config anymore.
  5636. # First check the presence of libgnutls using pkg-config.
  5637. pkg_failed=no
  5638. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LIBGNUTLS" >&5
  5639. $as_echo_n "checking for LIBGNUTLS... " >&6; }
  5640. if test -n "$PKG_CONFIG"; then
  5641. if test -n "$LIBGNUTLS_CFLAGS"; then
  5642. pkg_cv_LIBGNUTLS_CFLAGS="$LIBGNUTLS_CFLAGS"
  5643. else
  5644. if test -n "$PKG_CONFIG" && \
  5645. { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gnutls >= 1.2.9\""; } >&5
  5646. ($PKG_CONFIG --exists --print-errors "gnutls >= 1.2.9") 2>&5
  5647. ac_status=$?
  5648. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  5649. test $ac_status = 0; }; then
  5650. pkg_cv_LIBGNUTLS_CFLAGS=`$PKG_CONFIG --cflags "gnutls >= 1.2.9" 2>/dev/null`
  5651. else
  5652. pkg_failed=yes
  5653. fi
  5654. fi
  5655. else
  5656. pkg_failed=untried
  5657. fi
  5658. if test -n "$PKG_CONFIG"; then
  5659. if test -n "$LIBGNUTLS_LIBS"; then
  5660. pkg_cv_LIBGNUTLS_LIBS="$LIBGNUTLS_LIBS"
  5661. else
  5662. if test -n "$PKG_CONFIG" && \
  5663. { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gnutls >= 1.2.9\""; } >&5
  5664. ($PKG_CONFIG --exists --print-errors "gnutls >= 1.2.9") 2>&5
  5665. ac_status=$?
  5666. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  5667. test $ac_status = 0; }; then
  5668. pkg_cv_LIBGNUTLS_LIBS=`$PKG_CONFIG --libs "gnutls >= 1.2.9" 2>/dev/null`
  5669. else
  5670. pkg_failed=yes
  5671. fi
  5672. fi
  5673. else
  5674. pkg_failed=untried
  5675. fi
  5676. if test $pkg_failed = yes; then
  5677. if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
  5678. _pkg_short_errors_supported=yes
  5679. else
  5680. _pkg_short_errors_supported=no
  5681. fi
  5682. if test $_pkg_short_errors_supported = yes; then
  5683. LIBGNUTLS_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "gnutls >= 1.2.9"`
  5684. else
  5685. LIBGNUTLS_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "gnutls >= 1.2.9"`
  5686. fi
  5687. # Put the nasty error message in config.log where it belongs
  5688. echo "$LIBGNUTLS_PKG_ERRORS" >&5
  5689. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5690. $as_echo "no" >&6; }
  5691. have_libgnutls=no
  5692. elif test $pkg_failed = untried; then
  5693. have_libgnutls=no
  5694. else
  5695. LIBGNUTLS_CFLAGS=$pkg_cv_LIBGNUTLS_CFLAGS
  5696. LIBGNUTLS_LIBS=$pkg_cv_LIBGNUTLS_LIBS
  5697. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  5698. $as_echo "yes" >&6; }
  5699. have_libgnutls=yes
  5700. fi
  5701. # If no libgnutls found by pkg-config, fall back to old macro
  5702. if test "x$have_libgnutls" = "xno"; then
  5703. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $LIBGNUTLS_PKG_ERRORS" >&5
  5704. $as_echo "$as_me: WARNING: $LIBGNUTLS_PKG_ERRORS" >&2;}
  5705. # Check whether --with-libgnutls-prefix was given.
  5706. if test "${with_libgnutls_prefix+set}" = set; then :
  5707. withval=$with_libgnutls_prefix; libgnutls_config_prefix="$withval"
  5708. else
  5709. libgnutls_config_prefix=""
  5710. fi
  5711. if test x$libgnutls_config_prefix != x ; then
  5712. if test x${LIBGNUTLS_CONFIG+set} != xset ; then
  5713. LIBGNUTLS_CONFIG=$libgnutls_config_prefix/bin/libgnutls-config
  5714. fi
  5715. fi
  5716. # Extract the first word of "libgnutls-config", so it can be a program name with args.
  5717. set dummy libgnutls-config; ac_word=$2
  5718. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5719. $as_echo_n "checking for $ac_word... " >&6; }
  5720. if test "${ac_cv_path_LIBGNUTLS_CONFIG+set}" = set; then :
  5721. $as_echo_n "(cached) " >&6
  5722. else
  5723. case $LIBGNUTLS_CONFIG in
  5724. [\\/]* | ?:[\\/]*)
  5725. ac_cv_path_LIBGNUTLS_CONFIG="$LIBGNUTLS_CONFIG" # Let the user override the test with a path.
  5726. ;;
  5727. *)
  5728. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5729. for as_dir in $PATH
  5730. do
  5731. IFS=$as_save_IFS
  5732. test -z "$as_dir" && as_dir=.
  5733. for ac_exec_ext in '' $ac_executable_extensions; do
  5734. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  5735. ac_cv_path_LIBGNUTLS_CONFIG="$as_dir/$ac_word$ac_exec_ext"
  5736. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5737. break 2
  5738. fi
  5739. done
  5740. done
  5741. IFS=$as_save_IFS
  5742. test -z "$ac_cv_path_LIBGNUTLS_CONFIG" && ac_cv_path_LIBGNUTLS_CONFIG="no"
  5743. ;;
  5744. esac
  5745. fi
  5746. LIBGNUTLS_CONFIG=$ac_cv_path_LIBGNUTLS_CONFIG
  5747. if test -n "$LIBGNUTLS_CONFIG"; then
  5748. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBGNUTLS_CONFIG" >&5
  5749. $as_echo "$LIBGNUTLS_CONFIG" >&6; }
  5750. else
  5751. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5752. $as_echo "no" >&6; }
  5753. fi
  5754. min_libgnutls_version=1.2.9
  5755. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libgnutls - version >= $min_libgnutls_version" >&5
  5756. $as_echo_n "checking for libgnutls - version >= $min_libgnutls_version... " >&6; }
  5757. no_libgnutls=""
  5758. if test "$LIBGNUTLS_CONFIG" = "no" ; then
  5759. no_libgnutls=yes
  5760. else
  5761. LIBGNUTLS_CFLAGS=`$LIBGNUTLS_CONFIG $libgnutls_config_args --cflags`
  5762. LIBGNUTLS_LIBS=`$LIBGNUTLS_CONFIG $libgnutls_config_args --libs`
  5763. libgnutls_config_version=`$LIBGNUTLS_CONFIG $libgnutls_config_args --version`
  5764. ac_save_CFLAGS="$CFLAGS"
  5765. ac_save_LIBS="$LIBS"
  5766. CFLAGS="$CFLAGS $LIBGNUTLS_CFLAGS"
  5767. LIBS="$LIBS $LIBGNUTLS_LIBS"
  5768. rm -f conf.libgnutlstest
  5769. if test "$cross_compiling" = yes; then :
  5770. echo $ac_n "cross compiling; assumed OK... $ac_c"
  5771. else
  5772. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5773. /* end confdefs.h. */
  5774. #include <stdio.h>
  5775. #include <stdlib.h>
  5776. #include <string.h>
  5777. #include <gnutls/gnutls.h>
  5778. int
  5779. main ()
  5780. {
  5781. system ("touch conf.libgnutlstest");
  5782. if( strcmp( gnutls_check_version(NULL), "$libgnutls_config_version" ) )
  5783. {
  5784. printf("\n*** 'libgnutls-config --version' returned %s, but LIBGNUTLS (%s)\n",
  5785. "$libgnutls_config_version", gnutls_check_version(NULL) );
  5786. printf("*** was found! If libgnutls-config was correct, then it is best\n");
  5787. printf("*** to remove the old version of LIBGNUTLS. You may also be able to fix the error\n");
  5788. printf("*** by modifying your LD_LIBRARY_PATH enviroment variable, or by editing\n");
  5789. printf("*** /etc/ld.so.conf. Make sure you have run ldconfig if that is\n");
  5790. printf("*** required on your system.\n");
  5791. printf("*** If libgnutls-config was wrong, set the environment variable LIBGNUTLS_CONFIG\n");
  5792. printf("*** to point to the correct copy of libgnutls-config, and remove the file config.cache\n");
  5793. printf("*** before re-running configure\n");
  5794. }
  5795. else if ( strcmp(gnutls_check_version(NULL), LIBGNUTLS_VERSION ) )
  5796. {
  5797. printf("\n*** LIBGNUTLS header file (version %s) does not match\n", LIBGNUTLS_VERSION);
  5798. printf("*** library (version %s)\n", gnutls_check_version(NULL) );
  5799. }
  5800. else
  5801. {
  5802. if ( gnutls_check_version( "$min_libgnutls_version" ) )
  5803. {
  5804. return 0;
  5805. }
  5806. else
  5807. {
  5808. printf("no\n*** An old version of LIBGNUTLS (%s) was found.\n",
  5809. gnutls_check_version(NULL) );
  5810. printf("*** You need a version of LIBGNUTLS newer than %s. The latest version of\n",
  5811. "$min_libgnutls_version" );
  5812. printf("*** LIBGNUTLS is always available from ftp://gnutls.hellug.gr/pub/gnutls.\n");
  5813. printf("*** \n");
  5814. printf("*** If you have already installed a sufficiently new version, this error\n");
  5815. printf("*** probably means that the wrong copy of the libgnutls-config shell script is\n");
  5816. printf("*** being found. The easiest way to fix this is to remove the old version\n");
  5817. printf("*** of LIBGNUTLS, but you can also set the LIBGNUTLS_CONFIG environment to point to the\n");
  5818. printf("*** correct copy of libgnutls-config. (In this case, you will have to\n");
  5819. printf("*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf\n");
  5820. printf("*** so that the correct libraries are found at run-time))\n");
  5821. }
  5822. }
  5823. return 1;
  5824. }
  5825. _ACEOF
  5826. if ac_fn_cxx_try_run "$LINENO"; then :
  5827. else
  5828. no_libgnutls=yes
  5829. fi
  5830. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  5831. conftest.$ac_objext conftest.beam conftest.$ac_ext
  5832. fi
  5833. CFLAGS="$ac_save_CFLAGS"
  5834. LIBS="$ac_save_LIBS"
  5835. fi
  5836. if test "x$no_libgnutls" = x ; then
  5837. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  5838. $as_echo "yes" >&6; }
  5839. have_libgnutls=yes
  5840. else
  5841. if test -f conf.libgnutlstest ; then
  5842. :
  5843. else
  5844. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5845. $as_echo "no" >&6; }
  5846. fi
  5847. if test "$LIBGNUTLS_CONFIG" = "no" ; then
  5848. echo "*** The libgnutls-config script installed by LIBGNUTLS could not be found"
  5849. echo "*** If LIBGNUTLS was installed in PREFIX, make sure PREFIX/bin is in"
  5850. echo "*** your path, or set the LIBGNUTLS_CONFIG environment variable to the"
  5851. echo "*** full path to libgnutls-config."
  5852. else
  5853. if test -f conf.libgnutlstest ; then
  5854. :
  5855. else
  5856. echo "*** Could not run libgnutls test program, checking why..."
  5857. CFLAGS="$CFLAGS $LIBGNUTLS_CFLAGS"
  5858. LIBS="$LIBS $LIBGNUTLS_LIBS"
  5859. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5860. /* end confdefs.h. */
  5861. #include <stdio.h>
  5862. #include <stdlib.h>
  5863. #include <string.h>
  5864. #include <gnutls/gnutls.h>
  5865. int
  5866. main ()
  5867. {
  5868. return !!gnutls_check_version(NULL);
  5869. ;
  5870. return 0;
  5871. }
  5872. _ACEOF
  5873. if ac_fn_cxx_try_link "$LINENO"; then :
  5874. echo "*** The test program compiled, but did not run. This usually means"
  5875. echo "*** that the run-time linker is not finding LIBGNUTLS or finding the wrong"
  5876. echo "*** version of LIBGNUTLS. If it is not finding LIBGNUTLS, you'll need to set your"
  5877. echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
  5878. echo "*** to the installed location Also, make sure you have run ldconfig if that"
  5879. echo "*** is required on your system"
  5880. echo "***"
  5881. echo "*** If you have an old version installed, it is best to remove it, although"
  5882. echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
  5883. echo "***"
  5884. else
  5885. echo "*** The test program failed to compile or link. See the file config.log for the"
  5886. echo "*** exact error that occured. This usually means LIBGNUTLS was incorrectly installed"
  5887. echo "*** or that you have moved LIBGNUTLS since it was installed. In the latter case, you"
  5888. echo "*** may want to edit the libgnutls-config script: $LIBGNUTLS_CONFIG"
  5889. fi
  5890. rm -f core conftest.err conftest.$ac_objext \
  5891. conftest$ac_exeext conftest.$ac_ext
  5892. CFLAGS="$ac_save_CFLAGS"
  5893. LIBS="$ac_save_LIBS"
  5894. fi
  5895. fi
  5896. LIBGNUTLS_CFLAGS=""
  5897. LIBGNUTLS_LIBS=""
  5898. :
  5899. fi
  5900. rm -f conf.libgnutlstest
  5901. fi
  5902. if test "x$have_libgnutls" = "xyes"; then
  5903. $as_echo "#define HAVE_LIBGNUTLS 1" >>confdefs.h
  5904. fi
  5905. fi
  5906. if test "x$have_libgnutls" = "xyes"; then
  5907. # Check whether --with-libgcrypt-prefix was given.
  5908. if test "${with_libgcrypt_prefix+set}" = set; then :
  5909. withval=$with_libgcrypt_prefix; libgcrypt_config_prefix="$withval"
  5910. else
  5911. libgcrypt_config_prefix=""
  5912. fi
  5913. if test x$libgcrypt_config_prefix != x ; then
  5914. if test x${LIBGCRYPT_CONFIG+set} != xset ; then
  5915. LIBGCRYPT_CONFIG=$libgcrypt_config_prefix/bin/libgcrypt-config
  5916. fi
  5917. fi
  5918. # Extract the first word of "libgcrypt-config", so it can be a program name with args.
  5919. set dummy libgcrypt-config; ac_word=$2
  5920. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5921. $as_echo_n "checking for $ac_word... " >&6; }
  5922. if test "${ac_cv_path_LIBGCRYPT_CONFIG+set}" = set; then :
  5923. $as_echo_n "(cached) " >&6
  5924. else
  5925. case $LIBGCRYPT_CONFIG in
  5926. [\\/]* | ?:[\\/]*)
  5927. ac_cv_path_LIBGCRYPT_CONFIG="$LIBGCRYPT_CONFIG" # Let the user override the test with a path.
  5928. ;;
  5929. *)
  5930. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5931. for as_dir in $PATH
  5932. do
  5933. IFS=$as_save_IFS
  5934. test -z "$as_dir" && as_dir=.
  5935. for ac_exec_ext in '' $ac_executable_extensions; do
  5936. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  5937. ac_cv_path_LIBGCRYPT_CONFIG="$as_dir/$ac_word$ac_exec_ext"
  5938. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5939. break 2
  5940. fi
  5941. done
  5942. done
  5943. IFS=$as_save_IFS
  5944. test -z "$ac_cv_path_LIBGCRYPT_CONFIG" && ac_cv_path_LIBGCRYPT_CONFIG="no"
  5945. ;;
  5946. esac
  5947. fi
  5948. LIBGCRYPT_CONFIG=$ac_cv_path_LIBGCRYPT_CONFIG
  5949. if test -n "$LIBGCRYPT_CONFIG"; then
  5950. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBGCRYPT_CONFIG" >&5
  5951. $as_echo "$LIBGCRYPT_CONFIG" >&6; }
  5952. else
  5953. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5954. $as_echo "no" >&6; }
  5955. fi
  5956. tmp=1.2.2
  5957. if echo "$tmp" | grep ':' >/dev/null 2>/dev/null ; then
  5958. req_libgcrypt_api=`echo "$tmp" | sed 's/\(.*\):\(.*\)/\1/'`
  5959. min_libgcrypt_version=`echo "$tmp" | sed 's/\(.*\):\(.*\)/\2/'`
  5960. else
  5961. req_libgcrypt_api=0
  5962. min_libgcrypt_version="$tmp"
  5963. fi
  5964. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LIBGCRYPT - version >= $min_libgcrypt_version" >&5
  5965. $as_echo_n "checking for LIBGCRYPT - version >= $min_libgcrypt_version... " >&6; }
  5966. ok=no
  5967. if test "$LIBGCRYPT_CONFIG" != "no" ; then
  5968. req_major=`echo $min_libgcrypt_version | \
  5969. sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\1/'`
  5970. req_minor=`echo $min_libgcrypt_version | \
  5971. sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\2/'`
  5972. req_micro=`echo $min_libgcrypt_version | \
  5973. sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\3/'`
  5974. libgcrypt_config_version=`$LIBGCRYPT_CONFIG --version`
  5975. major=`echo $libgcrypt_config_version | \
  5976. sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\).*/\1/'`
  5977. minor=`echo $libgcrypt_config_version | \
  5978. sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\).*/\2/'`
  5979. micro=`echo $libgcrypt_config_version | \
  5980. sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\).*/\3/'`
  5981. if test "$major" -gt "$req_major"; then
  5982. ok=yes
  5983. else
  5984. if test "$major" -eq "$req_major"; then
  5985. if test "$minor" -gt "$req_minor"; then
  5986. ok=yes
  5987. else
  5988. if test "$minor" -eq "$req_minor"; then
  5989. if test "$micro" -ge "$req_micro"; then
  5990. ok=yes
  5991. fi
  5992. fi
  5993. fi
  5994. fi
  5995. fi
  5996. fi
  5997. if test $ok = yes; then
  5998. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes ($libgcrypt_config_version)" >&5
  5999. $as_echo "yes ($libgcrypt_config_version)" >&6; }
  6000. else
  6001. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6002. $as_echo "no" >&6; }
  6003. fi
  6004. if test $ok = yes; then
  6005. # If we have a recent libgcrypt, we should also check that the
  6006. # API is compatible
  6007. if test "$req_libgcrypt_api" -gt 0 ; then
  6008. tmp=`$LIBGCRYPT_CONFIG --api-version 2>/dev/null || echo 0`
  6009. if test "$tmp" -gt 0 ; then
  6010. { $as_echo "$as_me:${as_lineno-$LINENO}: checking LIBGCRYPT API version" >&5
  6011. $as_echo_n "checking LIBGCRYPT API version... " >&6; }
  6012. if test "$req_libgcrypt_api" -eq "$tmp" ; then
  6013. { $as_echo "$as_me:${as_lineno-$LINENO}: result: okay" >&5
  6014. $as_echo "okay" >&6; }
  6015. else
  6016. ok=no
  6017. { $as_echo "$as_me:${as_lineno-$LINENO}: result: does not match. want=$req_libgcrypt_api got=$tmp" >&5
  6018. $as_echo "does not match. want=$req_libgcrypt_api got=$tmp" >&6; }
  6019. fi
  6020. fi
  6021. fi
  6022. fi
  6023. if test $ok = yes; then
  6024. LIBGCRYPT_CFLAGS=`$LIBGCRYPT_CONFIG --cflags`
  6025. LIBGCRYPT_LIBS=`$LIBGCRYPT_CONFIG --libs`
  6026. have_libgcrypt=yes
  6027. else
  6028. LIBGCRYPT_CFLAGS=""
  6029. LIBGCRYPT_LIBS=""
  6030. :
  6031. fi
  6032. if test "x$have_libgcrypt" = "xyes"; then
  6033. $as_echo "#define HAVE_LIBGCRYPT 1" >>confdefs.h
  6034. fi
  6035. fi
  6036. if test "x$with_openssl" = "xyes" && test "x$have_libgnutls" != "xyes"; then
  6037. # Check whether --with-openssl-prefix was given.
  6038. if test "${with_openssl_prefix+set}" = set; then :
  6039. withval=$with_openssl_prefix; openssl_prefix=$withval
  6040. else
  6041. openssl_prefix=""
  6042. fi
  6043. if test "x$openssl_prefix" = "x"; then
  6044. openssl_prefix="/usr/local"
  6045. fi
  6046. LIBS_save=$LIBS
  6047. CPPFLAGS_save=$CPPFLAGS
  6048. PKG_CONFIG="$openssl_prefix/bin/pkg-config"
  6049. if test -x $PKG_CONFIG; then
  6050. { $as_echo "$as_me:${as_lineno-$LINENO}: checking checking availability of openssl using pkg-config" >&5
  6051. $as_echo_n "checking checking availability of openssl using pkg-config... " >&6; }
  6052. $PKG_CONFIG --exists openssl
  6053. if test "$?" = "0"; then
  6054. # Use pkg-config to detect LIBS and CFLAGS
  6055. OPENSSL_LIBS=`$PKG_CONFIG --libs openssl`
  6056. OPENSSL_CFLAGS=`$PKG_CONFIG --cflags openssl`
  6057. LIBS="$OPENSSL_LIBS $LIBS"
  6058. CPPFLAGS="$OPENSSL_CFLAGS $CPPFLAGS"
  6059. have_openssl=yes
  6060. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  6061. $as_echo "yes" >&6; }
  6062. else
  6063. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6064. $as_echo "no" >&6; }
  6065. fi
  6066. fi
  6067. if test "x$have_openssl" != "xyes"; then
  6068. openssl_prefix_lib=$openssl_prefix/lib
  6069. openssl_prefix_include=$openssl_prefix/include
  6070. LIBS="-L$openssl_prefix_lib $LIBS"
  6071. CPPFLAGS="-I$openssl_prefix_include $CPPFLAGS"
  6072. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SSL_library_init in -lssl" >&5
  6073. $as_echo_n "checking for SSL_library_init in -lssl... " >&6; }
  6074. if test "${ac_cv_lib_ssl_SSL_library_init+set}" = set; then :
  6075. $as_echo_n "(cached) " >&6
  6076. else
  6077. ac_check_lib_save_LIBS=$LIBS
  6078. LIBS="-lssl $LIBS"
  6079. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6080. /* end confdefs.h. */
  6081. /* Override any GCC internal prototype to avoid an error.
  6082. Use char because int might match the return type of a GCC
  6083. builtin and then its argument prototype would still apply. */
  6084. #ifdef __cplusplus
  6085. extern "C"
  6086. #endif
  6087. char SSL_library_init ();
  6088. int
  6089. main ()
  6090. {
  6091. return SSL_library_init ();
  6092. ;
  6093. return 0;
  6094. }
  6095. _ACEOF
  6096. if ac_fn_cxx_try_link "$LINENO"; then :
  6097. ac_cv_lib_ssl_SSL_library_init=yes
  6098. else
  6099. ac_cv_lib_ssl_SSL_library_init=no
  6100. fi
  6101. rm -f core conftest.err conftest.$ac_objext \
  6102. conftest$ac_exeext conftest.$ac_ext
  6103. LIBS=$ac_check_lib_save_LIBS
  6104. fi
  6105. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ssl_SSL_library_init" >&5
  6106. $as_echo "$ac_cv_lib_ssl_SSL_library_init" >&6; }
  6107. if test "x$ac_cv_lib_ssl_SSL_library_init" = x""yes; then :
  6108. have_openssl=yes LIBS="-lssl $LIBS"
  6109. fi
  6110. if test "x$have_openssl" = "xyes"; then
  6111. have_openssl=no
  6112. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lcrypto" >&5
  6113. $as_echo_n "checking for main in -lcrypto... " >&6; }
  6114. if test "${ac_cv_lib_crypto_main+set}" = set; then :
  6115. $as_echo_n "(cached) " >&6
  6116. else
  6117. ac_check_lib_save_LIBS=$LIBS
  6118. LIBS="-lcrypto $LIBS"
  6119. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6120. /* end confdefs.h. */
  6121. int
  6122. main ()
  6123. {
  6124. return main ();
  6125. ;
  6126. return 0;
  6127. }
  6128. _ACEOF
  6129. if ac_fn_cxx_try_link "$LINENO"; then :
  6130. ac_cv_lib_crypto_main=yes
  6131. else
  6132. ac_cv_lib_crypto_main=no
  6133. fi
  6134. rm -f core conftest.err conftest.$ac_objext \
  6135. conftest$ac_exeext conftest.$ac_ext
  6136. LIBS=$ac_check_lib_save_LIBS
  6137. fi
  6138. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_crypto_main" >&5
  6139. $as_echo "$ac_cv_lib_crypto_main" >&6; }
  6140. if test "x$ac_cv_lib_crypto_main" = x""yes; then :
  6141. have_openssl=yes; LIBS="-lcrypto $LIBS"
  6142. fi
  6143. if test "x$have_openssl" = "xyes"; then
  6144. OPENSSL_LIBS="-L$openssl_prefix_lib -lssl -lcrypto"
  6145. OPENSSL_CFLAGS="-I$openssl_prefix_include"
  6146. fi
  6147. fi
  6148. fi
  6149. if test "x$have_openssl" = "xyes"; then
  6150. $as_echo "#define HAVE_LIBSSL 1" >>confdefs.h
  6151. # check whether EVP_DigestInit_ex exists. Old openssl doesn't have it.
  6152. for ac_func in EVP_DigestInit_ex
  6153. do :
  6154. ac_fn_cxx_check_func "$LINENO" "EVP_DigestInit_ex" "ac_cv_func_EVP_DigestInit_ex"
  6155. if test "x$ac_cv_func_EVP_DigestInit_ex" = x""yes; then :
  6156. cat >>confdefs.h <<_ACEOF
  6157. #define HAVE_EVP_DIGESTINIT_EX 1
  6158. _ACEOF
  6159. have_digestinit_ex=yes
  6160. fi
  6161. done
  6162. if test "x$have_digestinit_ex" = "x"; then
  6163. $as_echo "#define HAVE_OLD_LIBSSL 1" >>confdefs.h
  6164. fi
  6165. # search for sha256 support
  6166. for ac_func in EVP_sha256
  6167. do :
  6168. ac_fn_cxx_check_func "$LINENO" "EVP_sha256" "ac_cv_func_EVP_sha256"
  6169. if test "x$ac_cv_func_EVP_sha256" = x""yes; then :
  6170. cat >>confdefs.h <<_ACEOF
  6171. #define HAVE_EVP_SHA256 1
  6172. _ACEOF
  6173. fi
  6174. done
  6175. fi
  6176. LIBS=$LIBS_save
  6177. CPPFLAGS=$CPPFLAGS_save
  6178. fi
  6179. if test "x$with_libcares" = "xyes"; then
  6180. # Check whether --with-libcares-prefix was given.
  6181. if test "${with_libcares_prefix+set}" = set; then :
  6182. withval=$with_libcares_prefix; libcares_prefix=$withval
  6183. else
  6184. libcares_prefix=""
  6185. fi
  6186. if test "x$libcares_prefix" = "x"; then
  6187. libcares_prefix="/usr"
  6188. fi
  6189. libcares_prefix_lib=$libcares_prefix/lib
  6190. libcares_prefix_include=$libcares_prefix/include
  6191. LIBS_save=$LIBS
  6192. CPPFLAGS_save=$CPPFLAGS
  6193. LIBS="-L$libcares_prefix_lib $LIBS"
  6194. CPPFLAGS="-I$libcares_prefix_include -Wall $CPPFLAGS"
  6195. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ares_init in -lcares" >&5
  6196. $as_echo_n "checking for ares_init in -lcares... " >&6; }
  6197. if test "${ac_cv_lib_cares_ares_init+set}" = set; then :
  6198. $as_echo_n "(cached) " >&6
  6199. else
  6200. ac_check_lib_save_LIBS=$LIBS
  6201. LIBS="-lcares $LIBS"
  6202. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6203. /* end confdefs.h. */
  6204. /* Override any GCC internal prototype to avoid an error.
  6205. Use char because int might match the return type of a GCC
  6206. builtin and then its argument prototype would still apply. */
  6207. #ifdef __cplusplus
  6208. extern "C"
  6209. #endif
  6210. char ares_init ();
  6211. int
  6212. main ()
  6213. {
  6214. return ares_init ();
  6215. ;
  6216. return 0;
  6217. }
  6218. _ACEOF
  6219. if ac_fn_cxx_try_link "$LINENO"; then :
  6220. ac_cv_lib_cares_ares_init=yes
  6221. else
  6222. ac_cv_lib_cares_ares_init=no
  6223. fi
  6224. rm -f core conftest.err conftest.$ac_objext \
  6225. conftest$ac_exeext conftest.$ac_ext
  6226. LIBS=$ac_check_lib_save_LIBS
  6227. fi
  6228. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_cares_ares_init" >&5
  6229. $as_echo "$ac_cv_lib_cares_ares_init" >&6; }
  6230. if test "x$ac_cv_lib_cares_ares_init" = x""yes; then :
  6231. have_libcares=yes
  6232. fi
  6233. if test "x$have_libcares" != "xyes"; then
  6234. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ares_init in -lcares" >&5
  6235. $as_echo_n "checking for ares_init in -lcares... " >&6; }
  6236. if test "${ac_cv_lib_cares_ares_init+set}" = set; then :
  6237. $as_echo_n "(cached) " >&6
  6238. else
  6239. ac_check_lib_save_LIBS=$LIBS
  6240. LIBS="-lcares -lrt $LIBS"
  6241. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6242. /* end confdefs.h. */
  6243. /* Override any GCC internal prototype to avoid an error.
  6244. Use char because int might match the return type of a GCC
  6245. builtin and then its argument prototype would still apply. */
  6246. #ifdef __cplusplus
  6247. extern "C"
  6248. #endif
  6249. char ares_init ();
  6250. int
  6251. main ()
  6252. {
  6253. return ares_init ();
  6254. ;
  6255. return 0;
  6256. }
  6257. _ACEOF
  6258. if ac_fn_cxx_try_link "$LINENO"; then :
  6259. ac_cv_lib_cares_ares_init=yes
  6260. else
  6261. ac_cv_lib_cares_ares_init=no
  6262. fi
  6263. rm -f core conftest.err conftest.$ac_objext \
  6264. conftest$ac_exeext conftest.$ac_ext
  6265. LIBS=$ac_check_lib_save_LIBS
  6266. fi
  6267. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_cares_ares_init" >&5
  6268. $as_echo "$ac_cv_lib_cares_ares_init" >&6; }
  6269. if test "x$ac_cv_lib_cares_ares_init" = x""yes; then :
  6270. have_libcares=yes need_librt=yes
  6271. fi
  6272. fi
  6273. if test "x$have_libcares" = "xyes"; then
  6274. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ares_host_callback accepts timeouts(c-ares >= 1.5)" >&5
  6275. $as_echo_n "checking whether ares_host_callback accepts timeouts(c-ares >= 1.5)... " >&6; }
  6276. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6277. /* end confdefs.h. */
  6278. #include <ares.h>
  6279. void callback(void* arg, int status, int timeouts, struct hostent* host);
  6280. int
  6281. main ()
  6282. {
  6283. ares_channel channel;
  6284. ares_gethostbyname(channel, "foo", 0, callback, 0);
  6285. ;
  6286. return 0;
  6287. }
  6288. _ACEOF
  6289. if ac_fn_cxx_try_compile "$LINENO"; then :
  6290. have_libcares1_5=yes
  6291. else
  6292. have_libcares1_5=no
  6293. fi
  6294. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  6295. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_libcares1_5" >&5
  6296. $as_echo "$have_libcares1_5" >&6; }
  6297. if test "x$have_libcares1_5" = "xyes"; then
  6298. $as_echo "#define HAVE_LIBCARES1_5 1" >>confdefs.h
  6299. fi
  6300. $as_echo "#define HAVE_LIBCARES 1" >>confdefs.h
  6301. LIBCARES_LIBS="-L$libcares_prefix_lib -lcares"
  6302. if test "x$need_librt" = "xyes"; then
  6303. LIBCARES_LIBS="$LIBCARES_LIBS -lrt"
  6304. fi
  6305. LIBCARES_CPPFLAGS="-I$libcares_prefix_include"
  6306. fi
  6307. LIBS=$LIBS_save
  6308. CPPFLAGS=$CPPFLAGS_save
  6309. fi
  6310. # Check availability of libz
  6311. if test "x$with_libz" = "xyes"; then
  6312. # Check whether --with-libz-prefix was given.
  6313. if test "${with_libz_prefix+set}" = set; then :
  6314. withval=$with_libz_prefix; libz_prefix=$withval
  6315. else
  6316. libz_prefix=""
  6317. fi
  6318. if test "x$libz_prefix" = "x"; then
  6319. libz_prefix="/usr"
  6320. fi
  6321. libz_prefix_lib=$libz_prefix/lib
  6322. libz_prefix_include=$libz_prefix/include
  6323. LIBS_save=$LIBS
  6324. CPPFLAGS_save=$CPPFLAGS
  6325. LIBS="-L$libz_prefix_lib $LIBS"
  6326. CPPFLAGS="-I$libz_prefix_include $CPPFLAGS"
  6327. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for zlibVersion in -lz" >&5
  6328. $as_echo_n "checking for zlibVersion in -lz... " >&6; }
  6329. if test "${ac_cv_lib_z_zlibVersion+set}" = set; then :
  6330. $as_echo_n "(cached) " >&6
  6331. else
  6332. ac_check_lib_save_LIBS=$LIBS
  6333. LIBS="-lz $LIBS"
  6334. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6335. /* end confdefs.h. */
  6336. /* Override any GCC internal prototype to avoid an error.
  6337. Use char because int might match the return type of a GCC
  6338. builtin and then its argument prototype would still apply. */
  6339. #ifdef __cplusplus
  6340. extern "C"
  6341. #endif
  6342. char zlibVersion ();
  6343. int
  6344. main ()
  6345. {
  6346. return zlibVersion ();
  6347. ;
  6348. return 0;
  6349. }
  6350. _ACEOF
  6351. if ac_fn_cxx_try_link "$LINENO"; then :
  6352. ac_cv_lib_z_zlibVersion=yes
  6353. else
  6354. ac_cv_lib_z_zlibVersion=no
  6355. fi
  6356. rm -f core conftest.err conftest.$ac_objext \
  6357. conftest$ac_exeext conftest.$ac_ext
  6358. LIBS=$ac_check_lib_save_LIBS
  6359. fi
  6360. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_zlibVersion" >&5
  6361. $as_echo "$ac_cv_lib_z_zlibVersion" >&6; }
  6362. if test "x$ac_cv_lib_z_zlibVersion" = x""yes; then :
  6363. have_libz=yes
  6364. fi
  6365. if test "x$have_libz" = "xyes"; then
  6366. $as_echo "#define HAVE_LIBZ 1" >>confdefs.h
  6367. LIBZ_LIBS="-L$libz_prefix_lib -lz"
  6368. LIBZ_CPPFLAGS="-I$libz_prefix_include"
  6369. fi
  6370. LIBS=$LIBS_save
  6371. CPPFLAGS=$CPPFLAGS_save
  6372. fi
  6373. # Define variables based on the result of the checks for libraries.
  6374. if test "x$have_libgnutls" = "xyes" || test "x$have_openssl" = "xyes"; then
  6375. $as_echo "#define ENABLE_SSL 1" >>confdefs.h
  6376. if true; then
  6377. ENABLE_SSL_TRUE=
  6378. ENABLE_SSL_FALSE='#'
  6379. else
  6380. ENABLE_SSL_TRUE='#'
  6381. ENABLE_SSL_FALSE=
  6382. fi
  6383. else
  6384. if false; then
  6385. ENABLE_SSL_TRUE=
  6386. ENABLE_SSL_FALSE='#'
  6387. else
  6388. ENABLE_SSL_TRUE='#'
  6389. ENABLE_SSL_FALSE=
  6390. fi
  6391. fi
  6392. if test "x$have_libgnutls" = "xyes" ; then
  6393. HAVE_LIBGNUTLS_TRUE=
  6394. HAVE_LIBGNUTLS_FALSE='#'
  6395. else
  6396. HAVE_LIBGNUTLS_TRUE='#'
  6397. HAVE_LIBGNUTLS_FALSE=
  6398. fi
  6399. if test "x$have_openssl" = "xyes" ; then
  6400. HAVE_LIBSSL_TRUE=
  6401. HAVE_LIBSSL_FALSE='#'
  6402. else
  6403. HAVE_LIBSSL_TRUE='#'
  6404. HAVE_LIBSSL_FALSE=
  6405. fi
  6406. if test "x$have_libgcrypt" = "xyes" || test "x$have_openssl" = "xyes"; then
  6407. $as_echo "#define ENABLE_MESSAGE_DIGEST 1" >>confdefs.h
  6408. if true; then
  6409. ENABLE_MESSAGE_DIGEST_TRUE=
  6410. ENABLE_MESSAGE_DIGEST_FALSE='#'
  6411. else
  6412. ENABLE_MESSAGE_DIGEST_TRUE='#'
  6413. ENABLE_MESSAGE_DIGEST_FALSE=
  6414. fi
  6415. enable_message_digest=yes
  6416. else
  6417. if false; then
  6418. ENABLE_MESSAGE_DIGEST_TRUE=
  6419. ENABLE_MESSAGE_DIGEST_FALSE='#'
  6420. else
  6421. ENABLE_MESSAGE_DIGEST_TRUE='#'
  6422. ENABLE_MESSAGE_DIGEST_FALSE=
  6423. fi
  6424. fi
  6425. if test "x$enable_bittorrent" = "xyes" &&
  6426. test "x$enable_message_digest" = "xyes"; then
  6427. $as_echo "#define ENABLE_BITTORRENT 1" >>confdefs.h
  6428. if true; then
  6429. ENABLE_BITTORRENT_TRUE=
  6430. ENABLE_BITTORRENT_FALSE='#'
  6431. else
  6432. ENABLE_BITTORRENT_TRUE='#'
  6433. ENABLE_BITTORRENT_FALSE=
  6434. fi
  6435. else
  6436. enable_bittorrent=no
  6437. if false; then
  6438. ENABLE_BITTORRENT_TRUE=
  6439. ENABLE_BITTORRENT_FALSE='#'
  6440. else
  6441. ENABLE_BITTORRENT_TRUE='#'
  6442. ENABLE_BITTORRENT_FALSE=
  6443. fi
  6444. fi
  6445. if (test "x$have_libxml2" = "xyes" || test "x$have_libexpat" = "xyes") &&
  6446. test "x$enable_metalink" = "xyes"; then
  6447. $as_echo "#define ENABLE_METALINK 1" >>confdefs.h
  6448. if true; then
  6449. ENABLE_METALINK_TRUE=
  6450. ENABLE_METALINK_FALSE='#'
  6451. else
  6452. ENABLE_METALINK_TRUE='#'
  6453. ENABLE_METALINK_FALSE=
  6454. fi
  6455. else
  6456. enable_metalink=no
  6457. if false; then
  6458. ENABLE_METALINK_TRUE=
  6459. ENABLE_METALINK_FALSE='#'
  6460. else
  6461. ENABLE_METALINK_TRUE='#'
  6462. ENABLE_METALINK_FALSE=
  6463. fi
  6464. fi
  6465. if test "x$enable_metalink" = "xyes" && test "x$have_libxml2" = "xyes"; then
  6466. ENABLE_METALINK_LIBXML2_TRUE=
  6467. ENABLE_METALINK_LIBXML2_FALSE='#'
  6468. else
  6469. ENABLE_METALINK_LIBXML2_TRUE='#'
  6470. ENABLE_METALINK_LIBXML2_FALSE=
  6471. fi
  6472. if test "x$enable_metalink" = "xyes" && test "x$have_libexpat" = "xyes"; then
  6473. ENABLE_METALINK_LIBEXPAT_TRUE=
  6474. ENABLE_METALINK_LIBEXPAT_FALSE='#'
  6475. else
  6476. ENABLE_METALINK_LIBEXPAT_TRUE='#'
  6477. ENABLE_METALINK_LIBEXPAT_FALSE=
  6478. fi
  6479. if test "x$have_libxml2" = "xyes" || test "x$have_libexpat" = "xyes"; then
  6480. enable_xml_rpc=yes
  6481. fi
  6482. if test "x$enable_xml_rpc" = "xyes"; then
  6483. $as_echo "#define ENABLE_XML_RPC 1" >>confdefs.h
  6484. fi
  6485. if test "x$enable_xml_rpc" = "xyes"; then
  6486. ENABLE_XML_RPC_TRUE=
  6487. ENABLE_XML_RPC_FALSE='#'
  6488. else
  6489. ENABLE_XML_RPC_TRUE='#'
  6490. ENABLE_XML_RPC_FALSE=
  6491. fi
  6492. if test "x$have_libxml2" = "xyes"; then
  6493. HAVE_LIBXML2_TRUE=
  6494. HAVE_LIBXML2_FALSE='#'
  6495. else
  6496. HAVE_LIBXML2_TRUE='#'
  6497. HAVE_LIBXML2_FALSE=
  6498. fi
  6499. if test "x$have_libexpat" = "xyes"; then
  6500. HAVE_LIBEXPAT_TRUE=
  6501. HAVE_LIBEXPAT_FALSE='#'
  6502. else
  6503. HAVE_LIBEXPAT_TRUE='#'
  6504. HAVE_LIBEXPAT_FALSE=
  6505. fi
  6506. if test "x$have_libcares" = "xyes"; then
  6507. $as_echo "#define ENABLE_ASYNC_DNS 1" >>confdefs.h
  6508. if true; then
  6509. ENABLE_ASYNC_DNS_TRUE=
  6510. ENABLE_ASYNC_DNS_FALSE='#'
  6511. else
  6512. ENABLE_ASYNC_DNS_TRUE='#'
  6513. ENABLE_ASYNC_DNS_FALSE=
  6514. fi
  6515. else
  6516. if false; then
  6517. ENABLE_ASYNC_DNS_TRUE=
  6518. ENABLE_ASYNC_DNS_FALSE='#'
  6519. else
  6520. ENABLE_ASYNC_DNS_TRUE='#'
  6521. ENABLE_ASYNC_DNS_FALSE=
  6522. fi
  6523. fi
  6524. # Set conditional for libz
  6525. if test "x$have_libz" = "xyes"; then
  6526. HAVE_LIBZ_TRUE=
  6527. HAVE_LIBZ_FALSE='#'
  6528. else
  6529. HAVE_LIBZ_TRUE='#'
  6530. HAVE_LIBZ_FALSE=
  6531. fi
  6532. # Set conditional for sqlite3
  6533. if test "x$have_sqlite3" = "xyes"; then
  6534. HAVE_SQLITE3_TRUE=
  6535. HAVE_SQLITE3_FALSE='#'
  6536. else
  6537. HAVE_SQLITE3_TRUE='#'
  6538. HAVE_SQLITE3_FALSE=
  6539. fi
  6540. # Checks for header files.
  6541. # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
  6542. # for constant arguments. Useless!
  6543. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working alloca.h" >&5
  6544. $as_echo_n "checking for working alloca.h... " >&6; }
  6545. if test "${ac_cv_working_alloca_h+set}" = set; then :
  6546. $as_echo_n "(cached) " >&6
  6547. else
  6548. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6549. /* end confdefs.h. */
  6550. #include <alloca.h>
  6551. int
  6552. main ()
  6553. {
  6554. char *p = (char *) alloca (2 * sizeof (int));
  6555. if (p) return 0;
  6556. ;
  6557. return 0;
  6558. }
  6559. _ACEOF
  6560. if ac_fn_cxx_try_link "$LINENO"; then :
  6561. ac_cv_working_alloca_h=yes
  6562. else
  6563. ac_cv_working_alloca_h=no
  6564. fi
  6565. rm -f core conftest.err conftest.$ac_objext \
  6566. conftest$ac_exeext conftest.$ac_ext
  6567. fi
  6568. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_alloca_h" >&5
  6569. $as_echo "$ac_cv_working_alloca_h" >&6; }
  6570. if test $ac_cv_working_alloca_h = yes; then
  6571. $as_echo "#define HAVE_ALLOCA_H 1" >>confdefs.h
  6572. fi
  6573. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca" >&5
  6574. $as_echo_n "checking for alloca... " >&6; }
  6575. if test "${ac_cv_func_alloca_works+set}" = set; then :
  6576. $as_echo_n "(cached) " >&6
  6577. else
  6578. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6579. /* end confdefs.h. */
  6580. #ifdef __GNUC__
  6581. # define alloca __builtin_alloca
  6582. #else
  6583. # ifdef _MSC_VER
  6584. # include <malloc.h>
  6585. # define alloca _alloca
  6586. # else
  6587. # ifdef HAVE_ALLOCA_H
  6588. # include <alloca.h>
  6589. # else
  6590. # ifdef _AIX
  6591. #pragma alloca
  6592. # else
  6593. # ifndef alloca /* predefined by HP cc +Olibcalls */
  6594. char *alloca ();
  6595. # endif
  6596. # endif
  6597. # endif
  6598. # endif
  6599. #endif
  6600. int
  6601. main ()
  6602. {
  6603. char *p = (char *) alloca (1);
  6604. if (p) return 0;
  6605. ;
  6606. return 0;
  6607. }
  6608. _ACEOF
  6609. if ac_fn_cxx_try_link "$LINENO"; then :
  6610. ac_cv_func_alloca_works=yes
  6611. else
  6612. ac_cv_func_alloca_works=no
  6613. fi
  6614. rm -f core conftest.err conftest.$ac_objext \
  6615. conftest$ac_exeext conftest.$ac_ext
  6616. fi
  6617. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_alloca_works" >&5
  6618. $as_echo "$ac_cv_func_alloca_works" >&6; }
  6619. if test $ac_cv_func_alloca_works = yes; then
  6620. $as_echo "#define HAVE_ALLOCA 1" >>confdefs.h
  6621. else
  6622. # The SVR3 libPW and SVR4 libucb both contain incompatible functions
  6623. # that cause trouble. Some versions do not even contain alloca or
  6624. # contain a buggy version. If you still want to use their alloca,
  6625. # use ar to extract alloca.o from them instead of compiling alloca.c.
  6626. ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
  6627. $as_echo "#define C_ALLOCA 1" >>confdefs.h
  6628. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether \`alloca.c' needs Cray hooks" >&5
  6629. $as_echo_n "checking whether \`alloca.c' needs Cray hooks... " >&6; }
  6630. if test "${ac_cv_os_cray+set}" = set; then :
  6631. $as_echo_n "(cached) " >&6
  6632. else
  6633. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6634. /* end confdefs.h. */
  6635. #if defined CRAY && ! defined CRAY2
  6636. webecray
  6637. #else
  6638. wenotbecray
  6639. #endif
  6640. _ACEOF
  6641. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  6642. $EGREP "webecray" >/dev/null 2>&1; then :
  6643. ac_cv_os_cray=yes
  6644. else
  6645. ac_cv_os_cray=no
  6646. fi
  6647. rm -f conftest*
  6648. fi
  6649. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_os_cray" >&5
  6650. $as_echo "$ac_cv_os_cray" >&6; }
  6651. if test $ac_cv_os_cray = yes; then
  6652. for ac_func in _getb67 GETB67 getb67; do
  6653. as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
  6654. ac_fn_cxx_check_func "$LINENO" "$ac_func" "$as_ac_var"
  6655. eval as_val=\$$as_ac_var
  6656. if test "x$as_val" = x""yes; then :
  6657. cat >>confdefs.h <<_ACEOF
  6658. #define CRAY_STACKSEG_END $ac_func
  6659. _ACEOF
  6660. break
  6661. fi
  6662. done
  6663. fi
  6664. { $as_echo "$as_me:${as_lineno-$LINENO}: checking stack direction for C alloca" >&5
  6665. $as_echo_n "checking stack direction for C alloca... " >&6; }
  6666. if test "${ac_cv_c_stack_direction+set}" = set; then :
  6667. $as_echo_n "(cached) " >&6
  6668. else
  6669. if test "$cross_compiling" = yes; then :
  6670. ac_cv_c_stack_direction=0
  6671. else
  6672. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6673. /* end confdefs.h. */
  6674. $ac_includes_default
  6675. int
  6676. find_stack_direction ()
  6677. {
  6678. static char *addr = 0;
  6679. auto char dummy;
  6680. if (addr == 0)
  6681. {
  6682. addr = &dummy;
  6683. return find_stack_direction ();
  6684. }
  6685. else
  6686. return (&dummy > addr) ? 1 : -1;
  6687. }
  6688. int
  6689. main ()
  6690. {
  6691. return find_stack_direction () < 0;
  6692. }
  6693. _ACEOF
  6694. if ac_fn_cxx_try_run "$LINENO"; then :
  6695. ac_cv_c_stack_direction=1
  6696. else
  6697. ac_cv_c_stack_direction=-1
  6698. fi
  6699. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  6700. conftest.$ac_objext conftest.beam conftest.$ac_ext
  6701. fi
  6702. fi
  6703. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stack_direction" >&5
  6704. $as_echo "$ac_cv_c_stack_direction" >&6; }
  6705. cat >>confdefs.h <<_ACEOF
  6706. #define STACK_DIRECTION $ac_cv_c_stack_direction
  6707. _ACEOF
  6708. fi
  6709. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
  6710. $as_echo_n "checking for ANSI C header files... " >&6; }
  6711. if test "${ac_cv_header_stdc+set}" = set; then :
  6712. $as_echo_n "(cached) " >&6
  6713. else
  6714. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6715. /* end confdefs.h. */
  6716. #include <stdlib.h>
  6717. #include <stdarg.h>
  6718. #include <string.h>
  6719. #include <float.h>
  6720. int
  6721. main ()
  6722. {
  6723. ;
  6724. return 0;
  6725. }
  6726. _ACEOF
  6727. if ac_fn_cxx_try_compile "$LINENO"; then :
  6728. ac_cv_header_stdc=yes
  6729. else
  6730. ac_cv_header_stdc=no
  6731. fi
  6732. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  6733. if test $ac_cv_header_stdc = yes; then
  6734. # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
  6735. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6736. /* end confdefs.h. */
  6737. #include <string.h>
  6738. _ACEOF
  6739. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  6740. $EGREP "memchr" >/dev/null 2>&1; then :
  6741. else
  6742. ac_cv_header_stdc=no
  6743. fi
  6744. rm -f conftest*
  6745. fi
  6746. if test $ac_cv_header_stdc = yes; then
  6747. # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
  6748. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6749. /* end confdefs.h. */
  6750. #include <stdlib.h>
  6751. _ACEOF
  6752. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  6753. $EGREP "free" >/dev/null 2>&1; then :
  6754. else
  6755. ac_cv_header_stdc=no
  6756. fi
  6757. rm -f conftest*
  6758. fi
  6759. if test $ac_cv_header_stdc = yes; then
  6760. # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
  6761. if test "$cross_compiling" = yes; then :
  6762. :
  6763. else
  6764. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6765. /* end confdefs.h. */
  6766. #include <ctype.h>
  6767. #include <stdlib.h>
  6768. #if ((' ' & 0x0FF) == 0x020)
  6769. # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
  6770. # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
  6771. #else
  6772. # define ISLOWER(c) \
  6773. (('a' <= (c) && (c) <= 'i') \
  6774. || ('j' <= (c) && (c) <= 'r') \
  6775. || ('s' <= (c) && (c) <= 'z'))
  6776. # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
  6777. #endif
  6778. #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
  6779. int
  6780. main ()
  6781. {
  6782. int i;
  6783. for (i = 0; i < 256; i++)
  6784. if (XOR (islower (i), ISLOWER (i))
  6785. || toupper (i) != TOUPPER (i))
  6786. return 2;
  6787. return 0;
  6788. }
  6789. _ACEOF
  6790. if ac_fn_cxx_try_run "$LINENO"; then :
  6791. else
  6792. ac_cv_header_stdc=no
  6793. fi
  6794. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  6795. conftest.$ac_objext conftest.beam conftest.$ac_ext
  6796. fi
  6797. fi
  6798. fi
  6799. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
  6800. $as_echo "$ac_cv_header_stdc" >&6; }
  6801. if test $ac_cv_header_stdc = yes; then
  6802. $as_echo "#define STDC_HEADERS 1" >>confdefs.h
  6803. fi
  6804. case "$target" in
  6805. *mingw*)
  6806. for ac_header in winsock2.h \
  6807. ws2tcpip.h
  6808. do :
  6809. as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
  6810. ac_fn_cxx_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
  6811. eval as_val=\$$as_ac_Header
  6812. if test "x$as_val" = x""yes; then :
  6813. cat >>confdefs.h <<_ACEOF
  6814. #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
  6815. _ACEOF
  6816. fi
  6817. done
  6818. ;;
  6819. esac
  6820. for ac_header in argz.h \
  6821. arpa/inet.h \
  6822. fcntl.h \
  6823. float.h \
  6824. inttypes.h \
  6825. io.h \
  6826. langinfo.h \
  6827. libintl.h \
  6828. limits.h \
  6829. locale.h \
  6830. malloc.h \
  6831. netdb.h \
  6832. netinet/in.h \
  6833. stddef.h \
  6834. stdint.h \
  6835. stdio_ext.h \
  6836. stdlib.h \
  6837. string.h \
  6838. strings.h \
  6839. sys/ioctl.h \
  6840. sys/param.h \
  6841. sys/socket.h \
  6842. sys/time.h \
  6843. termios.h \
  6844. unistd.h \
  6845. utime.h \
  6846. wchar.h \
  6847. ifaddrs.h
  6848. do :
  6849. as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
  6850. ac_fn_cxx_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
  6851. eval as_val=\$$as_ac_Header
  6852. if test "x$as_val" = x""yes; then :
  6853. cat >>confdefs.h <<_ACEOF
  6854. #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
  6855. _ACEOF
  6856. fi
  6857. done
  6858. # Checks for typedefs, structures, and compiler characteristics.
  6859. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for stdbool.h that conforms to C99" >&5
  6860. $as_echo_n "checking for stdbool.h that conforms to C99... " >&6; }
  6861. if test "${ac_cv_header_stdbool_h+set}" = set; then :
  6862. $as_echo_n "(cached) " >&6
  6863. else
  6864. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6865. /* end confdefs.h. */
  6866. #include <stdbool.h>
  6867. #ifndef bool
  6868. "error: bool is not defined"
  6869. #endif
  6870. #ifndef false
  6871. "error: false is not defined"
  6872. #endif
  6873. #if false
  6874. "error: false is not 0"
  6875. #endif
  6876. #ifndef true
  6877. "error: true is not defined"
  6878. #endif
  6879. #if true != 1
  6880. "error: true is not 1"
  6881. #endif
  6882. #ifndef __bool_true_false_are_defined
  6883. "error: __bool_true_false_are_defined is not defined"
  6884. #endif
  6885. struct s { _Bool s: 1; _Bool t; } s;
  6886. char a[true == 1 ? 1 : -1];
  6887. char b[false == 0 ? 1 : -1];
  6888. char c[__bool_true_false_are_defined == 1 ? 1 : -1];
  6889. char d[(bool) 0.5 == true ? 1 : -1];
  6890. bool e = &s;
  6891. char f[(_Bool) 0.0 == false ? 1 : -1];
  6892. char g[true];
  6893. char h[sizeof (_Bool)];
  6894. char i[sizeof s.t];
  6895. enum { j = false, k = true, l = false * true, m = true * 256 };
  6896. /* The following fails for
  6897. HP aC++/ANSI C B3910B A.05.55 [Dec 04 2003]. */
  6898. _Bool n[m];
  6899. char o[sizeof n == m * sizeof n[0] ? 1 : -1];
  6900. char p[-1 - (_Bool) 0 < 0 && -1 - (bool) 0 < 0 ? 1 : -1];
  6901. # if defined __xlc__ || defined __GNUC__
  6902. /* Catch a bug in IBM AIX xlc compiler version 6.0.0.0
  6903. reported by James Lemley on 2005-10-05; see
  6904. http://lists.gnu.org/archive/html/bug-coreutils/2005-10/msg00086.html
  6905. This test is not quite right, since xlc is allowed to
  6906. reject this program, as the initializer for xlcbug is
  6907. not one of the forms that C requires support for.
  6908. However, doing the test right would require a runtime
  6909. test, and that would make cross-compilation harder.
  6910. Let us hope that IBM fixes the xlc bug, and also adds
  6911. support for this kind of constant expression. In the
  6912. meantime, this test will reject xlc, which is OK, since
  6913. our stdbool.h substitute should suffice. We also test
  6914. this with GCC, where it should work, to detect more
  6915. quickly whether someone messes up the test in the
  6916. future. */
  6917. char digs[] = "0123456789";
  6918. int xlcbug = 1 / (&(digs + 5)[-2 + (bool) 1] == &digs[4] ? 1 : -1);
  6919. # endif
  6920. /* Catch a bug in an HP-UX C compiler. See
  6921. http://gcc.gnu.org/ml/gcc-patches/2003-12/msg02303.html
  6922. http://lists.gnu.org/archive/html/bug-coreutils/2005-11/msg00161.html
  6923. */
  6924. _Bool q = true;
  6925. _Bool *pq = &q;
  6926. int
  6927. main ()
  6928. {
  6929. *pq |= q;
  6930. *pq |= ! q;
  6931. /* Refer to every declared value, to avoid compiler optimizations. */
  6932. return (!a + !b + !c + !d + !e + !f + !g + !h + !i + !!j + !k + !!l
  6933. + !m + !n + !o + !p + !q + !pq);
  6934. ;
  6935. return 0;
  6936. }
  6937. _ACEOF
  6938. if ac_fn_cxx_try_compile "$LINENO"; then :
  6939. ac_cv_header_stdbool_h=yes
  6940. else
  6941. ac_cv_header_stdbool_h=no
  6942. fi
  6943. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  6944. fi
  6945. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdbool_h" >&5
  6946. $as_echo "$ac_cv_header_stdbool_h" >&6; }
  6947. ac_fn_cxx_check_type "$LINENO" "_Bool" "ac_cv_type__Bool" "$ac_includes_default"
  6948. if test "x$ac_cv_type__Bool" = x""yes; then :
  6949. cat >>confdefs.h <<_ACEOF
  6950. #define HAVE__BOOL 1
  6951. _ACEOF
  6952. fi
  6953. if test $ac_cv_header_stdbool_h = yes; then
  6954. $as_echo "#define HAVE_STDBOOL_H 1" >>confdefs.h
  6955. fi
  6956. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
  6957. $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
  6958. if test "${ac_cv_c_const+set}" = set; then :
  6959. $as_echo_n "(cached) " >&6
  6960. else
  6961. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6962. /* end confdefs.h. */
  6963. int
  6964. main ()
  6965. {
  6966. /* FIXME: Include the comments suggested by Paul. */
  6967. #ifndef __cplusplus
  6968. /* Ultrix mips cc rejects this. */
  6969. typedef int charset[2];
  6970. const charset cs;
  6971. /* SunOS 4.1.1 cc rejects this. */
  6972. char const *const *pcpcc;
  6973. char **ppc;
  6974. /* NEC SVR4.0.2 mips cc rejects this. */
  6975. struct point {int x, y;};
  6976. static struct point const zero = {0,0};
  6977. /* AIX XL C 1.02.0.0 rejects this.
  6978. It does not let you subtract one const X* pointer from another in
  6979. an arm of an if-expression whose if-part is not a constant
  6980. expression */
  6981. const char *g = "string";
  6982. pcpcc = &g + (g ? g-g : 0);
  6983. /* HPUX 7.0 cc rejects these. */
  6984. ++pcpcc;
  6985. ppc = (char**) pcpcc;
  6986. pcpcc = (char const *const *) ppc;
  6987. { /* SCO 3.2v4 cc rejects this. */
  6988. char *t;
  6989. char const *s = 0 ? (char *) 0 : (char const *) 0;
  6990. *t++ = 0;
  6991. if (s) return 0;
  6992. }
  6993. { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
  6994. int x[] = {25, 17};
  6995. const int *foo = &x[0];
  6996. ++foo;
  6997. }
  6998. { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
  6999. typedef const int *iptr;
  7000. iptr p = 0;
  7001. ++p;
  7002. }
  7003. { /* AIX XL C 1.02.0.0 rejects this saying
  7004. "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
  7005. struct s { int j; const int *ap[3]; };
  7006. struct s *b; b->j = 5;
  7007. }
  7008. { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
  7009. const int foo = 10;
  7010. if (!foo) return 0;
  7011. }
  7012. return !cs[0] && !zero.x;
  7013. #endif
  7014. ;
  7015. return 0;
  7016. }
  7017. _ACEOF
  7018. if ac_fn_cxx_try_compile "$LINENO"; then :
  7019. ac_cv_c_const=yes
  7020. else
  7021. ac_cv_c_const=no
  7022. fi
  7023. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  7024. fi
  7025. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
  7026. $as_echo "$ac_cv_c_const" >&6; }
  7027. if test $ac_cv_c_const = no; then
  7028. $as_echo "#define const /**/" >>confdefs.h
  7029. fi
  7030. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
  7031. $as_echo_n "checking for inline... " >&6; }
  7032. if test "${ac_cv_c_inline+set}" = set; then :
  7033. $as_echo_n "(cached) " >&6
  7034. else
  7035. ac_cv_c_inline=no
  7036. for ac_kw in inline __inline__ __inline; do
  7037. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7038. /* end confdefs.h. */
  7039. #ifndef __cplusplus
  7040. typedef int foo_t;
  7041. static $ac_kw foo_t static_foo () {return 0; }
  7042. $ac_kw foo_t foo () {return 0; }
  7043. #endif
  7044. _ACEOF
  7045. if ac_fn_cxx_try_compile "$LINENO"; then :
  7046. ac_cv_c_inline=$ac_kw
  7047. fi
  7048. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  7049. test "$ac_cv_c_inline" != no && break
  7050. done
  7051. fi
  7052. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
  7053. $as_echo "$ac_cv_c_inline" >&6; }
  7054. case $ac_cv_c_inline in
  7055. inline | yes) ;;
  7056. *)
  7057. case $ac_cv_c_inline in
  7058. no) ac_val=;;
  7059. *) ac_val=$ac_cv_c_inline;;
  7060. esac
  7061. cat >>confdefs.h <<_ACEOF
  7062. #ifndef __cplusplus
  7063. #define inline $ac_val
  7064. #endif
  7065. _ACEOF
  7066. ;;
  7067. esac
  7068. ac_fn_c_find_intX_t "$LINENO" "16" "ac_cv_c_int16_t"
  7069. case $ac_cv_c_int16_t in #(
  7070. no|yes) ;; #(
  7071. *)
  7072. cat >>confdefs.h <<_ACEOF
  7073. #define int16_t $ac_cv_c_int16_t
  7074. _ACEOF
  7075. ;;
  7076. esac
  7077. ac_fn_c_find_intX_t "$LINENO" "32" "ac_cv_c_int32_t"
  7078. case $ac_cv_c_int32_t in #(
  7079. no|yes) ;; #(
  7080. *)
  7081. cat >>confdefs.h <<_ACEOF
  7082. #define int32_t $ac_cv_c_int32_t
  7083. _ACEOF
  7084. ;;
  7085. esac
  7086. ac_fn_c_find_intX_t "$LINENO" "64" "ac_cv_c_int64_t"
  7087. case $ac_cv_c_int64_t in #(
  7088. no|yes) ;; #(
  7089. *)
  7090. cat >>confdefs.h <<_ACEOF
  7091. #define int64_t $ac_cv_c_int64_t
  7092. _ACEOF
  7093. ;;
  7094. esac
  7095. ac_fn_c_find_intX_t "$LINENO" "8" "ac_cv_c_int8_t"
  7096. case $ac_cv_c_int8_t in #(
  7097. no|yes) ;; #(
  7098. *)
  7099. cat >>confdefs.h <<_ACEOF
  7100. #define int8_t $ac_cv_c_int8_t
  7101. _ACEOF
  7102. ;;
  7103. esac
  7104. ac_fn_cxx_check_type "$LINENO" "mode_t" "ac_cv_type_mode_t" "$ac_includes_default"
  7105. if test "x$ac_cv_type_mode_t" = x""yes; then :
  7106. else
  7107. cat >>confdefs.h <<_ACEOF
  7108. #define mode_t int
  7109. _ACEOF
  7110. fi
  7111. ac_fn_cxx_check_type "$LINENO" "off_t" "ac_cv_type_off_t" "$ac_includes_default"
  7112. if test "x$ac_cv_type_off_t" = x""yes; then :
  7113. else
  7114. cat >>confdefs.h <<_ACEOF
  7115. #define off_t long int
  7116. _ACEOF
  7117. fi
  7118. ac_fn_cxx_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
  7119. if test "x$ac_cv_type_size_t" = x""yes; then :
  7120. else
  7121. cat >>confdefs.h <<_ACEOF
  7122. #define size_t unsigned int
  7123. _ACEOF
  7124. fi
  7125. ac_fn_cxx_check_type "$LINENO" "ssize_t" "ac_cv_type_ssize_t" "$ac_includes_default"
  7126. if test "x$ac_cv_type_ssize_t" = x""yes; then :
  7127. else
  7128. cat >>confdefs.h <<_ACEOF
  7129. #define ssize_t int
  7130. _ACEOF
  7131. fi
  7132. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5
  7133. $as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
  7134. if test "${ac_cv_header_time+set}" = set; then :
  7135. $as_echo_n "(cached) " >&6
  7136. else
  7137. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7138. /* end confdefs.h. */
  7139. #include <sys/types.h>
  7140. #include <sys/time.h>
  7141. #include <time.h>
  7142. int
  7143. main ()
  7144. {
  7145. if ((struct tm *) 0)
  7146. return 0;
  7147. ;
  7148. return 0;
  7149. }
  7150. _ACEOF
  7151. if ac_fn_cxx_try_compile "$LINENO"; then :
  7152. ac_cv_header_time=yes
  7153. else
  7154. ac_cv_header_time=no
  7155. fi
  7156. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  7157. fi
  7158. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
  7159. $as_echo "$ac_cv_header_time" >&6; }
  7160. if test $ac_cv_header_time = yes; then
  7161. $as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
  7162. fi
  7163. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct tm is in sys/time.h or time.h" >&5
  7164. $as_echo_n "checking whether struct tm is in sys/time.h or time.h... " >&6; }
  7165. if test "${ac_cv_struct_tm+set}" = set; then :
  7166. $as_echo_n "(cached) " >&6
  7167. else
  7168. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7169. /* end confdefs.h. */
  7170. #include <sys/types.h>
  7171. #include <time.h>
  7172. int
  7173. main ()
  7174. {
  7175. struct tm tm;
  7176. int *p = &tm.tm_sec;
  7177. return !p;
  7178. ;
  7179. return 0;
  7180. }
  7181. _ACEOF
  7182. if ac_fn_cxx_try_compile "$LINENO"; then :
  7183. ac_cv_struct_tm=time.h
  7184. else
  7185. ac_cv_struct_tm=sys/time.h
  7186. fi
  7187. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  7188. fi
  7189. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tm" >&5
  7190. $as_echo "$ac_cv_struct_tm" >&6; }
  7191. if test $ac_cv_struct_tm = sys/time.h; then
  7192. $as_echo "#define TM_IN_SYS_TIME 1" >>confdefs.h
  7193. fi
  7194. ac_fn_c_find_uintX_t "$LINENO" "16" "ac_cv_c_uint16_t"
  7195. case $ac_cv_c_uint16_t in #(
  7196. no|yes) ;; #(
  7197. *)
  7198. cat >>confdefs.h <<_ACEOF
  7199. #define uint16_t $ac_cv_c_uint16_t
  7200. _ACEOF
  7201. ;;
  7202. esac
  7203. ac_fn_c_find_uintX_t "$LINENO" "32" "ac_cv_c_uint32_t"
  7204. case $ac_cv_c_uint32_t in #(
  7205. no|yes) ;; #(
  7206. *)
  7207. $as_echo "#define _UINT32_T 1" >>confdefs.h
  7208. cat >>confdefs.h <<_ACEOF
  7209. #define uint32_t $ac_cv_c_uint32_t
  7210. _ACEOF
  7211. ;;
  7212. esac
  7213. ac_fn_c_find_uintX_t "$LINENO" "64" "ac_cv_c_uint64_t"
  7214. case $ac_cv_c_uint64_t in #(
  7215. no|yes) ;; #(
  7216. *)
  7217. $as_echo "#define _UINT64_T 1" >>confdefs.h
  7218. cat >>confdefs.h <<_ACEOF
  7219. #define uint64_t $ac_cv_c_uint64_t
  7220. _ACEOF
  7221. ;;
  7222. esac
  7223. ac_fn_c_find_uintX_t "$LINENO" "8" "ac_cv_c_uint8_t"
  7224. case $ac_cv_c_uint8_t in #(
  7225. no|yes) ;; #(
  7226. *)
  7227. $as_echo "#define _UINT8_T 1" >>confdefs.h
  7228. cat >>confdefs.h <<_ACEOF
  7229. #define uint8_t $ac_cv_c_uint8_t
  7230. _ACEOF
  7231. ;;
  7232. esac
  7233. ac_fn_cxx_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
  7234. if test "x$ac_cv_type_pid_t" = x""yes; then :
  7235. else
  7236. cat >>confdefs.h <<_ACEOF
  7237. #define pid_t int
  7238. _ACEOF
  7239. fi
  7240. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working volatile" >&5
  7241. $as_echo_n "checking for working volatile... " >&6; }
  7242. if test "${ac_cv_c_volatile+set}" = set; then :
  7243. $as_echo_n "(cached) " >&6
  7244. else
  7245. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7246. /* end confdefs.h. */
  7247. int
  7248. main ()
  7249. {
  7250. volatile int x;
  7251. int * volatile y = (int *) 0;
  7252. return !x && !y;
  7253. ;
  7254. return 0;
  7255. }
  7256. _ACEOF
  7257. if ac_fn_cxx_try_compile "$LINENO"; then :
  7258. ac_cv_c_volatile=yes
  7259. else
  7260. ac_cv_c_volatile=no
  7261. fi
  7262. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  7263. fi
  7264. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_volatile" >&5
  7265. $as_echo "$ac_cv_c_volatile" >&6; }
  7266. if test $ac_cv_c_volatile = no; then
  7267. $as_echo "#define volatile /**/" >>confdefs.h
  7268. fi
  7269. ac_fn_cxx_check_type "$LINENO" "ptrdiff_t" "ac_cv_type_ptrdiff_t" "$ac_includes_default"
  7270. if test "x$ac_cv_type_ptrdiff_t" = x""yes; then :
  7271. cat >>confdefs.h <<_ACEOF
  7272. #define HAVE_PTRDIFF_T 1
  7273. _ACEOF
  7274. fi
  7275. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
  7276. $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
  7277. if test "${ac_cv_c_bigendian+set}" = set; then :
  7278. $as_echo_n "(cached) " >&6
  7279. else
  7280. ac_cv_c_bigendian=unknown
  7281. # See if we're dealing with a universal compiler.
  7282. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7283. /* end confdefs.h. */
  7284. #ifndef __APPLE_CC__
  7285. not a universal capable compiler
  7286. #endif
  7287. typedef int dummy;
  7288. _ACEOF
  7289. if ac_fn_cxx_try_compile "$LINENO"; then :
  7290. # Check for potential -arch flags. It is not universal unless
  7291. # there are at least two -arch flags with different values.
  7292. ac_arch=
  7293. ac_prev=
  7294. for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
  7295. if test -n "$ac_prev"; then
  7296. case $ac_word in
  7297. i?86 | x86_64 | ppc | ppc64)
  7298. if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
  7299. ac_arch=$ac_word
  7300. else
  7301. ac_cv_c_bigendian=universal
  7302. break
  7303. fi
  7304. ;;
  7305. esac
  7306. ac_prev=
  7307. elif test "x$ac_word" = "x-arch"; then
  7308. ac_prev=arch
  7309. fi
  7310. done
  7311. fi
  7312. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  7313. if test $ac_cv_c_bigendian = unknown; then
  7314. # See if sys/param.h defines the BYTE_ORDER macro.
  7315. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7316. /* end confdefs.h. */
  7317. #include <sys/types.h>
  7318. #include <sys/param.h>
  7319. int
  7320. main ()
  7321. {
  7322. #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
  7323. && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
  7324. && LITTLE_ENDIAN)
  7325. bogus endian macros
  7326. #endif
  7327. ;
  7328. return 0;
  7329. }
  7330. _ACEOF
  7331. if ac_fn_cxx_try_compile "$LINENO"; then :
  7332. # It does; now see whether it defined to BIG_ENDIAN or not.
  7333. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7334. /* end confdefs.h. */
  7335. #include <sys/types.h>
  7336. #include <sys/param.h>
  7337. int
  7338. main ()
  7339. {
  7340. #if BYTE_ORDER != BIG_ENDIAN
  7341. not big endian
  7342. #endif
  7343. ;
  7344. return 0;
  7345. }
  7346. _ACEOF
  7347. if ac_fn_cxx_try_compile "$LINENO"; then :
  7348. ac_cv_c_bigendian=yes
  7349. else
  7350. ac_cv_c_bigendian=no
  7351. fi
  7352. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  7353. fi
  7354. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  7355. fi
  7356. if test $ac_cv_c_bigendian = unknown; then
  7357. # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
  7358. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7359. /* end confdefs.h. */
  7360. #include <limits.h>
  7361. int
  7362. main ()
  7363. {
  7364. #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
  7365. bogus endian macros
  7366. #endif
  7367. ;
  7368. return 0;
  7369. }
  7370. _ACEOF
  7371. if ac_fn_cxx_try_compile "$LINENO"; then :
  7372. # It does; now see whether it defined to _BIG_ENDIAN or not.
  7373. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7374. /* end confdefs.h. */
  7375. #include <limits.h>
  7376. int
  7377. main ()
  7378. {
  7379. #ifndef _BIG_ENDIAN
  7380. not big endian
  7381. #endif
  7382. ;
  7383. return 0;
  7384. }
  7385. _ACEOF
  7386. if ac_fn_cxx_try_compile "$LINENO"; then :
  7387. ac_cv_c_bigendian=yes
  7388. else
  7389. ac_cv_c_bigendian=no
  7390. fi
  7391. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  7392. fi
  7393. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  7394. fi
  7395. if test $ac_cv_c_bigendian = unknown; then
  7396. # Compile a test program.
  7397. if test "$cross_compiling" = yes; then :
  7398. # Try to guess by grepping values from an object file.
  7399. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7400. /* end confdefs.h. */
  7401. short int ascii_mm[] =
  7402. { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
  7403. short int ascii_ii[] =
  7404. { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
  7405. int use_ascii (int i) {
  7406. return ascii_mm[i] + ascii_ii[i];
  7407. }
  7408. short int ebcdic_ii[] =
  7409. { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
  7410. short int ebcdic_mm[] =
  7411. { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
  7412. int use_ebcdic (int i) {
  7413. return ebcdic_mm[i] + ebcdic_ii[i];
  7414. }
  7415. extern int foo;
  7416. int
  7417. main ()
  7418. {
  7419. return use_ascii (foo) == use_ebcdic (foo);
  7420. ;
  7421. return 0;
  7422. }
  7423. _ACEOF
  7424. if ac_fn_cxx_try_compile "$LINENO"; then :
  7425. if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
  7426. ac_cv_c_bigendian=yes
  7427. fi
  7428. if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
  7429. if test "$ac_cv_c_bigendian" = unknown; then
  7430. ac_cv_c_bigendian=no
  7431. else
  7432. # finding both strings is unlikely to happen, but who knows?
  7433. ac_cv_c_bigendian=unknown
  7434. fi
  7435. fi
  7436. fi
  7437. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  7438. else
  7439. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7440. /* end confdefs.h. */
  7441. $ac_includes_default
  7442. int
  7443. main ()
  7444. {
  7445. /* Are we little or big endian? From Harbison&Steele. */
  7446. union
  7447. {
  7448. long int l;
  7449. char c[sizeof (long int)];
  7450. } u;
  7451. u.l = 1;
  7452. return u.c[sizeof (long int) - 1] == 1;
  7453. ;
  7454. return 0;
  7455. }
  7456. _ACEOF
  7457. if ac_fn_cxx_try_run "$LINENO"; then :
  7458. ac_cv_c_bigendian=no
  7459. else
  7460. ac_cv_c_bigendian=yes
  7461. fi
  7462. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  7463. conftest.$ac_objext conftest.beam conftest.$ac_ext
  7464. fi
  7465. fi
  7466. fi
  7467. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
  7468. $as_echo "$ac_cv_c_bigendian" >&6; }
  7469. case $ac_cv_c_bigendian in #(
  7470. yes)
  7471. $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
  7472. ;; #(
  7473. no)
  7474. ;; #(
  7475. universal)
  7476. $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
  7477. ;; #(
  7478. *)
  7479. as_fn_error "unknown endianness
  7480. presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
  7481. esac
  7482. # Check whether --enable-largefile was given.
  7483. if test "${enable_largefile+set}" = set; then :
  7484. enableval=$enable_largefile;
  7485. fi
  7486. if test "$enable_largefile" != no; then
  7487. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
  7488. $as_echo_n "checking for special C compiler options needed for large files... " >&6; }
  7489. if test "${ac_cv_sys_largefile_CC+set}" = set; then :
  7490. $as_echo_n "(cached) " >&6
  7491. else
  7492. ac_cv_sys_largefile_CC=no
  7493. if test "$GCC" != yes; then
  7494. ac_save_CC=$CC
  7495. while :; do
  7496. # IRIX 6.2 and later do not support large files by default,
  7497. # so use the C compiler's -n32 option if that helps.
  7498. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7499. /* end confdefs.h. */
  7500. #include <sys/types.h>
  7501. /* Check that off_t can represent 2**63 - 1 correctly.
  7502. We can't simply define LARGE_OFF_T to be 9223372036854775807,
  7503. since some C++ compilers masquerading as C compilers
  7504. incorrectly reject 9223372036854775807. */
  7505. #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
  7506. int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
  7507. && LARGE_OFF_T % 2147483647 == 1)
  7508. ? 1 : -1];
  7509. int
  7510. main ()
  7511. {
  7512. ;
  7513. return 0;
  7514. }
  7515. _ACEOF
  7516. if ac_fn_cxx_try_compile "$LINENO"; then :
  7517. break
  7518. fi
  7519. rm -f core conftest.err conftest.$ac_objext
  7520. CC="$CC -n32"
  7521. if ac_fn_cxx_try_compile "$LINENO"; then :
  7522. ac_cv_sys_largefile_CC=' -n32'; break
  7523. fi
  7524. rm -f core conftest.err conftest.$ac_objext
  7525. break
  7526. done
  7527. CC=$ac_save_CC
  7528. rm -f conftest.$ac_ext
  7529. fi
  7530. fi
  7531. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
  7532. $as_echo "$ac_cv_sys_largefile_CC" >&6; }
  7533. if test "$ac_cv_sys_largefile_CC" != no; then
  7534. CC=$CC$ac_cv_sys_largefile_CC
  7535. fi
  7536. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
  7537. $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
  7538. if test "${ac_cv_sys_file_offset_bits+set}" = set; then :
  7539. $as_echo_n "(cached) " >&6
  7540. else
  7541. while :; do
  7542. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7543. /* end confdefs.h. */
  7544. #include <sys/types.h>
  7545. /* Check that off_t can represent 2**63 - 1 correctly.
  7546. We can't simply define LARGE_OFF_T to be 9223372036854775807,
  7547. since some C++ compilers masquerading as C compilers
  7548. incorrectly reject 9223372036854775807. */
  7549. #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
  7550. int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
  7551. && LARGE_OFF_T % 2147483647 == 1)
  7552. ? 1 : -1];
  7553. int
  7554. main ()
  7555. {
  7556. ;
  7557. return 0;
  7558. }
  7559. _ACEOF
  7560. if ac_fn_cxx_try_compile "$LINENO"; then :
  7561. ac_cv_sys_file_offset_bits=no; break
  7562. fi
  7563. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  7564. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7565. /* end confdefs.h. */
  7566. #define _FILE_OFFSET_BITS 64
  7567. #include <sys/types.h>
  7568. /* Check that off_t can represent 2**63 - 1 correctly.
  7569. We can't simply define LARGE_OFF_T to be 9223372036854775807,
  7570. since some C++ compilers masquerading as C compilers
  7571. incorrectly reject 9223372036854775807. */
  7572. #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
  7573. int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
  7574. && LARGE_OFF_T % 2147483647 == 1)
  7575. ? 1 : -1];
  7576. int
  7577. main ()
  7578. {
  7579. ;
  7580. return 0;
  7581. }
  7582. _ACEOF
  7583. if ac_fn_cxx_try_compile "$LINENO"; then :
  7584. ac_cv_sys_file_offset_bits=64; break
  7585. fi
  7586. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  7587. ac_cv_sys_file_offset_bits=unknown
  7588. break
  7589. done
  7590. fi
  7591. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
  7592. $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
  7593. case $ac_cv_sys_file_offset_bits in #(
  7594. no | unknown) ;;
  7595. *)
  7596. cat >>confdefs.h <<_ACEOF
  7597. #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
  7598. _ACEOF
  7599. ;;
  7600. esac
  7601. rm -rf conftest*
  7602. if test $ac_cv_sys_file_offset_bits = unknown; then
  7603. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
  7604. $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
  7605. if test "${ac_cv_sys_large_files+set}" = set; then :
  7606. $as_echo_n "(cached) " >&6
  7607. else
  7608. while :; do
  7609. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7610. /* end confdefs.h. */
  7611. #include <sys/types.h>
  7612. /* Check that off_t can represent 2**63 - 1 correctly.
  7613. We can't simply define LARGE_OFF_T to be 9223372036854775807,
  7614. since some C++ compilers masquerading as C compilers
  7615. incorrectly reject 9223372036854775807. */
  7616. #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
  7617. int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
  7618. && LARGE_OFF_T % 2147483647 == 1)
  7619. ? 1 : -1];
  7620. int
  7621. main ()
  7622. {
  7623. ;
  7624. return 0;
  7625. }
  7626. _ACEOF
  7627. if ac_fn_cxx_try_compile "$LINENO"; then :
  7628. ac_cv_sys_large_files=no; break
  7629. fi
  7630. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  7631. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7632. /* end confdefs.h. */
  7633. #define _LARGE_FILES 1
  7634. #include <sys/types.h>
  7635. /* Check that off_t can represent 2**63 - 1 correctly.
  7636. We can't simply define LARGE_OFF_T to be 9223372036854775807,
  7637. since some C++ compilers masquerading as C compilers
  7638. incorrectly reject 9223372036854775807. */
  7639. #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
  7640. int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
  7641. && LARGE_OFF_T % 2147483647 == 1)
  7642. ? 1 : -1];
  7643. int
  7644. main ()
  7645. {
  7646. ;
  7647. return 0;
  7648. }
  7649. _ACEOF
  7650. if ac_fn_cxx_try_compile "$LINENO"; then :
  7651. ac_cv_sys_large_files=1; break
  7652. fi
  7653. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  7654. ac_cv_sys_large_files=unknown
  7655. break
  7656. done
  7657. fi
  7658. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
  7659. $as_echo "$ac_cv_sys_large_files" >&6; }
  7660. case $ac_cv_sys_large_files in #(
  7661. no | unknown) ;;
  7662. *)
  7663. cat >>confdefs.h <<_ACEOF
  7664. #define _LARGE_FILES $ac_cv_sys_large_files
  7665. _ACEOF
  7666. ;;
  7667. esac
  7668. rm -rf conftest*
  7669. fi
  7670. fi
  7671. # Checks for library functions.
  7672. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5
  7673. $as_echo_n "checking whether NLS is requested... " >&6; }
  7674. # Check whether --enable-nls was given.
  7675. if test "${enable_nls+set}" = set; then :
  7676. enableval=$enable_nls; USE_NLS=$enableval
  7677. else
  7678. USE_NLS=yes
  7679. fi
  7680. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5
  7681. $as_echo "$USE_NLS" >&6; }
  7682. GETTEXT_MACRO_VERSION=0.17
  7683. # Prepare PATH_SEPARATOR.
  7684. # The user is always right.
  7685. if test "${PATH_SEPARATOR+set}" != set; then
  7686. echo "#! /bin/sh" >conf$$.sh
  7687. echo "exit 0" >>conf$$.sh
  7688. chmod +x conf$$.sh
  7689. if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
  7690. PATH_SEPARATOR=';'
  7691. else
  7692. PATH_SEPARATOR=:
  7693. fi
  7694. rm -f conf$$.sh
  7695. fi
  7696. # Find out how to test for executable files. Don't use a zero-byte file,
  7697. # as systems may use methods other than mode bits to determine executability.
  7698. cat >conf$$.file <<_ASEOF
  7699. #! /bin/sh
  7700. exit 0
  7701. _ASEOF
  7702. chmod +x conf$$.file
  7703. if test -x conf$$.file >/dev/null 2>&1; then
  7704. ac_executable_p="test -x"
  7705. else
  7706. ac_executable_p="test -f"
  7707. fi
  7708. rm -f conf$$.file
  7709. # Extract the first word of "msgfmt", so it can be a program name with args.
  7710. set dummy msgfmt; ac_word=$2
  7711. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  7712. $as_echo_n "checking for $ac_word... " >&6; }
  7713. if test "${ac_cv_path_MSGFMT+set}" = set; then :
  7714. $as_echo_n "(cached) " >&6
  7715. else
  7716. case "$MSGFMT" in
  7717. [\\/]* | ?:[\\/]*)
  7718. ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
  7719. ;;
  7720. *)
  7721. ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
  7722. for ac_dir in $PATH; do
  7723. IFS="$ac_save_IFS"
  7724. test -z "$ac_dir" && ac_dir=.
  7725. for ac_exec_ext in '' $ac_executable_extensions; do
  7726. if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
  7727. echo "$as_me: trying $ac_dir/$ac_word..." >&5
  7728. if $ac_dir/$ac_word --statistics /dev/null >&5 2>&1 &&
  7729. (if $ac_dir/$ac_word --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
  7730. ac_cv_path_MSGFMT="$ac_dir/$ac_word$ac_exec_ext"
  7731. break 2
  7732. fi
  7733. fi
  7734. done
  7735. done
  7736. IFS="$ac_save_IFS"
  7737. test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT=":"
  7738. ;;
  7739. esac
  7740. fi
  7741. MSGFMT="$ac_cv_path_MSGFMT"
  7742. if test "$MSGFMT" != ":"; then
  7743. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGFMT" >&5
  7744. $as_echo "$MSGFMT" >&6; }
  7745. else
  7746. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7747. $as_echo "no" >&6; }
  7748. fi
  7749. # Extract the first word of "gmsgfmt", so it can be a program name with args.
  7750. set dummy gmsgfmt; ac_word=$2
  7751. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  7752. $as_echo_n "checking for $ac_word... " >&6; }
  7753. if test "${ac_cv_path_GMSGFMT+set}" = set; then :
  7754. $as_echo_n "(cached) " >&6
  7755. else
  7756. case $GMSGFMT in
  7757. [\\/]* | ?:[\\/]*)
  7758. ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
  7759. ;;
  7760. *)
  7761. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  7762. for as_dir in $PATH
  7763. do
  7764. IFS=$as_save_IFS
  7765. test -z "$as_dir" && as_dir=.
  7766. for ac_exec_ext in '' $ac_executable_extensions; do
  7767. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  7768. ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
  7769. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  7770. break 2
  7771. fi
  7772. done
  7773. done
  7774. IFS=$as_save_IFS
  7775. test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
  7776. ;;
  7777. esac
  7778. fi
  7779. GMSGFMT=$ac_cv_path_GMSGFMT
  7780. if test -n "$GMSGFMT"; then
  7781. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GMSGFMT" >&5
  7782. $as_echo "$GMSGFMT" >&6; }
  7783. else
  7784. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7785. $as_echo "no" >&6; }
  7786. fi
  7787. case `$MSGFMT --version | sed 1q | sed -e 's,^[^0-9]*,,'` in
  7788. '' | 0.[0-9] | 0.[0-9].* | 0.1[0-4] | 0.1[0-4].*) MSGFMT_015=: ;;
  7789. *) MSGFMT_015=$MSGFMT ;;
  7790. esac
  7791. case `$GMSGFMT --version | sed 1q | sed -e 's,^[^0-9]*,,'` in
  7792. '' | 0.[0-9] | 0.[0-9].* | 0.1[0-4] | 0.1[0-4].*) GMSGFMT_015=: ;;
  7793. *) GMSGFMT_015=$GMSGFMT ;;
  7794. esac
  7795. # Prepare PATH_SEPARATOR.
  7796. # The user is always right.
  7797. if test "${PATH_SEPARATOR+set}" != set; then
  7798. echo "#! /bin/sh" >conf$$.sh
  7799. echo "exit 0" >>conf$$.sh
  7800. chmod +x conf$$.sh
  7801. if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
  7802. PATH_SEPARATOR=';'
  7803. else
  7804. PATH_SEPARATOR=:
  7805. fi
  7806. rm -f conf$$.sh
  7807. fi
  7808. # Find out how to test for executable files. Don't use a zero-byte file,
  7809. # as systems may use methods other than mode bits to determine executability.
  7810. cat >conf$$.file <<_ASEOF
  7811. #! /bin/sh
  7812. exit 0
  7813. _ASEOF
  7814. chmod +x conf$$.file
  7815. if test -x conf$$.file >/dev/null 2>&1; then
  7816. ac_executable_p="test -x"
  7817. else
  7818. ac_executable_p="test -f"
  7819. fi
  7820. rm -f conf$$.file
  7821. # Extract the first word of "xgettext", so it can be a program name with args.
  7822. set dummy xgettext; ac_word=$2
  7823. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  7824. $as_echo_n "checking for $ac_word... " >&6; }
  7825. if test "${ac_cv_path_XGETTEXT+set}" = set; then :
  7826. $as_echo_n "(cached) " >&6
  7827. else
  7828. case "$XGETTEXT" in
  7829. [\\/]* | ?:[\\/]*)
  7830. ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
  7831. ;;
  7832. *)
  7833. ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
  7834. for ac_dir in $PATH; do
  7835. IFS="$ac_save_IFS"
  7836. test -z "$ac_dir" && ac_dir=.
  7837. for ac_exec_ext in '' $ac_executable_extensions; do
  7838. if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
  7839. echo "$as_me: trying $ac_dir/$ac_word..." >&5
  7840. if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >&5 2>&1 &&
  7841. (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
  7842. ac_cv_path_XGETTEXT="$ac_dir/$ac_word$ac_exec_ext"
  7843. break 2
  7844. fi
  7845. fi
  7846. done
  7847. done
  7848. IFS="$ac_save_IFS"
  7849. test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
  7850. ;;
  7851. esac
  7852. fi
  7853. XGETTEXT="$ac_cv_path_XGETTEXT"
  7854. if test "$XGETTEXT" != ":"; then
  7855. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XGETTEXT" >&5
  7856. $as_echo "$XGETTEXT" >&6; }
  7857. else
  7858. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7859. $as_echo "no" >&6; }
  7860. fi
  7861. rm -f messages.po
  7862. case `$XGETTEXT --version | sed 1q | sed -e 's,^[^0-9]*,,'` in
  7863. '' | 0.[0-9] | 0.[0-9].* | 0.1[0-4] | 0.1[0-4].*) XGETTEXT_015=: ;;
  7864. *) XGETTEXT_015=$XGETTEXT ;;
  7865. esac
  7866. # Prepare PATH_SEPARATOR.
  7867. # The user is always right.
  7868. if test "${PATH_SEPARATOR+set}" != set; then
  7869. echo "#! /bin/sh" >conf$$.sh
  7870. echo "exit 0" >>conf$$.sh
  7871. chmod +x conf$$.sh
  7872. if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
  7873. PATH_SEPARATOR=';'
  7874. else
  7875. PATH_SEPARATOR=:
  7876. fi
  7877. rm -f conf$$.sh
  7878. fi
  7879. # Find out how to test for executable files. Don't use a zero-byte file,
  7880. # as systems may use methods other than mode bits to determine executability.
  7881. cat >conf$$.file <<_ASEOF
  7882. #! /bin/sh
  7883. exit 0
  7884. _ASEOF
  7885. chmod +x conf$$.file
  7886. if test -x conf$$.file >/dev/null 2>&1; then
  7887. ac_executable_p="test -x"
  7888. else
  7889. ac_executable_p="test -f"
  7890. fi
  7891. rm -f conf$$.file
  7892. # Extract the first word of "msgmerge", so it can be a program name with args.
  7893. set dummy msgmerge; ac_word=$2
  7894. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  7895. $as_echo_n "checking for $ac_word... " >&6; }
  7896. if test "${ac_cv_path_MSGMERGE+set}" = set; then :
  7897. $as_echo_n "(cached) " >&6
  7898. else
  7899. case "$MSGMERGE" in
  7900. [\\/]* | ?:[\\/]*)
  7901. ac_cv_path_MSGMERGE="$MSGMERGE" # Let the user override the test with a path.
  7902. ;;
  7903. *)
  7904. ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
  7905. for ac_dir in $PATH; do
  7906. IFS="$ac_save_IFS"
  7907. test -z "$ac_dir" && ac_dir=.
  7908. for ac_exec_ext in '' $ac_executable_extensions; do
  7909. if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
  7910. echo "$as_me: trying $ac_dir/$ac_word..." >&5
  7911. if $ac_dir/$ac_word --update -q /dev/null /dev/null >&5 2>&1; then
  7912. ac_cv_path_MSGMERGE="$ac_dir/$ac_word$ac_exec_ext"
  7913. break 2
  7914. fi
  7915. fi
  7916. done
  7917. done
  7918. IFS="$ac_save_IFS"
  7919. test -z "$ac_cv_path_MSGMERGE" && ac_cv_path_MSGMERGE=":"
  7920. ;;
  7921. esac
  7922. fi
  7923. MSGMERGE="$ac_cv_path_MSGMERGE"
  7924. if test "$MSGMERGE" != ":"; then
  7925. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGMERGE" >&5
  7926. $as_echo "$MSGMERGE" >&6; }
  7927. else
  7928. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7929. $as_echo "no" >&6; }
  7930. fi
  7931. test -n "$localedir" || localedir='${datadir}/locale'
  7932. test -n "${XGETTEXT_EXTRA_OPTIONS+set}" || XGETTEXT_EXTRA_OPTIONS=
  7933. ac_config_commands="$ac_config_commands po-directories"
  7934. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C Library 2 or newer" >&5
  7935. $as_echo_n "checking whether we are using the GNU C Library 2 or newer... " >&6; }
  7936. if test "${ac_cv_gnu_library_2+set}" = set; then :
  7937. $as_echo_n "(cached) " >&6
  7938. else
  7939. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7940. /* end confdefs.h. */
  7941. #include <features.h>
  7942. #ifdef __GNU_LIBRARY__
  7943. #if (__GLIBC__ >= 2)
  7944. Lucky GNU user
  7945. #endif
  7946. #endif
  7947. _ACEOF
  7948. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  7949. $EGREP "Lucky GNU user" >/dev/null 2>&1; then :
  7950. ac_cv_gnu_library_2=yes
  7951. else
  7952. ac_cv_gnu_library_2=no
  7953. fi
  7954. rm -f conftest*
  7955. fi
  7956. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_gnu_library_2" >&5
  7957. $as_echo "$ac_cv_gnu_library_2" >&6; }
  7958. GLIBC2="$ac_cv_gnu_library_2"
  7959. CFLAG_VISIBILITY=
  7960. HAVE_VISIBILITY=0
  7961. if test -n "$GCC"; then
  7962. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for simple visibility declarations" >&5
  7963. $as_echo_n "checking for simple visibility declarations... " >&6; }
  7964. if test "${gl_cv_cc_visibility+set}" = set; then :
  7965. $as_echo_n "(cached) " >&6
  7966. else
  7967. gl_save_CFLAGS="$CFLAGS"
  7968. CFLAGS="$CFLAGS -fvisibility=hidden"
  7969. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7970. /* end confdefs.h. */
  7971. extern __attribute__((__visibility__("hidden"))) int hiddenvar;
  7972. extern __attribute__((__visibility__("default"))) int exportedvar;
  7973. extern __attribute__((__visibility__("hidden"))) int hiddenfunc (void);
  7974. extern __attribute__((__visibility__("default"))) int exportedfunc (void);
  7975. int
  7976. main ()
  7977. {
  7978. ;
  7979. return 0;
  7980. }
  7981. _ACEOF
  7982. if ac_fn_cxx_try_compile "$LINENO"; then :
  7983. gl_cv_cc_visibility=yes
  7984. else
  7985. gl_cv_cc_visibility=no
  7986. fi
  7987. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  7988. CFLAGS="$gl_save_CFLAGS"
  7989. fi
  7990. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_cc_visibility" >&5
  7991. $as_echo "$gl_cv_cc_visibility" >&6; }
  7992. if test $gl_cv_cc_visibility = yes; then
  7993. CFLAG_VISIBILITY="-fvisibility=hidden"
  7994. HAVE_VISIBILITY=1
  7995. fi
  7996. fi
  7997. cat >>confdefs.h <<_ACEOF
  7998. #define HAVE_VISIBILITY $HAVE_VISIBILITY
  7999. _ACEOF
  8000. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for stdint.h" >&5
  8001. $as_echo_n "checking for stdint.h... " >&6; }
  8002. if test "${gl_cv_header_stdint_h+set}" = set; then :
  8003. $as_echo_n "(cached) " >&6
  8004. else
  8005. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  8006. /* end confdefs.h. */
  8007. #include <sys/types.h>
  8008. #include <stdint.h>
  8009. int
  8010. main ()
  8011. {
  8012. uintmax_t i = (uintmax_t) -1; return !i;
  8013. ;
  8014. return 0;
  8015. }
  8016. _ACEOF
  8017. if ac_fn_cxx_try_compile "$LINENO"; then :
  8018. gl_cv_header_stdint_h=yes
  8019. else
  8020. gl_cv_header_stdint_h=no
  8021. fi
  8022. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  8023. fi
  8024. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_stdint_h" >&5
  8025. $as_echo "$gl_cv_header_stdint_h" >&6; }
  8026. if test $gl_cv_header_stdint_h = yes; then
  8027. cat >>confdefs.h <<_ACEOF
  8028. #define HAVE_STDINT_H_WITH_UINTMAX 1
  8029. _ACEOF
  8030. fi
  8031. for ac_header in stdlib.h unistd.h
  8032. do :
  8033. as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
  8034. ac_fn_cxx_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
  8035. eval as_val=\$$as_ac_Header
  8036. if test "x$as_val" = x""yes; then :
  8037. cat >>confdefs.h <<_ACEOF
  8038. #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
  8039. _ACEOF
  8040. fi
  8041. done
  8042. for ac_func in getpagesize
  8043. do :
  8044. ac_fn_cxx_check_func "$LINENO" "getpagesize" "ac_cv_func_getpagesize"
  8045. if test "x$ac_cv_func_getpagesize" = x""yes; then :
  8046. cat >>confdefs.h <<_ACEOF
  8047. #define HAVE_GETPAGESIZE 1
  8048. _ACEOF
  8049. fi
  8050. done
  8051. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mmap" >&5
  8052. $as_echo_n "checking for working mmap... " >&6; }
  8053. if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then :
  8054. $as_echo_n "(cached) " >&6
  8055. else
  8056. if test "$cross_compiling" = yes; then :
  8057. ac_cv_func_mmap_fixed_mapped=no
  8058. else
  8059. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  8060. /* end confdefs.h. */
  8061. $ac_includes_default
  8062. /* malloc might have been renamed as rpl_malloc. */
  8063. #undef malloc
  8064. /* Thanks to Mike Haertel and Jim Avera for this test.
  8065. Here is a matrix of mmap possibilities:
  8066. mmap private not fixed
  8067. mmap private fixed at somewhere currently unmapped
  8068. mmap private fixed at somewhere already mapped
  8069. mmap shared not fixed
  8070. mmap shared fixed at somewhere currently unmapped
  8071. mmap shared fixed at somewhere already mapped
  8072. For private mappings, we should verify that changes cannot be read()
  8073. back from the file, nor mmap's back from the file at a different
  8074. address. (There have been systems where private was not correctly
  8075. implemented like the infamous i386 svr4.0, and systems where the
  8076. VM page cache was not coherent with the file system buffer cache
  8077. like early versions of FreeBSD and possibly contemporary NetBSD.)
  8078. For shared mappings, we should conversely verify that changes get
  8079. propagated back to all the places they're supposed to be.
  8080. Grep wants private fixed already mapped.
  8081. The main things grep needs to know about mmap are:
  8082. * does it exist and is it safe to write into the mmap'd area
  8083. * how to use it (BSD variants) */
  8084. #include <fcntl.h>
  8085. #include <sys/mman.h>
  8086. #if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
  8087. char *malloc ();
  8088. #endif
  8089. /* This mess was copied from the GNU getpagesize.h. */
  8090. #ifndef HAVE_GETPAGESIZE
  8091. /* Assume that all systems that can run configure have sys/param.h. */
  8092. # ifndef HAVE_SYS_PARAM_H
  8093. # define HAVE_SYS_PARAM_H 1
  8094. # endif
  8095. # ifdef _SC_PAGESIZE
  8096. # define getpagesize() sysconf(_SC_PAGESIZE)
  8097. # else /* no _SC_PAGESIZE */
  8098. # ifdef HAVE_SYS_PARAM_H
  8099. # include <sys/param.h>
  8100. # ifdef EXEC_PAGESIZE
  8101. # define getpagesize() EXEC_PAGESIZE
  8102. # else /* no EXEC_PAGESIZE */
  8103. # ifdef NBPG
  8104. # define getpagesize() NBPG * CLSIZE
  8105. # ifndef CLSIZE
  8106. # define CLSIZE 1
  8107. # endif /* no CLSIZE */
  8108. # else /* no NBPG */
  8109. # ifdef NBPC
  8110. # define getpagesize() NBPC
  8111. # else /* no NBPC */
  8112. # ifdef PAGESIZE
  8113. # define getpagesize() PAGESIZE
  8114. # endif /* PAGESIZE */
  8115. # endif /* no NBPC */
  8116. # endif /* no NBPG */
  8117. # endif /* no EXEC_PAGESIZE */
  8118. # else /* no HAVE_SYS_PARAM_H */
  8119. # define getpagesize() 8192 /* punt totally */
  8120. # endif /* no HAVE_SYS_PARAM_H */
  8121. # endif /* no _SC_PAGESIZE */
  8122. #endif /* no HAVE_GETPAGESIZE */
  8123. int
  8124. main ()
  8125. {
  8126. char *data, *data2, *data3;
  8127. int i, pagesize;
  8128. int fd;
  8129. pagesize = getpagesize ();
  8130. /* First, make a file with some known garbage in it. */
  8131. data = (char *) malloc (pagesize);
  8132. if (!data)
  8133. return 1;
  8134. for (i = 0; i < pagesize; ++i)
  8135. *(data + i) = rand ();
  8136. umask (0);
  8137. fd = creat ("conftest.mmap", 0600);
  8138. if (fd < 0)
  8139. return 1;
  8140. if (write (fd, data, pagesize) != pagesize)
  8141. return 1;
  8142. close (fd);
  8143. /* Next, try to mmap the file at a fixed address which already has
  8144. something else allocated at it. If we can, also make sure that
  8145. we see the same garbage. */
  8146. fd = open ("conftest.mmap", O_RDWR);
  8147. if (fd < 0)
  8148. return 1;
  8149. data2 = (char *) malloc (2 * pagesize);
  8150. if (!data2)
  8151. return 1;
  8152. data2 += (pagesize - ((long int) data2 & (pagesize - 1))) & (pagesize - 1);
  8153. if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
  8154. MAP_PRIVATE | MAP_FIXED, fd, 0L))
  8155. return 1;
  8156. for (i = 0; i < pagesize; ++i)
  8157. if (*(data + i) != *(data2 + i))
  8158. return 1;
  8159. /* Finally, make sure that changes to the mapped area do not
  8160. percolate back to the file as seen by read(). (This is a bug on
  8161. some variants of i386 svr4.0.) */
  8162. for (i = 0; i < pagesize; ++i)
  8163. *(data2 + i) = *(data2 + i) + 1;
  8164. data3 = (char *) malloc (pagesize);
  8165. if (!data3)
  8166. return 1;
  8167. if (read (fd, data3, pagesize) != pagesize)
  8168. return 1;
  8169. for (i = 0; i < pagesize; ++i)
  8170. if (*(data + i) != *(data3 + i))
  8171. return 1;
  8172. close (fd);
  8173. return 0;
  8174. }
  8175. _ACEOF
  8176. if ac_fn_cxx_try_run "$LINENO"; then :
  8177. ac_cv_func_mmap_fixed_mapped=yes
  8178. else
  8179. ac_cv_func_mmap_fixed_mapped=no
  8180. fi
  8181. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  8182. conftest.$ac_objext conftest.beam conftest.$ac_ext
  8183. fi
  8184. fi
  8185. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_mmap_fixed_mapped" >&5
  8186. $as_echo "$ac_cv_func_mmap_fixed_mapped" >&6; }
  8187. if test $ac_cv_func_mmap_fixed_mapped = yes; then
  8188. $as_echo "#define HAVE_MMAP 1" >>confdefs.h
  8189. fi
  8190. rm -f conftest.mmap
  8191. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether integer division by zero raises SIGFPE" >&5
  8192. $as_echo_n "checking whether integer division by zero raises SIGFPE... " >&6; }
  8193. if test "${gt_cv_int_divbyzero_sigfpe+set}" = set; then :
  8194. $as_echo_n "(cached) " >&6
  8195. else
  8196. gt_cv_int_divbyzero_sigfpe=
  8197. case "$host_os" in
  8198. macos* | darwin[6-9]* | darwin[1-9][0-9]*)
  8199. # On MacOS X 10.2 or newer, just assume the same as when cross-
  8200. # compiling. If we were to perform the real test, 1 Crash Report
  8201. # dialog window would pop up.
  8202. case "$host_cpu" in
  8203. i[34567]86 | x86_64)
  8204. gt_cv_int_divbyzero_sigfpe="guessing yes" ;;
  8205. esac
  8206. ;;
  8207. esac
  8208. if test -z "$gt_cv_int_divbyzero_sigfpe"; then
  8209. if test "$cross_compiling" = yes; then :
  8210. # Guess based on the CPU.
  8211. case "$host_cpu" in
  8212. alpha* | i[34567]86 | x86_64 | m68k | s390*)
  8213. gt_cv_int_divbyzero_sigfpe="guessing yes";;
  8214. *)
  8215. gt_cv_int_divbyzero_sigfpe="guessing no";;
  8216. esac
  8217. else
  8218. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  8219. /* end confdefs.h. */
  8220. #include <stdlib.h>
  8221. #include <signal.h>
  8222. static void
  8223. sigfpe_handler (int sig)
  8224. {
  8225. /* Exit with code 0 if SIGFPE, with code 1 if any other signal. */
  8226. exit (sig != SIGFPE);
  8227. }
  8228. int x = 1;
  8229. int y = 0;
  8230. int z;
  8231. int nan;
  8232. int main ()
  8233. {
  8234. signal (SIGFPE, sigfpe_handler);
  8235. /* IRIX and AIX (when "xlc -qcheck" is used) yield signal SIGTRAP. */
  8236. #if (defined (__sgi) || defined (_AIX)) && defined (SIGTRAP)
  8237. signal (SIGTRAP, sigfpe_handler);
  8238. #endif
  8239. /* Linux/SPARC yields signal SIGILL. */
  8240. #if defined (__sparc__) && defined (__linux__)
  8241. signal (SIGILL, sigfpe_handler);
  8242. #endif
  8243. z = x / y;
  8244. nan = y / y;
  8245. exit (1);
  8246. }
  8247. _ACEOF
  8248. if ac_fn_cxx_try_run "$LINENO"; then :
  8249. gt_cv_int_divbyzero_sigfpe=yes
  8250. else
  8251. gt_cv_int_divbyzero_sigfpe=no
  8252. fi
  8253. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  8254. conftest.$ac_objext conftest.beam conftest.$ac_ext
  8255. fi
  8256. fi
  8257. fi
  8258. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_int_divbyzero_sigfpe" >&5
  8259. $as_echo "$gt_cv_int_divbyzero_sigfpe" >&6; }
  8260. case "$gt_cv_int_divbyzero_sigfpe" in
  8261. *yes) value=1;;
  8262. *) value=0;;
  8263. esac
  8264. cat >>confdefs.h <<_ACEOF
  8265. #define INTDIV0_RAISES_SIGFPE $value
  8266. _ACEOF
  8267. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inttypes.h" >&5
  8268. $as_echo_n "checking for inttypes.h... " >&6; }
  8269. if test "${gl_cv_header_inttypes_h+set}" = set; then :
  8270. $as_echo_n "(cached) " >&6
  8271. else
  8272. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  8273. /* end confdefs.h. */
  8274. #include <sys/types.h>
  8275. #include <inttypes.h>
  8276. int
  8277. main ()
  8278. {
  8279. uintmax_t i = (uintmax_t) -1; return !i;
  8280. ;
  8281. return 0;
  8282. }
  8283. _ACEOF
  8284. if ac_fn_cxx_try_compile "$LINENO"; then :
  8285. gl_cv_header_inttypes_h=yes
  8286. else
  8287. gl_cv_header_inttypes_h=no
  8288. fi
  8289. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  8290. fi
  8291. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_inttypes_h" >&5
  8292. $as_echo "$gl_cv_header_inttypes_h" >&6; }
  8293. if test $gl_cv_header_inttypes_h = yes; then
  8294. cat >>confdefs.h <<_ACEOF
  8295. #define HAVE_INTTYPES_H_WITH_UINTMAX 1
  8296. _ACEOF
  8297. fi
  8298. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned long long int" >&5
  8299. $as_echo_n "checking for unsigned long long int... " >&6; }
  8300. if test "${ac_cv_type_unsigned_long_long_int+set}" = set; then :
  8301. $as_echo_n "(cached) " >&6
  8302. else
  8303. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  8304. /* end confdefs.h. */
  8305. /* Test preprocessor. */
  8306. #if ! (-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
  8307. error in preprocessor;
  8308. #endif
  8309. #if ! (18446744073709551615ULL <= -1ull)
  8310. error in preprocessor;
  8311. #endif
  8312. /* Test literals. */
  8313. long long int ll = 9223372036854775807ll;
  8314. long long int nll = -9223372036854775807LL;
  8315. unsigned long long int ull = 18446744073709551615ULL;
  8316. /* Test constant expressions. */
  8317. typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
  8318. ? 1 : -1)];
  8319. typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1
  8320. ? 1 : -1)];
  8321. int i = 63;
  8322. int
  8323. main ()
  8324. {
  8325. /* Test availability of runtime routines for shift and division. */
  8326. long long int llmax = 9223372036854775807ll;
  8327. unsigned long long int ullmax = 18446744073709551615ull;
  8328. return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i)
  8329. | (llmax / ll) | (llmax % ll)
  8330. | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i)
  8331. | (ullmax / ull) | (ullmax % ull));
  8332. ;
  8333. return 0;
  8334. }
  8335. _ACEOF
  8336. if ac_fn_cxx_try_link "$LINENO"; then :
  8337. ac_cv_type_unsigned_long_long_int=yes
  8338. else
  8339. ac_cv_type_unsigned_long_long_int=no
  8340. fi
  8341. rm -f core conftest.err conftest.$ac_objext \
  8342. conftest$ac_exeext conftest.$ac_ext
  8343. fi
  8344. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_unsigned_long_long_int" >&5
  8345. $as_echo "$ac_cv_type_unsigned_long_long_int" >&6; }
  8346. if test $ac_cv_type_unsigned_long_long_int = yes; then
  8347. $as_echo "#define HAVE_UNSIGNED_LONG_LONG_INT 1" >>confdefs.h
  8348. fi
  8349. if test $gl_cv_header_inttypes_h = no && test $gl_cv_header_stdint_h = no; then
  8350. test $ac_cv_type_unsigned_long_long_int = yes \
  8351. && ac_type='unsigned long long' \
  8352. || ac_type='unsigned long'
  8353. cat >>confdefs.h <<_ACEOF
  8354. #define uintmax_t $ac_type
  8355. _ACEOF
  8356. else
  8357. $as_echo "#define HAVE_UINTMAX_T 1" >>confdefs.h
  8358. fi
  8359. for ac_header in inttypes.h
  8360. do :
  8361. ac_fn_cxx_check_header_mongrel "$LINENO" "inttypes.h" "ac_cv_header_inttypes_h" "$ac_includes_default"
  8362. if test "x$ac_cv_header_inttypes_h" = x""yes; then :
  8363. cat >>confdefs.h <<_ACEOF
  8364. #define HAVE_INTTYPES_H 1
  8365. _ACEOF
  8366. fi
  8367. done
  8368. if test $ac_cv_header_inttypes_h = yes; then
  8369. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the inttypes.h PRIxNN macros are broken" >&5
  8370. $as_echo_n "checking whether the inttypes.h PRIxNN macros are broken... " >&6; }
  8371. if test "${gt_cv_inttypes_pri_broken+set}" = set; then :
  8372. $as_echo_n "(cached) " >&6
  8373. else
  8374. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  8375. /* end confdefs.h. */
  8376. #include <inttypes.h>
  8377. #ifdef PRId32
  8378. char *p = PRId32;
  8379. #endif
  8380. int
  8381. main ()
  8382. {
  8383. ;
  8384. return 0;
  8385. }
  8386. _ACEOF
  8387. if ac_fn_cxx_try_compile "$LINENO"; then :
  8388. gt_cv_inttypes_pri_broken=no
  8389. else
  8390. gt_cv_inttypes_pri_broken=yes
  8391. fi
  8392. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  8393. fi
  8394. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_inttypes_pri_broken" >&5
  8395. $as_echo "$gt_cv_inttypes_pri_broken" >&6; }
  8396. fi
  8397. if test "$gt_cv_inttypes_pri_broken" = yes; then
  8398. cat >>confdefs.h <<_ACEOF
  8399. #define PRI_MACROS_BROKEN 1
  8400. _ACEOF
  8401. PRI_MACROS_BROKEN=1
  8402. else
  8403. PRI_MACROS_BROKEN=0
  8404. fi
  8405. # Check whether --enable-threads was given.
  8406. if test "${enable_threads+set}" = set; then :
  8407. enableval=$enable_threads; gl_use_threads=$enableval
  8408. else
  8409. case "$host_os" in
  8410. osf*) gl_use_threads=no ;;
  8411. *) gl_use_threads=yes ;;
  8412. esac
  8413. fi
  8414. if test "$gl_use_threads" = yes || test "$gl_use_threads" = posix; then
  8415. # For using <pthread.h>:
  8416. case "$host_os" in
  8417. osf*)
  8418. # On OSF/1, the compiler needs the flag -D_REENTRANT so that it
  8419. # groks <pthread.h>. cc also understands the flag -pthread, but
  8420. # we don't use it because 1. gcc-2.95 doesn't understand -pthread,
  8421. # 2. putting a flag into CPPFLAGS that has an effect on the linker
  8422. # causes the AC_TRY_LINK test below to succeed unexpectedly,
  8423. # leading to wrong values of LIBTHREAD and LTLIBTHREAD.
  8424. CPPFLAGS="$CPPFLAGS -D_REENTRANT"
  8425. ;;
  8426. esac
  8427. # Some systems optimize for single-threaded programs by default, and
  8428. # need special flags to disable these optimizations. For example, the
  8429. # definition of 'errno' in <errno.h>.
  8430. case "$host_os" in
  8431. aix* | freebsd*) CPPFLAGS="$CPPFLAGS -D_THREAD_SAFE" ;;
  8432. solaris*) CPPFLAGS="$CPPFLAGS -D_REENTRANT" ;;
  8433. esac
  8434. fi
  8435. if test "X$prefix" = "XNONE"; then
  8436. acl_final_prefix="$ac_default_prefix"
  8437. else
  8438. acl_final_prefix="$prefix"
  8439. fi
  8440. if test "X$exec_prefix" = "XNONE"; then
  8441. acl_final_exec_prefix='${prefix}'
  8442. else
  8443. acl_final_exec_prefix="$exec_prefix"
  8444. fi
  8445. acl_save_prefix="$prefix"
  8446. prefix="$acl_final_prefix"
  8447. eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
  8448. prefix="$acl_save_prefix"
  8449. # Check whether --with-gnu-ld was given.
  8450. if test "${with_gnu_ld+set}" = set; then :
  8451. withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
  8452. else
  8453. with_gnu_ld=no
  8454. fi
  8455. # Prepare PATH_SEPARATOR.
  8456. # The user is always right.
  8457. if test "${PATH_SEPARATOR+set}" != set; then
  8458. echo "#! /bin/sh" >conf$$.sh
  8459. echo "exit 0" >>conf$$.sh
  8460. chmod +x conf$$.sh
  8461. if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
  8462. PATH_SEPARATOR=';'
  8463. else
  8464. PATH_SEPARATOR=:
  8465. fi
  8466. rm -f conf$$.sh
  8467. fi
  8468. ac_prog=ld
  8469. if test "$GCC" = yes; then
  8470. # Check if gcc -print-prog-name=ld gives a path.
  8471. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by GCC" >&5
  8472. $as_echo_n "checking for ld used by GCC... " >&6; }
  8473. case $host in
  8474. *-*-mingw*)
  8475. # gcc leaves a trailing carriage return which upsets mingw
  8476. ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
  8477. *)
  8478. ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
  8479. esac
  8480. case $ac_prog in
  8481. # Accept absolute paths.
  8482. [\\/]* | [A-Za-z]:[\\/]*)
  8483. re_direlt='/[^/][^/]*/\.\./'
  8484. # Canonicalize the path of ld
  8485. ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
  8486. while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
  8487. ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
  8488. done
  8489. test -z "$LD" && LD="$ac_prog"
  8490. ;;
  8491. "")
  8492. # If it fails, then pretend we aren't using GCC.
  8493. ac_prog=ld
  8494. ;;
  8495. *)
  8496. # If it is relative, then search for the first ld in PATH.
  8497. with_gnu_ld=unknown
  8498. ;;
  8499. esac
  8500. elif test "$with_gnu_ld" = yes; then
  8501. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
  8502. $as_echo_n "checking for GNU ld... " >&6; }
  8503. else
  8504. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
  8505. $as_echo_n "checking for non-GNU ld... " >&6; }
  8506. fi
  8507. if test "${acl_cv_path_LD+set}" = set; then :
  8508. $as_echo_n "(cached) " >&6
  8509. else
  8510. if test -z "$LD"; then
  8511. IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
  8512. for ac_dir in $PATH; do
  8513. test -z "$ac_dir" && ac_dir=.
  8514. if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
  8515. acl_cv_path_LD="$ac_dir/$ac_prog"
  8516. # Check to see if the program is GNU ld. I'd rather use --version,
  8517. # but apparently some GNU ld's only accept -v.
  8518. # Break only if it was the GNU/non-GNU ld that we prefer.
  8519. case `"$acl_cv_path_LD" -v 2>&1 < /dev/null` in
  8520. *GNU* | *'with BFD'*)
  8521. test "$with_gnu_ld" != no && break ;;
  8522. *)
  8523. test "$with_gnu_ld" != yes && break ;;
  8524. esac
  8525. fi
  8526. done
  8527. IFS="$ac_save_ifs"
  8528. else
  8529. acl_cv_path_LD="$LD" # Let the user override the test with a path.
  8530. fi
  8531. fi
  8532. LD="$acl_cv_path_LD"
  8533. if test -n "$LD"; then
  8534. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
  8535. $as_echo "$LD" >&6; }
  8536. else
  8537. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  8538. $as_echo "no" >&6; }
  8539. fi
  8540. test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
  8541. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
  8542. $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
  8543. if test "${acl_cv_prog_gnu_ld+set}" = set; then :
  8544. $as_echo_n "(cached) " >&6
  8545. else
  8546. # I'd rather use --version here, but apparently some GNU ld's only accept -v.
  8547. case `$LD -v 2>&1 </dev/null` in
  8548. *GNU* | *'with BFD'*)
  8549. acl_cv_prog_gnu_ld=yes ;;
  8550. *)
  8551. acl_cv_prog_gnu_ld=no ;;
  8552. esac
  8553. fi
  8554. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_prog_gnu_ld" >&5
  8555. $as_echo "$acl_cv_prog_gnu_ld" >&6; }
  8556. with_gnu_ld=$acl_cv_prog_gnu_ld
  8557. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shared library run path origin" >&5
  8558. $as_echo_n "checking for shared library run path origin... " >&6; }
  8559. if test "${acl_cv_rpath+set}" = set; then :
  8560. $as_echo_n "(cached) " >&6
  8561. else
  8562. CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
  8563. ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
  8564. . ./conftest.sh
  8565. rm -f ./conftest.sh
  8566. acl_cv_rpath=done
  8567. fi
  8568. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_rpath" >&5
  8569. $as_echo "$acl_cv_rpath" >&6; }
  8570. wl="$acl_cv_wl"
  8571. acl_libext="$acl_cv_libext"
  8572. acl_shlibext="$acl_cv_shlibext"
  8573. acl_libname_spec="$acl_cv_libname_spec"
  8574. acl_library_names_spec="$acl_cv_library_names_spec"
  8575. acl_hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
  8576. acl_hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
  8577. acl_hardcode_direct="$acl_cv_hardcode_direct"
  8578. acl_hardcode_minus_L="$acl_cv_hardcode_minus_L"
  8579. # Check whether --enable-rpath was given.
  8580. if test "${enable_rpath+set}" = set; then :
  8581. enableval=$enable_rpath; :
  8582. else
  8583. enable_rpath=yes
  8584. fi
  8585. acl_libdirstem=lib
  8586. searchpath=`(LC_ALL=C $CC -print-search-dirs) 2>/dev/null | sed -n -e 's,^libraries: ,,p' | sed -e 's,^=,,'`
  8587. if test -n "$searchpath"; then
  8588. acl_save_IFS="${IFS= }"; IFS=":"
  8589. for searchdir in $searchpath; do
  8590. if test -d "$searchdir"; then
  8591. case "$searchdir" in
  8592. */lib64/ | */lib64 ) acl_libdirstem=lib64 ;;
  8593. *) searchdir=`cd "$searchdir" && pwd`
  8594. case "$searchdir" in
  8595. */lib64 ) acl_libdirstem=lib64 ;;
  8596. esac ;;
  8597. esac
  8598. fi
  8599. done
  8600. IFS="$acl_save_IFS"
  8601. fi
  8602. gl_threads_api=none
  8603. LIBTHREAD=
  8604. LTLIBTHREAD=
  8605. LIBMULTITHREAD=
  8606. LTLIBMULTITHREAD=
  8607. if test "$gl_use_threads" != no; then
  8608. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether imported symbols can be declared weak" >&5
  8609. $as_echo_n "checking whether imported symbols can be declared weak... " >&6; }
  8610. gl_have_weak=no
  8611. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  8612. /* end confdefs.h. */
  8613. extern void xyzzy ();
  8614. #pragma weak xyzzy
  8615. int
  8616. main ()
  8617. {
  8618. xyzzy();
  8619. ;
  8620. return 0;
  8621. }
  8622. _ACEOF
  8623. if ac_fn_cxx_try_link "$LINENO"; then :
  8624. gl_have_weak=yes
  8625. fi
  8626. rm -f core conftest.err conftest.$ac_objext \
  8627. conftest$ac_exeext conftest.$ac_ext
  8628. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_have_weak" >&5
  8629. $as_echo "$gl_have_weak" >&6; }
  8630. if test "$gl_use_threads" = yes || test "$gl_use_threads" = posix; then
  8631. # On OSF/1, the compiler needs the flag -pthread or -D_REENTRANT so that
  8632. # it groks <pthread.h>. It's added above, in gl_LOCK_EARLY_BODY.
  8633. ac_fn_cxx_check_header_mongrel "$LINENO" "pthread.h" "ac_cv_header_pthread_h" "$ac_includes_default"
  8634. if test "x$ac_cv_header_pthread_h" = x""yes; then :
  8635. gl_have_pthread_h=yes
  8636. else
  8637. gl_have_pthread_h=no
  8638. fi
  8639. if test "$gl_have_pthread_h" = yes; then
  8640. # Other possible tests:
  8641. # -lpthreads (FSU threads, PCthreads)
  8642. # -lgthreads
  8643. gl_have_pthread=
  8644. # Test whether both pthread_mutex_lock and pthread_mutexattr_init exist
  8645. # in libc. IRIX 6.5 has the first one in both libc and libpthread, but
  8646. # the second one only in libpthread, and lock.c needs it.
  8647. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  8648. /* end confdefs.h. */
  8649. #include <pthread.h>
  8650. int
  8651. main ()
  8652. {
  8653. pthread_mutex_lock((pthread_mutex_t*)0);
  8654. pthread_mutexattr_init((pthread_mutexattr_t*)0);
  8655. ;
  8656. return 0;
  8657. }
  8658. _ACEOF
  8659. if ac_fn_cxx_try_link "$LINENO"; then :
  8660. gl_have_pthread=yes
  8661. fi
  8662. rm -f core conftest.err conftest.$ac_objext \
  8663. conftest$ac_exeext conftest.$ac_ext
  8664. # Test for libpthread by looking for pthread_kill. (Not pthread_self,
  8665. # since it is defined as a macro on OSF/1.)
  8666. if test -n "$gl_have_pthread"; then
  8667. # The program links fine without libpthread. But it may actually
  8668. # need to link with libpthread in order to create multiple threads.
  8669. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_kill in -lpthread" >&5
  8670. $as_echo_n "checking for pthread_kill in -lpthread... " >&6; }
  8671. if test "${ac_cv_lib_pthread_pthread_kill+set}" = set; then :
  8672. $as_echo_n "(cached) " >&6
  8673. else
  8674. ac_check_lib_save_LIBS=$LIBS
  8675. LIBS="-lpthread $LIBS"
  8676. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  8677. /* end confdefs.h. */
  8678. /* Override any GCC internal prototype to avoid an error.
  8679. Use char because int might match the return type of a GCC
  8680. builtin and then its argument prototype would still apply. */
  8681. #ifdef __cplusplus
  8682. extern "C"
  8683. #endif
  8684. char pthread_kill ();
  8685. int
  8686. main ()
  8687. {
  8688. return pthread_kill ();
  8689. ;
  8690. return 0;
  8691. }
  8692. _ACEOF
  8693. if ac_fn_cxx_try_link "$LINENO"; then :
  8694. ac_cv_lib_pthread_pthread_kill=yes
  8695. else
  8696. ac_cv_lib_pthread_pthread_kill=no
  8697. fi
  8698. rm -f core conftest.err conftest.$ac_objext \
  8699. conftest$ac_exeext conftest.$ac_ext
  8700. LIBS=$ac_check_lib_save_LIBS
  8701. fi
  8702. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread_pthread_kill" >&5
  8703. $as_echo "$ac_cv_lib_pthread_pthread_kill" >&6; }
  8704. if test "x$ac_cv_lib_pthread_pthread_kill" = x""yes; then :
  8705. LIBMULTITHREAD=-lpthread LTLIBMULTITHREAD=-lpthread
  8706. # On Solaris and HP-UX, most pthread functions exist also in libc.
  8707. # Therefore pthread_in_use() needs to actually try to create a
  8708. # thread: pthread_create from libc will fail, whereas
  8709. # pthread_create will actually create a thread.
  8710. case "$host_os" in
  8711. solaris* | hpux*)
  8712. $as_echo "#define PTHREAD_IN_USE_DETECTION_HARD 1" >>confdefs.h
  8713. esac
  8714. fi
  8715. else
  8716. # Some library is needed. Try libpthread and libc_r.
  8717. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_kill in -lpthread" >&5
  8718. $as_echo_n "checking for pthread_kill in -lpthread... " >&6; }
  8719. if test "${ac_cv_lib_pthread_pthread_kill+set}" = set; then :
  8720. $as_echo_n "(cached) " >&6
  8721. else
  8722. ac_check_lib_save_LIBS=$LIBS
  8723. LIBS="-lpthread $LIBS"
  8724. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  8725. /* end confdefs.h. */
  8726. /* Override any GCC internal prototype to avoid an error.
  8727. Use char because int might match the return type of a GCC
  8728. builtin and then its argument prototype would still apply. */
  8729. #ifdef __cplusplus
  8730. extern "C"
  8731. #endif
  8732. char pthread_kill ();
  8733. int
  8734. main ()
  8735. {
  8736. return pthread_kill ();
  8737. ;
  8738. return 0;
  8739. }
  8740. _ACEOF
  8741. if ac_fn_cxx_try_link "$LINENO"; then :
  8742. ac_cv_lib_pthread_pthread_kill=yes
  8743. else
  8744. ac_cv_lib_pthread_pthread_kill=no
  8745. fi
  8746. rm -f core conftest.err conftest.$ac_objext \
  8747. conftest$ac_exeext conftest.$ac_ext
  8748. LIBS=$ac_check_lib_save_LIBS
  8749. fi
  8750. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread_pthread_kill" >&5
  8751. $as_echo "$ac_cv_lib_pthread_pthread_kill" >&6; }
  8752. if test "x$ac_cv_lib_pthread_pthread_kill" = x""yes; then :
  8753. gl_have_pthread=yes
  8754. LIBTHREAD=-lpthread LTLIBTHREAD=-lpthread
  8755. LIBMULTITHREAD=-lpthread LTLIBMULTITHREAD=-lpthread
  8756. fi
  8757. if test -z "$gl_have_pthread"; then
  8758. # For FreeBSD 4.
  8759. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_kill in -lc_r" >&5
  8760. $as_echo_n "checking for pthread_kill in -lc_r... " >&6; }
  8761. if test "${ac_cv_lib_c_r_pthread_kill+set}" = set; then :
  8762. $as_echo_n "(cached) " >&6
  8763. else
  8764. ac_check_lib_save_LIBS=$LIBS
  8765. LIBS="-lc_r $LIBS"
  8766. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  8767. /* end confdefs.h. */
  8768. /* Override any GCC internal prototype to avoid an error.
  8769. Use char because int might match the return type of a GCC
  8770. builtin and then its argument prototype would still apply. */
  8771. #ifdef __cplusplus
  8772. extern "C"
  8773. #endif
  8774. char pthread_kill ();
  8775. int
  8776. main ()
  8777. {
  8778. return pthread_kill ();
  8779. ;
  8780. return 0;
  8781. }
  8782. _ACEOF
  8783. if ac_fn_cxx_try_link "$LINENO"; then :
  8784. ac_cv_lib_c_r_pthread_kill=yes
  8785. else
  8786. ac_cv_lib_c_r_pthread_kill=no
  8787. fi
  8788. rm -f core conftest.err conftest.$ac_objext \
  8789. conftest$ac_exeext conftest.$ac_ext
  8790. LIBS=$ac_check_lib_save_LIBS
  8791. fi
  8792. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_c_r_pthread_kill" >&5
  8793. $as_echo "$ac_cv_lib_c_r_pthread_kill" >&6; }
  8794. if test "x$ac_cv_lib_c_r_pthread_kill" = x""yes; then :
  8795. gl_have_pthread=yes
  8796. LIBTHREAD=-lc_r LTLIBTHREAD=-lc_r
  8797. LIBMULTITHREAD=-lc_r LTLIBMULTITHREAD=-lc_r
  8798. fi
  8799. fi
  8800. fi
  8801. if test -n "$gl_have_pthread"; then
  8802. gl_threads_api=posix
  8803. $as_echo "#define USE_POSIX_THREADS 1" >>confdefs.h
  8804. if test -n "$LIBMULTITHREAD" || test -n "$LTLIBMULTITHREAD"; then
  8805. if test $gl_have_weak = yes; then
  8806. $as_echo "#define USE_POSIX_THREADS_WEAK 1" >>confdefs.h
  8807. LIBTHREAD=
  8808. LTLIBTHREAD=
  8809. fi
  8810. fi
  8811. # OSF/1 4.0 and MacOS X 10.1 lack the pthread_rwlock_t type and the
  8812. # pthread_rwlock_* functions.
  8813. ac_fn_cxx_check_type "$LINENO" "pthread_rwlock_t" "ac_cv_type_pthread_rwlock_t" "#include <pthread.h>
  8814. "
  8815. if test "x$ac_cv_type_pthread_rwlock_t" = x""yes; then :
  8816. $as_echo "#define HAVE_PTHREAD_RWLOCK 1" >>confdefs.h
  8817. fi
  8818. # glibc defines PTHREAD_MUTEX_RECURSIVE as enum, not as a macro.
  8819. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  8820. /* end confdefs.h. */
  8821. #include <pthread.h>
  8822. int
  8823. main ()
  8824. {
  8825. #if __FreeBSD__ == 4
  8826. error "No, in FreeBSD 4.0 recursive mutexes actually don't work."
  8827. #else
  8828. int x = (int)PTHREAD_MUTEX_RECURSIVE;
  8829. return !x;
  8830. #endif
  8831. ;
  8832. return 0;
  8833. }
  8834. _ACEOF
  8835. if ac_fn_cxx_try_compile "$LINENO"; then :
  8836. $as_echo "#define HAVE_PTHREAD_MUTEX_RECURSIVE 1" >>confdefs.h
  8837. fi
  8838. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  8839. fi
  8840. fi
  8841. fi
  8842. if test -z "$gl_have_pthread"; then
  8843. if test "$gl_use_threads" = yes || test "$gl_use_threads" = solaris; then
  8844. gl_have_solaristhread=
  8845. gl_save_LIBS="$LIBS"
  8846. LIBS="$LIBS -lthread"
  8847. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  8848. /* end confdefs.h. */
  8849. #include <thread.h>
  8850. #include <synch.h>
  8851. int
  8852. main ()
  8853. {
  8854. thr_self();
  8855. ;
  8856. return 0;
  8857. }
  8858. _ACEOF
  8859. if ac_fn_cxx_try_link "$LINENO"; then :
  8860. gl_have_solaristhread=yes
  8861. fi
  8862. rm -f core conftest.err conftest.$ac_objext \
  8863. conftest$ac_exeext conftest.$ac_ext
  8864. LIBS="$gl_save_LIBS"
  8865. if test -n "$gl_have_solaristhread"; then
  8866. gl_threads_api=solaris
  8867. LIBTHREAD=-lthread
  8868. LTLIBTHREAD=-lthread
  8869. LIBMULTITHREAD="$LIBTHREAD"
  8870. LTLIBMULTITHREAD="$LTLIBTHREAD"
  8871. $as_echo "#define USE_SOLARIS_THREADS 1" >>confdefs.h
  8872. if test $gl_have_weak = yes; then
  8873. $as_echo "#define USE_SOLARIS_THREADS_WEAK 1" >>confdefs.h
  8874. LIBTHREAD=
  8875. LTLIBTHREAD=
  8876. fi
  8877. fi
  8878. fi
  8879. fi
  8880. if test "$gl_use_threads" = pth; then
  8881. gl_save_CPPFLAGS="$CPPFLAGS"
  8882. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libpth" >&5
  8883. $as_echo_n "checking how to link with libpth... " >&6; }
  8884. if test "${ac_cv_libpth_libs+set}" = set; then :
  8885. $as_echo_n "(cached) " >&6
  8886. else
  8887. use_additional=yes
  8888. acl_save_prefix="$prefix"
  8889. prefix="$acl_final_prefix"
  8890. acl_save_exec_prefix="$exec_prefix"
  8891. exec_prefix="$acl_final_exec_prefix"
  8892. eval additional_includedir=\"$includedir\"
  8893. eval additional_libdir=\"$libdir\"
  8894. exec_prefix="$acl_save_exec_prefix"
  8895. prefix="$acl_save_prefix"
  8896. # Check whether --with-libpth-prefix was given.
  8897. if test "${with_libpth_prefix+set}" = set; then :
  8898. withval=$with_libpth_prefix;
  8899. if test "X$withval" = "Xno"; then
  8900. use_additional=no
  8901. else
  8902. if test "X$withval" = "X"; then
  8903. acl_save_prefix="$prefix"
  8904. prefix="$acl_final_prefix"
  8905. acl_save_exec_prefix="$exec_prefix"
  8906. exec_prefix="$acl_final_exec_prefix"
  8907. eval additional_includedir=\"$includedir\"
  8908. eval additional_libdir=\"$libdir\"
  8909. exec_prefix="$acl_save_exec_prefix"
  8910. prefix="$acl_save_prefix"
  8911. else
  8912. additional_includedir="$withval/include"
  8913. additional_libdir="$withval/$acl_libdirstem"
  8914. fi
  8915. fi
  8916. fi
  8917. LIBPTH=
  8918. LTLIBPTH=
  8919. INCPTH=
  8920. LIBPTH_PREFIX=
  8921. rpathdirs=
  8922. ltrpathdirs=
  8923. names_already_handled=
  8924. names_next_round='pth '
  8925. while test -n "$names_next_round"; do
  8926. names_this_round="$names_next_round"
  8927. names_next_round=
  8928. for name in $names_this_round; do
  8929. already_handled=
  8930. for n in $names_already_handled; do
  8931. if test "$n" = "$name"; then
  8932. already_handled=yes
  8933. break
  8934. fi
  8935. done
  8936. if test -z "$already_handled"; then
  8937. names_already_handled="$names_already_handled $name"
  8938. uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
  8939. eval value=\"\$HAVE_LIB$uppername\"
  8940. if test -n "$value"; then
  8941. if test "$value" = yes; then
  8942. eval value=\"\$LIB$uppername\"
  8943. test -z "$value" || LIBPTH="${LIBPTH}${LIBPTH:+ }$value"
  8944. eval value=\"\$LTLIB$uppername\"
  8945. test -z "$value" || LTLIBPTH="${LTLIBPTH}${LTLIBPTH:+ }$value"
  8946. else
  8947. :
  8948. fi
  8949. else
  8950. found_dir=
  8951. found_la=
  8952. found_so=
  8953. found_a=
  8954. eval libname=\"$acl_libname_spec\" # typically: libname=lib$name
  8955. if test -n "$acl_shlibext"; then
  8956. shrext=".$acl_shlibext" # typically: shrext=.so
  8957. else
  8958. shrext=
  8959. fi
  8960. if test $use_additional = yes; then
  8961. dir="$additional_libdir"
  8962. if test -n "$acl_shlibext"; then
  8963. if test -f "$dir/$libname$shrext"; then
  8964. found_dir="$dir"
  8965. found_so="$dir/$libname$shrext"
  8966. else
  8967. if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
  8968. ver=`(cd "$dir" && \
  8969. for f in "$libname$shrext".*; do echo "$f"; done \
  8970. | sed -e "s,^$libname$shrext\\\\.,," \
  8971. | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
  8972. | sed 1q ) 2>/dev/null`
  8973. if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
  8974. found_dir="$dir"
  8975. found_so="$dir/$libname$shrext.$ver"
  8976. fi
  8977. else
  8978. eval library_names=\"$acl_library_names_spec\"
  8979. for f in $library_names; do
  8980. if test -f "$dir/$f"; then
  8981. found_dir="$dir"
  8982. found_so="$dir/$f"
  8983. break
  8984. fi
  8985. done
  8986. fi
  8987. fi
  8988. fi
  8989. if test "X$found_dir" = "X"; then
  8990. if test -f "$dir/$libname.$acl_libext"; then
  8991. found_dir="$dir"
  8992. found_a="$dir/$libname.$acl_libext"
  8993. fi
  8994. fi
  8995. if test "X$found_dir" != "X"; then
  8996. if test -f "$dir/$libname.la"; then
  8997. found_la="$dir/$libname.la"
  8998. fi
  8999. fi
  9000. fi
  9001. if test "X$found_dir" = "X"; then
  9002. for x in $LDFLAGS $LTLIBPTH; do
  9003. acl_save_prefix="$prefix"
  9004. prefix="$acl_final_prefix"
  9005. acl_save_exec_prefix="$exec_prefix"
  9006. exec_prefix="$acl_final_exec_prefix"
  9007. eval x=\"$x\"
  9008. exec_prefix="$acl_save_exec_prefix"
  9009. prefix="$acl_save_prefix"
  9010. case "$x" in
  9011. -L*)
  9012. dir=`echo "X$x" | sed -e 's/^X-L//'`
  9013. if test -n "$acl_shlibext"; then
  9014. if test -f "$dir/$libname$shrext"; then
  9015. found_dir="$dir"
  9016. found_so="$dir/$libname$shrext"
  9017. else
  9018. if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
  9019. ver=`(cd "$dir" && \
  9020. for f in "$libname$shrext".*; do echo "$f"; done \
  9021. | sed -e "s,^$libname$shrext\\\\.,," \
  9022. | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
  9023. | sed 1q ) 2>/dev/null`
  9024. if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
  9025. found_dir="$dir"
  9026. found_so="$dir/$libname$shrext.$ver"
  9027. fi
  9028. else
  9029. eval library_names=\"$acl_library_names_spec\"
  9030. for f in $library_names; do
  9031. if test -f "$dir/$f"; then
  9032. found_dir="$dir"
  9033. found_so="$dir/$f"
  9034. break
  9035. fi
  9036. done
  9037. fi
  9038. fi
  9039. fi
  9040. if test "X$found_dir" = "X"; then
  9041. if test -f "$dir/$libname.$acl_libext"; then
  9042. found_dir="$dir"
  9043. found_a="$dir/$libname.$acl_libext"
  9044. fi
  9045. fi
  9046. if test "X$found_dir" != "X"; then
  9047. if test -f "$dir/$libname.la"; then
  9048. found_la="$dir/$libname.la"
  9049. fi
  9050. fi
  9051. ;;
  9052. esac
  9053. if test "X$found_dir" != "X"; then
  9054. break
  9055. fi
  9056. done
  9057. fi
  9058. if test "X$found_dir" != "X"; then
  9059. LTLIBPTH="${LTLIBPTH}${LTLIBPTH:+ }-L$found_dir -l$name"
  9060. if test "X$found_so" != "X"; then
  9061. if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/$acl_libdirstem"; then
  9062. LIBPTH="${LIBPTH}${LIBPTH:+ }$found_so"
  9063. else
  9064. haveit=
  9065. for x in $ltrpathdirs; do
  9066. if test "X$x" = "X$found_dir"; then
  9067. haveit=yes
  9068. break
  9069. fi
  9070. done
  9071. if test -z "$haveit"; then
  9072. ltrpathdirs="$ltrpathdirs $found_dir"
  9073. fi
  9074. if test "$acl_hardcode_direct" = yes; then
  9075. LIBPTH="${LIBPTH}${LIBPTH:+ }$found_so"
  9076. else
  9077. if test -n "$acl_hardcode_libdir_flag_spec" && test "$acl_hardcode_minus_L" = no; then
  9078. LIBPTH="${LIBPTH}${LIBPTH:+ }$found_so"
  9079. haveit=
  9080. for x in $rpathdirs; do
  9081. if test "X$x" = "X$found_dir"; then
  9082. haveit=yes
  9083. break
  9084. fi
  9085. done
  9086. if test -z "$haveit"; then
  9087. rpathdirs="$rpathdirs $found_dir"
  9088. fi
  9089. else
  9090. haveit=
  9091. for x in $LDFLAGS $LIBPTH; do
  9092. acl_save_prefix="$prefix"
  9093. prefix="$acl_final_prefix"
  9094. acl_save_exec_prefix="$exec_prefix"
  9095. exec_prefix="$acl_final_exec_prefix"
  9096. eval x=\"$x\"
  9097. exec_prefix="$acl_save_exec_prefix"
  9098. prefix="$acl_save_prefix"
  9099. if test "X$x" = "X-L$found_dir"; then
  9100. haveit=yes
  9101. break
  9102. fi
  9103. done
  9104. if test -z "$haveit"; then
  9105. LIBPTH="${LIBPTH}${LIBPTH:+ }-L$found_dir"
  9106. fi
  9107. if test "$acl_hardcode_minus_L" != no; then
  9108. LIBPTH="${LIBPTH}${LIBPTH:+ }$found_so"
  9109. else
  9110. LIBPTH="${LIBPTH}${LIBPTH:+ }-l$name"
  9111. fi
  9112. fi
  9113. fi
  9114. fi
  9115. else
  9116. if test "X$found_a" != "X"; then
  9117. LIBPTH="${LIBPTH}${LIBPTH:+ }$found_a"
  9118. else
  9119. LIBPTH="${LIBPTH}${LIBPTH:+ }-L$found_dir -l$name"
  9120. fi
  9121. fi
  9122. additional_includedir=
  9123. case "$found_dir" in
  9124. */$acl_libdirstem | */$acl_libdirstem/)
  9125. basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem/"'*$,,'`
  9126. LIBPTH_PREFIX="$basedir"
  9127. additional_includedir="$basedir/include"
  9128. ;;
  9129. esac
  9130. if test "X$additional_includedir" != "X"; then
  9131. if test "X$additional_includedir" != "X/usr/include"; then
  9132. haveit=
  9133. if test "X$additional_includedir" = "X/usr/local/include"; then
  9134. if test -n "$GCC"; then
  9135. case $host_os in
  9136. linux* | gnu* | k*bsd*-gnu) haveit=yes;;
  9137. esac
  9138. fi
  9139. fi
  9140. if test -z "$haveit"; then
  9141. for x in $CPPFLAGS $INCPTH; do
  9142. acl_save_prefix="$prefix"
  9143. prefix="$acl_final_prefix"
  9144. acl_save_exec_prefix="$exec_prefix"
  9145. exec_prefix="$acl_final_exec_prefix"
  9146. eval x=\"$x\"
  9147. exec_prefix="$acl_save_exec_prefix"
  9148. prefix="$acl_save_prefix"
  9149. if test "X$x" = "X-I$additional_includedir"; then
  9150. haveit=yes
  9151. break
  9152. fi
  9153. done
  9154. if test -z "$haveit"; then
  9155. if test -d "$additional_includedir"; then
  9156. INCPTH="${INCPTH}${INCPTH:+ }-I$additional_includedir"
  9157. fi
  9158. fi
  9159. fi
  9160. fi
  9161. fi
  9162. if test -n "$found_la"; then
  9163. save_libdir="$libdir"
  9164. case "$found_la" in
  9165. */* | *\\*) . "$found_la" ;;
  9166. *) . "./$found_la" ;;
  9167. esac
  9168. libdir="$save_libdir"
  9169. for dep in $dependency_libs; do
  9170. case "$dep" in
  9171. -L*)
  9172. additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
  9173. if test "X$additional_libdir" != "X/usr/$acl_libdirstem"; then
  9174. haveit=
  9175. if test "X$additional_libdir" = "X/usr/local/$acl_libdirstem"; then
  9176. if test -n "$GCC"; then
  9177. case $host_os in
  9178. linux* | gnu* | k*bsd*-gnu) haveit=yes;;
  9179. esac
  9180. fi
  9181. fi
  9182. if test -z "$haveit"; then
  9183. haveit=
  9184. for x in $LDFLAGS $LIBPTH; do
  9185. acl_save_prefix="$prefix"
  9186. prefix="$acl_final_prefix"
  9187. acl_save_exec_prefix="$exec_prefix"
  9188. exec_prefix="$acl_final_exec_prefix"
  9189. eval x=\"$x\"
  9190. exec_prefix="$acl_save_exec_prefix"
  9191. prefix="$acl_save_prefix"
  9192. if test "X$x" = "X-L$additional_libdir"; then
  9193. haveit=yes
  9194. break
  9195. fi
  9196. done
  9197. if test -z "$haveit"; then
  9198. if test -d "$additional_libdir"; then
  9199. LIBPTH="${LIBPTH}${LIBPTH:+ }-L$additional_libdir"
  9200. fi
  9201. fi
  9202. haveit=
  9203. for x in $LDFLAGS $LTLIBPTH; do
  9204. acl_save_prefix="$prefix"
  9205. prefix="$acl_final_prefix"
  9206. acl_save_exec_prefix="$exec_prefix"
  9207. exec_prefix="$acl_final_exec_prefix"
  9208. eval x=\"$x\"
  9209. exec_prefix="$acl_save_exec_prefix"
  9210. prefix="$acl_save_prefix"
  9211. if test "X$x" = "X-L$additional_libdir"; then
  9212. haveit=yes
  9213. break
  9214. fi
  9215. done
  9216. if test -z "$haveit"; then
  9217. if test -d "$additional_libdir"; then
  9218. LTLIBPTH="${LTLIBPTH}${LTLIBPTH:+ }-L$additional_libdir"
  9219. fi
  9220. fi
  9221. fi
  9222. fi
  9223. ;;
  9224. -R*)
  9225. dir=`echo "X$dep" | sed -e 's/^X-R//'`
  9226. if test "$enable_rpath" != no; then
  9227. haveit=
  9228. for x in $rpathdirs; do
  9229. if test "X$x" = "X$dir"; then
  9230. haveit=yes
  9231. break
  9232. fi
  9233. done
  9234. if test -z "$haveit"; then
  9235. rpathdirs="$rpathdirs $dir"
  9236. fi
  9237. haveit=
  9238. for x in $ltrpathdirs; do
  9239. if test "X$x" = "X$dir"; then
  9240. haveit=yes
  9241. break
  9242. fi
  9243. done
  9244. if test -z "$haveit"; then
  9245. ltrpathdirs="$ltrpathdirs $dir"
  9246. fi
  9247. fi
  9248. ;;
  9249. -l*)
  9250. names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
  9251. ;;
  9252. *.la)
  9253. names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
  9254. ;;
  9255. *)
  9256. LIBPTH="${LIBPTH}${LIBPTH:+ }$dep"
  9257. LTLIBPTH="${LTLIBPTH}${LTLIBPTH:+ }$dep"
  9258. ;;
  9259. esac
  9260. done
  9261. fi
  9262. else
  9263. LIBPTH="${LIBPTH}${LIBPTH:+ }-l$name"
  9264. LTLIBPTH="${LTLIBPTH}${LTLIBPTH:+ }-l$name"
  9265. fi
  9266. fi
  9267. fi
  9268. done
  9269. done
  9270. if test "X$rpathdirs" != "X"; then
  9271. if test -n "$acl_hardcode_libdir_separator"; then
  9272. alldirs=
  9273. for found_dir in $rpathdirs; do
  9274. alldirs="${alldirs}${alldirs:+$acl_hardcode_libdir_separator}$found_dir"
  9275. done
  9276. acl_save_libdir="$libdir"
  9277. libdir="$alldirs"
  9278. eval flag=\"$acl_hardcode_libdir_flag_spec\"
  9279. libdir="$acl_save_libdir"
  9280. LIBPTH="${LIBPTH}${LIBPTH:+ }$flag"
  9281. else
  9282. for found_dir in $rpathdirs; do
  9283. acl_save_libdir="$libdir"
  9284. libdir="$found_dir"
  9285. eval flag=\"$acl_hardcode_libdir_flag_spec\"
  9286. libdir="$acl_save_libdir"
  9287. LIBPTH="${LIBPTH}${LIBPTH:+ }$flag"
  9288. done
  9289. fi
  9290. fi
  9291. if test "X$ltrpathdirs" != "X"; then
  9292. for found_dir in $ltrpathdirs; do
  9293. LTLIBPTH="${LTLIBPTH}${LTLIBPTH:+ }-R$found_dir"
  9294. done
  9295. fi
  9296. ac_cv_libpth_libs="$LIBPTH"
  9297. ac_cv_libpth_ltlibs="$LTLIBPTH"
  9298. ac_cv_libpth_cppflags="$INCPTH"
  9299. ac_cv_libpth_prefix="$LIBPTH_PREFIX"
  9300. fi
  9301. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_libpth_libs" >&5
  9302. $as_echo "$ac_cv_libpth_libs" >&6; }
  9303. LIBPTH="$ac_cv_libpth_libs"
  9304. LTLIBPTH="$ac_cv_libpth_ltlibs"
  9305. INCPTH="$ac_cv_libpth_cppflags"
  9306. LIBPTH_PREFIX="$ac_cv_libpth_prefix"
  9307. for element in $INCPTH; do
  9308. haveit=
  9309. for x in $CPPFLAGS; do
  9310. acl_save_prefix="$prefix"
  9311. prefix="$acl_final_prefix"
  9312. acl_save_exec_prefix="$exec_prefix"
  9313. exec_prefix="$acl_final_exec_prefix"
  9314. eval x=\"$x\"
  9315. exec_prefix="$acl_save_exec_prefix"
  9316. prefix="$acl_save_prefix"
  9317. if test "X$x" = "X$element"; then
  9318. haveit=yes
  9319. break
  9320. fi
  9321. done
  9322. if test -z "$haveit"; then
  9323. CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
  9324. fi
  9325. done
  9326. HAVE_LIBPTH=yes
  9327. gl_have_pth=
  9328. gl_save_LIBS="$LIBS"
  9329. LIBS="$LIBS -lpth"
  9330. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9331. /* end confdefs.h. */
  9332. #include <pth.h>
  9333. int
  9334. main ()
  9335. {
  9336. pth_self();
  9337. ;
  9338. return 0;
  9339. }
  9340. _ACEOF
  9341. if ac_fn_cxx_try_link "$LINENO"; then :
  9342. gl_have_pth=yes
  9343. fi
  9344. rm -f core conftest.err conftest.$ac_objext \
  9345. conftest$ac_exeext conftest.$ac_ext
  9346. LIBS="$gl_save_LIBS"
  9347. if test -n "$gl_have_pth"; then
  9348. gl_threads_api=pth
  9349. LIBTHREAD="$LIBPTH"
  9350. LTLIBTHREAD="$LTLIBPTH"
  9351. LIBMULTITHREAD="$LIBTHREAD"
  9352. LTLIBMULTITHREAD="$LTLIBTHREAD"
  9353. $as_echo "#define USE_PTH_THREADS 1" >>confdefs.h
  9354. if test -n "$LIBMULTITHREAD" || test -n "$LTLIBMULTITHREAD"; then
  9355. if test $gl_have_weak = yes; then
  9356. $as_echo "#define USE_PTH_THREADS_WEAK 1" >>confdefs.h
  9357. LIBTHREAD=
  9358. LTLIBTHREAD=
  9359. fi
  9360. fi
  9361. else
  9362. CPPFLAGS="$gl_save_CPPFLAGS"
  9363. fi
  9364. fi
  9365. if test -z "$gl_have_pthread"; then
  9366. if test "$gl_use_threads" = yes || test "$gl_use_threads" = win32; then
  9367. if { case "$host_os" in
  9368. mingw*) true;;
  9369. *) false;;
  9370. esac
  9371. }; then
  9372. gl_threads_api=win32
  9373. $as_echo "#define USE_WIN32_THREADS 1" >>confdefs.h
  9374. fi
  9375. fi
  9376. fi
  9377. fi
  9378. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for multithread API to use" >&5
  9379. $as_echo_n "checking for multithread API to use... " >&6; }
  9380. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_threads_api" >&5
  9381. $as_echo "$gl_threads_api" >&6; }
  9382. use_additional=yes
  9383. acl_save_prefix="$prefix"
  9384. prefix="$acl_final_prefix"
  9385. acl_save_exec_prefix="$exec_prefix"
  9386. exec_prefix="$acl_final_exec_prefix"
  9387. eval additional_includedir=\"$includedir\"
  9388. eval additional_libdir=\"$libdir\"
  9389. exec_prefix="$acl_save_exec_prefix"
  9390. prefix="$acl_save_prefix"
  9391. # Check whether --with-libiconv-prefix was given.
  9392. if test "${with_libiconv_prefix+set}" = set; then :
  9393. withval=$with_libiconv_prefix;
  9394. if test "X$withval" = "Xno"; then
  9395. use_additional=no
  9396. else
  9397. if test "X$withval" = "X"; then
  9398. acl_save_prefix="$prefix"
  9399. prefix="$acl_final_prefix"
  9400. acl_save_exec_prefix="$exec_prefix"
  9401. exec_prefix="$acl_final_exec_prefix"
  9402. eval additional_includedir=\"$includedir\"
  9403. eval additional_libdir=\"$libdir\"
  9404. exec_prefix="$acl_save_exec_prefix"
  9405. prefix="$acl_save_prefix"
  9406. else
  9407. additional_includedir="$withval/include"
  9408. additional_libdir="$withval/$acl_libdirstem"
  9409. fi
  9410. fi
  9411. fi
  9412. LIBICONV=
  9413. LTLIBICONV=
  9414. INCICONV=
  9415. LIBICONV_PREFIX=
  9416. rpathdirs=
  9417. ltrpathdirs=
  9418. names_already_handled=
  9419. names_next_round='iconv '
  9420. while test -n "$names_next_round"; do
  9421. names_this_round="$names_next_round"
  9422. names_next_round=
  9423. for name in $names_this_round; do
  9424. already_handled=
  9425. for n in $names_already_handled; do
  9426. if test "$n" = "$name"; then
  9427. already_handled=yes
  9428. break
  9429. fi
  9430. done
  9431. if test -z "$already_handled"; then
  9432. names_already_handled="$names_already_handled $name"
  9433. uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
  9434. eval value=\"\$HAVE_LIB$uppername\"
  9435. if test -n "$value"; then
  9436. if test "$value" = yes; then
  9437. eval value=\"\$LIB$uppername\"
  9438. test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value"
  9439. eval value=\"\$LTLIB$uppername\"
  9440. test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value"
  9441. else
  9442. :
  9443. fi
  9444. else
  9445. found_dir=
  9446. found_la=
  9447. found_so=
  9448. found_a=
  9449. eval libname=\"$acl_libname_spec\" # typically: libname=lib$name
  9450. if test -n "$acl_shlibext"; then
  9451. shrext=".$acl_shlibext" # typically: shrext=.so
  9452. else
  9453. shrext=
  9454. fi
  9455. if test $use_additional = yes; then
  9456. dir="$additional_libdir"
  9457. if test -n "$acl_shlibext"; then
  9458. if test -f "$dir/$libname$shrext"; then
  9459. found_dir="$dir"
  9460. found_so="$dir/$libname$shrext"
  9461. else
  9462. if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
  9463. ver=`(cd "$dir" && \
  9464. for f in "$libname$shrext".*; do echo "$f"; done \
  9465. | sed -e "s,^$libname$shrext\\\\.,," \
  9466. | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
  9467. | sed 1q ) 2>/dev/null`
  9468. if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
  9469. found_dir="$dir"
  9470. found_so="$dir/$libname$shrext.$ver"
  9471. fi
  9472. else
  9473. eval library_names=\"$acl_library_names_spec\"
  9474. for f in $library_names; do
  9475. if test -f "$dir/$f"; then
  9476. found_dir="$dir"
  9477. found_so="$dir/$f"
  9478. break
  9479. fi
  9480. done
  9481. fi
  9482. fi
  9483. fi
  9484. if test "X$found_dir" = "X"; then
  9485. if test -f "$dir/$libname.$acl_libext"; then
  9486. found_dir="$dir"
  9487. found_a="$dir/$libname.$acl_libext"
  9488. fi
  9489. fi
  9490. if test "X$found_dir" != "X"; then
  9491. if test -f "$dir/$libname.la"; then
  9492. found_la="$dir/$libname.la"
  9493. fi
  9494. fi
  9495. fi
  9496. if test "X$found_dir" = "X"; then
  9497. for x in $LDFLAGS $LTLIBICONV; do
  9498. acl_save_prefix="$prefix"
  9499. prefix="$acl_final_prefix"
  9500. acl_save_exec_prefix="$exec_prefix"
  9501. exec_prefix="$acl_final_exec_prefix"
  9502. eval x=\"$x\"
  9503. exec_prefix="$acl_save_exec_prefix"
  9504. prefix="$acl_save_prefix"
  9505. case "$x" in
  9506. -L*)
  9507. dir=`echo "X$x" | sed -e 's/^X-L//'`
  9508. if test -n "$acl_shlibext"; then
  9509. if test -f "$dir/$libname$shrext"; then
  9510. found_dir="$dir"
  9511. found_so="$dir/$libname$shrext"
  9512. else
  9513. if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
  9514. ver=`(cd "$dir" && \
  9515. for f in "$libname$shrext".*; do echo "$f"; done \
  9516. | sed -e "s,^$libname$shrext\\\\.,," \
  9517. | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
  9518. | sed 1q ) 2>/dev/null`
  9519. if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
  9520. found_dir="$dir"
  9521. found_so="$dir/$libname$shrext.$ver"
  9522. fi
  9523. else
  9524. eval library_names=\"$acl_library_names_spec\"
  9525. for f in $library_names; do
  9526. if test -f "$dir/$f"; then
  9527. found_dir="$dir"
  9528. found_so="$dir/$f"
  9529. break
  9530. fi
  9531. done
  9532. fi
  9533. fi
  9534. fi
  9535. if test "X$found_dir" = "X"; then
  9536. if test -f "$dir/$libname.$acl_libext"; then
  9537. found_dir="$dir"
  9538. found_a="$dir/$libname.$acl_libext"
  9539. fi
  9540. fi
  9541. if test "X$found_dir" != "X"; then
  9542. if test -f "$dir/$libname.la"; then
  9543. found_la="$dir/$libname.la"
  9544. fi
  9545. fi
  9546. ;;
  9547. esac
  9548. if test "X$found_dir" != "X"; then
  9549. break
  9550. fi
  9551. done
  9552. fi
  9553. if test "X$found_dir" != "X"; then
  9554. LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
  9555. if test "X$found_so" != "X"; then
  9556. if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/$acl_libdirstem"; then
  9557. LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
  9558. else
  9559. haveit=
  9560. for x in $ltrpathdirs; do
  9561. if test "X$x" = "X$found_dir"; then
  9562. haveit=yes
  9563. break
  9564. fi
  9565. done
  9566. if test -z "$haveit"; then
  9567. ltrpathdirs="$ltrpathdirs $found_dir"
  9568. fi
  9569. if test "$acl_hardcode_direct" = yes; then
  9570. LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
  9571. else
  9572. if test -n "$acl_hardcode_libdir_flag_spec" && test "$acl_hardcode_minus_L" = no; then
  9573. LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
  9574. haveit=
  9575. for x in $rpathdirs; do
  9576. if test "X$x" = "X$found_dir"; then
  9577. haveit=yes
  9578. break
  9579. fi
  9580. done
  9581. if test -z "$haveit"; then
  9582. rpathdirs="$rpathdirs $found_dir"
  9583. fi
  9584. else
  9585. haveit=
  9586. for x in $LDFLAGS $LIBICONV; do
  9587. acl_save_prefix="$prefix"
  9588. prefix="$acl_final_prefix"
  9589. acl_save_exec_prefix="$exec_prefix"
  9590. exec_prefix="$acl_final_exec_prefix"
  9591. eval x=\"$x\"
  9592. exec_prefix="$acl_save_exec_prefix"
  9593. prefix="$acl_save_prefix"
  9594. if test "X$x" = "X-L$found_dir"; then
  9595. haveit=yes
  9596. break
  9597. fi
  9598. done
  9599. if test -z "$haveit"; then
  9600. LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir"
  9601. fi
  9602. if test "$acl_hardcode_minus_L" != no; then
  9603. LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
  9604. else
  9605. LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
  9606. fi
  9607. fi
  9608. fi
  9609. fi
  9610. else
  9611. if test "X$found_a" != "X"; then
  9612. LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a"
  9613. else
  9614. LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
  9615. fi
  9616. fi
  9617. additional_includedir=
  9618. case "$found_dir" in
  9619. */$acl_libdirstem | */$acl_libdirstem/)
  9620. basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem/"'*$,,'`
  9621. LIBICONV_PREFIX="$basedir"
  9622. additional_includedir="$basedir/include"
  9623. ;;
  9624. esac
  9625. if test "X$additional_includedir" != "X"; then
  9626. if test "X$additional_includedir" != "X/usr/include"; then
  9627. haveit=
  9628. if test "X$additional_includedir" = "X/usr/local/include"; then
  9629. if test -n "$GCC"; then
  9630. case $host_os in
  9631. linux* | gnu* | k*bsd*-gnu) haveit=yes;;
  9632. esac
  9633. fi
  9634. fi
  9635. if test -z "$haveit"; then
  9636. for x in $CPPFLAGS $INCICONV; do
  9637. acl_save_prefix="$prefix"
  9638. prefix="$acl_final_prefix"
  9639. acl_save_exec_prefix="$exec_prefix"
  9640. exec_prefix="$acl_final_exec_prefix"
  9641. eval x=\"$x\"
  9642. exec_prefix="$acl_save_exec_prefix"
  9643. prefix="$acl_save_prefix"
  9644. if test "X$x" = "X-I$additional_includedir"; then
  9645. haveit=yes
  9646. break
  9647. fi
  9648. done
  9649. if test -z "$haveit"; then
  9650. if test -d "$additional_includedir"; then
  9651. INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir"
  9652. fi
  9653. fi
  9654. fi
  9655. fi
  9656. fi
  9657. if test -n "$found_la"; then
  9658. save_libdir="$libdir"
  9659. case "$found_la" in
  9660. */* | *\\*) . "$found_la" ;;
  9661. *) . "./$found_la" ;;
  9662. esac
  9663. libdir="$save_libdir"
  9664. for dep in $dependency_libs; do
  9665. case "$dep" in
  9666. -L*)
  9667. additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
  9668. if test "X$additional_libdir" != "X/usr/$acl_libdirstem"; then
  9669. haveit=
  9670. if test "X$additional_libdir" = "X/usr/local/$acl_libdirstem"; then
  9671. if test -n "$GCC"; then
  9672. case $host_os in
  9673. linux* | gnu* | k*bsd*-gnu) haveit=yes;;
  9674. esac
  9675. fi
  9676. fi
  9677. if test -z "$haveit"; then
  9678. haveit=
  9679. for x in $LDFLAGS $LIBICONV; do
  9680. acl_save_prefix="$prefix"
  9681. prefix="$acl_final_prefix"
  9682. acl_save_exec_prefix="$exec_prefix"
  9683. exec_prefix="$acl_final_exec_prefix"
  9684. eval x=\"$x\"
  9685. exec_prefix="$acl_save_exec_prefix"
  9686. prefix="$acl_save_prefix"
  9687. if test "X$x" = "X-L$additional_libdir"; then
  9688. haveit=yes
  9689. break
  9690. fi
  9691. done
  9692. if test -z "$haveit"; then
  9693. if test -d "$additional_libdir"; then
  9694. LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
  9695. fi
  9696. fi
  9697. haveit=
  9698. for x in $LDFLAGS $LTLIBICONV; do
  9699. acl_save_prefix="$prefix"
  9700. prefix="$acl_final_prefix"
  9701. acl_save_exec_prefix="$exec_prefix"
  9702. exec_prefix="$acl_final_exec_prefix"
  9703. eval x=\"$x\"
  9704. exec_prefix="$acl_save_exec_prefix"
  9705. prefix="$acl_save_prefix"
  9706. if test "X$x" = "X-L$additional_libdir"; then
  9707. haveit=yes
  9708. break
  9709. fi
  9710. done
  9711. if test -z "$haveit"; then
  9712. if test -d "$additional_libdir"; then
  9713. LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
  9714. fi
  9715. fi
  9716. fi
  9717. fi
  9718. ;;
  9719. -R*)
  9720. dir=`echo "X$dep" | sed -e 's/^X-R//'`
  9721. if test "$enable_rpath" != no; then
  9722. haveit=
  9723. for x in $rpathdirs; do
  9724. if test "X$x" = "X$dir"; then
  9725. haveit=yes
  9726. break
  9727. fi
  9728. done
  9729. if test -z "$haveit"; then
  9730. rpathdirs="$rpathdirs $dir"
  9731. fi
  9732. haveit=
  9733. for x in $ltrpathdirs; do
  9734. if test "X$x" = "X$dir"; then
  9735. haveit=yes
  9736. break
  9737. fi
  9738. done
  9739. if test -z "$haveit"; then
  9740. ltrpathdirs="$ltrpathdirs $dir"
  9741. fi
  9742. fi
  9743. ;;
  9744. -l*)
  9745. names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
  9746. ;;
  9747. *.la)
  9748. names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
  9749. ;;
  9750. *)
  9751. LIBICONV="${LIBICONV}${LIBICONV:+ }$dep"
  9752. LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep"
  9753. ;;
  9754. esac
  9755. done
  9756. fi
  9757. else
  9758. LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
  9759. LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
  9760. fi
  9761. fi
  9762. fi
  9763. done
  9764. done
  9765. if test "X$rpathdirs" != "X"; then
  9766. if test -n "$acl_hardcode_libdir_separator"; then
  9767. alldirs=
  9768. for found_dir in $rpathdirs; do
  9769. alldirs="${alldirs}${alldirs:+$acl_hardcode_libdir_separator}$found_dir"
  9770. done
  9771. acl_save_libdir="$libdir"
  9772. libdir="$alldirs"
  9773. eval flag=\"$acl_hardcode_libdir_flag_spec\"
  9774. libdir="$acl_save_libdir"
  9775. LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
  9776. else
  9777. for found_dir in $rpathdirs; do
  9778. acl_save_libdir="$libdir"
  9779. libdir="$found_dir"
  9780. eval flag=\"$acl_hardcode_libdir_flag_spec\"
  9781. libdir="$acl_save_libdir"
  9782. LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
  9783. done
  9784. fi
  9785. fi
  9786. if test "X$ltrpathdirs" != "X"; then
  9787. for found_dir in $ltrpathdirs; do
  9788. LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
  9789. done
  9790. fi
  9791. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9792. /* end confdefs.h. */
  9793. int foo (int a) { a = __builtin_expect (a, 10); return a == 10 ? 0 : 1; }
  9794. int
  9795. main ()
  9796. {
  9797. ;
  9798. return 0;
  9799. }
  9800. _ACEOF
  9801. if ac_fn_cxx_try_link "$LINENO"; then :
  9802. $as_echo "#define HAVE_BUILTIN_EXPECT 1" >>confdefs.h
  9803. fi
  9804. rm -f core conftest.err conftest.$ac_objext \
  9805. conftest$ac_exeext conftest.$ac_ext
  9806. for ac_header in argz.h inttypes.h limits.h unistd.h sys/param.h
  9807. do :
  9808. as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
  9809. ac_fn_cxx_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
  9810. eval as_val=\$$as_ac_Header
  9811. if test "x$as_val" = x""yes; then :
  9812. cat >>confdefs.h <<_ACEOF
  9813. #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
  9814. _ACEOF
  9815. fi
  9816. done
  9817. for ac_func in getcwd getegid geteuid getgid getuid mempcpy munmap \
  9818. stpcpy strcasecmp strdup strtoul tsearch argz_count argz_stringify \
  9819. argz_next __fsetlocking
  9820. do :
  9821. as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
  9822. ac_fn_cxx_check_func "$LINENO" "$ac_func" "$as_ac_var"
  9823. eval as_val=\$$as_ac_var
  9824. if test "x$as_val" = x""yes; then :
  9825. cat >>confdefs.h <<_ACEOF
  9826. #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
  9827. _ACEOF
  9828. fi
  9829. done
  9830. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether feof_unlocked is declared" >&5
  9831. $as_echo_n "checking whether feof_unlocked is declared... " >&6; }
  9832. if test "${ac_cv_have_decl_feof_unlocked+set}" = set; then :
  9833. $as_echo_n "(cached) " >&6
  9834. else
  9835. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9836. /* end confdefs.h. */
  9837. #include <stdio.h>
  9838. int
  9839. main ()
  9840. {
  9841. #ifndef feof_unlocked
  9842. char *p = (char *) feof_unlocked;
  9843. #endif
  9844. ;
  9845. return 0;
  9846. }
  9847. _ACEOF
  9848. if ac_fn_cxx_try_compile "$LINENO"; then :
  9849. ac_cv_have_decl_feof_unlocked=yes
  9850. else
  9851. ac_cv_have_decl_feof_unlocked=no
  9852. fi
  9853. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  9854. fi
  9855. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_decl_feof_unlocked" >&5
  9856. $as_echo "$ac_cv_have_decl_feof_unlocked" >&6; }
  9857. if test $ac_cv_have_decl_feof_unlocked = yes; then
  9858. gt_value=1
  9859. else
  9860. gt_value=0
  9861. fi
  9862. cat >>confdefs.h <<_ACEOF
  9863. #define HAVE_DECL_FEOF_UNLOCKED $gt_value
  9864. _ACEOF
  9865. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether fgets_unlocked is declared" >&5
  9866. $as_echo_n "checking whether fgets_unlocked is declared... " >&6; }
  9867. if test "${ac_cv_have_decl_fgets_unlocked+set}" = set; then :
  9868. $as_echo_n "(cached) " >&6
  9869. else
  9870. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9871. /* end confdefs.h. */
  9872. #include <stdio.h>
  9873. int
  9874. main ()
  9875. {
  9876. #ifndef fgets_unlocked
  9877. char *p = (char *) fgets_unlocked;
  9878. #endif
  9879. ;
  9880. return 0;
  9881. }
  9882. _ACEOF
  9883. if ac_fn_cxx_try_compile "$LINENO"; then :
  9884. ac_cv_have_decl_fgets_unlocked=yes
  9885. else
  9886. ac_cv_have_decl_fgets_unlocked=no
  9887. fi
  9888. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  9889. fi
  9890. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_decl_fgets_unlocked" >&5
  9891. $as_echo "$ac_cv_have_decl_fgets_unlocked" >&6; }
  9892. if test $ac_cv_have_decl_fgets_unlocked = yes; then
  9893. gt_value=1
  9894. else
  9895. gt_value=0
  9896. fi
  9897. cat >>confdefs.h <<_ACEOF
  9898. #define HAVE_DECL_FGETS_UNLOCKED $gt_value
  9899. _ACEOF
  9900. am_save_CPPFLAGS="$CPPFLAGS"
  9901. for element in $INCICONV; do
  9902. haveit=
  9903. for x in $CPPFLAGS; do
  9904. acl_save_prefix="$prefix"
  9905. prefix="$acl_final_prefix"
  9906. acl_save_exec_prefix="$exec_prefix"
  9907. exec_prefix="$acl_final_exec_prefix"
  9908. eval x=\"$x\"
  9909. exec_prefix="$acl_save_exec_prefix"
  9910. prefix="$acl_save_prefix"
  9911. if test "X$x" = "X$element"; then
  9912. haveit=yes
  9913. break
  9914. fi
  9915. done
  9916. if test -z "$haveit"; then
  9917. CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
  9918. fi
  9919. done
  9920. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv" >&5
  9921. $as_echo_n "checking for iconv... " >&6; }
  9922. if test "${am_cv_func_iconv+set}" = set; then :
  9923. $as_echo_n "(cached) " >&6
  9924. else
  9925. am_cv_func_iconv="no, consider installing GNU libiconv"
  9926. am_cv_lib_iconv=no
  9927. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9928. /* end confdefs.h. */
  9929. #include <stdlib.h>
  9930. #include <iconv.h>
  9931. int
  9932. main ()
  9933. {
  9934. iconv_t cd = iconv_open("","");
  9935. iconv(cd,NULL,NULL,NULL,NULL);
  9936. iconv_close(cd);
  9937. ;
  9938. return 0;
  9939. }
  9940. _ACEOF
  9941. if ac_fn_cxx_try_link "$LINENO"; then :
  9942. am_cv_func_iconv=yes
  9943. fi
  9944. rm -f core conftest.err conftest.$ac_objext \
  9945. conftest$ac_exeext conftest.$ac_ext
  9946. if test "$am_cv_func_iconv" != yes; then
  9947. am_save_LIBS="$LIBS"
  9948. LIBS="$LIBS $LIBICONV"
  9949. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9950. /* end confdefs.h. */
  9951. #include <stdlib.h>
  9952. #include <iconv.h>
  9953. int
  9954. main ()
  9955. {
  9956. iconv_t cd = iconv_open("","");
  9957. iconv(cd,NULL,NULL,NULL,NULL);
  9958. iconv_close(cd);
  9959. ;
  9960. return 0;
  9961. }
  9962. _ACEOF
  9963. if ac_fn_cxx_try_link "$LINENO"; then :
  9964. am_cv_lib_iconv=yes
  9965. am_cv_func_iconv=yes
  9966. fi
  9967. rm -f core conftest.err conftest.$ac_objext \
  9968. conftest$ac_exeext conftest.$ac_ext
  9969. LIBS="$am_save_LIBS"
  9970. fi
  9971. fi
  9972. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv" >&5
  9973. $as_echo "$am_cv_func_iconv" >&6; }
  9974. if test "$am_cv_func_iconv" = yes; then
  9975. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working iconv" >&5
  9976. $as_echo_n "checking for working iconv... " >&6; }
  9977. if test "${am_cv_func_iconv_works+set}" = set; then :
  9978. $as_echo_n "(cached) " >&6
  9979. else
  9980. am_save_LIBS="$LIBS"
  9981. if test $am_cv_lib_iconv = yes; then
  9982. LIBS="$LIBS $LIBICONV"
  9983. fi
  9984. if test "$cross_compiling" = yes; then :
  9985. case "$host_os" in
  9986. aix* | hpux*) am_cv_func_iconv_works="guessing no" ;;
  9987. *) am_cv_func_iconv_works="guessing yes" ;;
  9988. esac
  9989. else
  9990. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9991. /* end confdefs.h. */
  9992. #include <iconv.h>
  9993. #include <string.h>
  9994. int main ()
  9995. {
  9996. /* Test against AIX 5.1 bug: Failures are not distinguishable from successful
  9997. returns. */
  9998. {
  9999. iconv_t cd_utf8_to_88591 = iconv_open ("ISO8859-1", "UTF-8");
  10000. if (cd_utf8_to_88591 != (iconv_t)(-1))
  10001. {
  10002. static const char input[] = "\342\202\254"; /* EURO SIGN */
  10003. char buf[10];
  10004. const char *inptr = input;
  10005. size_t inbytesleft = strlen (input);
  10006. char *outptr = buf;
  10007. size_t outbytesleft = sizeof (buf);
  10008. size_t res = iconv (cd_utf8_to_88591,
  10009. (char **) &inptr, &inbytesleft,
  10010. &outptr, &outbytesleft);
  10011. if (res == 0)
  10012. return 1;
  10013. }
  10014. }
  10015. #if 0 /* This bug could be worked around by the caller. */
  10016. /* Test against HP-UX 11.11 bug: Positive return value instead of 0. */
  10017. {
  10018. iconv_t cd_88591_to_utf8 = iconv_open ("utf8", "iso88591");
  10019. if (cd_88591_to_utf8 != (iconv_t)(-1))
  10020. {
  10021. static const char input[] = "\304rger mit b\366sen B\374bchen ohne Augenma\337";
  10022. char buf[50];
  10023. const char *inptr = input;
  10024. size_t inbytesleft = strlen (input);
  10025. char *outptr = buf;
  10026. size_t outbytesleft = sizeof (buf);
  10027. size_t res = iconv (cd_88591_to_utf8,
  10028. (char **) &inptr, &inbytesleft,
  10029. &outptr, &outbytesleft);
  10030. if ((int)res > 0)
  10031. return 1;
  10032. }
  10033. }
  10034. #endif
  10035. /* Test against HP-UX 11.11 bug: No converter from EUC-JP to UTF-8 is
  10036. provided. */
  10037. if (/* Try standardized names. */
  10038. iconv_open ("UTF-8", "EUC-JP") == (iconv_t)(-1)
  10039. /* Try IRIX, OSF/1 names. */
  10040. && iconv_open ("UTF-8", "eucJP") == (iconv_t)(-1)
  10041. /* Try AIX names. */
  10042. && iconv_open ("UTF-8", "IBM-eucJP") == (iconv_t)(-1)
  10043. /* Try HP-UX names. */
  10044. && iconv_open ("utf8", "eucJP") == (iconv_t)(-1))
  10045. return 1;
  10046. return 0;
  10047. }
  10048. _ACEOF
  10049. if ac_fn_cxx_try_run "$LINENO"; then :
  10050. am_cv_func_iconv_works=yes
  10051. else
  10052. am_cv_func_iconv_works=no
  10053. fi
  10054. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  10055. conftest.$ac_objext conftest.beam conftest.$ac_ext
  10056. fi
  10057. LIBS="$am_save_LIBS"
  10058. fi
  10059. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv_works" >&5
  10060. $as_echo "$am_cv_func_iconv_works" >&6; }
  10061. case "$am_cv_func_iconv_works" in
  10062. *no) am_func_iconv=no am_cv_lib_iconv=no ;;
  10063. *) am_func_iconv=yes ;;
  10064. esac
  10065. else
  10066. am_func_iconv=no am_cv_lib_iconv=no
  10067. fi
  10068. if test "$am_func_iconv" = yes; then
  10069. $as_echo "#define HAVE_ICONV 1" >>confdefs.h
  10070. fi
  10071. if test "$am_cv_lib_iconv" = yes; then
  10072. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libiconv" >&5
  10073. $as_echo_n "checking how to link with libiconv... " >&6; }
  10074. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBICONV" >&5
  10075. $as_echo "$LIBICONV" >&6; }
  10076. else
  10077. CPPFLAGS="$am_save_CPPFLAGS"
  10078. LIBICONV=
  10079. LTLIBICONV=
  10080. fi
  10081. if test "$am_cv_func_iconv" = yes; then
  10082. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv declaration" >&5
  10083. $as_echo_n "checking for iconv declaration... " >&6; }
  10084. if test "${am_cv_proto_iconv+set}" = set; then :
  10085. $as_echo_n "(cached) " >&6
  10086. else
  10087. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10088. /* end confdefs.h. */
  10089. #include <stdlib.h>
  10090. #include <iconv.h>
  10091. extern
  10092. #ifdef __cplusplus
  10093. "C"
  10094. #endif
  10095. #if defined(__STDC__) || defined(__cplusplus)
  10096. size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
  10097. #else
  10098. size_t iconv();
  10099. #endif
  10100. int
  10101. main ()
  10102. {
  10103. ;
  10104. return 0;
  10105. }
  10106. _ACEOF
  10107. if ac_fn_cxx_try_compile "$LINENO"; then :
  10108. am_cv_proto_iconv_arg1=""
  10109. else
  10110. am_cv_proto_iconv_arg1="const"
  10111. fi
  10112. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  10113. 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);"
  10114. fi
  10115. am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
  10116. { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${ac_t:-
  10117. }$am_cv_proto_iconv" >&5
  10118. $as_echo "${ac_t:-
  10119. }$am_cv_proto_iconv" >&6; }
  10120. cat >>confdefs.h <<_ACEOF
  10121. #define ICONV_CONST $am_cv_proto_iconv_arg1
  10122. _ACEOF
  10123. fi
  10124. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for NL_LOCALE_NAME macro" >&5
  10125. $as_echo_n "checking for NL_LOCALE_NAME macro... " >&6; }
  10126. if test "${gt_cv_nl_locale_name+set}" = set; then :
  10127. $as_echo_n "(cached) " >&6
  10128. else
  10129. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10130. /* end confdefs.h. */
  10131. #include <langinfo.h>
  10132. #include <locale.h>
  10133. int
  10134. main ()
  10135. {
  10136. char* cs = nl_langinfo(_NL_LOCALE_NAME(LC_MESSAGES));
  10137. return !cs;
  10138. ;
  10139. return 0;
  10140. }
  10141. _ACEOF
  10142. if ac_fn_cxx_try_link "$LINENO"; then :
  10143. gt_cv_nl_locale_name=yes
  10144. else
  10145. gt_cv_nl_locale_name=no
  10146. fi
  10147. rm -f core conftest.err conftest.$ac_objext \
  10148. conftest$ac_exeext conftest.$ac_ext
  10149. fi
  10150. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_nl_locale_name" >&5
  10151. $as_echo "$gt_cv_nl_locale_name" >&6; }
  10152. if test $gt_cv_nl_locale_name = yes; then
  10153. $as_echo "#define HAVE_NL_LOCALE_NAME 1" >>confdefs.h
  10154. fi
  10155. for ac_prog in bison
  10156. do
  10157. # Extract the first word of "$ac_prog", so it can be a program name with args.
  10158. set dummy $ac_prog; ac_word=$2
  10159. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  10160. $as_echo_n "checking for $ac_word... " >&6; }
  10161. if test "${ac_cv_prog_INTLBISON+set}" = set; then :
  10162. $as_echo_n "(cached) " >&6
  10163. else
  10164. if test -n "$INTLBISON"; then
  10165. ac_cv_prog_INTLBISON="$INTLBISON" # Let the user override the test.
  10166. else
  10167. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  10168. for as_dir in $PATH
  10169. do
  10170. IFS=$as_save_IFS
  10171. test -z "$as_dir" && as_dir=.
  10172. for ac_exec_ext in '' $ac_executable_extensions; do
  10173. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  10174. ac_cv_prog_INTLBISON="$ac_prog"
  10175. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  10176. break 2
  10177. fi
  10178. done
  10179. done
  10180. IFS=$as_save_IFS
  10181. fi
  10182. fi
  10183. INTLBISON=$ac_cv_prog_INTLBISON
  10184. if test -n "$INTLBISON"; then
  10185. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INTLBISON" >&5
  10186. $as_echo "$INTLBISON" >&6; }
  10187. else
  10188. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  10189. $as_echo "no" >&6; }
  10190. fi
  10191. test -n "$INTLBISON" && break
  10192. done
  10193. if test -z "$INTLBISON"; then
  10194. ac_verc_fail=yes
  10195. else
  10196. { $as_echo "$as_me:${as_lineno-$LINENO}: checking version of bison" >&5
  10197. $as_echo_n "checking version of bison... " >&6; }
  10198. ac_prog_version=`$INTLBISON --version 2>&1 | sed -n 's/^.*GNU Bison.* \([0-9]*\.[0-9.]*\).*$/\1/p'`
  10199. case $ac_prog_version in
  10200. '') ac_prog_version="v. ?.??, bad"; ac_verc_fail=yes;;
  10201. 1.2[6-9]* | 1.[3-9][0-9]* | [2-9].*)
  10202. ac_prog_version="$ac_prog_version, ok"; ac_verc_fail=no;;
  10203. *) ac_prog_version="$ac_prog_version, bad"; ac_verc_fail=yes;;
  10204. esac
  10205. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_prog_version" >&5
  10206. $as_echo "$ac_prog_version" >&6; }
  10207. fi
  10208. if test $ac_verc_fail = yes; then
  10209. INTLBISON=:
  10210. fi
  10211. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long long int" >&5
  10212. $as_echo_n "checking for long long int... " >&6; }
  10213. if test "${ac_cv_type_long_long_int+set}" = set; then :
  10214. $as_echo_n "(cached) " >&6
  10215. else
  10216. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10217. /* end confdefs.h. */
  10218. /* Test preprocessor. */
  10219. #if ! (-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
  10220. error in preprocessor;
  10221. #endif
  10222. #if ! (18446744073709551615ULL <= -1ull)
  10223. error in preprocessor;
  10224. #endif
  10225. /* Test literals. */
  10226. long long int ll = 9223372036854775807ll;
  10227. long long int nll = -9223372036854775807LL;
  10228. unsigned long long int ull = 18446744073709551615ULL;
  10229. /* Test constant expressions. */
  10230. typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
  10231. ? 1 : -1)];
  10232. typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1
  10233. ? 1 : -1)];
  10234. int i = 63;
  10235. int
  10236. main ()
  10237. {
  10238. /* Test availability of runtime routines for shift and division. */
  10239. long long int llmax = 9223372036854775807ll;
  10240. unsigned long long int ullmax = 18446744073709551615ull;
  10241. return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i)
  10242. | (llmax / ll) | (llmax % ll)
  10243. | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i)
  10244. | (ullmax / ull) | (ullmax % ull));
  10245. ;
  10246. return 0;
  10247. }
  10248. _ACEOF
  10249. if ac_fn_cxx_try_link "$LINENO"; then :
  10250. if test "$cross_compiling" = yes; then :
  10251. ac_cv_type_long_long_int=yes
  10252. else
  10253. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10254. /* end confdefs.h. */
  10255. #include <limits.h>
  10256. #ifndef LLONG_MAX
  10257. # define HALF \
  10258. (1LL << (sizeof (long long int) * CHAR_BIT - 2))
  10259. # define LLONG_MAX (HALF - 1 + HALF)
  10260. #endif
  10261. int
  10262. main ()
  10263. {
  10264. long long int n = 1;
  10265. int i;
  10266. for (i = 0; ; i++)
  10267. {
  10268. long long int m = n << i;
  10269. if (m >> i != n)
  10270. return 1;
  10271. if (LLONG_MAX / 2 < m)
  10272. break;
  10273. }
  10274. return 0;
  10275. ;
  10276. return 0;
  10277. }
  10278. _ACEOF
  10279. if ac_fn_cxx_try_run "$LINENO"; then :
  10280. ac_cv_type_long_long_int=yes
  10281. else
  10282. ac_cv_type_long_long_int=no
  10283. fi
  10284. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  10285. conftest.$ac_objext conftest.beam conftest.$ac_ext
  10286. fi
  10287. else
  10288. ac_cv_type_long_long_int=no
  10289. fi
  10290. rm -f core conftest.err conftest.$ac_objext \
  10291. conftest$ac_exeext conftest.$ac_ext
  10292. fi
  10293. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_long_long_int" >&5
  10294. $as_echo "$ac_cv_type_long_long_int" >&6; }
  10295. if test $ac_cv_type_long_long_int = yes; then
  10296. $as_echo "#define HAVE_LONG_LONG_INT 1" >>confdefs.h
  10297. fi
  10298. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wchar_t" >&5
  10299. $as_echo_n "checking for wchar_t... " >&6; }
  10300. if test "${gt_cv_c_wchar_t+set}" = set; then :
  10301. $as_echo_n "(cached) " >&6
  10302. else
  10303. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10304. /* end confdefs.h. */
  10305. #include <stddef.h>
  10306. wchar_t foo = (wchar_t)'\0';
  10307. int
  10308. main ()
  10309. {
  10310. ;
  10311. return 0;
  10312. }
  10313. _ACEOF
  10314. if ac_fn_cxx_try_compile "$LINENO"; then :
  10315. gt_cv_c_wchar_t=yes
  10316. else
  10317. gt_cv_c_wchar_t=no
  10318. fi
  10319. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  10320. fi
  10321. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_c_wchar_t" >&5
  10322. $as_echo "$gt_cv_c_wchar_t" >&6; }
  10323. if test $gt_cv_c_wchar_t = yes; then
  10324. $as_echo "#define HAVE_WCHAR_T 1" >>confdefs.h
  10325. fi
  10326. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wint_t" >&5
  10327. $as_echo_n "checking for wint_t... " >&6; }
  10328. if test "${gt_cv_c_wint_t+set}" = set; then :
  10329. $as_echo_n "(cached) " >&6
  10330. else
  10331. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10332. /* end confdefs.h. */
  10333. /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
  10334. <wchar.h>.
  10335. BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be included
  10336. before <wchar.h>. */
  10337. #include <stddef.h>
  10338. #include <stdio.h>
  10339. #include <time.h>
  10340. #include <wchar.h>
  10341. wint_t foo = (wchar_t)'\0';
  10342. int
  10343. main ()
  10344. {
  10345. ;
  10346. return 0;
  10347. }
  10348. _ACEOF
  10349. if ac_fn_cxx_try_compile "$LINENO"; then :
  10350. gt_cv_c_wint_t=yes
  10351. else
  10352. gt_cv_c_wint_t=no
  10353. fi
  10354. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  10355. fi
  10356. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_c_wint_t" >&5
  10357. $as_echo "$gt_cv_c_wint_t" >&6; }
  10358. if test $gt_cv_c_wint_t = yes; then
  10359. $as_echo "#define HAVE_WINT_T 1" >>confdefs.h
  10360. fi
  10361. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for intmax_t" >&5
  10362. $as_echo_n "checking for intmax_t... " >&6; }
  10363. if test "${gt_cv_c_intmax_t+set}" = set; then :
  10364. $as_echo_n "(cached) " >&6
  10365. else
  10366. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10367. /* end confdefs.h. */
  10368. #include <stddef.h>
  10369. #include <stdlib.h>
  10370. #if HAVE_STDINT_H_WITH_UINTMAX
  10371. #include <stdint.h>
  10372. #endif
  10373. #if HAVE_INTTYPES_H_WITH_UINTMAX
  10374. #include <inttypes.h>
  10375. #endif
  10376. int
  10377. main ()
  10378. {
  10379. intmax_t x = -1;
  10380. return !x;
  10381. ;
  10382. return 0;
  10383. }
  10384. _ACEOF
  10385. if ac_fn_cxx_try_compile "$LINENO"; then :
  10386. gt_cv_c_intmax_t=yes
  10387. else
  10388. gt_cv_c_intmax_t=no
  10389. fi
  10390. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  10391. fi
  10392. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_c_intmax_t" >&5
  10393. $as_echo "$gt_cv_c_intmax_t" >&6; }
  10394. if test $gt_cv_c_intmax_t = yes; then
  10395. $as_echo "#define HAVE_INTMAX_T 1" >>confdefs.h
  10396. fi
  10397. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether printf() supports POSIX/XSI format strings" >&5
  10398. $as_echo_n "checking whether printf() supports POSIX/XSI format strings... " >&6; }
  10399. if test "${gt_cv_func_printf_posix+set}" = set; then :
  10400. $as_echo_n "(cached) " >&6
  10401. else
  10402. if test "$cross_compiling" = yes; then :
  10403. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10404. /* end confdefs.h. */
  10405. #if defined __NetBSD__ || defined __BEOS__ || defined _MSC_VER || defined __MINGW32__ || defined __CYGWIN__
  10406. notposix
  10407. #endif
  10408. _ACEOF
  10409. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  10410. $EGREP "notposix" >/dev/null 2>&1; then :
  10411. gt_cv_func_printf_posix="guessing no"
  10412. else
  10413. gt_cv_func_printf_posix="guessing yes"
  10414. fi
  10415. rm -f conftest*
  10416. else
  10417. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10418. /* end confdefs.h. */
  10419. #include <stdio.h>
  10420. #include <string.h>
  10421. /* The string "%2$d %1$d", with dollar characters protected from the shell's
  10422. dollar expansion (possibly an autoconf bug). */
  10423. static char format[] = { '%', '2', '$', 'd', ' ', '%', '1', '$', 'd', '\0' };
  10424. static char buf[100];
  10425. int main ()
  10426. {
  10427. sprintf (buf, format, 33, 55);
  10428. return (strcmp (buf, "55 33") != 0);
  10429. }
  10430. _ACEOF
  10431. if ac_fn_cxx_try_run "$LINENO"; then :
  10432. gt_cv_func_printf_posix=yes
  10433. else
  10434. gt_cv_func_printf_posix=no
  10435. fi
  10436. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  10437. conftest.$ac_objext conftest.beam conftest.$ac_ext
  10438. fi
  10439. fi
  10440. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_printf_posix" >&5
  10441. $as_echo "$gt_cv_func_printf_posix" >&6; }
  10442. case $gt_cv_func_printf_posix in
  10443. *yes)
  10444. $as_echo "#define HAVE_POSIX_PRINTF 1" >>confdefs.h
  10445. ;;
  10446. esac
  10447. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C Library 2.1 or newer" >&5
  10448. $as_echo_n "checking whether we are using the GNU C Library 2.1 or newer... " >&6; }
  10449. if test "${ac_cv_gnu_library_2_1+set}" = set; then :
  10450. $as_echo_n "(cached) " >&6
  10451. else
  10452. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10453. /* end confdefs.h. */
  10454. #include <features.h>
  10455. #ifdef __GNU_LIBRARY__
  10456. #if (__GLIBC__ == 2 && __GLIBC_MINOR__ >= 1) || (__GLIBC__ > 2)
  10457. Lucky GNU user
  10458. #endif
  10459. #endif
  10460. _ACEOF
  10461. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  10462. $EGREP "Lucky GNU user" >/dev/null 2>&1; then :
  10463. ac_cv_gnu_library_2_1=yes
  10464. else
  10465. ac_cv_gnu_library_2_1=no
  10466. fi
  10467. rm -f conftest*
  10468. fi
  10469. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_gnu_library_2_1" >&5
  10470. $as_echo "$ac_cv_gnu_library_2_1" >&6; }
  10471. GLIBC21="$ac_cv_gnu_library_2_1"
  10472. for ac_header in stdint.h
  10473. do :
  10474. ac_fn_cxx_check_header_mongrel "$LINENO" "stdint.h" "ac_cv_header_stdint_h" "$ac_includes_default"
  10475. if test "x$ac_cv_header_stdint_h" = x""yes; then :
  10476. cat >>confdefs.h <<_ACEOF
  10477. #define HAVE_STDINT_H 1
  10478. _ACEOF
  10479. fi
  10480. done
  10481. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SIZE_MAX" >&5
  10482. $as_echo_n "checking for SIZE_MAX... " >&6; }
  10483. if test "${gl_cv_size_max+set}" = set; then :
  10484. $as_echo_n "(cached) " >&6
  10485. else
  10486. gl_cv_size_max=
  10487. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10488. /* end confdefs.h. */
  10489. #include <limits.h>
  10490. #if HAVE_STDINT_H
  10491. #include <stdint.h>
  10492. #endif
  10493. #ifdef SIZE_MAX
  10494. Found it
  10495. #endif
  10496. _ACEOF
  10497. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  10498. $EGREP "Found it" >/dev/null 2>&1; then :
  10499. gl_cv_size_max=yes
  10500. fi
  10501. rm -f conftest*
  10502. if test -z "$gl_cv_size_max"; then
  10503. if ac_fn_cxx_compute_int "$LINENO" "sizeof (size_t) * CHAR_BIT - 1" "size_t_bits_minus_1" "#include <stddef.h>
  10504. #include <limits.h>"; then :
  10505. else
  10506. size_t_bits_minus_1=
  10507. fi
  10508. if ac_fn_cxx_compute_int "$LINENO" "sizeof (size_t) <= sizeof (unsigned int)" "fits_in_uint" "#include <stddef.h>"; then :
  10509. else
  10510. fits_in_uint=
  10511. fi
  10512. if test -n "$size_t_bits_minus_1" && test -n "$fits_in_uint"; then
  10513. if test $fits_in_uint = 1; then
  10514. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10515. /* end confdefs.h. */
  10516. #include <stddef.h>
  10517. extern size_t foo;
  10518. extern unsigned long foo;
  10519. int
  10520. main ()
  10521. {
  10522. ;
  10523. return 0;
  10524. }
  10525. _ACEOF
  10526. if ac_fn_cxx_try_compile "$LINENO"; then :
  10527. fits_in_uint=0
  10528. fi
  10529. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  10530. fi
  10531. if test $fits_in_uint = 1; then
  10532. gl_cv_size_max="(((1U << $size_t_bits_minus_1) - 1) * 2 + 1)"
  10533. else
  10534. gl_cv_size_max="(((1UL << $size_t_bits_minus_1) - 1) * 2 + 1)"
  10535. fi
  10536. else
  10537. gl_cv_size_max='((size_t)~(size_t)0)'
  10538. fi
  10539. fi
  10540. fi
  10541. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_size_max" >&5
  10542. $as_echo "$gl_cv_size_max" >&6; }
  10543. if test "$gl_cv_size_max" != yes; then
  10544. cat >>confdefs.h <<_ACEOF
  10545. #define SIZE_MAX $gl_cv_size_max
  10546. _ACEOF
  10547. fi
  10548. for ac_header in stdint.h
  10549. do :
  10550. ac_fn_cxx_check_header_mongrel "$LINENO" "stdint.h" "ac_cv_header_stdint_h" "$ac_includes_default"
  10551. if test "x$ac_cv_header_stdint_h" = x""yes; then :
  10552. cat >>confdefs.h <<_ACEOF
  10553. #define HAVE_STDINT_H 1
  10554. _ACEOF
  10555. fi
  10556. done
  10557. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CFPreferencesCopyAppValue" >&5
  10558. $as_echo_n "checking for CFPreferencesCopyAppValue... " >&6; }
  10559. if test "${gt_cv_func_CFPreferencesCopyAppValue+set}" = set; then :
  10560. $as_echo_n "(cached) " >&6
  10561. else
  10562. gt_save_LIBS="$LIBS"
  10563. LIBS="$LIBS -Wl,-framework -Wl,CoreFoundation"
  10564. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10565. /* end confdefs.h. */
  10566. #include <CoreFoundation/CFPreferences.h>
  10567. int
  10568. main ()
  10569. {
  10570. CFPreferencesCopyAppValue(NULL, NULL)
  10571. ;
  10572. return 0;
  10573. }
  10574. _ACEOF
  10575. if ac_fn_cxx_try_link "$LINENO"; then :
  10576. gt_cv_func_CFPreferencesCopyAppValue=yes
  10577. else
  10578. gt_cv_func_CFPreferencesCopyAppValue=no
  10579. fi
  10580. rm -f core conftest.err conftest.$ac_objext \
  10581. conftest$ac_exeext conftest.$ac_ext
  10582. LIBS="$gt_save_LIBS"
  10583. fi
  10584. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_CFPreferencesCopyAppValue" >&5
  10585. $as_echo "$gt_cv_func_CFPreferencesCopyAppValue" >&6; }
  10586. if test $gt_cv_func_CFPreferencesCopyAppValue = yes; then
  10587. $as_echo "#define HAVE_CFPREFERENCESCOPYAPPVALUE 1" >>confdefs.h
  10588. fi
  10589. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CFLocaleCopyCurrent" >&5
  10590. $as_echo_n "checking for CFLocaleCopyCurrent... " >&6; }
  10591. if test "${gt_cv_func_CFLocaleCopyCurrent+set}" = set; then :
  10592. $as_echo_n "(cached) " >&6
  10593. else
  10594. gt_save_LIBS="$LIBS"
  10595. LIBS="$LIBS -Wl,-framework -Wl,CoreFoundation"
  10596. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10597. /* end confdefs.h. */
  10598. #include <CoreFoundation/CFLocale.h>
  10599. int
  10600. main ()
  10601. {
  10602. CFLocaleCopyCurrent();
  10603. ;
  10604. return 0;
  10605. }
  10606. _ACEOF
  10607. if ac_fn_cxx_try_link "$LINENO"; then :
  10608. gt_cv_func_CFLocaleCopyCurrent=yes
  10609. else
  10610. gt_cv_func_CFLocaleCopyCurrent=no
  10611. fi
  10612. rm -f core conftest.err conftest.$ac_objext \
  10613. conftest$ac_exeext conftest.$ac_ext
  10614. LIBS="$gt_save_LIBS"
  10615. fi
  10616. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_CFLocaleCopyCurrent" >&5
  10617. $as_echo "$gt_cv_func_CFLocaleCopyCurrent" >&6; }
  10618. if test $gt_cv_func_CFLocaleCopyCurrent = yes; then
  10619. $as_echo "#define HAVE_CFLOCALECOPYCURRENT 1" >>confdefs.h
  10620. fi
  10621. INTL_MACOSX_LIBS=
  10622. if test $gt_cv_func_CFPreferencesCopyAppValue = yes || test $gt_cv_func_CFLocaleCopyCurrent = yes; then
  10623. INTL_MACOSX_LIBS="-Wl,-framework -Wl,CoreFoundation"
  10624. fi
  10625. ac_fn_cxx_check_type "$LINENO" "ptrdiff_t" "ac_cv_type_ptrdiff_t" "$ac_includes_default"
  10626. if test "x$ac_cv_type_ptrdiff_t" = x""yes; then :
  10627. else
  10628. $as_echo "#define ptrdiff_t long" >>confdefs.h
  10629. fi
  10630. for ac_header in stddef.h stdlib.h string.h
  10631. do :
  10632. as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
  10633. ac_fn_cxx_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
  10634. eval as_val=\$$as_ac_Header
  10635. if test "x$as_val" = x""yes; then :
  10636. cat >>confdefs.h <<_ACEOF
  10637. #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
  10638. _ACEOF
  10639. fi
  10640. done
  10641. for ac_func in asprintf fwprintf putenv setenv setlocale snprintf wcslen
  10642. do :
  10643. as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
  10644. ac_fn_cxx_check_func "$LINENO" "$ac_func" "$as_ac_var"
  10645. eval as_val=\$$as_ac_var
  10646. if test "x$as_val" = x""yes; then :
  10647. cat >>confdefs.h <<_ACEOF
  10648. #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
  10649. _ACEOF
  10650. fi
  10651. done
  10652. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether _snprintf is declared" >&5
  10653. $as_echo_n "checking whether _snprintf is declared... " >&6; }
  10654. if test "${ac_cv_have_decl__snprintf+set}" = set; then :
  10655. $as_echo_n "(cached) " >&6
  10656. else
  10657. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10658. /* end confdefs.h. */
  10659. #include <stdio.h>
  10660. int
  10661. main ()
  10662. {
  10663. #ifndef _snprintf
  10664. char *p = (char *) _snprintf;
  10665. #endif
  10666. ;
  10667. return 0;
  10668. }
  10669. _ACEOF
  10670. if ac_fn_cxx_try_compile "$LINENO"; then :
  10671. ac_cv_have_decl__snprintf=yes
  10672. else
  10673. ac_cv_have_decl__snprintf=no
  10674. fi
  10675. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  10676. fi
  10677. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_decl__snprintf" >&5
  10678. $as_echo "$ac_cv_have_decl__snprintf" >&6; }
  10679. if test $ac_cv_have_decl__snprintf = yes; then
  10680. gt_value=1
  10681. else
  10682. gt_value=0
  10683. fi
  10684. cat >>confdefs.h <<_ACEOF
  10685. #define HAVE_DECL__SNPRINTF $gt_value
  10686. _ACEOF
  10687. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether _snwprintf is declared" >&5
  10688. $as_echo_n "checking whether _snwprintf is declared... " >&6; }
  10689. if test "${ac_cv_have_decl__snwprintf+set}" = set; then :
  10690. $as_echo_n "(cached) " >&6
  10691. else
  10692. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10693. /* end confdefs.h. */
  10694. #include <stdio.h>
  10695. int
  10696. main ()
  10697. {
  10698. #ifndef _snwprintf
  10699. char *p = (char *) _snwprintf;
  10700. #endif
  10701. ;
  10702. return 0;
  10703. }
  10704. _ACEOF
  10705. if ac_fn_cxx_try_compile "$LINENO"; then :
  10706. ac_cv_have_decl__snwprintf=yes
  10707. else
  10708. ac_cv_have_decl__snwprintf=no
  10709. fi
  10710. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  10711. fi
  10712. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_decl__snwprintf" >&5
  10713. $as_echo "$ac_cv_have_decl__snwprintf" >&6; }
  10714. if test $ac_cv_have_decl__snwprintf = yes; then
  10715. gt_value=1
  10716. else
  10717. gt_value=0
  10718. fi
  10719. cat >>confdefs.h <<_ACEOF
  10720. #define HAVE_DECL__SNWPRINTF $gt_value
  10721. _ACEOF
  10722. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether getc_unlocked is declared" >&5
  10723. $as_echo_n "checking whether getc_unlocked is declared... " >&6; }
  10724. if test "${ac_cv_have_decl_getc_unlocked+set}" = set; then :
  10725. $as_echo_n "(cached) " >&6
  10726. else
  10727. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10728. /* end confdefs.h. */
  10729. #include <stdio.h>
  10730. int
  10731. main ()
  10732. {
  10733. #ifndef getc_unlocked
  10734. char *p = (char *) getc_unlocked;
  10735. #endif
  10736. ;
  10737. return 0;
  10738. }
  10739. _ACEOF
  10740. if ac_fn_cxx_try_compile "$LINENO"; then :
  10741. ac_cv_have_decl_getc_unlocked=yes
  10742. else
  10743. ac_cv_have_decl_getc_unlocked=no
  10744. fi
  10745. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  10746. fi
  10747. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_decl_getc_unlocked" >&5
  10748. $as_echo "$ac_cv_have_decl_getc_unlocked" >&6; }
  10749. if test $ac_cv_have_decl_getc_unlocked = yes; then
  10750. gt_value=1
  10751. else
  10752. gt_value=0
  10753. fi
  10754. cat >>confdefs.h <<_ACEOF
  10755. #define HAVE_DECL_GETC_UNLOCKED $gt_value
  10756. _ACEOF
  10757. case $gt_cv_func_printf_posix in
  10758. *yes) HAVE_POSIX_PRINTF=1 ;;
  10759. *) HAVE_POSIX_PRINTF=0 ;;
  10760. esac
  10761. if test "$ac_cv_func_asprintf" = yes; then
  10762. HAVE_ASPRINTF=1
  10763. else
  10764. HAVE_ASPRINTF=0
  10765. fi
  10766. if test "$ac_cv_func_snprintf" = yes; then
  10767. HAVE_SNPRINTF=1
  10768. else
  10769. HAVE_SNPRINTF=0
  10770. fi
  10771. if test "$ac_cv_func_wprintf" = yes; then
  10772. HAVE_WPRINTF=1
  10773. else
  10774. HAVE_WPRINTF=0
  10775. fi
  10776. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nl_langinfo and CODESET" >&5
  10777. $as_echo_n "checking for nl_langinfo and CODESET... " >&6; }
  10778. if test "${am_cv_langinfo_codeset+set}" = set; then :
  10779. $as_echo_n "(cached) " >&6
  10780. else
  10781. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10782. /* end confdefs.h. */
  10783. #include <langinfo.h>
  10784. int
  10785. main ()
  10786. {
  10787. char* cs = nl_langinfo(CODESET); return !cs;
  10788. ;
  10789. return 0;
  10790. }
  10791. _ACEOF
  10792. if ac_fn_cxx_try_link "$LINENO"; then :
  10793. am_cv_langinfo_codeset=yes
  10794. else
  10795. am_cv_langinfo_codeset=no
  10796. fi
  10797. rm -f core conftest.err conftest.$ac_objext \
  10798. conftest$ac_exeext conftest.$ac_ext
  10799. fi
  10800. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_langinfo_codeset" >&5
  10801. $as_echo "$am_cv_langinfo_codeset" >&6; }
  10802. if test $am_cv_langinfo_codeset = yes; then
  10803. $as_echo "#define HAVE_LANGINFO_CODESET 1" >>confdefs.h
  10804. fi
  10805. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LC_MESSAGES" >&5
  10806. $as_echo_n "checking for LC_MESSAGES... " >&6; }
  10807. if test "${gt_cv_val_LC_MESSAGES+set}" = set; then :
  10808. $as_echo_n "(cached) " >&6
  10809. else
  10810. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10811. /* end confdefs.h. */
  10812. #include <locale.h>
  10813. int
  10814. main ()
  10815. {
  10816. return LC_MESSAGES
  10817. ;
  10818. return 0;
  10819. }
  10820. _ACEOF
  10821. if ac_fn_cxx_try_link "$LINENO"; then :
  10822. gt_cv_val_LC_MESSAGES=yes
  10823. else
  10824. gt_cv_val_LC_MESSAGES=no
  10825. fi
  10826. rm -f core conftest.err conftest.$ac_objext \
  10827. conftest$ac_exeext conftest.$ac_ext
  10828. fi
  10829. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_val_LC_MESSAGES" >&5
  10830. $as_echo "$gt_cv_val_LC_MESSAGES" >&6; }
  10831. if test $gt_cv_val_LC_MESSAGES = yes; then
  10832. $as_echo "#define HAVE_LC_MESSAGES 1" >>confdefs.h
  10833. fi
  10834. if test "$enable_shared" = yes; then
  10835. case "$host_os" in
  10836. mingw* | cygwin*) is_woe32dll=yes ;;
  10837. *) is_woe32dll=no ;;
  10838. esac
  10839. else
  10840. is_woe32dll=no
  10841. fi
  10842. WOE32DLL=$is_woe32dll
  10843. case "$host_os" in
  10844. mingw* | cygwin*) is_woe32=yes ;;
  10845. *) is_woe32=no ;;
  10846. esac
  10847. WOE32=$is_woe32
  10848. if test $WOE32 = yes; then
  10849. if test -n "$ac_tool_prefix"; then
  10850. # Extract the first word of "${ac_tool_prefix}windres", so it can be a program name with args.
  10851. set dummy ${ac_tool_prefix}windres; ac_word=$2
  10852. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  10853. $as_echo_n "checking for $ac_word... " >&6; }
  10854. if test "${ac_cv_prog_WINDRES+set}" = set; then :
  10855. $as_echo_n "(cached) " >&6
  10856. else
  10857. if test -n "$WINDRES"; then
  10858. ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
  10859. else
  10860. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  10861. for as_dir in $PATH
  10862. do
  10863. IFS=$as_save_IFS
  10864. test -z "$as_dir" && as_dir=.
  10865. for ac_exec_ext in '' $ac_executable_extensions; do
  10866. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  10867. ac_cv_prog_WINDRES="${ac_tool_prefix}windres"
  10868. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  10869. break 2
  10870. fi
  10871. done
  10872. done
  10873. IFS=$as_save_IFS
  10874. fi
  10875. fi
  10876. WINDRES=$ac_cv_prog_WINDRES
  10877. if test -n "$WINDRES"; then
  10878. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES" >&5
  10879. $as_echo "$WINDRES" >&6; }
  10880. else
  10881. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  10882. $as_echo "no" >&6; }
  10883. fi
  10884. fi
  10885. if test -z "$ac_cv_prog_WINDRES"; then
  10886. ac_ct_WINDRES=$WINDRES
  10887. # Extract the first word of "windres", so it can be a program name with args.
  10888. set dummy windres; ac_word=$2
  10889. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  10890. $as_echo_n "checking for $ac_word... " >&6; }
  10891. if test "${ac_cv_prog_ac_ct_WINDRES+set}" = set; then :
  10892. $as_echo_n "(cached) " >&6
  10893. else
  10894. if test -n "$ac_ct_WINDRES"; then
  10895. ac_cv_prog_ac_ct_WINDRES="$ac_ct_WINDRES" # Let the user override the test.
  10896. else
  10897. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  10898. for as_dir in $PATH
  10899. do
  10900. IFS=$as_save_IFS
  10901. test -z "$as_dir" && as_dir=.
  10902. for ac_exec_ext in '' $ac_executable_extensions; do
  10903. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  10904. ac_cv_prog_ac_ct_WINDRES="windres"
  10905. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  10906. break 2
  10907. fi
  10908. done
  10909. done
  10910. IFS=$as_save_IFS
  10911. fi
  10912. fi
  10913. ac_ct_WINDRES=$ac_cv_prog_ac_ct_WINDRES
  10914. if test -n "$ac_ct_WINDRES"; then
  10915. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_WINDRES" >&5
  10916. $as_echo "$ac_ct_WINDRES" >&6; }
  10917. else
  10918. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  10919. $as_echo "no" >&6; }
  10920. fi
  10921. if test "x$ac_ct_WINDRES" = x; then
  10922. WINDRES=""
  10923. else
  10924. case $cross_compiling:$ac_tool_warned in
  10925. yes:)
  10926. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  10927. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  10928. ac_tool_warned=yes ;;
  10929. esac
  10930. WINDRES=$ac_ct_WINDRES
  10931. fi
  10932. else
  10933. WINDRES="$ac_cv_prog_WINDRES"
  10934. fi
  10935. fi
  10936. case "$host_os" in
  10937. hpux*) LTLIBC="" ;;
  10938. *) LTLIBC="-lc" ;;
  10939. esac
  10940. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CFPreferencesCopyAppValue" >&5
  10941. $as_echo_n "checking for CFPreferencesCopyAppValue... " >&6; }
  10942. if test "${gt_cv_func_CFPreferencesCopyAppValue+set}" = set; then :
  10943. $as_echo_n "(cached) " >&6
  10944. else
  10945. gt_save_LIBS="$LIBS"
  10946. LIBS="$LIBS -Wl,-framework -Wl,CoreFoundation"
  10947. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10948. /* end confdefs.h. */
  10949. #include <CoreFoundation/CFPreferences.h>
  10950. int
  10951. main ()
  10952. {
  10953. CFPreferencesCopyAppValue(NULL, NULL)
  10954. ;
  10955. return 0;
  10956. }
  10957. _ACEOF
  10958. if ac_fn_cxx_try_link "$LINENO"; then :
  10959. gt_cv_func_CFPreferencesCopyAppValue=yes
  10960. else
  10961. gt_cv_func_CFPreferencesCopyAppValue=no
  10962. fi
  10963. rm -f core conftest.err conftest.$ac_objext \
  10964. conftest$ac_exeext conftest.$ac_ext
  10965. LIBS="$gt_save_LIBS"
  10966. fi
  10967. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_CFPreferencesCopyAppValue" >&5
  10968. $as_echo "$gt_cv_func_CFPreferencesCopyAppValue" >&6; }
  10969. if test $gt_cv_func_CFPreferencesCopyAppValue = yes; then
  10970. $as_echo "#define HAVE_CFPREFERENCESCOPYAPPVALUE 1" >>confdefs.h
  10971. fi
  10972. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CFLocaleCopyCurrent" >&5
  10973. $as_echo_n "checking for CFLocaleCopyCurrent... " >&6; }
  10974. if test "${gt_cv_func_CFLocaleCopyCurrent+set}" = set; then :
  10975. $as_echo_n "(cached) " >&6
  10976. else
  10977. gt_save_LIBS="$LIBS"
  10978. LIBS="$LIBS -Wl,-framework -Wl,CoreFoundation"
  10979. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10980. /* end confdefs.h. */
  10981. #include <CoreFoundation/CFLocale.h>
  10982. int
  10983. main ()
  10984. {
  10985. CFLocaleCopyCurrent();
  10986. ;
  10987. return 0;
  10988. }
  10989. _ACEOF
  10990. if ac_fn_cxx_try_link "$LINENO"; then :
  10991. gt_cv_func_CFLocaleCopyCurrent=yes
  10992. else
  10993. gt_cv_func_CFLocaleCopyCurrent=no
  10994. fi
  10995. rm -f core conftest.err conftest.$ac_objext \
  10996. conftest$ac_exeext conftest.$ac_ext
  10997. LIBS="$gt_save_LIBS"
  10998. fi
  10999. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_CFLocaleCopyCurrent" >&5
  11000. $as_echo "$gt_cv_func_CFLocaleCopyCurrent" >&6; }
  11001. if test $gt_cv_func_CFLocaleCopyCurrent = yes; then
  11002. $as_echo "#define HAVE_CFLOCALECOPYCURRENT 1" >>confdefs.h
  11003. fi
  11004. INTL_MACOSX_LIBS=
  11005. if test $gt_cv_func_CFPreferencesCopyAppValue = yes || test $gt_cv_func_CFLocaleCopyCurrent = yes; then
  11006. INTL_MACOSX_LIBS="-Wl,-framework -Wl,CoreFoundation"
  11007. fi
  11008. BUILD_INCLUDED_LIBINTL=no
  11009. USE_INCLUDED_LIBINTL=no
  11010. LIBINTL=
  11011. LTLIBINTL=
  11012. POSUB=
  11013. case " $gt_needs " in
  11014. *" need-formatstring-macros "*) gt_api_version=3 ;;
  11015. *" need-ngettext "*) gt_api_version=2 ;;
  11016. *) gt_api_version=1 ;;
  11017. esac
  11018. gt_func_gnugettext_libc="gt_cv_func_gnugettext${gt_api_version}_libc"
  11019. gt_func_gnugettext_libintl="gt_cv_func_gnugettext${gt_api_version}_libintl"
  11020. if test "$USE_NLS" = "yes"; then
  11021. gt_use_preinstalled_gnugettext=no
  11022. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether included gettext is requested" >&5
  11023. $as_echo_n "checking whether included gettext is requested... " >&6; }
  11024. # Check whether --with-included-gettext was given.
  11025. if test "${with_included_gettext+set}" = set; then :
  11026. withval=$with_included_gettext; nls_cv_force_use_gnu_gettext=$withval
  11027. else
  11028. nls_cv_force_use_gnu_gettext=no
  11029. fi
  11030. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $nls_cv_force_use_gnu_gettext" >&5
  11031. $as_echo "$nls_cv_force_use_gnu_gettext" >&6; }
  11032. nls_cv_use_gnu_gettext="$nls_cv_force_use_gnu_gettext"
  11033. if test "$nls_cv_force_use_gnu_gettext" != "yes"; then
  11034. if test $gt_api_version -ge 3; then
  11035. gt_revision_test_code='
  11036. #ifndef __GNU_GETTEXT_SUPPORTED_REVISION
  11037. #define __GNU_GETTEXT_SUPPORTED_REVISION(major) ((major) == 0 ? 0 : -1)
  11038. #endif
  11039. typedef int array [2 * (__GNU_GETTEXT_SUPPORTED_REVISION(0) >= 1) - 1];
  11040. '
  11041. else
  11042. gt_revision_test_code=
  11043. fi
  11044. if test $gt_api_version -ge 2; then
  11045. gt_expression_test_code=' + * ngettext ("", "", 0)'
  11046. else
  11047. gt_expression_test_code=
  11048. fi
  11049. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU gettext in libc" >&5
  11050. $as_echo_n "checking for GNU gettext in libc... " >&6; }
  11051. if { as_var=$gt_func_gnugettext_libc; eval "test \"\${$as_var+set}\" = set"; }; then :
  11052. $as_echo_n "(cached) " >&6
  11053. else
  11054. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11055. /* end confdefs.h. */
  11056. #include <libintl.h>
  11057. $gt_revision_test_code
  11058. extern int _nl_msg_cat_cntr;
  11059. extern int *_nl_domain_bindings;
  11060. int
  11061. main ()
  11062. {
  11063. bindtextdomain ("", "");
  11064. return * gettext ("")$gt_expression_test_code + _nl_msg_cat_cntr + *_nl_domain_bindings
  11065. ;
  11066. return 0;
  11067. }
  11068. _ACEOF
  11069. if ac_fn_cxx_try_link "$LINENO"; then :
  11070. eval "$gt_func_gnugettext_libc=yes"
  11071. else
  11072. eval "$gt_func_gnugettext_libc=no"
  11073. fi
  11074. rm -f core conftest.err conftest.$ac_objext \
  11075. conftest$ac_exeext conftest.$ac_ext
  11076. fi
  11077. eval ac_res=\$$gt_func_gnugettext_libc
  11078. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  11079. $as_echo "$ac_res" >&6; }
  11080. if { eval "gt_val=\$$gt_func_gnugettext_libc"; test "$gt_val" != "yes"; }; then
  11081. use_additional=yes
  11082. acl_save_prefix="$prefix"
  11083. prefix="$acl_final_prefix"
  11084. acl_save_exec_prefix="$exec_prefix"
  11085. exec_prefix="$acl_final_exec_prefix"
  11086. eval additional_includedir=\"$includedir\"
  11087. eval additional_libdir=\"$libdir\"
  11088. exec_prefix="$acl_save_exec_prefix"
  11089. prefix="$acl_save_prefix"
  11090. # Check whether --with-libintl-prefix was given.
  11091. if test "${with_libintl_prefix+set}" = set; then :
  11092. withval=$with_libintl_prefix;
  11093. if test "X$withval" = "Xno"; then
  11094. use_additional=no
  11095. else
  11096. if test "X$withval" = "X"; then
  11097. acl_save_prefix="$prefix"
  11098. prefix="$acl_final_prefix"
  11099. acl_save_exec_prefix="$exec_prefix"
  11100. exec_prefix="$acl_final_exec_prefix"
  11101. eval additional_includedir=\"$includedir\"
  11102. eval additional_libdir=\"$libdir\"
  11103. exec_prefix="$acl_save_exec_prefix"
  11104. prefix="$acl_save_prefix"
  11105. else
  11106. additional_includedir="$withval/include"
  11107. additional_libdir="$withval/$acl_libdirstem"
  11108. fi
  11109. fi
  11110. fi
  11111. LIBINTL=
  11112. LTLIBINTL=
  11113. INCINTL=
  11114. LIBINTL_PREFIX=
  11115. rpathdirs=
  11116. ltrpathdirs=
  11117. names_already_handled=
  11118. names_next_round='intl '
  11119. while test -n "$names_next_round"; do
  11120. names_this_round="$names_next_round"
  11121. names_next_round=
  11122. for name in $names_this_round; do
  11123. already_handled=
  11124. for n in $names_already_handled; do
  11125. if test "$n" = "$name"; then
  11126. already_handled=yes
  11127. break
  11128. fi
  11129. done
  11130. if test -z "$already_handled"; then
  11131. names_already_handled="$names_already_handled $name"
  11132. uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
  11133. eval value=\"\$HAVE_LIB$uppername\"
  11134. if test -n "$value"; then
  11135. if test "$value" = yes; then
  11136. eval value=\"\$LIB$uppername\"
  11137. test -z "$value" || LIBINTL="${LIBINTL}${LIBINTL:+ }$value"
  11138. eval value=\"\$LTLIB$uppername\"
  11139. test -z "$value" || LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$value"
  11140. else
  11141. :
  11142. fi
  11143. else
  11144. found_dir=
  11145. found_la=
  11146. found_so=
  11147. found_a=
  11148. eval libname=\"$acl_libname_spec\" # typically: libname=lib$name
  11149. if test -n "$acl_shlibext"; then
  11150. shrext=".$acl_shlibext" # typically: shrext=.so
  11151. else
  11152. shrext=
  11153. fi
  11154. if test $use_additional = yes; then
  11155. dir="$additional_libdir"
  11156. if test -n "$acl_shlibext"; then
  11157. if test -f "$dir/$libname$shrext"; then
  11158. found_dir="$dir"
  11159. found_so="$dir/$libname$shrext"
  11160. else
  11161. if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
  11162. ver=`(cd "$dir" && \
  11163. for f in "$libname$shrext".*; do echo "$f"; done \
  11164. | sed -e "s,^$libname$shrext\\\\.,," \
  11165. | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
  11166. | sed 1q ) 2>/dev/null`
  11167. if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
  11168. found_dir="$dir"
  11169. found_so="$dir/$libname$shrext.$ver"
  11170. fi
  11171. else
  11172. eval library_names=\"$acl_library_names_spec\"
  11173. for f in $library_names; do
  11174. if test -f "$dir/$f"; then
  11175. found_dir="$dir"
  11176. found_so="$dir/$f"
  11177. break
  11178. fi
  11179. done
  11180. fi
  11181. fi
  11182. fi
  11183. if test "X$found_dir" = "X"; then
  11184. if test -f "$dir/$libname.$acl_libext"; then
  11185. found_dir="$dir"
  11186. found_a="$dir/$libname.$acl_libext"
  11187. fi
  11188. fi
  11189. if test "X$found_dir" != "X"; then
  11190. if test -f "$dir/$libname.la"; then
  11191. found_la="$dir/$libname.la"
  11192. fi
  11193. fi
  11194. fi
  11195. if test "X$found_dir" = "X"; then
  11196. for x in $LDFLAGS $LTLIBINTL; do
  11197. acl_save_prefix="$prefix"
  11198. prefix="$acl_final_prefix"
  11199. acl_save_exec_prefix="$exec_prefix"
  11200. exec_prefix="$acl_final_exec_prefix"
  11201. eval x=\"$x\"
  11202. exec_prefix="$acl_save_exec_prefix"
  11203. prefix="$acl_save_prefix"
  11204. case "$x" in
  11205. -L*)
  11206. dir=`echo "X$x" | sed -e 's/^X-L//'`
  11207. if test -n "$acl_shlibext"; then
  11208. if test -f "$dir/$libname$shrext"; then
  11209. found_dir="$dir"
  11210. found_so="$dir/$libname$shrext"
  11211. else
  11212. if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
  11213. ver=`(cd "$dir" && \
  11214. for f in "$libname$shrext".*; do echo "$f"; done \
  11215. | sed -e "s,^$libname$shrext\\\\.,," \
  11216. | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
  11217. | sed 1q ) 2>/dev/null`
  11218. if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
  11219. found_dir="$dir"
  11220. found_so="$dir/$libname$shrext.$ver"
  11221. fi
  11222. else
  11223. eval library_names=\"$acl_library_names_spec\"
  11224. for f in $library_names; do
  11225. if test -f "$dir/$f"; then
  11226. found_dir="$dir"
  11227. found_so="$dir/$f"
  11228. break
  11229. fi
  11230. done
  11231. fi
  11232. fi
  11233. fi
  11234. if test "X$found_dir" = "X"; then
  11235. if test -f "$dir/$libname.$acl_libext"; then
  11236. found_dir="$dir"
  11237. found_a="$dir/$libname.$acl_libext"
  11238. fi
  11239. fi
  11240. if test "X$found_dir" != "X"; then
  11241. if test -f "$dir/$libname.la"; then
  11242. found_la="$dir/$libname.la"
  11243. fi
  11244. fi
  11245. ;;
  11246. esac
  11247. if test "X$found_dir" != "X"; then
  11248. break
  11249. fi
  11250. done
  11251. fi
  11252. if test "X$found_dir" != "X"; then
  11253. LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$found_dir -l$name"
  11254. if test "X$found_so" != "X"; then
  11255. if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/$acl_libdirstem"; then
  11256. LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
  11257. else
  11258. haveit=
  11259. for x in $ltrpathdirs; do
  11260. if test "X$x" = "X$found_dir"; then
  11261. haveit=yes
  11262. break
  11263. fi
  11264. done
  11265. if test -z "$haveit"; then
  11266. ltrpathdirs="$ltrpathdirs $found_dir"
  11267. fi
  11268. if test "$acl_hardcode_direct" = yes; then
  11269. LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
  11270. else
  11271. if test -n "$acl_hardcode_libdir_flag_spec" && test "$acl_hardcode_minus_L" = no; then
  11272. LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
  11273. haveit=
  11274. for x in $rpathdirs; do
  11275. if test "X$x" = "X$found_dir"; then
  11276. haveit=yes
  11277. break
  11278. fi
  11279. done
  11280. if test -z "$haveit"; then
  11281. rpathdirs="$rpathdirs $found_dir"
  11282. fi
  11283. else
  11284. haveit=
  11285. for x in $LDFLAGS $LIBINTL; do
  11286. acl_save_prefix="$prefix"
  11287. prefix="$acl_final_prefix"
  11288. acl_save_exec_prefix="$exec_prefix"
  11289. exec_prefix="$acl_final_exec_prefix"
  11290. eval x=\"$x\"
  11291. exec_prefix="$acl_save_exec_prefix"
  11292. prefix="$acl_save_prefix"
  11293. if test "X$x" = "X-L$found_dir"; then
  11294. haveit=yes
  11295. break
  11296. fi
  11297. done
  11298. if test -z "$haveit"; then
  11299. LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir"
  11300. fi
  11301. if test "$acl_hardcode_minus_L" != no; then
  11302. LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
  11303. else
  11304. LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
  11305. fi
  11306. fi
  11307. fi
  11308. fi
  11309. else
  11310. if test "X$found_a" != "X"; then
  11311. LIBINTL="${LIBINTL}${LIBINTL:+ }$found_a"
  11312. else
  11313. LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir -l$name"
  11314. fi
  11315. fi
  11316. additional_includedir=
  11317. case "$found_dir" in
  11318. */$acl_libdirstem | */$acl_libdirstem/)
  11319. basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem/"'*$,,'`
  11320. LIBINTL_PREFIX="$basedir"
  11321. additional_includedir="$basedir/include"
  11322. ;;
  11323. esac
  11324. if test "X$additional_includedir" != "X"; then
  11325. if test "X$additional_includedir" != "X/usr/include"; then
  11326. haveit=
  11327. if test "X$additional_includedir" = "X/usr/local/include"; then
  11328. if test -n "$GCC"; then
  11329. case $host_os in
  11330. linux* | gnu* | k*bsd*-gnu) haveit=yes;;
  11331. esac
  11332. fi
  11333. fi
  11334. if test -z "$haveit"; then
  11335. for x in $CPPFLAGS $INCINTL; do
  11336. acl_save_prefix="$prefix"
  11337. prefix="$acl_final_prefix"
  11338. acl_save_exec_prefix="$exec_prefix"
  11339. exec_prefix="$acl_final_exec_prefix"
  11340. eval x=\"$x\"
  11341. exec_prefix="$acl_save_exec_prefix"
  11342. prefix="$acl_save_prefix"
  11343. if test "X$x" = "X-I$additional_includedir"; then
  11344. haveit=yes
  11345. break
  11346. fi
  11347. done
  11348. if test -z "$haveit"; then
  11349. if test -d "$additional_includedir"; then
  11350. INCINTL="${INCINTL}${INCINTL:+ }-I$additional_includedir"
  11351. fi
  11352. fi
  11353. fi
  11354. fi
  11355. fi
  11356. if test -n "$found_la"; then
  11357. save_libdir="$libdir"
  11358. case "$found_la" in
  11359. */* | *\\*) . "$found_la" ;;
  11360. *) . "./$found_la" ;;
  11361. esac
  11362. libdir="$save_libdir"
  11363. for dep in $dependency_libs; do
  11364. case "$dep" in
  11365. -L*)
  11366. additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
  11367. if test "X$additional_libdir" != "X/usr/$acl_libdirstem"; then
  11368. haveit=
  11369. if test "X$additional_libdir" = "X/usr/local/$acl_libdirstem"; then
  11370. if test -n "$GCC"; then
  11371. case $host_os in
  11372. linux* | gnu* | k*bsd*-gnu) haveit=yes;;
  11373. esac
  11374. fi
  11375. fi
  11376. if test -z "$haveit"; then
  11377. haveit=
  11378. for x in $LDFLAGS $LIBINTL; do
  11379. acl_save_prefix="$prefix"
  11380. prefix="$acl_final_prefix"
  11381. acl_save_exec_prefix="$exec_prefix"
  11382. exec_prefix="$acl_final_exec_prefix"
  11383. eval x=\"$x\"
  11384. exec_prefix="$acl_save_exec_prefix"
  11385. prefix="$acl_save_prefix"
  11386. if test "X$x" = "X-L$additional_libdir"; then
  11387. haveit=yes
  11388. break
  11389. fi
  11390. done
  11391. if test -z "$haveit"; then
  11392. if test -d "$additional_libdir"; then
  11393. LIBINTL="${LIBINTL}${LIBINTL:+ }-L$additional_libdir"
  11394. fi
  11395. fi
  11396. haveit=
  11397. for x in $LDFLAGS $LTLIBINTL; do
  11398. acl_save_prefix="$prefix"
  11399. prefix="$acl_final_prefix"
  11400. acl_save_exec_prefix="$exec_prefix"
  11401. exec_prefix="$acl_final_exec_prefix"
  11402. eval x=\"$x\"
  11403. exec_prefix="$acl_save_exec_prefix"
  11404. prefix="$acl_save_prefix"
  11405. if test "X$x" = "X-L$additional_libdir"; then
  11406. haveit=yes
  11407. break
  11408. fi
  11409. done
  11410. if test -z "$haveit"; then
  11411. if test -d "$additional_libdir"; then
  11412. LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$additional_libdir"
  11413. fi
  11414. fi
  11415. fi
  11416. fi
  11417. ;;
  11418. -R*)
  11419. dir=`echo "X$dep" | sed -e 's/^X-R//'`
  11420. if test "$enable_rpath" != no; then
  11421. haveit=
  11422. for x in $rpathdirs; do
  11423. if test "X$x" = "X$dir"; then
  11424. haveit=yes
  11425. break
  11426. fi
  11427. done
  11428. if test -z "$haveit"; then
  11429. rpathdirs="$rpathdirs $dir"
  11430. fi
  11431. haveit=
  11432. for x in $ltrpathdirs; do
  11433. if test "X$x" = "X$dir"; then
  11434. haveit=yes
  11435. break
  11436. fi
  11437. done
  11438. if test -z "$haveit"; then
  11439. ltrpathdirs="$ltrpathdirs $dir"
  11440. fi
  11441. fi
  11442. ;;
  11443. -l*)
  11444. names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
  11445. ;;
  11446. *.la)
  11447. names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
  11448. ;;
  11449. *)
  11450. LIBINTL="${LIBINTL}${LIBINTL:+ }$dep"
  11451. LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$dep"
  11452. ;;
  11453. esac
  11454. done
  11455. fi
  11456. else
  11457. LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
  11458. LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-l$name"
  11459. fi
  11460. fi
  11461. fi
  11462. done
  11463. done
  11464. if test "X$rpathdirs" != "X"; then
  11465. if test -n "$acl_hardcode_libdir_separator"; then
  11466. alldirs=
  11467. for found_dir in $rpathdirs; do
  11468. alldirs="${alldirs}${alldirs:+$acl_hardcode_libdir_separator}$found_dir"
  11469. done
  11470. acl_save_libdir="$libdir"
  11471. libdir="$alldirs"
  11472. eval flag=\"$acl_hardcode_libdir_flag_spec\"
  11473. libdir="$acl_save_libdir"
  11474. LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
  11475. else
  11476. for found_dir in $rpathdirs; do
  11477. acl_save_libdir="$libdir"
  11478. libdir="$found_dir"
  11479. eval flag=\"$acl_hardcode_libdir_flag_spec\"
  11480. libdir="$acl_save_libdir"
  11481. LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
  11482. done
  11483. fi
  11484. fi
  11485. if test "X$ltrpathdirs" != "X"; then
  11486. for found_dir in $ltrpathdirs; do
  11487. LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-R$found_dir"
  11488. done
  11489. fi
  11490. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU gettext in libintl" >&5
  11491. $as_echo_n "checking for GNU gettext in libintl... " >&6; }
  11492. if { as_var=$gt_func_gnugettext_libintl; eval "test \"\${$as_var+set}\" = set"; }; then :
  11493. $as_echo_n "(cached) " >&6
  11494. else
  11495. gt_save_CPPFLAGS="$CPPFLAGS"
  11496. CPPFLAGS="$CPPFLAGS $INCINTL"
  11497. gt_save_LIBS="$LIBS"
  11498. LIBS="$LIBS $LIBINTL"
  11499. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11500. /* end confdefs.h. */
  11501. #include <libintl.h>
  11502. $gt_revision_test_code
  11503. extern int _nl_msg_cat_cntr;
  11504. extern
  11505. #ifdef __cplusplus
  11506. "C"
  11507. #endif
  11508. const char *_nl_expand_alias (const char *);
  11509. int
  11510. main ()
  11511. {
  11512. bindtextdomain ("", "");
  11513. return * gettext ("")$gt_expression_test_code + _nl_msg_cat_cntr + *_nl_expand_alias ("")
  11514. ;
  11515. return 0;
  11516. }
  11517. _ACEOF
  11518. if ac_fn_cxx_try_link "$LINENO"; then :
  11519. eval "$gt_func_gnugettext_libintl=yes"
  11520. else
  11521. eval "$gt_func_gnugettext_libintl=no"
  11522. fi
  11523. rm -f core conftest.err conftest.$ac_objext \
  11524. conftest$ac_exeext conftest.$ac_ext
  11525. if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" != yes; } && test -n "$LIBICONV"; then
  11526. LIBS="$LIBS $LIBICONV"
  11527. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11528. /* end confdefs.h. */
  11529. #include <libintl.h>
  11530. $gt_revision_test_code
  11531. extern int _nl_msg_cat_cntr;
  11532. extern
  11533. #ifdef __cplusplus
  11534. "C"
  11535. #endif
  11536. const char *_nl_expand_alias (const char *);
  11537. int
  11538. main ()
  11539. {
  11540. bindtextdomain ("", "");
  11541. return * gettext ("")$gt_expression_test_code + _nl_msg_cat_cntr + *_nl_expand_alias ("")
  11542. ;
  11543. return 0;
  11544. }
  11545. _ACEOF
  11546. if ac_fn_cxx_try_link "$LINENO"; then :
  11547. LIBINTL="$LIBINTL $LIBICONV"
  11548. LTLIBINTL="$LTLIBINTL $LTLIBICONV"
  11549. eval "$gt_func_gnugettext_libintl=yes"
  11550. fi
  11551. rm -f core conftest.err conftest.$ac_objext \
  11552. conftest$ac_exeext conftest.$ac_ext
  11553. fi
  11554. CPPFLAGS="$gt_save_CPPFLAGS"
  11555. LIBS="$gt_save_LIBS"
  11556. fi
  11557. eval ac_res=\$$gt_func_gnugettext_libintl
  11558. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  11559. $as_echo "$ac_res" >&6; }
  11560. fi
  11561. if { eval "gt_val=\$$gt_func_gnugettext_libc"; test "$gt_val" = "yes"; } \
  11562. || { { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; } \
  11563. && test "$PACKAGE" != gettext-runtime \
  11564. && test "$PACKAGE" != gettext-tools; }; then
  11565. gt_use_preinstalled_gnugettext=yes
  11566. else
  11567. LIBINTL=
  11568. LTLIBINTL=
  11569. INCINTL=
  11570. fi
  11571. if test "$gt_use_preinstalled_gnugettext" != "yes"; then
  11572. nls_cv_use_gnu_gettext=yes
  11573. fi
  11574. fi
  11575. if test "$nls_cv_use_gnu_gettext" = "yes"; then
  11576. BUILD_INCLUDED_LIBINTL=yes
  11577. USE_INCLUDED_LIBINTL=yes
  11578. LIBINTL="\${top_builddir}/intl/libintl.a $LIBICONV $LIBTHREAD"
  11579. LTLIBINTL="\${top_builddir}/intl/libintl.a $LTLIBICONV $LTLIBTHREAD"
  11580. LIBS=`echo " $LIBS " | sed -e 's/ -lintl / /' -e 's/^ //' -e 's/ $//'`
  11581. fi
  11582. CATOBJEXT=
  11583. if test "$gt_use_preinstalled_gnugettext" = "yes" \
  11584. || test "$nls_cv_use_gnu_gettext" = "yes"; then
  11585. CATOBJEXT=.gmo
  11586. fi
  11587. if test -n "$INTL_MACOSX_LIBS"; then
  11588. if test "$gt_use_preinstalled_gnugettext" = "yes" \
  11589. || test "$nls_cv_use_gnu_gettext" = "yes"; then
  11590. LIBINTL="$LIBINTL $INTL_MACOSX_LIBS"
  11591. LTLIBINTL="$LTLIBINTL $INTL_MACOSX_LIBS"
  11592. fi
  11593. fi
  11594. if test "$gt_use_preinstalled_gnugettext" = "yes" \
  11595. || test "$nls_cv_use_gnu_gettext" = "yes"; then
  11596. $as_echo "#define ENABLE_NLS 1" >>confdefs.h
  11597. else
  11598. USE_NLS=no
  11599. fi
  11600. fi
  11601. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use NLS" >&5
  11602. $as_echo_n "checking whether to use NLS... " >&6; }
  11603. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5
  11604. $as_echo "$USE_NLS" >&6; }
  11605. if test "$USE_NLS" = "yes"; then
  11606. { $as_echo "$as_me:${as_lineno-$LINENO}: checking where the gettext function comes from" >&5
  11607. $as_echo_n "checking where the gettext function comes from... " >&6; }
  11608. if test "$gt_use_preinstalled_gnugettext" = "yes"; then
  11609. if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; }; then
  11610. gt_source="external libintl"
  11611. else
  11612. gt_source="libc"
  11613. fi
  11614. else
  11615. gt_source="included intl directory"
  11616. fi
  11617. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_source" >&5
  11618. $as_echo "$gt_source" >&6; }
  11619. fi
  11620. if test "$USE_NLS" = "yes"; then
  11621. if test "$gt_use_preinstalled_gnugettext" = "yes"; then
  11622. if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; }; then
  11623. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libintl" >&5
  11624. $as_echo_n "checking how to link with libintl... " >&6; }
  11625. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBINTL" >&5
  11626. $as_echo "$LIBINTL" >&6; }
  11627. for element in $INCINTL; do
  11628. haveit=
  11629. for x in $CPPFLAGS; do
  11630. acl_save_prefix="$prefix"
  11631. prefix="$acl_final_prefix"
  11632. acl_save_exec_prefix="$exec_prefix"
  11633. exec_prefix="$acl_final_exec_prefix"
  11634. eval x=\"$x\"
  11635. exec_prefix="$acl_save_exec_prefix"
  11636. prefix="$acl_save_prefix"
  11637. if test "X$x" = "X$element"; then
  11638. haveit=yes
  11639. break
  11640. fi
  11641. done
  11642. if test -z "$haveit"; then
  11643. CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
  11644. fi
  11645. done
  11646. fi
  11647. $as_echo "#define HAVE_GETTEXT 1" >>confdefs.h
  11648. $as_echo "#define HAVE_DCGETTEXT 1" >>confdefs.h
  11649. fi
  11650. POSUB=po
  11651. fi
  11652. if test "$PACKAGE" = gettext-runtime || test "$PACKAGE" = gettext-tools; then
  11653. BUILD_INCLUDED_LIBINTL=yes
  11654. fi
  11655. nls_cv_header_intl=
  11656. nls_cv_header_libgt=
  11657. DATADIRNAME=share
  11658. INSTOBJEXT=.mo
  11659. GENCAT=gencat
  11660. INTLOBJS=
  11661. if test "$USE_INCLUDED_LIBINTL" = yes; then
  11662. INTLOBJS="\$(GETTOBJS)"
  11663. fi
  11664. INTL_LIBTOOL_SUFFIX_PREFIX=
  11665. INTLLIBS="$LIBINTL"
  11666. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for error_at_line" >&5
  11667. $as_echo_n "checking for error_at_line... " >&6; }
  11668. if test "${ac_cv_lib_error_at_line+set}" = set; then :
  11669. $as_echo_n "(cached) " >&6
  11670. else
  11671. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11672. /* end confdefs.h. */
  11673. #include <error.h>
  11674. int
  11675. main ()
  11676. {
  11677. error_at_line (0, 0, "", 0, "an error occurred");
  11678. ;
  11679. return 0;
  11680. }
  11681. _ACEOF
  11682. if ac_fn_cxx_try_link "$LINENO"; then :
  11683. ac_cv_lib_error_at_line=yes
  11684. else
  11685. ac_cv_lib_error_at_line=no
  11686. fi
  11687. rm -f core conftest.err conftest.$ac_objext \
  11688. conftest$ac_exeext conftest.$ac_ext
  11689. fi
  11690. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_error_at_line" >&5
  11691. $as_echo "$ac_cv_lib_error_at_line" >&6; }
  11692. if test $ac_cv_lib_error_at_line = no; then
  11693. case " $LIBOBJS " in
  11694. *" error.$ac_objext "* ) ;;
  11695. *) LIBOBJS="$LIBOBJS error.$ac_objext"
  11696. ;;
  11697. esac
  11698. fi
  11699. if test $ac_cv_c_compiler_gnu = yes; then
  11700. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC needs -traditional" >&5
  11701. $as_echo_n "checking whether $CC needs -traditional... " >&6; }
  11702. if test "${ac_cv_prog_gcc_traditional+set}" = set; then :
  11703. $as_echo_n "(cached) " >&6
  11704. else
  11705. ac_pattern="Autoconf.*'x'"
  11706. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11707. /* end confdefs.h. */
  11708. #include <sgtty.h>
  11709. Autoconf TIOCGETP
  11710. _ACEOF
  11711. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  11712. $EGREP "$ac_pattern" >/dev/null 2>&1; then :
  11713. ac_cv_prog_gcc_traditional=yes
  11714. else
  11715. ac_cv_prog_gcc_traditional=no
  11716. fi
  11717. rm -f conftest*
  11718. if test $ac_cv_prog_gcc_traditional = no; then
  11719. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11720. /* end confdefs.h. */
  11721. #include <termio.h>
  11722. Autoconf TCGETA
  11723. _ACEOF
  11724. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  11725. $EGREP "$ac_pattern" >/dev/null 2>&1; then :
  11726. ac_cv_prog_gcc_traditional=yes
  11727. fi
  11728. rm -f conftest*
  11729. fi
  11730. fi
  11731. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_gcc_traditional" >&5
  11732. $as_echo "$ac_cv_prog_gcc_traditional" >&6; }
  11733. if test $ac_cv_prog_gcc_traditional = yes; then
  11734. CC="$CC -traditional"
  11735. fi
  11736. fi
  11737. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working memcmp" >&5
  11738. $as_echo_n "checking for working memcmp... " >&6; }
  11739. if test "${ac_cv_func_memcmp_working+set}" = set; then :
  11740. $as_echo_n "(cached) " >&6
  11741. else
  11742. if test "$cross_compiling" = yes; then :
  11743. ac_cv_func_memcmp_working=no
  11744. else
  11745. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11746. /* end confdefs.h. */
  11747. $ac_includes_default
  11748. int
  11749. main ()
  11750. {
  11751. /* Some versions of memcmp are not 8-bit clean. */
  11752. char c0 = '\100', c1 = '\200', c2 = '\201';
  11753. if (memcmp(&c0, &c2, 1) >= 0 || memcmp(&c1, &c2, 1) >= 0)
  11754. return 1;
  11755. /* The Next x86 OpenStep bug shows up only when comparing 16 bytes
  11756. or more and with at least one buffer not starting on a 4-byte boundary.
  11757. William Lewis provided this test program. */
  11758. {
  11759. char foo[21];
  11760. char bar[21];
  11761. int i;
  11762. for (i = 0; i < 4; i++)
  11763. {
  11764. char *a = foo + i;
  11765. char *b = bar + i;
  11766. strcpy (a, "--------01111111");
  11767. strcpy (b, "--------10000000");
  11768. if (memcmp (a, b, 16) >= 0)
  11769. return 1;
  11770. }
  11771. return 0;
  11772. }
  11773. ;
  11774. return 0;
  11775. }
  11776. _ACEOF
  11777. if ac_fn_cxx_try_run "$LINENO"; then :
  11778. ac_cv_func_memcmp_working=yes
  11779. else
  11780. ac_cv_func_memcmp_working=no
  11781. fi
  11782. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  11783. conftest.$ac_objext conftest.beam conftest.$ac_ext
  11784. fi
  11785. fi
  11786. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_memcmp_working" >&5
  11787. $as_echo "$ac_cv_func_memcmp_working" >&6; }
  11788. test $ac_cv_func_memcmp_working = no && case " $LIBOBJS " in
  11789. *" memcmp.$ac_objext "* ) ;;
  11790. *) LIBOBJS="$LIBOBJS memcmp.$ac_objext"
  11791. ;;
  11792. esac
  11793. for ac_header in $ac_header_list
  11794. do :
  11795. as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
  11796. ac_fn_cxx_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
  11797. "
  11798. eval as_val=\$$as_ac_Header
  11799. if test "x$as_val" = x""yes; then :
  11800. cat >>confdefs.h <<_ACEOF
  11801. #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
  11802. _ACEOF
  11803. fi
  11804. done
  11805. for ac_func in $ac_func_list
  11806. do :
  11807. as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
  11808. ac_fn_cxx_check_func "$LINENO" "$ac_func" "$as_ac_var"
  11809. eval as_val=\$$as_ac_var
  11810. if test "x$as_val" = x""yes; then :
  11811. cat >>confdefs.h <<_ACEOF
  11812. #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
  11813. _ACEOF
  11814. fi
  11815. done
  11816. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mktime" >&5
  11817. $as_echo_n "checking for working mktime... " >&6; }
  11818. if test "${ac_cv_func_working_mktime+set}" = set; then :
  11819. $as_echo_n "(cached) " >&6
  11820. else
  11821. if test "$cross_compiling" = yes; then :
  11822. ac_cv_func_working_mktime=no
  11823. else
  11824. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11825. /* end confdefs.h. */
  11826. /* Test program from Paul Eggert and Tony Leneis. */
  11827. #ifdef TIME_WITH_SYS_TIME
  11828. # include <sys/time.h>
  11829. # include <time.h>
  11830. #else
  11831. # ifdef HAVE_SYS_TIME_H
  11832. # include <sys/time.h>
  11833. # else
  11834. # include <time.h>
  11835. # endif
  11836. #endif
  11837. #include <limits.h>
  11838. #include <stdlib.h>
  11839. #ifdef HAVE_UNISTD_H
  11840. # include <unistd.h>
  11841. #endif
  11842. #ifndef HAVE_ALARM
  11843. # define alarm(X) /* empty */
  11844. #endif
  11845. /* Work around redefinition to rpl_putenv by other config tests. */
  11846. #undef putenv
  11847. static time_t time_t_max;
  11848. static time_t time_t_min;
  11849. /* Values we'll use to set the TZ environment variable. */
  11850. static char *tz_strings[] = {
  11851. (char *) 0, "TZ=GMT0", "TZ=JST-9",
  11852. "TZ=EST+3EDT+2,M10.1.0/00:00:00,M2.3.0/00:00:00"
  11853. };
  11854. #define N_STRINGS (sizeof (tz_strings) / sizeof (tz_strings[0]))
  11855. /* Return 0 if mktime fails to convert a date in the spring-forward gap.
  11856. Based on a problem report from Andreas Jaeger. */
  11857. static int
  11858. spring_forward_gap ()
  11859. {
  11860. /* glibc (up to about 1998-10-07) failed this test. */
  11861. struct tm tm;
  11862. /* Use the portable POSIX.1 specification "TZ=PST8PDT,M4.1.0,M10.5.0"
  11863. instead of "TZ=America/Vancouver" in order to detect the bug even
  11864. on systems that don't support the Olson extension, or don't have the
  11865. full zoneinfo tables installed. */
  11866. putenv ("TZ=PST8PDT,M4.1.0,M10.5.0");
  11867. tm.tm_year = 98;
  11868. tm.tm_mon = 3;
  11869. tm.tm_mday = 5;
  11870. tm.tm_hour = 2;
  11871. tm.tm_min = 0;
  11872. tm.tm_sec = 0;
  11873. tm.tm_isdst = -1;
  11874. return mktime (&tm) != (time_t) -1;
  11875. }
  11876. static int
  11877. mktime_test1 (now)
  11878. time_t now;
  11879. {
  11880. struct tm *lt;
  11881. return ! (lt = localtime (&now)) || mktime (lt) == now;
  11882. }
  11883. static int
  11884. mktime_test (now)
  11885. time_t now;
  11886. {
  11887. return (mktime_test1 (now)
  11888. && mktime_test1 ((time_t) (time_t_max - now))
  11889. && mktime_test1 ((time_t) (time_t_min + now)));
  11890. }
  11891. static int
  11892. irix_6_4_bug ()
  11893. {
  11894. /* Based on code from Ariel Faigon. */
  11895. struct tm tm;
  11896. tm.tm_year = 96;
  11897. tm.tm_mon = 3;
  11898. tm.tm_mday = 0;
  11899. tm.tm_hour = 0;
  11900. tm.tm_min = 0;
  11901. tm.tm_sec = 0;
  11902. tm.tm_isdst = -1;
  11903. mktime (&tm);
  11904. return tm.tm_mon == 2 && tm.tm_mday == 31;
  11905. }
  11906. static int
  11907. bigtime_test (j)
  11908. int j;
  11909. {
  11910. struct tm tm;
  11911. time_t now;
  11912. tm.tm_year = tm.tm_mon = tm.tm_mday = tm.tm_hour = tm.tm_min = tm.tm_sec = j;
  11913. now = mktime (&tm);
  11914. if (now != (time_t) -1)
  11915. {
  11916. struct tm *lt = localtime (&now);
  11917. if (! (lt
  11918. && lt->tm_year == tm.tm_year
  11919. && lt->tm_mon == tm.tm_mon
  11920. && lt->tm_mday == tm.tm_mday
  11921. && lt->tm_hour == tm.tm_hour
  11922. && lt->tm_min == tm.tm_min
  11923. && lt->tm_sec == tm.tm_sec
  11924. && lt->tm_yday == tm.tm_yday
  11925. && lt->tm_wday == tm.tm_wday
  11926. && ((lt->tm_isdst < 0 ? -1 : 0 < lt->tm_isdst)
  11927. == (tm.tm_isdst < 0 ? -1 : 0 < tm.tm_isdst))))
  11928. return 0;
  11929. }
  11930. return 1;
  11931. }
  11932. static int
  11933. year_2050_test ()
  11934. {
  11935. /* The correct answer for 2050-02-01 00:00:00 in Pacific time,
  11936. ignoring leap seconds. */
  11937. unsigned long int answer = 2527315200UL;
  11938. struct tm tm;
  11939. time_t t;
  11940. tm.tm_year = 2050 - 1900;
  11941. tm.tm_mon = 2 - 1;
  11942. tm.tm_mday = 1;
  11943. tm.tm_hour = tm.tm_min = tm.tm_sec = 0;
  11944. tm.tm_isdst = -1;
  11945. /* Use the portable POSIX.1 specification "TZ=PST8PDT,M4.1.0,M10.5.0"
  11946. instead of "TZ=America/Vancouver" in order to detect the bug even
  11947. on systems that don't support the Olson extension, or don't have the
  11948. full zoneinfo tables installed. */
  11949. putenv ("TZ=PST8PDT,M4.1.0,M10.5.0");
  11950. t = mktime (&tm);
  11951. /* Check that the result is either a failure, or close enough
  11952. to the correct answer that we can assume the discrepancy is
  11953. due to leap seconds. */
  11954. return (t == (time_t) -1
  11955. || (0 < t && answer - 120 <= t && t <= answer + 120));
  11956. }
  11957. int
  11958. main ()
  11959. {
  11960. time_t t, delta;
  11961. int i, j;
  11962. /* This test makes some buggy mktime implementations loop.
  11963. Give up after 60 seconds; a mktime slower than that
  11964. isn't worth using anyway. */
  11965. alarm (60);
  11966. for (;;)
  11967. {
  11968. t = (time_t_max << 1) + 1;
  11969. if (t <= time_t_max)
  11970. break;
  11971. time_t_max = t;
  11972. }
  11973. time_t_min = - ((time_t) ~ (time_t) 0 == (time_t) -1) - time_t_max;
  11974. delta = time_t_max / 997; /* a suitable prime number */
  11975. for (i = 0; i < N_STRINGS; i++)
  11976. {
  11977. if (tz_strings[i])
  11978. putenv (tz_strings[i]);
  11979. for (t = 0; t <= time_t_max - delta; t += delta)
  11980. if (! mktime_test (t))
  11981. return 1;
  11982. if (! (mktime_test ((time_t) 1)
  11983. && mktime_test ((time_t) (60 * 60))
  11984. && mktime_test ((time_t) (60 * 60 * 24))))
  11985. return 1;
  11986. for (j = 1; ; j <<= 1)
  11987. if (! bigtime_test (j))
  11988. return 1;
  11989. else if (INT_MAX / 2 < j)
  11990. break;
  11991. if (! bigtime_test (INT_MAX))
  11992. return 1;
  11993. }
  11994. return ! (irix_6_4_bug () && spring_forward_gap () && year_2050_test ());
  11995. }
  11996. _ACEOF
  11997. if ac_fn_cxx_try_run "$LINENO"; then :
  11998. ac_cv_func_working_mktime=yes
  11999. else
  12000. ac_cv_func_working_mktime=no
  12001. fi
  12002. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  12003. conftest.$ac_objext conftest.beam conftest.$ac_ext
  12004. fi
  12005. fi
  12006. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_working_mktime" >&5
  12007. $as_echo "$ac_cv_func_working_mktime" >&6; }
  12008. if test $ac_cv_func_working_mktime = no; then
  12009. case " $LIBOBJS " in
  12010. *" mktime.$ac_objext "* ) ;;
  12011. *) LIBOBJS="$LIBOBJS mktime.$ac_objext"
  12012. ;;
  12013. esac
  12014. fi
  12015. for ac_header in stdlib.h unistd.h
  12016. do :
  12017. as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
  12018. ac_fn_cxx_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
  12019. eval as_val=\$$as_ac_Header
  12020. if test "x$as_val" = x""yes; then :
  12021. cat >>confdefs.h <<_ACEOF
  12022. #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
  12023. _ACEOF
  12024. fi
  12025. done
  12026. for ac_func in getpagesize
  12027. do :
  12028. ac_fn_cxx_check_func "$LINENO" "getpagesize" "ac_cv_func_getpagesize"
  12029. if test "x$ac_cv_func_getpagesize" = x""yes; then :
  12030. cat >>confdefs.h <<_ACEOF
  12031. #define HAVE_GETPAGESIZE 1
  12032. _ACEOF
  12033. fi
  12034. done
  12035. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mmap" >&5
  12036. $as_echo_n "checking for working mmap... " >&6; }
  12037. if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then :
  12038. $as_echo_n "(cached) " >&6
  12039. else
  12040. if test "$cross_compiling" = yes; then :
  12041. ac_cv_func_mmap_fixed_mapped=no
  12042. else
  12043. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12044. /* end confdefs.h. */
  12045. $ac_includes_default
  12046. /* malloc might have been renamed as rpl_malloc. */
  12047. #undef malloc
  12048. /* Thanks to Mike Haertel and Jim Avera for this test.
  12049. Here is a matrix of mmap possibilities:
  12050. mmap private not fixed
  12051. mmap private fixed at somewhere currently unmapped
  12052. mmap private fixed at somewhere already mapped
  12053. mmap shared not fixed
  12054. mmap shared fixed at somewhere currently unmapped
  12055. mmap shared fixed at somewhere already mapped
  12056. For private mappings, we should verify that changes cannot be read()
  12057. back from the file, nor mmap's back from the file at a different
  12058. address. (There have been systems where private was not correctly
  12059. implemented like the infamous i386 svr4.0, and systems where the
  12060. VM page cache was not coherent with the file system buffer cache
  12061. like early versions of FreeBSD and possibly contemporary NetBSD.)
  12062. For shared mappings, we should conversely verify that changes get
  12063. propagated back to all the places they're supposed to be.
  12064. Grep wants private fixed already mapped.
  12065. The main things grep needs to know about mmap are:
  12066. * does it exist and is it safe to write into the mmap'd area
  12067. * how to use it (BSD variants) */
  12068. #include <fcntl.h>
  12069. #include <sys/mman.h>
  12070. #if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
  12071. char *malloc ();
  12072. #endif
  12073. /* This mess was copied from the GNU getpagesize.h. */
  12074. #ifndef HAVE_GETPAGESIZE
  12075. /* Assume that all systems that can run configure have sys/param.h. */
  12076. # ifndef HAVE_SYS_PARAM_H
  12077. # define HAVE_SYS_PARAM_H 1
  12078. # endif
  12079. # ifdef _SC_PAGESIZE
  12080. # define getpagesize() sysconf(_SC_PAGESIZE)
  12081. # else /* no _SC_PAGESIZE */
  12082. # ifdef HAVE_SYS_PARAM_H
  12083. # include <sys/param.h>
  12084. # ifdef EXEC_PAGESIZE
  12085. # define getpagesize() EXEC_PAGESIZE
  12086. # else /* no EXEC_PAGESIZE */
  12087. # ifdef NBPG
  12088. # define getpagesize() NBPG * CLSIZE
  12089. # ifndef CLSIZE
  12090. # define CLSIZE 1
  12091. # endif /* no CLSIZE */
  12092. # else /* no NBPG */
  12093. # ifdef NBPC
  12094. # define getpagesize() NBPC
  12095. # else /* no NBPC */
  12096. # ifdef PAGESIZE
  12097. # define getpagesize() PAGESIZE
  12098. # endif /* PAGESIZE */
  12099. # endif /* no NBPC */
  12100. # endif /* no NBPG */
  12101. # endif /* no EXEC_PAGESIZE */
  12102. # else /* no HAVE_SYS_PARAM_H */
  12103. # define getpagesize() 8192 /* punt totally */
  12104. # endif /* no HAVE_SYS_PARAM_H */
  12105. # endif /* no _SC_PAGESIZE */
  12106. #endif /* no HAVE_GETPAGESIZE */
  12107. int
  12108. main ()
  12109. {
  12110. char *data, *data2, *data3;
  12111. int i, pagesize;
  12112. int fd;
  12113. pagesize = getpagesize ();
  12114. /* First, make a file with some known garbage in it. */
  12115. data = (char *) malloc (pagesize);
  12116. if (!data)
  12117. return 1;
  12118. for (i = 0; i < pagesize; ++i)
  12119. *(data + i) = rand ();
  12120. umask (0);
  12121. fd = creat ("conftest.mmap", 0600);
  12122. if (fd < 0)
  12123. return 1;
  12124. if (write (fd, data, pagesize) != pagesize)
  12125. return 1;
  12126. close (fd);
  12127. /* Next, try to mmap the file at a fixed address which already has
  12128. something else allocated at it. If we can, also make sure that
  12129. we see the same garbage. */
  12130. fd = open ("conftest.mmap", O_RDWR);
  12131. if (fd < 0)
  12132. return 1;
  12133. data2 = (char *) malloc (2 * pagesize);
  12134. if (!data2)
  12135. return 1;
  12136. data2 += (pagesize - ((long int) data2 & (pagesize - 1))) & (pagesize - 1);
  12137. if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
  12138. MAP_PRIVATE | MAP_FIXED, fd, 0L))
  12139. return 1;
  12140. for (i = 0; i < pagesize; ++i)
  12141. if (*(data + i) != *(data2 + i))
  12142. return 1;
  12143. /* Finally, make sure that changes to the mapped area do not
  12144. percolate back to the file as seen by read(). (This is a bug on
  12145. some variants of i386 svr4.0.) */
  12146. for (i = 0; i < pagesize; ++i)
  12147. *(data2 + i) = *(data2 + i) + 1;
  12148. data3 = (char *) malloc (pagesize);
  12149. if (!data3)
  12150. return 1;
  12151. if (read (fd, data3, pagesize) != pagesize)
  12152. return 1;
  12153. for (i = 0; i < pagesize; ++i)
  12154. if (*(data + i) != *(data3 + i))
  12155. return 1;
  12156. close (fd);
  12157. return 0;
  12158. }
  12159. _ACEOF
  12160. if ac_fn_cxx_try_run "$LINENO"; then :
  12161. ac_cv_func_mmap_fixed_mapped=yes
  12162. else
  12163. ac_cv_func_mmap_fixed_mapped=no
  12164. fi
  12165. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  12166. conftest.$ac_objext conftest.beam conftest.$ac_ext
  12167. fi
  12168. fi
  12169. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_mmap_fixed_mapped" >&5
  12170. $as_echo "$ac_cv_func_mmap_fixed_mapped" >&6; }
  12171. if test $ac_cv_func_mmap_fixed_mapped = yes; then
  12172. $as_echo "#define HAVE_MMAP 1" >>confdefs.h
  12173. fi
  12174. rm -f conftest.mmap
  12175. for ac_header in sys/select.h sys/socket.h
  12176. do :
  12177. as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
  12178. ac_fn_cxx_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
  12179. eval as_val=\$$as_ac_Header
  12180. if test "x$as_val" = x""yes; then :
  12181. cat >>confdefs.h <<_ACEOF
  12182. #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
  12183. _ACEOF
  12184. fi
  12185. done
  12186. { $as_echo "$as_me:${as_lineno-$LINENO}: checking types of arguments for select" >&5
  12187. $as_echo_n "checking types of arguments for select... " >&6; }
  12188. if test "${ac_cv_func_select_args+set}" = set; then :
  12189. $as_echo_n "(cached) " >&6
  12190. else
  12191. for ac_arg234 in 'fd_set *' 'int *' 'void *'; do
  12192. for ac_arg1 in 'int' 'size_t' 'unsigned long int' 'unsigned int'; do
  12193. for ac_arg5 in 'struct timeval *' 'const struct timeval *'; do
  12194. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12195. /* end confdefs.h. */
  12196. $ac_includes_default
  12197. #ifdef HAVE_SYS_SELECT_H
  12198. # include <sys/select.h>
  12199. #endif
  12200. #ifdef HAVE_SYS_SOCKET_H
  12201. # include <sys/socket.h>
  12202. #endif
  12203. int
  12204. main ()
  12205. {
  12206. extern int select ($ac_arg1,
  12207. $ac_arg234, $ac_arg234, $ac_arg234,
  12208. $ac_arg5);
  12209. ;
  12210. return 0;
  12211. }
  12212. _ACEOF
  12213. if ac_fn_cxx_try_compile "$LINENO"; then :
  12214. ac_cv_func_select_args="$ac_arg1,$ac_arg234,$ac_arg5"; break 3
  12215. fi
  12216. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  12217. done
  12218. done
  12219. done
  12220. # Provide a safe default value.
  12221. : ${ac_cv_func_select_args='int,int *,struct timeval *'}
  12222. fi
  12223. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_select_args" >&5
  12224. $as_echo "$ac_cv_func_select_args" >&6; }
  12225. ac_save_IFS=$IFS; IFS=','
  12226. set dummy `echo "$ac_cv_func_select_args" | sed 's/\*/\*/g'`
  12227. IFS=$ac_save_IFS
  12228. shift
  12229. cat >>confdefs.h <<_ACEOF
  12230. #define SELECT_TYPE_ARG1 $1
  12231. _ACEOF
  12232. cat >>confdefs.h <<_ACEOF
  12233. #define SELECT_TYPE_ARG234 ($2)
  12234. _ACEOF
  12235. cat >>confdefs.h <<_ACEOF
  12236. #define SELECT_TYPE_ARG5 ($3)
  12237. _ACEOF
  12238. rm -f conftest*
  12239. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether lstat dereferences a symlink specified with a trailing slash" >&5
  12240. $as_echo_n "checking whether lstat dereferences a symlink specified with a trailing slash... " >&6; }
  12241. if test "${ac_cv_func_lstat_dereferences_slashed_symlink+set}" = set; then :
  12242. $as_echo_n "(cached) " >&6
  12243. else
  12244. rm -f conftest.sym conftest.file
  12245. echo >conftest.file
  12246. if test "$as_ln_s" = "ln -s" && ln -s conftest.file conftest.sym; then
  12247. if test "$cross_compiling" = yes; then :
  12248. ac_cv_func_lstat_dereferences_slashed_symlink=no
  12249. else
  12250. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12251. /* end confdefs.h. */
  12252. $ac_includes_default
  12253. int
  12254. main ()
  12255. {
  12256. struct stat sbuf;
  12257. /* Linux will dereference the symlink and fail.
  12258. That is better in the sense that it means we will not
  12259. have to compile and use the lstat wrapper. */
  12260. return lstat ("conftest.sym/", &sbuf) == 0;
  12261. ;
  12262. return 0;
  12263. }
  12264. _ACEOF
  12265. if ac_fn_cxx_try_run "$LINENO"; then :
  12266. ac_cv_func_lstat_dereferences_slashed_symlink=yes
  12267. else
  12268. ac_cv_func_lstat_dereferences_slashed_symlink=no
  12269. fi
  12270. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  12271. conftest.$ac_objext conftest.beam conftest.$ac_ext
  12272. fi
  12273. else
  12274. # If the `ln -s' command failed, then we probably don't even
  12275. # have an lstat function.
  12276. ac_cv_func_lstat_dereferences_slashed_symlink=no
  12277. fi
  12278. rm -f conftest.sym conftest.file
  12279. fi
  12280. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_lstat_dereferences_slashed_symlink" >&5
  12281. $as_echo "$ac_cv_func_lstat_dereferences_slashed_symlink" >&6; }
  12282. test $ac_cv_func_lstat_dereferences_slashed_symlink = yes &&
  12283. cat >>confdefs.h <<_ACEOF
  12284. #define LSTAT_FOLLOWS_SLASHED_SYMLINK 1
  12285. _ACEOF
  12286. if test $ac_cv_func_lstat_dereferences_slashed_symlink = no; then
  12287. case " $LIBOBJS " in
  12288. *" lstat.$ac_objext "* ) ;;
  12289. *) LIBOBJS="$LIBOBJS lstat.$ac_objext"
  12290. ;;
  12291. esac
  12292. fi
  12293. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stat accepts an empty string" >&5
  12294. $as_echo_n "checking whether stat accepts an empty string... " >&6; }
  12295. if test "${ac_cv_func_stat_empty_string_bug+set}" = set; then :
  12296. $as_echo_n "(cached) " >&6
  12297. else
  12298. if test "$cross_compiling" = yes; then :
  12299. ac_cv_func_stat_empty_string_bug=yes
  12300. else
  12301. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12302. /* end confdefs.h. */
  12303. $ac_includes_default
  12304. int
  12305. main ()
  12306. {
  12307. struct stat sbuf;
  12308. return stat ("", &sbuf) == 0;
  12309. ;
  12310. return 0;
  12311. }
  12312. _ACEOF
  12313. if ac_fn_cxx_try_run "$LINENO"; then :
  12314. ac_cv_func_stat_empty_string_bug=no
  12315. else
  12316. ac_cv_func_stat_empty_string_bug=yes
  12317. fi
  12318. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  12319. conftest.$ac_objext conftest.beam conftest.$ac_ext
  12320. fi
  12321. fi
  12322. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_stat_empty_string_bug" >&5
  12323. $as_echo "$ac_cv_func_stat_empty_string_bug" >&6; }
  12324. if test $ac_cv_func_stat_empty_string_bug = yes; then
  12325. case " $LIBOBJS " in
  12326. *" stat.$ac_objext "* ) ;;
  12327. *) LIBOBJS="$LIBOBJS stat.$ac_objext"
  12328. ;;
  12329. esac
  12330. cat >>confdefs.h <<_ACEOF
  12331. #define HAVE_STAT_EMPTY_STRING_BUG 1
  12332. _ACEOF
  12333. fi
  12334. for ac_func in strftime
  12335. do :
  12336. ac_fn_cxx_check_func "$LINENO" "strftime" "ac_cv_func_strftime"
  12337. if test "x$ac_cv_func_strftime" = x""yes; then :
  12338. cat >>confdefs.h <<_ACEOF
  12339. #define HAVE_STRFTIME 1
  12340. _ACEOF
  12341. else
  12342. # strftime is in -lintl on SCO UNIX.
  12343. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for strftime in -lintl" >&5
  12344. $as_echo_n "checking for strftime in -lintl... " >&6; }
  12345. if test "${ac_cv_lib_intl_strftime+set}" = set; then :
  12346. $as_echo_n "(cached) " >&6
  12347. else
  12348. ac_check_lib_save_LIBS=$LIBS
  12349. LIBS="-lintl $LIBS"
  12350. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12351. /* end confdefs.h. */
  12352. /* Override any GCC internal prototype to avoid an error.
  12353. Use char because int might match the return type of a GCC
  12354. builtin and then its argument prototype would still apply. */
  12355. #ifdef __cplusplus
  12356. extern "C"
  12357. #endif
  12358. char strftime ();
  12359. int
  12360. main ()
  12361. {
  12362. return strftime ();
  12363. ;
  12364. return 0;
  12365. }
  12366. _ACEOF
  12367. if ac_fn_cxx_try_link "$LINENO"; then :
  12368. ac_cv_lib_intl_strftime=yes
  12369. else
  12370. ac_cv_lib_intl_strftime=no
  12371. fi
  12372. rm -f core conftest.err conftest.$ac_objext \
  12373. conftest$ac_exeext conftest.$ac_ext
  12374. LIBS=$ac_check_lib_save_LIBS
  12375. fi
  12376. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_intl_strftime" >&5
  12377. $as_echo "$ac_cv_lib_intl_strftime" >&6; }
  12378. if test "x$ac_cv_lib_intl_strftime" = x""yes; then :
  12379. $as_echo "#define HAVE_STRFTIME 1" >>confdefs.h
  12380. LIBS="-lintl $LIBS"
  12381. fi
  12382. fi
  12383. done
  12384. for ac_func in vprintf
  12385. do :
  12386. ac_fn_cxx_check_func "$LINENO" "vprintf" "ac_cv_func_vprintf"
  12387. if test "x$ac_cv_func_vprintf" = x""yes; then :
  12388. cat >>confdefs.h <<_ACEOF
  12389. #define HAVE_VPRINTF 1
  12390. _ACEOF
  12391. ac_fn_cxx_check_func "$LINENO" "_doprnt" "ac_cv_func__doprnt"
  12392. if test "x$ac_cv_func__doprnt" = x""yes; then :
  12393. $as_echo "#define HAVE_DOPRNT 1" >>confdefs.h
  12394. fi
  12395. fi
  12396. done
  12397. for ac_header in vfork.h
  12398. do :
  12399. ac_fn_cxx_check_header_mongrel "$LINENO" "vfork.h" "ac_cv_header_vfork_h" "$ac_includes_default"
  12400. if test "x$ac_cv_header_vfork_h" = x""yes; then :
  12401. cat >>confdefs.h <<_ACEOF
  12402. #define HAVE_VFORK_H 1
  12403. _ACEOF
  12404. fi
  12405. done
  12406. for ac_func in fork vfork
  12407. do :
  12408. as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
  12409. ac_fn_cxx_check_func "$LINENO" "$ac_func" "$as_ac_var"
  12410. eval as_val=\$$as_ac_var
  12411. if test "x$as_val" = x""yes; then :
  12412. cat >>confdefs.h <<_ACEOF
  12413. #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
  12414. _ACEOF
  12415. fi
  12416. done
  12417. if test "x$ac_cv_func_fork" = xyes; then
  12418. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working fork" >&5
  12419. $as_echo_n "checking for working fork... " >&6; }
  12420. if test "${ac_cv_func_fork_works+set}" = set; then :
  12421. $as_echo_n "(cached) " >&6
  12422. else
  12423. if test "$cross_compiling" = yes; then :
  12424. ac_cv_func_fork_works=cross
  12425. else
  12426. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12427. /* end confdefs.h. */
  12428. $ac_includes_default
  12429. int
  12430. main ()
  12431. {
  12432. /* By Ruediger Kuhlmann. */
  12433. return fork () < 0;
  12434. ;
  12435. return 0;
  12436. }
  12437. _ACEOF
  12438. if ac_fn_cxx_try_run "$LINENO"; then :
  12439. ac_cv_func_fork_works=yes
  12440. else
  12441. ac_cv_func_fork_works=no
  12442. fi
  12443. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  12444. conftest.$ac_objext conftest.beam conftest.$ac_ext
  12445. fi
  12446. fi
  12447. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_fork_works" >&5
  12448. $as_echo "$ac_cv_func_fork_works" >&6; }
  12449. else
  12450. ac_cv_func_fork_works=$ac_cv_func_fork
  12451. fi
  12452. if test "x$ac_cv_func_fork_works" = xcross; then
  12453. case $host in
  12454. *-*-amigaos* | *-*-msdosdjgpp*)
  12455. # Override, as these systems have only a dummy fork() stub
  12456. ac_cv_func_fork_works=no
  12457. ;;
  12458. *)
  12459. ac_cv_func_fork_works=yes
  12460. ;;
  12461. esac
  12462. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
  12463. $as_echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
  12464. fi
  12465. ac_cv_func_vfork_works=$ac_cv_func_vfork
  12466. if test "x$ac_cv_func_vfork" = xyes; then
  12467. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working vfork" >&5
  12468. $as_echo_n "checking for working vfork... " >&6; }
  12469. if test "${ac_cv_func_vfork_works+set}" = set; then :
  12470. $as_echo_n "(cached) " >&6
  12471. else
  12472. if test "$cross_compiling" = yes; then :
  12473. ac_cv_func_vfork_works=cross
  12474. else
  12475. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12476. /* end confdefs.h. */
  12477. /* Thanks to Paul Eggert for this test. */
  12478. $ac_includes_default
  12479. #include <sys/wait.h>
  12480. #ifdef HAVE_VFORK_H
  12481. # include <vfork.h>
  12482. #endif
  12483. /* On some sparc systems, changes by the child to local and incoming
  12484. argument registers are propagated back to the parent. The compiler
  12485. is told about this with #include <vfork.h>, but some compilers
  12486. (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
  12487. static variable whose address is put into a register that is
  12488. clobbered by the vfork. */
  12489. static void
  12490. #ifdef __cplusplus
  12491. sparc_address_test (int arg)
  12492. # else
  12493. sparc_address_test (arg) int arg;
  12494. #endif
  12495. {
  12496. static pid_t child;
  12497. if (!child) {
  12498. child = vfork ();
  12499. if (child < 0) {
  12500. perror ("vfork");
  12501. _exit(2);
  12502. }
  12503. if (!child) {
  12504. arg = getpid();
  12505. write(-1, "", 0);
  12506. _exit (arg);
  12507. }
  12508. }
  12509. }
  12510. int
  12511. main ()
  12512. {
  12513. pid_t parent = getpid ();
  12514. pid_t child;
  12515. sparc_address_test (0);
  12516. child = vfork ();
  12517. if (child == 0) {
  12518. /* Here is another test for sparc vfork register problems. This
  12519. test uses lots of local variables, at least as many local
  12520. variables as main has allocated so far including compiler
  12521. temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
  12522. 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
  12523. reuse the register of parent for one of the local variables,
  12524. since it will think that parent can't possibly be used any more
  12525. in this routine. Assigning to the local variable will thus
  12526. munge parent in the parent process. */
  12527. pid_t
  12528. p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
  12529. p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
  12530. /* Convince the compiler that p..p7 are live; otherwise, it might
  12531. use the same hardware register for all 8 local variables. */
  12532. if (p != p1 || p != p2 || p != p3 || p != p4
  12533. || p != p5 || p != p6 || p != p7)
  12534. _exit(1);
  12535. /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
  12536. from child file descriptors. If the child closes a descriptor
  12537. before it execs or exits, this munges the parent's descriptor
  12538. as well. Test for this by closing stdout in the child. */
  12539. _exit(close(fileno(stdout)) != 0);
  12540. } else {
  12541. int status;
  12542. struct stat st;
  12543. while (wait(&status) != child)
  12544. ;
  12545. return (
  12546. /* Was there some problem with vforking? */
  12547. child < 0
  12548. /* Did the child fail? (This shouldn't happen.) */
  12549. || status
  12550. /* Did the vfork/compiler bug occur? */
  12551. || parent != getpid()
  12552. /* Did the file descriptor bug occur? */
  12553. || fstat(fileno(stdout), &st) != 0
  12554. );
  12555. }
  12556. }
  12557. _ACEOF
  12558. if ac_fn_cxx_try_run "$LINENO"; then :
  12559. ac_cv_func_vfork_works=yes
  12560. else
  12561. ac_cv_func_vfork_works=no
  12562. fi
  12563. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  12564. conftest.$ac_objext conftest.beam conftest.$ac_ext
  12565. fi
  12566. fi
  12567. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_vfork_works" >&5
  12568. $as_echo "$ac_cv_func_vfork_works" >&6; }
  12569. fi;
  12570. if test "x$ac_cv_func_fork_works" = xcross; then
  12571. ac_cv_func_vfork_works=$ac_cv_func_vfork
  12572. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
  12573. $as_echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
  12574. fi
  12575. if test "x$ac_cv_func_vfork_works" = xyes; then
  12576. $as_echo "#define HAVE_WORKING_VFORK 1" >>confdefs.h
  12577. else
  12578. $as_echo "#define vfork fork" >>confdefs.h
  12579. fi
  12580. if test "x$ac_cv_func_fork_works" = xyes; then
  12581. $as_echo "#define HAVE_WORKING_FORK 1" >>confdefs.h
  12582. fi
  12583. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working strtod" >&5
  12584. $as_echo_n "checking for working strtod... " >&6; }
  12585. if test "${ac_cv_func_strtod+set}" = set; then :
  12586. $as_echo_n "(cached) " >&6
  12587. else
  12588. if test "$cross_compiling" = yes; then :
  12589. ac_cv_func_strtod=no
  12590. else
  12591. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12592. /* end confdefs.h. */
  12593. $ac_includes_default
  12594. #ifndef strtod
  12595. double strtod ();
  12596. #endif
  12597. int
  12598. main()
  12599. {
  12600. {
  12601. /* Some versions of Linux strtod mis-parse strings with leading '+'. */
  12602. char *string = " +69";
  12603. char *term;
  12604. double value;
  12605. value = strtod (string, &term);
  12606. if (value != 69 || term != (string + 4))
  12607. return 1;
  12608. }
  12609. {
  12610. /* Under Solaris 2.4, strtod returns the wrong value for the
  12611. terminating character under some conditions. */
  12612. char *string = "NaN";
  12613. char *term;
  12614. strtod (string, &term);
  12615. if (term != string && *(term - 1) == 0)
  12616. return 1;
  12617. }
  12618. return 0;
  12619. }
  12620. _ACEOF
  12621. if ac_fn_cxx_try_run "$LINENO"; then :
  12622. ac_cv_func_strtod=yes
  12623. else
  12624. ac_cv_func_strtod=no
  12625. fi
  12626. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  12627. conftest.$ac_objext conftest.beam conftest.$ac_ext
  12628. fi
  12629. fi
  12630. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_strtod" >&5
  12631. $as_echo "$ac_cv_func_strtod" >&6; }
  12632. if test $ac_cv_func_strtod = no; then
  12633. case " $LIBOBJS " in
  12634. *" strtod.$ac_objext "* ) ;;
  12635. *) LIBOBJS="$LIBOBJS strtod.$ac_objext"
  12636. ;;
  12637. esac
  12638. ac_fn_cxx_check_func "$LINENO" "pow" "ac_cv_func_pow"
  12639. if test "x$ac_cv_func_pow" = x""yes; then :
  12640. fi
  12641. if test $ac_cv_func_pow = no; then
  12642. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pow in -lm" >&5
  12643. $as_echo_n "checking for pow in -lm... " >&6; }
  12644. if test "${ac_cv_lib_m_pow+set}" = set; then :
  12645. $as_echo_n "(cached) " >&6
  12646. else
  12647. ac_check_lib_save_LIBS=$LIBS
  12648. LIBS="-lm $LIBS"
  12649. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12650. /* end confdefs.h. */
  12651. /* Override any GCC internal prototype to avoid an error.
  12652. Use char because int might match the return type of a GCC
  12653. builtin and then its argument prototype would still apply. */
  12654. #ifdef __cplusplus
  12655. extern "C"
  12656. #endif
  12657. char pow ();
  12658. int
  12659. main ()
  12660. {
  12661. return pow ();
  12662. ;
  12663. return 0;
  12664. }
  12665. _ACEOF
  12666. if ac_fn_cxx_try_link "$LINENO"; then :
  12667. ac_cv_lib_m_pow=yes
  12668. else
  12669. ac_cv_lib_m_pow=no
  12670. fi
  12671. rm -f core conftest.err conftest.$ac_objext \
  12672. conftest$ac_exeext conftest.$ac_ext
  12673. LIBS=$ac_check_lib_save_LIBS
  12674. fi
  12675. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_pow" >&5
  12676. $as_echo "$ac_cv_lib_m_pow" >&6; }
  12677. if test "x$ac_cv_lib_m_pow" = x""yes; then :
  12678. POW_LIB=-lm
  12679. else
  12680. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cannot find library containing definition of pow" >&5
  12681. $as_echo "$as_me: WARNING: cannot find library containing definition of pow" >&2;}
  12682. fi
  12683. fi
  12684. fi
  12685. for ac_func in __argz_count \
  12686. __argz_next \
  12687. __argz_stringify \
  12688. atexit \
  12689. ftruncate \
  12690. getcwd \
  12691. gethostbyaddr \
  12692. gethostbyname \
  12693. getifaddrs \
  12694. getpagesize \
  12695. inet_ntoa \
  12696. memchr \
  12697. memmove \
  12698. mempcpy \
  12699. memset \
  12700. mkdir \
  12701. munmap \
  12702. nl_langinfo \
  12703. posix_memalign \
  12704. pow \
  12705. putenv \
  12706. rmdir \
  12707. select \
  12708. setlocale \
  12709. sleep \
  12710. socket \
  12711. stpcpy \
  12712. strcasecmp \
  12713. strchr \
  12714. strcspn \
  12715. strdup \
  12716. strerror \
  12717. strncasecmp \
  12718. strstr \
  12719. strtol \
  12720. strtoul \
  12721. strtoull \
  12722. tzset \
  12723. unsetenv \
  12724. usleep \
  12725. utime
  12726. do :
  12727. as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
  12728. ac_fn_cxx_check_func "$LINENO" "$ac_func" "$as_ac_var"
  12729. eval as_val=\$$as_ac_var
  12730. if test "x$as_val" = x""yes; then :
  12731. cat >>confdefs.h <<_ACEOF
  12732. #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
  12733. _ACEOF
  12734. fi
  12735. done
  12736. if test "x$enable_epoll" = "xyes"; then
  12737. for ac_func in epoll_create
  12738. do :
  12739. ac_fn_cxx_check_func "$LINENO" "epoll_create" "ac_cv_func_epoll_create"
  12740. if test "x$ac_cv_func_epoll_create" = x""yes; then :
  12741. cat >>confdefs.h <<_ACEOF
  12742. #define HAVE_EPOLL_CREATE 1
  12743. _ACEOF
  12744. have_epoll=yes
  12745. fi
  12746. done
  12747. if test "x$have_epoll" = "xyes"; then
  12748. $as_echo "#define HAVE_EPOLL 1" >>confdefs.h
  12749. fi
  12750. fi
  12751. if test "x$have_epoll" = "xyes"; then
  12752. HAVE_EPOLL_TRUE=
  12753. HAVE_EPOLL_FALSE='#'
  12754. else
  12755. HAVE_EPOLL_TRUE='#'
  12756. HAVE_EPOLL_FALSE=
  12757. fi
  12758. for ac_func in posix_fallocate
  12759. do :
  12760. ac_fn_cxx_check_func "$LINENO" "posix_fallocate" "ac_cv_func_posix_fallocate"
  12761. if test "x$ac_cv_func_posix_fallocate" = x""yes; then :
  12762. cat >>confdefs.h <<_ACEOF
  12763. #define HAVE_POSIX_FALLOCATE 1
  12764. _ACEOF
  12765. have_posix_fallocate=yes
  12766. fi
  12767. done
  12768. if test "x$have_posix_fallocate" = "xyes"; then
  12769. HAVE_POSIX_FALLOCATE_TRUE=
  12770. HAVE_POSIX_FALLOCATE_FALSE='#'
  12771. else
  12772. HAVE_POSIX_FALLOCATE_TRUE='#'
  12773. HAVE_POSIX_FALLOCATE_FALSE=
  12774. fi
  12775. for ac_func in asctime_r
  12776. do :
  12777. ac_fn_cxx_check_func "$LINENO" "asctime_r" "ac_cv_func_asctime_r"
  12778. if test "x$ac_cv_func_asctime_r" = x""yes; then :
  12779. cat >>confdefs.h <<_ACEOF
  12780. #define HAVE_ASCTIME_R 1
  12781. _ACEOF
  12782. if true; then
  12783. HAVE_ASCTIME_R_TRUE=
  12784. HAVE_ASCTIME_R_FALSE='#'
  12785. else
  12786. HAVE_ASCTIME_R_TRUE='#'
  12787. HAVE_ASCTIME_R_FALSE=
  12788. fi
  12789. else
  12790. if false; then
  12791. HAVE_ASCTIME_R_TRUE=
  12792. HAVE_ASCTIME_R_FALSE='#'
  12793. else
  12794. HAVE_ASCTIME_R_TRUE='#'
  12795. HAVE_ASCTIME_R_FALSE=
  12796. fi
  12797. fi
  12798. done
  12799. for ac_func in basename
  12800. do :
  12801. ac_fn_cxx_check_func "$LINENO" "basename" "ac_cv_func_basename"
  12802. if test "x$ac_cv_func_basename" = x""yes; then :
  12803. cat >>confdefs.h <<_ACEOF
  12804. #define HAVE_BASENAME 1
  12805. _ACEOF
  12806. if true; then
  12807. HAVE_BASENAME_TRUE=
  12808. HAVE_BASENAME_FALSE='#'
  12809. else
  12810. HAVE_BASENAME_TRUE='#'
  12811. HAVE_BASENAME_FALSE=
  12812. fi
  12813. else
  12814. if false; then
  12815. HAVE_BASENAME_TRUE=
  12816. HAVE_BASENAME_FALSE='#'
  12817. else
  12818. HAVE_BASENAME_TRUE='#'
  12819. HAVE_BASENAME_FALSE=
  12820. fi
  12821. fi
  12822. done
  12823. for ac_func in gai_strerror
  12824. do :
  12825. ac_fn_cxx_check_func "$LINENO" "gai_strerror" "ac_cv_func_gai_strerror"
  12826. if test "x$ac_cv_func_gai_strerror" = x""yes; then :
  12827. cat >>confdefs.h <<_ACEOF
  12828. #define HAVE_GAI_STRERROR 1
  12829. _ACEOF
  12830. if true; then
  12831. HAVE_GAI_STRERROR_TRUE=
  12832. HAVE_GAI_STRERROR_FALSE='#'
  12833. else
  12834. HAVE_GAI_STRERROR_TRUE='#'
  12835. HAVE_GAI_STRERROR_FALSE=
  12836. fi
  12837. else
  12838. if false; then
  12839. HAVE_GAI_STRERROR_TRUE=
  12840. HAVE_GAI_STRERROR_FALSE='#'
  12841. else
  12842. HAVE_GAI_STRERROR_TRUE='#'
  12843. HAVE_GAI_STRERROR_FALSE=
  12844. fi
  12845. fi
  12846. done
  12847. for ac_func in getaddrinfo
  12848. do :
  12849. ac_fn_cxx_check_func "$LINENO" "getaddrinfo" "ac_cv_func_getaddrinfo"
  12850. if test "x$ac_cv_func_getaddrinfo" = x""yes; then :
  12851. cat >>confdefs.h <<_ACEOF
  12852. #define HAVE_GETADDRINFO 1
  12853. _ACEOF
  12854. if true; then
  12855. HAVE_GETADDRINFO_TRUE=
  12856. HAVE_GETADDRINFO_FALSE='#'
  12857. else
  12858. HAVE_GETADDRINFO_TRUE='#'
  12859. HAVE_GETADDRINFO_FALSE=
  12860. fi
  12861. else
  12862. if false; then
  12863. HAVE_GETADDRINFO_TRUE=
  12864. HAVE_GETADDRINFO_FALSE='#'
  12865. else
  12866. HAVE_GETADDRINFO_TRUE='#'
  12867. HAVE_GETADDRINFO_FALSE=
  12868. fi
  12869. fi
  12870. done
  12871. for ac_func in gettimeofday
  12872. do :
  12873. ac_fn_cxx_check_func "$LINENO" "gettimeofday" "ac_cv_func_gettimeofday"
  12874. if test "x$ac_cv_func_gettimeofday" = x""yes; then :
  12875. cat >>confdefs.h <<_ACEOF
  12876. #define HAVE_GETTIMEOFDAY 1
  12877. _ACEOF
  12878. if true; then
  12879. HAVE_GETTIMEOFDAY_TRUE=
  12880. HAVE_GETTIMEOFDAY_FALSE='#'
  12881. else
  12882. HAVE_GETTIMEOFDAY_TRUE='#'
  12883. HAVE_GETTIMEOFDAY_FALSE=
  12884. fi
  12885. else
  12886. if false; then
  12887. HAVE_GETTIMEOFDAY_TRUE=
  12888. HAVE_GETTIMEOFDAY_FALSE='#'
  12889. else
  12890. HAVE_GETTIMEOFDAY_TRUE='#'
  12891. HAVE_GETTIMEOFDAY_FALSE=
  12892. fi
  12893. fi
  12894. done
  12895. for ac_func in inet_aton
  12896. do :
  12897. ac_fn_cxx_check_func "$LINENO" "inet_aton" "ac_cv_func_inet_aton"
  12898. if test "x$ac_cv_func_inet_aton" = x""yes; then :
  12899. cat >>confdefs.h <<_ACEOF
  12900. #define HAVE_INET_ATON 1
  12901. _ACEOF
  12902. if true; then
  12903. HAVE_INET_ATON_TRUE=
  12904. HAVE_INET_ATON_FALSE='#'
  12905. else
  12906. HAVE_INET_ATON_TRUE='#'
  12907. HAVE_INET_ATON_FALSE=
  12908. fi
  12909. else
  12910. if false; then
  12911. HAVE_INET_ATON_TRUE=
  12912. HAVE_INET_ATON_FALSE='#'
  12913. else
  12914. HAVE_INET_ATON_TRUE='#'
  12915. HAVE_INET_ATON_FALSE=
  12916. fi
  12917. fi
  12918. done
  12919. for ac_func in localtime_r
  12920. do :
  12921. ac_fn_cxx_check_func "$LINENO" "localtime_r" "ac_cv_func_localtime_r"
  12922. if test "x$ac_cv_func_localtime_r" = x""yes; then :
  12923. cat >>confdefs.h <<_ACEOF
  12924. #define HAVE_LOCALTIME_R 1
  12925. _ACEOF
  12926. if true; then
  12927. HAVE_LOCALTIME_R_TRUE=
  12928. HAVE_LOCALTIME_R_FALSE='#'
  12929. else
  12930. HAVE_LOCALTIME_R_TRUE='#'
  12931. HAVE_LOCALTIME_R_FALSE=
  12932. fi
  12933. else
  12934. if false; then
  12935. HAVE_LOCALTIME_R_TRUE=
  12936. HAVE_LOCALTIME_R_FALSE='#'
  12937. else
  12938. HAVE_LOCALTIME_R_TRUE='#'
  12939. HAVE_LOCALTIME_R_FALSE=
  12940. fi
  12941. fi
  12942. done
  12943. for ac_func in strptime
  12944. do :
  12945. ac_fn_cxx_check_func "$LINENO" "strptime" "ac_cv_func_strptime"
  12946. if test "x$ac_cv_func_strptime" = x""yes; then :
  12947. cat >>confdefs.h <<_ACEOF
  12948. #define HAVE_STRPTIME 1
  12949. _ACEOF
  12950. if true; then
  12951. HAVE_STRPTIME_TRUE=
  12952. HAVE_STRPTIME_FALSE='#'
  12953. else
  12954. HAVE_STRPTIME_TRUE='#'
  12955. HAVE_STRPTIME_FALSE=
  12956. fi
  12957. else
  12958. if false; then
  12959. HAVE_STRPTIME_TRUE=
  12960. HAVE_STRPTIME_FALSE='#'
  12961. else
  12962. HAVE_STRPTIME_TRUE='#'
  12963. HAVE_STRPTIME_FALSE=
  12964. fi
  12965. fi
  12966. done
  12967. for ac_func in timegm
  12968. do :
  12969. ac_fn_cxx_check_func "$LINENO" "timegm" "ac_cv_func_timegm"
  12970. if test "x$ac_cv_func_timegm" = x""yes; then :
  12971. cat >>confdefs.h <<_ACEOF
  12972. #define HAVE_TIMEGM 1
  12973. _ACEOF
  12974. if true; then
  12975. HAVE_TIMEGM_TRUE=
  12976. HAVE_TIMEGM_FALSE='#'
  12977. else
  12978. HAVE_TIMEGM_TRUE='#'
  12979. HAVE_TIMEGM_FALSE=
  12980. fi
  12981. else
  12982. if false; then
  12983. HAVE_TIMEGM_TRUE=
  12984. HAVE_TIMEGM_FALSE='#'
  12985. else
  12986. HAVE_TIMEGM_TRUE='#'
  12987. HAVE_TIMEGM_FALSE=
  12988. fi
  12989. fi
  12990. done
  12991. for ac_func in daemon
  12992. do :
  12993. ac_fn_cxx_check_func "$LINENO" "daemon" "ac_cv_func_daemon"
  12994. if test "x$ac_cv_func_daemon" = x""yes; then :
  12995. cat >>confdefs.h <<_ACEOF
  12996. #define HAVE_DAEMON 1
  12997. _ACEOF
  12998. have_daemon=yes
  12999. fi
  13000. done
  13001. if test "x$have_daemon" = "xyes"; then
  13002. HAVE_DAEMON_TRUE=
  13003. HAVE_DAEMON_FALSE='#'
  13004. else
  13005. HAVE_DAEMON_TRUE='#'
  13006. HAVE_DAEMON_FALSE=
  13007. fi
  13008. case "$target" in
  13009. *mingw*)
  13010. if true; then
  13011. HAVE_GETADDRINFO_TRUE=
  13012. HAVE_GETADDRINFO_FALSE='#'
  13013. else
  13014. HAVE_GETADDRINFO_TRUE='#'
  13015. HAVE_GETADDRINFO_FALSE=
  13016. fi
  13017. if false; then
  13018. HAVE_GAI_STRERROR_TRUE=
  13019. HAVE_GAI_STRERROR_FALSE='#'
  13020. else
  13021. HAVE_GAI_STRERROR_TRUE='#'
  13022. HAVE_GAI_STRERROR_FALSE=
  13023. fi
  13024. ;;
  13025. esac
  13026. ac_fn_cxx_check_member "$LINENO" "struct sockaddr_in" "sin_len" "ac_cv_member_struct_sockaddr_in_sin_len" "#include <netinet/in.h>
  13027. "
  13028. if test "x$ac_cv_member_struct_sockaddr_in_sin_len" = x""yes; then :
  13029. $as_echo "#define HAVE_SOCKADDR_IN_SIN_LEN 1" >>confdefs.h
  13030. fi
  13031. # Check struct option.name is assignable from const char*. struct
  13032. # option.name in opensolaris is of type char*. In Linux, it is const
  13033. # char*
  13034. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct option.name is assignable from const char*" >&5
  13035. $as_echo_n "checking whether struct option.name is assignable from const char*... " >&6; }
  13036. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13037. /* end confdefs.h. */
  13038. #include <unistd.h>
  13039. #include <getopt.h>
  13040. int
  13041. main ()
  13042. {
  13043. const char* s = "const char";
  13044. option op;
  13045. op.name = s;
  13046. ;
  13047. return 0;
  13048. }
  13049. _ACEOF
  13050. if ac_fn_cxx_try_compile "$LINENO"; then :
  13051. have_option_const_name=yes
  13052. else
  13053. have_option_const_name=no
  13054. fi
  13055. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  13056. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_option_const_name" >&5
  13057. $as_echo "$have_option_const_name" >&6; }
  13058. if test "x$have_option_const_name" = "xyes"; then
  13059. $as_echo "#define HAVE_OPTION_CONST_NAME 1" >>confdefs.h
  13060. fi
  13061. ac_config_files="$ac_config_files Makefile src/Makefile test/Makefile po/Makefile.in intl/Makefile lib/Makefile doc/Makefile"
  13062. cat >confcache <<\_ACEOF
  13063. # This file is a shell script that caches the results of configure
  13064. # tests run on this system so they can be shared between configure
  13065. # scripts and configure runs, see configure's option --config-cache.
  13066. # It is not useful on other systems. If it contains results you don't
  13067. # want to keep, you may remove or edit it.
  13068. #
  13069. # config.status only pays attention to the cache file if you give it
  13070. # the --recheck option to rerun configure.
  13071. #
  13072. # `ac_cv_env_foo' variables (set or unset) will be overridden when
  13073. # loading this file, other *unset* `ac_cv_foo' will be assigned the
  13074. # following values.
  13075. _ACEOF
  13076. # The following way of writing the cache mishandles newlines in values,
  13077. # but we know of no workaround that is simple, portable, and efficient.
  13078. # So, we kill variables containing newlines.
  13079. # Ultrix sh set writes to stderr and can't be redirected directly,
  13080. # and sets the high bit in the cache file unless we assign to the vars.
  13081. (
  13082. for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
  13083. eval ac_val=\$$ac_var
  13084. case $ac_val in #(
  13085. *${as_nl}*)
  13086. case $ac_var in #(
  13087. *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
  13088. $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
  13089. esac
  13090. case $ac_var in #(
  13091. _ | IFS | as_nl) ;; #(
  13092. BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
  13093. *) { eval $ac_var=; unset $ac_var;} ;;
  13094. esac ;;
  13095. esac
  13096. done
  13097. (set) 2>&1 |
  13098. case $as_nl`(ac_space=' '; set) 2>&1` in #(
  13099. *${as_nl}ac_space=\ *)
  13100. # `set' does not quote correctly, so add quotes: double-quote
  13101. # substitution turns \\\\ into \\, and sed turns \\ into \.
  13102. sed -n \
  13103. "s/'/'\\\\''/g;
  13104. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
  13105. ;; #(
  13106. *)
  13107. # `set' quotes correctly as required by POSIX, so do not add quotes.
  13108. sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
  13109. ;;
  13110. esac |
  13111. sort
  13112. ) |
  13113. sed '
  13114. /^ac_cv_env_/b end
  13115. t clear
  13116. :clear
  13117. s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
  13118. t end
  13119. s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
  13120. :end' >>confcache
  13121. if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
  13122. if test -w "$cache_file"; then
  13123. test "x$cache_file" != "x/dev/null" &&
  13124. { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
  13125. $as_echo "$as_me: updating cache $cache_file" >&6;}
  13126. cat confcache >$cache_file
  13127. else
  13128. { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
  13129. $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
  13130. fi
  13131. fi
  13132. rm -f confcache
  13133. test "x$prefix" = xNONE && prefix=$ac_default_prefix
  13134. # Let make expand exec_prefix.
  13135. test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
  13136. DEFS=-DHAVE_CONFIG_H
  13137. ac_libobjs=
  13138. ac_ltlibobjs=
  13139. for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
  13140. # 1. Remove the extension, and $U if already installed.
  13141. ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
  13142. ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
  13143. # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
  13144. # will be set to the directory where LIBOBJS objects are built.
  13145. as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
  13146. as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
  13147. done
  13148. LIBOBJS=$ac_libobjs
  13149. LTLIBOBJS=$ac_ltlibobjs
  13150. if test -n "$EXEEXT"; then
  13151. am__EXEEXT_TRUE=
  13152. am__EXEEXT_FALSE='#'
  13153. else
  13154. am__EXEEXT_TRUE='#'
  13155. am__EXEEXT_FALSE=
  13156. fi
  13157. if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
  13158. as_fn_error "conditional \"AMDEP\" was never defined.
  13159. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  13160. fi
  13161. if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
  13162. as_fn_error "conditional \"am__fastdepCXX\" was never defined.
  13163. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  13164. fi
  13165. if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
  13166. as_fn_error "conditional \"am__fastdepCC\" was never defined.
  13167. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  13168. fi
  13169. if test -z "${ENABLE_SSL_TRUE}" && test -z "${ENABLE_SSL_FALSE}"; then
  13170. as_fn_error "conditional \"ENABLE_SSL\" was never defined.
  13171. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  13172. fi
  13173. if test -z "${ENABLE_SSL_TRUE}" && test -z "${ENABLE_SSL_FALSE}"; then
  13174. as_fn_error "conditional \"ENABLE_SSL\" was never defined.
  13175. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  13176. fi
  13177. if test -z "${HAVE_LIBGNUTLS_TRUE}" && test -z "${HAVE_LIBGNUTLS_FALSE}"; then
  13178. as_fn_error "conditional \"HAVE_LIBGNUTLS\" was never defined.
  13179. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  13180. fi
  13181. if test -z "${HAVE_LIBSSL_TRUE}" && test -z "${HAVE_LIBSSL_FALSE}"; then
  13182. as_fn_error "conditional \"HAVE_LIBSSL\" was never defined.
  13183. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  13184. fi
  13185. if test -z "${ENABLE_MESSAGE_DIGEST_TRUE}" && test -z "${ENABLE_MESSAGE_DIGEST_FALSE}"; then
  13186. as_fn_error "conditional \"ENABLE_MESSAGE_DIGEST\" was never defined.
  13187. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  13188. fi
  13189. if test -z "${ENABLE_MESSAGE_DIGEST_TRUE}" && test -z "${ENABLE_MESSAGE_DIGEST_FALSE}"; then
  13190. as_fn_error "conditional \"ENABLE_MESSAGE_DIGEST\" was never defined.
  13191. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  13192. fi
  13193. if test -z "${ENABLE_BITTORRENT_TRUE}" && test -z "${ENABLE_BITTORRENT_FALSE}"; then
  13194. as_fn_error "conditional \"ENABLE_BITTORRENT\" was never defined.
  13195. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  13196. fi
  13197. if test -z "${ENABLE_BITTORRENT_TRUE}" && test -z "${ENABLE_BITTORRENT_FALSE}"; then
  13198. as_fn_error "conditional \"ENABLE_BITTORRENT\" was never defined.
  13199. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  13200. fi
  13201. if test -z "${ENABLE_METALINK_TRUE}" && test -z "${ENABLE_METALINK_FALSE}"; then
  13202. as_fn_error "conditional \"ENABLE_METALINK\" was never defined.
  13203. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  13204. fi
  13205. if test -z "${ENABLE_METALINK_TRUE}" && test -z "${ENABLE_METALINK_FALSE}"; then
  13206. as_fn_error "conditional \"ENABLE_METALINK\" was never defined.
  13207. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  13208. fi
  13209. if test -z "${ENABLE_METALINK_LIBXML2_TRUE}" && test -z "${ENABLE_METALINK_LIBXML2_FALSE}"; then
  13210. as_fn_error "conditional \"ENABLE_METALINK_LIBXML2\" was never defined.
  13211. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  13212. fi
  13213. if test -z "${ENABLE_METALINK_LIBEXPAT_TRUE}" && test -z "${ENABLE_METALINK_LIBEXPAT_FALSE}"; then
  13214. as_fn_error "conditional \"ENABLE_METALINK_LIBEXPAT\" was never defined.
  13215. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  13216. fi
  13217. if test -z "${ENABLE_XML_RPC_TRUE}" && test -z "${ENABLE_XML_RPC_FALSE}"; then
  13218. as_fn_error "conditional \"ENABLE_XML_RPC\" was never defined.
  13219. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  13220. fi
  13221. if test -z "${HAVE_LIBXML2_TRUE}" && test -z "${HAVE_LIBXML2_FALSE}"; then
  13222. as_fn_error "conditional \"HAVE_LIBXML2\" was never defined.
  13223. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  13224. fi
  13225. if test -z "${HAVE_LIBEXPAT_TRUE}" && test -z "${HAVE_LIBEXPAT_FALSE}"; then
  13226. as_fn_error "conditional \"HAVE_LIBEXPAT\" was never defined.
  13227. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  13228. fi
  13229. if test -z "${ENABLE_ASYNC_DNS_TRUE}" && test -z "${ENABLE_ASYNC_DNS_FALSE}"; then
  13230. as_fn_error "conditional \"ENABLE_ASYNC_DNS\" was never defined.
  13231. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  13232. fi
  13233. if test -z "${ENABLE_ASYNC_DNS_TRUE}" && test -z "${ENABLE_ASYNC_DNS_FALSE}"; then
  13234. as_fn_error "conditional \"ENABLE_ASYNC_DNS\" was never defined.
  13235. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  13236. fi
  13237. if test -z "${HAVE_LIBZ_TRUE}" && test -z "${HAVE_LIBZ_FALSE}"; then
  13238. as_fn_error "conditional \"HAVE_LIBZ\" was never defined.
  13239. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  13240. fi
  13241. if test -z "${HAVE_SQLITE3_TRUE}" && test -z "${HAVE_SQLITE3_FALSE}"; then
  13242. as_fn_error "conditional \"HAVE_SQLITE3\" was never defined.
  13243. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  13244. fi
  13245. if test -z "${HAVE_EPOLL_TRUE}" && test -z "${HAVE_EPOLL_FALSE}"; then
  13246. as_fn_error "conditional \"HAVE_EPOLL\" was never defined.
  13247. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  13248. fi
  13249. if test -z "${HAVE_POSIX_FALLOCATE_TRUE}" && test -z "${HAVE_POSIX_FALLOCATE_FALSE}"; then
  13250. as_fn_error "conditional \"HAVE_POSIX_FALLOCATE\" was never defined.
  13251. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  13252. fi
  13253. if test -z "${HAVE_ASCTIME_R_TRUE}" && test -z "${HAVE_ASCTIME_R_FALSE}"; then
  13254. as_fn_error "conditional \"HAVE_ASCTIME_R\" was never defined.
  13255. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  13256. fi
  13257. if test -z "${HAVE_ASCTIME_R_TRUE}" && test -z "${HAVE_ASCTIME_R_FALSE}"; then
  13258. as_fn_error "conditional \"HAVE_ASCTIME_R\" was never defined.
  13259. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  13260. fi
  13261. if test -z "${HAVE_BASENAME_TRUE}" && test -z "${HAVE_BASENAME_FALSE}"; then
  13262. as_fn_error "conditional \"HAVE_BASENAME\" was never defined.
  13263. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  13264. fi
  13265. if test -z "${HAVE_BASENAME_TRUE}" && test -z "${HAVE_BASENAME_FALSE}"; then
  13266. as_fn_error "conditional \"HAVE_BASENAME\" was never defined.
  13267. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  13268. fi
  13269. if test -z "${HAVE_GAI_STRERROR_TRUE}" && test -z "${HAVE_GAI_STRERROR_FALSE}"; then
  13270. as_fn_error "conditional \"HAVE_GAI_STRERROR\" was never defined.
  13271. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  13272. fi
  13273. if test -z "${HAVE_GAI_STRERROR_TRUE}" && test -z "${HAVE_GAI_STRERROR_FALSE}"; then
  13274. as_fn_error "conditional \"HAVE_GAI_STRERROR\" was never defined.
  13275. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  13276. fi
  13277. if test -z "${HAVE_GETADDRINFO_TRUE}" && test -z "${HAVE_GETADDRINFO_FALSE}"; then
  13278. as_fn_error "conditional \"HAVE_GETADDRINFO\" was never defined.
  13279. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  13280. fi
  13281. if test -z "${HAVE_GETADDRINFO_TRUE}" && test -z "${HAVE_GETADDRINFO_FALSE}"; then
  13282. as_fn_error "conditional \"HAVE_GETADDRINFO\" was never defined.
  13283. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  13284. fi
  13285. if test -z "${HAVE_GETTIMEOFDAY_TRUE}" && test -z "${HAVE_GETTIMEOFDAY_FALSE}"; then
  13286. as_fn_error "conditional \"HAVE_GETTIMEOFDAY\" was never defined.
  13287. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  13288. fi
  13289. if test -z "${HAVE_GETTIMEOFDAY_TRUE}" && test -z "${HAVE_GETTIMEOFDAY_FALSE}"; then
  13290. as_fn_error "conditional \"HAVE_GETTIMEOFDAY\" was never defined.
  13291. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  13292. fi
  13293. if test -z "${HAVE_INET_ATON_TRUE}" && test -z "${HAVE_INET_ATON_FALSE}"; then
  13294. as_fn_error "conditional \"HAVE_INET_ATON\" was never defined.
  13295. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  13296. fi
  13297. if test -z "${HAVE_INET_ATON_TRUE}" && test -z "${HAVE_INET_ATON_FALSE}"; then
  13298. as_fn_error "conditional \"HAVE_INET_ATON\" was never defined.
  13299. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  13300. fi
  13301. if test -z "${HAVE_LOCALTIME_R_TRUE}" && test -z "${HAVE_LOCALTIME_R_FALSE}"; then
  13302. as_fn_error "conditional \"HAVE_LOCALTIME_R\" was never defined.
  13303. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  13304. fi
  13305. if test -z "${HAVE_LOCALTIME_R_TRUE}" && test -z "${HAVE_LOCALTIME_R_FALSE}"; then
  13306. as_fn_error "conditional \"HAVE_LOCALTIME_R\" was never defined.
  13307. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  13308. fi
  13309. if test -z "${HAVE_STRPTIME_TRUE}" && test -z "${HAVE_STRPTIME_FALSE}"; then
  13310. as_fn_error "conditional \"HAVE_STRPTIME\" was never defined.
  13311. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  13312. fi
  13313. if test -z "${HAVE_STRPTIME_TRUE}" && test -z "${HAVE_STRPTIME_FALSE}"; then
  13314. as_fn_error "conditional \"HAVE_STRPTIME\" was never defined.
  13315. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  13316. fi
  13317. if test -z "${HAVE_TIMEGM_TRUE}" && test -z "${HAVE_TIMEGM_FALSE}"; then
  13318. as_fn_error "conditional \"HAVE_TIMEGM\" was never defined.
  13319. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  13320. fi
  13321. if test -z "${HAVE_TIMEGM_TRUE}" && test -z "${HAVE_TIMEGM_FALSE}"; then
  13322. as_fn_error "conditional \"HAVE_TIMEGM\" was never defined.
  13323. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  13324. fi
  13325. if test -z "${HAVE_DAEMON_TRUE}" && test -z "${HAVE_DAEMON_FALSE}"; then
  13326. as_fn_error "conditional \"HAVE_DAEMON\" was never defined.
  13327. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  13328. fi
  13329. if test -z "${HAVE_GETADDRINFO_TRUE}" && test -z "${HAVE_GETADDRINFO_FALSE}"; then
  13330. as_fn_error "conditional \"HAVE_GETADDRINFO\" was never defined.
  13331. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  13332. fi
  13333. if test -z "${HAVE_GAI_STRERROR_TRUE}" && test -z "${HAVE_GAI_STRERROR_FALSE}"; then
  13334. as_fn_error "conditional \"HAVE_GAI_STRERROR\" was never defined.
  13335. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  13336. fi
  13337. : ${CONFIG_STATUS=./config.status}
  13338. ac_write_fail=0
  13339. ac_clean_files_save=$ac_clean_files
  13340. ac_clean_files="$ac_clean_files $CONFIG_STATUS"
  13341. { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
  13342. $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
  13343. as_write_fail=0
  13344. cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
  13345. #! $SHELL
  13346. # Generated by $as_me.
  13347. # Run this file to recreate the current configuration.
  13348. # Compiler output produced by configure, useful for debugging
  13349. # configure, is in config.log if it exists.
  13350. debug=false
  13351. ac_cs_recheck=false
  13352. ac_cs_silent=false
  13353. SHELL=\${CONFIG_SHELL-$SHELL}
  13354. export SHELL
  13355. _ASEOF
  13356. cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
  13357. ## -------------------- ##
  13358. ## M4sh Initialization. ##
  13359. ## -------------------- ##
  13360. # Be more Bourne compatible
  13361. DUALCASE=1; export DUALCASE # for MKS sh
  13362. if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
  13363. emulate sh
  13364. NULLCMD=:
  13365. # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
  13366. # is contrary to our usage. Disable this feature.
  13367. alias -g '${1+"$@"}'='"$@"'
  13368. setopt NO_GLOB_SUBST
  13369. else
  13370. case `(set -o) 2>/dev/null` in #(
  13371. *posix*) :
  13372. set -o posix ;; #(
  13373. *) :
  13374. ;;
  13375. esac
  13376. fi
  13377. as_nl='
  13378. '
  13379. export as_nl
  13380. # Printing a long string crashes Solaris 7 /usr/bin/printf.
  13381. as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
  13382. as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
  13383. as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
  13384. # Prefer a ksh shell builtin over an external printf program on Solaris,
  13385. # but without wasting forks for bash or zsh.
  13386. if test -z "$BASH_VERSION$ZSH_VERSION" \
  13387. && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
  13388. as_echo='print -r --'
  13389. as_echo_n='print -rn --'
  13390. elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
  13391. as_echo='printf %s\n'
  13392. as_echo_n='printf %s'
  13393. else
  13394. if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
  13395. as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
  13396. as_echo_n='/usr/ucb/echo -n'
  13397. else
  13398. as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
  13399. as_echo_n_body='eval
  13400. arg=$1;
  13401. case $arg in #(
  13402. *"$as_nl"*)
  13403. expr "X$arg" : "X\\(.*\\)$as_nl";
  13404. arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
  13405. esac;
  13406. expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
  13407. '
  13408. export as_echo_n_body
  13409. as_echo_n='sh -c $as_echo_n_body as_echo'
  13410. fi
  13411. export as_echo_body
  13412. as_echo='sh -c $as_echo_body as_echo'
  13413. fi
  13414. # The user is always right.
  13415. if test "${PATH_SEPARATOR+set}" != set; then
  13416. PATH_SEPARATOR=:
  13417. (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
  13418. (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
  13419. PATH_SEPARATOR=';'
  13420. }
  13421. fi
  13422. # IFS
  13423. # We need space, tab and new line, in precisely that order. Quoting is
  13424. # there to prevent editors from complaining about space-tab.
  13425. # (If _AS_PATH_WALK were called with IFS unset, it would disable word
  13426. # splitting by setting IFS to empty value.)
  13427. IFS=" "" $as_nl"
  13428. # Find who we are. Look in the path if we contain no directory separator.
  13429. case $0 in #((
  13430. *[\\/]* ) as_myself=$0 ;;
  13431. *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  13432. for as_dir in $PATH
  13433. do
  13434. IFS=$as_save_IFS
  13435. test -z "$as_dir" && as_dir=.
  13436. test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
  13437. done
  13438. IFS=$as_save_IFS
  13439. ;;
  13440. esac
  13441. # We did not find ourselves, most probably we were run as `sh COMMAND'
  13442. # in which case we are not to be found in the path.
  13443. if test "x$as_myself" = x; then
  13444. as_myself=$0
  13445. fi
  13446. if test ! -f "$as_myself"; then
  13447. $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
  13448. exit 1
  13449. fi
  13450. # Unset variables that we do not need and which cause bugs (e.g. in
  13451. # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
  13452. # suppresses any "Segmentation fault" message there. '((' could
  13453. # trigger a bug in pdksh 5.2.14.
  13454. for as_var in BASH_ENV ENV MAIL MAILPATH
  13455. do eval test x\${$as_var+set} = xset \
  13456. && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
  13457. done
  13458. PS1='$ '
  13459. PS2='> '
  13460. PS4='+ '
  13461. # NLS nuisances.
  13462. LC_ALL=C
  13463. export LC_ALL
  13464. LANGUAGE=C
  13465. export LANGUAGE
  13466. # CDPATH.
  13467. (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
  13468. # as_fn_error ERROR [LINENO LOG_FD]
  13469. # ---------------------------------
  13470. # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
  13471. # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
  13472. # script with status $?, using 1 if that was 0.
  13473. as_fn_error ()
  13474. {
  13475. as_status=$?; test $as_status -eq 0 && as_status=1
  13476. if test "$3"; then
  13477. as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  13478. $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
  13479. fi
  13480. $as_echo "$as_me: error: $1" >&2
  13481. as_fn_exit $as_status
  13482. } # as_fn_error
  13483. # as_fn_set_status STATUS
  13484. # -----------------------
  13485. # Set $? to STATUS, without forking.
  13486. as_fn_set_status ()
  13487. {
  13488. return $1
  13489. } # as_fn_set_status
  13490. # as_fn_exit STATUS
  13491. # -----------------
  13492. # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
  13493. as_fn_exit ()
  13494. {
  13495. set +e
  13496. as_fn_set_status $1
  13497. exit $1
  13498. } # as_fn_exit
  13499. # as_fn_unset VAR
  13500. # ---------------
  13501. # Portably unset VAR.
  13502. as_fn_unset ()
  13503. {
  13504. { eval $1=; unset $1;}
  13505. }
  13506. as_unset=as_fn_unset
  13507. # as_fn_append VAR VALUE
  13508. # ----------------------
  13509. # Append the text in VALUE to the end of the definition contained in VAR. Take
  13510. # advantage of any shell optimizations that allow amortized linear growth over
  13511. # repeated appends, instead of the typical quadratic growth present in naive
  13512. # implementations.
  13513. if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
  13514. eval 'as_fn_append ()
  13515. {
  13516. eval $1+=\$2
  13517. }'
  13518. else
  13519. as_fn_append ()
  13520. {
  13521. eval $1=\$$1\$2
  13522. }
  13523. fi # as_fn_append
  13524. # as_fn_arith ARG...
  13525. # ------------------
  13526. # Perform arithmetic evaluation on the ARGs, and store the result in the
  13527. # global $as_val. Take advantage of shells that can avoid forks. The arguments
  13528. # must be portable across $(()) and expr.
  13529. if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
  13530. eval 'as_fn_arith ()
  13531. {
  13532. as_val=$(( $* ))
  13533. }'
  13534. else
  13535. as_fn_arith ()
  13536. {
  13537. as_val=`expr "$@" || test $? -eq 1`
  13538. }
  13539. fi # as_fn_arith
  13540. if expr a : '\(a\)' >/dev/null 2>&1 &&
  13541. test "X`expr 00001 : '.*\(...\)'`" = X001; then
  13542. as_expr=expr
  13543. else
  13544. as_expr=false
  13545. fi
  13546. if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
  13547. as_basename=basename
  13548. else
  13549. as_basename=false
  13550. fi
  13551. if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
  13552. as_dirname=dirname
  13553. else
  13554. as_dirname=false
  13555. fi
  13556. as_me=`$as_basename -- "$0" ||
  13557. $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
  13558. X"$0" : 'X\(//\)$' \| \
  13559. X"$0" : 'X\(/\)' \| . 2>/dev/null ||
  13560. $as_echo X/"$0" |
  13561. sed '/^.*\/\([^/][^/]*\)\/*$/{
  13562. s//\1/
  13563. q
  13564. }
  13565. /^X\/\(\/\/\)$/{
  13566. s//\1/
  13567. q
  13568. }
  13569. /^X\/\(\/\).*/{
  13570. s//\1/
  13571. q
  13572. }
  13573. s/.*/./; q'`
  13574. # Avoid depending upon Character Ranges.
  13575. as_cr_letters='abcdefghijklmnopqrstuvwxyz'
  13576. as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
  13577. as_cr_Letters=$as_cr_letters$as_cr_LETTERS
  13578. as_cr_digits='0123456789'
  13579. as_cr_alnum=$as_cr_Letters$as_cr_digits
  13580. ECHO_C= ECHO_N= ECHO_T=
  13581. case `echo -n x` in #(((((
  13582. -n*)
  13583. case `echo 'xy\c'` in
  13584. *c*) ECHO_T=' ';; # ECHO_T is single tab character.
  13585. xy) ECHO_C='\c';;
  13586. *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
  13587. ECHO_T=' ';;
  13588. esac;;
  13589. *)
  13590. ECHO_N='-n';;
  13591. esac
  13592. rm -f conf$$ conf$$.exe conf$$.file
  13593. if test -d conf$$.dir; then
  13594. rm -f conf$$.dir/conf$$.file
  13595. else
  13596. rm -f conf$$.dir
  13597. mkdir conf$$.dir 2>/dev/null
  13598. fi
  13599. if (echo >conf$$.file) 2>/dev/null; then
  13600. if ln -s conf$$.file conf$$ 2>/dev/null; then
  13601. as_ln_s='ln -s'
  13602. # ... but there are two gotchas:
  13603. # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
  13604. # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
  13605. # In both cases, we have to default to `cp -p'.
  13606. ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
  13607. as_ln_s='cp -p'
  13608. elif ln conf$$.file conf$$ 2>/dev/null; then
  13609. as_ln_s=ln
  13610. else
  13611. as_ln_s='cp -p'
  13612. fi
  13613. else
  13614. as_ln_s='cp -p'
  13615. fi
  13616. rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
  13617. rmdir conf$$.dir 2>/dev/null
  13618. # as_fn_mkdir_p
  13619. # -------------
  13620. # Create "$as_dir" as a directory, including parents if necessary.
  13621. as_fn_mkdir_p ()
  13622. {
  13623. case $as_dir in #(
  13624. -*) as_dir=./$as_dir;;
  13625. esac
  13626. test -d "$as_dir" || eval $as_mkdir_p || {
  13627. as_dirs=
  13628. while :; do
  13629. case $as_dir in #(
  13630. *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
  13631. *) as_qdir=$as_dir;;
  13632. esac
  13633. as_dirs="'$as_qdir' $as_dirs"
  13634. as_dir=`$as_dirname -- "$as_dir" ||
  13635. $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  13636. X"$as_dir" : 'X\(//\)[^/]' \| \
  13637. X"$as_dir" : 'X\(//\)$' \| \
  13638. X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
  13639. $as_echo X"$as_dir" |
  13640. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  13641. s//\1/
  13642. q
  13643. }
  13644. /^X\(\/\/\)[^/].*/{
  13645. s//\1/
  13646. q
  13647. }
  13648. /^X\(\/\/\)$/{
  13649. s//\1/
  13650. q
  13651. }
  13652. /^X\(\/\).*/{
  13653. s//\1/
  13654. q
  13655. }
  13656. s/.*/./; q'`
  13657. test -d "$as_dir" && break
  13658. done
  13659. test -z "$as_dirs" || eval "mkdir $as_dirs"
  13660. } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
  13661. } # as_fn_mkdir_p
  13662. if mkdir -p . 2>/dev/null; then
  13663. as_mkdir_p='mkdir -p "$as_dir"'
  13664. else
  13665. test -d ./-p && rmdir ./-p
  13666. as_mkdir_p=false
  13667. fi
  13668. if test -x / >/dev/null 2>&1; then
  13669. as_test_x='test -x'
  13670. else
  13671. if ls -dL / >/dev/null 2>&1; then
  13672. as_ls_L_option=L
  13673. else
  13674. as_ls_L_option=
  13675. fi
  13676. as_test_x='
  13677. eval sh -c '\''
  13678. if test -d "$1"; then
  13679. test -d "$1/.";
  13680. else
  13681. case $1 in #(
  13682. -*)set "./$1";;
  13683. esac;
  13684. case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
  13685. ???[sx]*):;;*)false;;esac;fi
  13686. '\'' sh
  13687. '
  13688. fi
  13689. as_executable_p=$as_test_x
  13690. # Sed expression to map a string onto a valid CPP name.
  13691. as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
  13692. # Sed expression to map a string onto a valid variable name.
  13693. as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
  13694. exec 6>&1
  13695. ## ----------------------------------- ##
  13696. ## Main body of $CONFIG_STATUS script. ##
  13697. ## ----------------------------------- ##
  13698. _ASEOF
  13699. test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
  13700. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  13701. # Save the log message, to keep $0 and so on meaningful, and to
  13702. # report actual input values of CONFIG_FILES etc. instead of their
  13703. # values after options handling.
  13704. ac_log="
  13705. This file was extended by aria2 $as_me 1.6.3, which was
  13706. generated by GNU Autoconf 2.64. Invocation command line was
  13707. CONFIG_FILES = $CONFIG_FILES
  13708. CONFIG_HEADERS = $CONFIG_HEADERS
  13709. CONFIG_LINKS = $CONFIG_LINKS
  13710. CONFIG_COMMANDS = $CONFIG_COMMANDS
  13711. $ $0 $@
  13712. on `(hostname || uname -n) 2>/dev/null | sed 1q`
  13713. "
  13714. _ACEOF
  13715. case $ac_config_files in *"
  13716. "*) set x $ac_config_files; shift; ac_config_files=$*;;
  13717. esac
  13718. case $ac_config_headers in *"
  13719. "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
  13720. esac
  13721. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  13722. # Files that config.status was made for.
  13723. config_files="$ac_config_files"
  13724. config_headers="$ac_config_headers"
  13725. config_commands="$ac_config_commands"
  13726. _ACEOF
  13727. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  13728. ac_cs_usage="\
  13729. \`$as_me' instantiates files and other configuration actions
  13730. from templates according to the current configuration. Unless the files
  13731. and actions are specified as TAGs, all are instantiated by default.
  13732. Usage: $0 [OPTION]... [TAG]...
  13733. -h, --help print this help, then exit
  13734. -V, --version print version number and configuration settings, then exit
  13735. -q, --quiet, --silent
  13736. do not print progress messages
  13737. -d, --debug don't remove temporary files
  13738. --recheck update $as_me by reconfiguring in the same conditions
  13739. --file=FILE[:TEMPLATE]
  13740. instantiate the configuration file FILE
  13741. --header=FILE[:TEMPLATE]
  13742. instantiate the configuration header FILE
  13743. Configuration files:
  13744. $config_files
  13745. Configuration headers:
  13746. $config_headers
  13747. Configuration commands:
  13748. $config_commands
  13749. Report bugs to <t-tujikawa@users.sourceforge.net>.
  13750. aria2 home page: <http://aria2.sourceforge.net/>."
  13751. _ACEOF
  13752. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  13753. ac_cs_version="\\
  13754. aria2 config.status 1.6.3
  13755. configured by $0, generated by GNU Autoconf 2.64,
  13756. with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
  13757. Copyright (C) 2009 Free Software Foundation, Inc.
  13758. This config.status script is free software; the Free Software Foundation
  13759. gives unlimited permission to copy, distribute and modify it."
  13760. ac_pwd='$ac_pwd'
  13761. srcdir='$srcdir'
  13762. INSTALL='$INSTALL'
  13763. MKDIR_P='$MKDIR_P'
  13764. AWK='$AWK'
  13765. test -n "\$AWK" || AWK=awk
  13766. _ACEOF
  13767. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  13768. # The default lists apply if the user does not specify any file.
  13769. ac_need_defaults=:
  13770. while test $# != 0
  13771. do
  13772. case $1 in
  13773. --*=*)
  13774. ac_option=`expr "X$1" : 'X\([^=]*\)='`
  13775. ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
  13776. ac_shift=:
  13777. ;;
  13778. *)
  13779. ac_option=$1
  13780. ac_optarg=$2
  13781. ac_shift=shift
  13782. ;;
  13783. esac
  13784. case $ac_option in
  13785. # Handling of the options.
  13786. -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
  13787. ac_cs_recheck=: ;;
  13788. --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
  13789. $as_echo "$ac_cs_version"; exit ;;
  13790. --debug | --debu | --deb | --de | --d | -d )
  13791. debug=: ;;
  13792. --file | --fil | --fi | --f )
  13793. $ac_shift
  13794. case $ac_optarg in
  13795. *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
  13796. esac
  13797. as_fn_append CONFIG_FILES " '$ac_optarg'"
  13798. ac_need_defaults=false;;
  13799. --header | --heade | --head | --hea )
  13800. $ac_shift
  13801. case $ac_optarg in
  13802. *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
  13803. esac
  13804. as_fn_append CONFIG_HEADERS " '$ac_optarg'"
  13805. ac_need_defaults=false;;
  13806. --he | --h)
  13807. # Conflict between --help and --header
  13808. as_fn_error "ambiguous option: \`$1'
  13809. Try \`$0 --help' for more information.";;
  13810. --help | --hel | -h )
  13811. $as_echo "$ac_cs_usage"; exit ;;
  13812. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  13813. | -silent | --silent | --silen | --sile | --sil | --si | --s)
  13814. ac_cs_silent=: ;;
  13815. # This is an error.
  13816. -*) as_fn_error "unrecognized option: \`$1'
  13817. Try \`$0 --help' for more information." ;;
  13818. *) as_fn_append ac_config_targets " $1"
  13819. ac_need_defaults=false ;;
  13820. esac
  13821. shift
  13822. done
  13823. ac_configure_extra_args=
  13824. if $ac_cs_silent; then
  13825. exec 6>/dev/null
  13826. ac_configure_extra_args="$ac_configure_extra_args --silent"
  13827. fi
  13828. _ACEOF
  13829. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  13830. if \$ac_cs_recheck; then
  13831. set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
  13832. shift
  13833. \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
  13834. CONFIG_SHELL='$SHELL'
  13835. export CONFIG_SHELL
  13836. exec "\$@"
  13837. fi
  13838. _ACEOF
  13839. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  13840. exec 5>>config.log
  13841. {
  13842. echo
  13843. sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
  13844. ## Running $as_me. ##
  13845. _ASBOX
  13846. $as_echo "$ac_log"
  13847. } >&5
  13848. _ACEOF
  13849. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  13850. #
  13851. # INIT-COMMANDS
  13852. #
  13853. AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
  13854. # Capture the value of obsolete ALL_LINGUAS because we need it to compute
  13855. # POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES, CATALOGS. But hide it
  13856. # from automake < 1.5.
  13857. eval 'OBSOLETE_ALL_LINGUAS''="$ALL_LINGUAS"'
  13858. # Capture the value of LINGUAS because we need it to compute CATALOGS.
  13859. LINGUAS="${LINGUAS-%UNSET%}"
  13860. _ACEOF
  13861. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  13862. # Handling of arguments.
  13863. for ac_config_target in $ac_config_targets
  13864. do
  13865. case $ac_config_target in
  13866. "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
  13867. "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
  13868. "po-directories") CONFIG_COMMANDS="$CONFIG_COMMANDS po-directories" ;;
  13869. "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
  13870. "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
  13871. "test/Makefile") CONFIG_FILES="$CONFIG_FILES test/Makefile" ;;
  13872. "po/Makefile.in") CONFIG_FILES="$CONFIG_FILES po/Makefile.in" ;;
  13873. "intl/Makefile") CONFIG_FILES="$CONFIG_FILES intl/Makefile" ;;
  13874. "lib/Makefile") CONFIG_FILES="$CONFIG_FILES lib/Makefile" ;;
  13875. "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
  13876. *) as_fn_error "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
  13877. esac
  13878. done
  13879. # If the user did not use the arguments to specify the items to instantiate,
  13880. # then the envvar interface is used. Set only those that are not.
  13881. # We use the long form for the default assignment because of an extremely
  13882. # bizarre bug on SunOS 4.1.3.
  13883. if $ac_need_defaults; then
  13884. test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
  13885. test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
  13886. test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
  13887. fi
  13888. # Have a temporary directory for convenience. Make it in the build tree
  13889. # simply because there is no reason against having it here, and in addition,
  13890. # creating and moving files from /tmp can sometimes cause problems.
  13891. # Hook for its removal unless debugging.
  13892. # Note that there is a small window in which the directory will not be cleaned:
  13893. # after its creation but before its name has been assigned to `$tmp'.
  13894. $debug ||
  13895. {
  13896. tmp=
  13897. trap 'exit_status=$?
  13898. { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
  13899. ' 0
  13900. trap 'as_fn_exit 1' 1 2 13 15
  13901. }
  13902. # Create a (secure) tmp directory for tmp files.
  13903. {
  13904. tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
  13905. test -n "$tmp" && test -d "$tmp"
  13906. } ||
  13907. {
  13908. tmp=./conf$$-$RANDOM
  13909. (umask 077 && mkdir "$tmp")
  13910. } || as_fn_error "cannot create a temporary directory in ." "$LINENO" 5
  13911. # Set up the scripts for CONFIG_FILES section.
  13912. # No need to generate them if there are no CONFIG_FILES.
  13913. # This happens for instance with `./config.status config.h'.
  13914. if test -n "$CONFIG_FILES"; then
  13915. ac_cr=`echo X | tr X '\015'`
  13916. # On cygwin, bash can eat \r inside `` if the user requested igncr.
  13917. # But we know of no other shell where ac_cr would be empty at this
  13918. # point, so we can use a bashism as a fallback.
  13919. if test "x$ac_cr" = x; then
  13920. eval ac_cr=\$\'\\r\'
  13921. fi
  13922. ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
  13923. if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
  13924. ac_cs_awk_cr='\r'
  13925. else
  13926. ac_cs_awk_cr=$ac_cr
  13927. fi
  13928. echo 'BEGIN {' >"$tmp/subs1.awk" &&
  13929. _ACEOF
  13930. {
  13931. echo "cat >conf$$subs.awk <<_ACEOF" &&
  13932. echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
  13933. echo "_ACEOF"
  13934. } >conf$$subs.sh ||
  13935. as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
  13936. ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
  13937. ac_delim='%!_!# '
  13938. for ac_last_try in false false false false false :; do
  13939. . ./conf$$subs.sh ||
  13940. as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
  13941. ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
  13942. if test $ac_delim_n = $ac_delim_num; then
  13943. break
  13944. elif $ac_last_try; then
  13945. as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
  13946. else
  13947. ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
  13948. fi
  13949. done
  13950. rm -f conf$$subs.sh
  13951. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  13952. cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
  13953. _ACEOF
  13954. sed -n '
  13955. h
  13956. s/^/S["/; s/!.*/"]=/
  13957. p
  13958. g
  13959. s/^[^!]*!//
  13960. :repl
  13961. t repl
  13962. s/'"$ac_delim"'$//
  13963. t delim
  13964. :nl
  13965. h
  13966. s/\(.\{148\}\).*/\1/
  13967. t more1
  13968. s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
  13969. p
  13970. n
  13971. b repl
  13972. :more1
  13973. s/["\\]/\\&/g; s/^/"/; s/$/"\\/
  13974. p
  13975. g
  13976. s/.\{148\}//
  13977. t nl
  13978. :delim
  13979. h
  13980. s/\(.\{148\}\).*/\1/
  13981. t more2
  13982. s/["\\]/\\&/g; s/^/"/; s/$/"/
  13983. p
  13984. b
  13985. :more2
  13986. s/["\\]/\\&/g; s/^/"/; s/$/"\\/
  13987. p
  13988. g
  13989. s/.\{148\}//
  13990. t delim
  13991. ' <conf$$subs.awk | sed '
  13992. /^[^""]/{
  13993. N
  13994. s/\n//
  13995. }
  13996. ' >>$CONFIG_STATUS || ac_write_fail=1
  13997. rm -f conf$$subs.awk
  13998. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  13999. _ACAWK
  14000. cat >>"\$tmp/subs1.awk" <<_ACAWK &&
  14001. for (key in S) S_is_set[key] = 1
  14002. FS = ""
  14003. }
  14004. {
  14005. line = $ 0
  14006. nfields = split(line, field, "@")
  14007. substed = 0
  14008. len = length(field[1])
  14009. for (i = 2; i < nfields; i++) {
  14010. key = field[i]
  14011. keylen = length(key)
  14012. if (S_is_set[key]) {
  14013. value = S[key]
  14014. line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
  14015. len += length(value) + length(field[++i])
  14016. substed = 1
  14017. } else
  14018. len += 1 + keylen
  14019. }
  14020. print line
  14021. }
  14022. _ACAWK
  14023. _ACEOF
  14024. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  14025. if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
  14026. sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
  14027. else
  14028. cat
  14029. fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
  14030. || as_fn_error "could not setup config files machinery" "$LINENO" 5
  14031. _ACEOF
  14032. # VPATH may cause trouble with some makes, so we remove $(srcdir),
  14033. # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
  14034. # trailing colons and then remove the whole line if VPATH becomes empty
  14035. # (actually we leave an empty line to preserve line numbers).
  14036. if test "x$srcdir" = x.; then
  14037. ac_vpsub='/^[ ]*VPATH[ ]*=/{
  14038. s/:*\$(srcdir):*/:/
  14039. s/:*\${srcdir}:*/:/
  14040. s/:*@srcdir@:*/:/
  14041. s/^\([^=]*=[ ]*\):*/\1/
  14042. s/:*$//
  14043. s/^[^=]*=[ ]*$//
  14044. }'
  14045. fi
  14046. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  14047. fi # test -n "$CONFIG_FILES"
  14048. # Set up the scripts for CONFIG_HEADERS section.
  14049. # No need to generate them if there are no CONFIG_HEADERS.
  14050. # This happens for instance with `./config.status Makefile'.
  14051. if test -n "$CONFIG_HEADERS"; then
  14052. cat >"$tmp/defines.awk" <<\_ACAWK ||
  14053. BEGIN {
  14054. _ACEOF
  14055. # Transform confdefs.h into an awk script `defines.awk', embedded as
  14056. # here-document in config.status, that substitutes the proper values into
  14057. # config.h.in to produce config.h.
  14058. # Create a delimiter string that does not exist in confdefs.h, to ease
  14059. # handling of long lines.
  14060. ac_delim='%!_!# '
  14061. for ac_last_try in false false :; do
  14062. ac_t=`sed -n "/$ac_delim/p" confdefs.h`
  14063. if test -z "$ac_t"; then
  14064. break
  14065. elif $ac_last_try; then
  14066. as_fn_error "could not make $CONFIG_HEADERS" "$LINENO" 5
  14067. else
  14068. ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
  14069. fi
  14070. done
  14071. # For the awk script, D is an array of macro values keyed by name,
  14072. # likewise P contains macro parameters if any. Preserve backslash
  14073. # newline sequences.
  14074. ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
  14075. sed -n '
  14076. s/.\{148\}/&'"$ac_delim"'/g
  14077. t rset
  14078. :rset
  14079. s/^[ ]*#[ ]*define[ ][ ]*/ /
  14080. t def
  14081. d
  14082. :def
  14083. s/\\$//
  14084. t bsnl
  14085. s/["\\]/\\&/g
  14086. s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
  14087. D["\1"]=" \3"/p
  14088. s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
  14089. d
  14090. :bsnl
  14091. s/["\\]/\\&/g
  14092. s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
  14093. D["\1"]=" \3\\\\\\n"\\/p
  14094. t cont
  14095. s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
  14096. t cont
  14097. d
  14098. :cont
  14099. n
  14100. s/.\{148\}/&'"$ac_delim"'/g
  14101. t clear
  14102. :clear
  14103. s/\\$//
  14104. t bsnlc
  14105. s/["\\]/\\&/g; s/^/"/; s/$/"/p
  14106. d
  14107. :bsnlc
  14108. s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
  14109. b cont
  14110. ' <confdefs.h | sed '
  14111. s/'"$ac_delim"'/"\\\
  14112. "/g' >>$CONFIG_STATUS || ac_write_fail=1
  14113. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  14114. for (key in D) D_is_set[key] = 1
  14115. FS = ""
  14116. }
  14117. /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
  14118. line = \$ 0
  14119. split(line, arg, " ")
  14120. if (arg[1] == "#") {
  14121. defundef = arg[2]
  14122. mac1 = arg[3]
  14123. } else {
  14124. defundef = substr(arg[1], 2)
  14125. mac1 = arg[2]
  14126. }
  14127. split(mac1, mac2, "(") #)
  14128. macro = mac2[1]
  14129. prefix = substr(line, 1, index(line, defundef) - 1)
  14130. if (D_is_set[macro]) {
  14131. # Preserve the white space surrounding the "#".
  14132. print prefix "define", macro P[macro] D[macro]
  14133. next
  14134. } else {
  14135. # Replace #undef with comments. This is necessary, for example,
  14136. # in the case of _POSIX_SOURCE, which is predefined and required
  14137. # on some systems where configure will not decide to define it.
  14138. if (defundef == "undef") {
  14139. print "/*", prefix defundef, macro, "*/"
  14140. next
  14141. }
  14142. }
  14143. }
  14144. { print }
  14145. _ACAWK
  14146. _ACEOF
  14147. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  14148. as_fn_error "could not setup config headers machinery" "$LINENO" 5
  14149. fi # test -n "$CONFIG_HEADERS"
  14150. eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
  14151. shift
  14152. for ac_tag
  14153. do
  14154. case $ac_tag in
  14155. :[FHLC]) ac_mode=$ac_tag; continue;;
  14156. esac
  14157. case $ac_mode$ac_tag in
  14158. :[FHL]*:*);;
  14159. :L* | :C*:*) as_fn_error "invalid tag \`$ac_tag'" "$LINENO" 5;;
  14160. :[FH]-) ac_tag=-:-;;
  14161. :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
  14162. esac
  14163. ac_save_IFS=$IFS
  14164. IFS=:
  14165. set x $ac_tag
  14166. IFS=$ac_save_IFS
  14167. shift
  14168. ac_file=$1
  14169. shift
  14170. case $ac_mode in
  14171. :L) ac_source=$1;;
  14172. :[FH])
  14173. ac_file_inputs=
  14174. for ac_f
  14175. do
  14176. case $ac_f in
  14177. -) ac_f="$tmp/stdin";;
  14178. *) # Look for the file first in the build tree, then in the source tree
  14179. # (if the path is not absolute). The absolute path cannot be DOS-style,
  14180. # because $ac_f cannot contain `:'.
  14181. test -f "$ac_f" ||
  14182. case $ac_f in
  14183. [\\/$]*) false;;
  14184. *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
  14185. esac ||
  14186. as_fn_error "cannot find input file: \`$ac_f'" "$LINENO" 5;;
  14187. esac
  14188. case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
  14189. as_fn_append ac_file_inputs " '$ac_f'"
  14190. done
  14191. # Let's still pretend it is `configure' which instantiates (i.e., don't
  14192. # use $as_me), people would be surprised to read:
  14193. # /* config.h. Generated by config.status. */
  14194. configure_input='Generated from '`
  14195. $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
  14196. `' by configure.'
  14197. if test x"$ac_file" != x-; then
  14198. configure_input="$ac_file. $configure_input"
  14199. { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
  14200. $as_echo "$as_me: creating $ac_file" >&6;}
  14201. fi
  14202. # Neutralize special characters interpreted by sed in replacement strings.
  14203. case $configure_input in #(
  14204. *\&* | *\|* | *\\* )
  14205. ac_sed_conf_input=`$as_echo "$configure_input" |
  14206. sed 's/[\\\\&|]/\\\\&/g'`;; #(
  14207. *) ac_sed_conf_input=$configure_input;;
  14208. esac
  14209. case $ac_tag in
  14210. *:-:* | *:-) cat >"$tmp/stdin" \
  14211. || as_fn_error "could not create $ac_file" "$LINENO" 5 ;;
  14212. esac
  14213. ;;
  14214. esac
  14215. ac_dir=`$as_dirname -- "$ac_file" ||
  14216. $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  14217. X"$ac_file" : 'X\(//\)[^/]' \| \
  14218. X"$ac_file" : 'X\(//\)$' \| \
  14219. X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
  14220. $as_echo X"$ac_file" |
  14221. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  14222. s//\1/
  14223. q
  14224. }
  14225. /^X\(\/\/\)[^/].*/{
  14226. s//\1/
  14227. q
  14228. }
  14229. /^X\(\/\/\)$/{
  14230. s//\1/
  14231. q
  14232. }
  14233. /^X\(\/\).*/{
  14234. s//\1/
  14235. q
  14236. }
  14237. s/.*/./; q'`
  14238. as_dir="$ac_dir"; as_fn_mkdir_p
  14239. ac_builddir=.
  14240. case "$ac_dir" in
  14241. .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
  14242. *)
  14243. ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
  14244. # A ".." for each directory in $ac_dir_suffix.
  14245. ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
  14246. case $ac_top_builddir_sub in
  14247. "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
  14248. *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
  14249. esac ;;
  14250. esac
  14251. ac_abs_top_builddir=$ac_pwd
  14252. ac_abs_builddir=$ac_pwd$ac_dir_suffix
  14253. # for backward compatibility:
  14254. ac_top_builddir=$ac_top_build_prefix
  14255. case $srcdir in
  14256. .) # We are building in place.
  14257. ac_srcdir=.
  14258. ac_top_srcdir=$ac_top_builddir_sub
  14259. ac_abs_top_srcdir=$ac_pwd ;;
  14260. [\\/]* | ?:[\\/]* ) # Absolute name.
  14261. ac_srcdir=$srcdir$ac_dir_suffix;
  14262. ac_top_srcdir=$srcdir
  14263. ac_abs_top_srcdir=$srcdir ;;
  14264. *) # Relative name.
  14265. ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
  14266. ac_top_srcdir=$ac_top_build_prefix$srcdir
  14267. ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
  14268. esac
  14269. ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
  14270. case $ac_mode in
  14271. :F)
  14272. #
  14273. # CONFIG_FILE
  14274. #
  14275. case $INSTALL in
  14276. [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
  14277. *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
  14278. esac
  14279. ac_MKDIR_P=$MKDIR_P
  14280. case $MKDIR_P in
  14281. [\\/$]* | ?:[\\/]* ) ;;
  14282. */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
  14283. esac
  14284. _ACEOF
  14285. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  14286. # If the template does not know about datarootdir, expand it.
  14287. # FIXME: This hack should be removed a few years after 2.60.
  14288. ac_datarootdir_hack=; ac_datarootdir_seen=
  14289. ac_sed_dataroot='
  14290. /datarootdir/ {
  14291. p
  14292. q
  14293. }
  14294. /@datadir@/p
  14295. /@docdir@/p
  14296. /@infodir@/p
  14297. /@localedir@/p
  14298. /@mandir@/p'
  14299. case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
  14300. *datarootdir*) ac_datarootdir_seen=yes;;
  14301. *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
  14302. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
  14303. $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
  14304. _ACEOF
  14305. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  14306. ac_datarootdir_hack='
  14307. s&@datadir@&$datadir&g
  14308. s&@docdir@&$docdir&g
  14309. s&@infodir@&$infodir&g
  14310. s&@localedir@&$localedir&g
  14311. s&@mandir@&$mandir&g
  14312. s&\\\${datarootdir}&$datarootdir&g' ;;
  14313. esac
  14314. _ACEOF
  14315. # Neutralize VPATH when `$srcdir' = `.'.
  14316. # Shell code in configure.ac might set extrasub.
  14317. # FIXME: do we really want to maintain this feature?
  14318. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  14319. ac_sed_extra="$ac_vpsub
  14320. $extrasub
  14321. _ACEOF
  14322. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  14323. :t
  14324. /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
  14325. s|@configure_input@|$ac_sed_conf_input|;t t
  14326. s&@top_builddir@&$ac_top_builddir_sub&;t t
  14327. s&@top_build_prefix@&$ac_top_build_prefix&;t t
  14328. s&@srcdir@&$ac_srcdir&;t t
  14329. s&@abs_srcdir@&$ac_abs_srcdir&;t t
  14330. s&@top_srcdir@&$ac_top_srcdir&;t t
  14331. s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
  14332. s&@builddir@&$ac_builddir&;t t
  14333. s&@abs_builddir@&$ac_abs_builddir&;t t
  14334. s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
  14335. s&@INSTALL@&$ac_INSTALL&;t t
  14336. s&@MKDIR_P@&$ac_MKDIR_P&;t t
  14337. $ac_datarootdir_hack
  14338. "
  14339. eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
  14340. || as_fn_error "could not create $ac_file" "$LINENO" 5
  14341. test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
  14342. { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
  14343. { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
  14344. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
  14345. which seems to be undefined. Please make sure it is defined." >&5
  14346. $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
  14347. which seems to be undefined. Please make sure it is defined." >&2;}
  14348. rm -f "$tmp/stdin"
  14349. case $ac_file in
  14350. -) cat "$tmp/out" && rm -f "$tmp/out";;
  14351. *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
  14352. esac \
  14353. || as_fn_error "could not create $ac_file" "$LINENO" 5
  14354. ;;
  14355. :H)
  14356. #
  14357. # CONFIG_HEADER
  14358. #
  14359. if test x"$ac_file" != x-; then
  14360. {
  14361. $as_echo "/* $configure_input */" \
  14362. && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
  14363. } >"$tmp/config.h" \
  14364. || as_fn_error "could not create $ac_file" "$LINENO" 5
  14365. if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
  14366. { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
  14367. $as_echo "$as_me: $ac_file is unchanged" >&6;}
  14368. else
  14369. rm -f "$ac_file"
  14370. mv "$tmp/config.h" "$ac_file" \
  14371. || as_fn_error "could not create $ac_file" "$LINENO" 5
  14372. fi
  14373. else
  14374. $as_echo "/* $configure_input */" \
  14375. && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
  14376. || as_fn_error "could not create -" "$LINENO" 5
  14377. fi
  14378. # Compute "$ac_file"'s index in $config_headers.
  14379. _am_arg="$ac_file"
  14380. _am_stamp_count=1
  14381. for _am_header in $config_headers :; do
  14382. case $_am_header in
  14383. $_am_arg | $_am_arg:* )
  14384. break ;;
  14385. * )
  14386. _am_stamp_count=`expr $_am_stamp_count + 1` ;;
  14387. esac
  14388. done
  14389. echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
  14390. $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  14391. X"$_am_arg" : 'X\(//\)[^/]' \| \
  14392. X"$_am_arg" : 'X\(//\)$' \| \
  14393. X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
  14394. $as_echo X"$_am_arg" |
  14395. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  14396. s//\1/
  14397. q
  14398. }
  14399. /^X\(\/\/\)[^/].*/{
  14400. s//\1/
  14401. q
  14402. }
  14403. /^X\(\/\/\)$/{
  14404. s//\1/
  14405. q
  14406. }
  14407. /^X\(\/\).*/{
  14408. s//\1/
  14409. q
  14410. }
  14411. s/.*/./; q'`/stamp-h$_am_stamp_count
  14412. ;;
  14413. :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
  14414. $as_echo "$as_me: executing $ac_file commands" >&6;}
  14415. ;;
  14416. esac
  14417. case $ac_file$ac_mode in
  14418. "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
  14419. # Autoconf 2.62 quotes --file arguments for eval, but not when files
  14420. # are listed without --file. Let's play safe and only enable the eval
  14421. # if we detect the quoting.
  14422. case $CONFIG_FILES in
  14423. *\'*) eval set x "$CONFIG_FILES" ;;
  14424. *) set x $CONFIG_FILES ;;
  14425. esac
  14426. shift
  14427. for mf
  14428. do
  14429. # Strip MF so we end up with the name of the file.
  14430. mf=`echo "$mf" | sed -e 's/:.*$//'`
  14431. # Check whether this is an Automake generated Makefile or not.
  14432. # We used to match only the files named `Makefile.in', but
  14433. # some people rename them; so instead we look at the file content.
  14434. # Grep'ing the first line is not enough: some people post-process
  14435. # each Makefile.in and add a new line on top of each file to say so.
  14436. # Grep'ing the whole file is not good either: AIX grep has a line
  14437. # limit of 2048, but all sed's we know have understand at least 4000.
  14438. if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
  14439. dirpart=`$as_dirname -- "$mf" ||
  14440. $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  14441. X"$mf" : 'X\(//\)[^/]' \| \
  14442. X"$mf" : 'X\(//\)$' \| \
  14443. X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
  14444. $as_echo X"$mf" |
  14445. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  14446. s//\1/
  14447. q
  14448. }
  14449. /^X\(\/\/\)[^/].*/{
  14450. s//\1/
  14451. q
  14452. }
  14453. /^X\(\/\/\)$/{
  14454. s//\1/
  14455. q
  14456. }
  14457. /^X\(\/\).*/{
  14458. s//\1/
  14459. q
  14460. }
  14461. s/.*/./; q'`
  14462. else
  14463. continue
  14464. fi
  14465. # Extract the definition of DEPDIR, am__include, and am__quote
  14466. # from the Makefile without running `make'.
  14467. DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
  14468. test -z "$DEPDIR" && continue
  14469. am__include=`sed -n 's/^am__include = //p' < "$mf"`
  14470. test -z "am__include" && continue
  14471. am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
  14472. # When using ansi2knr, U may be empty or an underscore; expand it
  14473. U=`sed -n 's/^U = //p' < "$mf"`
  14474. # Find all dependency output files, they are included files with
  14475. # $(DEPDIR) in their names. We invoke sed twice because it is the
  14476. # simplest approach to changing $(DEPDIR) to its actual value in the
  14477. # expansion.
  14478. for file in `sed -n "
  14479. s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
  14480. sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
  14481. # Make sure the directory exists.
  14482. test -f "$dirpart/$file" && continue
  14483. fdir=`$as_dirname -- "$file" ||
  14484. $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  14485. X"$file" : 'X\(//\)[^/]' \| \
  14486. X"$file" : 'X\(//\)$' \| \
  14487. X"$file" : 'X\(/\)' \| . 2>/dev/null ||
  14488. $as_echo X"$file" |
  14489. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  14490. s//\1/
  14491. q
  14492. }
  14493. /^X\(\/\/\)[^/].*/{
  14494. s//\1/
  14495. q
  14496. }
  14497. /^X\(\/\/\)$/{
  14498. s//\1/
  14499. q
  14500. }
  14501. /^X\(\/\).*/{
  14502. s//\1/
  14503. q
  14504. }
  14505. s/.*/./; q'`
  14506. as_dir=$dirpart/$fdir; as_fn_mkdir_p
  14507. # echo "creating $dirpart/$file"
  14508. echo '# dummy' > "$dirpart/$file"
  14509. done
  14510. done
  14511. }
  14512. ;;
  14513. "po-directories":C)
  14514. for ac_file in $CONFIG_FILES; do
  14515. # Support "outfile[:infile[:infile...]]"
  14516. case "$ac_file" in
  14517. *:*) ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
  14518. esac
  14519. # PO directories have a Makefile.in generated from Makefile.in.in.
  14520. case "$ac_file" in */Makefile.in)
  14521. # Adjust a relative srcdir.
  14522. ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'`
  14523. ac_dir_suffix="/`echo "$ac_dir"|sed 's%^\./%%'`"
  14524. ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'`
  14525. # In autoconf-2.13 it is called $ac_given_srcdir.
  14526. # In autoconf-2.50 it is called $srcdir.
  14527. test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir"
  14528. case "$ac_given_srcdir" in
  14529. .) top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;;
  14530. /*) top_srcdir="$ac_given_srcdir" ;;
  14531. *) top_srcdir="$ac_dots$ac_given_srcdir" ;;
  14532. esac
  14533. # Treat a directory as a PO directory if and only if it has a
  14534. # POTFILES.in file. This allows packages to have multiple PO
  14535. # directories under different names or in different locations.
  14536. if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then
  14537. rm -f "$ac_dir/POTFILES"
  14538. test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES"
  14539. cat "$ac_given_srcdir/$ac_dir/POTFILES.in" | sed -e "/^#/d" -e "/^[ ]*\$/d" -e "s,.*, $top_srcdir/& \\\\," | sed -e "\$s/\(.*\) \\\\/\1/" > "$ac_dir/POTFILES"
  14540. POMAKEFILEDEPS="POTFILES.in"
  14541. # ALL_LINGUAS, POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES depend
  14542. # on $ac_dir but don't depend on user-specified configuration
  14543. # parameters.
  14544. if test -f "$ac_given_srcdir/$ac_dir/LINGUAS"; then
  14545. # The LINGUAS file contains the set of available languages.
  14546. if test -n "$OBSOLETE_ALL_LINGUAS"; then
  14547. test -n "$as_me" && echo "$as_me: setting ALL_LINGUAS in configure.in is obsolete" || echo "setting ALL_LINGUAS in configure.in is obsolete"
  14548. fi
  14549. ALL_LINGUAS_=`sed -e "/^#/d" -e "s/#.*//" "$ac_given_srcdir/$ac_dir/LINGUAS"`
  14550. # Hide the ALL_LINGUAS assigment from automake < 1.5.
  14551. eval 'ALL_LINGUAS''=$ALL_LINGUAS_'
  14552. POMAKEFILEDEPS="$POMAKEFILEDEPS LINGUAS"
  14553. else
  14554. # The set of available languages was given in configure.in.
  14555. # Hide the ALL_LINGUAS assigment from automake < 1.5.
  14556. eval 'ALL_LINGUAS''=$OBSOLETE_ALL_LINGUAS'
  14557. fi
  14558. # Compute POFILES
  14559. # as $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).po)
  14560. # Compute UPDATEPOFILES
  14561. # as $(foreach lang, $(ALL_LINGUAS), $(lang).po-update)
  14562. # Compute DUMMYPOFILES
  14563. # as $(foreach lang, $(ALL_LINGUAS), $(lang).nop)
  14564. # Compute GMOFILES
  14565. # as $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).gmo)
  14566. case "$ac_given_srcdir" in
  14567. .) srcdirpre= ;;
  14568. *) srcdirpre='$(srcdir)/' ;;
  14569. esac
  14570. POFILES=
  14571. UPDATEPOFILES=
  14572. DUMMYPOFILES=
  14573. GMOFILES=
  14574. for lang in $ALL_LINGUAS; do
  14575. POFILES="$POFILES $srcdirpre$lang.po"
  14576. UPDATEPOFILES="$UPDATEPOFILES $lang.po-update"
  14577. DUMMYPOFILES="$DUMMYPOFILES $lang.nop"
  14578. GMOFILES="$GMOFILES $srcdirpre$lang.gmo"
  14579. done
  14580. # CATALOGS depends on both $ac_dir and the user's LINGUAS
  14581. # environment variable.
  14582. INST_LINGUAS=
  14583. if test -n "$ALL_LINGUAS"; then
  14584. for presentlang in $ALL_LINGUAS; do
  14585. useit=no
  14586. if test "%UNSET%" != "$LINGUAS"; then
  14587. desiredlanguages="$LINGUAS"
  14588. else
  14589. desiredlanguages="$ALL_LINGUAS"
  14590. fi
  14591. for desiredlang in $desiredlanguages; do
  14592. # Use the presentlang catalog if desiredlang is
  14593. # a. equal to presentlang, or
  14594. # b. a variant of presentlang (because in this case,
  14595. # presentlang can be used as a fallback for messages
  14596. # which are not translated in the desiredlang catalog).
  14597. case "$desiredlang" in
  14598. "$presentlang"*) useit=yes;;
  14599. esac
  14600. done
  14601. if test $useit = yes; then
  14602. INST_LINGUAS="$INST_LINGUAS $presentlang"
  14603. fi
  14604. done
  14605. fi
  14606. CATALOGS=
  14607. if test -n "$INST_LINGUAS"; then
  14608. for lang in $INST_LINGUAS; do
  14609. CATALOGS="$CATALOGS $lang.gmo"
  14610. done
  14611. fi
  14612. test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" || echo "creating $ac_dir/Makefile"
  14613. 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"
  14614. for f in "$ac_given_srcdir/$ac_dir"/Rules-*; do
  14615. if test -f "$f"; then
  14616. case "$f" in
  14617. *.orig | *.bak | *~) ;;
  14618. *) cat "$f" >> "$ac_dir/Makefile" ;;
  14619. esac
  14620. fi
  14621. done
  14622. fi
  14623. ;;
  14624. esac
  14625. done ;;
  14626. esac
  14627. done # for ac_tag
  14628. as_fn_exit 0
  14629. _ACEOF
  14630. ac_clean_files=$ac_clean_files_save
  14631. test $ac_write_fail = 0 ||
  14632. as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5
  14633. # configure is writing to config.log, and then calls config.status.
  14634. # config.status does its own redirection, appending to config.log.
  14635. # Unfortunately, on DOS this fails, as config.log is still kept open
  14636. # by configure, so config.status won't be able to write to it; its
  14637. # output is simply discarded. So we exec the FD to /dev/null,
  14638. # effectively closing config.log, so it can be properly (re)opened and
  14639. # appended to by config.status. When coming back to configure, we
  14640. # need to make the FD available again.
  14641. if test "$no_create" != yes; then
  14642. ac_cs_success=:
  14643. ac_config_status_args=
  14644. test "$silent" = yes &&
  14645. ac_config_status_args="$ac_config_status_args --quiet"
  14646. exec 5>/dev/null
  14647. $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
  14648. exec 5>>config.log
  14649. # Use ||, not &&, to avoid exiting from the if with $? = 1, which
  14650. # would make configure fail if this is the last instruction.
  14651. $ac_cs_success || as_fn_exit $?
  14652. fi
  14653. if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
  14654. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
  14655. $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
  14656. fi
  14657. echo " "
  14658. echo "Build: $build"
  14659. echo "Target: $target"
  14660. echo "Install prefix: $prefix"
  14661. echo "CFLAGS: $CFLAGS"
  14662. echo "CPPFLAGS: $CPPFLAGS"
  14663. echo "LDFLAGS: $LDFLAGS"
  14664. echo "LIBS: $LIBS"
  14665. echo "SQLite3: $have_sqlite3"
  14666. echo "GnuTLS: $have_libgnutls"
  14667. echo "OpenSSL: $have_openssl"
  14668. echo "CA Bundle: $ca_bundle"
  14669. echo "LibXML2: $have_libxml2"
  14670. echo "LibExpat: $have_libexpat"
  14671. echo "LibCares: $have_libcares"
  14672. echo "Libz: $have_libz"
  14673. echo "Epoll: $have_epoll"
  14674. echo "Bittorrent: $enable_bittorrent"
  14675. echo "Metalink: $enable_metalink"
  14676. echo "XML-RPC: $enable_xml_rpc"