configure 1.3 MB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155815591560156115621563156415651566156715681569157015711572157315741575157615771578157915801581158215831584158515861587158815891590159115921593159415951596159715981599160016011602160316041605160616071608160916101611161216131614161516161617161816191620162116221623162416251626162716281629163016311632163316341635163616371638163916401641164216431644164516461647164816491650165116521653165416551656165716581659166016611662166316641665166616671668166916701671167216731674167516761677167816791680168116821683168416851686168716881689169016911692169316941695169616971698169917001701170217031704170517061707170817091710171117121713171417151716171717181719172017211722172317241725172617271728172917301731173217331734173517361737173817391740174117421743174417451746174717481749175017511752175317541755175617571758175917601761176217631764176517661767176817691770177117721773177417751776177717781779178017811782178317841785178617871788178917901791179217931794179517961797179817991800180118021803180418051806180718081809181018111812181318141815181618171818181918201821182218231824182518261827182818291830183118321833183418351836183718381839184018411842184318441845184618471848184918501851185218531854185518561857185818591860186118621863186418651866186718681869187018711872187318741875187618771878187918801881188218831884188518861887188818891890189118921893189418951896189718981899190019011902190319041905190619071908190919101911191219131914191519161917191819191920192119221923192419251926192719281929193019311932193319341935193619371938193919401941194219431944194519461947194819491950195119521953195419551956195719581959196019611962196319641965196619671968196919701971197219731974197519761977197819791980198119821983198419851986198719881989199019911992199319941995199619971998199920002001200220032004200520062007200820092010201120122013201420152016201720182019202020212022202320242025202620272028202920302031203220332034203520362037203820392040204120422043204420452046204720482049205020512052205320542055205620572058205920602061206220632064206520662067206820692070207120722073207420752076207720782079208020812082208320842085208620872088208920902091209220932094209520962097209820992100210121022103210421052106210721082109211021112112211321142115211621172118211921202121212221232124212521262127212821292130213121322133213421352136213721382139214021412142214321442145214621472148214921502151215221532154215521562157215821592160216121622163216421652166216721682169217021712172217321742175217621772178217921802181218221832184218521862187218821892190219121922193219421952196219721982199220022012202220322042205220622072208220922102211221222132214221522162217221822192220222122222223222422252226222722282229223022312232223322342235223622372238223922402241224222432244224522462247224822492250225122522253225422552256225722582259226022612262226322642265226622672268226922702271227222732274227522762277227822792280228122822283228422852286228722882289229022912292229322942295229622972298229923002301230223032304230523062307230823092310231123122313231423152316231723182319232023212322232323242325232623272328232923302331233223332334233523362337233823392340234123422343234423452346234723482349235023512352235323542355235623572358235923602361236223632364236523662367236823692370237123722373237423752376237723782379238023812382238323842385238623872388238923902391239223932394239523962397239823992400240124022403240424052406240724082409241024112412241324142415241624172418241924202421242224232424242524262427242824292430243124322433243424352436243724382439244024412442244324442445244624472448244924502451245224532454245524562457245824592460246124622463246424652466246724682469247024712472247324742475247624772478247924802481248224832484248524862487248824892490249124922493249424952496249724982499250025012502250325042505250625072508250925102511251225132514251525162517251825192520252125222523252425252526252725282529253025312532253325342535253625372538253925402541254225432544254525462547254825492550255125522553255425552556255725582559256025612562256325642565256625672568256925702571257225732574257525762577257825792580258125822583258425852586258725882589259025912592259325942595259625972598259926002601260226032604260526062607260826092610261126122613261426152616261726182619262026212622262326242625262626272628262926302631263226332634263526362637263826392640264126422643264426452646264726482649265026512652265326542655265626572658265926602661266226632664266526662667266826692670267126722673267426752676267726782679268026812682268326842685268626872688268926902691269226932694269526962697269826992700270127022703270427052706270727082709271027112712271327142715271627172718271927202721272227232724272527262727272827292730273127322733273427352736273727382739274027412742274327442745274627472748274927502751275227532754275527562757275827592760276127622763276427652766276727682769277027712772277327742775277627772778277927802781278227832784278527862787278827892790279127922793279427952796279727982799280028012802280328042805280628072808280928102811281228132814281528162817281828192820282128222823282428252826282728282829283028312832283328342835283628372838283928402841284228432844284528462847284828492850285128522853285428552856285728582859286028612862286328642865286628672868286928702871287228732874287528762877287828792880288128822883288428852886288728882889289028912892289328942895289628972898289929002901290229032904290529062907290829092910291129122913291429152916291729182919292029212922292329242925292629272928292929302931293229332934293529362937293829392940294129422943294429452946294729482949295029512952295329542955295629572958295929602961296229632964296529662967296829692970297129722973297429752976297729782979298029812982298329842985298629872988298929902991299229932994299529962997299829993000300130023003300430053006300730083009301030113012301330143015301630173018301930203021302230233024302530263027302830293030303130323033303430353036303730383039304030413042304330443045304630473048304930503051305230533054305530563057305830593060306130623063306430653066306730683069307030713072307330743075307630773078307930803081308230833084308530863087308830893090309130923093309430953096309730983099310031013102310331043105310631073108310931103111311231133114311531163117311831193120312131223123312431253126312731283129313031313132313331343135313631373138313931403141314231433144314531463147314831493150315131523153315431553156315731583159316031613162316331643165316631673168316931703171317231733174317531763177317831793180318131823183318431853186318731883189319031913192319331943195319631973198319932003201320232033204320532063207320832093210321132123213321432153216321732183219322032213222322332243225322632273228322932303231323232333234323532363237323832393240324132423243324432453246324732483249325032513252325332543255325632573258325932603261326232633264326532663267326832693270327132723273327432753276327732783279328032813282328332843285328632873288328932903291329232933294329532963297329832993300330133023303330433053306330733083309331033113312331333143315331633173318331933203321332233233324332533263327332833293330333133323333333433353336333733383339334033413342334333443345334633473348334933503351335233533354335533563357335833593360336133623363336433653366336733683369337033713372337333743375337633773378337933803381338233833384338533863387338833893390339133923393339433953396339733983399340034013402340334043405340634073408340934103411341234133414341534163417341834193420342134223423342434253426342734283429343034313432343334343435343634373438343934403441344234433444344534463447344834493450345134523453345434553456345734583459346034613462346334643465346634673468346934703471347234733474347534763477347834793480348134823483348434853486348734883489349034913492349334943495349634973498349935003501350235033504350535063507350835093510351135123513351435153516351735183519352035213522352335243525352635273528352935303531353235333534353535363537353835393540354135423543354435453546354735483549355035513552355335543555355635573558355935603561356235633564356535663567356835693570357135723573357435753576357735783579358035813582358335843585358635873588358935903591359235933594359535963597359835993600360136023603360436053606360736083609361036113612361336143615361636173618361936203621362236233624362536263627362836293630363136323633363436353636363736383639364036413642364336443645364636473648364936503651365236533654365536563657365836593660366136623663366436653666366736683669367036713672367336743675367636773678367936803681368236833684368536863687368836893690369136923693369436953696369736983699370037013702370337043705370637073708370937103711371237133714371537163717371837193720372137223723372437253726372737283729373037313732373337343735373637373738373937403741374237433744374537463747374837493750375137523753375437553756375737583759376037613762376337643765376637673768376937703771377237733774377537763777377837793780378137823783378437853786378737883789379037913792379337943795379637973798379938003801380238033804380538063807380838093810381138123813381438153816381738183819382038213822382338243825382638273828382938303831383238333834383538363837383838393840384138423843384438453846384738483849385038513852385338543855385638573858385938603861386238633864386538663867386838693870387138723873387438753876387738783879388038813882388338843885388638873888388938903891389238933894389538963897389838993900390139023903390439053906390739083909391039113912391339143915391639173918391939203921392239233924392539263927392839293930393139323933393439353936393739383939394039413942394339443945394639473948394939503951395239533954395539563957395839593960396139623963396439653966396739683969397039713972397339743975397639773978397939803981398239833984398539863987398839893990399139923993399439953996399739983999400040014002400340044005400640074008400940104011401240134014401540164017401840194020402140224023402440254026402740284029403040314032403340344035403640374038403940404041404240434044404540464047404840494050405140524053405440554056405740584059406040614062406340644065406640674068406940704071407240734074407540764077407840794080408140824083408440854086408740884089409040914092409340944095409640974098409941004101410241034104410541064107410841094110411141124113411441154116411741184119412041214122412341244125412641274128412941304131413241334134413541364137413841394140414141424143414441454146414741484149415041514152415341544155415641574158415941604161416241634164416541664167416841694170417141724173417441754176417741784179418041814182418341844185418641874188418941904191419241934194419541964197419841994200420142024203420442054206420742084209421042114212421342144215421642174218421942204221422242234224422542264227422842294230423142324233423442354236423742384239424042414242424342444245424642474248424942504251425242534254425542564257425842594260426142624263426442654266426742684269427042714272427342744275427642774278427942804281428242834284428542864287428842894290429142924293429442954296429742984299430043014302430343044305430643074308430943104311431243134314431543164317431843194320432143224323432443254326432743284329433043314332433343344335433643374338433943404341434243434344434543464347434843494350435143524353435443554356435743584359436043614362436343644365436643674368436943704371437243734374437543764377437843794380438143824383438443854386438743884389439043914392439343944395439643974398439944004401440244034404440544064407440844094410441144124413441444154416441744184419442044214422442344244425442644274428442944304431443244334434443544364437443844394440444144424443444444454446444744484449445044514452445344544455445644574458445944604461446244634464446544664467446844694470447144724473447444754476447744784479448044814482448344844485448644874488448944904491449244934494449544964497449844994500450145024503450445054506450745084509451045114512451345144515451645174518451945204521452245234524452545264527452845294530453145324533453445354536453745384539454045414542454345444545454645474548454945504551455245534554455545564557455845594560456145624563456445654566456745684569457045714572457345744575457645774578457945804581458245834584458545864587458845894590459145924593459445954596459745984599460046014602460346044605460646074608460946104611461246134614461546164617461846194620462146224623462446254626462746284629463046314632463346344635463646374638463946404641464246434644464546464647464846494650465146524653465446554656465746584659466046614662466346644665466646674668466946704671467246734674467546764677467846794680468146824683468446854686468746884689469046914692469346944695469646974698469947004701470247034704470547064707470847094710471147124713471447154716471747184719472047214722472347244725472647274728472947304731473247334734473547364737473847394740474147424743474447454746474747484749475047514752475347544755475647574758475947604761476247634764476547664767476847694770477147724773477447754776477747784779478047814782478347844785478647874788478947904791479247934794479547964797479847994800480148024803480448054806480748084809481048114812481348144815481648174818481948204821482248234824482548264827482848294830483148324833483448354836483748384839484048414842484348444845484648474848484948504851485248534854485548564857485848594860486148624863486448654866486748684869487048714872487348744875487648774878487948804881488248834884488548864887488848894890489148924893489448954896489748984899490049014902490349044905490649074908490949104911491249134914491549164917491849194920492149224923492449254926492749284929493049314932493349344935493649374938493949404941494249434944494549464947494849494950495149524953495449554956495749584959496049614962496349644965496649674968496949704971497249734974497549764977497849794980498149824983498449854986498749884989499049914992499349944995499649974998499950005001500250035004500550065007500850095010501150125013501450155016501750185019502050215022502350245025502650275028502950305031503250335034503550365037503850395040504150425043504450455046504750485049505050515052505350545055505650575058505950605061506250635064506550665067506850695070507150725073507450755076507750785079508050815082508350845085508650875088508950905091509250935094509550965097509850995100510151025103510451055106510751085109511051115112511351145115511651175118511951205121512251235124512551265127512851295130513151325133513451355136513751385139514051415142514351445145514651475148514951505151515251535154515551565157515851595160516151625163516451655166516751685169517051715172517351745175517651775178517951805181518251835184518551865187518851895190519151925193519451955196519751985199520052015202520352045205520652075208520952105211521252135214521552165217521852195220522152225223522452255226522752285229523052315232523352345235523652375238523952405241524252435244524552465247524852495250525152525253525452555256525752585259526052615262526352645265526652675268526952705271527252735274527552765277527852795280528152825283528452855286528752885289529052915292529352945295529652975298529953005301530253035304530553065307530853095310531153125313531453155316531753185319532053215322532353245325532653275328532953305331533253335334533553365337533853395340534153425343534453455346534753485349535053515352535353545355535653575358535953605361536253635364536553665367536853695370537153725373537453755376537753785379538053815382538353845385538653875388538953905391539253935394539553965397539853995400540154025403540454055406540754085409541054115412541354145415541654175418541954205421542254235424542554265427542854295430543154325433543454355436543754385439544054415442544354445445544654475448544954505451545254535454545554565457545854595460546154625463546454655466546754685469547054715472547354745475547654775478547954805481548254835484548554865487548854895490549154925493549454955496549754985499550055015502550355045505550655075508550955105511551255135514551555165517551855195520552155225523552455255526552755285529553055315532553355345535553655375538553955405541554255435544554555465547554855495550555155525553555455555556555755585559556055615562556355645565556655675568556955705571557255735574557555765577557855795580558155825583558455855586558755885589559055915592559355945595559655975598559956005601560256035604560556065607560856095610561156125613561456155616561756185619562056215622562356245625562656275628562956305631563256335634563556365637563856395640564156425643564456455646564756485649565056515652565356545655565656575658565956605661566256635664566556665667566856695670567156725673567456755676567756785679568056815682568356845685568656875688568956905691569256935694569556965697569856995700570157025703570457055706570757085709571057115712571357145715571657175718571957205721572257235724572557265727572857295730573157325733573457355736573757385739574057415742574357445745574657475748574957505751575257535754575557565757575857595760576157625763576457655766576757685769577057715772577357745775577657775778577957805781578257835784578557865787578857895790579157925793579457955796579757985799580058015802580358045805580658075808580958105811581258135814581558165817581858195820582158225823582458255826582758285829583058315832583358345835583658375838583958405841584258435844584558465847584858495850585158525853585458555856585758585859586058615862586358645865586658675868586958705871587258735874587558765877587858795880588158825883588458855886588758885889589058915892589358945895589658975898589959005901590259035904590559065907590859095910591159125913591459155916591759185919592059215922592359245925592659275928592959305931593259335934593559365937593859395940594159425943594459455946594759485949595059515952595359545955595659575958595959605961596259635964596559665967596859695970597159725973597459755976597759785979598059815982598359845985598659875988598959905991599259935994599559965997599859996000600160026003600460056006600760086009601060116012601360146015601660176018601960206021602260236024602560266027602860296030603160326033603460356036603760386039604060416042604360446045604660476048604960506051605260536054605560566057605860596060606160626063606460656066606760686069607060716072607360746075607660776078607960806081608260836084608560866087608860896090609160926093609460956096609760986099610061016102610361046105610661076108610961106111611261136114611561166117611861196120612161226123612461256126612761286129613061316132613361346135613661376138613961406141614261436144614561466147614861496150615161526153615461556156615761586159616061616162616361646165616661676168616961706171617261736174617561766177617861796180618161826183618461856186618761886189619061916192619361946195619661976198619962006201620262036204620562066207620862096210621162126213621462156216621762186219622062216222622362246225622662276228622962306231623262336234623562366237623862396240624162426243624462456246624762486249625062516252625362546255625662576258625962606261626262636264626562666267626862696270627162726273627462756276627762786279628062816282628362846285628662876288628962906291629262936294629562966297629862996300630163026303630463056306630763086309631063116312631363146315631663176318631963206321632263236324632563266327632863296330633163326333633463356336633763386339634063416342634363446345634663476348634963506351635263536354635563566357635863596360636163626363636463656366636763686369637063716372637363746375637663776378637963806381638263836384638563866387638863896390639163926393639463956396639763986399640064016402640364046405640664076408640964106411641264136414641564166417641864196420642164226423642464256426642764286429643064316432643364346435643664376438643964406441644264436444644564466447644864496450645164526453645464556456645764586459646064616462646364646465646664676468646964706471647264736474647564766477647864796480648164826483648464856486648764886489649064916492649364946495649664976498649965006501650265036504650565066507650865096510651165126513651465156516651765186519652065216522652365246525652665276528652965306531653265336534653565366537653865396540654165426543654465456546654765486549655065516552655365546555655665576558655965606561656265636564656565666567656865696570657165726573657465756576657765786579658065816582658365846585658665876588658965906591659265936594659565966597659865996600660166026603660466056606660766086609661066116612661366146615661666176618661966206621662266236624662566266627662866296630663166326633663466356636663766386639664066416642664366446645664666476648664966506651665266536654665566566657665866596660666166626663666466656666666766686669667066716672667366746675667666776678667966806681668266836684668566866687668866896690669166926693669466956696669766986699670067016702670367046705670667076708670967106711671267136714671567166717671867196720672167226723672467256726672767286729673067316732673367346735673667376738673967406741674267436744674567466747674867496750675167526753675467556756675767586759676067616762676367646765676667676768676967706771677267736774677567766777677867796780678167826783678467856786678767886789679067916792679367946795679667976798679968006801680268036804680568066807680868096810681168126813681468156816681768186819682068216822682368246825682668276828682968306831683268336834683568366837683868396840684168426843684468456846684768486849685068516852685368546855685668576858685968606861686268636864686568666867686868696870687168726873687468756876687768786879688068816882688368846885688668876888688968906891689268936894689568966897689868996900690169026903690469056906690769086909691069116912691369146915691669176918691969206921692269236924692569266927692869296930693169326933693469356936693769386939694069416942694369446945694669476948694969506951695269536954695569566957695869596960696169626963696469656966696769686969697069716972697369746975697669776978697969806981698269836984698569866987698869896990699169926993699469956996699769986999700070017002700370047005700670077008700970107011701270137014701570167017701870197020702170227023702470257026702770287029703070317032703370347035703670377038703970407041704270437044704570467047704870497050705170527053705470557056705770587059706070617062706370647065706670677068706970707071707270737074707570767077707870797080708170827083708470857086708770887089709070917092709370947095709670977098709971007101710271037104710571067107710871097110711171127113711471157116711771187119712071217122712371247125712671277128712971307131713271337134713571367137713871397140714171427143714471457146714771487149715071517152715371547155715671577158715971607161716271637164716571667167716871697170717171727173717471757176717771787179718071817182718371847185718671877188718971907191719271937194719571967197719871997200720172027203720472057206720772087209721072117212721372147215721672177218721972207221722272237224722572267227722872297230723172327233723472357236723772387239724072417242724372447245724672477248724972507251725272537254725572567257725872597260726172627263726472657266726772687269727072717272727372747275727672777278727972807281728272837284728572867287728872897290729172927293729472957296729772987299730073017302730373047305730673077308730973107311731273137314731573167317731873197320732173227323732473257326732773287329733073317332733373347335733673377338733973407341734273437344734573467347734873497350735173527353735473557356735773587359736073617362736373647365736673677368736973707371737273737374737573767377737873797380738173827383738473857386738773887389739073917392739373947395739673977398739974007401740274037404740574067407740874097410741174127413741474157416741774187419742074217422742374247425742674277428742974307431743274337434743574367437743874397440744174427443744474457446744774487449745074517452745374547455745674577458745974607461746274637464746574667467746874697470747174727473747474757476747774787479748074817482748374847485748674877488748974907491749274937494749574967497749874997500750175027503750475057506750775087509751075117512751375147515751675177518751975207521752275237524752575267527752875297530753175327533753475357536753775387539754075417542754375447545754675477548754975507551755275537554755575567557755875597560756175627563756475657566756775687569757075717572757375747575757675777578757975807581758275837584758575867587758875897590759175927593759475957596759775987599760076017602760376047605760676077608760976107611761276137614761576167617761876197620762176227623762476257626762776287629763076317632763376347635763676377638763976407641764276437644764576467647764876497650765176527653765476557656765776587659766076617662766376647665766676677668766976707671767276737674767576767677767876797680768176827683768476857686768776887689769076917692769376947695769676977698769977007701770277037704770577067707770877097710771177127713771477157716771777187719772077217722772377247725772677277728772977307731773277337734773577367737773877397740774177427743774477457746774777487749775077517752775377547755775677577758775977607761776277637764776577667767776877697770777177727773777477757776777777787779778077817782778377847785778677877788778977907791779277937794779577967797779877997800780178027803780478057806780778087809781078117812781378147815781678177818781978207821782278237824782578267827782878297830783178327833783478357836783778387839784078417842784378447845784678477848784978507851785278537854785578567857785878597860786178627863786478657866786778687869787078717872787378747875787678777878787978807881788278837884788578867887788878897890789178927893789478957896789778987899790079017902790379047905790679077908790979107911791279137914791579167917791879197920792179227923792479257926792779287929793079317932793379347935793679377938793979407941794279437944794579467947794879497950795179527953795479557956795779587959796079617962796379647965796679677968796979707971797279737974797579767977797879797980798179827983798479857986798779887989799079917992799379947995799679977998799980008001800280038004800580068007800880098010801180128013801480158016801780188019802080218022802380248025802680278028802980308031803280338034803580368037803880398040804180428043804480458046804780488049805080518052805380548055805680578058805980608061806280638064806580668067806880698070807180728073807480758076807780788079808080818082808380848085808680878088808980908091809280938094809580968097809880998100810181028103810481058106810781088109811081118112811381148115811681178118811981208121812281238124812581268127812881298130813181328133813481358136813781388139814081418142814381448145814681478148814981508151815281538154815581568157815881598160816181628163816481658166816781688169817081718172817381748175817681778178817981808181818281838184818581868187818881898190819181928193819481958196819781988199820082018202820382048205820682078208820982108211821282138214821582168217821882198220822182228223822482258226822782288229823082318232823382348235823682378238823982408241824282438244824582468247824882498250825182528253825482558256825782588259826082618262826382648265826682678268826982708271827282738274827582768277827882798280828182828283828482858286828782888289829082918292829382948295829682978298829983008301830283038304830583068307830883098310831183128313831483158316831783188319832083218322832383248325832683278328832983308331833283338334833583368337833883398340834183428343834483458346834783488349835083518352835383548355835683578358835983608361836283638364836583668367836883698370837183728373837483758376837783788379838083818382838383848385838683878388838983908391839283938394839583968397839883998400840184028403840484058406840784088409841084118412841384148415841684178418841984208421842284238424842584268427842884298430843184328433843484358436843784388439844084418442844384448445844684478448844984508451845284538454845584568457845884598460846184628463846484658466846784688469847084718472847384748475847684778478847984808481848284838484848584868487848884898490849184928493849484958496849784988499850085018502850385048505850685078508850985108511851285138514851585168517851885198520852185228523852485258526852785288529853085318532853385348535853685378538853985408541854285438544854585468547854885498550855185528553855485558556855785588559856085618562856385648565856685678568856985708571857285738574857585768577857885798580858185828583858485858586858785888589859085918592859385948595859685978598859986008601860286038604860586068607860886098610861186128613861486158616861786188619862086218622862386248625862686278628862986308631863286338634863586368637863886398640864186428643864486458646864786488649865086518652865386548655865686578658865986608661866286638664866586668667866886698670867186728673867486758676867786788679868086818682868386848685868686878688868986908691869286938694869586968697869886998700870187028703870487058706870787088709871087118712871387148715871687178718871987208721872287238724872587268727872887298730873187328733873487358736873787388739874087418742874387448745874687478748874987508751875287538754875587568757875887598760876187628763876487658766876787688769877087718772877387748775877687778778877987808781878287838784878587868787878887898790879187928793879487958796879787988799880088018802880388048805880688078808880988108811881288138814881588168817881888198820882188228823882488258826882788288829883088318832883388348835883688378838883988408841884288438844884588468847884888498850885188528853885488558856885788588859886088618862886388648865886688678868886988708871887288738874887588768877887888798880888188828883888488858886888788888889889088918892889388948895889688978898889989008901890289038904890589068907890889098910891189128913891489158916891789188919892089218922892389248925892689278928892989308931893289338934893589368937893889398940894189428943894489458946894789488949895089518952895389548955895689578958895989608961896289638964896589668967896889698970897189728973897489758976897789788979898089818982898389848985898689878988898989908991899289938994899589968997899889999000900190029003900490059006900790089009901090119012901390149015901690179018901990209021902290239024902590269027902890299030903190329033903490359036903790389039904090419042904390449045904690479048904990509051905290539054905590569057905890599060906190629063906490659066906790689069907090719072907390749075907690779078907990809081908290839084908590869087908890899090909190929093909490959096909790989099910091019102910391049105910691079108910991109111911291139114911591169117911891199120912191229123912491259126912791289129913091319132913391349135913691379138913991409141914291439144914591469147914891499150915191529153915491559156915791589159916091619162916391649165916691679168916991709171917291739174917591769177917891799180918191829183918491859186918791889189919091919192919391949195919691979198919992009201920292039204920592069207920892099210921192129213921492159216921792189219922092219222922392249225922692279228922992309231923292339234923592369237923892399240924192429243924492459246924792489249925092519252925392549255925692579258925992609261926292639264926592669267926892699270927192729273927492759276927792789279928092819282928392849285928692879288928992909291929292939294929592969297929892999300930193029303930493059306930793089309931093119312931393149315931693179318931993209321932293239324932593269327932893299330933193329333933493359336933793389339934093419342934393449345934693479348934993509351935293539354935593569357935893599360936193629363936493659366936793689369937093719372937393749375937693779378937993809381938293839384938593869387938893899390939193929393939493959396939793989399940094019402940394049405940694079408940994109411941294139414941594169417941894199420942194229423942494259426942794289429943094319432943394349435943694379438943994409441944294439444944594469447944894499450945194529453945494559456945794589459946094619462946394649465946694679468946994709471947294739474947594769477947894799480948194829483948494859486948794889489949094919492949394949495949694979498949995009501950295039504950595069507950895099510951195129513951495159516951795189519952095219522952395249525952695279528952995309531953295339534953595369537953895399540954195429543954495459546954795489549955095519552955395549555955695579558955995609561956295639564956595669567956895699570957195729573957495759576957795789579958095819582958395849585958695879588958995909591959295939594959595969597959895999600960196029603960496059606960796089609961096119612961396149615961696179618961996209621962296239624962596269627962896299630963196329633963496359636963796389639964096419642964396449645964696479648964996509651965296539654965596569657965896599660966196629663966496659666966796689669967096719672967396749675967696779678967996809681968296839684968596869687968896899690969196929693969496959696969796989699970097019702970397049705970697079708970997109711971297139714971597169717971897199720972197229723972497259726972797289729973097319732973397349735973697379738973997409741974297439744974597469747974897499750975197529753975497559756975797589759976097619762976397649765976697679768976997709771977297739774977597769777977897799780978197829783978497859786978797889789979097919792979397949795979697979798979998009801980298039804980598069807980898099810981198129813981498159816981798189819982098219822982398249825982698279828982998309831983298339834983598369837983898399840984198429843984498459846984798489849985098519852985398549855985698579858985998609861986298639864986598669867986898699870987198729873987498759876987798789879988098819882988398849885988698879888988998909891989298939894989598969897989898999900990199029903990499059906990799089909991099119912991399149915991699179918991999209921992299239924992599269927992899299930993199329933993499359936993799389939994099419942994399449945994699479948994999509951995299539954995599569957995899599960996199629963996499659966996799689969997099719972997399749975997699779978997999809981998299839984998599869987998899899990999199929993999499959996999799989999100001000110002100031000410005100061000710008100091001010011100121001310014100151001610017100181001910020100211002210023100241002510026100271002810029100301003110032100331003410035100361003710038100391004010041100421004310044100451004610047100481004910050100511005210053100541005510056100571005810059100601006110062100631006410065100661006710068100691007010071100721007310074100751007610077100781007910080100811008210083100841008510086100871008810089100901009110092100931009410095100961009710098100991010010101101021010310104101051010610107101081010910110101111011210113101141011510116101171011810119101201012110122101231012410125101261012710128101291013010131101321013310134101351013610137101381013910140101411014210143101441014510146101471014810149101501015110152101531015410155101561015710158101591016010161101621016310164101651016610167101681016910170101711017210173101741017510176101771017810179101801018110182101831018410185101861018710188101891019010191101921019310194101951019610197101981019910200102011020210203102041020510206102071020810209102101021110212102131021410215102161021710218102191022010221102221022310224102251022610227102281022910230102311023210233102341023510236102371023810239102401024110242102431024410245102461024710248102491025010251102521025310254102551025610257102581025910260102611026210263102641026510266102671026810269102701027110272102731027410275102761027710278102791028010281102821028310284102851028610287102881028910290102911029210293102941029510296102971029810299103001030110302103031030410305103061030710308103091031010311103121031310314103151031610317103181031910320103211032210323103241032510326103271032810329103301033110332103331033410335103361033710338103391034010341103421034310344103451034610347103481034910350103511035210353103541035510356103571035810359103601036110362103631036410365103661036710368103691037010371103721037310374103751037610377103781037910380103811038210383103841038510386103871038810389103901039110392103931039410395103961039710398103991040010401104021040310404104051040610407104081040910410104111041210413104141041510416104171041810419104201042110422104231042410425104261042710428104291043010431104321043310434104351043610437104381043910440104411044210443104441044510446104471044810449104501045110452104531045410455104561045710458104591046010461104621046310464104651046610467104681046910470104711047210473104741047510476104771047810479104801048110482104831048410485104861048710488104891049010491104921049310494104951049610497104981049910500105011050210503105041050510506105071050810509105101051110512105131051410515105161051710518105191052010521105221052310524105251052610527105281052910530105311053210533105341053510536105371053810539105401054110542105431054410545105461054710548105491055010551105521055310554105551055610557105581055910560105611056210563105641056510566105671056810569105701057110572105731057410575105761057710578105791058010581105821058310584105851058610587105881058910590105911059210593105941059510596105971059810599106001060110602106031060410605106061060710608106091061010611106121061310614106151061610617106181061910620106211062210623106241062510626106271062810629106301063110632106331063410635106361063710638106391064010641106421064310644106451064610647106481064910650106511065210653106541065510656106571065810659106601066110662106631066410665106661066710668106691067010671106721067310674106751067610677106781067910680106811068210683106841068510686106871068810689106901069110692106931069410695106961069710698106991070010701107021070310704107051070610707107081070910710107111071210713107141071510716107171071810719107201072110722107231072410725107261072710728107291073010731107321073310734107351073610737107381073910740107411074210743107441074510746107471074810749107501075110752107531075410755107561075710758107591076010761107621076310764107651076610767107681076910770107711077210773107741077510776107771077810779107801078110782107831078410785107861078710788107891079010791107921079310794107951079610797107981079910800108011080210803108041080510806108071080810809108101081110812108131081410815108161081710818108191082010821108221082310824108251082610827108281082910830108311083210833108341083510836108371083810839108401084110842108431084410845108461084710848108491085010851108521085310854108551085610857108581085910860108611086210863108641086510866108671086810869108701087110872108731087410875108761087710878108791088010881108821088310884108851088610887108881088910890108911089210893108941089510896108971089810899109001090110902109031090410905109061090710908109091091010911109121091310914109151091610917109181091910920109211092210923109241092510926109271092810929109301093110932109331093410935109361093710938109391094010941109421094310944109451094610947109481094910950109511095210953109541095510956109571095810959109601096110962109631096410965109661096710968109691097010971109721097310974109751097610977109781097910980109811098210983109841098510986109871098810989109901099110992109931099410995109961099710998109991100011001110021100311004110051100611007110081100911010110111101211013110141101511016110171101811019110201102111022110231102411025110261102711028110291103011031110321103311034110351103611037110381103911040110411104211043110441104511046110471104811049110501105111052110531105411055110561105711058110591106011061110621106311064110651106611067110681106911070110711107211073110741107511076110771107811079110801108111082110831108411085110861108711088110891109011091110921109311094110951109611097110981109911100111011110211103111041110511106111071110811109111101111111112111131111411115111161111711118111191112011121111221112311124111251112611127111281112911130111311113211133111341113511136111371113811139111401114111142111431114411145111461114711148111491115011151111521115311154111551115611157111581115911160111611116211163111641116511166111671116811169111701117111172111731117411175111761117711178111791118011181111821118311184111851118611187111881118911190111911119211193111941119511196111971119811199112001120111202112031120411205112061120711208112091121011211112121121311214112151121611217112181121911220112211122211223112241122511226112271122811229112301123111232112331123411235112361123711238112391124011241112421124311244112451124611247112481124911250112511125211253112541125511256112571125811259112601126111262112631126411265112661126711268112691127011271112721127311274112751127611277112781127911280112811128211283112841128511286112871128811289112901129111292112931129411295112961129711298112991130011301113021130311304113051130611307113081130911310113111131211313113141131511316113171131811319113201132111322113231132411325113261132711328113291133011331113321133311334113351133611337113381133911340113411134211343113441134511346113471134811349113501135111352113531135411355113561135711358113591136011361113621136311364113651136611367113681136911370113711137211373113741137511376113771137811379113801138111382113831138411385113861138711388113891139011391113921139311394113951139611397113981139911400114011140211403114041140511406114071140811409114101141111412114131141411415114161141711418114191142011421114221142311424114251142611427114281142911430114311143211433114341143511436114371143811439114401144111442114431144411445114461144711448114491145011451114521145311454114551145611457114581145911460114611146211463114641146511466114671146811469114701147111472114731147411475114761147711478114791148011481114821148311484114851148611487114881148911490114911149211493114941149511496114971149811499115001150111502115031150411505115061150711508115091151011511115121151311514115151151611517115181151911520115211152211523115241152511526115271152811529115301153111532115331153411535115361153711538115391154011541115421154311544115451154611547115481154911550115511155211553115541155511556115571155811559115601156111562115631156411565115661156711568115691157011571115721157311574115751157611577115781157911580115811158211583115841158511586115871158811589115901159111592115931159411595115961159711598115991160011601116021160311604116051160611607116081160911610116111161211613116141161511616116171161811619116201162111622116231162411625116261162711628116291163011631116321163311634116351163611637116381163911640116411164211643116441164511646116471164811649116501165111652116531165411655116561165711658116591166011661116621166311664116651166611667116681166911670116711167211673116741167511676116771167811679116801168111682116831168411685116861168711688116891169011691116921169311694116951169611697116981169911700117011170211703117041170511706117071170811709117101171111712117131171411715117161171711718117191172011721117221172311724117251172611727117281172911730117311173211733117341173511736117371173811739117401174111742117431174411745117461174711748117491175011751117521175311754117551175611757117581175911760117611176211763117641176511766117671176811769117701177111772117731177411775117761177711778117791178011781117821178311784117851178611787117881178911790117911179211793117941179511796117971179811799118001180111802118031180411805118061180711808118091181011811118121181311814118151181611817118181181911820118211182211823118241182511826118271182811829118301183111832118331183411835118361183711838118391184011841118421184311844118451184611847118481184911850118511185211853118541185511856118571185811859118601186111862118631186411865118661186711868118691187011871118721187311874118751187611877118781187911880118811188211883118841188511886118871188811889118901189111892118931189411895118961189711898118991190011901119021190311904119051190611907119081190911910119111191211913119141191511916119171191811919119201192111922119231192411925119261192711928119291193011931119321193311934119351193611937119381193911940119411194211943119441194511946119471194811949119501195111952119531195411955119561195711958119591196011961119621196311964119651196611967119681196911970119711197211973119741197511976119771197811979119801198111982119831198411985119861198711988119891199011991119921199311994119951199611997119981199912000120011200212003120041200512006120071200812009120101201112012120131201412015120161201712018120191202012021120221202312024120251202612027120281202912030120311203212033120341203512036120371203812039120401204112042120431204412045120461204712048120491205012051120521205312054120551205612057120581205912060120611206212063120641206512066120671206812069120701207112072120731207412075120761207712078120791208012081120821208312084120851208612087120881208912090120911209212093120941209512096120971209812099121001210112102121031210412105121061210712108121091211012111121121211312114121151211612117121181211912120121211212212123121241212512126121271212812129121301213112132121331213412135121361213712138121391214012141121421214312144121451214612147121481214912150121511215212153121541215512156121571215812159121601216112162121631216412165121661216712168121691217012171121721217312174121751217612177121781217912180121811218212183121841218512186121871218812189121901219112192121931219412195121961219712198121991220012201122021220312204122051220612207122081220912210122111221212213122141221512216122171221812219122201222112222122231222412225122261222712228122291223012231122321223312234122351223612237122381223912240122411224212243122441224512246122471224812249122501225112252122531225412255122561225712258122591226012261122621226312264122651226612267122681226912270122711227212273122741227512276122771227812279122801228112282122831228412285122861228712288122891229012291122921229312294122951229612297122981229912300123011230212303123041230512306123071230812309123101231112312123131231412315123161231712318123191232012321123221232312324123251232612327123281232912330123311233212333123341233512336123371233812339123401234112342123431234412345123461234712348123491235012351123521235312354123551235612357123581235912360123611236212363123641236512366123671236812369123701237112372123731237412375123761237712378123791238012381123821238312384123851238612387123881238912390123911239212393123941239512396123971239812399124001240112402124031240412405124061240712408124091241012411124121241312414124151241612417124181241912420124211242212423124241242512426124271242812429124301243112432124331243412435124361243712438124391244012441124421244312444124451244612447124481244912450124511245212453124541245512456124571245812459124601246112462124631246412465124661246712468124691247012471124721247312474124751247612477124781247912480124811248212483124841248512486124871248812489124901249112492124931249412495124961249712498124991250012501125021250312504125051250612507125081250912510125111251212513125141251512516125171251812519125201252112522125231252412525125261252712528125291253012531125321253312534125351253612537125381253912540125411254212543125441254512546125471254812549125501255112552125531255412555125561255712558125591256012561125621256312564125651256612567125681256912570125711257212573125741257512576125771257812579125801258112582125831258412585125861258712588125891259012591125921259312594125951259612597125981259912600126011260212603126041260512606126071260812609126101261112612126131261412615126161261712618126191262012621126221262312624126251262612627126281262912630126311263212633126341263512636126371263812639126401264112642126431264412645126461264712648126491265012651126521265312654126551265612657126581265912660126611266212663126641266512666126671266812669126701267112672126731267412675126761267712678126791268012681126821268312684126851268612687126881268912690126911269212693126941269512696126971269812699127001270112702127031270412705127061270712708127091271012711127121271312714127151271612717127181271912720127211272212723127241272512726127271272812729127301273112732127331273412735127361273712738127391274012741127421274312744127451274612747127481274912750127511275212753127541275512756127571275812759127601276112762127631276412765127661276712768127691277012771127721277312774127751277612777127781277912780127811278212783127841278512786127871278812789127901279112792127931279412795127961279712798127991280012801128021280312804128051280612807128081280912810128111281212813128141281512816128171281812819128201282112822128231282412825128261282712828128291283012831128321283312834128351283612837128381283912840128411284212843128441284512846128471284812849128501285112852128531285412855128561285712858128591286012861128621286312864128651286612867128681286912870128711287212873128741287512876128771287812879128801288112882128831288412885128861288712888128891289012891128921289312894128951289612897128981289912900129011290212903129041290512906129071290812909129101291112912129131291412915129161291712918129191292012921129221292312924129251292612927129281292912930129311293212933129341293512936129371293812939129401294112942129431294412945129461294712948129491295012951129521295312954129551295612957129581295912960129611296212963129641296512966129671296812969129701297112972129731297412975129761297712978129791298012981129821298312984129851298612987129881298912990129911299212993129941299512996129971299812999130001300113002130031300413005130061300713008130091301013011130121301313014130151301613017130181301913020130211302213023130241302513026130271302813029130301303113032130331303413035130361303713038130391304013041130421304313044130451304613047130481304913050130511305213053130541305513056130571305813059130601306113062130631306413065130661306713068130691307013071130721307313074130751307613077130781307913080130811308213083130841308513086130871308813089130901309113092130931309413095130961309713098130991310013101131021310313104131051310613107131081310913110131111311213113131141311513116131171311813119131201312113122131231312413125131261312713128131291313013131131321313313134131351313613137131381313913140131411314213143131441314513146131471314813149131501315113152131531315413155131561315713158131591316013161131621316313164131651316613167131681316913170131711317213173131741317513176131771317813179131801318113182131831318413185131861318713188131891319013191131921319313194131951319613197131981319913200132011320213203132041320513206132071320813209132101321113212132131321413215132161321713218132191322013221132221322313224132251322613227132281322913230132311323213233132341323513236132371323813239132401324113242132431324413245132461324713248132491325013251132521325313254132551325613257132581325913260132611326213263132641326513266132671326813269132701327113272132731327413275132761327713278132791328013281132821328313284132851328613287132881328913290132911329213293132941329513296132971329813299133001330113302133031330413305133061330713308133091331013311133121331313314133151331613317133181331913320133211332213323133241332513326133271332813329133301333113332133331333413335133361333713338133391334013341133421334313344133451334613347133481334913350133511335213353133541335513356133571335813359133601336113362133631336413365133661336713368133691337013371133721337313374133751337613377133781337913380133811338213383133841338513386133871338813389133901339113392133931339413395133961339713398133991340013401134021340313404134051340613407134081340913410134111341213413134141341513416134171341813419134201342113422134231342413425134261342713428134291343013431134321343313434134351343613437134381343913440134411344213443134441344513446134471344813449134501345113452134531345413455134561345713458134591346013461134621346313464134651346613467134681346913470134711347213473134741347513476134771347813479134801348113482134831348413485134861348713488134891349013491134921349313494134951349613497134981349913500135011350213503135041350513506135071350813509135101351113512135131351413515135161351713518135191352013521135221352313524135251352613527135281352913530135311353213533135341353513536135371353813539135401354113542135431354413545135461354713548135491355013551135521355313554135551355613557135581355913560135611356213563135641356513566135671356813569135701357113572135731357413575135761357713578135791358013581135821358313584135851358613587135881358913590135911359213593135941359513596135971359813599136001360113602136031360413605136061360713608136091361013611136121361313614136151361613617136181361913620136211362213623136241362513626136271362813629136301363113632136331363413635136361363713638136391364013641136421364313644136451364613647136481364913650136511365213653136541365513656136571365813659136601366113662136631366413665136661366713668136691367013671136721367313674136751367613677136781367913680136811368213683136841368513686136871368813689136901369113692136931369413695136961369713698136991370013701137021370313704137051370613707137081370913710137111371213713137141371513716137171371813719137201372113722137231372413725137261372713728137291373013731137321373313734137351373613737137381373913740137411374213743137441374513746137471374813749137501375113752137531375413755137561375713758137591376013761137621376313764137651376613767137681376913770137711377213773137741377513776137771377813779137801378113782137831378413785137861378713788137891379013791137921379313794137951379613797137981379913800138011380213803138041380513806138071380813809138101381113812138131381413815138161381713818138191382013821138221382313824138251382613827138281382913830138311383213833138341383513836138371383813839138401384113842138431384413845138461384713848138491385013851138521385313854138551385613857138581385913860138611386213863138641386513866138671386813869138701387113872138731387413875138761387713878138791388013881138821388313884138851388613887138881388913890138911389213893138941389513896138971389813899139001390113902139031390413905139061390713908139091391013911139121391313914139151391613917139181391913920139211392213923139241392513926139271392813929139301393113932139331393413935139361393713938139391394013941139421394313944139451394613947139481394913950139511395213953139541395513956139571395813959139601396113962139631396413965139661396713968139691397013971139721397313974139751397613977139781397913980139811398213983139841398513986139871398813989139901399113992139931399413995139961399713998139991400014001140021400314004140051400614007140081400914010140111401214013140141401514016140171401814019140201402114022140231402414025140261402714028140291403014031140321403314034140351403614037140381403914040140411404214043140441404514046140471404814049140501405114052140531405414055140561405714058140591406014061140621406314064140651406614067140681406914070140711407214073140741407514076140771407814079140801408114082140831408414085140861408714088140891409014091140921409314094140951409614097140981409914100141011410214103141041410514106141071410814109141101411114112141131411414115141161411714118141191412014121141221412314124141251412614127141281412914130141311413214133141341413514136141371413814139141401414114142141431414414145141461414714148141491415014151141521415314154141551415614157141581415914160141611416214163141641416514166141671416814169141701417114172141731417414175141761417714178141791418014181141821418314184141851418614187141881418914190141911419214193141941419514196141971419814199142001420114202142031420414205142061420714208142091421014211142121421314214142151421614217142181421914220142211422214223142241422514226142271422814229142301423114232142331423414235142361423714238142391424014241142421424314244142451424614247142481424914250142511425214253142541425514256142571425814259142601426114262142631426414265142661426714268142691427014271142721427314274142751427614277142781427914280142811428214283142841428514286142871428814289142901429114292142931429414295142961429714298142991430014301143021430314304143051430614307143081430914310143111431214313143141431514316143171431814319143201432114322143231432414325143261432714328143291433014331143321433314334143351433614337143381433914340143411434214343143441434514346143471434814349143501435114352143531435414355143561435714358143591436014361143621436314364143651436614367143681436914370143711437214373143741437514376143771437814379143801438114382143831438414385143861438714388143891439014391143921439314394143951439614397143981439914400144011440214403144041440514406144071440814409144101441114412144131441414415144161441714418144191442014421144221442314424144251442614427144281442914430144311443214433144341443514436144371443814439144401444114442144431444414445144461444714448144491445014451144521445314454144551445614457144581445914460144611446214463144641446514466144671446814469144701447114472144731447414475144761447714478144791448014481144821448314484144851448614487144881448914490144911449214493144941449514496144971449814499145001450114502145031450414505145061450714508145091451014511145121451314514145151451614517145181451914520145211452214523145241452514526145271452814529145301453114532145331453414535145361453714538145391454014541145421454314544145451454614547145481454914550145511455214553145541455514556145571455814559145601456114562145631456414565145661456714568145691457014571145721457314574145751457614577145781457914580145811458214583145841458514586145871458814589145901459114592145931459414595145961459714598145991460014601146021460314604146051460614607146081460914610146111461214613146141461514616146171461814619146201462114622146231462414625146261462714628146291463014631146321463314634146351463614637146381463914640146411464214643146441464514646146471464814649146501465114652146531465414655146561465714658146591466014661146621466314664146651466614667146681466914670146711467214673146741467514676146771467814679146801468114682146831468414685146861468714688146891469014691146921469314694146951469614697146981469914700147011470214703147041470514706147071470814709147101471114712147131471414715147161471714718147191472014721147221472314724147251472614727147281472914730147311473214733147341473514736147371473814739147401474114742147431474414745147461474714748147491475014751147521475314754147551475614757147581475914760147611476214763147641476514766147671476814769147701477114772147731477414775147761477714778147791478014781147821478314784147851478614787147881478914790147911479214793147941479514796147971479814799148001480114802148031480414805148061480714808148091481014811148121481314814148151481614817148181481914820148211482214823148241482514826148271482814829148301483114832148331483414835148361483714838148391484014841148421484314844148451484614847148481484914850148511485214853148541485514856148571485814859148601486114862148631486414865148661486714868148691487014871148721487314874148751487614877148781487914880148811488214883148841488514886148871488814889148901489114892148931489414895148961489714898148991490014901149021490314904149051490614907149081490914910149111491214913149141491514916149171491814919149201492114922149231492414925149261492714928149291493014931149321493314934149351493614937149381493914940149411494214943149441494514946149471494814949149501495114952149531495414955149561495714958149591496014961149621496314964149651496614967149681496914970149711497214973149741497514976149771497814979149801498114982149831498414985149861498714988149891499014991149921499314994149951499614997149981499915000150011500215003150041500515006150071500815009150101501115012150131501415015150161501715018150191502015021150221502315024150251502615027150281502915030150311503215033150341503515036150371503815039150401504115042150431504415045150461504715048150491505015051150521505315054150551505615057150581505915060150611506215063150641506515066150671506815069150701507115072150731507415075150761507715078150791508015081150821508315084150851508615087150881508915090150911509215093150941509515096150971509815099151001510115102151031510415105151061510715108151091511015111151121511315114151151511615117151181511915120151211512215123151241512515126151271512815129151301513115132151331513415135151361513715138151391514015141151421514315144151451514615147151481514915150151511515215153151541515515156151571515815159151601516115162151631516415165151661516715168151691517015171151721517315174151751517615177151781517915180151811518215183151841518515186151871518815189151901519115192151931519415195151961519715198151991520015201152021520315204152051520615207152081520915210152111521215213152141521515216152171521815219152201522115222152231522415225152261522715228152291523015231152321523315234152351523615237152381523915240152411524215243152441524515246152471524815249152501525115252152531525415255152561525715258152591526015261152621526315264152651526615267152681526915270152711527215273152741527515276152771527815279152801528115282152831528415285152861528715288152891529015291152921529315294152951529615297152981529915300153011530215303153041530515306153071530815309153101531115312153131531415315153161531715318153191532015321153221532315324153251532615327153281532915330153311533215333153341533515336153371533815339153401534115342153431534415345153461534715348153491535015351153521535315354153551535615357153581535915360153611536215363153641536515366153671536815369153701537115372153731537415375153761537715378153791538015381153821538315384153851538615387153881538915390153911539215393153941539515396153971539815399154001540115402154031540415405154061540715408154091541015411154121541315414154151541615417154181541915420154211542215423154241542515426154271542815429154301543115432154331543415435154361543715438154391544015441154421544315444154451544615447154481544915450154511545215453154541545515456154571545815459154601546115462154631546415465154661546715468154691547015471154721547315474154751547615477154781547915480154811548215483154841548515486154871548815489154901549115492154931549415495154961549715498154991550015501155021550315504155051550615507155081550915510155111551215513155141551515516155171551815519155201552115522155231552415525155261552715528155291553015531155321553315534155351553615537155381553915540155411554215543155441554515546155471554815549155501555115552155531555415555155561555715558155591556015561155621556315564155651556615567155681556915570155711557215573155741557515576155771557815579155801558115582155831558415585155861558715588155891559015591155921559315594155951559615597155981559915600156011560215603156041560515606156071560815609156101561115612156131561415615156161561715618156191562015621156221562315624156251562615627156281562915630156311563215633156341563515636156371563815639156401564115642156431564415645156461564715648156491565015651156521565315654156551565615657156581565915660156611566215663156641566515666156671566815669156701567115672156731567415675156761567715678156791568015681156821568315684156851568615687156881568915690156911569215693156941569515696156971569815699157001570115702157031570415705157061570715708157091571015711157121571315714157151571615717157181571915720157211572215723157241572515726157271572815729157301573115732157331573415735157361573715738157391574015741157421574315744157451574615747157481574915750157511575215753157541575515756157571575815759157601576115762157631576415765157661576715768157691577015771157721577315774157751577615777157781577915780157811578215783157841578515786157871578815789157901579115792157931579415795157961579715798157991580015801158021580315804158051580615807158081580915810158111581215813158141581515816158171581815819158201582115822158231582415825158261582715828158291583015831158321583315834158351583615837158381583915840158411584215843158441584515846158471584815849158501585115852158531585415855158561585715858158591586015861158621586315864158651586615867158681586915870158711587215873158741587515876158771587815879158801588115882158831588415885158861588715888158891589015891158921589315894158951589615897158981589915900159011590215903159041590515906159071590815909159101591115912159131591415915159161591715918159191592015921159221592315924159251592615927159281592915930159311593215933159341593515936159371593815939159401594115942159431594415945159461594715948159491595015951159521595315954159551595615957159581595915960159611596215963159641596515966159671596815969159701597115972159731597415975159761597715978159791598015981159821598315984159851598615987159881598915990159911599215993159941599515996159971599815999160001600116002160031600416005160061600716008160091601016011160121601316014160151601616017160181601916020160211602216023160241602516026160271602816029160301603116032160331603416035160361603716038160391604016041160421604316044160451604616047160481604916050160511605216053160541605516056160571605816059160601606116062160631606416065160661606716068160691607016071160721607316074160751607616077160781607916080160811608216083160841608516086160871608816089160901609116092160931609416095160961609716098160991610016101161021610316104161051610616107161081610916110161111611216113161141611516116161171611816119161201612116122161231612416125161261612716128161291613016131161321613316134161351613616137161381613916140161411614216143161441614516146161471614816149161501615116152161531615416155161561615716158161591616016161161621616316164161651616616167161681616916170161711617216173161741617516176161771617816179161801618116182161831618416185161861618716188161891619016191161921619316194161951619616197161981619916200162011620216203162041620516206162071620816209162101621116212162131621416215162161621716218162191622016221162221622316224162251622616227162281622916230162311623216233162341623516236162371623816239162401624116242162431624416245162461624716248162491625016251162521625316254162551625616257162581625916260162611626216263162641626516266162671626816269162701627116272162731627416275162761627716278162791628016281162821628316284162851628616287162881628916290162911629216293162941629516296162971629816299163001630116302163031630416305163061630716308163091631016311163121631316314163151631616317163181631916320163211632216323163241632516326163271632816329163301633116332163331633416335163361633716338163391634016341163421634316344163451634616347163481634916350163511635216353163541635516356163571635816359163601636116362163631636416365163661636716368163691637016371163721637316374163751637616377163781637916380163811638216383163841638516386163871638816389163901639116392163931639416395163961639716398163991640016401164021640316404164051640616407164081640916410164111641216413164141641516416164171641816419164201642116422164231642416425164261642716428164291643016431164321643316434164351643616437164381643916440164411644216443164441644516446164471644816449164501645116452164531645416455164561645716458164591646016461164621646316464164651646616467164681646916470164711647216473164741647516476164771647816479164801648116482164831648416485164861648716488164891649016491164921649316494164951649616497164981649916500165011650216503165041650516506165071650816509165101651116512165131651416515165161651716518165191652016521165221652316524165251652616527165281652916530165311653216533165341653516536165371653816539165401654116542165431654416545165461654716548165491655016551165521655316554165551655616557165581655916560165611656216563165641656516566165671656816569165701657116572165731657416575165761657716578165791658016581165821658316584165851658616587165881658916590165911659216593165941659516596165971659816599166001660116602166031660416605166061660716608166091661016611166121661316614166151661616617166181661916620166211662216623166241662516626166271662816629166301663116632166331663416635166361663716638166391664016641166421664316644166451664616647166481664916650166511665216653166541665516656166571665816659166601666116662166631666416665166661666716668166691667016671166721667316674166751667616677166781667916680166811668216683166841668516686166871668816689166901669116692166931669416695166961669716698166991670016701167021670316704167051670616707167081670916710167111671216713167141671516716167171671816719167201672116722167231672416725167261672716728167291673016731167321673316734167351673616737167381673916740167411674216743167441674516746167471674816749167501675116752167531675416755167561675716758167591676016761167621676316764167651676616767167681676916770167711677216773167741677516776167771677816779167801678116782167831678416785167861678716788167891679016791167921679316794167951679616797167981679916800168011680216803168041680516806168071680816809168101681116812168131681416815168161681716818168191682016821168221682316824168251682616827168281682916830168311683216833168341683516836168371683816839168401684116842168431684416845168461684716848168491685016851168521685316854168551685616857168581685916860168611686216863168641686516866168671686816869168701687116872168731687416875168761687716878168791688016881168821688316884168851688616887168881688916890168911689216893168941689516896168971689816899169001690116902169031690416905169061690716908169091691016911169121691316914169151691616917169181691916920169211692216923169241692516926169271692816929169301693116932169331693416935169361693716938169391694016941169421694316944169451694616947169481694916950169511695216953169541695516956169571695816959169601696116962169631696416965169661696716968169691697016971169721697316974169751697616977169781697916980169811698216983169841698516986169871698816989169901699116992169931699416995169961699716998169991700017001170021700317004170051700617007170081700917010170111701217013170141701517016170171701817019170201702117022170231702417025170261702717028170291703017031170321703317034170351703617037170381703917040170411704217043170441704517046170471704817049170501705117052170531705417055170561705717058170591706017061170621706317064170651706617067170681706917070170711707217073170741707517076170771707817079170801708117082170831708417085170861708717088170891709017091170921709317094170951709617097170981709917100171011710217103171041710517106171071710817109171101711117112171131711417115171161711717118171191712017121171221712317124171251712617127171281712917130171311713217133171341713517136171371713817139171401714117142171431714417145171461714717148171491715017151171521715317154171551715617157171581715917160171611716217163171641716517166171671716817169171701717117172171731717417175171761717717178171791718017181171821718317184171851718617187171881718917190171911719217193171941719517196171971719817199172001720117202172031720417205172061720717208172091721017211172121721317214172151721617217172181721917220172211722217223172241722517226172271722817229172301723117232172331723417235172361723717238172391724017241172421724317244172451724617247172481724917250172511725217253172541725517256172571725817259172601726117262172631726417265172661726717268172691727017271172721727317274172751727617277172781727917280172811728217283172841728517286172871728817289172901729117292172931729417295172961729717298172991730017301173021730317304173051730617307173081730917310173111731217313173141731517316173171731817319173201732117322173231732417325173261732717328173291733017331173321733317334173351733617337173381733917340173411734217343173441734517346173471734817349173501735117352173531735417355173561735717358173591736017361173621736317364173651736617367173681736917370173711737217373173741737517376173771737817379173801738117382173831738417385173861738717388173891739017391173921739317394173951739617397173981739917400174011740217403174041740517406174071740817409174101741117412174131741417415174161741717418174191742017421174221742317424174251742617427174281742917430174311743217433174341743517436174371743817439174401744117442174431744417445174461744717448174491745017451174521745317454174551745617457174581745917460174611746217463174641746517466174671746817469174701747117472174731747417475174761747717478174791748017481174821748317484174851748617487174881748917490174911749217493174941749517496174971749817499175001750117502175031750417505175061750717508175091751017511175121751317514175151751617517175181751917520175211752217523175241752517526175271752817529175301753117532175331753417535175361753717538175391754017541175421754317544175451754617547175481754917550175511755217553175541755517556175571755817559175601756117562175631756417565175661756717568175691757017571175721757317574175751757617577175781757917580175811758217583175841758517586175871758817589175901759117592175931759417595175961759717598175991760017601176021760317604176051760617607176081760917610176111761217613176141761517616176171761817619176201762117622176231762417625176261762717628176291763017631176321763317634176351763617637176381763917640176411764217643176441764517646176471764817649176501765117652176531765417655176561765717658176591766017661176621766317664176651766617667176681766917670176711767217673176741767517676176771767817679176801768117682176831768417685176861768717688176891769017691176921769317694176951769617697176981769917700177011770217703177041770517706177071770817709177101771117712177131771417715177161771717718177191772017721177221772317724177251772617727177281772917730177311773217733177341773517736177371773817739177401774117742177431774417745177461774717748177491775017751177521775317754177551775617757177581775917760177611776217763177641776517766177671776817769177701777117772177731777417775177761777717778177791778017781177821778317784177851778617787177881778917790177911779217793177941779517796177971779817799178001780117802178031780417805178061780717808178091781017811178121781317814178151781617817178181781917820178211782217823178241782517826178271782817829178301783117832178331783417835178361783717838178391784017841178421784317844178451784617847178481784917850178511785217853178541785517856178571785817859178601786117862178631786417865178661786717868178691787017871178721787317874178751787617877178781787917880178811788217883178841788517886178871788817889178901789117892178931789417895178961789717898178991790017901179021790317904179051790617907179081790917910179111791217913179141791517916179171791817919179201792117922179231792417925179261792717928179291793017931179321793317934179351793617937179381793917940179411794217943179441794517946179471794817949179501795117952179531795417955179561795717958179591796017961179621796317964179651796617967179681796917970179711797217973179741797517976179771797817979179801798117982179831798417985179861798717988179891799017991179921799317994179951799617997179981799918000180011800218003180041800518006180071800818009180101801118012180131801418015180161801718018180191802018021180221802318024180251802618027180281802918030180311803218033180341803518036180371803818039180401804118042180431804418045180461804718048180491805018051180521805318054180551805618057180581805918060180611806218063180641806518066180671806818069180701807118072180731807418075180761807718078180791808018081180821808318084180851808618087180881808918090180911809218093180941809518096180971809818099181001810118102181031810418105181061810718108181091811018111181121811318114181151811618117181181811918120181211812218123181241812518126181271812818129181301813118132181331813418135181361813718138181391814018141181421814318144181451814618147181481814918150181511815218153181541815518156181571815818159181601816118162181631816418165181661816718168181691817018171181721817318174181751817618177181781817918180181811818218183181841818518186181871818818189181901819118192181931819418195181961819718198181991820018201182021820318204182051820618207182081820918210182111821218213182141821518216182171821818219182201822118222182231822418225182261822718228182291823018231182321823318234182351823618237182381823918240182411824218243182441824518246182471824818249182501825118252182531825418255182561825718258182591826018261182621826318264182651826618267182681826918270182711827218273182741827518276182771827818279182801828118282182831828418285182861828718288182891829018291182921829318294182951829618297182981829918300183011830218303183041830518306183071830818309183101831118312183131831418315183161831718318183191832018321183221832318324183251832618327183281832918330183311833218333183341833518336183371833818339183401834118342183431834418345183461834718348183491835018351183521835318354183551835618357183581835918360183611836218363183641836518366183671836818369183701837118372183731837418375183761837718378183791838018381183821838318384183851838618387183881838918390183911839218393183941839518396183971839818399184001840118402184031840418405184061840718408184091841018411184121841318414184151841618417184181841918420184211842218423184241842518426184271842818429184301843118432184331843418435184361843718438184391844018441184421844318444184451844618447184481844918450184511845218453184541845518456184571845818459184601846118462184631846418465184661846718468184691847018471184721847318474184751847618477184781847918480184811848218483184841848518486184871848818489184901849118492184931849418495184961849718498184991850018501185021850318504185051850618507185081850918510185111851218513185141851518516185171851818519185201852118522185231852418525185261852718528185291853018531185321853318534185351853618537185381853918540185411854218543185441854518546185471854818549185501855118552185531855418555185561855718558185591856018561185621856318564185651856618567185681856918570185711857218573185741857518576185771857818579185801858118582185831858418585185861858718588185891859018591185921859318594185951859618597185981859918600186011860218603186041860518606186071860818609186101861118612186131861418615186161861718618186191862018621186221862318624186251862618627186281862918630186311863218633186341863518636186371863818639186401864118642186431864418645186461864718648186491865018651186521865318654186551865618657186581865918660186611866218663186641866518666186671866818669186701867118672186731867418675186761867718678186791868018681186821868318684186851868618687186881868918690186911869218693186941869518696186971869818699187001870118702187031870418705187061870718708187091871018711187121871318714187151871618717187181871918720187211872218723187241872518726187271872818729187301873118732187331873418735187361873718738187391874018741187421874318744187451874618747187481874918750187511875218753187541875518756187571875818759187601876118762187631876418765187661876718768187691877018771187721877318774187751877618777187781877918780187811878218783187841878518786187871878818789187901879118792187931879418795187961879718798187991880018801188021880318804188051880618807188081880918810188111881218813188141881518816188171881818819188201882118822188231882418825188261882718828188291883018831188321883318834188351883618837188381883918840188411884218843188441884518846188471884818849188501885118852188531885418855188561885718858188591886018861188621886318864188651886618867188681886918870188711887218873188741887518876188771887818879188801888118882188831888418885188861888718888188891889018891188921889318894188951889618897188981889918900189011890218903189041890518906189071890818909189101891118912189131891418915189161891718918189191892018921189221892318924189251892618927189281892918930189311893218933189341893518936189371893818939189401894118942189431894418945189461894718948189491895018951189521895318954189551895618957189581895918960189611896218963189641896518966189671896818969189701897118972189731897418975189761897718978189791898018981189821898318984189851898618987189881898918990189911899218993189941899518996189971899818999190001900119002190031900419005190061900719008190091901019011190121901319014190151901619017190181901919020190211902219023190241902519026190271902819029190301903119032190331903419035190361903719038190391904019041190421904319044190451904619047190481904919050190511905219053190541905519056190571905819059190601906119062190631906419065190661906719068190691907019071190721907319074190751907619077190781907919080190811908219083190841908519086190871908819089190901909119092190931909419095190961909719098190991910019101191021910319104191051910619107191081910919110191111911219113191141911519116191171911819119191201912119122191231912419125191261912719128191291913019131191321913319134191351913619137191381913919140191411914219143191441914519146191471914819149191501915119152191531915419155191561915719158191591916019161191621916319164191651916619167191681916919170191711917219173191741917519176191771917819179191801918119182191831918419185191861918719188191891919019191191921919319194191951919619197191981919919200192011920219203192041920519206192071920819209192101921119212192131921419215192161921719218192191922019221192221922319224192251922619227192281922919230192311923219233192341923519236192371923819239192401924119242192431924419245192461924719248192491925019251192521925319254192551925619257192581925919260192611926219263192641926519266192671926819269192701927119272192731927419275192761927719278192791928019281192821928319284192851928619287192881928919290192911929219293192941929519296192971929819299193001930119302193031930419305193061930719308193091931019311193121931319314193151931619317193181931919320193211932219323193241932519326193271932819329193301933119332193331933419335193361933719338193391934019341193421934319344193451934619347193481934919350193511935219353193541935519356193571935819359193601936119362193631936419365193661936719368193691937019371193721937319374193751937619377193781937919380193811938219383193841938519386193871938819389193901939119392193931939419395193961939719398193991940019401194021940319404194051940619407194081940919410194111941219413194141941519416194171941819419194201942119422194231942419425194261942719428194291943019431194321943319434194351943619437194381943919440194411944219443194441944519446194471944819449194501945119452194531945419455194561945719458194591946019461194621946319464194651946619467194681946919470194711947219473194741947519476194771947819479194801948119482194831948419485194861948719488194891949019491194921949319494194951949619497194981949919500195011950219503195041950519506195071950819509195101951119512195131951419515195161951719518195191952019521195221952319524195251952619527195281952919530195311953219533195341953519536195371953819539195401954119542195431954419545195461954719548195491955019551195521955319554195551955619557195581955919560195611956219563195641956519566195671956819569195701957119572195731957419575195761957719578195791958019581195821958319584195851958619587195881958919590195911959219593195941959519596195971959819599196001960119602196031960419605196061960719608196091961019611196121961319614196151961619617196181961919620196211962219623196241962519626196271962819629196301963119632196331963419635196361963719638196391964019641196421964319644196451964619647196481964919650196511965219653196541965519656196571965819659196601966119662196631966419665196661966719668196691967019671196721967319674196751967619677196781967919680196811968219683196841968519686196871968819689196901969119692196931969419695196961969719698196991970019701197021970319704197051970619707197081970919710197111971219713197141971519716197171971819719197201972119722197231972419725197261972719728197291973019731197321973319734197351973619737197381973919740197411974219743197441974519746197471974819749197501975119752197531975419755197561975719758197591976019761197621976319764197651976619767197681976919770197711977219773197741977519776197771977819779197801978119782197831978419785197861978719788197891979019791197921979319794197951979619797197981979919800198011980219803198041980519806198071980819809198101981119812198131981419815198161981719818198191982019821198221982319824198251982619827198281982919830198311983219833198341983519836198371983819839198401984119842198431984419845198461984719848198491985019851198521985319854198551985619857198581985919860198611986219863198641986519866198671986819869198701987119872198731987419875198761987719878198791988019881198821988319884198851988619887198881988919890198911989219893198941989519896198971989819899199001990119902199031990419905199061990719908199091991019911199121991319914199151991619917199181991919920199211992219923199241992519926199271992819929199301993119932199331993419935199361993719938199391994019941199421994319944199451994619947199481994919950199511995219953199541995519956199571995819959199601996119962199631996419965199661996719968199691997019971199721997319974199751997619977199781997919980199811998219983199841998519986199871998819989199901999119992199931999419995199961999719998199992000020001200022000320004200052000620007200082000920010200112001220013200142001520016200172001820019200202002120022200232002420025200262002720028200292003020031200322003320034200352003620037200382003920040200412004220043200442004520046200472004820049200502005120052200532005420055200562005720058200592006020061200622006320064200652006620067200682006920070200712007220073200742007520076200772007820079200802008120082200832008420085200862008720088200892009020091200922009320094200952009620097200982009920100201012010220103201042010520106201072010820109201102011120112201132011420115201162011720118201192012020121201222012320124201252012620127201282012920130201312013220133201342013520136201372013820139201402014120142201432014420145201462014720148201492015020151201522015320154201552015620157201582015920160201612016220163201642016520166201672016820169201702017120172201732017420175201762017720178201792018020181201822018320184201852018620187201882018920190201912019220193201942019520196201972019820199202002020120202202032020420205202062020720208202092021020211202122021320214202152021620217202182021920220202212022220223202242022520226202272022820229202302023120232202332023420235202362023720238202392024020241202422024320244202452024620247202482024920250202512025220253202542025520256202572025820259202602026120262202632026420265202662026720268202692027020271202722027320274202752027620277202782027920280202812028220283202842028520286202872028820289202902029120292202932029420295202962029720298202992030020301203022030320304203052030620307203082030920310203112031220313203142031520316203172031820319203202032120322203232032420325203262032720328203292033020331203322033320334203352033620337203382033920340203412034220343203442034520346203472034820349203502035120352203532035420355203562035720358203592036020361203622036320364203652036620367203682036920370203712037220373203742037520376203772037820379203802038120382203832038420385203862038720388203892039020391203922039320394203952039620397203982039920400204012040220403204042040520406204072040820409204102041120412204132041420415204162041720418204192042020421204222042320424204252042620427204282042920430204312043220433204342043520436204372043820439204402044120442204432044420445204462044720448204492045020451204522045320454204552045620457204582045920460204612046220463204642046520466204672046820469204702047120472204732047420475204762047720478204792048020481204822048320484204852048620487204882048920490204912049220493204942049520496204972049820499205002050120502205032050420505205062050720508205092051020511205122051320514205152051620517205182051920520205212052220523205242052520526205272052820529205302053120532205332053420535205362053720538205392054020541205422054320544205452054620547205482054920550205512055220553205542055520556205572055820559205602056120562205632056420565205662056720568205692057020571205722057320574205752057620577205782057920580205812058220583205842058520586205872058820589205902059120592205932059420595205962059720598205992060020601206022060320604206052060620607206082060920610206112061220613206142061520616206172061820619206202062120622206232062420625206262062720628206292063020631206322063320634206352063620637206382063920640206412064220643206442064520646206472064820649206502065120652206532065420655206562065720658206592066020661206622066320664206652066620667206682066920670206712067220673206742067520676206772067820679206802068120682206832068420685206862068720688206892069020691206922069320694206952069620697206982069920700207012070220703207042070520706207072070820709207102071120712207132071420715207162071720718207192072020721207222072320724207252072620727207282072920730207312073220733207342073520736207372073820739207402074120742207432074420745207462074720748207492075020751207522075320754207552075620757207582075920760207612076220763207642076520766207672076820769207702077120772207732077420775207762077720778207792078020781207822078320784207852078620787207882078920790207912079220793207942079520796207972079820799208002080120802208032080420805208062080720808208092081020811208122081320814208152081620817208182081920820208212082220823208242082520826208272082820829208302083120832208332083420835208362083720838208392084020841208422084320844208452084620847208482084920850208512085220853208542085520856208572085820859208602086120862208632086420865208662086720868208692087020871208722087320874208752087620877208782087920880208812088220883208842088520886208872088820889208902089120892208932089420895208962089720898208992090020901209022090320904209052090620907209082090920910209112091220913209142091520916209172091820919209202092120922209232092420925209262092720928209292093020931209322093320934209352093620937209382093920940209412094220943209442094520946209472094820949209502095120952209532095420955209562095720958209592096020961209622096320964209652096620967209682096920970209712097220973209742097520976209772097820979209802098120982209832098420985209862098720988209892099020991209922099320994209952099620997209982099921000210012100221003210042100521006210072100821009210102101121012210132101421015210162101721018210192102021021210222102321024210252102621027210282102921030210312103221033210342103521036210372103821039210402104121042210432104421045210462104721048210492105021051210522105321054210552105621057210582105921060210612106221063210642106521066210672106821069210702107121072210732107421075210762107721078210792108021081210822108321084210852108621087210882108921090210912109221093210942109521096210972109821099211002110121102211032110421105211062110721108211092111021111211122111321114211152111621117211182111921120211212112221123211242112521126211272112821129211302113121132211332113421135211362113721138211392114021141211422114321144211452114621147211482114921150211512115221153211542115521156211572115821159211602116121162211632116421165211662116721168211692117021171211722117321174211752117621177211782117921180211812118221183211842118521186211872118821189211902119121192211932119421195211962119721198211992120021201212022120321204212052120621207212082120921210212112121221213212142121521216212172121821219212202122121222212232122421225212262122721228212292123021231212322123321234212352123621237212382123921240212412124221243212442124521246212472124821249212502125121252212532125421255212562125721258212592126021261212622126321264212652126621267212682126921270212712127221273212742127521276212772127821279212802128121282212832128421285212862128721288212892129021291212922129321294212952129621297212982129921300213012130221303213042130521306213072130821309213102131121312213132131421315213162131721318213192132021321213222132321324213252132621327213282132921330213312133221333213342133521336213372133821339213402134121342213432134421345213462134721348213492135021351213522135321354213552135621357213582135921360213612136221363213642136521366213672136821369213702137121372213732137421375213762137721378213792138021381213822138321384213852138621387213882138921390213912139221393213942139521396213972139821399214002140121402214032140421405214062140721408214092141021411214122141321414214152141621417214182141921420214212142221423214242142521426214272142821429214302143121432214332143421435214362143721438214392144021441214422144321444214452144621447214482144921450214512145221453214542145521456214572145821459214602146121462214632146421465214662146721468214692147021471214722147321474214752147621477214782147921480214812148221483214842148521486214872148821489214902149121492214932149421495214962149721498214992150021501215022150321504215052150621507215082150921510215112151221513215142151521516215172151821519215202152121522215232152421525215262152721528215292153021531215322153321534215352153621537215382153921540215412154221543215442154521546215472154821549215502155121552215532155421555215562155721558215592156021561215622156321564215652156621567215682156921570215712157221573215742157521576215772157821579215802158121582215832158421585215862158721588215892159021591215922159321594215952159621597215982159921600216012160221603216042160521606216072160821609216102161121612216132161421615216162161721618216192162021621216222162321624216252162621627216282162921630216312163221633216342163521636216372163821639216402164121642216432164421645216462164721648216492165021651216522165321654216552165621657216582165921660216612166221663216642166521666216672166821669216702167121672216732167421675216762167721678216792168021681216822168321684216852168621687216882168921690216912169221693216942169521696216972169821699217002170121702217032170421705217062170721708217092171021711217122171321714217152171621717217182171921720217212172221723217242172521726217272172821729217302173121732217332173421735217362173721738217392174021741217422174321744217452174621747217482174921750217512175221753217542175521756217572175821759217602176121762217632176421765217662176721768217692177021771217722177321774217752177621777217782177921780217812178221783217842178521786217872178821789217902179121792217932179421795217962179721798217992180021801218022180321804218052180621807218082180921810218112181221813218142181521816218172181821819218202182121822218232182421825218262182721828218292183021831218322183321834218352183621837218382183921840218412184221843218442184521846218472184821849218502185121852218532185421855218562185721858218592186021861218622186321864218652186621867218682186921870218712187221873218742187521876218772187821879218802188121882218832188421885218862188721888218892189021891218922189321894218952189621897218982189921900219012190221903219042190521906219072190821909219102191121912219132191421915219162191721918219192192021921219222192321924219252192621927219282192921930219312193221933219342193521936219372193821939219402194121942219432194421945219462194721948219492195021951219522195321954219552195621957219582195921960219612196221963219642196521966219672196821969219702197121972219732197421975219762197721978219792198021981219822198321984219852198621987219882198921990219912199221993219942199521996219972199821999220002200122002220032200422005220062200722008220092201022011220122201322014220152201622017220182201922020220212202222023220242202522026220272202822029220302203122032220332203422035220362203722038220392204022041220422204322044220452204622047220482204922050220512205222053220542205522056220572205822059220602206122062220632206422065220662206722068220692207022071220722207322074220752207622077220782207922080220812208222083220842208522086220872208822089220902209122092220932209422095220962209722098220992210022101221022210322104221052210622107221082210922110221112211222113221142211522116221172211822119221202212122122221232212422125221262212722128221292213022131221322213322134221352213622137221382213922140221412214222143221442214522146221472214822149221502215122152221532215422155221562215722158221592216022161221622216322164221652216622167221682216922170221712217222173221742217522176221772217822179221802218122182221832218422185221862218722188221892219022191221922219322194221952219622197221982219922200222012220222203222042220522206222072220822209222102221122212222132221422215222162221722218222192222022221222222222322224222252222622227222282222922230222312223222233222342223522236222372223822239222402224122242222432224422245222462224722248222492225022251222522225322254222552225622257222582225922260222612226222263222642226522266222672226822269222702227122272222732227422275222762227722278222792228022281222822228322284222852228622287222882228922290222912229222293222942229522296222972229822299223002230122302223032230422305223062230722308223092231022311223122231322314223152231622317223182231922320223212232222323223242232522326223272232822329223302233122332223332233422335223362233722338223392234022341223422234322344223452234622347223482234922350223512235222353223542235522356223572235822359223602236122362223632236422365223662236722368223692237022371223722237322374223752237622377223782237922380223812238222383223842238522386223872238822389223902239122392223932239422395223962239722398223992240022401224022240322404224052240622407224082240922410224112241222413224142241522416224172241822419224202242122422224232242422425224262242722428224292243022431224322243322434224352243622437224382243922440224412244222443224442244522446224472244822449224502245122452224532245422455224562245722458224592246022461224622246322464224652246622467224682246922470224712247222473224742247522476224772247822479224802248122482224832248422485224862248722488224892249022491224922249322494224952249622497224982249922500225012250222503225042250522506225072250822509225102251122512225132251422515225162251722518225192252022521225222252322524225252252622527225282252922530225312253222533225342253522536225372253822539225402254122542225432254422545225462254722548225492255022551225522255322554225552255622557225582255922560225612256222563225642256522566225672256822569225702257122572225732257422575225762257722578225792258022581225822258322584225852258622587225882258922590225912259222593225942259522596225972259822599226002260122602226032260422605226062260722608226092261022611226122261322614226152261622617226182261922620226212262222623226242262522626226272262822629226302263122632226332263422635226362263722638226392264022641226422264322644226452264622647226482264922650226512265222653226542265522656226572265822659226602266122662226632266422665226662266722668226692267022671226722267322674226752267622677226782267922680226812268222683226842268522686226872268822689226902269122692226932269422695226962269722698226992270022701227022270322704227052270622707227082270922710227112271222713227142271522716227172271822719227202272122722227232272422725227262272722728227292273022731227322273322734227352273622737227382273922740227412274222743227442274522746227472274822749227502275122752227532275422755227562275722758227592276022761227622276322764227652276622767227682276922770227712277222773227742277522776227772277822779227802278122782227832278422785227862278722788227892279022791227922279322794227952279622797227982279922800228012280222803228042280522806228072280822809228102281122812228132281422815228162281722818228192282022821228222282322824228252282622827228282282922830228312283222833228342283522836228372283822839228402284122842228432284422845228462284722848228492285022851228522285322854228552285622857228582285922860228612286222863228642286522866228672286822869228702287122872228732287422875228762287722878228792288022881228822288322884228852288622887228882288922890228912289222893228942289522896228972289822899229002290122902229032290422905229062290722908229092291022911229122291322914229152291622917229182291922920229212292222923229242292522926229272292822929229302293122932229332293422935229362293722938229392294022941229422294322944229452294622947229482294922950229512295222953229542295522956229572295822959229602296122962229632296422965229662296722968229692297022971229722297322974229752297622977229782297922980229812298222983229842298522986229872298822989229902299122992229932299422995229962299722998229992300023001230022300323004230052300623007230082300923010230112301223013230142301523016230172301823019230202302123022230232302423025230262302723028230292303023031230322303323034230352303623037230382303923040230412304223043230442304523046230472304823049230502305123052230532305423055230562305723058230592306023061230622306323064230652306623067230682306923070230712307223073230742307523076230772307823079230802308123082230832308423085230862308723088230892309023091230922309323094230952309623097230982309923100231012310223103231042310523106231072310823109231102311123112231132311423115231162311723118231192312023121231222312323124231252312623127231282312923130231312313223133231342313523136231372313823139231402314123142231432314423145231462314723148231492315023151231522315323154231552315623157231582315923160231612316223163231642316523166231672316823169231702317123172231732317423175231762317723178231792318023181231822318323184231852318623187231882318923190231912319223193231942319523196231972319823199232002320123202232032320423205232062320723208232092321023211232122321323214232152321623217232182321923220232212322223223232242322523226232272322823229232302323123232232332323423235232362323723238232392324023241232422324323244232452324623247232482324923250232512325223253232542325523256232572325823259232602326123262232632326423265232662326723268232692327023271232722327323274232752327623277232782327923280232812328223283232842328523286232872328823289232902329123292232932329423295232962329723298232992330023301233022330323304233052330623307233082330923310233112331223313233142331523316233172331823319233202332123322233232332423325233262332723328233292333023331233322333323334233352333623337233382333923340233412334223343233442334523346233472334823349233502335123352233532335423355233562335723358233592336023361233622336323364233652336623367233682336923370233712337223373233742337523376233772337823379233802338123382233832338423385233862338723388233892339023391233922339323394233952339623397233982339923400234012340223403234042340523406234072340823409234102341123412234132341423415234162341723418234192342023421234222342323424234252342623427234282342923430234312343223433234342343523436234372343823439234402344123442234432344423445234462344723448234492345023451234522345323454234552345623457234582345923460234612346223463234642346523466234672346823469234702347123472234732347423475234762347723478234792348023481234822348323484234852348623487234882348923490234912349223493234942349523496234972349823499235002350123502235032350423505235062350723508235092351023511235122351323514235152351623517235182351923520235212352223523235242352523526235272352823529235302353123532235332353423535235362353723538235392354023541235422354323544235452354623547235482354923550235512355223553235542355523556235572355823559235602356123562235632356423565235662356723568235692357023571235722357323574235752357623577235782357923580235812358223583235842358523586235872358823589235902359123592235932359423595235962359723598235992360023601236022360323604236052360623607236082360923610236112361223613236142361523616236172361823619236202362123622236232362423625236262362723628236292363023631236322363323634236352363623637236382363923640236412364223643236442364523646236472364823649236502365123652236532365423655236562365723658236592366023661236622366323664236652366623667236682366923670236712367223673236742367523676236772367823679236802368123682236832368423685236862368723688236892369023691236922369323694236952369623697236982369923700237012370223703237042370523706237072370823709237102371123712237132371423715237162371723718237192372023721237222372323724237252372623727237282372923730237312373223733237342373523736237372373823739237402374123742237432374423745237462374723748237492375023751237522375323754237552375623757237582375923760237612376223763237642376523766237672376823769237702377123772237732377423775237762377723778237792378023781237822378323784237852378623787237882378923790237912379223793237942379523796237972379823799238002380123802238032380423805238062380723808238092381023811238122381323814238152381623817238182381923820238212382223823238242382523826238272382823829238302383123832238332383423835238362383723838238392384023841238422384323844238452384623847238482384923850238512385223853238542385523856238572385823859238602386123862238632386423865238662386723868238692387023871238722387323874238752387623877238782387923880238812388223883238842388523886238872388823889238902389123892238932389423895238962389723898238992390023901239022390323904239052390623907239082390923910239112391223913239142391523916239172391823919239202392123922239232392423925239262392723928239292393023931239322393323934239352393623937239382393923940239412394223943239442394523946239472394823949239502395123952239532395423955239562395723958239592396023961239622396323964239652396623967239682396923970239712397223973239742397523976239772397823979239802398123982239832398423985239862398723988239892399023991239922399323994239952399623997239982399924000240012400224003240042400524006240072400824009240102401124012240132401424015240162401724018240192402024021240222402324024240252402624027240282402924030240312403224033240342403524036240372403824039240402404124042240432404424045240462404724048240492405024051240522405324054240552405624057240582405924060240612406224063240642406524066240672406824069240702407124072240732407424075240762407724078240792408024081240822408324084240852408624087240882408924090240912409224093240942409524096240972409824099241002410124102241032410424105241062410724108241092411024111241122411324114241152411624117241182411924120241212412224123241242412524126241272412824129241302413124132241332413424135241362413724138241392414024141241422414324144241452414624147241482414924150241512415224153241542415524156241572415824159241602416124162241632416424165241662416724168241692417024171241722417324174241752417624177241782417924180241812418224183241842418524186241872418824189241902419124192241932419424195241962419724198241992420024201242022420324204242052420624207242082420924210242112421224213242142421524216242172421824219242202422124222242232422424225242262422724228242292423024231242322423324234242352423624237242382423924240242412424224243242442424524246242472424824249242502425124252242532425424255242562425724258242592426024261242622426324264242652426624267242682426924270242712427224273242742427524276242772427824279242802428124282242832428424285242862428724288242892429024291242922429324294242952429624297242982429924300243012430224303243042430524306243072430824309243102431124312243132431424315243162431724318243192432024321243222432324324243252432624327243282432924330243312433224333243342433524336243372433824339243402434124342243432434424345243462434724348243492435024351243522435324354243552435624357243582435924360243612436224363243642436524366243672436824369243702437124372243732437424375243762437724378243792438024381243822438324384243852438624387243882438924390243912439224393243942439524396243972439824399244002440124402244032440424405244062440724408244092441024411244122441324414244152441624417244182441924420244212442224423244242442524426244272442824429244302443124432244332443424435244362443724438244392444024441244422444324444244452444624447244482444924450244512445224453244542445524456244572445824459244602446124462244632446424465244662446724468244692447024471244722447324474244752447624477244782447924480244812448224483244842448524486244872448824489244902449124492244932449424495244962449724498244992450024501245022450324504245052450624507245082450924510245112451224513245142451524516245172451824519245202452124522245232452424525245262452724528245292453024531245322453324534245352453624537245382453924540245412454224543245442454524546245472454824549245502455124552245532455424555245562455724558245592456024561245622456324564245652456624567245682456924570245712457224573245742457524576245772457824579245802458124582245832458424585245862458724588245892459024591245922459324594245952459624597245982459924600246012460224603246042460524606246072460824609246102461124612246132461424615246162461724618246192462024621246222462324624246252462624627246282462924630246312463224633246342463524636246372463824639246402464124642246432464424645246462464724648246492465024651246522465324654246552465624657246582465924660246612466224663246642466524666246672466824669246702467124672246732467424675246762467724678246792468024681246822468324684246852468624687246882468924690246912469224693246942469524696246972469824699247002470124702247032470424705247062470724708247092471024711247122471324714247152471624717247182471924720247212472224723247242472524726247272472824729247302473124732247332473424735247362473724738247392474024741247422474324744247452474624747247482474924750247512475224753247542475524756247572475824759247602476124762247632476424765247662476724768247692477024771247722477324774247752477624777247782477924780247812478224783247842478524786247872478824789247902479124792247932479424795247962479724798247992480024801248022480324804248052480624807248082480924810248112481224813248142481524816248172481824819248202482124822248232482424825248262482724828248292483024831248322483324834248352483624837248382483924840248412484224843248442484524846248472484824849248502485124852248532485424855248562485724858248592486024861248622486324864248652486624867248682486924870248712487224873248742487524876248772487824879248802488124882248832488424885248862488724888248892489024891248922489324894248952489624897248982489924900249012490224903249042490524906249072490824909249102491124912249132491424915249162491724918249192492024921249222492324924249252492624927249282492924930249312493224933249342493524936249372493824939249402494124942249432494424945249462494724948249492495024951249522495324954249552495624957249582495924960249612496224963249642496524966249672496824969249702497124972249732497424975249762497724978249792498024981249822498324984249852498624987249882498924990249912499224993249942499524996249972499824999250002500125002250032500425005250062500725008250092501025011250122501325014250152501625017250182501925020250212502225023250242502525026250272502825029250302503125032250332503425035250362503725038250392504025041250422504325044250452504625047250482504925050250512505225053250542505525056250572505825059250602506125062250632506425065250662506725068250692507025071250722507325074250752507625077250782507925080250812508225083250842508525086250872508825089250902509125092250932509425095250962509725098250992510025101251022510325104251052510625107251082510925110251112511225113251142511525116251172511825119251202512125122251232512425125251262512725128251292513025131251322513325134251352513625137251382513925140251412514225143251442514525146251472514825149251502515125152251532515425155251562515725158251592516025161251622516325164251652516625167251682516925170251712517225173251742517525176251772517825179251802518125182251832518425185251862518725188251892519025191251922519325194251952519625197251982519925200252012520225203252042520525206252072520825209252102521125212252132521425215252162521725218252192522025221252222522325224252252522625227252282522925230252312523225233252342523525236252372523825239252402524125242252432524425245252462524725248252492525025251252522525325254252552525625257252582525925260252612526225263252642526525266252672526825269252702527125272252732527425275252762527725278252792528025281252822528325284252852528625287252882528925290252912529225293252942529525296252972529825299253002530125302253032530425305253062530725308253092531025311253122531325314253152531625317253182531925320253212532225323253242532525326253272532825329253302533125332253332533425335253362533725338253392534025341253422534325344253452534625347253482534925350253512535225353253542535525356253572535825359253602536125362253632536425365253662536725368253692537025371253722537325374253752537625377253782537925380253812538225383253842538525386253872538825389253902539125392253932539425395253962539725398253992540025401254022540325404254052540625407254082540925410254112541225413254142541525416254172541825419254202542125422254232542425425254262542725428254292543025431254322543325434254352543625437254382543925440254412544225443254442544525446254472544825449254502545125452254532545425455254562545725458254592546025461254622546325464254652546625467254682546925470254712547225473254742547525476254772547825479254802548125482254832548425485254862548725488254892549025491254922549325494254952549625497254982549925500255012550225503255042550525506255072550825509255102551125512255132551425515255162551725518255192552025521255222552325524255252552625527255282552925530255312553225533255342553525536255372553825539255402554125542255432554425545255462554725548255492555025551255522555325554255552555625557255582555925560255612556225563255642556525566255672556825569255702557125572255732557425575255762557725578255792558025581255822558325584255852558625587255882558925590255912559225593255942559525596255972559825599256002560125602256032560425605256062560725608256092561025611256122561325614256152561625617256182561925620256212562225623256242562525626256272562825629256302563125632256332563425635256362563725638256392564025641256422564325644256452564625647256482564925650256512565225653256542565525656256572565825659256602566125662256632566425665256662566725668256692567025671256722567325674256752567625677256782567925680256812568225683256842568525686256872568825689256902569125692256932569425695256962569725698256992570025701257022570325704257052570625707257082570925710257112571225713257142571525716257172571825719257202572125722257232572425725257262572725728257292573025731257322573325734257352573625737257382573925740257412574225743257442574525746257472574825749257502575125752257532575425755257562575725758257592576025761257622576325764257652576625767257682576925770257712577225773257742577525776257772577825779257802578125782257832578425785257862578725788257892579025791257922579325794257952579625797257982579925800258012580225803258042580525806258072580825809258102581125812258132581425815258162581725818258192582025821258222582325824258252582625827258282582925830258312583225833258342583525836258372583825839258402584125842258432584425845258462584725848258492585025851258522585325854258552585625857258582585925860258612586225863258642586525866258672586825869258702587125872258732587425875258762587725878258792588025881258822588325884258852588625887258882588925890258912589225893258942589525896258972589825899259002590125902259032590425905259062590725908259092591025911259122591325914259152591625917259182591925920259212592225923259242592525926259272592825929259302593125932259332593425935259362593725938259392594025941259422594325944259452594625947259482594925950259512595225953259542595525956259572595825959259602596125962259632596425965259662596725968259692597025971259722597325974259752597625977259782597925980259812598225983259842598525986259872598825989259902599125992259932599425995259962599725998259992600026001260022600326004260052600626007260082600926010260112601226013260142601526016260172601826019260202602126022260232602426025260262602726028260292603026031260322603326034260352603626037260382603926040260412604226043260442604526046260472604826049260502605126052260532605426055260562605726058260592606026061260622606326064260652606626067260682606926070260712607226073260742607526076260772607826079260802608126082260832608426085260862608726088260892609026091260922609326094260952609626097260982609926100261012610226103261042610526106261072610826109261102611126112261132611426115261162611726118261192612026121261222612326124261252612626127261282612926130261312613226133261342613526136261372613826139261402614126142261432614426145261462614726148261492615026151261522615326154261552615626157261582615926160261612616226163261642616526166261672616826169261702617126172261732617426175261762617726178261792618026181261822618326184261852618626187261882618926190261912619226193261942619526196261972619826199262002620126202262032620426205262062620726208262092621026211262122621326214262152621626217262182621926220262212622226223262242622526226262272622826229262302623126232262332623426235262362623726238262392624026241262422624326244262452624626247262482624926250262512625226253262542625526256262572625826259262602626126262262632626426265262662626726268262692627026271262722627326274262752627626277262782627926280262812628226283262842628526286262872628826289262902629126292262932629426295262962629726298262992630026301263022630326304263052630626307263082630926310263112631226313263142631526316263172631826319263202632126322263232632426325263262632726328263292633026331263322633326334263352633626337263382633926340263412634226343263442634526346263472634826349263502635126352263532635426355263562635726358263592636026361263622636326364263652636626367263682636926370263712637226373263742637526376263772637826379263802638126382263832638426385263862638726388263892639026391263922639326394263952639626397263982639926400264012640226403264042640526406264072640826409264102641126412264132641426415264162641726418264192642026421264222642326424264252642626427264282642926430264312643226433264342643526436264372643826439264402644126442264432644426445264462644726448264492645026451264522645326454264552645626457264582645926460264612646226463264642646526466264672646826469264702647126472264732647426475264762647726478264792648026481264822648326484264852648626487264882648926490264912649226493264942649526496264972649826499265002650126502265032650426505265062650726508265092651026511265122651326514265152651626517265182651926520265212652226523265242652526526265272652826529265302653126532265332653426535265362653726538265392654026541265422654326544265452654626547265482654926550265512655226553265542655526556265572655826559265602656126562265632656426565265662656726568265692657026571265722657326574265752657626577265782657926580265812658226583265842658526586265872658826589265902659126592265932659426595265962659726598265992660026601266022660326604266052660626607266082660926610266112661226613266142661526616266172661826619266202662126622266232662426625266262662726628266292663026631266322663326634266352663626637266382663926640266412664226643266442664526646266472664826649266502665126652266532665426655266562665726658266592666026661266622666326664266652666626667266682666926670266712667226673266742667526676266772667826679266802668126682266832668426685266862668726688266892669026691266922669326694266952669626697266982669926700267012670226703267042670526706267072670826709267102671126712267132671426715267162671726718267192672026721267222672326724267252672626727267282672926730267312673226733267342673526736267372673826739267402674126742267432674426745267462674726748267492675026751267522675326754267552675626757267582675926760267612676226763267642676526766267672676826769267702677126772267732677426775267762677726778267792678026781267822678326784267852678626787267882678926790267912679226793267942679526796267972679826799268002680126802268032680426805268062680726808268092681026811268122681326814268152681626817268182681926820268212682226823268242682526826268272682826829268302683126832268332683426835268362683726838268392684026841268422684326844268452684626847268482684926850268512685226853268542685526856268572685826859268602686126862268632686426865268662686726868268692687026871268722687326874268752687626877268782687926880268812688226883268842688526886268872688826889268902689126892268932689426895268962689726898268992690026901269022690326904269052690626907269082690926910269112691226913269142691526916269172691826919269202692126922269232692426925269262692726928269292693026931269322693326934269352693626937269382693926940269412694226943269442694526946269472694826949269502695126952269532695426955269562695726958269592696026961269622696326964269652696626967269682696926970269712697226973269742697526976269772697826979269802698126982269832698426985269862698726988269892699026991269922699326994269952699626997269982699927000270012700227003270042700527006270072700827009270102701127012270132701427015270162701727018270192702027021270222702327024270252702627027270282702927030270312703227033270342703527036270372703827039270402704127042270432704427045270462704727048270492705027051270522705327054270552705627057270582705927060270612706227063270642706527066270672706827069270702707127072270732707427075270762707727078270792708027081270822708327084270852708627087270882708927090270912709227093270942709527096270972709827099271002710127102271032710427105271062710727108271092711027111271122711327114271152711627117271182711927120271212712227123271242712527126271272712827129271302713127132271332713427135271362713727138271392714027141271422714327144271452714627147271482714927150271512715227153271542715527156271572715827159271602716127162271632716427165271662716727168271692717027171271722717327174271752717627177271782717927180271812718227183271842718527186271872718827189271902719127192271932719427195271962719727198271992720027201272022720327204272052720627207272082720927210272112721227213272142721527216272172721827219272202722127222272232722427225272262722727228272292723027231272322723327234272352723627237272382723927240272412724227243272442724527246272472724827249272502725127252272532725427255272562725727258272592726027261272622726327264272652726627267272682726927270272712727227273272742727527276272772727827279272802728127282272832728427285272862728727288272892729027291272922729327294272952729627297272982729927300273012730227303273042730527306273072730827309273102731127312273132731427315273162731727318273192732027321273222732327324273252732627327273282732927330273312733227333273342733527336273372733827339273402734127342273432734427345273462734727348273492735027351273522735327354273552735627357273582735927360273612736227363273642736527366273672736827369273702737127372273732737427375273762737727378273792738027381273822738327384273852738627387273882738927390273912739227393273942739527396273972739827399274002740127402274032740427405274062740727408274092741027411274122741327414274152741627417274182741927420274212742227423274242742527426274272742827429274302743127432274332743427435274362743727438274392744027441274422744327444274452744627447274482744927450274512745227453274542745527456274572745827459274602746127462274632746427465274662746727468274692747027471274722747327474274752747627477274782747927480274812748227483274842748527486274872748827489274902749127492274932749427495274962749727498274992750027501275022750327504275052750627507275082750927510275112751227513275142751527516275172751827519275202752127522275232752427525275262752727528275292753027531275322753327534275352753627537275382753927540275412754227543275442754527546275472754827549275502755127552275532755427555275562755727558275592756027561275622756327564275652756627567275682756927570275712757227573275742757527576275772757827579275802758127582275832758427585275862758727588275892759027591275922759327594275952759627597275982759927600276012760227603276042760527606276072760827609276102761127612276132761427615276162761727618276192762027621276222762327624276252762627627276282762927630276312763227633276342763527636276372763827639276402764127642276432764427645276462764727648276492765027651276522765327654276552765627657276582765927660276612766227663276642766527666276672766827669276702767127672276732767427675276762767727678276792768027681276822768327684276852768627687276882768927690276912769227693276942769527696276972769827699277002770127702277032770427705277062770727708277092771027711277122771327714277152771627717277182771927720277212772227723277242772527726277272772827729277302773127732277332773427735277362773727738277392774027741277422774327744277452774627747277482774927750277512775227753277542775527756277572775827759277602776127762277632776427765277662776727768277692777027771277722777327774277752777627777277782777927780277812778227783277842778527786277872778827789277902779127792277932779427795277962779727798277992780027801278022780327804278052780627807278082780927810278112781227813278142781527816278172781827819278202782127822278232782427825278262782727828278292783027831278322783327834278352783627837278382783927840278412784227843278442784527846278472784827849278502785127852278532785427855278562785727858278592786027861278622786327864278652786627867278682786927870278712787227873278742787527876278772787827879278802788127882278832788427885278862788727888278892789027891278922789327894278952789627897278982789927900279012790227903279042790527906279072790827909279102791127912279132791427915279162791727918279192792027921279222792327924279252792627927279282792927930279312793227933279342793527936279372793827939279402794127942279432794427945279462794727948279492795027951279522795327954279552795627957279582795927960279612796227963279642796527966279672796827969279702797127972279732797427975279762797727978279792798027981279822798327984279852798627987279882798927990279912799227993279942799527996279972799827999280002800128002280032800428005280062800728008280092801028011280122801328014280152801628017280182801928020280212802228023280242802528026280272802828029280302803128032280332803428035280362803728038280392804028041280422804328044280452804628047280482804928050280512805228053280542805528056280572805828059280602806128062280632806428065280662806728068280692807028071280722807328074280752807628077280782807928080280812808228083280842808528086280872808828089280902809128092280932809428095280962809728098280992810028101281022810328104281052810628107281082810928110281112811228113281142811528116281172811828119281202812128122281232812428125281262812728128281292813028131281322813328134281352813628137281382813928140281412814228143281442814528146281472814828149281502815128152281532815428155281562815728158281592816028161281622816328164281652816628167281682816928170281712817228173281742817528176281772817828179281802818128182281832818428185281862818728188281892819028191281922819328194281952819628197281982819928200282012820228203282042820528206282072820828209282102821128212282132821428215282162821728218282192822028221282222822328224282252822628227282282822928230282312823228233282342823528236282372823828239282402824128242282432824428245282462824728248282492825028251282522825328254282552825628257282582825928260282612826228263282642826528266282672826828269282702827128272282732827428275282762827728278282792828028281282822828328284282852828628287282882828928290282912829228293282942829528296282972829828299283002830128302283032830428305283062830728308283092831028311283122831328314283152831628317283182831928320283212832228323283242832528326283272832828329283302833128332283332833428335283362833728338283392834028341283422834328344283452834628347283482834928350283512835228353283542835528356283572835828359283602836128362283632836428365283662836728368283692837028371283722837328374283752837628377283782837928380283812838228383283842838528386283872838828389283902839128392283932839428395283962839728398283992840028401284022840328404284052840628407284082840928410284112841228413284142841528416284172841828419284202842128422284232842428425284262842728428284292843028431284322843328434284352843628437284382843928440284412844228443284442844528446284472844828449284502845128452284532845428455284562845728458284592846028461284622846328464284652846628467284682846928470284712847228473284742847528476284772847828479284802848128482284832848428485284862848728488284892849028491284922849328494284952849628497284982849928500285012850228503285042850528506285072850828509285102851128512285132851428515285162851728518285192852028521285222852328524285252852628527285282852928530285312853228533285342853528536285372853828539285402854128542285432854428545285462854728548285492855028551285522855328554285552855628557285582855928560285612856228563285642856528566285672856828569285702857128572285732857428575285762857728578285792858028581285822858328584285852858628587285882858928590285912859228593285942859528596285972859828599286002860128602286032860428605286062860728608286092861028611286122861328614286152861628617286182861928620286212862228623286242862528626286272862828629286302863128632286332863428635286362863728638286392864028641286422864328644286452864628647286482864928650286512865228653286542865528656286572865828659286602866128662286632866428665286662866728668286692867028671286722867328674286752867628677286782867928680286812868228683286842868528686286872868828689286902869128692286932869428695286962869728698286992870028701287022870328704287052870628707287082870928710287112871228713287142871528716287172871828719287202872128722287232872428725287262872728728287292873028731287322873328734287352873628737287382873928740287412874228743287442874528746287472874828749287502875128752287532875428755287562875728758287592876028761287622876328764287652876628767287682876928770287712877228773287742877528776287772877828779287802878128782287832878428785287862878728788287892879028791287922879328794287952879628797287982879928800288012880228803288042880528806288072880828809288102881128812288132881428815288162881728818288192882028821288222882328824288252882628827288282882928830288312883228833288342883528836288372883828839288402884128842288432884428845288462884728848288492885028851288522885328854288552885628857288582885928860288612886228863288642886528866288672886828869288702887128872288732887428875288762887728878288792888028881288822888328884288852888628887288882888928890288912889228893288942889528896288972889828899289002890128902289032890428905289062890728908289092891028911289122891328914289152891628917289182891928920289212892228923289242892528926289272892828929289302893128932289332893428935289362893728938289392894028941289422894328944289452894628947289482894928950289512895228953289542895528956289572895828959289602896128962289632896428965289662896728968289692897028971289722897328974289752897628977289782897928980289812898228983289842898528986289872898828989289902899128992289932899428995289962899728998289992900029001290022900329004290052900629007290082900929010290112901229013290142901529016290172901829019290202902129022290232902429025290262902729028290292903029031290322903329034290352903629037290382903929040290412904229043290442904529046290472904829049290502905129052290532905429055290562905729058290592906029061290622906329064290652906629067290682906929070290712907229073290742907529076290772907829079290802908129082290832908429085290862908729088290892909029091290922909329094290952909629097290982909929100291012910229103291042910529106291072910829109291102911129112291132911429115291162911729118291192912029121291222912329124291252912629127291282912929130291312913229133291342913529136291372913829139291402914129142291432914429145291462914729148291492915029151291522915329154291552915629157291582915929160291612916229163291642916529166291672916829169291702917129172291732917429175291762917729178291792918029181291822918329184291852918629187291882918929190291912919229193291942919529196291972919829199292002920129202292032920429205292062920729208292092921029211292122921329214292152921629217292182921929220292212922229223292242922529226292272922829229292302923129232292332923429235292362923729238292392924029241292422924329244292452924629247292482924929250292512925229253292542925529256292572925829259292602926129262292632926429265292662926729268292692927029271292722927329274292752927629277292782927929280292812928229283292842928529286292872928829289292902929129292292932929429295292962929729298292992930029301293022930329304293052930629307293082930929310293112931229313293142931529316293172931829319293202932129322293232932429325293262932729328293292933029331293322933329334293352933629337293382933929340293412934229343293442934529346293472934829349293502935129352293532935429355293562935729358293592936029361293622936329364293652936629367293682936929370293712937229373293742937529376293772937829379293802938129382293832938429385293862938729388293892939029391293922939329394293952939629397293982939929400294012940229403294042940529406294072940829409294102941129412294132941429415294162941729418294192942029421294222942329424294252942629427294282942929430294312943229433294342943529436294372943829439294402944129442294432944429445294462944729448294492945029451294522945329454294552945629457294582945929460294612946229463294642946529466294672946829469294702947129472294732947429475294762947729478294792948029481294822948329484294852948629487294882948929490294912949229493294942949529496294972949829499295002950129502295032950429505295062950729508295092951029511295122951329514295152951629517295182951929520295212952229523295242952529526295272952829529295302953129532295332953429535295362953729538295392954029541295422954329544295452954629547295482954929550295512955229553295542955529556295572955829559295602956129562295632956429565295662956729568295692957029571295722957329574295752957629577295782957929580295812958229583295842958529586295872958829589295902959129592295932959429595295962959729598295992960029601296022960329604296052960629607296082960929610296112961229613296142961529616296172961829619296202962129622296232962429625296262962729628296292963029631296322963329634296352963629637296382963929640296412964229643296442964529646296472964829649296502965129652296532965429655296562965729658296592966029661296622966329664296652966629667296682966929670296712967229673296742967529676296772967829679296802968129682296832968429685296862968729688296892969029691296922969329694296952969629697296982969929700297012970229703297042970529706297072970829709297102971129712297132971429715297162971729718297192972029721297222972329724297252972629727297282972929730297312973229733297342973529736297372973829739297402974129742297432974429745297462974729748297492975029751297522975329754297552975629757297582975929760297612976229763297642976529766297672976829769297702977129772297732977429775297762977729778297792978029781297822978329784297852978629787297882978929790297912979229793297942979529796297972979829799298002980129802298032980429805298062980729808298092981029811298122981329814298152981629817298182981929820298212982229823298242982529826298272982829829298302983129832298332983429835298362983729838298392984029841298422984329844298452984629847298482984929850298512985229853298542985529856298572985829859298602986129862298632986429865298662986729868298692987029871298722987329874298752987629877298782987929880298812988229883298842988529886298872988829889298902989129892298932989429895298962989729898298992990029901299022990329904299052990629907299082990929910299112991229913299142991529916299172991829919299202992129922299232992429925299262992729928299292993029931299322993329934299352993629937299382993929940299412994229943299442994529946299472994829949299502995129952299532995429955299562995729958299592996029961299622996329964299652996629967299682996929970299712997229973299742997529976299772997829979299802998129982299832998429985299862998729988299892999029991299922999329994299952999629997299982999930000300013000230003300043000530006300073000830009300103001130012300133001430015300163001730018300193002030021300223002330024300253002630027300283002930030300313003230033300343003530036300373003830039300403004130042300433004430045300463004730048300493005030051300523005330054300553005630057300583005930060300613006230063300643006530066300673006830069300703007130072300733007430075300763007730078300793008030081300823008330084300853008630087300883008930090300913009230093300943009530096300973009830099301003010130102301033010430105301063010730108301093011030111301123011330114301153011630117301183011930120301213012230123301243012530126301273012830129301303013130132301333013430135301363013730138301393014030141301423014330144301453014630147301483014930150301513015230153301543015530156301573015830159301603016130162301633016430165301663016730168301693017030171301723017330174301753017630177301783017930180301813018230183301843018530186301873018830189301903019130192301933019430195301963019730198301993020030201302023020330204302053020630207302083020930210302113021230213302143021530216302173021830219302203022130222302233022430225302263022730228302293023030231302323023330234302353023630237302383023930240302413024230243302443024530246302473024830249302503025130252302533025430255302563025730258302593026030261302623026330264302653026630267302683026930270302713027230273302743027530276302773027830279302803028130282302833028430285302863028730288302893029030291302923029330294302953029630297302983029930300303013030230303303043030530306303073030830309303103031130312303133031430315303163031730318303193032030321303223032330324303253032630327303283032930330303313033230333303343033530336303373033830339303403034130342303433034430345303463034730348303493035030351303523035330354303553035630357303583035930360303613036230363303643036530366303673036830369303703037130372303733037430375303763037730378303793038030381303823038330384303853038630387303883038930390303913039230393303943039530396303973039830399304003040130402304033040430405304063040730408304093041030411304123041330414304153041630417304183041930420304213042230423304243042530426304273042830429304303043130432304333043430435304363043730438304393044030441304423044330444304453044630447304483044930450304513045230453304543045530456304573045830459304603046130462304633046430465304663046730468304693047030471304723047330474304753047630477304783047930480304813048230483304843048530486304873048830489304903049130492304933049430495304963049730498304993050030501305023050330504305053050630507305083050930510305113051230513305143051530516305173051830519305203052130522305233052430525305263052730528305293053030531305323053330534305353053630537305383053930540305413054230543305443054530546305473054830549305503055130552305533055430555305563055730558305593056030561305623056330564305653056630567305683056930570305713057230573305743057530576305773057830579305803058130582305833058430585305863058730588305893059030591305923059330594305953059630597305983059930600306013060230603306043060530606306073060830609306103061130612306133061430615306163061730618306193062030621306223062330624306253062630627306283062930630306313063230633306343063530636306373063830639306403064130642306433064430645306463064730648306493065030651306523065330654306553065630657306583065930660306613066230663306643066530666306673066830669306703067130672306733067430675306763067730678306793068030681306823068330684306853068630687306883068930690306913069230693306943069530696306973069830699307003070130702307033070430705307063070730708307093071030711307123071330714307153071630717307183071930720307213072230723307243072530726307273072830729307303073130732307333073430735307363073730738307393074030741307423074330744307453074630747307483074930750307513075230753307543075530756307573075830759307603076130762307633076430765307663076730768307693077030771307723077330774307753077630777307783077930780307813078230783307843078530786307873078830789307903079130792307933079430795307963079730798307993080030801308023080330804308053080630807308083080930810308113081230813308143081530816308173081830819308203082130822308233082430825308263082730828308293083030831308323083330834308353083630837308383083930840308413084230843308443084530846308473084830849308503085130852308533085430855308563085730858308593086030861308623086330864308653086630867308683086930870308713087230873308743087530876308773087830879308803088130882308833088430885308863088730888308893089030891308923089330894308953089630897308983089930900309013090230903309043090530906309073090830909309103091130912309133091430915309163091730918309193092030921309223092330924309253092630927309283092930930309313093230933309343093530936309373093830939309403094130942309433094430945309463094730948309493095030951309523095330954309553095630957309583095930960309613096230963309643096530966309673096830969309703097130972309733097430975309763097730978309793098030981309823098330984309853098630987309883098930990309913099230993309943099530996309973099830999310003100131002310033100431005310063100731008310093101031011310123101331014310153101631017310183101931020310213102231023310243102531026310273102831029310303103131032310333103431035310363103731038310393104031041310423104331044310453104631047310483104931050310513105231053310543105531056310573105831059310603106131062310633106431065310663106731068310693107031071310723107331074310753107631077310783107931080310813108231083310843108531086310873108831089310903109131092310933109431095310963109731098310993110031101311023110331104311053110631107311083110931110311113111231113311143111531116311173111831119311203112131122311233112431125311263112731128311293113031131311323113331134311353113631137311383113931140311413114231143311443114531146311473114831149311503115131152311533115431155311563115731158311593116031161311623116331164311653116631167311683116931170311713117231173311743117531176311773117831179311803118131182311833118431185311863118731188311893119031191311923119331194311953119631197311983119931200312013120231203312043120531206312073120831209312103121131212312133121431215312163121731218312193122031221312223122331224312253122631227312283122931230312313123231233312343123531236312373123831239312403124131242312433124431245312463124731248312493125031251312523125331254312553125631257312583125931260312613126231263312643126531266312673126831269312703127131272312733127431275312763127731278312793128031281312823128331284312853128631287312883128931290312913129231293312943129531296312973129831299313003130131302313033130431305313063130731308313093131031311313123131331314313153131631317313183131931320313213132231323313243132531326313273132831329313303133131332313333133431335313363133731338313393134031341313423134331344313453134631347313483134931350313513135231353313543135531356313573135831359313603136131362313633136431365313663136731368313693137031371313723137331374313753137631377313783137931380313813138231383313843138531386313873138831389313903139131392313933139431395313963139731398313993140031401314023140331404314053140631407314083140931410314113141231413314143141531416314173141831419314203142131422314233142431425314263142731428314293143031431314323143331434314353143631437314383143931440314413144231443314443144531446314473144831449314503145131452314533145431455314563145731458314593146031461314623146331464314653146631467314683146931470314713147231473314743147531476314773147831479314803148131482314833148431485314863148731488314893149031491314923149331494314953149631497314983149931500315013150231503315043150531506315073150831509315103151131512315133151431515315163151731518315193152031521315223152331524315253152631527315283152931530315313153231533315343153531536315373153831539315403154131542315433154431545315463154731548315493155031551315523155331554315553155631557315583155931560315613156231563315643156531566315673156831569315703157131572315733157431575315763157731578315793158031581315823158331584315853158631587315883158931590315913159231593315943159531596315973159831599316003160131602316033160431605316063160731608316093161031611316123161331614316153161631617316183161931620316213162231623316243162531626316273162831629316303163131632316333163431635316363163731638316393164031641316423164331644316453164631647316483164931650316513165231653316543165531656316573165831659316603166131662316633166431665316663166731668316693167031671316723167331674316753167631677316783167931680316813168231683316843168531686316873168831689316903169131692316933169431695316963169731698316993170031701317023170331704317053170631707317083170931710317113171231713317143171531716317173171831719317203172131722317233172431725317263172731728317293173031731317323173331734317353173631737317383173931740317413174231743317443174531746317473174831749317503175131752317533175431755317563175731758317593176031761317623176331764317653176631767317683176931770317713177231773317743177531776317773177831779317803178131782317833178431785317863178731788317893179031791317923179331794317953179631797317983179931800318013180231803318043180531806318073180831809318103181131812318133181431815318163181731818318193182031821318223182331824318253182631827318283182931830318313183231833318343183531836318373183831839318403184131842318433184431845318463184731848318493185031851318523185331854318553185631857318583185931860318613186231863318643186531866318673186831869318703187131872318733187431875318763187731878318793188031881318823188331884318853188631887318883188931890318913189231893318943189531896318973189831899319003190131902319033190431905319063190731908319093191031911319123191331914319153191631917319183191931920319213192231923319243192531926319273192831929319303193131932319333193431935319363193731938319393194031941319423194331944319453194631947319483194931950319513195231953319543195531956319573195831959319603196131962319633196431965319663196731968319693197031971319723197331974319753197631977319783197931980319813198231983319843198531986319873198831989319903199131992319933199431995319963199731998319993200032001320023200332004320053200632007320083200932010320113201232013320143201532016320173201832019320203202132022320233202432025320263202732028320293203032031320323203332034320353203632037320383203932040320413204232043320443204532046320473204832049320503205132052320533205432055320563205732058320593206032061320623206332064320653206632067320683206932070320713207232073320743207532076320773207832079320803208132082320833208432085320863208732088320893209032091320923209332094320953209632097320983209932100321013210232103321043210532106321073210832109321103211132112321133211432115321163211732118321193212032121321223212332124321253212632127321283212932130321313213232133321343213532136321373213832139321403214132142321433214432145321463214732148321493215032151321523215332154321553215632157321583215932160321613216232163321643216532166321673216832169321703217132172321733217432175321763217732178321793218032181321823218332184321853218632187321883218932190321913219232193321943219532196321973219832199322003220132202322033220432205322063220732208322093221032211322123221332214322153221632217322183221932220322213222232223322243222532226322273222832229322303223132232322333223432235322363223732238322393224032241322423224332244322453224632247322483224932250322513225232253322543225532256322573225832259322603226132262322633226432265322663226732268322693227032271322723227332274322753227632277322783227932280322813228232283322843228532286322873228832289322903229132292322933229432295322963229732298322993230032301323023230332304323053230632307323083230932310323113231232313323143231532316323173231832319323203232132322323233232432325323263232732328323293233032331323323233332334323353233632337323383233932340323413234232343323443234532346323473234832349323503235132352323533235432355323563235732358323593236032361323623236332364323653236632367323683236932370323713237232373323743237532376323773237832379323803238132382323833238432385323863238732388323893239032391323923239332394323953239632397323983239932400324013240232403324043240532406324073240832409324103241132412324133241432415324163241732418324193242032421324223242332424324253242632427324283242932430324313243232433324343243532436324373243832439324403244132442324433244432445324463244732448324493245032451324523245332454324553245632457324583245932460324613246232463324643246532466324673246832469324703247132472324733247432475324763247732478324793248032481324823248332484324853248632487324883248932490324913249232493324943249532496324973249832499325003250132502325033250432505325063250732508325093251032511325123251332514325153251632517325183251932520325213252232523325243252532526325273252832529325303253132532325333253432535325363253732538325393254032541325423254332544325453254632547325483254932550325513255232553325543255532556325573255832559325603256132562325633256432565325663256732568325693257032571325723257332574325753257632577325783257932580325813258232583325843258532586325873258832589325903259132592325933259432595325963259732598325993260032601326023260332604326053260632607326083260932610326113261232613326143261532616326173261832619326203262132622326233262432625326263262732628326293263032631326323263332634326353263632637326383263932640326413264232643326443264532646326473264832649326503265132652326533265432655326563265732658326593266032661326623266332664326653266632667326683266932670326713267232673326743267532676326773267832679326803268132682326833268432685326863268732688326893269032691326923269332694326953269632697326983269932700327013270232703327043270532706327073270832709327103271132712327133271432715327163271732718327193272032721327223272332724327253272632727327283272932730327313273232733327343273532736327373273832739327403274132742327433274432745327463274732748327493275032751327523275332754327553275632757327583275932760327613276232763327643276532766327673276832769327703277132772327733277432775327763277732778327793278032781327823278332784327853278632787327883278932790327913279232793327943279532796327973279832799328003280132802328033280432805328063280732808328093281032811328123281332814328153281632817328183281932820328213282232823328243282532826328273282832829328303283132832328333283432835328363283732838328393284032841328423284332844328453284632847328483284932850328513285232853328543285532856328573285832859328603286132862328633286432865328663286732868328693287032871328723287332874328753287632877328783287932880328813288232883328843288532886328873288832889328903289132892328933289432895328963289732898328993290032901329023290332904329053290632907329083290932910329113291232913329143291532916329173291832919329203292132922329233292432925329263292732928329293293032931329323293332934329353293632937329383293932940329413294232943329443294532946329473294832949329503295132952329533295432955329563295732958329593296032961329623296332964329653296632967329683296932970329713297232973329743297532976329773297832979329803298132982329833298432985329863298732988329893299032991329923299332994329953299632997329983299933000330013300233003330043300533006330073300833009330103301133012330133301433015330163301733018330193302033021330223302333024330253302633027330283302933030330313303233033330343303533036330373303833039330403304133042330433304433045330463304733048330493305033051330523305333054330553305633057330583305933060330613306233063330643306533066330673306833069330703307133072330733307433075330763307733078330793308033081330823308333084330853308633087330883308933090330913309233093330943309533096330973309833099331003310133102331033310433105331063310733108331093311033111331123311333114331153311633117331183311933120331213312233123331243312533126331273312833129331303313133132331333313433135331363313733138331393314033141331423314333144331453314633147331483314933150331513315233153331543315533156331573315833159331603316133162331633316433165331663316733168331693317033171331723317333174331753317633177331783317933180331813318233183331843318533186331873318833189331903319133192331933319433195331963319733198331993320033201332023320333204332053320633207332083320933210332113321233213332143321533216332173321833219332203322133222332233322433225332263322733228332293323033231332323323333234332353323633237332383323933240332413324233243332443324533246332473324833249332503325133252332533325433255332563325733258332593326033261332623326333264332653326633267332683326933270332713327233273332743327533276332773327833279332803328133282332833328433285332863328733288332893329033291332923329333294332953329633297332983329933300333013330233303333043330533306333073330833309333103331133312333133331433315333163331733318333193332033321333223332333324333253332633327333283332933330333313333233333333343333533336333373333833339333403334133342333433334433345333463334733348333493335033351333523335333354333553335633357333583335933360333613336233363333643336533366333673336833369333703337133372333733337433375333763337733378333793338033381333823338333384333853338633387333883338933390333913339233393333943339533396333973339833399334003340133402334033340433405334063340733408334093341033411334123341333414334153341633417334183341933420334213342233423334243342533426334273342833429334303343133432334333343433435334363343733438334393344033441334423344333444334453344633447334483344933450334513345233453334543345533456334573345833459334603346133462334633346433465334663346733468334693347033471334723347333474334753347633477334783347933480334813348233483334843348533486334873348833489334903349133492334933349433495334963349733498334993350033501335023350333504335053350633507335083350933510335113351233513335143351533516335173351833519335203352133522335233352433525335263352733528335293353033531335323353333534335353353633537335383353933540335413354233543335443354533546335473354833549335503355133552335533355433555335563355733558335593356033561335623356333564335653356633567335683356933570335713357233573335743357533576335773357833579335803358133582335833358433585335863358733588335893359033591335923359333594335953359633597335983359933600336013360233603336043360533606336073360833609336103361133612336133361433615336163361733618336193362033621336223362333624336253362633627336283362933630336313363233633336343363533636336373363833639336403364133642336433364433645336463364733648336493365033651336523365333654336553365633657336583365933660336613366233663336643366533666336673366833669336703367133672336733367433675336763367733678336793368033681336823368333684336853368633687336883368933690336913369233693336943369533696336973369833699337003370133702337033370433705337063370733708337093371033711337123371333714337153371633717337183371933720337213372233723337243372533726337273372833729337303373133732337333373433735337363373733738337393374033741337423374333744337453374633747337483374933750337513375233753337543375533756337573375833759337603376133762337633376433765337663376733768337693377033771337723377333774337753377633777337783377933780337813378233783337843378533786337873378833789337903379133792337933379433795337963379733798337993380033801338023380333804338053380633807338083380933810338113381233813338143381533816338173381833819338203382133822338233382433825338263382733828338293383033831338323383333834338353383633837338383383933840338413384233843338443384533846338473384833849338503385133852338533385433855338563385733858338593386033861338623386333864338653386633867338683386933870338713387233873338743387533876338773387833879338803388133882338833388433885338863388733888338893389033891338923389333894338953389633897338983389933900339013390233903339043390533906339073390833909339103391133912339133391433915339163391733918339193392033921339223392333924339253392633927339283392933930339313393233933339343393533936339373393833939339403394133942339433394433945339463394733948339493395033951339523395333954339553395633957339583395933960339613396233963339643396533966339673396833969339703397133972339733397433975339763397733978339793398033981339823398333984339853398633987339883398933990339913399233993339943399533996339973399833999340003400134002340033400434005340063400734008340093401034011340123401334014340153401634017340183401934020340213402234023340243402534026340273402834029340303403134032340333403434035340363403734038340393404034041340423404334044340453404634047340483404934050340513405234053340543405534056340573405834059340603406134062340633406434065340663406734068340693407034071340723407334074340753407634077340783407934080340813408234083340843408534086340873408834089340903409134092340933409434095340963409734098340993410034101341023410334104341053410634107341083410934110341113411234113341143411534116341173411834119341203412134122341233412434125341263412734128341293413034131341323413334134341353413634137341383413934140341413414234143341443414534146341473414834149341503415134152341533415434155341563415734158341593416034161341623416334164341653416634167341683416934170341713417234173341743417534176341773417834179341803418134182341833418434185341863418734188341893419034191341923419334194341953419634197341983419934200342013420234203342043420534206342073420834209342103421134212342133421434215342163421734218342193422034221342223422334224342253422634227342283422934230342313423234233342343423534236342373423834239342403424134242342433424434245342463424734248342493425034251342523425334254342553425634257342583425934260342613426234263342643426534266342673426834269342703427134272342733427434275342763427734278342793428034281342823428334284342853428634287342883428934290342913429234293342943429534296342973429834299343003430134302343033430434305343063430734308343093431034311343123431334314343153431634317343183431934320343213432234323343243432534326343273432834329343303433134332343333433434335343363433734338343393434034341343423434334344343453434634347343483434934350343513435234353343543435534356343573435834359343603436134362343633436434365343663436734368343693437034371343723437334374343753437634377343783437934380343813438234383343843438534386343873438834389343903439134392343933439434395343963439734398343993440034401344023440334404344053440634407344083440934410344113441234413344143441534416344173441834419344203442134422344233442434425344263442734428344293443034431344323443334434344353443634437344383443934440344413444234443344443444534446344473444834449344503445134452344533445434455344563445734458344593446034461344623446334464344653446634467344683446934470344713447234473344743447534476344773447834479344803448134482344833448434485344863448734488344893449034491344923449334494344953449634497344983449934500345013450234503345043450534506345073450834509345103451134512345133451434515345163451734518345193452034521345223452334524345253452634527345283452934530345313453234533345343453534536345373453834539345403454134542345433454434545345463454734548345493455034551345523455334554345553455634557345583455934560345613456234563345643456534566345673456834569345703457134572345733457434575345763457734578345793458034581345823458334584345853458634587345883458934590345913459234593345943459534596345973459834599346003460134602346033460434605346063460734608346093461034611346123461334614346153461634617346183461934620346213462234623346243462534626346273462834629346303463134632346333463434635346363463734638346393464034641346423464334644346453464634647346483464934650346513465234653346543465534656346573465834659346603466134662346633466434665346663466734668346693467034671346723467334674346753467634677346783467934680346813468234683346843468534686346873468834689346903469134692346933469434695346963469734698346993470034701347023470334704347053470634707347083470934710347113471234713347143471534716347173471834719347203472134722347233472434725347263472734728347293473034731347323473334734347353473634737347383473934740347413474234743347443474534746347473474834749347503475134752347533475434755347563475734758347593476034761347623476334764347653476634767347683476934770347713477234773347743477534776347773477834779347803478134782347833478434785347863478734788347893479034791347923479334794347953479634797347983479934800348013480234803348043480534806348073480834809348103481134812348133481434815348163481734818348193482034821348223482334824348253482634827348283482934830348313483234833348343483534836348373483834839348403484134842348433484434845348463484734848348493485034851348523485334854348553485634857348583485934860348613486234863348643486534866348673486834869348703487134872348733487434875348763487734878348793488034881348823488334884348853488634887348883488934890348913489234893348943489534896348973489834899349003490134902349033490434905349063490734908349093491034911349123491334914349153491634917349183491934920349213492234923349243492534926349273492834929349303493134932349333493434935349363493734938349393494034941349423494334944349453494634947349483494934950349513495234953349543495534956349573495834959349603496134962349633496434965349663496734968349693497034971349723497334974349753497634977349783497934980349813498234983349843498534986349873498834989349903499134992349933499434995349963499734998349993500035001350023500335004350053500635007350083500935010350113501235013350143501535016350173501835019350203502135022350233502435025350263502735028350293503035031350323503335034350353503635037350383503935040350413504235043350443504535046350473504835049350503505135052350533505435055350563505735058350593506035061350623506335064350653506635067350683506935070350713507235073350743507535076350773507835079350803508135082350833508435085350863508735088350893509035091350923509335094350953509635097350983509935100351013510235103351043510535106351073510835109351103511135112351133511435115351163511735118351193512035121351223512335124351253512635127351283512935130351313513235133351343513535136351373513835139351403514135142351433514435145351463514735148351493515035151351523515335154351553515635157351583515935160351613516235163351643516535166351673516835169351703517135172351733517435175351763517735178351793518035181351823518335184351853518635187351883518935190351913519235193351943519535196351973519835199352003520135202352033520435205352063520735208352093521035211352123521335214352153521635217352183521935220352213522235223352243522535226352273522835229352303523135232352333523435235352363523735238352393524035241352423524335244352453524635247352483524935250352513525235253352543525535256352573525835259352603526135262352633526435265352663526735268352693527035271352723527335274352753527635277352783527935280352813528235283352843528535286352873528835289352903529135292352933529435295352963529735298352993530035301353023530335304353053530635307353083530935310353113531235313353143531535316353173531835319353203532135322353233532435325353263532735328353293533035331353323533335334353353533635337353383533935340353413534235343353443534535346353473534835349353503535135352353533535435355353563535735358353593536035361353623536335364353653536635367353683536935370353713537235373353743537535376353773537835379353803538135382353833538435385353863538735388353893539035391353923539335394353953539635397353983539935400354013540235403354043540535406354073540835409354103541135412354133541435415354163541735418354193542035421354223542335424354253542635427354283542935430354313543235433354343543535436354373543835439354403544135442354433544435445354463544735448354493545035451354523545335454354553545635457354583545935460354613546235463354643546535466354673546835469354703547135472354733547435475354763547735478354793548035481354823548335484354853548635487354883548935490354913549235493354943549535496354973549835499355003550135502355033550435505355063550735508355093551035511355123551335514355153551635517355183551935520355213552235523355243552535526355273552835529355303553135532355333553435535355363553735538355393554035541355423554335544355453554635547355483554935550355513555235553355543555535556355573555835559355603556135562355633556435565355663556735568355693557035571355723557335574355753557635577355783557935580355813558235583355843558535586355873558835589355903559135592355933559435595355963559735598355993560035601356023560335604356053560635607356083560935610356113561235613356143561535616356173561835619356203562135622356233562435625356263562735628356293563035631356323563335634356353563635637356383563935640356413564235643356443564535646356473564835649356503565135652356533565435655356563565735658356593566035661356623566335664356653566635667356683566935670356713567235673356743567535676356773567835679356803568135682356833568435685356863568735688356893569035691356923569335694356953569635697356983569935700357013570235703357043570535706357073570835709357103571135712357133571435715357163571735718357193572035721357223572335724357253572635727357283572935730357313573235733357343573535736357373573835739357403574135742357433574435745357463574735748357493575035751357523575335754357553575635757357583575935760357613576235763357643576535766357673576835769357703577135772357733577435775357763577735778357793578035781357823578335784357853578635787357883578935790357913579235793357943579535796357973579835799358003580135802358033580435805358063580735808358093581035811358123581335814358153581635817358183581935820358213582235823358243582535826358273582835829358303583135832358333583435835358363583735838358393584035841358423584335844358453584635847358483584935850358513585235853358543585535856358573585835859358603586135862358633586435865358663586735868358693587035871358723587335874358753587635877358783587935880358813588235883358843588535886358873588835889358903589135892358933589435895358963589735898358993590035901359023590335904359053590635907359083590935910359113591235913359143591535916359173591835919359203592135922359233592435925359263592735928359293593035931359323593335934359353593635937359383593935940359413594235943359443594535946359473594835949359503595135952359533595435955359563595735958359593596035961359623596335964359653596635967359683596935970359713597235973359743597535976359773597835979359803598135982359833598435985359863598735988359893599035991359923599335994359953599635997359983599936000360013600236003360043600536006360073600836009360103601136012360133601436015360163601736018360193602036021360223602336024360253602636027360283602936030360313603236033360343603536036360373603836039360403604136042360433604436045360463604736048360493605036051360523605336054360553605636057360583605936060360613606236063360643606536066360673606836069360703607136072360733607436075360763607736078360793608036081360823608336084360853608636087360883608936090360913609236093360943609536096360973609836099361003610136102361033610436105361063610736108361093611036111361123611336114361153611636117361183611936120361213612236123361243612536126361273612836129361303613136132361333613436135361363613736138361393614036141361423614336144361453614636147361483614936150361513615236153361543615536156361573615836159361603616136162361633616436165361663616736168361693617036171361723617336174361753617636177361783617936180361813618236183361843618536186361873618836189361903619136192361933619436195361963619736198361993620036201362023620336204362053620636207362083620936210362113621236213362143621536216362173621836219362203622136222362233622436225362263622736228362293623036231362323623336234362353623636237362383623936240362413624236243362443624536246362473624836249362503625136252362533625436255362563625736258362593626036261362623626336264362653626636267362683626936270362713627236273362743627536276362773627836279362803628136282362833628436285362863628736288362893629036291362923629336294362953629636297362983629936300363013630236303363043630536306363073630836309363103631136312363133631436315363163631736318363193632036321363223632336324363253632636327363283632936330363313633236333363343633536336363373633836339363403634136342363433634436345363463634736348363493635036351363523635336354363553635636357363583635936360363613636236363363643636536366363673636836369363703637136372363733637436375363763637736378363793638036381363823638336384363853638636387363883638936390363913639236393363943639536396363973639836399364003640136402364033640436405364063640736408364093641036411364123641336414364153641636417364183641936420364213642236423364243642536426364273642836429364303643136432364333643436435364363643736438364393644036441364423644336444364453644636447364483644936450364513645236453364543645536456364573645836459364603646136462364633646436465364663646736468364693647036471364723647336474364753647636477364783647936480364813648236483364843648536486364873648836489364903649136492364933649436495364963649736498364993650036501365023650336504365053650636507365083650936510365113651236513365143651536516365173651836519365203652136522365233652436525365263652736528365293653036531365323653336534365353653636537365383653936540365413654236543365443654536546365473654836549365503655136552365533655436555365563655736558365593656036561365623656336564365653656636567365683656936570365713657236573365743657536576365773657836579365803658136582365833658436585365863658736588365893659036591365923659336594365953659636597365983659936600366013660236603366043660536606366073660836609366103661136612366133661436615366163661736618366193662036621366223662336624366253662636627366283662936630366313663236633366343663536636366373663836639366403664136642366433664436645366463664736648366493665036651366523665336654366553665636657366583665936660366613666236663366643666536666366673666836669366703667136672366733667436675366763667736678366793668036681366823668336684366853668636687366883668936690366913669236693366943669536696366973669836699367003670136702367033670436705367063670736708367093671036711367123671336714367153671636717367183671936720367213672236723367243672536726367273672836729367303673136732367333673436735367363673736738367393674036741367423674336744367453674636747367483674936750367513675236753367543675536756367573675836759367603676136762367633676436765367663676736768367693677036771367723677336774367753677636777367783677936780367813678236783367843678536786367873678836789367903679136792367933679436795367963679736798367993680036801368023680336804368053680636807368083680936810368113681236813368143681536816368173681836819368203682136822368233682436825368263682736828368293683036831368323683336834368353683636837368383683936840368413684236843368443684536846368473684836849368503685136852368533685436855368563685736858368593686036861368623686336864368653686636867368683686936870368713687236873368743687536876368773687836879368803688136882368833688436885368863688736888368893689036891368923689336894368953689636897368983689936900369013690236903369043690536906369073690836909369103691136912369133691436915369163691736918369193692036921369223692336924369253692636927369283692936930369313693236933369343693536936369373693836939369403694136942369433694436945369463694736948369493695036951369523695336954369553695636957369583695936960369613696236963369643696536966369673696836969369703697136972369733697436975369763697736978369793698036981369823698336984369853698636987369883698936990369913699236993369943699536996369973699836999370003700137002370033700437005370063700737008370093701037011370123701337014370153701637017370183701937020370213702237023370243702537026370273702837029370303703137032370333703437035370363703737038370393704037041370423704337044370453704637047370483704937050370513705237053370543705537056370573705837059370603706137062370633706437065370663706737068370693707037071370723707337074370753707637077370783707937080370813708237083370843708537086370873708837089370903709137092370933709437095370963709737098370993710037101371023710337104371053710637107371083710937110371113711237113371143711537116371173711837119371203712137122371233712437125371263712737128371293713037131371323713337134371353713637137371383713937140371413714237143371443714537146371473714837149371503715137152371533715437155371563715737158371593716037161371623716337164371653716637167371683716937170371713717237173371743717537176371773717837179371803718137182371833718437185371863718737188371893719037191371923719337194371953719637197371983719937200372013720237203372043720537206372073720837209372103721137212372133721437215372163721737218372193722037221372223722337224372253722637227372283722937230372313723237233372343723537236372373723837239372403724137242372433724437245372463724737248372493725037251372523725337254372553725637257372583725937260372613726237263372643726537266372673726837269372703727137272372733727437275372763727737278372793728037281372823728337284372853728637287372883728937290372913729237293372943729537296372973729837299373003730137302373033730437305373063730737308373093731037311373123731337314373153731637317373183731937320373213732237323373243732537326373273732837329373303733137332373333733437335373363733737338373393734037341373423734337344373453734637347373483734937350373513735237353373543735537356373573735837359373603736137362373633736437365373663736737368373693737037371373723737337374373753737637377373783737937380373813738237383373843738537386373873738837389373903739137392373933739437395373963739737398373993740037401374023740337404374053740637407374083740937410374113741237413374143741537416374173741837419374203742137422374233742437425374263742737428374293743037431374323743337434374353743637437374383743937440374413744237443374443744537446374473744837449374503745137452374533745437455374563745737458374593746037461374623746337464374653746637467374683746937470374713747237473374743747537476374773747837479374803748137482374833748437485374863748737488374893749037491374923749337494374953749637497374983749937500375013750237503375043750537506375073750837509375103751137512375133751437515375163751737518375193752037521375223752337524375253752637527375283752937530375313753237533375343753537536375373753837539375403754137542375433754437545375463754737548375493755037551375523755337554375553755637557375583755937560375613756237563375643756537566375673756837569375703757137572375733757437575375763757737578375793758037581375823758337584375853758637587375883758937590375913759237593375943759537596375973759837599376003760137602376033760437605376063760737608376093761037611376123761337614376153761637617376183761937620376213762237623376243762537626376273762837629376303763137632376333763437635376363763737638376393764037641376423764337644376453764637647376483764937650376513765237653376543765537656376573765837659376603766137662376633766437665376663766737668376693767037671376723767337674376753767637677376783767937680376813768237683376843768537686376873768837689376903769137692376933769437695376963769737698376993770037701377023770337704377053770637707377083770937710377113771237713377143771537716377173771837719377203772137722377233772437725377263772737728377293773037731377323773337734377353773637737377383773937740377413774237743377443774537746377473774837749377503775137752377533775437755377563775737758377593776037761377623776337764377653776637767377683776937770377713777237773377743777537776377773777837779377803778137782377833778437785377863778737788377893779037791377923779337794377953779637797377983779937800378013780237803378043780537806378073780837809378103781137812378133781437815378163781737818378193782037821378223782337824378253782637827378283782937830378313783237833378343783537836378373783837839378403784137842378433784437845378463784737848378493785037851378523785337854378553785637857378583785937860378613786237863378643786537866378673786837869378703787137872378733787437875378763787737878378793788037881378823788337884378853788637887378883788937890378913789237893378943789537896378973789837899379003790137902379033790437905379063790737908379093791037911379123791337914379153791637917379183791937920379213792237923379243792537926379273792837929379303793137932379333793437935379363793737938379393794037941379423794337944379453794637947379483794937950379513795237953379543795537956379573795837959379603796137962379633796437965379663796737968379693797037971379723797337974379753797637977379783797937980379813798237983379843798537986379873798837989379903799137992379933799437995379963799737998379993800038001380023800338004380053800638007380083800938010380113801238013380143801538016380173801838019380203802138022380233802438025380263802738028380293803038031380323803338034380353803638037380383803938040380413804238043380443804538046380473804838049380503805138052380533805438055380563805738058380593806038061380623806338064380653806638067380683806938070380713807238073380743807538076380773807838079380803808138082380833808438085380863808738088380893809038091380923809338094380953809638097380983809938100381013810238103381043810538106381073810838109381103811138112381133811438115381163811738118381193812038121381223812338124381253812638127381283812938130381313813238133381343813538136381373813838139381403814138142381433814438145381463814738148381493815038151381523815338154381553815638157381583815938160381613816238163381643816538166381673816838169381703817138172381733817438175381763817738178381793818038181381823818338184381853818638187381883818938190381913819238193381943819538196381973819838199382003820138202382033820438205382063820738208382093821038211382123821338214382153821638217382183821938220382213822238223382243822538226382273822838229382303823138232382333823438235382363823738238382393824038241382423824338244382453824638247382483824938250382513825238253382543825538256382573825838259382603826138262382633826438265382663826738268382693827038271382723827338274382753827638277382783827938280382813828238283382843828538286382873828838289382903829138292382933829438295382963829738298382993830038301383023830338304383053830638307383083830938310383113831238313383143831538316383173831838319383203832138322383233832438325383263832738328383293833038331383323833338334383353833638337383383833938340383413834238343383443834538346383473834838349383503835138352383533835438355383563835738358383593836038361383623836338364383653836638367383683836938370383713837238373383743837538376383773837838379383803838138382383833838438385383863838738388383893839038391383923839338394383953839638397383983839938400384013840238403384043840538406384073840838409384103841138412384133841438415384163841738418384193842038421384223842338424384253842638427384283842938430384313843238433384343843538436384373843838439384403844138442384433844438445384463844738448384493845038451384523845338454384553845638457384583845938460384613846238463384643846538466384673846838469384703847138472384733847438475384763847738478384793848038481384823848338484384853848638487384883848938490384913849238493384943849538496384973849838499385003850138502385033850438505385063850738508385093851038511385123851338514385153851638517385183851938520385213852238523385243852538526385273852838529385303853138532385333853438535385363853738538385393854038541385423854338544385453854638547385483854938550385513855238553385543855538556385573855838559385603856138562385633856438565385663856738568385693857038571385723857338574385753857638577385783857938580385813858238583385843858538586385873858838589385903859138592385933859438595385963859738598385993860038601386023860338604386053860638607386083860938610386113861238613386143861538616386173861838619386203862138622386233862438625386263862738628386293863038631386323863338634386353863638637386383863938640386413864238643386443864538646386473864838649386503865138652386533865438655386563865738658386593866038661386623866338664386653866638667386683866938670386713867238673386743867538676386773867838679386803868138682386833868438685386863868738688386893869038691386923869338694386953869638697386983869938700387013870238703387043870538706387073870838709387103871138712387133871438715387163871738718387193872038721387223872338724387253872638727387283872938730387313873238733387343873538736387373873838739387403874138742387433874438745387463874738748387493875038751387523875338754387553875638757387583875938760387613876238763387643876538766387673876838769387703877138772387733877438775387763877738778387793878038781387823878338784387853878638787387883878938790387913879238793387943879538796387973879838799388003880138802388033880438805388063880738808388093881038811388123881338814388153881638817388183881938820388213882238823388243882538826388273882838829388303883138832388333883438835388363883738838388393884038841388423884338844388453884638847388483884938850388513885238853388543885538856388573885838859388603886138862388633886438865388663886738868388693887038871388723887338874388753887638877388783887938880388813888238883388843888538886388873888838889388903889138892388933889438895388963889738898388993890038901389023890338904389053890638907389083890938910389113891238913389143891538916389173891838919389203892138922389233892438925389263892738928389293893038931389323893338934389353893638937389383893938940389413894238943389443894538946389473894838949389503895138952389533895438955389563895738958389593896038961389623896338964389653896638967389683896938970389713897238973389743897538976389773897838979389803898138982389833898438985389863898738988389893899038991389923899338994389953899638997389983899939000390013900239003390043900539006390073900839009390103901139012390133901439015390163901739018390193902039021390223902339024390253902639027390283902939030390313903239033390343903539036390373903839039390403904139042390433904439045390463904739048390493905039051390523905339054390553905639057390583905939060390613906239063390643906539066390673906839069390703907139072390733907439075390763907739078390793908039081390823908339084390853908639087390883908939090390913909239093390943909539096390973909839099391003910139102391033910439105391063910739108391093911039111391123911339114391153911639117391183911939120391213912239123391243912539126391273912839129391303913139132391333913439135391363913739138391393914039141391423914339144391453914639147391483914939150391513915239153391543915539156391573915839159391603916139162391633916439165391663916739168391693917039171391723917339174391753917639177391783917939180391813918239183391843918539186391873918839189391903919139192391933919439195391963919739198391993920039201392023920339204392053920639207392083920939210392113921239213392143921539216392173921839219392203922139222392233922439225392263922739228392293923039231392323923339234392353923639237392383923939240392413924239243392443924539246392473924839249392503925139252392533925439255392563925739258392593926039261392623926339264392653926639267392683926939270392713927239273392743927539276392773927839279392803928139282392833928439285392863928739288392893929039291392923929339294392953929639297392983929939300393013930239303393043930539306393073930839309393103931139312393133931439315393163931739318393193932039321393223932339324393253932639327393283932939330393313933239333393343933539336393373933839339393403934139342393433934439345393463934739348393493935039351393523935339354393553935639357393583935939360393613936239363393643936539366393673936839369393703937139372393733937439375393763937739378393793938039381393823938339384393853938639387393883938939390393913939239393393943939539396393973939839399394003940139402394033940439405394063940739408394093941039411394123941339414394153941639417394183941939420394213942239423394243942539426394273942839429394303943139432394333943439435394363943739438394393944039441394423944339444394453944639447394483944939450394513945239453394543945539456394573945839459394603946139462394633946439465394663946739468394693947039471394723947339474394753947639477394783947939480394813948239483394843948539486394873948839489394903949139492394933949439495394963949739498394993950039501395023950339504395053950639507395083950939510395113951239513395143951539516395173951839519395203952139522395233952439525395263952739528395293953039531395323953339534395353953639537395383953939540395413954239543395443954539546395473954839549395503955139552395533955439555395563955739558395593956039561395623956339564395653956639567395683956939570395713957239573395743957539576395773957839579395803958139582395833958439585395863958739588395893959039591395923959339594395953959639597395983959939600396013960239603396043960539606396073960839609396103961139612396133961439615396163961739618396193962039621396223962339624396253962639627396283962939630396313963239633396343963539636396373963839639396403964139642396433964439645396463964739648396493965039651396523965339654396553965639657396583965939660396613966239663396643966539666396673966839669396703967139672396733967439675396763967739678396793968039681396823968339684396853968639687396883968939690396913969239693396943969539696396973969839699397003970139702397033970439705397063970739708397093971039711397123971339714397153971639717397183971939720397213972239723397243972539726397273972839729397303973139732397333973439735397363973739738397393974039741397423974339744397453974639747397483974939750397513975239753397543975539756397573975839759397603976139762397633976439765397663976739768397693977039771397723977339774397753977639777397783977939780397813978239783397843978539786397873978839789397903979139792397933979439795397963979739798397993980039801398023980339804398053980639807398083980939810398113981239813398143981539816398173981839819398203982139822398233982439825398263982739828398293983039831398323983339834398353983639837398383983939840398413984239843398443984539846398473984839849398503985139852398533985439855398563985739858398593986039861398623986339864398653986639867398683986939870398713987239873398743987539876398773987839879398803988139882398833988439885398863988739888398893989039891398923989339894398953989639897398983989939900399013990239903399043990539906399073990839909399103991139912399133991439915399163991739918399193992039921399223992339924399253992639927399283992939930399313993239933399343993539936399373993839939399403994139942399433994439945399463994739948399493995039951399523995339954399553995639957399583995939960399613996239963399643996539966399673996839969399703997139972399733997439975399763997739978399793998039981399823998339984399853998639987399883998939990399913999239993399943999539996399973999839999400004000140002400034000440005400064000740008400094001040011400124001340014400154001640017400184001940020400214002240023400244002540026400274002840029400304003140032400334003440035400364003740038400394004040041400424004340044400454004640047400484004940050400514005240053400544005540056400574005840059400604006140062400634006440065400664006740068400694007040071400724007340074400754007640077400784007940080400814008240083400844008540086400874008840089400904009140092400934009440095400964009740098400994010040101401024010340104401054010640107401084010940110401114011240113401144011540116401174011840119401204012140122401234012440125401264012740128401294013040131401324013340134401354013640137401384013940140401414014240143401444014540146401474014840149401504015140152401534015440155401564015740158401594016040161401624016340164401654016640167401684016940170401714017240173401744017540176401774017840179401804018140182401834018440185401864018740188401894019040191401924019340194401954019640197401984019940200402014020240203402044020540206402074020840209402104021140212402134021440215402164021740218402194022040221402224022340224402254022640227402284022940230402314023240233402344023540236402374023840239402404024140242402434024440245402464024740248402494025040251402524025340254402554025640257402584025940260402614026240263402644026540266402674026840269402704027140272402734027440275402764027740278402794028040281402824028340284402854028640287402884028940290402914029240293402944029540296402974029840299403004030140302403034030440305403064030740308403094031040311403124031340314403154031640317403184031940320403214032240323403244032540326403274032840329403304033140332403334033440335403364033740338403394034040341403424034340344403454034640347403484034940350403514035240353403544035540356403574035840359403604036140362403634036440365403664036740368403694037040371403724037340374403754037640377403784037940380403814038240383403844038540386403874038840389403904039140392403934039440395403964039740398403994040040401404024040340404404054040640407404084040940410404114041240413404144041540416404174041840419404204042140422404234042440425404264042740428404294043040431404324043340434404354043640437404384043940440404414044240443404444044540446404474044840449404504045140452404534045440455404564045740458404594046040461404624046340464404654046640467404684046940470404714047240473404744047540476404774047840479404804048140482404834048440485404864048740488404894049040491404924049340494404954049640497404984049940500405014050240503405044050540506405074050840509405104051140512405134051440515405164051740518405194052040521405224052340524405254052640527405284052940530405314053240533405344053540536405374053840539405404054140542405434054440545405464054740548405494055040551405524055340554405554055640557405584055940560405614056240563405644056540566405674056840569405704057140572405734057440575405764057740578405794058040581405824058340584405854058640587405884058940590405914059240593405944059540596405974059840599406004060140602406034060440605406064060740608406094061040611406124061340614406154061640617406184061940620406214062240623406244062540626406274062840629406304063140632406334063440635406364063740638406394064040641406424064340644406454064640647406484064940650406514065240653406544065540656406574065840659406604066140662406634066440665406664066740668406694067040671406724067340674406754067640677406784067940680406814068240683406844068540686406874068840689406904069140692406934069440695406964069740698406994070040701407024070340704407054070640707407084070940710407114071240713407144071540716407174071840719407204072140722407234072440725407264072740728407294073040731407324073340734407354073640737407384073940740407414074240743407444074540746407474074840749407504075140752407534075440755407564075740758407594076040761407624076340764407654076640767407684076940770407714077240773407744077540776407774077840779407804078140782407834078440785407864078740788407894079040791407924079340794407954079640797407984079940800408014080240803408044080540806408074080840809408104081140812408134081440815408164081740818408194082040821408224082340824408254082640827408284082940830408314083240833408344083540836408374083840839408404084140842408434084440845408464084740848408494085040851408524085340854408554085640857408584085940860408614086240863408644086540866408674086840869408704087140872408734087440875408764087740878408794088040881408824088340884408854088640887408884088940890408914089240893408944089540896408974089840899409004090140902409034090440905409064090740908409094091040911409124091340914409154091640917409184091940920409214092240923409244092540926409274092840929409304093140932409334093440935409364093740938409394094040941409424094340944409454094640947409484094940950409514095240953409544095540956409574095840959409604096140962409634096440965409664096740968409694097040971409724097340974409754097640977409784097940980409814098240983409844098540986409874098840989409904099140992409934099440995409964099740998409994100041001410024100341004410054100641007410084100941010410114101241013410144101541016410174101841019410204102141022410234102441025410264102741028410294103041031410324103341034410354103641037410384103941040410414104241043410444104541046410474104841049410504105141052410534105441055410564105741058410594106041061410624106341064410654106641067410684106941070410714107241073410744107541076410774107841079410804108141082410834108441085410864108741088410894109041091410924109341094410954109641097410984109941100411014110241103411044110541106411074110841109411104111141112411134111441115411164111741118411194112041121411224112341124411254112641127411284112941130411314113241133411344113541136411374113841139411404114141142411434114441145411464114741148411494115041151411524115341154411554115641157411584115941160411614116241163411644116541166411674116841169411704117141172411734117441175411764117741178411794118041181411824118341184411854118641187411884118941190411914119241193411944119541196411974119841199412004120141202412034120441205412064120741208412094121041211412124121341214412154121641217412184121941220412214122241223412244122541226412274122841229412304123141232412334123441235412364123741238412394124041241412424124341244412454124641247412484124941250412514125241253412544125541256412574125841259412604126141262412634126441265412664126741268412694127041271412724127341274412754127641277412784127941280412814128241283412844128541286412874128841289412904129141292412934129441295412964129741298412994130041301413024130341304413054130641307413084130941310413114131241313413144131541316413174131841319413204132141322413234132441325413264132741328413294133041331413324133341334413354133641337413384133941340413414134241343413444134541346413474134841349413504135141352413534135441355413564135741358413594136041361413624136341364413654136641367413684136941370413714137241373413744137541376413774137841379413804138141382413834138441385413864138741388413894139041391413924139341394413954139641397413984139941400414014140241403414044140541406414074140841409414104141141412414134141441415414164141741418414194142041421414224142341424414254142641427414284142941430414314143241433414344143541436414374143841439414404144141442414434144441445414464144741448414494145041451414524145341454414554145641457414584145941460414614146241463414644146541466414674146841469414704147141472414734147441475414764147741478414794148041481414824148341484414854148641487414884148941490414914149241493414944149541496414974149841499415004150141502415034150441505415064150741508415094151041511415124151341514415154151641517415184151941520415214152241523415244152541526415274152841529415304153141532415334153441535415364153741538415394154041541415424154341544415454154641547415484154941550415514155241553415544155541556415574155841559415604156141562415634156441565415664156741568415694157041571415724157341574415754157641577415784157941580415814158241583415844158541586415874158841589415904159141592415934159441595415964159741598415994160041601416024160341604416054160641607416084160941610416114161241613416144161541616416174161841619416204162141622416234162441625416264162741628416294163041631416324163341634416354163641637416384163941640416414164241643416444164541646416474164841649416504165141652416534165441655416564165741658416594166041661416624166341664416654166641667416684166941670416714167241673416744167541676416774167841679416804168141682416834168441685416864168741688416894169041691416924169341694416954169641697416984169941700417014170241703417044170541706417074170841709417104171141712417134171441715417164171741718417194172041721417224172341724417254172641727417284172941730417314173241733417344173541736417374173841739417404174141742417434174441745417464174741748417494175041751417524175341754417554175641757417584175941760417614176241763417644176541766417674176841769417704177141772417734177441775417764177741778417794178041781417824178341784417854178641787417884178941790417914179241793417944179541796417974179841799418004180141802418034180441805418064180741808418094181041811418124181341814418154181641817418184181941820418214182241823418244182541826418274182841829418304183141832418334183441835418364183741838418394184041841418424184341844418454184641847418484184941850418514185241853418544185541856418574185841859418604186141862418634186441865418664186741868418694187041871418724187341874418754187641877418784187941880418814188241883418844188541886418874188841889418904189141892418934189441895418964189741898418994190041901419024190341904419054190641907419084190941910419114191241913419144191541916419174191841919419204192141922419234192441925419264192741928419294193041931419324193341934419354193641937419384193941940419414194241943419444194541946419474194841949419504195141952419534195441955419564195741958419594196041961419624196341964419654196641967419684196941970419714197241973419744197541976419774197841979419804198141982419834198441985419864198741988419894199041991419924199341994419954199641997419984199942000420014200242003420044200542006420074200842009420104201142012420134201442015420164201742018420194202042021420224202342024420254202642027420284202942030420314203242033420344203542036420374203842039420404204142042420434204442045420464204742048420494205042051420524205342054420554205642057420584205942060420614206242063420644206542066420674206842069420704207142072420734207442075420764207742078420794208042081420824208342084420854208642087420884208942090420914209242093420944209542096420974209842099421004210142102421034210442105421064210742108421094211042111421124211342114421154211642117421184211942120421214212242123421244212542126421274212842129421304213142132421334213442135421364213742138421394214042141421424214342144421454214642147421484214942150421514215242153421544215542156421574215842159421604216142162421634216442165421664216742168421694217042171421724217342174421754217642177421784217942180421814218242183421844218542186421874218842189421904219142192421934219442195421964219742198421994220042201422024220342204422054220642207422084220942210422114221242213422144221542216422174221842219422204222142222422234222442225422264222742228422294223042231422324223342234422354223642237422384223942240422414224242243422444224542246422474224842249422504225142252422534225442255422564225742258422594226042261422624226342264422654226642267422684226942270422714227242273422744227542276422774227842279422804228142282422834228442285422864228742288422894229042291422924229342294422954229642297422984229942300423014230242303423044230542306423074230842309423104231142312423134231442315423164231742318423194232042321423224232342324423254232642327423284232942330423314233242333423344233542336423374233842339423404234142342423434234442345423464234742348423494235042351423524235342354423554235642357423584235942360423614236242363423644236542366423674236842369423704237142372423734237442375423764237742378423794238042381423824238342384423854238642387423884238942390423914239242393423944239542396423974239842399424004240142402424034240442405424064240742408424094241042411424124241342414424154241642417424184241942420424214242242423424244242542426424274242842429424304243142432424334243442435424364243742438424394244042441424424244342444424454244642447424484244942450424514245242453424544245542456424574245842459424604246142462424634246442465424664246742468424694247042471424724247342474424754247642477424784247942480424814248242483424844248542486424874248842489424904249142492424934249442495424964249742498424994250042501425024250342504425054250642507425084250942510425114251242513425144251542516425174251842519425204252142522425234252442525425264252742528425294253042531425324253342534425354253642537425384253942540425414254242543425444254542546425474254842549425504255142552425534255442555425564255742558425594256042561425624256342564425654256642567425684256942570425714257242573425744257542576425774257842579425804258142582425834258442585425864258742588425894259042591425924259342594425954259642597425984259942600426014260242603426044260542606426074260842609426104261142612426134261442615426164261742618426194262042621426224262342624426254262642627426284262942630426314263242633426344263542636426374263842639426404264142642426434264442645426464264742648426494265042651426524265342654426554265642657426584265942660426614266242663426644266542666426674266842669426704267142672426734267442675426764267742678426794268042681426824268342684426854268642687426884268942690426914269242693426944269542696426974269842699427004270142702427034270442705427064270742708427094271042711427124271342714427154271642717427184271942720427214272242723427244272542726427274272842729427304273142732427334273442735427364273742738427394274042741427424274342744427454274642747427484274942750427514275242753427544275542756427574275842759427604276142762427634276442765427664276742768427694277042771427724277342774427754277642777427784277942780427814278242783427844278542786427874278842789427904279142792427934279442795427964279742798427994280042801428024280342804428054280642807428084280942810428114281242813428144281542816428174281842819428204282142822428234282442825428264282742828428294283042831428324283342834428354283642837428384283942840428414284242843428444284542846428474284842849428504285142852428534285442855428564285742858428594286042861428624286342864428654286642867428684286942870428714287242873428744287542876428774287842879428804288142882428834288442885428864288742888428894289042891428924289342894428954289642897428984289942900429014290242903429044290542906429074290842909429104291142912429134291442915429164291742918429194292042921429224292342924429254292642927429284292942930429314293242933429344293542936429374293842939429404294142942429434294442945429464294742948429494295042951429524295342954429554295642957429584295942960429614296242963429644296542966429674296842969429704297142972429734297442975429764297742978429794298042981429824298342984429854298642987429884298942990429914299242993429944299542996429974299842999430004300143002430034300443005430064300743008430094301043011430124301343014430154301643017430184301943020430214302243023430244302543026430274302843029430304303143032430334303443035430364303743038430394304043041430424304343044430454304643047430484304943050430514305243053430544305543056430574305843059430604306143062430634306443065430664306743068430694307043071430724307343074430754307643077430784307943080430814308243083430844308543086430874308843089430904309143092430934309443095430964309743098430994310043101431024310343104431054310643107431084310943110431114311243113431144311543116431174311843119431204312143122431234312443125431264312743128431294313043131431324313343134431354313643137431384313943140431414314243143431444314543146431474314843149431504315143152431534315443155431564315743158431594316043161431624316343164431654316643167431684316943170431714317243173431744317543176431774317843179431804318143182431834318443185431864318743188431894319043191431924319343194431954319643197431984319943200432014320243203432044320543206432074320843209432104321143212432134321443215432164321743218432194322043221432224322343224432254322643227432284322943230432314323243233432344323543236432374323843239432404324143242432434324443245432464324743248432494325043251432524325343254432554325643257432584325943260432614326243263432644326543266432674326843269432704327143272432734327443275432764327743278432794328043281432824328343284432854328643287432884328943290432914329243293432944329543296432974329843299433004330143302433034330443305433064330743308433094331043311433124331343314433154331643317433184331943320433214332243323433244332543326433274332843329433304333143332433334333443335433364333743338433394334043341433424334343344433454334643347433484334943350433514335243353433544335543356433574335843359433604336143362433634336443365433664336743368433694337043371433724337343374433754337643377433784337943380433814338243383433844338543386433874338843389433904339143392433934339443395433964339743398433994340043401434024340343404434054340643407434084340943410434114341243413434144341543416434174341843419434204342143422434234342443425434264342743428434294343043431434324343343434434354343643437434384343943440434414344243443434444344543446434474344843449434504345143452434534345443455434564345743458434594346043461434624346343464434654346643467434684346943470434714347243473434744347543476434774347843479434804348143482434834348443485434864348743488434894349043491434924349343494434954349643497434984349943500435014350243503435044350543506435074350843509435104351143512435134351443515435164351743518435194352043521435224352343524435254352643527435284352943530435314353243533435344353543536435374353843539435404354143542435434354443545435464354743548435494355043551435524355343554435554355643557435584355943560435614356243563435644356543566435674356843569435704357143572435734357443575435764357743578435794358043581435824358343584435854358643587435884358943590435914359243593435944359543596435974359843599436004360143602436034360443605436064360743608436094361043611436124361343614436154361643617436184361943620436214362243623436244362543626436274362843629436304363143632436334363443635436364363743638436394364043641436424364343644436454364643647436484364943650436514365243653436544365543656436574365843659436604366143662436634366443665436664366743668436694367043671436724367343674436754367643677436784367943680436814368243683436844368543686436874368843689436904369143692436934369443695436964369743698436994370043701437024370343704437054370643707437084370943710437114371243713437144371543716437174371843719437204372143722437234372443725437264372743728437294373043731437324373343734437354373643737437384373943740437414374243743437444374543746437474374843749437504375143752437534375443755437564375743758437594376043761437624376343764437654376643767437684376943770437714377243773437744377543776437774377843779437804378143782437834378443785437864378743788437894379043791437924379343794437954379643797437984379943800438014380243803438044380543806438074380843809438104381143812438134381443815438164381743818438194382043821438224382343824438254382643827438284382943830438314383243833438344383543836438374383843839438404384143842438434384443845438464384743848438494385043851438524385343854438554385643857438584385943860438614386243863438644386543866438674386843869438704387143872438734387443875438764387743878438794388043881438824388343884438854388643887438884388943890438914389243893438944389543896438974389843899439004390143902439034390443905439064390743908439094391043911439124391343914439154391643917439184391943920439214392243923439244392543926439274392843929439304393143932439334393443935439364393743938439394394043941439424394343944439454394643947439484394943950439514395243953439544395543956439574395843959439604396143962439634396443965439664396743968439694397043971439724397343974439754397643977439784397943980439814398243983439844398543986439874398843989439904399143992439934399443995439964399743998439994400044001440024400344004440054400644007440084400944010440114401244013440144401544016440174401844019440204402144022440234402444025440264402744028440294403044031440324403344034440354403644037440384403944040440414404244043440444404544046440474404844049440504405144052440534405444055440564405744058440594406044061440624406344064440654406644067440684406944070440714407244073440744407544076440774407844079440804408144082440834408444085440864408744088440894409044091440924409344094440954409644097440984409944100441014410244103441044410544106441074410844109441104411144112441134411444115441164411744118441194412044121441224412344124441254412644127441284412944130441314413244133441344413544136441374413844139441404414144142441434414444145441464414744148441494415044151441524415344154441554415644157441584415944160441614416244163441644416544166441674416844169441704417144172441734417444175441764417744178441794418044181441824418344184441854418644187441884418944190441914419244193441944419544196441974419844199442004420144202442034420444205442064420744208442094421044211442124421344214442154421644217442184421944220442214422244223442244422544226442274422844229442304423144232442334423444235442364423744238442394424044241442424424344244442454424644247442484424944250442514425244253442544425544256442574425844259442604426144262442634426444265442664426744268442694427044271442724427344274442754427644277442784427944280442814428244283442844428544286442874428844289442904429144292442934429444295442964429744298442994430044301443024430344304443054430644307443084430944310443114431244313443144431544316443174431844319443204432144322443234432444325443264432744328443294433044331443324433344334443354433644337443384433944340443414434244343443444434544346443474434844349443504435144352443534435444355443564435744358443594436044361443624436344364443654436644367443684436944370443714437244373443744437544376443774437844379443804438144382443834438444385443864438744388443894439044391443924439344394443954439644397443984439944400444014440244403444044440544406444074440844409444104441144412444134441444415444164441744418444194442044421444224442344424444254442644427444284442944430444314443244433444344443544436444374443844439444404444144442444434444444445444464444744448444494445044451444524445344454444554445644457444584445944460444614446244463444644446544466444674446844469444704447144472444734447444475444764447744478444794448044481444824448344484444854448644487444884448944490444914449244493444944449544496444974449844499445004450144502445034450444505445064450744508445094451044511445124451344514445154451644517445184451944520445214452244523445244452544526445274452844529445304453144532445334453444535445364453744538445394454044541445424454344544445454454644547445484454944550445514455244553445544455544556445574455844559445604456144562445634456444565445664456744568445694457044571445724457344574445754457644577445784457944580445814458244583445844458544586445874458844589445904459144592445934459444595445964459744598445994460044601446024460344604446054460644607446084460944610446114461244613446144461544616446174461844619446204462144622446234462444625446264462744628446294463044631446324463344634446354463644637446384463944640446414464244643446444464544646446474464844649446504465144652446534465444655446564465744658446594466044661446624466344664446654466644667446684466944670446714467244673446744467544676446774467844679446804468144682446834468444685446864468744688446894469044691446924469344694446954469644697446984469944700447014470244703447044470544706447074470844709447104471144712447134471444715447164471744718447194472044721447224472344724447254472644727447284472944730447314473244733447344473544736447374473844739447404474144742447434474444745447464474744748447494475044751447524475344754447554475644757447584475944760447614476244763447644476544766447674476844769447704477144772447734477444775447764477744778447794478044781447824478344784447854478644787447884478944790447914479244793447944479544796447974479844799448004480144802448034480444805448064480744808448094481044811448124481344814448154481644817448184481944820448214482244823448244482544826448274482844829448304483144832448334483444835448364483744838448394484044841448424484344844448454484644847448484484944850448514485244853448544485544856448574485844859448604486144862448634486444865448664486744868448694487044871448724487344874448754487644877448784487944880448814488244883448844488544886448874488844889448904489144892448934489444895448964489744898448994490044901449024490344904449054490644907449084490944910449114491244913449144491544916449174491844919449204492144922449234492444925449264492744928449294493044931449324493344934449354493644937449384493944940449414494244943449444494544946449474494844949449504495144952449534495444955449564495744958449594496044961449624496344964449654496644967449684496944970449714497244973449744497544976449774497844979449804498144982449834498444985449864498744988449894499044991449924499344994449954499644997449984499945000450014500245003450044500545006450074500845009450104501145012450134501445015450164501745018450194502045021450224502345024450254502645027450284502945030450314503245033450344503545036450374503845039450404504145042450434504445045450464504745048450494505045051450524505345054450554505645057450584505945060450614506245063450644506545066450674506845069450704507145072450734507445075450764507745078450794508045081450824508345084450854508645087450884508945090450914509245093450944509545096450974509845099451004510145102451034510445105451064510745108451094511045111451124511345114451154511645117451184511945120451214512245123451244512545126451274512845129451304513145132451334513445135451364513745138451394514045141451424514345144451454514645147451484514945150451514515245153451544515545156451574515845159451604516145162451634516445165451664516745168451694517045171451724517345174451754517645177451784517945180451814518245183451844518545186451874518845189451904519145192451934519445195451964519745198451994520045201452024520345204452054520645207452084520945210452114521245213452144521545216452174521845219452204522145222452234522445225452264522745228452294523045231452324523345234452354523645237452384523945240452414524245243452444524545246452474524845249452504525145252452534525445255452564525745258452594526045261452624526345264452654526645267452684526945270452714527245273452744527545276452774527845279452804528145282452834528445285452864528745288452894529045291452924529345294452954529645297452984529945300453014530245303453044530545306453074530845309453104531145312453134531445315453164531745318453194532045321453224532345324453254532645327453284532945330453314533245333453344533545336453374533845339453404534145342453434534445345453464534745348453494535045351453524535345354453554535645357453584535945360453614536245363453644536545366453674536845369453704537145372453734537445375453764537745378453794538045381453824538345384453854538645387453884538945390453914539245393453944539545396453974539845399454004540145402454034540445405454064540745408454094541045411454124541345414454154541645417454184541945420454214542245423454244542545426454274542845429454304543145432454334543445435454364543745438454394544045441454424544345444454454544645447454484544945450454514545245453454544545545456454574545845459454604546145462454634546445465454664546745468454694547045471454724547345474454754547645477454784547945480454814548245483454844548545486454874548845489454904549145492454934549445495454964549745498454994550045501455024550345504455054550645507455084550945510455114551245513455144551545516455174551845519455204552145522455234552445525455264552745528455294553045531455324553345534455354553645537455384553945540455414554245543455444554545546455474554845549455504555145552455534555445555455564555745558455594556045561455624556345564455654556645567455684556945570455714557245573455744557545576455774557845579455804558145582455834558445585455864558745588455894559045591455924559345594455954559645597455984559945600456014560245603456044560545606456074560845609456104561145612456134561445615456164561745618456194562045621456224562345624456254562645627456284562945630456314563245633456344563545636456374563845639456404564145642456434564445645456464564745648456494565045651456524565345654456554565645657456584565945660456614566245663456644566545666456674566845669456704567145672456734567445675456764567745678456794568045681456824568345684456854568645687456884568945690456914569245693456944569545696456974569845699457004570145702457034570445705457064570745708457094571045711457124571345714457154571645717457184571945720457214572245723457244572545726457274572845729457304573145732457334573445735457364573745738457394574045741457424574345744457454574645747457484574945750457514575245753457544575545756457574575845759457604576145762457634576445765457664576745768457694577045771457724577345774457754577645777457784577945780457814578245783457844578545786457874578845789457904579145792457934579445795457964579745798457994580045801458024580345804458054580645807458084580945810458114581245813458144581545816458174581845819458204582145822458234582445825458264582745828458294583045831458324583345834458354583645837458384583945840458414584245843458444584545846458474584845849458504585145852458534585445855458564585745858458594586045861458624586345864458654586645867458684586945870458714587245873458744587545876458774587845879458804588145882458834588445885458864588745888458894589045891458924589345894458954589645897458984589945900459014590245903459044590545906459074590845909459104591145912459134591445915459164591745918459194592045921459224592345924459254592645927459284592945930459314593245933459344593545936459374593845939459404594145942459434594445945459464594745948459494595045951459524595345954459554595645957459584595945960459614596245963459644596545966459674596845969459704597145972459734597445975459764597745978459794598045981459824598345984459854598645987459884598945990459914599245993459944599545996459974599845999460004600146002460034600446005460064600746008460094601046011460124601346014460154601646017460184601946020460214602246023460244602546026460274602846029460304603146032460334603446035460364603746038460394604046041460424604346044460454604646047460484604946050460514605246053460544605546056460574605846059460604606146062460634606446065460664606746068460694607046071460724607346074460754607646077460784607946080460814608246083460844608546086460874608846089460904609146092460934609446095460964609746098460994610046101461024610346104461054610646107461084610946110461114611246113461144611546116461174611846119461204612146122461234612446125461264612746128461294613046131461324613346134461354613646137461384613946140461414614246143461444614546146461474614846149461504615146152461534615446155461564615746158461594616046161461624616346164461654616646167461684616946170461714617246173461744617546176461774617846179461804618146182461834618446185461864618746188461894619046191461924619346194461954619646197461984619946200462014620246203462044620546206462074620846209462104621146212462134621446215462164621746218462194622046221462224622346224462254622646227462284622946230462314623246233462344623546236462374623846239462404624146242462434624446245462464624746248462494625046251462524625346254462554625646257462584625946260462614626246263462644626546266462674626846269462704627146272462734627446275462764627746278462794628046281462824628346284462854628646287462884628946290462914629246293462944629546296462974629846299463004630146302463034630446305463064630746308463094631046311463124631346314463154631646317463184631946320463214632246323463244632546326463274632846329463304633146332463334633446335463364633746338463394634046341463424634346344463454634646347463484634946350463514635246353463544635546356463574635846359463604636146362463634636446365463664636746368463694637046371463724637346374463754637646377463784637946380463814638246383463844638546386463874638846389463904639146392463934639446395463964639746398463994640046401464024640346404464054640646407464084640946410464114641246413464144641546416464174641846419464204642146422464234642446425464264642746428464294643046431464324643346434464354643646437464384643946440464414644246443464444644546446464474644846449464504645146452464534645446455464564645746458464594646046461464624646346464464654646646467464684646946470464714647246473464744647546476464774647846479464804648146482464834648446485464864648746488464894649046491464924649346494464954649646497464984649946500465014650246503465044650546506465074650846509465104651146512465134651446515465164651746518465194652046521465224652346524465254652646527465284652946530465314653246533465344653546536465374653846539465404654146542465434654446545465464654746548465494655046551465524655346554465554655646557465584655946560465614656246563465644656546566465674656846569465704657146572465734657446575465764657746578465794658046581465824658346584465854658646587465884658946590465914659246593465944659546596465974659846599466004660146602466034660446605466064660746608466094661046611466124661346614466154661646617466184661946620466214662246623466244662546626466274662846629466304663146632466334663446635466364663746638466394664046641466424664346644466454664646647466484664946650466514665246653466544665546656466574665846659466604666146662466634666446665466664666746668466694667046671466724667346674466754667646677466784667946680466814668246683466844668546686466874668846689466904669146692466934669446695466964669746698466994670046701467024670346704467054670646707467084670946710467114671246713467144671546716467174671846719467204672146722467234672446725467264672746728467294673046731467324673346734467354673646737467384673946740467414674246743467444674546746467474674846749467504675146752467534675446755467564675746758467594676046761467624676346764467654676646767467684676946770467714677246773467744677546776467774677846779467804678146782467834678446785467864678746788467894679046791467924679346794467954679646797467984679946800468014680246803468044680546806468074680846809468104681146812468134681446815468164681746818468194682046821468224682346824468254682646827468284682946830468314683246833468344683546836468374683846839468404684146842468434684446845468464684746848468494685046851468524685346854468554685646857468584685946860468614686246863468644686546866468674686846869468704687146872468734687446875468764687746878468794688046881468824688346884468854688646887468884688946890468914689246893468944689546896468974689846899469004690146902469034690446905469064690746908469094691046911469124691346914469154691646917469184691946920469214692246923469244692546926469274692846929469304693146932469334693446935469364693746938469394694046941469424694346944469454694646947469484694946950469514695246953469544695546956469574695846959469604696146962469634696446965469664696746968469694697046971469724697346974469754697646977469784697946980469814698246983469844698546986469874698846989469904699146992469934699446995469964699746998469994700047001470024700347004470054700647007470084700947010470114701247013470144701547016470174701847019470204702147022470234702447025470264702747028470294703047031470324703347034470354703647037470384703947040470414704247043470444704547046470474704847049470504705147052470534705447055470564705747058470594706047061470624706347064470654706647067470684706947070470714707247073470744707547076470774707847079470804708147082470834708447085470864708747088470894709047091470924709347094470954709647097470984709947100471014710247103471044710547106471074710847109471104711147112471134711447115471164711747118471194712047121471224712347124471254712647127471284712947130471314713247133471344713547136471374713847139471404714147142471434714447145471464714747148471494715047151471524715347154471554715647157471584715947160471614716247163471644716547166471674716847169471704717147172471734717447175471764717747178471794718047181471824718347184471854718647187471884718947190471914719247193471944719547196471974719847199472004720147202472034720447205472064720747208472094721047211472124721347214472154721647217472184721947220472214722247223472244722547226472274722847229472304723147232472334723447235472364723747238472394724047241472424724347244472454724647247472484724947250472514725247253472544725547256472574725847259472604726147262472634726447265472664726747268472694727047271472724727347274472754727647277472784727947280472814728247283472844728547286472874728847289472904729147292472934729447295472964729747298472994730047301473024730347304473054730647307473084730947310473114731247313473144731547316473174731847319473204732147322473234732447325473264732747328473294733047331473324733347334473354733647337473384733947340473414734247343473444734547346473474734847349473504735147352473534735447355473564735747358473594736047361473624736347364473654736647367473684736947370473714737247373473744737547376473774737847379473804738147382473834738447385473864738747388473894739047391473924739347394473954739647397473984739947400474014740247403474044740547406474074740847409474104741147412474134741447415474164741747418474194742047421474224742347424474254742647427474284742947430474314743247433474344743547436474374743847439474404744147442474434744447445474464744747448474494745047451474524745347454474554745647457474584745947460474614746247463474644746547466474674746847469474704747147472474734747447475474764747747478474794748047481474824748347484474854748647487474884748947490474914749247493474944749547496474974749847499475004750147502475034750447505475064750747508475094751047511475124751347514475154751647517475184751947520475214752247523475244752547526475274752847529475304753147532475334753447535475364753747538475394754047541475424754347544475454754647547475484754947550475514755247553475544755547556475574755847559475604756147562475634756447565475664756747568475694757047571475724757347574475754757647577475784757947580475814758247583475844758547586475874758847589475904759147592475934759447595475964759747598475994760047601476024760347604476054760647607476084760947610476114761247613476144761547616476174761847619476204762147622476234762447625476264762747628476294763047631476324763347634476354763647637476384763947640476414764247643476444764547646476474764847649476504765147652476534765447655476564765747658476594766047661476624766347664476654766647667476684766947670476714767247673476744767547676476774767847679476804768147682476834768447685476864768747688476894769047691476924769347694476954769647697476984769947700477014770247703477044770547706477074770847709477104771147712477134771447715477164771747718477194772047721477224772347724477254772647727477284772947730477314773247733477344773547736477374773847739477404774147742477434774447745477464774747748477494775047751477524775347754477554775647757477584775947760477614776247763477644776547766477674776847769477704777147772477734777447775477764777747778477794778047781477824778347784477854778647787477884778947790477914779247793477944779547796477974779847799478004780147802478034780447805478064780747808478094781047811478124781347814478154781647817478184781947820478214782247823478244782547826478274782847829478304783147832478334783447835478364783747838478394784047841478424784347844478454784647847478484784947850478514785247853478544785547856478574785847859478604786147862478634786447865478664786747868478694787047871478724787347874478754787647877478784787947880478814788247883478844788547886478874788847889478904789147892478934789447895478964789747898478994790047901479024790347904479054790647907479084790947910479114791247913479144791547916479174791847919479204792147922479234792447925479264792747928479294793047931479324793347934479354793647937479384793947940479414794247943479444794547946479474794847949479504795147952479534795447955479564795747958479594796047961479624796347964479654796647967479684796947970479714797247973479744797547976479774797847979479804798147982479834798447985479864798747988479894799047991479924799347994479954799647997479984799948000480014800248003480044800548006480074800848009480104801148012480134801448015480164801748018480194802048021480224802348024480254802648027480284802948030480314803248033480344803548036480374803848039480404804148042480434804448045480464804748048480494805048051480524805348054480554805648057480584805948060480614806248063480644806548066480674806848069480704807148072480734807448075480764807748078480794808048081480824808348084480854808648087480884808948090480914809248093480944809548096480974809848099481004810148102481034810448105481064810748108481094811048111481124811348114481154811648117481184811948120481214812248123481244812548126481274812848129481304813148132481334813448135481364813748138481394814048141481424814348144481454814648147481484814948150481514815248153481544815548156481574815848159481604816148162481634816448165481664816748168481694817048171481724817348174481754817648177481784817948180481814818248183481844818548186481874818848189481904819148192481934819448195481964819748198481994820048201482024820348204482054820648207482084820948210482114821248213482144821548216482174821848219482204822148222482234822448225482264822748228482294823048231482324823348234482354823648237482384823948240482414824248243482444824548246482474824848249482504825148252482534825448255482564825748258482594826048261482624826348264482654826648267482684826948270482714827248273482744827548276482774827848279482804828148282482834828448285482864828748288482894829048291482924829348294482954829648297482984829948300483014830248303483044830548306483074830848309483104831148312483134831448315483164831748318483194832048321483224832348324483254832648327483284832948330483314833248333483344833548336483374833848339483404834148342483434834448345483464834748348483494835048351483524835348354483554835648357483584835948360483614836248363483644836548366483674836848369483704837148372483734837448375483764837748378483794838048381483824838348384483854838648387483884838948390483914839248393483944839548396483974839848399484004840148402484034840448405484064840748408484094841048411484124841348414484154841648417484184841948420484214842248423484244842548426484274842848429484304843148432484334843448435484364843748438484394844048441484424844348444484454844648447484484844948450484514845248453484544845548456484574845848459484604846148462484634846448465484664846748468484694847048471484724847348474484754847648477484784847948480484814848248483484844848548486484874848848489484904849148492484934849448495484964849748498484994850048501485024850348504485054850648507485084850948510485114851248513485144851548516485174851848519485204852148522485234852448525485264852748528485294853048531485324853348534485354853648537485384853948540485414854248543485444854548546485474854848549485504855148552485534855448555485564855748558485594856048561485624856348564485654856648567485684856948570485714857248573485744857548576485774857848579485804858148582485834858448585485864858748588485894859048591485924859348594485954859648597485984859948600486014860248603486044860548606486074860848609486104861148612486134861448615486164861748618486194862048621486224862348624486254862648627486284862948630486314863248633486344863548636486374863848639486404864148642486434864448645486464864748648486494865048651486524865348654486554865648657486584865948660486614866248663486644866548666486674866848669486704867148672486734867448675486764867748678486794868048681486824868348684486854868648687486884868948690486914869248693486944869548696486974869848699487004870148702487034870448705487064870748708487094871048711487124871348714487154871648717487184871948720487214872248723487244872548726487274872848729487304873148732487334873448735487364873748738487394874048741487424874348744487454874648747487484874948750487514875248753487544875548756487574875848759487604876148762487634876448765487664876748768487694877048771487724877348774487754877648777487784877948780487814878248783487844878548786487874878848789487904879148792487934879448795487964879748798487994880048801488024880348804488054880648807488084880948810488114881248813488144881548816488174881848819488204882148822488234882448825488264882748828488294883048831488324883348834488354883648837488384883948840488414884248843488444884548846488474884848849488504885148852488534885448855488564885748858488594886048861488624886348864488654886648867488684886948870488714887248873488744887548876488774887848879488804888148882488834888448885488864888748888488894889048891488924889348894488954889648897488984889948900489014890248903489044890548906489074890848909489104891148912489134891448915489164891748918489194892048921489224892348924489254892648927489284892948930489314893248933489344893548936489374893848939489404894148942489434894448945489464894748948489494895048951489524895348954489554895648957489584895948960489614896248963489644896548966489674896848969489704897148972489734897448975489764897748978489794898048981489824898348984489854898648987489884898948990489914899248993489944899548996489974899848999490004900149002490034900449005490064900749008490094901049011490124901349014490154901649017490184901949020490214902249023490244902549026490274902849029490304903149032490334903449035490364903749038490394904049041490424904349044490454904649047490484904949050490514905249053490544905549056490574905849059490604906149062490634906449065490664906749068490694907049071490724907349074490754907649077490784907949080490814908249083490844908549086490874908849089490904909149092490934909449095490964909749098490994910049101491024910349104491054910649107491084910949110491114911249113491144911549116491174911849119491204912149122491234912449125491264912749128491294913049131491324913349134491354913649137491384913949140491414914249143491444914549146491474914849149491504915149152491534915449155491564915749158491594916049161491624916349164491654916649167491684916949170491714917249173491744917549176491774917849179491804918149182491834918449185491864918749188
  1. #! /bin/sh
  2. # Guess values for system-dependent variables and create Makefiles.
  3. # Generated by GNU Autoconf 2.71 for curl -.
  4. #
  5. # Report bugs to <a suitable curl mailing list: https://curl.se/mail/>.
  6. #
  7. #
  8. # Copyright (C) 1992-1996, 1998-2017, 2020-2021 Free Software Foundation,
  9. # Inc.
  10. #
  11. #
  12. # This configure script is free software; the Free Software Foundation
  13. # gives unlimited permission to copy, distribute and modify it.
  14. #
  15. # Copyright (c) 1998 - 2021 Daniel Stenberg, <[email protected]>
  16. # This configure script may be copied, distributed and modified under the
  17. # terms of the curl license; see COPYING for more details
  18. ## -------------------------------- ##
  19. ## XC_CONFIGURE_PREAMBLE ver: 1.0 ##
  20. ## -------------------------------- ##
  21. xc_configure_preamble_ver_major='1'
  22. xc_configure_preamble_ver_minor='0'
  23. #
  24. # Set IFS to space, tab and newline.
  25. #
  26. xc_space=' '
  27. xc_tab=' '
  28. xc_newline='
  29. '
  30. IFS="$xc_space$xc_tab$xc_newline"
  31. #
  32. # Set internationalization behavior variables.
  33. #
  34. LANG='C'
  35. LC_ALL='C'
  36. LANGUAGE='C'
  37. export LANG
  38. export LC_ALL
  39. export LANGUAGE
  40. #
  41. # Some useful variables.
  42. #
  43. xc_msg_warn='configure: WARNING:'
  44. xc_msg_abrt='Can not continue.'
  45. xc_msg_err='configure: error:'
  46. #
  47. # Verify that 'echo' command is available, otherwise abort.
  48. #
  49. xc_tst_str='unknown'
  50. (`echo "$xc_tst_str" >/dev/null 2>&1`) && xc_tst_str='success'
  51. case "x$xc_tst_str" in # ((
  52. xsuccess)
  53. :
  54. ;;
  55. *)
  56. # Try built-in echo, and fail.
  57. echo "$xc_msg_err 'echo' command not found. $xc_msg_abrt" >&2
  58. exit 1
  59. ;;
  60. esac
  61. #
  62. # Verify that 'test' command is available, otherwise abort.
  63. #
  64. xc_tst_str='unknown'
  65. (`test -n "$xc_tst_str" >/dev/null 2>&1`) && xc_tst_str='success'
  66. case "x$xc_tst_str" in # ((
  67. xsuccess)
  68. :
  69. ;;
  70. *)
  71. echo "$xc_msg_err 'test' command not found. $xc_msg_abrt" >&2
  72. exit 1
  73. ;;
  74. esac
  75. #
  76. # Verify that 'PATH' variable is set, otherwise abort.
  77. #
  78. xc_tst_str='unknown'
  79. (`test -n "$PATH" >/dev/null 2>&1`) && xc_tst_str='success'
  80. case "x$xc_tst_str" in # ((
  81. xsuccess)
  82. :
  83. ;;
  84. *)
  85. echo "$xc_msg_err 'PATH' variable not set. $xc_msg_abrt" >&2
  86. exit 1
  87. ;;
  88. esac
  89. #
  90. # Verify that 'expr' command is available, otherwise abort.
  91. #
  92. xc_tst_str='unknown'
  93. xc_tst_str=`expr "$xc_tst_str" : '.*' 2>/dev/null`
  94. case "x$xc_tst_str" in # ((
  95. x7)
  96. :
  97. ;;
  98. *)
  99. echo "$xc_msg_err 'expr' command not found. $xc_msg_abrt" >&2
  100. exit 1
  101. ;;
  102. esac
  103. #
  104. # Verify that 'sed' utility is found within 'PATH', otherwise abort.
  105. #
  106. xc_tst_str='unknown'
  107. xc_tst_str=`echo "$xc_tst_str" 2>/dev/null \
  108. | sed -e 's:unknown:success:' 2>/dev/null`
  109. case "x$xc_tst_str" in # ((
  110. xsuccess)
  111. :
  112. ;;
  113. *)
  114. echo "$xc_msg_err 'sed' utility not found in 'PATH'. $xc_msg_abrt" >&2
  115. exit 1
  116. ;;
  117. esac
  118. #
  119. # Verify that 'grep' utility is found within 'PATH', otherwise abort.
  120. #
  121. xc_tst_str='unknown'
  122. (`echo "$xc_tst_str" 2>/dev/null \
  123. | grep 'unknown' >/dev/null 2>&1`) && xc_tst_str='success'
  124. case "x$xc_tst_str" in # ((
  125. xsuccess)
  126. :
  127. ;;
  128. *)
  129. echo "$xc_msg_err 'grep' utility not found in 'PATH'. $xc_msg_abrt" >&2
  130. exit 1
  131. ;;
  132. esac
  133. #
  134. # Verify that 'tr' utility is found within 'PATH', otherwise abort.
  135. #
  136. xc_tst_str="${xc_tab}98s7u6c5c4e3s2s10"
  137. xc_tst_str=`echo "$xc_tst_str" 2>/dev/null \
  138. | tr -d "0123456789$xc_tab" 2>/dev/null`
  139. case "x$xc_tst_str" in # ((
  140. xsuccess)
  141. :
  142. ;;
  143. *)
  144. echo "$xc_msg_err 'tr' utility not found in 'PATH'. $xc_msg_abrt" >&2
  145. exit 1
  146. ;;
  147. esac
  148. #
  149. # Verify that 'wc' utility is found within 'PATH', otherwise abort.
  150. #
  151. xc_tst_str='unknown unknown unknown unknown'
  152. xc_tst_str=`echo "$xc_tst_str" 2>/dev/null \
  153. | wc -w 2>/dev/null | tr -d "$xc_space$xc_tab" 2>/dev/null`
  154. case "x$xc_tst_str" in # ((
  155. x4)
  156. :
  157. ;;
  158. *)
  159. echo "$xc_msg_err 'wc' utility not found in 'PATH'. $xc_msg_abrt" >&2
  160. exit 1
  161. ;;
  162. esac
  163. #
  164. # Verify that 'cat' utility is found within 'PATH', otherwise abort.
  165. #
  166. xc_tst_str='unknown'
  167. xc_tst_str=`cat <<_EOT 2>/dev/null \
  168. | wc -l 2>/dev/null | tr -d "$xc_space$xc_tab" 2>/dev/null
  169. unknown
  170. unknown
  171. unknown
  172. _EOT`
  173. case "x$xc_tst_str" in # ((
  174. x3)
  175. :
  176. ;;
  177. *)
  178. echo "$xc_msg_err 'cat' utility not found in 'PATH'. $xc_msg_abrt" >&2
  179. exit 1
  180. ;;
  181. esac
  182. #
  183. # Auto-detect and set 'PATH_SEPARATOR', unless it is already non-empty set.
  184. #
  185. # Directory count in 'PATH' when using a colon separator.
  186. xc_tst_dirs_col='x'
  187. xc_tst_prev_IFS=$IFS; IFS=':'
  188. for xc_tst_dir in $PATH; do
  189. IFS=$xc_tst_prev_IFS
  190. xc_tst_dirs_col="x$xc_tst_dirs_col"
  191. done
  192. IFS=$xc_tst_prev_IFS
  193. xc_tst_dirs_col=`expr "$xc_tst_dirs_col" : '.*'`
  194. # Directory count in 'PATH' when using a semicolon separator.
  195. xc_tst_dirs_sem='x'
  196. xc_tst_prev_IFS=$IFS; IFS=';'
  197. for xc_tst_dir in $PATH; do
  198. IFS=$xc_tst_prev_IFS
  199. xc_tst_dirs_sem="x$xc_tst_dirs_sem"
  200. done
  201. IFS=$xc_tst_prev_IFS
  202. xc_tst_dirs_sem=`expr "$xc_tst_dirs_sem" : '.*'`
  203. if test $xc_tst_dirs_sem -eq $xc_tst_dirs_col; then
  204. # When both counting methods give the same result we do not want to
  205. # chose one over the other, and consider auto-detection not possible.
  206. if test -z "$PATH_SEPARATOR"; then
  207. # User should provide the correct 'PATH_SEPARATOR' definition.
  208. # Until then, guess that it is colon!
  209. echo "$xc_msg_warn path separator not determined, guessing colon" >&2
  210. PATH_SEPARATOR=':'
  211. fi
  212. else
  213. # Separator with the greater directory count is the auto-detected one.
  214. if test $xc_tst_dirs_sem -gt $xc_tst_dirs_col; then
  215. xc_tst_auto_separator=';'
  216. else
  217. xc_tst_auto_separator=':'
  218. fi
  219. if test -z "$PATH_SEPARATOR"; then
  220. # Simply use the auto-detected one when not already set.
  221. PATH_SEPARATOR=$xc_tst_auto_separator
  222. elif test "x$PATH_SEPARATOR" != "x$xc_tst_auto_separator"; then
  223. echo "$xc_msg_warn 'PATH_SEPARATOR' does not match auto-detected one." >&2
  224. fi
  225. fi
  226. xc_PATH_SEPARATOR=$PATH_SEPARATOR
  227. xc_configure_preamble_result='yes'
  228. ## -------------------- ##
  229. ## M4sh Initialization. ##
  230. ## -------------------- ##
  231. # Be more Bourne compatible
  232. DUALCASE=1; export DUALCASE # for MKS sh
  233. as_nop=:
  234. if test ${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1
  235. then :
  236. emulate sh
  237. NULLCMD=:
  238. # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
  239. # is contrary to our usage. Disable this feature.
  240. alias -g '${1+"$@"}'='"$@"'
  241. setopt NO_GLOB_SUBST
  242. else $as_nop
  243. case `(set -o) 2>/dev/null` in #(
  244. *posix*) :
  245. set -o posix ;; #(
  246. *) :
  247. ;;
  248. esac
  249. fi
  250. # Reset variables that may have inherited troublesome values from
  251. # the environment.
  252. # IFS needs to be set, to space, tab, and newline, in precisely that order.
  253. # (If _AS_PATH_WALK were called with IFS unset, it would have the
  254. # side effect of setting IFS to empty, thus disabling word splitting.)
  255. # Quoting is to prevent editors from complaining about space-tab.
  256. as_nl='
  257. '
  258. export as_nl
  259. IFS=" "" $as_nl"
  260. PS1='$ '
  261. PS2='> '
  262. PS4='+ '
  263. # Ensure predictable behavior from utilities with locale-dependent output.
  264. LC_ALL=C
  265. export LC_ALL
  266. LANGUAGE=C
  267. export LANGUAGE
  268. # We cannot yet rely on "unset" to work, but we need these variables
  269. # to be unset--not just set to an empty or harmless value--now, to
  270. # avoid bugs in old shells (e.g. pre-3.0 UWIN ksh). This construct
  271. # also avoids known problems related to "unset" and subshell syntax
  272. # in other old shells (e.g. bash 2.01 and pdksh 5.2.14).
  273. for as_var in BASH_ENV ENV MAIL MAILPATH CDPATH
  274. do eval test \${$as_var+y} \
  275. && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
  276. done
  277. # Ensure that fds 0, 1, and 2 are open.
  278. if (exec 3>&0) 2>/dev/null; then :; else exec 0</dev/null; fi
  279. if (exec 3>&1) 2>/dev/null; then :; else exec 1>/dev/null; fi
  280. if (exec 3>&2) ; then :; else exec 2>/dev/null; fi
  281. # Find who we are. Look in the path if we contain no directory separator.
  282. as_myself=
  283. case $0 in #((
  284. *[\\/]* ) as_myself=$0 ;;
  285. *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  286. for as_dir in $PATH
  287. do
  288. IFS=$as_save_IFS
  289. case $as_dir in #(((
  290. '') as_dir=./ ;;
  291. */) ;;
  292. *) as_dir=$as_dir/ ;;
  293. esac
  294. test -r "$as_dir$0" && as_myself=$as_dir$0 && break
  295. done
  296. IFS=$as_save_IFS
  297. ;;
  298. esac
  299. # We did not find ourselves, most probably we were run as `sh COMMAND'
  300. # in which case we are not to be found in the path.
  301. if test "x$as_myself" = x; then
  302. as_myself=$0
  303. fi
  304. if test ! -f "$as_myself"; then
  305. printf "%s\n" "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
  306. exit 1
  307. fi
  308. # Use a proper internal environment variable to ensure we don't fall
  309. # into an infinite loop, continuously re-executing ourselves.
  310. if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
  311. _as_can_reexec=no; export _as_can_reexec;
  312. # We cannot yet assume a decent shell, so we have to provide a
  313. # neutralization value for shells without unset; and this also
  314. # works around shells that cannot unset nonexistent variables.
  315. # Preserve -v and -x to the replacement shell.
  316. BASH_ENV=/dev/null
  317. ENV=/dev/null
  318. (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
  319. case $- in # ((((
  320. *v*x* | *x*v* ) as_opts=-vx ;;
  321. *v* ) as_opts=-v ;;
  322. *x* ) as_opts=-x ;;
  323. * ) as_opts= ;;
  324. esac
  325. exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
  326. # Admittedly, this is quite paranoid, since all the known shells bail
  327. # out after a failed `exec'.
  328. printf "%s\n" "$0: could not re-execute with $CONFIG_SHELL" >&2
  329. exit 255
  330. fi
  331. # We don't want this to propagate to other subprocesses.
  332. { _as_can_reexec=; unset _as_can_reexec;}
  333. if test "x$CONFIG_SHELL" = x; then
  334. as_bourne_compatible="as_nop=:
  335. if test \${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1
  336. then :
  337. emulate sh
  338. NULLCMD=:
  339. # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
  340. # is contrary to our usage. Disable this feature.
  341. alias -g '\${1+\"\$@\"}'='\"\$@\"'
  342. setopt NO_GLOB_SUBST
  343. else \$as_nop
  344. case \`(set -o) 2>/dev/null\` in #(
  345. *posix*) :
  346. set -o posix ;; #(
  347. *) :
  348. ;;
  349. esac
  350. fi
  351. "
  352. as_required="as_fn_return () { (exit \$1); }
  353. as_fn_success () { as_fn_return 0; }
  354. as_fn_failure () { as_fn_return 1; }
  355. as_fn_ret_success () { return 0; }
  356. as_fn_ret_failure () { return 1; }
  357. exitcode=0
  358. as_fn_success || { exitcode=1; echo as_fn_success failed.; }
  359. as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
  360. as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
  361. as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
  362. if ( set x; as_fn_ret_success y && test x = \"\$1\" )
  363. then :
  364. else \$as_nop
  365. exitcode=1; echo positional parameters were not saved.
  366. fi
  367. test x\$exitcode = x0 || exit 1
  368. blah=\$(echo \$(echo blah))
  369. test x\"\$blah\" = xblah || exit 1
  370. test -x / || exit 1"
  371. as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
  372. as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
  373. eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
  374. test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
  375. test \$(( 1 + 1 )) = 2 || exit 1
  376. test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
  377. ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
  378. ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
  379. ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
  380. PATH=/empty FPATH=/empty; export PATH FPATH
  381. test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
  382. || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1"
  383. if (eval "$as_required") 2>/dev/null
  384. then :
  385. as_have_required=yes
  386. else $as_nop
  387. as_have_required=no
  388. fi
  389. if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null
  390. then :
  391. else $as_nop
  392. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  393. as_found=false
  394. for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
  395. do
  396. IFS=$as_save_IFS
  397. case $as_dir in #(((
  398. '') as_dir=./ ;;
  399. */) ;;
  400. *) as_dir=$as_dir/ ;;
  401. esac
  402. as_found=:
  403. case $as_dir in #(
  404. /*)
  405. for as_base in sh bash ksh sh5; do
  406. # Try only shells that exist, to save several forks.
  407. as_shell=$as_dir$as_base
  408. if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
  409. as_run=a "$as_shell" -c "$as_bourne_compatible""$as_required" 2>/dev/null
  410. then :
  411. CONFIG_SHELL=$as_shell as_have_required=yes
  412. if as_run=a "$as_shell" -c "$as_bourne_compatible""$as_suggested" 2>/dev/null
  413. then :
  414. break 2
  415. fi
  416. fi
  417. done;;
  418. esac
  419. as_found=false
  420. done
  421. IFS=$as_save_IFS
  422. if $as_found
  423. then :
  424. else $as_nop
  425. if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
  426. as_run=a "$SHELL" -c "$as_bourne_compatible""$as_required" 2>/dev/null
  427. then :
  428. CONFIG_SHELL=$SHELL as_have_required=yes
  429. fi
  430. fi
  431. if test "x$CONFIG_SHELL" != x
  432. then :
  433. export CONFIG_SHELL
  434. # We cannot yet assume a decent shell, so we have to provide a
  435. # neutralization value for shells without unset; and this also
  436. # works around shells that cannot unset nonexistent variables.
  437. # Preserve -v and -x to the replacement shell.
  438. BASH_ENV=/dev/null
  439. ENV=/dev/null
  440. (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
  441. case $- in # ((((
  442. *v*x* | *x*v* ) as_opts=-vx ;;
  443. *v* ) as_opts=-v ;;
  444. *x* ) as_opts=-x ;;
  445. * ) as_opts= ;;
  446. esac
  447. exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
  448. # Admittedly, this is quite paranoid, since all the known shells bail
  449. # out after a failed `exec'.
  450. printf "%s\n" "$0: could not re-execute with $CONFIG_SHELL" >&2
  451. exit 255
  452. fi
  453. if test x$as_have_required = xno
  454. then :
  455. printf "%s\n" "$0: This script requires a shell more modern than all"
  456. printf "%s\n" "$0: the shells that I found on your system."
  457. if test ${ZSH_VERSION+y} ; then
  458. printf "%s\n" "$0: In particular, zsh $ZSH_VERSION has bugs and should"
  459. printf "%s\n" "$0: be upgraded to zsh 4.3.4 or later."
  460. else
  461. printf "%s\n" "$0: Please tell [email protected] and a suitable curl
  462. $0: mailing list: https://curl.se/mail/ about your system,
  463. $0: including any error possibly output before this
  464. $0: message. Then install a modern shell, or manually run
  465. $0: the script under such a shell if you do have one."
  466. fi
  467. exit 1
  468. fi
  469. fi
  470. fi
  471. SHELL=${CONFIG_SHELL-/bin/sh}
  472. export SHELL
  473. # Unset more variables known to interfere with behavior of common tools.
  474. CLICOLOR_FORCE= GREP_OPTIONS=
  475. unset CLICOLOR_FORCE GREP_OPTIONS
  476. ## --------------------- ##
  477. ## M4sh Shell Functions. ##
  478. ## --------------------- ##
  479. # as_fn_unset VAR
  480. # ---------------
  481. # Portably unset VAR.
  482. as_fn_unset ()
  483. {
  484. { eval $1=; unset $1;}
  485. }
  486. as_unset=as_fn_unset
  487. # as_fn_set_status STATUS
  488. # -----------------------
  489. # Set $? to STATUS, without forking.
  490. as_fn_set_status ()
  491. {
  492. return $1
  493. } # as_fn_set_status
  494. # as_fn_exit STATUS
  495. # -----------------
  496. # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
  497. as_fn_exit ()
  498. {
  499. set +e
  500. as_fn_set_status $1
  501. exit $1
  502. } # as_fn_exit
  503. # as_fn_nop
  504. # ---------
  505. # Do nothing but, unlike ":", preserve the value of $?.
  506. as_fn_nop ()
  507. {
  508. return $?
  509. }
  510. as_nop=as_fn_nop
  511. # as_fn_mkdir_p
  512. # -------------
  513. # Create "$as_dir" as a directory, including parents if necessary.
  514. as_fn_mkdir_p ()
  515. {
  516. case $as_dir in #(
  517. -*) as_dir=./$as_dir;;
  518. esac
  519. test -d "$as_dir" || eval $as_mkdir_p || {
  520. as_dirs=
  521. while :; do
  522. case $as_dir in #(
  523. *\'*) as_qdir=`printf "%s\n" "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
  524. *) as_qdir=$as_dir;;
  525. esac
  526. as_dirs="'$as_qdir' $as_dirs"
  527. as_dir=`$as_dirname -- "$as_dir" ||
  528. $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  529. X"$as_dir" : 'X\(//\)[^/]' \| \
  530. X"$as_dir" : 'X\(//\)$' \| \
  531. X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
  532. printf "%s\n" X"$as_dir" |
  533. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  534. s//\1/
  535. q
  536. }
  537. /^X\(\/\/\)[^/].*/{
  538. s//\1/
  539. q
  540. }
  541. /^X\(\/\/\)$/{
  542. s//\1/
  543. q
  544. }
  545. /^X\(\/\).*/{
  546. s//\1/
  547. q
  548. }
  549. s/.*/./; q'`
  550. test -d "$as_dir" && break
  551. done
  552. test -z "$as_dirs" || eval "mkdir $as_dirs"
  553. } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
  554. } # as_fn_mkdir_p
  555. # as_fn_executable_p FILE
  556. # -----------------------
  557. # Test if FILE is an executable regular file.
  558. as_fn_executable_p ()
  559. {
  560. test -f "$1" && test -x "$1"
  561. } # as_fn_executable_p
  562. # as_fn_append VAR VALUE
  563. # ----------------------
  564. # Append the text in VALUE to the end of the definition contained in VAR. Take
  565. # advantage of any shell optimizations that allow amortized linear growth over
  566. # repeated appends, instead of the typical quadratic growth present in naive
  567. # implementations.
  568. if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null
  569. then :
  570. eval 'as_fn_append ()
  571. {
  572. eval $1+=\$2
  573. }'
  574. else $as_nop
  575. as_fn_append ()
  576. {
  577. eval $1=\$$1\$2
  578. }
  579. fi # as_fn_append
  580. # as_fn_arith ARG...
  581. # ------------------
  582. # Perform arithmetic evaluation on the ARGs, and store the result in the
  583. # global $as_val. Take advantage of shells that can avoid forks. The arguments
  584. # must be portable across $(()) and expr.
  585. if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null
  586. then :
  587. eval 'as_fn_arith ()
  588. {
  589. as_val=$(( $* ))
  590. }'
  591. else $as_nop
  592. as_fn_arith ()
  593. {
  594. as_val=`expr "$@" || test $? -eq 1`
  595. }
  596. fi # as_fn_arith
  597. # as_fn_nop
  598. # ---------
  599. # Do nothing but, unlike ":", preserve the value of $?.
  600. as_fn_nop ()
  601. {
  602. return $?
  603. }
  604. as_nop=as_fn_nop
  605. # as_fn_error STATUS ERROR [LINENO LOG_FD]
  606. # ----------------------------------------
  607. # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
  608. # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
  609. # script with STATUS, using 1 if that was 0.
  610. as_fn_error ()
  611. {
  612. as_status=$1; test $as_status -eq 0 && as_status=1
  613. if test "$4"; then
  614. as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  615. printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
  616. fi
  617. printf "%s\n" "$as_me: error: $2" >&2
  618. as_fn_exit $as_status
  619. } # as_fn_error
  620. if expr a : '\(a\)' >/dev/null 2>&1 &&
  621. test "X`expr 00001 : '.*\(...\)'`" = X001; then
  622. as_expr=expr
  623. else
  624. as_expr=false
  625. fi
  626. if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
  627. as_basename=basename
  628. else
  629. as_basename=false
  630. fi
  631. if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
  632. as_dirname=dirname
  633. else
  634. as_dirname=false
  635. fi
  636. as_me=`$as_basename -- "$0" ||
  637. $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
  638. X"$0" : 'X\(//\)$' \| \
  639. X"$0" : 'X\(/\)' \| . 2>/dev/null ||
  640. printf "%s\n" X/"$0" |
  641. sed '/^.*\/\([^/][^/]*\)\/*$/{
  642. s//\1/
  643. q
  644. }
  645. /^X\/\(\/\/\)$/{
  646. s//\1/
  647. q
  648. }
  649. /^X\/\(\/\).*/{
  650. s//\1/
  651. q
  652. }
  653. s/.*/./; q'`
  654. # Avoid depending upon Character Ranges.
  655. as_cr_letters='abcdefghijklmnopqrstuvwxyz'
  656. as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
  657. as_cr_Letters=$as_cr_letters$as_cr_LETTERS
  658. as_cr_digits='0123456789'
  659. as_cr_alnum=$as_cr_Letters$as_cr_digits
  660. as_lineno_1=$LINENO as_lineno_1a=$LINENO
  661. as_lineno_2=$LINENO as_lineno_2a=$LINENO
  662. eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
  663. test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
  664. # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
  665. sed -n '
  666. p
  667. /[$]LINENO/=
  668. ' <$as_myself |
  669. sed '
  670. s/[$]LINENO.*/&-/
  671. t lineno
  672. b
  673. :lineno
  674. N
  675. :loop
  676. s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
  677. t loop
  678. s/-\n.*//
  679. ' >$as_me.lineno &&
  680. chmod +x "$as_me.lineno" ||
  681. { printf "%s\n" "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
  682. # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
  683. # already done that, so ensure we don't try to do so again and fall
  684. # in an infinite loop. This has already happened in practice.
  685. _as_can_reexec=no; export _as_can_reexec
  686. # Don't try to exec as it changes $[0], causing all sort of problems
  687. # (the dirname of $[0] is not the place where we might find the
  688. # original and so on. Autoconf is especially sensitive to this).
  689. . "./$as_me.lineno"
  690. # Exit status is that of the last command.
  691. exit
  692. }
  693. # Determine whether it's possible to make 'echo' print without a newline.
  694. # These variables are no longer used directly by Autoconf, but are AC_SUBSTed
  695. # for compatibility with existing Makefiles.
  696. ECHO_C= ECHO_N= ECHO_T=
  697. case `echo -n x` in #(((((
  698. -n*)
  699. case `echo 'xy\c'` in
  700. *c*) ECHO_T=' ';; # ECHO_T is single tab character.
  701. xy) ECHO_C='\c';;
  702. *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
  703. ECHO_T=' ';;
  704. esac;;
  705. *)
  706. ECHO_N='-n';;
  707. esac
  708. # For backward compatibility with old third-party macros, we provide
  709. # the shell variables $as_echo and $as_echo_n. New code should use
  710. # AS_ECHO(["message"]) and AS_ECHO_N(["message"]), respectively.
  711. as_echo='printf %s\n'
  712. as_echo_n='printf %s'
  713. rm -f conf$$ conf$$.exe conf$$.file
  714. if test -d conf$$.dir; then
  715. rm -f conf$$.dir/conf$$.file
  716. else
  717. rm -f conf$$.dir
  718. mkdir conf$$.dir 2>/dev/null
  719. fi
  720. if (echo >conf$$.file) 2>/dev/null; then
  721. if ln -s conf$$.file conf$$ 2>/dev/null; then
  722. as_ln_s='ln -s'
  723. # ... but there are two gotchas:
  724. # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
  725. # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
  726. # In both cases, we have to default to `cp -pR'.
  727. ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
  728. as_ln_s='cp -pR'
  729. elif ln conf$$.file conf$$ 2>/dev/null; then
  730. as_ln_s=ln
  731. else
  732. as_ln_s='cp -pR'
  733. fi
  734. else
  735. as_ln_s='cp -pR'
  736. fi
  737. rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
  738. rmdir conf$$.dir 2>/dev/null
  739. if mkdir -p . 2>/dev/null; then
  740. as_mkdir_p='mkdir -p "$as_dir"'
  741. else
  742. test -d ./-p && rmdir ./-p
  743. as_mkdir_p=false
  744. fi
  745. as_test_x='test -x'
  746. as_executable_p=as_fn_executable_p
  747. # Sed expression to map a string onto a valid CPP name.
  748. as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
  749. # Sed expression to map a string onto a valid variable name.
  750. as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
  751. SHELL=${CONFIG_SHELL-/bin/sh}
  752. test -n "$DJDIR" || exec 7<&0 </dev/null
  753. exec 6>&1
  754. # Name of the host.
  755. # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
  756. # so uname gets run too.
  757. ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
  758. #
  759. # Initializations.
  760. #
  761. ac_default_prefix=/usr/local
  762. ac_clean_files=
  763. ac_config_libobj_dir=.
  764. LIBOBJS=
  765. cross_compiling=no
  766. subdirs=
  767. MFLAGS=
  768. MAKEFLAGS=
  769. # Identity of this package.
  770. PACKAGE_NAME='curl'
  771. PACKAGE_TARNAME='curl'
  772. PACKAGE_VERSION='-'
  773. PACKAGE_STRING='curl -'
  774. PACKAGE_BUGREPORT='a suitable curl mailing list: https://curl.se/mail/'
  775. PACKAGE_URL=''
  776. ac_unique_file="lib/urldata.h"
  777. # Factoring default headers for most tests.
  778. ac_includes_default="\
  779. #include <stddef.h>
  780. #ifdef HAVE_STDIO_H
  781. # include <stdio.h>
  782. #endif
  783. #ifdef HAVE_STDLIB_H
  784. # include <stdlib.h>
  785. #endif
  786. #ifdef HAVE_STRING_H
  787. # include <string.h>
  788. #endif
  789. #ifdef HAVE_INTTYPES_H
  790. # include <inttypes.h>
  791. #endif
  792. #ifdef HAVE_STDINT_H
  793. # include <stdint.h>
  794. #endif
  795. #ifdef HAVE_STRINGS_H
  796. # include <strings.h>
  797. #endif
  798. #ifdef HAVE_SYS_TYPES_H
  799. # include <sys/types.h>
  800. #endif
  801. #ifdef HAVE_SYS_STAT_H
  802. # include <sys/stat.h>
  803. #endif
  804. #ifdef HAVE_UNISTD_H
  805. # include <unistd.h>
  806. #endif"
  807. ac_header_c_list=
  808. enable_option_checking=no
  809. ac_subst_vars='am__EXEEXT_FALSE
  810. am__EXEEXT_TRUE
  811. LTLIBOBJS
  812. LIBOBJS
  813. SSL_BACKENDS
  814. SUPPORT_PROTOCOLS
  815. SUPPORT_FEATURES
  816. LIBCURL_NO_SHARED
  817. ENABLE_STATIC
  818. ENABLE_SHARED
  819. CROSSCOMPILING_FALSE
  820. CROSSCOMPILING_TRUE
  821. BLANK_AT_MAKETIME
  822. CURL_NETWORK_AND_TIME_LIBS
  823. CURL_NETWORK_LIBS
  824. LIBCURL_LIBS
  825. CFLAG_CURL_SYMBOL_HIDING
  826. DOING_CURL_SYMBOL_HIDING_FALSE
  827. DOING_CURL_SYMBOL_HIDING_TRUE
  828. USE_UNIX_SOCKETS
  829. BUILD_LIBHOSTNAME_FALSE
  830. BUILD_LIBHOSTNAME_TRUE
  831. USE_EMBEDDED_ARES_FALSE
  832. USE_EMBEDDED_ARES_TRUE
  833. USE_ARES
  834. subdirs
  835. USE_MANUAL_FALSE
  836. USE_MANUAL_TRUE
  837. MANOPT
  838. NROFF
  839. PERL
  840. FISH_FUNCTIONS_DIR
  841. ZSH_FUNCTIONS_DIR
  842. USE_QUICHE
  843. USE_NGHTTP3
  844. USE_NGTCP2_CRYPTO_GNUTLS
  845. USE_NGTCP2_CRYPTO_OPENSSL
  846. USE_NGTCP2
  847. USE_NGHTTP2
  848. IDN_ENABLED
  849. CURL_LT_SHLIB_USE_VERSIONED_SYMBOLS_FALSE
  850. CURL_LT_SHLIB_USE_VERSIONED_SYMBOLS_TRUE
  851. CURL_LT_SHLIB_VERSIONED_FLAVOUR
  852. USE_LIBRTMP
  853. USE_WOLFSSH
  854. USE_LIBSSH
  855. USE_LIBSSH2
  856. USE_GSASL_FALSE
  857. USE_GSASL_TRUE
  858. USE_LIBPSL_FALSE
  859. USE_LIBPSL_TRUE
  860. CURL_CA_BUNDLE
  861. CURL_WITH_MULTI_SSL
  862. SSL_ENABLED
  863. NSS_LIBS
  864. USE_NSS
  865. USE_RUSTLS
  866. USE_BEARSSL
  867. USE_MESALINK
  868. USE_WOLFSSL
  869. USE_MBEDTLS
  870. HAVE_GNUTLS_SRP
  871. USE_GNUTLS
  872. HAVE_OPENSSL_SRP
  873. RANDOM_FILE
  874. SSL_LIBS
  875. USE_SECTRANSP
  876. USE_WINDOWS_SSPI
  877. USE_SCHANNEL
  878. DEFAULT_SSL_BACKEND
  879. BUILD_STUB_GSS_FALSE
  880. BUILD_STUB_GSS_TRUE
  881. IPV6_ENABLED
  882. USE_OPENLDAP
  883. HAVE_ZSTD
  884. HAVE_BROTLI
  885. ZLIB_LIBS
  886. HAVE_LIBZ_FALSE
  887. HAVE_LIBZ_TRUE
  888. HAVE_LIBZ
  889. HAVE_PROTO_BSDSOCKET_H
  890. CURL_DISABLE_MQTT
  891. CURL_DISABLE_GOPHER
  892. CURL_DISABLE_SMTP
  893. CURL_DISABLE_SMB
  894. CURL_DISABLE_IMAP
  895. CURL_DISABLE_POP3
  896. CURL_DISABLE_TFTP
  897. CURL_DISABLE_TELNET
  898. CURL_DISABLE_DICT
  899. CURL_DISABLE_PROXY
  900. USE_HYPER
  901. PKGCONFIG
  902. HAVE_LDAP_SSL
  903. CURL_DISABLE_LDAPS
  904. CURL_DISABLE_LDAP
  905. CURL_DISABLE_FILE
  906. CURL_DISABLE_FTP
  907. CURL_DISABLE_RTSP
  908. CURL_DISABLE_HTTP
  909. USE_WIN32_CRYPTO
  910. USE_WIN32_SMALL_FILES
  911. USE_WIN32_LARGE_FILES
  912. DOING_NATIVE_WINDOWS_FALSE
  913. DOING_NATIVE_WINDOWS_TRUE
  914. BUILD_UNITTESTS_FALSE
  915. BUILD_UNITTESTS_TRUE
  916. CURLDEBUG_FALSE
  917. CURLDEBUG_TRUE
  918. CURL_CFLAG_EXTRAS
  919. USE_EXPLICIT_LIB_DEPS_FALSE
  920. USE_EXPLICIT_LIB_DEPS_TRUE
  921. REQUIRE_LIB_DEPS
  922. CPPFLAG_CURL_STATICLIB
  923. USE_CPPFLAG_CURL_STATICLIB_FALSE
  924. USE_CPPFLAG_CURL_STATICLIB_TRUE
  925. CURL_LT_SHLIB_USE_MIMPURE_TEXT_FALSE
  926. CURL_LT_SHLIB_USE_MIMPURE_TEXT_TRUE
  927. CURL_LT_SHLIB_USE_NO_UNDEFINED_FALSE
  928. CURL_LT_SHLIB_USE_NO_UNDEFINED_TRUE
  929. CURL_LT_SHLIB_USE_VERSION_INFO_FALSE
  930. CURL_LT_SHLIB_USE_VERSION_INFO_TRUE
  931. LT_SYS_LIBRARY_PATH
  932. OTOOL64
  933. OTOOL
  934. LIPO
  935. NMEDIT
  936. DSYMUTIL
  937. MANIFEST_TOOL
  938. RANLIB
  939. ac_ct_AR
  940. LN_S
  941. NM
  942. ac_ct_DUMPBIN
  943. DUMPBIN
  944. LD
  945. FGREP
  946. LIBTOOL
  947. OBJDUMP
  948. DLLTOOL
  949. AS
  950. AR_FLAGS
  951. host_os
  952. host_vendor
  953. host_cpu
  954. host
  955. build_os
  956. build_vendor
  957. build_cpu
  958. build
  959. PKGADD_VENDOR
  960. PKGADD_NAME
  961. PKGADD_PKG
  962. VERSIONNUM
  963. CURLVERSION
  964. CSCOPE
  965. ETAGS
  966. CTAGS
  967. am__fastdepCC_FALSE
  968. am__fastdepCC_TRUE
  969. CCDEPMODE
  970. am__nodep
  971. AMDEPBACKSLASH
  972. AMDEP_FALSE
  973. AMDEP_TRUE
  974. am__include
  975. DEPDIR
  976. am__untar
  977. am__tar
  978. AMTAR
  979. am__leading_dot
  980. SET_MAKE
  981. AWK
  982. mkdir_p
  983. MKDIR_P
  984. INSTALL_STRIP_PROGRAM
  985. STRIP
  986. install_sh
  987. MAKEINFO
  988. AUTOHEADER
  989. AUTOMAKE
  990. AUTOCONF
  991. ACLOCAL
  992. VERSION
  993. PACKAGE
  994. CYGPATH_W
  995. am__isrc
  996. LCOV
  997. GCOV
  998. CPP
  999. OBJEXT
  1000. EXEEXT
  1001. ac_ct_CC
  1002. CPPFLAGS
  1003. LDFLAGS
  1004. CFLAGS
  1005. CC
  1006. INSTALL_DATA
  1007. INSTALL_SCRIPT
  1008. INSTALL_PROGRAM
  1009. libext
  1010. AR
  1011. EGREP
  1012. GREP
  1013. SED
  1014. CONFIGURE_OPTIONS
  1015. AM_BACKSLASH
  1016. AM_DEFAULT_VERBOSITY
  1017. AM_DEFAULT_V
  1018. AM_V
  1019. MAINT
  1020. MAINTAINER_MODE_FALSE
  1021. MAINTAINER_MODE_TRUE
  1022. target_alias
  1023. host_alias
  1024. build_alias
  1025. LIBS
  1026. ECHO_T
  1027. ECHO_N
  1028. ECHO_C
  1029. DEFS
  1030. mandir
  1031. localedir
  1032. libdir
  1033. psdir
  1034. pdfdir
  1035. dvidir
  1036. htmldir
  1037. infodir
  1038. docdir
  1039. oldincludedir
  1040. includedir
  1041. runstatedir
  1042. localstatedir
  1043. sharedstatedir
  1044. sysconfdir
  1045. datadir
  1046. datarootdir
  1047. libexecdir
  1048. sbindir
  1049. bindir
  1050. program_transform_name
  1051. prefix
  1052. exec_prefix
  1053. PACKAGE_URL
  1054. PACKAGE_BUGREPORT
  1055. PACKAGE_STRING
  1056. PACKAGE_VERSION
  1057. PACKAGE_TARNAME
  1058. PACKAGE_NAME
  1059. SHELL
  1060. PATH_SEPARATOR
  1061. am__quote'
  1062. ac_subst_files=''
  1063. ac_user_opts='
  1064. enable_option_checking
  1065. enable_maintainer_mode
  1066. enable_silent_rules
  1067. enable_debug
  1068. enable_optimize
  1069. enable_warnings
  1070. enable_werror
  1071. enable_curldebug
  1072. enable_symbol_hiding
  1073. enable_ares
  1074. enable_rt
  1075. enable_ech
  1076. enable_code_coverage
  1077. enable_dependency_tracking
  1078. with_schannel
  1079. with_secure_transport
  1080. with_amissl
  1081. with_ssl
  1082. with_openssl
  1083. with_gnutls
  1084. with_mbedtls
  1085. with_wolfssl
  1086. with_mesalink
  1087. with_bearssl
  1088. with_rustls
  1089. with_nss
  1090. with_darwinssl
  1091. enable_largefile
  1092. enable_shared
  1093. enable_static
  1094. with_pic
  1095. enable_fast_install
  1096. with_aix_soname
  1097. with_gnu_ld
  1098. with_sysroot
  1099. enable_libtool_lock
  1100. enable_http
  1101. enable_ftp
  1102. enable_file
  1103. enable_ldap
  1104. enable_ldaps
  1105. with_hyper
  1106. enable_rtsp
  1107. enable_proxy
  1108. enable_dict
  1109. enable_telnet
  1110. enable_tftp
  1111. enable_pop3
  1112. enable_imap
  1113. enable_smb
  1114. enable_smtp
  1115. enable_gopher
  1116. enable_mqtt
  1117. enable_manual
  1118. enable_libcurl_option
  1119. enable_libgcc
  1120. with_zlib
  1121. with_brotli
  1122. with_zstd
  1123. with_ldap_lib
  1124. with_lber_lib
  1125. enable_ipv6
  1126. with_gssapi_includes
  1127. with_gssapi_libs
  1128. with_gssapi
  1129. with_default_ssl_backend
  1130. with_egd_socket
  1131. with_random
  1132. enable_openssl_auto_load_config
  1133. with_ca_bundle
  1134. with_ca_path
  1135. with_ca_fallback
  1136. with_libpsl
  1137. with_libgsasl
  1138. with_libmetalink
  1139. with_libssh2
  1140. with_libssh
  1141. with_wolfssh
  1142. with_librtmp
  1143. enable_versioned_symbols
  1144. with_winidn
  1145. with_libidn2
  1146. with_nghttp2
  1147. with_ngtcp2
  1148. with_nghttp3
  1149. with_quiche
  1150. with_zsh_functions_dir
  1151. with_fish_functions_dir
  1152. enable_threaded_resolver
  1153. enable_pthreads
  1154. enable_verbose
  1155. enable_sspi
  1156. enable_crypto_auth
  1157. enable_ntlm
  1158. enable_ntlm_wb
  1159. enable_tls_srp
  1160. enable_unix_sockets
  1161. enable_cookies
  1162. enable_socketpair
  1163. enable_http_auth
  1164. enable_doh
  1165. enable_mime
  1166. enable_dateparse
  1167. enable_netrc
  1168. enable_progress_meter
  1169. enable_dnsshuffle
  1170. enable_get_easy_options
  1171. enable_alt_svc
  1172. enable_hsts
  1173. '
  1174. ac_precious_vars='build_alias
  1175. host_alias
  1176. target_alias
  1177. CC
  1178. CFLAGS
  1179. LDFLAGS
  1180. LIBS
  1181. CPPFLAGS
  1182. CPP
  1183. LT_SYS_LIBRARY_PATH'
  1184. ac_subdirs_all='ares'
  1185. # Initialize some variables set by options.
  1186. ac_init_help=
  1187. ac_init_version=false
  1188. ac_unrecognized_opts=
  1189. ac_unrecognized_sep=
  1190. # The variables have the same names as the options, with
  1191. # dashes changed to underlines.
  1192. cache_file=/dev/null
  1193. exec_prefix=NONE
  1194. no_create=
  1195. no_recursion=
  1196. prefix=NONE
  1197. program_prefix=NONE
  1198. program_suffix=NONE
  1199. program_transform_name=s,x,x,
  1200. silent=
  1201. site=
  1202. srcdir=
  1203. verbose=
  1204. x_includes=NONE
  1205. x_libraries=NONE
  1206. # Installation directory options.
  1207. # These are left unexpanded so users can "make install exec_prefix=/foo"
  1208. # and all the variables that are supposed to be based on exec_prefix
  1209. # by default will actually change.
  1210. # Use braces instead of parens because sh, perl, etc. also accept them.
  1211. # (The list follows the same order as the GNU Coding Standards.)
  1212. bindir='${exec_prefix}/bin'
  1213. sbindir='${exec_prefix}/sbin'
  1214. libexecdir='${exec_prefix}/libexec'
  1215. datarootdir='${prefix}/share'
  1216. datadir='${datarootdir}'
  1217. sysconfdir='${prefix}/etc'
  1218. sharedstatedir='${prefix}/com'
  1219. localstatedir='${prefix}/var'
  1220. runstatedir='${localstatedir}/run'
  1221. includedir='${prefix}/include'
  1222. oldincludedir='/usr/include'
  1223. docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
  1224. infodir='${datarootdir}/info'
  1225. htmldir='${docdir}'
  1226. dvidir='${docdir}'
  1227. pdfdir='${docdir}'
  1228. psdir='${docdir}'
  1229. libdir='${exec_prefix}/lib'
  1230. localedir='${datarootdir}/locale'
  1231. mandir='${datarootdir}/man'
  1232. ac_prev=
  1233. ac_dashdash=
  1234. for ac_option
  1235. do
  1236. # If the previous option needs an argument, assign it.
  1237. if test -n "$ac_prev"; then
  1238. eval $ac_prev=\$ac_option
  1239. ac_prev=
  1240. continue
  1241. fi
  1242. case $ac_option in
  1243. *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
  1244. *=) ac_optarg= ;;
  1245. *) ac_optarg=yes ;;
  1246. esac
  1247. case $ac_dashdash$ac_option in
  1248. --)
  1249. ac_dashdash=yes ;;
  1250. -bindir | --bindir | --bindi | --bind | --bin | --bi)
  1251. ac_prev=bindir ;;
  1252. -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
  1253. bindir=$ac_optarg ;;
  1254. -build | --build | --buil | --bui | --bu)
  1255. ac_prev=build_alias ;;
  1256. -build=* | --build=* | --buil=* | --bui=* | --bu=*)
  1257. build_alias=$ac_optarg ;;
  1258. -cache-file | --cache-file | --cache-fil | --cache-fi \
  1259. | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
  1260. ac_prev=cache_file ;;
  1261. -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
  1262. | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
  1263. cache_file=$ac_optarg ;;
  1264. --config-cache | -C)
  1265. cache_file=config.cache ;;
  1266. -datadir | --datadir | --datadi | --datad)
  1267. ac_prev=datadir ;;
  1268. -datadir=* | --datadir=* | --datadi=* | --datad=*)
  1269. datadir=$ac_optarg ;;
  1270. -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
  1271. | --dataroo | --dataro | --datar)
  1272. ac_prev=datarootdir ;;
  1273. -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
  1274. | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
  1275. datarootdir=$ac_optarg ;;
  1276. -disable-* | --disable-*)
  1277. ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
  1278. # Reject names that are not valid shell variable names.
  1279. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  1280. as_fn_error $? "invalid feature name: \`$ac_useropt'"
  1281. ac_useropt_orig=$ac_useropt
  1282. ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
  1283. case $ac_user_opts in
  1284. *"
  1285. "enable_$ac_useropt"
  1286. "*) ;;
  1287. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
  1288. ac_unrecognized_sep=', ';;
  1289. esac
  1290. eval enable_$ac_useropt=no ;;
  1291. -docdir | --docdir | --docdi | --doc | --do)
  1292. ac_prev=docdir ;;
  1293. -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
  1294. docdir=$ac_optarg ;;
  1295. -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
  1296. ac_prev=dvidir ;;
  1297. -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
  1298. dvidir=$ac_optarg ;;
  1299. -enable-* | --enable-*)
  1300. ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
  1301. # Reject names that are not valid shell variable names.
  1302. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  1303. as_fn_error $? "invalid feature name: \`$ac_useropt'"
  1304. ac_useropt_orig=$ac_useropt
  1305. ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
  1306. case $ac_user_opts in
  1307. *"
  1308. "enable_$ac_useropt"
  1309. "*) ;;
  1310. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
  1311. ac_unrecognized_sep=', ';;
  1312. esac
  1313. eval enable_$ac_useropt=\$ac_optarg ;;
  1314. -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
  1315. | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
  1316. | --exec | --exe | --ex)
  1317. ac_prev=exec_prefix ;;
  1318. -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
  1319. | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
  1320. | --exec=* | --exe=* | --ex=*)
  1321. exec_prefix=$ac_optarg ;;
  1322. -gas | --gas | --ga | --g)
  1323. # Obsolete; use --with-gas.
  1324. with_gas=yes ;;
  1325. -help | --help | --hel | --he | -h)
  1326. ac_init_help=long ;;
  1327. -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
  1328. ac_init_help=recursive ;;
  1329. -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
  1330. ac_init_help=short ;;
  1331. -host | --host | --hos | --ho)
  1332. ac_prev=host_alias ;;
  1333. -host=* | --host=* | --hos=* | --ho=*)
  1334. host_alias=$ac_optarg ;;
  1335. -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
  1336. ac_prev=htmldir ;;
  1337. -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
  1338. | --ht=*)
  1339. htmldir=$ac_optarg ;;
  1340. -includedir | --includedir | --includedi | --included | --include \
  1341. | --includ | --inclu | --incl | --inc)
  1342. ac_prev=includedir ;;
  1343. -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
  1344. | --includ=* | --inclu=* | --incl=* | --inc=*)
  1345. includedir=$ac_optarg ;;
  1346. -infodir | --infodir | --infodi | --infod | --info | --inf)
  1347. ac_prev=infodir ;;
  1348. -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
  1349. infodir=$ac_optarg ;;
  1350. -libdir | --libdir | --libdi | --libd)
  1351. ac_prev=libdir ;;
  1352. -libdir=* | --libdir=* | --libdi=* | --libd=*)
  1353. libdir=$ac_optarg ;;
  1354. -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
  1355. | --libexe | --libex | --libe)
  1356. ac_prev=libexecdir ;;
  1357. -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
  1358. | --libexe=* | --libex=* | --libe=*)
  1359. libexecdir=$ac_optarg ;;
  1360. -localedir | --localedir | --localedi | --localed | --locale)
  1361. ac_prev=localedir ;;
  1362. -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
  1363. localedir=$ac_optarg ;;
  1364. -localstatedir | --localstatedir | --localstatedi | --localstated \
  1365. | --localstate | --localstat | --localsta | --localst | --locals)
  1366. ac_prev=localstatedir ;;
  1367. -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
  1368. | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
  1369. localstatedir=$ac_optarg ;;
  1370. -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
  1371. ac_prev=mandir ;;
  1372. -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
  1373. mandir=$ac_optarg ;;
  1374. -nfp | --nfp | --nf)
  1375. # Obsolete; use --without-fp.
  1376. with_fp=no ;;
  1377. -no-create | --no-create | --no-creat | --no-crea | --no-cre \
  1378. | --no-cr | --no-c | -n)
  1379. no_create=yes ;;
  1380. -no-recursion | --no-recursion | --no-recursio | --no-recursi \
  1381. | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
  1382. no_recursion=yes ;;
  1383. -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
  1384. | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
  1385. | --oldin | --oldi | --old | --ol | --o)
  1386. ac_prev=oldincludedir ;;
  1387. -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
  1388. | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
  1389. | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
  1390. oldincludedir=$ac_optarg ;;
  1391. -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
  1392. ac_prev=prefix ;;
  1393. -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
  1394. prefix=$ac_optarg ;;
  1395. -program-prefix | --program-prefix | --program-prefi | --program-pref \
  1396. | --program-pre | --program-pr | --program-p)
  1397. ac_prev=program_prefix ;;
  1398. -program-prefix=* | --program-prefix=* | --program-prefi=* \
  1399. | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
  1400. program_prefix=$ac_optarg ;;
  1401. -program-suffix | --program-suffix | --program-suffi | --program-suff \
  1402. | --program-suf | --program-su | --program-s)
  1403. ac_prev=program_suffix ;;
  1404. -program-suffix=* | --program-suffix=* | --program-suffi=* \
  1405. | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
  1406. program_suffix=$ac_optarg ;;
  1407. -program-transform-name | --program-transform-name \
  1408. | --program-transform-nam | --program-transform-na \
  1409. | --program-transform-n | --program-transform- \
  1410. | --program-transform | --program-transfor \
  1411. | --program-transfo | --program-transf \
  1412. | --program-trans | --program-tran \
  1413. | --progr-tra | --program-tr | --program-t)
  1414. ac_prev=program_transform_name ;;
  1415. -program-transform-name=* | --program-transform-name=* \
  1416. | --program-transform-nam=* | --program-transform-na=* \
  1417. | --program-transform-n=* | --program-transform-=* \
  1418. | --program-transform=* | --program-transfor=* \
  1419. | --program-transfo=* | --program-transf=* \
  1420. | --program-trans=* | --program-tran=* \
  1421. | --progr-tra=* | --program-tr=* | --program-t=*)
  1422. program_transform_name=$ac_optarg ;;
  1423. -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
  1424. ac_prev=pdfdir ;;
  1425. -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
  1426. pdfdir=$ac_optarg ;;
  1427. -psdir | --psdir | --psdi | --psd | --ps)
  1428. ac_prev=psdir ;;
  1429. -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
  1430. psdir=$ac_optarg ;;
  1431. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  1432. | -silent | --silent | --silen | --sile | --sil)
  1433. silent=yes ;;
  1434. -runstatedir | --runstatedir | --runstatedi | --runstated \
  1435. | --runstate | --runstat | --runsta | --runst | --runs \
  1436. | --run | --ru | --r)
  1437. ac_prev=runstatedir ;;
  1438. -runstatedir=* | --runstatedir=* | --runstatedi=* | --runstated=* \
  1439. | --runstate=* | --runstat=* | --runsta=* | --runst=* | --runs=* \
  1440. | --run=* | --ru=* | --r=*)
  1441. runstatedir=$ac_optarg ;;
  1442. -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
  1443. ac_prev=sbindir ;;
  1444. -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
  1445. | --sbi=* | --sb=*)
  1446. sbindir=$ac_optarg ;;
  1447. -sharedstatedir | --sharedstatedir | --sharedstatedi \
  1448. | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
  1449. | --sharedst | --shareds | --shared | --share | --shar \
  1450. | --sha | --sh)
  1451. ac_prev=sharedstatedir ;;
  1452. -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
  1453. | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
  1454. | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
  1455. | --sha=* | --sh=*)
  1456. sharedstatedir=$ac_optarg ;;
  1457. -site | --site | --sit)
  1458. ac_prev=site ;;
  1459. -site=* | --site=* | --sit=*)
  1460. site=$ac_optarg ;;
  1461. -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
  1462. ac_prev=srcdir ;;
  1463. -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
  1464. srcdir=$ac_optarg ;;
  1465. -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
  1466. | --syscon | --sysco | --sysc | --sys | --sy)
  1467. ac_prev=sysconfdir ;;
  1468. -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
  1469. | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
  1470. sysconfdir=$ac_optarg ;;
  1471. -target | --target | --targe | --targ | --tar | --ta | --t)
  1472. ac_prev=target_alias ;;
  1473. -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
  1474. target_alias=$ac_optarg ;;
  1475. -v | -verbose | --verbose | --verbos | --verbo | --verb)
  1476. verbose=yes ;;
  1477. -version | --version | --versio | --versi | --vers | -V)
  1478. ac_init_version=: ;;
  1479. -with-* | --with-*)
  1480. ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
  1481. # Reject names that are not valid shell variable names.
  1482. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  1483. as_fn_error $? "invalid package name: \`$ac_useropt'"
  1484. ac_useropt_orig=$ac_useropt
  1485. ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
  1486. case $ac_user_opts in
  1487. *"
  1488. "with_$ac_useropt"
  1489. "*) ;;
  1490. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
  1491. ac_unrecognized_sep=', ';;
  1492. esac
  1493. eval with_$ac_useropt=\$ac_optarg ;;
  1494. -without-* | --without-*)
  1495. ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
  1496. # Reject names that are not valid shell variable names.
  1497. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  1498. as_fn_error $? "invalid package name: \`$ac_useropt'"
  1499. ac_useropt_orig=$ac_useropt
  1500. ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
  1501. case $ac_user_opts in
  1502. *"
  1503. "with_$ac_useropt"
  1504. "*) ;;
  1505. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
  1506. ac_unrecognized_sep=', ';;
  1507. esac
  1508. eval with_$ac_useropt=no ;;
  1509. --x)
  1510. # Obsolete; use --with-x.
  1511. with_x=yes ;;
  1512. -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
  1513. | --x-incl | --x-inc | --x-in | --x-i)
  1514. ac_prev=x_includes ;;
  1515. -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
  1516. | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
  1517. x_includes=$ac_optarg ;;
  1518. -x-libraries | --x-libraries | --x-librarie | --x-librari \
  1519. | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
  1520. ac_prev=x_libraries ;;
  1521. -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
  1522. | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
  1523. x_libraries=$ac_optarg ;;
  1524. -*) as_fn_error $? "unrecognized option: \`$ac_option'
  1525. Try \`$0 --help' for more information"
  1526. ;;
  1527. *=*)
  1528. ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
  1529. # Reject names that are not valid shell variable names.
  1530. case $ac_envvar in #(
  1531. '' | [0-9]* | *[!_$as_cr_alnum]* )
  1532. as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
  1533. esac
  1534. eval $ac_envvar=\$ac_optarg
  1535. export $ac_envvar ;;
  1536. *)
  1537. # FIXME: should be removed in autoconf 3.0.
  1538. printf "%s\n" "$as_me: WARNING: you should use --build, --host, --target" >&2
  1539. expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
  1540. printf "%s\n" "$as_me: WARNING: invalid host type: $ac_option" >&2
  1541. : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
  1542. ;;
  1543. esac
  1544. done
  1545. if test -n "$ac_prev"; then
  1546. ac_option=--`echo $ac_prev | sed 's/_/-/g'`
  1547. as_fn_error $? "missing argument to $ac_option"
  1548. fi
  1549. if test -n "$ac_unrecognized_opts"; then
  1550. case $enable_option_checking in
  1551. no) ;;
  1552. fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
  1553. *) printf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
  1554. esac
  1555. fi
  1556. # Check all directory arguments for consistency.
  1557. for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
  1558. datadir sysconfdir sharedstatedir localstatedir includedir \
  1559. oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
  1560. libdir localedir mandir runstatedir
  1561. do
  1562. eval ac_val=\$$ac_var
  1563. # Remove trailing slashes.
  1564. case $ac_val in
  1565. */ )
  1566. ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
  1567. eval $ac_var=\$ac_val;;
  1568. esac
  1569. # Be sure to have absolute directory names.
  1570. case $ac_val in
  1571. [\\/$]* | ?:[\\/]* ) continue;;
  1572. NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
  1573. esac
  1574. as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
  1575. done
  1576. # There might be people who depend on the old broken behavior: `$host'
  1577. # used to hold the argument of --host etc.
  1578. # FIXME: To remove some day.
  1579. build=$build_alias
  1580. host=$host_alias
  1581. target=$target_alias
  1582. # FIXME: To remove some day.
  1583. if test "x$host_alias" != x; then
  1584. if test "x$build_alias" = x; then
  1585. cross_compiling=maybe
  1586. elif test "x$build_alias" != "x$host_alias"; then
  1587. cross_compiling=yes
  1588. fi
  1589. fi
  1590. ac_tool_prefix=
  1591. test -n "$host_alias" && ac_tool_prefix=$host_alias-
  1592. test "$silent" = yes && exec 6>/dev/null
  1593. ac_pwd=`pwd` && test -n "$ac_pwd" &&
  1594. ac_ls_di=`ls -di .` &&
  1595. ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
  1596. as_fn_error $? "working directory cannot be determined"
  1597. test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
  1598. as_fn_error $? "pwd does not report name of working directory"
  1599. # Find the source files, if location was not specified.
  1600. if test -z "$srcdir"; then
  1601. ac_srcdir_defaulted=yes
  1602. # Try the directory containing this script, then the parent directory.
  1603. ac_confdir=`$as_dirname -- "$as_myself" ||
  1604. $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  1605. X"$as_myself" : 'X\(//\)[^/]' \| \
  1606. X"$as_myself" : 'X\(//\)$' \| \
  1607. X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
  1608. printf "%s\n" X"$as_myself" |
  1609. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  1610. s//\1/
  1611. q
  1612. }
  1613. /^X\(\/\/\)[^/].*/{
  1614. s//\1/
  1615. q
  1616. }
  1617. /^X\(\/\/\)$/{
  1618. s//\1/
  1619. q
  1620. }
  1621. /^X\(\/\).*/{
  1622. s//\1/
  1623. q
  1624. }
  1625. s/.*/./; q'`
  1626. srcdir=$ac_confdir
  1627. if test ! -r "$srcdir/$ac_unique_file"; then
  1628. srcdir=..
  1629. fi
  1630. else
  1631. ac_srcdir_defaulted=no
  1632. fi
  1633. if test ! -r "$srcdir/$ac_unique_file"; then
  1634. test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
  1635. as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
  1636. fi
  1637. ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
  1638. ac_abs_confdir=`(
  1639. cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
  1640. pwd)`
  1641. # When building in place, set srcdir=.
  1642. if test "$ac_abs_confdir" = "$ac_pwd"; then
  1643. srcdir=.
  1644. fi
  1645. # Remove unnecessary trailing slashes from srcdir.
  1646. # Double slashes in file names in object file debugging info
  1647. # mess up M-x gdb in Emacs.
  1648. case $srcdir in
  1649. */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
  1650. esac
  1651. for ac_var in $ac_precious_vars; do
  1652. eval ac_env_${ac_var}_set=\${${ac_var}+set}
  1653. eval ac_env_${ac_var}_value=\$${ac_var}
  1654. eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
  1655. eval ac_cv_env_${ac_var}_value=\$${ac_var}
  1656. done
  1657. #
  1658. # Report the --help message.
  1659. #
  1660. if test "$ac_init_help" = "long"; then
  1661. # Omit some internal or obsolete options to make the list less imposing.
  1662. # This message is too long to be a string in the A/UX 3.1 sh.
  1663. cat <<_ACEOF
  1664. \`configure' configures curl - to adapt to many kinds of systems.
  1665. Usage: $0 [OPTION]... [VAR=VALUE]...
  1666. To assign environment variables (e.g., CC, CFLAGS...), specify them as
  1667. VAR=VALUE. See below for descriptions of some of the useful variables.
  1668. Defaults for the options are specified in brackets.
  1669. Configuration:
  1670. -h, --help display this help and exit
  1671. --help=short display options specific to this package
  1672. --help=recursive display the short help of all the included packages
  1673. -V, --version display version information and exit
  1674. -q, --quiet, --silent do not print \`checking ...' messages
  1675. --cache-file=FILE cache test results in FILE [disabled]
  1676. -C, --config-cache alias for \`--cache-file=config.cache'
  1677. -n, --no-create do not create output files
  1678. --srcdir=DIR find the sources in DIR [configure dir or \`..']
  1679. Installation directories:
  1680. --prefix=PREFIX install architecture-independent files in PREFIX
  1681. [$ac_default_prefix]
  1682. --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
  1683. [PREFIX]
  1684. By default, \`make install' will install all the files in
  1685. \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
  1686. an installation prefix other than \`$ac_default_prefix' using \`--prefix',
  1687. for instance \`--prefix=\$HOME'.
  1688. For better control, use the options below.
  1689. Fine tuning of the installation directories:
  1690. --bindir=DIR user executables [EPREFIX/bin]
  1691. --sbindir=DIR system admin executables [EPREFIX/sbin]
  1692. --libexecdir=DIR program executables [EPREFIX/libexec]
  1693. --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
  1694. --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
  1695. --localstatedir=DIR modifiable single-machine data [PREFIX/var]
  1696. --runstatedir=DIR modifiable per-process data [LOCALSTATEDIR/run]
  1697. --libdir=DIR object code libraries [EPREFIX/lib]
  1698. --includedir=DIR C header files [PREFIX/include]
  1699. --oldincludedir=DIR C header files for non-gcc [/usr/include]
  1700. --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
  1701. --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
  1702. --infodir=DIR info documentation [DATAROOTDIR/info]
  1703. --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
  1704. --mandir=DIR man documentation [DATAROOTDIR/man]
  1705. --docdir=DIR documentation root [DATAROOTDIR/doc/curl]
  1706. --htmldir=DIR html documentation [DOCDIR]
  1707. --dvidir=DIR dvi documentation [DOCDIR]
  1708. --pdfdir=DIR pdf documentation [DOCDIR]
  1709. --psdir=DIR ps documentation [DOCDIR]
  1710. _ACEOF
  1711. cat <<\_ACEOF
  1712. Program names:
  1713. --program-prefix=PREFIX prepend PREFIX to installed program names
  1714. --program-suffix=SUFFIX append SUFFIX to installed program names
  1715. --program-transform-name=PROGRAM run sed PROGRAM on installed program names
  1716. System types:
  1717. --build=BUILD configure for building on BUILD [guessed]
  1718. --host=HOST cross-compile to build programs to run on HOST [BUILD]
  1719. _ACEOF
  1720. fi
  1721. if test -n "$ac_init_help"; then
  1722. case $ac_init_help in
  1723. short | recursive ) echo "Configuration of curl -:";;
  1724. esac
  1725. cat <<\_ACEOF
  1726. Optional Features:
  1727. --disable-option-checking ignore unrecognized --enable/--with options
  1728. --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
  1729. --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
  1730. --enable-maintainer-mode
  1731. enable make rules and dependencies not useful (and
  1732. sometimes confusing) to the casual installer
  1733. --enable-silent-rules less verbose build output (undo: "make V=1")
  1734. --disable-silent-rules verbose build output (undo: "make V=0")
  1735. --enable-debug Enable debug build options
  1736. --disable-debug Disable debug build options
  1737. --enable-optimize Enable compiler optimizations
  1738. --disable-optimize Disable compiler optimizations
  1739. --enable-warnings Enable strict compiler warnings
  1740. --disable-warnings Disable strict compiler warnings
  1741. --enable-werror Enable compiler warnings as errors
  1742. --disable-werror Disable compiler warnings as errors
  1743. --enable-curldebug Enable curl debug memory tracking
  1744. --disable-curldebug Disable curl debug memory tracking
  1745. --enable-symbol-hiding Enable hiding of library internal symbols
  1746. --disable-symbol-hiding Disable hiding of library internal symbols
  1747. --enable-ares[=PATH] Enable c-ares for DNS lookups
  1748. --disable-ares Disable c-ares for DNS lookups
  1749. --disable-rt disable dependency on -lrt
  1750. --enable-ech Enable ECH support
  1751. --disable-ech Disable ECH support
  1752. --enable-code-coverage Provide code coverage
  1753. --enable-dependency-tracking
  1754. do not reject slow dependency extractors
  1755. --disable-dependency-tracking
  1756. speeds up one-time build
  1757. --disable-largefile omit support for large files
  1758. --enable-shared[=PKGS] build shared libraries [default=yes]
  1759. --enable-static[=PKGS] build static libraries [default=yes]
  1760. --enable-fast-install[=PKGS]
  1761. optimize for fast installation [default=yes]
  1762. --disable-libtool-lock avoid locking (might break parallel builds)
  1763. --enable-http Enable HTTP support
  1764. --disable-http Disable HTTP support
  1765. --enable-ftp Enable FTP support
  1766. --disable-ftp Disable FTP support
  1767. --enable-file Enable FILE support
  1768. --disable-file Disable FILE support
  1769. --enable-ldap Enable LDAP support
  1770. --disable-ldap Disable LDAP support
  1771. --enable-ldaps Enable LDAPS support
  1772. --disable-ldaps Disable LDAPS support
  1773. --enable-rtsp Enable RTSP support
  1774. --disable-rtsp Disable RTSP support
  1775. --enable-proxy Enable proxy support
  1776. --disable-proxy Disable proxy support
  1777. --enable-dict Enable DICT support
  1778. --disable-dict Disable DICT support
  1779. --enable-telnet Enable TELNET support
  1780. --disable-telnet Disable TELNET support
  1781. --enable-tftp Enable TFTP support
  1782. --disable-tftp Disable TFTP support
  1783. --enable-pop3 Enable POP3 support
  1784. --disable-pop3 Disable POP3 support
  1785. --enable-imap Enable IMAP support
  1786. --disable-imap Disable IMAP support
  1787. --enable-smb Enable SMB/CIFS support
  1788. --disable-smb Disable SMB/CIFS support
  1789. --enable-smtp Enable SMTP support
  1790. --disable-smtp Disable SMTP support
  1791. --enable-gopher Enable Gopher support
  1792. --disable-gopher Disable Gopher support
  1793. --enable-mqtt Enable MQTT support
  1794. --disable-mqtt Disable MQTT support
  1795. --enable-manual Enable built-in manual
  1796. --disable-manual Disable built-in manual
  1797. --enable-libcurl-option Enable --libcurl C code generation support
  1798. --disable-libcurl-option
  1799. Disable --libcurl C code generation support
  1800. --enable-libgcc use libgcc when linking
  1801. --enable-ipv6 Enable IPv6 (with IPv4) support
  1802. --disable-ipv6 Disable IPv6 support
  1803. --enable-openssl-auto-load-config
  1804. Enable automatic loading of OpenSSL configuration
  1805. --disable-openssl-auto-load-config
  1806. Disable automatic loading of OpenSSL configuration
  1807. --enable-versioned-symbols
  1808. Enable versioned symbols in shared library
  1809. --disable-versioned-symbols
  1810. Disable versioned symbols in shared library
  1811. --enable-threaded-resolver
  1812. Enable threaded resolver
  1813. --disable-threaded-resolver
  1814. Disable threaded resolver
  1815. --enable-pthreads Enable POSIX threads (default for threaded resolver)
  1816. --disable-pthreads Disable POSIX threads
  1817. --enable-verbose Enable verbose strings
  1818. --disable-verbose Disable verbose strings
  1819. --enable-sspi Enable SSPI
  1820. --disable-sspi Disable SSPI
  1821. --enable-crypto-auth Enable cryptographic authentication
  1822. --disable-crypto-auth Disable cryptographic authentication
  1823. --enable-ntlm Enable NTLM support
  1824. --disable-ntlm Disable NTLM support
  1825. --enable-ntlm-wb[=FILE] Enable NTLM delegation to winbind's ntlm_auth
  1826. helper, where FILE is ntlm_auth's absolute filename
  1827. (default: /usr/bin/ntlm_auth)
  1828. --disable-ntlm-wb Disable NTLM delegation to winbind's ntlm_auth
  1829. helper
  1830. --enable-tls-srp Enable TLS-SRP authentication
  1831. --disable-tls-srp Disable TLS-SRP authentication
  1832. --enable-unix-sockets Enable Unix domain sockets
  1833. --disable-unix-sockets Disable Unix domain sockets
  1834. --enable-cookies Enable cookies support
  1835. --disable-cookies Disable cookies support
  1836. --enable-socketpair Enable socketpair support
  1837. --disable-socketpair Disable socketpair support
  1838. --enable-http-auth Enable HTTP authentication support
  1839. --disable-http-auth Disable HTTP authentication support
  1840. --enable-doh Enable DoH support
  1841. --disable-doh Disable DoH support
  1842. --enable-mime Enable mime API support
  1843. --disable-mime Disable mime API support
  1844. --enable-dateparse Enable date parsing
  1845. --disable-dateparse Disable date parsing
  1846. --enable-netrc Enable netrc parsing
  1847. --disable-netrc Disable netrc parsing
  1848. --enable-progress-meter Enable progress-meter
  1849. --disable-progress-meter
  1850. Disable progress-meter
  1851. --enable-dnsshuffle Enable DNS shuffling
  1852. --disable-dnsshuffle Disable DNS shuffling
  1853. --enable-get-easy-options
  1854. Enable curl_easy_options
  1855. --disable-get-easy-options
  1856. Disable curl_easy_options
  1857. --enable-alt-svc Enable alt-svc support
  1858. --disable-alt-svc Disable alt-svc support
  1859. --enable-hsts Enable HSTS support
  1860. --disable-hsts Disable HSTS support
  1861. Optional Packages:
  1862. --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
  1863. --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
  1864. --with-schannel enable Windows native SSL/TLS
  1865. --with-secure-transport enable Apple OS native SSL/TLS
  1866. --with-amissl enable Amiga native SSL/TLS (AmiSSL)
  1867. --with-ssl=PATH old version of --with-openssl
  1868. --without-ssl build without any TLS library
  1869. --with-openssl=PATH Where to look for OpenSSL, PATH points to the SSL
  1870. installation (default: /usr/local/ssl); when
  1871. possible, set the PKG_CONFIG_PATH environment
  1872. variable instead of using this option
  1873. --with-gnutls=PATH where to look for GnuTLS, PATH points to the
  1874. installation root
  1875. --with-mbedtls=PATH where to look for mbedTLS, PATH points to the
  1876. installation root
  1877. --with-wolfssl=PATH where to look for WolfSSL, PATH points to the
  1878. installation root (default: system lib default)
  1879. --with-mesalink=PATH where to look for MesaLink, PATH points to the
  1880. installation root
  1881. --with-bearssl=PATH where to look for BearSSL, PATH points to the
  1882. installation root
  1883. --with-rustls=PATH where to look for rustls, PATH points to the
  1884. installation root
  1885. --with-nss=PATH where to look for NSS, PATH points to the
  1886. installation root
  1887. --with-pic[=PKGS] try to use only PIC/non-PIC objects [default=use
  1888. both]
  1889. --with-aix-soname=aix|svr4|both
  1890. shared library versioning (aka "SONAME") variant to
  1891. provide on AIX, [default=aix].
  1892. --with-gnu-ld assume the C compiler uses GNU ld [default=no]
  1893. --with-sysroot[=DIR] Search for dependent libraries within DIR (or the
  1894. compiler's sysroot if not specified).
  1895. --with-hyper=PATH Enable hyper usage
  1896. --without-hyper Disable hyper usage
  1897. --with-zlib=PATH search for zlib in PATH
  1898. --without-zlib disable use of zlib
  1899. --with-brotli=PATH Where to look for brotli, PATH points to the BROTLI
  1900. installation; when possible, set the PKG_CONFIG_PATH
  1901. environment variable instead of using this option
  1902. --without-brotli disable BROTLI
  1903. --with-zstd=PATH Where to look for libzstd, PATH points to the
  1904. libzstd installation; when possible, set the
  1905. PKG_CONFIG_PATH environment variable instead of
  1906. using this option
  1907. --without-zstd disable libzstd
  1908. --with-ldap-lib=libname Specify name of ldap lib file
  1909. --with-lber-lib=libname Specify name of lber lib file
  1910. --with-gssapi-includes=DIR
  1911. Specify location of GSS-API headers
  1912. --with-gssapi-libs=DIR Specify location of GSS-API libs
  1913. --with-gssapi=DIR Where to look for GSS-API
  1914. --with-default-ssl-backend=NAME
  1915. Use NAME as default SSL backend
  1916. --without-default-ssl-backend
  1917. Use implicit default SSL backend
  1918. --with-egd-socket=FILE Entropy Gathering Daemon socket pathname
  1919. --with-random=FILE read randomness from FILE (default=/dev/urandom)
  1920. --with-ca-bundle=FILE Path to a file containing CA certificates (example:
  1921. /etc/ca-bundle.crt)
  1922. --without-ca-bundle Don't use a default CA bundle
  1923. --with-ca-path=DIRECTORY
  1924. Path to a directory containing CA certificates
  1925. stored individually, with their filenames in a hash
  1926. format. This option can be used with the OpenSSL,
  1927. GnuTLS and mbedTLS backends. Refer to OpenSSL
  1928. c_rehash for details. (example: /etc/certificates)
  1929. --without-ca-path Don't use a default CA path
  1930. --with-ca-fallback Use the built in CA store of the SSL library
  1931. --without-ca-fallback Don't use the built in CA store of the SSL library
  1932. --without-libpsl disable support for libpsl cookie checking
  1933. --without-libgsasl disable libgsasl support for SCRAM
  1934. --with-libssh2=PATH Where to look for libssh2, PATH points to the
  1935. libssh2 installation; when possible, set the
  1936. PKG_CONFIG_PATH environment variable instead of
  1937. using this option
  1938. --with-libssh2 enable libssh2
  1939. --with-libssh=PATH Where to look for libssh, PATH points to the libssh
  1940. installation; when possible, set the PKG_CONFIG_PATH
  1941. environment variable instead of using this option
  1942. --with-libssh enable libssh
  1943. --with-wolfssh=PATH Where to look for wolfssh, PATH points to the
  1944. wolfSSH installation; when possible, set the
  1945. PKG_CONFIG_PATH environment variable instead of
  1946. using this option
  1947. --with-wolfssh enable wolfssh
  1948. --with-librtmp=PATH Where to look for librtmp, PATH points to the
  1949. LIBRTMP installation; when possible, set the
  1950. PKG_CONFIG_PATH environment variable instead of
  1951. using this option
  1952. --without-librtmp disable LIBRTMP
  1953. --with-winidn=PATH enable Windows native IDN
  1954. --without-winidn disable Windows native IDN
  1955. --with-libidn2=PATH Enable libidn2 usage
  1956. --without-libidn2 Disable libidn2 usage
  1957. --with-nghttp2=PATH Enable nghttp2 usage
  1958. --without-nghttp2 Disable nghttp2 usage
  1959. --with-ngtcp2=PATH Enable ngtcp2 usage
  1960. --without-ngtcp2 Disable ngtcp2 usage
  1961. --with-nghttp3=PATH Enable nghttp3 usage
  1962. --without-nghttp3 Disable nghttp3 usage
  1963. --with-quiche=PATH Enable quiche usage
  1964. --without-quiche Disable quiche usage
  1965. --with-zsh-functions-dir=PATH
  1966. Install zsh completions to PATH
  1967. --without-zsh-functions-dir
  1968. Do not install zsh completions
  1969. --with-fish-functions-dir=PATH
  1970. Install fish completions to PATH
  1971. --without-fish-functions-dir
  1972. Do not install fish completions
  1973. Some influential environment variables:
  1974. CC C compiler command
  1975. CFLAGS C compiler flags
  1976. LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
  1977. nonstandard directory <lib dir>
  1978. LIBS libraries to pass to the linker, e.g. -l<library>
  1979. CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
  1980. you have headers in a nonstandard directory <include dir>
  1981. CPP C preprocessor
  1982. LT_SYS_LIBRARY_PATH
  1983. User-defined run-time library search path.
  1984. Use these variables to override the choices made by `configure' or to help
  1985. it to find libraries and programs with nonstandard names/locations.
  1986. Report bugs to <a suitable curl mailing list: https://curl.se/mail/>.
  1987. _ACEOF
  1988. ac_status=$?
  1989. fi
  1990. if test "$ac_init_help" = "recursive"; then
  1991. # If there are subdirs, report their specific --help.
  1992. for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
  1993. test -d "$ac_dir" ||
  1994. { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
  1995. continue
  1996. ac_builddir=.
  1997. case "$ac_dir" in
  1998. .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
  1999. *)
  2000. ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'`
  2001. # A ".." for each directory in $ac_dir_suffix.
  2002. ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
  2003. case $ac_top_builddir_sub in
  2004. "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
  2005. *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
  2006. esac ;;
  2007. esac
  2008. ac_abs_top_builddir=$ac_pwd
  2009. ac_abs_builddir=$ac_pwd$ac_dir_suffix
  2010. # for backward compatibility:
  2011. ac_top_builddir=$ac_top_build_prefix
  2012. case $srcdir in
  2013. .) # We are building in place.
  2014. ac_srcdir=.
  2015. ac_top_srcdir=$ac_top_builddir_sub
  2016. ac_abs_top_srcdir=$ac_pwd ;;
  2017. [\\/]* | ?:[\\/]* ) # Absolute name.
  2018. ac_srcdir=$srcdir$ac_dir_suffix;
  2019. ac_top_srcdir=$srcdir
  2020. ac_abs_top_srcdir=$srcdir ;;
  2021. *) # Relative name.
  2022. ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
  2023. ac_top_srcdir=$ac_top_build_prefix$srcdir
  2024. ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
  2025. esac
  2026. ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
  2027. cd "$ac_dir" || { ac_status=$?; continue; }
  2028. # Check for configure.gnu first; this name is used for a wrapper for
  2029. # Metaconfig's "Configure" on case-insensitive file systems.
  2030. if test -f "$ac_srcdir/configure.gnu"; then
  2031. echo &&
  2032. $SHELL "$ac_srcdir/configure.gnu" --help=recursive
  2033. elif test -f "$ac_srcdir/configure"; then
  2034. echo &&
  2035. $SHELL "$ac_srcdir/configure" --help=recursive
  2036. else
  2037. printf "%s\n" "$as_me: WARNING: no configuration information is in $ac_dir" >&2
  2038. fi || ac_status=$?
  2039. cd "$ac_pwd" || { ac_status=$?; break; }
  2040. done
  2041. fi
  2042. test -n "$ac_init_help" && exit $ac_status
  2043. if $ac_init_version; then
  2044. cat <<\_ACEOF
  2045. curl configure -
  2046. generated by GNU Autoconf 2.71
  2047. Copyright (C) 2021 Free Software Foundation, Inc.
  2048. This configure script is free software; the Free Software Foundation
  2049. gives unlimited permission to copy, distribute and modify it.
  2050. Copyright (c) 1998 - 2021 Daniel Stenberg, <[email protected]>
  2051. This configure script may be copied, distributed and modified under the
  2052. terms of the curl license; see COPYING for more details
  2053. _ACEOF
  2054. exit
  2055. fi
  2056. ## ------------------------ ##
  2057. ## Autoconf initialization. ##
  2058. ## ------------------------ ##
  2059. # ac_fn_c_try_compile LINENO
  2060. # --------------------------
  2061. # Try to compile conftest.$ac_ext, and return whether this succeeded.
  2062. ac_fn_c_try_compile ()
  2063. {
  2064. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  2065. rm -f conftest.$ac_objext conftest.beam
  2066. if { { ac_try="$ac_compile"
  2067. case "(($ac_try" in
  2068. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2069. *) ac_try_echo=$ac_try;;
  2070. esac
  2071. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  2072. printf "%s\n" "$ac_try_echo"; } >&5
  2073. (eval "$ac_compile") 2>conftest.err
  2074. ac_status=$?
  2075. if test -s conftest.err; then
  2076. grep -v '^ *+' conftest.err >conftest.er1
  2077. cat conftest.er1 >&5
  2078. mv -f conftest.er1 conftest.err
  2079. fi
  2080. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  2081. test $ac_status = 0; } && {
  2082. test -z "$ac_c_werror_flag" ||
  2083. test ! -s conftest.err
  2084. } && test -s conftest.$ac_objext
  2085. then :
  2086. ac_retval=0
  2087. else $as_nop
  2088. printf "%s\n" "$as_me: failed program was:" >&5
  2089. sed 's/^/| /' conftest.$ac_ext >&5
  2090. ac_retval=1
  2091. fi
  2092. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  2093. as_fn_set_status $ac_retval
  2094. } # ac_fn_c_try_compile
  2095. # ac_fn_c_try_cpp LINENO
  2096. # ----------------------
  2097. # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
  2098. ac_fn_c_try_cpp ()
  2099. {
  2100. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  2101. if { { ac_try="$ac_cpp conftest.$ac_ext"
  2102. case "(($ac_try" in
  2103. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2104. *) ac_try_echo=$ac_try;;
  2105. esac
  2106. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  2107. printf "%s\n" "$ac_try_echo"; } >&5
  2108. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
  2109. ac_status=$?
  2110. if test -s conftest.err; then
  2111. grep -v '^ *+' conftest.err >conftest.er1
  2112. cat conftest.er1 >&5
  2113. mv -f conftest.er1 conftest.err
  2114. fi
  2115. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  2116. test $ac_status = 0; } > conftest.i && {
  2117. test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
  2118. test ! -s conftest.err
  2119. }
  2120. then :
  2121. ac_retval=0
  2122. else $as_nop
  2123. printf "%s\n" "$as_me: failed program was:" >&5
  2124. sed 's/^/| /' conftest.$ac_ext >&5
  2125. ac_retval=1
  2126. fi
  2127. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  2128. as_fn_set_status $ac_retval
  2129. } # ac_fn_c_try_cpp
  2130. # ac_fn_c_try_link LINENO
  2131. # -----------------------
  2132. # Try to link conftest.$ac_ext, and return whether this succeeded.
  2133. ac_fn_c_try_link ()
  2134. {
  2135. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  2136. rm -f conftest.$ac_objext conftest.beam conftest$ac_exeext
  2137. if { { ac_try="$ac_link"
  2138. case "(($ac_try" in
  2139. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2140. *) ac_try_echo=$ac_try;;
  2141. esac
  2142. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  2143. printf "%s\n" "$ac_try_echo"; } >&5
  2144. (eval "$ac_link") 2>conftest.err
  2145. ac_status=$?
  2146. if test -s conftest.err; then
  2147. grep -v '^ *+' conftest.err >conftest.er1
  2148. cat conftest.er1 >&5
  2149. mv -f conftest.er1 conftest.err
  2150. fi
  2151. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  2152. test $ac_status = 0; } && {
  2153. test -z "$ac_c_werror_flag" ||
  2154. test ! -s conftest.err
  2155. } && test -s conftest$ac_exeext && {
  2156. test "$cross_compiling" = yes ||
  2157. test -x conftest$ac_exeext
  2158. }
  2159. then :
  2160. ac_retval=0
  2161. else $as_nop
  2162. printf "%s\n" "$as_me: failed program was:" >&5
  2163. sed 's/^/| /' conftest.$ac_ext >&5
  2164. ac_retval=1
  2165. fi
  2166. # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
  2167. # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
  2168. # interfere with the next link command; also delete a directory that is
  2169. # left behind by Apple's compiler. We do this before executing the actions.
  2170. rm -rf conftest.dSYM conftest_ipa8_conftest.oo
  2171. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  2172. as_fn_set_status $ac_retval
  2173. } # ac_fn_c_try_link
  2174. # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
  2175. # -------------------------------------------------------
  2176. # Tests whether HEADER exists and can be compiled using the include files in
  2177. # INCLUDES, setting the cache variable VAR accordingly.
  2178. ac_fn_c_check_header_compile ()
  2179. {
  2180. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  2181. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  2182. printf %s "checking for $2... " >&6; }
  2183. if eval test \${$3+y}
  2184. then :
  2185. printf %s "(cached) " >&6
  2186. else $as_nop
  2187. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2188. /* end confdefs.h. */
  2189. $4
  2190. #include <$2>
  2191. _ACEOF
  2192. if ac_fn_c_try_compile "$LINENO"
  2193. then :
  2194. eval "$3=yes"
  2195. else $as_nop
  2196. eval "$3=no"
  2197. fi
  2198. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  2199. fi
  2200. eval ac_res=\$$3
  2201. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  2202. printf "%s\n" "$ac_res" >&6; }
  2203. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  2204. } # ac_fn_c_check_header_compile
  2205. # ac_fn_c_check_func LINENO FUNC VAR
  2206. # ----------------------------------
  2207. # Tests whether FUNC exists, setting the cache variable VAR accordingly
  2208. ac_fn_c_check_func ()
  2209. {
  2210. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  2211. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  2212. printf %s "checking for $2... " >&6; }
  2213. if eval test \${$3+y}
  2214. then :
  2215. printf %s "(cached) " >&6
  2216. else $as_nop
  2217. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2218. /* end confdefs.h. */
  2219. #define $2 innocuous_$2
  2220. #ifdef __STDC__
  2221. # include <limits.h>
  2222. #else
  2223. # include <assert.h>
  2224. #endif
  2225. #undef $2
  2226. #ifdef __cplusplus
  2227. extern "C"
  2228. #endif
  2229. char $2 ();
  2230. #if defined __stub_$2 || defined __stub___$2
  2231. choke me
  2232. #endif
  2233. int main (void)
  2234. {
  2235. return $2 ();
  2236. ;
  2237. return 0;
  2238. }
  2239. _ACEOF
  2240. if ac_fn_c_try_link "$LINENO"
  2241. then :
  2242. eval "$3=yes"
  2243. else $as_nop
  2244. eval "$3=no"
  2245. fi
  2246. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  2247. conftest$ac_exeext conftest.$ac_ext
  2248. fi
  2249. eval ac_res=\$$3
  2250. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  2251. printf "%s\n" "$ac_res" >&6; }
  2252. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  2253. } # ac_fn_c_check_func
  2254. # ac_fn_c_try_run LINENO
  2255. # ----------------------
  2256. # Try to run conftest.$ac_ext, and return whether this succeeded. Assumes that
  2257. # executables *can* be run.
  2258. ac_fn_c_try_run ()
  2259. {
  2260. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  2261. if { { ac_try="$ac_link"
  2262. case "(($ac_try" in
  2263. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2264. *) ac_try_echo=$ac_try;;
  2265. esac
  2266. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  2267. printf "%s\n" "$ac_try_echo"; } >&5
  2268. (eval "$ac_link") 2>&5
  2269. ac_status=$?
  2270. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  2271. test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
  2272. { { case "(($ac_try" in
  2273. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2274. *) ac_try_echo=$ac_try;;
  2275. esac
  2276. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  2277. printf "%s\n" "$ac_try_echo"; } >&5
  2278. (eval "$ac_try") 2>&5
  2279. ac_status=$?
  2280. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  2281. test $ac_status = 0; }; }
  2282. then :
  2283. ac_retval=0
  2284. else $as_nop
  2285. printf "%s\n" "$as_me: program exited with status $ac_status" >&5
  2286. printf "%s\n" "$as_me: failed program was:" >&5
  2287. sed 's/^/| /' conftest.$ac_ext >&5
  2288. ac_retval=$ac_status
  2289. fi
  2290. rm -rf conftest.dSYM conftest_ipa8_conftest.oo
  2291. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  2292. as_fn_set_status $ac_retval
  2293. } # ac_fn_c_try_run
  2294. # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
  2295. # -------------------------------------------
  2296. # Tests whether TYPE exists after having included INCLUDES, setting cache
  2297. # variable VAR accordingly.
  2298. ac_fn_c_check_type ()
  2299. {
  2300. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  2301. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  2302. printf %s "checking for $2... " >&6; }
  2303. if eval test \${$3+y}
  2304. then :
  2305. printf %s "(cached) " >&6
  2306. else $as_nop
  2307. eval "$3=no"
  2308. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2309. /* end confdefs.h. */
  2310. $4
  2311. int main (void)
  2312. {
  2313. if (sizeof ($2))
  2314. return 0;
  2315. ;
  2316. return 0;
  2317. }
  2318. _ACEOF
  2319. if ac_fn_c_try_compile "$LINENO"
  2320. then :
  2321. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2322. /* end confdefs.h. */
  2323. $4
  2324. int main (void)
  2325. {
  2326. if (sizeof (($2)))
  2327. return 0;
  2328. ;
  2329. return 0;
  2330. }
  2331. _ACEOF
  2332. if ac_fn_c_try_compile "$LINENO"
  2333. then :
  2334. else $as_nop
  2335. eval "$3=yes"
  2336. fi
  2337. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  2338. fi
  2339. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  2340. fi
  2341. eval ac_res=\$$3
  2342. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  2343. printf "%s\n" "$ac_res" >&6; }
  2344. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  2345. } # ac_fn_c_check_type
  2346. # ac_fn_check_decl LINENO SYMBOL VAR INCLUDES EXTRA-OPTIONS FLAG-VAR
  2347. # ------------------------------------------------------------------
  2348. # Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
  2349. # accordingly. Pass EXTRA-OPTIONS to the compiler, using FLAG-VAR.
  2350. ac_fn_check_decl ()
  2351. {
  2352. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  2353. as_decl_name=`echo $2|sed 's/ *(.*//'`
  2354. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
  2355. printf %s "checking whether $as_decl_name is declared... " >&6; }
  2356. if eval test \${$3+y}
  2357. then :
  2358. printf %s "(cached) " >&6
  2359. else $as_nop
  2360. as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
  2361. eval ac_save_FLAGS=\$$6
  2362. as_fn_append $6 " $5"
  2363. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2364. /* end confdefs.h. */
  2365. $4
  2366. int main (void)
  2367. {
  2368. #ifndef $as_decl_name
  2369. #ifdef __cplusplus
  2370. (void) $as_decl_use;
  2371. #else
  2372. (void) $as_decl_name;
  2373. #endif
  2374. #endif
  2375. ;
  2376. return 0;
  2377. }
  2378. _ACEOF
  2379. if ac_fn_c_try_compile "$LINENO"
  2380. then :
  2381. eval "$3=yes"
  2382. else $as_nop
  2383. eval "$3=no"
  2384. fi
  2385. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  2386. eval $6=\$ac_save_FLAGS
  2387. fi
  2388. eval ac_res=\$$3
  2389. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  2390. printf "%s\n" "$ac_res" >&6; }
  2391. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  2392. } # ac_fn_check_decl
  2393. # ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
  2394. # ----------------------------------------------------
  2395. # Tries to find if the field MEMBER exists in type AGGR, after including
  2396. # INCLUDES, setting cache variable VAR accordingly.
  2397. ac_fn_c_check_member ()
  2398. {
  2399. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  2400. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
  2401. printf %s "checking for $2.$3... " >&6; }
  2402. if eval test \${$4+y}
  2403. then :
  2404. printf %s "(cached) " >&6
  2405. else $as_nop
  2406. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2407. /* end confdefs.h. */
  2408. $5
  2409. int main (void)
  2410. {
  2411. static $2 ac_aggr;
  2412. if (ac_aggr.$3)
  2413. return 0;
  2414. ;
  2415. return 0;
  2416. }
  2417. _ACEOF
  2418. if ac_fn_c_try_compile "$LINENO"
  2419. then :
  2420. eval "$4=yes"
  2421. else $as_nop
  2422. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2423. /* end confdefs.h. */
  2424. $5
  2425. int main (void)
  2426. {
  2427. static $2 ac_aggr;
  2428. if (sizeof ac_aggr.$3)
  2429. return 0;
  2430. ;
  2431. return 0;
  2432. }
  2433. _ACEOF
  2434. if ac_fn_c_try_compile "$LINENO"
  2435. then :
  2436. eval "$4=yes"
  2437. else $as_nop
  2438. eval "$4=no"
  2439. fi
  2440. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  2441. fi
  2442. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  2443. fi
  2444. eval ac_res=\$$4
  2445. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  2446. printf "%s\n" "$ac_res" >&6; }
  2447. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  2448. } # ac_fn_c_check_member
  2449. ac_configure_args_raw=
  2450. for ac_arg
  2451. do
  2452. case $ac_arg in
  2453. *\'*)
  2454. ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
  2455. esac
  2456. as_fn_append ac_configure_args_raw " '$ac_arg'"
  2457. done
  2458. case $ac_configure_args_raw in
  2459. *$as_nl*)
  2460. ac_safe_unquote= ;;
  2461. *)
  2462. ac_unsafe_z='|&;<>()$`\\"*?[ '' ' # This string ends in space, tab.
  2463. ac_unsafe_a="$ac_unsafe_z#~"
  2464. ac_safe_unquote="s/ '\\([^$ac_unsafe_a][^$ac_unsafe_z]*\\)'/ \\1/g"
  2465. ac_configure_args_raw=` printf "%s\n" "$ac_configure_args_raw" | sed "$ac_safe_unquote"`;;
  2466. esac
  2467. cat >config.log <<_ACEOF
  2468. This file contains any messages produced by compilers while
  2469. running configure, to aid debugging if configure makes a mistake.
  2470. It was created by curl $as_me -, which was
  2471. generated by GNU Autoconf 2.71. Invocation command line was
  2472. $ $0$ac_configure_args_raw
  2473. _ACEOF
  2474. exec 5>>config.log
  2475. {
  2476. cat <<_ASUNAME
  2477. ## --------- ##
  2478. ## Platform. ##
  2479. ## --------- ##
  2480. hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
  2481. uname -m = `(uname -m) 2>/dev/null || echo unknown`
  2482. uname -r = `(uname -r) 2>/dev/null || echo unknown`
  2483. uname -s = `(uname -s) 2>/dev/null || echo unknown`
  2484. uname -v = `(uname -v) 2>/dev/null || echo unknown`
  2485. /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
  2486. /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
  2487. /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
  2488. /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
  2489. /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
  2490. /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
  2491. /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
  2492. /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
  2493. /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
  2494. _ASUNAME
  2495. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2496. for as_dir in $PATH
  2497. do
  2498. IFS=$as_save_IFS
  2499. case $as_dir in #(((
  2500. '') as_dir=./ ;;
  2501. */) ;;
  2502. *) as_dir=$as_dir/ ;;
  2503. esac
  2504. printf "%s\n" "PATH: $as_dir"
  2505. done
  2506. IFS=$as_save_IFS
  2507. } >&5
  2508. cat >&5 <<_ACEOF
  2509. ## ----------- ##
  2510. ## Core tests. ##
  2511. ## ----------- ##
  2512. _ACEOF
  2513. # Keep a trace of the command line.
  2514. # Strip out --no-create and --no-recursion so they do not pile up.
  2515. # Strip out --silent because we don't want to record it for future runs.
  2516. # Also quote any args containing shell meta-characters.
  2517. # Make two passes to allow for proper duplicate-argument suppression.
  2518. ac_configure_args=
  2519. ac_configure_args0=
  2520. ac_configure_args1=
  2521. ac_must_keep_next=false
  2522. for ac_pass in 1 2
  2523. do
  2524. for ac_arg
  2525. do
  2526. case $ac_arg in
  2527. -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
  2528. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  2529. | -silent | --silent | --silen | --sile | --sil)
  2530. continue ;;
  2531. *\'*)
  2532. ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
  2533. esac
  2534. case $ac_pass in
  2535. 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
  2536. 2)
  2537. as_fn_append ac_configure_args1 " '$ac_arg'"
  2538. if test $ac_must_keep_next = true; then
  2539. ac_must_keep_next=false # Got value, back to normal.
  2540. else
  2541. case $ac_arg in
  2542. *=* | --config-cache | -C | -disable-* | --disable-* \
  2543. | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
  2544. | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
  2545. | -with-* | --with-* | -without-* | --without-* | --x)
  2546. case "$ac_configure_args0 " in
  2547. "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
  2548. esac
  2549. ;;
  2550. -* ) ac_must_keep_next=true ;;
  2551. esac
  2552. fi
  2553. as_fn_append ac_configure_args " '$ac_arg'"
  2554. ;;
  2555. esac
  2556. done
  2557. done
  2558. { ac_configure_args0=; unset ac_configure_args0;}
  2559. { ac_configure_args1=; unset ac_configure_args1;}
  2560. # When interrupted or exit'd, cleanup temporary files, and complete
  2561. # config.log. We remove comments because anyway the quotes in there
  2562. # would cause problems or look ugly.
  2563. # WARNING: Use '\'' to represent an apostrophe within the trap.
  2564. # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
  2565. trap 'exit_status=$?
  2566. # Sanitize IFS.
  2567. IFS=" "" $as_nl"
  2568. # Save into config.log some information that might help in debugging.
  2569. {
  2570. echo
  2571. printf "%s\n" "## ---------------- ##
  2572. ## Cache variables. ##
  2573. ## ---------------- ##"
  2574. echo
  2575. # The following way of writing the cache mishandles newlines in values,
  2576. (
  2577. for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
  2578. eval ac_val=\$$ac_var
  2579. case $ac_val in #(
  2580. *${as_nl}*)
  2581. case $ac_var in #(
  2582. *_cv_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
  2583. printf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
  2584. esac
  2585. case $ac_var in #(
  2586. _ | IFS | as_nl) ;; #(
  2587. BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
  2588. *) { eval $ac_var=; unset $ac_var;} ;;
  2589. esac ;;
  2590. esac
  2591. done
  2592. (set) 2>&1 |
  2593. case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
  2594. *${as_nl}ac_space=\ *)
  2595. sed -n \
  2596. "s/'\''/'\''\\\\'\'''\''/g;
  2597. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
  2598. ;; #(
  2599. *)
  2600. sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
  2601. ;;
  2602. esac |
  2603. sort
  2604. )
  2605. echo
  2606. printf "%s\n" "## ----------------- ##
  2607. ## Output variables. ##
  2608. ## ----------------- ##"
  2609. echo
  2610. for ac_var in $ac_subst_vars
  2611. do
  2612. eval ac_val=\$$ac_var
  2613. case $ac_val in
  2614. *\'\''*) ac_val=`printf "%s\n" "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
  2615. esac
  2616. printf "%s\n" "$ac_var='\''$ac_val'\''"
  2617. done | sort
  2618. echo
  2619. if test -n "$ac_subst_files"; then
  2620. printf "%s\n" "## ------------------- ##
  2621. ## File substitutions. ##
  2622. ## ------------------- ##"
  2623. echo
  2624. for ac_var in $ac_subst_files
  2625. do
  2626. eval ac_val=\$$ac_var
  2627. case $ac_val in
  2628. *\'\''*) ac_val=`printf "%s\n" "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
  2629. esac
  2630. printf "%s\n" "$ac_var='\''$ac_val'\''"
  2631. done | sort
  2632. echo
  2633. fi
  2634. if test -s confdefs.h; then
  2635. printf "%s\n" "## ----------- ##
  2636. ## confdefs.h. ##
  2637. ## ----------- ##"
  2638. echo
  2639. cat confdefs.h
  2640. echo
  2641. fi
  2642. test "$ac_signal" != 0 &&
  2643. printf "%s\n" "$as_me: caught signal $ac_signal"
  2644. printf "%s\n" "$as_me: exit $exit_status"
  2645. } >&5
  2646. rm -f core *.core core.conftest.* &&
  2647. rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
  2648. exit $exit_status
  2649. ' 0
  2650. for ac_signal in 1 2 13 15; do
  2651. trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
  2652. done
  2653. ac_signal=0
  2654. # confdefs.h avoids OS command line length limits that DEFS can exceed.
  2655. rm -f -r conftest* confdefs.h
  2656. printf "%s\n" "/* confdefs.h */" > confdefs.h
  2657. # Predefined preprocessor variables.
  2658. printf "%s\n" "#define PACKAGE_NAME \"$PACKAGE_NAME\"" >>confdefs.h
  2659. printf "%s\n" "#define PACKAGE_TARNAME \"$PACKAGE_TARNAME\"" >>confdefs.h
  2660. printf "%s\n" "#define PACKAGE_VERSION \"$PACKAGE_VERSION\"" >>confdefs.h
  2661. printf "%s\n" "#define PACKAGE_STRING \"$PACKAGE_STRING\"" >>confdefs.h
  2662. printf "%s\n" "#define PACKAGE_BUGREPORT \"$PACKAGE_BUGREPORT\"" >>confdefs.h
  2663. printf "%s\n" "#define PACKAGE_URL \"$PACKAGE_URL\"" >>confdefs.h
  2664. # Let the site file select an alternate cache file if it wants to.
  2665. # Prefer an explicitly selected file to automatically selected ones.
  2666. if test -n "$CONFIG_SITE"; then
  2667. ac_site_files="$CONFIG_SITE"
  2668. elif test "x$prefix" != xNONE; then
  2669. ac_site_files="$prefix/share/config.site $prefix/etc/config.site"
  2670. else
  2671. ac_site_files="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
  2672. fi
  2673. for ac_site_file in $ac_site_files
  2674. do
  2675. case $ac_site_file in #(
  2676. */*) :
  2677. ;; #(
  2678. *) :
  2679. ac_site_file=./$ac_site_file ;;
  2680. esac
  2681. if test -f "$ac_site_file" && test -r "$ac_site_file"; then
  2682. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
  2683. printf "%s\n" "$as_me: loading site script $ac_site_file" >&6;}
  2684. sed 's/^/| /' "$ac_site_file" >&5
  2685. . "$ac_site_file" \
  2686. || { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  2687. printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
  2688. as_fn_error $? "failed to load site script $ac_site_file
  2689. See \`config.log' for more details" "$LINENO" 5; }
  2690. fi
  2691. done
  2692. if test -r "$cache_file"; then
  2693. # Some versions of bash will fail to source /dev/null (special files
  2694. # actually), so we avoid doing that. DJGPP emulates it as a regular file.
  2695. if test /dev/null != "$cache_file" && test -f "$cache_file"; then
  2696. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
  2697. printf "%s\n" "$as_me: loading cache $cache_file" >&6;}
  2698. case $cache_file in
  2699. [\\/]* | ?:[\\/]* ) . "$cache_file";;
  2700. *) . "./$cache_file";;
  2701. esac
  2702. fi
  2703. else
  2704. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
  2705. printf "%s\n" "$as_me: creating cache $cache_file" >&6;}
  2706. >$cache_file
  2707. fi
  2708. # Test code for whether the C compiler supports C89 (global declarations)
  2709. ac_c_conftest_c89_globals='
  2710. /* Does the compiler advertise C89 conformance?
  2711. Do not test the value of __STDC__, because some compilers set it to 0
  2712. while being otherwise adequately conformant. */
  2713. #if !defined __STDC__
  2714. # error "Compiler does not advertise C89 conformance"
  2715. #endif
  2716. #include <stddef.h>
  2717. #include <stdarg.h>
  2718. struct stat;
  2719. /* Most of the following tests are stolen from RCS 5.7 src/conf.sh. */
  2720. struct buf { int x; };
  2721. struct buf * (*rcsopen) (struct buf *, struct stat *, int);
  2722. static char *e (p, i)
  2723. char **p;
  2724. int i;
  2725. {
  2726. return p[i];
  2727. }
  2728. static char *f (char * (*g) (char **, int), char **p, ...)
  2729. {
  2730. char *s;
  2731. va_list v;
  2732. va_start (v,p);
  2733. s = g (p, va_arg (v,int));
  2734. va_end (v);
  2735. return s;
  2736. }
  2737. /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
  2738. function prototypes and stuff, but not \xHH hex character constants.
  2739. These do not provoke an error unfortunately, instead are silently treated
  2740. as an "x". The following induces an error, until -std is added to get
  2741. proper ANSI mode. Curiously \x00 != x always comes out true, for an
  2742. array size at least. It is necessary to write \x00 == 0 to get something
  2743. that is true only with -std. */
  2744. int osf4_cc_array ['\''\x00'\'' == 0 ? 1 : -1];
  2745. /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
  2746. inside strings and character constants. */
  2747. #define FOO(x) '\''x'\''
  2748. int xlc6_cc_array[FOO(a) == '\''x'\'' ? 1 : -1];
  2749. int test (int i, double x);
  2750. struct s1 {int (*f) (int a);};
  2751. struct s2 {int (*f) (double a);};
  2752. int pairnames (int, char **, int *(*)(struct buf *, struct stat *, int),
  2753. int, int);'
  2754. # Test code for whether the C compiler supports C89 (body of main).
  2755. ac_c_conftest_c89_main='
  2756. ok |= (argc == 0 || f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]);
  2757. '
  2758. # Test code for whether the C compiler supports C99 (global declarations)
  2759. ac_c_conftest_c99_globals='
  2760. // Does the compiler advertise C99 conformance?
  2761. #if !defined __STDC_VERSION__ || __STDC_VERSION__ < 199901L
  2762. # error "Compiler does not advertise C99 conformance"
  2763. #endif
  2764. #include <stdbool.h>
  2765. extern int puts (const char *);
  2766. extern int printf (const char *, ...);
  2767. extern int dprintf (int, const char *, ...);
  2768. extern void *malloc (size_t);
  2769. // Check varargs macros. These examples are taken from C99 6.10.3.5.
  2770. // dprintf is used instead of fprintf to avoid needing to declare
  2771. // FILE and stderr.
  2772. #define debug(...) dprintf (2, __VA_ARGS__)
  2773. #define showlist(...) puts (#__VA_ARGS__)
  2774. #define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
  2775. static void
  2776. test_varargs_macros (void)
  2777. {
  2778. int x = 1234;
  2779. int y = 5678;
  2780. debug ("Flag");
  2781. debug ("X = %d\n", x);
  2782. showlist (The first, second, and third items.);
  2783. report (x>y, "x is %d but y is %d", x, y);
  2784. }
  2785. // Check long long types.
  2786. #define BIG64 18446744073709551615ull
  2787. #define BIG32 4294967295ul
  2788. #define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
  2789. #if !BIG_OK
  2790. #error "your preprocessor is broken"
  2791. #endif
  2792. #if BIG_OK
  2793. #else
  2794. #error "your preprocessor is broken"
  2795. #endif
  2796. static long long int bignum = -9223372036854775807LL;
  2797. static unsigned long long int ubignum = BIG64;
  2798. struct incomplete_array
  2799. {
  2800. int datasize;
  2801. double data[];
  2802. };
  2803. struct named_init {
  2804. int number;
  2805. const wchar_t *name;
  2806. double average;
  2807. };
  2808. typedef const char *ccp;
  2809. static inline int
  2810. test_restrict (ccp restrict text)
  2811. {
  2812. // See if C++-style comments work.
  2813. // Iterate through items via the restricted pointer.
  2814. // Also check for declarations in for loops.
  2815. for (unsigned int i = 0; *(text+i) != '\''\0'\''; ++i)
  2816. continue;
  2817. return 0;
  2818. }
  2819. // Check varargs and va_copy.
  2820. static bool
  2821. test_varargs (const char *format, ...)
  2822. {
  2823. va_list args;
  2824. va_start (args, format);
  2825. va_list args_copy;
  2826. va_copy (args_copy, args);
  2827. const char *str = "";
  2828. int number = 0;
  2829. float fnumber = 0;
  2830. while (*format)
  2831. {
  2832. switch (*format++)
  2833. {
  2834. case '\''s'\'': // string
  2835. str = va_arg (args_copy, const char *);
  2836. break;
  2837. case '\''d'\'': // int
  2838. number = va_arg (args_copy, int);
  2839. break;
  2840. case '\''f'\'': // float
  2841. fnumber = va_arg (args_copy, double);
  2842. break;
  2843. default:
  2844. break;
  2845. }
  2846. }
  2847. va_end (args_copy);
  2848. va_end (args);
  2849. return *str && number && fnumber;
  2850. }
  2851. '
  2852. # Test code for whether the C compiler supports C99 (body of main).
  2853. ac_c_conftest_c99_main='
  2854. // Check bool.
  2855. _Bool success = false;
  2856. success |= (argc != 0);
  2857. // Check restrict.
  2858. if (test_restrict ("String literal") == 0)
  2859. success = true;
  2860. char *restrict newvar = "Another string";
  2861. // Check varargs.
  2862. success &= test_varargs ("s, d'\'' f .", "string", 65, 34.234);
  2863. test_varargs_macros ();
  2864. // Check flexible array members.
  2865. struct incomplete_array *ia =
  2866. malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
  2867. ia->datasize = 10;
  2868. for (int i = 0; i < ia->datasize; ++i)
  2869. ia->data[i] = i * 1.234;
  2870. // Check named initializers.
  2871. struct named_init ni = {
  2872. .number = 34,
  2873. .name = L"Test wide string",
  2874. .average = 543.34343,
  2875. };
  2876. ni.number = 58;
  2877. int dynamic_array[ni.number];
  2878. dynamic_array[0] = argv[0][0];
  2879. dynamic_array[ni.number - 1] = 543;
  2880. // work around unused variable warnings
  2881. ok |= (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == '\''x'\''
  2882. || dynamic_array[ni.number - 1] != 543);
  2883. '
  2884. # Test code for whether the C compiler supports C11 (global declarations)
  2885. ac_c_conftest_c11_globals='
  2886. // Does the compiler advertise C11 conformance?
  2887. #if !defined __STDC_VERSION__ || __STDC_VERSION__ < 201112L
  2888. # error "Compiler does not advertise C11 conformance"
  2889. #endif
  2890. // Check _Alignas.
  2891. char _Alignas (double) aligned_as_double;
  2892. char _Alignas (0) no_special_alignment;
  2893. extern char aligned_as_int;
  2894. char _Alignas (0) _Alignas (int) aligned_as_int;
  2895. // Check _Alignof.
  2896. enum
  2897. {
  2898. int_alignment = _Alignof (int),
  2899. int_array_alignment = _Alignof (int[100]),
  2900. char_alignment = _Alignof (char)
  2901. };
  2902. _Static_assert (0 < -_Alignof (int), "_Alignof is signed");
  2903. // Check _Noreturn.
  2904. int _Noreturn does_not_return (void) { for (;;) continue; }
  2905. // Check _Static_assert.
  2906. struct test_static_assert
  2907. {
  2908. int x;
  2909. _Static_assert (sizeof (int) <= sizeof (long int),
  2910. "_Static_assert does not work in struct");
  2911. long int y;
  2912. };
  2913. // Check UTF-8 literals.
  2914. #define u8 syntax error!
  2915. char const utf8_literal[] = u8"happens to be ASCII" "another string";
  2916. // Check duplicate typedefs.
  2917. typedef long *long_ptr;
  2918. typedef long int *long_ptr;
  2919. typedef long_ptr long_ptr;
  2920. // Anonymous structures and unions -- taken from C11 6.7.2.1 Example 1.
  2921. struct anonymous
  2922. {
  2923. union {
  2924. struct { int i; int j; };
  2925. struct { int k; long int l; } w;
  2926. };
  2927. int m;
  2928. } v1;
  2929. '
  2930. # Test code for whether the C compiler supports C11 (body of main).
  2931. ac_c_conftest_c11_main='
  2932. _Static_assert ((offsetof (struct anonymous, i)
  2933. == offsetof (struct anonymous, w.k)),
  2934. "Anonymous union alignment botch");
  2935. v1.i = 2;
  2936. v1.w.k = 5;
  2937. ok |= v1.i != 5;
  2938. '
  2939. # Test code for whether the C compiler supports C11 (complete).
  2940. ac_c_conftest_c11_program="${ac_c_conftest_c89_globals}
  2941. ${ac_c_conftest_c99_globals}
  2942. ${ac_c_conftest_c11_globals}
  2943. int
  2944. main (int argc, char **argv)
  2945. {
  2946. int ok = 0;
  2947. ${ac_c_conftest_c89_main}
  2948. ${ac_c_conftest_c99_main}
  2949. ${ac_c_conftest_c11_main}
  2950. return ok;
  2951. }
  2952. "
  2953. # Test code for whether the C compiler supports C99 (complete).
  2954. ac_c_conftest_c99_program="${ac_c_conftest_c89_globals}
  2955. ${ac_c_conftest_c99_globals}
  2956. int
  2957. main (int argc, char **argv)
  2958. {
  2959. int ok = 0;
  2960. ${ac_c_conftest_c89_main}
  2961. ${ac_c_conftest_c99_main}
  2962. return ok;
  2963. }
  2964. "
  2965. # Test code for whether the C compiler supports C89 (complete).
  2966. ac_c_conftest_c89_program="${ac_c_conftest_c89_globals}
  2967. int
  2968. main (int argc, char **argv)
  2969. {
  2970. int ok = 0;
  2971. ${ac_c_conftest_c89_main}
  2972. return ok;
  2973. }
  2974. "
  2975. as_fn_append ac_header_c_list " stdio.h stdio_h HAVE_STDIO_H"
  2976. as_fn_append ac_header_c_list " stdlib.h stdlib_h HAVE_STDLIB_H"
  2977. as_fn_append ac_header_c_list " string.h string_h HAVE_STRING_H"
  2978. as_fn_append ac_header_c_list " inttypes.h inttypes_h HAVE_INTTYPES_H"
  2979. as_fn_append ac_header_c_list " stdint.h stdint_h HAVE_STDINT_H"
  2980. as_fn_append ac_header_c_list " strings.h strings_h HAVE_STRINGS_H"
  2981. as_fn_append ac_header_c_list " sys/stat.h sys_stat_h HAVE_SYS_STAT_H"
  2982. as_fn_append ac_header_c_list " sys/types.h sys_types_h HAVE_SYS_TYPES_H"
  2983. as_fn_append ac_header_c_list " unistd.h unistd_h HAVE_UNISTD_H"
  2984. # Auxiliary files required by this configure script.
  2985. ac_aux_files="ltmain.sh config.guess config.sub missing compile install-sh"
  2986. # Locations in which to look for auxiliary files.
  2987. ac_aux_dir_candidates="${srcdir}${PATH_SEPARATOR}${srcdir}/..${PATH_SEPARATOR}${srcdir}/../.."
  2988. # Search for a directory containing all of the required auxiliary files,
  2989. # $ac_aux_files, from the $PATH-style list $ac_aux_dir_candidates.
  2990. # If we don't find one directory that contains all the files we need,
  2991. # we report the set of missing files from the *first* directory in
  2992. # $ac_aux_dir_candidates and give up.
  2993. ac_missing_aux_files=""
  2994. ac_first_candidate=:
  2995. printf "%s\n" "$as_me:${as_lineno-$LINENO}: looking for aux files: $ac_aux_files" >&5
  2996. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2997. as_found=false
  2998. for as_dir in $ac_aux_dir_candidates
  2999. do
  3000. IFS=$as_save_IFS
  3001. case $as_dir in #(((
  3002. '') as_dir=./ ;;
  3003. */) ;;
  3004. *) as_dir=$as_dir/ ;;
  3005. esac
  3006. as_found=:
  3007. printf "%s\n" "$as_me:${as_lineno-$LINENO}: trying $as_dir" >&5
  3008. ac_aux_dir_found=yes
  3009. ac_install_sh=
  3010. for ac_aux in $ac_aux_files
  3011. do
  3012. # As a special case, if "install-sh" is required, that requirement
  3013. # can be satisfied by any of "install-sh", "install.sh", or "shtool",
  3014. # and $ac_install_sh is set appropriately for whichever one is found.
  3015. if test x"$ac_aux" = x"install-sh"
  3016. then
  3017. if test -f "${as_dir}install-sh"; then
  3018. printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}install-sh found" >&5
  3019. ac_install_sh="${as_dir}install-sh -c"
  3020. elif test -f "${as_dir}install.sh"; then
  3021. printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}install.sh found" >&5
  3022. ac_install_sh="${as_dir}install.sh -c"
  3023. elif test -f "${as_dir}shtool"; then
  3024. printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}shtool found" >&5
  3025. ac_install_sh="${as_dir}shtool install -c"
  3026. else
  3027. ac_aux_dir_found=no
  3028. if $ac_first_candidate; then
  3029. ac_missing_aux_files="${ac_missing_aux_files} install-sh"
  3030. else
  3031. break
  3032. fi
  3033. fi
  3034. else
  3035. if test -f "${as_dir}${ac_aux}"; then
  3036. printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}${ac_aux} found" >&5
  3037. else
  3038. ac_aux_dir_found=no
  3039. if $ac_first_candidate; then
  3040. ac_missing_aux_files="${ac_missing_aux_files} ${ac_aux}"
  3041. else
  3042. break
  3043. fi
  3044. fi
  3045. fi
  3046. done
  3047. if test "$ac_aux_dir_found" = yes; then
  3048. ac_aux_dir="$as_dir"
  3049. break
  3050. fi
  3051. ac_first_candidate=false
  3052. as_found=false
  3053. done
  3054. IFS=$as_save_IFS
  3055. if $as_found
  3056. then :
  3057. else $as_nop
  3058. as_fn_error $? "cannot find required auxiliary files:$ac_missing_aux_files" "$LINENO" 5
  3059. fi
  3060. # These three variables are undocumented and unsupported,
  3061. # and are intended to be withdrawn in a future Autoconf release.
  3062. # They can cause serious problems if a builder's source tree is in a directory
  3063. # whose full name contains unusual characters.
  3064. if test -f "${ac_aux_dir}config.guess"; then
  3065. ac_config_guess="$SHELL ${ac_aux_dir}config.guess"
  3066. fi
  3067. if test -f "${ac_aux_dir}config.sub"; then
  3068. ac_config_sub="$SHELL ${ac_aux_dir}config.sub"
  3069. fi
  3070. if test -f "$ac_aux_dir/configure"; then
  3071. ac_configure="$SHELL ${ac_aux_dir}configure"
  3072. fi
  3073. # Check that the precious variables saved in the cache have kept the same
  3074. # value.
  3075. ac_cache_corrupted=false
  3076. for ac_var in $ac_precious_vars; do
  3077. eval ac_old_set=\$ac_cv_env_${ac_var}_set
  3078. eval ac_new_set=\$ac_env_${ac_var}_set
  3079. eval ac_old_val=\$ac_cv_env_${ac_var}_value
  3080. eval ac_new_val=\$ac_env_${ac_var}_value
  3081. case $ac_old_set,$ac_new_set in
  3082. set,)
  3083. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
  3084. printf "%s\n" "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
  3085. ac_cache_corrupted=: ;;
  3086. ,set)
  3087. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
  3088. printf "%s\n" "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
  3089. ac_cache_corrupted=: ;;
  3090. ,);;
  3091. *)
  3092. if test "x$ac_old_val" != "x$ac_new_val"; then
  3093. # differences in whitespace do not lead to failure.
  3094. ac_old_val_w=`echo x $ac_old_val`
  3095. ac_new_val_w=`echo x $ac_new_val`
  3096. if test "$ac_old_val_w" != "$ac_new_val_w"; then
  3097. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
  3098. printf "%s\n" "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
  3099. ac_cache_corrupted=:
  3100. else
  3101. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
  3102. printf "%s\n" "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
  3103. eval $ac_var=\$ac_old_val
  3104. fi
  3105. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
  3106. printf "%s\n" "$as_me: former value: \`$ac_old_val'" >&2;}
  3107. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
  3108. printf "%s\n" "$as_me: current value: \`$ac_new_val'" >&2;}
  3109. fi;;
  3110. esac
  3111. # Pass precious variables to config.status.
  3112. if test "$ac_new_set" = set; then
  3113. case $ac_new_val in
  3114. *\'*) ac_arg=$ac_var=`printf "%s\n" "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
  3115. *) ac_arg=$ac_var=$ac_new_val ;;
  3116. esac
  3117. case " $ac_configure_args " in
  3118. *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
  3119. *) as_fn_append ac_configure_args " '$ac_arg'" ;;
  3120. esac
  3121. fi
  3122. done
  3123. if $ac_cache_corrupted; then
  3124. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  3125. printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
  3126. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
  3127. printf "%s\n" "$as_me: error: changes in the environment can compromise the build" >&2;}
  3128. as_fn_error $? "run \`${MAKE-make} distclean' and/or \`rm $cache_file'
  3129. and start over" "$LINENO" 5
  3130. fi
  3131. ## -------------------- ##
  3132. ## Main body of script. ##
  3133. ## -------------------- ##
  3134. ac_ext=c
  3135. ac_cpp='$CPP $CPPFLAGS'
  3136. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  3137. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  3138. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  3139. # using curl-override.m4
  3140. ac_config_headers="$ac_config_headers lib/curl_config.h"
  3141. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
  3142. printf %s "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
  3143. # Check whether --enable-maintainer-mode was given.
  3144. if test ${enable_maintainer_mode+y}
  3145. then :
  3146. enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
  3147. else $as_nop
  3148. USE_MAINTAINER_MODE=no
  3149. fi
  3150. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
  3151. printf "%s\n" "$USE_MAINTAINER_MODE" >&6; }
  3152. if test $USE_MAINTAINER_MODE = yes; then
  3153. MAINTAINER_MODE_TRUE=
  3154. MAINTAINER_MODE_FALSE='#'
  3155. else
  3156. MAINTAINER_MODE_TRUE='#'
  3157. MAINTAINER_MODE_FALSE=
  3158. fi
  3159. MAINT=$MAINTAINER_MODE_TRUE
  3160. # Check whether --enable-silent-rules was given.
  3161. if test ${enable_silent_rules+y}
  3162. then :
  3163. enableval=$enable_silent_rules;
  3164. fi
  3165. case $enable_silent_rules in # (((
  3166. yes) AM_DEFAULT_VERBOSITY=0;;
  3167. no) AM_DEFAULT_VERBOSITY=1;;
  3168. *) AM_DEFAULT_VERBOSITY=0;;
  3169. esac
  3170. am_make=${MAKE-make}
  3171. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
  3172. printf %s "checking whether $am_make supports nested variables... " >&6; }
  3173. if test ${am_cv_make_support_nested_variables+y}
  3174. then :
  3175. printf %s "(cached) " >&6
  3176. else $as_nop
  3177. if printf "%s\n" 'TRUE=$(BAR$(V))
  3178. BAR0=false
  3179. BAR1=true
  3180. V=1
  3181. am__doit:
  3182. @$(TRUE)
  3183. .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
  3184. am_cv_make_support_nested_variables=yes
  3185. else
  3186. am_cv_make_support_nested_variables=no
  3187. fi
  3188. fi
  3189. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
  3190. printf "%s\n" "$am_cv_make_support_nested_variables" >&6; }
  3191. if test $am_cv_make_support_nested_variables = yes; then
  3192. AM_V='$(V)'
  3193. AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
  3194. else
  3195. AM_V=$AM_DEFAULT_VERBOSITY
  3196. AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
  3197. fi
  3198. AM_BACKSLASH='\'
  3199. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to enable debug build options" >&5
  3200. printf %s "checking whether to enable debug build options... " >&6; }
  3201. OPT_DEBUG_BUILD="default"
  3202. # Check whether --enable-debug was given.
  3203. if test ${enable_debug+y}
  3204. then :
  3205. enableval=$enable_debug; OPT_DEBUG_BUILD=$enableval
  3206. fi
  3207. case "$OPT_DEBUG_BUILD" in
  3208. no)
  3209. want_debug="no"
  3210. ;;
  3211. default)
  3212. want_debug="no"
  3213. ;;
  3214. *)
  3215. want_debug="yes"
  3216. printf "%s\n" "#define DEBUGBUILD 1" >>confdefs.h
  3217. ;;
  3218. esac
  3219. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $want_debug" >&5
  3220. printf "%s\n" "$want_debug" >&6; }
  3221. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to enable compiler optimizer" >&5
  3222. printf %s "checking whether to enable compiler optimizer... " >&6; }
  3223. OPT_COMPILER_OPTIMIZE="default"
  3224. # Check whether --enable-optimize was given.
  3225. if test ${enable_optimize+y}
  3226. then :
  3227. enableval=$enable_optimize; OPT_COMPILER_OPTIMIZE=$enableval
  3228. fi
  3229. case "$OPT_COMPILER_OPTIMIZE" in
  3230. no)
  3231. want_optimize="no"
  3232. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3233. printf "%s\n" "no" >&6; }
  3234. ;;
  3235. default)
  3236. if test "$want_debug" = "yes"; then
  3237. want_optimize="assume_no"
  3238. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: (assumed) no" >&5
  3239. printf "%s\n" "(assumed) no" >&6; }
  3240. else
  3241. want_optimize="assume_yes"
  3242. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: (assumed) yes" >&5
  3243. printf "%s\n" "(assumed) yes" >&6; }
  3244. fi
  3245. ;;
  3246. *)
  3247. want_optimize="yes"
  3248. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  3249. printf "%s\n" "yes" >&6; }
  3250. ;;
  3251. esac
  3252. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to enable strict compiler warnings" >&5
  3253. printf %s "checking whether to enable strict compiler warnings... " >&6; }
  3254. OPT_COMPILER_WARNINGS="default"
  3255. # Check whether --enable-warnings was given.
  3256. if test ${enable_warnings+y}
  3257. then :
  3258. enableval=$enable_warnings; OPT_COMPILER_WARNINGS=$enableval
  3259. fi
  3260. case "$OPT_COMPILER_WARNINGS" in
  3261. no)
  3262. want_warnings="no"
  3263. ;;
  3264. default)
  3265. want_warnings="$want_debug"
  3266. ;;
  3267. *)
  3268. want_warnings="yes"
  3269. ;;
  3270. esac
  3271. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $want_warnings" >&5
  3272. printf "%s\n" "$want_warnings" >&6; }
  3273. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to enable compiler warnings as errors" >&5
  3274. printf %s "checking whether to enable compiler warnings as errors... " >&6; }
  3275. OPT_COMPILER_WERROR="default"
  3276. # Check whether --enable-werror was given.
  3277. if test ${enable_werror+y}
  3278. then :
  3279. enableval=$enable_werror; OPT_COMPILER_WERROR=$enableval
  3280. fi
  3281. case "$OPT_COMPILER_WERROR" in
  3282. no)
  3283. want_werror="no"
  3284. ;;
  3285. default)
  3286. want_werror="no"
  3287. ;;
  3288. *)
  3289. want_werror="yes"
  3290. ;;
  3291. esac
  3292. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $want_werror" >&5
  3293. printf "%s\n" "$want_werror" >&6; }
  3294. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to enable curl debug memory tracking" >&5
  3295. printf %s "checking whether to enable curl debug memory tracking... " >&6; }
  3296. OPT_CURLDEBUG_BUILD="default"
  3297. # Check whether --enable-curldebug was given.
  3298. if test ${enable_curldebug+y}
  3299. then :
  3300. enableval=$enable_curldebug; OPT_CURLDEBUG_BUILD=$enableval
  3301. fi
  3302. case "$OPT_CURLDEBUG_BUILD" in
  3303. no)
  3304. want_curldebug="no"
  3305. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3306. printf "%s\n" "no" >&6; }
  3307. ;;
  3308. default)
  3309. if test "$want_debug" = "yes"; then
  3310. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: (assumed) yes" >&5
  3311. printf "%s\n" "(assumed) yes" >&6; }
  3312. printf "%s\n" "#define CURLDEBUG 1" >>confdefs.h
  3313. else
  3314. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3315. printf "%s\n" "no" >&6; }
  3316. fi
  3317. want_curldebug_assumed="yes"
  3318. want_curldebug="$want_debug"
  3319. ;;
  3320. *)
  3321. want_curldebug="yes"
  3322. printf "%s\n" "#define CURLDEBUG 1" >>confdefs.h
  3323. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  3324. printf "%s\n" "yes" >&6; }
  3325. ;;
  3326. esac
  3327. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to enable hiding of library internal symbols" >&5
  3328. printf %s "checking whether to enable hiding of library internal symbols... " >&6; }
  3329. OPT_SYMBOL_HIDING="default"
  3330. # Check whether --enable-symbol-hiding was given.
  3331. if test ${enable_symbol_hiding+y}
  3332. then :
  3333. enableval=$enable_symbol_hiding; OPT_SYMBOL_HIDING=$enableval
  3334. fi
  3335. case "$OPT_SYMBOL_HIDING" in
  3336. no)
  3337. want_symbol_hiding="no"
  3338. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3339. printf "%s\n" "no" >&6; }
  3340. ;;
  3341. default)
  3342. want_symbol_hiding="yes"
  3343. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  3344. printf "%s\n" "yes" >&6; }
  3345. ;;
  3346. *)
  3347. want_symbol_hiding="yes"
  3348. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  3349. printf "%s\n" "yes" >&6; }
  3350. ;;
  3351. esac
  3352. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to enable c-ares for DNS lookups" >&5
  3353. printf %s "checking whether to enable c-ares for DNS lookups... " >&6; }
  3354. OPT_ARES="default"
  3355. # Check whether --enable-ares was given.
  3356. if test ${enable_ares+y}
  3357. then :
  3358. enableval=$enable_ares; OPT_ARES=$enableval
  3359. fi
  3360. case "$OPT_ARES" in
  3361. no)
  3362. want_ares="no"
  3363. ;;
  3364. default)
  3365. want_ares="no"
  3366. ;;
  3367. *)
  3368. want_ares="yes"
  3369. if test -n "$enableval" && test "$enableval" != "yes"; then
  3370. want_ares_path="$enableval"
  3371. fi
  3372. ;;
  3373. esac
  3374. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $want_ares" >&5
  3375. printf "%s\n" "$want_ares" >&6; }
  3376. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to disable dependency on -lrt" >&5
  3377. printf %s "checking whether to disable dependency on -lrt... " >&6; }
  3378. OPT_RT="default"
  3379. # Check whether --enable-rt was given.
  3380. if test ${enable_rt+y}
  3381. then :
  3382. enableval=$enable_rt; OPT_RT=$enableval
  3383. fi
  3384. case "$OPT_RT" in
  3385. no)
  3386. dontwant_rt="yes"
  3387. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  3388. printf "%s\n" "yes" >&6; }
  3389. ;;
  3390. default)
  3391. dontwant_rt="no"
  3392. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: (assumed no)" >&5
  3393. printf "%s\n" "(assumed no)" >&6; }
  3394. ;;
  3395. *)
  3396. dontwant_rt="no"
  3397. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3398. printf "%s\n" "no" >&6; }
  3399. ;;
  3400. esac
  3401. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to enable ECH support" >&5
  3402. printf %s "checking whether to enable ECH support... " >&6; }
  3403. OPT_ECH="default"
  3404. # Check whether --enable-ech was given.
  3405. if test ${enable_ech+y}
  3406. then :
  3407. enableval=$enable_ech; OPT_ECH=$enableval
  3408. fi
  3409. case "$OPT_ECH" in
  3410. no)
  3411. want_ech="no"
  3412. curl_ech_msg="no (--enable-ech)"
  3413. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3414. printf "%s\n" "no" >&6; }
  3415. ;;
  3416. default)
  3417. want_ech="no"
  3418. curl_ech_msg="no (--enable-ech)"
  3419. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3420. printf "%s\n" "no" >&6; }
  3421. ;;
  3422. *)
  3423. want_ech="yes"
  3424. curl_ech_msg="enabled (--disable-ech)"
  3425. experimental="ech"
  3426. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  3427. printf "%s\n" "yes" >&6; }
  3428. ;;
  3429. esac
  3430. #
  3431. # Check that 'XC_CONFIGURE_PREAMBLE' has already run.
  3432. #
  3433. if test -z "$xc_configure_preamble_result"; then
  3434. as_fn_error $? "xc_configure_preamble_result not set (internal problem)" "$LINENO" 5
  3435. fi
  3436. #
  3437. # Check that 'PATH_SEPARATOR' has already been set.
  3438. #
  3439. if test -z "$xc_PATH_SEPARATOR"; then
  3440. as_fn_error $? "xc_PATH_SEPARATOR not set (internal problem)" "$LINENO" 5
  3441. fi
  3442. if test -z "$PATH_SEPARATOR"; then
  3443. as_fn_error $? "PATH_SEPARATOR not set (internal or config.site problem)" "$LINENO" 5
  3444. fi
  3445. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for path separator" >&5
  3446. printf %s "checking for path separator... " >&6; }
  3447. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PATH_SEPARATOR" >&5
  3448. printf "%s\n" "$PATH_SEPARATOR" >&6; }
  3449. if test "x$PATH_SEPARATOR" != "x$xc_PATH_SEPARATOR"; then
  3450. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for initial path separator" >&5
  3451. printf %s "checking for initial path separator... " >&6; }
  3452. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xc_PATH_SEPARATOR" >&5
  3453. printf "%s\n" "$xc_PATH_SEPARATOR" >&6; }
  3454. as_fn_error $? "path separator mismatch (internal or config.site problem)" "$LINENO" 5
  3455. fi
  3456. #
  3457. # save the configure arguments
  3458. #
  3459. CONFIGURE_OPTIONS="\"$ac_configure_args\""
  3460. if test -z "$SED"; then
  3461. # Extract the first word of "sed", so it can be a program name with args.
  3462. set dummy sed; ac_word=$2
  3463. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3464. printf %s "checking for $ac_word... " >&6; }
  3465. if test ${ac_cv_path_SED+y}
  3466. then :
  3467. printf %s "(cached) " >&6
  3468. else $as_nop
  3469. case $SED in
  3470. [\\/]* | ?:[\\/]*)
  3471. ac_cv_path_SED="$SED" # Let the user override the test with a path.
  3472. ;;
  3473. *)
  3474. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3475. as_dummy="$PATH:/usr/bin:/usr/local/bin"
  3476. for as_dir in $as_dummy
  3477. do
  3478. IFS=$as_save_IFS
  3479. case $as_dir in #(((
  3480. '') as_dir=./ ;;
  3481. */) ;;
  3482. *) as_dir=$as_dir/ ;;
  3483. esac
  3484. for ac_exec_ext in '' $ac_executable_extensions; do
  3485. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  3486. ac_cv_path_SED="$as_dir$ac_word$ac_exec_ext"
  3487. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  3488. break 2
  3489. fi
  3490. done
  3491. done
  3492. IFS=$as_save_IFS
  3493. test -z "$ac_cv_path_SED" && ac_cv_path_SED="not_found"
  3494. ;;
  3495. esac
  3496. fi
  3497. SED=$ac_cv_path_SED
  3498. if test -n "$SED"; then
  3499. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $SED" >&5
  3500. printf "%s\n" "$SED" >&6; }
  3501. else
  3502. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3503. printf "%s\n" "no" >&6; }
  3504. fi
  3505. if test -z "$SED" || test "$SED" = "not_found"; then
  3506. as_fn_error $? "sed not found in PATH. Cannot continue without sed." "$LINENO" 5
  3507. fi
  3508. fi
  3509. if test -z "$GREP"; then
  3510. # Extract the first word of "grep", so it can be a program name with args.
  3511. set dummy grep; ac_word=$2
  3512. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3513. printf %s "checking for $ac_word... " >&6; }
  3514. if test ${ac_cv_path_GREP+y}
  3515. then :
  3516. printf %s "(cached) " >&6
  3517. else $as_nop
  3518. case $GREP in
  3519. [\\/]* | ?:[\\/]*)
  3520. ac_cv_path_GREP="$GREP" # Let the user override the test with a path.
  3521. ;;
  3522. *)
  3523. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3524. as_dummy="$PATH:/usr/bin:/usr/local/bin"
  3525. for as_dir in $as_dummy
  3526. do
  3527. IFS=$as_save_IFS
  3528. case $as_dir in #(((
  3529. '') as_dir=./ ;;
  3530. */) ;;
  3531. *) as_dir=$as_dir/ ;;
  3532. esac
  3533. for ac_exec_ext in '' $ac_executable_extensions; do
  3534. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  3535. ac_cv_path_GREP="$as_dir$ac_word$ac_exec_ext"
  3536. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  3537. break 2
  3538. fi
  3539. done
  3540. done
  3541. IFS=$as_save_IFS
  3542. test -z "$ac_cv_path_GREP" && ac_cv_path_GREP="not_found"
  3543. ;;
  3544. esac
  3545. fi
  3546. GREP=$ac_cv_path_GREP
  3547. if test -n "$GREP"; then
  3548. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $GREP" >&5
  3549. printf "%s\n" "$GREP" >&6; }
  3550. else
  3551. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3552. printf "%s\n" "no" >&6; }
  3553. fi
  3554. if test -z "$GREP" || test "$GREP" = "not_found"; then
  3555. as_fn_error $? "grep not found in PATH. Cannot continue without grep." "$LINENO" 5
  3556. fi
  3557. fi
  3558. if test -z "$EGREP"; then
  3559. if echo a | ($GREP -E '(a|b)') >/dev/null 2>&1; then
  3560. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
  3561. printf %s "checking for egrep... " >&6; }
  3562. EGREP="$GREP -E"
  3563. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $EGREP" >&5
  3564. printf "%s\n" "$EGREP" >&6; }
  3565. else
  3566. # Extract the first word of "egrep", so it can be a program name with args.
  3567. set dummy egrep; ac_word=$2
  3568. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3569. printf %s "checking for $ac_word... " >&6; }
  3570. if test ${ac_cv_path_EGREP+y}
  3571. then :
  3572. printf %s "(cached) " >&6
  3573. else $as_nop
  3574. case $EGREP in
  3575. [\\/]* | ?:[\\/]*)
  3576. ac_cv_path_EGREP="$EGREP" # Let the user override the test with a path.
  3577. ;;
  3578. *)
  3579. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3580. as_dummy="$PATH:/usr/bin:/usr/local/bin"
  3581. for as_dir in $as_dummy
  3582. do
  3583. IFS=$as_save_IFS
  3584. case $as_dir in #(((
  3585. '') as_dir=./ ;;
  3586. */) ;;
  3587. *) as_dir=$as_dir/ ;;
  3588. esac
  3589. for ac_exec_ext in '' $ac_executable_extensions; do
  3590. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  3591. ac_cv_path_EGREP="$as_dir$ac_word$ac_exec_ext"
  3592. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  3593. break 2
  3594. fi
  3595. done
  3596. done
  3597. IFS=$as_save_IFS
  3598. test -z "$ac_cv_path_EGREP" && ac_cv_path_EGREP="not_found"
  3599. ;;
  3600. esac
  3601. fi
  3602. EGREP=$ac_cv_path_EGREP
  3603. if test -n "$EGREP"; then
  3604. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $EGREP" >&5
  3605. printf "%s\n" "$EGREP" >&6; }
  3606. else
  3607. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3608. printf "%s\n" "no" >&6; }
  3609. fi
  3610. fi
  3611. fi
  3612. if test -z "$EGREP" || test "$EGREP" = "not_found"; then
  3613. as_fn_error $? "egrep not found in PATH. Cannot continue without egrep." "$LINENO" 5
  3614. fi
  3615. if test -z "$AR"; then
  3616. if test -n "$ac_tool_prefix"; then
  3617. # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
  3618. set dummy ${ac_tool_prefix}ar; ac_word=$2
  3619. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3620. printf %s "checking for $ac_word... " >&6; }
  3621. if test ${ac_cv_path_AR+y}
  3622. then :
  3623. printf %s "(cached) " >&6
  3624. else $as_nop
  3625. case $AR in
  3626. [\\/]* | ?:[\\/]*)
  3627. ac_cv_path_AR="$AR" # Let the user override the test with a path.
  3628. ;;
  3629. *)
  3630. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3631. as_dummy="$PATH:/usr/bin:/usr/local/bin"
  3632. for as_dir in $as_dummy
  3633. do
  3634. IFS=$as_save_IFS
  3635. case $as_dir in #(((
  3636. '') as_dir=./ ;;
  3637. */) ;;
  3638. *) as_dir=$as_dir/ ;;
  3639. esac
  3640. for ac_exec_ext in '' $ac_executable_extensions; do
  3641. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  3642. ac_cv_path_AR="$as_dir$ac_word$ac_exec_ext"
  3643. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  3644. break 2
  3645. fi
  3646. done
  3647. done
  3648. IFS=$as_save_IFS
  3649. ;;
  3650. esac
  3651. fi
  3652. AR=$ac_cv_path_AR
  3653. if test -n "$AR"; then
  3654. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
  3655. printf "%s\n" "$AR" >&6; }
  3656. else
  3657. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3658. printf "%s\n" "no" >&6; }
  3659. fi
  3660. fi
  3661. if test -z "$ac_cv_path_AR"; then
  3662. ac_pt_AR=$AR
  3663. # Extract the first word of "ar", so it can be a program name with args.
  3664. set dummy ar; ac_word=$2
  3665. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3666. printf %s "checking for $ac_word... " >&6; }
  3667. if test ${ac_cv_path_ac_pt_AR+y}
  3668. then :
  3669. printf %s "(cached) " >&6
  3670. else $as_nop
  3671. case $ac_pt_AR in
  3672. [\\/]* | ?:[\\/]*)
  3673. ac_cv_path_ac_pt_AR="$ac_pt_AR" # Let the user override the test with a path.
  3674. ;;
  3675. *)
  3676. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3677. as_dummy="$PATH:/usr/bin:/usr/local/bin"
  3678. for as_dir in $as_dummy
  3679. do
  3680. IFS=$as_save_IFS
  3681. case $as_dir in #(((
  3682. '') as_dir=./ ;;
  3683. */) ;;
  3684. *) as_dir=$as_dir/ ;;
  3685. esac
  3686. for ac_exec_ext in '' $ac_executable_extensions; do
  3687. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  3688. ac_cv_path_ac_pt_AR="$as_dir$ac_word$ac_exec_ext"
  3689. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  3690. break 2
  3691. fi
  3692. done
  3693. done
  3694. IFS=$as_save_IFS
  3695. ;;
  3696. esac
  3697. fi
  3698. ac_pt_AR=$ac_cv_path_ac_pt_AR
  3699. if test -n "$ac_pt_AR"; then
  3700. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_pt_AR" >&5
  3701. printf "%s\n" "$ac_pt_AR" >&6; }
  3702. else
  3703. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3704. printf "%s\n" "no" >&6; }
  3705. fi
  3706. if test "x$ac_pt_AR" = x; then
  3707. AR="not_found"
  3708. else
  3709. case $cross_compiling:$ac_tool_warned in
  3710. yes:)
  3711. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  3712. printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  3713. ac_tool_warned=yes ;;
  3714. esac
  3715. AR=$ac_pt_AR
  3716. fi
  3717. else
  3718. AR="$ac_cv_path_AR"
  3719. fi
  3720. if test -z "$AR" || test "$AR" = "not_found"; then
  3721. as_fn_error $? "ar not found in PATH. Cannot continue without ar." "$LINENO" 5
  3722. fi
  3723. fi
  3724. CURLVERSION=`$SED -ne 's/^#define LIBCURL_VERSION "\(.*\)".*/\1/p' ${srcdir}/include/curl/curlver.h`
  3725. xc_prog_cc_prev_IFS=$IFS
  3726. xc_prog_cc_prev_LIBS=$LIBS
  3727. xc_prog_cc_prev_CFLAGS=$CFLAGS
  3728. xc_prog_cc_prev_LDFLAGS=$LDFLAGS
  3729. xc_prog_cc_prev_CPPFLAGS=$CPPFLAGS
  3730. xc_bad_var_libs=no
  3731. for xc_word in $LIBS; do
  3732. case "$xc_word" in
  3733. -l* | --library=*)
  3734. :
  3735. ;;
  3736. *)
  3737. xc_bad_var_libs=yes
  3738. ;;
  3739. esac
  3740. done
  3741. if test $xc_bad_var_libs = yes; then
  3742. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: using LIBS: $LIBS" >&5
  3743. printf "%s\n" "$as_me: using LIBS: $LIBS" >&6;}
  3744. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: LIBS note: LIBS should only be used to specify libraries (-lname)." >&5
  3745. printf "%s\n" "$as_me: LIBS note: LIBS should only be used to specify libraries (-lname)." >&6;}
  3746. fi
  3747. xc_bad_var_ldflags=no
  3748. for xc_word in $LDFLAGS; do
  3749. case "$xc_word" in
  3750. -D*)
  3751. xc_bad_var_ldflags=yes
  3752. ;;
  3753. -U*)
  3754. xc_bad_var_ldflags=yes
  3755. ;;
  3756. -I*)
  3757. xc_bad_var_ldflags=yes
  3758. ;;
  3759. -l* | --library=*)
  3760. xc_bad_var_ldflags=yes
  3761. ;;
  3762. esac
  3763. done
  3764. if test $xc_bad_var_ldflags = yes; then
  3765. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: using LDFLAGS: $LDFLAGS" >&5
  3766. printf "%s\n" "$as_me: using LDFLAGS: $LDFLAGS" >&6;}
  3767. xc_bad_var_msg="LDFLAGS note: LDFLAGS should only be used to specify linker flags, not"
  3768. for xc_word in $LDFLAGS; do
  3769. case "$xc_word" in
  3770. -D*)
  3771. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: $xc_bad_var_msg macro definitions. Use CPPFLAGS for: $xc_word" >&5
  3772. printf "%s\n" "$as_me: $xc_bad_var_msg macro definitions. Use CPPFLAGS for: $xc_word" >&6;}
  3773. ;;
  3774. -U*)
  3775. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: $xc_bad_var_msg macro suppressions. Use CPPFLAGS for: $xc_word" >&5
  3776. printf "%s\n" "$as_me: $xc_bad_var_msg macro suppressions. Use CPPFLAGS for: $xc_word" >&6;}
  3777. ;;
  3778. -I*)
  3779. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: $xc_bad_var_msg include directories. Use CPPFLAGS for: $xc_word" >&5
  3780. printf "%s\n" "$as_me: $xc_bad_var_msg include directories. Use CPPFLAGS for: $xc_word" >&6;}
  3781. ;;
  3782. -l* | --library=*)
  3783. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: $xc_bad_var_msg libraries. Use LIBS for: $xc_word" >&5
  3784. printf "%s\n" "$as_me: $xc_bad_var_msg libraries. Use LIBS for: $xc_word" >&6;}
  3785. ;;
  3786. esac
  3787. done
  3788. fi
  3789. xc_bad_var_cppflags=no
  3790. for xc_word in $CPPFLAGS; do
  3791. case "$xc_word" in
  3792. -rpath*)
  3793. xc_bad_var_cppflags=yes
  3794. ;;
  3795. -L* | --library-path=*)
  3796. xc_bad_var_cppflags=yes
  3797. ;;
  3798. -l* | --library=*)
  3799. xc_bad_var_cppflags=yes
  3800. ;;
  3801. esac
  3802. done
  3803. if test $xc_bad_var_cppflags = yes; then
  3804. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: using CPPFLAGS: $CPPFLAGS" >&5
  3805. printf "%s\n" "$as_me: using CPPFLAGS: $CPPFLAGS" >&6;}
  3806. xc_bad_var_msg="CPPFLAGS note: CPPFLAGS should only be used to specify C preprocessor flags, not"
  3807. for xc_word in $CPPFLAGS; do
  3808. case "$xc_word" in
  3809. -rpath*)
  3810. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: $xc_bad_var_msg library runtime directories. Use LDFLAGS for: $xc_word" >&5
  3811. printf "%s\n" "$as_me: $xc_bad_var_msg library runtime directories. Use LDFLAGS for: $xc_word" >&6;}
  3812. ;;
  3813. -L* | --library-path=*)
  3814. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: $xc_bad_var_msg library directories. Use LDFLAGS for: $xc_word" >&5
  3815. printf "%s\n" "$as_me: $xc_bad_var_msg library directories. Use LDFLAGS for: $xc_word" >&6;}
  3816. ;;
  3817. -l* | --library=*)
  3818. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: $xc_bad_var_msg libraries. Use LIBS for: $xc_word" >&5
  3819. printf "%s\n" "$as_me: $xc_bad_var_msg libraries. Use LIBS for: $xc_word" >&6;}
  3820. ;;
  3821. esac
  3822. done
  3823. fi
  3824. xc_bad_var_cflags=no
  3825. for xc_word in $CFLAGS; do
  3826. case "$xc_word" in
  3827. -D*)
  3828. xc_bad_var_cflags=yes
  3829. ;;
  3830. -U*)
  3831. xc_bad_var_cflags=yes
  3832. ;;
  3833. -I*)
  3834. xc_bad_var_cflags=yes
  3835. ;;
  3836. -rpath*)
  3837. xc_bad_var_cflags=yes
  3838. ;;
  3839. -L* | --library-path=*)
  3840. xc_bad_var_cflags=yes
  3841. ;;
  3842. -l* | --library=*)
  3843. xc_bad_var_cflags=yes
  3844. ;;
  3845. esac
  3846. done
  3847. if test $xc_bad_var_cflags = yes; then
  3848. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: using CFLAGS: $CFLAGS" >&5
  3849. printf "%s\n" "$as_me: using CFLAGS: $CFLAGS" >&6;}
  3850. xc_bad_var_msg="CFLAGS note: CFLAGS should only be used to specify C compiler flags, not"
  3851. for xc_word in $CFLAGS; do
  3852. case "$xc_word" in
  3853. -D*)
  3854. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: $xc_bad_var_msg macro definitions. Use CPPFLAGS for: $xc_word" >&5
  3855. printf "%s\n" "$as_me: $xc_bad_var_msg macro definitions. Use CPPFLAGS for: $xc_word" >&6;}
  3856. ;;
  3857. -U*)
  3858. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: $xc_bad_var_msg macro suppressions. Use CPPFLAGS for: $xc_word" >&5
  3859. printf "%s\n" "$as_me: $xc_bad_var_msg macro suppressions. Use CPPFLAGS for: $xc_word" >&6;}
  3860. ;;
  3861. -I*)
  3862. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: $xc_bad_var_msg include directories. Use CPPFLAGS for: $xc_word" >&5
  3863. printf "%s\n" "$as_me: $xc_bad_var_msg include directories. Use CPPFLAGS for: $xc_word" >&6;}
  3864. ;;
  3865. -rpath*)
  3866. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: $xc_bad_var_msg library runtime directories. Use LDFLAGS for: $xc_word" >&5
  3867. printf "%s\n" "$as_me: $xc_bad_var_msg library runtime directories. Use LDFLAGS for: $xc_word" >&6;}
  3868. ;;
  3869. -L* | --library-path=*)
  3870. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: $xc_bad_var_msg library directories. Use LDFLAGS for: $xc_word" >&5
  3871. printf "%s\n" "$as_me: $xc_bad_var_msg library directories. Use LDFLAGS for: $xc_word" >&6;}
  3872. ;;
  3873. -l* | --library=*)
  3874. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: $xc_bad_var_msg libraries. Use LIBS for: $xc_word" >&5
  3875. printf "%s\n" "$as_me: $xc_bad_var_msg libraries. Use LIBS for: $xc_word" >&6;}
  3876. ;;
  3877. esac
  3878. done
  3879. fi
  3880. if test $xc_bad_var_libs = yes ||
  3881. test $xc_bad_var_cflags = yes ||
  3882. test $xc_bad_var_ldflags = yes ||
  3883. test $xc_bad_var_cppflags = yes; then
  3884. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: Continuing even with errors mentioned immediately above this line." >&5
  3885. printf "%s\n" "$as_me: WARNING: Continuing even with errors mentioned immediately above this line." >&2;}
  3886. fi
  3887. # Find a good install program. We prefer a C program (faster),
  3888. # so one script is as good as another. But avoid the broken or
  3889. # incompatible versions:
  3890. # SysV /etc/install, /usr/sbin/install
  3891. # SunOS /usr/etc/install
  3892. # IRIX /sbin/install
  3893. # AIX /bin/install
  3894. # AmigaOS /C/install, which installs bootblocks on floppy discs
  3895. # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
  3896. # AFS /usr/afsws/bin/install, which mishandles nonexistent args
  3897. # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
  3898. # OS/2's system install, which has a completely different semantic
  3899. # ./install, which can be erroneously created by make from ./install.sh.
  3900. # Reject install programs that cannot install multiple files.
  3901. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
  3902. printf %s "checking for a BSD-compatible install... " >&6; }
  3903. if test -z "$INSTALL"; then
  3904. if test ${ac_cv_path_install+y}
  3905. then :
  3906. printf %s "(cached) " >&6
  3907. else $as_nop
  3908. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3909. for as_dir in $PATH
  3910. do
  3911. IFS=$as_save_IFS
  3912. case $as_dir in #(((
  3913. '') as_dir=./ ;;
  3914. */) ;;
  3915. *) as_dir=$as_dir/ ;;
  3916. esac
  3917. # Account for fact that we put trailing slashes in our PATH walk.
  3918. case $as_dir in #((
  3919. ./ | /[cC]/* | \
  3920. /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
  3921. ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
  3922. /usr/ucb/* ) ;;
  3923. *)
  3924. # OSF1 and SCO ODT 3.0 have their own names for install.
  3925. # Don't use installbsd from OSF since it installs stuff as root
  3926. # by default.
  3927. for ac_prog in ginstall scoinst install; do
  3928. for ac_exec_ext in '' $ac_executable_extensions; do
  3929. if as_fn_executable_p "$as_dir$ac_prog$ac_exec_ext"; then
  3930. if test $ac_prog = install &&
  3931. grep dspmsg "$as_dir$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
  3932. # AIX install. It has an incompatible calling convention.
  3933. :
  3934. elif test $ac_prog = install &&
  3935. grep pwplus "$as_dir$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
  3936. # program-specific install script used by HP pwplus--don't use.
  3937. :
  3938. else
  3939. rm -rf conftest.one conftest.two conftest.dir
  3940. echo one > conftest.one
  3941. echo two > conftest.two
  3942. mkdir conftest.dir
  3943. if "$as_dir$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir/" &&
  3944. test -s conftest.one && test -s conftest.two &&
  3945. test -s conftest.dir/conftest.one &&
  3946. test -s conftest.dir/conftest.two
  3947. then
  3948. ac_cv_path_install="$as_dir$ac_prog$ac_exec_ext -c"
  3949. break 3
  3950. fi
  3951. fi
  3952. fi
  3953. done
  3954. done
  3955. ;;
  3956. esac
  3957. done
  3958. IFS=$as_save_IFS
  3959. rm -rf conftest.one conftest.two conftest.dir
  3960. fi
  3961. if test ${ac_cv_path_install+y}; then
  3962. INSTALL=$ac_cv_path_install
  3963. else
  3964. # As a last resort, use the slow shell script. Don't cache a
  3965. # value for INSTALL within a source directory, because that will
  3966. # break other packages using the cache if that directory is
  3967. # removed, or if the value is a relative name.
  3968. INSTALL=$ac_install_sh
  3969. fi
  3970. fi
  3971. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
  3972. printf "%s\n" "$INSTALL" >&6; }
  3973. # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
  3974. # It thinks the first close brace ends the variable substitution.
  3975. test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
  3976. test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
  3977. test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
  3978. # Expand $ac_aux_dir to an absolute path.
  3979. am_aux_dir=`cd "$ac_aux_dir" && pwd`
  3980. ac_ext=c
  3981. ac_cpp='$CPP $CPPFLAGS'
  3982. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  3983. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  3984. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  3985. if test -n "$ac_tool_prefix"; then
  3986. # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
  3987. set dummy ${ac_tool_prefix}gcc; ac_word=$2
  3988. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3989. printf %s "checking for $ac_word... " >&6; }
  3990. if test ${ac_cv_prog_CC+y}
  3991. then :
  3992. printf %s "(cached) " >&6
  3993. else $as_nop
  3994. if test -n "$CC"; then
  3995. ac_cv_prog_CC="$CC" # Let the user override the test.
  3996. else
  3997. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3998. for as_dir in $PATH
  3999. do
  4000. IFS=$as_save_IFS
  4001. case $as_dir in #(((
  4002. '') as_dir=./ ;;
  4003. */) ;;
  4004. *) as_dir=$as_dir/ ;;
  4005. esac
  4006. for ac_exec_ext in '' $ac_executable_extensions; do
  4007. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  4008. ac_cv_prog_CC="${ac_tool_prefix}gcc"
  4009. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  4010. break 2
  4011. fi
  4012. done
  4013. done
  4014. IFS=$as_save_IFS
  4015. fi
  4016. fi
  4017. CC=$ac_cv_prog_CC
  4018. if test -n "$CC"; then
  4019. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  4020. printf "%s\n" "$CC" >&6; }
  4021. else
  4022. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4023. printf "%s\n" "no" >&6; }
  4024. fi
  4025. fi
  4026. if test -z "$ac_cv_prog_CC"; then
  4027. ac_ct_CC=$CC
  4028. # Extract the first word of "gcc", so it can be a program name with args.
  4029. set dummy gcc; ac_word=$2
  4030. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4031. printf %s "checking for $ac_word... " >&6; }
  4032. if test ${ac_cv_prog_ac_ct_CC+y}
  4033. then :
  4034. printf %s "(cached) " >&6
  4035. else $as_nop
  4036. if test -n "$ac_ct_CC"; then
  4037. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  4038. else
  4039. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4040. for as_dir in $PATH
  4041. do
  4042. IFS=$as_save_IFS
  4043. case $as_dir in #(((
  4044. '') as_dir=./ ;;
  4045. */) ;;
  4046. *) as_dir=$as_dir/ ;;
  4047. esac
  4048. for ac_exec_ext in '' $ac_executable_extensions; do
  4049. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  4050. ac_cv_prog_ac_ct_CC="gcc"
  4051. printf "%s\n" "$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. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  4060. if test -n "$ac_ct_CC"; then
  4061. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
  4062. printf "%s\n" "$ac_ct_CC" >&6; }
  4063. else
  4064. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4065. printf "%s\n" "no" >&6; }
  4066. fi
  4067. if test "x$ac_ct_CC" = x; then
  4068. CC=""
  4069. else
  4070. case $cross_compiling:$ac_tool_warned in
  4071. yes:)
  4072. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  4073. printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  4074. ac_tool_warned=yes ;;
  4075. esac
  4076. CC=$ac_ct_CC
  4077. fi
  4078. else
  4079. CC="$ac_cv_prog_CC"
  4080. fi
  4081. if test -z "$CC"; then
  4082. if test -n "$ac_tool_prefix"; then
  4083. # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
  4084. set dummy ${ac_tool_prefix}cc; ac_word=$2
  4085. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4086. printf %s "checking for $ac_word... " >&6; }
  4087. if test ${ac_cv_prog_CC+y}
  4088. then :
  4089. printf %s "(cached) " >&6
  4090. else $as_nop
  4091. if test -n "$CC"; then
  4092. ac_cv_prog_CC="$CC" # Let the user override the test.
  4093. else
  4094. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4095. for as_dir in $PATH
  4096. do
  4097. IFS=$as_save_IFS
  4098. case $as_dir in #(((
  4099. '') as_dir=./ ;;
  4100. */) ;;
  4101. *) as_dir=$as_dir/ ;;
  4102. esac
  4103. for ac_exec_ext in '' $ac_executable_extensions; do
  4104. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  4105. ac_cv_prog_CC="${ac_tool_prefix}cc"
  4106. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  4107. break 2
  4108. fi
  4109. done
  4110. done
  4111. IFS=$as_save_IFS
  4112. fi
  4113. fi
  4114. CC=$ac_cv_prog_CC
  4115. if test -n "$CC"; then
  4116. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  4117. printf "%s\n" "$CC" >&6; }
  4118. else
  4119. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4120. printf "%s\n" "no" >&6; }
  4121. fi
  4122. fi
  4123. fi
  4124. if test -z "$CC"; then
  4125. # Extract the first word of "cc", so it can be a program name with args.
  4126. set dummy cc; ac_word=$2
  4127. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4128. printf %s "checking for $ac_word... " >&6; }
  4129. if test ${ac_cv_prog_CC+y}
  4130. then :
  4131. printf %s "(cached) " >&6
  4132. else $as_nop
  4133. if test -n "$CC"; then
  4134. ac_cv_prog_CC="$CC" # Let the user override the test.
  4135. else
  4136. ac_prog_rejected=no
  4137. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4138. for as_dir in $PATH
  4139. do
  4140. IFS=$as_save_IFS
  4141. case $as_dir in #(((
  4142. '') as_dir=./ ;;
  4143. */) ;;
  4144. *) as_dir=$as_dir/ ;;
  4145. esac
  4146. for ac_exec_ext in '' $ac_executable_extensions; do
  4147. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  4148. if test "$as_dir$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
  4149. ac_prog_rejected=yes
  4150. continue
  4151. fi
  4152. ac_cv_prog_CC="cc"
  4153. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  4154. break 2
  4155. fi
  4156. done
  4157. done
  4158. IFS=$as_save_IFS
  4159. if test $ac_prog_rejected = yes; then
  4160. # We found a bogon in the path, so make sure we never use it.
  4161. set dummy $ac_cv_prog_CC
  4162. shift
  4163. if test $# != 0; then
  4164. # We chose a different compiler from the bogus one.
  4165. # However, it has the same basename, so the bogon will be chosen
  4166. # first if we set CC to just the basename; use the full file name.
  4167. shift
  4168. ac_cv_prog_CC="$as_dir$ac_word${1+' '}$@"
  4169. fi
  4170. fi
  4171. fi
  4172. fi
  4173. CC=$ac_cv_prog_CC
  4174. if test -n "$CC"; then
  4175. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  4176. printf "%s\n" "$CC" >&6; }
  4177. else
  4178. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4179. printf "%s\n" "no" >&6; }
  4180. fi
  4181. fi
  4182. if test -z "$CC"; then
  4183. if test -n "$ac_tool_prefix"; then
  4184. for ac_prog in cl.exe
  4185. do
  4186. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  4187. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  4188. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4189. printf %s "checking for $ac_word... " >&6; }
  4190. if test ${ac_cv_prog_CC+y}
  4191. then :
  4192. printf %s "(cached) " >&6
  4193. else $as_nop
  4194. if test -n "$CC"; then
  4195. ac_cv_prog_CC="$CC" # Let the user override the test.
  4196. else
  4197. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4198. for as_dir in $PATH
  4199. do
  4200. IFS=$as_save_IFS
  4201. case $as_dir in #(((
  4202. '') as_dir=./ ;;
  4203. */) ;;
  4204. *) as_dir=$as_dir/ ;;
  4205. esac
  4206. for ac_exec_ext in '' $ac_executable_extensions; do
  4207. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  4208. ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
  4209. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  4210. break 2
  4211. fi
  4212. done
  4213. done
  4214. IFS=$as_save_IFS
  4215. fi
  4216. fi
  4217. CC=$ac_cv_prog_CC
  4218. if test -n "$CC"; then
  4219. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  4220. printf "%s\n" "$CC" >&6; }
  4221. else
  4222. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4223. printf "%s\n" "no" >&6; }
  4224. fi
  4225. test -n "$CC" && break
  4226. done
  4227. fi
  4228. if test -z "$CC"; then
  4229. ac_ct_CC=$CC
  4230. for ac_prog in cl.exe
  4231. do
  4232. # Extract the first word of "$ac_prog", so it can be a program name with args.
  4233. set dummy $ac_prog; ac_word=$2
  4234. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4235. printf %s "checking for $ac_word... " >&6; }
  4236. if test ${ac_cv_prog_ac_ct_CC+y}
  4237. then :
  4238. printf %s "(cached) " >&6
  4239. else $as_nop
  4240. if test -n "$ac_ct_CC"; then
  4241. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  4242. else
  4243. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4244. for as_dir in $PATH
  4245. do
  4246. IFS=$as_save_IFS
  4247. case $as_dir in #(((
  4248. '') as_dir=./ ;;
  4249. */) ;;
  4250. *) as_dir=$as_dir/ ;;
  4251. esac
  4252. for ac_exec_ext in '' $ac_executable_extensions; do
  4253. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  4254. ac_cv_prog_ac_ct_CC="$ac_prog"
  4255. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  4256. break 2
  4257. fi
  4258. done
  4259. done
  4260. IFS=$as_save_IFS
  4261. fi
  4262. fi
  4263. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  4264. if test -n "$ac_ct_CC"; then
  4265. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
  4266. printf "%s\n" "$ac_ct_CC" >&6; }
  4267. else
  4268. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4269. printf "%s\n" "no" >&6; }
  4270. fi
  4271. test -n "$ac_ct_CC" && break
  4272. done
  4273. if test "x$ac_ct_CC" = x; then
  4274. CC=""
  4275. else
  4276. case $cross_compiling:$ac_tool_warned in
  4277. yes:)
  4278. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  4279. printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  4280. ac_tool_warned=yes ;;
  4281. esac
  4282. CC=$ac_ct_CC
  4283. fi
  4284. fi
  4285. fi
  4286. if test -z "$CC"; then
  4287. if test -n "$ac_tool_prefix"; then
  4288. # Extract the first word of "${ac_tool_prefix}clang", so it can be a program name with args.
  4289. set dummy ${ac_tool_prefix}clang; ac_word=$2
  4290. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4291. printf %s "checking for $ac_word... " >&6; }
  4292. if test ${ac_cv_prog_CC+y}
  4293. then :
  4294. printf %s "(cached) " >&6
  4295. else $as_nop
  4296. if test -n "$CC"; then
  4297. ac_cv_prog_CC="$CC" # Let the user override the test.
  4298. else
  4299. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4300. for as_dir in $PATH
  4301. do
  4302. IFS=$as_save_IFS
  4303. case $as_dir in #(((
  4304. '') as_dir=./ ;;
  4305. */) ;;
  4306. *) as_dir=$as_dir/ ;;
  4307. esac
  4308. for ac_exec_ext in '' $ac_executable_extensions; do
  4309. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  4310. ac_cv_prog_CC="${ac_tool_prefix}clang"
  4311. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  4312. break 2
  4313. fi
  4314. done
  4315. done
  4316. IFS=$as_save_IFS
  4317. fi
  4318. fi
  4319. CC=$ac_cv_prog_CC
  4320. if test -n "$CC"; then
  4321. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  4322. printf "%s\n" "$CC" >&6; }
  4323. else
  4324. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4325. printf "%s\n" "no" >&6; }
  4326. fi
  4327. fi
  4328. if test -z "$ac_cv_prog_CC"; then
  4329. ac_ct_CC=$CC
  4330. # Extract the first word of "clang", so it can be a program name with args.
  4331. set dummy clang; ac_word=$2
  4332. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4333. printf %s "checking for $ac_word... " >&6; }
  4334. if test ${ac_cv_prog_ac_ct_CC+y}
  4335. then :
  4336. printf %s "(cached) " >&6
  4337. else $as_nop
  4338. if test -n "$ac_ct_CC"; then
  4339. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  4340. else
  4341. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4342. for as_dir in $PATH
  4343. do
  4344. IFS=$as_save_IFS
  4345. case $as_dir in #(((
  4346. '') as_dir=./ ;;
  4347. */) ;;
  4348. *) as_dir=$as_dir/ ;;
  4349. esac
  4350. for ac_exec_ext in '' $ac_executable_extensions; do
  4351. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  4352. ac_cv_prog_ac_ct_CC="clang"
  4353. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  4354. break 2
  4355. fi
  4356. done
  4357. done
  4358. IFS=$as_save_IFS
  4359. fi
  4360. fi
  4361. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  4362. if test -n "$ac_ct_CC"; then
  4363. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
  4364. printf "%s\n" "$ac_ct_CC" >&6; }
  4365. else
  4366. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4367. printf "%s\n" "no" >&6; }
  4368. fi
  4369. if test "x$ac_ct_CC" = x; then
  4370. CC=""
  4371. else
  4372. case $cross_compiling:$ac_tool_warned in
  4373. yes:)
  4374. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  4375. printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  4376. ac_tool_warned=yes ;;
  4377. esac
  4378. CC=$ac_ct_CC
  4379. fi
  4380. else
  4381. CC="$ac_cv_prog_CC"
  4382. fi
  4383. fi
  4384. test -z "$CC" && { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  4385. printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
  4386. as_fn_error $? "no acceptable C compiler found in \$PATH
  4387. See \`config.log' for more details" "$LINENO" 5; }
  4388. # Provide some information about the compiler.
  4389. printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
  4390. set X $ac_compile
  4391. ac_compiler=$2
  4392. for ac_option in --version -v -V -qversion -version; do
  4393. { { ac_try="$ac_compiler $ac_option >&5"
  4394. case "(($ac_try" in
  4395. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  4396. *) ac_try_echo=$ac_try;;
  4397. esac
  4398. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  4399. printf "%s\n" "$ac_try_echo"; } >&5
  4400. (eval "$ac_compiler $ac_option >&5") 2>conftest.err
  4401. ac_status=$?
  4402. if test -s conftest.err; then
  4403. sed '10a\
  4404. ... rest of stderr output deleted ...
  4405. 10q' conftest.err >conftest.er1
  4406. cat conftest.er1 >&5
  4407. fi
  4408. rm -f conftest.er1 conftest.err
  4409. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  4410. test $ac_status = 0; }
  4411. done
  4412. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4413. /* end confdefs.h. */
  4414. int main (void)
  4415. {
  4416. ;
  4417. return 0;
  4418. }
  4419. _ACEOF
  4420. ac_clean_files_save=$ac_clean_files
  4421. ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
  4422. # Try to create an executable without -o first, disregard a.out.
  4423. # It will help us diagnose broken compilers, and finding out an intuition
  4424. # of exeext.
  4425. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
  4426. printf %s "checking whether the C compiler works... " >&6; }
  4427. ac_link_default=`printf "%s\n" "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
  4428. # The possible output files:
  4429. ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
  4430. ac_rmfiles=
  4431. for ac_file in $ac_files
  4432. do
  4433. case $ac_file in
  4434. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
  4435. * ) ac_rmfiles="$ac_rmfiles $ac_file";;
  4436. esac
  4437. done
  4438. rm -f $ac_rmfiles
  4439. if { { ac_try="$ac_link_default"
  4440. case "(($ac_try" in
  4441. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  4442. *) ac_try_echo=$ac_try;;
  4443. esac
  4444. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  4445. printf "%s\n" "$ac_try_echo"; } >&5
  4446. (eval "$ac_link_default") 2>&5
  4447. ac_status=$?
  4448. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  4449. test $ac_status = 0; }
  4450. then :
  4451. # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
  4452. # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
  4453. # in a Makefile. We should not override ac_cv_exeext if it was cached,
  4454. # so that the user can short-circuit this test for compilers unknown to
  4455. # Autoconf.
  4456. for ac_file in $ac_files ''
  4457. do
  4458. test -f "$ac_file" || continue
  4459. case $ac_file in
  4460. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
  4461. ;;
  4462. [ab].out )
  4463. # We found the default executable, but exeext='' is most
  4464. # certainly right.
  4465. break;;
  4466. *.* )
  4467. if test ${ac_cv_exeext+y} && test "$ac_cv_exeext" != no;
  4468. then :; else
  4469. ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
  4470. fi
  4471. # We set ac_cv_exeext here because the later test for it is not
  4472. # safe: cross compilers may not add the suffix if given an `-o'
  4473. # argument, so we may need to know it at that point already.
  4474. # Even if this section looks crufty: it has the advantage of
  4475. # actually working.
  4476. break;;
  4477. * )
  4478. break;;
  4479. esac
  4480. done
  4481. test "$ac_cv_exeext" = no && ac_cv_exeext=
  4482. else $as_nop
  4483. ac_file=''
  4484. fi
  4485. if test -z "$ac_file"
  4486. then :
  4487. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4488. printf "%s\n" "no" >&6; }
  4489. printf "%s\n" "$as_me: failed program was:" >&5
  4490. sed 's/^/| /' conftest.$ac_ext >&5
  4491. { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  4492. printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
  4493. as_fn_error 77 "C compiler cannot create executables
  4494. See \`config.log' for more details" "$LINENO" 5; }
  4495. else $as_nop
  4496. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  4497. printf "%s\n" "yes" >&6; }
  4498. fi
  4499. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
  4500. printf %s "checking for C compiler default output file name... " >&6; }
  4501. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
  4502. printf "%s\n" "$ac_file" >&6; }
  4503. ac_exeext=$ac_cv_exeext
  4504. rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
  4505. ac_clean_files=$ac_clean_files_save
  4506. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
  4507. printf %s "checking for suffix of executables... " >&6; }
  4508. if { { ac_try="$ac_link"
  4509. case "(($ac_try" in
  4510. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  4511. *) ac_try_echo=$ac_try;;
  4512. esac
  4513. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  4514. printf "%s\n" "$ac_try_echo"; } >&5
  4515. (eval "$ac_link") 2>&5
  4516. ac_status=$?
  4517. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  4518. test $ac_status = 0; }
  4519. then :
  4520. # If both `conftest.exe' and `conftest' are `present' (well, observable)
  4521. # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
  4522. # work properly (i.e., refer to `conftest.exe'), while it won't with
  4523. # `rm'.
  4524. for ac_file in conftest.exe conftest conftest.*; do
  4525. test -f "$ac_file" || continue
  4526. case $ac_file in
  4527. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
  4528. *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
  4529. break;;
  4530. * ) break;;
  4531. esac
  4532. done
  4533. else $as_nop
  4534. { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  4535. printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
  4536. as_fn_error $? "cannot compute suffix of executables: cannot compile and link
  4537. See \`config.log' for more details" "$LINENO" 5; }
  4538. fi
  4539. rm -f conftest conftest$ac_cv_exeext
  4540. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
  4541. printf "%s\n" "$ac_cv_exeext" >&6; }
  4542. rm -f conftest.$ac_ext
  4543. EXEEXT=$ac_cv_exeext
  4544. ac_exeext=$EXEEXT
  4545. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4546. /* end confdefs.h. */
  4547. #include <stdio.h>
  4548. int main (void)
  4549. {
  4550. FILE *f = fopen ("conftest.out", "w");
  4551. return ferror (f) || fclose (f) != 0;
  4552. ;
  4553. return 0;
  4554. }
  4555. _ACEOF
  4556. ac_clean_files="$ac_clean_files conftest.out"
  4557. # Check that the compiler produces executables we can run. If not, either
  4558. # the compiler is broken, or we cross compile.
  4559. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
  4560. printf %s "checking whether we are cross compiling... " >&6; }
  4561. if test "$cross_compiling" != yes; then
  4562. { { ac_try="$ac_link"
  4563. case "(($ac_try" in
  4564. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  4565. *) ac_try_echo=$ac_try;;
  4566. esac
  4567. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  4568. printf "%s\n" "$ac_try_echo"; } >&5
  4569. (eval "$ac_link") 2>&5
  4570. ac_status=$?
  4571. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  4572. test $ac_status = 0; }
  4573. if { ac_try='./conftest$ac_cv_exeext'
  4574. { { case "(($ac_try" in
  4575. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  4576. *) ac_try_echo=$ac_try;;
  4577. esac
  4578. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  4579. printf "%s\n" "$ac_try_echo"; } >&5
  4580. (eval "$ac_try") 2>&5
  4581. ac_status=$?
  4582. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  4583. test $ac_status = 0; }; }; then
  4584. cross_compiling=no
  4585. else
  4586. if test "$cross_compiling" = maybe; then
  4587. cross_compiling=yes
  4588. else
  4589. { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  4590. printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
  4591. as_fn_error 77 "cannot run C compiled programs.
  4592. If you meant to cross compile, use \`--host'.
  4593. See \`config.log' for more details" "$LINENO" 5; }
  4594. fi
  4595. fi
  4596. fi
  4597. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
  4598. printf "%s\n" "$cross_compiling" >&6; }
  4599. rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
  4600. ac_clean_files=$ac_clean_files_save
  4601. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
  4602. printf %s "checking for suffix of object files... " >&6; }
  4603. if test ${ac_cv_objext+y}
  4604. then :
  4605. printf %s "(cached) " >&6
  4606. else $as_nop
  4607. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4608. /* end confdefs.h. */
  4609. int main (void)
  4610. {
  4611. ;
  4612. return 0;
  4613. }
  4614. _ACEOF
  4615. rm -f conftest.o conftest.obj
  4616. if { { ac_try="$ac_compile"
  4617. case "(($ac_try" in
  4618. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  4619. *) ac_try_echo=$ac_try;;
  4620. esac
  4621. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  4622. printf "%s\n" "$ac_try_echo"; } >&5
  4623. (eval "$ac_compile") 2>&5
  4624. ac_status=$?
  4625. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  4626. test $ac_status = 0; }
  4627. then :
  4628. for ac_file in conftest.o conftest.obj conftest.*; do
  4629. test -f "$ac_file" || continue;
  4630. case $ac_file in
  4631. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
  4632. *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
  4633. break;;
  4634. esac
  4635. done
  4636. else $as_nop
  4637. printf "%s\n" "$as_me: failed program was:" >&5
  4638. sed 's/^/| /' conftest.$ac_ext >&5
  4639. { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  4640. printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
  4641. as_fn_error $? "cannot compute suffix of object files: cannot compile
  4642. See \`config.log' for more details" "$LINENO" 5; }
  4643. fi
  4644. rm -f conftest.$ac_cv_objext conftest.$ac_ext
  4645. fi
  4646. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
  4647. printf "%s\n" "$ac_cv_objext" >&6; }
  4648. OBJEXT=$ac_cv_objext
  4649. ac_objext=$OBJEXT
  4650. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports GNU C" >&5
  4651. printf %s "checking whether the compiler supports GNU C... " >&6; }
  4652. if test ${ac_cv_c_compiler_gnu+y}
  4653. then :
  4654. printf %s "(cached) " >&6
  4655. else $as_nop
  4656. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4657. /* end confdefs.h. */
  4658. int main (void)
  4659. {
  4660. #ifndef __GNUC__
  4661. choke me
  4662. #endif
  4663. ;
  4664. return 0;
  4665. }
  4666. _ACEOF
  4667. if ac_fn_c_try_compile "$LINENO"
  4668. then :
  4669. ac_compiler_gnu=yes
  4670. else $as_nop
  4671. ac_compiler_gnu=no
  4672. fi
  4673. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  4674. ac_cv_c_compiler_gnu=$ac_compiler_gnu
  4675. fi
  4676. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
  4677. printf "%s\n" "$ac_cv_c_compiler_gnu" >&6; }
  4678. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  4679. if test $ac_compiler_gnu = yes; then
  4680. GCC=yes
  4681. else
  4682. GCC=
  4683. fi
  4684. ac_test_CFLAGS=${CFLAGS+y}
  4685. ac_save_CFLAGS=$CFLAGS
  4686. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
  4687. printf %s "checking whether $CC accepts -g... " >&6; }
  4688. if test ${ac_cv_prog_cc_g+y}
  4689. then :
  4690. printf %s "(cached) " >&6
  4691. else $as_nop
  4692. ac_save_c_werror_flag=$ac_c_werror_flag
  4693. ac_c_werror_flag=yes
  4694. ac_cv_prog_cc_g=no
  4695. CFLAGS="-g"
  4696. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4697. /* end confdefs.h. */
  4698. int main (void)
  4699. {
  4700. ;
  4701. return 0;
  4702. }
  4703. _ACEOF
  4704. if ac_fn_c_try_compile "$LINENO"
  4705. then :
  4706. ac_cv_prog_cc_g=yes
  4707. else $as_nop
  4708. CFLAGS=""
  4709. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4710. /* end confdefs.h. */
  4711. int main (void)
  4712. {
  4713. ;
  4714. return 0;
  4715. }
  4716. _ACEOF
  4717. if ac_fn_c_try_compile "$LINENO"
  4718. then :
  4719. else $as_nop
  4720. ac_c_werror_flag=$ac_save_c_werror_flag
  4721. CFLAGS="-g"
  4722. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4723. /* end confdefs.h. */
  4724. int main (void)
  4725. {
  4726. ;
  4727. return 0;
  4728. }
  4729. _ACEOF
  4730. if ac_fn_c_try_compile "$LINENO"
  4731. then :
  4732. ac_cv_prog_cc_g=yes
  4733. fi
  4734. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  4735. fi
  4736. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  4737. fi
  4738. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  4739. ac_c_werror_flag=$ac_save_c_werror_flag
  4740. fi
  4741. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
  4742. printf "%s\n" "$ac_cv_prog_cc_g" >&6; }
  4743. if test $ac_test_CFLAGS; then
  4744. CFLAGS=$ac_save_CFLAGS
  4745. elif test $ac_cv_prog_cc_g = yes; then
  4746. if test "$GCC" = yes; then
  4747. CFLAGS="-g -O2"
  4748. else
  4749. CFLAGS="-g"
  4750. fi
  4751. else
  4752. if test "$GCC" = yes; then
  4753. CFLAGS="-O2"
  4754. else
  4755. CFLAGS=
  4756. fi
  4757. fi
  4758. ac_prog_cc_stdc=no
  4759. if test x$ac_prog_cc_stdc = xno
  4760. then :
  4761. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C11 features" >&5
  4762. printf %s "checking for $CC option to enable C11 features... " >&6; }
  4763. if test ${ac_cv_prog_cc_c11+y}
  4764. then :
  4765. printf %s "(cached) " >&6
  4766. else $as_nop
  4767. ac_cv_prog_cc_c11=no
  4768. ac_save_CC=$CC
  4769. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4770. /* end confdefs.h. */
  4771. $ac_c_conftest_c11_program
  4772. _ACEOF
  4773. for ac_arg in '' -std=gnu11
  4774. do
  4775. CC="$ac_save_CC $ac_arg"
  4776. if ac_fn_c_try_compile "$LINENO"
  4777. then :
  4778. ac_cv_prog_cc_c11=$ac_arg
  4779. fi
  4780. rm -f core conftest.err conftest.$ac_objext conftest.beam
  4781. test "x$ac_cv_prog_cc_c11" != "xno" && break
  4782. done
  4783. rm -f conftest.$ac_ext
  4784. CC=$ac_save_CC
  4785. fi
  4786. if test "x$ac_cv_prog_cc_c11" = xno
  4787. then :
  4788. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
  4789. printf "%s\n" "unsupported" >&6; }
  4790. else $as_nop
  4791. if test "x$ac_cv_prog_cc_c11" = x
  4792. then :
  4793. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
  4794. printf "%s\n" "none needed" >&6; }
  4795. else $as_nop
  4796. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c11" >&5
  4797. printf "%s\n" "$ac_cv_prog_cc_c11" >&6; }
  4798. CC="$CC $ac_cv_prog_cc_c11"
  4799. fi
  4800. ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c11
  4801. ac_prog_cc_stdc=c11
  4802. fi
  4803. fi
  4804. if test x$ac_prog_cc_stdc = xno
  4805. then :
  4806. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C99 features" >&5
  4807. printf %s "checking for $CC option to enable C99 features... " >&6; }
  4808. if test ${ac_cv_prog_cc_c99+y}
  4809. then :
  4810. printf %s "(cached) " >&6
  4811. else $as_nop
  4812. ac_cv_prog_cc_c99=no
  4813. ac_save_CC=$CC
  4814. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4815. /* end confdefs.h. */
  4816. $ac_c_conftest_c99_program
  4817. _ACEOF
  4818. for ac_arg in '' -std=gnu99 -std=c99 -c99 -qlanglvl=extc1x -qlanglvl=extc99 -AC99 -D_STDC_C99=
  4819. do
  4820. CC="$ac_save_CC $ac_arg"
  4821. if ac_fn_c_try_compile "$LINENO"
  4822. then :
  4823. ac_cv_prog_cc_c99=$ac_arg
  4824. fi
  4825. rm -f core conftest.err conftest.$ac_objext conftest.beam
  4826. test "x$ac_cv_prog_cc_c99" != "xno" && break
  4827. done
  4828. rm -f conftest.$ac_ext
  4829. CC=$ac_save_CC
  4830. fi
  4831. if test "x$ac_cv_prog_cc_c99" = xno
  4832. then :
  4833. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
  4834. printf "%s\n" "unsupported" >&6; }
  4835. else $as_nop
  4836. if test "x$ac_cv_prog_cc_c99" = x
  4837. then :
  4838. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
  4839. printf "%s\n" "none needed" >&6; }
  4840. else $as_nop
  4841. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
  4842. printf "%s\n" "$ac_cv_prog_cc_c99" >&6; }
  4843. CC="$CC $ac_cv_prog_cc_c99"
  4844. fi
  4845. ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c99
  4846. ac_prog_cc_stdc=c99
  4847. fi
  4848. fi
  4849. if test x$ac_prog_cc_stdc = xno
  4850. then :
  4851. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C89 features" >&5
  4852. printf %s "checking for $CC option to enable C89 features... " >&6; }
  4853. if test ${ac_cv_prog_cc_c89+y}
  4854. then :
  4855. printf %s "(cached) " >&6
  4856. else $as_nop
  4857. ac_cv_prog_cc_c89=no
  4858. ac_save_CC=$CC
  4859. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4860. /* end confdefs.h. */
  4861. $ac_c_conftest_c89_program
  4862. _ACEOF
  4863. for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
  4864. do
  4865. CC="$ac_save_CC $ac_arg"
  4866. if ac_fn_c_try_compile "$LINENO"
  4867. then :
  4868. ac_cv_prog_cc_c89=$ac_arg
  4869. fi
  4870. rm -f core conftest.err conftest.$ac_objext conftest.beam
  4871. test "x$ac_cv_prog_cc_c89" != "xno" && break
  4872. done
  4873. rm -f conftest.$ac_ext
  4874. CC=$ac_save_CC
  4875. fi
  4876. if test "x$ac_cv_prog_cc_c89" = xno
  4877. then :
  4878. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
  4879. printf "%s\n" "unsupported" >&6; }
  4880. else $as_nop
  4881. if test "x$ac_cv_prog_cc_c89" = x
  4882. then :
  4883. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
  4884. printf "%s\n" "none needed" >&6; }
  4885. else $as_nop
  4886. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
  4887. printf "%s\n" "$ac_cv_prog_cc_c89" >&6; }
  4888. CC="$CC $ac_cv_prog_cc_c89"
  4889. fi
  4890. ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c89
  4891. ac_prog_cc_stdc=c89
  4892. fi
  4893. fi
  4894. ac_ext=c
  4895. ac_cpp='$CPP $CPPFLAGS'
  4896. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  4897. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  4898. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  4899. ac_ext=c
  4900. ac_cpp='$CPP $CPPFLAGS'
  4901. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  4902. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  4903. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  4904. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
  4905. printf %s "checking whether $CC understands -c and -o together... " >&6; }
  4906. if test ${am_cv_prog_cc_c_o+y}
  4907. then :
  4908. printf %s "(cached) " >&6
  4909. else $as_nop
  4910. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4911. /* end confdefs.h. */
  4912. int main (void)
  4913. {
  4914. ;
  4915. return 0;
  4916. }
  4917. _ACEOF
  4918. # Make sure it works both with $CC and with simple cc.
  4919. # Following AC_PROG_CC_C_O, we do the test twice because some
  4920. # compilers refuse to overwrite an existing .o file with -o,
  4921. # though they will create one.
  4922. am_cv_prog_cc_c_o=yes
  4923. for am_i in 1 2; do
  4924. if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
  4925. ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
  4926. ac_status=$?
  4927. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4928. (exit $ac_status); } \
  4929. && test -f conftest2.$ac_objext; then
  4930. : OK
  4931. else
  4932. am_cv_prog_cc_c_o=no
  4933. break
  4934. fi
  4935. done
  4936. rm -f core conftest*
  4937. unset am_i
  4938. fi
  4939. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
  4940. printf "%s\n" "$am_cv_prog_cc_c_o" >&6; }
  4941. if test "$am_cv_prog_cc_c_o" != yes; then
  4942. # Losing compiler, so override with the script.
  4943. # FIXME: It is wrong to rewrite CC.
  4944. # But if we don't then we get into trouble of one sort or another.
  4945. # A longer-term fix would be to have automake use am__CC in this case,
  4946. # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
  4947. CC="$am_aux_dir/compile $CC"
  4948. fi
  4949. ac_ext=c
  4950. ac_cpp='$CPP $CPPFLAGS'
  4951. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  4952. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  4953. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  4954. ac_ext=c
  4955. ac_cpp='$CPP $CPPFLAGS'
  4956. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  4957. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  4958. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  4959. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
  4960. printf %s "checking how to run the C preprocessor... " >&6; }
  4961. # On Suns, sometimes $CPP names a directory.
  4962. if test -n "$CPP" && test -d "$CPP"; then
  4963. CPP=
  4964. fi
  4965. if test -z "$CPP"; then
  4966. if test ${ac_cv_prog_CPP+y}
  4967. then :
  4968. printf %s "(cached) " >&6
  4969. else $as_nop
  4970. # Double quotes because $CC needs to be expanded
  4971. for CPP in "$CC -E" "$CC -E -traditional-cpp" cpp /lib/cpp
  4972. do
  4973. ac_preproc_ok=false
  4974. for ac_c_preproc_warn_flag in '' yes
  4975. do
  4976. # Use a header file that comes with gcc, so configuring glibc
  4977. # with a fresh cross-compiler works.
  4978. # On the NeXT, cc -E runs the code through the compiler's parser,
  4979. # not just through cpp. "Syntax error" is here to catch this case.
  4980. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4981. /* end confdefs.h. */
  4982. #include <limits.h>
  4983. Syntax error
  4984. _ACEOF
  4985. if ac_fn_c_try_cpp "$LINENO"
  4986. then :
  4987. else $as_nop
  4988. # Broken: fails on valid input.
  4989. continue
  4990. fi
  4991. rm -f conftest.err conftest.i conftest.$ac_ext
  4992. # OK, works on sane cases. Now check whether nonexistent headers
  4993. # can be detected and how.
  4994. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4995. /* end confdefs.h. */
  4996. #include <ac_nonexistent.h>
  4997. _ACEOF
  4998. if ac_fn_c_try_cpp "$LINENO"
  4999. then :
  5000. # Broken: success on invalid input.
  5001. continue
  5002. else $as_nop
  5003. # Passes both tests.
  5004. ac_preproc_ok=:
  5005. break
  5006. fi
  5007. rm -f conftest.err conftest.i conftest.$ac_ext
  5008. done
  5009. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  5010. rm -f conftest.i conftest.err conftest.$ac_ext
  5011. if $ac_preproc_ok
  5012. then :
  5013. break
  5014. fi
  5015. done
  5016. ac_cv_prog_CPP=$CPP
  5017. fi
  5018. CPP=$ac_cv_prog_CPP
  5019. else
  5020. ac_cv_prog_CPP=$CPP
  5021. fi
  5022. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
  5023. printf "%s\n" "$CPP" >&6; }
  5024. ac_preproc_ok=false
  5025. for ac_c_preproc_warn_flag in '' yes
  5026. do
  5027. # Use a header file that comes with gcc, so configuring glibc
  5028. # with a fresh cross-compiler works.
  5029. # On the NeXT, cc -E runs the code through the compiler's parser,
  5030. # not just through cpp. "Syntax error" is here to catch this case.
  5031. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5032. /* end confdefs.h. */
  5033. #include <limits.h>
  5034. Syntax error
  5035. _ACEOF
  5036. if ac_fn_c_try_cpp "$LINENO"
  5037. then :
  5038. else $as_nop
  5039. # Broken: fails on valid input.
  5040. continue
  5041. fi
  5042. rm -f conftest.err conftest.i conftest.$ac_ext
  5043. # OK, works on sane cases. Now check whether nonexistent headers
  5044. # can be detected and how.
  5045. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5046. /* end confdefs.h. */
  5047. #include <ac_nonexistent.h>
  5048. _ACEOF
  5049. if ac_fn_c_try_cpp "$LINENO"
  5050. then :
  5051. # Broken: success on invalid input.
  5052. continue
  5053. else $as_nop
  5054. # Passes both tests.
  5055. ac_preproc_ok=:
  5056. break
  5057. fi
  5058. rm -f conftest.err conftest.i conftest.$ac_ext
  5059. done
  5060. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  5061. rm -f conftest.i conftest.err conftest.$ac_ext
  5062. if $ac_preproc_ok
  5063. then :
  5064. else $as_nop
  5065. { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  5066. printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
  5067. as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
  5068. See \`config.log' for more details" "$LINENO" 5; }
  5069. fi
  5070. ac_ext=c
  5071. ac_cpp='$CPP $CPPFLAGS'
  5072. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  5073. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  5074. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  5075. IFS=$xc_prog_cc_prev_IFS
  5076. LIBS=$xc_prog_cc_prev_LIBS
  5077. CFLAGS=$xc_prog_cc_prev_CFLAGS
  5078. LDFLAGS=$xc_prog_cc_prev_LDFLAGS
  5079. CPPFLAGS=$xc_prog_cc_prev_CPPFLAGS
  5080. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
  5081. printf %s "checking for a sed that does not truncate output... " >&6; }
  5082. if test ${ac_cv_path_SED+y}
  5083. then :
  5084. printf %s "(cached) " >&6
  5085. else $as_nop
  5086. ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
  5087. for ac_i in 1 2 3 4 5 6 7; do
  5088. ac_script="$ac_script$as_nl$ac_script"
  5089. done
  5090. echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
  5091. { ac_script=; unset ac_script;}
  5092. if test -z "$SED"; then
  5093. ac_path_SED_found=false
  5094. # Loop through the user's path and test for each of PROGNAME-LIST
  5095. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5096. for as_dir in $PATH
  5097. do
  5098. IFS=$as_save_IFS
  5099. case $as_dir in #(((
  5100. '') as_dir=./ ;;
  5101. */) ;;
  5102. *) as_dir=$as_dir/ ;;
  5103. esac
  5104. for ac_prog in sed gsed
  5105. do
  5106. for ac_exec_ext in '' $ac_executable_extensions; do
  5107. ac_path_SED="$as_dir$ac_prog$ac_exec_ext"
  5108. as_fn_executable_p "$ac_path_SED" || continue
  5109. # Check for GNU ac_path_SED and select it if it is found.
  5110. # Check for GNU $ac_path_SED
  5111. case `"$ac_path_SED" --version 2>&1` in
  5112. *GNU*)
  5113. ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
  5114. *)
  5115. ac_count=0
  5116. printf %s 0123456789 >"conftest.in"
  5117. while :
  5118. do
  5119. cat "conftest.in" "conftest.in" >"conftest.tmp"
  5120. mv "conftest.tmp" "conftest.in"
  5121. cp "conftest.in" "conftest.nl"
  5122. printf "%s\n" '' >> "conftest.nl"
  5123. "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
  5124. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  5125. as_fn_arith $ac_count + 1 && ac_count=$as_val
  5126. if test $ac_count -gt ${ac_path_SED_max-0}; then
  5127. # Best one so far, save it but keep looking for a better one
  5128. ac_cv_path_SED="$ac_path_SED"
  5129. ac_path_SED_max=$ac_count
  5130. fi
  5131. # 10*(2^10) chars as input seems more than enough
  5132. test $ac_count -gt 10 && break
  5133. done
  5134. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  5135. esac
  5136. $ac_path_SED_found && break 3
  5137. done
  5138. done
  5139. done
  5140. IFS=$as_save_IFS
  5141. if test -z "$ac_cv_path_SED"; then
  5142. as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
  5143. fi
  5144. else
  5145. ac_cv_path_SED=$SED
  5146. fi
  5147. fi
  5148. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
  5149. printf "%s\n" "$ac_cv_path_SED" >&6; }
  5150. SED="$ac_cv_path_SED"
  5151. rm -f conftest.sed
  5152. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for code coverage support" >&5
  5153. printf %s "checking for code coverage support... " >&6; }
  5154. coverage="no"
  5155. curl_coverage_msg="disabled"
  5156. # Check whether --enable-code-coverage was given.
  5157. if test ${enable_code_coverage+y}
  5158. then :
  5159. enableval=$enable_code_coverage; coverage="$enableval"
  5160. fi
  5161. if test "$GCC" != "yes"
  5162. then :
  5163. coverage="no"
  5164. fi
  5165. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $coverage" >&5
  5166. printf "%s\n" "$coverage" >&6; }
  5167. if test "x$coverage" = "xyes"; then
  5168. curl_coverage_msg="enabled"
  5169. if test -n "$ac_tool_prefix"; then
  5170. # Extract the first word of "${ac_tool_prefix}gcov", so it can be a program name with args.
  5171. set dummy ${ac_tool_prefix}gcov; ac_word=$2
  5172. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5173. printf %s "checking for $ac_word... " >&6; }
  5174. if test ${ac_cv_prog_GCOV+y}
  5175. then :
  5176. printf %s "(cached) " >&6
  5177. else $as_nop
  5178. if test -n "$GCOV"; then
  5179. ac_cv_prog_GCOV="$GCOV" # Let the user override the test.
  5180. else
  5181. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5182. for as_dir in $PATH
  5183. do
  5184. IFS=$as_save_IFS
  5185. case $as_dir in #(((
  5186. '') as_dir=./ ;;
  5187. */) ;;
  5188. *) as_dir=$as_dir/ ;;
  5189. esac
  5190. for ac_exec_ext in '' $ac_executable_extensions; do
  5191. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  5192. ac_cv_prog_GCOV="${ac_tool_prefix}gcov"
  5193. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  5194. break 2
  5195. fi
  5196. done
  5197. done
  5198. IFS=$as_save_IFS
  5199. fi
  5200. fi
  5201. GCOV=$ac_cv_prog_GCOV
  5202. if test -n "$GCOV"; then
  5203. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $GCOV" >&5
  5204. printf "%s\n" "$GCOV" >&6; }
  5205. else
  5206. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5207. printf "%s\n" "no" >&6; }
  5208. fi
  5209. fi
  5210. if test -z "$ac_cv_prog_GCOV"; then
  5211. ac_ct_GCOV=$GCOV
  5212. # Extract the first word of "gcov", so it can be a program name with args.
  5213. set dummy gcov; ac_word=$2
  5214. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5215. printf %s "checking for $ac_word... " >&6; }
  5216. if test ${ac_cv_prog_ac_ct_GCOV+y}
  5217. then :
  5218. printf %s "(cached) " >&6
  5219. else $as_nop
  5220. if test -n "$ac_ct_GCOV"; then
  5221. ac_cv_prog_ac_ct_GCOV="$ac_ct_GCOV" # Let the user override the test.
  5222. else
  5223. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5224. for as_dir in $PATH
  5225. do
  5226. IFS=$as_save_IFS
  5227. case $as_dir in #(((
  5228. '') as_dir=./ ;;
  5229. */) ;;
  5230. *) as_dir=$as_dir/ ;;
  5231. esac
  5232. for ac_exec_ext in '' $ac_executable_extensions; do
  5233. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  5234. ac_cv_prog_ac_ct_GCOV="gcov"
  5235. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  5236. break 2
  5237. fi
  5238. done
  5239. done
  5240. IFS=$as_save_IFS
  5241. fi
  5242. fi
  5243. ac_ct_GCOV=$ac_cv_prog_ac_ct_GCOV
  5244. if test -n "$ac_ct_GCOV"; then
  5245. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GCOV" >&5
  5246. printf "%s\n" "$ac_ct_GCOV" >&6; }
  5247. else
  5248. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5249. printf "%s\n" "no" >&6; }
  5250. fi
  5251. if test "x$ac_ct_GCOV" = x; then
  5252. GCOV="gcov"
  5253. else
  5254. case $cross_compiling:$ac_tool_warned in
  5255. yes:)
  5256. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  5257. printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  5258. ac_tool_warned=yes ;;
  5259. esac
  5260. GCOV=$ac_ct_GCOV
  5261. fi
  5262. else
  5263. GCOV="$ac_cv_prog_GCOV"
  5264. fi
  5265. if test -z "$GCOV"; then
  5266. as_fn_error $? "needs gcov for code coverage" "$LINENO" 5
  5267. fi
  5268. # Extract the first word of "lcov", so it can be a program name with args.
  5269. set dummy lcov; ac_word=$2
  5270. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5271. printf %s "checking for $ac_word... " >&6; }
  5272. if test ${ac_cv_prog_LCOV+y}
  5273. then :
  5274. printf %s "(cached) " >&6
  5275. else $as_nop
  5276. if test -n "$LCOV"; then
  5277. ac_cv_prog_LCOV="$LCOV" # Let the user override the test.
  5278. else
  5279. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5280. for as_dir in $PATH
  5281. do
  5282. IFS=$as_save_IFS
  5283. case $as_dir in #(((
  5284. '') as_dir=./ ;;
  5285. */) ;;
  5286. *) as_dir=$as_dir/ ;;
  5287. esac
  5288. for ac_exec_ext in '' $ac_executable_extensions; do
  5289. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  5290. ac_cv_prog_LCOV="lcov"
  5291. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  5292. break 2
  5293. fi
  5294. done
  5295. done
  5296. IFS=$as_save_IFS
  5297. fi
  5298. fi
  5299. LCOV=$ac_cv_prog_LCOV
  5300. if test -n "$LCOV"; then
  5301. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LCOV" >&5
  5302. printf "%s\n" "$LCOV" >&6; }
  5303. else
  5304. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5305. printf "%s\n" "no" >&6; }
  5306. fi
  5307. if test -z "$LCOV"; then
  5308. as_fn_error $? "needs lcov for code coverage" "$LINENO" 5
  5309. fi
  5310. CPPFLAGS="$CPPFLAGS -DNDEBUG"
  5311. CFLAGS="$CLAGS -O0 -g -fprofile-arcs -ftest-coverage"
  5312. LIBS="$LIBS -lgcov"
  5313. fi
  5314. am__api_version='1.16'
  5315. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
  5316. printf %s "checking whether build environment is sane... " >&6; }
  5317. # Reject unsafe characters in $srcdir or the absolute working directory
  5318. # name. Accept space and tab only in the latter.
  5319. am_lf='
  5320. '
  5321. case `pwd` in
  5322. *[\\\"\#\$\&\'\`$am_lf]*)
  5323. as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
  5324. esac
  5325. case $srcdir in
  5326. *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
  5327. as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
  5328. esac
  5329. # Do 'set' in a subshell so we don't clobber the current shell's
  5330. # arguments. Must try -L first in case configure is actually a
  5331. # symlink; some systems play weird games with the mod time of symlinks
  5332. # (eg FreeBSD returns the mod time of the symlink's containing
  5333. # directory).
  5334. if (
  5335. am_has_slept=no
  5336. for am_try in 1 2; do
  5337. echo "timestamp, slept: $am_has_slept" > conftest.file
  5338. set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
  5339. if test "$*" = "X"; then
  5340. # -L didn't work.
  5341. set X `ls -t "$srcdir/configure" conftest.file`
  5342. fi
  5343. if test "$*" != "X $srcdir/configure conftest.file" \
  5344. && test "$*" != "X conftest.file $srcdir/configure"; then
  5345. # If neither matched, then we have a broken ls. This can happen
  5346. # if, for instance, CONFIG_SHELL is bash and it inherits a
  5347. # broken ls alias from the environment. This has actually
  5348. # happened. Such a system could not be considered "sane".
  5349. as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
  5350. alias in your environment" "$LINENO" 5
  5351. fi
  5352. if test "$2" = conftest.file || test $am_try -eq 2; then
  5353. break
  5354. fi
  5355. # Just in case.
  5356. sleep 1
  5357. am_has_slept=yes
  5358. done
  5359. test "$2" = conftest.file
  5360. )
  5361. then
  5362. # Ok.
  5363. :
  5364. else
  5365. as_fn_error $? "newly created file is older than distributed files!
  5366. Check your system clock" "$LINENO" 5
  5367. fi
  5368. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  5369. printf "%s\n" "yes" >&6; }
  5370. # If we didn't sleep, we still need to ensure time stamps of config.status and
  5371. # generated files are strictly newer.
  5372. am_sleep_pid=
  5373. if grep 'slept: no' conftest.file >/dev/null 2>&1; then
  5374. ( sleep 1 ) &
  5375. am_sleep_pid=$!
  5376. fi
  5377. rm -f conftest.file
  5378. test "$program_prefix" != NONE &&
  5379. program_transform_name="s&^&$program_prefix&;$program_transform_name"
  5380. # Use a double $ so make ignores it.
  5381. test "$program_suffix" != NONE &&
  5382. program_transform_name="s&\$&$program_suffix&;$program_transform_name"
  5383. # Double any \ or $.
  5384. # By default was `s,x,x', remove it if useless.
  5385. ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
  5386. program_transform_name=`printf "%s\n" "$program_transform_name" | sed "$ac_script"`
  5387. if test x"${MISSING+set}" != xset; then
  5388. MISSING="\${SHELL} '$am_aux_dir/missing'"
  5389. fi
  5390. # Use eval to expand $SHELL
  5391. if eval "$MISSING --is-lightweight"; then
  5392. am_missing_run="$MISSING "
  5393. else
  5394. am_missing_run=
  5395. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
  5396. printf "%s\n" "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
  5397. fi
  5398. if test x"${install_sh+set}" != xset; then
  5399. case $am_aux_dir in
  5400. *\ * | *\ *)
  5401. install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
  5402. *)
  5403. install_sh="\${SHELL} $am_aux_dir/install-sh"
  5404. esac
  5405. fi
  5406. # Installed binaries are usually stripped using 'strip' when the user
  5407. # run "make install-strip". However 'strip' might not be the right
  5408. # tool to use in cross-compilation environments, therefore Automake
  5409. # will honor the 'STRIP' environment variable to overrule this program.
  5410. if test "$cross_compiling" != no; then
  5411. if test -n "$ac_tool_prefix"; then
  5412. # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
  5413. set dummy ${ac_tool_prefix}strip; ac_word=$2
  5414. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5415. printf %s "checking for $ac_word... " >&6; }
  5416. if test ${ac_cv_prog_STRIP+y}
  5417. then :
  5418. printf %s "(cached) " >&6
  5419. else $as_nop
  5420. if test -n "$STRIP"; then
  5421. ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
  5422. else
  5423. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5424. for as_dir in $PATH
  5425. do
  5426. IFS=$as_save_IFS
  5427. case $as_dir in #(((
  5428. '') as_dir=./ ;;
  5429. */) ;;
  5430. *) as_dir=$as_dir/ ;;
  5431. esac
  5432. for ac_exec_ext in '' $ac_executable_extensions; do
  5433. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  5434. ac_cv_prog_STRIP="${ac_tool_prefix}strip"
  5435. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  5436. break 2
  5437. fi
  5438. done
  5439. done
  5440. IFS=$as_save_IFS
  5441. fi
  5442. fi
  5443. STRIP=$ac_cv_prog_STRIP
  5444. if test -n "$STRIP"; then
  5445. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
  5446. printf "%s\n" "$STRIP" >&6; }
  5447. else
  5448. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5449. printf "%s\n" "no" >&6; }
  5450. fi
  5451. fi
  5452. if test -z "$ac_cv_prog_STRIP"; then
  5453. ac_ct_STRIP=$STRIP
  5454. # Extract the first word of "strip", so it can be a program name with args.
  5455. set dummy strip; ac_word=$2
  5456. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5457. printf %s "checking for $ac_word... " >&6; }
  5458. if test ${ac_cv_prog_ac_ct_STRIP+y}
  5459. then :
  5460. printf %s "(cached) " >&6
  5461. else $as_nop
  5462. if test -n "$ac_ct_STRIP"; then
  5463. ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
  5464. else
  5465. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5466. for as_dir in $PATH
  5467. do
  5468. IFS=$as_save_IFS
  5469. case $as_dir in #(((
  5470. '') as_dir=./ ;;
  5471. */) ;;
  5472. *) as_dir=$as_dir/ ;;
  5473. esac
  5474. for ac_exec_ext in '' $ac_executable_extensions; do
  5475. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  5476. ac_cv_prog_ac_ct_STRIP="strip"
  5477. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  5478. break 2
  5479. fi
  5480. done
  5481. done
  5482. IFS=$as_save_IFS
  5483. fi
  5484. fi
  5485. ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
  5486. if test -n "$ac_ct_STRIP"; then
  5487. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
  5488. printf "%s\n" "$ac_ct_STRIP" >&6; }
  5489. else
  5490. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5491. printf "%s\n" "no" >&6; }
  5492. fi
  5493. if test "x$ac_ct_STRIP" = x; then
  5494. STRIP=":"
  5495. else
  5496. case $cross_compiling:$ac_tool_warned in
  5497. yes:)
  5498. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  5499. printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  5500. ac_tool_warned=yes ;;
  5501. esac
  5502. STRIP=$ac_ct_STRIP
  5503. fi
  5504. else
  5505. STRIP="$ac_cv_prog_STRIP"
  5506. fi
  5507. fi
  5508. INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
  5509. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a race-free mkdir -p" >&5
  5510. printf %s "checking for a race-free mkdir -p... " >&6; }
  5511. if test -z "$MKDIR_P"; then
  5512. if test ${ac_cv_path_mkdir+y}
  5513. then :
  5514. printf %s "(cached) " >&6
  5515. else $as_nop
  5516. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5517. for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
  5518. do
  5519. IFS=$as_save_IFS
  5520. case $as_dir in #(((
  5521. '') as_dir=./ ;;
  5522. */) ;;
  5523. *) as_dir=$as_dir/ ;;
  5524. esac
  5525. for ac_prog in mkdir gmkdir; do
  5526. for ac_exec_ext in '' $ac_executable_extensions; do
  5527. as_fn_executable_p "$as_dir$ac_prog$ac_exec_ext" || continue
  5528. case `"$as_dir$ac_prog$ac_exec_ext" --version 2>&1` in #(
  5529. 'mkdir ('*'coreutils) '* | \
  5530. 'BusyBox '* | \
  5531. 'mkdir (fileutils) '4.1*)
  5532. ac_cv_path_mkdir=$as_dir$ac_prog$ac_exec_ext
  5533. break 3;;
  5534. esac
  5535. done
  5536. done
  5537. done
  5538. IFS=$as_save_IFS
  5539. fi
  5540. test -d ./--version && rmdir ./--version
  5541. if test ${ac_cv_path_mkdir+y}; then
  5542. MKDIR_P="$ac_cv_path_mkdir -p"
  5543. else
  5544. # As a last resort, use the slow shell script. Don't cache a
  5545. # value for MKDIR_P within a source directory, because that will
  5546. # break other packages using the cache if that directory is
  5547. # removed, or if the value is a relative name.
  5548. MKDIR_P="$ac_install_sh -d"
  5549. fi
  5550. fi
  5551. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
  5552. printf "%s\n" "$MKDIR_P" >&6; }
  5553. for ac_prog in gawk mawk nawk awk
  5554. do
  5555. # Extract the first word of "$ac_prog", so it can be a program name with args.
  5556. set dummy $ac_prog; ac_word=$2
  5557. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5558. printf %s "checking for $ac_word... " >&6; }
  5559. if test ${ac_cv_prog_AWK+y}
  5560. then :
  5561. printf %s "(cached) " >&6
  5562. else $as_nop
  5563. if test -n "$AWK"; then
  5564. ac_cv_prog_AWK="$AWK" # Let the user override the test.
  5565. else
  5566. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5567. for as_dir in $PATH
  5568. do
  5569. IFS=$as_save_IFS
  5570. case $as_dir in #(((
  5571. '') as_dir=./ ;;
  5572. */) ;;
  5573. *) as_dir=$as_dir/ ;;
  5574. esac
  5575. for ac_exec_ext in '' $ac_executable_extensions; do
  5576. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  5577. ac_cv_prog_AWK="$ac_prog"
  5578. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  5579. break 2
  5580. fi
  5581. done
  5582. done
  5583. IFS=$as_save_IFS
  5584. fi
  5585. fi
  5586. AWK=$ac_cv_prog_AWK
  5587. if test -n "$AWK"; then
  5588. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
  5589. printf "%s\n" "$AWK" >&6; }
  5590. else
  5591. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5592. printf "%s\n" "no" >&6; }
  5593. fi
  5594. test -n "$AWK" && break
  5595. done
  5596. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
  5597. printf %s "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
  5598. set x ${MAKE-make}
  5599. ac_make=`printf "%s\n" "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
  5600. if eval test \${ac_cv_prog_make_${ac_make}_set+y}
  5601. then :
  5602. printf %s "(cached) " >&6
  5603. else $as_nop
  5604. cat >conftest.make <<\_ACEOF
  5605. SHELL = /bin/sh
  5606. all:
  5607. @echo '@@@%%%=$(MAKE)=@@@%%%'
  5608. _ACEOF
  5609. # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
  5610. case `${MAKE-make} -f conftest.make 2>/dev/null` in
  5611. *@@@%%%=?*=@@@%%%*)
  5612. eval ac_cv_prog_make_${ac_make}_set=yes;;
  5613. *)
  5614. eval ac_cv_prog_make_${ac_make}_set=no;;
  5615. esac
  5616. rm -f conftest.make
  5617. fi
  5618. if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
  5619. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  5620. printf "%s\n" "yes" >&6; }
  5621. SET_MAKE=
  5622. else
  5623. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5624. printf "%s\n" "no" >&6; }
  5625. SET_MAKE="MAKE=${MAKE-make}"
  5626. fi
  5627. rm -rf .tst 2>/dev/null
  5628. mkdir .tst 2>/dev/null
  5629. if test -d .tst; then
  5630. am__leading_dot=.
  5631. else
  5632. am__leading_dot=_
  5633. fi
  5634. rmdir .tst 2>/dev/null
  5635. DEPDIR="${am__leading_dot}deps"
  5636. ac_config_commands="$ac_config_commands depfiles"
  5637. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} supports the include directive" >&5
  5638. printf %s "checking whether ${MAKE-make} supports the include directive... " >&6; }
  5639. cat > confinc.mk << 'END'
  5640. am__doit:
  5641. @echo this is the am__doit target >confinc.out
  5642. .PHONY: am__doit
  5643. END
  5644. am__include="#"
  5645. am__quote=
  5646. # BSD make does it like this.
  5647. echo '.include "confinc.mk" # ignored' > confmf.BSD
  5648. # Other make implementations (GNU, Solaris 10, AIX) do it like this.
  5649. echo 'include confinc.mk # ignored' > confmf.GNU
  5650. _am_result=no
  5651. for s in GNU BSD; do
  5652. { echo "$as_me:$LINENO: ${MAKE-make} -f confmf.$s && cat confinc.out" >&5
  5653. (${MAKE-make} -f confmf.$s && cat confinc.out) >&5 2>&5
  5654. ac_status=$?
  5655. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5656. (exit $ac_status); }
  5657. case $?:`cat confinc.out 2>/dev/null` in #(
  5658. '0:this is the am__doit target') :
  5659. case $s in #(
  5660. BSD) :
  5661. am__include='.include' am__quote='"' ;; #(
  5662. *) :
  5663. am__include='include' am__quote='' ;;
  5664. esac ;; #(
  5665. *) :
  5666. ;;
  5667. esac
  5668. if test "$am__include" != "#"; then
  5669. _am_result="yes ($s style)"
  5670. break
  5671. fi
  5672. done
  5673. rm -f confinc.* confmf.*
  5674. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ${_am_result}" >&5
  5675. printf "%s\n" "${_am_result}" >&6; }
  5676. # Check whether --enable-dependency-tracking was given.
  5677. if test ${enable_dependency_tracking+y}
  5678. then :
  5679. enableval=$enable_dependency_tracking;
  5680. fi
  5681. if test "x$enable_dependency_tracking" != xno; then
  5682. am_depcomp="$ac_aux_dir/depcomp"
  5683. AMDEPBACKSLASH='\'
  5684. am__nodep='_no'
  5685. fi
  5686. if test "x$enable_dependency_tracking" != xno; then
  5687. AMDEP_TRUE=
  5688. AMDEP_FALSE='#'
  5689. else
  5690. AMDEP_TRUE='#'
  5691. AMDEP_FALSE=
  5692. fi
  5693. ## --------------------------------------- ##
  5694. ## Start of automake initialization code ##
  5695. ## --------------------------------------- ##
  5696. if test "`cd $srcdir && pwd`" != "`pwd`"; then
  5697. # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
  5698. # is not polluted with repeated "-I."
  5699. am__isrc=' -I$(srcdir)'
  5700. # test to see if srcdir already configured
  5701. if test -f $srcdir/config.status; then
  5702. as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
  5703. fi
  5704. fi
  5705. # test whether we have cygpath
  5706. if test -z "$CYGPATH_W"; then
  5707. if (cygpath --version) >/dev/null 2>/dev/null; then
  5708. CYGPATH_W='cygpath -w'
  5709. else
  5710. CYGPATH_W=echo
  5711. fi
  5712. fi
  5713. # Define the identity of the package.
  5714. PACKAGE='curl'
  5715. VERSION='-'
  5716. printf "%s\n" "#define PACKAGE \"$PACKAGE\"" >>confdefs.h
  5717. printf "%s\n" "#define VERSION \"$VERSION\"" >>confdefs.h
  5718. # Some tools Automake needs.
  5719. ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
  5720. AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
  5721. AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
  5722. AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
  5723. MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
  5724. # For better backward compatibility. To be removed once Automake 1.9.x
  5725. # dies out for good. For more background, see:
  5726. # <https://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
  5727. # <https://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
  5728. mkdir_p='$(MKDIR_P)'
  5729. # We need awk for the "check" target (and possibly the TAP driver). The
  5730. # system "awk" is bad on some platforms.
  5731. # Always define AMTAR for backward compatibility. Yes, it's still used
  5732. # in the wild :-( We should find a proper way to deprecate it ...
  5733. AMTAR='$${TAR-tar}'
  5734. # We'll loop over all known methods to create a tar archive until one works.
  5735. _am_tools='gnutar pax cpio none'
  5736. am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
  5737. depcc="$CC" am_compiler_list=
  5738. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
  5739. printf %s "checking dependency style of $depcc... " >&6; }
  5740. if test ${am_cv_CC_dependencies_compiler_type+y}
  5741. then :
  5742. printf %s "(cached) " >&6
  5743. else $as_nop
  5744. if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
  5745. # We make a subdir and do the tests there. Otherwise we can end up
  5746. # making bogus files that we don't know about and never remove. For
  5747. # instance it was reported that on HP-UX the gcc test will end up
  5748. # making a dummy file named 'D' -- because '-MD' means "put the output
  5749. # in D".
  5750. rm -rf conftest.dir
  5751. mkdir conftest.dir
  5752. # Copy depcomp to subdir because otherwise we won't find it if we're
  5753. # using a relative directory.
  5754. cp "$am_depcomp" conftest.dir
  5755. cd conftest.dir
  5756. # We will build objects and dependencies in a subdirectory because
  5757. # it helps to detect inapplicable dependency modes. For instance
  5758. # both Tru64's cc and ICC support -MD to output dependencies as a
  5759. # side effect of compilation, but ICC will put the dependencies in
  5760. # the current directory while Tru64 will put them in the object
  5761. # directory.
  5762. mkdir sub
  5763. am_cv_CC_dependencies_compiler_type=none
  5764. if test "$am_compiler_list" = ""; then
  5765. am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
  5766. fi
  5767. am__universal=false
  5768. case " $depcc " in #(
  5769. *\ -arch\ *\ -arch\ *) am__universal=true ;;
  5770. esac
  5771. for depmode in $am_compiler_list; do
  5772. # Setup a source with many dependencies, because some compilers
  5773. # like to wrap large dependency lists on column 80 (with \), and
  5774. # we should not choose a depcomp mode which is confused by this.
  5775. #
  5776. # We need to recreate these files for each test, as the compiler may
  5777. # overwrite some of them when testing with obscure command lines.
  5778. # This happens at least with the AIX C compiler.
  5779. : > sub/conftest.c
  5780. for i in 1 2 3 4 5 6; do
  5781. echo '#include "conftst'$i'.h"' >> sub/conftest.c
  5782. # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
  5783. # Solaris 10 /bin/sh.
  5784. echo '/* dummy */' > sub/conftst$i.h
  5785. done
  5786. echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
  5787. # We check with '-c' and '-o' for the sake of the "dashmstdout"
  5788. # mode. It turns out that the SunPro C++ compiler does not properly
  5789. # handle '-M -o', and we need to detect this. Also, some Intel
  5790. # versions had trouble with output in subdirs.
  5791. am__obj=sub/conftest.${OBJEXT-o}
  5792. am__minus_obj="-o $am__obj"
  5793. case $depmode in
  5794. gcc)
  5795. # This depmode causes a compiler race in universal mode.
  5796. test "$am__universal" = false || continue
  5797. ;;
  5798. nosideeffect)
  5799. # After this tag, mechanisms are not by side-effect, so they'll
  5800. # only be used when explicitly requested.
  5801. if test "x$enable_dependency_tracking" = xyes; then
  5802. continue
  5803. else
  5804. break
  5805. fi
  5806. ;;
  5807. msvc7 | msvc7msys | msvisualcpp | msvcmsys)
  5808. # This compiler won't grok '-c -o', but also, the minuso test has
  5809. # not run yet. These depmodes are late enough in the game, and
  5810. # so weak that their functioning should not be impacted.
  5811. am__obj=conftest.${OBJEXT-o}
  5812. am__minus_obj=
  5813. ;;
  5814. none) break ;;
  5815. esac
  5816. if depmode=$depmode \
  5817. source=sub/conftest.c object=$am__obj \
  5818. depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
  5819. $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
  5820. >/dev/null 2>conftest.err &&
  5821. grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
  5822. grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
  5823. grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
  5824. ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
  5825. # icc doesn't choke on unknown options, it will just issue warnings
  5826. # or remarks (even with -Werror). So we grep stderr for any message
  5827. # that says an option was ignored or not supported.
  5828. # When given -MP, icc 7.0 and 7.1 complain thusly:
  5829. # icc: Command line warning: ignoring option '-M'; no argument required
  5830. # The diagnosis changed in icc 8.0:
  5831. # icc: Command line remark: option '-MP' not supported
  5832. if (grep 'ignoring option' conftest.err ||
  5833. grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
  5834. am_cv_CC_dependencies_compiler_type=$depmode
  5835. break
  5836. fi
  5837. fi
  5838. done
  5839. cd ..
  5840. rm -rf conftest.dir
  5841. else
  5842. am_cv_CC_dependencies_compiler_type=none
  5843. fi
  5844. fi
  5845. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
  5846. printf "%s\n" "$am_cv_CC_dependencies_compiler_type" >&6; }
  5847. CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
  5848. if
  5849. test "x$enable_dependency_tracking" != xno \
  5850. && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
  5851. am__fastdepCC_TRUE=
  5852. am__fastdepCC_FALSE='#'
  5853. else
  5854. am__fastdepCC_TRUE='#'
  5855. am__fastdepCC_FALSE=
  5856. fi
  5857. # Variables for tags utilities; see am/tags.am
  5858. if test -z "$CTAGS"; then
  5859. CTAGS=ctags
  5860. fi
  5861. if test -z "$ETAGS"; then
  5862. ETAGS=etags
  5863. fi
  5864. if test -z "$CSCOPE"; then
  5865. CSCOPE=cscope
  5866. fi
  5867. # POSIX will say in a future version that running "rm -f" with no argument
  5868. # is OK; and we want to be able to make that assumption in our Makefile
  5869. # recipes. So use an aggressive probe to check that the usage we want is
  5870. # actually supported "in the wild" to an acceptable degree.
  5871. # See automake bug#10828.
  5872. # To make any issue more visible, cause the running configure to be aborted
  5873. # by default if the 'rm' program in use doesn't match our expectations; the
  5874. # user can still override this though.
  5875. if rm -f && rm -fr && rm -rf; then : OK; else
  5876. cat >&2 <<'END'
  5877. Oops!
  5878. Your 'rm' program seems unable to run without file operands specified
  5879. on the command line, even when the '-f' option is present. This is contrary
  5880. to the behaviour of most rm programs out there, and not conforming with
  5881. the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
  5882. Please tell [email protected] about your system, including the value
  5883. of your $PATH and any error possibly output before this message. This
  5884. can help us improve future automake versions.
  5885. END
  5886. if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
  5887. echo 'Configuration will proceed anyway, since you have set the' >&2
  5888. echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
  5889. echo >&2
  5890. else
  5891. cat >&2 <<'END'
  5892. Aborting the configuration process, to ensure you take notice of the issue.
  5893. You can download and install GNU coreutils to get an 'rm' implementation
  5894. that behaves properly: <https://www.gnu.org/software/coreutils/>.
  5895. If you want to complete the configuration process using your problematic
  5896. 'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
  5897. to "yes", and re-run configure.
  5898. END
  5899. as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5
  5900. fi
  5901. fi
  5902. ## ------------------------------------- ##
  5903. ## End of automake initialization code ##
  5904. ## ------------------------------------- ##
  5905. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking curl version" >&5
  5906. printf %s "checking curl version... " >&6; }
  5907. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CURLVERSION" >&5
  5908. printf "%s\n" "$CURLVERSION" >&6; }
  5909. VERSIONNUM=`$SED -ne 's/^#define LIBCURL_VERSION_NUM 0x\([0-9A-Fa-f]*\).*/\1/p' ${srcdir}/include/curl/curlver.h`
  5910. PKGADD_PKG="HAXXcurl"
  5911. PKGADD_NAME="curl - a client that groks URLs"
  5912. PKGADD_VENDOR="curl.se"
  5913. curl_ssl_msg="no (--with-{openssl,gnutls,nss,mbedtls,wolfssl,schannel,secure-transport,mesalink,amissl,bearssl,rustls} )"
  5914. curl_ssh_msg="no (--with-{libssh,libssh2})"
  5915. curl_zlib_msg="no (--with-zlib)"
  5916. curl_brotli_msg="no (--with-brotli)"
  5917. curl_zstd_msg="no (--with-zstd)"
  5918. curl_gss_msg="no (--with-gssapi)"
  5919. curl_gsasl_msg="no (--with-gsasl)"
  5920. curl_tls_srp_msg="no (--enable-tls-srp)"
  5921. curl_res_msg="default (--enable-ares / --enable-threaded-resolver)"
  5922. curl_ipv6_msg="no (--enable-ipv6)"
  5923. curl_unix_sockets_msg="no (--enable-unix-sockets)"
  5924. curl_idn_msg="no (--with-{libidn2,winidn})"
  5925. curl_manual_msg="no (--enable-manual)"
  5926. curl_libcurl_msg="enabled (--disable-libcurl-option)"
  5927. curl_verbose_msg="enabled (--disable-verbose)"
  5928. curl_sspi_msg="no (--enable-sspi)"
  5929. curl_ldap_msg="no (--enable-ldap / --with-ldap-lib / --with-lber-lib)"
  5930. curl_ldaps_msg="no (--enable-ldaps)"
  5931. curl_rtsp_msg="no (--enable-rtsp)"
  5932. curl_rtmp_msg="no (--with-librtmp)"
  5933. curl_psl_msg="no (--with-libpsl)"
  5934. curl_altsvc_msg="enabled (--disable-alt-svc)"
  5935. curl_hsts_msg="enabled (--disable-hsts)"
  5936. ssl_backends=
  5937. curl_h1_msg="enabled (internal)"
  5938. curl_h2_msg="no (--with-nghttp2, --with-hyper)"
  5939. curl_h3_msg="no (--with-ngtcp2, --with-quiche)"
  5940. enable_altsvc="yes"
  5941. hsts="yes"
  5942. INITIAL_LDFLAGS=$LDFLAGS
  5943. INITIAL_LIBS=$LIBS
  5944. OPT_SCHANNEL=no
  5945. # Check whether --with-schannel was given.
  5946. if test ${with_schannel+y}
  5947. then :
  5948. withval=$with_schannel; OPT_SCHANNEL=$withval
  5949. TLSCHOICE="schannel"
  5950. fi
  5951. OPT_SECURETRANSPORT=no
  5952. # Check whether --with-secure-transport was given.
  5953. if test ${with_secure_transport+y}
  5954. then :
  5955. withval=$with_secure_transport; OPT_SECURETRANSPORT=$withval
  5956. test -z "TLSCHOICE" || TLSCHOICE="${TLSCHOICE:+$TLSCHOICE
  5957. else $as_nop
  5958. }Secure-Transport"
  5959. fi
  5960. OPT_AMISSL=no
  5961. # Check whether --with-amissl was given.
  5962. if test ${with_amissl+y}
  5963. then :
  5964. withval=$with_amissl; OPT_AMISSL=$withval
  5965. test -z "TLSCHOICE" || TLSCHOICE="${TLSCHOICE:+$TLSCHOICE
  5966. else $as_nop
  5967. }AmiSSL"
  5968. fi
  5969. OPT_OPENSSL=no
  5970. ca="no"
  5971. # Check whether --with-ssl was given.
  5972. if test ${with_ssl+y}
  5973. then :
  5974. withval=$with_ssl; OPT_SSL=$withval
  5975. OPT_OPENSSL=$withval
  5976. test -z "TLSCHOICE" || TLSCHOICE="${TLSCHOICE:+$TLSCHOICE
  5977. else $as_nop
  5978. }OpenSSL"
  5979. fi
  5980. # Check whether --with-openssl was given.
  5981. if test ${with_openssl+y}
  5982. then :
  5983. withval=$with_openssl; OPT_OPENSSL=$withval
  5984. test -z "TLSCHOICE" || TLSCHOICE="${TLSCHOICE:+$TLSCHOICE
  5985. else $as_nop
  5986. }OpenSSL"
  5987. fi
  5988. OPT_GNUTLS=no
  5989. # Check whether --with-gnutls was given.
  5990. if test ${with_gnutls+y}
  5991. then :
  5992. withval=$with_gnutls; OPT_GNUTLS=$withval
  5993. test -z "TLSCHOICE" || TLSCHOICE="${TLSCHOICE:+$TLSCHOICE
  5994. else $as_nop
  5995. }GnuTLS"
  5996. fi
  5997. OPT_MBEDTLS=no
  5998. # Check whether --with-mbedtls was given.
  5999. if test ${with_mbedtls+y}
  6000. then :
  6001. withval=$with_mbedtls; OPT_MBEDTLS=$withval
  6002. test -z "TLSCHOICE" || TLSCHOICE="${TLSCHOICE:+$TLSCHOICE
  6003. else $as_nop
  6004. }mbedTLS"
  6005. fi
  6006. OPT_WOLFSSL=no
  6007. # Check whether --with-wolfssl was given.
  6008. if test ${with_wolfssl+y}
  6009. then :
  6010. withval=$with_wolfssl; OPT_WOLFSSL=$withval
  6011. test -z "TLSCHOICE" || TLSCHOICE="${TLSCHOICE:+$TLSCHOICE
  6012. else $as_nop
  6013. }wolfSSL"
  6014. fi
  6015. OPT_MESALINK=no
  6016. # Check whether --with-mesalink was given.
  6017. if test ${with_mesalink+y}
  6018. then :
  6019. withval=$with_mesalink; OPT_MESALINK=$withval
  6020. test -z "TLSCHOICE" || TLSCHOICE="${TLSCHOICE:+$TLSCHOICE
  6021. else $as_nop
  6022. }MesaLink"
  6023. fi
  6024. OPT_BEARSSL=no
  6025. # Check whether --with-bearssl was given.
  6026. if test ${with_bearssl+y}
  6027. then :
  6028. withval=$with_bearssl; OPT_BEARSSL=$withval
  6029. test -z "TLSCHOICE" || TLSCHOICE="${TLSCHOICE:+$TLSCHOICE
  6030. else $as_nop
  6031. }BearSSL"
  6032. fi
  6033. OPT_RUSTLS=no
  6034. # Check whether --with-rustls was given.
  6035. if test ${with_rustls+y}
  6036. then :
  6037. withval=$with_rustls; OPT_RUSTLS=$withval
  6038. test -z "TLSCHOICE" || TLSCHOICE="${TLSCHOICE:+$TLSCHOICE
  6039. else $as_nop
  6040. }rustls"
  6041. fi
  6042. OPT_NSS=no
  6043. # Check whether --with-nss was given.
  6044. if test ${with_nss+y}
  6045. then :
  6046. withval=$with_nss; OPT_NSS=$withval
  6047. test -z "TLSCHOICE" || TLSCHOICE="${TLSCHOICE:+$TLSCHOICE
  6048. else $as_nop
  6049. }NSS"
  6050. fi
  6051. if test -z "$TLSCHOICE"; then
  6052. if test "x$OPT_SSL" != "xno"; then
  6053. as_fn_error $? "select TLS backend(s) or disable TLS with --without-ssl.
  6054. Select from these:
  6055. --with-amissl
  6056. --with-bearssl
  6057. --with-gnutls
  6058. --with-mbedtls
  6059. --with-mesalink
  6060. --with-nss
  6061. --with-openssl (also works for BoringSSL and libressl)
  6062. --with-rustls
  6063. --with-schannel
  6064. --with-secure-transport
  6065. --with-wolfssl
  6066. " "$LINENO" 5
  6067. fi
  6068. fi
  6069. # Check whether --with-darwinssl was given.
  6070. if test ${with_darwinssl+y}
  6071. then :
  6072. withval=$with_darwinssl; as_fn_error $? "--with-darwin-ssl no longer works!" "$LINENO" 5
  6073. fi
  6074. # Make sure we can run config.sub.
  6075. $SHELL "${ac_aux_dir}config.sub" sun4 >/dev/null 2>&1 ||
  6076. as_fn_error $? "cannot run $SHELL ${ac_aux_dir}config.sub" "$LINENO" 5
  6077. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
  6078. printf %s "checking build system type... " >&6; }
  6079. if test ${ac_cv_build+y}
  6080. then :
  6081. printf %s "(cached) " >&6
  6082. else $as_nop
  6083. ac_build_alias=$build_alias
  6084. test "x$ac_build_alias" = x &&
  6085. ac_build_alias=`$SHELL "${ac_aux_dir}config.guess"`
  6086. test "x$ac_build_alias" = x &&
  6087. as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
  6088. ac_cv_build=`$SHELL "${ac_aux_dir}config.sub" $ac_build_alias` ||
  6089. as_fn_error $? "$SHELL ${ac_aux_dir}config.sub $ac_build_alias failed" "$LINENO" 5
  6090. fi
  6091. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
  6092. printf "%s\n" "$ac_cv_build" >&6; }
  6093. case $ac_cv_build in
  6094. *-*-*) ;;
  6095. *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
  6096. esac
  6097. build=$ac_cv_build
  6098. ac_save_IFS=$IFS; IFS='-'
  6099. set x $ac_cv_build
  6100. shift
  6101. build_cpu=$1
  6102. build_vendor=$2
  6103. shift; shift
  6104. # Remember, the first character of IFS is used to create $*,
  6105. # except with old shells:
  6106. build_os=$*
  6107. IFS=$ac_save_IFS
  6108. case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
  6109. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
  6110. printf %s "checking host system type... " >&6; }
  6111. if test ${ac_cv_host+y}
  6112. then :
  6113. printf %s "(cached) " >&6
  6114. else $as_nop
  6115. if test "x$host_alias" = x; then
  6116. ac_cv_host=$ac_cv_build
  6117. else
  6118. ac_cv_host=`$SHELL "${ac_aux_dir}config.sub" $host_alias` ||
  6119. as_fn_error $? "$SHELL ${ac_aux_dir}config.sub $host_alias failed" "$LINENO" 5
  6120. fi
  6121. fi
  6122. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
  6123. printf "%s\n" "$ac_cv_host" >&6; }
  6124. case $ac_cv_host in
  6125. *-*-*) ;;
  6126. *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
  6127. esac
  6128. host=$ac_cv_host
  6129. ac_save_IFS=$IFS; IFS='-'
  6130. set x $ac_cv_host
  6131. shift
  6132. host_cpu=$1
  6133. host_vendor=$2
  6134. shift; shift
  6135. # Remember, the first character of IFS is used to create $*,
  6136. # except with old shells:
  6137. host_os=$*
  6138. IFS=$ac_save_IFS
  6139. case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
  6140. printf "%s\n" "#define OS \"${host}\"" >>confdefs.h
  6141. # Silence warning: ar: 'u' modifier ignored since 'D' is the default
  6142. AR_FLAGS=cr
  6143. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
  6144. printf %s "checking for grep that handles long lines and -e... " >&6; }
  6145. if test ${ac_cv_path_GREP+y}
  6146. then :
  6147. printf %s "(cached) " >&6
  6148. else $as_nop
  6149. if test -z "$GREP"; then
  6150. ac_path_GREP_found=false
  6151. # Loop through the user's path and test for each of PROGNAME-LIST
  6152. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6153. for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
  6154. do
  6155. IFS=$as_save_IFS
  6156. case $as_dir in #(((
  6157. '') as_dir=./ ;;
  6158. */) ;;
  6159. *) as_dir=$as_dir/ ;;
  6160. esac
  6161. for ac_prog in grep ggrep
  6162. do
  6163. for ac_exec_ext in '' $ac_executable_extensions; do
  6164. ac_path_GREP="$as_dir$ac_prog$ac_exec_ext"
  6165. as_fn_executable_p "$ac_path_GREP" || continue
  6166. # Check for GNU ac_path_GREP and select it if it is found.
  6167. # Check for GNU $ac_path_GREP
  6168. case `"$ac_path_GREP" --version 2>&1` in
  6169. *GNU*)
  6170. ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
  6171. *)
  6172. ac_count=0
  6173. printf %s 0123456789 >"conftest.in"
  6174. while :
  6175. do
  6176. cat "conftest.in" "conftest.in" >"conftest.tmp"
  6177. mv "conftest.tmp" "conftest.in"
  6178. cp "conftest.in" "conftest.nl"
  6179. printf "%s\n" 'GREP' >> "conftest.nl"
  6180. "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
  6181. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  6182. as_fn_arith $ac_count + 1 && ac_count=$as_val
  6183. if test $ac_count -gt ${ac_path_GREP_max-0}; then
  6184. # Best one so far, save it but keep looking for a better one
  6185. ac_cv_path_GREP="$ac_path_GREP"
  6186. ac_path_GREP_max=$ac_count
  6187. fi
  6188. # 10*(2^10) chars as input seems more than enough
  6189. test $ac_count -gt 10 && break
  6190. done
  6191. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  6192. esac
  6193. $ac_path_GREP_found && break 3
  6194. done
  6195. done
  6196. done
  6197. IFS=$as_save_IFS
  6198. if test -z "$ac_cv_path_GREP"; then
  6199. as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
  6200. fi
  6201. else
  6202. ac_cv_path_GREP=$GREP
  6203. fi
  6204. fi
  6205. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
  6206. printf "%s\n" "$ac_cv_path_GREP" >&6; }
  6207. GREP="$ac_cv_path_GREP"
  6208. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
  6209. printf %s "checking for egrep... " >&6; }
  6210. if test ${ac_cv_path_EGREP+y}
  6211. then :
  6212. printf %s "(cached) " >&6
  6213. else $as_nop
  6214. if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
  6215. then ac_cv_path_EGREP="$GREP -E"
  6216. else
  6217. if test -z "$EGREP"; then
  6218. ac_path_EGREP_found=false
  6219. # Loop through the user's path and test for each of PROGNAME-LIST
  6220. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6221. for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
  6222. do
  6223. IFS=$as_save_IFS
  6224. case $as_dir in #(((
  6225. '') as_dir=./ ;;
  6226. */) ;;
  6227. *) as_dir=$as_dir/ ;;
  6228. esac
  6229. for ac_prog in egrep
  6230. do
  6231. for ac_exec_ext in '' $ac_executable_extensions; do
  6232. ac_path_EGREP="$as_dir$ac_prog$ac_exec_ext"
  6233. as_fn_executable_p "$ac_path_EGREP" || continue
  6234. # Check for GNU ac_path_EGREP and select it if it is found.
  6235. # Check for GNU $ac_path_EGREP
  6236. case `"$ac_path_EGREP" --version 2>&1` in
  6237. *GNU*)
  6238. ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
  6239. *)
  6240. ac_count=0
  6241. printf %s 0123456789 >"conftest.in"
  6242. while :
  6243. do
  6244. cat "conftest.in" "conftest.in" >"conftest.tmp"
  6245. mv "conftest.tmp" "conftest.in"
  6246. cp "conftest.in" "conftest.nl"
  6247. printf "%s\n" 'EGREP' >> "conftest.nl"
  6248. "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
  6249. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  6250. as_fn_arith $ac_count + 1 && ac_count=$as_val
  6251. if test $ac_count -gt ${ac_path_EGREP_max-0}; then
  6252. # Best one so far, save it but keep looking for a better one
  6253. ac_cv_path_EGREP="$ac_path_EGREP"
  6254. ac_path_EGREP_max=$ac_count
  6255. fi
  6256. # 10*(2^10) chars as input seems more than enough
  6257. test $ac_count -gt 10 && break
  6258. done
  6259. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  6260. esac
  6261. $ac_path_EGREP_found && break 3
  6262. done
  6263. done
  6264. done
  6265. IFS=$as_save_IFS
  6266. if test -z "$ac_cv_path_EGREP"; then
  6267. as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
  6268. fi
  6269. else
  6270. ac_cv_path_EGREP=$EGREP
  6271. fi
  6272. fi
  6273. fi
  6274. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
  6275. printf "%s\n" "$ac_cv_path_EGREP" >&6; }
  6276. EGREP="$ac_cv_path_EGREP"
  6277. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if OS is AIX (to define _ALL_SOURCE)" >&5
  6278. printf %s "checking if OS is AIX (to define _ALL_SOURCE)... " >&6; }
  6279. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6280. /* end confdefs.h. */
  6281. #ifdef _AIX
  6282. yes_this_is_aix
  6283. #endif
  6284. _ACEOF
  6285. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  6286. $EGREP "yes_this_is_aix" >/dev/null 2>&1
  6287. then :
  6288. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  6289. printf "%s\n" "yes" >&6; }
  6290. printf "%s\n" "#define _ALL_SOURCE 1" >>confdefs.h
  6291. else $as_nop
  6292. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6293. printf "%s\n" "no" >&6; }
  6294. fi
  6295. rm -rf conftest*
  6296. #
  6297. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if _THREAD_SAFE is already defined" >&5
  6298. printf %s "checking if _THREAD_SAFE is already defined... " >&6; }
  6299. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6300. /* end confdefs.h. */
  6301. int main (void)
  6302. {
  6303. #ifdef _THREAD_SAFE
  6304. int dummy=1;
  6305. #else
  6306. force compilation error
  6307. #endif
  6308. ;
  6309. return 0;
  6310. }
  6311. _ACEOF
  6312. if ac_fn_c_try_compile "$LINENO"
  6313. then :
  6314. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  6315. printf "%s\n" "yes" >&6; }
  6316. tmp_thread_safe_initially_defined="yes"
  6317. else $as_nop
  6318. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6319. printf "%s\n" "no" >&6; }
  6320. tmp_thread_safe_initially_defined="no"
  6321. fi
  6322. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  6323. #
  6324. if test "$tmp_thread_safe_initially_defined" = "no"; then
  6325. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if _THREAD_SAFE is actually needed" >&5
  6326. printf %s "checking if _THREAD_SAFE is actually needed... " >&6; }
  6327. case $host_os in
  6328. aix[123].* | aix4.[012].*)
  6329. tmp_need_thread_safe="no"
  6330. ;;
  6331. aix*)
  6332. tmp_need_thread_safe="yes"
  6333. ;;
  6334. *)
  6335. tmp_need_thread_safe="no"
  6336. ;;
  6337. esac
  6338. if test "$tmp_need_thread_safe" = "yes"; then
  6339. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  6340. printf "%s\n" "yes" >&6; }
  6341. else
  6342. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6343. printf "%s\n" "no" >&6; }
  6344. fi
  6345. fi
  6346. #
  6347. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if _THREAD_SAFE is onwards defined" >&5
  6348. printf %s "checking if _THREAD_SAFE is onwards defined... " >&6; }
  6349. if test "$tmp_thread_safe_initially_defined" = "yes" ||
  6350. test "$tmp_need_thread_safe" = "yes"; then
  6351. printf "%s\n" "#define NEED_THREAD_SAFE 1" >>confdefs.h
  6352. cat >>confdefs.h <<_EOF
  6353. #ifndef _THREAD_SAFE
  6354. # define _THREAD_SAFE
  6355. #endif
  6356. _EOF
  6357. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  6358. printf "%s\n" "yes" >&6; }
  6359. else
  6360. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6361. printf "%s\n" "no" >&6; }
  6362. fi
  6363. #
  6364. #
  6365. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if _REENTRANT is already defined" >&5
  6366. printf %s "checking if _REENTRANT is already defined... " >&6; }
  6367. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6368. /* end confdefs.h. */
  6369. int main (void)
  6370. {
  6371. #ifdef _REENTRANT
  6372. int dummy=1;
  6373. #else
  6374. force compilation error
  6375. #endif
  6376. ;
  6377. return 0;
  6378. }
  6379. _ACEOF
  6380. if ac_fn_c_try_compile "$LINENO"
  6381. then :
  6382. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  6383. printf "%s\n" "yes" >&6; }
  6384. tmp_reentrant_initially_defined="yes"
  6385. else $as_nop
  6386. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6387. printf "%s\n" "no" >&6; }
  6388. tmp_reentrant_initially_defined="no"
  6389. fi
  6390. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  6391. #
  6392. if test "$tmp_reentrant_initially_defined" = "no"; then
  6393. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if _REENTRANT is actually needed" >&5
  6394. printf %s "checking if _REENTRANT is actually needed... " >&6; }
  6395. case $host_os in
  6396. solaris*)
  6397. tmp_need_reentrant="yes"
  6398. ;;
  6399. *)
  6400. tmp_need_reentrant="no"
  6401. ;;
  6402. esac
  6403. if test "$tmp_need_reentrant" = "no"; then
  6404. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6405. /* end confdefs.h. */
  6406. #include <errno.h>
  6407. int main (void)
  6408. {
  6409. if(0 != errno)
  6410. return 1;
  6411. ;
  6412. return 0;
  6413. }
  6414. _ACEOF
  6415. if ac_fn_c_try_compile "$LINENO"
  6416. then :
  6417. tmp_errno="yes"
  6418. else $as_nop
  6419. tmp_errno="no"
  6420. fi
  6421. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  6422. if test "$tmp_errno" = "yes"; then
  6423. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6424. /* end confdefs.h. */
  6425. #include <errno.h>
  6426. int main (void)
  6427. {
  6428. #ifdef errno
  6429. int dummy=1;
  6430. #else
  6431. force compilation error
  6432. #endif
  6433. ;
  6434. return 0;
  6435. }
  6436. _ACEOF
  6437. if ac_fn_c_try_compile "$LINENO"
  6438. then :
  6439. tmp_errno="errno_macro_defined"
  6440. else $as_nop
  6441. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6442. /* end confdefs.h. */
  6443. #define _REENTRANT
  6444. #include <errno.h>
  6445. int main (void)
  6446. {
  6447. #ifdef errno
  6448. int dummy=1;
  6449. #else
  6450. force compilation error
  6451. #endif
  6452. ;
  6453. return 0;
  6454. }
  6455. _ACEOF
  6456. if ac_fn_c_try_compile "$LINENO"
  6457. then :
  6458. tmp_errno="errno_macro_needs_reentrant"
  6459. tmp_need_reentrant="yes"
  6460. fi
  6461. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  6462. fi
  6463. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  6464. fi
  6465. fi
  6466. if test "$tmp_need_reentrant" = "no"; then
  6467. if test "$tmp_need_reentrant" = "no"; then
  6468. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6469. /* end confdefs.h. */
  6470. #define gmtime_r innocuous_gmtime_r
  6471. #ifdef __STDC__
  6472. # include <limits.h>
  6473. #else
  6474. # include <assert.h>
  6475. #endif
  6476. #undef gmtime_r
  6477. #ifdef __cplusplus
  6478. extern "C"
  6479. #endif
  6480. char gmtime_r ();
  6481. #if defined __stub_gmtime_r || defined __stub___gmtime_r
  6482. choke me
  6483. #endif
  6484. int main (void)
  6485. {
  6486. return gmtime_r ();
  6487. ;
  6488. return 0;
  6489. }
  6490. _ACEOF
  6491. if ac_fn_c_try_link "$LINENO"
  6492. then :
  6493. tmp_gmtime_r="yes"
  6494. else $as_nop
  6495. tmp_gmtime_r="no"
  6496. fi
  6497. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  6498. conftest$ac_exeext conftest.$ac_ext
  6499. if test "$tmp_gmtime_r" = "yes"; then
  6500. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6501. /* end confdefs.h. */
  6502. #include <sys/types.h>
  6503. #include <time.h>
  6504. _ACEOF
  6505. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  6506. $EGREP "gmtime_r" >/dev/null 2>&1
  6507. then :
  6508. tmp_gmtime_r="proto_declared"
  6509. else $as_nop
  6510. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6511. /* end confdefs.h. */
  6512. #define _REENTRANT
  6513. #include <sys/types.h>
  6514. #include <time.h>
  6515. _ACEOF
  6516. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  6517. $EGREP "gmtime_r" >/dev/null 2>&1
  6518. then :
  6519. tmp_gmtime_r="proto_needs_reentrant"
  6520. tmp_need_reentrant="yes"
  6521. fi
  6522. rm -rf conftest*
  6523. fi
  6524. rm -rf conftest*
  6525. fi
  6526. fi
  6527. if test "$tmp_need_reentrant" = "no"; then
  6528. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6529. /* end confdefs.h. */
  6530. #define localtime_r innocuous_localtime_r
  6531. #ifdef __STDC__
  6532. # include <limits.h>
  6533. #else
  6534. # include <assert.h>
  6535. #endif
  6536. #undef localtime_r
  6537. #ifdef __cplusplus
  6538. extern "C"
  6539. #endif
  6540. char localtime_r ();
  6541. #if defined __stub_localtime_r || defined __stub___localtime_r
  6542. choke me
  6543. #endif
  6544. int main (void)
  6545. {
  6546. return localtime_r ();
  6547. ;
  6548. return 0;
  6549. }
  6550. _ACEOF
  6551. if ac_fn_c_try_link "$LINENO"
  6552. then :
  6553. tmp_localtime_r="yes"
  6554. else $as_nop
  6555. tmp_localtime_r="no"
  6556. fi
  6557. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  6558. conftest$ac_exeext conftest.$ac_ext
  6559. if test "$tmp_localtime_r" = "yes"; then
  6560. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6561. /* end confdefs.h. */
  6562. #include <sys/types.h>
  6563. #include <time.h>
  6564. _ACEOF
  6565. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  6566. $EGREP "localtime_r" >/dev/null 2>&1
  6567. then :
  6568. tmp_localtime_r="proto_declared"
  6569. else $as_nop
  6570. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6571. /* end confdefs.h. */
  6572. #define _REENTRANT
  6573. #include <sys/types.h>
  6574. #include <time.h>
  6575. _ACEOF
  6576. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  6577. $EGREP "localtime_r" >/dev/null 2>&1
  6578. then :
  6579. tmp_localtime_r="proto_needs_reentrant"
  6580. tmp_need_reentrant="yes"
  6581. fi
  6582. rm -rf conftest*
  6583. fi
  6584. rm -rf conftest*
  6585. fi
  6586. fi
  6587. if test "$tmp_need_reentrant" = "no"; then
  6588. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6589. /* end confdefs.h. */
  6590. #define strerror_r innocuous_strerror_r
  6591. #ifdef __STDC__
  6592. # include <limits.h>
  6593. #else
  6594. # include <assert.h>
  6595. #endif
  6596. #undef strerror_r
  6597. #ifdef __cplusplus
  6598. extern "C"
  6599. #endif
  6600. char strerror_r ();
  6601. #if defined __stub_strerror_r || defined __stub___strerror_r
  6602. choke me
  6603. #endif
  6604. int main (void)
  6605. {
  6606. return strerror_r ();
  6607. ;
  6608. return 0;
  6609. }
  6610. _ACEOF
  6611. if ac_fn_c_try_link "$LINENO"
  6612. then :
  6613. tmp_strerror_r="yes"
  6614. else $as_nop
  6615. tmp_strerror_r="no"
  6616. fi
  6617. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  6618. conftest$ac_exeext conftest.$ac_ext
  6619. if test "$tmp_strerror_r" = "yes"; then
  6620. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6621. /* end confdefs.h. */
  6622. #include <sys/types.h>
  6623. #include <string.h>
  6624. _ACEOF
  6625. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  6626. $EGREP "strerror_r" >/dev/null 2>&1
  6627. then :
  6628. tmp_strerror_r="proto_declared"
  6629. else $as_nop
  6630. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6631. /* end confdefs.h. */
  6632. #define _REENTRANT
  6633. #include <sys/types.h>
  6634. #include <string.h>
  6635. _ACEOF
  6636. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  6637. $EGREP "strerror_r" >/dev/null 2>&1
  6638. then :
  6639. tmp_strerror_r="proto_needs_reentrant"
  6640. tmp_need_reentrant="yes"
  6641. fi
  6642. rm -rf conftest*
  6643. fi
  6644. rm -rf conftest*
  6645. fi
  6646. fi
  6647. if test "$tmp_need_reentrant" = "no"; then
  6648. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6649. /* end confdefs.h. */
  6650. #define strtok_r innocuous_strtok_r
  6651. #ifdef __STDC__
  6652. # include <limits.h>
  6653. #else
  6654. # include <assert.h>
  6655. #endif
  6656. #undef strtok_r
  6657. #ifdef __cplusplus
  6658. extern "C"
  6659. #endif
  6660. char strtok_r ();
  6661. #if defined __stub_strtok_r || defined __stub___strtok_r
  6662. choke me
  6663. #endif
  6664. int main (void)
  6665. {
  6666. return strtok_r ();
  6667. ;
  6668. return 0;
  6669. }
  6670. _ACEOF
  6671. if ac_fn_c_try_link "$LINENO"
  6672. then :
  6673. tmp_strtok_r="yes"
  6674. else $as_nop
  6675. tmp_strtok_r="no"
  6676. fi
  6677. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  6678. conftest$ac_exeext conftest.$ac_ext
  6679. if test "$tmp_strtok_r" = "yes"; then
  6680. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6681. /* end confdefs.h. */
  6682. #include <sys/types.h>
  6683. #include <string.h>
  6684. _ACEOF
  6685. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  6686. $EGREP "strtok_r" >/dev/null 2>&1
  6687. then :
  6688. tmp_strtok_r="proto_declared"
  6689. else $as_nop
  6690. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6691. /* end confdefs.h. */
  6692. #define _REENTRANT
  6693. #include <sys/types.h>
  6694. #include <string.h>
  6695. _ACEOF
  6696. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  6697. $EGREP "strtok_r" >/dev/null 2>&1
  6698. then :
  6699. tmp_strtok_r="proto_needs_reentrant"
  6700. tmp_need_reentrant="yes"
  6701. fi
  6702. rm -rf conftest*
  6703. fi
  6704. rm -rf conftest*
  6705. fi
  6706. fi
  6707. if test "$tmp_need_reentrant" = "no"; then
  6708. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6709. /* end confdefs.h. */
  6710. #define gethostbyname_r innocuous_gethostbyname_r
  6711. #ifdef __STDC__
  6712. # include <limits.h>
  6713. #else
  6714. # include <assert.h>
  6715. #endif
  6716. #undef gethostbyname_r
  6717. #ifdef __cplusplus
  6718. extern "C"
  6719. #endif
  6720. char gethostbyname_r ();
  6721. #if defined __stub_gethostbyname_r || defined __stub___gethostbyname_r
  6722. choke me
  6723. #endif
  6724. int main (void)
  6725. {
  6726. return gethostbyname_r ();
  6727. ;
  6728. return 0;
  6729. }
  6730. _ACEOF
  6731. if ac_fn_c_try_link "$LINENO"
  6732. then :
  6733. tmp_gethostbyname_r="yes"
  6734. else $as_nop
  6735. tmp_gethostbyname_r="no"
  6736. fi
  6737. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  6738. conftest$ac_exeext conftest.$ac_ext
  6739. if test "$tmp_gethostbyname_r" = "yes"; then
  6740. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6741. /* end confdefs.h. */
  6742. #include <sys/types.h>
  6743. #include <netdb.h>
  6744. _ACEOF
  6745. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  6746. $EGREP "gethostbyname_r" >/dev/null 2>&1
  6747. then :
  6748. tmp_gethostbyname_r="proto_declared"
  6749. else $as_nop
  6750. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6751. /* end confdefs.h. */
  6752. #define _REENTRANT
  6753. #include <sys/types.h>
  6754. #include <netdb.h>
  6755. _ACEOF
  6756. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  6757. $EGREP "gethostbyname_r" >/dev/null 2>&1
  6758. then :
  6759. tmp_gethostbyname_r="proto_needs_reentrant"
  6760. tmp_need_reentrant="yes"
  6761. fi
  6762. rm -rf conftest*
  6763. fi
  6764. rm -rf conftest*
  6765. fi
  6766. fi
  6767. if test "$tmp_need_reentrant" = "no"; then
  6768. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6769. /* end confdefs.h. */
  6770. #define getprotobyname_r innocuous_getprotobyname_r
  6771. #ifdef __STDC__
  6772. # include <limits.h>
  6773. #else
  6774. # include <assert.h>
  6775. #endif
  6776. #undef getprotobyname_r
  6777. #ifdef __cplusplus
  6778. extern "C"
  6779. #endif
  6780. char getprotobyname_r ();
  6781. #if defined __stub_getprotobyname_r || defined __stub___getprotobyname_r
  6782. choke me
  6783. #endif
  6784. int main (void)
  6785. {
  6786. return getprotobyname_r ();
  6787. ;
  6788. return 0;
  6789. }
  6790. _ACEOF
  6791. if ac_fn_c_try_link "$LINENO"
  6792. then :
  6793. tmp_getprotobyname_r="yes"
  6794. else $as_nop
  6795. tmp_getprotobyname_r="no"
  6796. fi
  6797. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  6798. conftest$ac_exeext conftest.$ac_ext
  6799. if test "$tmp_getprotobyname_r" = "yes"; then
  6800. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6801. /* end confdefs.h. */
  6802. #include <sys/types.h>
  6803. #include <netdb.h>
  6804. _ACEOF
  6805. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  6806. $EGREP "getprotobyname_r" >/dev/null 2>&1
  6807. then :
  6808. tmp_getprotobyname_r="proto_declared"
  6809. else $as_nop
  6810. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6811. /* end confdefs.h. */
  6812. #define _REENTRANT
  6813. #include <sys/types.h>
  6814. #include <netdb.h>
  6815. _ACEOF
  6816. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  6817. $EGREP "getprotobyname_r" >/dev/null 2>&1
  6818. then :
  6819. tmp_getprotobyname_r="proto_needs_reentrant"
  6820. tmp_need_reentrant="yes"
  6821. fi
  6822. rm -rf conftest*
  6823. fi
  6824. rm -rf conftest*
  6825. fi
  6826. fi
  6827. fi
  6828. if test "$tmp_need_reentrant" = "yes"; then
  6829. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  6830. printf "%s\n" "yes" >&6; }
  6831. else
  6832. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6833. printf "%s\n" "no" >&6; }
  6834. fi
  6835. fi
  6836. #
  6837. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if _REENTRANT is onwards defined" >&5
  6838. printf %s "checking if _REENTRANT is onwards defined... " >&6; }
  6839. if test "$tmp_reentrant_initially_defined" = "yes" ||
  6840. test "$tmp_need_reentrant" = "yes"; then
  6841. printf "%s\n" "#define NEED_REENTRANT 1" >>confdefs.h
  6842. cat >>confdefs.h <<_EOF
  6843. #ifndef _REENTRANT
  6844. # define _REENTRANT
  6845. #endif
  6846. _EOF
  6847. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  6848. printf "%s\n" "yes" >&6; }
  6849. else
  6850. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6851. printf "%s\n" "no" >&6; }
  6852. fi
  6853. #
  6854. # Check whether --enable-largefile was given.
  6855. if test ${enable_largefile+y}
  6856. then :
  6857. enableval=$enable_largefile;
  6858. fi
  6859. if test "$enable_largefile" != no; then
  6860. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
  6861. printf %s "checking for special C compiler options needed for large files... " >&6; }
  6862. if test ${ac_cv_sys_largefile_CC+y}
  6863. then :
  6864. printf %s "(cached) " >&6
  6865. else $as_nop
  6866. ac_cv_sys_largefile_CC=no
  6867. if test "$GCC" != yes; then
  6868. ac_save_CC=$CC
  6869. while :; do
  6870. # IRIX 6.2 and later do not support large files by default,
  6871. # so use the C compiler's -n32 option if that helps.
  6872. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6873. /* end confdefs.h. */
  6874. #include <sys/types.h>
  6875. /* Check that off_t can represent 2**63 - 1 correctly.
  6876. We can't simply define LARGE_OFF_T to be 9223372036854775807,
  6877. since some C++ compilers masquerading as C compilers
  6878. incorrectly reject 9223372036854775807. */
  6879. #define LARGE_OFF_T (((off_t) 1 << 31 << 31) - 1 + ((off_t) 1 << 31 << 31))
  6880. int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
  6881. && LARGE_OFF_T % 2147483647 == 1)
  6882. ? 1 : -1];
  6883. int main (void)
  6884. {
  6885. ;
  6886. return 0;
  6887. }
  6888. _ACEOF
  6889. if ac_fn_c_try_compile "$LINENO"
  6890. then :
  6891. break
  6892. fi
  6893. rm -f core conftest.err conftest.$ac_objext conftest.beam
  6894. CC="$CC -n32"
  6895. if ac_fn_c_try_compile "$LINENO"
  6896. then :
  6897. ac_cv_sys_largefile_CC=' -n32'; break
  6898. fi
  6899. rm -f core conftest.err conftest.$ac_objext conftest.beam
  6900. break
  6901. done
  6902. CC=$ac_save_CC
  6903. rm -f conftest.$ac_ext
  6904. fi
  6905. fi
  6906. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
  6907. printf "%s\n" "$ac_cv_sys_largefile_CC" >&6; }
  6908. if test "$ac_cv_sys_largefile_CC" != no; then
  6909. CC=$CC$ac_cv_sys_largefile_CC
  6910. fi
  6911. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
  6912. printf %s "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
  6913. if test ${ac_cv_sys_file_offset_bits+y}
  6914. then :
  6915. printf %s "(cached) " >&6
  6916. else $as_nop
  6917. while :; do
  6918. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6919. /* end confdefs.h. */
  6920. #include <sys/types.h>
  6921. /* Check that off_t can represent 2**63 - 1 correctly.
  6922. We can't simply define LARGE_OFF_T to be 9223372036854775807,
  6923. since some C++ compilers masquerading as C compilers
  6924. incorrectly reject 9223372036854775807. */
  6925. #define LARGE_OFF_T (((off_t) 1 << 31 << 31) - 1 + ((off_t) 1 << 31 << 31))
  6926. int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
  6927. && LARGE_OFF_T % 2147483647 == 1)
  6928. ? 1 : -1];
  6929. int main (void)
  6930. {
  6931. ;
  6932. return 0;
  6933. }
  6934. _ACEOF
  6935. if ac_fn_c_try_compile "$LINENO"
  6936. then :
  6937. ac_cv_sys_file_offset_bits=no; break
  6938. fi
  6939. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  6940. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6941. /* end confdefs.h. */
  6942. #define _FILE_OFFSET_BITS 64
  6943. #include <sys/types.h>
  6944. /* Check that off_t can represent 2**63 - 1 correctly.
  6945. We can't simply define LARGE_OFF_T to be 9223372036854775807,
  6946. since some C++ compilers masquerading as C compilers
  6947. incorrectly reject 9223372036854775807. */
  6948. #define LARGE_OFF_T (((off_t) 1 << 31 << 31) - 1 + ((off_t) 1 << 31 << 31))
  6949. int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
  6950. && LARGE_OFF_T % 2147483647 == 1)
  6951. ? 1 : -1];
  6952. int main (void)
  6953. {
  6954. ;
  6955. return 0;
  6956. }
  6957. _ACEOF
  6958. if ac_fn_c_try_compile "$LINENO"
  6959. then :
  6960. ac_cv_sys_file_offset_bits=64; break
  6961. fi
  6962. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  6963. ac_cv_sys_file_offset_bits=unknown
  6964. break
  6965. done
  6966. fi
  6967. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
  6968. printf "%s\n" "$ac_cv_sys_file_offset_bits" >&6; }
  6969. case $ac_cv_sys_file_offset_bits in #(
  6970. no | unknown) ;;
  6971. *)
  6972. printf "%s\n" "#define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits" >>confdefs.h
  6973. ;;
  6974. esac
  6975. rm -rf conftest*
  6976. if test $ac_cv_sys_file_offset_bits = unknown; then
  6977. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
  6978. printf %s "checking for _LARGE_FILES value needed for large files... " >&6; }
  6979. if test ${ac_cv_sys_large_files+y}
  6980. then :
  6981. printf %s "(cached) " >&6
  6982. else $as_nop
  6983. while :; do
  6984. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6985. /* end confdefs.h. */
  6986. #include <sys/types.h>
  6987. /* Check that off_t can represent 2**63 - 1 correctly.
  6988. We can't simply define LARGE_OFF_T to be 9223372036854775807,
  6989. since some C++ compilers masquerading as C compilers
  6990. incorrectly reject 9223372036854775807. */
  6991. #define LARGE_OFF_T (((off_t) 1 << 31 << 31) - 1 + ((off_t) 1 << 31 << 31))
  6992. int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
  6993. && LARGE_OFF_T % 2147483647 == 1)
  6994. ? 1 : -1];
  6995. int main (void)
  6996. {
  6997. ;
  6998. return 0;
  6999. }
  7000. _ACEOF
  7001. if ac_fn_c_try_compile "$LINENO"
  7002. then :
  7003. ac_cv_sys_large_files=no; break
  7004. fi
  7005. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  7006. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7007. /* end confdefs.h. */
  7008. #define _LARGE_FILES 1
  7009. #include <sys/types.h>
  7010. /* Check that off_t can represent 2**63 - 1 correctly.
  7011. We can't simply define LARGE_OFF_T to be 9223372036854775807,
  7012. since some C++ compilers masquerading as C compilers
  7013. incorrectly reject 9223372036854775807. */
  7014. #define LARGE_OFF_T (((off_t) 1 << 31 << 31) - 1 + ((off_t) 1 << 31 << 31))
  7015. int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
  7016. && LARGE_OFF_T % 2147483647 == 1)
  7017. ? 1 : -1];
  7018. int main (void)
  7019. {
  7020. ;
  7021. return 0;
  7022. }
  7023. _ACEOF
  7024. if ac_fn_c_try_compile "$LINENO"
  7025. then :
  7026. ac_cv_sys_large_files=1; break
  7027. fi
  7028. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  7029. ac_cv_sys_large_files=unknown
  7030. break
  7031. done
  7032. fi
  7033. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
  7034. printf "%s\n" "$ac_cv_sys_large_files" >&6; }
  7035. case $ac_cv_sys_large_files in #(
  7036. no | unknown) ;;
  7037. *)
  7038. printf "%s\n" "#define _LARGE_FILES $ac_cv_sys_large_files" >>confdefs.h
  7039. ;;
  7040. esac
  7041. rm -rf conftest*
  7042. fi
  7043. fi
  7044. case `pwd` in
  7045. *\ * | *\ *)
  7046. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
  7047. printf "%s\n" "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
  7048. esac
  7049. macro_version='2.4.6'
  7050. macro_revision='2.4.6'
  7051. ltmain=$ac_aux_dir/ltmain.sh
  7052. # Backslashify metacharacters that are still active within
  7053. # double-quoted strings.
  7054. sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
  7055. # Same as above, but do not quote variable references.
  7056. double_quote_subst='s/\(["`\\]\)/\\\1/g'
  7057. # Sed substitution to delay expansion of an escaped shell variable in a
  7058. # double_quote_subst'ed string.
  7059. delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
  7060. # Sed substitution to delay expansion of an escaped single quote.
  7061. delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
  7062. # Sed substitution to avoid accidental globbing in evaled expressions
  7063. no_glob_subst='s/\*/\\\*/g'
  7064. ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
  7065. ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
  7066. ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
  7067. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
  7068. printf %s "checking how to print strings... " >&6; }
  7069. # Test print first, because it will be a builtin if present.
  7070. if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
  7071. test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
  7072. ECHO='print -r --'
  7073. elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
  7074. ECHO='printf %s\n'
  7075. else
  7076. # Use this function as a fallback that always works.
  7077. func_fallback_echo ()
  7078. {
  7079. eval 'cat <<_LTECHO_EOF
  7080. $1
  7081. _LTECHO_EOF'
  7082. }
  7083. ECHO='func_fallback_echo'
  7084. fi
  7085. # func_echo_all arg...
  7086. # Invoke $ECHO with all args, space-separated.
  7087. func_echo_all ()
  7088. {
  7089. $ECHO ""
  7090. }
  7091. case $ECHO in
  7092. printf*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: printf" >&5
  7093. printf "%s\n" "printf" >&6; } ;;
  7094. print*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
  7095. printf "%s\n" "print -r" >&6; } ;;
  7096. *) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: cat" >&5
  7097. printf "%s\n" "cat" >&6; } ;;
  7098. esac
  7099. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
  7100. printf %s "checking for a sed that does not truncate output... " >&6; }
  7101. if test ${ac_cv_path_SED+y}
  7102. then :
  7103. printf %s "(cached) " >&6
  7104. else $as_nop
  7105. ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
  7106. for ac_i in 1 2 3 4 5 6 7; do
  7107. ac_script="$ac_script$as_nl$ac_script"
  7108. done
  7109. echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
  7110. { ac_script=; unset ac_script;}
  7111. if test -z "$SED"; then
  7112. ac_path_SED_found=false
  7113. # Loop through the user's path and test for each of PROGNAME-LIST
  7114. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  7115. for as_dir in $PATH
  7116. do
  7117. IFS=$as_save_IFS
  7118. case $as_dir in #(((
  7119. '') as_dir=./ ;;
  7120. */) ;;
  7121. *) as_dir=$as_dir/ ;;
  7122. esac
  7123. for ac_prog in sed gsed
  7124. do
  7125. for ac_exec_ext in '' $ac_executable_extensions; do
  7126. ac_path_SED="$as_dir$ac_prog$ac_exec_ext"
  7127. as_fn_executable_p "$ac_path_SED" || continue
  7128. # Check for GNU ac_path_SED and select it if it is found.
  7129. # Check for GNU $ac_path_SED
  7130. case `"$ac_path_SED" --version 2>&1` in
  7131. *GNU*)
  7132. ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
  7133. *)
  7134. ac_count=0
  7135. printf %s 0123456789 >"conftest.in"
  7136. while :
  7137. do
  7138. cat "conftest.in" "conftest.in" >"conftest.tmp"
  7139. mv "conftest.tmp" "conftest.in"
  7140. cp "conftest.in" "conftest.nl"
  7141. printf "%s\n" '' >> "conftest.nl"
  7142. "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
  7143. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  7144. as_fn_arith $ac_count + 1 && ac_count=$as_val
  7145. if test $ac_count -gt ${ac_path_SED_max-0}; then
  7146. # Best one so far, save it but keep looking for a better one
  7147. ac_cv_path_SED="$ac_path_SED"
  7148. ac_path_SED_max=$ac_count
  7149. fi
  7150. # 10*(2^10) chars as input seems more than enough
  7151. test $ac_count -gt 10 && break
  7152. done
  7153. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  7154. esac
  7155. $ac_path_SED_found && break 3
  7156. done
  7157. done
  7158. done
  7159. IFS=$as_save_IFS
  7160. if test -z "$ac_cv_path_SED"; then
  7161. as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
  7162. fi
  7163. else
  7164. ac_cv_path_SED=$SED
  7165. fi
  7166. fi
  7167. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
  7168. printf "%s\n" "$ac_cv_path_SED" >&6; }
  7169. SED="$ac_cv_path_SED"
  7170. rm -f conftest.sed
  7171. test -z "$SED" && SED=sed
  7172. Xsed="$SED -e 1s/^X//"
  7173. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
  7174. printf %s "checking for fgrep... " >&6; }
  7175. if test ${ac_cv_path_FGREP+y}
  7176. then :
  7177. printf %s "(cached) " >&6
  7178. else $as_nop
  7179. if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
  7180. then ac_cv_path_FGREP="$GREP -F"
  7181. else
  7182. if test -z "$FGREP"; then
  7183. ac_path_FGREP_found=false
  7184. # Loop through the user's path and test for each of PROGNAME-LIST
  7185. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  7186. for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
  7187. do
  7188. IFS=$as_save_IFS
  7189. case $as_dir in #(((
  7190. '') as_dir=./ ;;
  7191. */) ;;
  7192. *) as_dir=$as_dir/ ;;
  7193. esac
  7194. for ac_prog in fgrep
  7195. do
  7196. for ac_exec_ext in '' $ac_executable_extensions; do
  7197. ac_path_FGREP="$as_dir$ac_prog$ac_exec_ext"
  7198. as_fn_executable_p "$ac_path_FGREP" || continue
  7199. # Check for GNU ac_path_FGREP and select it if it is found.
  7200. # Check for GNU $ac_path_FGREP
  7201. case `"$ac_path_FGREP" --version 2>&1` in
  7202. *GNU*)
  7203. ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
  7204. *)
  7205. ac_count=0
  7206. printf %s 0123456789 >"conftest.in"
  7207. while :
  7208. do
  7209. cat "conftest.in" "conftest.in" >"conftest.tmp"
  7210. mv "conftest.tmp" "conftest.in"
  7211. cp "conftest.in" "conftest.nl"
  7212. printf "%s\n" 'FGREP' >> "conftest.nl"
  7213. "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
  7214. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  7215. as_fn_arith $ac_count + 1 && ac_count=$as_val
  7216. if test $ac_count -gt ${ac_path_FGREP_max-0}; then
  7217. # Best one so far, save it but keep looking for a better one
  7218. ac_cv_path_FGREP="$ac_path_FGREP"
  7219. ac_path_FGREP_max=$ac_count
  7220. fi
  7221. # 10*(2^10) chars as input seems more than enough
  7222. test $ac_count -gt 10 && break
  7223. done
  7224. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  7225. esac
  7226. $ac_path_FGREP_found && break 3
  7227. done
  7228. done
  7229. done
  7230. IFS=$as_save_IFS
  7231. if test -z "$ac_cv_path_FGREP"; then
  7232. as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
  7233. fi
  7234. else
  7235. ac_cv_path_FGREP=$FGREP
  7236. fi
  7237. fi
  7238. fi
  7239. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
  7240. printf "%s\n" "$ac_cv_path_FGREP" >&6; }
  7241. FGREP="$ac_cv_path_FGREP"
  7242. test -z "$GREP" && GREP=grep
  7243. # Check whether --with-gnu-ld was given.
  7244. if test ${with_gnu_ld+y}
  7245. then :
  7246. withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes
  7247. else $as_nop
  7248. with_gnu_ld=no
  7249. fi
  7250. ac_prog=ld
  7251. if test yes = "$GCC"; then
  7252. # Check if gcc -print-prog-name=ld gives a path.
  7253. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
  7254. printf %s "checking for ld used by $CC... " >&6; }
  7255. case $host in
  7256. *-*-mingw*)
  7257. # gcc leaves a trailing carriage return, which upsets mingw
  7258. ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
  7259. *)
  7260. ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
  7261. esac
  7262. case $ac_prog in
  7263. # Accept absolute paths.
  7264. [\\/]* | ?:[\\/]*)
  7265. re_direlt='/[^/][^/]*/\.\./'
  7266. # Canonicalize the pathname of ld
  7267. ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
  7268. while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
  7269. ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
  7270. done
  7271. test -z "$LD" && LD=$ac_prog
  7272. ;;
  7273. "")
  7274. # If it fails, then pretend we aren't using GCC.
  7275. ac_prog=ld
  7276. ;;
  7277. *)
  7278. # If it is relative, then search for the first ld in PATH.
  7279. with_gnu_ld=unknown
  7280. ;;
  7281. esac
  7282. elif test yes = "$with_gnu_ld"; then
  7283. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
  7284. printf %s "checking for GNU ld... " >&6; }
  7285. else
  7286. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
  7287. printf %s "checking for non-GNU ld... " >&6; }
  7288. fi
  7289. if test ${lt_cv_path_LD+y}
  7290. then :
  7291. printf %s "(cached) " >&6
  7292. else $as_nop
  7293. if test -z "$LD"; then
  7294. lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
  7295. for ac_dir in $PATH; do
  7296. IFS=$lt_save_ifs
  7297. test -z "$ac_dir" && ac_dir=.
  7298. if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
  7299. lt_cv_path_LD=$ac_dir/$ac_prog
  7300. # Check to see if the program is GNU ld. I'd rather use --version,
  7301. # but apparently some variants of GNU ld only accept -v.
  7302. # Break only if it was the GNU/non-GNU ld that we prefer.
  7303. case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
  7304. *GNU* | *'with BFD'*)
  7305. test no != "$with_gnu_ld" && break
  7306. ;;
  7307. *)
  7308. test yes != "$with_gnu_ld" && break
  7309. ;;
  7310. esac
  7311. fi
  7312. done
  7313. IFS=$lt_save_ifs
  7314. else
  7315. lt_cv_path_LD=$LD # Let the user override the test with a path.
  7316. fi
  7317. fi
  7318. LD=$lt_cv_path_LD
  7319. if test -n "$LD"; then
  7320. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
  7321. printf "%s\n" "$LD" >&6; }
  7322. else
  7323. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7324. printf "%s\n" "no" >&6; }
  7325. fi
  7326. test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
  7327. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
  7328. printf %s "checking if the linker ($LD) is GNU ld... " >&6; }
  7329. if test ${lt_cv_prog_gnu_ld+y}
  7330. then :
  7331. printf %s "(cached) " >&6
  7332. else $as_nop
  7333. # I'd rather use --version here, but apparently some GNU lds only accept -v.
  7334. case `$LD -v 2>&1 </dev/null` in
  7335. *GNU* | *'with BFD'*)
  7336. lt_cv_prog_gnu_ld=yes
  7337. ;;
  7338. *)
  7339. lt_cv_prog_gnu_ld=no
  7340. ;;
  7341. esac
  7342. fi
  7343. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
  7344. printf "%s\n" "$lt_cv_prog_gnu_ld" >&6; }
  7345. with_gnu_ld=$lt_cv_prog_gnu_ld
  7346. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
  7347. printf %s "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
  7348. if test ${lt_cv_path_NM+y}
  7349. then :
  7350. printf %s "(cached) " >&6
  7351. else $as_nop
  7352. if test -n "$NM"; then
  7353. # Let the user override the test.
  7354. lt_cv_path_NM=$NM
  7355. else
  7356. lt_nm_to_check=${ac_tool_prefix}nm
  7357. if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
  7358. lt_nm_to_check="$lt_nm_to_check nm"
  7359. fi
  7360. for lt_tmp_nm in $lt_nm_to_check; do
  7361. lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
  7362. for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
  7363. IFS=$lt_save_ifs
  7364. test -z "$ac_dir" && ac_dir=.
  7365. tmp_nm=$ac_dir/$lt_tmp_nm
  7366. if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext"; then
  7367. # Check to see if the nm accepts a BSD-compat flag.
  7368. # Adding the 'sed 1q' prevents false positives on HP-UX, which says:
  7369. # nm: unknown option "B" ignored
  7370. # Tru64's nm complains that /dev/null is an invalid object file
  7371. # MSYS converts /dev/null to NUL, MinGW nm treats NUL as empty
  7372. case $build_os in
  7373. mingw*) lt_bad_file=conftest.nm/nofile ;;
  7374. *) lt_bad_file=/dev/null ;;
  7375. esac
  7376. case `"$tmp_nm" -B $lt_bad_file 2>&1 | sed '1q'` in
  7377. *$lt_bad_file* | *'Invalid file or object type'*)
  7378. lt_cv_path_NM="$tmp_nm -B"
  7379. break 2
  7380. ;;
  7381. *)
  7382. case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
  7383. */dev/null*)
  7384. lt_cv_path_NM="$tmp_nm -p"
  7385. break 2
  7386. ;;
  7387. *)
  7388. lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
  7389. continue # so that we can try to find one that supports BSD flags
  7390. ;;
  7391. esac
  7392. ;;
  7393. esac
  7394. fi
  7395. done
  7396. IFS=$lt_save_ifs
  7397. done
  7398. : ${lt_cv_path_NM=no}
  7399. fi
  7400. fi
  7401. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
  7402. printf "%s\n" "$lt_cv_path_NM" >&6; }
  7403. if test no != "$lt_cv_path_NM"; then
  7404. NM=$lt_cv_path_NM
  7405. else
  7406. # Didn't find any BSD compatible name lister, look for dumpbin.
  7407. if test -n "$DUMPBIN"; then :
  7408. # Let the user override the test.
  7409. else
  7410. if test -n "$ac_tool_prefix"; then
  7411. for ac_prog in dumpbin "link -dump"
  7412. do
  7413. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  7414. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  7415. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  7416. printf %s "checking for $ac_word... " >&6; }
  7417. if test ${ac_cv_prog_DUMPBIN+y}
  7418. then :
  7419. printf %s "(cached) " >&6
  7420. else $as_nop
  7421. if test -n "$DUMPBIN"; then
  7422. ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
  7423. else
  7424. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  7425. for as_dir in $PATH
  7426. do
  7427. IFS=$as_save_IFS
  7428. case $as_dir in #(((
  7429. '') as_dir=./ ;;
  7430. */) ;;
  7431. *) as_dir=$as_dir/ ;;
  7432. esac
  7433. for ac_exec_ext in '' $ac_executable_extensions; do
  7434. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  7435. ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
  7436. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  7437. break 2
  7438. fi
  7439. done
  7440. done
  7441. IFS=$as_save_IFS
  7442. fi
  7443. fi
  7444. DUMPBIN=$ac_cv_prog_DUMPBIN
  7445. if test -n "$DUMPBIN"; then
  7446. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
  7447. printf "%s\n" "$DUMPBIN" >&6; }
  7448. else
  7449. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7450. printf "%s\n" "no" >&6; }
  7451. fi
  7452. test -n "$DUMPBIN" && break
  7453. done
  7454. fi
  7455. if test -z "$DUMPBIN"; then
  7456. ac_ct_DUMPBIN=$DUMPBIN
  7457. for ac_prog in dumpbin "link -dump"
  7458. do
  7459. # Extract the first word of "$ac_prog", so it can be a program name with args.
  7460. set dummy $ac_prog; ac_word=$2
  7461. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  7462. printf %s "checking for $ac_word... " >&6; }
  7463. if test ${ac_cv_prog_ac_ct_DUMPBIN+y}
  7464. then :
  7465. printf %s "(cached) " >&6
  7466. else $as_nop
  7467. if test -n "$ac_ct_DUMPBIN"; then
  7468. ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
  7469. else
  7470. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  7471. for as_dir in $PATH
  7472. do
  7473. IFS=$as_save_IFS
  7474. case $as_dir in #(((
  7475. '') as_dir=./ ;;
  7476. */) ;;
  7477. *) as_dir=$as_dir/ ;;
  7478. esac
  7479. for ac_exec_ext in '' $ac_executable_extensions; do
  7480. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  7481. ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
  7482. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  7483. break 2
  7484. fi
  7485. done
  7486. done
  7487. IFS=$as_save_IFS
  7488. fi
  7489. fi
  7490. ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
  7491. if test -n "$ac_ct_DUMPBIN"; then
  7492. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
  7493. printf "%s\n" "$ac_ct_DUMPBIN" >&6; }
  7494. else
  7495. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7496. printf "%s\n" "no" >&6; }
  7497. fi
  7498. test -n "$ac_ct_DUMPBIN" && break
  7499. done
  7500. if test "x$ac_ct_DUMPBIN" = x; then
  7501. DUMPBIN=":"
  7502. else
  7503. case $cross_compiling:$ac_tool_warned in
  7504. yes:)
  7505. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  7506. printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  7507. ac_tool_warned=yes ;;
  7508. esac
  7509. DUMPBIN=$ac_ct_DUMPBIN
  7510. fi
  7511. fi
  7512. case `$DUMPBIN -symbols -headers /dev/null 2>&1 | sed '1q'` in
  7513. *COFF*)
  7514. DUMPBIN="$DUMPBIN -symbols -headers"
  7515. ;;
  7516. *)
  7517. DUMPBIN=:
  7518. ;;
  7519. esac
  7520. fi
  7521. if test : != "$DUMPBIN"; then
  7522. NM=$DUMPBIN
  7523. fi
  7524. fi
  7525. test -z "$NM" && NM=nm
  7526. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
  7527. printf %s "checking the name lister ($NM) interface... " >&6; }
  7528. if test ${lt_cv_nm_interface+y}
  7529. then :
  7530. printf %s "(cached) " >&6
  7531. else $as_nop
  7532. lt_cv_nm_interface="BSD nm"
  7533. echo "int some_variable = 0;" > conftest.$ac_ext
  7534. (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
  7535. (eval "$ac_compile" 2>conftest.err)
  7536. cat conftest.err >&5
  7537. (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
  7538. (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
  7539. cat conftest.err >&5
  7540. (eval echo "\"\$as_me:$LINENO: output\"" >&5)
  7541. cat conftest.out >&5
  7542. if $GREP 'External.*some_variable' conftest.out > /dev/null; then
  7543. lt_cv_nm_interface="MS dumpbin"
  7544. fi
  7545. rm -f conftest*
  7546. fi
  7547. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
  7548. printf "%s\n" "$lt_cv_nm_interface" >&6; }
  7549. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
  7550. printf %s "checking whether ln -s works... " >&6; }
  7551. LN_S=$as_ln_s
  7552. if test "$LN_S" = "ln -s"; then
  7553. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  7554. printf "%s\n" "yes" >&6; }
  7555. else
  7556. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
  7557. printf "%s\n" "no, using $LN_S" >&6; }
  7558. fi
  7559. # find the maximum length of command line arguments
  7560. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
  7561. printf %s "checking the maximum length of command line arguments... " >&6; }
  7562. if test ${lt_cv_sys_max_cmd_len+y}
  7563. then :
  7564. printf %s "(cached) " >&6
  7565. else $as_nop
  7566. i=0
  7567. teststring=ABCD
  7568. case $build_os in
  7569. msdosdjgpp*)
  7570. # On DJGPP, this test can blow up pretty badly due to problems in libc
  7571. # (any single argument exceeding 2000 bytes causes a buffer overrun
  7572. # during glob expansion). Even if it were fixed, the result of this
  7573. # check would be larger than it should be.
  7574. lt_cv_sys_max_cmd_len=12288; # 12K is about right
  7575. ;;
  7576. gnu*)
  7577. # Under GNU Hurd, this test is not required because there is
  7578. # no limit to the length of command line arguments.
  7579. # Libtool will interpret -1 as no limit whatsoever
  7580. lt_cv_sys_max_cmd_len=-1;
  7581. ;;
  7582. cygwin* | mingw* | cegcc*)
  7583. # On Win9x/ME, this test blows up -- it succeeds, but takes
  7584. # about 5 minutes as the teststring grows exponentially.
  7585. # Worse, since 9x/ME are not pre-emptively multitasking,
  7586. # you end up with a "frozen" computer, even though with patience
  7587. # the test eventually succeeds (with a max line length of 256k).
  7588. # Instead, let's just punt: use the minimum linelength reported by
  7589. # all of the supported platforms: 8192 (on NT/2K/XP).
  7590. lt_cv_sys_max_cmd_len=8192;
  7591. ;;
  7592. mint*)
  7593. # On MiNT this can take a long time and run out of memory.
  7594. lt_cv_sys_max_cmd_len=8192;
  7595. ;;
  7596. amigaos*)
  7597. # On AmigaOS with pdksh, this test takes hours, literally.
  7598. # So we just punt and use a minimum line length of 8192.
  7599. lt_cv_sys_max_cmd_len=8192;
  7600. ;;
  7601. bitrig* | darwin* | dragonfly* | freebsd* | netbsd* | openbsd*)
  7602. # This has been around since 386BSD, at least. Likely further.
  7603. if test -x /sbin/sysctl; then
  7604. lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
  7605. elif test -x /usr/sbin/sysctl; then
  7606. lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
  7607. else
  7608. lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
  7609. fi
  7610. # And add a safety zone
  7611. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
  7612. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
  7613. ;;
  7614. interix*)
  7615. # We know the value 262144 and hardcode it with a safety zone (like BSD)
  7616. lt_cv_sys_max_cmd_len=196608
  7617. ;;
  7618. os2*)
  7619. # The test takes a long time on OS/2.
  7620. lt_cv_sys_max_cmd_len=8192
  7621. ;;
  7622. osf*)
  7623. # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
  7624. # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
  7625. # nice to cause kernel panics so lets avoid the loop below.
  7626. # First set a reasonable default.
  7627. lt_cv_sys_max_cmd_len=16384
  7628. #
  7629. if test -x /sbin/sysconfig; then
  7630. case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
  7631. *1*) lt_cv_sys_max_cmd_len=-1 ;;
  7632. esac
  7633. fi
  7634. ;;
  7635. sco3.2v5*)
  7636. lt_cv_sys_max_cmd_len=102400
  7637. ;;
  7638. sysv5* | sco5v6* | sysv4.2uw2*)
  7639. kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
  7640. if test -n "$kargmax"; then
  7641. lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
  7642. else
  7643. lt_cv_sys_max_cmd_len=32768
  7644. fi
  7645. ;;
  7646. *)
  7647. lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
  7648. if test -n "$lt_cv_sys_max_cmd_len" && \
  7649. test undefined != "$lt_cv_sys_max_cmd_len"; then
  7650. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
  7651. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
  7652. else
  7653. # Make teststring a little bigger before we do anything with it.
  7654. # a 1K string should be a reasonable start.
  7655. for i in 1 2 3 4 5 6 7 8; do
  7656. teststring=$teststring$teststring
  7657. done
  7658. SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
  7659. # If test is not a shell built-in, we'll probably end up computing a
  7660. # maximum length that is only half of the actual maximum length, but
  7661. # we can't tell.
  7662. while { test X`env echo "$teststring$teststring" 2>/dev/null` \
  7663. = "X$teststring$teststring"; } >/dev/null 2>&1 &&
  7664. test 17 != "$i" # 1/2 MB should be enough
  7665. do
  7666. i=`expr $i + 1`
  7667. teststring=$teststring$teststring
  7668. done
  7669. # Only check the string length outside the loop.
  7670. lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
  7671. teststring=
  7672. # Add a significant safety factor because C++ compilers can tack on
  7673. # massive amounts of additional arguments before passing them to the
  7674. # linker. It appears as though 1/2 is a usable value.
  7675. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
  7676. fi
  7677. ;;
  7678. esac
  7679. fi
  7680. if test -n "$lt_cv_sys_max_cmd_len"; then
  7681. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
  7682. printf "%s\n" "$lt_cv_sys_max_cmd_len" >&6; }
  7683. else
  7684. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none" >&5
  7685. printf "%s\n" "none" >&6; }
  7686. fi
  7687. max_cmd_len=$lt_cv_sys_max_cmd_len
  7688. : ${CP="cp -f"}
  7689. : ${MV="mv -f"}
  7690. : ${RM="rm -f"}
  7691. if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
  7692. lt_unset=unset
  7693. else
  7694. lt_unset=false
  7695. fi
  7696. # test EBCDIC or ASCII
  7697. case `echo X|tr X '\101'` in
  7698. A) # ASCII based system
  7699. # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
  7700. lt_SP2NL='tr \040 \012'
  7701. lt_NL2SP='tr \015\012 \040\040'
  7702. ;;
  7703. *) # EBCDIC based system
  7704. lt_SP2NL='tr \100 \n'
  7705. lt_NL2SP='tr \r\n \100\100'
  7706. ;;
  7707. esac
  7708. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
  7709. printf %s "checking how to convert $build file names to $host format... " >&6; }
  7710. if test ${lt_cv_to_host_file_cmd+y}
  7711. then :
  7712. printf %s "(cached) " >&6
  7713. else $as_nop
  7714. case $host in
  7715. *-*-mingw* )
  7716. case $build in
  7717. *-*-mingw* ) # actually msys
  7718. lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
  7719. ;;
  7720. *-*-cygwin* )
  7721. lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
  7722. ;;
  7723. * ) # otherwise, assume *nix
  7724. lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
  7725. ;;
  7726. esac
  7727. ;;
  7728. *-*-cygwin* )
  7729. case $build in
  7730. *-*-mingw* ) # actually msys
  7731. lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
  7732. ;;
  7733. *-*-cygwin* )
  7734. lt_cv_to_host_file_cmd=func_convert_file_noop
  7735. ;;
  7736. * ) # otherwise, assume *nix
  7737. lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
  7738. ;;
  7739. esac
  7740. ;;
  7741. * ) # unhandled hosts (and "normal" native builds)
  7742. lt_cv_to_host_file_cmd=func_convert_file_noop
  7743. ;;
  7744. esac
  7745. fi
  7746. to_host_file_cmd=$lt_cv_to_host_file_cmd
  7747. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
  7748. printf "%s\n" "$lt_cv_to_host_file_cmd" >&6; }
  7749. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
  7750. printf %s "checking how to convert $build file names to toolchain format... " >&6; }
  7751. if test ${lt_cv_to_tool_file_cmd+y}
  7752. then :
  7753. printf %s "(cached) " >&6
  7754. else $as_nop
  7755. #assume ordinary cross tools, or native build.
  7756. lt_cv_to_tool_file_cmd=func_convert_file_noop
  7757. case $host in
  7758. *-*-mingw* )
  7759. case $build in
  7760. *-*-mingw* ) # actually msys
  7761. lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
  7762. ;;
  7763. esac
  7764. ;;
  7765. esac
  7766. fi
  7767. to_tool_file_cmd=$lt_cv_to_tool_file_cmd
  7768. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
  7769. printf "%s\n" "$lt_cv_to_tool_file_cmd" >&6; }
  7770. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
  7771. printf %s "checking for $LD option to reload object files... " >&6; }
  7772. if test ${lt_cv_ld_reload_flag+y}
  7773. then :
  7774. printf %s "(cached) " >&6
  7775. else $as_nop
  7776. lt_cv_ld_reload_flag='-r'
  7777. fi
  7778. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
  7779. printf "%s\n" "$lt_cv_ld_reload_flag" >&6; }
  7780. reload_flag=$lt_cv_ld_reload_flag
  7781. case $reload_flag in
  7782. "" | " "*) ;;
  7783. *) reload_flag=" $reload_flag" ;;
  7784. esac
  7785. reload_cmds='$LD$reload_flag -o $output$reload_objs'
  7786. case $host_os in
  7787. cygwin* | mingw* | pw32* | cegcc*)
  7788. if test yes != "$GCC"; then
  7789. reload_cmds=false
  7790. fi
  7791. ;;
  7792. darwin*)
  7793. if test yes = "$GCC"; then
  7794. reload_cmds='$LTCC $LTCFLAGS -nostdlib $wl-r -o $output$reload_objs'
  7795. else
  7796. reload_cmds='$LD$reload_flag -o $output$reload_objs'
  7797. fi
  7798. ;;
  7799. esac
  7800. if test -n "$ac_tool_prefix"; then
  7801. # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
  7802. set dummy ${ac_tool_prefix}objdump; ac_word=$2
  7803. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  7804. printf %s "checking for $ac_word... " >&6; }
  7805. if test ${ac_cv_prog_OBJDUMP+y}
  7806. then :
  7807. printf %s "(cached) " >&6
  7808. else $as_nop
  7809. if test -n "$OBJDUMP"; then
  7810. ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
  7811. else
  7812. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  7813. for as_dir in $PATH
  7814. do
  7815. IFS=$as_save_IFS
  7816. case $as_dir in #(((
  7817. '') as_dir=./ ;;
  7818. */) ;;
  7819. *) as_dir=$as_dir/ ;;
  7820. esac
  7821. for ac_exec_ext in '' $ac_executable_extensions; do
  7822. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  7823. ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
  7824. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  7825. break 2
  7826. fi
  7827. done
  7828. done
  7829. IFS=$as_save_IFS
  7830. fi
  7831. fi
  7832. OBJDUMP=$ac_cv_prog_OBJDUMP
  7833. if test -n "$OBJDUMP"; then
  7834. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
  7835. printf "%s\n" "$OBJDUMP" >&6; }
  7836. else
  7837. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7838. printf "%s\n" "no" >&6; }
  7839. fi
  7840. fi
  7841. if test -z "$ac_cv_prog_OBJDUMP"; then
  7842. ac_ct_OBJDUMP=$OBJDUMP
  7843. # Extract the first word of "objdump", so it can be a program name with args.
  7844. set dummy objdump; ac_word=$2
  7845. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  7846. printf %s "checking for $ac_word... " >&6; }
  7847. if test ${ac_cv_prog_ac_ct_OBJDUMP+y}
  7848. then :
  7849. printf %s "(cached) " >&6
  7850. else $as_nop
  7851. if test -n "$ac_ct_OBJDUMP"; then
  7852. ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
  7853. else
  7854. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  7855. for as_dir in $PATH
  7856. do
  7857. IFS=$as_save_IFS
  7858. case $as_dir in #(((
  7859. '') as_dir=./ ;;
  7860. */) ;;
  7861. *) as_dir=$as_dir/ ;;
  7862. esac
  7863. for ac_exec_ext in '' $ac_executable_extensions; do
  7864. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  7865. ac_cv_prog_ac_ct_OBJDUMP="objdump"
  7866. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  7867. break 2
  7868. fi
  7869. done
  7870. done
  7871. IFS=$as_save_IFS
  7872. fi
  7873. fi
  7874. ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
  7875. if test -n "$ac_ct_OBJDUMP"; then
  7876. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
  7877. printf "%s\n" "$ac_ct_OBJDUMP" >&6; }
  7878. else
  7879. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7880. printf "%s\n" "no" >&6; }
  7881. fi
  7882. if test "x$ac_ct_OBJDUMP" = x; then
  7883. OBJDUMP="false"
  7884. else
  7885. case $cross_compiling:$ac_tool_warned in
  7886. yes:)
  7887. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  7888. printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  7889. ac_tool_warned=yes ;;
  7890. esac
  7891. OBJDUMP=$ac_ct_OBJDUMP
  7892. fi
  7893. else
  7894. OBJDUMP="$ac_cv_prog_OBJDUMP"
  7895. fi
  7896. test -z "$OBJDUMP" && OBJDUMP=objdump
  7897. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
  7898. printf %s "checking how to recognize dependent libraries... " >&6; }
  7899. if test ${lt_cv_deplibs_check_method+y}
  7900. then :
  7901. printf %s "(cached) " >&6
  7902. else $as_nop
  7903. lt_cv_file_magic_cmd='$MAGIC_CMD'
  7904. lt_cv_file_magic_test_file=
  7905. lt_cv_deplibs_check_method='unknown'
  7906. # Need to set the preceding variable on all platforms that support
  7907. # interlibrary dependencies.
  7908. # 'none' -- dependencies not supported.
  7909. # 'unknown' -- same as none, but documents that we really don't know.
  7910. # 'pass_all' -- all dependencies passed with no checks.
  7911. # 'test_compile' -- check by making test program.
  7912. # 'file_magic [[regex]]' -- check by looking for files in library path
  7913. # that responds to the $file_magic_cmd with a given extended regex.
  7914. # If you have 'file' or equivalent on your system and you're not sure
  7915. # whether 'pass_all' will *always* work, you probably want this one.
  7916. case $host_os in
  7917. aix[4-9]*)
  7918. lt_cv_deplibs_check_method=pass_all
  7919. ;;
  7920. beos*)
  7921. lt_cv_deplibs_check_method=pass_all
  7922. ;;
  7923. bsdi[45]*)
  7924. lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
  7925. lt_cv_file_magic_cmd='/usr/bin/file -L'
  7926. lt_cv_file_magic_test_file=/shlib/libc.so
  7927. ;;
  7928. cygwin*)
  7929. # func_win32_libid is a shell function defined in ltmain.sh
  7930. lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
  7931. lt_cv_file_magic_cmd='func_win32_libid'
  7932. ;;
  7933. mingw* | pw32*)
  7934. # Base MSYS/MinGW do not provide the 'file' command needed by
  7935. # func_win32_libid shell function, so use a weaker test based on 'objdump',
  7936. # unless we find 'file', for example because we are cross-compiling.
  7937. if ( file / ) >/dev/null 2>&1; then
  7938. lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
  7939. lt_cv_file_magic_cmd='func_win32_libid'
  7940. else
  7941. # Keep this pattern in sync with the one in func_win32_libid.
  7942. lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
  7943. lt_cv_file_magic_cmd='$OBJDUMP -f'
  7944. fi
  7945. ;;
  7946. cegcc*)
  7947. # use the weaker test based on 'objdump'. See mingw*.
  7948. lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
  7949. lt_cv_file_magic_cmd='$OBJDUMP -f'
  7950. ;;
  7951. darwin* | rhapsody*)
  7952. lt_cv_deplibs_check_method=pass_all
  7953. ;;
  7954. freebsd* | dragonfly*)
  7955. if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
  7956. case $host_cpu in
  7957. i*86 )
  7958. # Not sure whether the presence of OpenBSD here was a mistake.
  7959. # Let's accept both of them until this is cleared up.
  7960. lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
  7961. lt_cv_file_magic_cmd=/usr/bin/file
  7962. lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
  7963. ;;
  7964. esac
  7965. else
  7966. lt_cv_deplibs_check_method=pass_all
  7967. fi
  7968. ;;
  7969. haiku*)
  7970. lt_cv_deplibs_check_method=pass_all
  7971. ;;
  7972. hpux10.20* | hpux11*)
  7973. lt_cv_file_magic_cmd=/usr/bin/file
  7974. case $host_cpu in
  7975. ia64*)
  7976. lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
  7977. lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
  7978. ;;
  7979. hppa*64*)
  7980. lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF[ -][0-9][0-9])(-bit)?( [LM]SB)? shared object( file)?[, -]* PA-RISC [0-9]\.[0-9]'
  7981. lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
  7982. ;;
  7983. *)
  7984. lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
  7985. lt_cv_file_magic_test_file=/usr/lib/libc.sl
  7986. ;;
  7987. esac
  7988. ;;
  7989. interix[3-9]*)
  7990. # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
  7991. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
  7992. ;;
  7993. irix5* | irix6* | nonstopux*)
  7994. case $LD in
  7995. *-32|*"-32 ") libmagic=32-bit;;
  7996. *-n32|*"-n32 ") libmagic=N32;;
  7997. *-64|*"-64 ") libmagic=64-bit;;
  7998. *) libmagic=never-match;;
  7999. esac
  8000. lt_cv_deplibs_check_method=pass_all
  8001. ;;
  8002. # This must be glibc/ELF.
  8003. linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
  8004. lt_cv_deplibs_check_method=pass_all
  8005. ;;
  8006. netbsd* | netbsdelf*-gnu)
  8007. if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
  8008. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
  8009. else
  8010. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
  8011. fi
  8012. ;;
  8013. newos6*)
  8014. lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
  8015. lt_cv_file_magic_cmd=/usr/bin/file
  8016. lt_cv_file_magic_test_file=/usr/lib/libnls.so
  8017. ;;
  8018. *nto* | *qnx*)
  8019. lt_cv_deplibs_check_method=pass_all
  8020. ;;
  8021. openbsd* | bitrig*)
  8022. if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
  8023. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
  8024. else
  8025. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
  8026. fi
  8027. ;;
  8028. osf3* | osf4* | osf5*)
  8029. lt_cv_deplibs_check_method=pass_all
  8030. ;;
  8031. rdos*)
  8032. lt_cv_deplibs_check_method=pass_all
  8033. ;;
  8034. solaris*)
  8035. lt_cv_deplibs_check_method=pass_all
  8036. ;;
  8037. sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
  8038. lt_cv_deplibs_check_method=pass_all
  8039. ;;
  8040. sysv4 | sysv4.3*)
  8041. case $host_vendor in
  8042. motorola)
  8043. lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib) M[0-9][0-9]* Version [0-9]'
  8044. lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
  8045. ;;
  8046. ncr)
  8047. lt_cv_deplibs_check_method=pass_all
  8048. ;;
  8049. sequent)
  8050. lt_cv_file_magic_cmd='/bin/file'
  8051. lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
  8052. ;;
  8053. sni)
  8054. lt_cv_file_magic_cmd='/bin/file'
  8055. lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
  8056. lt_cv_file_magic_test_file=/lib/libc.so
  8057. ;;
  8058. siemens)
  8059. lt_cv_deplibs_check_method=pass_all
  8060. ;;
  8061. pc)
  8062. lt_cv_deplibs_check_method=pass_all
  8063. ;;
  8064. esac
  8065. ;;
  8066. tpf*)
  8067. lt_cv_deplibs_check_method=pass_all
  8068. ;;
  8069. os2*)
  8070. lt_cv_deplibs_check_method=pass_all
  8071. ;;
  8072. esac
  8073. fi
  8074. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
  8075. printf "%s\n" "$lt_cv_deplibs_check_method" >&6; }
  8076. file_magic_glob=
  8077. want_nocaseglob=no
  8078. if test "$build" = "$host"; then
  8079. case $host_os in
  8080. mingw* | pw32*)
  8081. if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
  8082. want_nocaseglob=yes
  8083. else
  8084. file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
  8085. fi
  8086. ;;
  8087. esac
  8088. fi
  8089. file_magic_cmd=$lt_cv_file_magic_cmd
  8090. deplibs_check_method=$lt_cv_deplibs_check_method
  8091. test -z "$deplibs_check_method" && deplibs_check_method=unknown
  8092. if test -n "$ac_tool_prefix"; then
  8093. # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
  8094. set dummy ${ac_tool_prefix}dlltool; ac_word=$2
  8095. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  8096. printf %s "checking for $ac_word... " >&6; }
  8097. if test ${ac_cv_prog_DLLTOOL+y}
  8098. then :
  8099. printf %s "(cached) " >&6
  8100. else $as_nop
  8101. if test -n "$DLLTOOL"; then
  8102. ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
  8103. else
  8104. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  8105. for as_dir in $PATH
  8106. do
  8107. IFS=$as_save_IFS
  8108. case $as_dir in #(((
  8109. '') as_dir=./ ;;
  8110. */) ;;
  8111. *) as_dir=$as_dir/ ;;
  8112. esac
  8113. for ac_exec_ext in '' $ac_executable_extensions; do
  8114. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  8115. ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
  8116. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  8117. break 2
  8118. fi
  8119. done
  8120. done
  8121. IFS=$as_save_IFS
  8122. fi
  8123. fi
  8124. DLLTOOL=$ac_cv_prog_DLLTOOL
  8125. if test -n "$DLLTOOL"; then
  8126. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
  8127. printf "%s\n" "$DLLTOOL" >&6; }
  8128. else
  8129. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  8130. printf "%s\n" "no" >&6; }
  8131. fi
  8132. fi
  8133. if test -z "$ac_cv_prog_DLLTOOL"; then
  8134. ac_ct_DLLTOOL=$DLLTOOL
  8135. # Extract the first word of "dlltool", so it can be a program name with args.
  8136. set dummy dlltool; ac_word=$2
  8137. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  8138. printf %s "checking for $ac_word... " >&6; }
  8139. if test ${ac_cv_prog_ac_ct_DLLTOOL+y}
  8140. then :
  8141. printf %s "(cached) " >&6
  8142. else $as_nop
  8143. if test -n "$ac_ct_DLLTOOL"; then
  8144. ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
  8145. else
  8146. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  8147. for as_dir in $PATH
  8148. do
  8149. IFS=$as_save_IFS
  8150. case $as_dir in #(((
  8151. '') as_dir=./ ;;
  8152. */) ;;
  8153. *) as_dir=$as_dir/ ;;
  8154. esac
  8155. for ac_exec_ext in '' $ac_executable_extensions; do
  8156. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  8157. ac_cv_prog_ac_ct_DLLTOOL="dlltool"
  8158. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  8159. break 2
  8160. fi
  8161. done
  8162. done
  8163. IFS=$as_save_IFS
  8164. fi
  8165. fi
  8166. ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
  8167. if test -n "$ac_ct_DLLTOOL"; then
  8168. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
  8169. printf "%s\n" "$ac_ct_DLLTOOL" >&6; }
  8170. else
  8171. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  8172. printf "%s\n" "no" >&6; }
  8173. fi
  8174. if test "x$ac_ct_DLLTOOL" = x; then
  8175. DLLTOOL="false"
  8176. else
  8177. case $cross_compiling:$ac_tool_warned in
  8178. yes:)
  8179. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  8180. printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  8181. ac_tool_warned=yes ;;
  8182. esac
  8183. DLLTOOL=$ac_ct_DLLTOOL
  8184. fi
  8185. else
  8186. DLLTOOL="$ac_cv_prog_DLLTOOL"
  8187. fi
  8188. test -z "$DLLTOOL" && DLLTOOL=dlltool
  8189. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
  8190. printf %s "checking how to associate runtime and link libraries... " >&6; }
  8191. if test ${lt_cv_sharedlib_from_linklib_cmd+y}
  8192. then :
  8193. printf %s "(cached) " >&6
  8194. else $as_nop
  8195. lt_cv_sharedlib_from_linklib_cmd='unknown'
  8196. case $host_os in
  8197. cygwin* | mingw* | pw32* | cegcc*)
  8198. # two different shell functions defined in ltmain.sh;
  8199. # decide which one to use based on capabilities of $DLLTOOL
  8200. case `$DLLTOOL --help 2>&1` in
  8201. *--identify-strict*)
  8202. lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
  8203. ;;
  8204. *)
  8205. lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
  8206. ;;
  8207. esac
  8208. ;;
  8209. *)
  8210. # fallback: assume linklib IS sharedlib
  8211. lt_cv_sharedlib_from_linklib_cmd=$ECHO
  8212. ;;
  8213. esac
  8214. fi
  8215. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
  8216. printf "%s\n" "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
  8217. sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
  8218. test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
  8219. if test -n "$ac_tool_prefix"; then
  8220. for ac_prog in ar
  8221. do
  8222. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  8223. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  8224. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  8225. printf %s "checking for $ac_word... " >&6; }
  8226. if test ${ac_cv_prog_AR+y}
  8227. then :
  8228. printf %s "(cached) " >&6
  8229. else $as_nop
  8230. if test -n "$AR"; then
  8231. ac_cv_prog_AR="$AR" # Let the user override the test.
  8232. else
  8233. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  8234. for as_dir in $PATH
  8235. do
  8236. IFS=$as_save_IFS
  8237. case $as_dir in #(((
  8238. '') as_dir=./ ;;
  8239. */) ;;
  8240. *) as_dir=$as_dir/ ;;
  8241. esac
  8242. for ac_exec_ext in '' $ac_executable_extensions; do
  8243. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  8244. ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
  8245. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  8246. break 2
  8247. fi
  8248. done
  8249. done
  8250. IFS=$as_save_IFS
  8251. fi
  8252. fi
  8253. AR=$ac_cv_prog_AR
  8254. if test -n "$AR"; then
  8255. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
  8256. printf "%s\n" "$AR" >&6; }
  8257. else
  8258. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  8259. printf "%s\n" "no" >&6; }
  8260. fi
  8261. test -n "$AR" && break
  8262. done
  8263. fi
  8264. if test -z "$AR"; then
  8265. ac_ct_AR=$AR
  8266. for ac_prog in ar
  8267. do
  8268. # Extract the first word of "$ac_prog", so it can be a program name with args.
  8269. set dummy $ac_prog; ac_word=$2
  8270. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  8271. printf %s "checking for $ac_word... " >&6; }
  8272. if test ${ac_cv_prog_ac_ct_AR+y}
  8273. then :
  8274. printf %s "(cached) " >&6
  8275. else $as_nop
  8276. if test -n "$ac_ct_AR"; then
  8277. ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
  8278. else
  8279. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  8280. for as_dir in $PATH
  8281. do
  8282. IFS=$as_save_IFS
  8283. case $as_dir in #(((
  8284. '') as_dir=./ ;;
  8285. */) ;;
  8286. *) as_dir=$as_dir/ ;;
  8287. esac
  8288. for ac_exec_ext in '' $ac_executable_extensions; do
  8289. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  8290. ac_cv_prog_ac_ct_AR="$ac_prog"
  8291. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  8292. break 2
  8293. fi
  8294. done
  8295. done
  8296. IFS=$as_save_IFS
  8297. fi
  8298. fi
  8299. ac_ct_AR=$ac_cv_prog_ac_ct_AR
  8300. if test -n "$ac_ct_AR"; then
  8301. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
  8302. printf "%s\n" "$ac_ct_AR" >&6; }
  8303. else
  8304. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  8305. printf "%s\n" "no" >&6; }
  8306. fi
  8307. test -n "$ac_ct_AR" && break
  8308. done
  8309. if test "x$ac_ct_AR" = x; then
  8310. AR="false"
  8311. else
  8312. case $cross_compiling:$ac_tool_warned in
  8313. yes:)
  8314. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  8315. printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  8316. ac_tool_warned=yes ;;
  8317. esac
  8318. AR=$ac_ct_AR
  8319. fi
  8320. fi
  8321. : ${AR=ar}
  8322. : ${AR_FLAGS=cr}
  8323. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
  8324. printf %s "checking for archiver @FILE support... " >&6; }
  8325. if test ${lt_cv_ar_at_file+y}
  8326. then :
  8327. printf %s "(cached) " >&6
  8328. else $as_nop
  8329. lt_cv_ar_at_file=no
  8330. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  8331. /* end confdefs.h. */
  8332. int main (void)
  8333. {
  8334. ;
  8335. return 0;
  8336. }
  8337. _ACEOF
  8338. if ac_fn_c_try_compile "$LINENO"
  8339. then :
  8340. echo conftest.$ac_objext > conftest.lst
  8341. lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
  8342. { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
  8343. (eval $lt_ar_try) 2>&5
  8344. ac_status=$?
  8345. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  8346. test $ac_status = 0; }
  8347. if test 0 -eq "$ac_status"; then
  8348. # Ensure the archiver fails upon bogus file names.
  8349. rm -f conftest.$ac_objext libconftest.a
  8350. { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
  8351. (eval $lt_ar_try) 2>&5
  8352. ac_status=$?
  8353. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  8354. test $ac_status = 0; }
  8355. if test 0 -ne "$ac_status"; then
  8356. lt_cv_ar_at_file=@
  8357. fi
  8358. fi
  8359. rm -f conftest.* libconftest.a
  8360. fi
  8361. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  8362. fi
  8363. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
  8364. printf "%s\n" "$lt_cv_ar_at_file" >&6; }
  8365. if test no = "$lt_cv_ar_at_file"; then
  8366. archiver_list_spec=
  8367. else
  8368. archiver_list_spec=$lt_cv_ar_at_file
  8369. fi
  8370. if test -n "$ac_tool_prefix"; then
  8371. # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
  8372. set dummy ${ac_tool_prefix}strip; ac_word=$2
  8373. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  8374. printf %s "checking for $ac_word... " >&6; }
  8375. if test ${ac_cv_prog_STRIP+y}
  8376. then :
  8377. printf %s "(cached) " >&6
  8378. else $as_nop
  8379. if test -n "$STRIP"; then
  8380. ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
  8381. else
  8382. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  8383. for as_dir in $PATH
  8384. do
  8385. IFS=$as_save_IFS
  8386. case $as_dir in #(((
  8387. '') as_dir=./ ;;
  8388. */) ;;
  8389. *) as_dir=$as_dir/ ;;
  8390. esac
  8391. for ac_exec_ext in '' $ac_executable_extensions; do
  8392. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  8393. ac_cv_prog_STRIP="${ac_tool_prefix}strip"
  8394. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  8395. break 2
  8396. fi
  8397. done
  8398. done
  8399. IFS=$as_save_IFS
  8400. fi
  8401. fi
  8402. STRIP=$ac_cv_prog_STRIP
  8403. if test -n "$STRIP"; then
  8404. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
  8405. printf "%s\n" "$STRIP" >&6; }
  8406. else
  8407. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  8408. printf "%s\n" "no" >&6; }
  8409. fi
  8410. fi
  8411. if test -z "$ac_cv_prog_STRIP"; then
  8412. ac_ct_STRIP=$STRIP
  8413. # Extract the first word of "strip", so it can be a program name with args.
  8414. set dummy strip; ac_word=$2
  8415. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  8416. printf %s "checking for $ac_word... " >&6; }
  8417. if test ${ac_cv_prog_ac_ct_STRIP+y}
  8418. then :
  8419. printf %s "(cached) " >&6
  8420. else $as_nop
  8421. if test -n "$ac_ct_STRIP"; then
  8422. ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
  8423. else
  8424. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  8425. for as_dir in $PATH
  8426. do
  8427. IFS=$as_save_IFS
  8428. case $as_dir in #(((
  8429. '') as_dir=./ ;;
  8430. */) ;;
  8431. *) as_dir=$as_dir/ ;;
  8432. esac
  8433. for ac_exec_ext in '' $ac_executable_extensions; do
  8434. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  8435. ac_cv_prog_ac_ct_STRIP="strip"
  8436. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  8437. break 2
  8438. fi
  8439. done
  8440. done
  8441. IFS=$as_save_IFS
  8442. fi
  8443. fi
  8444. ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
  8445. if test -n "$ac_ct_STRIP"; then
  8446. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
  8447. printf "%s\n" "$ac_ct_STRIP" >&6; }
  8448. else
  8449. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  8450. printf "%s\n" "no" >&6; }
  8451. fi
  8452. if test "x$ac_ct_STRIP" = x; then
  8453. STRIP=":"
  8454. else
  8455. case $cross_compiling:$ac_tool_warned in
  8456. yes:)
  8457. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  8458. printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  8459. ac_tool_warned=yes ;;
  8460. esac
  8461. STRIP=$ac_ct_STRIP
  8462. fi
  8463. else
  8464. STRIP="$ac_cv_prog_STRIP"
  8465. fi
  8466. test -z "$STRIP" && STRIP=:
  8467. if test -n "$ac_tool_prefix"; then
  8468. # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
  8469. set dummy ${ac_tool_prefix}ranlib; ac_word=$2
  8470. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  8471. printf %s "checking for $ac_word... " >&6; }
  8472. if test ${ac_cv_prog_RANLIB+y}
  8473. then :
  8474. printf %s "(cached) " >&6
  8475. else $as_nop
  8476. if test -n "$RANLIB"; then
  8477. ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
  8478. else
  8479. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  8480. for as_dir in $PATH
  8481. do
  8482. IFS=$as_save_IFS
  8483. case $as_dir in #(((
  8484. '') as_dir=./ ;;
  8485. */) ;;
  8486. *) as_dir=$as_dir/ ;;
  8487. esac
  8488. for ac_exec_ext in '' $ac_executable_extensions; do
  8489. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  8490. ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
  8491. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  8492. break 2
  8493. fi
  8494. done
  8495. done
  8496. IFS=$as_save_IFS
  8497. fi
  8498. fi
  8499. RANLIB=$ac_cv_prog_RANLIB
  8500. if test -n "$RANLIB"; then
  8501. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
  8502. printf "%s\n" "$RANLIB" >&6; }
  8503. else
  8504. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  8505. printf "%s\n" "no" >&6; }
  8506. fi
  8507. fi
  8508. if test -z "$ac_cv_prog_RANLIB"; then
  8509. ac_ct_RANLIB=$RANLIB
  8510. # Extract the first word of "ranlib", so it can be a program name with args.
  8511. set dummy ranlib; ac_word=$2
  8512. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  8513. printf %s "checking for $ac_word... " >&6; }
  8514. if test ${ac_cv_prog_ac_ct_RANLIB+y}
  8515. then :
  8516. printf %s "(cached) " >&6
  8517. else $as_nop
  8518. if test -n "$ac_ct_RANLIB"; then
  8519. ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
  8520. else
  8521. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  8522. for as_dir in $PATH
  8523. do
  8524. IFS=$as_save_IFS
  8525. case $as_dir in #(((
  8526. '') as_dir=./ ;;
  8527. */) ;;
  8528. *) as_dir=$as_dir/ ;;
  8529. esac
  8530. for ac_exec_ext in '' $ac_executable_extensions; do
  8531. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  8532. ac_cv_prog_ac_ct_RANLIB="ranlib"
  8533. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  8534. break 2
  8535. fi
  8536. done
  8537. done
  8538. IFS=$as_save_IFS
  8539. fi
  8540. fi
  8541. ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
  8542. if test -n "$ac_ct_RANLIB"; then
  8543. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
  8544. printf "%s\n" "$ac_ct_RANLIB" >&6; }
  8545. else
  8546. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  8547. printf "%s\n" "no" >&6; }
  8548. fi
  8549. if test "x$ac_ct_RANLIB" = x; then
  8550. RANLIB=":"
  8551. else
  8552. case $cross_compiling:$ac_tool_warned in
  8553. yes:)
  8554. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  8555. printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  8556. ac_tool_warned=yes ;;
  8557. esac
  8558. RANLIB=$ac_ct_RANLIB
  8559. fi
  8560. else
  8561. RANLIB="$ac_cv_prog_RANLIB"
  8562. fi
  8563. test -z "$RANLIB" && RANLIB=:
  8564. # Determine commands to create old-style static archives.
  8565. old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
  8566. old_postinstall_cmds='chmod 644 $oldlib'
  8567. old_postuninstall_cmds=
  8568. if test -n "$RANLIB"; then
  8569. case $host_os in
  8570. bitrig* | openbsd*)
  8571. old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
  8572. ;;
  8573. *)
  8574. old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
  8575. ;;
  8576. esac
  8577. old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
  8578. fi
  8579. case $host_os in
  8580. darwin*)
  8581. lock_old_archive_extraction=yes ;;
  8582. *)
  8583. lock_old_archive_extraction=no ;;
  8584. esac
  8585. # If no C compiler was specified, use CC.
  8586. LTCC=${LTCC-"$CC"}
  8587. # If no C compiler flags were specified, use CFLAGS.
  8588. LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
  8589. # Allow CC to be a program name with arguments.
  8590. compiler=$CC
  8591. # Check for command to grab the raw symbol name followed by C symbol from nm.
  8592. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
  8593. printf %s "checking command to parse $NM output from $compiler object... " >&6; }
  8594. if test ${lt_cv_sys_global_symbol_pipe+y}
  8595. then :
  8596. printf %s "(cached) " >&6
  8597. else $as_nop
  8598. # These are sane defaults that work on at least a few old systems.
  8599. # [They come from Ultrix. What could be older than Ultrix?!! ;)]
  8600. # Character class describing NM global symbol codes.
  8601. symcode='[BCDEGRST]'
  8602. # Regexp to match symbols that can be accessed directly from C.
  8603. sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
  8604. # Define system-specific variables.
  8605. case $host_os in
  8606. aix*)
  8607. symcode='[BCDT]'
  8608. ;;
  8609. cygwin* | mingw* | pw32* | cegcc*)
  8610. symcode='[ABCDGISTW]'
  8611. ;;
  8612. hpux*)
  8613. if test ia64 = "$host_cpu"; then
  8614. symcode='[ABCDEGRST]'
  8615. fi
  8616. ;;
  8617. irix* | nonstopux*)
  8618. symcode='[BCDEGRST]'
  8619. ;;
  8620. osf*)
  8621. symcode='[BCDEGQRST]'
  8622. ;;
  8623. solaris*)
  8624. symcode='[BDRT]'
  8625. ;;
  8626. sco3.2v5*)
  8627. symcode='[DT]'
  8628. ;;
  8629. sysv4.2uw2*)
  8630. symcode='[DT]'
  8631. ;;
  8632. sysv5* | sco5v6* | unixware* | OpenUNIX*)
  8633. symcode='[ABDT]'
  8634. ;;
  8635. sysv4)
  8636. symcode='[DFNSTU]'
  8637. ;;
  8638. esac
  8639. # If we're using GNU nm, then use its standard symbol codes.
  8640. case `$NM -V 2>&1` in
  8641. *GNU* | *'with BFD'*)
  8642. symcode='[ABCDGIRSTW]' ;;
  8643. esac
  8644. if test "$lt_cv_nm_interface" = "MS dumpbin"; then
  8645. # Gets list of data symbols to import.
  8646. lt_cv_sys_global_symbol_to_import="sed -n -e 's/^I .* \(.*\)$/\1/p'"
  8647. # Adjust the below global symbol transforms to fixup imported variables.
  8648. lt_cdecl_hook=" -e 's/^I .* \(.*\)$/extern __declspec(dllimport) char \1;/p'"
  8649. lt_c_name_hook=" -e 's/^I .* \(.*\)$/ {\"\1\", (void *) 0},/p'"
  8650. lt_c_name_lib_hook="\
  8651. -e 's/^I .* \(lib.*\)$/ {\"\1\", (void *) 0},/p'\
  8652. -e 's/^I .* \(.*\)$/ {\"lib\1\", (void *) 0},/p'"
  8653. else
  8654. # Disable hooks by default.
  8655. lt_cv_sys_global_symbol_to_import=
  8656. lt_cdecl_hook=
  8657. lt_c_name_hook=
  8658. lt_c_name_lib_hook=
  8659. fi
  8660. # Transform an extracted symbol line into a proper C declaration.
  8661. # Some systems (esp. on ia64) link data and code symbols differently,
  8662. # so use this general approach.
  8663. lt_cv_sys_global_symbol_to_cdecl="sed -n"\
  8664. $lt_cdecl_hook\
  8665. " -e 's/^T .* \(.*\)$/extern int \1();/p'"\
  8666. " -e 's/^$symcode$symcode* .* \(.*\)$/extern char \1;/p'"
  8667. # Transform an extracted symbol line into symbol name and symbol address
  8668. lt_cv_sys_global_symbol_to_c_name_address="sed -n"\
  8669. $lt_c_name_hook\
  8670. " -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\
  8671. " -e 's/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/p'"
  8672. # Transform an extracted symbol line into symbol name with lib prefix and
  8673. # symbol address.
  8674. lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n"\
  8675. $lt_c_name_lib_hook\
  8676. " -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\
  8677. " -e 's/^$symcode$symcode* .* \(lib.*\)$/ {\"\1\", (void *) \&\1},/p'"\
  8678. " -e 's/^$symcode$symcode* .* \(.*\)$/ {\"lib\1\", (void *) \&\1},/p'"
  8679. # Handle CRLF in mingw tool chain
  8680. opt_cr=
  8681. case $build_os in
  8682. mingw*)
  8683. opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
  8684. ;;
  8685. esac
  8686. # Try without a prefix underscore, then with it.
  8687. for ac_symprfx in "" "_"; do
  8688. # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
  8689. symxfrm="\\1 $ac_symprfx\\2 \\2"
  8690. # Write the raw and C identifiers.
  8691. if test "$lt_cv_nm_interface" = "MS dumpbin"; then
  8692. # Fake it for dumpbin and say T for any non-static function,
  8693. # D for any global variable and I for any imported variable.
  8694. # Also find C++ and __fastcall symbols from MSVC++,
  8695. # which start with @ or ?.
  8696. lt_cv_sys_global_symbol_pipe="$AWK '"\
  8697. " {last_section=section; section=\$ 3};"\
  8698. " /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
  8699. " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
  8700. " /^ *Symbol name *: /{split(\$ 0,sn,\":\"); si=substr(sn[2],2)};"\
  8701. " /^ *Type *: code/{print \"T\",si,substr(si,length(prfx))};"\
  8702. " /^ *Type *: data/{print \"I\",si,substr(si,length(prfx))};"\
  8703. " \$ 0!~/External *\|/{next};"\
  8704. " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
  8705. " {if(hide[section]) next};"\
  8706. " {f=\"D\"}; \$ 0~/\(\).*\|/{f=\"T\"};"\
  8707. " {split(\$ 0,a,/\||\r/); split(a[2],s)};"\
  8708. " s[1]~/^[@?]/{print f,s[1],s[1]; next};"\
  8709. " s[1]~prfx {split(s[1],t,\"@\"); print f,t[1],substr(t[1],length(prfx))}"\
  8710. " ' prfx=^$ac_symprfx"
  8711. else
  8712. lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
  8713. fi
  8714. lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
  8715. # Check to see that the pipe works correctly.
  8716. pipe_works=no
  8717. rm -f conftest*
  8718. cat > conftest.$ac_ext <<_LT_EOF
  8719. #ifdef __cplusplus
  8720. extern "C" {
  8721. #endif
  8722. char nm_test_var;
  8723. void nm_test_func(void);
  8724. void nm_test_func(void){}
  8725. #ifdef __cplusplus
  8726. }
  8727. #endif
  8728. int main(){nm_test_var='a';nm_test_func();return(0);}
  8729. _LT_EOF
  8730. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  8731. (eval $ac_compile) 2>&5
  8732. ac_status=$?
  8733. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  8734. test $ac_status = 0; }; then
  8735. # Now try to grab the symbols.
  8736. nlist=conftest.nm
  8737. $ECHO "$as_me:$LINENO: $NM conftest.$ac_objext | $lt_cv_sys_global_symbol_pipe > $nlist" >&5
  8738. if eval "$NM" conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist 2>&5 && test -s "$nlist"; then
  8739. # Try sorting and uniquifying the output.
  8740. if sort "$nlist" | uniq > "$nlist"T; then
  8741. mv -f "$nlist"T "$nlist"
  8742. else
  8743. rm -f "$nlist"T
  8744. fi
  8745. # Make sure that we snagged all the symbols we need.
  8746. if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
  8747. if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
  8748. cat <<_LT_EOF > conftest.$ac_ext
  8749. /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */
  8750. #if defined _WIN32 || defined __CYGWIN__ || defined _WIN32_WCE
  8751. /* DATA imports from DLLs on WIN32 can't be const, because runtime
  8752. relocations are performed -- see ld's documentation on pseudo-relocs. */
  8753. # define LT_DLSYM_CONST
  8754. #elif defined __osf__
  8755. /* This system does not cope well with relocations in const data. */
  8756. # define LT_DLSYM_CONST
  8757. #else
  8758. # define LT_DLSYM_CONST const
  8759. #endif
  8760. #ifdef __cplusplus
  8761. extern "C" {
  8762. #endif
  8763. _LT_EOF
  8764. # Now generate the symbol file.
  8765. eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
  8766. cat <<_LT_EOF >> conftest.$ac_ext
  8767. /* The mapping between symbol names and symbols. */
  8768. LT_DLSYM_CONST struct {
  8769. const char *name;
  8770. void *address;
  8771. }
  8772. lt__PROGRAM__LTX_preloaded_symbols[] =
  8773. {
  8774. { "@PROGRAM@", (void *) 0 },
  8775. _LT_EOF
  8776. $SED "s/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
  8777. cat <<\_LT_EOF >> conftest.$ac_ext
  8778. {0, (void *) 0}
  8779. };
  8780. /* This works around a problem in FreeBSD linker */
  8781. #ifdef FREEBSD_WORKAROUND
  8782. static const void *lt_preloaded_setup() {
  8783. return lt__PROGRAM__LTX_preloaded_symbols;
  8784. }
  8785. #endif
  8786. #ifdef __cplusplus
  8787. }
  8788. #endif
  8789. _LT_EOF
  8790. # Now try linking the two files.
  8791. mv conftest.$ac_objext conftstm.$ac_objext
  8792. lt_globsym_save_LIBS=$LIBS
  8793. lt_globsym_save_CFLAGS=$CFLAGS
  8794. LIBS=conftstm.$ac_objext
  8795. CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
  8796. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
  8797. (eval $ac_link) 2>&5
  8798. ac_status=$?
  8799. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  8800. test $ac_status = 0; } && test -s conftest$ac_exeext; then
  8801. pipe_works=yes
  8802. fi
  8803. LIBS=$lt_globsym_save_LIBS
  8804. CFLAGS=$lt_globsym_save_CFLAGS
  8805. else
  8806. echo "cannot find nm_test_func in $nlist" >&5
  8807. fi
  8808. else
  8809. echo "cannot find nm_test_var in $nlist" >&5
  8810. fi
  8811. else
  8812. echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
  8813. fi
  8814. else
  8815. echo "$progname: failed program was:" >&5
  8816. cat conftest.$ac_ext >&5
  8817. fi
  8818. rm -rf conftest* conftst*
  8819. # Do not use the global_symbol_pipe unless it works.
  8820. if test yes = "$pipe_works"; then
  8821. break
  8822. else
  8823. lt_cv_sys_global_symbol_pipe=
  8824. fi
  8825. done
  8826. fi
  8827. if test -z "$lt_cv_sys_global_symbol_pipe"; then
  8828. lt_cv_sys_global_symbol_to_cdecl=
  8829. fi
  8830. if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
  8831. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: failed" >&5
  8832. printf "%s\n" "failed" >&6; }
  8833. else
  8834. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ok" >&5
  8835. printf "%s\n" "ok" >&6; }
  8836. fi
  8837. # Response file support.
  8838. if test "$lt_cv_nm_interface" = "MS dumpbin"; then
  8839. nm_file_list_spec='@'
  8840. elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
  8841. nm_file_list_spec='@'
  8842. fi
  8843. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
  8844. printf %s "checking for sysroot... " >&6; }
  8845. # Check whether --with-sysroot was given.
  8846. if test ${with_sysroot+y}
  8847. then :
  8848. withval=$with_sysroot;
  8849. else $as_nop
  8850. with_sysroot=no
  8851. fi
  8852. lt_sysroot=
  8853. case $with_sysroot in #(
  8854. yes)
  8855. if test yes = "$GCC"; then
  8856. lt_sysroot=`$CC --print-sysroot 2>/dev/null`
  8857. fi
  8858. ;; #(
  8859. /*)
  8860. lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
  8861. ;; #(
  8862. no|'')
  8863. ;; #(
  8864. *)
  8865. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $with_sysroot" >&5
  8866. printf "%s\n" "$with_sysroot" >&6; }
  8867. as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
  8868. ;;
  8869. esac
  8870. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
  8871. printf "%s\n" "${lt_sysroot:-no}" >&6; }
  8872. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a working dd" >&5
  8873. printf %s "checking for a working dd... " >&6; }
  8874. if test ${ac_cv_path_lt_DD+y}
  8875. then :
  8876. printf %s "(cached) " >&6
  8877. else $as_nop
  8878. printf 0123456789abcdef0123456789abcdef >conftest.i
  8879. cat conftest.i conftest.i >conftest2.i
  8880. : ${lt_DD:=$DD}
  8881. if test -z "$lt_DD"; then
  8882. ac_path_lt_DD_found=false
  8883. # Loop through the user's path and test for each of PROGNAME-LIST
  8884. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  8885. for as_dir in $PATH
  8886. do
  8887. IFS=$as_save_IFS
  8888. case $as_dir in #(((
  8889. '') as_dir=./ ;;
  8890. */) ;;
  8891. *) as_dir=$as_dir/ ;;
  8892. esac
  8893. for ac_prog in dd
  8894. do
  8895. for ac_exec_ext in '' $ac_executable_extensions; do
  8896. ac_path_lt_DD="$as_dir$ac_prog$ac_exec_ext"
  8897. as_fn_executable_p "$ac_path_lt_DD" || continue
  8898. if "$ac_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
  8899. cmp -s conftest.i conftest.out \
  8900. && ac_cv_path_lt_DD="$ac_path_lt_DD" ac_path_lt_DD_found=:
  8901. fi
  8902. $ac_path_lt_DD_found && break 3
  8903. done
  8904. done
  8905. done
  8906. IFS=$as_save_IFS
  8907. if test -z "$ac_cv_path_lt_DD"; then
  8908. :
  8909. fi
  8910. else
  8911. ac_cv_path_lt_DD=$lt_DD
  8912. fi
  8913. rm -f conftest.i conftest2.i conftest.out
  8914. fi
  8915. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_lt_DD" >&5
  8916. printf "%s\n" "$ac_cv_path_lt_DD" >&6; }
  8917. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to truncate binary pipes" >&5
  8918. printf %s "checking how to truncate binary pipes... " >&6; }
  8919. if test ${lt_cv_truncate_bin+y}
  8920. then :
  8921. printf %s "(cached) " >&6
  8922. else $as_nop
  8923. printf 0123456789abcdef0123456789abcdef >conftest.i
  8924. cat conftest.i conftest.i >conftest2.i
  8925. lt_cv_truncate_bin=
  8926. if "$ac_cv_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
  8927. cmp -s conftest.i conftest.out \
  8928. && lt_cv_truncate_bin="$ac_cv_path_lt_DD bs=4096 count=1"
  8929. fi
  8930. rm -f conftest.i conftest2.i conftest.out
  8931. test -z "$lt_cv_truncate_bin" && lt_cv_truncate_bin="$SED -e 4q"
  8932. fi
  8933. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_truncate_bin" >&5
  8934. printf "%s\n" "$lt_cv_truncate_bin" >&6; }
  8935. # Calculate cc_basename. Skip known compiler wrappers and cross-prefix.
  8936. func_cc_basename ()
  8937. {
  8938. for cc_temp in $*""; do
  8939. case $cc_temp in
  8940. compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
  8941. distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
  8942. \-*) ;;
  8943. *) break;;
  8944. esac
  8945. done
  8946. func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
  8947. }
  8948. # Check whether --enable-libtool-lock was given.
  8949. if test ${enable_libtool_lock+y}
  8950. then :
  8951. enableval=$enable_libtool_lock;
  8952. fi
  8953. test no = "$enable_libtool_lock" || enable_libtool_lock=yes
  8954. # Some flags need to be propagated to the compiler or linker for good
  8955. # libtool support.
  8956. case $host in
  8957. ia64-*-hpux*)
  8958. # Find out what ABI is being produced by ac_compile, and set mode
  8959. # options accordingly.
  8960. echo 'int i;' > conftest.$ac_ext
  8961. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  8962. (eval $ac_compile) 2>&5
  8963. ac_status=$?
  8964. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  8965. test $ac_status = 0; }; then
  8966. case `/usr/bin/file conftest.$ac_objext` in
  8967. *ELF-32*)
  8968. HPUX_IA64_MODE=32
  8969. ;;
  8970. *ELF-64*)
  8971. HPUX_IA64_MODE=64
  8972. ;;
  8973. esac
  8974. fi
  8975. rm -rf conftest*
  8976. ;;
  8977. *-*-irix6*)
  8978. # Find out what ABI is being produced by ac_compile, and set linker
  8979. # options accordingly.
  8980. echo '#line '$LINENO' "configure"' > conftest.$ac_ext
  8981. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  8982. (eval $ac_compile) 2>&5
  8983. ac_status=$?
  8984. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  8985. test $ac_status = 0; }; then
  8986. if test yes = "$lt_cv_prog_gnu_ld"; then
  8987. case `/usr/bin/file conftest.$ac_objext` in
  8988. *32-bit*)
  8989. LD="${LD-ld} -melf32bsmip"
  8990. ;;
  8991. *N32*)
  8992. LD="${LD-ld} -melf32bmipn32"
  8993. ;;
  8994. *64-bit*)
  8995. LD="${LD-ld} -melf64bmip"
  8996. ;;
  8997. esac
  8998. else
  8999. case `/usr/bin/file conftest.$ac_objext` in
  9000. *32-bit*)
  9001. LD="${LD-ld} -32"
  9002. ;;
  9003. *N32*)
  9004. LD="${LD-ld} -n32"
  9005. ;;
  9006. *64-bit*)
  9007. LD="${LD-ld} -64"
  9008. ;;
  9009. esac
  9010. fi
  9011. fi
  9012. rm -rf conftest*
  9013. ;;
  9014. mips64*-*linux*)
  9015. # Find out what ABI is being produced by ac_compile, and set linker
  9016. # options accordingly.
  9017. echo '#line '$LINENO' "configure"' > conftest.$ac_ext
  9018. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  9019. (eval $ac_compile) 2>&5
  9020. ac_status=$?
  9021. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  9022. test $ac_status = 0; }; then
  9023. emul=elf
  9024. case `/usr/bin/file conftest.$ac_objext` in
  9025. *32-bit*)
  9026. emul="${emul}32"
  9027. ;;
  9028. *64-bit*)
  9029. emul="${emul}64"
  9030. ;;
  9031. esac
  9032. case `/usr/bin/file conftest.$ac_objext` in
  9033. *MSB*)
  9034. emul="${emul}btsmip"
  9035. ;;
  9036. *LSB*)
  9037. emul="${emul}ltsmip"
  9038. ;;
  9039. esac
  9040. case `/usr/bin/file conftest.$ac_objext` in
  9041. *N32*)
  9042. emul="${emul}n32"
  9043. ;;
  9044. esac
  9045. LD="${LD-ld} -m $emul"
  9046. fi
  9047. rm -rf conftest*
  9048. ;;
  9049. x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
  9050. s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
  9051. # Find out what ABI is being produced by ac_compile, and set linker
  9052. # options accordingly. Note that the listed cases only cover the
  9053. # situations where additional linker options are needed (such as when
  9054. # doing 32-bit compilation for a host where ld defaults to 64-bit, or
  9055. # vice versa); the common cases where no linker options are needed do
  9056. # not appear in the list.
  9057. echo 'int i;' > conftest.$ac_ext
  9058. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  9059. (eval $ac_compile) 2>&5
  9060. ac_status=$?
  9061. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  9062. test $ac_status = 0; }; then
  9063. case `/usr/bin/file conftest.o` in
  9064. *32-bit*)
  9065. case $host in
  9066. x86_64-*kfreebsd*-gnu)
  9067. LD="${LD-ld} -m elf_i386_fbsd"
  9068. ;;
  9069. x86_64-*linux*)
  9070. case `/usr/bin/file conftest.o` in
  9071. *x86-64*)
  9072. LD="${LD-ld} -m elf32_x86_64"
  9073. ;;
  9074. *)
  9075. LD="${LD-ld} -m elf_i386"
  9076. ;;
  9077. esac
  9078. ;;
  9079. powerpc64le-*linux*)
  9080. LD="${LD-ld} -m elf32lppclinux"
  9081. ;;
  9082. powerpc64-*linux*)
  9083. LD="${LD-ld} -m elf32ppclinux"
  9084. ;;
  9085. s390x-*linux*)
  9086. LD="${LD-ld} -m elf_s390"
  9087. ;;
  9088. sparc64-*linux*)
  9089. LD="${LD-ld} -m elf32_sparc"
  9090. ;;
  9091. esac
  9092. ;;
  9093. *64-bit*)
  9094. case $host in
  9095. x86_64-*kfreebsd*-gnu)
  9096. LD="${LD-ld} -m elf_x86_64_fbsd"
  9097. ;;
  9098. x86_64-*linux*)
  9099. LD="${LD-ld} -m elf_x86_64"
  9100. ;;
  9101. powerpcle-*linux*)
  9102. LD="${LD-ld} -m elf64lppc"
  9103. ;;
  9104. powerpc-*linux*)
  9105. LD="${LD-ld} -m elf64ppc"
  9106. ;;
  9107. s390*-*linux*|s390*-*tpf*)
  9108. LD="${LD-ld} -m elf64_s390"
  9109. ;;
  9110. sparc*-*linux*)
  9111. LD="${LD-ld} -m elf64_sparc"
  9112. ;;
  9113. esac
  9114. ;;
  9115. esac
  9116. fi
  9117. rm -rf conftest*
  9118. ;;
  9119. *-*-sco3.2v5*)
  9120. # On SCO OpenServer 5, we need -belf to get full-featured binaries.
  9121. SAVE_CFLAGS=$CFLAGS
  9122. CFLAGS="$CFLAGS -belf"
  9123. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
  9124. printf %s "checking whether the C compiler needs -belf... " >&6; }
  9125. if test ${lt_cv_cc_needs_belf+y}
  9126. then :
  9127. printf %s "(cached) " >&6
  9128. else $as_nop
  9129. ac_ext=c
  9130. ac_cpp='$CPP $CPPFLAGS'
  9131. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  9132. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  9133. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  9134. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9135. /* end confdefs.h. */
  9136. int main (void)
  9137. {
  9138. ;
  9139. return 0;
  9140. }
  9141. _ACEOF
  9142. if ac_fn_c_try_link "$LINENO"
  9143. then :
  9144. lt_cv_cc_needs_belf=yes
  9145. else $as_nop
  9146. lt_cv_cc_needs_belf=no
  9147. fi
  9148. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  9149. conftest$ac_exeext conftest.$ac_ext
  9150. ac_ext=c
  9151. ac_cpp='$CPP $CPPFLAGS'
  9152. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  9153. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  9154. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  9155. fi
  9156. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
  9157. printf "%s\n" "$lt_cv_cc_needs_belf" >&6; }
  9158. if test yes != "$lt_cv_cc_needs_belf"; then
  9159. # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
  9160. CFLAGS=$SAVE_CFLAGS
  9161. fi
  9162. ;;
  9163. *-*solaris*)
  9164. # Find out what ABI is being produced by ac_compile, and set linker
  9165. # options accordingly.
  9166. echo 'int i;' > conftest.$ac_ext
  9167. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  9168. (eval $ac_compile) 2>&5
  9169. ac_status=$?
  9170. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  9171. test $ac_status = 0; }; then
  9172. case `/usr/bin/file conftest.o` in
  9173. *64-bit*)
  9174. case $lt_cv_prog_gnu_ld in
  9175. yes*)
  9176. case $host in
  9177. i?86-*-solaris*|x86_64-*-solaris*)
  9178. LD="${LD-ld} -m elf_x86_64"
  9179. ;;
  9180. sparc*-*-solaris*)
  9181. LD="${LD-ld} -m elf64_sparc"
  9182. ;;
  9183. esac
  9184. # GNU ld 2.21 introduced _sol2 emulations. Use them if available.
  9185. if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
  9186. LD=${LD-ld}_sol2
  9187. fi
  9188. ;;
  9189. *)
  9190. if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
  9191. LD="${LD-ld} -64"
  9192. fi
  9193. ;;
  9194. esac
  9195. ;;
  9196. esac
  9197. fi
  9198. rm -rf conftest*
  9199. ;;
  9200. esac
  9201. need_locks=$enable_libtool_lock
  9202. if test -n "$ac_tool_prefix"; then
  9203. # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
  9204. set dummy ${ac_tool_prefix}mt; ac_word=$2
  9205. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  9206. printf %s "checking for $ac_word... " >&6; }
  9207. if test ${ac_cv_prog_MANIFEST_TOOL+y}
  9208. then :
  9209. printf %s "(cached) " >&6
  9210. else $as_nop
  9211. if test -n "$MANIFEST_TOOL"; then
  9212. ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
  9213. else
  9214. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  9215. for as_dir in $PATH
  9216. do
  9217. IFS=$as_save_IFS
  9218. case $as_dir in #(((
  9219. '') as_dir=./ ;;
  9220. */) ;;
  9221. *) as_dir=$as_dir/ ;;
  9222. esac
  9223. for ac_exec_ext in '' $ac_executable_extensions; do
  9224. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  9225. ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
  9226. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  9227. break 2
  9228. fi
  9229. done
  9230. done
  9231. IFS=$as_save_IFS
  9232. fi
  9233. fi
  9234. MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
  9235. if test -n "$MANIFEST_TOOL"; then
  9236. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
  9237. printf "%s\n" "$MANIFEST_TOOL" >&6; }
  9238. else
  9239. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  9240. printf "%s\n" "no" >&6; }
  9241. fi
  9242. fi
  9243. if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
  9244. ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
  9245. # Extract the first word of "mt", so it can be a program name with args.
  9246. set dummy mt; ac_word=$2
  9247. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  9248. printf %s "checking for $ac_word... " >&6; }
  9249. if test ${ac_cv_prog_ac_ct_MANIFEST_TOOL+y}
  9250. then :
  9251. printf %s "(cached) " >&6
  9252. else $as_nop
  9253. if test -n "$ac_ct_MANIFEST_TOOL"; then
  9254. ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
  9255. else
  9256. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  9257. for as_dir in $PATH
  9258. do
  9259. IFS=$as_save_IFS
  9260. case $as_dir in #(((
  9261. '') as_dir=./ ;;
  9262. */) ;;
  9263. *) as_dir=$as_dir/ ;;
  9264. esac
  9265. for ac_exec_ext in '' $ac_executable_extensions; do
  9266. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  9267. ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
  9268. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  9269. break 2
  9270. fi
  9271. done
  9272. done
  9273. IFS=$as_save_IFS
  9274. fi
  9275. fi
  9276. ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
  9277. if test -n "$ac_ct_MANIFEST_TOOL"; then
  9278. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
  9279. printf "%s\n" "$ac_ct_MANIFEST_TOOL" >&6; }
  9280. else
  9281. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  9282. printf "%s\n" "no" >&6; }
  9283. fi
  9284. if test "x$ac_ct_MANIFEST_TOOL" = x; then
  9285. MANIFEST_TOOL=":"
  9286. else
  9287. case $cross_compiling:$ac_tool_warned in
  9288. yes:)
  9289. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  9290. printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  9291. ac_tool_warned=yes ;;
  9292. esac
  9293. MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
  9294. fi
  9295. else
  9296. MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
  9297. fi
  9298. test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
  9299. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
  9300. printf %s "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
  9301. if test ${lt_cv_path_mainfest_tool+y}
  9302. then :
  9303. printf %s "(cached) " >&6
  9304. else $as_nop
  9305. lt_cv_path_mainfest_tool=no
  9306. echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
  9307. $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
  9308. cat conftest.err >&5
  9309. if $GREP 'Manifest Tool' conftest.out > /dev/null; then
  9310. lt_cv_path_mainfest_tool=yes
  9311. fi
  9312. rm -f conftest*
  9313. fi
  9314. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
  9315. printf "%s\n" "$lt_cv_path_mainfest_tool" >&6; }
  9316. if test yes != "$lt_cv_path_mainfest_tool"; then
  9317. MANIFEST_TOOL=:
  9318. fi
  9319. case $host_os in
  9320. rhapsody* | darwin*)
  9321. if test -n "$ac_tool_prefix"; then
  9322. # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
  9323. set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
  9324. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  9325. printf %s "checking for $ac_word... " >&6; }
  9326. if test ${ac_cv_prog_DSYMUTIL+y}
  9327. then :
  9328. printf %s "(cached) " >&6
  9329. else $as_nop
  9330. if test -n "$DSYMUTIL"; then
  9331. ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
  9332. else
  9333. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  9334. for as_dir in $PATH
  9335. do
  9336. IFS=$as_save_IFS
  9337. case $as_dir in #(((
  9338. '') as_dir=./ ;;
  9339. */) ;;
  9340. *) as_dir=$as_dir/ ;;
  9341. esac
  9342. for ac_exec_ext in '' $ac_executable_extensions; do
  9343. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  9344. ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
  9345. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  9346. break 2
  9347. fi
  9348. done
  9349. done
  9350. IFS=$as_save_IFS
  9351. fi
  9352. fi
  9353. DSYMUTIL=$ac_cv_prog_DSYMUTIL
  9354. if test -n "$DSYMUTIL"; then
  9355. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
  9356. printf "%s\n" "$DSYMUTIL" >&6; }
  9357. else
  9358. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  9359. printf "%s\n" "no" >&6; }
  9360. fi
  9361. fi
  9362. if test -z "$ac_cv_prog_DSYMUTIL"; then
  9363. ac_ct_DSYMUTIL=$DSYMUTIL
  9364. # Extract the first word of "dsymutil", so it can be a program name with args.
  9365. set dummy dsymutil; ac_word=$2
  9366. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  9367. printf %s "checking for $ac_word... " >&6; }
  9368. if test ${ac_cv_prog_ac_ct_DSYMUTIL+y}
  9369. then :
  9370. printf %s "(cached) " >&6
  9371. else $as_nop
  9372. if test -n "$ac_ct_DSYMUTIL"; then
  9373. ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
  9374. else
  9375. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  9376. for as_dir in $PATH
  9377. do
  9378. IFS=$as_save_IFS
  9379. case $as_dir in #(((
  9380. '') as_dir=./ ;;
  9381. */) ;;
  9382. *) as_dir=$as_dir/ ;;
  9383. esac
  9384. for ac_exec_ext in '' $ac_executable_extensions; do
  9385. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  9386. ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
  9387. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  9388. break 2
  9389. fi
  9390. done
  9391. done
  9392. IFS=$as_save_IFS
  9393. fi
  9394. fi
  9395. ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
  9396. if test -n "$ac_ct_DSYMUTIL"; then
  9397. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
  9398. printf "%s\n" "$ac_ct_DSYMUTIL" >&6; }
  9399. else
  9400. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  9401. printf "%s\n" "no" >&6; }
  9402. fi
  9403. if test "x$ac_ct_DSYMUTIL" = x; then
  9404. DSYMUTIL=":"
  9405. else
  9406. case $cross_compiling:$ac_tool_warned in
  9407. yes:)
  9408. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  9409. printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  9410. ac_tool_warned=yes ;;
  9411. esac
  9412. DSYMUTIL=$ac_ct_DSYMUTIL
  9413. fi
  9414. else
  9415. DSYMUTIL="$ac_cv_prog_DSYMUTIL"
  9416. fi
  9417. if test -n "$ac_tool_prefix"; then
  9418. # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
  9419. set dummy ${ac_tool_prefix}nmedit; ac_word=$2
  9420. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  9421. printf %s "checking for $ac_word... " >&6; }
  9422. if test ${ac_cv_prog_NMEDIT+y}
  9423. then :
  9424. printf %s "(cached) " >&6
  9425. else $as_nop
  9426. if test -n "$NMEDIT"; then
  9427. ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
  9428. else
  9429. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  9430. for as_dir in $PATH
  9431. do
  9432. IFS=$as_save_IFS
  9433. case $as_dir in #(((
  9434. '') as_dir=./ ;;
  9435. */) ;;
  9436. *) as_dir=$as_dir/ ;;
  9437. esac
  9438. for ac_exec_ext in '' $ac_executable_extensions; do
  9439. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  9440. ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
  9441. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  9442. break 2
  9443. fi
  9444. done
  9445. done
  9446. IFS=$as_save_IFS
  9447. fi
  9448. fi
  9449. NMEDIT=$ac_cv_prog_NMEDIT
  9450. if test -n "$NMEDIT"; then
  9451. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
  9452. printf "%s\n" "$NMEDIT" >&6; }
  9453. else
  9454. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  9455. printf "%s\n" "no" >&6; }
  9456. fi
  9457. fi
  9458. if test -z "$ac_cv_prog_NMEDIT"; then
  9459. ac_ct_NMEDIT=$NMEDIT
  9460. # Extract the first word of "nmedit", so it can be a program name with args.
  9461. set dummy nmedit; ac_word=$2
  9462. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  9463. printf %s "checking for $ac_word... " >&6; }
  9464. if test ${ac_cv_prog_ac_ct_NMEDIT+y}
  9465. then :
  9466. printf %s "(cached) " >&6
  9467. else $as_nop
  9468. if test -n "$ac_ct_NMEDIT"; then
  9469. ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
  9470. else
  9471. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  9472. for as_dir in $PATH
  9473. do
  9474. IFS=$as_save_IFS
  9475. case $as_dir in #(((
  9476. '') as_dir=./ ;;
  9477. */) ;;
  9478. *) as_dir=$as_dir/ ;;
  9479. esac
  9480. for ac_exec_ext in '' $ac_executable_extensions; do
  9481. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  9482. ac_cv_prog_ac_ct_NMEDIT="nmedit"
  9483. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  9484. break 2
  9485. fi
  9486. done
  9487. done
  9488. IFS=$as_save_IFS
  9489. fi
  9490. fi
  9491. ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
  9492. if test -n "$ac_ct_NMEDIT"; then
  9493. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
  9494. printf "%s\n" "$ac_ct_NMEDIT" >&6; }
  9495. else
  9496. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  9497. printf "%s\n" "no" >&6; }
  9498. fi
  9499. if test "x$ac_ct_NMEDIT" = x; then
  9500. NMEDIT=":"
  9501. else
  9502. case $cross_compiling:$ac_tool_warned in
  9503. yes:)
  9504. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  9505. printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  9506. ac_tool_warned=yes ;;
  9507. esac
  9508. NMEDIT=$ac_ct_NMEDIT
  9509. fi
  9510. else
  9511. NMEDIT="$ac_cv_prog_NMEDIT"
  9512. fi
  9513. if test -n "$ac_tool_prefix"; then
  9514. # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
  9515. set dummy ${ac_tool_prefix}lipo; ac_word=$2
  9516. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  9517. printf %s "checking for $ac_word... " >&6; }
  9518. if test ${ac_cv_prog_LIPO+y}
  9519. then :
  9520. printf %s "(cached) " >&6
  9521. else $as_nop
  9522. if test -n "$LIPO"; then
  9523. ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
  9524. else
  9525. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  9526. for as_dir in $PATH
  9527. do
  9528. IFS=$as_save_IFS
  9529. case $as_dir in #(((
  9530. '') as_dir=./ ;;
  9531. */) ;;
  9532. *) as_dir=$as_dir/ ;;
  9533. esac
  9534. for ac_exec_ext in '' $ac_executable_extensions; do
  9535. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  9536. ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
  9537. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  9538. break 2
  9539. fi
  9540. done
  9541. done
  9542. IFS=$as_save_IFS
  9543. fi
  9544. fi
  9545. LIPO=$ac_cv_prog_LIPO
  9546. if test -n "$LIPO"; then
  9547. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
  9548. printf "%s\n" "$LIPO" >&6; }
  9549. else
  9550. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  9551. printf "%s\n" "no" >&6; }
  9552. fi
  9553. fi
  9554. if test -z "$ac_cv_prog_LIPO"; then
  9555. ac_ct_LIPO=$LIPO
  9556. # Extract the first word of "lipo", so it can be a program name with args.
  9557. set dummy lipo; ac_word=$2
  9558. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  9559. printf %s "checking for $ac_word... " >&6; }
  9560. if test ${ac_cv_prog_ac_ct_LIPO+y}
  9561. then :
  9562. printf %s "(cached) " >&6
  9563. else $as_nop
  9564. if test -n "$ac_ct_LIPO"; then
  9565. ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
  9566. else
  9567. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  9568. for as_dir in $PATH
  9569. do
  9570. IFS=$as_save_IFS
  9571. case $as_dir in #(((
  9572. '') as_dir=./ ;;
  9573. */) ;;
  9574. *) as_dir=$as_dir/ ;;
  9575. esac
  9576. for ac_exec_ext in '' $ac_executable_extensions; do
  9577. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  9578. ac_cv_prog_ac_ct_LIPO="lipo"
  9579. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  9580. break 2
  9581. fi
  9582. done
  9583. done
  9584. IFS=$as_save_IFS
  9585. fi
  9586. fi
  9587. ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
  9588. if test -n "$ac_ct_LIPO"; then
  9589. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
  9590. printf "%s\n" "$ac_ct_LIPO" >&6; }
  9591. else
  9592. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  9593. printf "%s\n" "no" >&6; }
  9594. fi
  9595. if test "x$ac_ct_LIPO" = x; then
  9596. LIPO=":"
  9597. else
  9598. case $cross_compiling:$ac_tool_warned in
  9599. yes:)
  9600. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  9601. printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  9602. ac_tool_warned=yes ;;
  9603. esac
  9604. LIPO=$ac_ct_LIPO
  9605. fi
  9606. else
  9607. LIPO="$ac_cv_prog_LIPO"
  9608. fi
  9609. if test -n "$ac_tool_prefix"; then
  9610. # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
  9611. set dummy ${ac_tool_prefix}otool; ac_word=$2
  9612. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  9613. printf %s "checking for $ac_word... " >&6; }
  9614. if test ${ac_cv_prog_OTOOL+y}
  9615. then :
  9616. printf %s "(cached) " >&6
  9617. else $as_nop
  9618. if test -n "$OTOOL"; then
  9619. ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
  9620. else
  9621. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  9622. for as_dir in $PATH
  9623. do
  9624. IFS=$as_save_IFS
  9625. case $as_dir in #(((
  9626. '') as_dir=./ ;;
  9627. */) ;;
  9628. *) as_dir=$as_dir/ ;;
  9629. esac
  9630. for ac_exec_ext in '' $ac_executable_extensions; do
  9631. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  9632. ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
  9633. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  9634. break 2
  9635. fi
  9636. done
  9637. done
  9638. IFS=$as_save_IFS
  9639. fi
  9640. fi
  9641. OTOOL=$ac_cv_prog_OTOOL
  9642. if test -n "$OTOOL"; then
  9643. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
  9644. printf "%s\n" "$OTOOL" >&6; }
  9645. else
  9646. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  9647. printf "%s\n" "no" >&6; }
  9648. fi
  9649. fi
  9650. if test -z "$ac_cv_prog_OTOOL"; then
  9651. ac_ct_OTOOL=$OTOOL
  9652. # Extract the first word of "otool", so it can be a program name with args.
  9653. set dummy otool; ac_word=$2
  9654. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  9655. printf %s "checking for $ac_word... " >&6; }
  9656. if test ${ac_cv_prog_ac_ct_OTOOL+y}
  9657. then :
  9658. printf %s "(cached) " >&6
  9659. else $as_nop
  9660. if test -n "$ac_ct_OTOOL"; then
  9661. ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
  9662. else
  9663. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  9664. for as_dir in $PATH
  9665. do
  9666. IFS=$as_save_IFS
  9667. case $as_dir in #(((
  9668. '') as_dir=./ ;;
  9669. */) ;;
  9670. *) as_dir=$as_dir/ ;;
  9671. esac
  9672. for ac_exec_ext in '' $ac_executable_extensions; do
  9673. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  9674. ac_cv_prog_ac_ct_OTOOL="otool"
  9675. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  9676. break 2
  9677. fi
  9678. done
  9679. done
  9680. IFS=$as_save_IFS
  9681. fi
  9682. fi
  9683. ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
  9684. if test -n "$ac_ct_OTOOL"; then
  9685. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
  9686. printf "%s\n" "$ac_ct_OTOOL" >&6; }
  9687. else
  9688. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  9689. printf "%s\n" "no" >&6; }
  9690. fi
  9691. if test "x$ac_ct_OTOOL" = x; then
  9692. OTOOL=":"
  9693. else
  9694. case $cross_compiling:$ac_tool_warned in
  9695. yes:)
  9696. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  9697. printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  9698. ac_tool_warned=yes ;;
  9699. esac
  9700. OTOOL=$ac_ct_OTOOL
  9701. fi
  9702. else
  9703. OTOOL="$ac_cv_prog_OTOOL"
  9704. fi
  9705. if test -n "$ac_tool_prefix"; then
  9706. # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
  9707. set dummy ${ac_tool_prefix}otool64; ac_word=$2
  9708. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  9709. printf %s "checking for $ac_word... " >&6; }
  9710. if test ${ac_cv_prog_OTOOL64+y}
  9711. then :
  9712. printf %s "(cached) " >&6
  9713. else $as_nop
  9714. if test -n "$OTOOL64"; then
  9715. ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
  9716. else
  9717. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  9718. for as_dir in $PATH
  9719. do
  9720. IFS=$as_save_IFS
  9721. case $as_dir in #(((
  9722. '') as_dir=./ ;;
  9723. */) ;;
  9724. *) as_dir=$as_dir/ ;;
  9725. esac
  9726. for ac_exec_ext in '' $ac_executable_extensions; do
  9727. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  9728. ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
  9729. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  9730. break 2
  9731. fi
  9732. done
  9733. done
  9734. IFS=$as_save_IFS
  9735. fi
  9736. fi
  9737. OTOOL64=$ac_cv_prog_OTOOL64
  9738. if test -n "$OTOOL64"; then
  9739. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
  9740. printf "%s\n" "$OTOOL64" >&6; }
  9741. else
  9742. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  9743. printf "%s\n" "no" >&6; }
  9744. fi
  9745. fi
  9746. if test -z "$ac_cv_prog_OTOOL64"; then
  9747. ac_ct_OTOOL64=$OTOOL64
  9748. # Extract the first word of "otool64", so it can be a program name with args.
  9749. set dummy otool64; ac_word=$2
  9750. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  9751. printf %s "checking for $ac_word... " >&6; }
  9752. if test ${ac_cv_prog_ac_ct_OTOOL64+y}
  9753. then :
  9754. printf %s "(cached) " >&6
  9755. else $as_nop
  9756. if test -n "$ac_ct_OTOOL64"; then
  9757. ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
  9758. else
  9759. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  9760. for as_dir in $PATH
  9761. do
  9762. IFS=$as_save_IFS
  9763. case $as_dir in #(((
  9764. '') as_dir=./ ;;
  9765. */) ;;
  9766. *) as_dir=$as_dir/ ;;
  9767. esac
  9768. for ac_exec_ext in '' $ac_executable_extensions; do
  9769. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  9770. ac_cv_prog_ac_ct_OTOOL64="otool64"
  9771. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  9772. break 2
  9773. fi
  9774. done
  9775. done
  9776. IFS=$as_save_IFS
  9777. fi
  9778. fi
  9779. ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
  9780. if test -n "$ac_ct_OTOOL64"; then
  9781. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
  9782. printf "%s\n" "$ac_ct_OTOOL64" >&6; }
  9783. else
  9784. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  9785. printf "%s\n" "no" >&6; }
  9786. fi
  9787. if test "x$ac_ct_OTOOL64" = x; then
  9788. OTOOL64=":"
  9789. else
  9790. case $cross_compiling:$ac_tool_warned in
  9791. yes:)
  9792. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  9793. printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  9794. ac_tool_warned=yes ;;
  9795. esac
  9796. OTOOL64=$ac_ct_OTOOL64
  9797. fi
  9798. else
  9799. OTOOL64="$ac_cv_prog_OTOOL64"
  9800. fi
  9801. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
  9802. printf %s "checking for -single_module linker flag... " >&6; }
  9803. if test ${lt_cv_apple_cc_single_mod+y}
  9804. then :
  9805. printf %s "(cached) " >&6
  9806. else $as_nop
  9807. lt_cv_apple_cc_single_mod=no
  9808. if test -z "$LT_MULTI_MODULE"; then
  9809. # By default we will add the -single_module flag. You can override
  9810. # by either setting the environment variable LT_MULTI_MODULE
  9811. # non-empty at configure time, or by adding -multi_module to the
  9812. # link flags.
  9813. rm -rf libconftest.dylib*
  9814. echo "int foo(void){return 1;}" > conftest.c
  9815. echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
  9816. -dynamiclib -Wl,-single_module conftest.c" >&5
  9817. $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
  9818. -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
  9819. _lt_result=$?
  9820. # If there is a non-empty error log, and "single_module"
  9821. # appears in it, assume the flag caused a linker warning
  9822. if test -s conftest.err && $GREP single_module conftest.err; then
  9823. cat conftest.err >&5
  9824. # Otherwise, if the output was created with a 0 exit code from
  9825. # the compiler, it worked.
  9826. elif test -f libconftest.dylib && test 0 = "$_lt_result"; then
  9827. lt_cv_apple_cc_single_mod=yes
  9828. else
  9829. cat conftest.err >&5
  9830. fi
  9831. rm -rf libconftest.dylib*
  9832. rm -f conftest.*
  9833. fi
  9834. fi
  9835. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
  9836. printf "%s\n" "$lt_cv_apple_cc_single_mod" >&6; }
  9837. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
  9838. printf %s "checking for -exported_symbols_list linker flag... " >&6; }
  9839. if test ${lt_cv_ld_exported_symbols_list+y}
  9840. then :
  9841. printf %s "(cached) " >&6
  9842. else $as_nop
  9843. lt_cv_ld_exported_symbols_list=no
  9844. save_LDFLAGS=$LDFLAGS
  9845. echo "_main" > conftest.sym
  9846. LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
  9847. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9848. /* end confdefs.h. */
  9849. int main (void)
  9850. {
  9851. ;
  9852. return 0;
  9853. }
  9854. _ACEOF
  9855. if ac_fn_c_try_link "$LINENO"
  9856. then :
  9857. lt_cv_ld_exported_symbols_list=yes
  9858. else $as_nop
  9859. lt_cv_ld_exported_symbols_list=no
  9860. fi
  9861. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  9862. conftest$ac_exeext conftest.$ac_ext
  9863. LDFLAGS=$save_LDFLAGS
  9864. fi
  9865. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
  9866. printf "%s\n" "$lt_cv_ld_exported_symbols_list" >&6; }
  9867. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
  9868. printf %s "checking for -force_load linker flag... " >&6; }
  9869. if test ${lt_cv_ld_force_load+y}
  9870. then :
  9871. printf %s "(cached) " >&6
  9872. else $as_nop
  9873. lt_cv_ld_force_load=no
  9874. cat > conftest.c << _LT_EOF
  9875. int forced_loaded() { return 2;}
  9876. _LT_EOF
  9877. echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
  9878. $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
  9879. echo "$AR cr libconftest.a conftest.o" >&5
  9880. $AR cr libconftest.a conftest.o 2>&5
  9881. echo "$RANLIB libconftest.a" >&5
  9882. $RANLIB libconftest.a 2>&5
  9883. cat > conftest.c << _LT_EOF
  9884. int main() { return 0;}
  9885. _LT_EOF
  9886. echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
  9887. $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
  9888. _lt_result=$?
  9889. if test -s conftest.err && $GREP force_load conftest.err; then
  9890. cat conftest.err >&5
  9891. elif test -f conftest && test 0 = "$_lt_result" && $GREP forced_load conftest >/dev/null 2>&1; then
  9892. lt_cv_ld_force_load=yes
  9893. else
  9894. cat conftest.err >&5
  9895. fi
  9896. rm -f conftest.err libconftest.a conftest conftest.c
  9897. rm -rf conftest.dSYM
  9898. fi
  9899. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
  9900. printf "%s\n" "$lt_cv_ld_force_load" >&6; }
  9901. case $host_os in
  9902. rhapsody* | darwin1.[012])
  9903. _lt_dar_allow_undefined='$wl-undefined ${wl}suppress' ;;
  9904. darwin1.*)
  9905. _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
  9906. darwin*) # darwin 5.x on
  9907. # if running on 10.5 or later, the deployment target defaults
  9908. # to the OS version, if on x86, and 10.4, the deployment
  9909. # target defaults to 10.4. Don't you love it?
  9910. case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
  9911. 10.0,*86*-darwin8*|10.0,*-darwin[912]*)
  9912. _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
  9913. 10.[012][,.]*)
  9914. _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
  9915. 10.*|11.*)
  9916. _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
  9917. esac
  9918. ;;
  9919. esac
  9920. if test yes = "$lt_cv_apple_cc_single_mod"; then
  9921. _lt_dar_single_mod='$single_module'
  9922. fi
  9923. if test yes = "$lt_cv_ld_exported_symbols_list"; then
  9924. _lt_dar_export_syms=' $wl-exported_symbols_list,$output_objdir/$libname-symbols.expsym'
  9925. else
  9926. _lt_dar_export_syms='~$NMEDIT -s $output_objdir/$libname-symbols.expsym $lib'
  9927. fi
  9928. if test : != "$DSYMUTIL" && test no = "$lt_cv_ld_force_load"; then
  9929. _lt_dsymutil='~$DSYMUTIL $lib || :'
  9930. else
  9931. _lt_dsymutil=
  9932. fi
  9933. ;;
  9934. esac
  9935. # func_munge_path_list VARIABLE PATH
  9936. # -----------------------------------
  9937. # VARIABLE is name of variable containing _space_ separated list of
  9938. # directories to be munged by the contents of PATH, which is string
  9939. # having a format:
  9940. # "DIR[:DIR]:"
  9941. # string "DIR[ DIR]" will be prepended to VARIABLE
  9942. # ":DIR[:DIR]"
  9943. # string "DIR[ DIR]" will be appended to VARIABLE
  9944. # "DIRP[:DIRP]::[DIRA:]DIRA"
  9945. # string "DIRP[ DIRP]" will be prepended to VARIABLE and string
  9946. # "DIRA[ DIRA]" will be appended to VARIABLE
  9947. # "DIR[:DIR]"
  9948. # VARIABLE will be replaced by "DIR[ DIR]"
  9949. func_munge_path_list ()
  9950. {
  9951. case x$2 in
  9952. x)
  9953. ;;
  9954. *:)
  9955. eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
  9956. ;;
  9957. x:*)
  9958. eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
  9959. ;;
  9960. *::*)
  9961. eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
  9962. eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
  9963. ;;
  9964. *)
  9965. eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
  9966. ;;
  9967. esac
  9968. }
  9969. ac_header= ac_cache=
  9970. for ac_item in $ac_header_c_list
  9971. do
  9972. if test $ac_cache; then
  9973. ac_fn_c_check_header_compile "$LINENO" $ac_header ac_cv_header_$ac_cache "$ac_includes_default"
  9974. if eval test \"x\$ac_cv_header_$ac_cache\" = xyes; then
  9975. printf "%s\n" "#define $ac_item 1" >> confdefs.h
  9976. fi
  9977. ac_header= ac_cache=
  9978. elif test $ac_header; then
  9979. ac_cache=$ac_item
  9980. else
  9981. ac_header=$ac_item
  9982. fi
  9983. done
  9984. if test $ac_cv_header_stdlib_h = yes && test $ac_cv_header_string_h = yes
  9985. then :
  9986. printf "%s\n" "#define STDC_HEADERS 1" >>confdefs.h
  9987. fi
  9988. ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
  9989. "
  9990. if test "x$ac_cv_header_dlfcn_h" = xyes
  9991. then :
  9992. printf "%s\n" "#define HAVE_DLFCN_H 1" >>confdefs.h
  9993. fi
  9994. # ------------------------------------ #
  9995. # Determine libtool default behavior #
  9996. # ------------------------------------ #
  9997. #
  9998. # Default behavior is to enable shared and static libraries on systems
  9999. # where libtool knows how to build both library versions, and does not
  10000. # require separate configuration and build runs for each flavor.
  10001. #
  10002. xc_lt_want_enable_shared='yes'
  10003. xc_lt_want_enable_static='yes'
  10004. #
  10005. # User may have disabled shared or static libraries.
  10006. #
  10007. case "x$enable_shared" in # (
  10008. xno)
  10009. xc_lt_want_enable_shared='no'
  10010. ;;
  10011. esac
  10012. case "x$enable_static" in # (
  10013. xno)
  10014. xc_lt_want_enable_static='no'
  10015. ;;
  10016. esac
  10017. if test "x$xc_lt_want_enable_shared" = 'xno' &&
  10018. test "x$xc_lt_want_enable_static" = 'xno'; then
  10019. as_fn_error $? "can not disable shared and static libraries simultaneously" "$LINENO" 5
  10020. fi
  10021. #
  10022. # Default behavior on systems that require independent configuration
  10023. # and build runs for shared and static is to enable shared libraries
  10024. # and disable static ones. On these systems option '--disable-shared'
  10025. # must be used in order to build a proper static library.
  10026. #
  10027. if test "x$xc_lt_want_enable_shared" = 'xyes' &&
  10028. test "x$xc_lt_want_enable_static" = 'xyes'; then
  10029. case $host_os in # (
  10030. pw32* | cegcc* | os2* | aix*)
  10031. xc_lt_want_enable_static='no'
  10032. ;;
  10033. esac
  10034. fi
  10035. #
  10036. # Make libtool aware of current shared and static library preferences
  10037. # taking in account that, depending on host characteristics, libtool
  10038. # may modify these option preferences later in this configure script.
  10039. #
  10040. enable_shared=$xc_lt_want_enable_shared
  10041. enable_static=$xc_lt_want_enable_static
  10042. #
  10043. # Default behavior is to build PIC objects for shared libraries and
  10044. # non-PIC objects for static libraries.
  10045. #
  10046. xc_lt_want_with_pic='default'
  10047. #
  10048. # User may have specified PIC preference.
  10049. #
  10050. case "x$with_pic" in # ((
  10051. xno)
  10052. xc_lt_want_with_pic='no'
  10053. ;;
  10054. xyes)
  10055. xc_lt_want_with_pic='yes'
  10056. ;;
  10057. esac
  10058. #
  10059. # Default behavior on some systems where building a shared library out
  10060. # of non-PIC compiled objects will fail with following linker error
  10061. # "relocation R_X86_64_32 can not be used when making a shared object"
  10062. # is to build PIC objects even for static libraries. This behavior may
  10063. # be overridden using 'configure --disable-shared --without-pic'.
  10064. #
  10065. if test "x$xc_lt_want_with_pic" = 'xdefault'; then
  10066. case $host_cpu in # (
  10067. x86_64 | amd64 | ia64)
  10068. case $host_os in # (
  10069. linux* | freebsd* | midnightbsd*)
  10070. xc_lt_want_with_pic='yes'
  10071. ;;
  10072. esac
  10073. ;;
  10074. esac
  10075. fi
  10076. #
  10077. # Make libtool aware of current PIC preference taking in account that,
  10078. # depending on host characteristics, libtool may modify PIC default
  10079. # behavior to fit host system idiosyncrasies later in this script.
  10080. #
  10081. with_pic=$xc_lt_want_with_pic
  10082. ## ----------------------- ##
  10083. ## Start of libtool code ##
  10084. ## ----------------------- ##
  10085. # Set options
  10086. enable_win32_dll=yes
  10087. case $host in
  10088. *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-cegcc*)
  10089. if test -n "$ac_tool_prefix"; then
  10090. # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
  10091. set dummy ${ac_tool_prefix}as; ac_word=$2
  10092. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  10093. printf %s "checking for $ac_word... " >&6; }
  10094. if test ${ac_cv_prog_AS+y}
  10095. then :
  10096. printf %s "(cached) " >&6
  10097. else $as_nop
  10098. if test -n "$AS"; then
  10099. ac_cv_prog_AS="$AS" # Let the user override the test.
  10100. else
  10101. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  10102. for as_dir in $PATH
  10103. do
  10104. IFS=$as_save_IFS
  10105. case $as_dir in #(((
  10106. '') as_dir=./ ;;
  10107. */) ;;
  10108. *) as_dir=$as_dir/ ;;
  10109. esac
  10110. for ac_exec_ext in '' $ac_executable_extensions; do
  10111. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  10112. ac_cv_prog_AS="${ac_tool_prefix}as"
  10113. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  10114. break 2
  10115. fi
  10116. done
  10117. done
  10118. IFS=$as_save_IFS
  10119. fi
  10120. fi
  10121. AS=$ac_cv_prog_AS
  10122. if test -n "$AS"; then
  10123. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
  10124. printf "%s\n" "$AS" >&6; }
  10125. else
  10126. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  10127. printf "%s\n" "no" >&6; }
  10128. fi
  10129. fi
  10130. if test -z "$ac_cv_prog_AS"; then
  10131. ac_ct_AS=$AS
  10132. # Extract the first word of "as", so it can be a program name with args.
  10133. set dummy as; ac_word=$2
  10134. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  10135. printf %s "checking for $ac_word... " >&6; }
  10136. if test ${ac_cv_prog_ac_ct_AS+y}
  10137. then :
  10138. printf %s "(cached) " >&6
  10139. else $as_nop
  10140. if test -n "$ac_ct_AS"; then
  10141. ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test.
  10142. else
  10143. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  10144. for as_dir in $PATH
  10145. do
  10146. IFS=$as_save_IFS
  10147. case $as_dir in #(((
  10148. '') as_dir=./ ;;
  10149. */) ;;
  10150. *) as_dir=$as_dir/ ;;
  10151. esac
  10152. for ac_exec_ext in '' $ac_executable_extensions; do
  10153. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  10154. ac_cv_prog_ac_ct_AS="as"
  10155. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  10156. break 2
  10157. fi
  10158. done
  10159. done
  10160. IFS=$as_save_IFS
  10161. fi
  10162. fi
  10163. ac_ct_AS=$ac_cv_prog_ac_ct_AS
  10164. if test -n "$ac_ct_AS"; then
  10165. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AS" >&5
  10166. printf "%s\n" "$ac_ct_AS" >&6; }
  10167. else
  10168. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  10169. printf "%s\n" "no" >&6; }
  10170. fi
  10171. if test "x$ac_ct_AS" = x; then
  10172. AS="false"
  10173. else
  10174. case $cross_compiling:$ac_tool_warned in
  10175. yes:)
  10176. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  10177. printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  10178. ac_tool_warned=yes ;;
  10179. esac
  10180. AS=$ac_ct_AS
  10181. fi
  10182. else
  10183. AS="$ac_cv_prog_AS"
  10184. fi
  10185. if test -n "$ac_tool_prefix"; then
  10186. # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
  10187. set dummy ${ac_tool_prefix}dlltool; ac_word=$2
  10188. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  10189. printf %s "checking for $ac_word... " >&6; }
  10190. if test ${ac_cv_prog_DLLTOOL+y}
  10191. then :
  10192. printf %s "(cached) " >&6
  10193. else $as_nop
  10194. if test -n "$DLLTOOL"; then
  10195. ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
  10196. else
  10197. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  10198. for as_dir in $PATH
  10199. do
  10200. IFS=$as_save_IFS
  10201. case $as_dir in #(((
  10202. '') as_dir=./ ;;
  10203. */) ;;
  10204. *) as_dir=$as_dir/ ;;
  10205. esac
  10206. for ac_exec_ext in '' $ac_executable_extensions; do
  10207. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  10208. ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
  10209. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  10210. break 2
  10211. fi
  10212. done
  10213. done
  10214. IFS=$as_save_IFS
  10215. fi
  10216. fi
  10217. DLLTOOL=$ac_cv_prog_DLLTOOL
  10218. if test -n "$DLLTOOL"; then
  10219. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
  10220. printf "%s\n" "$DLLTOOL" >&6; }
  10221. else
  10222. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  10223. printf "%s\n" "no" >&6; }
  10224. fi
  10225. fi
  10226. if test -z "$ac_cv_prog_DLLTOOL"; then
  10227. ac_ct_DLLTOOL=$DLLTOOL
  10228. # Extract the first word of "dlltool", so it can be a program name with args.
  10229. set dummy dlltool; ac_word=$2
  10230. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  10231. printf %s "checking for $ac_word... " >&6; }
  10232. if test ${ac_cv_prog_ac_ct_DLLTOOL+y}
  10233. then :
  10234. printf %s "(cached) " >&6
  10235. else $as_nop
  10236. if test -n "$ac_ct_DLLTOOL"; then
  10237. ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
  10238. else
  10239. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  10240. for as_dir in $PATH
  10241. do
  10242. IFS=$as_save_IFS
  10243. case $as_dir in #(((
  10244. '') as_dir=./ ;;
  10245. */) ;;
  10246. *) as_dir=$as_dir/ ;;
  10247. esac
  10248. for ac_exec_ext in '' $ac_executable_extensions; do
  10249. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  10250. ac_cv_prog_ac_ct_DLLTOOL="dlltool"
  10251. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  10252. break 2
  10253. fi
  10254. done
  10255. done
  10256. IFS=$as_save_IFS
  10257. fi
  10258. fi
  10259. ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
  10260. if test -n "$ac_ct_DLLTOOL"; then
  10261. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
  10262. printf "%s\n" "$ac_ct_DLLTOOL" >&6; }
  10263. else
  10264. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  10265. printf "%s\n" "no" >&6; }
  10266. fi
  10267. if test "x$ac_ct_DLLTOOL" = x; then
  10268. DLLTOOL="false"
  10269. else
  10270. case $cross_compiling:$ac_tool_warned in
  10271. yes:)
  10272. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  10273. printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  10274. ac_tool_warned=yes ;;
  10275. esac
  10276. DLLTOOL=$ac_ct_DLLTOOL
  10277. fi
  10278. else
  10279. DLLTOOL="$ac_cv_prog_DLLTOOL"
  10280. fi
  10281. if test -n "$ac_tool_prefix"; then
  10282. # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
  10283. set dummy ${ac_tool_prefix}objdump; ac_word=$2
  10284. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  10285. printf %s "checking for $ac_word... " >&6; }
  10286. if test ${ac_cv_prog_OBJDUMP+y}
  10287. then :
  10288. printf %s "(cached) " >&6
  10289. else $as_nop
  10290. if test -n "$OBJDUMP"; then
  10291. ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
  10292. else
  10293. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  10294. for as_dir in $PATH
  10295. do
  10296. IFS=$as_save_IFS
  10297. case $as_dir in #(((
  10298. '') as_dir=./ ;;
  10299. */) ;;
  10300. *) as_dir=$as_dir/ ;;
  10301. esac
  10302. for ac_exec_ext in '' $ac_executable_extensions; do
  10303. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  10304. ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
  10305. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  10306. break 2
  10307. fi
  10308. done
  10309. done
  10310. IFS=$as_save_IFS
  10311. fi
  10312. fi
  10313. OBJDUMP=$ac_cv_prog_OBJDUMP
  10314. if test -n "$OBJDUMP"; then
  10315. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
  10316. printf "%s\n" "$OBJDUMP" >&6; }
  10317. else
  10318. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  10319. printf "%s\n" "no" >&6; }
  10320. fi
  10321. fi
  10322. if test -z "$ac_cv_prog_OBJDUMP"; then
  10323. ac_ct_OBJDUMP=$OBJDUMP
  10324. # Extract the first word of "objdump", so it can be a program name with args.
  10325. set dummy objdump; ac_word=$2
  10326. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  10327. printf %s "checking for $ac_word... " >&6; }
  10328. if test ${ac_cv_prog_ac_ct_OBJDUMP+y}
  10329. then :
  10330. printf %s "(cached) " >&6
  10331. else $as_nop
  10332. if test -n "$ac_ct_OBJDUMP"; then
  10333. ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
  10334. else
  10335. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  10336. for as_dir in $PATH
  10337. do
  10338. IFS=$as_save_IFS
  10339. case $as_dir in #(((
  10340. '') as_dir=./ ;;
  10341. */) ;;
  10342. *) as_dir=$as_dir/ ;;
  10343. esac
  10344. for ac_exec_ext in '' $ac_executable_extensions; do
  10345. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  10346. ac_cv_prog_ac_ct_OBJDUMP="objdump"
  10347. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  10348. break 2
  10349. fi
  10350. done
  10351. done
  10352. IFS=$as_save_IFS
  10353. fi
  10354. fi
  10355. ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
  10356. if test -n "$ac_ct_OBJDUMP"; then
  10357. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
  10358. printf "%s\n" "$ac_ct_OBJDUMP" >&6; }
  10359. else
  10360. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  10361. printf "%s\n" "no" >&6; }
  10362. fi
  10363. if test "x$ac_ct_OBJDUMP" = x; then
  10364. OBJDUMP="false"
  10365. else
  10366. case $cross_compiling:$ac_tool_warned in
  10367. yes:)
  10368. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  10369. printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  10370. ac_tool_warned=yes ;;
  10371. esac
  10372. OBJDUMP=$ac_ct_OBJDUMP
  10373. fi
  10374. else
  10375. OBJDUMP="$ac_cv_prog_OBJDUMP"
  10376. fi
  10377. ;;
  10378. esac
  10379. test -z "$AS" && AS=as
  10380. test -z "$DLLTOOL" && DLLTOOL=dlltool
  10381. test -z "$OBJDUMP" && OBJDUMP=objdump
  10382. enable_dlopen=no
  10383. # Check whether --enable-shared was given.
  10384. if test ${enable_shared+y}
  10385. then :
  10386. enableval=$enable_shared; p=${PACKAGE-default}
  10387. case $enableval in
  10388. yes) enable_shared=yes ;;
  10389. no) enable_shared=no ;;
  10390. *)
  10391. enable_shared=no
  10392. # Look at the argument we got. We use all the common list separators.
  10393. lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
  10394. for pkg in $enableval; do
  10395. IFS=$lt_save_ifs
  10396. if test "X$pkg" = "X$p"; then
  10397. enable_shared=yes
  10398. fi
  10399. done
  10400. IFS=$lt_save_ifs
  10401. ;;
  10402. esac
  10403. else $as_nop
  10404. enable_shared=yes
  10405. fi
  10406. # Check whether --enable-static was given.
  10407. if test ${enable_static+y}
  10408. then :
  10409. enableval=$enable_static; p=${PACKAGE-default}
  10410. case $enableval in
  10411. yes) enable_static=yes ;;
  10412. no) enable_static=no ;;
  10413. *)
  10414. enable_static=no
  10415. # Look at the argument we got. We use all the common list separators.
  10416. lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
  10417. for pkg in $enableval; do
  10418. IFS=$lt_save_ifs
  10419. if test "X$pkg" = "X$p"; then
  10420. enable_static=yes
  10421. fi
  10422. done
  10423. IFS=$lt_save_ifs
  10424. ;;
  10425. esac
  10426. else $as_nop
  10427. enable_static=yes
  10428. fi
  10429. # Check whether --with-pic was given.
  10430. if test ${with_pic+y}
  10431. then :
  10432. withval=$with_pic; lt_p=${PACKAGE-default}
  10433. case $withval in
  10434. yes|no) pic_mode=$withval ;;
  10435. *)
  10436. pic_mode=default
  10437. # Look at the argument we got. We use all the common list separators.
  10438. lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
  10439. for lt_pkg in $withval; do
  10440. IFS=$lt_save_ifs
  10441. if test "X$lt_pkg" = "X$lt_p"; then
  10442. pic_mode=yes
  10443. fi
  10444. done
  10445. IFS=$lt_save_ifs
  10446. ;;
  10447. esac
  10448. else $as_nop
  10449. pic_mode=default
  10450. fi
  10451. # Check whether --enable-fast-install was given.
  10452. if test ${enable_fast_install+y}
  10453. then :
  10454. enableval=$enable_fast_install; p=${PACKAGE-default}
  10455. case $enableval in
  10456. yes) enable_fast_install=yes ;;
  10457. no) enable_fast_install=no ;;
  10458. *)
  10459. enable_fast_install=no
  10460. # Look at the argument we got. We use all the common list separators.
  10461. lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
  10462. for pkg in $enableval; do
  10463. IFS=$lt_save_ifs
  10464. if test "X$pkg" = "X$p"; then
  10465. enable_fast_install=yes
  10466. fi
  10467. done
  10468. IFS=$lt_save_ifs
  10469. ;;
  10470. esac
  10471. else $as_nop
  10472. enable_fast_install=yes
  10473. fi
  10474. shared_archive_member_spec=
  10475. case $host,$enable_shared in
  10476. power*-*-aix[5-9]*,yes)
  10477. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking which variant of shared library versioning to provide" >&5
  10478. printf %s "checking which variant of shared library versioning to provide... " >&6; }
  10479. # Check whether --with-aix-soname was given.
  10480. if test ${with_aix_soname+y}
  10481. then :
  10482. withval=$with_aix_soname; case $withval in
  10483. aix|svr4|both)
  10484. ;;
  10485. *)
  10486. as_fn_error $? "Unknown argument to --with-aix-soname" "$LINENO" 5
  10487. ;;
  10488. esac
  10489. lt_cv_with_aix_soname=$with_aix_soname
  10490. else $as_nop
  10491. if test ${lt_cv_with_aix_soname+y}
  10492. then :
  10493. printf %s "(cached) " >&6
  10494. else $as_nop
  10495. lt_cv_with_aix_soname=aix
  10496. fi
  10497. with_aix_soname=$lt_cv_with_aix_soname
  10498. fi
  10499. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $with_aix_soname" >&5
  10500. printf "%s\n" "$with_aix_soname" >&6; }
  10501. if test aix != "$with_aix_soname"; then
  10502. # For the AIX way of multilib, we name the shared archive member
  10503. # based on the bitwidth used, traditionally 'shr.o' or 'shr_64.o',
  10504. # and 'shr.imp' or 'shr_64.imp', respectively, for the Import File.
  10505. # Even when GNU compilers ignore OBJECT_MODE but need '-maix64' flag,
  10506. # the AIX toolchain works better with OBJECT_MODE set (default 32).
  10507. if test 64 = "${OBJECT_MODE-32}"; then
  10508. shared_archive_member_spec=shr_64
  10509. else
  10510. shared_archive_member_spec=shr
  10511. fi
  10512. fi
  10513. ;;
  10514. *)
  10515. with_aix_soname=aix
  10516. ;;
  10517. esac
  10518. # This can be used to rebuild libtool when needed
  10519. LIBTOOL_DEPS=$ltmain
  10520. # Always use our own libtool.
  10521. LIBTOOL='$(SHELL) $(top_builddir)/libtool'
  10522. test -z "$LN_S" && LN_S="ln -s"
  10523. if test -n "${ZSH_VERSION+set}"; then
  10524. setopt NO_GLOB_SUBST
  10525. fi
  10526. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
  10527. printf %s "checking for objdir... " >&6; }
  10528. if test ${lt_cv_objdir+y}
  10529. then :
  10530. printf %s "(cached) " >&6
  10531. else $as_nop
  10532. rm -f .libs 2>/dev/null
  10533. mkdir .libs 2>/dev/null
  10534. if test -d .libs; then
  10535. lt_cv_objdir=.libs
  10536. else
  10537. # MS-DOS does not allow filenames that begin with a dot.
  10538. lt_cv_objdir=_libs
  10539. fi
  10540. rmdir .libs 2>/dev/null
  10541. fi
  10542. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
  10543. printf "%s\n" "$lt_cv_objdir" >&6; }
  10544. objdir=$lt_cv_objdir
  10545. printf "%s\n" "#define LT_OBJDIR \"$lt_cv_objdir/\"" >>confdefs.h
  10546. case $host_os in
  10547. aix3*)
  10548. # AIX sometimes has problems with the GCC collect2 program. For some
  10549. # reason, if we set the COLLECT_NAMES environment variable, the problems
  10550. # vanish in a puff of smoke.
  10551. if test set != "${COLLECT_NAMES+set}"; then
  10552. COLLECT_NAMES=
  10553. export COLLECT_NAMES
  10554. fi
  10555. ;;
  10556. esac
  10557. # Global variables:
  10558. ofile=libtool
  10559. can_build_shared=yes
  10560. # All known linkers require a '.a' archive for static linking (except MSVC,
  10561. # which needs '.lib').
  10562. libext=a
  10563. with_gnu_ld=$lt_cv_prog_gnu_ld
  10564. old_CC=$CC
  10565. old_CFLAGS=$CFLAGS
  10566. # Set sane defaults for various variables
  10567. test -z "$CC" && CC=cc
  10568. test -z "$LTCC" && LTCC=$CC
  10569. test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
  10570. test -z "$LD" && LD=ld
  10571. test -z "$ac_objext" && ac_objext=o
  10572. func_cc_basename $compiler
  10573. cc_basename=$func_cc_basename_result
  10574. # Only perform the check for file, if the check method requires it
  10575. test -z "$MAGIC_CMD" && MAGIC_CMD=file
  10576. case $deplibs_check_method in
  10577. file_magic*)
  10578. if test "$file_magic_cmd" = '$MAGIC_CMD'; then
  10579. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
  10580. printf %s "checking for ${ac_tool_prefix}file... " >&6; }
  10581. if test ${lt_cv_path_MAGIC_CMD+y}
  10582. then :
  10583. printf %s "(cached) " >&6
  10584. else $as_nop
  10585. case $MAGIC_CMD in
  10586. [\\/*] | ?:[\\/]*)
  10587. lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
  10588. ;;
  10589. *)
  10590. lt_save_MAGIC_CMD=$MAGIC_CMD
  10591. lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
  10592. ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
  10593. for ac_dir in $ac_dummy; do
  10594. IFS=$lt_save_ifs
  10595. test -z "$ac_dir" && ac_dir=.
  10596. if test -f "$ac_dir/${ac_tool_prefix}file"; then
  10597. lt_cv_path_MAGIC_CMD=$ac_dir/"${ac_tool_prefix}file"
  10598. if test -n "$file_magic_test_file"; then
  10599. case $deplibs_check_method in
  10600. "file_magic "*)
  10601. file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
  10602. MAGIC_CMD=$lt_cv_path_MAGIC_CMD
  10603. if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
  10604. $EGREP "$file_magic_regex" > /dev/null; then
  10605. :
  10606. else
  10607. cat <<_LT_EOF 1>&2
  10608. *** Warning: the command libtool uses to detect shared libraries,
  10609. *** $file_magic_cmd, produces output that libtool cannot recognize.
  10610. *** The result is that libtool may fail to recognize shared libraries
  10611. *** as such. This will affect the creation of libtool libraries that
  10612. *** depend on shared libraries, but programs linked with such libtool
  10613. *** libraries will work regardless of this problem. Nevertheless, you
  10614. *** may want to report the problem to your system manager and/or to
  10615. *** [email protected]
  10616. _LT_EOF
  10617. fi ;;
  10618. esac
  10619. fi
  10620. break
  10621. fi
  10622. done
  10623. IFS=$lt_save_ifs
  10624. MAGIC_CMD=$lt_save_MAGIC_CMD
  10625. ;;
  10626. esac
  10627. fi
  10628. MAGIC_CMD=$lt_cv_path_MAGIC_CMD
  10629. if test -n "$MAGIC_CMD"; then
  10630. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
  10631. printf "%s\n" "$MAGIC_CMD" >&6; }
  10632. else
  10633. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  10634. printf "%s\n" "no" >&6; }
  10635. fi
  10636. if test -z "$lt_cv_path_MAGIC_CMD"; then
  10637. if test -n "$ac_tool_prefix"; then
  10638. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for file" >&5
  10639. printf %s "checking for file... " >&6; }
  10640. if test ${lt_cv_path_MAGIC_CMD+y}
  10641. then :
  10642. printf %s "(cached) " >&6
  10643. else $as_nop
  10644. case $MAGIC_CMD in
  10645. [\\/*] | ?:[\\/]*)
  10646. lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
  10647. ;;
  10648. *)
  10649. lt_save_MAGIC_CMD=$MAGIC_CMD
  10650. lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
  10651. ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
  10652. for ac_dir in $ac_dummy; do
  10653. IFS=$lt_save_ifs
  10654. test -z "$ac_dir" && ac_dir=.
  10655. if test -f "$ac_dir/file"; then
  10656. lt_cv_path_MAGIC_CMD=$ac_dir/"file"
  10657. if test -n "$file_magic_test_file"; then
  10658. case $deplibs_check_method in
  10659. "file_magic "*)
  10660. file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
  10661. MAGIC_CMD=$lt_cv_path_MAGIC_CMD
  10662. if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
  10663. $EGREP "$file_magic_regex" > /dev/null; then
  10664. :
  10665. else
  10666. cat <<_LT_EOF 1>&2
  10667. *** Warning: the command libtool uses to detect shared libraries,
  10668. *** $file_magic_cmd, produces output that libtool cannot recognize.
  10669. *** The result is that libtool may fail to recognize shared libraries
  10670. *** as such. This will affect the creation of libtool libraries that
  10671. *** depend on shared libraries, but programs linked with such libtool
  10672. *** libraries will work regardless of this problem. Nevertheless, you
  10673. *** may want to report the problem to your system manager and/or to
  10674. *** [email protected]
  10675. _LT_EOF
  10676. fi ;;
  10677. esac
  10678. fi
  10679. break
  10680. fi
  10681. done
  10682. IFS=$lt_save_ifs
  10683. MAGIC_CMD=$lt_save_MAGIC_CMD
  10684. ;;
  10685. esac
  10686. fi
  10687. MAGIC_CMD=$lt_cv_path_MAGIC_CMD
  10688. if test -n "$MAGIC_CMD"; then
  10689. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
  10690. printf "%s\n" "$MAGIC_CMD" >&6; }
  10691. else
  10692. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  10693. printf "%s\n" "no" >&6; }
  10694. fi
  10695. else
  10696. MAGIC_CMD=:
  10697. fi
  10698. fi
  10699. fi
  10700. ;;
  10701. esac
  10702. # Use C for the default configuration in the libtool script
  10703. lt_save_CC=$CC
  10704. ac_ext=c
  10705. ac_cpp='$CPP $CPPFLAGS'
  10706. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  10707. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  10708. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  10709. # Source file extension for C test sources.
  10710. ac_ext=c
  10711. # Object file extension for compiled C test sources.
  10712. objext=o
  10713. objext=$objext
  10714. # Code to be used in simple compile tests
  10715. lt_simple_compile_test_code="int some_variable = 0;"
  10716. # Code to be used in simple link tests
  10717. lt_simple_link_test_code='int main(){return(0);}'
  10718. # If no C compiler was specified, use CC.
  10719. LTCC=${LTCC-"$CC"}
  10720. # If no C compiler flags were specified, use CFLAGS.
  10721. LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
  10722. # Allow CC to be a program name with arguments.
  10723. compiler=$CC
  10724. # Save the default compiler, since it gets overwritten when the other
  10725. # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
  10726. compiler_DEFAULT=$CC
  10727. # save warnings/boilerplate of simple test code
  10728. ac_outfile=conftest.$ac_objext
  10729. echo "$lt_simple_compile_test_code" >conftest.$ac_ext
  10730. eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  10731. _lt_compiler_boilerplate=`cat conftest.err`
  10732. $RM conftest*
  10733. ac_outfile=conftest.$ac_objext
  10734. echo "$lt_simple_link_test_code" >conftest.$ac_ext
  10735. eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  10736. _lt_linker_boilerplate=`cat conftest.err`
  10737. $RM -r conftest*
  10738. ## CAVEAT EMPTOR:
  10739. ## There is no encapsulation within the following macros, do not change
  10740. ## the running order or otherwise move them around unless you know exactly
  10741. ## what you are doing...
  10742. if test -n "$compiler"; then
  10743. lt_prog_compiler_no_builtin_flag=
  10744. if test yes = "$GCC"; then
  10745. case $cc_basename in
  10746. nvcc*)
  10747. lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
  10748. *)
  10749. lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
  10750. esac
  10751. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
  10752. printf %s "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
  10753. if test ${lt_cv_prog_compiler_rtti_exceptions+y}
  10754. then :
  10755. printf %s "(cached) " >&6
  10756. else $as_nop
  10757. lt_cv_prog_compiler_rtti_exceptions=no
  10758. ac_outfile=conftest.$ac_objext
  10759. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  10760. lt_compiler_flag="-fno-rtti -fno-exceptions" ## exclude from sc_useless_quotes_in_assignment
  10761. # Insert the option either (1) after the last *FLAGS variable, or
  10762. # (2) before a word containing "conftest.", or (3) at the end.
  10763. # Note that $ac_compile itself does not contain backslashes and begins
  10764. # with a dollar sign (not a hyphen), so the echo should work correctly.
  10765. # The option is referenced via a variable to avoid confusing sed.
  10766. lt_compile=`echo "$ac_compile" | $SED \
  10767. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  10768. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  10769. -e 's:$: $lt_compiler_flag:'`
  10770. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  10771. (eval "$lt_compile" 2>conftest.err)
  10772. ac_status=$?
  10773. cat conftest.err >&5
  10774. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10775. if (exit $ac_status) && test -s "$ac_outfile"; then
  10776. # The compiler can only warn and ignore the option if not recognized
  10777. # So say no if there are warnings other than the usual output.
  10778. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
  10779. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  10780. if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
  10781. lt_cv_prog_compiler_rtti_exceptions=yes
  10782. fi
  10783. fi
  10784. $RM conftest*
  10785. fi
  10786. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
  10787. printf "%s\n" "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
  10788. if test yes = "$lt_cv_prog_compiler_rtti_exceptions"; then
  10789. lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
  10790. else
  10791. :
  10792. fi
  10793. fi
  10794. lt_prog_compiler_wl=
  10795. lt_prog_compiler_pic=
  10796. lt_prog_compiler_static=
  10797. if test yes = "$GCC"; then
  10798. lt_prog_compiler_wl='-Wl,'
  10799. lt_prog_compiler_static='-static'
  10800. case $host_os in
  10801. aix*)
  10802. # All AIX code is PIC.
  10803. if test ia64 = "$host_cpu"; then
  10804. # AIX 5 now supports IA64 processor
  10805. lt_prog_compiler_static='-Bstatic'
  10806. fi
  10807. lt_prog_compiler_pic='-fPIC'
  10808. ;;
  10809. amigaos*)
  10810. case $host_cpu in
  10811. powerpc)
  10812. # see comment about AmigaOS4 .so support
  10813. lt_prog_compiler_pic='-fPIC'
  10814. ;;
  10815. m68k)
  10816. # FIXME: we need at least 68020 code to build shared libraries, but
  10817. # adding the '-m68020' flag to GCC prevents building anything better,
  10818. # like '-m68040'.
  10819. lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
  10820. ;;
  10821. esac
  10822. ;;
  10823. beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
  10824. # PIC is the default for these OSes.
  10825. ;;
  10826. mingw* | cygwin* | pw32* | os2* | cegcc*)
  10827. # This hack is so that the source file can tell whether it is being
  10828. # built for inclusion in a dll (and should export symbols for example).
  10829. # Although the cygwin gcc ignores -fPIC, still need this for old-style
  10830. # (--disable-auto-import) libraries
  10831. lt_prog_compiler_pic='-DDLL_EXPORT'
  10832. case $host_os in
  10833. os2*)
  10834. lt_prog_compiler_static='$wl-static'
  10835. ;;
  10836. esac
  10837. ;;
  10838. darwin* | rhapsody*)
  10839. # PIC is the default on this platform
  10840. # Common symbols not allowed in MH_DYLIB files
  10841. lt_prog_compiler_pic='-fno-common'
  10842. ;;
  10843. haiku*)
  10844. # PIC is the default for Haiku.
  10845. # The "-static" flag exists, but is broken.
  10846. lt_prog_compiler_static=
  10847. ;;
  10848. hpux*)
  10849. # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
  10850. # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
  10851. # sets the default TLS model and affects inlining.
  10852. case $host_cpu in
  10853. hppa*64*)
  10854. # +Z the default
  10855. ;;
  10856. *)
  10857. lt_prog_compiler_pic='-fPIC'
  10858. ;;
  10859. esac
  10860. ;;
  10861. interix[3-9]*)
  10862. # Interix 3.x gcc -fpic/-fPIC options generate broken code.
  10863. # Instead, we relocate shared libraries at runtime.
  10864. ;;
  10865. msdosdjgpp*)
  10866. # Just because we use GCC doesn't mean we suddenly get shared libraries
  10867. # on systems that don't support them.
  10868. lt_prog_compiler_can_build_shared=no
  10869. enable_shared=no
  10870. ;;
  10871. *nto* | *qnx*)
  10872. # QNX uses GNU C++, but need to define -shared option too, otherwise
  10873. # it will coredump.
  10874. lt_prog_compiler_pic='-fPIC -shared'
  10875. ;;
  10876. sysv4*MP*)
  10877. if test -d /usr/nec; then
  10878. lt_prog_compiler_pic=-Kconform_pic
  10879. fi
  10880. ;;
  10881. *)
  10882. lt_prog_compiler_pic='-fPIC'
  10883. ;;
  10884. esac
  10885. case $cc_basename in
  10886. nvcc*) # Cuda Compiler Driver 2.2
  10887. lt_prog_compiler_wl='-Xlinker '
  10888. if test -n "$lt_prog_compiler_pic"; then
  10889. lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
  10890. fi
  10891. ;;
  10892. esac
  10893. else
  10894. # PORTME Check for flag to pass linker flags through the system compiler.
  10895. case $host_os in
  10896. aix*)
  10897. lt_prog_compiler_wl='-Wl,'
  10898. if test ia64 = "$host_cpu"; then
  10899. # AIX 5 now supports IA64 processor
  10900. lt_prog_compiler_static='-Bstatic'
  10901. else
  10902. lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
  10903. fi
  10904. ;;
  10905. darwin* | rhapsody*)
  10906. # PIC is the default on this platform
  10907. # Common symbols not allowed in MH_DYLIB files
  10908. lt_prog_compiler_pic='-fno-common'
  10909. case $cc_basename in
  10910. nagfor*)
  10911. # NAG Fortran compiler
  10912. lt_prog_compiler_wl='-Wl,-Wl,,'
  10913. lt_prog_compiler_pic='-PIC'
  10914. lt_prog_compiler_static='-Bstatic'
  10915. ;;
  10916. esac
  10917. ;;
  10918. mingw* | cygwin* | pw32* | os2* | cegcc*)
  10919. # This hack is so that the source file can tell whether it is being
  10920. # built for inclusion in a dll (and should export symbols for example).
  10921. lt_prog_compiler_pic='-DDLL_EXPORT'
  10922. case $host_os in
  10923. os2*)
  10924. lt_prog_compiler_static='$wl-static'
  10925. ;;
  10926. esac
  10927. ;;
  10928. hpux9* | hpux10* | hpux11*)
  10929. lt_prog_compiler_wl='-Wl,'
  10930. # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
  10931. # not for PA HP-UX.
  10932. case $host_cpu in
  10933. hppa*64*|ia64*)
  10934. # +Z the default
  10935. ;;
  10936. *)
  10937. lt_prog_compiler_pic='+Z'
  10938. ;;
  10939. esac
  10940. # Is there a better lt_prog_compiler_static that works with the bundled CC?
  10941. lt_prog_compiler_static='$wl-a ${wl}archive'
  10942. ;;
  10943. irix5* | irix6* | nonstopux*)
  10944. lt_prog_compiler_wl='-Wl,'
  10945. # PIC (with -KPIC) is the default.
  10946. lt_prog_compiler_static='-non_shared'
  10947. ;;
  10948. linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
  10949. case $cc_basename in
  10950. # old Intel for x86_64, which still supported -KPIC.
  10951. ecc*)
  10952. lt_prog_compiler_wl='-Wl,'
  10953. lt_prog_compiler_pic='-KPIC'
  10954. lt_prog_compiler_static='-static'
  10955. ;;
  10956. # flang / f18. f95 an alias for gfortran or flang on Debian
  10957. flang* | f18* | f95*)
  10958. lt_prog_compiler_wl='-Wl,'
  10959. lt_prog_compiler_pic='-fPIC'
  10960. lt_prog_compiler_static='-static'
  10961. ;;
  10962. # icc used to be incompatible with GCC.
  10963. # ICC 10 doesn't accept -KPIC any more.
  10964. icc* | ifort*)
  10965. lt_prog_compiler_wl='-Wl,'
  10966. lt_prog_compiler_pic='-fPIC'
  10967. lt_prog_compiler_static='-static'
  10968. ;;
  10969. # Lahey Fortran 8.1.
  10970. lf95*)
  10971. lt_prog_compiler_wl='-Wl,'
  10972. lt_prog_compiler_pic='--shared'
  10973. lt_prog_compiler_static='--static'
  10974. ;;
  10975. nagfor*)
  10976. # NAG Fortran compiler
  10977. lt_prog_compiler_wl='-Wl,-Wl,,'
  10978. lt_prog_compiler_pic='-PIC'
  10979. lt_prog_compiler_static='-Bstatic'
  10980. ;;
  10981. tcc*)
  10982. # Fabrice Bellard et al's Tiny C Compiler
  10983. lt_prog_compiler_wl='-Wl,'
  10984. lt_prog_compiler_pic='-fPIC'
  10985. lt_prog_compiler_static='-static'
  10986. ;;
  10987. pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
  10988. # Portland Group compilers (*not* the Pentium gcc compiler,
  10989. # which looks to be a dead project)
  10990. lt_prog_compiler_wl='-Wl,'
  10991. lt_prog_compiler_pic='-fpic'
  10992. lt_prog_compiler_static='-Bstatic'
  10993. ;;
  10994. ccc*)
  10995. lt_prog_compiler_wl='-Wl,'
  10996. # All Alpha code is PIC.
  10997. lt_prog_compiler_static='-non_shared'
  10998. ;;
  10999. xl* | bgxl* | bgf* | mpixl*)
  11000. # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
  11001. lt_prog_compiler_wl='-Wl,'
  11002. lt_prog_compiler_pic='-qpic'
  11003. lt_prog_compiler_static='-qstaticlink'
  11004. ;;
  11005. *)
  11006. case `$CC -V 2>&1 | sed 5q` in
  11007. *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
  11008. # Sun Fortran 8.3 passes all unrecognized flags to the linker
  11009. lt_prog_compiler_pic='-KPIC'
  11010. lt_prog_compiler_static='-Bstatic'
  11011. lt_prog_compiler_wl=''
  11012. ;;
  11013. *Sun\ F* | *Sun*Fortran*)
  11014. lt_prog_compiler_pic='-KPIC'
  11015. lt_prog_compiler_static='-Bstatic'
  11016. lt_prog_compiler_wl='-Qoption ld '
  11017. ;;
  11018. *Sun\ C*)
  11019. # Sun C 5.9
  11020. lt_prog_compiler_pic='-KPIC'
  11021. lt_prog_compiler_static='-Bstatic'
  11022. lt_prog_compiler_wl='-Wl,'
  11023. ;;
  11024. *Intel*\ [CF]*Compiler*)
  11025. lt_prog_compiler_wl='-Wl,'
  11026. lt_prog_compiler_pic='-fPIC'
  11027. lt_prog_compiler_static='-static'
  11028. ;;
  11029. *Portland\ Group*)
  11030. lt_prog_compiler_wl='-Wl,'
  11031. lt_prog_compiler_pic='-fpic'
  11032. lt_prog_compiler_static='-Bstatic'
  11033. ;;
  11034. esac
  11035. ;;
  11036. esac
  11037. ;;
  11038. newsos6)
  11039. lt_prog_compiler_pic='-KPIC'
  11040. lt_prog_compiler_static='-Bstatic'
  11041. ;;
  11042. *nto* | *qnx*)
  11043. # QNX uses GNU C++, but need to define -shared option too, otherwise
  11044. # it will coredump.
  11045. lt_prog_compiler_pic='-fPIC -shared'
  11046. ;;
  11047. osf3* | osf4* | osf5*)
  11048. lt_prog_compiler_wl='-Wl,'
  11049. # All OSF/1 code is PIC.
  11050. lt_prog_compiler_static='-non_shared'
  11051. ;;
  11052. rdos*)
  11053. lt_prog_compiler_static='-non_shared'
  11054. ;;
  11055. solaris*)
  11056. lt_prog_compiler_pic='-KPIC'
  11057. lt_prog_compiler_static='-Bstatic'
  11058. case $cc_basename in
  11059. f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
  11060. lt_prog_compiler_wl='-Qoption ld ';;
  11061. *)
  11062. lt_prog_compiler_wl='-Wl,';;
  11063. esac
  11064. ;;
  11065. sunos4*)
  11066. lt_prog_compiler_wl='-Qoption ld '
  11067. lt_prog_compiler_pic='-PIC'
  11068. lt_prog_compiler_static='-Bstatic'
  11069. ;;
  11070. sysv4 | sysv4.2uw2* | sysv4.3*)
  11071. lt_prog_compiler_wl='-Wl,'
  11072. lt_prog_compiler_pic='-KPIC'
  11073. lt_prog_compiler_static='-Bstatic'
  11074. ;;
  11075. sysv4*MP*)
  11076. if test -d /usr/nec; then
  11077. lt_prog_compiler_pic='-Kconform_pic'
  11078. lt_prog_compiler_static='-Bstatic'
  11079. fi
  11080. ;;
  11081. sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
  11082. lt_prog_compiler_wl='-Wl,'
  11083. lt_prog_compiler_pic='-KPIC'
  11084. lt_prog_compiler_static='-Bstatic'
  11085. ;;
  11086. unicos*)
  11087. lt_prog_compiler_wl='-Wl,'
  11088. lt_prog_compiler_can_build_shared=no
  11089. ;;
  11090. uts4*)
  11091. lt_prog_compiler_pic='-pic'
  11092. lt_prog_compiler_static='-Bstatic'
  11093. ;;
  11094. *)
  11095. lt_prog_compiler_can_build_shared=no
  11096. ;;
  11097. esac
  11098. fi
  11099. case $host_os in
  11100. # For platforms that do not support PIC, -DPIC is meaningless:
  11101. *djgpp*)
  11102. lt_prog_compiler_pic=
  11103. ;;
  11104. *)
  11105. lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
  11106. ;;
  11107. esac
  11108. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
  11109. printf %s "checking for $compiler option to produce PIC... " >&6; }
  11110. if test ${lt_cv_prog_compiler_pic+y}
  11111. then :
  11112. printf %s "(cached) " >&6
  11113. else $as_nop
  11114. lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
  11115. fi
  11116. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
  11117. printf "%s\n" "$lt_cv_prog_compiler_pic" >&6; }
  11118. lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
  11119. #
  11120. # Check to make sure the PIC flag actually works.
  11121. #
  11122. if test -n "$lt_prog_compiler_pic"; then
  11123. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
  11124. printf %s "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
  11125. if test ${lt_cv_prog_compiler_pic_works+y}
  11126. then :
  11127. printf %s "(cached) " >&6
  11128. else $as_nop
  11129. lt_cv_prog_compiler_pic_works=no
  11130. ac_outfile=conftest.$ac_objext
  11131. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  11132. lt_compiler_flag="$lt_prog_compiler_pic -DPIC" ## exclude from sc_useless_quotes_in_assignment
  11133. # Insert the option either (1) after the last *FLAGS variable, or
  11134. # (2) before a word containing "conftest.", or (3) at the end.
  11135. # Note that $ac_compile itself does not contain backslashes and begins
  11136. # with a dollar sign (not a hyphen), so the echo should work correctly.
  11137. # The option is referenced via a variable to avoid confusing sed.
  11138. lt_compile=`echo "$ac_compile" | $SED \
  11139. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  11140. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  11141. -e 's:$: $lt_compiler_flag:'`
  11142. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  11143. (eval "$lt_compile" 2>conftest.err)
  11144. ac_status=$?
  11145. cat conftest.err >&5
  11146. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  11147. if (exit $ac_status) && test -s "$ac_outfile"; then
  11148. # The compiler can only warn and ignore the option if not recognized
  11149. # So say no if there are warnings other than the usual output.
  11150. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
  11151. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  11152. if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
  11153. lt_cv_prog_compiler_pic_works=yes
  11154. fi
  11155. fi
  11156. $RM conftest*
  11157. fi
  11158. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
  11159. printf "%s\n" "$lt_cv_prog_compiler_pic_works" >&6; }
  11160. if test yes = "$lt_cv_prog_compiler_pic_works"; then
  11161. case $lt_prog_compiler_pic in
  11162. "" | " "*) ;;
  11163. *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
  11164. esac
  11165. else
  11166. lt_prog_compiler_pic=
  11167. lt_prog_compiler_can_build_shared=no
  11168. fi
  11169. fi
  11170. #
  11171. # Check to make sure the static flag actually works.
  11172. #
  11173. wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
  11174. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
  11175. printf %s "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
  11176. if test ${lt_cv_prog_compiler_static_works+y}
  11177. then :
  11178. printf %s "(cached) " >&6
  11179. else $as_nop
  11180. lt_cv_prog_compiler_static_works=no
  11181. save_LDFLAGS=$LDFLAGS
  11182. LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
  11183. echo "$lt_simple_link_test_code" > conftest.$ac_ext
  11184. if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
  11185. # The linker can only warn and ignore the option if not recognized
  11186. # So say no if there are warnings
  11187. if test -s conftest.err; then
  11188. # Append any errors to the config.log.
  11189. cat conftest.err 1>&5
  11190. $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
  11191. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  11192. if diff conftest.exp conftest.er2 >/dev/null; then
  11193. lt_cv_prog_compiler_static_works=yes
  11194. fi
  11195. else
  11196. lt_cv_prog_compiler_static_works=yes
  11197. fi
  11198. fi
  11199. $RM -r conftest*
  11200. LDFLAGS=$save_LDFLAGS
  11201. fi
  11202. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
  11203. printf "%s\n" "$lt_cv_prog_compiler_static_works" >&6; }
  11204. if test yes = "$lt_cv_prog_compiler_static_works"; then
  11205. :
  11206. else
  11207. lt_prog_compiler_static=
  11208. fi
  11209. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
  11210. printf %s "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
  11211. if test ${lt_cv_prog_compiler_c_o+y}
  11212. then :
  11213. printf %s "(cached) " >&6
  11214. else $as_nop
  11215. lt_cv_prog_compiler_c_o=no
  11216. $RM -r conftest 2>/dev/null
  11217. mkdir conftest
  11218. cd conftest
  11219. mkdir out
  11220. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  11221. lt_compiler_flag="-o out/conftest2.$ac_objext"
  11222. # Insert the option either (1) after the last *FLAGS variable, or
  11223. # (2) before a word containing "conftest.", or (3) at the end.
  11224. # Note that $ac_compile itself does not contain backslashes and begins
  11225. # with a dollar sign (not a hyphen), so the echo should work correctly.
  11226. lt_compile=`echo "$ac_compile" | $SED \
  11227. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  11228. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  11229. -e 's:$: $lt_compiler_flag:'`
  11230. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  11231. (eval "$lt_compile" 2>out/conftest.err)
  11232. ac_status=$?
  11233. cat out/conftest.err >&5
  11234. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  11235. if (exit $ac_status) && test -s out/conftest2.$ac_objext
  11236. then
  11237. # The compiler can only warn and ignore the option if not recognized
  11238. # So say no if there are warnings
  11239. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
  11240. $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
  11241. if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
  11242. lt_cv_prog_compiler_c_o=yes
  11243. fi
  11244. fi
  11245. chmod u+w . 2>&5
  11246. $RM conftest*
  11247. # SGI C++ compiler will create directory out/ii_files/ for
  11248. # template instantiation
  11249. test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
  11250. $RM out/* && rmdir out
  11251. cd ..
  11252. $RM -r conftest
  11253. $RM conftest*
  11254. fi
  11255. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
  11256. printf "%s\n" "$lt_cv_prog_compiler_c_o" >&6; }
  11257. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
  11258. printf %s "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
  11259. if test ${lt_cv_prog_compiler_c_o+y}
  11260. then :
  11261. printf %s "(cached) " >&6
  11262. else $as_nop
  11263. lt_cv_prog_compiler_c_o=no
  11264. $RM -r conftest 2>/dev/null
  11265. mkdir conftest
  11266. cd conftest
  11267. mkdir out
  11268. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  11269. lt_compiler_flag="-o out/conftest2.$ac_objext"
  11270. # Insert the option either (1) after the last *FLAGS variable, or
  11271. # (2) before a word containing "conftest.", or (3) at the end.
  11272. # Note that $ac_compile itself does not contain backslashes and begins
  11273. # with a dollar sign (not a hyphen), so the echo should work correctly.
  11274. lt_compile=`echo "$ac_compile" | $SED \
  11275. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  11276. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  11277. -e 's:$: $lt_compiler_flag:'`
  11278. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  11279. (eval "$lt_compile" 2>out/conftest.err)
  11280. ac_status=$?
  11281. cat out/conftest.err >&5
  11282. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  11283. if (exit $ac_status) && test -s out/conftest2.$ac_objext
  11284. then
  11285. # The compiler can only warn and ignore the option if not recognized
  11286. # So say no if there are warnings
  11287. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
  11288. $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
  11289. if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
  11290. lt_cv_prog_compiler_c_o=yes
  11291. fi
  11292. fi
  11293. chmod u+w . 2>&5
  11294. $RM conftest*
  11295. # SGI C++ compiler will create directory out/ii_files/ for
  11296. # template instantiation
  11297. test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
  11298. $RM out/* && rmdir out
  11299. cd ..
  11300. $RM -r conftest
  11301. $RM conftest*
  11302. fi
  11303. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
  11304. printf "%s\n" "$lt_cv_prog_compiler_c_o" >&6; }
  11305. hard_links=nottested
  11306. if test no = "$lt_cv_prog_compiler_c_o" && test no != "$need_locks"; then
  11307. # do not overwrite the value of need_locks provided by the user
  11308. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
  11309. printf %s "checking if we can lock with hard links... " >&6; }
  11310. hard_links=yes
  11311. $RM conftest*
  11312. ln conftest.a conftest.b 2>/dev/null && hard_links=no
  11313. touch conftest.a
  11314. ln conftest.a conftest.b 2>&5 || hard_links=no
  11315. ln conftest.a conftest.b 2>/dev/null && hard_links=no
  11316. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
  11317. printf "%s\n" "$hard_links" >&6; }
  11318. if test no = "$hard_links"; then
  11319. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5
  11320. printf "%s\n" "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;}
  11321. need_locks=warn
  11322. fi
  11323. else
  11324. need_locks=no
  11325. fi
  11326. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
  11327. printf %s "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
  11328. runpath_var=
  11329. allow_undefined_flag=
  11330. always_export_symbols=no
  11331. archive_cmds=
  11332. archive_expsym_cmds=
  11333. compiler_needs_object=no
  11334. enable_shared_with_static_runtimes=no
  11335. export_dynamic_flag_spec=
  11336. export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
  11337. hardcode_automatic=no
  11338. hardcode_direct=no
  11339. hardcode_direct_absolute=no
  11340. hardcode_libdir_flag_spec=
  11341. hardcode_libdir_separator=
  11342. hardcode_minus_L=no
  11343. hardcode_shlibpath_var=unsupported
  11344. inherit_rpath=no
  11345. link_all_deplibs=unknown
  11346. module_cmds=
  11347. module_expsym_cmds=
  11348. old_archive_from_new_cmds=
  11349. old_archive_from_expsyms_cmds=
  11350. thread_safe_flag_spec=
  11351. whole_archive_flag_spec=
  11352. # include_expsyms should be a list of space-separated symbols to be *always*
  11353. # included in the symbol list
  11354. include_expsyms=
  11355. # exclude_expsyms can be an extended regexp of symbols to exclude
  11356. # it will be wrapped by ' (' and ')$', so one must not match beginning or
  11357. # end of line. Example: 'a|bc|.*d.*' will exclude the symbols 'a' and 'bc',
  11358. # as well as any symbol that contains 'd'.
  11359. exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
  11360. # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
  11361. # platforms (ab)use it in PIC code, but their linkers get confused if
  11362. # the symbol is explicitly referenced. Since portable code cannot
  11363. # rely on this symbol name, it's probably fine to never include it in
  11364. # preloaded symbol tables.
  11365. # Exclude shared library initialization/finalization symbols.
  11366. extract_expsyms_cmds=
  11367. case $host_os in
  11368. cygwin* | mingw* | pw32* | cegcc*)
  11369. # FIXME: the MSVC++ port hasn't been tested in a loooong time
  11370. # When not using gcc, we currently assume that we are using
  11371. # Microsoft Visual C++.
  11372. if test yes != "$GCC"; then
  11373. with_gnu_ld=no
  11374. fi
  11375. ;;
  11376. interix*)
  11377. # we just hope/assume this is gcc and not c89 (= MSVC++)
  11378. with_gnu_ld=yes
  11379. ;;
  11380. openbsd* | bitrig*)
  11381. with_gnu_ld=no
  11382. ;;
  11383. linux* | k*bsd*-gnu | gnu*)
  11384. link_all_deplibs=no
  11385. ;;
  11386. esac
  11387. ld_shlibs=yes
  11388. # On some targets, GNU ld is compatible enough with the native linker
  11389. # that we're better off using the native interface for both.
  11390. lt_use_gnu_ld_interface=no
  11391. if test yes = "$with_gnu_ld"; then
  11392. case $host_os in
  11393. aix*)
  11394. # The AIX port of GNU ld has always aspired to compatibility
  11395. # with the native linker. However, as the warning in the GNU ld
  11396. # block says, versions before 2.19.5* couldn't really create working
  11397. # shared libraries, regardless of the interface used.
  11398. case `$LD -v 2>&1` in
  11399. *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
  11400. *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
  11401. *\ \(GNU\ Binutils\)\ [3-9]*) ;;
  11402. *)
  11403. lt_use_gnu_ld_interface=yes
  11404. ;;
  11405. esac
  11406. ;;
  11407. *)
  11408. lt_use_gnu_ld_interface=yes
  11409. ;;
  11410. esac
  11411. fi
  11412. if test yes = "$lt_use_gnu_ld_interface"; then
  11413. # If archive_cmds runs LD, not CC, wlarc should be empty
  11414. wlarc='$wl'
  11415. # Set some defaults for GNU ld with shared library support. These
  11416. # are reset later if shared libraries are not supported. Putting them
  11417. # here allows them to be overridden if necessary.
  11418. runpath_var=LD_RUN_PATH
  11419. hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
  11420. export_dynamic_flag_spec='$wl--export-dynamic'
  11421. # ancient GNU ld didn't support --whole-archive et. al.
  11422. if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
  11423. whole_archive_flag_spec=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'
  11424. else
  11425. whole_archive_flag_spec=
  11426. fi
  11427. supports_anon_versioning=no
  11428. case `$LD -v | $SED -e 's/(^)\+)\s\+//' 2>&1` in
  11429. *GNU\ gold*) supports_anon_versioning=yes ;;
  11430. *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
  11431. *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
  11432. *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
  11433. *\ 2.11.*) ;; # other 2.11 versions
  11434. *) supports_anon_versioning=yes ;;
  11435. esac
  11436. # See if GNU ld supports shared libraries.
  11437. case $host_os in
  11438. aix[3-9]*)
  11439. # On AIX/PPC, the GNU linker is very broken
  11440. if test ia64 != "$host_cpu"; then
  11441. ld_shlibs=no
  11442. cat <<_LT_EOF 1>&2
  11443. *** Warning: the GNU linker, at least up to release 2.19, is reported
  11444. *** to be unable to reliably create shared libraries on AIX.
  11445. *** Therefore, libtool is disabling shared libraries support. If you
  11446. *** really care for shared libraries, you may want to install binutils
  11447. *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
  11448. *** You will then need to restart the configuration process.
  11449. _LT_EOF
  11450. fi
  11451. ;;
  11452. amigaos*)
  11453. case $host_cpu in
  11454. powerpc)
  11455. # see comment about AmigaOS4 .so support
  11456. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
  11457. archive_expsym_cmds=''
  11458. ;;
  11459. m68k)
  11460. archive_cmds='$RM $output_objdir/a2ixlibrary.data~$ECHO "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$ECHO "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$ECHO "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$ECHO "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)'
  11461. hardcode_libdir_flag_spec='-L$libdir'
  11462. hardcode_minus_L=yes
  11463. ;;
  11464. esac
  11465. ;;
  11466. beos*)
  11467. if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  11468. allow_undefined_flag=unsupported
  11469. # Joseph Beckenbach <[email protected]> says some releases of gcc
  11470. # support --undefined. This deserves some investigation. FIXME
  11471. archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
  11472. else
  11473. ld_shlibs=no
  11474. fi
  11475. ;;
  11476. cygwin* | mingw* | pw32* | cegcc*)
  11477. # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
  11478. # as there is no search path for DLLs.
  11479. hardcode_libdir_flag_spec='-L$libdir'
  11480. export_dynamic_flag_spec='$wl--export-all-symbols'
  11481. allow_undefined_flag=unsupported
  11482. always_export_symbols=no
  11483. enable_shared_with_static_runtimes=yes
  11484. export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/;s/^.*[ ]__nm__\([^ ]*\)[ ][^ ]*/\1 DATA/;/^I[ ]/d;/^[AITW][ ]/s/.* //'\'' | sort | uniq > $export_symbols'
  11485. exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
  11486. if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
  11487. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
  11488. # If the export-symbols file already is a .def file, use it as
  11489. # is; otherwise, prepend EXPORTS...
  11490. archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then
  11491. cp $export_symbols $output_objdir/$soname.def;
  11492. else
  11493. echo EXPORTS > $output_objdir/$soname.def;
  11494. cat $export_symbols >> $output_objdir/$soname.def;
  11495. fi~
  11496. $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
  11497. else
  11498. ld_shlibs=no
  11499. fi
  11500. ;;
  11501. haiku*)
  11502. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
  11503. link_all_deplibs=yes
  11504. ;;
  11505. os2*)
  11506. hardcode_libdir_flag_spec='-L$libdir'
  11507. hardcode_minus_L=yes
  11508. allow_undefined_flag=unsupported
  11509. shrext_cmds=.dll
  11510. archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
  11511. $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
  11512. $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
  11513. $ECHO EXPORTS >> $output_objdir/$libname.def~
  11514. emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
  11515. $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
  11516. emximp -o $lib $output_objdir/$libname.def'
  11517. archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
  11518. $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
  11519. $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
  11520. $ECHO EXPORTS >> $output_objdir/$libname.def~
  11521. prefix_cmds="$SED"~
  11522. if test EXPORTS = "`$SED 1q $export_symbols`"; then
  11523. prefix_cmds="$prefix_cmds -e 1d";
  11524. fi~
  11525. prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
  11526. cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
  11527. $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
  11528. emximp -o $lib $output_objdir/$libname.def'
  11529. old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
  11530. enable_shared_with_static_runtimes=yes
  11531. ;;
  11532. interix[3-9]*)
  11533. hardcode_direct=no
  11534. hardcode_shlibpath_var=no
  11535. hardcode_libdir_flag_spec='$wl-rpath,$libdir'
  11536. export_dynamic_flag_spec='$wl-E'
  11537. # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
  11538. # Instead, shared libraries are loaded at an image base (0x10000000 by
  11539. # default) and relocated if they conflict, which is a slow very memory
  11540. # consuming and fragmenting process. To avoid this, we pick a random,
  11541. # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
  11542. # time. Moving up from 0x10000000 also allows more sbrk(2) space.
  11543. archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
  11544. archive_expsym_cmds='sed "s|^|_|" $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--retain-symbols-file,$output_objdir/$soname.expsym $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
  11545. ;;
  11546. gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
  11547. tmp_diet=no
  11548. if test linux-dietlibc = "$host_os"; then
  11549. case $cc_basename in
  11550. diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
  11551. esac
  11552. fi
  11553. if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
  11554. && test no = "$tmp_diet"
  11555. then
  11556. tmp_addflag=' $pic_flag'
  11557. tmp_sharedflag='-shared'
  11558. case $cc_basename,$host_cpu in
  11559. pgcc*) # Portland Group C compiler
  11560. whole_archive_flag_spec='$wl--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` $wl--no-whole-archive'
  11561. tmp_addflag=' $pic_flag'
  11562. ;;
  11563. pgf77* | pgf90* | pgf95* | pgfortran*)
  11564. # Portland Group f77 and f90 compilers
  11565. whole_archive_flag_spec='$wl--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` $wl--no-whole-archive'
  11566. tmp_addflag=' $pic_flag -Mnomain' ;;
  11567. ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
  11568. tmp_addflag=' -i_dynamic' ;;
  11569. efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
  11570. tmp_addflag=' -i_dynamic -nofor_main' ;;
  11571. ifc* | ifort*) # Intel Fortran compiler
  11572. tmp_addflag=' -nofor_main' ;;
  11573. lf95*) # Lahey Fortran 8.1
  11574. whole_archive_flag_spec=
  11575. tmp_sharedflag='--shared' ;;
  11576. nagfor*) # NAGFOR 5.3
  11577. tmp_sharedflag='-Wl,-shared' ;;
  11578. xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
  11579. tmp_sharedflag='-qmkshrobj'
  11580. tmp_addflag= ;;
  11581. nvcc*) # Cuda Compiler Driver 2.2
  11582. whole_archive_flag_spec='$wl--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` $wl--no-whole-archive'
  11583. compiler_needs_object=yes
  11584. ;;
  11585. esac
  11586. case `$CC -V 2>&1 | sed 5q` in
  11587. *Sun\ C*) # Sun C 5.9
  11588. whole_archive_flag_spec='$wl--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` $wl--no-whole-archive'
  11589. compiler_needs_object=yes
  11590. tmp_sharedflag='-G' ;;
  11591. *Sun\ F*) # Sun Fortran 8.3
  11592. tmp_sharedflag='-G' ;;
  11593. esac
  11594. archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
  11595. if test yes = "$supports_anon_versioning"; then
  11596. archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
  11597. cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
  11598. echo "local: *; };" >> $output_objdir/$libname.ver~
  11599. $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib'
  11600. fi
  11601. case $cc_basename in
  11602. tcc*)
  11603. export_dynamic_flag_spec='-rdynamic'
  11604. ;;
  11605. xlf* | bgf* | bgxlf* | mpixlf*)
  11606. # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
  11607. whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
  11608. hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
  11609. archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
  11610. if test yes = "$supports_anon_versioning"; then
  11611. archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
  11612. cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
  11613. echo "local: *; };" >> $output_objdir/$libname.ver~
  11614. $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
  11615. fi
  11616. ;;
  11617. esac
  11618. else
  11619. ld_shlibs=no
  11620. fi
  11621. ;;
  11622. netbsd* | netbsdelf*-gnu)
  11623. if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  11624. archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
  11625. wlarc=
  11626. else
  11627. archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
  11628. archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
  11629. fi
  11630. ;;
  11631. solaris*)
  11632. if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
  11633. ld_shlibs=no
  11634. cat <<_LT_EOF 1>&2
  11635. *** Warning: The releases 2.8.* of the GNU linker cannot reliably
  11636. *** create shared libraries on Solaris systems. Therefore, libtool
  11637. *** is disabling shared libraries support. We urge you to upgrade GNU
  11638. *** binutils to release 2.9.1 or newer. Another option is to modify
  11639. *** your PATH or compiler configuration so that the native linker is
  11640. *** used, and then restart.
  11641. _LT_EOF
  11642. elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  11643. archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
  11644. archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
  11645. else
  11646. ld_shlibs=no
  11647. fi
  11648. ;;
  11649. sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
  11650. case `$LD -v 2>&1` in
  11651. *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
  11652. ld_shlibs=no
  11653. cat <<_LT_EOF 1>&2
  11654. *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 cannot
  11655. *** reliably create shared libraries on SCO systems. Therefore, libtool
  11656. *** is disabling shared libraries support. We urge you to upgrade GNU
  11657. *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
  11658. *** your PATH or compiler configuration so that the native linker is
  11659. *** used, and then restart.
  11660. _LT_EOF
  11661. ;;
  11662. *)
  11663. # For security reasons, it is highly recommended that you always
  11664. # use absolute paths for naming shared libraries, and exclude the
  11665. # DT_RUNPATH tag from executables and libraries. But doing so
  11666. # requires that you compile everything twice, which is a pain.
  11667. if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  11668. hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
  11669. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
  11670. archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
  11671. else
  11672. ld_shlibs=no
  11673. fi
  11674. ;;
  11675. esac
  11676. ;;
  11677. sunos4*)
  11678. archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  11679. wlarc=
  11680. hardcode_direct=yes
  11681. hardcode_shlibpath_var=no
  11682. ;;
  11683. *)
  11684. if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  11685. archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
  11686. archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
  11687. else
  11688. ld_shlibs=no
  11689. fi
  11690. ;;
  11691. esac
  11692. if test no = "$ld_shlibs"; then
  11693. runpath_var=
  11694. hardcode_libdir_flag_spec=
  11695. export_dynamic_flag_spec=
  11696. whole_archive_flag_spec=
  11697. fi
  11698. else
  11699. # PORTME fill in a description of your system's linker (not GNU ld)
  11700. case $host_os in
  11701. aix3*)
  11702. allow_undefined_flag=unsupported
  11703. always_export_symbols=yes
  11704. archive_expsym_cmds='$LD -o $output_objdir/$soname $libobjs $deplibs $linker_flags -bE:$export_symbols -T512 -H512 -bM:SRE~$AR $AR_FLAGS $lib $output_objdir/$soname'
  11705. # Note: this linker hardcodes the directories in LIBPATH if there
  11706. # are no directories specified by -L.
  11707. hardcode_minus_L=yes
  11708. if test yes = "$GCC" && test -z "$lt_prog_compiler_static"; then
  11709. # Neither direct hardcoding nor static linking is supported with a
  11710. # broken collect2.
  11711. hardcode_direct=unsupported
  11712. fi
  11713. ;;
  11714. aix[4-9]*)
  11715. if test ia64 = "$host_cpu"; then
  11716. # On IA64, the linker does run time linking by default, so we don't
  11717. # have to do anything special.
  11718. aix_use_runtimelinking=no
  11719. exp_sym_flag='-Bexport'
  11720. no_entry_flag=
  11721. else
  11722. # If we're using GNU nm, then we don't want the "-C" option.
  11723. # -C means demangle to GNU nm, but means don't demangle to AIX nm.
  11724. # Without the "-l" option, or with the "-B" option, AIX nm treats
  11725. # weak defined symbols like other global defined symbols, whereas
  11726. # GNU nm marks them as "W".
  11727. # While the 'weak' keyword is ignored in the Export File, we need
  11728. # it in the Import File for the 'aix-soname' feature, so we have
  11729. # to replace the "-B" option with "-P" for AIX nm.
  11730. if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
  11731. export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { if (\$ 2 == "W") { print \$ 3 " weak" } else { print \$ 3 } } }'\'' | sort -u > $export_symbols'
  11732. else
  11733. export_symbols_cmds='`func_echo_all $NM | $SED -e '\''s/B\([^B]*\)$/P\1/'\''` -PCpgl $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) && (substr(\$ 1,1,1) != ".")) { if ((\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) { print \$ 1 " weak" } else { print \$ 1 } } }'\'' | sort -u > $export_symbols'
  11734. fi
  11735. aix_use_runtimelinking=no
  11736. # Test if we are trying to use run time linking or normal
  11737. # AIX style linking. If -brtl is somewhere in LDFLAGS, we
  11738. # have runtime linking enabled, and use it for executables.
  11739. # For shared libraries, we enable/disable runtime linking
  11740. # depending on the kind of the shared library created -
  11741. # when "with_aix_soname,aix_use_runtimelinking" is:
  11742. # "aix,no" lib.a(lib.so.V) shared, rtl:no, for executables
  11743. # "aix,yes" lib.so shared, rtl:yes, for executables
  11744. # lib.a static archive
  11745. # "both,no" lib.so.V(shr.o) shared, rtl:yes
  11746. # lib.a(lib.so.V) shared, rtl:no, for executables
  11747. # "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables
  11748. # lib.a(lib.so.V) shared, rtl:no
  11749. # "svr4,*" lib.so.V(shr.o) shared, rtl:yes, for executables
  11750. # lib.a static archive
  11751. case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
  11752. for ld_flag in $LDFLAGS; do
  11753. if (test x-brtl = "x$ld_flag" || test x-Wl,-brtl = "x$ld_flag"); then
  11754. aix_use_runtimelinking=yes
  11755. break
  11756. fi
  11757. done
  11758. if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then
  11759. # With aix-soname=svr4, we create the lib.so.V shared archives only,
  11760. # so we don't have lib.a shared libs to link our executables.
  11761. # We have to force runtime linking in this case.
  11762. aix_use_runtimelinking=yes
  11763. LDFLAGS="$LDFLAGS -Wl,-brtl"
  11764. fi
  11765. ;;
  11766. esac
  11767. exp_sym_flag='-bexport'
  11768. no_entry_flag='-bnoentry'
  11769. fi
  11770. # When large executables or shared objects are built, AIX ld can
  11771. # have problems creating the table of contents. If linking a library
  11772. # or program results in "error TOC overflow" add -mminimal-toc to
  11773. # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
  11774. # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
  11775. archive_cmds=''
  11776. hardcode_direct=yes
  11777. hardcode_direct_absolute=yes
  11778. hardcode_libdir_separator=':'
  11779. link_all_deplibs=yes
  11780. file_list_spec='$wl-f,'
  11781. case $with_aix_soname,$aix_use_runtimelinking in
  11782. aix,*) ;; # traditional, no import file
  11783. svr4,* | *,yes) # use import file
  11784. # The Import File defines what to hardcode.
  11785. hardcode_direct=no
  11786. hardcode_direct_absolute=no
  11787. ;;
  11788. esac
  11789. if test yes = "$GCC"; then
  11790. case $host_os in aix4.[012]|aix4.[012].*)
  11791. # We only want to do this on AIX 4.2 and lower, the check
  11792. # below for broken collect2 doesn't work under 4.3+
  11793. collect2name=`$CC -print-prog-name=collect2`
  11794. if test -f "$collect2name" &&
  11795. strings "$collect2name" | $GREP resolve_lib_name >/dev/null
  11796. then
  11797. # We have reworked collect2
  11798. :
  11799. else
  11800. # We have old collect2
  11801. hardcode_direct=unsupported
  11802. # It fails to find uninstalled libraries when the uninstalled
  11803. # path is not listed in the libpath. Setting hardcode_minus_L
  11804. # to unsupported forces relinking
  11805. hardcode_minus_L=yes
  11806. hardcode_libdir_flag_spec='-L$libdir'
  11807. hardcode_libdir_separator=
  11808. fi
  11809. ;;
  11810. esac
  11811. shared_flag='-shared'
  11812. if test yes = "$aix_use_runtimelinking"; then
  11813. shared_flag="$shared_flag "'$wl-G'
  11814. fi
  11815. # Need to ensure runtime linking is disabled for the traditional
  11816. # shared library, or the linker may eventually find shared libraries
  11817. # /with/ Import File - we do not want to mix them.
  11818. shared_flag_aix='-shared'
  11819. shared_flag_svr4='-shared $wl-G'
  11820. else
  11821. # not using gcc
  11822. if test ia64 = "$host_cpu"; then
  11823. # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
  11824. # chokes on -Wl,-G. The following line is correct:
  11825. shared_flag='-G'
  11826. else
  11827. if test yes = "$aix_use_runtimelinking"; then
  11828. shared_flag='$wl-G'
  11829. else
  11830. shared_flag='$wl-bM:SRE'
  11831. fi
  11832. shared_flag_aix='$wl-bM:SRE'
  11833. shared_flag_svr4='$wl-G'
  11834. fi
  11835. fi
  11836. export_dynamic_flag_spec='$wl-bexpall'
  11837. # It seems that -bexpall does not export symbols beginning with
  11838. # underscore (_), so it is better to generate a list of symbols to export.
  11839. always_export_symbols=yes
  11840. if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then
  11841. # Warning - without using the other runtime loading flags (-brtl),
  11842. # -berok will link without error, but may produce a broken library.
  11843. allow_undefined_flag='-berok'
  11844. # Determine the default libpath from the value encoded in an
  11845. # empty executable.
  11846. if test set = "${lt_cv_aix_libpath+set}"; then
  11847. aix_libpath=$lt_cv_aix_libpath
  11848. else
  11849. if test ${lt_cv_aix_libpath_+y}
  11850. then :
  11851. printf %s "(cached) " >&6
  11852. else $as_nop
  11853. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11854. /* end confdefs.h. */
  11855. int main (void)
  11856. {
  11857. ;
  11858. return 0;
  11859. }
  11860. _ACEOF
  11861. if ac_fn_c_try_link "$LINENO"
  11862. then :
  11863. lt_aix_libpath_sed='
  11864. /Import File Strings/,/^$/ {
  11865. /^0/ {
  11866. s/^0 *\([^ ]*\) *$/\1/
  11867. p
  11868. }
  11869. }'
  11870. lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  11871. # Check for a 64-bit object if we didn't find anything.
  11872. if test -z "$lt_cv_aix_libpath_"; then
  11873. lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  11874. fi
  11875. fi
  11876. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  11877. conftest$ac_exeext conftest.$ac_ext
  11878. if test -z "$lt_cv_aix_libpath_"; then
  11879. lt_cv_aix_libpath_=/usr/lib:/lib
  11880. fi
  11881. fi
  11882. aix_libpath=$lt_cv_aix_libpath_
  11883. fi
  11884. hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
  11885. archive_expsym_cmds='$CC -o $output_objdir/$soname $libobjs $deplibs $wl'$no_entry_flag' $compiler_flags `if test -n "$allow_undefined_flag"; then func_echo_all "$wl$allow_undefined_flag"; else :; fi` $wl'$exp_sym_flag:\$export_symbols' '$shared_flag
  11886. else
  11887. if test ia64 = "$host_cpu"; then
  11888. hardcode_libdir_flag_spec='$wl-R $libdir:/usr/lib:/lib'
  11889. allow_undefined_flag="-z nodefs"
  11890. archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\$wl$no_entry_flag"' $compiler_flags $wl$allow_undefined_flag '"\$wl$exp_sym_flag:\$export_symbols"
  11891. else
  11892. # Determine the default libpath from the value encoded in an
  11893. # empty executable.
  11894. if test set = "${lt_cv_aix_libpath+set}"; then
  11895. aix_libpath=$lt_cv_aix_libpath
  11896. else
  11897. if test ${lt_cv_aix_libpath_+y}
  11898. then :
  11899. printf %s "(cached) " >&6
  11900. else $as_nop
  11901. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11902. /* end confdefs.h. */
  11903. int main (void)
  11904. {
  11905. ;
  11906. return 0;
  11907. }
  11908. _ACEOF
  11909. if ac_fn_c_try_link "$LINENO"
  11910. then :
  11911. lt_aix_libpath_sed='
  11912. /Import File Strings/,/^$/ {
  11913. /^0/ {
  11914. s/^0 *\([^ ]*\) *$/\1/
  11915. p
  11916. }
  11917. }'
  11918. lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  11919. # Check for a 64-bit object if we didn't find anything.
  11920. if test -z "$lt_cv_aix_libpath_"; then
  11921. lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  11922. fi
  11923. fi
  11924. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  11925. conftest$ac_exeext conftest.$ac_ext
  11926. if test -z "$lt_cv_aix_libpath_"; then
  11927. lt_cv_aix_libpath_=/usr/lib:/lib
  11928. fi
  11929. fi
  11930. aix_libpath=$lt_cv_aix_libpath_
  11931. fi
  11932. hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
  11933. # Warning - without using the other run time loading flags,
  11934. # -berok will link without error, but may produce a broken library.
  11935. no_undefined_flag=' $wl-bernotok'
  11936. allow_undefined_flag=' $wl-berok'
  11937. if test yes = "$with_gnu_ld"; then
  11938. # We only use this code for GNU lds that support --whole-archive.
  11939. whole_archive_flag_spec='$wl--whole-archive$convenience $wl--no-whole-archive'
  11940. else
  11941. # Exported symbols can be pulled into shared objects from archives
  11942. whole_archive_flag_spec='$convenience'
  11943. fi
  11944. archive_cmds_need_lc=yes
  11945. archive_expsym_cmds='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d'
  11946. # -brtl affects multiple linker settings, -berok does not and is overridden later
  11947. compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([, ]\\)%-berok\\1%g"`'
  11948. if test svr4 != "$with_aix_soname"; then
  11949. # This is similar to how AIX traditionally builds its shared libraries.
  11950. archive_expsym_cmds="$archive_expsym_cmds"'~$CC '$shared_flag_aix' -o $output_objdir/$realname.d/$soname $libobjs $deplibs $wl-bnoentry '$compiler_flags_filtered'$wl-bE:$export_symbols$allow_undefined_flag~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$realname.d/$soname'
  11951. fi
  11952. if test aix != "$with_aix_soname"; then
  11953. archive_expsym_cmds="$archive_expsym_cmds"'~$CC '$shared_flag_svr4' -o $output_objdir/$realname.d/$shared_archive_member_spec.o $libobjs $deplibs $wl-bnoentry '$compiler_flags_filtered'$wl-bE:$export_symbols$allow_undefined_flag~$STRIP -e $output_objdir/$realname.d/$shared_archive_member_spec.o~( func_echo_all "#! $soname($shared_archive_member_spec.o)"; if test shr_64 = "$shared_archive_member_spec"; then func_echo_all "# 64"; else func_echo_all "# 32"; fi; cat $export_symbols ) > $output_objdir/$realname.d/$shared_archive_member_spec.imp~$AR $AR_FLAGS $output_objdir/$soname $output_objdir/$realname.d/$shared_archive_member_spec.o $output_objdir/$realname.d/$shared_archive_member_spec.imp'
  11954. else
  11955. # used by -dlpreopen to get the symbols
  11956. archive_expsym_cmds="$archive_expsym_cmds"'~$MV $output_objdir/$realname.d/$soname $output_objdir'
  11957. fi
  11958. archive_expsym_cmds="$archive_expsym_cmds"'~$RM -r $output_objdir/$realname.d'
  11959. fi
  11960. fi
  11961. ;;
  11962. amigaos*)
  11963. case $host_cpu in
  11964. powerpc)
  11965. # see comment about AmigaOS4 .so support
  11966. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
  11967. archive_expsym_cmds=''
  11968. ;;
  11969. m68k)
  11970. archive_cmds='$RM $output_objdir/a2ixlibrary.data~$ECHO "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$ECHO "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$ECHO "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$ECHO "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)'
  11971. hardcode_libdir_flag_spec='-L$libdir'
  11972. hardcode_minus_L=yes
  11973. ;;
  11974. esac
  11975. ;;
  11976. bsdi[45]*)
  11977. export_dynamic_flag_spec=-rdynamic
  11978. ;;
  11979. cygwin* | mingw* | pw32* | cegcc*)
  11980. # When not using gcc, we currently assume that we are using
  11981. # Microsoft Visual C++.
  11982. # hardcode_libdir_flag_spec is actually meaningless, as there is
  11983. # no search path for DLLs.
  11984. case $cc_basename in
  11985. cl*)
  11986. # Native MSVC
  11987. hardcode_libdir_flag_spec=' '
  11988. allow_undefined_flag=unsupported
  11989. always_export_symbols=yes
  11990. file_list_spec='@'
  11991. # Tell ltmain to make .lib files, not .a files.
  11992. libext=lib
  11993. # Tell ltmain to make .dll files, not .so files.
  11994. shrext_cmds=.dll
  11995. # FIXME: Setting linknames here is a bad hack.
  11996. archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames='
  11997. archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then
  11998. cp "$export_symbols" "$output_objdir/$soname.def";
  11999. echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp";
  12000. else
  12001. $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp;
  12002. fi~
  12003. $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
  12004. linknames='
  12005. # The linker will not automatically build a static lib if we build a DLL.
  12006. # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
  12007. enable_shared_with_static_runtimes=yes
  12008. exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
  12009. export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
  12010. # Don't use ranlib
  12011. old_postinstall_cmds='chmod 644 $oldlib'
  12012. postlink_cmds='lt_outputfile="@OUTPUT@"~
  12013. lt_tool_outputfile="@TOOL_OUTPUT@"~
  12014. case $lt_outputfile in
  12015. *.exe|*.EXE) ;;
  12016. *)
  12017. lt_outputfile=$lt_outputfile.exe
  12018. lt_tool_outputfile=$lt_tool_outputfile.exe
  12019. ;;
  12020. esac~
  12021. if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then
  12022. $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
  12023. $RM "$lt_outputfile.manifest";
  12024. fi'
  12025. ;;
  12026. *)
  12027. # Assume MSVC wrapper
  12028. hardcode_libdir_flag_spec=' '
  12029. allow_undefined_flag=unsupported
  12030. # Tell ltmain to make .lib files, not .a files.
  12031. libext=lib
  12032. # Tell ltmain to make .dll files, not .so files.
  12033. shrext_cmds=.dll
  12034. # FIXME: Setting linknames here is a bad hack.
  12035. archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
  12036. # The linker will automatically build a .lib file if we build a DLL.
  12037. old_archive_from_new_cmds='true'
  12038. # FIXME: Should let the user specify the lib program.
  12039. old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
  12040. enable_shared_with_static_runtimes=yes
  12041. ;;
  12042. esac
  12043. ;;
  12044. darwin* | rhapsody*)
  12045. archive_cmds_need_lc=no
  12046. hardcode_direct=no
  12047. hardcode_automatic=yes
  12048. hardcode_shlibpath_var=unsupported
  12049. if test yes = "$lt_cv_ld_force_load"; then
  12050. whole_archive_flag_spec='`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience $wl-force_load,$conv\"; done; func_echo_all \"$new_convenience\"`'
  12051. else
  12052. whole_archive_flag_spec=''
  12053. fi
  12054. link_all_deplibs=yes
  12055. allow_undefined_flag=$_lt_dar_allow_undefined
  12056. case $cc_basename in
  12057. ifort*|nagfor*) _lt_dar_can_shared=yes ;;
  12058. *) _lt_dar_can_shared=$GCC ;;
  12059. esac
  12060. if test yes = "$_lt_dar_can_shared"; then
  12061. output_verbose_link_cmd=func_echo_all
  12062. archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dsymutil"
  12063. module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil"
  12064. archive_expsym_cmds="sed 's|^|_|' < \$export_symbols > \$output_objdir/\$libname-symbols.expsym~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dar_export_syms$_lt_dsymutil"
  12065. module_expsym_cmds="sed -e 's|^|_|' < \$export_symbols > \$output_objdir/\$libname-symbols.expsym~\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dar_export_syms$_lt_dsymutil"
  12066. else
  12067. ld_shlibs=no
  12068. fi
  12069. ;;
  12070. dgux*)
  12071. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  12072. hardcode_libdir_flag_spec='-L$libdir'
  12073. hardcode_shlibpath_var=no
  12074. ;;
  12075. # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
  12076. # support. Future versions do this automatically, but an explicit c++rt0.o
  12077. # does not break anything, and helps significantly (at the cost of a little
  12078. # extra space).
  12079. freebsd2.2*)
  12080. archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
  12081. hardcode_libdir_flag_spec='-R$libdir'
  12082. hardcode_direct=yes
  12083. hardcode_shlibpath_var=no
  12084. ;;
  12085. # Unfortunately, older versions of FreeBSD 2 do not have this feature.
  12086. freebsd2.*)
  12087. archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  12088. hardcode_direct=yes
  12089. hardcode_minus_L=yes
  12090. hardcode_shlibpath_var=no
  12091. ;;
  12092. # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
  12093. freebsd* | dragonfly*)
  12094. archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  12095. hardcode_libdir_flag_spec='-R$libdir'
  12096. hardcode_direct=yes
  12097. hardcode_shlibpath_var=no
  12098. ;;
  12099. hpux9*)
  12100. if test yes = "$GCC"; then
  12101. archive_cmds='$RM $output_objdir/$soname~$CC -shared $pic_flag $wl+b $wl$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test "x$output_objdir/$soname" = "x$lib" || mv $output_objdir/$soname $lib'
  12102. else
  12103. archive_cmds='$RM $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test "x$output_objdir/$soname" = "x$lib" || mv $output_objdir/$soname $lib'
  12104. fi
  12105. hardcode_libdir_flag_spec='$wl+b $wl$libdir'
  12106. hardcode_libdir_separator=:
  12107. hardcode_direct=yes
  12108. # hardcode_minus_L: Not really in the search PATH,
  12109. # but as the default location of the library.
  12110. hardcode_minus_L=yes
  12111. export_dynamic_flag_spec='$wl-E'
  12112. ;;
  12113. hpux10*)
  12114. if test yes,no = "$GCC,$with_gnu_ld"; then
  12115. archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  12116. else
  12117. archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
  12118. fi
  12119. if test no = "$with_gnu_ld"; then
  12120. hardcode_libdir_flag_spec='$wl+b $wl$libdir'
  12121. hardcode_libdir_separator=:
  12122. hardcode_direct=yes
  12123. hardcode_direct_absolute=yes
  12124. export_dynamic_flag_spec='$wl-E'
  12125. # hardcode_minus_L: Not really in the search PATH,
  12126. # but as the default location of the library.
  12127. hardcode_minus_L=yes
  12128. fi
  12129. ;;
  12130. hpux11*)
  12131. if test yes,no = "$GCC,$with_gnu_ld"; then
  12132. case $host_cpu in
  12133. hppa*64*)
  12134. archive_cmds='$CC -shared $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
  12135. ;;
  12136. ia64*)
  12137. archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
  12138. ;;
  12139. *)
  12140. archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  12141. ;;
  12142. esac
  12143. else
  12144. case $host_cpu in
  12145. hppa*64*)
  12146. archive_cmds='$CC -b $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
  12147. ;;
  12148. ia64*)
  12149. archive_cmds='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
  12150. ;;
  12151. *)
  12152. # Older versions of the 11.00 compiler do not understand -b yet
  12153. # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
  12154. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
  12155. printf %s "checking if $CC understands -b... " >&6; }
  12156. if test ${lt_cv_prog_compiler__b+y}
  12157. then :
  12158. printf %s "(cached) " >&6
  12159. else $as_nop
  12160. lt_cv_prog_compiler__b=no
  12161. save_LDFLAGS=$LDFLAGS
  12162. LDFLAGS="$LDFLAGS -b"
  12163. echo "$lt_simple_link_test_code" > conftest.$ac_ext
  12164. if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
  12165. # The linker can only warn and ignore the option if not recognized
  12166. # So say no if there are warnings
  12167. if test -s conftest.err; then
  12168. # Append any errors to the config.log.
  12169. cat conftest.err 1>&5
  12170. $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
  12171. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  12172. if diff conftest.exp conftest.er2 >/dev/null; then
  12173. lt_cv_prog_compiler__b=yes
  12174. fi
  12175. else
  12176. lt_cv_prog_compiler__b=yes
  12177. fi
  12178. fi
  12179. $RM -r conftest*
  12180. LDFLAGS=$save_LDFLAGS
  12181. fi
  12182. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
  12183. printf "%s\n" "$lt_cv_prog_compiler__b" >&6; }
  12184. if test yes = "$lt_cv_prog_compiler__b"; then
  12185. archive_cmds='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  12186. else
  12187. archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
  12188. fi
  12189. ;;
  12190. esac
  12191. fi
  12192. if test no = "$with_gnu_ld"; then
  12193. hardcode_libdir_flag_spec='$wl+b $wl$libdir'
  12194. hardcode_libdir_separator=:
  12195. case $host_cpu in
  12196. hppa*64*|ia64*)
  12197. hardcode_direct=no
  12198. hardcode_shlibpath_var=no
  12199. ;;
  12200. *)
  12201. hardcode_direct=yes
  12202. hardcode_direct_absolute=yes
  12203. export_dynamic_flag_spec='$wl-E'
  12204. # hardcode_minus_L: Not really in the search PATH,
  12205. # but as the default location of the library.
  12206. hardcode_minus_L=yes
  12207. ;;
  12208. esac
  12209. fi
  12210. ;;
  12211. irix5* | irix6* | nonstopux*)
  12212. if test yes = "$GCC"; then
  12213. archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname `test -n "$verstring" && func_echo_all "$wl-set_version $wl$verstring"` $wl-update_registry $wl$output_objdir/so_locations -o $lib'
  12214. # Try to use the -exported_symbol ld option, if it does not
  12215. # work, assume that -exports_file does not work either and
  12216. # implicitly export all symbols.
  12217. # This should be the same for all languages, so no per-tag cache variable.
  12218. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
  12219. printf %s "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
  12220. if test ${lt_cv_irix_exported_symbol+y}
  12221. then :
  12222. printf %s "(cached) " >&6
  12223. else $as_nop
  12224. save_LDFLAGS=$LDFLAGS
  12225. LDFLAGS="$LDFLAGS -shared $wl-exported_symbol ${wl}foo $wl-update_registry $wl/dev/null"
  12226. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12227. /* end confdefs.h. */
  12228. int foo (void) { return 0; }
  12229. _ACEOF
  12230. if ac_fn_c_try_link "$LINENO"
  12231. then :
  12232. lt_cv_irix_exported_symbol=yes
  12233. else $as_nop
  12234. lt_cv_irix_exported_symbol=no
  12235. fi
  12236. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  12237. conftest$ac_exeext conftest.$ac_ext
  12238. LDFLAGS=$save_LDFLAGS
  12239. fi
  12240. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
  12241. printf "%s\n" "$lt_cv_irix_exported_symbol" >&6; }
  12242. if test yes = "$lt_cv_irix_exported_symbol"; then
  12243. archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname `test -n "$verstring" && func_echo_all "$wl-set_version $wl$verstring"` $wl-update_registry $wl$output_objdir/so_locations $wl-exports_file $wl$export_symbols -o $lib'
  12244. fi
  12245. link_all_deplibs=no
  12246. else
  12247. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry $output_objdir/so_locations -o $lib'
  12248. archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry $output_objdir/so_locations -exports_file $export_symbols -o $lib'
  12249. fi
  12250. archive_cmds_need_lc='no'
  12251. hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
  12252. hardcode_libdir_separator=:
  12253. inherit_rpath=yes
  12254. link_all_deplibs=yes
  12255. ;;
  12256. linux*)
  12257. case $cc_basename in
  12258. tcc*)
  12259. # Fabrice Bellard et al's Tiny C Compiler
  12260. ld_shlibs=yes
  12261. archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  12262. ;;
  12263. esac
  12264. ;;
  12265. netbsd* | netbsdelf*-gnu)
  12266. if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  12267. archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
  12268. else
  12269. archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
  12270. fi
  12271. hardcode_libdir_flag_spec='-R$libdir'
  12272. hardcode_direct=yes
  12273. hardcode_shlibpath_var=no
  12274. ;;
  12275. newsos6)
  12276. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  12277. hardcode_direct=yes
  12278. hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
  12279. hardcode_libdir_separator=:
  12280. hardcode_shlibpath_var=no
  12281. ;;
  12282. *nto* | *qnx*)
  12283. ;;
  12284. openbsd* | bitrig*)
  12285. if test -f /usr/libexec/ld.so; then
  12286. hardcode_direct=yes
  12287. hardcode_shlibpath_var=no
  12288. hardcode_direct_absolute=yes
  12289. if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
  12290. archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  12291. archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags $wl-retain-symbols-file,$export_symbols'
  12292. hardcode_libdir_flag_spec='$wl-rpath,$libdir'
  12293. export_dynamic_flag_spec='$wl-E'
  12294. else
  12295. archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  12296. hardcode_libdir_flag_spec='$wl-rpath,$libdir'
  12297. fi
  12298. else
  12299. ld_shlibs=no
  12300. fi
  12301. ;;
  12302. os2*)
  12303. hardcode_libdir_flag_spec='-L$libdir'
  12304. hardcode_minus_L=yes
  12305. allow_undefined_flag=unsupported
  12306. shrext_cmds=.dll
  12307. archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
  12308. $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
  12309. $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
  12310. $ECHO EXPORTS >> $output_objdir/$libname.def~
  12311. emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
  12312. $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
  12313. emximp -o $lib $output_objdir/$libname.def'
  12314. archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
  12315. $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
  12316. $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
  12317. $ECHO EXPORTS >> $output_objdir/$libname.def~
  12318. prefix_cmds="$SED"~
  12319. if test EXPORTS = "`$SED 1q $export_symbols`"; then
  12320. prefix_cmds="$prefix_cmds -e 1d";
  12321. fi~
  12322. prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
  12323. cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
  12324. $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
  12325. emximp -o $lib $output_objdir/$libname.def'
  12326. old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
  12327. enable_shared_with_static_runtimes=yes
  12328. ;;
  12329. osf3*)
  12330. if test yes = "$GCC"; then
  12331. allow_undefined_flag=' $wl-expect_unresolved $wl\*'
  12332. archive_cmds='$CC -shared$allow_undefined_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname `test -n "$verstring" && func_echo_all "$wl-set_version $wl$verstring"` $wl-update_registry $wl$output_objdir/so_locations -o $lib'
  12333. else
  12334. allow_undefined_flag=' -expect_unresolved \*'
  12335. archive_cmds='$CC -shared$allow_undefined_flag $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry $output_objdir/so_locations -o $lib'
  12336. fi
  12337. archive_cmds_need_lc='no'
  12338. hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
  12339. hardcode_libdir_separator=:
  12340. ;;
  12341. osf4* | osf5*) # as osf3* with the addition of -msym flag
  12342. if test yes = "$GCC"; then
  12343. allow_undefined_flag=' $wl-expect_unresolved $wl\*'
  12344. archive_cmds='$CC -shared$allow_undefined_flag $pic_flag $libobjs $deplibs $compiler_flags $wl-msym $wl-soname $wl$soname `test -n "$verstring" && func_echo_all "$wl-set_version $wl$verstring"` $wl-update_registry $wl$output_objdir/so_locations -o $lib'
  12345. hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
  12346. else
  12347. allow_undefined_flag=' -expect_unresolved \*'
  12348. archive_cmds='$CC -shared$allow_undefined_flag $libobjs $deplibs $compiler_flags -msym -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry $output_objdir/so_locations -o $lib'
  12349. archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; printf "%s\\n" "-hidden">> $lib.exp~
  12350. $CC -shared$allow_undefined_flag $wl-input $wl$lib.exp $compiler_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && $ECHO "-set_version $verstring"` -update_registry $output_objdir/so_locations -o $lib~$RM $lib.exp'
  12351. # Both c and cxx compiler support -rpath directly
  12352. hardcode_libdir_flag_spec='-rpath $libdir'
  12353. fi
  12354. archive_cmds_need_lc='no'
  12355. hardcode_libdir_separator=:
  12356. ;;
  12357. solaris*)
  12358. no_undefined_flag=' -z defs'
  12359. if test yes = "$GCC"; then
  12360. wlarc='$wl'
  12361. archive_cmds='$CC -shared $pic_flag $wl-z ${wl}text $wl-h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
  12362. archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  12363. $CC -shared $pic_flag $wl-z ${wl}text $wl-M $wl$lib.exp $wl-h $wl$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
  12364. else
  12365. case `$CC -V 2>&1` in
  12366. *"Compilers 5.0"*)
  12367. wlarc=''
  12368. archive_cmds='$LD -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $linker_flags'
  12369. archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  12370. $LD -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
  12371. ;;
  12372. *)
  12373. wlarc='$wl'
  12374. archive_cmds='$CC -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $compiler_flags'
  12375. archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  12376. $CC -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
  12377. ;;
  12378. esac
  12379. fi
  12380. hardcode_libdir_flag_spec='-R$libdir'
  12381. hardcode_shlibpath_var=no
  12382. case $host_os in
  12383. solaris2.[0-5] | solaris2.[0-5].*) ;;
  12384. *)
  12385. # The compiler driver will combine and reorder linker options,
  12386. # but understands '-z linker_flag'. GCC discards it without '$wl',
  12387. # but is careful enough not to reorder.
  12388. # Supported since Solaris 2.6 (maybe 2.5.1?)
  12389. if test yes = "$GCC"; then
  12390. whole_archive_flag_spec='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract'
  12391. else
  12392. whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
  12393. fi
  12394. ;;
  12395. esac
  12396. link_all_deplibs=yes
  12397. ;;
  12398. sunos4*)
  12399. if test sequent = "$host_vendor"; then
  12400. # Use $CC to link under sequent, because it throws in some extra .o
  12401. # files that make .init and .fini sections work.
  12402. archive_cmds='$CC -G $wl-h $soname -o $lib $libobjs $deplibs $compiler_flags'
  12403. else
  12404. archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
  12405. fi
  12406. hardcode_libdir_flag_spec='-L$libdir'
  12407. hardcode_direct=yes
  12408. hardcode_minus_L=yes
  12409. hardcode_shlibpath_var=no
  12410. ;;
  12411. sysv4)
  12412. case $host_vendor in
  12413. sni)
  12414. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  12415. hardcode_direct=yes # is this really true???
  12416. ;;
  12417. siemens)
  12418. ## LD is ld it makes a PLAMLIB
  12419. ## CC just makes a GrossModule.
  12420. archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
  12421. reload_cmds='$CC -r -o $output$reload_objs'
  12422. hardcode_direct=no
  12423. ;;
  12424. motorola)
  12425. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  12426. hardcode_direct=no #Motorola manual says yes, but my tests say they lie
  12427. ;;
  12428. esac
  12429. runpath_var='LD_RUN_PATH'
  12430. hardcode_shlibpath_var=no
  12431. ;;
  12432. sysv4.3*)
  12433. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  12434. hardcode_shlibpath_var=no
  12435. export_dynamic_flag_spec='-Bexport'
  12436. ;;
  12437. sysv4*MP*)
  12438. if test -d /usr/nec; then
  12439. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  12440. hardcode_shlibpath_var=no
  12441. runpath_var=LD_RUN_PATH
  12442. hardcode_runpath_var=yes
  12443. ld_shlibs=yes
  12444. fi
  12445. ;;
  12446. sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
  12447. no_undefined_flag='$wl-z,text'
  12448. archive_cmds_need_lc=no
  12449. hardcode_shlibpath_var=no
  12450. runpath_var='LD_RUN_PATH'
  12451. if test yes = "$GCC"; then
  12452. archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  12453. archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  12454. else
  12455. archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  12456. archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  12457. fi
  12458. ;;
  12459. sysv5* | sco3.2v5* | sco5v6*)
  12460. # Note: We CANNOT use -z defs as we might desire, because we do not
  12461. # link with -lc, and that would cause any symbols used from libc to
  12462. # always be unresolved, which means just about no library would
  12463. # ever link correctly. If we're not using GNU ld we use -z text
  12464. # though, which does catch some bad symbols but isn't as heavy-handed
  12465. # as -z defs.
  12466. no_undefined_flag='$wl-z,text'
  12467. allow_undefined_flag='$wl-z,nodefs'
  12468. archive_cmds_need_lc=no
  12469. hardcode_shlibpath_var=no
  12470. hardcode_libdir_flag_spec='$wl-R,$libdir'
  12471. hardcode_libdir_separator=':'
  12472. link_all_deplibs=yes
  12473. export_dynamic_flag_spec='$wl-Bexport'
  12474. runpath_var='LD_RUN_PATH'
  12475. if test yes = "$GCC"; then
  12476. archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  12477. archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  12478. else
  12479. archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  12480. archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  12481. fi
  12482. ;;
  12483. uts4*)
  12484. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  12485. hardcode_libdir_flag_spec='-L$libdir'
  12486. hardcode_shlibpath_var=no
  12487. ;;
  12488. *)
  12489. ld_shlibs=no
  12490. ;;
  12491. esac
  12492. if test sni = "$host_vendor"; then
  12493. case $host in
  12494. sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
  12495. export_dynamic_flag_spec='$wl-Blargedynsym'
  12496. ;;
  12497. esac
  12498. fi
  12499. fi
  12500. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
  12501. printf "%s\n" "$ld_shlibs" >&6; }
  12502. test no = "$ld_shlibs" && can_build_shared=no
  12503. with_gnu_ld=$with_gnu_ld
  12504. #
  12505. # Do we need to explicitly link libc?
  12506. #
  12507. case "x$archive_cmds_need_lc" in
  12508. x|xyes)
  12509. # Assume -lc should be added
  12510. archive_cmds_need_lc=yes
  12511. if test yes,yes = "$GCC,$enable_shared"; then
  12512. case $archive_cmds in
  12513. *'~'*)
  12514. # FIXME: we may have to deal with multi-command sequences.
  12515. ;;
  12516. '$CC '*)
  12517. # Test whether the compiler implicitly links with -lc since on some
  12518. # systems, -lgcc has to come before -lc. If gcc already passes -lc
  12519. # to ld, don't add -lc before -lgcc.
  12520. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
  12521. printf %s "checking whether -lc should be explicitly linked in... " >&6; }
  12522. if test ${lt_cv_archive_cmds_need_lc+y}
  12523. then :
  12524. printf %s "(cached) " >&6
  12525. else $as_nop
  12526. $RM conftest*
  12527. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  12528. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  12529. (eval $ac_compile) 2>&5
  12530. ac_status=$?
  12531. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  12532. test $ac_status = 0; } 2>conftest.err; then
  12533. soname=conftest
  12534. lib=conftest
  12535. libobjs=conftest.$ac_objext
  12536. deplibs=
  12537. wl=$lt_prog_compiler_wl
  12538. pic_flag=$lt_prog_compiler_pic
  12539. compiler_flags=-v
  12540. linker_flags=-v
  12541. verstring=
  12542. output_objdir=.
  12543. libname=conftest
  12544. lt_save_allow_undefined_flag=$allow_undefined_flag
  12545. allow_undefined_flag=
  12546. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
  12547. (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
  12548. ac_status=$?
  12549. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  12550. test $ac_status = 0; }
  12551. then
  12552. lt_cv_archive_cmds_need_lc=no
  12553. else
  12554. lt_cv_archive_cmds_need_lc=yes
  12555. fi
  12556. allow_undefined_flag=$lt_save_allow_undefined_flag
  12557. else
  12558. cat conftest.err 1>&5
  12559. fi
  12560. $RM conftest*
  12561. fi
  12562. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
  12563. printf "%s\n" "$lt_cv_archive_cmds_need_lc" >&6; }
  12564. archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
  12565. ;;
  12566. esac
  12567. fi
  12568. ;;
  12569. esac
  12570. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
  12571. printf %s "checking dynamic linker characteristics... " >&6; }
  12572. if test yes = "$GCC"; then
  12573. case $host_os in
  12574. darwin*) lt_awk_arg='/^libraries:/,/LR/' ;;
  12575. *) lt_awk_arg='/^libraries:/' ;;
  12576. esac
  12577. case $host_os in
  12578. mingw* | cegcc*) lt_sed_strip_eq='s|=\([A-Za-z]:\)|\1|g' ;;
  12579. *) lt_sed_strip_eq='s|=/|/|g' ;;
  12580. esac
  12581. lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
  12582. case $lt_search_path_spec in
  12583. *\;*)
  12584. # if the path contains ";" then we assume it to be the separator
  12585. # otherwise default to the standard path separator (i.e. ":") - it is
  12586. # assumed that no part of a normal pathname contains ";" but that should
  12587. # okay in the real world where ";" in dirpaths is itself problematic.
  12588. lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
  12589. ;;
  12590. *)
  12591. lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
  12592. ;;
  12593. esac
  12594. # Ok, now we have the path, separated by spaces, we can step through it
  12595. # and add multilib dir if necessary...
  12596. lt_tmp_lt_search_path_spec=
  12597. lt_multi_os_dir=/`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
  12598. # ...but if some path component already ends with the multilib dir we assume
  12599. # that all is fine and trust -print-search-dirs as is (GCC 4.2? or newer).
  12600. case "$lt_multi_os_dir; $lt_search_path_spec " in
  12601. "/; "* | "/.; "* | "/./; "* | *"$lt_multi_os_dir "* | *"$lt_multi_os_dir/ "*)
  12602. lt_multi_os_dir=
  12603. ;;
  12604. esac
  12605. for lt_sys_path in $lt_search_path_spec; do
  12606. if test -d "$lt_sys_path$lt_multi_os_dir"; then
  12607. lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path$lt_multi_os_dir"
  12608. elif test -n "$lt_multi_os_dir"; then
  12609. test -d "$lt_sys_path" && \
  12610. lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
  12611. fi
  12612. done
  12613. lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
  12614. BEGIN {RS = " "; FS = "/|\n";} {
  12615. lt_foo = "";
  12616. lt_count = 0;
  12617. for (lt_i = NF; lt_i > 0; lt_i--) {
  12618. if ($lt_i != "" && $lt_i != ".") {
  12619. if ($lt_i == "..") {
  12620. lt_count++;
  12621. } else {
  12622. if (lt_count == 0) {
  12623. lt_foo = "/" $lt_i lt_foo;
  12624. } else {
  12625. lt_count--;
  12626. }
  12627. }
  12628. }
  12629. }
  12630. if (lt_foo != "") { lt_freq[lt_foo]++; }
  12631. if (lt_freq[lt_foo] == 1) { print lt_foo; }
  12632. }'`
  12633. # AWK program above erroneously prepends '/' to C:/dos/paths
  12634. # for these hosts.
  12635. case $host_os in
  12636. mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
  12637. $SED 's|/\([A-Za-z]:\)|\1|g'` ;;
  12638. esac
  12639. sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
  12640. else
  12641. sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
  12642. fi
  12643. library_names_spec=
  12644. libname_spec='lib$name'
  12645. soname_spec=
  12646. shrext_cmds=.so
  12647. postinstall_cmds=
  12648. postuninstall_cmds=
  12649. finish_cmds=
  12650. finish_eval=
  12651. shlibpath_var=
  12652. shlibpath_overrides_runpath=unknown
  12653. version_type=none
  12654. dynamic_linker="$host_os ld.so"
  12655. sys_lib_dlsearch_path_spec="/lib /usr/lib"
  12656. need_lib_prefix=unknown
  12657. hardcode_into_libs=no
  12658. # when you set need_version to no, make sure it does not cause -set_version
  12659. # flags to be left without arguments
  12660. need_version=unknown
  12661. case $host_os in
  12662. aix3*)
  12663. version_type=linux # correct to gnu/linux during the next big refactor
  12664. library_names_spec='$libname$release$shared_ext$versuffix $libname.a'
  12665. shlibpath_var=LIBPATH
  12666. # AIX 3 has no versioning support, so we append a major version to the name.
  12667. soname_spec='$libname$release$shared_ext$major'
  12668. ;;
  12669. aix[4-9]*)
  12670. version_type=linux # correct to gnu/linux during the next big refactor
  12671. need_lib_prefix=no
  12672. need_version=no
  12673. hardcode_into_libs=yes
  12674. if test ia64 = "$host_cpu"; then
  12675. # AIX 5 supports IA64
  12676. library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext'
  12677. shlibpath_var=LD_LIBRARY_PATH
  12678. else
  12679. # With GCC up to 2.95.x, collect2 would create an import file
  12680. # for dependence libraries. The import file would start with
  12681. # the line '#! .'. This would cause the generated library to
  12682. # depend on '.', always an invalid library. This was fixed in
  12683. # development snapshots of GCC prior to 3.0.
  12684. case $host_os in
  12685. aix4 | aix4.[01] | aix4.[01].*)
  12686. if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
  12687. echo ' yes '
  12688. echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then
  12689. :
  12690. else
  12691. can_build_shared=no
  12692. fi
  12693. ;;
  12694. esac
  12695. # Using Import Files as archive members, it is possible to support
  12696. # filename-based versioning of shared library archives on AIX. While
  12697. # this would work for both with and without runtime linking, it will
  12698. # prevent static linking of such archives. So we do filename-based
  12699. # shared library versioning with .so extension only, which is used
  12700. # when both runtime linking and shared linking is enabled.
  12701. # Unfortunately, runtime linking may impact performance, so we do
  12702. # not want this to be the default eventually. Also, we use the
  12703. # versioned .so libs for executables only if there is the -brtl
  12704. # linker flag in LDFLAGS as well, or --with-aix-soname=svr4 only.
  12705. # To allow for filename-based versioning support, we need to create
  12706. # libNAME.so.V as an archive file, containing:
  12707. # *) an Import File, referring to the versioned filename of the
  12708. # archive as well as the shared archive member, telling the
  12709. # bitwidth (32 or 64) of that shared object, and providing the
  12710. # list of exported symbols of that shared object, eventually
  12711. # decorated with the 'weak' keyword
  12712. # *) the shared object with the F_LOADONLY flag set, to really avoid
  12713. # it being seen by the linker.
  12714. # At run time we better use the real file rather than another symlink,
  12715. # but for link time we create the symlink libNAME.so -> libNAME.so.V
  12716. case $with_aix_soname,$aix_use_runtimelinking in
  12717. # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct
  12718. # soname into executable. Probably we can add versioning support to
  12719. # collect2, so additional links can be useful in future.
  12720. aix,yes) # traditional libtool
  12721. dynamic_linker='AIX unversionable lib.so'
  12722. # If using run time linking (on AIX 4.2 or later) use lib<name>.so
  12723. # instead of lib<name>.a to let people know that these are not
  12724. # typical AIX shared libraries.
  12725. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  12726. ;;
  12727. aix,no) # traditional AIX only
  12728. dynamic_linker='AIX lib.a(lib.so.V)'
  12729. # We preserve .a as extension for shared libraries through AIX4.2
  12730. # and later when we are not doing run time linking.
  12731. library_names_spec='$libname$release.a $libname.a'
  12732. soname_spec='$libname$release$shared_ext$major'
  12733. ;;
  12734. svr4,*) # full svr4 only
  12735. dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o)"
  12736. library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
  12737. # We do not specify a path in Import Files, so LIBPATH fires.
  12738. shlibpath_overrides_runpath=yes
  12739. ;;
  12740. *,yes) # both, prefer svr4
  12741. dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o), lib.a(lib.so.V)"
  12742. library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
  12743. # unpreferred sharedlib libNAME.a needs extra handling
  12744. postinstall_cmds='test -n "$linkname" || linkname="$realname"~func_stripname "" ".so" "$linkname"~$install_shared_prog "$dir/$func_stripname_result.$libext" "$destdir/$func_stripname_result.$libext"~test -z "$tstripme" || test -z "$striplib" || $striplib "$destdir/$func_stripname_result.$libext"'
  12745. postuninstall_cmds='for n in $library_names $old_library; do :; done~func_stripname "" ".so" "$n"~test "$func_stripname_result" = "$n" || func_append rmfiles " $odir/$func_stripname_result.$libext"'
  12746. # We do not specify a path in Import Files, so LIBPATH fires.
  12747. shlibpath_overrides_runpath=yes
  12748. ;;
  12749. *,no) # both, prefer aix
  12750. dynamic_linker="AIX lib.a(lib.so.V), lib.so.V($shared_archive_member_spec.o)"
  12751. library_names_spec='$libname$release.a $libname.a'
  12752. soname_spec='$libname$release$shared_ext$major'
  12753. # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling
  12754. postinstall_cmds='test -z "$dlname" || $install_shared_prog $dir/$dlname $destdir/$dlname~test -z "$tstripme" || test -z "$striplib" || $striplib $destdir/$dlname~test -n "$linkname" || linkname=$realname~func_stripname "" ".a" "$linkname"~(cd "$destdir" && $LN_S -f $dlname $func_stripname_result.so)'
  12755. postuninstall_cmds='test -z "$dlname" || func_append rmfiles " $odir/$dlname"~for n in $old_library $library_names; do :; done~func_stripname "" ".a" "$n"~func_append rmfiles " $odir/$func_stripname_result.so"'
  12756. ;;
  12757. esac
  12758. shlibpath_var=LIBPATH
  12759. fi
  12760. ;;
  12761. amigaos*)
  12762. case $host_cpu in
  12763. powerpc)
  12764. # Since July 2007 AmigaOS4 officially supports .so libraries.
  12765. # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
  12766. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  12767. ;;
  12768. m68k)
  12769. library_names_spec='$libname.ixlibrary $libname.a'
  12770. # Create ${libname}_ixlibrary.a entries in /sys/libs.
  12771. finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; $RM /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done'
  12772. ;;
  12773. esac
  12774. ;;
  12775. beos*)
  12776. library_names_spec='$libname$shared_ext'
  12777. dynamic_linker="$host_os ld.so"
  12778. shlibpath_var=LIBRARY_PATH
  12779. ;;
  12780. bsdi[45]*)
  12781. version_type=linux # correct to gnu/linux during the next big refactor
  12782. need_version=no
  12783. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  12784. soname_spec='$libname$release$shared_ext$major'
  12785. finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
  12786. shlibpath_var=LD_LIBRARY_PATH
  12787. sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
  12788. sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
  12789. # the default ld.so.conf also contains /usr/contrib/lib and
  12790. # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
  12791. # libtool to hard-code these into programs
  12792. ;;
  12793. cygwin* | mingw* | pw32* | cegcc*)
  12794. version_type=windows
  12795. shrext_cmds=.dll
  12796. need_version=no
  12797. need_lib_prefix=no
  12798. case $GCC,$cc_basename in
  12799. yes,*)
  12800. # gcc
  12801. library_names_spec='$libname.dll.a'
  12802. # DLL is installed to $(libdir)/../bin by postinstall_cmds
  12803. postinstall_cmds='base_file=`basename \$file`~
  12804. dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
  12805. dldir=$destdir/`dirname \$dlpath`~
  12806. test -d \$dldir || mkdir -p \$dldir~
  12807. $install_prog $dir/$dlname \$dldir/$dlname~
  12808. chmod a+x \$dldir/$dlname~
  12809. if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
  12810. eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
  12811. fi'
  12812. postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
  12813. dlpath=$dir/\$dldll~
  12814. $RM \$dlpath'
  12815. shlibpath_overrides_runpath=yes
  12816. case $host_os in
  12817. cygwin*)
  12818. # Cygwin DLLs use 'cyg' prefix rather than 'lib'
  12819. soname_spec='`echo $libname | sed -e 's/^lib/cyg/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
  12820. sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
  12821. ;;
  12822. mingw* | cegcc*)
  12823. # MinGW DLLs use traditional 'lib' prefix
  12824. soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
  12825. ;;
  12826. pw32*)
  12827. # pw32 DLLs use 'pw' prefix rather than 'lib'
  12828. library_names_spec='`echo $libname | sed -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
  12829. ;;
  12830. esac
  12831. dynamic_linker='Win32 ld.exe'
  12832. ;;
  12833. *,cl*)
  12834. # Native MSVC
  12835. libname_spec='$name'
  12836. soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
  12837. library_names_spec='$libname.dll.lib'
  12838. case $build_os in
  12839. mingw*)
  12840. sys_lib_search_path_spec=
  12841. lt_save_ifs=$IFS
  12842. IFS=';'
  12843. for lt_path in $LIB
  12844. do
  12845. IFS=$lt_save_ifs
  12846. # Let DOS variable expansion print the short 8.3 style file name.
  12847. lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
  12848. sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
  12849. done
  12850. IFS=$lt_save_ifs
  12851. # Convert to MSYS style.
  12852. sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
  12853. ;;
  12854. cygwin*)
  12855. # Convert to unix form, then to dos form, then back to unix form
  12856. # but this time dos style (no spaces!) so that the unix form looks
  12857. # like /cygdrive/c/PROGRA~1:/cygdr...
  12858. sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
  12859. sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
  12860. sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
  12861. ;;
  12862. *)
  12863. sys_lib_search_path_spec=$LIB
  12864. if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
  12865. # It is most probably a Windows format PATH.
  12866. sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
  12867. else
  12868. sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
  12869. fi
  12870. # FIXME: find the short name or the path components, as spaces are
  12871. # common. (e.g. "Program Files" -> "PROGRA~1")
  12872. ;;
  12873. esac
  12874. # DLL is installed to $(libdir)/../bin by postinstall_cmds
  12875. postinstall_cmds='base_file=`basename \$file`~
  12876. dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
  12877. dldir=$destdir/`dirname \$dlpath`~
  12878. test -d \$dldir || mkdir -p \$dldir~
  12879. $install_prog $dir/$dlname \$dldir/$dlname'
  12880. postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
  12881. dlpath=$dir/\$dldll~
  12882. $RM \$dlpath'
  12883. shlibpath_overrides_runpath=yes
  12884. dynamic_linker='Win32 link.exe'
  12885. ;;
  12886. *)
  12887. # Assume MSVC wrapper
  12888. library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib'
  12889. dynamic_linker='Win32 ld.exe'
  12890. ;;
  12891. esac
  12892. # FIXME: first we should search . and the directory the executable is in
  12893. shlibpath_var=PATH
  12894. ;;
  12895. darwin* | rhapsody*)
  12896. dynamic_linker="$host_os dyld"
  12897. version_type=darwin
  12898. need_lib_prefix=no
  12899. need_version=no
  12900. library_names_spec='$libname$release$major$shared_ext $libname$shared_ext'
  12901. soname_spec='$libname$release$major$shared_ext'
  12902. shlibpath_overrides_runpath=yes
  12903. shlibpath_var=DYLD_LIBRARY_PATH
  12904. shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
  12905. sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
  12906. sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
  12907. ;;
  12908. dgux*)
  12909. version_type=linux # correct to gnu/linux during the next big refactor
  12910. need_lib_prefix=no
  12911. need_version=no
  12912. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  12913. soname_spec='$libname$release$shared_ext$major'
  12914. shlibpath_var=LD_LIBRARY_PATH
  12915. ;;
  12916. freebsd* | dragonfly*)
  12917. # DragonFly does not have aout. When/if they implement a new
  12918. # versioning mechanism, adjust this.
  12919. if test -x /usr/bin/objformat; then
  12920. objformat=`/usr/bin/objformat`
  12921. else
  12922. case $host_os in
  12923. freebsd[23].*) objformat=aout ;;
  12924. *) objformat=elf ;;
  12925. esac
  12926. fi
  12927. version_type=freebsd-$objformat
  12928. case $version_type in
  12929. freebsd-elf*)
  12930. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  12931. soname_spec='$libname$release$shared_ext$major'
  12932. need_version=no
  12933. need_lib_prefix=no
  12934. ;;
  12935. freebsd-*)
  12936. library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
  12937. need_version=yes
  12938. ;;
  12939. esac
  12940. shlibpath_var=LD_LIBRARY_PATH
  12941. case $host_os in
  12942. freebsd2.*)
  12943. shlibpath_overrides_runpath=yes
  12944. ;;
  12945. freebsd3.[01]* | freebsdelf3.[01]*)
  12946. shlibpath_overrides_runpath=yes
  12947. hardcode_into_libs=yes
  12948. ;;
  12949. freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
  12950. freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
  12951. shlibpath_overrides_runpath=no
  12952. hardcode_into_libs=yes
  12953. ;;
  12954. *) # from 4.6 on, and DragonFly
  12955. shlibpath_overrides_runpath=yes
  12956. hardcode_into_libs=yes
  12957. ;;
  12958. esac
  12959. ;;
  12960. haiku*)
  12961. version_type=linux # correct to gnu/linux during the next big refactor
  12962. need_lib_prefix=no
  12963. need_version=no
  12964. dynamic_linker="$host_os runtime_loader"
  12965. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  12966. soname_spec='$libname$release$shared_ext$major'
  12967. shlibpath_var=LIBRARY_PATH
  12968. shlibpath_overrides_runpath=no
  12969. sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
  12970. hardcode_into_libs=yes
  12971. ;;
  12972. hpux9* | hpux10* | hpux11*)
  12973. # Give a soname corresponding to the major version so that dld.sl refuses to
  12974. # link against other versions.
  12975. version_type=sunos
  12976. need_lib_prefix=no
  12977. need_version=no
  12978. case $host_cpu in
  12979. ia64*)
  12980. shrext_cmds='.so'
  12981. hardcode_into_libs=yes
  12982. dynamic_linker="$host_os dld.so"
  12983. shlibpath_var=LD_LIBRARY_PATH
  12984. shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  12985. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  12986. soname_spec='$libname$release$shared_ext$major'
  12987. if test 32 = "$HPUX_IA64_MODE"; then
  12988. sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
  12989. sys_lib_dlsearch_path_spec=/usr/lib/hpux32
  12990. else
  12991. sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
  12992. sys_lib_dlsearch_path_spec=/usr/lib/hpux64
  12993. fi
  12994. ;;
  12995. hppa*64*)
  12996. shrext_cmds='.sl'
  12997. hardcode_into_libs=yes
  12998. dynamic_linker="$host_os dld.sl"
  12999. shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
  13000. shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  13001. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  13002. soname_spec='$libname$release$shared_ext$major'
  13003. sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
  13004. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  13005. ;;
  13006. *)
  13007. shrext_cmds='.sl'
  13008. dynamic_linker="$host_os dld.sl"
  13009. shlibpath_var=SHLIB_PATH
  13010. shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
  13011. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  13012. soname_spec='$libname$release$shared_ext$major'
  13013. ;;
  13014. esac
  13015. # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
  13016. postinstall_cmds='chmod 555 $lib'
  13017. # or fails outright, so override atomically:
  13018. install_override_mode=555
  13019. ;;
  13020. interix[3-9]*)
  13021. version_type=linux # correct to gnu/linux during the next big refactor
  13022. need_lib_prefix=no
  13023. need_version=no
  13024. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  13025. soname_spec='$libname$release$shared_ext$major'
  13026. dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
  13027. shlibpath_var=LD_LIBRARY_PATH
  13028. shlibpath_overrides_runpath=no
  13029. hardcode_into_libs=yes
  13030. ;;
  13031. irix5* | irix6* | nonstopux*)
  13032. case $host_os in
  13033. nonstopux*) version_type=nonstopux ;;
  13034. *)
  13035. if test yes = "$lt_cv_prog_gnu_ld"; then
  13036. version_type=linux # correct to gnu/linux during the next big refactor
  13037. else
  13038. version_type=irix
  13039. fi ;;
  13040. esac
  13041. need_lib_prefix=no
  13042. need_version=no
  13043. soname_spec='$libname$release$shared_ext$major'
  13044. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext'
  13045. case $host_os in
  13046. irix5* | nonstopux*)
  13047. libsuff= shlibsuff=
  13048. ;;
  13049. *)
  13050. case $LD in # libtool.m4 will add one of these switches to LD
  13051. *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
  13052. libsuff= shlibsuff= libmagic=32-bit;;
  13053. *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
  13054. libsuff=32 shlibsuff=N32 libmagic=N32;;
  13055. *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
  13056. libsuff=64 shlibsuff=64 libmagic=64-bit;;
  13057. *) libsuff= shlibsuff= libmagic=never-match;;
  13058. esac
  13059. ;;
  13060. esac
  13061. shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
  13062. shlibpath_overrides_runpath=no
  13063. sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff"
  13064. sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff"
  13065. hardcode_into_libs=yes
  13066. ;;
  13067. # No shared lib support for Linux oldld, aout, or coff.
  13068. linux*oldld* | linux*aout* | linux*coff*)
  13069. dynamic_linker=no
  13070. ;;
  13071. linux*android*)
  13072. version_type=none # Android doesn't support versioned libraries.
  13073. need_lib_prefix=no
  13074. need_version=no
  13075. library_names_spec='$libname$release$shared_ext'
  13076. soname_spec='$libname$release$shared_ext'
  13077. finish_cmds=
  13078. shlibpath_var=LD_LIBRARY_PATH
  13079. shlibpath_overrides_runpath=yes
  13080. # This implies no fast_install, which is unacceptable.
  13081. # Some rework will be needed to allow for fast_install
  13082. # before this can be enabled.
  13083. hardcode_into_libs=yes
  13084. dynamic_linker='Android linker'
  13085. # Don't embed -rpath directories since the linker doesn't support them.
  13086. hardcode_libdir_flag_spec='-L$libdir'
  13087. ;;
  13088. # This must be glibc/ELF.
  13089. linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
  13090. version_type=linux # correct to gnu/linux during the next big refactor
  13091. need_lib_prefix=no
  13092. need_version=no
  13093. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  13094. soname_spec='$libname$release$shared_ext$major'
  13095. finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
  13096. shlibpath_var=LD_LIBRARY_PATH
  13097. shlibpath_overrides_runpath=no
  13098. # Some binutils ld are patched to set DT_RUNPATH
  13099. if test ${lt_cv_shlibpath_overrides_runpath+y}
  13100. then :
  13101. printf %s "(cached) " >&6
  13102. else $as_nop
  13103. lt_cv_shlibpath_overrides_runpath=no
  13104. save_LDFLAGS=$LDFLAGS
  13105. save_libdir=$libdir
  13106. eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
  13107. LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
  13108. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13109. /* end confdefs.h. */
  13110. int main (void)
  13111. {
  13112. ;
  13113. return 0;
  13114. }
  13115. _ACEOF
  13116. if ac_fn_c_try_link "$LINENO"
  13117. then :
  13118. if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null
  13119. then :
  13120. lt_cv_shlibpath_overrides_runpath=yes
  13121. fi
  13122. fi
  13123. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  13124. conftest$ac_exeext conftest.$ac_ext
  13125. LDFLAGS=$save_LDFLAGS
  13126. libdir=$save_libdir
  13127. fi
  13128. shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
  13129. # This implies no fast_install, which is unacceptable.
  13130. # Some rework will be needed to allow for fast_install
  13131. # before this can be enabled.
  13132. hardcode_into_libs=yes
  13133. # Ideally, we could use ldconfig to report *all* directores which are
  13134. # searched for libraries, however this is still not possible. Aside from not
  13135. # being certain /sbin/ldconfig is available, command
  13136. # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64,
  13137. # even though it is searched at run-time. Try to do the best guess by
  13138. # appending ld.so.conf contents (and includes) to the search path.
  13139. if test -f /etc/ld.so.conf; then
  13140. lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[ ]*hwcap[ ]/d;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;s/"//g;/^$/d' | tr '\n' ' '`
  13141. sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
  13142. fi
  13143. # We used to test for /lib/ld.so.1 and disable shared libraries on
  13144. # powerpc, because MkLinux only supported shared libraries with the
  13145. # GNU dynamic linker. Since this was broken with cross compilers,
  13146. # most powerpc-linux boxes support dynamic linking these days and
  13147. # people can always --disable-shared, the test was removed, and we
  13148. # assume the GNU/Linux dynamic linker is in use.
  13149. dynamic_linker='GNU/Linux ld.so'
  13150. ;;
  13151. netbsdelf*-gnu)
  13152. version_type=linux
  13153. need_lib_prefix=no
  13154. need_version=no
  13155. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  13156. soname_spec='${libname}${release}${shared_ext}$major'
  13157. shlibpath_var=LD_LIBRARY_PATH
  13158. shlibpath_overrides_runpath=no
  13159. hardcode_into_libs=yes
  13160. dynamic_linker='NetBSD ld.elf_so'
  13161. ;;
  13162. netbsd*)
  13163. version_type=sunos
  13164. need_lib_prefix=no
  13165. need_version=no
  13166. if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  13167. library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
  13168. finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  13169. dynamic_linker='NetBSD (a.out) ld.so'
  13170. else
  13171. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  13172. soname_spec='$libname$release$shared_ext$major'
  13173. dynamic_linker='NetBSD ld.elf_so'
  13174. fi
  13175. shlibpath_var=LD_LIBRARY_PATH
  13176. shlibpath_overrides_runpath=yes
  13177. hardcode_into_libs=yes
  13178. ;;
  13179. newsos6)
  13180. version_type=linux # correct to gnu/linux during the next big refactor
  13181. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  13182. shlibpath_var=LD_LIBRARY_PATH
  13183. shlibpath_overrides_runpath=yes
  13184. ;;
  13185. *nto* | *qnx*)
  13186. version_type=qnx
  13187. need_lib_prefix=no
  13188. need_version=no
  13189. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  13190. soname_spec='$libname$release$shared_ext$major'
  13191. shlibpath_var=LD_LIBRARY_PATH
  13192. shlibpath_overrides_runpath=no
  13193. hardcode_into_libs=yes
  13194. dynamic_linker='ldqnx.so'
  13195. ;;
  13196. openbsd* | bitrig*)
  13197. version_type=sunos
  13198. sys_lib_dlsearch_path_spec=/usr/lib
  13199. need_lib_prefix=no
  13200. if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
  13201. need_version=no
  13202. else
  13203. need_version=yes
  13204. fi
  13205. library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
  13206. finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  13207. shlibpath_var=LD_LIBRARY_PATH
  13208. shlibpath_overrides_runpath=yes
  13209. ;;
  13210. os2*)
  13211. libname_spec='$name'
  13212. version_type=windows
  13213. shrext_cmds=.dll
  13214. need_version=no
  13215. need_lib_prefix=no
  13216. # OS/2 can only load a DLL with a base name of 8 characters or less.
  13217. soname_spec='`test -n "$os2dllname" && libname="$os2dllname";
  13218. v=$($ECHO $release$versuffix | tr -d .-);
  13219. n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _);
  13220. $ECHO $n$v`$shared_ext'
  13221. library_names_spec='${libname}_dll.$libext'
  13222. dynamic_linker='OS/2 ld.exe'
  13223. shlibpath_var=BEGINLIBPATH
  13224. sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
  13225. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  13226. postinstall_cmds='base_file=`basename \$file`~
  13227. dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~
  13228. dldir=$destdir/`dirname \$dlpath`~
  13229. test -d \$dldir || mkdir -p \$dldir~
  13230. $install_prog $dir/$dlname \$dldir/$dlname~
  13231. chmod a+x \$dldir/$dlname~
  13232. if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
  13233. eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
  13234. fi'
  13235. postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~
  13236. dlpath=$dir/\$dldll~
  13237. $RM \$dlpath'
  13238. ;;
  13239. osf3* | osf4* | osf5*)
  13240. version_type=osf
  13241. need_lib_prefix=no
  13242. need_version=no
  13243. soname_spec='$libname$release$shared_ext$major'
  13244. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  13245. shlibpath_var=LD_LIBRARY_PATH
  13246. sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
  13247. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  13248. ;;
  13249. rdos*)
  13250. dynamic_linker=no
  13251. ;;
  13252. solaris*)
  13253. version_type=linux # correct to gnu/linux during the next big refactor
  13254. need_lib_prefix=no
  13255. need_version=no
  13256. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  13257. soname_spec='$libname$release$shared_ext$major'
  13258. shlibpath_var=LD_LIBRARY_PATH
  13259. shlibpath_overrides_runpath=yes
  13260. hardcode_into_libs=yes
  13261. # ldd complains unless libraries are executable
  13262. postinstall_cmds='chmod +x $lib'
  13263. ;;
  13264. sunos4*)
  13265. version_type=sunos
  13266. library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
  13267. finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
  13268. shlibpath_var=LD_LIBRARY_PATH
  13269. shlibpath_overrides_runpath=yes
  13270. if test yes = "$with_gnu_ld"; then
  13271. need_lib_prefix=no
  13272. fi
  13273. need_version=yes
  13274. ;;
  13275. sysv4 | sysv4.3*)
  13276. version_type=linux # correct to gnu/linux during the next big refactor
  13277. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  13278. soname_spec='$libname$release$shared_ext$major'
  13279. shlibpath_var=LD_LIBRARY_PATH
  13280. case $host_vendor in
  13281. sni)
  13282. shlibpath_overrides_runpath=no
  13283. need_lib_prefix=no
  13284. runpath_var=LD_RUN_PATH
  13285. ;;
  13286. siemens)
  13287. need_lib_prefix=no
  13288. ;;
  13289. motorola)
  13290. need_lib_prefix=no
  13291. need_version=no
  13292. shlibpath_overrides_runpath=no
  13293. sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
  13294. ;;
  13295. esac
  13296. ;;
  13297. sysv4*MP*)
  13298. if test -d /usr/nec; then
  13299. version_type=linux # correct to gnu/linux during the next big refactor
  13300. library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext'
  13301. soname_spec='$libname$shared_ext.$major'
  13302. shlibpath_var=LD_LIBRARY_PATH
  13303. fi
  13304. ;;
  13305. sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
  13306. version_type=sco
  13307. need_lib_prefix=no
  13308. need_version=no
  13309. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext'
  13310. soname_spec='$libname$release$shared_ext$major'
  13311. shlibpath_var=LD_LIBRARY_PATH
  13312. shlibpath_overrides_runpath=yes
  13313. hardcode_into_libs=yes
  13314. if test yes = "$with_gnu_ld"; then
  13315. sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
  13316. else
  13317. sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
  13318. case $host_os in
  13319. sco3.2v5*)
  13320. sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
  13321. ;;
  13322. esac
  13323. fi
  13324. sys_lib_dlsearch_path_spec='/usr/lib'
  13325. ;;
  13326. tpf*)
  13327. # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
  13328. version_type=linux # correct to gnu/linux during the next big refactor
  13329. need_lib_prefix=no
  13330. need_version=no
  13331. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  13332. shlibpath_var=LD_LIBRARY_PATH
  13333. shlibpath_overrides_runpath=no
  13334. hardcode_into_libs=yes
  13335. ;;
  13336. uts4*)
  13337. version_type=linux # correct to gnu/linux during the next big refactor
  13338. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  13339. soname_spec='$libname$release$shared_ext$major'
  13340. shlibpath_var=LD_LIBRARY_PATH
  13341. ;;
  13342. *)
  13343. dynamic_linker=no
  13344. ;;
  13345. esac
  13346. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
  13347. printf "%s\n" "$dynamic_linker" >&6; }
  13348. test no = "$dynamic_linker" && can_build_shared=no
  13349. variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
  13350. if test yes = "$GCC"; then
  13351. variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
  13352. fi
  13353. if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then
  13354. sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec
  13355. fi
  13356. if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then
  13357. sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec
  13358. fi
  13359. # remember unaugmented sys_lib_dlsearch_path content for libtool script decls...
  13360. configure_time_dlsearch_path=$sys_lib_dlsearch_path_spec
  13361. # ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code
  13362. func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH"
  13363. # to be used as default LT_SYS_LIBRARY_PATH value in generated libtool
  13364. configure_time_lt_sys_library_path=$LT_SYS_LIBRARY_PATH
  13365. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
  13366. printf %s "checking how to hardcode library paths into programs... " >&6; }
  13367. hardcode_action=
  13368. if test -n "$hardcode_libdir_flag_spec" ||
  13369. test -n "$runpath_var" ||
  13370. test yes = "$hardcode_automatic"; then
  13371. # We can hardcode non-existent directories.
  13372. if test no != "$hardcode_direct" &&
  13373. # If the only mechanism to avoid hardcoding is shlibpath_var, we
  13374. # have to relink, otherwise we might link with an installed library
  13375. # when we should be linking with a yet-to-be-installed one
  13376. ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, )" &&
  13377. test no != "$hardcode_minus_L"; then
  13378. # Linking always hardcodes the temporary library directory.
  13379. hardcode_action=relink
  13380. else
  13381. # We can link without hardcoding, and we can hardcode nonexisting dirs.
  13382. hardcode_action=immediate
  13383. fi
  13384. else
  13385. # We cannot hardcode anything, or else we can only hardcode existing
  13386. # directories.
  13387. hardcode_action=unsupported
  13388. fi
  13389. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
  13390. printf "%s\n" "$hardcode_action" >&6; }
  13391. if test relink = "$hardcode_action" ||
  13392. test yes = "$inherit_rpath"; then
  13393. # Fast installation is not supported
  13394. enable_fast_install=no
  13395. elif test yes = "$shlibpath_overrides_runpath" ||
  13396. test no = "$enable_shared"; then
  13397. # Fast installation is not necessary
  13398. enable_fast_install=needless
  13399. fi
  13400. if test yes != "$enable_dlopen"; then
  13401. enable_dlopen=unknown
  13402. enable_dlopen_self=unknown
  13403. enable_dlopen_self_static=unknown
  13404. else
  13405. lt_cv_dlopen=no
  13406. lt_cv_dlopen_libs=
  13407. case $host_os in
  13408. beos*)
  13409. lt_cv_dlopen=load_add_on
  13410. lt_cv_dlopen_libs=
  13411. lt_cv_dlopen_self=yes
  13412. ;;
  13413. mingw* | pw32* | cegcc*)
  13414. lt_cv_dlopen=LoadLibrary
  13415. lt_cv_dlopen_libs=
  13416. ;;
  13417. cygwin*)
  13418. lt_cv_dlopen=dlopen
  13419. lt_cv_dlopen_libs=
  13420. ;;
  13421. darwin*)
  13422. # if libdl is installed we need to link against it
  13423. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
  13424. printf %s "checking for dlopen in -ldl... " >&6; }
  13425. if test ${ac_cv_lib_dl_dlopen+y}
  13426. then :
  13427. printf %s "(cached) " >&6
  13428. else $as_nop
  13429. ac_check_lib_save_LIBS=$LIBS
  13430. LIBS="-ldl $LIBS"
  13431. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13432. /* end confdefs.h. */
  13433. #ifdef __cplusplus
  13434. extern "C"
  13435. #endif
  13436. char dlopen ();
  13437. int main (void)
  13438. {
  13439. return dlopen ();
  13440. ;
  13441. return 0;
  13442. }
  13443. _ACEOF
  13444. if ac_fn_c_try_link "$LINENO"
  13445. then :
  13446. ac_cv_lib_dl_dlopen=yes
  13447. else $as_nop
  13448. ac_cv_lib_dl_dlopen=no
  13449. fi
  13450. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  13451. conftest$ac_exeext conftest.$ac_ext
  13452. LIBS=$ac_check_lib_save_LIBS
  13453. fi
  13454. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
  13455. printf "%s\n" "$ac_cv_lib_dl_dlopen" >&6; }
  13456. if test "x$ac_cv_lib_dl_dlopen" = xyes
  13457. then :
  13458. lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
  13459. else $as_nop
  13460. lt_cv_dlopen=dyld
  13461. lt_cv_dlopen_libs=
  13462. lt_cv_dlopen_self=yes
  13463. fi
  13464. ;;
  13465. tpf*)
  13466. # Don't try to run any link tests for TPF. We know it's impossible
  13467. # because TPF is a cross-compiler, and we know how we open DSOs.
  13468. lt_cv_dlopen=dlopen
  13469. lt_cv_dlopen_libs=
  13470. lt_cv_dlopen_self=no
  13471. ;;
  13472. *)
  13473. ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
  13474. if test "x$ac_cv_func_shl_load" = xyes
  13475. then :
  13476. lt_cv_dlopen=shl_load
  13477. else $as_nop
  13478. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
  13479. printf %s "checking for shl_load in -ldld... " >&6; }
  13480. if test ${ac_cv_lib_dld_shl_load+y}
  13481. then :
  13482. printf %s "(cached) " >&6
  13483. else $as_nop
  13484. ac_check_lib_save_LIBS=$LIBS
  13485. LIBS="-ldld $LIBS"
  13486. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13487. /* end confdefs.h. */
  13488. #ifdef __cplusplus
  13489. extern "C"
  13490. #endif
  13491. char shl_load ();
  13492. int main (void)
  13493. {
  13494. return shl_load ();
  13495. ;
  13496. return 0;
  13497. }
  13498. _ACEOF
  13499. if ac_fn_c_try_link "$LINENO"
  13500. then :
  13501. ac_cv_lib_dld_shl_load=yes
  13502. else $as_nop
  13503. ac_cv_lib_dld_shl_load=no
  13504. fi
  13505. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  13506. conftest$ac_exeext conftest.$ac_ext
  13507. LIBS=$ac_check_lib_save_LIBS
  13508. fi
  13509. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
  13510. printf "%s\n" "$ac_cv_lib_dld_shl_load" >&6; }
  13511. if test "x$ac_cv_lib_dld_shl_load" = xyes
  13512. then :
  13513. lt_cv_dlopen=shl_load lt_cv_dlopen_libs=-ldld
  13514. else $as_nop
  13515. ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
  13516. if test "x$ac_cv_func_dlopen" = xyes
  13517. then :
  13518. lt_cv_dlopen=dlopen
  13519. else $as_nop
  13520. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
  13521. printf %s "checking for dlopen in -ldl... " >&6; }
  13522. if test ${ac_cv_lib_dl_dlopen+y}
  13523. then :
  13524. printf %s "(cached) " >&6
  13525. else $as_nop
  13526. ac_check_lib_save_LIBS=$LIBS
  13527. LIBS="-ldl $LIBS"
  13528. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13529. /* end confdefs.h. */
  13530. #ifdef __cplusplus
  13531. extern "C"
  13532. #endif
  13533. char dlopen ();
  13534. int main (void)
  13535. {
  13536. return dlopen ();
  13537. ;
  13538. return 0;
  13539. }
  13540. _ACEOF
  13541. if ac_fn_c_try_link "$LINENO"
  13542. then :
  13543. ac_cv_lib_dl_dlopen=yes
  13544. else $as_nop
  13545. ac_cv_lib_dl_dlopen=no
  13546. fi
  13547. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  13548. conftest$ac_exeext conftest.$ac_ext
  13549. LIBS=$ac_check_lib_save_LIBS
  13550. fi
  13551. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
  13552. printf "%s\n" "$ac_cv_lib_dl_dlopen" >&6; }
  13553. if test "x$ac_cv_lib_dl_dlopen" = xyes
  13554. then :
  13555. lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
  13556. else $as_nop
  13557. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
  13558. printf %s "checking for dlopen in -lsvld... " >&6; }
  13559. if test ${ac_cv_lib_svld_dlopen+y}
  13560. then :
  13561. printf %s "(cached) " >&6
  13562. else $as_nop
  13563. ac_check_lib_save_LIBS=$LIBS
  13564. LIBS="-lsvld $LIBS"
  13565. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13566. /* end confdefs.h. */
  13567. #ifdef __cplusplus
  13568. extern "C"
  13569. #endif
  13570. char dlopen ();
  13571. int main (void)
  13572. {
  13573. return dlopen ();
  13574. ;
  13575. return 0;
  13576. }
  13577. _ACEOF
  13578. if ac_fn_c_try_link "$LINENO"
  13579. then :
  13580. ac_cv_lib_svld_dlopen=yes
  13581. else $as_nop
  13582. ac_cv_lib_svld_dlopen=no
  13583. fi
  13584. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  13585. conftest$ac_exeext conftest.$ac_ext
  13586. LIBS=$ac_check_lib_save_LIBS
  13587. fi
  13588. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
  13589. printf "%s\n" "$ac_cv_lib_svld_dlopen" >&6; }
  13590. if test "x$ac_cv_lib_svld_dlopen" = xyes
  13591. then :
  13592. lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-lsvld
  13593. else $as_nop
  13594. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
  13595. printf %s "checking for dld_link in -ldld... " >&6; }
  13596. if test ${ac_cv_lib_dld_dld_link+y}
  13597. then :
  13598. printf %s "(cached) " >&6
  13599. else $as_nop
  13600. ac_check_lib_save_LIBS=$LIBS
  13601. LIBS="-ldld $LIBS"
  13602. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13603. /* end confdefs.h. */
  13604. #ifdef __cplusplus
  13605. extern "C"
  13606. #endif
  13607. char dld_link ();
  13608. int main (void)
  13609. {
  13610. return dld_link ();
  13611. ;
  13612. return 0;
  13613. }
  13614. _ACEOF
  13615. if ac_fn_c_try_link "$LINENO"
  13616. then :
  13617. ac_cv_lib_dld_dld_link=yes
  13618. else $as_nop
  13619. ac_cv_lib_dld_dld_link=no
  13620. fi
  13621. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  13622. conftest$ac_exeext conftest.$ac_ext
  13623. LIBS=$ac_check_lib_save_LIBS
  13624. fi
  13625. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
  13626. printf "%s\n" "$ac_cv_lib_dld_dld_link" >&6; }
  13627. if test "x$ac_cv_lib_dld_dld_link" = xyes
  13628. then :
  13629. lt_cv_dlopen=dld_link lt_cv_dlopen_libs=-ldld
  13630. fi
  13631. fi
  13632. fi
  13633. fi
  13634. fi
  13635. fi
  13636. ;;
  13637. esac
  13638. if test no = "$lt_cv_dlopen"; then
  13639. enable_dlopen=no
  13640. else
  13641. enable_dlopen=yes
  13642. fi
  13643. case $lt_cv_dlopen in
  13644. dlopen)
  13645. save_CPPFLAGS=$CPPFLAGS
  13646. test yes = "$ac_cv_header_dlfcn_h" && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
  13647. save_LDFLAGS=$LDFLAGS
  13648. wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
  13649. save_LIBS=$LIBS
  13650. LIBS="$lt_cv_dlopen_libs $LIBS"
  13651. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
  13652. printf %s "checking whether a program can dlopen itself... " >&6; }
  13653. if test ${lt_cv_dlopen_self+y}
  13654. then :
  13655. printf %s "(cached) " >&6
  13656. else $as_nop
  13657. if test yes = "$cross_compiling"; then :
  13658. lt_cv_dlopen_self=cross
  13659. else
  13660. lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
  13661. lt_status=$lt_dlunknown
  13662. cat > conftest.$ac_ext <<_LT_EOF
  13663. #line $LINENO "configure"
  13664. #include "confdefs.h"
  13665. #if HAVE_DLFCN_H
  13666. #include <dlfcn.h>
  13667. #endif
  13668. #include <stdio.h>
  13669. #ifdef RTLD_GLOBAL
  13670. # define LT_DLGLOBAL RTLD_GLOBAL
  13671. #else
  13672. # ifdef DL_GLOBAL
  13673. # define LT_DLGLOBAL DL_GLOBAL
  13674. # else
  13675. # define LT_DLGLOBAL 0
  13676. # endif
  13677. #endif
  13678. /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
  13679. find out it does not work in some platform. */
  13680. #ifndef LT_DLLAZY_OR_NOW
  13681. # ifdef RTLD_LAZY
  13682. # define LT_DLLAZY_OR_NOW RTLD_LAZY
  13683. # else
  13684. # ifdef DL_LAZY
  13685. # define LT_DLLAZY_OR_NOW DL_LAZY
  13686. # else
  13687. # ifdef RTLD_NOW
  13688. # define LT_DLLAZY_OR_NOW RTLD_NOW
  13689. # else
  13690. # ifdef DL_NOW
  13691. # define LT_DLLAZY_OR_NOW DL_NOW
  13692. # else
  13693. # define LT_DLLAZY_OR_NOW 0
  13694. # endif
  13695. # endif
  13696. # endif
  13697. # endif
  13698. #endif
  13699. /* When -fvisibility=hidden is used, assume the code has been annotated
  13700. correspondingly for the symbols needed. */
  13701. #if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
  13702. int fnord () __attribute__((visibility("default")));
  13703. #endif
  13704. int fnord () { return 42; }
  13705. int main ()
  13706. {
  13707. void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
  13708. int status = $lt_dlunknown;
  13709. if (self)
  13710. {
  13711. if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
  13712. else
  13713. {
  13714. if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
  13715. else puts (dlerror ());
  13716. }
  13717. /* dlclose (self); */
  13718. }
  13719. else
  13720. puts (dlerror ());
  13721. return status;
  13722. }
  13723. _LT_EOF
  13724. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
  13725. (eval $ac_link) 2>&5
  13726. ac_status=$?
  13727. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  13728. test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
  13729. (./conftest; exit; ) >&5 2>/dev/null
  13730. lt_status=$?
  13731. case x$lt_status in
  13732. x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
  13733. x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
  13734. x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
  13735. esac
  13736. else :
  13737. # compilation failed
  13738. lt_cv_dlopen_self=no
  13739. fi
  13740. fi
  13741. rm -fr conftest*
  13742. fi
  13743. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
  13744. printf "%s\n" "$lt_cv_dlopen_self" >&6; }
  13745. if test yes = "$lt_cv_dlopen_self"; then
  13746. wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
  13747. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
  13748. printf %s "checking whether a statically linked program can dlopen itself... " >&6; }
  13749. if test ${lt_cv_dlopen_self_static+y}
  13750. then :
  13751. printf %s "(cached) " >&6
  13752. else $as_nop
  13753. if test yes = "$cross_compiling"; then :
  13754. lt_cv_dlopen_self_static=cross
  13755. else
  13756. lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
  13757. lt_status=$lt_dlunknown
  13758. cat > conftest.$ac_ext <<_LT_EOF
  13759. #line $LINENO "configure"
  13760. #include "confdefs.h"
  13761. #if HAVE_DLFCN_H
  13762. #include <dlfcn.h>
  13763. #endif
  13764. #include <stdio.h>
  13765. #ifdef RTLD_GLOBAL
  13766. # define LT_DLGLOBAL RTLD_GLOBAL
  13767. #else
  13768. # ifdef DL_GLOBAL
  13769. # define LT_DLGLOBAL DL_GLOBAL
  13770. # else
  13771. # define LT_DLGLOBAL 0
  13772. # endif
  13773. #endif
  13774. /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
  13775. find out it does not work in some platform. */
  13776. #ifndef LT_DLLAZY_OR_NOW
  13777. # ifdef RTLD_LAZY
  13778. # define LT_DLLAZY_OR_NOW RTLD_LAZY
  13779. # else
  13780. # ifdef DL_LAZY
  13781. # define LT_DLLAZY_OR_NOW DL_LAZY
  13782. # else
  13783. # ifdef RTLD_NOW
  13784. # define LT_DLLAZY_OR_NOW RTLD_NOW
  13785. # else
  13786. # ifdef DL_NOW
  13787. # define LT_DLLAZY_OR_NOW DL_NOW
  13788. # else
  13789. # define LT_DLLAZY_OR_NOW 0
  13790. # endif
  13791. # endif
  13792. # endif
  13793. # endif
  13794. #endif
  13795. /* When -fvisibility=hidden is used, assume the code has been annotated
  13796. correspondingly for the symbols needed. */
  13797. #if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
  13798. int fnord () __attribute__((visibility("default")));
  13799. #endif
  13800. int fnord () { return 42; }
  13801. int main ()
  13802. {
  13803. void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
  13804. int status = $lt_dlunknown;
  13805. if (self)
  13806. {
  13807. if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
  13808. else
  13809. {
  13810. if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
  13811. else puts (dlerror ());
  13812. }
  13813. /* dlclose (self); */
  13814. }
  13815. else
  13816. puts (dlerror ());
  13817. return status;
  13818. }
  13819. _LT_EOF
  13820. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
  13821. (eval $ac_link) 2>&5
  13822. ac_status=$?
  13823. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  13824. test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
  13825. (./conftest; exit; ) >&5 2>/dev/null
  13826. lt_status=$?
  13827. case x$lt_status in
  13828. x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
  13829. x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
  13830. x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
  13831. esac
  13832. else :
  13833. # compilation failed
  13834. lt_cv_dlopen_self_static=no
  13835. fi
  13836. fi
  13837. rm -fr conftest*
  13838. fi
  13839. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
  13840. printf "%s\n" "$lt_cv_dlopen_self_static" >&6; }
  13841. fi
  13842. CPPFLAGS=$save_CPPFLAGS
  13843. LDFLAGS=$save_LDFLAGS
  13844. LIBS=$save_LIBS
  13845. ;;
  13846. esac
  13847. case $lt_cv_dlopen_self in
  13848. yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
  13849. *) enable_dlopen_self=unknown ;;
  13850. esac
  13851. case $lt_cv_dlopen_self_static in
  13852. yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
  13853. *) enable_dlopen_self_static=unknown ;;
  13854. esac
  13855. fi
  13856. striplib=
  13857. old_striplib=
  13858. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
  13859. printf %s "checking whether stripping libraries is possible... " >&6; }
  13860. if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
  13861. test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
  13862. test -z "$striplib" && striplib="$STRIP --strip-unneeded"
  13863. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  13864. printf "%s\n" "yes" >&6; }
  13865. else
  13866. # FIXME - insert some real tests, host_os isn't really good enough
  13867. case $host_os in
  13868. darwin*)
  13869. if test -n "$STRIP"; then
  13870. striplib="$STRIP -x"
  13871. old_striplib="$STRIP -S"
  13872. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  13873. printf "%s\n" "yes" >&6; }
  13874. else
  13875. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  13876. printf "%s\n" "no" >&6; }
  13877. fi
  13878. ;;
  13879. *)
  13880. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  13881. printf "%s\n" "no" >&6; }
  13882. ;;
  13883. esac
  13884. fi
  13885. # Report what library types will actually be built
  13886. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
  13887. printf %s "checking if libtool supports shared libraries... " >&6; }
  13888. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
  13889. printf "%s\n" "$can_build_shared" >&6; }
  13890. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
  13891. printf %s "checking whether to build shared libraries... " >&6; }
  13892. test no = "$can_build_shared" && enable_shared=no
  13893. # On AIX, shared libraries and static libraries use the same namespace, and
  13894. # are all built from PIC.
  13895. case $host_os in
  13896. aix3*)
  13897. test yes = "$enable_shared" && enable_static=no
  13898. if test -n "$RANLIB"; then
  13899. archive_cmds="$archive_cmds~\$RANLIB \$lib"
  13900. postinstall_cmds='$RANLIB $lib'
  13901. fi
  13902. ;;
  13903. aix[4-9]*)
  13904. if test ia64 != "$host_cpu"; then
  13905. case $enable_shared,$with_aix_soname,$aix_use_runtimelinking in
  13906. yes,aix,yes) ;; # shared object as lib.so file only
  13907. yes,svr4,*) ;; # shared object as lib.so archive member only
  13908. yes,*) enable_static=no ;; # shared object in lib.a archive as well
  13909. esac
  13910. fi
  13911. ;;
  13912. esac
  13913. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
  13914. printf "%s\n" "$enable_shared" >&6; }
  13915. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
  13916. printf %s "checking whether to build static libraries... " >&6; }
  13917. # Make sure either enable_shared or enable_static is yes.
  13918. test yes = "$enable_shared" || enable_static=yes
  13919. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
  13920. printf "%s\n" "$enable_static" >&6; }
  13921. fi
  13922. ac_ext=c
  13923. ac_cpp='$CPP $CPPFLAGS'
  13924. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  13925. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  13926. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  13927. CC=$lt_save_CC
  13928. ac_config_commands="$ac_config_commands libtool"
  13929. # Only expand once:
  13930. ## --------------------- ##
  13931. ## End of libtool code ##
  13932. ## --------------------- ##
  13933. #
  13934. # Verify if finally libtool shared libraries will be built
  13935. #
  13936. case "x$enable_shared" in # ((
  13937. xyes | xno)
  13938. xc_lt_build_shared=$enable_shared
  13939. ;;
  13940. *)
  13941. as_fn_error $? "unexpected libtool enable_shared value: $enable_shared" "$LINENO" 5
  13942. ;;
  13943. esac
  13944. #
  13945. # Verify if finally libtool static libraries will be built
  13946. #
  13947. case "x$enable_static" in # ((
  13948. xyes | xno)
  13949. xc_lt_build_static=$enable_static
  13950. ;;
  13951. *)
  13952. as_fn_error $? "unexpected libtool enable_static value: $enable_static" "$LINENO" 5
  13953. ;;
  13954. esac
  13955. #
  13956. # Verify if libtool shared libraries should be linked using flag -version-info
  13957. #
  13958. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries with -version-info" >&5
  13959. printf %s "checking whether to build shared libraries with -version-info... " >&6; }
  13960. xc_lt_shlib_use_version_info='yes'
  13961. if test "x$version_type" = 'xnone'; then
  13962. xc_lt_shlib_use_version_info='no'
  13963. fi
  13964. case $host_os in # (
  13965. amigaos*)
  13966. xc_lt_shlib_use_version_info='yes'
  13967. ;;
  13968. esac
  13969. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xc_lt_shlib_use_version_info" >&5
  13970. printf "%s\n" "$xc_lt_shlib_use_version_info" >&6; }
  13971. #
  13972. # Verify if libtool shared libraries should be linked using flag -no-undefined
  13973. #
  13974. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries with -no-undefined" >&5
  13975. printf %s "checking whether to build shared libraries with -no-undefined... " >&6; }
  13976. xc_lt_shlib_use_no_undefined='no'
  13977. if test "x$allow_undefined" = 'xno'; then
  13978. xc_lt_shlib_use_no_undefined='yes'
  13979. elif test "x$allow_undefined_flag" = 'xunsupported'; then
  13980. xc_lt_shlib_use_no_undefined='yes'
  13981. fi
  13982. case $host_os in # (
  13983. cygwin* | mingw* | pw32* | cegcc* | os2* | aix*)
  13984. xc_lt_shlib_use_no_undefined='yes'
  13985. ;;
  13986. esac
  13987. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xc_lt_shlib_use_no_undefined" >&5
  13988. printf "%s\n" "$xc_lt_shlib_use_no_undefined" >&6; }
  13989. #
  13990. # Verify if libtool shared libraries should be linked using flag -mimpure-text
  13991. #
  13992. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries with -mimpure-text" >&5
  13993. printf %s "checking whether to build shared libraries with -mimpure-text... " >&6; }
  13994. xc_lt_shlib_use_mimpure_text='no'
  13995. case $host_os in # (
  13996. solaris2*)
  13997. if test "x$GCC" = 'xyes'; then
  13998. xc_lt_shlib_use_mimpure_text='yes'
  13999. fi
  14000. ;;
  14001. esac
  14002. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xc_lt_shlib_use_mimpure_text" >&5
  14003. printf "%s\n" "$xc_lt_shlib_use_mimpure_text" >&6; }
  14004. #
  14005. # Find out whether libtool libraries would be built wit PIC
  14006. #
  14007. case "x$pic_mode" in # ((((
  14008. xdefault)
  14009. xc_lt_build_shared_with_pic='yes'
  14010. xc_lt_build_static_with_pic='no'
  14011. ;;
  14012. xyes)
  14013. xc_lt_build_shared_with_pic='yes'
  14014. xc_lt_build_static_with_pic='yes'
  14015. ;;
  14016. xno)
  14017. xc_lt_build_shared_with_pic='no'
  14018. xc_lt_build_static_with_pic='no'
  14019. ;;
  14020. *)
  14021. xc_lt_build_shared_with_pic='unknown'
  14022. xc_lt_build_static_with_pic='unknown'
  14023. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: unexpected libtool pic_mode value: $pic_mode" >&5
  14024. printf "%s\n" "$as_me: WARNING: unexpected libtool pic_mode value: $pic_mode" >&2;}
  14025. ;;
  14026. esac
  14027. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries with PIC" >&5
  14028. printf %s "checking whether to build shared libraries with PIC... " >&6; }
  14029. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xc_lt_build_shared_with_pic" >&5
  14030. printf "%s\n" "$xc_lt_build_shared_with_pic" >&6; }
  14031. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries with PIC" >&5
  14032. printf %s "checking whether to build static libraries with PIC... " >&6; }
  14033. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xc_lt_build_static_with_pic" >&5
  14034. printf "%s\n" "$xc_lt_build_static_with_pic" >&6; }
  14035. #
  14036. # Verify if libtool shared libraries will be built while static not built
  14037. #
  14038. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries only" >&5
  14039. printf %s "checking whether to build shared libraries only... " >&6; }
  14040. if test "$xc_lt_build_shared" = 'yes' &&
  14041. test "$xc_lt_build_static" = 'no'; then
  14042. xc_lt_build_shared_only='yes'
  14043. else
  14044. xc_lt_build_shared_only='no'
  14045. fi
  14046. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xc_lt_build_shared_only" >&5
  14047. printf "%s\n" "$xc_lt_build_shared_only" >&6; }
  14048. #
  14049. # Verify if libtool static libraries will be built while shared not built
  14050. #
  14051. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries only" >&5
  14052. printf %s "checking whether to build static libraries only... " >&6; }
  14053. if test "$xc_lt_build_static" = 'yes' &&
  14054. test "$xc_lt_build_shared" = 'no'; then
  14055. xc_lt_build_static_only='yes'
  14056. else
  14057. xc_lt_build_static_only='no'
  14058. fi
  14059. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xc_lt_build_static_only" >&5
  14060. printf "%s\n" "$xc_lt_build_static_only" >&6; }
  14061. #
  14062. # Automake conditionals based on libtool related checks
  14063. #
  14064. if test "x$xc_lt_shlib_use_version_info" = 'xyes'; then
  14065. CURL_LT_SHLIB_USE_VERSION_INFO_TRUE=
  14066. CURL_LT_SHLIB_USE_VERSION_INFO_FALSE='#'
  14067. else
  14068. CURL_LT_SHLIB_USE_VERSION_INFO_TRUE='#'
  14069. CURL_LT_SHLIB_USE_VERSION_INFO_FALSE=
  14070. fi
  14071. if test "x$xc_lt_shlib_use_no_undefined" = 'xyes'; then
  14072. CURL_LT_SHLIB_USE_NO_UNDEFINED_TRUE=
  14073. CURL_LT_SHLIB_USE_NO_UNDEFINED_FALSE='#'
  14074. else
  14075. CURL_LT_SHLIB_USE_NO_UNDEFINED_TRUE='#'
  14076. CURL_LT_SHLIB_USE_NO_UNDEFINED_FALSE=
  14077. fi
  14078. if test "x$xc_lt_shlib_use_mimpure_text" = 'xyes'; then
  14079. CURL_LT_SHLIB_USE_MIMPURE_TEXT_TRUE=
  14080. CURL_LT_SHLIB_USE_MIMPURE_TEXT_FALSE='#'
  14081. else
  14082. CURL_LT_SHLIB_USE_MIMPURE_TEXT_TRUE='#'
  14083. CURL_LT_SHLIB_USE_MIMPURE_TEXT_FALSE=
  14084. fi
  14085. #
  14086. # Due to libtool and automake machinery limitations of not allowing
  14087. # specifying separate CPPFLAGS or CFLAGS when compiling objects for
  14088. # inclusion of these in shared or static libraries, we are forced to
  14089. # build using separate configure runs for shared and static libraries
  14090. # on systems where different CPPFLAGS or CFLAGS are mandatory in order
  14091. # to compile objects for each kind of library. Notice that relying on
  14092. # the '-DPIC' CFLAG that libtool provides is not valid given that the
  14093. # user might for example choose to build static libraries with PIC.
  14094. #
  14095. #
  14096. # Make our Makefile.am files use the staticlib CPPFLAG only when strictly
  14097. # targeting a static library and not building its shared counterpart.
  14098. #
  14099. if test "x$xc_lt_build_static_only" = 'xyes'; then
  14100. USE_CPPFLAG_CURL_STATICLIB_TRUE=
  14101. USE_CPPFLAG_CURL_STATICLIB_FALSE='#'
  14102. else
  14103. USE_CPPFLAG_CURL_STATICLIB_TRUE='#'
  14104. USE_CPPFLAG_CURL_STATICLIB_FALSE=
  14105. fi
  14106. #
  14107. # Make staticlib CPPFLAG variable and its definition visible in output
  14108. # files unconditionally, providing an empty definition unless strictly
  14109. # targeting a static library and not building its shared counterpart.
  14110. #
  14111. CPPFLAG_CURL_STATICLIB=
  14112. if test "x$xc_lt_build_static_only" = 'xyes'; then
  14113. CPPFLAG_CURL_STATICLIB='-DCURL_STATICLIB'
  14114. fi
  14115. # Determine whether all dependent libraries must be specified when linking
  14116. if test "X$enable_shared" = "Xyes" -a "X$link_all_deplibs" = "Xno"
  14117. then
  14118. REQUIRE_LIB_DEPS=no
  14119. else
  14120. REQUIRE_LIB_DEPS=yes
  14121. fi
  14122. if test x$REQUIRE_LIB_DEPS = xyes; then
  14123. USE_EXPLICIT_LIB_DEPS_TRUE=
  14124. USE_EXPLICIT_LIB_DEPS_FALSE='#'
  14125. else
  14126. USE_EXPLICIT_LIB_DEPS_TRUE='#'
  14127. USE_EXPLICIT_LIB_DEPS_FALSE=
  14128. fi
  14129. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
  14130. printf %s "checking for inline... " >&6; }
  14131. if test ${ac_cv_c_inline+y}
  14132. then :
  14133. printf %s "(cached) " >&6
  14134. else $as_nop
  14135. ac_cv_c_inline=no
  14136. for ac_kw in inline __inline__ __inline; do
  14137. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14138. /* end confdefs.h. */
  14139. #ifndef __cplusplus
  14140. typedef int foo_t;
  14141. static $ac_kw foo_t static_foo (void) {return 0; }
  14142. $ac_kw foo_t foo (void) {return 0; }
  14143. #endif
  14144. _ACEOF
  14145. if ac_fn_c_try_compile "$LINENO"
  14146. then :
  14147. ac_cv_c_inline=$ac_kw
  14148. fi
  14149. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  14150. test "$ac_cv_c_inline" != no && break
  14151. done
  14152. fi
  14153. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
  14154. printf "%s\n" "$ac_cv_c_inline" >&6; }
  14155. case $ac_cv_c_inline in
  14156. inline | yes) ;;
  14157. *)
  14158. case $ac_cv_c_inline in
  14159. no) ac_val=;;
  14160. *) ac_val=$ac_cv_c_inline;;
  14161. esac
  14162. cat >>confdefs.h <<_ACEOF
  14163. #ifndef __cplusplus
  14164. #define inline $ac_val
  14165. #endif
  14166. _ACEOF
  14167. ;;
  14168. esac
  14169. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if cpp -P is needed" >&5
  14170. printf %s "checking if cpp -P is needed... " >&6; }
  14171. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14172. /* end confdefs.h. */
  14173. #include <errno.h>
  14174. TEST EINVAL TEST
  14175. _ACEOF
  14176. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  14177. $EGREP "TEST.*TEST" >/dev/null 2>&1
  14178. then :
  14179. cpp=no
  14180. else $as_nop
  14181. cpp=yes
  14182. fi
  14183. rm -rf conftest*
  14184. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $cpp" >&5
  14185. printf "%s\n" "$cpp" >&6; }
  14186. if test "x$cpp" = "xyes"; then
  14187. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if cpp -P works" >&5
  14188. printf %s "checking if cpp -P works... " >&6; }
  14189. OLDCPPFLAGS=$CPPFLAGS
  14190. CPPFLAGS="$CPPFLAGS -P"
  14191. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14192. /* end confdefs.h. */
  14193. #include <errno.h>
  14194. TEST EINVAL TEST
  14195. _ACEOF
  14196. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  14197. $EGREP "TEST.*TEST" >/dev/null 2>&1
  14198. then :
  14199. cpp_p=yes
  14200. else $as_nop
  14201. cpp_p=no
  14202. fi
  14203. rm -rf conftest*
  14204. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $cpp_p" >&5
  14205. printf "%s\n" "$cpp_p" >&6; }
  14206. if test "x$cpp_p" = "xno"; then
  14207. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: failed to figure out cpp -P alternative" >&5
  14208. printf "%s\n" "$as_me: WARNING: failed to figure out cpp -P alternative" >&2;}
  14209. # without -P
  14210. CPPPFLAG=""
  14211. else
  14212. # with -P
  14213. CPPPFLAG="-P"
  14214. fi
  14215. CPPFLAGS=$OLDCPPFLAGS
  14216. else
  14217. # without -P
  14218. CPPPFLAG=""
  14219. fi
  14220. #
  14221. compiler_id="unknown"
  14222. compiler_num="0"
  14223. #
  14224. flags_dbg_yes="unknown"
  14225. flags_opt_all="unknown"
  14226. flags_opt_yes="unknown"
  14227. flags_opt_off="unknown"
  14228. #
  14229. flags_prefer_cppflags="no"
  14230. #
  14231. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if compiler is DEC/Compaq/HP C" >&5
  14232. printf %s "checking if compiler is DEC/Compaq/HP C... " >&6; }
  14233. OLDCPPFLAGS=$CPPFLAGS
  14234. # CPPPFLAG comes from CURL_CPP_P
  14235. CPPFLAGS="$CPPFLAGS $CPPPFLAG"
  14236. if test -z "$SED"; then
  14237. as_fn_error $? "SED not set. Cannot continue without SED being set." "$LINENO" 5
  14238. fi
  14239. if test -z "$GREP"; then
  14240. as_fn_error $? "GREP not set. Cannot continue without GREP being set." "$LINENO" 5
  14241. fi
  14242. tmp_exp=""
  14243. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14244. /* end confdefs.h. */
  14245. #ifdef __DECC
  14246. CURL_DEF_TOKEN __DECC
  14247. #endif
  14248. _ACEOF
  14249. if ac_fn_c_try_cpp "$LINENO"
  14250. then :
  14251. tmp_exp=`eval "$ac_cpp conftest.$ac_ext" 2>/dev/null | \
  14252. "$GREP" CURL_DEF_TOKEN 2>/dev/null | \
  14253. "$SED" 's/.*CURL_DEF_TOKEN[ ][ ]*//' 2>/dev/null | \
  14254. "$SED" 's/["][ ]*["]//g' 2>/dev/null`
  14255. if test -z "$tmp_exp" || test "$tmp_exp" = "__DECC"; then
  14256. tmp_exp=""
  14257. fi
  14258. fi
  14259. rm -f conftest.err conftest.i conftest.$ac_ext
  14260. if test -z "$tmp_exp"; then
  14261. curl_cv_have_def___DECC=no
  14262. else
  14263. curl_cv_have_def___DECC=yes
  14264. curl_cv_def___DECC=$tmp_exp
  14265. fi
  14266. CPPFLAGS=$OLDCPPFLAGS
  14267. OLDCPPFLAGS=$CPPFLAGS
  14268. # CPPPFLAG comes from CURL_CPP_P
  14269. CPPFLAGS="$CPPFLAGS $CPPPFLAG"
  14270. if test -z "$SED"; then
  14271. as_fn_error $? "SED not set. Cannot continue without SED being set." "$LINENO" 5
  14272. fi
  14273. if test -z "$GREP"; then
  14274. as_fn_error $? "GREP not set. Cannot continue without GREP being set." "$LINENO" 5
  14275. fi
  14276. tmp_exp=""
  14277. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14278. /* end confdefs.h. */
  14279. #ifdef __DECC_VER
  14280. CURL_DEF_TOKEN __DECC_VER
  14281. #endif
  14282. _ACEOF
  14283. if ac_fn_c_try_cpp "$LINENO"
  14284. then :
  14285. tmp_exp=`eval "$ac_cpp conftest.$ac_ext" 2>/dev/null | \
  14286. "$GREP" CURL_DEF_TOKEN 2>/dev/null | \
  14287. "$SED" 's/.*CURL_DEF_TOKEN[ ][ ]*//' 2>/dev/null | \
  14288. "$SED" 's/["][ ]*["]//g' 2>/dev/null`
  14289. if test -z "$tmp_exp" || test "$tmp_exp" = "__DECC_VER"; then
  14290. tmp_exp=""
  14291. fi
  14292. fi
  14293. rm -f conftest.err conftest.i conftest.$ac_ext
  14294. if test -z "$tmp_exp"; then
  14295. curl_cv_have_def___DECC_VER=no
  14296. else
  14297. curl_cv_have_def___DECC_VER=yes
  14298. curl_cv_def___DECC_VER=$tmp_exp
  14299. fi
  14300. CPPFLAGS=$OLDCPPFLAGS
  14301. if test "$curl_cv_have_def___DECC" = "yes" &&
  14302. test "$curl_cv_have_def___DECC_VER" = "yes"; then
  14303. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  14304. printf "%s\n" "yes" >&6; }
  14305. compiler_id="DEC_C"
  14306. flags_dbg_yes="-g2"
  14307. flags_opt_all="-O -O0 -O1 -O2 -O3 -O4"
  14308. flags_opt_yes="-O1"
  14309. flags_opt_off="-O0"
  14310. else
  14311. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  14312. printf "%s\n" "no" >&6; }
  14313. fi
  14314. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if compiler is HP-UX C" >&5
  14315. printf %s "checking if compiler is HP-UX C... " >&6; }
  14316. OLDCPPFLAGS=$CPPFLAGS
  14317. # CPPPFLAG comes from CURL_CPP_P
  14318. CPPFLAGS="$CPPFLAGS $CPPPFLAG"
  14319. if test -z "$SED"; then
  14320. as_fn_error $? "SED not set. Cannot continue without SED being set." "$LINENO" 5
  14321. fi
  14322. if test -z "$GREP"; then
  14323. as_fn_error $? "GREP not set. Cannot continue without GREP being set." "$LINENO" 5
  14324. fi
  14325. tmp_exp=""
  14326. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14327. /* end confdefs.h. */
  14328. #ifdef __HP_cc
  14329. CURL_DEF_TOKEN __HP_cc
  14330. #endif
  14331. _ACEOF
  14332. if ac_fn_c_try_cpp "$LINENO"
  14333. then :
  14334. tmp_exp=`eval "$ac_cpp conftest.$ac_ext" 2>/dev/null | \
  14335. "$GREP" CURL_DEF_TOKEN 2>/dev/null | \
  14336. "$SED" 's/.*CURL_DEF_TOKEN[ ][ ]*//' 2>/dev/null | \
  14337. "$SED" 's/["][ ]*["]//g' 2>/dev/null`
  14338. if test -z "$tmp_exp" || test "$tmp_exp" = "__HP_cc"; then
  14339. tmp_exp=""
  14340. fi
  14341. fi
  14342. rm -f conftest.err conftest.i conftest.$ac_ext
  14343. if test -z "$tmp_exp"; then
  14344. curl_cv_have_def___HP_cc=no
  14345. else
  14346. curl_cv_have_def___HP_cc=yes
  14347. curl_cv_def___HP_cc=$tmp_exp
  14348. fi
  14349. CPPFLAGS=$OLDCPPFLAGS
  14350. if test "$curl_cv_have_def___HP_cc" = "yes"; then
  14351. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  14352. printf "%s\n" "yes" >&6; }
  14353. compiler_id="HP_UX_C"
  14354. flags_dbg_yes="-g"
  14355. flags_opt_all="-O +O0 +O1 +O2 +O3 +O4"
  14356. flags_opt_yes="+O2"
  14357. flags_opt_off="+O0"
  14358. else
  14359. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  14360. printf "%s\n" "no" >&6; }
  14361. fi
  14362. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if compiler is IBM C" >&5
  14363. printf %s "checking if compiler is IBM C... " >&6; }
  14364. OLDCPPFLAGS=$CPPFLAGS
  14365. # CPPPFLAG comes from CURL_CPP_P
  14366. CPPFLAGS="$CPPFLAGS $CPPPFLAG"
  14367. if test -z "$SED"; then
  14368. as_fn_error $? "SED not set. Cannot continue without SED being set." "$LINENO" 5
  14369. fi
  14370. if test -z "$GREP"; then
  14371. as_fn_error $? "GREP not set. Cannot continue without GREP being set." "$LINENO" 5
  14372. fi
  14373. tmp_exp=""
  14374. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14375. /* end confdefs.h. */
  14376. #ifdef __IBMC__
  14377. CURL_DEF_TOKEN __IBMC__
  14378. #endif
  14379. _ACEOF
  14380. if ac_fn_c_try_cpp "$LINENO"
  14381. then :
  14382. tmp_exp=`eval "$ac_cpp conftest.$ac_ext" 2>/dev/null | \
  14383. "$GREP" CURL_DEF_TOKEN 2>/dev/null | \
  14384. "$SED" 's/.*CURL_DEF_TOKEN[ ][ ]*//' 2>/dev/null | \
  14385. "$SED" 's/["][ ]*["]//g' 2>/dev/null`
  14386. if test -z "$tmp_exp" || test "$tmp_exp" = "__IBMC__"; then
  14387. tmp_exp=""
  14388. fi
  14389. fi
  14390. rm -f conftest.err conftest.i conftest.$ac_ext
  14391. if test -z "$tmp_exp"; then
  14392. curl_cv_have_def___IBMC__=no
  14393. else
  14394. curl_cv_have_def___IBMC__=yes
  14395. curl_cv_def___IBMC__=$tmp_exp
  14396. fi
  14397. CPPFLAGS=$OLDCPPFLAGS
  14398. if test "$curl_cv_have_def___IBMC__" = "yes"; then
  14399. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  14400. printf "%s\n" "yes" >&6; }
  14401. compiler_id="IBM_C"
  14402. flags_dbg_yes="-g"
  14403. flags_opt_all="-O -O0 -O1 -O2 -O3 -O4 -O5"
  14404. flags_opt_all="$flags_opt_all -qnooptimize"
  14405. flags_opt_all="$flags_opt_all -qoptimize=0"
  14406. flags_opt_all="$flags_opt_all -qoptimize=1"
  14407. flags_opt_all="$flags_opt_all -qoptimize=2"
  14408. flags_opt_all="$flags_opt_all -qoptimize=3"
  14409. flags_opt_all="$flags_opt_all -qoptimize=4"
  14410. flags_opt_all="$flags_opt_all -qoptimize=5"
  14411. flags_opt_yes="-O2"
  14412. flags_opt_off="-qnooptimize"
  14413. flags_prefer_cppflags="yes"
  14414. else
  14415. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  14416. printf "%s\n" "no" >&6; }
  14417. fi
  14418. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if compiler is Intel C" >&5
  14419. printf %s "checking if compiler is Intel C... " >&6; }
  14420. OLDCPPFLAGS=$CPPFLAGS
  14421. # CPPPFLAG comes from CURL_CPP_P
  14422. CPPFLAGS="$CPPFLAGS $CPPPFLAG"
  14423. if test -z "$SED"; then
  14424. as_fn_error $? "SED not set. Cannot continue without SED being set." "$LINENO" 5
  14425. fi
  14426. if test -z "$GREP"; then
  14427. as_fn_error $? "GREP not set. Cannot continue without GREP being set." "$LINENO" 5
  14428. fi
  14429. tmp_exp=""
  14430. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14431. /* end confdefs.h. */
  14432. #ifdef __INTEL_COMPILER
  14433. CURL_DEF_TOKEN __INTEL_COMPILER
  14434. #endif
  14435. _ACEOF
  14436. if ac_fn_c_try_cpp "$LINENO"
  14437. then :
  14438. tmp_exp=`eval "$ac_cpp conftest.$ac_ext" 2>/dev/null | \
  14439. "$GREP" CURL_DEF_TOKEN 2>/dev/null | \
  14440. "$SED" 's/.*CURL_DEF_TOKEN[ ][ ]*//' 2>/dev/null | \
  14441. "$SED" 's/["][ ]*["]//g' 2>/dev/null`
  14442. if test -z "$tmp_exp" || test "$tmp_exp" = "__INTEL_COMPILER"; then
  14443. tmp_exp=""
  14444. fi
  14445. fi
  14446. rm -f conftest.err conftest.i conftest.$ac_ext
  14447. if test -z "$tmp_exp"; then
  14448. curl_cv_have_def___INTEL_COMPILER=no
  14449. else
  14450. curl_cv_have_def___INTEL_COMPILER=yes
  14451. curl_cv_def___INTEL_COMPILER=$tmp_exp
  14452. fi
  14453. CPPFLAGS=$OLDCPPFLAGS
  14454. if test "$curl_cv_have_def___INTEL_COMPILER" = "yes"; then
  14455. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  14456. printf "%s\n" "yes" >&6; }
  14457. compiler_num="$curl_cv_def___INTEL_COMPILER"
  14458. OLDCPPFLAGS=$CPPFLAGS
  14459. # CPPPFLAG comes from CURL_CPP_P
  14460. CPPFLAGS="$CPPFLAGS $CPPPFLAG"
  14461. if test -z "$SED"; then
  14462. as_fn_error $? "SED not set. Cannot continue without SED being set." "$LINENO" 5
  14463. fi
  14464. if test -z "$GREP"; then
  14465. as_fn_error $? "GREP not set. Cannot continue without GREP being set." "$LINENO" 5
  14466. fi
  14467. tmp_exp=""
  14468. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14469. /* end confdefs.h. */
  14470. #ifdef __unix__
  14471. CURL_DEF_TOKEN __unix__
  14472. #endif
  14473. _ACEOF
  14474. if ac_fn_c_try_cpp "$LINENO"
  14475. then :
  14476. tmp_exp=`eval "$ac_cpp conftest.$ac_ext" 2>/dev/null | \
  14477. "$GREP" CURL_DEF_TOKEN 2>/dev/null | \
  14478. "$SED" 's/.*CURL_DEF_TOKEN[ ][ ]*//' 2>/dev/null | \
  14479. "$SED" 's/["][ ]*["]//g' 2>/dev/null`
  14480. if test -z "$tmp_exp" || test "$tmp_exp" = ""; then
  14481. tmp_exp=""
  14482. fi
  14483. fi
  14484. rm -f conftest.err conftest.i conftest.$ac_ext
  14485. if test -z "$tmp_exp"; then
  14486. curl_cv_have_def___unix__=no
  14487. else
  14488. curl_cv_have_def___unix__=yes
  14489. curl_cv_def___unix__=$tmp_exp
  14490. fi
  14491. CPPFLAGS=$OLDCPPFLAGS
  14492. if test "$curl_cv_have_def___unix__" = "yes"; then
  14493. compiler_id="INTEL_UNIX_C"
  14494. flags_dbg_yes="-g"
  14495. flags_opt_all="-O -O0 -O1 -O2 -O3 -Os"
  14496. flags_opt_yes="-O2"
  14497. flags_opt_off="-O0"
  14498. else
  14499. compiler_id="INTEL_WINDOWS_C"
  14500. flags_dbg_yes="/Zi /Oy-"
  14501. flags_opt_all="/O /O0 /O1 /O2 /O3 /Od /Og /Og- /Oi /Oi-"
  14502. flags_opt_yes="/O2"
  14503. flags_opt_off="/Od"
  14504. fi
  14505. else
  14506. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  14507. printf "%s\n" "no" >&6; }
  14508. fi
  14509. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if compiler is clang" >&5
  14510. printf %s "checking if compiler is clang... " >&6; }
  14511. OLDCPPFLAGS=$CPPFLAGS
  14512. # CPPPFLAG comes from CURL_CPP_P
  14513. CPPFLAGS="$CPPFLAGS $CPPPFLAG"
  14514. if test -z "$SED"; then
  14515. as_fn_error $? "SED not set. Cannot continue without SED being set." "$LINENO" 5
  14516. fi
  14517. if test -z "$GREP"; then
  14518. as_fn_error $? "GREP not set. Cannot continue without GREP being set." "$LINENO" 5
  14519. fi
  14520. tmp_exp=""
  14521. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14522. /* end confdefs.h. */
  14523. #ifdef __clang__
  14524. CURL_DEF_TOKEN __clang__
  14525. #endif
  14526. _ACEOF
  14527. if ac_fn_c_try_cpp "$LINENO"
  14528. then :
  14529. tmp_exp=`eval "$ac_cpp conftest.$ac_ext" 2>/dev/null | \
  14530. "$GREP" CURL_DEF_TOKEN 2>/dev/null | \
  14531. "$SED" 's/.*CURL_DEF_TOKEN[ ][ ]*//' 2>/dev/null | \
  14532. "$SED" 's/["][ ]*["]//g' 2>/dev/null`
  14533. if test -z "$tmp_exp" || test "$tmp_exp" = "__clang__"; then
  14534. tmp_exp=""
  14535. fi
  14536. fi
  14537. rm -f conftest.err conftest.i conftest.$ac_ext
  14538. if test -z "$tmp_exp"; then
  14539. curl_cv_have_def___clang__=no
  14540. else
  14541. curl_cv_have_def___clang__=yes
  14542. curl_cv_def___clang__=$tmp_exp
  14543. fi
  14544. CPPFLAGS=$OLDCPPFLAGS
  14545. if test "$curl_cv_have_def___clang__" = "yes"; then
  14546. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  14547. printf "%s\n" "yes" >&6; }
  14548. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if compiler is xlclang" >&5
  14549. printf %s "checking if compiler is xlclang... " >&6; }
  14550. OLDCPPFLAGS=$CPPFLAGS
  14551. # CPPPFLAG comes from CURL_CPP_P
  14552. CPPFLAGS="$CPPFLAGS $CPPPFLAG"
  14553. if test -z "$SED"; then
  14554. as_fn_error $? "SED not set. Cannot continue without SED being set." "$LINENO" 5
  14555. fi
  14556. if test -z "$GREP"; then
  14557. as_fn_error $? "GREP not set. Cannot continue without GREP being set." "$LINENO" 5
  14558. fi
  14559. tmp_exp=""
  14560. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14561. /* end confdefs.h. */
  14562. #ifdef __ibmxl__
  14563. CURL_DEF_TOKEN __ibmxl__
  14564. #endif
  14565. _ACEOF
  14566. if ac_fn_c_try_cpp "$LINENO"
  14567. then :
  14568. tmp_exp=`eval "$ac_cpp conftest.$ac_ext" 2>/dev/null | \
  14569. "$GREP" CURL_DEF_TOKEN 2>/dev/null | \
  14570. "$SED" 's/.*CURL_DEF_TOKEN[ ][ ]*//' 2>/dev/null | \
  14571. "$SED" 's/["][ ]*["]//g' 2>/dev/null`
  14572. if test -z "$tmp_exp" || test "$tmp_exp" = "__ibmxl__"; then
  14573. tmp_exp=""
  14574. fi
  14575. fi
  14576. rm -f conftest.err conftest.i conftest.$ac_ext
  14577. if test -z "$tmp_exp"; then
  14578. curl_cv_have_def___ibmxl__=no
  14579. else
  14580. curl_cv_have_def___ibmxl__=yes
  14581. curl_cv_def___ibmxl__=$tmp_exp
  14582. fi
  14583. CPPFLAGS=$OLDCPPFLAGS
  14584. if test "$curl_cv_have_def___ibmxl__" = "yes" ; then
  14585. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  14586. printf "%s\n" "yes" >&6; }
  14587. compiler_id="XLCLANG"
  14588. else
  14589. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  14590. printf "%s\n" "no" >&6; }
  14591. compiler_id="CLANG"
  14592. fi
  14593. fullclangver=`$CC -v 2>&1 | grep version`
  14594. clangver=`echo $fullclangver | grep "based on LLVM " | "$SED" 's/.*(based on LLVM \([0-9]*\.[0-9]*\).*)/\1/'`
  14595. if test -z "$clangver"; then
  14596. if echo $fullclangver | grep "Apple LLVM version " >/dev/null; then
  14597. clangver="3.7"
  14598. else
  14599. clangver=`echo $fullclangver | "$SED" 's/.*version \([0-9]*\.[0-9]*\).*/\1/'`
  14600. fi
  14601. fi
  14602. clangvhi=`echo $clangver | cut -d . -f1`
  14603. clangvlo=`echo $clangver | cut -d . -f2`
  14604. compiler_num=`(expr $clangvhi "*" 100 + $clangvlo) 2>/dev/null`
  14605. flags_dbg_yes="-g"
  14606. flags_opt_all="-O -O0 -O1 -O2 -Os -O3 -O4"
  14607. flags_opt_yes="-Os"
  14608. flags_opt_off="-O0"
  14609. else
  14610. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  14611. printf "%s\n" "no" >&6; }
  14612. fi
  14613. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if compiler is GNU C" >&5
  14614. printf %s "checking if compiler is GNU C... " >&6; }
  14615. OLDCPPFLAGS=$CPPFLAGS
  14616. # CPPPFLAG comes from CURL_CPP_P
  14617. CPPFLAGS="$CPPFLAGS $CPPPFLAG"
  14618. if test -z "$SED"; then
  14619. as_fn_error $? "SED not set. Cannot continue without SED being set." "$LINENO" 5
  14620. fi
  14621. if test -z "$GREP"; then
  14622. as_fn_error $? "GREP not set. Cannot continue without GREP being set." "$LINENO" 5
  14623. fi
  14624. tmp_exp=""
  14625. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14626. /* end confdefs.h. */
  14627. #ifdef __GNUC__
  14628. CURL_DEF_TOKEN __GNUC__
  14629. #endif
  14630. _ACEOF
  14631. if ac_fn_c_try_cpp "$LINENO"
  14632. then :
  14633. tmp_exp=`eval "$ac_cpp conftest.$ac_ext" 2>/dev/null | \
  14634. "$GREP" CURL_DEF_TOKEN 2>/dev/null | \
  14635. "$SED" 's/.*CURL_DEF_TOKEN[ ][ ]*//' 2>/dev/null | \
  14636. "$SED" 's/["][ ]*["]//g' 2>/dev/null`
  14637. if test -z "$tmp_exp" || test "$tmp_exp" = "__GNUC__"; then
  14638. tmp_exp=""
  14639. fi
  14640. fi
  14641. rm -f conftest.err conftest.i conftest.$ac_ext
  14642. if test -z "$tmp_exp"; then
  14643. curl_cv_have_def___GNUC__=no
  14644. else
  14645. curl_cv_have_def___GNUC__=yes
  14646. curl_cv_def___GNUC__=$tmp_exp
  14647. fi
  14648. CPPFLAGS=$OLDCPPFLAGS
  14649. if test "$curl_cv_have_def___GNUC__" = "yes" &&
  14650. test "$compiler_id" = "unknown"; then
  14651. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  14652. printf "%s\n" "yes" >&6; }
  14653. compiler_id="GNU_C"
  14654. gccver=`$CC -dumpversion`
  14655. gccvhi=`echo $gccver | cut -d . -f1`
  14656. gccvlo=`echo $gccver | cut -d . -f2`
  14657. compiler_num=`(expr $gccvhi "*" 100 + $gccvlo) 2>/dev/null`
  14658. flags_dbg_yes="-g"
  14659. flags_opt_all="-O -O0 -O1 -O2 -O3 -Os -Og -Ofast"
  14660. flags_opt_yes="-O2"
  14661. flags_opt_off="-O0"
  14662. OLDCPPFLAGS=$CPPFLAGS
  14663. # CPPPFLAG comes from CURL_CPP_P
  14664. CPPFLAGS="$CPPFLAGS $CPPPFLAG"
  14665. if test -z "$SED"; then
  14666. as_fn_error $? "SED not set. Cannot continue without SED being set." "$LINENO" 5
  14667. fi
  14668. if test -z "$GREP"; then
  14669. as_fn_error $? "GREP not set. Cannot continue without GREP being set." "$LINENO" 5
  14670. fi
  14671. tmp_exp=""
  14672. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14673. /* end confdefs.h. */
  14674. #ifdef _WIN32
  14675. CURL_DEF_TOKEN _WIN32
  14676. #endif
  14677. _ACEOF
  14678. if ac_fn_c_try_cpp "$LINENO"
  14679. then :
  14680. tmp_exp=`eval "$ac_cpp conftest.$ac_ext" 2>/dev/null | \
  14681. "$GREP" CURL_DEF_TOKEN 2>/dev/null | \
  14682. "$SED" 's/.*CURL_DEF_TOKEN[ ][ ]*//' 2>/dev/null | \
  14683. "$SED" 's/["][ ]*["]//g' 2>/dev/null`
  14684. if test -z "$tmp_exp" || test "$tmp_exp" = "_WIN32"; then
  14685. tmp_exp=""
  14686. fi
  14687. fi
  14688. rm -f conftest.err conftest.i conftest.$ac_ext
  14689. if test -z "$tmp_exp"; then
  14690. curl_cv_have_def__WIN32=no
  14691. else
  14692. curl_cv_have_def__WIN32=yes
  14693. curl_cv_def__WIN32=$tmp_exp
  14694. fi
  14695. CPPFLAGS=$OLDCPPFLAGS
  14696. else
  14697. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  14698. printf "%s\n" "no" >&6; }
  14699. fi
  14700. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if compiler is LCC" >&5
  14701. printf %s "checking if compiler is LCC... " >&6; }
  14702. OLDCPPFLAGS=$CPPFLAGS
  14703. # CPPPFLAG comes from CURL_CPP_P
  14704. CPPFLAGS="$CPPFLAGS $CPPPFLAG"
  14705. if test -z "$SED"; then
  14706. as_fn_error $? "SED not set. Cannot continue without SED being set." "$LINENO" 5
  14707. fi
  14708. if test -z "$GREP"; then
  14709. as_fn_error $? "GREP not set. Cannot continue without GREP being set." "$LINENO" 5
  14710. fi
  14711. tmp_exp=""
  14712. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14713. /* end confdefs.h. */
  14714. #ifdef __LCC__
  14715. CURL_DEF_TOKEN __LCC__
  14716. #endif
  14717. _ACEOF
  14718. if ac_fn_c_try_cpp "$LINENO"
  14719. then :
  14720. tmp_exp=`eval "$ac_cpp conftest.$ac_ext" 2>/dev/null | \
  14721. "$GREP" CURL_DEF_TOKEN 2>/dev/null | \
  14722. "$SED" 's/.*CURL_DEF_TOKEN[ ][ ]*//' 2>/dev/null | \
  14723. "$SED" 's/["][ ]*["]//g' 2>/dev/null`
  14724. if test -z "$tmp_exp" || test "$tmp_exp" = "__LCC__"; then
  14725. tmp_exp=""
  14726. fi
  14727. fi
  14728. rm -f conftest.err conftest.i conftest.$ac_ext
  14729. if test -z "$tmp_exp"; then
  14730. curl_cv_have_def___LCC__=no
  14731. else
  14732. curl_cv_have_def___LCC__=yes
  14733. curl_cv_def___LCC__=$tmp_exp
  14734. fi
  14735. CPPFLAGS=$OLDCPPFLAGS
  14736. if test "$curl_cv_have_def___LCC__" = "yes"; then
  14737. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  14738. printf "%s\n" "yes" >&6; }
  14739. compiler_id="LCC"
  14740. flags_dbg_yes="-g"
  14741. flags_opt_all=""
  14742. flags_opt_yes=""
  14743. flags_opt_off=""
  14744. else
  14745. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  14746. printf "%s\n" "no" >&6; }
  14747. fi
  14748. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if compiler is SGI MIPSpro C" >&5
  14749. printf %s "checking if compiler is SGI MIPSpro C... " >&6; }
  14750. OLDCPPFLAGS=$CPPFLAGS
  14751. # CPPPFLAG comes from CURL_CPP_P
  14752. CPPFLAGS="$CPPFLAGS $CPPPFLAG"
  14753. if test -z "$SED"; then
  14754. as_fn_error $? "SED not set. Cannot continue without SED being set." "$LINENO" 5
  14755. fi
  14756. if test -z "$GREP"; then
  14757. as_fn_error $? "GREP not set. Cannot continue without GREP being set." "$LINENO" 5
  14758. fi
  14759. tmp_exp=""
  14760. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14761. /* end confdefs.h. */
  14762. #ifdef __GNUC__
  14763. CURL_DEF_TOKEN __GNUC__
  14764. #endif
  14765. _ACEOF
  14766. if ac_fn_c_try_cpp "$LINENO"
  14767. then :
  14768. tmp_exp=`eval "$ac_cpp conftest.$ac_ext" 2>/dev/null | \
  14769. "$GREP" CURL_DEF_TOKEN 2>/dev/null | \
  14770. "$SED" 's/.*CURL_DEF_TOKEN[ ][ ]*//' 2>/dev/null | \
  14771. "$SED" 's/["][ ]*["]//g' 2>/dev/null`
  14772. if test -z "$tmp_exp" || test "$tmp_exp" = "__GNUC__"; then
  14773. tmp_exp=""
  14774. fi
  14775. fi
  14776. rm -f conftest.err conftest.i conftest.$ac_ext
  14777. if test -z "$tmp_exp"; then
  14778. curl_cv_have_def___GNUC__=no
  14779. else
  14780. curl_cv_have_def___GNUC__=yes
  14781. curl_cv_def___GNUC__=$tmp_exp
  14782. fi
  14783. CPPFLAGS=$OLDCPPFLAGS
  14784. OLDCPPFLAGS=$CPPFLAGS
  14785. # CPPPFLAG comes from CURL_CPP_P
  14786. CPPFLAGS="$CPPFLAGS $CPPPFLAG"
  14787. if test -z "$SED"; then
  14788. as_fn_error $? "SED not set. Cannot continue without SED being set." "$LINENO" 5
  14789. fi
  14790. if test -z "$GREP"; then
  14791. as_fn_error $? "GREP not set. Cannot continue without GREP being set." "$LINENO" 5
  14792. fi
  14793. tmp_exp=""
  14794. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14795. /* end confdefs.h. */
  14796. #ifdef _COMPILER_VERSION
  14797. CURL_DEF_TOKEN _COMPILER_VERSION
  14798. #endif
  14799. _ACEOF
  14800. if ac_fn_c_try_cpp "$LINENO"
  14801. then :
  14802. tmp_exp=`eval "$ac_cpp conftest.$ac_ext" 2>/dev/null | \
  14803. "$GREP" CURL_DEF_TOKEN 2>/dev/null | \
  14804. "$SED" 's/.*CURL_DEF_TOKEN[ ][ ]*//' 2>/dev/null | \
  14805. "$SED" 's/["][ ]*["]//g' 2>/dev/null`
  14806. if test -z "$tmp_exp" || test "$tmp_exp" = "_COMPILER_VERSION"; then
  14807. tmp_exp=""
  14808. fi
  14809. fi
  14810. rm -f conftest.err conftest.i conftest.$ac_ext
  14811. if test -z "$tmp_exp"; then
  14812. curl_cv_have_def__COMPILER_VERSION=no
  14813. else
  14814. curl_cv_have_def__COMPILER_VERSION=yes
  14815. curl_cv_def__COMPILER_VERSION=$tmp_exp
  14816. fi
  14817. CPPFLAGS=$OLDCPPFLAGS
  14818. OLDCPPFLAGS=$CPPFLAGS
  14819. # CPPPFLAG comes from CURL_CPP_P
  14820. CPPFLAGS="$CPPFLAGS $CPPPFLAG"
  14821. if test -z "$SED"; then
  14822. as_fn_error $? "SED not set. Cannot continue without SED being set." "$LINENO" 5
  14823. fi
  14824. if test -z "$GREP"; then
  14825. as_fn_error $? "GREP not set. Cannot continue without GREP being set." "$LINENO" 5
  14826. fi
  14827. tmp_exp=""
  14828. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14829. /* end confdefs.h. */
  14830. #ifdef _SGI_COMPILER_VERSION
  14831. CURL_DEF_TOKEN _SGI_COMPILER_VERSION
  14832. #endif
  14833. _ACEOF
  14834. if ac_fn_c_try_cpp "$LINENO"
  14835. then :
  14836. tmp_exp=`eval "$ac_cpp conftest.$ac_ext" 2>/dev/null | \
  14837. "$GREP" CURL_DEF_TOKEN 2>/dev/null | \
  14838. "$SED" 's/.*CURL_DEF_TOKEN[ ][ ]*//' 2>/dev/null | \
  14839. "$SED" 's/["][ ]*["]//g' 2>/dev/null`
  14840. if test -z "$tmp_exp" || test "$tmp_exp" = "_SGI_COMPILER_VERSION"; then
  14841. tmp_exp=""
  14842. fi
  14843. fi
  14844. rm -f conftest.err conftest.i conftest.$ac_ext
  14845. if test -z "$tmp_exp"; then
  14846. curl_cv_have_def__SGI_COMPILER_VERSION=no
  14847. else
  14848. curl_cv_have_def__SGI_COMPILER_VERSION=yes
  14849. curl_cv_def__SGI_COMPILER_VERSION=$tmp_exp
  14850. fi
  14851. CPPFLAGS=$OLDCPPFLAGS
  14852. if test "$curl_cv_have_def___GNUC__" = "no" &&
  14853. (test "$curl_cv_have_def__SGI_COMPILER_VERSION" = "yes" ||
  14854. test "$curl_cv_have_def__COMPILER_VERSION" = "yes"); then
  14855. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  14856. printf "%s\n" "yes" >&6; }
  14857. compiler_id="SGI_MIPSPRO_C"
  14858. flags_dbg_yes="-g"
  14859. flags_opt_all="-O -O0 -O1 -O2 -O3 -Ofast"
  14860. flags_opt_yes="-O2"
  14861. flags_opt_off="-O0"
  14862. else
  14863. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  14864. printf "%s\n" "no" >&6; }
  14865. fi
  14866. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if compiler is SGI MIPS C" >&5
  14867. printf %s "checking if compiler is SGI MIPS C... " >&6; }
  14868. OLDCPPFLAGS=$CPPFLAGS
  14869. # CPPPFLAG comes from CURL_CPP_P
  14870. CPPFLAGS="$CPPFLAGS $CPPPFLAG"
  14871. if test -z "$SED"; then
  14872. as_fn_error $? "SED not set. Cannot continue without SED being set." "$LINENO" 5
  14873. fi
  14874. if test -z "$GREP"; then
  14875. as_fn_error $? "GREP not set. Cannot continue without GREP being set." "$LINENO" 5
  14876. fi
  14877. tmp_exp=""
  14878. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14879. /* end confdefs.h. */
  14880. #ifdef __GNUC__
  14881. CURL_DEF_TOKEN __GNUC__
  14882. #endif
  14883. _ACEOF
  14884. if ac_fn_c_try_cpp "$LINENO"
  14885. then :
  14886. tmp_exp=`eval "$ac_cpp conftest.$ac_ext" 2>/dev/null | \
  14887. "$GREP" CURL_DEF_TOKEN 2>/dev/null | \
  14888. "$SED" 's/.*CURL_DEF_TOKEN[ ][ ]*//' 2>/dev/null | \
  14889. "$SED" 's/["][ ]*["]//g' 2>/dev/null`
  14890. if test -z "$tmp_exp" || test "$tmp_exp" = "__GNUC__"; then
  14891. tmp_exp=""
  14892. fi
  14893. fi
  14894. rm -f conftest.err conftest.i conftest.$ac_ext
  14895. if test -z "$tmp_exp"; then
  14896. curl_cv_have_def___GNUC__=no
  14897. else
  14898. curl_cv_have_def___GNUC__=yes
  14899. curl_cv_def___GNUC__=$tmp_exp
  14900. fi
  14901. CPPFLAGS=$OLDCPPFLAGS
  14902. OLDCPPFLAGS=$CPPFLAGS
  14903. # CPPPFLAG comes from CURL_CPP_P
  14904. CPPFLAGS="$CPPFLAGS $CPPPFLAG"
  14905. if test -z "$SED"; then
  14906. as_fn_error $? "SED not set. Cannot continue without SED being set." "$LINENO" 5
  14907. fi
  14908. if test -z "$GREP"; then
  14909. as_fn_error $? "GREP not set. Cannot continue without GREP being set." "$LINENO" 5
  14910. fi
  14911. tmp_exp=""
  14912. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14913. /* end confdefs.h. */
  14914. #ifdef __sgi
  14915. CURL_DEF_TOKEN __sgi
  14916. #endif
  14917. _ACEOF
  14918. if ac_fn_c_try_cpp "$LINENO"
  14919. then :
  14920. tmp_exp=`eval "$ac_cpp conftest.$ac_ext" 2>/dev/null | \
  14921. "$GREP" CURL_DEF_TOKEN 2>/dev/null | \
  14922. "$SED" 's/.*CURL_DEF_TOKEN[ ][ ]*//' 2>/dev/null | \
  14923. "$SED" 's/["][ ]*["]//g' 2>/dev/null`
  14924. if test -z "$tmp_exp" || test "$tmp_exp" = "__sgi"; then
  14925. tmp_exp=""
  14926. fi
  14927. fi
  14928. rm -f conftest.err conftest.i conftest.$ac_ext
  14929. if test -z "$tmp_exp"; then
  14930. curl_cv_have_def___sgi=no
  14931. else
  14932. curl_cv_have_def___sgi=yes
  14933. curl_cv_def___sgi=$tmp_exp
  14934. fi
  14935. CPPFLAGS=$OLDCPPFLAGS
  14936. if test "$curl_cv_have_def___GNUC__" = "no" &&
  14937. test "$curl_cv_have_def___sgi" = "yes" &&
  14938. test "$compiler_id" = "unknown"; then
  14939. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  14940. printf "%s\n" "yes" >&6; }
  14941. compiler_id="SGI_MIPS_C"
  14942. flags_dbg_yes="-g"
  14943. flags_opt_all="-O -O0 -O1 -O2 -O3 -Ofast"
  14944. flags_opt_yes="-O2"
  14945. flags_opt_off="-O0"
  14946. else
  14947. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  14948. printf "%s\n" "no" >&6; }
  14949. fi
  14950. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if compiler is SunPro C" >&5
  14951. printf %s "checking if compiler is SunPro C... " >&6; }
  14952. OLDCPPFLAGS=$CPPFLAGS
  14953. # CPPPFLAG comes from CURL_CPP_P
  14954. CPPFLAGS="$CPPFLAGS $CPPPFLAG"
  14955. if test -z "$SED"; then
  14956. as_fn_error $? "SED not set. Cannot continue without SED being set." "$LINENO" 5
  14957. fi
  14958. if test -z "$GREP"; then
  14959. as_fn_error $? "GREP not set. Cannot continue without GREP being set." "$LINENO" 5
  14960. fi
  14961. tmp_exp=""
  14962. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14963. /* end confdefs.h. */
  14964. #ifdef __SUNPRO_C
  14965. CURL_DEF_TOKEN __SUNPRO_C
  14966. #endif
  14967. _ACEOF
  14968. if ac_fn_c_try_cpp "$LINENO"
  14969. then :
  14970. tmp_exp=`eval "$ac_cpp conftest.$ac_ext" 2>/dev/null | \
  14971. "$GREP" CURL_DEF_TOKEN 2>/dev/null | \
  14972. "$SED" 's/.*CURL_DEF_TOKEN[ ][ ]*//' 2>/dev/null | \
  14973. "$SED" 's/["][ ]*["]//g' 2>/dev/null`
  14974. if test -z "$tmp_exp" || test "$tmp_exp" = "__SUNPRO_C"; then
  14975. tmp_exp=""
  14976. fi
  14977. fi
  14978. rm -f conftest.err conftest.i conftest.$ac_ext
  14979. if test -z "$tmp_exp"; then
  14980. curl_cv_have_def___SUNPRO_C=no
  14981. else
  14982. curl_cv_have_def___SUNPRO_C=yes
  14983. curl_cv_def___SUNPRO_C=$tmp_exp
  14984. fi
  14985. CPPFLAGS=$OLDCPPFLAGS
  14986. if test "$curl_cv_have_def___SUNPRO_C" = "yes"; then
  14987. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  14988. printf "%s\n" "yes" >&6; }
  14989. compiler_id="SUNPRO_C"
  14990. flags_dbg_yes="-g"
  14991. flags_opt_all="-O -xO -xO1 -xO2 -xO3 -xO4 -xO5"
  14992. flags_opt_yes="-xO2"
  14993. flags_opt_off=""
  14994. else
  14995. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  14996. printf "%s\n" "no" >&6; }
  14997. fi
  14998. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if compiler is Tiny C" >&5
  14999. printf %s "checking if compiler is Tiny C... " >&6; }
  15000. OLDCPPFLAGS=$CPPFLAGS
  15001. # CPPPFLAG comes from CURL_CPP_P
  15002. CPPFLAGS="$CPPFLAGS $CPPPFLAG"
  15003. if test -z "$SED"; then
  15004. as_fn_error $? "SED not set. Cannot continue without SED being set." "$LINENO" 5
  15005. fi
  15006. if test -z "$GREP"; then
  15007. as_fn_error $? "GREP not set. Cannot continue without GREP being set." "$LINENO" 5
  15008. fi
  15009. tmp_exp=""
  15010. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15011. /* end confdefs.h. */
  15012. #ifdef __TINYC__
  15013. CURL_DEF_TOKEN __TINYC__
  15014. #endif
  15015. _ACEOF
  15016. if ac_fn_c_try_cpp "$LINENO"
  15017. then :
  15018. tmp_exp=`eval "$ac_cpp conftest.$ac_ext" 2>/dev/null | \
  15019. "$GREP" CURL_DEF_TOKEN 2>/dev/null | \
  15020. "$SED" 's/.*CURL_DEF_TOKEN[ ][ ]*//' 2>/dev/null | \
  15021. "$SED" 's/["][ ]*["]//g' 2>/dev/null`
  15022. if test -z "$tmp_exp" || test "$tmp_exp" = "__TINYC__"; then
  15023. tmp_exp=""
  15024. fi
  15025. fi
  15026. rm -f conftest.err conftest.i conftest.$ac_ext
  15027. if test -z "$tmp_exp"; then
  15028. curl_cv_have_def___TINYC__=no
  15029. else
  15030. curl_cv_have_def___TINYC__=yes
  15031. curl_cv_def___TINYC__=$tmp_exp
  15032. fi
  15033. CPPFLAGS=$OLDCPPFLAGS
  15034. if test "$curl_cv_have_def___TINYC__" = "yes"; then
  15035. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  15036. printf "%s\n" "yes" >&6; }
  15037. compiler_id="TINY_C"
  15038. flags_dbg_yes="-g"
  15039. flags_opt_all=""
  15040. flags_opt_yes=""
  15041. flags_opt_off=""
  15042. else
  15043. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  15044. printf "%s\n" "no" >&6; }
  15045. fi
  15046. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if compiler is Watcom C" >&5
  15047. printf %s "checking if compiler is Watcom C... " >&6; }
  15048. OLDCPPFLAGS=$CPPFLAGS
  15049. # CPPPFLAG comes from CURL_CPP_P
  15050. CPPFLAGS="$CPPFLAGS $CPPPFLAG"
  15051. if test -z "$SED"; then
  15052. as_fn_error $? "SED not set. Cannot continue without SED being set." "$LINENO" 5
  15053. fi
  15054. if test -z "$GREP"; then
  15055. as_fn_error $? "GREP not set. Cannot continue without GREP being set." "$LINENO" 5
  15056. fi
  15057. tmp_exp=""
  15058. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15059. /* end confdefs.h. */
  15060. #ifdef __WATCOMC__
  15061. CURL_DEF_TOKEN __WATCOMC__
  15062. #endif
  15063. _ACEOF
  15064. if ac_fn_c_try_cpp "$LINENO"
  15065. then :
  15066. tmp_exp=`eval "$ac_cpp conftest.$ac_ext" 2>/dev/null | \
  15067. "$GREP" CURL_DEF_TOKEN 2>/dev/null | \
  15068. "$SED" 's/.*CURL_DEF_TOKEN[ ][ ]*//' 2>/dev/null | \
  15069. "$SED" 's/["][ ]*["]//g' 2>/dev/null`
  15070. if test -z "$tmp_exp" || test "$tmp_exp" = "__WATCOMC__"; then
  15071. tmp_exp=""
  15072. fi
  15073. fi
  15074. rm -f conftest.err conftest.i conftest.$ac_ext
  15075. if test -z "$tmp_exp"; then
  15076. curl_cv_have_def___WATCOMC__=no
  15077. else
  15078. curl_cv_have_def___WATCOMC__=yes
  15079. curl_cv_def___WATCOMC__=$tmp_exp
  15080. fi
  15081. CPPFLAGS=$OLDCPPFLAGS
  15082. if test "$curl_cv_have_def___WATCOMC__" = "yes"; then
  15083. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  15084. printf "%s\n" "yes" >&6; }
  15085. OLDCPPFLAGS=$CPPFLAGS
  15086. # CPPPFLAG comes from CURL_CPP_P
  15087. CPPFLAGS="$CPPFLAGS $CPPPFLAG"
  15088. if test -z "$SED"; then
  15089. as_fn_error $? "SED not set. Cannot continue without SED being set." "$LINENO" 5
  15090. fi
  15091. if test -z "$GREP"; then
  15092. as_fn_error $? "GREP not set. Cannot continue without GREP being set." "$LINENO" 5
  15093. fi
  15094. tmp_exp=""
  15095. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15096. /* end confdefs.h. */
  15097. #ifdef __UNIX__
  15098. CURL_DEF_TOKEN __UNIX__
  15099. #endif
  15100. _ACEOF
  15101. if ac_fn_c_try_cpp "$LINENO"
  15102. then :
  15103. tmp_exp=`eval "$ac_cpp conftest.$ac_ext" 2>/dev/null | \
  15104. "$GREP" CURL_DEF_TOKEN 2>/dev/null | \
  15105. "$SED" 's/.*CURL_DEF_TOKEN[ ][ ]*//' 2>/dev/null | \
  15106. "$SED" 's/["][ ]*["]//g' 2>/dev/null`
  15107. if test -z "$tmp_exp" || test "$tmp_exp" = "__UNIX__"; then
  15108. tmp_exp=""
  15109. fi
  15110. fi
  15111. rm -f conftest.err conftest.i conftest.$ac_ext
  15112. if test -z "$tmp_exp"; then
  15113. curl_cv_have_def___UNIX__=no
  15114. else
  15115. curl_cv_have_def___UNIX__=yes
  15116. curl_cv_def___UNIX__=$tmp_exp
  15117. fi
  15118. CPPFLAGS=$OLDCPPFLAGS
  15119. if test "$curl_cv_have_def___UNIX__" = "yes"; then
  15120. compiler_id="WATCOM_UNIX_C"
  15121. flags_dbg_yes="-g2"
  15122. flags_opt_all="-O0 -O1 -O2 -O3"
  15123. flags_opt_yes="-O2"
  15124. flags_opt_off="-O0"
  15125. else
  15126. compiler_id="WATCOM_WINDOWS_C"
  15127. flags_dbg_yes=""
  15128. flags_opt_all=""
  15129. flags_opt_yes=""
  15130. flags_opt_off=""
  15131. fi
  15132. else
  15133. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  15134. printf "%s\n" "no" >&6; }
  15135. fi
  15136. #
  15137. if test "$compiler_id" = "unknown"; then
  15138. cat <<_EOF 1>&2
  15139. ***
  15140. *** Warning: This configure script does not have information about the
  15141. *** compiler you are using, relative to the flags required to enable or
  15142. *** disable generation of debug info, optimization options or warnings.
  15143. ***
  15144. *** Whatever settings are present in CFLAGS will be used for this run.
  15145. ***
  15146. *** If you wish to help the curl project to better support your compiler
  15147. *** you can report this and the required info on the libcurl development
  15148. *** mailing list: https://lists.haxx.selistinfo/curl-library/
  15149. ***
  15150. _EOF
  15151. fi
  15152. squeeze() {
  15153. _sqz_result=""
  15154. eval _sqz_input=\$$1
  15155. for _sqz_token in $_sqz_input; do
  15156. if test -z "$_sqz_result"; then
  15157. _sqz_result="$_sqz_token"
  15158. else
  15159. _sqz_result="$_sqz_result $_sqz_token"
  15160. fi
  15161. done
  15162. eval $1=\$_sqz_result
  15163. return 0
  15164. }
  15165. #
  15166. if test "$compiler_id" != "unknown"; then
  15167. #
  15168. tmp_save_CPPFLAGS="$CPPFLAGS"
  15169. tmp_save_CFLAGS="$CFLAGS"
  15170. tmp_CPPFLAGS=""
  15171. tmp_CFLAGS=""
  15172. #
  15173. case "$compiler_id" in
  15174. #
  15175. CLANG)
  15176. #
  15177. tmp_CFLAGS="$tmp_CFLAGS -Qunused-arguments"
  15178. ;;
  15179. #
  15180. DEC_C)
  15181. #
  15182. tmp_CFLAGS="$tmp_CFLAGS -std1"
  15183. tmp_CFLAGS="$tmp_CFLAGS -noansi_alias"
  15184. tmp_CFLAGS="$tmp_CFLAGS -warnprotos"
  15185. tmp_CFLAGS="$tmp_CFLAGS -msg_fatal toofewargs,toomanyargs"
  15186. ;;
  15187. #
  15188. GNU_C)
  15189. #
  15190. if test "$compiler_num" -ge "295"; then
  15191. tmp_CFLAGS="$tmp_CFLAGS -Werror-implicit-function-declaration"
  15192. fi
  15193. ;;
  15194. #
  15195. HP_UX_C)
  15196. #
  15197. tmp_CFLAGS="$tmp_CFLAGS -z"
  15198. tmp_CFLAGS="$tmp_CFLAGS +W 4227,4255"
  15199. ;;
  15200. #
  15201. IBM_C)
  15202. #
  15203. tmp_CPPFLAGS="$tmp_CPPFLAGS -qthreaded"
  15204. tmp_CPPFLAGS="$tmp_CPPFLAGS -qnoansialias"
  15205. tmp_CPPFLAGS="$tmp_CPPFLAGS -qhalt=e"
  15206. ;;
  15207. #
  15208. INTEL_UNIX_C)
  15209. #
  15210. tmp_CFLAGS="$tmp_CFLAGS -std=gnu89"
  15211. tmp_CPPFLAGS="$tmp_CPPFLAGS -we140,147,165,266"
  15212. tmp_CPPFLAGS="$tmp_CPPFLAGS -wd279,981,1469"
  15213. ;;
  15214. #
  15215. INTEL_WINDOWS_C)
  15216. #
  15217. tmp_CFLAGS="$tmp_CFLAGS"
  15218. ;;
  15219. #
  15220. LCC)
  15221. #
  15222. tmp_CFLAGS="$tmp_CFLAGS -n"
  15223. ;;
  15224. #
  15225. SGI_MIPS_C)
  15226. #
  15227. tmp_CFLAGS="$tmp_CFLAGS"
  15228. ;;
  15229. #
  15230. SGI_MIPSPRO_C)
  15231. #
  15232. tmp_CFLAGS="$tmp_CFLAGS"
  15233. ;;
  15234. #
  15235. SUNPRO_C)
  15236. #
  15237. tmp_CFLAGS="$tmp_CFLAGS"
  15238. ;;
  15239. #
  15240. TINY_C)
  15241. #
  15242. tmp_CFLAGS="$tmp_CFLAGS"
  15243. ;;
  15244. #
  15245. WATCOM_UNIX_C)
  15246. #
  15247. tmp_CFLAGS="$tmp_CFLAGS"
  15248. ;;
  15249. #
  15250. WATCOM_WINDOWS_C)
  15251. #
  15252. tmp_CFLAGS="$tmp_CFLAGS"
  15253. ;;
  15254. #
  15255. esac
  15256. #
  15257. squeeze tmp_CPPFLAGS
  15258. squeeze tmp_CFLAGS
  15259. #
  15260. if test ! -z "$tmp_CFLAGS" || test ! -z "$tmp_CPPFLAGS"; then
  15261. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if compiler accepts some basic options" >&5
  15262. printf %s "checking if compiler accepts some basic options... " >&6; }
  15263. CPPFLAGS="$tmp_save_CPPFLAGS $tmp_CPPFLAGS"
  15264. CFLAGS="$tmp_save_CFLAGS $tmp_CFLAGS"
  15265. squeeze CPPFLAGS
  15266. squeeze CFLAGS
  15267. tmp_compiler_works="unknown"
  15268. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15269. /* end confdefs.h. */
  15270. int main (void)
  15271. {
  15272. int i = 1;
  15273. return i;
  15274. ;
  15275. return 0;
  15276. }
  15277. _ACEOF
  15278. if ac_fn_c_try_compile "$LINENO"
  15279. then :
  15280. tmp_compiler_works="yes"
  15281. else $as_nop
  15282. tmp_compiler_works="no"
  15283. echo " " >&6
  15284. sed 's/^/cc-fail: /' conftest.err >&6
  15285. echo " " >&6
  15286. fi
  15287. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  15288. if test "$tmp_compiler_works" = "yes"; then
  15289. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15290. /* end confdefs.h. */
  15291. int main (void)
  15292. {
  15293. int i = 1;
  15294. return i;
  15295. ;
  15296. return 0;
  15297. }
  15298. _ACEOF
  15299. if ac_fn_c_try_link "$LINENO"
  15300. then :
  15301. tmp_compiler_works="yes"
  15302. else $as_nop
  15303. tmp_compiler_works="no"
  15304. echo " " >&6
  15305. sed 's/^/link-fail: /' conftest.err >&6
  15306. echo " " >&6
  15307. fi
  15308. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  15309. conftest$ac_exeext conftest.$ac_ext
  15310. fi
  15311. if test "x$cross_compiling" != "xyes" &&
  15312. test "$tmp_compiler_works" = "yes"; then
  15313. old=$LD_LIBRARY_PATH
  15314. LD_LIBRARY_PATH=$CURL_LIBRARY_PATH:$old
  15315. export LD_LIBRARY_PATH
  15316. if test "$cross_compiling" = yes
  15317. then :
  15318. { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  15319. printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
  15320. as_fn_error $? "cannot run test program while cross compiling
  15321. See \`config.log' for more details" "$LINENO" 5; }
  15322. else $as_nop
  15323. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15324. /* end confdefs.h. */
  15325. # ifdef __STDC__
  15326. # include <stdlib.h>
  15327. # endif
  15328. int main (void)
  15329. {
  15330. int i = 0;
  15331. exit(i);
  15332. ;
  15333. return 0;
  15334. }
  15335. _ACEOF
  15336. if ac_fn_c_try_run "$LINENO"
  15337. then :
  15338. tmp_compiler_works="yes"
  15339. else $as_nop
  15340. tmp_compiler_works="no"
  15341. echo " " >&6
  15342. echo "run-fail: test program exited with status $ac_status" >&6
  15343. echo " " >&6
  15344. fi
  15345. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  15346. conftest.$ac_objext conftest.beam conftest.$ac_ext
  15347. fi
  15348. LD_LIBRARY_PATH=$old # restore
  15349. fi
  15350. if test "$tmp_compiler_works" = "yes"; then
  15351. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  15352. printf "%s\n" "yes" >&6; }
  15353. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: compiler options added: $tmp_CFLAGS $tmp_CPPFLAGS" >&5
  15354. printf "%s\n" "$as_me: compiler options added: $tmp_CFLAGS $tmp_CPPFLAGS" >&6;}
  15355. else
  15356. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  15357. printf "%s\n" "no" >&6; }
  15358. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: compiler options rejected: $tmp_CFLAGS $tmp_CPPFLAGS" >&5
  15359. printf "%s\n" "$as_me: WARNING: compiler options rejected: $tmp_CFLAGS $tmp_CPPFLAGS" >&2;}
  15360. CPPFLAGS="$tmp_save_CPPFLAGS"
  15361. CFLAGS="$tmp_save_CFLAGS"
  15362. fi
  15363. fi
  15364. #
  15365. fi
  15366. #
  15367. if test "$compiler_id" != "unknown"; then
  15368. #
  15369. tmp_save_CFLAGS="$CFLAGS"
  15370. tmp_save_CPPFLAGS="$CPPFLAGS"
  15371. #
  15372. tmp_options=""
  15373. tmp_CFLAGS="$CFLAGS"
  15374. tmp_CPPFLAGS="$CPPFLAGS"
  15375. #
  15376. if test "$want_debug" = "yes"; then
  15377. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if compiler accepts debug enabling options" >&5
  15378. printf %s "checking if compiler accepts debug enabling options... " >&6; }
  15379. tmp_options="$flags_dbg_yes"
  15380. fi
  15381. #
  15382. if test "$flags_prefer_cppflags" = "yes"; then
  15383. CPPFLAGS="$tmp_CPPFLAGS $tmp_options"
  15384. CFLAGS="$tmp_CFLAGS"
  15385. else
  15386. CPPFLAGS="$tmp_CPPFLAGS"
  15387. CFLAGS="$tmp_CFLAGS $tmp_options"
  15388. fi
  15389. squeeze CPPFLAGS
  15390. squeeze CFLAGS
  15391. fi
  15392. #
  15393. if test "$compiler_id" != "unknown"; then
  15394. #
  15395. tmp_save_CFLAGS="$CFLAGS"
  15396. tmp_save_CPPFLAGS="$CPPFLAGS"
  15397. #
  15398. tmp_options=""
  15399. tmp_CFLAGS="$CFLAGS"
  15400. tmp_CPPFLAGS="$CPPFLAGS"
  15401. honor_optimize_option="yes"
  15402. #
  15403. #
  15404. if test "$want_optimize" = "assume_no" ||
  15405. test "$want_optimize" = "assume_yes"; then
  15406. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if compiler optimizer assumed setting might be used" >&5
  15407. printf %s "checking if compiler optimizer assumed setting might be used... " >&6; }
  15408. ac_var_match_word="no"
  15409. for word1 in $tmp_CFLAGS; do
  15410. for word2 in $flags_opt_all; do
  15411. if test "$word1" = "$word2"; then
  15412. ac_var_match_word="yes"
  15413. fi
  15414. done
  15415. done
  15416. if test "$ac_var_match_word" = "yes"; then
  15417. honor_optimize_option="no"
  15418. fi
  15419. ac_var_match_word="no"
  15420. for word1 in $tmp_CPPFLAGS; do
  15421. for word2 in $flags_opt_all; do
  15422. if test "$word1" = "$word2"; then
  15423. ac_var_match_word="yes"
  15424. fi
  15425. done
  15426. done
  15427. if test "$ac_var_match_word" = "yes"; then
  15428. honor_optimize_option="no"
  15429. fi
  15430. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $honor_optimize_option" >&5
  15431. printf "%s\n" "$honor_optimize_option" >&6; }
  15432. if test "$honor_optimize_option" = "yes"; then
  15433. if test "$want_optimize" = "assume_yes"; then
  15434. want_optimize="yes"
  15435. fi
  15436. if test "$want_optimize" = "assume_no"; then
  15437. want_optimize="no"
  15438. fi
  15439. fi
  15440. fi
  15441. #
  15442. if test "$honor_optimize_option" = "yes"; then
  15443. ac_var_stripped=""
  15444. for word1 in $tmp_CFLAGS; do
  15445. ac_var_strip_word="no"
  15446. for word2 in $flags_opt_all; do
  15447. if test "$word1" = "$word2"; then
  15448. ac_var_strip_word="yes"
  15449. fi
  15450. done
  15451. if test "$ac_var_strip_word" = "no"; then
  15452. ac_var_stripped="$ac_var_stripped $word1"
  15453. fi
  15454. done
  15455. tmp_CFLAGS="$ac_var_stripped"
  15456. squeeze tmp_CFLAGS
  15457. ac_var_stripped=""
  15458. for word1 in $tmp_CPPFLAGS; do
  15459. ac_var_strip_word="no"
  15460. for word2 in $flags_opt_all; do
  15461. if test "$word1" = "$word2"; then
  15462. ac_var_strip_word="yes"
  15463. fi
  15464. done
  15465. if test "$ac_var_strip_word" = "no"; then
  15466. ac_var_stripped="$ac_var_stripped $word1"
  15467. fi
  15468. done
  15469. tmp_CPPFLAGS="$ac_var_stripped"
  15470. squeeze tmp_CPPFLAGS
  15471. if test "$want_optimize" = "yes"; then
  15472. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if compiler accepts optimizer enabling options" >&5
  15473. printf %s "checking if compiler accepts optimizer enabling options... " >&6; }
  15474. tmp_options="$flags_opt_yes"
  15475. fi
  15476. if test "$want_optimize" = "no"; then
  15477. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if compiler accepts optimizer disabling options" >&5
  15478. printf %s "checking if compiler accepts optimizer disabling options... " >&6; }
  15479. tmp_options="$flags_opt_off"
  15480. fi
  15481. if test "$flags_prefer_cppflags" = "yes"; then
  15482. CPPFLAGS="$tmp_CPPFLAGS $tmp_options"
  15483. CFLAGS="$tmp_CFLAGS"
  15484. else
  15485. CPPFLAGS="$tmp_CPPFLAGS"
  15486. CFLAGS="$tmp_CFLAGS $tmp_options"
  15487. fi
  15488. squeeze CPPFLAGS
  15489. squeeze CFLAGS
  15490. tmp_compiler_works="unknown"
  15491. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15492. /* end confdefs.h. */
  15493. int main (void)
  15494. {
  15495. int i = 1;
  15496. return i;
  15497. ;
  15498. return 0;
  15499. }
  15500. _ACEOF
  15501. if ac_fn_c_try_compile "$LINENO"
  15502. then :
  15503. tmp_compiler_works="yes"
  15504. else $as_nop
  15505. tmp_compiler_works="no"
  15506. echo " " >&6
  15507. sed 's/^/cc-fail: /' conftest.err >&6
  15508. echo " " >&6
  15509. fi
  15510. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  15511. if test "$tmp_compiler_works" = "yes"; then
  15512. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15513. /* end confdefs.h. */
  15514. int main (void)
  15515. {
  15516. int i = 1;
  15517. return i;
  15518. ;
  15519. return 0;
  15520. }
  15521. _ACEOF
  15522. if ac_fn_c_try_link "$LINENO"
  15523. then :
  15524. tmp_compiler_works="yes"
  15525. else $as_nop
  15526. tmp_compiler_works="no"
  15527. echo " " >&6
  15528. sed 's/^/link-fail: /' conftest.err >&6
  15529. echo " " >&6
  15530. fi
  15531. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  15532. conftest$ac_exeext conftest.$ac_ext
  15533. fi
  15534. if test "x$cross_compiling" != "xyes" &&
  15535. test "$tmp_compiler_works" = "yes"; then
  15536. old=$LD_LIBRARY_PATH
  15537. LD_LIBRARY_PATH=$CURL_LIBRARY_PATH:$old
  15538. export LD_LIBRARY_PATH
  15539. if test "$cross_compiling" = yes
  15540. then :
  15541. { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  15542. printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
  15543. as_fn_error $? "cannot run test program while cross compiling
  15544. See \`config.log' for more details" "$LINENO" 5; }
  15545. else $as_nop
  15546. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15547. /* end confdefs.h. */
  15548. # ifdef __STDC__
  15549. # include <stdlib.h>
  15550. # endif
  15551. int main (void)
  15552. {
  15553. int i = 0;
  15554. exit(i);
  15555. ;
  15556. return 0;
  15557. }
  15558. _ACEOF
  15559. if ac_fn_c_try_run "$LINENO"
  15560. then :
  15561. tmp_compiler_works="yes"
  15562. else $as_nop
  15563. tmp_compiler_works="no"
  15564. echo " " >&6
  15565. echo "run-fail: test program exited with status $ac_status" >&6
  15566. echo " " >&6
  15567. fi
  15568. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  15569. conftest.$ac_objext conftest.beam conftest.$ac_ext
  15570. fi
  15571. LD_LIBRARY_PATH=$old # restore
  15572. fi
  15573. if test "$tmp_compiler_works" = "yes"; then
  15574. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  15575. printf "%s\n" "yes" >&6; }
  15576. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: compiler options added: $tmp_options" >&5
  15577. printf "%s\n" "$as_me: compiler options added: $tmp_options" >&6;}
  15578. else
  15579. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  15580. printf "%s\n" "no" >&6; }
  15581. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: compiler options rejected: $tmp_options" >&5
  15582. printf "%s\n" "$as_me: WARNING: compiler options rejected: $tmp_options" >&2;}
  15583. CPPFLAGS="$tmp_save_CPPFLAGS"
  15584. CFLAGS="$tmp_save_CFLAGS"
  15585. fi
  15586. fi
  15587. #
  15588. fi
  15589. #
  15590. if test "$compiler_id" != "unknown"; then
  15591. #
  15592. tmp_save_CPPFLAGS="$CPPFLAGS"
  15593. tmp_save_CFLAGS="$CFLAGS"
  15594. tmp_CPPFLAGS=""
  15595. tmp_CFLAGS=""
  15596. #
  15597. case "$compiler_id" in
  15598. #
  15599. CLANG)
  15600. #
  15601. if test "$want_warnings" = "yes"; then
  15602. tmp_CFLAGS="$tmp_CFLAGS -pedantic"
  15603. ac_var_added_warnings=""
  15604. for warning in all extra; do
  15605. ac_var_match_word="no"
  15606. for word1 in $CFLAGS; do
  15607. for word2 in -Wno-$warning -W$warning; do
  15608. if test "$word1" = "$word2"; then
  15609. ac_var_match_word="yes"
  15610. fi
  15611. done
  15612. done
  15613. if test "$ac_var_match_word" = "no"; then
  15614. ac_var_added_warnings="$ac_var_added_warnings -W$warning"
  15615. fi
  15616. done
  15617. tmp_CFLAGS="$tmp_CFLAGS $ac_var_added_warnings"
  15618. squeeze tmp_CFLAGS
  15619. ac_var_added_warnings=""
  15620. for warning in pointer-arith write-strings; do
  15621. ac_var_match_word="no"
  15622. for word1 in $CFLAGS; do
  15623. for word2 in -Wno-$warning -W$warning; do
  15624. if test "$word1" = "$word2"; then
  15625. ac_var_match_word="yes"
  15626. fi
  15627. done
  15628. done
  15629. if test "$ac_var_match_word" = "no"; then
  15630. ac_var_added_warnings="$ac_var_added_warnings -W$warning"
  15631. fi
  15632. done
  15633. tmp_CFLAGS="$tmp_CFLAGS $ac_var_added_warnings"
  15634. squeeze tmp_CFLAGS
  15635. ac_var_added_warnings=""
  15636. for warning in shadow; do
  15637. ac_var_match_word="no"
  15638. for word1 in $CFLAGS; do
  15639. for word2 in -Wno-$warning -W$warning; do
  15640. if test "$word1" = "$word2"; then
  15641. ac_var_match_word="yes"
  15642. fi
  15643. done
  15644. done
  15645. if test "$ac_var_match_word" = "no"; then
  15646. ac_var_added_warnings="$ac_var_added_warnings -W$warning"
  15647. fi
  15648. done
  15649. tmp_CFLAGS="$tmp_CFLAGS $ac_var_added_warnings"
  15650. squeeze tmp_CFLAGS
  15651. ac_var_added_warnings=""
  15652. for warning in inline nested-externs; do
  15653. ac_var_match_word="no"
  15654. for word1 in $CFLAGS; do
  15655. for word2 in -Wno-$warning -W$warning; do
  15656. if test "$word1" = "$word2"; then
  15657. ac_var_match_word="yes"
  15658. fi
  15659. done
  15660. done
  15661. if test "$ac_var_match_word" = "no"; then
  15662. ac_var_added_warnings="$ac_var_added_warnings -W$warning"
  15663. fi
  15664. done
  15665. tmp_CFLAGS="$tmp_CFLAGS $ac_var_added_warnings"
  15666. squeeze tmp_CFLAGS
  15667. ac_var_added_warnings=""
  15668. for warning in missing-declarations; do
  15669. ac_var_match_word="no"
  15670. for word1 in $CFLAGS; do
  15671. for word2 in -Wno-$warning -W$warning; do
  15672. if test "$word1" = "$word2"; then
  15673. ac_var_match_word="yes"
  15674. fi
  15675. done
  15676. done
  15677. if test "$ac_var_match_word" = "no"; then
  15678. ac_var_added_warnings="$ac_var_added_warnings -W$warning"
  15679. fi
  15680. done
  15681. tmp_CFLAGS="$tmp_CFLAGS $ac_var_added_warnings"
  15682. squeeze tmp_CFLAGS
  15683. ac_var_added_warnings=""
  15684. for warning in missing-prototypes; do
  15685. ac_var_match_word="no"
  15686. for word1 in $CFLAGS; do
  15687. for word2 in -Wno-$warning -W$warning; do
  15688. if test "$word1" = "$word2"; then
  15689. ac_var_match_word="yes"
  15690. fi
  15691. done
  15692. done
  15693. if test "$ac_var_match_word" = "no"; then
  15694. ac_var_added_warnings="$ac_var_added_warnings -W$warning"
  15695. fi
  15696. done
  15697. tmp_CFLAGS="$tmp_CFLAGS $ac_var_added_warnings"
  15698. squeeze tmp_CFLAGS
  15699. tmp_CFLAGS="$tmp_CFLAGS -Wno-long-long"
  15700. ac_var_added_warnings=""
  15701. for warning in float-equal; do
  15702. ac_var_match_word="no"
  15703. for word1 in $CFLAGS; do
  15704. for word2 in -Wno-$warning -W$warning; do
  15705. if test "$word1" = "$word2"; then
  15706. ac_var_match_word="yes"
  15707. fi
  15708. done
  15709. done
  15710. if test "$ac_var_match_word" = "no"; then
  15711. ac_var_added_warnings="$ac_var_added_warnings -W$warning"
  15712. fi
  15713. done
  15714. tmp_CFLAGS="$tmp_CFLAGS $ac_var_added_warnings"
  15715. squeeze tmp_CFLAGS
  15716. ac_var_added_warnings=""
  15717. for warning in no-multichar sign-compare; do
  15718. ac_var_match_word="no"
  15719. for word1 in $CFLAGS; do
  15720. for word2 in -Wno-$warning -W$warning; do
  15721. if test "$word1" = "$word2"; then
  15722. ac_var_match_word="yes"
  15723. fi
  15724. done
  15725. done
  15726. if test "$ac_var_match_word" = "no"; then
  15727. ac_var_added_warnings="$ac_var_added_warnings -W$warning"
  15728. fi
  15729. done
  15730. tmp_CFLAGS="$tmp_CFLAGS $ac_var_added_warnings"
  15731. squeeze tmp_CFLAGS
  15732. ac_var_added_warnings=""
  15733. for warning in undef; do
  15734. ac_var_match_word="no"
  15735. for word1 in $CFLAGS; do
  15736. for word2 in -Wno-$warning -W$warning; do
  15737. if test "$word1" = "$word2"; then
  15738. ac_var_match_word="yes"
  15739. fi
  15740. done
  15741. done
  15742. if test "$ac_var_match_word" = "no"; then
  15743. ac_var_added_warnings="$ac_var_added_warnings -W$warning"
  15744. fi
  15745. done
  15746. tmp_CFLAGS="$tmp_CFLAGS $ac_var_added_warnings"
  15747. squeeze tmp_CFLAGS
  15748. tmp_CFLAGS="$tmp_CFLAGS -Wno-format-nonliteral"
  15749. ac_var_added_warnings=""
  15750. for warning in endif-labels strict-prototypes; do
  15751. ac_var_match_word="no"
  15752. for word1 in $CFLAGS; do
  15753. for word2 in -Wno-$warning -W$warning; do
  15754. if test "$word1" = "$word2"; then
  15755. ac_var_match_word="yes"
  15756. fi
  15757. done
  15758. done
  15759. if test "$ac_var_match_word" = "no"; then
  15760. ac_var_added_warnings="$ac_var_added_warnings -W$warning"
  15761. fi
  15762. done
  15763. tmp_CFLAGS="$tmp_CFLAGS $ac_var_added_warnings"
  15764. squeeze tmp_CFLAGS
  15765. ac_var_added_warnings=""
  15766. for warning in declaration-after-statement; do
  15767. ac_var_match_word="no"
  15768. for word1 in $CFLAGS; do
  15769. for word2 in -Wno-$warning -W$warning; do
  15770. if test "$word1" = "$word2"; then
  15771. ac_var_match_word="yes"
  15772. fi
  15773. done
  15774. done
  15775. if test "$ac_var_match_word" = "no"; then
  15776. ac_var_added_warnings="$ac_var_added_warnings -W$warning"
  15777. fi
  15778. done
  15779. tmp_CFLAGS="$tmp_CFLAGS $ac_var_added_warnings"
  15780. squeeze tmp_CFLAGS
  15781. ac_var_added_warnings=""
  15782. for warning in cast-align; do
  15783. ac_var_match_word="no"
  15784. for word1 in $CFLAGS; do
  15785. for word2 in -Wno-$warning -W$warning; do
  15786. if test "$word1" = "$word2"; then
  15787. ac_var_match_word="yes"
  15788. fi
  15789. done
  15790. done
  15791. if test "$ac_var_match_word" = "no"; then
  15792. ac_var_added_warnings="$ac_var_added_warnings -W$warning"
  15793. fi
  15794. done
  15795. tmp_CFLAGS="$tmp_CFLAGS $ac_var_added_warnings"
  15796. squeeze tmp_CFLAGS
  15797. tmp_CFLAGS="$tmp_CFLAGS -Wno-system-headers"
  15798. ac_var_added_warnings=""
  15799. for warning in shorten-64-to-32; do
  15800. ac_var_match_word="no"
  15801. for word1 in $CFLAGS; do
  15802. for word2 in -Wno-$warning -W$warning; do
  15803. if test "$word1" = "$word2"; then
  15804. ac_var_match_word="yes"
  15805. fi
  15806. done
  15807. done
  15808. if test "$ac_var_match_word" = "no"; then
  15809. ac_var_added_warnings="$ac_var_added_warnings -W$warning"
  15810. fi
  15811. done
  15812. tmp_CFLAGS="$tmp_CFLAGS $ac_var_added_warnings"
  15813. squeeze tmp_CFLAGS
  15814. #
  15815. if test "$compiler_num" -ge "101"; then
  15816. ac_var_added_warnings=""
  15817. for warning in unused; do
  15818. ac_var_match_word="no"
  15819. for word1 in $CFLAGS; do
  15820. for word2 in -Wno-$warning -W$warning; do
  15821. if test "$word1" = "$word2"; then
  15822. ac_var_match_word="yes"
  15823. fi
  15824. done
  15825. done
  15826. if test "$ac_var_match_word" = "no"; then
  15827. ac_var_added_warnings="$ac_var_added_warnings -W$warning"
  15828. fi
  15829. done
  15830. tmp_CFLAGS="$tmp_CFLAGS $ac_var_added_warnings"
  15831. squeeze tmp_CFLAGS
  15832. fi
  15833. #
  15834. if test "$compiler_num" -ge "208"; then
  15835. ac_var_added_warnings=""
  15836. for warning in vla; do
  15837. ac_var_match_word="no"
  15838. for word1 in $CFLAGS; do
  15839. for word2 in -Wno-$warning -W$warning; do
  15840. if test "$word1" = "$word2"; then
  15841. ac_var_match_word="yes"
  15842. fi
  15843. done
  15844. done
  15845. if test "$ac_var_match_word" = "no"; then
  15846. ac_var_added_warnings="$ac_var_added_warnings -W$warning"
  15847. fi
  15848. done
  15849. tmp_CFLAGS="$tmp_CFLAGS $ac_var_added_warnings"
  15850. squeeze tmp_CFLAGS
  15851. fi
  15852. #
  15853. if test "$compiler_num" -ge "209"; then
  15854. ac_var_added_warnings=""
  15855. for warning in shift-sign-overflow; do
  15856. ac_var_match_word="no"
  15857. for word1 in $CFLAGS; do
  15858. for word2 in -Wno-$warning -W$warning; do
  15859. if test "$word1" = "$word2"; then
  15860. ac_var_match_word="yes"
  15861. fi
  15862. done
  15863. done
  15864. if test "$ac_var_match_word" = "no"; then
  15865. ac_var_added_warnings="$ac_var_added_warnings -W$warning"
  15866. fi
  15867. done
  15868. tmp_CFLAGS="$tmp_CFLAGS $ac_var_added_warnings"
  15869. squeeze tmp_CFLAGS
  15870. fi
  15871. #
  15872. if test "$compiler_num" -ge "302"; then
  15873. case $host_os in
  15874. cygwin* | mingw*)
  15875. ;;
  15876. *)
  15877. ac_var_added_warnings=""
  15878. for warning in missing-variable-declarations; do
  15879. ac_var_match_word="no"
  15880. for word1 in $CFLAGS; do
  15881. for word2 in -Wno-$warning -W$warning; do
  15882. if test "$word1" = "$word2"; then
  15883. ac_var_match_word="yes"
  15884. fi
  15885. done
  15886. done
  15887. if test "$ac_var_match_word" = "no"; then
  15888. ac_var_added_warnings="$ac_var_added_warnings -W$warning"
  15889. fi
  15890. done
  15891. tmp_CFLAGS="$tmp_CFLAGS $ac_var_added_warnings"
  15892. squeeze tmp_CFLAGS
  15893. ;;
  15894. esac
  15895. fi
  15896. #
  15897. if test "$compiler_num" -ge "306"; then
  15898. ac_var_added_warnings=""
  15899. for warning in double-promotion; do
  15900. ac_var_match_word="no"
  15901. for word1 in $CFLAGS; do
  15902. for word2 in -Wno-$warning -W$warning; do
  15903. if test "$word1" = "$word2"; then
  15904. ac_var_match_word="yes"
  15905. fi
  15906. done
  15907. done
  15908. if test "$ac_var_match_word" = "no"; then
  15909. ac_var_added_warnings="$ac_var_added_warnings -W$warning"
  15910. fi
  15911. done
  15912. tmp_CFLAGS="$tmp_CFLAGS $ac_var_added_warnings"
  15913. squeeze tmp_CFLAGS
  15914. fi
  15915. #
  15916. if test "$compiler_num" -ge "309"; then
  15917. ac_var_added_warnings=""
  15918. for warning in comma; do
  15919. ac_var_match_word="no"
  15920. for word1 in $CFLAGS; do
  15921. for word2 in -Wno-$warning -W$warning; do
  15922. if test "$word1" = "$word2"; then
  15923. ac_var_match_word="yes"
  15924. fi
  15925. done
  15926. done
  15927. if test "$ac_var_match_word" = "no"; then
  15928. ac_var_added_warnings="$ac_var_added_warnings -W$warning"
  15929. fi
  15930. done
  15931. tmp_CFLAGS="$tmp_CFLAGS $ac_var_added_warnings"
  15932. squeeze tmp_CFLAGS
  15933. # avoid the varargs warning, fixed in 4.0
  15934. # https://bugs.llvm.org/show_bug.cgi?id=29140
  15935. if test "$compiler_num" -lt "400"; then
  15936. tmp_CFLAGS="$tmp_CFLAGS -Wno-varargs"
  15937. fi
  15938. fi
  15939. if test "$compiler_num" -ge "700"; then
  15940. ac_var_added_warnings=""
  15941. for warning in assign-enum; do
  15942. ac_var_match_word="no"
  15943. for word1 in $CFLAGS; do
  15944. for word2 in -Wno-$warning -W$warning; do
  15945. if test "$word1" = "$word2"; then
  15946. ac_var_match_word="yes"
  15947. fi
  15948. done
  15949. done
  15950. if test "$ac_var_match_word" = "no"; then
  15951. ac_var_added_warnings="$ac_var_added_warnings -W$warning"
  15952. fi
  15953. done
  15954. tmp_CFLAGS="$tmp_CFLAGS $ac_var_added_warnings"
  15955. squeeze tmp_CFLAGS
  15956. ac_var_added_warnings=""
  15957. for warning in extra-semi-stmt; do
  15958. ac_var_match_word="no"
  15959. for word1 in $CFLAGS; do
  15960. for word2 in -Wno-$warning -W$warning; do
  15961. if test "$word1" = "$word2"; then
  15962. ac_var_match_word="yes"
  15963. fi
  15964. done
  15965. done
  15966. if test "$ac_var_match_word" = "no"; then
  15967. ac_var_added_warnings="$ac_var_added_warnings -W$warning"
  15968. fi
  15969. done
  15970. tmp_CFLAGS="$tmp_CFLAGS $ac_var_added_warnings"
  15971. squeeze tmp_CFLAGS
  15972. fi
  15973. fi
  15974. ;;
  15975. #
  15976. DEC_C)
  15977. #
  15978. if test "$want_warnings" = "yes"; then
  15979. tmp_CFLAGS="$tmp_CFLAGS -msg_enable level3"
  15980. fi
  15981. ;;
  15982. #
  15983. GNU_C)
  15984. #
  15985. if test "$want_warnings" = "yes"; then
  15986. #
  15987. if test "x$cross_compiling" != "xyes" ||
  15988. test "$compiler_num" -ge "300"; then
  15989. tmp_CFLAGS="$tmp_CFLAGS -pedantic"
  15990. fi
  15991. #
  15992. ac_var_added_warnings=""
  15993. for warning in all; do
  15994. ac_var_match_word="no"
  15995. for word1 in $CFLAGS; do
  15996. for word2 in -Wno-$warning -W$warning; do
  15997. if test "$word1" = "$word2"; then
  15998. ac_var_match_word="yes"
  15999. fi
  16000. done
  16001. done
  16002. if test "$ac_var_match_word" = "no"; then
  16003. ac_var_added_warnings="$ac_var_added_warnings -W$warning"
  16004. fi
  16005. done
  16006. tmp_CFLAGS="$tmp_CFLAGS $ac_var_added_warnings"
  16007. squeeze tmp_CFLAGS
  16008. tmp_CFLAGS="$tmp_CFLAGS -W"
  16009. #
  16010. if test "$compiler_num" -ge "104"; then
  16011. ac_var_added_warnings=""
  16012. for warning in pointer-arith write-strings; do
  16013. ac_var_match_word="no"
  16014. for word1 in $CFLAGS; do
  16015. for word2 in -Wno-$warning -W$warning; do
  16016. if test "$word1" = "$word2"; then
  16017. ac_var_match_word="yes"
  16018. fi
  16019. done
  16020. done
  16021. if test "$ac_var_match_word" = "no"; then
  16022. ac_var_added_warnings="$ac_var_added_warnings -W$warning"
  16023. fi
  16024. done
  16025. tmp_CFLAGS="$tmp_CFLAGS $ac_var_added_warnings"
  16026. squeeze tmp_CFLAGS
  16027. if test "x$cross_compiling" != "xyes" ||
  16028. test "$compiler_num" -ge "300"; then
  16029. ac_var_added_warnings=""
  16030. for warning in unused shadow; do
  16031. ac_var_match_word="no"
  16032. for word1 in $CFLAGS; do
  16033. for word2 in -Wno-$warning -W$warning; do
  16034. if test "$word1" = "$word2"; then
  16035. ac_var_match_word="yes"
  16036. fi
  16037. done
  16038. done
  16039. if test "$ac_var_match_word" = "no"; then
  16040. ac_var_added_warnings="$ac_var_added_warnings -W$warning"
  16041. fi
  16042. done
  16043. tmp_CFLAGS="$tmp_CFLAGS $ac_var_added_warnings"
  16044. squeeze tmp_CFLAGS
  16045. fi
  16046. fi
  16047. #
  16048. if test "$compiler_num" -ge "207"; then
  16049. ac_var_added_warnings=""
  16050. for warning in inline nested-externs; do
  16051. ac_var_match_word="no"
  16052. for word1 in $CFLAGS; do
  16053. for word2 in -Wno-$warning -W$warning; do
  16054. if test "$word1" = "$word2"; then
  16055. ac_var_match_word="yes"
  16056. fi
  16057. done
  16058. done
  16059. if test "$ac_var_match_word" = "no"; then
  16060. ac_var_added_warnings="$ac_var_added_warnings -W$warning"
  16061. fi
  16062. done
  16063. tmp_CFLAGS="$tmp_CFLAGS $ac_var_added_warnings"
  16064. squeeze tmp_CFLAGS
  16065. if test "x$cross_compiling" != "xyes" ||
  16066. test "$compiler_num" -ge "300"; then
  16067. ac_var_added_warnings=""
  16068. for warning in missing-declarations; do
  16069. ac_var_match_word="no"
  16070. for word1 in $CFLAGS; do
  16071. for word2 in -Wno-$warning -W$warning; do
  16072. if test "$word1" = "$word2"; then
  16073. ac_var_match_word="yes"
  16074. fi
  16075. done
  16076. done
  16077. if test "$ac_var_match_word" = "no"; then
  16078. ac_var_added_warnings="$ac_var_added_warnings -W$warning"
  16079. fi
  16080. done
  16081. tmp_CFLAGS="$tmp_CFLAGS $ac_var_added_warnings"
  16082. squeeze tmp_CFLAGS
  16083. ac_var_added_warnings=""
  16084. for warning in missing-prototypes; do
  16085. ac_var_match_word="no"
  16086. for word1 in $CFLAGS; do
  16087. for word2 in -Wno-$warning -W$warning; do
  16088. if test "$word1" = "$word2"; then
  16089. ac_var_match_word="yes"
  16090. fi
  16091. done
  16092. done
  16093. if test "$ac_var_match_word" = "no"; then
  16094. ac_var_added_warnings="$ac_var_added_warnings -W$warning"
  16095. fi
  16096. done
  16097. tmp_CFLAGS="$tmp_CFLAGS $ac_var_added_warnings"
  16098. squeeze tmp_CFLAGS
  16099. fi
  16100. fi
  16101. #
  16102. if test "$compiler_num" -ge "295"; then
  16103. tmp_CFLAGS="$tmp_CFLAGS -Wno-long-long"
  16104. ac_var_added_warnings=""
  16105. for warning in bad-function-cast; do
  16106. ac_var_match_word="no"
  16107. for word1 in $CFLAGS; do
  16108. for word2 in -Wno-$warning -W$warning; do
  16109. if test "$word1" = "$word2"; then
  16110. ac_var_match_word="yes"
  16111. fi
  16112. done
  16113. done
  16114. if test "$ac_var_match_word" = "no"; then
  16115. ac_var_added_warnings="$ac_var_added_warnings -W$warning"
  16116. fi
  16117. done
  16118. tmp_CFLAGS="$tmp_CFLAGS $ac_var_added_warnings"
  16119. squeeze tmp_CFLAGS
  16120. fi
  16121. #
  16122. if test "$compiler_num" -ge "296"; then
  16123. ac_var_added_warnings=""
  16124. for warning in float-equal; do
  16125. ac_var_match_word="no"
  16126. for word1 in $CFLAGS; do
  16127. for word2 in -Wno-$warning -W$warning; do
  16128. if test "$word1" = "$word2"; then
  16129. ac_var_match_word="yes"
  16130. fi
  16131. done
  16132. done
  16133. if test "$ac_var_match_word" = "no"; then
  16134. ac_var_added_warnings="$ac_var_added_warnings -W$warning"
  16135. fi
  16136. done
  16137. tmp_CFLAGS="$tmp_CFLAGS $ac_var_added_warnings"
  16138. squeeze tmp_CFLAGS
  16139. tmp_CFLAGS="$tmp_CFLAGS -Wno-multichar"
  16140. ac_var_added_warnings=""
  16141. for warning in sign-compare; do
  16142. ac_var_match_word="no"
  16143. for word1 in $CFLAGS; do
  16144. for word2 in -Wno-$warning -W$warning; do
  16145. if test "$word1" = "$word2"; then
  16146. ac_var_match_word="yes"
  16147. fi
  16148. done
  16149. done
  16150. if test "$ac_var_match_word" = "no"; then
  16151. ac_var_added_warnings="$ac_var_added_warnings -W$warning"
  16152. fi
  16153. done
  16154. tmp_CFLAGS="$tmp_CFLAGS $ac_var_added_warnings"
  16155. squeeze tmp_CFLAGS
  16156. ac_var_added_warnings=""
  16157. for warning in undef; do
  16158. ac_var_match_word="no"
  16159. for word1 in $CFLAGS; do
  16160. for word2 in -Wno-$warning -W$warning; do
  16161. if test "$word1" = "$word2"; then
  16162. ac_var_match_word="yes"
  16163. fi
  16164. done
  16165. done
  16166. if test "$ac_var_match_word" = "no"; then
  16167. ac_var_added_warnings="$ac_var_added_warnings -W$warning"
  16168. fi
  16169. done
  16170. tmp_CFLAGS="$tmp_CFLAGS $ac_var_added_warnings"
  16171. squeeze tmp_CFLAGS
  16172. fi
  16173. #
  16174. if test "$compiler_num" -ge "297"; then
  16175. tmp_CFLAGS="$tmp_CFLAGS -Wno-format-nonliteral"
  16176. fi
  16177. #
  16178. if test "$compiler_num" -ge "300"; then
  16179. tmp_CFLAGS="$tmp_CFLAGS"
  16180. fi
  16181. #
  16182. if test "$compiler_num" -ge "303"; then
  16183. ac_var_added_warnings=""
  16184. for warning in endif-labels strict-prototypes; do
  16185. ac_var_match_word="no"
  16186. for word1 in $CFLAGS; do
  16187. for word2 in -Wno-$warning -W$warning; do
  16188. if test "$word1" = "$word2"; then
  16189. ac_var_match_word="yes"
  16190. fi
  16191. done
  16192. done
  16193. if test "$ac_var_match_word" = "no"; then
  16194. ac_var_added_warnings="$ac_var_added_warnings -W$warning"
  16195. fi
  16196. done
  16197. tmp_CFLAGS="$tmp_CFLAGS $ac_var_added_warnings"
  16198. squeeze tmp_CFLAGS
  16199. fi
  16200. #
  16201. if test "$compiler_num" -ge "304"; then
  16202. ac_var_added_warnings=""
  16203. for warning in declaration-after-statement; do
  16204. ac_var_match_word="no"
  16205. for word1 in $CFLAGS; do
  16206. for word2 in -Wno-$warning -W$warning; do
  16207. if test "$word1" = "$word2"; then
  16208. ac_var_match_word="yes"
  16209. fi
  16210. done
  16211. done
  16212. if test "$ac_var_match_word" = "no"; then
  16213. ac_var_added_warnings="$ac_var_added_warnings -W$warning"
  16214. fi
  16215. done
  16216. tmp_CFLAGS="$tmp_CFLAGS $ac_var_added_warnings"
  16217. squeeze tmp_CFLAGS
  16218. ac_var_added_warnings=""
  16219. for warning in old-style-definition; do
  16220. ac_var_match_word="no"
  16221. for word1 in $CFLAGS; do
  16222. for word2 in -Wno-$warning -W$warning; do
  16223. if test "$word1" = "$word2"; then
  16224. ac_var_match_word="yes"
  16225. fi
  16226. done
  16227. done
  16228. if test "$ac_var_match_word" = "no"; then
  16229. ac_var_added_warnings="$ac_var_added_warnings -W$warning"
  16230. fi
  16231. done
  16232. tmp_CFLAGS="$tmp_CFLAGS $ac_var_added_warnings"
  16233. squeeze tmp_CFLAGS
  16234. fi
  16235. #
  16236. if test "$compiler_num" -ge "400"; then
  16237. tmp_CFLAGS="$tmp_CFLAGS -Wstrict-aliasing=3"
  16238. fi
  16239. #
  16240. if test "$compiler_num" -ge "402"; then
  16241. ac_var_added_warnings=""
  16242. for warning in cast-align; do
  16243. ac_var_match_word="no"
  16244. for word1 in $CFLAGS; do
  16245. for word2 in -Wno-$warning -W$warning; do
  16246. if test "$word1" = "$word2"; then
  16247. ac_var_match_word="yes"
  16248. fi
  16249. done
  16250. done
  16251. if test "$ac_var_match_word" = "no"; then
  16252. ac_var_added_warnings="$ac_var_added_warnings -W$warning"
  16253. fi
  16254. done
  16255. tmp_CFLAGS="$tmp_CFLAGS $ac_var_added_warnings"
  16256. squeeze tmp_CFLAGS
  16257. fi
  16258. #
  16259. if test "$compiler_num" -ge "403"; then
  16260. ac_var_added_warnings=""
  16261. for warning in type-limits old-style-declaration; do
  16262. ac_var_match_word="no"
  16263. for word1 in $CFLAGS; do
  16264. for word2 in -Wno-$warning -W$warning; do
  16265. if test "$word1" = "$word2"; then
  16266. ac_var_match_word="yes"
  16267. fi
  16268. done
  16269. done
  16270. if test "$ac_var_match_word" = "no"; then
  16271. ac_var_added_warnings="$ac_var_added_warnings -W$warning"
  16272. fi
  16273. done
  16274. tmp_CFLAGS="$tmp_CFLAGS $ac_var_added_warnings"
  16275. squeeze tmp_CFLAGS
  16276. ac_var_added_warnings=""
  16277. for warning in missing-parameter-type empty-body; do
  16278. ac_var_match_word="no"
  16279. for word1 in $CFLAGS; do
  16280. for word2 in -Wno-$warning -W$warning; do
  16281. if test "$word1" = "$word2"; then
  16282. ac_var_match_word="yes"
  16283. fi
  16284. done
  16285. done
  16286. if test "$ac_var_match_word" = "no"; then
  16287. ac_var_added_warnings="$ac_var_added_warnings -W$warning"
  16288. fi
  16289. done
  16290. tmp_CFLAGS="$tmp_CFLAGS $ac_var_added_warnings"
  16291. squeeze tmp_CFLAGS
  16292. ac_var_added_warnings=""
  16293. for warning in clobbered ignored-qualifiers; do
  16294. ac_var_match_word="no"
  16295. for word1 in $CFLAGS; do
  16296. for word2 in -Wno-$warning -W$warning; do
  16297. if test "$word1" = "$word2"; then
  16298. ac_var_match_word="yes"
  16299. fi
  16300. done
  16301. done
  16302. if test "$ac_var_match_word" = "no"; then
  16303. ac_var_added_warnings="$ac_var_added_warnings -W$warning"
  16304. fi
  16305. done
  16306. tmp_CFLAGS="$tmp_CFLAGS $ac_var_added_warnings"
  16307. squeeze tmp_CFLAGS
  16308. ac_var_added_warnings=""
  16309. for warning in conversion; do
  16310. ac_var_match_word="no"
  16311. for word1 in $CFLAGS; do
  16312. for word2 in -Wno-$warning -W$warning; do
  16313. if test "$word1" = "$word2"; then
  16314. ac_var_match_word="yes"
  16315. fi
  16316. done
  16317. done
  16318. if test "$ac_var_match_word" = "no"; then
  16319. ac_var_added_warnings="$ac_var_added_warnings -W$warning"
  16320. fi
  16321. done
  16322. tmp_CFLAGS="$tmp_CFLAGS $ac_var_added_warnings"
  16323. squeeze tmp_CFLAGS
  16324. tmp_CFLAGS="$tmp_CFLAGS -Wno-sign-conversion"
  16325. ac_var_added_warnings=""
  16326. for warning in vla; do
  16327. ac_var_match_word="no"
  16328. for word1 in $CFLAGS; do
  16329. for word2 in -Wno-$warning -W$warning; do
  16330. if test "$word1" = "$word2"; then
  16331. ac_var_match_word="yes"
  16332. fi
  16333. done
  16334. done
  16335. if test "$ac_var_match_word" = "no"; then
  16336. ac_var_added_warnings="$ac_var_added_warnings -W$warning"
  16337. fi
  16338. done
  16339. tmp_CFLAGS="$tmp_CFLAGS $ac_var_added_warnings"
  16340. squeeze tmp_CFLAGS
  16341. tmp_CFLAGS="$tmp_CFLAGS -ftree-vrp"
  16342. fi
  16343. #
  16344. if test "$compiler_num" -ge "405"; then
  16345. if test "$curl_cv_have_def__WIN32" = "yes"; then
  16346. tmp_CFLAGS="$tmp_CFLAGS -Wno-pedantic-ms-format"
  16347. fi
  16348. fi
  16349. #
  16350. if test "$compiler_num" -ge "406"; then
  16351. ac_var_added_warnings=""
  16352. for warning in double-promotion; do
  16353. ac_var_match_word="no"
  16354. for word1 in $CFLAGS; do
  16355. for word2 in -Wno-$warning -W$warning; do
  16356. if test "$word1" = "$word2"; then
  16357. ac_var_match_word="yes"
  16358. fi
  16359. done
  16360. done
  16361. if test "$ac_var_match_word" = "no"; then
  16362. ac_var_added_warnings="$ac_var_added_warnings -W$warning"
  16363. fi
  16364. done
  16365. tmp_CFLAGS="$tmp_CFLAGS $ac_var_added_warnings"
  16366. squeeze tmp_CFLAGS
  16367. fi
  16368. #
  16369. if test "$compiler_num" -ge "408"; then
  16370. tmp_CFLAGS="$tmp_CFLAGS -Wformat=2"
  16371. fi
  16372. #
  16373. if test "$compiler_num" -ge "500"; then
  16374. tmp_CFLAGS="$tmp_CFLAGS -Warray-bounds=2"
  16375. fi
  16376. #
  16377. if test "$compiler_num" -ge "600"; then
  16378. ac_var_added_warnings=""
  16379. for warning in shift-negative-value; do
  16380. ac_var_match_word="no"
  16381. for word1 in $CFLAGS; do
  16382. for word2 in -Wno-$warning -W$warning; do
  16383. if test "$word1" = "$word2"; then
  16384. ac_var_match_word="yes"
  16385. fi
  16386. done
  16387. done
  16388. if test "$ac_var_match_word" = "no"; then
  16389. ac_var_added_warnings="$ac_var_added_warnings -W$warning"
  16390. fi
  16391. done
  16392. tmp_CFLAGS="$tmp_CFLAGS $ac_var_added_warnings"
  16393. squeeze tmp_CFLAGS
  16394. tmp_CFLAGS="$tmp_CFLAGS -Wshift-overflow=2"
  16395. ac_var_added_warnings=""
  16396. for warning in null-dereference; do
  16397. ac_var_match_word="no"
  16398. for word1 in $CFLAGS; do
  16399. for word2 in -Wno-$warning -W$warning; do
  16400. if test "$word1" = "$word2"; then
  16401. ac_var_match_word="yes"
  16402. fi
  16403. done
  16404. done
  16405. if test "$ac_var_match_word" = "no"; then
  16406. ac_var_added_warnings="$ac_var_added_warnings -W$warning"
  16407. fi
  16408. done
  16409. tmp_CFLAGS="$tmp_CFLAGS $ac_var_added_warnings"
  16410. squeeze tmp_CFLAGS
  16411. tmp_CFLAGS="$tmp_CFLAGS -fdelete-null-pointer-checks"
  16412. ac_var_added_warnings=""
  16413. for warning in duplicated-cond; do
  16414. ac_var_match_word="no"
  16415. for word1 in $CFLAGS; do
  16416. for word2 in -Wno-$warning -W$warning; do
  16417. if test "$word1" = "$word2"; then
  16418. ac_var_match_word="yes"
  16419. fi
  16420. done
  16421. done
  16422. if test "$ac_var_match_word" = "no"; then
  16423. ac_var_added_warnings="$ac_var_added_warnings -W$warning"
  16424. fi
  16425. done
  16426. tmp_CFLAGS="$tmp_CFLAGS $ac_var_added_warnings"
  16427. squeeze tmp_CFLAGS
  16428. ac_var_added_warnings=""
  16429. for warning in unused-const-variable; do
  16430. ac_var_match_word="no"
  16431. for word1 in $CFLAGS; do
  16432. for word2 in -Wno-$warning -W$warning; do
  16433. if test "$word1" = "$word2"; then
  16434. ac_var_match_word="yes"
  16435. fi
  16436. done
  16437. done
  16438. if test "$ac_var_match_word" = "no"; then
  16439. ac_var_added_warnings="$ac_var_added_warnings -W$warning"
  16440. fi
  16441. done
  16442. tmp_CFLAGS="$tmp_CFLAGS $ac_var_added_warnings"
  16443. squeeze tmp_CFLAGS
  16444. fi
  16445. #
  16446. if test "$compiler_num" -ge "700"; then
  16447. ac_var_added_warnings=""
  16448. for warning in duplicated-branches; do
  16449. ac_var_match_word="no"
  16450. for word1 in $CFLAGS; do
  16451. for word2 in -Wno-$warning -W$warning; do
  16452. if test "$word1" = "$word2"; then
  16453. ac_var_match_word="yes"
  16454. fi
  16455. done
  16456. done
  16457. if test "$ac_var_match_word" = "no"; then
  16458. ac_var_added_warnings="$ac_var_added_warnings -W$warning"
  16459. fi
  16460. done
  16461. tmp_CFLAGS="$tmp_CFLAGS $ac_var_added_warnings"
  16462. squeeze tmp_CFLAGS
  16463. ac_var_added_warnings=""
  16464. for warning in restrict; do
  16465. ac_var_match_word="no"
  16466. for word1 in $CFLAGS; do
  16467. for word2 in -Wno-$warning -W$warning; do
  16468. if test "$word1" = "$word2"; then
  16469. ac_var_match_word="yes"
  16470. fi
  16471. done
  16472. done
  16473. if test "$ac_var_match_word" = "no"; then
  16474. ac_var_added_warnings="$ac_var_added_warnings -W$warning"
  16475. fi
  16476. done
  16477. tmp_CFLAGS="$tmp_CFLAGS $ac_var_added_warnings"
  16478. squeeze tmp_CFLAGS
  16479. ac_var_added_warnings=""
  16480. for warning in alloc-zero; do
  16481. ac_var_match_word="no"
  16482. for word1 in $CFLAGS; do
  16483. for word2 in -Wno-$warning -W$warning; do
  16484. if test "$word1" = "$word2"; then
  16485. ac_var_match_word="yes"
  16486. fi
  16487. done
  16488. done
  16489. if test "$ac_var_match_word" = "no"; then
  16490. ac_var_added_warnings="$ac_var_added_warnings -W$warning"
  16491. fi
  16492. done
  16493. tmp_CFLAGS="$tmp_CFLAGS $ac_var_added_warnings"
  16494. squeeze tmp_CFLAGS
  16495. tmp_CFLAGS="$tmp_CFLAGS -Wformat-overflow=2"
  16496. tmp_CFLAGS="$tmp_CFLAGS -Wformat-truncation=2"
  16497. if test "$compiler_num" -lt "1200"; then
  16498. tmp_CFLAGS="$tmp_CFLAGS -Wimplicit-fallthrough=4"
  16499. fi
  16500. fi
  16501. #
  16502. fi
  16503. #
  16504. if test "$compiler_num" -ge "300"; then
  16505. tmp_CFLAGS="$tmp_CFLAGS -Wno-system-headers"
  16506. else
  16507. if test "x$cross_compiling" = "xyes"; then
  16508. if test "$compiler_num" -ge "104"; then
  16509. tmp_CFLAGS="$tmp_CFLAGS -Wno-unused -Wno-shadow"
  16510. fi
  16511. if test "$compiler_num" -ge "207"; then
  16512. tmp_CFLAGS="$tmp_CFLAGS -Wno-missing-declarations"
  16513. tmp_CFLAGS="$tmp_CFLAGS -Wno-missing-prototypes"
  16514. fi
  16515. fi
  16516. fi
  16517. if test "$compiler_num" -ge "1000"; then
  16518. ac_var_added_warnings=""
  16519. for warning in enum-conversion; do
  16520. ac_var_match_word="no"
  16521. for word1 in $CFLAGS; do
  16522. for word2 in -Wno-$warning -W$warning; do
  16523. if test "$word1" = "$word2"; then
  16524. ac_var_match_word="yes"
  16525. fi
  16526. done
  16527. done
  16528. if test "$ac_var_match_word" = "no"; then
  16529. ac_var_added_warnings="$ac_var_added_warnings -W$warning"
  16530. fi
  16531. done
  16532. tmp_CFLAGS="$tmp_CFLAGS $ac_var_added_warnings"
  16533. squeeze tmp_CFLAGS
  16534. fi
  16535. ;;
  16536. #
  16537. HP_UX_C)
  16538. #
  16539. if test "$want_warnings" = "yes"; then
  16540. tmp_CFLAGS="$tmp_CFLAGS +w1"
  16541. fi
  16542. ;;
  16543. #
  16544. IBM_C)
  16545. #
  16546. tmp_CFLAGS="$tmp_CFLAGS"
  16547. ;;
  16548. #
  16549. INTEL_UNIX_C)
  16550. #
  16551. if test "$want_warnings" = "yes"; then
  16552. if test "$compiler_num" -gt "600"; then
  16553. tmp_CPPFLAGS="$tmp_CPPFLAGS -Wall -w2"
  16554. tmp_CPPFLAGS="$tmp_CPPFLAGS -Wcheck"
  16555. tmp_CPPFLAGS="$tmp_CPPFLAGS -Wcomment"
  16556. tmp_CPPFLAGS="$tmp_CPPFLAGS -Wdeprecated"
  16557. tmp_CPPFLAGS="$tmp_CPPFLAGS -Wmissing-prototypes"
  16558. tmp_CPPFLAGS="$tmp_CPPFLAGS -Wp64"
  16559. tmp_CPPFLAGS="$tmp_CPPFLAGS -Wpointer-arith"
  16560. tmp_CPPFLAGS="$tmp_CPPFLAGS -Wreturn-type"
  16561. tmp_CPPFLAGS="$tmp_CPPFLAGS -Wshadow"
  16562. tmp_CPPFLAGS="$tmp_CPPFLAGS -Wuninitialized"
  16563. tmp_CPPFLAGS="$tmp_CPPFLAGS -Wunused-function"
  16564. fi
  16565. fi
  16566. tmp_CFLAGS="$tmp_CFLAGS -fno-omit-frame-pointer"
  16567. tmp_CFLAGS="$tmp_CFLAGS -fno-strict-aliasing"
  16568. tmp_CFLAGS="$tmp_CFLAGS -fp-model precise"
  16569. ;;
  16570. #
  16571. INTEL_WINDOWS_C)
  16572. #
  16573. tmp_CFLAGS="$tmp_CFLAGS"
  16574. ;;
  16575. #
  16576. LCC)
  16577. #
  16578. if test "$want_warnings" = "yes"; then
  16579. tmp_CFLAGS="$tmp_CFLAGS"
  16580. fi
  16581. ;;
  16582. #
  16583. SGI_MIPS_C)
  16584. #
  16585. if test "$want_warnings" = "yes"; then
  16586. tmp_CFLAGS="$tmp_CFLAGS -fullwarn"
  16587. fi
  16588. ;;
  16589. #
  16590. SGI_MIPSPRO_C)
  16591. #
  16592. if test "$want_warnings" = "yes"; then
  16593. tmp_CFLAGS="$tmp_CFLAGS -fullwarn"
  16594. tmp_CFLAGS="$tmp_CFLAGS -woff 1209"
  16595. fi
  16596. ;;
  16597. #
  16598. SUNPRO_C)
  16599. #
  16600. if test "$want_warnings" = "yes"; then
  16601. tmp_CFLAGS="$tmp_CFLAGS -v"
  16602. fi
  16603. ;;
  16604. #
  16605. TINY_C)
  16606. #
  16607. if test "$want_warnings" = "yes"; then
  16608. ac_var_added_warnings=""
  16609. for warning in all; do
  16610. ac_var_match_word="no"
  16611. for word1 in $CFLAGS; do
  16612. for word2 in -Wno-$warning -W$warning; do
  16613. if test "$word1" = "$word2"; then
  16614. ac_var_match_word="yes"
  16615. fi
  16616. done
  16617. done
  16618. if test "$ac_var_match_word" = "no"; then
  16619. ac_var_added_warnings="$ac_var_added_warnings -W$warning"
  16620. fi
  16621. done
  16622. tmp_CFLAGS="$tmp_CFLAGS $ac_var_added_warnings"
  16623. squeeze tmp_CFLAGS
  16624. ac_var_added_warnings=""
  16625. for warning in write-strings; do
  16626. ac_var_match_word="no"
  16627. for word1 in $CFLAGS; do
  16628. for word2 in -Wno-$warning -W$warning; do
  16629. if test "$word1" = "$word2"; then
  16630. ac_var_match_word="yes"
  16631. fi
  16632. done
  16633. done
  16634. if test "$ac_var_match_word" = "no"; then
  16635. ac_var_added_warnings="$ac_var_added_warnings -W$warning"
  16636. fi
  16637. done
  16638. tmp_CFLAGS="$tmp_CFLAGS $ac_var_added_warnings"
  16639. squeeze tmp_CFLAGS
  16640. ac_var_added_warnings=""
  16641. for warning in unsupported; do
  16642. ac_var_match_word="no"
  16643. for word1 in $CFLAGS; do
  16644. for word2 in -Wno-$warning -W$warning; do
  16645. if test "$word1" = "$word2"; then
  16646. ac_var_match_word="yes"
  16647. fi
  16648. done
  16649. done
  16650. if test "$ac_var_match_word" = "no"; then
  16651. ac_var_added_warnings="$ac_var_added_warnings -W$warning"
  16652. fi
  16653. done
  16654. tmp_CFLAGS="$tmp_CFLAGS $ac_var_added_warnings"
  16655. squeeze tmp_CFLAGS
  16656. fi
  16657. ;;
  16658. #
  16659. WATCOM_UNIX_C)
  16660. #
  16661. if test "$want_warnings" = "yes"; then
  16662. tmp_CFLAGS="$tmp_CFLAGS -Wall -Wextra"
  16663. fi
  16664. ;;
  16665. #
  16666. WATCOM_WINDOWS_C)
  16667. #
  16668. tmp_CFLAGS="$tmp_CFLAGS"
  16669. ;;
  16670. #
  16671. esac
  16672. #
  16673. squeeze tmp_CPPFLAGS
  16674. squeeze tmp_CFLAGS
  16675. #
  16676. if test ! -z "$tmp_CFLAGS" || test ! -z "$tmp_CPPFLAGS"; then
  16677. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if compiler accepts strict warning options" >&5
  16678. printf %s "checking if compiler accepts strict warning options... " >&6; }
  16679. CPPFLAGS="$tmp_save_CPPFLAGS $tmp_CPPFLAGS"
  16680. CFLAGS="$tmp_save_CFLAGS $tmp_CFLAGS"
  16681. squeeze CPPFLAGS
  16682. squeeze CFLAGS
  16683. tmp_compiler_works="unknown"
  16684. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16685. /* end confdefs.h. */
  16686. int main (void)
  16687. {
  16688. int i = 1;
  16689. return i;
  16690. ;
  16691. return 0;
  16692. }
  16693. _ACEOF
  16694. if ac_fn_c_try_compile "$LINENO"
  16695. then :
  16696. tmp_compiler_works="yes"
  16697. else $as_nop
  16698. tmp_compiler_works="no"
  16699. echo " " >&6
  16700. sed 's/^/cc-fail: /' conftest.err >&6
  16701. echo " " >&6
  16702. fi
  16703. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  16704. if test "$tmp_compiler_works" = "yes"; then
  16705. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16706. /* end confdefs.h. */
  16707. int main (void)
  16708. {
  16709. int i = 1;
  16710. return i;
  16711. ;
  16712. return 0;
  16713. }
  16714. _ACEOF
  16715. if ac_fn_c_try_link "$LINENO"
  16716. then :
  16717. tmp_compiler_works="yes"
  16718. else $as_nop
  16719. tmp_compiler_works="no"
  16720. echo " " >&6
  16721. sed 's/^/link-fail: /' conftest.err >&6
  16722. echo " " >&6
  16723. fi
  16724. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  16725. conftest$ac_exeext conftest.$ac_ext
  16726. fi
  16727. if test "x$cross_compiling" != "xyes" &&
  16728. test "$tmp_compiler_works" = "yes"; then
  16729. old=$LD_LIBRARY_PATH
  16730. LD_LIBRARY_PATH=$CURL_LIBRARY_PATH:$old
  16731. export LD_LIBRARY_PATH
  16732. if test "$cross_compiling" = yes
  16733. then :
  16734. { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  16735. printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
  16736. as_fn_error $? "cannot run test program while cross compiling
  16737. See \`config.log' for more details" "$LINENO" 5; }
  16738. else $as_nop
  16739. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16740. /* end confdefs.h. */
  16741. # ifdef __STDC__
  16742. # include <stdlib.h>
  16743. # endif
  16744. int main (void)
  16745. {
  16746. int i = 0;
  16747. exit(i);
  16748. ;
  16749. return 0;
  16750. }
  16751. _ACEOF
  16752. if ac_fn_c_try_run "$LINENO"
  16753. then :
  16754. tmp_compiler_works="yes"
  16755. else $as_nop
  16756. tmp_compiler_works="no"
  16757. echo " " >&6
  16758. echo "run-fail: test program exited with status $ac_status" >&6
  16759. echo " " >&6
  16760. fi
  16761. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  16762. conftest.$ac_objext conftest.beam conftest.$ac_ext
  16763. fi
  16764. LD_LIBRARY_PATH=$old # restore
  16765. fi
  16766. if test "$tmp_compiler_works" = "yes"; then
  16767. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  16768. printf "%s\n" "yes" >&6; }
  16769. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: compiler options added: $tmp_CFLAGS $tmp_CPPFLAGS" >&5
  16770. printf "%s\n" "$as_me: compiler options added: $tmp_CFLAGS $tmp_CPPFLAGS" >&6;}
  16771. else
  16772. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  16773. printf "%s\n" "no" >&6; }
  16774. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: compiler options rejected: $tmp_CFLAGS $tmp_CPPFLAGS" >&5
  16775. printf "%s\n" "$as_me: WARNING: compiler options rejected: $tmp_CFLAGS $tmp_CPPFLAGS" >&2;}
  16776. CPPFLAGS="$tmp_save_CPPFLAGS"
  16777. CFLAGS="$tmp_save_CFLAGS"
  16778. fi
  16779. fi
  16780. #
  16781. fi
  16782. if test "$compiler_id" = "INTEL_UNIX_C"; then
  16783. #
  16784. if test "$compiler_num" -ge "1000"; then
  16785. CFLAGS="$CFLAGS -shared-intel"
  16786. elif test "$compiler_num" -ge "900"; then
  16787. CFLAGS="$CFLAGS -i-dynamic"
  16788. fi
  16789. #
  16790. fi
  16791. CURL_CFLAG_EXTRAS=""
  16792. if test X"$want_werror" = Xyes; then
  16793. CURL_CFLAG_EXTRAS="-Werror"
  16794. if test "$compiler_id" = "GNU_C"; then
  16795. if test "$compiler_num" -ge "500"; then
  16796. CURL_CFLAG_EXTRAS="$CURL_CFLAG_EXTRAS -pedantic-errors"
  16797. fi
  16798. fi
  16799. fi
  16800. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if compiler halts on compilation errors" >&5
  16801. printf %s "checking if compiler halts on compilation errors... " >&6; }
  16802. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16803. /* end confdefs.h. */
  16804. int main (void)
  16805. {
  16806. force compilation error
  16807. ;
  16808. return 0;
  16809. }
  16810. _ACEOF
  16811. if ac_fn_c_try_compile "$LINENO"
  16812. then :
  16813. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  16814. printf "%s\n" "no" >&6; }
  16815. as_fn_error $? "compiler does not halt on compilation errors." "$LINENO" 5
  16816. else $as_nop
  16817. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  16818. printf "%s\n" "yes" >&6; }
  16819. fi
  16820. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  16821. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if compiler halts on negative sized arrays" >&5
  16822. printf %s "checking if compiler halts on negative sized arrays... " >&6; }
  16823. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16824. /* end confdefs.h. */
  16825. typedef char bad_t[sizeof(char) == sizeof(int) ? -1 : -1 ];
  16826. int main (void)
  16827. {
  16828. bad_t dummy;
  16829. ;
  16830. return 0;
  16831. }
  16832. _ACEOF
  16833. if ac_fn_c_try_compile "$LINENO"
  16834. then :
  16835. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  16836. printf "%s\n" "no" >&6; }
  16837. as_fn_error $? "compiler does not halt on negative sized arrays." "$LINENO" 5
  16838. else $as_nop
  16839. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  16840. printf "%s\n" "yes" >&6; }
  16841. fi
  16842. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  16843. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if compiler halts on function prototype mismatch" >&5
  16844. printf %s "checking if compiler halts on function prototype mismatch... " >&6; }
  16845. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16846. /* end confdefs.h. */
  16847. # include <stdlib.h>
  16848. int rand(int n);
  16849. int rand(int n)
  16850. {
  16851. if(n)
  16852. return ++n;
  16853. else
  16854. return n;
  16855. }
  16856. int main (void)
  16857. {
  16858. int i[2]={0,0};
  16859. int j = rand(i[0]);
  16860. if(j)
  16861. return j;
  16862. ;
  16863. return 0;
  16864. }
  16865. _ACEOF
  16866. if ac_fn_c_try_compile "$LINENO"
  16867. then :
  16868. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  16869. printf "%s\n" "no" >&6; }
  16870. as_fn_error $? "compiler does not halt on function prototype mismatch." "$LINENO" 5
  16871. else $as_nop
  16872. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  16873. printf "%s\n" "yes" >&6; }
  16874. fi
  16875. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  16876. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if compiler supports hiding library internal symbols" >&5
  16877. printf %s "checking if compiler supports hiding library internal symbols... " >&6; }
  16878. supports_symbol_hiding="no"
  16879. symbol_hiding_CFLAGS=""
  16880. symbol_hiding_EXTERN=""
  16881. tmp_CFLAGS=""
  16882. tmp_EXTERN=""
  16883. case "$compiler_id" in
  16884. CLANG)
  16885. tmp_EXTERN="__attribute__ ((__visibility__ (\"default\")))"
  16886. tmp_CFLAGS="-fvisibility=hidden"
  16887. supports_symbol_hiding="yes"
  16888. ;;
  16889. GNU_C)
  16890. if test "$compiler_num" -ge "304"; then
  16891. if $CC --help --verbose 2>/dev/null | grep fvisibility= >/dev/null ; then
  16892. tmp_EXTERN="__attribute__ ((__visibility__ (\"default\")))"
  16893. tmp_CFLAGS="-fvisibility=hidden"
  16894. supports_symbol_hiding="yes"
  16895. fi
  16896. fi
  16897. ;;
  16898. INTEL_UNIX_C)
  16899. if test "$compiler_num" -ge "900"; then
  16900. if $CC --help --verbose 2>&1 | grep fvisibility= > /dev/null ; then
  16901. tmp_save_CFLAGS="$CFLAGS"
  16902. CFLAGS="$CFLAGS -fvisibility=hidden"
  16903. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16904. /* end confdefs.h. */
  16905. # include <stdio.h>
  16906. int main (void)
  16907. {
  16908. printf("icc fvisibility bug test");
  16909. ;
  16910. return 0;
  16911. }
  16912. _ACEOF
  16913. if ac_fn_c_try_link "$LINENO"
  16914. then :
  16915. tmp_EXTERN="__attribute__ ((__visibility__ (\"default\")))"
  16916. tmp_CFLAGS="-fvisibility=hidden"
  16917. supports_symbol_hiding="yes"
  16918. fi
  16919. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  16920. conftest$ac_exeext conftest.$ac_ext
  16921. CFLAGS="$tmp_save_CFLAGS"
  16922. fi
  16923. fi
  16924. ;;
  16925. SUNPRO_C)
  16926. if $CC 2>&1 | grep flags >/dev/null && $CC -flags | grep xldscope= >/dev/null ; then
  16927. tmp_EXTERN="__global"
  16928. tmp_CFLAGS="-xldscope=hidden"
  16929. supports_symbol_hiding="yes"
  16930. fi
  16931. ;;
  16932. esac
  16933. if test "$supports_symbol_hiding" = "yes"; then
  16934. tmp_save_CFLAGS="$CFLAGS"
  16935. CFLAGS="$tmp_save_CFLAGS $tmp_CFLAGS"
  16936. squeeze CFLAGS
  16937. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16938. /* end confdefs.h. */
  16939. $tmp_EXTERN char *dummy(char *buff);
  16940. char *dummy(char *buff)
  16941. {
  16942. if(buff)
  16943. return ++buff;
  16944. else
  16945. return buff;
  16946. }
  16947. int main (void)
  16948. {
  16949. char b[16];
  16950. char *r = dummy(&b[0]);
  16951. if(r)
  16952. return (int)*r;
  16953. ;
  16954. return 0;
  16955. }
  16956. _ACEOF
  16957. if ac_fn_c_try_compile "$LINENO"
  16958. then :
  16959. supports_symbol_hiding="yes"
  16960. if test -f conftest.err; then
  16961. grep 'visibility' conftest.err >/dev/null
  16962. if test "$?" -eq "0"; then
  16963. supports_symbol_hiding="no"
  16964. fi
  16965. fi
  16966. else $as_nop
  16967. supports_symbol_hiding="no"
  16968. echo " " >&6
  16969. sed 's/^/cc-src: /' conftest.$ac_ext >&6
  16970. sed 's/^/cc-err: /' conftest.err >&6
  16971. echo " " >&6
  16972. fi
  16973. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  16974. CFLAGS="$tmp_save_CFLAGS"
  16975. fi
  16976. if test "$supports_symbol_hiding" = "yes"; then
  16977. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  16978. printf "%s\n" "yes" >&6; }
  16979. symbol_hiding_CFLAGS="$tmp_CFLAGS"
  16980. symbol_hiding_EXTERN="$tmp_EXTERN"
  16981. else
  16982. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  16983. printf "%s\n" "no" >&6; }
  16984. fi
  16985. supports_curldebug="unknown"
  16986. if test "$want_curldebug" = "yes"; then
  16987. if test "x$enable_shared" != "xno" &&
  16988. test "x$enable_shared" != "xyes"; then
  16989. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: unknown enable_shared setting." >&5
  16990. printf "%s\n" "$as_me: WARNING: unknown enable_shared setting." >&2;}
  16991. supports_curldebug="no"
  16992. fi
  16993. if test "x$enable_static" != "xno" &&
  16994. test "x$enable_static" != "xyes"; then
  16995. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: unknown enable_static setting." >&5
  16996. printf "%s\n" "$as_me: WARNING: unknown enable_static setting." >&2;}
  16997. supports_curldebug="no"
  16998. fi
  16999. if test "$supports_curldebug" != "no"; then
  17000. if test "$enable_shared" = "yes" &&
  17001. test "x$xc_lt_shlib_use_no_undefined" = 'xyes'; then
  17002. supports_curldebug="no"
  17003. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: shared library does not support undefined symbols." >&5
  17004. printf "%s\n" "$as_me: WARNING: shared library does not support undefined symbols." >&2;}
  17005. fi
  17006. fi
  17007. fi
  17008. #
  17009. if test "$want_curldebug" = "yes"; then
  17010. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if curl debug memory tracking can be enabled" >&5
  17011. printf %s "checking if curl debug memory tracking can be enabled... " >&6; }
  17012. test "$supports_curldebug" = "no" || supports_curldebug="yes"
  17013. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supports_curldebug" >&5
  17014. printf "%s\n" "$supports_curldebug" >&6; }
  17015. if test "$supports_curldebug" = "no"; then
  17016. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cannot enable curl debug memory tracking." >&5
  17017. printf "%s\n" "$as_me: WARNING: cannot enable curl debug memory tracking." >&2;}
  17018. want_curldebug="no"
  17019. fi
  17020. fi
  17021. if test x$want_curldebug = xyes; then
  17022. CURLDEBUG_TRUE=
  17023. CURLDEBUG_FALSE='#'
  17024. else
  17025. CURLDEBUG_TRUE='#'
  17026. CURLDEBUG_FALSE=
  17027. fi
  17028. supports_unittests=yes
  17029. # cross-compilation of unit tests static library/programs fails when
  17030. # libcurl shared library is built. This might be due to a libtool or
  17031. # automake issue. In this case we disable unit tests.
  17032. if test "x$cross_compiling" != "xno" &&
  17033. test "x$enable_shared" != "xno"; then
  17034. supports_unittests=no
  17035. fi
  17036. # IRIX 6.5.24 gcc 3.3 autobuilds fail unittests library compilation due to
  17037. # a problem related with OpenSSL headers and library versions not matching.
  17038. # Disable unit tests while time to further investigate this is found.
  17039. case $host in
  17040. mips-sgi-irix6.5)
  17041. if test "$compiler_id" = "GNU_C"; then
  17042. supports_unittests=no
  17043. fi
  17044. ;;
  17045. esac
  17046. # All AIX autobuilds fails unit tests linking against unittests library
  17047. # due to unittests library being built with no symbols or members. Libtool ?
  17048. # Disable unit tests while time to further investigate this is found.
  17049. case $host_os in
  17050. aix*)
  17051. supports_unittests=no
  17052. ;;
  17053. esac
  17054. if test "x$want_debug" = "xyes" &&
  17055. test "x$supports_unittests" = "xyes"; then
  17056. want_unittests=yes
  17057. else
  17058. want_unittests=no
  17059. fi
  17060. if test x$want_unittests = xyes; then
  17061. BUILD_UNITTESTS_TRUE=
  17062. BUILD_UNITTESTS_FALSE='#'
  17063. else
  17064. BUILD_UNITTESTS_TRUE='#'
  17065. BUILD_UNITTESTS_FALSE=
  17066. fi
  17067. # For original MinGW (ie not MinGW-w64) define the Windows minimum supported OS
  17068. # version to Windows XP (0x501) if it hasn't already been defined by the user.
  17069. # Without this override original MinGW defaults the version to Windows NT 4.0.
  17070. # Note original MinGW sets _WIN32_WINNT if not defined to whatever WINVER is.
  17071. case $host in
  17072. *-*-mingw32*)
  17073. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if MinGW minimum supported OS should be set to XP" >&5
  17074. printf %s "checking if MinGW minimum supported OS should be set to XP... " >&6; }
  17075. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17076. /* end confdefs.h. */
  17077. #include <_mingw.h>
  17078. int main (void)
  17079. {
  17080. #if defined(__MINGW64_VERSION_MAJOR) || \
  17081. defined(WINVER) || \
  17082. defined(_WIN32_WINNT)
  17083. #error
  17084. #endif
  17085. ;
  17086. return 0;
  17087. }
  17088. _ACEOF
  17089. if ac_fn_c_try_compile "$LINENO"
  17090. then :
  17091. CPPFLAGS="$CPPFLAGS -DWINVER=0x501"
  17092. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  17093. printf "%s\n" "yes" >&6; }
  17094. else $as_nop
  17095. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  17096. printf "%s\n" "no" >&6; }
  17097. fi
  17098. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  17099. ;;
  17100. esac
  17101. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for windows.h" >&5
  17102. printf %s "checking for windows.h... " >&6; }
  17103. if test ${curl_cv_header_windows_h+y}
  17104. then :
  17105. printf %s "(cached) " >&6
  17106. else $as_nop
  17107. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17108. /* end confdefs.h. */
  17109. #undef inline
  17110. #ifndef WIN32_LEAN_AND_MEAN
  17111. #define WIN32_LEAN_AND_MEAN
  17112. #endif
  17113. #include <windows.h>
  17114. int main (void)
  17115. {
  17116. #if defined(__CYGWIN__) || defined(__CEGCC__)
  17117. HAVE_WINDOWS_H shall not be defined.
  17118. #else
  17119. int dummy=2*WINVER;
  17120. #endif
  17121. ;
  17122. return 0;
  17123. }
  17124. _ACEOF
  17125. if ac_fn_c_try_compile "$LINENO"
  17126. then :
  17127. curl_cv_header_windows_h="yes"
  17128. else $as_nop
  17129. curl_cv_header_windows_h="no"
  17130. fi
  17131. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  17132. fi
  17133. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $curl_cv_header_windows_h" >&5
  17134. printf "%s\n" "$curl_cv_header_windows_h" >&6; }
  17135. case "$curl_cv_header_windows_h" in
  17136. yes)
  17137. printf "%s\n" "#define HAVE_WINDOWS_H 1" >>confdefs.h
  17138. ;;
  17139. esac
  17140. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether build target is a native Windows one" >&5
  17141. printf %s "checking whether build target is a native Windows one... " >&6; }
  17142. if test ${curl_cv_native_windows+y}
  17143. then :
  17144. printf %s "(cached) " >&6
  17145. else $as_nop
  17146. if test "$curl_cv_header_windows_h" = "no"; then
  17147. curl_cv_native_windows="no"
  17148. else
  17149. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17150. /* end confdefs.h. */
  17151. int main (void)
  17152. {
  17153. #if defined(__MINGW32__) || defined(__MINGW32CE__) || \
  17154. (defined(_MSC_VER) && (defined(_WIN32) || defined(_WIN64)))
  17155. int dummy=1;
  17156. #else
  17157. Not a native Windows build target.
  17158. #endif
  17159. ;
  17160. return 0;
  17161. }
  17162. _ACEOF
  17163. if ac_fn_c_try_compile "$LINENO"
  17164. then :
  17165. curl_cv_native_windows="yes"
  17166. else $as_nop
  17167. curl_cv_native_windows="no"
  17168. fi
  17169. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  17170. fi
  17171. fi
  17172. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $curl_cv_native_windows" >&5
  17173. printf "%s\n" "$curl_cv_native_windows" >&6; }
  17174. if test "x$curl_cv_native_windows" = xyes; then
  17175. DOING_NATIVE_WINDOWS_TRUE=
  17176. DOING_NATIVE_WINDOWS_FALSE='#'
  17177. else
  17178. DOING_NATIVE_WINDOWS_TRUE='#'
  17179. DOING_NATIVE_WINDOWS_FALSE=
  17180. fi
  17181. case X-"$curl_cv_native_windows" in
  17182. X-yes)
  17183. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for winsock2.h" >&5
  17184. printf %s "checking for winsock2.h... " >&6; }
  17185. if test ${curl_cv_header_winsock2_h+y}
  17186. then :
  17187. printf %s "(cached) " >&6
  17188. else $as_nop
  17189. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17190. /* end confdefs.h. */
  17191. #undef inline
  17192. #ifndef WIN32_LEAN_AND_MEAN
  17193. #define WIN32_LEAN_AND_MEAN
  17194. #endif
  17195. #include <windows.h>
  17196. #include <winsock2.h>
  17197. int main (void)
  17198. {
  17199. #if defined(__CYGWIN__) || defined(__CEGCC__) || defined(__MINGW32CE__)
  17200. HAVE_WINSOCK2_H shall not be defined.
  17201. #else
  17202. int dummy=2*IPPROTO_ESP;
  17203. #endif
  17204. ;
  17205. return 0;
  17206. }
  17207. _ACEOF
  17208. if ac_fn_c_try_compile "$LINENO"
  17209. then :
  17210. curl_cv_header_winsock2_h="yes"
  17211. else $as_nop
  17212. curl_cv_header_winsock2_h="no"
  17213. fi
  17214. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  17215. fi
  17216. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $curl_cv_header_winsock2_h" >&5
  17217. printf "%s\n" "$curl_cv_header_winsock2_h" >&6; }
  17218. case "$curl_cv_header_winsock2_h" in
  17219. yes)
  17220. printf "%s\n" "#define HAVE_WINSOCK2_H 1" >>confdefs.h
  17221. ;;
  17222. esac
  17223. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ws2tcpip.h" >&5
  17224. printf %s "checking for ws2tcpip.h... " >&6; }
  17225. if test ${curl_cv_header_ws2tcpip_h+y}
  17226. then :
  17227. printf %s "(cached) " >&6
  17228. else $as_nop
  17229. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17230. /* end confdefs.h. */
  17231. #undef inline
  17232. #ifndef WIN32_LEAN_AND_MEAN
  17233. #define WIN32_LEAN_AND_MEAN
  17234. #endif
  17235. #include <windows.h>
  17236. #include <winsock2.h>
  17237. #include <ws2tcpip.h>
  17238. int main (void)
  17239. {
  17240. #if defined(__CYGWIN__) || defined(__CEGCC__) || defined(__MINGW32CE__)
  17241. HAVE_WS2TCPIP_H shall not be defined.
  17242. #else
  17243. int dummy=2*IP_PKTINFO;
  17244. #endif
  17245. ;
  17246. return 0;
  17247. }
  17248. _ACEOF
  17249. if ac_fn_c_try_compile "$LINENO"
  17250. then :
  17251. curl_cv_header_ws2tcpip_h="yes"
  17252. else $as_nop
  17253. curl_cv_header_ws2tcpip_h="no"
  17254. fi
  17255. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  17256. fi
  17257. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $curl_cv_header_ws2tcpip_h" >&5
  17258. printf "%s\n" "$curl_cv_header_ws2tcpip_h" >&6; }
  17259. case "$curl_cv_header_ws2tcpip_h" in
  17260. yes)
  17261. printf "%s\n" "#define HAVE_WS2TCPIP_H 1" >>confdefs.h
  17262. ;;
  17263. esac
  17264. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for wincrypt.h" >&5
  17265. printf %s "checking for wincrypt.h... " >&6; }
  17266. if test ${curl_cv_header_wincrypt_h+y}
  17267. then :
  17268. printf %s "(cached) " >&6
  17269. else $as_nop
  17270. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17271. /* end confdefs.h. */
  17272. #undef inline
  17273. #ifndef WIN32_LEAN_AND_MEAN
  17274. #define WIN32_LEAN_AND_MEAN
  17275. #endif
  17276. #include <windows.h>
  17277. #include <wincrypt.h>
  17278. int main (void)
  17279. {
  17280. int dummy=2*PROV_RSA_FULL;
  17281. ;
  17282. return 0;
  17283. }
  17284. _ACEOF
  17285. if ac_fn_c_try_compile "$LINENO"
  17286. then :
  17287. curl_cv_header_wincrypt_h="yes"
  17288. else $as_nop
  17289. curl_cv_header_wincrypt_h="no"
  17290. fi
  17291. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  17292. fi
  17293. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $curl_cv_header_wincrypt_h" >&5
  17294. printf "%s\n" "$curl_cv_header_wincrypt_h" >&6; }
  17295. case "$curl_cv_header_wincrypt_h" in
  17296. yes)
  17297. printf "%s\n" "#define HAVE_WINCRYPT_H 1" >>confdefs.h
  17298. ;;
  17299. esac
  17300. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for winldap.h" >&5
  17301. printf %s "checking for winldap.h... " >&6; }
  17302. if test ${curl_cv_header_winldap_h+y}
  17303. then :
  17304. printf %s "(cached) " >&6
  17305. else $as_nop
  17306. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17307. /* end confdefs.h. */
  17308. #undef inline
  17309. #ifdef HAVE_WINDOWS_H
  17310. #ifndef WIN32_LEAN_AND_MEAN
  17311. #define WIN32_LEAN_AND_MEAN
  17312. #endif
  17313. #include <windows.h>
  17314. #endif
  17315. #include <winldap.h>
  17316. int main (void)
  17317. {
  17318. #if defined(__CYGWIN__) || defined(__CEGCC__)
  17319. HAVE_WINLDAP_H shall not be defined.
  17320. #else
  17321. LDAP *ldp = ldap_init("dummy", LDAP_PORT);
  17322. ULONG res = ldap_unbind(ldp);
  17323. #endif
  17324. ;
  17325. return 0;
  17326. }
  17327. _ACEOF
  17328. if ac_fn_c_try_compile "$LINENO"
  17329. then :
  17330. curl_cv_header_winldap_h="yes"
  17331. else $as_nop
  17332. curl_cv_header_winldap_h="no"
  17333. fi
  17334. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  17335. fi
  17336. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $curl_cv_header_winldap_h" >&5
  17337. printf "%s\n" "$curl_cv_header_winldap_h" >&6; }
  17338. case "$curl_cv_header_winldap_h" in
  17339. yes)
  17340. printf "%s\n" "#define HAVE_WINLDAP_H 1" >>confdefs.h
  17341. ;;
  17342. esac
  17343. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for winber.h" >&5
  17344. printf %s "checking for winber.h... " >&6; }
  17345. if test ${curl_cv_header_winber_h+y}
  17346. then :
  17347. printf %s "(cached) " >&6
  17348. else $as_nop
  17349. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17350. /* end confdefs.h. */
  17351. #undef inline
  17352. #ifdef HAVE_WINDOWS_H
  17353. #ifndef WIN32_LEAN_AND_MEAN
  17354. #define WIN32_LEAN_AND_MEAN
  17355. #endif
  17356. #include <windows.h>
  17357. #endif
  17358. #include <winldap.h>
  17359. #include <winber.h>
  17360. int main (void)
  17361. {
  17362. #if defined(__CYGWIN__) || defined(__CEGCC__)
  17363. HAVE_WINBER_H shall not be defined.
  17364. #else
  17365. BERVAL *bvp = NULL;
  17366. BerElement *bep = ber_init(bvp);
  17367. ber_free(bep, 1);
  17368. #endif
  17369. ;
  17370. return 0;
  17371. }
  17372. _ACEOF
  17373. if ac_fn_c_try_compile "$LINENO"
  17374. then :
  17375. curl_cv_header_winber_h="yes"
  17376. else $as_nop
  17377. curl_cv_header_winber_h="no"
  17378. fi
  17379. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  17380. fi
  17381. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $curl_cv_header_winber_h" >&5
  17382. printf "%s\n" "$curl_cv_header_winber_h" >&6; }
  17383. case "$curl_cv_header_winber_h" in
  17384. yes)
  17385. printf "%s\n" "#define HAVE_WINBER_H 1" >>confdefs.h
  17386. ;;
  17387. esac
  17388. ;;
  17389. *)
  17390. curl_cv_header_winsock2_h="no"
  17391. curl_cv_header_ws2tcpip_h="no"
  17392. curl_cv_header_wincrypt_h="no"
  17393. curl_cv_header_winldap_h="no"
  17394. curl_cv_header_winber_h="no"
  17395. ;;
  17396. esac
  17397. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether build target supports WIN32 file API" >&5
  17398. printf %s "checking whether build target supports WIN32 file API... " >&6; }
  17399. curl_win32_file_api="no"
  17400. if test "$curl_cv_header_windows_h" = "yes"; then
  17401. if test x"$enable_largefile" != "xno"; then
  17402. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17403. /* end confdefs.h. */
  17404. int main (void)
  17405. {
  17406. #if !defined(_WIN32_WCE) && \
  17407. (defined(__MINGW32__) || \
  17408. (defined(_MSC_VER) && (defined(_WIN32) || defined(_WIN64))))
  17409. int dummy=1;
  17410. #else
  17411. WIN32 large file API not supported.
  17412. #endif
  17413. ;
  17414. return 0;
  17415. }
  17416. _ACEOF
  17417. if ac_fn_c_try_compile "$LINENO"
  17418. then :
  17419. curl_win32_file_api="win32_large_files"
  17420. fi
  17421. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  17422. fi
  17423. if test "$curl_win32_file_api" = "no"; then
  17424. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17425. /* end confdefs.h. */
  17426. int main (void)
  17427. {
  17428. #if defined(_WIN32_WCE) || defined(__MINGW32__) || defined(_MSC_VER)
  17429. int dummy=1;
  17430. #else
  17431. WIN32 small file API not supported.
  17432. #endif
  17433. ;
  17434. return 0;
  17435. }
  17436. _ACEOF
  17437. if ac_fn_c_try_compile "$LINENO"
  17438. then :
  17439. curl_win32_file_api="win32_small_files"
  17440. fi
  17441. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  17442. fi
  17443. fi
  17444. case "$curl_win32_file_api" in
  17445. win32_large_files)
  17446. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes (large file enabled)" >&5
  17447. printf "%s\n" "yes (large file enabled)" >&6; }
  17448. printf "%s\n" "#define USE_WIN32_LARGE_FILES 1" >>confdefs.h
  17449. USE_WIN32_LARGE_FILES=1
  17450. ;;
  17451. win32_small_files)
  17452. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes (large file disabled)" >&5
  17453. printf "%s\n" "yes (large file disabled)" >&6; }
  17454. printf "%s\n" "#define USE_WIN32_SMALL_FILES 1" >>confdefs.h
  17455. USE_WIN32_SMALL_FILES=1
  17456. ;;
  17457. *)
  17458. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  17459. printf "%s\n" "no" >&6; }
  17460. ;;
  17461. esac
  17462. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether build target supports WIN32 crypto API" >&5
  17463. printf %s "checking whether build target supports WIN32 crypto API... " >&6; }
  17464. curl_win32_crypto_api="no"
  17465. if test "$curl_cv_header_wincrypt_h" = "yes"; then
  17466. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17467. /* end confdefs.h. */
  17468. #undef inline
  17469. #ifndef WIN32_LEAN_AND_MEAN
  17470. #define WIN32_LEAN_AND_MEAN
  17471. #endif
  17472. #include <windows.h>
  17473. #include <wincrypt.h>
  17474. int main (void)
  17475. {
  17476. HCRYPTPROV hCryptProv;
  17477. if(CryptAcquireContext(&hCryptProv, NULL, NULL, PROV_RSA_FULL,
  17478. CRYPT_VERIFYCONTEXT | CRYPT_SILENT)) {
  17479. CryptReleaseContext(hCryptProv, 0);
  17480. }
  17481. ;
  17482. return 0;
  17483. }
  17484. _ACEOF
  17485. if ac_fn_c_try_compile "$LINENO"
  17486. then :
  17487. curl_win32_crypto_api="yes"
  17488. fi
  17489. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  17490. fi
  17491. case "$curl_win32_crypto_api" in
  17492. yes)
  17493. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  17494. printf "%s\n" "yes" >&6; }
  17495. printf "%s\n" "#define USE_WIN32_CRYPTO 1" >>confdefs.h
  17496. USE_WIN32_CRYPTO=1
  17497. ;;
  17498. *)
  17499. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  17500. printf "%s\n" "no" >&6; }
  17501. ;;
  17502. esac
  17503. tst_cflags="no"
  17504. case $host_os in
  17505. darwin*)
  17506. tst_cflags="yes"
  17507. ;;
  17508. esac
  17509. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for good-to-use Darwin CFLAGS" >&5
  17510. printf %s "checking for good-to-use Darwin CFLAGS... " >&6; }
  17511. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $tst_cflags" >&5
  17512. printf "%s\n" "$tst_cflags" >&6; };
  17513. if test "$tst_cflags" = "yes"; then
  17514. old_CFLAGS=$CFLAGS
  17515. CFLAGS="$CFLAGS -Werror=partial-availability"
  17516. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -Werror=partial-availability" >&5
  17517. printf %s "checking whether $CC accepts -Werror=partial-availability... " >&6; }
  17518. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17519. /* end confdefs.h. */
  17520. int main (void)
  17521. {
  17522. ;
  17523. return 0;
  17524. }
  17525. _ACEOF
  17526. if ac_fn_c_try_compile "$LINENO"
  17527. then :
  17528. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  17529. printf "%s\n" "yes" >&6; }
  17530. else $as_nop
  17531. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  17532. printf "%s\n" "no" >&6; }
  17533. CFLAGS=$old_CFLAGS
  17534. fi
  17535. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  17536. fi
  17537. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to link macOS CoreFoundation and SystemConfiguration framework" >&5
  17538. printf %s "checking whether to link macOS CoreFoundation and SystemConfiguration framework... " >&6; }
  17539. case $host_os in
  17540. darwin*)
  17541. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17542. /* end confdefs.h. */
  17543. #include <TargetConditionals.h>
  17544. int main (void)
  17545. {
  17546. #if (TARGET_OS_OSX)
  17547. return 0;
  17548. #else
  17549. #error Not a macOS
  17550. #endif
  17551. ;
  17552. return 0;
  17553. }
  17554. _ACEOF
  17555. if ac_fn_c_try_compile "$LINENO"
  17556. then :
  17557. build_for_macos="yes"
  17558. else $as_nop
  17559. build_for_macos="no"
  17560. fi
  17561. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  17562. if test "x$build_for_macos" != xno; then
  17563. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  17564. printf "%s\n" "yes" >&6; }
  17565. LDFLAGS="$LDFLAGS -framework CoreFoundation -framework SystemConfiguration"
  17566. else
  17567. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  17568. printf "%s\n" "no" >&6; }
  17569. fi
  17570. ;;
  17571. *)
  17572. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  17573. printf "%s\n" "no" >&6; }
  17574. esac
  17575. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking to see if the compiler supports __builtin_available()" >&5
  17576. printf %s "checking to see if the compiler supports __builtin_available()... " >&6; }
  17577. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17578. /* end confdefs.h. */
  17579. #include <stdlib.h>
  17580. int main (void)
  17581. {
  17582. if (__builtin_available(macOS 10.8, iOS 5.0, *)) {}
  17583. ;
  17584. return 0;
  17585. }
  17586. _ACEOF
  17587. if ac_fn_c_try_compile "$LINENO"
  17588. then :
  17589. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  17590. printf "%s\n" "yes" >&6; }
  17591. printf "%s\n" "#define HAVE_BUILTIN_AVAILABLE 1" >>confdefs.h
  17592. else $as_nop
  17593. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  17594. printf "%s\n" "no" >&6; }
  17595. fi
  17596. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  17597. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to support http" >&5
  17598. printf %s "checking whether to support http... " >&6; }
  17599. # Check whether --enable-http was given.
  17600. if test ${enable_http+y}
  17601. then :
  17602. enableval=$enable_http; case "$enableval" in
  17603. no)
  17604. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  17605. printf "%s\n" "no" >&6; }
  17606. printf "%s\n" "#define CURL_DISABLE_HTTP 1" >>confdefs.h
  17607. disable_http="yes"
  17608. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: disable HTTP disables FTP over proxy and RTSP" >&5
  17609. printf "%s\n" "$as_me: WARNING: disable HTTP disables FTP over proxy and RTSP" >&2;}
  17610. CURL_DISABLE_HTTP=1
  17611. printf "%s\n" "#define CURL_DISABLE_RTSP 1" >>confdefs.h
  17612. CURL_DISABLE_RTSP=1
  17613. printf "%s\n" "#define CURL_DISABLE_ALTSVC 1" >>confdefs.h
  17614. printf "%s\n" "#define CURL_DISABLE_HSTS 1" >>confdefs.h
  17615. curl_h1_msg="no (--enable-http, --with-hyper)"
  17616. curl_altsvc_msg="no";
  17617. curl_hsts_msg="no (--enable-hsts)";
  17618. enable_altsvc="no"
  17619. hsts="no"
  17620. ;;
  17621. *) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  17622. printf "%s\n" "yes" >&6; }
  17623. ;;
  17624. esac
  17625. else $as_nop
  17626. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  17627. printf "%s\n" "yes" >&6; }
  17628. fi
  17629. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to support ftp" >&5
  17630. printf %s "checking whether to support ftp... " >&6; }
  17631. # Check whether --enable-ftp was given.
  17632. if test ${enable_ftp+y}
  17633. then :
  17634. enableval=$enable_ftp; case "$enableval" in
  17635. no)
  17636. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  17637. printf "%s\n" "no" >&6; }
  17638. printf "%s\n" "#define CURL_DISABLE_FTP 1" >>confdefs.h
  17639. CURL_DISABLE_FTP=1
  17640. ;;
  17641. *) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  17642. printf "%s\n" "yes" >&6; }
  17643. ;;
  17644. esac
  17645. else $as_nop
  17646. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  17647. printf "%s\n" "yes" >&6; }
  17648. fi
  17649. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to support file" >&5
  17650. printf %s "checking whether to support file... " >&6; }
  17651. # Check whether --enable-file was given.
  17652. if test ${enable_file+y}
  17653. then :
  17654. enableval=$enable_file; case "$enableval" in
  17655. no)
  17656. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  17657. printf "%s\n" "no" >&6; }
  17658. printf "%s\n" "#define CURL_DISABLE_FILE 1" >>confdefs.h
  17659. CURL_DISABLE_FILE=1
  17660. ;;
  17661. *) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  17662. printf "%s\n" "yes" >&6; }
  17663. ;;
  17664. esac
  17665. else $as_nop
  17666. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  17667. printf "%s\n" "yes" >&6; }
  17668. fi
  17669. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to support ldap" >&5
  17670. printf %s "checking whether to support ldap... " >&6; }
  17671. # Check whether --enable-ldap was given.
  17672. if test ${enable_ldap+y}
  17673. then :
  17674. enableval=$enable_ldap; case "$enableval" in
  17675. no)
  17676. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  17677. printf "%s\n" "no" >&6; }
  17678. printf "%s\n" "#define CURL_DISABLE_LDAP 1" >>confdefs.h
  17679. CURL_DISABLE_LDAP=1
  17680. ;;
  17681. yes)
  17682. ldap_askedfor="yes"
  17683. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  17684. printf "%s\n" "yes" >&6; }
  17685. ;;
  17686. *)
  17687. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  17688. printf "%s\n" "yes" >&6; }
  17689. ;;
  17690. esac
  17691. else $as_nop
  17692. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  17693. printf "%s\n" "yes" >&6; }
  17694. fi
  17695. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to support ldaps" >&5
  17696. printf %s "checking whether to support ldaps... " >&6; }
  17697. # Check whether --enable-ldaps was given.
  17698. if test ${enable_ldaps+y}
  17699. then :
  17700. enableval=$enable_ldaps; case "$enableval" in
  17701. no)
  17702. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  17703. printf "%s\n" "no" >&6; }
  17704. printf "%s\n" "#define CURL_DISABLE_LDAPS 1" >>confdefs.h
  17705. CURL_DISABLE_LDAPS=1
  17706. ;;
  17707. *) if test "x$CURL_DISABLE_LDAP" = "x1" ; then
  17708. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: LDAP needs to be enabled to support LDAPS" >&5
  17709. printf "%s\n" "LDAP needs to be enabled to support LDAPS" >&6; }
  17710. printf "%s\n" "#define CURL_DISABLE_LDAPS 1" >>confdefs.h
  17711. CURL_DISABLE_LDAPS=1
  17712. else
  17713. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  17714. printf "%s\n" "yes" >&6; }
  17715. printf "%s\n" "#define HAVE_LDAP_SSL 1" >>confdefs.h
  17716. HAVE_LDAP_SSL=1
  17717. fi
  17718. ;;
  17719. esac
  17720. else $as_nop
  17721. if test "x$CURL_DISABLE_LDAP" = "x1" ; then
  17722. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  17723. printf "%s\n" "no" >&6; }
  17724. printf "%s\n" "#define CURL_DISABLE_LDAPS 1" >>confdefs.h
  17725. CURL_DISABLE_LDAPS=1
  17726. else
  17727. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  17728. printf "%s\n" "yes" >&6; }
  17729. printf "%s\n" "#define HAVE_LDAP_SSL 1" >>confdefs.h
  17730. HAVE_LDAP_SSL=1
  17731. fi
  17732. fi
  17733. OPT_HYPER="no"
  17734. # Check whether --with-hyper was given.
  17735. if test ${with_hyper+y}
  17736. then :
  17737. withval=$with_hyper; OPT_HYPER=$withval
  17738. fi
  17739. case "$OPT_HYPER" in
  17740. no)
  17741. want_hyper="no"
  17742. ;;
  17743. yes)
  17744. want_hyper="default"
  17745. want_hyper_path=""
  17746. ;;
  17747. *)
  17748. want_hyper="yes"
  17749. want_hyper_path="$withval"
  17750. ;;
  17751. esac
  17752. if test X"$want_hyper" != Xno; then
  17753. if test "x$disable_http" = "xyes"; then
  17754. as_fn_error $? "--with-hyper is not compatible with --disable-http" "$LINENO" 5
  17755. fi
  17756. CLEANLDFLAGS="$LDFLAGS"
  17757. CLEANCPPFLAGS="$CPPFLAGS"
  17758. CLEANLIBS="$LIBS"
  17759. if test -n "$PKG_CONFIG"; then
  17760. PKGCONFIG="$PKG_CONFIG"
  17761. else
  17762. if test -n "$ac_tool_prefix"; then
  17763. # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
  17764. set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
  17765. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  17766. printf %s "checking for $ac_word... " >&6; }
  17767. if test ${ac_cv_path_PKGCONFIG+y}
  17768. then :
  17769. printf %s "(cached) " >&6
  17770. else $as_nop
  17771. case $PKGCONFIG in
  17772. [\\/]* | ?:[\\/]*)
  17773. ac_cv_path_PKGCONFIG="$PKGCONFIG" # Let the user override the test with a path.
  17774. ;;
  17775. *)
  17776. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  17777. as_dummy="$PATH:/usr/bin:/usr/local/bin"
  17778. for as_dir in $as_dummy
  17779. do
  17780. IFS=$as_save_IFS
  17781. case $as_dir in #(((
  17782. '') as_dir=./ ;;
  17783. */) ;;
  17784. *) as_dir=$as_dir/ ;;
  17785. esac
  17786. for ac_exec_ext in '' $ac_executable_extensions; do
  17787. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  17788. ac_cv_path_PKGCONFIG="$as_dir$ac_word$ac_exec_ext"
  17789. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  17790. break 2
  17791. fi
  17792. done
  17793. done
  17794. IFS=$as_save_IFS
  17795. ;;
  17796. esac
  17797. fi
  17798. PKGCONFIG=$ac_cv_path_PKGCONFIG
  17799. if test -n "$PKGCONFIG"; then
  17800. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PKGCONFIG" >&5
  17801. printf "%s\n" "$PKGCONFIG" >&6; }
  17802. else
  17803. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  17804. printf "%s\n" "no" >&6; }
  17805. fi
  17806. fi
  17807. if test -z "$ac_cv_path_PKGCONFIG"; then
  17808. ac_pt_PKGCONFIG=$PKGCONFIG
  17809. # Extract the first word of "pkg-config", so it can be a program name with args.
  17810. set dummy pkg-config; ac_word=$2
  17811. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  17812. printf %s "checking for $ac_word... " >&6; }
  17813. if test ${ac_cv_path_ac_pt_PKGCONFIG+y}
  17814. then :
  17815. printf %s "(cached) " >&6
  17816. else $as_nop
  17817. case $ac_pt_PKGCONFIG in
  17818. [\\/]* | ?:[\\/]*)
  17819. ac_cv_path_ac_pt_PKGCONFIG="$ac_pt_PKGCONFIG" # Let the user override the test with a path.
  17820. ;;
  17821. *)
  17822. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  17823. as_dummy="$PATH:/usr/bin:/usr/local/bin"
  17824. for as_dir in $as_dummy
  17825. do
  17826. IFS=$as_save_IFS
  17827. case $as_dir in #(((
  17828. '') as_dir=./ ;;
  17829. */) ;;
  17830. *) as_dir=$as_dir/ ;;
  17831. esac
  17832. for ac_exec_ext in '' $ac_executable_extensions; do
  17833. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  17834. ac_cv_path_ac_pt_PKGCONFIG="$as_dir$ac_word$ac_exec_ext"
  17835. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  17836. break 2
  17837. fi
  17838. done
  17839. done
  17840. IFS=$as_save_IFS
  17841. ;;
  17842. esac
  17843. fi
  17844. ac_pt_PKGCONFIG=$ac_cv_path_ac_pt_PKGCONFIG
  17845. if test -n "$ac_pt_PKGCONFIG"; then
  17846. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKGCONFIG" >&5
  17847. printf "%s\n" "$ac_pt_PKGCONFIG" >&6; }
  17848. else
  17849. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  17850. printf "%s\n" "no" >&6; }
  17851. fi
  17852. if test "x$ac_pt_PKGCONFIG" = x; then
  17853. PKGCONFIG="no"
  17854. else
  17855. case $cross_compiling:$ac_tool_warned in
  17856. yes:)
  17857. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  17858. printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  17859. ac_tool_warned=yes ;;
  17860. esac
  17861. PKGCONFIG=$ac_pt_PKGCONFIG
  17862. fi
  17863. else
  17864. PKGCONFIG="$ac_cv_path_PKGCONFIG"
  17865. fi
  17866. fi
  17867. if test "x$PKGCONFIG" != "xno"; then
  17868. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for hyper options with pkg-config" >&5
  17869. printf %s "checking for hyper options with pkg-config... " >&6; }
  17870. itexists=`
  17871. if test -n "$want_hyper_path"; then
  17872. PKG_CONFIG_LIBDIR="$want_hyper_path"
  17873. export PKG_CONFIG_LIBDIR
  17874. fi
  17875. $PKGCONFIG --exists hyper >/dev/null 2>&1 && echo 1`
  17876. if test -z "$itexists"; then
  17877. PKGCONFIG="no"
  17878. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  17879. printf "%s\n" "no" >&6; }
  17880. else
  17881. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: found" >&5
  17882. printf "%s\n" "found" >&6; }
  17883. fi
  17884. fi
  17885. if test "$PKGCONFIG" != "no" ; then
  17886. LIB_HYPER=`
  17887. if test -n "$want_hyper_path"; then
  17888. PKG_CONFIG_LIBDIR="$want_hyper_path"
  17889. export PKG_CONFIG_LIBDIR
  17890. fi
  17891. $PKGCONFIG --libs-only-l hyper`
  17892. CPP_HYPER=`
  17893. if test -n "$want_hyper_path"; then
  17894. PKG_CONFIG_LIBDIR="$want_hyper_path"
  17895. export PKG_CONFIG_LIBDIR
  17896. fi
  17897. $PKGCONFIG --cflags-only-I hyper`
  17898. LD_HYPER=`
  17899. if test -n "$want_hyper_path"; then
  17900. PKG_CONFIG_LIBDIR="$want_hyper_path"
  17901. export PKG_CONFIG_LIBDIR
  17902. fi
  17903. $PKGCONFIG --libs-only-L hyper`
  17904. else
  17905. LIB_HYPER="-lhyper -ldl -lpthread -lm"
  17906. if test X"$want_hyper" != Xdefault; then
  17907. CPP_HYPER=-I"$want_hyper_path/capi/include"
  17908. LD_HYPER="-L$want_hyper_path/target/debug"
  17909. fi
  17910. fi
  17911. if test -n "$LIB_HYPER"; then
  17912. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: -l is $LIB_HYPER" >&5
  17913. printf "%s\n" "$as_me: -l is $LIB_HYPER" >&6;}
  17914. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: -I is $CPP_HYPER" >&5
  17915. printf "%s\n" "$as_me: -I is $CPP_HYPER" >&6;}
  17916. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: -L is $LD_HYPER" >&5
  17917. printf "%s\n" "$as_me: -L is $LD_HYPER" >&6;}
  17918. LDFLAGS="$LDFLAGS $LD_HYPER"
  17919. CPPFLAGS="$CPPFLAGS $CPP_HYPER"
  17920. LIBS="$LIB_HYPER $LIBS"
  17921. if test "x$cross_compiling" != "xyes"; then
  17922. DIR_HYPER=`echo $LD_HYPER | $SED -e 's/^-L//'`
  17923. fi
  17924. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for hyper_io_new in -lhyper" >&5
  17925. printf %s "checking for hyper_io_new in -lhyper... " >&6; }
  17926. if test ${ac_cv_lib_hyper_hyper_io_new+y}
  17927. then :
  17928. printf %s "(cached) " >&6
  17929. else $as_nop
  17930. ac_check_lib_save_LIBS=$LIBS
  17931. LIBS="-lhyper $LIBS"
  17932. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17933. /* end confdefs.h. */
  17934. #ifdef __cplusplus
  17935. extern "C"
  17936. #endif
  17937. char hyper_io_new ();
  17938. int main (void)
  17939. {
  17940. return hyper_io_new ();
  17941. ;
  17942. return 0;
  17943. }
  17944. _ACEOF
  17945. if ac_fn_c_try_link "$LINENO"
  17946. then :
  17947. ac_cv_lib_hyper_hyper_io_new=yes
  17948. else $as_nop
  17949. ac_cv_lib_hyper_hyper_io_new=no
  17950. fi
  17951. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  17952. conftest$ac_exeext conftest.$ac_ext
  17953. LIBS=$ac_check_lib_save_LIBS
  17954. fi
  17955. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_hyper_hyper_io_new" >&5
  17956. printf "%s\n" "$ac_cv_lib_hyper_hyper_io_new" >&6; }
  17957. if test "x$ac_cv_lib_hyper_hyper_io_new" = xyes
  17958. then :
  17959. for ac_header in hyper.h
  17960. do :
  17961. ac_fn_c_check_header_compile "$LINENO" "hyper.h" "ac_cv_header_hyper_h" "$ac_includes_default"
  17962. if test "x$ac_cv_header_hyper_h" = xyes
  17963. then :
  17964. printf "%s\n" "#define HAVE_HYPER_H 1" >>confdefs.h
  17965. experimental="$experimental Hyper"
  17966. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: Hyper support is experimental" >&5
  17967. printf "%s\n" "$as_me: Hyper support is experimental" >&6;}
  17968. curl_h1_msg="enabled (Hyper)"
  17969. curl_h2_msg=$curl_h1_msg
  17970. HYPER_ENABLED=1
  17971. printf "%s\n" "#define USE_HYPER 1" >>confdefs.h
  17972. USE_HYPER=1
  17973. CURL_LIBRARY_PATH="$CURL_LIBRARY_PATH:$DIR_HYPER"
  17974. export CURL_LIBRARY_PATH
  17975. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: Added $DIR_HYPER to CURL_LIBRARY_PATH" >&5
  17976. printf "%s\n" "$as_me: Added $DIR_HYPER to CURL_LIBRARY_PATH" >&6;}
  17977. fi
  17978. done
  17979. else $as_nop
  17980. as_fn_error $? "--with-hyper but hyper was not found. See docs/HYPER.md." "$LINENO" 5
  17981. fi
  17982. fi
  17983. fi
  17984. if test X"$want_hyper" != Xno; then
  17985. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: Disable RTSP support with hyper" >&5
  17986. printf "%s\n" "$as_me: Disable RTSP support with hyper" >&6;}
  17987. printf "%s\n" "#define CURL_DISABLE_RTSP 1" >>confdefs.h
  17988. CURL_DISABLE_RTSP=1
  17989. else
  17990. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to support rtsp" >&5
  17991. printf %s "checking whether to support rtsp... " >&6; }
  17992. # Check whether --enable-rtsp was given.
  17993. if test ${enable_rtsp+y}
  17994. then :
  17995. enableval=$enable_rtsp; case "$enableval" in
  17996. no)
  17997. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  17998. printf "%s\n" "no" >&6; }
  17999. printf "%s\n" "#define CURL_DISABLE_RTSP 1" >>confdefs.h
  18000. CURL_DISABLE_RTSP=1
  18001. ;;
  18002. *)
  18003. if test x$CURL_DISABLE_HTTP = x1 ; then
  18004. as_fn_error $? "HTTP support needs to be enabled in order to enable RTSP support!" "$LINENO" 5
  18005. else
  18006. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  18007. printf "%s\n" "yes" >&6; }
  18008. curl_rtsp_msg="enabled"
  18009. fi
  18010. ;;
  18011. esac
  18012. else $as_nop
  18013. if test "x$CURL_DISABLE_HTTP" != "x1"; then
  18014. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  18015. printf "%s\n" "yes" >&6; }
  18016. curl_rtsp_msg="enabled"
  18017. else
  18018. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  18019. printf "%s\n" "no" >&6; }
  18020. fi
  18021. fi
  18022. fi
  18023. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to support proxies" >&5
  18024. printf %s "checking whether to support proxies... " >&6; }
  18025. # Check whether --enable-proxy was given.
  18026. if test ${enable_proxy+y}
  18027. then :
  18028. enableval=$enable_proxy; case "$enableval" in
  18029. no)
  18030. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  18031. printf "%s\n" "no" >&6; }
  18032. printf "%s\n" "#define CURL_DISABLE_PROXY 1" >>confdefs.h
  18033. CURL_DISABLE_PROXY=1
  18034. https_proxy="no"
  18035. ;;
  18036. *) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  18037. printf "%s\n" "yes" >&6; }
  18038. ;;
  18039. esac
  18040. else $as_nop
  18041. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  18042. printf "%s\n" "yes" >&6; }
  18043. fi
  18044. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to support dict" >&5
  18045. printf %s "checking whether to support dict... " >&6; }
  18046. # Check whether --enable-dict was given.
  18047. if test ${enable_dict+y}
  18048. then :
  18049. enableval=$enable_dict; case "$enableval" in
  18050. no)
  18051. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  18052. printf "%s\n" "no" >&6; }
  18053. printf "%s\n" "#define CURL_DISABLE_DICT 1" >>confdefs.h
  18054. CURL_DISABLE_DICT=1
  18055. ;;
  18056. *) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  18057. printf "%s\n" "yes" >&6; }
  18058. ;;
  18059. esac
  18060. else $as_nop
  18061. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  18062. printf "%s\n" "yes" >&6; }
  18063. fi
  18064. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to support telnet" >&5
  18065. printf %s "checking whether to support telnet... " >&6; }
  18066. # Check whether --enable-telnet was given.
  18067. if test ${enable_telnet+y}
  18068. then :
  18069. enableval=$enable_telnet; case "$enableval" in
  18070. no)
  18071. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  18072. printf "%s\n" "no" >&6; }
  18073. printf "%s\n" "#define CURL_DISABLE_TELNET 1" >>confdefs.h
  18074. CURL_DISABLE_TELNET=1
  18075. ;;
  18076. *) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  18077. printf "%s\n" "yes" >&6; }
  18078. ;;
  18079. esac
  18080. else $as_nop
  18081. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  18082. printf "%s\n" "yes" >&6; }
  18083. fi
  18084. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to support tftp" >&5
  18085. printf %s "checking whether to support tftp... " >&6; }
  18086. # Check whether --enable-tftp was given.
  18087. if test ${enable_tftp+y}
  18088. then :
  18089. enableval=$enable_tftp; case "$enableval" in
  18090. no)
  18091. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  18092. printf "%s\n" "no" >&6; }
  18093. printf "%s\n" "#define CURL_DISABLE_TFTP 1" >>confdefs.h
  18094. CURL_DISABLE_TFTP=1
  18095. ;;
  18096. *) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  18097. printf "%s\n" "yes" >&6; }
  18098. ;;
  18099. esac
  18100. else $as_nop
  18101. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  18102. printf "%s\n" "yes" >&6; }
  18103. fi
  18104. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to support pop3" >&5
  18105. printf %s "checking whether to support pop3... " >&6; }
  18106. # Check whether --enable-pop3 was given.
  18107. if test ${enable_pop3+y}
  18108. then :
  18109. enableval=$enable_pop3; case "$enableval" in
  18110. no)
  18111. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  18112. printf "%s\n" "no" >&6; }
  18113. printf "%s\n" "#define CURL_DISABLE_POP3 1" >>confdefs.h
  18114. CURL_DISABLE_POP3=1
  18115. ;;
  18116. *) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  18117. printf "%s\n" "yes" >&6; }
  18118. ;;
  18119. esac
  18120. else $as_nop
  18121. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  18122. printf "%s\n" "yes" >&6; }
  18123. fi
  18124. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to support imap" >&5
  18125. printf %s "checking whether to support imap... " >&6; }
  18126. # Check whether --enable-imap was given.
  18127. if test ${enable_imap+y}
  18128. then :
  18129. enableval=$enable_imap; case "$enableval" in
  18130. no)
  18131. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  18132. printf "%s\n" "no" >&6; }
  18133. printf "%s\n" "#define CURL_DISABLE_IMAP 1" >>confdefs.h
  18134. CURL_DISABLE_IMAP=1
  18135. ;;
  18136. *) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  18137. printf "%s\n" "yes" >&6; }
  18138. ;;
  18139. esac
  18140. else $as_nop
  18141. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  18142. printf "%s\n" "yes" >&6; }
  18143. fi
  18144. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to support smb" >&5
  18145. printf %s "checking whether to support smb... " >&6; }
  18146. # Check whether --enable-smb was given.
  18147. if test ${enable_smb+y}
  18148. then :
  18149. enableval=$enable_smb; case "$enableval" in
  18150. no)
  18151. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  18152. printf "%s\n" "no" >&6; }
  18153. printf "%s\n" "#define CURL_DISABLE_SMB 1" >>confdefs.h
  18154. CURL_DISABLE_SMB=1
  18155. ;;
  18156. *) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  18157. printf "%s\n" "yes" >&6; }
  18158. ;;
  18159. esac
  18160. else $as_nop
  18161. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  18162. printf "%s\n" "yes" >&6; }
  18163. fi
  18164. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to support smtp" >&5
  18165. printf %s "checking whether to support smtp... " >&6; }
  18166. # Check whether --enable-smtp was given.
  18167. if test ${enable_smtp+y}
  18168. then :
  18169. enableval=$enable_smtp; case "$enableval" in
  18170. no)
  18171. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  18172. printf "%s\n" "no" >&6; }
  18173. printf "%s\n" "#define CURL_DISABLE_SMTP 1" >>confdefs.h
  18174. CURL_DISABLE_SMTP=1
  18175. ;;
  18176. *) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  18177. printf "%s\n" "yes" >&6; }
  18178. ;;
  18179. esac
  18180. else $as_nop
  18181. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  18182. printf "%s\n" "yes" >&6; }
  18183. fi
  18184. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to support gopher" >&5
  18185. printf %s "checking whether to support gopher... " >&6; }
  18186. # Check whether --enable-gopher was given.
  18187. if test ${enable_gopher+y}
  18188. then :
  18189. enableval=$enable_gopher; case "$enableval" in
  18190. no)
  18191. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  18192. printf "%s\n" "no" >&6; }
  18193. printf "%s\n" "#define CURL_DISABLE_GOPHER 1" >>confdefs.h
  18194. CURL_DISABLE_GOPHER=1
  18195. ;;
  18196. *) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  18197. printf "%s\n" "yes" >&6; }
  18198. ;;
  18199. esac
  18200. else $as_nop
  18201. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  18202. printf "%s\n" "yes" >&6; }
  18203. fi
  18204. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to support mqtt" >&5
  18205. printf %s "checking whether to support mqtt... " >&6; }
  18206. # Check whether --enable-mqtt was given.
  18207. if test ${enable_mqtt+y}
  18208. then :
  18209. enableval=$enable_mqtt; case "$enableval" in
  18210. no)
  18211. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  18212. printf "%s\n" "no" >&6; }
  18213. printf "%s\n" "#define CURL_DISABLE_MQTT 1" >>confdefs.h
  18214. CURL_DISABLE_MQTT=1
  18215. ;;
  18216. *) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  18217. printf "%s\n" "yes" >&6; }
  18218. ;;
  18219. esac
  18220. else $as_nop
  18221. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  18222. printf "%s\n" "no" >&6; }
  18223. fi
  18224. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to provide built-in manual" >&5
  18225. printf %s "checking whether to provide built-in manual... " >&6; }
  18226. # Check whether --enable-manual was given.
  18227. if test ${enable_manual+y}
  18228. then :
  18229. enableval=$enable_manual; case "$enableval" in
  18230. no)
  18231. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  18232. printf "%s\n" "no" >&6; }
  18233. ;;
  18234. *) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  18235. printf "%s\n" "yes" >&6; }
  18236. USE_MANUAL="1"
  18237. ;;
  18238. esac
  18239. else $as_nop
  18240. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  18241. printf "%s\n" "yes" >&6; }
  18242. USE_MANUAL="1"
  18243. fi
  18244. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to enable generation of C code" >&5
  18245. printf %s "checking whether to enable generation of C code... " >&6; }
  18246. # Check whether --enable-libcurl_option was given.
  18247. if test ${enable_libcurl_option+y}
  18248. then :
  18249. enableval=$enable_libcurl_option; case "$enableval" in
  18250. no)
  18251. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  18252. printf "%s\n" "no" >&6; }
  18253. printf "%s\n" "#define CURL_DISABLE_LIBCURL_OPTION 1" >>confdefs.h
  18254. curl_libcurl_msg="no"
  18255. ;;
  18256. *) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  18257. printf "%s\n" "yes" >&6; }
  18258. ;;
  18259. esac
  18260. else $as_nop
  18261. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  18262. printf "%s\n" "yes" >&6; }
  18263. fi
  18264. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to use libgcc" >&5
  18265. printf %s "checking whether to use libgcc... " >&6; }
  18266. # Check whether --enable-libgcc was given.
  18267. if test ${enable_libgcc+y}
  18268. then :
  18269. enableval=$enable_libgcc; case "$enableval" in
  18270. yes)
  18271. LIBS="-lgcc $LIBS"
  18272. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  18273. printf "%s\n" "yes" >&6; }
  18274. ;;
  18275. *) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  18276. printf "%s\n" "no" >&6; }
  18277. ;;
  18278. esac
  18279. else $as_nop
  18280. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  18281. printf "%s\n" "no" >&6; }
  18282. fi
  18283. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if X/Open network library is required" >&5
  18284. printf %s "checking if X/Open network library is required... " >&6; }
  18285. tst_lib_xnet_required="no"
  18286. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18287. /* end confdefs.h. */
  18288. int main (void)
  18289. {
  18290. #if defined(__hpux) && defined(_XOPEN_SOURCE) && (_XOPEN_SOURCE >= 600)
  18291. return 0;
  18292. #elif defined(__hpux) && defined(_XOPEN_SOURCE_EXTENDED)
  18293. return 0;
  18294. #else
  18295. force compilation error
  18296. #endif
  18297. }
  18298. _ACEOF
  18299. if ac_fn_c_try_compile "$LINENO"
  18300. then :
  18301. tst_lib_xnet_required="yes"
  18302. LIBS="-lxnet $LIBS"
  18303. fi
  18304. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  18305. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $tst_lib_xnet_required" >&5
  18306. printf "%s\n" "$tst_lib_xnet_required" >&6; }
  18307. ac_fn_c_check_func "$LINENO" "gethostbyname" "ac_cv_func_gethostbyname"
  18308. if test "x$ac_cv_func_gethostbyname" = xyes
  18309. then :
  18310. HAVE_GETHOSTBYNAME="1"
  18311. else $as_nop
  18312. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lnsl" >&5
  18313. printf %s "checking for gethostbyname in -lnsl... " >&6; }
  18314. if test ${ac_cv_lib_nsl_gethostbyname+y}
  18315. then :
  18316. printf %s "(cached) " >&6
  18317. else $as_nop
  18318. ac_check_lib_save_LIBS=$LIBS
  18319. LIBS="-lnsl $LIBS"
  18320. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18321. /* end confdefs.h. */
  18322. #ifdef __cplusplus
  18323. extern "C"
  18324. #endif
  18325. char gethostbyname ();
  18326. int main (void)
  18327. {
  18328. return gethostbyname ();
  18329. ;
  18330. return 0;
  18331. }
  18332. _ACEOF
  18333. if ac_fn_c_try_link "$LINENO"
  18334. then :
  18335. ac_cv_lib_nsl_gethostbyname=yes
  18336. else $as_nop
  18337. ac_cv_lib_nsl_gethostbyname=no
  18338. fi
  18339. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  18340. conftest$ac_exeext conftest.$ac_ext
  18341. LIBS=$ac_check_lib_save_LIBS
  18342. fi
  18343. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_gethostbyname" >&5
  18344. printf "%s\n" "$ac_cv_lib_nsl_gethostbyname" >&6; }
  18345. if test "x$ac_cv_lib_nsl_gethostbyname" = xyes
  18346. then :
  18347. HAVE_GETHOSTBYNAME="1"
  18348. LIBS="-lnsl $LIBS"
  18349. fi
  18350. fi
  18351. if test "$HAVE_GETHOSTBYNAME" != "1"
  18352. then
  18353. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lsocket" >&5
  18354. printf %s "checking for gethostbyname in -lsocket... " >&6; }
  18355. if test ${ac_cv_lib_socket_gethostbyname+y}
  18356. then :
  18357. printf %s "(cached) " >&6
  18358. else $as_nop
  18359. ac_check_lib_save_LIBS=$LIBS
  18360. LIBS="-lsocket $LIBS"
  18361. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18362. /* end confdefs.h. */
  18363. #ifdef __cplusplus
  18364. extern "C"
  18365. #endif
  18366. char gethostbyname ();
  18367. int main (void)
  18368. {
  18369. return gethostbyname ();
  18370. ;
  18371. return 0;
  18372. }
  18373. _ACEOF
  18374. if ac_fn_c_try_link "$LINENO"
  18375. then :
  18376. ac_cv_lib_socket_gethostbyname=yes
  18377. else $as_nop
  18378. ac_cv_lib_socket_gethostbyname=no
  18379. fi
  18380. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  18381. conftest$ac_exeext conftest.$ac_ext
  18382. LIBS=$ac_check_lib_save_LIBS
  18383. fi
  18384. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_gethostbyname" >&5
  18385. printf "%s\n" "$ac_cv_lib_socket_gethostbyname" >&6; }
  18386. if test "x$ac_cv_lib_socket_gethostbyname" = xyes
  18387. then :
  18388. HAVE_GETHOSTBYNAME="1"
  18389. LIBS="-lsocket $LIBS"
  18390. fi
  18391. fi
  18392. if test "$HAVE_GETHOSTBYNAME" != "1"
  18393. then
  18394. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lwatt" >&5
  18395. printf %s "checking for gethostbyname in -lwatt... " >&6; }
  18396. if test ${ac_cv_lib_watt_gethostbyname+y}
  18397. then :
  18398. printf %s "(cached) " >&6
  18399. else $as_nop
  18400. ac_check_lib_save_LIBS=$LIBS
  18401. LIBS="-lwatt $LIBS"
  18402. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18403. /* end confdefs.h. */
  18404. #ifdef __cplusplus
  18405. extern "C"
  18406. #endif
  18407. char gethostbyname ();
  18408. int main (void)
  18409. {
  18410. return gethostbyname ();
  18411. ;
  18412. return 0;
  18413. }
  18414. _ACEOF
  18415. if ac_fn_c_try_link "$LINENO"
  18416. then :
  18417. ac_cv_lib_watt_gethostbyname=yes
  18418. else $as_nop
  18419. ac_cv_lib_watt_gethostbyname=no
  18420. fi
  18421. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  18422. conftest$ac_exeext conftest.$ac_ext
  18423. LIBS=$ac_check_lib_save_LIBS
  18424. fi
  18425. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_watt_gethostbyname" >&5
  18426. printf "%s\n" "$ac_cv_lib_watt_gethostbyname" >&6; }
  18427. if test "x$ac_cv_lib_watt_gethostbyname" = xyes
  18428. then :
  18429. HAVE_GETHOSTBYNAME="1"
  18430. CPPFLAGS="-I/dev/env/WATT_ROOT/inc"
  18431. LDFLAGS="-L/dev/env/WATT_ROOT/lib"
  18432. LIBS="-lwatt $LIBS"
  18433. fi
  18434. fi
  18435. if test "$HAVE_GETHOSTBYNAME" != "1"
  18436. then
  18437. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for gethostbyname with both nsl and socket libs" >&5
  18438. printf %s "checking for gethostbyname with both nsl and socket libs... " >&6; }
  18439. my_ac_save_LIBS=$LIBS
  18440. LIBS="-lnsl -lsocket $LIBS"
  18441. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18442. /* end confdefs.h. */
  18443. int main (void)
  18444. {
  18445. gethostbyname();
  18446. ;
  18447. return 0;
  18448. }
  18449. _ACEOF
  18450. if ac_fn_c_try_link "$LINENO"
  18451. then :
  18452. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  18453. printf "%s\n" "yes" >&6; }
  18454. HAVE_GETHOSTBYNAME="1"
  18455. else $as_nop
  18456. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  18457. printf "%s\n" "no" >&6; }
  18458. LIBS=$my_ac_save_LIBS
  18459. fi
  18460. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  18461. conftest$ac_exeext conftest.$ac_ext
  18462. fi
  18463. if test "$HAVE_GETHOSTBYNAME" != "1"
  18464. then
  18465. if test "$curl_cv_header_windows_h" = "yes"; then
  18466. if test "$curl_cv_header_winsock2_h" = "yes"; then
  18467. winsock_LIB="-lws2_32"
  18468. fi
  18469. if test ! -z "$winsock_LIB"; then
  18470. my_ac_save_LIBS=$LIBS
  18471. LIBS="$winsock_LIB $LIBS"
  18472. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in $winsock_LIB" >&5
  18473. printf %s "checking for gethostbyname in $winsock_LIB... " >&6; }
  18474. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18475. /* end confdefs.h. */
  18476. #ifdef HAVE_WINDOWS_H
  18477. #ifndef WIN32_LEAN_AND_MEAN
  18478. #define WIN32_LEAN_AND_MEAN
  18479. #endif
  18480. #include <windows.h>
  18481. #ifdef HAVE_WINSOCK2_H
  18482. #include <winsock2.h>
  18483. #endif
  18484. #endif
  18485. int main (void)
  18486. {
  18487. gethostbyname("www.dummysite.com");
  18488. ;
  18489. return 0;
  18490. }
  18491. _ACEOF
  18492. if ac_fn_c_try_link "$LINENO"
  18493. then :
  18494. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  18495. printf "%s\n" "yes" >&6; }
  18496. HAVE_GETHOSTBYNAME="1"
  18497. else $as_nop
  18498. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  18499. printf "%s\n" "no" >&6; }
  18500. winsock_LIB=""
  18501. LIBS=$my_ac_save_LIBS
  18502. fi
  18503. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  18504. conftest$ac_exeext conftest.$ac_ext
  18505. fi
  18506. fi
  18507. fi
  18508. if test "$HAVE_GETHOSTBYNAME" != "1"
  18509. then
  18510. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for gethostbyname for Minix 3" >&5
  18511. printf %s "checking for gethostbyname for Minix 3... " >&6; }
  18512. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18513. /* end confdefs.h. */
  18514. /* Older Minix versions may need <net/gen/netdb.h> here instead */
  18515. #include <netdb.h>
  18516. int main (void)
  18517. {
  18518. gethostbyname("www.dummysite.com");
  18519. ;
  18520. return 0;
  18521. }
  18522. _ACEOF
  18523. if ac_fn_c_try_link "$LINENO"
  18524. then :
  18525. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  18526. printf "%s\n" "yes" >&6; }
  18527. HAVE_GETHOSTBYNAME="1"
  18528. else $as_nop
  18529. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  18530. printf "%s\n" "no" >&6; }
  18531. fi
  18532. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  18533. conftest$ac_exeext conftest.$ac_ext
  18534. fi
  18535. if test "$HAVE_GETHOSTBYNAME" != "1"
  18536. then
  18537. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for gethostbyname for eCos" >&5
  18538. printf %s "checking for gethostbyname for eCos... " >&6; }
  18539. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18540. /* end confdefs.h. */
  18541. #include <stdio.h>
  18542. #include <netdb.h>
  18543. int main (void)
  18544. {
  18545. gethostbyname("www.dummysite.com");
  18546. ;
  18547. return 0;
  18548. }
  18549. _ACEOF
  18550. if ac_fn_c_try_link "$LINENO"
  18551. then :
  18552. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  18553. printf "%s\n" "yes" >&6; }
  18554. HAVE_GETHOSTBYNAME="1"
  18555. else $as_nop
  18556. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  18557. printf "%s\n" "no" >&6; }
  18558. fi
  18559. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  18560. conftest$ac_exeext conftest.$ac_ext
  18561. fi
  18562. if test "$HAVE_GETHOSTBYNAME" != "1" -o "${with_amissl+set}" = set
  18563. then
  18564. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for gethostbyname for AmigaOS bsdsocket.library" >&5
  18565. printf %s "checking for gethostbyname for AmigaOS bsdsocket.library... " >&6; }
  18566. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18567. /* end confdefs.h. */
  18568. #include <proto/bsdsocket.h>
  18569. struct Library *SocketBase = NULL;
  18570. int main (void)
  18571. {
  18572. gethostbyname("www.dummysite.com");
  18573. ;
  18574. return 0;
  18575. }
  18576. _ACEOF
  18577. if ac_fn_c_try_link "$LINENO"
  18578. then :
  18579. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  18580. printf "%s\n" "yes" >&6; }
  18581. HAVE_GETHOSTBYNAME="1"
  18582. HAVE_PROTO_BSDSOCKET_H="1"
  18583. printf "%s\n" "#define HAVE_PROTO_BSDSOCKET_H 1" >>confdefs.h
  18584. HAVE_PROTO_BSDSOCKET_H=1
  18585. else $as_nop
  18586. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  18587. printf "%s\n" "no" >&6; }
  18588. fi
  18589. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  18590. conftest$ac_exeext conftest.$ac_ext
  18591. fi
  18592. if test "$HAVE_GETHOSTBYNAME" != "1"
  18593. then
  18594. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lnetwork" >&5
  18595. printf %s "checking for gethostbyname in -lnetwork... " >&6; }
  18596. if test ${ac_cv_lib_network_gethostbyname+y}
  18597. then :
  18598. printf %s "(cached) " >&6
  18599. else $as_nop
  18600. ac_check_lib_save_LIBS=$LIBS
  18601. LIBS="-lnetwork $LIBS"
  18602. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18603. /* end confdefs.h. */
  18604. #ifdef __cplusplus
  18605. extern "C"
  18606. #endif
  18607. char gethostbyname ();
  18608. int main (void)
  18609. {
  18610. return gethostbyname ();
  18611. ;
  18612. return 0;
  18613. }
  18614. _ACEOF
  18615. if ac_fn_c_try_link "$LINENO"
  18616. then :
  18617. ac_cv_lib_network_gethostbyname=yes
  18618. else $as_nop
  18619. ac_cv_lib_network_gethostbyname=no
  18620. fi
  18621. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  18622. conftest$ac_exeext conftest.$ac_ext
  18623. LIBS=$ac_check_lib_save_LIBS
  18624. fi
  18625. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_network_gethostbyname" >&5
  18626. printf "%s\n" "$ac_cv_lib_network_gethostbyname" >&6; }
  18627. if test "x$ac_cv_lib_network_gethostbyname" = xyes
  18628. then :
  18629. HAVE_GETHOSTBYNAME="1"
  18630. LIBS="-lnetwork $LIBS"
  18631. fi
  18632. fi
  18633. if test "$HAVE_GETHOSTBYNAME" != "1"
  18634. then
  18635. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lnet" >&5
  18636. printf %s "checking for gethostbyname in -lnet... " >&6; }
  18637. if test ${ac_cv_lib_net_gethostbyname+y}
  18638. then :
  18639. printf %s "(cached) " >&6
  18640. else $as_nop
  18641. ac_check_lib_save_LIBS=$LIBS
  18642. LIBS="-lnet $LIBS"
  18643. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18644. /* end confdefs.h. */
  18645. #ifdef __cplusplus
  18646. extern "C"
  18647. #endif
  18648. char gethostbyname ();
  18649. int main (void)
  18650. {
  18651. return gethostbyname ();
  18652. ;
  18653. return 0;
  18654. }
  18655. _ACEOF
  18656. if ac_fn_c_try_link "$LINENO"
  18657. then :
  18658. ac_cv_lib_net_gethostbyname=yes
  18659. else $as_nop
  18660. ac_cv_lib_net_gethostbyname=no
  18661. fi
  18662. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  18663. conftest$ac_exeext conftest.$ac_ext
  18664. LIBS=$ac_check_lib_save_LIBS
  18665. fi
  18666. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_net_gethostbyname" >&5
  18667. printf "%s\n" "$ac_cv_lib_net_gethostbyname" >&6; }
  18668. if test "x$ac_cv_lib_net_gethostbyname" = xyes
  18669. then :
  18670. HAVE_GETHOSTBYNAME="1"
  18671. LIBS="-lnet $LIBS"
  18672. fi
  18673. fi
  18674. if test "$HAVE_GETHOSTBYNAME" != "1"; then
  18675. as_fn_error $? "couldn't find libraries for gethostbyname()" "$LINENO" 5
  18676. fi
  18677. curl_includes_winsock2="\
  18678. /* includes start */
  18679. #ifdef HAVE_WINDOWS_H
  18680. # ifndef WIN32_LEAN_AND_MEAN
  18681. # define WIN32_LEAN_AND_MEAN
  18682. # endif
  18683. # include <windows.h>
  18684. # ifdef HAVE_WINSOCK2_H
  18685. # include <winsock2.h>
  18686. # endif
  18687. #endif
  18688. /* includes end */"
  18689. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for windows.h" >&5
  18690. printf %s "checking for windows.h... " >&6; }
  18691. if test ${curl_cv_header_windows_h+y}
  18692. then :
  18693. printf %s "(cached) " >&6
  18694. else $as_nop
  18695. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18696. /* end confdefs.h. */
  18697. #undef inline
  18698. #ifndef WIN32_LEAN_AND_MEAN
  18699. #define WIN32_LEAN_AND_MEAN
  18700. #endif
  18701. #include <windows.h>
  18702. int main (void)
  18703. {
  18704. #if defined(__CYGWIN__) || defined(__CEGCC__)
  18705. HAVE_WINDOWS_H shall not be defined.
  18706. #else
  18707. int dummy=2*WINVER;
  18708. #endif
  18709. ;
  18710. return 0;
  18711. }
  18712. _ACEOF
  18713. if ac_fn_c_try_compile "$LINENO"
  18714. then :
  18715. curl_cv_header_windows_h="yes"
  18716. else $as_nop
  18717. curl_cv_header_windows_h="no"
  18718. fi
  18719. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  18720. fi
  18721. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $curl_cv_header_windows_h" >&5
  18722. printf "%s\n" "$curl_cv_header_windows_h" >&6; }
  18723. case "$curl_cv_header_windows_h" in
  18724. yes)
  18725. printf "%s\n" "#define HAVE_WINDOWS_H 1" >>confdefs.h
  18726. ;;
  18727. esac
  18728. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for winsock2.h" >&5
  18729. printf %s "checking for winsock2.h... " >&6; }
  18730. if test ${curl_cv_header_winsock2_h+y}
  18731. then :
  18732. printf %s "(cached) " >&6
  18733. else $as_nop
  18734. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18735. /* end confdefs.h. */
  18736. #undef inline
  18737. #ifndef WIN32_LEAN_AND_MEAN
  18738. #define WIN32_LEAN_AND_MEAN
  18739. #endif
  18740. #include <windows.h>
  18741. #include <winsock2.h>
  18742. int main (void)
  18743. {
  18744. #if defined(__CYGWIN__) || defined(__CEGCC__) || defined(__MINGW32CE__)
  18745. HAVE_WINSOCK2_H shall not be defined.
  18746. #else
  18747. int dummy=2*IPPROTO_ESP;
  18748. #endif
  18749. ;
  18750. return 0;
  18751. }
  18752. _ACEOF
  18753. if ac_fn_c_try_compile "$LINENO"
  18754. then :
  18755. curl_cv_header_winsock2_h="yes"
  18756. else $as_nop
  18757. curl_cv_header_winsock2_h="no"
  18758. fi
  18759. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  18760. fi
  18761. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $curl_cv_header_winsock2_h" >&5
  18762. printf "%s\n" "$curl_cv_header_winsock2_h" >&6; }
  18763. case "$curl_cv_header_winsock2_h" in
  18764. yes)
  18765. printf "%s\n" "#define HAVE_WINSOCK2_H 1" >>confdefs.h
  18766. ;;
  18767. esac
  18768. curl_includes_bsdsocket="\
  18769. /* includes start */
  18770. #ifdef HAVE_PROTO_BSDSOCKET_H
  18771. # include <proto/bsdsocket.h>
  18772. struct Library *SocketBase = NULL;
  18773. #endif
  18774. /* includes end */"
  18775. ac_fn_c_check_header_compile "$LINENO" "proto/bsdsocket.h" "ac_cv_header_proto_bsdsocket_h" " $curl_includes_bsdsocket
  18776. "
  18777. if test "x$ac_cv_header_proto_bsdsocket_h" = xyes
  18778. then :
  18779. printf "%s\n" "#define HAVE_PROTO_BSDSOCKET_H 1" >>confdefs.h
  18780. fi
  18781. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for connect in libraries" >&5
  18782. printf %s "checking for connect in libraries... " >&6; }
  18783. tst_connect_save_LIBS="$LIBS"
  18784. tst_connect_need_LIBS="unknown"
  18785. for tst_lib in '' '-lsocket' ; do
  18786. if test "$tst_connect_need_LIBS" = "unknown"; then
  18787. LIBS="$tst_lib $tst_connect_save_LIBS"
  18788. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18789. /* end confdefs.h. */
  18790. $curl_includes_winsock2
  18791. $curl_includes_bsdsocket
  18792. #if !defined(HAVE_WINDOWS_H) && !defined(HAVE_PROTO_BSDSOCKET_H)
  18793. int connect(int, void*, int);
  18794. #endif
  18795. int main (void)
  18796. {
  18797. if(0 != connect(0, 0, 0))
  18798. return 1;
  18799. ;
  18800. return 0;
  18801. }
  18802. _ACEOF
  18803. if ac_fn_c_try_link "$LINENO"
  18804. then :
  18805. tst_connect_need_LIBS="$tst_lib"
  18806. fi
  18807. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  18808. conftest$ac_exeext conftest.$ac_ext
  18809. fi
  18810. done
  18811. LIBS="$tst_connect_save_LIBS"
  18812. #
  18813. case X-"$tst_connect_need_LIBS" in
  18814. X-unknown)
  18815. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: cannot find connect" >&5
  18816. printf "%s\n" "cannot find connect" >&6; }
  18817. as_fn_error $? "cannot find connect function in libraries." "$LINENO" 5
  18818. ;;
  18819. X-)
  18820. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  18821. printf "%s\n" "yes" >&6; }
  18822. ;;
  18823. *)
  18824. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $tst_connect_need_LIBS" >&5
  18825. printf "%s\n" "$tst_connect_need_LIBS" >&6; }
  18826. LIBS="$tst_connect_need_LIBS $tst_connect_save_LIBS"
  18827. ;;
  18828. esac
  18829. CURL_NETWORK_LIBS=$LIBS
  18830. ac_fn_c_check_header_compile "$LINENO" "sys/types.h" "ac_cv_header_sys_types_h" "$ac_includes_default"
  18831. if test "x$ac_cv_header_sys_types_h" = xyes
  18832. then :
  18833. printf "%s\n" "#define HAVE_SYS_TYPES_H 1" >>confdefs.h
  18834. fi
  18835. ac_fn_c_check_header_compile "$LINENO" "sys/time.h" "ac_cv_header_sys_time_h" "$ac_includes_default"
  18836. if test "x$ac_cv_header_sys_time_h" = xyes
  18837. then :
  18838. printf "%s\n" "#define HAVE_SYS_TIME_H 1" >>confdefs.h
  18839. fi
  18840. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for monotonic clock_gettime" >&5
  18841. printf %s "checking for monotonic clock_gettime... " >&6; }
  18842. #
  18843. if test "x$dontwant_rt" = "xno" ; then
  18844. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18845. /* end confdefs.h. */
  18846. #ifdef HAVE_SYS_TYPES_H
  18847. #include <sys/types.h>
  18848. #endif
  18849. #ifdef HAVE_SYS_TIME_H
  18850. #include <sys/time.h>
  18851. #endif
  18852. #include <time.h>
  18853. int main (void)
  18854. {
  18855. struct timespec ts;
  18856. (void)clock_gettime(CLOCK_MONOTONIC, &ts);
  18857. ;
  18858. return 0;
  18859. }
  18860. _ACEOF
  18861. if ac_fn_c_try_compile "$LINENO"
  18862. then :
  18863. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  18864. printf "%s\n" "yes" >&6; }
  18865. curl_func_clock_gettime="yes"
  18866. else $as_nop
  18867. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  18868. printf "%s\n" "no" >&6; }
  18869. curl_func_clock_gettime="no"
  18870. fi
  18871. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  18872. fi
  18873. #
  18874. if test "$curl_func_clock_gettime" = "yes"; then
  18875. #
  18876. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for clock_gettime in libraries" >&5
  18877. printf %s "checking for clock_gettime in libraries... " >&6; }
  18878. #
  18879. curl_cv_save_LIBS="$LIBS"
  18880. curl_cv_gclk_LIBS="unknown"
  18881. #
  18882. for x_xlibs in '' '-lrt' '-lposix4' ; do
  18883. if test "$curl_cv_gclk_LIBS" = "unknown"; then
  18884. if test -z "$x_xlibs"; then
  18885. LIBS="$curl_cv_save_LIBS"
  18886. else
  18887. LIBS="$x_xlibs $curl_cv_save_LIBS"
  18888. fi
  18889. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18890. /* end confdefs.h. */
  18891. #ifdef HAVE_SYS_TYPES_H
  18892. #include <sys/types.h>
  18893. #endif
  18894. #ifdef HAVE_SYS_TIME_H
  18895. #include <sys/time.h>
  18896. #endif
  18897. #include <time.h>
  18898. int main (void)
  18899. {
  18900. struct timespec ts;
  18901. (void)clock_gettime(CLOCK_MONOTONIC, &ts);
  18902. ;
  18903. return 0;
  18904. }
  18905. _ACEOF
  18906. if ac_fn_c_try_link "$LINENO"
  18907. then :
  18908. curl_cv_gclk_LIBS="$x_xlibs"
  18909. fi
  18910. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  18911. conftest$ac_exeext conftest.$ac_ext
  18912. fi
  18913. done
  18914. #
  18915. LIBS="$curl_cv_save_LIBS"
  18916. #
  18917. case X-"$curl_cv_gclk_LIBS" in
  18918. X-unknown)
  18919. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: cannot find clock_gettime" >&5
  18920. printf "%s\n" "cannot find clock_gettime" >&6; }
  18921. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: HAVE_CLOCK_GETTIME_MONOTONIC will not be defined" >&5
  18922. printf "%s\n" "$as_me: WARNING: HAVE_CLOCK_GETTIME_MONOTONIC will not be defined" >&2;}
  18923. curl_func_clock_gettime="no"
  18924. ;;
  18925. X-)
  18926. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no additional lib required" >&5
  18927. printf "%s\n" "no additional lib required" >&6; }
  18928. curl_func_clock_gettime="yes"
  18929. ;;
  18930. *)
  18931. if test -z "$curl_cv_save_LIBS"; then
  18932. LIBS="$curl_cv_gclk_LIBS"
  18933. else
  18934. LIBS="$curl_cv_gclk_LIBS $curl_cv_save_LIBS"
  18935. fi
  18936. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $curl_cv_gclk_LIBS" >&5
  18937. printf "%s\n" "$curl_cv_gclk_LIBS" >&6; }
  18938. curl_func_clock_gettime="yes"
  18939. ;;
  18940. esac
  18941. #
  18942. if test "x$cross_compiling" != "xyes" &&
  18943. test "$curl_func_clock_gettime" = "yes"; then
  18944. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if monotonic clock_gettime works" >&5
  18945. printf %s "checking if monotonic clock_gettime works... " >&6; }
  18946. old=$LD_LIBRARY_PATH
  18947. LD_LIBRARY_PATH=$CURL_LIBRARY_PATH:$old
  18948. export LD_LIBRARY_PATH
  18949. if test "$cross_compiling" = yes
  18950. then :
  18951. { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  18952. printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
  18953. as_fn_error $? "cannot run test program while cross compiling
  18954. See \`config.log' for more details" "$LINENO" 5; }
  18955. else $as_nop
  18956. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18957. /* end confdefs.h. */
  18958. #ifdef HAVE_STDLIB_H
  18959. #include <stdlib.h>
  18960. #endif
  18961. #ifdef HAVE_SYS_TYPES_H
  18962. #include <sys/types.h>
  18963. #endif
  18964. #ifdef HAVE_SYS_TIME_H
  18965. #include <sys/time.h>
  18966. #endif
  18967. #include <time.h>
  18968. int main (void)
  18969. {
  18970. struct timespec ts;
  18971. if (0 == clock_gettime(CLOCK_MONOTONIC, &ts))
  18972. exit(0);
  18973. else
  18974. exit(1);
  18975. ;
  18976. return 0;
  18977. }
  18978. _ACEOF
  18979. if ac_fn_c_try_run "$LINENO"
  18980. then :
  18981. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  18982. printf "%s\n" "yes" >&6; }
  18983. else $as_nop
  18984. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  18985. printf "%s\n" "no" >&6; }
  18986. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: HAVE_CLOCK_GETTIME_MONOTONIC will not be defined" >&5
  18987. printf "%s\n" "$as_me: WARNING: HAVE_CLOCK_GETTIME_MONOTONIC will not be defined" >&2;}
  18988. curl_func_clock_gettime="no"
  18989. LIBS="$curl_cv_save_LIBS"
  18990. fi
  18991. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  18992. conftest.$ac_objext conftest.beam conftest.$ac_ext
  18993. fi
  18994. LD_LIBRARY_PATH=$old # restore
  18995. fi
  18996. #
  18997. case "$curl_func_clock_gettime" in
  18998. yes)
  18999. printf "%s\n" "#define HAVE_CLOCK_GETTIME_MONOTONIC 1" >>confdefs.h
  19000. ;;
  19001. esac
  19002. #
  19003. fi
  19004. #
  19005. CURL_NETWORK_AND_TIME_LIBS=$LIBS
  19006. clean_CPPFLAGS=$CPPFLAGS
  19007. clean_LDFLAGS=$LDFLAGS
  19008. clean_LIBS=$LIBS
  19009. ZLIB_LIBS=""
  19010. # Check whether --with-zlib was given.
  19011. if test ${with_zlib+y}
  19012. then :
  19013. withval=$with_zlib; OPT_ZLIB="$withval"
  19014. fi
  19015. if test "$OPT_ZLIB" = "no" ; then
  19016. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: zlib disabled" >&5
  19017. printf "%s\n" "$as_me: WARNING: zlib disabled" >&2;}
  19018. else
  19019. if test "$OPT_ZLIB" = "yes" ; then
  19020. OPT_ZLIB=""
  19021. fi
  19022. if test -z "$OPT_ZLIB" ; then
  19023. if test -n "$PKG_CONFIG"; then
  19024. PKGCONFIG="$PKG_CONFIG"
  19025. else
  19026. if test -n "$ac_tool_prefix"; then
  19027. # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
  19028. set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
  19029. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  19030. printf %s "checking for $ac_word... " >&6; }
  19031. if test ${ac_cv_path_PKGCONFIG+y}
  19032. then :
  19033. printf %s "(cached) " >&6
  19034. else $as_nop
  19035. case $PKGCONFIG in
  19036. [\\/]* | ?:[\\/]*)
  19037. ac_cv_path_PKGCONFIG="$PKGCONFIG" # Let the user override the test with a path.
  19038. ;;
  19039. *)
  19040. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  19041. as_dummy="$PATH:/usr/bin:/usr/local/bin"
  19042. for as_dir in $as_dummy
  19043. do
  19044. IFS=$as_save_IFS
  19045. case $as_dir in #(((
  19046. '') as_dir=./ ;;
  19047. */) ;;
  19048. *) as_dir=$as_dir/ ;;
  19049. esac
  19050. for ac_exec_ext in '' $ac_executable_extensions; do
  19051. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  19052. ac_cv_path_PKGCONFIG="$as_dir$ac_word$ac_exec_ext"
  19053. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  19054. break 2
  19055. fi
  19056. done
  19057. done
  19058. IFS=$as_save_IFS
  19059. ;;
  19060. esac
  19061. fi
  19062. PKGCONFIG=$ac_cv_path_PKGCONFIG
  19063. if test -n "$PKGCONFIG"; then
  19064. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PKGCONFIG" >&5
  19065. printf "%s\n" "$PKGCONFIG" >&6; }
  19066. else
  19067. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  19068. printf "%s\n" "no" >&6; }
  19069. fi
  19070. fi
  19071. if test -z "$ac_cv_path_PKGCONFIG"; then
  19072. ac_pt_PKGCONFIG=$PKGCONFIG
  19073. # Extract the first word of "pkg-config", so it can be a program name with args.
  19074. set dummy pkg-config; ac_word=$2
  19075. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  19076. printf %s "checking for $ac_word... " >&6; }
  19077. if test ${ac_cv_path_ac_pt_PKGCONFIG+y}
  19078. then :
  19079. printf %s "(cached) " >&6
  19080. else $as_nop
  19081. case $ac_pt_PKGCONFIG in
  19082. [\\/]* | ?:[\\/]*)
  19083. ac_cv_path_ac_pt_PKGCONFIG="$ac_pt_PKGCONFIG" # Let the user override the test with a path.
  19084. ;;
  19085. *)
  19086. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  19087. as_dummy="$PATH:/usr/bin:/usr/local/bin"
  19088. for as_dir in $as_dummy
  19089. do
  19090. IFS=$as_save_IFS
  19091. case $as_dir in #(((
  19092. '') as_dir=./ ;;
  19093. */) ;;
  19094. *) as_dir=$as_dir/ ;;
  19095. esac
  19096. for ac_exec_ext in '' $ac_executable_extensions; do
  19097. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  19098. ac_cv_path_ac_pt_PKGCONFIG="$as_dir$ac_word$ac_exec_ext"
  19099. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  19100. break 2
  19101. fi
  19102. done
  19103. done
  19104. IFS=$as_save_IFS
  19105. ;;
  19106. esac
  19107. fi
  19108. ac_pt_PKGCONFIG=$ac_cv_path_ac_pt_PKGCONFIG
  19109. if test -n "$ac_pt_PKGCONFIG"; then
  19110. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKGCONFIG" >&5
  19111. printf "%s\n" "$ac_pt_PKGCONFIG" >&6; }
  19112. else
  19113. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  19114. printf "%s\n" "no" >&6; }
  19115. fi
  19116. if test "x$ac_pt_PKGCONFIG" = x; then
  19117. PKGCONFIG="no"
  19118. else
  19119. case $cross_compiling:$ac_tool_warned in
  19120. yes:)
  19121. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  19122. printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  19123. ac_tool_warned=yes ;;
  19124. esac
  19125. PKGCONFIG=$ac_pt_PKGCONFIG
  19126. fi
  19127. else
  19128. PKGCONFIG="$ac_cv_path_PKGCONFIG"
  19129. fi
  19130. fi
  19131. if test "x$PKGCONFIG" != "xno"; then
  19132. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for zlib options with pkg-config" >&5
  19133. printf %s "checking for zlib options with pkg-config... " >&6; }
  19134. itexists=`
  19135. if test -n ""; then
  19136. PKG_CONFIG_LIBDIR=""
  19137. export PKG_CONFIG_LIBDIR
  19138. fi
  19139. $PKGCONFIG --exists zlib >/dev/null 2>&1 && echo 1`
  19140. if test -z "$itexists"; then
  19141. PKGCONFIG="no"
  19142. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  19143. printf "%s\n" "no" >&6; }
  19144. else
  19145. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: found" >&5
  19146. printf "%s\n" "found" >&6; }
  19147. fi
  19148. fi
  19149. if test "$PKGCONFIG" != "no" ; then
  19150. LIBS="`$PKGCONFIG --libs-only-l zlib` $LIBS"
  19151. LDFLAGS="$LDFLAGS `$PKGCONFIG --libs-only-L zlib`"
  19152. CPPFLAGS="$CPPFLAGS `$PKGCONFIG --cflags-only-I zlib`"
  19153. OPT_ZLIB=""
  19154. HAVE_LIBZ="1"
  19155. fi
  19156. if test -z "$HAVE_LIBZ"; then
  19157. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for inflateEnd in -lz" >&5
  19158. printf %s "checking for inflateEnd in -lz... " >&6; }
  19159. if test ${ac_cv_lib_z_inflateEnd+y}
  19160. then :
  19161. printf %s "(cached) " >&6
  19162. else $as_nop
  19163. ac_check_lib_save_LIBS=$LIBS
  19164. LIBS="-lz $LIBS"
  19165. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19166. /* end confdefs.h. */
  19167. #ifdef __cplusplus
  19168. extern "C"
  19169. #endif
  19170. char inflateEnd ();
  19171. int main (void)
  19172. {
  19173. return inflateEnd ();
  19174. ;
  19175. return 0;
  19176. }
  19177. _ACEOF
  19178. if ac_fn_c_try_link "$LINENO"
  19179. then :
  19180. ac_cv_lib_z_inflateEnd=yes
  19181. else $as_nop
  19182. ac_cv_lib_z_inflateEnd=no
  19183. fi
  19184. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  19185. conftest$ac_exeext conftest.$ac_ext
  19186. LIBS=$ac_check_lib_save_LIBS
  19187. fi
  19188. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_inflateEnd" >&5
  19189. printf "%s\n" "$ac_cv_lib_z_inflateEnd" >&6; }
  19190. if test "x$ac_cv_lib_z_inflateEnd" = xyes
  19191. then :
  19192. HAVE_LIBZ="1"
  19193. LIBS="-lz $LIBS"
  19194. else $as_nop
  19195. OPT_ZLIB="/usr/local"
  19196. fi
  19197. fi
  19198. fi
  19199. if test -n "$OPT_ZLIB"; then
  19200. CPPFLAGS="$CPPFLAGS -I$OPT_ZLIB/include"
  19201. LDFLAGS="$LDFLAGS -L$OPT_ZLIB/lib$libsuff"
  19202. fi
  19203. ac_fn_c_check_header_compile "$LINENO" "zlib.h" "ac_cv_header_zlib_h" "$ac_includes_default"
  19204. if test "x$ac_cv_header_zlib_h" = xyes
  19205. then :
  19206. HAVE_ZLIB_H="1"
  19207. if test "$HAVE_LIBZ" != "1"; then
  19208. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for gzread in -lz" >&5
  19209. printf %s "checking for gzread in -lz... " >&6; }
  19210. if test ${ac_cv_lib_z_gzread+y}
  19211. then :
  19212. printf %s "(cached) " >&6
  19213. else $as_nop
  19214. ac_check_lib_save_LIBS=$LIBS
  19215. LIBS="-lz $LIBS"
  19216. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19217. /* end confdefs.h. */
  19218. #ifdef __cplusplus
  19219. extern "C"
  19220. #endif
  19221. char gzread ();
  19222. int main (void)
  19223. {
  19224. return gzread ();
  19225. ;
  19226. return 0;
  19227. }
  19228. _ACEOF
  19229. if ac_fn_c_try_link "$LINENO"
  19230. then :
  19231. ac_cv_lib_z_gzread=yes
  19232. else $as_nop
  19233. ac_cv_lib_z_gzread=no
  19234. fi
  19235. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  19236. conftest$ac_exeext conftest.$ac_ext
  19237. LIBS=$ac_check_lib_save_LIBS
  19238. fi
  19239. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_gzread" >&5
  19240. printf "%s\n" "$ac_cv_lib_z_gzread" >&6; }
  19241. if test "x$ac_cv_lib_z_gzread" = xyes
  19242. then :
  19243. HAVE_LIBZ="1"
  19244. LIBS="-lz $LIBS"
  19245. else $as_nop
  19246. CPPFLAGS=$clean_CPPFLAGS
  19247. LDFLAGS=$clean_LDFLAGS
  19248. fi
  19249. fi
  19250. else $as_nop
  19251. CPPFLAGS=$clean_CPPFLAGS
  19252. LDFLAGS=$clean_LDFLAGS
  19253. fi
  19254. if test "$HAVE_LIBZ" = "1" && test "$HAVE_ZLIB_H" != "1"
  19255. then
  19256. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: configure found only the libz lib, not the header file!" >&5
  19257. printf "%s\n" "$as_me: WARNING: configure found only the libz lib, not the header file!" >&2;}
  19258. HAVE_LIBZ=""
  19259. CPPFLAGS=$clean_CPPFLAGS
  19260. LDFLAGS=$clean_LDFLAGS
  19261. LIBS=$clean_LIBS
  19262. elif test "$HAVE_LIBZ" != "1" && test "$HAVE_ZLIB_H" = "1"
  19263. then
  19264. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: configure found only the libz header file, not the lib!" >&5
  19265. printf "%s\n" "$as_me: WARNING: configure found only the libz header file, not the lib!" >&2;}
  19266. CPPFLAGS=$clean_CPPFLAGS
  19267. LDFLAGS=$clean_LDFLAGS
  19268. LIBS=$clean_LIBS
  19269. elif test "$HAVE_LIBZ" = "1" && test "$HAVE_ZLIB_H" = "1"
  19270. then
  19271. printf "%s\n" "#define HAVE_ZLIB_H 1" >>confdefs.h
  19272. printf "%s\n" "#define HAVE_LIBZ 1" >>confdefs.h
  19273. ZLIB_LIBS="-lz"
  19274. LIBS="-lz $clean_LIBS"
  19275. AMFIXLIB="1"
  19276. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: found both libz and libz.h header" >&5
  19277. printf "%s\n" "$as_me: found both libz and libz.h header" >&6;}
  19278. curl_zlib_msg="enabled"
  19279. fi
  19280. fi
  19281. if test x"$AMFIXLIB" = x1; then
  19282. HAVE_LIBZ_TRUE=
  19283. HAVE_LIBZ_FALSE='#'
  19284. else
  19285. HAVE_LIBZ_TRUE='#'
  19286. HAVE_LIBZ_FALSE=
  19287. fi
  19288. OPT_BROTLI=off
  19289. # Check whether --with-brotli was given.
  19290. if test ${with_brotli+y}
  19291. then :
  19292. withval=$with_brotli; OPT_BROTLI=$withval
  19293. fi
  19294. if test X"$OPT_BROTLI" != Xno; then
  19295. CLEANLDFLAGS="$LDFLAGS"
  19296. CLEANCPPFLAGS="$CPPFLAGS"
  19297. CLEANLIBS="$LIBS"
  19298. case "$OPT_BROTLI" in
  19299. yes)
  19300. if test -n "$PKG_CONFIG"; then
  19301. PKGCONFIG="$PKG_CONFIG"
  19302. else
  19303. if test -n "$ac_tool_prefix"; then
  19304. # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
  19305. set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
  19306. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  19307. printf %s "checking for $ac_word... " >&6; }
  19308. if test ${ac_cv_path_PKGCONFIG+y}
  19309. then :
  19310. printf %s "(cached) " >&6
  19311. else $as_nop
  19312. case $PKGCONFIG in
  19313. [\\/]* | ?:[\\/]*)
  19314. ac_cv_path_PKGCONFIG="$PKGCONFIG" # Let the user override the test with a path.
  19315. ;;
  19316. *)
  19317. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  19318. as_dummy="$PATH:/usr/bin:/usr/local/bin"
  19319. for as_dir in $as_dummy
  19320. do
  19321. IFS=$as_save_IFS
  19322. case $as_dir in #(((
  19323. '') as_dir=./ ;;
  19324. */) ;;
  19325. *) as_dir=$as_dir/ ;;
  19326. esac
  19327. for ac_exec_ext in '' $ac_executable_extensions; do
  19328. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  19329. ac_cv_path_PKGCONFIG="$as_dir$ac_word$ac_exec_ext"
  19330. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  19331. break 2
  19332. fi
  19333. done
  19334. done
  19335. IFS=$as_save_IFS
  19336. ;;
  19337. esac
  19338. fi
  19339. PKGCONFIG=$ac_cv_path_PKGCONFIG
  19340. if test -n "$PKGCONFIG"; then
  19341. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PKGCONFIG" >&5
  19342. printf "%s\n" "$PKGCONFIG" >&6; }
  19343. else
  19344. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  19345. printf "%s\n" "no" >&6; }
  19346. fi
  19347. fi
  19348. if test -z "$ac_cv_path_PKGCONFIG"; then
  19349. ac_pt_PKGCONFIG=$PKGCONFIG
  19350. # Extract the first word of "pkg-config", so it can be a program name with args.
  19351. set dummy pkg-config; ac_word=$2
  19352. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  19353. printf %s "checking for $ac_word... " >&6; }
  19354. if test ${ac_cv_path_ac_pt_PKGCONFIG+y}
  19355. then :
  19356. printf %s "(cached) " >&6
  19357. else $as_nop
  19358. case $ac_pt_PKGCONFIG in
  19359. [\\/]* | ?:[\\/]*)
  19360. ac_cv_path_ac_pt_PKGCONFIG="$ac_pt_PKGCONFIG" # Let the user override the test with a path.
  19361. ;;
  19362. *)
  19363. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  19364. as_dummy="$PATH:/usr/bin:/usr/local/bin"
  19365. for as_dir in $as_dummy
  19366. do
  19367. IFS=$as_save_IFS
  19368. case $as_dir in #(((
  19369. '') as_dir=./ ;;
  19370. */) ;;
  19371. *) as_dir=$as_dir/ ;;
  19372. esac
  19373. for ac_exec_ext in '' $ac_executable_extensions; do
  19374. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  19375. ac_cv_path_ac_pt_PKGCONFIG="$as_dir$ac_word$ac_exec_ext"
  19376. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  19377. break 2
  19378. fi
  19379. done
  19380. done
  19381. IFS=$as_save_IFS
  19382. ;;
  19383. esac
  19384. fi
  19385. ac_pt_PKGCONFIG=$ac_cv_path_ac_pt_PKGCONFIG
  19386. if test -n "$ac_pt_PKGCONFIG"; then
  19387. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKGCONFIG" >&5
  19388. printf "%s\n" "$ac_pt_PKGCONFIG" >&6; }
  19389. else
  19390. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  19391. printf "%s\n" "no" >&6; }
  19392. fi
  19393. if test "x$ac_pt_PKGCONFIG" = x; then
  19394. PKGCONFIG="no"
  19395. else
  19396. case $cross_compiling:$ac_tool_warned in
  19397. yes:)
  19398. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  19399. printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  19400. ac_tool_warned=yes ;;
  19401. esac
  19402. PKGCONFIG=$ac_pt_PKGCONFIG
  19403. fi
  19404. else
  19405. PKGCONFIG="$ac_cv_path_PKGCONFIG"
  19406. fi
  19407. fi
  19408. if test "x$PKGCONFIG" != "xno"; then
  19409. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libbrotlidec options with pkg-config" >&5
  19410. printf %s "checking for libbrotlidec options with pkg-config... " >&6; }
  19411. itexists=`
  19412. if test -n ""; then
  19413. PKG_CONFIG_LIBDIR=""
  19414. export PKG_CONFIG_LIBDIR
  19415. fi
  19416. $PKGCONFIG --exists libbrotlidec >/dev/null 2>&1 && echo 1`
  19417. if test -z "$itexists"; then
  19418. PKGCONFIG="no"
  19419. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  19420. printf "%s\n" "no" >&6; }
  19421. else
  19422. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: found" >&5
  19423. printf "%s\n" "found" >&6; }
  19424. fi
  19425. fi
  19426. if test "$PKGCONFIG" != "no" ; then
  19427. LIB_BROTLI=`$PKGCONFIG --libs-only-l libbrotlidec`
  19428. LD_BROTLI=`$PKGCONFIG --libs-only-L libbrotlidec`
  19429. CPP_BROTLI=`$PKGCONFIG --cflags-only-I libbrotlidec`
  19430. version=`$PKGCONFIG --modversion libbrotlidec`
  19431. DIR_BROTLI=`echo $LD_BROTLI | $SED -e 's/^-L//'`
  19432. fi
  19433. ;;
  19434. off)
  19435. ;;
  19436. *)
  19437. PREFIX_BROTLI=$OPT_BROTLI
  19438. ;;
  19439. esac
  19440. if test -n "$PREFIX_BROTLI"; then
  19441. LIB_BROTLI="-lbrotlidec"
  19442. LD_BROTLI=-L${PREFIX_BROTLI}/lib$libsuff
  19443. CPP_BROTLI=-I${PREFIX_BROTLI}/include
  19444. DIR_BROTLI=${PREFIX_BROTLI}/lib$libsuff
  19445. fi
  19446. LDFLAGS="$LDFLAGS $LD_BROTLI"
  19447. CPPFLAGS="$CPPFLAGS $CPP_BROTLI"
  19448. LIBS="$LIB_BROTLI $LIBS"
  19449. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for BrotliDecoderDecompress in -lbrotlidec" >&5
  19450. printf %s "checking for BrotliDecoderDecompress in -lbrotlidec... " >&6; }
  19451. if test ${ac_cv_lib_brotlidec_BrotliDecoderDecompress+y}
  19452. then :
  19453. printf %s "(cached) " >&6
  19454. else $as_nop
  19455. ac_check_lib_save_LIBS=$LIBS
  19456. LIBS="-lbrotlidec $LIBS"
  19457. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19458. /* end confdefs.h. */
  19459. #ifdef __cplusplus
  19460. extern "C"
  19461. #endif
  19462. char BrotliDecoderDecompress ();
  19463. int main (void)
  19464. {
  19465. return BrotliDecoderDecompress ();
  19466. ;
  19467. return 0;
  19468. }
  19469. _ACEOF
  19470. if ac_fn_c_try_link "$LINENO"
  19471. then :
  19472. ac_cv_lib_brotlidec_BrotliDecoderDecompress=yes
  19473. else $as_nop
  19474. ac_cv_lib_brotlidec_BrotliDecoderDecompress=no
  19475. fi
  19476. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  19477. conftest$ac_exeext conftest.$ac_ext
  19478. LIBS=$ac_check_lib_save_LIBS
  19479. fi
  19480. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_brotlidec_BrotliDecoderDecompress" >&5
  19481. printf "%s\n" "$ac_cv_lib_brotlidec_BrotliDecoderDecompress" >&6; }
  19482. if test "x$ac_cv_lib_brotlidec_BrotliDecoderDecompress" = xyes
  19483. then :
  19484. printf "%s\n" "#define HAVE_LIBBROTLIDEC 1" >>confdefs.h
  19485. LIBS="-lbrotlidec $LIBS"
  19486. fi
  19487. for ac_header in brotli/decode.h
  19488. do :
  19489. ac_fn_c_check_header_compile "$LINENO" "brotli/decode.h" "ac_cv_header_brotli_decode_h" "$ac_includes_default"
  19490. if test "x$ac_cv_header_brotli_decode_h" = xyes
  19491. then :
  19492. printf "%s\n" "#define HAVE_BROTLI_DECODE_H 1" >>confdefs.h
  19493. curl_brotli_msg="enabled (libbrotlidec)"
  19494. HAVE_BROTLI=1
  19495. printf "%s\n" "#define HAVE_BROTLI 1" >>confdefs.h
  19496. HAVE_BROTLI=1
  19497. fi
  19498. done
  19499. if test X"$OPT_BROTLI" != Xoff &&
  19500. test "$HAVE_BROTLI" != "1"; then
  19501. as_fn_error $? "BROTLI libs and/or directories were not found where specified!" "$LINENO" 5
  19502. fi
  19503. if test "$HAVE_BROTLI" = "1"; then
  19504. if test -n "$DIR_BROTLI"; then
  19505. if test "x$cross_compiling" != "xyes"; then
  19506. CURL_LIBRARY_PATH="$CURL_LIBRARY_PATH:$DIR_BROTLI"
  19507. export CURL_LIBRARY_PATH
  19508. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: Added $DIR_BROTLI to CURL_LIBRARY_PATH" >&5
  19509. printf "%s\n" "$as_me: Added $DIR_BROTLI to CURL_LIBRARY_PATH" >&6;}
  19510. fi
  19511. fi
  19512. else
  19513. LDFLAGS=$CLEANLDFLAGS
  19514. CPPFLAGS=$CLEANCPPFLAGS
  19515. LIBS=$CLEANLIBS
  19516. fi
  19517. fi
  19518. OPT_ZSTD=off
  19519. # Check whether --with-zstd was given.
  19520. if test ${with_zstd+y}
  19521. then :
  19522. withval=$with_zstd; OPT_ZSTD=$withval
  19523. fi
  19524. if test X"$OPT_ZSTD" != Xno; then
  19525. CLEANLDFLAGS="$LDFLAGS"
  19526. CLEANCPPFLAGS="$CPPFLAGS"
  19527. CLEANLIBS="$LIBS"
  19528. case "$OPT_ZSTD" in
  19529. yes)
  19530. if test -n "$PKG_CONFIG"; then
  19531. PKGCONFIG="$PKG_CONFIG"
  19532. else
  19533. if test -n "$ac_tool_prefix"; then
  19534. # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
  19535. set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
  19536. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  19537. printf %s "checking for $ac_word... " >&6; }
  19538. if test ${ac_cv_path_PKGCONFIG+y}
  19539. then :
  19540. printf %s "(cached) " >&6
  19541. else $as_nop
  19542. case $PKGCONFIG in
  19543. [\\/]* | ?:[\\/]*)
  19544. ac_cv_path_PKGCONFIG="$PKGCONFIG" # Let the user override the test with a path.
  19545. ;;
  19546. *)
  19547. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  19548. as_dummy="$PATH:/usr/bin:/usr/local/bin"
  19549. for as_dir in $as_dummy
  19550. do
  19551. IFS=$as_save_IFS
  19552. case $as_dir in #(((
  19553. '') as_dir=./ ;;
  19554. */) ;;
  19555. *) as_dir=$as_dir/ ;;
  19556. esac
  19557. for ac_exec_ext in '' $ac_executable_extensions; do
  19558. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  19559. ac_cv_path_PKGCONFIG="$as_dir$ac_word$ac_exec_ext"
  19560. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  19561. break 2
  19562. fi
  19563. done
  19564. done
  19565. IFS=$as_save_IFS
  19566. ;;
  19567. esac
  19568. fi
  19569. PKGCONFIG=$ac_cv_path_PKGCONFIG
  19570. if test -n "$PKGCONFIG"; then
  19571. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PKGCONFIG" >&5
  19572. printf "%s\n" "$PKGCONFIG" >&6; }
  19573. else
  19574. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  19575. printf "%s\n" "no" >&6; }
  19576. fi
  19577. fi
  19578. if test -z "$ac_cv_path_PKGCONFIG"; then
  19579. ac_pt_PKGCONFIG=$PKGCONFIG
  19580. # Extract the first word of "pkg-config", so it can be a program name with args.
  19581. set dummy pkg-config; ac_word=$2
  19582. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  19583. printf %s "checking for $ac_word... " >&6; }
  19584. if test ${ac_cv_path_ac_pt_PKGCONFIG+y}
  19585. then :
  19586. printf %s "(cached) " >&6
  19587. else $as_nop
  19588. case $ac_pt_PKGCONFIG in
  19589. [\\/]* | ?:[\\/]*)
  19590. ac_cv_path_ac_pt_PKGCONFIG="$ac_pt_PKGCONFIG" # Let the user override the test with a path.
  19591. ;;
  19592. *)
  19593. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  19594. as_dummy="$PATH:/usr/bin:/usr/local/bin"
  19595. for as_dir in $as_dummy
  19596. do
  19597. IFS=$as_save_IFS
  19598. case $as_dir in #(((
  19599. '') as_dir=./ ;;
  19600. */) ;;
  19601. *) as_dir=$as_dir/ ;;
  19602. esac
  19603. for ac_exec_ext in '' $ac_executable_extensions; do
  19604. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  19605. ac_cv_path_ac_pt_PKGCONFIG="$as_dir$ac_word$ac_exec_ext"
  19606. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  19607. break 2
  19608. fi
  19609. done
  19610. done
  19611. IFS=$as_save_IFS
  19612. ;;
  19613. esac
  19614. fi
  19615. ac_pt_PKGCONFIG=$ac_cv_path_ac_pt_PKGCONFIG
  19616. if test -n "$ac_pt_PKGCONFIG"; then
  19617. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKGCONFIG" >&5
  19618. printf "%s\n" "$ac_pt_PKGCONFIG" >&6; }
  19619. else
  19620. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  19621. printf "%s\n" "no" >&6; }
  19622. fi
  19623. if test "x$ac_pt_PKGCONFIG" = x; then
  19624. PKGCONFIG="no"
  19625. else
  19626. case $cross_compiling:$ac_tool_warned in
  19627. yes:)
  19628. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  19629. printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  19630. ac_tool_warned=yes ;;
  19631. esac
  19632. PKGCONFIG=$ac_pt_PKGCONFIG
  19633. fi
  19634. else
  19635. PKGCONFIG="$ac_cv_path_PKGCONFIG"
  19636. fi
  19637. fi
  19638. if test "x$PKGCONFIG" != "xno"; then
  19639. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libzstd options with pkg-config" >&5
  19640. printf %s "checking for libzstd options with pkg-config... " >&6; }
  19641. itexists=`
  19642. if test -n ""; then
  19643. PKG_CONFIG_LIBDIR=""
  19644. export PKG_CONFIG_LIBDIR
  19645. fi
  19646. $PKGCONFIG --exists libzstd >/dev/null 2>&1 && echo 1`
  19647. if test -z "$itexists"; then
  19648. PKGCONFIG="no"
  19649. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  19650. printf "%s\n" "no" >&6; }
  19651. else
  19652. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: found" >&5
  19653. printf "%s\n" "found" >&6; }
  19654. fi
  19655. fi
  19656. if test "$PKGCONFIG" != "no" ; then
  19657. LIB_ZSTD=`$PKGCONFIG --libs-only-l libzstd`
  19658. LD_ZSTD=`$PKGCONFIG --libs-only-L libzstd`
  19659. CPP_ZSTD=`$PKGCONFIG --cflags-only-I libzstd`
  19660. version=`$PKGCONFIG --modversion libzstd`
  19661. DIR_ZSTD=`echo $LD_ZSTD | $SED -e 's/-L//'`
  19662. fi
  19663. ;;
  19664. off)
  19665. ;;
  19666. *)
  19667. PREFIX_ZSTD=$OPT_ZSTD
  19668. ;;
  19669. esac
  19670. if test -n "$PREFIX_ZSTD"; then
  19671. LIB_ZSTD="-lzstd"
  19672. LD_ZSTD=-L${PREFIX_ZSTD}/lib$libsuff
  19673. CPP_ZSTD=-I${PREFIX_ZSTD}/include
  19674. DIR_ZSTD=${PREFIX_ZSTD}/lib$libsuff
  19675. fi
  19676. LDFLAGS="$LDFLAGS $LD_ZSTD"
  19677. CPPFLAGS="$CPPFLAGS $CPP_ZSTD"
  19678. LIBS="$LIB_ZSTD $LIBS"
  19679. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ZSTD_createDStream in -lzstd" >&5
  19680. printf %s "checking for ZSTD_createDStream in -lzstd... " >&6; }
  19681. if test ${ac_cv_lib_zstd_ZSTD_createDStream+y}
  19682. then :
  19683. printf %s "(cached) " >&6
  19684. else $as_nop
  19685. ac_check_lib_save_LIBS=$LIBS
  19686. LIBS="-lzstd $LIBS"
  19687. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19688. /* end confdefs.h. */
  19689. #ifdef __cplusplus
  19690. extern "C"
  19691. #endif
  19692. char ZSTD_createDStream ();
  19693. int main (void)
  19694. {
  19695. return ZSTD_createDStream ();
  19696. ;
  19697. return 0;
  19698. }
  19699. _ACEOF
  19700. if ac_fn_c_try_link "$LINENO"
  19701. then :
  19702. ac_cv_lib_zstd_ZSTD_createDStream=yes
  19703. else $as_nop
  19704. ac_cv_lib_zstd_ZSTD_createDStream=no
  19705. fi
  19706. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  19707. conftest$ac_exeext conftest.$ac_ext
  19708. LIBS=$ac_check_lib_save_LIBS
  19709. fi
  19710. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_zstd_ZSTD_createDStream" >&5
  19711. printf "%s\n" "$ac_cv_lib_zstd_ZSTD_createDStream" >&6; }
  19712. if test "x$ac_cv_lib_zstd_ZSTD_createDStream" = xyes
  19713. then :
  19714. printf "%s\n" "#define HAVE_LIBZSTD 1" >>confdefs.h
  19715. LIBS="-lzstd $LIBS"
  19716. fi
  19717. for ac_header in zstd.h
  19718. do :
  19719. ac_fn_c_check_header_compile "$LINENO" "zstd.h" "ac_cv_header_zstd_h" "$ac_includes_default"
  19720. if test "x$ac_cv_header_zstd_h" = xyes
  19721. then :
  19722. printf "%s\n" "#define HAVE_ZSTD_H 1" >>confdefs.h
  19723. curl_zstd_msg="enabled (libzstd)"
  19724. HAVE_ZSTD=1
  19725. printf "%s\n" "#define HAVE_ZSTD 1" >>confdefs.h
  19726. HAVE_ZSTD=1
  19727. fi
  19728. done
  19729. if test X"$OPT_ZSTD" != Xoff &&
  19730. test "$HAVE_ZSTD" != "1"; then
  19731. as_fn_error $? "libzstd was not found where specified!" "$LINENO" 5
  19732. fi
  19733. if test "$HAVE_ZSTD" = "1"; then
  19734. if test -n "$DIR_ZSTD"; then
  19735. if test "x$cross_compiling" != "xyes"; then
  19736. CURL_LIBRARY_PATH="$CURL_LIBRARY_PATH:$DIR_ZSTD"
  19737. export CURL_LIBRARY_PATH
  19738. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: Added $DIR_ZSTD to CURL_LIBRARY_PATH" >&5
  19739. printf "%s\n" "$as_me: Added $DIR_ZSTD to CURL_LIBRARY_PATH" >&6;}
  19740. fi
  19741. fi
  19742. else
  19743. LDFLAGS=$CLEANLDFLAGS
  19744. CPPFLAGS=$CLEANCPPFLAGS
  19745. LIBS=$CLEANLIBS
  19746. fi
  19747. fi
  19748. LDAPLIBNAME=""
  19749. # Check whether --with-ldap-lib was given.
  19750. if test ${with_ldap_lib+y}
  19751. then :
  19752. withval=$with_ldap_lib; LDAPLIBNAME="$withval"
  19753. fi
  19754. LBERLIBNAME=""
  19755. # Check whether --with-lber-lib was given.
  19756. if test ${with_lber_lib+y}
  19757. then :
  19758. withval=$with_lber_lib; LBERLIBNAME="$withval"
  19759. fi
  19760. if test x$CURL_DISABLE_LDAP != x1 ; then
  19761. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for lber.h" >&5
  19762. printf %s "checking for lber.h... " >&6; }
  19763. if test ${curl_cv_header_lber_h+y}
  19764. then :
  19765. printf %s "(cached) " >&6
  19766. else $as_nop
  19767. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19768. /* end confdefs.h. */
  19769. #undef inline
  19770. #ifdef HAVE_WINDOWS_H
  19771. #ifndef WIN32_LEAN_AND_MEAN
  19772. #define WIN32_LEAN_AND_MEAN
  19773. #endif
  19774. #include <windows.h>
  19775. #else
  19776. #ifdef HAVE_SYS_TYPES_H
  19777. #include <sys/types.h>
  19778. #endif
  19779. #endif
  19780. #ifndef NULL
  19781. #define NULL (void *)0
  19782. #endif
  19783. #include <lber.h>
  19784. int main (void)
  19785. {
  19786. BerValue *bvp = NULL;
  19787. BerElement *bep = ber_init(bvp);
  19788. ber_free(bep, 1);
  19789. ;
  19790. return 0;
  19791. }
  19792. _ACEOF
  19793. if ac_fn_c_try_compile "$LINENO"
  19794. then :
  19795. curl_cv_header_lber_h="yes"
  19796. else $as_nop
  19797. curl_cv_header_lber_h="no"
  19798. fi
  19799. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  19800. fi
  19801. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $curl_cv_header_lber_h" >&5
  19802. printf "%s\n" "$curl_cv_header_lber_h" >&6; }
  19803. if test "$curl_cv_header_lber_h" = "yes"; then
  19804. printf "%s\n" "#define HAVE_LBER_H 1" >>confdefs.h
  19805. #
  19806. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19807. /* end confdefs.h. */
  19808. #undef inline
  19809. #ifdef HAVE_WINDOWS_H
  19810. #ifndef WIN32_LEAN_AND_MEAN
  19811. #define WIN32_LEAN_AND_MEAN
  19812. #endif
  19813. #include <windows.h>
  19814. #else
  19815. #ifdef HAVE_SYS_TYPES_H
  19816. #include <sys/types.h>
  19817. #endif
  19818. #endif
  19819. #ifndef NULL
  19820. #define NULL (void *)0
  19821. #endif
  19822. #ifndef LDAP_DEPRECATED
  19823. #define LDAP_DEPRECATED 1
  19824. #endif
  19825. #include <ldap.h>
  19826. int main (void)
  19827. {
  19828. BerValue *bvp = NULL;
  19829. BerElement *bep = ber_init(bvp);
  19830. ber_free(bep, 1);
  19831. ;
  19832. return 0;
  19833. }
  19834. _ACEOF
  19835. if ac_fn_c_try_compile "$LINENO"
  19836. then :
  19837. curl_cv_need_header_lber_h="no"
  19838. else $as_nop
  19839. curl_cv_need_header_lber_h="yes"
  19840. fi
  19841. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  19842. #
  19843. case "$curl_cv_need_header_lber_h" in
  19844. yes)
  19845. printf "%s\n" "#define NEED_LBER_H 1" >>confdefs.h
  19846. ;;
  19847. esac
  19848. fi
  19849. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ldap.h" >&5
  19850. printf %s "checking for ldap.h... " >&6; }
  19851. if test ${curl_cv_header_ldap_h+y}
  19852. then :
  19853. printf %s "(cached) " >&6
  19854. else $as_nop
  19855. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19856. /* end confdefs.h. */
  19857. #undef inline
  19858. #ifdef HAVE_WINDOWS_H
  19859. #ifndef WIN32_LEAN_AND_MEAN
  19860. #define WIN32_LEAN_AND_MEAN
  19861. #endif
  19862. #include <windows.h>
  19863. #else
  19864. #ifdef HAVE_SYS_TYPES_H
  19865. #include <sys/types.h>
  19866. #endif
  19867. #endif
  19868. #ifndef LDAP_DEPRECATED
  19869. #define LDAP_DEPRECATED 1
  19870. #endif
  19871. #ifdef NEED_LBER_H
  19872. #include <lber.h>
  19873. #endif
  19874. #include <ldap.h>
  19875. int main (void)
  19876. {
  19877. LDAP *ldp = ldap_init("dummy", LDAP_PORT);
  19878. int res = ldap_unbind(ldp);
  19879. ;
  19880. return 0;
  19881. }
  19882. _ACEOF
  19883. if ac_fn_c_try_compile "$LINENO"
  19884. then :
  19885. curl_cv_header_ldap_h="yes"
  19886. else $as_nop
  19887. curl_cv_header_ldap_h="no"
  19888. fi
  19889. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  19890. fi
  19891. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $curl_cv_header_ldap_h" >&5
  19892. printf "%s\n" "$curl_cv_header_ldap_h" >&6; }
  19893. case "$curl_cv_header_ldap_h" in
  19894. yes)
  19895. printf "%s\n" "#define HAVE_LDAP_H 1" >>confdefs.h
  19896. ;;
  19897. esac
  19898. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ldapssl.h" >&5
  19899. printf %s "checking for ldapssl.h... " >&6; }
  19900. if test ${curl_cv_header_ldapssl_h+y}
  19901. then :
  19902. printf %s "(cached) " >&6
  19903. else $as_nop
  19904. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19905. /* end confdefs.h. */
  19906. #undef inline
  19907. #ifdef HAVE_WINDOWS_H
  19908. #ifndef WIN32_LEAN_AND_MEAN
  19909. #define WIN32_LEAN_AND_MEAN
  19910. #endif
  19911. #include <windows.h>
  19912. #else
  19913. #ifdef HAVE_SYS_TYPES_H
  19914. #include <sys/types.h>
  19915. #endif
  19916. #endif
  19917. #ifndef NULL
  19918. #define NULL (void *)0
  19919. #endif
  19920. #ifndef LDAP_DEPRECATED
  19921. #define LDAP_DEPRECATED 1
  19922. #endif
  19923. #ifdef NEED_LBER_H
  19924. #include <lber.h>
  19925. #endif
  19926. #ifdef HAVE_LDAP_H
  19927. #include <ldap.h>
  19928. #endif
  19929. #include <ldapssl.h>
  19930. int main (void)
  19931. {
  19932. char *cert_label = NULL;
  19933. LDAP *ldp = ldap_ssl_init("dummy", LDAPS_PORT, cert_label);
  19934. ;
  19935. return 0;
  19936. }
  19937. _ACEOF
  19938. if ac_fn_c_try_compile "$LINENO"
  19939. then :
  19940. curl_cv_header_ldapssl_h="yes"
  19941. else $as_nop
  19942. curl_cv_header_ldapssl_h="no"
  19943. fi
  19944. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  19945. fi
  19946. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $curl_cv_header_ldapssl_h" >&5
  19947. printf "%s\n" "$curl_cv_header_ldapssl_h" >&6; }
  19948. case "$curl_cv_header_ldapssl_h" in
  19949. yes)
  19950. printf "%s\n" "#define HAVE_LDAPSSL_H 1" >>confdefs.h
  19951. ;;
  19952. esac
  19953. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ldap_ssl.h" >&5
  19954. printf %s "checking for ldap_ssl.h... " >&6; }
  19955. if test ${curl_cv_header_ldap_ssl_h+y}
  19956. then :
  19957. printf %s "(cached) " >&6
  19958. else $as_nop
  19959. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19960. /* end confdefs.h. */
  19961. #undef inline
  19962. #ifdef HAVE_WINDOWS_H
  19963. #ifndef WIN32_LEAN_AND_MEAN
  19964. #define WIN32_LEAN_AND_MEAN
  19965. #endif
  19966. #include <windows.h>
  19967. #else
  19968. #ifdef HAVE_SYS_TYPES_H
  19969. #include <sys/types.h>
  19970. #endif
  19971. #endif
  19972. #ifndef LDAP_DEPRECATED
  19973. #define LDAP_DEPRECATED 1
  19974. #endif
  19975. #ifdef NEED_LBER_H
  19976. #include <lber.h>
  19977. #endif
  19978. #ifdef HAVE_LDAP_H
  19979. #include <ldap.h>
  19980. #endif
  19981. #include <ldap_ssl.h>
  19982. int main (void)
  19983. {
  19984. LDAP *ldp = ldapssl_init("dummy", LDAPS_PORT, 1);
  19985. ;
  19986. return 0;
  19987. }
  19988. _ACEOF
  19989. if ac_fn_c_try_compile "$LINENO"
  19990. then :
  19991. curl_cv_header_ldap_ssl_h="yes"
  19992. else $as_nop
  19993. curl_cv_header_ldap_ssl_h="no"
  19994. fi
  19995. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  19996. fi
  19997. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $curl_cv_header_ldap_ssl_h" >&5
  19998. printf "%s\n" "$curl_cv_header_ldap_ssl_h" >&6; }
  19999. case "$curl_cv_header_ldap_ssl_h" in
  20000. yes)
  20001. printf "%s\n" "#define HAVE_LDAP_SSL_H 1" >>confdefs.h
  20002. ;;
  20003. esac
  20004. if test -z "$LDAPLIBNAME" ; then
  20005. if test "$curl_cv_native_windows" = "yes"; then
  20006. LDAPLIBNAME="wldap32"
  20007. LBERLIBNAME="no"
  20008. fi
  20009. fi
  20010. if test "$LDAPLIBNAME" ; then
  20011. as_ac_Lib=`printf "%s\n" "ac_cv_lib_"$LDAPLIBNAME"""_ldap_init" | $as_tr_sh`
  20012. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ldap_init in -l\"$LDAPLIBNAME\"" >&5
  20013. printf %s "checking for ldap_init in -l\"$LDAPLIBNAME\"... " >&6; }
  20014. if eval test \${$as_ac_Lib+y}
  20015. then :
  20016. printf %s "(cached) " >&6
  20017. else $as_nop
  20018. ac_check_lib_save_LIBS=$LIBS
  20019. LIBS="-l"$LDAPLIBNAME" $LIBS"
  20020. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  20021. /* end confdefs.h. */
  20022. #ifdef __cplusplus
  20023. extern "C"
  20024. #endif
  20025. char ldap_init ();
  20026. int main (void)
  20027. {
  20028. return ldap_init ();
  20029. ;
  20030. return 0;
  20031. }
  20032. _ACEOF
  20033. if ac_fn_c_try_link "$LINENO"
  20034. then :
  20035. eval "$as_ac_Lib=yes"
  20036. else $as_nop
  20037. eval "$as_ac_Lib=no"
  20038. fi
  20039. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  20040. conftest$ac_exeext conftest.$ac_ext
  20041. LIBS=$ac_check_lib_save_LIBS
  20042. fi
  20043. eval ac_res=\$$as_ac_Lib
  20044. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  20045. printf "%s\n" "$ac_res" >&6; }
  20046. if eval test \"x\$"$as_ac_Lib"\" = x"yes"
  20047. then :
  20048. cat >>confdefs.h <<_ACEOF
  20049. #define `printf "%s\n" "HAVE_LIB"$LDAPLIBNAME"" | $as_tr_cpp` 1
  20050. _ACEOF
  20051. LIBS="-l"$LDAPLIBNAME" $LIBS"
  20052. else $as_nop
  20053. if test -n "$ldap_askedfor"; then
  20054. as_fn_error $? "couldn't detect the LDAP libraries" "$LINENO" 5
  20055. fi
  20056. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: \"$LDAPLIBNAME\" is not an LDAP library: LDAP disabled" >&5
  20057. printf "%s\n" "$as_me: WARNING: \"$LDAPLIBNAME\" is not an LDAP library: LDAP disabled" >&2;}
  20058. printf "%s\n" "#define CURL_DISABLE_LDAP 1" >>confdefs.h
  20059. CURL_DISABLE_LDAP=1
  20060. printf "%s\n" "#define CURL_DISABLE_LDAPS 1" >>confdefs.h
  20061. CURL_DISABLE_LDAPS=1
  20062. fi
  20063. else
  20064. #
  20065. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for LDAP libraries" >&5
  20066. printf %s "checking for LDAP libraries... " >&6; }
  20067. #
  20068. u_libs=""
  20069. #
  20070. #
  20071. curl_cv_save_LIBS="$LIBS"
  20072. curl_cv_ldap_LIBS="unknown"
  20073. #
  20074. for x_nlibs in '' "$u_libs" \
  20075. '-lldap' \
  20076. '-lldap -llber' \
  20077. '-llber -lldap' \
  20078. '-lldapssl -lldapx -lldapsdk' \
  20079. '-lldapsdk -lldapx -lldapssl' \
  20080. '-lldap -llber -lssl -lcrypto' ; do
  20081. if test "$curl_cv_ldap_LIBS" = "unknown"; then
  20082. if test -z "$x_nlibs"; then
  20083. LIBS="$curl_cv_save_LIBS"
  20084. else
  20085. LIBS="$x_nlibs $curl_cv_save_LIBS"
  20086. fi
  20087. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  20088. /* end confdefs.h. */
  20089. #undef inline
  20090. #ifdef HAVE_WINDOWS_H
  20091. #ifndef WIN32_LEAN_AND_MEAN
  20092. #define WIN32_LEAN_AND_MEAN
  20093. #endif
  20094. #include <windows.h>
  20095. #else
  20096. #ifdef HAVE_SYS_TYPES_H
  20097. #include <sys/types.h>
  20098. #endif
  20099. #endif
  20100. #ifndef NULL
  20101. #define NULL (void *)0
  20102. #endif
  20103. #ifndef LDAP_DEPRECATED
  20104. #define LDAP_DEPRECATED 1
  20105. #endif
  20106. #ifdef NEED_LBER_H
  20107. #include <lber.h>
  20108. #endif
  20109. #ifdef HAVE_LDAP_H
  20110. #include <ldap.h>
  20111. #endif
  20112. int main (void)
  20113. {
  20114. BerValue *bvp = NULL;
  20115. BerElement *bep = ber_init(bvp);
  20116. LDAP *ldp = ldap_init("dummy", LDAP_PORT);
  20117. int res = ldap_unbind(ldp);
  20118. ber_free(bep, 1);
  20119. ;
  20120. return 0;
  20121. }
  20122. _ACEOF
  20123. if ac_fn_c_try_link "$LINENO"
  20124. then :
  20125. curl_cv_ldap_LIBS="$x_nlibs"
  20126. fi
  20127. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  20128. conftest$ac_exeext conftest.$ac_ext
  20129. fi
  20130. done
  20131. #
  20132. LIBS="$curl_cv_save_LIBS"
  20133. #
  20134. case X-"$curl_cv_ldap_LIBS" in
  20135. X-unknown)
  20136. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: cannot find LDAP libraries" >&5
  20137. printf "%s\n" "cannot find LDAP libraries" >&6; }
  20138. ;;
  20139. X-)
  20140. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no additional lib required" >&5
  20141. printf "%s\n" "no additional lib required" >&6; }
  20142. ;;
  20143. *)
  20144. if test -z "$curl_cv_save_LIBS"; then
  20145. LIBS="$curl_cv_ldap_LIBS"
  20146. else
  20147. LIBS="$curl_cv_ldap_LIBS $curl_cv_save_LIBS"
  20148. fi
  20149. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $curl_cv_ldap_LIBS" >&5
  20150. printf "%s\n" "$curl_cv_ldap_LIBS" >&6; }
  20151. ;;
  20152. esac
  20153. #
  20154. case X-"$curl_cv_ldap_LIBS" in
  20155. X-unknown)
  20156. if test -n "$ldap_askedfor"; then
  20157. as_fn_error $? "couldn't detect the LDAP libraries" "$LINENO" 5
  20158. fi
  20159. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: Cannot find libraries for LDAP support: LDAP disabled" >&5
  20160. printf "%s\n" "$as_me: WARNING: Cannot find libraries for LDAP support: LDAP disabled" >&2;}
  20161. printf "%s\n" "#define CURL_DISABLE_LDAP 1" >>confdefs.h
  20162. CURL_DISABLE_LDAP=1
  20163. printf "%s\n" "#define CURL_DISABLE_LDAPS 1" >>confdefs.h
  20164. CURL_DISABLE_LDAPS=1
  20165. ;;
  20166. esac
  20167. fi
  20168. fi
  20169. if test x$CURL_DISABLE_LDAP != x1 ; then
  20170. if test "$LBERLIBNAME" ; then
  20171. if test "$LBERLIBNAME" != "no" ; then
  20172. as_ac_Lib=`printf "%s\n" "ac_cv_lib_"$LBERLIBNAME"""_ber_free" | $as_tr_sh`
  20173. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ber_free in -l\"$LBERLIBNAME\"" >&5
  20174. printf %s "checking for ber_free in -l\"$LBERLIBNAME\"... " >&6; }
  20175. if eval test \${$as_ac_Lib+y}
  20176. then :
  20177. printf %s "(cached) " >&6
  20178. else $as_nop
  20179. ac_check_lib_save_LIBS=$LIBS
  20180. LIBS="-l"$LBERLIBNAME" $LIBS"
  20181. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  20182. /* end confdefs.h. */
  20183. #ifdef __cplusplus
  20184. extern "C"
  20185. #endif
  20186. char ber_free ();
  20187. int main (void)
  20188. {
  20189. return ber_free ();
  20190. ;
  20191. return 0;
  20192. }
  20193. _ACEOF
  20194. if ac_fn_c_try_link "$LINENO"
  20195. then :
  20196. eval "$as_ac_Lib=yes"
  20197. else $as_nop
  20198. eval "$as_ac_Lib=no"
  20199. fi
  20200. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  20201. conftest$ac_exeext conftest.$ac_ext
  20202. LIBS=$ac_check_lib_save_LIBS
  20203. fi
  20204. eval ac_res=\$$as_ac_Lib
  20205. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  20206. printf "%s\n" "$ac_res" >&6; }
  20207. if eval test \"x\$"$as_ac_Lib"\" = x"yes"
  20208. then :
  20209. cat >>confdefs.h <<_ACEOF
  20210. #define `printf "%s\n" "HAVE_LIB"$LBERLIBNAME"" | $as_tr_cpp` 1
  20211. _ACEOF
  20212. LIBS="-l"$LBERLIBNAME" $LIBS"
  20213. else $as_nop
  20214. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: \"$LBERLIBNAME\" is not an LBER library: LDAP disabled" >&5
  20215. printf "%s\n" "$as_me: WARNING: \"$LBERLIBNAME\" is not an LBER library: LDAP disabled" >&2;}
  20216. printf "%s\n" "#define CURL_DISABLE_LDAP 1" >>confdefs.h
  20217. CURL_DISABLE_LDAP=1
  20218. printf "%s\n" "#define CURL_DISABLE_LDAPS 1" >>confdefs.h
  20219. CURL_DISABLE_LDAPS=1
  20220. fi
  20221. fi
  20222. fi
  20223. fi
  20224. if test x$CURL_DISABLE_LDAP != x1 ; then
  20225. ac_fn_c_check_func "$LINENO" "ldap_url_parse" "ac_cv_func_ldap_url_parse"
  20226. if test "x$ac_cv_func_ldap_url_parse" = xyes
  20227. then :
  20228. printf "%s\n" "#define HAVE_LDAP_URL_PARSE 1" >>confdefs.h
  20229. fi
  20230. ac_fn_c_check_func "$LINENO" "ldap_init_fd" "ac_cv_func_ldap_init_fd"
  20231. if test "x$ac_cv_func_ldap_init_fd" = xyes
  20232. then :
  20233. printf "%s\n" "#define HAVE_LDAP_INIT_FD 1" >>confdefs.h
  20234. fi
  20235. if test "$LDAPLIBNAME" = "wldap32"; then
  20236. curl_ldap_msg="enabled (winldap)"
  20237. printf "%s\n" "#define USE_WIN32_LDAP 1" >>confdefs.h
  20238. else
  20239. curl_ldap_msg="enabled (OpenLDAP)"
  20240. if test "x$ac_cv_func_ldap_init_fd" = "xyes"; then
  20241. printf "%s\n" "#define USE_OPENLDAP 1" >>confdefs.h
  20242. USE_OPENLDAP=1
  20243. fi
  20244. fi
  20245. fi
  20246. if test x$CURL_DISABLE_LDAPS != x1 ; then
  20247. curl_ldaps_msg="enabled"
  20248. fi
  20249. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to enable IPv6" >&5
  20250. printf %s "checking whether to enable IPv6... " >&6; }
  20251. # Check whether --enable-ipv6 was given.
  20252. if test ${enable_ipv6+y}
  20253. then :
  20254. enableval=$enable_ipv6; case "$enableval" in
  20255. no)
  20256. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  20257. printf "%s\n" "no" >&6; }
  20258. ipv6=no
  20259. ;;
  20260. *) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  20261. printf "%s\n" "yes" >&6; }
  20262. ipv6=yes
  20263. ;;
  20264. esac
  20265. else $as_nop
  20266. if test "$cross_compiling" = yes
  20267. then :
  20268. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  20269. printf "%s\n" "yes" >&6; }
  20270. ipv6=yes
  20271. else $as_nop
  20272. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  20273. /* end confdefs.h. */
  20274. /* are AF_INET6 and sockaddr_in6 available? */
  20275. #include <sys/types.h>
  20276. #ifdef HAVE_WINSOCK2_H
  20277. #include <winsock2.h>
  20278. #include <ws2tcpip.h>
  20279. #else
  20280. #include <sys/socket.h>
  20281. #include <netinet/in.h>
  20282. #if defined (__TANDEM)
  20283. # include <netinet/in6.h>
  20284. #endif
  20285. #endif
  20286. #include <stdlib.h> /* for exit() */
  20287. main()
  20288. {
  20289. struct sockaddr_in6 s;
  20290. (void)s;
  20291. if (socket(AF_INET6, SOCK_STREAM, 0) < 0)
  20292. exit(1);
  20293. else
  20294. exit(0);
  20295. }
  20296. _ACEOF
  20297. if ac_fn_c_try_run "$LINENO"
  20298. then :
  20299. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  20300. printf "%s\n" "yes" >&6; }
  20301. ipv6=yes
  20302. else $as_nop
  20303. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  20304. printf "%s\n" "no" >&6; }
  20305. ipv6=no
  20306. fi
  20307. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  20308. conftest.$ac_objext conftest.beam conftest.$ac_ext
  20309. fi
  20310. fi
  20311. if test "$ipv6" = yes; then
  20312. curl_ipv6_msg="enabled"
  20313. printf "%s\n" "#define ENABLE_IPV6 1" >>confdefs.h
  20314. IPV6_ENABLED=1
  20315. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if struct sockaddr_in6 has sin6_scope_id member" >&5
  20316. printf %s "checking if struct sockaddr_in6 has sin6_scope_id member... " >&6; }
  20317. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  20318. /* end confdefs.h. */
  20319. #include <sys/types.h>
  20320. #ifdef HAVE_WINSOCK2_H
  20321. #include <winsock2.h>
  20322. #include <ws2tcpip.h>
  20323. #else
  20324. #include <netinet/in.h>
  20325. #if defined (__TANDEM)
  20326. # include <netinet/in6.h>
  20327. #endif
  20328. #endif
  20329. int main (void)
  20330. {
  20331. struct sockaddr_in6 s;
  20332. s.sin6_scope_id = 0;
  20333. ;
  20334. return 0;
  20335. }
  20336. _ACEOF
  20337. if ac_fn_c_try_compile "$LINENO"
  20338. then :
  20339. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  20340. printf "%s\n" "yes" >&6; }
  20341. printf "%s\n" "#define HAVE_SOCKADDR_IN6_SIN6_SCOPE_ID 1" >>confdefs.h
  20342. else $as_nop
  20343. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  20344. printf "%s\n" "no" >&6; }
  20345. fi
  20346. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  20347. fi
  20348. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if argv can be written to" >&5
  20349. printf %s "checking if argv can be written to... " >&6; }
  20350. old=$LD_LIBRARY_PATH
  20351. LD_LIBRARY_PATH=$CURL_LIBRARY_PATH:$old
  20352. export LD_LIBRARY_PATH
  20353. if test "$cross_compiling" = yes
  20354. then :
  20355. curl_cv_writable_argv=cross
  20356. else $as_nop
  20357. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  20358. /* end confdefs.h. */
  20359. int main(int argc, char **argv)
  20360. {
  20361. (void)argc;
  20362. argv[0][0] = ' ';
  20363. return (argv[0][0] == ' ')?0:1;
  20364. }
  20365. _ACEOF
  20366. if ac_fn_c_try_run "$LINENO"
  20367. then :
  20368. curl_cv_writable_argv=yes
  20369. else $as_nop
  20370. curl_cv_writable_argv=no
  20371. fi
  20372. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  20373. conftest.$ac_objext conftest.beam conftest.$ac_ext
  20374. fi
  20375. LD_LIBRARY_PATH=$old # restore
  20376. case $curl_cv_writable_argv in
  20377. yes)
  20378. printf "%s\n" "#define HAVE_WRITABLE_ARGV 1" >>confdefs.h
  20379. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  20380. printf "%s\n" "yes" >&6; }
  20381. ;;
  20382. no)
  20383. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  20384. printf "%s\n" "no" >&6; }
  20385. ;;
  20386. *)
  20387. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  20388. printf "%s\n" "no" >&6; }
  20389. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: the previous check could not be made default was used" >&5
  20390. printf "%s\n" "$as_me: WARNING: the previous check could not be made default was used" >&2;}
  20391. ;;
  20392. esac
  20393. GSSAPI_ROOT="/usr"
  20394. # Check whether --with-gssapi-includes was given.
  20395. if test ${with_gssapi_includes+y}
  20396. then :
  20397. withval=$with_gssapi_includes; GSSAPI_INCS="-I$withval"
  20398. want_gss="yes"
  20399. fi
  20400. # Check whether --with-gssapi-libs was given.
  20401. if test ${with_gssapi_libs+y}
  20402. then :
  20403. withval=$with_gssapi_libs; GSSAPI_LIB_DIR="-L$withval"
  20404. want_gss="yes"
  20405. fi
  20406. # Check whether --with-gssapi was given.
  20407. if test ${with_gssapi+y}
  20408. then :
  20409. withval=$with_gssapi;
  20410. GSSAPI_ROOT="$withval"
  20411. if test x"$GSSAPI_ROOT" != xno; then
  20412. want_gss="yes"
  20413. if test x"$GSSAPI_ROOT" = xyes; then
  20414. GSSAPI_ROOT="/usr"
  20415. fi
  20416. fi
  20417. fi
  20418. save_CPPFLAGS="$CPPFLAGS"
  20419. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if GSS-API support is requested" >&5
  20420. printf %s "checking if GSS-API support is requested... " >&6; }
  20421. if test x"$want_gss" = xyes; then
  20422. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  20423. printf "%s\n" "yes" >&6; }
  20424. if test -n "$PKG_CONFIG"; then
  20425. PKGCONFIG="$PKG_CONFIG"
  20426. else
  20427. if test -n "$ac_tool_prefix"; then
  20428. # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
  20429. set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
  20430. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  20431. printf %s "checking for $ac_word... " >&6; }
  20432. if test ${ac_cv_path_PKGCONFIG+y}
  20433. then :
  20434. printf %s "(cached) " >&6
  20435. else $as_nop
  20436. case $PKGCONFIG in
  20437. [\\/]* | ?:[\\/]*)
  20438. ac_cv_path_PKGCONFIG="$PKGCONFIG" # Let the user override the test with a path.
  20439. ;;
  20440. *)
  20441. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  20442. as_dummy="$PATH:/usr/bin:/usr/local/bin"
  20443. for as_dir in $as_dummy
  20444. do
  20445. IFS=$as_save_IFS
  20446. case $as_dir in #(((
  20447. '') as_dir=./ ;;
  20448. */) ;;
  20449. *) as_dir=$as_dir/ ;;
  20450. esac
  20451. for ac_exec_ext in '' $ac_executable_extensions; do
  20452. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  20453. ac_cv_path_PKGCONFIG="$as_dir$ac_word$ac_exec_ext"
  20454. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  20455. break 2
  20456. fi
  20457. done
  20458. done
  20459. IFS=$as_save_IFS
  20460. ;;
  20461. esac
  20462. fi
  20463. PKGCONFIG=$ac_cv_path_PKGCONFIG
  20464. if test -n "$PKGCONFIG"; then
  20465. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PKGCONFIG" >&5
  20466. printf "%s\n" "$PKGCONFIG" >&6; }
  20467. else
  20468. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  20469. printf "%s\n" "no" >&6; }
  20470. fi
  20471. fi
  20472. if test -z "$ac_cv_path_PKGCONFIG"; then
  20473. ac_pt_PKGCONFIG=$PKGCONFIG
  20474. # Extract the first word of "pkg-config", so it can be a program name with args.
  20475. set dummy pkg-config; ac_word=$2
  20476. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  20477. printf %s "checking for $ac_word... " >&6; }
  20478. if test ${ac_cv_path_ac_pt_PKGCONFIG+y}
  20479. then :
  20480. printf %s "(cached) " >&6
  20481. else $as_nop
  20482. case $ac_pt_PKGCONFIG in
  20483. [\\/]* | ?:[\\/]*)
  20484. ac_cv_path_ac_pt_PKGCONFIG="$ac_pt_PKGCONFIG" # Let the user override the test with a path.
  20485. ;;
  20486. *)
  20487. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  20488. as_dummy="$PATH:/usr/bin:/usr/local/bin"
  20489. for as_dir in $as_dummy
  20490. do
  20491. IFS=$as_save_IFS
  20492. case $as_dir in #(((
  20493. '') as_dir=./ ;;
  20494. */) ;;
  20495. *) as_dir=$as_dir/ ;;
  20496. esac
  20497. for ac_exec_ext in '' $ac_executable_extensions; do
  20498. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  20499. ac_cv_path_ac_pt_PKGCONFIG="$as_dir$ac_word$ac_exec_ext"
  20500. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  20501. break 2
  20502. fi
  20503. done
  20504. done
  20505. IFS=$as_save_IFS
  20506. ;;
  20507. esac
  20508. fi
  20509. ac_pt_PKGCONFIG=$ac_cv_path_ac_pt_PKGCONFIG
  20510. if test -n "$ac_pt_PKGCONFIG"; then
  20511. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKGCONFIG" >&5
  20512. printf "%s\n" "$ac_pt_PKGCONFIG" >&6; }
  20513. else
  20514. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  20515. printf "%s\n" "no" >&6; }
  20516. fi
  20517. if test "x$ac_pt_PKGCONFIG" = x; then
  20518. PKGCONFIG="no"
  20519. else
  20520. case $cross_compiling:$ac_tool_warned in
  20521. yes:)
  20522. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  20523. printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  20524. ac_tool_warned=yes ;;
  20525. esac
  20526. PKGCONFIG=$ac_pt_PKGCONFIG
  20527. fi
  20528. else
  20529. PKGCONFIG="$ac_cv_path_PKGCONFIG"
  20530. fi
  20531. fi
  20532. if test "x$PKGCONFIG" != "xno"; then
  20533. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for mit-krb5-gssapi options with pkg-config" >&5
  20534. printf %s "checking for mit-krb5-gssapi options with pkg-config... " >&6; }
  20535. itexists=`
  20536. if test -n ""; then
  20537. PKG_CONFIG_LIBDIR=""
  20538. export PKG_CONFIG_LIBDIR
  20539. fi
  20540. $PKGCONFIG --exists mit-krb5-gssapi >/dev/null 2>&1 && echo 1`
  20541. if test -z "$itexists"; then
  20542. PKGCONFIG="no"
  20543. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  20544. printf "%s\n" "no" >&6; }
  20545. else
  20546. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: found" >&5
  20547. printf "%s\n" "found" >&6; }
  20548. fi
  20549. fi
  20550. if test -z "$GSSAPI_INCS"; then
  20551. if test -n "$host_alias" -a -f "$GSSAPI_ROOT/bin/$host_alias-krb5-config"; then
  20552. GSSAPI_INCS=`$GSSAPI_ROOT/bin/$host_alias-krb5-config --cflags gssapi`
  20553. elif test "$PKGCONFIG" != "no" ; then
  20554. GSSAPI_INCS=`$PKGCONFIG --cflags mit-krb5-gssapi`
  20555. elif test "$GSSAPI_ROOT" != "yes"; then
  20556. GSSAPI_INCS="-I$GSSAPI_ROOT/include"
  20557. fi
  20558. fi
  20559. CPPFLAGS="$CPPFLAGS $GSSAPI_INCS"
  20560. ac_fn_c_check_header_compile "$LINENO" "gss.h" "ac_cv_header_gss_h" "$ac_includes_default"
  20561. if test "x$ac_cv_header_gss_h" = xyes
  20562. then :
  20563. printf "%s\n" "#define HAVE_GSSGNU 1" >>confdefs.h
  20564. gnu_gss=yes
  20565. else $as_nop
  20566. for ac_header in gssapi/gssapi.h
  20567. do :
  20568. ac_fn_c_check_header_compile "$LINENO" "gssapi/gssapi.h" "ac_cv_header_gssapi_gssapi_h" "$ac_includes_default"
  20569. if test "x$ac_cv_header_gssapi_gssapi_h" = xyes
  20570. then :
  20571. printf "%s\n" "#define HAVE_GSSAPI_GSSAPI_H 1" >>confdefs.h
  20572. else $as_nop
  20573. not_mit=1
  20574. fi
  20575. done
  20576. for ac_header in gssapi/gssapi_generic.h gssapi/gssapi_krb5.h
  20577. do :
  20578. as_ac_Header=`printf "%s\n" "ac_cv_header_$ac_header" | $as_tr_sh`
  20579. ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "
  20580. $ac_includes_default
  20581. #ifdef HAVE_GSSAPI_GSSAPI_H
  20582. #include <gssapi/gssapi.h>
  20583. #endif
  20584. "
  20585. if eval test \"x\$"$as_ac_Header"\" = x"yes"
  20586. then :
  20587. cat >>confdefs.h <<_ACEOF
  20588. #define `printf "%s\n" "HAVE_$ac_header" | $as_tr_cpp` 1
  20589. _ACEOF
  20590. else $as_nop
  20591. not_mit=1
  20592. fi
  20593. done
  20594. if test "x$not_mit" = "x1"; then
  20595. ac_fn_c_check_header_compile "$LINENO" "gssapi.h" "ac_cv_header_gssapi_h" "$ac_includes_default"
  20596. if test "x$ac_cv_header_gssapi_h" = xyes
  20597. then :
  20598. printf "%s\n" "#define HAVE_GSSHEIMDAL 1" >>confdefs.h
  20599. else $as_nop
  20600. want_gss=no
  20601. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: disabling GSS-API support since no header files were found" >&5
  20602. printf "%s\n" "$as_me: WARNING: disabling GSS-API support since no header files were found" >&2;}
  20603. fi
  20604. else
  20605. printf "%s\n" "#define HAVE_GSSMIT 1" >>confdefs.h
  20606. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if GSS-API headers declare GSS_C_NT_HOSTBASED_SERVICE" >&5
  20607. printf %s "checking if GSS-API headers declare GSS_C_NT_HOSTBASED_SERVICE... " >&6; }
  20608. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  20609. /* end confdefs.h. */
  20610. #include <gssapi/gssapi.h>
  20611. #include <gssapi/gssapi_generic.h>
  20612. #include <gssapi/gssapi_krb5.h>
  20613. int main (void)
  20614. {
  20615. gss_import_name(
  20616. (OM_uint32 *)0,
  20617. (gss_buffer_t)0,
  20618. GSS_C_NT_HOSTBASED_SERVICE,
  20619. (gss_name_t *)0);
  20620. ;
  20621. return 0;
  20622. }
  20623. _ACEOF
  20624. if ac_fn_c_try_compile "$LINENO"
  20625. then :
  20626. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  20627. printf "%s\n" "yes" >&6; }
  20628. else $as_nop
  20629. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  20630. printf "%s\n" "no" >&6; }
  20631. printf "%s\n" "#define HAVE_OLD_GSSMIT 1" >>confdefs.h
  20632. fi
  20633. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  20634. fi
  20635. fi
  20636. else
  20637. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  20638. printf "%s\n" "no" >&6; }
  20639. fi
  20640. if test x"$want_gss" = xyes; then
  20641. printf "%s\n" "#define HAVE_GSSAPI 1" >>confdefs.h
  20642. HAVE_GSSAPI=1
  20643. curl_gss_msg="enabled (MIT Kerberos/Heimdal)"
  20644. if test -n "$gnu_gss"; then
  20645. curl_gss_msg="enabled (GNU GSS)"
  20646. LDFLAGS="$LDFLAGS $GSSAPI_LIB_DIR"
  20647. LIBS="-lgss $LIBS"
  20648. elif test -z "$GSSAPI_LIB_DIR"; then
  20649. case $host in
  20650. *-*-darwin*)
  20651. LIBS="-lgssapi_krb5 -lresolv $LIBS"
  20652. ;;
  20653. *)
  20654. if test -n "$PKG_CONFIG"; then
  20655. PKGCONFIG="$PKG_CONFIG"
  20656. else
  20657. if test -n "$ac_tool_prefix"; then
  20658. # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
  20659. set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
  20660. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  20661. printf %s "checking for $ac_word... " >&6; }
  20662. if test ${ac_cv_path_PKGCONFIG+y}
  20663. then :
  20664. printf %s "(cached) " >&6
  20665. else $as_nop
  20666. case $PKGCONFIG in
  20667. [\\/]* | ?:[\\/]*)
  20668. ac_cv_path_PKGCONFIG="$PKGCONFIG" # Let the user override the test with a path.
  20669. ;;
  20670. *)
  20671. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  20672. as_dummy="$PATH:/usr/bin:/usr/local/bin"
  20673. for as_dir in $as_dummy
  20674. do
  20675. IFS=$as_save_IFS
  20676. case $as_dir in #(((
  20677. '') as_dir=./ ;;
  20678. */) ;;
  20679. *) as_dir=$as_dir/ ;;
  20680. esac
  20681. for ac_exec_ext in '' $ac_executable_extensions; do
  20682. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  20683. ac_cv_path_PKGCONFIG="$as_dir$ac_word$ac_exec_ext"
  20684. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  20685. break 2
  20686. fi
  20687. done
  20688. done
  20689. IFS=$as_save_IFS
  20690. ;;
  20691. esac
  20692. fi
  20693. PKGCONFIG=$ac_cv_path_PKGCONFIG
  20694. if test -n "$PKGCONFIG"; then
  20695. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PKGCONFIG" >&5
  20696. printf "%s\n" "$PKGCONFIG" >&6; }
  20697. else
  20698. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  20699. printf "%s\n" "no" >&6; }
  20700. fi
  20701. fi
  20702. if test -z "$ac_cv_path_PKGCONFIG"; then
  20703. ac_pt_PKGCONFIG=$PKGCONFIG
  20704. # Extract the first word of "pkg-config", so it can be a program name with args.
  20705. set dummy pkg-config; ac_word=$2
  20706. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  20707. printf %s "checking for $ac_word... " >&6; }
  20708. if test ${ac_cv_path_ac_pt_PKGCONFIG+y}
  20709. then :
  20710. printf %s "(cached) " >&6
  20711. else $as_nop
  20712. case $ac_pt_PKGCONFIG in
  20713. [\\/]* | ?:[\\/]*)
  20714. ac_cv_path_ac_pt_PKGCONFIG="$ac_pt_PKGCONFIG" # Let the user override the test with a path.
  20715. ;;
  20716. *)
  20717. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  20718. as_dummy="$PATH:/usr/bin:/usr/local/bin"
  20719. for as_dir in $as_dummy
  20720. do
  20721. IFS=$as_save_IFS
  20722. case $as_dir in #(((
  20723. '') as_dir=./ ;;
  20724. */) ;;
  20725. *) as_dir=$as_dir/ ;;
  20726. esac
  20727. for ac_exec_ext in '' $ac_executable_extensions; do
  20728. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  20729. ac_cv_path_ac_pt_PKGCONFIG="$as_dir$ac_word$ac_exec_ext"
  20730. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  20731. break 2
  20732. fi
  20733. done
  20734. done
  20735. IFS=$as_save_IFS
  20736. ;;
  20737. esac
  20738. fi
  20739. ac_pt_PKGCONFIG=$ac_cv_path_ac_pt_PKGCONFIG
  20740. if test -n "$ac_pt_PKGCONFIG"; then
  20741. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKGCONFIG" >&5
  20742. printf "%s\n" "$ac_pt_PKGCONFIG" >&6; }
  20743. else
  20744. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  20745. printf "%s\n" "no" >&6; }
  20746. fi
  20747. if test "x$ac_pt_PKGCONFIG" = x; then
  20748. PKGCONFIG="no"
  20749. else
  20750. case $cross_compiling:$ac_tool_warned in
  20751. yes:)
  20752. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  20753. printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  20754. ac_tool_warned=yes ;;
  20755. esac
  20756. PKGCONFIG=$ac_pt_PKGCONFIG
  20757. fi
  20758. else
  20759. PKGCONFIG="$ac_cv_path_PKGCONFIG"
  20760. fi
  20761. fi
  20762. if test "x$PKGCONFIG" != "xno"; then
  20763. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for mit-krb5-gssapi options with pkg-config" >&5
  20764. printf %s "checking for mit-krb5-gssapi options with pkg-config... " >&6; }
  20765. itexists=`
  20766. if test -n ""; then
  20767. PKG_CONFIG_LIBDIR=""
  20768. export PKG_CONFIG_LIBDIR
  20769. fi
  20770. $PKGCONFIG --exists mit-krb5-gssapi >/dev/null 2>&1 && echo 1`
  20771. if test -z "$itexists"; then
  20772. PKGCONFIG="no"
  20773. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  20774. printf "%s\n" "no" >&6; }
  20775. else
  20776. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: found" >&5
  20777. printf "%s\n" "found" >&6; }
  20778. fi
  20779. fi
  20780. if test -n "$host_alias" -a -f "$GSSAPI_ROOT/bin/$host_alias-krb5-config"; then
  20781. gss_libs=`$GSSAPI_ROOT/bin/$host_alias-krb5-config --libs gssapi`
  20782. LIBS="$gss_libs $LIBS"
  20783. elif test "$PKGCONFIG" != "no" ; then
  20784. gss_libs=`$PKGCONFIG --libs mit-krb5-gssapi`
  20785. LIBS="$gss_libs $LIBS"
  20786. else
  20787. case $host in
  20788. *-hp-hpux*)
  20789. gss_libname="gss"
  20790. ;;
  20791. *)
  20792. gss_libname="gssapi"
  20793. ;;
  20794. esac
  20795. if test "$GSSAPI_ROOT" != "yes"; then
  20796. LDFLAGS="$LDFLAGS -L$GSSAPI_ROOT/lib$libsuff"
  20797. LIBS="-l$gss_libname $LIBS"
  20798. else
  20799. LIBS="-l$gss_libname $LIBS"
  20800. fi
  20801. fi
  20802. ;;
  20803. esac
  20804. else
  20805. LDFLAGS="$LDFLAGS $GSSAPI_LIB_DIR"
  20806. case $host in
  20807. *-hp-hpux*)
  20808. LIBS="-lgss $LIBS"
  20809. ;;
  20810. *)
  20811. LIBS="-lgssapi $LIBS"
  20812. ;;
  20813. esac
  20814. fi
  20815. else
  20816. CPPFLAGS="$save_CPPFLAGS"
  20817. fi
  20818. build_libstubgss=no
  20819. if test x"$want_gss" = "xyes"; then
  20820. build_libstubgss=yes
  20821. fi
  20822. if test "x$build_libstubgss" = "xyes"; then
  20823. BUILD_STUB_GSS_TRUE=
  20824. BUILD_STUB_GSS_FALSE='#'
  20825. else
  20826. BUILD_STUB_GSS_TRUE='#'
  20827. BUILD_STUB_GSS_FALSE=
  20828. fi
  20829. DEFAULT_SSL_BACKEND=no
  20830. VALID_DEFAULT_SSL_BACKEND=
  20831. # Check whether --with-default-ssl-backend was given.
  20832. if test ${with_default_ssl_backend+y}
  20833. then :
  20834. withval=$with_default_ssl_backend; DEFAULT_SSL_BACKEND=$withval
  20835. fi
  20836. case "$DEFAULT_SSL_BACKEND" in
  20837. no)
  20838. ;;
  20839. default|yes)
  20840. as_fn_error $? "The name of the default SSL backend is required." "$LINENO" 5
  20841. ;;
  20842. *)
  20843. VALID_DEFAULT_SSL_BACKEND=no
  20844. ;;
  20845. esac
  20846. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to enable Windows native SSL/TLS" >&5
  20847. printf %s "checking whether to enable Windows native SSL/TLS... " >&6; }
  20848. if test "x$OPT_SCHANNEL" != xno; then
  20849. ssl_msg=
  20850. if test "x$OPT_SCHANNEL" != "xno" &&
  20851. test "x$curl_cv_native_windows" = "xyes"; then
  20852. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  20853. printf "%s\n" "yes" >&6; }
  20854. printf "%s\n" "#define USE_SCHANNEL 1" >>confdefs.h
  20855. USE_SCHANNEL=1
  20856. ssl_msg="Schannel"
  20857. test schannel != "$DEFAULT_SSL_BACKEND" || VALID_DEFAULT_SSL_BACKEND=yes
  20858. SCHANNEL_ENABLED=1
  20859. # --with-schannel implies --enable-sspi
  20860. printf "%s\n" "#define USE_WINDOWS_SSPI 1" >>confdefs.h
  20861. USE_WINDOWS_SSPI=1
  20862. curl_sspi_msg="enabled"
  20863. else
  20864. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  20865. printf "%s\n" "no" >&6; }
  20866. fi
  20867. test -z "$ssl_msg" || ssl_backends="${ssl_backends:+$ssl_backends, }$ssl_msg"
  20868. else
  20869. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  20870. printf "%s\n" "no" >&6; }
  20871. fi
  20872. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to enable Secure Transport" >&5
  20873. printf %s "checking whether to enable Secure Transport... " >&6; }
  20874. if test "x$OPT_SECURETRANSPORT" != xno; then
  20875. if test "x$OPT_SECURETRANSPORT" != "xno" &&
  20876. (test "x$cross_compiling" != "xno" || test -d "/System/Library/Frameworks/Security.framework"); then
  20877. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  20878. printf "%s\n" "yes" >&6; }
  20879. printf "%s\n" "#define USE_SECTRANSP 1" >>confdefs.h
  20880. USE_SECTRANSP=1
  20881. ssl_msg="Secure Transport"
  20882. test secure-transport != "$DEFAULT_SSL_BACKEND" || VALID_DEFAULT_SSL_BACKEND=yes
  20883. SECURETRANSPORT_ENABLED=1
  20884. LDFLAGS="$LDFLAGS -framework CoreFoundation -framework Security"
  20885. else
  20886. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  20887. printf "%s\n" "no" >&6; }
  20888. fi
  20889. test -z "$ssl_msg" || ssl_backends="${ssl_backends:+$ssl_backends, }$ssl_msg"
  20890. else
  20891. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  20892. printf "%s\n" "no" >&6; }
  20893. fi
  20894. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to enable Amiga native SSL/TLS (AmiSSL)" >&5
  20895. printf %s "checking whether to enable Amiga native SSL/TLS (AmiSSL)... " >&6; }
  20896. if test "$HAVE_PROTO_BSDSOCKET_H" = "1"; then
  20897. if test "x$OPT_AMISSL" != xno; then
  20898. ssl_msg=
  20899. if test "x$OPT_AMISSL" != "xno"; then
  20900. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  20901. printf "%s\n" "yes" >&6; }
  20902. ssl_msg="AmiSSL"
  20903. test amissl != "$DEFAULT_SSL_BACKEND" || VALID_DEFAULT_SSL_BACKEND=yes
  20904. AMISSL_ENABLED=1
  20905. LIBS="-lamisslauto $LIBS"
  20906. printf "%s\n" "#define USE_AMISSL 1" >>confdefs.h
  20907. printf "%s\n" "#define USE_OPENSSL 1" >>confdefs.h
  20908. else
  20909. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  20910. printf "%s\n" "no" >&6; }
  20911. fi
  20912. test -z "$ssl_msg" || ssl_backends="${ssl_backends:+$ssl_backends, }$ssl_msg"
  20913. else
  20914. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  20915. printf "%s\n" "no" >&6; }
  20916. fi
  20917. else
  20918. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  20919. printf "%s\n" "no" >&6; }
  20920. fi
  20921. if test "x$OPT_OPENSSL" != xno; then
  20922. ssl_msg=
  20923. CLEANLDFLAGS="$LDFLAGS"
  20924. CLEANCPPFLAGS="$CPPFLAGS"
  20925. CLEANLIBS="$LIBS"
  20926. case $host in
  20927. *-*-msys* | *-*-mingw*)
  20928. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for gdi32" >&5
  20929. printf %s "checking for gdi32... " >&6; }
  20930. my_ac_save_LIBS=$LIBS
  20931. LIBS="-lgdi32 $LIBS"
  20932. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  20933. /* end confdefs.h. */
  20934. #include <windef.h>
  20935. #include <wingdi.h>
  20936. int main (void)
  20937. {
  20938. GdiFlush();
  20939. ;
  20940. return 0;
  20941. }
  20942. _ACEOF
  20943. if ac_fn_c_try_link "$LINENO"
  20944. then :
  20945. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  20946. printf "%s\n" "yes" >&6; }
  20947. else $as_nop
  20948. LIBS=$my_ac_save_LIBS
  20949. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  20950. printf "%s\n" "no" >&6; }
  20951. fi
  20952. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  20953. conftest$ac_exeext conftest.$ac_ext
  20954. ;;
  20955. esac
  20956. case "$OPT_OPENSSL" in
  20957. yes)
  20958. PKGTEST="yes"
  20959. PREFIX_OPENSSL=
  20960. ;;
  20961. *)
  20962. PKGTEST="no"
  20963. PREFIX_OPENSSL=$OPT_OPENSSL
  20964. OPENSSL_PCDIR="$OPT_OPENSSL/lib/pkgconfig"
  20965. if test -f "$OPENSSL_PCDIR/openssl.pc"; then
  20966. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: PKG_CONFIG_LIBDIR will be set to \"$OPENSSL_PCDIR\"" >&5
  20967. printf "%s\n" "$as_me: PKG_CONFIG_LIBDIR will be set to \"$OPENSSL_PCDIR\"" >&6;}
  20968. PKGTEST="yes"
  20969. fi
  20970. if test "$PKGTEST" != "yes"; then
  20971. # try lib64 instead
  20972. OPENSSL_PCDIR="$OPT_OPENSSL/lib64/pkgconfig"
  20973. if test -f "$OPENSSL_PCDIR/openssl.pc"; then
  20974. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: PKG_CONFIG_LIBDIR will be set to \"$OPENSSL_PCDIR\"" >&5
  20975. printf "%s\n" "$as_me: PKG_CONFIG_LIBDIR will be set to \"$OPENSSL_PCDIR\"" >&6;}
  20976. PKGTEST="yes"
  20977. fi
  20978. fi
  20979. if test "$PKGTEST" != "yes"; then
  20980. if test ! -f "$PREFIX_OPENSSL/include/openssl/ssl.h"; then
  20981. as_fn_error $? "$PREFIX_OPENSSL is a bad --with-openssl prefix!" "$LINENO" 5
  20982. fi
  20983. fi
  20984. LIB_OPENSSL="$PREFIX_OPENSSL/lib$libsuff"
  20985. if test "$PREFIX_OPENSSL" != "/usr" ; then
  20986. SSL_LDFLAGS="-L$LIB_OPENSSL"
  20987. SSL_CPPFLAGS="-I$PREFIX_OPENSSL/include"
  20988. fi
  20989. SSL_CPPFLAGS="$SSL_CPPFLAGS -I$PREFIX_OPENSSL/include/openssl"
  20990. ;;
  20991. esac
  20992. if test "$PKGTEST" = "yes"; then
  20993. if test -n "$PKG_CONFIG"; then
  20994. PKGCONFIG="$PKG_CONFIG"
  20995. else
  20996. if test -n "$ac_tool_prefix"; then
  20997. # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
  20998. set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
  20999. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  21000. printf %s "checking for $ac_word... " >&6; }
  21001. if test ${ac_cv_path_PKGCONFIG+y}
  21002. then :
  21003. printf %s "(cached) " >&6
  21004. else $as_nop
  21005. case $PKGCONFIG in
  21006. [\\/]* | ?:[\\/]*)
  21007. ac_cv_path_PKGCONFIG="$PKGCONFIG" # Let the user override the test with a path.
  21008. ;;
  21009. *)
  21010. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  21011. as_dummy="$PATH:/usr/bin:/usr/local/bin"
  21012. for as_dir in $as_dummy
  21013. do
  21014. IFS=$as_save_IFS
  21015. case $as_dir in #(((
  21016. '') as_dir=./ ;;
  21017. */) ;;
  21018. *) as_dir=$as_dir/ ;;
  21019. esac
  21020. for ac_exec_ext in '' $ac_executable_extensions; do
  21021. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  21022. ac_cv_path_PKGCONFIG="$as_dir$ac_word$ac_exec_ext"
  21023. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  21024. break 2
  21025. fi
  21026. done
  21027. done
  21028. IFS=$as_save_IFS
  21029. ;;
  21030. esac
  21031. fi
  21032. PKGCONFIG=$ac_cv_path_PKGCONFIG
  21033. if test -n "$PKGCONFIG"; then
  21034. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PKGCONFIG" >&5
  21035. printf "%s\n" "$PKGCONFIG" >&6; }
  21036. else
  21037. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  21038. printf "%s\n" "no" >&6; }
  21039. fi
  21040. fi
  21041. if test -z "$ac_cv_path_PKGCONFIG"; then
  21042. ac_pt_PKGCONFIG=$PKGCONFIG
  21043. # Extract the first word of "pkg-config", so it can be a program name with args.
  21044. set dummy pkg-config; ac_word=$2
  21045. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  21046. printf %s "checking for $ac_word... " >&6; }
  21047. if test ${ac_cv_path_ac_pt_PKGCONFIG+y}
  21048. then :
  21049. printf %s "(cached) " >&6
  21050. else $as_nop
  21051. case $ac_pt_PKGCONFIG in
  21052. [\\/]* | ?:[\\/]*)
  21053. ac_cv_path_ac_pt_PKGCONFIG="$ac_pt_PKGCONFIG" # Let the user override the test with a path.
  21054. ;;
  21055. *)
  21056. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  21057. as_dummy="$PATH:/usr/bin:/usr/local/bin"
  21058. for as_dir in $as_dummy
  21059. do
  21060. IFS=$as_save_IFS
  21061. case $as_dir in #(((
  21062. '') as_dir=./ ;;
  21063. */) ;;
  21064. *) as_dir=$as_dir/ ;;
  21065. esac
  21066. for ac_exec_ext in '' $ac_executable_extensions; do
  21067. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  21068. ac_cv_path_ac_pt_PKGCONFIG="$as_dir$ac_word$ac_exec_ext"
  21069. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  21070. break 2
  21071. fi
  21072. done
  21073. done
  21074. IFS=$as_save_IFS
  21075. ;;
  21076. esac
  21077. fi
  21078. ac_pt_PKGCONFIG=$ac_cv_path_ac_pt_PKGCONFIG
  21079. if test -n "$ac_pt_PKGCONFIG"; then
  21080. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKGCONFIG" >&5
  21081. printf "%s\n" "$ac_pt_PKGCONFIG" >&6; }
  21082. else
  21083. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  21084. printf "%s\n" "no" >&6; }
  21085. fi
  21086. if test "x$ac_pt_PKGCONFIG" = x; then
  21087. PKGCONFIG="no"
  21088. else
  21089. case $cross_compiling:$ac_tool_warned in
  21090. yes:)
  21091. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  21092. printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  21093. ac_tool_warned=yes ;;
  21094. esac
  21095. PKGCONFIG=$ac_pt_PKGCONFIG
  21096. fi
  21097. else
  21098. PKGCONFIG="$ac_cv_path_PKGCONFIG"
  21099. fi
  21100. fi
  21101. if test "x$PKGCONFIG" != "xno"; then
  21102. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for openssl options with pkg-config" >&5
  21103. printf %s "checking for openssl options with pkg-config... " >&6; }
  21104. itexists=`
  21105. if test -n "$OPENSSL_PCDIR"; then
  21106. PKG_CONFIG_LIBDIR="$OPENSSL_PCDIR"
  21107. export PKG_CONFIG_LIBDIR
  21108. fi
  21109. $PKGCONFIG --exists openssl >/dev/null 2>&1 && echo 1`
  21110. if test -z "$itexists"; then
  21111. PKGCONFIG="no"
  21112. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  21113. printf "%s\n" "no" >&6; }
  21114. else
  21115. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: found" >&5
  21116. printf "%s\n" "found" >&6; }
  21117. fi
  21118. fi
  21119. if test "$PKGCONFIG" != "no" ; then
  21120. SSL_LIBS=`
  21121. if test -n "$OPENSSL_PCDIR"; then
  21122. PKG_CONFIG_LIBDIR="$OPENSSL_PCDIR"
  21123. export PKG_CONFIG_LIBDIR
  21124. fi
  21125. $PKGCONFIG --libs-only-l --libs-only-other openssl 2>/dev/null`
  21126. SSL_LDFLAGS=`
  21127. if test -n "$OPENSSL_PCDIR"; then
  21128. PKG_CONFIG_LIBDIR="$OPENSSL_PCDIR"
  21129. export PKG_CONFIG_LIBDIR
  21130. fi
  21131. $PKGCONFIG --libs-only-L openssl 2>/dev/null`
  21132. SSL_CPPFLAGS=`
  21133. if test -n "$OPENSSL_PCDIR"; then
  21134. PKG_CONFIG_LIBDIR="$OPENSSL_PCDIR"
  21135. export PKG_CONFIG_LIBDIR
  21136. fi
  21137. $PKGCONFIG --cflags-only-I openssl 2>/dev/null`
  21138. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: pkg-config: SSL_LIBS: \"$SSL_LIBS\"" >&5
  21139. printf "%s\n" "$as_me: pkg-config: SSL_LIBS: \"$SSL_LIBS\"" >&6;}
  21140. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: pkg-config: SSL_LDFLAGS: \"$SSL_LDFLAGS\"" >&5
  21141. printf "%s\n" "$as_me: pkg-config: SSL_LDFLAGS: \"$SSL_LDFLAGS\"" >&6;}
  21142. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: pkg-config: SSL_CPPFLAGS: \"$SSL_CPPFLAGS\"" >&5
  21143. printf "%s\n" "$as_me: pkg-config: SSL_CPPFLAGS: \"$SSL_CPPFLAGS\"" >&6;}
  21144. LIB_OPENSSL=`echo $SSL_LDFLAGS | sed -e 's/^-L//'`
  21145. LIBS="$SSL_LIBS $LIBS"
  21146. fi
  21147. fi
  21148. CPPFLAGS="$CPPFLAGS $SSL_CPPFLAGS"
  21149. LDFLAGS="$LDFLAGS $SSL_LDFLAGS"
  21150. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for HMAC_Update in -lcrypto" >&5
  21151. printf %s "checking for HMAC_Update in -lcrypto... " >&6; }
  21152. if test ${ac_cv_lib_crypto_HMAC_Update+y}
  21153. then :
  21154. printf %s "(cached) " >&6
  21155. else $as_nop
  21156. ac_check_lib_save_LIBS=$LIBS
  21157. LIBS="-lcrypto $LIBS"
  21158. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  21159. /* end confdefs.h. */
  21160. #ifdef __cplusplus
  21161. extern "C"
  21162. #endif
  21163. char HMAC_Update ();
  21164. int main (void)
  21165. {
  21166. return HMAC_Update ();
  21167. ;
  21168. return 0;
  21169. }
  21170. _ACEOF
  21171. if ac_fn_c_try_link "$LINENO"
  21172. then :
  21173. ac_cv_lib_crypto_HMAC_Update=yes
  21174. else $as_nop
  21175. ac_cv_lib_crypto_HMAC_Update=no
  21176. fi
  21177. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  21178. conftest$ac_exeext conftest.$ac_ext
  21179. LIBS=$ac_check_lib_save_LIBS
  21180. fi
  21181. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_crypto_HMAC_Update" >&5
  21182. printf "%s\n" "$ac_cv_lib_crypto_HMAC_Update" >&6; }
  21183. if test "x$ac_cv_lib_crypto_HMAC_Update" = xyes
  21184. then :
  21185. HAVECRYPTO="yes"
  21186. LIBS="-lcrypto $LIBS"
  21187. else $as_nop
  21188. if test -n "$LIB_OPENSSL" ; then
  21189. LDFLAGS="$CLEANLDFLAGS -L$LIB_OPENSSL"
  21190. fi
  21191. if test "$PKGCONFIG" = "no" -a -n "$PREFIX_OPENSSL" ; then
  21192. # only set this if pkg-config wasn't used
  21193. CPPFLAGS="$CLEANCPPFLAGS -I$PREFIX_OPENSSL/include/openssl -I$PREFIX_OPENSSL/include"
  21194. fi
  21195. # Linking previously failed, try extra paths from --with-openssl or
  21196. # pkg-config. Use a different function name to avoid reusing the earlier
  21197. # cached result.
  21198. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for HMAC_Init_ex in -lcrypto" >&5
  21199. printf %s "checking for HMAC_Init_ex in -lcrypto... " >&6; }
  21200. if test ${ac_cv_lib_crypto_HMAC_Init_ex+y}
  21201. then :
  21202. printf %s "(cached) " >&6
  21203. else $as_nop
  21204. ac_check_lib_save_LIBS=$LIBS
  21205. LIBS="-lcrypto $LIBS"
  21206. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  21207. /* end confdefs.h. */
  21208. #ifdef __cplusplus
  21209. extern "C"
  21210. #endif
  21211. char HMAC_Init_ex ();
  21212. int main (void)
  21213. {
  21214. return HMAC_Init_ex ();
  21215. ;
  21216. return 0;
  21217. }
  21218. _ACEOF
  21219. if ac_fn_c_try_link "$LINENO"
  21220. then :
  21221. ac_cv_lib_crypto_HMAC_Init_ex=yes
  21222. else $as_nop
  21223. ac_cv_lib_crypto_HMAC_Init_ex=no
  21224. fi
  21225. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  21226. conftest$ac_exeext conftest.$ac_ext
  21227. LIBS=$ac_check_lib_save_LIBS
  21228. fi
  21229. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_crypto_HMAC_Init_ex" >&5
  21230. printf "%s\n" "$ac_cv_lib_crypto_HMAC_Init_ex" >&6; }
  21231. if test "x$ac_cv_lib_crypto_HMAC_Init_ex" = xyes
  21232. then :
  21233. HAVECRYPTO="yes"
  21234. LIBS="-lcrypto $LIBS"
  21235. else $as_nop
  21236. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking OpenSSL linking with -ldl" >&5
  21237. printf %s "checking OpenSSL linking with -ldl... " >&6; }
  21238. LIBS="-lcrypto $CLEANLIBS -ldl"
  21239. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  21240. /* end confdefs.h. */
  21241. #include <openssl/err.h>
  21242. int main (void)
  21243. {
  21244. ERR_clear_error();
  21245. ;
  21246. return 0;
  21247. }
  21248. _ACEOF
  21249. if ac_fn_c_try_link "$LINENO"
  21250. then :
  21251. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  21252. printf "%s\n" "yes" >&6; }
  21253. HAVECRYPTO="yes"
  21254. else $as_nop
  21255. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  21256. printf "%s\n" "no" >&6; }
  21257. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking OpenSSL linking with -ldl and -lpthread" >&5
  21258. printf %s "checking OpenSSL linking with -ldl and -lpthread... " >&6; }
  21259. LIBS="-lcrypto $CLEANLIBS -ldl -lpthread"
  21260. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  21261. /* end confdefs.h. */
  21262. #include <openssl/err.h>
  21263. int main (void)
  21264. {
  21265. ERR_clear_error();
  21266. ;
  21267. return 0;
  21268. }
  21269. _ACEOF
  21270. if ac_fn_c_try_link "$LINENO"
  21271. then :
  21272. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  21273. printf "%s\n" "yes" >&6; }
  21274. HAVECRYPTO="yes"
  21275. else $as_nop
  21276. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  21277. printf "%s\n" "no" >&6; }
  21278. LDFLAGS="$CLEANLDFLAGS"
  21279. CPPFLAGS="$CLEANCPPFLAGS"
  21280. LIBS="$CLEANLIBS"
  21281. fi
  21282. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  21283. conftest$ac_exeext conftest.$ac_ext
  21284. fi
  21285. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  21286. conftest$ac_exeext conftest.$ac_ext
  21287. fi
  21288. fi
  21289. if test X"$HAVECRYPTO" = X"yes"; then
  21290. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for SSL_connect in -lssl" >&5
  21291. printf %s "checking for SSL_connect in -lssl... " >&6; }
  21292. if test ${ac_cv_lib_ssl_SSL_connect+y}
  21293. then :
  21294. printf %s "(cached) " >&6
  21295. else $as_nop
  21296. ac_check_lib_save_LIBS=$LIBS
  21297. LIBS="-lssl $LIBS"
  21298. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  21299. /* end confdefs.h. */
  21300. #ifdef __cplusplus
  21301. extern "C"
  21302. #endif
  21303. char SSL_connect ();
  21304. int main (void)
  21305. {
  21306. return SSL_connect ();
  21307. ;
  21308. return 0;
  21309. }
  21310. _ACEOF
  21311. if ac_fn_c_try_link "$LINENO"
  21312. then :
  21313. ac_cv_lib_ssl_SSL_connect=yes
  21314. else $as_nop
  21315. ac_cv_lib_ssl_SSL_connect=no
  21316. fi
  21317. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  21318. conftest$ac_exeext conftest.$ac_ext
  21319. LIBS=$ac_check_lib_save_LIBS
  21320. fi
  21321. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ssl_SSL_connect" >&5
  21322. printf "%s\n" "$ac_cv_lib_ssl_SSL_connect" >&6; }
  21323. if test "x$ac_cv_lib_ssl_SSL_connect" = xyes
  21324. then :
  21325. printf "%s\n" "#define HAVE_LIBSSL 1" >>confdefs.h
  21326. LIBS="-lssl $LIBS"
  21327. fi
  21328. if test "$ac_cv_lib_ssl_SSL_connect" != yes; then
  21329. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ssl with RSAglue/rsaref libs in use" >&5
  21330. printf %s "checking for ssl with RSAglue/rsaref libs in use... " >&6; };
  21331. OLIBS=$LIBS
  21332. LIBS="-lRSAglue -lrsaref $LIBS"
  21333. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for SSL_connect in -lssl" >&5
  21334. printf %s "checking for SSL_connect in -lssl... " >&6; }
  21335. if test ${ac_cv_lib_ssl_SSL_connect+y}
  21336. then :
  21337. printf %s "(cached) " >&6
  21338. else $as_nop
  21339. ac_check_lib_save_LIBS=$LIBS
  21340. LIBS="-lssl $LIBS"
  21341. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  21342. /* end confdefs.h. */
  21343. #ifdef __cplusplus
  21344. extern "C"
  21345. #endif
  21346. char SSL_connect ();
  21347. int main (void)
  21348. {
  21349. return SSL_connect ();
  21350. ;
  21351. return 0;
  21352. }
  21353. _ACEOF
  21354. if ac_fn_c_try_link "$LINENO"
  21355. then :
  21356. ac_cv_lib_ssl_SSL_connect=yes
  21357. else $as_nop
  21358. ac_cv_lib_ssl_SSL_connect=no
  21359. fi
  21360. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  21361. conftest$ac_exeext conftest.$ac_ext
  21362. LIBS=$ac_check_lib_save_LIBS
  21363. fi
  21364. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ssl_SSL_connect" >&5
  21365. printf "%s\n" "$ac_cv_lib_ssl_SSL_connect" >&6; }
  21366. if test "x$ac_cv_lib_ssl_SSL_connect" = xyes
  21367. then :
  21368. printf "%s\n" "#define HAVE_LIBSSL 1" >>confdefs.h
  21369. LIBS="-lssl $LIBS"
  21370. fi
  21371. if test "$ac_cv_lib_ssl_SSL_connect" != yes; then
  21372. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  21373. printf "%s\n" "no" >&6; }
  21374. LIBS=$OLIBS
  21375. else
  21376. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  21377. printf "%s\n" "yes" >&6; }
  21378. fi
  21379. else
  21380. for ac_header in openssl/x509.h openssl/rsa.h openssl/crypto.h openssl/pem.h openssl/ssl.h openssl/err.h
  21381. do :
  21382. as_ac_Header=`printf "%s\n" "ac_cv_header_$ac_header" | $as_tr_sh`
  21383. ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
  21384. if eval test \"x\$"$as_ac_Header"\" = x"yes"
  21385. then :
  21386. cat >>confdefs.h <<_ACEOF
  21387. #define `printf "%s\n" "HAVE_$ac_header" | $as_tr_cpp` 1
  21388. _ACEOF
  21389. ssl_msg="OpenSSL"
  21390. test openssl != "$DEFAULT_SSL_BACKEND" || VALID_DEFAULT_SSL_BACKEND=yes
  21391. OPENSSL_ENABLED=1
  21392. printf "%s\n" "#define USE_OPENSSL 1" >>confdefs.h
  21393. fi
  21394. done
  21395. if test $ac_cv_header_openssl_x509_h = no; then
  21396. ac_fn_c_check_header_compile "$LINENO" "x509.h" "ac_cv_header_x509_h" "$ac_includes_default"
  21397. if test "x$ac_cv_header_x509_h" = xyes
  21398. then :
  21399. printf "%s\n" "#define HAVE_X509_H 1" >>confdefs.h
  21400. fi
  21401. ac_fn_c_check_header_compile "$LINENO" "rsa.h" "ac_cv_header_rsa_h" "$ac_includes_default"
  21402. if test "x$ac_cv_header_rsa_h" = xyes
  21403. then :
  21404. printf "%s\n" "#define HAVE_RSA_H 1" >>confdefs.h
  21405. fi
  21406. ac_fn_c_check_header_compile "$LINENO" "crypto.h" "ac_cv_header_crypto_h" "$ac_includes_default"
  21407. if test "x$ac_cv_header_crypto_h" = xyes
  21408. then :
  21409. printf "%s\n" "#define HAVE_CRYPTO_H 1" >>confdefs.h
  21410. fi
  21411. ac_fn_c_check_header_compile "$LINENO" "pem.h" "ac_cv_header_pem_h" "$ac_includes_default"
  21412. if test "x$ac_cv_header_pem_h" = xyes
  21413. then :
  21414. printf "%s\n" "#define HAVE_PEM_H 1" >>confdefs.h
  21415. fi
  21416. ac_fn_c_check_header_compile "$LINENO" "ssl.h" "ac_cv_header_ssl_h" "$ac_includes_default"
  21417. if test "x$ac_cv_header_ssl_h" = xyes
  21418. then :
  21419. printf "%s\n" "#define HAVE_SSL_H 1" >>confdefs.h
  21420. fi
  21421. ac_fn_c_check_header_compile "$LINENO" "err.h" "ac_cv_header_err_h" "$ac_includes_default"
  21422. if test "x$ac_cv_header_err_h" = xyes
  21423. then :
  21424. printf "%s\n" "#define HAVE_ERR_H 1" >>confdefs.h
  21425. fi
  21426. if test $ac_cv_header_x509_h = yes &&
  21427. test $ac_cv_header_crypto_h = yes &&
  21428. test $ac_cv_header_ssl_h = yes; then
  21429. ssl_msg="OpenSSL"
  21430. OPENSSL_ENABLED=1
  21431. fi
  21432. fi
  21433. fi
  21434. if test X"$OPENSSL_ENABLED" != X"1"; then
  21435. LIBS="$CLEANLIBS"
  21436. fi
  21437. if test X"$OPT_OPENSSL" != Xoff &&
  21438. test "$OPENSSL_ENABLED" != "1"; then
  21439. as_fn_error $? "OpenSSL libs and/or directories were not found where specified!" "$LINENO" 5
  21440. fi
  21441. fi
  21442. if test X"$OPENSSL_ENABLED" = X"1"; then
  21443. ac_fn_c_check_func "$LINENO" "RAND_egd" "ac_cv_func_RAND_egd"
  21444. if test "x$ac_cv_func_RAND_egd" = xyes
  21445. then :
  21446. printf "%s\n" "#define HAVE_RAND_EGD 1" >>confdefs.h
  21447. fi
  21448. ac_fn_c_check_func "$LINENO" "SSLv2_client_method" "ac_cv_func_SSLv2_client_method"
  21449. if test "x$ac_cv_func_SSLv2_client_method" = xyes
  21450. then :
  21451. printf "%s\n" "#define HAVE_SSLV2_CLIENT_METHOD 1" >>confdefs.h
  21452. fi
  21453. ac_fn_c_check_func "$LINENO" "OpenSSL_version" "ac_cv_func_OpenSSL_version"
  21454. if test "x$ac_cv_func_OpenSSL_version" = xyes
  21455. then :
  21456. printf "%s\n" "#define HAVE_OPENSSL_VERSION 1" >>confdefs.h
  21457. fi
  21458. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for BoringSSL" >&5
  21459. printf %s "checking for BoringSSL... " >&6; }
  21460. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  21461. /* end confdefs.h. */
  21462. #include <openssl/base.h>
  21463. int main (void)
  21464. {
  21465. #ifndef OPENSSL_IS_BORINGSSL
  21466. #error not boringssl
  21467. #endif
  21468. ;
  21469. return 0;
  21470. }
  21471. _ACEOF
  21472. if ac_fn_c_try_compile "$LINENO"
  21473. then :
  21474. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  21475. printf "%s\n" "yes" >&6; }
  21476. printf "%s\n" "#define HAVE_BORINGSSL 1" >>confdefs.h
  21477. ssl_msg="BoringSSL"
  21478. else $as_nop
  21479. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  21480. printf "%s\n" "no" >&6; }
  21481. fi
  21482. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  21483. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libressl" >&5
  21484. printf %s "checking for libressl... " >&6; }
  21485. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  21486. /* end confdefs.h. */
  21487. #include <openssl/opensslv.h>
  21488. int main (void)
  21489. {
  21490. int dummy = LIBRESSL_VERSION_NUMBER;
  21491. ;
  21492. return 0;
  21493. }
  21494. _ACEOF
  21495. if ac_fn_c_try_compile "$LINENO"
  21496. then :
  21497. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  21498. printf "%s\n" "yes" >&6; }
  21499. printf "%s\n" "#define HAVE_LIBRESSL 1" >>confdefs.h
  21500. ssl_msg="libressl"
  21501. else $as_nop
  21502. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  21503. printf "%s\n" "no" >&6; }
  21504. fi
  21505. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  21506. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for OpenSSL >= v3" >&5
  21507. printf %s "checking for OpenSSL >= v3... " >&6; }
  21508. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  21509. /* end confdefs.h. */
  21510. #include <openssl/opensslv.h>
  21511. int main (void)
  21512. {
  21513. #if defined(OPENSSL_VERSION_MAJOR) && (OPENSSL_VERSION_MAJOR >= 3)
  21514. return 0;
  21515. #else
  21516. #error older than 3
  21517. #endif
  21518. ;
  21519. return 0;
  21520. }
  21521. _ACEOF
  21522. if ac_fn_c_try_compile "$LINENO"
  21523. then :
  21524. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  21525. printf "%s\n" "yes" >&6; }
  21526. printf "%s\n" "#define HAVE_OPENSSL3 1" >>confdefs.h
  21527. CPPFLAGS="$CPPFLAGS -DOPENSSL_SUPPRESS_DEPRECATED"
  21528. ssl_msg="OpenSSL v3+"
  21529. else $as_nop
  21530. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  21531. printf "%s\n" "no" >&6; }
  21532. fi
  21533. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  21534. fi
  21535. if test "$OPENSSL_ENABLED" = "1"; then
  21536. if test -n "$LIB_OPENSSL"; then
  21537. if test "x$cross_compiling" != "xyes"; then
  21538. CURL_LIBRARY_PATH="$CURL_LIBRARY_PATH:$LIB_OPENSSL"
  21539. export CURL_LIBRARY_PATH
  21540. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: Added $LIB_OPENSSL to CURL_LIBRARY_PATH" >&5
  21541. printf "%s\n" "$as_me: Added $LIB_OPENSSL to CURL_LIBRARY_PATH" >&6;}
  21542. fi
  21543. fi
  21544. #
  21545. #
  21546. tst_api="unknown"
  21547. #
  21548. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for OpenSSL headers version" >&5
  21549. printf %s "checking for OpenSSL headers version... " >&6; }
  21550. OLDCPPFLAGS=$CPPFLAGS
  21551. # CPPPFLAG comes from CURL_CPP_P
  21552. CPPFLAGS="$CPPFLAGS $CPPPFLAG"
  21553. if test -z "$SED"; then
  21554. as_fn_error $? "SED not set. Cannot continue without SED being set." "$LINENO" 5
  21555. fi
  21556. if test -z "$GREP"; then
  21557. as_fn_error $? "GREP not set. Cannot continue without GREP being set." "$LINENO" 5
  21558. fi
  21559. tmp_exp=""
  21560. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  21561. /* end confdefs.h. */
  21562. # ifdef USE_OPENSSL
  21563. # include <openssl/crypto.h>
  21564. # else
  21565. # include <crypto.h>
  21566. # endif
  21567. #ifdef OPENSSL_VERSION_NUMBER
  21568. CURL_DEF_TOKEN OPENSSL_VERSION_NUMBER
  21569. #endif
  21570. _ACEOF
  21571. if ac_fn_c_try_cpp "$LINENO"
  21572. then :
  21573. tmp_exp=`eval "$ac_cpp conftest.$ac_ext" 2>/dev/null | \
  21574. "$GREP" CURL_DEF_TOKEN 2>/dev/null | \
  21575. "$SED" 's/.*CURL_DEF_TOKEN[ ][ ]*//' 2>/dev/null | \
  21576. "$SED" 's/["][ ]*["]//g' 2>/dev/null`
  21577. if test -z "$tmp_exp" || test "$tmp_exp" = "OPENSSL_VERSION_NUMBER"; then
  21578. tmp_exp=""
  21579. fi
  21580. fi
  21581. rm -f conftest.err conftest.i conftest.$ac_ext
  21582. if test -z "$tmp_exp"; then
  21583. curl_cv_have_def_OPENSSL_VERSION_NUMBER=no
  21584. else
  21585. curl_cv_have_def_OPENSSL_VERSION_NUMBER=yes
  21586. curl_cv_def_OPENSSL_VERSION_NUMBER=$tmp_exp
  21587. fi
  21588. CPPFLAGS=$OLDCPPFLAGS
  21589. OLDCPPFLAGS=$CPPFLAGS
  21590. # CPPPFLAG comes from CURL_CPP_P
  21591. CPPFLAGS="$CPPFLAGS $CPPPFLAG"
  21592. if test -z "$SED"; then
  21593. as_fn_error $? "SED not set. Cannot continue without SED being set." "$LINENO" 5
  21594. fi
  21595. if test -z "$GREP"; then
  21596. as_fn_error $? "GREP not set. Cannot continue without GREP being set." "$LINENO" 5
  21597. fi
  21598. tmp_exp=""
  21599. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  21600. /* end confdefs.h. */
  21601. # include <openssl/crypto.h>
  21602. #ifdef OPENSSL_VERSION_STR
  21603. CURL_DEF_TOKEN OPENSSL_VERSION_STR
  21604. #endif
  21605. _ACEOF
  21606. if ac_fn_c_try_cpp "$LINENO"
  21607. then :
  21608. tmp_exp=`eval "$ac_cpp conftest.$ac_ext" 2>/dev/null | \
  21609. "$GREP" CURL_DEF_TOKEN 2>/dev/null | \
  21610. "$SED" 's/.*CURL_DEF_TOKEN[ ][ ]*//' 2>/dev/null | \
  21611. "$SED" 's/["][ ]*["]//g' 2>/dev/null`
  21612. if test -z "$tmp_exp" || test "$tmp_exp" = "OPENSSL_VERSION_STR"; then
  21613. tmp_exp=""
  21614. fi
  21615. fi
  21616. rm -f conftest.err conftest.i conftest.$ac_ext
  21617. if test -z "$tmp_exp"; then
  21618. curl_cv_have_def_OPENSSL_VERSION_STR=no
  21619. else
  21620. curl_cv_have_def_OPENSSL_VERSION_STR=yes
  21621. curl_cv_def_OPENSSL_VERSION_STR=$tmp_exp
  21622. fi
  21623. CPPFLAGS=$OLDCPPFLAGS
  21624. if test "$curl_cv_have_def_OPENSSL_VERSION_NUMBER" = "yes"; then
  21625. tst_verlen=`expr "$curl_cv_def_OPENSSL_VERSION_NUMBER" : '.*'`
  21626. case "x$tst_verlen" in
  21627. x6)
  21628. tst_vermaj=`echo $curl_cv_def_OPENSSL_VERSION_NUMBER | cut -c 3`
  21629. tst_vermin=`echo $curl_cv_def_OPENSSL_VERSION_NUMBER | cut -c 4`
  21630. tst_verfix=`echo $curl_cv_def_OPENSSL_VERSION_NUMBER | cut -c 5`
  21631. tst_api=0x$tst_vermaj$tst_vermin$tst_verfix
  21632. ;;
  21633. x11|x10)
  21634. tst_vermaj=`echo $curl_cv_def_OPENSSL_VERSION_NUMBER | cut -c 3`
  21635. tst_vermin=`echo $curl_cv_def_OPENSSL_VERSION_NUMBER | cut -c 5`
  21636. tst_verfix=`echo $curl_cv_def_OPENSSL_VERSION_NUMBER | cut -c 7`
  21637. tst_api=0x$tst_vermaj$tst_vermin$tst_verfix
  21638. ;;
  21639. *)
  21640. if test "$curl_cv_have_def_OPENSSL_VERSION_STR" = "yes"; then
  21641. ver=`echo $curl_cv_def_OPENSSL_VERSION_STR | sed 's/"//g'`;
  21642. tst_vermaj=`echo $ver | cut -d. -f1`
  21643. tst_vermin=`echo $ver | cut -d. -f2`
  21644. tst_verfix=`echo $ver | cut -d. -f3`
  21645. tst_show="$ver"
  21646. tst_api=0x$tst_vermaj$tst_vermin$tst_verfix
  21647. else
  21648. tst_api="unknown"
  21649. fi
  21650. ;;
  21651. esac
  21652. case $tst_api in
  21653. 0x111) tst_show="1.1.1" ;;
  21654. 0x110) tst_show="1.1.0" ;;
  21655. 0x102) tst_show="1.0.2" ;;
  21656. 0x101) tst_show="1.0.1" ;;
  21657. 0x100) tst_show="1.0.0" ;;
  21658. 0x099) tst_show="0.9.9" ;;
  21659. 0x098) tst_show="0.9.8" ;;
  21660. 0x097) tst_show="0.9.7" ;;
  21661. 0x096) tst_show="0.9.6" ;;
  21662. 0x095) tst_show="0.9.5" ;;
  21663. 0x094) tst_show="0.9.4" ;;
  21664. 0x093) tst_show="0.9.3" ;;
  21665. 0x092) tst_show="0.9.2" ;;
  21666. 0x091) tst_show="0.9.1" ;;
  21667. *)
  21668. if test -z "$tst_show"; then
  21669. tst_show="unknown"
  21670. fi
  21671. ;;
  21672. esac
  21673. tst_show="$tst_show - $tst_api"
  21674. else
  21675. tst_show="unknown"
  21676. fi
  21677. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $tst_show" >&5
  21678. printf "%s\n" "$tst_show" >&6; }
  21679. #
  21680. curl_openssl_api_headers=$tst_api
  21681. #
  21682. tst_api="unknown"
  21683. #
  21684. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for OpenSSL library version" >&5
  21685. printf %s "checking for OpenSSL library version... " >&6; }
  21686. if test "$tst_api" = "unknown"; then
  21687. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  21688. /* end confdefs.h. */
  21689. #define SSL_CTX_load_verify_dir innocuous_SSL_CTX_load_verify_dir
  21690. #ifdef __STDC__
  21691. # include <limits.h>
  21692. #else
  21693. # include <assert.h>
  21694. #endif
  21695. #undef SSL_CTX_load_verify_dir
  21696. #ifdef __cplusplus
  21697. extern "C"
  21698. #endif
  21699. char SSL_CTX_load_verify_dir ();
  21700. #if defined __stub_SSL_CTX_load_verify_dir || defined __stub___SSL_CTX_load_verify_dir
  21701. choke me
  21702. #endif
  21703. int main (void)
  21704. {
  21705. return SSL_CTX_load_verify_dir ();
  21706. ;
  21707. return 0;
  21708. }
  21709. _ACEOF
  21710. if ac_fn_c_try_link "$LINENO"
  21711. then :
  21712. tst_api="0x300"
  21713. fi
  21714. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  21715. conftest$ac_exeext conftest.$ac_ext
  21716. fi
  21717. if test "$tst_api" = "unknown"; then
  21718. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  21719. /* end confdefs.h. */
  21720. #define ERR_clear_last_mark innocuous_ERR_clear_last_mark
  21721. #ifdef __STDC__
  21722. # include <limits.h>
  21723. #else
  21724. # include <assert.h>
  21725. #endif
  21726. #undef ERR_clear_last_mark
  21727. #ifdef __cplusplus
  21728. extern "C"
  21729. #endif
  21730. char ERR_clear_last_mark ();
  21731. #if defined __stub_ERR_clear_last_mark || defined __stub___ERR_clear_last_mark
  21732. choke me
  21733. #endif
  21734. int main (void)
  21735. {
  21736. return ERR_clear_last_mark ();
  21737. ;
  21738. return 0;
  21739. }
  21740. _ACEOF
  21741. if ac_fn_c_try_link "$LINENO"
  21742. then :
  21743. tst_api="0x111"
  21744. fi
  21745. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  21746. conftest$ac_exeext conftest.$ac_ext
  21747. fi
  21748. if test "$tst_api" = "unknown"; then
  21749. case $host in
  21750. *-*-vms*)
  21751. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  21752. /* end confdefs.h. */
  21753. #define SSL_CTX_set_not_resumbl_sess_cb innocuous_SSL_CTX_set_not_resumbl_sess_cb
  21754. #ifdef __STDC__
  21755. # include <limits.h>
  21756. #else
  21757. # include <assert.h>
  21758. #endif
  21759. #undef SSL_CTX_set_not_resumbl_sess_cb
  21760. #ifdef __cplusplus
  21761. extern "C"
  21762. #endif
  21763. char SSL_CTX_set_not_resumbl_sess_cb ();
  21764. #if defined __stub_SSL_CTX_set_not_resumbl_sess_cb || defined __stub___SSL_CTX_set_not_resumbl_sess_cb
  21765. choke me
  21766. #endif
  21767. int main (void)
  21768. {
  21769. return SSL_CTX_set_not_resumbl_sess_cb ();
  21770. ;
  21771. return 0;
  21772. }
  21773. _ACEOF
  21774. if ac_fn_c_try_link "$LINENO"
  21775. then :
  21776. tst_api="0x110"
  21777. fi
  21778. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  21779. conftest$ac_exeext conftest.$ac_ext
  21780. ;;
  21781. *)
  21782. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  21783. /* end confdefs.h. */
  21784. #define SSL_CTX_set_not_resumable_session_callback innocuous_SSL_CTX_set_not_resumable_session_callback
  21785. #ifdef __STDC__
  21786. # include <limits.h>
  21787. #else
  21788. # include <assert.h>
  21789. #endif
  21790. #undef SSL_CTX_set_not_resumable_session_callback
  21791. #ifdef __cplusplus
  21792. extern "C"
  21793. #endif
  21794. char SSL_CTX_set_not_resumable_session_callback ();
  21795. #if defined __stub_SSL_CTX_set_not_resumable_session_callback || defined __stub___SSL_CTX_set_not_resumable_session_callback
  21796. choke me
  21797. #endif
  21798. int main (void)
  21799. {
  21800. return SSL_CTX_set_not_resumable_session_callback ();
  21801. ;
  21802. return 0;
  21803. }
  21804. _ACEOF
  21805. if ac_fn_c_try_link "$LINENO"
  21806. then :
  21807. tst_api="0x110"
  21808. fi
  21809. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  21810. conftest$ac_exeext conftest.$ac_ext
  21811. ;;
  21812. esac
  21813. fi
  21814. if test "$tst_api" = "unknown"; then
  21815. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  21816. /* end confdefs.h. */
  21817. #define SSL_CONF_CTX_new innocuous_SSL_CONF_CTX_new
  21818. #ifdef __STDC__
  21819. # include <limits.h>
  21820. #else
  21821. # include <assert.h>
  21822. #endif
  21823. #undef SSL_CONF_CTX_new
  21824. #ifdef __cplusplus
  21825. extern "C"
  21826. #endif
  21827. char SSL_CONF_CTX_new ();
  21828. #if defined __stub_SSL_CONF_CTX_new || defined __stub___SSL_CONF_CTX_new
  21829. choke me
  21830. #endif
  21831. int main (void)
  21832. {
  21833. return SSL_CONF_CTX_new ();
  21834. ;
  21835. return 0;
  21836. }
  21837. _ACEOF
  21838. if ac_fn_c_try_link "$LINENO"
  21839. then :
  21840. tst_api="0x102"
  21841. fi
  21842. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  21843. conftest$ac_exeext conftest.$ac_ext
  21844. fi
  21845. if test "$tst_api" = "unknown"; then
  21846. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  21847. /* end confdefs.h. */
  21848. #define SSL_renegotiate_abbreviated innocuous_SSL_renegotiate_abbreviated
  21849. #ifdef __STDC__
  21850. # include <limits.h>
  21851. #else
  21852. # include <assert.h>
  21853. #endif
  21854. #undef SSL_renegotiate_abbreviated
  21855. #ifdef __cplusplus
  21856. extern "C"
  21857. #endif
  21858. char SSL_renegotiate_abbreviated ();
  21859. #if defined __stub_SSL_renegotiate_abbreviated || defined __stub___SSL_renegotiate_abbreviated
  21860. choke me
  21861. #endif
  21862. int main (void)
  21863. {
  21864. return SSL_renegotiate_abbreviated ();
  21865. ;
  21866. return 0;
  21867. }
  21868. _ACEOF
  21869. if ac_fn_c_try_link "$LINENO"
  21870. then :
  21871. tst_api="0x101"
  21872. fi
  21873. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  21874. conftest$ac_exeext conftest.$ac_ext
  21875. fi
  21876. if test "$tst_api" = "unknown"; then
  21877. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  21878. /* end confdefs.h. */
  21879. #define OBJ_add_sigid innocuous_OBJ_add_sigid
  21880. #ifdef __STDC__
  21881. # include <limits.h>
  21882. #else
  21883. # include <assert.h>
  21884. #endif
  21885. #undef OBJ_add_sigid
  21886. #ifdef __cplusplus
  21887. extern "C"
  21888. #endif
  21889. char OBJ_add_sigid ();
  21890. #if defined __stub_OBJ_add_sigid || defined __stub___OBJ_add_sigid
  21891. choke me
  21892. #endif
  21893. int main (void)
  21894. {
  21895. return OBJ_add_sigid ();
  21896. ;
  21897. return 0;
  21898. }
  21899. _ACEOF
  21900. if ac_fn_c_try_link "$LINENO"
  21901. then :
  21902. tst_api="0x100"
  21903. fi
  21904. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  21905. conftest$ac_exeext conftest.$ac_ext
  21906. fi
  21907. if test "$tst_api" = "unknown"; then
  21908. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  21909. /* end confdefs.h. */
  21910. #define ERR_set_mark innocuous_ERR_set_mark
  21911. #ifdef __STDC__
  21912. # include <limits.h>
  21913. #else
  21914. # include <assert.h>
  21915. #endif
  21916. #undef ERR_set_mark
  21917. #ifdef __cplusplus
  21918. extern "C"
  21919. #endif
  21920. char ERR_set_mark ();
  21921. #if defined __stub_ERR_set_mark || defined __stub___ERR_set_mark
  21922. choke me
  21923. #endif
  21924. int main (void)
  21925. {
  21926. return ERR_set_mark ();
  21927. ;
  21928. return 0;
  21929. }
  21930. _ACEOF
  21931. if ac_fn_c_try_link "$LINENO"
  21932. then :
  21933. tst_api="0x098"
  21934. fi
  21935. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  21936. conftest$ac_exeext conftest.$ac_ext
  21937. fi
  21938. if test "$tst_api" = "unknown"; then
  21939. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  21940. /* end confdefs.h. */
  21941. #define ERR_peek_last_error innocuous_ERR_peek_last_error
  21942. #ifdef __STDC__
  21943. # include <limits.h>
  21944. #else
  21945. # include <assert.h>
  21946. #endif
  21947. #undef ERR_peek_last_error
  21948. #ifdef __cplusplus
  21949. extern "C"
  21950. #endif
  21951. char ERR_peek_last_error ();
  21952. #if defined __stub_ERR_peek_last_error || defined __stub___ERR_peek_last_error
  21953. choke me
  21954. #endif
  21955. int main (void)
  21956. {
  21957. return ERR_peek_last_error ();
  21958. ;
  21959. return 0;
  21960. }
  21961. _ACEOF
  21962. if ac_fn_c_try_link "$LINENO"
  21963. then :
  21964. tst_api="0x097"
  21965. fi
  21966. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  21967. conftest$ac_exeext conftest.$ac_ext
  21968. fi
  21969. if test "$tst_api" = "unknown"; then
  21970. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  21971. /* end confdefs.h. */
  21972. #define c2i_ASN1_OBJECT innocuous_c2i_ASN1_OBJECT
  21973. #ifdef __STDC__
  21974. # include <limits.h>
  21975. #else
  21976. # include <assert.h>
  21977. #endif
  21978. #undef c2i_ASN1_OBJECT
  21979. #ifdef __cplusplus
  21980. extern "C"
  21981. #endif
  21982. char c2i_ASN1_OBJECT ();
  21983. #if defined __stub_c2i_ASN1_OBJECT || defined __stub___c2i_ASN1_OBJECT
  21984. choke me
  21985. #endif
  21986. int main (void)
  21987. {
  21988. return c2i_ASN1_OBJECT ();
  21989. ;
  21990. return 0;
  21991. }
  21992. _ACEOF
  21993. if ac_fn_c_try_link "$LINENO"
  21994. then :
  21995. tst_api="0x096"
  21996. fi
  21997. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  21998. conftest$ac_exeext conftest.$ac_ext
  21999. fi
  22000. if test "$tst_api" = "unknown"; then
  22001. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  22002. /* end confdefs.h. */
  22003. #define SSL_CTX_set_purpose innocuous_SSL_CTX_set_purpose
  22004. #ifdef __STDC__
  22005. # include <limits.h>
  22006. #else
  22007. # include <assert.h>
  22008. #endif
  22009. #undef SSL_CTX_set_purpose
  22010. #ifdef __cplusplus
  22011. extern "C"
  22012. #endif
  22013. char SSL_CTX_set_purpose ();
  22014. #if defined __stub_SSL_CTX_set_purpose || defined __stub___SSL_CTX_set_purpose
  22015. choke me
  22016. #endif
  22017. int main (void)
  22018. {
  22019. return SSL_CTX_set_purpose ();
  22020. ;
  22021. return 0;
  22022. }
  22023. _ACEOF
  22024. if ac_fn_c_try_link "$LINENO"
  22025. then :
  22026. tst_api="0x095"
  22027. fi
  22028. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  22029. conftest$ac_exeext conftest.$ac_ext
  22030. fi
  22031. if test "$tst_api" = "unknown"; then
  22032. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  22033. /* end confdefs.h. */
  22034. #define OBJ_obj2txt innocuous_OBJ_obj2txt
  22035. #ifdef __STDC__
  22036. # include <limits.h>
  22037. #else
  22038. # include <assert.h>
  22039. #endif
  22040. #undef OBJ_obj2txt
  22041. #ifdef __cplusplus
  22042. extern "C"
  22043. #endif
  22044. char OBJ_obj2txt ();
  22045. #if defined __stub_OBJ_obj2txt || defined __stub___OBJ_obj2txt
  22046. choke me
  22047. #endif
  22048. int main (void)
  22049. {
  22050. return OBJ_obj2txt ();
  22051. ;
  22052. return 0;
  22053. }
  22054. _ACEOF
  22055. if ac_fn_c_try_link "$LINENO"
  22056. then :
  22057. tst_api="0x094"
  22058. fi
  22059. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  22060. conftest$ac_exeext conftest.$ac_ext
  22061. fi
  22062. if test "$tst_api" = "unknown"; then
  22063. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  22064. /* end confdefs.h. */
  22065. #define SSL_get_verify_depth innocuous_SSL_get_verify_depth
  22066. #ifdef __STDC__
  22067. # include <limits.h>
  22068. #else
  22069. # include <assert.h>
  22070. #endif
  22071. #undef SSL_get_verify_depth
  22072. #ifdef __cplusplus
  22073. extern "C"
  22074. #endif
  22075. char SSL_get_verify_depth ();
  22076. #if defined __stub_SSL_get_verify_depth || defined __stub___SSL_get_verify_depth
  22077. choke me
  22078. #endif
  22079. int main (void)
  22080. {
  22081. return SSL_get_verify_depth ();
  22082. ;
  22083. return 0;
  22084. }
  22085. _ACEOF
  22086. if ac_fn_c_try_link "$LINENO"
  22087. then :
  22088. tst_api="0x093"
  22089. fi
  22090. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  22091. conftest$ac_exeext conftest.$ac_ext
  22092. fi
  22093. if test "$tst_api" = "unknown"; then
  22094. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  22095. /* end confdefs.h. */
  22096. #define SSL_library_init innocuous_SSL_library_init
  22097. #ifdef __STDC__
  22098. # include <limits.h>
  22099. #else
  22100. # include <assert.h>
  22101. #endif
  22102. #undef SSL_library_init
  22103. #ifdef __cplusplus
  22104. extern "C"
  22105. #endif
  22106. char SSL_library_init ();
  22107. #if defined __stub_SSL_library_init || defined __stub___SSL_library_init
  22108. choke me
  22109. #endif
  22110. int main (void)
  22111. {
  22112. return SSL_library_init ();
  22113. ;
  22114. return 0;
  22115. }
  22116. _ACEOF
  22117. if ac_fn_c_try_link "$LINENO"
  22118. then :
  22119. tst_api="0x092"
  22120. fi
  22121. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  22122. conftest$ac_exeext conftest.$ac_ext
  22123. fi
  22124. if test "$tst_api" = "unknown"; then
  22125. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  22126. /* end confdefs.h. */
  22127. #define SSL_CTX_set_cipher_list innocuous_SSL_CTX_set_cipher_list
  22128. #ifdef __STDC__
  22129. # include <limits.h>
  22130. #else
  22131. # include <assert.h>
  22132. #endif
  22133. #undef SSL_CTX_set_cipher_list
  22134. #ifdef __cplusplus
  22135. extern "C"
  22136. #endif
  22137. char SSL_CTX_set_cipher_list ();
  22138. #if defined __stub_SSL_CTX_set_cipher_list || defined __stub___SSL_CTX_set_cipher_list
  22139. choke me
  22140. #endif
  22141. int main (void)
  22142. {
  22143. return SSL_CTX_set_cipher_list ();
  22144. ;
  22145. return 0;
  22146. }
  22147. _ACEOF
  22148. if ac_fn_c_try_link "$LINENO"
  22149. then :
  22150. tst_api="0x091"
  22151. fi
  22152. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  22153. conftest$ac_exeext conftest.$ac_ext
  22154. fi
  22155. case $tst_api in
  22156. 0x300) tst_show="3.0.0" ;;
  22157. 0x111) tst_show="1.1.1" ;;
  22158. 0x110) tst_show="1.1.0" ;;
  22159. 0x102) tst_show="1.0.2" ;;
  22160. 0x101) tst_show="1.0.1" ;;
  22161. 0x100) tst_show="1.0.0" ;;
  22162. 0x099) tst_show="0.9.9" ;;
  22163. 0x098) tst_show="0.9.8" ;;
  22164. 0x097) tst_show="0.9.7" ;;
  22165. 0x096) tst_show="0.9.6" ;;
  22166. 0x095) tst_show="0.9.5" ;;
  22167. 0x094) tst_show="0.9.4" ;;
  22168. 0x093) tst_show="0.9.3" ;;
  22169. 0x092) tst_show="0.9.2" ;;
  22170. 0x091) tst_show="0.9.1" ;;
  22171. *) tst_show="unknown" ;;
  22172. esac
  22173. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $tst_show" >&5
  22174. printf "%s\n" "$tst_show" >&6; }
  22175. #
  22176. curl_openssl_api_library=$tst_api
  22177. #
  22178. tst_match="yes"
  22179. #
  22180. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for OpenSSL headers and library versions matching" >&5
  22181. printf %s "checking for OpenSSL headers and library versions matching... " >&6; }
  22182. if test "$curl_openssl_api_headers" = "unknown" ||
  22183. test "$curl_openssl_api_library" = "unknown"; then
  22184. tst_match="fail"
  22185. tst_warns="Can not compare OpenSSL headers and library versions."
  22186. elif test "$curl_openssl_api_headers" != "$curl_openssl_api_library"; then
  22187. tst_match="no"
  22188. tst_warns="OpenSSL headers and library versions do not match."
  22189. fi
  22190. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $tst_match" >&5
  22191. printf "%s\n" "$tst_match" >&6; }
  22192. if test "$tst_match" != "yes"; then
  22193. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $tst_warns" >&5
  22194. printf "%s\n" "$as_me: WARNING: $tst_warns" >&2;}
  22195. fi
  22196. check_for_ca_bundle=1
  22197. fi
  22198. test -z "$ssl_msg" || ssl_backends="${ssl_backends:+$ssl_backends, }$ssl_msg"
  22199. fi
  22200. if test X"$OPT_OPENSSL" != Xno &&
  22201. test "$OPENSSL_ENABLED" != "1"; then
  22202. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: OPT_OPENSSL: $OPT_OPENSSL" >&5
  22203. printf "%s\n" "$as_me: OPT_OPENSSL: $OPT_OPENSSL" >&6;}
  22204. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: OPENSSL_ENABLED: $OPENSSL_ENABLED" >&5
  22205. printf "%s\n" "$as_me: OPENSSL_ENABLED: $OPENSSL_ENABLED" >&6;}
  22206. as_fn_error $? "--with-openssl was given but OpenSSL could not be detected" "$LINENO" 5
  22207. fi
  22208. if test X"$OPENSSL_ENABLED" = X"1"; then
  22209. # Check whether --with-egd-socket was given.
  22210. if test ${with_egd_socket+y}
  22211. then :
  22212. withval=$with_egd_socket; EGD_SOCKET="$withval"
  22213. fi
  22214. if test -n "$EGD_SOCKET" ; then
  22215. printf "%s\n" "#define EGD_SOCKET \"$EGD_SOCKET\"" >>confdefs.h
  22216. fi
  22217. # Check whether --with-random was given.
  22218. if test ${with_random+y}
  22219. then :
  22220. withval=$with_random; RANDOM_FILE="$withval"
  22221. else $as_nop
  22222. if test x$cross_compiling != xyes; then
  22223. as_ac_File=`printf "%s\n" "ac_cv_file_"/dev/urandom"" | $as_tr_sh`
  22224. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for \"/dev/urandom\"" >&5
  22225. printf %s "checking for \"/dev/urandom\"... " >&6; }
  22226. if eval test \${$as_ac_File+y}
  22227. then :
  22228. printf %s "(cached) " >&6
  22229. else $as_nop
  22230. test "$cross_compiling" = yes &&
  22231. as_fn_error $? "cannot check for file existence when cross compiling" "$LINENO" 5
  22232. if test -r ""/dev/urandom""; then
  22233. eval "$as_ac_File=yes"
  22234. else
  22235. eval "$as_ac_File=no"
  22236. fi
  22237. fi
  22238. eval ac_res=\$$as_ac_File
  22239. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  22240. printf "%s\n" "$ac_res" >&6; }
  22241. if eval test \"x\$"$as_ac_File"\" = x"yes"
  22242. then :
  22243. RANDOM_FILE="/dev/urandom"
  22244. fi
  22245. else
  22246. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: skipped the /dev/urandom detection when cross-compiling" >&5
  22247. printf "%s\n" "$as_me: WARNING: skipped the /dev/urandom detection when cross-compiling" >&2;}
  22248. fi
  22249. fi
  22250. if test -n "$RANDOM_FILE" && test X"$RANDOM_FILE" != Xno ; then
  22251. printf "%s\n" "#define RANDOM_FILE \"$RANDOM_FILE\"" >>confdefs.h
  22252. fi
  22253. fi
  22254. if test "$OPENSSL_ENABLED" = "1"; then
  22255. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for SRP_Calc_client_key in -lcrypto" >&5
  22256. printf %s "checking for SRP_Calc_client_key in -lcrypto... " >&6; }
  22257. if test ${ac_cv_lib_crypto_SRP_Calc_client_key+y}
  22258. then :
  22259. printf %s "(cached) " >&6
  22260. else $as_nop
  22261. ac_check_lib_save_LIBS=$LIBS
  22262. LIBS="-lcrypto $LIBS"
  22263. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  22264. /* end confdefs.h. */
  22265. #ifdef __cplusplus
  22266. extern "C"
  22267. #endif
  22268. char SRP_Calc_client_key ();
  22269. int main (void)
  22270. {
  22271. return SRP_Calc_client_key ();
  22272. ;
  22273. return 0;
  22274. }
  22275. _ACEOF
  22276. if ac_fn_c_try_link "$LINENO"
  22277. then :
  22278. ac_cv_lib_crypto_SRP_Calc_client_key=yes
  22279. else $as_nop
  22280. ac_cv_lib_crypto_SRP_Calc_client_key=no
  22281. fi
  22282. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  22283. conftest$ac_exeext conftest.$ac_ext
  22284. LIBS=$ac_check_lib_save_LIBS
  22285. fi
  22286. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_crypto_SRP_Calc_client_key" >&5
  22287. printf "%s\n" "$ac_cv_lib_crypto_SRP_Calc_client_key" >&6; }
  22288. if test "x$ac_cv_lib_crypto_SRP_Calc_client_key" = xyes
  22289. then :
  22290. printf "%s\n" "#define HAVE_OPENSSL_SRP 1" >>confdefs.h
  22291. HAVE_OPENSSL_SRP=1
  22292. fi
  22293. fi
  22294. if test X"$OPENSSL_ENABLED" = X"1"; then
  22295. # Check whether --enable-openssl-auto-load-config was given.
  22296. if test ${enable_openssl_auto_load_config+y}
  22297. then :
  22298. enableval=$enable_openssl_auto_load_config; if test X"$enableval" = X"no"; then
  22299. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: automatic loading of OpenSSL configuration disabled" >&5
  22300. printf "%s\n" "$as_me: automatic loading of OpenSSL configuration disabled" >&6;}
  22301. printf "%s\n" "#define CURL_DISABLE_OPENSSL_AUTO_LOAD_CONFIG 1" >>confdefs.h
  22302. fi
  22303. fi
  22304. fi
  22305. if test "x$OPT_GNUTLS" != xno; then
  22306. ssl_msg=
  22307. if test X"$OPT_GNUTLS" != Xno; then
  22308. addld=""
  22309. addlib=""
  22310. gtlslib=""
  22311. version=""
  22312. addcflags=""
  22313. if test "x$OPT_GNUTLS" = "xyes"; then
  22314. if test -n "$PKG_CONFIG"; then
  22315. PKGCONFIG="$PKG_CONFIG"
  22316. else
  22317. if test -n "$ac_tool_prefix"; then
  22318. # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
  22319. set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
  22320. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  22321. printf %s "checking for $ac_word... " >&6; }
  22322. if test ${ac_cv_path_PKGCONFIG+y}
  22323. then :
  22324. printf %s "(cached) " >&6
  22325. else $as_nop
  22326. case $PKGCONFIG in
  22327. [\\/]* | ?:[\\/]*)
  22328. ac_cv_path_PKGCONFIG="$PKGCONFIG" # Let the user override the test with a path.
  22329. ;;
  22330. *)
  22331. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  22332. as_dummy="$PATH:/usr/bin:/usr/local/bin"
  22333. for as_dir in $as_dummy
  22334. do
  22335. IFS=$as_save_IFS
  22336. case $as_dir in #(((
  22337. '') as_dir=./ ;;
  22338. */) ;;
  22339. *) as_dir=$as_dir/ ;;
  22340. esac
  22341. for ac_exec_ext in '' $ac_executable_extensions; do
  22342. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  22343. ac_cv_path_PKGCONFIG="$as_dir$ac_word$ac_exec_ext"
  22344. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  22345. break 2
  22346. fi
  22347. done
  22348. done
  22349. IFS=$as_save_IFS
  22350. ;;
  22351. esac
  22352. fi
  22353. PKGCONFIG=$ac_cv_path_PKGCONFIG
  22354. if test -n "$PKGCONFIG"; then
  22355. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PKGCONFIG" >&5
  22356. printf "%s\n" "$PKGCONFIG" >&6; }
  22357. else
  22358. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  22359. printf "%s\n" "no" >&6; }
  22360. fi
  22361. fi
  22362. if test -z "$ac_cv_path_PKGCONFIG"; then
  22363. ac_pt_PKGCONFIG=$PKGCONFIG
  22364. # Extract the first word of "pkg-config", so it can be a program name with args.
  22365. set dummy pkg-config; ac_word=$2
  22366. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  22367. printf %s "checking for $ac_word... " >&6; }
  22368. if test ${ac_cv_path_ac_pt_PKGCONFIG+y}
  22369. then :
  22370. printf %s "(cached) " >&6
  22371. else $as_nop
  22372. case $ac_pt_PKGCONFIG in
  22373. [\\/]* | ?:[\\/]*)
  22374. ac_cv_path_ac_pt_PKGCONFIG="$ac_pt_PKGCONFIG" # Let the user override the test with a path.
  22375. ;;
  22376. *)
  22377. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  22378. as_dummy="$PATH:/usr/bin:/usr/local/bin"
  22379. for as_dir in $as_dummy
  22380. do
  22381. IFS=$as_save_IFS
  22382. case $as_dir in #(((
  22383. '') as_dir=./ ;;
  22384. */) ;;
  22385. *) as_dir=$as_dir/ ;;
  22386. esac
  22387. for ac_exec_ext in '' $ac_executable_extensions; do
  22388. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  22389. ac_cv_path_ac_pt_PKGCONFIG="$as_dir$ac_word$ac_exec_ext"
  22390. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  22391. break 2
  22392. fi
  22393. done
  22394. done
  22395. IFS=$as_save_IFS
  22396. ;;
  22397. esac
  22398. fi
  22399. ac_pt_PKGCONFIG=$ac_cv_path_ac_pt_PKGCONFIG
  22400. if test -n "$ac_pt_PKGCONFIG"; then
  22401. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKGCONFIG" >&5
  22402. printf "%s\n" "$ac_pt_PKGCONFIG" >&6; }
  22403. else
  22404. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  22405. printf "%s\n" "no" >&6; }
  22406. fi
  22407. if test "x$ac_pt_PKGCONFIG" = x; then
  22408. PKGCONFIG="no"
  22409. else
  22410. case $cross_compiling:$ac_tool_warned in
  22411. yes:)
  22412. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  22413. printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  22414. ac_tool_warned=yes ;;
  22415. esac
  22416. PKGCONFIG=$ac_pt_PKGCONFIG
  22417. fi
  22418. else
  22419. PKGCONFIG="$ac_cv_path_PKGCONFIG"
  22420. fi
  22421. fi
  22422. if test "x$PKGCONFIG" != "xno"; then
  22423. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for gnutls options with pkg-config" >&5
  22424. printf %s "checking for gnutls options with pkg-config... " >&6; }
  22425. itexists=`
  22426. if test -n ""; then
  22427. PKG_CONFIG_LIBDIR=""
  22428. export PKG_CONFIG_LIBDIR
  22429. fi
  22430. $PKGCONFIG --exists gnutls >/dev/null 2>&1 && echo 1`
  22431. if test -z "$itexists"; then
  22432. PKGCONFIG="no"
  22433. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  22434. printf "%s\n" "no" >&6; }
  22435. else
  22436. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: found" >&5
  22437. printf "%s\n" "found" >&6; }
  22438. fi
  22439. fi
  22440. if test "$PKGCONFIG" != "no" ; then
  22441. addlib=`$PKGCONFIG --libs-only-l gnutls`
  22442. addld=`$PKGCONFIG --libs-only-L gnutls`
  22443. addcflags=`$PKGCONFIG --cflags-only-I gnutls`
  22444. version=`$PKGCONFIG --modversion gnutls`
  22445. gtlslib=`echo $addld | $SED -e 's/^-L//'`
  22446. else
  22447. check=`libgnutls-config --version 2>/dev/null`
  22448. if test -n "$check"; then
  22449. addlib=`libgnutls-config --libs`
  22450. addcflags=`libgnutls-config --cflags`
  22451. version=`libgnutls-config --version`
  22452. gtlslib=`libgnutls-config --prefix`/lib$libsuff
  22453. fi
  22454. fi
  22455. else
  22456. cfg=$OPT_GNUTLS/bin/libgnutls-config
  22457. check=`$cfg --version 2>/dev/null`
  22458. if test -n "$check"; then
  22459. addlib=`$cfg --libs`
  22460. addcflags=`$cfg --cflags`
  22461. version=`$cfg --version`
  22462. gtlslib=`$cfg --prefix`/lib$libsuff
  22463. else
  22464. addlib=-lgnutls
  22465. addld=-L$OPT_GNUTLS/lib$libsuff
  22466. addcflags=-I$OPT_GNUTLS/include
  22467. version="" # we just don't know
  22468. gtlslib=$OPT_GNUTLS/lib$libsuff
  22469. fi
  22470. fi
  22471. if test -z "$version"; then
  22472. version="unknown"
  22473. fi
  22474. if test -n "$addlib"; then
  22475. CLEANLIBS="$LIBS"
  22476. CLEANCPPFLAGS="$CPPFLAGS"
  22477. CLEANLDFLAGS="$LDFLAGS"
  22478. LIBS="$addlib $LIBS"
  22479. LDFLAGS="$LDFLAGS $addld"
  22480. if test "$addcflags" != "-I/usr/include"; then
  22481. CPPFLAGS="$CPPFLAGS $addcflags"
  22482. fi
  22483. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for gnutls_x509_crt_get_dn2 in -lgnutls" >&5
  22484. printf %s "checking for gnutls_x509_crt_get_dn2 in -lgnutls... " >&6; }
  22485. if test ${ac_cv_lib_gnutls_gnutls_x509_crt_get_dn2+y}
  22486. then :
  22487. printf %s "(cached) " >&6
  22488. else $as_nop
  22489. ac_check_lib_save_LIBS=$LIBS
  22490. LIBS="-lgnutls $LIBS"
  22491. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  22492. /* end confdefs.h. */
  22493. #ifdef __cplusplus
  22494. extern "C"
  22495. #endif
  22496. char gnutls_x509_crt_get_dn2 ();
  22497. int main (void)
  22498. {
  22499. return gnutls_x509_crt_get_dn2 ();
  22500. ;
  22501. return 0;
  22502. }
  22503. _ACEOF
  22504. if ac_fn_c_try_link "$LINENO"
  22505. then :
  22506. ac_cv_lib_gnutls_gnutls_x509_crt_get_dn2=yes
  22507. else $as_nop
  22508. ac_cv_lib_gnutls_gnutls_x509_crt_get_dn2=no
  22509. fi
  22510. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  22511. conftest$ac_exeext conftest.$ac_ext
  22512. LIBS=$ac_check_lib_save_LIBS
  22513. fi
  22514. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gnutls_gnutls_x509_crt_get_dn2" >&5
  22515. printf "%s\n" "$ac_cv_lib_gnutls_gnutls_x509_crt_get_dn2" >&6; }
  22516. if test "x$ac_cv_lib_gnutls_gnutls_x509_crt_get_dn2" = xyes
  22517. then :
  22518. printf "%s\n" "#define USE_GNUTLS 1" >>confdefs.h
  22519. USE_GNUTLS=1
  22520. GNUTLS_ENABLED=1
  22521. USE_GNUTLS="yes"
  22522. ssl_msg="GnuTLS"
  22523. test gnutls != "$DEFAULT_SSL_BACKEND" || VALID_DEFAULT_SSL_BACKEND=yes
  22524. else $as_nop
  22525. LIBS="$CLEANLIBS"
  22526. CPPFLAGS="$CLEANCPPFLAGS"
  22527. fi
  22528. if test "x$USE_GNUTLS" = "xyes"; then
  22529. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: detected GnuTLS version $version" >&5
  22530. printf "%s\n" "$as_me: detected GnuTLS version $version" >&6;}
  22531. check_for_ca_bundle=1
  22532. if test -n "$gtlslib"; then
  22533. if test "x$cross_compiling" != "xyes"; then
  22534. CURL_LIBRARY_PATH="$CURL_LIBRARY_PATH:$gtlslib"
  22535. export CURL_LIBRARY_PATH
  22536. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: Added $gtlslib to CURL_LIBRARY_PATH" >&5
  22537. printf "%s\n" "$as_me: Added $gtlslib to CURL_LIBRARY_PATH" >&6;}
  22538. fi
  22539. fi
  22540. fi
  22541. fi
  22542. fi
  22543. test -z "$ssl_msg" || ssl_backends="${ssl_backends:+$ssl_backends, }$ssl_msg"
  22544. fi
  22545. if test "$GNUTLS_ENABLED" = "1"; then
  22546. USE_GNUTLS_NETTLE=
  22547. # First check if we can detect either crypto library via transitive linking
  22548. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for nettle_MD5Init in -lgnutls" >&5
  22549. printf %s "checking for nettle_MD5Init in -lgnutls... " >&6; }
  22550. if test ${ac_cv_lib_gnutls_nettle_MD5Init+y}
  22551. then :
  22552. printf %s "(cached) " >&6
  22553. else $as_nop
  22554. ac_check_lib_save_LIBS=$LIBS
  22555. LIBS="-lgnutls $LIBS"
  22556. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  22557. /* end confdefs.h. */
  22558. #ifdef __cplusplus
  22559. extern "C"
  22560. #endif
  22561. char nettle_MD5Init ();
  22562. int main (void)
  22563. {
  22564. return nettle_MD5Init ();
  22565. ;
  22566. return 0;
  22567. }
  22568. _ACEOF
  22569. if ac_fn_c_try_link "$LINENO"
  22570. then :
  22571. ac_cv_lib_gnutls_nettle_MD5Init=yes
  22572. else $as_nop
  22573. ac_cv_lib_gnutls_nettle_MD5Init=no
  22574. fi
  22575. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  22576. conftest$ac_exeext conftest.$ac_ext
  22577. LIBS=$ac_check_lib_save_LIBS
  22578. fi
  22579. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gnutls_nettle_MD5Init" >&5
  22580. printf "%s\n" "$ac_cv_lib_gnutls_nettle_MD5Init" >&6; }
  22581. if test "x$ac_cv_lib_gnutls_nettle_MD5Init" = xyes
  22582. then :
  22583. USE_GNUTLS_NETTLE=1
  22584. fi
  22585. # If not, try linking directly to both of them to see if they are available
  22586. if test "$USE_GNUTLS_NETTLE" = ""; then
  22587. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for nettle_MD5Init in -lnettle" >&5
  22588. printf %s "checking for nettle_MD5Init in -lnettle... " >&6; }
  22589. if test ${ac_cv_lib_nettle_nettle_MD5Init+y}
  22590. then :
  22591. printf %s "(cached) " >&6
  22592. else $as_nop
  22593. ac_check_lib_save_LIBS=$LIBS
  22594. LIBS="-lnettle $LIBS"
  22595. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  22596. /* end confdefs.h. */
  22597. #ifdef __cplusplus
  22598. extern "C"
  22599. #endif
  22600. char nettle_MD5Init ();
  22601. int main (void)
  22602. {
  22603. return nettle_MD5Init ();
  22604. ;
  22605. return 0;
  22606. }
  22607. _ACEOF
  22608. if ac_fn_c_try_link "$LINENO"
  22609. then :
  22610. ac_cv_lib_nettle_nettle_MD5Init=yes
  22611. else $as_nop
  22612. ac_cv_lib_nettle_nettle_MD5Init=no
  22613. fi
  22614. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  22615. conftest$ac_exeext conftest.$ac_ext
  22616. LIBS=$ac_check_lib_save_LIBS
  22617. fi
  22618. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nettle_nettle_MD5Init" >&5
  22619. printf "%s\n" "$ac_cv_lib_nettle_nettle_MD5Init" >&6; }
  22620. if test "x$ac_cv_lib_nettle_nettle_MD5Init" = xyes
  22621. then :
  22622. USE_GNUTLS_NETTLE=1
  22623. fi
  22624. fi
  22625. if test "$USE_GNUTLS_NETTLE" = ""; then
  22626. as_fn_error $? "GnuTLS found, but nettle was not found" "$LINENO" 5
  22627. fi
  22628. LIBS="-lnettle $LIBS"
  22629. fi
  22630. if test "$GNUTLS_ENABLED" = "1"; then
  22631. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for gnutls_srp_verifier in -lgnutls" >&5
  22632. printf %s "checking for gnutls_srp_verifier in -lgnutls... " >&6; }
  22633. if test ${ac_cv_lib_gnutls_gnutls_srp_verifier+y}
  22634. then :
  22635. printf %s "(cached) " >&6
  22636. else $as_nop
  22637. ac_check_lib_save_LIBS=$LIBS
  22638. LIBS="-lgnutls $LIBS"
  22639. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  22640. /* end confdefs.h. */
  22641. #ifdef __cplusplus
  22642. extern "C"
  22643. #endif
  22644. char gnutls_srp_verifier ();
  22645. int main (void)
  22646. {
  22647. return gnutls_srp_verifier ();
  22648. ;
  22649. return 0;
  22650. }
  22651. _ACEOF
  22652. if ac_fn_c_try_link "$LINENO"
  22653. then :
  22654. ac_cv_lib_gnutls_gnutls_srp_verifier=yes
  22655. else $as_nop
  22656. ac_cv_lib_gnutls_gnutls_srp_verifier=no
  22657. fi
  22658. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  22659. conftest$ac_exeext conftest.$ac_ext
  22660. LIBS=$ac_check_lib_save_LIBS
  22661. fi
  22662. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gnutls_gnutls_srp_verifier" >&5
  22663. printf "%s\n" "$ac_cv_lib_gnutls_gnutls_srp_verifier" >&6; }
  22664. if test "x$ac_cv_lib_gnutls_gnutls_srp_verifier" = xyes
  22665. then :
  22666. printf "%s\n" "#define HAVE_GNUTLS_SRP 1" >>confdefs.h
  22667. HAVE_GNUTLS_SRP=1
  22668. fi
  22669. fi
  22670. if test "x$OPT_MBEDTLS" != xno; then
  22671. _cppflags=$CPPFLAGS
  22672. _ldflags=$LDFLAGS
  22673. ssl_msg=
  22674. if test X"$OPT_MBEDTLS" != Xno; then
  22675. if test "$OPT_MBEDTLS" = "yes"; then
  22676. OPT_MBEDTLS=""
  22677. fi
  22678. if test -z "$OPT_MBEDTLS" ; then
  22679. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for mbedtls_havege_init in -lmbedtls" >&5
  22680. printf %s "checking for mbedtls_havege_init in -lmbedtls... " >&6; }
  22681. if test ${ac_cv_lib_mbedtls_mbedtls_havege_init+y}
  22682. then :
  22683. printf %s "(cached) " >&6
  22684. else $as_nop
  22685. ac_check_lib_save_LIBS=$LIBS
  22686. LIBS="-lmbedtls -lmbedx509 -lmbedcrypto $LIBS"
  22687. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  22688. /* end confdefs.h. */
  22689. #ifdef __cplusplus
  22690. extern "C"
  22691. #endif
  22692. char mbedtls_havege_init ();
  22693. int main (void)
  22694. {
  22695. return mbedtls_havege_init ();
  22696. ;
  22697. return 0;
  22698. }
  22699. _ACEOF
  22700. if ac_fn_c_try_link "$LINENO"
  22701. then :
  22702. ac_cv_lib_mbedtls_mbedtls_havege_init=yes
  22703. else $as_nop
  22704. ac_cv_lib_mbedtls_mbedtls_havege_init=no
  22705. fi
  22706. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  22707. conftest$ac_exeext conftest.$ac_ext
  22708. LIBS=$ac_check_lib_save_LIBS
  22709. fi
  22710. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_mbedtls_mbedtls_havege_init" >&5
  22711. printf "%s\n" "$ac_cv_lib_mbedtls_mbedtls_havege_init" >&6; }
  22712. if test "x$ac_cv_lib_mbedtls_mbedtls_havege_init" = xyes
  22713. then :
  22714. printf "%s\n" "#define USE_MBEDTLS 1" >>confdefs.h
  22715. USE_MBEDTLS=1
  22716. MBEDTLS_ENABLED=1
  22717. USE_MBEDTLS="yes"
  22718. ssl_msg="mbedTLS"
  22719. test mbedtls != "$DEFAULT_SSL_BACKEND" || VALID_DEFAULT_SSL_BACKEND=yes
  22720. fi
  22721. fi
  22722. addld=""
  22723. addlib=""
  22724. addcflags=""
  22725. mbedtlslib=""
  22726. if test "x$USE_MBEDTLS" != "xyes"; then
  22727. addld=-L$OPT_MBEDTLS/lib$libsuff
  22728. addcflags=-I$OPT_MBEDTLS/include
  22729. mbedtlslib=$OPT_MBEDTLS/lib$libsuff
  22730. LDFLAGS="$LDFLAGS $addld"
  22731. if test "$addcflags" != "-I/usr/include"; then
  22732. CPPFLAGS="$CPPFLAGS $addcflags"
  22733. fi
  22734. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for mbedtls_ssl_init in -lmbedtls" >&5
  22735. printf %s "checking for mbedtls_ssl_init in -lmbedtls... " >&6; }
  22736. if test ${ac_cv_lib_mbedtls_mbedtls_ssl_init+y}
  22737. then :
  22738. printf %s "(cached) " >&6
  22739. else $as_nop
  22740. ac_check_lib_save_LIBS=$LIBS
  22741. LIBS="-lmbedtls -lmbedx509 -lmbedcrypto $LIBS"
  22742. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  22743. /* end confdefs.h. */
  22744. #ifdef __cplusplus
  22745. extern "C"
  22746. #endif
  22747. char mbedtls_ssl_init ();
  22748. int main (void)
  22749. {
  22750. return mbedtls_ssl_init ();
  22751. ;
  22752. return 0;
  22753. }
  22754. _ACEOF
  22755. if ac_fn_c_try_link "$LINENO"
  22756. then :
  22757. ac_cv_lib_mbedtls_mbedtls_ssl_init=yes
  22758. else $as_nop
  22759. ac_cv_lib_mbedtls_mbedtls_ssl_init=no
  22760. fi
  22761. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  22762. conftest$ac_exeext conftest.$ac_ext
  22763. LIBS=$ac_check_lib_save_LIBS
  22764. fi
  22765. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_mbedtls_mbedtls_ssl_init" >&5
  22766. printf "%s\n" "$ac_cv_lib_mbedtls_mbedtls_ssl_init" >&6; }
  22767. if test "x$ac_cv_lib_mbedtls_mbedtls_ssl_init" = xyes
  22768. then :
  22769. printf "%s\n" "#define USE_MBEDTLS 1" >>confdefs.h
  22770. USE_MBEDTLS=1
  22771. MBEDTLS_ENABLED=1
  22772. USE_MBEDTLS="yes"
  22773. ssl_msg="mbedTLS"
  22774. test mbedtls != "$DEFAULT_SSL_BACKEND" || VALID_DEFAULT_SSL_BACKEND=yes
  22775. else $as_nop
  22776. CPPFLAGS=$_cppflags
  22777. LDFLAGS=$_ldflags
  22778. fi
  22779. fi
  22780. if test "x$USE_MBEDTLS" = "xyes"; then
  22781. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: detected mbedTLS" >&5
  22782. printf "%s\n" "$as_me: detected mbedTLS" >&6;}
  22783. check_for_ca_bundle=1
  22784. LIBS="-lmbedtls -lmbedx509 -lmbedcrypto $LIBS"
  22785. if test -n "$mbedtlslib"; then
  22786. if test "x$cross_compiling" != "xyes"; then
  22787. CURL_LIBRARY_PATH="$CURL_LIBRARY_PATH:$mbedtlslib"
  22788. export CURL_LIBRARY_PATH
  22789. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: Added $mbedtlslib to CURL_LIBRARY_PATH" >&5
  22790. printf "%s\n" "$as_me: Added $mbedtlslib to CURL_LIBRARY_PATH" >&6;}
  22791. fi
  22792. fi
  22793. fi
  22794. fi
  22795. test -z "$ssl_msg" || ssl_backends="${ssl_backends:+$ssl_backends, }$ssl_msg"
  22796. fi
  22797. case "$OPT_WOLFSSL" in
  22798. yes|no)
  22799. wolfpkg=""
  22800. ;;
  22801. *)
  22802. wolfpkg="$withval/lib/pkgconfig"
  22803. ;;
  22804. esac
  22805. if test "x$OPT_WOLFSSL" != xno; then
  22806. _cppflags=$CPPFLAGS
  22807. _ldflags=$LDFLAGS
  22808. ssl_msg=
  22809. if test X"$OPT_WOLFSSL" != Xno; then
  22810. if test "$OPT_WOLFSSL" = "yes"; then
  22811. OPT_WOLFSSL=""
  22812. fi
  22813. if test -n "$PKG_CONFIG"; then
  22814. PKGCONFIG="$PKG_CONFIG"
  22815. else
  22816. if test -n "$ac_tool_prefix"; then
  22817. # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
  22818. set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
  22819. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  22820. printf %s "checking for $ac_word... " >&6; }
  22821. if test ${ac_cv_path_PKGCONFIG+y}
  22822. then :
  22823. printf %s "(cached) " >&6
  22824. else $as_nop
  22825. case $PKGCONFIG in
  22826. [\\/]* | ?:[\\/]*)
  22827. ac_cv_path_PKGCONFIG="$PKGCONFIG" # Let the user override the test with a path.
  22828. ;;
  22829. *)
  22830. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  22831. as_dummy="$PATH:/usr/bin:/usr/local/bin"
  22832. for as_dir in $as_dummy
  22833. do
  22834. IFS=$as_save_IFS
  22835. case $as_dir in #(((
  22836. '') as_dir=./ ;;
  22837. */) ;;
  22838. *) as_dir=$as_dir/ ;;
  22839. esac
  22840. for ac_exec_ext in '' $ac_executable_extensions; do
  22841. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  22842. ac_cv_path_PKGCONFIG="$as_dir$ac_word$ac_exec_ext"
  22843. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  22844. break 2
  22845. fi
  22846. done
  22847. done
  22848. IFS=$as_save_IFS
  22849. ;;
  22850. esac
  22851. fi
  22852. PKGCONFIG=$ac_cv_path_PKGCONFIG
  22853. if test -n "$PKGCONFIG"; then
  22854. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PKGCONFIG" >&5
  22855. printf "%s\n" "$PKGCONFIG" >&6; }
  22856. else
  22857. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  22858. printf "%s\n" "no" >&6; }
  22859. fi
  22860. fi
  22861. if test -z "$ac_cv_path_PKGCONFIG"; then
  22862. ac_pt_PKGCONFIG=$PKGCONFIG
  22863. # Extract the first word of "pkg-config", so it can be a program name with args.
  22864. set dummy pkg-config; ac_word=$2
  22865. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  22866. printf %s "checking for $ac_word... " >&6; }
  22867. if test ${ac_cv_path_ac_pt_PKGCONFIG+y}
  22868. then :
  22869. printf %s "(cached) " >&6
  22870. else $as_nop
  22871. case $ac_pt_PKGCONFIG in
  22872. [\\/]* | ?:[\\/]*)
  22873. ac_cv_path_ac_pt_PKGCONFIG="$ac_pt_PKGCONFIG" # Let the user override the test with a path.
  22874. ;;
  22875. *)
  22876. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  22877. as_dummy="$PATH:/usr/bin:/usr/local/bin"
  22878. for as_dir in $as_dummy
  22879. do
  22880. IFS=$as_save_IFS
  22881. case $as_dir in #(((
  22882. '') as_dir=./ ;;
  22883. */) ;;
  22884. *) as_dir=$as_dir/ ;;
  22885. esac
  22886. for ac_exec_ext in '' $ac_executable_extensions; do
  22887. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  22888. ac_cv_path_ac_pt_PKGCONFIG="$as_dir$ac_word$ac_exec_ext"
  22889. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  22890. break 2
  22891. fi
  22892. done
  22893. done
  22894. IFS=$as_save_IFS
  22895. ;;
  22896. esac
  22897. fi
  22898. ac_pt_PKGCONFIG=$ac_cv_path_ac_pt_PKGCONFIG
  22899. if test -n "$ac_pt_PKGCONFIG"; then
  22900. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKGCONFIG" >&5
  22901. printf "%s\n" "$ac_pt_PKGCONFIG" >&6; }
  22902. else
  22903. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  22904. printf "%s\n" "no" >&6; }
  22905. fi
  22906. if test "x$ac_pt_PKGCONFIG" = x; then
  22907. PKGCONFIG="no"
  22908. else
  22909. case $cross_compiling:$ac_tool_warned in
  22910. yes:)
  22911. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  22912. printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  22913. ac_tool_warned=yes ;;
  22914. esac
  22915. PKGCONFIG=$ac_pt_PKGCONFIG
  22916. fi
  22917. else
  22918. PKGCONFIG="$ac_cv_path_PKGCONFIG"
  22919. fi
  22920. fi
  22921. if test "x$PKGCONFIG" != "xno"; then
  22922. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for wolfssl options with pkg-config" >&5
  22923. printf %s "checking for wolfssl options with pkg-config... " >&6; }
  22924. itexists=`
  22925. if test -n "$wolfpkg"; then
  22926. PKG_CONFIG_LIBDIR="$wolfpkg"
  22927. export PKG_CONFIG_LIBDIR
  22928. fi
  22929. $PKGCONFIG --exists wolfssl >/dev/null 2>&1 && echo 1`
  22930. if test -z "$itexists"; then
  22931. PKGCONFIG="no"
  22932. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  22933. printf "%s\n" "no" >&6; }
  22934. else
  22935. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: found" >&5
  22936. printf "%s\n" "found" >&6; }
  22937. fi
  22938. fi
  22939. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: Check dir $wolfpkg" >&5
  22940. printf "%s\n" "$as_me: Check dir $wolfpkg" >&6;}
  22941. addld=""
  22942. addlib=""
  22943. addcflags=""
  22944. if test "$PKGCONFIG" != "no" ; then
  22945. addlib=`
  22946. if test -n "$wolfpkg"; then
  22947. PKG_CONFIG_LIBDIR="$wolfpkg"
  22948. export PKG_CONFIG_LIBDIR
  22949. fi
  22950. $PKGCONFIG --libs-only-l wolfssl`
  22951. addld=`
  22952. if test -n "$wolfpkg"; then
  22953. PKG_CONFIG_LIBDIR="$wolfpkg"
  22954. export PKG_CONFIG_LIBDIR
  22955. fi
  22956. $PKGCONFIG --libs-only-L wolfssl`
  22957. addcflags=`
  22958. if test -n "$wolfpkg"; then
  22959. PKG_CONFIG_LIBDIR="$wolfpkg"
  22960. export PKG_CONFIG_LIBDIR
  22961. fi
  22962. $PKGCONFIG --cflags-only-I wolfssl`
  22963. version=`
  22964. if test -n "$wolfpkg"; then
  22965. PKG_CONFIG_LIBDIR="$wolfpkg"
  22966. export PKG_CONFIG_LIBDIR
  22967. fi
  22968. $PKGCONFIG --modversion wolfssl`
  22969. wolfssllibpath=`echo $addld | $SED -e 's/^-L//'`
  22970. else
  22971. addlib=-lwolfssl
  22972. if test -n "$OPT_WOLFSSL"; then
  22973. addld=-L$OPT_WOLFSSL/lib$libsuff
  22974. addcflags=-I$OPT_WOLFSSL/include
  22975. wolfssllibpath=$OPT_WOLFSSL/lib$libsuff
  22976. fi
  22977. fi
  22978. if test "x$USE_WOLFSSL" != "xyes"; then
  22979. LDFLAGS="$LDFLAGS $addld"
  22980. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: Add $addld to LDFLAGS" >&5
  22981. printf "%s\n" "$as_me: Add $addld to LDFLAGS" >&6;}
  22982. if test "$addcflags" != "-I/usr/include"; then
  22983. CPPFLAGS="$CPPFLAGS $addcflags"
  22984. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: Add $addcflags to CPPFLAGS" >&5
  22985. printf "%s\n" "$as_me: Add $addcflags to CPPFLAGS" >&6;}
  22986. fi
  22987. my_ac_save_LIBS="$LIBS"
  22988. LIBS="$addlib $LIBS"
  22989. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: Add $addlib to LIBS" >&5
  22990. printf "%s\n" "$as_me: Add $addlib to LIBS" >&6;}
  22991. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for wolfSSL_Init in -lwolfssl" >&5
  22992. printf %s "checking for wolfSSL_Init in -lwolfssl... " >&6; }
  22993. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  22994. /* end confdefs.h. */
  22995. /* These aren't needed for detection and confuse WolfSSL.
  22996. They are set up properly later if it is detected. */
  22997. #undef SIZEOF_LONG
  22998. #undef SIZEOF_LONG_LONG
  22999. #include <wolfssl/ssl.h>
  23000. int main (void)
  23001. {
  23002. return wolfSSL_Init();
  23003. ;
  23004. return 0;
  23005. }
  23006. _ACEOF
  23007. if ac_fn_c_try_link "$LINENO"
  23008. then :
  23009. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  23010. printf "%s\n" "yes" >&6; }
  23011. printf "%s\n" "#define USE_WOLFSSL 1" >>confdefs.h
  23012. USE_WOLFSSL=1
  23013. WOLFSSL_ENABLED=1
  23014. USE_WOLFSSL="yes"
  23015. ssl_msg="WolfSSL"
  23016. test wolfssl != "$DEFAULT_SSL_BACKEND" || VALID_DEFAULT_SSL_BACKEND=yes
  23017. else $as_nop
  23018. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  23019. printf "%s\n" "no" >&6; }
  23020. CPPFLAGS=$_cppflags
  23021. LDFLAGS=$_ldflags
  23022. wolfssllibpath=""
  23023. fi
  23024. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  23025. conftest$ac_exeext conftest.$ac_ext
  23026. LIBS="$my_ac_save_LIBS"
  23027. fi
  23028. if test "x$USE_WOLFSSL" = "xyes"; then
  23029. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: detected wolfSSL" >&5
  23030. printf "%s\n" "$as_me: detected wolfSSL" >&6;}
  23031. check_for_ca_bundle=1
  23032. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking size of long long" >&5
  23033. printf %s "checking size of long long... " >&6; }
  23034. if test ${ac_cv_sizeof_long_long+y}
  23035. then :
  23036. printf %s "(cached) " >&6
  23037. else $as_nop
  23038. for ac_size in 4 8 1 2 16 ; do # List sizes in rough order of prevalence.
  23039. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  23040. /* end confdefs.h. */
  23041. #include <sys/types.h>
  23042. int main (void)
  23043. {
  23044. switch (0) case 0: case (sizeof (long long) == $ac_size):;
  23045. ;
  23046. return 0;
  23047. }
  23048. _ACEOF
  23049. if ac_fn_c_try_compile "$LINENO"
  23050. then :
  23051. ac_cv_sizeof_long_long=$ac_size
  23052. fi
  23053. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  23054. if test x$ac_cv_sizeof_long_long != x ; then break; fi
  23055. done
  23056. fi
  23057. if test x$ac_cv_sizeof_long_long = x ; then
  23058. as_fn_error $? "cannot determine a size for long long" "$LINENO" 5
  23059. fi
  23060. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long_long" >&5
  23061. printf "%s\n" "$ac_cv_sizeof_long_long" >&6; }
  23062. printf "%s\n" "#define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long" >>confdefs.h
  23063. LIBS="$addlib -lm $LIBS"
  23064. ac_fn_c_check_func "$LINENO" "wolfSSL_get_peer_certificate" "ac_cv_func_wolfSSL_get_peer_certificate"
  23065. if test "x$ac_cv_func_wolfSSL_get_peer_certificate" = xyes
  23066. then :
  23067. printf "%s\n" "#define HAVE_WOLFSSL_GET_PEER_CERTIFICATE 1" >>confdefs.h
  23068. fi
  23069. ac_fn_c_check_func "$LINENO" "wolfSSL_UseALPN" "ac_cv_func_wolfSSL_UseALPN"
  23070. if test "x$ac_cv_func_wolfSSL_UseALPN" = xyes
  23071. then :
  23072. printf "%s\n" "#define HAVE_WOLFSSL_USEALPN 1" >>confdefs.h
  23073. fi
  23074. ac_fn_c_check_func "$LINENO" "wolfSSL_DES_ecb_encrypt" "ac_cv_func_wolfSSL_DES_ecb_encrypt"
  23075. if test "x$ac_cv_func_wolfSSL_DES_ecb_encrypt" = xyes
  23076. then :
  23077. printf "%s\n" "#define HAVE_WOLFSSL_DES_ECB_ENCRYPT 1" >>confdefs.h
  23078. if test -n "$addcflags"; then
  23079. for f in $addcflags; do
  23080. CPPFLAGS="$f/wolfssl $CPPFLAGS"
  23081. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: Add $f/wolfssl to CPPFLAGS" >&5
  23082. printf "%s\n" "$as_me: Add $f/wolfssl to CPPFLAGS" >&6;}
  23083. break
  23084. done
  23085. else
  23086. CPPFLAGS="-I/usr/include/wolfssl $CPPFLAGS"
  23087. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: Add /usr/include/wolfssl to CPPFLAGS" >&5
  23088. printf "%s\n" "$as_me: Add /usr/include/wolfssl to CPPFLAGS" >&6;}
  23089. fi
  23090. WOLFSSL_NTLM=1
  23091. fi
  23092. if test -n "$wolfssllibpath"; then
  23093. if test "x$cross_compiling" != "xyes"; then
  23094. CURL_LIBRARY_PATH="$CURL_LIBRARY_PATH:$wolfssllibpath"
  23095. export CURL_LIBRARY_PATH
  23096. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: Added $wolfssllibpath to CURL_LIBRARY_PATH" >&5
  23097. printf "%s\n" "$as_me: Added $wolfssllibpath to CURL_LIBRARY_PATH" >&6;}
  23098. fi
  23099. fi
  23100. fi
  23101. fi
  23102. test -z "$ssl_msg" || ssl_backends="${ssl_backends:+$ssl_backends, }$ssl_msg"
  23103. fi
  23104. if test "x$OPT_MESALINK" != xno; then
  23105. _cppflags=$CPPFLAGS
  23106. _ldflags=$LDFLAGS
  23107. ssl_msg=
  23108. if test X"$OPT_MESALINK" != Xno; then
  23109. if test "$OPT_MESALINK" = "yes"; then
  23110. OPT_MESALINK=""
  23111. fi
  23112. if test -z "$OPT_MESALINK" ; then
  23113. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for mesalink_library_init in -lmesalink" >&5
  23114. printf %s "checking for mesalink_library_init in -lmesalink... " >&6; }
  23115. if test ${ac_cv_lib_mesalink_mesalink_library_init+y}
  23116. then :
  23117. printf %s "(cached) " >&6
  23118. else $as_nop
  23119. ac_check_lib_save_LIBS=$LIBS
  23120. LIBS="-lmesalink $LIBS"
  23121. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  23122. /* end confdefs.h. */
  23123. #ifdef __cplusplus
  23124. extern "C"
  23125. #endif
  23126. char mesalink_library_init ();
  23127. int main (void)
  23128. {
  23129. return mesalink_library_init ();
  23130. ;
  23131. return 0;
  23132. }
  23133. _ACEOF
  23134. if ac_fn_c_try_link "$LINENO"
  23135. then :
  23136. ac_cv_lib_mesalink_mesalink_library_init=yes
  23137. else $as_nop
  23138. ac_cv_lib_mesalink_mesalink_library_init=no
  23139. fi
  23140. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  23141. conftest$ac_exeext conftest.$ac_ext
  23142. LIBS=$ac_check_lib_save_LIBS
  23143. fi
  23144. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_mesalink_mesalink_library_init" >&5
  23145. printf "%s\n" "$ac_cv_lib_mesalink_mesalink_library_init" >&6; }
  23146. if test "x$ac_cv_lib_mesalink_mesalink_library_init" = xyes
  23147. then :
  23148. printf "%s\n" "#define USE_MESALINK 1" >>confdefs.h
  23149. USE_MESALINK=1
  23150. MESALINK_ENABLED=1
  23151. USE_MESALINK="yes"
  23152. ssl_msg="MesaLink"
  23153. test mesalink != "$DEFAULT_SSL_BACKEND" || VALID_DEFAULT_SSL_BACKEND=yes
  23154. fi
  23155. fi
  23156. addld=""
  23157. addlib=""
  23158. addcflags=""
  23159. mesalinklib=""
  23160. if test "x$USE_MESALINK" != "xyes"; then
  23161. addld=-L$OPT_MESALINK/lib$libsuff
  23162. addcflags=-I$OPT_MESALINK/include
  23163. mesalinklib=$OPT_MESALINK/lib$libsuff
  23164. LDFLAGS="$LDFLAGS $addld"
  23165. if test "$addcflags" != "-I/usr/include"; then
  23166. CPPFLAGS="$CPPFLAGS $addcflags"
  23167. fi
  23168. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for mesalink_library_init in -lmesalink" >&5
  23169. printf %s "checking for mesalink_library_init in -lmesalink... " >&6; }
  23170. if test ${ac_cv_lib_mesalink_mesalink_library_init+y}
  23171. then :
  23172. printf %s "(cached) " >&6
  23173. else $as_nop
  23174. ac_check_lib_save_LIBS=$LIBS
  23175. LIBS="-lmesalink $LIBS"
  23176. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  23177. /* end confdefs.h. */
  23178. #ifdef __cplusplus
  23179. extern "C"
  23180. #endif
  23181. char mesalink_library_init ();
  23182. int main (void)
  23183. {
  23184. return mesalink_library_init ();
  23185. ;
  23186. return 0;
  23187. }
  23188. _ACEOF
  23189. if ac_fn_c_try_link "$LINENO"
  23190. then :
  23191. ac_cv_lib_mesalink_mesalink_library_init=yes
  23192. else $as_nop
  23193. ac_cv_lib_mesalink_mesalink_library_init=no
  23194. fi
  23195. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  23196. conftest$ac_exeext conftest.$ac_ext
  23197. LIBS=$ac_check_lib_save_LIBS
  23198. fi
  23199. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_mesalink_mesalink_library_init" >&5
  23200. printf "%s\n" "$ac_cv_lib_mesalink_mesalink_library_init" >&6; }
  23201. if test "x$ac_cv_lib_mesalink_mesalink_library_init" = xyes
  23202. then :
  23203. printf "%s\n" "#define USE_MESALINK 1" >>confdefs.h
  23204. USE_MESALINK=1
  23205. MESALINK_ENABLED=1
  23206. USE_MESALINK="yes"
  23207. ssl_msg="MesaLink"
  23208. test mesalink != "$DEFAULT_SSL_BACKEND" || VALID_DEFAULT_SSL_BACKEND=yes
  23209. else $as_nop
  23210. CPPFLAGS=$_cppflags
  23211. LDFLAGS=$_ldflags
  23212. fi
  23213. fi
  23214. if test "x$USE_MESALINK" = "xyes"; then
  23215. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: detected MesaLink" >&5
  23216. printf "%s\n" "$as_me: detected MesaLink" >&6;}
  23217. LIBS="-lmesalink $LIBS"
  23218. if test -n "$mesalinklib"; then
  23219. if test "x$cross_compiling" != "xyes"; then
  23220. LD_LIBRARY_PATH="$LD_LIBRARY_PATH:$mesalinklib"
  23221. export LD_LIBRARY_PATH
  23222. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: Added $mesalinklib to LD_LIBRARY_PATH" >&5
  23223. printf "%s\n" "$as_me: Added $mesalinklib to LD_LIBRARY_PATH" >&6;}
  23224. fi
  23225. fi
  23226. fi
  23227. fi
  23228. test -z "$ssl_msg" || ssl_backends="${ssl_backends:+$ssl_backends, }$ssl_msg"
  23229. fi
  23230. if test "x$OPT_BEARSSL" != xno; then
  23231. _cppflags=$CPPFLAGS
  23232. _ldflags=$LDFLAGS
  23233. ssl_msg=
  23234. if test X"$OPT_BEARSSL" != Xno; then
  23235. if test "$OPT_BEARSSL" = "yes"; then
  23236. OPT_BEARSSL=""
  23237. fi
  23238. if test -z "$OPT_BEARSSL" ; then
  23239. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for br_ssl_client_init_full in -lbearssl" >&5
  23240. printf %s "checking for br_ssl_client_init_full in -lbearssl... " >&6; }
  23241. if test ${ac_cv_lib_bearssl_br_ssl_client_init_full+y}
  23242. then :
  23243. printf %s "(cached) " >&6
  23244. else $as_nop
  23245. ac_check_lib_save_LIBS=$LIBS
  23246. LIBS="-lbearssl -lbearssl $LIBS"
  23247. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  23248. /* end confdefs.h. */
  23249. #ifdef __cplusplus
  23250. extern "C"
  23251. #endif
  23252. char br_ssl_client_init_full ();
  23253. int main (void)
  23254. {
  23255. return br_ssl_client_init_full ();
  23256. ;
  23257. return 0;
  23258. }
  23259. _ACEOF
  23260. if ac_fn_c_try_link "$LINENO"
  23261. then :
  23262. ac_cv_lib_bearssl_br_ssl_client_init_full=yes
  23263. else $as_nop
  23264. ac_cv_lib_bearssl_br_ssl_client_init_full=no
  23265. fi
  23266. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  23267. conftest$ac_exeext conftest.$ac_ext
  23268. LIBS=$ac_check_lib_save_LIBS
  23269. fi
  23270. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bearssl_br_ssl_client_init_full" >&5
  23271. printf "%s\n" "$ac_cv_lib_bearssl_br_ssl_client_init_full" >&6; }
  23272. if test "x$ac_cv_lib_bearssl_br_ssl_client_init_full" = xyes
  23273. then :
  23274. printf "%s\n" "#define USE_BEARSSL 1" >>confdefs.h
  23275. USE_BEARSSL=1
  23276. BEARSSL_ENABLED=1
  23277. USE_BEARSSL="yes"
  23278. ssl_msg="BearSSL"
  23279. test bearssl != "$DEFAULT_SSL_BACKEND" || VALID_DEFAULT_SSL_BACKEND=yes
  23280. fi
  23281. fi
  23282. addld=""
  23283. addlib=""
  23284. addcflags=""
  23285. bearssllib=""
  23286. if test "x$USE_BEARSSL" != "xyes"; then
  23287. addld=-L$OPT_BEARSSL/lib$libsuff
  23288. addcflags=-I$OPT_BEARSSL/include
  23289. bearssllib=$OPT_BEARSSL/lib$libsuff
  23290. LDFLAGS="$LDFLAGS $addld"
  23291. if test "$addcflags" != "-I/usr/include"; then
  23292. CPPFLAGS="$CPPFLAGS $addcflags"
  23293. fi
  23294. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for br_ssl_client_init_full in -lbearssl" >&5
  23295. printf %s "checking for br_ssl_client_init_full in -lbearssl... " >&6; }
  23296. if test ${ac_cv_lib_bearssl_br_ssl_client_init_full+y}
  23297. then :
  23298. printf %s "(cached) " >&6
  23299. else $as_nop
  23300. ac_check_lib_save_LIBS=$LIBS
  23301. LIBS="-lbearssl -lbearssl $LIBS"
  23302. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  23303. /* end confdefs.h. */
  23304. #ifdef __cplusplus
  23305. extern "C"
  23306. #endif
  23307. char br_ssl_client_init_full ();
  23308. int main (void)
  23309. {
  23310. return br_ssl_client_init_full ();
  23311. ;
  23312. return 0;
  23313. }
  23314. _ACEOF
  23315. if ac_fn_c_try_link "$LINENO"
  23316. then :
  23317. ac_cv_lib_bearssl_br_ssl_client_init_full=yes
  23318. else $as_nop
  23319. ac_cv_lib_bearssl_br_ssl_client_init_full=no
  23320. fi
  23321. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  23322. conftest$ac_exeext conftest.$ac_ext
  23323. LIBS=$ac_check_lib_save_LIBS
  23324. fi
  23325. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bearssl_br_ssl_client_init_full" >&5
  23326. printf "%s\n" "$ac_cv_lib_bearssl_br_ssl_client_init_full" >&6; }
  23327. if test "x$ac_cv_lib_bearssl_br_ssl_client_init_full" = xyes
  23328. then :
  23329. printf "%s\n" "#define USE_BEARSSL 1" >>confdefs.h
  23330. USE_BEARSSL=1
  23331. BEARSSL_ENABLED=1
  23332. USE_BEARSSL="yes"
  23333. ssl_msg="BearSSL"
  23334. test bearssl != "$DEFAULT_SSL_BACKEND" || VALID_DEFAULT_SSL_BACKEND=yes
  23335. else $as_nop
  23336. CPPFLAGS=$_cppflags
  23337. LDFLAGS=$_ldflags
  23338. fi
  23339. fi
  23340. if test "x$USE_BEARSSL" = "xyes"; then
  23341. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: detected BearSSL" >&5
  23342. printf "%s\n" "$as_me: detected BearSSL" >&6;}
  23343. check_for_ca_bundle=1
  23344. LIBS="-lbearssl $LIBS"
  23345. if test -n "$bearssllib"; then
  23346. if test "x$cross_compiling" != "xyes"; then
  23347. CURL_LIBRARY_PATH="$CURL_LIBRARY_PATH:$bearssllib"
  23348. export CURL_LIBRARY_PATH
  23349. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: Added $bearssllib to CURL_LIBRARY_PATH" >&5
  23350. printf "%s\n" "$as_me: Added $bearssllib to CURL_LIBRARY_PATH" >&6;}
  23351. fi
  23352. fi
  23353. fi
  23354. fi
  23355. test -z "$ssl_msg" || ssl_backends="${ssl_backends:+$ssl_backends, }$ssl_msg"
  23356. fi
  23357. if test "x$OPT_RUSTLS" != xno; then
  23358. _cppflags=$CPPFLAGS
  23359. _ldflags=$LDFLAGS
  23360. ssl_msg=
  23361. if test X"$OPT_RUSTLS" != Xno; then
  23362. if test "$OPT_RUSTLS" = "yes"; then
  23363. OPT_RUSTLS=""
  23364. fi
  23365. if test -z "$OPT_RUSTLS" ; then
  23366. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for rustls_client_session_read in -lcrustls" >&5
  23367. printf %s "checking for rustls_client_session_read in -lcrustls... " >&6; }
  23368. if test ${ac_cv_lib_crustls_rustls_client_session_read+y}
  23369. then :
  23370. printf %s "(cached) " >&6
  23371. else $as_nop
  23372. ac_check_lib_save_LIBS=$LIBS
  23373. LIBS="-lcrustls -lpthread -ldl $LIBS"
  23374. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  23375. /* end confdefs.h. */
  23376. #ifdef __cplusplus
  23377. extern "C"
  23378. #endif
  23379. char rustls_client_session_read ();
  23380. int main (void)
  23381. {
  23382. return rustls_client_session_read ();
  23383. ;
  23384. return 0;
  23385. }
  23386. _ACEOF
  23387. if ac_fn_c_try_link "$LINENO"
  23388. then :
  23389. ac_cv_lib_crustls_rustls_client_session_read=yes
  23390. else $as_nop
  23391. ac_cv_lib_crustls_rustls_client_session_read=no
  23392. fi
  23393. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  23394. conftest$ac_exeext conftest.$ac_ext
  23395. LIBS=$ac_check_lib_save_LIBS
  23396. fi
  23397. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_crustls_rustls_client_session_read" >&5
  23398. printf "%s\n" "$ac_cv_lib_crustls_rustls_client_session_read" >&6; }
  23399. if test "x$ac_cv_lib_crustls_rustls_client_session_read" = xyes
  23400. then :
  23401. printf "%s\n" "#define USE_RUSTLS 1" >>confdefs.h
  23402. USE_RUSTLS=1
  23403. RUSTLS_ENABLED=1
  23404. USE_RUSTLS="yes"
  23405. ssl_msg="rustls"
  23406. test rustls != "$DEFAULT_SSL_BACKEND" || VALID_DEFAULT_SSL_BACKEND=yes
  23407. fi
  23408. fi
  23409. addld=""
  23410. addlib="-lpthread"
  23411. addcflags=""
  23412. bearssllib=""
  23413. if test "x$USE_RUSTLS" != "xyes"; then
  23414. addld=-L$OPT_RUSTLS/lib$libsuff
  23415. addcflags=-I$OPT_RUSTLS/include
  23416. rustlslib=$OPT_RUSTLS/lib$libsuff
  23417. LDFLAGS="$LDFLAGS $addld"
  23418. if test "$addcflags" != "-I/usr/include"; then
  23419. CPPFLAGS="$CPPFLAGS $addcflags"
  23420. fi
  23421. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for rustls_connection_read in -lcrustls" >&5
  23422. printf %s "checking for rustls_connection_read in -lcrustls... " >&6; }
  23423. if test ${ac_cv_lib_crustls_rustls_connection_read+y}
  23424. then :
  23425. printf %s "(cached) " >&6
  23426. else $as_nop
  23427. ac_check_lib_save_LIBS=$LIBS
  23428. LIBS="-lcrustls -lpthread -ldl $LIBS"
  23429. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  23430. /* end confdefs.h. */
  23431. #ifdef __cplusplus
  23432. extern "C"
  23433. #endif
  23434. char rustls_connection_read ();
  23435. int main (void)
  23436. {
  23437. return rustls_connection_read ();
  23438. ;
  23439. return 0;
  23440. }
  23441. _ACEOF
  23442. if ac_fn_c_try_link "$LINENO"
  23443. then :
  23444. ac_cv_lib_crustls_rustls_connection_read=yes
  23445. else $as_nop
  23446. ac_cv_lib_crustls_rustls_connection_read=no
  23447. fi
  23448. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  23449. conftest$ac_exeext conftest.$ac_ext
  23450. LIBS=$ac_check_lib_save_LIBS
  23451. fi
  23452. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_crustls_rustls_connection_read" >&5
  23453. printf "%s\n" "$ac_cv_lib_crustls_rustls_connection_read" >&6; }
  23454. if test "x$ac_cv_lib_crustls_rustls_connection_read" = xyes
  23455. then :
  23456. printf "%s\n" "#define USE_RUSTLS 1" >>confdefs.h
  23457. USE_RUSTLS=1
  23458. RUSTLS_ENABLED=1
  23459. USE_RUSTLS="yes"
  23460. ssl_msg="rustls"
  23461. test rustls != "$DEFAULT_SSL_BACKEND" || VALID_DEFAULT_SSL_BACKEND=yes
  23462. else $as_nop
  23463. as_fn_error $? "--with-rustls was specified but could not find rustls." "$LINENO" 5
  23464. fi
  23465. fi
  23466. if test "x$USE_RUSTLS" = "xyes"; then
  23467. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: detected rustls" >&5
  23468. printf "%s\n" "$as_me: detected rustls" >&6;}
  23469. check_for_ca_bundle=1
  23470. LIBS="-lcrustls -lpthread -ldl $LIBS"
  23471. if test -n "$rustlslib"; then
  23472. if test "x$cross_compiling" != "xyes"; then
  23473. CURL_LIBRARY_PATH="$CURL_LIBRARY_PATH:$rustlslib"
  23474. export CURL_LIBRARY_PATH
  23475. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: Added $rustlslib to CURL_LIBRARY_PATH" >&5
  23476. printf "%s\n" "$as_me: Added $rustlslib to CURL_LIBRARY_PATH" >&6;}
  23477. fi
  23478. fi
  23479. fi
  23480. fi
  23481. test -z "$ssl_msg" || ssl_backends="${ssl_backends:+$ssl_backends, }$ssl_msg"
  23482. fi
  23483. if test "x$OPT_NSS" != xno; then
  23484. ssl_msg=
  23485. if test X"$OPT_NSS" != Xno; then
  23486. addld=""
  23487. addlib=""
  23488. addcflags=""
  23489. nssprefix=""
  23490. version=""
  23491. if test "x$OPT_NSS" = "xyes"; then
  23492. if test -n "$PKG_CONFIG"; then
  23493. PKGCONFIG="$PKG_CONFIG"
  23494. else
  23495. if test -n "$ac_tool_prefix"; then
  23496. # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
  23497. set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
  23498. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  23499. printf %s "checking for $ac_word... " >&6; }
  23500. if test ${ac_cv_path_PKGCONFIG+y}
  23501. then :
  23502. printf %s "(cached) " >&6
  23503. else $as_nop
  23504. case $PKGCONFIG in
  23505. [\\/]* | ?:[\\/]*)
  23506. ac_cv_path_PKGCONFIG="$PKGCONFIG" # Let the user override the test with a path.
  23507. ;;
  23508. *)
  23509. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  23510. as_dummy="$PATH:/usr/bin:/usr/local/bin"
  23511. for as_dir in $as_dummy
  23512. do
  23513. IFS=$as_save_IFS
  23514. case $as_dir in #(((
  23515. '') as_dir=./ ;;
  23516. */) ;;
  23517. *) as_dir=$as_dir/ ;;
  23518. esac
  23519. for ac_exec_ext in '' $ac_executable_extensions; do
  23520. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  23521. ac_cv_path_PKGCONFIG="$as_dir$ac_word$ac_exec_ext"
  23522. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  23523. break 2
  23524. fi
  23525. done
  23526. done
  23527. IFS=$as_save_IFS
  23528. ;;
  23529. esac
  23530. fi
  23531. PKGCONFIG=$ac_cv_path_PKGCONFIG
  23532. if test -n "$PKGCONFIG"; then
  23533. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PKGCONFIG" >&5
  23534. printf "%s\n" "$PKGCONFIG" >&6; }
  23535. else
  23536. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  23537. printf "%s\n" "no" >&6; }
  23538. fi
  23539. fi
  23540. if test -z "$ac_cv_path_PKGCONFIG"; then
  23541. ac_pt_PKGCONFIG=$PKGCONFIG
  23542. # Extract the first word of "pkg-config", so it can be a program name with args.
  23543. set dummy pkg-config; ac_word=$2
  23544. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  23545. printf %s "checking for $ac_word... " >&6; }
  23546. if test ${ac_cv_path_ac_pt_PKGCONFIG+y}
  23547. then :
  23548. printf %s "(cached) " >&6
  23549. else $as_nop
  23550. case $ac_pt_PKGCONFIG in
  23551. [\\/]* | ?:[\\/]*)
  23552. ac_cv_path_ac_pt_PKGCONFIG="$ac_pt_PKGCONFIG" # Let the user override the test with a path.
  23553. ;;
  23554. *)
  23555. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  23556. as_dummy="$PATH:/usr/bin:/usr/local/bin"
  23557. for as_dir in $as_dummy
  23558. do
  23559. IFS=$as_save_IFS
  23560. case $as_dir in #(((
  23561. '') as_dir=./ ;;
  23562. */) ;;
  23563. *) as_dir=$as_dir/ ;;
  23564. esac
  23565. for ac_exec_ext in '' $ac_executable_extensions; do
  23566. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  23567. ac_cv_path_ac_pt_PKGCONFIG="$as_dir$ac_word$ac_exec_ext"
  23568. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  23569. break 2
  23570. fi
  23571. done
  23572. done
  23573. IFS=$as_save_IFS
  23574. ;;
  23575. esac
  23576. fi
  23577. ac_pt_PKGCONFIG=$ac_cv_path_ac_pt_PKGCONFIG
  23578. if test -n "$ac_pt_PKGCONFIG"; then
  23579. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKGCONFIG" >&5
  23580. printf "%s\n" "$ac_pt_PKGCONFIG" >&6; }
  23581. else
  23582. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  23583. printf "%s\n" "no" >&6; }
  23584. fi
  23585. if test "x$ac_pt_PKGCONFIG" = x; then
  23586. PKGCONFIG="no"
  23587. else
  23588. case $cross_compiling:$ac_tool_warned in
  23589. yes:)
  23590. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  23591. printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  23592. ac_tool_warned=yes ;;
  23593. esac
  23594. PKGCONFIG=$ac_pt_PKGCONFIG
  23595. fi
  23596. else
  23597. PKGCONFIG="$ac_cv_path_PKGCONFIG"
  23598. fi
  23599. fi
  23600. if test "x$PKGCONFIG" != "xno"; then
  23601. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for nss options with pkg-config" >&5
  23602. printf %s "checking for nss options with pkg-config... " >&6; }
  23603. itexists=`
  23604. if test -n ""; then
  23605. PKG_CONFIG_LIBDIR=""
  23606. export PKG_CONFIG_LIBDIR
  23607. fi
  23608. $PKGCONFIG --exists nss >/dev/null 2>&1 && echo 1`
  23609. if test -z "$itexists"; then
  23610. PKGCONFIG="no"
  23611. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  23612. printf "%s\n" "no" >&6; }
  23613. else
  23614. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: found" >&5
  23615. printf "%s\n" "found" >&6; }
  23616. fi
  23617. fi
  23618. if test "$PKGCONFIG" != "no" ; then
  23619. addlib=`$PKGCONFIG --libs nss`
  23620. addcflags=`$PKGCONFIG --cflags nss`
  23621. version=`$PKGCONFIG --modversion nss`
  23622. nssprefix=`$PKGCONFIG --variable=prefix nss`
  23623. else
  23624. check=`nss-config --version 2>/dev/null`
  23625. if test -n "$check"; then
  23626. addlib=`nss-config --libs`
  23627. addcflags=`nss-config --cflags`
  23628. version=`nss-config --version`
  23629. nssprefix=`nss-config --prefix`
  23630. else
  23631. addlib="-lnss3"
  23632. addcflags=""
  23633. version="unknown"
  23634. fi
  23635. fi
  23636. else
  23637. NSS_PCDIR="$OPT_NSS/lib/pkgconfig"
  23638. if test -f "$NSS_PCDIR/nss.pc"; then
  23639. if test -n "$PKG_CONFIG"; then
  23640. PKGCONFIG="$PKG_CONFIG"
  23641. else
  23642. if test -n "$ac_tool_prefix"; then
  23643. # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
  23644. set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
  23645. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  23646. printf %s "checking for $ac_word... " >&6; }
  23647. if test ${ac_cv_path_PKGCONFIG+y}
  23648. then :
  23649. printf %s "(cached) " >&6
  23650. else $as_nop
  23651. case $PKGCONFIG in
  23652. [\\/]* | ?:[\\/]*)
  23653. ac_cv_path_PKGCONFIG="$PKGCONFIG" # Let the user override the test with a path.
  23654. ;;
  23655. *)
  23656. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  23657. as_dummy="$PATH:/usr/bin:/usr/local/bin"
  23658. for as_dir in $as_dummy
  23659. do
  23660. IFS=$as_save_IFS
  23661. case $as_dir in #(((
  23662. '') as_dir=./ ;;
  23663. */) ;;
  23664. *) as_dir=$as_dir/ ;;
  23665. esac
  23666. for ac_exec_ext in '' $ac_executable_extensions; do
  23667. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  23668. ac_cv_path_PKGCONFIG="$as_dir$ac_word$ac_exec_ext"
  23669. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  23670. break 2
  23671. fi
  23672. done
  23673. done
  23674. IFS=$as_save_IFS
  23675. ;;
  23676. esac
  23677. fi
  23678. PKGCONFIG=$ac_cv_path_PKGCONFIG
  23679. if test -n "$PKGCONFIG"; then
  23680. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PKGCONFIG" >&5
  23681. printf "%s\n" "$PKGCONFIG" >&6; }
  23682. else
  23683. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  23684. printf "%s\n" "no" >&6; }
  23685. fi
  23686. fi
  23687. if test -z "$ac_cv_path_PKGCONFIG"; then
  23688. ac_pt_PKGCONFIG=$PKGCONFIG
  23689. # Extract the first word of "pkg-config", so it can be a program name with args.
  23690. set dummy pkg-config; ac_word=$2
  23691. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  23692. printf %s "checking for $ac_word... " >&6; }
  23693. if test ${ac_cv_path_ac_pt_PKGCONFIG+y}
  23694. then :
  23695. printf %s "(cached) " >&6
  23696. else $as_nop
  23697. case $ac_pt_PKGCONFIG in
  23698. [\\/]* | ?:[\\/]*)
  23699. ac_cv_path_ac_pt_PKGCONFIG="$ac_pt_PKGCONFIG" # Let the user override the test with a path.
  23700. ;;
  23701. *)
  23702. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  23703. as_dummy="$PATH:/usr/bin:/usr/local/bin"
  23704. for as_dir in $as_dummy
  23705. do
  23706. IFS=$as_save_IFS
  23707. case $as_dir in #(((
  23708. '') as_dir=./ ;;
  23709. */) ;;
  23710. *) as_dir=$as_dir/ ;;
  23711. esac
  23712. for ac_exec_ext in '' $ac_executable_extensions; do
  23713. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  23714. ac_cv_path_ac_pt_PKGCONFIG="$as_dir$ac_word$ac_exec_ext"
  23715. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  23716. break 2
  23717. fi
  23718. done
  23719. done
  23720. IFS=$as_save_IFS
  23721. ;;
  23722. esac
  23723. fi
  23724. ac_pt_PKGCONFIG=$ac_cv_path_ac_pt_PKGCONFIG
  23725. if test -n "$ac_pt_PKGCONFIG"; then
  23726. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKGCONFIG" >&5
  23727. printf "%s\n" "$ac_pt_PKGCONFIG" >&6; }
  23728. else
  23729. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  23730. printf "%s\n" "no" >&6; }
  23731. fi
  23732. if test "x$ac_pt_PKGCONFIG" = x; then
  23733. PKGCONFIG="no"
  23734. else
  23735. case $cross_compiling:$ac_tool_warned in
  23736. yes:)
  23737. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  23738. printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  23739. ac_tool_warned=yes ;;
  23740. esac
  23741. PKGCONFIG=$ac_pt_PKGCONFIG
  23742. fi
  23743. else
  23744. PKGCONFIG="$ac_cv_path_PKGCONFIG"
  23745. fi
  23746. fi
  23747. if test "x$PKGCONFIG" != "xno"; then
  23748. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for nss options with pkg-config" >&5
  23749. printf %s "checking for nss options with pkg-config... " >&6; }
  23750. itexists=`
  23751. if test -n "$NSS_PCDIR"; then
  23752. PKG_CONFIG_LIBDIR="$NSS_PCDIR"
  23753. export PKG_CONFIG_LIBDIR
  23754. fi
  23755. $PKGCONFIG --exists nss >/dev/null 2>&1 && echo 1`
  23756. if test -z "$itexists"; then
  23757. PKGCONFIG="no"
  23758. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  23759. printf "%s\n" "no" >&6; }
  23760. else
  23761. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: found" >&5
  23762. printf "%s\n" "found" >&6; }
  23763. fi
  23764. fi
  23765. if test "$PKGCONFIG" != "no" ; then
  23766. addld=`
  23767. if test -n "$NSS_PCDIR"; then
  23768. PKG_CONFIG_LIBDIR="$NSS_PCDIR"
  23769. export PKG_CONFIG_LIBDIR
  23770. fi
  23771. $PKGCONFIG --libs-only-L nss`
  23772. addlib=`
  23773. if test -n "$NSS_PCDIR"; then
  23774. PKG_CONFIG_LIBDIR="$NSS_PCDIR"
  23775. export PKG_CONFIG_LIBDIR
  23776. fi
  23777. $PKGCONFIG --libs-only-l nss`
  23778. addcflags=`
  23779. if test -n "$NSS_PCDIR"; then
  23780. PKG_CONFIG_LIBDIR="$NSS_PCDIR"
  23781. export PKG_CONFIG_LIBDIR
  23782. fi
  23783. $PKGCONFIG --cflags nss`
  23784. version=`
  23785. if test -n "$NSS_PCDIR"; then
  23786. PKG_CONFIG_LIBDIR="$NSS_PCDIR"
  23787. export PKG_CONFIG_LIBDIR
  23788. fi
  23789. $PKGCONFIG --modversion nss`
  23790. nssprefix=`
  23791. if test -n "$NSS_PCDIR"; then
  23792. PKG_CONFIG_LIBDIR="$NSS_PCDIR"
  23793. export PKG_CONFIG_LIBDIR
  23794. fi
  23795. $PKGCONFIG --variable=prefix nss`
  23796. fi
  23797. fi
  23798. fi
  23799. if test -z "$addlib"; then
  23800. # Without pkg-config, we'll kludge in some defaults
  23801. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: Using hard-wired libraries and compilation flags for NSS." >&5
  23802. printf "%s\n" "$as_me: WARNING: Using hard-wired libraries and compilation flags for NSS." >&2;}
  23803. addld="-L$OPT_NSS/lib"
  23804. addlib="-lssl3 -lsmime3 -lnss3 -lplds4 -lplc4 -lnspr4"
  23805. addcflags="-I$OPT_NSS/include"
  23806. version="unknown"
  23807. nssprefix=$OPT_NSS
  23808. fi
  23809. CLEANLDFLAGS="$LDFLAGS"
  23810. CLEANLIBS="$LIBS"
  23811. CLEANCPPFLAGS="$CPPFLAGS"
  23812. LDFLAGS="$addld $LDFLAGS"
  23813. LIBS="$addlib $LIBS"
  23814. if test "$addcflags" != "-I/usr/include"; then
  23815. CPPFLAGS="$CPPFLAGS $addcflags"
  23816. fi
  23817. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for SSL_VersionRangeSet in -lnss3" >&5
  23818. printf %s "checking for SSL_VersionRangeSet in -lnss3... " >&6; }
  23819. if test ${ac_cv_lib_nss3_SSL_VersionRangeSet+y}
  23820. then :
  23821. printf %s "(cached) " >&6
  23822. else $as_nop
  23823. ac_check_lib_save_LIBS=$LIBS
  23824. LIBS="-lnss3 $LIBS"
  23825. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  23826. /* end confdefs.h. */
  23827. #ifdef __cplusplus
  23828. extern "C"
  23829. #endif
  23830. char SSL_VersionRangeSet ();
  23831. int main (void)
  23832. {
  23833. return SSL_VersionRangeSet ();
  23834. ;
  23835. return 0;
  23836. }
  23837. _ACEOF
  23838. if ac_fn_c_try_link "$LINENO"
  23839. then :
  23840. ac_cv_lib_nss3_SSL_VersionRangeSet=yes
  23841. else $as_nop
  23842. ac_cv_lib_nss3_SSL_VersionRangeSet=no
  23843. fi
  23844. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  23845. conftest$ac_exeext conftest.$ac_ext
  23846. LIBS=$ac_check_lib_save_LIBS
  23847. fi
  23848. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nss3_SSL_VersionRangeSet" >&5
  23849. printf "%s\n" "$ac_cv_lib_nss3_SSL_VersionRangeSet" >&6; }
  23850. if test "x$ac_cv_lib_nss3_SSL_VersionRangeSet" = xyes
  23851. then :
  23852. printf "%s\n" "#define USE_NSS 1" >>confdefs.h
  23853. USE_NSS=1
  23854. USE_NSS="yes"
  23855. NSS_ENABLED=1
  23856. ssl_msg="NSS"
  23857. test nss != "$DEFAULT_SSL_BACKEND" || VALID_DEFAULT_SSL_BACKEND=yes
  23858. else $as_nop
  23859. LDFLAGS="$CLEANLDFLAGS"
  23860. LIBS="$CLEANLIBS"
  23861. CPPFLAGS="$CLEANCPPFLAGS"
  23862. fi
  23863. if test "x$USE_NSS" = "xyes"; then
  23864. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: detected NSS version $version" >&5
  23865. printf "%s\n" "$as_me: detected NSS version $version" >&6;}
  23866. ac_fn_c_check_func "$LINENO" "PK11_CreateManagedGenericObject" "ac_cv_func_PK11_CreateManagedGenericObject"
  23867. if test "x$ac_cv_func_PK11_CreateManagedGenericObject" = xyes
  23868. then :
  23869. printf "%s\n" "#define HAVE_PK11_CREATEMANAGEDGENERICOBJECT 1" >>confdefs.h
  23870. fi
  23871. NSS_LIBS=$addlib
  23872. if test "x$cross_compiling" != "xyes"; then
  23873. CURL_LIBRARY_PATH="$CURL_LIBRARY_PATH:$nssprefix/lib$libsuff"
  23874. export CURL_LIBRARY_PATH
  23875. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: Added $nssprefix/lib$libsuff to CURL_LIBRARY_PATH" >&5
  23876. printf "%s\n" "$as_me: Added $nssprefix/lib$libsuff to CURL_LIBRARY_PATH" >&6;}
  23877. fi
  23878. fi
  23879. fi
  23880. test -z "$ssl_msg" || ssl_backends="${ssl_backends:+$ssl_backends, }$ssl_msg"
  23881. fi
  23882. if test "x$USE_WIN32_CRYPTO" = "x1" -o "x$USE_SCHANNEL" = "x1"; then
  23883. LIBS="-ladvapi32 -lcrypt32 $LIBS"
  23884. fi
  23885. case "x$OPENSSL_ENABLED$GNUTLS_ENABLED$NSS_ENABLED$MBEDTLS_ENABLED$WOLFSSL_ENABLED$SCHANNEL_ENABLED$SECURETRANSPORT_ENABLED$MESALINK_ENABLED$BEARSSL_ENABLED$AMISSL_ENABLED$RUSTLS_ENABLED"
  23886. in
  23887. x)
  23888. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: SSL disabled, you will not be able to use HTTPS, FTPS, NTLM and more." >&5
  23889. printf "%s\n" "$as_me: WARNING: SSL disabled, you will not be able to use HTTPS, FTPS, NTLM and more." >&2;}
  23890. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: Use --with-openssl, --with-gnutls, --with-wolfssl, --with-mbedtls, --with-nss, --with-schannel, --with-secure-transport, --with-mesalink, --with-amissl, --with-bearssl or --with-rustls to address this." >&5
  23891. printf "%s\n" "$as_me: WARNING: Use --with-openssl, --with-gnutls, --with-wolfssl, --with-mbedtls, --with-nss, --with-schannel, --with-secure-transport, --with-mesalink, --with-amissl, --with-bearssl or --with-rustls to address this." >&2;}
  23892. ;;
  23893. x1)
  23894. # one SSL backend is enabled
  23895. SSL_ENABLED="1"
  23896. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: built with one SSL backend" >&5
  23897. printf "%s\n" "$as_me: built with one SSL backend" >&6;}
  23898. ;;
  23899. *)
  23900. # more than one SSL backend is enabled
  23901. SSL_ENABLED="1"
  23902. CURL_WITH_MULTI_SSL="1"
  23903. printf "%s\n" "#define CURL_WITH_MULTI_SSL 1" >>confdefs.h
  23904. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: built with multiple SSL backends" >&5
  23905. printf "%s\n" "$as_me: built with multiple SSL backends" >&6;}
  23906. ;;
  23907. esac
  23908. if test -n "$ssl_backends"; then
  23909. curl_ssl_msg="enabled ($ssl_backends)"
  23910. fi
  23911. if test no = "$VALID_DEFAULT_SSL_BACKEND"
  23912. then
  23913. if test -n "$SSL_ENABLED"
  23914. then
  23915. as_fn_error $? "Default SSL backend $DEFAULT_SSL_BACKEND not enabled!" "$LINENO" 5
  23916. else
  23917. as_fn_error $? "Default SSL backend requires SSL!" "$LINENO" 5
  23918. fi
  23919. elif test yes = "$VALID_DEFAULT_SSL_BACKEND"
  23920. then
  23921. printf "%s\n" "#define CURL_DEFAULT_SSL_BACKEND \"$DEFAULT_SSL_BACKEND\"" >>confdefs.h
  23922. fi
  23923. if test -n "$check_for_ca_bundle"; then
  23924. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking default CA cert bundle/path" >&5
  23925. printf %s "checking default CA cert bundle/path... " >&6; }
  23926. # Check whether --with-ca-bundle was given.
  23927. if test ${with_ca_bundle+y}
  23928. then :
  23929. withval=$with_ca_bundle;
  23930. want_ca="$withval"
  23931. if test "x$want_ca" = "xyes"; then
  23932. as_fn_error $? "--with-ca-bundle=FILE requires a path to the CA bundle" "$LINENO" 5
  23933. fi
  23934. else $as_nop
  23935. want_ca="unset"
  23936. fi
  23937. # Check whether --with-ca-path was given.
  23938. if test ${with_ca_path+y}
  23939. then :
  23940. withval=$with_ca_path;
  23941. want_capath="$withval"
  23942. if test "x$want_capath" = "xyes"; then
  23943. as_fn_error $? "--with-ca-path=DIRECTORY requires a path to the CA path directory" "$LINENO" 5
  23944. fi
  23945. else $as_nop
  23946. want_capath="unset"
  23947. fi
  23948. ca_warning=" (warning: certs not found)"
  23949. capath_warning=" (warning: certs not found)"
  23950. check_capath=""
  23951. if test "x$want_ca" != "xno" -a "x$want_ca" != "xunset" -a \
  23952. "x$want_capath" != "xno" -a "x$want_capath" != "xunset"; then
  23953. ca="$want_ca"
  23954. capath="$want_capath"
  23955. elif test "x$want_ca" != "xno" -a "x$want_ca" != "xunset"; then
  23956. ca="$want_ca"
  23957. capath="no"
  23958. elif test "x$want_capath" != "xno" -a "x$want_capath" != "xunset"; then
  23959. if test "x$OPENSSL_ENABLED" != "x1" -a "x$GNUTLS_ENABLED" != "x1" -a "x$MBEDTLS_ENABLED" != "x1"; then
  23960. as_fn_error $? "--with-ca-path only works with OpenSSL, GnuTLS or mbedTLS" "$LINENO" 5
  23961. fi
  23962. capath="$want_capath"
  23963. ca="no"
  23964. else
  23965. ca="no"
  23966. capath="no"
  23967. if test "x$cross_compiling" != "xyes"; then
  23968. if test "x$want_ca" = "xunset"; then
  23969. if test "x$prefix" != xNONE; then
  23970. cac="${prefix}/share/curl/curl-ca-bundle.crt"
  23971. else
  23972. cac="$ac_default_prefix/share/curl/curl-ca-bundle.crt"
  23973. fi
  23974. for a in /etc/ssl/certs/ca-certificates.crt \
  23975. /etc/pki/tls/certs/ca-bundle.crt \
  23976. /usr/share/ssl/certs/ca-bundle.crt \
  23977. /usr/local/share/certs/ca-root-nss.crt \
  23978. /etc/ssl/cert.pem \
  23979. "$cac"; do
  23980. if test -f "$a"; then
  23981. ca="$a"
  23982. break
  23983. fi
  23984. done
  23985. fi
  23986. if test "x$want_capath" = "xunset" -a "x$ca" = "xno" -a \
  23987. "x$OPENSSL_ENABLED" = "x1"; then
  23988. check_capath="/etc/ssl/certs/"
  23989. fi
  23990. else
  23991. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: skipped the ca-cert path detection when cross-compiling" >&5
  23992. printf "%s\n" "$as_me: WARNING: skipped the ca-cert path detection when cross-compiling" >&2;}
  23993. fi
  23994. fi
  23995. if test "x$ca" = "xno" || test -f "$ca"; then
  23996. ca_warning=""
  23997. fi
  23998. if test "x$capath" != "xno"; then
  23999. check_capath="$capath"
  24000. fi
  24001. if test ! -z "$check_capath"; then
  24002. for a in "$check_capath"; do
  24003. if test -d "$a" && ls "$a"/[0-9a-f][0-9a-f][0-9a-f][0-9a-f][0-9a-f][0-9a-f][0-9a-f][0-9a-f].0 >/dev/null 2>/dev/null; then
  24004. if test "x$capath" = "xno"; then
  24005. capath="$a"
  24006. fi
  24007. capath_warning=""
  24008. break
  24009. fi
  24010. done
  24011. fi
  24012. if test "x$capath" = "xno"; then
  24013. capath_warning=""
  24014. fi
  24015. if test "x$ca" != "xno"; then
  24016. CURL_CA_BUNDLE='"'$ca'"'
  24017. printf "%s\n" "#define CURL_CA_BUNDLE \"$ca\"" >>confdefs.h
  24018. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ca" >&5
  24019. printf "%s\n" "$ca" >&6; }
  24020. fi
  24021. if test "x$capath" != "xno"; then
  24022. CURL_CA_PATH="\"$capath\""
  24023. printf "%s\n" "#define CURL_CA_PATH \"$capath\"" >>confdefs.h
  24024. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $capath (capath)" >&5
  24025. printf "%s\n" "$capath (capath)" >&6; }
  24026. fi
  24027. if test "x$ca" = "xno" && test "x$capath" = "xno"; then
  24028. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  24029. printf "%s\n" "no" >&6; }
  24030. fi
  24031. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to use builtin CA store of SSL library" >&5
  24032. printf %s "checking whether to use builtin CA store of SSL library... " >&6; }
  24033. # Check whether --with-ca-fallback was given.
  24034. if test ${with_ca_fallback+y}
  24035. then :
  24036. withval=$with_ca_fallback;
  24037. if test "x$with_ca_fallback" != "xyes" -a "x$with_ca_fallback" != "xno"; then
  24038. as_fn_error $? "--with-ca-fallback only allows yes or no as parameter" "$LINENO" 5
  24039. fi
  24040. else $as_nop
  24041. with_ca_fallback="no"
  24042. fi
  24043. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $with_ca_fallback" >&5
  24044. printf "%s\n" "$with_ca_fallback" >&6; }
  24045. if test "x$with_ca_fallback" = "xyes"; then
  24046. if test "x$OPENSSL_ENABLED" != "x1" -a "x$GNUTLS_ENABLED" != "x1"; then
  24047. as_fn_error $? "--with-ca-fallback only works with OpenSSL or GnuTLS" "$LINENO" 5
  24048. fi
  24049. printf "%s\n" "#define CURL_CA_FALLBACK 1" >>confdefs.h
  24050. fi
  24051. fi
  24052. # Check whether --with-libpsl was given.
  24053. if test ${with_libpsl+y}
  24054. then :
  24055. withval=$with_libpsl; with_libpsl=$withval
  24056. else $as_nop
  24057. with_libpsl=yes
  24058. fi
  24059. if test $with_libpsl != "no"; then
  24060. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for library containing psl_builtin" >&5
  24061. printf %s "checking for library containing psl_builtin... " >&6; }
  24062. if test ${ac_cv_search_psl_builtin+y}
  24063. then :
  24064. printf %s "(cached) " >&6
  24065. else $as_nop
  24066. ac_func_search_save_LIBS=$LIBS
  24067. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  24068. /* end confdefs.h. */
  24069. #ifdef __cplusplus
  24070. extern "C"
  24071. #endif
  24072. char psl_builtin ();
  24073. int main (void)
  24074. {
  24075. return psl_builtin ();
  24076. ;
  24077. return 0;
  24078. }
  24079. _ACEOF
  24080. for ac_lib in '' psl
  24081. do
  24082. if test -z "$ac_lib"; then
  24083. ac_res="none required"
  24084. else
  24085. ac_res=-l$ac_lib
  24086. LIBS="-l$ac_lib $ac_func_search_save_LIBS"
  24087. fi
  24088. if ac_fn_c_try_link "$LINENO"
  24089. then :
  24090. ac_cv_search_psl_builtin=$ac_res
  24091. fi
  24092. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  24093. conftest$ac_exeext
  24094. if test ${ac_cv_search_psl_builtin+y}
  24095. then :
  24096. break
  24097. fi
  24098. done
  24099. if test ${ac_cv_search_psl_builtin+y}
  24100. then :
  24101. else $as_nop
  24102. ac_cv_search_psl_builtin=no
  24103. fi
  24104. rm conftest.$ac_ext
  24105. LIBS=$ac_func_search_save_LIBS
  24106. fi
  24107. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_psl_builtin" >&5
  24108. printf "%s\n" "$ac_cv_search_psl_builtin" >&6; }
  24109. ac_res=$ac_cv_search_psl_builtin
  24110. if test "$ac_res" != no
  24111. then :
  24112. test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
  24113. curl_psl_msg="enabled";
  24114. printf "%s\n" "#define USE_LIBPSL 1" >>confdefs.h
  24115. else $as_nop
  24116. curl_psl_msg="no (libpsl not found)";
  24117. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: libpsl was not found" >&5
  24118. printf "%s\n" "$as_me: WARNING: libpsl was not found" >&2;}
  24119. fi
  24120. fi
  24121. if test "$curl_psl_msg" = "enabled"; then
  24122. USE_LIBPSL_TRUE=
  24123. USE_LIBPSL_FALSE='#'
  24124. else
  24125. USE_LIBPSL_TRUE='#'
  24126. USE_LIBPSL_FALSE=
  24127. fi
  24128. # Check whether --with-libgsasl was given.
  24129. if test ${with_libgsasl+y}
  24130. then :
  24131. withval=$with_libgsasl; with_libgsasl=$withval
  24132. else $as_nop
  24133. with_libgsasl=yes
  24134. fi
  24135. if test $with_libgsasl != "no"; then
  24136. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for library containing gsasl_init" >&5
  24137. printf %s "checking for library containing gsasl_init... " >&6; }
  24138. if test ${ac_cv_search_gsasl_init+y}
  24139. then :
  24140. printf %s "(cached) " >&6
  24141. else $as_nop
  24142. ac_func_search_save_LIBS=$LIBS
  24143. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  24144. /* end confdefs.h. */
  24145. #ifdef __cplusplus
  24146. extern "C"
  24147. #endif
  24148. char gsasl_init ();
  24149. int main (void)
  24150. {
  24151. return gsasl_init ();
  24152. ;
  24153. return 0;
  24154. }
  24155. _ACEOF
  24156. for ac_lib in '' gsasl
  24157. do
  24158. if test -z "$ac_lib"; then
  24159. ac_res="none required"
  24160. else
  24161. ac_res=-l$ac_lib
  24162. LIBS="-l$ac_lib $ac_func_search_save_LIBS"
  24163. fi
  24164. if ac_fn_c_try_link "$LINENO"
  24165. then :
  24166. ac_cv_search_gsasl_init=$ac_res
  24167. fi
  24168. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  24169. conftest$ac_exeext
  24170. if test ${ac_cv_search_gsasl_init+y}
  24171. then :
  24172. break
  24173. fi
  24174. done
  24175. if test ${ac_cv_search_gsasl_init+y}
  24176. then :
  24177. else $as_nop
  24178. ac_cv_search_gsasl_init=no
  24179. fi
  24180. rm conftest.$ac_ext
  24181. LIBS=$ac_func_search_save_LIBS
  24182. fi
  24183. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_gsasl_init" >&5
  24184. printf "%s\n" "$ac_cv_search_gsasl_init" >&6; }
  24185. ac_res=$ac_cv_search_gsasl_init
  24186. if test "$ac_res" != no
  24187. then :
  24188. test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
  24189. curl_gsasl_msg="enabled";
  24190. printf "%s\n" "#define USE_GSASL 1" >>confdefs.h
  24191. else $as_nop
  24192. curl_gsasl_msg="no (libgsasl not found)";
  24193. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: libgsasl was not found" >&5
  24194. printf "%s\n" "$as_me: WARNING: libgsasl was not found" >&2;}
  24195. fi
  24196. fi
  24197. if test "$curl_gsasl_msg" = "enabled"; then
  24198. USE_GSASL_TRUE=
  24199. USE_GSASL_FALSE='#'
  24200. else
  24201. USE_GSASL_TRUE='#'
  24202. USE_GSASL_FALSE=
  24203. fi
  24204. # Check whether --with-libmetalink was given.
  24205. if test ${with_libmetalink+y}
  24206. then :
  24207. withval=$with_libmetalink; as_fn_error $? "--with-libmetalink no longer works!" "$LINENO" 5
  24208. fi
  24209. OPT_LIBSSH2=off
  24210. # Check whether --with-libssh2 was given.
  24211. if test ${with_libssh2+y}
  24212. then :
  24213. withval=$with_libssh2; OPT_LIBSSH2=$withval
  24214. else $as_nop
  24215. OPT_LIBSSH2=no
  24216. fi
  24217. OPT_LIBSSH=off
  24218. # Check whether --with-libssh was given.
  24219. if test ${with_libssh+y}
  24220. then :
  24221. withval=$with_libssh; OPT_LIBSSH=$withval
  24222. else $as_nop
  24223. OPT_LIBSSH=no
  24224. fi
  24225. OPT_WOLFSSH=off
  24226. # Check whether --with-wolfssh was given.
  24227. if test ${with_wolfssh+y}
  24228. then :
  24229. withval=$with_wolfssh; OPT_WOLFSSH=$withval
  24230. else $as_nop
  24231. OPT_WOLFSSH=no
  24232. fi
  24233. if test X"$OPT_LIBSSH2" != Xno; then
  24234. CLEANLDFLAGS="$LDFLAGS"
  24235. CLEANCPPFLAGS="$CPPFLAGS"
  24236. CLEANLIBS="$LIBS"
  24237. case "$OPT_LIBSSH2" in
  24238. yes)
  24239. if test -n "$PKG_CONFIG"; then
  24240. PKGCONFIG="$PKG_CONFIG"
  24241. else
  24242. if test -n "$ac_tool_prefix"; then
  24243. # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
  24244. set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
  24245. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  24246. printf %s "checking for $ac_word... " >&6; }
  24247. if test ${ac_cv_path_PKGCONFIG+y}
  24248. then :
  24249. printf %s "(cached) " >&6
  24250. else $as_nop
  24251. case $PKGCONFIG in
  24252. [\\/]* | ?:[\\/]*)
  24253. ac_cv_path_PKGCONFIG="$PKGCONFIG" # Let the user override the test with a path.
  24254. ;;
  24255. *)
  24256. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  24257. as_dummy="$PATH:/usr/bin:/usr/local/bin"
  24258. for as_dir in $as_dummy
  24259. do
  24260. IFS=$as_save_IFS
  24261. case $as_dir in #(((
  24262. '') as_dir=./ ;;
  24263. */) ;;
  24264. *) as_dir=$as_dir/ ;;
  24265. esac
  24266. for ac_exec_ext in '' $ac_executable_extensions; do
  24267. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  24268. ac_cv_path_PKGCONFIG="$as_dir$ac_word$ac_exec_ext"
  24269. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  24270. break 2
  24271. fi
  24272. done
  24273. done
  24274. IFS=$as_save_IFS
  24275. ;;
  24276. esac
  24277. fi
  24278. PKGCONFIG=$ac_cv_path_PKGCONFIG
  24279. if test -n "$PKGCONFIG"; then
  24280. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PKGCONFIG" >&5
  24281. printf "%s\n" "$PKGCONFIG" >&6; }
  24282. else
  24283. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  24284. printf "%s\n" "no" >&6; }
  24285. fi
  24286. fi
  24287. if test -z "$ac_cv_path_PKGCONFIG"; then
  24288. ac_pt_PKGCONFIG=$PKGCONFIG
  24289. # Extract the first word of "pkg-config", so it can be a program name with args.
  24290. set dummy pkg-config; ac_word=$2
  24291. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  24292. printf %s "checking for $ac_word... " >&6; }
  24293. if test ${ac_cv_path_ac_pt_PKGCONFIG+y}
  24294. then :
  24295. printf %s "(cached) " >&6
  24296. else $as_nop
  24297. case $ac_pt_PKGCONFIG in
  24298. [\\/]* | ?:[\\/]*)
  24299. ac_cv_path_ac_pt_PKGCONFIG="$ac_pt_PKGCONFIG" # Let the user override the test with a path.
  24300. ;;
  24301. *)
  24302. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  24303. as_dummy="$PATH:/usr/bin:/usr/local/bin"
  24304. for as_dir in $as_dummy
  24305. do
  24306. IFS=$as_save_IFS
  24307. case $as_dir in #(((
  24308. '') as_dir=./ ;;
  24309. */) ;;
  24310. *) as_dir=$as_dir/ ;;
  24311. esac
  24312. for ac_exec_ext in '' $ac_executable_extensions; do
  24313. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  24314. ac_cv_path_ac_pt_PKGCONFIG="$as_dir$ac_word$ac_exec_ext"
  24315. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  24316. break 2
  24317. fi
  24318. done
  24319. done
  24320. IFS=$as_save_IFS
  24321. ;;
  24322. esac
  24323. fi
  24324. ac_pt_PKGCONFIG=$ac_cv_path_ac_pt_PKGCONFIG
  24325. if test -n "$ac_pt_PKGCONFIG"; then
  24326. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKGCONFIG" >&5
  24327. printf "%s\n" "$ac_pt_PKGCONFIG" >&6; }
  24328. else
  24329. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  24330. printf "%s\n" "no" >&6; }
  24331. fi
  24332. if test "x$ac_pt_PKGCONFIG" = x; then
  24333. PKGCONFIG="no"
  24334. else
  24335. case $cross_compiling:$ac_tool_warned in
  24336. yes:)
  24337. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  24338. printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  24339. ac_tool_warned=yes ;;
  24340. esac
  24341. PKGCONFIG=$ac_pt_PKGCONFIG
  24342. fi
  24343. else
  24344. PKGCONFIG="$ac_cv_path_PKGCONFIG"
  24345. fi
  24346. fi
  24347. if test "x$PKGCONFIG" != "xno"; then
  24348. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libssh2 options with pkg-config" >&5
  24349. printf %s "checking for libssh2 options with pkg-config... " >&6; }
  24350. itexists=`
  24351. if test -n ""; then
  24352. PKG_CONFIG_LIBDIR=""
  24353. export PKG_CONFIG_LIBDIR
  24354. fi
  24355. $PKGCONFIG --exists libssh2 >/dev/null 2>&1 && echo 1`
  24356. if test -z "$itexists"; then
  24357. PKGCONFIG="no"
  24358. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  24359. printf "%s\n" "no" >&6; }
  24360. else
  24361. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: found" >&5
  24362. printf "%s\n" "found" >&6; }
  24363. fi
  24364. fi
  24365. if test "$PKGCONFIG" != "no" ; then
  24366. LIB_SSH2=`$PKGCONFIG --libs libssh2`
  24367. LD_SSH2=`$PKGCONFIG --libs-only-L libssh2`
  24368. CPP_SSH2=`$PKGCONFIG --cflags-only-I libssh2`
  24369. version=`$PKGCONFIG --modversion libssh2`
  24370. DIR_SSH2=`echo $LD_SSH2 | $SED -e 's/^-L//'`
  24371. fi
  24372. ;;
  24373. off)
  24374. ;;
  24375. *)
  24376. PREFIX_SSH2=$OPT_LIBSSH2
  24377. ;;
  24378. esac
  24379. if test -n "$PREFIX_SSH2"; then
  24380. LIB_SSH2="-lssh2"
  24381. LD_SSH2=-L${PREFIX_SSH2}/lib$libsuff
  24382. CPP_SSH2=-I${PREFIX_SSH2}/include
  24383. DIR_SSH2=${PREFIX_SSH2}/lib$libsuff
  24384. fi
  24385. LDFLAGS="$LDFLAGS $LD_SSH2"
  24386. CPPFLAGS="$CPPFLAGS $CPP_SSH2"
  24387. LIBS="$LIB_SSH2 $LIBS"
  24388. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libssh2_session_block_directions in -lssh2" >&5
  24389. printf %s "checking for libssh2_session_block_directions in -lssh2... " >&6; }
  24390. if test ${ac_cv_lib_ssh2_libssh2_session_block_directions+y}
  24391. then :
  24392. printf %s "(cached) " >&6
  24393. else $as_nop
  24394. ac_check_lib_save_LIBS=$LIBS
  24395. LIBS="-lssh2 $LIBS"
  24396. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  24397. /* end confdefs.h. */
  24398. #ifdef __cplusplus
  24399. extern "C"
  24400. #endif
  24401. char libssh2_session_block_directions ();
  24402. int main (void)
  24403. {
  24404. return libssh2_session_block_directions ();
  24405. ;
  24406. return 0;
  24407. }
  24408. _ACEOF
  24409. if ac_fn_c_try_link "$LINENO"
  24410. then :
  24411. ac_cv_lib_ssh2_libssh2_session_block_directions=yes
  24412. else $as_nop
  24413. ac_cv_lib_ssh2_libssh2_session_block_directions=no
  24414. fi
  24415. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  24416. conftest$ac_exeext conftest.$ac_ext
  24417. LIBS=$ac_check_lib_save_LIBS
  24418. fi
  24419. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ssh2_libssh2_session_block_directions" >&5
  24420. printf "%s\n" "$ac_cv_lib_ssh2_libssh2_session_block_directions" >&6; }
  24421. if test "x$ac_cv_lib_ssh2_libssh2_session_block_directions" = xyes
  24422. then :
  24423. printf "%s\n" "#define HAVE_LIBSSH2 1" >>confdefs.h
  24424. LIBS="-lssh2 $LIBS"
  24425. fi
  24426. for ac_header in libssh2.h
  24427. do :
  24428. ac_fn_c_check_header_compile "$LINENO" "libssh2.h" "ac_cv_header_libssh2_h" "$ac_includes_default"
  24429. if test "x$ac_cv_header_libssh2_h" = xyes
  24430. then :
  24431. printf "%s\n" "#define HAVE_LIBSSH2_H 1" >>confdefs.h
  24432. curl_ssh_msg="enabled (libSSH2)"
  24433. LIBSSH2_ENABLED=1
  24434. printf "%s\n" "#define USE_LIBSSH2 1" >>confdefs.h
  24435. USE_LIBSSH2=1
  24436. fi
  24437. done
  24438. if test X"$OPT_LIBSSH2" != Xoff &&
  24439. test "$LIBSSH2_ENABLED" != "1"; then
  24440. as_fn_error $? "libSSH2 libs and/or directories were not found where specified!" "$LINENO" 5
  24441. fi
  24442. if test "$LIBSSH2_ENABLED" = "1"; then
  24443. if test -n "$DIR_SSH2"; then
  24444. if test "x$cross_compiling" != "xyes"; then
  24445. CURL_LIBRARY_PATH="$CURL_LIBRARY_PATH:$DIR_SSH2"
  24446. export CURL_LIBRARY_PATH
  24447. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: Added $DIR_SSH2 to CURL_LIBRARY_PATH" >&5
  24448. printf "%s\n" "$as_me: Added $DIR_SSH2 to CURL_LIBRARY_PATH" >&6;}
  24449. fi
  24450. fi
  24451. else
  24452. LDFLAGS=$CLEANLDFLAGS
  24453. CPPFLAGS=$CLEANCPPFLAGS
  24454. LIBS=$CLEANLIBS
  24455. fi
  24456. elif test X"$OPT_LIBSSH" != Xno; then
  24457. CLEANLDFLAGS="$LDFLAGS"
  24458. CLEANCPPFLAGS="$CPPFLAGS"
  24459. CLEANLIBS="$LIBS"
  24460. case "$OPT_LIBSSH" in
  24461. yes)
  24462. if test -n "$PKG_CONFIG"; then
  24463. PKGCONFIG="$PKG_CONFIG"
  24464. else
  24465. if test -n "$ac_tool_prefix"; then
  24466. # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
  24467. set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
  24468. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  24469. printf %s "checking for $ac_word... " >&6; }
  24470. if test ${ac_cv_path_PKGCONFIG+y}
  24471. then :
  24472. printf %s "(cached) " >&6
  24473. else $as_nop
  24474. case $PKGCONFIG in
  24475. [\\/]* | ?:[\\/]*)
  24476. ac_cv_path_PKGCONFIG="$PKGCONFIG" # Let the user override the test with a path.
  24477. ;;
  24478. *)
  24479. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  24480. as_dummy="$PATH:/usr/bin:/usr/local/bin"
  24481. for as_dir in $as_dummy
  24482. do
  24483. IFS=$as_save_IFS
  24484. case $as_dir in #(((
  24485. '') as_dir=./ ;;
  24486. */) ;;
  24487. *) as_dir=$as_dir/ ;;
  24488. esac
  24489. for ac_exec_ext in '' $ac_executable_extensions; do
  24490. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  24491. ac_cv_path_PKGCONFIG="$as_dir$ac_word$ac_exec_ext"
  24492. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  24493. break 2
  24494. fi
  24495. done
  24496. done
  24497. IFS=$as_save_IFS
  24498. ;;
  24499. esac
  24500. fi
  24501. PKGCONFIG=$ac_cv_path_PKGCONFIG
  24502. if test -n "$PKGCONFIG"; then
  24503. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PKGCONFIG" >&5
  24504. printf "%s\n" "$PKGCONFIG" >&6; }
  24505. else
  24506. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  24507. printf "%s\n" "no" >&6; }
  24508. fi
  24509. fi
  24510. if test -z "$ac_cv_path_PKGCONFIG"; then
  24511. ac_pt_PKGCONFIG=$PKGCONFIG
  24512. # Extract the first word of "pkg-config", so it can be a program name with args.
  24513. set dummy pkg-config; ac_word=$2
  24514. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  24515. printf %s "checking for $ac_word... " >&6; }
  24516. if test ${ac_cv_path_ac_pt_PKGCONFIG+y}
  24517. then :
  24518. printf %s "(cached) " >&6
  24519. else $as_nop
  24520. case $ac_pt_PKGCONFIG in
  24521. [\\/]* | ?:[\\/]*)
  24522. ac_cv_path_ac_pt_PKGCONFIG="$ac_pt_PKGCONFIG" # Let the user override the test with a path.
  24523. ;;
  24524. *)
  24525. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  24526. as_dummy="$PATH:/usr/bin:/usr/local/bin"
  24527. for as_dir in $as_dummy
  24528. do
  24529. IFS=$as_save_IFS
  24530. case $as_dir in #(((
  24531. '') as_dir=./ ;;
  24532. */) ;;
  24533. *) as_dir=$as_dir/ ;;
  24534. esac
  24535. for ac_exec_ext in '' $ac_executable_extensions; do
  24536. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  24537. ac_cv_path_ac_pt_PKGCONFIG="$as_dir$ac_word$ac_exec_ext"
  24538. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  24539. break 2
  24540. fi
  24541. done
  24542. done
  24543. IFS=$as_save_IFS
  24544. ;;
  24545. esac
  24546. fi
  24547. ac_pt_PKGCONFIG=$ac_cv_path_ac_pt_PKGCONFIG
  24548. if test -n "$ac_pt_PKGCONFIG"; then
  24549. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKGCONFIG" >&5
  24550. printf "%s\n" "$ac_pt_PKGCONFIG" >&6; }
  24551. else
  24552. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  24553. printf "%s\n" "no" >&6; }
  24554. fi
  24555. if test "x$ac_pt_PKGCONFIG" = x; then
  24556. PKGCONFIG="no"
  24557. else
  24558. case $cross_compiling:$ac_tool_warned in
  24559. yes:)
  24560. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  24561. printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  24562. ac_tool_warned=yes ;;
  24563. esac
  24564. PKGCONFIG=$ac_pt_PKGCONFIG
  24565. fi
  24566. else
  24567. PKGCONFIG="$ac_cv_path_PKGCONFIG"
  24568. fi
  24569. fi
  24570. if test "x$PKGCONFIG" != "xno"; then
  24571. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libssh options with pkg-config" >&5
  24572. printf %s "checking for libssh options with pkg-config... " >&6; }
  24573. itexists=`
  24574. if test -n ""; then
  24575. PKG_CONFIG_LIBDIR=""
  24576. export PKG_CONFIG_LIBDIR
  24577. fi
  24578. $PKGCONFIG --exists libssh >/dev/null 2>&1 && echo 1`
  24579. if test -z "$itexists"; then
  24580. PKGCONFIG="no"
  24581. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  24582. printf "%s\n" "no" >&6; }
  24583. else
  24584. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: found" >&5
  24585. printf "%s\n" "found" >&6; }
  24586. fi
  24587. fi
  24588. if test "$PKGCONFIG" != "no" ; then
  24589. LIB_SSH=`$PKGCONFIG --libs-only-l libssh`
  24590. LD_SSH=`$PKGCONFIG --libs-only-L libssh`
  24591. CPP_SSH=`$PKGCONFIG --cflags-only-I libssh`
  24592. version=`$PKGCONFIG --modversion libssh`
  24593. DIR_SSH=`echo $LD_SSH | $SED -e 's/^-L//'`
  24594. fi
  24595. ;;
  24596. off)
  24597. ;;
  24598. *)
  24599. PREFIX_SSH=$OPT_LIBSSH
  24600. ;;
  24601. esac
  24602. if test -n "$PREFIX_SSH"; then
  24603. LIB_SSH="-lssh"
  24604. LD_SSH=-L${PREFIX_SSH}/lib$libsuff
  24605. CPP_SSH=-I${PREFIX_SSH}/include
  24606. DIR_SSH=${PREFIX_SSH}/lib$libsuff
  24607. fi
  24608. LDFLAGS="$LDFLAGS $LD_SSH"
  24609. CPPFLAGS="$CPPFLAGS $CPP_SSH"
  24610. LIBS="$LIB_SSH $LIBS"
  24611. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ssh_new in -lssh" >&5
  24612. printf %s "checking for ssh_new in -lssh... " >&6; }
  24613. if test ${ac_cv_lib_ssh_ssh_new+y}
  24614. then :
  24615. printf %s "(cached) " >&6
  24616. else $as_nop
  24617. ac_check_lib_save_LIBS=$LIBS
  24618. LIBS="-lssh $LIBS"
  24619. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  24620. /* end confdefs.h. */
  24621. #ifdef __cplusplus
  24622. extern "C"
  24623. #endif
  24624. char ssh_new ();
  24625. int main (void)
  24626. {
  24627. return ssh_new ();
  24628. ;
  24629. return 0;
  24630. }
  24631. _ACEOF
  24632. if ac_fn_c_try_link "$LINENO"
  24633. then :
  24634. ac_cv_lib_ssh_ssh_new=yes
  24635. else $as_nop
  24636. ac_cv_lib_ssh_ssh_new=no
  24637. fi
  24638. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  24639. conftest$ac_exeext conftest.$ac_ext
  24640. LIBS=$ac_check_lib_save_LIBS
  24641. fi
  24642. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ssh_ssh_new" >&5
  24643. printf "%s\n" "$ac_cv_lib_ssh_ssh_new" >&6; }
  24644. if test "x$ac_cv_lib_ssh_ssh_new" = xyes
  24645. then :
  24646. printf "%s\n" "#define HAVE_LIBSSH 1" >>confdefs.h
  24647. LIBS="-lssh $LIBS"
  24648. fi
  24649. for ac_header in libssh/libssh.h
  24650. do :
  24651. ac_fn_c_check_header_compile "$LINENO" "libssh/libssh.h" "ac_cv_header_libssh_libssh_h" "$ac_includes_default"
  24652. if test "x$ac_cv_header_libssh_libssh_h" = xyes
  24653. then :
  24654. printf "%s\n" "#define HAVE_LIBSSH_LIBSSH_H 1" >>confdefs.h
  24655. curl_ssh_msg="enabled (libSSH)"
  24656. LIBSSH_ENABLED=1
  24657. printf "%s\n" "#define USE_LIBSSH 1" >>confdefs.h
  24658. USE_LIBSSH=1
  24659. fi
  24660. done
  24661. if test X"$OPT_LIBSSH" != Xoff &&
  24662. test "$LIBSSH_ENABLED" != "1"; then
  24663. as_fn_error $? "libSSH libs and/or directories were not found where specified!" "$LINENO" 5
  24664. fi
  24665. if test "$LIBSSH_ENABLED" = "1"; then
  24666. if test -n "$DIR_SSH"; then
  24667. if test "x$cross_compiling" != "xyes"; then
  24668. CURL_LIBRARY_PATH="$CURL_LIBRARY_PATH:$DIR_SSH"
  24669. export CURL_LIBRARY_PATH
  24670. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: Added $DIR_SSH to CURL_LIBRARY_PATH" >&5
  24671. printf "%s\n" "$as_me: Added $DIR_SSH to CURL_LIBRARY_PATH" >&6;}
  24672. fi
  24673. fi
  24674. else
  24675. LDFLAGS=$CLEANLDFLAGS
  24676. CPPFLAGS=$CLEANCPPFLAGS
  24677. LIBS=$CLEANLIBS
  24678. fi
  24679. elif test X"$OPT_WOLFSSH" != Xno; then
  24680. CLEANLDFLAGS="$LDFLAGS"
  24681. CLEANCPPFLAGS="$CPPFLAGS"
  24682. CLEANLIBS="$LIBS"
  24683. if test "$OPT_WOLFSSH" != yes; then
  24684. WOLFCONFIG="$OPT_WOLFSSH/bin/wolfssh-config"
  24685. LDFLAGS="$LDFLAGS `$WOLFCONFIG --libs`"
  24686. CPPFLAGS="$CPPFLAGS `$WOLFCONFIG --cflags`"
  24687. fi
  24688. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for wolfSSH_Init in -lwolfssh" >&5
  24689. printf %s "checking for wolfSSH_Init in -lwolfssh... " >&6; }
  24690. if test ${ac_cv_lib_wolfssh_wolfSSH_Init+y}
  24691. then :
  24692. printf %s "(cached) " >&6
  24693. else $as_nop
  24694. ac_check_lib_save_LIBS=$LIBS
  24695. LIBS="-lwolfssh $LIBS"
  24696. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  24697. /* end confdefs.h. */
  24698. #ifdef __cplusplus
  24699. extern "C"
  24700. #endif
  24701. char wolfSSH_Init ();
  24702. int main (void)
  24703. {
  24704. return wolfSSH_Init ();
  24705. ;
  24706. return 0;
  24707. }
  24708. _ACEOF
  24709. if ac_fn_c_try_link "$LINENO"
  24710. then :
  24711. ac_cv_lib_wolfssh_wolfSSH_Init=yes
  24712. else $as_nop
  24713. ac_cv_lib_wolfssh_wolfSSH_Init=no
  24714. fi
  24715. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  24716. conftest$ac_exeext conftest.$ac_ext
  24717. LIBS=$ac_check_lib_save_LIBS
  24718. fi
  24719. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_wolfssh_wolfSSH_Init" >&5
  24720. printf "%s\n" "$ac_cv_lib_wolfssh_wolfSSH_Init" >&6; }
  24721. if test "x$ac_cv_lib_wolfssh_wolfSSH_Init" = xyes
  24722. then :
  24723. printf "%s\n" "#define HAVE_LIBWOLFSSH 1" >>confdefs.h
  24724. LIBS="-lwolfssh $LIBS"
  24725. fi
  24726. for ac_header in wolfssh/ssh.h
  24727. do :
  24728. ac_fn_c_check_header_compile "$LINENO" "wolfssh/ssh.h" "ac_cv_header_wolfssh_ssh_h" "$ac_includes_default"
  24729. if test "x$ac_cv_header_wolfssh_ssh_h" = xyes
  24730. then :
  24731. printf "%s\n" "#define HAVE_WOLFSSH_SSH_H 1" >>confdefs.h
  24732. curl_ssh_msg="enabled (wolfSSH)"
  24733. WOLFSSH_ENABLED=1
  24734. printf "%s\n" "#define USE_WOLFSSH 1" >>confdefs.h
  24735. USE_WOLFSSH=1
  24736. fi
  24737. done
  24738. fi
  24739. OPT_LIBRTMP=off
  24740. # Check whether --with-librtmp was given.
  24741. if test ${with_librtmp+y}
  24742. then :
  24743. withval=$with_librtmp; OPT_LIBRTMP=$withval
  24744. fi
  24745. if test X"$OPT_LIBRTMP" != Xno; then
  24746. CLEANLDFLAGS="$LDFLAGS"
  24747. CLEANCPPFLAGS="$CPPFLAGS"
  24748. CLEANLIBS="$LIBS"
  24749. case "$OPT_LIBRTMP" in
  24750. yes)
  24751. if test -n "$PKG_CONFIG"; then
  24752. PKGCONFIG="$PKG_CONFIG"
  24753. else
  24754. if test -n "$ac_tool_prefix"; then
  24755. # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
  24756. set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
  24757. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  24758. printf %s "checking for $ac_word... " >&6; }
  24759. if test ${ac_cv_path_PKGCONFIG+y}
  24760. then :
  24761. printf %s "(cached) " >&6
  24762. else $as_nop
  24763. case $PKGCONFIG in
  24764. [\\/]* | ?:[\\/]*)
  24765. ac_cv_path_PKGCONFIG="$PKGCONFIG" # Let the user override the test with a path.
  24766. ;;
  24767. *)
  24768. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  24769. as_dummy="$PATH:/usr/bin:/usr/local/bin"
  24770. for as_dir in $as_dummy
  24771. do
  24772. IFS=$as_save_IFS
  24773. case $as_dir in #(((
  24774. '') as_dir=./ ;;
  24775. */) ;;
  24776. *) as_dir=$as_dir/ ;;
  24777. esac
  24778. for ac_exec_ext in '' $ac_executable_extensions; do
  24779. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  24780. ac_cv_path_PKGCONFIG="$as_dir$ac_word$ac_exec_ext"
  24781. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  24782. break 2
  24783. fi
  24784. done
  24785. done
  24786. IFS=$as_save_IFS
  24787. ;;
  24788. esac
  24789. fi
  24790. PKGCONFIG=$ac_cv_path_PKGCONFIG
  24791. if test -n "$PKGCONFIG"; then
  24792. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PKGCONFIG" >&5
  24793. printf "%s\n" "$PKGCONFIG" >&6; }
  24794. else
  24795. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  24796. printf "%s\n" "no" >&6; }
  24797. fi
  24798. fi
  24799. if test -z "$ac_cv_path_PKGCONFIG"; then
  24800. ac_pt_PKGCONFIG=$PKGCONFIG
  24801. # Extract the first word of "pkg-config", so it can be a program name with args.
  24802. set dummy pkg-config; ac_word=$2
  24803. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  24804. printf %s "checking for $ac_word... " >&6; }
  24805. if test ${ac_cv_path_ac_pt_PKGCONFIG+y}
  24806. then :
  24807. printf %s "(cached) " >&6
  24808. else $as_nop
  24809. case $ac_pt_PKGCONFIG in
  24810. [\\/]* | ?:[\\/]*)
  24811. ac_cv_path_ac_pt_PKGCONFIG="$ac_pt_PKGCONFIG" # Let the user override the test with a path.
  24812. ;;
  24813. *)
  24814. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  24815. as_dummy="$PATH:/usr/bin:/usr/local/bin"
  24816. for as_dir in $as_dummy
  24817. do
  24818. IFS=$as_save_IFS
  24819. case $as_dir in #(((
  24820. '') as_dir=./ ;;
  24821. */) ;;
  24822. *) as_dir=$as_dir/ ;;
  24823. esac
  24824. for ac_exec_ext in '' $ac_executable_extensions; do
  24825. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  24826. ac_cv_path_ac_pt_PKGCONFIG="$as_dir$ac_word$ac_exec_ext"
  24827. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  24828. break 2
  24829. fi
  24830. done
  24831. done
  24832. IFS=$as_save_IFS
  24833. ;;
  24834. esac
  24835. fi
  24836. ac_pt_PKGCONFIG=$ac_cv_path_ac_pt_PKGCONFIG
  24837. if test -n "$ac_pt_PKGCONFIG"; then
  24838. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKGCONFIG" >&5
  24839. printf "%s\n" "$ac_pt_PKGCONFIG" >&6; }
  24840. else
  24841. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  24842. printf "%s\n" "no" >&6; }
  24843. fi
  24844. if test "x$ac_pt_PKGCONFIG" = x; then
  24845. PKGCONFIG="no"
  24846. else
  24847. case $cross_compiling:$ac_tool_warned in
  24848. yes:)
  24849. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  24850. printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  24851. ac_tool_warned=yes ;;
  24852. esac
  24853. PKGCONFIG=$ac_pt_PKGCONFIG
  24854. fi
  24855. else
  24856. PKGCONFIG="$ac_cv_path_PKGCONFIG"
  24857. fi
  24858. fi
  24859. if test "x$PKGCONFIG" != "xno"; then
  24860. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for librtmp options with pkg-config" >&5
  24861. printf %s "checking for librtmp options with pkg-config... " >&6; }
  24862. itexists=`
  24863. if test -n ""; then
  24864. PKG_CONFIG_LIBDIR=""
  24865. export PKG_CONFIG_LIBDIR
  24866. fi
  24867. $PKGCONFIG --exists librtmp >/dev/null 2>&1 && echo 1`
  24868. if test -z "$itexists"; then
  24869. PKGCONFIG="no"
  24870. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  24871. printf "%s\n" "no" >&6; }
  24872. else
  24873. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: found" >&5
  24874. printf "%s\n" "found" >&6; }
  24875. fi
  24876. fi
  24877. if test "$PKGCONFIG" != "no" ; then
  24878. LIB_RTMP=`$PKGCONFIG --libs-only-l librtmp`
  24879. LD_RTMP=`$PKGCONFIG --libs-only-L librtmp`
  24880. CPP_RTMP=`$PKGCONFIG --cflags-only-I librtmp`
  24881. version=`$PKGCONFIG --modversion librtmp`
  24882. DIR_RTMP=`echo $LD_RTMP | $SED -e 's/^-L//'`
  24883. else
  24884. as_fn_error $? "--librtmp was specified but could not find librtmp pkgconfig file." "$LINENO" 5
  24885. fi
  24886. ;;
  24887. off)
  24888. LIB_RTMP="-lrtmp"
  24889. ;;
  24890. *)
  24891. LIB_RTMP="-lrtmp"
  24892. PREFIX_RTMP=$OPT_LIBRTMP
  24893. ;;
  24894. esac
  24895. if test -n "$PREFIX_RTMP"; then
  24896. LD_RTMP=-L${PREFIX_RTMP}/lib$libsuff
  24897. CPP_RTMP=-I${PREFIX_RTMP}/include
  24898. DIR_RTMP=${PREFIX_RTMP}/lib$libsuff
  24899. fi
  24900. LDFLAGS="$LDFLAGS $LD_RTMP"
  24901. CPPFLAGS="$CPPFLAGS $CPP_RTMP"
  24902. LIBS="$LIB_RTMP $LIBS"
  24903. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for RTMP_Init in -lrtmp" >&5
  24904. printf %s "checking for RTMP_Init in -lrtmp... " >&6; }
  24905. if test ${ac_cv_lib_rtmp_RTMP_Init+y}
  24906. then :
  24907. printf %s "(cached) " >&6
  24908. else $as_nop
  24909. ac_check_lib_save_LIBS=$LIBS
  24910. LIBS="-lrtmp $LIBS"
  24911. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  24912. /* end confdefs.h. */
  24913. #ifdef __cplusplus
  24914. extern "C"
  24915. #endif
  24916. char RTMP_Init ();
  24917. int main (void)
  24918. {
  24919. return RTMP_Init ();
  24920. ;
  24921. return 0;
  24922. }
  24923. _ACEOF
  24924. if ac_fn_c_try_link "$LINENO"
  24925. then :
  24926. ac_cv_lib_rtmp_RTMP_Init=yes
  24927. else $as_nop
  24928. ac_cv_lib_rtmp_RTMP_Init=no
  24929. fi
  24930. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  24931. conftest$ac_exeext conftest.$ac_ext
  24932. LIBS=$ac_check_lib_save_LIBS
  24933. fi
  24934. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_rtmp_RTMP_Init" >&5
  24935. printf "%s\n" "$ac_cv_lib_rtmp_RTMP_Init" >&6; }
  24936. if test "x$ac_cv_lib_rtmp_RTMP_Init" = xyes
  24937. then :
  24938. for ac_header in librtmp/rtmp.h
  24939. do :
  24940. ac_fn_c_check_header_compile "$LINENO" "librtmp/rtmp.h" "ac_cv_header_librtmp_rtmp_h" "$ac_includes_default"
  24941. if test "x$ac_cv_header_librtmp_rtmp_h" = xyes
  24942. then :
  24943. printf "%s\n" "#define HAVE_LIBRTMP_RTMP_H 1" >>confdefs.h
  24944. curl_rtmp_msg="enabled (librtmp)"
  24945. LIBRTMP_ENABLED=1
  24946. printf "%s\n" "#define USE_LIBRTMP 1" >>confdefs.h
  24947. USE_LIBRTMP=1
  24948. fi
  24949. done
  24950. else $as_nop
  24951. LDFLAGS=$CLEANLDFLAGS
  24952. CPPFLAGS=$CLEANCPPFLAGS
  24953. LIBS=$CLEANLIBS
  24954. fi
  24955. if test X"$OPT_LIBRTMP" != Xoff &&
  24956. test "$LIBRTMP_ENABLED" != "1"; then
  24957. as_fn_error $? "librtmp libs and/or directories were not found where specified!" "$LINENO" 5
  24958. fi
  24959. fi
  24960. versioned_symbols_flavour=
  24961. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether versioned symbols are wanted" >&5
  24962. printf %s "checking whether versioned symbols are wanted... " >&6; }
  24963. # Check whether --enable-versioned-symbols was given.
  24964. if test ${enable_versioned_symbols+y}
  24965. then :
  24966. enableval=$enable_versioned_symbols; case "$enableval" in
  24967. yes) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  24968. printf "%s\n" "yes" >&6; }
  24969. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if libraries can be versioned" >&5
  24970. printf %s "checking if libraries can be versioned... " >&6; }
  24971. GLD=`$LD --help < /dev/null 2>/dev/null | grep version-script`
  24972. if test -z "$GLD"; then
  24973. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  24974. printf "%s\n" "no" >&6; }
  24975. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: You need an ld version supporting the --version-script option" >&5
  24976. printf "%s\n" "$as_me: WARNING: You need an ld version supporting the --version-script option" >&2;}
  24977. else
  24978. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  24979. printf "%s\n" "yes" >&6; }
  24980. if test "x$CURL_WITH_MULTI_SSL" = "x1"; then
  24981. versioned_symbols_flavour="MULTISSL_"
  24982. elif test "x$OPENSSL_ENABLED" = "x1"; then
  24983. versioned_symbols_flavour="OPENSSL_"
  24984. elif test "x$GNUTLS_ENABLED" = "x1"; then
  24985. versioned_symbols_flavour="GNUTLS_"
  24986. elif test "x$NSS_ENABLED" = "x1"; then
  24987. versioned_symbols_flavour="NSS_"
  24988. elif test "x$WOLFSSL_ENABLED" = "x1"; then
  24989. versioned_symbols_flavour="WOLFSSL_"
  24990. elif test "x$SCHANNEL_ENABLED" = "x1"; then
  24991. versioned_symbols_flavour="SCHANNEL_"
  24992. elif test "x$SECURETRANSPORT_ENABLED" = "x1"; then
  24993. versioned_symbols_flavour="SECURE_TRANSPORT_"
  24994. else
  24995. versioned_symbols_flavour=""
  24996. fi
  24997. versioned_symbols="yes"
  24998. fi
  24999. ;;
  25000. *) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  25001. printf "%s\n" "no" >&6; }
  25002. ;;
  25003. esac
  25004. else $as_nop
  25005. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  25006. printf "%s\n" "no" >&6; }
  25007. fi
  25008. CURL_LT_SHLIB_VERSIONED_FLAVOUR="$versioned_symbols_flavour"
  25009. if test "x$versioned_symbols" = 'xyes'; then
  25010. CURL_LT_SHLIB_USE_VERSIONED_SYMBOLS_TRUE=
  25011. CURL_LT_SHLIB_USE_VERSIONED_SYMBOLS_FALSE='#'
  25012. else
  25013. CURL_LT_SHLIB_USE_VERSIONED_SYMBOLS_TRUE='#'
  25014. CURL_LT_SHLIB_USE_VERSIONED_SYMBOLS_FALSE=
  25015. fi
  25016. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to enable Windows native IDN (Windows native builds only)" >&5
  25017. printf %s "checking whether to enable Windows native IDN (Windows native builds only)... " >&6; }
  25018. OPT_WINIDN="default"
  25019. # Check whether --with-winidn was given.
  25020. if test ${with_winidn+y}
  25021. then :
  25022. withval=$with_winidn; OPT_WINIDN=$withval
  25023. fi
  25024. case "$OPT_WINIDN" in
  25025. no|default)
  25026. want_winidn="no"
  25027. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  25028. printf "%s\n" "no" >&6; }
  25029. ;;
  25030. yes)
  25031. want_winidn="yes"
  25032. want_winidn_path="default"
  25033. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  25034. printf "%s\n" "yes" >&6; }
  25035. ;;
  25036. *)
  25037. want_winidn="yes"
  25038. want_winidn_path="$withval"
  25039. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes ($withval)" >&5
  25040. printf "%s\n" "yes ($withval)" >&6; }
  25041. ;;
  25042. esac
  25043. if test "$want_winidn" = "yes"; then
  25044. clean_CFLAGS="$CFLAGS"
  25045. clean_CPPFLAGS="$CPPFLAGS"
  25046. clean_LDFLAGS="$LDFLAGS"
  25047. clean_LIBS="$LIBS"
  25048. WINIDN_LIBS="-lnormaliz"
  25049. WINIDN_CPPFLAGS=""
  25050. #
  25051. if test "$want_winidn_path" != "default"; then
  25052. WINIDN_LDFLAGS="-L$want_winidn_path/lib$libsuff"
  25053. WINIDN_CPPFLAGS="-I$want_winidn_path/include"
  25054. WINIDN_DIR="$want_winidn_path/lib$libsuff"
  25055. fi
  25056. #
  25057. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  25058. /* end confdefs.h. */
  25059. #include <windows.h>
  25060. int main (void)
  25061. {
  25062. #if (WINVER < 0x600) && (_WIN32_WINNT < 0x600)
  25063. #error
  25064. #endif
  25065. ;
  25066. return 0;
  25067. }
  25068. _ACEOF
  25069. if ac_fn_c_try_compile "$LINENO"
  25070. then :
  25071. else $as_nop
  25072. CFLAGS=`echo $CFLAGS | $SED -e 's/-DWINVER=[^ ]*//g'`
  25073. CFLAGS=`echo $CFLAGS | $SED -e 's/-D_WIN32_WINNT=[^ ]*//g'`
  25074. CPPFLAGS=`echo $CPPFLAGS | $SED -e 's/-DWINVER=[^ ]*//g'`
  25075. CPPFLAGS=`echo $CPPFLAGS | $SED -e 's/-D_WIN32_WINNT=[^ ]*//g'`
  25076. WINIDN_CPPFLAGS="$WINIDN_CPPFLAGS -DWINVER=0x0600"
  25077. fi
  25078. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  25079. #
  25080. CPPFLAGS="$CPPFLAGS $WINIDN_CPPFLAGS"
  25081. LDFLAGS="$LDFLAGS $WINIDN_LDFLAGS"
  25082. LIBS="$WINIDN_LIBS $LIBS"
  25083. #
  25084. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if IdnToUnicode can be linked" >&5
  25085. printf %s "checking if IdnToUnicode can be linked... " >&6; }
  25086. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  25087. /* end confdefs.h. */
  25088. #include <windows.h>
  25089. int main (void)
  25090. {
  25091. IdnToUnicode(0, NULL, 0, NULL, 0);
  25092. ;
  25093. return 0;
  25094. }
  25095. _ACEOF
  25096. if ac_fn_c_try_link "$LINENO"
  25097. then :
  25098. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  25099. printf "%s\n" "yes" >&6; }
  25100. tst_links_winidn="yes"
  25101. else $as_nop
  25102. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  25103. printf "%s\n" "no" >&6; }
  25104. tst_links_winidn="no"
  25105. fi
  25106. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  25107. conftest$ac_exeext conftest.$ac_ext
  25108. #
  25109. if test "$tst_links_winidn" = "yes"; then
  25110. printf "%s\n" "#define USE_WIN32_IDN 1" >>confdefs.h
  25111. printf "%s\n" "#define WANT_IDN_PROTOTYPES 1" >>confdefs.h
  25112. IDN_ENABLED=1
  25113. curl_idn_msg="enabled (Windows-native)"
  25114. else
  25115. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: Cannot find libraries for IDN support: IDN disabled" >&5
  25116. printf "%s\n" "$as_me: WARNING: Cannot find libraries for IDN support: IDN disabled" >&2;}
  25117. CFLAGS="$clean_CFLAGS"
  25118. CPPFLAGS="$clean_CPPFLAGS"
  25119. LDFLAGS="$clean_LDFLAGS"
  25120. LIBS="$clean_LIBS"
  25121. fi
  25122. fi
  25123. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to build with libidn2" >&5
  25124. printf %s "checking whether to build with libidn2... " >&6; }
  25125. OPT_IDN="default"
  25126. # Check whether --with-libidn2 was given.
  25127. if test ${with_libidn2+y}
  25128. then :
  25129. withval=$with_libidn2; OPT_IDN=$withval
  25130. fi
  25131. case "$OPT_IDN" in
  25132. no)
  25133. want_idn="no"
  25134. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  25135. printf "%s\n" "no" >&6; }
  25136. ;;
  25137. default)
  25138. want_idn="yes"
  25139. want_idn_path="default"
  25140. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: (assumed) yes" >&5
  25141. printf "%s\n" "(assumed) yes" >&6; }
  25142. ;;
  25143. yes)
  25144. want_idn="yes"
  25145. want_idn_path="default"
  25146. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  25147. printf "%s\n" "yes" >&6; }
  25148. ;;
  25149. *)
  25150. want_idn="yes"
  25151. want_idn_path="$withval"
  25152. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes ($withval)" >&5
  25153. printf "%s\n" "yes ($withval)" >&6; }
  25154. ;;
  25155. esac
  25156. if test "$want_idn" = "yes"; then
  25157. clean_CPPFLAGS="$CPPFLAGS"
  25158. clean_LDFLAGS="$LDFLAGS"
  25159. clean_LIBS="$LIBS"
  25160. PKGCONFIG="no"
  25161. #
  25162. if test "$want_idn_path" != "default"; then
  25163. IDN_PCDIR="$want_idn_path/lib$libsuff/pkgconfig"
  25164. if test -n "$PKG_CONFIG"; then
  25165. PKGCONFIG="$PKG_CONFIG"
  25166. else
  25167. if test -n "$ac_tool_prefix"; then
  25168. # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
  25169. set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
  25170. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  25171. printf %s "checking for $ac_word... " >&6; }
  25172. if test ${ac_cv_path_PKGCONFIG+y}
  25173. then :
  25174. printf %s "(cached) " >&6
  25175. else $as_nop
  25176. case $PKGCONFIG in
  25177. [\\/]* | ?:[\\/]*)
  25178. ac_cv_path_PKGCONFIG="$PKGCONFIG" # Let the user override the test with a path.
  25179. ;;
  25180. *)
  25181. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  25182. as_dummy="$PATH:/usr/bin:/usr/local/bin"
  25183. for as_dir in $as_dummy
  25184. do
  25185. IFS=$as_save_IFS
  25186. case $as_dir in #(((
  25187. '') as_dir=./ ;;
  25188. */) ;;
  25189. *) as_dir=$as_dir/ ;;
  25190. esac
  25191. for ac_exec_ext in '' $ac_executable_extensions; do
  25192. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  25193. ac_cv_path_PKGCONFIG="$as_dir$ac_word$ac_exec_ext"
  25194. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  25195. break 2
  25196. fi
  25197. done
  25198. done
  25199. IFS=$as_save_IFS
  25200. ;;
  25201. esac
  25202. fi
  25203. PKGCONFIG=$ac_cv_path_PKGCONFIG
  25204. if test -n "$PKGCONFIG"; then
  25205. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PKGCONFIG" >&5
  25206. printf "%s\n" "$PKGCONFIG" >&6; }
  25207. else
  25208. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  25209. printf "%s\n" "no" >&6; }
  25210. fi
  25211. fi
  25212. if test -z "$ac_cv_path_PKGCONFIG"; then
  25213. ac_pt_PKGCONFIG=$PKGCONFIG
  25214. # Extract the first word of "pkg-config", so it can be a program name with args.
  25215. set dummy pkg-config; ac_word=$2
  25216. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  25217. printf %s "checking for $ac_word... " >&6; }
  25218. if test ${ac_cv_path_ac_pt_PKGCONFIG+y}
  25219. then :
  25220. printf %s "(cached) " >&6
  25221. else $as_nop
  25222. case $ac_pt_PKGCONFIG in
  25223. [\\/]* | ?:[\\/]*)
  25224. ac_cv_path_ac_pt_PKGCONFIG="$ac_pt_PKGCONFIG" # Let the user override the test with a path.
  25225. ;;
  25226. *)
  25227. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  25228. as_dummy="$PATH:/usr/bin:/usr/local/bin"
  25229. for as_dir in $as_dummy
  25230. do
  25231. IFS=$as_save_IFS
  25232. case $as_dir in #(((
  25233. '') as_dir=./ ;;
  25234. */) ;;
  25235. *) as_dir=$as_dir/ ;;
  25236. esac
  25237. for ac_exec_ext in '' $ac_executable_extensions; do
  25238. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  25239. ac_cv_path_ac_pt_PKGCONFIG="$as_dir$ac_word$ac_exec_ext"
  25240. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  25241. break 2
  25242. fi
  25243. done
  25244. done
  25245. IFS=$as_save_IFS
  25246. ;;
  25247. esac
  25248. fi
  25249. ac_pt_PKGCONFIG=$ac_cv_path_ac_pt_PKGCONFIG
  25250. if test -n "$ac_pt_PKGCONFIG"; then
  25251. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKGCONFIG" >&5
  25252. printf "%s\n" "$ac_pt_PKGCONFIG" >&6; }
  25253. else
  25254. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  25255. printf "%s\n" "no" >&6; }
  25256. fi
  25257. if test "x$ac_pt_PKGCONFIG" = x; then
  25258. PKGCONFIG="no"
  25259. else
  25260. case $cross_compiling:$ac_tool_warned in
  25261. yes:)
  25262. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  25263. printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  25264. ac_tool_warned=yes ;;
  25265. esac
  25266. PKGCONFIG=$ac_pt_PKGCONFIG
  25267. fi
  25268. else
  25269. PKGCONFIG="$ac_cv_path_PKGCONFIG"
  25270. fi
  25271. fi
  25272. if test "x$PKGCONFIG" != "xno"; then
  25273. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libidn2 options with pkg-config" >&5
  25274. printf %s "checking for libidn2 options with pkg-config... " >&6; }
  25275. itexists=`
  25276. if test -n "$IDN_PCDIR"; then
  25277. PKG_CONFIG_LIBDIR="$IDN_PCDIR"
  25278. export PKG_CONFIG_LIBDIR
  25279. fi
  25280. $PKGCONFIG --exists libidn2 >/dev/null 2>&1 && echo 1`
  25281. if test -z "$itexists"; then
  25282. PKGCONFIG="no"
  25283. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  25284. printf "%s\n" "no" >&6; }
  25285. else
  25286. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: found" >&5
  25287. printf "%s\n" "found" >&6; }
  25288. fi
  25289. fi
  25290. if test "$PKGCONFIG" != "no"; then
  25291. IDN_LIBS=`
  25292. if test -n "$IDN_PCDIR"; then
  25293. PKG_CONFIG_LIBDIR="$IDN_PCDIR"
  25294. export PKG_CONFIG_LIBDIR
  25295. fi
  25296. $PKGCONFIG --libs-only-l libidn2 2>/dev/null`
  25297. IDN_LDFLAGS=`
  25298. if test -n "$IDN_PCDIR"; then
  25299. PKG_CONFIG_LIBDIR="$IDN_PCDIR"
  25300. export PKG_CONFIG_LIBDIR
  25301. fi
  25302. $PKGCONFIG --libs-only-L libidn2 2>/dev/null`
  25303. IDN_CPPFLAGS=`
  25304. if test -n "$IDN_PCDIR"; then
  25305. PKG_CONFIG_LIBDIR="$IDN_PCDIR"
  25306. export PKG_CONFIG_LIBDIR
  25307. fi
  25308. $PKGCONFIG --cflags-only-I libidn2 2>/dev/null`
  25309. IDN_DIR=`echo $IDN_LDFLAGS | $SED -e 's/^-L//'`
  25310. else
  25311. IDN_LIBS="-lidn2"
  25312. IDN_LDFLAGS="-L$want_idn_path/lib$libsuff"
  25313. IDN_CPPFLAGS="-I$want_idn_path/include"
  25314. IDN_DIR="$want_idn_path/lib$libsuff"
  25315. fi
  25316. else
  25317. if test -n "$PKG_CONFIG"; then
  25318. PKGCONFIG="$PKG_CONFIG"
  25319. else
  25320. if test -n "$ac_tool_prefix"; then
  25321. # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
  25322. set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
  25323. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  25324. printf %s "checking for $ac_word... " >&6; }
  25325. if test ${ac_cv_path_PKGCONFIG+y}
  25326. then :
  25327. printf %s "(cached) " >&6
  25328. else $as_nop
  25329. case $PKGCONFIG in
  25330. [\\/]* | ?:[\\/]*)
  25331. ac_cv_path_PKGCONFIG="$PKGCONFIG" # Let the user override the test with a path.
  25332. ;;
  25333. *)
  25334. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  25335. as_dummy="$PATH:/usr/bin:/usr/local/bin"
  25336. for as_dir in $as_dummy
  25337. do
  25338. IFS=$as_save_IFS
  25339. case $as_dir in #(((
  25340. '') as_dir=./ ;;
  25341. */) ;;
  25342. *) as_dir=$as_dir/ ;;
  25343. esac
  25344. for ac_exec_ext in '' $ac_executable_extensions; do
  25345. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  25346. ac_cv_path_PKGCONFIG="$as_dir$ac_word$ac_exec_ext"
  25347. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  25348. break 2
  25349. fi
  25350. done
  25351. done
  25352. IFS=$as_save_IFS
  25353. ;;
  25354. esac
  25355. fi
  25356. PKGCONFIG=$ac_cv_path_PKGCONFIG
  25357. if test -n "$PKGCONFIG"; then
  25358. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PKGCONFIG" >&5
  25359. printf "%s\n" "$PKGCONFIG" >&6; }
  25360. else
  25361. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  25362. printf "%s\n" "no" >&6; }
  25363. fi
  25364. fi
  25365. if test -z "$ac_cv_path_PKGCONFIG"; then
  25366. ac_pt_PKGCONFIG=$PKGCONFIG
  25367. # Extract the first word of "pkg-config", so it can be a program name with args.
  25368. set dummy pkg-config; ac_word=$2
  25369. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  25370. printf %s "checking for $ac_word... " >&6; }
  25371. if test ${ac_cv_path_ac_pt_PKGCONFIG+y}
  25372. then :
  25373. printf %s "(cached) " >&6
  25374. else $as_nop
  25375. case $ac_pt_PKGCONFIG in
  25376. [\\/]* | ?:[\\/]*)
  25377. ac_cv_path_ac_pt_PKGCONFIG="$ac_pt_PKGCONFIG" # Let the user override the test with a path.
  25378. ;;
  25379. *)
  25380. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  25381. as_dummy="$PATH:/usr/bin:/usr/local/bin"
  25382. for as_dir in $as_dummy
  25383. do
  25384. IFS=$as_save_IFS
  25385. case $as_dir in #(((
  25386. '') as_dir=./ ;;
  25387. */) ;;
  25388. *) as_dir=$as_dir/ ;;
  25389. esac
  25390. for ac_exec_ext in '' $ac_executable_extensions; do
  25391. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  25392. ac_cv_path_ac_pt_PKGCONFIG="$as_dir$ac_word$ac_exec_ext"
  25393. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  25394. break 2
  25395. fi
  25396. done
  25397. done
  25398. IFS=$as_save_IFS
  25399. ;;
  25400. esac
  25401. fi
  25402. ac_pt_PKGCONFIG=$ac_cv_path_ac_pt_PKGCONFIG
  25403. if test -n "$ac_pt_PKGCONFIG"; then
  25404. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKGCONFIG" >&5
  25405. printf "%s\n" "$ac_pt_PKGCONFIG" >&6; }
  25406. else
  25407. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  25408. printf "%s\n" "no" >&6; }
  25409. fi
  25410. if test "x$ac_pt_PKGCONFIG" = x; then
  25411. PKGCONFIG="no"
  25412. else
  25413. case $cross_compiling:$ac_tool_warned in
  25414. yes:)
  25415. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  25416. printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  25417. ac_tool_warned=yes ;;
  25418. esac
  25419. PKGCONFIG=$ac_pt_PKGCONFIG
  25420. fi
  25421. else
  25422. PKGCONFIG="$ac_cv_path_PKGCONFIG"
  25423. fi
  25424. fi
  25425. if test "x$PKGCONFIG" != "xno"; then
  25426. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libidn2 options with pkg-config" >&5
  25427. printf %s "checking for libidn2 options with pkg-config... " >&6; }
  25428. itexists=`
  25429. if test -n ""; then
  25430. PKG_CONFIG_LIBDIR=""
  25431. export PKG_CONFIG_LIBDIR
  25432. fi
  25433. $PKGCONFIG --exists libidn2 >/dev/null 2>&1 && echo 1`
  25434. if test -z "$itexists"; then
  25435. PKGCONFIG="no"
  25436. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  25437. printf "%s\n" "no" >&6; }
  25438. else
  25439. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: found" >&5
  25440. printf "%s\n" "found" >&6; }
  25441. fi
  25442. fi
  25443. if test "$PKGCONFIG" != "no"; then
  25444. IDN_LIBS=`$PKGCONFIG --libs-only-l libidn2 2>/dev/null`
  25445. IDN_LDFLAGS=`$PKGCONFIG --libs-only-L libidn2 2>/dev/null`
  25446. IDN_CPPFLAGS=`$PKGCONFIG --cflags-only-I libidn2 2>/dev/null`
  25447. IDN_DIR=`echo $IDN_LDFLAGS | $SED -e 's/^-L//'`
  25448. else
  25449. IDN_LIBS="-lidn2"
  25450. fi
  25451. fi
  25452. #
  25453. if test "$PKGCONFIG" != "no"; then
  25454. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: pkg-config: IDN_LIBS: \"$IDN_LIBS\"" >&5
  25455. printf "%s\n" "$as_me: pkg-config: IDN_LIBS: \"$IDN_LIBS\"" >&6;}
  25456. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: pkg-config: IDN_LDFLAGS: \"$IDN_LDFLAGS\"" >&5
  25457. printf "%s\n" "$as_me: pkg-config: IDN_LDFLAGS: \"$IDN_LDFLAGS\"" >&6;}
  25458. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: pkg-config: IDN_CPPFLAGS: \"$IDN_CPPFLAGS\"" >&5
  25459. printf "%s\n" "$as_me: pkg-config: IDN_CPPFLAGS: \"$IDN_CPPFLAGS\"" >&6;}
  25460. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: pkg-config: IDN_DIR: \"$IDN_DIR\"" >&5
  25461. printf "%s\n" "$as_me: pkg-config: IDN_DIR: \"$IDN_DIR\"" >&6;}
  25462. else
  25463. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: IDN_LIBS: \"$IDN_LIBS\"" >&5
  25464. printf "%s\n" "$as_me: IDN_LIBS: \"$IDN_LIBS\"" >&6;}
  25465. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: IDN_LDFLAGS: \"$IDN_LDFLAGS\"" >&5
  25466. printf "%s\n" "$as_me: IDN_LDFLAGS: \"$IDN_LDFLAGS\"" >&6;}
  25467. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: IDN_CPPFLAGS: \"$IDN_CPPFLAGS\"" >&5
  25468. printf "%s\n" "$as_me: IDN_CPPFLAGS: \"$IDN_CPPFLAGS\"" >&6;}
  25469. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: IDN_DIR: \"$IDN_DIR\"" >&5
  25470. printf "%s\n" "$as_me: IDN_DIR: \"$IDN_DIR\"" >&6;}
  25471. fi
  25472. #
  25473. CPPFLAGS="$CPPFLAGS $IDN_CPPFLAGS"
  25474. LDFLAGS="$LDFLAGS $IDN_LDFLAGS"
  25475. LIBS="$IDN_LIBS $LIBS"
  25476. #
  25477. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if idn2_lookup_ul can be linked" >&5
  25478. printf %s "checking if idn2_lookup_ul can be linked... " >&6; }
  25479. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  25480. /* end confdefs.h. */
  25481. #define idn2_lookup_ul innocuous_idn2_lookup_ul
  25482. #ifdef __STDC__
  25483. # include <limits.h>
  25484. #else
  25485. # include <assert.h>
  25486. #endif
  25487. #undef idn2_lookup_ul
  25488. #ifdef __cplusplus
  25489. extern "C"
  25490. #endif
  25491. char idn2_lookup_ul ();
  25492. #if defined __stub_idn2_lookup_ul || defined __stub___idn2_lookup_ul
  25493. choke me
  25494. #endif
  25495. int main (void)
  25496. {
  25497. return idn2_lookup_ul ();
  25498. ;
  25499. return 0;
  25500. }
  25501. _ACEOF
  25502. if ac_fn_c_try_link "$LINENO"
  25503. then :
  25504. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  25505. printf "%s\n" "yes" >&6; }
  25506. tst_links_libidn="yes"
  25507. else $as_nop
  25508. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  25509. printf "%s\n" "no" >&6; }
  25510. tst_links_libidn="no"
  25511. fi
  25512. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  25513. conftest$ac_exeext conftest.$ac_ext
  25514. #
  25515. ac_fn_c_check_header_compile "$LINENO" "idn2.h" "ac_cv_header_idn2_h" "$ac_includes_default"
  25516. if test "x$ac_cv_header_idn2_h" = xyes
  25517. then :
  25518. printf "%s\n" "#define HAVE_IDN2_H 1" >>confdefs.h
  25519. fi
  25520. if test "$tst_links_libidn" = "yes"; then
  25521. printf "%s\n" "#define HAVE_LIBIDN2 1" >>confdefs.h
  25522. IDN_ENABLED=1
  25523. curl_idn_msg="enabled (libidn2)"
  25524. if test -n "$IDN_DIR" -a "x$cross_compiling" != "xyes"; then
  25525. CURL_LIBRARY_PATH="$CURL_LIBRARY_PATH:$IDN_DIR"
  25526. export CURL_LIBRARY_PATH
  25527. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: Added $IDN_DIR to CURL_LIBRARY_PATH" >&5
  25528. printf "%s\n" "$as_me: Added $IDN_DIR to CURL_LIBRARY_PATH" >&6;}
  25529. fi
  25530. else
  25531. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: Cannot find libraries for IDN support: IDN disabled" >&5
  25532. printf "%s\n" "$as_me: WARNING: Cannot find libraries for IDN support: IDN disabled" >&2;}
  25533. CPPFLAGS="$clean_CPPFLAGS"
  25534. LDFLAGS="$clean_LDFLAGS"
  25535. LIBS="$clean_LIBS"
  25536. fi
  25537. fi
  25538. OPT_H2="yes"
  25539. if test "x$disable_http" = "xyes" -o X"$want_hyper" != Xno; then
  25540. # without HTTP or with Hyper, nghttp2 is no use
  25541. OPT_H2="no"
  25542. fi
  25543. # Check whether --with-nghttp2 was given.
  25544. if test ${with_nghttp2+y}
  25545. then :
  25546. withval=$with_nghttp2; OPT_H2=$withval
  25547. fi
  25548. case "$OPT_H2" in
  25549. no)
  25550. want_nghttp2="no"
  25551. ;;
  25552. yes)
  25553. want_nghttp2="default"
  25554. want_nghttp2_path=""
  25555. ;;
  25556. *)
  25557. want_nghttp2="yes"
  25558. want_nghttp2_path="$withval/lib/pkgconfig"
  25559. ;;
  25560. esac
  25561. if test X"$want_nghttp2" != Xno; then
  25562. CLEANLDFLAGS="$LDFLAGS"
  25563. CLEANCPPFLAGS="$CPPFLAGS"
  25564. CLEANLIBS="$LIBS"
  25565. if test -n "$PKG_CONFIG"; then
  25566. PKGCONFIG="$PKG_CONFIG"
  25567. else
  25568. if test -n "$ac_tool_prefix"; then
  25569. # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
  25570. set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
  25571. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  25572. printf %s "checking for $ac_word... " >&6; }
  25573. if test ${ac_cv_path_PKGCONFIG+y}
  25574. then :
  25575. printf %s "(cached) " >&6
  25576. else $as_nop
  25577. case $PKGCONFIG in
  25578. [\\/]* | ?:[\\/]*)
  25579. ac_cv_path_PKGCONFIG="$PKGCONFIG" # Let the user override the test with a path.
  25580. ;;
  25581. *)
  25582. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  25583. as_dummy="$PATH:/usr/bin:/usr/local/bin"
  25584. for as_dir in $as_dummy
  25585. do
  25586. IFS=$as_save_IFS
  25587. case $as_dir in #(((
  25588. '') as_dir=./ ;;
  25589. */) ;;
  25590. *) as_dir=$as_dir/ ;;
  25591. esac
  25592. for ac_exec_ext in '' $ac_executable_extensions; do
  25593. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  25594. ac_cv_path_PKGCONFIG="$as_dir$ac_word$ac_exec_ext"
  25595. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  25596. break 2
  25597. fi
  25598. done
  25599. done
  25600. IFS=$as_save_IFS
  25601. ;;
  25602. esac
  25603. fi
  25604. PKGCONFIG=$ac_cv_path_PKGCONFIG
  25605. if test -n "$PKGCONFIG"; then
  25606. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PKGCONFIG" >&5
  25607. printf "%s\n" "$PKGCONFIG" >&6; }
  25608. else
  25609. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  25610. printf "%s\n" "no" >&6; }
  25611. fi
  25612. fi
  25613. if test -z "$ac_cv_path_PKGCONFIG"; then
  25614. ac_pt_PKGCONFIG=$PKGCONFIG
  25615. # Extract the first word of "pkg-config", so it can be a program name with args.
  25616. set dummy pkg-config; ac_word=$2
  25617. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  25618. printf %s "checking for $ac_word... " >&6; }
  25619. if test ${ac_cv_path_ac_pt_PKGCONFIG+y}
  25620. then :
  25621. printf %s "(cached) " >&6
  25622. else $as_nop
  25623. case $ac_pt_PKGCONFIG in
  25624. [\\/]* | ?:[\\/]*)
  25625. ac_cv_path_ac_pt_PKGCONFIG="$ac_pt_PKGCONFIG" # Let the user override the test with a path.
  25626. ;;
  25627. *)
  25628. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  25629. as_dummy="$PATH:/usr/bin:/usr/local/bin"
  25630. for as_dir in $as_dummy
  25631. do
  25632. IFS=$as_save_IFS
  25633. case $as_dir in #(((
  25634. '') as_dir=./ ;;
  25635. */) ;;
  25636. *) as_dir=$as_dir/ ;;
  25637. esac
  25638. for ac_exec_ext in '' $ac_executable_extensions; do
  25639. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  25640. ac_cv_path_ac_pt_PKGCONFIG="$as_dir$ac_word$ac_exec_ext"
  25641. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  25642. break 2
  25643. fi
  25644. done
  25645. done
  25646. IFS=$as_save_IFS
  25647. ;;
  25648. esac
  25649. fi
  25650. ac_pt_PKGCONFIG=$ac_cv_path_ac_pt_PKGCONFIG
  25651. if test -n "$ac_pt_PKGCONFIG"; then
  25652. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKGCONFIG" >&5
  25653. printf "%s\n" "$ac_pt_PKGCONFIG" >&6; }
  25654. else
  25655. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  25656. printf "%s\n" "no" >&6; }
  25657. fi
  25658. if test "x$ac_pt_PKGCONFIG" = x; then
  25659. PKGCONFIG="no"
  25660. else
  25661. case $cross_compiling:$ac_tool_warned in
  25662. yes:)
  25663. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  25664. printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  25665. ac_tool_warned=yes ;;
  25666. esac
  25667. PKGCONFIG=$ac_pt_PKGCONFIG
  25668. fi
  25669. else
  25670. PKGCONFIG="$ac_cv_path_PKGCONFIG"
  25671. fi
  25672. fi
  25673. if test "x$PKGCONFIG" != "xno"; then
  25674. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libnghttp2 options with pkg-config" >&5
  25675. printf %s "checking for libnghttp2 options with pkg-config... " >&6; }
  25676. itexists=`
  25677. if test -n "$want_nghttp2_path"; then
  25678. PKG_CONFIG_LIBDIR="$want_nghttp2_path"
  25679. export PKG_CONFIG_LIBDIR
  25680. fi
  25681. $PKGCONFIG --exists libnghttp2 >/dev/null 2>&1 && echo 1`
  25682. if test -z "$itexists"; then
  25683. PKGCONFIG="no"
  25684. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  25685. printf "%s\n" "no" >&6; }
  25686. else
  25687. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: found" >&5
  25688. printf "%s\n" "found" >&6; }
  25689. fi
  25690. fi
  25691. if test "$PKGCONFIG" != "no" ; then
  25692. LIB_H2=`
  25693. if test -n "$want_nghttp2_path"; then
  25694. PKG_CONFIG_LIBDIR="$want_nghttp2_path"
  25695. export PKG_CONFIG_LIBDIR
  25696. fi
  25697. $PKGCONFIG --libs-only-l libnghttp2`
  25698. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: -l is $LIB_H2" >&5
  25699. printf "%s\n" "$as_me: -l is $LIB_H2" >&6;}
  25700. CPP_H2=`
  25701. if test -n "$want_nghttp2_path"; then
  25702. PKG_CONFIG_LIBDIR="$want_nghttp2_path"
  25703. export PKG_CONFIG_LIBDIR
  25704. fi
  25705. $PKGCONFIG --cflags-only-I libnghttp2`
  25706. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: -I is $CPP_H2" >&5
  25707. printf "%s\n" "$as_me: -I is $CPP_H2" >&6;}
  25708. LD_H2=`
  25709. if test -n "$want_nghttp2_path"; then
  25710. PKG_CONFIG_LIBDIR="$want_nghttp2_path"
  25711. export PKG_CONFIG_LIBDIR
  25712. fi
  25713. $PKGCONFIG --libs-only-L libnghttp2`
  25714. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: -L is $LD_H2" >&5
  25715. printf "%s\n" "$as_me: -L is $LD_H2" >&6;}
  25716. LDFLAGS="$LDFLAGS $LD_H2"
  25717. CPPFLAGS="$CPPFLAGS $CPP_H2"
  25718. LIBS="$LIB_H2 $LIBS"
  25719. # use nghttp2_session_set_local_window_size to require nghttp2
  25720. # >= 1.12.0
  25721. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for nghttp2_session_set_local_window_size in -lnghttp2" >&5
  25722. printf %s "checking for nghttp2_session_set_local_window_size in -lnghttp2... " >&6; }
  25723. if test ${ac_cv_lib_nghttp2_nghttp2_session_set_local_window_size+y}
  25724. then :
  25725. printf %s "(cached) " >&6
  25726. else $as_nop
  25727. ac_check_lib_save_LIBS=$LIBS
  25728. LIBS="-lnghttp2 $LIBS"
  25729. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  25730. /* end confdefs.h. */
  25731. #ifdef __cplusplus
  25732. extern "C"
  25733. #endif
  25734. char nghttp2_session_set_local_window_size ();
  25735. int main (void)
  25736. {
  25737. return nghttp2_session_set_local_window_size ();
  25738. ;
  25739. return 0;
  25740. }
  25741. _ACEOF
  25742. if ac_fn_c_try_link "$LINENO"
  25743. then :
  25744. ac_cv_lib_nghttp2_nghttp2_session_set_local_window_size=yes
  25745. else $as_nop
  25746. ac_cv_lib_nghttp2_nghttp2_session_set_local_window_size=no
  25747. fi
  25748. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  25749. conftest$ac_exeext conftest.$ac_ext
  25750. LIBS=$ac_check_lib_save_LIBS
  25751. fi
  25752. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nghttp2_nghttp2_session_set_local_window_size" >&5
  25753. printf "%s\n" "$ac_cv_lib_nghttp2_nghttp2_session_set_local_window_size" >&6; }
  25754. if test "x$ac_cv_lib_nghttp2_nghttp2_session_set_local_window_size" = xyes
  25755. then :
  25756. for ac_header in nghttp2/nghttp2.h
  25757. do :
  25758. ac_fn_c_check_header_compile "$LINENO" "nghttp2/nghttp2.h" "ac_cv_header_nghttp2_nghttp2_h" "$ac_includes_default"
  25759. if test "x$ac_cv_header_nghttp2_nghttp2_h" = xyes
  25760. then :
  25761. printf "%s\n" "#define HAVE_NGHTTP2_NGHTTP2_H 1" >>confdefs.h
  25762. curl_h2_msg="enabled (nghttp2)"
  25763. NGHTTP2_ENABLED=1
  25764. printf "%s\n" "#define USE_NGHTTP2 1" >>confdefs.h
  25765. USE_NGHTTP2=1
  25766. fi
  25767. done
  25768. else $as_nop
  25769. LDFLAGS=$CLEANLDFLAGS
  25770. CPPFLAGS=$CLEANCPPFLAGS
  25771. LIBS=$CLEANLIBS
  25772. fi
  25773. else
  25774. if test X"$want_nghttp2" != Xdefault; then
  25775. as_fn_error $? "--with-nghttp2 was specified but could not find libnghttp2 pkg-config file." "$LINENO" 5
  25776. fi
  25777. fi
  25778. fi
  25779. OPT_TCP2="yes"
  25780. if test "x$disable_http" = "xyes"; then
  25781. # without HTTP, ngtcp2 is no use
  25782. OPT_TCP2="no"
  25783. fi
  25784. # Check whether --with-ngtcp2 was given.
  25785. if test ${with_ngtcp2+y}
  25786. then :
  25787. withval=$with_ngtcp2; OPT_TCP2=$withval
  25788. fi
  25789. case "$OPT_TCP2" in
  25790. no)
  25791. want_tcp2="no"
  25792. ;;
  25793. yes)
  25794. want_tcp2="default"
  25795. want_tcp2_path=""
  25796. ;;
  25797. *)
  25798. want_tcp2="yes"
  25799. want_tcp2_path="$withval/lib/pkgconfig"
  25800. ;;
  25801. esac
  25802. curl_tcp2_msg="no (--with-ngtcp2)"
  25803. if test X"$want_tcp2" != Xno; then
  25804. CLEANLDFLAGS="$LDFLAGS"
  25805. CLEANCPPFLAGS="$CPPFLAGS"
  25806. CLEANLIBS="$LIBS"
  25807. if test -n "$PKG_CONFIG"; then
  25808. PKGCONFIG="$PKG_CONFIG"
  25809. else
  25810. if test -n "$ac_tool_prefix"; then
  25811. # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
  25812. set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
  25813. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  25814. printf %s "checking for $ac_word... " >&6; }
  25815. if test ${ac_cv_path_PKGCONFIG+y}
  25816. then :
  25817. printf %s "(cached) " >&6
  25818. else $as_nop
  25819. case $PKGCONFIG in
  25820. [\\/]* | ?:[\\/]*)
  25821. ac_cv_path_PKGCONFIG="$PKGCONFIG" # Let the user override the test with a path.
  25822. ;;
  25823. *)
  25824. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  25825. as_dummy="$PATH:/usr/bin:/usr/local/bin"
  25826. for as_dir in $as_dummy
  25827. do
  25828. IFS=$as_save_IFS
  25829. case $as_dir in #(((
  25830. '') as_dir=./ ;;
  25831. */) ;;
  25832. *) as_dir=$as_dir/ ;;
  25833. esac
  25834. for ac_exec_ext in '' $ac_executable_extensions; do
  25835. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  25836. ac_cv_path_PKGCONFIG="$as_dir$ac_word$ac_exec_ext"
  25837. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  25838. break 2
  25839. fi
  25840. done
  25841. done
  25842. IFS=$as_save_IFS
  25843. ;;
  25844. esac
  25845. fi
  25846. PKGCONFIG=$ac_cv_path_PKGCONFIG
  25847. if test -n "$PKGCONFIG"; then
  25848. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PKGCONFIG" >&5
  25849. printf "%s\n" "$PKGCONFIG" >&6; }
  25850. else
  25851. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  25852. printf "%s\n" "no" >&6; }
  25853. fi
  25854. fi
  25855. if test -z "$ac_cv_path_PKGCONFIG"; then
  25856. ac_pt_PKGCONFIG=$PKGCONFIG
  25857. # Extract the first word of "pkg-config", so it can be a program name with args.
  25858. set dummy pkg-config; ac_word=$2
  25859. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  25860. printf %s "checking for $ac_word... " >&6; }
  25861. if test ${ac_cv_path_ac_pt_PKGCONFIG+y}
  25862. then :
  25863. printf %s "(cached) " >&6
  25864. else $as_nop
  25865. case $ac_pt_PKGCONFIG in
  25866. [\\/]* | ?:[\\/]*)
  25867. ac_cv_path_ac_pt_PKGCONFIG="$ac_pt_PKGCONFIG" # Let the user override the test with a path.
  25868. ;;
  25869. *)
  25870. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  25871. as_dummy="$PATH:/usr/bin:/usr/local/bin"
  25872. for as_dir in $as_dummy
  25873. do
  25874. IFS=$as_save_IFS
  25875. case $as_dir in #(((
  25876. '') as_dir=./ ;;
  25877. */) ;;
  25878. *) as_dir=$as_dir/ ;;
  25879. esac
  25880. for ac_exec_ext in '' $ac_executable_extensions; do
  25881. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  25882. ac_cv_path_ac_pt_PKGCONFIG="$as_dir$ac_word$ac_exec_ext"
  25883. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  25884. break 2
  25885. fi
  25886. done
  25887. done
  25888. IFS=$as_save_IFS
  25889. ;;
  25890. esac
  25891. fi
  25892. ac_pt_PKGCONFIG=$ac_cv_path_ac_pt_PKGCONFIG
  25893. if test -n "$ac_pt_PKGCONFIG"; then
  25894. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKGCONFIG" >&5
  25895. printf "%s\n" "$ac_pt_PKGCONFIG" >&6; }
  25896. else
  25897. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  25898. printf "%s\n" "no" >&6; }
  25899. fi
  25900. if test "x$ac_pt_PKGCONFIG" = x; then
  25901. PKGCONFIG="no"
  25902. else
  25903. case $cross_compiling:$ac_tool_warned in
  25904. yes:)
  25905. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  25906. printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  25907. ac_tool_warned=yes ;;
  25908. esac
  25909. PKGCONFIG=$ac_pt_PKGCONFIG
  25910. fi
  25911. else
  25912. PKGCONFIG="$ac_cv_path_PKGCONFIG"
  25913. fi
  25914. fi
  25915. if test "x$PKGCONFIG" != "xno"; then
  25916. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libngtcp2 options with pkg-config" >&5
  25917. printf %s "checking for libngtcp2 options with pkg-config... " >&6; }
  25918. itexists=`
  25919. if test -n "$want_tcp2_path"; then
  25920. PKG_CONFIG_LIBDIR="$want_tcp2_path"
  25921. export PKG_CONFIG_LIBDIR
  25922. fi
  25923. $PKGCONFIG --exists libngtcp2 >/dev/null 2>&1 && echo 1`
  25924. if test -z "$itexists"; then
  25925. PKGCONFIG="no"
  25926. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  25927. printf "%s\n" "no" >&6; }
  25928. else
  25929. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: found" >&5
  25930. printf "%s\n" "found" >&6; }
  25931. fi
  25932. fi
  25933. if test "$PKGCONFIG" != "no" ; then
  25934. LIB_TCP2=`
  25935. if test -n "$want_tcp2_path"; then
  25936. PKG_CONFIG_LIBDIR="$want_tcp2_path"
  25937. export PKG_CONFIG_LIBDIR
  25938. fi
  25939. $PKGCONFIG --libs-only-l libngtcp2`
  25940. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: -l is $LIB_TCP2" >&5
  25941. printf "%s\n" "$as_me: -l is $LIB_TCP2" >&6;}
  25942. CPP_TCP2=`
  25943. if test -n "$want_tcp2_path"; then
  25944. PKG_CONFIG_LIBDIR="$want_tcp2_path"
  25945. export PKG_CONFIG_LIBDIR
  25946. fi
  25947. $PKGCONFIG --cflags-only-I libngtcp2`
  25948. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: -I is $CPP_TCP2" >&5
  25949. printf "%s\n" "$as_me: -I is $CPP_TCP2" >&6;}
  25950. LD_TCP2=`
  25951. if test -n "$want_tcp2_path"; then
  25952. PKG_CONFIG_LIBDIR="$want_tcp2_path"
  25953. export PKG_CONFIG_LIBDIR
  25954. fi
  25955. $PKGCONFIG --libs-only-L libngtcp2`
  25956. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: -L is $LD_TCP2" >&5
  25957. printf "%s\n" "$as_me: -L is $LD_TCP2" >&6;}
  25958. LDFLAGS="$LDFLAGS $LD_TCP2"
  25959. CPPFLAGS="$CPPFLAGS $CPP_TCP2"
  25960. LIBS="$LIB_TCP2 $LIBS"
  25961. if test "x$cross_compiling" != "xyes"; then
  25962. DIR_TCP2=`echo $LD_TCP2 | $SED -e 's/^-L//'`
  25963. fi
  25964. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ngtcp2_conn_client_new_versioned in -lngtcp2" >&5
  25965. printf %s "checking for ngtcp2_conn_client_new_versioned in -lngtcp2... " >&6; }
  25966. if test ${ac_cv_lib_ngtcp2_ngtcp2_conn_client_new_versioned+y}
  25967. then :
  25968. printf %s "(cached) " >&6
  25969. else $as_nop
  25970. ac_check_lib_save_LIBS=$LIBS
  25971. LIBS="-lngtcp2 $LIBS"
  25972. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  25973. /* end confdefs.h. */
  25974. #ifdef __cplusplus
  25975. extern "C"
  25976. #endif
  25977. char ngtcp2_conn_client_new_versioned ();
  25978. int main (void)
  25979. {
  25980. return ngtcp2_conn_client_new_versioned ();
  25981. ;
  25982. return 0;
  25983. }
  25984. _ACEOF
  25985. if ac_fn_c_try_link "$LINENO"
  25986. then :
  25987. ac_cv_lib_ngtcp2_ngtcp2_conn_client_new_versioned=yes
  25988. else $as_nop
  25989. ac_cv_lib_ngtcp2_ngtcp2_conn_client_new_versioned=no
  25990. fi
  25991. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  25992. conftest$ac_exeext conftest.$ac_ext
  25993. LIBS=$ac_check_lib_save_LIBS
  25994. fi
  25995. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ngtcp2_ngtcp2_conn_client_new_versioned" >&5
  25996. printf "%s\n" "$ac_cv_lib_ngtcp2_ngtcp2_conn_client_new_versioned" >&6; }
  25997. if test "x$ac_cv_lib_ngtcp2_ngtcp2_conn_client_new_versioned" = xyes
  25998. then :
  25999. for ac_header in ngtcp2/ngtcp2.h
  26000. do :
  26001. ac_fn_c_check_header_compile "$LINENO" "ngtcp2/ngtcp2.h" "ac_cv_header_ngtcp2_ngtcp2_h" "$ac_includes_default"
  26002. if test "x$ac_cv_header_ngtcp2_ngtcp2_h" = xyes
  26003. then :
  26004. printf "%s\n" "#define HAVE_NGTCP2_NGTCP2_H 1" >>confdefs.h
  26005. NGTCP2_ENABLED=1
  26006. printf "%s\n" "#define USE_NGTCP2 1" >>confdefs.h
  26007. USE_NGTCP2=1
  26008. CURL_LIBRARY_PATH="$CURL_LIBRARY_PATH:$DIR_TCP2"
  26009. export CURL_LIBRARY_PATH
  26010. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: Added $DIR_TCP2 to CURL_LIBRARY_PATH" >&5
  26011. printf "%s\n" "$as_me: Added $DIR_TCP2 to CURL_LIBRARY_PATH" >&6;}
  26012. fi
  26013. done
  26014. else $as_nop
  26015. LDFLAGS=$CLEANLDFLAGS
  26016. CPPFLAGS=$CLEANCPPFLAGS
  26017. LIBS=$CLEANLIBS
  26018. fi
  26019. else
  26020. if test X"$want_tcp2" != Xdefault; then
  26021. as_fn_error $? "--with-ngtcp2 was specified but could not find ngtcp2 pkg-config file." "$LINENO" 5
  26022. fi
  26023. fi
  26024. fi
  26025. if test "x$NGTCP2_ENABLED" = "x1" -a "x$OPENSSL_ENABLED" = "x1"; then
  26026. CLEANLDFLAGS="$LDFLAGS"
  26027. CLEANCPPFLAGS="$CPPFLAGS"
  26028. CLEANLIBS="$LIBS"
  26029. if test -n "$PKG_CONFIG"; then
  26030. PKGCONFIG="$PKG_CONFIG"
  26031. else
  26032. if test -n "$ac_tool_prefix"; then
  26033. # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
  26034. set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
  26035. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  26036. printf %s "checking for $ac_word... " >&6; }
  26037. if test ${ac_cv_path_PKGCONFIG+y}
  26038. then :
  26039. printf %s "(cached) " >&6
  26040. else $as_nop
  26041. case $PKGCONFIG in
  26042. [\\/]* | ?:[\\/]*)
  26043. ac_cv_path_PKGCONFIG="$PKGCONFIG" # Let the user override the test with a path.
  26044. ;;
  26045. *)
  26046. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  26047. as_dummy="$PATH:/usr/bin:/usr/local/bin"
  26048. for as_dir in $as_dummy
  26049. do
  26050. IFS=$as_save_IFS
  26051. case $as_dir in #(((
  26052. '') as_dir=./ ;;
  26053. */) ;;
  26054. *) as_dir=$as_dir/ ;;
  26055. esac
  26056. for ac_exec_ext in '' $ac_executable_extensions; do
  26057. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  26058. ac_cv_path_PKGCONFIG="$as_dir$ac_word$ac_exec_ext"
  26059. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  26060. break 2
  26061. fi
  26062. done
  26063. done
  26064. IFS=$as_save_IFS
  26065. ;;
  26066. esac
  26067. fi
  26068. PKGCONFIG=$ac_cv_path_PKGCONFIG
  26069. if test -n "$PKGCONFIG"; then
  26070. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PKGCONFIG" >&5
  26071. printf "%s\n" "$PKGCONFIG" >&6; }
  26072. else
  26073. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  26074. printf "%s\n" "no" >&6; }
  26075. fi
  26076. fi
  26077. if test -z "$ac_cv_path_PKGCONFIG"; then
  26078. ac_pt_PKGCONFIG=$PKGCONFIG
  26079. # Extract the first word of "pkg-config", so it can be a program name with args.
  26080. set dummy pkg-config; ac_word=$2
  26081. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  26082. printf %s "checking for $ac_word... " >&6; }
  26083. if test ${ac_cv_path_ac_pt_PKGCONFIG+y}
  26084. then :
  26085. printf %s "(cached) " >&6
  26086. else $as_nop
  26087. case $ac_pt_PKGCONFIG in
  26088. [\\/]* | ?:[\\/]*)
  26089. ac_cv_path_ac_pt_PKGCONFIG="$ac_pt_PKGCONFIG" # Let the user override the test with a path.
  26090. ;;
  26091. *)
  26092. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  26093. as_dummy="$PATH:/usr/bin:/usr/local/bin"
  26094. for as_dir in $as_dummy
  26095. do
  26096. IFS=$as_save_IFS
  26097. case $as_dir in #(((
  26098. '') as_dir=./ ;;
  26099. */) ;;
  26100. *) as_dir=$as_dir/ ;;
  26101. esac
  26102. for ac_exec_ext in '' $ac_executable_extensions; do
  26103. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  26104. ac_cv_path_ac_pt_PKGCONFIG="$as_dir$ac_word$ac_exec_ext"
  26105. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  26106. break 2
  26107. fi
  26108. done
  26109. done
  26110. IFS=$as_save_IFS
  26111. ;;
  26112. esac
  26113. fi
  26114. ac_pt_PKGCONFIG=$ac_cv_path_ac_pt_PKGCONFIG
  26115. if test -n "$ac_pt_PKGCONFIG"; then
  26116. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKGCONFIG" >&5
  26117. printf "%s\n" "$ac_pt_PKGCONFIG" >&6; }
  26118. else
  26119. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  26120. printf "%s\n" "no" >&6; }
  26121. fi
  26122. if test "x$ac_pt_PKGCONFIG" = x; then
  26123. PKGCONFIG="no"
  26124. else
  26125. case $cross_compiling:$ac_tool_warned in
  26126. yes:)
  26127. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  26128. printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  26129. ac_tool_warned=yes ;;
  26130. esac
  26131. PKGCONFIG=$ac_pt_PKGCONFIG
  26132. fi
  26133. else
  26134. PKGCONFIG="$ac_cv_path_PKGCONFIG"
  26135. fi
  26136. fi
  26137. if test "x$PKGCONFIG" != "xno"; then
  26138. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libngtcp2_crypto_openssl options with pkg-config" >&5
  26139. printf %s "checking for libngtcp2_crypto_openssl options with pkg-config... " >&6; }
  26140. itexists=`
  26141. if test -n "$want_tcp2_path"; then
  26142. PKG_CONFIG_LIBDIR="$want_tcp2_path"
  26143. export PKG_CONFIG_LIBDIR
  26144. fi
  26145. $PKGCONFIG --exists libngtcp2_crypto_openssl >/dev/null 2>&1 && echo 1`
  26146. if test -z "$itexists"; then
  26147. PKGCONFIG="no"
  26148. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  26149. printf "%s\n" "no" >&6; }
  26150. else
  26151. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: found" >&5
  26152. printf "%s\n" "found" >&6; }
  26153. fi
  26154. fi
  26155. if test "$PKGCONFIG" != "no" ; then
  26156. LIB_NGTCP2_CRYPTO_OPENSSL=`
  26157. if test -n "$want_tcp2_path"; then
  26158. PKG_CONFIG_LIBDIR="$want_tcp2_path"
  26159. export PKG_CONFIG_LIBDIR
  26160. fi
  26161. $PKGCONFIG --libs-only-l libngtcp2_crypto_openssl`
  26162. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: -l is $LIB_NGTCP2_CRYPTO_OPENSSL" >&5
  26163. printf "%s\n" "$as_me: -l is $LIB_NGTCP2_CRYPTO_OPENSSL" >&6;}
  26164. CPP_NGTCP2_CRYPTO_OPENSSL=`
  26165. if test -n "$want_tcp2_path"; then
  26166. PKG_CONFIG_LIBDIR="$want_tcp2_path"
  26167. export PKG_CONFIG_LIBDIR
  26168. fi
  26169. $PKGCONFIG --cflags-only-I libngtcp2_crypto_openssl`
  26170. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: -I is $CPP_NGTCP2_CRYPTO_OPENSSL" >&5
  26171. printf "%s\n" "$as_me: -I is $CPP_NGTCP2_CRYPTO_OPENSSL" >&6;}
  26172. LD_NGTCP2_CRYPTO_OPENSSL=`
  26173. if test -n "$want_tcp2_path"; then
  26174. PKG_CONFIG_LIBDIR="$want_tcp2_path"
  26175. export PKG_CONFIG_LIBDIR
  26176. fi
  26177. $PKGCONFIG --libs-only-L libngtcp2_crypto_openssl`
  26178. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: -L is $LD_NGTCP2_CRYPTO_OPENSSL" >&5
  26179. printf "%s\n" "$as_me: -L is $LD_NGTCP2_CRYPTO_OPENSSL" >&6;}
  26180. LDFLAGS="$LDFLAGS $LD_NGTCP2_CRYPTO_OPENSSL"
  26181. CPPFLAGS="$CPPFLAGS $CPP_NGTCP2_CRYPTO_OPENSSL"
  26182. LIBS="$LIB_NGTCP2_CRYPTO_OPENSSL $LIBS"
  26183. if test "x$cross_compiling" != "xyes"; then
  26184. DIR_NGTCP2_CRYPTO_OPENSSL=`echo $LD_NGTCP2_CRYPTO_OPENSSL | $SED -e 's/^-L//'`
  26185. fi
  26186. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ngtcp2_crypto_ctx_initial in -lngtcp2_crypto_openssl" >&5
  26187. printf %s "checking for ngtcp2_crypto_ctx_initial in -lngtcp2_crypto_openssl... " >&6; }
  26188. if test ${ac_cv_lib_ngtcp2_crypto_openssl_ngtcp2_crypto_ctx_initial+y}
  26189. then :
  26190. printf %s "(cached) " >&6
  26191. else $as_nop
  26192. ac_check_lib_save_LIBS=$LIBS
  26193. LIBS="-lngtcp2_crypto_openssl $LIBS"
  26194. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  26195. /* end confdefs.h. */
  26196. #ifdef __cplusplus
  26197. extern "C"
  26198. #endif
  26199. char ngtcp2_crypto_ctx_initial ();
  26200. int main (void)
  26201. {
  26202. return ngtcp2_crypto_ctx_initial ();
  26203. ;
  26204. return 0;
  26205. }
  26206. _ACEOF
  26207. if ac_fn_c_try_link "$LINENO"
  26208. then :
  26209. ac_cv_lib_ngtcp2_crypto_openssl_ngtcp2_crypto_ctx_initial=yes
  26210. else $as_nop
  26211. ac_cv_lib_ngtcp2_crypto_openssl_ngtcp2_crypto_ctx_initial=no
  26212. fi
  26213. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  26214. conftest$ac_exeext conftest.$ac_ext
  26215. LIBS=$ac_check_lib_save_LIBS
  26216. fi
  26217. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ngtcp2_crypto_openssl_ngtcp2_crypto_ctx_initial" >&5
  26218. printf "%s\n" "$ac_cv_lib_ngtcp2_crypto_openssl_ngtcp2_crypto_ctx_initial" >&6; }
  26219. if test "x$ac_cv_lib_ngtcp2_crypto_openssl_ngtcp2_crypto_ctx_initial" = xyes
  26220. then :
  26221. for ac_header in ngtcp2/ngtcp2_crypto.h
  26222. do :
  26223. ac_fn_c_check_header_compile "$LINENO" "ngtcp2/ngtcp2_crypto.h" "ac_cv_header_ngtcp2_ngtcp2_crypto_h" "$ac_includes_default"
  26224. if test "x$ac_cv_header_ngtcp2_ngtcp2_crypto_h" = xyes
  26225. then :
  26226. printf "%s\n" "#define HAVE_NGTCP2_NGTCP2_CRYPTO_H 1" >>confdefs.h
  26227. NGTCP2_ENABLED=1
  26228. printf "%s\n" "#define USE_NGTCP2_CRYPTO_OPENSSL 1" >>confdefs.h
  26229. USE_NGTCP2_CRYPTO_OPENSSL=1
  26230. CURL_LIBRARY_PATH="$CURL_LIBRARY_PATH:$DIR_NGTCP2_CRYPTO_OPENSSL"
  26231. export CURL_LIBRARY_PATH
  26232. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: Added $DIR_NGTCP2_CRYPTO_OPENSSL to CURL_LIBRARY_PATH" >&5
  26233. printf "%s\n" "$as_me: Added $DIR_NGTCP2_CRYPTO_OPENSSL to CURL_LIBRARY_PATH" >&6;}
  26234. fi
  26235. done
  26236. else $as_nop
  26237. LDFLAGS=$CLEANLDFLAGS
  26238. CPPFLAGS=$CLEANCPPFLAGS
  26239. LIBS=$CLEANLIBS
  26240. fi
  26241. else
  26242. if test X"$want_tcp2" != Xdefault; then
  26243. as_fn_error $? "--with-ngtcp2 was specified but could not find ngtcp2_crypto_openssl pkg-config file." "$LINENO" 5
  26244. fi
  26245. fi
  26246. fi
  26247. if test "x$NGTCP2_ENABLED" = "x1" -a "x$GNUTLS_ENABLED" = "x1"; then
  26248. CLEANLDFLAGS="$LDFLAGS"
  26249. CLEANCPPFLAGS="$CPPFLAGS"
  26250. CLEANLIBS="$LIBS"
  26251. if test -n "$PKG_CONFIG"; then
  26252. PKGCONFIG="$PKG_CONFIG"
  26253. else
  26254. if test -n "$ac_tool_prefix"; then
  26255. # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
  26256. set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
  26257. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  26258. printf %s "checking for $ac_word... " >&6; }
  26259. if test ${ac_cv_path_PKGCONFIG+y}
  26260. then :
  26261. printf %s "(cached) " >&6
  26262. else $as_nop
  26263. case $PKGCONFIG in
  26264. [\\/]* | ?:[\\/]*)
  26265. ac_cv_path_PKGCONFIG="$PKGCONFIG" # Let the user override the test with a path.
  26266. ;;
  26267. *)
  26268. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  26269. as_dummy="$PATH:/usr/bin:/usr/local/bin"
  26270. for as_dir in $as_dummy
  26271. do
  26272. IFS=$as_save_IFS
  26273. case $as_dir in #(((
  26274. '') as_dir=./ ;;
  26275. */) ;;
  26276. *) as_dir=$as_dir/ ;;
  26277. esac
  26278. for ac_exec_ext in '' $ac_executable_extensions; do
  26279. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  26280. ac_cv_path_PKGCONFIG="$as_dir$ac_word$ac_exec_ext"
  26281. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  26282. break 2
  26283. fi
  26284. done
  26285. done
  26286. IFS=$as_save_IFS
  26287. ;;
  26288. esac
  26289. fi
  26290. PKGCONFIG=$ac_cv_path_PKGCONFIG
  26291. if test -n "$PKGCONFIG"; then
  26292. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PKGCONFIG" >&5
  26293. printf "%s\n" "$PKGCONFIG" >&6; }
  26294. else
  26295. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  26296. printf "%s\n" "no" >&6; }
  26297. fi
  26298. fi
  26299. if test -z "$ac_cv_path_PKGCONFIG"; then
  26300. ac_pt_PKGCONFIG=$PKGCONFIG
  26301. # Extract the first word of "pkg-config", so it can be a program name with args.
  26302. set dummy pkg-config; ac_word=$2
  26303. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  26304. printf %s "checking for $ac_word... " >&6; }
  26305. if test ${ac_cv_path_ac_pt_PKGCONFIG+y}
  26306. then :
  26307. printf %s "(cached) " >&6
  26308. else $as_nop
  26309. case $ac_pt_PKGCONFIG in
  26310. [\\/]* | ?:[\\/]*)
  26311. ac_cv_path_ac_pt_PKGCONFIG="$ac_pt_PKGCONFIG" # Let the user override the test with a path.
  26312. ;;
  26313. *)
  26314. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  26315. as_dummy="$PATH:/usr/bin:/usr/local/bin"
  26316. for as_dir in $as_dummy
  26317. do
  26318. IFS=$as_save_IFS
  26319. case $as_dir in #(((
  26320. '') as_dir=./ ;;
  26321. */) ;;
  26322. *) as_dir=$as_dir/ ;;
  26323. esac
  26324. for ac_exec_ext in '' $ac_executable_extensions; do
  26325. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  26326. ac_cv_path_ac_pt_PKGCONFIG="$as_dir$ac_word$ac_exec_ext"
  26327. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  26328. break 2
  26329. fi
  26330. done
  26331. done
  26332. IFS=$as_save_IFS
  26333. ;;
  26334. esac
  26335. fi
  26336. ac_pt_PKGCONFIG=$ac_cv_path_ac_pt_PKGCONFIG
  26337. if test -n "$ac_pt_PKGCONFIG"; then
  26338. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKGCONFIG" >&5
  26339. printf "%s\n" "$ac_pt_PKGCONFIG" >&6; }
  26340. else
  26341. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  26342. printf "%s\n" "no" >&6; }
  26343. fi
  26344. if test "x$ac_pt_PKGCONFIG" = x; then
  26345. PKGCONFIG="no"
  26346. else
  26347. case $cross_compiling:$ac_tool_warned in
  26348. yes:)
  26349. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  26350. printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  26351. ac_tool_warned=yes ;;
  26352. esac
  26353. PKGCONFIG=$ac_pt_PKGCONFIG
  26354. fi
  26355. else
  26356. PKGCONFIG="$ac_cv_path_PKGCONFIG"
  26357. fi
  26358. fi
  26359. if test "x$PKGCONFIG" != "xno"; then
  26360. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libngtcp2_crypto_gnutls options with pkg-config" >&5
  26361. printf %s "checking for libngtcp2_crypto_gnutls options with pkg-config... " >&6; }
  26362. itexists=`
  26363. if test -n "$want_tcp2_path"; then
  26364. PKG_CONFIG_LIBDIR="$want_tcp2_path"
  26365. export PKG_CONFIG_LIBDIR
  26366. fi
  26367. $PKGCONFIG --exists libngtcp2_crypto_gnutls >/dev/null 2>&1 && echo 1`
  26368. if test -z "$itexists"; then
  26369. PKGCONFIG="no"
  26370. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  26371. printf "%s\n" "no" >&6; }
  26372. else
  26373. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: found" >&5
  26374. printf "%s\n" "found" >&6; }
  26375. fi
  26376. fi
  26377. if test "$PKGCONFIG" != "no" ; then
  26378. LIB_NGTCP2_CRYPTO_GNUTLS=`
  26379. if test -n "$want_tcp2_path"; then
  26380. PKG_CONFIG_LIBDIR="$want_tcp2_path"
  26381. export PKG_CONFIG_LIBDIR
  26382. fi
  26383. $PKGCONFIG --libs-only-l libngtcp2_crypto_gnutls`
  26384. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: -l is $LIB_NGTCP2_CRYPTO_GNUTLS" >&5
  26385. printf "%s\n" "$as_me: -l is $LIB_NGTCP2_CRYPTO_GNUTLS" >&6;}
  26386. CPP_NGTCP2_CRYPTO_GNUTLS=`
  26387. if test -n "$want_tcp2_path"; then
  26388. PKG_CONFIG_LIBDIR="$want_tcp2_path"
  26389. export PKG_CONFIG_LIBDIR
  26390. fi
  26391. $PKGCONFIG --cflags-only-I libngtcp2_crypto_gnutls`
  26392. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: -I is $CPP_NGTCP2_CRYPTO_GNUTLS" >&5
  26393. printf "%s\n" "$as_me: -I is $CPP_NGTCP2_CRYPTO_GNUTLS" >&6;}
  26394. LD_NGTCP2_CRYPTO_GNUTLS=`
  26395. if test -n "$want_tcp2_path"; then
  26396. PKG_CONFIG_LIBDIR="$want_tcp2_path"
  26397. export PKG_CONFIG_LIBDIR
  26398. fi
  26399. $PKGCONFIG --libs-only-L libngtcp2_crypto_gnutls`
  26400. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: -L is $LD_NGTCP2_CRYPTO_GNUTLS" >&5
  26401. printf "%s\n" "$as_me: -L is $LD_NGTCP2_CRYPTO_GNUTLS" >&6;}
  26402. LDFLAGS="$LDFLAGS $LD_NGTCP2_CRYPTO_GNUTLS"
  26403. CPPFLAGS="$CPPFLAGS $CPP_NGTCP2_CRYPTO_GNUTLS"
  26404. LIBS="$LIB_NGTCP2_CRYPTO_GNUTLS $LIBS"
  26405. if test "x$cross_compiling" != "xyes"; then
  26406. DIR_NGTCP2_CRYPTO_GNUTLS=`echo $LD_NGTCP2_CRYPTO_GNUTLS | $SED -e 's/^-L//'`
  26407. fi
  26408. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ngtcp2_crypto_ctx_initial in -lngtcp2_crypto_gnutls" >&5
  26409. printf %s "checking for ngtcp2_crypto_ctx_initial in -lngtcp2_crypto_gnutls... " >&6; }
  26410. if test ${ac_cv_lib_ngtcp2_crypto_gnutls_ngtcp2_crypto_ctx_initial+y}
  26411. then :
  26412. printf %s "(cached) " >&6
  26413. else $as_nop
  26414. ac_check_lib_save_LIBS=$LIBS
  26415. LIBS="-lngtcp2_crypto_gnutls $LIBS"
  26416. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  26417. /* end confdefs.h. */
  26418. #ifdef __cplusplus
  26419. extern "C"
  26420. #endif
  26421. char ngtcp2_crypto_ctx_initial ();
  26422. int main (void)
  26423. {
  26424. return ngtcp2_crypto_ctx_initial ();
  26425. ;
  26426. return 0;
  26427. }
  26428. _ACEOF
  26429. if ac_fn_c_try_link "$LINENO"
  26430. then :
  26431. ac_cv_lib_ngtcp2_crypto_gnutls_ngtcp2_crypto_ctx_initial=yes
  26432. else $as_nop
  26433. ac_cv_lib_ngtcp2_crypto_gnutls_ngtcp2_crypto_ctx_initial=no
  26434. fi
  26435. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  26436. conftest$ac_exeext conftest.$ac_ext
  26437. LIBS=$ac_check_lib_save_LIBS
  26438. fi
  26439. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ngtcp2_crypto_gnutls_ngtcp2_crypto_ctx_initial" >&5
  26440. printf "%s\n" "$ac_cv_lib_ngtcp2_crypto_gnutls_ngtcp2_crypto_ctx_initial" >&6; }
  26441. if test "x$ac_cv_lib_ngtcp2_crypto_gnutls_ngtcp2_crypto_ctx_initial" = xyes
  26442. then :
  26443. for ac_header in ngtcp2/ngtcp2_crypto.h
  26444. do :
  26445. ac_fn_c_check_header_compile "$LINENO" "ngtcp2/ngtcp2_crypto.h" "ac_cv_header_ngtcp2_ngtcp2_crypto_h" "$ac_includes_default"
  26446. if test "x$ac_cv_header_ngtcp2_ngtcp2_crypto_h" = xyes
  26447. then :
  26448. printf "%s\n" "#define HAVE_NGTCP2_NGTCP2_CRYPTO_H 1" >>confdefs.h
  26449. NGTCP2_ENABLED=1
  26450. printf "%s\n" "#define USE_NGTCP2_CRYPTO_GNUTLS 1" >>confdefs.h
  26451. USE_NGTCP2_CRYPTO_GNUTLS=1
  26452. CURL_LIBRARY_PATH="$CURL_LIBRARY_PATH:$DIR_NGTCP2_CRYPTO_GNUTLS"
  26453. export CURL_LIBRARY_PATH
  26454. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: Added $DIR_NGTCP2_CRYPTO_GNUTLS to CURL_LIBRARY_PATH" >&5
  26455. printf "%s\n" "$as_me: Added $DIR_NGTCP2_CRYPTO_GNUTLS to CURL_LIBRARY_PATH" >&6;}
  26456. fi
  26457. done
  26458. else $as_nop
  26459. LDFLAGS=$CLEANLDFLAGS
  26460. CPPFLAGS=$CLEANCPPFLAGS
  26461. LIBS=$CLEANLIBS
  26462. fi
  26463. else
  26464. if test X"$want_tcp2" != Xdefault; then
  26465. as_fn_error $? "--with-ngtcp2 was specified but could not find ngtcp2_crypto_gnutls pkg-config file." "$LINENO" 5
  26466. fi
  26467. fi
  26468. fi
  26469. OPT_NGHTTP3="yes"
  26470. if test "x$NGTCP2_ENABLED" = "x"; then
  26471. # without ngtcp2, nghttp3 is of no use for us
  26472. OPT_NGHTTP3="no"
  26473. fi
  26474. # Check whether --with-nghttp3 was given.
  26475. if test ${with_nghttp3+y}
  26476. then :
  26477. withval=$with_nghttp3; OPT_NGHTTP3=$withval
  26478. fi
  26479. case "$OPT_NGHTTP3" in
  26480. no)
  26481. want_nghttp3="no"
  26482. ;;
  26483. yes)
  26484. want_nghttp3="default"
  26485. want_nghttp3_path=""
  26486. ;;
  26487. *)
  26488. want_nghttp3="yes"
  26489. want_nghttp3_path="$withval/lib/pkgconfig"
  26490. ;;
  26491. esac
  26492. curl_http3_msg="no (--with-nghttp3)"
  26493. if test X"$want_nghttp3" != Xno; then
  26494. CLEANLDFLAGS="$LDFLAGS"
  26495. CLEANCPPFLAGS="$CPPFLAGS"
  26496. CLEANLIBS="$LIBS"
  26497. if test -n "$PKG_CONFIG"; then
  26498. PKGCONFIG="$PKG_CONFIG"
  26499. else
  26500. if test -n "$ac_tool_prefix"; then
  26501. # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
  26502. set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
  26503. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  26504. printf %s "checking for $ac_word... " >&6; }
  26505. if test ${ac_cv_path_PKGCONFIG+y}
  26506. then :
  26507. printf %s "(cached) " >&6
  26508. else $as_nop
  26509. case $PKGCONFIG in
  26510. [\\/]* | ?:[\\/]*)
  26511. ac_cv_path_PKGCONFIG="$PKGCONFIG" # Let the user override the test with a path.
  26512. ;;
  26513. *)
  26514. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  26515. as_dummy="$PATH:/usr/bin:/usr/local/bin"
  26516. for as_dir in $as_dummy
  26517. do
  26518. IFS=$as_save_IFS
  26519. case $as_dir in #(((
  26520. '') as_dir=./ ;;
  26521. */) ;;
  26522. *) as_dir=$as_dir/ ;;
  26523. esac
  26524. for ac_exec_ext in '' $ac_executable_extensions; do
  26525. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  26526. ac_cv_path_PKGCONFIG="$as_dir$ac_word$ac_exec_ext"
  26527. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  26528. break 2
  26529. fi
  26530. done
  26531. done
  26532. IFS=$as_save_IFS
  26533. ;;
  26534. esac
  26535. fi
  26536. PKGCONFIG=$ac_cv_path_PKGCONFIG
  26537. if test -n "$PKGCONFIG"; then
  26538. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PKGCONFIG" >&5
  26539. printf "%s\n" "$PKGCONFIG" >&6; }
  26540. else
  26541. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  26542. printf "%s\n" "no" >&6; }
  26543. fi
  26544. fi
  26545. if test -z "$ac_cv_path_PKGCONFIG"; then
  26546. ac_pt_PKGCONFIG=$PKGCONFIG
  26547. # Extract the first word of "pkg-config", so it can be a program name with args.
  26548. set dummy pkg-config; ac_word=$2
  26549. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  26550. printf %s "checking for $ac_word... " >&6; }
  26551. if test ${ac_cv_path_ac_pt_PKGCONFIG+y}
  26552. then :
  26553. printf %s "(cached) " >&6
  26554. else $as_nop
  26555. case $ac_pt_PKGCONFIG in
  26556. [\\/]* | ?:[\\/]*)
  26557. ac_cv_path_ac_pt_PKGCONFIG="$ac_pt_PKGCONFIG" # Let the user override the test with a path.
  26558. ;;
  26559. *)
  26560. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  26561. as_dummy="$PATH:/usr/bin:/usr/local/bin"
  26562. for as_dir in $as_dummy
  26563. do
  26564. IFS=$as_save_IFS
  26565. case $as_dir in #(((
  26566. '') as_dir=./ ;;
  26567. */) ;;
  26568. *) as_dir=$as_dir/ ;;
  26569. esac
  26570. for ac_exec_ext in '' $ac_executable_extensions; do
  26571. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  26572. ac_cv_path_ac_pt_PKGCONFIG="$as_dir$ac_word$ac_exec_ext"
  26573. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  26574. break 2
  26575. fi
  26576. done
  26577. done
  26578. IFS=$as_save_IFS
  26579. ;;
  26580. esac
  26581. fi
  26582. ac_pt_PKGCONFIG=$ac_cv_path_ac_pt_PKGCONFIG
  26583. if test -n "$ac_pt_PKGCONFIG"; then
  26584. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKGCONFIG" >&5
  26585. printf "%s\n" "$ac_pt_PKGCONFIG" >&6; }
  26586. else
  26587. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  26588. printf "%s\n" "no" >&6; }
  26589. fi
  26590. if test "x$ac_pt_PKGCONFIG" = x; then
  26591. PKGCONFIG="no"
  26592. else
  26593. case $cross_compiling:$ac_tool_warned in
  26594. yes:)
  26595. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  26596. printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  26597. ac_tool_warned=yes ;;
  26598. esac
  26599. PKGCONFIG=$ac_pt_PKGCONFIG
  26600. fi
  26601. else
  26602. PKGCONFIG="$ac_cv_path_PKGCONFIG"
  26603. fi
  26604. fi
  26605. if test "x$PKGCONFIG" != "xno"; then
  26606. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libnghttp3 options with pkg-config" >&5
  26607. printf %s "checking for libnghttp3 options with pkg-config... " >&6; }
  26608. itexists=`
  26609. if test -n "$want_nghttp3_path"; then
  26610. PKG_CONFIG_LIBDIR="$want_nghttp3_path"
  26611. export PKG_CONFIG_LIBDIR
  26612. fi
  26613. $PKGCONFIG --exists libnghttp3 >/dev/null 2>&1 && echo 1`
  26614. if test -z "$itexists"; then
  26615. PKGCONFIG="no"
  26616. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  26617. printf "%s\n" "no" >&6; }
  26618. else
  26619. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: found" >&5
  26620. printf "%s\n" "found" >&6; }
  26621. fi
  26622. fi
  26623. if test "$PKGCONFIG" != "no" ; then
  26624. LIB_NGHTTP3=`
  26625. if test -n "$want_nghttp3_path"; then
  26626. PKG_CONFIG_LIBDIR="$want_nghttp3_path"
  26627. export PKG_CONFIG_LIBDIR
  26628. fi
  26629. $PKGCONFIG --libs-only-l libnghttp3`
  26630. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: -l is $LIB_NGHTTP3" >&5
  26631. printf "%s\n" "$as_me: -l is $LIB_NGHTTP3" >&6;}
  26632. CPP_NGHTTP3=`
  26633. if test -n "$want_nghttp3_path"; then
  26634. PKG_CONFIG_LIBDIR="$want_nghttp3_path"
  26635. export PKG_CONFIG_LIBDIR
  26636. fi
  26637. $PKGCONFIG --cflags-only-I libnghttp3`
  26638. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: -I is $CPP_NGHTTP3" >&5
  26639. printf "%s\n" "$as_me: -I is $CPP_NGHTTP3" >&6;}
  26640. LD_NGHTTP3=`
  26641. if test -n "$want_nghttp3_path"; then
  26642. PKG_CONFIG_LIBDIR="$want_nghttp3_path"
  26643. export PKG_CONFIG_LIBDIR
  26644. fi
  26645. $PKGCONFIG --libs-only-L libnghttp3`
  26646. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: -L is $LD_NGHTTP3" >&5
  26647. printf "%s\n" "$as_me: -L is $LD_NGHTTP3" >&6;}
  26648. LDFLAGS="$LDFLAGS $LD_NGHTTP3"
  26649. CPPFLAGS="$CPPFLAGS $CPP_NGHTTP3"
  26650. LIBS="$LIB_NGHTTP3 $LIBS"
  26651. if test "x$cross_compiling" != "xyes"; then
  26652. DIR_NGHTTP3=`echo $LD_NGHTTP3 | $SED -e 's/^-L//'`
  26653. fi
  26654. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for nghttp3_conn_client_new_versioned in -lnghttp3" >&5
  26655. printf %s "checking for nghttp3_conn_client_new_versioned in -lnghttp3... " >&6; }
  26656. if test ${ac_cv_lib_nghttp3_nghttp3_conn_client_new_versioned+y}
  26657. then :
  26658. printf %s "(cached) " >&6
  26659. else $as_nop
  26660. ac_check_lib_save_LIBS=$LIBS
  26661. LIBS="-lnghttp3 $LIBS"
  26662. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  26663. /* end confdefs.h. */
  26664. #ifdef __cplusplus
  26665. extern "C"
  26666. #endif
  26667. char nghttp3_conn_client_new_versioned ();
  26668. int main (void)
  26669. {
  26670. return nghttp3_conn_client_new_versioned ();
  26671. ;
  26672. return 0;
  26673. }
  26674. _ACEOF
  26675. if ac_fn_c_try_link "$LINENO"
  26676. then :
  26677. ac_cv_lib_nghttp3_nghttp3_conn_client_new_versioned=yes
  26678. else $as_nop
  26679. ac_cv_lib_nghttp3_nghttp3_conn_client_new_versioned=no
  26680. fi
  26681. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  26682. conftest$ac_exeext conftest.$ac_ext
  26683. LIBS=$ac_check_lib_save_LIBS
  26684. fi
  26685. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nghttp3_nghttp3_conn_client_new_versioned" >&5
  26686. printf "%s\n" "$ac_cv_lib_nghttp3_nghttp3_conn_client_new_versioned" >&6; }
  26687. if test "x$ac_cv_lib_nghttp3_nghttp3_conn_client_new_versioned" = xyes
  26688. then :
  26689. for ac_header in nghttp3/nghttp3.h
  26690. do :
  26691. ac_fn_c_check_header_compile "$LINENO" "nghttp3/nghttp3.h" "ac_cv_header_nghttp3_nghttp3_h" "$ac_includes_default"
  26692. if test "x$ac_cv_header_nghttp3_nghttp3_h" = xyes
  26693. then :
  26694. printf "%s\n" "#define HAVE_NGHTTP3_NGHTTP3_H 1" >>confdefs.h
  26695. curl_h3_msg="enabled (ngtcp2 + nghttp3)"
  26696. NGHTTP3_ENABLED=1
  26697. printf "%s\n" "#define USE_NGHTTP3 1" >>confdefs.h
  26698. USE_NGHTTP3=1
  26699. CURL_LIBRARY_PATH="$CURL_LIBRARY_PATH:$DIR_NGHTTP3"
  26700. export CURL_LIBRARY_PATH
  26701. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: Added $DIR_NGHTTP3 to CURL_LIBRARY_PATH" >&5
  26702. printf "%s\n" "$as_me: Added $DIR_NGHTTP3 to CURL_LIBRARY_PATH" >&6;}
  26703. experimental="$experimental HTTP3"
  26704. fi
  26705. done
  26706. else $as_nop
  26707. LDFLAGS=$CLEANLDFLAGS
  26708. CPPFLAGS=$CLEANCPPFLAGS
  26709. LIBS=$CLEANLIBS
  26710. fi
  26711. else
  26712. if test X"$want_nghttp3" != Xdefault; then
  26713. as_fn_error $? "--with-nghttp3 was specified but could not find nghttp3 pkg-config file." "$LINENO" 5
  26714. fi
  26715. fi
  26716. fi
  26717. OPT_QUICHE="no"
  26718. if test "x$disable_http" = "xyes" -o "x$USE_NGTCP" = "x1"; then
  26719. # without HTTP or with ngtcp2, quiche is no use
  26720. OPT_QUICHE="no"
  26721. fi
  26722. # Check whether --with-quiche was given.
  26723. if test ${with_quiche+y}
  26724. then :
  26725. withval=$with_quiche; OPT_QUICHE=$withval
  26726. fi
  26727. case "$OPT_QUICHE" in
  26728. no)
  26729. want_quiche="no"
  26730. ;;
  26731. yes)
  26732. want_quiche="default"
  26733. want_quiche_path=""
  26734. ;;
  26735. *)
  26736. want_quiche="yes"
  26737. want_quiche_path="$withval"
  26738. ;;
  26739. esac
  26740. if test X"$want_quiche" != Xno; then
  26741. if test "$NGHTTP3_ENABLED" = 1; then
  26742. as_fn_error $? "--with-quiche and --with-ngtcp2 are mutually exclusive" "$LINENO" 5
  26743. fi
  26744. CLEANLDFLAGS="$LDFLAGS"
  26745. CLEANCPPFLAGS="$CPPFLAGS"
  26746. CLEANLIBS="$LIBS"
  26747. if test -n "$PKG_CONFIG"; then
  26748. PKGCONFIG="$PKG_CONFIG"
  26749. else
  26750. if test -n "$ac_tool_prefix"; then
  26751. # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
  26752. set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
  26753. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  26754. printf %s "checking for $ac_word... " >&6; }
  26755. if test ${ac_cv_path_PKGCONFIG+y}
  26756. then :
  26757. printf %s "(cached) " >&6
  26758. else $as_nop
  26759. case $PKGCONFIG in
  26760. [\\/]* | ?:[\\/]*)
  26761. ac_cv_path_PKGCONFIG="$PKGCONFIG" # Let the user override the test with a path.
  26762. ;;
  26763. *)
  26764. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  26765. as_dummy="$PATH:/usr/bin:/usr/local/bin"
  26766. for as_dir in $as_dummy
  26767. do
  26768. IFS=$as_save_IFS
  26769. case $as_dir in #(((
  26770. '') as_dir=./ ;;
  26771. */) ;;
  26772. *) as_dir=$as_dir/ ;;
  26773. esac
  26774. for ac_exec_ext in '' $ac_executable_extensions; do
  26775. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  26776. ac_cv_path_PKGCONFIG="$as_dir$ac_word$ac_exec_ext"
  26777. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  26778. break 2
  26779. fi
  26780. done
  26781. done
  26782. IFS=$as_save_IFS
  26783. ;;
  26784. esac
  26785. fi
  26786. PKGCONFIG=$ac_cv_path_PKGCONFIG
  26787. if test -n "$PKGCONFIG"; then
  26788. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PKGCONFIG" >&5
  26789. printf "%s\n" "$PKGCONFIG" >&6; }
  26790. else
  26791. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  26792. printf "%s\n" "no" >&6; }
  26793. fi
  26794. fi
  26795. if test -z "$ac_cv_path_PKGCONFIG"; then
  26796. ac_pt_PKGCONFIG=$PKGCONFIG
  26797. # Extract the first word of "pkg-config", so it can be a program name with args.
  26798. set dummy pkg-config; ac_word=$2
  26799. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  26800. printf %s "checking for $ac_word... " >&6; }
  26801. if test ${ac_cv_path_ac_pt_PKGCONFIG+y}
  26802. then :
  26803. printf %s "(cached) " >&6
  26804. else $as_nop
  26805. case $ac_pt_PKGCONFIG in
  26806. [\\/]* | ?:[\\/]*)
  26807. ac_cv_path_ac_pt_PKGCONFIG="$ac_pt_PKGCONFIG" # Let the user override the test with a path.
  26808. ;;
  26809. *)
  26810. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  26811. as_dummy="$PATH:/usr/bin:/usr/local/bin"
  26812. for as_dir in $as_dummy
  26813. do
  26814. IFS=$as_save_IFS
  26815. case $as_dir in #(((
  26816. '') as_dir=./ ;;
  26817. */) ;;
  26818. *) as_dir=$as_dir/ ;;
  26819. esac
  26820. for ac_exec_ext in '' $ac_executable_extensions; do
  26821. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  26822. ac_cv_path_ac_pt_PKGCONFIG="$as_dir$ac_word$ac_exec_ext"
  26823. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  26824. break 2
  26825. fi
  26826. done
  26827. done
  26828. IFS=$as_save_IFS
  26829. ;;
  26830. esac
  26831. fi
  26832. ac_pt_PKGCONFIG=$ac_cv_path_ac_pt_PKGCONFIG
  26833. if test -n "$ac_pt_PKGCONFIG"; then
  26834. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKGCONFIG" >&5
  26835. printf "%s\n" "$ac_pt_PKGCONFIG" >&6; }
  26836. else
  26837. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  26838. printf "%s\n" "no" >&6; }
  26839. fi
  26840. if test "x$ac_pt_PKGCONFIG" = x; then
  26841. PKGCONFIG="no"
  26842. else
  26843. case $cross_compiling:$ac_tool_warned in
  26844. yes:)
  26845. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  26846. printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  26847. ac_tool_warned=yes ;;
  26848. esac
  26849. PKGCONFIG=$ac_pt_PKGCONFIG
  26850. fi
  26851. else
  26852. PKGCONFIG="$ac_cv_path_PKGCONFIG"
  26853. fi
  26854. fi
  26855. if test "x$PKGCONFIG" != "xno"; then
  26856. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for quiche options with pkg-config" >&5
  26857. printf %s "checking for quiche options with pkg-config... " >&6; }
  26858. itexists=`
  26859. if test -n "$want_quiche_path"; then
  26860. PKG_CONFIG_LIBDIR="$want_quiche_path"
  26861. export PKG_CONFIG_LIBDIR
  26862. fi
  26863. $PKGCONFIG --exists quiche >/dev/null 2>&1 && echo 1`
  26864. if test -z "$itexists"; then
  26865. PKGCONFIG="no"
  26866. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  26867. printf "%s\n" "no" >&6; }
  26868. else
  26869. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: found" >&5
  26870. printf "%s\n" "found" >&6; }
  26871. fi
  26872. fi
  26873. if test "$PKGCONFIG" != "no" ; then
  26874. LIB_QUICHE=`
  26875. if test -n "$want_quiche_path"; then
  26876. PKG_CONFIG_LIBDIR="$want_quiche_path"
  26877. export PKG_CONFIG_LIBDIR
  26878. fi
  26879. $PKGCONFIG --libs-only-l quiche`
  26880. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: -l is $LIB_QUICHE" >&5
  26881. printf "%s\n" "$as_me: -l is $LIB_QUICHE" >&6;}
  26882. CPP_QUICHE=`
  26883. if test -n "$want_quiche_path"; then
  26884. PKG_CONFIG_LIBDIR="$want_quiche_path"
  26885. export PKG_CONFIG_LIBDIR
  26886. fi
  26887. $PKGCONFIG --cflags-only-I quiche`
  26888. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: -I is $CPP_QUICHE" >&5
  26889. printf "%s\n" "$as_me: -I is $CPP_QUICHE" >&6;}
  26890. LD_QUICHE=`
  26891. if test -n "$want_quiche_path"; then
  26892. PKG_CONFIG_LIBDIR="$want_quiche_path"
  26893. export PKG_CONFIG_LIBDIR
  26894. fi
  26895. $PKGCONFIG --libs-only-L quiche`
  26896. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: -L is $LD_QUICHE" >&5
  26897. printf "%s\n" "$as_me: -L is $LD_QUICHE" >&6;}
  26898. LDFLAGS="$LDFLAGS $LD_QUICHE"
  26899. CPPFLAGS="$CPPFLAGS $CPP_QUICHE"
  26900. LIBS="$LIB_QUICHE $LIBS"
  26901. if test "x$cross_compiling" != "xyes"; then
  26902. DIR_QUICHE=`echo $LD_QUICHE | $SED -e 's/^-L//'`
  26903. fi
  26904. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for quiche_connect in -lquiche" >&5
  26905. printf %s "checking for quiche_connect in -lquiche... " >&6; }
  26906. if test ${ac_cv_lib_quiche_quiche_connect+y}
  26907. then :
  26908. printf %s "(cached) " >&6
  26909. else $as_nop
  26910. ac_check_lib_save_LIBS=$LIBS
  26911. LIBS="-lquiche $LIBS"
  26912. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  26913. /* end confdefs.h. */
  26914. #ifdef __cplusplus
  26915. extern "C"
  26916. #endif
  26917. char quiche_connect ();
  26918. int main (void)
  26919. {
  26920. return quiche_connect ();
  26921. ;
  26922. return 0;
  26923. }
  26924. _ACEOF
  26925. if ac_fn_c_try_link "$LINENO"
  26926. then :
  26927. ac_cv_lib_quiche_quiche_connect=yes
  26928. else $as_nop
  26929. ac_cv_lib_quiche_quiche_connect=no
  26930. fi
  26931. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  26932. conftest$ac_exeext conftest.$ac_ext
  26933. LIBS=$ac_check_lib_save_LIBS
  26934. fi
  26935. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_quiche_quiche_connect" >&5
  26936. printf "%s\n" "$ac_cv_lib_quiche_quiche_connect" >&6; }
  26937. if test "x$ac_cv_lib_quiche_quiche_connect" = xyes
  26938. then :
  26939. for ac_header in quiche.h
  26940. do :
  26941. ac_fn_c_check_header_compile "$LINENO" "quiche.h" "ac_cv_header_quiche_h" "
  26942. $ac_includes_default
  26943. #include <sys/socket.h>
  26944. "
  26945. if test "x$ac_cv_header_quiche_h" = xyes
  26946. then :
  26947. printf "%s\n" "#define HAVE_QUICHE_H 1" >>confdefs.h
  26948. experimental="$experimental HTTP3"
  26949. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: HTTP3 support is experimental" >&5
  26950. printf "%s\n" "$as_me: HTTP3 support is experimental" >&6;}
  26951. curl_h3_msg="enabled (quiche)"
  26952. QUICHE_ENABLED=1
  26953. printf "%s\n" "#define USE_QUICHE 1" >>confdefs.h
  26954. USE_QUICHE=1
  26955. ac_fn_c_check_func "$LINENO" "quiche_conn_set_qlog_fd" "ac_cv_func_quiche_conn_set_qlog_fd"
  26956. if test "x$ac_cv_func_quiche_conn_set_qlog_fd" = xyes
  26957. then :
  26958. printf "%s\n" "#define HAVE_QUICHE_CONN_SET_QLOG_FD 1" >>confdefs.h
  26959. fi
  26960. CURL_LIBRARY_PATH="$CURL_LIBRARY_PATH:$DIR_QUICHE"
  26961. export CURL_LIBRARY_PATH
  26962. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: Added $DIR_QUICHE to CURL_LIBRARY_PATH" >&5
  26963. printf "%s\n" "$as_me: Added $DIR_QUICHE to CURL_LIBRARY_PATH" >&6;}
  26964. fi
  26965. done
  26966. else $as_nop
  26967. as_fn_error $? "couldn't use quiche" "$LINENO" 5
  26968. fi
  26969. else
  26970. if test X"$want_quiche" != Xdefault; then
  26971. as_fn_error $? "--with-quiche was specified but could not find quiche pkg-config file." "$LINENO" 5
  26972. fi
  26973. fi
  26974. fi
  26975. OPT_ZSH_FPATH=default
  26976. # Check whether --with-zsh-functions-dir was given.
  26977. if test ${with_zsh_functions_dir+y}
  26978. then :
  26979. withval=$with_zsh_functions_dir; OPT_ZSH_FPATH=$withval
  26980. fi
  26981. case "$OPT_ZSH_FPATH" in
  26982. no)
  26983. ;;
  26984. default|yes)
  26985. ZSH_FUNCTIONS_DIR="$datarootdir/zsh/site-functions"
  26986. ;;
  26987. *)
  26988. ZSH_FUNCTIONS_DIR="$withval"
  26989. ;;
  26990. esac
  26991. OPT_FISH_FPATH=default
  26992. # Check whether --with-fish-functions-dir was given.
  26993. if test ${with_fish_functions_dir+y}
  26994. then :
  26995. withval=$with_fish_functions_dir; OPT_FISH_FPATH=$withval
  26996. fi
  26997. case "$OPT_FISH_FPATH" in
  26998. no)
  26999. ;;
  27000. default|yes)
  27001. if test -n "$PKG_CONFIG"; then
  27002. PKGCONFIG="$PKG_CONFIG"
  27003. else
  27004. if test -n "$ac_tool_prefix"; then
  27005. # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
  27006. set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
  27007. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  27008. printf %s "checking for $ac_word... " >&6; }
  27009. if test ${ac_cv_path_PKGCONFIG+y}
  27010. then :
  27011. printf %s "(cached) " >&6
  27012. else $as_nop
  27013. case $PKGCONFIG in
  27014. [\\/]* | ?:[\\/]*)
  27015. ac_cv_path_PKGCONFIG="$PKGCONFIG" # Let the user override the test with a path.
  27016. ;;
  27017. *)
  27018. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  27019. as_dummy="$PATH:/usr/bin:/usr/local/bin"
  27020. for as_dir in $as_dummy
  27021. do
  27022. IFS=$as_save_IFS
  27023. case $as_dir in #(((
  27024. '') as_dir=./ ;;
  27025. */) ;;
  27026. *) as_dir=$as_dir/ ;;
  27027. esac
  27028. for ac_exec_ext in '' $ac_executable_extensions; do
  27029. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  27030. ac_cv_path_PKGCONFIG="$as_dir$ac_word$ac_exec_ext"
  27031. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  27032. break 2
  27033. fi
  27034. done
  27035. done
  27036. IFS=$as_save_IFS
  27037. ;;
  27038. esac
  27039. fi
  27040. PKGCONFIG=$ac_cv_path_PKGCONFIG
  27041. if test -n "$PKGCONFIG"; then
  27042. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PKGCONFIG" >&5
  27043. printf "%s\n" "$PKGCONFIG" >&6; }
  27044. else
  27045. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  27046. printf "%s\n" "no" >&6; }
  27047. fi
  27048. fi
  27049. if test -z "$ac_cv_path_PKGCONFIG"; then
  27050. ac_pt_PKGCONFIG=$PKGCONFIG
  27051. # Extract the first word of "pkg-config", so it can be a program name with args.
  27052. set dummy pkg-config; ac_word=$2
  27053. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  27054. printf %s "checking for $ac_word... " >&6; }
  27055. if test ${ac_cv_path_ac_pt_PKGCONFIG+y}
  27056. then :
  27057. printf %s "(cached) " >&6
  27058. else $as_nop
  27059. case $ac_pt_PKGCONFIG in
  27060. [\\/]* | ?:[\\/]*)
  27061. ac_cv_path_ac_pt_PKGCONFIG="$ac_pt_PKGCONFIG" # Let the user override the test with a path.
  27062. ;;
  27063. *)
  27064. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  27065. as_dummy="$PATH:/usr/bin:/usr/local/bin"
  27066. for as_dir in $as_dummy
  27067. do
  27068. IFS=$as_save_IFS
  27069. case $as_dir in #(((
  27070. '') as_dir=./ ;;
  27071. */) ;;
  27072. *) as_dir=$as_dir/ ;;
  27073. esac
  27074. for ac_exec_ext in '' $ac_executable_extensions; do
  27075. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  27076. ac_cv_path_ac_pt_PKGCONFIG="$as_dir$ac_word$ac_exec_ext"
  27077. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  27078. break 2
  27079. fi
  27080. done
  27081. done
  27082. IFS=$as_save_IFS
  27083. ;;
  27084. esac
  27085. fi
  27086. ac_pt_PKGCONFIG=$ac_cv_path_ac_pt_PKGCONFIG
  27087. if test -n "$ac_pt_PKGCONFIG"; then
  27088. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKGCONFIG" >&5
  27089. printf "%s\n" "$ac_pt_PKGCONFIG" >&6; }
  27090. else
  27091. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  27092. printf "%s\n" "no" >&6; }
  27093. fi
  27094. if test "x$ac_pt_PKGCONFIG" = x; then
  27095. PKGCONFIG="no"
  27096. else
  27097. case $cross_compiling:$ac_tool_warned in
  27098. yes:)
  27099. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  27100. printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  27101. ac_tool_warned=yes ;;
  27102. esac
  27103. PKGCONFIG=$ac_pt_PKGCONFIG
  27104. fi
  27105. else
  27106. PKGCONFIG="$ac_cv_path_PKGCONFIG"
  27107. fi
  27108. fi
  27109. if test "x$PKGCONFIG" != "xno"; then
  27110. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for fish options with pkg-config" >&5
  27111. printf %s "checking for fish options with pkg-config... " >&6; }
  27112. itexists=`
  27113. if test -n ""; then
  27114. PKG_CONFIG_LIBDIR=""
  27115. export PKG_CONFIG_LIBDIR
  27116. fi
  27117. $PKGCONFIG --exists fish >/dev/null 2>&1 && echo 1`
  27118. if test -z "$itexists"; then
  27119. PKGCONFIG="no"
  27120. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  27121. printf "%s\n" "no" >&6; }
  27122. else
  27123. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: found" >&5
  27124. printf "%s\n" "found" >&6; }
  27125. fi
  27126. fi
  27127. if test "$PKGCONFIG" != "no" ; then
  27128. FISH_FUNCTIONS_DIR="$($PKGCONFIG --variable completionsdir fish)"
  27129. else
  27130. FISH_FUNCTIONS_DIR="$datarootdir/fish/vendor_completions.d"
  27131. fi
  27132. ;;
  27133. *)
  27134. FISH_FUNCTIONS_DIR="$withval"
  27135. ;;
  27136. esac
  27137. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for malloc.h" >&5
  27138. printf %s "checking for malloc.h... " >&6; }
  27139. if test ${curl_cv_header_malloc_h+y}
  27140. then :
  27141. printf %s "(cached) " >&6
  27142. else $as_nop
  27143. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  27144. /* end confdefs.h. */
  27145. #include <malloc.h>
  27146. int main (void)
  27147. {
  27148. void *p = malloc(10);
  27149. void *q = calloc(10,10);
  27150. free(p);
  27151. free(q);
  27152. ;
  27153. return 0;
  27154. }
  27155. _ACEOF
  27156. if ac_fn_c_try_compile "$LINENO"
  27157. then :
  27158. curl_cv_header_malloc_h="yes"
  27159. else $as_nop
  27160. curl_cv_header_malloc_h="no"
  27161. fi
  27162. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  27163. fi
  27164. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $curl_cv_header_malloc_h" >&5
  27165. printf "%s\n" "$curl_cv_header_malloc_h" >&6; }
  27166. if test "$curl_cv_header_malloc_h" = "yes"; then
  27167. printf "%s\n" "#define HAVE_MALLOC_H 1" >>confdefs.h
  27168. #
  27169. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  27170. /* end confdefs.h. */
  27171. #include <stdlib.h>
  27172. int main (void)
  27173. {
  27174. void *p = malloc(10);
  27175. void *q = calloc(10,10);
  27176. free(p);
  27177. free(q);
  27178. ;
  27179. return 0;
  27180. }
  27181. _ACEOF
  27182. if ac_fn_c_try_compile "$LINENO"
  27183. then :
  27184. curl_cv_need_header_malloc_h="no"
  27185. else $as_nop
  27186. curl_cv_need_header_malloc_h="yes"
  27187. fi
  27188. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  27189. #
  27190. case "$curl_cv_need_header_malloc_h" in
  27191. yes)
  27192. printf "%s\n" "#define NEED_MALLOC_H 1" >>confdefs.h
  27193. ;;
  27194. esac
  27195. fi
  27196. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for memory.h" >&5
  27197. printf %s "checking for memory.h... " >&6; }
  27198. if test ${curl_cv_header_memory_h+y}
  27199. then :
  27200. printf %s "(cached) " >&6
  27201. else $as_nop
  27202. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  27203. /* end confdefs.h. */
  27204. #include <memory.h>
  27205. int main (void)
  27206. {
  27207. void *p = malloc(10);
  27208. void *q = calloc(10,10);
  27209. free(p);
  27210. free(q);
  27211. ;
  27212. return 0;
  27213. }
  27214. _ACEOF
  27215. if ac_fn_c_try_compile "$LINENO"
  27216. then :
  27217. curl_cv_header_memory_h="yes"
  27218. else $as_nop
  27219. curl_cv_header_memory_h="no"
  27220. fi
  27221. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  27222. fi
  27223. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $curl_cv_header_memory_h" >&5
  27224. printf "%s\n" "$curl_cv_header_memory_h" >&6; }
  27225. if test "$curl_cv_header_memory_h" = "yes"; then
  27226. printf "%s\n" "#define HAVE_MEMORY_H 1" >>confdefs.h
  27227. #
  27228. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  27229. /* end confdefs.h. */
  27230. #include <stdlib.h>
  27231. int main (void)
  27232. {
  27233. void *p = malloc(10);
  27234. void *q = calloc(10,10);
  27235. free(p);
  27236. free(q);
  27237. ;
  27238. return 0;
  27239. }
  27240. _ACEOF
  27241. if ac_fn_c_try_compile "$LINENO"
  27242. then :
  27243. curl_cv_need_header_memory_h="no"
  27244. else $as_nop
  27245. curl_cv_need_header_memory_h="yes"
  27246. fi
  27247. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  27248. #
  27249. case "$curl_cv_need_header_memory_h" in
  27250. yes)
  27251. printf "%s\n" "#define NEED_MEMORY_H 1" >>confdefs.h
  27252. ;;
  27253. esac
  27254. fi
  27255. ac_fn_c_check_header_compile "$LINENO" "sys/types.h" "ac_cv_header_sys_types_h" "
  27256. #ifdef HAVE_SYS_TYPES_H
  27257. #include <sys/types.h>
  27258. #endif
  27259. #ifdef HAVE_SYS_TIME_H
  27260. #include <sys/time.h>
  27261. #endif
  27262. #ifdef HAVE_SYS_SELECT_H
  27263. #include <sys/select.h>
  27264. #elif defined(HAVE_UNISTD_H)
  27265. #include <unistd.h>
  27266. #endif
  27267. #ifdef HAVE_SYS_SOCKET_H
  27268. #include <sys/socket.h>
  27269. #endif
  27270. #ifdef HAVE_NETINET_IN_H
  27271. #include <netinet/in.h>
  27272. #endif
  27273. #ifdef HAVE_NETINET_IN6_H
  27274. #include <netinet/in6.h>
  27275. #endif
  27276. #ifdef HAVE_SYS_UN_H
  27277. #include <sys/un.h>
  27278. #endif
  27279. "
  27280. if test "x$ac_cv_header_sys_types_h" = xyes
  27281. then :
  27282. printf "%s\n" "#define HAVE_SYS_TYPES_H 1" >>confdefs.h
  27283. fi
  27284. ac_fn_c_check_header_compile "$LINENO" "sys/time.h" "ac_cv_header_sys_time_h" "
  27285. #ifdef HAVE_SYS_TYPES_H
  27286. #include <sys/types.h>
  27287. #endif
  27288. #ifdef HAVE_SYS_TIME_H
  27289. #include <sys/time.h>
  27290. #endif
  27291. #ifdef HAVE_SYS_SELECT_H
  27292. #include <sys/select.h>
  27293. #elif defined(HAVE_UNISTD_H)
  27294. #include <unistd.h>
  27295. #endif
  27296. #ifdef HAVE_SYS_SOCKET_H
  27297. #include <sys/socket.h>
  27298. #endif
  27299. #ifdef HAVE_NETINET_IN_H
  27300. #include <netinet/in.h>
  27301. #endif
  27302. #ifdef HAVE_NETINET_IN6_H
  27303. #include <netinet/in6.h>
  27304. #endif
  27305. #ifdef HAVE_SYS_UN_H
  27306. #include <sys/un.h>
  27307. #endif
  27308. "
  27309. if test "x$ac_cv_header_sys_time_h" = xyes
  27310. then :
  27311. printf "%s\n" "#define HAVE_SYS_TIME_H 1" >>confdefs.h
  27312. fi
  27313. ac_fn_c_check_header_compile "$LINENO" "sys/select.h" "ac_cv_header_sys_select_h" "
  27314. #ifdef HAVE_SYS_TYPES_H
  27315. #include <sys/types.h>
  27316. #endif
  27317. #ifdef HAVE_SYS_TIME_H
  27318. #include <sys/time.h>
  27319. #endif
  27320. #ifdef HAVE_SYS_SELECT_H
  27321. #include <sys/select.h>
  27322. #elif defined(HAVE_UNISTD_H)
  27323. #include <unistd.h>
  27324. #endif
  27325. #ifdef HAVE_SYS_SOCKET_H
  27326. #include <sys/socket.h>
  27327. #endif
  27328. #ifdef HAVE_NETINET_IN_H
  27329. #include <netinet/in.h>
  27330. #endif
  27331. #ifdef HAVE_NETINET_IN6_H
  27332. #include <netinet/in6.h>
  27333. #endif
  27334. #ifdef HAVE_SYS_UN_H
  27335. #include <sys/un.h>
  27336. #endif
  27337. "
  27338. if test "x$ac_cv_header_sys_select_h" = xyes
  27339. then :
  27340. printf "%s\n" "#define HAVE_SYS_SELECT_H 1" >>confdefs.h
  27341. fi
  27342. ac_fn_c_check_header_compile "$LINENO" "sys/socket.h" "ac_cv_header_sys_socket_h" "
  27343. #ifdef HAVE_SYS_TYPES_H
  27344. #include <sys/types.h>
  27345. #endif
  27346. #ifdef HAVE_SYS_TIME_H
  27347. #include <sys/time.h>
  27348. #endif
  27349. #ifdef HAVE_SYS_SELECT_H
  27350. #include <sys/select.h>
  27351. #elif defined(HAVE_UNISTD_H)
  27352. #include <unistd.h>
  27353. #endif
  27354. #ifdef HAVE_SYS_SOCKET_H
  27355. #include <sys/socket.h>
  27356. #endif
  27357. #ifdef HAVE_NETINET_IN_H
  27358. #include <netinet/in.h>
  27359. #endif
  27360. #ifdef HAVE_NETINET_IN6_H
  27361. #include <netinet/in6.h>
  27362. #endif
  27363. #ifdef HAVE_SYS_UN_H
  27364. #include <sys/un.h>
  27365. #endif
  27366. "
  27367. if test "x$ac_cv_header_sys_socket_h" = xyes
  27368. then :
  27369. printf "%s\n" "#define HAVE_SYS_SOCKET_H 1" >>confdefs.h
  27370. fi
  27371. ac_fn_c_check_header_compile "$LINENO" "sys/ioctl.h" "ac_cv_header_sys_ioctl_h" "
  27372. #ifdef HAVE_SYS_TYPES_H
  27373. #include <sys/types.h>
  27374. #endif
  27375. #ifdef HAVE_SYS_TIME_H
  27376. #include <sys/time.h>
  27377. #endif
  27378. #ifdef HAVE_SYS_SELECT_H
  27379. #include <sys/select.h>
  27380. #elif defined(HAVE_UNISTD_H)
  27381. #include <unistd.h>
  27382. #endif
  27383. #ifdef HAVE_SYS_SOCKET_H
  27384. #include <sys/socket.h>
  27385. #endif
  27386. #ifdef HAVE_NETINET_IN_H
  27387. #include <netinet/in.h>
  27388. #endif
  27389. #ifdef HAVE_NETINET_IN6_H
  27390. #include <netinet/in6.h>
  27391. #endif
  27392. #ifdef HAVE_SYS_UN_H
  27393. #include <sys/un.h>
  27394. #endif
  27395. "
  27396. if test "x$ac_cv_header_sys_ioctl_h" = xyes
  27397. then :
  27398. printf "%s\n" "#define HAVE_SYS_IOCTL_H 1" >>confdefs.h
  27399. fi
  27400. ac_fn_c_check_header_compile "$LINENO" "sys/uio.h" "ac_cv_header_sys_uio_h" "
  27401. #ifdef HAVE_SYS_TYPES_H
  27402. #include <sys/types.h>
  27403. #endif
  27404. #ifdef HAVE_SYS_TIME_H
  27405. #include <sys/time.h>
  27406. #endif
  27407. #ifdef HAVE_SYS_SELECT_H
  27408. #include <sys/select.h>
  27409. #elif defined(HAVE_UNISTD_H)
  27410. #include <unistd.h>
  27411. #endif
  27412. #ifdef HAVE_SYS_SOCKET_H
  27413. #include <sys/socket.h>
  27414. #endif
  27415. #ifdef HAVE_NETINET_IN_H
  27416. #include <netinet/in.h>
  27417. #endif
  27418. #ifdef HAVE_NETINET_IN6_H
  27419. #include <netinet/in6.h>
  27420. #endif
  27421. #ifdef HAVE_SYS_UN_H
  27422. #include <sys/un.h>
  27423. #endif
  27424. "
  27425. if test "x$ac_cv_header_sys_uio_h" = xyes
  27426. then :
  27427. printf "%s\n" "#define HAVE_SYS_UIO_H 1" >>confdefs.h
  27428. fi
  27429. ac_fn_c_check_header_compile "$LINENO" "assert.h" "ac_cv_header_assert_h" "
  27430. #ifdef HAVE_SYS_TYPES_H
  27431. #include <sys/types.h>
  27432. #endif
  27433. #ifdef HAVE_SYS_TIME_H
  27434. #include <sys/time.h>
  27435. #endif
  27436. #ifdef HAVE_SYS_SELECT_H
  27437. #include <sys/select.h>
  27438. #elif defined(HAVE_UNISTD_H)
  27439. #include <unistd.h>
  27440. #endif
  27441. #ifdef HAVE_SYS_SOCKET_H
  27442. #include <sys/socket.h>
  27443. #endif
  27444. #ifdef HAVE_NETINET_IN_H
  27445. #include <netinet/in.h>
  27446. #endif
  27447. #ifdef HAVE_NETINET_IN6_H
  27448. #include <netinet/in6.h>
  27449. #endif
  27450. #ifdef HAVE_SYS_UN_H
  27451. #include <sys/un.h>
  27452. #endif
  27453. "
  27454. if test "x$ac_cv_header_assert_h" = xyes
  27455. then :
  27456. printf "%s\n" "#define HAVE_ASSERT_H 1" >>confdefs.h
  27457. fi
  27458. ac_fn_c_check_header_compile "$LINENO" "unistd.h" "ac_cv_header_unistd_h" "
  27459. #ifdef HAVE_SYS_TYPES_H
  27460. #include <sys/types.h>
  27461. #endif
  27462. #ifdef HAVE_SYS_TIME_H
  27463. #include <sys/time.h>
  27464. #endif
  27465. #ifdef HAVE_SYS_SELECT_H
  27466. #include <sys/select.h>
  27467. #elif defined(HAVE_UNISTD_H)
  27468. #include <unistd.h>
  27469. #endif
  27470. #ifdef HAVE_SYS_SOCKET_H
  27471. #include <sys/socket.h>
  27472. #endif
  27473. #ifdef HAVE_NETINET_IN_H
  27474. #include <netinet/in.h>
  27475. #endif
  27476. #ifdef HAVE_NETINET_IN6_H
  27477. #include <netinet/in6.h>
  27478. #endif
  27479. #ifdef HAVE_SYS_UN_H
  27480. #include <sys/un.h>
  27481. #endif
  27482. "
  27483. if test "x$ac_cv_header_unistd_h" = xyes
  27484. then :
  27485. printf "%s\n" "#define HAVE_UNISTD_H 1" >>confdefs.h
  27486. fi
  27487. ac_fn_c_check_header_compile "$LINENO" "stdlib.h" "ac_cv_header_stdlib_h" "
  27488. #ifdef HAVE_SYS_TYPES_H
  27489. #include <sys/types.h>
  27490. #endif
  27491. #ifdef HAVE_SYS_TIME_H
  27492. #include <sys/time.h>
  27493. #endif
  27494. #ifdef HAVE_SYS_SELECT_H
  27495. #include <sys/select.h>
  27496. #elif defined(HAVE_UNISTD_H)
  27497. #include <unistd.h>
  27498. #endif
  27499. #ifdef HAVE_SYS_SOCKET_H
  27500. #include <sys/socket.h>
  27501. #endif
  27502. #ifdef HAVE_NETINET_IN_H
  27503. #include <netinet/in.h>
  27504. #endif
  27505. #ifdef HAVE_NETINET_IN6_H
  27506. #include <netinet/in6.h>
  27507. #endif
  27508. #ifdef HAVE_SYS_UN_H
  27509. #include <sys/un.h>
  27510. #endif
  27511. "
  27512. if test "x$ac_cv_header_stdlib_h" = xyes
  27513. then :
  27514. printf "%s\n" "#define HAVE_STDLIB_H 1" >>confdefs.h
  27515. fi
  27516. ac_fn_c_check_header_compile "$LINENO" "arpa/inet.h" "ac_cv_header_arpa_inet_h" "
  27517. #ifdef HAVE_SYS_TYPES_H
  27518. #include <sys/types.h>
  27519. #endif
  27520. #ifdef HAVE_SYS_TIME_H
  27521. #include <sys/time.h>
  27522. #endif
  27523. #ifdef HAVE_SYS_SELECT_H
  27524. #include <sys/select.h>
  27525. #elif defined(HAVE_UNISTD_H)
  27526. #include <unistd.h>
  27527. #endif
  27528. #ifdef HAVE_SYS_SOCKET_H
  27529. #include <sys/socket.h>
  27530. #endif
  27531. #ifdef HAVE_NETINET_IN_H
  27532. #include <netinet/in.h>
  27533. #endif
  27534. #ifdef HAVE_NETINET_IN6_H
  27535. #include <netinet/in6.h>
  27536. #endif
  27537. #ifdef HAVE_SYS_UN_H
  27538. #include <sys/un.h>
  27539. #endif
  27540. "
  27541. if test "x$ac_cv_header_arpa_inet_h" = xyes
  27542. then :
  27543. printf "%s\n" "#define HAVE_ARPA_INET_H 1" >>confdefs.h
  27544. fi
  27545. ac_fn_c_check_header_compile "$LINENO" "net/if.h" "ac_cv_header_net_if_h" "
  27546. #ifdef HAVE_SYS_TYPES_H
  27547. #include <sys/types.h>
  27548. #endif
  27549. #ifdef HAVE_SYS_TIME_H
  27550. #include <sys/time.h>
  27551. #endif
  27552. #ifdef HAVE_SYS_SELECT_H
  27553. #include <sys/select.h>
  27554. #elif defined(HAVE_UNISTD_H)
  27555. #include <unistd.h>
  27556. #endif
  27557. #ifdef HAVE_SYS_SOCKET_H
  27558. #include <sys/socket.h>
  27559. #endif
  27560. #ifdef HAVE_NETINET_IN_H
  27561. #include <netinet/in.h>
  27562. #endif
  27563. #ifdef HAVE_NETINET_IN6_H
  27564. #include <netinet/in6.h>
  27565. #endif
  27566. #ifdef HAVE_SYS_UN_H
  27567. #include <sys/un.h>
  27568. #endif
  27569. "
  27570. if test "x$ac_cv_header_net_if_h" = xyes
  27571. then :
  27572. printf "%s\n" "#define HAVE_NET_IF_H 1" >>confdefs.h
  27573. fi
  27574. ac_fn_c_check_header_compile "$LINENO" "netinet/in.h" "ac_cv_header_netinet_in_h" "
  27575. #ifdef HAVE_SYS_TYPES_H
  27576. #include <sys/types.h>
  27577. #endif
  27578. #ifdef HAVE_SYS_TIME_H
  27579. #include <sys/time.h>
  27580. #endif
  27581. #ifdef HAVE_SYS_SELECT_H
  27582. #include <sys/select.h>
  27583. #elif defined(HAVE_UNISTD_H)
  27584. #include <unistd.h>
  27585. #endif
  27586. #ifdef HAVE_SYS_SOCKET_H
  27587. #include <sys/socket.h>
  27588. #endif
  27589. #ifdef HAVE_NETINET_IN_H
  27590. #include <netinet/in.h>
  27591. #endif
  27592. #ifdef HAVE_NETINET_IN6_H
  27593. #include <netinet/in6.h>
  27594. #endif
  27595. #ifdef HAVE_SYS_UN_H
  27596. #include <sys/un.h>
  27597. #endif
  27598. "
  27599. if test "x$ac_cv_header_netinet_in_h" = xyes
  27600. then :
  27601. printf "%s\n" "#define HAVE_NETINET_IN_H 1" >>confdefs.h
  27602. fi
  27603. ac_fn_c_check_header_compile "$LINENO" "netinet/in6.h" "ac_cv_header_netinet_in6_h" "
  27604. #ifdef HAVE_SYS_TYPES_H
  27605. #include <sys/types.h>
  27606. #endif
  27607. #ifdef HAVE_SYS_TIME_H
  27608. #include <sys/time.h>
  27609. #endif
  27610. #ifdef HAVE_SYS_SELECT_H
  27611. #include <sys/select.h>
  27612. #elif defined(HAVE_UNISTD_H)
  27613. #include <unistd.h>
  27614. #endif
  27615. #ifdef HAVE_SYS_SOCKET_H
  27616. #include <sys/socket.h>
  27617. #endif
  27618. #ifdef HAVE_NETINET_IN_H
  27619. #include <netinet/in.h>
  27620. #endif
  27621. #ifdef HAVE_NETINET_IN6_H
  27622. #include <netinet/in6.h>
  27623. #endif
  27624. #ifdef HAVE_SYS_UN_H
  27625. #include <sys/un.h>
  27626. #endif
  27627. "
  27628. if test "x$ac_cv_header_netinet_in6_h" = xyes
  27629. then :
  27630. printf "%s\n" "#define HAVE_NETINET_IN6_H 1" >>confdefs.h
  27631. fi
  27632. ac_fn_c_check_header_compile "$LINENO" "sys/un.h" "ac_cv_header_sys_un_h" "
  27633. #ifdef HAVE_SYS_TYPES_H
  27634. #include <sys/types.h>
  27635. #endif
  27636. #ifdef HAVE_SYS_TIME_H
  27637. #include <sys/time.h>
  27638. #endif
  27639. #ifdef HAVE_SYS_SELECT_H
  27640. #include <sys/select.h>
  27641. #elif defined(HAVE_UNISTD_H)
  27642. #include <unistd.h>
  27643. #endif
  27644. #ifdef HAVE_SYS_SOCKET_H
  27645. #include <sys/socket.h>
  27646. #endif
  27647. #ifdef HAVE_NETINET_IN_H
  27648. #include <netinet/in.h>
  27649. #endif
  27650. #ifdef HAVE_NETINET_IN6_H
  27651. #include <netinet/in6.h>
  27652. #endif
  27653. #ifdef HAVE_SYS_UN_H
  27654. #include <sys/un.h>
  27655. #endif
  27656. "
  27657. if test "x$ac_cv_header_sys_un_h" = xyes
  27658. then :
  27659. printf "%s\n" "#define HAVE_SYS_UN_H 1" >>confdefs.h
  27660. fi
  27661. ac_fn_c_check_header_compile "$LINENO" "linux/tcp.h" "ac_cv_header_linux_tcp_h" "
  27662. #ifdef HAVE_SYS_TYPES_H
  27663. #include <sys/types.h>
  27664. #endif
  27665. #ifdef HAVE_SYS_TIME_H
  27666. #include <sys/time.h>
  27667. #endif
  27668. #ifdef HAVE_SYS_SELECT_H
  27669. #include <sys/select.h>
  27670. #elif defined(HAVE_UNISTD_H)
  27671. #include <unistd.h>
  27672. #endif
  27673. #ifdef HAVE_SYS_SOCKET_H
  27674. #include <sys/socket.h>
  27675. #endif
  27676. #ifdef HAVE_NETINET_IN_H
  27677. #include <netinet/in.h>
  27678. #endif
  27679. #ifdef HAVE_NETINET_IN6_H
  27680. #include <netinet/in6.h>
  27681. #endif
  27682. #ifdef HAVE_SYS_UN_H
  27683. #include <sys/un.h>
  27684. #endif
  27685. "
  27686. if test "x$ac_cv_header_linux_tcp_h" = xyes
  27687. then :
  27688. printf "%s\n" "#define HAVE_LINUX_TCP_H 1" >>confdefs.h
  27689. fi
  27690. ac_fn_c_check_header_compile "$LINENO" "netinet/tcp.h" "ac_cv_header_netinet_tcp_h" "
  27691. #ifdef HAVE_SYS_TYPES_H
  27692. #include <sys/types.h>
  27693. #endif
  27694. #ifdef HAVE_SYS_TIME_H
  27695. #include <sys/time.h>
  27696. #endif
  27697. #ifdef HAVE_SYS_SELECT_H
  27698. #include <sys/select.h>
  27699. #elif defined(HAVE_UNISTD_H)
  27700. #include <unistd.h>
  27701. #endif
  27702. #ifdef HAVE_SYS_SOCKET_H
  27703. #include <sys/socket.h>
  27704. #endif
  27705. #ifdef HAVE_NETINET_IN_H
  27706. #include <netinet/in.h>
  27707. #endif
  27708. #ifdef HAVE_NETINET_IN6_H
  27709. #include <netinet/in6.h>
  27710. #endif
  27711. #ifdef HAVE_SYS_UN_H
  27712. #include <sys/un.h>
  27713. #endif
  27714. "
  27715. if test "x$ac_cv_header_netinet_tcp_h" = xyes
  27716. then :
  27717. printf "%s\n" "#define HAVE_NETINET_TCP_H 1" >>confdefs.h
  27718. fi
  27719. ac_fn_c_check_header_compile "$LINENO" "netdb.h" "ac_cv_header_netdb_h" "
  27720. #ifdef HAVE_SYS_TYPES_H
  27721. #include <sys/types.h>
  27722. #endif
  27723. #ifdef HAVE_SYS_TIME_H
  27724. #include <sys/time.h>
  27725. #endif
  27726. #ifdef HAVE_SYS_SELECT_H
  27727. #include <sys/select.h>
  27728. #elif defined(HAVE_UNISTD_H)
  27729. #include <unistd.h>
  27730. #endif
  27731. #ifdef HAVE_SYS_SOCKET_H
  27732. #include <sys/socket.h>
  27733. #endif
  27734. #ifdef HAVE_NETINET_IN_H
  27735. #include <netinet/in.h>
  27736. #endif
  27737. #ifdef HAVE_NETINET_IN6_H
  27738. #include <netinet/in6.h>
  27739. #endif
  27740. #ifdef HAVE_SYS_UN_H
  27741. #include <sys/un.h>
  27742. #endif
  27743. "
  27744. if test "x$ac_cv_header_netdb_h" = xyes
  27745. then :
  27746. printf "%s\n" "#define HAVE_NETDB_H 1" >>confdefs.h
  27747. fi
  27748. ac_fn_c_check_header_compile "$LINENO" "sys/sockio.h" "ac_cv_header_sys_sockio_h" "
  27749. #ifdef HAVE_SYS_TYPES_H
  27750. #include <sys/types.h>
  27751. #endif
  27752. #ifdef HAVE_SYS_TIME_H
  27753. #include <sys/time.h>
  27754. #endif
  27755. #ifdef HAVE_SYS_SELECT_H
  27756. #include <sys/select.h>
  27757. #elif defined(HAVE_UNISTD_H)
  27758. #include <unistd.h>
  27759. #endif
  27760. #ifdef HAVE_SYS_SOCKET_H
  27761. #include <sys/socket.h>
  27762. #endif
  27763. #ifdef HAVE_NETINET_IN_H
  27764. #include <netinet/in.h>
  27765. #endif
  27766. #ifdef HAVE_NETINET_IN6_H
  27767. #include <netinet/in6.h>
  27768. #endif
  27769. #ifdef HAVE_SYS_UN_H
  27770. #include <sys/un.h>
  27771. #endif
  27772. "
  27773. if test "x$ac_cv_header_sys_sockio_h" = xyes
  27774. then :
  27775. printf "%s\n" "#define HAVE_SYS_SOCKIO_H 1" >>confdefs.h
  27776. fi
  27777. ac_fn_c_check_header_compile "$LINENO" "sys/stat.h" "ac_cv_header_sys_stat_h" "
  27778. #ifdef HAVE_SYS_TYPES_H
  27779. #include <sys/types.h>
  27780. #endif
  27781. #ifdef HAVE_SYS_TIME_H
  27782. #include <sys/time.h>
  27783. #endif
  27784. #ifdef HAVE_SYS_SELECT_H
  27785. #include <sys/select.h>
  27786. #elif defined(HAVE_UNISTD_H)
  27787. #include <unistd.h>
  27788. #endif
  27789. #ifdef HAVE_SYS_SOCKET_H
  27790. #include <sys/socket.h>
  27791. #endif
  27792. #ifdef HAVE_NETINET_IN_H
  27793. #include <netinet/in.h>
  27794. #endif
  27795. #ifdef HAVE_NETINET_IN6_H
  27796. #include <netinet/in6.h>
  27797. #endif
  27798. #ifdef HAVE_SYS_UN_H
  27799. #include <sys/un.h>
  27800. #endif
  27801. "
  27802. if test "x$ac_cv_header_sys_stat_h" = xyes
  27803. then :
  27804. printf "%s\n" "#define HAVE_SYS_STAT_H 1" >>confdefs.h
  27805. fi
  27806. ac_fn_c_check_header_compile "$LINENO" "sys/param.h" "ac_cv_header_sys_param_h" "
  27807. #ifdef HAVE_SYS_TYPES_H
  27808. #include <sys/types.h>
  27809. #endif
  27810. #ifdef HAVE_SYS_TIME_H
  27811. #include <sys/time.h>
  27812. #endif
  27813. #ifdef HAVE_SYS_SELECT_H
  27814. #include <sys/select.h>
  27815. #elif defined(HAVE_UNISTD_H)
  27816. #include <unistd.h>
  27817. #endif
  27818. #ifdef HAVE_SYS_SOCKET_H
  27819. #include <sys/socket.h>
  27820. #endif
  27821. #ifdef HAVE_NETINET_IN_H
  27822. #include <netinet/in.h>
  27823. #endif
  27824. #ifdef HAVE_NETINET_IN6_H
  27825. #include <netinet/in6.h>
  27826. #endif
  27827. #ifdef HAVE_SYS_UN_H
  27828. #include <sys/un.h>
  27829. #endif
  27830. "
  27831. if test "x$ac_cv_header_sys_param_h" = xyes
  27832. then :
  27833. printf "%s\n" "#define HAVE_SYS_PARAM_H 1" >>confdefs.h
  27834. fi
  27835. ac_fn_c_check_header_compile "$LINENO" "termios.h" "ac_cv_header_termios_h" "
  27836. #ifdef HAVE_SYS_TYPES_H
  27837. #include <sys/types.h>
  27838. #endif
  27839. #ifdef HAVE_SYS_TIME_H
  27840. #include <sys/time.h>
  27841. #endif
  27842. #ifdef HAVE_SYS_SELECT_H
  27843. #include <sys/select.h>
  27844. #elif defined(HAVE_UNISTD_H)
  27845. #include <unistd.h>
  27846. #endif
  27847. #ifdef HAVE_SYS_SOCKET_H
  27848. #include <sys/socket.h>
  27849. #endif
  27850. #ifdef HAVE_NETINET_IN_H
  27851. #include <netinet/in.h>
  27852. #endif
  27853. #ifdef HAVE_NETINET_IN6_H
  27854. #include <netinet/in6.h>
  27855. #endif
  27856. #ifdef HAVE_SYS_UN_H
  27857. #include <sys/un.h>
  27858. #endif
  27859. "
  27860. if test "x$ac_cv_header_termios_h" = xyes
  27861. then :
  27862. printf "%s\n" "#define HAVE_TERMIOS_H 1" >>confdefs.h
  27863. fi
  27864. ac_fn_c_check_header_compile "$LINENO" "termio.h" "ac_cv_header_termio_h" "
  27865. #ifdef HAVE_SYS_TYPES_H
  27866. #include <sys/types.h>
  27867. #endif
  27868. #ifdef HAVE_SYS_TIME_H
  27869. #include <sys/time.h>
  27870. #endif
  27871. #ifdef HAVE_SYS_SELECT_H
  27872. #include <sys/select.h>
  27873. #elif defined(HAVE_UNISTD_H)
  27874. #include <unistd.h>
  27875. #endif
  27876. #ifdef HAVE_SYS_SOCKET_H
  27877. #include <sys/socket.h>
  27878. #endif
  27879. #ifdef HAVE_NETINET_IN_H
  27880. #include <netinet/in.h>
  27881. #endif
  27882. #ifdef HAVE_NETINET_IN6_H
  27883. #include <netinet/in6.h>
  27884. #endif
  27885. #ifdef HAVE_SYS_UN_H
  27886. #include <sys/un.h>
  27887. #endif
  27888. "
  27889. if test "x$ac_cv_header_termio_h" = xyes
  27890. then :
  27891. printf "%s\n" "#define HAVE_TERMIO_H 1" >>confdefs.h
  27892. fi
  27893. ac_fn_c_check_header_compile "$LINENO" "fcntl.h" "ac_cv_header_fcntl_h" "
  27894. #ifdef HAVE_SYS_TYPES_H
  27895. #include <sys/types.h>
  27896. #endif
  27897. #ifdef HAVE_SYS_TIME_H
  27898. #include <sys/time.h>
  27899. #endif
  27900. #ifdef HAVE_SYS_SELECT_H
  27901. #include <sys/select.h>
  27902. #elif defined(HAVE_UNISTD_H)
  27903. #include <unistd.h>
  27904. #endif
  27905. #ifdef HAVE_SYS_SOCKET_H
  27906. #include <sys/socket.h>
  27907. #endif
  27908. #ifdef HAVE_NETINET_IN_H
  27909. #include <netinet/in.h>
  27910. #endif
  27911. #ifdef HAVE_NETINET_IN6_H
  27912. #include <netinet/in6.h>
  27913. #endif
  27914. #ifdef HAVE_SYS_UN_H
  27915. #include <sys/un.h>
  27916. #endif
  27917. "
  27918. if test "x$ac_cv_header_fcntl_h" = xyes
  27919. then :
  27920. printf "%s\n" "#define HAVE_FCNTL_H 1" >>confdefs.h
  27921. fi
  27922. ac_fn_c_check_header_compile "$LINENO" "alloca.h" "ac_cv_header_alloca_h" "
  27923. #ifdef HAVE_SYS_TYPES_H
  27924. #include <sys/types.h>
  27925. #endif
  27926. #ifdef HAVE_SYS_TIME_H
  27927. #include <sys/time.h>
  27928. #endif
  27929. #ifdef HAVE_SYS_SELECT_H
  27930. #include <sys/select.h>
  27931. #elif defined(HAVE_UNISTD_H)
  27932. #include <unistd.h>
  27933. #endif
  27934. #ifdef HAVE_SYS_SOCKET_H
  27935. #include <sys/socket.h>
  27936. #endif
  27937. #ifdef HAVE_NETINET_IN_H
  27938. #include <netinet/in.h>
  27939. #endif
  27940. #ifdef HAVE_NETINET_IN6_H
  27941. #include <netinet/in6.h>
  27942. #endif
  27943. #ifdef HAVE_SYS_UN_H
  27944. #include <sys/un.h>
  27945. #endif
  27946. "
  27947. if test "x$ac_cv_header_alloca_h" = xyes
  27948. then :
  27949. printf "%s\n" "#define HAVE_ALLOCA_H 1" >>confdefs.h
  27950. fi
  27951. ac_fn_c_check_header_compile "$LINENO" "io.h" "ac_cv_header_io_h" "
  27952. #ifdef HAVE_SYS_TYPES_H
  27953. #include <sys/types.h>
  27954. #endif
  27955. #ifdef HAVE_SYS_TIME_H
  27956. #include <sys/time.h>
  27957. #endif
  27958. #ifdef HAVE_SYS_SELECT_H
  27959. #include <sys/select.h>
  27960. #elif defined(HAVE_UNISTD_H)
  27961. #include <unistd.h>
  27962. #endif
  27963. #ifdef HAVE_SYS_SOCKET_H
  27964. #include <sys/socket.h>
  27965. #endif
  27966. #ifdef HAVE_NETINET_IN_H
  27967. #include <netinet/in.h>
  27968. #endif
  27969. #ifdef HAVE_NETINET_IN6_H
  27970. #include <netinet/in6.h>
  27971. #endif
  27972. #ifdef HAVE_SYS_UN_H
  27973. #include <sys/un.h>
  27974. #endif
  27975. "
  27976. if test "x$ac_cv_header_io_h" = xyes
  27977. then :
  27978. printf "%s\n" "#define HAVE_IO_H 1" >>confdefs.h
  27979. fi
  27980. ac_fn_c_check_header_compile "$LINENO" "pwd.h" "ac_cv_header_pwd_h" "
  27981. #ifdef HAVE_SYS_TYPES_H
  27982. #include <sys/types.h>
  27983. #endif
  27984. #ifdef HAVE_SYS_TIME_H
  27985. #include <sys/time.h>
  27986. #endif
  27987. #ifdef HAVE_SYS_SELECT_H
  27988. #include <sys/select.h>
  27989. #elif defined(HAVE_UNISTD_H)
  27990. #include <unistd.h>
  27991. #endif
  27992. #ifdef HAVE_SYS_SOCKET_H
  27993. #include <sys/socket.h>
  27994. #endif
  27995. #ifdef HAVE_NETINET_IN_H
  27996. #include <netinet/in.h>
  27997. #endif
  27998. #ifdef HAVE_NETINET_IN6_H
  27999. #include <netinet/in6.h>
  28000. #endif
  28001. #ifdef HAVE_SYS_UN_H
  28002. #include <sys/un.h>
  28003. #endif
  28004. "
  28005. if test "x$ac_cv_header_pwd_h" = xyes
  28006. then :
  28007. printf "%s\n" "#define HAVE_PWD_H 1" >>confdefs.h
  28008. fi
  28009. ac_fn_c_check_header_compile "$LINENO" "utime.h" "ac_cv_header_utime_h" "
  28010. #ifdef HAVE_SYS_TYPES_H
  28011. #include <sys/types.h>
  28012. #endif
  28013. #ifdef HAVE_SYS_TIME_H
  28014. #include <sys/time.h>
  28015. #endif
  28016. #ifdef HAVE_SYS_SELECT_H
  28017. #include <sys/select.h>
  28018. #elif defined(HAVE_UNISTD_H)
  28019. #include <unistd.h>
  28020. #endif
  28021. #ifdef HAVE_SYS_SOCKET_H
  28022. #include <sys/socket.h>
  28023. #endif
  28024. #ifdef HAVE_NETINET_IN_H
  28025. #include <netinet/in.h>
  28026. #endif
  28027. #ifdef HAVE_NETINET_IN6_H
  28028. #include <netinet/in6.h>
  28029. #endif
  28030. #ifdef HAVE_SYS_UN_H
  28031. #include <sys/un.h>
  28032. #endif
  28033. "
  28034. if test "x$ac_cv_header_utime_h" = xyes
  28035. then :
  28036. printf "%s\n" "#define HAVE_UTIME_H 1" >>confdefs.h
  28037. fi
  28038. ac_fn_c_check_header_compile "$LINENO" "sys/utime.h" "ac_cv_header_sys_utime_h" "
  28039. #ifdef HAVE_SYS_TYPES_H
  28040. #include <sys/types.h>
  28041. #endif
  28042. #ifdef HAVE_SYS_TIME_H
  28043. #include <sys/time.h>
  28044. #endif
  28045. #ifdef HAVE_SYS_SELECT_H
  28046. #include <sys/select.h>
  28047. #elif defined(HAVE_UNISTD_H)
  28048. #include <unistd.h>
  28049. #endif
  28050. #ifdef HAVE_SYS_SOCKET_H
  28051. #include <sys/socket.h>
  28052. #endif
  28053. #ifdef HAVE_NETINET_IN_H
  28054. #include <netinet/in.h>
  28055. #endif
  28056. #ifdef HAVE_NETINET_IN6_H
  28057. #include <netinet/in6.h>
  28058. #endif
  28059. #ifdef HAVE_SYS_UN_H
  28060. #include <sys/un.h>
  28061. #endif
  28062. "
  28063. if test "x$ac_cv_header_sys_utime_h" = xyes
  28064. then :
  28065. printf "%s\n" "#define HAVE_SYS_UTIME_H 1" >>confdefs.h
  28066. fi
  28067. ac_fn_c_check_header_compile "$LINENO" "sys/poll.h" "ac_cv_header_sys_poll_h" "
  28068. #ifdef HAVE_SYS_TYPES_H
  28069. #include <sys/types.h>
  28070. #endif
  28071. #ifdef HAVE_SYS_TIME_H
  28072. #include <sys/time.h>
  28073. #endif
  28074. #ifdef HAVE_SYS_SELECT_H
  28075. #include <sys/select.h>
  28076. #elif defined(HAVE_UNISTD_H)
  28077. #include <unistd.h>
  28078. #endif
  28079. #ifdef HAVE_SYS_SOCKET_H
  28080. #include <sys/socket.h>
  28081. #endif
  28082. #ifdef HAVE_NETINET_IN_H
  28083. #include <netinet/in.h>
  28084. #endif
  28085. #ifdef HAVE_NETINET_IN6_H
  28086. #include <netinet/in6.h>
  28087. #endif
  28088. #ifdef HAVE_SYS_UN_H
  28089. #include <sys/un.h>
  28090. #endif
  28091. "
  28092. if test "x$ac_cv_header_sys_poll_h" = xyes
  28093. then :
  28094. printf "%s\n" "#define HAVE_SYS_POLL_H 1" >>confdefs.h
  28095. fi
  28096. ac_fn_c_check_header_compile "$LINENO" "poll.h" "ac_cv_header_poll_h" "
  28097. #ifdef HAVE_SYS_TYPES_H
  28098. #include <sys/types.h>
  28099. #endif
  28100. #ifdef HAVE_SYS_TIME_H
  28101. #include <sys/time.h>
  28102. #endif
  28103. #ifdef HAVE_SYS_SELECT_H
  28104. #include <sys/select.h>
  28105. #elif defined(HAVE_UNISTD_H)
  28106. #include <unistd.h>
  28107. #endif
  28108. #ifdef HAVE_SYS_SOCKET_H
  28109. #include <sys/socket.h>
  28110. #endif
  28111. #ifdef HAVE_NETINET_IN_H
  28112. #include <netinet/in.h>
  28113. #endif
  28114. #ifdef HAVE_NETINET_IN6_H
  28115. #include <netinet/in6.h>
  28116. #endif
  28117. #ifdef HAVE_SYS_UN_H
  28118. #include <sys/un.h>
  28119. #endif
  28120. "
  28121. if test "x$ac_cv_header_poll_h" = xyes
  28122. then :
  28123. printf "%s\n" "#define HAVE_POLL_H 1" >>confdefs.h
  28124. fi
  28125. ac_fn_c_check_header_compile "$LINENO" "socket.h" "ac_cv_header_socket_h" "
  28126. #ifdef HAVE_SYS_TYPES_H
  28127. #include <sys/types.h>
  28128. #endif
  28129. #ifdef HAVE_SYS_TIME_H
  28130. #include <sys/time.h>
  28131. #endif
  28132. #ifdef HAVE_SYS_SELECT_H
  28133. #include <sys/select.h>
  28134. #elif defined(HAVE_UNISTD_H)
  28135. #include <unistd.h>
  28136. #endif
  28137. #ifdef HAVE_SYS_SOCKET_H
  28138. #include <sys/socket.h>
  28139. #endif
  28140. #ifdef HAVE_NETINET_IN_H
  28141. #include <netinet/in.h>
  28142. #endif
  28143. #ifdef HAVE_NETINET_IN6_H
  28144. #include <netinet/in6.h>
  28145. #endif
  28146. #ifdef HAVE_SYS_UN_H
  28147. #include <sys/un.h>
  28148. #endif
  28149. "
  28150. if test "x$ac_cv_header_socket_h" = xyes
  28151. then :
  28152. printf "%s\n" "#define HAVE_SOCKET_H 1" >>confdefs.h
  28153. fi
  28154. ac_fn_c_check_header_compile "$LINENO" "sys/resource.h" "ac_cv_header_sys_resource_h" "
  28155. #ifdef HAVE_SYS_TYPES_H
  28156. #include <sys/types.h>
  28157. #endif
  28158. #ifdef HAVE_SYS_TIME_H
  28159. #include <sys/time.h>
  28160. #endif
  28161. #ifdef HAVE_SYS_SELECT_H
  28162. #include <sys/select.h>
  28163. #elif defined(HAVE_UNISTD_H)
  28164. #include <unistd.h>
  28165. #endif
  28166. #ifdef HAVE_SYS_SOCKET_H
  28167. #include <sys/socket.h>
  28168. #endif
  28169. #ifdef HAVE_NETINET_IN_H
  28170. #include <netinet/in.h>
  28171. #endif
  28172. #ifdef HAVE_NETINET_IN6_H
  28173. #include <netinet/in6.h>
  28174. #endif
  28175. #ifdef HAVE_SYS_UN_H
  28176. #include <sys/un.h>
  28177. #endif
  28178. "
  28179. if test "x$ac_cv_header_sys_resource_h" = xyes
  28180. then :
  28181. printf "%s\n" "#define HAVE_SYS_RESOURCE_H 1" >>confdefs.h
  28182. fi
  28183. ac_fn_c_check_header_compile "$LINENO" "libgen.h" "ac_cv_header_libgen_h" "
  28184. #ifdef HAVE_SYS_TYPES_H
  28185. #include <sys/types.h>
  28186. #endif
  28187. #ifdef HAVE_SYS_TIME_H
  28188. #include <sys/time.h>
  28189. #endif
  28190. #ifdef HAVE_SYS_SELECT_H
  28191. #include <sys/select.h>
  28192. #elif defined(HAVE_UNISTD_H)
  28193. #include <unistd.h>
  28194. #endif
  28195. #ifdef HAVE_SYS_SOCKET_H
  28196. #include <sys/socket.h>
  28197. #endif
  28198. #ifdef HAVE_NETINET_IN_H
  28199. #include <netinet/in.h>
  28200. #endif
  28201. #ifdef HAVE_NETINET_IN6_H
  28202. #include <netinet/in6.h>
  28203. #endif
  28204. #ifdef HAVE_SYS_UN_H
  28205. #include <sys/un.h>
  28206. #endif
  28207. "
  28208. if test "x$ac_cv_header_libgen_h" = xyes
  28209. then :
  28210. printf "%s\n" "#define HAVE_LIBGEN_H 1" >>confdefs.h
  28211. fi
  28212. ac_fn_c_check_header_compile "$LINENO" "locale.h" "ac_cv_header_locale_h" "
  28213. #ifdef HAVE_SYS_TYPES_H
  28214. #include <sys/types.h>
  28215. #endif
  28216. #ifdef HAVE_SYS_TIME_H
  28217. #include <sys/time.h>
  28218. #endif
  28219. #ifdef HAVE_SYS_SELECT_H
  28220. #include <sys/select.h>
  28221. #elif defined(HAVE_UNISTD_H)
  28222. #include <unistd.h>
  28223. #endif
  28224. #ifdef HAVE_SYS_SOCKET_H
  28225. #include <sys/socket.h>
  28226. #endif
  28227. #ifdef HAVE_NETINET_IN_H
  28228. #include <netinet/in.h>
  28229. #endif
  28230. #ifdef HAVE_NETINET_IN6_H
  28231. #include <netinet/in6.h>
  28232. #endif
  28233. #ifdef HAVE_SYS_UN_H
  28234. #include <sys/un.h>
  28235. #endif
  28236. "
  28237. if test "x$ac_cv_header_locale_h" = xyes
  28238. then :
  28239. printf "%s\n" "#define HAVE_LOCALE_H 1" >>confdefs.h
  28240. fi
  28241. ac_fn_c_check_header_compile "$LINENO" "errno.h" "ac_cv_header_errno_h" "
  28242. #ifdef HAVE_SYS_TYPES_H
  28243. #include <sys/types.h>
  28244. #endif
  28245. #ifdef HAVE_SYS_TIME_H
  28246. #include <sys/time.h>
  28247. #endif
  28248. #ifdef HAVE_SYS_SELECT_H
  28249. #include <sys/select.h>
  28250. #elif defined(HAVE_UNISTD_H)
  28251. #include <unistd.h>
  28252. #endif
  28253. #ifdef HAVE_SYS_SOCKET_H
  28254. #include <sys/socket.h>
  28255. #endif
  28256. #ifdef HAVE_NETINET_IN_H
  28257. #include <netinet/in.h>
  28258. #endif
  28259. #ifdef HAVE_NETINET_IN6_H
  28260. #include <netinet/in6.h>
  28261. #endif
  28262. #ifdef HAVE_SYS_UN_H
  28263. #include <sys/un.h>
  28264. #endif
  28265. "
  28266. if test "x$ac_cv_header_errno_h" = xyes
  28267. then :
  28268. printf "%s\n" "#define HAVE_ERRNO_H 1" >>confdefs.h
  28269. fi
  28270. ac_fn_c_check_header_compile "$LINENO" "stdbool.h" "ac_cv_header_stdbool_h" "
  28271. #ifdef HAVE_SYS_TYPES_H
  28272. #include <sys/types.h>
  28273. #endif
  28274. #ifdef HAVE_SYS_TIME_H
  28275. #include <sys/time.h>
  28276. #endif
  28277. #ifdef HAVE_SYS_SELECT_H
  28278. #include <sys/select.h>
  28279. #elif defined(HAVE_UNISTD_H)
  28280. #include <unistd.h>
  28281. #endif
  28282. #ifdef HAVE_SYS_SOCKET_H
  28283. #include <sys/socket.h>
  28284. #endif
  28285. #ifdef HAVE_NETINET_IN_H
  28286. #include <netinet/in.h>
  28287. #endif
  28288. #ifdef HAVE_NETINET_IN6_H
  28289. #include <netinet/in6.h>
  28290. #endif
  28291. #ifdef HAVE_SYS_UN_H
  28292. #include <sys/un.h>
  28293. #endif
  28294. "
  28295. if test "x$ac_cv_header_stdbool_h" = xyes
  28296. then :
  28297. printf "%s\n" "#define HAVE_STDBOOL_H 1" >>confdefs.h
  28298. fi
  28299. ac_fn_c_check_header_compile "$LINENO" "arpa/tftp.h" "ac_cv_header_arpa_tftp_h" "
  28300. #ifdef HAVE_SYS_TYPES_H
  28301. #include <sys/types.h>
  28302. #endif
  28303. #ifdef HAVE_SYS_TIME_H
  28304. #include <sys/time.h>
  28305. #endif
  28306. #ifdef HAVE_SYS_SELECT_H
  28307. #include <sys/select.h>
  28308. #elif defined(HAVE_UNISTD_H)
  28309. #include <unistd.h>
  28310. #endif
  28311. #ifdef HAVE_SYS_SOCKET_H
  28312. #include <sys/socket.h>
  28313. #endif
  28314. #ifdef HAVE_NETINET_IN_H
  28315. #include <netinet/in.h>
  28316. #endif
  28317. #ifdef HAVE_NETINET_IN6_H
  28318. #include <netinet/in6.h>
  28319. #endif
  28320. #ifdef HAVE_SYS_UN_H
  28321. #include <sys/un.h>
  28322. #endif
  28323. "
  28324. if test "x$ac_cv_header_arpa_tftp_h" = xyes
  28325. then :
  28326. printf "%s\n" "#define HAVE_ARPA_TFTP_H 1" >>confdefs.h
  28327. fi
  28328. ac_fn_c_check_header_compile "$LINENO" "sys/filio.h" "ac_cv_header_sys_filio_h" "
  28329. #ifdef HAVE_SYS_TYPES_H
  28330. #include <sys/types.h>
  28331. #endif
  28332. #ifdef HAVE_SYS_TIME_H
  28333. #include <sys/time.h>
  28334. #endif
  28335. #ifdef HAVE_SYS_SELECT_H
  28336. #include <sys/select.h>
  28337. #elif defined(HAVE_UNISTD_H)
  28338. #include <unistd.h>
  28339. #endif
  28340. #ifdef HAVE_SYS_SOCKET_H
  28341. #include <sys/socket.h>
  28342. #endif
  28343. #ifdef HAVE_NETINET_IN_H
  28344. #include <netinet/in.h>
  28345. #endif
  28346. #ifdef HAVE_NETINET_IN6_H
  28347. #include <netinet/in6.h>
  28348. #endif
  28349. #ifdef HAVE_SYS_UN_H
  28350. #include <sys/un.h>
  28351. #endif
  28352. "
  28353. if test "x$ac_cv_header_sys_filio_h" = xyes
  28354. then :
  28355. printf "%s\n" "#define HAVE_SYS_FILIO_H 1" >>confdefs.h
  28356. fi
  28357. ac_fn_c_check_header_compile "$LINENO" "sys/wait.h" "ac_cv_header_sys_wait_h" "
  28358. #ifdef HAVE_SYS_TYPES_H
  28359. #include <sys/types.h>
  28360. #endif
  28361. #ifdef HAVE_SYS_TIME_H
  28362. #include <sys/time.h>
  28363. #endif
  28364. #ifdef HAVE_SYS_SELECT_H
  28365. #include <sys/select.h>
  28366. #elif defined(HAVE_UNISTD_H)
  28367. #include <unistd.h>
  28368. #endif
  28369. #ifdef HAVE_SYS_SOCKET_H
  28370. #include <sys/socket.h>
  28371. #endif
  28372. #ifdef HAVE_NETINET_IN_H
  28373. #include <netinet/in.h>
  28374. #endif
  28375. #ifdef HAVE_NETINET_IN6_H
  28376. #include <netinet/in6.h>
  28377. #endif
  28378. #ifdef HAVE_SYS_UN_H
  28379. #include <sys/un.h>
  28380. #endif
  28381. "
  28382. if test "x$ac_cv_header_sys_wait_h" = xyes
  28383. then :
  28384. printf "%s\n" "#define HAVE_SYS_WAIT_H 1" >>confdefs.h
  28385. fi
  28386. ac_fn_c_check_header_compile "$LINENO" "setjmp.h" "ac_cv_header_setjmp_h" "
  28387. #ifdef HAVE_SYS_TYPES_H
  28388. #include <sys/types.h>
  28389. #endif
  28390. #ifdef HAVE_SYS_TIME_H
  28391. #include <sys/time.h>
  28392. #endif
  28393. #ifdef HAVE_SYS_SELECT_H
  28394. #include <sys/select.h>
  28395. #elif defined(HAVE_UNISTD_H)
  28396. #include <unistd.h>
  28397. #endif
  28398. #ifdef HAVE_SYS_SOCKET_H
  28399. #include <sys/socket.h>
  28400. #endif
  28401. #ifdef HAVE_NETINET_IN_H
  28402. #include <netinet/in.h>
  28403. #endif
  28404. #ifdef HAVE_NETINET_IN6_H
  28405. #include <netinet/in6.h>
  28406. #endif
  28407. #ifdef HAVE_SYS_UN_H
  28408. #include <sys/un.h>
  28409. #endif
  28410. "
  28411. if test "x$ac_cv_header_setjmp_h" = xyes
  28412. then :
  28413. printf "%s\n" "#define HAVE_SETJMP_H 1" >>confdefs.h
  28414. fi
  28415. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
  28416. printf %s "checking for an ANSI C-conforming const... " >&6; }
  28417. if test ${ac_cv_c_const+y}
  28418. then :
  28419. printf %s "(cached) " >&6
  28420. else $as_nop
  28421. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  28422. /* end confdefs.h. */
  28423. int main (void)
  28424. {
  28425. #ifndef __cplusplus
  28426. /* Ultrix mips cc rejects this sort of thing. */
  28427. typedef int charset[2];
  28428. const charset cs = { 0, 0 };
  28429. /* SunOS 4.1.1 cc rejects this. */
  28430. char const *const *pcpcc;
  28431. char **ppc;
  28432. /* NEC SVR4.0.2 mips cc rejects this. */
  28433. struct point {int x, y;};
  28434. static struct point const zero = {0,0};
  28435. /* IBM XL C 1.02.0.0 rejects this.
  28436. It does not let you subtract one const X* pointer from another in
  28437. an arm of an if-expression whose if-part is not a constant
  28438. expression */
  28439. const char *g = "string";
  28440. pcpcc = &g + (g ? g-g : 0);
  28441. /* HPUX 7.0 cc rejects these. */
  28442. ++pcpcc;
  28443. ppc = (char**) pcpcc;
  28444. pcpcc = (char const *const *) ppc;
  28445. { /* SCO 3.2v4 cc rejects this sort of thing. */
  28446. char tx;
  28447. char *t = &tx;
  28448. char const *s = 0 ? (char *) 0 : (char const *) 0;
  28449. *t++ = 0;
  28450. if (s) return 0;
  28451. }
  28452. { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
  28453. int x[] = {25, 17};
  28454. const int *foo = &x[0];
  28455. ++foo;
  28456. }
  28457. { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
  28458. typedef const int *iptr;
  28459. iptr p = 0;
  28460. ++p;
  28461. }
  28462. { /* IBM XL C 1.02.0.0 rejects this sort of thing, saying
  28463. "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
  28464. struct s { int j; const int *ap[3]; } bx;
  28465. struct s *b = &bx; b->j = 5;
  28466. }
  28467. { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
  28468. const int foo = 10;
  28469. if (!foo) return 0;
  28470. }
  28471. return !cs[0] && !zero.x;
  28472. #endif
  28473. ;
  28474. return 0;
  28475. }
  28476. _ACEOF
  28477. if ac_fn_c_try_compile "$LINENO"
  28478. then :
  28479. ac_cv_c_const=yes
  28480. else $as_nop
  28481. ac_cv_c_const=no
  28482. fi
  28483. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  28484. fi
  28485. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
  28486. printf "%s\n" "$ac_cv_c_const" >&6; }
  28487. if test $ac_cv_c_const = no; then
  28488. printf "%s\n" "#define const /**/" >>confdefs.h
  28489. fi
  28490. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for compiler support of C99 variadic macro style" >&5
  28491. printf %s "checking for compiler support of C99 variadic macro style... " >&6; }
  28492. if test ${curl_cv_variadic_macros_c99+y}
  28493. then :
  28494. printf %s "(cached) " >&6
  28495. else $as_nop
  28496. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  28497. /* end confdefs.h. */
  28498. #define c99_vmacro3(first, ...) fun3(first, __VA_ARGS__)
  28499. #define c99_vmacro2(first, ...) fun2(first, __VA_ARGS__)
  28500. int fun3(int arg1, int arg2, int arg3);
  28501. int fun2(int arg1, int arg2);
  28502. int fun3(int arg1, int arg2, int arg3)
  28503. { return arg1 + arg2 + arg3; }
  28504. int fun2(int arg1, int arg2)
  28505. { return arg1 + arg2; }
  28506. int main (void)
  28507. {
  28508. int res3 = c99_vmacro3(1, 2, 3);
  28509. int res2 = c99_vmacro2(1, 2);
  28510. ;
  28511. return 0;
  28512. }
  28513. _ACEOF
  28514. if ac_fn_c_try_compile "$LINENO"
  28515. then :
  28516. curl_cv_variadic_macros_c99="yes"
  28517. else $as_nop
  28518. curl_cv_variadic_macros_c99="no"
  28519. fi
  28520. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  28521. fi
  28522. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $curl_cv_variadic_macros_c99" >&5
  28523. printf "%s\n" "$curl_cv_variadic_macros_c99" >&6; }
  28524. case "$curl_cv_variadic_macros_c99" in
  28525. yes)
  28526. printf "%s\n" "#define HAVE_VARIADIC_MACROS_C99 1" >>confdefs.h
  28527. ;;
  28528. esac
  28529. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for compiler support of old gcc variadic macro style" >&5
  28530. printf %s "checking for compiler support of old gcc variadic macro style... " >&6; }
  28531. if test ${curl_cv_variadic_macros_gcc+y}
  28532. then :
  28533. printf %s "(cached) " >&6
  28534. else $as_nop
  28535. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  28536. /* end confdefs.h. */
  28537. #define gcc_vmacro3(first, args...) fun3(first, args)
  28538. #define gcc_vmacro2(first, args...) fun2(first, args)
  28539. int fun3(int arg1, int arg2, int arg3);
  28540. int fun2(int arg1, int arg2);
  28541. int fun3(int arg1, int arg2, int arg3)
  28542. { return arg1 + arg2 + arg3; }
  28543. int fun2(int arg1, int arg2)
  28544. { return arg1 + arg2; }
  28545. int main (void)
  28546. {
  28547. int res3 = gcc_vmacro3(1, 2, 3);
  28548. int res2 = gcc_vmacro2(1, 2);
  28549. ;
  28550. return 0;
  28551. }
  28552. _ACEOF
  28553. if ac_fn_c_try_compile "$LINENO"
  28554. then :
  28555. curl_cv_variadic_macros_gcc="yes"
  28556. else $as_nop
  28557. curl_cv_variadic_macros_gcc="no"
  28558. fi
  28559. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  28560. fi
  28561. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $curl_cv_variadic_macros_gcc" >&5
  28562. printf "%s\n" "$curl_cv_variadic_macros_gcc" >&6; }
  28563. case "$curl_cv_variadic_macros_gcc" in
  28564. yes)
  28565. printf "%s\n" "#define HAVE_VARIADIC_MACROS_GCC 1" >>confdefs.h
  28566. ;;
  28567. esac
  28568. ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
  28569. if test "x$ac_cv_type_size_t" = xyes
  28570. then :
  28571. else $as_nop
  28572. printf "%s\n" "#define size_t unsigned int" >>confdefs.h
  28573. fi
  28574. ac_fn_c_check_header_compile "$LINENO" "sys/types.h" "ac_cv_header_sys_types_h" "$ac_includes_default"
  28575. if test "x$ac_cv_header_sys_types_h" = xyes
  28576. then :
  28577. printf "%s\n" "#define HAVE_SYS_TYPES_H 1" >>confdefs.h
  28578. fi
  28579. ac_fn_c_check_header_compile "$LINENO" "sys/time.h" "ac_cv_header_sys_time_h" "$ac_includes_default"
  28580. if test "x$ac_cv_header_sys_time_h" = xyes
  28581. then :
  28582. printf "%s\n" "#define HAVE_SYS_TIME_H 1" >>confdefs.h
  28583. fi
  28584. ac_fn_c_check_header_compile "$LINENO" "sys/socket.h" "ac_cv_header_sys_socket_h" "$ac_includes_default"
  28585. if test "x$ac_cv_header_sys_socket_h" = xyes
  28586. then :
  28587. printf "%s\n" "#define HAVE_SYS_SOCKET_H 1" >>confdefs.h
  28588. fi
  28589. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for struct timeval" >&5
  28590. printf %s "checking for struct timeval... " >&6; }
  28591. if test ${curl_cv_struct_timeval+y}
  28592. then :
  28593. printf %s "(cached) " >&6
  28594. else $as_nop
  28595. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  28596. /* end confdefs.h. */
  28597. #undef inline
  28598. #ifdef HAVE_WINDOWS_H
  28599. #ifndef WIN32_LEAN_AND_MEAN
  28600. #define WIN32_LEAN_AND_MEAN
  28601. #endif
  28602. #include <windows.h>
  28603. #ifdef HAVE_WINSOCK2_H
  28604. #include <winsock2.h>
  28605. #endif
  28606. #endif
  28607. #ifdef HAVE_SYS_TYPES_H
  28608. #include <sys/types.h>
  28609. #endif
  28610. #ifdef HAVE_SYS_TIME_H
  28611. #include <sys/time.h>
  28612. #endif
  28613. #include <time.h>
  28614. #ifdef HAVE_SYS_SOCKET_H
  28615. #include <sys/socket.h>
  28616. #endif
  28617. int main (void)
  28618. {
  28619. struct timeval ts;
  28620. ts.tv_sec = 0;
  28621. ts.tv_usec = 0;
  28622. ;
  28623. return 0;
  28624. }
  28625. _ACEOF
  28626. if ac_fn_c_try_compile "$LINENO"
  28627. then :
  28628. curl_cv_struct_timeval="yes"
  28629. else $as_nop
  28630. curl_cv_struct_timeval="no"
  28631. fi
  28632. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  28633. fi
  28634. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $curl_cv_struct_timeval" >&5
  28635. printf "%s\n" "$curl_cv_struct_timeval" >&6; }
  28636. case "$curl_cv_struct_timeval" in
  28637. yes)
  28638. printf "%s\n" "#define HAVE_STRUCT_TIMEVAL 1" >>confdefs.h
  28639. ;;
  28640. esac
  28641. if test "x$cross_compiling" != xyes; then
  28642. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking run-time libs availability" >&5
  28643. printf %s "checking run-time libs availability... " >&6; }
  28644. old=$LD_LIBRARY_PATH
  28645. LD_LIBRARY_PATH=$CURL_LIBRARY_PATH:$old
  28646. export LD_LIBRARY_PATH
  28647. if test "$cross_compiling" = yes
  28648. then :
  28649. { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  28650. printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
  28651. as_fn_error $? "cannot run test program while cross compiling
  28652. See \`config.log' for more details" "$LINENO" 5; }
  28653. else $as_nop
  28654. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  28655. /* end confdefs.h. */
  28656. int main()
  28657. {
  28658. return 0;
  28659. }
  28660. _ACEOF
  28661. if ac_fn_c_try_run "$LINENO"
  28662. then :
  28663. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: fine" >&5
  28664. printf "%s\n" "fine" >&6; }
  28665. else $as_nop
  28666. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: failed" >&5
  28667. printf "%s\n" "failed" >&6; }
  28668. as_fn_error $? "one or more libs available at link-time are not available run-time. Libs used at link-time: $LIBS" "$LINENO" 5
  28669. fi
  28670. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  28671. conftest.$ac_objext conftest.beam conftest.$ac_ext
  28672. fi
  28673. LD_LIBRARY_PATH=$old # restore
  28674. fi
  28675. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking size of size_t" >&5
  28676. printf %s "checking size of size_t... " >&6; }
  28677. if test ${ac_cv_sizeof_size_t+y}
  28678. then :
  28679. printf %s "(cached) " >&6
  28680. else $as_nop
  28681. for ac_size in 4 8 1 2 16 ; do # List sizes in rough order of prevalence.
  28682. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  28683. /* end confdefs.h. */
  28684. #include <sys/types.h>
  28685. int main (void)
  28686. {
  28687. switch (0) case 0: case (sizeof (size_t) == $ac_size):;
  28688. ;
  28689. return 0;
  28690. }
  28691. _ACEOF
  28692. if ac_fn_c_try_compile "$LINENO"
  28693. then :
  28694. ac_cv_sizeof_size_t=$ac_size
  28695. fi
  28696. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  28697. if test x$ac_cv_sizeof_size_t != x ; then break; fi
  28698. done
  28699. fi
  28700. if test x$ac_cv_sizeof_size_t = x ; then
  28701. as_fn_error $? "cannot determine a size for size_t" "$LINENO" 5
  28702. fi
  28703. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_size_t" >&5
  28704. printf "%s\n" "$ac_cv_sizeof_size_t" >&6; }
  28705. printf "%s\n" "#define SIZEOF_SIZE_T $ac_cv_sizeof_size_t" >>confdefs.h
  28706. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking size of long" >&5
  28707. printf %s "checking size of long... " >&6; }
  28708. if test ${ac_cv_sizeof_long+y}
  28709. then :
  28710. printf %s "(cached) " >&6
  28711. else $as_nop
  28712. for ac_size in 4 8 1 2 16 ; do # List sizes in rough order of prevalence.
  28713. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  28714. /* end confdefs.h. */
  28715. #include <sys/types.h>
  28716. int main (void)
  28717. {
  28718. switch (0) case 0: case (sizeof (long) == $ac_size):;
  28719. ;
  28720. return 0;
  28721. }
  28722. _ACEOF
  28723. if ac_fn_c_try_compile "$LINENO"
  28724. then :
  28725. ac_cv_sizeof_long=$ac_size
  28726. fi
  28727. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  28728. if test x$ac_cv_sizeof_long != x ; then break; fi
  28729. done
  28730. fi
  28731. if test x$ac_cv_sizeof_long = x ; then
  28732. as_fn_error $? "cannot determine a size for long" "$LINENO" 5
  28733. fi
  28734. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5
  28735. printf "%s\n" "$ac_cv_sizeof_long" >&6; }
  28736. printf "%s\n" "#define SIZEOF_LONG $ac_cv_sizeof_long" >>confdefs.h
  28737. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking size of int" >&5
  28738. printf %s "checking size of int... " >&6; }
  28739. if test ${ac_cv_sizeof_int+y}
  28740. then :
  28741. printf %s "(cached) " >&6
  28742. else $as_nop
  28743. for ac_size in 4 8 1 2 16 ; do # List sizes in rough order of prevalence.
  28744. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  28745. /* end confdefs.h. */
  28746. #include <sys/types.h>
  28747. int main (void)
  28748. {
  28749. switch (0) case 0: case (sizeof (int) == $ac_size):;
  28750. ;
  28751. return 0;
  28752. }
  28753. _ACEOF
  28754. if ac_fn_c_try_compile "$LINENO"
  28755. then :
  28756. ac_cv_sizeof_int=$ac_size
  28757. fi
  28758. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  28759. if test x$ac_cv_sizeof_int != x ; then break; fi
  28760. done
  28761. fi
  28762. if test x$ac_cv_sizeof_int = x ; then
  28763. as_fn_error $? "cannot determine a size for int" "$LINENO" 5
  28764. fi
  28765. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int" >&5
  28766. printf "%s\n" "$ac_cv_sizeof_int" >&6; }
  28767. printf "%s\n" "#define SIZEOF_INT $ac_cv_sizeof_int" >>confdefs.h
  28768. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking size of short" >&5
  28769. printf %s "checking size of short... " >&6; }
  28770. if test ${ac_cv_sizeof_short+y}
  28771. then :
  28772. printf %s "(cached) " >&6
  28773. else $as_nop
  28774. for ac_size in 4 8 1 2 16 ; do # List sizes in rough order of prevalence.
  28775. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  28776. /* end confdefs.h. */
  28777. #include <sys/types.h>
  28778. int main (void)
  28779. {
  28780. switch (0) case 0: case (sizeof (short) == $ac_size):;
  28781. ;
  28782. return 0;
  28783. }
  28784. _ACEOF
  28785. if ac_fn_c_try_compile "$LINENO"
  28786. then :
  28787. ac_cv_sizeof_short=$ac_size
  28788. fi
  28789. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  28790. if test x$ac_cv_sizeof_short != x ; then break; fi
  28791. done
  28792. fi
  28793. if test x$ac_cv_sizeof_short = x ; then
  28794. as_fn_error $? "cannot determine a size for short" "$LINENO" 5
  28795. fi
  28796. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_short" >&5
  28797. printf "%s\n" "$ac_cv_sizeof_short" >&6; }
  28798. printf "%s\n" "#define SIZEOF_SHORT $ac_cv_sizeof_short" >>confdefs.h
  28799. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking size of time_t" >&5
  28800. printf %s "checking size of time_t... " >&6; }
  28801. if test ${ac_cv_sizeof_time_t+y}
  28802. then :
  28803. printf %s "(cached) " >&6
  28804. else $as_nop
  28805. for ac_size in 4 8 1 2 16 ; do # List sizes in rough order of prevalence.
  28806. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  28807. /* end confdefs.h. */
  28808. #include <sys/types.h>
  28809. int main (void)
  28810. {
  28811. switch (0) case 0: case (sizeof (time_t) == $ac_size):;
  28812. ;
  28813. return 0;
  28814. }
  28815. _ACEOF
  28816. if ac_fn_c_try_compile "$LINENO"
  28817. then :
  28818. ac_cv_sizeof_time_t=$ac_size
  28819. fi
  28820. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  28821. if test x$ac_cv_sizeof_time_t != x ; then break; fi
  28822. done
  28823. fi
  28824. if test x$ac_cv_sizeof_time_t = x ; then
  28825. as_fn_error $? "cannot determine a size for time_t" "$LINENO" 5
  28826. fi
  28827. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_time_t" >&5
  28828. printf "%s\n" "$ac_cv_sizeof_time_t" >&6; }
  28829. printf "%s\n" "#define SIZEOF_TIME_T $ac_cv_sizeof_time_t" >>confdefs.h
  28830. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking size of off_t" >&5
  28831. printf %s "checking size of off_t... " >&6; }
  28832. if test ${ac_cv_sizeof_off_t+y}
  28833. then :
  28834. printf %s "(cached) " >&6
  28835. else $as_nop
  28836. for ac_size in 4 8 1 2 16 ; do # List sizes in rough order of prevalence.
  28837. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  28838. /* end confdefs.h. */
  28839. #include <sys/types.h>
  28840. int main (void)
  28841. {
  28842. switch (0) case 0: case (sizeof (off_t) == $ac_size):;
  28843. ;
  28844. return 0;
  28845. }
  28846. _ACEOF
  28847. if ac_fn_c_try_compile "$LINENO"
  28848. then :
  28849. ac_cv_sizeof_off_t=$ac_size
  28850. fi
  28851. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  28852. if test x$ac_cv_sizeof_off_t != x ; then break; fi
  28853. done
  28854. fi
  28855. if test x$ac_cv_sizeof_off_t = x ; then
  28856. as_fn_error $? "cannot determine a size for off_t" "$LINENO" 5
  28857. fi
  28858. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_off_t" >&5
  28859. printf "%s\n" "$ac_cv_sizeof_off_t" >&6; }
  28860. printf "%s\n" "#define SIZEOF_OFF_T $ac_cv_sizeof_off_t" >>confdefs.h
  28861. o=$CPPFLAGS
  28862. CPPFLAGS="-I$srcdir/include $CPPFLAGS"
  28863. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking size of curl_off_t" >&5
  28864. printf %s "checking size of curl_off_t... " >&6; }
  28865. if test ${ac_cv_sizeof_curl_off_t+y}
  28866. then :
  28867. printf %s "(cached) " >&6
  28868. else $as_nop
  28869. for ac_size in 4 8 1 2 16 ; do # List sizes in rough order of prevalence.
  28870. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  28871. /* end confdefs.h. */
  28872. #include <sys/types.h>
  28873. #include <curl/system.h>
  28874. int main (void)
  28875. {
  28876. switch (0) case 0: case (sizeof (curl_off_t) == $ac_size):;
  28877. ;
  28878. return 0;
  28879. }
  28880. _ACEOF
  28881. if ac_fn_c_try_compile "$LINENO"
  28882. then :
  28883. ac_cv_sizeof_curl_off_t=$ac_size
  28884. fi
  28885. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  28886. if test x$ac_cv_sizeof_curl_off_t != x ; then break; fi
  28887. done
  28888. fi
  28889. if test x$ac_cv_sizeof_curl_off_t = x ; then
  28890. as_fn_error $? "cannot determine a size for curl_off_t" "$LINENO" 5
  28891. fi
  28892. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_curl_off_t" >&5
  28893. printf "%s\n" "$ac_cv_sizeof_curl_off_t" >&6; }
  28894. printf "%s\n" "#define SIZEOF_CURL_OFF_T $ac_cv_sizeof_curl_off_t" >>confdefs.h
  28895. CPPFLAGS=$o
  28896. ac_fn_c_check_type "$LINENO" "long long" "ac_cv_type_long_long" "$ac_includes_default"
  28897. if test "x$ac_cv_type_long_long" = xyes
  28898. then :
  28899. printf "%s\n" "#define HAVE_LONGLONG 1" >>confdefs.h
  28900. longlong="yes"
  28901. fi
  28902. if test "xyes" = "x$longlong"; then
  28903. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if numberLL works" >&5
  28904. printf %s "checking if numberLL works... " >&6; }
  28905. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  28906. /* end confdefs.h. */
  28907. int main (void)
  28908. {
  28909. long long val = 1000LL;
  28910. ;
  28911. return 0;
  28912. }
  28913. _ACEOF
  28914. if ac_fn_c_try_compile "$LINENO"
  28915. then :
  28916. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  28917. printf "%s\n" "yes" >&6; }
  28918. printf "%s\n" "#define HAVE_LL 1" >>confdefs.h
  28919. else $as_nop
  28920. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  28921. printf "%s\n" "no" >&6; }
  28922. fi
  28923. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  28924. fi
  28925. # check for ssize_t
  28926. ac_fn_c_check_type "$LINENO" "ssize_t" "ac_cv_type_ssize_t" "$ac_includes_default"
  28927. if test "x$ac_cv_type_ssize_t" = xyes
  28928. then :
  28929. else $as_nop
  28930. printf "%s\n" "#define ssize_t int" >>confdefs.h
  28931. fi
  28932. # check for bool type
  28933. ac_fn_c_check_type "$LINENO" "bool" "ac_cv_type_bool" "
  28934. #ifdef HAVE_SYS_TYPES_H
  28935. #include <sys/types.h>
  28936. #endif
  28937. #ifdef HAVE_STDBOOL_H
  28938. #include <stdbool.h>
  28939. #endif
  28940. "
  28941. if test "x$ac_cv_type_bool" = xyes
  28942. then :
  28943. printf "%s\n" "#define HAVE_BOOL_T 1" >>confdefs.h
  28944. fi
  28945. # check for sa_family_t
  28946. ac_fn_c_check_type "$LINENO" "sa_family_t" "ac_cv_type_sa_family_t" "
  28947. #ifdef HAVE_SYS_SOCKET_H
  28948. #include <sys/socket.h>
  28949. #endif
  28950. "
  28951. if test "x$ac_cv_type_sa_family_t" = xyes
  28952. then :
  28953. printf "%s\n" "#define CURL_SA_FAMILY_T sa_family_t" >>confdefs.h
  28954. else $as_nop
  28955. # The windows name?
  28956. ac_fn_c_check_type "$LINENO" "ADDRESS_FAMILY" "ac_cv_type_ADDRESS_FAMILY" "
  28957. #ifdef HAVE_SYS_SOCKET_H
  28958. #include <sys/socket.h>
  28959. #endif
  28960. "
  28961. if test "x$ac_cv_type_ADDRESS_FAMILY" = xyes
  28962. then :
  28963. printf "%s\n" "#define CURL_SA_FAMILY_T ADDRESS_FAMILY" >>confdefs.h
  28964. else $as_nop
  28965. printf "%s\n" "#define CURL_SA_FAMILY_T unsigned short" >>confdefs.h
  28966. fi
  28967. fi
  28968. # check for suseconds_t
  28969. ac_fn_c_check_type "$LINENO" "suseconds_t" "ac_cv_type_suseconds_t" "
  28970. #ifdef HAVE_SYS_TYPES_H
  28971. #include <sys/types.h>
  28972. #endif
  28973. #ifdef HAVE_SYS_TIME_H
  28974. #include <sys/time.h>
  28975. #endif
  28976. "
  28977. if test "x$ac_cv_type_suseconds_t" = xyes
  28978. then :
  28979. printf "%s\n" "#define HAVE_SUSECONDS_T 1" >>confdefs.h
  28980. fi
  28981. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if time_t is unsigned" >&5
  28982. printf %s "checking if time_t is unsigned... " >&6; }
  28983. old=$LD_LIBRARY_PATH
  28984. LD_LIBRARY_PATH=$CURL_LIBRARY_PATH:$old
  28985. export LD_LIBRARY_PATH
  28986. if test "$cross_compiling" = yes
  28987. then :
  28988. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  28989. printf "%s\n" "no" >&6; }
  28990. else $as_nop
  28991. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  28992. /* end confdefs.h. */
  28993. #include <time.h>
  28994. #include <limits.h>
  28995. time_t t = -1;
  28996. return (t > 0);
  28997. _ACEOF
  28998. if ac_fn_c_try_run "$LINENO"
  28999. then :
  29000. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  29001. printf "%s\n" "yes" >&6; }
  29002. printf "%s\n" "#define HAVE_TIME_T_UNSIGNED 1" >>confdefs.h
  29003. else $as_nop
  29004. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  29005. printf "%s\n" "no" >&6; }
  29006. fi
  29007. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  29008. conftest.$ac_objext conftest.beam conftest.$ac_ext
  29009. fi
  29010. LD_LIBRARY_PATH=$old # restore
  29011. curl_includes_poll="\
  29012. /* includes start */
  29013. #ifdef HAVE_SYS_TYPES_H
  29014. # include <sys/types.h>
  29015. #endif
  29016. #ifdef HAVE_POLL_H
  29017. # include <poll.h>
  29018. #endif
  29019. #ifdef HAVE_SYS_POLL_H
  29020. # include <sys/poll.h>
  29021. #endif
  29022. /* includes end */"
  29023. ac_fn_c_check_header_compile "$LINENO" "sys/types.h" "ac_cv_header_sys_types_h" "$curl_includes_poll
  29024. "
  29025. if test "x$ac_cv_header_sys_types_h" = xyes
  29026. then :
  29027. printf "%s\n" "#define HAVE_SYS_TYPES_H 1" >>confdefs.h
  29028. fi
  29029. ac_fn_c_check_header_compile "$LINENO" "poll.h" "ac_cv_header_poll_h" "$curl_includes_poll
  29030. "
  29031. if test "x$ac_cv_header_poll_h" = xyes
  29032. then :
  29033. printf "%s\n" "#define HAVE_POLL_H 1" >>confdefs.h
  29034. fi
  29035. ac_fn_c_check_header_compile "$LINENO" "sys/poll.h" "ac_cv_header_sys_poll_h" "$curl_includes_poll
  29036. "
  29037. if test "x$ac_cv_header_sys_poll_h" = xyes
  29038. then :
  29039. printf "%s\n" "#define HAVE_SYS_POLL_H 1" >>confdefs.h
  29040. fi
  29041. #
  29042. tst_poll_events_macro_defined="unknown"
  29043. #
  29044. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  29045. /* end confdefs.h. */
  29046. $curl_includes_poll
  29047. int main (void)
  29048. {
  29049. #if defined(events) || defined(revents)
  29050. return 0;
  29051. #else
  29052. force compilation error
  29053. #endif
  29054. ;
  29055. return 0;
  29056. }
  29057. _ACEOF
  29058. if ac_fn_c_try_compile "$LINENO"
  29059. then :
  29060. tst_poll_events_macro_defined="yes"
  29061. else $as_nop
  29062. tst_poll_events_macro_defined="no"
  29063. fi
  29064. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  29065. #
  29066. if test "$tst_poll_events_macro_defined" = "yes"; then
  29067. if test "x$ac_cv_header_sys_poll_h" = "xyes"; then
  29068. cat >>confdefs.h <<_EOF
  29069. #define CURL_PULL_SYS_POLL_H 1
  29070. _EOF
  29071. fi
  29072. fi
  29073. #
  29074. ac_fn_c_check_type "$LINENO" "in_addr_t" "ac_cv_type_in_addr_t" "
  29075. #undef inline
  29076. #ifdef HAVE_WINDOWS_H
  29077. #ifndef WIN32_LEAN_AND_MEAN
  29078. #define WIN32_LEAN_AND_MEAN
  29079. #endif
  29080. #include <windows.h>
  29081. #ifdef HAVE_WINSOCK2_H
  29082. #include <winsock2.h>
  29083. #endif
  29084. #else
  29085. #ifdef HAVE_SYS_TYPES_H
  29086. #include <sys/types.h>
  29087. #endif
  29088. #ifdef HAVE_SYS_SOCKET_H
  29089. #include <sys/socket.h>
  29090. #endif
  29091. #ifdef HAVE_NETINET_IN_H
  29092. #include <netinet/in.h>
  29093. #endif
  29094. #ifdef HAVE_ARPA_INET_H
  29095. #include <arpa/inet.h>
  29096. #endif
  29097. #endif
  29098. "
  29099. if test "x$ac_cv_type_in_addr_t" = xyes
  29100. then :
  29101. else $as_nop
  29102. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for in_addr_t equivalent" >&5
  29103. printf %s "checking for in_addr_t equivalent... " >&6; }
  29104. if test ${curl_cv_in_addr_t_equiv+y}
  29105. then :
  29106. printf %s "(cached) " >&6
  29107. else $as_nop
  29108. curl_cv_in_addr_t_equiv="unknown"
  29109. for t in "unsigned long" int size_t unsigned long; do
  29110. if test "$curl_cv_in_addr_t_equiv" = "unknown"; then
  29111. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  29112. /* end confdefs.h. */
  29113. #undef inline
  29114. #ifdef HAVE_WINDOWS_H
  29115. #ifndef WIN32_LEAN_AND_MEAN
  29116. #define WIN32_LEAN_AND_MEAN
  29117. #endif
  29118. #include <windows.h>
  29119. #ifdef HAVE_WINSOCK2_H
  29120. #include <winsock2.h>
  29121. #endif
  29122. #else
  29123. #ifdef HAVE_SYS_TYPES_H
  29124. #include <sys/types.h>
  29125. #endif
  29126. #ifdef HAVE_SYS_SOCKET_H
  29127. #include <sys/socket.h>
  29128. #endif
  29129. #ifdef HAVE_NETINET_IN_H
  29130. #include <netinet/in.h>
  29131. #endif
  29132. #ifdef HAVE_ARPA_INET_H
  29133. #include <arpa/inet.h>
  29134. #endif
  29135. #endif
  29136. int main (void)
  29137. {
  29138. $t data = inet_addr ("1.2.3.4");
  29139. ;
  29140. return 0;
  29141. }
  29142. _ACEOF
  29143. if ac_fn_c_try_link "$LINENO"
  29144. then :
  29145. curl_cv_in_addr_t_equiv="$t"
  29146. fi
  29147. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  29148. conftest$ac_exeext conftest.$ac_ext
  29149. fi
  29150. done
  29151. fi
  29152. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $curl_cv_in_addr_t_equiv" >&5
  29153. printf "%s\n" "$curl_cv_in_addr_t_equiv" >&6; }
  29154. case "$curl_cv_in_addr_t_equiv" in
  29155. unknown)
  29156. as_fn_error $? "Cannot find a type to use in place of in_addr_t" "$LINENO" 5
  29157. ;;
  29158. *)
  29159. printf "%s\n" "#define in_addr_t $curl_cv_in_addr_t_equiv" >>confdefs.h
  29160. ;;
  29161. esac
  29162. fi
  29163. ac_fn_c_check_type "$LINENO" "struct sockaddr_storage" "ac_cv_type_struct_sockaddr_storage" "
  29164. #undef inline
  29165. #ifdef HAVE_WINDOWS_H
  29166. #ifndef WIN32_LEAN_AND_MEAN
  29167. #define WIN32_LEAN_AND_MEAN
  29168. #endif
  29169. #include <windows.h>
  29170. #ifdef HAVE_WINSOCK2_H
  29171. #include <winsock2.h>
  29172. #endif
  29173. #else
  29174. #ifdef HAVE_SYS_TYPES_H
  29175. #include <sys/types.h>
  29176. #endif
  29177. #ifdef HAVE_SYS_SOCKET_H
  29178. #include <sys/socket.h>
  29179. #endif
  29180. #ifdef HAVE_NETINET_IN_H
  29181. #include <netinet/in.h>
  29182. #endif
  29183. #ifdef HAVE_ARPA_INET_H
  29184. #include <arpa/inet.h>
  29185. #endif
  29186. #endif
  29187. "
  29188. if test "x$ac_cv_type_struct_sockaddr_storage" = xyes
  29189. then :
  29190. printf "%s\n" "#define HAVE_STRUCT_SOCKADDR_STORAGE 1" >>confdefs.h
  29191. fi
  29192. ac_fn_c_check_header_compile "$LINENO" "sys/select.h" "ac_cv_header_sys_select_h" "$ac_includes_default"
  29193. if test "x$ac_cv_header_sys_select_h" = xyes
  29194. then :
  29195. printf "%s\n" "#define HAVE_SYS_SELECT_H 1" >>confdefs.h
  29196. fi
  29197. ac_fn_c_check_header_compile "$LINENO" "sys/socket.h" "ac_cv_header_sys_socket_h" "$ac_includes_default"
  29198. if test "x$ac_cv_header_sys_socket_h" = xyes
  29199. then :
  29200. printf "%s\n" "#define HAVE_SYS_SOCKET_H 1" >>confdefs.h
  29201. fi
  29202. #
  29203. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for select" >&5
  29204. printf %s "checking for select... " >&6; }
  29205. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  29206. /* end confdefs.h. */
  29207. #undef inline
  29208. #ifdef HAVE_WINDOWS_H
  29209. #ifndef WIN32_LEAN_AND_MEAN
  29210. #define WIN32_LEAN_AND_MEAN
  29211. #endif
  29212. #include <windows.h>
  29213. #ifdef HAVE_WINSOCK2_H
  29214. #include <winsock2.h>
  29215. #endif
  29216. #endif
  29217. #ifdef HAVE_SYS_TYPES_H
  29218. #include <sys/types.h>
  29219. #endif
  29220. #ifdef HAVE_SYS_TIME_H
  29221. #include <sys/time.h>
  29222. #endif
  29223. #include <time.h>
  29224. #ifndef HAVE_WINDOWS_H
  29225. #ifdef HAVE_SYS_SELECT_H
  29226. #include <sys/select.h>
  29227. #elif defined(HAVE_UNISTD_H)
  29228. #include <unistd.h>
  29229. #endif
  29230. #ifdef HAVE_SYS_SOCKET_H
  29231. #include <sys/socket.h>
  29232. #endif
  29233. #ifdef HAVE_PROTO_BSDSOCKET_H
  29234. #include <proto/bsdsocket.h>
  29235. struct Library *SocketBase = NULL;
  29236. #define select(a,b,c,d,e) WaitSelect(a,b,c,d,e,0)
  29237. #endif
  29238. #endif
  29239. int main (void)
  29240. {
  29241. select(0, 0, 0, 0, 0);
  29242. ;
  29243. return 0;
  29244. }
  29245. _ACEOF
  29246. if ac_fn_c_try_link "$LINENO"
  29247. then :
  29248. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  29249. printf "%s\n" "yes" >&6; }
  29250. curl_cv_select="yes"
  29251. else $as_nop
  29252. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  29253. printf "%s\n" "no" >&6; }
  29254. curl_cv_select="no"
  29255. fi
  29256. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  29257. conftest$ac_exeext conftest.$ac_ext
  29258. #
  29259. if test "$curl_cv_select" = "yes"; then
  29260. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking types of args and return type for select" >&5
  29261. printf %s "checking types of args and return type for select... " >&6; }
  29262. if test ${curl_cv_func_select_args+y}
  29263. then :
  29264. printf %s "(cached) " >&6
  29265. else $as_nop
  29266. curl_cv_func_select_args="unknown"
  29267. for sel_retv in 'int' 'ssize_t'; do
  29268. for sel_arg1 in 'int' 'ssize_t' 'size_t' 'unsigned long int' 'unsigned int'; do
  29269. for sel_arg234 in 'fd_set *' 'int *' 'void *'; do
  29270. for sel_arg5 in 'struct timeval *' 'const struct timeval *'; do
  29271. if test "$curl_cv_func_select_args" = "unknown"; then
  29272. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  29273. /* end confdefs.h. */
  29274. #undef inline
  29275. #ifdef HAVE_WINDOWS_H
  29276. #ifndef WIN32_LEAN_AND_MEAN
  29277. #define WIN32_LEAN_AND_MEAN
  29278. #endif
  29279. #include <windows.h>
  29280. #ifdef HAVE_WINSOCK2_H
  29281. #include <winsock2.h>
  29282. #endif
  29283. #define SELECTCALLCONV PASCAL
  29284. #endif
  29285. #ifdef HAVE_SYS_TYPES_H
  29286. #include <sys/types.h>
  29287. #endif
  29288. #ifdef HAVE_SYS_TIME_H
  29289. #include <sys/time.h>
  29290. #endif
  29291. #include <time.h>
  29292. #ifndef HAVE_WINDOWS_H
  29293. #ifdef HAVE_SYS_SELECT_H
  29294. #include <sys/select.h>
  29295. #elif defined(HAVE_UNISTD_H)
  29296. #include <unistd.h>
  29297. #endif
  29298. #ifdef HAVE_SYS_SOCKET_H
  29299. #include <sys/socket.h>
  29300. #endif
  29301. #ifdef HAVE_PROTO_BSDSOCKET_H
  29302. #include <proto/bsdsocket.h>
  29303. struct Library *SocketBase = NULL;
  29304. #define select(a,b,c,d,e) WaitSelect(a,b,c,d,e,0)
  29305. #endif
  29306. #define SELECTCALLCONV
  29307. #endif
  29308. #ifndef HAVE_STRUCT_TIMEVAL
  29309. struct timeval {
  29310. long tv_sec;
  29311. long tv_usec;
  29312. };
  29313. #endif
  29314. #ifndef HAVE_PROTO_BSDSOCKET_H
  29315. extern $sel_retv SELECTCALLCONV
  29316. select($sel_arg1,
  29317. $sel_arg234,
  29318. $sel_arg234,
  29319. $sel_arg234,
  29320. $sel_arg5);
  29321. #endif
  29322. int main (void)
  29323. {
  29324. $sel_arg1 nfds=0;
  29325. $sel_arg234 rfds=0;
  29326. $sel_arg234 wfds=0;
  29327. $sel_arg234 efds=0;
  29328. $sel_retv res = select(nfds, rfds, wfds, efds, 0);
  29329. ;
  29330. return 0;
  29331. }
  29332. _ACEOF
  29333. if ac_fn_c_try_compile "$LINENO"
  29334. then :
  29335. curl_cv_func_select_args="$sel_arg1,$sel_arg234,$sel_arg5,$sel_retv"
  29336. fi
  29337. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  29338. fi
  29339. done
  29340. done
  29341. done
  29342. done
  29343. fi
  29344. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $curl_cv_func_select_args" >&5
  29345. printf "%s\n" "$curl_cv_func_select_args" >&6; } # AC-CACHE-CHECK
  29346. if test "$curl_cv_func_select_args" = "unknown"; then
  29347. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: Cannot find proper types to use for select args" >&5
  29348. printf "%s\n" "$as_me: WARNING: Cannot find proper types to use for select args" >&2;}
  29349. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: HAVE_SELECT will not be defined" >&5
  29350. printf "%s\n" "$as_me: WARNING: HAVE_SELECT will not be defined" >&2;}
  29351. else
  29352. select_prev_IFS=$IFS; IFS=','
  29353. set dummy `echo "$curl_cv_func_select_args" | sed 's/\*/\*/g'`
  29354. IFS=$select_prev_IFS
  29355. shift
  29356. #
  29357. sel_qual_type_arg5=$3
  29358. #
  29359. printf "%s\n" "#define SELECT_TYPE_ARG1 $1" >>confdefs.h
  29360. printf "%s\n" "#define SELECT_TYPE_ARG234 $2" >>confdefs.h
  29361. printf "%s\n" "#define SELECT_TYPE_RETV $4" >>confdefs.h
  29362. #
  29363. prev_sh_opts=$-
  29364. #
  29365. case $prev_sh_opts in
  29366. *f*)
  29367. ;;
  29368. *)
  29369. set -f
  29370. ;;
  29371. esac
  29372. #
  29373. case "$sel_qual_type_arg5" in
  29374. const*)
  29375. sel_qual_arg5=const
  29376. sel_type_arg5=`echo $sel_qual_type_arg5 | sed 's/^const //'`
  29377. ;;
  29378. *)
  29379. sel_qual_arg5=
  29380. sel_type_arg5=$sel_qual_type_arg5
  29381. ;;
  29382. esac
  29383. #
  29384. printf "%s\n" "#define SELECT_QUAL_ARG5 $sel_qual_arg5" >>confdefs.h
  29385. printf "%s\n" "#define SELECT_TYPE_ARG5 $sel_type_arg5" >>confdefs.h
  29386. #
  29387. case $prev_sh_opts in
  29388. *f*)
  29389. ;;
  29390. *)
  29391. set +f
  29392. ;;
  29393. esac
  29394. #
  29395. printf "%s\n" "#define HAVE_SELECT 1" >>confdefs.h
  29396. curl_cv_func_select="yes"
  29397. fi
  29398. fi
  29399. ac_fn_c_check_header_compile "$LINENO" "sys/types.h" "ac_cv_header_sys_types_h" "$ac_includes_default"
  29400. if test "x$ac_cv_header_sys_types_h" = xyes
  29401. then :
  29402. printf "%s\n" "#define HAVE_SYS_TYPES_H 1" >>confdefs.h
  29403. fi
  29404. ac_fn_c_check_header_compile "$LINENO" "sys/socket.h" "ac_cv_header_sys_socket_h" "$ac_includes_default"
  29405. if test "x$ac_cv_header_sys_socket_h" = xyes
  29406. then :
  29407. printf "%s\n" "#define HAVE_SYS_SOCKET_H 1" >>confdefs.h
  29408. fi
  29409. #
  29410. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for recv" >&5
  29411. printf %s "checking for recv... " >&6; }
  29412. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  29413. /* end confdefs.h. */
  29414. #undef inline
  29415. #ifdef HAVE_WINDOWS_H
  29416. #ifndef WIN32_LEAN_AND_MEAN
  29417. #define WIN32_LEAN_AND_MEAN
  29418. #endif
  29419. #include <windows.h>
  29420. #ifdef HAVE_WINSOCK2_H
  29421. #include <winsock2.h>
  29422. #endif
  29423. #else
  29424. #ifdef HAVE_PROTO_BSDSOCKET_H
  29425. #include <proto/bsdsocket.h>
  29426. struct Library *SocketBase = NULL;
  29427. #endif
  29428. #ifdef HAVE_SYS_TYPES_H
  29429. #include <sys/types.h>
  29430. #endif
  29431. #ifdef HAVE_SYS_SOCKET_H
  29432. #include <sys/socket.h>
  29433. #endif
  29434. #endif
  29435. int main (void)
  29436. {
  29437. recv(0, 0, 0, 0);
  29438. ;
  29439. return 0;
  29440. }
  29441. _ACEOF
  29442. if ac_fn_c_try_link "$LINENO"
  29443. then :
  29444. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  29445. printf "%s\n" "yes" >&6; }
  29446. curl_cv_recv="yes"
  29447. else $as_nop
  29448. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  29449. printf "%s\n" "no" >&6; }
  29450. curl_cv_recv="no"
  29451. fi
  29452. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  29453. conftest$ac_exeext conftest.$ac_ext
  29454. #
  29455. if test "$curl_cv_recv" = "yes"; then
  29456. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking types of args and return type for recv" >&5
  29457. printf %s "checking types of args and return type for recv... " >&6; }
  29458. if test ${curl_cv_func_recv_args+y}
  29459. then :
  29460. printf %s "(cached) " >&6
  29461. else $as_nop
  29462. curl_cv_func_recv_args="unknown"
  29463. for recv_retv in 'int' 'ssize_t'; do
  29464. for recv_arg1 in 'int' 'ssize_t' 'SOCKET'; do
  29465. for recv_arg2 in 'char *' 'void *'; do
  29466. for recv_arg3 in 'size_t' 'int' 'socklen_t' 'unsigned int'; do
  29467. for recv_arg4 in 'int' 'unsigned int'; do
  29468. if test "$curl_cv_func_recv_args" = "unknown"; then
  29469. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  29470. /* end confdefs.h. */
  29471. #undef inline
  29472. #ifdef HAVE_WINDOWS_H
  29473. #ifndef WIN32_LEAN_AND_MEAN
  29474. #define WIN32_LEAN_AND_MEAN
  29475. #endif
  29476. #include <windows.h>
  29477. #ifdef HAVE_WINSOCK2_H
  29478. #include <winsock2.h>
  29479. #endif
  29480. #define RECVCALLCONV PASCAL
  29481. #else
  29482. #ifdef HAVE_PROTO_BSDSOCKET_H
  29483. #include <proto/bsdsocket.h>
  29484. struct Library *SocketBase = NULL;
  29485. #endif
  29486. #ifdef HAVE_SYS_TYPES_H
  29487. #include <sys/types.h>
  29488. #endif
  29489. #ifdef HAVE_SYS_SOCKET_H
  29490. #include <sys/socket.h>
  29491. #endif
  29492. #define RECVCALLCONV
  29493. #endif
  29494. #ifndef HAVE_PROTO_BSDSOCKET_H
  29495. extern $recv_retv RECVCALLCONV
  29496. recv($recv_arg1, $recv_arg2, $recv_arg3, $recv_arg4);
  29497. #endif
  29498. int main (void)
  29499. {
  29500. $recv_arg1 s=0;
  29501. $recv_arg2 buf=0;
  29502. $recv_arg3 len=0;
  29503. $recv_arg4 flags=0;
  29504. $recv_retv res = recv(s, buf, len, flags);
  29505. ;
  29506. return 0;
  29507. }
  29508. _ACEOF
  29509. if ac_fn_c_try_compile "$LINENO"
  29510. then :
  29511. curl_cv_func_recv_args="$recv_arg1,$recv_arg2,$recv_arg3,$recv_arg4,$recv_retv"
  29512. fi
  29513. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  29514. fi
  29515. done
  29516. done
  29517. done
  29518. done
  29519. done
  29520. fi
  29521. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $curl_cv_func_recv_args" >&5
  29522. printf "%s\n" "$curl_cv_func_recv_args" >&6; } # AC-CACHE-CHECK
  29523. if test "$curl_cv_func_recv_args" = "unknown"; then
  29524. as_fn_error $? "Cannot find proper types to use for recv args" "$LINENO" 5
  29525. else
  29526. recv_prev_IFS=$IFS; IFS=','
  29527. set dummy `echo "$curl_cv_func_recv_args" | sed 's/\*/\*/g'`
  29528. IFS=$recv_prev_IFS
  29529. shift
  29530. #
  29531. printf "%s\n" "#define RECV_TYPE_ARG1 $1" >>confdefs.h
  29532. printf "%s\n" "#define RECV_TYPE_ARG2 $2" >>confdefs.h
  29533. printf "%s\n" "#define RECV_TYPE_ARG3 $3" >>confdefs.h
  29534. printf "%s\n" "#define RECV_TYPE_ARG4 $4" >>confdefs.h
  29535. printf "%s\n" "#define RECV_TYPE_RETV $5" >>confdefs.h
  29536. #
  29537. printf "%s\n" "#define HAVE_RECV 1" >>confdefs.h
  29538. curl_cv_func_recv="yes"
  29539. fi
  29540. else
  29541. as_fn_error $? "Unable to link function recv" "$LINENO" 5
  29542. fi
  29543. ac_fn_c_check_header_compile "$LINENO" "sys/types.h" "ac_cv_header_sys_types_h" "$ac_includes_default"
  29544. if test "x$ac_cv_header_sys_types_h" = xyes
  29545. then :
  29546. printf "%s\n" "#define HAVE_SYS_TYPES_H 1" >>confdefs.h
  29547. fi
  29548. ac_fn_c_check_header_compile "$LINENO" "sys/socket.h" "ac_cv_header_sys_socket_h" "$ac_includes_default"
  29549. if test "x$ac_cv_header_sys_socket_h" = xyes
  29550. then :
  29551. printf "%s\n" "#define HAVE_SYS_SOCKET_H 1" >>confdefs.h
  29552. fi
  29553. #
  29554. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for send" >&5
  29555. printf %s "checking for send... " >&6; }
  29556. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  29557. /* end confdefs.h. */
  29558. #undef inline
  29559. #ifdef HAVE_WINDOWS_H
  29560. #ifndef WIN32_LEAN_AND_MEAN
  29561. #define WIN32_LEAN_AND_MEAN
  29562. #endif
  29563. #include <windows.h>
  29564. #ifdef HAVE_WINSOCK2_H
  29565. #include <winsock2.h>
  29566. #endif
  29567. #else
  29568. #ifdef HAVE_PROTO_BSDSOCKET_H
  29569. #include <proto/bsdsocket.h>
  29570. struct Library *SocketBase = NULL;
  29571. #endif
  29572. #ifdef HAVE_SYS_TYPES_H
  29573. #include <sys/types.h>
  29574. #endif
  29575. #ifdef HAVE_SYS_SOCKET_H
  29576. #include <sys/socket.h>
  29577. #endif
  29578. #endif
  29579. int main (void)
  29580. {
  29581. send(0, 0, 0, 0);
  29582. ;
  29583. return 0;
  29584. }
  29585. _ACEOF
  29586. if ac_fn_c_try_link "$LINENO"
  29587. then :
  29588. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  29589. printf "%s\n" "yes" >&6; }
  29590. curl_cv_send="yes"
  29591. else $as_nop
  29592. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  29593. printf "%s\n" "no" >&6; }
  29594. curl_cv_send="no"
  29595. fi
  29596. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  29597. conftest$ac_exeext conftest.$ac_ext
  29598. #
  29599. if test "$curl_cv_send" = "yes"; then
  29600. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking types of args and return type for send" >&5
  29601. printf %s "checking types of args and return type for send... " >&6; }
  29602. if test ${curl_cv_func_send_args+y}
  29603. then :
  29604. printf %s "(cached) " >&6
  29605. else $as_nop
  29606. curl_cv_func_send_args="unknown"
  29607. for send_retv in 'int' 'ssize_t'; do
  29608. for send_arg1 in 'int' 'ssize_t' 'SOCKET'; do
  29609. for send_arg2 in 'char *' 'void *' 'const char *' 'const void *'; do
  29610. for send_arg3 in 'size_t' 'int' 'socklen_t' 'unsigned int'; do
  29611. for send_arg4 in 'int' 'unsigned int'; do
  29612. if test "$curl_cv_func_send_args" = "unknown"; then
  29613. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  29614. /* end confdefs.h. */
  29615. #undef inline
  29616. #ifdef HAVE_WINDOWS_H
  29617. #ifndef WIN32_LEAN_AND_MEAN
  29618. #define WIN32_LEAN_AND_MEAN
  29619. #endif
  29620. #include <windows.h>
  29621. #ifdef HAVE_WINSOCK2_H
  29622. #include <winsock2.h>
  29623. #endif
  29624. #define SENDCALLCONV PASCAL
  29625. #else
  29626. #ifdef HAVE_PROTO_BSDSOCKET_H
  29627. #include <proto/bsdsocket.h>
  29628. struct Library *SocketBase = NULL;
  29629. #endif
  29630. #ifdef HAVE_SYS_TYPES_H
  29631. #include <sys/types.h>
  29632. #endif
  29633. #ifdef HAVE_SYS_SOCKET_H
  29634. #include <sys/socket.h>
  29635. #endif
  29636. #define SENDCALLCONV
  29637. #endif
  29638. #ifndef HAVE_PROTO_BSDSOCKET_H
  29639. extern $send_retv SENDCALLCONV
  29640. send($send_arg1, $send_arg2, $send_arg3, $send_arg4);
  29641. #endif
  29642. int main (void)
  29643. {
  29644. $send_arg1 s=0;
  29645. $send_arg3 len=0;
  29646. $send_arg4 flags=0;
  29647. $send_retv res = send(s, 0, len, flags);
  29648. ;
  29649. return 0;
  29650. }
  29651. _ACEOF
  29652. if ac_fn_c_try_compile "$LINENO"
  29653. then :
  29654. curl_cv_func_send_args="$send_arg1,$send_arg2,$send_arg3,$send_arg4,$send_retv"
  29655. fi
  29656. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  29657. fi
  29658. done
  29659. done
  29660. done
  29661. done
  29662. done
  29663. fi
  29664. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $curl_cv_func_send_args" >&5
  29665. printf "%s\n" "$curl_cv_func_send_args" >&6; } # AC-CACHE-CHECK
  29666. if test "$curl_cv_func_send_args" = "unknown"; then
  29667. as_fn_error $? "Cannot find proper types to use for send args" "$LINENO" 5
  29668. else
  29669. send_prev_IFS=$IFS; IFS=','
  29670. set dummy `echo "$curl_cv_func_send_args" | sed 's/\*/\*/g'`
  29671. IFS=$send_prev_IFS
  29672. shift
  29673. #
  29674. send_qual_type_arg2=$2
  29675. #
  29676. printf "%s\n" "#define SEND_TYPE_ARG1 $1" >>confdefs.h
  29677. printf "%s\n" "#define SEND_TYPE_ARG3 $3" >>confdefs.h
  29678. printf "%s\n" "#define SEND_TYPE_ARG4 $4" >>confdefs.h
  29679. printf "%s\n" "#define SEND_TYPE_RETV $5" >>confdefs.h
  29680. #
  29681. prev_sh_opts=$-
  29682. #
  29683. case $prev_sh_opts in
  29684. *f*)
  29685. ;;
  29686. *)
  29687. set -f
  29688. ;;
  29689. esac
  29690. #
  29691. case "$send_qual_type_arg2" in
  29692. const*)
  29693. send_qual_arg2=const
  29694. send_type_arg2=`echo $send_qual_type_arg2 | sed 's/^const //'`
  29695. ;;
  29696. *)
  29697. send_qual_arg2=
  29698. send_type_arg2=$send_qual_type_arg2
  29699. ;;
  29700. esac
  29701. #
  29702. printf "%s\n" "#define SEND_QUAL_ARG2 $send_qual_arg2" >>confdefs.h
  29703. printf "%s\n" "#define SEND_TYPE_ARG2 $send_type_arg2" >>confdefs.h
  29704. #
  29705. case $prev_sh_opts in
  29706. *f*)
  29707. ;;
  29708. *)
  29709. set +f
  29710. ;;
  29711. esac
  29712. #
  29713. printf "%s\n" "#define HAVE_SEND 1" >>confdefs.h
  29714. curl_cv_func_send="yes"
  29715. fi
  29716. else
  29717. as_fn_error $? "Unable to link function send" "$LINENO" 5
  29718. fi
  29719. ac_fn_c_check_header_compile "$LINENO" "sys/types.h" "ac_cv_header_sys_types_h" "$ac_includes_default"
  29720. if test "x$ac_cv_header_sys_types_h" = xyes
  29721. then :
  29722. printf "%s\n" "#define HAVE_SYS_TYPES_H 1" >>confdefs.h
  29723. fi
  29724. ac_fn_c_check_header_compile "$LINENO" "sys/socket.h" "ac_cv_header_sys_socket_h" "$ac_includes_default"
  29725. if test "x$ac_cv_header_sys_socket_h" = xyes
  29726. then :
  29727. printf "%s\n" "#define HAVE_SYS_SOCKET_H 1" >>confdefs.h
  29728. fi
  29729. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for MSG_NOSIGNAL" >&5
  29730. printf %s "checking for MSG_NOSIGNAL... " >&6; }
  29731. if test ${curl_cv_msg_nosignal+y}
  29732. then :
  29733. printf %s "(cached) " >&6
  29734. else $as_nop
  29735. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  29736. /* end confdefs.h. */
  29737. #undef inline
  29738. #ifdef HAVE_WINDOWS_H
  29739. #ifndef WIN32_LEAN_AND_MEAN
  29740. #define WIN32_LEAN_AND_MEAN
  29741. #endif
  29742. #include <windows.h>
  29743. #ifdef HAVE_WINSOCK2_H
  29744. #include <winsock2.h>
  29745. #endif
  29746. #else
  29747. #ifdef HAVE_PROTO_BSDSOCKET_H
  29748. #include <proto/bsdsocket.h>
  29749. struct Library *SocketBase = NULL;
  29750. #endif
  29751. #ifdef HAVE_SYS_TYPES_H
  29752. #include <sys/types.h>
  29753. #endif
  29754. #ifdef HAVE_SYS_SOCKET_H
  29755. #include <sys/socket.h>
  29756. #endif
  29757. #endif
  29758. int main (void)
  29759. {
  29760. int flag=MSG_NOSIGNAL;
  29761. ;
  29762. return 0;
  29763. }
  29764. _ACEOF
  29765. if ac_fn_c_try_compile "$LINENO"
  29766. then :
  29767. curl_cv_msg_nosignal="yes"
  29768. else $as_nop
  29769. curl_cv_msg_nosignal="no"
  29770. fi
  29771. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  29772. fi
  29773. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $curl_cv_msg_nosignal" >&5
  29774. printf "%s\n" "$curl_cv_msg_nosignal" >&6; }
  29775. case "$curl_cv_msg_nosignal" in
  29776. yes)
  29777. printf "%s\n" "#define HAVE_MSG_NOSIGNAL 1" >>confdefs.h
  29778. ;;
  29779. esac
  29780. curl_includes_unistd="\
  29781. /* includes start */
  29782. #ifdef HAVE_SYS_TYPES_H
  29783. # include <sys/types.h>
  29784. #endif
  29785. #ifdef HAVE_UNISTD_H
  29786. # include <unistd.h>
  29787. #endif
  29788. /* includes end */"
  29789. ac_fn_c_check_header_compile "$LINENO" "sys/types.h" "ac_cv_header_sys_types_h" "$curl_includes_unistd
  29790. "
  29791. if test "x$ac_cv_header_sys_types_h" = xyes
  29792. then :
  29793. printf "%s\n" "#define HAVE_SYS_TYPES_H 1" >>confdefs.h
  29794. fi
  29795. ac_fn_c_check_header_compile "$LINENO" "unistd.h" "ac_cv_header_unistd_h" "$curl_includes_unistd
  29796. "
  29797. if test "x$ac_cv_header_unistd_h" = xyes
  29798. then :
  29799. printf "%s\n" "#define HAVE_UNISTD_H 1" >>confdefs.h
  29800. fi
  29801. #
  29802. tst_links_alarm="unknown"
  29803. tst_proto_alarm="unknown"
  29804. tst_compi_alarm="unknown"
  29805. tst_allow_alarm="unknown"
  29806. #
  29807. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if alarm can be linked" >&5
  29808. printf %s "checking if alarm can be linked... " >&6; }
  29809. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  29810. /* end confdefs.h. */
  29811. #define alarm innocuous_alarm
  29812. #ifdef __STDC__
  29813. # include <limits.h>
  29814. #else
  29815. # include <assert.h>
  29816. #endif
  29817. #undef alarm
  29818. #ifdef __cplusplus
  29819. extern "C"
  29820. #endif
  29821. char alarm ();
  29822. #if defined __stub_alarm || defined __stub___alarm
  29823. choke me
  29824. #endif
  29825. int main (void)
  29826. {
  29827. return alarm ();
  29828. ;
  29829. return 0;
  29830. }
  29831. _ACEOF
  29832. if ac_fn_c_try_link "$LINENO"
  29833. then :
  29834. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  29835. printf "%s\n" "yes" >&6; }
  29836. tst_links_alarm="yes"
  29837. else $as_nop
  29838. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  29839. printf "%s\n" "no" >&6; }
  29840. tst_links_alarm="no"
  29841. fi
  29842. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  29843. conftest$ac_exeext conftest.$ac_ext
  29844. #
  29845. if test "$tst_links_alarm" = "yes"; then
  29846. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if alarm is prototyped" >&5
  29847. printf %s "checking if alarm is prototyped... " >&6; }
  29848. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  29849. /* end confdefs.h. */
  29850. $curl_includes_unistd
  29851. _ACEOF
  29852. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  29853. $EGREP "alarm" >/dev/null 2>&1
  29854. then :
  29855. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  29856. printf "%s\n" "yes" >&6; }
  29857. tst_proto_alarm="yes"
  29858. else $as_nop
  29859. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  29860. printf "%s\n" "no" >&6; }
  29861. tst_proto_alarm="no"
  29862. fi
  29863. rm -rf conftest*
  29864. fi
  29865. #
  29866. if test "$tst_proto_alarm" = "yes"; then
  29867. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if alarm is compilable" >&5
  29868. printf %s "checking if alarm is compilable... " >&6; }
  29869. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  29870. /* end confdefs.h. */
  29871. $curl_includes_unistd
  29872. int main (void)
  29873. {
  29874. if(0 != alarm(0))
  29875. return 1;
  29876. ;
  29877. return 0;
  29878. }
  29879. _ACEOF
  29880. if ac_fn_c_try_compile "$LINENO"
  29881. then :
  29882. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  29883. printf "%s\n" "yes" >&6; }
  29884. tst_compi_alarm="yes"
  29885. else $as_nop
  29886. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  29887. printf "%s\n" "no" >&6; }
  29888. tst_compi_alarm="no"
  29889. fi
  29890. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  29891. fi
  29892. #
  29893. if test "$tst_compi_alarm" = "yes"; then
  29894. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if alarm usage allowed" >&5
  29895. printf %s "checking if alarm usage allowed... " >&6; }
  29896. if test "x$curl_disallow_alarm" != "xyes"; then
  29897. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  29898. printf "%s\n" "yes" >&6; }
  29899. tst_allow_alarm="yes"
  29900. else
  29901. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  29902. printf "%s\n" "no" >&6; }
  29903. tst_allow_alarm="no"
  29904. fi
  29905. fi
  29906. #
  29907. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if alarm might be used" >&5
  29908. printf %s "checking if alarm might be used... " >&6; }
  29909. if test "$tst_links_alarm" = "yes" &&
  29910. test "$tst_proto_alarm" = "yes" &&
  29911. test "$tst_compi_alarm" = "yes" &&
  29912. test "$tst_allow_alarm" = "yes"; then
  29913. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  29914. printf "%s\n" "yes" >&6; }
  29915. printf "%s\n" "#define HAVE_ALARM 1" >>confdefs.h
  29916. curl_cv_func_alarm="yes"
  29917. else
  29918. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  29919. printf "%s\n" "no" >&6; }
  29920. curl_cv_func_alarm="no"
  29921. fi
  29922. curl_includes_string="\
  29923. /* includes start */
  29924. #ifdef HAVE_SYS_TYPES_H
  29925. # include <sys/types.h>
  29926. #endif
  29927. #ifdef HAVE_STRING_H
  29928. # include <string.h>
  29929. #endif
  29930. #ifdef HAVE_STRINGS_H
  29931. # include <strings.h>
  29932. #endif
  29933. /* includes end */"
  29934. ac_fn_c_check_header_compile "$LINENO" "sys/types.h" "ac_cv_header_sys_types_h" "$curl_includes_string
  29935. "
  29936. if test "x$ac_cv_header_sys_types_h" = xyes
  29937. then :
  29938. printf "%s\n" "#define HAVE_SYS_TYPES_H 1" >>confdefs.h
  29939. fi
  29940. ac_fn_c_check_header_compile "$LINENO" "string.h" "ac_cv_header_string_h" "$curl_includes_string
  29941. "
  29942. if test "x$ac_cv_header_string_h" = xyes
  29943. then :
  29944. printf "%s\n" "#define HAVE_STRING_H 1" >>confdefs.h
  29945. fi
  29946. ac_fn_c_check_header_compile "$LINENO" "strings.h" "ac_cv_header_strings_h" "$curl_includes_string
  29947. "
  29948. if test "x$ac_cv_header_strings_h" = xyes
  29949. then :
  29950. printf "%s\n" "#define HAVE_STRINGS_H 1" >>confdefs.h
  29951. fi
  29952. curl_includes_libgen="\
  29953. /* includes start */
  29954. #ifdef HAVE_SYS_TYPES_H
  29955. # include <sys/types.h>
  29956. #endif
  29957. #ifdef HAVE_LIBGEN_H
  29958. # include <libgen.h>
  29959. #endif
  29960. /* includes end */"
  29961. ac_fn_c_check_header_compile "$LINENO" "sys/types.h" "ac_cv_header_sys_types_h" "$curl_includes_libgen
  29962. "
  29963. if test "x$ac_cv_header_sys_types_h" = xyes
  29964. then :
  29965. printf "%s\n" "#define HAVE_SYS_TYPES_H 1" >>confdefs.h
  29966. fi
  29967. ac_fn_c_check_header_compile "$LINENO" "libgen.h" "ac_cv_header_libgen_h" "$curl_includes_libgen
  29968. "
  29969. if test "x$ac_cv_header_libgen_h" = xyes
  29970. then :
  29971. printf "%s\n" "#define HAVE_LIBGEN_H 1" >>confdefs.h
  29972. fi
  29973. #
  29974. tst_links_basename="unknown"
  29975. tst_proto_basename="unknown"
  29976. tst_compi_basename="unknown"
  29977. tst_allow_basename="unknown"
  29978. #
  29979. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if basename can be linked" >&5
  29980. printf %s "checking if basename can be linked... " >&6; }
  29981. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  29982. /* end confdefs.h. */
  29983. #define basename innocuous_basename
  29984. #ifdef __STDC__
  29985. # include <limits.h>
  29986. #else
  29987. # include <assert.h>
  29988. #endif
  29989. #undef basename
  29990. #ifdef __cplusplus
  29991. extern "C"
  29992. #endif
  29993. char basename ();
  29994. #if defined __stub_basename || defined __stub___basename
  29995. choke me
  29996. #endif
  29997. int main (void)
  29998. {
  29999. return basename ();
  30000. ;
  30001. return 0;
  30002. }
  30003. _ACEOF
  30004. if ac_fn_c_try_link "$LINENO"
  30005. then :
  30006. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  30007. printf "%s\n" "yes" >&6; }
  30008. tst_links_basename="yes"
  30009. else $as_nop
  30010. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  30011. printf "%s\n" "no" >&6; }
  30012. tst_links_basename="no"
  30013. fi
  30014. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  30015. conftest$ac_exeext conftest.$ac_ext
  30016. #
  30017. if test "$tst_links_basename" = "yes"; then
  30018. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if basename is prototyped" >&5
  30019. printf %s "checking if basename is prototyped... " >&6; }
  30020. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  30021. /* end confdefs.h. */
  30022. $curl_includes_string
  30023. $curl_includes_libgen
  30024. $curl_includes_unistd
  30025. _ACEOF
  30026. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  30027. $EGREP "basename" >/dev/null 2>&1
  30028. then :
  30029. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  30030. printf "%s\n" "yes" >&6; }
  30031. tst_proto_basename="yes"
  30032. else $as_nop
  30033. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  30034. printf "%s\n" "no" >&6; }
  30035. tst_proto_basename="no"
  30036. fi
  30037. rm -rf conftest*
  30038. fi
  30039. #
  30040. if test "$tst_proto_basename" = "yes"; then
  30041. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if basename is compilable" >&5
  30042. printf %s "checking if basename is compilable... " >&6; }
  30043. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  30044. /* end confdefs.h. */
  30045. $curl_includes_string
  30046. $curl_includes_libgen
  30047. $curl_includes_unistd
  30048. int main (void)
  30049. {
  30050. if(0 != basename(0))
  30051. return 1;
  30052. ;
  30053. return 0;
  30054. }
  30055. _ACEOF
  30056. if ac_fn_c_try_compile "$LINENO"
  30057. then :
  30058. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  30059. printf "%s\n" "yes" >&6; }
  30060. tst_compi_basename="yes"
  30061. else $as_nop
  30062. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  30063. printf "%s\n" "no" >&6; }
  30064. tst_compi_basename="no"
  30065. fi
  30066. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  30067. fi
  30068. #
  30069. if test "$tst_compi_basename" = "yes"; then
  30070. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if basename usage allowed" >&5
  30071. printf %s "checking if basename usage allowed... " >&6; }
  30072. if test "x$curl_disallow_basename" != "xyes"; then
  30073. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  30074. printf "%s\n" "yes" >&6; }
  30075. tst_allow_basename="yes"
  30076. else
  30077. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  30078. printf "%s\n" "no" >&6; }
  30079. tst_allow_basename="no"
  30080. fi
  30081. fi
  30082. #
  30083. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if basename might be used" >&5
  30084. printf %s "checking if basename might be used... " >&6; }
  30085. if test "$tst_links_basename" = "yes" &&
  30086. test "$tst_proto_basename" = "yes" &&
  30087. test "$tst_compi_basename" = "yes" &&
  30088. test "$tst_allow_basename" = "yes"; then
  30089. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  30090. printf "%s\n" "yes" >&6; }
  30091. printf "%s\n" "#define HAVE_BASENAME 1" >>confdefs.h
  30092. curl_cv_func_basename="yes"
  30093. else
  30094. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  30095. printf "%s\n" "no" >&6; }
  30096. curl_cv_func_basename="no"
  30097. fi
  30098. curl_includes_socket="\
  30099. /* includes start */
  30100. #ifdef HAVE_SYS_TYPES_H
  30101. # include <sys/types.h>
  30102. #endif
  30103. #ifdef HAVE_SOCKET_H
  30104. # include <socket.h>
  30105. #endif
  30106. /* includes end */"
  30107. ac_fn_c_check_header_compile "$LINENO" "sys/types.h" "ac_cv_header_sys_types_h" "$curl_includes_socket
  30108. "
  30109. if test "x$ac_cv_header_sys_types_h" = xyes
  30110. then :
  30111. printf "%s\n" "#define HAVE_SYS_TYPES_H 1" >>confdefs.h
  30112. fi
  30113. ac_fn_c_check_header_compile "$LINENO" "socket.h" "ac_cv_header_socket_h" "$curl_includes_socket
  30114. "
  30115. if test "x$ac_cv_header_socket_h" = xyes
  30116. then :
  30117. printf "%s\n" "#define HAVE_SOCKET_H 1" >>confdefs.h
  30118. fi
  30119. #
  30120. tst_links_closesocket="unknown"
  30121. tst_proto_closesocket="unknown"
  30122. tst_compi_closesocket="unknown"
  30123. tst_allow_closesocket="unknown"
  30124. #
  30125. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if closesocket can be linked" >&5
  30126. printf %s "checking if closesocket can be linked... " >&6; }
  30127. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  30128. /* end confdefs.h. */
  30129. $curl_includes_winsock2
  30130. $curl_includes_bsdsocket
  30131. $curl_includes_socket
  30132. int main (void)
  30133. {
  30134. if(0 != closesocket(0))
  30135. return 1;
  30136. ;
  30137. return 0;
  30138. }
  30139. _ACEOF
  30140. if ac_fn_c_try_link "$LINENO"
  30141. then :
  30142. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  30143. printf "%s\n" "yes" >&6; }
  30144. tst_links_closesocket="yes"
  30145. else $as_nop
  30146. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  30147. printf "%s\n" "no" >&6; }
  30148. tst_links_closesocket="no"
  30149. fi
  30150. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  30151. conftest$ac_exeext conftest.$ac_ext
  30152. #
  30153. if test "$tst_links_closesocket" = "yes"; then
  30154. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if closesocket is prototyped" >&5
  30155. printf %s "checking if closesocket is prototyped... " >&6; }
  30156. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  30157. /* end confdefs.h. */
  30158. $curl_includes_winsock2
  30159. $curl_includes_bsdsocket
  30160. $curl_includes_socket
  30161. _ACEOF
  30162. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  30163. $EGREP "closesocket" >/dev/null 2>&1
  30164. then :
  30165. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  30166. printf "%s\n" "yes" >&6; }
  30167. tst_proto_closesocket="yes"
  30168. else $as_nop
  30169. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  30170. printf "%s\n" "no" >&6; }
  30171. tst_proto_closesocket="no"
  30172. fi
  30173. rm -rf conftest*
  30174. fi
  30175. #
  30176. if test "$tst_proto_closesocket" = "yes"; then
  30177. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if closesocket is compilable" >&5
  30178. printf %s "checking if closesocket is compilable... " >&6; }
  30179. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  30180. /* end confdefs.h. */
  30181. $curl_includes_winsock2
  30182. $curl_includes_bsdsocket
  30183. $curl_includes_socket
  30184. int main (void)
  30185. {
  30186. if(0 != closesocket(0))
  30187. return 1;
  30188. ;
  30189. return 0;
  30190. }
  30191. _ACEOF
  30192. if ac_fn_c_try_compile "$LINENO"
  30193. then :
  30194. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  30195. printf "%s\n" "yes" >&6; }
  30196. tst_compi_closesocket="yes"
  30197. else $as_nop
  30198. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  30199. printf "%s\n" "no" >&6; }
  30200. tst_compi_closesocket="no"
  30201. fi
  30202. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  30203. fi
  30204. #
  30205. if test "$tst_compi_closesocket" = "yes"; then
  30206. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if closesocket usage allowed" >&5
  30207. printf %s "checking if closesocket usage allowed... " >&6; }
  30208. if test "x$curl_disallow_closesocket" != "xyes"; then
  30209. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  30210. printf "%s\n" "yes" >&6; }
  30211. tst_allow_closesocket="yes"
  30212. else
  30213. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  30214. printf "%s\n" "no" >&6; }
  30215. tst_allow_closesocket="no"
  30216. fi
  30217. fi
  30218. #
  30219. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if closesocket might be used" >&5
  30220. printf %s "checking if closesocket might be used... " >&6; }
  30221. if test "$tst_links_closesocket" = "yes" &&
  30222. test "$tst_proto_closesocket" = "yes" &&
  30223. test "$tst_compi_closesocket" = "yes" &&
  30224. test "$tst_allow_closesocket" = "yes"; then
  30225. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  30226. printf "%s\n" "yes" >&6; }
  30227. printf "%s\n" "#define HAVE_CLOSESOCKET 1" >>confdefs.h
  30228. curl_cv_func_closesocket="yes"
  30229. else
  30230. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  30231. printf "%s\n" "no" >&6; }
  30232. curl_cv_func_closesocket="no"
  30233. fi
  30234. curl_includes_sys_socket="\
  30235. /* includes start */
  30236. #ifdef HAVE_SYS_TYPES_H
  30237. # include <sys/types.h>
  30238. #endif
  30239. #ifdef HAVE_SYS_SOCKET_H
  30240. # include <sys/socket.h>
  30241. #endif
  30242. /* includes end */"
  30243. ac_fn_c_check_header_compile "$LINENO" "sys/types.h" "ac_cv_header_sys_types_h" "$curl_includes_sys_socket
  30244. "
  30245. if test "x$ac_cv_header_sys_types_h" = xyes
  30246. then :
  30247. printf "%s\n" "#define HAVE_SYS_TYPES_H 1" >>confdefs.h
  30248. fi
  30249. ac_fn_c_check_header_compile "$LINENO" "sys/socket.h" "ac_cv_header_sys_socket_h" "$curl_includes_sys_socket
  30250. "
  30251. if test "x$ac_cv_header_sys_socket_h" = xyes
  30252. then :
  30253. printf "%s\n" "#define HAVE_SYS_SOCKET_H 1" >>confdefs.h
  30254. fi
  30255. #
  30256. tst_links_closesocket_camel="unknown"
  30257. tst_proto_closesocket_camel="unknown"
  30258. tst_compi_closesocket_camel="unknown"
  30259. tst_allow_closesocket_camel="unknown"
  30260. #
  30261. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if CloseSocket can be linked" >&5
  30262. printf %s "checking if CloseSocket can be linked... " >&6; }
  30263. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  30264. /* end confdefs.h. */
  30265. $curl_includes_sys_socket
  30266. int main (void)
  30267. {
  30268. if(0 != CloseSocket(0))
  30269. return 1;
  30270. ;
  30271. return 0;
  30272. }
  30273. _ACEOF
  30274. if ac_fn_c_try_link "$LINENO"
  30275. then :
  30276. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  30277. printf "%s\n" "yes" >&6; }
  30278. tst_links_closesocket_camel="yes"
  30279. else $as_nop
  30280. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  30281. printf "%s\n" "no" >&6; }
  30282. tst_links_closesocket_camel="no"
  30283. fi
  30284. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  30285. conftest$ac_exeext conftest.$ac_ext
  30286. #
  30287. if test "$tst_links_closesocket_camel" = "yes"; then
  30288. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if CloseSocket is prototyped" >&5
  30289. printf %s "checking if CloseSocket is prototyped... " >&6; }
  30290. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  30291. /* end confdefs.h. */
  30292. $curl_includes_sys_socket
  30293. _ACEOF
  30294. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  30295. $EGREP "CloseSocket" >/dev/null 2>&1
  30296. then :
  30297. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  30298. printf "%s\n" "yes" >&6; }
  30299. tst_proto_closesocket_camel="yes"
  30300. else $as_nop
  30301. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  30302. printf "%s\n" "no" >&6; }
  30303. tst_proto_closesocket_camel="no"
  30304. fi
  30305. rm -rf conftest*
  30306. fi
  30307. #
  30308. if test "$tst_proto_closesocket_camel" = "yes"; then
  30309. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if CloseSocket is compilable" >&5
  30310. printf %s "checking if CloseSocket is compilable... " >&6; }
  30311. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  30312. /* end confdefs.h. */
  30313. $curl_includes_sys_socket
  30314. int main (void)
  30315. {
  30316. if(0 != CloseSocket(0))
  30317. return 1;
  30318. ;
  30319. return 0;
  30320. }
  30321. _ACEOF
  30322. if ac_fn_c_try_compile "$LINENO"
  30323. then :
  30324. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  30325. printf "%s\n" "yes" >&6; }
  30326. tst_compi_closesocket_camel="yes"
  30327. else $as_nop
  30328. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  30329. printf "%s\n" "no" >&6; }
  30330. tst_compi_closesocket_camel="no"
  30331. fi
  30332. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  30333. fi
  30334. #
  30335. if test "$tst_compi_closesocket_camel" = "yes"; then
  30336. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if CloseSocket usage allowed" >&5
  30337. printf %s "checking if CloseSocket usage allowed... " >&6; }
  30338. if test "x$curl_disallow_closesocket_camel" != "xyes"; then
  30339. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  30340. printf "%s\n" "yes" >&6; }
  30341. tst_allow_closesocket_camel="yes"
  30342. else
  30343. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  30344. printf "%s\n" "no" >&6; }
  30345. tst_allow_closesocket_camel="no"
  30346. fi
  30347. fi
  30348. #
  30349. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if CloseSocket might be used" >&5
  30350. printf %s "checking if CloseSocket might be used... " >&6; }
  30351. if test "$tst_links_closesocket_camel" = "yes" &&
  30352. test "$tst_proto_closesocket_camel" = "yes" &&
  30353. test "$tst_compi_closesocket_camel" = "yes" &&
  30354. test "$tst_allow_closesocket_camel" = "yes"; then
  30355. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  30356. printf "%s\n" "yes" >&6; }
  30357. printf "%s\n" "#define HAVE_CLOSESOCKET_CAMEL 1" >>confdefs.h
  30358. curl_cv_func_closesocket_camel="yes"
  30359. else
  30360. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  30361. printf "%s\n" "no" >&6; }
  30362. curl_cv_func_closesocket_camel="no"
  30363. fi
  30364. #
  30365. tst_links_connect="unknown"
  30366. tst_proto_connect="unknown"
  30367. tst_compi_connect="unknown"
  30368. tst_allow_connect="unknown"
  30369. #
  30370. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if connect can be linked" >&5
  30371. printf %s "checking if connect can be linked... " >&6; }
  30372. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  30373. /* end confdefs.h. */
  30374. $curl_includes_winsock2
  30375. $curl_includes_bsdsocket
  30376. $curl_includes_sys_socket
  30377. $curl_includes_socket
  30378. int main (void)
  30379. {
  30380. if(0 != connect(0, 0, 0))
  30381. return 1;
  30382. ;
  30383. return 0;
  30384. }
  30385. _ACEOF
  30386. if ac_fn_c_try_link "$LINENO"
  30387. then :
  30388. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  30389. printf "%s\n" "yes" >&6; }
  30390. tst_links_connect="yes"
  30391. else $as_nop
  30392. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  30393. printf "%s\n" "no" >&6; }
  30394. tst_links_connect="no"
  30395. fi
  30396. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  30397. conftest$ac_exeext conftest.$ac_ext
  30398. #
  30399. if test "$tst_links_connect" = "yes"; then
  30400. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if connect is prototyped" >&5
  30401. printf %s "checking if connect is prototyped... " >&6; }
  30402. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  30403. /* end confdefs.h. */
  30404. $curl_includes_winsock2
  30405. $curl_includes_bsdsocket
  30406. $curl_includes_sys_socket
  30407. $curl_includes_socket
  30408. _ACEOF
  30409. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  30410. $EGREP "connect" >/dev/null 2>&1
  30411. then :
  30412. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  30413. printf "%s\n" "yes" >&6; }
  30414. tst_proto_connect="yes"
  30415. else $as_nop
  30416. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  30417. printf "%s\n" "no" >&6; }
  30418. tst_proto_connect="no"
  30419. fi
  30420. rm -rf conftest*
  30421. fi
  30422. #
  30423. if test "$tst_proto_connect" = "yes"; then
  30424. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if connect is compilable" >&5
  30425. printf %s "checking if connect is compilable... " >&6; }
  30426. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  30427. /* end confdefs.h. */
  30428. $curl_includes_winsock2
  30429. $curl_includes_bsdsocket
  30430. $curl_includes_sys_socket
  30431. $curl_includes_socket
  30432. int main (void)
  30433. {
  30434. if(0 != connect(0, 0, 0))
  30435. return 1;
  30436. ;
  30437. return 0;
  30438. }
  30439. _ACEOF
  30440. if ac_fn_c_try_compile "$LINENO"
  30441. then :
  30442. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  30443. printf "%s\n" "yes" >&6; }
  30444. tst_compi_connect="yes"
  30445. else $as_nop
  30446. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  30447. printf "%s\n" "no" >&6; }
  30448. tst_compi_connect="no"
  30449. fi
  30450. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  30451. fi
  30452. #
  30453. if test "$tst_compi_connect" = "yes"; then
  30454. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if connect usage allowed" >&5
  30455. printf %s "checking if connect usage allowed... " >&6; }
  30456. if test "x$curl_disallow_connect" != "xyes"; then
  30457. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  30458. printf "%s\n" "yes" >&6; }
  30459. tst_allow_connect="yes"
  30460. else
  30461. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  30462. printf "%s\n" "no" >&6; }
  30463. tst_allow_connect="no"
  30464. fi
  30465. fi
  30466. #
  30467. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if connect might be used" >&5
  30468. printf %s "checking if connect might be used... " >&6; }
  30469. if test "$tst_links_connect" = "yes" &&
  30470. test "$tst_proto_connect" = "yes" &&
  30471. test "$tst_compi_connect" = "yes" &&
  30472. test "$tst_allow_connect" = "yes"; then
  30473. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  30474. printf "%s\n" "yes" >&6; }
  30475. printf "%s\n" "#define HAVE_CONNECT 1" >>confdefs.h
  30476. curl_cv_func_connect="yes"
  30477. else
  30478. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  30479. printf "%s\n" "no" >&6; }
  30480. curl_cv_func_connect="no"
  30481. fi
  30482. curl_includes_fcntl="\
  30483. /* includes start */
  30484. #ifdef HAVE_SYS_TYPES_H
  30485. # include <sys/types.h>
  30486. #endif
  30487. #ifdef HAVE_UNISTD_H
  30488. # include <unistd.h>
  30489. #endif
  30490. #ifdef HAVE_FCNTL_H
  30491. # include <fcntl.h>
  30492. #endif
  30493. /* includes end */"
  30494. ac_fn_c_check_header_compile "$LINENO" "sys/types.h" "ac_cv_header_sys_types_h" "$curl_includes_fcntl
  30495. "
  30496. if test "x$ac_cv_header_sys_types_h" = xyes
  30497. then :
  30498. printf "%s\n" "#define HAVE_SYS_TYPES_H 1" >>confdefs.h
  30499. fi
  30500. ac_fn_c_check_header_compile "$LINENO" "unistd.h" "ac_cv_header_unistd_h" "$curl_includes_fcntl
  30501. "
  30502. if test "x$ac_cv_header_unistd_h" = xyes
  30503. then :
  30504. printf "%s\n" "#define HAVE_UNISTD_H 1" >>confdefs.h
  30505. fi
  30506. ac_fn_c_check_header_compile "$LINENO" "fcntl.h" "ac_cv_header_fcntl_h" "$curl_includes_fcntl
  30507. "
  30508. if test "x$ac_cv_header_fcntl_h" = xyes
  30509. then :
  30510. printf "%s\n" "#define HAVE_FCNTL_H 1" >>confdefs.h
  30511. fi
  30512. #
  30513. tst_links_fcntl="unknown"
  30514. tst_proto_fcntl="unknown"
  30515. tst_compi_fcntl="unknown"
  30516. tst_allow_fcntl="unknown"
  30517. #
  30518. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if fcntl can be linked" >&5
  30519. printf %s "checking if fcntl can be linked... " >&6; }
  30520. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  30521. /* end confdefs.h. */
  30522. #define fcntl innocuous_fcntl
  30523. #ifdef __STDC__
  30524. # include <limits.h>
  30525. #else
  30526. # include <assert.h>
  30527. #endif
  30528. #undef fcntl
  30529. #ifdef __cplusplus
  30530. extern "C"
  30531. #endif
  30532. char fcntl ();
  30533. #if defined __stub_fcntl || defined __stub___fcntl
  30534. choke me
  30535. #endif
  30536. int main (void)
  30537. {
  30538. return fcntl ();
  30539. ;
  30540. return 0;
  30541. }
  30542. _ACEOF
  30543. if ac_fn_c_try_link "$LINENO"
  30544. then :
  30545. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  30546. printf "%s\n" "yes" >&6; }
  30547. tst_links_fcntl="yes"
  30548. else $as_nop
  30549. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  30550. printf "%s\n" "no" >&6; }
  30551. tst_links_fcntl="no"
  30552. fi
  30553. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  30554. conftest$ac_exeext conftest.$ac_ext
  30555. #
  30556. if test "$tst_links_fcntl" = "yes"; then
  30557. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if fcntl is prototyped" >&5
  30558. printf %s "checking if fcntl is prototyped... " >&6; }
  30559. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  30560. /* end confdefs.h. */
  30561. $curl_includes_fcntl
  30562. _ACEOF
  30563. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  30564. $EGREP "fcntl" >/dev/null 2>&1
  30565. then :
  30566. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  30567. printf "%s\n" "yes" >&6; }
  30568. tst_proto_fcntl="yes"
  30569. else $as_nop
  30570. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  30571. printf "%s\n" "no" >&6; }
  30572. tst_proto_fcntl="no"
  30573. fi
  30574. rm -rf conftest*
  30575. fi
  30576. #
  30577. if test "$tst_proto_fcntl" = "yes"; then
  30578. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if fcntl is compilable" >&5
  30579. printf %s "checking if fcntl is compilable... " >&6; }
  30580. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  30581. /* end confdefs.h. */
  30582. $curl_includes_fcntl
  30583. int main (void)
  30584. {
  30585. if(0 != fcntl(0, 0, 0))
  30586. return 1;
  30587. ;
  30588. return 0;
  30589. }
  30590. _ACEOF
  30591. if ac_fn_c_try_compile "$LINENO"
  30592. then :
  30593. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  30594. printf "%s\n" "yes" >&6; }
  30595. tst_compi_fcntl="yes"
  30596. else $as_nop
  30597. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  30598. printf "%s\n" "no" >&6; }
  30599. tst_compi_fcntl="no"
  30600. fi
  30601. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  30602. fi
  30603. #
  30604. if test "$tst_compi_fcntl" = "yes"; then
  30605. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if fcntl usage allowed" >&5
  30606. printf %s "checking if fcntl usage allowed... " >&6; }
  30607. if test "x$curl_disallow_fcntl" != "xyes"; then
  30608. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  30609. printf "%s\n" "yes" >&6; }
  30610. tst_allow_fcntl="yes"
  30611. else
  30612. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  30613. printf "%s\n" "no" >&6; }
  30614. tst_allow_fcntl="no"
  30615. fi
  30616. fi
  30617. #
  30618. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if fcntl might be used" >&5
  30619. printf %s "checking if fcntl might be used... " >&6; }
  30620. if test "$tst_links_fcntl" = "yes" &&
  30621. test "$tst_proto_fcntl" = "yes" &&
  30622. test "$tst_compi_fcntl" = "yes" &&
  30623. test "$tst_allow_fcntl" = "yes"; then
  30624. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  30625. printf "%s\n" "yes" >&6; }
  30626. printf "%s\n" "#define HAVE_FCNTL 1" >>confdefs.h
  30627. curl_cv_func_fcntl="yes"
  30628. #
  30629. tst_compi_fcntl_o_nonblock="unknown"
  30630. tst_allow_fcntl_o_nonblock="unknown"
  30631. #
  30632. case $host_os in
  30633. sunos4* | aix3* | beos*)
  30634. curl_disallow_fcntl_o_nonblock="yes"
  30635. ;;
  30636. esac
  30637. #
  30638. if test "$curl_cv_func_fcntl" = "yes"; then
  30639. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if fcntl O_NONBLOCK is compilable" >&5
  30640. printf %s "checking if fcntl O_NONBLOCK is compilable... " >&6; }
  30641. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  30642. /* end confdefs.h. */
  30643. $curl_includes_fcntl
  30644. int main (void)
  30645. {
  30646. int flags = 0;
  30647. if(0 != fcntl(0, F_SETFL, flags | O_NONBLOCK))
  30648. return 1;
  30649. ;
  30650. return 0;
  30651. }
  30652. _ACEOF
  30653. if ac_fn_c_try_compile "$LINENO"
  30654. then :
  30655. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  30656. printf "%s\n" "yes" >&6; }
  30657. tst_compi_fcntl_o_nonblock="yes"
  30658. else $as_nop
  30659. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  30660. printf "%s\n" "no" >&6; }
  30661. tst_compi_fcntl_o_nonblock="no"
  30662. fi
  30663. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  30664. fi
  30665. #
  30666. if test "$tst_compi_fcntl_o_nonblock" = "yes"; then
  30667. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if fcntl O_NONBLOCK usage allowed" >&5
  30668. printf %s "checking if fcntl O_NONBLOCK usage allowed... " >&6; }
  30669. if test "x$curl_disallow_fcntl_o_nonblock" != "xyes"; then
  30670. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  30671. printf "%s\n" "yes" >&6; }
  30672. tst_allow_fcntl_o_nonblock="yes"
  30673. else
  30674. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  30675. printf "%s\n" "no" >&6; }
  30676. tst_allow_fcntl_o_nonblock="no"
  30677. fi
  30678. fi
  30679. #
  30680. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if fcntl O_NONBLOCK might be used" >&5
  30681. printf %s "checking if fcntl O_NONBLOCK might be used... " >&6; }
  30682. if test "$tst_compi_fcntl_o_nonblock" = "yes" &&
  30683. test "$tst_allow_fcntl_o_nonblock" = "yes"; then
  30684. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  30685. printf "%s\n" "yes" >&6; }
  30686. printf "%s\n" "#define HAVE_FCNTL_O_NONBLOCK 1" >>confdefs.h
  30687. curl_cv_func_fcntl_o_nonblock="yes"
  30688. else
  30689. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  30690. printf "%s\n" "no" >&6; }
  30691. curl_cv_func_fcntl_o_nonblock="no"
  30692. fi
  30693. else
  30694. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  30695. printf "%s\n" "no" >&6; }
  30696. curl_cv_func_fcntl="no"
  30697. fi
  30698. curl_includes_ws2tcpip="\
  30699. /* includes start */
  30700. #ifdef HAVE_WINDOWS_H
  30701. # ifndef WIN32_LEAN_AND_MEAN
  30702. # define WIN32_LEAN_AND_MEAN
  30703. # endif
  30704. # include <windows.h>
  30705. # ifdef HAVE_WINSOCK2_H
  30706. # include <winsock2.h>
  30707. # ifdef HAVE_WS2TCPIP_H
  30708. # include <ws2tcpip.h>
  30709. # endif
  30710. # endif
  30711. #endif
  30712. /* includes end */"
  30713. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for windows.h" >&5
  30714. printf %s "checking for windows.h... " >&6; }
  30715. if test ${curl_cv_header_windows_h+y}
  30716. then :
  30717. printf %s "(cached) " >&6
  30718. else $as_nop
  30719. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  30720. /* end confdefs.h. */
  30721. #undef inline
  30722. #ifndef WIN32_LEAN_AND_MEAN
  30723. #define WIN32_LEAN_AND_MEAN
  30724. #endif
  30725. #include <windows.h>
  30726. int main (void)
  30727. {
  30728. #if defined(__CYGWIN__) || defined(__CEGCC__)
  30729. HAVE_WINDOWS_H shall not be defined.
  30730. #else
  30731. int dummy=2*WINVER;
  30732. #endif
  30733. ;
  30734. return 0;
  30735. }
  30736. _ACEOF
  30737. if ac_fn_c_try_compile "$LINENO"
  30738. then :
  30739. curl_cv_header_windows_h="yes"
  30740. else $as_nop
  30741. curl_cv_header_windows_h="no"
  30742. fi
  30743. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  30744. fi
  30745. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $curl_cv_header_windows_h" >&5
  30746. printf "%s\n" "$curl_cv_header_windows_h" >&6; }
  30747. case "$curl_cv_header_windows_h" in
  30748. yes)
  30749. printf "%s\n" "#define HAVE_WINDOWS_H 1" >>confdefs.h
  30750. ;;
  30751. esac
  30752. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for winsock2.h" >&5
  30753. printf %s "checking for winsock2.h... " >&6; }
  30754. if test ${curl_cv_header_winsock2_h+y}
  30755. then :
  30756. printf %s "(cached) " >&6
  30757. else $as_nop
  30758. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  30759. /* end confdefs.h. */
  30760. #undef inline
  30761. #ifndef WIN32_LEAN_AND_MEAN
  30762. #define WIN32_LEAN_AND_MEAN
  30763. #endif
  30764. #include <windows.h>
  30765. #include <winsock2.h>
  30766. int main (void)
  30767. {
  30768. #if defined(__CYGWIN__) || defined(__CEGCC__) || defined(__MINGW32CE__)
  30769. HAVE_WINSOCK2_H shall not be defined.
  30770. #else
  30771. int dummy=2*IPPROTO_ESP;
  30772. #endif
  30773. ;
  30774. return 0;
  30775. }
  30776. _ACEOF
  30777. if ac_fn_c_try_compile "$LINENO"
  30778. then :
  30779. curl_cv_header_winsock2_h="yes"
  30780. else $as_nop
  30781. curl_cv_header_winsock2_h="no"
  30782. fi
  30783. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  30784. fi
  30785. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $curl_cv_header_winsock2_h" >&5
  30786. printf "%s\n" "$curl_cv_header_winsock2_h" >&6; }
  30787. case "$curl_cv_header_winsock2_h" in
  30788. yes)
  30789. printf "%s\n" "#define HAVE_WINSOCK2_H 1" >>confdefs.h
  30790. ;;
  30791. esac
  30792. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ws2tcpip.h" >&5
  30793. printf %s "checking for ws2tcpip.h... " >&6; }
  30794. if test ${curl_cv_header_ws2tcpip_h+y}
  30795. then :
  30796. printf %s "(cached) " >&6
  30797. else $as_nop
  30798. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  30799. /* end confdefs.h. */
  30800. #undef inline
  30801. #ifndef WIN32_LEAN_AND_MEAN
  30802. #define WIN32_LEAN_AND_MEAN
  30803. #endif
  30804. #include <windows.h>
  30805. #include <winsock2.h>
  30806. #include <ws2tcpip.h>
  30807. int main (void)
  30808. {
  30809. #if defined(__CYGWIN__) || defined(__CEGCC__) || defined(__MINGW32CE__)
  30810. HAVE_WS2TCPIP_H shall not be defined.
  30811. #else
  30812. int dummy=2*IP_PKTINFO;
  30813. #endif
  30814. ;
  30815. return 0;
  30816. }
  30817. _ACEOF
  30818. if ac_fn_c_try_compile "$LINENO"
  30819. then :
  30820. curl_cv_header_ws2tcpip_h="yes"
  30821. else $as_nop
  30822. curl_cv_header_ws2tcpip_h="no"
  30823. fi
  30824. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  30825. fi
  30826. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $curl_cv_header_ws2tcpip_h" >&5
  30827. printf "%s\n" "$curl_cv_header_ws2tcpip_h" >&6; }
  30828. case "$curl_cv_header_ws2tcpip_h" in
  30829. yes)
  30830. printf "%s\n" "#define HAVE_WS2TCPIP_H 1" >>confdefs.h
  30831. ;;
  30832. esac
  30833. curl_includes_netdb="\
  30834. /* includes start */
  30835. #ifdef HAVE_SYS_TYPES_H
  30836. # include <sys/types.h>
  30837. #endif
  30838. #ifdef HAVE_NETDB_H
  30839. # include <netdb.h>
  30840. #endif
  30841. /* includes end */"
  30842. ac_fn_c_check_header_compile "$LINENO" "sys/types.h" "ac_cv_header_sys_types_h" "$curl_includes_netdb
  30843. "
  30844. if test "x$ac_cv_header_sys_types_h" = xyes
  30845. then :
  30846. printf "%s\n" "#define HAVE_SYS_TYPES_H 1" >>confdefs.h
  30847. fi
  30848. ac_fn_c_check_header_compile "$LINENO" "netdb.h" "ac_cv_header_netdb_h" "$curl_includes_netdb
  30849. "
  30850. if test "x$ac_cv_header_netdb_h" = xyes
  30851. then :
  30852. printf "%s\n" "#define HAVE_NETDB_H 1" >>confdefs.h
  30853. fi
  30854. #
  30855. tst_links_freeaddrinfo="unknown"
  30856. tst_proto_freeaddrinfo="unknown"
  30857. tst_compi_freeaddrinfo="unknown"
  30858. tst_allow_freeaddrinfo="unknown"
  30859. #
  30860. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if freeaddrinfo can be linked" >&5
  30861. printf %s "checking if freeaddrinfo can be linked... " >&6; }
  30862. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  30863. /* end confdefs.h. */
  30864. $curl_includes_ws2tcpip
  30865. $curl_includes_sys_socket
  30866. $curl_includes_netdb
  30867. int main (void)
  30868. {
  30869. freeaddrinfo(0);
  30870. ;
  30871. return 0;
  30872. }
  30873. _ACEOF
  30874. if ac_fn_c_try_link "$LINENO"
  30875. then :
  30876. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  30877. printf "%s\n" "yes" >&6; }
  30878. tst_links_freeaddrinfo="yes"
  30879. else $as_nop
  30880. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  30881. printf "%s\n" "no" >&6; }
  30882. tst_links_freeaddrinfo="no"
  30883. fi
  30884. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  30885. conftest$ac_exeext conftest.$ac_ext
  30886. #
  30887. if test "$tst_links_freeaddrinfo" = "yes"; then
  30888. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if freeaddrinfo is prototyped" >&5
  30889. printf %s "checking if freeaddrinfo is prototyped... " >&6; }
  30890. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  30891. /* end confdefs.h. */
  30892. $curl_includes_ws2tcpip
  30893. $curl_includes_sys_socket
  30894. $curl_includes_netdb
  30895. _ACEOF
  30896. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  30897. $EGREP "freeaddrinfo" >/dev/null 2>&1
  30898. then :
  30899. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  30900. printf "%s\n" "yes" >&6; }
  30901. tst_proto_freeaddrinfo="yes"
  30902. else $as_nop
  30903. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  30904. printf "%s\n" "no" >&6; }
  30905. tst_proto_freeaddrinfo="no"
  30906. fi
  30907. rm -rf conftest*
  30908. fi
  30909. #
  30910. if test "$tst_proto_freeaddrinfo" = "yes"; then
  30911. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if freeaddrinfo is compilable" >&5
  30912. printf %s "checking if freeaddrinfo is compilable... " >&6; }
  30913. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  30914. /* end confdefs.h. */
  30915. $curl_includes_ws2tcpip
  30916. $curl_includes_sys_socket
  30917. $curl_includes_netdb
  30918. int main (void)
  30919. {
  30920. freeaddrinfo(0);
  30921. ;
  30922. return 0;
  30923. }
  30924. _ACEOF
  30925. if ac_fn_c_try_compile "$LINENO"
  30926. then :
  30927. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  30928. printf "%s\n" "yes" >&6; }
  30929. tst_compi_freeaddrinfo="yes"
  30930. else $as_nop
  30931. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  30932. printf "%s\n" "no" >&6; }
  30933. tst_compi_freeaddrinfo="no"
  30934. fi
  30935. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  30936. fi
  30937. #
  30938. if test "$tst_compi_freeaddrinfo" = "yes"; then
  30939. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if freeaddrinfo usage allowed" >&5
  30940. printf %s "checking if freeaddrinfo usage allowed... " >&6; }
  30941. if test "x$curl_disallow_freeaddrinfo" != "xyes"; then
  30942. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  30943. printf "%s\n" "yes" >&6; }
  30944. tst_allow_freeaddrinfo="yes"
  30945. else
  30946. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  30947. printf "%s\n" "no" >&6; }
  30948. tst_allow_freeaddrinfo="no"
  30949. fi
  30950. fi
  30951. #
  30952. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if freeaddrinfo might be used" >&5
  30953. printf %s "checking if freeaddrinfo might be used... " >&6; }
  30954. if test "$tst_links_freeaddrinfo" = "yes" &&
  30955. test "$tst_proto_freeaddrinfo" = "yes" &&
  30956. test "$tst_compi_freeaddrinfo" = "yes" &&
  30957. test "$tst_allow_freeaddrinfo" = "yes"; then
  30958. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  30959. printf "%s\n" "yes" >&6; }
  30960. printf "%s\n" "#define HAVE_FREEADDRINFO 1" >>confdefs.h
  30961. curl_cv_func_freeaddrinfo="yes"
  30962. else
  30963. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  30964. printf "%s\n" "no" >&6; }
  30965. curl_cv_func_freeaddrinfo="no"
  30966. fi
  30967. curl_includes_sys_xattr="\
  30968. /* includes start */
  30969. #ifdef HAVE_SYS_TYPES_H
  30970. # include <sys/types.h>
  30971. #endif
  30972. #ifdef HAVE_SYS_XATTR_H
  30973. # include <sys/xattr.h>
  30974. #endif
  30975. /* includes end */"
  30976. ac_fn_c_check_header_compile "$LINENO" "sys/types.h" "ac_cv_header_sys_types_h" "$curl_includes_sys_xattr
  30977. "
  30978. if test "x$ac_cv_header_sys_types_h" = xyes
  30979. then :
  30980. printf "%s\n" "#define HAVE_SYS_TYPES_H 1" >>confdefs.h
  30981. fi
  30982. ac_fn_c_check_header_compile "$LINENO" "sys/xattr.h" "ac_cv_header_sys_xattr_h" "$curl_includes_sys_xattr
  30983. "
  30984. if test "x$ac_cv_header_sys_xattr_h" = xyes
  30985. then :
  30986. printf "%s\n" "#define HAVE_SYS_XATTR_H 1" >>confdefs.h
  30987. fi
  30988. #
  30989. tst_links_fsetxattr="unknown"
  30990. tst_proto_fsetxattr="unknown"
  30991. tst_compi_fsetxattr="unknown"
  30992. tst_allow_fsetxattr="unknown"
  30993. tst_nargs_fsetxattr="unknown"
  30994. #
  30995. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if fsetxattr can be linked" >&5
  30996. printf %s "checking if fsetxattr can be linked... " >&6; }
  30997. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  30998. /* end confdefs.h. */
  30999. #define fsetxattr innocuous_fsetxattr
  31000. #ifdef __STDC__
  31001. # include <limits.h>
  31002. #else
  31003. # include <assert.h>
  31004. #endif
  31005. #undef fsetxattr
  31006. #ifdef __cplusplus
  31007. extern "C"
  31008. #endif
  31009. char fsetxattr ();
  31010. #if defined __stub_fsetxattr || defined __stub___fsetxattr
  31011. choke me
  31012. #endif
  31013. int main (void)
  31014. {
  31015. return fsetxattr ();
  31016. ;
  31017. return 0;
  31018. }
  31019. _ACEOF
  31020. if ac_fn_c_try_link "$LINENO"
  31021. then :
  31022. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  31023. printf "%s\n" "yes" >&6; }
  31024. tst_links_fsetxattr="yes"
  31025. else $as_nop
  31026. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  31027. printf "%s\n" "no" >&6; }
  31028. tst_links_fsetxattr="no"
  31029. fi
  31030. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  31031. conftest$ac_exeext conftest.$ac_ext
  31032. #
  31033. if test "$tst_links_fsetxattr" = "yes"; then
  31034. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if fsetxattr is prototyped" >&5
  31035. printf %s "checking if fsetxattr is prototyped... " >&6; }
  31036. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  31037. /* end confdefs.h. */
  31038. $curl_includes_sys_xattr
  31039. _ACEOF
  31040. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  31041. $EGREP "fsetxattr" >/dev/null 2>&1
  31042. then :
  31043. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  31044. printf "%s\n" "yes" >&6; }
  31045. tst_proto_fsetxattr="yes"
  31046. else $as_nop
  31047. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  31048. printf "%s\n" "no" >&6; }
  31049. tst_proto_fsetxattr="no"
  31050. fi
  31051. rm -rf conftest*
  31052. fi
  31053. #
  31054. if test "$tst_proto_fsetxattr" = "yes"; then
  31055. if test "$tst_nargs_fsetxattr" = "unknown"; then
  31056. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if fsetxattr takes 5 args." >&5
  31057. printf %s "checking if fsetxattr takes 5 args.... " >&6; }
  31058. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  31059. /* end confdefs.h. */
  31060. $curl_includes_sys_xattr
  31061. int main (void)
  31062. {
  31063. if(0 != fsetxattr(0, 0, 0, 0, 0))
  31064. return 1;
  31065. ;
  31066. return 0;
  31067. }
  31068. _ACEOF
  31069. if ac_fn_c_try_compile "$LINENO"
  31070. then :
  31071. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  31072. printf "%s\n" "yes" >&6; }
  31073. tst_compi_fsetxattr="yes"
  31074. tst_nargs_fsetxattr="5"
  31075. else $as_nop
  31076. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  31077. printf "%s\n" "no" >&6; }
  31078. tst_compi_fsetxattr="no"
  31079. fi
  31080. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  31081. fi
  31082. if test "$tst_nargs_fsetxattr" = "unknown"; then
  31083. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if fsetxattr takes 6 args." >&5
  31084. printf %s "checking if fsetxattr takes 6 args.... " >&6; }
  31085. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  31086. /* end confdefs.h. */
  31087. $curl_includes_sys_xattr
  31088. int main (void)
  31089. {
  31090. if(0 != fsetxattr(0, 0, 0, 0, 0, 0))
  31091. return 1;
  31092. ;
  31093. return 0;
  31094. }
  31095. _ACEOF
  31096. if ac_fn_c_try_compile "$LINENO"
  31097. then :
  31098. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  31099. printf "%s\n" "yes" >&6; }
  31100. tst_compi_fsetxattr="yes"
  31101. tst_nargs_fsetxattr="6"
  31102. else $as_nop
  31103. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  31104. printf "%s\n" "no" >&6; }
  31105. tst_compi_fsetxattr="no"
  31106. fi
  31107. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  31108. fi
  31109. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if fsetxattr is compilable" >&5
  31110. printf %s "checking if fsetxattr is compilable... " >&6; }
  31111. if test "$tst_compi_fsetxattr" = "yes"; then
  31112. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  31113. printf "%s\n" "yes" >&6; }
  31114. else
  31115. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  31116. printf "%s\n" "no" >&6; }
  31117. fi
  31118. fi
  31119. #
  31120. if test "$tst_compi_fsetxattr" = "yes"; then
  31121. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if fsetxattr usage allowed" >&5
  31122. printf %s "checking if fsetxattr usage allowed... " >&6; }
  31123. if test "x$curl_disallow_fsetxattr" != "xyes"; then
  31124. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  31125. printf "%s\n" "yes" >&6; }
  31126. tst_allow_fsetxattr="yes"
  31127. else
  31128. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  31129. printf "%s\n" "no" >&6; }
  31130. tst_allow_fsetxattr="no"
  31131. fi
  31132. fi
  31133. #
  31134. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if fsetxattr might be used" >&5
  31135. printf %s "checking if fsetxattr might be used... " >&6; }
  31136. if test "$tst_links_fsetxattr" = "yes" &&
  31137. test "$tst_proto_fsetxattr" = "yes" &&
  31138. test "$tst_compi_fsetxattr" = "yes" &&
  31139. test "$tst_allow_fsetxattr" = "yes"; then
  31140. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  31141. printf "%s\n" "yes" >&6; }
  31142. printf "%s\n" "#define HAVE_FSETXATTR 1" >>confdefs.h
  31143. #
  31144. if test "$tst_nargs_fsetxattr" -eq "5"; then
  31145. printf "%s\n" "#define HAVE_FSETXATTR_5 1" >>confdefs.h
  31146. elif test "$tst_nargs_fsetxattr" -eq "6"; then
  31147. printf "%s\n" "#define HAVE_FSETXATTR_6 1" >>confdefs.h
  31148. fi
  31149. #
  31150. curl_cv_func_fsetxattr="yes"
  31151. else
  31152. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  31153. printf "%s\n" "no" >&6; }
  31154. curl_cv_func_fsetxattr="no"
  31155. fi
  31156. #
  31157. tst_links_ftruncate="unknown"
  31158. tst_proto_ftruncate="unknown"
  31159. tst_compi_ftruncate="unknown"
  31160. tst_allow_ftruncate="unknown"
  31161. #
  31162. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if ftruncate can be linked" >&5
  31163. printf %s "checking if ftruncate can be linked... " >&6; }
  31164. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  31165. /* end confdefs.h. */
  31166. #define ftruncate innocuous_ftruncate
  31167. #ifdef __STDC__
  31168. # include <limits.h>
  31169. #else
  31170. # include <assert.h>
  31171. #endif
  31172. #undef ftruncate
  31173. #ifdef __cplusplus
  31174. extern "C"
  31175. #endif
  31176. char ftruncate ();
  31177. #if defined __stub_ftruncate || defined __stub___ftruncate
  31178. choke me
  31179. #endif
  31180. int main (void)
  31181. {
  31182. return ftruncate ();
  31183. ;
  31184. return 0;
  31185. }
  31186. _ACEOF
  31187. if ac_fn_c_try_link "$LINENO"
  31188. then :
  31189. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  31190. printf "%s\n" "yes" >&6; }
  31191. tst_links_ftruncate="yes"
  31192. else $as_nop
  31193. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  31194. printf "%s\n" "no" >&6; }
  31195. tst_links_ftruncate="no"
  31196. fi
  31197. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  31198. conftest$ac_exeext conftest.$ac_ext
  31199. #
  31200. if test "$tst_links_ftruncate" = "yes"; then
  31201. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if ftruncate is prototyped" >&5
  31202. printf %s "checking if ftruncate is prototyped... " >&6; }
  31203. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  31204. /* end confdefs.h. */
  31205. $curl_includes_unistd
  31206. _ACEOF
  31207. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  31208. $EGREP "ftruncate" >/dev/null 2>&1
  31209. then :
  31210. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  31211. printf "%s\n" "yes" >&6; }
  31212. tst_proto_ftruncate="yes"
  31213. else $as_nop
  31214. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  31215. printf "%s\n" "no" >&6; }
  31216. tst_proto_ftruncate="no"
  31217. fi
  31218. rm -rf conftest*
  31219. fi
  31220. #
  31221. if test "$tst_proto_ftruncate" = "yes"; then
  31222. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if ftruncate is compilable" >&5
  31223. printf %s "checking if ftruncate is compilable... " >&6; }
  31224. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  31225. /* end confdefs.h. */
  31226. $curl_includes_unistd
  31227. int main (void)
  31228. {
  31229. if(0 != ftruncate(0, 0))
  31230. return 1;
  31231. ;
  31232. return 0;
  31233. }
  31234. _ACEOF
  31235. if ac_fn_c_try_compile "$LINENO"
  31236. then :
  31237. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  31238. printf "%s\n" "yes" >&6; }
  31239. tst_compi_ftruncate="yes"
  31240. else $as_nop
  31241. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  31242. printf "%s\n" "no" >&6; }
  31243. tst_compi_ftruncate="no"
  31244. fi
  31245. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  31246. fi
  31247. #
  31248. if test "$tst_compi_ftruncate" = "yes"; then
  31249. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if ftruncate usage allowed" >&5
  31250. printf %s "checking if ftruncate usage allowed... " >&6; }
  31251. if test "x$curl_disallow_ftruncate" != "xyes"; then
  31252. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  31253. printf "%s\n" "yes" >&6; }
  31254. tst_allow_ftruncate="yes"
  31255. else
  31256. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  31257. printf "%s\n" "no" >&6; }
  31258. tst_allow_ftruncate="no"
  31259. fi
  31260. fi
  31261. #
  31262. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if ftruncate might be used" >&5
  31263. printf %s "checking if ftruncate might be used... " >&6; }
  31264. if test "$tst_links_ftruncate" = "yes" &&
  31265. test "$tst_proto_ftruncate" = "yes" &&
  31266. test "$tst_compi_ftruncate" = "yes" &&
  31267. test "$tst_allow_ftruncate" = "yes"; then
  31268. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  31269. printf "%s\n" "yes" >&6; }
  31270. printf "%s\n" "#define HAVE_FTRUNCATE 1" >>confdefs.h
  31271. curl_cv_func_ftruncate="yes"
  31272. else
  31273. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  31274. printf "%s\n" "no" >&6; }
  31275. curl_cv_func_ftruncate="no"
  31276. fi
  31277. curl_includes_stdlib="\
  31278. /* includes start */
  31279. #ifdef HAVE_SYS_TYPES_H
  31280. # include <sys/types.h>
  31281. #endif
  31282. #ifdef HAVE_STDLIB_H
  31283. # include <stdlib.h>
  31284. #endif
  31285. /* includes end */"
  31286. ac_fn_c_check_header_compile "$LINENO" "sys/types.h" "ac_cv_header_sys_types_h" "$curl_includes_stdlib
  31287. "
  31288. if test "x$ac_cv_header_sys_types_h" = xyes
  31289. then :
  31290. printf "%s\n" "#define HAVE_SYS_TYPES_H 1" >>confdefs.h
  31291. fi
  31292. ac_fn_c_check_header_compile "$LINENO" "stdlib.h" "ac_cv_header_stdlib_h" "$curl_includes_stdlib
  31293. "
  31294. if test "x$ac_cv_header_stdlib_h" = xyes
  31295. then :
  31296. printf "%s\n" "#define HAVE_STDLIB_H 1" >>confdefs.h
  31297. fi
  31298. #
  31299. tst_links_getaddrinfo="unknown"
  31300. tst_proto_getaddrinfo="unknown"
  31301. tst_compi_getaddrinfo="unknown"
  31302. tst_works_getaddrinfo="unknown"
  31303. tst_allow_getaddrinfo="unknown"
  31304. tst_tsafe_getaddrinfo="unknown"
  31305. #
  31306. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if getaddrinfo can be linked" >&5
  31307. printf %s "checking if getaddrinfo can be linked... " >&6; }
  31308. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  31309. /* end confdefs.h. */
  31310. $curl_includes_ws2tcpip
  31311. $curl_includes_sys_socket
  31312. $curl_includes_netdb
  31313. int main (void)
  31314. {
  31315. if(0 != getaddrinfo(0, 0, 0, 0))
  31316. return 1;
  31317. ;
  31318. return 0;
  31319. }
  31320. _ACEOF
  31321. if ac_fn_c_try_link "$LINENO"
  31322. then :
  31323. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  31324. printf "%s\n" "yes" >&6; }
  31325. tst_links_getaddrinfo="yes"
  31326. else $as_nop
  31327. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  31328. printf "%s\n" "no" >&6; }
  31329. tst_links_getaddrinfo="no"
  31330. fi
  31331. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  31332. conftest$ac_exeext conftest.$ac_ext
  31333. #
  31334. if test "$tst_links_getaddrinfo" = "yes"; then
  31335. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if getaddrinfo is prototyped" >&5
  31336. printf %s "checking if getaddrinfo is prototyped... " >&6; }
  31337. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  31338. /* end confdefs.h. */
  31339. $curl_includes_ws2tcpip
  31340. $curl_includes_sys_socket
  31341. $curl_includes_netdb
  31342. _ACEOF
  31343. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  31344. $EGREP "getaddrinfo" >/dev/null 2>&1
  31345. then :
  31346. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  31347. printf "%s\n" "yes" >&6; }
  31348. tst_proto_getaddrinfo="yes"
  31349. else $as_nop
  31350. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  31351. printf "%s\n" "no" >&6; }
  31352. tst_proto_getaddrinfo="no"
  31353. fi
  31354. rm -rf conftest*
  31355. fi
  31356. #
  31357. if test "$tst_proto_getaddrinfo" = "yes"; then
  31358. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if getaddrinfo is compilable" >&5
  31359. printf %s "checking if getaddrinfo is compilable... " >&6; }
  31360. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  31361. /* end confdefs.h. */
  31362. $curl_includes_ws2tcpip
  31363. $curl_includes_sys_socket
  31364. $curl_includes_netdb
  31365. int main (void)
  31366. {
  31367. if(0 != getaddrinfo(0, 0, 0, 0))
  31368. return 1;
  31369. ;
  31370. return 0;
  31371. }
  31372. _ACEOF
  31373. if ac_fn_c_try_compile "$LINENO"
  31374. then :
  31375. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  31376. printf "%s\n" "yes" >&6; }
  31377. tst_compi_getaddrinfo="yes"
  31378. else $as_nop
  31379. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  31380. printf "%s\n" "no" >&6; }
  31381. tst_compi_getaddrinfo="no"
  31382. fi
  31383. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  31384. fi
  31385. #
  31386. if test "x$cross_compiling" != "xyes" &&
  31387. test "$tst_compi_getaddrinfo" = "yes"; then
  31388. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if getaddrinfo seems to work" >&5
  31389. printf %s "checking if getaddrinfo seems to work... " >&6; }
  31390. old=$LD_LIBRARY_PATH
  31391. LD_LIBRARY_PATH=$CURL_LIBRARY_PATH:$old
  31392. export LD_LIBRARY_PATH
  31393. if test "$cross_compiling" = yes
  31394. then :
  31395. { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  31396. printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
  31397. as_fn_error $? "cannot run test program while cross compiling
  31398. See \`config.log' for more details" "$LINENO" 5; }
  31399. else $as_nop
  31400. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  31401. /* end confdefs.h. */
  31402. $curl_includes_ws2tcpip
  31403. $curl_includes_stdlib
  31404. $curl_includes_string
  31405. $curl_includes_sys_socket
  31406. $curl_includes_netdb
  31407. int main (void)
  31408. {
  31409. struct addrinfo hints;
  31410. struct addrinfo *ai = 0;
  31411. int error;
  31412. #ifdef HAVE_WINSOCK2_H
  31413. WSADATA wsa;
  31414. if (WSAStartup(MAKEWORD(2,2), &wsa))
  31415. exit(2);
  31416. #endif
  31417. memset(&hints, 0, sizeof(hints));
  31418. hints.ai_flags = AI_NUMERICHOST;
  31419. hints.ai_family = AF_UNSPEC;
  31420. hints.ai_socktype = SOCK_STREAM;
  31421. error = getaddrinfo("127.0.0.1", 0, &hints, &ai);
  31422. if(error || !ai)
  31423. exit(1); /* fail */
  31424. else
  31425. exit(0);
  31426. ;
  31427. return 0;
  31428. }
  31429. _ACEOF
  31430. if ac_fn_c_try_run "$LINENO"
  31431. then :
  31432. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  31433. printf "%s\n" "yes" >&6; }
  31434. tst_works_getaddrinfo="yes"
  31435. else $as_nop
  31436. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  31437. printf "%s\n" "no" >&6; }
  31438. tst_works_getaddrinfo="no"
  31439. fi
  31440. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  31441. conftest.$ac_objext conftest.beam conftest.$ac_ext
  31442. fi
  31443. LD_LIBRARY_PATH=$old # restore
  31444. fi
  31445. #
  31446. if test "$tst_compi_getaddrinfo" = "yes" &&
  31447. test "$tst_works_getaddrinfo" != "no"; then
  31448. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if getaddrinfo usage allowed" >&5
  31449. printf %s "checking if getaddrinfo usage allowed... " >&6; }
  31450. if test "x$curl_disallow_getaddrinfo" != "xyes"; then
  31451. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  31452. printf "%s\n" "yes" >&6; }
  31453. tst_allow_getaddrinfo="yes"
  31454. else
  31455. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  31456. printf "%s\n" "no" >&6; }
  31457. tst_allow_getaddrinfo="no"
  31458. fi
  31459. fi
  31460. #
  31461. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if getaddrinfo might be used" >&5
  31462. printf %s "checking if getaddrinfo might be used... " >&6; }
  31463. if test "$tst_links_getaddrinfo" = "yes" &&
  31464. test "$tst_proto_getaddrinfo" = "yes" &&
  31465. test "$tst_compi_getaddrinfo" = "yes" &&
  31466. test "$tst_allow_getaddrinfo" = "yes" &&
  31467. test "$tst_works_getaddrinfo" != "no"; then
  31468. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  31469. printf "%s\n" "yes" >&6; }
  31470. printf "%s\n" "#define HAVE_GETADDRINFO 1" >>confdefs.h
  31471. curl_cv_func_getaddrinfo="yes"
  31472. else
  31473. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  31474. printf "%s\n" "no" >&6; }
  31475. curl_cv_func_getaddrinfo="no"
  31476. curl_cv_func_getaddrinfo_threadsafe="no"
  31477. fi
  31478. #
  31479. if test "$curl_cv_func_getaddrinfo" = "yes"; then
  31480. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if getaddrinfo is threadsafe" >&5
  31481. printf %s "checking if getaddrinfo is threadsafe... " >&6; }
  31482. case $host_os in
  31483. aix[1234].* | aix5.[01].*)
  31484. tst_tsafe_getaddrinfo="no"
  31485. ;;
  31486. aix*)
  31487. tst_tsafe_getaddrinfo="yes"
  31488. ;;
  31489. darwin[12345].*)
  31490. tst_tsafe_getaddrinfo="no"
  31491. ;;
  31492. darwin*)
  31493. tst_tsafe_getaddrinfo="yes"
  31494. ;;
  31495. freebsd[1234].* | freebsd5.[1234]*)
  31496. tst_tsafe_getaddrinfo="no"
  31497. ;;
  31498. freebsd*)
  31499. tst_tsafe_getaddrinfo="yes"
  31500. ;;
  31501. hpux[123456789].* | hpux10.* | hpux11.0* | hpux11.10*)
  31502. tst_tsafe_getaddrinfo="no"
  31503. ;;
  31504. hpux*)
  31505. tst_tsafe_getaddrinfo="yes"
  31506. ;;
  31507. midnightbsd*)
  31508. tst_tsafe_getaddrinfo="yes"
  31509. ;;
  31510. netbsd[123].*)
  31511. tst_tsafe_getaddrinfo="no"
  31512. ;;
  31513. netbsd*)
  31514. tst_tsafe_getaddrinfo="yes"
  31515. ;;
  31516. *bsd*)
  31517. tst_tsafe_getaddrinfo="no"
  31518. ;;
  31519. solaris2*)
  31520. tst_tsafe_getaddrinfo="yes"
  31521. ;;
  31522. esac
  31523. if test "$tst_tsafe_getaddrinfo" = "unknown" &&
  31524. test "$curl_cv_native_windows" = "yes"; then
  31525. tst_tsafe_getaddrinfo="yes"
  31526. fi
  31527. if test "$tst_tsafe_getaddrinfo" = "unknown"; then
  31528. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  31529. /* end confdefs.h. */
  31530. $curl_includes_sys_socket
  31531. $curl_includes_netdb
  31532. int main (void)
  31533. {
  31534. #ifdef h_errno
  31535. return 0;
  31536. #else
  31537. force compilation error
  31538. #endif
  31539. }
  31540. _ACEOF
  31541. if ac_fn_c_try_compile "$LINENO"
  31542. then :
  31543. tst_symbol_defined="yes"
  31544. else $as_nop
  31545. tst_symbol_defined="no"
  31546. fi
  31547. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  31548. if test "$tst_symbol_defined" = "yes"; then
  31549. curl_cv_have_def_h_errno=yes
  31550. else
  31551. curl_cv_have_def_h_errno=no
  31552. fi
  31553. if test "$curl_cv_have_def_h_errno" = "yes"; then
  31554. tst_h_errno_macro="yes"
  31555. else
  31556. tst_h_errno_macro="no"
  31557. fi
  31558. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  31559. /* end confdefs.h. */
  31560. $curl_includes_sys_socket
  31561. $curl_includes_netdb
  31562. int main (void)
  31563. {
  31564. h_errno = 2;
  31565. if(0 != h_errno)
  31566. return 1;
  31567. ;
  31568. return 0;
  31569. }
  31570. _ACEOF
  31571. if ac_fn_c_try_compile "$LINENO"
  31572. then :
  31573. tst_h_errno_modifiable_lvalue="yes"
  31574. else $as_nop
  31575. tst_h_errno_modifiable_lvalue="no"
  31576. fi
  31577. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  31578. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  31579. /* end confdefs.h. */
  31580. int main (void)
  31581. {
  31582. #if defined(_POSIX_C_SOURCE) && (_POSIX_C_SOURCE >= 200809L)
  31583. return 0;
  31584. #elif defined(_XOPEN_SOURCE) && (_XOPEN_SOURCE >= 700)
  31585. return 0;
  31586. #else
  31587. force compilation error
  31588. #endif
  31589. ;
  31590. return 0;
  31591. }
  31592. _ACEOF
  31593. if ac_fn_c_try_compile "$LINENO"
  31594. then :
  31595. tst_h_errno_sbs_issue_7="yes"
  31596. else $as_nop
  31597. tst_h_errno_sbs_issue_7="no"
  31598. fi
  31599. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  31600. if test "$tst_h_errno_macro" = "no" &&
  31601. test "$tst_h_errno_modifiable_lvalue" = "no" &&
  31602. test "$tst_h_errno_sbs_issue_7" = "no"; then
  31603. tst_tsafe_getaddrinfo="no"
  31604. else
  31605. tst_tsafe_getaddrinfo="yes"
  31606. fi
  31607. fi
  31608. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $tst_tsafe_getaddrinfo" >&5
  31609. printf "%s\n" "$tst_tsafe_getaddrinfo" >&6; }
  31610. if test "$tst_tsafe_getaddrinfo" = "yes"; then
  31611. printf "%s\n" "#define HAVE_GETADDRINFO_THREADSAFE 1" >>confdefs.h
  31612. curl_cv_func_getaddrinfo_threadsafe="yes"
  31613. else
  31614. curl_cv_func_getaddrinfo_threadsafe="no"
  31615. fi
  31616. fi
  31617. #
  31618. tst_links_gethostbyname="unknown"
  31619. tst_proto_gethostbyname="unknown"
  31620. tst_compi_gethostbyname="unknown"
  31621. tst_allow_gethostbyname="unknown"
  31622. #
  31623. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if gethostbyname can be linked" >&5
  31624. printf %s "checking if gethostbyname can be linked... " >&6; }
  31625. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  31626. /* end confdefs.h. */
  31627. $curl_includes_winsock2
  31628. $curl_includes_bsdsocket
  31629. $curl_includes_netdb
  31630. int main (void)
  31631. {
  31632. if(0 != gethostbyname(0))
  31633. return 1;
  31634. ;
  31635. return 0;
  31636. }
  31637. _ACEOF
  31638. if ac_fn_c_try_link "$LINENO"
  31639. then :
  31640. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  31641. printf "%s\n" "yes" >&6; }
  31642. tst_links_gethostbyname="yes"
  31643. else $as_nop
  31644. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  31645. printf "%s\n" "no" >&6; }
  31646. tst_links_gethostbyname="no"
  31647. fi
  31648. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  31649. conftest$ac_exeext conftest.$ac_ext
  31650. #
  31651. if test "$tst_links_gethostbyname" = "yes"; then
  31652. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if gethostbyname is prototyped" >&5
  31653. printf %s "checking if gethostbyname is prototyped... " >&6; }
  31654. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  31655. /* end confdefs.h. */
  31656. $curl_includes_winsock2
  31657. $curl_includes_bsdsocket
  31658. $curl_includes_netdb
  31659. _ACEOF
  31660. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  31661. $EGREP "gethostbyname" >/dev/null 2>&1
  31662. then :
  31663. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  31664. printf "%s\n" "yes" >&6; }
  31665. tst_proto_gethostbyname="yes"
  31666. else $as_nop
  31667. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  31668. printf "%s\n" "no" >&6; }
  31669. tst_proto_gethostbyname="no"
  31670. fi
  31671. rm -rf conftest*
  31672. fi
  31673. #
  31674. if test "$tst_proto_gethostbyname" = "yes"; then
  31675. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if gethostbyname is compilable" >&5
  31676. printf %s "checking if gethostbyname is compilable... " >&6; }
  31677. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  31678. /* end confdefs.h. */
  31679. $curl_includes_winsock2
  31680. $curl_includes_bsdsocket
  31681. $curl_includes_netdb
  31682. int main (void)
  31683. {
  31684. if(0 != gethostbyname(0))
  31685. return 1;
  31686. ;
  31687. return 0;
  31688. }
  31689. _ACEOF
  31690. if ac_fn_c_try_compile "$LINENO"
  31691. then :
  31692. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  31693. printf "%s\n" "yes" >&6; }
  31694. tst_compi_gethostbyname="yes"
  31695. else $as_nop
  31696. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  31697. printf "%s\n" "no" >&6; }
  31698. tst_compi_gethostbyname="no"
  31699. fi
  31700. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  31701. fi
  31702. #
  31703. if test "$tst_compi_gethostbyname" = "yes"; then
  31704. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if gethostbyname usage allowed" >&5
  31705. printf %s "checking if gethostbyname usage allowed... " >&6; }
  31706. if test "x$curl_disallow_gethostbyname" != "xyes"; then
  31707. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  31708. printf "%s\n" "yes" >&6; }
  31709. tst_allow_gethostbyname="yes"
  31710. else
  31711. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  31712. printf "%s\n" "no" >&6; }
  31713. tst_allow_gethostbyname="no"
  31714. fi
  31715. fi
  31716. #
  31717. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if gethostbyname might be used" >&5
  31718. printf %s "checking if gethostbyname might be used... " >&6; }
  31719. if test "$tst_links_gethostbyname" = "yes" &&
  31720. test "$tst_proto_gethostbyname" = "yes" &&
  31721. test "$tst_compi_gethostbyname" = "yes" &&
  31722. test "$tst_allow_gethostbyname" = "yes"; then
  31723. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  31724. printf "%s\n" "yes" >&6; }
  31725. printf "%s\n" "#define HAVE_GETHOSTBYNAME 1" >>confdefs.h
  31726. curl_cv_func_gethostbyname="yes"
  31727. else
  31728. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  31729. printf "%s\n" "no" >&6; }
  31730. curl_cv_func_gethostbyname="no"
  31731. fi
  31732. #
  31733. tst_links_gethostbyname_r="unknown"
  31734. tst_proto_gethostbyname_r="unknown"
  31735. tst_compi_gethostbyname_r="unknown"
  31736. tst_allow_gethostbyname_r="unknown"
  31737. tst_nargs_gethostbyname_r="unknown"
  31738. #
  31739. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if gethostbyname_r can be linked" >&5
  31740. printf %s "checking if gethostbyname_r can be linked... " >&6; }
  31741. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  31742. /* end confdefs.h. */
  31743. #define gethostbyname_r innocuous_gethostbyname_r
  31744. #ifdef __STDC__
  31745. # include <limits.h>
  31746. #else
  31747. # include <assert.h>
  31748. #endif
  31749. #undef gethostbyname_r
  31750. #ifdef __cplusplus
  31751. extern "C"
  31752. #endif
  31753. char gethostbyname_r ();
  31754. #if defined __stub_gethostbyname_r || defined __stub___gethostbyname_r
  31755. choke me
  31756. #endif
  31757. int main (void)
  31758. {
  31759. return gethostbyname_r ();
  31760. ;
  31761. return 0;
  31762. }
  31763. _ACEOF
  31764. if ac_fn_c_try_link "$LINENO"
  31765. then :
  31766. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  31767. printf "%s\n" "yes" >&6; }
  31768. tst_links_gethostbyname_r="yes"
  31769. else $as_nop
  31770. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  31771. printf "%s\n" "no" >&6; }
  31772. tst_links_gethostbyname_r="no"
  31773. fi
  31774. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  31775. conftest$ac_exeext conftest.$ac_ext
  31776. #
  31777. if test "$tst_links_gethostbyname_r" = "yes"; then
  31778. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if gethostbyname_r is prototyped" >&5
  31779. printf %s "checking if gethostbyname_r is prototyped... " >&6; }
  31780. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  31781. /* end confdefs.h. */
  31782. $curl_includes_netdb
  31783. _ACEOF
  31784. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  31785. $EGREP "gethostbyname_r" >/dev/null 2>&1
  31786. then :
  31787. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  31788. printf "%s\n" "yes" >&6; }
  31789. tst_proto_gethostbyname_r="yes"
  31790. else $as_nop
  31791. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  31792. printf "%s\n" "no" >&6; }
  31793. tst_proto_gethostbyname_r="no"
  31794. fi
  31795. rm -rf conftest*
  31796. fi
  31797. #
  31798. if test "$tst_proto_gethostbyname_r" = "yes"; then
  31799. if test "$tst_nargs_gethostbyname_r" = "unknown"; then
  31800. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if gethostbyname_r takes 3 args." >&5
  31801. printf %s "checking if gethostbyname_r takes 3 args.... " >&6; }
  31802. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  31803. /* end confdefs.h. */
  31804. $curl_includes_netdb
  31805. int main (void)
  31806. {
  31807. if(0 != gethostbyname_r(0, 0, 0))
  31808. return 1;
  31809. ;
  31810. return 0;
  31811. }
  31812. _ACEOF
  31813. if ac_fn_c_try_compile "$LINENO"
  31814. then :
  31815. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  31816. printf "%s\n" "yes" >&6; }
  31817. tst_compi_gethostbyname_r="yes"
  31818. tst_nargs_gethostbyname_r="3"
  31819. else $as_nop
  31820. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  31821. printf "%s\n" "no" >&6; }
  31822. tst_compi_gethostbyname_r="no"
  31823. fi
  31824. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  31825. fi
  31826. if test "$tst_nargs_gethostbyname_r" = "unknown"; then
  31827. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if gethostbyname_r takes 5 args." >&5
  31828. printf %s "checking if gethostbyname_r takes 5 args.... " >&6; }
  31829. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  31830. /* end confdefs.h. */
  31831. $curl_includes_netdb
  31832. int main (void)
  31833. {
  31834. if(0 != gethostbyname_r(0, 0, 0, 0, 0))
  31835. return 1;
  31836. ;
  31837. return 0;
  31838. }
  31839. _ACEOF
  31840. if ac_fn_c_try_compile "$LINENO"
  31841. then :
  31842. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  31843. printf "%s\n" "yes" >&6; }
  31844. tst_compi_gethostbyname_r="yes"
  31845. tst_nargs_gethostbyname_r="5"
  31846. else $as_nop
  31847. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  31848. printf "%s\n" "no" >&6; }
  31849. tst_compi_gethostbyname_r="no"
  31850. fi
  31851. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  31852. fi
  31853. if test "$tst_nargs_gethostbyname_r" = "unknown"; then
  31854. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if gethostbyname_r takes 6 args." >&5
  31855. printf %s "checking if gethostbyname_r takes 6 args.... " >&6; }
  31856. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  31857. /* end confdefs.h. */
  31858. $curl_includes_netdb
  31859. int main (void)
  31860. {
  31861. if(0 != gethostbyname_r(0, 0, 0, 0, 0, 0))
  31862. return 1;
  31863. ;
  31864. return 0;
  31865. }
  31866. _ACEOF
  31867. if ac_fn_c_try_compile "$LINENO"
  31868. then :
  31869. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  31870. printf "%s\n" "yes" >&6; }
  31871. tst_compi_gethostbyname_r="yes"
  31872. tst_nargs_gethostbyname_r="6"
  31873. else $as_nop
  31874. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  31875. printf "%s\n" "no" >&6; }
  31876. tst_compi_gethostbyname_r="no"
  31877. fi
  31878. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  31879. fi
  31880. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if gethostbyname_r is compilable" >&5
  31881. printf %s "checking if gethostbyname_r is compilable... " >&6; }
  31882. if test "$tst_compi_gethostbyname_r" = "yes"; then
  31883. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  31884. printf "%s\n" "yes" >&6; }
  31885. else
  31886. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  31887. printf "%s\n" "no" >&6; }
  31888. fi
  31889. fi
  31890. #
  31891. if test "$tst_compi_gethostbyname_r" = "yes"; then
  31892. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if gethostbyname_r usage allowed" >&5
  31893. printf %s "checking if gethostbyname_r usage allowed... " >&6; }
  31894. if test "x$curl_disallow_gethostbyname_r" != "xyes"; then
  31895. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  31896. printf "%s\n" "yes" >&6; }
  31897. tst_allow_gethostbyname_r="yes"
  31898. else
  31899. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  31900. printf "%s\n" "no" >&6; }
  31901. tst_allow_gethostbyname_r="no"
  31902. fi
  31903. fi
  31904. #
  31905. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if gethostbyname_r might be used" >&5
  31906. printf %s "checking if gethostbyname_r might be used... " >&6; }
  31907. if test "$tst_links_gethostbyname_r" = "yes" &&
  31908. test "$tst_proto_gethostbyname_r" = "yes" &&
  31909. test "$tst_compi_gethostbyname_r" = "yes" &&
  31910. test "$tst_allow_gethostbyname_r" = "yes"; then
  31911. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  31912. printf "%s\n" "yes" >&6; }
  31913. printf "%s\n" "#define HAVE_GETHOSTBYNAME_R 1" >>confdefs.h
  31914. #
  31915. if test "$tst_nargs_gethostbyname_r" -eq "3"; then
  31916. printf "%s\n" "#define HAVE_GETHOSTBYNAME_R_3 1" >>confdefs.h
  31917. elif test "$tst_nargs_gethostbyname_r" -eq "5"; then
  31918. printf "%s\n" "#define HAVE_GETHOSTBYNAME_R_5 1" >>confdefs.h
  31919. elif test "$tst_nargs_gethostbyname_r" -eq "6"; then
  31920. printf "%s\n" "#define HAVE_GETHOSTBYNAME_R_6 1" >>confdefs.h
  31921. fi
  31922. #
  31923. curl_cv_func_gethostbyname_r="yes"
  31924. else
  31925. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  31926. printf "%s\n" "no" >&6; }
  31927. curl_cv_func_gethostbyname_r="no"
  31928. fi
  31929. curl_preprocess_callconv="\
  31930. /* preprocess start */
  31931. #ifdef HAVE_WINDOWS_H
  31932. # define FUNCALLCONV __stdcall
  31933. #else
  31934. # define FUNCALLCONV
  31935. #endif
  31936. /* preprocess end */"
  31937. #
  31938. tst_links_gethostname="unknown"
  31939. tst_proto_gethostname="unknown"
  31940. tst_compi_gethostname="unknown"
  31941. tst_allow_gethostname="unknown"
  31942. #
  31943. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if gethostname can be linked" >&5
  31944. printf %s "checking if gethostname can be linked... " >&6; }
  31945. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  31946. /* end confdefs.h. */
  31947. $curl_includes_winsock2
  31948. $curl_includes_bsdsocket
  31949. $curl_includes_unistd
  31950. int main (void)
  31951. {
  31952. if(0 != gethostname(0, 0))
  31953. return 1;
  31954. ;
  31955. return 0;
  31956. }
  31957. _ACEOF
  31958. if ac_fn_c_try_link "$LINENO"
  31959. then :
  31960. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  31961. printf "%s\n" "yes" >&6; }
  31962. tst_links_gethostname="yes"
  31963. else $as_nop
  31964. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  31965. printf "%s\n" "no" >&6; }
  31966. tst_links_gethostname="no"
  31967. fi
  31968. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  31969. conftest$ac_exeext conftest.$ac_ext
  31970. #
  31971. if test "$tst_links_gethostname" = "yes"; then
  31972. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if gethostname is prototyped" >&5
  31973. printf %s "checking if gethostname is prototyped... " >&6; }
  31974. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  31975. /* end confdefs.h. */
  31976. $curl_includes_winsock2
  31977. $curl_includes_bsdsocket
  31978. $curl_includes_unistd
  31979. _ACEOF
  31980. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  31981. $EGREP "gethostname" >/dev/null 2>&1
  31982. then :
  31983. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  31984. printf "%s\n" "yes" >&6; }
  31985. tst_proto_gethostname="yes"
  31986. else $as_nop
  31987. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  31988. printf "%s\n" "no" >&6; }
  31989. tst_proto_gethostname="no"
  31990. fi
  31991. rm -rf conftest*
  31992. fi
  31993. #
  31994. if test "$tst_proto_gethostname" = "yes"; then
  31995. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if gethostname is compilable" >&5
  31996. printf %s "checking if gethostname is compilable... " >&6; }
  31997. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  31998. /* end confdefs.h. */
  31999. $curl_includes_winsock2
  32000. $curl_includes_bsdsocket
  32001. $curl_includes_unistd
  32002. int main (void)
  32003. {
  32004. if(0 != gethostname(0, 0))
  32005. return 1;
  32006. ;
  32007. return 0;
  32008. }
  32009. _ACEOF
  32010. if ac_fn_c_try_compile "$LINENO"
  32011. then :
  32012. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  32013. printf "%s\n" "yes" >&6; }
  32014. tst_compi_gethostname="yes"
  32015. else $as_nop
  32016. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  32017. printf "%s\n" "no" >&6; }
  32018. tst_compi_gethostname="no"
  32019. fi
  32020. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  32021. fi
  32022. #
  32023. if test "$tst_compi_gethostname" = "yes"; then
  32024. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for gethostname arg 2 data type" >&5
  32025. printf %s "checking for gethostname arg 2 data type... " >&6; }
  32026. tst_gethostname_type_arg2="unknown"
  32027. for tst_arg1 in 'char *' 'unsigned char *' 'void *'; do
  32028. for tst_arg2 in 'int' 'unsigned int' 'size_t'; do
  32029. if test "$tst_gethostname_type_arg2" = "unknown"; then
  32030. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  32031. /* end confdefs.h. */
  32032. $curl_includes_winsock2
  32033. $curl_includes_bsdsocket
  32034. $curl_includes_unistd
  32035. $curl_preprocess_callconv
  32036. extern int FUNCALLCONV gethostname($tst_arg1, $tst_arg2);
  32037. int main (void)
  32038. {
  32039. if(0 != gethostname(0, 0))
  32040. return 1;
  32041. ;
  32042. return 0;
  32043. }
  32044. _ACEOF
  32045. if ac_fn_c_try_compile "$LINENO"
  32046. then :
  32047. tst_gethostname_type_arg2="$tst_arg2"
  32048. fi
  32049. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  32050. fi
  32051. done
  32052. done
  32053. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $tst_gethostname_type_arg2" >&5
  32054. printf "%s\n" "$tst_gethostname_type_arg2" >&6; }
  32055. if test "$tst_gethostname_type_arg2" != "unknown"; then
  32056. printf "%s\n" "#define GETHOSTNAME_TYPE_ARG2 $tst_gethostname_type_arg2" >>confdefs.h
  32057. fi
  32058. fi
  32059. #
  32060. if test "$tst_compi_gethostname" = "yes"; then
  32061. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if gethostname usage allowed" >&5
  32062. printf %s "checking if gethostname usage allowed... " >&6; }
  32063. if test "x$curl_disallow_gethostname" != "xyes"; then
  32064. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  32065. printf "%s\n" "yes" >&6; }
  32066. tst_allow_gethostname="yes"
  32067. else
  32068. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  32069. printf "%s\n" "no" >&6; }
  32070. tst_allow_gethostname="no"
  32071. fi
  32072. fi
  32073. #
  32074. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if gethostname might be used" >&5
  32075. printf %s "checking if gethostname might be used... " >&6; }
  32076. if test "$tst_links_gethostname" = "yes" &&
  32077. test "$tst_proto_gethostname" = "yes" &&
  32078. test "$tst_compi_gethostname" = "yes" &&
  32079. test "$tst_allow_gethostname" = "yes"; then
  32080. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  32081. printf "%s\n" "yes" >&6; }
  32082. printf "%s\n" "#define HAVE_GETHOSTNAME 1" >>confdefs.h
  32083. curl_cv_func_gethostname="yes"
  32084. else
  32085. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  32086. printf "%s\n" "no" >&6; }
  32087. curl_cv_func_gethostname="no"
  32088. fi
  32089. #
  32090. tst_links_getpeername="unknown"
  32091. tst_proto_getpeername="unknown"
  32092. tst_compi_getpeername="unknown"
  32093. tst_allow_getpeername="unknown"
  32094. #
  32095. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if getpeername can be linked" >&5
  32096. printf %s "checking if getpeername can be linked... " >&6; }
  32097. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  32098. /* end confdefs.h. */
  32099. $curl_includes_winsock2
  32100. $curl_includes_bsdsocket
  32101. $curl_includes_sys_socket
  32102. int main (void)
  32103. {
  32104. if(0 != getpeername(0, (void *)0, (void *)0))
  32105. return 1;
  32106. ;
  32107. return 0;
  32108. }
  32109. _ACEOF
  32110. if ac_fn_c_try_link "$LINENO"
  32111. then :
  32112. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  32113. printf "%s\n" "yes" >&6; }
  32114. tst_links_getpeername="yes"
  32115. else $as_nop
  32116. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  32117. printf "%s\n" "no" >&6; }
  32118. tst_links_getpeername="no"
  32119. fi
  32120. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  32121. conftest$ac_exeext conftest.$ac_ext
  32122. #
  32123. if test "$tst_links_getpeername" = "yes"; then
  32124. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if getpeername is prototyped" >&5
  32125. printf %s "checking if getpeername is prototyped... " >&6; }
  32126. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  32127. /* end confdefs.h. */
  32128. $curl_includes_winsock2
  32129. $curl_includes_bsdsocket
  32130. $curl_includes_sys_socket
  32131. _ACEOF
  32132. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  32133. $EGREP "getpeername" >/dev/null 2>&1
  32134. then :
  32135. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  32136. printf "%s\n" "yes" >&6; }
  32137. tst_proto_getpeername="yes"
  32138. else $as_nop
  32139. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  32140. printf "%s\n" "no" >&6; }
  32141. tst_proto_getpeername="no"
  32142. fi
  32143. rm -rf conftest*
  32144. fi
  32145. #
  32146. if test "$tst_proto_getpeername" = "yes"; then
  32147. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if getpeername is compilable" >&5
  32148. printf %s "checking if getpeername is compilable... " >&6; }
  32149. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  32150. /* end confdefs.h. */
  32151. $curl_includes_winsock2
  32152. $curl_includes_bsdsocket
  32153. $curl_includes_sys_socket
  32154. int main (void)
  32155. {
  32156. if(0 != getpeername(0, (void *)0, (void *)0))
  32157. return 1;
  32158. ;
  32159. return 0;
  32160. }
  32161. _ACEOF
  32162. if ac_fn_c_try_compile "$LINENO"
  32163. then :
  32164. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  32165. printf "%s\n" "yes" >&6; }
  32166. tst_compi_getpeername="yes"
  32167. else $as_nop
  32168. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  32169. printf "%s\n" "no" >&6; }
  32170. tst_compi_getpeername="no"
  32171. fi
  32172. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  32173. fi
  32174. #
  32175. if test "$tst_compi_getpeername" = "yes"; then
  32176. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if getpeername usage allowed" >&5
  32177. printf %s "checking if getpeername usage allowed... " >&6; }
  32178. if test "x$curl_disallow_getpeername" != "xyes"; then
  32179. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  32180. printf "%s\n" "yes" >&6; }
  32181. tst_allow_getpeername="yes"
  32182. else
  32183. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  32184. printf "%s\n" "no" >&6; }
  32185. tst_allow_getpeername="no"
  32186. fi
  32187. fi
  32188. #
  32189. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if getpeername might be used" >&5
  32190. printf %s "checking if getpeername might be used... " >&6; }
  32191. if test "$tst_links_getpeername" = "yes" &&
  32192. test "$tst_proto_getpeername" = "yes" &&
  32193. test "$tst_compi_getpeername" = "yes" &&
  32194. test "$tst_allow_getpeername" = "yes"; then
  32195. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  32196. printf "%s\n" "yes" >&6; }
  32197. printf "%s\n" "#define HAVE_GETPEERNAME 1" >>confdefs.h
  32198. curl_cv_func_getpeername="yes"
  32199. else
  32200. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  32201. printf "%s\n" "no" >&6; }
  32202. curl_cv_func_getpeername="no"
  32203. fi
  32204. #
  32205. tst_links_getsockname="unknown"
  32206. tst_proto_getsockname="unknown"
  32207. tst_compi_getsockname="unknown"
  32208. tst_allow_getsockname="unknown"
  32209. #
  32210. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if getsockname can be linked" >&5
  32211. printf %s "checking if getsockname can be linked... " >&6; }
  32212. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  32213. /* end confdefs.h. */
  32214. $curl_includes_winsock2
  32215. $curl_includes_bsdsocket
  32216. $curl_includes_sys_socket
  32217. int main (void)
  32218. {
  32219. if(0 != getsockname(0, (void *)0, (void *)0))
  32220. return 1;
  32221. ;
  32222. return 0;
  32223. }
  32224. _ACEOF
  32225. if ac_fn_c_try_link "$LINENO"
  32226. then :
  32227. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  32228. printf "%s\n" "yes" >&6; }
  32229. tst_links_getsockname="yes"
  32230. else $as_nop
  32231. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  32232. printf "%s\n" "no" >&6; }
  32233. tst_links_getsockname="no"
  32234. fi
  32235. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  32236. conftest$ac_exeext conftest.$ac_ext
  32237. #
  32238. if test "$tst_links_getsockname" = "yes"; then
  32239. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if getsockname is prototyped" >&5
  32240. printf %s "checking if getsockname is prototyped... " >&6; }
  32241. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  32242. /* end confdefs.h. */
  32243. $curl_includes_winsock2
  32244. $curl_includes_bsdsocket
  32245. $curl_includes_sys_socket
  32246. _ACEOF
  32247. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  32248. $EGREP "getsockname" >/dev/null 2>&1
  32249. then :
  32250. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  32251. printf "%s\n" "yes" >&6; }
  32252. tst_proto_getsockname="yes"
  32253. else $as_nop
  32254. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  32255. printf "%s\n" "no" >&6; }
  32256. tst_proto_getsockname="no"
  32257. fi
  32258. rm -rf conftest*
  32259. fi
  32260. #
  32261. if test "$tst_proto_getsockname" = "yes"; then
  32262. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if getsockname is compilable" >&5
  32263. printf %s "checking if getsockname is compilable... " >&6; }
  32264. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  32265. /* end confdefs.h. */
  32266. $curl_includes_winsock2
  32267. $curl_includes_bsdsocket
  32268. $curl_includes_sys_socket
  32269. int main (void)
  32270. {
  32271. if(0 != getsockname(0, (void *)0, (void *)0))
  32272. return 1;
  32273. ;
  32274. return 0;
  32275. }
  32276. _ACEOF
  32277. if ac_fn_c_try_compile "$LINENO"
  32278. then :
  32279. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  32280. printf "%s\n" "yes" >&6; }
  32281. tst_compi_getsockname="yes"
  32282. else $as_nop
  32283. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  32284. printf "%s\n" "no" >&6; }
  32285. tst_compi_getsockname="no"
  32286. fi
  32287. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  32288. fi
  32289. #
  32290. if test "$tst_compi_getsockname" = "yes"; then
  32291. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if getsockname usage allowed" >&5
  32292. printf %s "checking if getsockname usage allowed... " >&6; }
  32293. if test "x$curl_disallow_getsockname" != "xyes"; then
  32294. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  32295. printf "%s\n" "yes" >&6; }
  32296. tst_allow_getsockname="yes"
  32297. else
  32298. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  32299. printf "%s\n" "no" >&6; }
  32300. tst_allow_getsockname="no"
  32301. fi
  32302. fi
  32303. #
  32304. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if getsockname might be used" >&5
  32305. printf %s "checking if getsockname might be used... " >&6; }
  32306. if test "$tst_links_getsockname" = "yes" &&
  32307. test "$tst_proto_getsockname" = "yes" &&
  32308. test "$tst_compi_getsockname" = "yes" &&
  32309. test "$tst_allow_getsockname" = "yes"; then
  32310. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  32311. printf "%s\n" "yes" >&6; }
  32312. printf "%s\n" "#define HAVE_GETSOCKNAME 1" >>confdefs.h
  32313. curl_cv_func_getsockname="yes"
  32314. else
  32315. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  32316. printf "%s\n" "no" >&6; }
  32317. curl_cv_func_getsockname="no"
  32318. fi
  32319. curl_includes_netif="\
  32320. /* includes start */
  32321. #ifdef HAVE_NET_IF_H
  32322. # include <net/if.h>
  32323. #endif
  32324. /* includes end */"
  32325. ac_fn_c_check_header_compile "$LINENO" "net/if.h" "ac_cv_header_net_if_h" "$curl_includes_netif
  32326. "
  32327. if test "x$ac_cv_header_net_if_h" = xyes
  32328. then :
  32329. printf "%s\n" "#define HAVE_NET_IF_H 1" >>confdefs.h
  32330. fi
  32331. #
  32332. tst_links_if_nametoindex="unknown"
  32333. tst_proto_if_nametoindex="unknown"
  32334. tst_compi_if_nametoindex="unknown"
  32335. tst_allow_if_nametoindex="unknown"
  32336. #
  32337. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if if_nametoindex can be linked" >&5
  32338. printf %s "checking if if_nametoindex can be linked... " >&6; }
  32339. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  32340. /* end confdefs.h. */
  32341. $curl_includes_winsock2
  32342. $curl_includes_bsdsocket
  32343. #include <net/if.h>
  32344. int main (void)
  32345. {
  32346. if(0 != if_nametoindex(""))
  32347. return 1;
  32348. ;
  32349. return 0;
  32350. }
  32351. _ACEOF
  32352. if ac_fn_c_try_link "$LINENO"
  32353. then :
  32354. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  32355. printf "%s\n" "yes" >&6; }
  32356. tst_links_if_nametoindex="yes"
  32357. else $as_nop
  32358. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  32359. printf "%s\n" "no" >&6; }
  32360. tst_links_if_nametoindex="no"
  32361. fi
  32362. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  32363. conftest$ac_exeext conftest.$ac_ext
  32364. #
  32365. if test "$tst_links_if_nametoindex" = "yes"; then
  32366. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if if_nametoindex is prototyped" >&5
  32367. printf %s "checking if if_nametoindex is prototyped... " >&6; }
  32368. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  32369. /* end confdefs.h. */
  32370. $curl_includes_winsock2
  32371. $curl_includes_netif
  32372. _ACEOF
  32373. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  32374. $EGREP "if_nametoindex" >/dev/null 2>&1
  32375. then :
  32376. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  32377. printf "%s\n" "yes" >&6; }
  32378. tst_proto_if_nametoindex="yes"
  32379. else $as_nop
  32380. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  32381. printf "%s\n" "no" >&6; }
  32382. tst_proto_if_nametoindex="no"
  32383. fi
  32384. rm -rf conftest*
  32385. fi
  32386. #
  32387. if test "$tst_proto_if_nametoindex" = "yes"; then
  32388. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if if_nametoindex is compilable" >&5
  32389. printf %s "checking if if_nametoindex is compilable... " >&6; }
  32390. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  32391. /* end confdefs.h. */
  32392. $curl_includes_winsock2
  32393. $curl_includes_netif
  32394. int main (void)
  32395. {
  32396. if(0 != if_nametoindex(""))
  32397. return 1;
  32398. ;
  32399. return 0;
  32400. }
  32401. _ACEOF
  32402. if ac_fn_c_try_compile "$LINENO"
  32403. then :
  32404. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  32405. printf "%s\n" "yes" >&6; }
  32406. tst_compi_if_nametoindex="yes"
  32407. else $as_nop
  32408. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  32409. printf "%s\n" "no" >&6; }
  32410. tst_compi_if_nametoindex="no"
  32411. fi
  32412. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  32413. fi
  32414. #
  32415. if test "$tst_compi_if_nametoindex" = "yes"; then
  32416. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if if_nametoindex usage allowed" >&5
  32417. printf %s "checking if if_nametoindex usage allowed... " >&6; }
  32418. if test "x$curl_disallow_if_nametoindex" != "xyes"; then
  32419. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  32420. printf "%s\n" "yes" >&6; }
  32421. tst_allow_if_nametoindex="yes"
  32422. else
  32423. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  32424. printf "%s\n" "no" >&6; }
  32425. tst_allow_if_nametoindex="no"
  32426. fi
  32427. fi
  32428. #
  32429. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if if_nametoindex might be used" >&5
  32430. printf %s "checking if if_nametoindex might be used... " >&6; }
  32431. if test "$tst_links_if_nametoindex" = "yes" &&
  32432. test "$tst_proto_if_nametoindex" = "yes" &&
  32433. test "$tst_compi_if_nametoindex" = "yes" &&
  32434. test "$tst_allow_if_nametoindex" = "yes"; then
  32435. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  32436. printf "%s\n" "yes" >&6; }
  32437. printf "%s\n" "#define HAVE_IF_NAMETOINDEX 1" >>confdefs.h
  32438. curl_cv_func_if_nametoindex="yes"
  32439. else
  32440. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  32441. printf "%s\n" "no" >&6; }
  32442. curl_cv_func_if_nametoindex="no"
  32443. fi
  32444. curl_includes_ifaddrs="\
  32445. /* includes start */
  32446. #ifdef HAVE_SYS_TYPES_H
  32447. # include <sys/types.h>
  32448. #endif
  32449. #ifdef HAVE_SYS_SOCKET_H
  32450. # include <sys/socket.h>
  32451. #endif
  32452. #ifdef HAVE_NETINET_IN_H
  32453. # include <netinet/in.h>
  32454. #endif
  32455. #ifdef HAVE_IFADDRS_H
  32456. # include <ifaddrs.h>
  32457. #endif
  32458. /* includes end */"
  32459. ac_fn_c_check_header_compile "$LINENO" "sys/types.h" "ac_cv_header_sys_types_h" "$curl_includes_ifaddrs
  32460. "
  32461. if test "x$ac_cv_header_sys_types_h" = xyes
  32462. then :
  32463. printf "%s\n" "#define HAVE_SYS_TYPES_H 1" >>confdefs.h
  32464. fi
  32465. ac_fn_c_check_header_compile "$LINENO" "sys/socket.h" "ac_cv_header_sys_socket_h" "$curl_includes_ifaddrs
  32466. "
  32467. if test "x$ac_cv_header_sys_socket_h" = xyes
  32468. then :
  32469. printf "%s\n" "#define HAVE_SYS_SOCKET_H 1" >>confdefs.h
  32470. fi
  32471. ac_fn_c_check_header_compile "$LINENO" "netinet/in.h" "ac_cv_header_netinet_in_h" "$curl_includes_ifaddrs
  32472. "
  32473. if test "x$ac_cv_header_netinet_in_h" = xyes
  32474. then :
  32475. printf "%s\n" "#define HAVE_NETINET_IN_H 1" >>confdefs.h
  32476. fi
  32477. ac_fn_c_check_header_compile "$LINENO" "ifaddrs.h" "ac_cv_header_ifaddrs_h" "$curl_includes_ifaddrs
  32478. "
  32479. if test "x$ac_cv_header_ifaddrs_h" = xyes
  32480. then :
  32481. printf "%s\n" "#define HAVE_IFADDRS_H 1" >>confdefs.h
  32482. fi
  32483. #
  32484. tst_links_getifaddrs="unknown"
  32485. tst_proto_getifaddrs="unknown"
  32486. tst_compi_getifaddrs="unknown"
  32487. tst_works_getifaddrs="unknown"
  32488. tst_allow_getifaddrs="unknown"
  32489. #
  32490. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if getifaddrs can be linked" >&5
  32491. printf %s "checking if getifaddrs can be linked... " >&6; }
  32492. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  32493. /* end confdefs.h. */
  32494. #define getifaddrs innocuous_getifaddrs
  32495. #ifdef __STDC__
  32496. # include <limits.h>
  32497. #else
  32498. # include <assert.h>
  32499. #endif
  32500. #undef getifaddrs
  32501. #ifdef __cplusplus
  32502. extern "C"
  32503. #endif
  32504. char getifaddrs ();
  32505. #if defined __stub_getifaddrs || defined __stub___getifaddrs
  32506. choke me
  32507. #endif
  32508. int main (void)
  32509. {
  32510. return getifaddrs ();
  32511. ;
  32512. return 0;
  32513. }
  32514. _ACEOF
  32515. if ac_fn_c_try_link "$LINENO"
  32516. then :
  32517. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  32518. printf "%s\n" "yes" >&6; }
  32519. tst_links_getifaddrs="yes"
  32520. else $as_nop
  32521. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  32522. printf "%s\n" "no" >&6; }
  32523. tst_links_getifaddrs="no"
  32524. fi
  32525. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  32526. conftest$ac_exeext conftest.$ac_ext
  32527. #
  32528. if test "$tst_links_getifaddrs" = "yes"; then
  32529. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if getifaddrs is prototyped" >&5
  32530. printf %s "checking if getifaddrs is prototyped... " >&6; }
  32531. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  32532. /* end confdefs.h. */
  32533. $curl_includes_ifaddrs
  32534. _ACEOF
  32535. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  32536. $EGREP "getifaddrs" >/dev/null 2>&1
  32537. then :
  32538. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  32539. printf "%s\n" "yes" >&6; }
  32540. tst_proto_getifaddrs="yes"
  32541. else $as_nop
  32542. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  32543. printf "%s\n" "no" >&6; }
  32544. tst_proto_getifaddrs="no"
  32545. fi
  32546. rm -rf conftest*
  32547. fi
  32548. #
  32549. if test "$tst_proto_getifaddrs" = "yes"; then
  32550. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if getifaddrs is compilable" >&5
  32551. printf %s "checking if getifaddrs is compilable... " >&6; }
  32552. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  32553. /* end confdefs.h. */
  32554. $curl_includes_ifaddrs
  32555. int main (void)
  32556. {
  32557. if(0 != getifaddrs(0))
  32558. return 1;
  32559. ;
  32560. return 0;
  32561. }
  32562. _ACEOF
  32563. if ac_fn_c_try_compile "$LINENO"
  32564. then :
  32565. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  32566. printf "%s\n" "yes" >&6; }
  32567. tst_compi_getifaddrs="yes"
  32568. else $as_nop
  32569. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  32570. printf "%s\n" "no" >&6; }
  32571. tst_compi_getifaddrs="no"
  32572. fi
  32573. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  32574. fi
  32575. #
  32576. if test "x$cross_compiling" != "xyes" &&
  32577. test "$tst_compi_getifaddrs" = "yes"; then
  32578. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if getifaddrs seems to work" >&5
  32579. printf %s "checking if getifaddrs seems to work... " >&6; }
  32580. old=$LD_LIBRARY_PATH
  32581. LD_LIBRARY_PATH=$CURL_LIBRARY_PATH:$old
  32582. export LD_LIBRARY_PATH
  32583. if test "$cross_compiling" = yes
  32584. then :
  32585. { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  32586. printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
  32587. as_fn_error $? "cannot run test program while cross compiling
  32588. See \`config.log' for more details" "$LINENO" 5; }
  32589. else $as_nop
  32590. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  32591. /* end confdefs.h. */
  32592. $curl_includes_stdlib
  32593. $curl_includes_ifaddrs
  32594. int main (void)
  32595. {
  32596. struct ifaddrs *ifa = 0;
  32597. int error;
  32598. error = getifaddrs(&ifa);
  32599. if(error || !ifa)
  32600. exit(1); /* fail */
  32601. else
  32602. exit(0);
  32603. ;
  32604. return 0;
  32605. }
  32606. _ACEOF
  32607. if ac_fn_c_try_run "$LINENO"
  32608. then :
  32609. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  32610. printf "%s\n" "yes" >&6; }
  32611. tst_works_getifaddrs="yes"
  32612. else $as_nop
  32613. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  32614. printf "%s\n" "no" >&6; }
  32615. tst_works_getifaddrs="no"
  32616. fi
  32617. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  32618. conftest.$ac_objext conftest.beam conftest.$ac_ext
  32619. fi
  32620. LD_LIBRARY_PATH=$old # restore
  32621. fi
  32622. #
  32623. if test "$tst_compi_getifaddrs" = "yes" &&
  32624. test "$tst_works_getifaddrs" != "no"; then
  32625. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if getifaddrs usage allowed" >&5
  32626. printf %s "checking if getifaddrs usage allowed... " >&6; }
  32627. if test "x$curl_disallow_getifaddrs" != "xyes"; then
  32628. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  32629. printf "%s\n" "yes" >&6; }
  32630. tst_allow_getifaddrs="yes"
  32631. else
  32632. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  32633. printf "%s\n" "no" >&6; }
  32634. tst_allow_getifaddrs="no"
  32635. fi
  32636. fi
  32637. #
  32638. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if getifaddrs might be used" >&5
  32639. printf %s "checking if getifaddrs might be used... " >&6; }
  32640. if test "$tst_links_getifaddrs" = "yes" &&
  32641. test "$tst_proto_getifaddrs" = "yes" &&
  32642. test "$tst_compi_getifaddrs" = "yes" &&
  32643. test "$tst_allow_getifaddrs" = "yes" &&
  32644. test "$tst_works_getifaddrs" != "no"; then
  32645. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  32646. printf "%s\n" "yes" >&6; }
  32647. printf "%s\n" "#define HAVE_GETIFADDRS 1" >>confdefs.h
  32648. curl_cv_func_getifaddrs="yes"
  32649. else
  32650. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  32651. printf "%s\n" "no" >&6; }
  32652. curl_cv_func_getifaddrs="no"
  32653. fi
  32654. curl_includes_time="\
  32655. /* includes start */
  32656. #ifdef HAVE_SYS_TYPES_H
  32657. # include <sys/types.h>
  32658. #endif
  32659. #ifdef HAVE_SYS_TIME_H
  32660. # include <sys/time.h>
  32661. #endif
  32662. #include <time.h>
  32663. /* includes end */"
  32664. ac_fn_c_check_header_compile "$LINENO" "sys/types.h" "ac_cv_header_sys_types_h" "$curl_includes_time
  32665. "
  32666. if test "x$ac_cv_header_sys_types_h" = xyes
  32667. then :
  32668. printf "%s\n" "#define HAVE_SYS_TYPES_H 1" >>confdefs.h
  32669. fi
  32670. ac_fn_c_check_header_compile "$LINENO" "sys/time.h" "ac_cv_header_sys_time_h" "$curl_includes_time
  32671. "
  32672. if test "x$ac_cv_header_sys_time_h" = xyes
  32673. then :
  32674. printf "%s\n" "#define HAVE_SYS_TIME_H 1" >>confdefs.h
  32675. fi
  32676. #
  32677. tst_links_gmtime_r="unknown"
  32678. tst_proto_gmtime_r="unknown"
  32679. tst_compi_gmtime_r="unknown"
  32680. tst_works_gmtime_r="unknown"
  32681. tst_allow_gmtime_r="unknown"
  32682. #
  32683. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if gmtime_r can be linked" >&5
  32684. printf %s "checking if gmtime_r can be linked... " >&6; }
  32685. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  32686. /* end confdefs.h. */
  32687. #define gmtime_r innocuous_gmtime_r
  32688. #ifdef __STDC__
  32689. # include <limits.h>
  32690. #else
  32691. # include <assert.h>
  32692. #endif
  32693. #undef gmtime_r
  32694. #ifdef __cplusplus
  32695. extern "C"
  32696. #endif
  32697. char gmtime_r ();
  32698. #if defined __stub_gmtime_r || defined __stub___gmtime_r
  32699. choke me
  32700. #endif
  32701. int main (void)
  32702. {
  32703. return gmtime_r ();
  32704. ;
  32705. return 0;
  32706. }
  32707. _ACEOF
  32708. if ac_fn_c_try_link "$LINENO"
  32709. then :
  32710. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  32711. printf "%s\n" "yes" >&6; }
  32712. tst_links_gmtime_r="yes"
  32713. else $as_nop
  32714. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  32715. printf "%s\n" "no" >&6; }
  32716. tst_links_gmtime_r="no"
  32717. fi
  32718. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  32719. conftest$ac_exeext conftest.$ac_ext
  32720. #
  32721. if test "$tst_links_gmtime_r" = "yes"; then
  32722. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if gmtime_r is prototyped" >&5
  32723. printf %s "checking if gmtime_r is prototyped... " >&6; }
  32724. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  32725. /* end confdefs.h. */
  32726. $curl_includes_time
  32727. _ACEOF
  32728. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  32729. $EGREP "gmtime_r" >/dev/null 2>&1
  32730. then :
  32731. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  32732. printf "%s\n" "yes" >&6; }
  32733. tst_proto_gmtime_r="yes"
  32734. else $as_nop
  32735. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  32736. printf "%s\n" "no" >&6; }
  32737. tst_proto_gmtime_r="no"
  32738. fi
  32739. rm -rf conftest*
  32740. fi
  32741. #
  32742. if test "$tst_proto_gmtime_r" = "yes"; then
  32743. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if gmtime_r is compilable" >&5
  32744. printf %s "checking if gmtime_r is compilable... " >&6; }
  32745. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  32746. /* end confdefs.h. */
  32747. $curl_includes_time
  32748. int main (void)
  32749. {
  32750. if(0 != gmtime_r(0, 0))
  32751. return 1;
  32752. ;
  32753. return 0;
  32754. }
  32755. _ACEOF
  32756. if ac_fn_c_try_compile "$LINENO"
  32757. then :
  32758. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  32759. printf "%s\n" "yes" >&6; }
  32760. tst_compi_gmtime_r="yes"
  32761. else $as_nop
  32762. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  32763. printf "%s\n" "no" >&6; }
  32764. tst_compi_gmtime_r="no"
  32765. fi
  32766. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  32767. fi
  32768. #
  32769. if test "x$cross_compiling" != "xyes" &&
  32770. test "$tst_compi_gmtime_r" = "yes"; then
  32771. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if gmtime_r seems to work" >&5
  32772. printf %s "checking if gmtime_r seems to work... " >&6; }
  32773. old=$LD_LIBRARY_PATH
  32774. LD_LIBRARY_PATH=$CURL_LIBRARY_PATH:$old
  32775. export LD_LIBRARY_PATH
  32776. if test "$cross_compiling" = yes
  32777. then :
  32778. { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  32779. printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
  32780. as_fn_error $? "cannot run test program while cross compiling
  32781. See \`config.log' for more details" "$LINENO" 5; }
  32782. else $as_nop
  32783. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  32784. /* end confdefs.h. */
  32785. $curl_includes_stdlib
  32786. $curl_includes_time
  32787. int main (void)
  32788. {
  32789. time_t local = 1170352587;
  32790. struct tm *gmt = 0;
  32791. struct tm result;
  32792. gmt = gmtime_r(&local, &result);
  32793. if(gmt)
  32794. exit(0);
  32795. else
  32796. exit(1);
  32797. ;
  32798. return 0;
  32799. }
  32800. _ACEOF
  32801. if ac_fn_c_try_run "$LINENO"
  32802. then :
  32803. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  32804. printf "%s\n" "yes" >&6; }
  32805. tst_works_gmtime_r="yes"
  32806. else $as_nop
  32807. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  32808. printf "%s\n" "no" >&6; }
  32809. tst_works_gmtime_r="no"
  32810. fi
  32811. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  32812. conftest.$ac_objext conftest.beam conftest.$ac_ext
  32813. fi
  32814. LD_LIBRARY_PATH=$old # restore
  32815. fi
  32816. #
  32817. if test "$tst_compi_gmtime_r" = "yes" &&
  32818. test "$tst_works_gmtime_r" != "no"; then
  32819. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if gmtime_r usage allowed" >&5
  32820. printf %s "checking if gmtime_r usage allowed... " >&6; }
  32821. if test "x$curl_disallow_gmtime_r" != "xyes"; then
  32822. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  32823. printf "%s\n" "yes" >&6; }
  32824. tst_allow_gmtime_r="yes"
  32825. else
  32826. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  32827. printf "%s\n" "no" >&6; }
  32828. tst_allow_gmtime_r="no"
  32829. fi
  32830. fi
  32831. #
  32832. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if gmtime_r might be used" >&5
  32833. printf %s "checking if gmtime_r might be used... " >&6; }
  32834. if test "$tst_links_gmtime_r" = "yes" &&
  32835. test "$tst_proto_gmtime_r" = "yes" &&
  32836. test "$tst_compi_gmtime_r" = "yes" &&
  32837. test "$tst_allow_gmtime_r" = "yes" &&
  32838. test "$tst_works_gmtime_r" != "no"; then
  32839. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  32840. printf "%s\n" "yes" >&6; }
  32841. printf "%s\n" "#define HAVE_GMTIME_R 1" >>confdefs.h
  32842. curl_cv_func_gmtime_r="yes"
  32843. else
  32844. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  32845. printf "%s\n" "no" >&6; }
  32846. curl_cv_func_gmtime_r="no"
  32847. fi
  32848. curl_includes_arpa_inet="\
  32849. /* includes start */
  32850. #ifdef HAVE_SYS_TYPES_H
  32851. # include <sys/types.h>
  32852. #endif
  32853. #ifdef HAVE_SYS_SOCKET_H
  32854. # include <sys/socket.h>
  32855. #endif
  32856. #ifdef HAVE_NETINET_IN_H
  32857. # include <netinet/in.h>
  32858. #endif
  32859. #ifdef HAVE_ARPA_INET_H
  32860. # include <arpa/inet.h>
  32861. #endif
  32862. #ifdef HAVE_WINSOCK2_H
  32863. #include <winsock2.h>
  32864. #include <ws2tcpip.h>
  32865. #endif
  32866. /* includes end */"
  32867. ac_fn_c_check_header_compile "$LINENO" "sys/types.h" "ac_cv_header_sys_types_h" "$curl_includes_arpa_inet
  32868. "
  32869. if test "x$ac_cv_header_sys_types_h" = xyes
  32870. then :
  32871. printf "%s\n" "#define HAVE_SYS_TYPES_H 1" >>confdefs.h
  32872. fi
  32873. ac_fn_c_check_header_compile "$LINENO" "sys/socket.h" "ac_cv_header_sys_socket_h" "$curl_includes_arpa_inet
  32874. "
  32875. if test "x$ac_cv_header_sys_socket_h" = xyes
  32876. then :
  32877. printf "%s\n" "#define HAVE_SYS_SOCKET_H 1" >>confdefs.h
  32878. fi
  32879. ac_fn_c_check_header_compile "$LINENO" "netinet/in.h" "ac_cv_header_netinet_in_h" "$curl_includes_arpa_inet
  32880. "
  32881. if test "x$ac_cv_header_netinet_in_h" = xyes
  32882. then :
  32883. printf "%s\n" "#define HAVE_NETINET_IN_H 1" >>confdefs.h
  32884. fi
  32885. ac_fn_c_check_header_compile "$LINENO" "arpa/inet.h" "ac_cv_header_arpa_inet_h" "$curl_includes_arpa_inet
  32886. "
  32887. if test "x$ac_cv_header_arpa_inet_h" = xyes
  32888. then :
  32889. printf "%s\n" "#define HAVE_ARPA_INET_H 1" >>confdefs.h
  32890. fi
  32891. #
  32892. tst_links_inet_ntop="unknown"
  32893. tst_proto_inet_ntop="unknown"
  32894. tst_compi_inet_ntop="unknown"
  32895. tst_works_inet_ntop="unknown"
  32896. tst_allow_inet_ntop="unknown"
  32897. #
  32898. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if inet_ntop can be linked" >&5
  32899. printf %s "checking if inet_ntop can be linked... " >&6; }
  32900. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  32901. /* end confdefs.h. */
  32902. #define inet_ntop innocuous_inet_ntop
  32903. #ifdef __STDC__
  32904. # include <limits.h>
  32905. #else
  32906. # include <assert.h>
  32907. #endif
  32908. #undef inet_ntop
  32909. #ifdef __cplusplus
  32910. extern "C"
  32911. #endif
  32912. char inet_ntop ();
  32913. #if defined __stub_inet_ntop || defined __stub___inet_ntop
  32914. choke me
  32915. #endif
  32916. int main (void)
  32917. {
  32918. return inet_ntop ();
  32919. ;
  32920. return 0;
  32921. }
  32922. _ACEOF
  32923. if ac_fn_c_try_link "$LINENO"
  32924. then :
  32925. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  32926. printf "%s\n" "yes" >&6; }
  32927. tst_links_inet_ntop="yes"
  32928. else $as_nop
  32929. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  32930. printf "%s\n" "no" >&6; }
  32931. tst_links_inet_ntop="no"
  32932. fi
  32933. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  32934. conftest$ac_exeext conftest.$ac_ext
  32935. #
  32936. if test "$tst_links_inet_ntop" = "yes"; then
  32937. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if inet_ntop is prototyped" >&5
  32938. printf %s "checking if inet_ntop is prototyped... " >&6; }
  32939. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  32940. /* end confdefs.h. */
  32941. $curl_includes_arpa_inet
  32942. _ACEOF
  32943. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  32944. $EGREP "inet_ntop" >/dev/null 2>&1
  32945. then :
  32946. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  32947. printf "%s\n" "yes" >&6; }
  32948. tst_proto_inet_ntop="yes"
  32949. else $as_nop
  32950. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  32951. printf "%s\n" "no" >&6; }
  32952. tst_proto_inet_ntop="no"
  32953. fi
  32954. rm -rf conftest*
  32955. fi
  32956. #
  32957. if test "$tst_proto_inet_ntop" = "yes"; then
  32958. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if inet_ntop is compilable" >&5
  32959. printf %s "checking if inet_ntop is compilable... " >&6; }
  32960. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  32961. /* end confdefs.h. */
  32962. $curl_includes_arpa_inet
  32963. int main (void)
  32964. {
  32965. if(0 != inet_ntop(0, 0, 0, 0))
  32966. return 1;
  32967. ;
  32968. return 0;
  32969. }
  32970. _ACEOF
  32971. if ac_fn_c_try_compile "$LINENO"
  32972. then :
  32973. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  32974. printf "%s\n" "yes" >&6; }
  32975. tst_compi_inet_ntop="yes"
  32976. else $as_nop
  32977. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  32978. printf "%s\n" "no" >&6; }
  32979. tst_compi_inet_ntop="no"
  32980. fi
  32981. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  32982. fi
  32983. #
  32984. if test "x$cross_compiling" != "xyes" &&
  32985. test "$tst_compi_inet_ntop" = "yes"; then
  32986. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if inet_ntop seems to work" >&5
  32987. printf %s "checking if inet_ntop seems to work... " >&6; }
  32988. old=$LD_LIBRARY_PATH
  32989. LD_LIBRARY_PATH=$CURL_LIBRARY_PATH:$old
  32990. export LD_LIBRARY_PATH
  32991. if test "$cross_compiling" = yes
  32992. then :
  32993. { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  32994. printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
  32995. as_fn_error $? "cannot run test program while cross compiling
  32996. See \`config.log' for more details" "$LINENO" 5; }
  32997. else $as_nop
  32998. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  32999. /* end confdefs.h. */
  33000. $curl_includes_stdlib
  33001. $curl_includes_arpa_inet
  33002. $curl_includes_string
  33003. int main (void)
  33004. {
  33005. char ipv6res[sizeof("ffff:ffff:ffff:ffff:ffff:ffff:255.255.255.255")];
  33006. char ipv4res[sizeof "255.255.255.255"];
  33007. unsigned char ipv6a[26];
  33008. unsigned char ipv4a[5];
  33009. char *ipv6ptr = 0;
  33010. char *ipv4ptr = 0;
  33011. /* - */
  33012. ipv4res[0] = '\0';
  33013. ipv4a[0] = 0xc0;
  33014. ipv4a[1] = 0xa8;
  33015. ipv4a[2] = 0x64;
  33016. ipv4a[3] = 0x01;
  33017. ipv4a[4] = 0x01;
  33018. /* - */
  33019. ipv4ptr = inet_ntop(AF_INET, ipv4a, ipv4res, sizeof(ipv4res));
  33020. if(!ipv4ptr)
  33021. exit(1); /* fail */
  33022. if(ipv4ptr != ipv4res)
  33023. exit(1); /* fail */
  33024. if(!ipv4ptr[0])
  33025. exit(1); /* fail */
  33026. if(memcmp(ipv4res, "192.168.100.1", 13) != 0)
  33027. exit(1); /* fail */
  33028. /* - */
  33029. ipv6res[0] = '\0';
  33030. memset(ipv6a, 0, sizeof(ipv6a));
  33031. ipv6a[0] = 0xfe;
  33032. ipv6a[1] = 0x80;
  33033. ipv6a[8] = 0x02;
  33034. ipv6a[9] = 0x14;
  33035. ipv6a[10] = 0x4f;
  33036. ipv6a[11] = 0xff;
  33037. ipv6a[12] = 0xfe;
  33038. ipv6a[13] = 0x0b;
  33039. ipv6a[14] = 0x76;
  33040. ipv6a[15] = 0xc8;
  33041. ipv6a[25] = 0x01;
  33042. /* - */
  33043. ipv6ptr = inet_ntop(AF_INET6, ipv6a, ipv6res, sizeof(ipv6res));
  33044. if(!ipv6ptr)
  33045. exit(1); /* fail */
  33046. if(ipv6ptr != ipv6res)
  33047. exit(1); /* fail */
  33048. if(!ipv6ptr[0])
  33049. exit(1); /* fail */
  33050. if(memcmp(ipv6res, "fe80::214:4fff:fe0b:76c8", 24) != 0)
  33051. exit(1); /* fail */
  33052. /* - */
  33053. exit(0);
  33054. ;
  33055. return 0;
  33056. }
  33057. _ACEOF
  33058. if ac_fn_c_try_run "$LINENO"
  33059. then :
  33060. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  33061. printf "%s\n" "yes" >&6; }
  33062. tst_works_inet_ntop="yes"
  33063. else $as_nop
  33064. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  33065. printf "%s\n" "no" >&6; }
  33066. tst_works_inet_ntop="no"
  33067. fi
  33068. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  33069. conftest.$ac_objext conftest.beam conftest.$ac_ext
  33070. fi
  33071. LD_LIBRARY_PATH=$old # restore
  33072. fi
  33073. #
  33074. if test "$tst_compi_inet_ntop" = "yes" &&
  33075. test "$tst_works_inet_ntop" != "no"; then
  33076. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if inet_ntop usage allowed" >&5
  33077. printf %s "checking if inet_ntop usage allowed... " >&6; }
  33078. if test "x$curl_disallow_inet_ntop" != "xyes"; then
  33079. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  33080. printf "%s\n" "yes" >&6; }
  33081. tst_allow_inet_ntop="yes"
  33082. else
  33083. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  33084. printf "%s\n" "no" >&6; }
  33085. tst_allow_inet_ntop="no"
  33086. fi
  33087. fi
  33088. #
  33089. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if inet_ntop might be used" >&5
  33090. printf %s "checking if inet_ntop might be used... " >&6; }
  33091. if test "$tst_links_inet_ntop" = "yes" &&
  33092. test "$tst_proto_inet_ntop" = "yes" &&
  33093. test "$tst_compi_inet_ntop" = "yes" &&
  33094. test "$tst_allow_inet_ntop" = "yes" &&
  33095. test "$tst_works_inet_ntop" != "no"; then
  33096. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  33097. printf "%s\n" "yes" >&6; }
  33098. printf "%s\n" "#define HAVE_INET_NTOP 1" >>confdefs.h
  33099. curl_cv_func_inet_ntop="yes"
  33100. else
  33101. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  33102. printf "%s\n" "no" >&6; }
  33103. curl_cv_func_inet_ntop="no"
  33104. fi
  33105. #
  33106. tst_links_inet_pton="unknown"
  33107. tst_proto_inet_pton="unknown"
  33108. tst_compi_inet_pton="unknown"
  33109. tst_works_inet_pton="unknown"
  33110. tst_allow_inet_pton="unknown"
  33111. #
  33112. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if inet_pton can be linked" >&5
  33113. printf %s "checking if inet_pton can be linked... " >&6; }
  33114. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  33115. /* end confdefs.h. */
  33116. #define inet_pton innocuous_inet_pton
  33117. #ifdef __STDC__
  33118. # include <limits.h>
  33119. #else
  33120. # include <assert.h>
  33121. #endif
  33122. #undef inet_pton
  33123. #ifdef __cplusplus
  33124. extern "C"
  33125. #endif
  33126. char inet_pton ();
  33127. #if defined __stub_inet_pton || defined __stub___inet_pton
  33128. choke me
  33129. #endif
  33130. int main (void)
  33131. {
  33132. return inet_pton ();
  33133. ;
  33134. return 0;
  33135. }
  33136. _ACEOF
  33137. if ac_fn_c_try_link "$LINENO"
  33138. then :
  33139. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  33140. printf "%s\n" "yes" >&6; }
  33141. tst_links_inet_pton="yes"
  33142. else $as_nop
  33143. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  33144. printf "%s\n" "no" >&6; }
  33145. tst_links_inet_pton="no"
  33146. fi
  33147. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  33148. conftest$ac_exeext conftest.$ac_ext
  33149. #
  33150. if test "$tst_links_inet_pton" = "yes"; then
  33151. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if inet_pton is prototyped" >&5
  33152. printf %s "checking if inet_pton is prototyped... " >&6; }
  33153. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  33154. /* end confdefs.h. */
  33155. $curl_includes_arpa_inet
  33156. _ACEOF
  33157. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  33158. $EGREP "inet_pton" >/dev/null 2>&1
  33159. then :
  33160. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  33161. printf "%s\n" "yes" >&6; }
  33162. tst_proto_inet_pton="yes"
  33163. else $as_nop
  33164. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  33165. printf "%s\n" "no" >&6; }
  33166. tst_proto_inet_pton="no"
  33167. fi
  33168. rm -rf conftest*
  33169. fi
  33170. #
  33171. if test "$tst_proto_inet_pton" = "yes"; then
  33172. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if inet_pton is compilable" >&5
  33173. printf %s "checking if inet_pton is compilable... " >&6; }
  33174. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  33175. /* end confdefs.h. */
  33176. $curl_includes_arpa_inet
  33177. int main (void)
  33178. {
  33179. if(0 != inet_pton(0, 0, 0))
  33180. return 1;
  33181. ;
  33182. return 0;
  33183. }
  33184. _ACEOF
  33185. if ac_fn_c_try_compile "$LINENO"
  33186. then :
  33187. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  33188. printf "%s\n" "yes" >&6; }
  33189. tst_compi_inet_pton="yes"
  33190. else $as_nop
  33191. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  33192. printf "%s\n" "no" >&6; }
  33193. tst_compi_inet_pton="no"
  33194. fi
  33195. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  33196. fi
  33197. #
  33198. if test "x$cross_compiling" != "xyes" &&
  33199. test "$tst_compi_inet_pton" = "yes"; then
  33200. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if inet_pton seems to work" >&5
  33201. printf %s "checking if inet_pton seems to work... " >&6; }
  33202. old=$LD_LIBRARY_PATH
  33203. LD_LIBRARY_PATH=$CURL_LIBRARY_PATH:$old
  33204. export LD_LIBRARY_PATH
  33205. if test "$cross_compiling" = yes
  33206. then :
  33207. { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  33208. printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
  33209. as_fn_error $? "cannot run test program while cross compiling
  33210. See \`config.log' for more details" "$LINENO" 5; }
  33211. else $as_nop
  33212. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  33213. /* end confdefs.h. */
  33214. $curl_includes_stdlib
  33215. $curl_includes_arpa_inet
  33216. $curl_includes_string
  33217. int main (void)
  33218. {
  33219. unsigned char ipv6a[16+1];
  33220. unsigned char ipv4a[4+1];
  33221. const char *ipv6src = "fe80::214:4fff:fe0b:76c8";
  33222. const char *ipv4src = "192.168.100.1";
  33223. /* - */
  33224. memset(ipv4a, 1, sizeof(ipv4a));
  33225. if(1 != inet_pton(AF_INET, ipv4src, ipv4a))
  33226. exit(1); /* fail */
  33227. /* - */
  33228. if( (ipv4a[0] != 0xc0) ||
  33229. (ipv4a[1] != 0xa8) ||
  33230. (ipv4a[2] != 0x64) ||
  33231. (ipv4a[3] != 0x01) ||
  33232. (ipv4a[4] != 0x01) )
  33233. exit(1); /* fail */
  33234. /* - */
  33235. memset(ipv6a, 1, sizeof(ipv6a));
  33236. if(1 != inet_pton(AF_INET6, ipv6src, ipv6a))
  33237. exit(1); /* fail */
  33238. /* - */
  33239. if( (ipv6a[0] != 0xfe) ||
  33240. (ipv6a[1] != 0x80) ||
  33241. (ipv6a[8] != 0x02) ||
  33242. (ipv6a[9] != 0x14) ||
  33243. (ipv6a[10] != 0x4f) ||
  33244. (ipv6a[11] != 0xff) ||
  33245. (ipv6a[12] != 0xfe) ||
  33246. (ipv6a[13] != 0x0b) ||
  33247. (ipv6a[14] != 0x76) ||
  33248. (ipv6a[15] != 0xc8) ||
  33249. (ipv6a[16] != 0x01) )
  33250. exit(1); /* fail */
  33251. /* - */
  33252. if( (ipv6a[2] != 0x0) ||
  33253. (ipv6a[3] != 0x0) ||
  33254. (ipv6a[4] != 0x0) ||
  33255. (ipv6a[5] != 0x0) ||
  33256. (ipv6a[6] != 0x0) ||
  33257. (ipv6a[7] != 0x0) )
  33258. exit(1); /* fail */
  33259. /* - */
  33260. exit(0);
  33261. ;
  33262. return 0;
  33263. }
  33264. _ACEOF
  33265. if ac_fn_c_try_run "$LINENO"
  33266. then :
  33267. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  33268. printf "%s\n" "yes" >&6; }
  33269. tst_works_inet_pton="yes"
  33270. else $as_nop
  33271. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  33272. printf "%s\n" "no" >&6; }
  33273. tst_works_inet_pton="no"
  33274. fi
  33275. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  33276. conftest.$ac_objext conftest.beam conftest.$ac_ext
  33277. fi
  33278. LD_LIBRARY_PATH=$old # restore
  33279. fi
  33280. #
  33281. if test "$tst_compi_inet_pton" = "yes" &&
  33282. test "$tst_works_inet_pton" != "no"; then
  33283. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if inet_pton usage allowed" >&5
  33284. printf %s "checking if inet_pton usage allowed... " >&6; }
  33285. if test "x$curl_disallow_inet_pton" != "xyes"; then
  33286. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  33287. printf "%s\n" "yes" >&6; }
  33288. tst_allow_inet_pton="yes"
  33289. else
  33290. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  33291. printf "%s\n" "no" >&6; }
  33292. tst_allow_inet_pton="no"
  33293. fi
  33294. fi
  33295. #
  33296. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if inet_pton might be used" >&5
  33297. printf %s "checking if inet_pton might be used... " >&6; }
  33298. if test "$tst_links_inet_pton" = "yes" &&
  33299. test "$tst_proto_inet_pton" = "yes" &&
  33300. test "$tst_compi_inet_pton" = "yes" &&
  33301. test "$tst_allow_inet_pton" = "yes" &&
  33302. test "$tst_works_inet_pton" != "no"; then
  33303. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  33304. printf "%s\n" "yes" >&6; }
  33305. printf "%s\n" "#define HAVE_INET_PTON 1" >>confdefs.h
  33306. curl_cv_func_inet_pton="yes"
  33307. else
  33308. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  33309. printf "%s\n" "no" >&6; }
  33310. curl_cv_func_inet_pton="no"
  33311. fi
  33312. curl_includes_stropts="\
  33313. /* includes start */
  33314. #ifdef HAVE_SYS_TYPES_H
  33315. # include <sys/types.h>
  33316. #endif
  33317. #ifdef HAVE_UNISTD_H
  33318. # include <unistd.h>
  33319. #endif
  33320. #ifdef HAVE_SYS_SOCKET_H
  33321. # include <sys/socket.h>
  33322. #endif
  33323. #ifdef HAVE_SYS_IOCTL_H
  33324. # include <sys/ioctl.h>
  33325. #endif
  33326. #ifdef HAVE_STROPTS_H
  33327. # include <stropts.h>
  33328. #endif
  33329. /* includes end */"
  33330. ac_fn_c_check_header_compile "$LINENO" "sys/types.h" "ac_cv_header_sys_types_h" "$curl_includes_stropts
  33331. "
  33332. if test "x$ac_cv_header_sys_types_h" = xyes
  33333. then :
  33334. printf "%s\n" "#define HAVE_SYS_TYPES_H 1" >>confdefs.h
  33335. fi
  33336. ac_fn_c_check_header_compile "$LINENO" "unistd.h" "ac_cv_header_unistd_h" "$curl_includes_stropts
  33337. "
  33338. if test "x$ac_cv_header_unistd_h" = xyes
  33339. then :
  33340. printf "%s\n" "#define HAVE_UNISTD_H 1" >>confdefs.h
  33341. fi
  33342. ac_fn_c_check_header_compile "$LINENO" "sys/socket.h" "ac_cv_header_sys_socket_h" "$curl_includes_stropts
  33343. "
  33344. if test "x$ac_cv_header_sys_socket_h" = xyes
  33345. then :
  33346. printf "%s\n" "#define HAVE_SYS_SOCKET_H 1" >>confdefs.h
  33347. fi
  33348. ac_fn_c_check_header_compile "$LINENO" "sys/ioctl.h" "ac_cv_header_sys_ioctl_h" "$curl_includes_stropts
  33349. "
  33350. if test "x$ac_cv_header_sys_ioctl_h" = xyes
  33351. then :
  33352. printf "%s\n" "#define HAVE_SYS_IOCTL_H 1" >>confdefs.h
  33353. fi
  33354. ac_fn_c_check_header_compile "$LINENO" "stropts.h" "ac_cv_header_stropts_h" "$curl_includes_stropts
  33355. "
  33356. if test "x$ac_cv_header_stropts_h" = xyes
  33357. then :
  33358. printf "%s\n" "#define HAVE_STROPTS_H 1" >>confdefs.h
  33359. fi
  33360. #
  33361. tst_links_ioctl="unknown"
  33362. tst_proto_ioctl="unknown"
  33363. tst_compi_ioctl="unknown"
  33364. tst_allow_ioctl="unknown"
  33365. #
  33366. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if ioctl can be linked" >&5
  33367. printf %s "checking if ioctl can be linked... " >&6; }
  33368. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  33369. /* end confdefs.h. */
  33370. #define ioctl innocuous_ioctl
  33371. #ifdef __STDC__
  33372. # include <limits.h>
  33373. #else
  33374. # include <assert.h>
  33375. #endif
  33376. #undef ioctl
  33377. #ifdef __cplusplus
  33378. extern "C"
  33379. #endif
  33380. char ioctl ();
  33381. #if defined __stub_ioctl || defined __stub___ioctl
  33382. choke me
  33383. #endif
  33384. int main (void)
  33385. {
  33386. return ioctl ();
  33387. ;
  33388. return 0;
  33389. }
  33390. _ACEOF
  33391. if ac_fn_c_try_link "$LINENO"
  33392. then :
  33393. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  33394. printf "%s\n" "yes" >&6; }
  33395. tst_links_ioctl="yes"
  33396. else $as_nop
  33397. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  33398. printf "%s\n" "no" >&6; }
  33399. tst_links_ioctl="no"
  33400. fi
  33401. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  33402. conftest$ac_exeext conftest.$ac_ext
  33403. #
  33404. if test "$tst_links_ioctl" = "yes"; then
  33405. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if ioctl is prototyped" >&5
  33406. printf %s "checking if ioctl is prototyped... " >&6; }
  33407. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  33408. /* end confdefs.h. */
  33409. $curl_includes_stropts
  33410. _ACEOF
  33411. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  33412. $EGREP "ioctl" >/dev/null 2>&1
  33413. then :
  33414. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  33415. printf "%s\n" "yes" >&6; }
  33416. tst_proto_ioctl="yes"
  33417. else $as_nop
  33418. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  33419. printf "%s\n" "no" >&6; }
  33420. tst_proto_ioctl="no"
  33421. fi
  33422. rm -rf conftest*
  33423. fi
  33424. #
  33425. if test "$tst_proto_ioctl" = "yes"; then
  33426. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if ioctl is compilable" >&5
  33427. printf %s "checking if ioctl is compilable... " >&6; }
  33428. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  33429. /* end confdefs.h. */
  33430. $curl_includes_stropts
  33431. int main (void)
  33432. {
  33433. if(0 != ioctl(0, 0, 0))
  33434. return 1;
  33435. ;
  33436. return 0;
  33437. }
  33438. _ACEOF
  33439. if ac_fn_c_try_compile "$LINENO"
  33440. then :
  33441. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  33442. printf "%s\n" "yes" >&6; }
  33443. tst_compi_ioctl="yes"
  33444. else $as_nop
  33445. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  33446. printf "%s\n" "no" >&6; }
  33447. tst_compi_ioctl="no"
  33448. fi
  33449. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  33450. fi
  33451. #
  33452. if test "$tst_compi_ioctl" = "yes"; then
  33453. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if ioctl usage allowed" >&5
  33454. printf %s "checking if ioctl usage allowed... " >&6; }
  33455. if test "x$curl_disallow_ioctl" != "xyes"; then
  33456. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  33457. printf "%s\n" "yes" >&6; }
  33458. tst_allow_ioctl="yes"
  33459. else
  33460. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  33461. printf "%s\n" "no" >&6; }
  33462. tst_allow_ioctl="no"
  33463. fi
  33464. fi
  33465. #
  33466. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if ioctl might be used" >&5
  33467. printf %s "checking if ioctl might be used... " >&6; }
  33468. if test "$tst_links_ioctl" = "yes" &&
  33469. test "$tst_proto_ioctl" = "yes" &&
  33470. test "$tst_compi_ioctl" = "yes" &&
  33471. test "$tst_allow_ioctl" = "yes"; then
  33472. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  33473. printf "%s\n" "yes" >&6; }
  33474. printf "%s\n" "#define HAVE_IOCTL 1" >>confdefs.h
  33475. curl_cv_func_ioctl="yes"
  33476. #
  33477. tst_compi_ioctl_fionbio="unknown"
  33478. tst_allow_ioctl_fionbio="unknown"
  33479. #
  33480. if test "$curl_cv_func_ioctl" = "yes"; then
  33481. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if ioctl FIONBIO is compilable" >&5
  33482. printf %s "checking if ioctl FIONBIO is compilable... " >&6; }
  33483. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  33484. /* end confdefs.h. */
  33485. $curl_includes_stropts
  33486. int main (void)
  33487. {
  33488. int flags = 0;
  33489. if(0 != ioctl(0, FIONBIO, &flags))
  33490. return 1;
  33491. ;
  33492. return 0;
  33493. }
  33494. _ACEOF
  33495. if ac_fn_c_try_compile "$LINENO"
  33496. then :
  33497. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  33498. printf "%s\n" "yes" >&6; }
  33499. tst_compi_ioctl_fionbio="yes"
  33500. else $as_nop
  33501. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  33502. printf "%s\n" "no" >&6; }
  33503. tst_compi_ioctl_fionbio="no"
  33504. fi
  33505. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  33506. fi
  33507. #
  33508. if test "$tst_compi_ioctl_fionbio" = "yes"; then
  33509. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if ioctl FIONBIO usage allowed" >&5
  33510. printf %s "checking if ioctl FIONBIO usage allowed... " >&6; }
  33511. if test "x$curl_disallow_ioctl_fionbio" != "xyes"; then
  33512. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  33513. printf "%s\n" "yes" >&6; }
  33514. tst_allow_ioctl_fionbio="yes"
  33515. else
  33516. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  33517. printf "%s\n" "no" >&6; }
  33518. tst_allow_ioctl_fionbio="no"
  33519. fi
  33520. fi
  33521. #
  33522. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if ioctl FIONBIO might be used" >&5
  33523. printf %s "checking if ioctl FIONBIO might be used... " >&6; }
  33524. if test "$tst_compi_ioctl_fionbio" = "yes" &&
  33525. test "$tst_allow_ioctl_fionbio" = "yes"; then
  33526. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  33527. printf "%s\n" "yes" >&6; }
  33528. printf "%s\n" "#define HAVE_IOCTL_FIONBIO 1" >>confdefs.h
  33529. curl_cv_func_ioctl_fionbio="yes"
  33530. else
  33531. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  33532. printf "%s\n" "no" >&6; }
  33533. curl_cv_func_ioctl_fionbio="no"
  33534. fi
  33535. #
  33536. tst_compi_ioctl_siocgifaddr="unknown"
  33537. tst_allow_ioctl_siocgifaddr="unknown"
  33538. #
  33539. if test "$curl_cv_func_ioctl" = "yes"; then
  33540. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if ioctl SIOCGIFADDR is compilable" >&5
  33541. printf %s "checking if ioctl SIOCGIFADDR is compilable... " >&6; }
  33542. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  33543. /* end confdefs.h. */
  33544. $curl_includes_stropts
  33545. #include <net/if.h>
  33546. int main (void)
  33547. {
  33548. struct ifreq ifr;
  33549. if(0 != ioctl(0, SIOCGIFADDR, &ifr))
  33550. return 1;
  33551. ;
  33552. return 0;
  33553. }
  33554. _ACEOF
  33555. if ac_fn_c_try_compile "$LINENO"
  33556. then :
  33557. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  33558. printf "%s\n" "yes" >&6; }
  33559. tst_compi_ioctl_siocgifaddr="yes"
  33560. else $as_nop
  33561. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  33562. printf "%s\n" "no" >&6; }
  33563. tst_compi_ioctl_siocgifaddr="no"
  33564. fi
  33565. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  33566. fi
  33567. #
  33568. if test "$tst_compi_ioctl_siocgifaddr" = "yes"; then
  33569. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if ioctl SIOCGIFADDR usage allowed" >&5
  33570. printf %s "checking if ioctl SIOCGIFADDR usage allowed... " >&6; }
  33571. if test "x$curl_disallow_ioctl_siocgifaddr" != "xyes"; then
  33572. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  33573. printf "%s\n" "yes" >&6; }
  33574. tst_allow_ioctl_siocgifaddr="yes"
  33575. else
  33576. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  33577. printf "%s\n" "no" >&6; }
  33578. tst_allow_ioctl_siocgifaddr="no"
  33579. fi
  33580. fi
  33581. #
  33582. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if ioctl SIOCGIFADDR might be used" >&5
  33583. printf %s "checking if ioctl SIOCGIFADDR might be used... " >&6; }
  33584. if test "$tst_compi_ioctl_siocgifaddr" = "yes" &&
  33585. test "$tst_allow_ioctl_siocgifaddr" = "yes"; then
  33586. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  33587. printf "%s\n" "yes" >&6; }
  33588. printf "%s\n" "#define HAVE_IOCTL_SIOCGIFADDR 1" >>confdefs.h
  33589. curl_cv_func_ioctl_siocgifaddr="yes"
  33590. else
  33591. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  33592. printf "%s\n" "no" >&6; }
  33593. curl_cv_func_ioctl_siocgifaddr="no"
  33594. fi
  33595. else
  33596. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  33597. printf "%s\n" "no" >&6; }
  33598. curl_cv_func_ioctl="no"
  33599. fi
  33600. #
  33601. tst_links_ioctlsocket="unknown"
  33602. tst_proto_ioctlsocket="unknown"
  33603. tst_compi_ioctlsocket="unknown"
  33604. tst_allow_ioctlsocket="unknown"
  33605. #
  33606. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if ioctlsocket can be linked" >&5
  33607. printf %s "checking if ioctlsocket can be linked... " >&6; }
  33608. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  33609. /* end confdefs.h. */
  33610. $curl_includes_winsock2
  33611. $curl_includes_bsdsocket
  33612. int main (void)
  33613. {
  33614. if(0 != ioctlsocket(0, 0, 0))
  33615. return 1;
  33616. ;
  33617. return 0;
  33618. }
  33619. _ACEOF
  33620. if ac_fn_c_try_link "$LINENO"
  33621. then :
  33622. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  33623. printf "%s\n" "yes" >&6; }
  33624. tst_links_ioctlsocket="yes"
  33625. else $as_nop
  33626. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  33627. printf "%s\n" "no" >&6; }
  33628. tst_links_ioctlsocket="no"
  33629. fi
  33630. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  33631. conftest$ac_exeext conftest.$ac_ext
  33632. #
  33633. if test "$tst_links_ioctlsocket" = "yes"; then
  33634. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if ioctlsocket is prototyped" >&5
  33635. printf %s "checking if ioctlsocket is prototyped... " >&6; }
  33636. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  33637. /* end confdefs.h. */
  33638. $curl_includes_winsock2
  33639. $curl_includes_bsdsocket
  33640. _ACEOF
  33641. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  33642. $EGREP "ioctlsocket" >/dev/null 2>&1
  33643. then :
  33644. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  33645. printf "%s\n" "yes" >&6; }
  33646. tst_proto_ioctlsocket="yes"
  33647. else $as_nop
  33648. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  33649. printf "%s\n" "no" >&6; }
  33650. tst_proto_ioctlsocket="no"
  33651. fi
  33652. rm -rf conftest*
  33653. fi
  33654. #
  33655. if test "$tst_proto_ioctlsocket" = "yes"; then
  33656. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if ioctlsocket is compilable" >&5
  33657. printf %s "checking if ioctlsocket is compilable... " >&6; }
  33658. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  33659. /* end confdefs.h. */
  33660. $curl_includes_winsock2
  33661. $curl_includes_bsdsocket
  33662. int main (void)
  33663. {
  33664. if(0 != ioctlsocket(0, 0, 0))
  33665. return 1;
  33666. ;
  33667. return 0;
  33668. }
  33669. _ACEOF
  33670. if ac_fn_c_try_compile "$LINENO"
  33671. then :
  33672. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  33673. printf "%s\n" "yes" >&6; }
  33674. tst_compi_ioctlsocket="yes"
  33675. else $as_nop
  33676. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  33677. printf "%s\n" "no" >&6; }
  33678. tst_compi_ioctlsocket="no"
  33679. fi
  33680. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  33681. fi
  33682. #
  33683. if test "$tst_compi_ioctlsocket" = "yes"; then
  33684. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if ioctlsocket usage allowed" >&5
  33685. printf %s "checking if ioctlsocket usage allowed... " >&6; }
  33686. if test "x$curl_disallow_ioctlsocket" != "xyes"; then
  33687. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  33688. printf "%s\n" "yes" >&6; }
  33689. tst_allow_ioctlsocket="yes"
  33690. else
  33691. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  33692. printf "%s\n" "no" >&6; }
  33693. tst_allow_ioctlsocket="no"
  33694. fi
  33695. fi
  33696. #
  33697. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if ioctlsocket might be used" >&5
  33698. printf %s "checking if ioctlsocket might be used... " >&6; }
  33699. if test "$tst_links_ioctlsocket" = "yes" &&
  33700. test "$tst_proto_ioctlsocket" = "yes" &&
  33701. test "$tst_compi_ioctlsocket" = "yes" &&
  33702. test "$tst_allow_ioctlsocket" = "yes"; then
  33703. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  33704. printf "%s\n" "yes" >&6; }
  33705. printf "%s\n" "#define HAVE_IOCTLSOCKET 1" >>confdefs.h
  33706. curl_cv_func_ioctlsocket="yes"
  33707. #
  33708. tst_compi_ioctlsocket_fionbio="unknown"
  33709. tst_allow_ioctlsocket_fionbio="unknown"
  33710. #
  33711. if test "$curl_cv_func_ioctlsocket" = "yes"; then
  33712. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if ioctlsocket FIONBIO is compilable" >&5
  33713. printf %s "checking if ioctlsocket FIONBIO is compilable... " >&6; }
  33714. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  33715. /* end confdefs.h. */
  33716. $curl_includes_winsock2
  33717. $curl_includes_bsdsocket
  33718. int main (void)
  33719. {
  33720. int flags = 0;
  33721. if(0 != ioctlsocket(0, FIONBIO, &flags))
  33722. return 1;
  33723. ;
  33724. return 0;
  33725. }
  33726. _ACEOF
  33727. if ac_fn_c_try_compile "$LINENO"
  33728. then :
  33729. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  33730. printf "%s\n" "yes" >&6; }
  33731. tst_compi_ioctlsocket_fionbio="yes"
  33732. else $as_nop
  33733. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  33734. printf "%s\n" "no" >&6; }
  33735. tst_compi_ioctlsocket_fionbio="no"
  33736. fi
  33737. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  33738. fi
  33739. #
  33740. if test "$tst_compi_ioctlsocket_fionbio" = "yes"; then
  33741. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if ioctlsocket FIONBIO usage allowed" >&5
  33742. printf %s "checking if ioctlsocket FIONBIO usage allowed... " >&6; }
  33743. if test "x$curl_disallow_ioctlsocket_fionbio" != "xyes"; then
  33744. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  33745. printf "%s\n" "yes" >&6; }
  33746. tst_allow_ioctlsocket_fionbio="yes"
  33747. else
  33748. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  33749. printf "%s\n" "no" >&6; }
  33750. tst_allow_ioctlsocket_fionbio="no"
  33751. fi
  33752. fi
  33753. #
  33754. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if ioctlsocket FIONBIO might be used" >&5
  33755. printf %s "checking if ioctlsocket FIONBIO might be used... " >&6; }
  33756. if test "$tst_compi_ioctlsocket_fionbio" = "yes" &&
  33757. test "$tst_allow_ioctlsocket_fionbio" = "yes"; then
  33758. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  33759. printf "%s\n" "yes" >&6; }
  33760. printf "%s\n" "#define HAVE_IOCTLSOCKET_FIONBIO 1" >>confdefs.h
  33761. curl_cv_func_ioctlsocket_fionbio="yes"
  33762. else
  33763. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  33764. printf "%s\n" "no" >&6; }
  33765. curl_cv_func_ioctlsocket_fionbio="no"
  33766. fi
  33767. else
  33768. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  33769. printf "%s\n" "no" >&6; }
  33770. curl_cv_func_ioctlsocket="no"
  33771. fi
  33772. #
  33773. tst_links_ioctlsocket_camel="unknown"
  33774. tst_proto_ioctlsocket_camel="unknown"
  33775. tst_compi_ioctlsocket_camel="unknown"
  33776. tst_allow_ioctlsocket_camel="unknown"
  33777. #
  33778. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if IoctlSocket can be linked" >&5
  33779. printf %s "checking if IoctlSocket can be linked... " >&6; }
  33780. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  33781. /* end confdefs.h. */
  33782. #define IoctlSocket innocuous_IoctlSocket
  33783. #ifdef __STDC__
  33784. # include <limits.h>
  33785. #else
  33786. # include <assert.h>
  33787. #endif
  33788. #undef IoctlSocket
  33789. #ifdef __cplusplus
  33790. extern "C"
  33791. #endif
  33792. char IoctlSocket ();
  33793. #if defined __stub_IoctlSocket || defined __stub___IoctlSocket
  33794. choke me
  33795. #endif
  33796. int main (void)
  33797. {
  33798. return IoctlSocket ();
  33799. ;
  33800. return 0;
  33801. }
  33802. _ACEOF
  33803. if ac_fn_c_try_link "$LINENO"
  33804. then :
  33805. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  33806. printf "%s\n" "yes" >&6; }
  33807. tst_links_ioctlsocket_camel="yes"
  33808. else $as_nop
  33809. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  33810. printf "%s\n" "no" >&6; }
  33811. tst_links_ioctlsocket_camel="no"
  33812. fi
  33813. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  33814. conftest$ac_exeext conftest.$ac_ext
  33815. #
  33816. if test "$tst_links_ioctlsocket_camel" = "yes"; then
  33817. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if IoctlSocket is prototyped" >&5
  33818. printf %s "checking if IoctlSocket is prototyped... " >&6; }
  33819. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  33820. /* end confdefs.h. */
  33821. $curl_includes_stropts
  33822. _ACEOF
  33823. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  33824. $EGREP "IoctlSocket" >/dev/null 2>&1
  33825. then :
  33826. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  33827. printf "%s\n" "yes" >&6; }
  33828. tst_proto_ioctlsocket_camel="yes"
  33829. else $as_nop
  33830. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  33831. printf "%s\n" "no" >&6; }
  33832. tst_proto_ioctlsocket_camel="no"
  33833. fi
  33834. rm -rf conftest*
  33835. fi
  33836. #
  33837. if test "$tst_proto_ioctlsocket_camel" = "yes"; then
  33838. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if IoctlSocket is compilable" >&5
  33839. printf %s "checking if IoctlSocket is compilable... " >&6; }
  33840. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  33841. /* end confdefs.h. */
  33842. $curl_includes_stropts
  33843. int main (void)
  33844. {
  33845. if(0 != IoctlSocket(0, 0, 0))
  33846. return 1;
  33847. ;
  33848. return 0;
  33849. }
  33850. _ACEOF
  33851. if ac_fn_c_try_compile "$LINENO"
  33852. then :
  33853. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  33854. printf "%s\n" "yes" >&6; }
  33855. tst_compi_ioctlsocket_camel="yes"
  33856. else $as_nop
  33857. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  33858. printf "%s\n" "no" >&6; }
  33859. tst_compi_ioctlsocket_camel="no"
  33860. fi
  33861. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  33862. fi
  33863. #
  33864. if test "$tst_compi_ioctlsocket_camel" = "yes"; then
  33865. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if IoctlSocket usage allowed" >&5
  33866. printf %s "checking if IoctlSocket usage allowed... " >&6; }
  33867. if test "x$curl_disallow_ioctlsocket_camel" != "xyes"; then
  33868. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  33869. printf "%s\n" "yes" >&6; }
  33870. tst_allow_ioctlsocket_camel="yes"
  33871. else
  33872. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  33873. printf "%s\n" "no" >&6; }
  33874. tst_allow_ioctlsocket_camel="no"
  33875. fi
  33876. fi
  33877. #
  33878. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if IoctlSocket might be used" >&5
  33879. printf %s "checking if IoctlSocket might be used... " >&6; }
  33880. if test "$tst_links_ioctlsocket_camel" = "yes" &&
  33881. test "$tst_proto_ioctlsocket_camel" = "yes" &&
  33882. test "$tst_compi_ioctlsocket_camel" = "yes" &&
  33883. test "$tst_allow_ioctlsocket_camel" = "yes"; then
  33884. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  33885. printf "%s\n" "yes" >&6; }
  33886. printf "%s\n" "#define HAVE_IOCTLSOCKET_CAMEL 1" >>confdefs.h
  33887. curl_cv_func_ioctlsocket_camel="yes"
  33888. #
  33889. tst_compi_ioctlsocket_camel_fionbio="unknown"
  33890. tst_allow_ioctlsocket_camel_fionbio="unknown"
  33891. #
  33892. if test "$curl_cv_func_ioctlsocket_camel" = "yes"; then
  33893. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if IoctlSocket FIONBIO is compilable" >&5
  33894. printf %s "checking if IoctlSocket FIONBIO is compilable... " >&6; }
  33895. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  33896. /* end confdefs.h. */
  33897. $curl_includes_stropts
  33898. int main (void)
  33899. {
  33900. long flags = 0;
  33901. if(0 != IoctlSocket(0, FIONBIO, &flags))
  33902. return 1;
  33903. ;
  33904. return 0;
  33905. }
  33906. _ACEOF
  33907. if ac_fn_c_try_compile "$LINENO"
  33908. then :
  33909. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  33910. printf "%s\n" "yes" >&6; }
  33911. tst_compi_ioctlsocket_camel_fionbio="yes"
  33912. else $as_nop
  33913. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  33914. printf "%s\n" "no" >&6; }
  33915. tst_compi_ioctlsocket_camel_fionbio="no"
  33916. fi
  33917. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  33918. fi
  33919. #
  33920. if test "$tst_compi_ioctlsocket_camel_fionbio" = "yes"; then
  33921. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if IoctlSocket FIONBIO usage allowed" >&5
  33922. printf %s "checking if IoctlSocket FIONBIO usage allowed... " >&6; }
  33923. if test "x$curl_disallow_ioctlsocket_camel_fionbio" != "xyes"; then
  33924. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  33925. printf "%s\n" "yes" >&6; }
  33926. tst_allow_ioctlsocket_camel_fionbio="yes"
  33927. else
  33928. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  33929. printf "%s\n" "no" >&6; }
  33930. tst_allow_ioctlsocket_camel_fionbio="no"
  33931. fi
  33932. fi
  33933. #
  33934. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if IoctlSocket FIONBIO might be used" >&5
  33935. printf %s "checking if IoctlSocket FIONBIO might be used... " >&6; }
  33936. if test "$tst_compi_ioctlsocket_camel_fionbio" = "yes" &&
  33937. test "$tst_allow_ioctlsocket_camel_fionbio" = "yes"; then
  33938. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  33939. printf "%s\n" "yes" >&6; }
  33940. printf "%s\n" "#define HAVE_IOCTLSOCKET_CAMEL_FIONBIO 1" >>confdefs.h
  33941. curl_cv_func_ioctlsocket_camel_fionbio="yes"
  33942. else
  33943. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  33944. printf "%s\n" "no" >&6; }
  33945. curl_cv_func_ioctlsocket_camel_fionbio="no"
  33946. fi
  33947. else
  33948. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  33949. printf "%s\n" "no" >&6; }
  33950. curl_cv_func_ioctlsocket_camel="no"
  33951. fi
  33952. #
  33953. tst_links_localtime_r="unknown"
  33954. tst_proto_localtime_r="unknown"
  33955. tst_compi_localtime_r="unknown"
  33956. tst_works_localtime_r="unknown"
  33957. tst_allow_localtime_r="unknown"
  33958. #
  33959. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if localtime_r can be linked" >&5
  33960. printf %s "checking if localtime_r can be linked... " >&6; }
  33961. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  33962. /* end confdefs.h. */
  33963. #define localtime_r innocuous_localtime_r
  33964. #ifdef __STDC__
  33965. # include <limits.h>
  33966. #else
  33967. # include <assert.h>
  33968. #endif
  33969. #undef localtime_r
  33970. #ifdef __cplusplus
  33971. extern "C"
  33972. #endif
  33973. char localtime_r ();
  33974. #if defined __stub_localtime_r || defined __stub___localtime_r
  33975. choke me
  33976. #endif
  33977. int main (void)
  33978. {
  33979. return localtime_r ();
  33980. ;
  33981. return 0;
  33982. }
  33983. _ACEOF
  33984. if ac_fn_c_try_link "$LINENO"
  33985. then :
  33986. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  33987. printf "%s\n" "yes" >&6; }
  33988. tst_links_localtime_r="yes"
  33989. else $as_nop
  33990. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  33991. printf "%s\n" "no" >&6; }
  33992. tst_links_localtime_r="no"
  33993. fi
  33994. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  33995. conftest$ac_exeext conftest.$ac_ext
  33996. #
  33997. if test "$tst_links_localtime_r" = "yes"; then
  33998. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if localtime_r is prototyped" >&5
  33999. printf %s "checking if localtime_r is prototyped... " >&6; }
  34000. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  34001. /* end confdefs.h. */
  34002. $curl_includes_time
  34003. _ACEOF
  34004. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  34005. $EGREP "localtime_r" >/dev/null 2>&1
  34006. then :
  34007. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  34008. printf "%s\n" "yes" >&6; }
  34009. tst_proto_localtime_r="yes"
  34010. else $as_nop
  34011. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  34012. printf "%s\n" "no" >&6; }
  34013. tst_proto_localtime_r="no"
  34014. fi
  34015. rm -rf conftest*
  34016. fi
  34017. #
  34018. if test "$tst_proto_localtime_r" = "yes"; then
  34019. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if localtime_r is compilable" >&5
  34020. printf %s "checking if localtime_r is compilable... " >&6; }
  34021. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  34022. /* end confdefs.h. */
  34023. $curl_includes_time
  34024. int main (void)
  34025. {
  34026. if(0 != localtime_r(0, 0))
  34027. return 1;
  34028. ;
  34029. return 0;
  34030. }
  34031. _ACEOF
  34032. if ac_fn_c_try_compile "$LINENO"
  34033. then :
  34034. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  34035. printf "%s\n" "yes" >&6; }
  34036. tst_compi_localtime_r="yes"
  34037. else $as_nop
  34038. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  34039. printf "%s\n" "no" >&6; }
  34040. tst_compi_localtime_r="no"
  34041. fi
  34042. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  34043. fi
  34044. #
  34045. if test "x$cross_compiling" != "xyes" &&
  34046. test "$tst_compi_localtime_r" = "yes"; then
  34047. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if localtime_r seems to work" >&5
  34048. printf %s "checking if localtime_r seems to work... " >&6; }
  34049. old=$LD_LIBRARY_PATH
  34050. LD_LIBRARY_PATH=$CURL_LIBRARY_PATH:$old
  34051. export LD_LIBRARY_PATH
  34052. if test "$cross_compiling" = yes
  34053. then :
  34054. { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  34055. printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
  34056. as_fn_error $? "cannot run test program while cross compiling
  34057. See \`config.log' for more details" "$LINENO" 5; }
  34058. else $as_nop
  34059. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  34060. /* end confdefs.h. */
  34061. $curl_includes_stdlib
  34062. $curl_includes_time
  34063. int main (void)
  34064. {
  34065. time_t clock = 1170352587;
  34066. struct tm *tmp = 0;
  34067. struct tm result;
  34068. tmp = localtime_r(&clock, &result);
  34069. if(tmp)
  34070. exit(0);
  34071. else
  34072. exit(1);
  34073. ;
  34074. return 0;
  34075. }
  34076. _ACEOF
  34077. if ac_fn_c_try_run "$LINENO"
  34078. then :
  34079. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  34080. printf "%s\n" "yes" >&6; }
  34081. tst_works_localtime_r="yes"
  34082. else $as_nop
  34083. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  34084. printf "%s\n" "no" >&6; }
  34085. tst_works_localtime_r="no"
  34086. fi
  34087. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  34088. conftest.$ac_objext conftest.beam conftest.$ac_ext
  34089. fi
  34090. LD_LIBRARY_PATH=$old # restore
  34091. fi
  34092. #
  34093. if test "$tst_compi_localtime_r" = "yes" &&
  34094. test "$tst_works_localtime_r" != "no"; then
  34095. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if localtime_r usage allowed" >&5
  34096. printf %s "checking if localtime_r usage allowed... " >&6; }
  34097. if test "x$curl_disallow_localtime_r" != "xyes"; then
  34098. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  34099. printf "%s\n" "yes" >&6; }
  34100. tst_allow_localtime_r="yes"
  34101. else
  34102. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  34103. printf "%s\n" "no" >&6; }
  34104. tst_allow_localtime_r="no"
  34105. fi
  34106. fi
  34107. #
  34108. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if localtime_r might be used" >&5
  34109. printf %s "checking if localtime_r might be used... " >&6; }
  34110. if test "$tst_links_localtime_r" = "yes" &&
  34111. test "$tst_proto_localtime_r" = "yes" &&
  34112. test "$tst_compi_localtime_r" = "yes" &&
  34113. test "$tst_allow_localtime_r" = "yes" &&
  34114. test "$tst_works_localtime_r" != "no"; then
  34115. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  34116. printf "%s\n" "yes" >&6; }
  34117. printf "%s\n" "#define HAVE_LOCALTIME_R 1" >>confdefs.h
  34118. curl_cv_func_localtime_r="yes"
  34119. else
  34120. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  34121. printf "%s\n" "no" >&6; }
  34122. curl_cv_func_localtime_r="no"
  34123. fi
  34124. #
  34125. tst_links_memrchr="unknown"
  34126. tst_macro_memrchr="unknown"
  34127. tst_proto_memrchr="unknown"
  34128. tst_compi_memrchr="unknown"
  34129. tst_allow_memrchr="unknown"
  34130. #
  34131. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if memrchr can be linked" >&5
  34132. printf %s "checking if memrchr can be linked... " >&6; }
  34133. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  34134. /* end confdefs.h. */
  34135. #define memrchr innocuous_memrchr
  34136. #ifdef __STDC__
  34137. # include <limits.h>
  34138. #else
  34139. # include <assert.h>
  34140. #endif
  34141. #undef memrchr
  34142. #ifdef __cplusplus
  34143. extern "C"
  34144. #endif
  34145. char memrchr ();
  34146. #if defined __stub_memrchr || defined __stub___memrchr
  34147. choke me
  34148. #endif
  34149. int main (void)
  34150. {
  34151. return memrchr ();
  34152. ;
  34153. return 0;
  34154. }
  34155. _ACEOF
  34156. if ac_fn_c_try_link "$LINENO"
  34157. then :
  34158. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  34159. printf "%s\n" "yes" >&6; }
  34160. tst_links_memrchr="yes"
  34161. else $as_nop
  34162. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  34163. printf "%s\n" "no" >&6; }
  34164. tst_links_memrchr="no"
  34165. fi
  34166. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  34167. conftest$ac_exeext conftest.$ac_ext
  34168. #
  34169. if test "$tst_links_memrchr" = "no"; then
  34170. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if memrchr seems a macro" >&5
  34171. printf %s "checking if memrchr seems a macro... " >&6; }
  34172. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  34173. /* end confdefs.h. */
  34174. $curl_includes_string
  34175. int main (void)
  34176. {
  34177. if(0 != memrchr(0, 0, 0))
  34178. return 1;
  34179. ;
  34180. return 0;
  34181. }
  34182. _ACEOF
  34183. if ac_fn_c_try_link "$LINENO"
  34184. then :
  34185. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  34186. printf "%s\n" "yes" >&6; }
  34187. tst_macro_memrchr="yes"
  34188. else $as_nop
  34189. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  34190. printf "%s\n" "no" >&6; }
  34191. tst_macro_memrchr="no"
  34192. fi
  34193. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  34194. conftest$ac_exeext conftest.$ac_ext
  34195. fi
  34196. #
  34197. if test "$tst_links_memrchr" = "yes"; then
  34198. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if memrchr is prototyped" >&5
  34199. printf %s "checking if memrchr is prototyped... " >&6; }
  34200. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  34201. /* end confdefs.h. */
  34202. $curl_includes_string
  34203. _ACEOF
  34204. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  34205. $EGREP "memrchr" >/dev/null 2>&1
  34206. then :
  34207. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  34208. printf "%s\n" "yes" >&6; }
  34209. tst_proto_memrchr="yes"
  34210. else $as_nop
  34211. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  34212. printf "%s\n" "no" >&6; }
  34213. tst_proto_memrchr="no"
  34214. fi
  34215. rm -rf conftest*
  34216. fi
  34217. #
  34218. if test "$tst_proto_memrchr" = "yes" ||
  34219. test "$tst_macro_memrchr" = "yes"; then
  34220. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if memrchr is compilable" >&5
  34221. printf %s "checking if memrchr is compilable... " >&6; }
  34222. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  34223. /* end confdefs.h. */
  34224. $curl_includes_string
  34225. int main (void)
  34226. {
  34227. if(0 != memrchr(0, 0, 0))
  34228. return 1;
  34229. ;
  34230. return 0;
  34231. }
  34232. _ACEOF
  34233. if ac_fn_c_try_compile "$LINENO"
  34234. then :
  34235. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  34236. printf "%s\n" "yes" >&6; }
  34237. tst_compi_memrchr="yes"
  34238. else $as_nop
  34239. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  34240. printf "%s\n" "no" >&6; }
  34241. tst_compi_memrchr="no"
  34242. fi
  34243. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  34244. fi
  34245. #
  34246. if test "$tst_compi_memrchr" = "yes"; then
  34247. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if memrchr usage allowed" >&5
  34248. printf %s "checking if memrchr usage allowed... " >&6; }
  34249. if test "x$curl_disallow_memrchr" != "xyes"; then
  34250. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  34251. printf "%s\n" "yes" >&6; }
  34252. tst_allow_memrchr="yes"
  34253. else
  34254. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  34255. printf "%s\n" "no" >&6; }
  34256. tst_allow_memrchr="no"
  34257. fi
  34258. fi
  34259. #
  34260. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if memrchr might be used" >&5
  34261. printf %s "checking if memrchr might be used... " >&6; }
  34262. if (test "$tst_proto_memrchr" = "yes" ||
  34263. test "$tst_macro_memrchr" = "yes") &&
  34264. test "$tst_compi_memrchr" = "yes" &&
  34265. test "$tst_allow_memrchr" = "yes"; then
  34266. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  34267. printf "%s\n" "yes" >&6; }
  34268. printf "%s\n" "#define HAVE_MEMRCHR 1" >>confdefs.h
  34269. curl_cv_func_memrchr="yes"
  34270. else
  34271. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  34272. printf "%s\n" "no" >&6; }
  34273. curl_cv_func_memrchr="no"
  34274. fi
  34275. #
  34276. tst_links_poll="unknown"
  34277. tst_proto_poll="unknown"
  34278. tst_compi_poll="unknown"
  34279. tst_works_poll="unknown"
  34280. tst_allow_poll="unknown"
  34281. #
  34282. case $host_os in
  34283. darwin*|interix*)
  34284. curl_disallow_poll="yes"
  34285. tst_compi_poll="no"
  34286. ;;
  34287. esac
  34288. #
  34289. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if poll can be linked" >&5
  34290. printf %s "checking if poll can be linked... " >&6; }
  34291. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  34292. /* end confdefs.h. */
  34293. $curl_includes_poll
  34294. int main (void)
  34295. {
  34296. if(0 != poll(0, 0, 0))
  34297. return 1;
  34298. ;
  34299. return 0;
  34300. }
  34301. _ACEOF
  34302. if ac_fn_c_try_link "$LINENO"
  34303. then :
  34304. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  34305. printf "%s\n" "yes" >&6; }
  34306. tst_links_poll="yes"
  34307. else $as_nop
  34308. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  34309. printf "%s\n" "no" >&6; }
  34310. tst_links_poll="no"
  34311. fi
  34312. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  34313. conftest$ac_exeext conftest.$ac_ext
  34314. #
  34315. if test "$tst_links_poll" = "yes"; then
  34316. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if poll is prototyped" >&5
  34317. printf %s "checking if poll is prototyped... " >&6; }
  34318. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  34319. /* end confdefs.h. */
  34320. $curl_includes_poll
  34321. _ACEOF
  34322. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  34323. $EGREP "poll" >/dev/null 2>&1
  34324. then :
  34325. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  34326. printf "%s\n" "yes" >&6; }
  34327. tst_proto_poll="yes"
  34328. else $as_nop
  34329. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  34330. printf "%s\n" "no" >&6; }
  34331. tst_proto_poll="no"
  34332. fi
  34333. rm -rf conftest*
  34334. fi
  34335. #
  34336. if test "$tst_proto_poll" = "yes"; then
  34337. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if poll is compilable" >&5
  34338. printf %s "checking if poll is compilable... " >&6; }
  34339. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  34340. /* end confdefs.h. */
  34341. $curl_includes_poll
  34342. int main (void)
  34343. {
  34344. if(0 != poll(0, 0, 0))
  34345. return 1;
  34346. ;
  34347. return 0;
  34348. }
  34349. _ACEOF
  34350. if ac_fn_c_try_compile "$LINENO"
  34351. then :
  34352. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  34353. printf "%s\n" "yes" >&6; }
  34354. tst_compi_poll="yes"
  34355. else $as_nop
  34356. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  34357. printf "%s\n" "no" >&6; }
  34358. tst_compi_poll="no"
  34359. fi
  34360. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  34361. fi
  34362. #
  34363. if test "x$cross_compiling" != "xyes" &&
  34364. test "$tst_compi_poll" = "yes"; then
  34365. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if poll seems to work" >&5
  34366. printf %s "checking if poll seems to work... " >&6; }
  34367. old=$LD_LIBRARY_PATH
  34368. LD_LIBRARY_PATH=$CURL_LIBRARY_PATH:$old
  34369. export LD_LIBRARY_PATH
  34370. if test "$cross_compiling" = yes
  34371. then :
  34372. { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  34373. printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
  34374. as_fn_error $? "cannot run test program while cross compiling
  34375. See \`config.log' for more details" "$LINENO" 5; }
  34376. else $as_nop
  34377. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  34378. /* end confdefs.h. */
  34379. $curl_includes_stdlib
  34380. $curl_includes_poll
  34381. $curl_includes_time
  34382. int main (void)
  34383. {
  34384. /* detect the original poll() breakage */
  34385. if(0 != poll(0, 0, 10))
  34386. exit(1); /* fail */
  34387. else {
  34388. /* detect the 10.12 poll() breakage */
  34389. struct timeval before, after;
  34390. int rc;
  34391. size_t us;
  34392. gettimeofday(&before, NULL);
  34393. rc = poll(NULL, 0, 500);
  34394. gettimeofday(&after, NULL);
  34395. us = (after.tv_sec - before.tv_sec) * 1000000 +
  34396. (after.tv_usec - before.tv_usec);
  34397. if(us < 400000)
  34398. exit(1);
  34399. }
  34400. ;
  34401. return 0;
  34402. }
  34403. _ACEOF
  34404. if ac_fn_c_try_run "$LINENO"
  34405. then :
  34406. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  34407. printf "%s\n" "yes" >&6; }
  34408. tst_works_poll="yes"
  34409. else $as_nop
  34410. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  34411. printf "%s\n" "no" >&6; }
  34412. tst_works_poll="no"
  34413. fi
  34414. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  34415. conftest.$ac_objext conftest.beam conftest.$ac_ext
  34416. fi
  34417. LD_LIBRARY_PATH=$old # restore
  34418. fi
  34419. #
  34420. if test "$tst_compi_poll" = "yes" &&
  34421. test "$tst_works_poll" != "no"; then
  34422. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if poll usage allowed" >&5
  34423. printf %s "checking if poll usage allowed... " >&6; }
  34424. if test "x$curl_disallow_poll" != "xyes"; then
  34425. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  34426. printf "%s\n" "yes" >&6; }
  34427. tst_allow_poll="yes"
  34428. else
  34429. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  34430. printf "%s\n" "no" >&6; }
  34431. tst_allow_poll="no"
  34432. fi
  34433. fi
  34434. #
  34435. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if poll might be used" >&5
  34436. printf %s "checking if poll might be used... " >&6; }
  34437. if test "$tst_links_poll" = "yes" &&
  34438. test "$tst_proto_poll" = "yes" &&
  34439. test "$tst_compi_poll" = "yes" &&
  34440. test "$tst_allow_poll" = "yes" &&
  34441. test "$tst_works_poll" != "no"; then
  34442. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  34443. printf "%s\n" "yes" >&6; }
  34444. printf "%s\n" "#define HAVE_POLL 1" >>confdefs.h
  34445. printf "%s\n" "#define HAVE_POLL_FINE 1" >>confdefs.h
  34446. curl_cv_func_poll="yes"
  34447. else
  34448. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  34449. printf "%s\n" "no" >&6; }
  34450. curl_cv_func_poll="no"
  34451. fi
  34452. #
  34453. tst_links_setsockopt="unknown"
  34454. tst_proto_setsockopt="unknown"
  34455. tst_compi_setsockopt="unknown"
  34456. tst_allow_setsockopt="unknown"
  34457. #
  34458. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if setsockopt can be linked" >&5
  34459. printf %s "checking if setsockopt can be linked... " >&6; }
  34460. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  34461. /* end confdefs.h. */
  34462. $curl_includes_winsock2
  34463. $curl_includes_bsdsocket
  34464. $curl_includes_sys_socket
  34465. int main (void)
  34466. {
  34467. if(0 != setsockopt(0, 0, 0, 0, 0))
  34468. return 1;
  34469. ;
  34470. return 0;
  34471. }
  34472. _ACEOF
  34473. if ac_fn_c_try_link "$LINENO"
  34474. then :
  34475. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  34476. printf "%s\n" "yes" >&6; }
  34477. tst_links_setsockopt="yes"
  34478. else $as_nop
  34479. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  34480. printf "%s\n" "no" >&6; }
  34481. tst_links_setsockopt="no"
  34482. fi
  34483. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  34484. conftest$ac_exeext conftest.$ac_ext
  34485. #
  34486. if test "$tst_links_setsockopt" = "yes"; then
  34487. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if setsockopt is prototyped" >&5
  34488. printf %s "checking if setsockopt is prototyped... " >&6; }
  34489. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  34490. /* end confdefs.h. */
  34491. $curl_includes_winsock2
  34492. $curl_includes_bsdsocket
  34493. $curl_includes_sys_socket
  34494. _ACEOF
  34495. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  34496. $EGREP "setsockopt" >/dev/null 2>&1
  34497. then :
  34498. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  34499. printf "%s\n" "yes" >&6; }
  34500. tst_proto_setsockopt="yes"
  34501. else $as_nop
  34502. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  34503. printf "%s\n" "no" >&6; }
  34504. tst_proto_setsockopt="no"
  34505. fi
  34506. rm -rf conftest*
  34507. fi
  34508. #
  34509. if test "$tst_proto_setsockopt" = "yes"; then
  34510. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if setsockopt is compilable" >&5
  34511. printf %s "checking if setsockopt is compilable... " >&6; }
  34512. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  34513. /* end confdefs.h. */
  34514. $curl_includes_winsock2
  34515. $curl_includes_bsdsocket
  34516. $curl_includes_sys_socket
  34517. int main (void)
  34518. {
  34519. if(0 != setsockopt(0, 0, 0, 0, 0))
  34520. return 1;
  34521. ;
  34522. return 0;
  34523. }
  34524. _ACEOF
  34525. if ac_fn_c_try_compile "$LINENO"
  34526. then :
  34527. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  34528. printf "%s\n" "yes" >&6; }
  34529. tst_compi_setsockopt="yes"
  34530. else $as_nop
  34531. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  34532. printf "%s\n" "no" >&6; }
  34533. tst_compi_setsockopt="no"
  34534. fi
  34535. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  34536. fi
  34537. #
  34538. if test "$tst_compi_setsockopt" = "yes"; then
  34539. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if setsockopt usage allowed" >&5
  34540. printf %s "checking if setsockopt usage allowed... " >&6; }
  34541. if test "x$curl_disallow_setsockopt" != "xyes"; then
  34542. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  34543. printf "%s\n" "yes" >&6; }
  34544. tst_allow_setsockopt="yes"
  34545. else
  34546. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  34547. printf "%s\n" "no" >&6; }
  34548. tst_allow_setsockopt="no"
  34549. fi
  34550. fi
  34551. #
  34552. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if setsockopt might be used" >&5
  34553. printf %s "checking if setsockopt might be used... " >&6; }
  34554. if test "$tst_links_setsockopt" = "yes" &&
  34555. test "$tst_proto_setsockopt" = "yes" &&
  34556. test "$tst_compi_setsockopt" = "yes" &&
  34557. test "$tst_allow_setsockopt" = "yes"; then
  34558. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  34559. printf "%s\n" "yes" >&6; }
  34560. printf "%s\n" "#define HAVE_SETSOCKOPT 1" >>confdefs.h
  34561. curl_cv_func_setsockopt="yes"
  34562. #
  34563. tst_compi_setsockopt_so_nonblock="unknown"
  34564. tst_allow_setsockopt_so_nonblock="unknown"
  34565. #
  34566. if test "$curl_cv_func_setsockopt" = "yes"; then
  34567. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if setsockopt SO_NONBLOCK is compilable" >&5
  34568. printf %s "checking if setsockopt SO_NONBLOCK is compilable... " >&6; }
  34569. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  34570. /* end confdefs.h. */
  34571. $curl_includes_winsock2
  34572. $curl_includes_bsdsocket
  34573. $curl_includes_sys_socket
  34574. int main (void)
  34575. {
  34576. if(0 != setsockopt(0, SOL_SOCKET, SO_NONBLOCK, 0, 0))
  34577. return 1;
  34578. ;
  34579. return 0;
  34580. }
  34581. _ACEOF
  34582. if ac_fn_c_try_compile "$LINENO"
  34583. then :
  34584. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  34585. printf "%s\n" "yes" >&6; }
  34586. tst_compi_setsockopt_so_nonblock="yes"
  34587. else $as_nop
  34588. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  34589. printf "%s\n" "no" >&6; }
  34590. tst_compi_setsockopt_so_nonblock="no"
  34591. fi
  34592. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  34593. fi
  34594. #
  34595. if test "$tst_compi_setsockopt_so_nonblock" = "yes"; then
  34596. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if setsockopt SO_NONBLOCK usage allowed" >&5
  34597. printf %s "checking if setsockopt SO_NONBLOCK usage allowed... " >&6; }
  34598. if test "x$curl_disallow_setsockopt_so_nonblock" != "xyes"; then
  34599. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  34600. printf "%s\n" "yes" >&6; }
  34601. tst_allow_setsockopt_so_nonblock="yes"
  34602. else
  34603. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  34604. printf "%s\n" "no" >&6; }
  34605. tst_allow_setsockopt_so_nonblock="no"
  34606. fi
  34607. fi
  34608. #
  34609. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if setsockopt SO_NONBLOCK might be used" >&5
  34610. printf %s "checking if setsockopt SO_NONBLOCK might be used... " >&6; }
  34611. if test "$tst_compi_setsockopt_so_nonblock" = "yes" &&
  34612. test "$tst_allow_setsockopt_so_nonblock" = "yes"; then
  34613. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  34614. printf "%s\n" "yes" >&6; }
  34615. printf "%s\n" "#define HAVE_SETSOCKOPT_SO_NONBLOCK 1" >>confdefs.h
  34616. curl_cv_func_setsockopt_so_nonblock="yes"
  34617. else
  34618. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  34619. printf "%s\n" "no" >&6; }
  34620. curl_cv_func_setsockopt_so_nonblock="no"
  34621. fi
  34622. else
  34623. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  34624. printf "%s\n" "no" >&6; }
  34625. curl_cv_func_setsockopt="no"
  34626. fi
  34627. curl_includes_signal="\
  34628. /* includes start */
  34629. #ifdef HAVE_SYS_TYPES_H
  34630. # include <sys/types.h>
  34631. #endif
  34632. #ifdef HAVE_SIGNAL_H
  34633. # include <signal.h>
  34634. #endif
  34635. /* includes end */"
  34636. ac_fn_c_check_header_compile "$LINENO" "sys/types.h" "ac_cv_header_sys_types_h" "$curl_includes_signal
  34637. "
  34638. if test "x$ac_cv_header_sys_types_h" = xyes
  34639. then :
  34640. printf "%s\n" "#define HAVE_SYS_TYPES_H 1" >>confdefs.h
  34641. fi
  34642. ac_fn_c_check_header_compile "$LINENO" "signal.h" "ac_cv_header_signal_h" "$curl_includes_signal
  34643. "
  34644. if test "x$ac_cv_header_signal_h" = xyes
  34645. then :
  34646. printf "%s\n" "#define HAVE_SIGNAL_H 1" >>confdefs.h
  34647. fi
  34648. #
  34649. tst_links_sigaction="unknown"
  34650. tst_proto_sigaction="unknown"
  34651. tst_compi_sigaction="unknown"
  34652. tst_allow_sigaction="unknown"
  34653. #
  34654. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if sigaction can be linked" >&5
  34655. printf %s "checking if sigaction can be linked... " >&6; }
  34656. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  34657. /* end confdefs.h. */
  34658. #define sigaction innocuous_sigaction
  34659. #ifdef __STDC__
  34660. # include <limits.h>
  34661. #else
  34662. # include <assert.h>
  34663. #endif
  34664. #undef sigaction
  34665. #ifdef __cplusplus
  34666. extern "C"
  34667. #endif
  34668. char sigaction ();
  34669. #if defined __stub_sigaction || defined __stub___sigaction
  34670. choke me
  34671. #endif
  34672. int main (void)
  34673. {
  34674. return sigaction ();
  34675. ;
  34676. return 0;
  34677. }
  34678. _ACEOF
  34679. if ac_fn_c_try_link "$LINENO"
  34680. then :
  34681. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  34682. printf "%s\n" "yes" >&6; }
  34683. tst_links_sigaction="yes"
  34684. else $as_nop
  34685. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  34686. printf "%s\n" "no" >&6; }
  34687. tst_links_sigaction="no"
  34688. fi
  34689. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  34690. conftest$ac_exeext conftest.$ac_ext
  34691. #
  34692. if test "$tst_links_sigaction" = "yes"; then
  34693. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if sigaction is prototyped" >&5
  34694. printf %s "checking if sigaction is prototyped... " >&6; }
  34695. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  34696. /* end confdefs.h. */
  34697. $curl_includes_signal
  34698. _ACEOF
  34699. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  34700. $EGREP "sigaction" >/dev/null 2>&1
  34701. then :
  34702. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  34703. printf "%s\n" "yes" >&6; }
  34704. tst_proto_sigaction="yes"
  34705. else $as_nop
  34706. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  34707. printf "%s\n" "no" >&6; }
  34708. tst_proto_sigaction="no"
  34709. fi
  34710. rm -rf conftest*
  34711. fi
  34712. #
  34713. if test "$tst_proto_sigaction" = "yes"; then
  34714. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if sigaction is compilable" >&5
  34715. printf %s "checking if sigaction is compilable... " >&6; }
  34716. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  34717. /* end confdefs.h. */
  34718. $curl_includes_signal
  34719. int main (void)
  34720. {
  34721. if(0 != sigaction(0, 0, 0))
  34722. return 1;
  34723. ;
  34724. return 0;
  34725. }
  34726. _ACEOF
  34727. if ac_fn_c_try_compile "$LINENO"
  34728. then :
  34729. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  34730. printf "%s\n" "yes" >&6; }
  34731. tst_compi_sigaction="yes"
  34732. else $as_nop
  34733. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  34734. printf "%s\n" "no" >&6; }
  34735. tst_compi_sigaction="no"
  34736. fi
  34737. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  34738. fi
  34739. #
  34740. if test "$tst_compi_sigaction" = "yes"; then
  34741. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if sigaction usage allowed" >&5
  34742. printf %s "checking if sigaction usage allowed... " >&6; }
  34743. if test "x$curl_disallow_sigaction" != "xyes"; then
  34744. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  34745. printf "%s\n" "yes" >&6; }
  34746. tst_allow_sigaction="yes"
  34747. else
  34748. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  34749. printf "%s\n" "no" >&6; }
  34750. tst_allow_sigaction="no"
  34751. fi
  34752. fi
  34753. #
  34754. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if sigaction might be used" >&5
  34755. printf %s "checking if sigaction might be used... " >&6; }
  34756. if test "$tst_links_sigaction" = "yes" &&
  34757. test "$tst_proto_sigaction" = "yes" &&
  34758. test "$tst_compi_sigaction" = "yes" &&
  34759. test "$tst_allow_sigaction" = "yes"; then
  34760. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  34761. printf "%s\n" "yes" >&6; }
  34762. printf "%s\n" "#define HAVE_SIGACTION 1" >>confdefs.h
  34763. curl_cv_func_sigaction="yes"
  34764. else
  34765. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  34766. printf "%s\n" "no" >&6; }
  34767. curl_cv_func_sigaction="no"
  34768. fi
  34769. #
  34770. tst_links_siginterrupt="unknown"
  34771. tst_proto_siginterrupt="unknown"
  34772. tst_compi_siginterrupt="unknown"
  34773. tst_allow_siginterrupt="unknown"
  34774. #
  34775. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if siginterrupt can be linked" >&5
  34776. printf %s "checking if siginterrupt can be linked... " >&6; }
  34777. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  34778. /* end confdefs.h. */
  34779. #define siginterrupt innocuous_siginterrupt
  34780. #ifdef __STDC__
  34781. # include <limits.h>
  34782. #else
  34783. # include <assert.h>
  34784. #endif
  34785. #undef siginterrupt
  34786. #ifdef __cplusplus
  34787. extern "C"
  34788. #endif
  34789. char siginterrupt ();
  34790. #if defined __stub_siginterrupt || defined __stub___siginterrupt
  34791. choke me
  34792. #endif
  34793. int main (void)
  34794. {
  34795. return siginterrupt ();
  34796. ;
  34797. return 0;
  34798. }
  34799. _ACEOF
  34800. if ac_fn_c_try_link "$LINENO"
  34801. then :
  34802. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  34803. printf "%s\n" "yes" >&6; }
  34804. tst_links_siginterrupt="yes"
  34805. else $as_nop
  34806. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  34807. printf "%s\n" "no" >&6; }
  34808. tst_links_siginterrupt="no"
  34809. fi
  34810. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  34811. conftest$ac_exeext conftest.$ac_ext
  34812. #
  34813. if test "$tst_links_siginterrupt" = "yes"; then
  34814. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if siginterrupt is prototyped" >&5
  34815. printf %s "checking if siginterrupt is prototyped... " >&6; }
  34816. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  34817. /* end confdefs.h. */
  34818. $curl_includes_signal
  34819. _ACEOF
  34820. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  34821. $EGREP "siginterrupt" >/dev/null 2>&1
  34822. then :
  34823. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  34824. printf "%s\n" "yes" >&6; }
  34825. tst_proto_siginterrupt="yes"
  34826. else $as_nop
  34827. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  34828. printf "%s\n" "no" >&6; }
  34829. tst_proto_siginterrupt="no"
  34830. fi
  34831. rm -rf conftest*
  34832. fi
  34833. #
  34834. if test "$tst_proto_siginterrupt" = "yes"; then
  34835. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if siginterrupt is compilable" >&5
  34836. printf %s "checking if siginterrupt is compilable... " >&6; }
  34837. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  34838. /* end confdefs.h. */
  34839. $curl_includes_signal
  34840. int main (void)
  34841. {
  34842. if(0 != siginterrupt(0, 0))
  34843. return 1;
  34844. ;
  34845. return 0;
  34846. }
  34847. _ACEOF
  34848. if ac_fn_c_try_compile "$LINENO"
  34849. then :
  34850. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  34851. printf "%s\n" "yes" >&6; }
  34852. tst_compi_siginterrupt="yes"
  34853. else $as_nop
  34854. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  34855. printf "%s\n" "no" >&6; }
  34856. tst_compi_siginterrupt="no"
  34857. fi
  34858. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  34859. fi
  34860. #
  34861. if test "$tst_compi_siginterrupt" = "yes"; then
  34862. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if siginterrupt usage allowed" >&5
  34863. printf %s "checking if siginterrupt usage allowed... " >&6; }
  34864. if test "x$curl_disallow_siginterrupt" != "xyes"; then
  34865. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  34866. printf "%s\n" "yes" >&6; }
  34867. tst_allow_siginterrupt="yes"
  34868. else
  34869. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  34870. printf "%s\n" "no" >&6; }
  34871. tst_allow_siginterrupt="no"
  34872. fi
  34873. fi
  34874. #
  34875. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if siginterrupt might be used" >&5
  34876. printf %s "checking if siginterrupt might be used... " >&6; }
  34877. if test "$tst_links_siginterrupt" = "yes" &&
  34878. test "$tst_proto_siginterrupt" = "yes" &&
  34879. test "$tst_compi_siginterrupt" = "yes" &&
  34880. test "$tst_allow_siginterrupt" = "yes"; then
  34881. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  34882. printf "%s\n" "yes" >&6; }
  34883. printf "%s\n" "#define HAVE_SIGINTERRUPT 1" >>confdefs.h
  34884. curl_cv_func_siginterrupt="yes"
  34885. else
  34886. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  34887. printf "%s\n" "no" >&6; }
  34888. curl_cv_func_siginterrupt="no"
  34889. fi
  34890. #
  34891. tst_links_signal="unknown"
  34892. tst_proto_signal="unknown"
  34893. tst_compi_signal="unknown"
  34894. tst_allow_signal="unknown"
  34895. #
  34896. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if signal can be linked" >&5
  34897. printf %s "checking if signal can be linked... " >&6; }
  34898. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  34899. /* end confdefs.h. */
  34900. #define signal innocuous_signal
  34901. #ifdef __STDC__
  34902. # include <limits.h>
  34903. #else
  34904. # include <assert.h>
  34905. #endif
  34906. #undef signal
  34907. #ifdef __cplusplus
  34908. extern "C"
  34909. #endif
  34910. char signal ();
  34911. #if defined __stub_signal || defined __stub___signal
  34912. choke me
  34913. #endif
  34914. int main (void)
  34915. {
  34916. return signal ();
  34917. ;
  34918. return 0;
  34919. }
  34920. _ACEOF
  34921. if ac_fn_c_try_link "$LINENO"
  34922. then :
  34923. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  34924. printf "%s\n" "yes" >&6; }
  34925. tst_links_signal="yes"
  34926. else $as_nop
  34927. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  34928. printf "%s\n" "no" >&6; }
  34929. tst_links_signal="no"
  34930. fi
  34931. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  34932. conftest$ac_exeext conftest.$ac_ext
  34933. #
  34934. if test "$tst_links_signal" = "yes"; then
  34935. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if signal is prototyped" >&5
  34936. printf %s "checking if signal is prototyped... " >&6; }
  34937. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  34938. /* end confdefs.h. */
  34939. $curl_includes_signal
  34940. _ACEOF
  34941. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  34942. $EGREP "signal" >/dev/null 2>&1
  34943. then :
  34944. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  34945. printf "%s\n" "yes" >&6; }
  34946. tst_proto_signal="yes"
  34947. else $as_nop
  34948. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  34949. printf "%s\n" "no" >&6; }
  34950. tst_proto_signal="no"
  34951. fi
  34952. rm -rf conftest*
  34953. fi
  34954. #
  34955. if test "$tst_proto_signal" = "yes"; then
  34956. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if signal is compilable" >&5
  34957. printf %s "checking if signal is compilable... " >&6; }
  34958. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  34959. /* end confdefs.h. */
  34960. $curl_includes_signal
  34961. int main (void)
  34962. {
  34963. if(0 != signal(0, 0))
  34964. return 1;
  34965. ;
  34966. return 0;
  34967. }
  34968. _ACEOF
  34969. if ac_fn_c_try_compile "$LINENO"
  34970. then :
  34971. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  34972. printf "%s\n" "yes" >&6; }
  34973. tst_compi_signal="yes"
  34974. else $as_nop
  34975. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  34976. printf "%s\n" "no" >&6; }
  34977. tst_compi_signal="no"
  34978. fi
  34979. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  34980. fi
  34981. #
  34982. if test "$tst_compi_signal" = "yes"; then
  34983. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if signal usage allowed" >&5
  34984. printf %s "checking if signal usage allowed... " >&6; }
  34985. if test "x$curl_disallow_signal" != "xyes"; then
  34986. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  34987. printf "%s\n" "yes" >&6; }
  34988. tst_allow_signal="yes"
  34989. else
  34990. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  34991. printf "%s\n" "no" >&6; }
  34992. tst_allow_signal="no"
  34993. fi
  34994. fi
  34995. #
  34996. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if signal might be used" >&5
  34997. printf %s "checking if signal might be used... " >&6; }
  34998. if test "$tst_links_signal" = "yes" &&
  34999. test "$tst_proto_signal" = "yes" &&
  35000. test "$tst_compi_signal" = "yes" &&
  35001. test "$tst_allow_signal" = "yes"; then
  35002. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  35003. printf "%s\n" "yes" >&6; }
  35004. printf "%s\n" "#define HAVE_SIGNAL 1" >>confdefs.h
  35005. curl_cv_func_signal="yes"
  35006. else
  35007. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  35008. printf "%s\n" "no" >&6; }
  35009. curl_cv_func_signal="no"
  35010. fi
  35011. curl_includes_setjmp="\
  35012. /* includes start */
  35013. #ifdef HAVE_SYS_TYPES_H
  35014. # include <sys/types.h>
  35015. #endif
  35016. #ifdef HAVE_SETJMP_H
  35017. # include <setjmp.h>
  35018. #endif
  35019. /* includes end */"
  35020. ac_fn_c_check_header_compile "$LINENO" "sys/types.h" "ac_cv_header_sys_types_h" "$curl_includes_setjmp
  35021. "
  35022. if test "x$ac_cv_header_sys_types_h" = xyes
  35023. then :
  35024. printf "%s\n" "#define HAVE_SYS_TYPES_H 1" >>confdefs.h
  35025. fi
  35026. ac_fn_c_check_header_compile "$LINENO" "setjmp.h" "ac_cv_header_setjmp_h" "$curl_includes_setjmp
  35027. "
  35028. if test "x$ac_cv_header_setjmp_h" = xyes
  35029. then :
  35030. printf "%s\n" "#define HAVE_SETJMP_H 1" >>confdefs.h
  35031. fi
  35032. #
  35033. tst_links_sigsetjmp="unknown"
  35034. tst_macro_sigsetjmp="unknown"
  35035. tst_proto_sigsetjmp="unknown"
  35036. tst_compi_sigsetjmp="unknown"
  35037. tst_allow_sigsetjmp="unknown"
  35038. #
  35039. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if sigsetjmp can be linked" >&5
  35040. printf %s "checking if sigsetjmp can be linked... " >&6; }
  35041. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  35042. /* end confdefs.h. */
  35043. #define sigsetjmp innocuous_sigsetjmp
  35044. #ifdef __STDC__
  35045. # include <limits.h>
  35046. #else
  35047. # include <assert.h>
  35048. #endif
  35049. #undef sigsetjmp
  35050. #ifdef __cplusplus
  35051. extern "C"
  35052. #endif
  35053. char sigsetjmp ();
  35054. #if defined __stub_sigsetjmp || defined __stub___sigsetjmp
  35055. choke me
  35056. #endif
  35057. int main (void)
  35058. {
  35059. return sigsetjmp ();
  35060. ;
  35061. return 0;
  35062. }
  35063. _ACEOF
  35064. if ac_fn_c_try_link "$LINENO"
  35065. then :
  35066. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  35067. printf "%s\n" "yes" >&6; }
  35068. tst_links_sigsetjmp="yes"
  35069. else $as_nop
  35070. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  35071. printf "%s\n" "no" >&6; }
  35072. tst_links_sigsetjmp="no"
  35073. fi
  35074. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  35075. conftest$ac_exeext conftest.$ac_ext
  35076. #
  35077. if test "$tst_links_sigsetjmp" = "no"; then
  35078. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if sigsetjmp seems a macro" >&5
  35079. printf %s "checking if sigsetjmp seems a macro... " >&6; }
  35080. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  35081. /* end confdefs.h. */
  35082. $curl_includes_setjmp
  35083. int main (void)
  35084. {
  35085. sigjmp_buf env;
  35086. if(0 != sigsetjmp(env, 0))
  35087. return 1;
  35088. ;
  35089. return 0;
  35090. }
  35091. _ACEOF
  35092. if ac_fn_c_try_link "$LINENO"
  35093. then :
  35094. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  35095. printf "%s\n" "yes" >&6; }
  35096. tst_macro_sigsetjmp="yes"
  35097. else $as_nop
  35098. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  35099. printf "%s\n" "no" >&6; }
  35100. tst_macro_sigsetjmp="no"
  35101. fi
  35102. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  35103. conftest$ac_exeext conftest.$ac_ext
  35104. fi
  35105. #
  35106. if test "$tst_links_sigsetjmp" = "yes"; then
  35107. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if sigsetjmp is prototyped" >&5
  35108. printf %s "checking if sigsetjmp is prototyped... " >&6; }
  35109. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  35110. /* end confdefs.h. */
  35111. $curl_includes_setjmp
  35112. _ACEOF
  35113. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  35114. $EGREP "sigsetjmp" >/dev/null 2>&1
  35115. then :
  35116. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  35117. printf "%s\n" "yes" >&6; }
  35118. tst_proto_sigsetjmp="yes"
  35119. else $as_nop
  35120. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  35121. printf "%s\n" "no" >&6; }
  35122. tst_proto_sigsetjmp="no"
  35123. fi
  35124. rm -rf conftest*
  35125. fi
  35126. #
  35127. if test "$tst_proto_sigsetjmp" = "yes" ||
  35128. test "$tst_macro_sigsetjmp" = "yes"; then
  35129. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if sigsetjmp is compilable" >&5
  35130. printf %s "checking if sigsetjmp is compilable... " >&6; }
  35131. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  35132. /* end confdefs.h. */
  35133. $curl_includes_setjmp
  35134. int main (void)
  35135. {
  35136. sigjmp_buf env;
  35137. if(0 != sigsetjmp(env, 0))
  35138. return 1;
  35139. ;
  35140. return 0;
  35141. }
  35142. _ACEOF
  35143. if ac_fn_c_try_compile "$LINENO"
  35144. then :
  35145. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  35146. printf "%s\n" "yes" >&6; }
  35147. tst_compi_sigsetjmp="yes"
  35148. else $as_nop
  35149. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  35150. printf "%s\n" "no" >&6; }
  35151. tst_compi_sigsetjmp="no"
  35152. fi
  35153. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  35154. fi
  35155. #
  35156. if test "$tst_compi_sigsetjmp" = "yes"; then
  35157. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if sigsetjmp usage allowed" >&5
  35158. printf %s "checking if sigsetjmp usage allowed... " >&6; }
  35159. if test "x$curl_disallow_sigsetjmp" != "xyes"; then
  35160. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  35161. printf "%s\n" "yes" >&6; }
  35162. tst_allow_sigsetjmp="yes"
  35163. else
  35164. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  35165. printf "%s\n" "no" >&6; }
  35166. tst_allow_sigsetjmp="no"
  35167. fi
  35168. fi
  35169. #
  35170. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if sigsetjmp might be used" >&5
  35171. printf %s "checking if sigsetjmp might be used... " >&6; }
  35172. if (test "$tst_proto_sigsetjmp" = "yes" ||
  35173. test "$tst_macro_sigsetjmp" = "yes") &&
  35174. test "$tst_compi_sigsetjmp" = "yes" &&
  35175. test "$tst_allow_sigsetjmp" = "yes"; then
  35176. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  35177. printf "%s\n" "yes" >&6; }
  35178. printf "%s\n" "#define HAVE_SIGSETJMP 1" >>confdefs.h
  35179. curl_cv_func_sigsetjmp="yes"
  35180. else
  35181. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  35182. printf "%s\n" "no" >&6; }
  35183. curl_cv_func_sigsetjmp="no"
  35184. fi
  35185. #
  35186. tst_links_socket="unknown"
  35187. tst_proto_socket="unknown"
  35188. tst_compi_socket="unknown"
  35189. tst_allow_socket="unknown"
  35190. #
  35191. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if socket can be linked" >&5
  35192. printf %s "checking if socket can be linked... " >&6; }
  35193. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  35194. /* end confdefs.h. */
  35195. $curl_includes_winsock2
  35196. $curl_includes_bsdsocket
  35197. $curl_includes_sys_socket
  35198. $curl_includes_socket
  35199. int main (void)
  35200. {
  35201. if(0 != socket(0, 0, 0))
  35202. return 1;
  35203. ;
  35204. return 0;
  35205. }
  35206. _ACEOF
  35207. if ac_fn_c_try_link "$LINENO"
  35208. then :
  35209. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  35210. printf "%s\n" "yes" >&6; }
  35211. tst_links_socket="yes"
  35212. else $as_nop
  35213. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  35214. printf "%s\n" "no" >&6; }
  35215. tst_links_socket="no"
  35216. fi
  35217. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  35218. conftest$ac_exeext conftest.$ac_ext
  35219. #
  35220. if test "$tst_links_socket" = "yes"; then
  35221. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if socket is prototyped" >&5
  35222. printf %s "checking if socket is prototyped... " >&6; }
  35223. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  35224. /* end confdefs.h. */
  35225. $curl_includes_winsock2
  35226. $curl_includes_bsdsocket
  35227. $curl_includes_sys_socket
  35228. $curl_includes_socket
  35229. _ACEOF
  35230. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  35231. $EGREP "socket" >/dev/null 2>&1
  35232. then :
  35233. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  35234. printf "%s\n" "yes" >&6; }
  35235. tst_proto_socket="yes"
  35236. else $as_nop
  35237. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  35238. printf "%s\n" "no" >&6; }
  35239. tst_proto_socket="no"
  35240. fi
  35241. rm -rf conftest*
  35242. fi
  35243. #
  35244. if test "$tst_proto_socket" = "yes"; then
  35245. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if socket is compilable" >&5
  35246. printf %s "checking if socket is compilable... " >&6; }
  35247. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  35248. /* end confdefs.h. */
  35249. $curl_includes_winsock2
  35250. $curl_includes_bsdsocket
  35251. $curl_includes_sys_socket
  35252. $curl_includes_socket
  35253. int main (void)
  35254. {
  35255. if(0 != socket(0, 0, 0))
  35256. return 1;
  35257. ;
  35258. return 0;
  35259. }
  35260. _ACEOF
  35261. if ac_fn_c_try_compile "$LINENO"
  35262. then :
  35263. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  35264. printf "%s\n" "yes" >&6; }
  35265. tst_compi_socket="yes"
  35266. else $as_nop
  35267. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  35268. printf "%s\n" "no" >&6; }
  35269. tst_compi_socket="no"
  35270. fi
  35271. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  35272. fi
  35273. #
  35274. if test "$tst_compi_socket" = "yes"; then
  35275. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if socket usage allowed" >&5
  35276. printf %s "checking if socket usage allowed... " >&6; }
  35277. if test "x$curl_disallow_socket" != "xyes"; then
  35278. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  35279. printf "%s\n" "yes" >&6; }
  35280. tst_allow_socket="yes"
  35281. else
  35282. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  35283. printf "%s\n" "no" >&6; }
  35284. tst_allow_socket="no"
  35285. fi
  35286. fi
  35287. #
  35288. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if socket might be used" >&5
  35289. printf %s "checking if socket might be used... " >&6; }
  35290. if test "$tst_links_socket" = "yes" &&
  35291. test "$tst_proto_socket" = "yes" &&
  35292. test "$tst_compi_socket" = "yes" &&
  35293. test "$tst_allow_socket" = "yes"; then
  35294. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  35295. printf "%s\n" "yes" >&6; }
  35296. printf "%s\n" "#define HAVE_SOCKET 1" >>confdefs.h
  35297. curl_cv_func_socket="yes"
  35298. else
  35299. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  35300. printf "%s\n" "no" >&6; }
  35301. curl_cv_func_socket="no"
  35302. fi
  35303. #
  35304. tst_links_socketpair="unknown"
  35305. tst_proto_socketpair="unknown"
  35306. tst_compi_socketpair="unknown"
  35307. tst_allow_socketpair="unknown"
  35308. #
  35309. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if socketpair can be linked" >&5
  35310. printf %s "checking if socketpair can be linked... " >&6; }
  35311. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  35312. /* end confdefs.h. */
  35313. #define socketpair innocuous_socketpair
  35314. #ifdef __STDC__
  35315. # include <limits.h>
  35316. #else
  35317. # include <assert.h>
  35318. #endif
  35319. #undef socketpair
  35320. #ifdef __cplusplus
  35321. extern "C"
  35322. #endif
  35323. char socketpair ();
  35324. #if defined __stub_socketpair || defined __stub___socketpair
  35325. choke me
  35326. #endif
  35327. int main (void)
  35328. {
  35329. return socketpair ();
  35330. ;
  35331. return 0;
  35332. }
  35333. _ACEOF
  35334. if ac_fn_c_try_link "$LINENO"
  35335. then :
  35336. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  35337. printf "%s\n" "yes" >&6; }
  35338. tst_links_socketpair="yes"
  35339. else $as_nop
  35340. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  35341. printf "%s\n" "no" >&6; }
  35342. tst_links_socketpair="no"
  35343. fi
  35344. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  35345. conftest$ac_exeext conftest.$ac_ext
  35346. #
  35347. if test "$tst_links_socketpair" = "yes"; then
  35348. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if socketpair is prototyped" >&5
  35349. printf %s "checking if socketpair is prototyped... " >&6; }
  35350. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  35351. /* end confdefs.h. */
  35352. $curl_includes_sys_socket
  35353. $curl_includes_socket
  35354. _ACEOF
  35355. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  35356. $EGREP "socketpair" >/dev/null 2>&1
  35357. then :
  35358. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  35359. printf "%s\n" "yes" >&6; }
  35360. tst_proto_socketpair="yes"
  35361. else $as_nop
  35362. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  35363. printf "%s\n" "no" >&6; }
  35364. tst_proto_socketpair="no"
  35365. fi
  35366. rm -rf conftest*
  35367. fi
  35368. #
  35369. if test "$tst_proto_socketpair" = "yes"; then
  35370. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if socketpair is compilable" >&5
  35371. printf %s "checking if socketpair is compilable... " >&6; }
  35372. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  35373. /* end confdefs.h. */
  35374. $curl_includes_sys_socket
  35375. $curl_includes_socket
  35376. int main (void)
  35377. {
  35378. int sv[2];
  35379. if(0 != socketpair(0, 0, 0, sv))
  35380. return 1;
  35381. ;
  35382. return 0;
  35383. }
  35384. _ACEOF
  35385. if ac_fn_c_try_compile "$LINENO"
  35386. then :
  35387. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  35388. printf "%s\n" "yes" >&6; }
  35389. tst_compi_socketpair="yes"
  35390. else $as_nop
  35391. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  35392. printf "%s\n" "no" >&6; }
  35393. tst_compi_socketpair="no"
  35394. fi
  35395. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  35396. fi
  35397. #
  35398. if test "$tst_compi_socketpair" = "yes"; then
  35399. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if socketpair usage allowed" >&5
  35400. printf %s "checking if socketpair usage allowed... " >&6; }
  35401. if test "x$curl_disallow_socketpair" != "xyes"; then
  35402. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  35403. printf "%s\n" "yes" >&6; }
  35404. tst_allow_socketpair="yes"
  35405. else
  35406. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  35407. printf "%s\n" "no" >&6; }
  35408. tst_allow_socketpair="no"
  35409. fi
  35410. fi
  35411. #
  35412. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if socketpair might be used" >&5
  35413. printf %s "checking if socketpair might be used... " >&6; }
  35414. if test "$tst_links_socketpair" = "yes" &&
  35415. test "$tst_proto_socketpair" = "yes" &&
  35416. test "$tst_compi_socketpair" = "yes" &&
  35417. test "$tst_allow_socketpair" = "yes"; then
  35418. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  35419. printf "%s\n" "yes" >&6; }
  35420. printf "%s\n" "#define HAVE_SOCKETPAIR 1" >>confdefs.h
  35421. curl_cv_func_socketpair="yes"
  35422. else
  35423. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  35424. printf "%s\n" "no" >&6; }
  35425. curl_cv_func_socketpair="no"
  35426. fi
  35427. #
  35428. tst_links_strcasecmp="unknown"
  35429. tst_proto_strcasecmp="unknown"
  35430. tst_compi_strcasecmp="unknown"
  35431. tst_allow_strcasecmp="unknown"
  35432. #
  35433. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if strcasecmp can be linked" >&5
  35434. printf %s "checking if strcasecmp can be linked... " >&6; }
  35435. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  35436. /* end confdefs.h. */
  35437. #define strcasecmp innocuous_strcasecmp
  35438. #ifdef __STDC__
  35439. # include <limits.h>
  35440. #else
  35441. # include <assert.h>
  35442. #endif
  35443. #undef strcasecmp
  35444. #ifdef __cplusplus
  35445. extern "C"
  35446. #endif
  35447. char strcasecmp ();
  35448. #if defined __stub_strcasecmp || defined __stub___strcasecmp
  35449. choke me
  35450. #endif
  35451. int main (void)
  35452. {
  35453. return strcasecmp ();
  35454. ;
  35455. return 0;
  35456. }
  35457. _ACEOF
  35458. if ac_fn_c_try_link "$LINENO"
  35459. then :
  35460. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  35461. printf "%s\n" "yes" >&6; }
  35462. tst_links_strcasecmp="yes"
  35463. else $as_nop
  35464. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  35465. printf "%s\n" "no" >&6; }
  35466. tst_links_strcasecmp="no"
  35467. fi
  35468. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  35469. conftest$ac_exeext conftest.$ac_ext
  35470. #
  35471. if test "$tst_links_strcasecmp" = "yes"; then
  35472. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if strcasecmp is prototyped" >&5
  35473. printf %s "checking if strcasecmp is prototyped... " >&6; }
  35474. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  35475. /* end confdefs.h. */
  35476. $curl_includes_string
  35477. _ACEOF
  35478. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  35479. $EGREP "strcasecmp" >/dev/null 2>&1
  35480. then :
  35481. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  35482. printf "%s\n" "yes" >&6; }
  35483. tst_proto_strcasecmp="yes"
  35484. else $as_nop
  35485. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  35486. printf "%s\n" "no" >&6; }
  35487. tst_proto_strcasecmp="no"
  35488. fi
  35489. rm -rf conftest*
  35490. fi
  35491. #
  35492. if test "$tst_proto_strcasecmp" = "yes"; then
  35493. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if strcasecmp is compilable" >&5
  35494. printf %s "checking if strcasecmp is compilable... " >&6; }
  35495. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  35496. /* end confdefs.h. */
  35497. $curl_includes_string
  35498. int main (void)
  35499. {
  35500. if(0 != strcasecmp(0, 0))
  35501. return 1;
  35502. ;
  35503. return 0;
  35504. }
  35505. _ACEOF
  35506. if ac_fn_c_try_compile "$LINENO"
  35507. then :
  35508. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  35509. printf "%s\n" "yes" >&6; }
  35510. tst_compi_strcasecmp="yes"
  35511. else $as_nop
  35512. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  35513. printf "%s\n" "no" >&6; }
  35514. tst_compi_strcasecmp="no"
  35515. fi
  35516. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  35517. fi
  35518. #
  35519. if test "$tst_compi_strcasecmp" = "yes"; then
  35520. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if strcasecmp usage allowed" >&5
  35521. printf %s "checking if strcasecmp usage allowed... " >&6; }
  35522. if test "x$curl_disallow_strcasecmp" != "xyes"; then
  35523. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  35524. printf "%s\n" "yes" >&6; }
  35525. tst_allow_strcasecmp="yes"
  35526. else
  35527. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  35528. printf "%s\n" "no" >&6; }
  35529. tst_allow_strcasecmp="no"
  35530. fi
  35531. fi
  35532. #
  35533. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if strcasecmp might be used" >&5
  35534. printf %s "checking if strcasecmp might be used... " >&6; }
  35535. if test "$tst_links_strcasecmp" = "yes" &&
  35536. test "$tst_proto_strcasecmp" = "yes" &&
  35537. test "$tst_compi_strcasecmp" = "yes" &&
  35538. test "$tst_allow_strcasecmp" = "yes"; then
  35539. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  35540. printf "%s\n" "yes" >&6; }
  35541. printf "%s\n" "#define HAVE_STRCASECMP 1" >>confdefs.h
  35542. curl_cv_func_strcasecmp="yes"
  35543. else
  35544. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  35545. printf "%s\n" "no" >&6; }
  35546. curl_cv_func_strcasecmp="no"
  35547. fi
  35548. #
  35549. tst_links_strcmpi="unknown"
  35550. tst_proto_strcmpi="unknown"
  35551. tst_compi_strcmpi="unknown"
  35552. tst_allow_strcmpi="unknown"
  35553. #
  35554. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if strcmpi can be linked" >&5
  35555. printf %s "checking if strcmpi can be linked... " >&6; }
  35556. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  35557. /* end confdefs.h. */
  35558. #define strcmpi innocuous_strcmpi
  35559. #ifdef __STDC__
  35560. # include <limits.h>
  35561. #else
  35562. # include <assert.h>
  35563. #endif
  35564. #undef strcmpi
  35565. #ifdef __cplusplus
  35566. extern "C"
  35567. #endif
  35568. char strcmpi ();
  35569. #if defined __stub_strcmpi || defined __stub___strcmpi
  35570. choke me
  35571. #endif
  35572. int main (void)
  35573. {
  35574. return strcmpi ();
  35575. ;
  35576. return 0;
  35577. }
  35578. _ACEOF
  35579. if ac_fn_c_try_link "$LINENO"
  35580. then :
  35581. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  35582. printf "%s\n" "yes" >&6; }
  35583. tst_links_strcmpi="yes"
  35584. else $as_nop
  35585. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  35586. printf "%s\n" "no" >&6; }
  35587. tst_links_strcmpi="no"
  35588. fi
  35589. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  35590. conftest$ac_exeext conftest.$ac_ext
  35591. #
  35592. if test "$tst_links_strcmpi" = "yes"; then
  35593. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if strcmpi is prototyped" >&5
  35594. printf %s "checking if strcmpi is prototyped... " >&6; }
  35595. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  35596. /* end confdefs.h. */
  35597. $curl_includes_string
  35598. _ACEOF
  35599. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  35600. $EGREP "strcmpi" >/dev/null 2>&1
  35601. then :
  35602. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  35603. printf "%s\n" "yes" >&6; }
  35604. tst_proto_strcmpi="yes"
  35605. else $as_nop
  35606. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  35607. printf "%s\n" "no" >&6; }
  35608. tst_proto_strcmpi="no"
  35609. fi
  35610. rm -rf conftest*
  35611. fi
  35612. #
  35613. if test "$tst_proto_strcmpi" = "yes"; then
  35614. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if strcmpi is compilable" >&5
  35615. printf %s "checking if strcmpi is compilable... " >&6; }
  35616. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  35617. /* end confdefs.h. */
  35618. $curl_includes_string
  35619. int main (void)
  35620. {
  35621. if(0 != strcmpi(0, 0))
  35622. return 1;
  35623. ;
  35624. return 0;
  35625. }
  35626. _ACEOF
  35627. if ac_fn_c_try_compile "$LINENO"
  35628. then :
  35629. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  35630. printf "%s\n" "yes" >&6; }
  35631. tst_compi_strcmpi="yes"
  35632. else $as_nop
  35633. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  35634. printf "%s\n" "no" >&6; }
  35635. tst_compi_strcmpi="no"
  35636. fi
  35637. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  35638. fi
  35639. #
  35640. if test "$tst_compi_strcmpi" = "yes"; then
  35641. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if strcmpi usage allowed" >&5
  35642. printf %s "checking if strcmpi usage allowed... " >&6; }
  35643. if test "x$curl_disallow_strcmpi" != "xyes"; then
  35644. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  35645. printf "%s\n" "yes" >&6; }
  35646. tst_allow_strcmpi="yes"
  35647. else
  35648. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  35649. printf "%s\n" "no" >&6; }
  35650. tst_allow_strcmpi="no"
  35651. fi
  35652. fi
  35653. #
  35654. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if strcmpi might be used" >&5
  35655. printf %s "checking if strcmpi might be used... " >&6; }
  35656. if test "$tst_links_strcmpi" = "yes" &&
  35657. test "$tst_proto_strcmpi" = "yes" &&
  35658. test "$tst_compi_strcmpi" = "yes" &&
  35659. test "$tst_allow_strcmpi" = "yes"; then
  35660. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  35661. printf "%s\n" "yes" >&6; }
  35662. printf "%s\n" "#define HAVE_STRCMPI 1" >>confdefs.h
  35663. curl_cv_func_strcmpi="yes"
  35664. else
  35665. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  35666. printf "%s\n" "no" >&6; }
  35667. curl_cv_func_strcmpi="no"
  35668. fi
  35669. #
  35670. tst_links_strdup="unknown"
  35671. tst_proto_strdup="unknown"
  35672. tst_compi_strdup="unknown"
  35673. tst_allow_strdup="unknown"
  35674. #
  35675. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if strdup can be linked" >&5
  35676. printf %s "checking if strdup can be linked... " >&6; }
  35677. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  35678. /* end confdefs.h. */
  35679. #define strdup innocuous_strdup
  35680. #ifdef __STDC__
  35681. # include <limits.h>
  35682. #else
  35683. # include <assert.h>
  35684. #endif
  35685. #undef strdup
  35686. #ifdef __cplusplus
  35687. extern "C"
  35688. #endif
  35689. char strdup ();
  35690. #if defined __stub_strdup || defined __stub___strdup
  35691. choke me
  35692. #endif
  35693. int main (void)
  35694. {
  35695. return strdup ();
  35696. ;
  35697. return 0;
  35698. }
  35699. _ACEOF
  35700. if ac_fn_c_try_link "$LINENO"
  35701. then :
  35702. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  35703. printf "%s\n" "yes" >&6; }
  35704. tst_links_strdup="yes"
  35705. else $as_nop
  35706. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  35707. printf "%s\n" "no" >&6; }
  35708. tst_links_strdup="no"
  35709. fi
  35710. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  35711. conftest$ac_exeext conftest.$ac_ext
  35712. #
  35713. if test "$tst_links_strdup" = "yes"; then
  35714. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if strdup is prototyped" >&5
  35715. printf %s "checking if strdup is prototyped... " >&6; }
  35716. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  35717. /* end confdefs.h. */
  35718. $curl_includes_string
  35719. _ACEOF
  35720. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  35721. $EGREP "strdup" >/dev/null 2>&1
  35722. then :
  35723. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  35724. printf "%s\n" "yes" >&6; }
  35725. tst_proto_strdup="yes"
  35726. else $as_nop
  35727. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  35728. printf "%s\n" "no" >&6; }
  35729. tst_proto_strdup="no"
  35730. fi
  35731. rm -rf conftest*
  35732. fi
  35733. #
  35734. if test "$tst_proto_strdup" = "yes"; then
  35735. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if strdup is compilable" >&5
  35736. printf %s "checking if strdup is compilable... " >&6; }
  35737. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  35738. /* end confdefs.h. */
  35739. $curl_includes_string
  35740. int main (void)
  35741. {
  35742. if(0 != strdup(0))
  35743. return 1;
  35744. ;
  35745. return 0;
  35746. }
  35747. _ACEOF
  35748. if ac_fn_c_try_compile "$LINENO"
  35749. then :
  35750. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  35751. printf "%s\n" "yes" >&6; }
  35752. tst_compi_strdup="yes"
  35753. else $as_nop
  35754. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  35755. printf "%s\n" "no" >&6; }
  35756. tst_compi_strdup="no"
  35757. fi
  35758. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  35759. fi
  35760. #
  35761. if test "$tst_compi_strdup" = "yes"; then
  35762. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if strdup usage allowed" >&5
  35763. printf %s "checking if strdup usage allowed... " >&6; }
  35764. if test "x$curl_disallow_strdup" != "xyes"; then
  35765. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  35766. printf "%s\n" "yes" >&6; }
  35767. tst_allow_strdup="yes"
  35768. else
  35769. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  35770. printf "%s\n" "no" >&6; }
  35771. tst_allow_strdup="no"
  35772. fi
  35773. fi
  35774. #
  35775. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if strdup might be used" >&5
  35776. printf %s "checking if strdup might be used... " >&6; }
  35777. if test "$tst_links_strdup" = "yes" &&
  35778. test "$tst_proto_strdup" = "yes" &&
  35779. test "$tst_compi_strdup" = "yes" &&
  35780. test "$tst_allow_strdup" = "yes"; then
  35781. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  35782. printf "%s\n" "yes" >&6; }
  35783. printf "%s\n" "#define HAVE_STRDUP 1" >>confdefs.h
  35784. curl_cv_func_strdup="yes"
  35785. else
  35786. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  35787. printf "%s\n" "no" >&6; }
  35788. curl_cv_func_strdup="no"
  35789. fi
  35790. #
  35791. tst_links_strerror_r="unknown"
  35792. tst_proto_strerror_r="unknown"
  35793. tst_compi_strerror_r="unknown"
  35794. tst_glibc_strerror_r="unknown"
  35795. tst_posix_strerror_r="unknown"
  35796. tst_allow_strerror_r="unknown"
  35797. tst_works_glibc_strerror_r="unknown"
  35798. tst_works_posix_strerror_r="unknown"
  35799. tst_glibc_strerror_r_type_arg3="unknown"
  35800. tst_posix_strerror_r_type_arg3="unknown"
  35801. #
  35802. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if strerror_r can be linked" >&5
  35803. printf %s "checking if strerror_r can be linked... " >&6; }
  35804. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  35805. /* end confdefs.h. */
  35806. #define strerror_r innocuous_strerror_r
  35807. #ifdef __STDC__
  35808. # include <limits.h>
  35809. #else
  35810. # include <assert.h>
  35811. #endif
  35812. #undef strerror_r
  35813. #ifdef __cplusplus
  35814. extern "C"
  35815. #endif
  35816. char strerror_r ();
  35817. #if defined __stub_strerror_r || defined __stub___strerror_r
  35818. choke me
  35819. #endif
  35820. int main (void)
  35821. {
  35822. return strerror_r ();
  35823. ;
  35824. return 0;
  35825. }
  35826. _ACEOF
  35827. if ac_fn_c_try_link "$LINENO"
  35828. then :
  35829. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  35830. printf "%s\n" "yes" >&6; }
  35831. tst_links_strerror_r="yes"
  35832. else $as_nop
  35833. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  35834. printf "%s\n" "no" >&6; }
  35835. tst_links_strerror_r="no"
  35836. fi
  35837. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  35838. conftest$ac_exeext conftest.$ac_ext
  35839. #
  35840. if test "$tst_links_strerror_r" = "yes"; then
  35841. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if strerror_r is prototyped" >&5
  35842. printf %s "checking if strerror_r is prototyped... " >&6; }
  35843. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  35844. /* end confdefs.h. */
  35845. $curl_includes_string
  35846. _ACEOF
  35847. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  35848. $EGREP "strerror_r" >/dev/null 2>&1
  35849. then :
  35850. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  35851. printf "%s\n" "yes" >&6; }
  35852. tst_proto_strerror_r="yes"
  35853. else $as_nop
  35854. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  35855. printf "%s\n" "no" >&6; }
  35856. tst_proto_strerror_r="no"
  35857. fi
  35858. rm -rf conftest*
  35859. fi
  35860. #
  35861. if test "$tst_proto_strerror_r" = "yes"; then
  35862. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if strerror_r is compilable" >&5
  35863. printf %s "checking if strerror_r is compilable... " >&6; }
  35864. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  35865. /* end confdefs.h. */
  35866. $curl_includes_string
  35867. int main (void)
  35868. {
  35869. if(0 != strerror_r(0, 0, 0))
  35870. return 1;
  35871. ;
  35872. return 0;
  35873. }
  35874. _ACEOF
  35875. if ac_fn_c_try_compile "$LINENO"
  35876. then :
  35877. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  35878. printf "%s\n" "yes" >&6; }
  35879. tst_compi_strerror_r="yes"
  35880. else $as_nop
  35881. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  35882. printf "%s\n" "no" >&6; }
  35883. tst_compi_strerror_r="no"
  35884. fi
  35885. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  35886. fi
  35887. #
  35888. if test "$tst_compi_strerror_r" = "yes"; then
  35889. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if strerror_r is glibc like" >&5
  35890. printf %s "checking if strerror_r is glibc like... " >&6; }
  35891. tst_glibc_strerror_r_type_arg3="unknown"
  35892. for arg3 in 'size_t' 'int' 'unsigned int'; do
  35893. if test "$tst_glibc_strerror_r_type_arg3" = "unknown"; then
  35894. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  35895. /* end confdefs.h. */
  35896. $curl_includes_string
  35897. char *strerror_r(int errnum, char *workbuf, $arg3 bufsize);
  35898. int main (void)
  35899. {
  35900. if(0 != strerror_r(0, 0, 0))
  35901. return 1;
  35902. ;
  35903. return 0;
  35904. }
  35905. _ACEOF
  35906. if ac_fn_c_try_compile "$LINENO"
  35907. then :
  35908. tst_glibc_strerror_r_type_arg3="$arg3"
  35909. fi
  35910. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  35911. fi
  35912. done
  35913. case "$tst_glibc_strerror_r_type_arg3" in
  35914. unknown)
  35915. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  35916. printf "%s\n" "no" >&6; }
  35917. tst_glibc_strerror_r="no"
  35918. ;;
  35919. *)
  35920. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  35921. printf "%s\n" "yes" >&6; }
  35922. tst_glibc_strerror_r="yes"
  35923. ;;
  35924. esac
  35925. fi
  35926. #
  35927. if test "x$cross_compiling" != "xyes" &&
  35928. test "$tst_glibc_strerror_r" = "yes"; then
  35929. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if strerror_r seems to work" >&5
  35930. printf %s "checking if strerror_r seems to work... " >&6; }
  35931. old=$LD_LIBRARY_PATH
  35932. LD_LIBRARY_PATH=$CURL_LIBRARY_PATH:$old
  35933. export LD_LIBRARY_PATH
  35934. if test "$cross_compiling" = yes
  35935. then :
  35936. { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  35937. printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
  35938. as_fn_error $? "cannot run test program while cross compiling
  35939. See \`config.log' for more details" "$LINENO" 5; }
  35940. else $as_nop
  35941. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  35942. /* end confdefs.h. */
  35943. $curl_includes_stdlib
  35944. $curl_includes_string
  35945. # include <errno.h>
  35946. int main (void)
  35947. {
  35948. char buffer[1024];
  35949. char *string = 0;
  35950. buffer[0] = '\0';
  35951. string = strerror_r(EACCES, buffer, sizeof(buffer));
  35952. if(!string)
  35953. exit(1); /* fail */
  35954. if(!string[0])
  35955. exit(1); /* fail */
  35956. else
  35957. exit(0);
  35958. ;
  35959. return 0;
  35960. }
  35961. _ACEOF
  35962. if ac_fn_c_try_run "$LINENO"
  35963. then :
  35964. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  35965. printf "%s\n" "yes" >&6; }
  35966. tst_works_glibc_strerror_r="yes"
  35967. else $as_nop
  35968. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  35969. printf "%s\n" "no" >&6; }
  35970. tst_works_glibc_strerror_r="no"
  35971. fi
  35972. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  35973. conftest.$ac_objext conftest.beam conftest.$ac_ext
  35974. fi
  35975. LD_LIBRARY_PATH=$old # restore
  35976. fi
  35977. #
  35978. if test "$tst_compi_strerror_r" = "yes" &&
  35979. test "$tst_works_glibc_strerror_r" != "yes"; then
  35980. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if strerror_r is POSIX like" >&5
  35981. printf %s "checking if strerror_r is POSIX like... " >&6; }
  35982. tst_posix_strerror_r_type_arg3="unknown"
  35983. for arg3 in 'size_t' 'int' 'unsigned int'; do
  35984. if test "$tst_posix_strerror_r_type_arg3" = "unknown"; then
  35985. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  35986. /* end confdefs.h. */
  35987. $curl_includes_string
  35988. int strerror_r(int errnum, char *resultbuf, $arg3 bufsize);
  35989. int main (void)
  35990. {
  35991. if(0 != strerror_r(0, 0, 0))
  35992. return 1;
  35993. ;
  35994. return 0;
  35995. }
  35996. _ACEOF
  35997. if ac_fn_c_try_compile "$LINENO"
  35998. then :
  35999. tst_posix_strerror_r_type_arg3="$arg3"
  36000. fi
  36001. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  36002. fi
  36003. done
  36004. case "$tst_posix_strerror_r_type_arg3" in
  36005. unknown)
  36006. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  36007. printf "%s\n" "no" >&6; }
  36008. tst_posix_strerror_r="no"
  36009. ;;
  36010. *)
  36011. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  36012. printf "%s\n" "yes" >&6; }
  36013. tst_posix_strerror_r="yes"
  36014. ;;
  36015. esac
  36016. fi
  36017. #
  36018. if test "x$cross_compiling" != "xyes" &&
  36019. test "$tst_posix_strerror_r" = "yes"; then
  36020. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if strerror_r seems to work" >&5
  36021. printf %s "checking if strerror_r seems to work... " >&6; }
  36022. old=$LD_LIBRARY_PATH
  36023. LD_LIBRARY_PATH=$CURL_LIBRARY_PATH:$old
  36024. export LD_LIBRARY_PATH
  36025. if test "$cross_compiling" = yes
  36026. then :
  36027. { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  36028. printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
  36029. as_fn_error $? "cannot run test program while cross compiling
  36030. See \`config.log' for more details" "$LINENO" 5; }
  36031. else $as_nop
  36032. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  36033. /* end confdefs.h. */
  36034. $curl_includes_stdlib
  36035. $curl_includes_string
  36036. # include <errno.h>
  36037. int main (void)
  36038. {
  36039. char buffer[1024];
  36040. int error = 1;
  36041. buffer[0] = '\0';
  36042. error = strerror_r(EACCES, buffer, sizeof(buffer));
  36043. if(error)
  36044. exit(1); /* fail */
  36045. if(buffer[0] == '\0')
  36046. exit(1); /* fail */
  36047. else
  36048. exit(0);
  36049. ;
  36050. return 0;
  36051. }
  36052. _ACEOF
  36053. if ac_fn_c_try_run "$LINENO"
  36054. then :
  36055. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  36056. printf "%s\n" "yes" >&6; }
  36057. tst_works_posix_strerror_r="yes"
  36058. else $as_nop
  36059. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  36060. printf "%s\n" "no" >&6; }
  36061. tst_works_posix_strerror_r="no"
  36062. fi
  36063. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  36064. conftest.$ac_objext conftest.beam conftest.$ac_ext
  36065. fi
  36066. LD_LIBRARY_PATH=$old # restore
  36067. fi
  36068. #
  36069. if test "$tst_works_glibc_strerror_r" = "yes"; then
  36070. tst_posix_strerror_r="no"
  36071. fi
  36072. if test "$tst_works_posix_strerror_r" = "yes"; then
  36073. tst_glibc_strerror_r="no"
  36074. fi
  36075. if test "$tst_glibc_strerror_r" = "yes" &&
  36076. test "$tst_works_glibc_strerror_r" != "no" &&
  36077. test "$tst_posix_strerror_r" != "yes"; then
  36078. tst_allow_strerror_r="check"
  36079. fi
  36080. if test "$tst_posix_strerror_r" = "yes" &&
  36081. test "$tst_works_posix_strerror_r" != "no" &&
  36082. test "$tst_glibc_strerror_r" != "yes"; then
  36083. tst_allow_strerror_r="check"
  36084. fi
  36085. if test "$tst_allow_strerror_r" = "check"; then
  36086. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if strerror_r usage allowed" >&5
  36087. printf %s "checking if strerror_r usage allowed... " >&6; }
  36088. if test "x$curl_disallow_strerror_r" != "xyes"; then
  36089. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  36090. printf "%s\n" "yes" >&6; }
  36091. tst_allow_strerror_r="yes"
  36092. else
  36093. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  36094. printf "%s\n" "no" >&6; }
  36095. tst_allow_strerror_r="no"
  36096. fi
  36097. fi
  36098. #
  36099. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if strerror_r might be used" >&5
  36100. printf %s "checking if strerror_r might be used... " >&6; }
  36101. if test "$tst_links_strerror_r" = "yes" &&
  36102. test "$tst_proto_strerror_r" = "yes" &&
  36103. test "$tst_compi_strerror_r" = "yes" &&
  36104. test "$tst_allow_strerror_r" = "yes"; then
  36105. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  36106. printf "%s\n" "yes" >&6; }
  36107. if test "$tst_glibc_strerror_r" = "yes"; then
  36108. printf "%s\n" "#define HAVE_STRERROR_R 1" >>confdefs.h
  36109. printf "%s\n" "#define HAVE_GLIBC_STRERROR_R 1" >>confdefs.h
  36110. printf "%s\n" "#define STRERROR_R_TYPE_ARG3 $tst_glibc_strerror_r_type_arg3" >>confdefs.h
  36111. fi
  36112. if test "$tst_posix_strerror_r" = "yes"; then
  36113. printf "%s\n" "#define HAVE_STRERROR_R 1" >>confdefs.h
  36114. printf "%s\n" "#define HAVE_POSIX_STRERROR_R 1" >>confdefs.h
  36115. printf "%s\n" "#define STRERROR_R_TYPE_ARG3 $tst_posix_strerror_r_type_arg3" >>confdefs.h
  36116. fi
  36117. curl_cv_func_strerror_r="yes"
  36118. else
  36119. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  36120. printf "%s\n" "no" >&6; }
  36121. curl_cv_func_strerror_r="no"
  36122. fi
  36123. #
  36124. if test "$tst_compi_strerror_r" = "yes" &&
  36125. test "$tst_allow_strerror_r" = "unknown"; then
  36126. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cannot determine strerror_r() style: edit lib/curl_config.h manually." >&5
  36127. printf "%s\n" "$as_me: WARNING: cannot determine strerror_r() style: edit lib/curl_config.h manually." >&2;}
  36128. fi
  36129. #
  36130. #
  36131. tst_links_stricmp="unknown"
  36132. tst_proto_stricmp="unknown"
  36133. tst_compi_stricmp="unknown"
  36134. tst_allow_stricmp="unknown"
  36135. #
  36136. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if stricmp can be linked" >&5
  36137. printf %s "checking if stricmp can be linked... " >&6; }
  36138. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  36139. /* end confdefs.h. */
  36140. #define stricmp innocuous_stricmp
  36141. #ifdef __STDC__
  36142. # include <limits.h>
  36143. #else
  36144. # include <assert.h>
  36145. #endif
  36146. #undef stricmp
  36147. #ifdef __cplusplus
  36148. extern "C"
  36149. #endif
  36150. char stricmp ();
  36151. #if defined __stub_stricmp || defined __stub___stricmp
  36152. choke me
  36153. #endif
  36154. int main (void)
  36155. {
  36156. return stricmp ();
  36157. ;
  36158. return 0;
  36159. }
  36160. _ACEOF
  36161. if ac_fn_c_try_link "$LINENO"
  36162. then :
  36163. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  36164. printf "%s\n" "yes" >&6; }
  36165. tst_links_stricmp="yes"
  36166. else $as_nop
  36167. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  36168. printf "%s\n" "no" >&6; }
  36169. tst_links_stricmp="no"
  36170. fi
  36171. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  36172. conftest$ac_exeext conftest.$ac_ext
  36173. #
  36174. if test "$tst_links_stricmp" = "yes"; then
  36175. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if stricmp is prototyped" >&5
  36176. printf %s "checking if stricmp is prototyped... " >&6; }
  36177. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  36178. /* end confdefs.h. */
  36179. $curl_includes_string
  36180. _ACEOF
  36181. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  36182. $EGREP "stricmp" >/dev/null 2>&1
  36183. then :
  36184. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  36185. printf "%s\n" "yes" >&6; }
  36186. tst_proto_stricmp="yes"
  36187. else $as_nop
  36188. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  36189. printf "%s\n" "no" >&6; }
  36190. tst_proto_stricmp="no"
  36191. fi
  36192. rm -rf conftest*
  36193. fi
  36194. #
  36195. if test "$tst_proto_stricmp" = "yes"; then
  36196. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if stricmp is compilable" >&5
  36197. printf %s "checking if stricmp is compilable... " >&6; }
  36198. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  36199. /* end confdefs.h. */
  36200. $curl_includes_string
  36201. int main (void)
  36202. {
  36203. if(0 != stricmp(0, 0))
  36204. return 1;
  36205. ;
  36206. return 0;
  36207. }
  36208. _ACEOF
  36209. if ac_fn_c_try_compile "$LINENO"
  36210. then :
  36211. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  36212. printf "%s\n" "yes" >&6; }
  36213. tst_compi_stricmp="yes"
  36214. else $as_nop
  36215. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  36216. printf "%s\n" "no" >&6; }
  36217. tst_compi_stricmp="no"
  36218. fi
  36219. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  36220. fi
  36221. #
  36222. if test "$tst_compi_stricmp" = "yes"; then
  36223. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if stricmp usage allowed" >&5
  36224. printf %s "checking if stricmp usage allowed... " >&6; }
  36225. if test "x$curl_disallow_stricmp" != "xyes"; then
  36226. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  36227. printf "%s\n" "yes" >&6; }
  36228. tst_allow_stricmp="yes"
  36229. else
  36230. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  36231. printf "%s\n" "no" >&6; }
  36232. tst_allow_stricmp="no"
  36233. fi
  36234. fi
  36235. #
  36236. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if stricmp might be used" >&5
  36237. printf %s "checking if stricmp might be used... " >&6; }
  36238. if test "$tst_links_stricmp" = "yes" &&
  36239. test "$tst_proto_stricmp" = "yes" &&
  36240. test "$tst_compi_stricmp" = "yes" &&
  36241. test "$tst_allow_stricmp" = "yes"; then
  36242. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  36243. printf "%s\n" "yes" >&6; }
  36244. printf "%s\n" "#define HAVE_STRICMP 1" >>confdefs.h
  36245. curl_cv_func_stricmp="yes"
  36246. else
  36247. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  36248. printf "%s\n" "no" >&6; }
  36249. curl_cv_func_stricmp="no"
  36250. fi
  36251. #
  36252. tst_links_strncmpi="unknown"
  36253. tst_proto_strncmpi="unknown"
  36254. tst_compi_strncmpi="unknown"
  36255. tst_allow_strncmpi="unknown"
  36256. #
  36257. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if strncmpi can be linked" >&5
  36258. printf %s "checking if strncmpi can be linked... " >&6; }
  36259. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  36260. /* end confdefs.h. */
  36261. #define strncmpi innocuous_strncmpi
  36262. #ifdef __STDC__
  36263. # include <limits.h>
  36264. #else
  36265. # include <assert.h>
  36266. #endif
  36267. #undef strncmpi
  36268. #ifdef __cplusplus
  36269. extern "C"
  36270. #endif
  36271. char strncmpi ();
  36272. #if defined __stub_strncmpi || defined __stub___strncmpi
  36273. choke me
  36274. #endif
  36275. int main (void)
  36276. {
  36277. return strncmpi ();
  36278. ;
  36279. return 0;
  36280. }
  36281. _ACEOF
  36282. if ac_fn_c_try_link "$LINENO"
  36283. then :
  36284. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  36285. printf "%s\n" "yes" >&6; }
  36286. tst_links_strncmpi="yes"
  36287. else $as_nop
  36288. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  36289. printf "%s\n" "no" >&6; }
  36290. tst_links_strncmpi="no"
  36291. fi
  36292. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  36293. conftest$ac_exeext conftest.$ac_ext
  36294. #
  36295. if test "$tst_links_strncmpi" = "yes"; then
  36296. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if strncmpi is prototyped" >&5
  36297. printf %s "checking if strncmpi is prototyped... " >&6; }
  36298. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  36299. /* end confdefs.h. */
  36300. $curl_includes_string
  36301. _ACEOF
  36302. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  36303. $EGREP "strncmpi" >/dev/null 2>&1
  36304. then :
  36305. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  36306. printf "%s\n" "yes" >&6; }
  36307. tst_proto_strncmpi="yes"
  36308. else $as_nop
  36309. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  36310. printf "%s\n" "no" >&6; }
  36311. tst_proto_strncmpi="no"
  36312. fi
  36313. rm -rf conftest*
  36314. fi
  36315. #
  36316. if test "$tst_proto_strncmpi" = "yes"; then
  36317. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if strncmpi is compilable" >&5
  36318. printf %s "checking if strncmpi is compilable... " >&6; }
  36319. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  36320. /* end confdefs.h. */
  36321. $curl_includes_string
  36322. int main (void)
  36323. {
  36324. if(0 != strncmpi(0, 0))
  36325. return 1;
  36326. ;
  36327. return 0;
  36328. }
  36329. _ACEOF
  36330. if ac_fn_c_try_compile "$LINENO"
  36331. then :
  36332. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  36333. printf "%s\n" "yes" >&6; }
  36334. tst_compi_strncmpi="yes"
  36335. else $as_nop
  36336. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  36337. printf "%s\n" "no" >&6; }
  36338. tst_compi_strncmpi="no"
  36339. fi
  36340. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  36341. fi
  36342. #
  36343. if test "$tst_compi_strncmpi" = "yes"; then
  36344. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if strncmpi usage allowed" >&5
  36345. printf %s "checking if strncmpi usage allowed... " >&6; }
  36346. if test "x$curl_disallow_strncmpi" != "xyes"; then
  36347. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  36348. printf "%s\n" "yes" >&6; }
  36349. tst_allow_strncmpi="yes"
  36350. else
  36351. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  36352. printf "%s\n" "no" >&6; }
  36353. tst_allow_strncmpi="no"
  36354. fi
  36355. fi
  36356. #
  36357. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if strncmpi might be used" >&5
  36358. printf %s "checking if strncmpi might be used... " >&6; }
  36359. if test "$tst_links_strncmpi" = "yes" &&
  36360. test "$tst_proto_strncmpi" = "yes" &&
  36361. test "$tst_compi_strncmpi" = "yes" &&
  36362. test "$tst_allow_strncmpi" = "yes"; then
  36363. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  36364. printf "%s\n" "yes" >&6; }
  36365. printf "%s\n" "#define HAVE_STRNCMPI 1" >>confdefs.h
  36366. curl_cv_func_strncmpi="yes"
  36367. else
  36368. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  36369. printf "%s\n" "no" >&6; }
  36370. curl_cv_func_strncmpi="no"
  36371. fi
  36372. #
  36373. tst_links_strnicmp="unknown"
  36374. tst_proto_strnicmp="unknown"
  36375. tst_compi_strnicmp="unknown"
  36376. tst_allow_strnicmp="unknown"
  36377. #
  36378. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if strnicmp can be linked" >&5
  36379. printf %s "checking if strnicmp can be linked... " >&6; }
  36380. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  36381. /* end confdefs.h. */
  36382. #define strnicmp innocuous_strnicmp
  36383. #ifdef __STDC__
  36384. # include <limits.h>
  36385. #else
  36386. # include <assert.h>
  36387. #endif
  36388. #undef strnicmp
  36389. #ifdef __cplusplus
  36390. extern "C"
  36391. #endif
  36392. char strnicmp ();
  36393. #if defined __stub_strnicmp || defined __stub___strnicmp
  36394. choke me
  36395. #endif
  36396. int main (void)
  36397. {
  36398. return strnicmp ();
  36399. ;
  36400. return 0;
  36401. }
  36402. _ACEOF
  36403. if ac_fn_c_try_link "$LINENO"
  36404. then :
  36405. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  36406. printf "%s\n" "yes" >&6; }
  36407. tst_links_strnicmp="yes"
  36408. else $as_nop
  36409. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  36410. printf "%s\n" "no" >&6; }
  36411. tst_links_strnicmp="no"
  36412. fi
  36413. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  36414. conftest$ac_exeext conftest.$ac_ext
  36415. #
  36416. if test "$tst_links_strnicmp" = "yes"; then
  36417. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if strnicmp is prototyped" >&5
  36418. printf %s "checking if strnicmp is prototyped... " >&6; }
  36419. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  36420. /* end confdefs.h. */
  36421. $curl_includes_string
  36422. _ACEOF
  36423. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  36424. $EGREP "strnicmp" >/dev/null 2>&1
  36425. then :
  36426. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  36427. printf "%s\n" "yes" >&6; }
  36428. tst_proto_strnicmp="yes"
  36429. else $as_nop
  36430. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  36431. printf "%s\n" "no" >&6; }
  36432. tst_proto_strnicmp="no"
  36433. fi
  36434. rm -rf conftest*
  36435. fi
  36436. #
  36437. if test "$tst_proto_strnicmp" = "yes"; then
  36438. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if strnicmp is compilable" >&5
  36439. printf %s "checking if strnicmp is compilable... " >&6; }
  36440. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  36441. /* end confdefs.h. */
  36442. $curl_includes_string
  36443. int main (void)
  36444. {
  36445. if(0 != strnicmp(0, 0))
  36446. return 1;
  36447. ;
  36448. return 0;
  36449. }
  36450. _ACEOF
  36451. if ac_fn_c_try_compile "$LINENO"
  36452. then :
  36453. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  36454. printf "%s\n" "yes" >&6; }
  36455. tst_compi_strnicmp="yes"
  36456. else $as_nop
  36457. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  36458. printf "%s\n" "no" >&6; }
  36459. tst_compi_strnicmp="no"
  36460. fi
  36461. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  36462. fi
  36463. #
  36464. if test "$tst_compi_strnicmp" = "yes"; then
  36465. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if strnicmp usage allowed" >&5
  36466. printf %s "checking if strnicmp usage allowed... " >&6; }
  36467. if test "x$curl_disallow_strnicmp" != "xyes"; then
  36468. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  36469. printf "%s\n" "yes" >&6; }
  36470. tst_allow_strnicmp="yes"
  36471. else
  36472. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  36473. printf "%s\n" "no" >&6; }
  36474. tst_allow_strnicmp="no"
  36475. fi
  36476. fi
  36477. #
  36478. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if strnicmp might be used" >&5
  36479. printf %s "checking if strnicmp might be used... " >&6; }
  36480. if test "$tst_links_strnicmp" = "yes" &&
  36481. test "$tst_proto_strnicmp" = "yes" &&
  36482. test "$tst_compi_strnicmp" = "yes" &&
  36483. test "$tst_allow_strnicmp" = "yes"; then
  36484. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  36485. printf "%s\n" "yes" >&6; }
  36486. printf "%s\n" "#define HAVE_STRNICMP 1" >>confdefs.h
  36487. curl_cv_func_strnicmp="yes"
  36488. else
  36489. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  36490. printf "%s\n" "no" >&6; }
  36491. curl_cv_func_strnicmp="no"
  36492. fi
  36493. #
  36494. tst_links_strstr="unknown"
  36495. tst_proto_strstr="unknown"
  36496. tst_compi_strstr="unknown"
  36497. tst_allow_strstr="unknown"
  36498. #
  36499. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if strstr can be linked" >&5
  36500. printf %s "checking if strstr can be linked... " >&6; }
  36501. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  36502. /* end confdefs.h. */
  36503. #define strstr innocuous_strstr
  36504. #ifdef __STDC__
  36505. # include <limits.h>
  36506. #else
  36507. # include <assert.h>
  36508. #endif
  36509. #undef strstr
  36510. #ifdef __cplusplus
  36511. extern "C"
  36512. #endif
  36513. char strstr ();
  36514. #if defined __stub_strstr || defined __stub___strstr
  36515. choke me
  36516. #endif
  36517. int main (void)
  36518. {
  36519. return strstr ();
  36520. ;
  36521. return 0;
  36522. }
  36523. _ACEOF
  36524. if ac_fn_c_try_link "$LINENO"
  36525. then :
  36526. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  36527. printf "%s\n" "yes" >&6; }
  36528. tst_links_strstr="yes"
  36529. else $as_nop
  36530. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  36531. printf "%s\n" "no" >&6; }
  36532. tst_links_strstr="no"
  36533. fi
  36534. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  36535. conftest$ac_exeext conftest.$ac_ext
  36536. #
  36537. if test "$tst_links_strstr" = "yes"; then
  36538. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if strstr is prototyped" >&5
  36539. printf %s "checking if strstr is prototyped... " >&6; }
  36540. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  36541. /* end confdefs.h. */
  36542. $curl_includes_string
  36543. _ACEOF
  36544. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  36545. $EGREP "strstr" >/dev/null 2>&1
  36546. then :
  36547. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  36548. printf "%s\n" "yes" >&6; }
  36549. tst_proto_strstr="yes"
  36550. else $as_nop
  36551. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  36552. printf "%s\n" "no" >&6; }
  36553. tst_proto_strstr="no"
  36554. fi
  36555. rm -rf conftest*
  36556. fi
  36557. #
  36558. if test "$tst_proto_strstr" = "yes"; then
  36559. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if strstr is compilable" >&5
  36560. printf %s "checking if strstr is compilable... " >&6; }
  36561. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  36562. /* end confdefs.h. */
  36563. $curl_includes_string
  36564. int main (void)
  36565. {
  36566. if(0 != strstr(0, 0))
  36567. return 1;
  36568. ;
  36569. return 0;
  36570. }
  36571. _ACEOF
  36572. if ac_fn_c_try_compile "$LINENO"
  36573. then :
  36574. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  36575. printf "%s\n" "yes" >&6; }
  36576. tst_compi_strstr="yes"
  36577. else $as_nop
  36578. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  36579. printf "%s\n" "no" >&6; }
  36580. tst_compi_strstr="no"
  36581. fi
  36582. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  36583. fi
  36584. #
  36585. if test "$tst_compi_strstr" = "yes"; then
  36586. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if strstr usage allowed" >&5
  36587. printf %s "checking if strstr usage allowed... " >&6; }
  36588. if test "x$curl_disallow_strstr" != "xyes"; then
  36589. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  36590. printf "%s\n" "yes" >&6; }
  36591. tst_allow_strstr="yes"
  36592. else
  36593. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  36594. printf "%s\n" "no" >&6; }
  36595. tst_allow_strstr="no"
  36596. fi
  36597. fi
  36598. #
  36599. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if strstr might be used" >&5
  36600. printf %s "checking if strstr might be used... " >&6; }
  36601. if test "$tst_links_strstr" = "yes" &&
  36602. test "$tst_proto_strstr" = "yes" &&
  36603. test "$tst_compi_strstr" = "yes" &&
  36604. test "$tst_allow_strstr" = "yes"; then
  36605. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  36606. printf "%s\n" "yes" >&6; }
  36607. printf "%s\n" "#define HAVE_STRSTR 1" >>confdefs.h
  36608. curl_cv_func_strstr="yes"
  36609. else
  36610. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  36611. printf "%s\n" "no" >&6; }
  36612. curl_cv_func_strstr="no"
  36613. fi
  36614. #
  36615. tst_links_strtok_r="unknown"
  36616. tst_proto_strtok_r="unknown"
  36617. tst_compi_strtok_r="unknown"
  36618. tst_allow_strtok_r="unknown"
  36619. #
  36620. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if strtok_r can be linked" >&5
  36621. printf %s "checking if strtok_r can be linked... " >&6; }
  36622. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  36623. /* end confdefs.h. */
  36624. #define strtok_r innocuous_strtok_r
  36625. #ifdef __STDC__
  36626. # include <limits.h>
  36627. #else
  36628. # include <assert.h>
  36629. #endif
  36630. #undef strtok_r
  36631. #ifdef __cplusplus
  36632. extern "C"
  36633. #endif
  36634. char strtok_r ();
  36635. #if defined __stub_strtok_r || defined __stub___strtok_r
  36636. choke me
  36637. #endif
  36638. int main (void)
  36639. {
  36640. return strtok_r ();
  36641. ;
  36642. return 0;
  36643. }
  36644. _ACEOF
  36645. if ac_fn_c_try_link "$LINENO"
  36646. then :
  36647. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  36648. printf "%s\n" "yes" >&6; }
  36649. tst_links_strtok_r="yes"
  36650. else $as_nop
  36651. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  36652. printf "%s\n" "no" >&6; }
  36653. tst_links_strtok_r="no"
  36654. fi
  36655. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  36656. conftest$ac_exeext conftest.$ac_ext
  36657. #
  36658. if test "$tst_links_strtok_r" = "yes"; then
  36659. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if strtok_r is prototyped" >&5
  36660. printf %s "checking if strtok_r is prototyped... " >&6; }
  36661. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  36662. /* end confdefs.h. */
  36663. $curl_includes_string
  36664. _ACEOF
  36665. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  36666. $EGREP "strtok_r" >/dev/null 2>&1
  36667. then :
  36668. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  36669. printf "%s\n" "yes" >&6; }
  36670. tst_proto_strtok_r="yes"
  36671. else $as_nop
  36672. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  36673. printf "%s\n" "no" >&6; }
  36674. tst_proto_strtok_r="no"
  36675. fi
  36676. rm -rf conftest*
  36677. fi
  36678. #
  36679. if test "$tst_proto_strtok_r" = "yes"; then
  36680. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if strtok_r is compilable" >&5
  36681. printf %s "checking if strtok_r is compilable... " >&6; }
  36682. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  36683. /* end confdefs.h. */
  36684. $curl_includes_string
  36685. int main (void)
  36686. {
  36687. if(0 != strtok_r(0, 0, 0))
  36688. return 1;
  36689. ;
  36690. return 0;
  36691. }
  36692. _ACEOF
  36693. if ac_fn_c_try_compile "$LINENO"
  36694. then :
  36695. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  36696. printf "%s\n" "yes" >&6; }
  36697. tst_compi_strtok_r="yes"
  36698. else $as_nop
  36699. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  36700. printf "%s\n" "no" >&6; }
  36701. tst_compi_strtok_r="no"
  36702. fi
  36703. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  36704. fi
  36705. #
  36706. if test "$tst_compi_strtok_r" = "yes"; then
  36707. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if strtok_r usage allowed" >&5
  36708. printf %s "checking if strtok_r usage allowed... " >&6; }
  36709. if test "x$curl_disallow_strtok_r" != "xyes"; then
  36710. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  36711. printf "%s\n" "yes" >&6; }
  36712. tst_allow_strtok_r="yes"
  36713. else
  36714. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  36715. printf "%s\n" "no" >&6; }
  36716. tst_allow_strtok_r="no"
  36717. fi
  36718. fi
  36719. #
  36720. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if strtok_r might be used" >&5
  36721. printf %s "checking if strtok_r might be used... " >&6; }
  36722. if test "$tst_links_strtok_r" = "yes" &&
  36723. test "$tst_proto_strtok_r" = "yes" &&
  36724. test "$tst_compi_strtok_r" = "yes" &&
  36725. test "$tst_allow_strtok_r" = "yes"; then
  36726. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  36727. printf "%s\n" "yes" >&6; }
  36728. printf "%s\n" "#define HAVE_STRTOK_R 1" >>confdefs.h
  36729. curl_cv_func_strtok_r="yes"
  36730. else
  36731. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  36732. printf "%s\n" "no" >&6; }
  36733. curl_cv_func_strtok_r="no"
  36734. fi
  36735. #
  36736. tst_links_strtoll="unknown"
  36737. tst_proto_strtoll="unknown"
  36738. tst_compi_strtoll="unknown"
  36739. tst_allow_strtoll="unknown"
  36740. #
  36741. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if strtoll can be linked" >&5
  36742. printf %s "checking if strtoll can be linked... " >&6; }
  36743. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  36744. /* end confdefs.h. */
  36745. #define strtoll innocuous_strtoll
  36746. #ifdef __STDC__
  36747. # include <limits.h>
  36748. #else
  36749. # include <assert.h>
  36750. #endif
  36751. #undef strtoll
  36752. #ifdef __cplusplus
  36753. extern "C"
  36754. #endif
  36755. char strtoll ();
  36756. #if defined __stub_strtoll || defined __stub___strtoll
  36757. choke me
  36758. #endif
  36759. int main (void)
  36760. {
  36761. return strtoll ();
  36762. ;
  36763. return 0;
  36764. }
  36765. _ACEOF
  36766. if ac_fn_c_try_link "$LINENO"
  36767. then :
  36768. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  36769. printf "%s\n" "yes" >&6; }
  36770. tst_links_strtoll="yes"
  36771. else $as_nop
  36772. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  36773. printf "%s\n" "no" >&6; }
  36774. tst_links_strtoll="no"
  36775. fi
  36776. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  36777. conftest$ac_exeext conftest.$ac_ext
  36778. #
  36779. if test "$tst_links_strtoll" = "yes"; then
  36780. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if strtoll is prototyped" >&5
  36781. printf %s "checking if strtoll is prototyped... " >&6; }
  36782. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  36783. /* end confdefs.h. */
  36784. $curl_includes_stdlib
  36785. _ACEOF
  36786. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  36787. $EGREP "strtoll" >/dev/null 2>&1
  36788. then :
  36789. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  36790. printf "%s\n" "yes" >&6; }
  36791. tst_proto_strtoll="yes"
  36792. else $as_nop
  36793. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  36794. printf "%s\n" "no" >&6; }
  36795. tst_proto_strtoll="no"
  36796. fi
  36797. rm -rf conftest*
  36798. fi
  36799. #
  36800. if test "$tst_proto_strtoll" = "yes"; then
  36801. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if strtoll is compilable" >&5
  36802. printf %s "checking if strtoll is compilable... " >&6; }
  36803. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  36804. /* end confdefs.h. */
  36805. $curl_includes_stdlib
  36806. int main (void)
  36807. {
  36808. if(0 != strtoll(0, 0, 0))
  36809. return 1;
  36810. ;
  36811. return 0;
  36812. }
  36813. _ACEOF
  36814. if ac_fn_c_try_compile "$LINENO"
  36815. then :
  36816. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  36817. printf "%s\n" "yes" >&6; }
  36818. tst_compi_strtoll="yes"
  36819. else $as_nop
  36820. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  36821. printf "%s\n" "no" >&6; }
  36822. tst_compi_strtoll="no"
  36823. fi
  36824. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  36825. fi
  36826. #
  36827. if test "$tst_compi_strtoll" = "yes"; then
  36828. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if strtoll usage allowed" >&5
  36829. printf %s "checking if strtoll usage allowed... " >&6; }
  36830. if test "x$curl_disallow_strtoll" != "xyes"; then
  36831. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  36832. printf "%s\n" "yes" >&6; }
  36833. tst_allow_strtoll="yes"
  36834. else
  36835. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  36836. printf "%s\n" "no" >&6; }
  36837. tst_allow_strtoll="no"
  36838. fi
  36839. fi
  36840. #
  36841. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if strtoll might be used" >&5
  36842. printf %s "checking if strtoll might be used... " >&6; }
  36843. if test "$tst_links_strtoll" = "yes" &&
  36844. test "$tst_proto_strtoll" = "yes" &&
  36845. test "$tst_compi_strtoll" = "yes" &&
  36846. test "$tst_allow_strtoll" = "yes"; then
  36847. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  36848. printf "%s\n" "yes" >&6; }
  36849. printf "%s\n" "#define HAVE_STRTOLL 1" >>confdefs.h
  36850. curl_cv_func_strtoll="yes"
  36851. else
  36852. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  36853. printf "%s\n" "no" >&6; }
  36854. curl_cv_func_strtoll="no"
  36855. fi
  36856. curl_includes_sys_uio="\
  36857. /* includes start */
  36858. #ifdef HAVE_SYS_TYPES_H
  36859. # include <sys/types.h>
  36860. #endif
  36861. #ifdef HAVE_SYS_UIO_H
  36862. # include <sys/uio.h>
  36863. #endif
  36864. /* includes end */"
  36865. ac_fn_c_check_header_compile "$LINENO" "sys/types.h" "ac_cv_header_sys_types_h" "$curl_includes_sys_uio
  36866. "
  36867. if test "x$ac_cv_header_sys_types_h" = xyes
  36868. then :
  36869. printf "%s\n" "#define HAVE_SYS_TYPES_H 1" >>confdefs.h
  36870. fi
  36871. ac_fn_c_check_header_compile "$LINENO" "sys/uio.h" "ac_cv_header_sys_uio_h" "$curl_includes_sys_uio
  36872. "
  36873. if test "x$ac_cv_header_sys_uio_h" = xyes
  36874. then :
  36875. printf "%s\n" "#define HAVE_SYS_UIO_H 1" >>confdefs.h
  36876. fi
  36877. #
  36878. tst_links_writev="unknown"
  36879. tst_proto_writev="unknown"
  36880. tst_compi_writev="unknown"
  36881. tst_allow_writev="unknown"
  36882. #
  36883. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if writev can be linked" >&5
  36884. printf %s "checking if writev can be linked... " >&6; }
  36885. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  36886. /* end confdefs.h. */
  36887. #define writev innocuous_writev
  36888. #ifdef __STDC__
  36889. # include <limits.h>
  36890. #else
  36891. # include <assert.h>
  36892. #endif
  36893. #undef writev
  36894. #ifdef __cplusplus
  36895. extern "C"
  36896. #endif
  36897. char writev ();
  36898. #if defined __stub_writev || defined __stub___writev
  36899. choke me
  36900. #endif
  36901. int main (void)
  36902. {
  36903. return writev ();
  36904. ;
  36905. return 0;
  36906. }
  36907. _ACEOF
  36908. if ac_fn_c_try_link "$LINENO"
  36909. then :
  36910. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  36911. printf "%s\n" "yes" >&6; }
  36912. tst_links_writev="yes"
  36913. else $as_nop
  36914. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  36915. printf "%s\n" "no" >&6; }
  36916. tst_links_writev="no"
  36917. fi
  36918. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  36919. conftest$ac_exeext conftest.$ac_ext
  36920. #
  36921. if test "$tst_links_writev" = "yes"; then
  36922. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if writev is prototyped" >&5
  36923. printf %s "checking if writev is prototyped... " >&6; }
  36924. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  36925. /* end confdefs.h. */
  36926. $curl_includes_sys_uio
  36927. _ACEOF
  36928. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  36929. $EGREP "writev" >/dev/null 2>&1
  36930. then :
  36931. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  36932. printf "%s\n" "yes" >&6; }
  36933. tst_proto_writev="yes"
  36934. else $as_nop
  36935. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  36936. printf "%s\n" "no" >&6; }
  36937. tst_proto_writev="no"
  36938. fi
  36939. rm -rf conftest*
  36940. fi
  36941. #
  36942. if test "$tst_proto_writev" = "yes"; then
  36943. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if writev is compilable" >&5
  36944. printf %s "checking if writev is compilable... " >&6; }
  36945. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  36946. /* end confdefs.h. */
  36947. $curl_includes_sys_uio
  36948. int main (void)
  36949. {
  36950. if(0 != writev(0, 0, 0))
  36951. return 1;
  36952. ;
  36953. return 0;
  36954. }
  36955. _ACEOF
  36956. if ac_fn_c_try_compile "$LINENO"
  36957. then :
  36958. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  36959. printf "%s\n" "yes" >&6; }
  36960. tst_compi_writev="yes"
  36961. else $as_nop
  36962. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  36963. printf "%s\n" "no" >&6; }
  36964. tst_compi_writev="no"
  36965. fi
  36966. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  36967. fi
  36968. #
  36969. if test "$tst_compi_writev" = "yes"; then
  36970. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if writev usage allowed" >&5
  36971. printf %s "checking if writev usage allowed... " >&6; }
  36972. if test "x$curl_disallow_writev" != "xyes"; then
  36973. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  36974. printf "%s\n" "yes" >&6; }
  36975. tst_allow_writev="yes"
  36976. else
  36977. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  36978. printf "%s\n" "no" >&6; }
  36979. tst_allow_writev="no"
  36980. fi
  36981. fi
  36982. #
  36983. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if writev might be used" >&5
  36984. printf %s "checking if writev might be used... " >&6; }
  36985. if test "$tst_links_writev" = "yes" &&
  36986. test "$tst_proto_writev" = "yes" &&
  36987. test "$tst_compi_writev" = "yes" &&
  36988. test "$tst_allow_writev" = "yes"; then
  36989. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  36990. printf "%s\n" "yes" >&6; }
  36991. printf "%s\n" "#define HAVE_WRITEV 1" >>confdefs.h
  36992. curl_cv_func_writev="yes"
  36993. else
  36994. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  36995. printf "%s\n" "no" >&6; }
  36996. curl_cv_func_writev="no"
  36997. fi
  36998. case $host in
  36999. *msdosdjgpp)
  37000. ac_cv_func_pipe=no
  37001. skipcheck_pipe=yes
  37002. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: skip check for pipe on msdosdjgpp" >&5
  37003. printf "%s\n" "$as_me: skip check for pipe on msdosdjgpp" >&6;}
  37004. ;;
  37005. esac
  37006. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC options needed to detect all undeclared functions" >&5
  37007. printf %s "checking for $CC options needed to detect all undeclared functions... " >&6; }
  37008. if test ${ac_cv_c_undeclared_builtin_options+y}
  37009. then :
  37010. printf %s "(cached) " >&6
  37011. else $as_nop
  37012. ac_save_CFLAGS=$CFLAGS
  37013. ac_cv_c_undeclared_builtin_options='cannot detect'
  37014. for ac_arg in '' -fno-builtin; do
  37015. CFLAGS="$ac_save_CFLAGS $ac_arg"
  37016. # This test program should *not* compile successfully.
  37017. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  37018. /* end confdefs.h. */
  37019. int main (void)
  37020. {
  37021. (void) strchr;
  37022. ;
  37023. return 0;
  37024. }
  37025. _ACEOF
  37026. if ac_fn_c_try_compile "$LINENO"
  37027. then :
  37028. else $as_nop
  37029. # This test program should compile successfully.
  37030. # No library function is consistently available on
  37031. # freestanding implementations, so test against a dummy
  37032. # declaration. Include always-available headers on the
  37033. # off chance that they somehow elicit warnings.
  37034. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  37035. /* end confdefs.h. */
  37036. #include <float.h>
  37037. #include <limits.h>
  37038. #include <stdarg.h>
  37039. #include <stddef.h>
  37040. extern void ac_decl (int, char *);
  37041. int main (void)
  37042. {
  37043. (void) ac_decl (0, (char *) 0);
  37044. (void) ac_decl;
  37045. ;
  37046. return 0;
  37047. }
  37048. _ACEOF
  37049. if ac_fn_c_try_compile "$LINENO"
  37050. then :
  37051. if test x"$ac_arg" = x
  37052. then :
  37053. ac_cv_c_undeclared_builtin_options='none needed'
  37054. else $as_nop
  37055. ac_cv_c_undeclared_builtin_options=$ac_arg
  37056. fi
  37057. break
  37058. fi
  37059. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  37060. fi
  37061. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  37062. done
  37063. CFLAGS=$ac_save_CFLAGS
  37064. fi
  37065. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_undeclared_builtin_options" >&5
  37066. printf "%s\n" "$ac_cv_c_undeclared_builtin_options" >&6; }
  37067. case $ac_cv_c_undeclared_builtin_options in #(
  37068. 'cannot detect') :
  37069. { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  37070. printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
  37071. as_fn_error $? "cannot make $CC report undeclared builtins
  37072. See \`config.log' for more details" "$LINENO" 5; } ;; #(
  37073. 'none needed') :
  37074. ac_c_undeclared_builtin_options='' ;; #(
  37075. *) :
  37076. ac_c_undeclared_builtin_options=$ac_cv_c_undeclared_builtin_options ;;
  37077. esac
  37078. ac_fn_check_decl "$LINENO" "getpwuid_r" "ac_cv_have_decl_getpwuid_r" "#include <pwd.h>
  37079. #include <sys/types.h>
  37080. " "$ac_c_undeclared_builtin_options" "CFLAGS"
  37081. if test "x$ac_cv_have_decl_getpwuid_r" = xyes
  37082. then :
  37083. ac_have_decl=1
  37084. else $as_nop
  37085. ac_have_decl=0
  37086. fi
  37087. printf "%s\n" "#define HAVE_DECL_GETPWUID_R $ac_have_decl" >>confdefs.h
  37088. if test $ac_have_decl = 1
  37089. then :
  37090. else $as_nop
  37091. printf "%s\n" "#define HAVE_DECL_GETPWUID_R_MISSING 1" >>confdefs.h
  37092. fi
  37093. for ac_func in fnmatch geteuid getpass_r getppid getpwuid getpwuid_r getrlimit gettimeofday if_nametoindex mach_absolute_time pipe setlocale setmode setrlimit usleep utime utimes
  37094. do :
  37095. as_ac_var=`printf "%s\n" "ac_cv_func_$ac_func" | $as_tr_sh`
  37096. ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
  37097. if eval test \"x\$"$as_ac_var"\" = x"yes"
  37098. then :
  37099. cat >>confdefs.h <<_ACEOF
  37100. #define `printf "%s\n" "HAVE_$ac_func" | $as_tr_cpp` 1
  37101. _ACEOF
  37102. else $as_nop
  37103. func="$ac_func"
  37104. eval skipcheck=\$skipcheck_$func
  37105. if test "x$skipcheck" != "xyes"; then
  37106. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking deeper for $func" >&5
  37107. printf %s "checking deeper for $func... " >&6; }
  37108. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  37109. /* end confdefs.h. */
  37110. int main (void)
  37111. {
  37112. $func ();
  37113. ;
  37114. return 0;
  37115. }
  37116. _ACEOF
  37117. if ac_fn_c_try_link "$LINENO"
  37118. then :
  37119. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  37120. printf "%s\n" "yes" >&6; }
  37121. eval "ac_cv_func_$func=yes"
  37122. cat >>confdefs.h <<_ACEOF
  37123. #define `echo "HAVE_$func" | sed 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/' | sed 's/^A-Z0-9_/_/g'` 1
  37124. _ACEOF
  37125. else $as_nop
  37126. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: but still no" >&5
  37127. printf "%s\n" "but still no" >&6; }
  37128. fi
  37129. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  37130. conftest$ac_exeext conftest.$ac_ext
  37131. fi
  37132. fi
  37133. done
  37134. #
  37135. tst_method="unknown"
  37136. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to set a socket into non-blocking mode" >&5
  37137. printf %s "checking how to set a socket into non-blocking mode... " >&6; }
  37138. if test "x$curl_cv_func_fcntl_o_nonblock" = "xyes"; then
  37139. tst_method="fcntl O_NONBLOCK"
  37140. elif test "x$curl_cv_func_ioctl_fionbio" = "xyes"; then
  37141. tst_method="ioctl FIONBIO"
  37142. elif test "x$curl_cv_func_ioctlsocket_fionbio" = "xyes"; then
  37143. tst_method="ioctlsocket FIONBIO"
  37144. elif test "x$curl_cv_func_ioctlsocket_camel_fionbio" = "xyes"; then
  37145. tst_method="IoctlSocket FIONBIO"
  37146. elif test "x$curl_cv_func_setsockopt_so_nonblock" = "xyes"; then
  37147. tst_method="setsockopt SO_NONBLOCK"
  37148. fi
  37149. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $tst_method" >&5
  37150. printf "%s\n" "$tst_method" >&6; }
  37151. if test "$tst_method" = "unknown"; then
  37152. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cannot determine non-blocking socket method." >&5
  37153. printf "%s\n" "$as_me: WARNING: cannot determine non-blocking socket method." >&2;}
  37154. fi
  37155. # Extract the first word of "perl", so it can be a program name with args.
  37156. set dummy perl; ac_word=$2
  37157. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  37158. printf %s "checking for $ac_word... " >&6; }
  37159. if test ${ac_cv_path_PERL+y}
  37160. then :
  37161. printf %s "(cached) " >&6
  37162. else $as_nop
  37163. case $PERL in
  37164. [\\/]* | ?:[\\/]*)
  37165. ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
  37166. ;;
  37167. *)
  37168. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  37169. as_dummy="$PATH:/usr/local/bin/perl:/usr/bin/:/usr/local/bin "
  37170. for as_dir in $as_dummy
  37171. do
  37172. IFS=$as_save_IFS
  37173. case $as_dir in #(((
  37174. '') as_dir=./ ;;
  37175. */) ;;
  37176. *) as_dir=$as_dir/ ;;
  37177. esac
  37178. for ac_exec_ext in '' $ac_executable_extensions; do
  37179. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  37180. ac_cv_path_PERL="$as_dir$ac_word$ac_exec_ext"
  37181. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  37182. break 2
  37183. fi
  37184. done
  37185. done
  37186. IFS=$as_save_IFS
  37187. ;;
  37188. esac
  37189. fi
  37190. PERL=$ac_cv_path_PERL
  37191. if test -n "$PERL"; then
  37192. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PERL" >&5
  37193. printf "%s\n" "$PERL" >&6; }
  37194. else
  37195. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  37196. printf "%s\n" "no" >&6; }
  37197. fi
  37198. for ac_prog in gnroff nroff
  37199. do
  37200. # Extract the first word of "$ac_prog", so it can be a program name with args.
  37201. set dummy $ac_prog; ac_word=$2
  37202. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  37203. printf %s "checking for $ac_word... " >&6; }
  37204. if test ${ac_cv_path_NROFF+y}
  37205. then :
  37206. printf %s "(cached) " >&6
  37207. else $as_nop
  37208. case $NROFF in
  37209. [\\/]* | ?:[\\/]*)
  37210. ac_cv_path_NROFF="$NROFF" # Let the user override the test with a path.
  37211. ;;
  37212. *)
  37213. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  37214. as_dummy="$PATH:/usr/bin/:/usr/local/bin "
  37215. for as_dir in $as_dummy
  37216. do
  37217. IFS=$as_save_IFS
  37218. case $as_dir in #(((
  37219. '') as_dir=./ ;;
  37220. */) ;;
  37221. *) as_dir=$as_dir/ ;;
  37222. esac
  37223. for ac_exec_ext in '' $ac_executable_extensions; do
  37224. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  37225. ac_cv_path_NROFF="$as_dir$ac_word$ac_exec_ext"
  37226. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  37227. break 2
  37228. fi
  37229. done
  37230. done
  37231. IFS=$as_save_IFS
  37232. ;;
  37233. esac
  37234. fi
  37235. NROFF=$ac_cv_path_NROFF
  37236. if test -n "$NROFF"; then
  37237. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $NROFF" >&5
  37238. printf "%s\n" "$NROFF" >&6; }
  37239. else
  37240. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  37241. printf "%s\n" "no" >&6; }
  37242. fi
  37243. test -n "$NROFF" && break
  37244. done
  37245. if test -n "$NROFF"; then
  37246. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to use *nroff to get plain text from man pages" >&5
  37247. printf %s "checking how to use *nroff to get plain text from man pages... " >&6; }
  37248. MANOPT="-man"
  37249. mancheck=`echo foo | $NROFF $MANOPT 2>/dev/null`
  37250. if test -z "$mancheck"; then
  37251. MANOPT="-mandoc"
  37252. mancheck=`echo foo | $NROFF $MANOPT 2>/dev/null`
  37253. if test -z "$mancheck"; then
  37254. MANOPT=""
  37255. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: failed" >&5
  37256. printf "%s\n" "failed" >&6; }
  37257. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: found no *nroff option to get plaintext from man pages" >&5
  37258. printf "%s\n" "$as_me: WARNING: found no *nroff option to get plaintext from man pages" >&2;}
  37259. else
  37260. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MANOPT" >&5
  37261. printf "%s\n" "$MANOPT" >&6; }
  37262. fi
  37263. else
  37264. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MANOPT" >&5
  37265. printf "%s\n" "$MANOPT" >&6; }
  37266. fi
  37267. fi
  37268. if test -z "$MANOPT"
  37269. then
  37270. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: disabling built-in manual" >&5
  37271. printf "%s\n" "$as_me: WARNING: disabling built-in manual" >&2;}
  37272. USE_MANUAL="no";
  37273. fi
  37274. if test "$USE_MANUAL" = "1"; then
  37275. printf "%s\n" "#define USE_MANUAL 1" >>confdefs.h
  37276. curl_manual_msg="enabled"
  37277. fi
  37278. if test x"$USE_MANUAL" = x1; then
  37279. USE_MANUAL_TRUE=
  37280. USE_MANUAL_FALSE='#'
  37281. else
  37282. USE_MANUAL_TRUE='#'
  37283. USE_MANUAL_FALSE=
  37284. fi
  37285. #
  37286. if test "$want_ares" = "yes"; then
  37287. clean_CPPFLAGS="$CPPFLAGS"
  37288. clean_LDFLAGS="$LDFLAGS"
  37289. clean_LIBS="$LIBS"
  37290. embedded_ares="unknown"
  37291. configure_runpath=`pwd`
  37292. embedded_ares_builddir="$configure_runpath/ares"
  37293. if test -n "$want_ares_path"; then
  37294. ARES_PCDIR="$want_ares_path/lib/pkgconfig"
  37295. if test -n "$PKG_CONFIG"; then
  37296. PKGCONFIG="$PKG_CONFIG"
  37297. else
  37298. if test -n "$ac_tool_prefix"; then
  37299. # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
  37300. set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
  37301. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  37302. printf %s "checking for $ac_word... " >&6; }
  37303. if test ${ac_cv_path_PKGCONFIG+y}
  37304. then :
  37305. printf %s "(cached) " >&6
  37306. else $as_nop
  37307. case $PKGCONFIG in
  37308. [\\/]* | ?:[\\/]*)
  37309. ac_cv_path_PKGCONFIG="$PKGCONFIG" # Let the user override the test with a path.
  37310. ;;
  37311. *)
  37312. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  37313. as_dummy="$PATH:/usr/bin:/usr/local/bin"
  37314. for as_dir in $as_dummy
  37315. do
  37316. IFS=$as_save_IFS
  37317. case $as_dir in #(((
  37318. '') as_dir=./ ;;
  37319. */) ;;
  37320. *) as_dir=$as_dir/ ;;
  37321. esac
  37322. for ac_exec_ext in '' $ac_executable_extensions; do
  37323. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  37324. ac_cv_path_PKGCONFIG="$as_dir$ac_word$ac_exec_ext"
  37325. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  37326. break 2
  37327. fi
  37328. done
  37329. done
  37330. IFS=$as_save_IFS
  37331. ;;
  37332. esac
  37333. fi
  37334. PKGCONFIG=$ac_cv_path_PKGCONFIG
  37335. if test -n "$PKGCONFIG"; then
  37336. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PKGCONFIG" >&5
  37337. printf "%s\n" "$PKGCONFIG" >&6; }
  37338. else
  37339. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  37340. printf "%s\n" "no" >&6; }
  37341. fi
  37342. fi
  37343. if test -z "$ac_cv_path_PKGCONFIG"; then
  37344. ac_pt_PKGCONFIG=$PKGCONFIG
  37345. # Extract the first word of "pkg-config", so it can be a program name with args.
  37346. set dummy pkg-config; ac_word=$2
  37347. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  37348. printf %s "checking for $ac_word... " >&6; }
  37349. if test ${ac_cv_path_ac_pt_PKGCONFIG+y}
  37350. then :
  37351. printf %s "(cached) " >&6
  37352. else $as_nop
  37353. case $ac_pt_PKGCONFIG in
  37354. [\\/]* | ?:[\\/]*)
  37355. ac_cv_path_ac_pt_PKGCONFIG="$ac_pt_PKGCONFIG" # Let the user override the test with a path.
  37356. ;;
  37357. *)
  37358. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  37359. as_dummy="$PATH:/usr/bin:/usr/local/bin"
  37360. for as_dir in $as_dummy
  37361. do
  37362. IFS=$as_save_IFS
  37363. case $as_dir in #(((
  37364. '') as_dir=./ ;;
  37365. */) ;;
  37366. *) as_dir=$as_dir/ ;;
  37367. esac
  37368. for ac_exec_ext in '' $ac_executable_extensions; do
  37369. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  37370. ac_cv_path_ac_pt_PKGCONFIG="$as_dir$ac_word$ac_exec_ext"
  37371. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  37372. break 2
  37373. fi
  37374. done
  37375. done
  37376. IFS=$as_save_IFS
  37377. ;;
  37378. esac
  37379. fi
  37380. ac_pt_PKGCONFIG=$ac_cv_path_ac_pt_PKGCONFIG
  37381. if test -n "$ac_pt_PKGCONFIG"; then
  37382. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKGCONFIG" >&5
  37383. printf "%s\n" "$ac_pt_PKGCONFIG" >&6; }
  37384. else
  37385. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  37386. printf "%s\n" "no" >&6; }
  37387. fi
  37388. if test "x$ac_pt_PKGCONFIG" = x; then
  37389. PKGCONFIG="no"
  37390. else
  37391. case $cross_compiling:$ac_tool_warned in
  37392. yes:)
  37393. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  37394. printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  37395. ac_tool_warned=yes ;;
  37396. esac
  37397. PKGCONFIG=$ac_pt_PKGCONFIG
  37398. fi
  37399. else
  37400. PKGCONFIG="$ac_cv_path_PKGCONFIG"
  37401. fi
  37402. fi
  37403. if test "x$PKGCONFIG" != "xno"; then
  37404. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libcares options with pkg-config" >&5
  37405. printf %s "checking for libcares options with pkg-config... " >&6; }
  37406. itexists=`
  37407. if test -n "$ARES_PCDIR"; then
  37408. PKG_CONFIG_LIBDIR="$ARES_PCDIR"
  37409. export PKG_CONFIG_LIBDIR
  37410. fi
  37411. $PKGCONFIG --exists libcares >/dev/null 2>&1 && echo 1`
  37412. if test -z "$itexists"; then
  37413. PKGCONFIG="no"
  37414. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  37415. printf "%s\n" "no" >&6; }
  37416. else
  37417. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: found" >&5
  37418. printf "%s\n" "found" >&6; }
  37419. fi
  37420. fi
  37421. if test "$PKGCONFIG" != "no" ; then
  37422. ares_LIBS=`
  37423. if test -n "$ARES_PCDIR"; then
  37424. PKG_CONFIG_LIBDIR="$ARES_PCDIR"
  37425. export PKG_CONFIG_LIBDIR
  37426. fi
  37427. $PKGCONFIG --libs-only-l libcares`
  37428. ares_LDFLAGS=`
  37429. if test -n "$ARES_PCDIR"; then
  37430. PKG_CONFIG_LIBDIR="$ARES_PCDIR"
  37431. export PKG_CONFIG_LIBDIR
  37432. fi
  37433. $PKGCONFIG --libs-only-L libcares`
  37434. ares_CPPFLAGS=`
  37435. if test -n "$ARES_PCDIR"; then
  37436. PKG_CONFIG_LIBDIR="$ARES_PCDIR"
  37437. export PKG_CONFIG_LIBDIR
  37438. fi
  37439. $PKGCONFIG --cflags-only-I libcares`
  37440. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: pkg-config: ares LIBS: \"$ares_LIBS\"" >&5
  37441. printf "%s\n" "$as_me: pkg-config: ares LIBS: \"$ares_LIBS\"" >&6;}
  37442. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: pkg-config: ares LDFLAGS: \"$ares_LDFLAGS\"" >&5
  37443. printf "%s\n" "$as_me: pkg-config: ares LDFLAGS: \"$ares_LDFLAGS\"" >&6;}
  37444. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: pkg-config: ares CPPFLAGS: \"$ares_CPPFLAGS\"" >&5
  37445. printf "%s\n" "$as_me: pkg-config: ares CPPFLAGS: \"$ares_CPPFLAGS\"" >&6;}
  37446. else
  37447. ares_CPPFLAGS="-I$want_ares_path/include"
  37448. ares_LDFLAGS="-L$want_ares_path/lib"
  37449. ares_LIBS="-lcares"
  37450. fi
  37451. else
  37452. if test -d "$srcdir/ares"; then
  37453. embedded_ares="yes"
  37454. subdirs="$subdirs ares"
  37455. ares_CPPFLAGS=""
  37456. ares_LDFLAGS="-L$embedded_ares_builddir"
  37457. ares_LIBS="-lcares"
  37458. else
  37459. if test -n "$PKG_CONFIG"; then
  37460. PKGCONFIG="$PKG_CONFIG"
  37461. else
  37462. if test -n "$ac_tool_prefix"; then
  37463. # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
  37464. set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
  37465. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  37466. printf %s "checking for $ac_word... " >&6; }
  37467. if test ${ac_cv_path_PKGCONFIG+y}
  37468. then :
  37469. printf %s "(cached) " >&6
  37470. else $as_nop
  37471. case $PKGCONFIG in
  37472. [\\/]* | ?:[\\/]*)
  37473. ac_cv_path_PKGCONFIG="$PKGCONFIG" # Let the user override the test with a path.
  37474. ;;
  37475. *)
  37476. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  37477. as_dummy="$PATH:/usr/bin:/usr/local/bin"
  37478. for as_dir in $as_dummy
  37479. do
  37480. IFS=$as_save_IFS
  37481. case $as_dir in #(((
  37482. '') as_dir=./ ;;
  37483. */) ;;
  37484. *) as_dir=$as_dir/ ;;
  37485. esac
  37486. for ac_exec_ext in '' $ac_executable_extensions; do
  37487. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  37488. ac_cv_path_PKGCONFIG="$as_dir$ac_word$ac_exec_ext"
  37489. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  37490. break 2
  37491. fi
  37492. done
  37493. done
  37494. IFS=$as_save_IFS
  37495. ;;
  37496. esac
  37497. fi
  37498. PKGCONFIG=$ac_cv_path_PKGCONFIG
  37499. if test -n "$PKGCONFIG"; then
  37500. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PKGCONFIG" >&5
  37501. printf "%s\n" "$PKGCONFIG" >&6; }
  37502. else
  37503. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  37504. printf "%s\n" "no" >&6; }
  37505. fi
  37506. fi
  37507. if test -z "$ac_cv_path_PKGCONFIG"; then
  37508. ac_pt_PKGCONFIG=$PKGCONFIG
  37509. # Extract the first word of "pkg-config", so it can be a program name with args.
  37510. set dummy pkg-config; ac_word=$2
  37511. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  37512. printf %s "checking for $ac_word... " >&6; }
  37513. if test ${ac_cv_path_ac_pt_PKGCONFIG+y}
  37514. then :
  37515. printf %s "(cached) " >&6
  37516. else $as_nop
  37517. case $ac_pt_PKGCONFIG in
  37518. [\\/]* | ?:[\\/]*)
  37519. ac_cv_path_ac_pt_PKGCONFIG="$ac_pt_PKGCONFIG" # Let the user override the test with a path.
  37520. ;;
  37521. *)
  37522. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  37523. as_dummy="$PATH:/usr/bin:/usr/local/bin"
  37524. for as_dir in $as_dummy
  37525. do
  37526. IFS=$as_save_IFS
  37527. case $as_dir in #(((
  37528. '') as_dir=./ ;;
  37529. */) ;;
  37530. *) as_dir=$as_dir/ ;;
  37531. esac
  37532. for ac_exec_ext in '' $ac_executable_extensions; do
  37533. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  37534. ac_cv_path_ac_pt_PKGCONFIG="$as_dir$ac_word$ac_exec_ext"
  37535. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  37536. break 2
  37537. fi
  37538. done
  37539. done
  37540. IFS=$as_save_IFS
  37541. ;;
  37542. esac
  37543. fi
  37544. ac_pt_PKGCONFIG=$ac_cv_path_ac_pt_PKGCONFIG
  37545. if test -n "$ac_pt_PKGCONFIG"; then
  37546. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKGCONFIG" >&5
  37547. printf "%s\n" "$ac_pt_PKGCONFIG" >&6; }
  37548. else
  37549. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  37550. printf "%s\n" "no" >&6; }
  37551. fi
  37552. if test "x$ac_pt_PKGCONFIG" = x; then
  37553. PKGCONFIG="no"
  37554. else
  37555. case $cross_compiling:$ac_tool_warned in
  37556. yes:)
  37557. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  37558. printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  37559. ac_tool_warned=yes ;;
  37560. esac
  37561. PKGCONFIG=$ac_pt_PKGCONFIG
  37562. fi
  37563. else
  37564. PKGCONFIG="$ac_cv_path_PKGCONFIG"
  37565. fi
  37566. fi
  37567. if test "x$PKGCONFIG" != "xno"; then
  37568. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libcares options with pkg-config" >&5
  37569. printf %s "checking for libcares options with pkg-config... " >&6; }
  37570. itexists=`
  37571. if test -n ""; then
  37572. PKG_CONFIG_LIBDIR=""
  37573. export PKG_CONFIG_LIBDIR
  37574. fi
  37575. $PKGCONFIG --exists libcares >/dev/null 2>&1 && echo 1`
  37576. if test -z "$itexists"; then
  37577. PKGCONFIG="no"
  37578. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  37579. printf "%s\n" "no" >&6; }
  37580. else
  37581. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: found" >&5
  37582. printf "%s\n" "found" >&6; }
  37583. fi
  37584. fi
  37585. if test "$PKGCONFIG" != "no" ; then
  37586. ares_LIBS=`$PKGCONFIG --libs-only-l libcares`
  37587. ares_LDFLAGS=`$PKGCONFIG --libs-only-L libcares`
  37588. ares_CPPFLAGS=`$PKGCONFIG --cflags-only-I libcares`
  37589. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: pkg-config: ares_LIBS: \"$ares_LIBS\"" >&5
  37590. printf "%s\n" "$as_me: pkg-config: ares_LIBS: \"$ares_LIBS\"" >&6;}
  37591. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: pkg-config: ares_LDFLAGS: \"$ares_LDFLAGS\"" >&5
  37592. printf "%s\n" "$as_me: pkg-config: ares_LDFLAGS: \"$ares_LDFLAGS\"" >&6;}
  37593. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: pkg-config: ares_CPPFLAGS: \"$ares_CPPFLAGS\"" >&5
  37594. printf "%s\n" "$as_me: pkg-config: ares_CPPFLAGS: \"$ares_CPPFLAGS\"" >&6;}
  37595. else
  37596. ares_CPPFLAGS=""
  37597. ares_LDFLAGS=""
  37598. ares_LIBS="-lcares"
  37599. fi
  37600. fi
  37601. fi
  37602. #
  37603. CPPFLAGS="$clean_CPPFLAGS $ares_CPPFLAGS"
  37604. LDFLAGS="$clean_LDFLAGS $ares_LDFLAGS"
  37605. LIBS="$ares_LIBS $clean_LIBS"
  37606. #
  37607. if test "$embedded_ares" != "yes"; then
  37608. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking that c-ares is good and recent enough" >&5
  37609. printf %s "checking that c-ares is good and recent enough... " >&6; }
  37610. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  37611. /* end confdefs.h. */
  37612. #include <ares.h>
  37613. /* set of dummy functions in case c-ares was built with debug */
  37614. void curl_dofree() { }
  37615. void curl_sclose() { }
  37616. void curl_domalloc() { }
  37617. void curl_docalloc() { }
  37618. void curl_socket() { }
  37619. int main (void)
  37620. {
  37621. ares_channel channel;
  37622. ares_cancel(channel); /* added in 1.2.0 */
  37623. ares_process_fd(channel, 0, 0); /* added in 1.4.0 */
  37624. ares_dup(&channel, channel); /* added in 1.6.0 */
  37625. ;
  37626. return 0;
  37627. }
  37628. _ACEOF
  37629. if ac_fn_c_try_link "$LINENO"
  37630. then :
  37631. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  37632. printf "%s\n" "yes" >&6; }
  37633. else $as_nop
  37634. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  37635. printf "%s\n" "no" >&6; }
  37636. as_fn_error $? "c-ares library defective or too old" "$LINENO" 5
  37637. CPPFLAGS="$clean_CPPFLAGS"
  37638. LDFLAGS="$clean_LDFLAGS"
  37639. LIBS="$clean_LIBS"
  37640. # prevent usage
  37641. want_ares="no"
  37642. fi
  37643. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  37644. conftest$ac_exeext conftest.$ac_ext
  37645. fi
  37646. if test "$want_ares" = "yes"; then
  37647. printf "%s\n" "#define USE_ARES 1" >>confdefs.h
  37648. USE_ARES=1
  37649. curl_res_msg="c-ares"
  37650. fi
  37651. fi
  37652. if test x$embedded_ares = xyes; then
  37653. USE_EMBEDDED_ARES_TRUE=
  37654. USE_EMBEDDED_ARES_FALSE='#'
  37655. else
  37656. USE_EMBEDDED_ARES_TRUE='#'
  37657. USE_EMBEDDED_ARES_FALSE=
  37658. fi
  37659. if test "x$curl_cv_native_windows" != "xyes" &&
  37660. test "x$enable_shared" = "xyes"; then
  37661. build_libhostname=yes
  37662. else
  37663. build_libhostname=no
  37664. fi
  37665. if test x$build_libhostname = xyes; then
  37666. BUILD_LIBHOSTNAME_TRUE=
  37667. BUILD_LIBHOSTNAME_FALSE='#'
  37668. else
  37669. BUILD_LIBHOSTNAME_TRUE='#'
  37670. BUILD_LIBHOSTNAME_FALSE=
  37671. fi
  37672. if test "x$want_ares" != xyes; then
  37673. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to enable the threaded resolver" >&5
  37674. printf %s "checking whether to enable the threaded resolver... " >&6; }
  37675. OPT_THRES="default"
  37676. # Check whether --enable-threaded_resolver was given.
  37677. if test ${enable_threaded_resolver+y}
  37678. then :
  37679. enableval=$enable_threaded_resolver; OPT_THRES=$enableval
  37680. fi
  37681. case "$OPT_THRES" in
  37682. no)
  37683. want_thres="no"
  37684. ;;
  37685. *)
  37686. want_thres="yes"
  37687. ;;
  37688. esac
  37689. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $want_thres" >&5
  37690. printf "%s\n" "$want_thres" >&6; }
  37691. fi
  37692. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to use POSIX threads for threaded resolver" >&5
  37693. printf %s "checking whether to use POSIX threads for threaded resolver... " >&6; }
  37694. # Check whether --enable-pthreads was given.
  37695. if test ${enable_pthreads+y}
  37696. then :
  37697. enableval=$enable_pthreads; case "$enableval" in
  37698. no) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  37699. printf "%s\n" "no" >&6; }
  37700. want_pthreads=no
  37701. ;;
  37702. *) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  37703. printf "%s\n" "yes" >&6; }
  37704. want_pthreads=yes
  37705. ;;
  37706. esac
  37707. else $as_nop
  37708. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: auto" >&5
  37709. printf "%s\n" "auto" >&6; }
  37710. want_pthreads=auto
  37711. fi
  37712. if test "$want_pthreads" != "no"; then
  37713. if test "$want_pthreads" = "yes" && test "$dontwant_rt" = "yes"; then
  37714. as_fn_error $? "options --enable-pthreads and --disable-rt are mutually exclusive" "$LINENO" 5
  37715. fi
  37716. if test "$dontwant_rt" != "no"; then
  37717. if test "$want_pthreads" = "yes"; then
  37718. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: --enable-pthreads Ignored since librt is disabled." >&5
  37719. printf "%s\n" "$as_me: WARNING: --enable-pthreads Ignored since librt is disabled." >&2;}
  37720. fi
  37721. want_pthreads=no
  37722. fi
  37723. fi
  37724. if test "$want_pthreads" != "no" && test "$want_thres" != "yes"; then
  37725. want_pthreads=no
  37726. fi
  37727. if test "$want_pthreads" != "no"; then
  37728. ac_fn_c_check_header_compile "$LINENO" "pthread.h" "ac_cv_header_pthread_h" "$ac_includes_default"
  37729. if test "x$ac_cv_header_pthread_h" = xyes
  37730. then :
  37731. printf "%s\n" "#define HAVE_PTHREAD_H 1" >>confdefs.h
  37732. save_CFLAGS="$CFLAGS"
  37733. save_LIBS="$LIBS"
  37734. LIBS=
  37735. ac_fn_c_check_func "$LINENO" "pthread_create" "ac_cv_func_pthread_create"
  37736. if test "x$ac_cv_func_pthread_create" = xyes
  37737. then :
  37738. USE_THREADS_POSIX=1
  37739. fi
  37740. LIBS="$save_LIBS"
  37741. case $host in
  37742. *-hp-hpux*)
  37743. USE_THREADS_POSIX=""
  37744. ;;
  37745. *)
  37746. ;;
  37747. esac
  37748. if test "$USE_THREADS_POSIX" != "1"
  37749. then
  37750. CFLAGS="$CFLAGS -pthread"
  37751. # assign PTHREAD for pkg-config use
  37752. PTHREAD=" -pthread"
  37753. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for pthread_create in -lpthread" >&5
  37754. printf %s "checking for pthread_create in -lpthread... " >&6; }
  37755. if test ${ac_cv_lib_pthread_pthread_create+y}
  37756. then :
  37757. printf %s "(cached) " >&6
  37758. else $as_nop
  37759. ac_check_lib_save_LIBS=$LIBS
  37760. LIBS="-lpthread $LIBS"
  37761. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  37762. /* end confdefs.h. */
  37763. #ifdef __cplusplus
  37764. extern "C"
  37765. #endif
  37766. char pthread_create ();
  37767. int main (void)
  37768. {
  37769. return pthread_create ();
  37770. ;
  37771. return 0;
  37772. }
  37773. _ACEOF
  37774. if ac_fn_c_try_link "$LINENO"
  37775. then :
  37776. ac_cv_lib_pthread_pthread_create=yes
  37777. else $as_nop
  37778. ac_cv_lib_pthread_pthread_create=no
  37779. fi
  37780. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  37781. conftest$ac_exeext conftest.$ac_ext
  37782. LIBS=$ac_check_lib_save_LIBS
  37783. fi
  37784. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread_pthread_create" >&5
  37785. printf "%s\n" "$ac_cv_lib_pthread_pthread_create" >&6; }
  37786. if test "x$ac_cv_lib_pthread_pthread_create" = xyes
  37787. then :
  37788. USE_THREADS_POSIX=1
  37789. else $as_nop
  37790. CFLAGS="$save_CFLAGS"
  37791. fi
  37792. fi
  37793. if test "x$USE_THREADS_POSIX" = "x1"
  37794. then
  37795. printf "%s\n" "#define USE_THREADS_POSIX 1" >>confdefs.h
  37796. curl_res_msg="POSIX threaded"
  37797. fi
  37798. fi
  37799. fi
  37800. if test "$want_thres" = "yes" && test "x$USE_THREADS_POSIX" != "x1"; then
  37801. if test "$want_pthreads" = "yes"; then
  37802. as_fn_error $? "--enable-pthreads but pthreads was not found" "$LINENO" 5
  37803. fi
  37804. if test "$curl_cv_native_windows" = "yes"; then
  37805. USE_THREADS_WIN32=1
  37806. printf "%s\n" "#define USE_THREADS_WIN32 1" >>confdefs.h
  37807. curl_res_msg="Win32 threaded"
  37808. else
  37809. as_fn_error $? "Threaded resolver enabled but no thread library found" "$LINENO" 5
  37810. fi
  37811. fi
  37812. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking convert -I options to -isystem" >&5
  37813. printf %s "checking convert -I options to -isystem... " >&6; }
  37814. if test "$compiler_id" = "GNU_C" ||
  37815. test "$compiler_id" = "CLANG"; then
  37816. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  37817. printf "%s\n" "yes" >&6; }
  37818. tmp_has_include="no"
  37819. tmp_chg_FLAGS="$CFLAGS"
  37820. for word1 in $tmp_chg_FLAGS; do
  37821. case "$word1" in
  37822. -I*)
  37823. tmp_has_include="yes"
  37824. ;;
  37825. esac
  37826. done
  37827. if test "$tmp_has_include" = "yes"; then
  37828. tmp_chg_FLAGS=`echo "$tmp_chg_FLAGS" | "$SED" 's/^-I/ -isystem /g'`
  37829. tmp_chg_FLAGS=`echo "$tmp_chg_FLAGS" | "$SED" 's/ -I/ -isystem /g'`
  37830. CFLAGS="$tmp_chg_FLAGS"
  37831. squeeze CFLAGS
  37832. fi
  37833. tmp_has_include="no"
  37834. tmp_chg_FLAGS="$CPPFLAGS"
  37835. for word1 in $tmp_chg_FLAGS; do
  37836. case "$word1" in
  37837. -I*)
  37838. tmp_has_include="yes"
  37839. ;;
  37840. esac
  37841. done
  37842. if test "$tmp_has_include" = "yes"; then
  37843. tmp_chg_FLAGS=`echo "$tmp_chg_FLAGS" | "$SED" 's/^-I/ -isystem /g'`
  37844. tmp_chg_FLAGS=`echo "$tmp_chg_FLAGS" | "$SED" 's/ -I/ -isystem /g'`
  37845. CPPFLAGS="$tmp_chg_FLAGS"
  37846. squeeze CPPFLAGS
  37847. fi
  37848. else
  37849. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  37850. printf "%s\n" "no" >&6; }
  37851. fi
  37852. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to enable verbose strings" >&5
  37853. printf %s "checking whether to enable verbose strings... " >&6; }
  37854. # Check whether --enable-verbose was given.
  37855. if test ${enable_verbose+y}
  37856. then :
  37857. enableval=$enable_verbose; case "$enableval" in
  37858. no)
  37859. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  37860. printf "%s\n" "no" >&6; }
  37861. printf "%s\n" "#define CURL_DISABLE_VERBOSE_STRINGS 1" >>confdefs.h
  37862. curl_verbose_msg="no"
  37863. ;;
  37864. *) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  37865. printf "%s\n" "yes" >&6; }
  37866. ;;
  37867. esac
  37868. else $as_nop
  37869. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  37870. printf "%s\n" "yes" >&6; }
  37871. fi
  37872. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to enable SSPI support (Windows native builds only)" >&5
  37873. printf %s "checking whether to enable SSPI support (Windows native builds only)... " >&6; }
  37874. # Check whether --enable-sspi was given.
  37875. if test ${enable_sspi+y}
  37876. then :
  37877. enableval=$enable_sspi; case "$enableval" in
  37878. yes)
  37879. if test "$curl_cv_native_windows" = "yes"; then
  37880. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  37881. printf "%s\n" "yes" >&6; }
  37882. printf "%s\n" "#define USE_WINDOWS_SSPI 1" >>confdefs.h
  37883. USE_WINDOWS_SSPI=1
  37884. curl_sspi_msg="enabled"
  37885. else
  37886. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  37887. printf "%s\n" "no" >&6; }
  37888. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: --enable-sspi Ignored. Only supported on native Windows builds." >&5
  37889. printf "%s\n" "$as_me: WARNING: --enable-sspi Ignored. Only supported on native Windows builds." >&2;}
  37890. fi
  37891. ;;
  37892. *)
  37893. if test "x$SCHANNEL_ENABLED" = "x1"; then
  37894. # --with-schannel implies --enable-sspi
  37895. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  37896. printf "%s\n" "yes" >&6; }
  37897. else
  37898. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  37899. printf "%s\n" "no" >&6; }
  37900. fi
  37901. ;;
  37902. esac
  37903. else $as_nop
  37904. if test "x$SCHANNEL_ENABLED" = "x1"; then
  37905. # --with-schannel implies --enable-sspi
  37906. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  37907. printf "%s\n" "yes" >&6; }
  37908. else
  37909. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  37910. printf "%s\n" "no" >&6; }
  37911. fi
  37912. fi
  37913. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to enable cryptographic authentication methods" >&5
  37914. printf %s "checking whether to enable cryptographic authentication methods... " >&6; }
  37915. # Check whether --enable-crypto-auth was given.
  37916. if test ${enable_crypto_auth+y}
  37917. then :
  37918. enableval=$enable_crypto_auth; case "$enableval" in
  37919. no)
  37920. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  37921. printf "%s\n" "no" >&6; }
  37922. printf "%s\n" "#define CURL_DISABLE_CRYPTO_AUTH 1" >>confdefs.h
  37923. CURL_DISABLE_CRYPTO_AUTH=1
  37924. ;;
  37925. *) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  37926. printf "%s\n" "yes" >&6; }
  37927. ;;
  37928. esac
  37929. else $as_nop
  37930. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  37931. printf "%s\n" "yes" >&6; }
  37932. fi
  37933. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to support NTLM" >&5
  37934. printf %s "checking whether to support NTLM... " >&6; }
  37935. # Check whether --enable-ntlm was given.
  37936. if test ${enable_ntlm+y}
  37937. then :
  37938. enableval=$enable_ntlm; case "$enableval" in
  37939. no)
  37940. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  37941. printf "%s\n" "no" >&6; }
  37942. printf "%s\n" "#define CURL_DISABLE_NTLM 1" >>confdefs.h
  37943. CURL_DISABLE_NTLM=1
  37944. ;;
  37945. *) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  37946. printf "%s\n" "yes" >&6; }
  37947. ;;
  37948. esac
  37949. else $as_nop
  37950. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  37951. printf "%s\n" "yes" >&6; }
  37952. fi
  37953. OPT_NTLM_WB="default"
  37954. # Check whether --enable-ntlm-wb was given.
  37955. if test ${enable_ntlm_wb+y}
  37956. then :
  37957. enableval=$enable_ntlm_wb; OPT_NTLM_WB=$enableval
  37958. fi
  37959. want_ntlm_wb_file="/usr/bin/ntlm_auth"
  37960. case "$OPT_NTLM_WB" in
  37961. no)
  37962. want_ntlm_wb="no"
  37963. ;;
  37964. default)
  37965. want_ntlm_wb="yes"
  37966. ;;
  37967. *)
  37968. want_ntlm_wb="yes"
  37969. if test -n "$enableval" && test "$enableval" != "yes"; then
  37970. want_ntlm_wb_file="$enableval"
  37971. fi
  37972. ;;
  37973. esac
  37974. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to enable NTLM delegation to winbind's helper" >&5
  37975. printf %s "checking whether to enable NTLM delegation to winbind's helper... " >&6; }
  37976. if test "$curl_cv_native_windows" = "yes" ||
  37977. test "x$SSL_ENABLED" = "x"; then
  37978. want_ntlm_wb_file=""
  37979. want_ntlm_wb="no"
  37980. fi
  37981. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $want_ntlm_wb" >&5
  37982. printf "%s\n" "$want_ntlm_wb" >&6; }
  37983. if test "$want_ntlm_wb" = "yes"; then
  37984. printf "%s\n" "#define NTLM_WB_ENABLED 1" >>confdefs.h
  37985. printf "%s\n" "#define NTLM_WB_FILE \"$want_ntlm_wb_file\"" >>confdefs.h
  37986. NTLM_WB_ENABLED=1
  37987. fi
  37988. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to enable TLS-SRP authentication" >&5
  37989. printf %s "checking whether to enable TLS-SRP authentication... " >&6; }
  37990. # Check whether --enable-tls-srp was given.
  37991. if test ${enable_tls_srp+y}
  37992. then :
  37993. enableval=$enable_tls_srp; case "$enableval" in
  37994. no)
  37995. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  37996. printf "%s\n" "no" >&6; }
  37997. want_tls_srp=no
  37998. ;;
  37999. *) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  38000. printf "%s\n" "yes" >&6; }
  38001. want_tls_srp=yes
  38002. ;;
  38003. esac
  38004. else $as_nop
  38005. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  38006. printf "%s\n" "yes" >&6; }
  38007. want_tls_srp=yes
  38008. fi
  38009. if test "$want_tls_srp" = "yes" && ( test "x$HAVE_GNUTLS_SRP" = "x1" || test "x$HAVE_OPENSSL_SRP" = "x1") ; then
  38010. printf "%s\n" "#define USE_TLS_SRP 1" >>confdefs.h
  38011. USE_TLS_SRP=1
  38012. curl_tls_srp_msg="enabled"
  38013. fi
  38014. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to enable Unix domain sockets" >&5
  38015. printf %s "checking whether to enable Unix domain sockets... " >&6; }
  38016. # Check whether --enable-unix-sockets was given.
  38017. if test ${enable_unix_sockets+y}
  38018. then :
  38019. enableval=$enable_unix_sockets; case "$enableval" in
  38020. no) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  38021. printf "%s\n" "no" >&6; }
  38022. want_unix_sockets=no
  38023. ;;
  38024. *) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  38025. printf "%s\n" "yes" >&6; }
  38026. want_unix_sockets=yes
  38027. ;;
  38028. esac
  38029. else $as_nop
  38030. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: auto" >&5
  38031. printf "%s\n" "auto" >&6; }
  38032. want_unix_sockets=auto
  38033. fi
  38034. if test "x$want_unix_sockets" != "xno"; then
  38035. ac_fn_c_check_member "$LINENO" "struct sockaddr_un" "sun_path" "ac_cv_member_struct_sockaddr_un_sun_path" "
  38036. #include <sys/un.h>
  38037. "
  38038. if test "x$ac_cv_member_struct_sockaddr_un_sun_path" = xyes
  38039. then :
  38040. printf "%s\n" "#define USE_UNIX_SOCKETS 1" >>confdefs.h
  38041. USE_UNIX_SOCKETS=1
  38042. curl_unix_sockets_msg="enabled"
  38043. else $as_nop
  38044. if test "x$want_unix_sockets" = "xyes"; then
  38045. as_fn_error $? "--enable-unix-sockets is not available on this platform!" "$LINENO" 5
  38046. fi
  38047. fi
  38048. fi
  38049. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to support cookies" >&5
  38050. printf %s "checking whether to support cookies... " >&6; }
  38051. # Check whether --enable-cookies was given.
  38052. if test ${enable_cookies+y}
  38053. then :
  38054. enableval=$enable_cookies; case "$enableval" in
  38055. no)
  38056. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  38057. printf "%s\n" "no" >&6; }
  38058. printf "%s\n" "#define CURL_DISABLE_COOKIES 1" >>confdefs.h
  38059. ;;
  38060. *) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  38061. printf "%s\n" "yes" >&6; }
  38062. ;;
  38063. esac
  38064. else $as_nop
  38065. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  38066. printf "%s\n" "yes" >&6; }
  38067. fi
  38068. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to support socketpair" >&5
  38069. printf %s "checking whether to support socketpair... " >&6; }
  38070. # Check whether --enable-socketpair was given.
  38071. if test ${enable_socketpair+y}
  38072. then :
  38073. enableval=$enable_socketpair; case "$enableval" in
  38074. no)
  38075. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  38076. printf "%s\n" "no" >&6; }
  38077. printf "%s\n" "#define CURL_DISABLE_SOCKETPAIR 1" >>confdefs.h
  38078. ;;
  38079. *) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  38080. printf "%s\n" "yes" >&6; }
  38081. ;;
  38082. esac
  38083. else $as_nop
  38084. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  38085. printf "%s\n" "yes" >&6; }
  38086. fi
  38087. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to support HTTP authentication" >&5
  38088. printf %s "checking whether to support HTTP authentication... " >&6; }
  38089. # Check whether --enable-http-auth was given.
  38090. if test ${enable_http_auth+y}
  38091. then :
  38092. enableval=$enable_http_auth; case "$enableval" in
  38093. no)
  38094. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  38095. printf "%s\n" "no" >&6; }
  38096. printf "%s\n" "#define CURL_DISABLE_HTTP_AUTH 1" >>confdefs.h
  38097. ;;
  38098. *) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  38099. printf "%s\n" "yes" >&6; }
  38100. ;;
  38101. esac
  38102. else $as_nop
  38103. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  38104. printf "%s\n" "yes" >&6; }
  38105. fi
  38106. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to support DoH" >&5
  38107. printf %s "checking whether to support DoH... " >&6; }
  38108. # Check whether --enable-doh was given.
  38109. if test ${enable_doh+y}
  38110. then :
  38111. enableval=$enable_doh; case "$enableval" in
  38112. no)
  38113. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  38114. printf "%s\n" "no" >&6; }
  38115. printf "%s\n" "#define CURL_DISABLE_DOH 1" >>confdefs.h
  38116. ;;
  38117. *) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  38118. printf "%s\n" "yes" >&6; }
  38119. ;;
  38120. esac
  38121. else $as_nop
  38122. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  38123. printf "%s\n" "yes" >&6; }
  38124. fi
  38125. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to support the MIME API" >&5
  38126. printf %s "checking whether to support the MIME API... " >&6; }
  38127. # Check whether --enable-mime was given.
  38128. if test ${enable_mime+y}
  38129. then :
  38130. enableval=$enable_mime; case "$enableval" in
  38131. no)
  38132. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  38133. printf "%s\n" "no" >&6; }
  38134. printf "%s\n" "#define CURL_DISABLE_MIME 1" >>confdefs.h
  38135. ;;
  38136. *) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  38137. printf "%s\n" "yes" >&6; }
  38138. ;;
  38139. esac
  38140. else $as_nop
  38141. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  38142. printf "%s\n" "yes" >&6; }
  38143. fi
  38144. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to support date parsing" >&5
  38145. printf %s "checking whether to support date parsing... " >&6; }
  38146. # Check whether --enable-dateparse was given.
  38147. if test ${enable_dateparse+y}
  38148. then :
  38149. enableval=$enable_dateparse; case "$enableval" in
  38150. no)
  38151. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  38152. printf "%s\n" "no" >&6; }
  38153. printf "%s\n" "#define CURL_DISABLE_PARSEDATE 1" >>confdefs.h
  38154. ;;
  38155. *) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  38156. printf "%s\n" "yes" >&6; }
  38157. ;;
  38158. esac
  38159. else $as_nop
  38160. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  38161. printf "%s\n" "yes" >&6; }
  38162. fi
  38163. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to support netrc parsing" >&5
  38164. printf %s "checking whether to support netrc parsing... " >&6; }
  38165. # Check whether --enable-netrc was given.
  38166. if test ${enable_netrc+y}
  38167. then :
  38168. enableval=$enable_netrc; case "$enableval" in
  38169. no)
  38170. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  38171. printf "%s\n" "no" >&6; }
  38172. printf "%s\n" "#define CURL_DISABLE_NETRC 1" >>confdefs.h
  38173. ;;
  38174. *) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  38175. printf "%s\n" "yes" >&6; }
  38176. ;;
  38177. esac
  38178. else $as_nop
  38179. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  38180. printf "%s\n" "yes" >&6; }
  38181. fi
  38182. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to support progress-meter" >&5
  38183. printf %s "checking whether to support progress-meter... " >&6; }
  38184. # Check whether --enable-progress-meter was given.
  38185. if test ${enable_progress_meter+y}
  38186. then :
  38187. enableval=$enable_progress_meter; case "$enableval" in
  38188. no)
  38189. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  38190. printf "%s\n" "no" >&6; }
  38191. printf "%s\n" "#define CURL_DISABLE_PROGRESS_METER 1" >>confdefs.h
  38192. ;;
  38193. *) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  38194. printf "%s\n" "yes" >&6; }
  38195. ;;
  38196. esac
  38197. else $as_nop
  38198. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  38199. printf "%s\n" "yes" >&6; }
  38200. fi
  38201. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to support DNS shuffling" >&5
  38202. printf %s "checking whether to support DNS shuffling... " >&6; }
  38203. # Check whether --enable-dnsshuffle was given.
  38204. if test ${enable_dnsshuffle+y}
  38205. then :
  38206. enableval=$enable_dnsshuffle; case "$enableval" in
  38207. no)
  38208. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  38209. printf "%s\n" "no" >&6; }
  38210. printf "%s\n" "#define CURL_DISABLE_SHUFFLE_DNS 1" >>confdefs.h
  38211. ;;
  38212. *) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  38213. printf "%s\n" "yes" >&6; }
  38214. ;;
  38215. esac
  38216. else $as_nop
  38217. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  38218. printf "%s\n" "yes" >&6; }
  38219. fi
  38220. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to support curl_easy_option*" >&5
  38221. printf %s "checking whether to support curl_easy_option*... " >&6; }
  38222. # Check whether --enable-get-easy-options was given.
  38223. if test ${enable_get_easy_options+y}
  38224. then :
  38225. enableval=$enable_get_easy_options; case "$enableval" in
  38226. no)
  38227. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  38228. printf "%s\n" "no" >&6; }
  38229. printf "%s\n" "#define CURL_DISABLE_GETOPTIONS 1" >>confdefs.h
  38230. ;;
  38231. *) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  38232. printf "%s\n" "yes" >&6; }
  38233. ;;
  38234. esac
  38235. else $as_nop
  38236. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  38237. printf "%s\n" "yes" >&6; }
  38238. fi
  38239. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to support alt-svc" >&5
  38240. printf %s "checking whether to support alt-svc... " >&6; }
  38241. # Check whether --enable-alt-svc was given.
  38242. if test ${enable_alt_svc+y}
  38243. then :
  38244. enableval=$enable_alt_svc; case "$enableval" in
  38245. no)
  38246. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  38247. printf "%s\n" "no" >&6; }
  38248. printf "%s\n" "#define CURL_DISABLE_ALTSVC 1" >>confdefs.h
  38249. curl_altsvc_msg="no";
  38250. enable_altsvc="no"
  38251. ;;
  38252. *) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  38253. printf "%s\n" "yes" >&6; }
  38254. ;;
  38255. esac
  38256. else $as_nop
  38257. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  38258. printf "%s\n" "no" >&6; }
  38259. fi
  38260. if test -n "$SSL_ENABLED"; then
  38261. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to support HSTS" >&5
  38262. printf %s "checking whether to support HSTS... " >&6; }
  38263. # Check whether --enable-hsts was given.
  38264. if test ${enable_hsts+y}
  38265. then :
  38266. enableval=$enable_hsts; case "$enableval" in
  38267. no)
  38268. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  38269. printf "%s\n" "no" >&6; }
  38270. hsts="no"
  38271. ;;
  38272. *) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  38273. printf "%s\n" "yes" >&6; }
  38274. ;;
  38275. esac
  38276. else $as_nop
  38277. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $hsts" >&5
  38278. printf "%s\n" "$hsts" >&6; }
  38279. fi
  38280. else
  38281. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: disables HSTS due to lack of SSL" >&5
  38282. printf "%s\n" "$as_me: disables HSTS due to lack of SSL" >&6;}
  38283. hsts="no"
  38284. fi
  38285. if test "x$hsts" != "xyes"; then
  38286. curl_hsts_msg="no (--enable-hsts)";
  38287. printf "%s\n" "#define CURL_DISABLE_HSTS 1" >>confdefs.h
  38288. fi
  38289. if test "x$want_ech" != "xno"; then
  38290. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ECH support is available" >&5
  38291. printf %s "checking whether ECH support is available... " >&6; }
  38292. ECH_ENABLED=0
  38293. ECH_SUPPORT=''
  38294. if test "x$OPENSSL_ENABLED" = "x1"; then
  38295. for ac_func in SSL_get_ech_status
  38296. do :
  38297. ac_fn_c_check_func "$LINENO" "SSL_get_ech_status" "ac_cv_func_SSL_get_ech_status"
  38298. if test "x$ac_cv_func_SSL_get_ech_status" = xyes
  38299. then :
  38300. printf "%s\n" "#define HAVE_SSL_GET_ECH_STATUS 1" >>confdefs.h
  38301. ECH_SUPPORT="ECH support available (OpenSSL with SSL_get_ech_status)"
  38302. ECH_ENABLED=1
  38303. fi
  38304. done
  38305. fi
  38306. if test "x$ECH_ENABLED" = "x1"; then
  38307. printf "%s\n" "#define USE_ECH 1" >>confdefs.h
  38308. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ECH_SUPPORT" >&5
  38309. printf "%s\n" "$ECH_SUPPORT" >&6; }
  38310. experimental="$experimental ECH"
  38311. else
  38312. as_fn_error $? "--enable-ech ignored: No ECH support found" "$LINENO" 5
  38313. fi
  38314. fi
  38315. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether hiding of library internal symbols will actually happen" >&5
  38316. printf %s "checking whether hiding of library internal symbols will actually happen... " >&6; }
  38317. CFLAG_CURL_SYMBOL_HIDING=""
  38318. doing_symbol_hiding="no"
  38319. if test x"$curl_cv_native_windows" != "xyes" &&
  38320. test "$want_symbol_hiding" = "yes" &&
  38321. test "$supports_symbol_hiding" = "yes"; then
  38322. doing_symbol_hiding="yes"
  38323. CFLAG_CURL_SYMBOL_HIDING="$symbol_hiding_CFLAGS"
  38324. printf "%s\n" "#define CURL_EXTERN_SYMBOL $symbol_hiding_EXTERN" >>confdefs.h
  38325. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  38326. printf "%s\n" "yes" >&6; }
  38327. else
  38328. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  38329. printf "%s\n" "no" >&6; }
  38330. fi
  38331. if test x$doing_symbol_hiding = xyes; then
  38332. DOING_CURL_SYMBOL_HIDING_TRUE=
  38333. DOING_CURL_SYMBOL_HIDING_FALSE='#'
  38334. else
  38335. DOING_CURL_SYMBOL_HIDING_TRUE='#'
  38336. DOING_CURL_SYMBOL_HIDING_FALSE=
  38337. fi
  38338. LIBCURL_LIBS="$LIBS$PTHREAD"
  38339. BLANK_AT_MAKETIME=
  38340. if test x$cross_compiling = xyes; then
  38341. CROSSCOMPILING_TRUE=
  38342. CROSSCOMPILING_FALSE='#'
  38343. else
  38344. CROSSCOMPILING_TRUE='#'
  38345. CROSSCOMPILING_FALSE=
  38346. fi
  38347. ENABLE_SHARED="$enable_shared"
  38348. ENABLE_STATIC="$enable_static"
  38349. if test "x$enable_shared" = "xno"; then
  38350. LIBCURL_NO_SHARED=$LIBCURL_LIBS
  38351. else
  38352. LIBCURL_NO_SHARED=
  38353. fi
  38354. if test "x$OPENSSL_ENABLED" = "x1"; then
  38355. SUPPORT_FEATURES="$SUPPORT_FEATURES SSL"
  38356. elif test -n "$SSL_ENABLED"; then
  38357. SUPPORT_FEATURES="$SUPPORT_FEATURES SSL"
  38358. fi
  38359. if test "x$IPV6_ENABLED" = "x1"; then
  38360. SUPPORT_FEATURES="$SUPPORT_FEATURES IPv6"
  38361. fi
  38362. if test "x$USE_UNIX_SOCKETS" = "x1"; then
  38363. SUPPORT_FEATURES="$SUPPORT_FEATURES UnixSockets"
  38364. fi
  38365. if test "x$HAVE_LIBZ" = "x1"; then
  38366. SUPPORT_FEATURES="$SUPPORT_FEATURES libz"
  38367. fi
  38368. if test "x$HAVE_BROTLI" = "x1"; then
  38369. SUPPORT_FEATURES="$SUPPORT_FEATURES brotli"
  38370. fi
  38371. if test "x$HAVE_ZSTD" = "x1"; then
  38372. SUPPORT_FEATURES="$SUPPORT_FEATURES zstd"
  38373. fi
  38374. if test "x$USE_ARES" = "x1" -o "x$USE_THREADS_POSIX" = "x1" \
  38375. -o "x$USE_THREADS_WIN32" = "x1"; then
  38376. SUPPORT_FEATURES="$SUPPORT_FEATURES AsynchDNS"
  38377. fi
  38378. if test "x$IDN_ENABLED" = "x1"; then
  38379. SUPPORT_FEATURES="$SUPPORT_FEATURES IDN"
  38380. fi
  38381. if test "x$USE_WINDOWS_SSPI" = "x1"; then
  38382. SUPPORT_FEATURES="$SUPPORT_FEATURES SSPI"
  38383. fi
  38384. if test "x$HAVE_GSSAPI" = "x1"; then
  38385. SUPPORT_FEATURES="$SUPPORT_FEATURES GSS-API"
  38386. fi
  38387. if test "x$curl_psl_msg" = "xenabled"; then
  38388. SUPPORT_FEATURES="$SUPPORT_FEATURES PSL"
  38389. fi
  38390. if test "x$curl_gsasl_msg" = "xenabled"; then
  38391. SUPPORT_FEATURES="$SUPPORT_FEATURES GSASL"
  38392. fi
  38393. if test "x$enable_altsvc" = "xyes"; then
  38394. SUPPORT_FEATURES="$SUPPORT_FEATURES alt-svc"
  38395. fi
  38396. if test "x$hsts" = "xyes"; then
  38397. SUPPORT_FEATURES="$SUPPORT_FEATURES HSTS"
  38398. fi
  38399. if test "x$CURL_DISABLE_CRYPTO_AUTH" != "x1" -a \
  38400. \( "x$HAVE_GSSAPI" = "x1" -o "x$USE_WINDOWS_SSPI" = "x1" \); then
  38401. SUPPORT_FEATURES="$SUPPORT_FEATURES SPNEGO"
  38402. fi
  38403. if test "x$CURL_DISABLE_CRYPTO_AUTH" != "x1" -a \
  38404. \( "x$HAVE_GSSAPI" = "x1" -o "x$USE_WINDOWS_SSPI" = "x1" \); then
  38405. SUPPORT_FEATURES="$SUPPORT_FEATURES Kerberos"
  38406. fi
  38407. use_curl_ntlm_core=no
  38408. if test "x$CURL_DISABLE_CRYPTO_AUTH" != "x1" -a \
  38409. "x$CURL_DISABLE_NTLM" != "x1"; then
  38410. if test "x$OPENSSL_ENABLED" = "x1" -o "x$MBEDTLS_ENABLED" = "x1" \
  38411. -o "x$GNUTLS_ENABLED" = "x1" -o "x$NSS_ENABLED" = "x1" \
  38412. -o "x$SECURETRANSPORT_ENABLED" = "x1" \
  38413. -o "x$USE_WIN32_CRYPTO" = "x1" \
  38414. -o "x$WOLFSSL_NTLM" = "x1"; then
  38415. use_curl_ntlm_core=yes
  38416. fi
  38417. if test "x$use_curl_ntlm_core" = "xyes" \
  38418. -o "x$USE_WINDOWS_SSPI" = "x1"; then
  38419. SUPPORT_FEATURES="$SUPPORT_FEATURES NTLM"
  38420. if test "x$CURL_DISABLE_HTTP" != "x1" -a \
  38421. "x$NTLM_WB_ENABLED" = "x1"; then
  38422. SUPPORT_FEATURES="$SUPPORT_FEATURES NTLM_WB"
  38423. fi
  38424. fi
  38425. fi
  38426. if test "x$USE_TLS_SRP" = "x1"; then
  38427. SUPPORT_FEATURES="$SUPPORT_FEATURES TLS-SRP"
  38428. fi
  38429. if test "x$USE_NGHTTP2" = "x1" -o "x$USE_HYPER" = "x1"; then
  38430. SUPPORT_FEATURES="$SUPPORT_FEATURES HTTP2"
  38431. fi
  38432. if test "x$USE_NGTCP2" = "x1" -o "x$USE_QUICHE" = "x1"; then
  38433. SUPPORT_FEATURES="$SUPPORT_FEATURES HTTP3"
  38434. fi
  38435. if test "x$CURL_WITH_MULTI_SSL" = "x1"; then
  38436. SUPPORT_FEATURES="$SUPPORT_FEATURES MultiSSL"
  38437. fi
  38438. if test "x$https_proxy" != "xno"; then
  38439. if test "x$OPENSSL_ENABLED" = "x1" -o "x$GNUTLS_ENABLED" = "x1" \
  38440. -o "x$NSS_ENABLED" = "x1"; then
  38441. SUPPORT_FEATURES="$SUPPORT_FEATURES HTTPS-proxy"
  38442. fi
  38443. fi
  38444. if test "x$ECH_ENABLED" = "x1"; then
  38445. SUPPORT_FEATURES="$SUPPORT_FEATURES ECH"
  38446. fi
  38447. if test ${ac_cv_sizeof_curl_off_t} -gt 4; then
  38448. if test ${ac_cv_sizeof_off_t} -gt 4 -o \
  38449. "$curl_win32_file_api" = "win32_large_files"; then
  38450. SUPPORT_FEATURES="$SUPPORT_FEATURES Largefile"
  38451. fi
  38452. fi
  38453. SUPPORT_FEATURES=`echo $SUPPORT_FEATURES | tr ' ' '\012' | sort | tr '\012' ' '`
  38454. if test "x$CURL_DISABLE_HTTP" != "x1"; then
  38455. SUPPORT_PROTOCOLS="$SUPPORT_PROTOCOLS HTTP"
  38456. if test "x$SSL_ENABLED" = "x1"; then
  38457. SUPPORT_PROTOCOLS="$SUPPORT_PROTOCOLS HTTPS"
  38458. fi
  38459. fi
  38460. if test "x$CURL_DISABLE_FTP" != "x1"; then
  38461. SUPPORT_PROTOCOLS="$SUPPORT_PROTOCOLS FTP"
  38462. if test "x$SSL_ENABLED" = "x1"; then
  38463. SUPPORT_PROTOCOLS="$SUPPORT_PROTOCOLS FTPS"
  38464. fi
  38465. fi
  38466. if test "x$CURL_DISABLE_FILE" != "x1"; then
  38467. SUPPORT_PROTOCOLS="$SUPPORT_PROTOCOLS FILE"
  38468. fi
  38469. if test "x$CURL_DISABLE_TELNET" != "x1"; then
  38470. SUPPORT_PROTOCOLS="$SUPPORT_PROTOCOLS TELNET"
  38471. fi
  38472. if test "x$CURL_DISABLE_LDAP" != "x1"; then
  38473. SUPPORT_PROTOCOLS="$SUPPORT_PROTOCOLS LDAP"
  38474. if test "x$CURL_DISABLE_LDAPS" != "x1"; then
  38475. if (test "x$USE_OPENLDAP" = "x1" && test "x$SSL_ENABLED" = "x1") ||
  38476. (test "x$USE_OPENLDAP" != "x1" && test "x$HAVE_LDAP_SSL" = "x1"); then
  38477. SUPPORT_PROTOCOLS="$SUPPORT_PROTOCOLS LDAPS"
  38478. fi
  38479. fi
  38480. fi
  38481. if test "x$CURL_DISABLE_DICT" != "x1"; then
  38482. SUPPORT_PROTOCOLS="$SUPPORT_PROTOCOLS DICT"
  38483. fi
  38484. if test "x$CURL_DISABLE_TFTP" != "x1"; then
  38485. SUPPORT_PROTOCOLS="$SUPPORT_PROTOCOLS TFTP"
  38486. fi
  38487. if test "x$CURL_DISABLE_GOPHER" != "x1"; then
  38488. SUPPORT_PROTOCOLS="$SUPPORT_PROTOCOLS GOPHER"
  38489. if test "x$SSL_ENABLED" = "x1"; then
  38490. SUPPORT_PROTOCOLS="$SUPPORT_PROTOCOLS GOPHERS"
  38491. fi
  38492. fi
  38493. if test "x$CURL_DISABLE_MQTT" != "x1"; then
  38494. SUPPORT_PROTOCOLS="$SUPPORT_PROTOCOLS MQTT"
  38495. fi
  38496. if test "x$CURL_DISABLE_POP3" != "x1"; then
  38497. SUPPORT_PROTOCOLS="$SUPPORT_PROTOCOLS POP3"
  38498. if test "x$SSL_ENABLED" = "x1"; then
  38499. SUPPORT_PROTOCOLS="$SUPPORT_PROTOCOLS POP3S"
  38500. fi
  38501. fi
  38502. if test "x$CURL_DISABLE_IMAP" != "x1"; then
  38503. SUPPORT_PROTOCOLS="$SUPPORT_PROTOCOLS IMAP"
  38504. if test "x$SSL_ENABLED" = "x1"; then
  38505. SUPPORT_PROTOCOLS="$SUPPORT_PROTOCOLS IMAPS"
  38506. fi
  38507. fi
  38508. if test "x$CURL_DISABLE_SMB" != "x1" \
  38509. -a "x$use_curl_ntlm_core" = "xyes"; then
  38510. SUPPORT_PROTOCOLS="$SUPPORT_PROTOCOLS SMB"
  38511. if test "x$SSL_ENABLED" = "x1"; then
  38512. SUPPORT_PROTOCOLS="$SUPPORT_PROTOCOLS SMBS"
  38513. fi
  38514. fi
  38515. if test "x$CURL_DISABLE_SMTP" != "x1"; then
  38516. SUPPORT_PROTOCOLS="$SUPPORT_PROTOCOLS SMTP"
  38517. if test "x$SSL_ENABLED" = "x1"; then
  38518. SUPPORT_PROTOCOLS="$SUPPORT_PROTOCOLS SMTPS"
  38519. fi
  38520. fi
  38521. if test "x$USE_LIBSSH2" = "x1"; then
  38522. SUPPORT_PROTOCOLS="$SUPPORT_PROTOCOLS SCP"
  38523. SUPPORT_PROTOCOLS="$SUPPORT_PROTOCOLS SFTP"
  38524. fi
  38525. if test "x$USE_LIBSSH" = "x1"; then
  38526. SUPPORT_PROTOCOLS="$SUPPORT_PROTOCOLS SCP"
  38527. SUPPORT_PROTOCOLS="$SUPPORT_PROTOCOLS SFTP"
  38528. fi
  38529. if test "x$USE_WOLFSSH" = "x1"; then
  38530. SUPPORT_PROTOCOLS="$SUPPORT_PROTOCOLS SFTP"
  38531. fi
  38532. if test "x$CURL_DISABLE_RTSP" != "x1"; then
  38533. SUPPORT_PROTOCOLS="$SUPPORT_PROTOCOLS RTSP"
  38534. fi
  38535. if test "x$USE_LIBRTMP" = "x1"; then
  38536. SUPPORT_PROTOCOLS="$SUPPORT_PROTOCOLS RTMP"
  38537. fi
  38538. SUPPORT_PROTOCOLS=`echo $SUPPORT_PROTOCOLS | tr ' ' '\012' | sort | tr '\012' ' '`
  38539. squeeze CFLAGS
  38540. squeeze CPPFLAGS
  38541. squeeze DEFS
  38542. squeeze LDFLAGS
  38543. squeeze LIBS
  38544. squeeze LIBCURL_LIBS
  38545. squeeze CURL_NETWORK_LIBS
  38546. squeeze CURL_NETWORK_AND_TIME_LIBS
  38547. squeeze SUPPORT_FEATURES
  38548. squeeze SUPPORT_PROTOCOLS
  38549. xc_bad_var_libs=no
  38550. for xc_word in $LIBS; do
  38551. case "$xc_word" in
  38552. -l* | --library=*)
  38553. :
  38554. ;;
  38555. *)
  38556. xc_bad_var_libs=yes
  38557. ;;
  38558. esac
  38559. done
  38560. if test $xc_bad_var_libs = yes; then
  38561. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: using LIBS: $LIBS" >&5
  38562. printf "%s\n" "$as_me: using LIBS: $LIBS" >&6;}
  38563. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: LIBS note: LIBS should only be used to specify libraries (-lname)." >&5
  38564. printf "%s\n" "$as_me: LIBS note: LIBS should only be used to specify libraries (-lname)." >&6;}
  38565. fi
  38566. xc_bad_var_ldflags=no
  38567. for xc_word in $LDFLAGS; do
  38568. case "$xc_word" in
  38569. -D*)
  38570. xc_bad_var_ldflags=yes
  38571. ;;
  38572. -U*)
  38573. xc_bad_var_ldflags=yes
  38574. ;;
  38575. -I*)
  38576. xc_bad_var_ldflags=yes
  38577. ;;
  38578. -l* | --library=*)
  38579. xc_bad_var_ldflags=yes
  38580. ;;
  38581. esac
  38582. done
  38583. if test $xc_bad_var_ldflags = yes; then
  38584. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: using LDFLAGS: $LDFLAGS" >&5
  38585. printf "%s\n" "$as_me: using LDFLAGS: $LDFLAGS" >&6;}
  38586. xc_bad_var_msg="LDFLAGS note: LDFLAGS should only be used to specify linker flags, not"
  38587. for xc_word in $LDFLAGS; do
  38588. case "$xc_word" in
  38589. -D*)
  38590. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: $xc_bad_var_msg macro definitions. Use CPPFLAGS for: $xc_word" >&5
  38591. printf "%s\n" "$as_me: $xc_bad_var_msg macro definitions. Use CPPFLAGS for: $xc_word" >&6;}
  38592. ;;
  38593. -U*)
  38594. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: $xc_bad_var_msg macro suppressions. Use CPPFLAGS for: $xc_word" >&5
  38595. printf "%s\n" "$as_me: $xc_bad_var_msg macro suppressions. Use CPPFLAGS for: $xc_word" >&6;}
  38596. ;;
  38597. -I*)
  38598. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: $xc_bad_var_msg include directories. Use CPPFLAGS for: $xc_word" >&5
  38599. printf "%s\n" "$as_me: $xc_bad_var_msg include directories. Use CPPFLAGS for: $xc_word" >&6;}
  38600. ;;
  38601. -l* | --library=*)
  38602. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: $xc_bad_var_msg libraries. Use LIBS for: $xc_word" >&5
  38603. printf "%s\n" "$as_me: $xc_bad_var_msg libraries. Use LIBS for: $xc_word" >&6;}
  38604. ;;
  38605. esac
  38606. done
  38607. fi
  38608. xc_bad_var_cppflags=no
  38609. for xc_word in $CPPFLAGS; do
  38610. case "$xc_word" in
  38611. -rpath*)
  38612. xc_bad_var_cppflags=yes
  38613. ;;
  38614. -L* | --library-path=*)
  38615. xc_bad_var_cppflags=yes
  38616. ;;
  38617. -l* | --library=*)
  38618. xc_bad_var_cppflags=yes
  38619. ;;
  38620. esac
  38621. done
  38622. if test $xc_bad_var_cppflags = yes; then
  38623. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: using CPPFLAGS: $CPPFLAGS" >&5
  38624. printf "%s\n" "$as_me: using CPPFLAGS: $CPPFLAGS" >&6;}
  38625. xc_bad_var_msg="CPPFLAGS note: CPPFLAGS should only be used to specify C preprocessor flags, not"
  38626. for xc_word in $CPPFLAGS; do
  38627. case "$xc_word" in
  38628. -rpath*)
  38629. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: $xc_bad_var_msg library runtime directories. Use LDFLAGS for: $xc_word" >&5
  38630. printf "%s\n" "$as_me: $xc_bad_var_msg library runtime directories. Use LDFLAGS for: $xc_word" >&6;}
  38631. ;;
  38632. -L* | --library-path=*)
  38633. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: $xc_bad_var_msg library directories. Use LDFLAGS for: $xc_word" >&5
  38634. printf "%s\n" "$as_me: $xc_bad_var_msg library directories. Use LDFLAGS for: $xc_word" >&6;}
  38635. ;;
  38636. -l* | --library=*)
  38637. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: $xc_bad_var_msg libraries. Use LIBS for: $xc_word" >&5
  38638. printf "%s\n" "$as_me: $xc_bad_var_msg libraries. Use LIBS for: $xc_word" >&6;}
  38639. ;;
  38640. esac
  38641. done
  38642. fi
  38643. xc_bad_var_cflags=no
  38644. for xc_word in $CFLAGS; do
  38645. case "$xc_word" in
  38646. -D*)
  38647. xc_bad_var_cflags=yes
  38648. ;;
  38649. -U*)
  38650. xc_bad_var_cflags=yes
  38651. ;;
  38652. -I*)
  38653. xc_bad_var_cflags=yes
  38654. ;;
  38655. -rpath*)
  38656. xc_bad_var_cflags=yes
  38657. ;;
  38658. -L* | --library-path=*)
  38659. xc_bad_var_cflags=yes
  38660. ;;
  38661. -l* | --library=*)
  38662. xc_bad_var_cflags=yes
  38663. ;;
  38664. esac
  38665. done
  38666. if test $xc_bad_var_cflags = yes; then
  38667. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: using CFLAGS: $CFLAGS" >&5
  38668. printf "%s\n" "$as_me: using CFLAGS: $CFLAGS" >&6;}
  38669. xc_bad_var_msg="CFLAGS note: CFLAGS should only be used to specify C compiler flags, not"
  38670. for xc_word in $CFLAGS; do
  38671. case "$xc_word" in
  38672. -D*)
  38673. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: $xc_bad_var_msg macro definitions. Use CPPFLAGS for: $xc_word" >&5
  38674. printf "%s\n" "$as_me: $xc_bad_var_msg macro definitions. Use CPPFLAGS for: $xc_word" >&6;}
  38675. ;;
  38676. -U*)
  38677. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: $xc_bad_var_msg macro suppressions. Use CPPFLAGS for: $xc_word" >&5
  38678. printf "%s\n" "$as_me: $xc_bad_var_msg macro suppressions. Use CPPFLAGS for: $xc_word" >&6;}
  38679. ;;
  38680. -I*)
  38681. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: $xc_bad_var_msg include directories. Use CPPFLAGS for: $xc_word" >&5
  38682. printf "%s\n" "$as_me: $xc_bad_var_msg include directories. Use CPPFLAGS for: $xc_word" >&6;}
  38683. ;;
  38684. -rpath*)
  38685. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: $xc_bad_var_msg library runtime directories. Use LDFLAGS for: $xc_word" >&5
  38686. printf "%s\n" "$as_me: $xc_bad_var_msg library runtime directories. Use LDFLAGS for: $xc_word" >&6;}
  38687. ;;
  38688. -L* | --library-path=*)
  38689. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: $xc_bad_var_msg library directories. Use LDFLAGS for: $xc_word" >&5
  38690. printf "%s\n" "$as_me: $xc_bad_var_msg library directories. Use LDFLAGS for: $xc_word" >&6;}
  38691. ;;
  38692. -l* | --library=*)
  38693. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: $xc_bad_var_msg libraries. Use LIBS for: $xc_word" >&5
  38694. printf "%s\n" "$as_me: $xc_bad_var_msg libraries. Use LIBS for: $xc_word" >&6;}
  38695. ;;
  38696. esac
  38697. done
  38698. fi
  38699. if test $xc_bad_var_libs = yes ||
  38700. test $xc_bad_var_cflags = yes ||
  38701. test $xc_bad_var_ldflags = yes ||
  38702. test $xc_bad_var_cppflags = yes; then
  38703. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: Continuing even with errors mentioned immediately above this line." >&5
  38704. printf "%s\n" "$as_me: WARNING: Continuing even with errors mentioned immediately above this line." >&2;}
  38705. fi
  38706. SSL_BACKENDS=${ssl_backends}
  38707. if test "x$want_curldebug_assumed" = "xyes" &&
  38708. test "x$want_curldebug" = "xyes" && test "x$USE_ARES" = "x1"; then
  38709. ac_configure_args="$ac_configure_args --enable-curldebug"
  38710. fi
  38711. ac_config_files="$ac_config_files Makefile docs/Makefile docs/examples/Makefile docs/libcurl/Makefile docs/libcurl/opts/Makefile docs/cmdline-opts/Makefile include/Makefile include/curl/Makefile src/Makefile lib/Makefile scripts/Makefile lib/libcurl.vers tests/Makefile tests/certs/Makefile tests/certs/scripts/Makefile tests/data/Makefile tests/server/Makefile tests/libtest/Makefile tests/unit/Makefile packages/Makefile packages/vms/Makefile curl-config libcurl.pc"
  38712. cat >confcache <<\_ACEOF
  38713. # This file is a shell script that caches the results of configure
  38714. # tests run on this system so they can be shared between configure
  38715. # scripts and configure runs, see configure's option --config-cache.
  38716. # It is not useful on other systems. If it contains results you don't
  38717. # want to keep, you may remove or edit it.
  38718. #
  38719. # config.status only pays attention to the cache file if you give it
  38720. # the --recheck option to rerun configure.
  38721. #
  38722. # `ac_cv_env_foo' variables (set or unset) will be overridden when
  38723. # loading this file, other *unset* `ac_cv_foo' will be assigned the
  38724. # following values.
  38725. _ACEOF
  38726. # The following way of writing the cache mishandles newlines in values,
  38727. # but we know of no workaround that is simple, portable, and efficient.
  38728. # So, we kill variables containing newlines.
  38729. # Ultrix sh set writes to stderr and can't be redirected directly,
  38730. # and sets the high bit in the cache file unless we assign to the vars.
  38731. (
  38732. for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
  38733. eval ac_val=\$$ac_var
  38734. case $ac_val in #(
  38735. *${as_nl}*)
  38736. case $ac_var in #(
  38737. *_cv_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
  38738. printf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
  38739. esac
  38740. case $ac_var in #(
  38741. _ | IFS | as_nl) ;; #(
  38742. BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
  38743. *) { eval $ac_var=; unset $ac_var;} ;;
  38744. esac ;;
  38745. esac
  38746. done
  38747. (set) 2>&1 |
  38748. case $as_nl`(ac_space=' '; set) 2>&1` in #(
  38749. *${as_nl}ac_space=\ *)
  38750. # `set' does not quote correctly, so add quotes: double-quote
  38751. # substitution turns \\\\ into \\, and sed turns \\ into \.
  38752. sed -n \
  38753. "s/'/'\\\\''/g;
  38754. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
  38755. ;; #(
  38756. *)
  38757. # `set' quotes correctly as required by POSIX, so do not add quotes.
  38758. sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
  38759. ;;
  38760. esac |
  38761. sort
  38762. ) |
  38763. sed '
  38764. /^ac_cv_env_/b end
  38765. t clear
  38766. :clear
  38767. s/^\([^=]*\)=\(.*[{}].*\)$/test ${\1+y} || &/
  38768. t end
  38769. s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
  38770. :end' >>confcache
  38771. if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
  38772. if test -w "$cache_file"; then
  38773. if test "x$cache_file" != "x/dev/null"; then
  38774. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
  38775. printf "%s\n" "$as_me: updating cache $cache_file" >&6;}
  38776. if test ! -f "$cache_file" || test -h "$cache_file"; then
  38777. cat confcache >"$cache_file"
  38778. else
  38779. case $cache_file in #(
  38780. */* | ?:*)
  38781. mv -f confcache "$cache_file"$$ &&
  38782. mv -f "$cache_file"$$ "$cache_file" ;; #(
  38783. *)
  38784. mv -f confcache "$cache_file" ;;
  38785. esac
  38786. fi
  38787. fi
  38788. else
  38789. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
  38790. printf "%s\n" "$as_me: not updating unwritable cache $cache_file" >&6;}
  38791. fi
  38792. fi
  38793. rm -f confcache
  38794. test "x$prefix" = xNONE && prefix=$ac_default_prefix
  38795. # Let make expand exec_prefix.
  38796. test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
  38797. DEFS=-DHAVE_CONFIG_H
  38798. ac_libobjs=
  38799. ac_ltlibobjs=
  38800. U=
  38801. for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
  38802. # 1. Remove the extension, and $U if already installed.
  38803. ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
  38804. ac_i=`printf "%s\n" "$ac_i" | sed "$ac_script"`
  38805. # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
  38806. # will be set to the directory where LIBOBJS objects are built.
  38807. as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
  38808. as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
  38809. done
  38810. LIBOBJS=$ac_libobjs
  38811. LTLIBOBJS=$ac_ltlibobjs
  38812. if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
  38813. as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined.
  38814. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  38815. fi
  38816. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
  38817. printf %s "checking that generated files are newer than configure... " >&6; }
  38818. if test -n "$am_sleep_pid"; then
  38819. # Hide warnings about reused PIDs.
  38820. wait $am_sleep_pid 2>/dev/null
  38821. fi
  38822. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: done" >&5
  38823. printf "%s\n" "done" >&6; }
  38824. if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
  38825. as_fn_error $? "conditional \"AMDEP\" was never defined.
  38826. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  38827. fi
  38828. if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
  38829. as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
  38830. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  38831. fi
  38832. if test -n "$EXEEXT"; then
  38833. am__EXEEXT_TRUE=
  38834. am__EXEEXT_FALSE='#'
  38835. else
  38836. am__EXEEXT_TRUE='#'
  38837. am__EXEEXT_FALSE=
  38838. fi
  38839. if test -z "${CURL_LT_SHLIB_USE_VERSION_INFO_TRUE}" && test -z "${CURL_LT_SHLIB_USE_VERSION_INFO_FALSE}"; then
  38840. as_fn_error $? "conditional \"CURL_LT_SHLIB_USE_VERSION_INFO\" was never defined.
  38841. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  38842. fi
  38843. if test -z "${CURL_LT_SHLIB_USE_NO_UNDEFINED_TRUE}" && test -z "${CURL_LT_SHLIB_USE_NO_UNDEFINED_FALSE}"; then
  38844. as_fn_error $? "conditional \"CURL_LT_SHLIB_USE_NO_UNDEFINED\" was never defined.
  38845. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  38846. fi
  38847. if test -z "${CURL_LT_SHLIB_USE_MIMPURE_TEXT_TRUE}" && test -z "${CURL_LT_SHLIB_USE_MIMPURE_TEXT_FALSE}"; then
  38848. as_fn_error $? "conditional \"CURL_LT_SHLIB_USE_MIMPURE_TEXT\" was never defined.
  38849. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  38850. fi
  38851. if test -z "${USE_CPPFLAG_CURL_STATICLIB_TRUE}" && test -z "${USE_CPPFLAG_CURL_STATICLIB_FALSE}"; then
  38852. as_fn_error $? "conditional \"USE_CPPFLAG_CURL_STATICLIB\" was never defined.
  38853. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  38854. fi
  38855. if test -z "${USE_EXPLICIT_LIB_DEPS_TRUE}" && test -z "${USE_EXPLICIT_LIB_DEPS_FALSE}"; then
  38856. as_fn_error $? "conditional \"USE_EXPLICIT_LIB_DEPS\" was never defined.
  38857. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  38858. fi
  38859. if test -z "${CURLDEBUG_TRUE}" && test -z "${CURLDEBUG_FALSE}"; then
  38860. as_fn_error $? "conditional \"CURLDEBUG\" was never defined.
  38861. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  38862. fi
  38863. if test -z "${BUILD_UNITTESTS_TRUE}" && test -z "${BUILD_UNITTESTS_FALSE}"; then
  38864. as_fn_error $? "conditional \"BUILD_UNITTESTS\" was never defined.
  38865. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  38866. fi
  38867. if test -z "${DOING_NATIVE_WINDOWS_TRUE}" && test -z "${DOING_NATIVE_WINDOWS_FALSE}"; then
  38868. as_fn_error $? "conditional \"DOING_NATIVE_WINDOWS\" was never defined.
  38869. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  38870. fi
  38871. if test -z "${HAVE_LIBZ_TRUE}" && test -z "${HAVE_LIBZ_FALSE}"; then
  38872. as_fn_error $? "conditional \"HAVE_LIBZ\" was never defined.
  38873. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  38874. fi
  38875. if test -z "${BUILD_STUB_GSS_TRUE}" && test -z "${BUILD_STUB_GSS_FALSE}"; then
  38876. as_fn_error $? "conditional \"BUILD_STUB_GSS\" was never defined.
  38877. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  38878. fi
  38879. if test -z "${USE_LIBPSL_TRUE}" && test -z "${USE_LIBPSL_FALSE}"; then
  38880. as_fn_error $? "conditional \"USE_LIBPSL\" was never defined.
  38881. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  38882. fi
  38883. if test -z "${USE_GSASL_TRUE}" && test -z "${USE_GSASL_FALSE}"; then
  38884. as_fn_error $? "conditional \"USE_GSASL\" was never defined.
  38885. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  38886. fi
  38887. if test -z "${CURL_LT_SHLIB_USE_VERSIONED_SYMBOLS_TRUE}" && test -z "${CURL_LT_SHLIB_USE_VERSIONED_SYMBOLS_FALSE}"; then
  38888. as_fn_error $? "conditional \"CURL_LT_SHLIB_USE_VERSIONED_SYMBOLS\" was never defined.
  38889. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  38890. fi
  38891. if test -z "${USE_MANUAL_TRUE}" && test -z "${USE_MANUAL_FALSE}"; then
  38892. as_fn_error $? "conditional \"USE_MANUAL\" was never defined.
  38893. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  38894. fi
  38895. if test -z "${USE_EMBEDDED_ARES_TRUE}" && test -z "${USE_EMBEDDED_ARES_FALSE}"; then
  38896. as_fn_error $? "conditional \"USE_EMBEDDED_ARES\" was never defined.
  38897. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  38898. fi
  38899. if test -z "${BUILD_LIBHOSTNAME_TRUE}" && test -z "${BUILD_LIBHOSTNAME_FALSE}"; then
  38900. as_fn_error $? "conditional \"BUILD_LIBHOSTNAME\" was never defined.
  38901. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  38902. fi
  38903. if test -z "${DOING_CURL_SYMBOL_HIDING_TRUE}" && test -z "${DOING_CURL_SYMBOL_HIDING_FALSE}"; then
  38904. as_fn_error $? "conditional \"DOING_CURL_SYMBOL_HIDING\" was never defined.
  38905. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  38906. fi
  38907. if test -z "${CROSSCOMPILING_TRUE}" && test -z "${CROSSCOMPILING_FALSE}"; then
  38908. as_fn_error $? "conditional \"CROSSCOMPILING\" was never defined.
  38909. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  38910. fi
  38911. : "${CONFIG_STATUS=./config.status}"
  38912. ac_write_fail=0
  38913. ac_clean_files_save=$ac_clean_files
  38914. ac_clean_files="$ac_clean_files $CONFIG_STATUS"
  38915. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
  38916. printf "%s\n" "$as_me: creating $CONFIG_STATUS" >&6;}
  38917. as_write_fail=0
  38918. cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
  38919. #! $SHELL
  38920. # Generated by $as_me.
  38921. # Run this file to recreate the current configuration.
  38922. # Compiler output produced by configure, useful for debugging
  38923. # configure, is in config.log if it exists.
  38924. debug=false
  38925. ac_cs_recheck=false
  38926. ac_cs_silent=false
  38927. SHELL=\${CONFIG_SHELL-$SHELL}
  38928. export SHELL
  38929. _ASEOF
  38930. cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
  38931. ## -------------------- ##
  38932. ## M4sh Initialization. ##
  38933. ## -------------------- ##
  38934. # Be more Bourne compatible
  38935. DUALCASE=1; export DUALCASE # for MKS sh
  38936. as_nop=:
  38937. if test ${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1
  38938. then :
  38939. emulate sh
  38940. NULLCMD=:
  38941. # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
  38942. # is contrary to our usage. Disable this feature.
  38943. alias -g '${1+"$@"}'='"$@"'
  38944. setopt NO_GLOB_SUBST
  38945. else $as_nop
  38946. case `(set -o) 2>/dev/null` in #(
  38947. *posix*) :
  38948. set -o posix ;; #(
  38949. *) :
  38950. ;;
  38951. esac
  38952. fi
  38953. # Reset variables that may have inherited troublesome values from
  38954. # the environment.
  38955. # IFS needs to be set, to space, tab, and newline, in precisely that order.
  38956. # (If _AS_PATH_WALK were called with IFS unset, it would have the
  38957. # side effect of setting IFS to empty, thus disabling word splitting.)
  38958. # Quoting is to prevent editors from complaining about space-tab.
  38959. as_nl='
  38960. '
  38961. export as_nl
  38962. IFS=" "" $as_nl"
  38963. PS1='$ '
  38964. PS2='> '
  38965. PS4='+ '
  38966. # Ensure predictable behavior from utilities with locale-dependent output.
  38967. LC_ALL=C
  38968. export LC_ALL
  38969. LANGUAGE=C
  38970. export LANGUAGE
  38971. # We cannot yet rely on "unset" to work, but we need these variables
  38972. # to be unset--not just set to an empty or harmless value--now, to
  38973. # avoid bugs in old shells (e.g. pre-3.0 UWIN ksh). This construct
  38974. # also avoids known problems related to "unset" and subshell syntax
  38975. # in other old shells (e.g. bash 2.01 and pdksh 5.2.14).
  38976. for as_var in BASH_ENV ENV MAIL MAILPATH CDPATH
  38977. do eval test \${$as_var+y} \
  38978. && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
  38979. done
  38980. # Ensure that fds 0, 1, and 2 are open.
  38981. if (exec 3>&0) 2>/dev/null; then :; else exec 0</dev/null; fi
  38982. if (exec 3>&1) 2>/dev/null; then :; else exec 1>/dev/null; fi
  38983. if (exec 3>&2) ; then :; else exec 2>/dev/null; fi
  38984. # Find who we are. Look in the path if we contain no directory separator.
  38985. as_myself=
  38986. case $0 in #((
  38987. *[\\/]* ) as_myself=$0 ;;
  38988. *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  38989. for as_dir in $PATH
  38990. do
  38991. IFS=$as_save_IFS
  38992. case $as_dir in #(((
  38993. '') as_dir=./ ;;
  38994. */) ;;
  38995. *) as_dir=$as_dir/ ;;
  38996. esac
  38997. test -r "$as_dir$0" && as_myself=$as_dir$0 && break
  38998. done
  38999. IFS=$as_save_IFS
  39000. ;;
  39001. esac
  39002. # We did not find ourselves, most probably we were run as `sh COMMAND'
  39003. # in which case we are not to be found in the path.
  39004. if test "x$as_myself" = x; then
  39005. as_myself=$0
  39006. fi
  39007. if test ! -f "$as_myself"; then
  39008. printf "%s\n" "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
  39009. exit 1
  39010. fi
  39011. # as_fn_error STATUS ERROR [LINENO LOG_FD]
  39012. # ----------------------------------------
  39013. # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
  39014. # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
  39015. # script with STATUS, using 1 if that was 0.
  39016. as_fn_error ()
  39017. {
  39018. as_status=$1; test $as_status -eq 0 && as_status=1
  39019. if test "$4"; then
  39020. as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  39021. printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
  39022. fi
  39023. printf "%s\n" "$as_me: error: $2" >&2
  39024. as_fn_exit $as_status
  39025. } # as_fn_error
  39026. # as_fn_set_status STATUS
  39027. # -----------------------
  39028. # Set $? to STATUS, without forking.
  39029. as_fn_set_status ()
  39030. {
  39031. return $1
  39032. } # as_fn_set_status
  39033. # as_fn_exit STATUS
  39034. # -----------------
  39035. # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
  39036. as_fn_exit ()
  39037. {
  39038. set +e
  39039. as_fn_set_status $1
  39040. exit $1
  39041. } # as_fn_exit
  39042. # as_fn_unset VAR
  39043. # ---------------
  39044. # Portably unset VAR.
  39045. as_fn_unset ()
  39046. {
  39047. { eval $1=; unset $1;}
  39048. }
  39049. as_unset=as_fn_unset
  39050. # as_fn_append VAR VALUE
  39051. # ----------------------
  39052. # Append the text in VALUE to the end of the definition contained in VAR. Take
  39053. # advantage of any shell optimizations that allow amortized linear growth over
  39054. # repeated appends, instead of the typical quadratic growth present in naive
  39055. # implementations.
  39056. if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null
  39057. then :
  39058. eval 'as_fn_append ()
  39059. {
  39060. eval $1+=\$2
  39061. }'
  39062. else $as_nop
  39063. as_fn_append ()
  39064. {
  39065. eval $1=\$$1\$2
  39066. }
  39067. fi # as_fn_append
  39068. # as_fn_arith ARG...
  39069. # ------------------
  39070. # Perform arithmetic evaluation on the ARGs, and store the result in the
  39071. # global $as_val. Take advantage of shells that can avoid forks. The arguments
  39072. # must be portable across $(()) and expr.
  39073. if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null
  39074. then :
  39075. eval 'as_fn_arith ()
  39076. {
  39077. as_val=$(( $* ))
  39078. }'
  39079. else $as_nop
  39080. as_fn_arith ()
  39081. {
  39082. as_val=`expr "$@" || test $? -eq 1`
  39083. }
  39084. fi # as_fn_arith
  39085. if expr a : '\(a\)' >/dev/null 2>&1 &&
  39086. test "X`expr 00001 : '.*\(...\)'`" = X001; then
  39087. as_expr=expr
  39088. else
  39089. as_expr=false
  39090. fi
  39091. if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
  39092. as_basename=basename
  39093. else
  39094. as_basename=false
  39095. fi
  39096. if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
  39097. as_dirname=dirname
  39098. else
  39099. as_dirname=false
  39100. fi
  39101. as_me=`$as_basename -- "$0" ||
  39102. $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
  39103. X"$0" : 'X\(//\)$' \| \
  39104. X"$0" : 'X\(/\)' \| . 2>/dev/null ||
  39105. printf "%s\n" X/"$0" |
  39106. sed '/^.*\/\([^/][^/]*\)\/*$/{
  39107. s//\1/
  39108. q
  39109. }
  39110. /^X\/\(\/\/\)$/{
  39111. s//\1/
  39112. q
  39113. }
  39114. /^X\/\(\/\).*/{
  39115. s//\1/
  39116. q
  39117. }
  39118. s/.*/./; q'`
  39119. # Avoid depending upon Character Ranges.
  39120. as_cr_letters='abcdefghijklmnopqrstuvwxyz'
  39121. as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
  39122. as_cr_Letters=$as_cr_letters$as_cr_LETTERS
  39123. as_cr_digits='0123456789'
  39124. as_cr_alnum=$as_cr_Letters$as_cr_digits
  39125. # Determine whether it's possible to make 'echo' print without a newline.
  39126. # These variables are no longer used directly by Autoconf, but are AC_SUBSTed
  39127. # for compatibility with existing Makefiles.
  39128. ECHO_C= ECHO_N= ECHO_T=
  39129. case `echo -n x` in #(((((
  39130. -n*)
  39131. case `echo 'xy\c'` in
  39132. *c*) ECHO_T=' ';; # ECHO_T is single tab character.
  39133. xy) ECHO_C='\c';;
  39134. *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
  39135. ECHO_T=' ';;
  39136. esac;;
  39137. *)
  39138. ECHO_N='-n';;
  39139. esac
  39140. # For backward compatibility with old third-party macros, we provide
  39141. # the shell variables $as_echo and $as_echo_n. New code should use
  39142. # AS_ECHO(["message"]) and AS_ECHO_N(["message"]), respectively.
  39143. as_echo='printf %s\n'
  39144. as_echo_n='printf %s'
  39145. rm -f conf$$ conf$$.exe conf$$.file
  39146. if test -d conf$$.dir; then
  39147. rm -f conf$$.dir/conf$$.file
  39148. else
  39149. rm -f conf$$.dir
  39150. mkdir conf$$.dir 2>/dev/null
  39151. fi
  39152. if (echo >conf$$.file) 2>/dev/null; then
  39153. if ln -s conf$$.file conf$$ 2>/dev/null; then
  39154. as_ln_s='ln -s'
  39155. # ... but there are two gotchas:
  39156. # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
  39157. # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
  39158. # In both cases, we have to default to `cp -pR'.
  39159. ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
  39160. as_ln_s='cp -pR'
  39161. elif ln conf$$.file conf$$ 2>/dev/null; then
  39162. as_ln_s=ln
  39163. else
  39164. as_ln_s='cp -pR'
  39165. fi
  39166. else
  39167. as_ln_s='cp -pR'
  39168. fi
  39169. rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
  39170. rmdir conf$$.dir 2>/dev/null
  39171. # as_fn_mkdir_p
  39172. # -------------
  39173. # Create "$as_dir" as a directory, including parents if necessary.
  39174. as_fn_mkdir_p ()
  39175. {
  39176. case $as_dir in #(
  39177. -*) as_dir=./$as_dir;;
  39178. esac
  39179. test -d "$as_dir" || eval $as_mkdir_p || {
  39180. as_dirs=
  39181. while :; do
  39182. case $as_dir in #(
  39183. *\'*) as_qdir=`printf "%s\n" "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
  39184. *) as_qdir=$as_dir;;
  39185. esac
  39186. as_dirs="'$as_qdir' $as_dirs"
  39187. as_dir=`$as_dirname -- "$as_dir" ||
  39188. $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  39189. X"$as_dir" : 'X\(//\)[^/]' \| \
  39190. X"$as_dir" : 'X\(//\)$' \| \
  39191. X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
  39192. printf "%s\n" X"$as_dir" |
  39193. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  39194. s//\1/
  39195. q
  39196. }
  39197. /^X\(\/\/\)[^/].*/{
  39198. s//\1/
  39199. q
  39200. }
  39201. /^X\(\/\/\)$/{
  39202. s//\1/
  39203. q
  39204. }
  39205. /^X\(\/\).*/{
  39206. s//\1/
  39207. q
  39208. }
  39209. s/.*/./; q'`
  39210. test -d "$as_dir" && break
  39211. done
  39212. test -z "$as_dirs" || eval "mkdir $as_dirs"
  39213. } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
  39214. } # as_fn_mkdir_p
  39215. if mkdir -p . 2>/dev/null; then
  39216. as_mkdir_p='mkdir -p "$as_dir"'
  39217. else
  39218. test -d ./-p && rmdir ./-p
  39219. as_mkdir_p=false
  39220. fi
  39221. # as_fn_executable_p FILE
  39222. # -----------------------
  39223. # Test if FILE is an executable regular file.
  39224. as_fn_executable_p ()
  39225. {
  39226. test -f "$1" && test -x "$1"
  39227. } # as_fn_executable_p
  39228. as_test_x='test -x'
  39229. as_executable_p=as_fn_executable_p
  39230. # Sed expression to map a string onto a valid CPP name.
  39231. as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
  39232. # Sed expression to map a string onto a valid variable name.
  39233. as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
  39234. exec 6>&1
  39235. ## ----------------------------------- ##
  39236. ## Main body of $CONFIG_STATUS script. ##
  39237. ## ----------------------------------- ##
  39238. _ASEOF
  39239. test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
  39240. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  39241. # Save the log message, to keep $0 and so on meaningful, and to
  39242. # report actual input values of CONFIG_FILES etc. instead of their
  39243. # values after options handling.
  39244. ac_log="
  39245. This file was extended by curl $as_me -, which was
  39246. generated by GNU Autoconf 2.71. Invocation command line was
  39247. CONFIG_FILES = $CONFIG_FILES
  39248. CONFIG_HEADERS = $CONFIG_HEADERS
  39249. CONFIG_LINKS = $CONFIG_LINKS
  39250. CONFIG_COMMANDS = $CONFIG_COMMANDS
  39251. $ $0 $@
  39252. on `(hostname || uname -n) 2>/dev/null | sed 1q`
  39253. "
  39254. _ACEOF
  39255. case $ac_config_files in *"
  39256. "*) set x $ac_config_files; shift; ac_config_files=$*;;
  39257. esac
  39258. case $ac_config_headers in *"
  39259. "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
  39260. esac
  39261. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  39262. # Files that config.status was made for.
  39263. config_files="$ac_config_files"
  39264. config_headers="$ac_config_headers"
  39265. config_commands="$ac_config_commands"
  39266. _ACEOF
  39267. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  39268. ac_cs_usage="\
  39269. \`$as_me' instantiates files and other configuration actions
  39270. from templates according to the current configuration. Unless the files
  39271. and actions are specified as TAGs, all are instantiated by default.
  39272. Usage: $0 [OPTION]... [TAG]...
  39273. -h, --help print this help, then exit
  39274. -V, --version print version number and configuration settings, then exit
  39275. --config print configuration, then exit
  39276. -q, --quiet, --silent
  39277. do not print progress messages
  39278. -d, --debug don't remove temporary files
  39279. --recheck update $as_me by reconfiguring in the same conditions
  39280. --file=FILE[:TEMPLATE]
  39281. instantiate the configuration file FILE
  39282. --header=FILE[:TEMPLATE]
  39283. instantiate the configuration header FILE
  39284. Configuration files:
  39285. $config_files
  39286. Configuration headers:
  39287. $config_headers
  39288. Configuration commands:
  39289. $config_commands
  39290. Report bugs to <a suitable curl mailing list: https://curl.se/mail/>."
  39291. _ACEOF
  39292. ac_cs_config=`printf "%s\n" "$ac_configure_args" | sed "$ac_safe_unquote"`
  39293. ac_cs_config_escaped=`printf "%s\n" "$ac_cs_config" | sed "s/^ //; s/'/'\\\\\\\\''/g"`
  39294. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  39295. ac_cs_config='$ac_cs_config_escaped'
  39296. ac_cs_version="\\
  39297. curl config.status -
  39298. configured by $0, generated by GNU Autoconf 2.71,
  39299. with options \\"\$ac_cs_config\\"
  39300. Copyright (C) 2021 Free Software Foundation, Inc.
  39301. This config.status script is free software; the Free Software Foundation
  39302. gives unlimited permission to copy, distribute and modify it."
  39303. ac_pwd='$ac_pwd'
  39304. srcdir='$srcdir'
  39305. INSTALL='$INSTALL'
  39306. MKDIR_P='$MKDIR_P'
  39307. AWK='$AWK'
  39308. test -n "\$AWK" || AWK=awk
  39309. _ACEOF
  39310. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  39311. # The default lists apply if the user does not specify any file.
  39312. ac_need_defaults=:
  39313. while test $# != 0
  39314. do
  39315. case $1 in
  39316. --*=?*)
  39317. ac_option=`expr "X$1" : 'X\([^=]*\)='`
  39318. ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
  39319. ac_shift=:
  39320. ;;
  39321. --*=)
  39322. ac_option=`expr "X$1" : 'X\([^=]*\)='`
  39323. ac_optarg=
  39324. ac_shift=:
  39325. ;;
  39326. *)
  39327. ac_option=$1
  39328. ac_optarg=$2
  39329. ac_shift=shift
  39330. ;;
  39331. esac
  39332. case $ac_option in
  39333. # Handling of the options.
  39334. -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
  39335. ac_cs_recheck=: ;;
  39336. --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
  39337. printf "%s\n" "$ac_cs_version"; exit ;;
  39338. --config | --confi | --conf | --con | --co | --c )
  39339. printf "%s\n" "$ac_cs_config"; exit ;;
  39340. --debug | --debu | --deb | --de | --d | -d )
  39341. debug=: ;;
  39342. --file | --fil | --fi | --f )
  39343. $ac_shift
  39344. case $ac_optarg in
  39345. *\'*) ac_optarg=`printf "%s\n" "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
  39346. '') as_fn_error $? "missing file argument" ;;
  39347. esac
  39348. as_fn_append CONFIG_FILES " '$ac_optarg'"
  39349. ac_need_defaults=false;;
  39350. --header | --heade | --head | --hea )
  39351. $ac_shift
  39352. case $ac_optarg in
  39353. *\'*) ac_optarg=`printf "%s\n" "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
  39354. esac
  39355. as_fn_append CONFIG_HEADERS " '$ac_optarg'"
  39356. ac_need_defaults=false;;
  39357. --he | --h)
  39358. # Conflict between --help and --header
  39359. as_fn_error $? "ambiguous option: \`$1'
  39360. Try \`$0 --help' for more information.";;
  39361. --help | --hel | -h )
  39362. printf "%s\n" "$ac_cs_usage"; exit ;;
  39363. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  39364. | -silent | --silent | --silen | --sile | --sil | --si | --s)
  39365. ac_cs_silent=: ;;
  39366. # This is an error.
  39367. -*) as_fn_error $? "unrecognized option: \`$1'
  39368. Try \`$0 --help' for more information." ;;
  39369. *) as_fn_append ac_config_targets " $1"
  39370. ac_need_defaults=false ;;
  39371. esac
  39372. shift
  39373. done
  39374. ac_configure_extra_args=
  39375. if $ac_cs_silent; then
  39376. exec 6>/dev/null
  39377. ac_configure_extra_args="$ac_configure_extra_args --silent"
  39378. fi
  39379. _ACEOF
  39380. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  39381. if \$ac_cs_recheck; then
  39382. set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
  39383. shift
  39384. \printf "%s\n" "running CONFIG_SHELL=$SHELL \$*" >&6
  39385. CONFIG_SHELL='$SHELL'
  39386. export CONFIG_SHELL
  39387. exec "\$@"
  39388. fi
  39389. _ACEOF
  39390. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  39391. exec 5>>config.log
  39392. {
  39393. echo
  39394. sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
  39395. ## Running $as_me. ##
  39396. _ASBOX
  39397. printf "%s\n" "$ac_log"
  39398. } >&5
  39399. _ACEOF
  39400. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  39401. #
  39402. # INIT-COMMANDS
  39403. #
  39404. AMDEP_TRUE="$AMDEP_TRUE" MAKE="${MAKE-make}"
  39405. # The HP-UX ksh and POSIX shell print the target directory to stdout
  39406. # if CDPATH is set.
  39407. (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
  39408. sed_quote_subst='$sed_quote_subst'
  39409. double_quote_subst='$double_quote_subst'
  39410. delay_variable_subst='$delay_variable_subst'
  39411. macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
  39412. macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
  39413. AS='`$ECHO "$AS" | $SED "$delay_single_quote_subst"`'
  39414. DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
  39415. OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
  39416. enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
  39417. enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
  39418. pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
  39419. enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
  39420. shared_archive_member_spec='`$ECHO "$shared_archive_member_spec" | $SED "$delay_single_quote_subst"`'
  39421. SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
  39422. ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
  39423. PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
  39424. host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
  39425. host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
  39426. host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
  39427. build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
  39428. build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
  39429. build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
  39430. SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
  39431. Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
  39432. GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
  39433. EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
  39434. FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
  39435. LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
  39436. NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
  39437. LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
  39438. max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
  39439. ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
  39440. exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
  39441. lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
  39442. lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
  39443. lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
  39444. lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
  39445. lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
  39446. reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
  39447. reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
  39448. deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
  39449. file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
  39450. file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
  39451. want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
  39452. sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
  39453. AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
  39454. AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
  39455. archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
  39456. STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
  39457. RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
  39458. old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
  39459. old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
  39460. old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
  39461. lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
  39462. CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
  39463. CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
  39464. compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
  39465. GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
  39466. lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
  39467. lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
  39468. lt_cv_sys_global_symbol_to_import='`$ECHO "$lt_cv_sys_global_symbol_to_import" | $SED "$delay_single_quote_subst"`'
  39469. lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
  39470. lt_cv_sys_global_symbol_to_c_name_address_lib_prefix='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address_lib_prefix" | $SED "$delay_single_quote_subst"`'
  39471. lt_cv_nm_interface='`$ECHO "$lt_cv_nm_interface" | $SED "$delay_single_quote_subst"`'
  39472. nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
  39473. lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
  39474. lt_cv_truncate_bin='`$ECHO "$lt_cv_truncate_bin" | $SED "$delay_single_quote_subst"`'
  39475. objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
  39476. MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
  39477. lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
  39478. lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
  39479. lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
  39480. lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
  39481. lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
  39482. need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
  39483. MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
  39484. DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
  39485. NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
  39486. LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
  39487. OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
  39488. OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
  39489. libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
  39490. shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
  39491. extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
  39492. archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
  39493. enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
  39494. export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
  39495. whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
  39496. compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
  39497. old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
  39498. old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
  39499. archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
  39500. archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
  39501. module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
  39502. module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
  39503. with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
  39504. allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
  39505. no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
  39506. hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
  39507. hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
  39508. hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
  39509. hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
  39510. hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
  39511. hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
  39512. hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
  39513. inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
  39514. link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
  39515. always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
  39516. export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
  39517. exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
  39518. include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
  39519. prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
  39520. postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
  39521. file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
  39522. variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
  39523. need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
  39524. need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
  39525. version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
  39526. runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
  39527. shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
  39528. shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
  39529. libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
  39530. library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
  39531. soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
  39532. install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
  39533. postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
  39534. postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
  39535. finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
  39536. finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
  39537. hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
  39538. sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
  39539. configure_time_dlsearch_path='`$ECHO "$configure_time_dlsearch_path" | $SED "$delay_single_quote_subst"`'
  39540. configure_time_lt_sys_library_path='`$ECHO "$configure_time_lt_sys_library_path" | $SED "$delay_single_quote_subst"`'
  39541. hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
  39542. enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
  39543. enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
  39544. enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
  39545. old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
  39546. striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
  39547. LTCC='$LTCC'
  39548. LTCFLAGS='$LTCFLAGS'
  39549. compiler='$compiler_DEFAULT'
  39550. # A function that is used when there is no print builtin or printf.
  39551. func_fallback_echo ()
  39552. {
  39553. eval 'cat <<_LTECHO_EOF
  39554. \$1
  39555. _LTECHO_EOF'
  39556. }
  39557. # Quote evaled strings.
  39558. for var in AS \
  39559. DLLTOOL \
  39560. OBJDUMP \
  39561. SHELL \
  39562. ECHO \
  39563. PATH_SEPARATOR \
  39564. SED \
  39565. GREP \
  39566. EGREP \
  39567. FGREP \
  39568. LD \
  39569. NM \
  39570. LN_S \
  39571. lt_SP2NL \
  39572. lt_NL2SP \
  39573. reload_flag \
  39574. deplibs_check_method \
  39575. file_magic_cmd \
  39576. file_magic_glob \
  39577. want_nocaseglob \
  39578. sharedlib_from_linklib_cmd \
  39579. AR \
  39580. AR_FLAGS \
  39581. archiver_list_spec \
  39582. STRIP \
  39583. RANLIB \
  39584. CC \
  39585. CFLAGS \
  39586. compiler \
  39587. lt_cv_sys_global_symbol_pipe \
  39588. lt_cv_sys_global_symbol_to_cdecl \
  39589. lt_cv_sys_global_symbol_to_import \
  39590. lt_cv_sys_global_symbol_to_c_name_address \
  39591. lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
  39592. lt_cv_nm_interface \
  39593. nm_file_list_spec \
  39594. lt_cv_truncate_bin \
  39595. lt_prog_compiler_no_builtin_flag \
  39596. lt_prog_compiler_pic \
  39597. lt_prog_compiler_wl \
  39598. lt_prog_compiler_static \
  39599. lt_cv_prog_compiler_c_o \
  39600. need_locks \
  39601. MANIFEST_TOOL \
  39602. DSYMUTIL \
  39603. NMEDIT \
  39604. LIPO \
  39605. OTOOL \
  39606. OTOOL64 \
  39607. shrext_cmds \
  39608. export_dynamic_flag_spec \
  39609. whole_archive_flag_spec \
  39610. compiler_needs_object \
  39611. with_gnu_ld \
  39612. allow_undefined_flag \
  39613. no_undefined_flag \
  39614. hardcode_libdir_flag_spec \
  39615. hardcode_libdir_separator \
  39616. exclude_expsyms \
  39617. include_expsyms \
  39618. file_list_spec \
  39619. variables_saved_for_relink \
  39620. libname_spec \
  39621. library_names_spec \
  39622. soname_spec \
  39623. install_override_mode \
  39624. finish_eval \
  39625. old_striplib \
  39626. striplib; do
  39627. case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
  39628. *[\\\\\\\`\\"\\\$]*)
  39629. eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
  39630. ;;
  39631. *)
  39632. eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
  39633. ;;
  39634. esac
  39635. done
  39636. # Double-quote double-evaled strings.
  39637. for var in reload_cmds \
  39638. old_postinstall_cmds \
  39639. old_postuninstall_cmds \
  39640. old_archive_cmds \
  39641. extract_expsyms_cmds \
  39642. old_archive_from_new_cmds \
  39643. old_archive_from_expsyms_cmds \
  39644. archive_cmds \
  39645. archive_expsym_cmds \
  39646. module_cmds \
  39647. module_expsym_cmds \
  39648. export_symbols_cmds \
  39649. prelink_cmds \
  39650. postlink_cmds \
  39651. postinstall_cmds \
  39652. postuninstall_cmds \
  39653. finish_cmds \
  39654. sys_lib_search_path_spec \
  39655. configure_time_dlsearch_path \
  39656. configure_time_lt_sys_library_path; do
  39657. case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
  39658. *[\\\\\\\`\\"\\\$]*)
  39659. eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
  39660. ;;
  39661. *)
  39662. eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
  39663. ;;
  39664. esac
  39665. done
  39666. ac_aux_dir='$ac_aux_dir'
  39667. # See if we are running on zsh, and set the options that allow our
  39668. # commands through without removal of \ escapes INIT.
  39669. if test -n "\${ZSH_VERSION+set}"; then
  39670. setopt NO_GLOB_SUBST
  39671. fi
  39672. PACKAGE='$PACKAGE'
  39673. VERSION='$VERSION'
  39674. RM='$RM'
  39675. ofile='$ofile'
  39676. _ACEOF
  39677. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  39678. # Handling of arguments.
  39679. for ac_config_target in $ac_config_targets
  39680. do
  39681. case $ac_config_target in
  39682. "lib/curl_config.h") CONFIG_HEADERS="$CONFIG_HEADERS lib/curl_config.h" ;;
  39683. "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
  39684. "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
  39685. "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
  39686. "docs/Makefile") CONFIG_FILES="$CONFIG_FILES docs/Makefile" ;;
  39687. "docs/examples/Makefile") CONFIG_FILES="$CONFIG_FILES docs/examples/Makefile" ;;
  39688. "docs/libcurl/Makefile") CONFIG_FILES="$CONFIG_FILES docs/libcurl/Makefile" ;;
  39689. "docs/libcurl/opts/Makefile") CONFIG_FILES="$CONFIG_FILES docs/libcurl/opts/Makefile" ;;
  39690. "docs/cmdline-opts/Makefile") CONFIG_FILES="$CONFIG_FILES docs/cmdline-opts/Makefile" ;;
  39691. "include/Makefile") CONFIG_FILES="$CONFIG_FILES include/Makefile" ;;
  39692. "include/curl/Makefile") CONFIG_FILES="$CONFIG_FILES include/curl/Makefile" ;;
  39693. "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
  39694. "lib/Makefile") CONFIG_FILES="$CONFIG_FILES lib/Makefile" ;;
  39695. "scripts/Makefile") CONFIG_FILES="$CONFIG_FILES scripts/Makefile" ;;
  39696. "lib/libcurl.vers") CONFIG_FILES="$CONFIG_FILES lib/libcurl.vers" ;;
  39697. "tests/Makefile") CONFIG_FILES="$CONFIG_FILES tests/Makefile" ;;
  39698. "tests/certs/Makefile") CONFIG_FILES="$CONFIG_FILES tests/certs/Makefile" ;;
  39699. "tests/certs/scripts/Makefile") CONFIG_FILES="$CONFIG_FILES tests/certs/scripts/Makefile" ;;
  39700. "tests/data/Makefile") CONFIG_FILES="$CONFIG_FILES tests/data/Makefile" ;;
  39701. "tests/server/Makefile") CONFIG_FILES="$CONFIG_FILES tests/server/Makefile" ;;
  39702. "tests/libtest/Makefile") CONFIG_FILES="$CONFIG_FILES tests/libtest/Makefile" ;;
  39703. "tests/unit/Makefile") CONFIG_FILES="$CONFIG_FILES tests/unit/Makefile" ;;
  39704. "packages/Makefile") CONFIG_FILES="$CONFIG_FILES packages/Makefile" ;;
  39705. "packages/vms/Makefile") CONFIG_FILES="$CONFIG_FILES packages/vms/Makefile" ;;
  39706. "curl-config") CONFIG_FILES="$CONFIG_FILES curl-config" ;;
  39707. "libcurl.pc") CONFIG_FILES="$CONFIG_FILES libcurl.pc" ;;
  39708. *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
  39709. esac
  39710. done
  39711. # If the user did not use the arguments to specify the items to instantiate,
  39712. # then the envvar interface is used. Set only those that are not.
  39713. # We use the long form for the default assignment because of an extremely
  39714. # bizarre bug on SunOS 4.1.3.
  39715. if $ac_need_defaults; then
  39716. test ${CONFIG_FILES+y} || CONFIG_FILES=$config_files
  39717. test ${CONFIG_HEADERS+y} || CONFIG_HEADERS=$config_headers
  39718. test ${CONFIG_COMMANDS+y} || CONFIG_COMMANDS=$config_commands
  39719. fi
  39720. # Have a temporary directory for convenience. Make it in the build tree
  39721. # simply because there is no reason against having it here, and in addition,
  39722. # creating and moving files from /tmp can sometimes cause problems.
  39723. # Hook for its removal unless debugging.
  39724. # Note that there is a small window in which the directory will not be cleaned:
  39725. # after its creation but before its name has been assigned to `$tmp'.
  39726. $debug ||
  39727. {
  39728. tmp= ac_tmp=
  39729. trap 'exit_status=$?
  39730. : "${ac_tmp:=$tmp}"
  39731. { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
  39732. ' 0
  39733. trap 'as_fn_exit 1' 1 2 13 15
  39734. }
  39735. # Create a (secure) tmp directory for tmp files.
  39736. {
  39737. tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
  39738. test -d "$tmp"
  39739. } ||
  39740. {
  39741. tmp=./conf$$-$RANDOM
  39742. (umask 077 && mkdir "$tmp")
  39743. } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
  39744. ac_tmp=$tmp
  39745. # Set up the scripts for CONFIG_FILES section.
  39746. # No need to generate them if there are no CONFIG_FILES.
  39747. # This happens for instance with `./config.status config.h'.
  39748. if test -n "$CONFIG_FILES"; then
  39749. ac_cr=`echo X | tr X '\015'`
  39750. # On cygwin, bash can eat \r inside `` if the user requested igncr.
  39751. # But we know of no other shell where ac_cr would be empty at this
  39752. # point, so we can use a bashism as a fallback.
  39753. if test "x$ac_cr" = x; then
  39754. eval ac_cr=\$\'\\r\'
  39755. fi
  39756. ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
  39757. if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
  39758. ac_cs_awk_cr='\\r'
  39759. else
  39760. ac_cs_awk_cr=$ac_cr
  39761. fi
  39762. echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
  39763. _ACEOF
  39764. {
  39765. echo "cat >conf$$subs.awk <<_ACEOF" &&
  39766. echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
  39767. echo "_ACEOF"
  39768. } >conf$$subs.sh ||
  39769. as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
  39770. ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
  39771. ac_delim='%!_!# '
  39772. for ac_last_try in false false false false false :; do
  39773. . ./conf$$subs.sh ||
  39774. as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
  39775. ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
  39776. if test $ac_delim_n = $ac_delim_num; then
  39777. break
  39778. elif $ac_last_try; then
  39779. as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
  39780. else
  39781. ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
  39782. fi
  39783. done
  39784. rm -f conf$$subs.sh
  39785. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  39786. cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
  39787. _ACEOF
  39788. sed -n '
  39789. h
  39790. s/^/S["/; s/!.*/"]=/
  39791. p
  39792. g
  39793. s/^[^!]*!//
  39794. :repl
  39795. t repl
  39796. s/'"$ac_delim"'$//
  39797. t delim
  39798. :nl
  39799. h
  39800. s/\(.\{148\}\)..*/\1/
  39801. t more1
  39802. s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
  39803. p
  39804. n
  39805. b repl
  39806. :more1
  39807. s/["\\]/\\&/g; s/^/"/; s/$/"\\/
  39808. p
  39809. g
  39810. s/.\{148\}//
  39811. t nl
  39812. :delim
  39813. h
  39814. s/\(.\{148\}\)..*/\1/
  39815. t more2
  39816. s/["\\]/\\&/g; s/^/"/; s/$/"/
  39817. p
  39818. b
  39819. :more2
  39820. s/["\\]/\\&/g; s/^/"/; s/$/"\\/
  39821. p
  39822. g
  39823. s/.\{148\}//
  39824. t delim
  39825. ' <conf$$subs.awk | sed '
  39826. /^[^""]/{
  39827. N
  39828. s/\n//
  39829. }
  39830. ' >>$CONFIG_STATUS || ac_write_fail=1
  39831. rm -f conf$$subs.awk
  39832. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  39833. _ACAWK
  39834. cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
  39835. for (key in S) S_is_set[key] = 1
  39836. FS = ""
  39837. }
  39838. {
  39839. line = $ 0
  39840. nfields = split(line, field, "@")
  39841. substed = 0
  39842. len = length(field[1])
  39843. for (i = 2; i < nfields; i++) {
  39844. key = field[i]
  39845. keylen = length(key)
  39846. if (S_is_set[key]) {
  39847. value = S[key]
  39848. line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
  39849. len += length(value) + length(field[++i])
  39850. substed = 1
  39851. } else
  39852. len += 1 + keylen
  39853. }
  39854. print line
  39855. }
  39856. _ACAWK
  39857. _ACEOF
  39858. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  39859. if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
  39860. sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
  39861. else
  39862. cat
  39863. fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
  39864. || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
  39865. _ACEOF
  39866. # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
  39867. # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
  39868. # trailing colons and then remove the whole line if VPATH becomes empty
  39869. # (actually we leave an empty line to preserve line numbers).
  39870. if test "x$srcdir" = x.; then
  39871. ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
  39872. h
  39873. s///
  39874. s/^/:/
  39875. s/[ ]*$/:/
  39876. s/:\$(srcdir):/:/g
  39877. s/:\${srcdir}:/:/g
  39878. s/:@srcdir@:/:/g
  39879. s/^:*//
  39880. s/:*$//
  39881. x
  39882. s/\(=[ ]*\).*/\1/
  39883. G
  39884. s/\n//
  39885. s/^[^=]*=[ ]*$//
  39886. }'
  39887. fi
  39888. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  39889. fi # test -n "$CONFIG_FILES"
  39890. # Set up the scripts for CONFIG_HEADERS section.
  39891. # No need to generate them if there are no CONFIG_HEADERS.
  39892. # This happens for instance with `./config.status Makefile'.
  39893. if test -n "$CONFIG_HEADERS"; then
  39894. cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
  39895. BEGIN {
  39896. _ACEOF
  39897. # Transform confdefs.h into an awk script `defines.awk', embedded as
  39898. # here-document in config.status, that substitutes the proper values into
  39899. # config.h.in to produce config.h.
  39900. # Create a delimiter string that does not exist in confdefs.h, to ease
  39901. # handling of long lines.
  39902. ac_delim='%!_!# '
  39903. for ac_last_try in false false :; do
  39904. ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
  39905. if test -z "$ac_tt"; then
  39906. break
  39907. elif $ac_last_try; then
  39908. as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
  39909. else
  39910. ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
  39911. fi
  39912. done
  39913. # For the awk script, D is an array of macro values keyed by name,
  39914. # likewise P contains macro parameters if any. Preserve backslash
  39915. # newline sequences.
  39916. ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
  39917. sed -n '
  39918. s/.\{148\}/&'"$ac_delim"'/g
  39919. t rset
  39920. :rset
  39921. s/^[ ]*#[ ]*define[ ][ ]*/ /
  39922. t def
  39923. d
  39924. :def
  39925. s/\\$//
  39926. t bsnl
  39927. s/["\\]/\\&/g
  39928. s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
  39929. D["\1"]=" \3"/p
  39930. s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
  39931. d
  39932. :bsnl
  39933. s/["\\]/\\&/g
  39934. s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
  39935. D["\1"]=" \3\\\\\\n"\\/p
  39936. t cont
  39937. s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
  39938. t cont
  39939. d
  39940. :cont
  39941. n
  39942. s/.\{148\}/&'"$ac_delim"'/g
  39943. t clear
  39944. :clear
  39945. s/\\$//
  39946. t bsnlc
  39947. s/["\\]/\\&/g; s/^/"/; s/$/"/p
  39948. d
  39949. :bsnlc
  39950. s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
  39951. b cont
  39952. ' <confdefs.h | sed '
  39953. s/'"$ac_delim"'/"\\\
  39954. "/g' >>$CONFIG_STATUS || ac_write_fail=1
  39955. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  39956. for (key in D) D_is_set[key] = 1
  39957. FS = ""
  39958. }
  39959. /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
  39960. line = \$ 0
  39961. split(line, arg, " ")
  39962. if (arg[1] == "#") {
  39963. defundef = arg[2]
  39964. mac1 = arg[3]
  39965. } else {
  39966. defundef = substr(arg[1], 2)
  39967. mac1 = arg[2]
  39968. }
  39969. split(mac1, mac2, "(") #)
  39970. macro = mac2[1]
  39971. prefix = substr(line, 1, index(line, defundef) - 1)
  39972. if (D_is_set[macro]) {
  39973. # Preserve the white space surrounding the "#".
  39974. print prefix "define", macro P[macro] D[macro]
  39975. next
  39976. } else {
  39977. # Replace #undef with comments. This is necessary, for example,
  39978. # in the case of _POSIX_SOURCE, which is predefined and required
  39979. # on some systems where configure will not decide to define it.
  39980. if (defundef == "undef") {
  39981. print "/*", prefix defundef, macro, "*/"
  39982. next
  39983. }
  39984. }
  39985. }
  39986. { print }
  39987. _ACAWK
  39988. _ACEOF
  39989. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  39990. as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
  39991. fi # test -n "$CONFIG_HEADERS"
  39992. eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
  39993. shift
  39994. for ac_tag
  39995. do
  39996. case $ac_tag in
  39997. :[FHLC]) ac_mode=$ac_tag; continue;;
  39998. esac
  39999. case $ac_mode$ac_tag in
  40000. :[FHL]*:*);;
  40001. :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
  40002. :[FH]-) ac_tag=-:-;;
  40003. :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
  40004. esac
  40005. ac_save_IFS=$IFS
  40006. IFS=:
  40007. set x $ac_tag
  40008. IFS=$ac_save_IFS
  40009. shift
  40010. ac_file=$1
  40011. shift
  40012. case $ac_mode in
  40013. :L) ac_source=$1;;
  40014. :[FH])
  40015. ac_file_inputs=
  40016. for ac_f
  40017. do
  40018. case $ac_f in
  40019. -) ac_f="$ac_tmp/stdin";;
  40020. *) # Look for the file first in the build tree, then in the source tree
  40021. # (if the path is not absolute). The absolute path cannot be DOS-style,
  40022. # because $ac_f cannot contain `:'.
  40023. test -f "$ac_f" ||
  40024. case $ac_f in
  40025. [\\/$]*) false;;
  40026. *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
  40027. esac ||
  40028. as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
  40029. esac
  40030. case $ac_f in *\'*) ac_f=`printf "%s\n" "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
  40031. as_fn_append ac_file_inputs " '$ac_f'"
  40032. done
  40033. # Let's still pretend it is `configure' which instantiates (i.e., don't
  40034. # use $as_me), people would be surprised to read:
  40035. # /* config.h. Generated by config.status. */
  40036. configure_input='Generated from '`
  40037. printf "%s\n" "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
  40038. `' by configure.'
  40039. if test x"$ac_file" != x-; then
  40040. configure_input="$ac_file. $configure_input"
  40041. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
  40042. printf "%s\n" "$as_me: creating $ac_file" >&6;}
  40043. fi
  40044. # Neutralize special characters interpreted by sed in replacement strings.
  40045. case $configure_input in #(
  40046. *\&* | *\|* | *\\* )
  40047. ac_sed_conf_input=`printf "%s\n" "$configure_input" |
  40048. sed 's/[\\\\&|]/\\\\&/g'`;; #(
  40049. *) ac_sed_conf_input=$configure_input;;
  40050. esac
  40051. case $ac_tag in
  40052. *:-:* | *:-) cat >"$ac_tmp/stdin" \
  40053. || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
  40054. esac
  40055. ;;
  40056. esac
  40057. ac_dir=`$as_dirname -- "$ac_file" ||
  40058. $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  40059. X"$ac_file" : 'X\(//\)[^/]' \| \
  40060. X"$ac_file" : 'X\(//\)$' \| \
  40061. X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
  40062. printf "%s\n" X"$ac_file" |
  40063. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  40064. s//\1/
  40065. q
  40066. }
  40067. /^X\(\/\/\)[^/].*/{
  40068. s//\1/
  40069. q
  40070. }
  40071. /^X\(\/\/\)$/{
  40072. s//\1/
  40073. q
  40074. }
  40075. /^X\(\/\).*/{
  40076. s//\1/
  40077. q
  40078. }
  40079. s/.*/./; q'`
  40080. as_dir="$ac_dir"; as_fn_mkdir_p
  40081. ac_builddir=.
  40082. case "$ac_dir" in
  40083. .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
  40084. *)
  40085. ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'`
  40086. # A ".." for each directory in $ac_dir_suffix.
  40087. ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
  40088. case $ac_top_builddir_sub in
  40089. "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
  40090. *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
  40091. esac ;;
  40092. esac
  40093. ac_abs_top_builddir=$ac_pwd
  40094. ac_abs_builddir=$ac_pwd$ac_dir_suffix
  40095. # for backward compatibility:
  40096. ac_top_builddir=$ac_top_build_prefix
  40097. case $srcdir in
  40098. .) # We are building in place.
  40099. ac_srcdir=.
  40100. ac_top_srcdir=$ac_top_builddir_sub
  40101. ac_abs_top_srcdir=$ac_pwd ;;
  40102. [\\/]* | ?:[\\/]* ) # Absolute name.
  40103. ac_srcdir=$srcdir$ac_dir_suffix;
  40104. ac_top_srcdir=$srcdir
  40105. ac_abs_top_srcdir=$srcdir ;;
  40106. *) # Relative name.
  40107. ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
  40108. ac_top_srcdir=$ac_top_build_prefix$srcdir
  40109. ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
  40110. esac
  40111. ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
  40112. case $ac_mode in
  40113. :F)
  40114. #
  40115. # CONFIG_FILE
  40116. #
  40117. case $INSTALL in
  40118. [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
  40119. *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
  40120. esac
  40121. ac_MKDIR_P=$MKDIR_P
  40122. case $MKDIR_P in
  40123. [\\/$]* | ?:[\\/]* ) ;;
  40124. */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
  40125. esac
  40126. _ACEOF
  40127. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  40128. # If the template does not know about datarootdir, expand it.
  40129. # FIXME: This hack should be removed a few years after 2.60.
  40130. ac_datarootdir_hack=; ac_datarootdir_seen=
  40131. ac_sed_dataroot='
  40132. /datarootdir/ {
  40133. p
  40134. q
  40135. }
  40136. /@datadir@/p
  40137. /@docdir@/p
  40138. /@infodir@/p
  40139. /@localedir@/p
  40140. /@mandir@/p'
  40141. case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
  40142. *datarootdir*) ac_datarootdir_seen=yes;;
  40143. *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
  40144. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
  40145. printf "%s\n" "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
  40146. _ACEOF
  40147. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  40148. ac_datarootdir_hack='
  40149. s&@datadir@&$datadir&g
  40150. s&@docdir@&$docdir&g
  40151. s&@infodir@&$infodir&g
  40152. s&@localedir@&$localedir&g
  40153. s&@mandir@&$mandir&g
  40154. s&\\\${datarootdir}&$datarootdir&g' ;;
  40155. esac
  40156. _ACEOF
  40157. # Neutralize VPATH when `$srcdir' = `.'.
  40158. # Shell code in configure.ac might set extrasub.
  40159. # FIXME: do we really want to maintain this feature?
  40160. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  40161. ac_sed_extra="$ac_vpsub
  40162. $extrasub
  40163. _ACEOF
  40164. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  40165. :t
  40166. /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
  40167. s|@configure_input@|$ac_sed_conf_input|;t t
  40168. s&@top_builddir@&$ac_top_builddir_sub&;t t
  40169. s&@top_build_prefix@&$ac_top_build_prefix&;t t
  40170. s&@srcdir@&$ac_srcdir&;t t
  40171. s&@abs_srcdir@&$ac_abs_srcdir&;t t
  40172. s&@top_srcdir@&$ac_top_srcdir&;t t
  40173. s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
  40174. s&@builddir@&$ac_builddir&;t t
  40175. s&@abs_builddir@&$ac_abs_builddir&;t t
  40176. s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
  40177. s&@INSTALL@&$ac_INSTALL&;t t
  40178. s&@MKDIR_P@&$ac_MKDIR_P&;t t
  40179. $ac_datarootdir_hack
  40180. "
  40181. eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
  40182. >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
  40183. test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
  40184. { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
  40185. { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
  40186. "$ac_tmp/out"`; test -z "$ac_out"; } &&
  40187. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
  40188. which seems to be undefined. Please make sure it is defined" >&5
  40189. printf "%s\n" "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
  40190. which seems to be undefined. Please make sure it is defined" >&2;}
  40191. rm -f "$ac_tmp/stdin"
  40192. case $ac_file in
  40193. -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
  40194. *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
  40195. esac \
  40196. || as_fn_error $? "could not create $ac_file" "$LINENO" 5
  40197. ;;
  40198. :H)
  40199. #
  40200. # CONFIG_HEADER
  40201. #
  40202. if test x"$ac_file" != x-; then
  40203. {
  40204. printf "%s\n" "/* $configure_input */" >&1 \
  40205. && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
  40206. } >"$ac_tmp/config.h" \
  40207. || as_fn_error $? "could not create $ac_file" "$LINENO" 5
  40208. if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
  40209. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
  40210. printf "%s\n" "$as_me: $ac_file is unchanged" >&6;}
  40211. else
  40212. rm -f "$ac_file"
  40213. mv "$ac_tmp/config.h" "$ac_file" \
  40214. || as_fn_error $? "could not create $ac_file" "$LINENO" 5
  40215. fi
  40216. else
  40217. printf "%s\n" "/* $configure_input */" >&1 \
  40218. && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
  40219. || as_fn_error $? "could not create -" "$LINENO" 5
  40220. fi
  40221. # Compute "$ac_file"'s index in $config_headers.
  40222. _am_arg="$ac_file"
  40223. _am_stamp_count=1
  40224. for _am_header in $config_headers :; do
  40225. case $_am_header in
  40226. $_am_arg | $_am_arg:* )
  40227. break ;;
  40228. * )
  40229. _am_stamp_count=`expr $_am_stamp_count + 1` ;;
  40230. esac
  40231. done
  40232. echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
  40233. $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  40234. X"$_am_arg" : 'X\(//\)[^/]' \| \
  40235. X"$_am_arg" : 'X\(//\)$' \| \
  40236. X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
  40237. printf "%s\n" X"$_am_arg" |
  40238. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  40239. s//\1/
  40240. q
  40241. }
  40242. /^X\(\/\/\)[^/].*/{
  40243. s//\1/
  40244. q
  40245. }
  40246. /^X\(\/\/\)$/{
  40247. s//\1/
  40248. q
  40249. }
  40250. /^X\(\/\).*/{
  40251. s//\1/
  40252. q
  40253. }
  40254. s/.*/./; q'`/stamp-h$_am_stamp_count
  40255. ;;
  40256. :C) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
  40257. printf "%s\n" "$as_me: executing $ac_file commands" >&6;}
  40258. ;;
  40259. esac
  40260. case $ac_file$ac_mode in
  40261. "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
  40262. # Older Autoconf quotes --file arguments for eval, but not when files
  40263. # are listed without --file. Let's play safe and only enable the eval
  40264. # if we detect the quoting.
  40265. # TODO: see whether this extra hack can be removed once we start
  40266. # requiring Autoconf 2.70 or later.
  40267. case $CONFIG_FILES in #(
  40268. *\'*) :
  40269. eval set x "$CONFIG_FILES" ;; #(
  40270. *) :
  40271. set x $CONFIG_FILES ;; #(
  40272. *) :
  40273. ;;
  40274. esac
  40275. shift
  40276. # Used to flag and report bootstrapping failures.
  40277. am_rc=0
  40278. for am_mf
  40279. do
  40280. # Strip MF so we end up with the name of the file.
  40281. am_mf=`printf "%s\n" "$am_mf" | sed -e 's/:.*$//'`
  40282. # Check whether this is an Automake generated Makefile which includes
  40283. # dependency-tracking related rules and includes.
  40284. # Grep'ing the whole file directly is not great: AIX grep has a line
  40285. # limit of 2048, but all sed's we know have understand at least 4000.
  40286. sed -n 's,^am--depfiles:.*,X,p' "$am_mf" | grep X >/dev/null 2>&1 \
  40287. || continue
  40288. am_dirpart=`$as_dirname -- "$am_mf" ||
  40289. $as_expr X"$am_mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  40290. X"$am_mf" : 'X\(//\)[^/]' \| \
  40291. X"$am_mf" : 'X\(//\)$' \| \
  40292. X"$am_mf" : 'X\(/\)' \| . 2>/dev/null ||
  40293. printf "%s\n" X"$am_mf" |
  40294. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  40295. s//\1/
  40296. q
  40297. }
  40298. /^X\(\/\/\)[^/].*/{
  40299. s//\1/
  40300. q
  40301. }
  40302. /^X\(\/\/\)$/{
  40303. s//\1/
  40304. q
  40305. }
  40306. /^X\(\/\).*/{
  40307. s//\1/
  40308. q
  40309. }
  40310. s/.*/./; q'`
  40311. am_filepart=`$as_basename -- "$am_mf" ||
  40312. $as_expr X/"$am_mf" : '.*/\([^/][^/]*\)/*$' \| \
  40313. X"$am_mf" : 'X\(//\)$' \| \
  40314. X"$am_mf" : 'X\(/\)' \| . 2>/dev/null ||
  40315. printf "%s\n" X/"$am_mf" |
  40316. sed '/^.*\/\([^/][^/]*\)\/*$/{
  40317. s//\1/
  40318. q
  40319. }
  40320. /^X\/\(\/\/\)$/{
  40321. s//\1/
  40322. q
  40323. }
  40324. /^X\/\(\/\).*/{
  40325. s//\1/
  40326. q
  40327. }
  40328. s/.*/./; q'`
  40329. { echo "$as_me:$LINENO: cd "$am_dirpart" \
  40330. && sed -e '/# am--include-marker/d' "$am_filepart" \
  40331. | $MAKE -f - am--depfiles" >&5
  40332. (cd "$am_dirpart" \
  40333. && sed -e '/# am--include-marker/d' "$am_filepart" \
  40334. | $MAKE -f - am--depfiles) >&5 2>&5
  40335. ac_status=$?
  40336. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  40337. (exit $ac_status); } || am_rc=$?
  40338. done
  40339. if test $am_rc -ne 0; then
  40340. { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  40341. printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
  40342. as_fn_error $? "Something went wrong bootstrapping makefile fragments
  40343. for automatic dependency tracking. If GNU make was not used, consider
  40344. re-running the configure script with MAKE=\"gmake\" (or whatever is
  40345. necessary). You can also try re-running configure with the
  40346. '--disable-dependency-tracking' option to at least be able to build
  40347. the package (albeit without support for automatic dependency tracking).
  40348. See \`config.log' for more details" "$LINENO" 5; }
  40349. fi
  40350. { am_dirpart=; unset am_dirpart;}
  40351. { am_filepart=; unset am_filepart;}
  40352. { am_mf=; unset am_mf;}
  40353. { am_rc=; unset am_rc;}
  40354. rm -f conftest-deps.mk
  40355. }
  40356. ;;
  40357. "libtool":C)
  40358. # See if we are running on zsh, and set the options that allow our
  40359. # commands through without removal of \ escapes.
  40360. if test -n "${ZSH_VERSION+set}"; then
  40361. setopt NO_GLOB_SUBST
  40362. fi
  40363. cfgfile=${ofile}T
  40364. trap "$RM \"$cfgfile\"; exit 1" 1 2 15
  40365. $RM "$cfgfile"
  40366. cat <<_LT_EOF >> "$cfgfile"
  40367. #! $SHELL
  40368. # Generated automatically by $as_me ($PACKAGE) $VERSION
  40369. # NOTE: Changes made to this file will be lost: look at ltmain.sh.
  40370. # Provide generalized library-building support services.
  40371. # Written by Gordon Matzigkeit, 1996
  40372. # Copyright (C) 2014 Free Software Foundation, Inc.
  40373. # This is free software; see the source for copying conditions. There is NO
  40374. # warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
  40375. # GNU Libtool is free software; you can redistribute it and/or modify
  40376. # it under the terms of the GNU General Public License as published by
  40377. # the Free Software Foundation; either version 2 of of the License, or
  40378. # (at your option) any later version.
  40379. #
  40380. # As a special exception to the GNU General Public License, if you
  40381. # distribute this file as part of a program or library that is built
  40382. # using GNU Libtool, you may include this file under the same
  40383. # distribution terms that you use for the rest of that program.
  40384. #
  40385. # GNU Libtool is distributed in the hope that it will be useful, but
  40386. # WITHOUT ANY WARRANTY; without even the implied warranty of
  40387. # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  40388. # GNU General Public License for more details.
  40389. #
  40390. # You should have received a copy of the GNU General Public License
  40391. # along with this program. If not, see <http://www.gnu.org/licenses/>.
  40392. # The names of the tagged configurations supported by this script.
  40393. available_tags=''
  40394. # Configured defaults for sys_lib_dlsearch_path munging.
  40395. : \${LT_SYS_LIBRARY_PATH="$configure_time_lt_sys_library_path"}
  40396. # ### BEGIN LIBTOOL CONFIG
  40397. # Which release of libtool.m4 was used?
  40398. macro_version=$macro_version
  40399. macro_revision=$macro_revision
  40400. # Assembler program.
  40401. AS=$lt_AS
  40402. # DLL creation program.
  40403. DLLTOOL=$lt_DLLTOOL
  40404. # Object dumper program.
  40405. OBJDUMP=$lt_OBJDUMP
  40406. # Whether or not to build shared libraries.
  40407. build_libtool_libs=$enable_shared
  40408. # Whether or not to build static libraries.
  40409. build_old_libs=$enable_static
  40410. # What type of objects to build.
  40411. pic_mode=$pic_mode
  40412. # Whether or not to optimize for fast installation.
  40413. fast_install=$enable_fast_install
  40414. # Shared archive member basename,for filename based shared library versioning on AIX.
  40415. shared_archive_member_spec=$shared_archive_member_spec
  40416. # Shell to use when invoking shell scripts.
  40417. SHELL=$lt_SHELL
  40418. # An echo program that protects backslashes.
  40419. ECHO=$lt_ECHO
  40420. # The PATH separator for the build system.
  40421. PATH_SEPARATOR=$lt_PATH_SEPARATOR
  40422. # The host system.
  40423. host_alias=$host_alias
  40424. host=$host
  40425. host_os=$host_os
  40426. # The build system.
  40427. build_alias=$build_alias
  40428. build=$build
  40429. build_os=$build_os
  40430. # A sed program that does not truncate output.
  40431. SED=$lt_SED
  40432. # Sed that helps us avoid accidentally triggering echo(1) options like -n.
  40433. Xsed="\$SED -e 1s/^X//"
  40434. # A grep program that handles long lines.
  40435. GREP=$lt_GREP
  40436. # An ERE matcher.
  40437. EGREP=$lt_EGREP
  40438. # A literal string matcher.
  40439. FGREP=$lt_FGREP
  40440. # A BSD- or MS-compatible name lister.
  40441. NM=$lt_NM
  40442. # Whether we need soft or hard links.
  40443. LN_S=$lt_LN_S
  40444. # What is the maximum length of a command?
  40445. max_cmd_len=$max_cmd_len
  40446. # Object file suffix (normally "o").
  40447. objext=$ac_objext
  40448. # Executable file suffix (normally "").
  40449. exeext=$exeext
  40450. # whether the shell understands "unset".
  40451. lt_unset=$lt_unset
  40452. # turn spaces into newlines.
  40453. SP2NL=$lt_lt_SP2NL
  40454. # turn newlines into spaces.
  40455. NL2SP=$lt_lt_NL2SP
  40456. # convert \$build file names to \$host format.
  40457. to_host_file_cmd=$lt_cv_to_host_file_cmd
  40458. # convert \$build files to toolchain format.
  40459. to_tool_file_cmd=$lt_cv_to_tool_file_cmd
  40460. # Method to check whether dependent libraries are shared objects.
  40461. deplibs_check_method=$lt_deplibs_check_method
  40462. # Command to use when deplibs_check_method = "file_magic".
  40463. file_magic_cmd=$lt_file_magic_cmd
  40464. # How to find potential files when deplibs_check_method = "file_magic".
  40465. file_magic_glob=$lt_file_magic_glob
  40466. # Find potential files using nocaseglob when deplibs_check_method = "file_magic".
  40467. want_nocaseglob=$lt_want_nocaseglob
  40468. # Command to associate shared and link libraries.
  40469. sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
  40470. # The archiver.
  40471. AR=$lt_AR
  40472. # Flags to create an archive.
  40473. AR_FLAGS=$lt_AR_FLAGS
  40474. # How to feed a file listing to the archiver.
  40475. archiver_list_spec=$lt_archiver_list_spec
  40476. # A symbol stripping program.
  40477. STRIP=$lt_STRIP
  40478. # Commands used to install an old-style archive.
  40479. RANLIB=$lt_RANLIB
  40480. old_postinstall_cmds=$lt_old_postinstall_cmds
  40481. old_postuninstall_cmds=$lt_old_postuninstall_cmds
  40482. # Whether to use a lock for old archive extraction.
  40483. lock_old_archive_extraction=$lock_old_archive_extraction
  40484. # A C compiler.
  40485. LTCC=$lt_CC
  40486. # LTCC compiler flags.
  40487. LTCFLAGS=$lt_CFLAGS
  40488. # Take the output of nm and produce a listing of raw symbols and C names.
  40489. global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
  40490. # Transform the output of nm in a proper C declaration.
  40491. global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
  40492. # Transform the output of nm into a list of symbols to manually relocate.
  40493. global_symbol_to_import=$lt_lt_cv_sys_global_symbol_to_import
  40494. # Transform the output of nm in a C name address pair.
  40495. global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
  40496. # Transform the output of nm in a C name address pair when lib prefix is needed.
  40497. global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
  40498. # The name lister interface.
  40499. nm_interface=$lt_lt_cv_nm_interface
  40500. # Specify filename containing input files for \$NM.
  40501. nm_file_list_spec=$lt_nm_file_list_spec
  40502. # The root where to search for dependent libraries,and where our libraries should be installed.
  40503. lt_sysroot=$lt_sysroot
  40504. # Command to truncate a binary pipe.
  40505. lt_truncate_bin=$lt_lt_cv_truncate_bin
  40506. # The name of the directory that contains temporary libtool files.
  40507. objdir=$objdir
  40508. # Used to examine libraries when file_magic_cmd begins with "file".
  40509. MAGIC_CMD=$MAGIC_CMD
  40510. # Must we lock files when doing compilation?
  40511. need_locks=$lt_need_locks
  40512. # Manifest tool.
  40513. MANIFEST_TOOL=$lt_MANIFEST_TOOL
  40514. # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
  40515. DSYMUTIL=$lt_DSYMUTIL
  40516. # Tool to change global to local symbols on Mac OS X.
  40517. NMEDIT=$lt_NMEDIT
  40518. # Tool to manipulate fat objects and archives on Mac OS X.
  40519. LIPO=$lt_LIPO
  40520. # ldd/readelf like tool for Mach-O binaries on Mac OS X.
  40521. OTOOL=$lt_OTOOL
  40522. # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
  40523. OTOOL64=$lt_OTOOL64
  40524. # Old archive suffix (normally "a").
  40525. libext=$libext
  40526. # Shared library suffix (normally ".so").
  40527. shrext_cmds=$lt_shrext_cmds
  40528. # The commands to extract the exported symbol list from a shared archive.
  40529. extract_expsyms_cmds=$lt_extract_expsyms_cmds
  40530. # Variables whose values should be saved in libtool wrapper scripts and
  40531. # restored at link time.
  40532. variables_saved_for_relink=$lt_variables_saved_for_relink
  40533. # Do we need the "lib" prefix for modules?
  40534. need_lib_prefix=$need_lib_prefix
  40535. # Do we need a version for libraries?
  40536. need_version=$need_version
  40537. # Library versioning type.
  40538. version_type=$version_type
  40539. # Shared library runtime path variable.
  40540. runpath_var=$runpath_var
  40541. # Shared library path variable.
  40542. shlibpath_var=$shlibpath_var
  40543. # Is shlibpath searched before the hard-coded library search path?
  40544. shlibpath_overrides_runpath=$shlibpath_overrides_runpath
  40545. # Format of library name prefix.
  40546. libname_spec=$lt_libname_spec
  40547. # List of archive names. First name is the real one, the rest are links.
  40548. # The last name is the one that the linker finds with -lNAME
  40549. library_names_spec=$lt_library_names_spec
  40550. # The coded name of the library, if different from the real name.
  40551. soname_spec=$lt_soname_spec
  40552. # Permission mode override for installation of shared libraries.
  40553. install_override_mode=$lt_install_override_mode
  40554. # Command to use after installation of a shared archive.
  40555. postinstall_cmds=$lt_postinstall_cmds
  40556. # Command to use after uninstallation of a shared archive.
  40557. postuninstall_cmds=$lt_postuninstall_cmds
  40558. # Commands used to finish a libtool library installation in a directory.
  40559. finish_cmds=$lt_finish_cmds
  40560. # As "finish_cmds", except a single script fragment to be evaled but
  40561. # not shown.
  40562. finish_eval=$lt_finish_eval
  40563. # Whether we should hardcode library paths into libraries.
  40564. hardcode_into_libs=$hardcode_into_libs
  40565. # Compile-time system search path for libraries.
  40566. sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
  40567. # Detected run-time system search path for libraries.
  40568. sys_lib_dlsearch_path_spec=$lt_configure_time_dlsearch_path
  40569. # Explicit LT_SYS_LIBRARY_PATH set during ./configure time.
  40570. configure_time_lt_sys_library_path=$lt_configure_time_lt_sys_library_path
  40571. # Whether dlopen is supported.
  40572. dlopen_support=$enable_dlopen
  40573. # Whether dlopen of programs is supported.
  40574. dlopen_self=$enable_dlopen_self
  40575. # Whether dlopen of statically linked programs is supported.
  40576. dlopen_self_static=$enable_dlopen_self_static
  40577. # Commands to strip libraries.
  40578. old_striplib=$lt_old_striplib
  40579. striplib=$lt_striplib
  40580. # The linker used to build libraries.
  40581. LD=$lt_LD
  40582. # How to create reloadable object files.
  40583. reload_flag=$lt_reload_flag
  40584. reload_cmds=$lt_reload_cmds
  40585. # Commands used to build an old-style archive.
  40586. old_archive_cmds=$lt_old_archive_cmds
  40587. # A language specific compiler.
  40588. CC=$lt_compiler
  40589. # Is the compiler the GNU compiler?
  40590. with_gcc=$GCC
  40591. # Compiler flag to turn off builtin functions.
  40592. no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
  40593. # Additional compiler flags for building library objects.
  40594. pic_flag=$lt_lt_prog_compiler_pic
  40595. # How to pass a linker flag through the compiler.
  40596. wl=$lt_lt_prog_compiler_wl
  40597. # Compiler flag to prevent dynamic linking.
  40598. link_static_flag=$lt_lt_prog_compiler_static
  40599. # Does compiler simultaneously support -c and -o options?
  40600. compiler_c_o=$lt_lt_cv_prog_compiler_c_o
  40601. # Whether or not to add -lc for building shared libraries.
  40602. build_libtool_need_lc=$archive_cmds_need_lc
  40603. # Whether or not to disallow shared libs when runtime libs are static.
  40604. allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
  40605. # Compiler flag to allow reflexive dlopens.
  40606. export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
  40607. # Compiler flag to generate shared objects directly from archives.
  40608. whole_archive_flag_spec=$lt_whole_archive_flag_spec
  40609. # Whether the compiler copes with passing no objects directly.
  40610. compiler_needs_object=$lt_compiler_needs_object
  40611. # Create an old-style archive from a shared archive.
  40612. old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
  40613. # Create a temporary old-style archive to link instead of a shared archive.
  40614. old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
  40615. # Commands used to build a shared archive.
  40616. archive_cmds=$lt_archive_cmds
  40617. archive_expsym_cmds=$lt_archive_expsym_cmds
  40618. # Commands used to build a loadable module if different from building
  40619. # a shared archive.
  40620. module_cmds=$lt_module_cmds
  40621. module_expsym_cmds=$lt_module_expsym_cmds
  40622. # Whether we are building with GNU ld or not.
  40623. with_gnu_ld=$lt_with_gnu_ld
  40624. # Flag that allows shared libraries with undefined symbols to be built.
  40625. allow_undefined_flag=$lt_allow_undefined_flag
  40626. # Flag that enforces no undefined symbols.
  40627. no_undefined_flag=$lt_no_undefined_flag
  40628. # Flag to hardcode \$libdir into a binary during linking.
  40629. # This must work even if \$libdir does not exist
  40630. hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
  40631. # Whether we need a single "-rpath" flag with a separated argument.
  40632. hardcode_libdir_separator=$lt_hardcode_libdir_separator
  40633. # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
  40634. # DIR into the resulting binary.
  40635. hardcode_direct=$hardcode_direct
  40636. # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
  40637. # DIR into the resulting binary and the resulting library dependency is
  40638. # "absolute",i.e impossible to change by setting \$shlibpath_var if the
  40639. # library is relocated.
  40640. hardcode_direct_absolute=$hardcode_direct_absolute
  40641. # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
  40642. # into the resulting binary.
  40643. hardcode_minus_L=$hardcode_minus_L
  40644. # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
  40645. # into the resulting binary.
  40646. hardcode_shlibpath_var=$hardcode_shlibpath_var
  40647. # Set to "yes" if building a shared library automatically hardcodes DIR
  40648. # into the library and all subsequent libraries and executables linked
  40649. # against it.
  40650. hardcode_automatic=$hardcode_automatic
  40651. # Set to yes if linker adds runtime paths of dependent libraries
  40652. # to runtime path list.
  40653. inherit_rpath=$inherit_rpath
  40654. # Whether libtool must link a program against all its dependency libraries.
  40655. link_all_deplibs=$link_all_deplibs
  40656. # Set to "yes" if exported symbols are required.
  40657. always_export_symbols=$always_export_symbols
  40658. # The commands to list exported symbols.
  40659. export_symbols_cmds=$lt_export_symbols_cmds
  40660. # Symbols that should not be listed in the preloaded symbols.
  40661. exclude_expsyms=$lt_exclude_expsyms
  40662. # Symbols that must always be exported.
  40663. include_expsyms=$lt_include_expsyms
  40664. # Commands necessary for linking programs (against libraries) with templates.
  40665. prelink_cmds=$lt_prelink_cmds
  40666. # Commands necessary for finishing linking programs.
  40667. postlink_cmds=$lt_postlink_cmds
  40668. # Specify filename containing input files.
  40669. file_list_spec=$lt_file_list_spec
  40670. # How to hardcode a shared library path into an executable.
  40671. hardcode_action=$hardcode_action
  40672. # ### END LIBTOOL CONFIG
  40673. _LT_EOF
  40674. cat <<'_LT_EOF' >> "$cfgfile"
  40675. # ### BEGIN FUNCTIONS SHARED WITH CONFIGURE
  40676. # func_munge_path_list VARIABLE PATH
  40677. # -----------------------------------
  40678. # VARIABLE is name of variable containing _space_ separated list of
  40679. # directories to be munged by the contents of PATH, which is string
  40680. # having a format:
  40681. # "DIR[:DIR]:"
  40682. # string "DIR[ DIR]" will be prepended to VARIABLE
  40683. # ":DIR[:DIR]"
  40684. # string "DIR[ DIR]" will be appended to VARIABLE
  40685. # "DIRP[:DIRP]::[DIRA:]DIRA"
  40686. # string "DIRP[ DIRP]" will be prepended to VARIABLE and string
  40687. # "DIRA[ DIRA]" will be appended to VARIABLE
  40688. # "DIR[:DIR]"
  40689. # VARIABLE will be replaced by "DIR[ DIR]"
  40690. func_munge_path_list ()
  40691. {
  40692. case x$2 in
  40693. x)
  40694. ;;
  40695. *:)
  40696. eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
  40697. ;;
  40698. x:*)
  40699. eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
  40700. ;;
  40701. *::*)
  40702. eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
  40703. eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
  40704. ;;
  40705. *)
  40706. eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
  40707. ;;
  40708. esac
  40709. }
  40710. # Calculate cc_basename. Skip known compiler wrappers and cross-prefix.
  40711. func_cc_basename ()
  40712. {
  40713. for cc_temp in $*""; do
  40714. case $cc_temp in
  40715. compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
  40716. distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
  40717. \-*) ;;
  40718. *) break;;
  40719. esac
  40720. done
  40721. func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
  40722. }
  40723. # ### END FUNCTIONS SHARED WITH CONFIGURE
  40724. _LT_EOF
  40725. case $host_os in
  40726. aix3*)
  40727. cat <<\_LT_EOF >> "$cfgfile"
  40728. # AIX sometimes has problems with the GCC collect2 program. For some
  40729. # reason, if we set the COLLECT_NAMES environment variable, the problems
  40730. # vanish in a puff of smoke.
  40731. if test set != "${COLLECT_NAMES+set}"; then
  40732. COLLECT_NAMES=
  40733. export COLLECT_NAMES
  40734. fi
  40735. _LT_EOF
  40736. ;;
  40737. esac
  40738. ltmain=$ac_aux_dir/ltmain.sh
  40739. # We use sed instead of cat because bash on DJGPP gets confused if
  40740. # if finds mixed CR/LF and LF-only lines. Since sed operates in
  40741. # text mode, it properly converts lines to CR/LF. This bash problem
  40742. # is reportedly fixed, but why not run on old versions too?
  40743. sed '$q' "$ltmain" >> "$cfgfile" \
  40744. || (rm -f "$cfgfile"; exit 1)
  40745. mv -f "$cfgfile" "$ofile" ||
  40746. (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
  40747. chmod +x "$ofile"
  40748. ;;
  40749. esac
  40750. done # for ac_tag
  40751. as_fn_exit 0
  40752. _ACEOF
  40753. ac_clean_files=$ac_clean_files_save
  40754. test $ac_write_fail = 0 ||
  40755. as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
  40756. # configure is writing to config.log, and then calls config.status.
  40757. # config.status does its own redirection, appending to config.log.
  40758. # Unfortunately, on DOS this fails, as config.log is still kept open
  40759. # by configure, so config.status won't be able to write to it; its
  40760. # output is simply discarded. So we exec the FD to /dev/null,
  40761. # effectively closing config.log, so it can be properly (re)opened and
  40762. # appended to by config.status. When coming back to configure, we
  40763. # need to make the FD available again.
  40764. if test "$no_create" != yes; then
  40765. ac_cs_success=:
  40766. ac_config_status_args=
  40767. test "$silent" = yes &&
  40768. ac_config_status_args="$ac_config_status_args --quiet"
  40769. exec 5>/dev/null
  40770. $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
  40771. exec 5>>config.log
  40772. # Use ||, not &&, to avoid exiting from the if with $? = 1, which
  40773. # would make configure fail if this is the last instruction.
  40774. $ac_cs_success || as_fn_exit 1
  40775. fi
  40776. #
  40777. # CONFIG_SUBDIRS section.
  40778. #
  40779. if test "$no_recursion" != yes; then
  40780. # Remove --cache-file, --srcdir, and --disable-option-checking arguments
  40781. # so they do not pile up.
  40782. ac_sub_configure_args=
  40783. ac_prev=
  40784. eval "set x $ac_configure_args"
  40785. shift
  40786. for ac_arg
  40787. do
  40788. if test -n "$ac_prev"; then
  40789. ac_prev=
  40790. continue
  40791. fi
  40792. case $ac_arg in
  40793. -cache-file | --cache-file | --cache-fil | --cache-fi \
  40794. | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
  40795. ac_prev=cache_file ;;
  40796. -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
  40797. | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
  40798. | --c=*)
  40799. ;;
  40800. --config-cache | -C)
  40801. ;;
  40802. -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
  40803. ac_prev=srcdir ;;
  40804. -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
  40805. ;;
  40806. -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
  40807. ac_prev=prefix ;;
  40808. -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
  40809. ;;
  40810. --disable-option-checking)
  40811. ;;
  40812. *)
  40813. case $ac_arg in
  40814. *\'*) ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
  40815. esac
  40816. as_fn_append ac_sub_configure_args " '$ac_arg'" ;;
  40817. esac
  40818. done
  40819. # Always prepend --prefix to ensure using the same prefix
  40820. # in subdir configurations.
  40821. ac_arg="--prefix=$prefix"
  40822. case $ac_arg in
  40823. *\'*) ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
  40824. esac
  40825. ac_sub_configure_args="'$ac_arg' $ac_sub_configure_args"
  40826. # Pass --silent
  40827. if test "$silent" = yes; then
  40828. ac_sub_configure_args="--silent $ac_sub_configure_args"
  40829. fi
  40830. # Always prepend --disable-option-checking to silence warnings, since
  40831. # different subdirs can have different --enable and --with options.
  40832. ac_sub_configure_args="--disable-option-checking $ac_sub_configure_args"
  40833. ac_popdir=`pwd`
  40834. for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
  40835. # Do not complain, so a configure script can configure whichever
  40836. # parts of a large source tree are present.
  40837. test -d "$srcdir/$ac_dir" || continue
  40838. ac_msg="=== configuring in $ac_dir (`pwd`/$ac_dir)"
  40839. printf "%s\n" "$as_me:${as_lineno-$LINENO}: $ac_msg" >&5
  40840. printf "%s\n" "$ac_msg" >&6
  40841. as_dir="$ac_dir"; as_fn_mkdir_p
  40842. ac_builddir=.
  40843. case "$ac_dir" in
  40844. .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
  40845. *)
  40846. ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'`
  40847. # A ".." for each directory in $ac_dir_suffix.
  40848. ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
  40849. case $ac_top_builddir_sub in
  40850. "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
  40851. *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
  40852. esac ;;
  40853. esac
  40854. ac_abs_top_builddir=$ac_pwd
  40855. ac_abs_builddir=$ac_pwd$ac_dir_suffix
  40856. # for backward compatibility:
  40857. ac_top_builddir=$ac_top_build_prefix
  40858. case $srcdir in
  40859. .) # We are building in place.
  40860. ac_srcdir=.
  40861. ac_top_srcdir=$ac_top_builddir_sub
  40862. ac_abs_top_srcdir=$ac_pwd ;;
  40863. [\\/]* | ?:[\\/]* ) # Absolute name.
  40864. ac_srcdir=$srcdir$ac_dir_suffix;
  40865. ac_top_srcdir=$srcdir
  40866. ac_abs_top_srcdir=$srcdir ;;
  40867. *) # Relative name.
  40868. ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
  40869. ac_top_srcdir=$ac_top_build_prefix$srcdir
  40870. ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
  40871. esac
  40872. ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
  40873. cd "$ac_dir"
  40874. # Check for configure.gnu first; this name is used for a wrapper for
  40875. # Metaconfig's "Configure" on case-insensitive file systems.
  40876. if test -f "$ac_srcdir/configure.gnu"; then
  40877. ac_sub_configure=$ac_srcdir/configure.gnu
  40878. elif test -f "$ac_srcdir/configure"; then
  40879. ac_sub_configure=$ac_srcdir/configure
  40880. else
  40881. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: no configuration information is in $ac_dir" >&5
  40882. printf "%s\n" "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
  40883. ac_sub_configure=
  40884. fi
  40885. # The recursion is here.
  40886. if test -n "$ac_sub_configure"; then
  40887. # Make the cache file name correct relative to the subdirectory.
  40888. case $cache_file in
  40889. [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
  40890. *) # Relative name.
  40891. ac_sub_cache_file=$ac_top_build_prefix$cache_file ;;
  40892. esac
  40893. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
  40894. printf "%s\n" "$as_me: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
  40895. # The eval makes quoting arguments work.
  40896. eval "\$SHELL \"\$ac_sub_configure\" $ac_sub_configure_args \
  40897. --cache-file=\"\$ac_sub_cache_file\" --srcdir=\"\$ac_srcdir\"" ||
  40898. as_fn_error $? "$ac_sub_configure failed for $ac_dir" "$LINENO" 5
  40899. fi
  40900. cd "$ac_popdir"
  40901. done
  40902. fi
  40903. if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
  40904. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
  40905. printf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
  40906. fi
  40907. tmp_cpp=`eval echo "$ac_cpp" 2>/dev/null`
  40908. if test -z "$tmp_cpp"; then
  40909. tmp_cpp='cpp'
  40910. fi
  40911. cat >./tests/configurehelp.pm <<_EOF
  40912. # This is a generated file. Do not edit.
  40913. package configurehelp;
  40914. use strict;
  40915. use warnings;
  40916. use Exporter;
  40917. use vars qw(
  40918. @ISA
  40919. @EXPORT_OK
  40920. \$Cpreprocessor
  40921. );
  40922. @ISA = qw(Exporter);
  40923. @EXPORT_OK = qw(
  40924. \$Cpreprocessor
  40925. );
  40926. \$Cpreprocessor = '$tmp_cpp';
  40927. 1;
  40928. _EOF
  40929. ## ---------------------------------- ##
  40930. ## Start of distclean amending code ##
  40931. ## ---------------------------------- ##
  40932. for xc_subdir in lib src tests/unit tests/server tests/libtest docs/examples
  40933. do
  40934. if test ! -f "$xc_subdir/Makefile"; then
  40935. echo "$xc_msg_err $xc_subdir/Makefile file not found. $xc_msg_abrt" >&2
  40936. exit 1
  40937. fi
  40938. # Fetch dependency tracking file list from Makefile include lines.
  40939. xc_inc_lines=`grep '^include .*(DEPDIR)' "$xc_subdir/Makefile" 2>/dev/null`
  40940. xc_cnt_words=`echo "$xc_inc_lines" | wc -w | tr -d "$xc_space$xc_tab"`
  40941. # --disable-dependency-tracking might have been used, consequently
  40942. # there is nothing to amend without a dependency tracking file list.
  40943. if test $xc_cnt_words -gt 0; then
  40944. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: amending $xc_subdir/Makefile" >&5
  40945. printf "%s\n" "$as_me: amending $xc_subdir/Makefile" >&6;}
  40946. # Build Makefile specific patch hunk.
  40947. xc_p="$xc_subdir/xc_patch.tmp"
  40948. xc_rm_depfiles=`echo "$xc_inc_lines" \
  40949. | $SED 's%include% -rm -f%' 2>/dev/null`
  40950. xc_dep_subdirs=`echo "$xc_inc_lines" \
  40951. | $SED 's%include[ ][ ]*%%' 2>/dev/null \
  40952. | $SED 's%(DEPDIR)/.*%(DEPDIR)%' 2>/dev/null \
  40953. | sort | uniq`
  40954. echo "$xc_rm_depfiles" >$xc_p
  40955. for xc_dep_dir in $xc_dep_subdirs; do
  40956. echo "${xc_tab}@xm_dep_cnt=\`ls $xc_dep_dir | wc -l 2>/dev/null\`; \\" >>$xc_p
  40957. echo "${xc_tab}if test \$\$xm_dep_cnt -eq 0 && test -d $xc_dep_dir; then \\" >>$xc_p
  40958. echo "${xc_tab} rm -rf $xc_dep_dir; \\" >>$xc_p
  40959. echo "${xc_tab}fi" >>$xc_p
  40960. done
  40961. # Build Makefile patching sed scripts.
  40962. xc_s1="$xc_subdir/xc_script_1.tmp"
  40963. xc_s2="$xc_subdir/xc_script_2.tmp"
  40964. xc_s3="$xc_subdir/xc_script_3.tmp"
  40965. cat >$xc_s1 <<\_EOT
  40966. /^distclean[ ]*:/,/^[^ ][^ ]*:/{
  40967. s/^.*(DEPDIR)/___xc_depdir_line___/
  40968. }
  40969. /^maintainer-clean[ ]*:/,/^[^ ][^ ]*:/{
  40970. s/^.*(DEPDIR)/___xc_depdir_line___/
  40971. }
  40972. _EOT
  40973. cat >$xc_s2 <<\_EOT
  40974. /___xc_depdir_line___$/{
  40975. N
  40976. /___xc_depdir_line___$/D
  40977. }
  40978. _EOT
  40979. cat >$xc_s3 <<_EOT
  40980. /^___xc_depdir_line___/{
  40981. r $xc_p
  40982. d
  40983. }
  40984. _EOT
  40985. # Apply patch to Makefile and cleanup.
  40986. $SED -f "$xc_s1" "$xc_subdir/Makefile" >"$xc_subdir/Makefile.tmp1"
  40987. $SED -f "$xc_s2" "$xc_subdir/Makefile.tmp1" >"$xc_subdir/Makefile.tmp2"
  40988. $SED -f "$xc_s3" "$xc_subdir/Makefile.tmp2" >"$xc_subdir/Makefile.tmp3"
  40989. if test -f "$xc_subdir/Makefile.tmp3"; then
  40990. mv -f "$xc_subdir/Makefile.tmp3" "$xc_subdir/Makefile"
  40991. fi
  40992. test -f "$xc_subdir/Makefile.tmp1" && rm -f "$xc_subdir/Makefile.tmp1"
  40993. test -f "$xc_subdir/Makefile.tmp2" && rm -f "$xc_subdir/Makefile.tmp2"
  40994. test -f "$xc_subdir/Makefile.tmp3" && rm -f "$xc_subdir/Makefile.tmp3"
  40995. test -f "$xc_p" && rm -f "$xc_p"
  40996. test -f "$xc_s1" && rm -f "$xc_s1"
  40997. test -f "$xc_s2" && rm -f "$xc_s2"
  40998. test -f "$xc_s3" && rm -f "$xc_s3"
  40999. fi
  41000. done
  41001. ## -------------------------------- ##
  41002. ## End of distclean amending code ##
  41003. ## -------------------------------- ##
  41004. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: Configured to build curl/libcurl:
  41005. Host setup: ${host}
  41006. Install prefix: ${prefix}
  41007. Compiler: ${CC}
  41008. CFLAGS: ${CFLAGS}
  41009. CPPFLAGS: ${CPPFLAGS}
  41010. LDFLAGS: ${LDFLAGS}
  41011. LIBS: ${LIBS}
  41012. curl version: ${CURLVERSION}
  41013. SSL: ${curl_ssl_msg}
  41014. SSH: ${curl_ssh_msg}
  41015. zlib: ${curl_zlib_msg}
  41016. brotli: ${curl_brotli_msg}
  41017. zstd: ${curl_zstd_msg}
  41018. GSS-API: ${curl_gss_msg}
  41019. GSASL: ${curl_gsasl_msg}
  41020. TLS-SRP: ${curl_tls_srp_msg}
  41021. resolver: ${curl_res_msg}
  41022. IPv6: ${curl_ipv6_msg}
  41023. Unix sockets: ${curl_unix_sockets_msg}
  41024. IDN: ${curl_idn_msg}
  41025. Build libcurl: Shared=${enable_shared}, Static=${enable_static}
  41026. Built-in manual: ${curl_manual_msg}
  41027. --libcurl option: ${curl_libcurl_msg}
  41028. Verbose errors: ${curl_verbose_msg}
  41029. Code coverage: ${curl_coverage_msg}
  41030. SSPI: ${curl_sspi_msg}
  41031. ca cert bundle: ${ca}${ca_warning}
  41032. ca cert path: ${capath}${capath_warning}
  41033. ca fallback: ${with_ca_fallback}
  41034. LDAP: ${curl_ldap_msg}
  41035. LDAPS: ${curl_ldaps_msg}
  41036. RTSP: ${curl_rtsp_msg}
  41037. RTMP: ${curl_rtmp_msg}
  41038. PSL: ${curl_psl_msg}
  41039. Alt-svc: ${curl_altsvc_msg}
  41040. HSTS: ${curl_hsts_msg}
  41041. HTTP1: ${curl_h1_msg}
  41042. HTTP2: ${curl_h2_msg}
  41043. HTTP3: ${curl_h3_msg}
  41044. ECH: ${curl_ech_msg}
  41045. Protocols: ${SUPPORT_PROTOCOLS}
  41046. Features: ${SUPPORT_FEATURES}
  41047. " >&5
  41048. printf "%s\n" "$as_me: Configured to build curl/libcurl:
  41049. Host setup: ${host}
  41050. Install prefix: ${prefix}
  41051. Compiler: ${CC}
  41052. CFLAGS: ${CFLAGS}
  41053. CPPFLAGS: ${CPPFLAGS}
  41054. LDFLAGS: ${LDFLAGS}
  41055. LIBS: ${LIBS}
  41056. curl version: ${CURLVERSION}
  41057. SSL: ${curl_ssl_msg}
  41058. SSH: ${curl_ssh_msg}
  41059. zlib: ${curl_zlib_msg}
  41060. brotli: ${curl_brotli_msg}
  41061. zstd: ${curl_zstd_msg}
  41062. GSS-API: ${curl_gss_msg}
  41063. GSASL: ${curl_gsasl_msg}
  41064. TLS-SRP: ${curl_tls_srp_msg}
  41065. resolver: ${curl_res_msg}
  41066. IPv6: ${curl_ipv6_msg}
  41067. Unix sockets: ${curl_unix_sockets_msg}
  41068. IDN: ${curl_idn_msg}
  41069. Build libcurl: Shared=${enable_shared}, Static=${enable_static}
  41070. Built-in manual: ${curl_manual_msg}
  41071. --libcurl option: ${curl_libcurl_msg}
  41072. Verbose errors: ${curl_verbose_msg}
  41073. Code coverage: ${curl_coverage_msg}
  41074. SSPI: ${curl_sspi_msg}
  41075. ca cert bundle: ${ca}${ca_warning}
  41076. ca cert path: ${capath}${capath_warning}
  41077. ca fallback: ${with_ca_fallback}
  41078. LDAP: ${curl_ldap_msg}
  41079. LDAPS: ${curl_ldaps_msg}
  41080. RTSP: ${curl_rtsp_msg}
  41081. RTMP: ${curl_rtmp_msg}
  41082. PSL: ${curl_psl_msg}
  41083. Alt-svc: ${curl_altsvc_msg}
  41084. HSTS: ${curl_hsts_msg}
  41085. HTTP1: ${curl_h1_msg}
  41086. HTTP2: ${curl_h2_msg}
  41087. HTTP3: ${curl_h3_msg}
  41088. ECH: ${curl_ech_msg}
  41089. Protocols: ${SUPPORT_PROTOCOLS}
  41090. Features: ${SUPPORT_FEATURES}
  41091. " >&6;}
  41092. if test -n "$experimental"; then
  41093. cat >&2 << _EOF
  41094. WARNING: $experimental enabled but marked EXPERIMENTAL. Use with caution!
  41095. _EOF
  41096. fi