configure 650 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531153215331534153515361537153815391540154115421543154415451546154715481549155015511552155315541555155615571558155915601561156215631564156515661567156815691570157115721573157415751576157715781579158015811582158315841585158615871588158915901591159215931594159515961597159815991600160116021603160416051606160716081609161016111612161316141615161616171618161916201621162216231624162516261627162816291630163116321633163416351636163716381639164016411642164316441645164616471648164916501651165216531654165516561657165816591660166116621663166416651666166716681669167016711672167316741675167616771678167916801681168216831684168516861687168816891690169116921693169416951696169716981699170017011702170317041705170617071708170917101711171217131714171517161717171817191720172117221723172417251726172717281729173017311732173317341735173617371738173917401741174217431744174517461747174817491750175117521753175417551756175717581759176017611762176317641765176617671768176917701771177217731774177517761777177817791780178117821783178417851786178717881789179017911792179317941795179617971798179918001801180218031804180518061807180818091810181118121813181418151816181718181819182018211822182318241825182618271828182918301831183218331834183518361837183818391840184118421843184418451846184718481849185018511852185318541855185618571858185918601861186218631864186518661867186818691870187118721873187418751876187718781879188018811882188318841885188618871888188918901891189218931894189518961897189818991900190119021903190419051906190719081909191019111912191319141915191619171918191919201921192219231924192519261927192819291930193119321933193419351936193719381939194019411942194319441945194619471948194919501951195219531954195519561957195819591960196119621963196419651966196719681969197019711972197319741975197619771978197919801981198219831984198519861987198819891990199119921993199419951996199719981999200020012002200320042005200620072008200920102011201220132014201520162017201820192020202120222023202420252026202720282029203020312032203320342035203620372038203920402041204220432044204520462047204820492050205120522053205420552056205720582059206020612062206320642065206620672068206920702071207220732074207520762077207820792080208120822083208420852086208720882089209020912092209320942095209620972098209921002101210221032104210521062107210821092110211121122113211421152116211721182119212021212122212321242125212621272128212921302131213221332134213521362137213821392140214121422143214421452146214721482149215021512152215321542155215621572158215921602161216221632164216521662167216821692170217121722173217421752176217721782179218021812182218321842185218621872188218921902191219221932194219521962197219821992200220122022203220422052206220722082209221022112212221322142215221622172218221922202221222222232224222522262227222822292230223122322233223422352236223722382239224022412242224322442245224622472248224922502251225222532254225522562257225822592260226122622263226422652266226722682269227022712272227322742275227622772278227922802281228222832284228522862287228822892290229122922293229422952296229722982299230023012302230323042305230623072308230923102311231223132314231523162317231823192320232123222323232423252326232723282329233023312332233323342335233623372338233923402341234223432344234523462347234823492350235123522353235423552356235723582359236023612362236323642365236623672368236923702371237223732374237523762377237823792380238123822383238423852386238723882389239023912392239323942395239623972398239924002401240224032404240524062407240824092410241124122413241424152416241724182419242024212422242324242425242624272428242924302431243224332434243524362437243824392440244124422443244424452446244724482449245024512452245324542455245624572458245924602461246224632464246524662467246824692470247124722473247424752476247724782479248024812482248324842485248624872488248924902491249224932494249524962497249824992500250125022503250425052506250725082509251025112512251325142515251625172518251925202521252225232524252525262527252825292530253125322533253425352536253725382539254025412542254325442545254625472548254925502551255225532554255525562557255825592560256125622563256425652566256725682569257025712572257325742575257625772578257925802581258225832584258525862587258825892590259125922593259425952596259725982599260026012602260326042605260626072608260926102611261226132614261526162617261826192620262126222623262426252626262726282629263026312632263326342635263626372638263926402641264226432644264526462647264826492650265126522653265426552656265726582659266026612662266326642665266626672668266926702671267226732674267526762677267826792680268126822683268426852686268726882689269026912692269326942695269626972698269927002701270227032704270527062707270827092710271127122713271427152716271727182719272027212722272327242725272627272728272927302731273227332734273527362737273827392740274127422743274427452746274727482749275027512752275327542755275627572758275927602761276227632764276527662767276827692770277127722773277427752776277727782779278027812782278327842785278627872788278927902791279227932794279527962797279827992800280128022803280428052806280728082809281028112812281328142815281628172818281928202821282228232824282528262827282828292830283128322833283428352836283728382839284028412842284328442845284628472848284928502851285228532854285528562857285828592860286128622863286428652866286728682869287028712872287328742875287628772878287928802881288228832884288528862887288828892890289128922893289428952896289728982899290029012902290329042905290629072908290929102911291229132914291529162917291829192920292129222923292429252926292729282929293029312932293329342935293629372938293929402941294229432944294529462947294829492950295129522953295429552956295729582959296029612962296329642965296629672968296929702971297229732974297529762977297829792980298129822983298429852986298729882989299029912992299329942995299629972998299930003001300230033004300530063007300830093010301130123013301430153016301730183019302030213022302330243025302630273028302930303031303230333034303530363037303830393040304130423043304430453046304730483049305030513052305330543055305630573058305930603061306230633064306530663067306830693070307130723073307430753076307730783079308030813082308330843085308630873088308930903091309230933094309530963097309830993100310131023103310431053106310731083109311031113112311331143115311631173118311931203121312231233124312531263127312831293130313131323133313431353136313731383139314031413142314331443145314631473148314931503151315231533154315531563157315831593160316131623163316431653166316731683169317031713172317331743175317631773178317931803181318231833184318531863187318831893190319131923193319431953196319731983199320032013202320332043205320632073208320932103211321232133214321532163217321832193220322132223223322432253226322732283229323032313232323332343235323632373238323932403241324232433244324532463247324832493250325132523253325432553256325732583259326032613262326332643265326632673268326932703271327232733274327532763277327832793280328132823283328432853286328732883289329032913292329332943295329632973298329933003301330233033304330533063307330833093310331133123313331433153316331733183319332033213322332333243325332633273328332933303331333233333334333533363337333833393340334133423343334433453346334733483349335033513352335333543355335633573358335933603361336233633364336533663367336833693370337133723373337433753376337733783379338033813382338333843385338633873388338933903391339233933394339533963397339833993400340134023403340434053406340734083409341034113412341334143415341634173418341934203421342234233424342534263427342834293430343134323433343434353436343734383439344034413442344334443445344634473448344934503451345234533454345534563457345834593460346134623463346434653466346734683469347034713472347334743475347634773478347934803481348234833484348534863487348834893490349134923493349434953496349734983499350035013502350335043505350635073508350935103511351235133514351535163517351835193520352135223523352435253526352735283529353035313532353335343535353635373538353935403541354235433544354535463547354835493550355135523553355435553556355735583559356035613562356335643565356635673568356935703571357235733574357535763577357835793580358135823583358435853586358735883589359035913592359335943595359635973598359936003601360236033604360536063607360836093610361136123613361436153616361736183619362036213622362336243625362636273628362936303631363236333634363536363637363836393640364136423643364436453646364736483649365036513652365336543655365636573658365936603661366236633664366536663667366836693670367136723673367436753676367736783679368036813682368336843685368636873688368936903691369236933694369536963697369836993700370137023703370437053706370737083709371037113712371337143715371637173718371937203721372237233724372537263727372837293730373137323733373437353736373737383739374037413742374337443745374637473748374937503751375237533754375537563757375837593760376137623763376437653766376737683769377037713772377337743775377637773778377937803781378237833784378537863787378837893790379137923793379437953796379737983799380038013802380338043805380638073808380938103811381238133814381538163817381838193820382138223823382438253826382738283829383038313832383338343835383638373838383938403841384238433844384538463847384838493850385138523853385438553856385738583859386038613862386338643865386638673868386938703871387238733874387538763877387838793880388138823883388438853886388738883889389038913892389338943895389638973898389939003901390239033904390539063907390839093910391139123913391439153916391739183919392039213922392339243925392639273928392939303931393239333934393539363937393839393940394139423943394439453946394739483949395039513952395339543955395639573958395939603961396239633964396539663967396839693970397139723973397439753976397739783979398039813982398339843985398639873988398939903991399239933994399539963997399839994000400140024003400440054006400740084009401040114012401340144015401640174018401940204021402240234024402540264027402840294030403140324033403440354036403740384039404040414042404340444045404640474048404940504051405240534054405540564057405840594060406140624063406440654066406740684069407040714072407340744075407640774078407940804081408240834084408540864087408840894090409140924093409440954096409740984099410041014102410341044105410641074108410941104111411241134114411541164117411841194120412141224123412441254126412741284129413041314132413341344135413641374138413941404141414241434144414541464147414841494150415141524153415441554156415741584159416041614162416341644165416641674168416941704171417241734174417541764177417841794180418141824183418441854186418741884189419041914192419341944195419641974198419942004201420242034204420542064207420842094210421142124213421442154216421742184219422042214222422342244225422642274228422942304231423242334234423542364237423842394240424142424243424442454246424742484249425042514252425342544255425642574258425942604261426242634264426542664267426842694270427142724273427442754276427742784279428042814282428342844285428642874288428942904291429242934294429542964297429842994300430143024303430443054306430743084309431043114312431343144315431643174318431943204321432243234324432543264327432843294330433143324333433443354336433743384339434043414342434343444345434643474348434943504351435243534354435543564357435843594360436143624363436443654366436743684369437043714372437343744375437643774378437943804381438243834384438543864387438843894390439143924393439443954396439743984399440044014402440344044405440644074408440944104411441244134414441544164417441844194420442144224423442444254426442744284429443044314432443344344435443644374438443944404441444244434444444544464447444844494450445144524453445444554456445744584459446044614462446344644465446644674468446944704471447244734474447544764477447844794480448144824483448444854486448744884489449044914492449344944495449644974498449945004501450245034504450545064507450845094510451145124513451445154516451745184519452045214522452345244525452645274528452945304531453245334534453545364537453845394540454145424543454445454546454745484549455045514552455345544555455645574558455945604561456245634564456545664567456845694570457145724573457445754576457745784579458045814582458345844585458645874588458945904591459245934594459545964597459845994600460146024603460446054606460746084609461046114612461346144615461646174618461946204621462246234624462546264627462846294630463146324633463446354636463746384639464046414642464346444645464646474648464946504651465246534654465546564657465846594660466146624663466446654666466746684669467046714672467346744675467646774678467946804681468246834684468546864687468846894690469146924693469446954696469746984699470047014702470347044705470647074708470947104711471247134714471547164717471847194720472147224723472447254726472747284729473047314732473347344735473647374738473947404741474247434744474547464747474847494750475147524753475447554756475747584759476047614762476347644765476647674768476947704771477247734774477547764777477847794780478147824783478447854786478747884789479047914792479347944795479647974798479948004801480248034804480548064807480848094810481148124813481448154816481748184819482048214822482348244825482648274828482948304831483248334834483548364837483848394840484148424843484448454846484748484849485048514852485348544855485648574858485948604861486248634864486548664867486848694870487148724873487448754876487748784879488048814882488348844885488648874888488948904891489248934894489548964897489848994900490149024903490449054906490749084909491049114912491349144915491649174918491949204921492249234924492549264927492849294930493149324933493449354936493749384939494049414942494349444945494649474948494949504951495249534954495549564957495849594960496149624963496449654966496749684969497049714972497349744975497649774978497949804981498249834984498549864987498849894990499149924993499449954996499749984999500050015002500350045005500650075008500950105011501250135014501550165017501850195020502150225023502450255026502750285029503050315032503350345035503650375038503950405041504250435044504550465047504850495050505150525053505450555056505750585059506050615062506350645065506650675068506950705071507250735074507550765077507850795080508150825083508450855086508750885089509050915092509350945095509650975098509951005101510251035104510551065107510851095110511151125113511451155116511751185119512051215122512351245125512651275128512951305131513251335134513551365137513851395140514151425143514451455146514751485149515051515152515351545155515651575158515951605161516251635164516551665167516851695170517151725173517451755176517751785179518051815182518351845185518651875188518951905191519251935194519551965197519851995200520152025203520452055206520752085209521052115212521352145215521652175218521952205221522252235224522552265227522852295230523152325233523452355236523752385239524052415242524352445245524652475248524952505251525252535254525552565257525852595260526152625263526452655266526752685269527052715272527352745275527652775278527952805281528252835284528552865287528852895290529152925293529452955296529752985299530053015302530353045305530653075308530953105311531253135314531553165317531853195320532153225323532453255326532753285329533053315332533353345335533653375338533953405341534253435344534553465347534853495350535153525353535453555356535753585359536053615362536353645365536653675368536953705371537253735374537553765377537853795380538153825383538453855386538753885389539053915392539353945395539653975398539954005401540254035404540554065407540854095410541154125413541454155416541754185419542054215422542354245425542654275428542954305431543254335434543554365437543854395440544154425443544454455446544754485449545054515452545354545455545654575458545954605461546254635464546554665467546854695470547154725473547454755476547754785479548054815482548354845485548654875488548954905491549254935494549554965497549854995500550155025503550455055506550755085509551055115512551355145515551655175518551955205521552255235524552555265527552855295530553155325533553455355536553755385539554055415542554355445545554655475548554955505551555255535554555555565557555855595560556155625563556455655566556755685569557055715572557355745575557655775578557955805581558255835584558555865587558855895590559155925593559455955596559755985599560056015602560356045605560656075608560956105611561256135614561556165617561856195620562156225623562456255626562756285629563056315632563356345635563656375638563956405641564256435644564556465647564856495650565156525653565456555656565756585659566056615662566356645665566656675668566956705671567256735674567556765677567856795680568156825683568456855686568756885689569056915692569356945695569656975698569957005701570257035704570557065707570857095710571157125713571457155716571757185719572057215722572357245725572657275728572957305731573257335734573557365737573857395740574157425743574457455746574757485749575057515752575357545755575657575758575957605761576257635764576557665767576857695770577157725773577457755776577757785779578057815782578357845785578657875788578957905791579257935794579557965797579857995800580158025803580458055806580758085809581058115812581358145815581658175818581958205821582258235824582558265827582858295830583158325833583458355836583758385839584058415842584358445845584658475848584958505851585258535854585558565857585858595860586158625863586458655866586758685869587058715872587358745875587658775878587958805881588258835884588558865887588858895890589158925893589458955896589758985899590059015902590359045905590659075908590959105911591259135914591559165917591859195920592159225923592459255926592759285929593059315932593359345935593659375938593959405941594259435944594559465947594859495950595159525953595459555956595759585959596059615962596359645965596659675968596959705971597259735974597559765977597859795980598159825983598459855986598759885989599059915992599359945995599659975998599960006001600260036004600560066007600860096010601160126013601460156016601760186019602060216022602360246025602660276028602960306031603260336034603560366037603860396040604160426043604460456046604760486049605060516052605360546055605660576058605960606061606260636064606560666067606860696070607160726073607460756076607760786079608060816082608360846085608660876088608960906091609260936094609560966097609860996100610161026103610461056106610761086109611061116112611361146115611661176118611961206121612261236124612561266127612861296130613161326133613461356136613761386139614061416142614361446145614661476148614961506151615261536154615561566157615861596160616161626163616461656166616761686169617061716172617361746175617661776178617961806181618261836184618561866187618861896190619161926193619461956196619761986199620062016202620362046205620662076208620962106211621262136214621562166217621862196220622162226223622462256226622762286229623062316232623362346235623662376238623962406241624262436244624562466247624862496250625162526253625462556256625762586259626062616262626362646265626662676268626962706271627262736274627562766277627862796280628162826283628462856286628762886289629062916292629362946295629662976298629963006301630263036304630563066307630863096310631163126313631463156316631763186319632063216322632363246325632663276328632963306331633263336334633563366337633863396340634163426343634463456346634763486349635063516352635363546355635663576358635963606361636263636364636563666367636863696370637163726373637463756376637763786379638063816382638363846385638663876388638963906391639263936394639563966397639863996400640164026403640464056406640764086409641064116412641364146415641664176418641964206421642264236424642564266427642864296430643164326433643464356436643764386439644064416442644364446445644664476448644964506451645264536454645564566457645864596460646164626463646464656466646764686469647064716472647364746475647664776478647964806481648264836484648564866487648864896490649164926493649464956496649764986499650065016502650365046505650665076508650965106511651265136514651565166517651865196520652165226523652465256526652765286529653065316532653365346535653665376538653965406541654265436544654565466547654865496550655165526553655465556556655765586559656065616562656365646565656665676568656965706571657265736574657565766577657865796580658165826583658465856586658765886589659065916592659365946595659665976598659966006601660266036604660566066607660866096610661166126613661466156616661766186619662066216622662366246625662666276628662966306631663266336634663566366637663866396640664166426643664466456646664766486649665066516652665366546655665666576658665966606661666266636664666566666667666866696670667166726673667466756676667766786679668066816682668366846685668666876688668966906691669266936694669566966697669866996700670167026703670467056706670767086709671067116712671367146715671667176718671967206721672267236724672567266727672867296730673167326733673467356736673767386739674067416742674367446745674667476748674967506751675267536754675567566757675867596760676167626763676467656766676767686769677067716772677367746775677667776778677967806781678267836784678567866787678867896790679167926793679467956796679767986799680068016802680368046805680668076808680968106811681268136814681568166817681868196820682168226823682468256826682768286829683068316832683368346835683668376838683968406841684268436844684568466847684868496850685168526853685468556856685768586859686068616862686368646865686668676868686968706871687268736874687568766877687868796880688168826883688468856886688768886889689068916892689368946895689668976898689969006901690269036904690569066907690869096910691169126913691469156916691769186919692069216922692369246925692669276928692969306931693269336934693569366937693869396940694169426943694469456946694769486949695069516952695369546955695669576958695969606961696269636964696569666967696869696970697169726973697469756976697769786979698069816982698369846985698669876988698969906991699269936994699569966997699869997000700170027003700470057006700770087009701070117012701370147015701670177018701970207021702270237024702570267027702870297030703170327033703470357036703770387039704070417042704370447045704670477048704970507051705270537054705570567057705870597060706170627063706470657066706770687069707070717072707370747075707670777078707970807081708270837084708570867087708870897090709170927093709470957096709770987099710071017102710371047105710671077108710971107111711271137114711571167117711871197120712171227123712471257126712771287129713071317132713371347135713671377138713971407141714271437144714571467147714871497150715171527153715471557156715771587159716071617162716371647165716671677168716971707171717271737174717571767177717871797180718171827183718471857186718771887189719071917192719371947195719671977198719972007201720272037204720572067207720872097210721172127213721472157216721772187219722072217222722372247225722672277228722972307231723272337234723572367237723872397240724172427243724472457246724772487249725072517252725372547255725672577258725972607261726272637264726572667267726872697270727172727273727472757276727772787279728072817282728372847285728672877288728972907291729272937294729572967297729872997300730173027303730473057306730773087309731073117312731373147315731673177318731973207321732273237324732573267327732873297330733173327333733473357336733773387339734073417342734373447345734673477348734973507351735273537354735573567357735873597360736173627363736473657366736773687369737073717372737373747375737673777378737973807381738273837384738573867387738873897390739173927393739473957396739773987399740074017402740374047405740674077408740974107411741274137414741574167417741874197420742174227423742474257426742774287429743074317432743374347435743674377438743974407441744274437444744574467447744874497450745174527453745474557456745774587459746074617462746374647465746674677468746974707471747274737474747574767477747874797480748174827483748474857486748774887489749074917492749374947495749674977498749975007501750275037504750575067507750875097510751175127513751475157516751775187519752075217522752375247525752675277528752975307531753275337534753575367537753875397540754175427543754475457546754775487549755075517552755375547555755675577558755975607561756275637564756575667567756875697570757175727573757475757576757775787579758075817582758375847585758675877588758975907591759275937594759575967597759875997600760176027603760476057606760776087609761076117612761376147615761676177618761976207621762276237624762576267627762876297630763176327633763476357636763776387639764076417642764376447645764676477648764976507651765276537654765576567657765876597660766176627663766476657666766776687669767076717672767376747675767676777678767976807681768276837684768576867687768876897690769176927693769476957696769776987699770077017702770377047705770677077708770977107711771277137714771577167717771877197720772177227723772477257726772777287729773077317732773377347735773677377738773977407741774277437744774577467747774877497750775177527753775477557756775777587759776077617762776377647765776677677768776977707771777277737774777577767777777877797780778177827783778477857786778777887789779077917792779377947795779677977798779978007801780278037804780578067807780878097810781178127813781478157816781778187819782078217822782378247825782678277828782978307831783278337834783578367837783878397840784178427843784478457846784778487849785078517852785378547855785678577858785978607861786278637864786578667867786878697870787178727873787478757876787778787879788078817882788378847885788678877888788978907891789278937894789578967897789878997900790179027903790479057906790779087909791079117912791379147915791679177918791979207921792279237924792579267927792879297930793179327933793479357936793779387939794079417942794379447945794679477948794979507951795279537954795579567957795879597960796179627963796479657966796779687969797079717972797379747975797679777978797979807981798279837984798579867987798879897990799179927993799479957996799779987999800080018002800380048005800680078008800980108011801280138014801580168017801880198020802180228023802480258026802780288029803080318032803380348035803680378038803980408041804280438044804580468047804880498050805180528053805480558056805780588059806080618062806380648065806680678068806980708071807280738074807580768077807880798080808180828083808480858086808780888089809080918092809380948095809680978098809981008101810281038104810581068107810881098110811181128113811481158116811781188119812081218122812381248125812681278128812981308131813281338134813581368137813881398140814181428143814481458146814781488149815081518152815381548155815681578158815981608161816281638164816581668167816881698170817181728173817481758176817781788179818081818182818381848185818681878188818981908191819281938194819581968197819881998200820182028203820482058206820782088209821082118212821382148215821682178218821982208221822282238224822582268227822882298230823182328233823482358236823782388239824082418242824382448245824682478248824982508251825282538254825582568257825882598260826182628263826482658266826782688269827082718272827382748275827682778278827982808281828282838284828582868287828882898290829182928293829482958296829782988299830083018302830383048305830683078308830983108311831283138314831583168317831883198320832183228323832483258326832783288329833083318332833383348335833683378338833983408341834283438344834583468347834883498350835183528353835483558356835783588359836083618362836383648365836683678368836983708371837283738374837583768377837883798380838183828383838483858386838783888389839083918392839383948395839683978398839984008401840284038404840584068407840884098410841184128413841484158416841784188419842084218422842384248425842684278428842984308431843284338434843584368437843884398440844184428443844484458446844784488449845084518452845384548455845684578458845984608461846284638464846584668467846884698470847184728473847484758476847784788479848084818482848384848485848684878488848984908491849284938494849584968497849884998500850185028503850485058506850785088509851085118512851385148515851685178518851985208521852285238524852585268527852885298530853185328533853485358536853785388539854085418542854385448545854685478548854985508551855285538554855585568557855885598560856185628563856485658566856785688569857085718572857385748575857685778578857985808581858285838584858585868587858885898590859185928593859485958596859785988599860086018602860386048605860686078608860986108611861286138614861586168617861886198620862186228623862486258626862786288629863086318632863386348635863686378638863986408641864286438644864586468647864886498650865186528653865486558656865786588659866086618662866386648665866686678668866986708671867286738674867586768677867886798680868186828683868486858686868786888689869086918692869386948695869686978698869987008701870287038704870587068707870887098710871187128713871487158716871787188719872087218722872387248725872687278728872987308731873287338734873587368737873887398740874187428743874487458746874787488749875087518752875387548755875687578758875987608761876287638764876587668767876887698770877187728773877487758776877787788779878087818782878387848785878687878788878987908791879287938794879587968797879887998800880188028803880488058806880788088809881088118812881388148815881688178818881988208821882288238824882588268827882888298830883188328833883488358836883788388839884088418842884388448845884688478848884988508851885288538854885588568857885888598860886188628863886488658866886788688869887088718872887388748875887688778878887988808881888288838884888588868887888888898890889188928893889488958896889788988899890089018902890389048905890689078908890989108911891289138914891589168917891889198920892189228923892489258926892789288929893089318932893389348935893689378938893989408941894289438944894589468947894889498950895189528953895489558956895789588959896089618962896389648965896689678968896989708971897289738974897589768977897889798980898189828983898489858986898789888989899089918992899389948995899689978998899990009001900290039004900590069007900890099010901190129013901490159016901790189019902090219022902390249025902690279028902990309031903290339034903590369037903890399040904190429043904490459046904790489049905090519052905390549055905690579058905990609061906290639064906590669067906890699070907190729073907490759076907790789079908090819082908390849085908690879088908990909091909290939094909590969097909890999100910191029103910491059106910791089109911091119112911391149115911691179118911991209121912291239124912591269127912891299130913191329133913491359136913791389139914091419142914391449145914691479148914991509151915291539154915591569157915891599160916191629163916491659166916791689169917091719172917391749175917691779178917991809181918291839184918591869187918891899190919191929193919491959196919791989199920092019202920392049205920692079208920992109211921292139214921592169217921892199220922192229223922492259226922792289229923092319232923392349235923692379238923992409241924292439244924592469247924892499250925192529253925492559256925792589259926092619262926392649265926692679268926992709271927292739274927592769277927892799280928192829283928492859286928792889289929092919292929392949295929692979298929993009301930293039304930593069307930893099310931193129313931493159316931793189319932093219322932393249325932693279328932993309331933293339334933593369337933893399340934193429343934493459346934793489349935093519352935393549355935693579358935993609361936293639364936593669367936893699370937193729373937493759376937793789379938093819382938393849385938693879388938993909391939293939394939593969397939893999400940194029403940494059406940794089409941094119412941394149415941694179418941994209421942294239424942594269427942894299430943194329433943494359436943794389439944094419442944394449445944694479448944994509451945294539454945594569457945894599460946194629463946494659466946794689469947094719472947394749475947694779478947994809481948294839484948594869487948894899490949194929493949494959496949794989499950095019502950395049505950695079508950995109511951295139514951595169517951895199520952195229523952495259526952795289529953095319532953395349535953695379538953995409541954295439544954595469547954895499550955195529553955495559556955795589559956095619562956395649565956695679568956995709571957295739574957595769577957895799580958195829583958495859586958795889589959095919592959395949595959695979598959996009601960296039604960596069607960896099610961196129613961496159616961796189619962096219622962396249625962696279628962996309631963296339634963596369637963896399640964196429643964496459646964796489649965096519652965396549655965696579658965996609661966296639664966596669667966896699670967196729673967496759676967796789679968096819682968396849685968696879688968996909691969296939694969596969697969896999700970197029703970497059706970797089709971097119712971397149715971697179718971997209721972297239724972597269727972897299730973197329733973497359736973797389739974097419742974397449745974697479748974997509751975297539754975597569757975897599760976197629763976497659766976797689769977097719772977397749775977697779778977997809781978297839784978597869787978897899790979197929793979497959796979797989799980098019802980398049805980698079808980998109811981298139814981598169817981898199820982198229823982498259826982798289829983098319832983398349835983698379838983998409841984298439844984598469847984898499850985198529853985498559856985798589859986098619862986398649865986698679868986998709871987298739874987598769877987898799880988198829883988498859886988798889889989098919892989398949895989698979898989999009901990299039904990599069907990899099910991199129913991499159916991799189919992099219922992399249925992699279928992999309931993299339934993599369937993899399940994199429943994499459946994799489949995099519952995399549955995699579958995999609961996299639964996599669967996899699970997199729973997499759976997799789979998099819982998399849985998699879988998999909991999299939994999599969997999899991000010001100021000310004100051000610007100081000910010100111001210013100141001510016100171001810019100201002110022100231002410025100261002710028100291003010031100321003310034100351003610037100381003910040100411004210043100441004510046100471004810049100501005110052100531005410055100561005710058100591006010061100621006310064100651006610067100681006910070100711007210073100741007510076100771007810079100801008110082100831008410085100861008710088100891009010091100921009310094100951009610097100981009910100101011010210103101041010510106101071010810109101101011110112101131011410115101161011710118101191012010121101221012310124101251012610127101281012910130101311013210133101341013510136101371013810139101401014110142101431014410145101461014710148101491015010151101521015310154101551015610157101581015910160101611016210163101641016510166101671016810169101701017110172101731017410175101761017710178101791018010181101821018310184101851018610187101881018910190101911019210193101941019510196101971019810199102001020110202102031020410205102061020710208102091021010211102121021310214102151021610217102181021910220102211022210223102241022510226102271022810229102301023110232102331023410235102361023710238102391024010241102421024310244102451024610247102481024910250102511025210253102541025510256102571025810259102601026110262102631026410265102661026710268102691027010271102721027310274102751027610277102781027910280102811028210283102841028510286102871028810289102901029110292102931029410295102961029710298102991030010301103021030310304103051030610307103081030910310103111031210313103141031510316103171031810319103201032110322103231032410325103261032710328103291033010331103321033310334103351033610337103381033910340103411034210343103441034510346103471034810349103501035110352103531035410355103561035710358103591036010361103621036310364103651036610367103681036910370103711037210373103741037510376103771037810379103801038110382103831038410385103861038710388103891039010391103921039310394103951039610397103981039910400104011040210403104041040510406104071040810409104101041110412104131041410415104161041710418104191042010421104221042310424104251042610427104281042910430104311043210433104341043510436104371043810439104401044110442104431044410445104461044710448104491045010451104521045310454104551045610457104581045910460104611046210463104641046510466104671046810469104701047110472104731047410475104761047710478104791048010481104821048310484104851048610487104881048910490104911049210493104941049510496104971049810499105001050110502105031050410505105061050710508105091051010511105121051310514105151051610517105181051910520105211052210523105241052510526105271052810529105301053110532105331053410535105361053710538105391054010541105421054310544105451054610547105481054910550105511055210553105541055510556105571055810559105601056110562105631056410565105661056710568105691057010571105721057310574105751057610577105781057910580105811058210583105841058510586105871058810589105901059110592105931059410595105961059710598105991060010601106021060310604106051060610607106081060910610106111061210613106141061510616106171061810619106201062110622106231062410625106261062710628106291063010631106321063310634106351063610637106381063910640106411064210643106441064510646106471064810649106501065110652106531065410655106561065710658106591066010661106621066310664106651066610667106681066910670106711067210673106741067510676106771067810679106801068110682106831068410685106861068710688106891069010691106921069310694106951069610697106981069910700107011070210703107041070510706107071070810709107101071110712107131071410715107161071710718107191072010721107221072310724107251072610727107281072910730107311073210733107341073510736107371073810739107401074110742107431074410745107461074710748107491075010751107521075310754107551075610757107581075910760107611076210763107641076510766107671076810769107701077110772107731077410775107761077710778107791078010781107821078310784107851078610787107881078910790107911079210793107941079510796107971079810799108001080110802108031080410805108061080710808108091081010811108121081310814108151081610817108181081910820108211082210823108241082510826108271082810829108301083110832108331083410835108361083710838108391084010841108421084310844108451084610847108481084910850108511085210853108541085510856108571085810859108601086110862108631086410865108661086710868108691087010871108721087310874108751087610877108781087910880108811088210883108841088510886108871088810889108901089110892108931089410895108961089710898108991090010901109021090310904109051090610907109081090910910109111091210913109141091510916109171091810919109201092110922109231092410925109261092710928109291093010931109321093310934109351093610937109381093910940109411094210943109441094510946109471094810949109501095110952109531095410955109561095710958109591096010961109621096310964109651096610967109681096910970109711097210973109741097510976109771097810979109801098110982109831098410985109861098710988109891099010991109921099310994109951099610997109981099911000110011100211003110041100511006110071100811009110101101111012110131101411015110161101711018110191102011021110221102311024110251102611027110281102911030110311103211033110341103511036110371103811039110401104111042110431104411045110461104711048110491105011051110521105311054110551105611057110581105911060110611106211063110641106511066110671106811069110701107111072110731107411075110761107711078110791108011081110821108311084110851108611087110881108911090110911109211093110941109511096110971109811099111001110111102111031110411105111061110711108111091111011111111121111311114111151111611117111181111911120111211112211123111241112511126111271112811129111301113111132111331113411135111361113711138111391114011141111421114311144111451114611147111481114911150111511115211153111541115511156111571115811159111601116111162111631116411165111661116711168111691117011171111721117311174111751117611177111781117911180111811118211183111841118511186111871118811189111901119111192111931119411195111961119711198111991120011201112021120311204112051120611207112081120911210112111121211213112141121511216112171121811219112201122111222112231122411225112261122711228112291123011231112321123311234112351123611237112381123911240112411124211243112441124511246112471124811249112501125111252112531125411255112561125711258112591126011261112621126311264112651126611267112681126911270112711127211273112741127511276112771127811279112801128111282112831128411285112861128711288112891129011291112921129311294112951129611297112981129911300113011130211303113041130511306113071130811309113101131111312113131131411315113161131711318113191132011321113221132311324113251132611327113281132911330113311133211333113341133511336113371133811339113401134111342113431134411345113461134711348113491135011351113521135311354113551135611357113581135911360113611136211363113641136511366113671136811369113701137111372113731137411375113761137711378113791138011381113821138311384113851138611387113881138911390113911139211393113941139511396113971139811399114001140111402114031140411405114061140711408114091141011411114121141311414114151141611417114181141911420114211142211423114241142511426114271142811429114301143111432114331143411435114361143711438114391144011441114421144311444114451144611447114481144911450114511145211453114541145511456114571145811459114601146111462114631146411465114661146711468114691147011471114721147311474114751147611477114781147911480114811148211483114841148511486114871148811489114901149111492114931149411495114961149711498114991150011501115021150311504115051150611507115081150911510115111151211513115141151511516115171151811519115201152111522115231152411525115261152711528115291153011531115321153311534115351153611537115381153911540115411154211543115441154511546115471154811549115501155111552115531155411555115561155711558115591156011561115621156311564115651156611567115681156911570115711157211573115741157511576115771157811579115801158111582115831158411585115861158711588115891159011591115921159311594115951159611597115981159911600116011160211603116041160511606116071160811609116101161111612116131161411615116161161711618116191162011621116221162311624116251162611627116281162911630116311163211633116341163511636116371163811639116401164111642116431164411645116461164711648116491165011651116521165311654116551165611657116581165911660116611166211663116641166511666116671166811669116701167111672116731167411675116761167711678116791168011681116821168311684116851168611687116881168911690116911169211693116941169511696116971169811699117001170111702117031170411705117061170711708117091171011711117121171311714117151171611717117181171911720117211172211723117241172511726117271172811729117301173111732117331173411735117361173711738117391174011741117421174311744117451174611747117481174911750117511175211753117541175511756117571175811759117601176111762117631176411765117661176711768117691177011771117721177311774117751177611777117781177911780117811178211783117841178511786117871178811789117901179111792117931179411795117961179711798117991180011801118021180311804118051180611807118081180911810118111181211813118141181511816118171181811819118201182111822118231182411825118261182711828118291183011831118321183311834118351183611837118381183911840118411184211843118441184511846118471184811849118501185111852118531185411855118561185711858118591186011861118621186311864118651186611867118681186911870118711187211873118741187511876118771187811879118801188111882118831188411885118861188711888118891189011891118921189311894118951189611897118981189911900119011190211903119041190511906119071190811909119101191111912119131191411915119161191711918119191192011921119221192311924119251192611927119281192911930119311193211933119341193511936119371193811939119401194111942119431194411945119461194711948119491195011951119521195311954119551195611957119581195911960119611196211963119641196511966119671196811969119701197111972119731197411975119761197711978119791198011981119821198311984119851198611987119881198911990119911199211993119941199511996119971199811999120001200112002120031200412005120061200712008120091201012011120121201312014120151201612017120181201912020120211202212023120241202512026120271202812029120301203112032120331203412035120361203712038120391204012041120421204312044120451204612047120481204912050120511205212053120541205512056120571205812059120601206112062120631206412065120661206712068120691207012071120721207312074120751207612077120781207912080120811208212083120841208512086120871208812089120901209112092120931209412095120961209712098120991210012101121021210312104121051210612107121081210912110121111211212113121141211512116121171211812119121201212112122121231212412125121261212712128121291213012131121321213312134121351213612137121381213912140121411214212143121441214512146121471214812149121501215112152121531215412155121561215712158121591216012161121621216312164121651216612167121681216912170121711217212173121741217512176121771217812179121801218112182121831218412185121861218712188121891219012191121921219312194121951219612197121981219912200122011220212203122041220512206122071220812209122101221112212122131221412215122161221712218122191222012221122221222312224122251222612227122281222912230122311223212233122341223512236122371223812239122401224112242122431224412245122461224712248122491225012251122521225312254122551225612257122581225912260122611226212263122641226512266122671226812269122701227112272122731227412275122761227712278122791228012281122821228312284122851228612287122881228912290122911229212293122941229512296122971229812299123001230112302123031230412305123061230712308123091231012311123121231312314123151231612317123181231912320123211232212323123241232512326123271232812329123301233112332123331233412335123361233712338123391234012341123421234312344123451234612347123481234912350123511235212353123541235512356123571235812359123601236112362123631236412365123661236712368123691237012371123721237312374123751237612377123781237912380123811238212383123841238512386123871238812389123901239112392123931239412395123961239712398123991240012401124021240312404124051240612407124081240912410124111241212413124141241512416124171241812419124201242112422124231242412425124261242712428124291243012431124321243312434124351243612437124381243912440124411244212443124441244512446124471244812449124501245112452124531245412455124561245712458124591246012461124621246312464124651246612467124681246912470124711247212473124741247512476124771247812479124801248112482124831248412485124861248712488124891249012491124921249312494124951249612497124981249912500125011250212503125041250512506125071250812509125101251112512125131251412515125161251712518125191252012521125221252312524125251252612527125281252912530125311253212533125341253512536125371253812539125401254112542125431254412545125461254712548125491255012551125521255312554125551255612557125581255912560125611256212563125641256512566125671256812569125701257112572125731257412575125761257712578125791258012581125821258312584125851258612587125881258912590125911259212593125941259512596125971259812599126001260112602126031260412605126061260712608126091261012611126121261312614126151261612617126181261912620126211262212623126241262512626126271262812629126301263112632126331263412635126361263712638126391264012641126421264312644126451264612647126481264912650126511265212653126541265512656126571265812659126601266112662126631266412665126661266712668126691267012671126721267312674126751267612677126781267912680126811268212683126841268512686126871268812689126901269112692126931269412695126961269712698126991270012701127021270312704127051270612707127081270912710127111271212713127141271512716127171271812719127201272112722127231272412725127261272712728127291273012731127321273312734127351273612737127381273912740127411274212743127441274512746127471274812749127501275112752127531275412755127561275712758127591276012761127621276312764127651276612767127681276912770127711277212773127741277512776127771277812779127801278112782127831278412785127861278712788127891279012791127921279312794127951279612797127981279912800128011280212803128041280512806128071280812809128101281112812128131281412815128161281712818128191282012821128221282312824128251282612827128281282912830128311283212833128341283512836128371283812839128401284112842128431284412845128461284712848128491285012851128521285312854128551285612857128581285912860128611286212863128641286512866128671286812869128701287112872128731287412875128761287712878128791288012881128821288312884128851288612887128881288912890128911289212893128941289512896128971289812899129001290112902129031290412905129061290712908129091291012911129121291312914129151291612917129181291912920129211292212923129241292512926129271292812929129301293112932129331293412935129361293712938129391294012941129421294312944129451294612947129481294912950129511295212953129541295512956129571295812959129601296112962129631296412965129661296712968129691297012971129721297312974129751297612977129781297912980129811298212983129841298512986129871298812989129901299112992129931299412995129961299712998129991300013001130021300313004130051300613007130081300913010130111301213013130141301513016130171301813019130201302113022130231302413025130261302713028130291303013031130321303313034130351303613037130381303913040130411304213043130441304513046130471304813049130501305113052130531305413055130561305713058130591306013061130621306313064130651306613067130681306913070130711307213073130741307513076130771307813079130801308113082130831308413085130861308713088130891309013091130921309313094130951309613097130981309913100131011310213103131041310513106131071310813109131101311113112131131311413115131161311713118131191312013121131221312313124131251312613127131281312913130131311313213133131341313513136131371313813139131401314113142131431314413145131461314713148131491315013151131521315313154131551315613157131581315913160131611316213163131641316513166131671316813169131701317113172131731317413175131761317713178131791318013181131821318313184131851318613187131881318913190131911319213193131941319513196131971319813199132001320113202132031320413205132061320713208132091321013211132121321313214132151321613217132181321913220132211322213223132241322513226132271322813229132301323113232132331323413235132361323713238132391324013241132421324313244132451324613247132481324913250132511325213253132541325513256132571325813259132601326113262132631326413265132661326713268132691327013271132721327313274132751327613277132781327913280132811328213283132841328513286132871328813289132901329113292132931329413295132961329713298132991330013301133021330313304133051330613307133081330913310133111331213313133141331513316133171331813319133201332113322133231332413325133261332713328133291333013331133321333313334133351333613337133381333913340133411334213343133441334513346133471334813349133501335113352133531335413355133561335713358133591336013361133621336313364133651336613367133681336913370133711337213373133741337513376133771337813379133801338113382133831338413385133861338713388133891339013391133921339313394133951339613397133981339913400134011340213403134041340513406134071340813409134101341113412134131341413415134161341713418134191342013421134221342313424134251342613427134281342913430134311343213433134341343513436134371343813439134401344113442134431344413445134461344713448134491345013451134521345313454134551345613457134581345913460134611346213463134641346513466134671346813469134701347113472134731347413475134761347713478134791348013481134821348313484134851348613487134881348913490134911349213493134941349513496134971349813499135001350113502135031350413505135061350713508135091351013511135121351313514135151351613517135181351913520135211352213523135241352513526135271352813529135301353113532135331353413535135361353713538135391354013541135421354313544135451354613547135481354913550135511355213553135541355513556135571355813559135601356113562135631356413565135661356713568135691357013571135721357313574135751357613577135781357913580135811358213583135841358513586135871358813589135901359113592135931359413595135961359713598135991360013601136021360313604136051360613607136081360913610136111361213613136141361513616136171361813619136201362113622136231362413625136261362713628136291363013631136321363313634136351363613637136381363913640136411364213643136441364513646136471364813649136501365113652136531365413655136561365713658136591366013661136621366313664136651366613667136681366913670136711367213673136741367513676136771367813679136801368113682136831368413685136861368713688136891369013691136921369313694136951369613697136981369913700137011370213703137041370513706137071370813709137101371113712137131371413715137161371713718137191372013721137221372313724137251372613727137281372913730137311373213733137341373513736137371373813739137401374113742137431374413745137461374713748137491375013751137521375313754137551375613757137581375913760137611376213763137641376513766137671376813769137701377113772137731377413775137761377713778137791378013781137821378313784137851378613787137881378913790137911379213793137941379513796137971379813799138001380113802138031380413805138061380713808138091381013811138121381313814138151381613817138181381913820138211382213823138241382513826138271382813829138301383113832138331383413835138361383713838138391384013841138421384313844138451384613847138481384913850138511385213853138541385513856138571385813859138601386113862138631386413865138661386713868138691387013871138721387313874138751387613877138781387913880138811388213883138841388513886138871388813889138901389113892138931389413895138961389713898138991390013901139021390313904139051390613907139081390913910139111391213913139141391513916139171391813919139201392113922139231392413925139261392713928139291393013931139321393313934139351393613937139381393913940139411394213943139441394513946139471394813949139501395113952139531395413955139561395713958139591396013961139621396313964139651396613967139681396913970139711397213973139741397513976139771397813979139801398113982139831398413985139861398713988139891399013991139921399313994139951399613997139981399914000140011400214003140041400514006140071400814009140101401114012140131401414015140161401714018140191402014021140221402314024140251402614027140281402914030140311403214033140341403514036140371403814039140401404114042140431404414045140461404714048140491405014051140521405314054140551405614057140581405914060140611406214063140641406514066140671406814069140701407114072140731407414075140761407714078140791408014081140821408314084140851408614087140881408914090140911409214093140941409514096140971409814099141001410114102141031410414105141061410714108141091411014111141121411314114141151411614117141181411914120141211412214123141241412514126141271412814129141301413114132141331413414135141361413714138141391414014141141421414314144141451414614147141481414914150141511415214153141541415514156141571415814159141601416114162141631416414165141661416714168141691417014171141721417314174141751417614177141781417914180141811418214183141841418514186141871418814189141901419114192141931419414195141961419714198141991420014201142021420314204142051420614207142081420914210142111421214213142141421514216142171421814219142201422114222142231422414225142261422714228142291423014231142321423314234142351423614237142381423914240142411424214243142441424514246142471424814249142501425114252142531425414255142561425714258142591426014261142621426314264142651426614267142681426914270142711427214273142741427514276142771427814279142801428114282142831428414285142861428714288142891429014291142921429314294142951429614297142981429914300143011430214303143041430514306143071430814309143101431114312143131431414315143161431714318143191432014321143221432314324143251432614327143281432914330143311433214333143341433514336143371433814339143401434114342143431434414345143461434714348143491435014351143521435314354143551435614357143581435914360143611436214363143641436514366143671436814369143701437114372143731437414375143761437714378143791438014381143821438314384143851438614387143881438914390143911439214393143941439514396143971439814399144001440114402144031440414405144061440714408144091441014411144121441314414144151441614417144181441914420144211442214423144241442514426144271442814429144301443114432144331443414435144361443714438144391444014441144421444314444144451444614447144481444914450144511445214453144541445514456144571445814459144601446114462144631446414465144661446714468144691447014471144721447314474144751447614477144781447914480144811448214483144841448514486144871448814489144901449114492144931449414495144961449714498144991450014501145021450314504145051450614507145081450914510145111451214513145141451514516145171451814519145201452114522145231452414525145261452714528145291453014531145321453314534145351453614537145381453914540145411454214543145441454514546145471454814549145501455114552145531455414555145561455714558145591456014561145621456314564145651456614567145681456914570145711457214573145741457514576145771457814579145801458114582145831458414585145861458714588145891459014591145921459314594145951459614597145981459914600146011460214603146041460514606146071460814609146101461114612146131461414615146161461714618146191462014621146221462314624146251462614627146281462914630146311463214633146341463514636146371463814639146401464114642146431464414645146461464714648146491465014651146521465314654146551465614657146581465914660146611466214663146641466514666146671466814669146701467114672146731467414675146761467714678146791468014681146821468314684146851468614687146881468914690146911469214693146941469514696146971469814699147001470114702147031470414705147061470714708147091471014711147121471314714147151471614717147181471914720147211472214723147241472514726147271472814729147301473114732147331473414735147361473714738147391474014741147421474314744147451474614747147481474914750147511475214753147541475514756147571475814759147601476114762147631476414765147661476714768147691477014771147721477314774147751477614777147781477914780147811478214783147841478514786147871478814789147901479114792147931479414795147961479714798147991480014801148021480314804148051480614807148081480914810148111481214813148141481514816148171481814819148201482114822148231482414825148261482714828148291483014831148321483314834148351483614837148381483914840148411484214843148441484514846148471484814849148501485114852148531485414855148561485714858148591486014861148621486314864148651486614867148681486914870148711487214873148741487514876148771487814879148801488114882148831488414885148861488714888148891489014891148921489314894148951489614897148981489914900149011490214903149041490514906149071490814909149101491114912149131491414915149161491714918149191492014921149221492314924149251492614927149281492914930149311493214933149341493514936149371493814939149401494114942149431494414945149461494714948149491495014951149521495314954149551495614957149581495914960149611496214963149641496514966149671496814969149701497114972149731497414975149761497714978149791498014981149821498314984149851498614987149881498914990149911499214993149941499514996149971499814999150001500115002150031500415005150061500715008150091501015011150121501315014150151501615017150181501915020150211502215023150241502515026150271502815029150301503115032150331503415035150361503715038150391504015041150421504315044150451504615047150481504915050150511505215053150541505515056150571505815059150601506115062150631506415065150661506715068150691507015071150721507315074150751507615077150781507915080150811508215083150841508515086150871508815089150901509115092150931509415095150961509715098150991510015101151021510315104151051510615107151081510915110151111511215113151141511515116151171511815119151201512115122151231512415125151261512715128151291513015131151321513315134151351513615137151381513915140151411514215143151441514515146151471514815149151501515115152151531515415155151561515715158151591516015161151621516315164151651516615167151681516915170151711517215173151741517515176151771517815179151801518115182151831518415185151861518715188151891519015191151921519315194151951519615197151981519915200152011520215203152041520515206152071520815209152101521115212152131521415215152161521715218152191522015221152221522315224152251522615227152281522915230152311523215233152341523515236152371523815239152401524115242152431524415245152461524715248152491525015251152521525315254152551525615257152581525915260152611526215263152641526515266152671526815269152701527115272152731527415275152761527715278152791528015281152821528315284152851528615287152881528915290152911529215293152941529515296152971529815299153001530115302153031530415305153061530715308153091531015311153121531315314153151531615317153181531915320153211532215323153241532515326153271532815329153301533115332153331533415335153361533715338153391534015341153421534315344153451534615347153481534915350153511535215353153541535515356153571535815359153601536115362153631536415365153661536715368153691537015371153721537315374153751537615377153781537915380153811538215383153841538515386153871538815389153901539115392153931539415395153961539715398153991540015401154021540315404154051540615407154081540915410154111541215413154141541515416154171541815419154201542115422154231542415425154261542715428154291543015431154321543315434154351543615437154381543915440154411544215443154441544515446154471544815449154501545115452154531545415455154561545715458154591546015461154621546315464154651546615467154681546915470154711547215473154741547515476154771547815479154801548115482154831548415485154861548715488154891549015491154921549315494154951549615497154981549915500155011550215503155041550515506155071550815509155101551115512155131551415515155161551715518155191552015521155221552315524155251552615527155281552915530155311553215533155341553515536155371553815539155401554115542155431554415545155461554715548155491555015551155521555315554155551555615557155581555915560155611556215563155641556515566155671556815569155701557115572155731557415575155761557715578155791558015581155821558315584155851558615587155881558915590155911559215593155941559515596155971559815599156001560115602156031560415605156061560715608156091561015611156121561315614156151561615617156181561915620156211562215623156241562515626156271562815629156301563115632156331563415635156361563715638156391564015641156421564315644156451564615647156481564915650156511565215653156541565515656156571565815659156601566115662156631566415665156661566715668156691567015671156721567315674156751567615677156781567915680156811568215683156841568515686156871568815689156901569115692156931569415695156961569715698156991570015701157021570315704157051570615707157081570915710157111571215713157141571515716157171571815719157201572115722157231572415725157261572715728157291573015731157321573315734157351573615737157381573915740157411574215743157441574515746157471574815749157501575115752157531575415755157561575715758157591576015761157621576315764157651576615767157681576915770157711577215773157741577515776157771577815779157801578115782157831578415785157861578715788157891579015791157921579315794157951579615797157981579915800158011580215803158041580515806158071580815809158101581115812158131581415815158161581715818158191582015821158221582315824158251582615827158281582915830158311583215833158341583515836158371583815839158401584115842158431584415845158461584715848158491585015851158521585315854158551585615857158581585915860158611586215863158641586515866158671586815869158701587115872158731587415875158761587715878158791588015881158821588315884158851588615887158881588915890158911589215893158941589515896158971589815899159001590115902159031590415905159061590715908159091591015911159121591315914159151591615917159181591915920159211592215923159241592515926159271592815929159301593115932159331593415935159361593715938159391594015941159421594315944159451594615947159481594915950159511595215953159541595515956159571595815959159601596115962159631596415965159661596715968159691597015971159721597315974159751597615977159781597915980159811598215983159841598515986159871598815989159901599115992159931599415995159961599715998159991600016001160021600316004160051600616007160081600916010160111601216013160141601516016160171601816019160201602116022160231602416025160261602716028160291603016031160321603316034160351603616037160381603916040160411604216043160441604516046160471604816049160501605116052160531605416055160561605716058160591606016061160621606316064160651606616067160681606916070160711607216073160741607516076160771607816079160801608116082160831608416085160861608716088160891609016091160921609316094160951609616097160981609916100161011610216103161041610516106161071610816109161101611116112161131611416115161161611716118161191612016121161221612316124161251612616127161281612916130161311613216133161341613516136161371613816139161401614116142161431614416145161461614716148161491615016151161521615316154161551615616157161581615916160161611616216163161641616516166161671616816169161701617116172161731617416175161761617716178161791618016181161821618316184161851618616187161881618916190161911619216193161941619516196161971619816199162001620116202162031620416205162061620716208162091621016211162121621316214162151621616217162181621916220162211622216223162241622516226162271622816229162301623116232162331623416235162361623716238162391624016241162421624316244162451624616247162481624916250162511625216253162541625516256162571625816259162601626116262162631626416265162661626716268162691627016271162721627316274162751627616277162781627916280162811628216283162841628516286162871628816289162901629116292162931629416295162961629716298162991630016301163021630316304163051630616307163081630916310163111631216313163141631516316163171631816319163201632116322163231632416325163261632716328163291633016331163321633316334163351633616337163381633916340163411634216343163441634516346163471634816349163501635116352163531635416355163561635716358163591636016361163621636316364163651636616367163681636916370163711637216373163741637516376163771637816379163801638116382163831638416385163861638716388163891639016391163921639316394163951639616397163981639916400164011640216403164041640516406164071640816409164101641116412164131641416415164161641716418164191642016421164221642316424164251642616427164281642916430164311643216433164341643516436164371643816439164401644116442164431644416445164461644716448164491645016451164521645316454164551645616457164581645916460164611646216463164641646516466164671646816469164701647116472164731647416475164761647716478164791648016481164821648316484164851648616487164881648916490164911649216493164941649516496164971649816499165001650116502165031650416505165061650716508165091651016511165121651316514165151651616517165181651916520165211652216523165241652516526165271652816529165301653116532165331653416535165361653716538165391654016541165421654316544165451654616547165481654916550165511655216553165541655516556165571655816559165601656116562165631656416565165661656716568165691657016571165721657316574165751657616577165781657916580165811658216583165841658516586165871658816589165901659116592165931659416595165961659716598165991660016601166021660316604166051660616607166081660916610166111661216613166141661516616166171661816619166201662116622166231662416625166261662716628166291663016631166321663316634166351663616637166381663916640166411664216643166441664516646166471664816649166501665116652166531665416655166561665716658166591666016661166621666316664166651666616667166681666916670166711667216673166741667516676166771667816679166801668116682166831668416685166861668716688166891669016691166921669316694166951669616697166981669916700167011670216703167041670516706167071670816709167101671116712167131671416715167161671716718167191672016721167221672316724167251672616727167281672916730167311673216733167341673516736167371673816739167401674116742167431674416745167461674716748167491675016751167521675316754167551675616757167581675916760167611676216763167641676516766167671676816769167701677116772167731677416775167761677716778167791678016781167821678316784167851678616787167881678916790167911679216793167941679516796167971679816799168001680116802168031680416805168061680716808168091681016811168121681316814168151681616817168181681916820168211682216823168241682516826168271682816829168301683116832168331683416835168361683716838168391684016841168421684316844168451684616847168481684916850168511685216853168541685516856168571685816859168601686116862168631686416865168661686716868168691687016871168721687316874168751687616877168781687916880168811688216883168841688516886168871688816889168901689116892168931689416895168961689716898168991690016901169021690316904169051690616907169081690916910169111691216913169141691516916169171691816919169201692116922169231692416925169261692716928169291693016931169321693316934169351693616937169381693916940169411694216943169441694516946169471694816949169501695116952169531695416955169561695716958169591696016961169621696316964169651696616967169681696916970169711697216973169741697516976169771697816979169801698116982169831698416985169861698716988169891699016991169921699316994169951699616997169981699917000170011700217003170041700517006170071700817009170101701117012170131701417015170161701717018170191702017021170221702317024170251702617027170281702917030170311703217033170341703517036170371703817039170401704117042170431704417045170461704717048170491705017051170521705317054170551705617057170581705917060170611706217063170641706517066170671706817069170701707117072170731707417075170761707717078170791708017081170821708317084170851708617087170881708917090170911709217093170941709517096170971709817099171001710117102171031710417105171061710717108171091711017111171121711317114171151711617117171181711917120171211712217123171241712517126171271712817129171301713117132171331713417135171361713717138171391714017141171421714317144171451714617147171481714917150171511715217153171541715517156171571715817159171601716117162171631716417165171661716717168171691717017171171721717317174171751717617177171781717917180171811718217183171841718517186171871718817189171901719117192171931719417195171961719717198171991720017201172021720317204172051720617207172081720917210172111721217213172141721517216172171721817219172201722117222172231722417225172261722717228172291723017231172321723317234172351723617237172381723917240172411724217243172441724517246172471724817249172501725117252172531725417255172561725717258172591726017261172621726317264172651726617267172681726917270172711727217273172741727517276172771727817279172801728117282172831728417285172861728717288172891729017291172921729317294172951729617297172981729917300173011730217303173041730517306173071730817309173101731117312173131731417315173161731717318173191732017321173221732317324173251732617327173281732917330173311733217333173341733517336173371733817339173401734117342173431734417345173461734717348173491735017351173521735317354173551735617357173581735917360173611736217363173641736517366173671736817369173701737117372173731737417375173761737717378173791738017381173821738317384173851738617387173881738917390173911739217393173941739517396173971739817399174001740117402174031740417405174061740717408174091741017411174121741317414174151741617417174181741917420174211742217423174241742517426174271742817429174301743117432174331743417435174361743717438174391744017441174421744317444174451744617447174481744917450174511745217453174541745517456174571745817459174601746117462174631746417465174661746717468174691747017471174721747317474174751747617477174781747917480174811748217483174841748517486174871748817489174901749117492174931749417495174961749717498174991750017501175021750317504175051750617507175081750917510175111751217513175141751517516175171751817519175201752117522175231752417525175261752717528175291753017531175321753317534175351753617537175381753917540175411754217543175441754517546175471754817549175501755117552175531755417555175561755717558175591756017561175621756317564175651756617567175681756917570175711757217573175741757517576175771757817579175801758117582175831758417585175861758717588175891759017591175921759317594175951759617597175981759917600176011760217603176041760517606176071760817609176101761117612176131761417615176161761717618176191762017621176221762317624176251762617627176281762917630176311763217633176341763517636176371763817639176401764117642176431764417645176461764717648176491765017651176521765317654176551765617657176581765917660176611766217663176641766517666176671766817669176701767117672176731767417675176761767717678176791768017681176821768317684176851768617687176881768917690176911769217693176941769517696176971769817699177001770117702177031770417705177061770717708177091771017711177121771317714177151771617717177181771917720177211772217723177241772517726177271772817729177301773117732177331773417735177361773717738177391774017741177421774317744177451774617747177481774917750177511775217753177541775517756177571775817759177601776117762177631776417765177661776717768177691777017771177721777317774177751777617777177781777917780177811778217783177841778517786177871778817789177901779117792177931779417795177961779717798177991780017801178021780317804178051780617807178081780917810178111781217813178141781517816178171781817819178201782117822178231782417825178261782717828178291783017831178321783317834178351783617837178381783917840178411784217843178441784517846178471784817849178501785117852178531785417855178561785717858178591786017861178621786317864178651786617867178681786917870178711787217873178741787517876178771787817879178801788117882178831788417885178861788717888178891789017891178921789317894178951789617897178981789917900179011790217903179041790517906179071790817909179101791117912179131791417915179161791717918179191792017921179221792317924179251792617927179281792917930179311793217933179341793517936179371793817939179401794117942179431794417945179461794717948179491795017951179521795317954179551795617957179581795917960179611796217963179641796517966179671796817969179701797117972179731797417975179761797717978179791798017981179821798317984179851798617987179881798917990179911799217993179941799517996179971799817999180001800118002180031800418005180061800718008180091801018011180121801318014180151801618017180181801918020180211802218023180241802518026180271802818029180301803118032180331803418035180361803718038180391804018041180421804318044180451804618047180481804918050180511805218053180541805518056180571805818059180601806118062180631806418065180661806718068180691807018071180721807318074180751807618077180781807918080180811808218083180841808518086180871808818089180901809118092180931809418095180961809718098180991810018101181021810318104181051810618107181081810918110181111811218113181141811518116181171811818119181201812118122181231812418125181261812718128181291813018131181321813318134181351813618137181381813918140181411814218143181441814518146181471814818149181501815118152181531815418155181561815718158181591816018161181621816318164181651816618167181681816918170181711817218173181741817518176181771817818179181801818118182181831818418185181861818718188181891819018191181921819318194181951819618197181981819918200182011820218203182041820518206182071820818209182101821118212182131821418215182161821718218182191822018221182221822318224182251822618227182281822918230182311823218233182341823518236182371823818239182401824118242182431824418245182461824718248182491825018251182521825318254182551825618257182581825918260182611826218263182641826518266182671826818269182701827118272182731827418275182761827718278182791828018281182821828318284182851828618287182881828918290182911829218293182941829518296182971829818299183001830118302183031830418305183061830718308183091831018311183121831318314183151831618317183181831918320183211832218323183241832518326183271832818329183301833118332183331833418335183361833718338183391834018341183421834318344183451834618347183481834918350183511835218353183541835518356183571835818359183601836118362183631836418365183661836718368183691837018371183721837318374183751837618377183781837918380183811838218383183841838518386183871838818389183901839118392183931839418395183961839718398183991840018401184021840318404184051840618407184081840918410184111841218413184141841518416184171841818419184201842118422184231842418425184261842718428184291843018431184321843318434184351843618437184381843918440184411844218443184441844518446184471844818449184501845118452184531845418455184561845718458184591846018461184621846318464184651846618467184681846918470184711847218473184741847518476184771847818479184801848118482184831848418485184861848718488184891849018491184921849318494184951849618497184981849918500185011850218503185041850518506185071850818509185101851118512185131851418515185161851718518185191852018521185221852318524185251852618527185281852918530185311853218533185341853518536185371853818539185401854118542185431854418545185461854718548185491855018551185521855318554185551855618557185581855918560185611856218563185641856518566185671856818569185701857118572185731857418575185761857718578185791858018581185821858318584185851858618587185881858918590185911859218593185941859518596185971859818599186001860118602186031860418605186061860718608186091861018611186121861318614186151861618617186181861918620186211862218623186241862518626186271862818629186301863118632186331863418635186361863718638186391864018641186421864318644186451864618647186481864918650186511865218653186541865518656186571865818659186601866118662186631866418665186661866718668186691867018671186721867318674186751867618677186781867918680186811868218683186841868518686186871868818689186901869118692186931869418695186961869718698186991870018701187021870318704187051870618707187081870918710187111871218713187141871518716187171871818719187201872118722187231872418725187261872718728187291873018731187321873318734187351873618737187381873918740187411874218743187441874518746187471874818749187501875118752187531875418755187561875718758187591876018761187621876318764187651876618767187681876918770187711877218773187741877518776187771877818779187801878118782187831878418785187861878718788187891879018791187921879318794187951879618797187981879918800188011880218803188041880518806188071880818809188101881118812188131881418815188161881718818188191882018821188221882318824188251882618827188281882918830188311883218833188341883518836188371883818839188401884118842188431884418845188461884718848188491885018851188521885318854188551885618857188581885918860188611886218863188641886518866188671886818869188701887118872188731887418875188761887718878188791888018881188821888318884188851888618887188881888918890188911889218893188941889518896188971889818899189001890118902189031890418905189061890718908189091891018911189121891318914189151891618917189181891918920189211892218923189241892518926189271892818929189301893118932189331893418935189361893718938189391894018941189421894318944189451894618947189481894918950189511895218953189541895518956189571895818959189601896118962189631896418965189661896718968189691897018971189721897318974189751897618977189781897918980189811898218983189841898518986189871898818989189901899118992189931899418995189961899718998189991900019001190021900319004190051900619007190081900919010190111901219013190141901519016190171901819019190201902119022190231902419025190261902719028190291903019031190321903319034190351903619037190381903919040190411904219043190441904519046190471904819049190501905119052190531905419055190561905719058190591906019061190621906319064190651906619067190681906919070190711907219073190741907519076190771907819079190801908119082190831908419085190861908719088190891909019091190921909319094190951909619097190981909919100191011910219103191041910519106191071910819109191101911119112191131911419115191161911719118191191912019121191221912319124191251912619127191281912919130191311913219133191341913519136191371913819139191401914119142191431914419145191461914719148191491915019151191521915319154191551915619157191581915919160191611916219163191641916519166191671916819169191701917119172191731917419175191761917719178191791918019181191821918319184191851918619187191881918919190191911919219193191941919519196191971919819199192001920119202192031920419205192061920719208192091921019211192121921319214192151921619217192181921919220192211922219223192241922519226192271922819229192301923119232192331923419235192361923719238192391924019241192421924319244192451924619247192481924919250192511925219253192541925519256192571925819259192601926119262192631926419265192661926719268192691927019271192721927319274192751927619277192781927919280192811928219283192841928519286192871928819289192901929119292192931929419295192961929719298192991930019301193021930319304193051930619307193081930919310193111931219313193141931519316193171931819319193201932119322193231932419325193261932719328193291933019331193321933319334193351933619337193381933919340193411934219343193441934519346193471934819349193501935119352193531935419355193561935719358193591936019361193621936319364193651936619367193681936919370193711937219373193741937519376193771937819379193801938119382193831938419385193861938719388193891939019391193921939319394193951939619397193981939919400194011940219403194041940519406194071940819409194101941119412194131941419415194161941719418194191942019421194221942319424194251942619427194281942919430194311943219433194341943519436194371943819439194401944119442194431944419445194461944719448194491945019451194521945319454194551945619457194581945919460194611946219463194641946519466194671946819469194701947119472194731947419475194761947719478194791948019481194821948319484194851948619487194881948919490194911949219493194941949519496194971949819499195001950119502195031950419505195061950719508195091951019511195121951319514195151951619517195181951919520195211952219523195241952519526195271952819529195301953119532195331953419535195361953719538195391954019541195421954319544195451954619547195481954919550195511955219553195541955519556195571955819559195601956119562195631956419565195661956719568195691957019571195721957319574195751957619577195781957919580195811958219583195841958519586195871958819589195901959119592195931959419595195961959719598195991960019601196021960319604196051960619607196081960919610196111961219613196141961519616196171961819619196201962119622196231962419625196261962719628196291963019631196321963319634196351963619637196381963919640196411964219643196441964519646196471964819649196501965119652196531965419655196561965719658196591966019661196621966319664196651966619667196681966919670196711967219673196741967519676196771967819679196801968119682196831968419685196861968719688196891969019691196921969319694196951969619697196981969919700197011970219703197041970519706197071970819709197101971119712197131971419715197161971719718197191972019721197221972319724197251972619727197281972919730197311973219733197341973519736197371973819739197401974119742197431974419745197461974719748197491975019751197521975319754197551975619757197581975919760197611976219763197641976519766197671976819769197701977119772197731977419775197761977719778197791978019781197821978319784197851978619787197881978919790197911979219793197941979519796197971979819799198001980119802198031980419805198061980719808198091981019811198121981319814198151981619817198181981919820198211982219823198241982519826198271982819829198301983119832198331983419835198361983719838198391984019841198421984319844198451984619847198481984919850198511985219853198541985519856198571985819859198601986119862198631986419865198661986719868198691987019871198721987319874198751987619877198781987919880198811988219883198841988519886198871988819889198901989119892198931989419895198961989719898198991990019901199021990319904199051990619907199081990919910199111991219913199141991519916199171991819919199201992119922199231992419925199261992719928199291993019931199321993319934199351993619937199381993919940199411994219943199441994519946199471994819949199501995119952199531995419955199561995719958199591996019961199621996319964199651996619967199681996919970199711997219973199741997519976199771997819979199801998119982199831998419985199861998719988199891999019991199921999319994199951999619997199981999920000200012000220003200042000520006200072000820009200102001120012200132001420015200162001720018200192002020021200222002320024200252002620027200282002920030200312003220033200342003520036200372003820039200402004120042200432004420045200462004720048200492005020051200522005320054200552005620057200582005920060200612006220063200642006520066200672006820069200702007120072200732007420075200762007720078200792008020081200822008320084200852008620087200882008920090200912009220093200942009520096200972009820099201002010120102201032010420105201062010720108201092011020111201122011320114201152011620117201182011920120201212012220123201242012520126201272012820129201302013120132201332013420135201362013720138201392014020141201422014320144201452014620147201482014920150201512015220153201542015520156201572015820159201602016120162201632016420165201662016720168201692017020171201722017320174201752017620177201782017920180201812018220183201842018520186201872018820189201902019120192201932019420195201962019720198201992020020201202022020320204202052020620207202082020920210202112021220213202142021520216202172021820219202202022120222202232022420225202262022720228202292023020231202322023320234202352023620237202382023920240202412024220243202442024520246202472024820249202502025120252202532025420255202562025720258202592026020261202622026320264202652026620267202682026920270202712027220273202742027520276202772027820279202802028120282202832028420285202862028720288202892029020291202922029320294202952029620297202982029920300203012030220303203042030520306203072030820309203102031120312203132031420315203162031720318203192032020321203222032320324203252032620327203282032920330203312033220333203342033520336203372033820339203402034120342203432034420345203462034720348203492035020351203522035320354203552035620357203582035920360203612036220363203642036520366203672036820369203702037120372203732037420375203762037720378203792038020381203822038320384203852038620387203882038920390203912039220393203942039520396203972039820399204002040120402204032040420405204062040720408204092041020411204122041320414204152041620417204182041920420204212042220423204242042520426204272042820429204302043120432204332043420435204362043720438204392044020441204422044320444204452044620447204482044920450204512045220453204542045520456204572045820459204602046120462204632046420465204662046720468204692047020471204722047320474204752047620477204782047920480204812048220483204842048520486204872048820489204902049120492204932049420495204962049720498204992050020501205022050320504205052050620507205082050920510205112051220513205142051520516205172051820519205202052120522205232052420525205262052720528205292053020531205322053320534205352053620537205382053920540205412054220543205442054520546205472054820549205502055120552205532055420555205562055720558205592056020561205622056320564205652056620567205682056920570205712057220573205742057520576205772057820579205802058120582205832058420585205862058720588205892059020591205922059320594205952059620597205982059920600206012060220603206042060520606206072060820609206102061120612206132061420615206162061720618206192062020621206222062320624206252062620627206282062920630206312063220633206342063520636206372063820639206402064120642206432064420645206462064720648206492065020651206522065320654206552065620657206582065920660206612066220663206642066520666206672066820669206702067120672206732067420675206762067720678206792068020681206822068320684206852068620687206882068920690206912069220693206942069520696206972069820699207002070120702207032070420705207062070720708207092071020711207122071320714207152071620717207182071920720207212072220723207242072520726207272072820729207302073120732207332073420735207362073720738207392074020741207422074320744207452074620747207482074920750207512075220753207542075520756207572075820759207602076120762207632076420765207662076720768207692077020771207722077320774207752077620777207782077920780207812078220783207842078520786207872078820789207902079120792207932079420795207962079720798207992080020801208022080320804208052080620807208082080920810208112081220813208142081520816208172081820819208202082120822208232082420825208262082720828208292083020831208322083320834208352083620837208382083920840208412084220843208442084520846208472084820849208502085120852208532085420855208562085720858208592086020861208622086320864208652086620867208682086920870208712087220873208742087520876208772087820879208802088120882208832088420885208862088720888208892089020891208922089320894208952089620897208982089920900209012090220903209042090520906209072090820909209102091120912209132091420915209162091720918209192092020921209222092320924209252092620927209282092920930209312093220933209342093520936209372093820939209402094120942209432094420945209462094720948209492095020951209522095320954209552095620957209582095920960209612096220963209642096520966209672096820969209702097120972209732097420975209762097720978209792098020981209822098320984209852098620987209882098920990209912099220993209942099520996209972099820999210002100121002210032100421005210062100721008210092101021011210122101321014210152101621017210182101921020210212102221023210242102521026210272102821029210302103121032210332103421035210362103721038210392104021041210422104321044210452104621047210482104921050210512105221053210542105521056210572105821059210602106121062210632106421065210662106721068210692107021071210722107321074210752107621077210782107921080210812108221083210842108521086210872108821089210902109121092210932109421095210962109721098210992110021101211022110321104211052110621107211082110921110211112111221113211142111521116211172111821119211202112121122211232112421125211262112721128211292113021131211322113321134211352113621137211382113921140211412114221143211442114521146211472114821149211502115121152211532115421155211562115721158211592116021161211622116321164211652116621167211682116921170211712117221173211742117521176211772117821179211802118121182211832118421185211862118721188211892119021191211922119321194211952119621197211982119921200212012120221203212042120521206212072120821209212102121121212212132121421215212162121721218212192122021221212222122321224212252122621227212282122921230212312123221233212342123521236212372123821239212402124121242212432124421245212462124721248212492125021251212522125321254212552125621257212582125921260212612126221263212642126521266212672126821269212702127121272212732127421275212762127721278212792128021281212822128321284212852128621287212882128921290212912129221293212942129521296212972129821299213002130121302213032130421305213062130721308213092131021311213122131321314213152131621317213182131921320213212132221323213242132521326213272132821329213302133121332213332133421335213362133721338213392134021341213422134321344213452134621347213482134921350213512135221353213542135521356213572135821359213602136121362213632136421365213662136721368213692137021371213722137321374213752137621377213782137921380213812138221383213842138521386213872138821389213902139121392213932139421395213962139721398213992140021401214022140321404214052140621407214082140921410214112141221413214142141521416214172141821419214202142121422214232142421425214262142721428214292143021431214322143321434214352143621437214382143921440214412144221443214442144521446214472144821449214502145121452214532145421455214562145721458214592146021461214622146321464214652146621467214682146921470214712147221473214742147521476214772147821479214802148121482214832148421485214862148721488214892149021491214922149321494214952149621497214982149921500215012150221503215042150521506215072150821509215102151121512215132151421515215162151721518215192152021521215222152321524215252152621527215282152921530215312153221533215342153521536215372153821539215402154121542215432154421545215462154721548215492155021551215522155321554215552155621557215582155921560215612156221563215642156521566215672156821569215702157121572215732157421575215762157721578215792158021581215822158321584215852158621587215882158921590215912159221593215942159521596215972159821599216002160121602216032160421605216062160721608216092161021611216122161321614216152161621617216182161921620216212162221623216242162521626216272162821629216302163121632216332163421635216362163721638216392164021641216422164321644216452164621647216482164921650216512165221653216542165521656216572165821659216602166121662216632166421665216662166721668216692167021671216722167321674216752167621677216782167921680216812168221683216842168521686216872168821689216902169121692216932169421695216962169721698216992170021701217022170321704217052170621707217082170921710217112171221713217142171521716217172171821719217202172121722217232172421725217262172721728217292173021731217322173321734217352173621737217382173921740217412174221743217442174521746217472174821749217502175121752217532175421755217562175721758217592176021761217622176321764217652176621767217682176921770217712177221773217742177521776217772177821779217802178121782217832178421785217862178721788217892179021791217922179321794217952179621797217982179921800218012180221803218042180521806218072180821809218102181121812218132181421815218162181721818218192182021821218222182321824218252182621827218282182921830218312183221833218342183521836218372183821839218402184121842218432184421845218462184721848218492185021851218522185321854218552185621857218582185921860218612186221863218642186521866218672186821869218702187121872218732187421875218762187721878218792188021881218822188321884218852188621887218882188921890218912189221893218942189521896218972189821899219002190121902219032190421905219062190721908219092191021911219122191321914219152191621917219182191921920219212192221923219242192521926219272192821929219302193121932219332193421935219362193721938219392194021941219422194321944219452194621947219482194921950219512195221953219542195521956219572195821959219602196121962219632196421965219662196721968219692197021971219722197321974219752197621977219782197921980219812198221983219842198521986219872198821989219902199121992219932199421995219962199721998219992200022001220022200322004220052200622007220082200922010220112201222013220142201522016220172201822019220202202122022220232202422025220262202722028220292203022031220322203322034220352203622037220382203922040220412204222043220442204522046220472204822049220502205122052220532205422055220562205722058220592206022061220622206322064220652206622067220682206922070220712207222073220742207522076220772207822079220802208122082220832208422085220862208722088220892209022091220922209322094220952209622097220982209922100221012210222103221042210522106221072210822109221102211122112221132211422115221162211722118221192212022121221222212322124221252212622127221282212922130221312213222133221342213522136221372213822139221402214122142221432214422145221462214722148221492215022151221522215322154221552215622157221582215922160221612216222163221642216522166221672216822169221702217122172221732217422175221762217722178221792218022181221822218322184221852218622187221882218922190221912219222193221942219522196221972219822199222002220122202222032220422205222062220722208222092221022211222122221322214222152221622217222182221922220222212222222223222242222522226222272222822229222302223122232222332223422235222362223722238222392224022241222422224322244222452224622247222482224922250222512225222253222542225522256222572225822259222602226122262222632226422265222662226722268222692227022271222722227322274222752227622277222782227922280222812228222283222842228522286222872228822289222902229122292222932229422295222962229722298222992230022301223022230322304223052230622307223082230922310223112231222313223142231522316223172231822319223202232122322223232232422325223262232722328223292233022331223322233322334223352233622337223382233922340223412234222343223442234522346223472234822349223502235122352223532235422355223562235722358223592236022361223622236322364223652236622367223682236922370223712237222373223742237522376223772237822379223802238122382223832238422385223862238722388223892239022391223922239322394223952239622397223982239922400224012240222403224042240522406224072240822409224102241122412224132241422415224162241722418224192242022421224222242322424224252242622427224282242922430224312243222433224342243522436224372243822439224402244122442224432244422445224462244722448224492245022451224522245322454224552245622457224582245922460224612246222463224642246522466224672246822469224702247122472224732247422475224762247722478224792248022481224822248322484224852248622487224882248922490224912249222493224942249522496224972249822499225002250122502225032250422505225062250722508225092251022511225122251322514225152251622517225182251922520225212252222523225242252522526225272252822529225302253122532225332253422535225362253722538225392254022541225422254322544225452254622547225482254922550225512255222553225542255522556225572255822559225602256122562225632256422565225662256722568225692257022571225722257322574225752257622577225782257922580225812258222583225842258522586225872258822589225902259122592225932259422595225962259722598225992260022601226022260322604226052260622607226082260922610226112261222613226142261522616226172261822619226202262122622226232262422625226262262722628226292263022631226322263322634226352263622637226382263922640226412264222643226442264522646226472264822649226502265122652226532265422655226562265722658226592266022661226622266322664226652266622667226682266922670226712267222673226742267522676226772267822679226802268122682226832268422685226862268722688226892269022691226922269322694226952269622697226982269922700227012270222703227042270522706227072270822709227102271122712227132271422715227162271722718227192272022721227222272322724227252272622727227282272922730227312273222733227342273522736227372273822739227402274122742227432274422745227462274722748227492275022751227522275322754227552275622757227582275922760227612276222763227642276522766227672276822769227702277122772227732277422775227762277722778227792278022781227822278322784227852278622787227882278922790227912279222793227942279522796227972279822799228002280122802228032280422805228062280722808228092281022811228122281322814228152281622817228182281922820228212282222823228242282522826228272282822829228302283122832228332283422835228362283722838228392284022841228422284322844228452284622847228482284922850228512285222853228542285522856228572285822859228602286122862228632286422865228662286722868228692287022871228722287322874228752287622877228782287922880228812288222883228842288522886228872288822889228902289122892228932289422895228962289722898228992290022901229022290322904229052290622907229082290922910229112291222913229142291522916229172291822919229202292122922229232292422925229262292722928229292293022931229322293322934229352293622937229382293922940229412294222943229442294522946229472294822949229502295122952229532295422955229562295722958229592296022961229622296322964229652296622967229682296922970229712297222973229742297522976229772297822979229802298122982229832298422985229862298722988229892299022991229922299322994229952299622997229982299923000230012300223003230042300523006230072300823009230102301123012230132301423015230162301723018230192302023021230222302323024230252302623027230282302923030230312303223033230342303523036230372303823039230402304123042230432304423045230462304723048230492305023051230522305323054230552305623057230582305923060230612306223063230642306523066230672306823069230702307123072230732307423075230762307723078230792308023081230822308323084230852308623087230882308923090230912309223093230942309523096230972309823099231002310123102231032310423105231062310723108231092311023111231122311323114231152311623117231182311923120231212312223123231242312523126231272312823129231302313123132231332313423135231362313723138231392314023141231422314323144231452314623147231482314923150231512315223153231542315523156231572315823159231602316123162231632316423165231662316723168231692317023171231722317323174231752317623177231782317923180231812318223183231842318523186231872318823189231902319123192231932319423195231962319723198231992320023201232022320323204232052320623207232082320923210232112321223213232142321523216232172321823219232202322123222232232322423225232262322723228232292323023231232322323323234232352323623237232382323923240232412324223243232442324523246232472324823249232502325123252232532325423255232562325723258232592326023261232622326323264232652326623267232682326923270232712327223273232742327523276232772327823279232802328123282232832328423285232862328723288232892329023291232922329323294232952329623297232982329923300233012330223303233042330523306233072330823309233102331123312233132331423315233162331723318233192332023321233222332323324233252332623327233282332923330233312333223333233342333523336233372333823339233402334123342233432334423345233462334723348233492335023351233522335323354233552335623357233582335923360233612336223363233642336523366233672336823369233702337123372233732337423375233762337723378233792338023381233822338323384233852338623387233882338923390233912339223393233942339523396233972339823399234002340123402234032340423405234062340723408234092341023411234122341323414234152341623417234182341923420234212342223423234242342523426234272342823429234302343123432234332343423435234362343723438
  1. #! /bin/sh
  2. # Guess values for system-dependent variables and create Makefiles.
  3. # Generated by GNU Autoconf 2.72 for neon 0.36.0.
  4. #
  5. #
  6. # Copyright (C) 1992-1996, 1998-2017, 2020-2023 Free Software Foundation,
  7. # Inc.
  8. #
  9. #
  10. # This configure script is free software; the Free Software Foundation
  11. # gives unlimited permission to copy, distribute and modify it.
  12. #
  13. # Copyright 2000-2022 Joe Orton and others
  14. # This configure script may be copied, distributed and modified under the
  15. # terms of the GNU Library General Public license; see src/COPYING.LIB for
  16. # more details.
  17. ## -------------------- ##
  18. ## M4sh Initialization. ##
  19. ## -------------------- ##
  20. # Be more Bourne compatible
  21. DUALCASE=1; export DUALCASE # for MKS sh
  22. if test ${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1
  23. then :
  24. emulate sh
  25. NULLCMD=:
  26. # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
  27. # is contrary to our usage. Disable this feature.
  28. alias -g '${1+"$@"}'='"$@"'
  29. setopt NO_GLOB_SUBST
  30. else case e in #(
  31. e) case `(set -o) 2>/dev/null` in #(
  32. *posix*) :
  33. set -o posix ;; #(
  34. *) :
  35. ;;
  36. esac ;;
  37. esac
  38. fi
  39. # Reset variables that may have inherited troublesome values from
  40. # the environment.
  41. # IFS needs to be set, to space, tab, and newline, in precisely that order.
  42. # (If _AS_PATH_WALK were called with IFS unset, it would have the
  43. # side effect of setting IFS to empty, thus disabling word splitting.)
  44. # Quoting is to prevent editors from complaining about space-tab.
  45. as_nl='
  46. '
  47. export as_nl
  48. IFS=" "" $as_nl"
  49. PS1='$ '
  50. PS2='> '
  51. PS4='+ '
  52. # Ensure predictable behavior from utilities with locale-dependent output.
  53. LC_ALL=C
  54. export LC_ALL
  55. LANGUAGE=C
  56. export LANGUAGE
  57. # We cannot yet rely on "unset" to work, but we need these variables
  58. # to be unset--not just set to an empty or harmless value--now, to
  59. # avoid bugs in old shells (e.g. pre-3.0 UWIN ksh). This construct
  60. # also avoids known problems related to "unset" and subshell syntax
  61. # in other old shells (e.g. bash 2.01 and pdksh 5.2.14).
  62. for as_var in BASH_ENV ENV MAIL MAILPATH CDPATH
  63. do eval test \${$as_var+y} \
  64. && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
  65. done
  66. # Ensure that fds 0, 1, and 2 are open.
  67. if (exec 3>&0) 2>/dev/null; then :; else exec 0</dev/null; fi
  68. if (exec 3>&1) 2>/dev/null; then :; else exec 1>/dev/null; fi
  69. if (exec 3>&2) ; then :; else exec 2>/dev/null; fi
  70. # The user is always right.
  71. if ${PATH_SEPARATOR+false} :; then
  72. PATH_SEPARATOR=:
  73. (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
  74. (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
  75. PATH_SEPARATOR=';'
  76. }
  77. fi
  78. # Find who we are. Look in the path if we contain no directory separator.
  79. as_myself=
  80. case $0 in #((
  81. *[\\/]* ) as_myself=$0 ;;
  82. *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  83. for as_dir in $PATH
  84. do
  85. IFS=$as_save_IFS
  86. case $as_dir in #(((
  87. '') as_dir=./ ;;
  88. */) ;;
  89. *) as_dir=$as_dir/ ;;
  90. esac
  91. test -r "$as_dir$0" && as_myself=$as_dir$0 && break
  92. done
  93. IFS=$as_save_IFS
  94. ;;
  95. esac
  96. # We did not find ourselves, most probably we were run as 'sh COMMAND'
  97. # in which case we are not to be found in the path.
  98. if test "x$as_myself" = x; then
  99. as_myself=$0
  100. fi
  101. if test ! -f "$as_myself"; then
  102. printf "%s\n" "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
  103. exit 1
  104. fi
  105. # Use a proper internal environment variable to ensure we don't fall
  106. # into an infinite loop, continuously re-executing ourselves.
  107. if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
  108. _as_can_reexec=no; export _as_can_reexec;
  109. # We cannot yet assume a decent shell, so we have to provide a
  110. # neutralization value for shells without unset; and this also
  111. # works around shells that cannot unset nonexistent variables.
  112. # Preserve -v and -x to the replacement shell.
  113. BASH_ENV=/dev/null
  114. ENV=/dev/null
  115. (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
  116. case $- in # ((((
  117. *v*x* | *x*v* ) as_opts=-vx ;;
  118. *v* ) as_opts=-v ;;
  119. *x* ) as_opts=-x ;;
  120. * ) as_opts= ;;
  121. esac
  122. exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
  123. # Admittedly, this is quite paranoid, since all the known shells bail
  124. # out after a failed 'exec'.
  125. printf "%s\n" "$0: could not re-execute with $CONFIG_SHELL" >&2
  126. exit 255
  127. fi
  128. # We don't want this to propagate to other subprocesses.
  129. { _as_can_reexec=; unset _as_can_reexec;}
  130. if test "x$CONFIG_SHELL" = x; then
  131. as_bourne_compatible="if test \${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1
  132. then :
  133. emulate sh
  134. NULLCMD=:
  135. # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
  136. # is contrary to our usage. Disable this feature.
  137. alias -g '\${1+\"\$@\"}'='\"\$@\"'
  138. setopt NO_GLOB_SUBST
  139. else case e in #(
  140. e) case \`(set -o) 2>/dev/null\` in #(
  141. *posix*) :
  142. set -o posix ;; #(
  143. *) :
  144. ;;
  145. esac ;;
  146. esac
  147. fi
  148. "
  149. as_required="as_fn_return () { (exit \$1); }
  150. as_fn_success () { as_fn_return 0; }
  151. as_fn_failure () { as_fn_return 1; }
  152. as_fn_ret_success () { return 0; }
  153. as_fn_ret_failure () { return 1; }
  154. exitcode=0
  155. as_fn_success || { exitcode=1; echo as_fn_success failed.; }
  156. as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
  157. as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
  158. as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
  159. if ( set x; as_fn_ret_success y && test x = \"\$1\" )
  160. then :
  161. else case e in #(
  162. e) exitcode=1; echo positional parameters were not saved. ;;
  163. esac
  164. fi
  165. test x\$exitcode = x0 || exit 1
  166. blah=\$(echo \$(echo blah))
  167. test x\"\$blah\" = xblah || exit 1
  168. test -x / || exit 1"
  169. as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
  170. as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
  171. eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
  172. test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
  173. test \$(( 1 + 1 )) = 2 || exit 1
  174. test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
  175. ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
  176. ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
  177. ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
  178. PATH=/empty FPATH=/empty; export PATH FPATH
  179. test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
  180. || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1"
  181. if (eval "$as_required") 2>/dev/null
  182. then :
  183. as_have_required=yes
  184. else case e in #(
  185. e) as_have_required=no ;;
  186. esac
  187. fi
  188. if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null
  189. then :
  190. else case e in #(
  191. e) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  192. as_found=false
  193. for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
  194. do
  195. IFS=$as_save_IFS
  196. case $as_dir in #(((
  197. '') as_dir=./ ;;
  198. */) ;;
  199. *) as_dir=$as_dir/ ;;
  200. esac
  201. as_found=:
  202. case $as_dir in #(
  203. /*)
  204. for as_base in sh bash ksh sh5; do
  205. # Try only shells that exist, to save several forks.
  206. as_shell=$as_dir$as_base
  207. if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
  208. as_run=a "$as_shell" -c "$as_bourne_compatible""$as_required" 2>/dev/null
  209. then :
  210. CONFIG_SHELL=$as_shell as_have_required=yes
  211. if as_run=a "$as_shell" -c "$as_bourne_compatible""$as_suggested" 2>/dev/null
  212. then :
  213. break 2
  214. fi
  215. fi
  216. done;;
  217. esac
  218. as_found=false
  219. done
  220. IFS=$as_save_IFS
  221. if $as_found
  222. then :
  223. else case e in #(
  224. e) if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
  225. as_run=a "$SHELL" -c "$as_bourne_compatible""$as_required" 2>/dev/null
  226. then :
  227. CONFIG_SHELL=$SHELL as_have_required=yes
  228. fi ;;
  229. esac
  230. fi
  231. if test "x$CONFIG_SHELL" != x
  232. then :
  233. export CONFIG_SHELL
  234. # We cannot yet assume a decent shell, so we have to provide a
  235. # neutralization value for shells without unset; and this also
  236. # works around shells that cannot unset nonexistent variables.
  237. # Preserve -v and -x to the replacement shell.
  238. BASH_ENV=/dev/null
  239. ENV=/dev/null
  240. (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
  241. case $- in # ((((
  242. *v*x* | *x*v* ) as_opts=-vx ;;
  243. *v* ) as_opts=-v ;;
  244. *x* ) as_opts=-x ;;
  245. * ) as_opts= ;;
  246. esac
  247. exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
  248. # Admittedly, this is quite paranoid, since all the known shells bail
  249. # out after a failed 'exec'.
  250. printf "%s\n" "$0: could not re-execute with $CONFIG_SHELL" >&2
  251. exit 255
  252. fi
  253. if test x$as_have_required = xno
  254. then :
  255. printf "%s\n" "$0: This script requires a shell more modern than all"
  256. printf "%s\n" "$0: the shells that I found on your system."
  257. if test ${ZSH_VERSION+y} ; then
  258. printf "%s\n" "$0: In particular, zsh $ZSH_VERSION has bugs and should"
  259. printf "%s\n" "$0: be upgraded to zsh 4.3.4 or later."
  260. else
  261. printf "%s\n" "$0: Please tell [email protected] about your system,
  262. $0: including any error possibly output before this
  263. $0: message. Then install a modern shell, or manually run
  264. $0: the script under such a shell if you do have one."
  265. fi
  266. exit 1
  267. fi ;;
  268. esac
  269. fi
  270. fi
  271. SHELL=${CONFIG_SHELL-/bin/sh}
  272. export SHELL
  273. # Unset more variables known to interfere with behavior of common tools.
  274. CLICOLOR_FORCE= GREP_OPTIONS=
  275. unset CLICOLOR_FORCE GREP_OPTIONS
  276. ## --------------------- ##
  277. ## M4sh Shell Functions. ##
  278. ## --------------------- ##
  279. # as_fn_unset VAR
  280. # ---------------
  281. # Portably unset VAR.
  282. as_fn_unset ()
  283. {
  284. { eval $1=; unset $1;}
  285. }
  286. as_unset=as_fn_unset
  287. # as_fn_set_status STATUS
  288. # -----------------------
  289. # Set $? to STATUS, without forking.
  290. as_fn_set_status ()
  291. {
  292. return $1
  293. } # as_fn_set_status
  294. # as_fn_exit STATUS
  295. # -----------------
  296. # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
  297. as_fn_exit ()
  298. {
  299. set +e
  300. as_fn_set_status $1
  301. exit $1
  302. } # as_fn_exit
  303. # as_fn_mkdir_p
  304. # -------------
  305. # Create "$as_dir" as a directory, including parents if necessary.
  306. as_fn_mkdir_p ()
  307. {
  308. case $as_dir in #(
  309. -*) as_dir=./$as_dir;;
  310. esac
  311. test -d "$as_dir" || eval $as_mkdir_p || {
  312. as_dirs=
  313. while :; do
  314. case $as_dir in #(
  315. *\'*) as_qdir=`printf "%s\n" "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
  316. *) as_qdir=$as_dir;;
  317. esac
  318. as_dirs="'$as_qdir' $as_dirs"
  319. as_dir=`$as_dirname -- "$as_dir" ||
  320. $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  321. X"$as_dir" : 'X\(//\)[^/]' \| \
  322. X"$as_dir" : 'X\(//\)$' \| \
  323. X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
  324. printf "%s\n" X"$as_dir" |
  325. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  326. s//\1/
  327. q
  328. }
  329. /^X\(\/\/\)[^/].*/{
  330. s//\1/
  331. q
  332. }
  333. /^X\(\/\/\)$/{
  334. s//\1/
  335. q
  336. }
  337. /^X\(\/\).*/{
  338. s//\1/
  339. q
  340. }
  341. s/.*/./; q'`
  342. test -d "$as_dir" && break
  343. done
  344. test -z "$as_dirs" || eval "mkdir $as_dirs"
  345. } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
  346. } # as_fn_mkdir_p
  347. # as_fn_executable_p FILE
  348. # -----------------------
  349. # Test if FILE is an executable regular file.
  350. as_fn_executable_p ()
  351. {
  352. test -f "$1" && test -x "$1"
  353. } # as_fn_executable_p
  354. # as_fn_append VAR VALUE
  355. # ----------------------
  356. # Append the text in VALUE to the end of the definition contained in VAR. Take
  357. # advantage of any shell optimizations that allow amortized linear growth over
  358. # repeated appends, instead of the typical quadratic growth present in naive
  359. # implementations.
  360. if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null
  361. then :
  362. eval 'as_fn_append ()
  363. {
  364. eval $1+=\$2
  365. }'
  366. else case e in #(
  367. e) as_fn_append ()
  368. {
  369. eval $1=\$$1\$2
  370. } ;;
  371. esac
  372. fi # as_fn_append
  373. # as_fn_arith ARG...
  374. # ------------------
  375. # Perform arithmetic evaluation on the ARGs, and store the result in the
  376. # global $as_val. Take advantage of shells that can avoid forks. The arguments
  377. # must be portable across $(()) and expr.
  378. if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null
  379. then :
  380. eval 'as_fn_arith ()
  381. {
  382. as_val=$(( $* ))
  383. }'
  384. else case e in #(
  385. e) as_fn_arith ()
  386. {
  387. as_val=`expr "$@" || test $? -eq 1`
  388. } ;;
  389. esac
  390. fi # as_fn_arith
  391. # as_fn_error STATUS ERROR [LINENO LOG_FD]
  392. # ----------------------------------------
  393. # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
  394. # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
  395. # script with STATUS, using 1 if that was 0.
  396. as_fn_error ()
  397. {
  398. as_status=$1; test $as_status -eq 0 && as_status=1
  399. if test "$4"; then
  400. as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  401. printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
  402. fi
  403. printf "%s\n" "$as_me: error: $2" >&2
  404. as_fn_exit $as_status
  405. } # as_fn_error
  406. if expr a : '\(a\)' >/dev/null 2>&1 &&
  407. test "X`expr 00001 : '.*\(...\)'`" = X001; then
  408. as_expr=expr
  409. else
  410. as_expr=false
  411. fi
  412. if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
  413. as_basename=basename
  414. else
  415. as_basename=false
  416. fi
  417. if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
  418. as_dirname=dirname
  419. else
  420. as_dirname=false
  421. fi
  422. as_me=`$as_basename -- "$0" ||
  423. $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
  424. X"$0" : 'X\(//\)$' \| \
  425. X"$0" : 'X\(/\)' \| . 2>/dev/null ||
  426. printf "%s\n" X/"$0" |
  427. sed '/^.*\/\([^/][^/]*\)\/*$/{
  428. s//\1/
  429. q
  430. }
  431. /^X\/\(\/\/\)$/{
  432. s//\1/
  433. q
  434. }
  435. /^X\/\(\/\).*/{
  436. s//\1/
  437. q
  438. }
  439. s/.*/./; q'`
  440. # Avoid depending upon Character Ranges.
  441. as_cr_letters='abcdefghijklmnopqrstuvwxyz'
  442. as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
  443. as_cr_Letters=$as_cr_letters$as_cr_LETTERS
  444. as_cr_digits='0123456789'
  445. as_cr_alnum=$as_cr_Letters$as_cr_digits
  446. as_lineno_1=$LINENO as_lineno_1a=$LINENO
  447. as_lineno_2=$LINENO as_lineno_2a=$LINENO
  448. eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
  449. test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
  450. # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
  451. sed -n '
  452. p
  453. /[$]LINENO/=
  454. ' <$as_myself |
  455. sed '
  456. t clear
  457. :clear
  458. s/[$]LINENO.*/&-/
  459. t lineno
  460. b
  461. :lineno
  462. N
  463. :loop
  464. s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
  465. t loop
  466. s/-\n.*//
  467. ' >$as_me.lineno &&
  468. chmod +x "$as_me.lineno" ||
  469. { printf "%s\n" "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
  470. # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
  471. # already done that, so ensure we don't try to do so again and fall
  472. # in an infinite loop. This has already happened in practice.
  473. _as_can_reexec=no; export _as_can_reexec
  474. # Don't try to exec as it changes $[0], causing all sort of problems
  475. # (the dirname of $[0] is not the place where we might find the
  476. # original and so on. Autoconf is especially sensitive to this).
  477. . "./$as_me.lineno"
  478. # Exit status is that of the last command.
  479. exit
  480. }
  481. # Determine whether it's possible to make 'echo' print without a newline.
  482. # These variables are no longer used directly by Autoconf, but are AC_SUBSTed
  483. # for compatibility with existing Makefiles.
  484. ECHO_C= ECHO_N= ECHO_T=
  485. case `echo -n x` in #(((((
  486. -n*)
  487. case `echo 'xy\c'` in
  488. *c*) ECHO_T=' ';; # ECHO_T is single tab character.
  489. xy) ECHO_C='\c';;
  490. *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
  491. ECHO_T=' ';;
  492. esac;;
  493. *)
  494. ECHO_N='-n';;
  495. esac
  496. # For backward compatibility with old third-party macros, we provide
  497. # the shell variables $as_echo and $as_echo_n. New code should use
  498. # AS_ECHO(["message"]) and AS_ECHO_N(["message"]), respectively.
  499. as_echo='printf %s\n'
  500. as_echo_n='printf %s'
  501. rm -f conf$$ conf$$.exe conf$$.file
  502. if test -d conf$$.dir; then
  503. rm -f conf$$.dir/conf$$.file
  504. else
  505. rm -f conf$$.dir
  506. mkdir conf$$.dir 2>/dev/null
  507. fi
  508. if (echo >conf$$.file) 2>/dev/null; then
  509. if ln -s conf$$.file conf$$ 2>/dev/null; then
  510. as_ln_s='ln -s'
  511. # ... but there are two gotchas:
  512. # 1) On MSYS, both 'ln -s file dir' and 'ln file dir' fail.
  513. # 2) DJGPP < 2.04 has no symlinks; 'ln -s' creates a wrapper executable.
  514. # In both cases, we have to default to 'cp -pR'.
  515. ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
  516. as_ln_s='cp -pR'
  517. elif ln conf$$.file conf$$ 2>/dev/null; then
  518. as_ln_s=ln
  519. else
  520. as_ln_s='cp -pR'
  521. fi
  522. else
  523. as_ln_s='cp -pR'
  524. fi
  525. rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
  526. rmdir conf$$.dir 2>/dev/null
  527. if mkdir -p . 2>/dev/null; then
  528. as_mkdir_p='mkdir -p "$as_dir"'
  529. else
  530. test -d ./-p && rmdir ./-p
  531. as_mkdir_p=false
  532. fi
  533. as_test_x='test -x'
  534. as_executable_p=as_fn_executable_p
  535. # Sed expression to map a string onto a valid CPP name.
  536. as_sed_cpp="y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
  537. as_tr_cpp="eval sed '$as_sed_cpp'" # deprecated
  538. # Sed expression to map a string onto a valid variable name.
  539. as_sed_sh="y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
  540. as_tr_sh="eval sed '$as_sed_sh'" # deprecated
  541. SHELL=${CONFIG_SHELL-/bin/sh}
  542. test -n "$DJDIR" || exec 7<&0 </dev/null
  543. exec 6>&1
  544. # Name of the host.
  545. # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
  546. # so uname gets run too.
  547. ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
  548. #
  549. # Initializations.
  550. #
  551. ac_default_prefix=/usr/local
  552. ac_clean_files=
  553. ac_config_libobj_dir=.
  554. LIBOBJS=
  555. cross_compiling=no
  556. subdirs=
  557. MFLAGS=
  558. MAKEFLAGS=
  559. # Identity of this package.
  560. PACKAGE_NAME='neon'
  561. PACKAGE_TARNAME='neon'
  562. PACKAGE_VERSION='0.36.0'
  563. PACKAGE_STRING='neon 0.36.0'
  564. PACKAGE_BUGREPORT=''
  565. PACKAGE_URL='https://notroj.github.io/neon/'
  566. ac_unique_file="src/ne_request.c"
  567. # Factoring default headers for most tests.
  568. ac_includes_default="\
  569. #include <stddef.h>
  570. #ifdef HAVE_STDIO_H
  571. # include <stdio.h>
  572. #endif
  573. #ifdef HAVE_STDLIB_H
  574. # include <stdlib.h>
  575. #endif
  576. #ifdef HAVE_STRING_H
  577. # include <string.h>
  578. #endif
  579. #ifdef HAVE_INTTYPES_H
  580. # include <inttypes.h>
  581. #endif
  582. #ifdef HAVE_STDINT_H
  583. # include <stdint.h>
  584. #endif
  585. #ifdef HAVE_STRINGS_H
  586. # include <strings.h>
  587. #endif
  588. #ifdef HAVE_SYS_TYPES_H
  589. # include <sys/types.h>
  590. #endif
  591. #ifdef HAVE_SYS_STAT_H
  592. # include <sys/stat.h>
  593. #endif
  594. #ifdef HAVE_UNISTD_H
  595. # include <unistd.h>
  596. #endif"
  597. ac_header_c_list=
  598. ac_subst_vars='LTLIBOBJS
  599. ALLOW_INSTALL
  600. TESTS
  601. HELPERS
  602. user_LDFLAGS
  603. top_builddir
  604. NEON_BUILD_BUNDLED
  605. NEON_VERSION
  606. ALL_LINGUAS
  607. HAVE_LD_VERSION_SCRIPT_FALSE
  608. HAVE_LD_VERSION_SCRIPT_TRUE
  609. NEON_PC_LIBS
  610. TEST_LDFLAGS
  611. PK12UTIL
  612. CERTUTIL
  613. OPENSSL
  614. NE_FLAG_I18N
  615. XML2_CONFIG
  616. NEON_LINK_FLAGS
  617. NEON_EXTRAOBJS
  618. NEONOBJS
  619. NEON_OBJEXT
  620. NEON_TARGET
  621. NE_FLAG_DAV
  622. LT_SYS_LIBRARY_PATH
  623. OTOOL64
  624. OTOOL
  625. LIPO
  626. NMEDIT
  627. DSYMUTIL
  628. MANIFEST_TOOL
  629. AWK
  630. RANLIB
  631. STRIP
  632. ac_ct_AR
  633. AR
  634. DLLTOOL
  635. OBJDUMP
  636. FILECMD
  637. LN_S
  638. NM
  639. ac_ct_DUMPBIN
  640. DUMPBIN
  641. LD
  642. FGREP
  643. EGREP
  644. GREP
  645. SED
  646. host_os
  647. host_vendor
  648. host_cpu
  649. host
  650. build_os
  651. build_vendor
  652. build_cpu
  653. build
  654. LIBTOOL
  655. NEON_LTLIBS
  656. NEON_LIBS
  657. NEON_CFLAGS
  658. NE_FLAG_LIBPXY
  659. NE_FLAG_GSSAPI
  660. KRB5_CONF_TOOL
  661. NEON_SUPPORTS_SSL
  662. NE_FLAG_TS_SSL
  663. GNUTLS_CONFIG
  664. NE_FLAG_SSL
  665. CPP
  666. PKG_CONFIG
  667. NE_FLAG_ZLIB
  668. NE_FLAG_IPV6
  669. LIBOBJS
  670. NE_FLAG_LFS
  671. SET_MAKE
  672. OBJEXT
  673. EXEEXT
  674. ac_ct_CC
  675. CPPFLAGS
  676. LDFLAGS
  677. CFLAGS
  678. CC
  679. INSTALL_DATA
  680. INSTALL_SCRIPT
  681. INSTALL_PROGRAM
  682. target_alias
  683. host_alias
  684. build_alias
  685. LIBS
  686. ECHO_T
  687. ECHO_N
  688. ECHO_C
  689. DEFS
  690. mandir
  691. localedir
  692. libdir
  693. psdir
  694. pdfdir
  695. dvidir
  696. htmldir
  697. infodir
  698. docdir
  699. oldincludedir
  700. includedir
  701. runstatedir
  702. localstatedir
  703. sharedstatedir
  704. sysconfdir
  705. datadir
  706. datarootdir
  707. libexecdir
  708. sbindir
  709. bindir
  710. program_transform_name
  711. prefix
  712. exec_prefix
  713. PACKAGE_URL
  714. PACKAGE_BUGREPORT
  715. PACKAGE_STRING
  716. PACKAGE_VERSION
  717. PACKAGE_TARNAME
  718. PACKAGE_NAME
  719. PATH_SEPARATOR
  720. SHELL'
  721. ac_subst_files=''
  722. ac_user_opts='
  723. enable_option_checking
  724. with_libs
  725. enable_webdav
  726. with_zlib
  727. with_ssl
  728. with_egd
  729. with_pakchois
  730. with_ca_bundle
  731. enable_threadsafe_ssl
  732. with_gssapi
  733. with_libproxy
  734. enable_shared
  735. enable_static
  736. enable_pic
  737. with_pic
  738. enable_fast_install
  739. enable_aix_soname
  740. with_aix_soname
  741. with_gnu_ld
  742. with_sysroot
  743. enable_libtool_lock
  744. with_libxml2
  745. with_expat
  746. enable_nls
  747. enable_debug
  748. enable_warnings
  749. enable_memleak
  750. enable_auto_libproxy
  751. enable_tests_install
  752. enable_ld_version_script
  753. '
  754. ac_precious_vars='build_alias
  755. host_alias
  756. target_alias
  757. CC
  758. CFLAGS
  759. LDFLAGS
  760. LIBS
  761. CPPFLAGS
  762. CPP
  763. LT_SYS_LIBRARY_PATH'
  764. # Initialize some variables set by options.
  765. ac_init_help=
  766. ac_init_version=false
  767. ac_unrecognized_opts=
  768. ac_unrecognized_sep=
  769. # The variables have the same names as the options, with
  770. # dashes changed to underlines.
  771. cache_file=/dev/null
  772. exec_prefix=NONE
  773. no_create=
  774. no_recursion=
  775. prefix=NONE
  776. program_prefix=NONE
  777. program_suffix=NONE
  778. program_transform_name=s,x,x,
  779. silent=
  780. site=
  781. srcdir=
  782. verbose=
  783. x_includes=NONE
  784. x_libraries=NONE
  785. # Installation directory options.
  786. # These are left unexpanded so users can "make install exec_prefix=/foo"
  787. # and all the variables that are supposed to be based on exec_prefix
  788. # by default will actually change.
  789. # Use braces instead of parens because sh, perl, etc. also accept them.
  790. # (The list follows the same order as the GNU Coding Standards.)
  791. bindir='${exec_prefix}/bin'
  792. sbindir='${exec_prefix}/sbin'
  793. libexecdir='${exec_prefix}/libexec'
  794. datarootdir='${prefix}/share'
  795. datadir='${datarootdir}'
  796. sysconfdir='${prefix}/etc'
  797. sharedstatedir='${prefix}/com'
  798. localstatedir='${prefix}/var'
  799. runstatedir='${localstatedir}/run'
  800. includedir='${prefix}/include'
  801. oldincludedir='/usr/include'
  802. docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
  803. infodir='${datarootdir}/info'
  804. htmldir='${docdir}'
  805. dvidir='${docdir}'
  806. pdfdir='${docdir}'
  807. psdir='${docdir}'
  808. libdir='${exec_prefix}/lib'
  809. localedir='${datarootdir}/locale'
  810. mandir='${datarootdir}/man'
  811. ac_prev=
  812. ac_dashdash=
  813. for ac_option
  814. do
  815. # If the previous option needs an argument, assign it.
  816. if test -n "$ac_prev"; then
  817. eval $ac_prev=\$ac_option
  818. ac_prev=
  819. continue
  820. fi
  821. case $ac_option in
  822. *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
  823. *=) ac_optarg= ;;
  824. *) ac_optarg=yes ;;
  825. esac
  826. case $ac_dashdash$ac_option in
  827. --)
  828. ac_dashdash=yes ;;
  829. -bindir | --bindir | --bindi | --bind | --bin | --bi)
  830. ac_prev=bindir ;;
  831. -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
  832. bindir=$ac_optarg ;;
  833. -build | --build | --buil | --bui | --bu)
  834. ac_prev=build_alias ;;
  835. -build=* | --build=* | --buil=* | --bui=* | --bu=*)
  836. build_alias=$ac_optarg ;;
  837. -cache-file | --cache-file | --cache-fil | --cache-fi \
  838. | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
  839. ac_prev=cache_file ;;
  840. -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
  841. | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
  842. cache_file=$ac_optarg ;;
  843. --config-cache | -C)
  844. cache_file=config.cache ;;
  845. -datadir | --datadir | --datadi | --datad)
  846. ac_prev=datadir ;;
  847. -datadir=* | --datadir=* | --datadi=* | --datad=*)
  848. datadir=$ac_optarg ;;
  849. -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
  850. | --dataroo | --dataro | --datar)
  851. ac_prev=datarootdir ;;
  852. -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
  853. | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
  854. datarootdir=$ac_optarg ;;
  855. -disable-* | --disable-*)
  856. ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
  857. # Reject names that are not valid shell variable names.
  858. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  859. as_fn_error $? "invalid feature name: '$ac_useropt'"
  860. ac_useropt_orig=$ac_useropt
  861. ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
  862. case $ac_user_opts in
  863. *"
  864. "enable_$ac_useropt"
  865. "*) ;;
  866. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
  867. ac_unrecognized_sep=', ';;
  868. esac
  869. eval enable_$ac_useropt=no ;;
  870. -docdir | --docdir | --docdi | --doc | --do)
  871. ac_prev=docdir ;;
  872. -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
  873. docdir=$ac_optarg ;;
  874. -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
  875. ac_prev=dvidir ;;
  876. -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
  877. dvidir=$ac_optarg ;;
  878. -enable-* | --enable-*)
  879. ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
  880. # Reject names that are not valid shell variable names.
  881. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  882. as_fn_error $? "invalid feature name: '$ac_useropt'"
  883. ac_useropt_orig=$ac_useropt
  884. ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
  885. case $ac_user_opts in
  886. *"
  887. "enable_$ac_useropt"
  888. "*) ;;
  889. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
  890. ac_unrecognized_sep=', ';;
  891. esac
  892. eval enable_$ac_useropt=\$ac_optarg ;;
  893. -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
  894. | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
  895. | --exec | --exe | --ex)
  896. ac_prev=exec_prefix ;;
  897. -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
  898. | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
  899. | --exec=* | --exe=* | --ex=*)
  900. exec_prefix=$ac_optarg ;;
  901. -gas | --gas | --ga | --g)
  902. # Obsolete; use --with-gas.
  903. with_gas=yes ;;
  904. -help | --help | --hel | --he | -h)
  905. ac_init_help=long ;;
  906. -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
  907. ac_init_help=recursive ;;
  908. -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
  909. ac_init_help=short ;;
  910. -host | --host | --hos | --ho)
  911. ac_prev=host_alias ;;
  912. -host=* | --host=* | --hos=* | --ho=*)
  913. host_alias=$ac_optarg ;;
  914. -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
  915. ac_prev=htmldir ;;
  916. -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
  917. | --ht=*)
  918. htmldir=$ac_optarg ;;
  919. -includedir | --includedir | --includedi | --included | --include \
  920. | --includ | --inclu | --incl | --inc)
  921. ac_prev=includedir ;;
  922. -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
  923. | --includ=* | --inclu=* | --incl=* | --inc=*)
  924. includedir=$ac_optarg ;;
  925. -infodir | --infodir | --infodi | --infod | --info | --inf)
  926. ac_prev=infodir ;;
  927. -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
  928. infodir=$ac_optarg ;;
  929. -libdir | --libdir | --libdi | --libd)
  930. ac_prev=libdir ;;
  931. -libdir=* | --libdir=* | --libdi=* | --libd=*)
  932. libdir=$ac_optarg ;;
  933. -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
  934. | --libexe | --libex | --libe)
  935. ac_prev=libexecdir ;;
  936. -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
  937. | --libexe=* | --libex=* | --libe=*)
  938. libexecdir=$ac_optarg ;;
  939. -localedir | --localedir | --localedi | --localed | --locale)
  940. ac_prev=localedir ;;
  941. -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
  942. localedir=$ac_optarg ;;
  943. -localstatedir | --localstatedir | --localstatedi | --localstated \
  944. | --localstate | --localstat | --localsta | --localst | --locals)
  945. ac_prev=localstatedir ;;
  946. -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
  947. | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
  948. localstatedir=$ac_optarg ;;
  949. -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
  950. ac_prev=mandir ;;
  951. -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
  952. mandir=$ac_optarg ;;
  953. -nfp | --nfp | --nf)
  954. # Obsolete; use --without-fp.
  955. with_fp=no ;;
  956. -no-create | --no-create | --no-creat | --no-crea | --no-cre \
  957. | --no-cr | --no-c | -n)
  958. no_create=yes ;;
  959. -no-recursion | --no-recursion | --no-recursio | --no-recursi \
  960. | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
  961. no_recursion=yes ;;
  962. -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
  963. | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
  964. | --oldin | --oldi | --old | --ol | --o)
  965. ac_prev=oldincludedir ;;
  966. -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
  967. | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
  968. | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
  969. oldincludedir=$ac_optarg ;;
  970. -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
  971. ac_prev=prefix ;;
  972. -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
  973. prefix=$ac_optarg ;;
  974. -program-prefix | --program-prefix | --program-prefi | --program-pref \
  975. | --program-pre | --program-pr | --program-p)
  976. ac_prev=program_prefix ;;
  977. -program-prefix=* | --program-prefix=* | --program-prefi=* \
  978. | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
  979. program_prefix=$ac_optarg ;;
  980. -program-suffix | --program-suffix | --program-suffi | --program-suff \
  981. | --program-suf | --program-su | --program-s)
  982. ac_prev=program_suffix ;;
  983. -program-suffix=* | --program-suffix=* | --program-suffi=* \
  984. | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
  985. program_suffix=$ac_optarg ;;
  986. -program-transform-name | --program-transform-name \
  987. | --program-transform-nam | --program-transform-na \
  988. | --program-transform-n | --program-transform- \
  989. | --program-transform | --program-transfor \
  990. | --program-transfo | --program-transf \
  991. | --program-trans | --program-tran \
  992. | --progr-tra | --program-tr | --program-t)
  993. ac_prev=program_transform_name ;;
  994. -program-transform-name=* | --program-transform-name=* \
  995. | --program-transform-nam=* | --program-transform-na=* \
  996. | --program-transform-n=* | --program-transform-=* \
  997. | --program-transform=* | --program-transfor=* \
  998. | --program-transfo=* | --program-transf=* \
  999. | --program-trans=* | --program-tran=* \
  1000. | --progr-tra=* | --program-tr=* | --program-t=*)
  1001. program_transform_name=$ac_optarg ;;
  1002. -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
  1003. ac_prev=pdfdir ;;
  1004. -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
  1005. pdfdir=$ac_optarg ;;
  1006. -psdir | --psdir | --psdi | --psd | --ps)
  1007. ac_prev=psdir ;;
  1008. -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
  1009. psdir=$ac_optarg ;;
  1010. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  1011. | -silent | --silent | --silen | --sile | --sil)
  1012. silent=yes ;;
  1013. -runstatedir | --runstatedir | --runstatedi | --runstated \
  1014. | --runstate | --runstat | --runsta | --runst | --runs \
  1015. | --run | --ru | --r)
  1016. ac_prev=runstatedir ;;
  1017. -runstatedir=* | --runstatedir=* | --runstatedi=* | --runstated=* \
  1018. | --runstate=* | --runstat=* | --runsta=* | --runst=* | --runs=* \
  1019. | --run=* | --ru=* | --r=*)
  1020. runstatedir=$ac_optarg ;;
  1021. -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
  1022. ac_prev=sbindir ;;
  1023. -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
  1024. | --sbi=* | --sb=*)
  1025. sbindir=$ac_optarg ;;
  1026. -sharedstatedir | --sharedstatedir | --sharedstatedi \
  1027. | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
  1028. | --sharedst | --shareds | --shared | --share | --shar \
  1029. | --sha | --sh)
  1030. ac_prev=sharedstatedir ;;
  1031. -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
  1032. | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
  1033. | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
  1034. | --sha=* | --sh=*)
  1035. sharedstatedir=$ac_optarg ;;
  1036. -site | --site | --sit)
  1037. ac_prev=site ;;
  1038. -site=* | --site=* | --sit=*)
  1039. site=$ac_optarg ;;
  1040. -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
  1041. ac_prev=srcdir ;;
  1042. -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
  1043. srcdir=$ac_optarg ;;
  1044. -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
  1045. | --syscon | --sysco | --sysc | --sys | --sy)
  1046. ac_prev=sysconfdir ;;
  1047. -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
  1048. | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
  1049. sysconfdir=$ac_optarg ;;
  1050. -target | --target | --targe | --targ | --tar | --ta | --t)
  1051. ac_prev=target_alias ;;
  1052. -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
  1053. target_alias=$ac_optarg ;;
  1054. -v | -verbose | --verbose | --verbos | --verbo | --verb)
  1055. verbose=yes ;;
  1056. -version | --version | --versio | --versi | --vers | -V)
  1057. ac_init_version=: ;;
  1058. -with-* | --with-*)
  1059. ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
  1060. # Reject names that are not valid shell variable names.
  1061. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  1062. as_fn_error $? "invalid package name: '$ac_useropt'"
  1063. ac_useropt_orig=$ac_useropt
  1064. ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
  1065. case $ac_user_opts in
  1066. *"
  1067. "with_$ac_useropt"
  1068. "*) ;;
  1069. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
  1070. ac_unrecognized_sep=', ';;
  1071. esac
  1072. eval with_$ac_useropt=\$ac_optarg ;;
  1073. -without-* | --without-*)
  1074. ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
  1075. # Reject names that are not valid shell variable names.
  1076. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  1077. as_fn_error $? "invalid package name: '$ac_useropt'"
  1078. ac_useropt_orig=$ac_useropt
  1079. ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
  1080. case $ac_user_opts in
  1081. *"
  1082. "with_$ac_useropt"
  1083. "*) ;;
  1084. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
  1085. ac_unrecognized_sep=', ';;
  1086. esac
  1087. eval with_$ac_useropt=no ;;
  1088. --x)
  1089. # Obsolete; use --with-x.
  1090. with_x=yes ;;
  1091. -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
  1092. | --x-incl | --x-inc | --x-in | --x-i)
  1093. ac_prev=x_includes ;;
  1094. -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
  1095. | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
  1096. x_includes=$ac_optarg ;;
  1097. -x-libraries | --x-libraries | --x-librarie | --x-librari \
  1098. | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
  1099. ac_prev=x_libraries ;;
  1100. -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
  1101. | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
  1102. x_libraries=$ac_optarg ;;
  1103. -*) as_fn_error $? "unrecognized option: '$ac_option'
  1104. Try '$0 --help' for more information"
  1105. ;;
  1106. *=*)
  1107. ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
  1108. # Reject names that are not valid shell variable names.
  1109. case $ac_envvar in #(
  1110. '' | [0-9]* | *[!_$as_cr_alnum]* )
  1111. as_fn_error $? "invalid variable name: '$ac_envvar'" ;;
  1112. esac
  1113. eval $ac_envvar=\$ac_optarg
  1114. export $ac_envvar ;;
  1115. *)
  1116. # FIXME: should be removed in autoconf 3.0.
  1117. printf "%s\n" "$as_me: WARNING: you should use --build, --host, --target" >&2
  1118. expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
  1119. printf "%s\n" "$as_me: WARNING: invalid host type: $ac_option" >&2
  1120. : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
  1121. ;;
  1122. esac
  1123. done
  1124. if test -n "$ac_prev"; then
  1125. ac_option=--`echo $ac_prev | sed 's/_/-/g'`
  1126. as_fn_error $? "missing argument to $ac_option"
  1127. fi
  1128. if test -n "$ac_unrecognized_opts"; then
  1129. case $enable_option_checking in
  1130. no) ;;
  1131. fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
  1132. *) printf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
  1133. esac
  1134. fi
  1135. # Check all directory arguments for consistency.
  1136. for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
  1137. datadir sysconfdir sharedstatedir localstatedir includedir \
  1138. oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
  1139. libdir localedir mandir runstatedir
  1140. do
  1141. eval ac_val=\$$ac_var
  1142. # Remove trailing slashes.
  1143. case $ac_val in
  1144. */ )
  1145. ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
  1146. eval $ac_var=\$ac_val;;
  1147. esac
  1148. # Be sure to have absolute directory names.
  1149. case $ac_val in
  1150. [\\/$]* | ?:[\\/]* ) continue;;
  1151. NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
  1152. esac
  1153. as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
  1154. done
  1155. # There might be people who depend on the old broken behavior: '$host'
  1156. # used to hold the argument of --host etc.
  1157. # FIXME: To remove some day.
  1158. build=$build_alias
  1159. host=$host_alias
  1160. target=$target_alias
  1161. # FIXME: To remove some day.
  1162. if test "x$host_alias" != x; then
  1163. if test "x$build_alias" = x; then
  1164. cross_compiling=maybe
  1165. elif test "x$build_alias" != "x$host_alias"; then
  1166. cross_compiling=yes
  1167. fi
  1168. fi
  1169. ac_tool_prefix=
  1170. test -n "$host_alias" && ac_tool_prefix=$host_alias-
  1171. test "$silent" = yes && exec 6>/dev/null
  1172. ac_pwd=`pwd` && test -n "$ac_pwd" &&
  1173. ac_ls_di=`ls -di .` &&
  1174. ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
  1175. as_fn_error $? "working directory cannot be determined"
  1176. test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
  1177. as_fn_error $? "pwd does not report name of working directory"
  1178. # Find the source files, if location was not specified.
  1179. if test -z "$srcdir"; then
  1180. ac_srcdir_defaulted=yes
  1181. # Try the directory containing this script, then the parent directory.
  1182. ac_confdir=`$as_dirname -- "$as_myself" ||
  1183. $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  1184. X"$as_myself" : 'X\(//\)[^/]' \| \
  1185. X"$as_myself" : 'X\(//\)$' \| \
  1186. X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
  1187. printf "%s\n" X"$as_myself" |
  1188. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  1189. s//\1/
  1190. q
  1191. }
  1192. /^X\(\/\/\)[^/].*/{
  1193. s//\1/
  1194. q
  1195. }
  1196. /^X\(\/\/\)$/{
  1197. s//\1/
  1198. q
  1199. }
  1200. /^X\(\/\).*/{
  1201. s//\1/
  1202. q
  1203. }
  1204. s/.*/./; q'`
  1205. srcdir=$ac_confdir
  1206. if test ! -r "$srcdir/$ac_unique_file"; then
  1207. srcdir=..
  1208. fi
  1209. else
  1210. ac_srcdir_defaulted=no
  1211. fi
  1212. if test ! -r "$srcdir/$ac_unique_file"; then
  1213. test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
  1214. as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
  1215. fi
  1216. ac_msg="sources are in $srcdir, but 'cd $srcdir' does not work"
  1217. ac_abs_confdir=`(
  1218. cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
  1219. pwd)`
  1220. # When building in place, set srcdir=.
  1221. if test "$ac_abs_confdir" = "$ac_pwd"; then
  1222. srcdir=.
  1223. fi
  1224. # Remove unnecessary trailing slashes from srcdir.
  1225. # Double slashes in file names in object file debugging info
  1226. # mess up M-x gdb in Emacs.
  1227. case $srcdir in
  1228. */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
  1229. esac
  1230. for ac_var in $ac_precious_vars; do
  1231. eval ac_env_${ac_var}_set=\${${ac_var}+set}
  1232. eval ac_env_${ac_var}_value=\$${ac_var}
  1233. eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
  1234. eval ac_cv_env_${ac_var}_value=\$${ac_var}
  1235. done
  1236. #
  1237. # Report the --help message.
  1238. #
  1239. if test "$ac_init_help" = "long"; then
  1240. # Omit some internal or obsolete options to make the list less imposing.
  1241. # This message is too long to be a string in the A/UX 3.1 sh.
  1242. cat <<_ACEOF
  1243. 'configure' configures neon 0.36.0 to adapt to many kinds of systems.
  1244. Usage: $0 [OPTION]... [VAR=VALUE]...
  1245. To assign environment variables (e.g., CC, CFLAGS...), specify them as
  1246. VAR=VALUE. See below for descriptions of some of the useful variables.
  1247. Defaults for the options are specified in brackets.
  1248. Configuration:
  1249. -h, --help display this help and exit
  1250. --help=short display options specific to this package
  1251. --help=recursive display the short help of all the included packages
  1252. -V, --version display version information and exit
  1253. -q, --quiet, --silent do not print 'checking ...' messages
  1254. --cache-file=FILE cache test results in FILE [disabled]
  1255. -C, --config-cache alias for '--cache-file=config.cache'
  1256. -n, --no-create do not create output files
  1257. --srcdir=DIR find the sources in DIR [configure dir or '..']
  1258. Installation directories:
  1259. --prefix=PREFIX install architecture-independent files in PREFIX
  1260. [$ac_default_prefix]
  1261. --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
  1262. [PREFIX]
  1263. By default, 'make install' will install all the files in
  1264. '$ac_default_prefix/bin', '$ac_default_prefix/lib' etc. You can specify
  1265. an installation prefix other than '$ac_default_prefix' using '--prefix',
  1266. for instance '--prefix=\$HOME'.
  1267. For better control, use the options below.
  1268. Fine tuning of the installation directories:
  1269. --bindir=DIR user executables [EPREFIX/bin]
  1270. --sbindir=DIR system admin executables [EPREFIX/sbin]
  1271. --libexecdir=DIR program executables [EPREFIX/libexec]
  1272. --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
  1273. --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
  1274. --localstatedir=DIR modifiable single-machine data [PREFIX/var]
  1275. --runstatedir=DIR modifiable per-process data [LOCALSTATEDIR/run]
  1276. --libdir=DIR object code libraries [EPREFIX/lib]
  1277. --includedir=DIR C header files [PREFIX/include]
  1278. --oldincludedir=DIR C header files for non-gcc [/usr/include]
  1279. --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
  1280. --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
  1281. --infodir=DIR info documentation [DATAROOTDIR/info]
  1282. --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
  1283. --mandir=DIR man documentation [DATAROOTDIR/man]
  1284. --docdir=DIR documentation root [DATAROOTDIR/doc/neon]
  1285. --htmldir=DIR html documentation [DOCDIR]
  1286. --dvidir=DIR dvi documentation [DOCDIR]
  1287. --pdfdir=DIR pdf documentation [DOCDIR]
  1288. --psdir=DIR ps documentation [DOCDIR]
  1289. _ACEOF
  1290. cat <<\_ACEOF
  1291. System types:
  1292. --build=BUILD configure for building on BUILD [guessed]
  1293. --host=HOST cross-compile to build programs to run on HOST [BUILD]
  1294. _ACEOF
  1295. fi
  1296. if test -n "$ac_init_help"; then
  1297. case $ac_init_help in
  1298. short | recursive ) echo "Configuration of neon 0.36.0:";;
  1299. esac
  1300. cat <<\_ACEOF
  1301. Optional Features:
  1302. --disable-option-checking ignore unrecognized --enable/--with options
  1303. --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
  1304. --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
  1305. --disable-webdav disable WebDAV support
  1306. --enable-threadsafe-ssl=posix
  1307. enable SSL library thread-safety using POSIX
  1308. threads: suitable CC/CFLAGS/LIBS must be used to
  1309. make the POSIX library interfaces available
  1310. --enable-shared[=PKGS] build shared libraries [default=no]
  1311. --enable-static[=PKGS] build static libraries [default=yes]
  1312. --enable-pic[=PKGS] try to use only PIC/non-PIC objects [default=use
  1313. both]
  1314. --enable-fast-install[=PKGS]
  1315. optimize for fast installation [default=yes]
  1316. --enable-aix-soname=aix|svr4|both
  1317. shared library versioning (aka "SONAME") variant to
  1318. provide on AIX, [default=aix].
  1319. --disable-libtool-lock avoid locking (might break parallel builds)
  1320. --disable-nls disable internationalization support
  1321. --disable-debug disable runtime debugging messages
  1322. --enable-warnings enable compiler warnings
  1323. --enable-memleak for test builds only: enable memory leak checking
  1324. --enable-auto-libproxy for using libproxy during session creation
  1325. --enable-tests-install enable installation of the test suite
  1326. --enable-ld-version-script
  1327. enable linker version script (default is enabled
  1328. when possible)
  1329. Optional Packages:
  1330. --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
  1331. --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
  1332. --with-libs=DIR[:DIR2...] look for support libraries in DIR/{bin,lib,include}
  1333. --without-zlib disable zlib support
  1334. --with-ssl=openssl|gnutls
  1335. enable SSL support (default OpenSSL)
  1336. --with-egd[=PATH] enable EGD support [using EGD socket at PATH]
  1337. --without-pakchois disable support for PKCS#11 using pakchois
  1338. --with-ca-bundle specify filename of an SSL CA root bundle
  1339. --without-gssapi disable GSSAPI support
  1340. --without-libproxy disable libproxy support
  1341. --with-gnu-ld assume the C compiler uses GNU ld [default=no]
  1342. --with-sysroot[=DIR] Search for dependent libraries within DIR (or the
  1343. compiler's sysroot if not specified).
  1344. --with-libxml2 force use of libxml 2.x
  1345. --with-expat force use of expat
  1346. Some influential environment variables:
  1347. CC C compiler command
  1348. CFLAGS C compiler flags
  1349. LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
  1350. nonstandard directory <lib dir>
  1351. LIBS libraries to pass to the linker, e.g. -l<library>
  1352. CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
  1353. you have headers in a nonstandard directory <include dir>
  1354. CPP C preprocessor
  1355. LT_SYS_LIBRARY_PATH
  1356. User-defined run-time library search path.
  1357. Use these variables to override the choices made by 'configure' or to help
  1358. it to find libraries and programs with nonstandard names/locations.
  1359. Report bugs to the package provider.
  1360. neon home page: <https://notroj.github.io/neon/>.
  1361. _ACEOF
  1362. ac_status=$?
  1363. fi
  1364. if test "$ac_init_help" = "recursive"; then
  1365. # If there are subdirs, report their specific --help.
  1366. for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
  1367. test -d "$ac_dir" ||
  1368. { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
  1369. continue
  1370. ac_builddir=.
  1371. case "$ac_dir" in
  1372. .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
  1373. *)
  1374. ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'`
  1375. # A ".." for each directory in $ac_dir_suffix.
  1376. ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
  1377. case $ac_top_builddir_sub in
  1378. "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
  1379. *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
  1380. esac ;;
  1381. esac
  1382. ac_abs_top_builddir=$ac_pwd
  1383. ac_abs_builddir=$ac_pwd$ac_dir_suffix
  1384. # for backward compatibility:
  1385. ac_top_builddir=$ac_top_build_prefix
  1386. case $srcdir in
  1387. .) # We are building in place.
  1388. ac_srcdir=.
  1389. ac_top_srcdir=$ac_top_builddir_sub
  1390. ac_abs_top_srcdir=$ac_pwd ;;
  1391. [\\/]* | ?:[\\/]* ) # Absolute name.
  1392. ac_srcdir=$srcdir$ac_dir_suffix;
  1393. ac_top_srcdir=$srcdir
  1394. ac_abs_top_srcdir=$srcdir ;;
  1395. *) # Relative name.
  1396. ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
  1397. ac_top_srcdir=$ac_top_build_prefix$srcdir
  1398. ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
  1399. esac
  1400. ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
  1401. cd "$ac_dir" || { ac_status=$?; continue; }
  1402. # Check for configure.gnu first; this name is used for a wrapper for
  1403. # Metaconfig's "Configure" on case-insensitive file systems.
  1404. if test -f "$ac_srcdir/configure.gnu"; then
  1405. echo &&
  1406. $SHELL "$ac_srcdir/configure.gnu" --help=recursive
  1407. elif test -f "$ac_srcdir/configure"; then
  1408. echo &&
  1409. $SHELL "$ac_srcdir/configure" --help=recursive
  1410. else
  1411. printf "%s\n" "$as_me: WARNING: no configuration information is in $ac_dir" >&2
  1412. fi || ac_status=$?
  1413. cd "$ac_pwd" || { ac_status=$?; break; }
  1414. done
  1415. fi
  1416. test -n "$ac_init_help" && exit $ac_status
  1417. if $ac_init_version; then
  1418. cat <<\_ACEOF
  1419. neon configure 0.36.0
  1420. generated by GNU Autoconf 2.72
  1421. Copyright (C) 2023 Free Software Foundation, Inc.
  1422. This configure script is free software; the Free Software Foundation
  1423. gives unlimited permission to copy, distribute and modify it.
  1424. Copyright 2000-2022 Joe Orton and others
  1425. This configure script may be copied, distributed and modified under the
  1426. terms of the GNU Library General Public license; see src/COPYING.LIB for
  1427. more details.
  1428. _ACEOF
  1429. exit
  1430. fi
  1431. ## ------------------------ ##
  1432. ## Autoconf initialization. ##
  1433. ## ------------------------ ##
  1434. # ac_fn_c_try_compile LINENO
  1435. # --------------------------
  1436. # Try to compile conftest.$ac_ext, and return whether this succeeded.
  1437. ac_fn_c_try_compile ()
  1438. {
  1439. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1440. rm -f conftest.$ac_objext conftest.beam
  1441. if { { ac_try="$ac_compile"
  1442. case "(($ac_try" in
  1443. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1444. *) ac_try_echo=$ac_try;;
  1445. esac
  1446. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1447. printf "%s\n" "$ac_try_echo"; } >&5
  1448. (eval "$ac_compile") 2>conftest.err
  1449. ac_status=$?
  1450. if test -s conftest.err; then
  1451. grep -v '^ *+' conftest.err >conftest.er1
  1452. cat conftest.er1 >&5
  1453. mv -f conftest.er1 conftest.err
  1454. fi
  1455. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1456. test $ac_status = 0; } && {
  1457. test -z "$ac_c_werror_flag" ||
  1458. test ! -s conftest.err
  1459. } && test -s conftest.$ac_objext
  1460. then :
  1461. ac_retval=0
  1462. else case e in #(
  1463. e) printf "%s\n" "$as_me: failed program was:" >&5
  1464. sed 's/^/| /' conftest.$ac_ext >&5
  1465. ac_retval=1 ;;
  1466. esac
  1467. fi
  1468. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1469. as_fn_set_status $ac_retval
  1470. } # ac_fn_c_try_compile
  1471. # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
  1472. # -------------------------------------------------------
  1473. # Tests whether HEADER exists and can be compiled using the include files in
  1474. # INCLUDES, setting the cache variable VAR accordingly.
  1475. ac_fn_c_check_header_compile ()
  1476. {
  1477. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1478. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  1479. printf %s "checking for $2... " >&6; }
  1480. if eval test \${$3+y}
  1481. then :
  1482. printf %s "(cached) " >&6
  1483. else case e in #(
  1484. e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1485. /* end confdefs.h. */
  1486. $4
  1487. #include <$2>
  1488. _ACEOF
  1489. if ac_fn_c_try_compile "$LINENO"
  1490. then :
  1491. eval "$3=yes"
  1492. else case e in #(
  1493. e) eval "$3=no" ;;
  1494. esac
  1495. fi
  1496. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
  1497. esac
  1498. fi
  1499. eval ac_res=\$$3
  1500. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1501. printf "%s\n" "$ac_res" >&6; }
  1502. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1503. } # ac_fn_c_check_header_compile
  1504. # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
  1505. # -------------------------------------------
  1506. # Tests whether TYPE exists after having included INCLUDES, setting cache
  1507. # variable VAR accordingly.
  1508. ac_fn_c_check_type ()
  1509. {
  1510. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1511. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  1512. printf %s "checking for $2... " >&6; }
  1513. if eval test \${$3+y}
  1514. then :
  1515. printf %s "(cached) " >&6
  1516. else case e in #(
  1517. e) eval "$3=no"
  1518. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1519. /* end confdefs.h. */
  1520. $4
  1521. int
  1522. main (void)
  1523. {
  1524. if (sizeof ($2))
  1525. return 0;
  1526. ;
  1527. return 0;
  1528. }
  1529. _ACEOF
  1530. if ac_fn_c_try_compile "$LINENO"
  1531. then :
  1532. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1533. /* end confdefs.h. */
  1534. $4
  1535. int
  1536. main (void)
  1537. {
  1538. if (sizeof (($2)))
  1539. return 0;
  1540. ;
  1541. return 0;
  1542. }
  1543. _ACEOF
  1544. if ac_fn_c_try_compile "$LINENO"
  1545. then :
  1546. else case e in #(
  1547. e) eval "$3=yes" ;;
  1548. esac
  1549. fi
  1550. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  1551. fi
  1552. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
  1553. esac
  1554. fi
  1555. eval ac_res=\$$3
  1556. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1557. printf "%s\n" "$ac_res" >&6; }
  1558. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1559. } # ac_fn_c_check_type
  1560. # ac_fn_c_try_run LINENO
  1561. # ----------------------
  1562. # Try to run conftest.$ac_ext, and return whether this succeeded. Assumes that
  1563. # executables *can* be run.
  1564. ac_fn_c_try_run ()
  1565. {
  1566. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1567. if { { ac_try="$ac_link"
  1568. case "(($ac_try" in
  1569. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1570. *) ac_try_echo=$ac_try;;
  1571. esac
  1572. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1573. printf "%s\n" "$ac_try_echo"; } >&5
  1574. (eval "$ac_link") 2>&5
  1575. ac_status=$?
  1576. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1577. test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
  1578. { { case "(($ac_try" in
  1579. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1580. *) ac_try_echo=$ac_try;;
  1581. esac
  1582. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1583. printf "%s\n" "$ac_try_echo"; } >&5
  1584. (eval "$ac_try") 2>&5
  1585. ac_status=$?
  1586. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1587. test $ac_status = 0; }; }
  1588. then :
  1589. ac_retval=0
  1590. else case e in #(
  1591. e) printf "%s\n" "$as_me: program exited with status $ac_status" >&5
  1592. printf "%s\n" "$as_me: failed program was:" >&5
  1593. sed 's/^/| /' conftest.$ac_ext >&5
  1594. ac_retval=$ac_status ;;
  1595. esac
  1596. fi
  1597. rm -rf conftest.dSYM conftest_ipa8_conftest.oo
  1598. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1599. as_fn_set_status $ac_retval
  1600. } # ac_fn_c_try_run
  1601. # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
  1602. # --------------------------------------------
  1603. # Tries to find the compile-time value of EXPR in a program that includes
  1604. # INCLUDES, setting VAR accordingly. Returns whether the value could be
  1605. # computed
  1606. ac_fn_c_compute_int ()
  1607. {
  1608. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1609. if test "$cross_compiling" = yes; then
  1610. # Depending upon the size, compute the lo and hi bounds.
  1611. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1612. /* end confdefs.h. */
  1613. $4
  1614. int
  1615. main (void)
  1616. {
  1617. static int test_array [1 - 2 * !(($2) >= 0)];
  1618. test_array [0] = 0;
  1619. return test_array [0];
  1620. ;
  1621. return 0;
  1622. }
  1623. _ACEOF
  1624. if ac_fn_c_try_compile "$LINENO"
  1625. then :
  1626. ac_lo=0 ac_mid=0
  1627. while :; do
  1628. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1629. /* end confdefs.h. */
  1630. $4
  1631. int
  1632. main (void)
  1633. {
  1634. static int test_array [1 - 2 * !(($2) <= $ac_mid)];
  1635. test_array [0] = 0;
  1636. return test_array [0];
  1637. ;
  1638. return 0;
  1639. }
  1640. _ACEOF
  1641. if ac_fn_c_try_compile "$LINENO"
  1642. then :
  1643. ac_hi=$ac_mid; break
  1644. else case e in #(
  1645. e) as_fn_arith $ac_mid + 1 && ac_lo=$as_val
  1646. if test $ac_lo -le $ac_mid; then
  1647. ac_lo= ac_hi=
  1648. break
  1649. fi
  1650. as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val ;;
  1651. esac
  1652. fi
  1653. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  1654. done
  1655. else case e in #(
  1656. e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1657. /* end confdefs.h. */
  1658. $4
  1659. int
  1660. main (void)
  1661. {
  1662. static int test_array [1 - 2 * !(($2) < 0)];
  1663. test_array [0] = 0;
  1664. return test_array [0];
  1665. ;
  1666. return 0;
  1667. }
  1668. _ACEOF
  1669. if ac_fn_c_try_compile "$LINENO"
  1670. then :
  1671. ac_hi=-1 ac_mid=-1
  1672. while :; do
  1673. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1674. /* end confdefs.h. */
  1675. $4
  1676. int
  1677. main (void)
  1678. {
  1679. static int test_array [1 - 2 * !(($2) >= $ac_mid)];
  1680. test_array [0] = 0;
  1681. return test_array [0];
  1682. ;
  1683. return 0;
  1684. }
  1685. _ACEOF
  1686. if ac_fn_c_try_compile "$LINENO"
  1687. then :
  1688. ac_lo=$ac_mid; break
  1689. else case e in #(
  1690. e) as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
  1691. if test $ac_mid -le $ac_hi; then
  1692. ac_lo= ac_hi=
  1693. break
  1694. fi
  1695. as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val ;;
  1696. esac
  1697. fi
  1698. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  1699. done
  1700. else case e in #(
  1701. e) ac_lo= ac_hi= ;;
  1702. esac
  1703. fi
  1704. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
  1705. esac
  1706. fi
  1707. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  1708. # Binary search between lo and hi bounds.
  1709. while test "x$ac_lo" != "x$ac_hi"; do
  1710. as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
  1711. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1712. /* end confdefs.h. */
  1713. $4
  1714. int
  1715. main (void)
  1716. {
  1717. static int test_array [1 - 2 * !(($2) <= $ac_mid)];
  1718. test_array [0] = 0;
  1719. return test_array [0];
  1720. ;
  1721. return 0;
  1722. }
  1723. _ACEOF
  1724. if ac_fn_c_try_compile "$LINENO"
  1725. then :
  1726. ac_hi=$ac_mid
  1727. else case e in #(
  1728. e) as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val ;;
  1729. esac
  1730. fi
  1731. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  1732. done
  1733. case $ac_lo in #((
  1734. ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
  1735. '') ac_retval=1 ;;
  1736. esac
  1737. else
  1738. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1739. /* end confdefs.h. */
  1740. $4
  1741. static long int longval (void) { return $2; }
  1742. static unsigned long int ulongval (void) { return $2; }
  1743. #include <stdio.h>
  1744. #include <stdlib.h>
  1745. int
  1746. main (void)
  1747. {
  1748. FILE *f = fopen ("conftest.val", "w");
  1749. if (! f)
  1750. return 1;
  1751. if (($2) < 0)
  1752. {
  1753. long int i = longval ();
  1754. if (i != ($2))
  1755. return 1;
  1756. fprintf (f, "%ld", i);
  1757. }
  1758. else
  1759. {
  1760. unsigned long int i = ulongval ();
  1761. if (i != ($2))
  1762. return 1;
  1763. fprintf (f, "%lu", i);
  1764. }
  1765. /* Do not output a trailing newline, as this causes \r\n confusion
  1766. on some platforms. */
  1767. return ferror (f) || fclose (f) != 0;
  1768. ;
  1769. return 0;
  1770. }
  1771. _ACEOF
  1772. if ac_fn_c_try_run "$LINENO"
  1773. then :
  1774. echo >>conftest.val; read $3 <conftest.val; ac_retval=0
  1775. else case e in #(
  1776. e) ac_retval=1 ;;
  1777. esac
  1778. fi
  1779. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  1780. conftest.$ac_objext conftest.beam conftest.$ac_ext
  1781. rm -f conftest.val
  1782. fi
  1783. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1784. as_fn_set_status $ac_retval
  1785. } # ac_fn_c_compute_int
  1786. # ac_fn_c_try_link LINENO
  1787. # -----------------------
  1788. # Try to link conftest.$ac_ext, and return whether this succeeded.
  1789. ac_fn_c_try_link ()
  1790. {
  1791. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1792. rm -f conftest.$ac_objext conftest.beam conftest$ac_exeext
  1793. if { { ac_try="$ac_link"
  1794. case "(($ac_try" in
  1795. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1796. *) ac_try_echo=$ac_try;;
  1797. esac
  1798. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1799. printf "%s\n" "$ac_try_echo"; } >&5
  1800. (eval "$ac_link") 2>conftest.err
  1801. ac_status=$?
  1802. if test -s conftest.err; then
  1803. grep -v '^ *+' conftest.err >conftest.er1
  1804. cat conftest.er1 >&5
  1805. mv -f conftest.er1 conftest.err
  1806. fi
  1807. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1808. test $ac_status = 0; } && {
  1809. test -z "$ac_c_werror_flag" ||
  1810. test ! -s conftest.err
  1811. } && test -s conftest$ac_exeext && {
  1812. test "$cross_compiling" = yes ||
  1813. test -x conftest$ac_exeext
  1814. }
  1815. then :
  1816. ac_retval=0
  1817. else case e in #(
  1818. e) printf "%s\n" "$as_me: failed program was:" >&5
  1819. sed 's/^/| /' conftest.$ac_ext >&5
  1820. ac_retval=1 ;;
  1821. esac
  1822. fi
  1823. # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
  1824. # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
  1825. # interfere with the next link command; also delete a directory that is
  1826. # left behind by Apple's compiler. We do this before executing the actions.
  1827. rm -rf conftest.dSYM conftest_ipa8_conftest.oo
  1828. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1829. as_fn_set_status $ac_retval
  1830. } # ac_fn_c_try_link
  1831. # ac_fn_check_decl LINENO SYMBOL VAR INCLUDES EXTRA-OPTIONS FLAG-VAR
  1832. # ------------------------------------------------------------------
  1833. # Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
  1834. # accordingly. Pass EXTRA-OPTIONS to the compiler, using FLAG-VAR.
  1835. ac_fn_check_decl ()
  1836. {
  1837. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1838. as_decl_name=`echo $2|sed 's/ *(.*//'`
  1839. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
  1840. printf %s "checking whether $as_decl_name is declared... " >&6; }
  1841. if eval test \${$3+y}
  1842. then :
  1843. printf %s "(cached) " >&6
  1844. else case e in #(
  1845. e) as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
  1846. eval ac_save_FLAGS=\$$6
  1847. as_fn_append $6 " $5"
  1848. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1849. /* end confdefs.h. */
  1850. $4
  1851. int
  1852. main (void)
  1853. {
  1854. #ifndef $as_decl_name
  1855. #ifdef __cplusplus
  1856. (void) $as_decl_use;
  1857. #else
  1858. (void) $as_decl_name;
  1859. #endif
  1860. #endif
  1861. ;
  1862. return 0;
  1863. }
  1864. _ACEOF
  1865. if ac_fn_c_try_compile "$LINENO"
  1866. then :
  1867. eval "$3=yes"
  1868. else case e in #(
  1869. e) eval "$3=no" ;;
  1870. esac
  1871. fi
  1872. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  1873. eval $6=\$ac_save_FLAGS
  1874. ;;
  1875. esac
  1876. fi
  1877. eval ac_res=\$$3
  1878. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1879. printf "%s\n" "$ac_res" >&6; }
  1880. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1881. } # ac_fn_check_decl
  1882. # ac_fn_c_check_func LINENO FUNC VAR
  1883. # ----------------------------------
  1884. # Tests whether FUNC exists, setting the cache variable VAR accordingly
  1885. ac_fn_c_check_func ()
  1886. {
  1887. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1888. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  1889. printf %s "checking for $2... " >&6; }
  1890. if eval test \${$3+y}
  1891. then :
  1892. printf %s "(cached) " >&6
  1893. else case e in #(
  1894. e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1895. /* end confdefs.h. */
  1896. /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
  1897. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  1898. #define $2 innocuous_$2
  1899. /* System header to define __stub macros and hopefully few prototypes,
  1900. which can conflict with char $2 (void); below. */
  1901. #include <limits.h>
  1902. #undef $2
  1903. /* Override any GCC internal prototype to avoid an error.
  1904. Use char because int might match the return type of a GCC
  1905. builtin and then its argument prototype would still apply. */
  1906. #ifdef __cplusplus
  1907. extern "C"
  1908. #endif
  1909. char $2 (void);
  1910. /* The GNU C library defines this for functions which it implements
  1911. to always fail with ENOSYS. Some functions are actually named
  1912. something starting with __ and the normal name is an alias. */
  1913. #if defined __stub_$2 || defined __stub___$2
  1914. choke me
  1915. #endif
  1916. int
  1917. main (void)
  1918. {
  1919. return $2 ();
  1920. ;
  1921. return 0;
  1922. }
  1923. _ACEOF
  1924. if ac_fn_c_try_link "$LINENO"
  1925. then :
  1926. eval "$3=yes"
  1927. else case e in #(
  1928. e) eval "$3=no" ;;
  1929. esac
  1930. fi
  1931. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  1932. conftest$ac_exeext conftest.$ac_ext ;;
  1933. esac
  1934. fi
  1935. eval ac_res=\$$3
  1936. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1937. printf "%s\n" "$ac_res" >&6; }
  1938. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1939. } # ac_fn_c_check_func
  1940. # ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
  1941. # ----------------------------------------------------
  1942. # Tries to find if the field MEMBER exists in type AGGR, after including
  1943. # INCLUDES, setting cache variable VAR accordingly.
  1944. ac_fn_c_check_member ()
  1945. {
  1946. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1947. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
  1948. printf %s "checking for $2.$3... " >&6; }
  1949. if eval test \${$4+y}
  1950. then :
  1951. printf %s "(cached) " >&6
  1952. else case e in #(
  1953. e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1954. /* end confdefs.h. */
  1955. $5
  1956. int
  1957. main (void)
  1958. {
  1959. static $2 ac_aggr;
  1960. if (ac_aggr.$3)
  1961. return 0;
  1962. ;
  1963. return 0;
  1964. }
  1965. _ACEOF
  1966. if ac_fn_c_try_compile "$LINENO"
  1967. then :
  1968. eval "$4=yes"
  1969. else case e in #(
  1970. e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1971. /* end confdefs.h. */
  1972. $5
  1973. int
  1974. main (void)
  1975. {
  1976. static $2 ac_aggr;
  1977. if (sizeof ac_aggr.$3)
  1978. return 0;
  1979. ;
  1980. return 0;
  1981. }
  1982. _ACEOF
  1983. if ac_fn_c_try_compile "$LINENO"
  1984. then :
  1985. eval "$4=yes"
  1986. else case e in #(
  1987. e) eval "$4=no" ;;
  1988. esac
  1989. fi
  1990. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
  1991. esac
  1992. fi
  1993. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
  1994. esac
  1995. fi
  1996. eval ac_res=\$$4
  1997. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1998. printf "%s\n" "$ac_res" >&6; }
  1999. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  2000. } # ac_fn_c_check_member
  2001. # ac_fn_c_try_cpp LINENO
  2002. # ----------------------
  2003. # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
  2004. ac_fn_c_try_cpp ()
  2005. {
  2006. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  2007. if { { ac_try="$ac_cpp conftest.$ac_ext"
  2008. case "(($ac_try" in
  2009. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2010. *) ac_try_echo=$ac_try;;
  2011. esac
  2012. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  2013. printf "%s\n" "$ac_try_echo"; } >&5
  2014. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
  2015. ac_status=$?
  2016. if test -s conftest.err; then
  2017. grep -v '^ *+' conftest.err >conftest.er1
  2018. cat conftest.er1 >&5
  2019. mv -f conftest.er1 conftest.err
  2020. fi
  2021. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  2022. test $ac_status = 0; } > conftest.i && {
  2023. test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
  2024. test ! -s conftest.err
  2025. }
  2026. then :
  2027. ac_retval=0
  2028. else case e in #(
  2029. e) printf "%s\n" "$as_me: failed program was:" >&5
  2030. sed 's/^/| /' conftest.$ac_ext >&5
  2031. ac_retval=1 ;;
  2032. esac
  2033. fi
  2034. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  2035. as_fn_set_status $ac_retval
  2036. } # ac_fn_c_try_cpp
  2037. ac_configure_args_raw=
  2038. for ac_arg
  2039. do
  2040. case $ac_arg in
  2041. *\'*)
  2042. ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
  2043. esac
  2044. as_fn_append ac_configure_args_raw " '$ac_arg'"
  2045. done
  2046. case $ac_configure_args_raw in
  2047. *$as_nl*)
  2048. ac_safe_unquote= ;;
  2049. *)
  2050. ac_unsafe_z='|&;<>()$`\\"*?[ '' ' # This string ends in space, tab.
  2051. ac_unsafe_a="$ac_unsafe_z#~"
  2052. ac_safe_unquote="s/ '\\([^$ac_unsafe_a][^$ac_unsafe_z]*\\)'/ \\1/g"
  2053. ac_configure_args_raw=` printf "%s\n" "$ac_configure_args_raw" | sed "$ac_safe_unquote"`;;
  2054. esac
  2055. cat >config.log <<_ACEOF
  2056. This file contains any messages produced by compilers while
  2057. running configure, to aid debugging if configure makes a mistake.
  2058. It was created by neon $as_me 0.36.0, which was
  2059. generated by GNU Autoconf 2.72. Invocation command line was
  2060. $ $0$ac_configure_args_raw
  2061. _ACEOF
  2062. exec 5>>config.log
  2063. {
  2064. cat <<_ASUNAME
  2065. ## --------- ##
  2066. ## Platform. ##
  2067. ## --------- ##
  2068. hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
  2069. uname -m = `(uname -m) 2>/dev/null || echo unknown`
  2070. uname -r = `(uname -r) 2>/dev/null || echo unknown`
  2071. uname -s = `(uname -s) 2>/dev/null || echo unknown`
  2072. uname -v = `(uname -v) 2>/dev/null || echo unknown`
  2073. /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
  2074. /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
  2075. /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
  2076. /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
  2077. /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
  2078. /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
  2079. /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
  2080. /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
  2081. /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
  2082. _ASUNAME
  2083. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2084. for as_dir in $PATH
  2085. do
  2086. IFS=$as_save_IFS
  2087. case $as_dir in #(((
  2088. '') as_dir=./ ;;
  2089. */) ;;
  2090. *) as_dir=$as_dir/ ;;
  2091. esac
  2092. printf "%s\n" "PATH: $as_dir"
  2093. done
  2094. IFS=$as_save_IFS
  2095. } >&5
  2096. cat >&5 <<_ACEOF
  2097. ## ----------- ##
  2098. ## Core tests. ##
  2099. ## ----------- ##
  2100. _ACEOF
  2101. # Keep a trace of the command line.
  2102. # Strip out --no-create and --no-recursion so they do not pile up.
  2103. # Strip out --silent because we don't want to record it for future runs.
  2104. # Also quote any args containing shell meta-characters.
  2105. # Make two passes to allow for proper duplicate-argument suppression.
  2106. ac_configure_args=
  2107. ac_configure_args0=
  2108. ac_configure_args1=
  2109. ac_must_keep_next=false
  2110. for ac_pass in 1 2
  2111. do
  2112. for ac_arg
  2113. do
  2114. case $ac_arg in
  2115. -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
  2116. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  2117. | -silent | --silent | --silen | --sile | --sil)
  2118. continue ;;
  2119. *\'*)
  2120. ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
  2121. esac
  2122. case $ac_pass in
  2123. 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
  2124. 2)
  2125. as_fn_append ac_configure_args1 " '$ac_arg'"
  2126. if test $ac_must_keep_next = true; then
  2127. ac_must_keep_next=false # Got value, back to normal.
  2128. else
  2129. case $ac_arg in
  2130. *=* | --config-cache | -C | -disable-* | --disable-* \
  2131. | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
  2132. | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
  2133. | -with-* | --with-* | -without-* | --without-* | --x)
  2134. case "$ac_configure_args0 " in
  2135. "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
  2136. esac
  2137. ;;
  2138. -* ) ac_must_keep_next=true ;;
  2139. esac
  2140. fi
  2141. as_fn_append ac_configure_args " '$ac_arg'"
  2142. ;;
  2143. esac
  2144. done
  2145. done
  2146. { ac_configure_args0=; unset ac_configure_args0;}
  2147. { ac_configure_args1=; unset ac_configure_args1;}
  2148. # When interrupted or exit'd, cleanup temporary files, and complete
  2149. # config.log. We remove comments because anyway the quotes in there
  2150. # would cause problems or look ugly.
  2151. # WARNING: Use '\'' to represent an apostrophe within the trap.
  2152. # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
  2153. trap 'exit_status=$?
  2154. # Sanitize IFS.
  2155. IFS=" "" $as_nl"
  2156. # Save into config.log some information that might help in debugging.
  2157. {
  2158. echo
  2159. printf "%s\n" "## ---------------- ##
  2160. ## Cache variables. ##
  2161. ## ---------------- ##"
  2162. echo
  2163. # The following way of writing the cache mishandles newlines in values,
  2164. (
  2165. for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
  2166. eval ac_val=\$$ac_var
  2167. case $ac_val in #(
  2168. *${as_nl}*)
  2169. case $ac_var in #(
  2170. *_cv_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
  2171. printf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
  2172. esac
  2173. case $ac_var in #(
  2174. _ | IFS | as_nl) ;; #(
  2175. BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
  2176. *) { eval $ac_var=; unset $ac_var;} ;;
  2177. esac ;;
  2178. esac
  2179. done
  2180. (set) 2>&1 |
  2181. case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
  2182. *${as_nl}ac_space=\ *)
  2183. sed -n \
  2184. "s/'\''/'\''\\\\'\'''\''/g;
  2185. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
  2186. ;; #(
  2187. *)
  2188. sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
  2189. ;;
  2190. esac |
  2191. sort
  2192. )
  2193. echo
  2194. printf "%s\n" "## ----------------- ##
  2195. ## Output variables. ##
  2196. ## ----------------- ##"
  2197. echo
  2198. for ac_var in $ac_subst_vars
  2199. do
  2200. eval ac_val=\$$ac_var
  2201. case $ac_val in
  2202. *\'\''*) ac_val=`printf "%s\n" "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
  2203. esac
  2204. printf "%s\n" "$ac_var='\''$ac_val'\''"
  2205. done | sort
  2206. echo
  2207. if test -n "$ac_subst_files"; then
  2208. printf "%s\n" "## ------------------- ##
  2209. ## File substitutions. ##
  2210. ## ------------------- ##"
  2211. echo
  2212. for ac_var in $ac_subst_files
  2213. do
  2214. eval ac_val=\$$ac_var
  2215. case $ac_val in
  2216. *\'\''*) ac_val=`printf "%s\n" "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
  2217. esac
  2218. printf "%s\n" "$ac_var='\''$ac_val'\''"
  2219. done | sort
  2220. echo
  2221. fi
  2222. if test -s confdefs.h; then
  2223. printf "%s\n" "## ----------- ##
  2224. ## confdefs.h. ##
  2225. ## ----------- ##"
  2226. echo
  2227. cat confdefs.h
  2228. echo
  2229. fi
  2230. test "$ac_signal" != 0 &&
  2231. printf "%s\n" "$as_me: caught signal $ac_signal"
  2232. printf "%s\n" "$as_me: exit $exit_status"
  2233. } >&5
  2234. rm -f core *.core core.conftest.* &&
  2235. rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
  2236. exit $exit_status
  2237. ' 0
  2238. for ac_signal in 1 2 13 15; do
  2239. trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
  2240. done
  2241. ac_signal=0
  2242. # confdefs.h avoids OS command line length limits that DEFS can exceed.
  2243. rm -f -r conftest* confdefs.h
  2244. printf "%s\n" "/* confdefs.h */" > confdefs.h
  2245. # Predefined preprocessor variables.
  2246. printf "%s\n" "#define PACKAGE_NAME \"$PACKAGE_NAME\"" >>confdefs.h
  2247. printf "%s\n" "#define PACKAGE_TARNAME \"$PACKAGE_TARNAME\"" >>confdefs.h
  2248. printf "%s\n" "#define PACKAGE_VERSION \"$PACKAGE_VERSION\"" >>confdefs.h
  2249. printf "%s\n" "#define PACKAGE_STRING \"$PACKAGE_STRING\"" >>confdefs.h
  2250. printf "%s\n" "#define PACKAGE_BUGREPORT \"$PACKAGE_BUGREPORT\"" >>confdefs.h
  2251. printf "%s\n" "#define PACKAGE_URL \"$PACKAGE_URL\"" >>confdefs.h
  2252. # Let the site file select an alternate cache file if it wants to.
  2253. # Prefer an explicitly selected file to automatically selected ones.
  2254. if test -n "$CONFIG_SITE"; then
  2255. ac_site_files="$CONFIG_SITE"
  2256. elif test "x$prefix" != xNONE; then
  2257. ac_site_files="$prefix/share/config.site $prefix/etc/config.site"
  2258. else
  2259. ac_site_files="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
  2260. fi
  2261. for ac_site_file in $ac_site_files
  2262. do
  2263. case $ac_site_file in #(
  2264. */*) :
  2265. ;; #(
  2266. *) :
  2267. ac_site_file=./$ac_site_file ;;
  2268. esac
  2269. if test -f "$ac_site_file" && test -r "$ac_site_file"; then
  2270. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
  2271. printf "%s\n" "$as_me: loading site script $ac_site_file" >&6;}
  2272. sed 's/^/| /' "$ac_site_file" >&5
  2273. . "$ac_site_file" \
  2274. || { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
  2275. printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
  2276. as_fn_error $? "failed to load site script $ac_site_file
  2277. See 'config.log' for more details" "$LINENO" 5; }
  2278. fi
  2279. done
  2280. if test -r "$cache_file"; then
  2281. # Some versions of bash will fail to source /dev/null (special files
  2282. # actually), so we avoid doing that. DJGPP emulates it as a regular file.
  2283. if test /dev/null != "$cache_file" && test -f "$cache_file"; then
  2284. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
  2285. printf "%s\n" "$as_me: loading cache $cache_file" >&6;}
  2286. case $cache_file in
  2287. [\\/]* | ?:[\\/]* ) . "$cache_file";;
  2288. *) . "./$cache_file";;
  2289. esac
  2290. fi
  2291. else
  2292. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
  2293. printf "%s\n" "$as_me: creating cache $cache_file" >&6;}
  2294. >$cache_file
  2295. fi
  2296. as_fn_append ac_header_c_list " stdio.h stdio_h HAVE_STDIO_H"
  2297. # Test code for whether the C compiler supports C89 (global declarations)
  2298. ac_c_conftest_c89_globals='
  2299. /* Does the compiler advertise C89 conformance?
  2300. Do not test the value of __STDC__, because some compilers set it to 0
  2301. while being otherwise adequately conformant. */
  2302. #if !defined __STDC__
  2303. # error "Compiler does not advertise C89 conformance"
  2304. #endif
  2305. #include <stddef.h>
  2306. #include <stdarg.h>
  2307. struct stat;
  2308. /* Most of the following tests are stolen from RCS 5.7 src/conf.sh. */
  2309. struct buf { int x; };
  2310. struct buf * (*rcsopen) (struct buf *, struct stat *, int);
  2311. static char *e (char **p, int i)
  2312. {
  2313. return p[i];
  2314. }
  2315. static char *f (char * (*g) (char **, int), char **p, ...)
  2316. {
  2317. char *s;
  2318. va_list v;
  2319. va_start (v,p);
  2320. s = g (p, va_arg (v,int));
  2321. va_end (v);
  2322. return s;
  2323. }
  2324. /* C89 style stringification. */
  2325. #define noexpand_stringify(a) #a
  2326. const char *stringified = noexpand_stringify(arbitrary+token=sequence);
  2327. /* C89 style token pasting. Exercises some of the corner cases that
  2328. e.g. old MSVC gets wrong, but not very hard. */
  2329. #define noexpand_concat(a,b) a##b
  2330. #define expand_concat(a,b) noexpand_concat(a,b)
  2331. extern int vA;
  2332. extern int vbee;
  2333. #define aye A
  2334. #define bee B
  2335. int *pvA = &expand_concat(v,aye);
  2336. int *pvbee = &noexpand_concat(v,bee);
  2337. /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
  2338. function prototypes and stuff, but not \xHH hex character constants.
  2339. These do not provoke an error unfortunately, instead are silently treated
  2340. as an "x". The following induces an error, until -std is added to get
  2341. proper ANSI mode. Curiously \x00 != x always comes out true, for an
  2342. array size at least. It is necessary to write \x00 == 0 to get something
  2343. that is true only with -std. */
  2344. int osf4_cc_array ['\''\x00'\'' == 0 ? 1 : -1];
  2345. /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
  2346. inside strings and character constants. */
  2347. #define FOO(x) '\''x'\''
  2348. int xlc6_cc_array[FOO(a) == '\''x'\'' ? 1 : -1];
  2349. int test (int i, double x);
  2350. struct s1 {int (*f) (int a);};
  2351. struct s2 {int (*f) (double a);};
  2352. int pairnames (int, char **, int *(*)(struct buf *, struct stat *, int),
  2353. int, int);'
  2354. # Test code for whether the C compiler supports C89 (body of main).
  2355. ac_c_conftest_c89_main='
  2356. ok |= (argc == 0 || f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]);
  2357. '
  2358. # Test code for whether the C compiler supports C99 (global declarations)
  2359. ac_c_conftest_c99_globals='
  2360. /* Does the compiler advertise C99 conformance? */
  2361. #if !defined __STDC_VERSION__ || __STDC_VERSION__ < 199901L
  2362. # error "Compiler does not advertise C99 conformance"
  2363. #endif
  2364. // See if C++-style comments work.
  2365. #include <stdbool.h>
  2366. extern int puts (const char *);
  2367. extern int printf (const char *, ...);
  2368. extern int dprintf (int, const char *, ...);
  2369. extern void *malloc (size_t);
  2370. extern void free (void *);
  2371. // Check varargs macros. These examples are taken from C99 6.10.3.5.
  2372. // dprintf is used instead of fprintf to avoid needing to declare
  2373. // FILE and stderr.
  2374. #define debug(...) dprintf (2, __VA_ARGS__)
  2375. #define showlist(...) puts (#__VA_ARGS__)
  2376. #define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
  2377. static void
  2378. test_varargs_macros (void)
  2379. {
  2380. int x = 1234;
  2381. int y = 5678;
  2382. debug ("Flag");
  2383. debug ("X = %d\n", x);
  2384. showlist (The first, second, and third items.);
  2385. report (x>y, "x is %d but y is %d", x, y);
  2386. }
  2387. // Check long long types.
  2388. #define BIG64 18446744073709551615ull
  2389. #define BIG32 4294967295ul
  2390. #define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
  2391. #if !BIG_OK
  2392. #error "your preprocessor is broken"
  2393. #endif
  2394. #if BIG_OK
  2395. #else
  2396. #error "your preprocessor is broken"
  2397. #endif
  2398. static long long int bignum = -9223372036854775807LL;
  2399. static unsigned long long int ubignum = BIG64;
  2400. struct incomplete_array
  2401. {
  2402. int datasize;
  2403. double data[];
  2404. };
  2405. struct named_init {
  2406. int number;
  2407. const wchar_t *name;
  2408. double average;
  2409. };
  2410. typedef const char *ccp;
  2411. static inline int
  2412. test_restrict (ccp restrict text)
  2413. {
  2414. // Iterate through items via the restricted pointer.
  2415. // Also check for declarations in for loops.
  2416. for (unsigned int i = 0; *(text+i) != '\''\0'\''; ++i)
  2417. continue;
  2418. return 0;
  2419. }
  2420. // Check varargs and va_copy.
  2421. static bool
  2422. test_varargs (const char *format, ...)
  2423. {
  2424. va_list args;
  2425. va_start (args, format);
  2426. va_list args_copy;
  2427. va_copy (args_copy, args);
  2428. const char *str = "";
  2429. int number = 0;
  2430. float fnumber = 0;
  2431. while (*format)
  2432. {
  2433. switch (*format++)
  2434. {
  2435. case '\''s'\'': // string
  2436. str = va_arg (args_copy, const char *);
  2437. break;
  2438. case '\''d'\'': // int
  2439. number = va_arg (args_copy, int);
  2440. break;
  2441. case '\''f'\'': // float
  2442. fnumber = va_arg (args_copy, double);
  2443. break;
  2444. default:
  2445. break;
  2446. }
  2447. }
  2448. va_end (args_copy);
  2449. va_end (args);
  2450. return *str && number && fnumber;
  2451. }
  2452. '
  2453. # Test code for whether the C compiler supports C99 (body of main).
  2454. ac_c_conftest_c99_main='
  2455. // Check bool.
  2456. _Bool success = false;
  2457. success |= (argc != 0);
  2458. // Check restrict.
  2459. if (test_restrict ("String literal") == 0)
  2460. success = true;
  2461. char *restrict newvar = "Another string";
  2462. // Check varargs.
  2463. success &= test_varargs ("s, d'\'' f .", "string", 65, 34.234);
  2464. test_varargs_macros ();
  2465. // Check flexible array members.
  2466. struct incomplete_array *ia =
  2467. malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
  2468. ia->datasize = 10;
  2469. for (int i = 0; i < ia->datasize; ++i)
  2470. ia->data[i] = i * 1.234;
  2471. // Work around memory leak warnings.
  2472. free (ia);
  2473. // Check named initializers.
  2474. struct named_init ni = {
  2475. .number = 34,
  2476. .name = L"Test wide string",
  2477. .average = 543.34343,
  2478. };
  2479. ni.number = 58;
  2480. int dynamic_array[ni.number];
  2481. dynamic_array[0] = argv[0][0];
  2482. dynamic_array[ni.number - 1] = 543;
  2483. // work around unused variable warnings
  2484. ok |= (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == '\''x'\''
  2485. || dynamic_array[ni.number - 1] != 543);
  2486. '
  2487. # Test code for whether the C compiler supports C11 (global declarations)
  2488. ac_c_conftest_c11_globals='
  2489. /* Does the compiler advertise C11 conformance? */
  2490. #if !defined __STDC_VERSION__ || __STDC_VERSION__ < 201112L
  2491. # error "Compiler does not advertise C11 conformance"
  2492. #endif
  2493. // Check _Alignas.
  2494. char _Alignas (double) aligned_as_double;
  2495. char _Alignas (0) no_special_alignment;
  2496. extern char aligned_as_int;
  2497. char _Alignas (0) _Alignas (int) aligned_as_int;
  2498. // Check _Alignof.
  2499. enum
  2500. {
  2501. int_alignment = _Alignof (int),
  2502. int_array_alignment = _Alignof (int[100]),
  2503. char_alignment = _Alignof (char)
  2504. };
  2505. _Static_assert (0 < -_Alignof (int), "_Alignof is signed");
  2506. // Check _Noreturn.
  2507. int _Noreturn does_not_return (void) { for (;;) continue; }
  2508. // Check _Static_assert.
  2509. struct test_static_assert
  2510. {
  2511. int x;
  2512. _Static_assert (sizeof (int) <= sizeof (long int),
  2513. "_Static_assert does not work in struct");
  2514. long int y;
  2515. };
  2516. // Check UTF-8 literals.
  2517. #define u8 syntax error!
  2518. char const utf8_literal[] = u8"happens to be ASCII" "another string";
  2519. // Check duplicate typedefs.
  2520. typedef long *long_ptr;
  2521. typedef long int *long_ptr;
  2522. typedef long_ptr long_ptr;
  2523. // Anonymous structures and unions -- taken from C11 6.7.2.1 Example 1.
  2524. struct anonymous
  2525. {
  2526. union {
  2527. struct { int i; int j; };
  2528. struct { int k; long int l; } w;
  2529. };
  2530. int m;
  2531. } v1;
  2532. '
  2533. # Test code for whether the C compiler supports C11 (body of main).
  2534. ac_c_conftest_c11_main='
  2535. _Static_assert ((offsetof (struct anonymous, i)
  2536. == offsetof (struct anonymous, w.k)),
  2537. "Anonymous union alignment botch");
  2538. v1.i = 2;
  2539. v1.w.k = 5;
  2540. ok |= v1.i != 5;
  2541. '
  2542. # Test code for whether the C compiler supports C11 (complete).
  2543. ac_c_conftest_c11_program="${ac_c_conftest_c89_globals}
  2544. ${ac_c_conftest_c99_globals}
  2545. ${ac_c_conftest_c11_globals}
  2546. int
  2547. main (int argc, char **argv)
  2548. {
  2549. int ok = 0;
  2550. ${ac_c_conftest_c89_main}
  2551. ${ac_c_conftest_c99_main}
  2552. ${ac_c_conftest_c11_main}
  2553. return ok;
  2554. }
  2555. "
  2556. # Test code for whether the C compiler supports C99 (complete).
  2557. ac_c_conftest_c99_program="${ac_c_conftest_c89_globals}
  2558. ${ac_c_conftest_c99_globals}
  2559. int
  2560. main (int argc, char **argv)
  2561. {
  2562. int ok = 0;
  2563. ${ac_c_conftest_c89_main}
  2564. ${ac_c_conftest_c99_main}
  2565. return ok;
  2566. }
  2567. "
  2568. # Test code for whether the C compiler supports C89 (complete).
  2569. ac_c_conftest_c89_program="${ac_c_conftest_c89_globals}
  2570. int
  2571. main (int argc, char **argv)
  2572. {
  2573. int ok = 0;
  2574. ${ac_c_conftest_c89_main}
  2575. return ok;
  2576. }
  2577. "
  2578. as_fn_append ac_header_c_list " stdlib.h stdlib_h HAVE_STDLIB_H"
  2579. as_fn_append ac_header_c_list " string.h string_h HAVE_STRING_H"
  2580. as_fn_append ac_header_c_list " inttypes.h inttypes_h HAVE_INTTYPES_H"
  2581. as_fn_append ac_header_c_list " stdint.h stdint_h HAVE_STDINT_H"
  2582. as_fn_append ac_header_c_list " strings.h strings_h HAVE_STRINGS_H"
  2583. as_fn_append ac_header_c_list " sys/stat.h sys_stat_h HAVE_SYS_STAT_H"
  2584. as_fn_append ac_header_c_list " sys/types.h sys_types_h HAVE_SYS_TYPES_H"
  2585. as_fn_append ac_header_c_list " unistd.h unistd_h HAVE_UNISTD_H"
  2586. as_fn_append ac_header_c_list " wchar.h wchar_h HAVE_WCHAR_H"
  2587. as_fn_append ac_header_c_list " minix/config.h minix_config_h HAVE_MINIX_CONFIG_H"
  2588. # Auxiliary files required by this configure script.
  2589. ac_aux_files="config.guess config.sub ltmain.sh install-sh"
  2590. # Locations in which to look for auxiliary files.
  2591. ac_aux_dir_candidates="${srcdir}${PATH_SEPARATOR}${srcdir}/..${PATH_SEPARATOR}${srcdir}/../.."
  2592. # Search for a directory containing all of the required auxiliary files,
  2593. # $ac_aux_files, from the $PATH-style list $ac_aux_dir_candidates.
  2594. # If we don't find one directory that contains all the files we need,
  2595. # we report the set of missing files from the *first* directory in
  2596. # $ac_aux_dir_candidates and give up.
  2597. ac_missing_aux_files=""
  2598. ac_first_candidate=:
  2599. printf "%s\n" "$as_me:${as_lineno-$LINENO}: looking for aux files: $ac_aux_files" >&5
  2600. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2601. as_found=false
  2602. for as_dir in $ac_aux_dir_candidates
  2603. do
  2604. IFS=$as_save_IFS
  2605. case $as_dir in #(((
  2606. '') as_dir=./ ;;
  2607. */) ;;
  2608. *) as_dir=$as_dir/ ;;
  2609. esac
  2610. as_found=:
  2611. printf "%s\n" "$as_me:${as_lineno-$LINENO}: trying $as_dir" >&5
  2612. ac_aux_dir_found=yes
  2613. ac_install_sh=
  2614. for ac_aux in $ac_aux_files
  2615. do
  2616. # As a special case, if "install-sh" is required, that requirement
  2617. # can be satisfied by any of "install-sh", "install.sh", or "shtool",
  2618. # and $ac_install_sh is set appropriately for whichever one is found.
  2619. if test x"$ac_aux" = x"install-sh"
  2620. then
  2621. if test -f "${as_dir}install-sh"; then
  2622. printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}install-sh found" >&5
  2623. ac_install_sh="${as_dir}install-sh -c"
  2624. elif test -f "${as_dir}install.sh"; then
  2625. printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}install.sh found" >&5
  2626. ac_install_sh="${as_dir}install.sh -c"
  2627. elif test -f "${as_dir}shtool"; then
  2628. printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}shtool found" >&5
  2629. ac_install_sh="${as_dir}shtool install -c"
  2630. else
  2631. ac_aux_dir_found=no
  2632. if $ac_first_candidate; then
  2633. ac_missing_aux_files="${ac_missing_aux_files} install-sh"
  2634. else
  2635. break
  2636. fi
  2637. fi
  2638. else
  2639. if test -f "${as_dir}${ac_aux}"; then
  2640. printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}${ac_aux} found" >&5
  2641. else
  2642. ac_aux_dir_found=no
  2643. if $ac_first_candidate; then
  2644. ac_missing_aux_files="${ac_missing_aux_files} ${ac_aux}"
  2645. else
  2646. break
  2647. fi
  2648. fi
  2649. fi
  2650. done
  2651. if test "$ac_aux_dir_found" = yes; then
  2652. ac_aux_dir="$as_dir"
  2653. break
  2654. fi
  2655. ac_first_candidate=false
  2656. as_found=false
  2657. done
  2658. IFS=$as_save_IFS
  2659. if $as_found
  2660. then :
  2661. else case e in #(
  2662. e) as_fn_error $? "cannot find required auxiliary files:$ac_missing_aux_files" "$LINENO" 5 ;;
  2663. esac
  2664. fi
  2665. # These three variables are undocumented and unsupported,
  2666. # and are intended to be withdrawn in a future Autoconf release.
  2667. # They can cause serious problems if a builder's source tree is in a directory
  2668. # whose full name contains unusual characters.
  2669. if test -f "${ac_aux_dir}config.guess"; then
  2670. ac_config_guess="$SHELL ${ac_aux_dir}config.guess"
  2671. fi
  2672. if test -f "${ac_aux_dir}config.sub"; then
  2673. ac_config_sub="$SHELL ${ac_aux_dir}config.sub"
  2674. fi
  2675. if test -f "$ac_aux_dir/configure"; then
  2676. ac_configure="$SHELL ${ac_aux_dir}configure"
  2677. fi
  2678. # Check that the precious variables saved in the cache have kept the same
  2679. # value.
  2680. ac_cache_corrupted=false
  2681. for ac_var in $ac_precious_vars; do
  2682. eval ac_old_set=\$ac_cv_env_${ac_var}_set
  2683. eval ac_new_set=\$ac_env_${ac_var}_set
  2684. eval ac_old_val=\$ac_cv_env_${ac_var}_value
  2685. eval ac_new_val=\$ac_env_${ac_var}_value
  2686. case $ac_old_set,$ac_new_set in
  2687. set,)
  2688. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: '$ac_var' was set to '$ac_old_val' in the previous run" >&5
  2689. printf "%s\n" "$as_me: error: '$ac_var' was set to '$ac_old_val' in the previous run" >&2;}
  2690. ac_cache_corrupted=: ;;
  2691. ,set)
  2692. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: '$ac_var' was not set in the previous run" >&5
  2693. printf "%s\n" "$as_me: error: '$ac_var' was not set in the previous run" >&2;}
  2694. ac_cache_corrupted=: ;;
  2695. ,);;
  2696. *)
  2697. if test "x$ac_old_val" != "x$ac_new_val"; then
  2698. # differences in whitespace do not lead to failure.
  2699. ac_old_val_w=`echo x $ac_old_val`
  2700. ac_new_val_w=`echo x $ac_new_val`
  2701. if test "$ac_old_val_w" != "$ac_new_val_w"; then
  2702. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: '$ac_var' has changed since the previous run:" >&5
  2703. printf "%s\n" "$as_me: error: '$ac_var' has changed since the previous run:" >&2;}
  2704. ac_cache_corrupted=:
  2705. else
  2706. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in '$ac_var' since the previous run:" >&5
  2707. printf "%s\n" "$as_me: warning: ignoring whitespace changes in '$ac_var' since the previous run:" >&2;}
  2708. eval $ac_var=\$ac_old_val
  2709. fi
  2710. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: former value: '$ac_old_val'" >&5
  2711. printf "%s\n" "$as_me: former value: '$ac_old_val'" >&2;}
  2712. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: current value: '$ac_new_val'" >&5
  2713. printf "%s\n" "$as_me: current value: '$ac_new_val'" >&2;}
  2714. fi;;
  2715. esac
  2716. # Pass precious variables to config.status.
  2717. if test "$ac_new_set" = set; then
  2718. case $ac_new_val in
  2719. *\'*) ac_arg=$ac_var=`printf "%s\n" "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
  2720. *) ac_arg=$ac_var=$ac_new_val ;;
  2721. esac
  2722. case " $ac_configure_args " in
  2723. *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
  2724. *) as_fn_append ac_configure_args " '$ac_arg'" ;;
  2725. esac
  2726. fi
  2727. done
  2728. if $ac_cache_corrupted; then
  2729. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
  2730. printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
  2731. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
  2732. printf "%s\n" "$as_me: error: changes in the environment can compromise the build" >&2;}
  2733. as_fn_error $? "run '${MAKE-make} distclean' and/or 'rm $cache_file'
  2734. and start over" "$LINENO" 5
  2735. fi
  2736. ## -------------------- ##
  2737. ## Main body of script. ##
  2738. ## -------------------- ##
  2739. ac_ext=c
  2740. ac_cpp='$CPP $CPPFLAGS'
  2741. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  2742. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  2743. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  2744. ac_config_headers="$ac_config_headers config.h"
  2745. # Check whether --with-libs was given.
  2746. if test ${with_libs+y}
  2747. then :
  2748. withval=$with_libs; case $with_libs in
  2749. yes|no) as_fn_error $? "--with-libs must be passed a directory argument" "$LINENO" 5 ;;
  2750. *) ne_save_IFS=$IFS; IFS=:
  2751. for dir in $with_libs; do
  2752. ne_add_CPPFLAGS="$ne_add_CPPFLAGS -I${dir}/include"
  2753. ne_add_LDFLAGS="$ne_add_LDFLAGS -L${dir}/lib"
  2754. ne_add_PATH="${ne_add_PATH}${dir}/bin:"
  2755. PKG_CONFIG_PATH=${PKG_CONFIG_PATH}${PKG_CONFIG_PATH+:}${dir}/lib/pkgconfig
  2756. done
  2757. IFS=$ne_save_IFS
  2758. CPPFLAGS="${ne_add_CPPFLAGS} $CPPFLAGS"
  2759. LDFLAGS="${ne_add_LDFLAGS} $LDFLAGS"
  2760. PATH=${ne_add_PATH}$PATH
  2761. export PKG_CONFIG_PATH ;;
  2762. esac
  2763. fi
  2764. # Pass through initial LDFLAGS verbatim to neon-config, so that extra
  2765. # libraries which are detected (e.g. OpenSSL) can still be found when
  2766. # building using the --libs output of neon-config.
  2767. user_LDFLAGS=$LDFLAGS
  2768. # By default, allow 'make install' to work.
  2769. ALLOW_INSTALL=yes
  2770. printf "%s\n" "#define _GNU_SOURCE 1" >>confdefs.h
  2771. printf "%s\n" "#define NEON_IS_LIBRARY 1" >>confdefs.h
  2772. # Find a good install program. We prefer a C program (faster),
  2773. # so one script is as good as another. But avoid the broken or
  2774. # incompatible versions:
  2775. # SysV /etc/install, /usr/sbin/install
  2776. # SunOS /usr/etc/install
  2777. # IRIX /sbin/install
  2778. # AIX /bin/install
  2779. # AmigaOS /C/install, which installs bootblocks on floppy discs
  2780. # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
  2781. # AFS /usr/afsws/bin/install, which mishandles nonexistent args
  2782. # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
  2783. # OS/2's system install, which has a completely different semantic
  2784. # ./install, which can be erroneously created by make from ./install.sh.
  2785. # Reject install programs that cannot install multiple files.
  2786. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
  2787. printf %s "checking for a BSD-compatible install... " >&6; }
  2788. if test -z "$INSTALL"; then
  2789. if test ${ac_cv_path_install+y}
  2790. then :
  2791. printf %s "(cached) " >&6
  2792. else case e in #(
  2793. e) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2794. for as_dir in $PATH
  2795. do
  2796. IFS=$as_save_IFS
  2797. case $as_dir in #(((
  2798. '') as_dir=./ ;;
  2799. */) ;;
  2800. *) as_dir=$as_dir/ ;;
  2801. esac
  2802. # Account for fact that we put trailing slashes in our PATH walk.
  2803. case $as_dir in #((
  2804. ./ | /[cC]/* | \
  2805. /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
  2806. ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
  2807. /usr/ucb/* ) ;;
  2808. *)
  2809. # OSF1 and SCO ODT 3.0 have their own names for install.
  2810. # Don't use installbsd from OSF since it installs stuff as root
  2811. # by default.
  2812. for ac_prog in ginstall scoinst install; do
  2813. for ac_exec_ext in '' $ac_executable_extensions; do
  2814. if as_fn_executable_p "$as_dir$ac_prog$ac_exec_ext"; then
  2815. if test $ac_prog = install &&
  2816. grep dspmsg "$as_dir$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
  2817. # AIX install. It has an incompatible calling convention.
  2818. :
  2819. elif test $ac_prog = install &&
  2820. grep pwplus "$as_dir$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
  2821. # program-specific install script used by HP pwplus--don't use.
  2822. :
  2823. else
  2824. rm -rf conftest.one conftest.two conftest.dir
  2825. echo one > conftest.one
  2826. echo two > conftest.two
  2827. mkdir conftest.dir
  2828. if "$as_dir$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir/" &&
  2829. test -s conftest.one && test -s conftest.two &&
  2830. test -s conftest.dir/conftest.one &&
  2831. test -s conftest.dir/conftest.two
  2832. then
  2833. ac_cv_path_install="$as_dir$ac_prog$ac_exec_ext -c"
  2834. break 3
  2835. fi
  2836. fi
  2837. fi
  2838. done
  2839. done
  2840. ;;
  2841. esac
  2842. done
  2843. IFS=$as_save_IFS
  2844. rm -rf conftest.one conftest.two conftest.dir
  2845. ;;
  2846. esac
  2847. fi
  2848. if test ${ac_cv_path_install+y}; then
  2849. INSTALL=$ac_cv_path_install
  2850. else
  2851. # As a last resort, use the slow shell script. Don't cache a
  2852. # value for INSTALL within a source directory, because that will
  2853. # break other packages using the cache if that directory is
  2854. # removed, or if the value is a relative name.
  2855. INSTALL=$ac_install_sh
  2856. fi
  2857. fi
  2858. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
  2859. printf "%s\n" "$INSTALL" >&6; }
  2860. # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
  2861. # It thinks the first close brace ends the variable substitution.
  2862. test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
  2863. test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
  2864. test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
  2865. # Check whether --enable-webdav was given.
  2866. if test ${enable_webdav+y}
  2867. then :
  2868. enableval=$enable_webdav;
  2869. fi
  2870. if test "$enable_webdav" = "no"; then
  2871. neon_no_webdav=yes
  2872. neon_no_acl=yes
  2873. NEON_NEED_XML_PARSER=no
  2874. neon_xml_parser_message="none needed"
  2875. else
  2876. # Yes, we do need an XML parser. The _BUNDLED macros handle
  2877. # this normally.
  2878. NEON_NEED_XML_PARSER=yes
  2879. fi
  2880. # The bundled macros also set this, which makes sure we recurse
  2881. # into the 'src' directory.
  2882. NEON_BUILD_BUNDLED=yes
  2883. # Define NEON_VERSION etc and make the appropriate substitutions.
  2884. # Define the current versions.
  2885. NE_VERSION_MAJOR=0
  2886. NE_VERSION_MINOR=36
  2887. NE_VERSION_PATCH=0
  2888. NE_VERSION_TAG=
  2889. # 0.36.x is backwards-compatible to 0.27.x, so AGE=9
  2890. NE_LIBTOOL_VERSINFO="36:${NE_VERSION_PATCH}:9"
  2891. NEON_VERSION="${NE_VERSION_MAJOR}.${NE_VERSION_MINOR}.${NE_VERSION_PATCH}${NE_VERSION_TAG}"
  2892. printf "%s\n" "#define NEON_VERSION \"${NEON_VERSION}\"" >>confdefs.h
  2893. printf "%s\n" "#define NE_VERSION_MAJOR (${NE_VERSION_MAJOR})" >>confdefs.h
  2894. printf "%s\n" "#define NE_VERSION_MINOR (${NE_VERSION_MINOR})" >>confdefs.h
  2895. printf "%s\n" "#define NE_VERSION_PATCH (${NE_VERSION_PATCH})" >>confdefs.h
  2896. ac_ext=c
  2897. ac_cpp='$CPP $CPPFLAGS'
  2898. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  2899. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  2900. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  2901. if test -n "$ac_tool_prefix"; then
  2902. # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
  2903. set dummy ${ac_tool_prefix}gcc; ac_word=$2
  2904. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2905. printf %s "checking for $ac_word... " >&6; }
  2906. if test ${ac_cv_prog_CC+y}
  2907. then :
  2908. printf %s "(cached) " >&6
  2909. else case e in #(
  2910. e) if test -n "$CC"; then
  2911. ac_cv_prog_CC="$CC" # Let the user override the test.
  2912. else
  2913. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2914. for as_dir in $PATH
  2915. do
  2916. IFS=$as_save_IFS
  2917. case $as_dir in #(((
  2918. '') as_dir=./ ;;
  2919. */) ;;
  2920. *) as_dir=$as_dir/ ;;
  2921. esac
  2922. for ac_exec_ext in '' $ac_executable_extensions; do
  2923. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  2924. ac_cv_prog_CC="${ac_tool_prefix}gcc"
  2925. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  2926. break 2
  2927. fi
  2928. done
  2929. done
  2930. IFS=$as_save_IFS
  2931. fi ;;
  2932. esac
  2933. fi
  2934. CC=$ac_cv_prog_CC
  2935. if test -n "$CC"; then
  2936. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  2937. printf "%s\n" "$CC" >&6; }
  2938. else
  2939. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2940. printf "%s\n" "no" >&6; }
  2941. fi
  2942. fi
  2943. if test -z "$ac_cv_prog_CC"; then
  2944. ac_ct_CC=$CC
  2945. # Extract the first word of "gcc", so it can be a program name with args.
  2946. set dummy gcc; ac_word=$2
  2947. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2948. printf %s "checking for $ac_word... " >&6; }
  2949. if test ${ac_cv_prog_ac_ct_CC+y}
  2950. then :
  2951. printf %s "(cached) " >&6
  2952. else case e in #(
  2953. e) if test -n "$ac_ct_CC"; then
  2954. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  2955. else
  2956. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2957. for as_dir in $PATH
  2958. do
  2959. IFS=$as_save_IFS
  2960. case $as_dir in #(((
  2961. '') as_dir=./ ;;
  2962. */) ;;
  2963. *) as_dir=$as_dir/ ;;
  2964. esac
  2965. for ac_exec_ext in '' $ac_executable_extensions; do
  2966. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  2967. ac_cv_prog_ac_ct_CC="gcc"
  2968. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  2969. break 2
  2970. fi
  2971. done
  2972. done
  2973. IFS=$as_save_IFS
  2974. fi ;;
  2975. esac
  2976. fi
  2977. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  2978. if test -n "$ac_ct_CC"; then
  2979. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
  2980. printf "%s\n" "$ac_ct_CC" >&6; }
  2981. else
  2982. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2983. printf "%s\n" "no" >&6; }
  2984. fi
  2985. if test "x$ac_ct_CC" = x; then
  2986. CC=""
  2987. else
  2988. case $cross_compiling:$ac_tool_warned in
  2989. yes:)
  2990. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  2991. printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  2992. ac_tool_warned=yes ;;
  2993. esac
  2994. CC=$ac_ct_CC
  2995. fi
  2996. else
  2997. CC="$ac_cv_prog_CC"
  2998. fi
  2999. if test -z "$CC"; then
  3000. if test -n "$ac_tool_prefix"; then
  3001. # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
  3002. set dummy ${ac_tool_prefix}cc; ac_word=$2
  3003. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3004. printf %s "checking for $ac_word... " >&6; }
  3005. if test ${ac_cv_prog_CC+y}
  3006. then :
  3007. printf %s "(cached) " >&6
  3008. else case e in #(
  3009. e) if test -n "$CC"; then
  3010. ac_cv_prog_CC="$CC" # Let the user override the test.
  3011. else
  3012. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3013. for as_dir in $PATH
  3014. do
  3015. IFS=$as_save_IFS
  3016. case $as_dir in #(((
  3017. '') as_dir=./ ;;
  3018. */) ;;
  3019. *) as_dir=$as_dir/ ;;
  3020. esac
  3021. for ac_exec_ext in '' $ac_executable_extensions; do
  3022. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  3023. ac_cv_prog_CC="${ac_tool_prefix}cc"
  3024. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  3025. break 2
  3026. fi
  3027. done
  3028. done
  3029. IFS=$as_save_IFS
  3030. fi ;;
  3031. esac
  3032. fi
  3033. CC=$ac_cv_prog_CC
  3034. if test -n "$CC"; then
  3035. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  3036. printf "%s\n" "$CC" >&6; }
  3037. else
  3038. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3039. printf "%s\n" "no" >&6; }
  3040. fi
  3041. fi
  3042. fi
  3043. if test -z "$CC"; then
  3044. # Extract the first word of "cc", so it can be a program name with args.
  3045. set dummy cc; ac_word=$2
  3046. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3047. printf %s "checking for $ac_word... " >&6; }
  3048. if test ${ac_cv_prog_CC+y}
  3049. then :
  3050. printf %s "(cached) " >&6
  3051. else case e in #(
  3052. e) if test -n "$CC"; then
  3053. ac_cv_prog_CC="$CC" # Let the user override the test.
  3054. else
  3055. ac_prog_rejected=no
  3056. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3057. for as_dir in $PATH
  3058. do
  3059. IFS=$as_save_IFS
  3060. case $as_dir in #(((
  3061. '') as_dir=./ ;;
  3062. */) ;;
  3063. *) as_dir=$as_dir/ ;;
  3064. esac
  3065. for ac_exec_ext in '' $ac_executable_extensions; do
  3066. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  3067. if test "$as_dir$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
  3068. ac_prog_rejected=yes
  3069. continue
  3070. fi
  3071. ac_cv_prog_CC="cc"
  3072. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  3073. break 2
  3074. fi
  3075. done
  3076. done
  3077. IFS=$as_save_IFS
  3078. if test $ac_prog_rejected = yes; then
  3079. # We found a bogon in the path, so make sure we never use it.
  3080. set dummy $ac_cv_prog_CC
  3081. shift
  3082. if test $# != 0; then
  3083. # We chose a different compiler from the bogus one.
  3084. # However, it has the same basename, so the bogon will be chosen
  3085. # first if we set CC to just the basename; use the full file name.
  3086. shift
  3087. ac_cv_prog_CC="$as_dir$ac_word${1+' '}$@"
  3088. fi
  3089. fi
  3090. fi ;;
  3091. esac
  3092. fi
  3093. CC=$ac_cv_prog_CC
  3094. if test -n "$CC"; then
  3095. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  3096. printf "%s\n" "$CC" >&6; }
  3097. else
  3098. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3099. printf "%s\n" "no" >&6; }
  3100. fi
  3101. fi
  3102. if test -z "$CC"; then
  3103. if test -n "$ac_tool_prefix"; then
  3104. for ac_prog in cl.exe
  3105. do
  3106. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  3107. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  3108. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3109. printf %s "checking for $ac_word... " >&6; }
  3110. if test ${ac_cv_prog_CC+y}
  3111. then :
  3112. printf %s "(cached) " >&6
  3113. else case e in #(
  3114. e) if test -n "$CC"; then
  3115. ac_cv_prog_CC="$CC" # Let the user override the test.
  3116. else
  3117. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3118. for as_dir in $PATH
  3119. do
  3120. IFS=$as_save_IFS
  3121. case $as_dir in #(((
  3122. '') as_dir=./ ;;
  3123. */) ;;
  3124. *) as_dir=$as_dir/ ;;
  3125. esac
  3126. for ac_exec_ext in '' $ac_executable_extensions; do
  3127. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  3128. ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
  3129. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  3130. break 2
  3131. fi
  3132. done
  3133. done
  3134. IFS=$as_save_IFS
  3135. fi ;;
  3136. esac
  3137. fi
  3138. CC=$ac_cv_prog_CC
  3139. if test -n "$CC"; then
  3140. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  3141. printf "%s\n" "$CC" >&6; }
  3142. else
  3143. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3144. printf "%s\n" "no" >&6; }
  3145. fi
  3146. test -n "$CC" && break
  3147. done
  3148. fi
  3149. if test -z "$CC"; then
  3150. ac_ct_CC=$CC
  3151. for ac_prog in cl.exe
  3152. do
  3153. # Extract the first word of "$ac_prog", so it can be a program name with args.
  3154. set dummy $ac_prog; ac_word=$2
  3155. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3156. printf %s "checking for $ac_word... " >&6; }
  3157. if test ${ac_cv_prog_ac_ct_CC+y}
  3158. then :
  3159. printf %s "(cached) " >&6
  3160. else case e in #(
  3161. e) if test -n "$ac_ct_CC"; then
  3162. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  3163. else
  3164. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3165. for as_dir in $PATH
  3166. do
  3167. IFS=$as_save_IFS
  3168. case $as_dir in #(((
  3169. '') as_dir=./ ;;
  3170. */) ;;
  3171. *) as_dir=$as_dir/ ;;
  3172. esac
  3173. for ac_exec_ext in '' $ac_executable_extensions; do
  3174. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  3175. ac_cv_prog_ac_ct_CC="$ac_prog"
  3176. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  3177. break 2
  3178. fi
  3179. done
  3180. done
  3181. IFS=$as_save_IFS
  3182. fi ;;
  3183. esac
  3184. fi
  3185. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  3186. if test -n "$ac_ct_CC"; then
  3187. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
  3188. printf "%s\n" "$ac_ct_CC" >&6; }
  3189. else
  3190. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3191. printf "%s\n" "no" >&6; }
  3192. fi
  3193. test -n "$ac_ct_CC" && break
  3194. done
  3195. if test "x$ac_ct_CC" = x; then
  3196. CC=""
  3197. else
  3198. case $cross_compiling:$ac_tool_warned in
  3199. yes:)
  3200. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  3201. printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  3202. ac_tool_warned=yes ;;
  3203. esac
  3204. CC=$ac_ct_CC
  3205. fi
  3206. fi
  3207. fi
  3208. if test -z "$CC"; then
  3209. if test -n "$ac_tool_prefix"; then
  3210. # Extract the first word of "${ac_tool_prefix}clang", so it can be a program name with args.
  3211. set dummy ${ac_tool_prefix}clang; ac_word=$2
  3212. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3213. printf %s "checking for $ac_word... " >&6; }
  3214. if test ${ac_cv_prog_CC+y}
  3215. then :
  3216. printf %s "(cached) " >&6
  3217. else case e in #(
  3218. e) if test -n "$CC"; then
  3219. ac_cv_prog_CC="$CC" # Let the user override the test.
  3220. else
  3221. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3222. for as_dir in $PATH
  3223. do
  3224. IFS=$as_save_IFS
  3225. case $as_dir in #(((
  3226. '') as_dir=./ ;;
  3227. */) ;;
  3228. *) as_dir=$as_dir/ ;;
  3229. esac
  3230. for ac_exec_ext in '' $ac_executable_extensions; do
  3231. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  3232. ac_cv_prog_CC="${ac_tool_prefix}clang"
  3233. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  3234. break 2
  3235. fi
  3236. done
  3237. done
  3238. IFS=$as_save_IFS
  3239. fi ;;
  3240. esac
  3241. fi
  3242. CC=$ac_cv_prog_CC
  3243. if test -n "$CC"; then
  3244. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  3245. printf "%s\n" "$CC" >&6; }
  3246. else
  3247. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3248. printf "%s\n" "no" >&6; }
  3249. fi
  3250. fi
  3251. if test -z "$ac_cv_prog_CC"; then
  3252. ac_ct_CC=$CC
  3253. # Extract the first word of "clang", so it can be a program name with args.
  3254. set dummy clang; ac_word=$2
  3255. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3256. printf %s "checking for $ac_word... " >&6; }
  3257. if test ${ac_cv_prog_ac_ct_CC+y}
  3258. then :
  3259. printf %s "(cached) " >&6
  3260. else case e in #(
  3261. e) if test -n "$ac_ct_CC"; then
  3262. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  3263. else
  3264. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3265. for as_dir in $PATH
  3266. do
  3267. IFS=$as_save_IFS
  3268. case $as_dir in #(((
  3269. '') as_dir=./ ;;
  3270. */) ;;
  3271. *) as_dir=$as_dir/ ;;
  3272. esac
  3273. for ac_exec_ext in '' $ac_executable_extensions; do
  3274. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  3275. ac_cv_prog_ac_ct_CC="clang"
  3276. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  3277. break 2
  3278. fi
  3279. done
  3280. done
  3281. IFS=$as_save_IFS
  3282. fi ;;
  3283. esac
  3284. fi
  3285. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  3286. if test -n "$ac_ct_CC"; then
  3287. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
  3288. printf "%s\n" "$ac_ct_CC" >&6; }
  3289. else
  3290. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3291. printf "%s\n" "no" >&6; }
  3292. fi
  3293. if test "x$ac_ct_CC" = x; then
  3294. CC=""
  3295. else
  3296. case $cross_compiling:$ac_tool_warned in
  3297. yes:)
  3298. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  3299. printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  3300. ac_tool_warned=yes ;;
  3301. esac
  3302. CC=$ac_ct_CC
  3303. fi
  3304. else
  3305. CC="$ac_cv_prog_CC"
  3306. fi
  3307. fi
  3308. test -z "$CC" && { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
  3309. printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
  3310. as_fn_error $? "no acceptable C compiler found in \$PATH
  3311. See 'config.log' for more details" "$LINENO" 5; }
  3312. # Provide some information about the compiler.
  3313. printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
  3314. set X $ac_compile
  3315. ac_compiler=$2
  3316. for ac_option in --version -v -V -qversion -version; do
  3317. { { ac_try="$ac_compiler $ac_option >&5"
  3318. case "(($ac_try" in
  3319. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3320. *) ac_try_echo=$ac_try;;
  3321. esac
  3322. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3323. printf "%s\n" "$ac_try_echo"; } >&5
  3324. (eval "$ac_compiler $ac_option >&5") 2>conftest.err
  3325. ac_status=$?
  3326. if test -s conftest.err; then
  3327. sed '10a\
  3328. ... rest of stderr output deleted ...
  3329. 10q' conftest.err >conftest.er1
  3330. cat conftest.er1 >&5
  3331. fi
  3332. rm -f conftest.er1 conftest.err
  3333. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3334. test $ac_status = 0; }
  3335. done
  3336. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3337. /* end confdefs.h. */
  3338. int
  3339. main (void)
  3340. {
  3341. ;
  3342. return 0;
  3343. }
  3344. _ACEOF
  3345. ac_clean_files_save=$ac_clean_files
  3346. ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
  3347. # Try to create an executable without -o first, disregard a.out.
  3348. # It will help us diagnose broken compilers, and finding out an intuition
  3349. # of exeext.
  3350. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
  3351. printf %s "checking whether the C compiler works... " >&6; }
  3352. ac_link_default=`printf "%s\n" "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
  3353. # The possible output files:
  3354. ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
  3355. ac_rmfiles=
  3356. for ac_file in $ac_files
  3357. do
  3358. case $ac_file in
  3359. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
  3360. * ) ac_rmfiles="$ac_rmfiles $ac_file";;
  3361. esac
  3362. done
  3363. rm -f $ac_rmfiles
  3364. if { { ac_try="$ac_link_default"
  3365. case "(($ac_try" in
  3366. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3367. *) ac_try_echo=$ac_try;;
  3368. esac
  3369. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3370. printf "%s\n" "$ac_try_echo"; } >&5
  3371. (eval "$ac_link_default") 2>&5
  3372. ac_status=$?
  3373. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3374. test $ac_status = 0; }
  3375. then :
  3376. # Autoconf-2.13 could set the ac_cv_exeext variable to 'no'.
  3377. # So ignore a value of 'no', otherwise this would lead to 'EXEEXT = no'
  3378. # in a Makefile. We should not override ac_cv_exeext if it was cached,
  3379. # so that the user can short-circuit this test for compilers unknown to
  3380. # Autoconf.
  3381. for ac_file in $ac_files ''
  3382. do
  3383. test -f "$ac_file" || continue
  3384. case $ac_file in
  3385. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
  3386. ;;
  3387. [ab].out )
  3388. # We found the default executable, but exeext='' is most
  3389. # certainly right.
  3390. break;;
  3391. *.* )
  3392. if test ${ac_cv_exeext+y} && test "$ac_cv_exeext" != no;
  3393. then :; else
  3394. ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
  3395. fi
  3396. # We set ac_cv_exeext here because the later test for it is not
  3397. # safe: cross compilers may not add the suffix if given an '-o'
  3398. # argument, so we may need to know it at that point already.
  3399. # Even if this section looks crufty: it has the advantage of
  3400. # actually working.
  3401. break;;
  3402. * )
  3403. break;;
  3404. esac
  3405. done
  3406. test "$ac_cv_exeext" = no && ac_cv_exeext=
  3407. else case e in #(
  3408. e) ac_file='' ;;
  3409. esac
  3410. fi
  3411. if test -z "$ac_file"
  3412. then :
  3413. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3414. printf "%s\n" "no" >&6; }
  3415. printf "%s\n" "$as_me: failed program was:" >&5
  3416. sed 's/^/| /' conftest.$ac_ext >&5
  3417. { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
  3418. printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
  3419. as_fn_error 77 "C compiler cannot create executables
  3420. See 'config.log' for more details" "$LINENO" 5; }
  3421. else case e in #(
  3422. e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  3423. printf "%s\n" "yes" >&6; } ;;
  3424. esac
  3425. fi
  3426. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
  3427. printf %s "checking for C compiler default output file name... " >&6; }
  3428. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
  3429. printf "%s\n" "$ac_file" >&6; }
  3430. ac_exeext=$ac_cv_exeext
  3431. rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
  3432. ac_clean_files=$ac_clean_files_save
  3433. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
  3434. printf %s "checking for suffix of executables... " >&6; }
  3435. if { { ac_try="$ac_link"
  3436. case "(($ac_try" in
  3437. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3438. *) ac_try_echo=$ac_try;;
  3439. esac
  3440. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3441. printf "%s\n" "$ac_try_echo"; } >&5
  3442. (eval "$ac_link") 2>&5
  3443. ac_status=$?
  3444. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3445. test $ac_status = 0; }
  3446. then :
  3447. # If both 'conftest.exe' and 'conftest' are 'present' (well, observable)
  3448. # catch 'conftest.exe'. For instance with Cygwin, 'ls conftest' will
  3449. # work properly (i.e., refer to 'conftest.exe'), while it won't with
  3450. # 'rm'.
  3451. for ac_file in conftest.exe conftest conftest.*; do
  3452. test -f "$ac_file" || continue
  3453. case $ac_file in
  3454. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
  3455. *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
  3456. break;;
  3457. * ) break;;
  3458. esac
  3459. done
  3460. else case e in #(
  3461. e) { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
  3462. printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
  3463. as_fn_error $? "cannot compute suffix of executables: cannot compile and link
  3464. See 'config.log' for more details" "$LINENO" 5; } ;;
  3465. esac
  3466. fi
  3467. rm -f conftest conftest$ac_cv_exeext
  3468. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
  3469. printf "%s\n" "$ac_cv_exeext" >&6; }
  3470. rm -f conftest.$ac_ext
  3471. EXEEXT=$ac_cv_exeext
  3472. ac_exeext=$EXEEXT
  3473. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3474. /* end confdefs.h. */
  3475. #include <stdio.h>
  3476. int
  3477. main (void)
  3478. {
  3479. FILE *f = fopen ("conftest.out", "w");
  3480. if (!f)
  3481. return 1;
  3482. return ferror (f) || fclose (f) != 0;
  3483. ;
  3484. return 0;
  3485. }
  3486. _ACEOF
  3487. ac_clean_files="$ac_clean_files conftest.out"
  3488. # Check that the compiler produces executables we can run. If not, either
  3489. # the compiler is broken, or we cross compile.
  3490. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
  3491. printf %s "checking whether we are cross compiling... " >&6; }
  3492. if test "$cross_compiling" != yes; then
  3493. { { ac_try="$ac_link"
  3494. case "(($ac_try" in
  3495. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3496. *) ac_try_echo=$ac_try;;
  3497. esac
  3498. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3499. printf "%s\n" "$ac_try_echo"; } >&5
  3500. (eval "$ac_link") 2>&5
  3501. ac_status=$?
  3502. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3503. test $ac_status = 0; }
  3504. if { ac_try='./conftest$ac_cv_exeext'
  3505. { { case "(($ac_try" in
  3506. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3507. *) ac_try_echo=$ac_try;;
  3508. esac
  3509. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3510. printf "%s\n" "$ac_try_echo"; } >&5
  3511. (eval "$ac_try") 2>&5
  3512. ac_status=$?
  3513. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3514. test $ac_status = 0; }; }; then
  3515. cross_compiling=no
  3516. else
  3517. if test "$cross_compiling" = maybe; then
  3518. cross_compiling=yes
  3519. else
  3520. { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
  3521. printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
  3522. as_fn_error 77 "cannot run C compiled programs.
  3523. If you meant to cross compile, use '--host'.
  3524. See 'config.log' for more details" "$LINENO" 5; }
  3525. fi
  3526. fi
  3527. fi
  3528. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
  3529. printf "%s\n" "$cross_compiling" >&6; }
  3530. rm -f conftest.$ac_ext conftest$ac_cv_exeext \
  3531. conftest.o conftest.obj conftest.out
  3532. ac_clean_files=$ac_clean_files_save
  3533. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
  3534. printf %s "checking for suffix of object files... " >&6; }
  3535. if test ${ac_cv_objext+y}
  3536. then :
  3537. printf %s "(cached) " >&6
  3538. else case e in #(
  3539. e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3540. /* end confdefs.h. */
  3541. int
  3542. main (void)
  3543. {
  3544. ;
  3545. return 0;
  3546. }
  3547. _ACEOF
  3548. rm -f conftest.o conftest.obj
  3549. if { { ac_try="$ac_compile"
  3550. case "(($ac_try" in
  3551. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3552. *) ac_try_echo=$ac_try;;
  3553. esac
  3554. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3555. printf "%s\n" "$ac_try_echo"; } >&5
  3556. (eval "$ac_compile") 2>&5
  3557. ac_status=$?
  3558. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3559. test $ac_status = 0; }
  3560. then :
  3561. for ac_file in conftest.o conftest.obj conftest.*; do
  3562. test -f "$ac_file" || continue;
  3563. case $ac_file in
  3564. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
  3565. *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
  3566. break;;
  3567. esac
  3568. done
  3569. else case e in #(
  3570. e) printf "%s\n" "$as_me: failed program was:" >&5
  3571. sed 's/^/| /' conftest.$ac_ext >&5
  3572. { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
  3573. printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
  3574. as_fn_error $? "cannot compute suffix of object files: cannot compile
  3575. See 'config.log' for more details" "$LINENO" 5; } ;;
  3576. esac
  3577. fi
  3578. rm -f conftest.$ac_cv_objext conftest.$ac_ext ;;
  3579. esac
  3580. fi
  3581. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
  3582. printf "%s\n" "$ac_cv_objext" >&6; }
  3583. OBJEXT=$ac_cv_objext
  3584. ac_objext=$OBJEXT
  3585. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports GNU C" >&5
  3586. printf %s "checking whether the compiler supports GNU C... " >&6; }
  3587. if test ${ac_cv_c_compiler_gnu+y}
  3588. then :
  3589. printf %s "(cached) " >&6
  3590. else case e in #(
  3591. e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3592. /* end confdefs.h. */
  3593. int
  3594. main (void)
  3595. {
  3596. #ifndef __GNUC__
  3597. choke me
  3598. #endif
  3599. ;
  3600. return 0;
  3601. }
  3602. _ACEOF
  3603. if ac_fn_c_try_compile "$LINENO"
  3604. then :
  3605. ac_compiler_gnu=yes
  3606. else case e in #(
  3607. e) ac_compiler_gnu=no ;;
  3608. esac
  3609. fi
  3610. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  3611. ac_cv_c_compiler_gnu=$ac_compiler_gnu
  3612. ;;
  3613. esac
  3614. fi
  3615. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
  3616. printf "%s\n" "$ac_cv_c_compiler_gnu" >&6; }
  3617. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  3618. if test $ac_compiler_gnu = yes; then
  3619. GCC=yes
  3620. else
  3621. GCC=
  3622. fi
  3623. ac_test_CFLAGS=${CFLAGS+y}
  3624. ac_save_CFLAGS=$CFLAGS
  3625. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
  3626. printf %s "checking whether $CC accepts -g... " >&6; }
  3627. if test ${ac_cv_prog_cc_g+y}
  3628. then :
  3629. printf %s "(cached) " >&6
  3630. else case e in #(
  3631. e) ac_save_c_werror_flag=$ac_c_werror_flag
  3632. ac_c_werror_flag=yes
  3633. ac_cv_prog_cc_g=no
  3634. CFLAGS="-g"
  3635. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3636. /* end confdefs.h. */
  3637. int
  3638. main (void)
  3639. {
  3640. ;
  3641. return 0;
  3642. }
  3643. _ACEOF
  3644. if ac_fn_c_try_compile "$LINENO"
  3645. then :
  3646. ac_cv_prog_cc_g=yes
  3647. else case e in #(
  3648. e) CFLAGS=""
  3649. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3650. /* end confdefs.h. */
  3651. int
  3652. main (void)
  3653. {
  3654. ;
  3655. return 0;
  3656. }
  3657. _ACEOF
  3658. if ac_fn_c_try_compile "$LINENO"
  3659. then :
  3660. else case e in #(
  3661. e) ac_c_werror_flag=$ac_save_c_werror_flag
  3662. CFLAGS="-g"
  3663. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3664. /* end confdefs.h. */
  3665. int
  3666. main (void)
  3667. {
  3668. ;
  3669. return 0;
  3670. }
  3671. _ACEOF
  3672. if ac_fn_c_try_compile "$LINENO"
  3673. then :
  3674. ac_cv_prog_cc_g=yes
  3675. fi
  3676. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
  3677. esac
  3678. fi
  3679. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
  3680. esac
  3681. fi
  3682. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  3683. ac_c_werror_flag=$ac_save_c_werror_flag ;;
  3684. esac
  3685. fi
  3686. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
  3687. printf "%s\n" "$ac_cv_prog_cc_g" >&6; }
  3688. if test $ac_test_CFLAGS; then
  3689. CFLAGS=$ac_save_CFLAGS
  3690. elif test $ac_cv_prog_cc_g = yes; then
  3691. if test "$GCC" = yes; then
  3692. CFLAGS="-g -O2"
  3693. else
  3694. CFLAGS="-g"
  3695. fi
  3696. else
  3697. if test "$GCC" = yes; then
  3698. CFLAGS="-O2"
  3699. else
  3700. CFLAGS=
  3701. fi
  3702. fi
  3703. ac_prog_cc_stdc=no
  3704. if test x$ac_prog_cc_stdc = xno
  3705. then :
  3706. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C11 features" >&5
  3707. printf %s "checking for $CC option to enable C11 features... " >&6; }
  3708. if test ${ac_cv_prog_cc_c11+y}
  3709. then :
  3710. printf %s "(cached) " >&6
  3711. else case e in #(
  3712. e) ac_cv_prog_cc_c11=no
  3713. ac_save_CC=$CC
  3714. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3715. /* end confdefs.h. */
  3716. $ac_c_conftest_c11_program
  3717. _ACEOF
  3718. for ac_arg in '' -std=gnu11
  3719. do
  3720. CC="$ac_save_CC $ac_arg"
  3721. if ac_fn_c_try_compile "$LINENO"
  3722. then :
  3723. ac_cv_prog_cc_c11=$ac_arg
  3724. fi
  3725. rm -f core conftest.err conftest.$ac_objext conftest.beam
  3726. test "x$ac_cv_prog_cc_c11" != "xno" && break
  3727. done
  3728. rm -f conftest.$ac_ext
  3729. CC=$ac_save_CC ;;
  3730. esac
  3731. fi
  3732. if test "x$ac_cv_prog_cc_c11" = xno
  3733. then :
  3734. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
  3735. printf "%s\n" "unsupported" >&6; }
  3736. else case e in #(
  3737. e) if test "x$ac_cv_prog_cc_c11" = x
  3738. then :
  3739. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
  3740. printf "%s\n" "none needed" >&6; }
  3741. else case e in #(
  3742. e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c11" >&5
  3743. printf "%s\n" "$ac_cv_prog_cc_c11" >&6; }
  3744. CC="$CC $ac_cv_prog_cc_c11" ;;
  3745. esac
  3746. fi
  3747. ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c11
  3748. ac_prog_cc_stdc=c11 ;;
  3749. esac
  3750. fi
  3751. fi
  3752. if test x$ac_prog_cc_stdc = xno
  3753. then :
  3754. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C99 features" >&5
  3755. printf %s "checking for $CC option to enable C99 features... " >&6; }
  3756. if test ${ac_cv_prog_cc_c99+y}
  3757. then :
  3758. printf %s "(cached) " >&6
  3759. else case e in #(
  3760. e) ac_cv_prog_cc_c99=no
  3761. ac_save_CC=$CC
  3762. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3763. /* end confdefs.h. */
  3764. $ac_c_conftest_c99_program
  3765. _ACEOF
  3766. for ac_arg in '' -std=gnu99 -std=c99 -c99 -qlanglvl=extc1x -qlanglvl=extc99 -AC99 -D_STDC_C99=
  3767. do
  3768. CC="$ac_save_CC $ac_arg"
  3769. if ac_fn_c_try_compile "$LINENO"
  3770. then :
  3771. ac_cv_prog_cc_c99=$ac_arg
  3772. fi
  3773. rm -f core conftest.err conftest.$ac_objext conftest.beam
  3774. test "x$ac_cv_prog_cc_c99" != "xno" && break
  3775. done
  3776. rm -f conftest.$ac_ext
  3777. CC=$ac_save_CC ;;
  3778. esac
  3779. fi
  3780. if test "x$ac_cv_prog_cc_c99" = xno
  3781. then :
  3782. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
  3783. printf "%s\n" "unsupported" >&6; }
  3784. else case e in #(
  3785. e) if test "x$ac_cv_prog_cc_c99" = x
  3786. then :
  3787. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
  3788. printf "%s\n" "none needed" >&6; }
  3789. else case e in #(
  3790. e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
  3791. printf "%s\n" "$ac_cv_prog_cc_c99" >&6; }
  3792. CC="$CC $ac_cv_prog_cc_c99" ;;
  3793. esac
  3794. fi
  3795. ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c99
  3796. ac_prog_cc_stdc=c99 ;;
  3797. esac
  3798. fi
  3799. fi
  3800. if test x$ac_prog_cc_stdc = xno
  3801. then :
  3802. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C89 features" >&5
  3803. printf %s "checking for $CC option to enable C89 features... " >&6; }
  3804. if test ${ac_cv_prog_cc_c89+y}
  3805. then :
  3806. printf %s "(cached) " >&6
  3807. else case e in #(
  3808. e) ac_cv_prog_cc_c89=no
  3809. ac_save_CC=$CC
  3810. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3811. /* end confdefs.h. */
  3812. $ac_c_conftest_c89_program
  3813. _ACEOF
  3814. for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
  3815. do
  3816. CC="$ac_save_CC $ac_arg"
  3817. if ac_fn_c_try_compile "$LINENO"
  3818. then :
  3819. ac_cv_prog_cc_c89=$ac_arg
  3820. fi
  3821. rm -f core conftest.err conftest.$ac_objext conftest.beam
  3822. test "x$ac_cv_prog_cc_c89" != "xno" && break
  3823. done
  3824. rm -f conftest.$ac_ext
  3825. CC=$ac_save_CC ;;
  3826. esac
  3827. fi
  3828. if test "x$ac_cv_prog_cc_c89" = xno
  3829. then :
  3830. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
  3831. printf "%s\n" "unsupported" >&6; }
  3832. else case e in #(
  3833. e) if test "x$ac_cv_prog_cc_c89" = x
  3834. then :
  3835. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
  3836. printf "%s\n" "none needed" >&6; }
  3837. else case e in #(
  3838. e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
  3839. printf "%s\n" "$ac_cv_prog_cc_c89" >&6; }
  3840. CC="$CC $ac_cv_prog_cc_c89" ;;
  3841. esac
  3842. fi
  3843. ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c89
  3844. ac_prog_cc_stdc=c89 ;;
  3845. esac
  3846. fi
  3847. fi
  3848. ac_ext=c
  3849. ac_cpp='$CPP $CPPFLAGS'
  3850. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  3851. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  3852. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  3853. ac_header= ac_cache=
  3854. for ac_item in $ac_header_c_list
  3855. do
  3856. if test $ac_cache; then
  3857. ac_fn_c_check_header_compile "$LINENO" $ac_header ac_cv_header_$ac_cache "$ac_includes_default"
  3858. if eval test \"x\$ac_cv_header_$ac_cache\" = xyes; then
  3859. printf "%s\n" "#define $ac_item 1" >> confdefs.h
  3860. fi
  3861. ac_header= ac_cache=
  3862. elif test $ac_header; then
  3863. ac_cache=$ac_item
  3864. else
  3865. ac_header=$ac_item
  3866. fi
  3867. done
  3868. if test $ac_cv_header_stdlib_h = yes && test $ac_cv_header_string_h = yes
  3869. then :
  3870. printf "%s\n" "#define STDC_HEADERS 1" >>confdefs.h
  3871. fi
  3872. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
  3873. printf %s "checking whether it is safe to define __EXTENSIONS__... " >&6; }
  3874. if test ${ac_cv_safe_to_define___extensions__+y}
  3875. then :
  3876. printf %s "(cached) " >&6
  3877. else case e in #(
  3878. e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3879. /* end confdefs.h. */
  3880. # define __EXTENSIONS__ 1
  3881. $ac_includes_default
  3882. int
  3883. main (void)
  3884. {
  3885. ;
  3886. return 0;
  3887. }
  3888. _ACEOF
  3889. if ac_fn_c_try_compile "$LINENO"
  3890. then :
  3891. ac_cv_safe_to_define___extensions__=yes
  3892. else case e in #(
  3893. e) ac_cv_safe_to_define___extensions__=no ;;
  3894. esac
  3895. fi
  3896. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
  3897. esac
  3898. fi
  3899. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
  3900. printf "%s\n" "$ac_cv_safe_to_define___extensions__" >&6; }
  3901. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether _XOPEN_SOURCE should be defined" >&5
  3902. printf %s "checking whether _XOPEN_SOURCE should be defined... " >&6; }
  3903. if test ${ac_cv_should_define__xopen_source+y}
  3904. then :
  3905. printf %s "(cached) " >&6
  3906. else case e in #(
  3907. e) ac_cv_should_define__xopen_source=no
  3908. if test $ac_cv_header_wchar_h = yes
  3909. then :
  3910. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3911. /* end confdefs.h. */
  3912. #include <wchar.h>
  3913. mbstate_t x;
  3914. int
  3915. main (void)
  3916. {
  3917. ;
  3918. return 0;
  3919. }
  3920. _ACEOF
  3921. if ac_fn_c_try_compile "$LINENO"
  3922. then :
  3923. else case e in #(
  3924. e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3925. /* end confdefs.h. */
  3926. #define _XOPEN_SOURCE 500
  3927. #include <wchar.h>
  3928. mbstate_t x;
  3929. int
  3930. main (void)
  3931. {
  3932. ;
  3933. return 0;
  3934. }
  3935. _ACEOF
  3936. if ac_fn_c_try_compile "$LINENO"
  3937. then :
  3938. ac_cv_should_define__xopen_source=yes
  3939. fi
  3940. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
  3941. esac
  3942. fi
  3943. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  3944. fi ;;
  3945. esac
  3946. fi
  3947. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_should_define__xopen_source" >&5
  3948. printf "%s\n" "$ac_cv_should_define__xopen_source" >&6; }
  3949. printf "%s\n" "#define _ALL_SOURCE 1" >>confdefs.h
  3950. printf "%s\n" "#define _DARWIN_C_SOURCE 1" >>confdefs.h
  3951. printf "%s\n" "#define _GNU_SOURCE 1" >>confdefs.h
  3952. printf "%s\n" "#define _HPUX_ALT_XOPEN_SOCKET_API 1" >>confdefs.h
  3953. printf "%s\n" "#define _NETBSD_SOURCE 1" >>confdefs.h
  3954. printf "%s\n" "#define _OPENBSD_SOURCE 1" >>confdefs.h
  3955. printf "%s\n" "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
  3956. printf "%s\n" "#define __STDC_WANT_IEC_60559_ATTRIBS_EXT__ 1" >>confdefs.h
  3957. printf "%s\n" "#define __STDC_WANT_IEC_60559_BFP_EXT__ 1" >>confdefs.h
  3958. printf "%s\n" "#define __STDC_WANT_IEC_60559_DFP_EXT__ 1" >>confdefs.h
  3959. printf "%s\n" "#define __STDC_WANT_IEC_60559_EXT__ 1" >>confdefs.h
  3960. printf "%s\n" "#define __STDC_WANT_IEC_60559_FUNCS_EXT__ 1" >>confdefs.h
  3961. printf "%s\n" "#define __STDC_WANT_IEC_60559_TYPES_EXT__ 1" >>confdefs.h
  3962. printf "%s\n" "#define __STDC_WANT_LIB_EXT2__ 1" >>confdefs.h
  3963. printf "%s\n" "#define __STDC_WANT_MATH_SPEC_FUNCS__ 1" >>confdefs.h
  3964. printf "%s\n" "#define _TANDEM_SOURCE 1" >>confdefs.h
  3965. if test $ac_cv_header_minix_config_h = yes
  3966. then :
  3967. MINIX=yes
  3968. printf "%s\n" "#define _MINIX 1" >>confdefs.h
  3969. printf "%s\n" "#define _POSIX_SOURCE 1" >>confdefs.h
  3970. printf "%s\n" "#define _POSIX_1_SOURCE 2" >>confdefs.h
  3971. else case e in #(
  3972. e) MINIX= ;;
  3973. esac
  3974. fi
  3975. if test $ac_cv_safe_to_define___extensions__ = yes
  3976. then :
  3977. printf "%s\n" "#define __EXTENSIONS__ 1" >>confdefs.h
  3978. fi
  3979. if test $ac_cv_should_define__xopen_source = yes
  3980. then :
  3981. printf "%s\n" "#define _XOPEN_SOURCE 500" >>confdefs.h
  3982. fi
  3983. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
  3984. printf %s "checking for inline... " >&6; }
  3985. if test ${ac_cv_c_inline+y}
  3986. then :
  3987. printf %s "(cached) " >&6
  3988. else case e in #(
  3989. e) ac_cv_c_inline=no
  3990. for ac_kw in inline __inline__ __inline; do
  3991. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3992. /* end confdefs.h. */
  3993. #ifndef __cplusplus
  3994. typedef int foo_t;
  3995. static $ac_kw foo_t static_foo (void) {return 0; }
  3996. $ac_kw foo_t foo (void) {return 0; }
  3997. #endif
  3998. _ACEOF
  3999. if ac_fn_c_try_compile "$LINENO"
  4000. then :
  4001. ac_cv_c_inline=$ac_kw
  4002. fi
  4003. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  4004. test "$ac_cv_c_inline" != no && break
  4005. done
  4006. ;;
  4007. esac
  4008. fi
  4009. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
  4010. printf "%s\n" "$ac_cv_c_inline" >&6; }
  4011. case $ac_cv_c_inline in
  4012. inline | yes) ;;
  4013. *)
  4014. case $ac_cv_c_inline in
  4015. no) ac_val=;;
  4016. *) ac_val=$ac_cv_c_inline;;
  4017. esac
  4018. cat >>confdefs.h <<_ACEOF
  4019. #ifndef __cplusplus
  4020. #define inline $ac_val
  4021. #endif
  4022. _ACEOF
  4023. ;;
  4024. esac
  4025. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
  4026. printf %s "checking for an ANSI C-conforming const... " >&6; }
  4027. if test ${ac_cv_c_const+y}
  4028. then :
  4029. printf %s "(cached) " >&6
  4030. else case e in #(
  4031. e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4032. /* end confdefs.h. */
  4033. int
  4034. main (void)
  4035. {
  4036. #ifndef __cplusplus
  4037. /* Ultrix mips cc rejects this sort of thing. */
  4038. typedef int charset[2];
  4039. const charset cs = { 0, 0 };
  4040. /* SunOS 4.1.1 cc rejects this. */
  4041. char const *const *pcpcc;
  4042. char **ppc;
  4043. /* NEC SVR4.0.2 mips cc rejects this. */
  4044. struct point {int x, y;};
  4045. static struct point const zero = {0,0};
  4046. /* IBM XL C 1.02.0.0 rejects this.
  4047. It does not let you subtract one const X* pointer from another in
  4048. an arm of an if-expression whose if-part is not a constant
  4049. expression */
  4050. const char *g = "string";
  4051. pcpcc = &g + (g ? g-g : 0);
  4052. /* HPUX 7.0 cc rejects these. */
  4053. ++pcpcc;
  4054. ppc = (char**) pcpcc;
  4055. pcpcc = (char const *const *) ppc;
  4056. { /* SCO 3.2v4 cc rejects this sort of thing. */
  4057. char tx;
  4058. char *t = &tx;
  4059. char const *s = 0 ? (char *) 0 : (char const *) 0;
  4060. *t++ = 0;
  4061. if (s) return 0;
  4062. }
  4063. { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
  4064. int x[] = {25, 17};
  4065. const int *foo = &x[0];
  4066. ++foo;
  4067. }
  4068. { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
  4069. typedef const int *iptr;
  4070. iptr p = 0;
  4071. ++p;
  4072. }
  4073. { /* IBM XL C 1.02.0.0 rejects this sort of thing, saying
  4074. "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
  4075. struct s { int j; const int *ap[3]; } bx;
  4076. struct s *b = &bx; b->j = 5;
  4077. }
  4078. { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
  4079. const int foo = 10;
  4080. if (!foo) return 0;
  4081. }
  4082. return !cs[0] && !zero.x;
  4083. #endif
  4084. ;
  4085. return 0;
  4086. }
  4087. _ACEOF
  4088. if ac_fn_c_try_compile "$LINENO"
  4089. then :
  4090. ac_cv_c_const=yes
  4091. else case e in #(
  4092. e) ac_cv_c_const=no ;;
  4093. esac
  4094. fi
  4095. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
  4096. esac
  4097. fi
  4098. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
  4099. printf "%s\n" "$ac_cv_c_const" >&6; }
  4100. if test $ac_cv_c_const = no; then
  4101. printf "%s\n" "#define const /**/" >>confdefs.h
  4102. fi
  4103. ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
  4104. if test "x$ac_cv_type_size_t" = xyes
  4105. then :
  4106. else case e in #(
  4107. e)
  4108. printf "%s\n" "#define size_t unsigned int" >>confdefs.h
  4109. ;;
  4110. esac
  4111. fi
  4112. ac_fn_c_check_type "$LINENO" "off_t" "ac_cv_type_off_t" "$ac_includes_default"
  4113. if test "x$ac_cv_type_off_t" = xyes
  4114. then :
  4115. else case e in #(
  4116. e)
  4117. printf "%s\n" "#define off_t long int" >>confdefs.h
  4118. ;;
  4119. esac
  4120. fi
  4121. # Check for Darwin, which needs extra cpp and linker flags.
  4122. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for uname" >&5
  4123. printf %s "checking for uname... " >&6; }
  4124. if test ${ne_cv_os_uname+y}
  4125. then :
  4126. printf %s "(cached) " >&6
  4127. else case e in #(
  4128. e)
  4129. ne_cv_os_uname=`uname -s 2>/dev/null`
  4130. case x"$host" in
  4131. x*mingw*) ne_cv_os_uname="MINGW-$host" ;;
  4132. esac
  4133. ;;
  4134. esac
  4135. fi
  4136. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ne_cv_os_uname" >&5
  4137. printf "%s\n" "$ne_cv_os_uname" >&6; }
  4138. case x"$ne_cv_os_uname" in #(
  4139. x"Darwin") :
  4140. CPPFLAGS="$CPPFLAGS -no-cpp-precomp"
  4141. LDFLAGS="$LDFLAGS -flat_namespace"
  4142. # poll has various issues in various Darwin releases
  4143. if test x${ac_cv_func_poll+set} != xset; then
  4144. ac_cv_func_poll=no
  4145. fi
  4146. ;; #(
  4147. xMINGW*|xMSYS*) :
  4148. NEON_LIBS="$NEON_LIBS -lws2_32"
  4149. ;; #(
  4150. *) :
  4151. ;;
  4152. esac
  4153. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
  4154. printf %s "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
  4155. set x ${MAKE-make}
  4156. ac_make=`printf "%s\n" "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
  4157. if eval test \${ac_cv_prog_make_${ac_make}_set+y}
  4158. then :
  4159. printf %s "(cached) " >&6
  4160. else case e in #(
  4161. e) cat >conftest.make <<\_ACEOF
  4162. SHELL = /bin/sh
  4163. all:
  4164. @echo '@@@%%%=$(MAKE)=@@@%%%'
  4165. _ACEOF
  4166. # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
  4167. case `${MAKE-make} -f conftest.make 2>/dev/null` in
  4168. *@@@%%%=?*=@@@%%%*)
  4169. eval ac_cv_prog_make_${ac_make}_set=yes;;
  4170. *)
  4171. eval ac_cv_prog_make_${ac_make}_set=no;;
  4172. esac
  4173. rm -f conftest.make ;;
  4174. esac
  4175. fi
  4176. if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
  4177. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  4178. printf "%s\n" "yes" >&6; }
  4179. SET_MAKE=
  4180. else
  4181. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4182. printf "%s\n" "no" >&6; }
  4183. SET_MAKE="MAKE=${MAKE-make}"
  4184. fi
  4185. # The cast to long int works around a bug in the HP C Compiler
  4186. # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
  4187. # declarations like 'int a3[[(sizeof (unsigned char)) >= 0]];'.
  4188. # This bug is HP SR number 8606223364.
  4189. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking size of int" >&5
  4190. printf %s "checking size of int... " >&6; }
  4191. if test ${ac_cv_sizeof_int+y}
  4192. then :
  4193. printf %s "(cached) " >&6
  4194. else case e in #(
  4195. e) if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (int))" "ac_cv_sizeof_int" "$ac_includes_default"
  4196. then :
  4197. else case e in #(
  4198. e) if test "$ac_cv_type_int" = yes; then
  4199. { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
  4200. printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
  4201. as_fn_error 77 "cannot compute sizeof (int)
  4202. See 'config.log' for more details" "$LINENO" 5; }
  4203. else
  4204. ac_cv_sizeof_int=0
  4205. fi ;;
  4206. esac
  4207. fi
  4208. ;;
  4209. esac
  4210. fi
  4211. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int" >&5
  4212. printf "%s\n" "$ac_cv_sizeof_int" >&6; }
  4213. printf "%s\n" "#define SIZEOF_INT $ac_cv_sizeof_int" >>confdefs.h
  4214. # The cast to long int works around a bug in the HP C Compiler
  4215. # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
  4216. # declarations like 'int a3[[(sizeof (unsigned char)) >= 0]];'.
  4217. # This bug is HP SR number 8606223364.
  4218. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking size of long" >&5
  4219. printf %s "checking size of long... " >&6; }
  4220. if test ${ac_cv_sizeof_long+y}
  4221. then :
  4222. printf %s "(cached) " >&6
  4223. else case e in #(
  4224. e) if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long))" "ac_cv_sizeof_long" "$ac_includes_default"
  4225. then :
  4226. else case e in #(
  4227. e) if test "$ac_cv_type_long" = yes; then
  4228. { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
  4229. printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
  4230. as_fn_error 77 "cannot compute sizeof (long)
  4231. See 'config.log' for more details" "$LINENO" 5; }
  4232. else
  4233. ac_cv_sizeof_long=0
  4234. fi ;;
  4235. esac
  4236. fi
  4237. ;;
  4238. esac
  4239. fi
  4240. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5
  4241. printf "%s\n" "$ac_cv_sizeof_long" >&6; }
  4242. printf "%s\n" "#define SIZEOF_LONG $ac_cv_sizeof_long" >>confdefs.h
  4243. # The cast to long int works around a bug in the HP C Compiler
  4244. # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
  4245. # declarations like 'int a3[[(sizeof (unsigned char)) >= 0]];'.
  4246. # This bug is HP SR number 8606223364.
  4247. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking size of long long" >&5
  4248. printf %s "checking size of long long... " >&6; }
  4249. if test ${ac_cv_sizeof_long_long+y}
  4250. then :
  4251. printf %s "(cached) " >&6
  4252. else case e in #(
  4253. e) if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long long))" "ac_cv_sizeof_long_long" "$ac_includes_default"
  4254. then :
  4255. else case e in #(
  4256. e) if test "$ac_cv_type_long_long" = yes; then
  4257. { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
  4258. printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
  4259. as_fn_error 77 "cannot compute sizeof (long long)
  4260. See 'config.log' for more details" "$LINENO" 5; }
  4261. else
  4262. ac_cv_sizeof_long_long=0
  4263. fi ;;
  4264. esac
  4265. fi
  4266. ;;
  4267. esac
  4268. fi
  4269. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long_long" >&5
  4270. printf "%s\n" "$ac_cv_sizeof_long_long" >&6; }
  4271. printf "%s\n" "#define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long" >>confdefs.h
  4272. if test "$GCC" = "yes"; then
  4273. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for gcc -Wformat -Werror sanity" >&5
  4274. printf %s "checking for gcc -Wformat -Werror sanity... " >&6; }
  4275. if test ${ne_cv_cc_werror+y}
  4276. then :
  4277. printf %s "(cached) " >&6
  4278. else case e in #(
  4279. e)
  4280. # See whether a simple test program will compile without errors.
  4281. ne_save_CPPFLAGS=$CPPFLAGS
  4282. CPPFLAGS="$CPPFLAGS -Wformat -Werror"
  4283. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4284. /* end confdefs.h. */
  4285. #include <sys/types.h>
  4286. #include <stdio.h>
  4287. int
  4288. main (void)
  4289. {
  4290. int i = 42; printf("%d", i);
  4291. ;
  4292. return 0;
  4293. }
  4294. _ACEOF
  4295. if ac_fn_c_try_compile "$LINENO"
  4296. then :
  4297. ne_cv_cc_werror=yes
  4298. else case e in #(
  4299. e) ne_cv_cc_werror=no ;;
  4300. esac
  4301. fi
  4302. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  4303. CPPFLAGS=$ne_save_CPPFLAGS ;;
  4304. esac
  4305. fi
  4306. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ne_cv_cc_werror" >&5
  4307. printf "%s\n" "$ne_cv_cc_werror" >&6; }
  4308. ne_fmt_trycompile=$ne_cv_cc_werror
  4309. else
  4310. ne_fmt_trycompile=no
  4311. fi
  4312. # These checks are done whether or not the bundled neon build
  4313. # is used.
  4314. ac_fn_c_check_header_compile "$LINENO" "errno.h" "ac_cv_header_errno_h" "$ac_includes_default"
  4315. if test "x$ac_cv_header_errno_h" = xyes
  4316. then :
  4317. printf "%s\n" "#define HAVE_ERRNO_H 1" >>confdefs.h
  4318. fi
  4319. ac_fn_c_check_header_compile "$LINENO" "stdarg.h" "ac_cv_header_stdarg_h" "$ac_includes_default"
  4320. if test "x$ac_cv_header_stdarg_h" = xyes
  4321. then :
  4322. printf "%s\n" "#define HAVE_STDARG_H 1" >>confdefs.h
  4323. fi
  4324. ac_fn_c_check_header_compile "$LINENO" "string.h" "ac_cv_header_string_h" "$ac_includes_default"
  4325. if test "x$ac_cv_header_string_h" = xyes
  4326. then :
  4327. printf "%s\n" "#define HAVE_STRING_H 1" >>confdefs.h
  4328. fi
  4329. ac_fn_c_check_header_compile "$LINENO" "stdlib.h" "ac_cv_header_stdlib_h" "$ac_includes_default"
  4330. if test "x$ac_cv_header_stdlib_h" = xyes
  4331. then :
  4332. printf "%s\n" "#define HAVE_STDLIB_H 1" >>confdefs.h
  4333. fi
  4334. ac_fn_c_check_header_compile "$LINENO" "sys/uio.h" "ac_cv_header_sys_uio_h" "$ac_includes_default"
  4335. if test "x$ac_cv_header_sys_uio_h" = xyes
  4336. then :
  4337. printf "%s\n" "#define HAVE_SYS_UIO_H 1" >>confdefs.h
  4338. fi
  4339. # The cast to long int works around a bug in the HP C Compiler
  4340. # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
  4341. # declarations like 'int a3[[(sizeof (unsigned char)) >= 0]];'.
  4342. # This bug is HP SR number 8606223364.
  4343. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking size of size_t" >&5
  4344. printf %s "checking size of size_t... " >&6; }
  4345. if test ${ac_cv_sizeof_size_t+y}
  4346. then :
  4347. printf %s "(cached) " >&6
  4348. else case e in #(
  4349. e) if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (size_t))" "ac_cv_sizeof_size_t" "$ac_includes_default
  4350. "
  4351. then :
  4352. else case e in #(
  4353. e) if test "$ac_cv_type_size_t" = yes; then
  4354. { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
  4355. printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
  4356. as_fn_error 77 "cannot compute sizeof (size_t)
  4357. See 'config.log' for more details" "$LINENO" 5; }
  4358. else
  4359. ac_cv_sizeof_size_t=0
  4360. fi ;;
  4361. esac
  4362. fi
  4363. ;;
  4364. esac
  4365. fi
  4366. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_size_t" >&5
  4367. printf "%s\n" "$ac_cv_sizeof_size_t" >&6; }
  4368. printf "%s\n" "#define SIZEOF_SIZE_T $ac_cv_sizeof_size_t" >>confdefs.h
  4369. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to print size_t" >&5
  4370. printf %s "checking how to print size_t... " >&6; }
  4371. if test ${ne_cv_fmt_size_t+y}
  4372. then :
  4373. printf %s "(cached) " >&6
  4374. else case e in #(
  4375. e)
  4376. ne_cv_fmt_size_t=none
  4377. if test $ne_fmt_trycompile = yes; then
  4378. oflags="$CPPFLAGS"
  4379. # Consider format string mismatches as errors
  4380. CPPFLAGS="$CPPFLAGS -Wformat -Werror"
  4381. for str in u lu llu; do
  4382. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4383. /* end confdefs.h. */
  4384. #include <sys/types.h>
  4385. #include <stdio.h>
  4386. int
  4387. main (void)
  4388. {
  4389. size_t i = 1; printf("%$str", i);
  4390. ;
  4391. return 0;
  4392. }
  4393. _ACEOF
  4394. if ac_fn_c_try_compile "$LINENO"
  4395. then :
  4396. ne_cv_fmt_size_t=$str; break
  4397. fi
  4398. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  4399. done
  4400. CPPFLAGS=$oflags
  4401. else
  4402. # Best guess. Don't have to be too precise since we probably won't
  4403. # get a warning message anyway.
  4404. case $ac_cv_sizeof_size_t in
  4405. $ac_cv_sizeof_int) ne_cv_fmt_size_t="u" ;;
  4406. $ac_cv_sizeof_long) ne_cv_fmt_size_t="lu" ;;
  4407. $ac_cv_sizeof_long_long) ne_cv_fmt_size_t="llu" ;;
  4408. esac
  4409. fi
  4410. ;;
  4411. esac
  4412. fi
  4413. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ne_cv_fmt_size_t" >&5
  4414. printf "%s\n" "$ne_cv_fmt_size_t" >&6; }
  4415. if test "x$ne_cv_fmt_size_t" = "xnone"; then
  4416. as_fn_error $? "format string for size_t not found" "$LINENO" 5
  4417. fi
  4418. printf "%s\n" "#define NE_FMT_SIZE_T \"$ne_cv_fmt_size_t\"" >>confdefs.h
  4419. # The cast to long int works around a bug in the HP C Compiler
  4420. # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
  4421. # declarations like 'int a3[[(sizeof (unsigned char)) >= 0]];'.
  4422. # This bug is HP SR number 8606223364.
  4423. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking size of off_t" >&5
  4424. printf %s "checking size of off_t... " >&6; }
  4425. if test ${ac_cv_sizeof_off_t+y}
  4426. then :
  4427. printf %s "(cached) " >&6
  4428. else case e in #(
  4429. e) if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (off_t))" "ac_cv_sizeof_off_t" "$ac_includes_default
  4430. "
  4431. then :
  4432. else case e in #(
  4433. e) if test "$ac_cv_type_off_t" = yes; then
  4434. { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
  4435. printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
  4436. as_fn_error 77 "cannot compute sizeof (off_t)
  4437. See 'config.log' for more details" "$LINENO" 5; }
  4438. else
  4439. ac_cv_sizeof_off_t=0
  4440. fi ;;
  4441. esac
  4442. fi
  4443. ;;
  4444. esac
  4445. fi
  4446. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_off_t" >&5
  4447. printf "%s\n" "$ac_cv_sizeof_off_t" >&6; }
  4448. printf "%s\n" "#define SIZEOF_OFF_T $ac_cv_sizeof_off_t" >>confdefs.h
  4449. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to print off_t" >&5
  4450. printf %s "checking how to print off_t... " >&6; }
  4451. if test ${ne_cv_fmt_off_t+y}
  4452. then :
  4453. printf %s "(cached) " >&6
  4454. else case e in #(
  4455. e)
  4456. ne_cv_fmt_off_t=none
  4457. if test $ne_fmt_trycompile = yes; then
  4458. oflags="$CPPFLAGS"
  4459. # Consider format string mismatches as errors
  4460. CPPFLAGS="$CPPFLAGS -Wformat -Werror"
  4461. for str in d ld lld; do
  4462. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4463. /* end confdefs.h. */
  4464. #include <sys/types.h>
  4465. #include <stdio.h>
  4466. int
  4467. main (void)
  4468. {
  4469. off_t i = 1; printf("%$str", i);
  4470. ;
  4471. return 0;
  4472. }
  4473. _ACEOF
  4474. if ac_fn_c_try_compile "$LINENO"
  4475. then :
  4476. ne_cv_fmt_off_t=$str; break
  4477. fi
  4478. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  4479. done
  4480. CPPFLAGS=$oflags
  4481. else
  4482. # Best guess. Don't have to be too precise since we probably won't
  4483. # get a warning message anyway.
  4484. case $ac_cv_sizeof_off_t in
  4485. $ac_cv_sizeof_int) ne_cv_fmt_off_t="d" ;;
  4486. $ac_cv_sizeof_long) ne_cv_fmt_off_t="ld" ;;
  4487. $ac_cv_sizeof_long_long) ne_cv_fmt_off_t="lld" ;;
  4488. esac
  4489. fi
  4490. ;;
  4491. esac
  4492. fi
  4493. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ne_cv_fmt_off_t" >&5
  4494. printf "%s\n" "$ne_cv_fmt_off_t" >&6; }
  4495. if test "x$ne_cv_fmt_off_t" = "xnone"; then
  4496. as_fn_error $? "format string for off_t not found" "$LINENO" 5
  4497. fi
  4498. printf "%s\n" "#define NE_FMT_OFF_T \"$ne_cv_fmt_off_t\"" >>confdefs.h
  4499. # The cast to long int works around a bug in the HP C Compiler
  4500. # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
  4501. # declarations like 'int a3[[(sizeof (unsigned char)) >= 0]];'.
  4502. # This bug is HP SR number 8606223364.
  4503. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking size of ssize_t" >&5
  4504. printf %s "checking size of ssize_t... " >&6; }
  4505. if test ${ac_cv_sizeof_ssize_t+y}
  4506. then :
  4507. printf %s "(cached) " >&6
  4508. else case e in #(
  4509. e) if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (ssize_t))" "ac_cv_sizeof_ssize_t" "$ac_includes_default
  4510. "
  4511. then :
  4512. else case e in #(
  4513. e) if test "$ac_cv_type_ssize_t" = yes; then
  4514. { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
  4515. printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
  4516. as_fn_error 77 "cannot compute sizeof (ssize_t)
  4517. See 'config.log' for more details" "$LINENO" 5; }
  4518. else
  4519. ac_cv_sizeof_ssize_t=0
  4520. fi ;;
  4521. esac
  4522. fi
  4523. ;;
  4524. esac
  4525. fi
  4526. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_ssize_t" >&5
  4527. printf "%s\n" "$ac_cv_sizeof_ssize_t" >&6; }
  4528. printf "%s\n" "#define SIZEOF_SSIZE_T $ac_cv_sizeof_ssize_t" >>confdefs.h
  4529. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to print ssize_t" >&5
  4530. printf %s "checking how to print ssize_t... " >&6; }
  4531. if test ${ne_cv_fmt_ssize_t+y}
  4532. then :
  4533. printf %s "(cached) " >&6
  4534. else case e in #(
  4535. e)
  4536. ne_cv_fmt_ssize_t=none
  4537. if test $ne_fmt_trycompile = yes; then
  4538. oflags="$CPPFLAGS"
  4539. # Consider format string mismatches as errors
  4540. CPPFLAGS="$CPPFLAGS -Wformat -Werror"
  4541. for str in d ld lld; do
  4542. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4543. /* end confdefs.h. */
  4544. #include <sys/types.h>
  4545. #include <stdio.h>
  4546. int
  4547. main (void)
  4548. {
  4549. ssize_t i = 1; printf("%$str", i);
  4550. ;
  4551. return 0;
  4552. }
  4553. _ACEOF
  4554. if ac_fn_c_try_compile "$LINENO"
  4555. then :
  4556. ne_cv_fmt_ssize_t=$str; break
  4557. fi
  4558. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  4559. done
  4560. CPPFLAGS=$oflags
  4561. else
  4562. # Best guess. Don't have to be too precise since we probably won't
  4563. # get a warning message anyway.
  4564. case $ac_cv_sizeof_ssize_t in
  4565. $ac_cv_sizeof_int) ne_cv_fmt_ssize_t="d" ;;
  4566. $ac_cv_sizeof_long) ne_cv_fmt_ssize_t="ld" ;;
  4567. $ac_cv_sizeof_long_long) ne_cv_fmt_ssize_t="lld" ;;
  4568. esac
  4569. fi
  4570. ;;
  4571. esac
  4572. fi
  4573. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ne_cv_fmt_ssize_t" >&5
  4574. printf "%s\n" "$ne_cv_fmt_ssize_t" >&6; }
  4575. if test "x$ne_cv_fmt_ssize_t" = "xnone"; then
  4576. as_fn_error $? "format string for ssize_t not found" "$LINENO" 5
  4577. fi
  4578. printf "%s\n" "#define NE_FMT_SSIZE_T \"$ne_cv_fmt_ssize_t\"" >>confdefs.h
  4579. # The cast to long int works around a bug in the HP C Compiler
  4580. # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
  4581. # declarations like 'int a3[[(sizeof (unsigned char)) >= 0]];'.
  4582. # This bug is HP SR number 8606223364.
  4583. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking size of time_t" >&5
  4584. printf %s "checking size of time_t... " >&6; }
  4585. if test ${ac_cv_sizeof_time_t+y}
  4586. then :
  4587. printf %s "(cached) " >&6
  4588. else case e in #(
  4589. e) if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (time_t))" "ac_cv_sizeof_time_t" "$ac_includes_default
  4590. #ifdef HAVE_SYS_TIME_H
  4591. #include <sys/time.h>
  4592. #endif
  4593. "
  4594. then :
  4595. else case e in #(
  4596. e) if test "$ac_cv_type_time_t" = yes; then
  4597. { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
  4598. printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
  4599. as_fn_error 77 "cannot compute sizeof (time_t)
  4600. See 'config.log' for more details" "$LINENO" 5; }
  4601. else
  4602. ac_cv_sizeof_time_t=0
  4603. fi ;;
  4604. esac
  4605. fi
  4606. ;;
  4607. esac
  4608. fi
  4609. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_time_t" >&5
  4610. printf "%s\n" "$ac_cv_sizeof_time_t" >&6; }
  4611. printf "%s\n" "#define SIZEOF_TIME_T $ac_cv_sizeof_time_t" >>confdefs.h
  4612. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to print time_t" >&5
  4613. printf %s "checking how to print time_t... " >&6; }
  4614. if test ${ne_cv_fmt_time_t+y}
  4615. then :
  4616. printf %s "(cached) " >&6
  4617. else case e in #(
  4618. e)
  4619. ne_cv_fmt_time_t=none
  4620. if test $ne_fmt_trycompile = yes; then
  4621. oflags="$CPPFLAGS"
  4622. # Consider format string mismatches as errors
  4623. CPPFLAGS="$CPPFLAGS -Wformat -Werror"
  4624. for str in d ld lld; do
  4625. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4626. /* end confdefs.h. */
  4627. #include <sys/types.h>
  4628. #ifdef HAVE_SYS_TIME_H
  4629. #include <sys/time.h>
  4630. #endif
  4631. #include <stdio.h>
  4632. int
  4633. main (void)
  4634. {
  4635. time_t i = 1; printf("%$str", i);
  4636. ;
  4637. return 0;
  4638. }
  4639. _ACEOF
  4640. if ac_fn_c_try_compile "$LINENO"
  4641. then :
  4642. ne_cv_fmt_time_t=$str; break
  4643. fi
  4644. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  4645. done
  4646. CPPFLAGS=$oflags
  4647. else
  4648. # Best guess. Don't have to be too precise since we probably won't
  4649. # get a warning message anyway.
  4650. case $ac_cv_sizeof_time_t in
  4651. $ac_cv_sizeof_int) ne_cv_fmt_time_t="d" ;;
  4652. $ac_cv_sizeof_long) ne_cv_fmt_time_t="ld" ;;
  4653. $ac_cv_sizeof_long_long) ne_cv_fmt_time_t="lld" ;;
  4654. esac
  4655. fi
  4656. ;;
  4657. esac
  4658. fi
  4659. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ne_cv_fmt_time_t" >&5
  4660. printf "%s\n" "$ne_cv_fmt_time_t" >&6; }
  4661. if test "x$ne_cv_fmt_time_t" = "xnone"; then
  4662. as_fn_error $? "format string for time_t not found" "$LINENO" 5
  4663. fi
  4664. printf "%s\n" "#define NE_FMT_TIME_T \"$ne_cv_fmt_time_t\"" >>confdefs.h
  4665. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
  4666. printf %s "checking whether byte ordering is bigendian... " >&6; }
  4667. if test ${ac_cv_c_bigendian+y}
  4668. then :
  4669. printf %s "(cached) " >&6
  4670. else case e in #(
  4671. e) ac_cv_c_bigendian=unknown
  4672. # See if we're dealing with a universal compiler.
  4673. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4674. /* end confdefs.h. */
  4675. #ifndef __APPLE_CC__
  4676. not a universal capable compiler
  4677. #endif
  4678. typedef int dummy;
  4679. _ACEOF
  4680. if ac_fn_c_try_compile "$LINENO"
  4681. then :
  4682. # Check for potential -arch flags. It is not universal unless
  4683. # there are at least two -arch flags with different values.
  4684. ac_arch=
  4685. ac_prev=
  4686. for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
  4687. if test -n "$ac_prev"; then
  4688. case $ac_word in
  4689. i?86 | x86_64 | ppc | ppc64)
  4690. if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
  4691. ac_arch=$ac_word
  4692. else
  4693. ac_cv_c_bigendian=universal
  4694. break
  4695. fi
  4696. ;;
  4697. esac
  4698. ac_prev=
  4699. elif test "x$ac_word" = "x-arch"; then
  4700. ac_prev=arch
  4701. fi
  4702. done
  4703. fi
  4704. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  4705. if test $ac_cv_c_bigendian = unknown; then
  4706. # See if sys/param.h defines the BYTE_ORDER macro.
  4707. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4708. /* end confdefs.h. */
  4709. #include <sys/types.h>
  4710. #include <sys/param.h>
  4711. int
  4712. main (void)
  4713. {
  4714. #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \\
  4715. && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \\
  4716. && LITTLE_ENDIAN)
  4717. bogus endian macros
  4718. #endif
  4719. ;
  4720. return 0;
  4721. }
  4722. _ACEOF
  4723. if ac_fn_c_try_compile "$LINENO"
  4724. then :
  4725. # It does; now see whether it defined to BIG_ENDIAN or not.
  4726. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4727. /* end confdefs.h. */
  4728. #include <sys/types.h>
  4729. #include <sys/param.h>
  4730. int
  4731. main (void)
  4732. {
  4733. #if BYTE_ORDER != BIG_ENDIAN
  4734. not big endian
  4735. #endif
  4736. ;
  4737. return 0;
  4738. }
  4739. _ACEOF
  4740. if ac_fn_c_try_compile "$LINENO"
  4741. then :
  4742. ac_cv_c_bigendian=yes
  4743. else case e in #(
  4744. e) ac_cv_c_bigendian=no ;;
  4745. esac
  4746. fi
  4747. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  4748. fi
  4749. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  4750. fi
  4751. if test $ac_cv_c_bigendian = unknown; then
  4752. # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
  4753. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4754. /* end confdefs.h. */
  4755. #include <limits.h>
  4756. int
  4757. main (void)
  4758. {
  4759. #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
  4760. bogus endian macros
  4761. #endif
  4762. ;
  4763. return 0;
  4764. }
  4765. _ACEOF
  4766. if ac_fn_c_try_compile "$LINENO"
  4767. then :
  4768. # It does; now see whether it defined to _BIG_ENDIAN or not.
  4769. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4770. /* end confdefs.h. */
  4771. #include <limits.h>
  4772. int
  4773. main (void)
  4774. {
  4775. #ifndef _BIG_ENDIAN
  4776. not big endian
  4777. #endif
  4778. ;
  4779. return 0;
  4780. }
  4781. _ACEOF
  4782. if ac_fn_c_try_compile "$LINENO"
  4783. then :
  4784. ac_cv_c_bigendian=yes
  4785. else case e in #(
  4786. e) ac_cv_c_bigendian=no ;;
  4787. esac
  4788. fi
  4789. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  4790. fi
  4791. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  4792. fi
  4793. if test $ac_cv_c_bigendian = unknown; then
  4794. # Compile a test program.
  4795. if test "$cross_compiling" = yes
  4796. then :
  4797. # Try to guess by grepping values from an object file.
  4798. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4799. /* end confdefs.h. */
  4800. unsigned short int ascii_mm[] =
  4801. { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
  4802. unsigned short int ascii_ii[] =
  4803. { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
  4804. int use_ascii (int i) {
  4805. return ascii_mm[i] + ascii_ii[i];
  4806. }
  4807. unsigned short int ebcdic_ii[] =
  4808. { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
  4809. unsigned short int ebcdic_mm[] =
  4810. { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
  4811. int use_ebcdic (int i) {
  4812. return ebcdic_mm[i] + ebcdic_ii[i];
  4813. }
  4814. int
  4815. main (int argc, char **argv)
  4816. {
  4817. /* Intimidate the compiler so that it does not
  4818. optimize the arrays away. */
  4819. char *p = argv[0];
  4820. ascii_mm[1] = *p++; ebcdic_mm[1] = *p++;
  4821. ascii_ii[1] = *p++; ebcdic_ii[1] = *p++;
  4822. return use_ascii (argc) == use_ebcdic (*p);
  4823. }
  4824. _ACEOF
  4825. if ac_fn_c_try_link "$LINENO"
  4826. then :
  4827. if grep BIGenDianSyS conftest$ac_exeext >/dev/null; then
  4828. ac_cv_c_bigendian=yes
  4829. fi
  4830. if grep LiTTleEnDian conftest$ac_exeext >/dev/null ; then
  4831. if test "$ac_cv_c_bigendian" = unknown; then
  4832. ac_cv_c_bigendian=no
  4833. else
  4834. # finding both strings is unlikely to happen, but who knows?
  4835. ac_cv_c_bigendian=unknown
  4836. fi
  4837. fi
  4838. fi
  4839. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  4840. conftest$ac_exeext conftest.$ac_ext
  4841. else case e in #(
  4842. e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4843. /* end confdefs.h. */
  4844. $ac_includes_default
  4845. int
  4846. main (void)
  4847. {
  4848. /* Are we little or big endian? From Harbison&Steele. */
  4849. union
  4850. {
  4851. long int l;
  4852. char c[sizeof (long int)];
  4853. } u;
  4854. u.l = 1;
  4855. return u.c[sizeof (long int) - 1] == 1;
  4856. ;
  4857. return 0;
  4858. }
  4859. _ACEOF
  4860. if ac_fn_c_try_run "$LINENO"
  4861. then :
  4862. ac_cv_c_bigendian=no
  4863. else case e in #(
  4864. e) ac_cv_c_bigendian=yes ;;
  4865. esac
  4866. fi
  4867. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  4868. conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
  4869. esac
  4870. fi
  4871. fi ;;
  4872. esac
  4873. fi
  4874. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
  4875. printf "%s\n" "$ac_cv_c_bigendian" >&6; }
  4876. case $ac_cv_c_bigendian in #(
  4877. yes)
  4878. printf "%s\n" "#define WORDS_BIGENDIAN 1" >>confdefs.h
  4879. ;; #(
  4880. no)
  4881. ;; #(
  4882. universal)
  4883. printf "%s\n" "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
  4884. ;; #(
  4885. *)
  4886. as_fn_error $? "unknown endianness
  4887. presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
  4888. esac
  4889. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC options needed to detect all undeclared functions" >&5
  4890. printf %s "checking for $CC options needed to detect all undeclared functions... " >&6; }
  4891. if test ${ac_cv_c_undeclared_builtin_options+y}
  4892. then :
  4893. printf %s "(cached) " >&6
  4894. else case e in #(
  4895. e) ac_save_CFLAGS=$CFLAGS
  4896. ac_cv_c_undeclared_builtin_options='cannot detect'
  4897. for ac_arg in '' -fno-builtin; do
  4898. CFLAGS="$ac_save_CFLAGS $ac_arg"
  4899. # This test program should *not* compile successfully.
  4900. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4901. /* end confdefs.h. */
  4902. int
  4903. main (void)
  4904. {
  4905. (void) strchr;
  4906. ;
  4907. return 0;
  4908. }
  4909. _ACEOF
  4910. if ac_fn_c_try_compile "$LINENO"
  4911. then :
  4912. else case e in #(
  4913. e) # This test program should compile successfully.
  4914. # No library function is consistently available on
  4915. # freestanding implementations, so test against a dummy
  4916. # declaration. Include always-available headers on the
  4917. # off chance that they somehow elicit warnings.
  4918. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4919. /* end confdefs.h. */
  4920. #include <float.h>
  4921. #include <limits.h>
  4922. #include <stdarg.h>
  4923. #include <stddef.h>
  4924. extern void ac_decl (int, char *);
  4925. int
  4926. main (void)
  4927. {
  4928. (void) ac_decl (0, (char *) 0);
  4929. (void) ac_decl;
  4930. ;
  4931. return 0;
  4932. }
  4933. _ACEOF
  4934. if ac_fn_c_try_compile "$LINENO"
  4935. then :
  4936. if test x"$ac_arg" = x
  4937. then :
  4938. ac_cv_c_undeclared_builtin_options='none needed'
  4939. else case e in #(
  4940. e) ac_cv_c_undeclared_builtin_options=$ac_arg ;;
  4941. esac
  4942. fi
  4943. break
  4944. fi
  4945. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
  4946. esac
  4947. fi
  4948. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  4949. done
  4950. CFLAGS=$ac_save_CFLAGS
  4951. ;;
  4952. esac
  4953. fi
  4954. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_undeclared_builtin_options" >&5
  4955. printf "%s\n" "$ac_cv_c_undeclared_builtin_options" >&6; }
  4956. case $ac_cv_c_undeclared_builtin_options in #(
  4957. 'cannot detect') :
  4958. { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
  4959. printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
  4960. as_fn_error $? "cannot make $CC report undeclared builtins
  4961. See 'config.log' for more details" "$LINENO" 5; } ;; #(
  4962. 'none needed') :
  4963. ac_c_undeclared_builtin_options='' ;; #(
  4964. *) :
  4965. ac_c_undeclared_builtin_options=$ac_cv_c_undeclared_builtin_options ;;
  4966. esac
  4967. ac_fn_check_decl "$LINENO" "strerror_r" "ac_cv_have_decl_strerror_r" "$ac_includes_default" "$ac_c_undeclared_builtin_options" "CFLAGS"
  4968. if test "x$ac_cv_have_decl_strerror_r" = xyes
  4969. then :
  4970. ac_have_decl=1
  4971. else case e in #(
  4972. e) ac_have_decl=0 ;;
  4973. esac
  4974. fi
  4975. printf "%s\n" "#define HAVE_DECL_STRERROR_R $ac_have_decl" >>confdefs.h
  4976. if test $ac_cv_have_decl_strerror_r = yes; then
  4977. # For backward compatibility's sake, define HAVE_STRERROR_R.
  4978. # (We used to run AC_CHECK_FUNCS_ONCE for strerror_r, as well
  4979. # as AC_CHECK_DECLS_ONCE.)
  4980. printf "%s\n" "#define HAVE_STRERROR_R 1" >>confdefs.h
  4981. fi
  4982. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether strerror_r returns char *" >&5
  4983. printf %s "checking whether strerror_r returns char *... " >&6; }
  4984. if test ${ac_cv_func_strerror_r_char_p+y}
  4985. then :
  4986. printf %s "(cached) " >&6
  4987. else case e in #(
  4988. e)
  4989. ac_cv_func_strerror_r_char_p=no
  4990. if test $ac_cv_have_decl_strerror_r = yes; then
  4991. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4992. /* end confdefs.h. */
  4993. #include <string.h>
  4994. int
  4995. main (void)
  4996. {
  4997. char buf[100];
  4998. char x = *strerror_r (0, buf, sizeof buf);
  4999. char *p = strerror_r (0, buf, sizeof buf);
  5000. return !p || x;
  5001. ;
  5002. return 0;
  5003. }
  5004. _ACEOF
  5005. if ac_fn_c_try_compile "$LINENO"
  5006. then :
  5007. ac_cv_func_strerror_r_char_p=yes
  5008. fi
  5009. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  5010. fi
  5011. ;;
  5012. esac
  5013. fi
  5014. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_strerror_r_char_p" >&5
  5015. printf "%s\n" "$ac_cv_func_strerror_r_char_p" >&6; }
  5016. if test $ac_cv_func_strerror_r_char_p = yes; then
  5017. printf "%s\n" "#define STRERROR_R_CHAR_P 1" >>confdefs.h
  5018. fi
  5019. for ac_func in snprintf vsnprintf
  5020. do :
  5021. as_ac_var=`printf "%s\n" "ac_cv_func_$ac_func" | sed "$as_sed_sh"`
  5022. ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
  5023. if eval test \"x\$"$as_ac_var"\" = x"yes"
  5024. then :
  5025. cat >>confdefs.h <<_ACEOF
  5026. #define `printf "%s\n" "HAVE_$ac_func" | sed "$as_sed_cpp"` 1
  5027. _ACEOF
  5028. else case e in #(
  5029. e)
  5030. ne_save_LIBS=$LIBS
  5031. LIBS="$LIBS -lm" # Always need -lm
  5032. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for trio_vsnprintf in -ltrio" >&5
  5033. printf %s "checking for trio_vsnprintf in -ltrio... " >&6; }
  5034. if test ${ac_cv_lib_trio_trio_vsnprintf+y}
  5035. then :
  5036. printf %s "(cached) " >&6
  5037. else case e in #(
  5038. e) ac_check_lib_save_LIBS=$LIBS
  5039. LIBS="-ltrio $LIBS"
  5040. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5041. /* end confdefs.h. */
  5042. /* Override any GCC internal prototype to avoid an error.
  5043. Use char because int might match the return type of a GCC
  5044. builtin and then its argument prototype would still apply.
  5045. The 'extern "C"' is for builds by C++ compilers;
  5046. although this is not generally supported in C code supporting it here
  5047. has little cost and some practical benefit (sr 110532). */
  5048. #ifdef __cplusplus
  5049. extern "C"
  5050. #endif
  5051. char trio_vsnprintf (void);
  5052. int
  5053. main (void)
  5054. {
  5055. return trio_vsnprintf ();
  5056. ;
  5057. return 0;
  5058. }
  5059. _ACEOF
  5060. if ac_fn_c_try_link "$LINENO"
  5061. then :
  5062. ac_cv_lib_trio_trio_vsnprintf=yes
  5063. else case e in #(
  5064. e) ac_cv_lib_trio_trio_vsnprintf=no ;;
  5065. esac
  5066. fi
  5067. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  5068. conftest$ac_exeext conftest.$ac_ext
  5069. LIBS=$ac_check_lib_save_LIBS ;;
  5070. esac
  5071. fi
  5072. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_trio_trio_vsnprintf" >&5
  5073. printf "%s\n" "$ac_cv_lib_trio_trio_vsnprintf" >&6; }
  5074. if test "x$ac_cv_lib_trio_trio_vsnprintf" = xyes
  5075. then :
  5076. for ac_header in trio.h
  5077. do :
  5078. ac_fn_c_check_header_compile "$LINENO" "trio.h" "ac_cv_header_trio_h" "$ac_includes_default"
  5079. if test "x$ac_cv_header_trio_h" = xyes
  5080. then :
  5081. printf "%s\n" "#define HAVE_TRIO_H 1" >>confdefs.h
  5082. else case e in #(
  5083. e) as_fn_error $? "trio installation problem? libtrio found but not trio.h" "$LINENO" 5 ;;
  5084. esac
  5085. fi
  5086. done
  5087. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: using trio printf replacement library" >&5
  5088. printf "%s\n" "$as_me: using trio printf replacement library" >&6;}
  5089. NEON_LIBS="$NEON_LIBS -ltrio -lm"
  5090. printf "%s\n" "#define HAVE_TRIO 1" >>confdefs.h
  5091. else case e in #(
  5092. e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: no vsnprintf/snprintf detected in C library" >&5
  5093. printf "%s\n" "$as_me: no vsnprintf/snprintf detected in C library" >&6;}
  5094. as_fn_error $? "Install the trio library from http://daniel.haxx.se/projects/trio/" "$LINENO" 5 ;;
  5095. esac
  5096. fi
  5097. LIBS=$ne_save_LIBS
  5098. break
  5099. ;;
  5100. esac
  5101. fi
  5102. done
  5103. ac_ext=c
  5104. ac_cpp='$CPP $CPPFLAGS'
  5105. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  5106. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  5107. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  5108. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
  5109. printf %s "checking how to run the C preprocessor... " >&6; }
  5110. # On Suns, sometimes $CPP names a directory.
  5111. if test -n "$CPP" && test -d "$CPP"; then
  5112. CPP=
  5113. fi
  5114. if test -z "$CPP"; then
  5115. if test ${ac_cv_prog_CPP+y}
  5116. then :
  5117. printf %s "(cached) " >&6
  5118. else case e in #(
  5119. e) # Double quotes because $CC needs to be expanded
  5120. for CPP in "$CC -E" "$CC -E -traditional-cpp" cpp /lib/cpp
  5121. do
  5122. ac_preproc_ok=false
  5123. for ac_c_preproc_warn_flag in '' yes
  5124. do
  5125. # Use a header file that comes with gcc, so configuring glibc
  5126. # with a fresh cross-compiler works.
  5127. # On the NeXT, cc -E runs the code through the compiler's parser,
  5128. # not just through cpp. "Syntax error" is here to catch this case.
  5129. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5130. /* end confdefs.h. */
  5131. #include <limits.h>
  5132. Syntax error
  5133. _ACEOF
  5134. if ac_fn_c_try_cpp "$LINENO"
  5135. then :
  5136. else case e in #(
  5137. e) # Broken: fails on valid input.
  5138. continue ;;
  5139. esac
  5140. fi
  5141. rm -f conftest.err conftest.i conftest.$ac_ext
  5142. # OK, works on sane cases. Now check whether nonexistent headers
  5143. # can be detected and how.
  5144. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5145. /* end confdefs.h. */
  5146. #include <ac_nonexistent.h>
  5147. _ACEOF
  5148. if ac_fn_c_try_cpp "$LINENO"
  5149. then :
  5150. # Broken: success on invalid input.
  5151. continue
  5152. else case e in #(
  5153. e) # Passes both tests.
  5154. ac_preproc_ok=:
  5155. break ;;
  5156. esac
  5157. fi
  5158. rm -f conftest.err conftest.i conftest.$ac_ext
  5159. done
  5160. # Because of 'break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  5161. rm -f conftest.i conftest.err conftest.$ac_ext
  5162. if $ac_preproc_ok
  5163. then :
  5164. break
  5165. fi
  5166. done
  5167. ac_cv_prog_CPP=$CPP
  5168. ;;
  5169. esac
  5170. fi
  5171. CPP=$ac_cv_prog_CPP
  5172. else
  5173. ac_cv_prog_CPP=$CPP
  5174. fi
  5175. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
  5176. printf "%s\n" "$CPP" >&6; }
  5177. ac_preproc_ok=false
  5178. for ac_c_preproc_warn_flag in '' yes
  5179. do
  5180. # Use a header file that comes with gcc, so configuring glibc
  5181. # with a fresh cross-compiler works.
  5182. # On the NeXT, cc -E runs the code through the compiler's parser,
  5183. # not just through cpp. "Syntax error" is here to catch this case.
  5184. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5185. /* end confdefs.h. */
  5186. #include <limits.h>
  5187. Syntax error
  5188. _ACEOF
  5189. if ac_fn_c_try_cpp "$LINENO"
  5190. then :
  5191. else case e in #(
  5192. e) # Broken: fails on valid input.
  5193. continue ;;
  5194. esac
  5195. fi
  5196. rm -f conftest.err conftest.i conftest.$ac_ext
  5197. # OK, works on sane cases. Now check whether nonexistent headers
  5198. # can be detected and how.
  5199. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5200. /* end confdefs.h. */
  5201. #include <ac_nonexistent.h>
  5202. _ACEOF
  5203. if ac_fn_c_try_cpp "$LINENO"
  5204. then :
  5205. # Broken: success on invalid input.
  5206. continue
  5207. else case e in #(
  5208. e) # Passes both tests.
  5209. ac_preproc_ok=:
  5210. break ;;
  5211. esac
  5212. fi
  5213. rm -f conftest.err conftest.i conftest.$ac_ext
  5214. done
  5215. # Because of 'break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  5216. rm -f conftest.i conftest.err conftest.$ac_ext
  5217. if $ac_preproc_ok
  5218. then :
  5219. else case e in #(
  5220. e) { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
  5221. printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
  5222. as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
  5223. See 'config.log' for more details" "$LINENO" 5; } ;;
  5224. esac
  5225. fi
  5226. ac_ext=c
  5227. ac_cpp='$CPP $CPPFLAGS'
  5228. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  5229. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  5230. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  5231. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for egrep -e" >&5
  5232. printf %s "checking for egrep -e... " >&6; }
  5233. if test ${ac_cv_path_EGREP_TRADITIONAL+y}
  5234. then :
  5235. printf %s "(cached) " >&6
  5236. else case e in #(
  5237. e) if test -z "$EGREP_TRADITIONAL"; then
  5238. ac_path_EGREP_TRADITIONAL_found=false
  5239. # Loop through the user's path and test for each of PROGNAME-LIST
  5240. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5241. for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
  5242. do
  5243. IFS=$as_save_IFS
  5244. case $as_dir in #(((
  5245. '') as_dir=./ ;;
  5246. */) ;;
  5247. *) as_dir=$as_dir/ ;;
  5248. esac
  5249. for ac_prog in grep ggrep
  5250. do
  5251. for ac_exec_ext in '' $ac_executable_extensions; do
  5252. ac_path_EGREP_TRADITIONAL="$as_dir$ac_prog$ac_exec_ext"
  5253. as_fn_executable_p "$ac_path_EGREP_TRADITIONAL" || continue
  5254. # Check for GNU ac_path_EGREP_TRADITIONAL and select it if it is found.
  5255. # Check for GNU $ac_path_EGREP_TRADITIONAL
  5256. case `"$ac_path_EGREP_TRADITIONAL" --version 2>&1` in #(
  5257. *GNU*)
  5258. ac_cv_path_EGREP_TRADITIONAL="$ac_path_EGREP_TRADITIONAL" ac_path_EGREP_TRADITIONAL_found=:;;
  5259. #(
  5260. *)
  5261. ac_count=0
  5262. printf %s 0123456789 >"conftest.in"
  5263. while :
  5264. do
  5265. cat "conftest.in" "conftest.in" >"conftest.tmp"
  5266. mv "conftest.tmp" "conftest.in"
  5267. cp "conftest.in" "conftest.nl"
  5268. printf "%s\n" 'EGREP_TRADITIONAL' >> "conftest.nl"
  5269. "$ac_path_EGREP_TRADITIONAL" -E 'EGR(EP|AC)_TRADITIONAL$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
  5270. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  5271. as_fn_arith $ac_count + 1 && ac_count=$as_val
  5272. if test $ac_count -gt ${ac_path_EGREP_TRADITIONAL_max-0}; then
  5273. # Best one so far, save it but keep looking for a better one
  5274. ac_cv_path_EGREP_TRADITIONAL="$ac_path_EGREP_TRADITIONAL"
  5275. ac_path_EGREP_TRADITIONAL_max=$ac_count
  5276. fi
  5277. # 10*(2^10) chars as input seems more than enough
  5278. test $ac_count -gt 10 && break
  5279. done
  5280. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  5281. esac
  5282. $ac_path_EGREP_TRADITIONAL_found && break 3
  5283. done
  5284. done
  5285. done
  5286. IFS=$as_save_IFS
  5287. if test -z "$ac_cv_path_EGREP_TRADITIONAL"; then
  5288. :
  5289. fi
  5290. else
  5291. ac_cv_path_EGREP_TRADITIONAL=$EGREP_TRADITIONAL
  5292. fi
  5293. if test "$ac_cv_path_EGREP_TRADITIONAL"
  5294. then :
  5295. ac_cv_path_EGREP_TRADITIONAL="$ac_cv_path_EGREP_TRADITIONAL -E"
  5296. else case e in #(
  5297. e) if test -z "$EGREP_TRADITIONAL"; then
  5298. ac_path_EGREP_TRADITIONAL_found=false
  5299. # Loop through the user's path and test for each of PROGNAME-LIST
  5300. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5301. for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
  5302. do
  5303. IFS=$as_save_IFS
  5304. case $as_dir in #(((
  5305. '') as_dir=./ ;;
  5306. */) ;;
  5307. *) as_dir=$as_dir/ ;;
  5308. esac
  5309. for ac_prog in egrep
  5310. do
  5311. for ac_exec_ext in '' $ac_executable_extensions; do
  5312. ac_path_EGREP_TRADITIONAL="$as_dir$ac_prog$ac_exec_ext"
  5313. as_fn_executable_p "$ac_path_EGREP_TRADITIONAL" || continue
  5314. # Check for GNU ac_path_EGREP_TRADITIONAL and select it if it is found.
  5315. # Check for GNU $ac_path_EGREP_TRADITIONAL
  5316. case `"$ac_path_EGREP_TRADITIONAL" --version 2>&1` in #(
  5317. *GNU*)
  5318. ac_cv_path_EGREP_TRADITIONAL="$ac_path_EGREP_TRADITIONAL" ac_path_EGREP_TRADITIONAL_found=:;;
  5319. #(
  5320. *)
  5321. ac_count=0
  5322. printf %s 0123456789 >"conftest.in"
  5323. while :
  5324. do
  5325. cat "conftest.in" "conftest.in" >"conftest.tmp"
  5326. mv "conftest.tmp" "conftest.in"
  5327. cp "conftest.in" "conftest.nl"
  5328. printf "%s\n" 'EGREP_TRADITIONAL' >> "conftest.nl"
  5329. "$ac_path_EGREP_TRADITIONAL" 'EGR(EP|AC)_TRADITIONAL$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
  5330. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  5331. as_fn_arith $ac_count + 1 && ac_count=$as_val
  5332. if test $ac_count -gt ${ac_path_EGREP_TRADITIONAL_max-0}; then
  5333. # Best one so far, save it but keep looking for a better one
  5334. ac_cv_path_EGREP_TRADITIONAL="$ac_path_EGREP_TRADITIONAL"
  5335. ac_path_EGREP_TRADITIONAL_max=$ac_count
  5336. fi
  5337. # 10*(2^10) chars as input seems more than enough
  5338. test $ac_count -gt 10 && break
  5339. done
  5340. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  5341. esac
  5342. $ac_path_EGREP_TRADITIONAL_found && break 3
  5343. done
  5344. done
  5345. done
  5346. IFS=$as_save_IFS
  5347. if test -z "$ac_cv_path_EGREP_TRADITIONAL"; then
  5348. as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
  5349. fi
  5350. else
  5351. ac_cv_path_EGREP_TRADITIONAL=$EGREP_TRADITIONAL
  5352. fi
  5353. ;;
  5354. esac
  5355. fi ;;
  5356. esac
  5357. fi
  5358. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP_TRADITIONAL" >&5
  5359. printf "%s\n" "$ac_cv_path_EGREP_TRADITIONAL" >&6; }
  5360. EGREP_TRADITIONAL=$ac_cv_path_EGREP_TRADITIONAL
  5361. ac_fn_c_check_header_compile "$LINENO" "sys/time.h" "ac_cv_header_sys_time_h" "$ac_includes_default
  5362. /* netinet/tcp.h requires netinet/in.h on some platforms. */
  5363. #ifdef HAVE_NETINET_IN_H
  5364. #include <netinet/in.h>
  5365. #endif
  5366. "
  5367. if test "x$ac_cv_header_sys_time_h" = xyes
  5368. then :
  5369. printf "%s\n" "#define HAVE_SYS_TIME_H 1" >>confdefs.h
  5370. fi
  5371. ac_fn_c_check_header_compile "$LINENO" "limits.h" "ac_cv_header_limits_h" "$ac_includes_default
  5372. /* netinet/tcp.h requires netinet/in.h on some platforms. */
  5373. #ifdef HAVE_NETINET_IN_H
  5374. #include <netinet/in.h>
  5375. #endif
  5376. "
  5377. if test "x$ac_cv_header_limits_h" = xyes
  5378. then :
  5379. printf "%s\n" "#define HAVE_LIMITS_H 1" >>confdefs.h
  5380. fi
  5381. ac_fn_c_check_header_compile "$LINENO" "sys/select.h" "ac_cv_header_sys_select_h" "$ac_includes_default
  5382. /* netinet/tcp.h requires netinet/in.h on some platforms. */
  5383. #ifdef HAVE_NETINET_IN_H
  5384. #include <netinet/in.h>
  5385. #endif
  5386. "
  5387. if test "x$ac_cv_header_sys_select_h" = xyes
  5388. then :
  5389. printf "%s\n" "#define HAVE_SYS_SELECT_H 1" >>confdefs.h
  5390. fi
  5391. ac_fn_c_check_header_compile "$LINENO" "arpa/inet.h" "ac_cv_header_arpa_inet_h" "$ac_includes_default
  5392. /* netinet/tcp.h requires netinet/in.h on some platforms. */
  5393. #ifdef HAVE_NETINET_IN_H
  5394. #include <netinet/in.h>
  5395. #endif
  5396. "
  5397. if test "x$ac_cv_header_arpa_inet_h" = xyes
  5398. then :
  5399. printf "%s\n" "#define HAVE_ARPA_INET_H 1" >>confdefs.h
  5400. fi
  5401. ac_fn_c_check_header_compile "$LINENO" "libintl.h" "ac_cv_header_libintl_h" "$ac_includes_default
  5402. /* netinet/tcp.h requires netinet/in.h on some platforms. */
  5403. #ifdef HAVE_NETINET_IN_H
  5404. #include <netinet/in.h>
  5405. #endif
  5406. "
  5407. if test "x$ac_cv_header_libintl_h" = xyes
  5408. then :
  5409. printf "%s\n" "#define HAVE_LIBINTL_H 1" >>confdefs.h
  5410. fi
  5411. ac_fn_c_check_header_compile "$LINENO" "signal.h" "ac_cv_header_signal_h" "$ac_includes_default
  5412. /* netinet/tcp.h requires netinet/in.h on some platforms. */
  5413. #ifdef HAVE_NETINET_IN_H
  5414. #include <netinet/in.h>
  5415. #endif
  5416. "
  5417. if test "x$ac_cv_header_signal_h" = xyes
  5418. then :
  5419. printf "%s\n" "#define HAVE_SIGNAL_H 1" >>confdefs.h
  5420. fi
  5421. ac_fn_c_check_header_compile "$LINENO" "sys/socket.h" "ac_cv_header_sys_socket_h" "$ac_includes_default
  5422. /* netinet/tcp.h requires netinet/in.h on some platforms. */
  5423. #ifdef HAVE_NETINET_IN_H
  5424. #include <netinet/in.h>
  5425. #endif
  5426. "
  5427. if test "x$ac_cv_header_sys_socket_h" = xyes
  5428. then :
  5429. printf "%s\n" "#define HAVE_SYS_SOCKET_H 1" >>confdefs.h
  5430. fi
  5431. ac_fn_c_check_header_compile "$LINENO" "netinet/in.h" "ac_cv_header_netinet_in_h" "$ac_includes_default
  5432. /* netinet/tcp.h requires netinet/in.h on some platforms. */
  5433. #ifdef HAVE_NETINET_IN_H
  5434. #include <netinet/in.h>
  5435. #endif
  5436. "
  5437. if test "x$ac_cv_header_netinet_in_h" = xyes
  5438. then :
  5439. printf "%s\n" "#define HAVE_NETINET_IN_H 1" >>confdefs.h
  5440. fi
  5441. ac_fn_c_check_header_compile "$LINENO" "netinet/tcp.h" "ac_cv_header_netinet_tcp_h" "$ac_includes_default
  5442. /* netinet/tcp.h requires netinet/in.h on some platforms. */
  5443. #ifdef HAVE_NETINET_IN_H
  5444. #include <netinet/in.h>
  5445. #endif
  5446. "
  5447. if test "x$ac_cv_header_netinet_tcp_h" = xyes
  5448. then :
  5449. printf "%s\n" "#define HAVE_NETINET_TCP_H 1" >>confdefs.h
  5450. fi
  5451. ac_fn_c_check_header_compile "$LINENO" "netdb.h" "ac_cv_header_netdb_h" "$ac_includes_default
  5452. /* netinet/tcp.h requires netinet/in.h on some platforms. */
  5453. #ifdef HAVE_NETINET_IN_H
  5454. #include <netinet/in.h>
  5455. #endif
  5456. "
  5457. if test "x$ac_cv_header_netdb_h" = xyes
  5458. then :
  5459. printf "%s\n" "#define HAVE_NETDB_H 1" >>confdefs.h
  5460. fi
  5461. ac_fn_c_check_header_compile "$LINENO" "sys/poll.h" "ac_cv_header_sys_poll_h" "$ac_includes_default
  5462. /* netinet/tcp.h requires netinet/in.h on some platforms. */
  5463. #ifdef HAVE_NETINET_IN_H
  5464. #include <netinet/in.h>
  5465. #endif
  5466. "
  5467. if test "x$ac_cv_header_sys_poll_h" = xyes
  5468. then :
  5469. printf "%s\n" "#define HAVE_SYS_POLL_H 1" >>confdefs.h
  5470. fi
  5471. ac_fn_c_check_header_compile "$LINENO" "sys/limits.h" "ac_cv_header_sys_limits_h" "$ac_includes_default
  5472. /* netinet/tcp.h requires netinet/in.h on some platforms. */
  5473. #ifdef HAVE_NETINET_IN_H
  5474. #include <netinet/in.h>
  5475. #endif
  5476. "
  5477. if test "x$ac_cv_header_sys_limits_h" = xyes
  5478. then :
  5479. printf "%s\n" "#define HAVE_SYS_LIMITS_H 1" >>confdefs.h
  5480. fi
  5481. ac_fn_c_check_header_compile "$LINENO" "fcntl.h" "ac_cv_header_fcntl_h" "$ac_includes_default
  5482. /* netinet/tcp.h requires netinet/in.h on some platforms. */
  5483. #ifdef HAVE_NETINET_IN_H
  5484. #include <netinet/in.h>
  5485. #endif
  5486. "
  5487. if test "x$ac_cv_header_fcntl_h" = xyes
  5488. then :
  5489. printf "%s\n" "#define HAVE_FCNTL_H 1" >>confdefs.h
  5490. fi
  5491. ac_fn_c_check_header_compile "$LINENO" "iconv.h" "ac_cv_header_iconv_h" "$ac_includes_default
  5492. /* netinet/tcp.h requires netinet/in.h on some platforms. */
  5493. #ifdef HAVE_NETINET_IN_H
  5494. #include <netinet/in.h>
  5495. #endif
  5496. "
  5497. if test "x$ac_cv_header_iconv_h" = xyes
  5498. then :
  5499. printf "%s\n" "#define HAVE_ICONV_H 1" >>confdefs.h
  5500. fi
  5501. ac_fn_c_check_header_compile "$LINENO" "net/if.h" "ac_cv_header_net_if_h" "$ac_includes_default
  5502. /* netinet/tcp.h requires netinet/in.h on some platforms. */
  5503. #ifdef HAVE_NETINET_IN_H
  5504. #include <netinet/in.h>
  5505. #endif
  5506. "
  5507. if test "x$ac_cv_header_net_if_h" = xyes
  5508. then :
  5509. printf "%s\n" "#define HAVE_NET_IF_H 1" >>confdefs.h
  5510. fi
  5511. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for timezone global" >&5
  5512. printf %s "checking for timezone global... " >&6; }
  5513. if test ${ne_cv_cc_timezone+y}
  5514. then :
  5515. printf %s "(cached) " >&6
  5516. else case e in #(
  5517. e)
  5518. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5519. /* end confdefs.h. */
  5520. #include <sys/types.h>
  5521. #include <time.h>
  5522. int
  5523. main (void)
  5524. {
  5525. time_t t = 0 - timezone; timezone = 1;
  5526. ;
  5527. return 0;
  5528. }
  5529. _ACEOF
  5530. if ac_fn_c_try_link "$LINENO"
  5531. then :
  5532. ne_cv_cc_timezone=yes
  5533. else case e in #(
  5534. e) ne_cv_cc_timezone=no ;;
  5535. esac
  5536. fi
  5537. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  5538. conftest$ac_exeext conftest.$ac_ext ;;
  5539. esac
  5540. fi
  5541. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ne_cv_cc_timezone" >&5
  5542. printf "%s\n" "$ne_cv_cc_timezone" >&6; }
  5543. if test "$ne_cv_cc_timezone" = "yes"; then
  5544. printf "%s\n" "#define HAVE_TIMEZONE 1" >>confdefs.h
  5545. fi
  5546. if test -z "$ac_cv_sizeof_off_t"; then
  5547. NE_FLAG_LFS=no
  5548. ne_LFS_message="LFS support omitted: off_t size unknown!"
  5549. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: LFS support omitted: off_t size unknown!" >&5
  5550. printf "%s\n" "$as_me: LFS support omitted: off_t size unknown!" >&6;}
  5551. elif test $ac_cv_sizeof_off_t != 4; then
  5552. NE_FLAG_LFS=no
  5553. ne_LFS_message="LFS support unnecessary, off_t is not 32-bit"
  5554. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: LFS support unnecessary, off_t is not 32-bit" >&5
  5555. printf "%s\n" "$as_me: LFS support unnecessary, off_t is not 32-bit" >&6;}
  5556. for ac_func in strtoll strtoq
  5557. do :
  5558. as_ac_var=`printf "%s\n" "ac_cv_func_$ac_func" | sed "$as_sed_sh"`
  5559. ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
  5560. if eval test \"x\$"$as_ac_var"\" = x"yes"
  5561. then :
  5562. cat >>confdefs.h <<_ACEOF
  5563. #define `printf "%s\n" "HAVE_$ac_func" | sed "$as_sed_cpp"` 1
  5564. _ACEOF
  5565. break
  5566. fi
  5567. done
  5568. elif test -z "$ac_cv_sizeof_long_long"; then
  5569. NE_FLAG_LFS=no
  5570. ne_LFS_message="LFS support omitted: long long size unknown"
  5571. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: LFS support omitted: long long size unknown" >&5
  5572. printf "%s\n" "$as_me: LFS support omitted: long long size unknown" >&6;}
  5573. elif test $ac_cv_sizeof_long_long != 8; then
  5574. NE_FLAG_LFS=no
  5575. ne_LFS_message="LFS support omitted: long long not 64-bit"
  5576. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: LFS support omitted: long long not 64-bit" >&5
  5577. printf "%s\n" "$as_me: LFS support omitted: long long not 64-bit" >&6;}
  5578. else
  5579. ne_save_CPPFLAGS=$CPPFLAGS
  5580. CPPFLAGS="$CPPFLAGS -D_LARGEFILE64_SOURCE"
  5581. ac_fn_c_check_type "$LINENO" "off64_t" "ac_cv_type_off64_t" "$ac_includes_default"
  5582. if test "x$ac_cv_type_off64_t" = xyes
  5583. then :
  5584. # The cast to long int works around a bug in the HP C Compiler
  5585. # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
  5586. # declarations like 'int a3[[(sizeof (unsigned char)) >= 0]];'.
  5587. # This bug is HP SR number 8606223364.
  5588. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking size of off64_t" >&5
  5589. printf %s "checking size of off64_t... " >&6; }
  5590. if test ${ac_cv_sizeof_off64_t+y}
  5591. then :
  5592. printf %s "(cached) " >&6
  5593. else case e in #(
  5594. e) if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (off64_t))" "ac_cv_sizeof_off64_t" "$ac_includes_default
  5595. "
  5596. then :
  5597. else case e in #(
  5598. e) if test "$ac_cv_type_off64_t" = yes; then
  5599. { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
  5600. printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
  5601. as_fn_error 77 "cannot compute sizeof (off64_t)
  5602. See 'config.log' for more details" "$LINENO" 5; }
  5603. else
  5604. ac_cv_sizeof_off64_t=0
  5605. fi ;;
  5606. esac
  5607. fi
  5608. ;;
  5609. esac
  5610. fi
  5611. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_off64_t" >&5
  5612. printf "%s\n" "$ac_cv_sizeof_off64_t" >&6; }
  5613. printf "%s\n" "#define SIZEOF_OFF64_T $ac_cv_sizeof_off64_t" >>confdefs.h
  5614. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to print off64_t" >&5
  5615. printf %s "checking how to print off64_t... " >&6; }
  5616. if test ${ne_cv_fmt_off64_t+y}
  5617. then :
  5618. printf %s "(cached) " >&6
  5619. else case e in #(
  5620. e)
  5621. ne_cv_fmt_off64_t=none
  5622. if test $ne_fmt_trycompile = yes; then
  5623. oflags="$CPPFLAGS"
  5624. # Consider format string mismatches as errors
  5625. CPPFLAGS="$CPPFLAGS -Wformat -Werror"
  5626. for str in d ld lld; do
  5627. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5628. /* end confdefs.h. */
  5629. #include <sys/types.h>
  5630. #include <stdio.h>
  5631. int
  5632. main (void)
  5633. {
  5634. off64_t i = 1; printf("%$str", i);
  5635. ;
  5636. return 0;
  5637. }
  5638. _ACEOF
  5639. if ac_fn_c_try_compile "$LINENO"
  5640. then :
  5641. ne_cv_fmt_off64_t=$str; break
  5642. fi
  5643. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  5644. done
  5645. CPPFLAGS=$oflags
  5646. else
  5647. # Best guess. Don't have to be too precise since we probably won't
  5648. # get a warning message anyway.
  5649. case $ac_cv_sizeof_off64_t in
  5650. $ac_cv_sizeof_int) ne_cv_fmt_off64_t="d" ;;
  5651. $ac_cv_sizeof_long) ne_cv_fmt_off64_t="ld" ;;
  5652. $ac_cv_sizeof_long_long) ne_cv_fmt_off64_t="lld" ;;
  5653. esac
  5654. fi
  5655. ;;
  5656. esac
  5657. fi
  5658. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ne_cv_fmt_off64_t" >&5
  5659. printf "%s\n" "$ne_cv_fmt_off64_t" >&6; }
  5660. if test "x$ne_cv_fmt_off64_t" = "xnone"; then
  5661. as_fn_error $? "format string for off64_t not found" "$LINENO" 5
  5662. fi
  5663. printf "%s\n" "#define NE_FMT_OFF64_T \"$ne_cv_fmt_off64_t\"" >>confdefs.h
  5664. ne_lfsok=no
  5665. for ac_func in strtoll strtoq
  5666. do :
  5667. as_ac_var=`printf "%s\n" "ac_cv_func_$ac_func" | sed "$as_sed_sh"`
  5668. ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
  5669. if eval test \"x\$"$as_ac_var"\" = x"yes"
  5670. then :
  5671. cat >>confdefs.h <<_ACEOF
  5672. #define `printf "%s\n" "HAVE_$ac_func" | sed "$as_sed_cpp"` 1
  5673. _ACEOF
  5674. ne_lfsok=yes; break
  5675. fi
  5676. done
  5677. case $ne_cv_os_uname in #(
  5678. MINGW*|MSYS_NT*) :
  5679. for ac_func in lseek64
  5680. do :
  5681. ac_fn_c_check_func "$LINENO" "lseek64" "ac_cv_func_lseek64"
  5682. if test "x$ac_cv_func_lseek64" = xyes
  5683. then :
  5684. printf "%s\n" "#define HAVE_LSEEK64 1" >>confdefs.h
  5685. else case e in #(
  5686. e) ne_lfsok=no; break ;;
  5687. esac
  5688. fi
  5689. done ;; #(
  5690. *) :
  5691. for ac_func in lseek64 fstat64
  5692. do :
  5693. as_ac_var=`printf "%s\n" "ac_cv_func_$ac_func" | sed "$as_sed_sh"`
  5694. ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
  5695. if eval test \"x\$"$as_ac_var"\" = x"yes"
  5696. then :
  5697. cat >>confdefs.h <<_ACEOF
  5698. #define `printf "%s\n" "HAVE_$ac_func" | sed "$as_sed_cpp"` 1
  5699. _ACEOF
  5700. else case e in #(
  5701. e) ne_lfsok=no; break ;;
  5702. esac
  5703. fi
  5704. done
  5705. ;;
  5706. esac
  5707. if test x$ne_lfsok = xyes; then
  5708. NE_FLAG_LFS=yes
  5709. printf "%s\n" "#define NE_HAVE_LFS 1" >>confdefs.h
  5710. ne_LFS_message="LFS (large file) support enabled"
  5711. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: LFS (large file) support enabled" >&5
  5712. printf "%s\n" "$as_me: LFS (large file) support enabled" >&6;}
  5713. NEON_CFLAGS="$NEON_CFLAGS -D_LARGEFILE64_SOURCE -DNE_LFS"
  5714. ne_save_CPPFLAGS="$CPPFLAGS -DNE_LFS"
  5715. else
  5716. NE_FLAG_LFS=no
  5717. ne_LFS_message="LFS support omitted: 64-bit support functions not found"
  5718. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: LFS support omitted: 64-bit support functions not found" >&5
  5719. printf "%s\n" "$as_me: LFS support omitted: 64-bit support functions not found" >&6;}
  5720. fi
  5721. else case e in #(
  5722. e)
  5723. NE_FLAG_LFS=no
  5724. ne_LFS_message="LFS support omitted: off64_t type not found"
  5725. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: LFS support omitted: off64_t type not found" >&5
  5726. printf "%s\n" "$as_me: LFS support omitted: off64_t type not found" >&6;}
  5727. ;;
  5728. esac
  5729. fi
  5730. CPPFLAGS=$ne_save_CPPFLAGS
  5731. fi
  5732. if test "$NE_FLAG_LFS" = "yes"; then
  5733. printf "%s\n" "#define NE_FMT_NE_OFF_T NE_FMT_OFF64_T" >>confdefs.h
  5734. if test "x${NE_LIBTOOL_RELEASE}y" = "xy"; then
  5735. NE_LIBTOOL_RELEASE="LFS"
  5736. else
  5737. NE_LIBTOOL_RELEASE="${NE_LIBTOOL_RELEASE}-LFS"
  5738. fi
  5739. else
  5740. printf "%s\n" "#define NE_FMT_NE_OFF_T NE_FMT_OFF_T" >>confdefs.h
  5741. fi
  5742. ac_fn_c_check_func "$LINENO" "strcasecmp" "ac_cv_func_strcasecmp"
  5743. if test "x$ac_cv_func_strcasecmp" = xyes
  5744. then :
  5745. printf "%s\n" "#define HAVE_STRCASECMP 1" >>confdefs.h
  5746. else case e in #(
  5747. e) case " $LIBOBJS " in
  5748. *" strcasecmp.$ac_objext "* ) ;;
  5749. *) LIBOBJS="$LIBOBJS strcasecmp.$ac_objext"
  5750. ;;
  5751. esac
  5752. ;;
  5753. esac
  5754. fi
  5755. ac_fn_c_check_func "$LINENO" "signal" "ac_cv_func_signal"
  5756. if test "x$ac_cv_func_signal" = xyes
  5757. then :
  5758. printf "%s\n" "#define HAVE_SIGNAL 1" >>confdefs.h
  5759. fi
  5760. ac_fn_c_check_func "$LINENO" "setvbuf" "ac_cv_func_setvbuf"
  5761. if test "x$ac_cv_func_setvbuf" = xyes
  5762. then :
  5763. printf "%s\n" "#define HAVE_SETVBUF 1" >>confdefs.h
  5764. fi
  5765. ac_fn_c_check_func "$LINENO" "setsockopt" "ac_cv_func_setsockopt"
  5766. if test "x$ac_cv_func_setsockopt" = xyes
  5767. then :
  5768. printf "%s\n" "#define HAVE_SETSOCKOPT 1" >>confdefs.h
  5769. fi
  5770. ac_fn_c_check_func "$LINENO" "stpcpy" "ac_cv_func_stpcpy"
  5771. if test "x$ac_cv_func_stpcpy" = xyes
  5772. then :
  5773. printf "%s\n" "#define HAVE_STPCPY 1" >>confdefs.h
  5774. fi
  5775. ac_fn_c_check_func "$LINENO" "poll" "ac_cv_func_poll"
  5776. if test "x$ac_cv_func_poll" = xyes
  5777. then :
  5778. printf "%s\n" "#define HAVE_POLL 1" >>confdefs.h
  5779. fi
  5780. ac_fn_c_check_func "$LINENO" "fcntl" "ac_cv_func_fcntl"
  5781. if test "x$ac_cv_func_fcntl" = xyes
  5782. then :
  5783. printf "%s\n" "#define HAVE_FCNTL 1" >>confdefs.h
  5784. fi
  5785. ac_fn_c_check_func "$LINENO" "getsockopt" "ac_cv_func_getsockopt"
  5786. if test "x$ac_cv_func_getsockopt" = xyes
  5787. then :
  5788. printf "%s\n" "#define HAVE_GETSOCKOPT 1" >>confdefs.h
  5789. fi
  5790. ac_fn_c_check_func "$LINENO" "explicit_bzero" "ac_cv_func_explicit_bzero"
  5791. if test "x$ac_cv_func_explicit_bzero" = xyes
  5792. then :
  5793. printf "%s\n" "#define HAVE_EXPLICIT_BZERO 1" >>confdefs.h
  5794. fi
  5795. ac_fn_c_check_func "$LINENO" "sendmsg" "ac_cv_func_sendmsg"
  5796. if test "x$ac_cv_func_sendmsg" = xyes
  5797. then :
  5798. printf "%s\n" "#define HAVE_SENDMSG 1" >>confdefs.h
  5799. fi
  5800. ac_fn_c_check_func "$LINENO" "gettimeofday" "ac_cv_func_gettimeofday"
  5801. if test "x$ac_cv_func_gettimeofday" = xyes
  5802. then :
  5803. printf "%s\n" "#define HAVE_GETTIMEOFDAY 1" >>confdefs.h
  5804. fi
  5805. ac_fn_c_check_func "$LINENO" "gmtime_r" "ac_cv_func_gmtime_r"
  5806. if test "x$ac_cv_func_gmtime_r" = xyes
  5807. then :
  5808. printf "%s\n" "#define HAVE_GMTIME_R 1" >>confdefs.h
  5809. fi
  5810. ac_fn_c_check_func "$LINENO" "if_nametoindex" "ac_cv_func_if_nametoindex"
  5811. if test "x$ac_cv_func_if_nametoindex" = xyes
  5812. then :
  5813. printf "%s\n" "#define HAVE_IF_NAMETOINDEX 1" >>confdefs.h
  5814. fi
  5815. ac_fn_c_check_func "$LINENO" "if_indextoname" "ac_cv_func_if_indextoname"
  5816. if test "x$ac_cv_func_if_indextoname" = xyes
  5817. then :
  5818. printf "%s\n" "#define HAVE_IF_INDEXTONAME 1" >>confdefs.h
  5819. fi
  5820. if test "x${ac_cv_func_poll}${ac_cv_header_sys_poll_h}y" = "xyesyesy"; then
  5821. printf "%s\n" "#define NE_USE_POLL 1" >>confdefs.h
  5822. fi
  5823. if test "$ac_cv_func_stpcpy" = "yes"; then
  5824. ac_fn_check_decl "$LINENO" "stpcpy" "ac_cv_have_decl_stpcpy" "$ac_includes_default" "$ac_c_undeclared_builtin_options" "CFLAGS"
  5825. if test "x$ac_cv_have_decl_stpcpy" = xyes
  5826. then :
  5827. ac_have_decl=1
  5828. else case e in #(
  5829. e) ac_have_decl=0 ;;
  5830. esac
  5831. fi
  5832. printf "%s\n" "#define HAVE_DECL_STPCPY $ac_have_decl" >>confdefs.h
  5833. fi
  5834. # Modern AIXes with the "Linux-like" libc have an undeclared stpcpy
  5835. # Unixware 7 can only link gethostbyname with -lnsl -lsocket
  5836. # Pick up -lsocket first, then the gethostbyname check will work.
  5837. # Haiku requires -lnetwork for socket functions.
  5838. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for library containing socket" >&5
  5839. printf %s "checking for library containing socket... " >&6; }
  5840. if test ${ne_cv_libsfor_socket+y}
  5841. then :
  5842. printf %s "(cached) " >&6
  5843. else case e in #(
  5844. e)
  5845. case $ne_cv_os_uname in
  5846. MINGW*|MSYS_NT*)
  5847. ;;
  5848. *)
  5849. case socket in
  5850. getaddrinfo)
  5851. ne__prologue="#include <netdb.h>"
  5852. ne__code="getaddrinfo(0,0,0,0);"
  5853. ;;
  5854. socket)
  5855. ne__prologue="#include <sys/socket.h>"
  5856. ne__code="socket(0,0,0);"
  5857. ;;
  5858. bindtextdomain)
  5859. ne__prologue="#include <libintl.h>"
  5860. ne__code="bindtextdomain(\"\",\"\");"
  5861. ;;
  5862. *)
  5863. ne__prologue=""
  5864. ne__code="socket();"
  5865. ;;
  5866. esac
  5867. ;;
  5868. esac
  5869. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5870. /* end confdefs.h. */
  5871. $ne__prologue
  5872. int
  5873. main (void)
  5874. {
  5875. $ne__code
  5876. ;
  5877. return 0;
  5878. }
  5879. _ACEOF
  5880. if ac_fn_c_try_link "$LINENO"
  5881. then :
  5882. ne_cv_libsfor_socket="none needed"
  5883. else case e in #(
  5884. e)
  5885. ne_sl_save_LIBS=$LIBS
  5886. ne_cv_libsfor_socket="not found"
  5887. for lib in socket inet ws2_32 network; do
  5888. case $ne_cv_os_uname in
  5889. MINGW*|MSYS_NT*)
  5890. case $lib in
  5891. ws2_32)
  5892. ne__prologue="#include <winsock2.h>"
  5893. case socket in
  5894. gethostbyname)
  5895. ne__code="gethostbyname(\"\")"
  5896. ;;
  5897. socket)
  5898. ne__code="socket(0,0,0);"
  5899. ;;
  5900. *)
  5901. ne__code="socket();"
  5902. ;;
  5903. esac
  5904. ;;
  5905. *)
  5906. ne__prologue=""
  5907. ne__code=""
  5908. ;;
  5909. esac
  5910. ;;
  5911. *)
  5912. ;;
  5913. esac
  5914. LIBS="$ne_sl_save_LIBS -l$lib $NEON_LIBS"
  5915. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5916. /* end confdefs.h. */
  5917. $ne__prologue
  5918. int
  5919. main (void)
  5920. {
  5921. $ne__code
  5922. ;
  5923. return 0;
  5924. }
  5925. _ACEOF
  5926. if ac_fn_c_try_link "$LINENO"
  5927. then :
  5928. ne_cv_libsfor_socket="-l$lib"; break
  5929. fi
  5930. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  5931. conftest$ac_exeext conftest.$ac_ext
  5932. done
  5933. LIBS=$ne_sl_save_LIBS
  5934. ;;
  5935. esac
  5936. fi
  5937. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  5938. conftest$ac_exeext conftest.$ac_ext
  5939. ;;
  5940. esac
  5941. fi
  5942. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ne_cv_libsfor_socket" >&5
  5943. printf "%s\n" "$ne_cv_libsfor_socket" >&6; }
  5944. ac_fn_c_check_header_compile "$LINENO" "wspiapi.h" "ac_cv_header_wspiapi_h" "$ac_includes_default"
  5945. if test "x$ac_cv_header_wspiapi_h" = xyes
  5946. then :
  5947. printf "%s\n" "#define HAVE_WSPIAPI_H 1" >>confdefs.h
  5948. fi
  5949. if test "$ne_cv_libsfor_socket" = "not found"; then
  5950. as_fn_error $? "could not find library containing socket" "$LINENO" 5
  5951. elif test "$ne_cv_libsfor_socket" = "none needed"; then
  5952. :
  5953. else
  5954. NEON_LIBS="$ne_cv_libsfor_socket $NEON_LIBS"
  5955. fi
  5956. # Enable getaddrinfo support if it, gai_strerror and inet_ntop are
  5957. # all available.
  5958. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for library containing getaddrinfo" >&5
  5959. printf %s "checking for library containing getaddrinfo... " >&6; }
  5960. if test ${ne_cv_libsfor_getaddrinfo+y}
  5961. then :
  5962. printf %s "(cached) " >&6
  5963. else case e in #(
  5964. e)
  5965. case $ne_cv_os_uname in
  5966. MINGW*|MSYS_NT*)
  5967. ;;
  5968. *)
  5969. case getaddrinfo in
  5970. getaddrinfo)
  5971. ne__prologue="#include <netdb.h>"
  5972. ne__code="getaddrinfo(0,0,0,0);"
  5973. ;;
  5974. socket)
  5975. ne__prologue="#include <sys/socket.h>"
  5976. ne__code="socket(0,0,0);"
  5977. ;;
  5978. bindtextdomain)
  5979. ne__prologue="#include <libintl.h>"
  5980. ne__code="bindtextdomain(\"\",\"\");"
  5981. ;;
  5982. *)
  5983. ne__prologue=""
  5984. ne__code="getaddrinfo();"
  5985. ;;
  5986. esac
  5987. ;;
  5988. esac
  5989. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5990. /* end confdefs.h. */
  5991. $ne__prologue
  5992. int
  5993. main (void)
  5994. {
  5995. $ne__code
  5996. ;
  5997. return 0;
  5998. }
  5999. _ACEOF
  6000. if ac_fn_c_try_link "$LINENO"
  6001. then :
  6002. ne_cv_libsfor_getaddrinfo="none needed"
  6003. else case e in #(
  6004. e)
  6005. ne_sl_save_LIBS=$LIBS
  6006. ne_cv_libsfor_getaddrinfo="not found"
  6007. for lib in nsl; do
  6008. case $ne_cv_os_uname in
  6009. MINGW*|MSYS_NT*)
  6010. case $lib in
  6011. ws2_32)
  6012. ne__prologue="#include <winsock2.h>"
  6013. case getaddrinfo in
  6014. gethostbyname)
  6015. ne__code="gethostbyname(\"\")"
  6016. ;;
  6017. socket)
  6018. ne__code="socket(0,0,0);"
  6019. ;;
  6020. *)
  6021. ne__code="getaddrinfo();"
  6022. ;;
  6023. esac
  6024. ;;
  6025. *)
  6026. ne__prologue=""
  6027. ne__code=""
  6028. ;;
  6029. esac
  6030. ;;
  6031. *)
  6032. ;;
  6033. esac
  6034. LIBS="$ne_sl_save_LIBS -l$lib $NEON_LIBS"
  6035. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6036. /* end confdefs.h. */
  6037. $ne__prologue
  6038. int
  6039. main (void)
  6040. {
  6041. $ne__code
  6042. ;
  6043. return 0;
  6044. }
  6045. _ACEOF
  6046. if ac_fn_c_try_link "$LINENO"
  6047. then :
  6048. ne_cv_libsfor_getaddrinfo="-l$lib"; break
  6049. fi
  6050. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  6051. conftest$ac_exeext conftest.$ac_ext
  6052. done
  6053. LIBS=$ne_sl_save_LIBS
  6054. ;;
  6055. esac
  6056. fi
  6057. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  6058. conftest$ac_exeext conftest.$ac_ext
  6059. ;;
  6060. esac
  6061. fi
  6062. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ne_cv_libsfor_getaddrinfo" >&5
  6063. printf "%s\n" "$ne_cv_libsfor_getaddrinfo" >&6; }
  6064. ac_fn_c_check_header_compile "$LINENO" "wspiapi.h" "ac_cv_header_wspiapi_h" "$ac_includes_default"
  6065. if test "x$ac_cv_header_wspiapi_h" = xyes
  6066. then :
  6067. printf "%s\n" "#define HAVE_WSPIAPI_H 1" >>confdefs.h
  6068. fi
  6069. if test "$ne_cv_libsfor_getaddrinfo" = "not found"; then
  6070. ne_enable_gai=no
  6071. elif test "$ne_cv_libsfor_getaddrinfo" = "none needed"; then
  6072. # HP-UX boxes commonly get into a state where getaddrinfo is present
  6073. # but borked: http://marc.theaimsgroup.com/?l=apr-dev&m=107730955207120&w=2
  6074. case x`uname -sr 2>/dev/null`y in
  6075. xHP-UX*11.[01]*y)
  6076. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: getaddrinfo support disabled on HP-UX 11.0x/11.1x" >&5
  6077. printf "%s\n" "$as_me: getaddrinfo support disabled on HP-UX 11.0x/11.1x" >&6;} ;;
  6078. *)
  6079. ne_enable_gai=yes
  6080. ne_cf_save_LIBS=$LIBS
  6081. LIBS="$LIBS $NEON_LIBS"
  6082. for ac_func in gai_strerror getnameinfo inet_ntop inet_pton
  6083. do :
  6084. as_ac_var=`printf "%s\n" "ac_cv_func_$ac_func" | sed "$as_sed_sh"`
  6085. ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
  6086. if eval test \"x\$"$as_ac_var"\" = x"yes"
  6087. then :
  6088. cat >>confdefs.h <<_ACEOF
  6089. #define `printf "%s\n" "HAVE_$ac_func" | sed "$as_sed_cpp"` 1
  6090. _ACEOF
  6091. else case e in #(
  6092. e) ne_enable_gai=no; break ;;
  6093. esac
  6094. fi
  6095. done
  6096. LIBS=$ne_cf_save_LIBS ;;
  6097. esac
  6098. else
  6099. NEON_LIBS="$ne_cv_libsfor_getaddrinfo $NEON_LIBS"
  6100. # HP-UX boxes commonly get into a state where getaddrinfo is present
  6101. # but borked: http://marc.theaimsgroup.com/?l=apr-dev&m=107730955207120&w=2
  6102. case x`uname -sr 2>/dev/null`y in
  6103. xHP-UX*11.[01]*y)
  6104. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: getaddrinfo support disabled on HP-UX 11.0x/11.1x" >&5
  6105. printf "%s\n" "$as_me: getaddrinfo support disabled on HP-UX 11.0x/11.1x" >&6;} ;;
  6106. *)
  6107. ne_enable_gai=yes
  6108. ne_cf_save_LIBS=$LIBS
  6109. LIBS="$LIBS $NEON_LIBS"
  6110. for ac_func in gai_strerror getnameinfo inet_ntop inet_pton
  6111. do :
  6112. as_ac_var=`printf "%s\n" "ac_cv_func_$ac_func" | sed "$as_sed_sh"`
  6113. ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
  6114. if eval test \"x\$"$as_ac_var"\" = x"yes"
  6115. then :
  6116. cat >>confdefs.h <<_ACEOF
  6117. #define `printf "%s\n" "HAVE_$ac_func" | sed "$as_sed_cpp"` 1
  6118. _ACEOF
  6119. else case e in #(
  6120. e) ne_enable_gai=no; break ;;
  6121. esac
  6122. fi
  6123. done
  6124. LIBS=$ne_cf_save_LIBS ;;
  6125. esac
  6126. fi
  6127. if test $ne_enable_gai = yes; then
  6128. NE_FLAG_IPV6=yes
  6129. printf "%s\n" "#define NE_HAVE_IPV6 1" >>confdefs.h
  6130. ne_IPV6_message="IPv6 support is enabled"
  6131. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: IPv6 support is enabled" >&5
  6132. printf "%s\n" "$as_me: IPv6 support is enabled" >&6;}
  6133. printf "%s\n" "#define USE_GETADDRINFO 1" >>confdefs.h
  6134. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for working AI_ADDRCONFIG" >&5
  6135. printf %s "checking for working AI_ADDRCONFIG... " >&6; }
  6136. if test ${ne_cv_gai_addrconfig+y}
  6137. then :
  6138. printf %s "(cached) " >&6
  6139. else case e in #(
  6140. e)
  6141. if test "$cross_compiling" = yes
  6142. then :
  6143. ne_cv_gai_addrconfig=no
  6144. else case e in #(
  6145. e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6146. /* end confdefs.h. */
  6147. #include <netdb.h>
  6148. #include <stdlib.h>
  6149. int
  6150. main (void)
  6151. {
  6152. struct addrinfo hints = {0}, *result;
  6153. hints.ai_flags = AI_ADDRCONFIG;
  6154. if (getaddrinfo("localhost", NULL, &hints, &result) != 0) return 1;
  6155. ;
  6156. return 0;
  6157. }
  6158. _ACEOF
  6159. if ac_fn_c_try_run "$LINENO"
  6160. then :
  6161. ne_cv_gai_addrconfig=yes
  6162. else case e in #(
  6163. e) ne_cv_gai_addrconfig=no ;;
  6164. esac
  6165. fi
  6166. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  6167. conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
  6168. esac
  6169. fi
  6170. ;;
  6171. esac
  6172. fi
  6173. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ne_cv_gai_addrconfig" >&5
  6174. printf "%s\n" "$ne_cv_gai_addrconfig" >&6; }
  6175. if test $ne_cv_gai_addrconfig = yes; then
  6176. printf "%s\n" "#define USE_GAI_ADDRCONFIG 1" >>confdefs.h
  6177. fi
  6178. else
  6179. # Checks for non-getaddrinfo() based resolver interfaces.
  6180. # QNX has gethostbyname in -lsocket. BeOS only has it in -lbind.
  6181. # CygWin/Winsock2 has it in -lws2_32, allegedly.
  6182. # Haiku requires -lnetwork for socket functions.
  6183. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for library containing gethostbyname" >&5
  6184. printf %s "checking for library containing gethostbyname... " >&6; }
  6185. if test ${ne_cv_libsfor_gethostbyname+y}
  6186. then :
  6187. printf %s "(cached) " >&6
  6188. else case e in #(
  6189. e)
  6190. case $ne_cv_os_uname in
  6191. MINGW*|MSYS_NT*)
  6192. ;;
  6193. *)
  6194. case gethostbyname in
  6195. getaddrinfo)
  6196. ne__prologue="#include <netdb.h>"
  6197. ne__code="getaddrinfo(0,0,0,0);"
  6198. ;;
  6199. socket)
  6200. ne__prologue="#include <sys/socket.h>"
  6201. ne__code="socket(0,0,0);"
  6202. ;;
  6203. bindtextdomain)
  6204. ne__prologue="#include <libintl.h>"
  6205. ne__code="bindtextdomain(\"\",\"\");"
  6206. ;;
  6207. *)
  6208. ne__prologue=""
  6209. ne__code="gethostbyname();"
  6210. ;;
  6211. esac
  6212. ;;
  6213. esac
  6214. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6215. /* end confdefs.h. */
  6216. $ne__prologue
  6217. int
  6218. main (void)
  6219. {
  6220. $ne__code
  6221. ;
  6222. return 0;
  6223. }
  6224. _ACEOF
  6225. if ac_fn_c_try_link "$LINENO"
  6226. then :
  6227. ne_cv_libsfor_gethostbyname="none needed"
  6228. else case e in #(
  6229. e)
  6230. ne_sl_save_LIBS=$LIBS
  6231. ne_cv_libsfor_gethostbyname="not found"
  6232. for lib in socket nsl bind ws2_32 network; do
  6233. case $ne_cv_os_uname in
  6234. MINGW*|MSYS_NT*)
  6235. case $lib in
  6236. ws2_32)
  6237. ne__prologue="#include <winsock2.h>"
  6238. case gethostbyname in
  6239. gethostbyname)
  6240. ne__code="gethostbyname(\"\")"
  6241. ;;
  6242. socket)
  6243. ne__code="socket(0,0,0);"
  6244. ;;
  6245. *)
  6246. ne__code="gethostbyname();"
  6247. ;;
  6248. esac
  6249. ;;
  6250. *)
  6251. ne__prologue=""
  6252. ne__code=""
  6253. ;;
  6254. esac
  6255. ;;
  6256. *)
  6257. ;;
  6258. esac
  6259. LIBS="$ne_sl_save_LIBS -l$lib $NEON_LIBS"
  6260. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6261. /* end confdefs.h. */
  6262. $ne__prologue
  6263. int
  6264. main (void)
  6265. {
  6266. $ne__code
  6267. ;
  6268. return 0;
  6269. }
  6270. _ACEOF
  6271. if ac_fn_c_try_link "$LINENO"
  6272. then :
  6273. ne_cv_libsfor_gethostbyname="-l$lib"; break
  6274. fi
  6275. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  6276. conftest$ac_exeext conftest.$ac_ext
  6277. done
  6278. LIBS=$ne_sl_save_LIBS
  6279. ;;
  6280. esac
  6281. fi
  6282. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  6283. conftest$ac_exeext conftest.$ac_ext
  6284. ;;
  6285. esac
  6286. fi
  6287. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ne_cv_libsfor_gethostbyname" >&5
  6288. printf "%s\n" "$ne_cv_libsfor_gethostbyname" >&6; }
  6289. ac_fn_c_check_header_compile "$LINENO" "wspiapi.h" "ac_cv_header_wspiapi_h" "$ac_includes_default"
  6290. if test "x$ac_cv_header_wspiapi_h" = xyes
  6291. then :
  6292. printf "%s\n" "#define HAVE_WSPIAPI_H 1" >>confdefs.h
  6293. fi
  6294. if test "$ne_cv_libsfor_gethostbyname" = "not found"; then
  6295. as_fn_error $? "could not find library containing gethostbyname" "$LINENO" 5
  6296. elif test "$ne_cv_libsfor_gethostbyname" = "none needed"; then
  6297. :
  6298. else
  6299. NEON_LIBS="$ne_cv_libsfor_gethostbyname $NEON_LIBS"
  6300. fi
  6301. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for library containing hstrerror" >&5
  6302. printf %s "checking for library containing hstrerror... " >&6; }
  6303. if test ${ne_cv_libsfor_hstrerror+y}
  6304. then :
  6305. printf %s "(cached) " >&6
  6306. else case e in #(
  6307. e)
  6308. case $ne_cv_os_uname in
  6309. MINGW*|MSYS_NT*)
  6310. ;;
  6311. *)
  6312. case hstrerror in
  6313. getaddrinfo)
  6314. ne__prologue="#include <netdb.h>"
  6315. ne__code="getaddrinfo(0,0,0,0);"
  6316. ;;
  6317. socket)
  6318. ne__prologue="#include <sys/socket.h>"
  6319. ne__code="socket(0,0,0);"
  6320. ;;
  6321. bindtextdomain)
  6322. ne__prologue="#include <libintl.h>"
  6323. ne__code="bindtextdomain(\"\",\"\");"
  6324. ;;
  6325. *)
  6326. ne__prologue=""
  6327. ne__code="hstrerror();"
  6328. ;;
  6329. esac
  6330. ;;
  6331. esac
  6332. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6333. /* end confdefs.h. */
  6334. $ne__prologue
  6335. int
  6336. main (void)
  6337. {
  6338. $ne__code
  6339. ;
  6340. return 0;
  6341. }
  6342. _ACEOF
  6343. if ac_fn_c_try_link "$LINENO"
  6344. then :
  6345. ne_cv_libsfor_hstrerror="none needed"
  6346. else case e in #(
  6347. e)
  6348. ne_sl_save_LIBS=$LIBS
  6349. ne_cv_libsfor_hstrerror="not found"
  6350. for lib in resolv; do
  6351. case $ne_cv_os_uname in
  6352. MINGW*|MSYS_NT*)
  6353. case $lib in
  6354. ws2_32)
  6355. ne__prologue="#include <winsock2.h>"
  6356. case hstrerror in
  6357. gethostbyname)
  6358. ne__code="gethostbyname(\"\")"
  6359. ;;
  6360. socket)
  6361. ne__code="socket(0,0,0);"
  6362. ;;
  6363. *)
  6364. ne__code="hstrerror();"
  6365. ;;
  6366. esac
  6367. ;;
  6368. *)
  6369. ne__prologue=""
  6370. ne__code=""
  6371. ;;
  6372. esac
  6373. ;;
  6374. *)
  6375. ;;
  6376. esac
  6377. LIBS="$ne_sl_save_LIBS -l$lib $NEON_LIBS"
  6378. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6379. /* end confdefs.h. */
  6380. $ne__prologue
  6381. int
  6382. main (void)
  6383. {
  6384. $ne__code
  6385. ;
  6386. return 0;
  6387. }
  6388. _ACEOF
  6389. if ac_fn_c_try_link "$LINENO"
  6390. then :
  6391. ne_cv_libsfor_hstrerror="-l$lib"; break
  6392. fi
  6393. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  6394. conftest$ac_exeext conftest.$ac_ext
  6395. done
  6396. LIBS=$ne_sl_save_LIBS
  6397. ;;
  6398. esac
  6399. fi
  6400. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  6401. conftest$ac_exeext conftest.$ac_ext
  6402. ;;
  6403. esac
  6404. fi
  6405. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ne_cv_libsfor_hstrerror" >&5
  6406. printf "%s\n" "$ne_cv_libsfor_hstrerror" >&6; }
  6407. ac_fn_c_check_header_compile "$LINENO" "wspiapi.h" "ac_cv_header_wspiapi_h" "$ac_includes_default"
  6408. if test "x$ac_cv_header_wspiapi_h" = xyes
  6409. then :
  6410. printf "%s\n" "#define HAVE_WSPIAPI_H 1" >>confdefs.h
  6411. fi
  6412. if test "$ne_cv_libsfor_hstrerror" = "not found"; then
  6413. :
  6414. elif test "$ne_cv_libsfor_hstrerror" = "none needed"; then
  6415. :
  6416. else
  6417. NEON_LIBS="$ne_cv_libsfor_hstrerror $NEON_LIBS"
  6418. fi
  6419. ne_cf_save_LIBS=$LIBS
  6420. LIBS="$LIBS $NEON_LIBS"
  6421. ac_fn_c_check_func "$LINENO" "hstrerror" "ac_cv_func_hstrerror"
  6422. if test "x$ac_cv_func_hstrerror" = xyes
  6423. then :
  6424. printf "%s\n" "#define HAVE_HSTRERROR 1" >>confdefs.h
  6425. fi
  6426. LIBS=$ne_cf_save_LIBS
  6427. # Older Unixes don't declare h_errno.
  6428. ac_fn_check_decl "$LINENO" "h_errno" "ac_cv_have_decl_h_errno" "#include <netdb.h>
  6429. " "$ac_c_undeclared_builtin_options" "CFLAGS"
  6430. if test "x$ac_cv_have_decl_h_errno" = xyes
  6431. then :
  6432. ac_have_decl=1
  6433. else case e in #(
  6434. e) ac_have_decl=0 ;;
  6435. esac
  6436. fi
  6437. printf "%s\n" "#define HAVE_DECL_H_ERRNO $ac_have_decl" >>confdefs.h
  6438. ac_fn_c_check_type "$LINENO" "in_addr_t" "ac_cv_type_in_addr_t" "
  6439. #ifdef HAVE_SYS_TYPES_H
  6440. # include <sys/types.h>
  6441. #endif
  6442. #ifdef HAVE_NETINET_IN_H
  6443. # include <netinet/in.h>
  6444. #endif
  6445. "
  6446. if test "x$ac_cv_type_in_addr_t" = xyes
  6447. then :
  6448. else case e in #(
  6449. e)
  6450. printf "%s\n" "#define in_addr_t unsigned int" >>confdefs.h
  6451. ;;
  6452. esac
  6453. fi
  6454. fi
  6455. ac_fn_c_check_type "$LINENO" "socklen_t" "ac_cv_type_socklen_t" "
  6456. #ifdef HAVE_SYS_TYPES_H
  6457. # include <sys/types.h>
  6458. #endif
  6459. #ifdef HAVE_SYS_SOCKET_H
  6460. # include <sys/socket.h>
  6461. #endif
  6462. #ifdef _WIN32
  6463. # include <ws2tcpip.h>
  6464. #endif
  6465. "
  6466. if test "x$ac_cv_type_socklen_t" = xyes
  6467. then :
  6468. printf "%s\n" "#define HAVE_SOCKLEN_T 1" >>confdefs.h
  6469. else case e in #(
  6470. e) # Linux accept(2) says this should be size_t for SunOS 5... gah.
  6471. printf "%s\n" "#define socklen_t int" >>confdefs.h
  6472. ;;
  6473. esac
  6474. fi
  6475. ac_fn_c_check_member "$LINENO" "struct tm" "tm_gmtoff" "ac_cv_member_struct_tm_tm_gmtoff" "#include <time.h>
  6476. "
  6477. if test "x$ac_cv_member_struct_tm_tm_gmtoff" = xyes
  6478. then :
  6479. printf "%s\n" "#define HAVE_STRUCT_TM_TM_GMTOFF 1" >>confdefs.h
  6480. fi
  6481. ac_fn_c_check_member "$LINENO" "struct tm" "__tm_gmtoff" "ac_cv_member_struct_tm___tm_gmtoff" "#include <time.h>
  6482. "
  6483. if test "x$ac_cv_member_struct_tm___tm_gmtoff" = xyes
  6484. then :
  6485. printf "%s\n" "#define HAVE_STRUCT_TM___TM_GMTOFF 1" >>confdefs.h
  6486. fi
  6487. if test ${ac_cv_member_struct_tm_tm_gmtoff}${ac_cv_member_struct_tm___tm_gmtoff}${ne_cv_cc_timezone} = nonono; then
  6488. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: no timezone handling in date parsing on this platform" >&5
  6489. printf "%s\n" "$as_me: WARNING: no timezone handling in date parsing on this platform" >&2;}
  6490. fi
  6491. # Check whether --with-zlib was given.
  6492. if test ${with_zlib+y}
  6493. then :
  6494. withval=$with_zlib; ne_use_zlib=$withval
  6495. else case e in #(
  6496. e) ne_use_zlib=yes ;;
  6497. esac
  6498. fi
  6499. if test "$ne_use_zlib" = "yes"; then
  6500. ac_fn_c_check_header_compile "$LINENO" "zlib.h" "ac_cv_header_zlib_h" "$ac_includes_default"
  6501. if test "x$ac_cv_header_zlib_h" = xyes
  6502. then :
  6503. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for inflate in -lz" >&5
  6504. printf %s "checking for inflate in -lz... " >&6; }
  6505. if test ${ac_cv_lib_z_inflate+y}
  6506. then :
  6507. printf %s "(cached) " >&6
  6508. else case e in #(
  6509. e) ac_check_lib_save_LIBS=$LIBS
  6510. LIBS="-lz $LIBS"
  6511. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6512. /* end confdefs.h. */
  6513. /* Override any GCC internal prototype to avoid an error.
  6514. Use char because int might match the return type of a GCC
  6515. builtin and then its argument prototype would still apply.
  6516. The 'extern "C"' is for builds by C++ compilers;
  6517. although this is not generally supported in C code supporting it here
  6518. has little cost and some practical benefit (sr 110532). */
  6519. #ifdef __cplusplus
  6520. extern "C"
  6521. #endif
  6522. char inflate (void);
  6523. int
  6524. main (void)
  6525. {
  6526. return inflate ();
  6527. ;
  6528. return 0;
  6529. }
  6530. _ACEOF
  6531. if ac_fn_c_try_link "$LINENO"
  6532. then :
  6533. ac_cv_lib_z_inflate=yes
  6534. else case e in #(
  6535. e) ac_cv_lib_z_inflate=no ;;
  6536. esac
  6537. fi
  6538. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  6539. conftest$ac_exeext conftest.$ac_ext
  6540. LIBS=$ac_check_lib_save_LIBS ;;
  6541. esac
  6542. fi
  6543. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_inflate" >&5
  6544. printf "%s\n" "$ac_cv_lib_z_inflate" >&6; }
  6545. if test "x$ac_cv_lib_z_inflate" = xyes
  6546. then :
  6547. NEON_LIBS="$NEON_LIBS -lz"
  6548. NE_FLAG_ZLIB=yes
  6549. printf "%s\n" "#define NE_HAVE_ZLIB 1" >>confdefs.h
  6550. ne_ZLIB_message="zlib support enabled, using -lz"
  6551. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: zlib support enabled, using -lz" >&5
  6552. printf "%s\n" "$as_me: zlib support enabled, using -lz" >&6;}
  6553. else case e in #(
  6554. e)
  6555. NE_FLAG_ZLIB=no
  6556. ne_ZLIB_message="zlib library not found"
  6557. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: zlib library not found" >&5
  6558. printf "%s\n" "$as_me: zlib library not found" >&6;}
  6559. ;;
  6560. esac
  6561. fi
  6562. else case e in #(
  6563. e)
  6564. NE_FLAG_ZLIB=no
  6565. ne_ZLIB_message="zlib header not found"
  6566. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: zlib header not found" >&5
  6567. printf "%s\n" "$as_me: zlib header not found" >&6;}
  6568. ;;
  6569. esac
  6570. fi
  6571. else
  6572. NE_FLAG_ZLIB=no
  6573. ne_ZLIB_message="zlib not enabled"
  6574. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: zlib not enabled" >&5
  6575. printf "%s\n" "$as_me: zlib not enabled" >&6;}
  6576. fi
  6577. # Conditionally enable ACL support
  6578. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to enable ACL support in neon" >&5
  6579. printf %s "checking whether to enable ACL support in neon... " >&6; }
  6580. if test "x$neon_no_acl" = "xyes"; then
  6581. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6582. printf "%s\n" "no" >&6; }
  6583. else
  6584. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  6585. printf "%s\n" "yes" >&6; }
  6586. NEON_EXTRAOBJS="$NEON_EXTRAOBJS ne_oldacl ne_acl3744"
  6587. fi
  6588. # Check whether --with-ssl was given.
  6589. if test ${with_ssl+y}
  6590. then :
  6591. withval=$with_ssl;
  6592. fi
  6593. # Check whether --with-egd was given.
  6594. if test ${with_egd+y}
  6595. then :
  6596. withval=$with_egd;
  6597. fi
  6598. # Check whether --with-pakchois was given.
  6599. if test ${with_pakchois+y}
  6600. then :
  6601. withval=$with_pakchois;
  6602. fi
  6603. case $with_ssl in
  6604. /*)
  6605. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: to use SSL libraries in non-standard locations, try --with-ssl --with-libs=$with_ssl" >&5
  6606. printf "%s\n" "$as_me: to use SSL libraries in non-standard locations, try --with-ssl --with-libs=$with_ssl" >&6;}
  6607. as_fn_error $? "--with-ssl does not take a path argument" "$LINENO" 5
  6608. ;;
  6609. yes|openssl)
  6610. if test -n "$ac_tool_prefix"; then
  6611. # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
  6612. set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
  6613. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6614. printf %s "checking for $ac_word... " >&6; }
  6615. if test ${ac_cv_path_PKG_CONFIG+y}
  6616. then :
  6617. printf %s "(cached) " >&6
  6618. else case e in #(
  6619. e) case $PKG_CONFIG in
  6620. [\\/]* | ?:[\\/]*)
  6621. ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
  6622. ;;
  6623. *)
  6624. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6625. for as_dir in $PATH
  6626. do
  6627. IFS=$as_save_IFS
  6628. case $as_dir in #(((
  6629. '') as_dir=./ ;;
  6630. */) ;;
  6631. *) as_dir=$as_dir/ ;;
  6632. esac
  6633. for ac_exec_ext in '' $ac_executable_extensions; do
  6634. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  6635. ac_cv_path_PKG_CONFIG="$as_dir$ac_word$ac_exec_ext"
  6636. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  6637. break 2
  6638. fi
  6639. done
  6640. done
  6641. IFS=$as_save_IFS
  6642. ;;
  6643. esac ;;
  6644. esac
  6645. fi
  6646. PKG_CONFIG=$ac_cv_path_PKG_CONFIG
  6647. if test -n "$PKG_CONFIG"; then
  6648. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
  6649. printf "%s\n" "$PKG_CONFIG" >&6; }
  6650. else
  6651. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6652. printf "%s\n" "no" >&6; }
  6653. fi
  6654. fi
  6655. if test -z "$ac_cv_path_PKG_CONFIG"; then
  6656. ac_pt_PKG_CONFIG=$PKG_CONFIG
  6657. # Extract the first word of "pkg-config", so it can be a program name with args.
  6658. set dummy pkg-config; ac_word=$2
  6659. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6660. printf %s "checking for $ac_word... " >&6; }
  6661. if test ${ac_cv_path_ac_pt_PKG_CONFIG+y}
  6662. then :
  6663. printf %s "(cached) " >&6
  6664. else case e in #(
  6665. e) case $ac_pt_PKG_CONFIG in
  6666. [\\/]* | ?:[\\/]*)
  6667. ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
  6668. ;;
  6669. *)
  6670. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6671. for as_dir in $PATH
  6672. do
  6673. IFS=$as_save_IFS
  6674. case $as_dir in #(((
  6675. '') as_dir=./ ;;
  6676. */) ;;
  6677. *) as_dir=$as_dir/ ;;
  6678. esac
  6679. for ac_exec_ext in '' $ac_executable_extensions; do
  6680. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  6681. ac_cv_path_ac_pt_PKG_CONFIG="$as_dir$ac_word$ac_exec_ext"
  6682. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  6683. break 2
  6684. fi
  6685. done
  6686. done
  6687. IFS=$as_save_IFS
  6688. ;;
  6689. esac ;;
  6690. esac
  6691. fi
  6692. ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
  6693. if test -n "$ac_pt_PKG_CONFIG"; then
  6694. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
  6695. printf "%s\n" "$ac_pt_PKG_CONFIG" >&6; }
  6696. else
  6697. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6698. printf "%s\n" "no" >&6; }
  6699. fi
  6700. if test "x$ac_pt_PKG_CONFIG" = x; then
  6701. PKG_CONFIG="no"
  6702. else
  6703. case $cross_compiling:$ac_tool_warned in
  6704. yes:)
  6705. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  6706. printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  6707. ac_tool_warned=yes ;;
  6708. esac
  6709. PKG_CONFIG=$ac_pt_PKG_CONFIG
  6710. fi
  6711. else
  6712. PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
  6713. fi
  6714. if test "x$PKG_CONFIG" = "xno"; then
  6715. : Not using pkg-config
  6716. # Either OpenSSL library may require -ldl if built with dynamic engine support
  6717. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for library containing RSA_new" >&5
  6718. printf %s "checking for library containing RSA_new... " >&6; }
  6719. if test ${ne_cv_libsfor_RSA_new+y}
  6720. then :
  6721. printf %s "(cached) " >&6
  6722. else case e in #(
  6723. e)
  6724. case $ne_cv_os_uname in
  6725. MINGW*|MSYS_NT*)
  6726. ;;
  6727. *)
  6728. case RSA_new in
  6729. getaddrinfo)
  6730. ne__prologue="#include <netdb.h>"
  6731. ne__code="getaddrinfo(0,0,0,0);"
  6732. ;;
  6733. socket)
  6734. ne__prologue="#include <sys/socket.h>"
  6735. ne__code="socket(0,0,0);"
  6736. ;;
  6737. bindtextdomain)
  6738. ne__prologue="#include <libintl.h>"
  6739. ne__code="bindtextdomain(\"\",\"\");"
  6740. ;;
  6741. *)
  6742. ne__prologue=""
  6743. ne__code="RSA_new();"
  6744. ;;
  6745. esac
  6746. ;;
  6747. esac
  6748. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6749. /* end confdefs.h. */
  6750. $ne__prologue
  6751. int
  6752. main (void)
  6753. {
  6754. $ne__code
  6755. ;
  6756. return 0;
  6757. }
  6758. _ACEOF
  6759. if ac_fn_c_try_link "$LINENO"
  6760. then :
  6761. ne_cv_libsfor_RSA_new="none needed"
  6762. else case e in #(
  6763. e)
  6764. ne_sl_save_LIBS=$LIBS
  6765. ne_cv_libsfor_RSA_new="not found"
  6766. for lib in crypto; do
  6767. case $ne_cv_os_uname in
  6768. MINGW*|MSYS_NT*)
  6769. case $lib in
  6770. ws2_32)
  6771. ne__prologue="#include <winsock2.h>"
  6772. case RSA_new in
  6773. gethostbyname)
  6774. ne__code="gethostbyname(\"\")"
  6775. ;;
  6776. socket)
  6777. ne__code="socket(0,0,0);"
  6778. ;;
  6779. *)
  6780. ne__code="RSA_new();"
  6781. ;;
  6782. esac
  6783. ;;
  6784. *)
  6785. ne__prologue=""
  6786. ne__code=""
  6787. ;;
  6788. esac
  6789. ;;
  6790. *)
  6791. ;;
  6792. esac
  6793. LIBS="$ne_sl_save_LIBS -l$lib $NEON_LIBS"
  6794. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6795. /* end confdefs.h. */
  6796. $ne__prologue
  6797. int
  6798. main (void)
  6799. {
  6800. $ne__code
  6801. ;
  6802. return 0;
  6803. }
  6804. _ACEOF
  6805. if ac_fn_c_try_link "$LINENO"
  6806. then :
  6807. ne_cv_libsfor_RSA_new="-l$lib"; break
  6808. fi
  6809. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  6810. conftest$ac_exeext conftest.$ac_ext
  6811. LIBS="$ne_sl_save_LIBS -l$lib -ldl $NEON_LIBS"
  6812. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6813. /* end confdefs.h. */
  6814. $ne__prologue
  6815. int
  6816. main (void)
  6817. {
  6818. $ne__code
  6819. ;
  6820. return 0;
  6821. }
  6822. _ACEOF
  6823. if ac_fn_c_try_link "$LINENO"
  6824. then :
  6825. ne_cv_libsfor_RSA_new="-l$lib -ldl"; break
  6826. fi
  6827. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  6828. conftest$ac_exeext conftest.$ac_ext
  6829. done
  6830. LIBS=$ne_sl_save_LIBS
  6831. ;;
  6832. esac
  6833. fi
  6834. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  6835. conftest$ac_exeext conftest.$ac_ext
  6836. ;;
  6837. esac
  6838. fi
  6839. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ne_cv_libsfor_RSA_new" >&5
  6840. printf "%s\n" "$ne_cv_libsfor_RSA_new" >&6; }
  6841. ac_fn_c_check_header_compile "$LINENO" "wspiapi.h" "ac_cv_header_wspiapi_h" "$ac_includes_default"
  6842. if test "x$ac_cv_header_wspiapi_h" = xyes
  6843. then :
  6844. printf "%s\n" "#define HAVE_WSPIAPI_H 1" >>confdefs.h
  6845. fi
  6846. if test "$ne_cv_libsfor_RSA_new" = "not found"; then
  6847. as_fn_error $? "could not find library containing RSA_new" "$LINENO" 5
  6848. elif test "$ne_cv_libsfor_RSA_new" = "none needed"; then
  6849. :
  6850. else
  6851. NEON_LIBS="$ne_cv_libsfor_RSA_new $NEON_LIBS"
  6852. fi
  6853. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for library containing SSL_library_init" >&5
  6854. printf %s "checking for library containing SSL_library_init... " >&6; }
  6855. if test ${ne_cv_libsfor_SSL_library_init+y}
  6856. then :
  6857. printf %s "(cached) " >&6
  6858. else case e in #(
  6859. e)
  6860. case $ne_cv_os_uname in
  6861. MINGW*|MSYS_NT*)
  6862. ;;
  6863. *)
  6864. case SSL_library_init in
  6865. getaddrinfo)
  6866. ne__prologue="#include <netdb.h>"
  6867. ne__code="getaddrinfo(0,0,0,0);"
  6868. ;;
  6869. socket)
  6870. ne__prologue="#include <sys/socket.h>"
  6871. ne__code="socket(0,0,0);"
  6872. ;;
  6873. bindtextdomain)
  6874. ne__prologue="#include <libintl.h>"
  6875. ne__code="bindtextdomain(\"\",\"\");"
  6876. ;;
  6877. *)
  6878. ne__prologue=""
  6879. ne__code="SSL_library_init();"
  6880. ;;
  6881. esac
  6882. ;;
  6883. esac
  6884. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6885. /* end confdefs.h. */
  6886. $ne__prologue
  6887. int
  6888. main (void)
  6889. {
  6890. $ne__code
  6891. ;
  6892. return 0;
  6893. }
  6894. _ACEOF
  6895. if ac_fn_c_try_link "$LINENO"
  6896. then :
  6897. ne_cv_libsfor_SSL_library_init="none needed"
  6898. else case e in #(
  6899. e)
  6900. ne_sl_save_LIBS=$LIBS
  6901. ne_cv_libsfor_SSL_library_init="not found"
  6902. for lib in ssl; do
  6903. case $ne_cv_os_uname in
  6904. MINGW*|MSYS_NT*)
  6905. case $lib in
  6906. ws2_32)
  6907. ne__prologue="#include <winsock2.h>"
  6908. case SSL_library_init in
  6909. gethostbyname)
  6910. ne__code="gethostbyname(\"\")"
  6911. ;;
  6912. socket)
  6913. ne__code="socket(0,0,0);"
  6914. ;;
  6915. *)
  6916. ne__code="SSL_library_init();"
  6917. ;;
  6918. esac
  6919. ;;
  6920. *)
  6921. ne__prologue=""
  6922. ne__code=""
  6923. ;;
  6924. esac
  6925. ;;
  6926. *)
  6927. ;;
  6928. esac
  6929. LIBS="$ne_sl_save_LIBS -l$lib $NEON_LIBS"
  6930. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6931. /* end confdefs.h. */
  6932. $ne__prologue
  6933. int
  6934. main (void)
  6935. {
  6936. $ne__code
  6937. ;
  6938. return 0;
  6939. }
  6940. _ACEOF
  6941. if ac_fn_c_try_link "$LINENO"
  6942. then :
  6943. ne_cv_libsfor_SSL_library_init="-l$lib"; break
  6944. fi
  6945. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  6946. conftest$ac_exeext conftest.$ac_ext
  6947. LIBS="$ne_sl_save_LIBS -l$lib -ldl $NEON_LIBS"
  6948. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6949. /* end confdefs.h. */
  6950. $ne__prologue
  6951. int
  6952. main (void)
  6953. {
  6954. $ne__code
  6955. ;
  6956. return 0;
  6957. }
  6958. _ACEOF
  6959. if ac_fn_c_try_link "$LINENO"
  6960. then :
  6961. ne_cv_libsfor_SSL_library_init="-l$lib -ldl"; break
  6962. fi
  6963. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  6964. conftest$ac_exeext conftest.$ac_ext
  6965. done
  6966. LIBS=$ne_sl_save_LIBS
  6967. ;;
  6968. esac
  6969. fi
  6970. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  6971. conftest$ac_exeext conftest.$ac_ext
  6972. ;;
  6973. esac
  6974. fi
  6975. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ne_cv_libsfor_SSL_library_init" >&5
  6976. printf "%s\n" "$ne_cv_libsfor_SSL_library_init" >&6; }
  6977. ac_fn_c_check_header_compile "$LINENO" "wspiapi.h" "ac_cv_header_wspiapi_h" "$ac_includes_default"
  6978. if test "x$ac_cv_header_wspiapi_h" = xyes
  6979. then :
  6980. printf "%s\n" "#define HAVE_WSPIAPI_H 1" >>confdefs.h
  6981. fi
  6982. if test "$ne_cv_libsfor_SSL_library_init" = "not found"; then
  6983. as_fn_error $? "could not find library containing SSL_library_init" "$LINENO" 5
  6984. elif test "$ne_cv_libsfor_SSL_library_init" = "none needed"; then
  6985. :
  6986. else
  6987. NEON_LIBS="$ne_cv_libsfor_SSL_library_init $NEON_LIBS"
  6988. fi
  6989. NE_SSL_VERSION="(0.9.7 or later)"
  6990. else
  6991. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for openssl pkg-config data" >&5
  6992. printf %s "checking for openssl pkg-config data... " >&6; }
  6993. if test ${ne_cv_pkg_openssl+y}
  6994. then :
  6995. printf %s "(cached) " >&6
  6996. else case e in #(
  6997. e) if $PKG_CONFIG openssl; then
  6998. ne_cv_pkg_openssl=yes
  6999. else
  7000. ne_cv_pkg_openssl=no
  7001. fi ;;
  7002. esac
  7003. fi
  7004. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ne_cv_pkg_openssl" >&5
  7005. printf "%s\n" "$ne_cv_pkg_openssl" >&6; }
  7006. if test "$ne_cv_pkg_openssl" = "yes"; then
  7007. NE_SSL_CFLAGS=`$PKG_CONFIG --cflags openssl`
  7008. NE_SSL_LIBS=`$PKG_CONFIG --libs openssl`
  7009. NE_SSL_VERSION=`$PKG_CONFIG --modversion openssl`
  7010. : Using provided pkg-config data
  7011. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: using OpenSSL $NE_SSL_VERSION library configuration from pkg-config" >&5
  7012. printf "%s\n" "$as_me: using OpenSSL $NE_SSL_VERSION library configuration from pkg-config" >&6;}
  7013. CPPFLAGS="$CPPFLAGS ${NE_SSL_CFLAGS}"
  7014. NEON_LIBS="$NEON_LIBS ${NE_SSL_LIBS}"
  7015. else
  7016. : No pkg-config for openssl provided
  7017. # Either OpenSSL library may require -ldl if built with dynamic engine support
  7018. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for library containing RSA_new" >&5
  7019. printf %s "checking for library containing RSA_new... " >&6; }
  7020. if test ${ne_cv_libsfor_RSA_new+y}
  7021. then :
  7022. printf %s "(cached) " >&6
  7023. else case e in #(
  7024. e)
  7025. case $ne_cv_os_uname in
  7026. MINGW*|MSYS_NT*)
  7027. ;;
  7028. *)
  7029. case RSA_new in
  7030. getaddrinfo)
  7031. ne__prologue="#include <netdb.h>"
  7032. ne__code="getaddrinfo(0,0,0,0);"
  7033. ;;
  7034. socket)
  7035. ne__prologue="#include <sys/socket.h>"
  7036. ne__code="socket(0,0,0);"
  7037. ;;
  7038. bindtextdomain)
  7039. ne__prologue="#include <libintl.h>"
  7040. ne__code="bindtextdomain(\"\",\"\");"
  7041. ;;
  7042. *)
  7043. ne__prologue=""
  7044. ne__code="RSA_new();"
  7045. ;;
  7046. esac
  7047. ;;
  7048. esac
  7049. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7050. /* end confdefs.h. */
  7051. $ne__prologue
  7052. int
  7053. main (void)
  7054. {
  7055. $ne__code
  7056. ;
  7057. return 0;
  7058. }
  7059. _ACEOF
  7060. if ac_fn_c_try_link "$LINENO"
  7061. then :
  7062. ne_cv_libsfor_RSA_new="none needed"
  7063. else case e in #(
  7064. e)
  7065. ne_sl_save_LIBS=$LIBS
  7066. ne_cv_libsfor_RSA_new="not found"
  7067. for lib in crypto; do
  7068. case $ne_cv_os_uname in
  7069. MINGW*|MSYS_NT*)
  7070. case $lib in
  7071. ws2_32)
  7072. ne__prologue="#include <winsock2.h>"
  7073. case RSA_new in
  7074. gethostbyname)
  7075. ne__code="gethostbyname(\"\")"
  7076. ;;
  7077. socket)
  7078. ne__code="socket(0,0,0);"
  7079. ;;
  7080. *)
  7081. ne__code="RSA_new();"
  7082. ;;
  7083. esac
  7084. ;;
  7085. *)
  7086. ne__prologue=""
  7087. ne__code=""
  7088. ;;
  7089. esac
  7090. ;;
  7091. *)
  7092. ;;
  7093. esac
  7094. LIBS="$ne_sl_save_LIBS -l$lib $NEON_LIBS"
  7095. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7096. /* end confdefs.h. */
  7097. $ne__prologue
  7098. int
  7099. main (void)
  7100. {
  7101. $ne__code
  7102. ;
  7103. return 0;
  7104. }
  7105. _ACEOF
  7106. if ac_fn_c_try_link "$LINENO"
  7107. then :
  7108. ne_cv_libsfor_RSA_new="-l$lib"; break
  7109. fi
  7110. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  7111. conftest$ac_exeext conftest.$ac_ext
  7112. LIBS="$ne_sl_save_LIBS -l$lib -ldl $NEON_LIBS"
  7113. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7114. /* end confdefs.h. */
  7115. $ne__prologue
  7116. int
  7117. main (void)
  7118. {
  7119. $ne__code
  7120. ;
  7121. return 0;
  7122. }
  7123. _ACEOF
  7124. if ac_fn_c_try_link "$LINENO"
  7125. then :
  7126. ne_cv_libsfor_RSA_new="-l$lib -ldl"; break
  7127. fi
  7128. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  7129. conftest$ac_exeext conftest.$ac_ext
  7130. done
  7131. LIBS=$ne_sl_save_LIBS
  7132. ;;
  7133. esac
  7134. fi
  7135. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  7136. conftest$ac_exeext conftest.$ac_ext
  7137. ;;
  7138. esac
  7139. fi
  7140. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ne_cv_libsfor_RSA_new" >&5
  7141. printf "%s\n" "$ne_cv_libsfor_RSA_new" >&6; }
  7142. ac_fn_c_check_header_compile "$LINENO" "wspiapi.h" "ac_cv_header_wspiapi_h" "$ac_includes_default"
  7143. if test "x$ac_cv_header_wspiapi_h" = xyes
  7144. then :
  7145. printf "%s\n" "#define HAVE_WSPIAPI_H 1" >>confdefs.h
  7146. fi
  7147. if test "$ne_cv_libsfor_RSA_new" = "not found"; then
  7148. as_fn_error $? "could not find library containing RSA_new" "$LINENO" 5
  7149. elif test "$ne_cv_libsfor_RSA_new" = "none needed"; then
  7150. :
  7151. else
  7152. NEON_LIBS="$ne_cv_libsfor_RSA_new $NEON_LIBS"
  7153. fi
  7154. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for library containing SSL_library_init" >&5
  7155. printf %s "checking for library containing SSL_library_init... " >&6; }
  7156. if test ${ne_cv_libsfor_SSL_library_init+y}
  7157. then :
  7158. printf %s "(cached) " >&6
  7159. else case e in #(
  7160. e)
  7161. case $ne_cv_os_uname in
  7162. MINGW*|MSYS_NT*)
  7163. ;;
  7164. *)
  7165. case SSL_library_init in
  7166. getaddrinfo)
  7167. ne__prologue="#include <netdb.h>"
  7168. ne__code="getaddrinfo(0,0,0,0);"
  7169. ;;
  7170. socket)
  7171. ne__prologue="#include <sys/socket.h>"
  7172. ne__code="socket(0,0,0);"
  7173. ;;
  7174. bindtextdomain)
  7175. ne__prologue="#include <libintl.h>"
  7176. ne__code="bindtextdomain(\"\",\"\");"
  7177. ;;
  7178. *)
  7179. ne__prologue=""
  7180. ne__code="SSL_library_init();"
  7181. ;;
  7182. esac
  7183. ;;
  7184. esac
  7185. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7186. /* end confdefs.h. */
  7187. $ne__prologue
  7188. int
  7189. main (void)
  7190. {
  7191. $ne__code
  7192. ;
  7193. return 0;
  7194. }
  7195. _ACEOF
  7196. if ac_fn_c_try_link "$LINENO"
  7197. then :
  7198. ne_cv_libsfor_SSL_library_init="none needed"
  7199. else case e in #(
  7200. e)
  7201. ne_sl_save_LIBS=$LIBS
  7202. ne_cv_libsfor_SSL_library_init="not found"
  7203. for lib in ssl; do
  7204. case $ne_cv_os_uname in
  7205. MINGW*|MSYS_NT*)
  7206. case $lib in
  7207. ws2_32)
  7208. ne__prologue="#include <winsock2.h>"
  7209. case SSL_library_init in
  7210. gethostbyname)
  7211. ne__code="gethostbyname(\"\")"
  7212. ;;
  7213. socket)
  7214. ne__code="socket(0,0,0);"
  7215. ;;
  7216. *)
  7217. ne__code="SSL_library_init();"
  7218. ;;
  7219. esac
  7220. ;;
  7221. *)
  7222. ne__prologue=""
  7223. ne__code=""
  7224. ;;
  7225. esac
  7226. ;;
  7227. *)
  7228. ;;
  7229. esac
  7230. LIBS="$ne_sl_save_LIBS -l$lib $NEON_LIBS"
  7231. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7232. /* end confdefs.h. */
  7233. $ne__prologue
  7234. int
  7235. main (void)
  7236. {
  7237. $ne__code
  7238. ;
  7239. return 0;
  7240. }
  7241. _ACEOF
  7242. if ac_fn_c_try_link "$LINENO"
  7243. then :
  7244. ne_cv_libsfor_SSL_library_init="-l$lib"; break
  7245. fi
  7246. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  7247. conftest$ac_exeext conftest.$ac_ext
  7248. LIBS="$ne_sl_save_LIBS -l$lib -ldl $NEON_LIBS"
  7249. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7250. /* end confdefs.h. */
  7251. $ne__prologue
  7252. int
  7253. main (void)
  7254. {
  7255. $ne__code
  7256. ;
  7257. return 0;
  7258. }
  7259. _ACEOF
  7260. if ac_fn_c_try_link "$LINENO"
  7261. then :
  7262. ne_cv_libsfor_SSL_library_init="-l$lib -ldl"; break
  7263. fi
  7264. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  7265. conftest$ac_exeext conftest.$ac_ext
  7266. done
  7267. LIBS=$ne_sl_save_LIBS
  7268. ;;
  7269. esac
  7270. fi
  7271. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  7272. conftest$ac_exeext conftest.$ac_ext
  7273. ;;
  7274. esac
  7275. fi
  7276. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ne_cv_libsfor_SSL_library_init" >&5
  7277. printf "%s\n" "$ne_cv_libsfor_SSL_library_init" >&6; }
  7278. ac_fn_c_check_header_compile "$LINENO" "wspiapi.h" "ac_cv_header_wspiapi_h" "$ac_includes_default"
  7279. if test "x$ac_cv_header_wspiapi_h" = xyes
  7280. then :
  7281. printf "%s\n" "#define HAVE_WSPIAPI_H 1" >>confdefs.h
  7282. fi
  7283. if test "$ne_cv_libsfor_SSL_library_init" = "not found"; then
  7284. as_fn_error $? "could not find library containing SSL_library_init" "$LINENO" 5
  7285. elif test "$ne_cv_libsfor_SSL_library_init" = "none needed"; then
  7286. :
  7287. else
  7288. NEON_LIBS="$ne_cv_libsfor_SSL_library_init $NEON_LIBS"
  7289. fi
  7290. NE_SSL_VERSION="(0.9.7 or later)"
  7291. fi
  7292. fi
  7293. for ac_header in openssl/ssl.h openssl/opensslv.h
  7294. do :
  7295. as_ac_Header=`printf "%s\n" "ac_cv_header_$ac_header" | sed "$as_sed_sh"`
  7296. ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
  7297. if eval test \"x\$"$as_ac_Header"\" = x"yes"
  7298. then :
  7299. cat >>confdefs.h <<_ACEOF
  7300. #define `printf "%s\n" "HAVE_$ac_header" | sed "$as_sed_cpp"` 1
  7301. _ACEOF
  7302. else case e in #(
  7303. e) as_fn_error $? "OpenSSL headers not found, cannot enable SSL support" "$LINENO" 5 ;;
  7304. esac
  7305. fi
  7306. done
  7307. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking OpenSSL version is >= 0.9.7" >&5
  7308. printf %s "checking OpenSSL version is >= 0.9.7... " >&6; }
  7309. if test ${ne_cv_lib_ssl097+y}
  7310. then :
  7311. printf %s "(cached) " >&6
  7312. else case e in #(
  7313. e)
  7314. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7315. /* end confdefs.h. */
  7316. #include <openssl/opensslv.h>
  7317. #if OPENSSL_VERSION_NUMBER >= 0x00907000L
  7318. good
  7319. #endif
  7320. _ACEOF
  7321. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  7322. $EGREP_TRADITIONAL "good" >/dev/null 2>&1
  7323. then :
  7324. ne_cv_lib_ssl097=yes
  7325. else case e in #(
  7326. e) ne_cv_lib_ssl097=no ;;
  7327. esac
  7328. fi
  7329. rm -rf conftest*
  7330. ;;
  7331. esac
  7332. fi
  7333. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ne_cv_lib_ssl097" >&5
  7334. printf "%s\n" "$ne_cv_lib_ssl097" >&6; }
  7335. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking OpenSSL version is >= 1.1.0" >&5
  7336. printf %s "checking OpenSSL version is >= 1.1.0... " >&6; }
  7337. if test ${ne_cv_lib_ssl110+y}
  7338. then :
  7339. printf %s "(cached) " >&6
  7340. else case e in #(
  7341. e)
  7342. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7343. /* end confdefs.h. */
  7344. #include <openssl/opensslv.h>
  7345. #if OPENSSL_VERSION_NUMBER >= 0x10100000L
  7346. good
  7347. #endif
  7348. _ACEOF
  7349. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  7350. $EGREP_TRADITIONAL "good" >/dev/null 2>&1
  7351. then :
  7352. ne_cv_lib_ssl110=yes
  7353. else case e in #(
  7354. e) ne_cv_lib_ssl110=no ;;
  7355. esac
  7356. fi
  7357. rm -rf conftest*
  7358. ;;
  7359. esac
  7360. fi
  7361. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ne_cv_lib_ssl110" >&5
  7362. printf "%s\n" "$ne_cv_lib_ssl110" >&6; }
  7363. if test "$ne_cv_lib_ssl110" = "yes"; then
  7364. NE_FLAG_SSL=yes
  7365. printf "%s\n" "#define NE_HAVE_SSL 1" >>confdefs.h
  7366. ne_SSL_message="SSL support enabled, using OpenSSL $NE_SSL_VERSION"
  7367. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: SSL support enabled, using OpenSSL $NE_SSL_VERSION" >&5
  7368. printf "%s\n" "$as_me: SSL support enabled, using OpenSSL $NE_SSL_VERSION" >&6;}
  7369. printf "%s\n" "#define HAVE_OPENSSL11 1" >>confdefs.h
  7370. elif test "$ne_cv_lib_ssl097" = "yes"; then
  7371. # Enable EGD support if using 0.9.7 or newer
  7372. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: OpenSSL >= 0.9.7; EGD support not needed in neon" >&5
  7373. printf "%s\n" "$as_me: OpenSSL >= 0.9.7; EGD support not needed in neon" >&6;}
  7374. NE_FLAG_SSL=yes
  7375. printf "%s\n" "#define NE_HAVE_SSL 1" >>confdefs.h
  7376. ne_SSL_message="SSL support enabled, using OpenSSL $NE_SSL_VERSION"
  7377. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: SSL support enabled, using OpenSSL $NE_SSL_VERSION" >&5
  7378. printf "%s\n" "$as_me: SSL support enabled, using OpenSSL $NE_SSL_VERSION" >&6;}
  7379. ne_cf_save_LIBS=$LIBS
  7380. LIBS="$LIBS $NEON_LIBS"
  7381. ac_fn_c_check_func "$LINENO" "CRYPTO_set_idptr_callback" "ac_cv_func_CRYPTO_set_idptr_callback"
  7382. if test "x$ac_cv_func_CRYPTO_set_idptr_callback" = xyes
  7383. then :
  7384. printf "%s\n" "#define HAVE_CRYPTO_SET_IDPTR_CALLBACK 1" >>confdefs.h
  7385. fi
  7386. ac_fn_c_check_func "$LINENO" "SSL_SESSION_cmp" "ac_cv_func_SSL_SESSION_cmp"
  7387. if test "x$ac_cv_func_SSL_SESSION_cmp" = xyes
  7388. then :
  7389. printf "%s\n" "#define HAVE_SSL_SESSION_CMP 1" >>confdefs.h
  7390. fi
  7391. LIBS=$ne_cf_save_LIBS
  7392. else
  7393. # Fail if OpenSSL is older than 0.9.6
  7394. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking OpenSSL version is >= 0.9.6" >&5
  7395. printf %s "checking OpenSSL version is >= 0.9.6... " >&6; }
  7396. if test ${ne_cv_lib_ssl096+y}
  7397. then :
  7398. printf %s "(cached) " >&6
  7399. else case e in #(
  7400. e)
  7401. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7402. /* end confdefs.h. */
  7403. #include <openssl/opensslv.h>
  7404. #if OPENSSL_VERSION_NUMBER >= 0x00906000L
  7405. good
  7406. #endif
  7407. _ACEOF
  7408. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  7409. $EGREP_TRADITIONAL "good" >/dev/null 2>&1
  7410. then :
  7411. ne_cv_lib_ssl096=yes
  7412. else case e in #(
  7413. e) ne_cv_lib_ssl096=no ;;
  7414. esac
  7415. fi
  7416. rm -rf conftest*
  7417. ;;
  7418. esac
  7419. fi
  7420. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ne_cv_lib_ssl096" >&5
  7421. printf "%s\n" "$ne_cv_lib_ssl096" >&6; }
  7422. if test "$ne_cv_lib_ssl096" != "yes"; then
  7423. as_fn_error $? "OpenSSL 0.9.6 or later is required" "$LINENO" 5
  7424. fi
  7425. NE_FLAG_SSL=yes
  7426. printf "%s\n" "#define NE_HAVE_SSL 1" >>confdefs.h
  7427. ne_SSL_message="SSL support enabled, using OpenSSL (0.9.6 or later)"
  7428. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: SSL support enabled, using OpenSSL (0.9.6 or later)" >&5
  7429. printf "%s\n" "$as_me: SSL support enabled, using OpenSSL (0.9.6 or later)" >&6;}
  7430. case "$with_egd" in
  7431. yes|no) ne_cv_lib_sslegd=$with_egd ;;
  7432. /*) ne_cv_lib_sslegd=yes
  7433. printf "%s\n" "#define EGD_PATH \"$with_egd\"" >>confdefs.h
  7434. ;;
  7435. *) # Guess whether EGD support is needed
  7436. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to enable EGD support" >&5
  7437. printf %s "checking whether to enable EGD support... " >&6; }
  7438. if test ${ne_cv_lib_sslegd+y}
  7439. then :
  7440. printf %s "(cached) " >&6
  7441. else case e in #(
  7442. e) if test -r /dev/random || test -r /dev/urandom; then
  7443. ne_cv_lib_sslegd=no
  7444. else
  7445. ne_cv_lib_sslegd=yes
  7446. fi ;;
  7447. esac
  7448. fi
  7449. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ne_cv_lib_sslegd" >&5
  7450. printf "%s\n" "$ne_cv_lib_sslegd" >&6; }
  7451. ;;
  7452. esac
  7453. if test "$ne_cv_lib_sslegd" = "yes"; then
  7454. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: EGD support enabled for seeding OpenSSL PRNG" >&5
  7455. printf "%s\n" "$as_me: EGD support enabled for seeding OpenSSL PRNG" >&6;}
  7456. printf "%s\n" "#define ENABLE_EGD 1" >>confdefs.h
  7457. fi
  7458. fi
  7459. printf "%s\n" "#define HAVE_OPENSSL 1" >>confdefs.h
  7460. NEON_EXTRAOBJS="$NEON_EXTRAOBJS ne_openssl"
  7461. printf "%s\n" "#define HAVE_NTLM 1" >>confdefs.h
  7462. ;;
  7463. gnutls)
  7464. if test -n "$ac_tool_prefix"; then
  7465. # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
  7466. set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
  7467. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  7468. printf %s "checking for $ac_word... " >&6; }
  7469. if test ${ac_cv_path_PKG_CONFIG+y}
  7470. then :
  7471. printf %s "(cached) " >&6
  7472. else case e in #(
  7473. e) case $PKG_CONFIG in
  7474. [\\/]* | ?:[\\/]*)
  7475. ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
  7476. ;;
  7477. *)
  7478. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  7479. for as_dir in $PATH
  7480. do
  7481. IFS=$as_save_IFS
  7482. case $as_dir in #(((
  7483. '') as_dir=./ ;;
  7484. */) ;;
  7485. *) as_dir=$as_dir/ ;;
  7486. esac
  7487. for ac_exec_ext in '' $ac_executable_extensions; do
  7488. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  7489. ac_cv_path_PKG_CONFIG="$as_dir$ac_word$ac_exec_ext"
  7490. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  7491. break 2
  7492. fi
  7493. done
  7494. done
  7495. IFS=$as_save_IFS
  7496. ;;
  7497. esac ;;
  7498. esac
  7499. fi
  7500. PKG_CONFIG=$ac_cv_path_PKG_CONFIG
  7501. if test -n "$PKG_CONFIG"; then
  7502. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
  7503. printf "%s\n" "$PKG_CONFIG" >&6; }
  7504. else
  7505. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7506. printf "%s\n" "no" >&6; }
  7507. fi
  7508. fi
  7509. if test -z "$ac_cv_path_PKG_CONFIG"; then
  7510. ac_pt_PKG_CONFIG=$PKG_CONFIG
  7511. # Extract the first word of "pkg-config", so it can be a program name with args.
  7512. set dummy pkg-config; ac_word=$2
  7513. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  7514. printf %s "checking for $ac_word... " >&6; }
  7515. if test ${ac_cv_path_ac_pt_PKG_CONFIG+y}
  7516. then :
  7517. printf %s "(cached) " >&6
  7518. else case e in #(
  7519. e) case $ac_pt_PKG_CONFIG in
  7520. [\\/]* | ?:[\\/]*)
  7521. ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
  7522. ;;
  7523. *)
  7524. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  7525. for as_dir in $PATH
  7526. do
  7527. IFS=$as_save_IFS
  7528. case $as_dir in #(((
  7529. '') as_dir=./ ;;
  7530. */) ;;
  7531. *) as_dir=$as_dir/ ;;
  7532. esac
  7533. for ac_exec_ext in '' $ac_executable_extensions; do
  7534. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  7535. ac_cv_path_ac_pt_PKG_CONFIG="$as_dir$ac_word$ac_exec_ext"
  7536. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  7537. break 2
  7538. fi
  7539. done
  7540. done
  7541. IFS=$as_save_IFS
  7542. ;;
  7543. esac ;;
  7544. esac
  7545. fi
  7546. ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
  7547. if test -n "$ac_pt_PKG_CONFIG"; then
  7548. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
  7549. printf "%s\n" "$ac_pt_PKG_CONFIG" >&6; }
  7550. else
  7551. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7552. printf "%s\n" "no" >&6; }
  7553. fi
  7554. if test "x$ac_pt_PKG_CONFIG" = x; then
  7555. PKG_CONFIG="no"
  7556. else
  7557. case $cross_compiling:$ac_tool_warned in
  7558. yes:)
  7559. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  7560. printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  7561. ac_tool_warned=yes ;;
  7562. esac
  7563. PKG_CONFIG=$ac_pt_PKG_CONFIG
  7564. fi
  7565. else
  7566. PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
  7567. fi
  7568. if test "x$PKG_CONFIG" = "xno"; then
  7569. : Not using pkg-config
  7570. # Fall back on libgnutls-config script
  7571. # Extract the first word of "libgnutls-config", so it can be a program name with args.
  7572. set dummy libgnutls-config; ac_word=$2
  7573. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  7574. printf %s "checking for $ac_word... " >&6; }
  7575. if test ${ac_cv_path_GNUTLS_CONFIG+y}
  7576. then :
  7577. printf %s "(cached) " >&6
  7578. else case e in #(
  7579. e) case $GNUTLS_CONFIG in
  7580. [\\/]* | ?:[\\/]*)
  7581. ac_cv_path_GNUTLS_CONFIG="$GNUTLS_CONFIG" # Let the user override the test with a path.
  7582. ;;
  7583. *)
  7584. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  7585. for as_dir in $PATH
  7586. do
  7587. IFS=$as_save_IFS
  7588. case $as_dir in #(((
  7589. '') as_dir=./ ;;
  7590. */) ;;
  7591. *) as_dir=$as_dir/ ;;
  7592. esac
  7593. for ac_exec_ext in '' $ac_executable_extensions; do
  7594. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  7595. ac_cv_path_GNUTLS_CONFIG="$as_dir$ac_word$ac_exec_ext"
  7596. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  7597. break 2
  7598. fi
  7599. done
  7600. done
  7601. IFS=$as_save_IFS
  7602. test -z "$ac_cv_path_GNUTLS_CONFIG" && ac_cv_path_GNUTLS_CONFIG="no"
  7603. ;;
  7604. esac ;;
  7605. esac
  7606. fi
  7607. GNUTLS_CONFIG=$ac_cv_path_GNUTLS_CONFIG
  7608. if test -n "$GNUTLS_CONFIG"; then
  7609. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $GNUTLS_CONFIG" >&5
  7610. printf "%s\n" "$GNUTLS_CONFIG" >&6; }
  7611. else
  7612. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7613. printf "%s\n" "no" >&6; }
  7614. fi
  7615. if test "$GNUTLS_CONFIG" = "no"; then
  7616. as_fn_error $? "could not find libgnutls-config in \$PATH" "$LINENO" 5
  7617. fi
  7618. CPPFLAGS="$CPPFLAGS `$GNUTLS_CONFIG --cflags`"
  7619. NEON_LIBS="$NEON_LIBS `$GNUTLS_CONFIG --libs`"
  7620. NE_SSL_VERSION="`$GNUTLS_CONFIG --version`"
  7621. else
  7622. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for gnutls pkg-config data" >&5
  7623. printf %s "checking for gnutls pkg-config data... " >&6; }
  7624. if test ${ne_cv_pkg_gnutls+y}
  7625. then :
  7626. printf %s "(cached) " >&6
  7627. else case e in #(
  7628. e) if $PKG_CONFIG gnutls; then
  7629. ne_cv_pkg_gnutls=yes
  7630. else
  7631. ne_cv_pkg_gnutls=no
  7632. fi ;;
  7633. esac
  7634. fi
  7635. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ne_cv_pkg_gnutls" >&5
  7636. printf "%s\n" "$ne_cv_pkg_gnutls" >&6; }
  7637. if test "$ne_cv_pkg_gnutls" = "yes"; then
  7638. NE_SSL_CFLAGS=`$PKG_CONFIG --cflags gnutls`
  7639. NE_SSL_LIBS=`$PKG_CONFIG --libs gnutls`
  7640. NE_SSL_VERSION=`$PKG_CONFIG --modversion gnutls`
  7641. : Using provided pkg-config data
  7642. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: using GnuTLS configuration from pkg-config" >&5
  7643. printf "%s\n" "$as_me: using GnuTLS configuration from pkg-config" >&6;}
  7644. CPPFLAGS="$CPPFLAGS ${NE_SSL_CFLAGS}"
  7645. NEON_LIBS="$NEON_LIBS ${NE_SSL_LIBS}"
  7646. else
  7647. : No pkg-config for gnutls provided
  7648. # Fall back on libgnutls-config script
  7649. # Extract the first word of "libgnutls-config", so it can be a program name with args.
  7650. set dummy libgnutls-config; ac_word=$2
  7651. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  7652. printf %s "checking for $ac_word... " >&6; }
  7653. if test ${ac_cv_path_GNUTLS_CONFIG+y}
  7654. then :
  7655. printf %s "(cached) " >&6
  7656. else case e in #(
  7657. e) case $GNUTLS_CONFIG in
  7658. [\\/]* | ?:[\\/]*)
  7659. ac_cv_path_GNUTLS_CONFIG="$GNUTLS_CONFIG" # Let the user override the test with a path.
  7660. ;;
  7661. *)
  7662. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  7663. for as_dir in $PATH
  7664. do
  7665. IFS=$as_save_IFS
  7666. case $as_dir in #(((
  7667. '') as_dir=./ ;;
  7668. */) ;;
  7669. *) as_dir=$as_dir/ ;;
  7670. esac
  7671. for ac_exec_ext in '' $ac_executable_extensions; do
  7672. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  7673. ac_cv_path_GNUTLS_CONFIG="$as_dir$ac_word$ac_exec_ext"
  7674. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  7675. break 2
  7676. fi
  7677. done
  7678. done
  7679. IFS=$as_save_IFS
  7680. test -z "$ac_cv_path_GNUTLS_CONFIG" && ac_cv_path_GNUTLS_CONFIG="no"
  7681. ;;
  7682. esac ;;
  7683. esac
  7684. fi
  7685. GNUTLS_CONFIG=$ac_cv_path_GNUTLS_CONFIG
  7686. if test -n "$GNUTLS_CONFIG"; then
  7687. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $GNUTLS_CONFIG" >&5
  7688. printf "%s\n" "$GNUTLS_CONFIG" >&6; }
  7689. else
  7690. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7691. printf "%s\n" "no" >&6; }
  7692. fi
  7693. if test "$GNUTLS_CONFIG" = "no"; then
  7694. as_fn_error $? "could not find libgnutls-config in \$PATH" "$LINENO" 5
  7695. fi
  7696. CPPFLAGS="$CPPFLAGS `$GNUTLS_CONFIG --cflags`"
  7697. NEON_LIBS="$NEON_LIBS `$GNUTLS_CONFIG --libs`"
  7698. NE_SSL_VERSION="`$GNUTLS_CONFIG --version`"
  7699. fi
  7700. fi
  7701. ac_fn_c_check_header_compile "$LINENO" "gnutls/gnutls.h" "ac_cv_header_gnutls_gnutls_h" "$ac_includes_default"
  7702. if test "x$ac_cv_header_gnutls_gnutls_h" = xyes
  7703. then :
  7704. else case e in #(
  7705. e) as_fn_error $? "could not find gnutls/gnutls.h in include path" "$LINENO" 5 ;;
  7706. esac
  7707. fi
  7708. NE_FLAG_SSL=yes
  7709. printf "%s\n" "#define NE_HAVE_SSL 1" >>confdefs.h
  7710. ne_SSL_message="SSL support enabled, using GnuTLS $NE_SSL_VERSION"
  7711. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: SSL support enabled, using GnuTLS $NE_SSL_VERSION" >&5
  7712. printf "%s\n" "$as_me: SSL support enabled, using GnuTLS $NE_SSL_VERSION" >&6;}
  7713. NEON_EXTRAOBJS="$NEON_EXTRAOBJS ne_gnutls"
  7714. printf "%s\n" "#define HAVE_GNUTLS 1" >>confdefs.h
  7715. # Check for functions in later releases
  7716. ne_cf_save_LIBS=$LIBS
  7717. LIBS="$LIBS $NEON_LIBS"
  7718. ac_fn_c_check_func "$LINENO" "gnutls_session_get_data2" "ac_cv_func_gnutls_session_get_data2"
  7719. if test "x$ac_cv_func_gnutls_session_get_data2" = xyes
  7720. then :
  7721. printf "%s\n" "#define HAVE_GNUTLS_SESSION_GET_DATA2 1" >>confdefs.h
  7722. fi
  7723. ac_fn_c_check_func "$LINENO" "gnutls_x509_dn_get_rdn_ava" "ac_cv_func_gnutls_x509_dn_get_rdn_ava"
  7724. if test "x$ac_cv_func_gnutls_x509_dn_get_rdn_ava" = xyes
  7725. then :
  7726. printf "%s\n" "#define HAVE_GNUTLS_X509_DN_GET_RDN_AVA 1" >>confdefs.h
  7727. fi
  7728. ac_fn_c_check_func "$LINENO" "gnutls_certificate_get_issuer" "ac_cv_func_gnutls_certificate_get_issuer"
  7729. if test "x$ac_cv_func_gnutls_certificate_get_issuer" = xyes
  7730. then :
  7731. printf "%s\n" "#define HAVE_GNUTLS_CERTIFICATE_GET_ISSUER 1" >>confdefs.h
  7732. fi
  7733. ac_fn_c_check_func "$LINENO" "gnutls_certificate_get_x509_cas" "ac_cv_func_gnutls_certificate_get_x509_cas"
  7734. if test "x$ac_cv_func_gnutls_certificate_get_x509_cas" = xyes
  7735. then :
  7736. printf "%s\n" "#define HAVE_GNUTLS_CERTIFICATE_GET_X509_CAS 1" >>confdefs.h
  7737. fi
  7738. ac_fn_c_check_func "$LINENO" "gnutls_x509_crt_sign2" "ac_cv_func_gnutls_x509_crt_sign2"
  7739. if test "x$ac_cv_func_gnutls_x509_crt_sign2" = xyes
  7740. then :
  7741. printf "%s\n" "#define HAVE_GNUTLS_X509_CRT_SIGN2 1" >>confdefs.h
  7742. fi
  7743. ac_fn_c_check_func "$LINENO" "gnutls_x509_crt_equals" "ac_cv_func_gnutls_x509_crt_equals"
  7744. if test "x$ac_cv_func_gnutls_x509_crt_equals" = xyes
  7745. then :
  7746. printf "%s\n" "#define HAVE_GNUTLS_X509_CRT_EQUALS 1" >>confdefs.h
  7747. fi
  7748. ac_fn_c_check_func "$LINENO" "gnutls_set_default_priority_append" "ac_cv_func_gnutls_set_default_priority_append"
  7749. if test "x$ac_cv_func_gnutls_set_default_priority_append" = xyes
  7750. then :
  7751. printf "%s\n" "#define HAVE_GNUTLS_SET_DEFAULT_PRIORITY_APPEND 1" >>confdefs.h
  7752. fi
  7753. ac_fn_c_check_func "$LINENO" "gnutls_certificate_set_retrieve_function2" "ac_cv_func_gnutls_certificate_set_retrieve_function2"
  7754. if test "x$ac_cv_func_gnutls_certificate_set_retrieve_function2" = xyes
  7755. then :
  7756. printf "%s\n" "#define HAVE_GNUTLS_CERTIFICATE_SET_RETRIEVE_FUNCTION2 1" >>confdefs.h
  7757. fi
  7758. ac_fn_c_check_func "$LINENO" "gnutls_certificate_set_x509_system_trust" "ac_cv_func_gnutls_certificate_set_x509_system_trust"
  7759. if test "x$ac_cv_func_gnutls_certificate_set_x509_system_trust" = xyes
  7760. then :
  7761. printf "%s\n" "#define HAVE_GNUTLS_CERTIFICATE_SET_X509_SYSTEM_TRUST 1" >>confdefs.h
  7762. fi
  7763. ac_fn_c_check_func "$LINENO" "gnutls_privkey_import_ext" "ac_cv_func_gnutls_privkey_import_ext"
  7764. if test "x$ac_cv_func_gnutls_privkey_import_ext" = xyes
  7765. then :
  7766. printf "%s\n" "#define HAVE_GNUTLS_PRIVKEY_IMPORT_EXT 1" >>confdefs.h
  7767. fi
  7768. LIBS=$ne_cf_save_LIBS
  7769. # fail if gnutls_x509_crt_sign2 is not found (it was introduced in 1.2.0, which is required)
  7770. if test x${ac_cv_func_gnutls_x509_crt_sign2} != xyes; then
  7771. as_fn_error $? "GnuTLS version predates gnutls_x509_crt_sign2, newer version required (at least 1.2.0)" "$LINENO" 5
  7772. fi
  7773. # Check for iconv support if using the new RDN access functions:
  7774. if test ${ac_cv_func_gnutls_x509_dn_get_rdn_ava}X${ac_cv_header_iconv_h} = yesXyes; then
  7775. ac_fn_c_check_func "$LINENO" "iconv" "ac_cv_func_iconv"
  7776. if test "x$ac_cv_func_iconv" = xyes
  7777. then :
  7778. printf "%s\n" "#define HAVE_ICONV 1" >>confdefs.h
  7779. fi
  7780. fi
  7781. ;;
  7782. *) # Default to off; only create crypto-enabled binaries if requested.
  7783. NE_FLAG_SSL=no
  7784. ne_SSL_message="SSL support is not enabled"
  7785. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: SSL support is not enabled" >&5
  7786. printf "%s\n" "$as_me: SSL support is not enabled" >&6;}
  7787. NE_FLAG_TS_SSL=no
  7788. ne_TS_SSL_message="Thread-safe SSL support is not enabled"
  7789. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: Thread-safe SSL support is not enabled" >&5
  7790. printf "%s\n" "$as_me: Thread-safe SSL support is not enabled" >&6;}
  7791. NEON_EXTRAOBJS="$NEON_EXTRAOBJS ne_stubssl"
  7792. ;;
  7793. esac
  7794. # Check whether --with-ca-bundle was given.
  7795. if test ${with_ca_bundle+y}
  7796. then :
  7797. withval=$with_ca_bundle;
  7798. else case e in #(
  7799. e) with_ca_bundle=no ;;
  7800. esac
  7801. fi
  7802. case ${NE_FLAG_SSL}-${with_ca_bundle} in
  7803. *-no) ;;
  7804. yes-*)
  7805. printf "%s\n" "#define NE_SSL_CA_BUNDLE \"${with_ca_bundle}\"" >>confdefs.h
  7806. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: Using ${with_ca_bundle} as default SSL CA bundle" >&5
  7807. printf "%s\n" "$as_me: Using ${with_ca_bundle} as default SSL CA bundle" >&6;}
  7808. ;;
  7809. esac
  7810. # Check whether --enable-threadsafe-ssl was given.
  7811. if test ${enable_threadsafe_ssl+y}
  7812. then :
  7813. enableval=$enable_threadsafe_ssl;
  7814. else case e in #(
  7815. e) enable_threadsafe_ssl=no ;;
  7816. esac
  7817. fi
  7818. case ${enable_threadsafe_ssl}X${ne_cv_lib_ssl110} in
  7819. *Xyes)
  7820. NE_FLAG_TS_SSL=yes
  7821. printf "%s\n" "#define NE_HAVE_TS_SSL 1" >>confdefs.h
  7822. ne_TS_SSL_message="OpenSSL is natively thread-safe"
  7823. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: OpenSSL is natively thread-safe" >&5
  7824. printf "%s\n" "$as_me: OpenSSL is natively thread-safe" >&6;}
  7825. ;;
  7826. posixX*|yesX*)
  7827. ne_pthr_ok=yes
  7828. for ac_func in pthread_mutex_init pthread_mutex_lock
  7829. do :
  7830. as_ac_var=`printf "%s\n" "ac_cv_func_$ac_func" | sed "$as_sed_sh"`
  7831. ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
  7832. if eval test \"x\$"$as_ac_var"\" = x"yes"
  7833. then :
  7834. cat >>confdefs.h <<_ACEOF
  7835. #define `printf "%s\n" "HAVE_$ac_func" | sed "$as_sed_cpp"` 1
  7836. _ACEOF
  7837. else case e in #(
  7838. e) ne_pthr_ok=no ;;
  7839. esac
  7840. fi
  7841. done
  7842. if test "${ne_pthr_ok}" = "no"; then
  7843. as_fn_error $? "could not find POSIX mutex interfaces; (try CC=\"${CC} -pthread\"?)" "$LINENO" 5
  7844. fi
  7845. NE_FLAG_TS_SSL=yes
  7846. printf "%s\n" "#define NE_HAVE_TS_SSL 1" >>confdefs.h
  7847. ne_TS_SSL_message="Thread-safe SSL supported using POSIX threads"
  7848. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: Thread-safe SSL supported using POSIX threads" >&5
  7849. printf "%s\n" "$as_me: Thread-safe SSL supported using POSIX threads" >&6;}
  7850. ;;
  7851. *)
  7852. NE_FLAG_TS_SSL=no
  7853. ne_TS_SSL_message="Thread-safe SSL not supported"
  7854. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: Thread-safe SSL not supported" >&5
  7855. printf "%s\n" "$as_me: Thread-safe SSL not supported" >&6;}
  7856. ;;
  7857. esac
  7858. case ${with_pakchois}X${ac_cv_func_gnutls_privkey_import_ext}Y${ne_cv_lib_ssl097} in
  7859. noX*Y*) ;;
  7860. *X*Yyes|*XyesY*)
  7861. # PKCS#11... ho!
  7862. if test -n "$ac_tool_prefix"; then
  7863. # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
  7864. set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
  7865. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  7866. printf %s "checking for $ac_word... " >&6; }
  7867. if test ${ac_cv_path_PKG_CONFIG+y}
  7868. then :
  7869. printf %s "(cached) " >&6
  7870. else case e in #(
  7871. e) case $PKG_CONFIG in
  7872. [\\/]* | ?:[\\/]*)
  7873. ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
  7874. ;;
  7875. *)
  7876. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  7877. for as_dir in $PATH
  7878. do
  7879. IFS=$as_save_IFS
  7880. case $as_dir in #(((
  7881. '') as_dir=./ ;;
  7882. */) ;;
  7883. *) as_dir=$as_dir/ ;;
  7884. esac
  7885. for ac_exec_ext in '' $ac_executable_extensions; do
  7886. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  7887. ac_cv_path_PKG_CONFIG="$as_dir$ac_word$ac_exec_ext"
  7888. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  7889. break 2
  7890. fi
  7891. done
  7892. done
  7893. IFS=$as_save_IFS
  7894. ;;
  7895. esac ;;
  7896. esac
  7897. fi
  7898. PKG_CONFIG=$ac_cv_path_PKG_CONFIG
  7899. if test -n "$PKG_CONFIG"; then
  7900. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
  7901. printf "%s\n" "$PKG_CONFIG" >&6; }
  7902. else
  7903. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7904. printf "%s\n" "no" >&6; }
  7905. fi
  7906. fi
  7907. if test -z "$ac_cv_path_PKG_CONFIG"; then
  7908. ac_pt_PKG_CONFIG=$PKG_CONFIG
  7909. # Extract the first word of "pkg-config", so it can be a program name with args.
  7910. set dummy pkg-config; ac_word=$2
  7911. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  7912. printf %s "checking for $ac_word... " >&6; }
  7913. if test ${ac_cv_path_ac_pt_PKG_CONFIG+y}
  7914. then :
  7915. printf %s "(cached) " >&6
  7916. else case e in #(
  7917. e) case $ac_pt_PKG_CONFIG in
  7918. [\\/]* | ?:[\\/]*)
  7919. ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
  7920. ;;
  7921. *)
  7922. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  7923. for as_dir in $PATH
  7924. do
  7925. IFS=$as_save_IFS
  7926. case $as_dir in #(((
  7927. '') as_dir=./ ;;
  7928. */) ;;
  7929. *) as_dir=$as_dir/ ;;
  7930. esac
  7931. for ac_exec_ext in '' $ac_executable_extensions; do
  7932. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  7933. ac_cv_path_ac_pt_PKG_CONFIG="$as_dir$ac_word$ac_exec_ext"
  7934. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  7935. break 2
  7936. fi
  7937. done
  7938. done
  7939. IFS=$as_save_IFS
  7940. ;;
  7941. esac ;;
  7942. esac
  7943. fi
  7944. ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
  7945. if test -n "$ac_pt_PKG_CONFIG"; then
  7946. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
  7947. printf "%s\n" "$ac_pt_PKG_CONFIG" >&6; }
  7948. else
  7949. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7950. printf "%s\n" "no" >&6; }
  7951. fi
  7952. if test "x$ac_pt_PKG_CONFIG" = x; then
  7953. PKG_CONFIG="no"
  7954. else
  7955. case $cross_compiling:$ac_tool_warned in
  7956. yes:)
  7957. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  7958. printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  7959. ac_tool_warned=yes ;;
  7960. esac
  7961. PKG_CONFIG=$ac_pt_PKG_CONFIG
  7962. fi
  7963. else
  7964. PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
  7965. fi
  7966. if test "x$PKG_CONFIG" = "xno"; then
  7967. : Not using pkg-config
  7968. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: pakchois library not found; no PKCS#11 support" >&5
  7969. printf "%s\n" "$as_me: pakchois library not found; no PKCS#11 support" >&6;}
  7970. else
  7971. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for pakchois pkg-config data" >&5
  7972. printf %s "checking for pakchois pkg-config data... " >&6; }
  7973. if test ${ne_cv_pkg_pakchois+y}
  7974. then :
  7975. printf %s "(cached) " >&6
  7976. else case e in #(
  7977. e) if $PKG_CONFIG pakchois; then
  7978. ne_cv_pkg_pakchois=yes
  7979. else
  7980. ne_cv_pkg_pakchois=no
  7981. fi ;;
  7982. esac
  7983. fi
  7984. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ne_cv_pkg_pakchois" >&5
  7985. printf "%s\n" "$ne_cv_pkg_pakchois" >&6; }
  7986. if test "$ne_cv_pkg_pakchois" = "yes"; then
  7987. NE_PK11_CFLAGS=`$PKG_CONFIG --cflags pakchois`
  7988. NE_PK11_LIBS=`$PKG_CONFIG --libs pakchois`
  7989. NE_PK11_VERSION=`$PKG_CONFIG --modversion pakchois`
  7990. : Using provided pkg-config data
  7991. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: using pakchois $NE_PK11_VERSION for PKCS#11 support" >&5
  7992. printf "%s\n" "$as_me: using pakchois $NE_PK11_VERSION for PKCS#11 support" >&6;}
  7993. printf "%s\n" "#define HAVE_PAKCHOIS 1" >>confdefs.h
  7994. CPPFLAGS="$CPPFLAGS ${NE_PK11_CFLAGS}"
  7995. NEON_LIBS="${NEON_LIBS} ${NE_PK11_LIBS}"
  7996. else
  7997. : No pkg-config for pakchois provided
  7998. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: pakchois library not found; no PKCS#11 support" >&5
  7999. printf "%s\n" "$as_me: pakchois library not found; no PKCS#11 support" >&6;}
  8000. fi
  8001. fi
  8002. ;;
  8003. esac
  8004. # Check whether --with-gssapi was given.
  8005. if test ${with_gssapi+y}
  8006. then :
  8007. withval=$with_gssapi; need_gssapi=$withval
  8008. else case e in #(
  8009. e) need_gssapi=no ;;
  8010. esac
  8011. fi
  8012. if test "$with_gssapi" != "no"; then
  8013. ne_save_CFLAGS=$CFLAGS
  8014. ne_save_LIBS=$NEON_LIBS
  8015. if test -n "$ac_tool_prefix"; then
  8016. # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
  8017. set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
  8018. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  8019. printf %s "checking for $ac_word... " >&6; }
  8020. if test ${ac_cv_path_PKG_CONFIG+y}
  8021. then :
  8022. printf %s "(cached) " >&6
  8023. else case e in #(
  8024. e) case $PKG_CONFIG in
  8025. [\\/]* | ?:[\\/]*)
  8026. ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
  8027. ;;
  8028. *)
  8029. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  8030. for as_dir in $PATH
  8031. do
  8032. IFS=$as_save_IFS
  8033. case $as_dir in #(((
  8034. '') as_dir=./ ;;
  8035. */) ;;
  8036. *) as_dir=$as_dir/ ;;
  8037. esac
  8038. for ac_exec_ext in '' $ac_executable_extensions; do
  8039. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  8040. ac_cv_path_PKG_CONFIG="$as_dir$ac_word$ac_exec_ext"
  8041. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  8042. break 2
  8043. fi
  8044. done
  8045. done
  8046. IFS=$as_save_IFS
  8047. ;;
  8048. esac ;;
  8049. esac
  8050. fi
  8051. PKG_CONFIG=$ac_cv_path_PKG_CONFIG
  8052. if test -n "$PKG_CONFIG"; then
  8053. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
  8054. printf "%s\n" "$PKG_CONFIG" >&6; }
  8055. else
  8056. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  8057. printf "%s\n" "no" >&6; }
  8058. fi
  8059. fi
  8060. if test -z "$ac_cv_path_PKG_CONFIG"; then
  8061. ac_pt_PKG_CONFIG=$PKG_CONFIG
  8062. # Extract the first word of "pkg-config", so it can be a program name with args.
  8063. set dummy pkg-config; ac_word=$2
  8064. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  8065. printf %s "checking for $ac_word... " >&6; }
  8066. if test ${ac_cv_path_ac_pt_PKG_CONFIG+y}
  8067. then :
  8068. printf %s "(cached) " >&6
  8069. else case e in #(
  8070. e) case $ac_pt_PKG_CONFIG in
  8071. [\\/]* | ?:[\\/]*)
  8072. ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
  8073. ;;
  8074. *)
  8075. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  8076. for as_dir in $PATH
  8077. do
  8078. IFS=$as_save_IFS
  8079. case $as_dir in #(((
  8080. '') as_dir=./ ;;
  8081. */) ;;
  8082. *) as_dir=$as_dir/ ;;
  8083. esac
  8084. for ac_exec_ext in '' $ac_executable_extensions; do
  8085. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  8086. ac_cv_path_ac_pt_PKG_CONFIG="$as_dir$ac_word$ac_exec_ext"
  8087. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  8088. break 2
  8089. fi
  8090. done
  8091. done
  8092. IFS=$as_save_IFS
  8093. ;;
  8094. esac ;;
  8095. esac
  8096. fi
  8097. ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
  8098. if test -n "$ac_pt_PKG_CONFIG"; then
  8099. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
  8100. printf "%s\n" "$ac_pt_PKG_CONFIG" >&6; }
  8101. else
  8102. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  8103. printf "%s\n" "no" >&6; }
  8104. fi
  8105. if test "x$ac_pt_PKG_CONFIG" = x; then
  8106. PKG_CONFIG="no"
  8107. else
  8108. case $cross_compiling:$ac_tool_warned in
  8109. yes:)
  8110. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  8111. printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  8112. ac_tool_warned=yes ;;
  8113. esac
  8114. PKG_CONFIG=$ac_pt_PKG_CONFIG
  8115. fi
  8116. else
  8117. PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
  8118. fi
  8119. if test "x$PKG_CONFIG" = "xno"; then
  8120. : Not using pkg-config
  8121. # Extract the first word of "krb5-config", so it can be a program name with args.
  8122. set dummy krb5-config; ac_word=$2
  8123. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  8124. printf %s "checking for $ac_word... " >&6; }
  8125. if test ${ac_cv_path_KRB5_CONF_TOOL+y}
  8126. then :
  8127. printf %s "(cached) " >&6
  8128. else case e in #(
  8129. e) case $KRB5_CONF_TOOL in
  8130. [\\/]* | ?:[\\/]*)
  8131. ac_cv_path_KRB5_CONF_TOOL="$KRB5_CONF_TOOL" # Let the user override the test with a path.
  8132. ;;
  8133. *)
  8134. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  8135. as_dummy="$PATH:/usr/kerberos/bin"
  8136. for as_dir in $as_dummy
  8137. do
  8138. IFS=$as_save_IFS
  8139. case $as_dir in #(((
  8140. '') as_dir=./ ;;
  8141. */) ;;
  8142. *) as_dir=$as_dir/ ;;
  8143. esac
  8144. for ac_exec_ext in '' $ac_executable_extensions; do
  8145. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  8146. ac_cv_path_KRB5_CONF_TOOL="$as_dir$ac_word$ac_exec_ext"
  8147. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  8148. break 2
  8149. fi
  8150. done
  8151. done
  8152. IFS=$as_save_IFS
  8153. test -z "$ac_cv_path_KRB5_CONF_TOOL" && ac_cv_path_KRB5_CONF_TOOL="none"
  8154. ;;
  8155. esac ;;
  8156. esac
  8157. fi
  8158. KRB5_CONF_TOOL=$ac_cv_path_KRB5_CONF_TOOL
  8159. if test -n "$KRB5_CONF_TOOL"; then
  8160. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $KRB5_CONF_TOOL" >&5
  8161. printf "%s\n" "$KRB5_CONF_TOOL" >&6; }
  8162. else
  8163. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  8164. printf "%s\n" "no" >&6; }
  8165. fi
  8166. if test "x$KRB5_CONF_TOOL" != "xnone"; then
  8167. NE_GSSAPI_LIBS="`${KRB5_CONF_TOOL} --libs gssapi`"
  8168. NE_GSSAPI_CFLAGS="`${KRB5_CONF_TOOL} --cflags gssapi`"
  8169. NE_GSSAPI_VERSION="`${KRB5_CONF_TOOL} --version`"
  8170. fi
  8171. else
  8172. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for krb5-gssapi pkg-config data" >&5
  8173. printf %s "checking for krb5-gssapi pkg-config data... " >&6; }
  8174. if test ${ne_cv_pkg_krb5_gssapi+y}
  8175. then :
  8176. printf %s "(cached) " >&6
  8177. else case e in #(
  8178. e) if $PKG_CONFIG krb5-gssapi; then
  8179. ne_cv_pkg_krb5_gssapi=yes
  8180. else
  8181. ne_cv_pkg_krb5_gssapi=no
  8182. fi ;;
  8183. esac
  8184. fi
  8185. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ne_cv_pkg_krb5_gssapi" >&5
  8186. printf "%s\n" "$ne_cv_pkg_krb5_gssapi" >&6; }
  8187. if test "$ne_cv_pkg_krb5_gssapi" = "yes"; then
  8188. NE_GSSAPI_CFLAGS=`$PKG_CONFIG --cflags krb5-gssapi`
  8189. NE_GSSAPI_LIBS=`$PKG_CONFIG --libs krb5-gssapi`
  8190. NE_GSSAPI_VERSION=`$PKG_CONFIG --modversion krb5-gssapi`
  8191. : Using provided pkg-config data
  8192. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: using GSSAPI configuration from pkg-config" >&5
  8193. printf "%s\n" "$as_me: using GSSAPI configuration from pkg-config" >&6;}
  8194. KRB5_CONF_TOOL=pkgconf
  8195. else
  8196. : No pkg-config for krb5-gssapi provided
  8197. # Extract the first word of "krb5-config", so it can be a program name with args.
  8198. set dummy krb5-config; ac_word=$2
  8199. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  8200. printf %s "checking for $ac_word... " >&6; }
  8201. if test ${ac_cv_path_KRB5_CONF_TOOL+y}
  8202. then :
  8203. printf %s "(cached) " >&6
  8204. else case e in #(
  8205. e) case $KRB5_CONF_TOOL in
  8206. [\\/]* | ?:[\\/]*)
  8207. ac_cv_path_KRB5_CONF_TOOL="$KRB5_CONF_TOOL" # Let the user override the test with a path.
  8208. ;;
  8209. *)
  8210. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  8211. as_dummy="$PATH:/usr/kerberos/bin"
  8212. for as_dir in $as_dummy
  8213. do
  8214. IFS=$as_save_IFS
  8215. case $as_dir in #(((
  8216. '') as_dir=./ ;;
  8217. */) ;;
  8218. *) as_dir=$as_dir/ ;;
  8219. esac
  8220. for ac_exec_ext in '' $ac_executable_extensions; do
  8221. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  8222. ac_cv_path_KRB5_CONF_TOOL="$as_dir$ac_word$ac_exec_ext"
  8223. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  8224. break 2
  8225. fi
  8226. done
  8227. done
  8228. IFS=$as_save_IFS
  8229. test -z "$ac_cv_path_KRB5_CONF_TOOL" && ac_cv_path_KRB5_CONF_TOOL="none"
  8230. ;;
  8231. esac ;;
  8232. esac
  8233. fi
  8234. KRB5_CONF_TOOL=$ac_cv_path_KRB5_CONF_TOOL
  8235. if test -n "$KRB5_CONF_TOOL"; then
  8236. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $KRB5_CONF_TOOL" >&5
  8237. printf "%s\n" "$KRB5_CONF_TOOL" >&6; }
  8238. else
  8239. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  8240. printf "%s\n" "no" >&6; }
  8241. fi
  8242. if test "x$KRB5_CONF_TOOL" != "xnone"; then
  8243. NE_GSSAPI_LIBS="`${KRB5_CONF_TOOL} --libs gssapi`"
  8244. NE_GSSAPI_CFLAGS="`${KRB5_CONF_TOOL} --cflags gssapi`"
  8245. NE_GSSAPI_VERSION="`${KRB5_CONF_TOOL} --version`"
  8246. fi
  8247. fi
  8248. fi
  8249. else
  8250. KRB5_CONF_TOOL=none
  8251. fi
  8252. if test "x$KRB5_CONF_TOOL" != "xnone"; then
  8253. CFLAGS="$CFLAGS ${NE_GSSAPI_CFLAGS}"
  8254. NEON_LIBS="${NEON_LIBS} ${NE_GSSAPI_LIBS}"
  8255. # MIT and Heimdal put gssapi.h in different places
  8256. for ac_header in gssapi/gssapi.h gssapi.h
  8257. do :
  8258. as_ac_Header=`printf "%s\n" "ac_cv_header_$ac_header" | sed "$as_sed_sh"`
  8259. ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
  8260. if eval test \"x\$"$as_ac_Header"\" = x"yes"
  8261. then :
  8262. cat >>confdefs.h <<_ACEOF
  8263. #define `printf "%s\n" "HAVE_$ac_header" | sed "$as_sed_cpp"` 1
  8264. _ACEOF
  8265. ne_cf_save_LIBS=$LIBS
  8266. LIBS="$LIBS $NEON_LIBS"
  8267. for ac_func in gss_init_sec_context
  8268. do :
  8269. ac_fn_c_check_func "$LINENO" "gss_init_sec_context" "ac_cv_func_gss_init_sec_context"
  8270. if test "x$ac_cv_func_gss_init_sec_context" = xyes
  8271. then :
  8272. printf "%s\n" "#define HAVE_GSS_INIT_SEC_CONTEXT 1" >>confdefs.h
  8273. ne_save_CFLAGS=$CFLAGS
  8274. ne_save_LIBS=$NEON_LIBS
  8275. NE_FLAG_GSSAPI=yes
  8276. printf "%s\n" "#define NE_HAVE_GSSAPI 1" >>confdefs.h
  8277. ne_GSSAPI_message="GSSAPI support enabled, using library ${NE_GSSAPI_LIBS} version ${NE_GSSAPI_VERSION}"
  8278. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: GSSAPI support enabled, using library ${NE_GSSAPI_LIBS} version ${NE_GSSAPI_VERSION}" >&5
  8279. printf "%s\n" "$as_me: GSSAPI support enabled, using library ${NE_GSSAPI_LIBS} version ${NE_GSSAPI_VERSION}" >&6;}
  8280. printf "%s\n" "#define HAVE_GSSAPI 1" >>confdefs.h
  8281. ac_fn_c_check_header_compile "$LINENO" "gssapi/gssapi_generic.h" "ac_cv_header_gssapi_gssapi_generic_h" "$ac_includes_default"
  8282. if test "x$ac_cv_header_gssapi_gssapi_generic_h" = xyes
  8283. then :
  8284. printf "%s\n" "#define HAVE_GSSAPI_GSSAPI_GENERIC_H 1" >>confdefs.h
  8285. fi
  8286. # Older versions of MIT Kerberos lack GSS_C_NT_HOSTBASED_SERVICE
  8287. ac_fn_check_decl "$LINENO" "GSS_C_NT_HOSTBASED_SERVICE" "ac_cv_have_decl_GSS_C_NT_HOSTBASED_SERVICE" "#ifdef HAVE_GSSAPI_GSSAPI_H
  8288. #include <gssapi/gssapi.h>
  8289. #else
  8290. #include <gssapi.h>
  8291. #endif
  8292. " "$ac_c_undeclared_builtin_options" "CFLAGS"
  8293. if test "x$ac_cv_have_decl_GSS_C_NT_HOSTBASED_SERVICE" = xyes
  8294. then :
  8295. else case e in #(
  8296. e)
  8297. printf "%s\n" "#define GSS_C_NT_HOSTBASED_SERVICE gss_nt_service_name" >>confdefs.h
  8298. ;;
  8299. esac
  8300. fi
  8301. fi
  8302. done
  8303. LIBS=$ne_cf_save_LIBS
  8304. break
  8305. fi
  8306. done
  8307. CFLAGS=$ne_save_CFLAGS
  8308. NEON_LIBS=$ne_save_LIBS
  8309. fi
  8310. if test x$NE_FLAG_GSSAPI != xyes; then
  8311. if test $need_gssapi = yes; then
  8312. # Fail if --with-gssapi was specified but no library support found
  8313. as_fn_error $? "could not enable GSSAPI support" "$LINENO" 5
  8314. fi
  8315. NE_FLAG_GSSAPI=no
  8316. ne_GSSAPI_message="GSSAPI authentication is not supported"
  8317. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: GSSAPI authentication is not supported" >&5
  8318. printf "%s\n" "$as_me: GSSAPI authentication is not supported" >&6;}
  8319. fi
  8320. # Check whether --with-libproxy was given.
  8321. if test ${with_libproxy+y}
  8322. then :
  8323. withval=$with_libproxy;
  8324. fi
  8325. if test "x$with_libproxy" != "xno"; then
  8326. if test -n "$ac_tool_prefix"; then
  8327. # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
  8328. set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
  8329. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  8330. printf %s "checking for $ac_word... " >&6; }
  8331. if test ${ac_cv_path_PKG_CONFIG+y}
  8332. then :
  8333. printf %s "(cached) " >&6
  8334. else case e in #(
  8335. e) case $PKG_CONFIG in
  8336. [\\/]* | ?:[\\/]*)
  8337. ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
  8338. ;;
  8339. *)
  8340. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  8341. for as_dir in $PATH
  8342. do
  8343. IFS=$as_save_IFS
  8344. case $as_dir in #(((
  8345. '') as_dir=./ ;;
  8346. */) ;;
  8347. *) as_dir=$as_dir/ ;;
  8348. esac
  8349. for ac_exec_ext in '' $ac_executable_extensions; do
  8350. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  8351. ac_cv_path_PKG_CONFIG="$as_dir$ac_word$ac_exec_ext"
  8352. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  8353. break 2
  8354. fi
  8355. done
  8356. done
  8357. IFS=$as_save_IFS
  8358. ;;
  8359. esac ;;
  8360. esac
  8361. fi
  8362. PKG_CONFIG=$ac_cv_path_PKG_CONFIG
  8363. if test -n "$PKG_CONFIG"; then
  8364. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
  8365. printf "%s\n" "$PKG_CONFIG" >&6; }
  8366. else
  8367. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  8368. printf "%s\n" "no" >&6; }
  8369. fi
  8370. fi
  8371. if test -z "$ac_cv_path_PKG_CONFIG"; then
  8372. ac_pt_PKG_CONFIG=$PKG_CONFIG
  8373. # Extract the first word of "pkg-config", so it can be a program name with args.
  8374. set dummy pkg-config; ac_word=$2
  8375. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  8376. printf %s "checking for $ac_word... " >&6; }
  8377. if test ${ac_cv_path_ac_pt_PKG_CONFIG+y}
  8378. then :
  8379. printf %s "(cached) " >&6
  8380. else case e in #(
  8381. e) case $ac_pt_PKG_CONFIG in
  8382. [\\/]* | ?:[\\/]*)
  8383. ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
  8384. ;;
  8385. *)
  8386. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  8387. for as_dir in $PATH
  8388. do
  8389. IFS=$as_save_IFS
  8390. case $as_dir in #(((
  8391. '') as_dir=./ ;;
  8392. */) ;;
  8393. *) as_dir=$as_dir/ ;;
  8394. esac
  8395. for ac_exec_ext in '' $ac_executable_extensions; do
  8396. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  8397. ac_cv_path_ac_pt_PKG_CONFIG="$as_dir$ac_word$ac_exec_ext"
  8398. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  8399. break 2
  8400. fi
  8401. done
  8402. done
  8403. IFS=$as_save_IFS
  8404. ;;
  8405. esac ;;
  8406. esac
  8407. fi
  8408. ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
  8409. if test -n "$ac_pt_PKG_CONFIG"; then
  8410. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
  8411. printf "%s\n" "$ac_pt_PKG_CONFIG" >&6; }
  8412. else
  8413. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  8414. printf "%s\n" "no" >&6; }
  8415. fi
  8416. if test "x$ac_pt_PKG_CONFIG" = x; then
  8417. PKG_CONFIG="no"
  8418. else
  8419. case $cross_compiling:$ac_tool_warned in
  8420. yes:)
  8421. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  8422. printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  8423. ac_tool_warned=yes ;;
  8424. esac
  8425. PKG_CONFIG=$ac_pt_PKG_CONFIG
  8426. fi
  8427. else
  8428. PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
  8429. fi
  8430. if test "x$PKG_CONFIG" = "xno"; then
  8431. : Not using pkg-config
  8432. NE_FLAG_LIBPXY=no
  8433. ne_LIBPXY_message="libproxy support not enabled"
  8434. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: libproxy support not enabled" >&5
  8435. printf "%s\n" "$as_me: libproxy support not enabled" >&6;}
  8436. else
  8437. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libproxy-1.0 pkg-config data" >&5
  8438. printf %s "checking for libproxy-1.0 pkg-config data... " >&6; }
  8439. if test ${ne_cv_pkg_libproxy_1_0+y}
  8440. then :
  8441. printf %s "(cached) " >&6
  8442. else case e in #(
  8443. e) if $PKG_CONFIG libproxy-1.0; then
  8444. ne_cv_pkg_libproxy_1_0=yes
  8445. else
  8446. ne_cv_pkg_libproxy_1_0=no
  8447. fi ;;
  8448. esac
  8449. fi
  8450. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ne_cv_pkg_libproxy_1_0" >&5
  8451. printf "%s\n" "$ne_cv_pkg_libproxy_1_0" >&6; }
  8452. if test "$ne_cv_pkg_libproxy_1_0" = "yes"; then
  8453. NE_PXY_CFLAGS=`$PKG_CONFIG --cflags libproxy-1.0`
  8454. NE_PXY_LIBS=`$PKG_CONFIG --libs libproxy-1.0`
  8455. NE_PXY_VERSION=`$PKG_CONFIG --modversion libproxy-1.0`
  8456. : Using provided pkg-config data
  8457. printf "%s\n" "#define HAVE_LIBPROXY 1" >>confdefs.h
  8458. CPPFLAGS="$CPPFLAGS $NE_PXY_CFLAGS"
  8459. NEON_LIBS="$NEON_LIBS ${NE_PXY_LIBS}"
  8460. NE_FLAG_LIBPXY=yes
  8461. printf "%s\n" "#define NE_HAVE_LIBPXY 1" >>confdefs.h
  8462. ne_LIBPXY_message="libproxy support enabled using libproxy $NE_PXY_VERSION"
  8463. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: libproxy support enabled using libproxy $NE_PXY_VERSION" >&5
  8464. printf "%s\n" "$as_me: libproxy support enabled using libproxy $NE_PXY_VERSION" >&6;}
  8465. else
  8466. : No pkg-config for libproxy-1.0 provided
  8467. NE_FLAG_LIBPXY=no
  8468. ne_LIBPXY_message="libproxy support not enabled"
  8469. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: libproxy support not enabled" >&5
  8470. printf "%s\n" "$as_me: libproxy support not enabled" >&6;}
  8471. fi
  8472. fi
  8473. else
  8474. NE_FLAG_LIBPXY=no
  8475. ne_LIBPXY_message="libproxy support not enabled"
  8476. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: libproxy support not enabled" >&5
  8477. printf "%s\n" "$as_me: libproxy support not enabled" >&6;}
  8478. fi
  8479. # Check whether --enable-shared was given.
  8480. if test ${enable_shared+y}
  8481. then :
  8482. enableval=$enable_shared; p=${PACKAGE-default}
  8483. case $enableval in
  8484. yes) enable_shared=yes ;;
  8485. no) enable_shared=no ;;
  8486. *)
  8487. enable_shared=no
  8488. # Look at the argument we got. We use all the common list separators.
  8489. lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
  8490. for pkg in $enableval; do
  8491. IFS=$lt_save_ifs
  8492. if test "X$pkg" = "X$p"; then
  8493. enable_shared=yes
  8494. fi
  8495. done
  8496. IFS=$lt_save_ifs
  8497. ;;
  8498. esac
  8499. else case e in #(
  8500. e) enable_shared=no ;;
  8501. esac
  8502. fi
  8503. case `pwd` in
  8504. *\ * | *\ *)
  8505. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
  8506. printf "%s\n" "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
  8507. esac
  8508. macro_version='2.5.4'
  8509. macro_revision='2.5.4'
  8510. ltmain=$ac_aux_dir/ltmain.sh
  8511. # Make sure we can run config.sub.
  8512. $SHELL "${ac_aux_dir}config.sub" sun4 >/dev/null 2>&1 ||
  8513. as_fn_error $? "cannot run $SHELL ${ac_aux_dir}config.sub" "$LINENO" 5
  8514. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
  8515. printf %s "checking build system type... " >&6; }
  8516. if test ${ac_cv_build+y}
  8517. then :
  8518. printf %s "(cached) " >&6
  8519. else case e in #(
  8520. e) ac_build_alias=$build_alias
  8521. test "x$ac_build_alias" = x &&
  8522. ac_build_alias=`$SHELL "${ac_aux_dir}config.guess"`
  8523. test "x$ac_build_alias" = x &&
  8524. as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
  8525. ac_cv_build=`$SHELL "${ac_aux_dir}config.sub" $ac_build_alias` ||
  8526. as_fn_error $? "$SHELL ${ac_aux_dir}config.sub $ac_build_alias failed" "$LINENO" 5
  8527. ;;
  8528. esac
  8529. fi
  8530. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
  8531. printf "%s\n" "$ac_cv_build" >&6; }
  8532. case $ac_cv_build in
  8533. *-*-*) ;;
  8534. *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
  8535. esac
  8536. build=$ac_cv_build
  8537. ac_save_IFS=$IFS; IFS='-'
  8538. set x $ac_cv_build
  8539. shift
  8540. build_cpu=$1
  8541. build_vendor=$2
  8542. shift; shift
  8543. # Remember, the first character of IFS is used to create $*,
  8544. # except with old shells:
  8545. build_os=$*
  8546. IFS=$ac_save_IFS
  8547. case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
  8548. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
  8549. printf %s "checking host system type... " >&6; }
  8550. if test ${ac_cv_host+y}
  8551. then :
  8552. printf %s "(cached) " >&6
  8553. else case e in #(
  8554. e) if test "x$host_alias" = x; then
  8555. ac_cv_host=$ac_cv_build
  8556. else
  8557. ac_cv_host=`$SHELL "${ac_aux_dir}config.sub" $host_alias` ||
  8558. as_fn_error $? "$SHELL ${ac_aux_dir}config.sub $host_alias failed" "$LINENO" 5
  8559. fi
  8560. ;;
  8561. esac
  8562. fi
  8563. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
  8564. printf "%s\n" "$ac_cv_host" >&6; }
  8565. case $ac_cv_host in
  8566. *-*-*) ;;
  8567. *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
  8568. esac
  8569. host=$ac_cv_host
  8570. ac_save_IFS=$IFS; IFS='-'
  8571. set x $ac_cv_host
  8572. shift
  8573. host_cpu=$1
  8574. host_vendor=$2
  8575. shift; shift
  8576. # Remember, the first character of IFS is used to create $*,
  8577. # except with old shells:
  8578. host_os=$*
  8579. IFS=$ac_save_IFS
  8580. case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
  8581. # Backslashify metacharacters that are still active within
  8582. # double-quoted strings.
  8583. sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
  8584. # Same as above, but do not quote variable references.
  8585. double_quote_subst='s/\(["`\\]\)/\\\1/g'
  8586. # Sed substitution to delay expansion of an escaped shell variable in a
  8587. # double_quote_subst'ed string.
  8588. delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
  8589. # Sed substitution to delay expansion of an escaped single quote.
  8590. delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
  8591. # Sed substitution to avoid accidental globbing in evaled expressions
  8592. no_glob_subst='s/\*/\\\*/g'
  8593. ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
  8594. ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
  8595. ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
  8596. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
  8597. printf %s "checking how to print strings... " >&6; }
  8598. # Test print first, because it will be a builtin if present.
  8599. if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
  8600. test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
  8601. ECHO='print -r --'
  8602. elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
  8603. ECHO='printf %s\n'
  8604. else
  8605. # Use this function as a fallback that always works.
  8606. func_fallback_echo ()
  8607. {
  8608. eval 'cat <<_LTECHO_EOF
  8609. $1
  8610. _LTECHO_EOF'
  8611. }
  8612. ECHO='func_fallback_echo'
  8613. fi
  8614. # func_echo_all arg...
  8615. # Invoke $ECHO with all args, space-separated.
  8616. func_echo_all ()
  8617. {
  8618. $ECHO ""
  8619. }
  8620. case $ECHO in
  8621. printf*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: printf" >&5
  8622. printf "%s\n" "printf" >&6; } ;;
  8623. print*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
  8624. printf "%s\n" "print -r" >&6; } ;;
  8625. *) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: cat" >&5
  8626. printf "%s\n" "cat" >&6; } ;;
  8627. esac
  8628. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
  8629. printf %s "checking for a sed that does not truncate output... " >&6; }
  8630. if test ${ac_cv_path_SED+y}
  8631. then :
  8632. printf %s "(cached) " >&6
  8633. else case e in #(
  8634. e) ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
  8635. for ac_i in 1 2 3 4 5 6 7; do
  8636. ac_script="$ac_script$as_nl$ac_script"
  8637. done
  8638. echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
  8639. { ac_script=; unset ac_script;}
  8640. if test -z "$SED"; then
  8641. ac_path_SED_found=false
  8642. # Loop through the user's path and test for each of PROGNAME-LIST
  8643. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  8644. for as_dir in $PATH
  8645. do
  8646. IFS=$as_save_IFS
  8647. case $as_dir in #(((
  8648. '') as_dir=./ ;;
  8649. */) ;;
  8650. *) as_dir=$as_dir/ ;;
  8651. esac
  8652. for ac_prog in sed gsed
  8653. do
  8654. for ac_exec_ext in '' $ac_executable_extensions; do
  8655. ac_path_SED="$as_dir$ac_prog$ac_exec_ext"
  8656. as_fn_executable_p "$ac_path_SED" || continue
  8657. # Check for GNU ac_path_SED and select it if it is found.
  8658. # Check for GNU $ac_path_SED
  8659. case `"$ac_path_SED" --version 2>&1` in #(
  8660. *GNU*)
  8661. ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
  8662. #(
  8663. *)
  8664. ac_count=0
  8665. printf %s 0123456789 >"conftest.in"
  8666. while :
  8667. do
  8668. cat "conftest.in" "conftest.in" >"conftest.tmp"
  8669. mv "conftest.tmp" "conftest.in"
  8670. cp "conftest.in" "conftest.nl"
  8671. printf "%s\n" '' >> "conftest.nl"
  8672. "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
  8673. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  8674. as_fn_arith $ac_count + 1 && ac_count=$as_val
  8675. if test $ac_count -gt ${ac_path_SED_max-0}; then
  8676. # Best one so far, save it but keep looking for a better one
  8677. ac_cv_path_SED="$ac_path_SED"
  8678. ac_path_SED_max=$ac_count
  8679. fi
  8680. # 10*(2^10) chars as input seems more than enough
  8681. test $ac_count -gt 10 && break
  8682. done
  8683. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  8684. esac
  8685. $ac_path_SED_found && break 3
  8686. done
  8687. done
  8688. done
  8689. IFS=$as_save_IFS
  8690. if test -z "$ac_cv_path_SED"; then
  8691. as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
  8692. fi
  8693. else
  8694. ac_cv_path_SED=$SED
  8695. fi
  8696. ;;
  8697. esac
  8698. fi
  8699. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
  8700. printf "%s\n" "$ac_cv_path_SED" >&6; }
  8701. SED="$ac_cv_path_SED"
  8702. rm -f conftest.sed
  8703. test -z "$SED" && SED=sed
  8704. Xsed="$SED -e 1s/^X//"
  8705. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
  8706. printf %s "checking for grep that handles long lines and -e... " >&6; }
  8707. if test ${ac_cv_path_GREP+y}
  8708. then :
  8709. printf %s "(cached) " >&6
  8710. else case e in #(
  8711. e) if test -z "$GREP"; then
  8712. ac_path_GREP_found=false
  8713. # Loop through the user's path and test for each of PROGNAME-LIST
  8714. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  8715. for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
  8716. do
  8717. IFS=$as_save_IFS
  8718. case $as_dir in #(((
  8719. '') as_dir=./ ;;
  8720. */) ;;
  8721. *) as_dir=$as_dir/ ;;
  8722. esac
  8723. for ac_prog in grep ggrep
  8724. do
  8725. for ac_exec_ext in '' $ac_executable_extensions; do
  8726. ac_path_GREP="$as_dir$ac_prog$ac_exec_ext"
  8727. as_fn_executable_p "$ac_path_GREP" || continue
  8728. # Check for GNU ac_path_GREP and select it if it is found.
  8729. # Check for GNU $ac_path_GREP
  8730. case `"$ac_path_GREP" --version 2>&1` in #(
  8731. *GNU*)
  8732. ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
  8733. #(
  8734. *)
  8735. ac_count=0
  8736. printf %s 0123456789 >"conftest.in"
  8737. while :
  8738. do
  8739. cat "conftest.in" "conftest.in" >"conftest.tmp"
  8740. mv "conftest.tmp" "conftest.in"
  8741. cp "conftest.in" "conftest.nl"
  8742. printf "%s\n" 'GREP' >> "conftest.nl"
  8743. "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
  8744. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  8745. as_fn_arith $ac_count + 1 && ac_count=$as_val
  8746. if test $ac_count -gt ${ac_path_GREP_max-0}; then
  8747. # Best one so far, save it but keep looking for a better one
  8748. ac_cv_path_GREP="$ac_path_GREP"
  8749. ac_path_GREP_max=$ac_count
  8750. fi
  8751. # 10*(2^10) chars as input seems more than enough
  8752. test $ac_count -gt 10 && break
  8753. done
  8754. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  8755. esac
  8756. $ac_path_GREP_found && break 3
  8757. done
  8758. done
  8759. done
  8760. IFS=$as_save_IFS
  8761. if test -z "$ac_cv_path_GREP"; then
  8762. as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
  8763. fi
  8764. else
  8765. ac_cv_path_GREP=$GREP
  8766. fi
  8767. ;;
  8768. esac
  8769. fi
  8770. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
  8771. printf "%s\n" "$ac_cv_path_GREP" >&6; }
  8772. GREP="$ac_cv_path_GREP"
  8773. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
  8774. printf %s "checking for egrep... " >&6; }
  8775. if test ${ac_cv_path_EGREP+y}
  8776. then :
  8777. printf %s "(cached) " >&6
  8778. else case e in #(
  8779. e) if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
  8780. then ac_cv_path_EGREP="$GREP -E"
  8781. else
  8782. if test -z "$EGREP"; then
  8783. ac_path_EGREP_found=false
  8784. # Loop through the user's path and test for each of PROGNAME-LIST
  8785. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  8786. for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
  8787. do
  8788. IFS=$as_save_IFS
  8789. case $as_dir in #(((
  8790. '') as_dir=./ ;;
  8791. */) ;;
  8792. *) as_dir=$as_dir/ ;;
  8793. esac
  8794. for ac_prog in egrep
  8795. do
  8796. for ac_exec_ext in '' $ac_executable_extensions; do
  8797. ac_path_EGREP="$as_dir$ac_prog$ac_exec_ext"
  8798. as_fn_executable_p "$ac_path_EGREP" || continue
  8799. # Check for GNU ac_path_EGREP and select it if it is found.
  8800. # Check for GNU $ac_path_EGREP
  8801. case `"$ac_path_EGREP" --version 2>&1` in #(
  8802. *GNU*)
  8803. ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
  8804. #(
  8805. *)
  8806. ac_count=0
  8807. printf %s 0123456789 >"conftest.in"
  8808. while :
  8809. do
  8810. cat "conftest.in" "conftest.in" >"conftest.tmp"
  8811. mv "conftest.tmp" "conftest.in"
  8812. cp "conftest.in" "conftest.nl"
  8813. printf "%s\n" 'EGREP' >> "conftest.nl"
  8814. "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
  8815. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  8816. as_fn_arith $ac_count + 1 && ac_count=$as_val
  8817. if test $ac_count -gt ${ac_path_EGREP_max-0}; then
  8818. # Best one so far, save it but keep looking for a better one
  8819. ac_cv_path_EGREP="$ac_path_EGREP"
  8820. ac_path_EGREP_max=$ac_count
  8821. fi
  8822. # 10*(2^10) chars as input seems more than enough
  8823. test $ac_count -gt 10 && break
  8824. done
  8825. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  8826. esac
  8827. $ac_path_EGREP_found && break 3
  8828. done
  8829. done
  8830. done
  8831. IFS=$as_save_IFS
  8832. if test -z "$ac_cv_path_EGREP"; then
  8833. as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
  8834. fi
  8835. else
  8836. ac_cv_path_EGREP=$EGREP
  8837. fi
  8838. fi ;;
  8839. esac
  8840. fi
  8841. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
  8842. printf "%s\n" "$ac_cv_path_EGREP" >&6; }
  8843. EGREP="$ac_cv_path_EGREP"
  8844. EGREP_TRADITIONAL=$EGREP
  8845. ac_cv_path_EGREP_TRADITIONAL=$EGREP
  8846. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
  8847. printf %s "checking for fgrep... " >&6; }
  8848. if test ${ac_cv_path_FGREP+y}
  8849. then :
  8850. printf %s "(cached) " >&6
  8851. else case e in #(
  8852. e) if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
  8853. then ac_cv_path_FGREP="$GREP -F"
  8854. else
  8855. if test -z "$FGREP"; then
  8856. ac_path_FGREP_found=false
  8857. # Loop through the user's path and test for each of PROGNAME-LIST
  8858. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  8859. for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
  8860. do
  8861. IFS=$as_save_IFS
  8862. case $as_dir in #(((
  8863. '') as_dir=./ ;;
  8864. */) ;;
  8865. *) as_dir=$as_dir/ ;;
  8866. esac
  8867. for ac_prog in fgrep
  8868. do
  8869. for ac_exec_ext in '' $ac_executable_extensions; do
  8870. ac_path_FGREP="$as_dir$ac_prog$ac_exec_ext"
  8871. as_fn_executable_p "$ac_path_FGREP" || continue
  8872. # Check for GNU ac_path_FGREP and select it if it is found.
  8873. # Check for GNU $ac_path_FGREP
  8874. case `"$ac_path_FGREP" --version 2>&1` in #(
  8875. *GNU*)
  8876. ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
  8877. #(
  8878. *)
  8879. ac_count=0
  8880. printf %s 0123456789 >"conftest.in"
  8881. while :
  8882. do
  8883. cat "conftest.in" "conftest.in" >"conftest.tmp"
  8884. mv "conftest.tmp" "conftest.in"
  8885. cp "conftest.in" "conftest.nl"
  8886. printf "%s\n" 'FGREP' >> "conftest.nl"
  8887. "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
  8888. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  8889. as_fn_arith $ac_count + 1 && ac_count=$as_val
  8890. if test $ac_count -gt ${ac_path_FGREP_max-0}; then
  8891. # Best one so far, save it but keep looking for a better one
  8892. ac_cv_path_FGREP="$ac_path_FGREP"
  8893. ac_path_FGREP_max=$ac_count
  8894. fi
  8895. # 10*(2^10) chars as input seems more than enough
  8896. test $ac_count -gt 10 && break
  8897. done
  8898. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  8899. esac
  8900. $ac_path_FGREP_found && break 3
  8901. done
  8902. done
  8903. done
  8904. IFS=$as_save_IFS
  8905. if test -z "$ac_cv_path_FGREP"; then
  8906. as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
  8907. fi
  8908. else
  8909. ac_cv_path_FGREP=$FGREP
  8910. fi
  8911. fi ;;
  8912. esac
  8913. fi
  8914. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
  8915. printf "%s\n" "$ac_cv_path_FGREP" >&6; }
  8916. FGREP="$ac_cv_path_FGREP"
  8917. test -z "$GREP" && GREP=grep
  8918. # Check whether --with-gnu-ld was given.
  8919. if test ${with_gnu_ld+y}
  8920. then :
  8921. withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes
  8922. else case e in #(
  8923. e) with_gnu_ld=no ;;
  8924. esac
  8925. fi
  8926. ac_prog=ld
  8927. if test yes = "$GCC"; then
  8928. # Check if gcc -print-prog-name=ld gives a path.
  8929. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
  8930. printf %s "checking for ld used by $CC... " >&6; }
  8931. case $host in
  8932. *-*-mingw* | *-*-windows*)
  8933. # gcc leaves a trailing carriage return, which upsets mingw
  8934. ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
  8935. *)
  8936. ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
  8937. esac
  8938. case $ac_prog in
  8939. # Accept absolute paths.
  8940. [\\/]* | ?:[\\/]*)
  8941. re_direlt='/[^/][^/]*/\.\./'
  8942. # Canonicalize the pathname of ld
  8943. ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
  8944. while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
  8945. ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
  8946. done
  8947. test -z "$LD" && LD=$ac_prog
  8948. ;;
  8949. "")
  8950. # If it fails, then pretend we aren't using GCC.
  8951. ac_prog=ld
  8952. ;;
  8953. *)
  8954. # If it is relative, then search for the first ld in PATH.
  8955. with_gnu_ld=unknown
  8956. ;;
  8957. esac
  8958. elif test yes = "$with_gnu_ld"; then
  8959. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
  8960. printf %s "checking for GNU ld... " >&6; }
  8961. else
  8962. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
  8963. printf %s "checking for non-GNU ld... " >&6; }
  8964. fi
  8965. if test ${lt_cv_path_LD+y}
  8966. then :
  8967. printf %s "(cached) " >&6
  8968. else case e in #(
  8969. e) if test -z "$LD"; then
  8970. lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
  8971. for ac_dir in $PATH; do
  8972. IFS=$lt_save_ifs
  8973. test -z "$ac_dir" && ac_dir=.
  8974. if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
  8975. lt_cv_path_LD=$ac_dir/$ac_prog
  8976. # Check to see if the program is GNU ld. I'd rather use --version,
  8977. # but apparently some variants of GNU ld only accept -v.
  8978. # Break only if it was the GNU/non-GNU ld that we prefer.
  8979. case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
  8980. *GNU* | *'with BFD'*)
  8981. test no != "$with_gnu_ld" && break
  8982. ;;
  8983. *)
  8984. test yes != "$with_gnu_ld" && break
  8985. ;;
  8986. esac
  8987. fi
  8988. done
  8989. IFS=$lt_save_ifs
  8990. else
  8991. lt_cv_path_LD=$LD # Let the user override the test with a path.
  8992. fi ;;
  8993. esac
  8994. fi
  8995. LD=$lt_cv_path_LD
  8996. if test -n "$LD"; then
  8997. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
  8998. printf "%s\n" "$LD" >&6; }
  8999. else
  9000. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  9001. printf "%s\n" "no" >&6; }
  9002. fi
  9003. test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
  9004. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
  9005. printf %s "checking if the linker ($LD) is GNU ld... " >&6; }
  9006. if test ${lt_cv_prog_gnu_ld+y}
  9007. then :
  9008. printf %s "(cached) " >&6
  9009. else case e in #(
  9010. e) # I'd rather use --version here, but apparently some GNU lds only accept -v.
  9011. case `$LD -v 2>&1 </dev/null` in
  9012. *GNU* | *'with BFD'*)
  9013. lt_cv_prog_gnu_ld=yes
  9014. ;;
  9015. *)
  9016. lt_cv_prog_gnu_ld=no
  9017. ;;
  9018. esac ;;
  9019. esac
  9020. fi
  9021. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
  9022. printf "%s\n" "$lt_cv_prog_gnu_ld" >&6; }
  9023. with_gnu_ld=$lt_cv_prog_gnu_ld
  9024. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
  9025. printf %s "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
  9026. if test ${lt_cv_path_NM+y}
  9027. then :
  9028. printf %s "(cached) " >&6
  9029. else case e in #(
  9030. e) if test -n "$NM"; then
  9031. # Let the user override the test.
  9032. lt_cv_path_NM=$NM
  9033. else
  9034. lt_nm_to_check=${ac_tool_prefix}nm
  9035. if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
  9036. lt_nm_to_check="$lt_nm_to_check nm"
  9037. fi
  9038. for lt_tmp_nm in $lt_nm_to_check; do
  9039. lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
  9040. for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
  9041. IFS=$lt_save_ifs
  9042. test -z "$ac_dir" && ac_dir=.
  9043. tmp_nm=$ac_dir/$lt_tmp_nm
  9044. if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext"; then
  9045. # Check to see if the nm accepts a BSD-compat flag.
  9046. # Adding the 'sed 1q' prevents false positives on HP-UX, which says:
  9047. # nm: unknown option "B" ignored
  9048. # Tru64's nm complains that /dev/null is an invalid object file
  9049. # MSYS converts /dev/null to NUL, MinGW nm treats NUL as empty
  9050. case $build_os in
  9051. mingw* | windows*) lt_bad_file=conftest.nm/nofile ;;
  9052. *) lt_bad_file=/dev/null ;;
  9053. esac
  9054. case `"$tmp_nm" -B $lt_bad_file 2>&1 | $SED '1q'` in
  9055. *$lt_bad_file* | *'Invalid file or object type'*)
  9056. lt_cv_path_NM="$tmp_nm -B"
  9057. break 2
  9058. ;;
  9059. *)
  9060. case `"$tmp_nm" -p /dev/null 2>&1 | $SED '1q'` in
  9061. */dev/null*)
  9062. lt_cv_path_NM="$tmp_nm -p"
  9063. break 2
  9064. ;;
  9065. *)
  9066. lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
  9067. continue # so that we can try to find one that supports BSD flags
  9068. ;;
  9069. esac
  9070. ;;
  9071. esac
  9072. fi
  9073. done
  9074. IFS=$lt_save_ifs
  9075. done
  9076. : ${lt_cv_path_NM=no}
  9077. fi ;;
  9078. esac
  9079. fi
  9080. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
  9081. printf "%s\n" "$lt_cv_path_NM" >&6; }
  9082. if test no != "$lt_cv_path_NM"; then
  9083. NM=$lt_cv_path_NM
  9084. else
  9085. # Didn't find any BSD compatible name lister, look for dumpbin.
  9086. if test -n "$DUMPBIN"; then :
  9087. # Let the user override the test.
  9088. else
  9089. if test -n "$ac_tool_prefix"; then
  9090. for ac_prog in dumpbin "link -dump"
  9091. do
  9092. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  9093. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  9094. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  9095. printf %s "checking for $ac_word... " >&6; }
  9096. if test ${ac_cv_prog_DUMPBIN+y}
  9097. then :
  9098. printf %s "(cached) " >&6
  9099. else case e in #(
  9100. e) if test -n "$DUMPBIN"; then
  9101. ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
  9102. else
  9103. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  9104. for as_dir in $PATH
  9105. do
  9106. IFS=$as_save_IFS
  9107. case $as_dir in #(((
  9108. '') as_dir=./ ;;
  9109. */) ;;
  9110. *) as_dir=$as_dir/ ;;
  9111. esac
  9112. for ac_exec_ext in '' $ac_executable_extensions; do
  9113. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  9114. ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
  9115. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  9116. break 2
  9117. fi
  9118. done
  9119. done
  9120. IFS=$as_save_IFS
  9121. fi ;;
  9122. esac
  9123. fi
  9124. DUMPBIN=$ac_cv_prog_DUMPBIN
  9125. if test -n "$DUMPBIN"; then
  9126. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
  9127. printf "%s\n" "$DUMPBIN" >&6; }
  9128. else
  9129. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  9130. printf "%s\n" "no" >&6; }
  9131. fi
  9132. test -n "$DUMPBIN" && break
  9133. done
  9134. fi
  9135. if test -z "$DUMPBIN"; then
  9136. ac_ct_DUMPBIN=$DUMPBIN
  9137. for ac_prog in dumpbin "link -dump"
  9138. do
  9139. # Extract the first word of "$ac_prog", so it can be a program name with args.
  9140. set dummy $ac_prog; ac_word=$2
  9141. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  9142. printf %s "checking for $ac_word... " >&6; }
  9143. if test ${ac_cv_prog_ac_ct_DUMPBIN+y}
  9144. then :
  9145. printf %s "(cached) " >&6
  9146. else case e in #(
  9147. e) if test -n "$ac_ct_DUMPBIN"; then
  9148. ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
  9149. else
  9150. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  9151. for as_dir in $PATH
  9152. do
  9153. IFS=$as_save_IFS
  9154. case $as_dir in #(((
  9155. '') as_dir=./ ;;
  9156. */) ;;
  9157. *) as_dir=$as_dir/ ;;
  9158. esac
  9159. for ac_exec_ext in '' $ac_executable_extensions; do
  9160. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  9161. ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
  9162. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  9163. break 2
  9164. fi
  9165. done
  9166. done
  9167. IFS=$as_save_IFS
  9168. fi ;;
  9169. esac
  9170. fi
  9171. ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
  9172. if test -n "$ac_ct_DUMPBIN"; then
  9173. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
  9174. printf "%s\n" "$ac_ct_DUMPBIN" >&6; }
  9175. else
  9176. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  9177. printf "%s\n" "no" >&6; }
  9178. fi
  9179. test -n "$ac_ct_DUMPBIN" && break
  9180. done
  9181. if test "x$ac_ct_DUMPBIN" = x; then
  9182. DUMPBIN=":"
  9183. else
  9184. case $cross_compiling:$ac_tool_warned in
  9185. yes:)
  9186. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  9187. printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  9188. ac_tool_warned=yes ;;
  9189. esac
  9190. DUMPBIN=$ac_ct_DUMPBIN
  9191. fi
  9192. fi
  9193. case `$DUMPBIN -symbols -headers /dev/null 2>&1 | $SED '1q'` in
  9194. *COFF*)
  9195. DUMPBIN="$DUMPBIN -symbols -headers"
  9196. ;;
  9197. *)
  9198. DUMPBIN=:
  9199. ;;
  9200. esac
  9201. fi
  9202. if test : != "$DUMPBIN"; then
  9203. NM=$DUMPBIN
  9204. fi
  9205. fi
  9206. test -z "$NM" && NM=nm
  9207. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
  9208. printf %s "checking the name lister ($NM) interface... " >&6; }
  9209. if test ${lt_cv_nm_interface+y}
  9210. then :
  9211. printf %s "(cached) " >&6
  9212. else case e in #(
  9213. e) lt_cv_nm_interface="BSD nm"
  9214. echo "int some_variable = 0;" > conftest.$ac_ext
  9215. (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
  9216. (eval "$ac_compile" 2>conftest.err)
  9217. cat conftest.err >&5
  9218. (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
  9219. (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
  9220. cat conftest.err >&5
  9221. (eval echo "\"\$as_me:$LINENO: output\"" >&5)
  9222. cat conftest.out >&5
  9223. if $GREP 'External.*some_variable' conftest.out > /dev/null; then
  9224. lt_cv_nm_interface="MS dumpbin"
  9225. fi
  9226. rm -f conftest* ;;
  9227. esac
  9228. fi
  9229. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
  9230. printf "%s\n" "$lt_cv_nm_interface" >&6; }
  9231. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
  9232. printf %s "checking whether ln -s works... " >&6; }
  9233. LN_S=$as_ln_s
  9234. if test "$LN_S" = "ln -s"; then
  9235. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  9236. printf "%s\n" "yes" >&6; }
  9237. else
  9238. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
  9239. printf "%s\n" "no, using $LN_S" >&6; }
  9240. fi
  9241. # find the maximum length of command line arguments
  9242. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
  9243. printf %s "checking the maximum length of command line arguments... " >&6; }
  9244. if test ${lt_cv_sys_max_cmd_len+y}
  9245. then :
  9246. printf %s "(cached) " >&6
  9247. else case e in #(
  9248. e) i=0
  9249. teststring=ABCD
  9250. case $build_os in
  9251. msdosdjgpp*)
  9252. # On DJGPP, this test can blow up pretty badly due to problems in libc
  9253. # (any single argument exceeding 2000 bytes causes a buffer overrun
  9254. # during glob expansion). Even if it were fixed, the result of this
  9255. # check would be larger than it should be.
  9256. lt_cv_sys_max_cmd_len=12288; # 12K is about right
  9257. ;;
  9258. gnu* | ironclad*)
  9259. # Under GNU Hurd and Ironclad, this test is not required because there
  9260. # is no limit to the length of command line arguments.
  9261. # Libtool will interpret -1 as no limit whatsoever
  9262. lt_cv_sys_max_cmd_len=-1;
  9263. ;;
  9264. cygwin* | mingw* | windows* | cegcc*)
  9265. # On Win9x/ME, this test blows up -- it succeeds, but takes
  9266. # about 5 minutes as the teststring grows exponentially.
  9267. # Worse, since 9x/ME are not pre-emptively multitasking,
  9268. # you end up with a "frozen" computer, even though with patience
  9269. # the test eventually succeeds (with a max line length of 256k).
  9270. # Instead, let's just punt: use the minimum linelength reported by
  9271. # all of the supported platforms: 8192 (on NT/2K/XP).
  9272. lt_cv_sys_max_cmd_len=8192;
  9273. ;;
  9274. mint*)
  9275. # On MiNT this can take a long time and run out of memory.
  9276. lt_cv_sys_max_cmd_len=8192;
  9277. ;;
  9278. amigaos*)
  9279. # On AmigaOS with pdksh, this test takes hours, literally.
  9280. # So we just punt and use a minimum line length of 8192.
  9281. lt_cv_sys_max_cmd_len=8192;
  9282. ;;
  9283. darwin* | dragonfly* | freebsd* | midnightbsd* | netbsd* | openbsd*)
  9284. # This has been around since 386BSD, at least. Likely further.
  9285. if test -x /sbin/sysctl; then
  9286. lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
  9287. elif test -x /usr/sbin/sysctl; then
  9288. lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
  9289. else
  9290. lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
  9291. fi
  9292. # And add a safety zone
  9293. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
  9294. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
  9295. ;;
  9296. interix*)
  9297. # We know the value 262144 and hardcode it with a safety zone (like BSD)
  9298. lt_cv_sys_max_cmd_len=196608
  9299. ;;
  9300. os2*)
  9301. # The test takes a long time on OS/2.
  9302. lt_cv_sys_max_cmd_len=8192
  9303. ;;
  9304. osf*)
  9305. # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
  9306. # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
  9307. # nice to cause kernel panics so lets avoid the loop below.
  9308. # First set a reasonable default.
  9309. lt_cv_sys_max_cmd_len=16384
  9310. #
  9311. if test -x /sbin/sysconfig; then
  9312. case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
  9313. *1*) lt_cv_sys_max_cmd_len=-1 ;;
  9314. esac
  9315. fi
  9316. ;;
  9317. sco3.2v5*)
  9318. lt_cv_sys_max_cmd_len=102400
  9319. ;;
  9320. sysv5* | sco5v6* | sysv4.2uw2*)
  9321. kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
  9322. if test -n "$kargmax"; then
  9323. lt_cv_sys_max_cmd_len=`echo $kargmax | $SED 's/.*[ ]//'`
  9324. else
  9325. lt_cv_sys_max_cmd_len=32768
  9326. fi
  9327. ;;
  9328. *)
  9329. lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
  9330. if test -n "$lt_cv_sys_max_cmd_len" && \
  9331. test undefined != "$lt_cv_sys_max_cmd_len"; then
  9332. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
  9333. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
  9334. else
  9335. # Make teststring a little bigger before we do anything with it.
  9336. # a 1K string should be a reasonable start.
  9337. for i in 1 2 3 4 5 6 7 8; do
  9338. teststring=$teststring$teststring
  9339. done
  9340. SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
  9341. # If test is not a shell built-in, we'll probably end up computing a
  9342. # maximum length that is only half of the actual maximum length, but
  9343. # we can't tell.
  9344. while { test X`env echo "$teststring$teststring" 2>/dev/null` \
  9345. = "X$teststring$teststring"; } >/dev/null 2>&1 &&
  9346. test 17 != "$i" # 1/2 MB should be enough
  9347. do
  9348. i=`expr $i + 1`
  9349. teststring=$teststring$teststring
  9350. done
  9351. # Only check the string length outside the loop.
  9352. lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
  9353. teststring=
  9354. # Add a significant safety factor because C++ compilers can tack on
  9355. # massive amounts of additional arguments before passing them to the
  9356. # linker. It appears as though 1/2 is a usable value.
  9357. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
  9358. fi
  9359. ;;
  9360. esac
  9361. ;;
  9362. esac
  9363. fi
  9364. if test -n "$lt_cv_sys_max_cmd_len"; then
  9365. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
  9366. printf "%s\n" "$lt_cv_sys_max_cmd_len" >&6; }
  9367. else
  9368. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none" >&5
  9369. printf "%s\n" "none" >&6; }
  9370. fi
  9371. max_cmd_len=$lt_cv_sys_max_cmd_len
  9372. : ${CP="cp -f"}
  9373. : ${MV="mv -f"}
  9374. : ${RM="rm -f"}
  9375. if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
  9376. lt_unset=unset
  9377. else
  9378. lt_unset=false
  9379. fi
  9380. # test EBCDIC or ASCII
  9381. case `echo X|tr X '\101'` in
  9382. A) # ASCII based system
  9383. # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
  9384. lt_SP2NL='tr \040 \012'
  9385. lt_NL2SP='tr \015\012 \040\040'
  9386. ;;
  9387. *) # EBCDIC based system
  9388. lt_SP2NL='tr \100 \n'
  9389. lt_NL2SP='tr \r\n \100\100'
  9390. ;;
  9391. esac
  9392. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
  9393. printf %s "checking how to convert $build file names to $host format... " >&6; }
  9394. if test ${lt_cv_to_host_file_cmd+y}
  9395. then :
  9396. printf %s "(cached) " >&6
  9397. else case e in #(
  9398. e) case $host in
  9399. *-*-mingw* )
  9400. case $build in
  9401. *-*-mingw* | *-*-windows* ) # actually msys
  9402. lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
  9403. ;;
  9404. *-*-cygwin* )
  9405. lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
  9406. ;;
  9407. * ) # otherwise, assume *nix
  9408. lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
  9409. ;;
  9410. esac
  9411. ;;
  9412. *-*-cygwin* )
  9413. case $build in
  9414. *-*-mingw* | *-*-windows* ) # actually msys
  9415. lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
  9416. ;;
  9417. *-*-cygwin* )
  9418. lt_cv_to_host_file_cmd=func_convert_file_noop
  9419. ;;
  9420. * ) # otherwise, assume *nix
  9421. lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
  9422. ;;
  9423. esac
  9424. ;;
  9425. * ) # unhandled hosts (and "normal" native builds)
  9426. lt_cv_to_host_file_cmd=func_convert_file_noop
  9427. ;;
  9428. esac
  9429. ;;
  9430. esac
  9431. fi
  9432. to_host_file_cmd=$lt_cv_to_host_file_cmd
  9433. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
  9434. printf "%s\n" "$lt_cv_to_host_file_cmd" >&6; }
  9435. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
  9436. printf %s "checking how to convert $build file names to toolchain format... " >&6; }
  9437. if test ${lt_cv_to_tool_file_cmd+y}
  9438. then :
  9439. printf %s "(cached) " >&6
  9440. else case e in #(
  9441. e) #assume ordinary cross tools, or native build.
  9442. lt_cv_to_tool_file_cmd=func_convert_file_noop
  9443. case $host in
  9444. *-*-mingw* | *-*-windows* )
  9445. case $build in
  9446. *-*-mingw* | *-*-windows* ) # actually msys
  9447. lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
  9448. ;;
  9449. esac
  9450. ;;
  9451. esac
  9452. ;;
  9453. esac
  9454. fi
  9455. to_tool_file_cmd=$lt_cv_to_tool_file_cmd
  9456. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
  9457. printf "%s\n" "$lt_cv_to_tool_file_cmd" >&6; }
  9458. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
  9459. printf %s "checking for $LD option to reload object files... " >&6; }
  9460. if test ${lt_cv_ld_reload_flag+y}
  9461. then :
  9462. printf %s "(cached) " >&6
  9463. else case e in #(
  9464. e) lt_cv_ld_reload_flag='-r' ;;
  9465. esac
  9466. fi
  9467. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
  9468. printf "%s\n" "$lt_cv_ld_reload_flag" >&6; }
  9469. reload_flag=$lt_cv_ld_reload_flag
  9470. case $reload_flag in
  9471. "" | " "*) ;;
  9472. *) reload_flag=" $reload_flag" ;;
  9473. esac
  9474. reload_cmds='$LD$reload_flag -o $output$reload_objs'
  9475. case $host_os in
  9476. cygwin* | mingw* | windows* | pw32* | cegcc*)
  9477. if test yes != "$GCC"; then
  9478. reload_cmds=false
  9479. fi
  9480. ;;
  9481. darwin*)
  9482. if test yes = "$GCC"; then
  9483. reload_cmds='$LTCC $LTCFLAGS -nostdlib $wl-r -o $output$reload_objs'
  9484. else
  9485. reload_cmds='$LD$reload_flag -o $output$reload_objs'
  9486. fi
  9487. ;;
  9488. esac
  9489. # Extract the first word of "file", so it can be a program name with args.
  9490. set dummy file; ac_word=$2
  9491. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  9492. printf %s "checking for $ac_word... " >&6; }
  9493. if test ${ac_cv_prog_FILECMD+y}
  9494. then :
  9495. printf %s "(cached) " >&6
  9496. else case e in #(
  9497. e) if test -n "$FILECMD"; then
  9498. ac_cv_prog_FILECMD="$FILECMD" # Let the user override the test.
  9499. else
  9500. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  9501. for as_dir in $PATH
  9502. do
  9503. IFS=$as_save_IFS
  9504. case $as_dir in #(((
  9505. '') as_dir=./ ;;
  9506. */) ;;
  9507. *) as_dir=$as_dir/ ;;
  9508. esac
  9509. for ac_exec_ext in '' $ac_executable_extensions; do
  9510. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  9511. ac_cv_prog_FILECMD="file"
  9512. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  9513. break 2
  9514. fi
  9515. done
  9516. done
  9517. IFS=$as_save_IFS
  9518. test -z "$ac_cv_prog_FILECMD" && ac_cv_prog_FILECMD=":"
  9519. fi ;;
  9520. esac
  9521. fi
  9522. FILECMD=$ac_cv_prog_FILECMD
  9523. if test -n "$FILECMD"; then
  9524. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $FILECMD" >&5
  9525. printf "%s\n" "$FILECMD" >&6; }
  9526. else
  9527. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  9528. printf "%s\n" "no" >&6; }
  9529. fi
  9530. if test -n "$ac_tool_prefix"; then
  9531. # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
  9532. set dummy ${ac_tool_prefix}objdump; ac_word=$2
  9533. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  9534. printf %s "checking for $ac_word... " >&6; }
  9535. if test ${ac_cv_prog_OBJDUMP+y}
  9536. then :
  9537. printf %s "(cached) " >&6
  9538. else case e in #(
  9539. e) if test -n "$OBJDUMP"; then
  9540. ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
  9541. else
  9542. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  9543. for as_dir in $PATH
  9544. do
  9545. IFS=$as_save_IFS
  9546. case $as_dir in #(((
  9547. '') as_dir=./ ;;
  9548. */) ;;
  9549. *) as_dir=$as_dir/ ;;
  9550. esac
  9551. for ac_exec_ext in '' $ac_executable_extensions; do
  9552. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  9553. ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
  9554. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  9555. break 2
  9556. fi
  9557. done
  9558. done
  9559. IFS=$as_save_IFS
  9560. fi ;;
  9561. esac
  9562. fi
  9563. OBJDUMP=$ac_cv_prog_OBJDUMP
  9564. if test -n "$OBJDUMP"; then
  9565. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
  9566. printf "%s\n" "$OBJDUMP" >&6; }
  9567. else
  9568. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  9569. printf "%s\n" "no" >&6; }
  9570. fi
  9571. fi
  9572. if test -z "$ac_cv_prog_OBJDUMP"; then
  9573. ac_ct_OBJDUMP=$OBJDUMP
  9574. # Extract the first word of "objdump", so it can be a program name with args.
  9575. set dummy objdump; ac_word=$2
  9576. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  9577. printf %s "checking for $ac_word... " >&6; }
  9578. if test ${ac_cv_prog_ac_ct_OBJDUMP+y}
  9579. then :
  9580. printf %s "(cached) " >&6
  9581. else case e in #(
  9582. e) if test -n "$ac_ct_OBJDUMP"; then
  9583. ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
  9584. else
  9585. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  9586. for as_dir in $PATH
  9587. do
  9588. IFS=$as_save_IFS
  9589. case $as_dir in #(((
  9590. '') as_dir=./ ;;
  9591. */) ;;
  9592. *) as_dir=$as_dir/ ;;
  9593. esac
  9594. for ac_exec_ext in '' $ac_executable_extensions; do
  9595. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  9596. ac_cv_prog_ac_ct_OBJDUMP="objdump"
  9597. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  9598. break 2
  9599. fi
  9600. done
  9601. done
  9602. IFS=$as_save_IFS
  9603. fi ;;
  9604. esac
  9605. fi
  9606. ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
  9607. if test -n "$ac_ct_OBJDUMP"; then
  9608. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
  9609. printf "%s\n" "$ac_ct_OBJDUMP" >&6; }
  9610. else
  9611. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  9612. printf "%s\n" "no" >&6; }
  9613. fi
  9614. if test "x$ac_ct_OBJDUMP" = x; then
  9615. OBJDUMP="false"
  9616. else
  9617. case $cross_compiling:$ac_tool_warned in
  9618. yes:)
  9619. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  9620. printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  9621. ac_tool_warned=yes ;;
  9622. esac
  9623. OBJDUMP=$ac_ct_OBJDUMP
  9624. fi
  9625. else
  9626. OBJDUMP="$ac_cv_prog_OBJDUMP"
  9627. fi
  9628. test -z "$OBJDUMP" && OBJDUMP=objdump
  9629. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
  9630. printf %s "checking how to recognize dependent libraries... " >&6; }
  9631. if test ${lt_cv_deplibs_check_method+y}
  9632. then :
  9633. printf %s "(cached) " >&6
  9634. else case e in #(
  9635. e) lt_cv_file_magic_cmd='$MAGIC_CMD'
  9636. lt_cv_file_magic_test_file=
  9637. lt_cv_deplibs_check_method='unknown'
  9638. # Need to set the preceding variable on all platforms that support
  9639. # interlibrary dependencies.
  9640. # 'none' -- dependencies not supported.
  9641. # 'unknown' -- same as none, but documents that we really don't know.
  9642. # 'pass_all' -- all dependencies passed with no checks.
  9643. # 'file_magic [[regex]]' -- check by looking for files in library path
  9644. # that responds to the $file_magic_cmd with a given extended regex.
  9645. # If you have 'file' or equivalent on your system and you're not sure
  9646. # whether 'pass_all' will *always* work, you probably want this one.
  9647. case $host_os in
  9648. aix[4-9]*)
  9649. lt_cv_deplibs_check_method=pass_all
  9650. ;;
  9651. beos*)
  9652. lt_cv_deplibs_check_method=pass_all
  9653. ;;
  9654. bsdi[45]*)
  9655. lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
  9656. lt_cv_file_magic_cmd='$FILECMD -L'
  9657. lt_cv_file_magic_test_file=/shlib/libc.so
  9658. ;;
  9659. cygwin*)
  9660. # func_win32_libid is a shell function defined in ltmain.sh
  9661. lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
  9662. lt_cv_file_magic_cmd='func_win32_libid'
  9663. ;;
  9664. mingw* | windows* | pw32*)
  9665. # Base MSYS/MinGW do not provide the 'file' command needed by
  9666. # func_win32_libid shell function, so use a weaker test based on 'objdump',
  9667. # unless we find 'file', for example because we are cross-compiling.
  9668. if ( file / ) >/dev/null 2>&1; then
  9669. lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
  9670. lt_cv_file_magic_cmd='func_win32_libid'
  9671. else
  9672. # Keep this pattern in sync with the one in func_win32_libid.
  9673. lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64|pe-aarch64)'
  9674. lt_cv_file_magic_cmd='$OBJDUMP -f'
  9675. fi
  9676. ;;
  9677. cegcc*)
  9678. # use the weaker test based on 'objdump'. See mingw*.
  9679. lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
  9680. lt_cv_file_magic_cmd='$OBJDUMP -f'
  9681. ;;
  9682. darwin* | rhapsody*)
  9683. lt_cv_deplibs_check_method=pass_all
  9684. ;;
  9685. freebsd* | dragonfly* | midnightbsd*)
  9686. if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
  9687. case $host_cpu in
  9688. i*86 )
  9689. # Not sure whether the presence of OpenBSD here was a mistake.
  9690. # Let's accept both of them until this is cleared up.
  9691. lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
  9692. lt_cv_file_magic_cmd=$FILECMD
  9693. lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
  9694. ;;
  9695. esac
  9696. else
  9697. lt_cv_deplibs_check_method=pass_all
  9698. fi
  9699. ;;
  9700. haiku*)
  9701. lt_cv_deplibs_check_method=pass_all
  9702. ;;
  9703. hpux10.20* | hpux11*)
  9704. lt_cv_file_magic_cmd=$FILECMD
  9705. case $host_cpu in
  9706. ia64*)
  9707. lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
  9708. lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
  9709. ;;
  9710. hppa*64*)
  9711. 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]'
  9712. lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
  9713. ;;
  9714. *)
  9715. lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
  9716. lt_cv_file_magic_test_file=/usr/lib/libc.sl
  9717. ;;
  9718. esac
  9719. ;;
  9720. interix[3-9]*)
  9721. # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
  9722. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
  9723. ;;
  9724. irix5* | irix6* | nonstopux*)
  9725. case $LD in
  9726. *-32|*"-32 ") libmagic=32-bit;;
  9727. *-n32|*"-n32 ") libmagic=N32;;
  9728. *-64|*"-64 ") libmagic=64-bit;;
  9729. *) libmagic=never-match;;
  9730. esac
  9731. lt_cv_deplibs_check_method=pass_all
  9732. ;;
  9733. # This must be glibc/ELF.
  9734. linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
  9735. lt_cv_deplibs_check_method=pass_all
  9736. ;;
  9737. *-mlibc)
  9738. lt_cv_deplibs_check_method=pass_all
  9739. ;;
  9740. netbsd* | netbsdelf*-gnu)
  9741. if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
  9742. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
  9743. else
  9744. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
  9745. fi
  9746. ;;
  9747. newos6*)
  9748. lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
  9749. lt_cv_file_magic_cmd=$FILECMD
  9750. lt_cv_file_magic_test_file=/usr/lib/libnls.so
  9751. ;;
  9752. *nto* | *qnx*)
  9753. lt_cv_deplibs_check_method=pass_all
  9754. ;;
  9755. openbsd*)
  9756. if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
  9757. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
  9758. else
  9759. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
  9760. fi
  9761. ;;
  9762. osf3* | osf4* | osf5*)
  9763. lt_cv_deplibs_check_method=pass_all
  9764. ;;
  9765. rdos*)
  9766. lt_cv_deplibs_check_method=pass_all
  9767. ;;
  9768. serenity*)
  9769. lt_cv_deplibs_check_method=pass_all
  9770. ;;
  9771. solaris*)
  9772. lt_cv_deplibs_check_method=pass_all
  9773. ;;
  9774. sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
  9775. lt_cv_deplibs_check_method=pass_all
  9776. ;;
  9777. sysv4 | sysv4.3*)
  9778. case $host_vendor in
  9779. motorola)
  9780. 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]'
  9781. lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
  9782. ;;
  9783. ncr)
  9784. lt_cv_deplibs_check_method=pass_all
  9785. ;;
  9786. sequent)
  9787. lt_cv_file_magic_cmd='/bin/file'
  9788. lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
  9789. ;;
  9790. sni)
  9791. lt_cv_file_magic_cmd='/bin/file'
  9792. lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
  9793. lt_cv_file_magic_test_file=/lib/libc.so
  9794. ;;
  9795. siemens)
  9796. lt_cv_deplibs_check_method=pass_all
  9797. ;;
  9798. pc)
  9799. lt_cv_deplibs_check_method=pass_all
  9800. ;;
  9801. esac
  9802. ;;
  9803. tpf*)
  9804. lt_cv_deplibs_check_method=pass_all
  9805. ;;
  9806. os2*)
  9807. lt_cv_deplibs_check_method=pass_all
  9808. ;;
  9809. esac
  9810. ;;
  9811. esac
  9812. fi
  9813. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
  9814. printf "%s\n" "$lt_cv_deplibs_check_method" >&6; }
  9815. file_magic_glob=
  9816. want_nocaseglob=no
  9817. if test "$build" = "$host"; then
  9818. case $host_os in
  9819. mingw* | windows* | pw32*)
  9820. if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
  9821. want_nocaseglob=yes
  9822. else
  9823. file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
  9824. fi
  9825. ;;
  9826. esac
  9827. fi
  9828. file_magic_cmd=$lt_cv_file_magic_cmd
  9829. deplibs_check_method=$lt_cv_deplibs_check_method
  9830. test -z "$deplibs_check_method" && deplibs_check_method=unknown
  9831. if test -n "$ac_tool_prefix"; then
  9832. # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
  9833. set dummy ${ac_tool_prefix}dlltool; ac_word=$2
  9834. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  9835. printf %s "checking for $ac_word... " >&6; }
  9836. if test ${ac_cv_prog_DLLTOOL+y}
  9837. then :
  9838. printf %s "(cached) " >&6
  9839. else case e in #(
  9840. e) if test -n "$DLLTOOL"; then
  9841. ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
  9842. else
  9843. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  9844. for as_dir in $PATH
  9845. do
  9846. IFS=$as_save_IFS
  9847. case $as_dir in #(((
  9848. '') as_dir=./ ;;
  9849. */) ;;
  9850. *) as_dir=$as_dir/ ;;
  9851. esac
  9852. for ac_exec_ext in '' $ac_executable_extensions; do
  9853. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  9854. ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
  9855. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  9856. break 2
  9857. fi
  9858. done
  9859. done
  9860. IFS=$as_save_IFS
  9861. fi ;;
  9862. esac
  9863. fi
  9864. DLLTOOL=$ac_cv_prog_DLLTOOL
  9865. if test -n "$DLLTOOL"; then
  9866. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
  9867. printf "%s\n" "$DLLTOOL" >&6; }
  9868. else
  9869. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  9870. printf "%s\n" "no" >&6; }
  9871. fi
  9872. fi
  9873. if test -z "$ac_cv_prog_DLLTOOL"; then
  9874. ac_ct_DLLTOOL=$DLLTOOL
  9875. # Extract the first word of "dlltool", so it can be a program name with args.
  9876. set dummy dlltool; ac_word=$2
  9877. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  9878. printf %s "checking for $ac_word... " >&6; }
  9879. if test ${ac_cv_prog_ac_ct_DLLTOOL+y}
  9880. then :
  9881. printf %s "(cached) " >&6
  9882. else case e in #(
  9883. e) if test -n "$ac_ct_DLLTOOL"; then
  9884. ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
  9885. else
  9886. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  9887. for as_dir in $PATH
  9888. do
  9889. IFS=$as_save_IFS
  9890. case $as_dir in #(((
  9891. '') as_dir=./ ;;
  9892. */) ;;
  9893. *) as_dir=$as_dir/ ;;
  9894. esac
  9895. for ac_exec_ext in '' $ac_executable_extensions; do
  9896. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  9897. ac_cv_prog_ac_ct_DLLTOOL="dlltool"
  9898. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  9899. break 2
  9900. fi
  9901. done
  9902. done
  9903. IFS=$as_save_IFS
  9904. fi ;;
  9905. esac
  9906. fi
  9907. ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
  9908. if test -n "$ac_ct_DLLTOOL"; then
  9909. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
  9910. printf "%s\n" "$ac_ct_DLLTOOL" >&6; }
  9911. else
  9912. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  9913. printf "%s\n" "no" >&6; }
  9914. fi
  9915. if test "x$ac_ct_DLLTOOL" = x; then
  9916. DLLTOOL="false"
  9917. else
  9918. case $cross_compiling:$ac_tool_warned in
  9919. yes:)
  9920. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  9921. printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  9922. ac_tool_warned=yes ;;
  9923. esac
  9924. DLLTOOL=$ac_ct_DLLTOOL
  9925. fi
  9926. else
  9927. DLLTOOL="$ac_cv_prog_DLLTOOL"
  9928. fi
  9929. test -z "$DLLTOOL" && DLLTOOL=dlltool
  9930. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
  9931. printf %s "checking how to associate runtime and link libraries... " >&6; }
  9932. if test ${lt_cv_sharedlib_from_linklib_cmd+y}
  9933. then :
  9934. printf %s "(cached) " >&6
  9935. else case e in #(
  9936. e) lt_cv_sharedlib_from_linklib_cmd='unknown'
  9937. case $host_os in
  9938. cygwin* | mingw* | windows* | pw32* | cegcc*)
  9939. # two different shell functions defined in ltmain.sh;
  9940. # decide which one to use based on capabilities of $DLLTOOL
  9941. case `$DLLTOOL --help 2>&1` in
  9942. *--identify-strict*)
  9943. lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
  9944. ;;
  9945. *)
  9946. lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
  9947. ;;
  9948. esac
  9949. ;;
  9950. *)
  9951. # fallback: assume linklib IS sharedlib
  9952. lt_cv_sharedlib_from_linklib_cmd=$ECHO
  9953. ;;
  9954. esac
  9955. ;;
  9956. esac
  9957. fi
  9958. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
  9959. printf "%s\n" "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
  9960. sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
  9961. test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
  9962. if test -n "$ac_tool_prefix"; then
  9963. # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
  9964. set dummy ${ac_tool_prefix}ranlib; ac_word=$2
  9965. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  9966. printf %s "checking for $ac_word... " >&6; }
  9967. if test ${ac_cv_prog_RANLIB+y}
  9968. then :
  9969. printf %s "(cached) " >&6
  9970. else case e in #(
  9971. e) if test -n "$RANLIB"; then
  9972. ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
  9973. else
  9974. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  9975. for as_dir in $PATH
  9976. do
  9977. IFS=$as_save_IFS
  9978. case $as_dir in #(((
  9979. '') as_dir=./ ;;
  9980. */) ;;
  9981. *) as_dir=$as_dir/ ;;
  9982. esac
  9983. for ac_exec_ext in '' $ac_executable_extensions; do
  9984. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  9985. ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
  9986. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  9987. break 2
  9988. fi
  9989. done
  9990. done
  9991. IFS=$as_save_IFS
  9992. fi ;;
  9993. esac
  9994. fi
  9995. RANLIB=$ac_cv_prog_RANLIB
  9996. if test -n "$RANLIB"; then
  9997. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
  9998. printf "%s\n" "$RANLIB" >&6; }
  9999. else
  10000. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  10001. printf "%s\n" "no" >&6; }
  10002. fi
  10003. fi
  10004. if test -z "$ac_cv_prog_RANLIB"; then
  10005. ac_ct_RANLIB=$RANLIB
  10006. # Extract the first word of "ranlib", so it can be a program name with args.
  10007. set dummy ranlib; ac_word=$2
  10008. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  10009. printf %s "checking for $ac_word... " >&6; }
  10010. if test ${ac_cv_prog_ac_ct_RANLIB+y}
  10011. then :
  10012. printf %s "(cached) " >&6
  10013. else case e in #(
  10014. e) if test -n "$ac_ct_RANLIB"; then
  10015. ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
  10016. else
  10017. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  10018. for as_dir in $PATH
  10019. do
  10020. IFS=$as_save_IFS
  10021. case $as_dir in #(((
  10022. '') as_dir=./ ;;
  10023. */) ;;
  10024. *) as_dir=$as_dir/ ;;
  10025. esac
  10026. for ac_exec_ext in '' $ac_executable_extensions; do
  10027. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  10028. ac_cv_prog_ac_ct_RANLIB="ranlib"
  10029. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  10030. break 2
  10031. fi
  10032. done
  10033. done
  10034. IFS=$as_save_IFS
  10035. fi ;;
  10036. esac
  10037. fi
  10038. ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
  10039. if test -n "$ac_ct_RANLIB"; then
  10040. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
  10041. printf "%s\n" "$ac_ct_RANLIB" >&6; }
  10042. else
  10043. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  10044. printf "%s\n" "no" >&6; }
  10045. fi
  10046. if test "x$ac_ct_RANLIB" = x; then
  10047. RANLIB=":"
  10048. else
  10049. case $cross_compiling:$ac_tool_warned in
  10050. yes:)
  10051. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  10052. printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  10053. ac_tool_warned=yes ;;
  10054. esac
  10055. RANLIB=$ac_ct_RANLIB
  10056. fi
  10057. else
  10058. RANLIB="$ac_cv_prog_RANLIB"
  10059. fi
  10060. if test -n "$ac_tool_prefix"; then
  10061. for ac_prog in ar
  10062. do
  10063. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  10064. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  10065. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  10066. printf %s "checking for $ac_word... " >&6; }
  10067. if test ${ac_cv_prog_AR+y}
  10068. then :
  10069. printf %s "(cached) " >&6
  10070. else case e in #(
  10071. e) if test -n "$AR"; then
  10072. ac_cv_prog_AR="$AR" # Let the user override the test.
  10073. else
  10074. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  10075. for as_dir in $PATH
  10076. do
  10077. IFS=$as_save_IFS
  10078. case $as_dir in #(((
  10079. '') as_dir=./ ;;
  10080. */) ;;
  10081. *) as_dir=$as_dir/ ;;
  10082. esac
  10083. for ac_exec_ext in '' $ac_executable_extensions; do
  10084. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  10085. ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
  10086. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  10087. break 2
  10088. fi
  10089. done
  10090. done
  10091. IFS=$as_save_IFS
  10092. fi ;;
  10093. esac
  10094. fi
  10095. AR=$ac_cv_prog_AR
  10096. if test -n "$AR"; then
  10097. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
  10098. printf "%s\n" "$AR" >&6; }
  10099. else
  10100. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  10101. printf "%s\n" "no" >&6; }
  10102. fi
  10103. test -n "$AR" && break
  10104. done
  10105. fi
  10106. if test -z "$AR"; then
  10107. ac_ct_AR=$AR
  10108. for ac_prog in ar
  10109. do
  10110. # Extract the first word of "$ac_prog", so it can be a program name with args.
  10111. set dummy $ac_prog; ac_word=$2
  10112. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  10113. printf %s "checking for $ac_word... " >&6; }
  10114. if test ${ac_cv_prog_ac_ct_AR+y}
  10115. then :
  10116. printf %s "(cached) " >&6
  10117. else case e in #(
  10118. e) if test -n "$ac_ct_AR"; then
  10119. ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
  10120. else
  10121. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  10122. for as_dir in $PATH
  10123. do
  10124. IFS=$as_save_IFS
  10125. case $as_dir in #(((
  10126. '') as_dir=./ ;;
  10127. */) ;;
  10128. *) as_dir=$as_dir/ ;;
  10129. esac
  10130. for ac_exec_ext in '' $ac_executable_extensions; do
  10131. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  10132. ac_cv_prog_ac_ct_AR="$ac_prog"
  10133. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  10134. break 2
  10135. fi
  10136. done
  10137. done
  10138. IFS=$as_save_IFS
  10139. fi ;;
  10140. esac
  10141. fi
  10142. ac_ct_AR=$ac_cv_prog_ac_ct_AR
  10143. if test -n "$ac_ct_AR"; then
  10144. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
  10145. printf "%s\n" "$ac_ct_AR" >&6; }
  10146. else
  10147. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  10148. printf "%s\n" "no" >&6; }
  10149. fi
  10150. test -n "$ac_ct_AR" && break
  10151. done
  10152. if test "x$ac_ct_AR" = x; then
  10153. AR="false"
  10154. else
  10155. case $cross_compiling:$ac_tool_warned in
  10156. yes:)
  10157. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  10158. printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  10159. ac_tool_warned=yes ;;
  10160. esac
  10161. AR=$ac_ct_AR
  10162. fi
  10163. fi
  10164. : ${AR=ar}
  10165. # Use ARFLAGS variable as AR's operation code to sync the variable naming with
  10166. # Automake. If both AR_FLAGS and ARFLAGS are specified, AR_FLAGS should have
  10167. # higher priority because that's what people were doing historically (setting
  10168. # ARFLAGS for automake and AR_FLAGS for libtool). FIXME: Make the AR_FLAGS
  10169. # variable obsoleted/removed.
  10170. test ${AR_FLAGS+y} || AR_FLAGS=${ARFLAGS-cr}
  10171. lt_ar_flags=$AR_FLAGS
  10172. # Make AR_FLAGS overridable by 'make ARFLAGS='. Don't try to run-time override
  10173. # by AR_FLAGS because that was never working and AR_FLAGS is about to die.
  10174. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
  10175. printf %s "checking for archiver @FILE support... " >&6; }
  10176. if test ${lt_cv_ar_at_file+y}
  10177. then :
  10178. printf %s "(cached) " >&6
  10179. else case e in #(
  10180. e) lt_cv_ar_at_file=no
  10181. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10182. /* end confdefs.h. */
  10183. int
  10184. main (void)
  10185. {
  10186. ;
  10187. return 0;
  10188. }
  10189. _ACEOF
  10190. if ac_fn_c_try_compile "$LINENO"
  10191. then :
  10192. echo conftest.$ac_objext > conftest.lst
  10193. lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
  10194. { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
  10195. (eval $lt_ar_try) 2>&5
  10196. ac_status=$?
  10197. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  10198. test $ac_status = 0; }
  10199. if test 0 -eq "$ac_status"; then
  10200. # Ensure the archiver fails upon bogus file names.
  10201. rm -f conftest.$ac_objext libconftest.a
  10202. { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
  10203. (eval $lt_ar_try) 2>&5
  10204. ac_status=$?
  10205. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  10206. test $ac_status = 0; }
  10207. if test 0 -ne "$ac_status"; then
  10208. lt_cv_ar_at_file=@
  10209. fi
  10210. fi
  10211. rm -f conftest.* libconftest.a
  10212. fi
  10213. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  10214. ;;
  10215. esac
  10216. fi
  10217. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
  10218. printf "%s\n" "$lt_cv_ar_at_file" >&6; }
  10219. if test no = "$lt_cv_ar_at_file"; then
  10220. archiver_list_spec=
  10221. else
  10222. archiver_list_spec=$lt_cv_ar_at_file
  10223. fi
  10224. if test -n "$ac_tool_prefix"; then
  10225. # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
  10226. set dummy ${ac_tool_prefix}strip; ac_word=$2
  10227. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  10228. printf %s "checking for $ac_word... " >&6; }
  10229. if test ${ac_cv_prog_STRIP+y}
  10230. then :
  10231. printf %s "(cached) " >&6
  10232. else case e in #(
  10233. e) if test -n "$STRIP"; then
  10234. ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
  10235. else
  10236. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  10237. for as_dir in $PATH
  10238. do
  10239. IFS=$as_save_IFS
  10240. case $as_dir in #(((
  10241. '') as_dir=./ ;;
  10242. */) ;;
  10243. *) as_dir=$as_dir/ ;;
  10244. esac
  10245. for ac_exec_ext in '' $ac_executable_extensions; do
  10246. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  10247. ac_cv_prog_STRIP="${ac_tool_prefix}strip"
  10248. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  10249. break 2
  10250. fi
  10251. done
  10252. done
  10253. IFS=$as_save_IFS
  10254. fi ;;
  10255. esac
  10256. fi
  10257. STRIP=$ac_cv_prog_STRIP
  10258. if test -n "$STRIP"; then
  10259. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
  10260. printf "%s\n" "$STRIP" >&6; }
  10261. else
  10262. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  10263. printf "%s\n" "no" >&6; }
  10264. fi
  10265. fi
  10266. if test -z "$ac_cv_prog_STRIP"; then
  10267. ac_ct_STRIP=$STRIP
  10268. # Extract the first word of "strip", so it can be a program name with args.
  10269. set dummy strip; ac_word=$2
  10270. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  10271. printf %s "checking for $ac_word... " >&6; }
  10272. if test ${ac_cv_prog_ac_ct_STRIP+y}
  10273. then :
  10274. printf %s "(cached) " >&6
  10275. else case e in #(
  10276. e) if test -n "$ac_ct_STRIP"; then
  10277. ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
  10278. else
  10279. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  10280. for as_dir in $PATH
  10281. do
  10282. IFS=$as_save_IFS
  10283. case $as_dir in #(((
  10284. '') as_dir=./ ;;
  10285. */) ;;
  10286. *) as_dir=$as_dir/ ;;
  10287. esac
  10288. for ac_exec_ext in '' $ac_executable_extensions; do
  10289. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  10290. ac_cv_prog_ac_ct_STRIP="strip"
  10291. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  10292. break 2
  10293. fi
  10294. done
  10295. done
  10296. IFS=$as_save_IFS
  10297. fi ;;
  10298. esac
  10299. fi
  10300. ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
  10301. if test -n "$ac_ct_STRIP"; then
  10302. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
  10303. printf "%s\n" "$ac_ct_STRIP" >&6; }
  10304. else
  10305. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  10306. printf "%s\n" "no" >&6; }
  10307. fi
  10308. if test "x$ac_ct_STRIP" = x; then
  10309. STRIP=":"
  10310. else
  10311. case $cross_compiling:$ac_tool_warned in
  10312. yes:)
  10313. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  10314. printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  10315. ac_tool_warned=yes ;;
  10316. esac
  10317. STRIP=$ac_ct_STRIP
  10318. fi
  10319. else
  10320. STRIP="$ac_cv_prog_STRIP"
  10321. fi
  10322. test -z "$STRIP" && STRIP=:
  10323. test -z "$RANLIB" && RANLIB=:
  10324. # Determine commands to create old-style static archives.
  10325. old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
  10326. old_postinstall_cmds='chmod 644 $oldlib'
  10327. old_postuninstall_cmds=
  10328. if test -n "$RANLIB"; then
  10329. old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
  10330. old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
  10331. fi
  10332. case $host_os in
  10333. darwin*)
  10334. lock_old_archive_extraction=yes ;;
  10335. *)
  10336. lock_old_archive_extraction=no ;;
  10337. esac
  10338. for ac_prog in gawk mawk nawk awk
  10339. do
  10340. # Extract the first word of "$ac_prog", so it can be a program name with args.
  10341. set dummy $ac_prog; ac_word=$2
  10342. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  10343. printf %s "checking for $ac_word... " >&6; }
  10344. if test ${ac_cv_prog_AWK+y}
  10345. then :
  10346. printf %s "(cached) " >&6
  10347. else case e in #(
  10348. e) if test -n "$AWK"; then
  10349. ac_cv_prog_AWK="$AWK" # Let the user override the test.
  10350. else
  10351. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  10352. for as_dir in $PATH
  10353. do
  10354. IFS=$as_save_IFS
  10355. case $as_dir in #(((
  10356. '') as_dir=./ ;;
  10357. */) ;;
  10358. *) as_dir=$as_dir/ ;;
  10359. esac
  10360. for ac_exec_ext in '' $ac_executable_extensions; do
  10361. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  10362. ac_cv_prog_AWK="$ac_prog"
  10363. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  10364. break 2
  10365. fi
  10366. done
  10367. done
  10368. IFS=$as_save_IFS
  10369. fi ;;
  10370. esac
  10371. fi
  10372. AWK=$ac_cv_prog_AWK
  10373. if test -n "$AWK"; then
  10374. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
  10375. printf "%s\n" "$AWK" >&6; }
  10376. else
  10377. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  10378. printf "%s\n" "no" >&6; }
  10379. fi
  10380. test -n "$AWK" && break
  10381. done
  10382. # If no C compiler was specified, use CC.
  10383. LTCC=${LTCC-"$CC"}
  10384. # If no C compiler flags were specified, use CFLAGS.
  10385. LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
  10386. # Allow CC to be a program name with arguments.
  10387. compiler=$CC
  10388. # Check for command to grab the raw symbol name followed by C symbol from nm.
  10389. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
  10390. printf %s "checking command to parse $NM output from $compiler object... " >&6; }
  10391. if test ${lt_cv_sys_global_symbol_pipe+y}
  10392. then :
  10393. printf %s "(cached) " >&6
  10394. else case e in #(
  10395. e)
  10396. # These are sane defaults that work on at least a few old systems.
  10397. # [They come from Ultrix. What could be older than Ultrix?!! ;)]
  10398. # Character class describing NM global symbol codes.
  10399. symcode='[BCDEGRST]'
  10400. # Regexp to match symbols that can be accessed directly from C.
  10401. sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
  10402. # Define system-specific variables.
  10403. case $host_os in
  10404. aix*)
  10405. symcode='[BCDT]'
  10406. ;;
  10407. cygwin* | mingw* | windows* | pw32* | cegcc*)
  10408. symcode='[ABCDGISTW]'
  10409. ;;
  10410. hpux*)
  10411. if test ia64 = "$host_cpu"; then
  10412. symcode='[ABCDEGRST]'
  10413. fi
  10414. ;;
  10415. irix* | nonstopux*)
  10416. symcode='[BCDEGRST]'
  10417. ;;
  10418. osf*)
  10419. symcode='[BCDEGQRST]'
  10420. ;;
  10421. solaris*)
  10422. symcode='[BCDRT]'
  10423. ;;
  10424. sco3.2v5*)
  10425. symcode='[DT]'
  10426. ;;
  10427. sysv4.2uw2*)
  10428. symcode='[DT]'
  10429. ;;
  10430. sysv5* | sco5v6* | unixware* | OpenUNIX*)
  10431. symcode='[ABDT]'
  10432. ;;
  10433. sysv4)
  10434. symcode='[DFNSTU]'
  10435. ;;
  10436. esac
  10437. # If we're using GNU nm, then use its standard symbol codes.
  10438. case `$NM -V 2>&1` in
  10439. *GNU* | *'with BFD'*)
  10440. symcode='[ABCDGIRSTW]' ;;
  10441. esac
  10442. if test "$lt_cv_nm_interface" = "MS dumpbin"; then
  10443. # Gets list of data symbols to import.
  10444. lt_cv_sys_global_symbol_to_import="$SED -n -e 's/^I .* \(.*\)$/\1/p'"
  10445. # Adjust the below global symbol transforms to fixup imported variables.
  10446. lt_cdecl_hook=" -e 's/^I .* \(.*\)$/extern __declspec(dllimport) char \1;/p'"
  10447. lt_c_name_hook=" -e 's/^I .* \(.*\)$/ {\"\1\", (void *) 0},/p'"
  10448. lt_c_name_lib_hook="\
  10449. -e 's/^I .* \(lib.*\)$/ {\"\1\", (void *) 0},/p'\
  10450. -e 's/^I .* \(.*\)$/ {\"lib\1\", (void *) 0},/p'"
  10451. else
  10452. # Disable hooks by default.
  10453. lt_cv_sys_global_symbol_to_import=
  10454. lt_cdecl_hook=
  10455. lt_c_name_hook=
  10456. lt_c_name_lib_hook=
  10457. fi
  10458. # Transform an extracted symbol line into a proper C declaration.
  10459. # Some systems (esp. on ia64) link data and code symbols differently,
  10460. # so use this general approach.
  10461. lt_cv_sys_global_symbol_to_cdecl="$SED -n"\
  10462. $lt_cdecl_hook\
  10463. " -e 's/^T .* \(.*\)$/extern int \1();/p'"\
  10464. " -e 's/^$symcode$symcode* .* \(.*\)$/extern char \1;/p'"
  10465. # Transform an extracted symbol line into symbol name and symbol address
  10466. lt_cv_sys_global_symbol_to_c_name_address="$SED -n"\
  10467. $lt_c_name_hook\
  10468. " -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\
  10469. " -e 's/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/p'"
  10470. # Transform an extracted symbol line into symbol name with lib prefix and
  10471. # symbol address.
  10472. lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="$SED -n"\
  10473. $lt_c_name_lib_hook\
  10474. " -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\
  10475. " -e 's/^$symcode$symcode* .* \(lib.*\)$/ {\"\1\", (void *) \&\1},/p'"\
  10476. " -e 's/^$symcode$symcode* .* \(.*\)$/ {\"lib\1\", (void *) \&\1},/p'"
  10477. # Handle CRLF in mingw tool chain
  10478. opt_cr=
  10479. case $build_os in
  10480. mingw* | windows*)
  10481. opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
  10482. ;;
  10483. esac
  10484. # Try without a prefix underscore, then with it.
  10485. for ac_symprfx in "" "_"; do
  10486. # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
  10487. symxfrm="\\1 $ac_symprfx\\2 \\2"
  10488. # Write the raw and C identifiers.
  10489. if test "$lt_cv_nm_interface" = "MS dumpbin"; then
  10490. # Fake it for dumpbin and say T for any non-static function,
  10491. # D for any global variable and I for any imported variable.
  10492. # Also find C++ and __fastcall symbols from MSVC++ or ICC,
  10493. # which start with @ or ?.
  10494. lt_cv_sys_global_symbol_pipe="$AWK '"\
  10495. " {last_section=section; section=\$ 3};"\
  10496. " /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
  10497. " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
  10498. " /^ *Symbol name *: /{split(\$ 0,sn,\":\"); si=substr(sn[2],2)};"\
  10499. " /^ *Type *: code/{print \"T\",si,substr(si,length(prfx))};"\
  10500. " /^ *Type *: data/{print \"I\",si,substr(si,length(prfx))};"\
  10501. " \$ 0!~/External *\|/{next};"\
  10502. " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
  10503. " {if(hide[section]) next};"\
  10504. " {f=\"D\"}; \$ 0~/\(\).*\|/{f=\"T\"};"\
  10505. " {split(\$ 0,a,/\||\r/); split(a[2],s)};"\
  10506. " s[1]~/^[@?]/{print f,s[1],s[1]; next};"\
  10507. " s[1]~prfx {split(s[1],t,\"@\"); print f,t[1],substr(t[1],length(prfx))}"\
  10508. " ' prfx=^$ac_symprfx"
  10509. else
  10510. lt_cv_sys_global_symbol_pipe="$SED -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
  10511. fi
  10512. lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | $SED '/ __gnu_lto/d'"
  10513. # Check to see that the pipe works correctly.
  10514. pipe_works=no
  10515. rm -f conftest*
  10516. cat > conftest.$ac_ext <<_LT_EOF
  10517. #ifdef __cplusplus
  10518. extern "C" {
  10519. #endif
  10520. char nm_test_var;
  10521. void nm_test_func(void);
  10522. void nm_test_func(void){}
  10523. #ifdef __cplusplus
  10524. }
  10525. #endif
  10526. int main(void){nm_test_var='a';nm_test_func();return(0);}
  10527. _LT_EOF
  10528. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  10529. (eval $ac_compile) 2>&5
  10530. ac_status=$?
  10531. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  10532. test $ac_status = 0; }; then
  10533. # Now try to grab the symbols.
  10534. nlist=conftest.nm
  10535. $ECHO "$as_me:$LINENO: $NM conftest.$ac_objext | $lt_cv_sys_global_symbol_pipe > $nlist" >&5
  10536. if eval "$NM" conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist 2>&5 && test -s "$nlist"; then
  10537. # Try sorting and uniquifying the output.
  10538. if sort "$nlist" | uniq > "$nlist"T; then
  10539. mv -f "$nlist"T "$nlist"
  10540. else
  10541. rm -f "$nlist"T
  10542. fi
  10543. # Make sure that we snagged all the symbols we need.
  10544. if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
  10545. if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
  10546. cat <<_LT_EOF > conftest.$ac_ext
  10547. /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */
  10548. #if defined _WIN32 || defined __CYGWIN__ || defined _WIN32_WCE
  10549. /* DATA imports from DLLs on WIN32 can't be const, because runtime
  10550. relocations are performed -- see ld's documentation on pseudo-relocs. */
  10551. # define LT_DLSYM_CONST
  10552. #elif defined __osf__
  10553. /* This system does not cope well with relocations in const data. */
  10554. # define LT_DLSYM_CONST
  10555. #else
  10556. # define LT_DLSYM_CONST const
  10557. #endif
  10558. #ifdef __cplusplus
  10559. extern "C" {
  10560. #endif
  10561. _LT_EOF
  10562. # Now generate the symbol file.
  10563. eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
  10564. cat <<_LT_EOF >> conftest.$ac_ext
  10565. /* The mapping between symbol names and symbols. */
  10566. LT_DLSYM_CONST struct {
  10567. const char *name;
  10568. void *address;
  10569. }
  10570. lt__PROGRAM__LTX_preloaded_symbols[] =
  10571. {
  10572. { "@PROGRAM@", (void *) 0 },
  10573. _LT_EOF
  10574. $SED "s/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
  10575. cat <<\_LT_EOF >> conftest.$ac_ext
  10576. {0, (void *) 0}
  10577. };
  10578. /* This works around a problem in FreeBSD linker */
  10579. #ifdef FREEBSD_WORKAROUND
  10580. static const void *lt_preloaded_setup() {
  10581. return lt__PROGRAM__LTX_preloaded_symbols;
  10582. }
  10583. #endif
  10584. #ifdef __cplusplus
  10585. }
  10586. #endif
  10587. _LT_EOF
  10588. # Now try linking the two files.
  10589. mv conftest.$ac_objext conftstm.$ac_objext
  10590. lt_globsym_save_LIBS=$LIBS
  10591. lt_globsym_save_CFLAGS=$CFLAGS
  10592. LIBS=conftstm.$ac_objext
  10593. CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
  10594. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
  10595. (eval $ac_link) 2>&5
  10596. ac_status=$?
  10597. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  10598. test $ac_status = 0; } && test -s conftest$ac_exeext; then
  10599. pipe_works=yes
  10600. fi
  10601. LIBS=$lt_globsym_save_LIBS
  10602. CFLAGS=$lt_globsym_save_CFLAGS
  10603. else
  10604. echo "cannot find nm_test_func in $nlist" >&5
  10605. fi
  10606. else
  10607. echo "cannot find nm_test_var in $nlist" >&5
  10608. fi
  10609. else
  10610. echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
  10611. fi
  10612. else
  10613. echo "$progname: failed program was:" >&5
  10614. cat conftest.$ac_ext >&5
  10615. fi
  10616. rm -rf conftest* conftst*
  10617. # Do not use the global_symbol_pipe unless it works.
  10618. if test yes = "$pipe_works"; then
  10619. break
  10620. else
  10621. lt_cv_sys_global_symbol_pipe=
  10622. fi
  10623. done
  10624. ;;
  10625. esac
  10626. fi
  10627. if test -z "$lt_cv_sys_global_symbol_pipe"; then
  10628. lt_cv_sys_global_symbol_to_cdecl=
  10629. fi
  10630. if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
  10631. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: failed" >&5
  10632. printf "%s\n" "failed" >&6; }
  10633. else
  10634. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ok" >&5
  10635. printf "%s\n" "ok" >&6; }
  10636. fi
  10637. # Response file support.
  10638. if test "$lt_cv_nm_interface" = "MS dumpbin"; then
  10639. nm_file_list_spec='@'
  10640. elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
  10641. nm_file_list_spec='@'
  10642. fi
  10643. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
  10644. printf %s "checking for sysroot... " >&6; }
  10645. # Check whether --with-sysroot was given.
  10646. if test ${with_sysroot+y}
  10647. then :
  10648. withval=$with_sysroot;
  10649. else case e in #(
  10650. e) with_sysroot=no ;;
  10651. esac
  10652. fi
  10653. lt_sysroot=
  10654. case $with_sysroot in #(
  10655. yes)
  10656. if test yes = "$GCC"; then
  10657. # Trim trailing / since we'll always append absolute paths and we want
  10658. # to avoid //, if only for less confusing output for the user.
  10659. lt_sysroot=`$CC --print-sysroot 2>/dev/null | $SED 's:/\+$::'`
  10660. fi
  10661. ;; #(
  10662. /*)
  10663. lt_sysroot=`echo "$with_sysroot" | $SED -e "$sed_quote_subst"`
  10664. ;; #(
  10665. no|'')
  10666. ;; #(
  10667. *)
  10668. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $with_sysroot" >&5
  10669. printf "%s\n" "$with_sysroot" >&6; }
  10670. as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
  10671. ;;
  10672. esac
  10673. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
  10674. printf "%s\n" "${lt_sysroot:-no}" >&6; }
  10675. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a working dd" >&5
  10676. printf %s "checking for a working dd... " >&6; }
  10677. if test ${ac_cv_path_lt_DD+y}
  10678. then :
  10679. printf %s "(cached) " >&6
  10680. else case e in #(
  10681. e) printf 0123456789abcdef0123456789abcdef >conftest.i
  10682. cat conftest.i conftest.i >conftest2.i
  10683. : ${lt_DD:=$DD}
  10684. if test -z "$lt_DD"; then
  10685. ac_path_lt_DD_found=false
  10686. # Loop through the user's path and test for each of PROGNAME-LIST
  10687. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  10688. for as_dir in $PATH
  10689. do
  10690. IFS=$as_save_IFS
  10691. case $as_dir in #(((
  10692. '') as_dir=./ ;;
  10693. */) ;;
  10694. *) as_dir=$as_dir/ ;;
  10695. esac
  10696. for ac_prog in dd
  10697. do
  10698. for ac_exec_ext in '' $ac_executable_extensions; do
  10699. ac_path_lt_DD="$as_dir$ac_prog$ac_exec_ext"
  10700. as_fn_executable_p "$ac_path_lt_DD" || continue
  10701. if "$ac_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
  10702. cmp -s conftest.i conftest.out \
  10703. && ac_cv_path_lt_DD="$ac_path_lt_DD" ac_path_lt_DD_found=:
  10704. fi
  10705. $ac_path_lt_DD_found && break 3
  10706. done
  10707. done
  10708. done
  10709. IFS=$as_save_IFS
  10710. if test -z "$ac_cv_path_lt_DD"; then
  10711. :
  10712. fi
  10713. else
  10714. ac_cv_path_lt_DD=$lt_DD
  10715. fi
  10716. rm -f conftest.i conftest2.i conftest.out ;;
  10717. esac
  10718. fi
  10719. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_lt_DD" >&5
  10720. printf "%s\n" "$ac_cv_path_lt_DD" >&6; }
  10721. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to truncate binary pipes" >&5
  10722. printf %s "checking how to truncate binary pipes... " >&6; }
  10723. if test ${lt_cv_truncate_bin+y}
  10724. then :
  10725. printf %s "(cached) " >&6
  10726. else case e in #(
  10727. e) printf 0123456789abcdef0123456789abcdef >conftest.i
  10728. cat conftest.i conftest.i >conftest2.i
  10729. lt_cv_truncate_bin=
  10730. if "$ac_cv_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
  10731. cmp -s conftest.i conftest.out \
  10732. && lt_cv_truncate_bin="$ac_cv_path_lt_DD bs=4096 count=1"
  10733. fi
  10734. rm -f conftest.i conftest2.i conftest.out
  10735. test -z "$lt_cv_truncate_bin" && lt_cv_truncate_bin="$SED -e 4q" ;;
  10736. esac
  10737. fi
  10738. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_truncate_bin" >&5
  10739. printf "%s\n" "$lt_cv_truncate_bin" >&6; }
  10740. # Calculate cc_basename. Skip known compiler wrappers and cross-prefix.
  10741. func_cc_basename ()
  10742. {
  10743. for cc_temp in $*""; do
  10744. case $cc_temp in
  10745. compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
  10746. distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
  10747. \-*) ;;
  10748. *) break;;
  10749. esac
  10750. done
  10751. func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
  10752. }
  10753. # Check whether --enable-libtool-lock was given.
  10754. if test ${enable_libtool_lock+y}
  10755. then :
  10756. enableval=$enable_libtool_lock;
  10757. fi
  10758. test no = "$enable_libtool_lock" || enable_libtool_lock=yes
  10759. # Some flags need to be propagated to the compiler or linker for good
  10760. # libtool support.
  10761. case $host in
  10762. ia64-*-hpux*)
  10763. # Find out what ABI is being produced by ac_compile, and set mode
  10764. # options accordingly.
  10765. echo 'int i;' > conftest.$ac_ext
  10766. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  10767. (eval $ac_compile) 2>&5
  10768. ac_status=$?
  10769. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  10770. test $ac_status = 0; }; then
  10771. case `$FILECMD conftest.$ac_objext` in
  10772. *ELF-32*)
  10773. HPUX_IA64_MODE=32
  10774. ;;
  10775. *ELF-64*)
  10776. HPUX_IA64_MODE=64
  10777. ;;
  10778. esac
  10779. fi
  10780. rm -rf conftest*
  10781. ;;
  10782. *-*-irix6*)
  10783. # Find out what ABI is being produced by ac_compile, and set linker
  10784. # options accordingly.
  10785. echo '#line '$LINENO' "configure"' > conftest.$ac_ext
  10786. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  10787. (eval $ac_compile) 2>&5
  10788. ac_status=$?
  10789. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  10790. test $ac_status = 0; }; then
  10791. if test yes = "$lt_cv_prog_gnu_ld"; then
  10792. case `$FILECMD conftest.$ac_objext` in
  10793. *32-bit*)
  10794. LD="${LD-ld} -melf32bsmip"
  10795. ;;
  10796. *N32*)
  10797. LD="${LD-ld} -melf32bmipn32"
  10798. ;;
  10799. *64-bit*)
  10800. LD="${LD-ld} -melf64bmip"
  10801. ;;
  10802. esac
  10803. else
  10804. case `$FILECMD conftest.$ac_objext` in
  10805. *32-bit*)
  10806. LD="${LD-ld} -32"
  10807. ;;
  10808. *N32*)
  10809. LD="${LD-ld} -n32"
  10810. ;;
  10811. *64-bit*)
  10812. LD="${LD-ld} -64"
  10813. ;;
  10814. esac
  10815. fi
  10816. fi
  10817. rm -rf conftest*
  10818. ;;
  10819. mips64*-*linux*)
  10820. # Find out what ABI is being produced by ac_compile, and set linker
  10821. # options accordingly.
  10822. echo '#line '$LINENO' "configure"' > conftest.$ac_ext
  10823. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  10824. (eval $ac_compile) 2>&5
  10825. ac_status=$?
  10826. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  10827. test $ac_status = 0; }; then
  10828. emul=elf
  10829. case `$FILECMD conftest.$ac_objext` in
  10830. *32-bit*)
  10831. emul="${emul}32"
  10832. ;;
  10833. *64-bit*)
  10834. emul="${emul}64"
  10835. ;;
  10836. esac
  10837. case `$FILECMD conftest.$ac_objext` in
  10838. *MSB*)
  10839. emul="${emul}btsmip"
  10840. ;;
  10841. *LSB*)
  10842. emul="${emul}ltsmip"
  10843. ;;
  10844. esac
  10845. case `$FILECMD conftest.$ac_objext` in
  10846. *N32*)
  10847. emul="${emul}n32"
  10848. ;;
  10849. esac
  10850. LD="${LD-ld} -m $emul"
  10851. fi
  10852. rm -rf conftest*
  10853. ;;
  10854. x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
  10855. s390*-*linux*|s390*-*tpf*|sparc*-*linux*|x86_64-gnu*)
  10856. # Find out what ABI is being produced by ac_compile, and set linker
  10857. # options accordingly. Note that the listed cases only cover the
  10858. # situations where additional linker options are needed (such as when
  10859. # doing 32-bit compilation for a host where ld defaults to 64-bit, or
  10860. # vice versa); the common cases where no linker options are needed do
  10861. # not appear in the list.
  10862. echo 'int i;' > conftest.$ac_ext
  10863. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  10864. (eval $ac_compile) 2>&5
  10865. ac_status=$?
  10866. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  10867. test $ac_status = 0; }; then
  10868. case `$FILECMD conftest.o` in
  10869. *32-bit*)
  10870. case $host in
  10871. x86_64-*kfreebsd*-gnu)
  10872. LD="${LD-ld} -m elf_i386_fbsd"
  10873. ;;
  10874. x86_64-*linux*|x86_64-gnu*)
  10875. case `$FILECMD conftest.o` in
  10876. *x86-64*)
  10877. LD="${LD-ld} -m elf32_x86_64"
  10878. ;;
  10879. *)
  10880. LD="${LD-ld} -m elf_i386"
  10881. ;;
  10882. esac
  10883. ;;
  10884. powerpc64le-*linux*)
  10885. LD="${LD-ld} -m elf32lppclinux"
  10886. ;;
  10887. powerpc64-*linux*)
  10888. LD="${LD-ld} -m elf32ppclinux"
  10889. ;;
  10890. s390x-*linux*)
  10891. LD="${LD-ld} -m elf_s390"
  10892. ;;
  10893. sparc64-*linux*)
  10894. LD="${LD-ld} -m elf32_sparc"
  10895. ;;
  10896. esac
  10897. ;;
  10898. *64-bit*)
  10899. case $host in
  10900. x86_64-*kfreebsd*-gnu)
  10901. LD="${LD-ld} -m elf_x86_64_fbsd"
  10902. ;;
  10903. x86_64-*linux*|x86_64-gnu*)
  10904. LD="${LD-ld} -m elf_x86_64"
  10905. ;;
  10906. powerpcle-*linux*)
  10907. LD="${LD-ld} -m elf64lppc"
  10908. ;;
  10909. powerpc-*linux*)
  10910. LD="${LD-ld} -m elf64ppc"
  10911. ;;
  10912. s390*-*linux*|s390*-*tpf*)
  10913. LD="${LD-ld} -m elf64_s390"
  10914. ;;
  10915. sparc*-*linux*)
  10916. LD="${LD-ld} -m elf64_sparc"
  10917. ;;
  10918. esac
  10919. ;;
  10920. esac
  10921. fi
  10922. rm -rf conftest*
  10923. ;;
  10924. *-*-sco3.2v5*)
  10925. # On SCO OpenServer 5, we need -belf to get full-featured binaries.
  10926. SAVE_CFLAGS=$CFLAGS
  10927. CFLAGS="$CFLAGS -belf"
  10928. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
  10929. printf %s "checking whether the C compiler needs -belf... " >&6; }
  10930. if test ${lt_cv_cc_needs_belf+y}
  10931. then :
  10932. printf %s "(cached) " >&6
  10933. else case e in #(
  10934. e) ac_ext=c
  10935. ac_cpp='$CPP $CPPFLAGS'
  10936. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  10937. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  10938. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  10939. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10940. /* end confdefs.h. */
  10941. int
  10942. main (void)
  10943. {
  10944. ;
  10945. return 0;
  10946. }
  10947. _ACEOF
  10948. if ac_fn_c_try_link "$LINENO"
  10949. then :
  10950. lt_cv_cc_needs_belf=yes
  10951. else case e in #(
  10952. e) lt_cv_cc_needs_belf=no ;;
  10953. esac
  10954. fi
  10955. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  10956. conftest$ac_exeext conftest.$ac_ext
  10957. ac_ext=c
  10958. ac_cpp='$CPP $CPPFLAGS'
  10959. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  10960. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  10961. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  10962. ;;
  10963. esac
  10964. fi
  10965. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
  10966. printf "%s\n" "$lt_cv_cc_needs_belf" >&6; }
  10967. if test yes != "$lt_cv_cc_needs_belf"; then
  10968. # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
  10969. CFLAGS=$SAVE_CFLAGS
  10970. fi
  10971. ;;
  10972. *-*solaris*)
  10973. # Find out what ABI is being produced by ac_compile, and set linker
  10974. # options accordingly.
  10975. echo 'int i;' > conftest.$ac_ext
  10976. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  10977. (eval $ac_compile) 2>&5
  10978. ac_status=$?
  10979. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  10980. test $ac_status = 0; }; then
  10981. case `$FILECMD conftest.o` in
  10982. *64-bit*)
  10983. case $lt_cv_prog_gnu_ld in
  10984. yes*)
  10985. case $host in
  10986. i?86-*-solaris*|x86_64-*-solaris*)
  10987. LD="${LD-ld} -m elf_x86_64"
  10988. ;;
  10989. sparc*-*-solaris*)
  10990. LD="${LD-ld} -m elf64_sparc"
  10991. ;;
  10992. esac
  10993. # GNU ld 2.21 introduced _sol2 emulations. Use them if available.
  10994. if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
  10995. LD=${LD-ld}_sol2
  10996. fi
  10997. ;;
  10998. *)
  10999. if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
  11000. LD="${LD-ld} -64"
  11001. fi
  11002. ;;
  11003. esac
  11004. ;;
  11005. esac
  11006. fi
  11007. rm -rf conftest*
  11008. ;;
  11009. esac
  11010. need_locks=$enable_libtool_lock
  11011. if test -n "$ac_tool_prefix"; then
  11012. # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
  11013. set dummy ${ac_tool_prefix}mt; ac_word=$2
  11014. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  11015. printf %s "checking for $ac_word... " >&6; }
  11016. if test ${ac_cv_prog_MANIFEST_TOOL+y}
  11017. then :
  11018. printf %s "(cached) " >&6
  11019. else case e in #(
  11020. e) if test -n "$MANIFEST_TOOL"; then
  11021. ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
  11022. else
  11023. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  11024. for as_dir in $PATH
  11025. do
  11026. IFS=$as_save_IFS
  11027. case $as_dir in #(((
  11028. '') as_dir=./ ;;
  11029. */) ;;
  11030. *) as_dir=$as_dir/ ;;
  11031. esac
  11032. for ac_exec_ext in '' $ac_executable_extensions; do
  11033. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  11034. ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
  11035. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  11036. break 2
  11037. fi
  11038. done
  11039. done
  11040. IFS=$as_save_IFS
  11041. fi ;;
  11042. esac
  11043. fi
  11044. MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
  11045. if test -n "$MANIFEST_TOOL"; then
  11046. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
  11047. printf "%s\n" "$MANIFEST_TOOL" >&6; }
  11048. else
  11049. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  11050. printf "%s\n" "no" >&6; }
  11051. fi
  11052. fi
  11053. if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
  11054. ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
  11055. # Extract the first word of "mt", so it can be a program name with args.
  11056. set dummy mt; ac_word=$2
  11057. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  11058. printf %s "checking for $ac_word... " >&6; }
  11059. if test ${ac_cv_prog_ac_ct_MANIFEST_TOOL+y}
  11060. then :
  11061. printf %s "(cached) " >&6
  11062. else case e in #(
  11063. e) if test -n "$ac_ct_MANIFEST_TOOL"; then
  11064. ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
  11065. else
  11066. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  11067. for as_dir in $PATH
  11068. do
  11069. IFS=$as_save_IFS
  11070. case $as_dir in #(((
  11071. '') as_dir=./ ;;
  11072. */) ;;
  11073. *) as_dir=$as_dir/ ;;
  11074. esac
  11075. for ac_exec_ext in '' $ac_executable_extensions; do
  11076. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  11077. ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
  11078. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  11079. break 2
  11080. fi
  11081. done
  11082. done
  11083. IFS=$as_save_IFS
  11084. fi ;;
  11085. esac
  11086. fi
  11087. ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
  11088. if test -n "$ac_ct_MANIFEST_TOOL"; then
  11089. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
  11090. printf "%s\n" "$ac_ct_MANIFEST_TOOL" >&6; }
  11091. else
  11092. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  11093. printf "%s\n" "no" >&6; }
  11094. fi
  11095. if test "x$ac_ct_MANIFEST_TOOL" = x; then
  11096. MANIFEST_TOOL=":"
  11097. else
  11098. case $cross_compiling:$ac_tool_warned in
  11099. yes:)
  11100. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  11101. printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  11102. ac_tool_warned=yes ;;
  11103. esac
  11104. MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
  11105. fi
  11106. else
  11107. MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
  11108. fi
  11109. test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
  11110. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
  11111. printf %s "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
  11112. if test ${lt_cv_path_manifest_tool+y}
  11113. then :
  11114. printf %s "(cached) " >&6
  11115. else case e in #(
  11116. e) lt_cv_path_manifest_tool=no
  11117. echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
  11118. $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
  11119. cat conftest.err >&5
  11120. if $GREP 'Manifest Tool' conftest.out > /dev/null; then
  11121. lt_cv_path_manifest_tool=yes
  11122. fi
  11123. rm -f conftest* ;;
  11124. esac
  11125. fi
  11126. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_manifest_tool" >&5
  11127. printf "%s\n" "$lt_cv_path_manifest_tool" >&6; }
  11128. if test yes != "$lt_cv_path_manifest_tool"; then
  11129. MANIFEST_TOOL=:
  11130. fi
  11131. case $host_os in
  11132. rhapsody* | darwin*)
  11133. if test -n "$ac_tool_prefix"; then
  11134. # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
  11135. set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
  11136. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  11137. printf %s "checking for $ac_word... " >&6; }
  11138. if test ${ac_cv_prog_DSYMUTIL+y}
  11139. then :
  11140. printf %s "(cached) " >&6
  11141. else case e in #(
  11142. e) if test -n "$DSYMUTIL"; then
  11143. ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
  11144. else
  11145. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  11146. for as_dir in $PATH
  11147. do
  11148. IFS=$as_save_IFS
  11149. case $as_dir in #(((
  11150. '') as_dir=./ ;;
  11151. */) ;;
  11152. *) as_dir=$as_dir/ ;;
  11153. esac
  11154. for ac_exec_ext in '' $ac_executable_extensions; do
  11155. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  11156. ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
  11157. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  11158. break 2
  11159. fi
  11160. done
  11161. done
  11162. IFS=$as_save_IFS
  11163. fi ;;
  11164. esac
  11165. fi
  11166. DSYMUTIL=$ac_cv_prog_DSYMUTIL
  11167. if test -n "$DSYMUTIL"; then
  11168. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
  11169. printf "%s\n" "$DSYMUTIL" >&6; }
  11170. else
  11171. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  11172. printf "%s\n" "no" >&6; }
  11173. fi
  11174. fi
  11175. if test -z "$ac_cv_prog_DSYMUTIL"; then
  11176. ac_ct_DSYMUTIL=$DSYMUTIL
  11177. # Extract the first word of "dsymutil", so it can be a program name with args.
  11178. set dummy dsymutil; ac_word=$2
  11179. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  11180. printf %s "checking for $ac_word... " >&6; }
  11181. if test ${ac_cv_prog_ac_ct_DSYMUTIL+y}
  11182. then :
  11183. printf %s "(cached) " >&6
  11184. else case e in #(
  11185. e) if test -n "$ac_ct_DSYMUTIL"; then
  11186. ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
  11187. else
  11188. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  11189. for as_dir in $PATH
  11190. do
  11191. IFS=$as_save_IFS
  11192. case $as_dir in #(((
  11193. '') as_dir=./ ;;
  11194. */) ;;
  11195. *) as_dir=$as_dir/ ;;
  11196. esac
  11197. for ac_exec_ext in '' $ac_executable_extensions; do
  11198. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  11199. ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
  11200. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  11201. break 2
  11202. fi
  11203. done
  11204. done
  11205. IFS=$as_save_IFS
  11206. fi ;;
  11207. esac
  11208. fi
  11209. ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
  11210. if test -n "$ac_ct_DSYMUTIL"; then
  11211. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
  11212. printf "%s\n" "$ac_ct_DSYMUTIL" >&6; }
  11213. else
  11214. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  11215. printf "%s\n" "no" >&6; }
  11216. fi
  11217. if test "x$ac_ct_DSYMUTIL" = x; then
  11218. DSYMUTIL=":"
  11219. else
  11220. case $cross_compiling:$ac_tool_warned in
  11221. yes:)
  11222. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  11223. printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  11224. ac_tool_warned=yes ;;
  11225. esac
  11226. DSYMUTIL=$ac_ct_DSYMUTIL
  11227. fi
  11228. else
  11229. DSYMUTIL="$ac_cv_prog_DSYMUTIL"
  11230. fi
  11231. if test -n "$ac_tool_prefix"; then
  11232. # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
  11233. set dummy ${ac_tool_prefix}nmedit; ac_word=$2
  11234. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  11235. printf %s "checking for $ac_word... " >&6; }
  11236. if test ${ac_cv_prog_NMEDIT+y}
  11237. then :
  11238. printf %s "(cached) " >&6
  11239. else case e in #(
  11240. e) if test -n "$NMEDIT"; then
  11241. ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
  11242. else
  11243. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  11244. for as_dir in $PATH
  11245. do
  11246. IFS=$as_save_IFS
  11247. case $as_dir in #(((
  11248. '') as_dir=./ ;;
  11249. */) ;;
  11250. *) as_dir=$as_dir/ ;;
  11251. esac
  11252. for ac_exec_ext in '' $ac_executable_extensions; do
  11253. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  11254. ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
  11255. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  11256. break 2
  11257. fi
  11258. done
  11259. done
  11260. IFS=$as_save_IFS
  11261. fi ;;
  11262. esac
  11263. fi
  11264. NMEDIT=$ac_cv_prog_NMEDIT
  11265. if test -n "$NMEDIT"; then
  11266. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
  11267. printf "%s\n" "$NMEDIT" >&6; }
  11268. else
  11269. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  11270. printf "%s\n" "no" >&6; }
  11271. fi
  11272. fi
  11273. if test -z "$ac_cv_prog_NMEDIT"; then
  11274. ac_ct_NMEDIT=$NMEDIT
  11275. # Extract the first word of "nmedit", so it can be a program name with args.
  11276. set dummy nmedit; ac_word=$2
  11277. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  11278. printf %s "checking for $ac_word... " >&6; }
  11279. if test ${ac_cv_prog_ac_ct_NMEDIT+y}
  11280. then :
  11281. printf %s "(cached) " >&6
  11282. else case e in #(
  11283. e) if test -n "$ac_ct_NMEDIT"; then
  11284. ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
  11285. else
  11286. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  11287. for as_dir in $PATH
  11288. do
  11289. IFS=$as_save_IFS
  11290. case $as_dir in #(((
  11291. '') as_dir=./ ;;
  11292. */) ;;
  11293. *) as_dir=$as_dir/ ;;
  11294. esac
  11295. for ac_exec_ext in '' $ac_executable_extensions; do
  11296. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  11297. ac_cv_prog_ac_ct_NMEDIT="nmedit"
  11298. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  11299. break 2
  11300. fi
  11301. done
  11302. done
  11303. IFS=$as_save_IFS
  11304. fi ;;
  11305. esac
  11306. fi
  11307. ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
  11308. if test -n "$ac_ct_NMEDIT"; then
  11309. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
  11310. printf "%s\n" "$ac_ct_NMEDIT" >&6; }
  11311. else
  11312. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  11313. printf "%s\n" "no" >&6; }
  11314. fi
  11315. if test "x$ac_ct_NMEDIT" = x; then
  11316. NMEDIT=":"
  11317. else
  11318. case $cross_compiling:$ac_tool_warned in
  11319. yes:)
  11320. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  11321. printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  11322. ac_tool_warned=yes ;;
  11323. esac
  11324. NMEDIT=$ac_ct_NMEDIT
  11325. fi
  11326. else
  11327. NMEDIT="$ac_cv_prog_NMEDIT"
  11328. fi
  11329. if test -n "$ac_tool_prefix"; then
  11330. # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
  11331. set dummy ${ac_tool_prefix}lipo; ac_word=$2
  11332. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  11333. printf %s "checking for $ac_word... " >&6; }
  11334. if test ${ac_cv_prog_LIPO+y}
  11335. then :
  11336. printf %s "(cached) " >&6
  11337. else case e in #(
  11338. e) if test -n "$LIPO"; then
  11339. ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
  11340. else
  11341. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  11342. for as_dir in $PATH
  11343. do
  11344. IFS=$as_save_IFS
  11345. case $as_dir in #(((
  11346. '') as_dir=./ ;;
  11347. */) ;;
  11348. *) as_dir=$as_dir/ ;;
  11349. esac
  11350. for ac_exec_ext in '' $ac_executable_extensions; do
  11351. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  11352. ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
  11353. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  11354. break 2
  11355. fi
  11356. done
  11357. done
  11358. IFS=$as_save_IFS
  11359. fi ;;
  11360. esac
  11361. fi
  11362. LIPO=$ac_cv_prog_LIPO
  11363. if test -n "$LIPO"; then
  11364. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
  11365. printf "%s\n" "$LIPO" >&6; }
  11366. else
  11367. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  11368. printf "%s\n" "no" >&6; }
  11369. fi
  11370. fi
  11371. if test -z "$ac_cv_prog_LIPO"; then
  11372. ac_ct_LIPO=$LIPO
  11373. # Extract the first word of "lipo", so it can be a program name with args.
  11374. set dummy lipo; ac_word=$2
  11375. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  11376. printf %s "checking for $ac_word... " >&6; }
  11377. if test ${ac_cv_prog_ac_ct_LIPO+y}
  11378. then :
  11379. printf %s "(cached) " >&6
  11380. else case e in #(
  11381. e) if test -n "$ac_ct_LIPO"; then
  11382. ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
  11383. else
  11384. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  11385. for as_dir in $PATH
  11386. do
  11387. IFS=$as_save_IFS
  11388. case $as_dir in #(((
  11389. '') as_dir=./ ;;
  11390. */) ;;
  11391. *) as_dir=$as_dir/ ;;
  11392. esac
  11393. for ac_exec_ext in '' $ac_executable_extensions; do
  11394. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  11395. ac_cv_prog_ac_ct_LIPO="lipo"
  11396. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  11397. break 2
  11398. fi
  11399. done
  11400. done
  11401. IFS=$as_save_IFS
  11402. fi ;;
  11403. esac
  11404. fi
  11405. ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
  11406. if test -n "$ac_ct_LIPO"; then
  11407. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
  11408. printf "%s\n" "$ac_ct_LIPO" >&6; }
  11409. else
  11410. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  11411. printf "%s\n" "no" >&6; }
  11412. fi
  11413. if test "x$ac_ct_LIPO" = x; then
  11414. LIPO=":"
  11415. else
  11416. case $cross_compiling:$ac_tool_warned in
  11417. yes:)
  11418. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  11419. printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  11420. ac_tool_warned=yes ;;
  11421. esac
  11422. LIPO=$ac_ct_LIPO
  11423. fi
  11424. else
  11425. LIPO="$ac_cv_prog_LIPO"
  11426. fi
  11427. if test -n "$ac_tool_prefix"; then
  11428. # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
  11429. set dummy ${ac_tool_prefix}otool; ac_word=$2
  11430. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  11431. printf %s "checking for $ac_word... " >&6; }
  11432. if test ${ac_cv_prog_OTOOL+y}
  11433. then :
  11434. printf %s "(cached) " >&6
  11435. else case e in #(
  11436. e) if test -n "$OTOOL"; then
  11437. ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
  11438. else
  11439. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  11440. for as_dir in $PATH
  11441. do
  11442. IFS=$as_save_IFS
  11443. case $as_dir in #(((
  11444. '') as_dir=./ ;;
  11445. */) ;;
  11446. *) as_dir=$as_dir/ ;;
  11447. esac
  11448. for ac_exec_ext in '' $ac_executable_extensions; do
  11449. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  11450. ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
  11451. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  11452. break 2
  11453. fi
  11454. done
  11455. done
  11456. IFS=$as_save_IFS
  11457. fi ;;
  11458. esac
  11459. fi
  11460. OTOOL=$ac_cv_prog_OTOOL
  11461. if test -n "$OTOOL"; then
  11462. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
  11463. printf "%s\n" "$OTOOL" >&6; }
  11464. else
  11465. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  11466. printf "%s\n" "no" >&6; }
  11467. fi
  11468. fi
  11469. if test -z "$ac_cv_prog_OTOOL"; then
  11470. ac_ct_OTOOL=$OTOOL
  11471. # Extract the first word of "otool", so it can be a program name with args.
  11472. set dummy otool; ac_word=$2
  11473. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  11474. printf %s "checking for $ac_word... " >&6; }
  11475. if test ${ac_cv_prog_ac_ct_OTOOL+y}
  11476. then :
  11477. printf %s "(cached) " >&6
  11478. else case e in #(
  11479. e) if test -n "$ac_ct_OTOOL"; then
  11480. ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
  11481. else
  11482. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  11483. for as_dir in $PATH
  11484. do
  11485. IFS=$as_save_IFS
  11486. case $as_dir in #(((
  11487. '') as_dir=./ ;;
  11488. */) ;;
  11489. *) as_dir=$as_dir/ ;;
  11490. esac
  11491. for ac_exec_ext in '' $ac_executable_extensions; do
  11492. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  11493. ac_cv_prog_ac_ct_OTOOL="otool"
  11494. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  11495. break 2
  11496. fi
  11497. done
  11498. done
  11499. IFS=$as_save_IFS
  11500. fi ;;
  11501. esac
  11502. fi
  11503. ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
  11504. if test -n "$ac_ct_OTOOL"; then
  11505. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
  11506. printf "%s\n" "$ac_ct_OTOOL" >&6; }
  11507. else
  11508. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  11509. printf "%s\n" "no" >&6; }
  11510. fi
  11511. if test "x$ac_ct_OTOOL" = x; then
  11512. OTOOL=":"
  11513. else
  11514. case $cross_compiling:$ac_tool_warned in
  11515. yes:)
  11516. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  11517. printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  11518. ac_tool_warned=yes ;;
  11519. esac
  11520. OTOOL=$ac_ct_OTOOL
  11521. fi
  11522. else
  11523. OTOOL="$ac_cv_prog_OTOOL"
  11524. fi
  11525. if test -n "$ac_tool_prefix"; then
  11526. # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
  11527. set dummy ${ac_tool_prefix}otool64; ac_word=$2
  11528. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  11529. printf %s "checking for $ac_word... " >&6; }
  11530. if test ${ac_cv_prog_OTOOL64+y}
  11531. then :
  11532. printf %s "(cached) " >&6
  11533. else case e in #(
  11534. e) if test -n "$OTOOL64"; then
  11535. ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
  11536. else
  11537. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  11538. for as_dir in $PATH
  11539. do
  11540. IFS=$as_save_IFS
  11541. case $as_dir in #(((
  11542. '') as_dir=./ ;;
  11543. */) ;;
  11544. *) as_dir=$as_dir/ ;;
  11545. esac
  11546. for ac_exec_ext in '' $ac_executable_extensions; do
  11547. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  11548. ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
  11549. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  11550. break 2
  11551. fi
  11552. done
  11553. done
  11554. IFS=$as_save_IFS
  11555. fi ;;
  11556. esac
  11557. fi
  11558. OTOOL64=$ac_cv_prog_OTOOL64
  11559. if test -n "$OTOOL64"; then
  11560. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
  11561. printf "%s\n" "$OTOOL64" >&6; }
  11562. else
  11563. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  11564. printf "%s\n" "no" >&6; }
  11565. fi
  11566. fi
  11567. if test -z "$ac_cv_prog_OTOOL64"; then
  11568. ac_ct_OTOOL64=$OTOOL64
  11569. # Extract the first word of "otool64", so it can be a program name with args.
  11570. set dummy otool64; ac_word=$2
  11571. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  11572. printf %s "checking for $ac_word... " >&6; }
  11573. if test ${ac_cv_prog_ac_ct_OTOOL64+y}
  11574. then :
  11575. printf %s "(cached) " >&6
  11576. else case e in #(
  11577. e) if test -n "$ac_ct_OTOOL64"; then
  11578. ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
  11579. else
  11580. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  11581. for as_dir in $PATH
  11582. do
  11583. IFS=$as_save_IFS
  11584. case $as_dir in #(((
  11585. '') as_dir=./ ;;
  11586. */) ;;
  11587. *) as_dir=$as_dir/ ;;
  11588. esac
  11589. for ac_exec_ext in '' $ac_executable_extensions; do
  11590. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  11591. ac_cv_prog_ac_ct_OTOOL64="otool64"
  11592. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  11593. break 2
  11594. fi
  11595. done
  11596. done
  11597. IFS=$as_save_IFS
  11598. fi ;;
  11599. esac
  11600. fi
  11601. ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
  11602. if test -n "$ac_ct_OTOOL64"; then
  11603. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
  11604. printf "%s\n" "$ac_ct_OTOOL64" >&6; }
  11605. else
  11606. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  11607. printf "%s\n" "no" >&6; }
  11608. fi
  11609. if test "x$ac_ct_OTOOL64" = x; then
  11610. OTOOL64=":"
  11611. else
  11612. case $cross_compiling:$ac_tool_warned in
  11613. yes:)
  11614. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  11615. printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  11616. ac_tool_warned=yes ;;
  11617. esac
  11618. OTOOL64=$ac_ct_OTOOL64
  11619. fi
  11620. else
  11621. OTOOL64="$ac_cv_prog_OTOOL64"
  11622. fi
  11623. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
  11624. printf %s "checking for -single_module linker flag... " >&6; }
  11625. if test ${lt_cv_apple_cc_single_mod+y}
  11626. then :
  11627. printf %s "(cached) " >&6
  11628. else case e in #(
  11629. e) lt_cv_apple_cc_single_mod=no
  11630. if test -z "$LT_MULTI_MODULE"; then
  11631. # By default we will add the -single_module flag. You can override
  11632. # by either setting the environment variable LT_MULTI_MODULE
  11633. # non-empty at configure time, or by adding -multi_module to the
  11634. # link flags.
  11635. rm -rf libconftest.dylib*
  11636. echo "int foo(void){return 1;}" > conftest.c
  11637. echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
  11638. -dynamiclib -Wl,-single_module conftest.c" >&5
  11639. $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
  11640. -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
  11641. _lt_result=$?
  11642. # If there is a non-empty error log, and "single_module"
  11643. # appears in it, assume the flag caused a linker warning
  11644. if test -s conftest.err && $GREP single_module conftest.err; then
  11645. cat conftest.err >&5
  11646. # Otherwise, if the output was created with a 0 exit code from
  11647. # the compiler, it worked.
  11648. elif test -f libconftest.dylib && test 0 = "$_lt_result"; then
  11649. lt_cv_apple_cc_single_mod=yes
  11650. else
  11651. cat conftest.err >&5
  11652. fi
  11653. rm -rf libconftest.dylib*
  11654. rm -f conftest.*
  11655. fi ;;
  11656. esac
  11657. fi
  11658. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
  11659. printf "%s\n" "$lt_cv_apple_cc_single_mod" >&6; }
  11660. # Feature test to disable chained fixups since it is not
  11661. # compatible with '-undefined dynamic_lookup'
  11662. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for -no_fixup_chains linker flag" >&5
  11663. printf %s "checking for -no_fixup_chains linker flag... " >&6; }
  11664. if test ${lt_cv_support_no_fixup_chains+y}
  11665. then :
  11666. printf %s "(cached) " >&6
  11667. else case e in #(
  11668. e) save_LDFLAGS=$LDFLAGS
  11669. LDFLAGS="$LDFLAGS -Wl,-no_fixup_chains"
  11670. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11671. /* end confdefs.h. */
  11672. int
  11673. main (void)
  11674. {
  11675. ;
  11676. return 0;
  11677. }
  11678. _ACEOF
  11679. if ac_fn_c_try_link "$LINENO"
  11680. then :
  11681. lt_cv_support_no_fixup_chains=yes
  11682. else case e in #(
  11683. e) lt_cv_support_no_fixup_chains=no
  11684. ;;
  11685. esac
  11686. fi
  11687. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  11688. conftest$ac_exeext conftest.$ac_ext
  11689. LDFLAGS=$save_LDFLAGS
  11690. ;;
  11691. esac
  11692. fi
  11693. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_support_no_fixup_chains" >&5
  11694. printf "%s\n" "$lt_cv_support_no_fixup_chains" >&6; }
  11695. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
  11696. printf %s "checking for -exported_symbols_list linker flag... " >&6; }
  11697. if test ${lt_cv_ld_exported_symbols_list+y}
  11698. then :
  11699. printf %s "(cached) " >&6
  11700. else case e in #(
  11701. e) lt_cv_ld_exported_symbols_list=no
  11702. save_LDFLAGS=$LDFLAGS
  11703. echo "_main" > conftest.sym
  11704. LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
  11705. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11706. /* end confdefs.h. */
  11707. int
  11708. main (void)
  11709. {
  11710. ;
  11711. return 0;
  11712. }
  11713. _ACEOF
  11714. if ac_fn_c_try_link "$LINENO"
  11715. then :
  11716. lt_cv_ld_exported_symbols_list=yes
  11717. else case e in #(
  11718. e) lt_cv_ld_exported_symbols_list=no ;;
  11719. esac
  11720. fi
  11721. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  11722. conftest$ac_exeext conftest.$ac_ext
  11723. LDFLAGS=$save_LDFLAGS
  11724. ;;
  11725. esac
  11726. fi
  11727. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
  11728. printf "%s\n" "$lt_cv_ld_exported_symbols_list" >&6; }
  11729. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
  11730. printf %s "checking for -force_load linker flag... " >&6; }
  11731. if test ${lt_cv_ld_force_load+y}
  11732. then :
  11733. printf %s "(cached) " >&6
  11734. else case e in #(
  11735. e) lt_cv_ld_force_load=no
  11736. cat > conftest.c << _LT_EOF
  11737. int forced_loaded() { return 2;}
  11738. _LT_EOF
  11739. echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
  11740. $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
  11741. echo "$AR $AR_FLAGS libconftest.a conftest.o" >&5
  11742. $AR $AR_FLAGS libconftest.a conftest.o 2>&5
  11743. echo "$RANLIB libconftest.a" >&5
  11744. $RANLIB libconftest.a 2>&5
  11745. cat > conftest.c << _LT_EOF
  11746. int main(void) { return 0;}
  11747. _LT_EOF
  11748. echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
  11749. $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
  11750. _lt_result=$?
  11751. if test -s conftest.err && $GREP force_load conftest.err; then
  11752. cat conftest.err >&5
  11753. elif test -f conftest && test 0 = "$_lt_result" && $GREP forced_load conftest >/dev/null 2>&1; then
  11754. lt_cv_ld_force_load=yes
  11755. else
  11756. cat conftest.err >&5
  11757. fi
  11758. rm -f conftest.err libconftest.a conftest conftest.c
  11759. rm -rf conftest.dSYM
  11760. ;;
  11761. esac
  11762. fi
  11763. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
  11764. printf "%s\n" "$lt_cv_ld_force_load" >&6; }
  11765. case $host_os in
  11766. rhapsody* | darwin1.[012])
  11767. _lt_dar_allow_undefined='$wl-undefined ${wl}suppress' ;;
  11768. darwin1.*)
  11769. _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
  11770. darwin*)
  11771. case $MACOSX_DEPLOYMENT_TARGET,$host in
  11772. 10.[012],*|,*powerpc*-darwin[5-8]*)
  11773. _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
  11774. *)
  11775. _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup'
  11776. if test yes = "$lt_cv_support_no_fixup_chains"; then
  11777. as_fn_append _lt_dar_allow_undefined ' $wl-no_fixup_chains'
  11778. fi
  11779. ;;
  11780. esac
  11781. ;;
  11782. esac
  11783. if test yes = "$lt_cv_apple_cc_single_mod"; then
  11784. _lt_dar_single_mod='$single_module'
  11785. fi
  11786. _lt_dar_needs_single_mod=no
  11787. case $host_os in
  11788. rhapsody* | darwin1.*)
  11789. _lt_dar_needs_single_mod=yes ;;
  11790. darwin*)
  11791. # When targeting Mac OS X 10.4 (darwin 8) or later,
  11792. # -single_module is the default and -multi_module is unsupported.
  11793. # The toolchain on macOS 10.14 (darwin 18) and later cannot
  11794. # target any OS version that needs -single_module.
  11795. case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
  11796. 10.0,*-darwin[567].*|10.[0-3],*-darwin[5-9].*|10.[0-3],*-darwin1[0-7].*)
  11797. _lt_dar_needs_single_mod=yes ;;
  11798. esac
  11799. ;;
  11800. esac
  11801. if test yes = "$lt_cv_ld_exported_symbols_list"; then
  11802. _lt_dar_export_syms=' $wl-exported_symbols_list,$output_objdir/$libname-symbols.expsym'
  11803. else
  11804. _lt_dar_export_syms='~$NMEDIT -s $output_objdir/$libname-symbols.expsym $lib'
  11805. fi
  11806. if test : != "$DSYMUTIL" && test no = "$lt_cv_ld_force_load"; then
  11807. _lt_dsymutil='~$DSYMUTIL $lib || :'
  11808. else
  11809. _lt_dsymutil=
  11810. fi
  11811. ;;
  11812. esac
  11813. # func_munge_path_list VARIABLE PATH
  11814. # -----------------------------------
  11815. # VARIABLE is name of variable containing _space_ separated list of
  11816. # directories to be munged by the contents of PATH, which is string
  11817. # having a format:
  11818. # "DIR[:DIR]:"
  11819. # string "DIR[ DIR]" will be prepended to VARIABLE
  11820. # ":DIR[:DIR]"
  11821. # string "DIR[ DIR]" will be appended to VARIABLE
  11822. # "DIRP[:DIRP]::[DIRA:]DIRA"
  11823. # string "DIRP[ DIRP]" will be prepended to VARIABLE and string
  11824. # "DIRA[ DIRA]" will be appended to VARIABLE
  11825. # "DIR[:DIR]"
  11826. # VARIABLE will be replaced by "DIR[ DIR]"
  11827. func_munge_path_list ()
  11828. {
  11829. case x$2 in
  11830. x)
  11831. ;;
  11832. *:)
  11833. eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
  11834. ;;
  11835. x:*)
  11836. eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
  11837. ;;
  11838. *::*)
  11839. eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
  11840. eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
  11841. ;;
  11842. *)
  11843. eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
  11844. ;;
  11845. esac
  11846. }
  11847. ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
  11848. "
  11849. if test "x$ac_cv_header_dlfcn_h" = xyes
  11850. then :
  11851. printf "%s\n" "#define HAVE_DLFCN_H 1" >>confdefs.h
  11852. fi
  11853. # Set options
  11854. enable_dlopen=no
  11855. enable_win32_dll=no
  11856. # Check whether --enable-static was given.
  11857. if test ${enable_static+y}
  11858. then :
  11859. enableval=$enable_static; p=${PACKAGE-default}
  11860. case $enableval in
  11861. yes) enable_static=yes ;;
  11862. no) enable_static=no ;;
  11863. *)
  11864. enable_static=no
  11865. # Look at the argument we got. We use all the common list separators.
  11866. lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
  11867. for pkg in $enableval; do
  11868. IFS=$lt_save_ifs
  11869. if test "X$pkg" = "X$p"; then
  11870. enable_static=yes
  11871. fi
  11872. done
  11873. IFS=$lt_save_ifs
  11874. ;;
  11875. esac
  11876. else case e in #(
  11877. e) enable_static=yes ;;
  11878. esac
  11879. fi
  11880. # Check whether --enable-pic was given.
  11881. if test ${enable_pic+y}
  11882. then :
  11883. enableval=$enable_pic; lt_p=${PACKAGE-default}
  11884. case $enableval in
  11885. yes|no) pic_mode=$enableval ;;
  11886. *)
  11887. pic_mode=default
  11888. # Look at the argument we got. We use all the common list separators.
  11889. lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
  11890. for lt_pkg in $enableval; do
  11891. IFS=$lt_save_ifs
  11892. if test "X$lt_pkg" = "X$lt_p"; then
  11893. pic_mode=yes
  11894. fi
  11895. done
  11896. IFS=$lt_save_ifs
  11897. ;;
  11898. esac
  11899. else case e in #(
  11900. e) # Check whether --with-pic was given.
  11901. if test ${with_pic+y}
  11902. then :
  11903. withval=$with_pic; lt_p=${PACKAGE-default}
  11904. case $withval in
  11905. yes|no) pic_mode=$withval ;;
  11906. *)
  11907. pic_mode=default
  11908. # Look at the argument we got. We use all the common list separators.
  11909. lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
  11910. for lt_pkg in $withval; do
  11911. IFS=$lt_save_ifs
  11912. if test "X$lt_pkg" = "X$lt_p"; then
  11913. pic_mode=yes
  11914. fi
  11915. done
  11916. IFS=$lt_save_ifs
  11917. ;;
  11918. esac
  11919. else case e in #(
  11920. e) pic_mode=default ;;
  11921. esac
  11922. fi
  11923. ;;
  11924. esac
  11925. fi
  11926. # Check whether --enable-fast-install was given.
  11927. if test ${enable_fast_install+y}
  11928. then :
  11929. enableval=$enable_fast_install; p=${PACKAGE-default}
  11930. case $enableval in
  11931. yes) enable_fast_install=yes ;;
  11932. no) enable_fast_install=no ;;
  11933. *)
  11934. enable_fast_install=no
  11935. # Look at the argument we got. We use all the common list separators.
  11936. lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
  11937. for pkg in $enableval; do
  11938. IFS=$lt_save_ifs
  11939. if test "X$pkg" = "X$p"; then
  11940. enable_fast_install=yes
  11941. fi
  11942. done
  11943. IFS=$lt_save_ifs
  11944. ;;
  11945. esac
  11946. else case e in #(
  11947. e) enable_fast_install=yes ;;
  11948. esac
  11949. fi
  11950. shared_archive_member_spec=
  11951. case $host,$enable_shared in
  11952. power*-*-aix[5-9]*,yes)
  11953. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking which variant of shared library versioning to provide" >&5
  11954. printf %s "checking which variant of shared library versioning to provide... " >&6; }
  11955. # Check whether --enable-aix-soname was given.
  11956. if test ${enable_aix_soname+y}
  11957. then :
  11958. enableval=$enable_aix_soname; case $enableval in
  11959. aix|svr4|both)
  11960. ;;
  11961. *)
  11962. as_fn_error $? "Unknown argument to --enable-aix-soname" "$LINENO" 5
  11963. ;;
  11964. esac
  11965. lt_cv_with_aix_soname=$enable_aix_soname
  11966. else case e in #(
  11967. e) # Check whether --with-aix-soname was given.
  11968. if test ${with_aix_soname+y}
  11969. then :
  11970. withval=$with_aix_soname; case $withval in
  11971. aix|svr4|both)
  11972. ;;
  11973. *)
  11974. as_fn_error $? "Unknown argument to --with-aix-soname" "$LINENO" 5
  11975. ;;
  11976. esac
  11977. lt_cv_with_aix_soname=$with_aix_soname
  11978. else case e in #(
  11979. e) if test ${lt_cv_with_aix_soname+y}
  11980. then :
  11981. printf %s "(cached) " >&6
  11982. else case e in #(
  11983. e) lt_cv_with_aix_soname=aix ;;
  11984. esac
  11985. fi
  11986. ;;
  11987. esac
  11988. fi
  11989. enable_aix_soname=$lt_cv_with_aix_soname ;;
  11990. esac
  11991. fi
  11992. with_aix_soname=$enable_aix_soname
  11993. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $with_aix_soname" >&5
  11994. printf "%s\n" "$with_aix_soname" >&6; }
  11995. if test aix != "$with_aix_soname"; then
  11996. # For the AIX way of multilib, we name the shared archive member
  11997. # based on the bitwidth used, traditionally 'shr.o' or 'shr_64.o',
  11998. # and 'shr.imp' or 'shr_64.imp', respectively, for the Import File.
  11999. # Even when GNU compilers ignore OBJECT_MODE but need '-maix64' flag,
  12000. # the AIX toolchain works better with OBJECT_MODE set (default 32).
  12001. if test 64 = "${OBJECT_MODE-32}"; then
  12002. shared_archive_member_spec=shr_64
  12003. else
  12004. shared_archive_member_spec=shr
  12005. fi
  12006. fi
  12007. ;;
  12008. *)
  12009. with_aix_soname=aix
  12010. ;;
  12011. esac
  12012. # This can be used to rebuild libtool when needed
  12013. LIBTOOL_DEPS=$ltmain
  12014. # Always use our own libtool.
  12015. LIBTOOL='$(SHELL) $(top_builddir)/libtool'
  12016. test -z "$LN_S" && LN_S="ln -s"
  12017. if test -n "${ZSH_VERSION+set}"; then
  12018. setopt NO_GLOB_SUBST
  12019. fi
  12020. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
  12021. printf %s "checking for objdir... " >&6; }
  12022. if test ${lt_cv_objdir+y}
  12023. then :
  12024. printf %s "(cached) " >&6
  12025. else case e in #(
  12026. e) rm -f .libs 2>/dev/null
  12027. mkdir .libs 2>/dev/null
  12028. if test -d .libs; then
  12029. lt_cv_objdir=.libs
  12030. else
  12031. # MS-DOS does not allow filenames that begin with a dot.
  12032. lt_cv_objdir=_libs
  12033. fi
  12034. rmdir .libs 2>/dev/null ;;
  12035. esac
  12036. fi
  12037. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
  12038. printf "%s\n" "$lt_cv_objdir" >&6; }
  12039. objdir=$lt_cv_objdir
  12040. printf "%s\n" "#define LT_OBJDIR \"$lt_cv_objdir/\"" >>confdefs.h
  12041. case $host_os in
  12042. aix3*)
  12043. # AIX sometimes has problems with the GCC collect2 program. For some
  12044. # reason, if we set the COLLECT_NAMES environment variable, the problems
  12045. # vanish in a puff of smoke.
  12046. if test set != "${COLLECT_NAMES+set}"; then
  12047. COLLECT_NAMES=
  12048. export COLLECT_NAMES
  12049. fi
  12050. ;;
  12051. esac
  12052. # Global variables:
  12053. ofile=libtool
  12054. can_build_shared=yes
  12055. # All known linkers require a '.a' archive for static linking (except MSVC and
  12056. # ICC, which need '.lib').
  12057. libext=a
  12058. with_gnu_ld=$lt_cv_prog_gnu_ld
  12059. old_CC=$CC
  12060. old_CFLAGS=$CFLAGS
  12061. # Set sane defaults for various variables
  12062. test -z "$CC" && CC=cc
  12063. test -z "$LTCC" && LTCC=$CC
  12064. test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
  12065. test -z "$LD" && LD=ld
  12066. test -z "$ac_objext" && ac_objext=o
  12067. func_cc_basename $compiler
  12068. cc_basename=$func_cc_basename_result
  12069. # Only perform the check for file, if the check method requires it
  12070. test -z "$MAGIC_CMD" && MAGIC_CMD=file
  12071. case $deplibs_check_method in
  12072. file_magic*)
  12073. if test "$file_magic_cmd" = '$MAGIC_CMD'; then
  12074. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
  12075. printf %s "checking for ${ac_tool_prefix}file... " >&6; }
  12076. if test ${lt_cv_path_MAGIC_CMD+y}
  12077. then :
  12078. printf %s "(cached) " >&6
  12079. else case e in #(
  12080. e) case $MAGIC_CMD in
  12081. [\\/*] | ?:[\\/]*)
  12082. lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
  12083. ;;
  12084. *)
  12085. lt_save_MAGIC_CMD=$MAGIC_CMD
  12086. lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
  12087. ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
  12088. for ac_dir in $ac_dummy; do
  12089. IFS=$lt_save_ifs
  12090. test -z "$ac_dir" && ac_dir=.
  12091. if test -f "$ac_dir/${ac_tool_prefix}file"; then
  12092. lt_cv_path_MAGIC_CMD=$ac_dir/"${ac_tool_prefix}file"
  12093. if test -n "$file_magic_test_file"; then
  12094. case $deplibs_check_method in
  12095. "file_magic "*)
  12096. file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
  12097. MAGIC_CMD=$lt_cv_path_MAGIC_CMD
  12098. if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
  12099. $EGREP "$file_magic_regex" > /dev/null; then
  12100. :
  12101. else
  12102. cat <<_LT_EOF 1>&2
  12103. *** Warning: the command libtool uses to detect shared libraries,
  12104. *** $file_magic_cmd, produces output that libtool cannot recognize.
  12105. *** The result is that libtool may fail to recognize shared libraries
  12106. *** as such. This will affect the creation of libtool libraries that
  12107. *** depend on shared libraries, but programs linked with such libtool
  12108. *** libraries will work regardless of this problem. Nevertheless, you
  12109. *** may want to report the problem to your system manager and/or to
  12110. *** [email protected]
  12111. _LT_EOF
  12112. fi ;;
  12113. esac
  12114. fi
  12115. break
  12116. fi
  12117. done
  12118. IFS=$lt_save_ifs
  12119. MAGIC_CMD=$lt_save_MAGIC_CMD
  12120. ;;
  12121. esac ;;
  12122. esac
  12123. fi
  12124. MAGIC_CMD=$lt_cv_path_MAGIC_CMD
  12125. if test -n "$MAGIC_CMD"; then
  12126. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
  12127. printf "%s\n" "$MAGIC_CMD" >&6; }
  12128. else
  12129. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  12130. printf "%s\n" "no" >&6; }
  12131. fi
  12132. if test -z "$lt_cv_path_MAGIC_CMD"; then
  12133. if test -n "$ac_tool_prefix"; then
  12134. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for file" >&5
  12135. printf %s "checking for file... " >&6; }
  12136. if test ${lt_cv_path_MAGIC_CMD+y}
  12137. then :
  12138. printf %s "(cached) " >&6
  12139. else case e in #(
  12140. e) case $MAGIC_CMD in
  12141. [\\/*] | ?:[\\/]*)
  12142. lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
  12143. ;;
  12144. *)
  12145. lt_save_MAGIC_CMD=$MAGIC_CMD
  12146. lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
  12147. ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
  12148. for ac_dir in $ac_dummy; do
  12149. IFS=$lt_save_ifs
  12150. test -z "$ac_dir" && ac_dir=.
  12151. if test -f "$ac_dir/file"; then
  12152. lt_cv_path_MAGIC_CMD=$ac_dir/"file"
  12153. if test -n "$file_magic_test_file"; then
  12154. case $deplibs_check_method in
  12155. "file_magic "*)
  12156. file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
  12157. MAGIC_CMD=$lt_cv_path_MAGIC_CMD
  12158. if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
  12159. $EGREP "$file_magic_regex" > /dev/null; then
  12160. :
  12161. else
  12162. cat <<_LT_EOF 1>&2
  12163. *** Warning: the command libtool uses to detect shared libraries,
  12164. *** $file_magic_cmd, produces output that libtool cannot recognize.
  12165. *** The result is that libtool may fail to recognize shared libraries
  12166. *** as such. This will affect the creation of libtool libraries that
  12167. *** depend on shared libraries, but programs linked with such libtool
  12168. *** libraries will work regardless of this problem. Nevertheless, you
  12169. *** may want to report the problem to your system manager and/or to
  12170. *** [email protected]
  12171. _LT_EOF
  12172. fi ;;
  12173. esac
  12174. fi
  12175. break
  12176. fi
  12177. done
  12178. IFS=$lt_save_ifs
  12179. MAGIC_CMD=$lt_save_MAGIC_CMD
  12180. ;;
  12181. esac ;;
  12182. esac
  12183. fi
  12184. MAGIC_CMD=$lt_cv_path_MAGIC_CMD
  12185. if test -n "$MAGIC_CMD"; then
  12186. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
  12187. printf "%s\n" "$MAGIC_CMD" >&6; }
  12188. else
  12189. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  12190. printf "%s\n" "no" >&6; }
  12191. fi
  12192. else
  12193. MAGIC_CMD=:
  12194. fi
  12195. fi
  12196. fi
  12197. ;;
  12198. esac
  12199. # Use C for the default configuration in the libtool script
  12200. lt_save_CC=$CC
  12201. ac_ext=c
  12202. ac_cpp='$CPP $CPPFLAGS'
  12203. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  12204. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  12205. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  12206. # Source file extension for C test sources.
  12207. ac_ext=c
  12208. # Object file extension for compiled C test sources.
  12209. objext=o
  12210. objext=$objext
  12211. # Code to be used in simple compile tests
  12212. lt_simple_compile_test_code="int some_variable = 0;"
  12213. # Code to be used in simple link tests
  12214. lt_simple_link_test_code='int main(void){return(0);}'
  12215. # If no C compiler was specified, use CC.
  12216. LTCC=${LTCC-"$CC"}
  12217. # If no C compiler flags were specified, use CFLAGS.
  12218. LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
  12219. # Allow CC to be a program name with arguments.
  12220. compiler=$CC
  12221. # Save the default compiler, since it gets overwritten when the other
  12222. # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
  12223. compiler_DEFAULT=$CC
  12224. # save warnings/boilerplate of simple test code
  12225. ac_outfile=conftest.$ac_objext
  12226. echo "$lt_simple_compile_test_code" >conftest.$ac_ext
  12227. eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  12228. _lt_compiler_boilerplate=`cat conftest.err`
  12229. $RM conftest*
  12230. ac_outfile=conftest.$ac_objext
  12231. echo "$lt_simple_link_test_code" >conftest.$ac_ext
  12232. eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  12233. _lt_linker_boilerplate=`cat conftest.err`
  12234. $RM -r conftest*
  12235. ## CAVEAT EMPTOR:
  12236. ## There is no encapsulation within the following macros, do not change
  12237. ## the running order or otherwise move them around unless you know exactly
  12238. ## what you are doing...
  12239. if test -n "$compiler"; then
  12240. lt_prog_compiler_no_builtin_flag=
  12241. if test yes = "$GCC"; then
  12242. case $cc_basename in
  12243. nvcc*)
  12244. lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
  12245. *)
  12246. lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
  12247. esac
  12248. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
  12249. printf %s "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
  12250. if test ${lt_cv_prog_compiler_rtti_exceptions+y}
  12251. then :
  12252. printf %s "(cached) " >&6
  12253. else case e in #(
  12254. e) lt_cv_prog_compiler_rtti_exceptions=no
  12255. ac_outfile=conftest.$ac_objext
  12256. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  12257. lt_compiler_flag="-fno-rtti -fno-exceptions" ## exclude from sc_useless_quotes_in_assignment
  12258. # Insert the option either (1) after the last *FLAGS variable, or
  12259. # (2) before a word containing "conftest.", or (3) at the end.
  12260. # Note that $ac_compile itself does not contain backslashes and begins
  12261. # with a dollar sign (not a hyphen), so the echo should work correctly.
  12262. # The option is referenced via a variable to avoid confusing sed.
  12263. lt_compile=`echo "$ac_compile" | $SED \
  12264. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  12265. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  12266. -e 's:$: $lt_compiler_flag:'`
  12267. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  12268. (eval "$lt_compile" 2>conftest.err)
  12269. ac_status=$?
  12270. cat conftest.err >&5
  12271. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  12272. if (exit $ac_status) && test -s "$ac_outfile"; then
  12273. # The compiler can only warn and ignore the option if not recognized
  12274. # So say no if there are warnings other than the usual output.
  12275. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
  12276. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  12277. if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
  12278. lt_cv_prog_compiler_rtti_exceptions=yes
  12279. fi
  12280. fi
  12281. $RM conftest*
  12282. ;;
  12283. esac
  12284. fi
  12285. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
  12286. printf "%s\n" "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
  12287. if test yes = "$lt_cv_prog_compiler_rtti_exceptions"; then
  12288. lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
  12289. else
  12290. :
  12291. fi
  12292. fi
  12293. lt_prog_compiler_wl=
  12294. lt_prog_compiler_pic=
  12295. lt_prog_compiler_static=
  12296. if test yes = "$GCC"; then
  12297. lt_prog_compiler_wl='-Wl,'
  12298. lt_prog_compiler_static='-static'
  12299. case $host_os in
  12300. aix*)
  12301. # All AIX code is PIC.
  12302. if test ia64 = "$host_cpu"; then
  12303. # AIX 5 now supports IA64 processor
  12304. lt_prog_compiler_static='-Bstatic'
  12305. fi
  12306. lt_prog_compiler_pic='-fPIC'
  12307. ;;
  12308. amigaos*)
  12309. case $host_cpu in
  12310. powerpc)
  12311. # see comment about AmigaOS4 .so support
  12312. lt_prog_compiler_pic='-fPIC'
  12313. ;;
  12314. m68k)
  12315. # FIXME: we need at least 68020 code to build shared libraries, but
  12316. # adding the '-m68020' flag to GCC prevents building anything better,
  12317. # like '-m68040'.
  12318. lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
  12319. ;;
  12320. esac
  12321. ;;
  12322. beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
  12323. # PIC is the default for these OSes.
  12324. ;;
  12325. mingw* | windows* | cygwin* | pw32* | os2* | cegcc*)
  12326. # This hack is so that the source file can tell whether it is being
  12327. # built for inclusion in a dll (and should export symbols for example).
  12328. # Although the cygwin gcc ignores -fPIC, still need this for old-style
  12329. # (--disable-auto-import) libraries
  12330. lt_prog_compiler_pic='-DDLL_EXPORT'
  12331. case $host_os in
  12332. os2*)
  12333. lt_prog_compiler_static='$wl-static'
  12334. ;;
  12335. esac
  12336. ;;
  12337. darwin* | rhapsody*)
  12338. # PIC is the default on this platform
  12339. # Common symbols not allowed in MH_DYLIB files
  12340. lt_prog_compiler_pic='-fno-common'
  12341. ;;
  12342. haiku*)
  12343. # PIC is the default for Haiku.
  12344. # The "-static" flag exists, but is broken.
  12345. lt_prog_compiler_static=
  12346. ;;
  12347. hpux*)
  12348. # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
  12349. # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
  12350. # sets the default TLS model and affects inlining.
  12351. case $host_cpu in
  12352. hppa*64*)
  12353. # +Z the default
  12354. ;;
  12355. *)
  12356. lt_prog_compiler_pic='-fPIC'
  12357. ;;
  12358. esac
  12359. ;;
  12360. interix[3-9]*)
  12361. # Interix 3.x gcc -fpic/-fPIC options generate broken code.
  12362. # Instead, we relocate shared libraries at runtime.
  12363. ;;
  12364. msdosdjgpp*)
  12365. # Just because we use GCC doesn't mean we suddenly get shared libraries
  12366. # on systems that don't support them.
  12367. lt_prog_compiler_can_build_shared=no
  12368. enable_shared=no
  12369. ;;
  12370. *nto* | *qnx*)
  12371. # QNX uses GNU C++, but need to define -shared option too, otherwise
  12372. # it will coredump.
  12373. lt_prog_compiler_pic='-fPIC -shared'
  12374. ;;
  12375. sysv4*MP*)
  12376. if test -d /usr/nec; then
  12377. lt_prog_compiler_pic=-Kconform_pic
  12378. fi
  12379. ;;
  12380. *)
  12381. lt_prog_compiler_pic='-fPIC'
  12382. ;;
  12383. esac
  12384. case $cc_basename in
  12385. nvcc*) # Cuda Compiler Driver 2.2
  12386. lt_prog_compiler_wl='-Xlinker '
  12387. if test -n "$lt_prog_compiler_pic"; then
  12388. lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
  12389. fi
  12390. ;;
  12391. esac
  12392. else
  12393. # PORTME Check for flag to pass linker flags through the system compiler.
  12394. case $host_os in
  12395. aix*)
  12396. lt_prog_compiler_wl='-Wl,'
  12397. if test ia64 = "$host_cpu"; then
  12398. # AIX 5 now supports IA64 processor
  12399. lt_prog_compiler_static='-Bstatic'
  12400. else
  12401. lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
  12402. fi
  12403. ;;
  12404. darwin* | rhapsody*)
  12405. # PIC is the default on this platform
  12406. # Common symbols not allowed in MH_DYLIB files
  12407. lt_prog_compiler_pic='-fno-common'
  12408. case $cc_basename in
  12409. nagfor*)
  12410. # NAG Fortran compiler
  12411. lt_prog_compiler_wl='-Wl,-Wl,,'
  12412. lt_prog_compiler_pic='-PIC'
  12413. lt_prog_compiler_static='-Bstatic'
  12414. ;;
  12415. esac
  12416. ;;
  12417. mingw* | windows* | cygwin* | pw32* | os2* | cegcc*)
  12418. # This hack is so that the source file can tell whether it is being
  12419. # built for inclusion in a dll (and should export symbols for example).
  12420. lt_prog_compiler_pic='-DDLL_EXPORT'
  12421. case $host_os in
  12422. os2*)
  12423. lt_prog_compiler_static='$wl-static'
  12424. ;;
  12425. esac
  12426. ;;
  12427. hpux9* | hpux10* | hpux11*)
  12428. lt_prog_compiler_wl='-Wl,'
  12429. # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
  12430. # not for PA HP-UX.
  12431. case $host_cpu in
  12432. hppa*64*|ia64*)
  12433. # +Z the default
  12434. ;;
  12435. *)
  12436. lt_prog_compiler_pic='+Z'
  12437. ;;
  12438. esac
  12439. # Is there a better lt_prog_compiler_static that works with the bundled CC?
  12440. lt_prog_compiler_static='$wl-a ${wl}archive'
  12441. ;;
  12442. irix5* | irix6* | nonstopux*)
  12443. lt_prog_compiler_wl='-Wl,'
  12444. # PIC (with -KPIC) is the default.
  12445. lt_prog_compiler_static='-non_shared'
  12446. ;;
  12447. linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
  12448. case $cc_basename in
  12449. # old Intel for x86_64, which still supported -KPIC.
  12450. ecc*)
  12451. lt_prog_compiler_wl='-Wl,'
  12452. lt_prog_compiler_pic='-KPIC'
  12453. lt_prog_compiler_static='-static'
  12454. ;;
  12455. *flang* | ftn | f18* | f95*)
  12456. # Flang compiler.
  12457. lt_prog_compiler_wl='-Wl,'
  12458. lt_prog_compiler_pic='-fPIC'
  12459. lt_prog_compiler_static='-static'
  12460. ;;
  12461. # icc used to be incompatible with GCC.
  12462. # ICC 10 doesn't accept -KPIC any more.
  12463. icc* | ifort*)
  12464. lt_prog_compiler_wl='-Wl,'
  12465. lt_prog_compiler_pic='-fPIC'
  12466. lt_prog_compiler_static='-static'
  12467. ;;
  12468. # Lahey Fortran 8.1.
  12469. lf95*)
  12470. lt_prog_compiler_wl='-Wl,'
  12471. lt_prog_compiler_pic='--shared'
  12472. lt_prog_compiler_static='--static'
  12473. ;;
  12474. nagfor*)
  12475. # NAG Fortran compiler
  12476. lt_prog_compiler_wl='-Wl,-Wl,,'
  12477. lt_prog_compiler_pic='-PIC'
  12478. lt_prog_compiler_static='-Bstatic'
  12479. ;;
  12480. tcc*)
  12481. # Fabrice Bellard et al's Tiny C Compiler
  12482. lt_prog_compiler_wl='-Wl,'
  12483. lt_prog_compiler_pic='-fPIC'
  12484. lt_prog_compiler_static='-static'
  12485. ;;
  12486. pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
  12487. # Portland Group compilers (*not* the Pentium gcc compiler,
  12488. # which looks to be a dead project)
  12489. lt_prog_compiler_wl='-Wl,'
  12490. lt_prog_compiler_pic='-fpic'
  12491. lt_prog_compiler_static='-Bstatic'
  12492. ;;
  12493. ccc*)
  12494. lt_prog_compiler_wl='-Wl,'
  12495. # All Alpha code is PIC.
  12496. lt_prog_compiler_static='-non_shared'
  12497. ;;
  12498. xl* | bgxl* | bgf* | mpixl*)
  12499. # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
  12500. lt_prog_compiler_wl='-Wl,'
  12501. lt_prog_compiler_pic='-qpic'
  12502. lt_prog_compiler_static='-qstaticlink'
  12503. ;;
  12504. *)
  12505. case `$CC -V 2>&1 | $SED 5q` in
  12506. *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
  12507. # Sun Fortran 8.3 passes all unrecognized flags to the linker
  12508. lt_prog_compiler_pic='-KPIC'
  12509. lt_prog_compiler_static='-Bstatic'
  12510. lt_prog_compiler_wl=''
  12511. ;;
  12512. *Sun\ F* | *Sun*Fortran*)
  12513. lt_prog_compiler_pic='-KPIC'
  12514. lt_prog_compiler_static='-Bstatic'
  12515. lt_prog_compiler_wl='-Qoption ld '
  12516. ;;
  12517. *Sun\ C*)
  12518. # Sun C 5.9
  12519. lt_prog_compiler_pic='-KPIC'
  12520. lt_prog_compiler_static='-Bstatic'
  12521. lt_prog_compiler_wl='-Wl,'
  12522. ;;
  12523. *Intel*\ [CF]*Compiler*)
  12524. lt_prog_compiler_wl='-Wl,'
  12525. lt_prog_compiler_pic='-fPIC'
  12526. lt_prog_compiler_static='-static'
  12527. ;;
  12528. *Portland\ Group*)
  12529. lt_prog_compiler_wl='-Wl,'
  12530. lt_prog_compiler_pic='-fpic'
  12531. lt_prog_compiler_static='-Bstatic'
  12532. ;;
  12533. esac
  12534. ;;
  12535. esac
  12536. ;;
  12537. newsos6)
  12538. lt_prog_compiler_pic='-KPIC'
  12539. lt_prog_compiler_static='-Bstatic'
  12540. ;;
  12541. *-mlibc)
  12542. lt_prog_compiler_wl='-Wl,'
  12543. lt_prog_compiler_pic='-fPIC'
  12544. lt_prog_compiler_static='-static'
  12545. ;;
  12546. *nto* | *qnx*)
  12547. # QNX uses GNU C++, but need to define -shared option too, otherwise
  12548. # it will coredump.
  12549. lt_prog_compiler_pic='-fPIC -shared'
  12550. ;;
  12551. osf3* | osf4* | osf5*)
  12552. lt_prog_compiler_wl='-Wl,'
  12553. # All OSF/1 code is PIC.
  12554. lt_prog_compiler_static='-non_shared'
  12555. ;;
  12556. rdos*)
  12557. lt_prog_compiler_static='-non_shared'
  12558. ;;
  12559. serenity*)
  12560. ;;
  12561. solaris*)
  12562. lt_prog_compiler_pic='-KPIC'
  12563. lt_prog_compiler_static='-Bstatic'
  12564. case $cc_basename in
  12565. f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
  12566. lt_prog_compiler_wl='-Qoption ld ';;
  12567. *)
  12568. lt_prog_compiler_wl='-Wl,';;
  12569. esac
  12570. ;;
  12571. sunos4*)
  12572. lt_prog_compiler_wl='-Qoption ld '
  12573. lt_prog_compiler_pic='-PIC'
  12574. lt_prog_compiler_static='-Bstatic'
  12575. ;;
  12576. sysv4 | sysv4.2uw2* | sysv4.3*)
  12577. lt_prog_compiler_wl='-Wl,'
  12578. lt_prog_compiler_pic='-KPIC'
  12579. lt_prog_compiler_static='-Bstatic'
  12580. ;;
  12581. sysv4*MP*)
  12582. if test -d /usr/nec; then
  12583. lt_prog_compiler_pic='-Kconform_pic'
  12584. lt_prog_compiler_static='-Bstatic'
  12585. fi
  12586. ;;
  12587. sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
  12588. lt_prog_compiler_wl='-Wl,'
  12589. lt_prog_compiler_pic='-KPIC'
  12590. lt_prog_compiler_static='-Bstatic'
  12591. ;;
  12592. unicos*)
  12593. lt_prog_compiler_wl='-Wl,'
  12594. lt_prog_compiler_can_build_shared=no
  12595. ;;
  12596. uts4*)
  12597. lt_prog_compiler_pic='-pic'
  12598. lt_prog_compiler_static='-Bstatic'
  12599. ;;
  12600. *)
  12601. lt_prog_compiler_can_build_shared=no
  12602. ;;
  12603. esac
  12604. fi
  12605. case $host_os in
  12606. # For platforms that do not support PIC, -DPIC is meaningless:
  12607. *djgpp*)
  12608. lt_prog_compiler_pic=
  12609. ;;
  12610. *)
  12611. lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
  12612. ;;
  12613. esac
  12614. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
  12615. printf %s "checking for $compiler option to produce PIC... " >&6; }
  12616. if test ${lt_cv_prog_compiler_pic+y}
  12617. then :
  12618. printf %s "(cached) " >&6
  12619. else case e in #(
  12620. e) lt_cv_prog_compiler_pic=$lt_prog_compiler_pic ;;
  12621. esac
  12622. fi
  12623. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
  12624. printf "%s\n" "$lt_cv_prog_compiler_pic" >&6; }
  12625. lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
  12626. #
  12627. # Check to make sure the PIC flag actually works.
  12628. #
  12629. if test -n "$lt_prog_compiler_pic"; then
  12630. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
  12631. printf %s "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
  12632. if test ${lt_cv_prog_compiler_pic_works+y}
  12633. then :
  12634. printf %s "(cached) " >&6
  12635. else case e in #(
  12636. e) lt_cv_prog_compiler_pic_works=no
  12637. ac_outfile=conftest.$ac_objext
  12638. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  12639. lt_compiler_flag="$lt_prog_compiler_pic -DPIC" ## exclude from sc_useless_quotes_in_assignment
  12640. # Insert the option either (1) after the last *FLAGS variable, or
  12641. # (2) before a word containing "conftest.", or (3) at the end.
  12642. # Note that $ac_compile itself does not contain backslashes and begins
  12643. # with a dollar sign (not a hyphen), so the echo should work correctly.
  12644. # The option is referenced via a variable to avoid confusing sed.
  12645. lt_compile=`echo "$ac_compile" | $SED \
  12646. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  12647. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  12648. -e 's:$: $lt_compiler_flag:'`
  12649. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  12650. (eval "$lt_compile" 2>conftest.err)
  12651. ac_status=$?
  12652. cat conftest.err >&5
  12653. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  12654. if (exit $ac_status) && test -s "$ac_outfile"; then
  12655. # The compiler can only warn and ignore the option if not recognized
  12656. # So say no if there are warnings other than the usual output.
  12657. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
  12658. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  12659. if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
  12660. lt_cv_prog_compiler_pic_works=yes
  12661. fi
  12662. fi
  12663. $RM conftest*
  12664. ;;
  12665. esac
  12666. fi
  12667. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
  12668. printf "%s\n" "$lt_cv_prog_compiler_pic_works" >&6; }
  12669. if test yes = "$lt_cv_prog_compiler_pic_works"; then
  12670. case $lt_prog_compiler_pic in
  12671. "" | " "*) ;;
  12672. *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
  12673. esac
  12674. else
  12675. lt_prog_compiler_pic=
  12676. lt_prog_compiler_can_build_shared=no
  12677. fi
  12678. fi
  12679. #
  12680. # Check to make sure the static flag actually works.
  12681. #
  12682. wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
  12683. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
  12684. printf %s "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
  12685. if test ${lt_cv_prog_compiler_static_works+y}
  12686. then :
  12687. printf %s "(cached) " >&6
  12688. else case e in #(
  12689. e) lt_cv_prog_compiler_static_works=no
  12690. save_LDFLAGS=$LDFLAGS
  12691. LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
  12692. echo "$lt_simple_link_test_code" > conftest.$ac_ext
  12693. if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
  12694. # The linker can only warn and ignore the option if not recognized
  12695. # So say no if there are warnings
  12696. if test -s conftest.err; then
  12697. # Append any errors to the config.log.
  12698. cat conftest.err 1>&5
  12699. $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
  12700. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  12701. if diff conftest.exp conftest.er2 >/dev/null; then
  12702. lt_cv_prog_compiler_static_works=yes
  12703. fi
  12704. else
  12705. lt_cv_prog_compiler_static_works=yes
  12706. fi
  12707. fi
  12708. $RM -r conftest*
  12709. LDFLAGS=$save_LDFLAGS
  12710. ;;
  12711. esac
  12712. fi
  12713. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
  12714. printf "%s\n" "$lt_cv_prog_compiler_static_works" >&6; }
  12715. if test yes = "$lt_cv_prog_compiler_static_works"; then
  12716. :
  12717. else
  12718. lt_prog_compiler_static=
  12719. fi
  12720. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
  12721. printf %s "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
  12722. if test ${lt_cv_prog_compiler_c_o+y}
  12723. then :
  12724. printf %s "(cached) " >&6
  12725. else case e in #(
  12726. e) lt_cv_prog_compiler_c_o=no
  12727. $RM -r conftest 2>/dev/null
  12728. mkdir conftest
  12729. cd conftest
  12730. mkdir out
  12731. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  12732. lt_compiler_flag="-o out/conftest2.$ac_objext"
  12733. # Insert the option either (1) after the last *FLAGS variable, or
  12734. # (2) before a word containing "conftest.", or (3) at the end.
  12735. # Note that $ac_compile itself does not contain backslashes and begins
  12736. # with a dollar sign (not a hyphen), so the echo should work correctly.
  12737. lt_compile=`echo "$ac_compile" | $SED \
  12738. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  12739. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  12740. -e 's:$: $lt_compiler_flag:'`
  12741. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  12742. (eval "$lt_compile" 2>out/conftest.err)
  12743. ac_status=$?
  12744. cat out/conftest.err >&5
  12745. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  12746. if (exit $ac_status) && test -s out/conftest2.$ac_objext
  12747. then
  12748. # The compiler can only warn and ignore the option if not recognized
  12749. # So say no if there are warnings
  12750. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
  12751. $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
  12752. if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
  12753. lt_cv_prog_compiler_c_o=yes
  12754. fi
  12755. fi
  12756. chmod u+w . 2>&5
  12757. $RM conftest*
  12758. # SGI C++ compiler will create directory out/ii_files/ for
  12759. # template instantiation
  12760. test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
  12761. $RM out/* && rmdir out
  12762. cd ..
  12763. $RM -r conftest
  12764. $RM conftest*
  12765. ;;
  12766. esac
  12767. fi
  12768. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
  12769. printf "%s\n" "$lt_cv_prog_compiler_c_o" >&6; }
  12770. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
  12771. printf %s "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
  12772. if test ${lt_cv_prog_compiler_c_o+y}
  12773. then :
  12774. printf %s "(cached) " >&6
  12775. else case e in #(
  12776. e) lt_cv_prog_compiler_c_o=no
  12777. $RM -r conftest 2>/dev/null
  12778. mkdir conftest
  12779. cd conftest
  12780. mkdir out
  12781. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  12782. lt_compiler_flag="-o out/conftest2.$ac_objext"
  12783. # Insert the option either (1) after the last *FLAGS variable, or
  12784. # (2) before a word containing "conftest.", or (3) at the end.
  12785. # Note that $ac_compile itself does not contain backslashes and begins
  12786. # with a dollar sign (not a hyphen), so the echo should work correctly.
  12787. lt_compile=`echo "$ac_compile" | $SED \
  12788. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  12789. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  12790. -e 's:$: $lt_compiler_flag:'`
  12791. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  12792. (eval "$lt_compile" 2>out/conftest.err)
  12793. ac_status=$?
  12794. cat out/conftest.err >&5
  12795. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  12796. if (exit $ac_status) && test -s out/conftest2.$ac_objext
  12797. then
  12798. # The compiler can only warn and ignore the option if not recognized
  12799. # So say no if there are warnings
  12800. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
  12801. $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
  12802. if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
  12803. lt_cv_prog_compiler_c_o=yes
  12804. fi
  12805. fi
  12806. chmod u+w . 2>&5
  12807. $RM conftest*
  12808. # SGI C++ compiler will create directory out/ii_files/ for
  12809. # template instantiation
  12810. test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
  12811. $RM out/* && rmdir out
  12812. cd ..
  12813. $RM -r conftest
  12814. $RM conftest*
  12815. ;;
  12816. esac
  12817. fi
  12818. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
  12819. printf "%s\n" "$lt_cv_prog_compiler_c_o" >&6; }
  12820. hard_links=nottested
  12821. if test no = "$lt_cv_prog_compiler_c_o" && test no != "$need_locks"; then
  12822. # do not overwrite the value of need_locks provided by the user
  12823. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
  12824. printf %s "checking if we can lock with hard links... " >&6; }
  12825. hard_links=yes
  12826. $RM conftest*
  12827. ln conftest.a conftest.b 2>/dev/null && hard_links=no
  12828. touch conftest.a
  12829. ln conftest.a conftest.b 2>&5 || hard_links=no
  12830. ln conftest.a conftest.b 2>/dev/null && hard_links=no
  12831. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
  12832. printf "%s\n" "$hard_links" >&6; }
  12833. if test no = "$hard_links"; then
  12834. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5
  12835. printf "%s\n" "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;}
  12836. need_locks=warn
  12837. fi
  12838. else
  12839. need_locks=no
  12840. fi
  12841. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
  12842. printf %s "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
  12843. runpath_var=
  12844. allow_undefined_flag=
  12845. always_export_symbols=no
  12846. archive_cmds=
  12847. archive_expsym_cmds=
  12848. compiler_needs_object=no
  12849. enable_shared_with_static_runtimes=no
  12850. export_dynamic_flag_spec=
  12851. export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
  12852. hardcode_automatic=no
  12853. hardcode_direct=no
  12854. hardcode_direct_absolute=no
  12855. hardcode_libdir_flag_spec=
  12856. hardcode_libdir_separator=
  12857. hardcode_minus_L=no
  12858. hardcode_shlibpath_var=unsupported
  12859. inherit_rpath=no
  12860. link_all_deplibs=unknown
  12861. module_cmds=
  12862. module_expsym_cmds=
  12863. old_archive_from_new_cmds=
  12864. old_archive_from_expsyms_cmds=
  12865. thread_safe_flag_spec=
  12866. whole_archive_flag_spec=
  12867. # include_expsyms should be a list of space-separated symbols to be *always*
  12868. # included in the symbol list
  12869. include_expsyms=
  12870. # exclude_expsyms can be an extended regexp of symbols to exclude
  12871. # it will be wrapped by ' (' and ')$', so one must not match beginning or
  12872. # end of line. Example: 'a|bc|.*d.*' will exclude the symbols 'a' and 'bc',
  12873. # as well as any symbol that contains 'd'.
  12874. exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
  12875. # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
  12876. # platforms (ab)use it in PIC code, but their linkers get confused if
  12877. # the symbol is explicitly referenced. Since portable code cannot
  12878. # rely on this symbol name, it's probably fine to never include it in
  12879. # preloaded symbol tables.
  12880. # Exclude shared library initialization/finalization symbols.
  12881. extract_expsyms_cmds=
  12882. case $host_os in
  12883. cygwin* | mingw* | windows* | pw32* | cegcc*)
  12884. # FIXME: the MSVC++ and ICC port hasn't been tested in a loooong time
  12885. # When not using gcc, we currently assume that we are using
  12886. # Microsoft Visual C++ or Intel C++ Compiler.
  12887. if test yes != "$GCC"; then
  12888. with_gnu_ld=no
  12889. fi
  12890. ;;
  12891. interix*)
  12892. # we just hope/assume this is gcc and not c89 (= MSVC++ or ICC)
  12893. with_gnu_ld=yes
  12894. ;;
  12895. esac
  12896. ld_shlibs=yes
  12897. # On some targets, GNU ld is compatible enough with the native linker
  12898. # that we're better off using the native interface for both.
  12899. lt_use_gnu_ld_interface=no
  12900. if test yes = "$with_gnu_ld"; then
  12901. case $host_os in
  12902. aix*)
  12903. # The AIX port of GNU ld has always aspired to compatibility
  12904. # with the native linker. However, as the warning in the GNU ld
  12905. # block says, versions before 2.19.5* couldn't really create working
  12906. # shared libraries, regardless of the interface used.
  12907. case `$LD -v 2>&1` in
  12908. *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
  12909. *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
  12910. *\ \(GNU\ Binutils\)\ [3-9]*) ;;
  12911. *)
  12912. lt_use_gnu_ld_interface=yes
  12913. ;;
  12914. esac
  12915. ;;
  12916. *)
  12917. lt_use_gnu_ld_interface=yes
  12918. ;;
  12919. esac
  12920. fi
  12921. if test yes = "$lt_use_gnu_ld_interface"; then
  12922. # If archive_cmds runs LD, not CC, wlarc should be empty
  12923. wlarc='$wl'
  12924. # Set some defaults for GNU ld with shared library support. These
  12925. # are reset later if shared libraries are not supported. Putting them
  12926. # here allows them to be overridden if necessary.
  12927. runpath_var=LD_RUN_PATH
  12928. hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
  12929. export_dynamic_flag_spec='$wl--export-dynamic'
  12930. # ancient GNU ld didn't support --whole-archive et. al.
  12931. if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
  12932. whole_archive_flag_spec=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'
  12933. else
  12934. whole_archive_flag_spec=
  12935. fi
  12936. supports_anon_versioning=no
  12937. case `$LD -v | $SED -e 's/([^)]\+)\s\+//' 2>&1` in
  12938. *GNU\ gold*) supports_anon_versioning=yes ;;
  12939. *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
  12940. *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
  12941. *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
  12942. *\ 2.11.*) ;; # other 2.11 versions
  12943. *) supports_anon_versioning=yes ;;
  12944. esac
  12945. # See if GNU ld supports shared libraries.
  12946. case $host_os in
  12947. aix[3-9]*)
  12948. # On AIX/PPC, the GNU linker is very broken
  12949. if test ia64 != "$host_cpu"; then
  12950. ld_shlibs=no
  12951. cat <<_LT_EOF 1>&2
  12952. *** Warning: the GNU linker, at least up to release 2.19, is reported
  12953. *** to be unable to reliably create shared libraries on AIX.
  12954. *** Therefore, libtool is disabling shared libraries support. If you
  12955. *** really care for shared libraries, you may want to install binutils
  12956. *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
  12957. *** You will then need to restart the configuration process.
  12958. _LT_EOF
  12959. fi
  12960. ;;
  12961. amigaos*)
  12962. case $host_cpu in
  12963. powerpc)
  12964. # see comment about AmigaOS4 .so support
  12965. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
  12966. archive_expsym_cmds=''
  12967. ;;
  12968. m68k)
  12969. 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)'
  12970. hardcode_libdir_flag_spec='-L$libdir'
  12971. hardcode_minus_L=yes
  12972. ;;
  12973. esac
  12974. ;;
  12975. beos*)
  12976. if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  12977. allow_undefined_flag=unsupported
  12978. # Joseph Beckenbach <[email protected]> says some releases of gcc
  12979. # support --undefined. This deserves some investigation. FIXME
  12980. archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
  12981. else
  12982. ld_shlibs=no
  12983. fi
  12984. ;;
  12985. cygwin* | mingw* | windows* | pw32* | cegcc*)
  12986. # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
  12987. # as there is no search path for DLLs.
  12988. hardcode_libdir_flag_spec='-L$libdir'
  12989. export_dynamic_flag_spec='$wl--export-all-symbols'
  12990. allow_undefined_flag=unsupported
  12991. always_export_symbols=no
  12992. enable_shared_with_static_runtimes=yes
  12993. 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'
  12994. exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
  12995. file_list_spec='@'
  12996. if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
  12997. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
  12998. # If the export-symbols file already is a .def file, use it as
  12999. # is; otherwise, prepend EXPORTS...
  13000. archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then
  13001. cp $export_symbols $output_objdir/$soname.def;
  13002. else
  13003. echo EXPORTS > $output_objdir/$soname.def;
  13004. cat $export_symbols >> $output_objdir/$soname.def;
  13005. fi~
  13006. $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
  13007. else
  13008. ld_shlibs=no
  13009. fi
  13010. ;;
  13011. haiku*)
  13012. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
  13013. link_all_deplibs=no
  13014. ;;
  13015. os2*)
  13016. hardcode_libdir_flag_spec='-L$libdir'
  13017. hardcode_minus_L=yes
  13018. allow_undefined_flag=unsupported
  13019. shrext_cmds=.dll
  13020. archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
  13021. $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
  13022. $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
  13023. $ECHO EXPORTS >> $output_objdir/$libname.def~
  13024. emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
  13025. $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
  13026. emximp -o $lib $output_objdir/$libname.def'
  13027. archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
  13028. $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
  13029. $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
  13030. $ECHO EXPORTS >> $output_objdir/$libname.def~
  13031. prefix_cmds="$SED"~
  13032. if test EXPORTS = "`$SED 1q $export_symbols`"; then
  13033. prefix_cmds="$prefix_cmds -e 1d";
  13034. fi~
  13035. prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
  13036. cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
  13037. $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
  13038. emximp -o $lib $output_objdir/$libname.def'
  13039. old_archive_from_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
  13040. enable_shared_with_static_runtimes=yes
  13041. file_list_spec='@'
  13042. ;;
  13043. interix[3-9]*)
  13044. hardcode_direct=no
  13045. hardcode_shlibpath_var=no
  13046. hardcode_libdir_flag_spec='$wl-rpath,$libdir'
  13047. export_dynamic_flag_spec='$wl-E'
  13048. # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
  13049. # Instead, shared libraries are loaded at an image base (0x10000000 by
  13050. # default) and relocated if they conflict, which is a slow very memory
  13051. # consuming and fragmenting process. To avoid this, we pick a random,
  13052. # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
  13053. # time. Moving up from 0x10000000 also allows more sbrk(2) space.
  13054. archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
  13055. 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'
  13056. ;;
  13057. gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
  13058. tmp_diet=no
  13059. if test linux-dietlibc = "$host_os"; then
  13060. case $cc_basename in
  13061. diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
  13062. esac
  13063. fi
  13064. if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
  13065. && test no = "$tmp_diet"
  13066. then
  13067. tmp_addflag=' $pic_flag'
  13068. tmp_sharedflag='-shared'
  13069. case $cc_basename,$host_cpu in
  13070. pgcc*) # Portland Group C compiler
  13071. 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'
  13072. tmp_addflag=' $pic_flag'
  13073. ;;
  13074. pgf77* | pgf90* | pgf95* | pgfortran*)
  13075. # Portland Group f77 and f90 compilers
  13076. 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'
  13077. tmp_addflag=' $pic_flag -Mnomain' ;;
  13078. ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
  13079. tmp_addflag=' -i_dynamic' ;;
  13080. efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
  13081. tmp_addflag=' -i_dynamic -nofor_main' ;;
  13082. ifc* | ifort*) # Intel Fortran compiler
  13083. tmp_addflag=' -nofor_main' ;;
  13084. lf95*) # Lahey Fortran 8.1
  13085. whole_archive_flag_spec=
  13086. tmp_sharedflag='--shared' ;;
  13087. nagfor*) # NAGFOR 5.3
  13088. tmp_sharedflag='-Wl,-shared' ;;
  13089. xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
  13090. tmp_sharedflag='-qmkshrobj'
  13091. tmp_addflag= ;;
  13092. nvcc*) # Cuda Compiler Driver 2.2
  13093. 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'
  13094. compiler_needs_object=yes
  13095. ;;
  13096. esac
  13097. case `$CC -V 2>&1 | $SED 5q` in
  13098. *Sun\ C*) # Sun C 5.9
  13099. 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'
  13100. compiler_needs_object=yes
  13101. tmp_sharedflag='-G' ;;
  13102. *Sun\ F*) # Sun Fortran 8.3
  13103. tmp_sharedflag='-G' ;;
  13104. esac
  13105. archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
  13106. if test yes = "$supports_anon_versioning"; then
  13107. archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
  13108. cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
  13109. echo "local: *; };" >> $output_objdir/$libname.ver~
  13110. $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib'
  13111. fi
  13112. case $cc_basename in
  13113. tcc*)
  13114. hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
  13115. export_dynamic_flag_spec='-rdynamic'
  13116. ;;
  13117. xlf* | bgf* | bgxlf* | mpixlf*)
  13118. # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
  13119. whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
  13120. hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
  13121. archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
  13122. if test yes = "$supports_anon_versioning"; then
  13123. archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
  13124. cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
  13125. echo "local: *; };" >> $output_objdir/$libname.ver~
  13126. $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
  13127. fi
  13128. ;;
  13129. esac
  13130. else
  13131. ld_shlibs=no
  13132. fi
  13133. ;;
  13134. *-mlibc)
  13135. archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
  13136. archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
  13137. ;;
  13138. netbsd* | netbsdelf*-gnu)
  13139. if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  13140. archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
  13141. wlarc=
  13142. else
  13143. archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
  13144. archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
  13145. fi
  13146. ;;
  13147. solaris*)
  13148. if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
  13149. ld_shlibs=no
  13150. cat <<_LT_EOF 1>&2
  13151. *** Warning: The releases 2.8.* of the GNU linker cannot reliably
  13152. *** create shared libraries on Solaris systems. Therefore, libtool
  13153. *** is disabling shared libraries support. We urge you to upgrade GNU
  13154. *** binutils to release 2.9.1 or newer. Another option is to modify
  13155. *** your PATH or compiler configuration so that the native linker is
  13156. *** used, and then restart.
  13157. _LT_EOF
  13158. elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  13159. archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
  13160. archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
  13161. else
  13162. ld_shlibs=no
  13163. fi
  13164. ;;
  13165. sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
  13166. case `$LD -v 2>&1` in
  13167. *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
  13168. ld_shlibs=no
  13169. cat <<_LT_EOF 1>&2
  13170. *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 cannot
  13171. *** reliably create shared libraries on SCO systems. Therefore, libtool
  13172. *** is disabling shared libraries support. We urge you to upgrade GNU
  13173. *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
  13174. *** your PATH or compiler configuration so that the native linker is
  13175. *** used, and then restart.
  13176. _LT_EOF
  13177. ;;
  13178. *)
  13179. # For security reasons, it is highly recommended that you always
  13180. # use absolute paths for naming shared libraries, and exclude the
  13181. # DT_RUNPATH tag from executables and libraries. But doing so
  13182. # requires that you compile everything twice, which is a pain.
  13183. if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  13184. hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
  13185. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
  13186. archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
  13187. else
  13188. ld_shlibs=no
  13189. fi
  13190. ;;
  13191. esac
  13192. ;;
  13193. sunos4*)
  13194. archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  13195. wlarc=
  13196. hardcode_direct=yes
  13197. hardcode_shlibpath_var=no
  13198. ;;
  13199. *)
  13200. if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  13201. archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
  13202. archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
  13203. else
  13204. ld_shlibs=no
  13205. fi
  13206. ;;
  13207. esac
  13208. if test no = "$ld_shlibs"; then
  13209. runpath_var=
  13210. hardcode_libdir_flag_spec=
  13211. export_dynamic_flag_spec=
  13212. whole_archive_flag_spec=
  13213. fi
  13214. else
  13215. # PORTME fill in a description of your system's linker (not GNU ld)
  13216. case $host_os in
  13217. aix3*)
  13218. allow_undefined_flag=unsupported
  13219. always_export_symbols=yes
  13220. 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'
  13221. # Note: this linker hardcodes the directories in LIBPATH if there
  13222. # are no directories specified by -L.
  13223. hardcode_minus_L=yes
  13224. if test yes = "$GCC" && test -z "$lt_prog_compiler_static"; then
  13225. # Neither direct hardcoding nor static linking is supported with a
  13226. # broken collect2.
  13227. hardcode_direct=unsupported
  13228. fi
  13229. ;;
  13230. aix[4-9]*)
  13231. if test ia64 = "$host_cpu"; then
  13232. # On IA64, the linker does run time linking by default, so we don't
  13233. # have to do anything special.
  13234. aix_use_runtimelinking=no
  13235. exp_sym_flag='-Bexport'
  13236. no_entry_flag=
  13237. else
  13238. # If we're using GNU nm, then we don't want the "-C" option.
  13239. # -C means demangle to GNU nm, but means don't demangle to AIX nm.
  13240. # Without the "-l" option, or with the "-B" option, AIX nm treats
  13241. # weak defined symbols like other global defined symbols, whereas
  13242. # GNU nm marks them as "W".
  13243. # While the 'weak' keyword is ignored in the Export File, we need
  13244. # it in the Import File for the 'aix-soname' feature, so we have
  13245. # to replace the "-B" option with "-P" for AIX nm.
  13246. if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
  13247. 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'
  13248. else
  13249. 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 == "L") || (\$ 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'
  13250. fi
  13251. aix_use_runtimelinking=no
  13252. # Test if we are trying to use run time linking or normal
  13253. # AIX style linking. If -brtl is somewhere in LDFLAGS, we
  13254. # have runtime linking enabled, and use it for executables.
  13255. # For shared libraries, we enable/disable runtime linking
  13256. # depending on the kind of the shared library created -
  13257. # when "with_aix_soname,aix_use_runtimelinking" is:
  13258. # "aix,no" lib.a(lib.so.V) shared, rtl:no, for executables
  13259. # "aix,yes" lib.so shared, rtl:yes, for executables
  13260. # lib.a static archive
  13261. # "both,no" lib.so.V(shr.o) shared, rtl:yes
  13262. # lib.a(lib.so.V) shared, rtl:no, for executables
  13263. # "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables
  13264. # lib.a(lib.so.V) shared, rtl:no
  13265. # "svr4,*" lib.so.V(shr.o) shared, rtl:yes, for executables
  13266. # lib.a static archive
  13267. case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
  13268. for ld_flag in $LDFLAGS; do
  13269. if (test x-brtl = "x$ld_flag" || test x-Wl,-brtl = "x$ld_flag"); then
  13270. aix_use_runtimelinking=yes
  13271. break
  13272. fi
  13273. done
  13274. if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then
  13275. # With aix-soname=svr4, we create the lib.so.V shared archives only,
  13276. # so we don't have lib.a shared libs to link our executables.
  13277. # We have to force runtime linking in this case.
  13278. aix_use_runtimelinking=yes
  13279. LDFLAGS="$LDFLAGS -Wl,-brtl"
  13280. fi
  13281. ;;
  13282. esac
  13283. exp_sym_flag='-bexport'
  13284. no_entry_flag='-bnoentry'
  13285. fi
  13286. # When large executables or shared objects are built, AIX ld can
  13287. # have problems creating the table of contents. If linking a library
  13288. # or program results in "error TOC overflow" add -mminimal-toc to
  13289. # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
  13290. # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
  13291. archive_cmds=''
  13292. hardcode_direct=yes
  13293. hardcode_direct_absolute=yes
  13294. hardcode_libdir_separator=':'
  13295. link_all_deplibs=yes
  13296. file_list_spec='$wl-f,'
  13297. case $with_aix_soname,$aix_use_runtimelinking in
  13298. aix,*) ;; # traditional, no import file
  13299. svr4,* | *,yes) # use import file
  13300. # The Import File defines what to hardcode.
  13301. hardcode_direct=no
  13302. hardcode_direct_absolute=no
  13303. ;;
  13304. esac
  13305. if test yes = "$GCC"; then
  13306. case $host_os in aix4.[012]|aix4.[012].*)
  13307. # We only want to do this on AIX 4.2 and lower, the check
  13308. # below for broken collect2 doesn't work under 4.3+
  13309. collect2name=`$CC -print-prog-name=collect2`
  13310. if test -f "$collect2name" &&
  13311. strings "$collect2name" | $GREP resolve_lib_name >/dev/null
  13312. then
  13313. # We have reworked collect2
  13314. :
  13315. else
  13316. # We have old collect2
  13317. hardcode_direct=unsupported
  13318. # It fails to find uninstalled libraries when the uninstalled
  13319. # path is not listed in the libpath. Setting hardcode_minus_L
  13320. # to unsupported forces relinking
  13321. hardcode_minus_L=yes
  13322. hardcode_libdir_flag_spec='-L$libdir'
  13323. hardcode_libdir_separator=
  13324. fi
  13325. ;;
  13326. esac
  13327. shared_flag='-shared'
  13328. if test yes = "$aix_use_runtimelinking"; then
  13329. shared_flag="$shared_flag "'$wl-G'
  13330. fi
  13331. # Need to ensure runtime linking is disabled for the traditional
  13332. # shared library, or the linker may eventually find shared libraries
  13333. # /with/ Import File - we do not want to mix them.
  13334. shared_flag_aix='-shared'
  13335. shared_flag_svr4='-shared $wl-G'
  13336. else
  13337. # not using gcc
  13338. if test ia64 = "$host_cpu"; then
  13339. # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
  13340. # chokes on -Wl,-G. The following line is correct:
  13341. shared_flag='-G'
  13342. else
  13343. if test yes = "$aix_use_runtimelinking"; then
  13344. shared_flag='$wl-G'
  13345. else
  13346. shared_flag='$wl-bM:SRE'
  13347. fi
  13348. shared_flag_aix='$wl-bM:SRE'
  13349. shared_flag_svr4='$wl-G'
  13350. fi
  13351. fi
  13352. export_dynamic_flag_spec='$wl-bexpall'
  13353. # It seems that -bexpall does not export symbols beginning with
  13354. # underscore (_), so it is better to generate a list of symbols to export.
  13355. always_export_symbols=yes
  13356. if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then
  13357. # Warning - without using the other runtime loading flags (-brtl),
  13358. # -berok will link without error, but may produce a broken library.
  13359. allow_undefined_flag='-berok'
  13360. # Determine the default libpath from the value encoded in an
  13361. # empty executable.
  13362. if test set = "${lt_cv_aix_libpath+set}"; then
  13363. aix_libpath=$lt_cv_aix_libpath
  13364. else
  13365. if test ${lt_cv_aix_libpath_+y}
  13366. then :
  13367. printf %s "(cached) " >&6
  13368. else case e in #(
  13369. e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13370. /* end confdefs.h. */
  13371. int
  13372. main (void)
  13373. {
  13374. ;
  13375. return 0;
  13376. }
  13377. _ACEOF
  13378. if ac_fn_c_try_link "$LINENO"
  13379. then :
  13380. lt_aix_libpath_sed='
  13381. /Import File Strings/,/^$/ {
  13382. /^0/ {
  13383. s/^0 *\([^ ]*\) *$/\1/
  13384. p
  13385. }
  13386. }'
  13387. lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  13388. # Check for a 64-bit object if we didn't find anything.
  13389. if test -z "$lt_cv_aix_libpath_"; then
  13390. lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  13391. fi
  13392. fi
  13393. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  13394. conftest$ac_exeext conftest.$ac_ext
  13395. if test -z "$lt_cv_aix_libpath_"; then
  13396. lt_cv_aix_libpath_=/usr/lib:/lib
  13397. fi
  13398. ;;
  13399. esac
  13400. fi
  13401. aix_libpath=$lt_cv_aix_libpath_
  13402. fi
  13403. hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
  13404. 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
  13405. else
  13406. if test ia64 = "$host_cpu"; then
  13407. hardcode_libdir_flag_spec='$wl-R $libdir:/usr/lib:/lib'
  13408. allow_undefined_flag="-z nodefs"
  13409. 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"
  13410. else
  13411. # Determine the default libpath from the value encoded in an
  13412. # empty executable.
  13413. if test set = "${lt_cv_aix_libpath+set}"; then
  13414. aix_libpath=$lt_cv_aix_libpath
  13415. else
  13416. if test ${lt_cv_aix_libpath_+y}
  13417. then :
  13418. printf %s "(cached) " >&6
  13419. else case e in #(
  13420. e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13421. /* end confdefs.h. */
  13422. int
  13423. main (void)
  13424. {
  13425. ;
  13426. return 0;
  13427. }
  13428. _ACEOF
  13429. if ac_fn_c_try_link "$LINENO"
  13430. then :
  13431. lt_aix_libpath_sed='
  13432. /Import File Strings/,/^$/ {
  13433. /^0/ {
  13434. s/^0 *\([^ ]*\) *$/\1/
  13435. p
  13436. }
  13437. }'
  13438. lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  13439. # Check for a 64-bit object if we didn't find anything.
  13440. if test -z "$lt_cv_aix_libpath_"; then
  13441. lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  13442. fi
  13443. fi
  13444. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  13445. conftest$ac_exeext conftest.$ac_ext
  13446. if test -z "$lt_cv_aix_libpath_"; then
  13447. lt_cv_aix_libpath_=/usr/lib:/lib
  13448. fi
  13449. ;;
  13450. esac
  13451. fi
  13452. aix_libpath=$lt_cv_aix_libpath_
  13453. fi
  13454. hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
  13455. # Warning - without using the other run time loading flags,
  13456. # -berok will link without error, but may produce a broken library.
  13457. no_undefined_flag=' $wl-bernotok'
  13458. allow_undefined_flag=' $wl-berok'
  13459. if test yes = "$with_gnu_ld"; then
  13460. # We only use this code for GNU lds that support --whole-archive.
  13461. whole_archive_flag_spec='$wl--whole-archive$convenience $wl--no-whole-archive'
  13462. else
  13463. # Exported symbols can be pulled into shared objects from archives
  13464. whole_archive_flag_spec='$convenience'
  13465. fi
  13466. archive_cmds_need_lc=yes
  13467. archive_expsym_cmds='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d'
  13468. # -brtl affects multiple linker settings, -berok does not and is overridden later
  13469. compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([, ]\\)%-berok\\1%g"`'
  13470. if test svr4 != "$with_aix_soname"; then
  13471. # This is similar to how AIX traditionally builds its shared libraries.
  13472. 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'
  13473. fi
  13474. if test aix != "$with_aix_soname"; then
  13475. 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'
  13476. else
  13477. # used by -dlpreopen to get the symbols
  13478. archive_expsym_cmds="$archive_expsym_cmds"'~$MV $output_objdir/$realname.d/$soname $output_objdir'
  13479. fi
  13480. archive_expsym_cmds="$archive_expsym_cmds"'~$RM -r $output_objdir/$realname.d'
  13481. fi
  13482. fi
  13483. ;;
  13484. amigaos*)
  13485. case $host_cpu in
  13486. powerpc)
  13487. # see comment about AmigaOS4 .so support
  13488. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
  13489. archive_expsym_cmds=''
  13490. ;;
  13491. m68k)
  13492. 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)'
  13493. hardcode_libdir_flag_spec='-L$libdir'
  13494. hardcode_minus_L=yes
  13495. ;;
  13496. esac
  13497. ;;
  13498. bsdi[45]*)
  13499. export_dynamic_flag_spec=-rdynamic
  13500. ;;
  13501. cygwin* | mingw* | windows* | pw32* | cegcc*)
  13502. # When not using gcc, we currently assume that we are using
  13503. # Microsoft Visual C++ or Intel C++ Compiler.
  13504. # hardcode_libdir_flag_spec is actually meaningless, as there is
  13505. # no search path for DLLs.
  13506. case $cc_basename in
  13507. cl* | icl*)
  13508. # Native MSVC or ICC
  13509. hardcode_libdir_flag_spec=' '
  13510. allow_undefined_flag=unsupported
  13511. always_export_symbols=yes
  13512. file_list_spec='@'
  13513. # Tell ltmain to make .lib files, not .a files.
  13514. libext=lib
  13515. # Tell ltmain to make .dll files, not .so files.
  13516. shrext_cmds=.dll
  13517. # FIXME: Setting linknames here is a bad hack.
  13518. archive_cmds='$CC -Fe$output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames='
  13519. archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then
  13520. cp "$export_symbols" "$output_objdir/$soname.def";
  13521. echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp";
  13522. else
  13523. $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp;
  13524. fi~
  13525. $CC -Fe$tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
  13526. linknames='
  13527. # The linker will not automatically build a static lib if we build a DLL.
  13528. # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
  13529. enable_shared_with_static_runtimes=yes
  13530. exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
  13531. export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
  13532. # Don't use ranlib
  13533. old_postinstall_cmds='chmod 644 $oldlib'
  13534. postlink_cmds='lt_outputfile="@OUTPUT@"~
  13535. lt_tool_outputfile="@TOOL_OUTPUT@"~
  13536. case $lt_outputfile in
  13537. *.exe|*.EXE) ;;
  13538. *)
  13539. lt_outputfile=$lt_outputfile.exe
  13540. lt_tool_outputfile=$lt_tool_outputfile.exe
  13541. ;;
  13542. esac~
  13543. if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then
  13544. $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
  13545. $RM "$lt_outputfile.manifest";
  13546. fi'
  13547. ;;
  13548. *)
  13549. # Assume MSVC and ICC wrapper
  13550. hardcode_libdir_flag_spec=' '
  13551. allow_undefined_flag=unsupported
  13552. # Tell ltmain to make .lib files, not .a files.
  13553. libext=lib
  13554. # Tell ltmain to make .dll files, not .so files.
  13555. shrext_cmds=.dll
  13556. # FIXME: Setting linknames here is a bad hack.
  13557. archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
  13558. # The linker will automatically build a .lib file if we build a DLL.
  13559. old_archive_from_new_cmds='true'
  13560. # FIXME: Should let the user specify the lib program.
  13561. old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
  13562. enable_shared_with_static_runtimes=yes
  13563. ;;
  13564. esac
  13565. ;;
  13566. darwin* | rhapsody*)
  13567. archive_cmds_need_lc=no
  13568. hardcode_direct=no
  13569. hardcode_automatic=yes
  13570. hardcode_shlibpath_var=unsupported
  13571. if test yes = "$lt_cv_ld_force_load"; then
  13572. 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\"`'
  13573. else
  13574. whole_archive_flag_spec=''
  13575. fi
  13576. link_all_deplibs=yes
  13577. allow_undefined_flag=$_lt_dar_allow_undefined
  13578. case $cc_basename in
  13579. ifort*|nagfor*) _lt_dar_can_shared=yes ;;
  13580. *) _lt_dar_can_shared=$GCC ;;
  13581. esac
  13582. if test yes = "$_lt_dar_can_shared"; then
  13583. output_verbose_link_cmd=func_echo_all
  13584. archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dsymutil"
  13585. module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil"
  13586. 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"
  13587. 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"
  13588. else
  13589. ld_shlibs=no
  13590. fi
  13591. ;;
  13592. dgux*)
  13593. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  13594. hardcode_libdir_flag_spec='-L$libdir'
  13595. hardcode_shlibpath_var=no
  13596. ;;
  13597. # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
  13598. # support. Future versions do this automatically, but an explicit c++rt0.o
  13599. # does not break anything, and helps significantly (at the cost of a little
  13600. # extra space).
  13601. freebsd2.2*)
  13602. archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
  13603. hardcode_libdir_flag_spec='-R$libdir'
  13604. hardcode_direct=yes
  13605. hardcode_shlibpath_var=no
  13606. ;;
  13607. # Unfortunately, older versions of FreeBSD 2 do not have this feature.
  13608. freebsd2.*)
  13609. archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  13610. hardcode_direct=yes
  13611. hardcode_minus_L=yes
  13612. hardcode_shlibpath_var=no
  13613. ;;
  13614. # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
  13615. freebsd* | dragonfly* | midnightbsd*)
  13616. archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  13617. hardcode_libdir_flag_spec='-R$libdir'
  13618. hardcode_direct=yes
  13619. hardcode_shlibpath_var=no
  13620. ;;
  13621. hpux9*)
  13622. if test yes = "$GCC"; then
  13623. 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'
  13624. else
  13625. 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'
  13626. fi
  13627. hardcode_libdir_flag_spec='$wl+b $wl$libdir'
  13628. hardcode_libdir_separator=:
  13629. hardcode_direct=yes
  13630. # hardcode_minus_L: Not really in the search PATH,
  13631. # but as the default location of the library.
  13632. hardcode_minus_L=yes
  13633. export_dynamic_flag_spec='$wl-E'
  13634. ;;
  13635. hpux10*)
  13636. if test yes,no = "$GCC,$with_gnu_ld"; then
  13637. archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  13638. else
  13639. archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
  13640. fi
  13641. if test no = "$with_gnu_ld"; then
  13642. hardcode_libdir_flag_spec='$wl+b $wl$libdir'
  13643. hardcode_libdir_separator=:
  13644. hardcode_direct=yes
  13645. hardcode_direct_absolute=yes
  13646. export_dynamic_flag_spec='$wl-E'
  13647. # hardcode_minus_L: Not really in the search PATH,
  13648. # but as the default location of the library.
  13649. hardcode_minus_L=yes
  13650. fi
  13651. ;;
  13652. hpux11*)
  13653. if test yes,no = "$GCC,$with_gnu_ld"; then
  13654. case $host_cpu in
  13655. hppa*64*)
  13656. archive_cmds='$CC -shared $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
  13657. ;;
  13658. ia64*)
  13659. archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
  13660. ;;
  13661. *)
  13662. archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  13663. ;;
  13664. esac
  13665. else
  13666. case $host_cpu in
  13667. hppa*64*)
  13668. archive_cmds='$CC -b $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
  13669. ;;
  13670. ia64*)
  13671. archive_cmds='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
  13672. ;;
  13673. *)
  13674. # Older versions of the 11.00 compiler do not understand -b yet
  13675. # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
  13676. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
  13677. printf %s "checking if $CC understands -b... " >&6; }
  13678. if test ${lt_cv_prog_compiler__b+y}
  13679. then :
  13680. printf %s "(cached) " >&6
  13681. else case e in #(
  13682. e) lt_cv_prog_compiler__b=no
  13683. save_LDFLAGS=$LDFLAGS
  13684. LDFLAGS="$LDFLAGS -b"
  13685. echo "$lt_simple_link_test_code" > conftest.$ac_ext
  13686. if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
  13687. # The linker can only warn and ignore the option if not recognized
  13688. # So say no if there are warnings
  13689. if test -s conftest.err; then
  13690. # Append any errors to the config.log.
  13691. cat conftest.err 1>&5
  13692. $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
  13693. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  13694. if diff conftest.exp conftest.er2 >/dev/null; then
  13695. lt_cv_prog_compiler__b=yes
  13696. fi
  13697. else
  13698. lt_cv_prog_compiler__b=yes
  13699. fi
  13700. fi
  13701. $RM -r conftest*
  13702. LDFLAGS=$save_LDFLAGS
  13703. ;;
  13704. esac
  13705. fi
  13706. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
  13707. printf "%s\n" "$lt_cv_prog_compiler__b" >&6; }
  13708. if test yes = "$lt_cv_prog_compiler__b"; then
  13709. archive_cmds='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  13710. else
  13711. archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
  13712. fi
  13713. ;;
  13714. esac
  13715. fi
  13716. if test no = "$with_gnu_ld"; then
  13717. hardcode_libdir_flag_spec='$wl+b $wl$libdir'
  13718. hardcode_libdir_separator=:
  13719. case $host_cpu in
  13720. hppa*64*|ia64*)
  13721. hardcode_direct=no
  13722. hardcode_shlibpath_var=no
  13723. ;;
  13724. *)
  13725. hardcode_direct=yes
  13726. hardcode_direct_absolute=yes
  13727. export_dynamic_flag_spec='$wl-E'
  13728. # hardcode_minus_L: Not really in the search PATH,
  13729. # but as the default location of the library.
  13730. hardcode_minus_L=yes
  13731. ;;
  13732. esac
  13733. fi
  13734. ;;
  13735. irix5* | irix6* | nonstopux*)
  13736. if test yes = "$GCC"; then
  13737. 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'
  13738. # Try to use the -exported_symbol ld option, if it does not
  13739. # work, assume that -exports_file does not work either and
  13740. # implicitly export all symbols.
  13741. # This should be the same for all languages, so no per-tag cache variable.
  13742. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
  13743. printf %s "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
  13744. if test ${lt_cv_irix_exported_symbol+y}
  13745. then :
  13746. printf %s "(cached) " >&6
  13747. else case e in #(
  13748. e) save_LDFLAGS=$LDFLAGS
  13749. LDFLAGS="$LDFLAGS -shared $wl-exported_symbol ${wl}foo $wl-update_registry $wl/dev/null"
  13750. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13751. /* end confdefs.h. */
  13752. int foo (void) { return 0; }
  13753. _ACEOF
  13754. if ac_fn_c_try_link "$LINENO"
  13755. then :
  13756. lt_cv_irix_exported_symbol=yes
  13757. else case e in #(
  13758. e) lt_cv_irix_exported_symbol=no ;;
  13759. esac
  13760. fi
  13761. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  13762. conftest$ac_exeext conftest.$ac_ext
  13763. LDFLAGS=$save_LDFLAGS ;;
  13764. esac
  13765. fi
  13766. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
  13767. printf "%s\n" "$lt_cv_irix_exported_symbol" >&6; }
  13768. if test yes = "$lt_cv_irix_exported_symbol"; then
  13769. 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'
  13770. fi
  13771. else
  13772. 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'
  13773. 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'
  13774. fi
  13775. archive_cmds_need_lc='no'
  13776. hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
  13777. hardcode_libdir_separator=:
  13778. inherit_rpath=yes
  13779. link_all_deplibs=yes
  13780. ;;
  13781. linux*)
  13782. case $cc_basename in
  13783. tcc*)
  13784. # Fabrice Bellard et al's Tiny C Compiler
  13785. ld_shlibs=yes
  13786. archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  13787. hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
  13788. ;;
  13789. esac
  13790. ;;
  13791. *-mlibc)
  13792. ;;
  13793. netbsd* | netbsdelf*-gnu)
  13794. if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  13795. archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
  13796. else
  13797. archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
  13798. fi
  13799. hardcode_libdir_flag_spec='-R$libdir'
  13800. hardcode_direct=yes
  13801. hardcode_shlibpath_var=no
  13802. ;;
  13803. newsos6)
  13804. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  13805. hardcode_direct=yes
  13806. hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
  13807. hardcode_libdir_separator=:
  13808. hardcode_shlibpath_var=no
  13809. ;;
  13810. *nto* | *qnx*)
  13811. ;;
  13812. openbsd*)
  13813. if test -f /usr/libexec/ld.so; then
  13814. hardcode_direct=yes
  13815. hardcode_shlibpath_var=no
  13816. hardcode_direct_absolute=yes
  13817. if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
  13818. archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  13819. archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags $wl-retain-symbols-file,$export_symbols'
  13820. hardcode_libdir_flag_spec='$wl-rpath,$libdir'
  13821. export_dynamic_flag_spec='$wl-E'
  13822. else
  13823. archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  13824. hardcode_libdir_flag_spec='$wl-rpath,$libdir'
  13825. fi
  13826. else
  13827. ld_shlibs=no
  13828. fi
  13829. ;;
  13830. os2*)
  13831. hardcode_libdir_flag_spec='-L$libdir'
  13832. hardcode_minus_L=yes
  13833. allow_undefined_flag=unsupported
  13834. shrext_cmds=.dll
  13835. archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
  13836. $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
  13837. $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
  13838. $ECHO EXPORTS >> $output_objdir/$libname.def~
  13839. emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
  13840. $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
  13841. emximp -o $lib $output_objdir/$libname.def'
  13842. archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
  13843. $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
  13844. $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
  13845. $ECHO EXPORTS >> $output_objdir/$libname.def~
  13846. prefix_cmds="$SED"~
  13847. if test EXPORTS = "`$SED 1q $export_symbols`"; then
  13848. prefix_cmds="$prefix_cmds -e 1d";
  13849. fi~
  13850. prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
  13851. cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
  13852. $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
  13853. emximp -o $lib $output_objdir/$libname.def'
  13854. old_archive_from_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
  13855. enable_shared_with_static_runtimes=yes
  13856. file_list_spec='@'
  13857. ;;
  13858. osf3*)
  13859. if test yes = "$GCC"; then
  13860. allow_undefined_flag=' $wl-expect_unresolved $wl\*'
  13861. 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'
  13862. else
  13863. allow_undefined_flag=' -expect_unresolved \*'
  13864. 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'
  13865. fi
  13866. archive_cmds_need_lc='no'
  13867. hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
  13868. hardcode_libdir_separator=:
  13869. ;;
  13870. osf4* | osf5*) # as osf3* with the addition of -msym flag
  13871. if test yes = "$GCC"; then
  13872. allow_undefined_flag=' $wl-expect_unresolved $wl\*'
  13873. 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'
  13874. hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
  13875. else
  13876. allow_undefined_flag=' -expect_unresolved \*'
  13877. 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'
  13878. 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~
  13879. $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'
  13880. # Both c and cxx compiler support -rpath directly
  13881. hardcode_libdir_flag_spec='-rpath $libdir'
  13882. fi
  13883. archive_cmds_need_lc='no'
  13884. hardcode_libdir_separator=:
  13885. ;;
  13886. serenity*)
  13887. ;;
  13888. solaris*)
  13889. no_undefined_flag=' -z defs'
  13890. if test yes = "$GCC"; then
  13891. wlarc='$wl'
  13892. archive_cmds='$CC -shared $pic_flag $wl-z ${wl}text $wl-h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
  13893. archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  13894. $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'
  13895. else
  13896. case `$CC -V 2>&1` in
  13897. *"Compilers 5.0"*)
  13898. wlarc=''
  13899. archive_cmds='$LD -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $linker_flags'
  13900. archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  13901. $LD -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
  13902. ;;
  13903. *)
  13904. wlarc='$wl'
  13905. archive_cmds='$CC -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $compiler_flags'
  13906. archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  13907. $CC -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
  13908. ;;
  13909. esac
  13910. fi
  13911. hardcode_libdir_flag_spec='-R$libdir'
  13912. hardcode_shlibpath_var=no
  13913. case $host_os in
  13914. solaris2.[0-5] | solaris2.[0-5].*) ;;
  13915. *)
  13916. # The compiler driver will combine and reorder linker options,
  13917. # but understands '-z linker_flag'. GCC discards it without '$wl',
  13918. # but is careful enough not to reorder.
  13919. # Supported since Solaris 2.6 (maybe 2.5.1?)
  13920. if test yes = "$GCC"; then
  13921. whole_archive_flag_spec='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract'
  13922. else
  13923. whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
  13924. fi
  13925. ;;
  13926. esac
  13927. link_all_deplibs=yes
  13928. ;;
  13929. sunos4*)
  13930. if test sequent = "$host_vendor"; then
  13931. # Use $CC to link under sequent, because it throws in some extra .o
  13932. # files that make .init and .fini sections work.
  13933. archive_cmds='$CC -G $wl-h $soname -o $lib $libobjs $deplibs $compiler_flags'
  13934. else
  13935. archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
  13936. fi
  13937. hardcode_libdir_flag_spec='-L$libdir'
  13938. hardcode_direct=yes
  13939. hardcode_minus_L=yes
  13940. hardcode_shlibpath_var=no
  13941. ;;
  13942. sysv4)
  13943. case $host_vendor in
  13944. sni)
  13945. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  13946. hardcode_direct=yes # is this really true???
  13947. ;;
  13948. siemens)
  13949. ## LD is ld it makes a PLAMLIB
  13950. ## CC just makes a GrossModule.
  13951. archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
  13952. reload_cmds='$CC -r -o $output$reload_objs'
  13953. hardcode_direct=no
  13954. ;;
  13955. motorola)
  13956. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  13957. hardcode_direct=no #Motorola manual says yes, but my tests say they lie
  13958. ;;
  13959. esac
  13960. runpath_var='LD_RUN_PATH'
  13961. hardcode_shlibpath_var=no
  13962. ;;
  13963. sysv4.3*)
  13964. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  13965. hardcode_shlibpath_var=no
  13966. export_dynamic_flag_spec='-Bexport'
  13967. ;;
  13968. sysv4*MP*)
  13969. if test -d /usr/nec; then
  13970. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  13971. hardcode_shlibpath_var=no
  13972. runpath_var=LD_RUN_PATH
  13973. hardcode_runpath_var=yes
  13974. ld_shlibs=yes
  13975. fi
  13976. ;;
  13977. sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
  13978. no_undefined_flag='$wl-z,text'
  13979. archive_cmds_need_lc=no
  13980. hardcode_shlibpath_var=no
  13981. runpath_var='LD_RUN_PATH'
  13982. if test yes = "$GCC"; then
  13983. archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  13984. archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  13985. else
  13986. archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  13987. archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  13988. fi
  13989. ;;
  13990. sysv5* | sco3.2v5* | sco5v6*)
  13991. # Note: We CANNOT use -z defs as we might desire, because we do not
  13992. # link with -lc, and that would cause any symbols used from libc to
  13993. # always be unresolved, which means just about no library would
  13994. # ever link correctly. If we're not using GNU ld we use -z text
  13995. # though, which does catch some bad symbols but isn't as heavy-handed
  13996. # as -z defs.
  13997. no_undefined_flag='$wl-z,text'
  13998. allow_undefined_flag='$wl-z,nodefs'
  13999. archive_cmds_need_lc=no
  14000. hardcode_shlibpath_var=no
  14001. hardcode_libdir_flag_spec='$wl-R,$libdir'
  14002. hardcode_libdir_separator=':'
  14003. link_all_deplibs=yes
  14004. export_dynamic_flag_spec='$wl-Bexport'
  14005. runpath_var='LD_RUN_PATH'
  14006. if test yes = "$GCC"; then
  14007. archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  14008. archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  14009. else
  14010. archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  14011. archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  14012. fi
  14013. ;;
  14014. uts4*)
  14015. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  14016. hardcode_libdir_flag_spec='-L$libdir'
  14017. hardcode_shlibpath_var=no
  14018. ;;
  14019. *)
  14020. ld_shlibs=no
  14021. ;;
  14022. esac
  14023. if test sni = "$host_vendor"; then
  14024. case $host in
  14025. sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
  14026. export_dynamic_flag_spec='$wl-Blargedynsym'
  14027. ;;
  14028. esac
  14029. fi
  14030. fi
  14031. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
  14032. printf "%s\n" "$ld_shlibs" >&6; }
  14033. test no = "$ld_shlibs" && can_build_shared=no
  14034. with_gnu_ld=$with_gnu_ld
  14035. #
  14036. # Do we need to explicitly link libc?
  14037. #
  14038. case "x$archive_cmds_need_lc" in
  14039. x|xyes)
  14040. # Assume -lc should be added
  14041. archive_cmds_need_lc=yes
  14042. if test yes,yes = "$GCC,$enable_shared"; then
  14043. case $archive_cmds in
  14044. *'~'*)
  14045. # FIXME: we may have to deal with multi-command sequences.
  14046. ;;
  14047. '$CC '*)
  14048. # Test whether the compiler implicitly links with -lc since on some
  14049. # systems, -lgcc has to come before -lc. If gcc already passes -lc
  14050. # to ld, don't add -lc before -lgcc.
  14051. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
  14052. printf %s "checking whether -lc should be explicitly linked in... " >&6; }
  14053. if test ${lt_cv_archive_cmds_need_lc+y}
  14054. then :
  14055. printf %s "(cached) " >&6
  14056. else case e in #(
  14057. e) $RM conftest*
  14058. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  14059. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  14060. (eval $ac_compile) 2>&5
  14061. ac_status=$?
  14062. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  14063. test $ac_status = 0; } 2>conftest.err; then
  14064. soname=conftest
  14065. lib=conftest
  14066. libobjs=conftest.$ac_objext
  14067. deplibs=
  14068. wl=$lt_prog_compiler_wl
  14069. pic_flag=$lt_prog_compiler_pic
  14070. compiler_flags=-v
  14071. linker_flags=-v
  14072. verstring=
  14073. output_objdir=.
  14074. libname=conftest
  14075. lt_save_allow_undefined_flag=$allow_undefined_flag
  14076. allow_undefined_flag=
  14077. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
  14078. (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
  14079. ac_status=$?
  14080. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  14081. test $ac_status = 0; }
  14082. then
  14083. lt_cv_archive_cmds_need_lc=no
  14084. else
  14085. lt_cv_archive_cmds_need_lc=yes
  14086. fi
  14087. allow_undefined_flag=$lt_save_allow_undefined_flag
  14088. else
  14089. cat conftest.err 1>&5
  14090. fi
  14091. $RM conftest*
  14092. ;;
  14093. esac
  14094. fi
  14095. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
  14096. printf "%s\n" "$lt_cv_archive_cmds_need_lc" >&6; }
  14097. archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
  14098. ;;
  14099. esac
  14100. fi
  14101. ;;
  14102. esac
  14103. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
  14104. printf %s "checking dynamic linker characteristics... " >&6; }
  14105. if test yes = "$GCC"; then
  14106. case $host_os in
  14107. darwin*) lt_awk_arg='/^libraries:/,/LR/' ;;
  14108. *) lt_awk_arg='/^libraries:/' ;;
  14109. esac
  14110. case $host_os in
  14111. mingw* | windows* | cegcc*) lt_sed_strip_eq='s|=\([A-Za-z]:\)|\1|g' ;;
  14112. *) lt_sed_strip_eq='s|=/|/|g' ;;
  14113. esac
  14114. lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
  14115. case $lt_search_path_spec in
  14116. *\;*)
  14117. # if the path contains ";" then we assume it to be the separator
  14118. # otherwise default to the standard path separator (i.e. ":") - it is
  14119. # assumed that no part of a normal pathname contains ";" but that should
  14120. # okay in the real world where ";" in dirpaths is itself problematic.
  14121. lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
  14122. ;;
  14123. *)
  14124. lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
  14125. ;;
  14126. esac
  14127. # Ok, now we have the path, separated by spaces, we can step through it
  14128. # and add multilib dir if necessary...
  14129. lt_tmp_lt_search_path_spec=
  14130. lt_multi_os_dir=/`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
  14131. # ...but if some path component already ends with the multilib dir we assume
  14132. # that all is fine and trust -print-search-dirs as is (GCC 4.2? or newer).
  14133. case "$lt_multi_os_dir; $lt_search_path_spec " in
  14134. "/; "* | "/.; "* | "/./; "* | *"$lt_multi_os_dir "* | *"$lt_multi_os_dir/ "*)
  14135. lt_multi_os_dir=
  14136. ;;
  14137. esac
  14138. for lt_sys_path in $lt_search_path_spec; do
  14139. if test -d "$lt_sys_path$lt_multi_os_dir"; then
  14140. lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path$lt_multi_os_dir"
  14141. elif test -n "$lt_multi_os_dir"; then
  14142. test -d "$lt_sys_path" && \
  14143. lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
  14144. fi
  14145. done
  14146. lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
  14147. BEGIN {RS = " "; FS = "/|\n";} {
  14148. lt_foo = "";
  14149. lt_count = 0;
  14150. for (lt_i = NF; lt_i > 0; lt_i--) {
  14151. if ($lt_i != "" && $lt_i != ".") {
  14152. if ($lt_i == "..") {
  14153. lt_count++;
  14154. } else {
  14155. if (lt_count == 0) {
  14156. lt_foo = "/" $lt_i lt_foo;
  14157. } else {
  14158. lt_count--;
  14159. }
  14160. }
  14161. }
  14162. }
  14163. if (lt_foo != "") { lt_freq[lt_foo]++; }
  14164. if (lt_freq[lt_foo] == 1) { print lt_foo; }
  14165. }'`
  14166. # AWK program above erroneously prepends '/' to C:/dos/paths
  14167. # for these hosts.
  14168. case $host_os in
  14169. mingw* | windows* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
  14170. $SED 's|/\([A-Za-z]:\)|\1|g'` ;;
  14171. esac
  14172. sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
  14173. else
  14174. sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
  14175. fi
  14176. library_names_spec=
  14177. libname_spec='lib$name'
  14178. soname_spec=
  14179. shrext_cmds=.so
  14180. postinstall_cmds=
  14181. postuninstall_cmds=
  14182. finish_cmds=
  14183. finish_eval=
  14184. shlibpath_var=
  14185. shlibpath_overrides_runpath=unknown
  14186. version_type=none
  14187. dynamic_linker="$host_os ld.so"
  14188. sys_lib_dlsearch_path_spec="/lib /usr/lib"
  14189. need_lib_prefix=unknown
  14190. hardcode_into_libs=no
  14191. # when you set need_version to no, make sure it does not cause -set_version
  14192. # flags to be left without arguments
  14193. need_version=unknown
  14194. case $host_os in
  14195. aix3*)
  14196. version_type=linux # correct to gnu/linux during the next big refactor
  14197. library_names_spec='$libname$release$shared_ext$versuffix $libname.a'
  14198. shlibpath_var=LIBPATH
  14199. # AIX 3 has no versioning support, so we append a major version to the name.
  14200. soname_spec='$libname$release$shared_ext$major'
  14201. ;;
  14202. aix[4-9]*)
  14203. version_type=linux # correct to gnu/linux during the next big refactor
  14204. need_lib_prefix=no
  14205. need_version=no
  14206. hardcode_into_libs=yes
  14207. if test ia64 = "$host_cpu"; then
  14208. # AIX 5 supports IA64
  14209. library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext'
  14210. shlibpath_var=LD_LIBRARY_PATH
  14211. else
  14212. # With GCC up to 2.95.x, collect2 would create an import file
  14213. # for dependence libraries. The import file would start with
  14214. # the line '#! .'. This would cause the generated library to
  14215. # depend on '.', always an invalid library. This was fixed in
  14216. # development snapshots of GCC prior to 3.0.
  14217. case $host_os in
  14218. aix4 | aix4.[01] | aix4.[01].*)
  14219. if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
  14220. echo ' yes '
  14221. echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then
  14222. :
  14223. else
  14224. can_build_shared=no
  14225. fi
  14226. ;;
  14227. esac
  14228. # Using Import Files as archive members, it is possible to support
  14229. # filename-based versioning of shared library archives on AIX. While
  14230. # this would work for both with and without runtime linking, it will
  14231. # prevent static linking of such archives. So we do filename-based
  14232. # shared library versioning with .so extension only, which is used
  14233. # when both runtime linking and shared linking is enabled.
  14234. # Unfortunately, runtime linking may impact performance, so we do
  14235. # not want this to be the default eventually. Also, we use the
  14236. # versioned .so libs for executables only if there is the -brtl
  14237. # linker flag in LDFLAGS as well, or --enable-aix-soname=svr4 only.
  14238. # To allow for filename-based versioning support, we need to create
  14239. # libNAME.so.V as an archive file, containing:
  14240. # *) an Import File, referring to the versioned filename of the
  14241. # archive as well as the shared archive member, telling the
  14242. # bitwidth (32 or 64) of that shared object, and providing the
  14243. # list of exported symbols of that shared object, eventually
  14244. # decorated with the 'weak' keyword
  14245. # *) the shared object with the F_LOADONLY flag set, to really avoid
  14246. # it being seen by the linker.
  14247. # At run time we better use the real file rather than another symlink,
  14248. # but for link time we create the symlink libNAME.so -> libNAME.so.V
  14249. case $with_aix_soname,$aix_use_runtimelinking in
  14250. # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct
  14251. # soname into executable. Probably we can add versioning support to
  14252. # collect2, so additional links can be useful in future.
  14253. aix,yes) # traditional libtool
  14254. dynamic_linker='AIX unversionable lib.so'
  14255. # If using run time linking (on AIX 4.2 or later) use lib<name>.so
  14256. # instead of lib<name>.a to let people know that these are not
  14257. # typical AIX shared libraries.
  14258. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  14259. ;;
  14260. aix,no) # traditional AIX only
  14261. dynamic_linker='AIX lib.a(lib.so.V)'
  14262. # We preserve .a as extension for shared libraries through AIX4.2
  14263. # and later when we are not doing run time linking.
  14264. library_names_spec='$libname$release.a $libname.a'
  14265. soname_spec='$libname$release$shared_ext$major'
  14266. ;;
  14267. svr4,*) # full svr4 only
  14268. dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o)"
  14269. library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
  14270. # We do not specify a path in Import Files, so LIBPATH fires.
  14271. shlibpath_overrides_runpath=yes
  14272. ;;
  14273. *,yes) # both, prefer svr4
  14274. dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o), lib.a(lib.so.V)"
  14275. library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
  14276. # unpreferred sharedlib libNAME.a needs extra handling
  14277. 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"'
  14278. 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"'
  14279. # We do not specify a path in Import Files, so LIBPATH fires.
  14280. shlibpath_overrides_runpath=yes
  14281. ;;
  14282. *,no) # both, prefer aix
  14283. dynamic_linker="AIX lib.a(lib.so.V), lib.so.V($shared_archive_member_spec.o)"
  14284. library_names_spec='$libname$release.a $libname.a'
  14285. soname_spec='$libname$release$shared_ext$major'
  14286. # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling
  14287. 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)'
  14288. 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"'
  14289. ;;
  14290. esac
  14291. shlibpath_var=LIBPATH
  14292. fi
  14293. ;;
  14294. amigaos*)
  14295. case $host_cpu in
  14296. powerpc)
  14297. # Since July 2007 AmigaOS4 officially supports .so libraries.
  14298. # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
  14299. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  14300. ;;
  14301. m68k)
  14302. library_names_spec='$libname.ixlibrary $libname.a'
  14303. # Create ${libname}_ixlibrary.a entries in /sys/libs.
  14304. 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'
  14305. ;;
  14306. esac
  14307. ;;
  14308. beos*)
  14309. library_names_spec='$libname$shared_ext'
  14310. dynamic_linker="$host_os ld.so"
  14311. shlibpath_var=LIBRARY_PATH
  14312. ;;
  14313. bsdi[45]*)
  14314. version_type=linux # correct to gnu/linux during the next big refactor
  14315. need_version=no
  14316. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  14317. soname_spec='$libname$release$shared_ext$major'
  14318. finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
  14319. shlibpath_var=LD_LIBRARY_PATH
  14320. sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
  14321. sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
  14322. # the default ld.so.conf also contains /usr/contrib/lib and
  14323. # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
  14324. # libtool to hard-code these into programs
  14325. ;;
  14326. cygwin* | mingw* | windows* | pw32* | cegcc*)
  14327. version_type=windows
  14328. shrext_cmds=.dll
  14329. need_version=no
  14330. need_lib_prefix=no
  14331. case $GCC,$cc_basename in
  14332. yes,*)
  14333. # gcc
  14334. library_names_spec='$libname.dll.a'
  14335. # DLL is installed to $(libdir)/../bin by postinstall_cmds
  14336. # If user builds GCC with multilib enabled,
  14337. # it should just install on $(libdir)
  14338. # not on $(libdir)/../bin or 32 bits dlls would override 64 bit ones.
  14339. if test xyes = x"$multilib"; then
  14340. postinstall_cmds='base_file=`basename \$file`~
  14341. dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
  14342. dldir=$destdir/`dirname \$dlpath`~
  14343. $install_prog $dir/$dlname $destdir/$dlname~
  14344. chmod a+x $destdir/$dlname~
  14345. if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
  14346. eval '\''$striplib $destdir/$dlname'\'' || exit \$?;
  14347. fi'
  14348. else
  14349. postinstall_cmds='base_file=`basename \$file`~
  14350. dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
  14351. dldir=$destdir/`dirname \$dlpath`~
  14352. test -d \$dldir || mkdir -p \$dldir~
  14353. $install_prog $dir/$dlname \$dldir/$dlname~
  14354. chmod a+x \$dldir/$dlname~
  14355. if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
  14356. eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
  14357. fi'
  14358. fi
  14359. postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
  14360. dlpath=$dir/\$dldll~
  14361. $RM \$dlpath'
  14362. shlibpath_overrides_runpath=yes
  14363. case $host_os in
  14364. cygwin*)
  14365. # Cygwin DLLs use 'cyg' prefix rather than 'lib'
  14366. soname_spec='`echo $libname | $SED -e 's/^lib/cyg/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
  14367. sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
  14368. ;;
  14369. mingw* | windows* | cegcc*)
  14370. # MinGW DLLs use traditional 'lib' prefix
  14371. soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
  14372. ;;
  14373. pw32*)
  14374. # pw32 DLLs use 'pw' prefix rather than 'lib'
  14375. library_names_spec='`echo $libname | $SED -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
  14376. ;;
  14377. esac
  14378. dynamic_linker='Win32 ld.exe'
  14379. ;;
  14380. *,cl* | *,icl*)
  14381. # Native MSVC or ICC
  14382. libname_spec='$name'
  14383. soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
  14384. library_names_spec='$libname.dll.lib'
  14385. case $build_os in
  14386. mingw* | windows*)
  14387. sys_lib_search_path_spec=
  14388. lt_save_ifs=$IFS
  14389. IFS=';'
  14390. for lt_path in $LIB
  14391. do
  14392. IFS=$lt_save_ifs
  14393. # Let DOS variable expansion print the short 8.3 style file name.
  14394. lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
  14395. sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
  14396. done
  14397. IFS=$lt_save_ifs
  14398. # Convert to MSYS style.
  14399. sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
  14400. ;;
  14401. cygwin*)
  14402. # Convert to unix form, then to dos form, then back to unix form
  14403. # but this time dos style (no spaces!) so that the unix form looks
  14404. # like /cygdrive/c/PROGRA~1:/cygdr...
  14405. sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
  14406. sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
  14407. sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
  14408. ;;
  14409. *)
  14410. sys_lib_search_path_spec=$LIB
  14411. if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
  14412. # It is most probably a Windows format PATH.
  14413. sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
  14414. else
  14415. sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
  14416. fi
  14417. # FIXME: find the short name or the path components, as spaces are
  14418. # common. (e.g. "Program Files" -> "PROGRA~1")
  14419. ;;
  14420. esac
  14421. # DLL is installed to $(libdir)/../bin by postinstall_cmds
  14422. postinstall_cmds='base_file=`basename \$file`~
  14423. dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
  14424. dldir=$destdir/`dirname \$dlpath`~
  14425. test -d \$dldir || mkdir -p \$dldir~
  14426. $install_prog $dir/$dlname \$dldir/$dlname'
  14427. postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
  14428. dlpath=$dir/\$dldll~
  14429. $RM \$dlpath'
  14430. shlibpath_overrides_runpath=yes
  14431. dynamic_linker='Win32 link.exe'
  14432. ;;
  14433. *)
  14434. # Assume MSVC and ICC wrapper
  14435. library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib'
  14436. dynamic_linker='Win32 ld.exe'
  14437. ;;
  14438. esac
  14439. # FIXME: first we should search . and the directory the executable is in
  14440. shlibpath_var=PATH
  14441. ;;
  14442. darwin* | rhapsody*)
  14443. dynamic_linker="$host_os dyld"
  14444. version_type=darwin
  14445. need_lib_prefix=no
  14446. need_version=no
  14447. library_names_spec='$libname$release$major$shared_ext $libname$shared_ext'
  14448. soname_spec='$libname$release$major$shared_ext'
  14449. shlibpath_overrides_runpath=yes
  14450. shlibpath_var=DYLD_LIBRARY_PATH
  14451. shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
  14452. sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
  14453. sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
  14454. ;;
  14455. dgux*)
  14456. version_type=linux # correct to gnu/linux during the next big refactor
  14457. need_lib_prefix=no
  14458. need_version=no
  14459. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  14460. soname_spec='$libname$release$shared_ext$major'
  14461. shlibpath_var=LD_LIBRARY_PATH
  14462. ;;
  14463. freebsd* | dragonfly* | midnightbsd*)
  14464. # DragonFly does not have aout. When/if they implement a new
  14465. # versioning mechanism, adjust this.
  14466. if test -x /usr/bin/objformat; then
  14467. objformat=`/usr/bin/objformat`
  14468. else
  14469. case $host_os in
  14470. freebsd[23].*) objformat=aout ;;
  14471. *) objformat=elf ;;
  14472. esac
  14473. fi
  14474. version_type=freebsd-$objformat
  14475. case $version_type in
  14476. freebsd-elf*)
  14477. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  14478. soname_spec='$libname$release$shared_ext$major'
  14479. need_version=no
  14480. need_lib_prefix=no
  14481. ;;
  14482. freebsd-*)
  14483. library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
  14484. need_version=yes
  14485. ;;
  14486. esac
  14487. case $host_cpu in
  14488. powerpc64)
  14489. # On FreeBSD bi-arch platforms, a different variable is used for 32-bit
  14490. # binaries. See <https://man.freebsd.org/cgi/man.cgi?query=ld.so>.
  14491. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14492. /* end confdefs.h. */
  14493. int test_pointer_size[sizeof (void *) - 5];
  14494. _ACEOF
  14495. if ac_fn_c_try_compile "$LINENO"
  14496. then :
  14497. shlibpath_var=LD_LIBRARY_PATH
  14498. else case e in #(
  14499. e) shlibpath_var=LD_32_LIBRARY_PATH ;;
  14500. esac
  14501. fi
  14502. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  14503. ;;
  14504. *)
  14505. shlibpath_var=LD_LIBRARY_PATH
  14506. ;;
  14507. esac
  14508. case $host_os in
  14509. freebsd2.*)
  14510. shlibpath_overrides_runpath=yes
  14511. ;;
  14512. freebsd3.[01]* | freebsdelf3.[01]*)
  14513. shlibpath_overrides_runpath=yes
  14514. hardcode_into_libs=yes
  14515. ;;
  14516. freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
  14517. freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
  14518. shlibpath_overrides_runpath=no
  14519. hardcode_into_libs=yes
  14520. ;;
  14521. *) # from 4.6 on, and DragonFly
  14522. shlibpath_overrides_runpath=yes
  14523. hardcode_into_libs=yes
  14524. ;;
  14525. esac
  14526. ;;
  14527. haiku*)
  14528. version_type=linux # correct to gnu/linux during the next big refactor
  14529. need_lib_prefix=no
  14530. need_version=no
  14531. dynamic_linker="$host_os runtime_loader"
  14532. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  14533. soname_spec='$libname$release$shared_ext$major'
  14534. shlibpath_var=LIBRARY_PATH
  14535. shlibpath_overrides_runpath=no
  14536. sys_lib_search_path_spec='/boot/system/non-packaged/develop/lib /boot/system/develop/lib'
  14537. sys_lib_dlsearch_path_spec='/boot/home/config/non-packaged/lib /boot/home/config/lib /boot/system/non-packaged/lib /boot/system/lib'
  14538. hardcode_into_libs=no
  14539. ;;
  14540. hpux9* | hpux10* | hpux11*)
  14541. # Give a soname corresponding to the major version so that dld.sl refuses to
  14542. # link against other versions.
  14543. version_type=sunos
  14544. need_lib_prefix=no
  14545. need_version=no
  14546. case $host_cpu in
  14547. ia64*)
  14548. shrext_cmds='.so'
  14549. hardcode_into_libs=yes
  14550. dynamic_linker="$host_os dld.so"
  14551. shlibpath_var=LD_LIBRARY_PATH
  14552. shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  14553. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  14554. soname_spec='$libname$release$shared_ext$major'
  14555. if test 32 = "$HPUX_IA64_MODE"; then
  14556. sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
  14557. sys_lib_dlsearch_path_spec=/usr/lib/hpux32
  14558. else
  14559. sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
  14560. sys_lib_dlsearch_path_spec=/usr/lib/hpux64
  14561. fi
  14562. ;;
  14563. hppa*64*)
  14564. shrext_cmds='.sl'
  14565. hardcode_into_libs=yes
  14566. dynamic_linker="$host_os dld.sl"
  14567. shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
  14568. shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  14569. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  14570. soname_spec='$libname$release$shared_ext$major'
  14571. sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
  14572. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  14573. ;;
  14574. *)
  14575. shrext_cmds='.sl'
  14576. dynamic_linker="$host_os dld.sl"
  14577. shlibpath_var=SHLIB_PATH
  14578. shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
  14579. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  14580. soname_spec='$libname$release$shared_ext$major'
  14581. ;;
  14582. esac
  14583. # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
  14584. postinstall_cmds='chmod 555 $lib'
  14585. # or fails outright, so override atomically:
  14586. install_override_mode=555
  14587. ;;
  14588. interix[3-9]*)
  14589. version_type=linux # correct to gnu/linux during the next big refactor
  14590. need_lib_prefix=no
  14591. need_version=no
  14592. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  14593. soname_spec='$libname$release$shared_ext$major'
  14594. dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
  14595. shlibpath_var=LD_LIBRARY_PATH
  14596. shlibpath_overrides_runpath=no
  14597. hardcode_into_libs=yes
  14598. ;;
  14599. irix5* | irix6* | nonstopux*)
  14600. case $host_os in
  14601. nonstopux*) version_type=nonstopux ;;
  14602. *)
  14603. if test yes = "$lt_cv_prog_gnu_ld"; then
  14604. version_type=linux # correct to gnu/linux during the next big refactor
  14605. else
  14606. version_type=irix
  14607. fi ;;
  14608. esac
  14609. need_lib_prefix=no
  14610. need_version=no
  14611. soname_spec='$libname$release$shared_ext$major'
  14612. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext'
  14613. case $host_os in
  14614. irix5* | nonstopux*)
  14615. libsuff= shlibsuff=
  14616. ;;
  14617. *)
  14618. case $LD in # libtool.m4 will add one of these switches to LD
  14619. *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
  14620. libsuff= shlibsuff= libmagic=32-bit;;
  14621. *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
  14622. libsuff=32 shlibsuff=N32 libmagic=N32;;
  14623. *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
  14624. libsuff=64 shlibsuff=64 libmagic=64-bit;;
  14625. *) libsuff= shlibsuff= libmagic=never-match;;
  14626. esac
  14627. ;;
  14628. esac
  14629. shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
  14630. shlibpath_overrides_runpath=no
  14631. sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff"
  14632. sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff"
  14633. hardcode_into_libs=yes
  14634. ;;
  14635. # No shared lib support for Linux oldld, aout, or coff.
  14636. linux*oldld* | linux*aout* | linux*coff*)
  14637. dynamic_linker=no
  14638. ;;
  14639. linux*android*)
  14640. version_type=none # Android doesn't support versioned libraries.
  14641. need_lib_prefix=no
  14642. need_version=no
  14643. library_names_spec='$libname$release$shared_ext $libname$shared_ext'
  14644. soname_spec='$libname$release$shared_ext'
  14645. finish_cmds=
  14646. shlibpath_var=LD_LIBRARY_PATH
  14647. shlibpath_overrides_runpath=yes
  14648. # This implies no fast_install, which is unacceptable.
  14649. # Some rework will be needed to allow for fast_install
  14650. # before this can be enabled.
  14651. hardcode_into_libs=yes
  14652. dynamic_linker='Android linker'
  14653. # -rpath works at least for libraries that are not overridden by
  14654. # libraries installed in system locations.
  14655. hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
  14656. ;;
  14657. # This must be glibc/ELF.
  14658. linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
  14659. version_type=linux # correct to gnu/linux during the next big refactor
  14660. need_lib_prefix=no
  14661. need_version=no
  14662. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  14663. soname_spec='$libname$release$shared_ext$major'
  14664. finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
  14665. shlibpath_var=LD_LIBRARY_PATH
  14666. shlibpath_overrides_runpath=no
  14667. # Some binutils ld are patched to set DT_RUNPATH
  14668. if test ${lt_cv_shlibpath_overrides_runpath+y}
  14669. then :
  14670. printf %s "(cached) " >&6
  14671. else case e in #(
  14672. e) lt_cv_shlibpath_overrides_runpath=no
  14673. save_LDFLAGS=$LDFLAGS
  14674. save_libdir=$libdir
  14675. eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
  14676. LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
  14677. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14678. /* end confdefs.h. */
  14679. int
  14680. main (void)
  14681. {
  14682. ;
  14683. return 0;
  14684. }
  14685. _ACEOF
  14686. if ac_fn_c_try_link "$LINENO"
  14687. then :
  14688. if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null
  14689. then :
  14690. lt_cv_shlibpath_overrides_runpath=yes
  14691. fi
  14692. fi
  14693. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  14694. conftest$ac_exeext conftest.$ac_ext
  14695. LDFLAGS=$save_LDFLAGS
  14696. libdir=$save_libdir
  14697. ;;
  14698. esac
  14699. fi
  14700. shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
  14701. # This implies no fast_install, which is unacceptable.
  14702. # Some rework will be needed to allow for fast_install
  14703. # before this can be enabled.
  14704. hardcode_into_libs=yes
  14705. # Add ABI-specific directories to the system library path.
  14706. sys_lib_dlsearch_path_spec="/lib64 /usr/lib64 /lib /usr/lib"
  14707. # Ideally, we could use ldconfig to report *all* directories which are
  14708. # searched for libraries, however this is still not possible. Aside from not
  14709. # being certain /sbin/ldconfig is available, command
  14710. # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64,
  14711. # even though it is searched at run-time. Try to do the best guess by
  14712. # appending ld.so.conf contents (and includes) to the search path.
  14713. if test -f /etc/ld.so.conf; then
  14714. 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' ' '`
  14715. sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra"
  14716. fi
  14717. # We used to test for /lib/ld.so.1 and disable shared libraries on
  14718. # powerpc, because MkLinux only supported shared libraries with the
  14719. # GNU dynamic linker. Since this was broken with cross compilers,
  14720. # most powerpc-linux boxes support dynamic linking these days and
  14721. # people can always --disable-shared, the test was removed, and we
  14722. # assume the GNU/Linux dynamic linker is in use.
  14723. dynamic_linker='GNU/Linux ld.so'
  14724. ;;
  14725. netbsdelf*-gnu)
  14726. version_type=linux
  14727. need_lib_prefix=no
  14728. need_version=no
  14729. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  14730. soname_spec='$libname$release$shared_ext$major'
  14731. shlibpath_var=LD_LIBRARY_PATH
  14732. shlibpath_overrides_runpath=no
  14733. hardcode_into_libs=yes
  14734. dynamic_linker='NetBSD ld.elf_so'
  14735. ;;
  14736. netbsd*)
  14737. version_type=sunos
  14738. need_lib_prefix=no
  14739. need_version=no
  14740. if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  14741. library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
  14742. finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  14743. dynamic_linker='NetBSD (a.out) ld.so'
  14744. else
  14745. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  14746. soname_spec='$libname$release$shared_ext$major'
  14747. dynamic_linker='NetBSD ld.elf_so'
  14748. fi
  14749. shlibpath_var=LD_LIBRARY_PATH
  14750. shlibpath_overrides_runpath=yes
  14751. hardcode_into_libs=yes
  14752. ;;
  14753. *-mlibc)
  14754. version_type=linux # correct to gnu/linux during the next big refactor
  14755. need_lib_prefix=no
  14756. need_version=no
  14757. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  14758. soname_spec='$libname$release$shared_ext$major'
  14759. dynamic_linker='mlibc ld.so'
  14760. shlibpath_var=LD_LIBRARY_PATH
  14761. shlibpath_overrides_runpath=no
  14762. hardcode_into_libs=yes
  14763. ;;
  14764. newsos6)
  14765. version_type=linux # correct to gnu/linux during the next big refactor
  14766. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  14767. shlibpath_var=LD_LIBRARY_PATH
  14768. shlibpath_overrides_runpath=yes
  14769. ;;
  14770. *nto* | *qnx*)
  14771. version_type=qnx
  14772. need_lib_prefix=no
  14773. need_version=no
  14774. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  14775. soname_spec='$libname$release$shared_ext$major'
  14776. shlibpath_var=LD_LIBRARY_PATH
  14777. shlibpath_overrides_runpath=no
  14778. hardcode_into_libs=yes
  14779. dynamic_linker='ldqnx.so'
  14780. ;;
  14781. openbsd*)
  14782. version_type=sunos
  14783. sys_lib_dlsearch_path_spec=/usr/lib
  14784. need_lib_prefix=no
  14785. if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
  14786. need_version=no
  14787. else
  14788. need_version=yes
  14789. fi
  14790. library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
  14791. finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  14792. shlibpath_var=LD_LIBRARY_PATH
  14793. shlibpath_overrides_runpath=yes
  14794. ;;
  14795. os2*)
  14796. libname_spec='$name'
  14797. version_type=windows
  14798. shrext_cmds=.dll
  14799. need_version=no
  14800. need_lib_prefix=no
  14801. # OS/2 can only load a DLL with a base name of 8 characters or less.
  14802. soname_spec='`test -n "$os2dllname" && libname="$os2dllname";
  14803. v=$($ECHO $release$versuffix | tr -d .-);
  14804. n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _);
  14805. $ECHO $n$v`$shared_ext'
  14806. library_names_spec='${libname}_dll.$libext'
  14807. dynamic_linker='OS/2 ld.exe'
  14808. shlibpath_var=BEGINLIBPATH
  14809. sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
  14810. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  14811. postinstall_cmds='base_file=`basename \$file`~
  14812. dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~
  14813. dldir=$destdir/`dirname \$dlpath`~
  14814. test -d \$dldir || mkdir -p \$dldir~
  14815. $install_prog $dir/$dlname \$dldir/$dlname~
  14816. chmod a+x \$dldir/$dlname~
  14817. if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
  14818. eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
  14819. fi'
  14820. postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~
  14821. dlpath=$dir/\$dldll~
  14822. $RM \$dlpath'
  14823. ;;
  14824. osf3* | osf4* | osf5*)
  14825. version_type=osf
  14826. need_lib_prefix=no
  14827. need_version=no
  14828. soname_spec='$libname$release$shared_ext$major'
  14829. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  14830. shlibpath_var=LD_LIBRARY_PATH
  14831. sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
  14832. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  14833. ;;
  14834. rdos*)
  14835. dynamic_linker=no
  14836. ;;
  14837. serenity*)
  14838. version_type=linux # correct to gnu/linux during the next big refactor
  14839. need_lib_prefix=no
  14840. need_version=no
  14841. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  14842. soname_spec='$libname$release$shared_ext$major'
  14843. shlibpath_var=LD_LIBRARY_PATH
  14844. shlibpath_overrides_runpath=no
  14845. dynamic_linker='SerenityOS LibELF'
  14846. ;;
  14847. solaris*)
  14848. version_type=linux # correct to gnu/linux during the next big refactor
  14849. need_lib_prefix=no
  14850. need_version=no
  14851. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  14852. soname_spec='$libname$release$shared_ext$major'
  14853. shlibpath_var=LD_LIBRARY_PATH
  14854. shlibpath_overrides_runpath=yes
  14855. hardcode_into_libs=yes
  14856. # ldd complains unless libraries are executable
  14857. postinstall_cmds='chmod +x $lib'
  14858. ;;
  14859. sunos4*)
  14860. version_type=sunos
  14861. library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
  14862. finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
  14863. shlibpath_var=LD_LIBRARY_PATH
  14864. shlibpath_overrides_runpath=yes
  14865. if test yes = "$with_gnu_ld"; then
  14866. need_lib_prefix=no
  14867. fi
  14868. need_version=yes
  14869. ;;
  14870. sysv4 | sysv4.3*)
  14871. version_type=linux # correct to gnu/linux during the next big refactor
  14872. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  14873. soname_spec='$libname$release$shared_ext$major'
  14874. shlibpath_var=LD_LIBRARY_PATH
  14875. case $host_vendor in
  14876. sni)
  14877. shlibpath_overrides_runpath=no
  14878. need_lib_prefix=no
  14879. runpath_var=LD_RUN_PATH
  14880. ;;
  14881. siemens)
  14882. need_lib_prefix=no
  14883. ;;
  14884. motorola)
  14885. need_lib_prefix=no
  14886. need_version=no
  14887. shlibpath_overrides_runpath=no
  14888. sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
  14889. ;;
  14890. esac
  14891. ;;
  14892. sysv4*MP*)
  14893. if test -d /usr/nec; then
  14894. version_type=linux # correct to gnu/linux during the next big refactor
  14895. library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext'
  14896. soname_spec='$libname$shared_ext.$major'
  14897. shlibpath_var=LD_LIBRARY_PATH
  14898. fi
  14899. ;;
  14900. sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
  14901. version_type=sco
  14902. need_lib_prefix=no
  14903. need_version=no
  14904. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext'
  14905. soname_spec='$libname$release$shared_ext$major'
  14906. shlibpath_var=LD_LIBRARY_PATH
  14907. shlibpath_overrides_runpath=yes
  14908. hardcode_into_libs=yes
  14909. if test yes = "$with_gnu_ld"; then
  14910. sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
  14911. else
  14912. sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
  14913. case $host_os in
  14914. sco3.2v5*)
  14915. sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
  14916. ;;
  14917. esac
  14918. fi
  14919. sys_lib_dlsearch_path_spec='/usr/lib'
  14920. ;;
  14921. tpf*)
  14922. # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
  14923. version_type=linux # correct to gnu/linux during the next big refactor
  14924. need_lib_prefix=no
  14925. need_version=no
  14926. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  14927. shlibpath_var=LD_LIBRARY_PATH
  14928. shlibpath_overrides_runpath=no
  14929. hardcode_into_libs=yes
  14930. ;;
  14931. uts4*)
  14932. version_type=linux # correct to gnu/linux during the next big refactor
  14933. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  14934. soname_spec='$libname$release$shared_ext$major'
  14935. shlibpath_var=LD_LIBRARY_PATH
  14936. ;;
  14937. emscripten*)
  14938. version_type=none
  14939. need_lib_prefix=no
  14940. need_version=no
  14941. library_names_spec='$libname$release$shared_ext'
  14942. soname_spec='$libname$release$shared_ext'
  14943. finish_cmds=
  14944. dynamic_linker="Emscripten linker"
  14945. lt_prog_compiler_wl=
  14946. lt_prog_compiler_pic=
  14947. lt_prog_compiler_static=
  14948. if test yes = "$GCC"; then
  14949. lt_prog_compiler_wl='-Wl,'
  14950. lt_prog_compiler_static='-static'
  14951. case $host_os in
  14952. aix*)
  14953. # All AIX code is PIC.
  14954. if test ia64 = "$host_cpu"; then
  14955. # AIX 5 now supports IA64 processor
  14956. lt_prog_compiler_static='-Bstatic'
  14957. fi
  14958. lt_prog_compiler_pic='-fPIC'
  14959. ;;
  14960. amigaos*)
  14961. case $host_cpu in
  14962. powerpc)
  14963. # see comment about AmigaOS4 .so support
  14964. lt_prog_compiler_pic='-fPIC'
  14965. ;;
  14966. m68k)
  14967. # FIXME: we need at least 68020 code to build shared libraries, but
  14968. # adding the '-m68020' flag to GCC prevents building anything better,
  14969. # like '-m68040'.
  14970. lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
  14971. ;;
  14972. esac
  14973. ;;
  14974. beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
  14975. # PIC is the default for these OSes.
  14976. ;;
  14977. mingw* | windows* | cygwin* | pw32* | os2* | cegcc*)
  14978. # This hack is so that the source file can tell whether it is being
  14979. # built for inclusion in a dll (and should export symbols for example).
  14980. # Although the cygwin gcc ignores -fPIC, still need this for old-style
  14981. # (--disable-auto-import) libraries
  14982. lt_prog_compiler_pic='-DDLL_EXPORT'
  14983. case $host_os in
  14984. os2*)
  14985. lt_prog_compiler_static='$wl-static'
  14986. ;;
  14987. esac
  14988. ;;
  14989. darwin* | rhapsody*)
  14990. # PIC is the default on this platform
  14991. # Common symbols not allowed in MH_DYLIB files
  14992. lt_prog_compiler_pic='-fno-common'
  14993. ;;
  14994. haiku*)
  14995. # PIC is the default for Haiku.
  14996. # The "-static" flag exists, but is broken.
  14997. lt_prog_compiler_static=
  14998. ;;
  14999. hpux*)
  15000. # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
  15001. # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
  15002. # sets the default TLS model and affects inlining.
  15003. case $host_cpu in
  15004. hppa*64*)
  15005. # +Z the default
  15006. ;;
  15007. *)
  15008. lt_prog_compiler_pic='-fPIC'
  15009. ;;
  15010. esac
  15011. ;;
  15012. interix[3-9]*)
  15013. # Interix 3.x gcc -fpic/-fPIC options generate broken code.
  15014. # Instead, we relocate shared libraries at runtime.
  15015. ;;
  15016. msdosdjgpp*)
  15017. # Just because we use GCC doesn't mean we suddenly get shared libraries
  15018. # on systems that don't support them.
  15019. lt_prog_compiler_can_build_shared=no
  15020. enable_shared=no
  15021. ;;
  15022. *nto* | *qnx*)
  15023. # QNX uses GNU C++, but need to define -shared option too, otherwise
  15024. # it will coredump.
  15025. lt_prog_compiler_pic='-fPIC -shared'
  15026. ;;
  15027. sysv4*MP*)
  15028. if test -d /usr/nec; then
  15029. lt_prog_compiler_pic=-Kconform_pic
  15030. fi
  15031. ;;
  15032. *)
  15033. lt_prog_compiler_pic='-fPIC'
  15034. ;;
  15035. esac
  15036. case $cc_basename in
  15037. nvcc*) # Cuda Compiler Driver 2.2
  15038. lt_prog_compiler_wl='-Xlinker '
  15039. if test -n "$lt_prog_compiler_pic"; then
  15040. lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
  15041. fi
  15042. ;;
  15043. esac
  15044. else
  15045. # PORTME Check for flag to pass linker flags through the system compiler.
  15046. case $host_os in
  15047. aix*)
  15048. lt_prog_compiler_wl='-Wl,'
  15049. if test ia64 = "$host_cpu"; then
  15050. # AIX 5 now supports IA64 processor
  15051. lt_prog_compiler_static='-Bstatic'
  15052. else
  15053. lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
  15054. fi
  15055. ;;
  15056. darwin* | rhapsody*)
  15057. # PIC is the default on this platform
  15058. # Common symbols not allowed in MH_DYLIB files
  15059. lt_prog_compiler_pic='-fno-common'
  15060. case $cc_basename in
  15061. nagfor*)
  15062. # NAG Fortran compiler
  15063. lt_prog_compiler_wl='-Wl,-Wl,,'
  15064. lt_prog_compiler_pic='-PIC'
  15065. lt_prog_compiler_static='-Bstatic'
  15066. ;;
  15067. esac
  15068. ;;
  15069. mingw* | windows* | cygwin* | pw32* | os2* | cegcc*)
  15070. # This hack is so that the source file can tell whether it is being
  15071. # built for inclusion in a dll (and should export symbols for example).
  15072. lt_prog_compiler_pic='-DDLL_EXPORT'
  15073. case $host_os in
  15074. os2*)
  15075. lt_prog_compiler_static='$wl-static'
  15076. ;;
  15077. esac
  15078. ;;
  15079. hpux9* | hpux10* | hpux11*)
  15080. lt_prog_compiler_wl='-Wl,'
  15081. # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
  15082. # not for PA HP-UX.
  15083. case $host_cpu in
  15084. hppa*64*|ia64*)
  15085. # +Z the default
  15086. ;;
  15087. *)
  15088. lt_prog_compiler_pic='+Z'
  15089. ;;
  15090. esac
  15091. # Is there a better lt_prog_compiler_static that works with the bundled CC?
  15092. lt_prog_compiler_static='$wl-a ${wl}archive'
  15093. ;;
  15094. irix5* | irix6* | nonstopux*)
  15095. lt_prog_compiler_wl='-Wl,'
  15096. # PIC (with -KPIC) is the default.
  15097. lt_prog_compiler_static='-non_shared'
  15098. ;;
  15099. linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
  15100. case $cc_basename in
  15101. # old Intel for x86_64, which still supported -KPIC.
  15102. ecc*)
  15103. lt_prog_compiler_wl='-Wl,'
  15104. lt_prog_compiler_pic='-KPIC'
  15105. lt_prog_compiler_static='-static'
  15106. ;;
  15107. *flang* | ftn | f18* | f95*)
  15108. # Flang compiler.
  15109. lt_prog_compiler_wl='-Wl,'
  15110. lt_prog_compiler_pic='-fPIC'
  15111. lt_prog_compiler_static='-static'
  15112. ;;
  15113. # icc used to be incompatible with GCC.
  15114. # ICC 10 doesn't accept -KPIC any more.
  15115. icc* | ifort*)
  15116. lt_prog_compiler_wl='-Wl,'
  15117. lt_prog_compiler_pic='-fPIC'
  15118. lt_prog_compiler_static='-static'
  15119. ;;
  15120. # Lahey Fortran 8.1.
  15121. lf95*)
  15122. lt_prog_compiler_wl='-Wl,'
  15123. lt_prog_compiler_pic='--shared'
  15124. lt_prog_compiler_static='--static'
  15125. ;;
  15126. nagfor*)
  15127. # NAG Fortran compiler
  15128. lt_prog_compiler_wl='-Wl,-Wl,,'
  15129. lt_prog_compiler_pic='-PIC'
  15130. lt_prog_compiler_static='-Bstatic'
  15131. ;;
  15132. tcc*)
  15133. # Fabrice Bellard et al's Tiny C Compiler
  15134. lt_prog_compiler_wl='-Wl,'
  15135. lt_prog_compiler_pic='-fPIC'
  15136. lt_prog_compiler_static='-static'
  15137. ;;
  15138. pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
  15139. # Portland Group compilers (*not* the Pentium gcc compiler,
  15140. # which looks to be a dead project)
  15141. lt_prog_compiler_wl='-Wl,'
  15142. lt_prog_compiler_pic='-fpic'
  15143. lt_prog_compiler_static='-Bstatic'
  15144. ;;
  15145. ccc*)
  15146. lt_prog_compiler_wl='-Wl,'
  15147. # All Alpha code is PIC.
  15148. lt_prog_compiler_static='-non_shared'
  15149. ;;
  15150. xl* | bgxl* | bgf* | mpixl*)
  15151. # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
  15152. lt_prog_compiler_wl='-Wl,'
  15153. lt_prog_compiler_pic='-qpic'
  15154. lt_prog_compiler_static='-qstaticlink'
  15155. ;;
  15156. *)
  15157. case `$CC -V 2>&1 | $SED 5q` in
  15158. *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
  15159. # Sun Fortran 8.3 passes all unrecognized flags to the linker
  15160. lt_prog_compiler_pic='-KPIC'
  15161. lt_prog_compiler_static='-Bstatic'
  15162. lt_prog_compiler_wl=''
  15163. ;;
  15164. *Sun\ F* | *Sun*Fortran*)
  15165. lt_prog_compiler_pic='-KPIC'
  15166. lt_prog_compiler_static='-Bstatic'
  15167. lt_prog_compiler_wl='-Qoption ld '
  15168. ;;
  15169. *Sun\ C*)
  15170. # Sun C 5.9
  15171. lt_prog_compiler_pic='-KPIC'
  15172. lt_prog_compiler_static='-Bstatic'
  15173. lt_prog_compiler_wl='-Wl,'
  15174. ;;
  15175. *Intel*\ [CF]*Compiler*)
  15176. lt_prog_compiler_wl='-Wl,'
  15177. lt_prog_compiler_pic='-fPIC'
  15178. lt_prog_compiler_static='-static'
  15179. ;;
  15180. *Portland\ Group*)
  15181. lt_prog_compiler_wl='-Wl,'
  15182. lt_prog_compiler_pic='-fpic'
  15183. lt_prog_compiler_static='-Bstatic'
  15184. ;;
  15185. esac
  15186. ;;
  15187. esac
  15188. ;;
  15189. newsos6)
  15190. lt_prog_compiler_pic='-KPIC'
  15191. lt_prog_compiler_static='-Bstatic'
  15192. ;;
  15193. *-mlibc)
  15194. lt_prog_compiler_wl='-Wl,'
  15195. lt_prog_compiler_pic='-fPIC'
  15196. lt_prog_compiler_static='-static'
  15197. ;;
  15198. *nto* | *qnx*)
  15199. # QNX uses GNU C++, but need to define -shared option too, otherwise
  15200. # it will coredump.
  15201. lt_prog_compiler_pic='-fPIC -shared'
  15202. ;;
  15203. osf3* | osf4* | osf5*)
  15204. lt_prog_compiler_wl='-Wl,'
  15205. # All OSF/1 code is PIC.
  15206. lt_prog_compiler_static='-non_shared'
  15207. ;;
  15208. rdos*)
  15209. lt_prog_compiler_static='-non_shared'
  15210. ;;
  15211. serenity*)
  15212. ;;
  15213. solaris*)
  15214. lt_prog_compiler_pic='-KPIC'
  15215. lt_prog_compiler_static='-Bstatic'
  15216. case $cc_basename in
  15217. f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
  15218. lt_prog_compiler_wl='-Qoption ld ';;
  15219. *)
  15220. lt_prog_compiler_wl='-Wl,';;
  15221. esac
  15222. ;;
  15223. sunos4*)
  15224. lt_prog_compiler_wl='-Qoption ld '
  15225. lt_prog_compiler_pic='-PIC'
  15226. lt_prog_compiler_static='-Bstatic'
  15227. ;;
  15228. sysv4 | sysv4.2uw2* | sysv4.3*)
  15229. lt_prog_compiler_wl='-Wl,'
  15230. lt_prog_compiler_pic='-KPIC'
  15231. lt_prog_compiler_static='-Bstatic'
  15232. ;;
  15233. sysv4*MP*)
  15234. if test -d /usr/nec; then
  15235. lt_prog_compiler_pic='-Kconform_pic'
  15236. lt_prog_compiler_static='-Bstatic'
  15237. fi
  15238. ;;
  15239. sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
  15240. lt_prog_compiler_wl='-Wl,'
  15241. lt_prog_compiler_pic='-KPIC'
  15242. lt_prog_compiler_static='-Bstatic'
  15243. ;;
  15244. unicos*)
  15245. lt_prog_compiler_wl='-Wl,'
  15246. lt_prog_compiler_can_build_shared=no
  15247. ;;
  15248. uts4*)
  15249. lt_prog_compiler_pic='-pic'
  15250. lt_prog_compiler_static='-Bstatic'
  15251. ;;
  15252. *)
  15253. lt_prog_compiler_can_build_shared=no
  15254. ;;
  15255. esac
  15256. fi
  15257. case $host_os in
  15258. # For platforms that do not support PIC, -DPIC is meaningless:
  15259. *djgpp*)
  15260. lt_prog_compiler_pic=
  15261. ;;
  15262. *)
  15263. lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
  15264. ;;
  15265. esac
  15266. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
  15267. printf %s "checking for $compiler option to produce PIC... " >&6; }
  15268. if test ${lt_cv_prog_compiler_pic+y}
  15269. then :
  15270. printf %s "(cached) " >&6
  15271. else case e in #(
  15272. e) lt_cv_prog_compiler_pic=$lt_prog_compiler_pic ;;
  15273. esac
  15274. fi
  15275. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
  15276. printf "%s\n" "$lt_cv_prog_compiler_pic" >&6; }
  15277. lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
  15278. #
  15279. # Check to make sure the PIC flag actually works.
  15280. #
  15281. if test -n "$lt_prog_compiler_pic"; then
  15282. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
  15283. printf %s "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
  15284. if test ${lt_cv_prog_compiler_pic_works+y}
  15285. then :
  15286. printf %s "(cached) " >&6
  15287. else case e in #(
  15288. e) lt_cv_prog_compiler_pic_works=no
  15289. ac_outfile=conftest.$ac_objext
  15290. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  15291. lt_compiler_flag="$lt_prog_compiler_pic -DPIC" ## exclude from sc_useless_quotes_in_assignment
  15292. # Insert the option either (1) after the last *FLAGS variable, or
  15293. # (2) before a word containing "conftest.", or (3) at the end.
  15294. # Note that $ac_compile itself does not contain backslashes and begins
  15295. # with a dollar sign (not a hyphen), so the echo should work correctly.
  15296. # The option is referenced via a variable to avoid confusing sed.
  15297. lt_compile=`echo "$ac_compile" | $SED \
  15298. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  15299. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  15300. -e 's:$: $lt_compiler_flag:'`
  15301. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  15302. (eval "$lt_compile" 2>conftest.err)
  15303. ac_status=$?
  15304. cat conftest.err >&5
  15305. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  15306. if (exit $ac_status) && test -s "$ac_outfile"; then
  15307. # The compiler can only warn and ignore the option if not recognized
  15308. # So say no if there are warnings other than the usual output.
  15309. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
  15310. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  15311. if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
  15312. lt_cv_prog_compiler_pic_works=yes
  15313. fi
  15314. fi
  15315. $RM conftest*
  15316. ;;
  15317. esac
  15318. fi
  15319. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
  15320. printf "%s\n" "$lt_cv_prog_compiler_pic_works" >&6; }
  15321. if test yes = "$lt_cv_prog_compiler_pic_works"; then
  15322. case $lt_prog_compiler_pic in
  15323. "" | " "*) ;;
  15324. *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
  15325. esac
  15326. else
  15327. lt_prog_compiler_pic=
  15328. lt_prog_compiler_can_build_shared=no
  15329. fi
  15330. fi
  15331. #
  15332. # Check to make sure the static flag actually works.
  15333. #
  15334. wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
  15335. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
  15336. printf %s "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
  15337. if test ${lt_cv_prog_compiler_static_works+y}
  15338. then :
  15339. printf %s "(cached) " >&6
  15340. else case e in #(
  15341. e) lt_cv_prog_compiler_static_works=no
  15342. save_LDFLAGS=$LDFLAGS
  15343. LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
  15344. echo "$lt_simple_link_test_code" > conftest.$ac_ext
  15345. if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
  15346. # The linker can only warn and ignore the option if not recognized
  15347. # So say no if there are warnings
  15348. if test -s conftest.err; then
  15349. # Append any errors to the config.log.
  15350. cat conftest.err 1>&5
  15351. $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
  15352. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  15353. if diff conftest.exp conftest.er2 >/dev/null; then
  15354. lt_cv_prog_compiler_static_works=yes
  15355. fi
  15356. else
  15357. lt_cv_prog_compiler_static_works=yes
  15358. fi
  15359. fi
  15360. $RM -r conftest*
  15361. LDFLAGS=$save_LDFLAGS
  15362. ;;
  15363. esac
  15364. fi
  15365. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
  15366. printf "%s\n" "$lt_cv_prog_compiler_static_works" >&6; }
  15367. if test yes = "$lt_cv_prog_compiler_static_works"; then
  15368. :
  15369. else
  15370. lt_prog_compiler_static=
  15371. fi
  15372. ='-fPIC'
  15373. archive_cmds='$CC -sSIDE_MODULE=2 -shared $libobjs $deplibs $compiler_flags -o $lib'
  15374. archive_expsym_cmds='$SED "s|^|_|" $export_symbols >$output_objdir/$soname.expsym~$CC -sSIDE_MODULE=2 -shared $libobjs $deplibs $compiler_flags -o $lib -s EXPORTED_FUNCTIONS=@$output_objdir/$soname.expsym'
  15375. archive_cmds_need_lc=no
  15376. no_undefined_flag=
  15377. ;;
  15378. *)
  15379. dynamic_linker=no
  15380. ;;
  15381. esac
  15382. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
  15383. printf "%s\n" "$dynamic_linker" >&6; }
  15384. test no = "$dynamic_linker" && can_build_shared=no
  15385. variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
  15386. if test yes = "$GCC"; then
  15387. variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
  15388. fi
  15389. if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then
  15390. sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec
  15391. fi
  15392. if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then
  15393. sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec
  15394. fi
  15395. # remember unaugmented sys_lib_dlsearch_path content for libtool script decls...
  15396. configure_time_dlsearch_path=$sys_lib_dlsearch_path_spec
  15397. # ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code
  15398. func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH"
  15399. # to be used as default LT_SYS_LIBRARY_PATH value in generated libtool
  15400. configure_time_lt_sys_library_path=$LT_SYS_LIBRARY_PATH
  15401. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
  15402. printf %s "checking how to hardcode library paths into programs... " >&6; }
  15403. hardcode_action=
  15404. if test -n "$hardcode_libdir_flag_spec" ||
  15405. test -n "$runpath_var" ||
  15406. test yes = "$hardcode_automatic"; then
  15407. # We can hardcode non-existent directories.
  15408. if test no != "$hardcode_direct" &&
  15409. # If the only mechanism to avoid hardcoding is shlibpath_var, we
  15410. # have to relink, otherwise we might link with an installed library
  15411. # when we should be linking with a yet-to-be-installed one
  15412. ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, )" &&
  15413. test no != "$hardcode_minus_L"; then
  15414. # Linking always hardcodes the temporary library directory.
  15415. hardcode_action=relink
  15416. else
  15417. # We can link without hardcoding, and we can hardcode nonexisting dirs.
  15418. hardcode_action=immediate
  15419. fi
  15420. else
  15421. # We cannot hardcode anything, or else we can only hardcode existing
  15422. # directories.
  15423. hardcode_action=unsupported
  15424. fi
  15425. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
  15426. printf "%s\n" "$hardcode_action" >&6; }
  15427. if test relink = "$hardcode_action" ||
  15428. test yes = "$inherit_rpath"; then
  15429. # Fast installation is not supported
  15430. enable_fast_install=no
  15431. elif test yes = "$shlibpath_overrides_runpath" ||
  15432. test no = "$enable_shared"; then
  15433. # Fast installation is not necessary
  15434. enable_fast_install=needless
  15435. fi
  15436. if test yes != "$enable_dlopen"; then
  15437. enable_dlopen=unknown
  15438. enable_dlopen_self=unknown
  15439. enable_dlopen_self_static=unknown
  15440. else
  15441. lt_cv_dlopen=no
  15442. lt_cv_dlopen_libs=
  15443. case $host_os in
  15444. beos*)
  15445. lt_cv_dlopen=load_add_on
  15446. lt_cv_dlopen_libs=
  15447. lt_cv_dlopen_self=yes
  15448. ;;
  15449. mingw* | windows* | pw32* | cegcc*)
  15450. lt_cv_dlopen=LoadLibrary
  15451. lt_cv_dlopen_libs=
  15452. ;;
  15453. cygwin*)
  15454. lt_cv_dlopen=dlopen
  15455. lt_cv_dlopen_libs=
  15456. ;;
  15457. darwin*)
  15458. # if libdl is installed we need to link against it
  15459. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
  15460. printf %s "checking for dlopen in -ldl... " >&6; }
  15461. if test ${ac_cv_lib_dl_dlopen+y}
  15462. then :
  15463. printf %s "(cached) " >&6
  15464. else case e in #(
  15465. e) ac_check_lib_save_LIBS=$LIBS
  15466. LIBS="-ldl $LIBS"
  15467. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15468. /* end confdefs.h. */
  15469. /* Override any GCC internal prototype to avoid an error.
  15470. Use char because int might match the return type of a GCC
  15471. builtin and then its argument prototype would still apply.
  15472. The 'extern "C"' is for builds by C++ compilers;
  15473. although this is not generally supported in C code supporting it here
  15474. has little cost and some practical benefit (sr 110532). */
  15475. #ifdef __cplusplus
  15476. extern "C"
  15477. #endif
  15478. char dlopen (void);
  15479. int
  15480. main (void)
  15481. {
  15482. return dlopen ();
  15483. ;
  15484. return 0;
  15485. }
  15486. _ACEOF
  15487. if ac_fn_c_try_link "$LINENO"
  15488. then :
  15489. ac_cv_lib_dl_dlopen=yes
  15490. else case e in #(
  15491. e) ac_cv_lib_dl_dlopen=no ;;
  15492. esac
  15493. fi
  15494. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  15495. conftest$ac_exeext conftest.$ac_ext
  15496. LIBS=$ac_check_lib_save_LIBS ;;
  15497. esac
  15498. fi
  15499. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
  15500. printf "%s\n" "$ac_cv_lib_dl_dlopen" >&6; }
  15501. if test "x$ac_cv_lib_dl_dlopen" = xyes
  15502. then :
  15503. lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
  15504. else case e in #(
  15505. e)
  15506. lt_cv_dlopen=dyld
  15507. lt_cv_dlopen_libs=
  15508. lt_cv_dlopen_self=yes
  15509. ;;
  15510. esac
  15511. fi
  15512. ;;
  15513. tpf*)
  15514. # Don't try to run any link tests for TPF. We know it's impossible
  15515. # because TPF is a cross-compiler, and we know how we open DSOs.
  15516. lt_cv_dlopen=dlopen
  15517. lt_cv_dlopen_libs=
  15518. lt_cv_dlopen_self=no
  15519. ;;
  15520. *)
  15521. ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
  15522. if test "x$ac_cv_func_shl_load" = xyes
  15523. then :
  15524. lt_cv_dlopen=shl_load
  15525. else case e in #(
  15526. e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
  15527. printf %s "checking for shl_load in -ldld... " >&6; }
  15528. if test ${ac_cv_lib_dld_shl_load+y}
  15529. then :
  15530. printf %s "(cached) " >&6
  15531. else case e in #(
  15532. e) ac_check_lib_save_LIBS=$LIBS
  15533. LIBS="-ldld $LIBS"
  15534. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15535. /* end confdefs.h. */
  15536. /* Override any GCC internal prototype to avoid an error.
  15537. Use char because int might match the return type of a GCC
  15538. builtin and then its argument prototype would still apply.
  15539. The 'extern "C"' is for builds by C++ compilers;
  15540. although this is not generally supported in C code supporting it here
  15541. has little cost and some practical benefit (sr 110532). */
  15542. #ifdef __cplusplus
  15543. extern "C"
  15544. #endif
  15545. char shl_load (void);
  15546. int
  15547. main (void)
  15548. {
  15549. return shl_load ();
  15550. ;
  15551. return 0;
  15552. }
  15553. _ACEOF
  15554. if ac_fn_c_try_link "$LINENO"
  15555. then :
  15556. ac_cv_lib_dld_shl_load=yes
  15557. else case e in #(
  15558. e) ac_cv_lib_dld_shl_load=no ;;
  15559. esac
  15560. fi
  15561. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  15562. conftest$ac_exeext conftest.$ac_ext
  15563. LIBS=$ac_check_lib_save_LIBS ;;
  15564. esac
  15565. fi
  15566. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
  15567. printf "%s\n" "$ac_cv_lib_dld_shl_load" >&6; }
  15568. if test "x$ac_cv_lib_dld_shl_load" = xyes
  15569. then :
  15570. lt_cv_dlopen=shl_load lt_cv_dlopen_libs=-ldld
  15571. else case e in #(
  15572. e) ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
  15573. if test "x$ac_cv_func_dlopen" = xyes
  15574. then :
  15575. lt_cv_dlopen=dlopen
  15576. else case e in #(
  15577. e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
  15578. printf %s "checking for dlopen in -ldl... " >&6; }
  15579. if test ${ac_cv_lib_dl_dlopen+y}
  15580. then :
  15581. printf %s "(cached) " >&6
  15582. else case e in #(
  15583. e) ac_check_lib_save_LIBS=$LIBS
  15584. LIBS="-ldl $LIBS"
  15585. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15586. /* end confdefs.h. */
  15587. /* Override any GCC internal prototype to avoid an error.
  15588. Use char because int might match the return type of a GCC
  15589. builtin and then its argument prototype would still apply.
  15590. The 'extern "C"' is for builds by C++ compilers;
  15591. although this is not generally supported in C code supporting it here
  15592. has little cost and some practical benefit (sr 110532). */
  15593. #ifdef __cplusplus
  15594. extern "C"
  15595. #endif
  15596. char dlopen (void);
  15597. int
  15598. main (void)
  15599. {
  15600. return dlopen ();
  15601. ;
  15602. return 0;
  15603. }
  15604. _ACEOF
  15605. if ac_fn_c_try_link "$LINENO"
  15606. then :
  15607. ac_cv_lib_dl_dlopen=yes
  15608. else case e in #(
  15609. e) ac_cv_lib_dl_dlopen=no ;;
  15610. esac
  15611. fi
  15612. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  15613. conftest$ac_exeext conftest.$ac_ext
  15614. LIBS=$ac_check_lib_save_LIBS ;;
  15615. esac
  15616. fi
  15617. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
  15618. printf "%s\n" "$ac_cv_lib_dl_dlopen" >&6; }
  15619. if test "x$ac_cv_lib_dl_dlopen" = xyes
  15620. then :
  15621. lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
  15622. else case e in #(
  15623. e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
  15624. printf %s "checking for dlopen in -lsvld... " >&6; }
  15625. if test ${ac_cv_lib_svld_dlopen+y}
  15626. then :
  15627. printf %s "(cached) " >&6
  15628. else case e in #(
  15629. e) ac_check_lib_save_LIBS=$LIBS
  15630. LIBS="-lsvld $LIBS"
  15631. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15632. /* end confdefs.h. */
  15633. /* Override any GCC internal prototype to avoid an error.
  15634. Use char because int might match the return type of a GCC
  15635. builtin and then its argument prototype would still apply.
  15636. The 'extern "C"' is for builds by C++ compilers;
  15637. although this is not generally supported in C code supporting it here
  15638. has little cost and some practical benefit (sr 110532). */
  15639. #ifdef __cplusplus
  15640. extern "C"
  15641. #endif
  15642. char dlopen (void);
  15643. int
  15644. main (void)
  15645. {
  15646. return dlopen ();
  15647. ;
  15648. return 0;
  15649. }
  15650. _ACEOF
  15651. if ac_fn_c_try_link "$LINENO"
  15652. then :
  15653. ac_cv_lib_svld_dlopen=yes
  15654. else case e in #(
  15655. e) ac_cv_lib_svld_dlopen=no ;;
  15656. esac
  15657. fi
  15658. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  15659. conftest$ac_exeext conftest.$ac_ext
  15660. LIBS=$ac_check_lib_save_LIBS ;;
  15661. esac
  15662. fi
  15663. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
  15664. printf "%s\n" "$ac_cv_lib_svld_dlopen" >&6; }
  15665. if test "x$ac_cv_lib_svld_dlopen" = xyes
  15666. then :
  15667. lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-lsvld
  15668. else case e in #(
  15669. e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
  15670. printf %s "checking for dld_link in -ldld... " >&6; }
  15671. if test ${ac_cv_lib_dld_dld_link+y}
  15672. then :
  15673. printf %s "(cached) " >&6
  15674. else case e in #(
  15675. e) ac_check_lib_save_LIBS=$LIBS
  15676. LIBS="-ldld $LIBS"
  15677. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15678. /* end confdefs.h. */
  15679. /* Override any GCC internal prototype to avoid an error.
  15680. Use char because int might match the return type of a GCC
  15681. builtin and then its argument prototype would still apply.
  15682. The 'extern "C"' is for builds by C++ compilers;
  15683. although this is not generally supported in C code supporting it here
  15684. has little cost and some practical benefit (sr 110532). */
  15685. #ifdef __cplusplus
  15686. extern "C"
  15687. #endif
  15688. char dld_link (void);
  15689. int
  15690. main (void)
  15691. {
  15692. return dld_link ();
  15693. ;
  15694. return 0;
  15695. }
  15696. _ACEOF
  15697. if ac_fn_c_try_link "$LINENO"
  15698. then :
  15699. ac_cv_lib_dld_dld_link=yes
  15700. else case e in #(
  15701. e) ac_cv_lib_dld_dld_link=no ;;
  15702. esac
  15703. fi
  15704. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  15705. conftest$ac_exeext conftest.$ac_ext
  15706. LIBS=$ac_check_lib_save_LIBS ;;
  15707. esac
  15708. fi
  15709. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
  15710. printf "%s\n" "$ac_cv_lib_dld_dld_link" >&6; }
  15711. if test "x$ac_cv_lib_dld_dld_link" = xyes
  15712. then :
  15713. lt_cv_dlopen=dld_link lt_cv_dlopen_libs=-ldld
  15714. fi
  15715. ;;
  15716. esac
  15717. fi
  15718. ;;
  15719. esac
  15720. fi
  15721. ;;
  15722. esac
  15723. fi
  15724. ;;
  15725. esac
  15726. fi
  15727. ;;
  15728. esac
  15729. fi
  15730. ;;
  15731. esac
  15732. if test no = "$lt_cv_dlopen"; then
  15733. enable_dlopen=no
  15734. else
  15735. enable_dlopen=yes
  15736. fi
  15737. case $lt_cv_dlopen in
  15738. dlopen)
  15739. save_CPPFLAGS=$CPPFLAGS
  15740. test yes = "$ac_cv_header_dlfcn_h" && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
  15741. save_LDFLAGS=$LDFLAGS
  15742. wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
  15743. save_LIBS=$LIBS
  15744. LIBS="$lt_cv_dlopen_libs $LIBS"
  15745. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
  15746. printf %s "checking whether a program can dlopen itself... " >&6; }
  15747. if test ${lt_cv_dlopen_self+y}
  15748. then :
  15749. printf %s "(cached) " >&6
  15750. else case e in #(
  15751. e) if test yes = "$cross_compiling"; then :
  15752. lt_cv_dlopen_self=cross
  15753. else
  15754. lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
  15755. lt_status=$lt_dlunknown
  15756. cat > conftest.$ac_ext <<_LT_EOF
  15757. #line $LINENO "configure"
  15758. #include "confdefs.h"
  15759. #if HAVE_DLFCN_H
  15760. #include <dlfcn.h>
  15761. #endif
  15762. #include <stdio.h>
  15763. #ifdef RTLD_GLOBAL
  15764. # define LT_DLGLOBAL RTLD_GLOBAL
  15765. #else
  15766. # ifdef DL_GLOBAL
  15767. # define LT_DLGLOBAL DL_GLOBAL
  15768. # else
  15769. # define LT_DLGLOBAL 0
  15770. # endif
  15771. #endif
  15772. /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
  15773. find out it does not work in some platform. */
  15774. #ifndef LT_DLLAZY_OR_NOW
  15775. # ifdef RTLD_LAZY
  15776. # define LT_DLLAZY_OR_NOW RTLD_LAZY
  15777. # else
  15778. # ifdef DL_LAZY
  15779. # define LT_DLLAZY_OR_NOW DL_LAZY
  15780. # else
  15781. # ifdef RTLD_NOW
  15782. # define LT_DLLAZY_OR_NOW RTLD_NOW
  15783. # else
  15784. # ifdef DL_NOW
  15785. # define LT_DLLAZY_OR_NOW DL_NOW
  15786. # else
  15787. # define LT_DLLAZY_OR_NOW 0
  15788. # endif
  15789. # endif
  15790. # endif
  15791. # endif
  15792. #endif
  15793. /* When -fvisibility=hidden is used, assume the code has been annotated
  15794. correspondingly for the symbols needed. */
  15795. #if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
  15796. int fnord (void) __attribute__((visibility("default")));
  15797. #endif
  15798. int fnord (void) { return 42; }
  15799. int main (void)
  15800. {
  15801. void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
  15802. int status = $lt_dlunknown;
  15803. if (self)
  15804. {
  15805. if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
  15806. else
  15807. {
  15808. if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
  15809. else puts (dlerror ());
  15810. }
  15811. /* dlclose (self); */
  15812. }
  15813. else
  15814. puts (dlerror ());
  15815. return status;
  15816. }
  15817. _LT_EOF
  15818. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
  15819. (eval $ac_link) 2>&5
  15820. ac_status=$?
  15821. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  15822. test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
  15823. (./conftest; exit; ) >&5 2>/dev/null
  15824. lt_status=$?
  15825. case x$lt_status in
  15826. x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
  15827. x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
  15828. x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
  15829. esac
  15830. else :
  15831. # compilation failed
  15832. lt_cv_dlopen_self=no
  15833. fi
  15834. fi
  15835. rm -fr conftest*
  15836. ;;
  15837. esac
  15838. fi
  15839. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
  15840. printf "%s\n" "$lt_cv_dlopen_self" >&6; }
  15841. if test yes = "$lt_cv_dlopen_self"; then
  15842. wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
  15843. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
  15844. printf %s "checking whether a statically linked program can dlopen itself... " >&6; }
  15845. if test ${lt_cv_dlopen_self_static+y}
  15846. then :
  15847. printf %s "(cached) " >&6
  15848. else case e in #(
  15849. e) if test yes = "$cross_compiling"; then :
  15850. lt_cv_dlopen_self_static=cross
  15851. else
  15852. lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
  15853. lt_status=$lt_dlunknown
  15854. cat > conftest.$ac_ext <<_LT_EOF
  15855. #line $LINENO "configure"
  15856. #include "confdefs.h"
  15857. #if HAVE_DLFCN_H
  15858. #include <dlfcn.h>
  15859. #endif
  15860. #include <stdio.h>
  15861. #ifdef RTLD_GLOBAL
  15862. # define LT_DLGLOBAL RTLD_GLOBAL
  15863. #else
  15864. # ifdef DL_GLOBAL
  15865. # define LT_DLGLOBAL DL_GLOBAL
  15866. # else
  15867. # define LT_DLGLOBAL 0
  15868. # endif
  15869. #endif
  15870. /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
  15871. find out it does not work in some platform. */
  15872. #ifndef LT_DLLAZY_OR_NOW
  15873. # ifdef RTLD_LAZY
  15874. # define LT_DLLAZY_OR_NOW RTLD_LAZY
  15875. # else
  15876. # ifdef DL_LAZY
  15877. # define LT_DLLAZY_OR_NOW DL_LAZY
  15878. # else
  15879. # ifdef RTLD_NOW
  15880. # define LT_DLLAZY_OR_NOW RTLD_NOW
  15881. # else
  15882. # ifdef DL_NOW
  15883. # define LT_DLLAZY_OR_NOW DL_NOW
  15884. # else
  15885. # define LT_DLLAZY_OR_NOW 0
  15886. # endif
  15887. # endif
  15888. # endif
  15889. # endif
  15890. #endif
  15891. /* When -fvisibility=hidden is used, assume the code has been annotated
  15892. correspondingly for the symbols needed. */
  15893. #if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
  15894. int fnord (void) __attribute__((visibility("default")));
  15895. #endif
  15896. int fnord (void) { return 42; }
  15897. int main (void)
  15898. {
  15899. void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
  15900. int status = $lt_dlunknown;
  15901. if (self)
  15902. {
  15903. if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
  15904. else
  15905. {
  15906. if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
  15907. else puts (dlerror ());
  15908. }
  15909. /* dlclose (self); */
  15910. }
  15911. else
  15912. puts (dlerror ());
  15913. return status;
  15914. }
  15915. _LT_EOF
  15916. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
  15917. (eval $ac_link) 2>&5
  15918. ac_status=$?
  15919. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  15920. test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
  15921. (./conftest; exit; ) >&5 2>/dev/null
  15922. lt_status=$?
  15923. case x$lt_status in
  15924. x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
  15925. x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
  15926. x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
  15927. esac
  15928. else :
  15929. # compilation failed
  15930. lt_cv_dlopen_self_static=no
  15931. fi
  15932. fi
  15933. rm -fr conftest*
  15934. ;;
  15935. esac
  15936. fi
  15937. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
  15938. printf "%s\n" "$lt_cv_dlopen_self_static" >&6; }
  15939. fi
  15940. CPPFLAGS=$save_CPPFLAGS
  15941. LDFLAGS=$save_LDFLAGS
  15942. LIBS=$save_LIBS
  15943. ;;
  15944. esac
  15945. case $lt_cv_dlopen_self in
  15946. yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
  15947. *) enable_dlopen_self=unknown ;;
  15948. esac
  15949. case $lt_cv_dlopen_self_static in
  15950. yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
  15951. *) enable_dlopen_self_static=unknown ;;
  15952. esac
  15953. fi
  15954. striplib=
  15955. old_striplib=
  15956. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
  15957. printf %s "checking whether stripping libraries is possible... " >&6; }
  15958. if test -z "$STRIP"; then
  15959. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  15960. printf "%s\n" "no" >&6; }
  15961. else
  15962. if $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
  15963. old_striplib="$STRIP --strip-debug"
  15964. striplib="$STRIP --strip-unneeded"
  15965. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  15966. printf "%s\n" "yes" >&6; }
  15967. else
  15968. case $host_os in
  15969. darwin*)
  15970. # FIXME - insert some real tests, host_os isn't really good enough
  15971. striplib="$STRIP -x"
  15972. old_striplib="$STRIP -S"
  15973. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  15974. printf "%s\n" "yes" >&6; }
  15975. ;;
  15976. freebsd*)
  15977. if $STRIP -V 2>&1 | $GREP "elftoolchain" >/dev/null; then
  15978. old_striplib="$STRIP --strip-debug"
  15979. striplib="$STRIP --strip-unneeded"
  15980. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  15981. printf "%s\n" "yes" >&6; }
  15982. else
  15983. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  15984. printf "%s\n" "no" >&6; }
  15985. fi
  15986. ;;
  15987. *)
  15988. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  15989. printf "%s\n" "no" >&6; }
  15990. ;;
  15991. esac
  15992. fi
  15993. fi
  15994. # Report what library types will actually be built
  15995. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
  15996. printf %s "checking if libtool supports shared libraries... " >&6; }
  15997. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
  15998. printf "%s\n" "$can_build_shared" >&6; }
  15999. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
  16000. printf %s "checking whether to build shared libraries... " >&6; }
  16001. test no = "$can_build_shared" && enable_shared=no
  16002. # On AIX, shared libraries and static libraries use the same namespace, and
  16003. # are all built from PIC.
  16004. case $host_os in
  16005. aix3*)
  16006. test yes = "$enable_shared" && enable_static=no
  16007. if test -n "$RANLIB"; then
  16008. archive_cmds="$archive_cmds~\$RANLIB \$lib"
  16009. postinstall_cmds='$RANLIB $lib'
  16010. fi
  16011. ;;
  16012. aix[4-9]*)
  16013. if test ia64 != "$host_cpu"; then
  16014. case $enable_shared,$with_aix_soname,$aix_use_runtimelinking in
  16015. yes,aix,yes) ;; # shared object as lib.so file only
  16016. yes,svr4,*) ;; # shared object as lib.so archive member only
  16017. yes,*) enable_static=no ;; # shared object in lib.a archive as well
  16018. esac
  16019. fi
  16020. ;;
  16021. esac
  16022. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
  16023. printf "%s\n" "$enable_shared" >&6; }
  16024. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
  16025. printf %s "checking whether to build static libraries... " >&6; }
  16026. # Make sure either enable_shared or enable_static is yes.
  16027. test yes = "$enable_shared" || enable_static=yes
  16028. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
  16029. printf "%s\n" "$enable_static" >&6; }
  16030. fi
  16031. ac_ext=c
  16032. ac_cpp='$CPP $CPPFLAGS'
  16033. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  16034. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  16035. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  16036. CC=$lt_save_CC
  16037. ac_config_commands="$ac_config_commands libtool"
  16038. # Only expand once:
  16039. # Checks to compile test suite
  16040. ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default
  16041. "
  16042. if test "x$ac_cv_type_pid_t" = xyes
  16043. then :
  16044. else case e in #(
  16045. e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16046. /* end confdefs.h. */
  16047. #if defined _WIN64 && !defined __CYGWIN__
  16048. LLP64
  16049. #endif
  16050. int
  16051. main (void)
  16052. {
  16053. ;
  16054. return 0;
  16055. }
  16056. _ACEOF
  16057. if ac_fn_c_try_compile "$LINENO"
  16058. then :
  16059. ac_pid_type='int'
  16060. else case e in #(
  16061. e) ac_pid_type='__int64' ;;
  16062. esac
  16063. fi
  16064. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  16065. printf "%s\n" "#define pid_t $ac_pid_type" >>confdefs.h
  16066. ;;
  16067. esac
  16068. fi
  16069. # Search in /usr/ccs/bin for Solaris
  16070. ne_PATH=$PATH:/usr/ccs/bin
  16071. if test -n "$ac_tool_prefix"; then
  16072. # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
  16073. set dummy ${ac_tool_prefix}ar; ac_word=$2
  16074. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  16075. printf %s "checking for $ac_word... " >&6; }
  16076. if test ${ac_cv_prog_AR+y}
  16077. then :
  16078. printf %s "(cached) " >&6
  16079. else case e in #(
  16080. e) if test -n "$AR"; then
  16081. ac_cv_prog_AR="$AR" # Let the user override the test.
  16082. else
  16083. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  16084. for as_dir in $ne_PATH
  16085. do
  16086. IFS=$as_save_IFS
  16087. case $as_dir in #(((
  16088. '') as_dir=./ ;;
  16089. */) ;;
  16090. *) as_dir=$as_dir/ ;;
  16091. esac
  16092. for ac_exec_ext in '' $ac_executable_extensions; do
  16093. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  16094. ac_cv_prog_AR="${ac_tool_prefix}ar"
  16095. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  16096. break 2
  16097. fi
  16098. done
  16099. done
  16100. IFS=$as_save_IFS
  16101. fi ;;
  16102. esac
  16103. fi
  16104. AR=$ac_cv_prog_AR
  16105. if test -n "$AR"; then
  16106. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
  16107. printf "%s\n" "$AR" >&6; }
  16108. else
  16109. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  16110. printf "%s\n" "no" >&6; }
  16111. fi
  16112. fi
  16113. if test -z "$ac_cv_prog_AR"; then
  16114. ac_ct_AR=$AR
  16115. # Extract the first word of "ar", so it can be a program name with args.
  16116. set dummy ar; ac_word=$2
  16117. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  16118. printf %s "checking for $ac_word... " >&6; }
  16119. if test ${ac_cv_prog_ac_ct_AR+y}
  16120. then :
  16121. printf %s "(cached) " >&6
  16122. else case e in #(
  16123. e) if test -n "$ac_ct_AR"; then
  16124. ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
  16125. else
  16126. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  16127. for as_dir in $ne_PATH
  16128. do
  16129. IFS=$as_save_IFS
  16130. case $as_dir in #(((
  16131. '') as_dir=./ ;;
  16132. */) ;;
  16133. *) as_dir=$as_dir/ ;;
  16134. esac
  16135. for ac_exec_ext in '' $ac_executable_extensions; do
  16136. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  16137. ac_cv_prog_ac_ct_AR="ar"
  16138. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  16139. break 2
  16140. fi
  16141. done
  16142. done
  16143. IFS=$as_save_IFS
  16144. fi ;;
  16145. esac
  16146. fi
  16147. ac_ct_AR=$ac_cv_prog_ac_ct_AR
  16148. if test -n "$ac_ct_AR"; then
  16149. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
  16150. printf "%s\n" "$ac_ct_AR" >&6; }
  16151. else
  16152. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  16153. printf "%s\n" "no" >&6; }
  16154. fi
  16155. if test "x$ac_ct_AR" = x; then
  16156. AR="notfound"
  16157. else
  16158. case $cross_compiling:$ac_tool_warned in
  16159. yes:)
  16160. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  16161. printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  16162. ac_tool_warned=yes ;;
  16163. esac
  16164. AR=$ac_ct_AR
  16165. fi
  16166. else
  16167. AR="$ac_cv_prog_AR"
  16168. fi
  16169. if test "x$AR" = "xnotfound"; then
  16170. as_fn_error $? "could not find ar tool" "$LINENO" 5
  16171. fi
  16172. if test -n "$ac_tool_prefix"; then
  16173. # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
  16174. set dummy ${ac_tool_prefix}ranlib; ac_word=$2
  16175. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  16176. printf %s "checking for $ac_word... " >&6; }
  16177. if test ${ac_cv_prog_RANLIB+y}
  16178. then :
  16179. printf %s "(cached) " >&6
  16180. else case e in #(
  16181. e) if test -n "$RANLIB"; then
  16182. ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
  16183. else
  16184. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  16185. for as_dir in $ne_PATH
  16186. do
  16187. IFS=$as_save_IFS
  16188. case $as_dir in #(((
  16189. '') as_dir=./ ;;
  16190. */) ;;
  16191. *) as_dir=$as_dir/ ;;
  16192. esac
  16193. for ac_exec_ext in '' $ac_executable_extensions; do
  16194. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  16195. ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
  16196. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  16197. break 2
  16198. fi
  16199. done
  16200. done
  16201. IFS=$as_save_IFS
  16202. fi ;;
  16203. esac
  16204. fi
  16205. RANLIB=$ac_cv_prog_RANLIB
  16206. if test -n "$RANLIB"; then
  16207. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
  16208. printf "%s\n" "$RANLIB" >&6; }
  16209. else
  16210. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  16211. printf "%s\n" "no" >&6; }
  16212. fi
  16213. fi
  16214. if test -z "$ac_cv_prog_RANLIB"; then
  16215. ac_ct_RANLIB=$RANLIB
  16216. # Extract the first word of "ranlib", so it can be a program name with args.
  16217. set dummy ranlib; ac_word=$2
  16218. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  16219. printf %s "checking for $ac_word... " >&6; }
  16220. if test ${ac_cv_prog_ac_ct_RANLIB+y}
  16221. then :
  16222. printf %s "(cached) " >&6
  16223. else case e in #(
  16224. e) if test -n "$ac_ct_RANLIB"; then
  16225. ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
  16226. else
  16227. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  16228. for as_dir in $ne_PATH
  16229. do
  16230. IFS=$as_save_IFS
  16231. case $as_dir in #(((
  16232. '') as_dir=./ ;;
  16233. */) ;;
  16234. *) as_dir=$as_dir/ ;;
  16235. esac
  16236. for ac_exec_ext in '' $ac_executable_extensions; do
  16237. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  16238. ac_cv_prog_ac_ct_RANLIB="ranlib"
  16239. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  16240. break 2
  16241. fi
  16242. done
  16243. done
  16244. IFS=$as_save_IFS
  16245. fi ;;
  16246. esac
  16247. fi
  16248. ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
  16249. if test -n "$ac_ct_RANLIB"; then
  16250. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
  16251. printf "%s\n" "$ac_ct_RANLIB" >&6; }
  16252. else
  16253. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  16254. printf "%s\n" "no" >&6; }
  16255. fi
  16256. if test "x$ac_ct_RANLIB" = x; then
  16257. RANLIB=":"
  16258. else
  16259. case $cross_compiling:$ac_tool_warned in
  16260. yes:)
  16261. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  16262. printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  16263. ac_tool_warned=yes ;;
  16264. esac
  16265. RANLIB=$ac_ct_RANLIB
  16266. fi
  16267. else
  16268. RANLIB="$ac_cv_prog_RANLIB"
  16269. fi
  16270. ac_fn_c_check_header_compile "$LINENO" "sys/time.h" "ac_cv_header_sys_time_h" "$ac_includes_default"
  16271. if test "x$ac_cv_header_sys_time_h" = xyes
  16272. then :
  16273. printf "%s\n" "#define HAVE_SYS_TIME_H 1" >>confdefs.h
  16274. fi
  16275. ac_fn_c_check_header_compile "$LINENO" "signal.h" "ac_cv_header_signal_h" "$ac_includes_default"
  16276. if test "x$ac_cv_header_signal_h" = xyes
  16277. then :
  16278. printf "%s\n" "#define HAVE_SIGNAL_H 1" >>confdefs.h
  16279. fi
  16280. ac_fn_c_check_header_compile "$LINENO" "stdint.h" "ac_cv_header_stdint_h" "$ac_includes_default"
  16281. if test "x$ac_cv_header_stdint_h" = xyes
  16282. then :
  16283. printf "%s\n" "#define HAVE_STDINT_H 1" >>confdefs.h
  16284. fi
  16285. ac_fn_c_check_header_compile "$LINENO" "locale.h" "ac_cv_header_locale_h" "$ac_includes_default"
  16286. if test "x$ac_cv_header_locale_h" = xyes
  16287. then :
  16288. printf "%s\n" "#define HAVE_LOCALE_H 1" >>confdefs.h
  16289. fi
  16290. ac_fn_c_check_func "$LINENO" "pipe" "ac_cv_func_pipe"
  16291. if test "x$ac_cv_func_pipe" = xyes
  16292. then :
  16293. printf "%s\n" "#define HAVE_PIPE 1" >>confdefs.h
  16294. fi
  16295. ac_fn_c_check_func "$LINENO" "isatty" "ac_cv_func_isatty"
  16296. if test "x$ac_cv_func_isatty" = xyes
  16297. then :
  16298. printf "%s\n" "#define HAVE_ISATTY 1" >>confdefs.h
  16299. fi
  16300. ac_fn_c_check_func "$LINENO" "usleep" "ac_cv_func_usleep"
  16301. if test "x$ac_cv_func_usleep" = xyes
  16302. then :
  16303. printf "%s\n" "#define HAVE_USLEEP 1" >>confdefs.h
  16304. fi
  16305. ac_fn_c_check_func "$LINENO" "shutdown" "ac_cv_func_shutdown"
  16306. if test "x$ac_cv_func_shutdown" = xyes
  16307. then :
  16308. printf "%s\n" "#define HAVE_SHUTDOWN 1" >>confdefs.h
  16309. fi
  16310. ac_fn_c_check_func "$LINENO" "setlocale" "ac_cv_func_setlocale"
  16311. if test "x$ac_cv_func_setlocale" = xyes
  16312. then :
  16313. printf "%s\n" "#define HAVE_SETLOCALE 1" >>confdefs.h
  16314. fi
  16315. ac_fn_c_check_func "$LINENO" "gethostname" "ac_cv_func_gethostname"
  16316. if test "x$ac_cv_func_gethostname" = xyes
  16317. then :
  16318. printf "%s\n" "#define HAVE_GETHOSTNAME 1" >>confdefs.h
  16319. fi
  16320. # Use the libtool-type build.
  16321. NEON_TARGET=libneon.la
  16322. NEON_OBJEXT=lo
  16323. # Using the default set of object files to build.
  16324. # Add the extension to EXTRAOBJS
  16325. ne="$NEON_EXTRAOBJS"
  16326. NEON_EXTRAOBJS=
  16327. for o in $ne; do
  16328. NEON_EXTRAOBJS="$NEON_EXTRAOBJS $o.$NEON_OBJEXT"
  16329. done
  16330. # Was DAV support explicitly turned off?
  16331. if test "x$neon_no_webdav" = "xyes"; then
  16332. # No WebDAV support
  16333. NEONOBJS="$NEONOBJS \$(NEON_BASEOBJS)"
  16334. NE_FLAG_DAV=no
  16335. ne_DAV_message="WebDAV support is not enabled"
  16336. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WebDAV support is not enabled" >&5
  16337. printf "%s\n" "$as_me: WebDAV support is not enabled" >&6;}
  16338. if test "x${NE_LIBTOOL_RELEASE}y" = "xy"; then
  16339. NE_LIBTOOL_RELEASE="NODAV"
  16340. else
  16341. NE_LIBTOOL_RELEASE="${NE_LIBTOOL_RELEASE}-NODAV"
  16342. fi
  16343. else
  16344. # WebDAV support
  16345. NEONOBJS="$NEONOBJS \$(NEON_DAVOBJS)"
  16346. NE_FLAG_DAV=yes
  16347. printf "%s\n" "#define NE_HAVE_DAV 1" >>confdefs.h
  16348. ne_DAV_message="WebDAV support is enabled"
  16349. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WebDAV support is enabled" >&5
  16350. printf "%s\n" "$as_me: WebDAV support is enabled" >&6;}
  16351. fi
  16352. # Find an XML parser
  16353. # Check whether --with-libxml2 was given.
  16354. if test ${with_libxml2+y}
  16355. then :
  16356. withval=$with_libxml2;
  16357. fi
  16358. # Check whether --with-expat was given.
  16359. if test ${with_expat+y}
  16360. then :
  16361. withval=$with_expat;
  16362. fi
  16363. with_included_expat=no
  16364. if test "$NEON_NEED_XML_PARSER" = "yes"; then
  16365. # Find an XML parser
  16366. neon_xml_parser=none
  16367. # Forced choice of expat:
  16368. case $with_expat in
  16369. yes)
  16370. ac_fn_c_check_header_compile "$LINENO" "expat.h" "ac_cv_header_expat_h" "$ac_includes_default"
  16371. if test "x$ac_cv_header_expat_h" = xyes
  16372. then :
  16373. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for XML_SetXmlDeclHandler in -lexpat" >&5
  16374. printf %s "checking for XML_SetXmlDeclHandler in -lexpat... " >&6; }
  16375. if test ${ac_cv_lib_expat_XML_SetXmlDeclHandler+y}
  16376. then :
  16377. printf %s "(cached) " >&6
  16378. else case e in #(
  16379. e) ac_check_lib_save_LIBS=$LIBS
  16380. LIBS="-lexpat $LIBS"
  16381. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16382. /* end confdefs.h. */
  16383. /* Override any GCC internal prototype to avoid an error.
  16384. Use char because int might match the return type of a GCC
  16385. builtin and then its argument prototype would still apply.
  16386. The 'extern "C"' is for builds by C++ compilers;
  16387. although this is not generally supported in C code supporting it here
  16388. has little cost and some practical benefit (sr 110532). */
  16389. #ifdef __cplusplus
  16390. extern "C"
  16391. #endif
  16392. char XML_SetXmlDeclHandler (void);
  16393. int
  16394. main (void)
  16395. {
  16396. return XML_SetXmlDeclHandler ();
  16397. ;
  16398. return 0;
  16399. }
  16400. _ACEOF
  16401. if ac_fn_c_try_link "$LINENO"
  16402. then :
  16403. ac_cv_lib_expat_XML_SetXmlDeclHandler=yes
  16404. else case e in #(
  16405. e) ac_cv_lib_expat_XML_SetXmlDeclHandler=no ;;
  16406. esac
  16407. fi
  16408. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  16409. conftest$ac_exeext conftest.$ac_ext
  16410. LIBS=$ac_check_lib_save_LIBS ;;
  16411. esac
  16412. fi
  16413. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_expat_XML_SetXmlDeclHandler" >&5
  16414. printf "%s\n" "$ac_cv_lib_expat_XML_SetXmlDeclHandler" >&6; }
  16415. if test "x$ac_cv_lib_expat_XML_SetXmlDeclHandler" = xyes
  16416. then :
  16417. printf "%s\n" "#define HAVE_EXPAT 1" >>confdefs.h
  16418. neon_xml_parser_message="expat"
  16419. NEON_LIBS="$NEON_LIBS -lexpat"
  16420. neon_xml_parser=expat
  16421. ac_fn_c_check_type "$LINENO" "XML_Size" "ac_cv_type_XML_Size" "#include <expat.h>
  16422. "
  16423. if test "x$ac_cv_type_XML_Size" = xyes
  16424. then :
  16425. # The cast to long int works around a bug in the HP C Compiler
  16426. # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
  16427. # declarations like 'int a3[[(sizeof (unsigned char)) >= 0]];'.
  16428. # This bug is HP SR number 8606223364.
  16429. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking size of XML_Size" >&5
  16430. printf %s "checking size of XML_Size... " >&6; }
  16431. if test ${ac_cv_sizeof_XML_Size+y}
  16432. then :
  16433. printf %s "(cached) " >&6
  16434. else case e in #(
  16435. e) if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (XML_Size))" "ac_cv_sizeof_XML_Size" "$ac_includes_default
  16436. #include <expat.h>
  16437. "
  16438. then :
  16439. else case e in #(
  16440. e) if test "$ac_cv_type_XML_Size" = yes; then
  16441. { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
  16442. printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
  16443. as_fn_error 77 "cannot compute sizeof (XML_Size)
  16444. See 'config.log' for more details" "$LINENO" 5; }
  16445. else
  16446. ac_cv_sizeof_XML_Size=0
  16447. fi ;;
  16448. esac
  16449. fi
  16450. ;;
  16451. esac
  16452. fi
  16453. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_XML_Size" >&5
  16454. printf "%s\n" "$ac_cv_sizeof_XML_Size" >&6; }
  16455. printf "%s\n" "#define SIZEOF_XML_SIZE $ac_cv_sizeof_XML_Size" >>confdefs.h
  16456. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to print XML_Size" >&5
  16457. printf %s "checking how to print XML_Size... " >&6; }
  16458. if test ${ne_cv_fmt_XML_Size+y}
  16459. then :
  16460. printf %s "(cached) " >&6
  16461. else case e in #(
  16462. e)
  16463. ne_cv_fmt_XML_Size=none
  16464. if test $ne_fmt_trycompile = yes; then
  16465. oflags="$CPPFLAGS"
  16466. # Consider format string mismatches as errors
  16467. CPPFLAGS="$CPPFLAGS -Wformat -Werror"
  16468. for str in d ld lld; do
  16469. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16470. /* end confdefs.h. */
  16471. #include <sys/types.h>
  16472. #include <expat.h>
  16473. #include <stdio.h>
  16474. int
  16475. main (void)
  16476. {
  16477. XML_Size i = 1; printf("%$str", i);
  16478. ;
  16479. return 0;
  16480. }
  16481. _ACEOF
  16482. if ac_fn_c_try_compile "$LINENO"
  16483. then :
  16484. ne_cv_fmt_XML_Size=$str; break
  16485. fi
  16486. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  16487. done
  16488. CPPFLAGS=$oflags
  16489. else
  16490. # Best guess. Don't have to be too precise since we probably won't
  16491. # get a warning message anyway.
  16492. case $ac_cv_sizeof_XML_Size in
  16493. $ac_cv_sizeof_int) ne_cv_fmt_XML_Size="d" ;;
  16494. $ac_cv_sizeof_long) ne_cv_fmt_XML_Size="ld" ;;
  16495. $ac_cv_sizeof_long_long) ne_cv_fmt_XML_Size="lld" ;;
  16496. esac
  16497. fi
  16498. ;;
  16499. esac
  16500. fi
  16501. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ne_cv_fmt_XML_Size" >&5
  16502. printf "%s\n" "$ne_cv_fmt_XML_Size" >&6; }
  16503. if test "x$ne_cv_fmt_XML_Size" = "xnone"; then
  16504. as_fn_error $? "format string for XML_Size not found" "$LINENO" 5
  16505. fi
  16506. printf "%s\n" "#define NE_FMT_XML_SIZE \"$ne_cv_fmt_XML_Size\"" >>confdefs.h
  16507. else case e in #(
  16508. e) printf "%s\n" "#define NE_FMT_XML_SIZE \"d\"" >>confdefs.h
  16509. ;;
  16510. esac
  16511. fi
  16512. else case e in #(
  16513. e) as_fn_error $? "expat library not found, cannot proceed" "$LINENO" 5 ;;
  16514. esac
  16515. fi
  16516. else case e in #(
  16517. e) as_fn_error $? "expat library not found, cannot proceed" "$LINENO" 5 ;;
  16518. esac
  16519. fi
  16520. ;;
  16521. no) ;;
  16522. */libexpat.la)
  16523. # Special case for Subversion
  16524. ne_expdir=`echo $with_expat | sed 's:/libexpat.la$::'`
  16525. printf "%s\n" "#define HAVE_EXPAT 1" >>confdefs.h
  16526. printf "%s\n" "#define NE_FMT_XML_SIZE \"d\"" >>confdefs.h
  16527. CPPFLAGS="$CPPFLAGS -I$ne_expdir"
  16528. if test "x${NEON_TARGET}" = "xlibneon.la"; then
  16529. NEON_LTLIBS=$with_expat
  16530. else
  16531. # no dependency on libexpat => crippled libneon, so do partial install
  16532. ALLOW_INSTALL=lib
  16533. fi
  16534. neon_xml_parser=expat
  16535. neon_xml_parser_message="expat in $ne_expdir"
  16536. ;;
  16537. /*) as_fn_error $? "--with-expat does not take a directory argument" "$LINENO" 5 ;;
  16538. esac
  16539. # If expat wasn't specifically enabled and libxml was:
  16540. if test "${neon_xml_parser}-${with_libxml2}-${with_included_expat}" = "none-yes-no"; then
  16541. if test -n "$ac_tool_prefix"; then
  16542. # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
  16543. set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
  16544. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  16545. printf %s "checking for $ac_word... " >&6; }
  16546. if test ${ac_cv_path_PKG_CONFIG+y}
  16547. then :
  16548. printf %s "(cached) " >&6
  16549. else case e in #(
  16550. e) case $PKG_CONFIG in
  16551. [\\/]* | ?:[\\/]*)
  16552. ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
  16553. ;;
  16554. *)
  16555. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  16556. for as_dir in $PATH
  16557. do
  16558. IFS=$as_save_IFS
  16559. case $as_dir in #(((
  16560. '') as_dir=./ ;;
  16561. */) ;;
  16562. *) as_dir=$as_dir/ ;;
  16563. esac
  16564. for ac_exec_ext in '' $ac_executable_extensions; do
  16565. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  16566. ac_cv_path_PKG_CONFIG="$as_dir$ac_word$ac_exec_ext"
  16567. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  16568. break 2
  16569. fi
  16570. done
  16571. done
  16572. IFS=$as_save_IFS
  16573. ;;
  16574. esac ;;
  16575. esac
  16576. fi
  16577. PKG_CONFIG=$ac_cv_path_PKG_CONFIG
  16578. if test -n "$PKG_CONFIG"; then
  16579. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
  16580. printf "%s\n" "$PKG_CONFIG" >&6; }
  16581. else
  16582. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  16583. printf "%s\n" "no" >&6; }
  16584. fi
  16585. fi
  16586. if test -z "$ac_cv_path_PKG_CONFIG"; then
  16587. ac_pt_PKG_CONFIG=$PKG_CONFIG
  16588. # Extract the first word of "pkg-config", so it can be a program name with args.
  16589. set dummy pkg-config; ac_word=$2
  16590. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  16591. printf %s "checking for $ac_word... " >&6; }
  16592. if test ${ac_cv_path_ac_pt_PKG_CONFIG+y}
  16593. then :
  16594. printf %s "(cached) " >&6
  16595. else case e in #(
  16596. e) case $ac_pt_PKG_CONFIG in
  16597. [\\/]* | ?:[\\/]*)
  16598. ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
  16599. ;;
  16600. *)
  16601. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  16602. for as_dir in $PATH
  16603. do
  16604. IFS=$as_save_IFS
  16605. case $as_dir in #(((
  16606. '') as_dir=./ ;;
  16607. */) ;;
  16608. *) as_dir=$as_dir/ ;;
  16609. esac
  16610. for ac_exec_ext in '' $ac_executable_extensions; do
  16611. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  16612. ac_cv_path_ac_pt_PKG_CONFIG="$as_dir$ac_word$ac_exec_ext"
  16613. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  16614. break 2
  16615. fi
  16616. done
  16617. done
  16618. IFS=$as_save_IFS
  16619. ;;
  16620. esac ;;
  16621. esac
  16622. fi
  16623. ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
  16624. if test -n "$ac_pt_PKG_CONFIG"; then
  16625. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
  16626. printf "%s\n" "$ac_pt_PKG_CONFIG" >&6; }
  16627. else
  16628. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  16629. printf "%s\n" "no" >&6; }
  16630. fi
  16631. if test "x$ac_pt_PKG_CONFIG" = x; then
  16632. PKG_CONFIG="no"
  16633. else
  16634. case $cross_compiling:$ac_tool_warned in
  16635. yes:)
  16636. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  16637. printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  16638. ac_tool_warned=yes ;;
  16639. esac
  16640. PKG_CONFIG=$ac_pt_PKG_CONFIG
  16641. fi
  16642. else
  16643. PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
  16644. fi
  16645. if test "x$PKG_CONFIG" = "xno"; then
  16646. : Not using pkg-config
  16647. if test -n "$ac_tool_prefix"; then
  16648. # Extract the first word of "${ac_tool_prefix}xml2-config", so it can be a program name with args.
  16649. set dummy ${ac_tool_prefix}xml2-config; ac_word=$2
  16650. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  16651. printf %s "checking for $ac_word... " >&6; }
  16652. if test ${ac_cv_prog_XML2_CONFIG+y}
  16653. then :
  16654. printf %s "(cached) " >&6
  16655. else case e in #(
  16656. e) if test -n "$XML2_CONFIG"; then
  16657. ac_cv_prog_XML2_CONFIG="$XML2_CONFIG" # Let the user override the test.
  16658. else
  16659. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  16660. for as_dir in $PATH
  16661. do
  16662. IFS=$as_save_IFS
  16663. case $as_dir in #(((
  16664. '') as_dir=./ ;;
  16665. */) ;;
  16666. *) as_dir=$as_dir/ ;;
  16667. esac
  16668. for ac_exec_ext in '' $ac_executable_extensions; do
  16669. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  16670. ac_cv_prog_XML2_CONFIG="${ac_tool_prefix}xml2-config"
  16671. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  16672. break 2
  16673. fi
  16674. done
  16675. done
  16676. IFS=$as_save_IFS
  16677. fi ;;
  16678. esac
  16679. fi
  16680. XML2_CONFIG=$ac_cv_prog_XML2_CONFIG
  16681. if test -n "$XML2_CONFIG"; then
  16682. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $XML2_CONFIG" >&5
  16683. printf "%s\n" "$XML2_CONFIG" >&6; }
  16684. else
  16685. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  16686. printf "%s\n" "no" >&6; }
  16687. fi
  16688. fi
  16689. if test -z "$ac_cv_prog_XML2_CONFIG"; then
  16690. ac_ct_XML2_CONFIG=$XML2_CONFIG
  16691. # Extract the first word of "xml2-config", so it can be a program name with args.
  16692. set dummy xml2-config; ac_word=$2
  16693. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  16694. printf %s "checking for $ac_word... " >&6; }
  16695. if test ${ac_cv_prog_ac_ct_XML2_CONFIG+y}
  16696. then :
  16697. printf %s "(cached) " >&6
  16698. else case e in #(
  16699. e) if test -n "$ac_ct_XML2_CONFIG"; then
  16700. ac_cv_prog_ac_ct_XML2_CONFIG="$ac_ct_XML2_CONFIG" # Let the user override the test.
  16701. else
  16702. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  16703. for as_dir in $PATH
  16704. do
  16705. IFS=$as_save_IFS
  16706. case $as_dir in #(((
  16707. '') as_dir=./ ;;
  16708. */) ;;
  16709. *) as_dir=$as_dir/ ;;
  16710. esac
  16711. for ac_exec_ext in '' $ac_executable_extensions; do
  16712. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  16713. ac_cv_prog_ac_ct_XML2_CONFIG="xml2-config"
  16714. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  16715. break 2
  16716. fi
  16717. done
  16718. done
  16719. IFS=$as_save_IFS
  16720. fi ;;
  16721. esac
  16722. fi
  16723. ac_ct_XML2_CONFIG=$ac_cv_prog_ac_ct_XML2_CONFIG
  16724. if test -n "$ac_ct_XML2_CONFIG"; then
  16725. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_XML2_CONFIG" >&5
  16726. printf "%s\n" "$ac_ct_XML2_CONFIG" >&6; }
  16727. else
  16728. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  16729. printf "%s\n" "no" >&6; }
  16730. fi
  16731. if test "x$ac_ct_XML2_CONFIG" = x; then
  16732. XML2_CONFIG=""
  16733. else
  16734. case $cross_compiling:$ac_tool_warned in
  16735. yes:)
  16736. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  16737. printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  16738. ac_tool_warned=yes ;;
  16739. esac
  16740. XML2_CONFIG=$ac_ct_XML2_CONFIG
  16741. fi
  16742. else
  16743. XML2_CONFIG="$ac_cv_prog_XML2_CONFIG"
  16744. fi
  16745. if test "x$XML2_CONFIG" != "xno"; then
  16746. # xml2-config in some versions erroneously includes -I/include
  16747. # in the --cflags output.
  16748. NE_LX2_VERSION="`$XML2_CONFIG --version`"
  16749. NE_LX2_CFLAGS="`$XML2_CONFIG --cflags | sed 's| -I/include||g'`"
  16750. NE_LX2_LIBS="`$XML2_CONFIG --libs | sed 's|-L/usr/lib ||g'`"
  16751. fi
  16752. else
  16753. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libxml-2.0 pkg-config data" >&5
  16754. printf %s "checking for libxml-2.0 pkg-config data... " >&6; }
  16755. if test ${ne_cv_pkg_libxml_2_0+y}
  16756. then :
  16757. printf %s "(cached) " >&6
  16758. else case e in #(
  16759. e) if $PKG_CONFIG libxml-2.0; then
  16760. ne_cv_pkg_libxml_2_0=yes
  16761. else
  16762. ne_cv_pkg_libxml_2_0=no
  16763. fi ;;
  16764. esac
  16765. fi
  16766. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ne_cv_pkg_libxml_2_0" >&5
  16767. printf "%s\n" "$ne_cv_pkg_libxml_2_0" >&6; }
  16768. if test "$ne_cv_pkg_libxml_2_0" = "yes"; then
  16769. NE_LX2_CFLAGS=`$PKG_CONFIG --cflags libxml-2.0`
  16770. NE_LX2_LIBS=`$PKG_CONFIG --libs libxml-2.0`
  16771. NE_LX2_VERSION=`$PKG_CONFIG --modversion libxml-2.0`
  16772. : Using provided pkg-config data
  16773. else
  16774. : No pkg-config for libxml-2.0 provided
  16775. if test -n "$ac_tool_prefix"; then
  16776. # Extract the first word of "${ac_tool_prefix}xml2-config", so it can be a program name with args.
  16777. set dummy ${ac_tool_prefix}xml2-config; ac_word=$2
  16778. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  16779. printf %s "checking for $ac_word... " >&6; }
  16780. if test ${ac_cv_prog_XML2_CONFIG+y}
  16781. then :
  16782. printf %s "(cached) " >&6
  16783. else case e in #(
  16784. e) if test -n "$XML2_CONFIG"; then
  16785. ac_cv_prog_XML2_CONFIG="$XML2_CONFIG" # Let the user override the test.
  16786. else
  16787. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  16788. for as_dir in $PATH
  16789. do
  16790. IFS=$as_save_IFS
  16791. case $as_dir in #(((
  16792. '') as_dir=./ ;;
  16793. */) ;;
  16794. *) as_dir=$as_dir/ ;;
  16795. esac
  16796. for ac_exec_ext in '' $ac_executable_extensions; do
  16797. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  16798. ac_cv_prog_XML2_CONFIG="${ac_tool_prefix}xml2-config"
  16799. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  16800. break 2
  16801. fi
  16802. done
  16803. done
  16804. IFS=$as_save_IFS
  16805. fi ;;
  16806. esac
  16807. fi
  16808. XML2_CONFIG=$ac_cv_prog_XML2_CONFIG
  16809. if test -n "$XML2_CONFIG"; then
  16810. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $XML2_CONFIG" >&5
  16811. printf "%s\n" "$XML2_CONFIG" >&6; }
  16812. else
  16813. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  16814. printf "%s\n" "no" >&6; }
  16815. fi
  16816. fi
  16817. if test -z "$ac_cv_prog_XML2_CONFIG"; then
  16818. ac_ct_XML2_CONFIG=$XML2_CONFIG
  16819. # Extract the first word of "xml2-config", so it can be a program name with args.
  16820. set dummy xml2-config; ac_word=$2
  16821. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  16822. printf %s "checking for $ac_word... " >&6; }
  16823. if test ${ac_cv_prog_ac_ct_XML2_CONFIG+y}
  16824. then :
  16825. printf %s "(cached) " >&6
  16826. else case e in #(
  16827. e) if test -n "$ac_ct_XML2_CONFIG"; then
  16828. ac_cv_prog_ac_ct_XML2_CONFIG="$ac_ct_XML2_CONFIG" # Let the user override the test.
  16829. else
  16830. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  16831. for as_dir in $PATH
  16832. do
  16833. IFS=$as_save_IFS
  16834. case $as_dir in #(((
  16835. '') as_dir=./ ;;
  16836. */) ;;
  16837. *) as_dir=$as_dir/ ;;
  16838. esac
  16839. for ac_exec_ext in '' $ac_executable_extensions; do
  16840. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  16841. ac_cv_prog_ac_ct_XML2_CONFIG="xml2-config"
  16842. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  16843. break 2
  16844. fi
  16845. done
  16846. done
  16847. IFS=$as_save_IFS
  16848. fi ;;
  16849. esac
  16850. fi
  16851. ac_ct_XML2_CONFIG=$ac_cv_prog_ac_ct_XML2_CONFIG
  16852. if test -n "$ac_ct_XML2_CONFIG"; then
  16853. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_XML2_CONFIG" >&5
  16854. printf "%s\n" "$ac_ct_XML2_CONFIG" >&6; }
  16855. else
  16856. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  16857. printf "%s\n" "no" >&6; }
  16858. fi
  16859. if test "x$ac_ct_XML2_CONFIG" = x; then
  16860. XML2_CONFIG=""
  16861. else
  16862. case $cross_compiling:$ac_tool_warned in
  16863. yes:)
  16864. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  16865. printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  16866. ac_tool_warned=yes ;;
  16867. esac
  16868. XML2_CONFIG=$ac_ct_XML2_CONFIG
  16869. fi
  16870. else
  16871. XML2_CONFIG="$ac_cv_prog_XML2_CONFIG"
  16872. fi
  16873. if test "x$XML2_CONFIG" != "xno"; then
  16874. # xml2-config in some versions erroneously includes -I/include
  16875. # in the --cflags output.
  16876. NE_LX2_VERSION="`$XML2_CONFIG --version`"
  16877. NE_LX2_CFLAGS="`$XML2_CONFIG --cflags | sed 's| -I/include||g'`"
  16878. NE_LX2_LIBS="`$XML2_CONFIG --libs | sed 's|-L/usr/lib ||g'`"
  16879. fi
  16880. fi
  16881. fi
  16882. if test -n "${NE_LX2_VERSION+set}"; then
  16883. neon_xml_parser_message="libxml $NE_LX2_VERSION"
  16884. printf "%s\n" "#define HAVE_LIBXML 1" >>confdefs.h
  16885. CPPFLAGS="$CPPFLAGS $NE_LX2_CFLAGS"
  16886. NEON_LIBS="$NEON_LIBS $NE_LX2_LIBS"
  16887. for ac_header in libxml/xmlversion.h libxml/parser.h
  16888. do :
  16889. as_ac_Header=`printf "%s\n" "ac_cv_header_$ac_header" | sed "$as_sed_sh"`
  16890. ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
  16891. if eval test \"x\$"$as_ac_Header"\" = x"yes"
  16892. then :
  16893. cat >>confdefs.h <<_ACEOF
  16894. #define `printf "%s\n" "HAVE_$ac_header" | sed "$as_sed_cpp"` 1
  16895. _ACEOF
  16896. else case e in #(
  16897. e)
  16898. as_fn_error $? "could not find parser.h, libxml installation problem?" "$LINENO" 5 ;;
  16899. esac
  16900. fi
  16901. done
  16902. neon_xml_parser=libxml2
  16903. else
  16904. as_fn_error $? "libxml2.x library not found, cannot proceed" "$LINENO" 5
  16905. fi
  16906. fi
  16907. # Otherwise, by default search for expat then libxml2:
  16908. if test "${neon_xml_parser}-${with_included_expat}" = "none-no"; then
  16909. ac_fn_c_check_header_compile "$LINENO" "expat.h" "ac_cv_header_expat_h" "$ac_includes_default"
  16910. if test "x$ac_cv_header_expat_h" = xyes
  16911. then :
  16912. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for XML_SetXmlDeclHandler in -lexpat" >&5
  16913. printf %s "checking for XML_SetXmlDeclHandler in -lexpat... " >&6; }
  16914. if test ${ac_cv_lib_expat_XML_SetXmlDeclHandler+y}
  16915. then :
  16916. printf %s "(cached) " >&6
  16917. else case e in #(
  16918. e) ac_check_lib_save_LIBS=$LIBS
  16919. LIBS="-lexpat $LIBS"
  16920. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16921. /* end confdefs.h. */
  16922. /* Override any GCC internal prototype to avoid an error.
  16923. Use char because int might match the return type of a GCC
  16924. builtin and then its argument prototype would still apply.
  16925. The 'extern "C"' is for builds by C++ compilers;
  16926. although this is not generally supported in C code supporting it here
  16927. has little cost and some practical benefit (sr 110532). */
  16928. #ifdef __cplusplus
  16929. extern "C"
  16930. #endif
  16931. char XML_SetXmlDeclHandler (void);
  16932. int
  16933. main (void)
  16934. {
  16935. return XML_SetXmlDeclHandler ();
  16936. ;
  16937. return 0;
  16938. }
  16939. _ACEOF
  16940. if ac_fn_c_try_link "$LINENO"
  16941. then :
  16942. ac_cv_lib_expat_XML_SetXmlDeclHandler=yes
  16943. else case e in #(
  16944. e) ac_cv_lib_expat_XML_SetXmlDeclHandler=no ;;
  16945. esac
  16946. fi
  16947. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  16948. conftest$ac_exeext conftest.$ac_ext
  16949. LIBS=$ac_check_lib_save_LIBS ;;
  16950. esac
  16951. fi
  16952. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_expat_XML_SetXmlDeclHandler" >&5
  16953. printf "%s\n" "$ac_cv_lib_expat_XML_SetXmlDeclHandler" >&6; }
  16954. if test "x$ac_cv_lib_expat_XML_SetXmlDeclHandler" = xyes
  16955. then :
  16956. printf "%s\n" "#define HAVE_EXPAT 1" >>confdefs.h
  16957. neon_xml_parser_message="expat"
  16958. NEON_LIBS="$NEON_LIBS -lexpat"
  16959. neon_xml_parser=expat
  16960. ac_fn_c_check_type "$LINENO" "XML_Size" "ac_cv_type_XML_Size" "#include <expat.h>
  16961. "
  16962. if test "x$ac_cv_type_XML_Size" = xyes
  16963. then :
  16964. # The cast to long int works around a bug in the HP C Compiler
  16965. # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
  16966. # declarations like 'int a3[[(sizeof (unsigned char)) >= 0]];'.
  16967. # This bug is HP SR number 8606223364.
  16968. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking size of XML_Size" >&5
  16969. printf %s "checking size of XML_Size... " >&6; }
  16970. if test ${ac_cv_sizeof_XML_Size+y}
  16971. then :
  16972. printf %s "(cached) " >&6
  16973. else case e in #(
  16974. e) if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (XML_Size))" "ac_cv_sizeof_XML_Size" "$ac_includes_default
  16975. #include <expat.h>
  16976. "
  16977. then :
  16978. else case e in #(
  16979. e) if test "$ac_cv_type_XML_Size" = yes; then
  16980. { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
  16981. printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
  16982. as_fn_error 77 "cannot compute sizeof (XML_Size)
  16983. See 'config.log' for more details" "$LINENO" 5; }
  16984. else
  16985. ac_cv_sizeof_XML_Size=0
  16986. fi ;;
  16987. esac
  16988. fi
  16989. ;;
  16990. esac
  16991. fi
  16992. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_XML_Size" >&5
  16993. printf "%s\n" "$ac_cv_sizeof_XML_Size" >&6; }
  16994. printf "%s\n" "#define SIZEOF_XML_SIZE $ac_cv_sizeof_XML_Size" >>confdefs.h
  16995. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to print XML_Size" >&5
  16996. printf %s "checking how to print XML_Size... " >&6; }
  16997. if test ${ne_cv_fmt_XML_Size+y}
  16998. then :
  16999. printf %s "(cached) " >&6
  17000. else case e in #(
  17001. e)
  17002. ne_cv_fmt_XML_Size=none
  17003. if test $ne_fmt_trycompile = yes; then
  17004. oflags="$CPPFLAGS"
  17005. # Consider format string mismatches as errors
  17006. CPPFLAGS="$CPPFLAGS -Wformat -Werror"
  17007. for str in d ld lld; do
  17008. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17009. /* end confdefs.h. */
  17010. #include <sys/types.h>
  17011. #include <expat.h>
  17012. #include <stdio.h>
  17013. int
  17014. main (void)
  17015. {
  17016. XML_Size i = 1; printf("%$str", i);
  17017. ;
  17018. return 0;
  17019. }
  17020. _ACEOF
  17021. if ac_fn_c_try_compile "$LINENO"
  17022. then :
  17023. ne_cv_fmt_XML_Size=$str; break
  17024. fi
  17025. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  17026. done
  17027. CPPFLAGS=$oflags
  17028. else
  17029. # Best guess. Don't have to be too precise since we probably won't
  17030. # get a warning message anyway.
  17031. case $ac_cv_sizeof_XML_Size in
  17032. $ac_cv_sizeof_int) ne_cv_fmt_XML_Size="d" ;;
  17033. $ac_cv_sizeof_long) ne_cv_fmt_XML_Size="ld" ;;
  17034. $ac_cv_sizeof_long_long) ne_cv_fmt_XML_Size="lld" ;;
  17035. esac
  17036. fi
  17037. ;;
  17038. esac
  17039. fi
  17040. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ne_cv_fmt_XML_Size" >&5
  17041. printf "%s\n" "$ne_cv_fmt_XML_Size" >&6; }
  17042. if test "x$ne_cv_fmt_XML_Size" = "xnone"; then
  17043. as_fn_error $? "format string for XML_Size not found" "$LINENO" 5
  17044. fi
  17045. printf "%s\n" "#define NE_FMT_XML_SIZE \"$ne_cv_fmt_XML_Size\"" >>confdefs.h
  17046. else case e in #(
  17047. e) printf "%s\n" "#define NE_FMT_XML_SIZE \"d\"" >>confdefs.h
  17048. ;;
  17049. esac
  17050. fi
  17051. else case e in #(
  17052. e)
  17053. if test -n "$ac_tool_prefix"; then
  17054. # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
  17055. set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
  17056. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  17057. printf %s "checking for $ac_word... " >&6; }
  17058. if test ${ac_cv_path_PKG_CONFIG+y}
  17059. then :
  17060. printf %s "(cached) " >&6
  17061. else case e in #(
  17062. e) case $PKG_CONFIG in
  17063. [\\/]* | ?:[\\/]*)
  17064. ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
  17065. ;;
  17066. *)
  17067. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  17068. for as_dir in $PATH
  17069. do
  17070. IFS=$as_save_IFS
  17071. case $as_dir in #(((
  17072. '') as_dir=./ ;;
  17073. */) ;;
  17074. *) as_dir=$as_dir/ ;;
  17075. esac
  17076. for ac_exec_ext in '' $ac_executable_extensions; do
  17077. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  17078. ac_cv_path_PKG_CONFIG="$as_dir$ac_word$ac_exec_ext"
  17079. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  17080. break 2
  17081. fi
  17082. done
  17083. done
  17084. IFS=$as_save_IFS
  17085. ;;
  17086. esac ;;
  17087. esac
  17088. fi
  17089. PKG_CONFIG=$ac_cv_path_PKG_CONFIG
  17090. if test -n "$PKG_CONFIG"; then
  17091. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
  17092. printf "%s\n" "$PKG_CONFIG" >&6; }
  17093. else
  17094. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  17095. printf "%s\n" "no" >&6; }
  17096. fi
  17097. fi
  17098. if test -z "$ac_cv_path_PKG_CONFIG"; then
  17099. ac_pt_PKG_CONFIG=$PKG_CONFIG
  17100. # Extract the first word of "pkg-config", so it can be a program name with args.
  17101. set dummy pkg-config; ac_word=$2
  17102. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  17103. printf %s "checking for $ac_word... " >&6; }
  17104. if test ${ac_cv_path_ac_pt_PKG_CONFIG+y}
  17105. then :
  17106. printf %s "(cached) " >&6
  17107. else case e in #(
  17108. e) case $ac_pt_PKG_CONFIG in
  17109. [\\/]* | ?:[\\/]*)
  17110. ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
  17111. ;;
  17112. *)
  17113. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  17114. for as_dir in $PATH
  17115. do
  17116. IFS=$as_save_IFS
  17117. case $as_dir in #(((
  17118. '') as_dir=./ ;;
  17119. */) ;;
  17120. *) as_dir=$as_dir/ ;;
  17121. esac
  17122. for ac_exec_ext in '' $ac_executable_extensions; do
  17123. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  17124. ac_cv_path_ac_pt_PKG_CONFIG="$as_dir$ac_word$ac_exec_ext"
  17125. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  17126. break 2
  17127. fi
  17128. done
  17129. done
  17130. IFS=$as_save_IFS
  17131. ;;
  17132. esac ;;
  17133. esac
  17134. fi
  17135. ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
  17136. if test -n "$ac_pt_PKG_CONFIG"; then
  17137. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
  17138. printf "%s\n" "$ac_pt_PKG_CONFIG" >&6; }
  17139. else
  17140. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  17141. printf "%s\n" "no" >&6; }
  17142. fi
  17143. if test "x$ac_pt_PKG_CONFIG" = x; then
  17144. PKG_CONFIG="no"
  17145. else
  17146. case $cross_compiling:$ac_tool_warned in
  17147. yes:)
  17148. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  17149. printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  17150. ac_tool_warned=yes ;;
  17151. esac
  17152. PKG_CONFIG=$ac_pt_PKG_CONFIG
  17153. fi
  17154. else
  17155. PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
  17156. fi
  17157. if test "x$PKG_CONFIG" = "xno"; then
  17158. : Not using pkg-config
  17159. if test -n "$ac_tool_prefix"; then
  17160. # Extract the first word of "${ac_tool_prefix}xml2-config", so it can be a program name with args.
  17161. set dummy ${ac_tool_prefix}xml2-config; ac_word=$2
  17162. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  17163. printf %s "checking for $ac_word... " >&6; }
  17164. if test ${ac_cv_prog_XML2_CONFIG+y}
  17165. then :
  17166. printf %s "(cached) " >&6
  17167. else case e in #(
  17168. e) if test -n "$XML2_CONFIG"; then
  17169. ac_cv_prog_XML2_CONFIG="$XML2_CONFIG" # Let the user override the test.
  17170. else
  17171. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  17172. for as_dir in $PATH
  17173. do
  17174. IFS=$as_save_IFS
  17175. case $as_dir in #(((
  17176. '') as_dir=./ ;;
  17177. */) ;;
  17178. *) as_dir=$as_dir/ ;;
  17179. esac
  17180. for ac_exec_ext in '' $ac_executable_extensions; do
  17181. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  17182. ac_cv_prog_XML2_CONFIG="${ac_tool_prefix}xml2-config"
  17183. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  17184. break 2
  17185. fi
  17186. done
  17187. done
  17188. IFS=$as_save_IFS
  17189. fi ;;
  17190. esac
  17191. fi
  17192. XML2_CONFIG=$ac_cv_prog_XML2_CONFIG
  17193. if test -n "$XML2_CONFIG"; then
  17194. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $XML2_CONFIG" >&5
  17195. printf "%s\n" "$XML2_CONFIG" >&6; }
  17196. else
  17197. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  17198. printf "%s\n" "no" >&6; }
  17199. fi
  17200. fi
  17201. if test -z "$ac_cv_prog_XML2_CONFIG"; then
  17202. ac_ct_XML2_CONFIG=$XML2_CONFIG
  17203. # Extract the first word of "xml2-config", so it can be a program name with args.
  17204. set dummy xml2-config; ac_word=$2
  17205. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  17206. printf %s "checking for $ac_word... " >&6; }
  17207. if test ${ac_cv_prog_ac_ct_XML2_CONFIG+y}
  17208. then :
  17209. printf %s "(cached) " >&6
  17210. else case e in #(
  17211. e) if test -n "$ac_ct_XML2_CONFIG"; then
  17212. ac_cv_prog_ac_ct_XML2_CONFIG="$ac_ct_XML2_CONFIG" # Let the user override the test.
  17213. else
  17214. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  17215. for as_dir in $PATH
  17216. do
  17217. IFS=$as_save_IFS
  17218. case $as_dir in #(((
  17219. '') as_dir=./ ;;
  17220. */) ;;
  17221. *) as_dir=$as_dir/ ;;
  17222. esac
  17223. for ac_exec_ext in '' $ac_executable_extensions; do
  17224. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  17225. ac_cv_prog_ac_ct_XML2_CONFIG="xml2-config"
  17226. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  17227. break 2
  17228. fi
  17229. done
  17230. done
  17231. IFS=$as_save_IFS
  17232. fi ;;
  17233. esac
  17234. fi
  17235. ac_ct_XML2_CONFIG=$ac_cv_prog_ac_ct_XML2_CONFIG
  17236. if test -n "$ac_ct_XML2_CONFIG"; then
  17237. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_XML2_CONFIG" >&5
  17238. printf "%s\n" "$ac_ct_XML2_CONFIG" >&6; }
  17239. else
  17240. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  17241. printf "%s\n" "no" >&6; }
  17242. fi
  17243. if test "x$ac_ct_XML2_CONFIG" = x; then
  17244. XML2_CONFIG=""
  17245. else
  17246. case $cross_compiling:$ac_tool_warned in
  17247. yes:)
  17248. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  17249. printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  17250. ac_tool_warned=yes ;;
  17251. esac
  17252. XML2_CONFIG=$ac_ct_XML2_CONFIG
  17253. fi
  17254. else
  17255. XML2_CONFIG="$ac_cv_prog_XML2_CONFIG"
  17256. fi
  17257. if test "x$XML2_CONFIG" != "xno"; then
  17258. # xml2-config in some versions erroneously includes -I/include
  17259. # in the --cflags output.
  17260. NE_LX2_VERSION="`$XML2_CONFIG --version`"
  17261. NE_LX2_CFLAGS="`$XML2_CONFIG --cflags | sed 's| -I/include||g'`"
  17262. NE_LX2_LIBS="`$XML2_CONFIG --libs | sed 's|-L/usr/lib ||g'`"
  17263. fi
  17264. else
  17265. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libxml-2.0 pkg-config data" >&5
  17266. printf %s "checking for libxml-2.0 pkg-config data... " >&6; }
  17267. if test ${ne_cv_pkg_libxml_2_0+y}
  17268. then :
  17269. printf %s "(cached) " >&6
  17270. else case e in #(
  17271. e) if $PKG_CONFIG libxml-2.0; then
  17272. ne_cv_pkg_libxml_2_0=yes
  17273. else
  17274. ne_cv_pkg_libxml_2_0=no
  17275. fi ;;
  17276. esac
  17277. fi
  17278. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ne_cv_pkg_libxml_2_0" >&5
  17279. printf "%s\n" "$ne_cv_pkg_libxml_2_0" >&6; }
  17280. if test "$ne_cv_pkg_libxml_2_0" = "yes"; then
  17281. NE_LX2_CFLAGS=`$PKG_CONFIG --cflags libxml-2.0`
  17282. NE_LX2_LIBS=`$PKG_CONFIG --libs libxml-2.0`
  17283. NE_LX2_VERSION=`$PKG_CONFIG --modversion libxml-2.0`
  17284. : Using provided pkg-config data
  17285. else
  17286. : No pkg-config for libxml-2.0 provided
  17287. if test -n "$ac_tool_prefix"; then
  17288. # Extract the first word of "${ac_tool_prefix}xml2-config", so it can be a program name with args.
  17289. set dummy ${ac_tool_prefix}xml2-config; ac_word=$2
  17290. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  17291. printf %s "checking for $ac_word... " >&6; }
  17292. if test ${ac_cv_prog_XML2_CONFIG+y}
  17293. then :
  17294. printf %s "(cached) " >&6
  17295. else case e in #(
  17296. e) if test -n "$XML2_CONFIG"; then
  17297. ac_cv_prog_XML2_CONFIG="$XML2_CONFIG" # Let the user override the test.
  17298. else
  17299. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  17300. for as_dir in $PATH
  17301. do
  17302. IFS=$as_save_IFS
  17303. case $as_dir in #(((
  17304. '') as_dir=./ ;;
  17305. */) ;;
  17306. *) as_dir=$as_dir/ ;;
  17307. esac
  17308. for ac_exec_ext in '' $ac_executable_extensions; do
  17309. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  17310. ac_cv_prog_XML2_CONFIG="${ac_tool_prefix}xml2-config"
  17311. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  17312. break 2
  17313. fi
  17314. done
  17315. done
  17316. IFS=$as_save_IFS
  17317. fi ;;
  17318. esac
  17319. fi
  17320. XML2_CONFIG=$ac_cv_prog_XML2_CONFIG
  17321. if test -n "$XML2_CONFIG"; then
  17322. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $XML2_CONFIG" >&5
  17323. printf "%s\n" "$XML2_CONFIG" >&6; }
  17324. else
  17325. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  17326. printf "%s\n" "no" >&6; }
  17327. fi
  17328. fi
  17329. if test -z "$ac_cv_prog_XML2_CONFIG"; then
  17330. ac_ct_XML2_CONFIG=$XML2_CONFIG
  17331. # Extract the first word of "xml2-config", so it can be a program name with args.
  17332. set dummy xml2-config; ac_word=$2
  17333. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  17334. printf %s "checking for $ac_word... " >&6; }
  17335. if test ${ac_cv_prog_ac_ct_XML2_CONFIG+y}
  17336. then :
  17337. printf %s "(cached) " >&6
  17338. else case e in #(
  17339. e) if test -n "$ac_ct_XML2_CONFIG"; then
  17340. ac_cv_prog_ac_ct_XML2_CONFIG="$ac_ct_XML2_CONFIG" # Let the user override the test.
  17341. else
  17342. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  17343. for as_dir in $PATH
  17344. do
  17345. IFS=$as_save_IFS
  17346. case $as_dir in #(((
  17347. '') as_dir=./ ;;
  17348. */) ;;
  17349. *) as_dir=$as_dir/ ;;
  17350. esac
  17351. for ac_exec_ext in '' $ac_executable_extensions; do
  17352. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  17353. ac_cv_prog_ac_ct_XML2_CONFIG="xml2-config"
  17354. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  17355. break 2
  17356. fi
  17357. done
  17358. done
  17359. IFS=$as_save_IFS
  17360. fi ;;
  17361. esac
  17362. fi
  17363. ac_ct_XML2_CONFIG=$ac_cv_prog_ac_ct_XML2_CONFIG
  17364. if test -n "$ac_ct_XML2_CONFIG"; then
  17365. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_XML2_CONFIG" >&5
  17366. printf "%s\n" "$ac_ct_XML2_CONFIG" >&6; }
  17367. else
  17368. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  17369. printf "%s\n" "no" >&6; }
  17370. fi
  17371. if test "x$ac_ct_XML2_CONFIG" = x; then
  17372. XML2_CONFIG=""
  17373. else
  17374. case $cross_compiling:$ac_tool_warned in
  17375. yes:)
  17376. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  17377. printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  17378. ac_tool_warned=yes ;;
  17379. esac
  17380. XML2_CONFIG=$ac_ct_XML2_CONFIG
  17381. fi
  17382. else
  17383. XML2_CONFIG="$ac_cv_prog_XML2_CONFIG"
  17384. fi
  17385. if test "x$XML2_CONFIG" != "xno"; then
  17386. # xml2-config in some versions erroneously includes -I/include
  17387. # in the --cflags output.
  17388. NE_LX2_VERSION="`$XML2_CONFIG --version`"
  17389. NE_LX2_CFLAGS="`$XML2_CONFIG --cflags | sed 's| -I/include||g'`"
  17390. NE_LX2_LIBS="`$XML2_CONFIG --libs | sed 's|-L/usr/lib ||g'`"
  17391. fi
  17392. fi
  17393. fi
  17394. if test -n "${NE_LX2_VERSION+set}"; then
  17395. neon_xml_parser_message="libxml $NE_LX2_VERSION"
  17396. printf "%s\n" "#define HAVE_LIBXML 1" >>confdefs.h
  17397. CPPFLAGS="$CPPFLAGS $NE_LX2_CFLAGS"
  17398. NEON_LIBS="$NEON_LIBS $NE_LX2_LIBS"
  17399. for ac_header in libxml/xmlversion.h libxml/parser.h
  17400. do :
  17401. as_ac_Header=`printf "%s\n" "ac_cv_header_$ac_header" | sed "$as_sed_sh"`
  17402. ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
  17403. if eval test \"x\$"$as_ac_Header"\" = x"yes"
  17404. then :
  17405. cat >>confdefs.h <<_ACEOF
  17406. #define `printf "%s\n" "HAVE_$ac_header" | sed "$as_sed_cpp"` 1
  17407. _ACEOF
  17408. else case e in #(
  17409. e)
  17410. as_fn_error $? "could not find parser.h, libxml installation problem?" "$LINENO" 5 ;;
  17411. esac
  17412. fi
  17413. done
  17414. neon_xml_parser=libxml2
  17415. else
  17416. :
  17417. fi
  17418. ;;
  17419. esac
  17420. fi
  17421. else case e in #(
  17422. e)
  17423. if test -n "$ac_tool_prefix"; then
  17424. # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
  17425. set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
  17426. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  17427. printf %s "checking for $ac_word... " >&6; }
  17428. if test ${ac_cv_path_PKG_CONFIG+y}
  17429. then :
  17430. printf %s "(cached) " >&6
  17431. else case e in #(
  17432. e) case $PKG_CONFIG in
  17433. [\\/]* | ?:[\\/]*)
  17434. ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
  17435. ;;
  17436. *)
  17437. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  17438. for as_dir in $PATH
  17439. do
  17440. IFS=$as_save_IFS
  17441. case $as_dir in #(((
  17442. '') as_dir=./ ;;
  17443. */) ;;
  17444. *) as_dir=$as_dir/ ;;
  17445. esac
  17446. for ac_exec_ext in '' $ac_executable_extensions; do
  17447. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  17448. ac_cv_path_PKG_CONFIG="$as_dir$ac_word$ac_exec_ext"
  17449. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  17450. break 2
  17451. fi
  17452. done
  17453. done
  17454. IFS=$as_save_IFS
  17455. ;;
  17456. esac ;;
  17457. esac
  17458. fi
  17459. PKG_CONFIG=$ac_cv_path_PKG_CONFIG
  17460. if test -n "$PKG_CONFIG"; then
  17461. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
  17462. printf "%s\n" "$PKG_CONFIG" >&6; }
  17463. else
  17464. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  17465. printf "%s\n" "no" >&6; }
  17466. fi
  17467. fi
  17468. if test -z "$ac_cv_path_PKG_CONFIG"; then
  17469. ac_pt_PKG_CONFIG=$PKG_CONFIG
  17470. # Extract the first word of "pkg-config", so it can be a program name with args.
  17471. set dummy pkg-config; ac_word=$2
  17472. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  17473. printf %s "checking for $ac_word... " >&6; }
  17474. if test ${ac_cv_path_ac_pt_PKG_CONFIG+y}
  17475. then :
  17476. printf %s "(cached) " >&6
  17477. else case e in #(
  17478. e) case $ac_pt_PKG_CONFIG in
  17479. [\\/]* | ?:[\\/]*)
  17480. ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
  17481. ;;
  17482. *)
  17483. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  17484. for as_dir in $PATH
  17485. do
  17486. IFS=$as_save_IFS
  17487. case $as_dir in #(((
  17488. '') as_dir=./ ;;
  17489. */) ;;
  17490. *) as_dir=$as_dir/ ;;
  17491. esac
  17492. for ac_exec_ext in '' $ac_executable_extensions; do
  17493. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  17494. ac_cv_path_ac_pt_PKG_CONFIG="$as_dir$ac_word$ac_exec_ext"
  17495. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  17496. break 2
  17497. fi
  17498. done
  17499. done
  17500. IFS=$as_save_IFS
  17501. ;;
  17502. esac ;;
  17503. esac
  17504. fi
  17505. ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
  17506. if test -n "$ac_pt_PKG_CONFIG"; then
  17507. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
  17508. printf "%s\n" "$ac_pt_PKG_CONFIG" >&6; }
  17509. else
  17510. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  17511. printf "%s\n" "no" >&6; }
  17512. fi
  17513. if test "x$ac_pt_PKG_CONFIG" = x; then
  17514. PKG_CONFIG="no"
  17515. else
  17516. case $cross_compiling:$ac_tool_warned in
  17517. yes:)
  17518. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  17519. printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  17520. ac_tool_warned=yes ;;
  17521. esac
  17522. PKG_CONFIG=$ac_pt_PKG_CONFIG
  17523. fi
  17524. else
  17525. PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
  17526. fi
  17527. if test "x$PKG_CONFIG" = "xno"; then
  17528. : Not using pkg-config
  17529. if test -n "$ac_tool_prefix"; then
  17530. # Extract the first word of "${ac_tool_prefix}xml2-config", so it can be a program name with args.
  17531. set dummy ${ac_tool_prefix}xml2-config; ac_word=$2
  17532. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  17533. printf %s "checking for $ac_word... " >&6; }
  17534. if test ${ac_cv_prog_XML2_CONFIG+y}
  17535. then :
  17536. printf %s "(cached) " >&6
  17537. else case e in #(
  17538. e) if test -n "$XML2_CONFIG"; then
  17539. ac_cv_prog_XML2_CONFIG="$XML2_CONFIG" # Let the user override the test.
  17540. else
  17541. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  17542. for as_dir in $PATH
  17543. do
  17544. IFS=$as_save_IFS
  17545. case $as_dir in #(((
  17546. '') as_dir=./ ;;
  17547. */) ;;
  17548. *) as_dir=$as_dir/ ;;
  17549. esac
  17550. for ac_exec_ext in '' $ac_executable_extensions; do
  17551. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  17552. ac_cv_prog_XML2_CONFIG="${ac_tool_prefix}xml2-config"
  17553. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  17554. break 2
  17555. fi
  17556. done
  17557. done
  17558. IFS=$as_save_IFS
  17559. fi ;;
  17560. esac
  17561. fi
  17562. XML2_CONFIG=$ac_cv_prog_XML2_CONFIG
  17563. if test -n "$XML2_CONFIG"; then
  17564. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $XML2_CONFIG" >&5
  17565. printf "%s\n" "$XML2_CONFIG" >&6; }
  17566. else
  17567. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  17568. printf "%s\n" "no" >&6; }
  17569. fi
  17570. fi
  17571. if test -z "$ac_cv_prog_XML2_CONFIG"; then
  17572. ac_ct_XML2_CONFIG=$XML2_CONFIG
  17573. # Extract the first word of "xml2-config", so it can be a program name with args.
  17574. set dummy xml2-config; ac_word=$2
  17575. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  17576. printf %s "checking for $ac_word... " >&6; }
  17577. if test ${ac_cv_prog_ac_ct_XML2_CONFIG+y}
  17578. then :
  17579. printf %s "(cached) " >&6
  17580. else case e in #(
  17581. e) if test -n "$ac_ct_XML2_CONFIG"; then
  17582. ac_cv_prog_ac_ct_XML2_CONFIG="$ac_ct_XML2_CONFIG" # Let the user override the test.
  17583. else
  17584. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  17585. for as_dir in $PATH
  17586. do
  17587. IFS=$as_save_IFS
  17588. case $as_dir in #(((
  17589. '') as_dir=./ ;;
  17590. */) ;;
  17591. *) as_dir=$as_dir/ ;;
  17592. esac
  17593. for ac_exec_ext in '' $ac_executable_extensions; do
  17594. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  17595. ac_cv_prog_ac_ct_XML2_CONFIG="xml2-config"
  17596. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  17597. break 2
  17598. fi
  17599. done
  17600. done
  17601. IFS=$as_save_IFS
  17602. fi ;;
  17603. esac
  17604. fi
  17605. ac_ct_XML2_CONFIG=$ac_cv_prog_ac_ct_XML2_CONFIG
  17606. if test -n "$ac_ct_XML2_CONFIG"; then
  17607. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_XML2_CONFIG" >&5
  17608. printf "%s\n" "$ac_ct_XML2_CONFIG" >&6; }
  17609. else
  17610. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  17611. printf "%s\n" "no" >&6; }
  17612. fi
  17613. if test "x$ac_ct_XML2_CONFIG" = x; then
  17614. XML2_CONFIG=""
  17615. else
  17616. case $cross_compiling:$ac_tool_warned in
  17617. yes:)
  17618. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  17619. printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  17620. ac_tool_warned=yes ;;
  17621. esac
  17622. XML2_CONFIG=$ac_ct_XML2_CONFIG
  17623. fi
  17624. else
  17625. XML2_CONFIG="$ac_cv_prog_XML2_CONFIG"
  17626. fi
  17627. if test "x$XML2_CONFIG" != "xno"; then
  17628. # xml2-config in some versions erroneously includes -I/include
  17629. # in the --cflags output.
  17630. NE_LX2_VERSION="`$XML2_CONFIG --version`"
  17631. NE_LX2_CFLAGS="`$XML2_CONFIG --cflags | sed 's| -I/include||g'`"
  17632. NE_LX2_LIBS="`$XML2_CONFIG --libs | sed 's|-L/usr/lib ||g'`"
  17633. fi
  17634. else
  17635. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libxml-2.0 pkg-config data" >&5
  17636. printf %s "checking for libxml-2.0 pkg-config data... " >&6; }
  17637. if test ${ne_cv_pkg_libxml_2_0+y}
  17638. then :
  17639. printf %s "(cached) " >&6
  17640. else case e in #(
  17641. e) if $PKG_CONFIG libxml-2.0; then
  17642. ne_cv_pkg_libxml_2_0=yes
  17643. else
  17644. ne_cv_pkg_libxml_2_0=no
  17645. fi ;;
  17646. esac
  17647. fi
  17648. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ne_cv_pkg_libxml_2_0" >&5
  17649. printf "%s\n" "$ne_cv_pkg_libxml_2_0" >&6; }
  17650. if test "$ne_cv_pkg_libxml_2_0" = "yes"; then
  17651. NE_LX2_CFLAGS=`$PKG_CONFIG --cflags libxml-2.0`
  17652. NE_LX2_LIBS=`$PKG_CONFIG --libs libxml-2.0`
  17653. NE_LX2_VERSION=`$PKG_CONFIG --modversion libxml-2.0`
  17654. : Using provided pkg-config data
  17655. else
  17656. : No pkg-config for libxml-2.0 provided
  17657. if test -n "$ac_tool_prefix"; then
  17658. # Extract the first word of "${ac_tool_prefix}xml2-config", so it can be a program name with args.
  17659. set dummy ${ac_tool_prefix}xml2-config; ac_word=$2
  17660. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  17661. printf %s "checking for $ac_word... " >&6; }
  17662. if test ${ac_cv_prog_XML2_CONFIG+y}
  17663. then :
  17664. printf %s "(cached) " >&6
  17665. else case e in #(
  17666. e) if test -n "$XML2_CONFIG"; then
  17667. ac_cv_prog_XML2_CONFIG="$XML2_CONFIG" # Let the user override the test.
  17668. else
  17669. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  17670. for as_dir in $PATH
  17671. do
  17672. IFS=$as_save_IFS
  17673. case $as_dir in #(((
  17674. '') as_dir=./ ;;
  17675. */) ;;
  17676. *) as_dir=$as_dir/ ;;
  17677. esac
  17678. for ac_exec_ext in '' $ac_executable_extensions; do
  17679. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  17680. ac_cv_prog_XML2_CONFIG="${ac_tool_prefix}xml2-config"
  17681. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  17682. break 2
  17683. fi
  17684. done
  17685. done
  17686. IFS=$as_save_IFS
  17687. fi ;;
  17688. esac
  17689. fi
  17690. XML2_CONFIG=$ac_cv_prog_XML2_CONFIG
  17691. if test -n "$XML2_CONFIG"; then
  17692. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $XML2_CONFIG" >&5
  17693. printf "%s\n" "$XML2_CONFIG" >&6; }
  17694. else
  17695. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  17696. printf "%s\n" "no" >&6; }
  17697. fi
  17698. fi
  17699. if test -z "$ac_cv_prog_XML2_CONFIG"; then
  17700. ac_ct_XML2_CONFIG=$XML2_CONFIG
  17701. # Extract the first word of "xml2-config", so it can be a program name with args.
  17702. set dummy xml2-config; ac_word=$2
  17703. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  17704. printf %s "checking for $ac_word... " >&6; }
  17705. if test ${ac_cv_prog_ac_ct_XML2_CONFIG+y}
  17706. then :
  17707. printf %s "(cached) " >&6
  17708. else case e in #(
  17709. e) if test -n "$ac_ct_XML2_CONFIG"; then
  17710. ac_cv_prog_ac_ct_XML2_CONFIG="$ac_ct_XML2_CONFIG" # Let the user override the test.
  17711. else
  17712. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  17713. for as_dir in $PATH
  17714. do
  17715. IFS=$as_save_IFS
  17716. case $as_dir in #(((
  17717. '') as_dir=./ ;;
  17718. */) ;;
  17719. *) as_dir=$as_dir/ ;;
  17720. esac
  17721. for ac_exec_ext in '' $ac_executable_extensions; do
  17722. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  17723. ac_cv_prog_ac_ct_XML2_CONFIG="xml2-config"
  17724. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  17725. break 2
  17726. fi
  17727. done
  17728. done
  17729. IFS=$as_save_IFS
  17730. fi ;;
  17731. esac
  17732. fi
  17733. ac_ct_XML2_CONFIG=$ac_cv_prog_ac_ct_XML2_CONFIG
  17734. if test -n "$ac_ct_XML2_CONFIG"; then
  17735. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_XML2_CONFIG" >&5
  17736. printf "%s\n" "$ac_ct_XML2_CONFIG" >&6; }
  17737. else
  17738. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  17739. printf "%s\n" "no" >&6; }
  17740. fi
  17741. if test "x$ac_ct_XML2_CONFIG" = x; then
  17742. XML2_CONFIG=""
  17743. else
  17744. case $cross_compiling:$ac_tool_warned in
  17745. yes:)
  17746. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  17747. printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  17748. ac_tool_warned=yes ;;
  17749. esac
  17750. XML2_CONFIG=$ac_ct_XML2_CONFIG
  17751. fi
  17752. else
  17753. XML2_CONFIG="$ac_cv_prog_XML2_CONFIG"
  17754. fi
  17755. if test "x$XML2_CONFIG" != "xno"; then
  17756. # xml2-config in some versions erroneously includes -I/include
  17757. # in the --cflags output.
  17758. NE_LX2_VERSION="`$XML2_CONFIG --version`"
  17759. NE_LX2_CFLAGS="`$XML2_CONFIG --cflags | sed 's| -I/include||g'`"
  17760. NE_LX2_LIBS="`$XML2_CONFIG --libs | sed 's|-L/usr/lib ||g'`"
  17761. fi
  17762. fi
  17763. fi
  17764. if test -n "${NE_LX2_VERSION+set}"; then
  17765. neon_xml_parser_message="libxml $NE_LX2_VERSION"
  17766. printf "%s\n" "#define HAVE_LIBXML 1" >>confdefs.h
  17767. CPPFLAGS="$CPPFLAGS $NE_LX2_CFLAGS"
  17768. NEON_LIBS="$NEON_LIBS $NE_LX2_LIBS"
  17769. for ac_header in libxml/xmlversion.h libxml/parser.h
  17770. do :
  17771. as_ac_Header=`printf "%s\n" "ac_cv_header_$ac_header" | sed "$as_sed_sh"`
  17772. ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
  17773. if eval test \"x\$"$as_ac_Header"\" = x"yes"
  17774. then :
  17775. cat >>confdefs.h <<_ACEOF
  17776. #define `printf "%s\n" "HAVE_$ac_header" | sed "$as_sed_cpp"` 1
  17777. _ACEOF
  17778. else case e in #(
  17779. e)
  17780. as_fn_error $? "could not find parser.h, libxml installation problem?" "$LINENO" 5 ;;
  17781. esac
  17782. fi
  17783. done
  17784. neon_xml_parser=libxml2
  17785. else
  17786. :
  17787. fi
  17788. ;;
  17789. esac
  17790. fi
  17791. fi
  17792. # If an XML parser still has not been found, fail or use the bundled expat
  17793. if test "$neon_xml_parser" = "none"; then
  17794. as_fn_error $? "no XML parser was found: expat or libxml 2.x required" "$LINENO" 5
  17795. fi
  17796. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: XML parser used: $neon_xml_parser_message" >&5
  17797. printf "%s\n" "$as_me: XML parser used: $neon_xml_parser_message" >&6;}
  17798. fi
  17799. # Internationalization support.
  17800. # Check whether --enable-nls was given.
  17801. if test ${enable_nls+y}
  17802. then :
  17803. enableval=$enable_nls;
  17804. else case e in #(
  17805. e) enable_nls=${ac_cv_header_libintl_h} ;;
  17806. esac
  17807. fi
  17808. if test x${enable_nls} = xyes; then
  17809. # presume that dgettext() is available if bindtextdomain() is...
  17810. # checking for dgettext() itself is awkward because gcc has a
  17811. # builtin of that function, which confuses AC_CHECK_FUNCS et al.
  17812. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for library containing bindtextdomain" >&5
  17813. printf %s "checking for library containing bindtextdomain... " >&6; }
  17814. if test ${ne_cv_libsfor_bindtextdomain+y}
  17815. then :
  17816. printf %s "(cached) " >&6
  17817. else case e in #(
  17818. e)
  17819. case $ne_cv_os_uname in
  17820. MINGW*|MSYS_NT*)
  17821. ;;
  17822. *)
  17823. case bindtextdomain in
  17824. getaddrinfo)
  17825. ne__prologue="#include <netdb.h>"
  17826. ne__code="getaddrinfo(0,0,0,0);"
  17827. ;;
  17828. socket)
  17829. ne__prologue="#include <sys/socket.h>"
  17830. ne__code="socket(0,0,0);"
  17831. ;;
  17832. bindtextdomain)
  17833. ne__prologue="#include <libintl.h>"
  17834. ne__code="bindtextdomain(\"\",\"\");"
  17835. ;;
  17836. *)
  17837. ne__prologue=""
  17838. ne__code="bindtextdomain();"
  17839. ;;
  17840. esac
  17841. ;;
  17842. esac
  17843. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17844. /* end confdefs.h. */
  17845. $ne__prologue
  17846. int
  17847. main (void)
  17848. {
  17849. $ne__code
  17850. ;
  17851. return 0;
  17852. }
  17853. _ACEOF
  17854. if ac_fn_c_try_link "$LINENO"
  17855. then :
  17856. ne_cv_libsfor_bindtextdomain="none needed"
  17857. else case e in #(
  17858. e)
  17859. ne_sl_save_LIBS=$LIBS
  17860. ne_cv_libsfor_bindtextdomain="not found"
  17861. for lib in intl; do
  17862. case $ne_cv_os_uname in
  17863. MINGW*|MSYS_NT*)
  17864. case $lib in
  17865. ws2_32)
  17866. ne__prologue="#include <winsock2.h>"
  17867. case bindtextdomain in
  17868. gethostbyname)
  17869. ne__code="gethostbyname(\"\")"
  17870. ;;
  17871. socket)
  17872. ne__code="socket(0,0,0);"
  17873. ;;
  17874. *)
  17875. ne__code="bindtextdomain();"
  17876. ;;
  17877. esac
  17878. ;;
  17879. *)
  17880. ne__prologue=""
  17881. ne__code=""
  17882. ;;
  17883. esac
  17884. ;;
  17885. *)
  17886. ;;
  17887. esac
  17888. LIBS="$ne_sl_save_LIBS -l$lib $NEON_LIBS"
  17889. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17890. /* end confdefs.h. */
  17891. $ne__prologue
  17892. int
  17893. main (void)
  17894. {
  17895. $ne__code
  17896. ;
  17897. return 0;
  17898. }
  17899. _ACEOF
  17900. if ac_fn_c_try_link "$LINENO"
  17901. then :
  17902. ne_cv_libsfor_bindtextdomain="-l$lib"; break
  17903. fi
  17904. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  17905. conftest$ac_exeext conftest.$ac_ext
  17906. LIBS="$ne_sl_save_LIBS -l$lib -liconv $NEON_LIBS"
  17907. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17908. /* end confdefs.h. */
  17909. $ne__prologue
  17910. int
  17911. main (void)
  17912. {
  17913. $ne__code
  17914. ;
  17915. return 0;
  17916. }
  17917. _ACEOF
  17918. if ac_fn_c_try_link "$LINENO"
  17919. then :
  17920. ne_cv_libsfor_bindtextdomain="-l$lib -liconv "; break
  17921. fi
  17922. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  17923. conftest$ac_exeext conftest.$ac_ext
  17924. done
  17925. LIBS=$ne_sl_save_LIBS
  17926. ;;
  17927. esac
  17928. fi
  17929. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  17930. conftest$ac_exeext conftest.$ac_ext
  17931. ;;
  17932. esac
  17933. fi
  17934. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ne_cv_libsfor_bindtextdomain" >&5
  17935. printf "%s\n" "$ne_cv_libsfor_bindtextdomain" >&6; }
  17936. ac_fn_c_check_header_compile "$LINENO" "wspiapi.h" "ac_cv_header_wspiapi_h" "$ac_includes_default"
  17937. if test "x$ac_cv_header_wspiapi_h" = xyes
  17938. then :
  17939. printf "%s\n" "#define HAVE_WSPIAPI_H 1" >>confdefs.h
  17940. fi
  17941. if test "$ne_cv_libsfor_bindtextdomain" = "not found"; then
  17942. enable_nls=no
  17943. elif test "$ne_cv_libsfor_bindtextdomain" = "none needed"; then
  17944. :
  17945. else
  17946. NEON_LIBS="$ne_cv_libsfor_bindtextdomain $NEON_LIBS"
  17947. fi
  17948. ne_cf_save_LIBS=$LIBS
  17949. LIBS="$LIBS $NEON_LIBS"
  17950. ac_fn_c_check_func "$LINENO" "bind_textdomain_codeset" "ac_cv_func_bind_textdomain_codeset"
  17951. if test "x$ac_cv_func_bind_textdomain_codeset" = xyes
  17952. then :
  17953. printf "%s\n" "#define HAVE_BIND_TEXTDOMAIN_CODESET 1" >>confdefs.h
  17954. fi
  17955. LIBS=$ne_cf_save_LIBS
  17956. fi
  17957. if test "$enable_nls" = "no"; then
  17958. NE_FLAG_I18N=no
  17959. ne_I18N_message="Internationalization support not enabled"
  17960. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: Internationalization support not enabled" >&5
  17961. printf "%s\n" "$as_me: Internationalization support not enabled" >&6;}
  17962. else
  17963. NE_FLAG_I18N=yes
  17964. printf "%s\n" "#define NE_HAVE_I18N 1" >>confdefs.h
  17965. ne_I18N_message="Internationalization support enabled"
  17966. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: Internationalization support enabled" >&5
  17967. printf "%s\n" "$as_me: Internationalization support enabled" >&6;}
  17968. eval localedir="${datadir}/locale"
  17969. printf "%s\n" "#define LOCALEDIR \"$localedir\"" >>confdefs.h
  17970. fi
  17971. # Extra checks for debugging, compiler warnings
  17972. # Check whether --enable-debug was given.
  17973. if test ${enable_debug+y}
  17974. then :
  17975. enableval=$enable_debug;
  17976. fi
  17977. # default is to enable debugging
  17978. case $enable_debug in
  17979. no) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: debugging is disabled" >&5
  17980. printf "%s\n" "$as_me: debugging is disabled" >&6;}
  17981. ;;
  17982. *) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: debugging is enabled" >&5
  17983. printf "%s\n" "$as_me: debugging is enabled" >&6;}
  17984. printf "%s\n" "#define NE_DEBUGGING 1" >>confdefs.h
  17985. ;;
  17986. esac
  17987. # Leave till last to prevent CFLAGS affecting checks.
  17988. # Check whether --enable-warnings was given.
  17989. if test ${enable_warnings+y}
  17990. then :
  17991. enableval=$enable_warnings;
  17992. fi
  17993. if test "$enable_warnings" = "yes"; then
  17994. case $GCC:`uname` in
  17995. yes:*)
  17996. CFLAGS="$CFLAGS -Wall -Wmissing-declarations -Wshadow -Wreturn-type -Wsign-compare -Wundef -Wpointer-arith -Wbad-function-cast -Wformat-security"
  17997. if test -z "$with_ssl" -o "$with_ssl" = "no"; then
  17998. # OpenSSL headers fail strict prototypes checks
  17999. CFLAGS="$CFLAGS -Wstrict-prototypes"
  18000. fi
  18001. ;;
  18002. no:OSF1) CFLAGS="$CFLAGS -check -msg_disable returnchecks -msg_disable alignment -msg_disable overflow" ;;
  18003. no:IRIX) CFLAGS="$CFLAGS -fullwarn" ;;
  18004. no:UnixWare) CFLAGS="$CFLAGS -v" ;;
  18005. *) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: warning flags unknown for compiler on this platform" >&5
  18006. printf "%s\n" "$as_me: WARNING: warning flags unknown for compiler on this platform" >&2;} ;;
  18007. esac
  18008. fi
  18009. CPPFLAGS="$CPPFLAGS -I\${top_builddir}"
  18010. # Check whether --enable-memleak was given.
  18011. if test ${enable_memleak+y}
  18012. then :
  18013. enableval=$enable_memleak;
  18014. fi
  18015. if test "$enable_memleak" = "yes"; then
  18016. CPPFLAGS="$CPPFLAGS -DNEON_MEMLEAK -I\$(top_srcdir)/src"
  18017. # disable 'make install'
  18018. ALLOW_INSTALL=memleak
  18019. fi
  18020. # Check whether --enable-auto-libproxy was given.
  18021. if test ${enable_auto_libproxy+y}
  18022. then :
  18023. enableval=$enable_auto_libproxy;
  18024. fi
  18025. if test "$enable_auto_libproxy" = "yes"; then
  18026. printf "%s\n" "#define NE_ENABLE_AUTO_LIBPROXY 1" >>confdefs.h
  18027. fi
  18028. # Enable tests for optional features
  18029. TESTS="\$(BASIC_TESTS)"
  18030. HELPERS=""
  18031. if test $NE_FLAG_SSL = yes; then
  18032. # Only enable SSL tests if an openssl binary is found (needed to make
  18033. # certs etc).
  18034. # Extract the first word of "openssl", so it can be a program name with args.
  18035. set dummy openssl; ac_word=$2
  18036. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  18037. printf %s "checking for $ac_word... " >&6; }
  18038. if test ${ac_cv_path_OPENSSL+y}
  18039. then :
  18040. printf %s "(cached) " >&6
  18041. else case e in #(
  18042. e) case $OPENSSL in
  18043. [\\/]* | ?:[\\/]*)
  18044. ac_cv_path_OPENSSL="$OPENSSL" # Let the user override the test with a path.
  18045. ;;
  18046. *)
  18047. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  18048. for as_dir in $PATH
  18049. do
  18050. IFS=$as_save_IFS
  18051. case $as_dir in #(((
  18052. '') as_dir=./ ;;
  18053. */) ;;
  18054. *) as_dir=$as_dir/ ;;
  18055. esac
  18056. for ac_exec_ext in '' $ac_executable_extensions; do
  18057. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  18058. ac_cv_path_OPENSSL="$as_dir$ac_word$ac_exec_ext"
  18059. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  18060. break 2
  18061. fi
  18062. done
  18063. done
  18064. IFS=$as_save_IFS
  18065. test -z "$ac_cv_path_OPENSSL" && ac_cv_path_OPENSSL="notfound"
  18066. ;;
  18067. esac ;;
  18068. esac
  18069. fi
  18070. OPENSSL=$ac_cv_path_OPENSSL
  18071. if test -n "$OPENSSL"; then
  18072. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $OPENSSL" >&5
  18073. printf "%s\n" "$OPENSSL" >&6; }
  18074. else
  18075. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  18076. printf "%s\n" "no" >&6; }
  18077. fi
  18078. if test "$OPENSSL" != "notfound"; then
  18079. TESTS="$TESTS \$(SSL_TESTS)"
  18080. HELPERS="$HELPERS \$(SSL_HELPERS)"
  18081. else
  18082. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: no openssl binary in \$PATH: SSL tests disabled" >&5
  18083. printf "%s\n" "$as_me: WARNING: no openssl binary in \$PATH: SSL tests disabled" >&2;}
  18084. fi
  18085. # Extract the first word of "certutil", so it can be a program name with args.
  18086. set dummy certutil; ac_word=$2
  18087. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  18088. printf %s "checking for $ac_word... " >&6; }
  18089. if test ${ac_cv_path_CERTUTIL+y}
  18090. then :
  18091. printf %s "(cached) " >&6
  18092. else case e in #(
  18093. e) case $CERTUTIL in
  18094. [\\/]* | ?:[\\/]*)
  18095. ac_cv_path_CERTUTIL="$CERTUTIL" # Let the user override the test with a path.
  18096. ;;
  18097. *)
  18098. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  18099. for as_dir in $PATH
  18100. do
  18101. IFS=$as_save_IFS
  18102. case $as_dir in #(((
  18103. '') as_dir=./ ;;
  18104. */) ;;
  18105. *) as_dir=$as_dir/ ;;
  18106. esac
  18107. for ac_exec_ext in '' $ac_executable_extensions; do
  18108. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  18109. ac_cv_path_CERTUTIL="$as_dir$ac_word$ac_exec_ext"
  18110. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  18111. break 2
  18112. fi
  18113. done
  18114. done
  18115. IFS=$as_save_IFS
  18116. test -z "$ac_cv_path_CERTUTIL" && ac_cv_path_CERTUTIL="notfound"
  18117. ;;
  18118. esac ;;
  18119. esac
  18120. fi
  18121. CERTUTIL=$ac_cv_path_CERTUTIL
  18122. if test -n "$CERTUTIL"; then
  18123. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CERTUTIL" >&5
  18124. printf "%s\n" "$CERTUTIL" >&6; }
  18125. else
  18126. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  18127. printf "%s\n" "no" >&6; }
  18128. fi
  18129. # Extract the first word of "pk12util", so it can be a program name with args.
  18130. set dummy pk12util; ac_word=$2
  18131. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  18132. printf %s "checking for $ac_word... " >&6; }
  18133. if test ${ac_cv_path_PK12UTIL+y}
  18134. then :
  18135. printf %s "(cached) " >&6
  18136. else case e in #(
  18137. e) case $PK12UTIL in
  18138. [\\/]* | ?:[\\/]*)
  18139. ac_cv_path_PK12UTIL="$PK12UTIL" # Let the user override the test with a path.
  18140. ;;
  18141. *)
  18142. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  18143. for as_dir in $PATH
  18144. do
  18145. IFS=$as_save_IFS
  18146. case $as_dir in #(((
  18147. '') as_dir=./ ;;
  18148. */) ;;
  18149. *) as_dir=$as_dir/ ;;
  18150. esac
  18151. for ac_exec_ext in '' $ac_executable_extensions; do
  18152. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  18153. ac_cv_path_PK12UTIL="$as_dir$ac_word$ac_exec_ext"
  18154. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  18155. break 2
  18156. fi
  18157. done
  18158. done
  18159. IFS=$as_save_IFS
  18160. test -z "$ac_cv_path_PK12UTIL" && ac_cv_path_PK12UTIL="notfound"
  18161. ;;
  18162. esac ;;
  18163. esac
  18164. fi
  18165. PK12UTIL=$ac_cv_path_PK12UTIL
  18166. if test -n "$PK12UTIL"; then
  18167. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PK12UTIL" >&5
  18168. printf "%s\n" "$PK12UTIL" >&6; }
  18169. else
  18170. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  18171. printf "%s\n" "no" >&6; }
  18172. fi
  18173. fi
  18174. if test $NE_FLAG_ZLIB = yes; then
  18175. TESTS="$TESTS \$(ZLIB_TESTS)"
  18176. HELPERS="$HELPERS \$(ZLIB_HELPERS)"
  18177. fi
  18178. if test x$enable_webdav != xno; then
  18179. TESTS="$TESTS \$(DAV_TESTS)"
  18180. fi
  18181. # Check whether --enable-tests-install was given.
  18182. if test ${enable_tests_install+y}
  18183. then :
  18184. enableval=$enable_tests_install;
  18185. else case e in #(
  18186. e) enable_tests_install=no ;;
  18187. esac
  18188. fi
  18189. # If test suite installation is not required, it's more
  18190. # efficient to link the test programs using -no-install:
  18191. if test "$enable_tests_install" = "no"; then
  18192. TEST_LDFLAGS="-no-install"
  18193. fi
  18194. # Extract the first word of "pkg-config", so it can be a program name with args.
  18195. set dummy pkg-config; ac_word=$2
  18196. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  18197. printf %s "checking for $ac_word... " >&6; }
  18198. if test ${ac_cv_path_PKG_CONFIG+y}
  18199. then :
  18200. printf %s "(cached) " >&6
  18201. else case e in #(
  18202. e) case $PKG_CONFIG in
  18203. [\\/]* | ?:[\\/]*)
  18204. ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
  18205. ;;
  18206. *)
  18207. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  18208. for as_dir in $PATH
  18209. do
  18210. IFS=$as_save_IFS
  18211. case $as_dir in #(((
  18212. '') as_dir=./ ;;
  18213. */) ;;
  18214. *) as_dir=$as_dir/ ;;
  18215. esac
  18216. for ac_exec_ext in '' $ac_executable_extensions; do
  18217. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  18218. ac_cv_path_PKG_CONFIG="$as_dir$ac_word$ac_exec_ext"
  18219. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  18220. break 2
  18221. fi
  18222. done
  18223. done
  18224. IFS=$as_save_IFS
  18225. test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
  18226. ;;
  18227. esac ;;
  18228. esac
  18229. fi
  18230. PKG_CONFIG=$ac_cv_path_PKG_CONFIG
  18231. if test -n "$PKG_CONFIG"; then
  18232. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
  18233. printf "%s\n" "$PKG_CONFIG" >&6; }
  18234. else
  18235. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  18236. printf "%s\n" "no" >&6; }
  18237. fi
  18238. if test "$PKG_CONFIG" != "no"; then
  18239. # pkg-config >= 0.18 will use "Libs.private" iff necessary,
  18240. # older versions which don't recognize that field may always
  18241. # need all libraries in Libs.
  18242. if $PKG_CONFIG --atleast-pkgconfig-version=0.18; then :; else
  18243. NEON_PC_LIBS=${NEON_LIBS}
  18244. fi
  18245. fi
  18246. # Pass the interface version on to libtool when linking libneon.la
  18247. NEON_LINK_FLAGS="-version-info ${NE_LIBTOOL_VERSINFO}"
  18248. # If any non-default ABI variations are used, add them to the SONAME:
  18249. ### disabled for backwards-compat with 0.27.x
  18250. #if test "x${NE_LIBTOOL_RELEASE}y" != "xy"; then
  18251. # NEON_LINK_FLAGS="${NEON_LINK_FLAGS} -release ${NE_LIBTOOL_RELEASE}"
  18252. #fi
  18253. # Check whether --enable-ld-version-script was given.
  18254. if test ${enable_ld_version_script+y}
  18255. then :
  18256. enableval=$enable_ld_version_script; have_ld_version_script=$enableval
  18257. fi
  18258. if test -z "$have_ld_version_script"; then
  18259. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if LD -Wl,--version-script works" >&5
  18260. printf %s "checking if LD -Wl,--version-script works... " >&6; }
  18261. save_LDFLAGS="$LDFLAGS"
  18262. LDFLAGS="$LDFLAGS -Wl,--version-script=conftest.map"
  18263. cat > conftest.map <<EOF
  18264. foo
  18265. EOF
  18266. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18267. /* end confdefs.h. */
  18268. int
  18269. main (void)
  18270. {
  18271. ;
  18272. return 0;
  18273. }
  18274. _ACEOF
  18275. if ac_fn_c_try_link "$LINENO"
  18276. then :
  18277. accepts_syntax_errors=yes
  18278. else case e in #(
  18279. e) accepts_syntax_errors=no ;;
  18280. esac
  18281. fi
  18282. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  18283. conftest$ac_exeext conftest.$ac_ext
  18284. if test "$accepts_syntax_errors" = no; then
  18285. cat > conftest.map <<EOF
  18286. VERS_1 {
  18287. global: sym;
  18288. };
  18289. VERS_2 {
  18290. global: sym;
  18291. } VERS_1;
  18292. EOF
  18293. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18294. /* end confdefs.h. */
  18295. int
  18296. main (void)
  18297. {
  18298. ;
  18299. return 0;
  18300. }
  18301. _ACEOF
  18302. if ac_fn_c_try_link "$LINENO"
  18303. then :
  18304. have_ld_version_script=yes
  18305. else case e in #(
  18306. e) have_ld_version_script=no ;;
  18307. esac
  18308. fi
  18309. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  18310. conftest$ac_exeext conftest.$ac_ext
  18311. else
  18312. have_ld_version_script=no
  18313. fi
  18314. rm -f conftest.map
  18315. LDFLAGS="$save_LDFLAGS"
  18316. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_ld_version_script" >&5
  18317. printf "%s\n" "$have_ld_version_script" >&6; }
  18318. fi
  18319. if test "$have_ld_version_script" = "yes"; then
  18320. HAVE_LD_VERSION_SCRIPT_TRUE=
  18321. HAVE_LD_VERSION_SCRIPT_FALSE='#'
  18322. else
  18323. HAVE_LD_VERSION_SCRIPT_TRUE='#'
  18324. HAVE_LD_VERSION_SCRIPT_FALSE=
  18325. fi
  18326. # If ld version scripts are supported, enable symbol versioning.
  18327. # Otherwise, fall back to any libtool-supported symbol export
  18328. # restrictions; ne__* symbols are not exported.
  18329. if test "x$have_ld_version_script" = "xyes"; then
  18330. NEON_LINK_FLAGS="$NEON_LINK_FLAGS -Wl,--version-script=\$(top_srcdir)/src/neon.vers"
  18331. else
  18332. NEON_LINK_FLAGS="$NEON_LINK_FLAGS -export-symbols-regex '^ne_[^_]'"
  18333. fi
  18334. if test x${enable_shared}${pic_mode}z = xnodefaultz; then
  18335. CFLAGS="$CFLAGS -prefer-pic"
  18336. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: Using PIC for static library build" >&5
  18337. printf "%s\n" "$as_me: Using PIC for static library build" >&6;}
  18338. fi
  18339. if test x${enable_shared} = xno; then
  18340. # Defining NE_PRIVATE as the empty string would work; using a
  18341. # non-empty but redundant string 'extern' avoids any possible cpp
  18342. # confusion with from an empty macro.
  18343. CPPFLAGS="$CPPFLAGS -DNE_PRIVATE=extern"
  18344. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: Private symbol suppression disabled for static library build" >&5
  18345. printf "%s\n" "$as_me: Private symbol suppression disabled for static library build" >&6;}
  18346. fi
  18347. # Bundled language catalogs
  18348. ALL_LINGUAS="cs de fr ja ka nn pl ru tr zh_CN"
  18349. ac_config_files="$ac_config_files neon-config"
  18350. ac_config_files="$ac_config_files Makefile src/Makefile test/Makefile neon.pc"
  18351. ac_config_files="$ac_config_files test/makekeys:test/makekeys.sh"
  18352. cat >confcache <<\_ACEOF
  18353. # This file is a shell script that caches the results of configure
  18354. # tests run on this system so they can be shared between configure
  18355. # scripts and configure runs, see configure's option --config-cache.
  18356. # It is not useful on other systems. If it contains results you don't
  18357. # want to keep, you may remove or edit it.
  18358. #
  18359. # config.status only pays attention to the cache file if you give it
  18360. # the --recheck option to rerun configure.
  18361. #
  18362. # 'ac_cv_env_foo' variables (set or unset) will be overridden when
  18363. # loading this file, other *unset* 'ac_cv_foo' will be assigned the
  18364. # following values.
  18365. _ACEOF
  18366. # The following way of writing the cache mishandles newlines in values,
  18367. # but we know of no workaround that is simple, portable, and efficient.
  18368. # So, we kill variables containing newlines.
  18369. # Ultrix sh set writes to stderr and can't be redirected directly,
  18370. # and sets the high bit in the cache file unless we assign to the vars.
  18371. (
  18372. for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
  18373. eval ac_val=\$$ac_var
  18374. case $ac_val in #(
  18375. *${as_nl}*)
  18376. case $ac_var in #(
  18377. *_cv_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
  18378. printf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
  18379. esac
  18380. case $ac_var in #(
  18381. _ | IFS | as_nl) ;; #(
  18382. BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
  18383. *) { eval $ac_var=; unset $ac_var;} ;;
  18384. esac ;;
  18385. esac
  18386. done
  18387. (set) 2>&1 |
  18388. case $as_nl`(ac_space=' '; set) 2>&1` in #(
  18389. *${as_nl}ac_space=\ *)
  18390. # 'set' does not quote correctly, so add quotes: double-quote
  18391. # substitution turns \\\\ into \\, and sed turns \\ into \.
  18392. sed -n \
  18393. "s/'/'\\\\''/g;
  18394. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
  18395. ;; #(
  18396. *)
  18397. # 'set' quotes correctly as required by POSIX, so do not add quotes.
  18398. sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
  18399. ;;
  18400. esac |
  18401. sort
  18402. ) |
  18403. sed '
  18404. /^ac_cv_env_/b end
  18405. t clear
  18406. :clear
  18407. s/^\([^=]*\)=\(.*[{}].*\)$/test ${\1+y} || &/
  18408. t end
  18409. s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
  18410. :end' >>confcache
  18411. if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
  18412. if test -w "$cache_file"; then
  18413. if test "x$cache_file" != "x/dev/null"; then
  18414. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
  18415. printf "%s\n" "$as_me: updating cache $cache_file" >&6;}
  18416. if test ! -f "$cache_file" || test -h "$cache_file"; then
  18417. cat confcache >"$cache_file"
  18418. else
  18419. case $cache_file in #(
  18420. */* | ?:*)
  18421. mv -f confcache "$cache_file"$$ &&
  18422. mv -f "$cache_file"$$ "$cache_file" ;; #(
  18423. *)
  18424. mv -f confcache "$cache_file" ;;
  18425. esac
  18426. fi
  18427. fi
  18428. else
  18429. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
  18430. printf "%s\n" "$as_me: not updating unwritable cache $cache_file" >&6;}
  18431. fi
  18432. fi
  18433. rm -f confcache
  18434. test "x$prefix" = xNONE && prefix=$ac_default_prefix
  18435. # Let make expand exec_prefix.
  18436. test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
  18437. DEFS=-DHAVE_CONFIG_H
  18438. ac_libobjs=
  18439. ac_ltlibobjs=
  18440. U=
  18441. for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
  18442. # 1. Remove the extension, and $U if already installed.
  18443. ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
  18444. ac_i=`printf "%s\n" "$ac_i" | sed "$ac_script"`
  18445. # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
  18446. # will be set to the directory where LIBOBJS objects are built.
  18447. as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
  18448. as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
  18449. done
  18450. LIBOBJS=$ac_libobjs
  18451. LTLIBOBJS=$ac_ltlibobjs
  18452. if test -z "${HAVE_LD_VERSION_SCRIPT_TRUE}" && test -z "${HAVE_LD_VERSION_SCRIPT_FALSE}"; then
  18453. as_fn_error $? "conditional \"HAVE_LD_VERSION_SCRIPT\" was never defined.
  18454. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  18455. fi
  18456. : "${CONFIG_STATUS=./config.status}"
  18457. ac_write_fail=0
  18458. ac_clean_files_save=$ac_clean_files
  18459. ac_clean_files="$ac_clean_files $CONFIG_STATUS"
  18460. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
  18461. printf "%s\n" "$as_me: creating $CONFIG_STATUS" >&6;}
  18462. as_write_fail=0
  18463. cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
  18464. #! $SHELL
  18465. # Generated by $as_me.
  18466. # Run this file to recreate the current configuration.
  18467. # Compiler output produced by configure, useful for debugging
  18468. # configure, is in config.log if it exists.
  18469. debug=false
  18470. ac_cs_recheck=false
  18471. ac_cs_silent=false
  18472. SHELL=\${CONFIG_SHELL-$SHELL}
  18473. export SHELL
  18474. _ASEOF
  18475. cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
  18476. ## -------------------- ##
  18477. ## M4sh Initialization. ##
  18478. ## -------------------- ##
  18479. # Be more Bourne compatible
  18480. DUALCASE=1; export DUALCASE # for MKS sh
  18481. if test ${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1
  18482. then :
  18483. emulate sh
  18484. NULLCMD=:
  18485. # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
  18486. # is contrary to our usage. Disable this feature.
  18487. alias -g '${1+"$@"}'='"$@"'
  18488. setopt NO_GLOB_SUBST
  18489. else case e in #(
  18490. e) case `(set -o) 2>/dev/null` in #(
  18491. *posix*) :
  18492. set -o posix ;; #(
  18493. *) :
  18494. ;;
  18495. esac ;;
  18496. esac
  18497. fi
  18498. # Reset variables that may have inherited troublesome values from
  18499. # the environment.
  18500. # IFS needs to be set, to space, tab, and newline, in precisely that order.
  18501. # (If _AS_PATH_WALK were called with IFS unset, it would have the
  18502. # side effect of setting IFS to empty, thus disabling word splitting.)
  18503. # Quoting is to prevent editors from complaining about space-tab.
  18504. as_nl='
  18505. '
  18506. export as_nl
  18507. IFS=" "" $as_nl"
  18508. PS1='$ '
  18509. PS2='> '
  18510. PS4='+ '
  18511. # Ensure predictable behavior from utilities with locale-dependent output.
  18512. LC_ALL=C
  18513. export LC_ALL
  18514. LANGUAGE=C
  18515. export LANGUAGE
  18516. # We cannot yet rely on "unset" to work, but we need these variables
  18517. # to be unset--not just set to an empty or harmless value--now, to
  18518. # avoid bugs in old shells (e.g. pre-3.0 UWIN ksh). This construct
  18519. # also avoids known problems related to "unset" and subshell syntax
  18520. # in other old shells (e.g. bash 2.01 and pdksh 5.2.14).
  18521. for as_var in BASH_ENV ENV MAIL MAILPATH CDPATH
  18522. do eval test \${$as_var+y} \
  18523. && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
  18524. done
  18525. # Ensure that fds 0, 1, and 2 are open.
  18526. if (exec 3>&0) 2>/dev/null; then :; else exec 0</dev/null; fi
  18527. if (exec 3>&1) 2>/dev/null; then :; else exec 1>/dev/null; fi
  18528. if (exec 3>&2) ; then :; else exec 2>/dev/null; fi
  18529. # The user is always right.
  18530. if ${PATH_SEPARATOR+false} :; then
  18531. PATH_SEPARATOR=:
  18532. (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
  18533. (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
  18534. PATH_SEPARATOR=';'
  18535. }
  18536. fi
  18537. # Find who we are. Look in the path if we contain no directory separator.
  18538. as_myself=
  18539. case $0 in #((
  18540. *[\\/]* ) as_myself=$0 ;;
  18541. *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  18542. for as_dir in $PATH
  18543. do
  18544. IFS=$as_save_IFS
  18545. case $as_dir in #(((
  18546. '') as_dir=./ ;;
  18547. */) ;;
  18548. *) as_dir=$as_dir/ ;;
  18549. esac
  18550. test -r "$as_dir$0" && as_myself=$as_dir$0 && break
  18551. done
  18552. IFS=$as_save_IFS
  18553. ;;
  18554. esac
  18555. # We did not find ourselves, most probably we were run as 'sh COMMAND'
  18556. # in which case we are not to be found in the path.
  18557. if test "x$as_myself" = x; then
  18558. as_myself=$0
  18559. fi
  18560. if test ! -f "$as_myself"; then
  18561. printf "%s\n" "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
  18562. exit 1
  18563. fi
  18564. # as_fn_error STATUS ERROR [LINENO LOG_FD]
  18565. # ----------------------------------------
  18566. # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
  18567. # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
  18568. # script with STATUS, using 1 if that was 0.
  18569. as_fn_error ()
  18570. {
  18571. as_status=$1; test $as_status -eq 0 && as_status=1
  18572. if test "$4"; then
  18573. as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  18574. printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
  18575. fi
  18576. printf "%s\n" "$as_me: error: $2" >&2
  18577. as_fn_exit $as_status
  18578. } # as_fn_error
  18579. # as_fn_set_status STATUS
  18580. # -----------------------
  18581. # Set $? to STATUS, without forking.
  18582. as_fn_set_status ()
  18583. {
  18584. return $1
  18585. } # as_fn_set_status
  18586. # as_fn_exit STATUS
  18587. # -----------------
  18588. # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
  18589. as_fn_exit ()
  18590. {
  18591. set +e
  18592. as_fn_set_status $1
  18593. exit $1
  18594. } # as_fn_exit
  18595. # as_fn_unset VAR
  18596. # ---------------
  18597. # Portably unset VAR.
  18598. as_fn_unset ()
  18599. {
  18600. { eval $1=; unset $1;}
  18601. }
  18602. as_unset=as_fn_unset
  18603. # as_fn_append VAR VALUE
  18604. # ----------------------
  18605. # Append the text in VALUE to the end of the definition contained in VAR. Take
  18606. # advantage of any shell optimizations that allow amortized linear growth over
  18607. # repeated appends, instead of the typical quadratic growth present in naive
  18608. # implementations.
  18609. if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null
  18610. then :
  18611. eval 'as_fn_append ()
  18612. {
  18613. eval $1+=\$2
  18614. }'
  18615. else case e in #(
  18616. e) as_fn_append ()
  18617. {
  18618. eval $1=\$$1\$2
  18619. } ;;
  18620. esac
  18621. fi # as_fn_append
  18622. # as_fn_arith ARG...
  18623. # ------------------
  18624. # Perform arithmetic evaluation on the ARGs, and store the result in the
  18625. # global $as_val. Take advantage of shells that can avoid forks. The arguments
  18626. # must be portable across $(()) and expr.
  18627. if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null
  18628. then :
  18629. eval 'as_fn_arith ()
  18630. {
  18631. as_val=$(( $* ))
  18632. }'
  18633. else case e in #(
  18634. e) as_fn_arith ()
  18635. {
  18636. as_val=`expr "$@" || test $? -eq 1`
  18637. } ;;
  18638. esac
  18639. fi # as_fn_arith
  18640. if expr a : '\(a\)' >/dev/null 2>&1 &&
  18641. test "X`expr 00001 : '.*\(...\)'`" = X001; then
  18642. as_expr=expr
  18643. else
  18644. as_expr=false
  18645. fi
  18646. if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
  18647. as_basename=basename
  18648. else
  18649. as_basename=false
  18650. fi
  18651. if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
  18652. as_dirname=dirname
  18653. else
  18654. as_dirname=false
  18655. fi
  18656. as_me=`$as_basename -- "$0" ||
  18657. $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
  18658. X"$0" : 'X\(//\)$' \| \
  18659. X"$0" : 'X\(/\)' \| . 2>/dev/null ||
  18660. printf "%s\n" X/"$0" |
  18661. sed '/^.*\/\([^/][^/]*\)\/*$/{
  18662. s//\1/
  18663. q
  18664. }
  18665. /^X\/\(\/\/\)$/{
  18666. s//\1/
  18667. q
  18668. }
  18669. /^X\/\(\/\).*/{
  18670. s//\1/
  18671. q
  18672. }
  18673. s/.*/./; q'`
  18674. # Avoid depending upon Character Ranges.
  18675. as_cr_letters='abcdefghijklmnopqrstuvwxyz'
  18676. as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
  18677. as_cr_Letters=$as_cr_letters$as_cr_LETTERS
  18678. as_cr_digits='0123456789'
  18679. as_cr_alnum=$as_cr_Letters$as_cr_digits
  18680. # Determine whether it's possible to make 'echo' print without a newline.
  18681. # These variables are no longer used directly by Autoconf, but are AC_SUBSTed
  18682. # for compatibility with existing Makefiles.
  18683. ECHO_C= ECHO_N= ECHO_T=
  18684. case `echo -n x` in #(((((
  18685. -n*)
  18686. case `echo 'xy\c'` in
  18687. *c*) ECHO_T=' ';; # ECHO_T is single tab character.
  18688. xy) ECHO_C='\c';;
  18689. *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
  18690. ECHO_T=' ';;
  18691. esac;;
  18692. *)
  18693. ECHO_N='-n';;
  18694. esac
  18695. # For backward compatibility with old third-party macros, we provide
  18696. # the shell variables $as_echo and $as_echo_n. New code should use
  18697. # AS_ECHO(["message"]) and AS_ECHO_N(["message"]), respectively.
  18698. as_echo='printf %s\n'
  18699. as_echo_n='printf %s'
  18700. rm -f conf$$ conf$$.exe conf$$.file
  18701. if test -d conf$$.dir; then
  18702. rm -f conf$$.dir/conf$$.file
  18703. else
  18704. rm -f conf$$.dir
  18705. mkdir conf$$.dir 2>/dev/null
  18706. fi
  18707. if (echo >conf$$.file) 2>/dev/null; then
  18708. if ln -s conf$$.file conf$$ 2>/dev/null; then
  18709. as_ln_s='ln -s'
  18710. # ... but there are two gotchas:
  18711. # 1) On MSYS, both 'ln -s file dir' and 'ln file dir' fail.
  18712. # 2) DJGPP < 2.04 has no symlinks; 'ln -s' creates a wrapper executable.
  18713. # In both cases, we have to default to 'cp -pR'.
  18714. ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
  18715. as_ln_s='cp -pR'
  18716. elif ln conf$$.file conf$$ 2>/dev/null; then
  18717. as_ln_s=ln
  18718. else
  18719. as_ln_s='cp -pR'
  18720. fi
  18721. else
  18722. as_ln_s='cp -pR'
  18723. fi
  18724. rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
  18725. rmdir conf$$.dir 2>/dev/null
  18726. # as_fn_mkdir_p
  18727. # -------------
  18728. # Create "$as_dir" as a directory, including parents if necessary.
  18729. as_fn_mkdir_p ()
  18730. {
  18731. case $as_dir in #(
  18732. -*) as_dir=./$as_dir;;
  18733. esac
  18734. test -d "$as_dir" || eval $as_mkdir_p || {
  18735. as_dirs=
  18736. while :; do
  18737. case $as_dir in #(
  18738. *\'*) as_qdir=`printf "%s\n" "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
  18739. *) as_qdir=$as_dir;;
  18740. esac
  18741. as_dirs="'$as_qdir' $as_dirs"
  18742. as_dir=`$as_dirname -- "$as_dir" ||
  18743. $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  18744. X"$as_dir" : 'X\(//\)[^/]' \| \
  18745. X"$as_dir" : 'X\(//\)$' \| \
  18746. X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
  18747. printf "%s\n" X"$as_dir" |
  18748. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  18749. s//\1/
  18750. q
  18751. }
  18752. /^X\(\/\/\)[^/].*/{
  18753. s//\1/
  18754. q
  18755. }
  18756. /^X\(\/\/\)$/{
  18757. s//\1/
  18758. q
  18759. }
  18760. /^X\(\/\).*/{
  18761. s//\1/
  18762. q
  18763. }
  18764. s/.*/./; q'`
  18765. test -d "$as_dir" && break
  18766. done
  18767. test -z "$as_dirs" || eval "mkdir $as_dirs"
  18768. } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
  18769. } # as_fn_mkdir_p
  18770. if mkdir -p . 2>/dev/null; then
  18771. as_mkdir_p='mkdir -p "$as_dir"'
  18772. else
  18773. test -d ./-p && rmdir ./-p
  18774. as_mkdir_p=false
  18775. fi
  18776. # as_fn_executable_p FILE
  18777. # -----------------------
  18778. # Test if FILE is an executable regular file.
  18779. as_fn_executable_p ()
  18780. {
  18781. test -f "$1" && test -x "$1"
  18782. } # as_fn_executable_p
  18783. as_test_x='test -x'
  18784. as_executable_p=as_fn_executable_p
  18785. # Sed expression to map a string onto a valid CPP name.
  18786. as_sed_cpp="y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
  18787. as_tr_cpp="eval sed '$as_sed_cpp'" # deprecated
  18788. # Sed expression to map a string onto a valid variable name.
  18789. as_sed_sh="y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
  18790. as_tr_sh="eval sed '$as_sed_sh'" # deprecated
  18791. exec 6>&1
  18792. ## ----------------------------------- ##
  18793. ## Main body of $CONFIG_STATUS script. ##
  18794. ## ----------------------------------- ##
  18795. _ASEOF
  18796. test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
  18797. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  18798. # Save the log message, to keep $0 and so on meaningful, and to
  18799. # report actual input values of CONFIG_FILES etc. instead of their
  18800. # values after options handling.
  18801. ac_log="
  18802. This file was extended by neon $as_me 0.36.0, which was
  18803. generated by GNU Autoconf 2.72. Invocation command line was
  18804. CONFIG_FILES = $CONFIG_FILES
  18805. CONFIG_HEADERS = $CONFIG_HEADERS
  18806. CONFIG_LINKS = $CONFIG_LINKS
  18807. CONFIG_COMMANDS = $CONFIG_COMMANDS
  18808. $ $0 $@
  18809. on `(hostname || uname -n) 2>/dev/null | sed 1q`
  18810. "
  18811. _ACEOF
  18812. case $ac_config_files in *"
  18813. "*) set x $ac_config_files; shift; ac_config_files=$*;;
  18814. esac
  18815. case $ac_config_headers in *"
  18816. "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
  18817. esac
  18818. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  18819. # Files that config.status was made for.
  18820. config_files="$ac_config_files"
  18821. config_headers="$ac_config_headers"
  18822. config_commands="$ac_config_commands"
  18823. _ACEOF
  18824. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  18825. ac_cs_usage="\
  18826. '$as_me' instantiates files and other configuration actions
  18827. from templates according to the current configuration. Unless the files
  18828. and actions are specified as TAGs, all are instantiated by default.
  18829. Usage: $0 [OPTION]... [TAG]...
  18830. -h, --help print this help, then exit
  18831. -V, --version print version number and configuration settings, then exit
  18832. --config print configuration, then exit
  18833. -q, --quiet, --silent
  18834. do not print progress messages
  18835. -d, --debug don't remove temporary files
  18836. --recheck update $as_me by reconfiguring in the same conditions
  18837. --file=FILE[:TEMPLATE]
  18838. instantiate the configuration file FILE
  18839. --header=FILE[:TEMPLATE]
  18840. instantiate the configuration header FILE
  18841. Configuration files:
  18842. $config_files
  18843. Configuration headers:
  18844. $config_headers
  18845. Configuration commands:
  18846. $config_commands
  18847. Report bugs to the package provider.
  18848. neon home page: <https://notroj.github.io/neon/>."
  18849. _ACEOF
  18850. ac_cs_config=`printf "%s\n" "$ac_configure_args" | sed "$ac_safe_unquote"`
  18851. ac_cs_config_escaped=`printf "%s\n" "$ac_cs_config" | sed "s/^ //; s/'/'\\\\\\\\''/g"`
  18852. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  18853. ac_cs_config='$ac_cs_config_escaped'
  18854. ac_cs_version="\\
  18855. neon config.status 0.36.0
  18856. configured by $0, generated by GNU Autoconf 2.72,
  18857. with options \\"\$ac_cs_config\\"
  18858. Copyright (C) 2023 Free Software Foundation, Inc.
  18859. This config.status script is free software; the Free Software Foundation
  18860. gives unlimited permission to copy, distribute and modify it."
  18861. ac_pwd='$ac_pwd'
  18862. srcdir='$srcdir'
  18863. INSTALL='$INSTALL'
  18864. AWK='$AWK'
  18865. test -n "\$AWK" || AWK=awk
  18866. _ACEOF
  18867. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  18868. # The default lists apply if the user does not specify any file.
  18869. ac_need_defaults=:
  18870. while test $# != 0
  18871. do
  18872. case $1 in
  18873. --*=?*)
  18874. ac_option=`expr "X$1" : 'X\([^=]*\)='`
  18875. ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
  18876. ac_shift=:
  18877. ;;
  18878. --*=)
  18879. ac_option=`expr "X$1" : 'X\([^=]*\)='`
  18880. ac_optarg=
  18881. ac_shift=:
  18882. ;;
  18883. *)
  18884. ac_option=$1
  18885. ac_optarg=$2
  18886. ac_shift=shift
  18887. ;;
  18888. esac
  18889. case $ac_option in
  18890. # Handling of the options.
  18891. -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
  18892. ac_cs_recheck=: ;;
  18893. --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
  18894. printf "%s\n" "$ac_cs_version"; exit ;;
  18895. --config | --confi | --conf | --con | --co | --c )
  18896. printf "%s\n" "$ac_cs_config"; exit ;;
  18897. --debug | --debu | --deb | --de | --d | -d )
  18898. debug=: ;;
  18899. --file | --fil | --fi | --f )
  18900. $ac_shift
  18901. case $ac_optarg in
  18902. *\'*) ac_optarg=`printf "%s\n" "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
  18903. '') as_fn_error $? "missing file argument" ;;
  18904. esac
  18905. as_fn_append CONFIG_FILES " '$ac_optarg'"
  18906. ac_need_defaults=false;;
  18907. --header | --heade | --head | --hea )
  18908. $ac_shift
  18909. case $ac_optarg in
  18910. *\'*) ac_optarg=`printf "%s\n" "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
  18911. esac
  18912. as_fn_append CONFIG_HEADERS " '$ac_optarg'"
  18913. ac_need_defaults=false;;
  18914. --he | --h)
  18915. # Conflict between --help and --header
  18916. as_fn_error $? "ambiguous option: '$1'
  18917. Try '$0 --help' for more information.";;
  18918. --help | --hel | -h )
  18919. printf "%s\n" "$ac_cs_usage"; exit ;;
  18920. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  18921. | -silent | --silent | --silen | --sile | --sil | --si | --s)
  18922. ac_cs_silent=: ;;
  18923. # This is an error.
  18924. -*) as_fn_error $? "unrecognized option: '$1'
  18925. Try '$0 --help' for more information." ;;
  18926. *) as_fn_append ac_config_targets " $1"
  18927. ac_need_defaults=false ;;
  18928. esac
  18929. shift
  18930. done
  18931. ac_configure_extra_args=
  18932. if $ac_cs_silent; then
  18933. exec 6>/dev/null
  18934. ac_configure_extra_args="$ac_configure_extra_args --silent"
  18935. fi
  18936. _ACEOF
  18937. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  18938. if \$ac_cs_recheck; then
  18939. set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
  18940. shift
  18941. \printf "%s\n" "running CONFIG_SHELL=$SHELL \$*" >&6
  18942. CONFIG_SHELL='$SHELL'
  18943. export CONFIG_SHELL
  18944. exec "\$@"
  18945. fi
  18946. _ACEOF
  18947. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  18948. exec 5>>config.log
  18949. {
  18950. echo
  18951. sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
  18952. ## Running $as_me. ##
  18953. _ASBOX
  18954. printf "%s\n" "$ac_log"
  18955. } >&5
  18956. _ACEOF
  18957. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  18958. #
  18959. # INIT-COMMANDS
  18960. #
  18961. # The HP-UX ksh and POSIX shell print the target directory to stdout
  18962. # if CDPATH is set.
  18963. (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
  18964. sed_quote_subst='$sed_quote_subst'
  18965. double_quote_subst='$double_quote_subst'
  18966. delay_variable_subst='$delay_variable_subst'
  18967. enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
  18968. macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
  18969. macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
  18970. enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
  18971. pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
  18972. enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
  18973. shared_archive_member_spec='`$ECHO "$shared_archive_member_spec" | $SED "$delay_single_quote_subst"`'
  18974. SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
  18975. ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
  18976. PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
  18977. host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
  18978. host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
  18979. host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
  18980. build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
  18981. build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
  18982. build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
  18983. SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
  18984. Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
  18985. GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
  18986. EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
  18987. FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
  18988. LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
  18989. NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
  18990. LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
  18991. max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
  18992. ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
  18993. exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
  18994. lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
  18995. lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
  18996. lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
  18997. lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
  18998. lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
  18999. reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
  19000. reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
  19001. FILECMD='`$ECHO "$FILECMD" | $SED "$delay_single_quote_subst"`'
  19002. OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
  19003. deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
  19004. file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
  19005. file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
  19006. want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
  19007. DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
  19008. sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
  19009. AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
  19010. lt_ar_flags='`$ECHO "$lt_ar_flags" | $SED "$delay_single_quote_subst"`'
  19011. AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
  19012. archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
  19013. STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
  19014. RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
  19015. old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
  19016. old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
  19017. old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
  19018. lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
  19019. CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
  19020. CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
  19021. compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
  19022. GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
  19023. lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
  19024. lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
  19025. lt_cv_sys_global_symbol_to_import='`$ECHO "$lt_cv_sys_global_symbol_to_import" | $SED "$delay_single_quote_subst"`'
  19026. lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
  19027. 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"`'
  19028. lt_cv_nm_interface='`$ECHO "$lt_cv_nm_interface" | $SED "$delay_single_quote_subst"`'
  19029. nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
  19030. lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
  19031. lt_cv_truncate_bin='`$ECHO "$lt_cv_truncate_bin" | $SED "$delay_single_quote_subst"`'
  19032. objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
  19033. MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
  19034. lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
  19035. lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
  19036. lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
  19037. lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
  19038. lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
  19039. need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
  19040. MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
  19041. DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
  19042. NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
  19043. LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
  19044. OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
  19045. OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
  19046. libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
  19047. shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
  19048. extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
  19049. archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
  19050. enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
  19051. export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
  19052. whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
  19053. compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
  19054. old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
  19055. old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
  19056. archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
  19057. archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
  19058. module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
  19059. module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
  19060. with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
  19061. allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
  19062. no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
  19063. hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
  19064. hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
  19065. hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
  19066. hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
  19067. hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
  19068. hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
  19069. hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
  19070. inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
  19071. link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
  19072. always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
  19073. export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
  19074. exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
  19075. include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
  19076. prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
  19077. postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
  19078. file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
  19079. variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
  19080. need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
  19081. need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
  19082. version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
  19083. runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
  19084. shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
  19085. shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
  19086. libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
  19087. library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
  19088. soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
  19089. install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
  19090. postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
  19091. postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
  19092. finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
  19093. finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
  19094. hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
  19095. sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
  19096. configure_time_dlsearch_path='`$ECHO "$configure_time_dlsearch_path" | $SED "$delay_single_quote_subst"`'
  19097. configure_time_lt_sys_library_path='`$ECHO "$configure_time_lt_sys_library_path" | $SED "$delay_single_quote_subst"`'
  19098. hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
  19099. enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
  19100. enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
  19101. enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
  19102. old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
  19103. striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
  19104. LTCC='$LTCC'
  19105. LTCFLAGS='$LTCFLAGS'
  19106. compiler='$compiler_DEFAULT'
  19107. # A function that is used when there is no print builtin or printf.
  19108. func_fallback_echo ()
  19109. {
  19110. eval 'cat <<_LTECHO_EOF
  19111. \$1
  19112. _LTECHO_EOF'
  19113. }
  19114. # Quote evaled strings.
  19115. for var in SHELL \
  19116. ECHO \
  19117. PATH_SEPARATOR \
  19118. SED \
  19119. GREP \
  19120. EGREP \
  19121. FGREP \
  19122. LD \
  19123. NM \
  19124. LN_S \
  19125. lt_SP2NL \
  19126. lt_NL2SP \
  19127. reload_flag \
  19128. FILECMD \
  19129. OBJDUMP \
  19130. deplibs_check_method \
  19131. file_magic_cmd \
  19132. file_magic_glob \
  19133. want_nocaseglob \
  19134. DLLTOOL \
  19135. sharedlib_from_linklib_cmd \
  19136. AR \
  19137. archiver_list_spec \
  19138. STRIP \
  19139. RANLIB \
  19140. CC \
  19141. CFLAGS \
  19142. compiler \
  19143. lt_cv_sys_global_symbol_pipe \
  19144. lt_cv_sys_global_symbol_to_cdecl \
  19145. lt_cv_sys_global_symbol_to_import \
  19146. lt_cv_sys_global_symbol_to_c_name_address \
  19147. lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
  19148. lt_cv_nm_interface \
  19149. nm_file_list_spec \
  19150. lt_cv_truncate_bin \
  19151. lt_prog_compiler_no_builtin_flag \
  19152. lt_prog_compiler_pic \
  19153. lt_prog_compiler_wl \
  19154. lt_prog_compiler_static \
  19155. lt_cv_prog_compiler_c_o \
  19156. need_locks \
  19157. MANIFEST_TOOL \
  19158. DSYMUTIL \
  19159. NMEDIT \
  19160. LIPO \
  19161. OTOOL \
  19162. OTOOL64 \
  19163. shrext_cmds \
  19164. export_dynamic_flag_spec \
  19165. whole_archive_flag_spec \
  19166. compiler_needs_object \
  19167. with_gnu_ld \
  19168. allow_undefined_flag \
  19169. no_undefined_flag \
  19170. hardcode_libdir_flag_spec \
  19171. hardcode_libdir_separator \
  19172. exclude_expsyms \
  19173. include_expsyms \
  19174. file_list_spec \
  19175. variables_saved_for_relink \
  19176. libname_spec \
  19177. library_names_spec \
  19178. soname_spec \
  19179. install_override_mode \
  19180. finish_eval \
  19181. old_striplib \
  19182. striplib; do
  19183. case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
  19184. *[\\\\\\\`\\"\\\$]*)
  19185. eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
  19186. ;;
  19187. *)
  19188. eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
  19189. ;;
  19190. esac
  19191. done
  19192. # Double-quote double-evaled strings.
  19193. for var in reload_cmds \
  19194. old_postinstall_cmds \
  19195. old_postuninstall_cmds \
  19196. old_archive_cmds \
  19197. extract_expsyms_cmds \
  19198. old_archive_from_new_cmds \
  19199. old_archive_from_expsyms_cmds \
  19200. archive_cmds \
  19201. archive_expsym_cmds \
  19202. module_cmds \
  19203. module_expsym_cmds \
  19204. export_symbols_cmds \
  19205. prelink_cmds \
  19206. postlink_cmds \
  19207. postinstall_cmds \
  19208. postuninstall_cmds \
  19209. finish_cmds \
  19210. sys_lib_search_path_spec \
  19211. configure_time_dlsearch_path \
  19212. configure_time_lt_sys_library_path; do
  19213. case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
  19214. *[\\\\\\\`\\"\\\$]*)
  19215. eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
  19216. ;;
  19217. *)
  19218. eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
  19219. ;;
  19220. esac
  19221. done
  19222. ac_aux_dir='$ac_aux_dir'
  19223. # See if we are running on zsh, and set the options that allow our
  19224. # commands through without removal of \ escapes INIT.
  19225. if test -n "\${ZSH_VERSION+set}"; then
  19226. setopt NO_GLOB_SUBST
  19227. fi
  19228. PACKAGE='$PACKAGE'
  19229. VERSION='$VERSION'
  19230. RM='$RM'
  19231. ofile='$ofile'
  19232. _ACEOF
  19233. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  19234. # Handling of arguments.
  19235. for ac_config_target in $ac_config_targets
  19236. do
  19237. case $ac_config_target in
  19238. "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
  19239. "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
  19240. "neon-config") CONFIG_FILES="$CONFIG_FILES neon-config" ;;
  19241. "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
  19242. "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
  19243. "test/Makefile") CONFIG_FILES="$CONFIG_FILES test/Makefile" ;;
  19244. "neon.pc") CONFIG_FILES="$CONFIG_FILES neon.pc" ;;
  19245. "test/makekeys") CONFIG_FILES="$CONFIG_FILES test/makekeys:test/makekeys.sh" ;;
  19246. *) as_fn_error $? "invalid argument: '$ac_config_target'" "$LINENO" 5;;
  19247. esac
  19248. done
  19249. # If the user did not use the arguments to specify the items to instantiate,
  19250. # then the envvar interface is used. Set only those that are not.
  19251. # We use the long form for the default assignment because of an extremely
  19252. # bizarre bug on SunOS 4.1.3.
  19253. if $ac_need_defaults; then
  19254. test ${CONFIG_FILES+y} || CONFIG_FILES=$config_files
  19255. test ${CONFIG_HEADERS+y} || CONFIG_HEADERS=$config_headers
  19256. test ${CONFIG_COMMANDS+y} || CONFIG_COMMANDS=$config_commands
  19257. fi
  19258. # Have a temporary directory for convenience. Make it in the build tree
  19259. # simply because there is no reason against having it here, and in addition,
  19260. # creating and moving files from /tmp can sometimes cause problems.
  19261. # Hook for its removal unless debugging.
  19262. # Note that there is a small window in which the directory will not be cleaned:
  19263. # after its creation but before its name has been assigned to '$tmp'.
  19264. $debug ||
  19265. {
  19266. tmp= ac_tmp=
  19267. trap 'exit_status=$?
  19268. : "${ac_tmp:=$tmp}"
  19269. { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
  19270. ' 0
  19271. trap 'as_fn_exit 1' 1 2 13 15
  19272. }
  19273. # Create a (secure) tmp directory for tmp files.
  19274. {
  19275. tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
  19276. test -d "$tmp"
  19277. } ||
  19278. {
  19279. tmp=./conf$$-$RANDOM
  19280. (umask 077 && mkdir "$tmp")
  19281. } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
  19282. ac_tmp=$tmp
  19283. # Set up the scripts for CONFIG_FILES section.
  19284. # No need to generate them if there are no CONFIG_FILES.
  19285. # This happens for instance with './config.status config.h'.
  19286. if test -n "$CONFIG_FILES"; then
  19287. ac_cr=`echo X | tr X '\015'`
  19288. # On cygwin, bash can eat \r inside `` if the user requested igncr.
  19289. # But we know of no other shell where ac_cr would be empty at this
  19290. # point, so we can use a bashism as a fallback.
  19291. if test "x$ac_cr" = x; then
  19292. eval ac_cr=\$\'\\r\'
  19293. fi
  19294. ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
  19295. if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
  19296. ac_cs_awk_cr='\\r'
  19297. else
  19298. ac_cs_awk_cr=$ac_cr
  19299. fi
  19300. echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
  19301. _ACEOF
  19302. {
  19303. echo "cat >conf$$subs.awk <<_ACEOF" &&
  19304. echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
  19305. echo "_ACEOF"
  19306. } >conf$$subs.sh ||
  19307. as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
  19308. ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
  19309. ac_delim='%!_!# '
  19310. for ac_last_try in false false false false false :; do
  19311. . ./conf$$subs.sh ||
  19312. as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
  19313. ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
  19314. if test $ac_delim_n = $ac_delim_num; then
  19315. break
  19316. elif $ac_last_try; then
  19317. as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
  19318. else
  19319. ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
  19320. fi
  19321. done
  19322. rm -f conf$$subs.sh
  19323. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  19324. cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
  19325. _ACEOF
  19326. sed -n '
  19327. h
  19328. s/^/S["/; s/!.*/"]=/
  19329. p
  19330. g
  19331. s/^[^!]*!//
  19332. :repl
  19333. t repl
  19334. s/'"$ac_delim"'$//
  19335. t delim
  19336. :nl
  19337. h
  19338. s/\(.\{148\}\)..*/\1/
  19339. t more1
  19340. s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
  19341. p
  19342. n
  19343. b repl
  19344. :more1
  19345. s/["\\]/\\&/g; s/^/"/; s/$/"\\/
  19346. p
  19347. g
  19348. s/.\{148\}//
  19349. t nl
  19350. :delim
  19351. h
  19352. s/\(.\{148\}\)..*/\1/
  19353. t more2
  19354. s/["\\]/\\&/g; s/^/"/; s/$/"/
  19355. p
  19356. b
  19357. :more2
  19358. s/["\\]/\\&/g; s/^/"/; s/$/"\\/
  19359. p
  19360. g
  19361. s/.\{148\}//
  19362. t delim
  19363. ' <conf$$subs.awk | sed '
  19364. /^[^""]/{
  19365. N
  19366. s/\n//
  19367. }
  19368. ' >>$CONFIG_STATUS || ac_write_fail=1
  19369. rm -f conf$$subs.awk
  19370. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  19371. _ACAWK
  19372. cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
  19373. for (key in S) S_is_set[key] = 1
  19374. FS = ""
  19375. }
  19376. {
  19377. line = $ 0
  19378. nfields = split(line, field, "@")
  19379. substed = 0
  19380. len = length(field[1])
  19381. for (i = 2; i < nfields; i++) {
  19382. key = field[i]
  19383. keylen = length(key)
  19384. if (S_is_set[key]) {
  19385. value = S[key]
  19386. line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
  19387. len += length(value) + length(field[++i])
  19388. substed = 1
  19389. } else
  19390. len += 1 + keylen
  19391. }
  19392. print line
  19393. }
  19394. _ACAWK
  19395. _ACEOF
  19396. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  19397. if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
  19398. sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
  19399. else
  19400. cat
  19401. fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
  19402. || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
  19403. _ACEOF
  19404. # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
  19405. # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
  19406. # trailing colons and then remove the whole line if VPATH becomes empty
  19407. # (actually we leave an empty line to preserve line numbers).
  19408. if test "x$srcdir" = x.; then
  19409. ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
  19410. h
  19411. s///
  19412. s/^/:/
  19413. s/[ ]*$/:/
  19414. s/:\$(srcdir):/:/g
  19415. s/:\${srcdir}:/:/g
  19416. s/:@srcdir@:/:/g
  19417. s/^:*//
  19418. s/:*$//
  19419. x
  19420. s/\(=[ ]*\).*/\1/
  19421. G
  19422. s/\n//
  19423. s/^[^=]*=[ ]*$//
  19424. }'
  19425. fi
  19426. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  19427. fi # test -n "$CONFIG_FILES"
  19428. # Set up the scripts for CONFIG_HEADERS section.
  19429. # No need to generate them if there are no CONFIG_HEADERS.
  19430. # This happens for instance with './config.status Makefile'.
  19431. if test -n "$CONFIG_HEADERS"; then
  19432. cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
  19433. BEGIN {
  19434. _ACEOF
  19435. # Transform confdefs.h into an awk script 'defines.awk', embedded as
  19436. # here-document in config.status, that substitutes the proper values into
  19437. # config.h.in to produce config.h.
  19438. # Create a delimiter string that does not exist in confdefs.h, to ease
  19439. # handling of long lines.
  19440. ac_delim='%!_!# '
  19441. for ac_last_try in false false :; do
  19442. ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
  19443. if test -z "$ac_tt"; then
  19444. break
  19445. elif $ac_last_try; then
  19446. as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
  19447. else
  19448. ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
  19449. fi
  19450. done
  19451. # For the awk script, D is an array of macro values keyed by name,
  19452. # likewise P contains macro parameters if any. Preserve backslash
  19453. # newline sequences.
  19454. ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
  19455. sed -n '
  19456. s/.\{148\}/&'"$ac_delim"'/g
  19457. t rset
  19458. :rset
  19459. s/^[ ]*#[ ]*define[ ][ ]*/ /
  19460. t def
  19461. d
  19462. :def
  19463. s/\\$//
  19464. t bsnl
  19465. s/["\\]/\\&/g
  19466. s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
  19467. D["\1"]=" \3"/p
  19468. s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
  19469. d
  19470. :bsnl
  19471. s/["\\]/\\&/g
  19472. s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
  19473. D["\1"]=" \3\\\\\\n"\\/p
  19474. t cont
  19475. s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
  19476. t cont
  19477. d
  19478. :cont
  19479. n
  19480. s/.\{148\}/&'"$ac_delim"'/g
  19481. t clear
  19482. :clear
  19483. s/\\$//
  19484. t bsnlc
  19485. s/["\\]/\\&/g; s/^/"/; s/$/"/p
  19486. d
  19487. :bsnlc
  19488. s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
  19489. b cont
  19490. ' <confdefs.h | sed '
  19491. s/'"$ac_delim"'/"\\\
  19492. "/g' >>$CONFIG_STATUS || ac_write_fail=1
  19493. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  19494. for (key in D) D_is_set[key] = 1
  19495. FS = ""
  19496. }
  19497. /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
  19498. line = \$ 0
  19499. split(line, arg, " ")
  19500. if (arg[1] == "#") {
  19501. defundef = arg[2]
  19502. mac1 = arg[3]
  19503. } else {
  19504. defundef = substr(arg[1], 2)
  19505. mac1 = arg[2]
  19506. }
  19507. split(mac1, mac2, "(") #)
  19508. macro = mac2[1]
  19509. prefix = substr(line, 1, index(line, defundef) - 1)
  19510. if (D_is_set[macro]) {
  19511. # Preserve the white space surrounding the "#".
  19512. print prefix "define", macro P[macro] D[macro]
  19513. next
  19514. } else {
  19515. # Replace #undef with comments. This is necessary, for example,
  19516. # in the case of _POSIX_SOURCE, which is predefined and required
  19517. # on some systems where configure will not decide to define it.
  19518. if (defundef == "undef") {
  19519. print "/*", prefix defundef, macro, "*/"
  19520. next
  19521. }
  19522. }
  19523. }
  19524. { print }
  19525. _ACAWK
  19526. _ACEOF
  19527. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  19528. as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
  19529. fi # test -n "$CONFIG_HEADERS"
  19530. eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
  19531. shift
  19532. for ac_tag
  19533. do
  19534. case $ac_tag in
  19535. :[FHLC]) ac_mode=$ac_tag; continue;;
  19536. esac
  19537. case $ac_mode$ac_tag in
  19538. :[FHL]*:*);;
  19539. :L* | :C*:*) as_fn_error $? "invalid tag '$ac_tag'" "$LINENO" 5;;
  19540. :[FH]-) ac_tag=-:-;;
  19541. :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
  19542. esac
  19543. ac_save_IFS=$IFS
  19544. IFS=:
  19545. set x $ac_tag
  19546. IFS=$ac_save_IFS
  19547. shift
  19548. ac_file=$1
  19549. shift
  19550. case $ac_mode in
  19551. :L) ac_source=$1;;
  19552. :[FH])
  19553. ac_file_inputs=
  19554. for ac_f
  19555. do
  19556. case $ac_f in
  19557. -) ac_f="$ac_tmp/stdin";;
  19558. *) # Look for the file first in the build tree, then in the source tree
  19559. # (if the path is not absolute). The absolute path cannot be DOS-style,
  19560. # because $ac_f cannot contain ':'.
  19561. test -f "$ac_f" ||
  19562. case $ac_f in
  19563. [\\/$]*) false;;
  19564. *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
  19565. esac ||
  19566. as_fn_error 1 "cannot find input file: '$ac_f'" "$LINENO" 5;;
  19567. esac
  19568. case $ac_f in *\'*) ac_f=`printf "%s\n" "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
  19569. as_fn_append ac_file_inputs " '$ac_f'"
  19570. done
  19571. # Let's still pretend it is 'configure' which instantiates (i.e., don't
  19572. # use $as_me), people would be surprised to read:
  19573. # /* config.h. Generated by config.status. */
  19574. configure_input='Generated from '`
  19575. printf "%s\n" "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
  19576. `' by configure.'
  19577. if test x"$ac_file" != x-; then
  19578. configure_input="$ac_file. $configure_input"
  19579. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
  19580. printf "%s\n" "$as_me: creating $ac_file" >&6;}
  19581. fi
  19582. # Neutralize special characters interpreted by sed in replacement strings.
  19583. case $configure_input in #(
  19584. *\&* | *\|* | *\\* )
  19585. ac_sed_conf_input=`printf "%s\n" "$configure_input" |
  19586. sed 's/[\\\\&|]/\\\\&/g'`;; #(
  19587. *) ac_sed_conf_input=$configure_input;;
  19588. esac
  19589. case $ac_tag in
  19590. *:-:* | *:-) cat >"$ac_tmp/stdin" \
  19591. || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
  19592. esac
  19593. ;;
  19594. esac
  19595. ac_dir=`$as_dirname -- "$ac_file" ||
  19596. $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  19597. X"$ac_file" : 'X\(//\)[^/]' \| \
  19598. X"$ac_file" : 'X\(//\)$' \| \
  19599. X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
  19600. printf "%s\n" X"$ac_file" |
  19601. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  19602. s//\1/
  19603. q
  19604. }
  19605. /^X\(\/\/\)[^/].*/{
  19606. s//\1/
  19607. q
  19608. }
  19609. /^X\(\/\/\)$/{
  19610. s//\1/
  19611. q
  19612. }
  19613. /^X\(\/\).*/{
  19614. s//\1/
  19615. q
  19616. }
  19617. s/.*/./; q'`
  19618. as_dir="$ac_dir"; as_fn_mkdir_p
  19619. ac_builddir=.
  19620. case "$ac_dir" in
  19621. .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
  19622. *)
  19623. ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'`
  19624. # A ".." for each directory in $ac_dir_suffix.
  19625. ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
  19626. case $ac_top_builddir_sub in
  19627. "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
  19628. *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
  19629. esac ;;
  19630. esac
  19631. ac_abs_top_builddir=$ac_pwd
  19632. ac_abs_builddir=$ac_pwd$ac_dir_suffix
  19633. # for backward compatibility:
  19634. ac_top_builddir=$ac_top_build_prefix
  19635. case $srcdir in
  19636. .) # We are building in place.
  19637. ac_srcdir=.
  19638. ac_top_srcdir=$ac_top_builddir_sub
  19639. ac_abs_top_srcdir=$ac_pwd ;;
  19640. [\\/]* | ?:[\\/]* ) # Absolute name.
  19641. ac_srcdir=$srcdir$ac_dir_suffix;
  19642. ac_top_srcdir=$srcdir
  19643. ac_abs_top_srcdir=$srcdir ;;
  19644. *) # Relative name.
  19645. ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
  19646. ac_top_srcdir=$ac_top_build_prefix$srcdir
  19647. ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
  19648. esac
  19649. ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
  19650. case $ac_mode in
  19651. :F)
  19652. #
  19653. # CONFIG_FILE
  19654. #
  19655. case $INSTALL in
  19656. [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
  19657. *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
  19658. esac
  19659. _ACEOF
  19660. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  19661. # If the template does not know about datarootdir, expand it.
  19662. # FIXME: This hack should be removed a few years after 2.60.
  19663. ac_datarootdir_hack=; ac_datarootdir_seen=
  19664. ac_sed_dataroot='
  19665. /datarootdir/ {
  19666. p
  19667. q
  19668. }
  19669. /@datadir@/p
  19670. /@docdir@/p
  19671. /@infodir@/p
  19672. /@localedir@/p
  19673. /@mandir@/p'
  19674. case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
  19675. *datarootdir*) ac_datarootdir_seen=yes;;
  19676. *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
  19677. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
  19678. printf "%s\n" "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
  19679. _ACEOF
  19680. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  19681. ac_datarootdir_hack='
  19682. s&@datadir@&$datadir&g
  19683. s&@docdir@&$docdir&g
  19684. s&@infodir@&$infodir&g
  19685. s&@localedir@&$localedir&g
  19686. s&@mandir@&$mandir&g
  19687. s&\\\${datarootdir}&$datarootdir&g' ;;
  19688. esac
  19689. _ACEOF
  19690. # Neutralize VPATH when '$srcdir' = '.'.
  19691. # Shell code in configure.ac might set extrasub.
  19692. # FIXME: do we really want to maintain this feature?
  19693. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  19694. ac_sed_extra="$ac_vpsub
  19695. $extrasub
  19696. _ACEOF
  19697. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  19698. :t
  19699. /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
  19700. s|@configure_input@|$ac_sed_conf_input|;t t
  19701. s&@top_builddir@&$ac_top_builddir_sub&;t t
  19702. s&@top_build_prefix@&$ac_top_build_prefix&;t t
  19703. s&@srcdir@&$ac_srcdir&;t t
  19704. s&@abs_srcdir@&$ac_abs_srcdir&;t t
  19705. s&@top_srcdir@&$ac_top_srcdir&;t t
  19706. s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
  19707. s&@builddir@&$ac_builddir&;t t
  19708. s&@abs_builddir@&$ac_abs_builddir&;t t
  19709. s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
  19710. s&@INSTALL@&$ac_INSTALL&;t t
  19711. $ac_datarootdir_hack
  19712. "
  19713. eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
  19714. >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
  19715. test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
  19716. { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
  19717. { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
  19718. "$ac_tmp/out"`; test -z "$ac_out"; } &&
  19719. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable 'datarootdir'
  19720. which seems to be undefined. Please make sure it is defined" >&5
  19721. printf "%s\n" "$as_me: WARNING: $ac_file contains a reference to the variable 'datarootdir'
  19722. which seems to be undefined. Please make sure it is defined" >&2;}
  19723. rm -f "$ac_tmp/stdin"
  19724. case $ac_file in
  19725. -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
  19726. *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
  19727. esac \
  19728. || as_fn_error $? "could not create $ac_file" "$LINENO" 5
  19729. ;;
  19730. :H)
  19731. #
  19732. # CONFIG_HEADER
  19733. #
  19734. if test x"$ac_file" != x-; then
  19735. {
  19736. printf "%s\n" "/* $configure_input */" >&1 \
  19737. && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
  19738. } >"$ac_tmp/config.h" \
  19739. || as_fn_error $? "could not create $ac_file" "$LINENO" 5
  19740. if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
  19741. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
  19742. printf "%s\n" "$as_me: $ac_file is unchanged" >&6;}
  19743. else
  19744. rm -f "$ac_file"
  19745. mv "$ac_tmp/config.h" "$ac_file" \
  19746. || as_fn_error $? "could not create $ac_file" "$LINENO" 5
  19747. fi
  19748. else
  19749. printf "%s\n" "/* $configure_input */" >&1 \
  19750. && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
  19751. || as_fn_error $? "could not create -" "$LINENO" 5
  19752. fi
  19753. ;;
  19754. :C) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
  19755. printf "%s\n" "$as_me: executing $ac_file commands" >&6;}
  19756. ;;
  19757. esac
  19758. case $ac_file$ac_mode in
  19759. "libtool":C)
  19760. # See if we are running on zsh, and set the options that allow our
  19761. # commands through without removal of \ escapes.
  19762. if test -n "${ZSH_VERSION+set}"; then
  19763. setopt NO_GLOB_SUBST
  19764. fi
  19765. cfgfile=${ofile}T
  19766. trap "$RM \"$cfgfile\"; exit 1" 1 2 15
  19767. $RM "$cfgfile"
  19768. cat <<_LT_EOF >> "$cfgfile"
  19769. #! $SHELL
  19770. # Generated automatically by $as_me ($PACKAGE) $VERSION
  19771. # NOTE: Changes made to this file will be lost: look at ltmain.sh.
  19772. # Provide generalized library-building support services.
  19773. # Written by Gordon Matzigkeit, 1996
  19774. # Copyright (C) 2024 Free Software Foundation, Inc.
  19775. # This is free software; see the source for copying conditions. There is NO
  19776. # warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
  19777. # GNU Libtool is free software; you can redistribute it and/or modify
  19778. # it under the terms of the GNU General Public License as published by
  19779. # the Free Software Foundation; either version 2 of the License, or
  19780. # (at your option) any later version.
  19781. #
  19782. # As a special exception to the GNU General Public License, if you
  19783. # distribute this file as part of a program or library that is built
  19784. # using GNU Libtool, you may include this file under the same
  19785. # distribution terms that you use for the rest of that program.
  19786. #
  19787. # GNU Libtool is distributed in the hope that it will be useful, but
  19788. # WITHOUT ANY WARRANTY; without even the implied warranty of
  19789. # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  19790. # GNU General Public License for more details.
  19791. #
  19792. # You should have received a copy of the GNU General Public License
  19793. # along with this program. If not, see <http://www.gnu.org/licenses/>.
  19794. # The names of the tagged configurations supported by this script.
  19795. available_tags=''
  19796. # Configured defaults for sys_lib_dlsearch_path munging.
  19797. : \${LT_SYS_LIBRARY_PATH="$configure_time_lt_sys_library_path"}
  19798. # ### BEGIN LIBTOOL CONFIG
  19799. # Whether or not to build shared libraries.
  19800. build_libtool_libs=$enable_shared
  19801. # Which release of libtool.m4 was used?
  19802. macro_version=$macro_version
  19803. macro_revision=$macro_revision
  19804. # Whether or not to build static libraries.
  19805. build_old_libs=$enable_static
  19806. # What type of objects to build.
  19807. pic_mode=$pic_mode
  19808. # Whether or not to optimize for fast installation.
  19809. fast_install=$enable_fast_install
  19810. # Shared archive member basename,for filename based shared library versioning on AIX.
  19811. shared_archive_member_spec=$shared_archive_member_spec
  19812. # Shell to use when invoking shell scripts.
  19813. SHELL=$lt_SHELL
  19814. # An echo program that protects backslashes.
  19815. ECHO=$lt_ECHO
  19816. # The PATH separator for the build system.
  19817. PATH_SEPARATOR=$lt_PATH_SEPARATOR
  19818. # The host system.
  19819. host_alias=$host_alias
  19820. host=$host
  19821. host_os=$host_os
  19822. # The build system.
  19823. build_alias=$build_alias
  19824. build=$build
  19825. build_os=$build_os
  19826. # A sed program that does not truncate output.
  19827. SED=$lt_SED
  19828. # Sed that helps us avoid accidentally triggering echo(1) options like -n.
  19829. Xsed="\$SED -e 1s/^X//"
  19830. # A grep program that handles long lines.
  19831. GREP=$lt_GREP
  19832. # An ERE matcher.
  19833. EGREP=$lt_EGREP
  19834. # A literal string matcher.
  19835. FGREP=$lt_FGREP
  19836. # A BSD- or MS-compatible name lister.
  19837. NM=$lt_NM
  19838. # Whether we need soft or hard links.
  19839. LN_S=$lt_LN_S
  19840. # What is the maximum length of a command?
  19841. max_cmd_len=$max_cmd_len
  19842. # Object file suffix (normally "o").
  19843. objext=$ac_objext
  19844. # Executable file suffix (normally "").
  19845. exeext=$exeext
  19846. # whether the shell understands "unset".
  19847. lt_unset=$lt_unset
  19848. # turn spaces into newlines.
  19849. SP2NL=$lt_lt_SP2NL
  19850. # turn newlines into spaces.
  19851. NL2SP=$lt_lt_NL2SP
  19852. # convert \$build file names to \$host format.
  19853. to_host_file_cmd=$lt_cv_to_host_file_cmd
  19854. # convert \$build files to toolchain format.
  19855. to_tool_file_cmd=$lt_cv_to_tool_file_cmd
  19856. # A file(cmd) program that detects file types.
  19857. FILECMD=$lt_FILECMD
  19858. # An object symbol dumper.
  19859. OBJDUMP=$lt_OBJDUMP
  19860. # Method to check whether dependent libraries are shared objects.
  19861. deplibs_check_method=$lt_deplibs_check_method
  19862. # Command to use when deplibs_check_method = "file_magic".
  19863. file_magic_cmd=$lt_file_magic_cmd
  19864. # How to find potential files when deplibs_check_method = "file_magic".
  19865. file_magic_glob=$lt_file_magic_glob
  19866. # Find potential files using nocaseglob when deplibs_check_method = "file_magic".
  19867. want_nocaseglob=$lt_want_nocaseglob
  19868. # DLL creation program.
  19869. DLLTOOL=$lt_DLLTOOL
  19870. # Command to associate shared and link libraries.
  19871. sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
  19872. # The archiver.
  19873. AR=$lt_AR
  19874. # Flags to create an archive (by configure).
  19875. lt_ar_flags=$lt_ar_flags
  19876. # Flags to create an archive.
  19877. AR_FLAGS=\${ARFLAGS-"\$lt_ar_flags"}
  19878. # How to feed a file listing to the archiver.
  19879. archiver_list_spec=$lt_archiver_list_spec
  19880. # A symbol stripping program.
  19881. STRIP=$lt_STRIP
  19882. # Commands used to install an old-style archive.
  19883. RANLIB=$lt_RANLIB
  19884. old_postinstall_cmds=$lt_old_postinstall_cmds
  19885. old_postuninstall_cmds=$lt_old_postuninstall_cmds
  19886. # Whether to use a lock for old archive extraction.
  19887. lock_old_archive_extraction=$lock_old_archive_extraction
  19888. # A C compiler.
  19889. LTCC=$lt_CC
  19890. # LTCC compiler flags.
  19891. LTCFLAGS=$lt_CFLAGS
  19892. # Take the output of nm and produce a listing of raw symbols and C names.
  19893. global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
  19894. # Transform the output of nm in a proper C declaration.
  19895. global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
  19896. # Transform the output of nm into a list of symbols to manually relocate.
  19897. global_symbol_to_import=$lt_lt_cv_sys_global_symbol_to_import
  19898. # Transform the output of nm in a C name address pair.
  19899. global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
  19900. # Transform the output of nm in a C name address pair when lib prefix is needed.
  19901. global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
  19902. # The name lister interface.
  19903. nm_interface=$lt_lt_cv_nm_interface
  19904. # Specify filename containing input files for \$NM.
  19905. nm_file_list_spec=$lt_nm_file_list_spec
  19906. # The root where to search for dependent libraries,and where our libraries should be installed.
  19907. lt_sysroot=$lt_sysroot
  19908. # Command to truncate a binary pipe.
  19909. lt_truncate_bin=$lt_lt_cv_truncate_bin
  19910. # The name of the directory that contains temporary libtool files.
  19911. objdir=$objdir
  19912. # Used to examine libraries when file_magic_cmd begins with "file".
  19913. MAGIC_CMD=$MAGIC_CMD
  19914. # Must we lock files when doing compilation?
  19915. need_locks=$lt_need_locks
  19916. # Manifest tool.
  19917. MANIFEST_TOOL=$lt_MANIFEST_TOOL
  19918. # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
  19919. DSYMUTIL=$lt_DSYMUTIL
  19920. # Tool to change global to local symbols on Mac OS X.
  19921. NMEDIT=$lt_NMEDIT
  19922. # Tool to manipulate fat objects and archives on Mac OS X.
  19923. LIPO=$lt_LIPO
  19924. # ldd/readelf like tool for Mach-O binaries on Mac OS X.
  19925. OTOOL=$lt_OTOOL
  19926. # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
  19927. OTOOL64=$lt_OTOOL64
  19928. # Old archive suffix (normally "a").
  19929. libext=$libext
  19930. # Shared library suffix (normally ".so").
  19931. shrext_cmds=$lt_shrext_cmds
  19932. # The commands to extract the exported symbol list from a shared archive.
  19933. extract_expsyms_cmds=$lt_extract_expsyms_cmds
  19934. # Variables whose values should be saved in libtool wrapper scripts and
  19935. # restored at link time.
  19936. variables_saved_for_relink=$lt_variables_saved_for_relink
  19937. # Do we need the "lib" prefix for modules?
  19938. need_lib_prefix=$need_lib_prefix
  19939. # Do we need a version for libraries?
  19940. need_version=$need_version
  19941. # Library versioning type.
  19942. version_type=$version_type
  19943. # Shared library runtime path variable.
  19944. runpath_var=$runpath_var
  19945. # Shared library path variable.
  19946. shlibpath_var=$shlibpath_var
  19947. # Is shlibpath searched before the hard-coded library search path?
  19948. shlibpath_overrides_runpath=$shlibpath_overrides_runpath
  19949. # Format of library name prefix.
  19950. libname_spec=$lt_libname_spec
  19951. # List of archive names. First name is the real one, the rest are links.
  19952. # The last name is the one that the linker finds with -lNAME
  19953. library_names_spec=$lt_library_names_spec
  19954. # The coded name of the library, if different from the real name.
  19955. soname_spec=$lt_soname_spec
  19956. # Permission mode override for installation of shared libraries.
  19957. install_override_mode=$lt_install_override_mode
  19958. # Command to use after installation of a shared archive.
  19959. postinstall_cmds=$lt_postinstall_cmds
  19960. # Command to use after uninstallation of a shared archive.
  19961. postuninstall_cmds=$lt_postuninstall_cmds
  19962. # Commands used to finish a libtool library installation in a directory.
  19963. finish_cmds=$lt_finish_cmds
  19964. # As "finish_cmds", except a single script fragment to be evaled but
  19965. # not shown.
  19966. finish_eval=$lt_finish_eval
  19967. # Whether we should hardcode library paths into libraries.
  19968. hardcode_into_libs=$hardcode_into_libs
  19969. # Compile-time system search path for libraries.
  19970. sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
  19971. # Detected run-time system search path for libraries.
  19972. sys_lib_dlsearch_path_spec=$lt_configure_time_dlsearch_path
  19973. # Explicit LT_SYS_LIBRARY_PATH set during ./configure time.
  19974. configure_time_lt_sys_library_path=$lt_configure_time_lt_sys_library_path
  19975. # Whether dlopen is supported.
  19976. dlopen_support=$enable_dlopen
  19977. # Whether dlopen of programs is supported.
  19978. dlopen_self=$enable_dlopen_self
  19979. # Whether dlopen of statically linked programs is supported.
  19980. dlopen_self_static=$enable_dlopen_self_static
  19981. # Commands to strip libraries.
  19982. old_striplib=$lt_old_striplib
  19983. striplib=$lt_striplib
  19984. # The linker used to build libraries.
  19985. LD=$lt_LD
  19986. # How to create reloadable object files.
  19987. reload_flag=$lt_reload_flag
  19988. reload_cmds=$lt_reload_cmds
  19989. # Commands used to build an old-style archive.
  19990. old_archive_cmds=$lt_old_archive_cmds
  19991. # A language specific compiler.
  19992. CC=$lt_compiler
  19993. # Is the compiler the GNU compiler?
  19994. with_gcc=$GCC
  19995. # Compiler flag to turn off builtin functions.
  19996. no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
  19997. # Additional compiler flags for building library objects.
  19998. pic_flag=$lt_lt_prog_compiler_pic
  19999. # How to pass a linker flag through the compiler.
  20000. wl=$lt_lt_prog_compiler_wl
  20001. # Compiler flag to prevent dynamic linking.
  20002. link_static_flag=$lt_lt_prog_compiler_static
  20003. # Does compiler simultaneously support -c and -o options?
  20004. compiler_c_o=$lt_lt_cv_prog_compiler_c_o
  20005. # Whether or not to add -lc for building shared libraries.
  20006. build_libtool_need_lc=$archive_cmds_need_lc
  20007. # Whether or not to disallow shared libs when runtime libs are static.
  20008. allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
  20009. # Compiler flag to allow reflexive dlopens.
  20010. export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
  20011. # Compiler flag to generate shared objects directly from archives.
  20012. whole_archive_flag_spec=$lt_whole_archive_flag_spec
  20013. # Whether the compiler copes with passing no objects directly.
  20014. compiler_needs_object=$lt_compiler_needs_object
  20015. # Create an old-style archive from a shared archive.
  20016. old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
  20017. # Create a temporary old-style archive to link instead of a shared archive.
  20018. old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
  20019. # Commands used to build a shared archive.
  20020. archive_cmds=$lt_archive_cmds
  20021. archive_expsym_cmds=$lt_archive_expsym_cmds
  20022. # Commands used to build a loadable module if different from building
  20023. # a shared archive.
  20024. module_cmds=$lt_module_cmds
  20025. module_expsym_cmds=$lt_module_expsym_cmds
  20026. # Whether we are building with GNU ld or not.
  20027. with_gnu_ld=$lt_with_gnu_ld
  20028. # Flag that allows shared libraries with undefined symbols to be built.
  20029. allow_undefined_flag=$lt_allow_undefined_flag
  20030. # Flag that enforces no undefined symbols.
  20031. no_undefined_flag=$lt_no_undefined_flag
  20032. # Flag to hardcode \$libdir into a binary during linking.
  20033. # This must work even if \$libdir does not exist
  20034. hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
  20035. # Whether we need a single "-rpath" flag with a separated argument.
  20036. hardcode_libdir_separator=$lt_hardcode_libdir_separator
  20037. # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
  20038. # DIR into the resulting binary.
  20039. hardcode_direct=$hardcode_direct
  20040. # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
  20041. # DIR into the resulting binary and the resulting library dependency is
  20042. # "absolute",i.e. impossible to change by setting \$shlibpath_var if the
  20043. # library is relocated.
  20044. hardcode_direct_absolute=$hardcode_direct_absolute
  20045. # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
  20046. # into the resulting binary.
  20047. hardcode_minus_L=$hardcode_minus_L
  20048. # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
  20049. # into the resulting binary.
  20050. hardcode_shlibpath_var=$hardcode_shlibpath_var
  20051. # Set to "yes" if building a shared library automatically hardcodes DIR
  20052. # into the library and all subsequent libraries and executables linked
  20053. # against it.
  20054. hardcode_automatic=$hardcode_automatic
  20055. # Set to yes if linker adds runtime paths of dependent libraries
  20056. # to runtime path list.
  20057. inherit_rpath=$inherit_rpath
  20058. # Whether libtool must link a program against all its dependency libraries.
  20059. link_all_deplibs=$link_all_deplibs
  20060. # Set to "yes" if exported symbols are required.
  20061. always_export_symbols=$always_export_symbols
  20062. # The commands to list exported symbols.
  20063. export_symbols_cmds=$lt_export_symbols_cmds
  20064. # Symbols that should not be listed in the preloaded symbols.
  20065. exclude_expsyms=$lt_exclude_expsyms
  20066. # Symbols that must always be exported.
  20067. include_expsyms=$lt_include_expsyms
  20068. # Commands necessary for linking programs (against libraries) with templates.
  20069. prelink_cmds=$lt_prelink_cmds
  20070. # Commands necessary for finishing linking programs.
  20071. postlink_cmds=$lt_postlink_cmds
  20072. # Specify filename containing input files.
  20073. file_list_spec=$lt_file_list_spec
  20074. # How to hardcode a shared library path into an executable.
  20075. hardcode_action=$hardcode_action
  20076. # ### END LIBTOOL CONFIG
  20077. _LT_EOF
  20078. cat <<'_LT_EOF' >> "$cfgfile"
  20079. # ### BEGIN FUNCTIONS SHARED WITH CONFIGURE
  20080. # func_munge_path_list VARIABLE PATH
  20081. # -----------------------------------
  20082. # VARIABLE is name of variable containing _space_ separated list of
  20083. # directories to be munged by the contents of PATH, which is string
  20084. # having a format:
  20085. # "DIR[:DIR]:"
  20086. # string "DIR[ DIR]" will be prepended to VARIABLE
  20087. # ":DIR[:DIR]"
  20088. # string "DIR[ DIR]" will be appended to VARIABLE
  20089. # "DIRP[:DIRP]::[DIRA:]DIRA"
  20090. # string "DIRP[ DIRP]" will be prepended to VARIABLE and string
  20091. # "DIRA[ DIRA]" will be appended to VARIABLE
  20092. # "DIR[:DIR]"
  20093. # VARIABLE will be replaced by "DIR[ DIR]"
  20094. func_munge_path_list ()
  20095. {
  20096. case x$2 in
  20097. x)
  20098. ;;
  20099. *:)
  20100. eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
  20101. ;;
  20102. x:*)
  20103. eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
  20104. ;;
  20105. *::*)
  20106. eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
  20107. eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
  20108. ;;
  20109. *)
  20110. eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
  20111. ;;
  20112. esac
  20113. }
  20114. # Calculate cc_basename. Skip known compiler wrappers and cross-prefix.
  20115. func_cc_basename ()
  20116. {
  20117. for cc_temp in $*""; do
  20118. case $cc_temp in
  20119. compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
  20120. distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
  20121. \-*) ;;
  20122. *) break;;
  20123. esac
  20124. done
  20125. func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
  20126. }
  20127. # ### END FUNCTIONS SHARED WITH CONFIGURE
  20128. _LT_EOF
  20129. case $host_os in
  20130. aix3*)
  20131. cat <<\_LT_EOF >> "$cfgfile"
  20132. # AIX sometimes has problems with the GCC collect2 program. For some
  20133. # reason, if we set the COLLECT_NAMES environment variable, the problems
  20134. # vanish in a puff of smoke.
  20135. if test set != "${COLLECT_NAMES+set}"; then
  20136. COLLECT_NAMES=
  20137. export COLLECT_NAMES
  20138. fi
  20139. _LT_EOF
  20140. ;;
  20141. esac
  20142. ltmain=$ac_aux_dir/ltmain.sh
  20143. # We use sed instead of cat because bash on DJGPP gets confused if
  20144. # if finds mixed CR/LF and LF-only lines. Since sed operates in
  20145. # text mode, it properly converts lines to CR/LF. This bash problem
  20146. # is reportedly fixed, but why not run on old versions too?
  20147. $SED '$q' "$ltmain" >> "$cfgfile" \
  20148. || (rm -f "$cfgfile"; exit 1)
  20149. mv -f "$cfgfile" "$ofile" ||
  20150. (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
  20151. chmod +x "$ofile"
  20152. ;;
  20153. "neon-config":F) chmod +x neon-config ;;
  20154. "test/makekeys":F) chmod +x test/makekeys ;;
  20155. esac
  20156. done # for ac_tag
  20157. as_fn_exit 0
  20158. _ACEOF
  20159. ac_clean_files=$ac_clean_files_save
  20160. test $ac_write_fail = 0 ||
  20161. as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
  20162. # configure is writing to config.log, and then calls config.status.
  20163. # config.status does its own redirection, appending to config.log.
  20164. # Unfortunately, on DOS this fails, as config.log is still kept open
  20165. # by configure, so config.status won't be able to write to it; its
  20166. # output is simply discarded. So we exec the FD to /dev/null,
  20167. # effectively closing config.log, so it can be properly (re)opened and
  20168. # appended to by config.status. When coming back to configure, we
  20169. # need to make the FD available again.
  20170. if test "$no_create" != yes; then
  20171. ac_cs_success=:
  20172. ac_config_status_args=
  20173. test "$silent" = yes &&
  20174. ac_config_status_args="$ac_config_status_args --quiet"
  20175. exec 5>/dev/null
  20176. $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
  20177. exec 5>>config.log
  20178. # Use ||, not &&, to avoid exiting from the if with $? = 1, which
  20179. # would make configure fail if this is the last instruction.
  20180. $ac_cs_success || as_fn_exit 1
  20181. fi
  20182. if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
  20183. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
  20184. printf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
  20185. fi
  20186. # for VPATH builds:
  20187. test -d test/common || mkdir test/common
  20188. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: Configured to build neon 0.36.0:
  20189. Install prefix: ${prefix}
  20190. Compiler: ${CC}
  20191. XML Parser: ${neon_xml_parser_message}
  20192. SSL library: ${ne_SSL_message}
  20193. zlib support: ${ne_ZLIB_message}
  20194. GSSAPI support: ${ne_GSSAPI_message}
  20195. Build libraries: Shared=${enable_shared}, Static=${enable_static}
  20196. " >&5
  20197. printf "%s\n" "$as_me: Configured to build neon 0.36.0:
  20198. Install prefix: ${prefix}
  20199. Compiler: ${CC}
  20200. XML Parser: ${neon_xml_parser_message}
  20201. SSL library: ${ne_SSL_message}
  20202. zlib support: ${ne_ZLIB_message}
  20203. GSSAPI support: ${ne_GSSAPI_message}
  20204. Build libraries: Shared=${enable_shared}, Static=${enable_static}
  20205. " >&6;}
  20206. case $ALLOW_INSTALL in
  20207. memleak)
  20208. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: Configured with development-only flags:
  20209. WARNING: This copy of neon has been configured with memory leak checking
  20210. WARNING: enabled, which should only be used in a development build of neon.
  20211. WARNING: This neon library should not be installed for use by applications.
  20212. " >&5
  20213. printf "%s\n" "$as_me: Configured with development-only flags:
  20214. WARNING: This copy of neon has been configured with memory leak checking
  20215. WARNING: enabled, which should only be used in a development build of neon.
  20216. WARNING: This neon library should not be installed for use by applications.
  20217. " >&6;};;
  20218. esac