configure 552 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610161116121613161416151616161716181619162016211622162316241625162616271628162916301631163216331634163516361637163816391640164116421643164416451646164716481649165016511652165316541655165616571658165916601661166216631664166516661667166816691670167116721673167416751676167716781679168016811682168316841685168616871688168916901691169216931694169516961697169816991700170117021703170417051706170717081709171017111712171317141715171617171718171917201721172217231724172517261727172817291730173117321733173417351736173717381739174017411742174317441745174617471748174917501751175217531754175517561757175817591760176117621763176417651766176717681769177017711772177317741775177617771778177917801781178217831784178517861787178817891790179117921793179417951796179717981799180018011802180318041805180618071808180918101811181218131814181518161817181818191820182118221823182418251826182718281829183018311832183318341835183618371838183918401841184218431844184518461847184818491850185118521853185418551856185718581859186018611862186318641865186618671868186918701871187218731874187518761877187818791880188118821883188418851886188718881889189018911892189318941895189618971898189919001901190219031904190519061907190819091910191119121913191419151916191719181919192019211922192319241925192619271928192919301931193219331934193519361937193819391940194119421943194419451946194719481949195019511952195319541955195619571958195919601961196219631964196519661967196819691970197119721973197419751976197719781979198019811982198319841985198619871988198919901991199219931994199519961997199819992000200120022003200420052006200720082009201020112012201320142015201620172018201920202021202220232024202520262027202820292030203120322033203420352036203720382039204020412042204320442045204620472048204920502051205220532054205520562057205820592060206120622063206420652066206720682069207020712072207320742075207620772078207920802081208220832084208520862087208820892090209120922093209420952096209720982099210021012102210321042105210621072108210921102111211221132114211521162117211821192120212121222123212421252126212721282129213021312132213321342135213621372138213921402141214221432144214521462147214821492150215121522153215421552156215721582159216021612162216321642165216621672168216921702171217221732174217521762177217821792180218121822183218421852186218721882189219021912192219321942195219621972198219922002201220222032204220522062207220822092210221122122213221422152216221722182219222022212222222322242225222622272228222922302231223222332234223522362237223822392240224122422243224422452246224722482249225022512252225322542255225622572258225922602261226222632264226522662267226822692270227122722273227422752276227722782279228022812282228322842285228622872288228922902291229222932294229522962297229822992300230123022303230423052306230723082309231023112312231323142315231623172318231923202321232223232324232523262327232823292330233123322333233423352336233723382339234023412342234323442345234623472348234923502351235223532354235523562357235823592360236123622363236423652366236723682369237023712372237323742375237623772378237923802381238223832384238523862387238823892390239123922393239423952396239723982399240024012402240324042405240624072408240924102411241224132414241524162417241824192420242124222423242424252426242724282429243024312432243324342435243624372438243924402441244224432444244524462447244824492450245124522453245424552456245724582459246024612462246324642465246624672468246924702471247224732474247524762477247824792480248124822483248424852486248724882489249024912492249324942495249624972498249925002501250225032504250525062507250825092510251125122513251425152516251725182519252025212522252325242525252625272528252925302531253225332534253525362537253825392540254125422543254425452546254725482549255025512552255325542555255625572558255925602561256225632564256525662567256825692570257125722573257425752576257725782579258025812582258325842585258625872588258925902591259225932594259525962597259825992600260126022603260426052606260726082609261026112612261326142615261626172618261926202621262226232624262526262627262826292630263126322633263426352636263726382639264026412642264326442645264626472648264926502651265226532654265526562657265826592660266126622663266426652666266726682669267026712672267326742675267626772678267926802681268226832684268526862687268826892690269126922693269426952696269726982699270027012702270327042705270627072708270927102711271227132714271527162717271827192720272127222723272427252726272727282729273027312732273327342735273627372738273927402741274227432744274527462747274827492750275127522753275427552756275727582759276027612762276327642765276627672768276927702771277227732774277527762777277827792780278127822783278427852786278727882789279027912792279327942795279627972798279928002801280228032804280528062807280828092810281128122813281428152816281728182819282028212822282328242825282628272828282928302831283228332834283528362837283828392840284128422843284428452846284728482849285028512852285328542855285628572858285928602861286228632864286528662867286828692870287128722873287428752876287728782879288028812882288328842885288628872888288928902891289228932894289528962897289828992900290129022903290429052906290729082909291029112912291329142915291629172918291929202921292229232924292529262927292829292930293129322933293429352936293729382939294029412942294329442945294629472948294929502951295229532954295529562957295829592960296129622963296429652966296729682969297029712972297329742975297629772978297929802981298229832984298529862987298829892990299129922993299429952996299729982999300030013002300330043005300630073008300930103011301230133014301530163017301830193020302130223023302430253026302730283029303030313032303330343035303630373038303930403041304230433044304530463047304830493050305130523053305430553056305730583059306030613062306330643065306630673068306930703071307230733074307530763077307830793080308130823083308430853086308730883089309030913092309330943095309630973098309931003101310231033104310531063107310831093110311131123113311431153116311731183119312031213122312331243125312631273128312931303131313231333134313531363137313831393140314131423143314431453146314731483149315031513152315331543155315631573158315931603161316231633164316531663167316831693170317131723173317431753176317731783179318031813182318331843185318631873188318931903191319231933194319531963197319831993200320132023203320432053206320732083209321032113212321332143215321632173218321932203221322232233224322532263227322832293230323132323233323432353236323732383239324032413242324332443245324632473248324932503251325232533254325532563257325832593260326132623263326432653266326732683269327032713272327332743275327632773278327932803281328232833284328532863287328832893290329132923293329432953296329732983299330033013302330333043305330633073308330933103311331233133314331533163317331833193320332133223323332433253326332733283329333033313332333333343335333633373338333933403341334233433344334533463347334833493350335133523353335433553356335733583359336033613362336333643365336633673368336933703371337233733374337533763377337833793380338133823383338433853386338733883389339033913392339333943395339633973398339934003401340234033404340534063407340834093410341134123413341434153416341734183419342034213422342334243425342634273428342934303431343234333434343534363437343834393440344134423443344434453446344734483449345034513452345334543455345634573458345934603461346234633464346534663467346834693470347134723473347434753476347734783479348034813482348334843485348634873488348934903491349234933494349534963497349834993500350135023503350435053506350735083509351035113512351335143515351635173518351935203521352235233524352535263527352835293530353135323533353435353536353735383539354035413542354335443545354635473548354935503551355235533554355535563557355835593560356135623563356435653566356735683569357035713572357335743575357635773578357935803581358235833584358535863587358835893590359135923593359435953596359735983599360036013602360336043605360636073608360936103611361236133614361536163617361836193620362136223623362436253626362736283629363036313632363336343635363636373638363936403641364236433644364536463647364836493650365136523653365436553656365736583659366036613662366336643665366636673668366936703671367236733674367536763677367836793680368136823683368436853686368736883689369036913692369336943695369636973698369937003701370237033704370537063707370837093710371137123713371437153716371737183719372037213722372337243725372637273728372937303731373237333734373537363737373837393740374137423743374437453746374737483749375037513752375337543755375637573758375937603761376237633764376537663767376837693770377137723773377437753776377737783779378037813782378337843785378637873788378937903791379237933794379537963797379837993800380138023803380438053806380738083809381038113812381338143815381638173818381938203821382238233824382538263827382838293830383138323833383438353836383738383839384038413842384338443845384638473848384938503851385238533854385538563857385838593860386138623863386438653866386738683869387038713872387338743875387638773878387938803881388238833884388538863887388838893890389138923893389438953896389738983899390039013902390339043905390639073908390939103911391239133914391539163917391839193920392139223923392439253926392739283929393039313932393339343935393639373938393939403941394239433944394539463947394839493950395139523953395439553956395739583959396039613962396339643965396639673968396939703971397239733974397539763977397839793980398139823983398439853986398739883989399039913992399339943995399639973998399940004001400240034004400540064007400840094010401140124013401440154016401740184019402040214022402340244025402640274028402940304031403240334034403540364037403840394040404140424043404440454046404740484049405040514052405340544055405640574058405940604061406240634064406540664067406840694070407140724073407440754076407740784079408040814082408340844085408640874088408940904091409240934094409540964097409840994100410141024103410441054106410741084109411041114112411341144115411641174118411941204121412241234124412541264127412841294130413141324133413441354136413741384139414041414142414341444145414641474148414941504151415241534154415541564157415841594160416141624163416441654166416741684169417041714172417341744175417641774178417941804181418241834184418541864187418841894190419141924193419441954196419741984199420042014202420342044205420642074208420942104211421242134214421542164217421842194220422142224223422442254226422742284229423042314232423342344235423642374238423942404241424242434244424542464247424842494250425142524253425442554256425742584259426042614262426342644265426642674268426942704271427242734274427542764277427842794280428142824283428442854286428742884289429042914292429342944295429642974298429943004301430243034304430543064307430843094310431143124313431443154316431743184319432043214322432343244325432643274328432943304331433243334334433543364337433843394340434143424343434443454346434743484349435043514352435343544355435643574358435943604361436243634364436543664367436843694370437143724373437443754376437743784379438043814382438343844385438643874388438943904391439243934394439543964397439843994400440144024403440444054406440744084409441044114412441344144415441644174418441944204421442244234424442544264427442844294430443144324433443444354436443744384439444044414442444344444445444644474448444944504451445244534454445544564457445844594460446144624463446444654466446744684469447044714472447344744475447644774478447944804481448244834484448544864487448844894490449144924493449444954496449744984499450045014502450345044505450645074508450945104511451245134514451545164517451845194520452145224523452445254526452745284529453045314532453345344535453645374538453945404541454245434544454545464547454845494550455145524553455445554556455745584559456045614562456345644565456645674568456945704571457245734574457545764577457845794580458145824583458445854586458745884589459045914592459345944595459645974598459946004601460246034604460546064607460846094610461146124613461446154616461746184619462046214622462346244625462646274628462946304631463246334634463546364637463846394640464146424643464446454646464746484649465046514652465346544655465646574658465946604661466246634664466546664667466846694670467146724673467446754676467746784679468046814682468346844685468646874688468946904691469246934694469546964697469846994700470147024703470447054706470747084709471047114712471347144715471647174718471947204721472247234724472547264727472847294730473147324733473447354736473747384739474047414742474347444745474647474748474947504751475247534754475547564757475847594760476147624763476447654766476747684769477047714772477347744775477647774778477947804781478247834784478547864787478847894790479147924793479447954796479747984799480048014802480348044805480648074808480948104811481248134814481548164817481848194820482148224823482448254826482748284829483048314832483348344835483648374838483948404841484248434844484548464847484848494850485148524853485448554856485748584859486048614862486348644865486648674868486948704871487248734874487548764877487848794880488148824883488448854886488748884889489048914892489348944895489648974898489949004901490249034904490549064907490849094910491149124913491449154916491749184919492049214922492349244925492649274928492949304931493249334934493549364937493849394940494149424943494449454946494749484949495049514952495349544955495649574958495949604961496249634964496549664967496849694970497149724973497449754976497749784979498049814982498349844985498649874988498949904991499249934994499549964997499849995000500150025003500450055006500750085009501050115012501350145015501650175018501950205021502250235024502550265027502850295030503150325033503450355036503750385039504050415042504350445045504650475048504950505051505250535054505550565057505850595060506150625063506450655066506750685069507050715072507350745075507650775078507950805081508250835084508550865087508850895090509150925093509450955096509750985099510051015102510351045105510651075108510951105111511251135114511551165117511851195120512151225123512451255126512751285129513051315132513351345135513651375138513951405141514251435144514551465147514851495150515151525153515451555156515751585159516051615162516351645165516651675168516951705171517251735174517551765177517851795180518151825183518451855186518751885189519051915192519351945195519651975198519952005201520252035204520552065207520852095210521152125213521452155216521752185219522052215222522352245225522652275228522952305231523252335234523552365237523852395240524152425243524452455246524752485249525052515252525352545255525652575258525952605261526252635264526552665267526852695270527152725273527452755276527752785279528052815282528352845285528652875288528952905291529252935294529552965297529852995300530153025303530453055306530753085309531053115312531353145315531653175318531953205321532253235324532553265327532853295330533153325333533453355336533753385339534053415342534353445345534653475348534953505351535253535354535553565357535853595360536153625363536453655366536753685369537053715372537353745375537653775378537953805381538253835384538553865387538853895390539153925393539453955396539753985399540054015402540354045405540654075408540954105411541254135414541554165417541854195420542154225423542454255426542754285429543054315432543354345435543654375438543954405441544254435444544554465447544854495450545154525453545454555456545754585459546054615462546354645465546654675468546954705471547254735474547554765477547854795480548154825483548454855486548754885489549054915492549354945495549654975498549955005501550255035504550555065507550855095510551155125513551455155516551755185519552055215522552355245525552655275528552955305531553255335534553555365537553855395540554155425543554455455546554755485549555055515552555355545555555655575558555955605561556255635564556555665567556855695570557155725573557455755576557755785579558055815582558355845585558655875588558955905591559255935594559555965597559855995600560156025603560456055606560756085609561056115612561356145615561656175618561956205621562256235624562556265627562856295630563156325633563456355636563756385639564056415642564356445645564656475648564956505651565256535654565556565657565856595660566156625663566456655666566756685669567056715672567356745675567656775678567956805681568256835684568556865687568856895690569156925693569456955696569756985699570057015702570357045705570657075708570957105711571257135714571557165717571857195720572157225723572457255726572757285729573057315732573357345735573657375738573957405741574257435744574557465747574857495750575157525753575457555756575757585759576057615762576357645765576657675768576957705771577257735774577557765777577857795780578157825783578457855786578757885789579057915792579357945795579657975798579958005801580258035804580558065807580858095810581158125813581458155816581758185819582058215822582358245825582658275828582958305831583258335834583558365837583858395840584158425843584458455846584758485849585058515852585358545855585658575858585958605861586258635864586558665867586858695870587158725873587458755876587758785879588058815882588358845885588658875888588958905891589258935894589558965897589858995900590159025903590459055906590759085909591059115912591359145915591659175918591959205921592259235924592559265927592859295930593159325933593459355936593759385939594059415942594359445945594659475948594959505951595259535954595559565957595859595960596159625963596459655966596759685969597059715972597359745975597659775978597959805981598259835984598559865987598859895990599159925993599459955996599759985999600060016002600360046005600660076008600960106011601260136014601560166017601860196020602160226023602460256026602760286029603060316032603360346035603660376038603960406041604260436044604560466047604860496050605160526053605460556056605760586059606060616062606360646065606660676068606960706071607260736074607560766077607860796080608160826083608460856086608760886089609060916092609360946095609660976098609961006101610261036104610561066107610861096110611161126113611461156116611761186119612061216122612361246125612661276128612961306131613261336134613561366137613861396140614161426143614461456146614761486149615061516152615361546155615661576158615961606161616261636164616561666167616861696170617161726173617461756176617761786179618061816182618361846185618661876188618961906191619261936194619561966197619861996200620162026203620462056206620762086209621062116212621362146215621662176218621962206221622262236224622562266227622862296230623162326233623462356236623762386239624062416242624362446245624662476248624962506251625262536254625562566257625862596260626162626263626462656266626762686269627062716272627362746275627662776278627962806281628262836284628562866287628862896290629162926293629462956296629762986299630063016302630363046305630663076308630963106311631263136314631563166317631863196320632163226323632463256326632763286329633063316332633363346335633663376338633963406341634263436344634563466347634863496350635163526353635463556356635763586359636063616362636363646365636663676368636963706371637263736374637563766377637863796380638163826383638463856386638763886389639063916392639363946395639663976398639964006401640264036404640564066407640864096410641164126413641464156416641764186419642064216422642364246425642664276428642964306431643264336434643564366437643864396440644164426443644464456446644764486449645064516452645364546455645664576458645964606461646264636464646564666467646864696470647164726473647464756476647764786479648064816482648364846485648664876488648964906491649264936494649564966497649864996500650165026503650465056506650765086509651065116512651365146515651665176518651965206521652265236524652565266527652865296530653165326533653465356536653765386539654065416542654365446545654665476548654965506551655265536554655565566557655865596560656165626563656465656566656765686569657065716572657365746575657665776578657965806581658265836584658565866587658865896590659165926593659465956596659765986599660066016602660366046605660666076608660966106611661266136614661566166617661866196620662166226623662466256626662766286629663066316632663366346635663666376638663966406641664266436644664566466647664866496650665166526653665466556656665766586659666066616662666366646665666666676668666966706671667266736674667566766677667866796680668166826683668466856686668766886689669066916692669366946695669666976698669967006701670267036704670567066707670867096710671167126713671467156716671767186719672067216722672367246725672667276728672967306731673267336734673567366737673867396740674167426743674467456746674767486749675067516752675367546755675667576758675967606761676267636764676567666767676867696770677167726773677467756776677767786779678067816782678367846785678667876788678967906791679267936794679567966797679867996800680168026803680468056806680768086809681068116812681368146815681668176818681968206821682268236824682568266827682868296830683168326833683468356836683768386839684068416842684368446845684668476848684968506851685268536854685568566857685868596860686168626863686468656866686768686869687068716872687368746875687668776878687968806881688268836884688568866887688868896890689168926893689468956896689768986899690069016902690369046905690669076908690969106911691269136914691569166917691869196920692169226923692469256926692769286929693069316932693369346935693669376938693969406941694269436944694569466947694869496950695169526953695469556956695769586959696069616962696369646965696669676968696969706971697269736974697569766977697869796980698169826983698469856986698769886989699069916992699369946995699669976998699970007001700270037004700570067007700870097010701170127013701470157016701770187019702070217022702370247025702670277028702970307031703270337034703570367037703870397040704170427043704470457046704770487049705070517052705370547055705670577058705970607061706270637064706570667067706870697070707170727073707470757076707770787079708070817082708370847085708670877088708970907091709270937094709570967097709870997100710171027103710471057106710771087109711071117112711371147115711671177118711971207121712271237124712571267127712871297130713171327133713471357136713771387139714071417142714371447145714671477148714971507151715271537154715571567157715871597160716171627163716471657166716771687169717071717172717371747175717671777178717971807181718271837184718571867187718871897190719171927193719471957196719771987199720072017202720372047205720672077208720972107211721272137214721572167217721872197220722172227223722472257226722772287229723072317232723372347235723672377238723972407241724272437244724572467247724872497250725172527253725472557256725772587259726072617262726372647265726672677268726972707271727272737274727572767277727872797280728172827283728472857286728772887289729072917292729372947295729672977298729973007301730273037304730573067307730873097310731173127313731473157316731773187319732073217322732373247325732673277328732973307331733273337334733573367337733873397340734173427343734473457346734773487349735073517352735373547355735673577358735973607361736273637364736573667367736873697370737173727373737473757376737773787379738073817382738373847385738673877388738973907391739273937394739573967397739873997400740174027403740474057406740774087409741074117412741374147415741674177418741974207421742274237424742574267427742874297430743174327433743474357436743774387439744074417442744374447445744674477448744974507451745274537454745574567457745874597460746174627463746474657466746774687469747074717472747374747475747674777478747974807481748274837484748574867487748874897490749174927493749474957496749774987499750075017502750375047505750675077508750975107511751275137514751575167517751875197520752175227523752475257526752775287529753075317532753375347535753675377538753975407541754275437544754575467547754875497550755175527553755475557556755775587559756075617562756375647565756675677568756975707571757275737574757575767577757875797580758175827583758475857586758775887589759075917592759375947595759675977598759976007601760276037604760576067607760876097610761176127613761476157616761776187619762076217622762376247625762676277628762976307631763276337634763576367637763876397640764176427643764476457646764776487649765076517652765376547655765676577658765976607661766276637664766576667667766876697670767176727673767476757676767776787679768076817682768376847685768676877688768976907691769276937694769576967697769876997700770177027703770477057706770777087709771077117712771377147715771677177718771977207721772277237724772577267727772877297730773177327733773477357736773777387739774077417742774377447745774677477748774977507751775277537754775577567757775877597760776177627763776477657766776777687769777077717772777377747775777677777778777977807781778277837784778577867787778877897790779177927793779477957796779777987799780078017802780378047805780678077808780978107811781278137814781578167817781878197820782178227823782478257826782778287829783078317832783378347835783678377838783978407841784278437844784578467847784878497850785178527853785478557856785778587859786078617862786378647865786678677868786978707871787278737874787578767877787878797880788178827883788478857886788778887889789078917892789378947895789678977898789979007901790279037904790579067907790879097910791179127913791479157916791779187919792079217922792379247925792679277928792979307931793279337934793579367937793879397940794179427943794479457946794779487949795079517952795379547955795679577958795979607961796279637964796579667967796879697970797179727973797479757976797779787979798079817982798379847985798679877988798979907991799279937994799579967997799879998000800180028003800480058006800780088009801080118012801380148015801680178018801980208021802280238024802580268027802880298030803180328033803480358036803780388039804080418042804380448045804680478048804980508051805280538054805580568057805880598060806180628063806480658066806780688069807080718072807380748075807680778078807980808081808280838084808580868087808880898090809180928093809480958096809780988099810081018102810381048105810681078108810981108111811281138114811581168117811881198120812181228123812481258126812781288129813081318132813381348135813681378138813981408141814281438144814581468147814881498150815181528153815481558156815781588159816081618162816381648165816681678168816981708171817281738174817581768177817881798180818181828183818481858186818781888189819081918192819381948195819681978198819982008201820282038204820582068207820882098210821182128213821482158216821782188219822082218222822382248225822682278228822982308231823282338234823582368237823882398240824182428243824482458246824782488249825082518252825382548255825682578258825982608261826282638264826582668267826882698270827182728273827482758276827782788279828082818282828382848285828682878288828982908291829282938294829582968297829882998300830183028303830483058306830783088309831083118312831383148315831683178318831983208321832283238324832583268327832883298330833183328333833483358336833783388339834083418342834383448345834683478348834983508351835283538354835583568357835883598360836183628363836483658366836783688369837083718372837383748375837683778378837983808381838283838384838583868387838883898390839183928393839483958396839783988399840084018402840384048405840684078408840984108411841284138414841584168417841884198420842184228423842484258426842784288429843084318432843384348435843684378438843984408441844284438444844584468447844884498450845184528453845484558456845784588459846084618462846384648465846684678468846984708471847284738474847584768477847884798480848184828483848484858486848784888489849084918492849384948495849684978498849985008501850285038504850585068507850885098510851185128513851485158516851785188519852085218522852385248525852685278528852985308531853285338534853585368537853885398540854185428543854485458546854785488549855085518552855385548555855685578558855985608561856285638564856585668567856885698570857185728573857485758576857785788579858085818582858385848585858685878588858985908591859285938594859585968597859885998600860186028603860486058606860786088609861086118612861386148615861686178618861986208621862286238624862586268627862886298630863186328633863486358636863786388639864086418642864386448645864686478648864986508651865286538654865586568657865886598660866186628663866486658666866786688669867086718672867386748675867686778678867986808681868286838684868586868687868886898690869186928693869486958696869786988699870087018702870387048705870687078708870987108711871287138714871587168717871887198720872187228723872487258726872787288729873087318732873387348735873687378738873987408741874287438744874587468747874887498750875187528753875487558756875787588759876087618762876387648765876687678768876987708771877287738774877587768777877887798780878187828783878487858786878787888789879087918792879387948795879687978798879988008801880288038804880588068807880888098810881188128813881488158816881788188819882088218822882388248825882688278828882988308831883288338834883588368837883888398840884188428843884488458846884788488849885088518852885388548855885688578858885988608861886288638864886588668867886888698870887188728873887488758876887788788879888088818882888388848885888688878888888988908891889288938894889588968897889888998900890189028903890489058906890789088909891089118912891389148915891689178918891989208921892289238924892589268927892889298930893189328933893489358936893789388939894089418942894389448945894689478948894989508951895289538954895589568957895889598960896189628963896489658966896789688969897089718972897389748975897689778978897989808981898289838984898589868987898889898990899189928993899489958996899789988999900090019002900390049005900690079008900990109011901290139014901590169017901890199020902190229023902490259026902790289029903090319032903390349035903690379038903990409041904290439044904590469047904890499050905190529053905490559056905790589059906090619062906390649065906690679068906990709071907290739074907590769077907890799080908190829083908490859086908790889089909090919092909390949095909690979098909991009101910291039104910591069107910891099110911191129113911491159116911791189119912091219122912391249125912691279128912991309131913291339134913591369137913891399140914191429143914491459146914791489149915091519152915391549155915691579158915991609161916291639164916591669167916891699170917191729173917491759176917791789179918091819182918391849185918691879188918991909191919291939194919591969197919891999200920192029203920492059206920792089209921092119212921392149215921692179218921992209221922292239224922592269227922892299230923192329233923492359236923792389239924092419242924392449245924692479248924992509251925292539254925592569257925892599260926192629263926492659266926792689269927092719272927392749275927692779278927992809281928292839284928592869287928892899290929192929293929492959296929792989299930093019302930393049305930693079308930993109311931293139314931593169317931893199320932193229323932493259326932793289329933093319332933393349335933693379338933993409341934293439344934593469347934893499350935193529353935493559356935793589359936093619362936393649365936693679368936993709371937293739374937593769377937893799380938193829383938493859386938793889389939093919392939393949395939693979398939994009401940294039404940594069407940894099410941194129413941494159416941794189419942094219422942394249425942694279428942994309431943294339434943594369437943894399440944194429443944494459446944794489449945094519452945394549455945694579458945994609461946294639464946594669467946894699470947194729473947494759476947794789479948094819482948394849485948694879488948994909491949294939494949594969497949894999500950195029503950495059506950795089509951095119512951395149515951695179518951995209521952295239524952595269527952895299530953195329533953495359536953795389539954095419542954395449545954695479548954995509551955295539554955595569557955895599560956195629563956495659566956795689569957095719572957395749575957695779578957995809581958295839584958595869587958895899590959195929593959495959596959795989599960096019602960396049605960696079608960996109611961296139614961596169617961896199620962196229623962496259626962796289629963096319632963396349635963696379638963996409641964296439644964596469647964896499650965196529653965496559656965796589659966096619662966396649665966696679668966996709671967296739674967596769677967896799680968196829683968496859686968796889689969096919692969396949695969696979698969997009701970297039704970597069707970897099710971197129713971497159716971797189719972097219722972397249725972697279728972997309731973297339734973597369737973897399740974197429743974497459746974797489749975097519752975397549755975697579758975997609761976297639764976597669767976897699770977197729773977497759776977797789779978097819782978397849785978697879788978997909791979297939794979597969797979897999800980198029803980498059806980798089809981098119812981398149815981698179818981998209821982298239824982598269827982898299830983198329833983498359836983798389839984098419842984398449845984698479848984998509851985298539854985598569857985898599860986198629863986498659866986798689869987098719872987398749875987698779878987998809881988298839884988598869887988898899890989198929893989498959896989798989899990099019902990399049905990699079908990999109911991299139914991599169917991899199920992199229923992499259926992799289929993099319932993399349935993699379938993999409941994299439944994599469947994899499950995199529953995499559956995799589959996099619962996399649965996699679968996999709971997299739974997599769977997899799980998199829983998499859986998799889989999099919992999399949995999699979998999910000100011000210003100041000510006100071000810009100101001110012100131001410015100161001710018100191002010021100221002310024100251002610027100281002910030100311003210033100341003510036100371003810039100401004110042100431004410045100461004710048100491005010051100521005310054100551005610057100581005910060100611006210063100641006510066100671006810069100701007110072100731007410075100761007710078100791008010081100821008310084100851008610087100881008910090100911009210093100941009510096100971009810099101001010110102101031010410105101061010710108101091011010111101121011310114101151011610117101181011910120101211012210123101241012510126101271012810129101301013110132101331013410135101361013710138101391014010141101421014310144101451014610147101481014910150101511015210153101541015510156101571015810159101601016110162101631016410165101661016710168101691017010171101721017310174101751017610177101781017910180101811018210183101841018510186101871018810189101901019110192101931019410195101961019710198101991020010201102021020310204102051020610207102081020910210102111021210213102141021510216102171021810219102201022110222102231022410225102261022710228102291023010231102321023310234102351023610237102381023910240102411024210243102441024510246102471024810249102501025110252102531025410255102561025710258102591026010261102621026310264102651026610267102681026910270102711027210273102741027510276102771027810279102801028110282102831028410285102861028710288102891029010291102921029310294102951029610297102981029910300103011030210303103041030510306103071030810309103101031110312103131031410315103161031710318103191032010321103221032310324103251032610327103281032910330103311033210333103341033510336103371033810339103401034110342103431034410345103461034710348103491035010351103521035310354103551035610357103581035910360103611036210363103641036510366103671036810369103701037110372103731037410375103761037710378103791038010381103821038310384103851038610387103881038910390103911039210393103941039510396103971039810399104001040110402104031040410405104061040710408104091041010411104121041310414104151041610417104181041910420104211042210423104241042510426104271042810429104301043110432104331043410435104361043710438104391044010441104421044310444104451044610447104481044910450104511045210453104541045510456104571045810459104601046110462104631046410465104661046710468104691047010471104721047310474104751047610477104781047910480104811048210483104841048510486104871048810489104901049110492104931049410495104961049710498104991050010501105021050310504105051050610507105081050910510105111051210513105141051510516105171051810519105201052110522105231052410525105261052710528105291053010531105321053310534105351053610537105381053910540105411054210543105441054510546105471054810549105501055110552105531055410555105561055710558105591056010561105621056310564105651056610567105681056910570105711057210573105741057510576105771057810579105801058110582105831058410585105861058710588105891059010591105921059310594105951059610597105981059910600106011060210603106041060510606106071060810609106101061110612106131061410615106161061710618106191062010621106221062310624106251062610627106281062910630106311063210633106341063510636106371063810639106401064110642106431064410645106461064710648106491065010651106521065310654106551065610657106581065910660106611066210663106641066510666106671066810669106701067110672106731067410675106761067710678106791068010681106821068310684106851068610687106881068910690106911069210693106941069510696106971069810699107001070110702107031070410705107061070710708107091071010711107121071310714107151071610717107181071910720107211072210723107241072510726107271072810729107301073110732107331073410735107361073710738107391074010741107421074310744107451074610747107481074910750107511075210753107541075510756107571075810759107601076110762107631076410765107661076710768107691077010771107721077310774107751077610777107781077910780107811078210783107841078510786107871078810789107901079110792107931079410795107961079710798107991080010801108021080310804108051080610807108081080910810108111081210813108141081510816108171081810819108201082110822108231082410825108261082710828108291083010831108321083310834108351083610837108381083910840108411084210843108441084510846108471084810849108501085110852108531085410855108561085710858108591086010861108621086310864108651086610867108681086910870108711087210873108741087510876108771087810879108801088110882108831088410885108861088710888108891089010891108921089310894108951089610897108981089910900109011090210903109041090510906109071090810909109101091110912109131091410915109161091710918109191092010921109221092310924109251092610927109281092910930109311093210933109341093510936109371093810939109401094110942109431094410945109461094710948109491095010951109521095310954109551095610957109581095910960109611096210963109641096510966109671096810969109701097110972109731097410975109761097710978109791098010981109821098310984109851098610987109881098910990109911099210993109941099510996109971099810999110001100111002110031100411005110061100711008110091101011011110121101311014110151101611017110181101911020110211102211023110241102511026110271102811029110301103111032110331103411035110361103711038110391104011041110421104311044110451104611047110481104911050110511105211053110541105511056110571105811059110601106111062110631106411065110661106711068110691107011071110721107311074110751107611077110781107911080110811108211083110841108511086110871108811089110901109111092110931109411095110961109711098110991110011101111021110311104111051110611107111081110911110111111111211113111141111511116111171111811119111201112111122111231112411125111261112711128111291113011131111321113311134111351113611137111381113911140111411114211143111441114511146111471114811149111501115111152111531115411155111561115711158111591116011161111621116311164111651116611167111681116911170111711117211173111741117511176111771117811179111801118111182111831118411185111861118711188111891119011191111921119311194111951119611197111981119911200112011120211203112041120511206112071120811209112101121111212112131121411215112161121711218112191122011221112221122311224112251122611227112281122911230112311123211233112341123511236112371123811239112401124111242112431124411245112461124711248112491125011251112521125311254112551125611257112581125911260112611126211263112641126511266112671126811269112701127111272112731127411275112761127711278112791128011281112821128311284112851128611287112881128911290112911129211293112941129511296112971129811299113001130111302113031130411305113061130711308113091131011311113121131311314113151131611317113181131911320113211132211323113241132511326113271132811329113301133111332113331133411335113361133711338113391134011341113421134311344113451134611347113481134911350113511135211353113541135511356113571135811359113601136111362113631136411365113661136711368113691137011371113721137311374113751137611377113781137911380113811138211383113841138511386113871138811389113901139111392113931139411395113961139711398113991140011401114021140311404114051140611407114081140911410114111141211413114141141511416114171141811419114201142111422114231142411425114261142711428114291143011431114321143311434114351143611437114381143911440114411144211443114441144511446114471144811449114501145111452114531145411455114561145711458114591146011461114621146311464114651146611467114681146911470114711147211473114741147511476114771147811479114801148111482114831148411485114861148711488114891149011491114921149311494114951149611497114981149911500115011150211503115041150511506115071150811509115101151111512115131151411515115161151711518115191152011521115221152311524115251152611527115281152911530115311153211533115341153511536115371153811539115401154111542115431154411545115461154711548115491155011551115521155311554115551155611557115581155911560115611156211563115641156511566115671156811569115701157111572115731157411575115761157711578115791158011581115821158311584115851158611587115881158911590115911159211593115941159511596115971159811599116001160111602116031160411605116061160711608116091161011611116121161311614116151161611617116181161911620116211162211623116241162511626116271162811629116301163111632116331163411635116361163711638116391164011641116421164311644116451164611647116481164911650116511165211653116541165511656116571165811659116601166111662116631166411665116661166711668116691167011671116721167311674116751167611677116781167911680116811168211683116841168511686116871168811689116901169111692116931169411695116961169711698116991170011701117021170311704117051170611707117081170911710117111171211713117141171511716117171171811719117201172111722117231172411725117261172711728117291173011731117321173311734117351173611737117381173911740117411174211743117441174511746117471174811749117501175111752117531175411755117561175711758117591176011761117621176311764117651176611767117681176911770117711177211773117741177511776117771177811779117801178111782117831178411785117861178711788117891179011791117921179311794117951179611797117981179911800118011180211803118041180511806118071180811809118101181111812118131181411815118161181711818118191182011821118221182311824118251182611827118281182911830118311183211833118341183511836118371183811839118401184111842118431184411845118461184711848118491185011851118521185311854118551185611857118581185911860118611186211863118641186511866118671186811869118701187111872118731187411875118761187711878118791188011881118821188311884118851188611887118881188911890118911189211893118941189511896118971189811899119001190111902119031190411905119061190711908119091191011911119121191311914119151191611917119181191911920119211192211923119241192511926119271192811929119301193111932119331193411935119361193711938119391194011941119421194311944119451194611947119481194911950119511195211953119541195511956119571195811959119601196111962119631196411965119661196711968119691197011971119721197311974119751197611977119781197911980119811198211983119841198511986119871198811989119901199111992119931199411995119961199711998119991200012001120021200312004120051200612007120081200912010120111201212013120141201512016120171201812019120201202112022120231202412025120261202712028120291203012031120321203312034120351203612037120381203912040120411204212043120441204512046120471204812049120501205112052120531205412055120561205712058120591206012061120621206312064120651206612067120681206912070120711207212073120741207512076120771207812079120801208112082120831208412085120861208712088120891209012091120921209312094120951209612097120981209912100121011210212103121041210512106121071210812109121101211112112121131211412115121161211712118121191212012121121221212312124121251212612127121281212912130121311213212133121341213512136121371213812139121401214112142121431214412145121461214712148121491215012151121521215312154121551215612157121581215912160121611216212163121641216512166121671216812169121701217112172121731217412175121761217712178121791218012181121821218312184121851218612187121881218912190121911219212193121941219512196121971219812199122001220112202122031220412205122061220712208122091221012211122121221312214122151221612217122181221912220122211222212223122241222512226122271222812229122301223112232122331223412235122361223712238122391224012241122421224312244122451224612247122481224912250122511225212253122541225512256122571225812259122601226112262122631226412265122661226712268122691227012271122721227312274122751227612277122781227912280122811228212283122841228512286122871228812289122901229112292122931229412295122961229712298122991230012301123021230312304123051230612307123081230912310123111231212313123141231512316123171231812319123201232112322123231232412325123261232712328123291233012331123321233312334123351233612337123381233912340123411234212343123441234512346123471234812349123501235112352123531235412355123561235712358123591236012361123621236312364123651236612367123681236912370123711237212373123741237512376123771237812379123801238112382123831238412385123861238712388123891239012391123921239312394123951239612397123981239912400124011240212403124041240512406124071240812409124101241112412124131241412415124161241712418124191242012421124221242312424124251242612427124281242912430124311243212433124341243512436124371243812439124401244112442124431244412445124461244712448124491245012451124521245312454124551245612457124581245912460124611246212463124641246512466124671246812469124701247112472124731247412475124761247712478124791248012481124821248312484124851248612487124881248912490124911249212493124941249512496124971249812499125001250112502125031250412505125061250712508125091251012511125121251312514125151251612517125181251912520125211252212523125241252512526125271252812529125301253112532125331253412535125361253712538125391254012541125421254312544125451254612547125481254912550125511255212553125541255512556125571255812559125601256112562125631256412565125661256712568125691257012571125721257312574125751257612577125781257912580125811258212583125841258512586125871258812589125901259112592125931259412595125961259712598125991260012601126021260312604126051260612607126081260912610126111261212613126141261512616126171261812619126201262112622126231262412625126261262712628126291263012631126321263312634126351263612637126381263912640126411264212643126441264512646126471264812649126501265112652126531265412655126561265712658126591266012661126621266312664126651266612667126681266912670126711267212673126741267512676126771267812679126801268112682126831268412685126861268712688126891269012691126921269312694126951269612697126981269912700127011270212703127041270512706127071270812709127101271112712127131271412715127161271712718127191272012721127221272312724127251272612727127281272912730127311273212733127341273512736127371273812739127401274112742127431274412745127461274712748127491275012751127521275312754127551275612757127581275912760127611276212763127641276512766127671276812769127701277112772127731277412775127761277712778127791278012781127821278312784127851278612787127881278912790127911279212793127941279512796127971279812799128001280112802128031280412805128061280712808128091281012811128121281312814128151281612817128181281912820128211282212823128241282512826128271282812829128301283112832128331283412835128361283712838128391284012841128421284312844128451284612847128481284912850128511285212853128541285512856128571285812859128601286112862128631286412865128661286712868128691287012871128721287312874128751287612877128781287912880128811288212883128841288512886128871288812889128901289112892128931289412895128961289712898128991290012901129021290312904129051290612907129081290912910129111291212913129141291512916129171291812919129201292112922129231292412925129261292712928129291293012931129321293312934129351293612937129381293912940129411294212943129441294512946129471294812949129501295112952129531295412955129561295712958129591296012961129621296312964129651296612967129681296912970129711297212973129741297512976129771297812979129801298112982129831298412985129861298712988129891299012991129921299312994129951299612997129981299913000130011300213003130041300513006130071300813009130101301113012130131301413015130161301713018130191302013021130221302313024130251302613027130281302913030130311303213033130341303513036130371303813039130401304113042130431304413045130461304713048130491305013051130521305313054130551305613057130581305913060130611306213063130641306513066130671306813069130701307113072130731307413075130761307713078130791308013081130821308313084130851308613087130881308913090130911309213093130941309513096130971309813099131001310113102131031310413105131061310713108131091311013111131121311313114131151311613117131181311913120131211312213123131241312513126131271312813129131301313113132131331313413135131361313713138131391314013141131421314313144131451314613147131481314913150131511315213153131541315513156131571315813159131601316113162131631316413165131661316713168131691317013171131721317313174131751317613177131781317913180131811318213183131841318513186131871318813189131901319113192131931319413195131961319713198131991320013201132021320313204132051320613207132081320913210132111321213213132141321513216132171321813219132201322113222132231322413225132261322713228132291323013231132321323313234132351323613237132381323913240132411324213243132441324513246132471324813249132501325113252132531325413255132561325713258132591326013261132621326313264132651326613267132681326913270132711327213273132741327513276132771327813279132801328113282132831328413285132861328713288132891329013291132921329313294132951329613297132981329913300133011330213303133041330513306133071330813309133101331113312133131331413315133161331713318133191332013321133221332313324133251332613327133281332913330133311333213333133341333513336133371333813339133401334113342133431334413345133461334713348133491335013351133521335313354133551335613357133581335913360133611336213363133641336513366133671336813369133701337113372133731337413375133761337713378133791338013381133821338313384133851338613387133881338913390133911339213393133941339513396133971339813399134001340113402134031340413405134061340713408134091341013411134121341313414134151341613417134181341913420134211342213423134241342513426134271342813429134301343113432134331343413435134361343713438134391344013441134421344313444134451344613447134481344913450134511345213453134541345513456134571345813459134601346113462134631346413465134661346713468134691347013471134721347313474134751347613477134781347913480134811348213483134841348513486134871348813489134901349113492134931349413495134961349713498134991350013501135021350313504135051350613507135081350913510135111351213513135141351513516135171351813519135201352113522135231352413525135261352713528135291353013531135321353313534135351353613537135381353913540135411354213543135441354513546135471354813549135501355113552135531355413555135561355713558135591356013561135621356313564135651356613567135681356913570135711357213573135741357513576135771357813579135801358113582135831358413585135861358713588135891359013591135921359313594135951359613597135981359913600136011360213603136041360513606136071360813609136101361113612136131361413615136161361713618136191362013621136221362313624136251362613627136281362913630136311363213633136341363513636136371363813639136401364113642136431364413645136461364713648136491365013651136521365313654136551365613657136581365913660136611366213663136641366513666136671366813669136701367113672136731367413675136761367713678136791368013681136821368313684136851368613687136881368913690136911369213693136941369513696136971369813699137001370113702137031370413705137061370713708137091371013711137121371313714137151371613717137181371913720137211372213723137241372513726137271372813729137301373113732137331373413735137361373713738137391374013741137421374313744137451374613747137481374913750137511375213753137541375513756137571375813759137601376113762137631376413765137661376713768137691377013771137721377313774137751377613777137781377913780137811378213783137841378513786137871378813789137901379113792137931379413795137961379713798137991380013801138021380313804138051380613807138081380913810138111381213813138141381513816138171381813819138201382113822138231382413825138261382713828138291383013831138321383313834138351383613837138381383913840138411384213843138441384513846138471384813849138501385113852138531385413855138561385713858138591386013861138621386313864138651386613867138681386913870138711387213873138741387513876138771387813879138801388113882138831388413885138861388713888138891389013891138921389313894138951389613897138981389913900139011390213903139041390513906139071390813909139101391113912139131391413915139161391713918139191392013921139221392313924139251392613927139281392913930139311393213933139341393513936139371393813939139401394113942139431394413945139461394713948139491395013951139521395313954139551395613957139581395913960139611396213963139641396513966139671396813969139701397113972139731397413975139761397713978139791398013981139821398313984139851398613987139881398913990139911399213993139941399513996139971399813999140001400114002140031400414005140061400714008140091401014011140121401314014140151401614017140181401914020140211402214023140241402514026140271402814029140301403114032140331403414035140361403714038140391404014041140421404314044140451404614047140481404914050140511405214053140541405514056140571405814059140601406114062140631406414065140661406714068140691407014071140721407314074140751407614077140781407914080140811408214083140841408514086140871408814089140901409114092140931409414095140961409714098140991410014101141021410314104141051410614107141081410914110141111411214113141141411514116141171411814119141201412114122141231412414125141261412714128141291413014131141321413314134141351413614137141381413914140141411414214143141441414514146141471414814149141501415114152141531415414155141561415714158141591416014161141621416314164141651416614167141681416914170141711417214173141741417514176141771417814179141801418114182141831418414185141861418714188141891419014191141921419314194141951419614197141981419914200142011420214203142041420514206142071420814209142101421114212142131421414215142161421714218142191422014221142221422314224142251422614227142281422914230142311423214233142341423514236142371423814239142401424114242142431424414245142461424714248142491425014251142521425314254142551425614257142581425914260142611426214263142641426514266142671426814269142701427114272142731427414275142761427714278142791428014281142821428314284142851428614287142881428914290142911429214293142941429514296142971429814299143001430114302143031430414305143061430714308143091431014311143121431314314143151431614317143181431914320143211432214323143241432514326143271432814329143301433114332143331433414335143361433714338143391434014341143421434314344143451434614347143481434914350143511435214353143541435514356143571435814359143601436114362143631436414365143661436714368143691437014371143721437314374143751437614377143781437914380143811438214383143841438514386143871438814389143901439114392143931439414395143961439714398143991440014401144021440314404144051440614407144081440914410144111441214413144141441514416144171441814419144201442114422144231442414425144261442714428144291443014431144321443314434144351443614437144381443914440144411444214443144441444514446144471444814449144501445114452144531445414455144561445714458144591446014461144621446314464144651446614467144681446914470144711447214473144741447514476144771447814479144801448114482144831448414485144861448714488144891449014491144921449314494144951449614497144981449914500145011450214503145041450514506145071450814509145101451114512145131451414515145161451714518145191452014521145221452314524145251452614527145281452914530145311453214533145341453514536145371453814539145401454114542145431454414545145461454714548145491455014551145521455314554145551455614557145581455914560145611456214563145641456514566145671456814569145701457114572145731457414575145761457714578145791458014581145821458314584145851458614587145881458914590145911459214593145941459514596145971459814599146001460114602146031460414605146061460714608146091461014611146121461314614146151461614617146181461914620146211462214623146241462514626146271462814629146301463114632146331463414635146361463714638146391464014641146421464314644146451464614647146481464914650146511465214653146541465514656146571465814659146601466114662146631466414665146661466714668146691467014671146721467314674146751467614677146781467914680146811468214683146841468514686146871468814689146901469114692146931469414695146961469714698146991470014701147021470314704147051470614707147081470914710147111471214713147141471514716147171471814719147201472114722147231472414725147261472714728147291473014731147321473314734147351473614737147381473914740147411474214743147441474514746147471474814749147501475114752147531475414755147561475714758147591476014761147621476314764147651476614767147681476914770147711477214773147741477514776147771477814779147801478114782147831478414785147861478714788147891479014791147921479314794147951479614797147981479914800148011480214803148041480514806148071480814809148101481114812148131481414815148161481714818148191482014821148221482314824148251482614827148281482914830148311483214833148341483514836148371483814839148401484114842148431484414845148461484714848148491485014851148521485314854148551485614857148581485914860148611486214863148641486514866148671486814869148701487114872148731487414875148761487714878148791488014881148821488314884148851488614887148881488914890148911489214893148941489514896148971489814899149001490114902149031490414905149061490714908149091491014911149121491314914149151491614917149181491914920149211492214923149241492514926149271492814929149301493114932149331493414935149361493714938149391494014941149421494314944149451494614947149481494914950149511495214953149541495514956149571495814959149601496114962149631496414965149661496714968149691497014971149721497314974149751497614977149781497914980149811498214983149841498514986149871498814989149901499114992149931499414995149961499714998149991500015001150021500315004150051500615007150081500915010150111501215013150141501515016150171501815019150201502115022150231502415025150261502715028150291503015031150321503315034150351503615037150381503915040150411504215043150441504515046150471504815049150501505115052150531505415055150561505715058150591506015061150621506315064150651506615067150681506915070150711507215073150741507515076150771507815079150801508115082150831508415085150861508715088150891509015091150921509315094150951509615097150981509915100151011510215103151041510515106151071510815109151101511115112151131511415115151161511715118151191512015121151221512315124151251512615127151281512915130151311513215133151341513515136151371513815139151401514115142151431514415145151461514715148151491515015151151521515315154151551515615157151581515915160151611516215163151641516515166151671516815169151701517115172151731517415175151761517715178151791518015181151821518315184151851518615187151881518915190151911519215193151941519515196151971519815199152001520115202152031520415205152061520715208152091521015211152121521315214152151521615217152181521915220152211522215223152241522515226152271522815229152301523115232152331523415235152361523715238152391524015241152421524315244152451524615247152481524915250152511525215253152541525515256152571525815259152601526115262152631526415265152661526715268152691527015271152721527315274152751527615277152781527915280152811528215283152841528515286152871528815289152901529115292152931529415295152961529715298152991530015301153021530315304153051530615307153081530915310153111531215313153141531515316153171531815319153201532115322153231532415325153261532715328153291533015331153321533315334153351533615337153381533915340153411534215343153441534515346153471534815349153501535115352153531535415355153561535715358153591536015361153621536315364153651536615367153681536915370153711537215373153741537515376153771537815379153801538115382153831538415385153861538715388153891539015391153921539315394153951539615397153981539915400154011540215403154041540515406154071540815409154101541115412154131541415415154161541715418154191542015421154221542315424154251542615427154281542915430154311543215433154341543515436154371543815439154401544115442154431544415445154461544715448154491545015451154521545315454154551545615457154581545915460154611546215463154641546515466154671546815469154701547115472154731547415475154761547715478154791548015481154821548315484154851548615487154881548915490154911549215493154941549515496154971549815499155001550115502155031550415505155061550715508155091551015511155121551315514155151551615517155181551915520155211552215523155241552515526155271552815529155301553115532155331553415535155361553715538155391554015541155421554315544155451554615547155481554915550155511555215553155541555515556155571555815559155601556115562155631556415565155661556715568155691557015571155721557315574155751557615577155781557915580155811558215583155841558515586155871558815589155901559115592155931559415595155961559715598155991560015601156021560315604156051560615607156081560915610156111561215613156141561515616156171561815619156201562115622156231562415625156261562715628156291563015631156321563315634156351563615637156381563915640156411564215643156441564515646156471564815649156501565115652156531565415655156561565715658156591566015661156621566315664156651566615667156681566915670156711567215673156741567515676156771567815679156801568115682156831568415685156861568715688156891569015691156921569315694156951569615697156981569915700157011570215703157041570515706157071570815709157101571115712157131571415715157161571715718157191572015721157221572315724157251572615727157281572915730157311573215733157341573515736157371573815739157401574115742157431574415745157461574715748157491575015751157521575315754157551575615757157581575915760157611576215763157641576515766157671576815769157701577115772157731577415775157761577715778157791578015781157821578315784157851578615787157881578915790157911579215793157941579515796157971579815799158001580115802158031580415805158061580715808158091581015811158121581315814158151581615817158181581915820158211582215823158241582515826158271582815829158301583115832158331583415835158361583715838158391584015841158421584315844158451584615847158481584915850158511585215853158541585515856158571585815859158601586115862158631586415865158661586715868158691587015871158721587315874158751587615877158781587915880158811588215883158841588515886158871588815889158901589115892158931589415895158961589715898158991590015901159021590315904159051590615907159081590915910159111591215913159141591515916159171591815919159201592115922159231592415925159261592715928159291593015931159321593315934159351593615937159381593915940159411594215943159441594515946159471594815949159501595115952159531595415955159561595715958159591596015961159621596315964159651596615967159681596915970159711597215973159741597515976159771597815979159801598115982159831598415985159861598715988159891599015991159921599315994159951599615997159981599916000160011600216003160041600516006160071600816009160101601116012160131601416015160161601716018160191602016021160221602316024160251602616027160281602916030160311603216033160341603516036160371603816039160401604116042160431604416045160461604716048160491605016051160521605316054160551605616057160581605916060160611606216063160641606516066160671606816069160701607116072160731607416075160761607716078160791608016081160821608316084160851608616087160881608916090160911609216093160941609516096160971609816099161001610116102161031610416105161061610716108161091611016111161121611316114161151611616117161181611916120161211612216123161241612516126161271612816129161301613116132161331613416135161361613716138161391614016141161421614316144161451614616147161481614916150161511615216153161541615516156161571615816159161601616116162161631616416165161661616716168161691617016171161721617316174161751617616177161781617916180161811618216183161841618516186161871618816189161901619116192161931619416195161961619716198161991620016201162021620316204162051620616207162081620916210162111621216213162141621516216162171621816219162201622116222162231622416225162261622716228162291623016231162321623316234162351623616237162381623916240162411624216243162441624516246162471624816249162501625116252162531625416255162561625716258162591626016261162621626316264162651626616267162681626916270162711627216273162741627516276162771627816279162801628116282162831628416285162861628716288162891629016291162921629316294162951629616297162981629916300163011630216303163041630516306163071630816309163101631116312163131631416315163161631716318163191632016321163221632316324163251632616327163281632916330163311633216333163341633516336163371633816339163401634116342163431634416345163461634716348163491635016351163521635316354163551635616357163581635916360163611636216363163641636516366163671636816369163701637116372163731637416375163761637716378163791638016381163821638316384163851638616387163881638916390163911639216393163941639516396163971639816399164001640116402164031640416405164061640716408164091641016411164121641316414164151641616417164181641916420164211642216423164241642516426164271642816429164301643116432164331643416435164361643716438164391644016441164421644316444164451644616447164481644916450164511645216453164541645516456164571645816459164601646116462164631646416465164661646716468164691647016471164721647316474164751647616477164781647916480164811648216483164841648516486164871648816489164901649116492164931649416495164961649716498164991650016501165021650316504165051650616507165081650916510165111651216513165141651516516165171651816519165201652116522165231652416525165261652716528165291653016531165321653316534165351653616537165381653916540165411654216543165441654516546165471654816549165501655116552165531655416555165561655716558165591656016561165621656316564165651656616567165681656916570165711657216573165741657516576165771657816579165801658116582165831658416585165861658716588165891659016591165921659316594165951659616597165981659916600166011660216603166041660516606166071660816609166101661116612166131661416615166161661716618166191662016621166221662316624166251662616627166281662916630166311663216633166341663516636166371663816639166401664116642166431664416645166461664716648166491665016651166521665316654166551665616657166581665916660166611666216663166641666516666166671666816669166701667116672166731667416675166761667716678166791668016681166821668316684166851668616687166881668916690166911669216693166941669516696166971669816699167001670116702167031670416705167061670716708167091671016711167121671316714167151671616717167181671916720167211672216723167241672516726167271672816729167301673116732167331673416735167361673716738167391674016741167421674316744167451674616747167481674916750167511675216753167541675516756167571675816759167601676116762167631676416765167661676716768167691677016771167721677316774167751677616777167781677916780167811678216783167841678516786167871678816789167901679116792167931679416795167961679716798167991680016801168021680316804168051680616807168081680916810168111681216813168141681516816168171681816819168201682116822168231682416825168261682716828168291683016831168321683316834168351683616837168381683916840168411684216843168441684516846168471684816849168501685116852168531685416855168561685716858168591686016861168621686316864168651686616867168681686916870168711687216873168741687516876168771687816879168801688116882168831688416885168861688716888168891689016891168921689316894168951689616897168981689916900169011690216903169041690516906169071690816909169101691116912169131691416915169161691716918169191692016921169221692316924169251692616927169281692916930169311693216933169341693516936169371693816939169401694116942169431694416945169461694716948169491695016951169521695316954169551695616957169581695916960169611696216963169641696516966169671696816969169701697116972169731697416975169761697716978169791698016981169821698316984169851698616987169881698916990169911699216993169941699516996169971699816999170001700117002170031700417005170061700717008170091701017011170121701317014170151701617017170181701917020170211702217023170241702517026170271702817029170301703117032170331703417035170361703717038170391704017041170421704317044170451704617047170481704917050170511705217053170541705517056170571705817059170601706117062170631706417065170661706717068170691707017071170721707317074170751707617077170781707917080170811708217083170841708517086170871708817089170901709117092170931709417095170961709717098170991710017101171021710317104171051710617107171081710917110171111711217113171141711517116171171711817119171201712117122171231712417125171261712717128171291713017131171321713317134171351713617137171381713917140171411714217143171441714517146171471714817149171501715117152171531715417155171561715717158171591716017161171621716317164171651716617167171681716917170171711717217173171741717517176171771717817179171801718117182171831718417185171861718717188171891719017191171921719317194171951719617197171981719917200172011720217203172041720517206172071720817209172101721117212172131721417215172161721717218172191722017221172221722317224172251722617227172281722917230172311723217233172341723517236172371723817239172401724117242172431724417245172461724717248172491725017251172521725317254172551725617257172581725917260172611726217263172641726517266172671726817269172701727117272172731727417275172761727717278172791728017281172821728317284172851728617287172881728917290172911729217293172941729517296172971729817299173001730117302173031730417305173061730717308173091731017311173121731317314173151731617317173181731917320173211732217323173241732517326173271732817329173301733117332173331733417335173361733717338173391734017341173421734317344173451734617347173481734917350173511735217353173541735517356173571735817359173601736117362173631736417365173661736717368173691737017371173721737317374173751737617377173781737917380173811738217383173841738517386173871738817389173901739117392173931739417395173961739717398173991740017401174021740317404174051740617407174081740917410174111741217413174141741517416174171741817419174201742117422174231742417425174261742717428174291743017431174321743317434174351743617437174381743917440174411744217443174441744517446174471744817449174501745117452174531745417455174561745717458174591746017461174621746317464174651746617467174681746917470174711747217473174741747517476174771747817479174801748117482174831748417485174861748717488174891749017491174921749317494174951749617497174981749917500175011750217503175041750517506175071750817509175101751117512175131751417515175161751717518175191752017521175221752317524175251752617527175281752917530175311753217533175341753517536175371753817539175401754117542175431754417545175461754717548175491755017551175521755317554175551755617557175581755917560175611756217563175641756517566175671756817569175701757117572175731757417575175761757717578175791758017581175821758317584175851758617587175881758917590175911759217593175941759517596175971759817599176001760117602176031760417605176061760717608176091761017611176121761317614176151761617617176181761917620176211762217623176241762517626176271762817629176301763117632176331763417635176361763717638176391764017641176421764317644176451764617647176481764917650176511765217653176541765517656176571765817659176601766117662176631766417665176661766717668176691767017671176721767317674176751767617677176781767917680176811768217683176841768517686176871768817689176901769117692176931769417695176961769717698176991770017701177021770317704177051770617707177081770917710177111771217713177141771517716177171771817719177201772117722177231772417725177261772717728177291773017731177321773317734177351773617737177381773917740177411774217743177441774517746177471774817749177501775117752177531775417755177561775717758177591776017761177621776317764177651776617767177681776917770177711777217773177741777517776177771777817779177801778117782177831778417785177861778717788177891779017791177921779317794177951779617797177981779917800178011780217803178041780517806178071780817809178101781117812178131781417815178161781717818178191782017821178221782317824178251782617827178281782917830178311783217833178341783517836178371783817839178401784117842178431784417845178461784717848178491785017851178521785317854178551785617857178581785917860178611786217863178641786517866178671786817869178701787117872178731787417875178761787717878178791788017881178821788317884178851788617887178881788917890178911789217893178941789517896178971789817899179001790117902179031790417905179061790717908179091791017911179121791317914179151791617917179181791917920179211792217923179241792517926179271792817929179301793117932179331793417935179361793717938179391794017941179421794317944179451794617947179481794917950179511795217953179541795517956179571795817959179601796117962179631796417965179661796717968179691797017971179721797317974179751797617977179781797917980179811798217983179841798517986179871798817989179901799117992179931799417995179961799717998179991800018001180021800318004180051800618007180081800918010180111801218013180141801518016180171801818019180201802118022180231802418025180261802718028180291803018031180321803318034180351803618037180381803918040180411804218043180441804518046180471804818049180501805118052180531805418055180561805718058180591806018061180621806318064180651806618067180681806918070180711807218073180741807518076180771807818079180801808118082180831808418085180861808718088180891809018091180921809318094180951809618097180981809918100181011810218103181041810518106181071810818109181101811118112181131811418115181161811718118181191812018121181221812318124181251812618127181281812918130181311813218133181341813518136181371813818139181401814118142181431814418145181461814718148181491815018151181521815318154181551815618157181581815918160181611816218163181641816518166181671816818169181701817118172181731817418175181761817718178181791818018181181821818318184181851818618187181881818918190181911819218193181941819518196181971819818199182001820118202182031820418205182061820718208182091821018211182121821318214182151821618217182181821918220182211822218223182241822518226182271822818229182301823118232182331823418235182361823718238182391824018241182421824318244182451824618247182481824918250182511825218253182541825518256182571825818259182601826118262182631826418265182661826718268182691827018271182721827318274182751827618277182781827918280182811828218283182841828518286182871828818289182901829118292182931829418295182961829718298182991830018301183021830318304183051830618307183081830918310183111831218313183141831518316183171831818319183201832118322183231832418325183261832718328183291833018331183321833318334183351833618337183381833918340183411834218343183441834518346183471834818349183501835118352183531835418355183561835718358183591836018361183621836318364183651836618367183681836918370183711837218373183741837518376183771837818379183801838118382183831838418385183861838718388183891839018391183921839318394183951839618397183981839918400184011840218403184041840518406184071840818409184101841118412184131841418415184161841718418184191842018421184221842318424184251842618427184281842918430184311843218433184341843518436184371843818439184401844118442184431844418445184461844718448184491845018451184521845318454184551845618457184581845918460184611846218463184641846518466184671846818469184701847118472184731847418475184761847718478184791848018481184821848318484184851848618487184881848918490184911849218493184941849518496184971849818499185001850118502185031850418505185061850718508185091851018511185121851318514185151851618517185181851918520185211852218523185241852518526185271852818529185301853118532185331853418535185361853718538185391854018541185421854318544185451854618547185481854918550185511855218553185541855518556185571855818559185601856118562185631856418565185661856718568185691857018571185721857318574185751857618577185781857918580185811858218583185841858518586185871858818589185901859118592185931859418595185961859718598185991860018601186021860318604186051860618607186081860918610186111861218613186141861518616186171861818619186201862118622186231862418625186261862718628186291863018631186321863318634186351863618637186381863918640186411864218643186441864518646186471864818649186501865118652186531865418655186561865718658186591866018661186621866318664186651866618667186681866918670186711867218673186741867518676186771867818679186801868118682186831868418685186861868718688186891869018691186921869318694186951869618697186981869918700187011870218703187041870518706187071870818709187101871118712187131871418715187161871718718187191872018721187221872318724187251872618727187281872918730187311873218733187341873518736187371873818739187401874118742187431874418745187461874718748187491875018751187521875318754187551875618757187581875918760187611876218763187641876518766187671876818769187701877118772187731877418775187761877718778187791878018781187821878318784187851878618787187881878918790187911879218793187941879518796187971879818799188001880118802188031880418805188061880718808188091881018811188121881318814188151881618817188181881918820188211882218823188241882518826188271882818829188301883118832188331883418835188361883718838188391884018841188421884318844188451884618847188481884918850188511885218853188541885518856188571885818859188601886118862188631886418865188661886718868188691887018871188721887318874188751887618877188781887918880188811888218883188841888518886188871888818889188901889118892188931889418895188961889718898188991890018901189021890318904189051890618907189081890918910189111891218913189141891518916189171891818919189201892118922189231892418925189261892718928189291893018931189321893318934189351893618937189381893918940189411894218943189441894518946189471894818949189501895118952189531895418955189561895718958189591896018961189621896318964189651896618967189681896918970189711897218973189741897518976189771897818979189801898118982189831898418985189861898718988189891899018991189921899318994189951899618997189981899919000190011900219003190041900519006190071900819009190101901119012190131901419015190161901719018190191902019021190221902319024190251902619027190281902919030190311903219033190341903519036190371903819039190401904119042190431904419045190461904719048190491905019051190521905319054190551905619057190581905919060190611906219063190641906519066190671906819069190701907119072190731907419075190761907719078190791908019081190821908319084190851908619087190881908919090190911909219093190941909519096190971909819099191001910119102191031910419105191061910719108191091911019111191121911319114191151911619117191181911919120191211912219123191241912519126191271912819129191301913119132191331913419135191361913719138191391914019141191421914319144191451914619147191481914919150191511915219153191541915519156191571915819159191601916119162191631916419165191661916719168191691917019171191721917319174191751917619177191781917919180191811918219183191841918519186191871918819189191901919119192191931919419195191961919719198191991920019201192021920319204192051920619207192081920919210192111921219213192141921519216192171921819219192201922119222192231922419225192261922719228192291923019231192321923319234192351923619237192381923919240192411924219243192441924519246192471924819249192501925119252192531925419255192561925719258192591926019261192621926319264192651926619267192681926919270192711927219273192741927519276192771927819279192801928119282192831928419285192861928719288192891929019291192921929319294192951929619297192981929919300193011930219303193041930519306193071930819309193101931119312193131931419315193161931719318193191932019321193221932319324193251932619327193281932919330193311933219333193341933519336193371933819339193401934119342193431934419345193461934719348193491935019351193521935319354193551935619357193581935919360193611936219363193641936519366193671936819369193701937119372193731937419375193761937719378193791938019381193821938319384193851938619387193881938919390193911939219393193941939519396193971939819399194001940119402194031940419405194061940719408194091941019411194121941319414194151941619417194181941919420194211942219423194241942519426194271942819429194301943119432194331943419435194361943719438194391944019441194421944319444194451944619447194481944919450194511945219453194541945519456194571945819459194601946119462194631946419465194661946719468194691947019471194721947319474194751947619477194781947919480194811948219483194841948519486194871948819489194901949119492194931949419495194961949719498194991950019501195021950319504195051950619507195081950919510195111951219513195141951519516195171951819519195201952119522195231952419525195261952719528195291953019531195321953319534195351953619537195381953919540195411954219543195441954519546195471954819549195501955119552195531955419555195561955719558195591956019561195621956319564195651956619567195681956919570195711957219573195741957519576195771957819579195801958119582195831958419585195861958719588195891959019591195921959319594195951959619597195981959919600196011960219603196041960519606196071960819609196101961119612196131961419615196161961719618196191962019621196221962319624196251962619627196281962919630196311963219633196341963519636
  1. #! /bin/sh
  2. # Guess values for system-dependent variables and create Makefiles.
  3. # Generated by GNU Autoconf 2.69 for neon 0.31.0.
  4. #
  5. # Report bugs to <[email protected]>.
  6. #
  7. #
  8. # Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc.
  9. #
  10. #
  11. # This configure script is free software; the Free Software Foundation
  12. # gives unlimited permission to copy, distribute and modify it.
  13. #
  14. # Copyright 2000-2010 Joe Orton and others
  15. # This configure script may be copied, distributed and modified under the
  16. # terms of the GNU Library General Public license; see src/COPYING.LIB for
  17. # more details.
  18. ## -------------------- ##
  19. ## M4sh Initialization. ##
  20. ## -------------------- ##
  21. # Be more Bourne compatible
  22. DUALCASE=1; export DUALCASE # for MKS sh
  23. if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; 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
  31. case `(set -o) 2>/dev/null` in #(
  32. *posix*) :
  33. set -o posix ;; #(
  34. *) :
  35. ;;
  36. esac
  37. fi
  38. as_nl='
  39. '
  40. export as_nl
  41. # Printing a long string crashes Solaris 7 /usr/bin/printf.
  42. as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
  43. as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
  44. as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
  45. # Prefer a ksh shell builtin over an external printf program on Solaris,
  46. # but without wasting forks for bash or zsh.
  47. if test -z "$BASH_VERSION$ZSH_VERSION" \
  48. && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
  49. as_echo='print -r --'
  50. as_echo_n='print -rn --'
  51. elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
  52. as_echo='printf %s\n'
  53. as_echo_n='printf %s'
  54. else
  55. if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
  56. as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
  57. as_echo_n='/usr/ucb/echo -n'
  58. else
  59. as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
  60. as_echo_n_body='eval
  61. arg=$1;
  62. case $arg in #(
  63. *"$as_nl"*)
  64. expr "X$arg" : "X\\(.*\\)$as_nl";
  65. arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
  66. esac;
  67. expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
  68. '
  69. export as_echo_n_body
  70. as_echo_n='sh -c $as_echo_n_body as_echo'
  71. fi
  72. export as_echo_body
  73. as_echo='sh -c $as_echo_body as_echo'
  74. fi
  75. # The user is always right.
  76. if test "${PATH_SEPARATOR+set}" != set; then
  77. PATH_SEPARATOR=:
  78. (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
  79. (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
  80. PATH_SEPARATOR=';'
  81. }
  82. fi
  83. # IFS
  84. # We need space, tab and new line, in precisely that order. Quoting is
  85. # there to prevent editors from complaining about space-tab.
  86. # (If _AS_PATH_WALK were called with IFS unset, it would disable word
  87. # splitting by setting IFS to empty value.)
  88. IFS=" "" $as_nl"
  89. # Find who we are. Look in the path if we contain no directory separator.
  90. as_myself=
  91. case $0 in #((
  92. *[\\/]* ) as_myself=$0 ;;
  93. *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  94. for as_dir in $PATH
  95. do
  96. IFS=$as_save_IFS
  97. test -z "$as_dir" && as_dir=.
  98. test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
  99. done
  100. IFS=$as_save_IFS
  101. ;;
  102. esac
  103. # We did not find ourselves, most probably we were run as `sh COMMAND'
  104. # in which case we are not to be found in the path.
  105. if test "x$as_myself" = x; then
  106. as_myself=$0
  107. fi
  108. if test ! -f "$as_myself"; then
  109. $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
  110. exit 1
  111. fi
  112. # Unset variables that we do not need and which cause bugs (e.g. in
  113. # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
  114. # suppresses any "Segmentation fault" message there. '((' could
  115. # trigger a bug in pdksh 5.2.14.
  116. for as_var in BASH_ENV ENV MAIL MAILPATH
  117. do eval test x\${$as_var+set} = xset \
  118. && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
  119. done
  120. PS1='$ '
  121. PS2='> '
  122. PS4='+ '
  123. # NLS nuisances.
  124. LC_ALL=C
  125. export LC_ALL
  126. LANGUAGE=C
  127. export LANGUAGE
  128. # CDPATH.
  129. (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
  130. # Use a proper internal environment variable to ensure we don't fall
  131. # into an infinite loop, continuously re-executing ourselves.
  132. if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
  133. _as_can_reexec=no; export _as_can_reexec;
  134. # We cannot yet assume a decent shell, so we have to provide a
  135. # neutralization value for shells without unset; and this also
  136. # works around shells that cannot unset nonexistent variables.
  137. # Preserve -v and -x to the replacement shell.
  138. BASH_ENV=/dev/null
  139. ENV=/dev/null
  140. (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
  141. case $- in # ((((
  142. *v*x* | *x*v* ) as_opts=-vx ;;
  143. *v* ) as_opts=-v ;;
  144. *x* ) as_opts=-x ;;
  145. * ) as_opts= ;;
  146. esac
  147. exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
  148. # Admittedly, this is quite paranoid, since all the known shells bail
  149. # out after a failed `exec'.
  150. $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
  151. as_fn_exit 255
  152. fi
  153. # We don't want this to propagate to other subprocesses.
  154. { _as_can_reexec=; unset _as_can_reexec;}
  155. if test "x$CONFIG_SHELL" = x; then
  156. as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
  157. emulate sh
  158. NULLCMD=:
  159. # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
  160. # is contrary to our usage. Disable this feature.
  161. alias -g '\${1+\"\$@\"}'='\"\$@\"'
  162. setopt NO_GLOB_SUBST
  163. else
  164. case \`(set -o) 2>/dev/null\` in #(
  165. *posix*) :
  166. set -o posix ;; #(
  167. *) :
  168. ;;
  169. esac
  170. fi
  171. "
  172. as_required="as_fn_return () { (exit \$1); }
  173. as_fn_success () { as_fn_return 0; }
  174. as_fn_failure () { as_fn_return 1; }
  175. as_fn_ret_success () { return 0; }
  176. as_fn_ret_failure () { return 1; }
  177. exitcode=0
  178. as_fn_success || { exitcode=1; echo as_fn_success failed.; }
  179. as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
  180. as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
  181. as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
  182. if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
  183. else
  184. exitcode=1; echo positional parameters were not saved.
  185. fi
  186. test x\$exitcode = x0 || exit 1
  187. test -x / || exit 1"
  188. as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
  189. as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
  190. eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
  191. test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
  192. test \$(( 1 + 1 )) = 2 || exit 1
  193. test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
  194. ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
  195. ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
  196. ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
  197. PATH=/empty FPATH=/empty; export PATH FPATH
  198. test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
  199. || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1"
  200. if (eval "$as_required") 2>/dev/null; then :
  201. as_have_required=yes
  202. else
  203. as_have_required=no
  204. fi
  205. if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
  206. else
  207. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  208. as_found=false
  209. for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
  210. do
  211. IFS=$as_save_IFS
  212. test -z "$as_dir" && as_dir=.
  213. as_found=:
  214. case $as_dir in #(
  215. /*)
  216. for as_base in sh bash ksh sh5; do
  217. # Try only shells that exist, to save several forks.
  218. as_shell=$as_dir/$as_base
  219. if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
  220. { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
  221. CONFIG_SHELL=$as_shell as_have_required=yes
  222. if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
  223. break 2
  224. fi
  225. fi
  226. done;;
  227. esac
  228. as_found=false
  229. done
  230. $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
  231. { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
  232. CONFIG_SHELL=$SHELL as_have_required=yes
  233. fi; }
  234. IFS=$as_save_IFS
  235. if test "x$CONFIG_SHELL" != x; then :
  236. export CONFIG_SHELL
  237. # We cannot yet assume a decent shell, so we have to provide a
  238. # neutralization value for shells without unset; and this also
  239. # works around shells that cannot unset nonexistent variables.
  240. # Preserve -v and -x to the replacement shell.
  241. BASH_ENV=/dev/null
  242. ENV=/dev/null
  243. (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
  244. case $- in # ((((
  245. *v*x* | *x*v* ) as_opts=-vx ;;
  246. *v* ) as_opts=-v ;;
  247. *x* ) as_opts=-x ;;
  248. * ) as_opts= ;;
  249. esac
  250. exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
  251. # Admittedly, this is quite paranoid, since all the known shells bail
  252. # out after a failed `exec'.
  253. $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
  254. exit 255
  255. fi
  256. if test x$as_have_required = xno; then :
  257. $as_echo "$0: This script requires a shell more modern than all"
  258. $as_echo "$0: the shells that I found on your system."
  259. if test x${ZSH_VERSION+set} = xset ; then
  260. $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
  261. $as_echo "$0: be upgraded to zsh 4.3.4 or later."
  262. else
  263. $as_echo "$0: Please tell [email protected] and
  264. $0: [email protected] about your system, including
  265. $0: any error possibly output before this message. Then
  266. $0: install a modern shell, or manually run the script
  267. $0: under such a shell if you do have one."
  268. fi
  269. exit 1
  270. fi
  271. fi
  272. fi
  273. SHELL=${CONFIG_SHELL-/bin/sh}
  274. export SHELL
  275. # Unset more variables known to interfere with behavior of common tools.
  276. CLICOLOR_FORCE= GREP_OPTIONS=
  277. unset CLICOLOR_FORCE GREP_OPTIONS
  278. ## --------------------- ##
  279. ## M4sh Shell Functions. ##
  280. ## --------------------- ##
  281. # as_fn_unset VAR
  282. # ---------------
  283. # Portably unset VAR.
  284. as_fn_unset ()
  285. {
  286. { eval $1=; unset $1;}
  287. }
  288. as_unset=as_fn_unset
  289. # as_fn_set_status STATUS
  290. # -----------------------
  291. # Set $? to STATUS, without forking.
  292. as_fn_set_status ()
  293. {
  294. return $1
  295. } # as_fn_set_status
  296. # as_fn_exit STATUS
  297. # -----------------
  298. # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
  299. as_fn_exit ()
  300. {
  301. set +e
  302. as_fn_set_status $1
  303. exit $1
  304. } # as_fn_exit
  305. # as_fn_mkdir_p
  306. # -------------
  307. # Create "$as_dir" as a directory, including parents if necessary.
  308. as_fn_mkdir_p ()
  309. {
  310. case $as_dir in #(
  311. -*) as_dir=./$as_dir;;
  312. esac
  313. test -d "$as_dir" || eval $as_mkdir_p || {
  314. as_dirs=
  315. while :; do
  316. case $as_dir in #(
  317. *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
  318. *) as_qdir=$as_dir;;
  319. esac
  320. as_dirs="'$as_qdir' $as_dirs"
  321. as_dir=`$as_dirname -- "$as_dir" ||
  322. $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  323. X"$as_dir" : 'X\(//\)[^/]' \| \
  324. X"$as_dir" : 'X\(//\)$' \| \
  325. X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
  326. $as_echo X"$as_dir" |
  327. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  328. s//\1/
  329. q
  330. }
  331. /^X\(\/\/\)[^/].*/{
  332. s//\1/
  333. q
  334. }
  335. /^X\(\/\/\)$/{
  336. s//\1/
  337. q
  338. }
  339. /^X\(\/\).*/{
  340. s//\1/
  341. q
  342. }
  343. s/.*/./; q'`
  344. test -d "$as_dir" && break
  345. done
  346. test -z "$as_dirs" || eval "mkdir $as_dirs"
  347. } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
  348. } # as_fn_mkdir_p
  349. # as_fn_executable_p FILE
  350. # -----------------------
  351. # Test if FILE is an executable regular file.
  352. as_fn_executable_p ()
  353. {
  354. test -f "$1" && test -x "$1"
  355. } # as_fn_executable_p
  356. # as_fn_append VAR VALUE
  357. # ----------------------
  358. # Append the text in VALUE to the end of the definition contained in VAR. Take
  359. # advantage of any shell optimizations that allow amortized linear growth over
  360. # repeated appends, instead of the typical quadratic growth present in naive
  361. # implementations.
  362. if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
  363. eval 'as_fn_append ()
  364. {
  365. eval $1+=\$2
  366. }'
  367. else
  368. as_fn_append ()
  369. {
  370. eval $1=\$$1\$2
  371. }
  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; then :
  379. eval 'as_fn_arith ()
  380. {
  381. as_val=$(( $* ))
  382. }'
  383. else
  384. as_fn_arith ()
  385. {
  386. as_val=`expr "$@" || test $? -eq 1`
  387. }
  388. fi # as_fn_arith
  389. # as_fn_error STATUS ERROR [LINENO LOG_FD]
  390. # ----------------------------------------
  391. # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
  392. # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
  393. # script with STATUS, using 1 if that was 0.
  394. as_fn_error ()
  395. {
  396. as_status=$1; test $as_status -eq 0 && as_status=1
  397. if test "$4"; then
  398. as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  399. $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
  400. fi
  401. $as_echo "$as_me: error: $2" >&2
  402. as_fn_exit $as_status
  403. } # as_fn_error
  404. if expr a : '\(a\)' >/dev/null 2>&1 &&
  405. test "X`expr 00001 : '.*\(...\)'`" = X001; then
  406. as_expr=expr
  407. else
  408. as_expr=false
  409. fi
  410. if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
  411. as_basename=basename
  412. else
  413. as_basename=false
  414. fi
  415. if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
  416. as_dirname=dirname
  417. else
  418. as_dirname=false
  419. fi
  420. as_me=`$as_basename -- "$0" ||
  421. $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
  422. X"$0" : 'X\(//\)$' \| \
  423. X"$0" : 'X\(/\)' \| . 2>/dev/null ||
  424. $as_echo X/"$0" |
  425. sed '/^.*\/\([^/][^/]*\)\/*$/{
  426. s//\1/
  427. q
  428. }
  429. /^X\/\(\/\/\)$/{
  430. s//\1/
  431. q
  432. }
  433. /^X\/\(\/\).*/{
  434. s//\1/
  435. q
  436. }
  437. s/.*/./; q'`
  438. # Avoid depending upon Character Ranges.
  439. as_cr_letters='abcdefghijklmnopqrstuvwxyz'
  440. as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
  441. as_cr_Letters=$as_cr_letters$as_cr_LETTERS
  442. as_cr_digits='0123456789'
  443. as_cr_alnum=$as_cr_Letters$as_cr_digits
  444. as_lineno_1=$LINENO as_lineno_1a=$LINENO
  445. as_lineno_2=$LINENO as_lineno_2a=$LINENO
  446. eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
  447. test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
  448. # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
  449. sed -n '
  450. p
  451. /[$]LINENO/=
  452. ' <$as_myself |
  453. sed '
  454. s/[$]LINENO.*/&-/
  455. t lineno
  456. b
  457. :lineno
  458. N
  459. :loop
  460. s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
  461. t loop
  462. s/-\n.*//
  463. ' >$as_me.lineno &&
  464. chmod +x "$as_me.lineno" ||
  465. { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
  466. # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
  467. # already done that, so ensure we don't try to do so again and fall
  468. # in an infinite loop. This has already happened in practice.
  469. _as_can_reexec=no; export _as_can_reexec
  470. # Don't try to exec as it changes $[0], causing all sort of problems
  471. # (the dirname of $[0] is not the place where we might find the
  472. # original and so on. Autoconf is especially sensitive to this).
  473. . "./$as_me.lineno"
  474. # Exit status is that of the last command.
  475. exit
  476. }
  477. ECHO_C= ECHO_N= ECHO_T=
  478. case `echo -n x` in #(((((
  479. -n*)
  480. case `echo 'xy\c'` in
  481. *c*) ECHO_T=' ';; # ECHO_T is single tab character.
  482. xy) ECHO_C='\c';;
  483. *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
  484. ECHO_T=' ';;
  485. esac;;
  486. *)
  487. ECHO_N='-n';;
  488. esac
  489. rm -f conf$$ conf$$.exe conf$$.file
  490. if test -d conf$$.dir; then
  491. rm -f conf$$.dir/conf$$.file
  492. else
  493. rm -f conf$$.dir
  494. mkdir conf$$.dir 2>/dev/null
  495. fi
  496. if (echo >conf$$.file) 2>/dev/null; then
  497. if ln -s conf$$.file conf$$ 2>/dev/null; then
  498. as_ln_s='ln -s'
  499. # ... but there are two gotchas:
  500. # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
  501. # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
  502. # In both cases, we have to default to `cp -pR'.
  503. ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
  504. as_ln_s='cp -pR'
  505. elif ln conf$$.file conf$$ 2>/dev/null; then
  506. as_ln_s=ln
  507. else
  508. as_ln_s='cp -pR'
  509. fi
  510. else
  511. as_ln_s='cp -pR'
  512. fi
  513. rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
  514. rmdir conf$$.dir 2>/dev/null
  515. if mkdir -p . 2>/dev/null; then
  516. as_mkdir_p='mkdir -p "$as_dir"'
  517. else
  518. test -d ./-p && rmdir ./-p
  519. as_mkdir_p=false
  520. fi
  521. as_test_x='test -x'
  522. as_executable_p=as_fn_executable_p
  523. # Sed expression to map a string onto a valid CPP name.
  524. as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
  525. # Sed expression to map a string onto a valid variable name.
  526. as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
  527. SHELL=${CONFIG_SHELL-/bin/sh}
  528. test -n "$DJDIR" || exec 7<&0 </dev/null
  529. exec 6>&1
  530. # Name of the host.
  531. # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
  532. # so uname gets run too.
  533. ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
  534. #
  535. # Initializations.
  536. #
  537. ac_default_prefix=/usr/local
  538. ac_clean_files=
  539. ac_config_libobj_dir=.
  540. LIBOBJS=
  541. cross_compiling=no
  542. subdirs=
  543. MFLAGS=
  544. MAKEFLAGS=
  545. # Identity of this package.
  546. PACKAGE_NAME='neon'
  547. PACKAGE_TARNAME='neon'
  548. PACKAGE_VERSION='0.31.0'
  549. PACKAGE_STRING='neon 0.31.0'
  550. PACKAGE_BUGREPORT='[email protected]'
  551. PACKAGE_URL=''
  552. ac_unique_file="src/ne_request.c"
  553. # Factoring default headers for most tests.
  554. ac_includes_default="\
  555. #include <stdio.h>
  556. #ifdef HAVE_SYS_TYPES_H
  557. # include <sys/types.h>
  558. #endif
  559. #ifdef HAVE_SYS_STAT_H
  560. # include <sys/stat.h>
  561. #endif
  562. #ifdef STDC_HEADERS
  563. # include <stdlib.h>
  564. # include <stddef.h>
  565. #else
  566. # ifdef HAVE_STDLIB_H
  567. # include <stdlib.h>
  568. # endif
  569. #endif
  570. #ifdef HAVE_STRING_H
  571. # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
  572. # include <memory.h>
  573. # endif
  574. # include <string.h>
  575. #endif
  576. #ifdef HAVE_STRINGS_H
  577. # include <strings.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_UNISTD_H
  586. # include <unistd.h>
  587. #endif"
  588. ac_subst_vars='LTLIBOBJS
  589. ALLOW_INSTALL
  590. TESTS
  591. HELPERS
  592. user_LDFLAGS
  593. top_builddir
  594. NEON_BUILD_BUNDLED
  595. NEON_VERSION
  596. ALL_LINGUAS
  597. HAVE_LD_VERSION_SCRIPT_FALSE
  598. HAVE_LD_VERSION_SCRIPT_TRUE
  599. NEON_PC_LIBS
  600. TEST_LDFLAGS
  601. PK12UTIL
  602. CERTUTIL
  603. OPENSSL
  604. NE_FLAG_I18N
  605. XML2_CONFIG
  606. NEON_LINK_FLAGS
  607. NEON_EXTRAOBJS
  608. NEONOBJS
  609. NEON_OBJEXT
  610. NEON_TARGET
  611. NE_FLAG_DAV
  612. LT_SYS_LIBRARY_PATH
  613. OTOOL64
  614. OTOOL
  615. LIPO
  616. NMEDIT
  617. DSYMUTIL
  618. MANIFEST_TOOL
  619. AWK
  620. RANLIB
  621. STRIP
  622. ac_ct_AR
  623. AR
  624. DLLTOOL
  625. OBJDUMP
  626. LN_S
  627. NM
  628. ac_ct_DUMPBIN
  629. DUMPBIN
  630. LD
  631. FGREP
  632. SED
  633. host_os
  634. host_vendor
  635. host_cpu
  636. host
  637. build_os
  638. build_vendor
  639. build_cpu
  640. build
  641. LIBTOOL
  642. NEON_LTLIBS
  643. NEON_LIBS
  644. NEON_CFLAGS
  645. NE_FLAG_LIBPXY
  646. KRB5_CONFIG
  647. NEON_SUPPORTS_SSL
  648. NE_FLAG_TS_SSL
  649. GNUTLS_CONFIG
  650. NE_FLAG_SSL
  651. PKG_CONFIG
  652. NE_FLAG_ZLIB
  653. NE_FLAG_IPV6
  654. LIBOBJS
  655. NE_FLAG_LFS
  656. SET_MAKE
  657. EGREP
  658. GREP
  659. CPP
  660. OBJEXT
  661. EXEEXT
  662. ac_ct_CC
  663. CPPFLAGS
  664. LDFLAGS
  665. CFLAGS
  666. CC
  667. INSTALL_DATA
  668. INSTALL_SCRIPT
  669. INSTALL_PROGRAM
  670. target_alias
  671. host_alias
  672. build_alias
  673. LIBS
  674. ECHO_T
  675. ECHO_N
  676. ECHO_C
  677. DEFS
  678. mandir
  679. localedir
  680. libdir
  681. psdir
  682. pdfdir
  683. dvidir
  684. htmldir
  685. infodir
  686. docdir
  687. oldincludedir
  688. includedir
  689. localstatedir
  690. sharedstatedir
  691. sysconfdir
  692. datadir
  693. datarootdir
  694. libexecdir
  695. sbindir
  696. bindir
  697. program_transform_name
  698. prefix
  699. exec_prefix
  700. PACKAGE_URL
  701. PACKAGE_BUGREPORT
  702. PACKAGE_STRING
  703. PACKAGE_VERSION
  704. PACKAGE_TARNAME
  705. PACKAGE_NAME
  706. PATH_SEPARATOR
  707. SHELL'
  708. ac_subst_files=''
  709. ac_user_opts='
  710. enable_option_checking
  711. with_libs
  712. enable_webdav
  713. with_zlib
  714. with_ssl
  715. with_egd
  716. with_pakchois
  717. with_ca_bundle
  718. enable_threadsafe_ssl
  719. with_gssapi
  720. with_libproxy
  721. enable_shared
  722. enable_static
  723. with_pic
  724. enable_fast_install
  725. with_aix_soname
  726. with_gnu_ld
  727. with_sysroot
  728. enable_libtool_lock
  729. with_libxml2
  730. with_expat
  731. enable_nls
  732. enable_debug
  733. enable_warnings
  734. enable_memleak
  735. enable_tests_install
  736. enable_ld_version_script
  737. '
  738. ac_precious_vars='build_alias
  739. host_alias
  740. target_alias
  741. CC
  742. CFLAGS
  743. LDFLAGS
  744. LIBS
  745. CPPFLAGS
  746. CPP
  747. LT_SYS_LIBRARY_PATH'
  748. # Initialize some variables set by options.
  749. ac_init_help=
  750. ac_init_version=false
  751. ac_unrecognized_opts=
  752. ac_unrecognized_sep=
  753. # The variables have the same names as the options, with
  754. # dashes changed to underlines.
  755. cache_file=/dev/null
  756. exec_prefix=NONE
  757. no_create=
  758. no_recursion=
  759. prefix=NONE
  760. program_prefix=NONE
  761. program_suffix=NONE
  762. program_transform_name=s,x,x,
  763. silent=
  764. site=
  765. srcdir=
  766. verbose=
  767. x_includes=NONE
  768. x_libraries=NONE
  769. # Installation directory options.
  770. # These are left unexpanded so users can "make install exec_prefix=/foo"
  771. # and all the variables that are supposed to be based on exec_prefix
  772. # by default will actually change.
  773. # Use braces instead of parens because sh, perl, etc. also accept them.
  774. # (The list follows the same order as the GNU Coding Standards.)
  775. bindir='${exec_prefix}/bin'
  776. sbindir='${exec_prefix}/sbin'
  777. libexecdir='${exec_prefix}/libexec'
  778. datarootdir='${prefix}/share'
  779. datadir='${datarootdir}'
  780. sysconfdir='${prefix}/etc'
  781. sharedstatedir='${prefix}/com'
  782. localstatedir='${prefix}/var'
  783. includedir='${prefix}/include'
  784. oldincludedir='/usr/include'
  785. docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
  786. infodir='${datarootdir}/info'
  787. htmldir='${docdir}'
  788. dvidir='${docdir}'
  789. pdfdir='${docdir}'
  790. psdir='${docdir}'
  791. libdir='${exec_prefix}/lib'
  792. localedir='${datarootdir}/locale'
  793. mandir='${datarootdir}/man'
  794. ac_prev=
  795. ac_dashdash=
  796. for ac_option
  797. do
  798. # If the previous option needs an argument, assign it.
  799. if test -n "$ac_prev"; then
  800. eval $ac_prev=\$ac_option
  801. ac_prev=
  802. continue
  803. fi
  804. case $ac_option in
  805. *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
  806. *=) ac_optarg= ;;
  807. *) ac_optarg=yes ;;
  808. esac
  809. # Accept the important Cygnus configure options, so we can diagnose typos.
  810. case $ac_dashdash$ac_option in
  811. --)
  812. ac_dashdash=yes ;;
  813. -bindir | --bindir | --bindi | --bind | --bin | --bi)
  814. ac_prev=bindir ;;
  815. -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
  816. bindir=$ac_optarg ;;
  817. -build | --build | --buil | --bui | --bu)
  818. ac_prev=build_alias ;;
  819. -build=* | --build=* | --buil=* | --bui=* | --bu=*)
  820. build_alias=$ac_optarg ;;
  821. -cache-file | --cache-file | --cache-fil | --cache-fi \
  822. | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
  823. ac_prev=cache_file ;;
  824. -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
  825. | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
  826. cache_file=$ac_optarg ;;
  827. --config-cache | -C)
  828. cache_file=config.cache ;;
  829. -datadir | --datadir | --datadi | --datad)
  830. ac_prev=datadir ;;
  831. -datadir=* | --datadir=* | --datadi=* | --datad=*)
  832. datadir=$ac_optarg ;;
  833. -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
  834. | --dataroo | --dataro | --datar)
  835. ac_prev=datarootdir ;;
  836. -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
  837. | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
  838. datarootdir=$ac_optarg ;;
  839. -disable-* | --disable-*)
  840. ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
  841. # Reject names that are not valid shell variable names.
  842. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  843. as_fn_error $? "invalid feature name: $ac_useropt"
  844. ac_useropt_orig=$ac_useropt
  845. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  846. case $ac_user_opts in
  847. *"
  848. "enable_$ac_useropt"
  849. "*) ;;
  850. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
  851. ac_unrecognized_sep=', ';;
  852. esac
  853. eval enable_$ac_useropt=no ;;
  854. -docdir | --docdir | --docdi | --doc | --do)
  855. ac_prev=docdir ;;
  856. -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
  857. docdir=$ac_optarg ;;
  858. -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
  859. ac_prev=dvidir ;;
  860. -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
  861. dvidir=$ac_optarg ;;
  862. -enable-* | --enable-*)
  863. ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
  864. # Reject names that are not valid shell variable names.
  865. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  866. as_fn_error $? "invalid feature name: $ac_useropt"
  867. ac_useropt_orig=$ac_useropt
  868. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  869. case $ac_user_opts in
  870. *"
  871. "enable_$ac_useropt"
  872. "*) ;;
  873. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
  874. ac_unrecognized_sep=', ';;
  875. esac
  876. eval enable_$ac_useropt=\$ac_optarg ;;
  877. -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
  878. | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
  879. | --exec | --exe | --ex)
  880. ac_prev=exec_prefix ;;
  881. -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
  882. | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
  883. | --exec=* | --exe=* | --ex=*)
  884. exec_prefix=$ac_optarg ;;
  885. -gas | --gas | --ga | --g)
  886. # Obsolete; use --with-gas.
  887. with_gas=yes ;;
  888. -help | --help | --hel | --he | -h)
  889. ac_init_help=long ;;
  890. -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
  891. ac_init_help=recursive ;;
  892. -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
  893. ac_init_help=short ;;
  894. -host | --host | --hos | --ho)
  895. ac_prev=host_alias ;;
  896. -host=* | --host=* | --hos=* | --ho=*)
  897. host_alias=$ac_optarg ;;
  898. -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
  899. ac_prev=htmldir ;;
  900. -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
  901. | --ht=*)
  902. htmldir=$ac_optarg ;;
  903. -includedir | --includedir | --includedi | --included | --include \
  904. | --includ | --inclu | --incl | --inc)
  905. ac_prev=includedir ;;
  906. -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
  907. | --includ=* | --inclu=* | --incl=* | --inc=*)
  908. includedir=$ac_optarg ;;
  909. -infodir | --infodir | --infodi | --infod | --info | --inf)
  910. ac_prev=infodir ;;
  911. -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
  912. infodir=$ac_optarg ;;
  913. -libdir | --libdir | --libdi | --libd)
  914. ac_prev=libdir ;;
  915. -libdir=* | --libdir=* | --libdi=* | --libd=*)
  916. libdir=$ac_optarg ;;
  917. -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
  918. | --libexe | --libex | --libe)
  919. ac_prev=libexecdir ;;
  920. -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
  921. | --libexe=* | --libex=* | --libe=*)
  922. libexecdir=$ac_optarg ;;
  923. -localedir | --localedir | --localedi | --localed | --locale)
  924. ac_prev=localedir ;;
  925. -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
  926. localedir=$ac_optarg ;;
  927. -localstatedir | --localstatedir | --localstatedi | --localstated \
  928. | --localstate | --localstat | --localsta | --localst | --locals)
  929. ac_prev=localstatedir ;;
  930. -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
  931. | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
  932. localstatedir=$ac_optarg ;;
  933. -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
  934. ac_prev=mandir ;;
  935. -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
  936. mandir=$ac_optarg ;;
  937. -nfp | --nfp | --nf)
  938. # Obsolete; use --without-fp.
  939. with_fp=no ;;
  940. -no-create | --no-create | --no-creat | --no-crea | --no-cre \
  941. | --no-cr | --no-c | -n)
  942. no_create=yes ;;
  943. -no-recursion | --no-recursion | --no-recursio | --no-recursi \
  944. | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
  945. no_recursion=yes ;;
  946. -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
  947. | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
  948. | --oldin | --oldi | --old | --ol | --o)
  949. ac_prev=oldincludedir ;;
  950. -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
  951. | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
  952. | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
  953. oldincludedir=$ac_optarg ;;
  954. -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
  955. ac_prev=prefix ;;
  956. -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
  957. prefix=$ac_optarg ;;
  958. -program-prefix | --program-prefix | --program-prefi | --program-pref \
  959. | --program-pre | --program-pr | --program-p)
  960. ac_prev=program_prefix ;;
  961. -program-prefix=* | --program-prefix=* | --program-prefi=* \
  962. | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
  963. program_prefix=$ac_optarg ;;
  964. -program-suffix | --program-suffix | --program-suffi | --program-suff \
  965. | --program-suf | --program-su | --program-s)
  966. ac_prev=program_suffix ;;
  967. -program-suffix=* | --program-suffix=* | --program-suffi=* \
  968. | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
  969. program_suffix=$ac_optarg ;;
  970. -program-transform-name | --program-transform-name \
  971. | --program-transform-nam | --program-transform-na \
  972. | --program-transform-n | --program-transform- \
  973. | --program-transform | --program-transfor \
  974. | --program-transfo | --program-transf \
  975. | --program-trans | --program-tran \
  976. | --progr-tra | --program-tr | --program-t)
  977. ac_prev=program_transform_name ;;
  978. -program-transform-name=* | --program-transform-name=* \
  979. | --program-transform-nam=* | --program-transform-na=* \
  980. | --program-transform-n=* | --program-transform-=* \
  981. | --program-transform=* | --program-transfor=* \
  982. | --program-transfo=* | --program-transf=* \
  983. | --program-trans=* | --program-tran=* \
  984. | --progr-tra=* | --program-tr=* | --program-t=*)
  985. program_transform_name=$ac_optarg ;;
  986. -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
  987. ac_prev=pdfdir ;;
  988. -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
  989. pdfdir=$ac_optarg ;;
  990. -psdir | --psdir | --psdi | --psd | --ps)
  991. ac_prev=psdir ;;
  992. -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
  993. psdir=$ac_optarg ;;
  994. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  995. | -silent | --silent | --silen | --sile | --sil)
  996. silent=yes ;;
  997. -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
  998. ac_prev=sbindir ;;
  999. -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
  1000. | --sbi=* | --sb=*)
  1001. sbindir=$ac_optarg ;;
  1002. -sharedstatedir | --sharedstatedir | --sharedstatedi \
  1003. | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
  1004. | --sharedst | --shareds | --shared | --share | --shar \
  1005. | --sha | --sh)
  1006. ac_prev=sharedstatedir ;;
  1007. -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
  1008. | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
  1009. | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
  1010. | --sha=* | --sh=*)
  1011. sharedstatedir=$ac_optarg ;;
  1012. -site | --site | --sit)
  1013. ac_prev=site ;;
  1014. -site=* | --site=* | --sit=*)
  1015. site=$ac_optarg ;;
  1016. -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
  1017. ac_prev=srcdir ;;
  1018. -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
  1019. srcdir=$ac_optarg ;;
  1020. -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
  1021. | --syscon | --sysco | --sysc | --sys | --sy)
  1022. ac_prev=sysconfdir ;;
  1023. -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
  1024. | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
  1025. sysconfdir=$ac_optarg ;;
  1026. -target | --target | --targe | --targ | --tar | --ta | --t)
  1027. ac_prev=target_alias ;;
  1028. -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
  1029. target_alias=$ac_optarg ;;
  1030. -v | -verbose | --verbose | --verbos | --verbo | --verb)
  1031. verbose=yes ;;
  1032. -version | --version | --versio | --versi | --vers | -V)
  1033. ac_init_version=: ;;
  1034. -with-* | --with-*)
  1035. ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
  1036. # Reject names that are not valid shell variable names.
  1037. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  1038. as_fn_error $? "invalid package name: $ac_useropt"
  1039. ac_useropt_orig=$ac_useropt
  1040. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  1041. case $ac_user_opts in
  1042. *"
  1043. "with_$ac_useropt"
  1044. "*) ;;
  1045. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
  1046. ac_unrecognized_sep=', ';;
  1047. esac
  1048. eval with_$ac_useropt=\$ac_optarg ;;
  1049. -without-* | --without-*)
  1050. ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
  1051. # Reject names that are not valid shell variable names.
  1052. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  1053. as_fn_error $? "invalid package name: $ac_useropt"
  1054. ac_useropt_orig=$ac_useropt
  1055. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  1056. case $ac_user_opts in
  1057. *"
  1058. "with_$ac_useropt"
  1059. "*) ;;
  1060. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
  1061. ac_unrecognized_sep=', ';;
  1062. esac
  1063. eval with_$ac_useropt=no ;;
  1064. --x)
  1065. # Obsolete; use --with-x.
  1066. with_x=yes ;;
  1067. -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
  1068. | --x-incl | --x-inc | --x-in | --x-i)
  1069. ac_prev=x_includes ;;
  1070. -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
  1071. | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
  1072. x_includes=$ac_optarg ;;
  1073. -x-libraries | --x-libraries | --x-librarie | --x-librari \
  1074. | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
  1075. ac_prev=x_libraries ;;
  1076. -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
  1077. | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
  1078. x_libraries=$ac_optarg ;;
  1079. -*) as_fn_error $? "unrecognized option: \`$ac_option'
  1080. Try \`$0 --help' for more information"
  1081. ;;
  1082. *=*)
  1083. ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
  1084. # Reject names that are not valid shell variable names.
  1085. case $ac_envvar in #(
  1086. '' | [0-9]* | *[!_$as_cr_alnum]* )
  1087. as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
  1088. esac
  1089. eval $ac_envvar=\$ac_optarg
  1090. export $ac_envvar ;;
  1091. *)
  1092. # FIXME: should be removed in autoconf 3.0.
  1093. $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
  1094. expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
  1095. $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
  1096. : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
  1097. ;;
  1098. esac
  1099. done
  1100. if test -n "$ac_prev"; then
  1101. ac_option=--`echo $ac_prev | sed 's/_/-/g'`
  1102. as_fn_error $? "missing argument to $ac_option"
  1103. fi
  1104. if test -n "$ac_unrecognized_opts"; then
  1105. case $enable_option_checking in
  1106. no) ;;
  1107. fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
  1108. *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
  1109. esac
  1110. fi
  1111. # Check all directory arguments for consistency.
  1112. for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
  1113. datadir sysconfdir sharedstatedir localstatedir includedir \
  1114. oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
  1115. libdir localedir mandir
  1116. do
  1117. eval ac_val=\$$ac_var
  1118. # Remove trailing slashes.
  1119. case $ac_val in
  1120. */ )
  1121. ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
  1122. eval $ac_var=\$ac_val;;
  1123. esac
  1124. # Be sure to have absolute directory names.
  1125. case $ac_val in
  1126. [\\/$]* | ?:[\\/]* ) continue;;
  1127. NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
  1128. esac
  1129. as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
  1130. done
  1131. # There might be people who depend on the old broken behavior: `$host'
  1132. # used to hold the argument of --host etc.
  1133. # FIXME: To remove some day.
  1134. build=$build_alias
  1135. host=$host_alias
  1136. target=$target_alias
  1137. # FIXME: To remove some day.
  1138. if test "x$host_alias" != x; then
  1139. if test "x$build_alias" = x; then
  1140. cross_compiling=maybe
  1141. elif test "x$build_alias" != "x$host_alias"; then
  1142. cross_compiling=yes
  1143. fi
  1144. fi
  1145. ac_tool_prefix=
  1146. test -n "$host_alias" && ac_tool_prefix=$host_alias-
  1147. test "$silent" = yes && exec 6>/dev/null
  1148. ac_pwd=`pwd` && test -n "$ac_pwd" &&
  1149. ac_ls_di=`ls -di .` &&
  1150. ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
  1151. as_fn_error $? "working directory cannot be determined"
  1152. test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
  1153. as_fn_error $? "pwd does not report name of working directory"
  1154. # Find the source files, if location was not specified.
  1155. if test -z "$srcdir"; then
  1156. ac_srcdir_defaulted=yes
  1157. # Try the directory containing this script, then the parent directory.
  1158. ac_confdir=`$as_dirname -- "$as_myself" ||
  1159. $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  1160. X"$as_myself" : 'X\(//\)[^/]' \| \
  1161. X"$as_myself" : 'X\(//\)$' \| \
  1162. X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
  1163. $as_echo X"$as_myself" |
  1164. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  1165. s//\1/
  1166. q
  1167. }
  1168. /^X\(\/\/\)[^/].*/{
  1169. s//\1/
  1170. q
  1171. }
  1172. /^X\(\/\/\)$/{
  1173. s//\1/
  1174. q
  1175. }
  1176. /^X\(\/\).*/{
  1177. s//\1/
  1178. q
  1179. }
  1180. s/.*/./; q'`
  1181. srcdir=$ac_confdir
  1182. if test ! -r "$srcdir/$ac_unique_file"; then
  1183. srcdir=..
  1184. fi
  1185. else
  1186. ac_srcdir_defaulted=no
  1187. fi
  1188. if test ! -r "$srcdir/$ac_unique_file"; then
  1189. test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
  1190. as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
  1191. fi
  1192. ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
  1193. ac_abs_confdir=`(
  1194. cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
  1195. pwd)`
  1196. # When building in place, set srcdir=.
  1197. if test "$ac_abs_confdir" = "$ac_pwd"; then
  1198. srcdir=.
  1199. fi
  1200. # Remove unnecessary trailing slashes from srcdir.
  1201. # Double slashes in file names in object file debugging info
  1202. # mess up M-x gdb in Emacs.
  1203. case $srcdir in
  1204. */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
  1205. esac
  1206. for ac_var in $ac_precious_vars; do
  1207. eval ac_env_${ac_var}_set=\${${ac_var}+set}
  1208. eval ac_env_${ac_var}_value=\$${ac_var}
  1209. eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
  1210. eval ac_cv_env_${ac_var}_value=\$${ac_var}
  1211. done
  1212. #
  1213. # Report the --help message.
  1214. #
  1215. if test "$ac_init_help" = "long"; then
  1216. # Omit some internal or obsolete options to make the list less imposing.
  1217. # This message is too long to be a string in the A/UX 3.1 sh.
  1218. cat <<_ACEOF
  1219. \`configure' configures neon 0.31.0 to adapt to many kinds of systems.
  1220. Usage: $0 [OPTION]... [VAR=VALUE]...
  1221. To assign environment variables (e.g., CC, CFLAGS...), specify them as
  1222. VAR=VALUE. See below for descriptions of some of the useful variables.
  1223. Defaults for the options are specified in brackets.
  1224. Configuration:
  1225. -h, --help display this help and exit
  1226. --help=short display options specific to this package
  1227. --help=recursive display the short help of all the included packages
  1228. -V, --version display version information and exit
  1229. -q, --quiet, --silent do not print \`checking ...' messages
  1230. --cache-file=FILE cache test results in FILE [disabled]
  1231. -C, --config-cache alias for \`--cache-file=config.cache'
  1232. -n, --no-create do not create output files
  1233. --srcdir=DIR find the sources in DIR [configure dir or \`..']
  1234. Installation directories:
  1235. --prefix=PREFIX install architecture-independent files in PREFIX
  1236. [$ac_default_prefix]
  1237. --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
  1238. [PREFIX]
  1239. By default, \`make install' will install all the files in
  1240. \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
  1241. an installation prefix other than \`$ac_default_prefix' using \`--prefix',
  1242. for instance \`--prefix=\$HOME'.
  1243. For better control, use the options below.
  1244. Fine tuning of the installation directories:
  1245. --bindir=DIR user executables [EPREFIX/bin]
  1246. --sbindir=DIR system admin executables [EPREFIX/sbin]
  1247. --libexecdir=DIR program executables [EPREFIX/libexec]
  1248. --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
  1249. --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
  1250. --localstatedir=DIR modifiable single-machine data [PREFIX/var]
  1251. --libdir=DIR object code libraries [EPREFIX/lib]
  1252. --includedir=DIR C header files [PREFIX/include]
  1253. --oldincludedir=DIR C header files for non-gcc [/usr/include]
  1254. --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
  1255. --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
  1256. --infodir=DIR info documentation [DATAROOTDIR/info]
  1257. --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
  1258. --mandir=DIR man documentation [DATAROOTDIR/man]
  1259. --docdir=DIR documentation root [DATAROOTDIR/doc/neon]
  1260. --htmldir=DIR html documentation [DOCDIR]
  1261. --dvidir=DIR dvi documentation [DOCDIR]
  1262. --pdfdir=DIR pdf documentation [DOCDIR]
  1263. --psdir=DIR ps documentation [DOCDIR]
  1264. _ACEOF
  1265. cat <<\_ACEOF
  1266. System types:
  1267. --build=BUILD configure for building on BUILD [guessed]
  1268. --host=HOST cross-compile to build programs to run on HOST [BUILD]
  1269. _ACEOF
  1270. fi
  1271. if test -n "$ac_init_help"; then
  1272. case $ac_init_help in
  1273. short | recursive ) echo "Configuration of neon 0.31.0:";;
  1274. esac
  1275. cat <<\_ACEOF
  1276. Optional Features:
  1277. --disable-option-checking ignore unrecognized --enable/--with options
  1278. --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
  1279. --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
  1280. --disable-webdav disable WebDAV support
  1281. --enable-threadsafe-ssl=posix
  1282. enable SSL library thread-safety using POSIX
  1283. threads: suitable CC/CFLAGS/LIBS must be used to
  1284. make the POSIX library interfaces available
  1285. --enable-shared[=PKGS] build shared libraries [default=no]
  1286. --enable-static[=PKGS] build static libraries [default=yes]
  1287. --enable-fast-install[=PKGS]
  1288. optimize for fast installation [default=yes]
  1289. --disable-libtool-lock avoid locking (might break parallel builds)
  1290. --disable-nls disable internationalization support
  1291. --disable-debug disable runtime debugging messages
  1292. --enable-warnings enable compiler warnings
  1293. --enable-memleak for test builds only: enable memory leak checking
  1294. --enable-tests-install enable installation of the test suite
  1295. --enable-ld-version-script
  1296. enable linker version script (default is enabled
  1297. when possible)
  1298. Optional Packages:
  1299. --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
  1300. --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
  1301. --with-libs=DIR[:DIR2...] look for support libraries in DIR/{bin,lib,include}
  1302. --without-zlib disable zlib support
  1303. --with-ssl=openssl|gnutls
  1304. enable SSL support (default OpenSSL)
  1305. --with-egd[=PATH] enable EGD support [using EGD socket at PATH]
  1306. --without-pakchois disable support for PKCS#11 using pakchois
  1307. --with-ca-bundle specify filename of an SSL CA root bundle
  1308. --without-gssapi disable GSSAPI support
  1309. --without-libproxy disable libproxy support
  1310. --with-pic[=PKGS] try to use only PIC/non-PIC objects [default=use
  1311. both]
  1312. --with-aix-soname=aix|svr4|both
  1313. shared library versioning (aka "SONAME") variant to
  1314. provide on AIX, [default=aix].
  1315. --with-gnu-ld assume the C compiler uses GNU ld [default=no]
  1316. --with-sysroot[=DIR] Search for dependent libraries within DIR (or the
  1317. compiler's sysroot if not specified).
  1318. --with-libxml2 force use of libxml 2.x
  1319. --with-expat force use of expat
  1320. Some influential environment variables:
  1321. CC C compiler command
  1322. CFLAGS C compiler flags
  1323. LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
  1324. nonstandard directory <lib dir>
  1325. LIBS libraries to pass to the linker, e.g. -l<library>
  1326. CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
  1327. you have headers in a nonstandard directory <include dir>
  1328. CPP C preprocessor
  1329. LT_SYS_LIBRARY_PATH
  1330. User-defined run-time library search path.
  1331. Use these variables to override the choices made by `configure' or to help
  1332. it to find libraries and programs with nonstandard names/locations.
  1333. Report bugs to <[email protected]>.
  1334. _ACEOF
  1335. ac_status=$?
  1336. fi
  1337. if test "$ac_init_help" = "recursive"; then
  1338. # If there are subdirs, report their specific --help.
  1339. for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
  1340. test -d "$ac_dir" ||
  1341. { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
  1342. continue
  1343. ac_builddir=.
  1344. case "$ac_dir" in
  1345. .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
  1346. *)
  1347. ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
  1348. # A ".." for each directory in $ac_dir_suffix.
  1349. ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
  1350. case $ac_top_builddir_sub in
  1351. "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
  1352. *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
  1353. esac ;;
  1354. esac
  1355. ac_abs_top_builddir=$ac_pwd
  1356. ac_abs_builddir=$ac_pwd$ac_dir_suffix
  1357. # for backward compatibility:
  1358. ac_top_builddir=$ac_top_build_prefix
  1359. case $srcdir in
  1360. .) # We are building in place.
  1361. ac_srcdir=.
  1362. ac_top_srcdir=$ac_top_builddir_sub
  1363. ac_abs_top_srcdir=$ac_pwd ;;
  1364. [\\/]* | ?:[\\/]* ) # Absolute name.
  1365. ac_srcdir=$srcdir$ac_dir_suffix;
  1366. ac_top_srcdir=$srcdir
  1367. ac_abs_top_srcdir=$srcdir ;;
  1368. *) # Relative name.
  1369. ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
  1370. ac_top_srcdir=$ac_top_build_prefix$srcdir
  1371. ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
  1372. esac
  1373. ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
  1374. cd "$ac_dir" || { ac_status=$?; continue; }
  1375. # Check for guested configure.
  1376. if test -f "$ac_srcdir/configure.gnu"; then
  1377. echo &&
  1378. $SHELL "$ac_srcdir/configure.gnu" --help=recursive
  1379. elif test -f "$ac_srcdir/configure"; then
  1380. echo &&
  1381. $SHELL "$ac_srcdir/configure" --help=recursive
  1382. else
  1383. $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
  1384. fi || ac_status=$?
  1385. cd "$ac_pwd" || { ac_status=$?; break; }
  1386. done
  1387. fi
  1388. test -n "$ac_init_help" && exit $ac_status
  1389. if $ac_init_version; then
  1390. cat <<\_ACEOF
  1391. neon configure 0.31.0
  1392. generated by GNU Autoconf 2.69
  1393. Copyright (C) 2012 Free Software Foundation, Inc.
  1394. This configure script is free software; the Free Software Foundation
  1395. gives unlimited permission to copy, distribute and modify it.
  1396. Copyright 2000-2010 Joe Orton and others
  1397. This configure script may be copied, distributed and modified under the
  1398. terms of the GNU Library General Public license; see src/COPYING.LIB for
  1399. more details.
  1400. _ACEOF
  1401. exit
  1402. fi
  1403. ## ------------------------ ##
  1404. ## Autoconf initialization. ##
  1405. ## ------------------------ ##
  1406. # ac_fn_c_try_compile LINENO
  1407. # --------------------------
  1408. # Try to compile conftest.$ac_ext, and return whether this succeeded.
  1409. ac_fn_c_try_compile ()
  1410. {
  1411. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1412. rm -f conftest.$ac_objext
  1413. if { { ac_try="$ac_compile"
  1414. case "(($ac_try" in
  1415. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1416. *) ac_try_echo=$ac_try;;
  1417. esac
  1418. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1419. $as_echo "$ac_try_echo"; } >&5
  1420. (eval "$ac_compile") 2>conftest.err
  1421. ac_status=$?
  1422. if test -s conftest.err; then
  1423. grep -v '^ *+' conftest.err >conftest.er1
  1424. cat conftest.er1 >&5
  1425. mv -f conftest.er1 conftest.err
  1426. fi
  1427. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1428. test $ac_status = 0; } && {
  1429. test -z "$ac_c_werror_flag" ||
  1430. test ! -s conftest.err
  1431. } && test -s conftest.$ac_objext; then :
  1432. ac_retval=0
  1433. else
  1434. $as_echo "$as_me: failed program was:" >&5
  1435. sed 's/^/| /' conftest.$ac_ext >&5
  1436. ac_retval=1
  1437. fi
  1438. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1439. as_fn_set_status $ac_retval
  1440. } # ac_fn_c_try_compile
  1441. # ac_fn_c_try_cpp LINENO
  1442. # ----------------------
  1443. # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
  1444. ac_fn_c_try_cpp ()
  1445. {
  1446. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1447. if { { ac_try="$ac_cpp conftest.$ac_ext"
  1448. case "(($ac_try" in
  1449. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1450. *) ac_try_echo=$ac_try;;
  1451. esac
  1452. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1453. $as_echo "$ac_try_echo"; } >&5
  1454. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
  1455. ac_status=$?
  1456. if test -s conftest.err; then
  1457. grep -v '^ *+' conftest.err >conftest.er1
  1458. cat conftest.er1 >&5
  1459. mv -f conftest.er1 conftest.err
  1460. fi
  1461. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1462. test $ac_status = 0; } > conftest.i && {
  1463. test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
  1464. test ! -s conftest.err
  1465. }; then :
  1466. ac_retval=0
  1467. else
  1468. $as_echo "$as_me: failed program was:" >&5
  1469. sed 's/^/| /' conftest.$ac_ext >&5
  1470. ac_retval=1
  1471. fi
  1472. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1473. as_fn_set_status $ac_retval
  1474. } # ac_fn_c_try_cpp
  1475. # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
  1476. # -------------------------------------------------------
  1477. # Tests whether HEADER exists, giving a warning if it cannot be compiled using
  1478. # the include files in INCLUDES and setting the cache variable VAR
  1479. # accordingly.
  1480. ac_fn_c_check_header_mongrel ()
  1481. {
  1482. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1483. if eval \${$3+:} false; then :
  1484. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  1485. $as_echo_n "checking for $2... " >&6; }
  1486. if eval \${$3+:} false; then :
  1487. $as_echo_n "(cached) " >&6
  1488. fi
  1489. eval ac_res=\$$3
  1490. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1491. $as_echo "$ac_res" >&6; }
  1492. else
  1493. # Is the header compilable?
  1494. { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
  1495. $as_echo_n "checking $2 usability... " >&6; }
  1496. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1497. /* end confdefs.h. */
  1498. $4
  1499. #include <$2>
  1500. _ACEOF
  1501. if ac_fn_c_try_compile "$LINENO"; then :
  1502. ac_header_compiler=yes
  1503. else
  1504. ac_header_compiler=no
  1505. fi
  1506. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  1507. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
  1508. $as_echo "$ac_header_compiler" >&6; }
  1509. # Is the header present?
  1510. { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
  1511. $as_echo_n "checking $2 presence... " >&6; }
  1512. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1513. /* end confdefs.h. */
  1514. #include <$2>
  1515. _ACEOF
  1516. if ac_fn_c_try_cpp "$LINENO"; then :
  1517. ac_header_preproc=yes
  1518. else
  1519. ac_header_preproc=no
  1520. fi
  1521. rm -f conftest.err conftest.i conftest.$ac_ext
  1522. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
  1523. $as_echo "$ac_header_preproc" >&6; }
  1524. # So? What about this header?
  1525. case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
  1526. yes:no: )
  1527. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
  1528. $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
  1529. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
  1530. $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
  1531. ;;
  1532. no:yes:* )
  1533. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
  1534. $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
  1535. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
  1536. $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
  1537. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
  1538. $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
  1539. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
  1540. $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
  1541. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
  1542. $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
  1543. ( $as_echo "## ---------------------------------------- ##
  1544. ## Report this to [email protected] ##
  1545. ## ---------------------------------------- ##"
  1546. ) | sed "s/^/$as_me: WARNING: /" >&2
  1547. ;;
  1548. esac
  1549. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  1550. $as_echo_n "checking for $2... " >&6; }
  1551. if eval \${$3+:} false; then :
  1552. $as_echo_n "(cached) " >&6
  1553. else
  1554. eval "$3=\$ac_header_compiler"
  1555. fi
  1556. eval ac_res=\$$3
  1557. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1558. $as_echo "$ac_res" >&6; }
  1559. fi
  1560. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1561. } # ac_fn_c_check_header_mongrel
  1562. # ac_fn_c_try_run LINENO
  1563. # ----------------------
  1564. # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
  1565. # that executables *can* be run.
  1566. ac_fn_c_try_run ()
  1567. {
  1568. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1569. if { { ac_try="$ac_link"
  1570. case "(($ac_try" in
  1571. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1572. *) ac_try_echo=$ac_try;;
  1573. esac
  1574. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1575. $as_echo "$ac_try_echo"; } >&5
  1576. (eval "$ac_link") 2>&5
  1577. ac_status=$?
  1578. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1579. test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
  1580. { { case "(($ac_try" in
  1581. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1582. *) ac_try_echo=$ac_try;;
  1583. esac
  1584. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1585. $as_echo "$ac_try_echo"; } >&5
  1586. (eval "$ac_try") 2>&5
  1587. ac_status=$?
  1588. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1589. test $ac_status = 0; }; }; then :
  1590. ac_retval=0
  1591. else
  1592. $as_echo "$as_me: program exited with status $ac_status" >&5
  1593. $as_echo "$as_me: failed program was:" >&5
  1594. sed 's/^/| /' conftest.$ac_ext >&5
  1595. ac_retval=$ac_status
  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_check_header_compile LINENO HEADER VAR INCLUDES
  1602. # -------------------------------------------------------
  1603. # Tests whether HEADER exists and can be compiled using the include files in
  1604. # INCLUDES, setting the cache variable VAR accordingly.
  1605. ac_fn_c_check_header_compile ()
  1606. {
  1607. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1608. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  1609. $as_echo_n "checking for $2... " >&6; }
  1610. if eval \${$3+:} false; then :
  1611. $as_echo_n "(cached) " >&6
  1612. else
  1613. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1614. /* end confdefs.h. */
  1615. $4
  1616. #include <$2>
  1617. _ACEOF
  1618. if ac_fn_c_try_compile "$LINENO"; then :
  1619. eval "$3=yes"
  1620. else
  1621. eval "$3=no"
  1622. fi
  1623. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  1624. fi
  1625. eval ac_res=\$$3
  1626. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1627. $as_echo "$ac_res" >&6; }
  1628. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1629. } # ac_fn_c_check_header_compile
  1630. # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
  1631. # -------------------------------------------
  1632. # Tests whether TYPE exists after having included INCLUDES, setting cache
  1633. # variable VAR accordingly.
  1634. ac_fn_c_check_type ()
  1635. {
  1636. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1637. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  1638. $as_echo_n "checking for $2... " >&6; }
  1639. if eval \${$3+:} false; then :
  1640. $as_echo_n "(cached) " >&6
  1641. else
  1642. eval "$3=no"
  1643. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1644. /* end confdefs.h. */
  1645. $4
  1646. int
  1647. main ()
  1648. {
  1649. if (sizeof ($2))
  1650. return 0;
  1651. ;
  1652. return 0;
  1653. }
  1654. _ACEOF
  1655. if ac_fn_c_try_compile "$LINENO"; then :
  1656. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1657. /* end confdefs.h. */
  1658. $4
  1659. int
  1660. main ()
  1661. {
  1662. if (sizeof (($2)))
  1663. return 0;
  1664. ;
  1665. return 0;
  1666. }
  1667. _ACEOF
  1668. if ac_fn_c_try_compile "$LINENO"; then :
  1669. else
  1670. eval "$3=yes"
  1671. fi
  1672. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  1673. fi
  1674. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  1675. fi
  1676. eval ac_res=\$$3
  1677. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1678. $as_echo "$ac_res" >&6; }
  1679. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1680. } # ac_fn_c_check_type
  1681. # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
  1682. # --------------------------------------------
  1683. # Tries to find the compile-time value of EXPR in a program that includes
  1684. # INCLUDES, setting VAR accordingly. Returns whether the value could be
  1685. # computed
  1686. ac_fn_c_compute_int ()
  1687. {
  1688. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1689. if test "$cross_compiling" = yes; then
  1690. # Depending upon the size, compute the lo and hi bounds.
  1691. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1692. /* end confdefs.h. */
  1693. $4
  1694. int
  1695. main ()
  1696. {
  1697. static int test_array [1 - 2 * !(($2) >= 0)];
  1698. test_array [0] = 0;
  1699. return test_array [0];
  1700. ;
  1701. return 0;
  1702. }
  1703. _ACEOF
  1704. if ac_fn_c_try_compile "$LINENO"; then :
  1705. ac_lo=0 ac_mid=0
  1706. while :; do
  1707. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1708. /* end confdefs.h. */
  1709. $4
  1710. int
  1711. main ()
  1712. {
  1713. static int test_array [1 - 2 * !(($2) <= $ac_mid)];
  1714. test_array [0] = 0;
  1715. return test_array [0];
  1716. ;
  1717. return 0;
  1718. }
  1719. _ACEOF
  1720. if ac_fn_c_try_compile "$LINENO"; then :
  1721. ac_hi=$ac_mid; break
  1722. else
  1723. as_fn_arith $ac_mid + 1 && ac_lo=$as_val
  1724. if test $ac_lo -le $ac_mid; then
  1725. ac_lo= ac_hi=
  1726. break
  1727. fi
  1728. as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
  1729. fi
  1730. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  1731. done
  1732. else
  1733. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1734. /* end confdefs.h. */
  1735. $4
  1736. int
  1737. main ()
  1738. {
  1739. static int test_array [1 - 2 * !(($2) < 0)];
  1740. test_array [0] = 0;
  1741. return test_array [0];
  1742. ;
  1743. return 0;
  1744. }
  1745. _ACEOF
  1746. if ac_fn_c_try_compile "$LINENO"; then :
  1747. ac_hi=-1 ac_mid=-1
  1748. while :; do
  1749. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1750. /* end confdefs.h. */
  1751. $4
  1752. int
  1753. main ()
  1754. {
  1755. static int test_array [1 - 2 * !(($2) >= $ac_mid)];
  1756. test_array [0] = 0;
  1757. return test_array [0];
  1758. ;
  1759. return 0;
  1760. }
  1761. _ACEOF
  1762. if ac_fn_c_try_compile "$LINENO"; then :
  1763. ac_lo=$ac_mid; break
  1764. else
  1765. as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
  1766. if test $ac_mid -le $ac_hi; then
  1767. ac_lo= ac_hi=
  1768. break
  1769. fi
  1770. as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
  1771. fi
  1772. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  1773. done
  1774. else
  1775. ac_lo= ac_hi=
  1776. fi
  1777. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  1778. fi
  1779. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  1780. # Binary search between lo and hi bounds.
  1781. while test "x$ac_lo" != "x$ac_hi"; do
  1782. as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
  1783. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1784. /* end confdefs.h. */
  1785. $4
  1786. int
  1787. main ()
  1788. {
  1789. static int test_array [1 - 2 * !(($2) <= $ac_mid)];
  1790. test_array [0] = 0;
  1791. return test_array [0];
  1792. ;
  1793. return 0;
  1794. }
  1795. _ACEOF
  1796. if ac_fn_c_try_compile "$LINENO"; then :
  1797. ac_hi=$ac_mid
  1798. else
  1799. as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
  1800. fi
  1801. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  1802. done
  1803. case $ac_lo in #((
  1804. ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
  1805. '') ac_retval=1 ;;
  1806. esac
  1807. else
  1808. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1809. /* end confdefs.h. */
  1810. $4
  1811. static long int longval () { return $2; }
  1812. static unsigned long int ulongval () { return $2; }
  1813. #include <stdio.h>
  1814. #include <stdlib.h>
  1815. int
  1816. main ()
  1817. {
  1818. FILE *f = fopen ("conftest.val", "w");
  1819. if (! f)
  1820. return 1;
  1821. if (($2) < 0)
  1822. {
  1823. long int i = longval ();
  1824. if (i != ($2))
  1825. return 1;
  1826. fprintf (f, "%ld", i);
  1827. }
  1828. else
  1829. {
  1830. unsigned long int i = ulongval ();
  1831. if (i != ($2))
  1832. return 1;
  1833. fprintf (f, "%lu", i);
  1834. }
  1835. /* Do not output a trailing newline, as this causes \r\n confusion
  1836. on some platforms. */
  1837. return ferror (f) || fclose (f) != 0;
  1838. ;
  1839. return 0;
  1840. }
  1841. _ACEOF
  1842. if ac_fn_c_try_run "$LINENO"; then :
  1843. echo >>conftest.val; read $3 <conftest.val; ac_retval=0
  1844. else
  1845. ac_retval=1
  1846. fi
  1847. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  1848. conftest.$ac_objext conftest.beam conftest.$ac_ext
  1849. rm -f conftest.val
  1850. fi
  1851. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1852. as_fn_set_status $ac_retval
  1853. } # ac_fn_c_compute_int
  1854. # ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
  1855. # ---------------------------------------------
  1856. # Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
  1857. # accordingly.
  1858. ac_fn_c_check_decl ()
  1859. {
  1860. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1861. as_decl_name=`echo $2|sed 's/ *(.*//'`
  1862. as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
  1863. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
  1864. $as_echo_n "checking whether $as_decl_name is declared... " >&6; }
  1865. if eval \${$3+:} false; then :
  1866. $as_echo_n "(cached) " >&6
  1867. else
  1868. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1869. /* end confdefs.h. */
  1870. $4
  1871. int
  1872. main ()
  1873. {
  1874. #ifndef $as_decl_name
  1875. #ifdef __cplusplus
  1876. (void) $as_decl_use;
  1877. #else
  1878. (void) $as_decl_name;
  1879. #endif
  1880. #endif
  1881. ;
  1882. return 0;
  1883. }
  1884. _ACEOF
  1885. if ac_fn_c_try_compile "$LINENO"; then :
  1886. eval "$3=yes"
  1887. else
  1888. eval "$3=no"
  1889. fi
  1890. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  1891. fi
  1892. eval ac_res=\$$3
  1893. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1894. $as_echo "$ac_res" >&6; }
  1895. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1896. } # ac_fn_c_check_decl
  1897. # ac_fn_c_try_link LINENO
  1898. # -----------------------
  1899. # Try to link conftest.$ac_ext, and return whether this succeeded.
  1900. ac_fn_c_try_link ()
  1901. {
  1902. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1903. rm -f conftest.$ac_objext conftest$ac_exeext
  1904. if { { ac_try="$ac_link"
  1905. case "(($ac_try" in
  1906. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1907. *) ac_try_echo=$ac_try;;
  1908. esac
  1909. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1910. $as_echo "$ac_try_echo"; } >&5
  1911. (eval "$ac_link") 2>conftest.err
  1912. ac_status=$?
  1913. if test -s conftest.err; then
  1914. grep -v '^ *+' conftest.err >conftest.er1
  1915. cat conftest.er1 >&5
  1916. mv -f conftest.er1 conftest.err
  1917. fi
  1918. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1919. test $ac_status = 0; } && {
  1920. test -z "$ac_c_werror_flag" ||
  1921. test ! -s conftest.err
  1922. } && test -s conftest$ac_exeext && {
  1923. test "$cross_compiling" = yes ||
  1924. test -x conftest$ac_exeext
  1925. }; then :
  1926. ac_retval=0
  1927. else
  1928. $as_echo "$as_me: failed program was:" >&5
  1929. sed 's/^/| /' conftest.$ac_ext >&5
  1930. ac_retval=1
  1931. fi
  1932. # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
  1933. # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
  1934. # interfere with the next link command; also delete a directory that is
  1935. # left behind by Apple's compiler. We do this before executing the actions.
  1936. rm -rf conftest.dSYM conftest_ipa8_conftest.oo
  1937. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1938. as_fn_set_status $ac_retval
  1939. } # ac_fn_c_try_link
  1940. # ac_fn_c_check_func LINENO FUNC VAR
  1941. # ----------------------------------
  1942. # Tests whether FUNC exists, setting the cache variable VAR accordingly
  1943. ac_fn_c_check_func ()
  1944. {
  1945. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1946. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  1947. $as_echo_n "checking for $2... " >&6; }
  1948. if eval \${$3+:} false; then :
  1949. $as_echo_n "(cached) " >&6
  1950. else
  1951. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1952. /* end confdefs.h. */
  1953. /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
  1954. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  1955. #define $2 innocuous_$2
  1956. /* System header to define __stub macros and hopefully few prototypes,
  1957. which can conflict with char $2 (); below.
  1958. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  1959. <limits.h> exists even on freestanding compilers. */
  1960. #ifdef __STDC__
  1961. # include <limits.h>
  1962. #else
  1963. # include <assert.h>
  1964. #endif
  1965. #undef $2
  1966. /* Override any GCC internal prototype to avoid an error.
  1967. Use char because int might match the return type of a GCC
  1968. builtin and then its argument prototype would still apply. */
  1969. #ifdef __cplusplus
  1970. extern "C"
  1971. #endif
  1972. char $2 ();
  1973. /* The GNU C library defines this for functions which it implements
  1974. to always fail with ENOSYS. Some functions are actually named
  1975. something starting with __ and the normal name is an alias. */
  1976. #if defined __stub_$2 || defined __stub___$2
  1977. choke me
  1978. #endif
  1979. int
  1980. main ()
  1981. {
  1982. return $2 ();
  1983. ;
  1984. return 0;
  1985. }
  1986. _ACEOF
  1987. if ac_fn_c_try_link "$LINENO"; then :
  1988. eval "$3=yes"
  1989. else
  1990. eval "$3=no"
  1991. fi
  1992. rm -f core conftest.err conftest.$ac_objext \
  1993. conftest$ac_exeext conftest.$ac_ext
  1994. fi
  1995. eval ac_res=\$$3
  1996. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1997. $as_echo "$ac_res" >&6; }
  1998. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1999. } # ac_fn_c_check_func
  2000. # ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
  2001. # ----------------------------------------------------
  2002. # Tries to find if the field MEMBER exists in type AGGR, after including
  2003. # INCLUDES, setting cache variable VAR accordingly.
  2004. ac_fn_c_check_member ()
  2005. {
  2006. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  2007. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
  2008. $as_echo_n "checking for $2.$3... " >&6; }
  2009. if eval \${$4+:} false; then :
  2010. $as_echo_n "(cached) " >&6
  2011. else
  2012. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2013. /* end confdefs.h. */
  2014. $5
  2015. int
  2016. main ()
  2017. {
  2018. static $2 ac_aggr;
  2019. if (ac_aggr.$3)
  2020. return 0;
  2021. ;
  2022. return 0;
  2023. }
  2024. _ACEOF
  2025. if ac_fn_c_try_compile "$LINENO"; then :
  2026. eval "$4=yes"
  2027. else
  2028. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2029. /* end confdefs.h. */
  2030. $5
  2031. int
  2032. main ()
  2033. {
  2034. static $2 ac_aggr;
  2035. if (sizeof ac_aggr.$3)
  2036. return 0;
  2037. ;
  2038. return 0;
  2039. }
  2040. _ACEOF
  2041. if ac_fn_c_try_compile "$LINENO"; then :
  2042. eval "$4=yes"
  2043. else
  2044. eval "$4=no"
  2045. fi
  2046. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  2047. fi
  2048. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  2049. fi
  2050. eval ac_res=\$$4
  2051. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  2052. $as_echo "$ac_res" >&6; }
  2053. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  2054. } # ac_fn_c_check_member
  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.31.0, which was
  2059. generated by GNU Autoconf 2.69. Invocation command line was
  2060. $ $0 $@
  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. test -z "$as_dir" && as_dir=.
  2088. $as_echo "PATH: $as_dir"
  2089. done
  2090. IFS=$as_save_IFS
  2091. } >&5
  2092. cat >&5 <<_ACEOF
  2093. ## ----------- ##
  2094. ## Core tests. ##
  2095. ## ----------- ##
  2096. _ACEOF
  2097. # Keep a trace of the command line.
  2098. # Strip out --no-create and --no-recursion so they do not pile up.
  2099. # Strip out --silent because we don't want to record it for future runs.
  2100. # Also quote any args containing shell meta-characters.
  2101. # Make two passes to allow for proper duplicate-argument suppression.
  2102. ac_configure_args=
  2103. ac_configure_args0=
  2104. ac_configure_args1=
  2105. ac_must_keep_next=false
  2106. for ac_pass in 1 2
  2107. do
  2108. for ac_arg
  2109. do
  2110. case $ac_arg in
  2111. -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
  2112. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  2113. | -silent | --silent | --silen | --sile | --sil)
  2114. continue ;;
  2115. *\'*)
  2116. ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
  2117. esac
  2118. case $ac_pass in
  2119. 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
  2120. 2)
  2121. as_fn_append ac_configure_args1 " '$ac_arg'"
  2122. if test $ac_must_keep_next = true; then
  2123. ac_must_keep_next=false # Got value, back to normal.
  2124. else
  2125. case $ac_arg in
  2126. *=* | --config-cache | -C | -disable-* | --disable-* \
  2127. | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
  2128. | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
  2129. | -with-* | --with-* | -without-* | --without-* | --x)
  2130. case "$ac_configure_args0 " in
  2131. "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
  2132. esac
  2133. ;;
  2134. -* ) ac_must_keep_next=true ;;
  2135. esac
  2136. fi
  2137. as_fn_append ac_configure_args " '$ac_arg'"
  2138. ;;
  2139. esac
  2140. done
  2141. done
  2142. { ac_configure_args0=; unset ac_configure_args0;}
  2143. { ac_configure_args1=; unset ac_configure_args1;}
  2144. # When interrupted or exit'd, cleanup temporary files, and complete
  2145. # config.log. We remove comments because anyway the quotes in there
  2146. # would cause problems or look ugly.
  2147. # WARNING: Use '\'' to represent an apostrophe within the trap.
  2148. # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
  2149. trap 'exit_status=$?
  2150. # Save into config.log some information that might help in debugging.
  2151. {
  2152. echo
  2153. $as_echo "## ---------------- ##
  2154. ## Cache variables. ##
  2155. ## ---------------- ##"
  2156. echo
  2157. # The following way of writing the cache mishandles newlines in values,
  2158. (
  2159. for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
  2160. eval ac_val=\$$ac_var
  2161. case $ac_val in #(
  2162. *${as_nl}*)
  2163. case $ac_var in #(
  2164. *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
  2165. $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
  2166. esac
  2167. case $ac_var in #(
  2168. _ | IFS | as_nl) ;; #(
  2169. BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
  2170. *) { eval $ac_var=; unset $ac_var;} ;;
  2171. esac ;;
  2172. esac
  2173. done
  2174. (set) 2>&1 |
  2175. case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
  2176. *${as_nl}ac_space=\ *)
  2177. sed -n \
  2178. "s/'\''/'\''\\\\'\'''\''/g;
  2179. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
  2180. ;; #(
  2181. *)
  2182. sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
  2183. ;;
  2184. esac |
  2185. sort
  2186. )
  2187. echo
  2188. $as_echo "## ----------------- ##
  2189. ## Output variables. ##
  2190. ## ----------------- ##"
  2191. echo
  2192. for ac_var in $ac_subst_vars
  2193. do
  2194. eval ac_val=\$$ac_var
  2195. case $ac_val in
  2196. *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
  2197. esac
  2198. $as_echo "$ac_var='\''$ac_val'\''"
  2199. done | sort
  2200. echo
  2201. if test -n "$ac_subst_files"; then
  2202. $as_echo "## ------------------- ##
  2203. ## File substitutions. ##
  2204. ## ------------------- ##"
  2205. echo
  2206. for ac_var in $ac_subst_files
  2207. do
  2208. eval ac_val=\$$ac_var
  2209. case $ac_val in
  2210. *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
  2211. esac
  2212. $as_echo "$ac_var='\''$ac_val'\''"
  2213. done | sort
  2214. echo
  2215. fi
  2216. if test -s confdefs.h; then
  2217. $as_echo "## ----------- ##
  2218. ## confdefs.h. ##
  2219. ## ----------- ##"
  2220. echo
  2221. cat confdefs.h
  2222. echo
  2223. fi
  2224. test "$ac_signal" != 0 &&
  2225. $as_echo "$as_me: caught signal $ac_signal"
  2226. $as_echo "$as_me: exit $exit_status"
  2227. } >&5
  2228. rm -f core *.core core.conftest.* &&
  2229. rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
  2230. exit $exit_status
  2231. ' 0
  2232. for ac_signal in 1 2 13 15; do
  2233. trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
  2234. done
  2235. ac_signal=0
  2236. # confdefs.h avoids OS command line length limits that DEFS can exceed.
  2237. rm -f -r conftest* confdefs.h
  2238. $as_echo "/* confdefs.h */" > confdefs.h
  2239. # Predefined preprocessor variables.
  2240. cat >>confdefs.h <<_ACEOF
  2241. #define PACKAGE_NAME "$PACKAGE_NAME"
  2242. _ACEOF
  2243. cat >>confdefs.h <<_ACEOF
  2244. #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
  2245. _ACEOF
  2246. cat >>confdefs.h <<_ACEOF
  2247. #define PACKAGE_VERSION "$PACKAGE_VERSION"
  2248. _ACEOF
  2249. cat >>confdefs.h <<_ACEOF
  2250. #define PACKAGE_STRING "$PACKAGE_STRING"
  2251. _ACEOF
  2252. cat >>confdefs.h <<_ACEOF
  2253. #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
  2254. _ACEOF
  2255. cat >>confdefs.h <<_ACEOF
  2256. #define PACKAGE_URL "$PACKAGE_URL"
  2257. _ACEOF
  2258. # Let the site file select an alternate cache file if it wants to.
  2259. # Prefer an explicitly selected file to automatically selected ones.
  2260. ac_site_file1=NONE
  2261. ac_site_file2=NONE
  2262. if test -n "$CONFIG_SITE"; then
  2263. # We do not want a PATH search for config.site.
  2264. case $CONFIG_SITE in #((
  2265. -*) ac_site_file1=./$CONFIG_SITE;;
  2266. */*) ac_site_file1=$CONFIG_SITE;;
  2267. *) ac_site_file1=./$CONFIG_SITE;;
  2268. esac
  2269. elif test "x$prefix" != xNONE; then
  2270. ac_site_file1=$prefix/share/config.site
  2271. ac_site_file2=$prefix/etc/config.site
  2272. else
  2273. ac_site_file1=$ac_default_prefix/share/config.site
  2274. ac_site_file2=$ac_default_prefix/etc/config.site
  2275. fi
  2276. for ac_site_file in "$ac_site_file1" "$ac_site_file2"
  2277. do
  2278. test "x$ac_site_file" = xNONE && continue
  2279. if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
  2280. { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
  2281. $as_echo "$as_me: loading site script $ac_site_file" >&6;}
  2282. sed 's/^/| /' "$ac_site_file" >&5
  2283. . "$ac_site_file" \
  2284. || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  2285. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  2286. as_fn_error $? "failed to load site script $ac_site_file
  2287. See \`config.log' for more details" "$LINENO" 5; }
  2288. fi
  2289. done
  2290. if test -r "$cache_file"; then
  2291. # Some versions of bash will fail to source /dev/null (special files
  2292. # actually), so we avoid doing that. DJGPP emulates it as a regular file.
  2293. if test /dev/null != "$cache_file" && test -f "$cache_file"; then
  2294. { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
  2295. $as_echo "$as_me: loading cache $cache_file" >&6;}
  2296. case $cache_file in
  2297. [\\/]* | ?:[\\/]* ) . "$cache_file";;
  2298. *) . "./$cache_file";;
  2299. esac
  2300. fi
  2301. else
  2302. { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
  2303. $as_echo "$as_me: creating cache $cache_file" >&6;}
  2304. >$cache_file
  2305. fi
  2306. # Check that the precious variables saved in the cache have kept the same
  2307. # value.
  2308. ac_cache_corrupted=false
  2309. for ac_var in $ac_precious_vars; do
  2310. eval ac_old_set=\$ac_cv_env_${ac_var}_set
  2311. eval ac_new_set=\$ac_env_${ac_var}_set
  2312. eval ac_old_val=\$ac_cv_env_${ac_var}_value
  2313. eval ac_new_val=\$ac_env_${ac_var}_value
  2314. case $ac_old_set,$ac_new_set in
  2315. set,)
  2316. { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
  2317. $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
  2318. ac_cache_corrupted=: ;;
  2319. ,set)
  2320. { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
  2321. $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
  2322. ac_cache_corrupted=: ;;
  2323. ,);;
  2324. *)
  2325. if test "x$ac_old_val" != "x$ac_new_val"; then
  2326. # differences in whitespace do not lead to failure.
  2327. ac_old_val_w=`echo x $ac_old_val`
  2328. ac_new_val_w=`echo x $ac_new_val`
  2329. if test "$ac_old_val_w" != "$ac_new_val_w"; then
  2330. { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
  2331. $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
  2332. ac_cache_corrupted=:
  2333. else
  2334. { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
  2335. $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
  2336. eval $ac_var=\$ac_old_val
  2337. fi
  2338. { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
  2339. $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
  2340. { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
  2341. $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
  2342. fi;;
  2343. esac
  2344. # Pass precious variables to config.status.
  2345. if test "$ac_new_set" = set; then
  2346. case $ac_new_val in
  2347. *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
  2348. *) ac_arg=$ac_var=$ac_new_val ;;
  2349. esac
  2350. case " $ac_configure_args " in
  2351. *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
  2352. *) as_fn_append ac_configure_args " '$ac_arg'" ;;
  2353. esac
  2354. fi
  2355. done
  2356. if $ac_cache_corrupted; then
  2357. { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  2358. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  2359. { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
  2360. $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
  2361. as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
  2362. fi
  2363. ## -------------------- ##
  2364. ## Main body of script. ##
  2365. ## -------------------- ##
  2366. ac_ext=c
  2367. ac_cpp='$CPP $CPPFLAGS'
  2368. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  2369. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  2370. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  2371. ac_config_headers="$ac_config_headers config.h"
  2372. # Check whether --with-libs was given.
  2373. if test "${with_libs+set}" = set; then :
  2374. withval=$with_libs; case $with_libs in
  2375. yes|no) as_fn_error $? "--with-libs must be passed a directory argument" "$LINENO" 5 ;;
  2376. *) ne_save_IFS=$IFS; IFS=:
  2377. for dir in $with_libs; do
  2378. ne_add_CPPFLAGS="$ne_add_CPPFLAGS -I${dir}/include"
  2379. ne_add_LDFLAGS="$ne_add_LDFLAGS -L${dir}/lib"
  2380. ne_add_PATH="${ne_add_PATH}${dir}/bin:"
  2381. PKG_CONFIG_PATH=${PKG_CONFIG_PATH}${PKG_CONFIG_PATH+:}${dir}/lib/pkgconfig
  2382. done
  2383. IFS=$ne_save_IFS
  2384. CPPFLAGS="${ne_add_CPPFLAGS} $CPPFLAGS"
  2385. LDFLAGS="${ne_add_LDFLAGS} $LDFLAGS"
  2386. PATH=${ne_add_PATH}$PATH
  2387. export PKG_CONFIG_PATH ;;
  2388. esac
  2389. fi
  2390. # Pass through initial LDFLAGS verbatim to neon-config, so that extra
  2391. # libraries which are detected (e.g. OpenSSL) can still be found when
  2392. # building using the --libs output of neon-config.
  2393. user_LDFLAGS=$LDFLAGS
  2394. # By default, allow 'make install' to work.
  2395. ALLOW_INSTALL=yes
  2396. $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
  2397. $as_echo "#define NEON_IS_LIBRARY 1" >>confdefs.h
  2398. ac_aux_dir=
  2399. for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
  2400. if test -f "$ac_dir/install-sh"; then
  2401. ac_aux_dir=$ac_dir
  2402. ac_install_sh="$ac_aux_dir/install-sh -c"
  2403. break
  2404. elif test -f "$ac_dir/install.sh"; then
  2405. ac_aux_dir=$ac_dir
  2406. ac_install_sh="$ac_aux_dir/install.sh -c"
  2407. break
  2408. elif test -f "$ac_dir/shtool"; then
  2409. ac_aux_dir=$ac_dir
  2410. ac_install_sh="$ac_aux_dir/shtool install -c"
  2411. break
  2412. fi
  2413. done
  2414. if test -z "$ac_aux_dir"; then
  2415. as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
  2416. fi
  2417. # These three variables are undocumented and unsupported,
  2418. # and are intended to be withdrawn in a future Autoconf release.
  2419. # They can cause serious problems if a builder's source tree is in a directory
  2420. # whose full name contains unusual characters.
  2421. ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
  2422. ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
  2423. ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
  2424. # Find a good install program. We prefer a C program (faster),
  2425. # so one script is as good as another. But avoid the broken or
  2426. # incompatible versions:
  2427. # SysV /etc/install, /usr/sbin/install
  2428. # SunOS /usr/etc/install
  2429. # IRIX /sbin/install
  2430. # AIX /bin/install
  2431. # AmigaOS /C/install, which installs bootblocks on floppy discs
  2432. # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
  2433. # AFS /usr/afsws/bin/install, which mishandles nonexistent args
  2434. # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
  2435. # OS/2's system install, which has a completely different semantic
  2436. # ./install, which can be erroneously created by make from ./install.sh.
  2437. # Reject install programs that cannot install multiple files.
  2438. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
  2439. $as_echo_n "checking for a BSD-compatible install... " >&6; }
  2440. if test -z "$INSTALL"; then
  2441. if ${ac_cv_path_install+:} false; then :
  2442. $as_echo_n "(cached) " >&6
  2443. else
  2444. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2445. for as_dir in $PATH
  2446. do
  2447. IFS=$as_save_IFS
  2448. test -z "$as_dir" && as_dir=.
  2449. # Account for people who put trailing slashes in PATH elements.
  2450. case $as_dir/ in #((
  2451. ./ | .// | /[cC]/* | \
  2452. /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
  2453. ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
  2454. /usr/ucb/* ) ;;
  2455. *)
  2456. # OSF1 and SCO ODT 3.0 have their own names for install.
  2457. # Don't use installbsd from OSF since it installs stuff as root
  2458. # by default.
  2459. for ac_prog in ginstall scoinst install; do
  2460. for ac_exec_ext in '' $ac_executable_extensions; do
  2461. if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
  2462. if test $ac_prog = install &&
  2463. grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
  2464. # AIX install. It has an incompatible calling convention.
  2465. :
  2466. elif test $ac_prog = install &&
  2467. grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
  2468. # program-specific install script used by HP pwplus--don't use.
  2469. :
  2470. else
  2471. rm -rf conftest.one conftest.two conftest.dir
  2472. echo one > conftest.one
  2473. echo two > conftest.two
  2474. mkdir conftest.dir
  2475. if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
  2476. test -s conftest.one && test -s conftest.two &&
  2477. test -s conftest.dir/conftest.one &&
  2478. test -s conftest.dir/conftest.two
  2479. then
  2480. ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
  2481. break 3
  2482. fi
  2483. fi
  2484. fi
  2485. done
  2486. done
  2487. ;;
  2488. esac
  2489. done
  2490. IFS=$as_save_IFS
  2491. rm -rf conftest.one conftest.two conftest.dir
  2492. fi
  2493. if test "${ac_cv_path_install+set}" = set; then
  2494. INSTALL=$ac_cv_path_install
  2495. else
  2496. # As a last resort, use the slow shell script. Don't cache a
  2497. # value for INSTALL within a source directory, because that will
  2498. # break other packages using the cache if that directory is
  2499. # removed, or if the value is a relative name.
  2500. INSTALL=$ac_install_sh
  2501. fi
  2502. fi
  2503. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
  2504. $as_echo "$INSTALL" >&6; }
  2505. # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
  2506. # It thinks the first close brace ends the variable substitution.
  2507. test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
  2508. test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
  2509. test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
  2510. # Check whether --enable-webdav was given.
  2511. if test "${enable_webdav+set}" = set; then :
  2512. enableval=$enable_webdav;
  2513. fi
  2514. if test "$enable_webdav" = "no"; then
  2515. neon_no_webdav=yes
  2516. neon_no_acl=yes
  2517. NEON_NEED_XML_PARSER=no
  2518. neon_xml_parser_message="none needed"
  2519. else
  2520. # Yes, we do need an XML parser. The _BUNDLED macros handle
  2521. # this normally.
  2522. NEON_NEED_XML_PARSER=yes
  2523. fi
  2524. # The bundled macros also set this, which makes sure we recurse
  2525. # into the 'src' directory.
  2526. NEON_BUILD_BUNDLED=yes
  2527. # Define NEON_VERSION etc and make the appropriate substitutions.
  2528. # Define the current versions.
  2529. NE_VERSION_MAJOR=0
  2530. NE_VERSION_MINOR=31
  2531. NE_VERSION_PATCH=0
  2532. NE_VERSION_TAG=
  2533. # 0.31.x is backwards-compatible to 0.27.x, so AGE=4
  2534. NE_LIBTOOL_VERSINFO="31:${NE_VERSION_PATCH}:4"
  2535. NEON_VERSION="${NE_VERSION_MAJOR}.${NE_VERSION_MINOR}.${NE_VERSION_PATCH}${NE_VERSION_TAG}"
  2536. cat >>confdefs.h <<_ACEOF
  2537. #define NEON_VERSION "${NEON_VERSION}"
  2538. _ACEOF
  2539. cat >>confdefs.h <<_ACEOF
  2540. #define NE_VERSION_MAJOR (${NE_VERSION_MAJOR})
  2541. _ACEOF
  2542. cat >>confdefs.h <<_ACEOF
  2543. #define NE_VERSION_MINOR (${NE_VERSION_MINOR})
  2544. _ACEOF
  2545. cat >>confdefs.h <<_ACEOF
  2546. #define NE_VERSION_PATCH (${NE_VERSION_PATCH})
  2547. _ACEOF
  2548. ac_ext=c
  2549. ac_cpp='$CPP $CPPFLAGS'
  2550. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  2551. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  2552. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  2553. if test -n "$ac_tool_prefix"; then
  2554. # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
  2555. set dummy ${ac_tool_prefix}gcc; ac_word=$2
  2556. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2557. $as_echo_n "checking for $ac_word... " >&6; }
  2558. if ${ac_cv_prog_CC+:} false; then :
  2559. $as_echo_n "(cached) " >&6
  2560. else
  2561. if test -n "$CC"; then
  2562. ac_cv_prog_CC="$CC" # Let the user override the test.
  2563. else
  2564. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2565. for as_dir in $PATH
  2566. do
  2567. IFS=$as_save_IFS
  2568. test -z "$as_dir" && as_dir=.
  2569. for ac_exec_ext in '' $ac_executable_extensions; do
  2570. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  2571. ac_cv_prog_CC="${ac_tool_prefix}gcc"
  2572. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2573. break 2
  2574. fi
  2575. done
  2576. done
  2577. IFS=$as_save_IFS
  2578. fi
  2579. fi
  2580. CC=$ac_cv_prog_CC
  2581. if test -n "$CC"; then
  2582. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  2583. $as_echo "$CC" >&6; }
  2584. else
  2585. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2586. $as_echo "no" >&6; }
  2587. fi
  2588. fi
  2589. if test -z "$ac_cv_prog_CC"; then
  2590. ac_ct_CC=$CC
  2591. # Extract the first word of "gcc", so it can be a program name with args.
  2592. set dummy gcc; ac_word=$2
  2593. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2594. $as_echo_n "checking for $ac_word... " >&6; }
  2595. if ${ac_cv_prog_ac_ct_CC+:} false; then :
  2596. $as_echo_n "(cached) " >&6
  2597. else
  2598. if test -n "$ac_ct_CC"; then
  2599. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  2600. else
  2601. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2602. for as_dir in $PATH
  2603. do
  2604. IFS=$as_save_IFS
  2605. test -z "$as_dir" && as_dir=.
  2606. for ac_exec_ext in '' $ac_executable_extensions; do
  2607. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  2608. ac_cv_prog_ac_ct_CC="gcc"
  2609. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2610. break 2
  2611. fi
  2612. done
  2613. done
  2614. IFS=$as_save_IFS
  2615. fi
  2616. fi
  2617. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  2618. if test -n "$ac_ct_CC"; then
  2619. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
  2620. $as_echo "$ac_ct_CC" >&6; }
  2621. else
  2622. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2623. $as_echo "no" >&6; }
  2624. fi
  2625. if test "x$ac_ct_CC" = x; then
  2626. CC=""
  2627. else
  2628. case $cross_compiling:$ac_tool_warned in
  2629. yes:)
  2630. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  2631. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  2632. ac_tool_warned=yes ;;
  2633. esac
  2634. CC=$ac_ct_CC
  2635. fi
  2636. else
  2637. CC="$ac_cv_prog_CC"
  2638. fi
  2639. if test -z "$CC"; then
  2640. if test -n "$ac_tool_prefix"; then
  2641. # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
  2642. set dummy ${ac_tool_prefix}cc; ac_word=$2
  2643. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2644. $as_echo_n "checking for $ac_word... " >&6; }
  2645. if ${ac_cv_prog_CC+:} false; then :
  2646. $as_echo_n "(cached) " >&6
  2647. else
  2648. if test -n "$CC"; then
  2649. ac_cv_prog_CC="$CC" # Let the user override the test.
  2650. else
  2651. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2652. for as_dir in $PATH
  2653. do
  2654. IFS=$as_save_IFS
  2655. test -z "$as_dir" && as_dir=.
  2656. for ac_exec_ext in '' $ac_executable_extensions; do
  2657. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  2658. ac_cv_prog_CC="${ac_tool_prefix}cc"
  2659. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2660. break 2
  2661. fi
  2662. done
  2663. done
  2664. IFS=$as_save_IFS
  2665. fi
  2666. fi
  2667. CC=$ac_cv_prog_CC
  2668. if test -n "$CC"; then
  2669. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  2670. $as_echo "$CC" >&6; }
  2671. else
  2672. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2673. $as_echo "no" >&6; }
  2674. fi
  2675. fi
  2676. fi
  2677. if test -z "$CC"; then
  2678. # Extract the first word of "cc", so it can be a program name with args.
  2679. set dummy cc; ac_word=$2
  2680. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2681. $as_echo_n "checking for $ac_word... " >&6; }
  2682. if ${ac_cv_prog_CC+:} false; then :
  2683. $as_echo_n "(cached) " >&6
  2684. else
  2685. if test -n "$CC"; then
  2686. ac_cv_prog_CC="$CC" # Let the user override the test.
  2687. else
  2688. ac_prog_rejected=no
  2689. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2690. for as_dir in $PATH
  2691. do
  2692. IFS=$as_save_IFS
  2693. test -z "$as_dir" && as_dir=.
  2694. for ac_exec_ext in '' $ac_executable_extensions; do
  2695. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  2696. if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
  2697. ac_prog_rejected=yes
  2698. continue
  2699. fi
  2700. ac_cv_prog_CC="cc"
  2701. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2702. break 2
  2703. fi
  2704. done
  2705. done
  2706. IFS=$as_save_IFS
  2707. if test $ac_prog_rejected = yes; then
  2708. # We found a bogon in the path, so make sure we never use it.
  2709. set dummy $ac_cv_prog_CC
  2710. shift
  2711. if test $# != 0; then
  2712. # We chose a different compiler from the bogus one.
  2713. # However, it has the same basename, so the bogon will be chosen
  2714. # first if we set CC to just the basename; use the full file name.
  2715. shift
  2716. ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
  2717. fi
  2718. fi
  2719. fi
  2720. fi
  2721. CC=$ac_cv_prog_CC
  2722. if test -n "$CC"; then
  2723. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  2724. $as_echo "$CC" >&6; }
  2725. else
  2726. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2727. $as_echo "no" >&6; }
  2728. fi
  2729. fi
  2730. if test -z "$CC"; then
  2731. if test -n "$ac_tool_prefix"; then
  2732. for ac_prog in cl.exe
  2733. do
  2734. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  2735. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  2736. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2737. $as_echo_n "checking for $ac_word... " >&6; }
  2738. if ${ac_cv_prog_CC+:} false; then :
  2739. $as_echo_n "(cached) " >&6
  2740. else
  2741. if test -n "$CC"; then
  2742. ac_cv_prog_CC="$CC" # Let the user override the test.
  2743. else
  2744. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2745. for as_dir in $PATH
  2746. do
  2747. IFS=$as_save_IFS
  2748. test -z "$as_dir" && as_dir=.
  2749. for ac_exec_ext in '' $ac_executable_extensions; do
  2750. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  2751. ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
  2752. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2753. break 2
  2754. fi
  2755. done
  2756. done
  2757. IFS=$as_save_IFS
  2758. fi
  2759. fi
  2760. CC=$ac_cv_prog_CC
  2761. if test -n "$CC"; then
  2762. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  2763. $as_echo "$CC" >&6; }
  2764. else
  2765. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2766. $as_echo "no" >&6; }
  2767. fi
  2768. test -n "$CC" && break
  2769. done
  2770. fi
  2771. if test -z "$CC"; then
  2772. ac_ct_CC=$CC
  2773. for ac_prog in cl.exe
  2774. do
  2775. # Extract the first word of "$ac_prog", so it can be a program name with args.
  2776. set dummy $ac_prog; ac_word=$2
  2777. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2778. $as_echo_n "checking for $ac_word... " >&6; }
  2779. if ${ac_cv_prog_ac_ct_CC+:} false; then :
  2780. $as_echo_n "(cached) " >&6
  2781. else
  2782. if test -n "$ac_ct_CC"; then
  2783. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  2784. else
  2785. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2786. for as_dir in $PATH
  2787. do
  2788. IFS=$as_save_IFS
  2789. test -z "$as_dir" && as_dir=.
  2790. for ac_exec_ext in '' $ac_executable_extensions; do
  2791. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  2792. ac_cv_prog_ac_ct_CC="$ac_prog"
  2793. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2794. break 2
  2795. fi
  2796. done
  2797. done
  2798. IFS=$as_save_IFS
  2799. fi
  2800. fi
  2801. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  2802. if test -n "$ac_ct_CC"; then
  2803. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
  2804. $as_echo "$ac_ct_CC" >&6; }
  2805. else
  2806. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2807. $as_echo "no" >&6; }
  2808. fi
  2809. test -n "$ac_ct_CC" && break
  2810. done
  2811. if test "x$ac_ct_CC" = x; then
  2812. CC=""
  2813. else
  2814. case $cross_compiling:$ac_tool_warned in
  2815. yes:)
  2816. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  2817. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  2818. ac_tool_warned=yes ;;
  2819. esac
  2820. CC=$ac_ct_CC
  2821. fi
  2822. fi
  2823. fi
  2824. test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  2825. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  2826. as_fn_error $? "no acceptable C compiler found in \$PATH
  2827. See \`config.log' for more details" "$LINENO" 5; }
  2828. # Provide some information about the compiler.
  2829. $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
  2830. set X $ac_compile
  2831. ac_compiler=$2
  2832. for ac_option in --version -v -V -qversion; do
  2833. { { ac_try="$ac_compiler $ac_option >&5"
  2834. case "(($ac_try" in
  2835. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2836. *) ac_try_echo=$ac_try;;
  2837. esac
  2838. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  2839. $as_echo "$ac_try_echo"; } >&5
  2840. (eval "$ac_compiler $ac_option >&5") 2>conftest.err
  2841. ac_status=$?
  2842. if test -s conftest.err; then
  2843. sed '10a\
  2844. ... rest of stderr output deleted ...
  2845. 10q' conftest.err >conftest.er1
  2846. cat conftest.er1 >&5
  2847. fi
  2848. rm -f conftest.er1 conftest.err
  2849. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  2850. test $ac_status = 0; }
  2851. done
  2852. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2853. /* end confdefs.h. */
  2854. int
  2855. main ()
  2856. {
  2857. ;
  2858. return 0;
  2859. }
  2860. _ACEOF
  2861. ac_clean_files_save=$ac_clean_files
  2862. ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
  2863. # Try to create an executable without -o first, disregard a.out.
  2864. # It will help us diagnose broken compilers, and finding out an intuition
  2865. # of exeext.
  2866. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
  2867. $as_echo_n "checking whether the C compiler works... " >&6; }
  2868. ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
  2869. # The possible output files:
  2870. ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
  2871. ac_rmfiles=
  2872. for ac_file in $ac_files
  2873. do
  2874. case $ac_file in
  2875. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
  2876. * ) ac_rmfiles="$ac_rmfiles $ac_file";;
  2877. esac
  2878. done
  2879. rm -f $ac_rmfiles
  2880. if { { ac_try="$ac_link_default"
  2881. case "(($ac_try" in
  2882. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2883. *) ac_try_echo=$ac_try;;
  2884. esac
  2885. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  2886. $as_echo "$ac_try_echo"; } >&5
  2887. (eval "$ac_link_default") 2>&5
  2888. ac_status=$?
  2889. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  2890. test $ac_status = 0; }; then :
  2891. # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
  2892. # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
  2893. # in a Makefile. We should not override ac_cv_exeext if it was cached,
  2894. # so that the user can short-circuit this test for compilers unknown to
  2895. # Autoconf.
  2896. for ac_file in $ac_files ''
  2897. do
  2898. test -f "$ac_file" || continue
  2899. case $ac_file in
  2900. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
  2901. ;;
  2902. [ab].out )
  2903. # We found the default executable, but exeext='' is most
  2904. # certainly right.
  2905. break;;
  2906. *.* )
  2907. if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
  2908. then :; else
  2909. ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
  2910. fi
  2911. # We set ac_cv_exeext here because the later test for it is not
  2912. # safe: cross compilers may not add the suffix if given an `-o'
  2913. # argument, so we may need to know it at that point already.
  2914. # Even if this section looks crufty: it has the advantage of
  2915. # actually working.
  2916. break;;
  2917. * )
  2918. break;;
  2919. esac
  2920. done
  2921. test "$ac_cv_exeext" = no && ac_cv_exeext=
  2922. else
  2923. ac_file=''
  2924. fi
  2925. if test -z "$ac_file"; then :
  2926. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2927. $as_echo "no" >&6; }
  2928. $as_echo "$as_me: failed program was:" >&5
  2929. sed 's/^/| /' conftest.$ac_ext >&5
  2930. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  2931. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  2932. as_fn_error 77 "C compiler cannot create executables
  2933. See \`config.log' for more details" "$LINENO" 5; }
  2934. else
  2935. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  2936. $as_echo "yes" >&6; }
  2937. fi
  2938. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
  2939. $as_echo_n "checking for C compiler default output file name... " >&6; }
  2940. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
  2941. $as_echo "$ac_file" >&6; }
  2942. ac_exeext=$ac_cv_exeext
  2943. rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
  2944. ac_clean_files=$ac_clean_files_save
  2945. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
  2946. $as_echo_n "checking for suffix of executables... " >&6; }
  2947. if { { ac_try="$ac_link"
  2948. case "(($ac_try" in
  2949. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2950. *) ac_try_echo=$ac_try;;
  2951. esac
  2952. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  2953. $as_echo "$ac_try_echo"; } >&5
  2954. (eval "$ac_link") 2>&5
  2955. ac_status=$?
  2956. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  2957. test $ac_status = 0; }; then :
  2958. # If both `conftest.exe' and `conftest' are `present' (well, observable)
  2959. # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
  2960. # work properly (i.e., refer to `conftest.exe'), while it won't with
  2961. # `rm'.
  2962. for ac_file in conftest.exe conftest conftest.*; do
  2963. test -f "$ac_file" || continue
  2964. case $ac_file in
  2965. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
  2966. *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
  2967. break;;
  2968. * ) break;;
  2969. esac
  2970. done
  2971. else
  2972. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  2973. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  2974. as_fn_error $? "cannot compute suffix of executables: cannot compile and link
  2975. See \`config.log' for more details" "$LINENO" 5; }
  2976. fi
  2977. rm -f conftest conftest$ac_cv_exeext
  2978. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
  2979. $as_echo "$ac_cv_exeext" >&6; }
  2980. rm -f conftest.$ac_ext
  2981. EXEEXT=$ac_cv_exeext
  2982. ac_exeext=$EXEEXT
  2983. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2984. /* end confdefs.h. */
  2985. #include <stdio.h>
  2986. int
  2987. main ()
  2988. {
  2989. FILE *f = fopen ("conftest.out", "w");
  2990. return ferror (f) || fclose (f) != 0;
  2991. ;
  2992. return 0;
  2993. }
  2994. _ACEOF
  2995. ac_clean_files="$ac_clean_files conftest.out"
  2996. # Check that the compiler produces executables we can run. If not, either
  2997. # the compiler is broken, or we cross compile.
  2998. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
  2999. $as_echo_n "checking whether we are cross compiling... " >&6; }
  3000. if test "$cross_compiling" != yes; then
  3001. { { ac_try="$ac_link"
  3002. case "(($ac_try" in
  3003. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3004. *) ac_try_echo=$ac_try;;
  3005. esac
  3006. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3007. $as_echo "$ac_try_echo"; } >&5
  3008. (eval "$ac_link") 2>&5
  3009. ac_status=$?
  3010. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3011. test $ac_status = 0; }
  3012. if { ac_try='./conftest$ac_cv_exeext'
  3013. { { case "(($ac_try" in
  3014. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3015. *) ac_try_echo=$ac_try;;
  3016. esac
  3017. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3018. $as_echo "$ac_try_echo"; } >&5
  3019. (eval "$ac_try") 2>&5
  3020. ac_status=$?
  3021. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3022. test $ac_status = 0; }; }; then
  3023. cross_compiling=no
  3024. else
  3025. if test "$cross_compiling" = maybe; then
  3026. cross_compiling=yes
  3027. else
  3028. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  3029. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  3030. as_fn_error $? "cannot run C compiled programs.
  3031. If you meant to cross compile, use \`--host'.
  3032. See \`config.log' for more details" "$LINENO" 5; }
  3033. fi
  3034. fi
  3035. fi
  3036. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
  3037. $as_echo "$cross_compiling" >&6; }
  3038. rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
  3039. ac_clean_files=$ac_clean_files_save
  3040. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
  3041. $as_echo_n "checking for suffix of object files... " >&6; }
  3042. if ${ac_cv_objext+:} false; then :
  3043. $as_echo_n "(cached) " >&6
  3044. else
  3045. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3046. /* end confdefs.h. */
  3047. int
  3048. main ()
  3049. {
  3050. ;
  3051. return 0;
  3052. }
  3053. _ACEOF
  3054. rm -f conftest.o conftest.obj
  3055. if { { ac_try="$ac_compile"
  3056. case "(($ac_try" in
  3057. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3058. *) ac_try_echo=$ac_try;;
  3059. esac
  3060. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3061. $as_echo "$ac_try_echo"; } >&5
  3062. (eval "$ac_compile") 2>&5
  3063. ac_status=$?
  3064. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3065. test $ac_status = 0; }; then :
  3066. for ac_file in conftest.o conftest.obj conftest.*; do
  3067. test -f "$ac_file" || continue;
  3068. case $ac_file in
  3069. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
  3070. *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
  3071. break;;
  3072. esac
  3073. done
  3074. else
  3075. $as_echo "$as_me: failed program was:" >&5
  3076. sed 's/^/| /' conftest.$ac_ext >&5
  3077. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  3078. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  3079. as_fn_error $? "cannot compute suffix of object files: cannot compile
  3080. See \`config.log' for more details" "$LINENO" 5; }
  3081. fi
  3082. rm -f conftest.$ac_cv_objext conftest.$ac_ext
  3083. fi
  3084. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
  3085. $as_echo "$ac_cv_objext" >&6; }
  3086. OBJEXT=$ac_cv_objext
  3087. ac_objext=$OBJEXT
  3088. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
  3089. $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
  3090. if ${ac_cv_c_compiler_gnu+:} false; then :
  3091. $as_echo_n "(cached) " >&6
  3092. else
  3093. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3094. /* end confdefs.h. */
  3095. int
  3096. main ()
  3097. {
  3098. #ifndef __GNUC__
  3099. choke me
  3100. #endif
  3101. ;
  3102. return 0;
  3103. }
  3104. _ACEOF
  3105. if ac_fn_c_try_compile "$LINENO"; then :
  3106. ac_compiler_gnu=yes
  3107. else
  3108. ac_compiler_gnu=no
  3109. fi
  3110. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3111. ac_cv_c_compiler_gnu=$ac_compiler_gnu
  3112. fi
  3113. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
  3114. $as_echo "$ac_cv_c_compiler_gnu" >&6; }
  3115. if test $ac_compiler_gnu = yes; then
  3116. GCC=yes
  3117. else
  3118. GCC=
  3119. fi
  3120. ac_test_CFLAGS=${CFLAGS+set}
  3121. ac_save_CFLAGS=$CFLAGS
  3122. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
  3123. $as_echo_n "checking whether $CC accepts -g... " >&6; }
  3124. if ${ac_cv_prog_cc_g+:} false; then :
  3125. $as_echo_n "(cached) " >&6
  3126. else
  3127. ac_save_c_werror_flag=$ac_c_werror_flag
  3128. ac_c_werror_flag=yes
  3129. ac_cv_prog_cc_g=no
  3130. CFLAGS="-g"
  3131. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3132. /* end confdefs.h. */
  3133. int
  3134. main ()
  3135. {
  3136. ;
  3137. return 0;
  3138. }
  3139. _ACEOF
  3140. if ac_fn_c_try_compile "$LINENO"; then :
  3141. ac_cv_prog_cc_g=yes
  3142. else
  3143. CFLAGS=""
  3144. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3145. /* end confdefs.h. */
  3146. int
  3147. main ()
  3148. {
  3149. ;
  3150. return 0;
  3151. }
  3152. _ACEOF
  3153. if ac_fn_c_try_compile "$LINENO"; then :
  3154. else
  3155. ac_c_werror_flag=$ac_save_c_werror_flag
  3156. CFLAGS="-g"
  3157. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3158. /* end confdefs.h. */
  3159. int
  3160. main ()
  3161. {
  3162. ;
  3163. return 0;
  3164. }
  3165. _ACEOF
  3166. if ac_fn_c_try_compile "$LINENO"; then :
  3167. ac_cv_prog_cc_g=yes
  3168. fi
  3169. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3170. fi
  3171. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3172. fi
  3173. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3174. ac_c_werror_flag=$ac_save_c_werror_flag
  3175. fi
  3176. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
  3177. $as_echo "$ac_cv_prog_cc_g" >&6; }
  3178. if test "$ac_test_CFLAGS" = set; then
  3179. CFLAGS=$ac_save_CFLAGS
  3180. elif test $ac_cv_prog_cc_g = yes; then
  3181. if test "$GCC" = yes; then
  3182. CFLAGS="-g -O2"
  3183. else
  3184. CFLAGS="-g"
  3185. fi
  3186. else
  3187. if test "$GCC" = yes; then
  3188. CFLAGS="-O2"
  3189. else
  3190. CFLAGS=
  3191. fi
  3192. fi
  3193. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
  3194. $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
  3195. if ${ac_cv_prog_cc_c89+:} false; then :
  3196. $as_echo_n "(cached) " >&6
  3197. else
  3198. ac_cv_prog_cc_c89=no
  3199. ac_save_CC=$CC
  3200. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3201. /* end confdefs.h. */
  3202. #include <stdarg.h>
  3203. #include <stdio.h>
  3204. struct stat;
  3205. /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
  3206. struct buf { int x; };
  3207. FILE * (*rcsopen) (struct buf *, struct stat *, int);
  3208. static char *e (p, i)
  3209. char **p;
  3210. int i;
  3211. {
  3212. return p[i];
  3213. }
  3214. static char *f (char * (*g) (char **, int), char **p, ...)
  3215. {
  3216. char *s;
  3217. va_list v;
  3218. va_start (v,p);
  3219. s = g (p, va_arg (v,int));
  3220. va_end (v);
  3221. return s;
  3222. }
  3223. /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
  3224. function prototypes and stuff, but not '\xHH' hex character constants.
  3225. These don't provoke an error unfortunately, instead are silently treated
  3226. as 'x'. The following induces an error, until -std is added to get
  3227. proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
  3228. array size at least. It's necessary to write '\x00'==0 to get something
  3229. that's true only with -std. */
  3230. int osf4_cc_array ['\x00' == 0 ? 1 : -1];
  3231. /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
  3232. inside strings and character constants. */
  3233. #define FOO(x) 'x'
  3234. int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
  3235. int test (int i, double x);
  3236. struct s1 {int (*f) (int a);};
  3237. struct s2 {int (*f) (double a);};
  3238. int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
  3239. int argc;
  3240. char **argv;
  3241. int
  3242. main ()
  3243. {
  3244. return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
  3245. ;
  3246. return 0;
  3247. }
  3248. _ACEOF
  3249. for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
  3250. -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
  3251. do
  3252. CC="$ac_save_CC $ac_arg"
  3253. if ac_fn_c_try_compile "$LINENO"; then :
  3254. ac_cv_prog_cc_c89=$ac_arg
  3255. fi
  3256. rm -f core conftest.err conftest.$ac_objext
  3257. test "x$ac_cv_prog_cc_c89" != "xno" && break
  3258. done
  3259. rm -f conftest.$ac_ext
  3260. CC=$ac_save_CC
  3261. fi
  3262. # AC_CACHE_VAL
  3263. case "x$ac_cv_prog_cc_c89" in
  3264. x)
  3265. { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
  3266. $as_echo "none needed" >&6; } ;;
  3267. xno)
  3268. { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
  3269. $as_echo "unsupported" >&6; } ;;
  3270. *)
  3271. CC="$CC $ac_cv_prog_cc_c89"
  3272. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
  3273. $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
  3274. esac
  3275. if test "x$ac_cv_prog_cc_c89" != xno; then :
  3276. fi
  3277. ac_ext=c
  3278. ac_cpp='$CPP $CPPFLAGS'
  3279. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  3280. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  3281. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  3282. ac_ext=c
  3283. ac_cpp='$CPP $CPPFLAGS'
  3284. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  3285. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  3286. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  3287. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
  3288. $as_echo_n "checking how to run the C preprocessor... " >&6; }
  3289. # On Suns, sometimes $CPP names a directory.
  3290. if test -n "$CPP" && test -d "$CPP"; then
  3291. CPP=
  3292. fi
  3293. if test -z "$CPP"; then
  3294. if ${ac_cv_prog_CPP+:} false; then :
  3295. $as_echo_n "(cached) " >&6
  3296. else
  3297. # Double quotes because CPP needs to be expanded
  3298. for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
  3299. do
  3300. ac_preproc_ok=false
  3301. for ac_c_preproc_warn_flag in '' yes
  3302. do
  3303. # Use a header file that comes with gcc, so configuring glibc
  3304. # with a fresh cross-compiler works.
  3305. # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  3306. # <limits.h> exists even on freestanding compilers.
  3307. # On the NeXT, cc -E runs the code through the compiler's parser,
  3308. # not just through cpp. "Syntax error" is here to catch this case.
  3309. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3310. /* end confdefs.h. */
  3311. #ifdef __STDC__
  3312. # include <limits.h>
  3313. #else
  3314. # include <assert.h>
  3315. #endif
  3316. Syntax error
  3317. _ACEOF
  3318. if ac_fn_c_try_cpp "$LINENO"; then :
  3319. else
  3320. # Broken: fails on valid input.
  3321. continue
  3322. fi
  3323. rm -f conftest.err conftest.i conftest.$ac_ext
  3324. # OK, works on sane cases. Now check whether nonexistent headers
  3325. # can be detected and how.
  3326. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3327. /* end confdefs.h. */
  3328. #include <ac_nonexistent.h>
  3329. _ACEOF
  3330. if ac_fn_c_try_cpp "$LINENO"; then :
  3331. # Broken: success on invalid input.
  3332. continue
  3333. else
  3334. # Passes both tests.
  3335. ac_preproc_ok=:
  3336. break
  3337. fi
  3338. rm -f conftest.err conftest.i conftest.$ac_ext
  3339. done
  3340. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  3341. rm -f conftest.i conftest.err conftest.$ac_ext
  3342. if $ac_preproc_ok; then :
  3343. break
  3344. fi
  3345. done
  3346. ac_cv_prog_CPP=$CPP
  3347. fi
  3348. CPP=$ac_cv_prog_CPP
  3349. else
  3350. ac_cv_prog_CPP=$CPP
  3351. fi
  3352. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
  3353. $as_echo "$CPP" >&6; }
  3354. ac_preproc_ok=false
  3355. for ac_c_preproc_warn_flag in '' yes
  3356. do
  3357. # Use a header file that comes with gcc, so configuring glibc
  3358. # with a fresh cross-compiler works.
  3359. # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  3360. # <limits.h> exists even on freestanding compilers.
  3361. # On the NeXT, cc -E runs the code through the compiler's parser,
  3362. # not just through cpp. "Syntax error" is here to catch this case.
  3363. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3364. /* end confdefs.h. */
  3365. #ifdef __STDC__
  3366. # include <limits.h>
  3367. #else
  3368. # include <assert.h>
  3369. #endif
  3370. Syntax error
  3371. _ACEOF
  3372. if ac_fn_c_try_cpp "$LINENO"; then :
  3373. else
  3374. # Broken: fails on valid input.
  3375. continue
  3376. fi
  3377. rm -f conftest.err conftest.i conftest.$ac_ext
  3378. # OK, works on sane cases. Now check whether nonexistent headers
  3379. # can be detected and how.
  3380. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3381. /* end confdefs.h. */
  3382. #include <ac_nonexistent.h>
  3383. _ACEOF
  3384. if ac_fn_c_try_cpp "$LINENO"; then :
  3385. # Broken: success on invalid input.
  3386. continue
  3387. else
  3388. # Passes both tests.
  3389. ac_preproc_ok=:
  3390. break
  3391. fi
  3392. rm -f conftest.err conftest.i conftest.$ac_ext
  3393. done
  3394. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  3395. rm -f conftest.i conftest.err conftest.$ac_ext
  3396. if $ac_preproc_ok; then :
  3397. else
  3398. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  3399. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  3400. as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
  3401. See \`config.log' for more details" "$LINENO" 5; }
  3402. fi
  3403. ac_ext=c
  3404. ac_cpp='$CPP $CPPFLAGS'
  3405. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  3406. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  3407. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  3408. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
  3409. $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
  3410. if ${ac_cv_path_GREP+:} false; then :
  3411. $as_echo_n "(cached) " >&6
  3412. else
  3413. if test -z "$GREP"; then
  3414. ac_path_GREP_found=false
  3415. # Loop through the user's path and test for each of PROGNAME-LIST
  3416. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3417. for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
  3418. do
  3419. IFS=$as_save_IFS
  3420. test -z "$as_dir" && as_dir=.
  3421. for ac_prog in grep ggrep; do
  3422. for ac_exec_ext in '' $ac_executable_extensions; do
  3423. ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
  3424. as_fn_executable_p "$ac_path_GREP" || continue
  3425. # Check for GNU ac_path_GREP and select it if it is found.
  3426. # Check for GNU $ac_path_GREP
  3427. case `"$ac_path_GREP" --version 2>&1` in
  3428. *GNU*)
  3429. ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
  3430. *)
  3431. ac_count=0
  3432. $as_echo_n 0123456789 >"conftest.in"
  3433. while :
  3434. do
  3435. cat "conftest.in" "conftest.in" >"conftest.tmp"
  3436. mv "conftest.tmp" "conftest.in"
  3437. cp "conftest.in" "conftest.nl"
  3438. $as_echo 'GREP' >> "conftest.nl"
  3439. "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
  3440. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  3441. as_fn_arith $ac_count + 1 && ac_count=$as_val
  3442. if test $ac_count -gt ${ac_path_GREP_max-0}; then
  3443. # Best one so far, save it but keep looking for a better one
  3444. ac_cv_path_GREP="$ac_path_GREP"
  3445. ac_path_GREP_max=$ac_count
  3446. fi
  3447. # 10*(2^10) chars as input seems more than enough
  3448. test $ac_count -gt 10 && break
  3449. done
  3450. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  3451. esac
  3452. $ac_path_GREP_found && break 3
  3453. done
  3454. done
  3455. done
  3456. IFS=$as_save_IFS
  3457. if test -z "$ac_cv_path_GREP"; then
  3458. as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
  3459. fi
  3460. else
  3461. ac_cv_path_GREP=$GREP
  3462. fi
  3463. fi
  3464. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
  3465. $as_echo "$ac_cv_path_GREP" >&6; }
  3466. GREP="$ac_cv_path_GREP"
  3467. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
  3468. $as_echo_n "checking for egrep... " >&6; }
  3469. if ${ac_cv_path_EGREP+:} false; then :
  3470. $as_echo_n "(cached) " >&6
  3471. else
  3472. if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
  3473. then ac_cv_path_EGREP="$GREP -E"
  3474. else
  3475. if test -z "$EGREP"; then
  3476. ac_path_EGREP_found=false
  3477. # Loop through the user's path and test for each of PROGNAME-LIST
  3478. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3479. for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
  3480. do
  3481. IFS=$as_save_IFS
  3482. test -z "$as_dir" && as_dir=.
  3483. for ac_prog in egrep; do
  3484. for ac_exec_ext in '' $ac_executable_extensions; do
  3485. ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
  3486. as_fn_executable_p "$ac_path_EGREP" || continue
  3487. # Check for GNU ac_path_EGREP and select it if it is found.
  3488. # Check for GNU $ac_path_EGREP
  3489. case `"$ac_path_EGREP" --version 2>&1` in
  3490. *GNU*)
  3491. ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
  3492. *)
  3493. ac_count=0
  3494. $as_echo_n 0123456789 >"conftest.in"
  3495. while :
  3496. do
  3497. cat "conftest.in" "conftest.in" >"conftest.tmp"
  3498. mv "conftest.tmp" "conftest.in"
  3499. cp "conftest.in" "conftest.nl"
  3500. $as_echo 'EGREP' >> "conftest.nl"
  3501. "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
  3502. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  3503. as_fn_arith $ac_count + 1 && ac_count=$as_val
  3504. if test $ac_count -gt ${ac_path_EGREP_max-0}; then
  3505. # Best one so far, save it but keep looking for a better one
  3506. ac_cv_path_EGREP="$ac_path_EGREP"
  3507. ac_path_EGREP_max=$ac_count
  3508. fi
  3509. # 10*(2^10) chars as input seems more than enough
  3510. test $ac_count -gt 10 && break
  3511. done
  3512. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  3513. esac
  3514. $ac_path_EGREP_found && break 3
  3515. done
  3516. done
  3517. done
  3518. IFS=$as_save_IFS
  3519. if test -z "$ac_cv_path_EGREP"; then
  3520. as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
  3521. fi
  3522. else
  3523. ac_cv_path_EGREP=$EGREP
  3524. fi
  3525. fi
  3526. fi
  3527. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
  3528. $as_echo "$ac_cv_path_EGREP" >&6; }
  3529. EGREP="$ac_cv_path_EGREP"
  3530. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
  3531. $as_echo_n "checking for ANSI C header files... " >&6; }
  3532. if ${ac_cv_header_stdc+:} false; then :
  3533. $as_echo_n "(cached) " >&6
  3534. else
  3535. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3536. /* end confdefs.h. */
  3537. #include <stdlib.h>
  3538. #include <stdarg.h>
  3539. #include <string.h>
  3540. #include <float.h>
  3541. int
  3542. main ()
  3543. {
  3544. ;
  3545. return 0;
  3546. }
  3547. _ACEOF
  3548. if ac_fn_c_try_compile "$LINENO"; then :
  3549. ac_cv_header_stdc=yes
  3550. else
  3551. ac_cv_header_stdc=no
  3552. fi
  3553. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3554. if test $ac_cv_header_stdc = yes; then
  3555. # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
  3556. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3557. /* end confdefs.h. */
  3558. #include <string.h>
  3559. _ACEOF
  3560. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  3561. $EGREP "memchr" >/dev/null 2>&1; then :
  3562. else
  3563. ac_cv_header_stdc=no
  3564. fi
  3565. rm -f conftest*
  3566. fi
  3567. if test $ac_cv_header_stdc = yes; then
  3568. # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
  3569. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3570. /* end confdefs.h. */
  3571. #include <stdlib.h>
  3572. _ACEOF
  3573. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  3574. $EGREP "free" >/dev/null 2>&1; then :
  3575. else
  3576. ac_cv_header_stdc=no
  3577. fi
  3578. rm -f conftest*
  3579. fi
  3580. if test $ac_cv_header_stdc = yes; then
  3581. # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
  3582. if test "$cross_compiling" = yes; then :
  3583. :
  3584. else
  3585. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3586. /* end confdefs.h. */
  3587. #include <ctype.h>
  3588. #include <stdlib.h>
  3589. #if ((' ' & 0x0FF) == 0x020)
  3590. # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
  3591. # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
  3592. #else
  3593. # define ISLOWER(c) \
  3594. (('a' <= (c) && (c) <= 'i') \
  3595. || ('j' <= (c) && (c) <= 'r') \
  3596. || ('s' <= (c) && (c) <= 'z'))
  3597. # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
  3598. #endif
  3599. #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
  3600. int
  3601. main ()
  3602. {
  3603. int i;
  3604. for (i = 0; i < 256; i++)
  3605. if (XOR (islower (i), ISLOWER (i))
  3606. || toupper (i) != TOUPPER (i))
  3607. return 2;
  3608. return 0;
  3609. }
  3610. _ACEOF
  3611. if ac_fn_c_try_run "$LINENO"; then :
  3612. else
  3613. ac_cv_header_stdc=no
  3614. fi
  3615. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  3616. conftest.$ac_objext conftest.beam conftest.$ac_ext
  3617. fi
  3618. fi
  3619. fi
  3620. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
  3621. $as_echo "$ac_cv_header_stdc" >&6; }
  3622. if test $ac_cv_header_stdc = yes; then
  3623. $as_echo "#define STDC_HEADERS 1" >>confdefs.h
  3624. fi
  3625. # On IRIX 5.3, sys/types and inttypes.h are conflicting.
  3626. for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
  3627. inttypes.h stdint.h unistd.h
  3628. do :
  3629. as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
  3630. ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
  3631. "
  3632. if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
  3633. cat >>confdefs.h <<_ACEOF
  3634. #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
  3635. _ACEOF
  3636. fi
  3637. done
  3638. ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
  3639. if test "x$ac_cv_header_minix_config_h" = xyes; then :
  3640. MINIX=yes
  3641. else
  3642. MINIX=
  3643. fi
  3644. if test "$MINIX" = yes; then
  3645. $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
  3646. $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
  3647. $as_echo "#define _MINIX 1" >>confdefs.h
  3648. fi
  3649. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
  3650. $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
  3651. if ${ac_cv_safe_to_define___extensions__+:} false; then :
  3652. $as_echo_n "(cached) " >&6
  3653. else
  3654. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3655. /* end confdefs.h. */
  3656. # define __EXTENSIONS__ 1
  3657. $ac_includes_default
  3658. int
  3659. main ()
  3660. {
  3661. ;
  3662. return 0;
  3663. }
  3664. _ACEOF
  3665. if ac_fn_c_try_compile "$LINENO"; then :
  3666. ac_cv_safe_to_define___extensions__=yes
  3667. else
  3668. ac_cv_safe_to_define___extensions__=no
  3669. fi
  3670. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3671. fi
  3672. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
  3673. $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
  3674. test $ac_cv_safe_to_define___extensions__ = yes &&
  3675. $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
  3676. $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
  3677. $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
  3678. $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
  3679. $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
  3680. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
  3681. $as_echo_n "checking for inline... " >&6; }
  3682. if ${ac_cv_c_inline+:} false; then :
  3683. $as_echo_n "(cached) " >&6
  3684. else
  3685. ac_cv_c_inline=no
  3686. for ac_kw in inline __inline__ __inline; do
  3687. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3688. /* end confdefs.h. */
  3689. #ifndef __cplusplus
  3690. typedef int foo_t;
  3691. static $ac_kw foo_t static_foo () {return 0; }
  3692. $ac_kw foo_t foo () {return 0; }
  3693. #endif
  3694. _ACEOF
  3695. if ac_fn_c_try_compile "$LINENO"; then :
  3696. ac_cv_c_inline=$ac_kw
  3697. fi
  3698. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3699. test "$ac_cv_c_inline" != no && break
  3700. done
  3701. fi
  3702. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
  3703. $as_echo "$ac_cv_c_inline" >&6; }
  3704. case $ac_cv_c_inline in
  3705. inline | yes) ;;
  3706. *)
  3707. case $ac_cv_c_inline in
  3708. no) ac_val=;;
  3709. *) ac_val=$ac_cv_c_inline;;
  3710. esac
  3711. cat >>confdefs.h <<_ACEOF
  3712. #ifndef __cplusplus
  3713. #define inline $ac_val
  3714. #endif
  3715. _ACEOF
  3716. ;;
  3717. esac
  3718. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
  3719. $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
  3720. if ${ac_cv_c_const+:} false; then :
  3721. $as_echo_n "(cached) " >&6
  3722. else
  3723. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3724. /* end confdefs.h. */
  3725. int
  3726. main ()
  3727. {
  3728. #ifndef __cplusplus
  3729. /* Ultrix mips cc rejects this sort of thing. */
  3730. typedef int charset[2];
  3731. const charset cs = { 0, 0 };
  3732. /* SunOS 4.1.1 cc rejects this. */
  3733. char const *const *pcpcc;
  3734. char **ppc;
  3735. /* NEC SVR4.0.2 mips cc rejects this. */
  3736. struct point {int x, y;};
  3737. static struct point const zero = {0,0};
  3738. /* AIX XL C 1.02.0.0 rejects this.
  3739. It does not let you subtract one const X* pointer from another in
  3740. an arm of an if-expression whose if-part is not a constant
  3741. expression */
  3742. const char *g = "string";
  3743. pcpcc = &g + (g ? g-g : 0);
  3744. /* HPUX 7.0 cc rejects these. */
  3745. ++pcpcc;
  3746. ppc = (char**) pcpcc;
  3747. pcpcc = (char const *const *) ppc;
  3748. { /* SCO 3.2v4 cc rejects this sort of thing. */
  3749. char tx;
  3750. char *t = &tx;
  3751. char const *s = 0 ? (char *) 0 : (char const *) 0;
  3752. *t++ = 0;
  3753. if (s) return 0;
  3754. }
  3755. { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
  3756. int x[] = {25, 17};
  3757. const int *foo = &x[0];
  3758. ++foo;
  3759. }
  3760. { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
  3761. typedef const int *iptr;
  3762. iptr p = 0;
  3763. ++p;
  3764. }
  3765. { /* AIX XL C 1.02.0.0 rejects this sort of thing, saying
  3766. "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
  3767. struct s { int j; const int *ap[3]; } bx;
  3768. struct s *b = &bx; b->j = 5;
  3769. }
  3770. { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
  3771. const int foo = 10;
  3772. if (!foo) return 0;
  3773. }
  3774. return !cs[0] && !zero.x;
  3775. #endif
  3776. ;
  3777. return 0;
  3778. }
  3779. _ACEOF
  3780. if ac_fn_c_try_compile "$LINENO"; then :
  3781. ac_cv_c_const=yes
  3782. else
  3783. ac_cv_c_const=no
  3784. fi
  3785. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3786. fi
  3787. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
  3788. $as_echo "$ac_cv_c_const" >&6; }
  3789. if test $ac_cv_c_const = no; then
  3790. $as_echo "#define const /**/" >>confdefs.h
  3791. fi
  3792. ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
  3793. if test "x$ac_cv_type_size_t" = xyes; then :
  3794. else
  3795. cat >>confdefs.h <<_ACEOF
  3796. #define size_t unsigned int
  3797. _ACEOF
  3798. fi
  3799. ac_fn_c_check_type "$LINENO" "off_t" "ac_cv_type_off_t" "$ac_includes_default"
  3800. if test "x$ac_cv_type_off_t" = xyes; then :
  3801. else
  3802. cat >>confdefs.h <<_ACEOF
  3803. #define off_t long int
  3804. _ACEOF
  3805. fi
  3806. # Check for Darwin, which needs extra cpp and linker flags.
  3807. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uname" >&5
  3808. $as_echo_n "checking for uname... " >&6; }
  3809. if ${ne_cv_os_uname+:} false; then :
  3810. $as_echo_n "(cached) " >&6
  3811. else
  3812. ne_cv_os_uname=`uname -s 2>/dev/null`
  3813. fi
  3814. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ne_cv_os_uname" >&5
  3815. $as_echo "$ne_cv_os_uname" >&6; }
  3816. if test "$ne_cv_os_uname" = "Darwin"; then
  3817. CPPFLAGS="$CPPFLAGS -no-cpp-precomp"
  3818. LDFLAGS="$LDFLAGS -flat_namespace"
  3819. # poll has various issues in various Darwin releases
  3820. if test x${ac_cv_func_poll+set} != xset; then
  3821. ac_cv_func_poll=no
  3822. fi
  3823. fi
  3824. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
  3825. $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
  3826. set x ${MAKE-make}
  3827. ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
  3828. if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
  3829. $as_echo_n "(cached) " >&6
  3830. else
  3831. cat >conftest.make <<\_ACEOF
  3832. SHELL = /bin/sh
  3833. all:
  3834. @echo '@@@%%%=$(MAKE)=@@@%%%'
  3835. _ACEOF
  3836. # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
  3837. case `${MAKE-make} -f conftest.make 2>/dev/null` in
  3838. *@@@%%%=?*=@@@%%%*)
  3839. eval ac_cv_prog_make_${ac_make}_set=yes;;
  3840. *)
  3841. eval ac_cv_prog_make_${ac_make}_set=no;;
  3842. esac
  3843. rm -f conftest.make
  3844. fi
  3845. if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
  3846. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  3847. $as_echo "yes" >&6; }
  3848. SET_MAKE=
  3849. else
  3850. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3851. $as_echo "no" >&6; }
  3852. SET_MAKE="MAKE=${MAKE-make}"
  3853. fi
  3854. # The cast to long int works around a bug in the HP C Compiler
  3855. # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
  3856. # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
  3857. # This bug is HP SR number 8606223364.
  3858. { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of int" >&5
  3859. $as_echo_n "checking size of int... " >&6; }
  3860. if ${ac_cv_sizeof_int+:} false; then :
  3861. $as_echo_n "(cached) " >&6
  3862. else
  3863. if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (int))" "ac_cv_sizeof_int" "$ac_includes_default"; then :
  3864. else
  3865. if test "$ac_cv_type_int" = yes; then
  3866. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  3867. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  3868. as_fn_error 77 "cannot compute sizeof (int)
  3869. See \`config.log' for more details" "$LINENO" 5; }
  3870. else
  3871. ac_cv_sizeof_int=0
  3872. fi
  3873. fi
  3874. fi
  3875. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int" >&5
  3876. $as_echo "$ac_cv_sizeof_int" >&6; }
  3877. cat >>confdefs.h <<_ACEOF
  3878. #define SIZEOF_INT $ac_cv_sizeof_int
  3879. _ACEOF
  3880. # The cast to long int works around a bug in the HP C Compiler
  3881. # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
  3882. # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
  3883. # This bug is HP SR number 8606223364.
  3884. { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long" >&5
  3885. $as_echo_n "checking size of long... " >&6; }
  3886. if ${ac_cv_sizeof_long+:} false; then :
  3887. $as_echo_n "(cached) " >&6
  3888. else
  3889. if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long))" "ac_cv_sizeof_long" "$ac_includes_default"; then :
  3890. else
  3891. if test "$ac_cv_type_long" = yes; then
  3892. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  3893. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  3894. as_fn_error 77 "cannot compute sizeof (long)
  3895. See \`config.log' for more details" "$LINENO" 5; }
  3896. else
  3897. ac_cv_sizeof_long=0
  3898. fi
  3899. fi
  3900. fi
  3901. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5
  3902. $as_echo "$ac_cv_sizeof_long" >&6; }
  3903. cat >>confdefs.h <<_ACEOF
  3904. #define SIZEOF_LONG $ac_cv_sizeof_long
  3905. _ACEOF
  3906. # The cast to long int works around a bug in the HP C Compiler
  3907. # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
  3908. # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
  3909. # This bug is HP SR number 8606223364.
  3910. { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long long" >&5
  3911. $as_echo_n "checking size of long long... " >&6; }
  3912. if ${ac_cv_sizeof_long_long+:} false; then :
  3913. $as_echo_n "(cached) " >&6
  3914. else
  3915. if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long long))" "ac_cv_sizeof_long_long" "$ac_includes_default"; then :
  3916. else
  3917. if test "$ac_cv_type_long_long" = yes; then
  3918. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  3919. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  3920. as_fn_error 77 "cannot compute sizeof (long long)
  3921. See \`config.log' for more details" "$LINENO" 5; }
  3922. else
  3923. ac_cv_sizeof_long_long=0
  3924. fi
  3925. fi
  3926. fi
  3927. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long_long" >&5
  3928. $as_echo "$ac_cv_sizeof_long_long" >&6; }
  3929. cat >>confdefs.h <<_ACEOF
  3930. #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
  3931. _ACEOF
  3932. if test "$GCC" = "yes"; then
  3933. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gcc -Wformat -Werror sanity" >&5
  3934. $as_echo_n "checking for gcc -Wformat -Werror sanity... " >&6; }
  3935. if ${ne_cv_cc_werror+:} false; then :
  3936. $as_echo_n "(cached) " >&6
  3937. else
  3938. # See whether a simple test program will compile without errors.
  3939. ne_save_CPPFLAGS=$CPPFLAGS
  3940. CPPFLAGS="$CPPFLAGS -Wformat -Werror"
  3941. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3942. /* end confdefs.h. */
  3943. #include <sys/types.h>
  3944. #include <stdio.h>
  3945. int
  3946. main ()
  3947. {
  3948. int i = 42; printf("%d", i);
  3949. ;
  3950. return 0;
  3951. }
  3952. _ACEOF
  3953. if ac_fn_c_try_compile "$LINENO"; then :
  3954. ne_cv_cc_werror=yes
  3955. else
  3956. ne_cv_cc_werror=no
  3957. fi
  3958. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3959. CPPFLAGS=$ne_save_CPPFLAGS
  3960. fi
  3961. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ne_cv_cc_werror" >&5
  3962. $as_echo "$ne_cv_cc_werror" >&6; }
  3963. ne_fmt_trycompile=$ne_cv_cc_werror
  3964. else
  3965. ne_fmt_trycompile=no
  3966. fi
  3967. # These checks are done whether or not the bundled neon build
  3968. # is used.
  3969. for ac_header in errno.h stdarg.h string.h stdlib.h sys/uio.h
  3970. do :
  3971. as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
  3972. ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
  3973. if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
  3974. cat >>confdefs.h <<_ACEOF
  3975. #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
  3976. _ACEOF
  3977. fi
  3978. done
  3979. # The cast to long int works around a bug in the HP C Compiler
  3980. # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
  3981. # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
  3982. # This bug is HP SR number 8606223364.
  3983. { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of size_t" >&5
  3984. $as_echo_n "checking size of size_t... " >&6; }
  3985. if ${ac_cv_sizeof_size_t+:} false; then :
  3986. $as_echo_n "(cached) " >&6
  3987. else
  3988. if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (size_t))" "ac_cv_sizeof_size_t" "$ac_includes_default
  3989. "; then :
  3990. else
  3991. if test "$ac_cv_type_size_t" = yes; then
  3992. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  3993. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  3994. as_fn_error 77 "cannot compute sizeof (size_t)
  3995. See \`config.log' for more details" "$LINENO" 5; }
  3996. else
  3997. ac_cv_sizeof_size_t=0
  3998. fi
  3999. fi
  4000. fi
  4001. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_size_t" >&5
  4002. $as_echo "$ac_cv_sizeof_size_t" >&6; }
  4003. cat >>confdefs.h <<_ACEOF
  4004. #define SIZEOF_SIZE_T $ac_cv_sizeof_size_t
  4005. _ACEOF
  4006. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print size_t" >&5
  4007. $as_echo_n "checking how to print size_t... " >&6; }
  4008. if ${ne_cv_fmt_size_t+:} false; then :
  4009. $as_echo_n "(cached) " >&6
  4010. else
  4011. ne_cv_fmt_size_t=none
  4012. if test $ne_fmt_trycompile = yes; then
  4013. oflags="$CPPFLAGS"
  4014. # Consider format string mismatches as errors
  4015. CPPFLAGS="$CPPFLAGS -Wformat -Werror"
  4016. for str in u lu llu; do
  4017. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4018. /* end confdefs.h. */
  4019. #include <sys/types.h>
  4020. #include <stdio.h>
  4021. int
  4022. main ()
  4023. {
  4024. size_t i = 1; printf("%$str", i);
  4025. ;
  4026. return 0;
  4027. }
  4028. _ACEOF
  4029. if ac_fn_c_try_compile "$LINENO"; then :
  4030. ne_cv_fmt_size_t=$str; break
  4031. fi
  4032. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4033. done
  4034. CPPFLAGS=$oflags
  4035. else
  4036. # Best guess. Don't have to be too precise since we probably won't
  4037. # get a warning message anyway.
  4038. case $ac_cv_sizeof_size_t in
  4039. $ac_cv_sizeof_int) ne_cv_fmt_size_t="u" ;;
  4040. $ac_cv_sizeof_long) ne_cv_fmt_size_t="lu" ;;
  4041. $ac_cv_sizeof_long_long) ne_cv_fmt_size_t="llu" ;;
  4042. esac
  4043. fi
  4044. fi
  4045. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ne_cv_fmt_size_t" >&5
  4046. $as_echo "$ne_cv_fmt_size_t" >&6; }
  4047. if test "x$ne_cv_fmt_size_t" = "xnone"; then
  4048. as_fn_error $? "format string for size_t not found" "$LINENO" 5
  4049. fi
  4050. cat >>confdefs.h <<_ACEOF
  4051. #define NE_FMT_SIZE_T "$ne_cv_fmt_size_t"
  4052. _ACEOF
  4053. # The cast to long int works around a bug in the HP C Compiler
  4054. # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
  4055. # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
  4056. # This bug is HP SR number 8606223364.
  4057. { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of off_t" >&5
  4058. $as_echo_n "checking size of off_t... " >&6; }
  4059. if ${ac_cv_sizeof_off_t+:} false; then :
  4060. $as_echo_n "(cached) " >&6
  4061. else
  4062. if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (off_t))" "ac_cv_sizeof_off_t" "$ac_includes_default
  4063. "; then :
  4064. else
  4065. if test "$ac_cv_type_off_t" = yes; then
  4066. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  4067. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  4068. as_fn_error 77 "cannot compute sizeof (off_t)
  4069. See \`config.log' for more details" "$LINENO" 5; }
  4070. else
  4071. ac_cv_sizeof_off_t=0
  4072. fi
  4073. fi
  4074. fi
  4075. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_off_t" >&5
  4076. $as_echo "$ac_cv_sizeof_off_t" >&6; }
  4077. cat >>confdefs.h <<_ACEOF
  4078. #define SIZEOF_OFF_T $ac_cv_sizeof_off_t
  4079. _ACEOF
  4080. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print off_t" >&5
  4081. $as_echo_n "checking how to print off_t... " >&6; }
  4082. if ${ne_cv_fmt_off_t+:} false; then :
  4083. $as_echo_n "(cached) " >&6
  4084. else
  4085. ne_cv_fmt_off_t=none
  4086. if test $ne_fmt_trycompile = yes; then
  4087. oflags="$CPPFLAGS"
  4088. # Consider format string mismatches as errors
  4089. CPPFLAGS="$CPPFLAGS -Wformat -Werror"
  4090. for str in d ld lld; do
  4091. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4092. /* end confdefs.h. */
  4093. #include <sys/types.h>
  4094. #include <stdio.h>
  4095. int
  4096. main ()
  4097. {
  4098. off_t i = 1; printf("%$str", i);
  4099. ;
  4100. return 0;
  4101. }
  4102. _ACEOF
  4103. if ac_fn_c_try_compile "$LINENO"; then :
  4104. ne_cv_fmt_off_t=$str; break
  4105. fi
  4106. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4107. done
  4108. CPPFLAGS=$oflags
  4109. else
  4110. # Best guess. Don't have to be too precise since we probably won't
  4111. # get a warning message anyway.
  4112. case $ac_cv_sizeof_off_t in
  4113. $ac_cv_sizeof_int) ne_cv_fmt_off_t="d" ;;
  4114. $ac_cv_sizeof_long) ne_cv_fmt_off_t="ld" ;;
  4115. $ac_cv_sizeof_long_long) ne_cv_fmt_off_t="lld" ;;
  4116. esac
  4117. fi
  4118. fi
  4119. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ne_cv_fmt_off_t" >&5
  4120. $as_echo "$ne_cv_fmt_off_t" >&6; }
  4121. if test "x$ne_cv_fmt_off_t" = "xnone"; then
  4122. as_fn_error $? "format string for off_t not found" "$LINENO" 5
  4123. fi
  4124. cat >>confdefs.h <<_ACEOF
  4125. #define NE_FMT_OFF_T "$ne_cv_fmt_off_t"
  4126. _ACEOF
  4127. # The cast to long int works around a bug in the HP C Compiler
  4128. # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
  4129. # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
  4130. # This bug is HP SR number 8606223364.
  4131. { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of ssize_t" >&5
  4132. $as_echo_n "checking size of ssize_t... " >&6; }
  4133. if ${ac_cv_sizeof_ssize_t+:} false; then :
  4134. $as_echo_n "(cached) " >&6
  4135. else
  4136. if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (ssize_t))" "ac_cv_sizeof_ssize_t" "$ac_includes_default
  4137. "; then :
  4138. else
  4139. if test "$ac_cv_type_ssize_t" = yes; then
  4140. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  4141. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  4142. as_fn_error 77 "cannot compute sizeof (ssize_t)
  4143. See \`config.log' for more details" "$LINENO" 5; }
  4144. else
  4145. ac_cv_sizeof_ssize_t=0
  4146. fi
  4147. fi
  4148. fi
  4149. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_ssize_t" >&5
  4150. $as_echo "$ac_cv_sizeof_ssize_t" >&6; }
  4151. cat >>confdefs.h <<_ACEOF
  4152. #define SIZEOF_SSIZE_T $ac_cv_sizeof_ssize_t
  4153. _ACEOF
  4154. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print ssize_t" >&5
  4155. $as_echo_n "checking how to print ssize_t... " >&6; }
  4156. if ${ne_cv_fmt_ssize_t+:} false; then :
  4157. $as_echo_n "(cached) " >&6
  4158. else
  4159. ne_cv_fmt_ssize_t=none
  4160. if test $ne_fmt_trycompile = yes; then
  4161. oflags="$CPPFLAGS"
  4162. # Consider format string mismatches as errors
  4163. CPPFLAGS="$CPPFLAGS -Wformat -Werror"
  4164. for str in d ld lld; do
  4165. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4166. /* end confdefs.h. */
  4167. #include <sys/types.h>
  4168. #include <stdio.h>
  4169. int
  4170. main ()
  4171. {
  4172. ssize_t i = 1; printf("%$str", i);
  4173. ;
  4174. return 0;
  4175. }
  4176. _ACEOF
  4177. if ac_fn_c_try_compile "$LINENO"; then :
  4178. ne_cv_fmt_ssize_t=$str; break
  4179. fi
  4180. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4181. done
  4182. CPPFLAGS=$oflags
  4183. else
  4184. # Best guess. Don't have to be too precise since we probably won't
  4185. # get a warning message anyway.
  4186. case $ac_cv_sizeof_ssize_t in
  4187. $ac_cv_sizeof_int) ne_cv_fmt_ssize_t="d" ;;
  4188. $ac_cv_sizeof_long) ne_cv_fmt_ssize_t="ld" ;;
  4189. $ac_cv_sizeof_long_long) ne_cv_fmt_ssize_t="lld" ;;
  4190. esac
  4191. fi
  4192. fi
  4193. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ne_cv_fmt_ssize_t" >&5
  4194. $as_echo "$ne_cv_fmt_ssize_t" >&6; }
  4195. if test "x$ne_cv_fmt_ssize_t" = "xnone"; then
  4196. as_fn_error $? "format string for ssize_t not found" "$LINENO" 5
  4197. fi
  4198. cat >>confdefs.h <<_ACEOF
  4199. #define NE_FMT_SSIZE_T "$ne_cv_fmt_ssize_t"
  4200. _ACEOF
  4201. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
  4202. $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
  4203. if ${ac_cv_c_bigendian+:} false; then :
  4204. $as_echo_n "(cached) " >&6
  4205. else
  4206. ac_cv_c_bigendian=unknown
  4207. # See if we're dealing with a universal compiler.
  4208. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4209. /* end confdefs.h. */
  4210. #ifndef __APPLE_CC__
  4211. not a universal capable compiler
  4212. #endif
  4213. typedef int dummy;
  4214. _ACEOF
  4215. if ac_fn_c_try_compile "$LINENO"; then :
  4216. # Check for potential -arch flags. It is not universal unless
  4217. # there are at least two -arch flags with different values.
  4218. ac_arch=
  4219. ac_prev=
  4220. for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
  4221. if test -n "$ac_prev"; then
  4222. case $ac_word in
  4223. i?86 | x86_64 | ppc | ppc64)
  4224. if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
  4225. ac_arch=$ac_word
  4226. else
  4227. ac_cv_c_bigendian=universal
  4228. break
  4229. fi
  4230. ;;
  4231. esac
  4232. ac_prev=
  4233. elif test "x$ac_word" = "x-arch"; then
  4234. ac_prev=arch
  4235. fi
  4236. done
  4237. fi
  4238. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4239. if test $ac_cv_c_bigendian = unknown; then
  4240. # See if sys/param.h defines the BYTE_ORDER macro.
  4241. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4242. /* end confdefs.h. */
  4243. #include <sys/types.h>
  4244. #include <sys/param.h>
  4245. int
  4246. main ()
  4247. {
  4248. #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
  4249. && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
  4250. && LITTLE_ENDIAN)
  4251. bogus endian macros
  4252. #endif
  4253. ;
  4254. return 0;
  4255. }
  4256. _ACEOF
  4257. if ac_fn_c_try_compile "$LINENO"; then :
  4258. # It does; now see whether it defined to BIG_ENDIAN or not.
  4259. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4260. /* end confdefs.h. */
  4261. #include <sys/types.h>
  4262. #include <sys/param.h>
  4263. int
  4264. main ()
  4265. {
  4266. #if BYTE_ORDER != BIG_ENDIAN
  4267. not big endian
  4268. #endif
  4269. ;
  4270. return 0;
  4271. }
  4272. _ACEOF
  4273. if ac_fn_c_try_compile "$LINENO"; then :
  4274. ac_cv_c_bigendian=yes
  4275. else
  4276. ac_cv_c_bigendian=no
  4277. fi
  4278. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4279. fi
  4280. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4281. fi
  4282. if test $ac_cv_c_bigendian = unknown; then
  4283. # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
  4284. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4285. /* end confdefs.h. */
  4286. #include <limits.h>
  4287. int
  4288. main ()
  4289. {
  4290. #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
  4291. bogus endian macros
  4292. #endif
  4293. ;
  4294. return 0;
  4295. }
  4296. _ACEOF
  4297. if ac_fn_c_try_compile "$LINENO"; then :
  4298. # It does; now see whether it defined to _BIG_ENDIAN or not.
  4299. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4300. /* end confdefs.h. */
  4301. #include <limits.h>
  4302. int
  4303. main ()
  4304. {
  4305. #ifndef _BIG_ENDIAN
  4306. not big endian
  4307. #endif
  4308. ;
  4309. return 0;
  4310. }
  4311. _ACEOF
  4312. if ac_fn_c_try_compile "$LINENO"; then :
  4313. ac_cv_c_bigendian=yes
  4314. else
  4315. ac_cv_c_bigendian=no
  4316. fi
  4317. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4318. fi
  4319. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4320. fi
  4321. if test $ac_cv_c_bigendian = unknown; then
  4322. # Compile a test program.
  4323. if test "$cross_compiling" = yes; then :
  4324. # Try to guess by grepping values from an object file.
  4325. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4326. /* end confdefs.h. */
  4327. short int ascii_mm[] =
  4328. { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
  4329. short int ascii_ii[] =
  4330. { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
  4331. int use_ascii (int i) {
  4332. return ascii_mm[i] + ascii_ii[i];
  4333. }
  4334. short int ebcdic_ii[] =
  4335. { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
  4336. short int ebcdic_mm[] =
  4337. { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
  4338. int use_ebcdic (int i) {
  4339. return ebcdic_mm[i] + ebcdic_ii[i];
  4340. }
  4341. extern int foo;
  4342. int
  4343. main ()
  4344. {
  4345. return use_ascii (foo) == use_ebcdic (foo);
  4346. ;
  4347. return 0;
  4348. }
  4349. _ACEOF
  4350. if ac_fn_c_try_compile "$LINENO"; then :
  4351. if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
  4352. ac_cv_c_bigendian=yes
  4353. fi
  4354. if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
  4355. if test "$ac_cv_c_bigendian" = unknown; then
  4356. ac_cv_c_bigendian=no
  4357. else
  4358. # finding both strings is unlikely to happen, but who knows?
  4359. ac_cv_c_bigendian=unknown
  4360. fi
  4361. fi
  4362. fi
  4363. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4364. else
  4365. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4366. /* end confdefs.h. */
  4367. $ac_includes_default
  4368. int
  4369. main ()
  4370. {
  4371. /* Are we little or big endian? From Harbison&Steele. */
  4372. union
  4373. {
  4374. long int l;
  4375. char c[sizeof (long int)];
  4376. } u;
  4377. u.l = 1;
  4378. return u.c[sizeof (long int) - 1] == 1;
  4379. ;
  4380. return 0;
  4381. }
  4382. _ACEOF
  4383. if ac_fn_c_try_run "$LINENO"; then :
  4384. ac_cv_c_bigendian=no
  4385. else
  4386. ac_cv_c_bigendian=yes
  4387. fi
  4388. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  4389. conftest.$ac_objext conftest.beam conftest.$ac_ext
  4390. fi
  4391. fi
  4392. fi
  4393. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
  4394. $as_echo "$ac_cv_c_bigendian" >&6; }
  4395. case $ac_cv_c_bigendian in #(
  4396. yes)
  4397. $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
  4398. ;; #(
  4399. no)
  4400. ;; #(
  4401. universal)
  4402. $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
  4403. ;; #(
  4404. *)
  4405. as_fn_error $? "unknown endianness
  4406. presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
  4407. esac
  4408. ac_fn_c_check_decl "$LINENO" "strerror_r" "ac_cv_have_decl_strerror_r" "$ac_includes_default"
  4409. if test "x$ac_cv_have_decl_strerror_r" = xyes; then :
  4410. ac_have_decl=1
  4411. else
  4412. ac_have_decl=0
  4413. fi
  4414. cat >>confdefs.h <<_ACEOF
  4415. #define HAVE_DECL_STRERROR_R $ac_have_decl
  4416. _ACEOF
  4417. for ac_func in strerror_r
  4418. do :
  4419. ac_fn_c_check_func "$LINENO" "strerror_r" "ac_cv_func_strerror_r"
  4420. if test "x$ac_cv_func_strerror_r" = xyes; then :
  4421. cat >>confdefs.h <<_ACEOF
  4422. #define HAVE_STRERROR_R 1
  4423. _ACEOF
  4424. fi
  4425. done
  4426. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether strerror_r returns char *" >&5
  4427. $as_echo_n "checking whether strerror_r returns char *... " >&6; }
  4428. if ${ac_cv_func_strerror_r_char_p+:} false; then :
  4429. $as_echo_n "(cached) " >&6
  4430. else
  4431. ac_cv_func_strerror_r_char_p=no
  4432. if test $ac_cv_have_decl_strerror_r = yes; then
  4433. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4434. /* end confdefs.h. */
  4435. $ac_includes_default
  4436. int
  4437. main ()
  4438. {
  4439. char buf[100];
  4440. char x = *strerror_r (0, buf, sizeof buf);
  4441. char *p = strerror_r (0, buf, sizeof buf);
  4442. return !p || x;
  4443. ;
  4444. return 0;
  4445. }
  4446. _ACEOF
  4447. if ac_fn_c_try_compile "$LINENO"; then :
  4448. ac_cv_func_strerror_r_char_p=yes
  4449. fi
  4450. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4451. else
  4452. # strerror_r is not declared. Choose between
  4453. # systems that have relatively inaccessible declarations for the
  4454. # function. BeOS and DEC UNIX 4.0 fall in this category, but the
  4455. # former has a strerror_r that returns char*, while the latter
  4456. # has a strerror_r that returns `int'.
  4457. # This test should segfault on the DEC system.
  4458. if test "$cross_compiling" = yes; then :
  4459. :
  4460. else
  4461. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4462. /* end confdefs.h. */
  4463. $ac_includes_default
  4464. extern char *strerror_r ();
  4465. int
  4466. main ()
  4467. {
  4468. char buf[100];
  4469. char x = *strerror_r (0, buf, sizeof buf);
  4470. return ! isalpha (x);
  4471. ;
  4472. return 0;
  4473. }
  4474. _ACEOF
  4475. if ac_fn_c_try_run "$LINENO"; then :
  4476. ac_cv_func_strerror_r_char_p=yes
  4477. fi
  4478. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  4479. conftest.$ac_objext conftest.beam conftest.$ac_ext
  4480. fi
  4481. fi
  4482. fi
  4483. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_strerror_r_char_p" >&5
  4484. $as_echo "$ac_cv_func_strerror_r_char_p" >&6; }
  4485. if test $ac_cv_func_strerror_r_char_p = yes; then
  4486. $as_echo "#define STRERROR_R_CHAR_P 1" >>confdefs.h
  4487. fi
  4488. for ac_func in snprintf vsnprintf
  4489. do :
  4490. as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
  4491. ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
  4492. if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
  4493. cat >>confdefs.h <<_ACEOF
  4494. #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
  4495. _ACEOF
  4496. else
  4497. ne_save_LIBS=$LIBS
  4498. LIBS="$LIBS -lm" # Always need -lm
  4499. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for trio_vsnprintf in -ltrio" >&5
  4500. $as_echo_n "checking for trio_vsnprintf in -ltrio... " >&6; }
  4501. if ${ac_cv_lib_trio_trio_vsnprintf+:} false; then :
  4502. $as_echo_n "(cached) " >&6
  4503. else
  4504. ac_check_lib_save_LIBS=$LIBS
  4505. LIBS="-ltrio $LIBS"
  4506. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4507. /* end confdefs.h. */
  4508. /* Override any GCC internal prototype to avoid an error.
  4509. Use char because int might match the return type of a GCC
  4510. builtin and then its argument prototype would still apply. */
  4511. #ifdef __cplusplus
  4512. extern "C"
  4513. #endif
  4514. char trio_vsnprintf ();
  4515. int
  4516. main ()
  4517. {
  4518. return trio_vsnprintf ();
  4519. ;
  4520. return 0;
  4521. }
  4522. _ACEOF
  4523. if ac_fn_c_try_link "$LINENO"; then :
  4524. ac_cv_lib_trio_trio_vsnprintf=yes
  4525. else
  4526. ac_cv_lib_trio_trio_vsnprintf=no
  4527. fi
  4528. rm -f core conftest.err conftest.$ac_objext \
  4529. conftest$ac_exeext conftest.$ac_ext
  4530. LIBS=$ac_check_lib_save_LIBS
  4531. fi
  4532. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_trio_trio_vsnprintf" >&5
  4533. $as_echo "$ac_cv_lib_trio_trio_vsnprintf" >&6; }
  4534. if test "x$ac_cv_lib_trio_trio_vsnprintf" = xyes; then :
  4535. for ac_header in trio.h
  4536. do :
  4537. ac_fn_c_check_header_mongrel "$LINENO" "trio.h" "ac_cv_header_trio_h" "$ac_includes_default"
  4538. if test "x$ac_cv_header_trio_h" = xyes; then :
  4539. cat >>confdefs.h <<_ACEOF
  4540. #define HAVE_TRIO_H 1
  4541. _ACEOF
  4542. else
  4543. as_fn_error $? "trio installation problem? libtrio found but not trio.h" "$LINENO" 5
  4544. fi
  4545. done
  4546. { $as_echo "$as_me:${as_lineno-$LINENO}: using trio printf replacement library" >&5
  4547. $as_echo "$as_me: using trio printf replacement library" >&6;}
  4548. NEON_LIBS="$NEON_LIBS -ltrio -lm"
  4549. $as_echo "#define HAVE_TRIO 1" >>confdefs.h
  4550. else
  4551. { $as_echo "$as_me:${as_lineno-$LINENO}: no vsnprintf/snprintf detected in C library" >&5
  4552. $as_echo "$as_me: no vsnprintf/snprintf detected in C library" >&6;}
  4553. as_fn_error $? "Install the trio library from http://daniel.haxx.se/projects/trio/" "$LINENO" 5
  4554. fi
  4555. LIBS=$ne_save_LIBS
  4556. break
  4557. fi
  4558. done
  4559. for ac_header in sys/time.h limits.h sys/select.h arpa/inet.h libintl.h \
  4560. signal.h sys/socket.h netinet/in.h netinet/tcp.h netdb.h sys/poll.h \
  4561. sys/limits.h fcntl.h iconv.h
  4562. do :
  4563. as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
  4564. ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
  4565. /* netinet/tcp.h requires netinet/in.h on some platforms. */
  4566. #ifdef HAVE_NETINET_IN_H
  4567. #include <netinet/in.h>
  4568. #endif
  4569. "
  4570. if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
  4571. cat >>confdefs.h <<_ACEOF
  4572. #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
  4573. _ACEOF
  4574. fi
  4575. done
  4576. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for timezone global" >&5
  4577. $as_echo_n "checking for timezone global... " >&6; }
  4578. if ${ne_cv_cc_timezone+:} false; then :
  4579. $as_echo_n "(cached) " >&6
  4580. else
  4581. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4582. /* end confdefs.h. */
  4583. #include <sys/types.h>
  4584. #include <time.h>
  4585. int
  4586. main ()
  4587. {
  4588. time_t t = 0 - timezone; timezone = 1;
  4589. ;
  4590. return 0;
  4591. }
  4592. _ACEOF
  4593. if ac_fn_c_try_link "$LINENO"; then :
  4594. ne_cv_cc_timezone=yes
  4595. else
  4596. ne_cv_cc_timezone=no
  4597. fi
  4598. rm -f core conftest.err conftest.$ac_objext \
  4599. conftest$ac_exeext conftest.$ac_ext
  4600. fi
  4601. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ne_cv_cc_timezone" >&5
  4602. $as_echo "$ne_cv_cc_timezone" >&6; }
  4603. if test "$ne_cv_cc_timezone" = "yes"; then
  4604. $as_echo "#define HAVE_TIMEZONE 1" >>confdefs.h
  4605. fi
  4606. if test -z "$ac_cv_sizeof_off_t"; then
  4607. NE_FLAG_LFS=no
  4608. ne_LFS_message="LFS support omitted: off_t size unknown!"
  4609. { $as_echo "$as_me:${as_lineno-$LINENO}: LFS support omitted: off_t size unknown!" >&5
  4610. $as_echo "$as_me: LFS support omitted: off_t size unknown!" >&6;}
  4611. elif test $ac_cv_sizeof_off_t != 4; then
  4612. NE_FLAG_LFS=no
  4613. ne_LFS_message="LFS support unnecessary, off_t is not 32-bit"
  4614. { $as_echo "$as_me:${as_lineno-$LINENO}: LFS support unnecessary, off_t is not 32-bit" >&5
  4615. $as_echo "$as_me: LFS support unnecessary, off_t is not 32-bit" >&6;}
  4616. for ac_func in strtoll strtoq
  4617. do :
  4618. as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
  4619. ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
  4620. if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
  4621. cat >>confdefs.h <<_ACEOF
  4622. #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
  4623. _ACEOF
  4624. break
  4625. fi
  4626. done
  4627. elif test -z "$ac_cv_sizeof_long_long"; then
  4628. NE_FLAG_LFS=no
  4629. ne_LFS_message="LFS support omitted: long long size unknown"
  4630. { $as_echo "$as_me:${as_lineno-$LINENO}: LFS support omitted: long long size unknown" >&5
  4631. $as_echo "$as_me: LFS support omitted: long long size unknown" >&6;}
  4632. elif test $ac_cv_sizeof_long_long != 8; then
  4633. NE_FLAG_LFS=no
  4634. ne_LFS_message="LFS support omitted: long long not 64-bit"
  4635. { $as_echo "$as_me:${as_lineno-$LINENO}: LFS support omitted: long long not 64-bit" >&5
  4636. $as_echo "$as_me: LFS support omitted: long long not 64-bit" >&6;}
  4637. else
  4638. ne_save_CPPFLAGS=$CPPFLAGS
  4639. CPPFLAGS="$CPPFLAGS -D_LARGEFILE64_SOURCE"
  4640. ac_fn_c_check_type "$LINENO" "off64_t" "ac_cv_type_off64_t" "$ac_includes_default"
  4641. if test "x$ac_cv_type_off64_t" = xyes; then :
  4642. # The cast to long int works around a bug in the HP C Compiler
  4643. # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
  4644. # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
  4645. # This bug is HP SR number 8606223364.
  4646. { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of off64_t" >&5
  4647. $as_echo_n "checking size of off64_t... " >&6; }
  4648. if ${ac_cv_sizeof_off64_t+:} false; then :
  4649. $as_echo_n "(cached) " >&6
  4650. else
  4651. if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (off64_t))" "ac_cv_sizeof_off64_t" "$ac_includes_default
  4652. "; then :
  4653. else
  4654. if test "$ac_cv_type_off64_t" = yes; then
  4655. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  4656. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  4657. as_fn_error 77 "cannot compute sizeof (off64_t)
  4658. See \`config.log' for more details" "$LINENO" 5; }
  4659. else
  4660. ac_cv_sizeof_off64_t=0
  4661. fi
  4662. fi
  4663. fi
  4664. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_off64_t" >&5
  4665. $as_echo "$ac_cv_sizeof_off64_t" >&6; }
  4666. cat >>confdefs.h <<_ACEOF
  4667. #define SIZEOF_OFF64_T $ac_cv_sizeof_off64_t
  4668. _ACEOF
  4669. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print off64_t" >&5
  4670. $as_echo_n "checking how to print off64_t... " >&6; }
  4671. if ${ne_cv_fmt_off64_t+:} false; then :
  4672. $as_echo_n "(cached) " >&6
  4673. else
  4674. ne_cv_fmt_off64_t=none
  4675. if test $ne_fmt_trycompile = yes; then
  4676. oflags="$CPPFLAGS"
  4677. # Consider format string mismatches as errors
  4678. CPPFLAGS="$CPPFLAGS -Wformat -Werror"
  4679. for str in d ld lld; do
  4680. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4681. /* end confdefs.h. */
  4682. #include <sys/types.h>
  4683. #include <stdio.h>
  4684. int
  4685. main ()
  4686. {
  4687. off64_t i = 1; printf("%$str", i);
  4688. ;
  4689. return 0;
  4690. }
  4691. _ACEOF
  4692. if ac_fn_c_try_compile "$LINENO"; then :
  4693. ne_cv_fmt_off64_t=$str; break
  4694. fi
  4695. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4696. done
  4697. CPPFLAGS=$oflags
  4698. else
  4699. # Best guess. Don't have to be too precise since we probably won't
  4700. # get a warning message anyway.
  4701. case $ac_cv_sizeof_off64_t in
  4702. $ac_cv_sizeof_int) ne_cv_fmt_off64_t="d" ;;
  4703. $ac_cv_sizeof_long) ne_cv_fmt_off64_t="ld" ;;
  4704. $ac_cv_sizeof_long_long) ne_cv_fmt_off64_t="lld" ;;
  4705. esac
  4706. fi
  4707. fi
  4708. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ne_cv_fmt_off64_t" >&5
  4709. $as_echo "$ne_cv_fmt_off64_t" >&6; }
  4710. if test "x$ne_cv_fmt_off64_t" = "xnone"; then
  4711. as_fn_error $? "format string for off64_t not found" "$LINENO" 5
  4712. fi
  4713. cat >>confdefs.h <<_ACEOF
  4714. #define NE_FMT_OFF64_T "$ne_cv_fmt_off64_t"
  4715. _ACEOF
  4716. ne_lfsok=no
  4717. for ac_func in strtoll strtoq
  4718. do :
  4719. as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
  4720. ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
  4721. if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
  4722. cat >>confdefs.h <<_ACEOF
  4723. #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
  4724. _ACEOF
  4725. ne_lfsok=yes; break
  4726. fi
  4727. done
  4728. for ac_func in lseek64 fstat64
  4729. do :
  4730. as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
  4731. ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
  4732. if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
  4733. cat >>confdefs.h <<_ACEOF
  4734. #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
  4735. _ACEOF
  4736. else
  4737. ne_lfsok=no; break
  4738. fi
  4739. done
  4740. if test x$ne_lfsok = xyes; then
  4741. NE_FLAG_LFS=yes
  4742. $as_echo "#define NE_HAVE_LFS 1" >>confdefs.h
  4743. ne_LFS_message="LFS (large file) support enabled"
  4744. { $as_echo "$as_me:${as_lineno-$LINENO}: LFS (large file) support enabled" >&5
  4745. $as_echo "$as_me: LFS (large file) support enabled" >&6;}
  4746. NEON_CFLAGS="$NEON_CFLAGS -D_LARGEFILE64_SOURCE -DNE_LFS"
  4747. ne_save_CPPFLAGS="$CPPFLAGS -DNE_LFS"
  4748. else
  4749. NE_FLAG_LFS=no
  4750. ne_LFS_message="LFS support omitted: 64-bit support functions not found"
  4751. { $as_echo "$as_me:${as_lineno-$LINENO}: LFS support omitted: 64-bit support functions not found" >&5
  4752. $as_echo "$as_me: LFS support omitted: 64-bit support functions not found" >&6;}
  4753. fi
  4754. else
  4755. NE_FLAG_LFS=no
  4756. ne_LFS_message="LFS support omitted: off64_t type not found"
  4757. { $as_echo "$as_me:${as_lineno-$LINENO}: LFS support omitted: off64_t type not found" >&5
  4758. $as_echo "$as_me: LFS support omitted: off64_t type not found" >&6;}
  4759. fi
  4760. CPPFLAGS=$ne_save_CPPFLAGS
  4761. fi
  4762. if test "$NE_FLAG_LFS" = "yes"; then
  4763. cat >>confdefs.h <<_ACEOF
  4764. #define NE_FMT_NE_OFF_T NE_FMT_OFF64_T
  4765. _ACEOF
  4766. if test "x${NE_LIBTOOL_RELEASE}y" = "xy"; then
  4767. NE_LIBTOOL_RELEASE="LFS"
  4768. else
  4769. NE_LIBTOOL_RELEASE="${NE_LIBTOOL_RELEASE}-LFS"
  4770. fi
  4771. else
  4772. cat >>confdefs.h <<_ACEOF
  4773. #define NE_FMT_NE_OFF_T NE_FMT_OFF_T
  4774. _ACEOF
  4775. fi
  4776. ac_fn_c_check_func "$LINENO" "strcasecmp" "ac_cv_func_strcasecmp"
  4777. if test "x$ac_cv_func_strcasecmp" = xyes; then :
  4778. $as_echo "#define HAVE_STRCASECMP 1" >>confdefs.h
  4779. else
  4780. case " $LIBOBJS " in
  4781. *" strcasecmp.$ac_objext "* ) ;;
  4782. *) LIBOBJS="$LIBOBJS strcasecmp.$ac_objext"
  4783. ;;
  4784. esac
  4785. fi
  4786. for ac_func in signal setvbuf setsockopt stpcpy poll fcntl getsockopt
  4787. do :
  4788. as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
  4789. ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
  4790. if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
  4791. cat >>confdefs.h <<_ACEOF
  4792. #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
  4793. _ACEOF
  4794. fi
  4795. done
  4796. if test "x${ac_cv_func_poll}${ac_cv_header_sys_poll_h}y" = "xyesyesy"; then
  4797. $as_echo "#define NE_USE_POLL 1" >>confdefs.h
  4798. fi
  4799. if test "$ac_cv_func_stpcpy" = "yes"; then
  4800. ac_fn_c_check_decl "$LINENO" "stpcpy" "ac_cv_have_decl_stpcpy" "$ac_includes_default"
  4801. if test "x$ac_cv_have_decl_stpcpy" = xyes; then :
  4802. ac_have_decl=1
  4803. else
  4804. ac_have_decl=0
  4805. fi
  4806. cat >>confdefs.h <<_ACEOF
  4807. #define HAVE_DECL_STPCPY $ac_have_decl
  4808. _ACEOF
  4809. fi
  4810. # Modern AIXes with the "Linux-like" libc have an undeclared stpcpy
  4811. # Unixware 7 can only link gethostbyname with -lnsl -lsocket
  4812. # Pick up -lsocket first, then the gethostbyname check will work.
  4813. # Haiku requires -lnetwork for socket functions.
  4814. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing socket" >&5
  4815. $as_echo_n "checking for library containing socket... " >&6; }
  4816. if ${ne_cv_libsfor_socket+:} false; then :
  4817. $as_echo_n "(cached) " >&6
  4818. else
  4819. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4820. /* end confdefs.h. */
  4821. int
  4822. main ()
  4823. {
  4824. socket();
  4825. ;
  4826. return 0;
  4827. }
  4828. _ACEOF
  4829. if ac_fn_c_try_link "$LINENO"; then :
  4830. ne_cv_libsfor_socket="none needed"
  4831. else
  4832. ne_sl_save_LIBS=$LIBS
  4833. ne_cv_libsfor_socket="not found"
  4834. for lib in socket inet ws2_32 network; do
  4835. # The w32api libraries link using the stdcall calling convention.
  4836. case ${lib}-${ne_cv_os_uname} in
  4837. ws2_32-MINGW*) ne__code="__stdcall socket();" ;;
  4838. *) ne__code="socket();" ;;
  4839. esac
  4840. LIBS="$ne_sl_save_LIBS -l$lib $NEON_LIBS"
  4841. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4842. /* end confdefs.h. */
  4843. int
  4844. main ()
  4845. {
  4846. $ne__code
  4847. ;
  4848. return 0;
  4849. }
  4850. _ACEOF
  4851. if ac_fn_c_try_link "$LINENO"; then :
  4852. ne_cv_libsfor_socket="-l$lib"; break
  4853. fi
  4854. rm -f core conftest.err conftest.$ac_objext \
  4855. conftest$ac_exeext conftest.$ac_ext
  4856. done
  4857. LIBS=$ne_sl_save_LIBS
  4858. fi
  4859. rm -f core conftest.err conftest.$ac_objext \
  4860. conftest$ac_exeext conftest.$ac_ext
  4861. fi
  4862. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ne_cv_libsfor_socket" >&5
  4863. $as_echo "$ne_cv_libsfor_socket" >&6; }
  4864. if test "$ne_cv_libsfor_socket" = "not found"; then
  4865. as_fn_error $? "could not find library containing socket" "$LINENO" 5
  4866. elif test "$ne_cv_libsfor_socket" = "none needed"; then
  4867. :
  4868. else
  4869. NEON_LIBS="$ne_cv_libsfor_socket $NEON_LIBS"
  4870. fi
  4871. # Enable getaddrinfo support if it, gai_strerror and inet_ntop are
  4872. # all available.
  4873. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing getaddrinfo" >&5
  4874. $as_echo_n "checking for library containing getaddrinfo... " >&6; }
  4875. if ${ne_cv_libsfor_getaddrinfo+:} false; then :
  4876. $as_echo_n "(cached) " >&6
  4877. else
  4878. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4879. /* end confdefs.h. */
  4880. int
  4881. main ()
  4882. {
  4883. getaddrinfo();
  4884. ;
  4885. return 0;
  4886. }
  4887. _ACEOF
  4888. if ac_fn_c_try_link "$LINENO"; then :
  4889. ne_cv_libsfor_getaddrinfo="none needed"
  4890. else
  4891. ne_sl_save_LIBS=$LIBS
  4892. ne_cv_libsfor_getaddrinfo="not found"
  4893. for lib in nsl; do
  4894. # The w32api libraries link using the stdcall calling convention.
  4895. case ${lib}-${ne_cv_os_uname} in
  4896. ws2_32-MINGW*) ne__code="__stdcall getaddrinfo();" ;;
  4897. *) ne__code="getaddrinfo();" ;;
  4898. esac
  4899. LIBS="$ne_sl_save_LIBS -l$lib $NEON_LIBS"
  4900. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4901. /* end confdefs.h. */
  4902. int
  4903. main ()
  4904. {
  4905. $ne__code
  4906. ;
  4907. return 0;
  4908. }
  4909. _ACEOF
  4910. if ac_fn_c_try_link "$LINENO"; then :
  4911. ne_cv_libsfor_getaddrinfo="-l$lib"; break
  4912. fi
  4913. rm -f core conftest.err conftest.$ac_objext \
  4914. conftest$ac_exeext conftest.$ac_ext
  4915. done
  4916. LIBS=$ne_sl_save_LIBS
  4917. fi
  4918. rm -f core conftest.err conftest.$ac_objext \
  4919. conftest$ac_exeext conftest.$ac_ext
  4920. fi
  4921. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ne_cv_libsfor_getaddrinfo" >&5
  4922. $as_echo "$ne_cv_libsfor_getaddrinfo" >&6; }
  4923. if test "$ne_cv_libsfor_getaddrinfo" = "not found"; then
  4924. ne_enable_gai=no
  4925. elif test "$ne_cv_libsfor_getaddrinfo" = "none needed"; then
  4926. # HP-UX boxes commonly get into a state where getaddrinfo is present
  4927. # but borked: http://marc.theaimsgroup.com/?l=apr-dev&m=107730955207120&w=2
  4928. case x`uname -sr 2>/dev/null`y in
  4929. xHP-UX*11.[01]*y)
  4930. { $as_echo "$as_me:${as_lineno-$LINENO}: getaddrinfo support disabled on HP-UX 11.0x/11.1x" >&5
  4931. $as_echo "$as_me: getaddrinfo support disabled on HP-UX 11.0x/11.1x" >&6;} ;;
  4932. *)
  4933. ne_enable_gai=yes
  4934. ne_cf_save_LIBS=$LIBS
  4935. LIBS="$LIBS $NEON_LIBS"
  4936. for ac_func in gai_strerror getnameinfo inet_ntop inet_pton
  4937. do :
  4938. as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
  4939. ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
  4940. if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
  4941. cat >>confdefs.h <<_ACEOF
  4942. #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
  4943. _ACEOF
  4944. else
  4945. ne_enable_gai=no; break
  4946. fi
  4947. done
  4948. LIBS=$ne_cf_save_LIBS ;;
  4949. esac
  4950. else
  4951. NEON_LIBS="$ne_cv_libsfor_getaddrinfo $NEON_LIBS"
  4952. # HP-UX boxes commonly get into a state where getaddrinfo is present
  4953. # but borked: http://marc.theaimsgroup.com/?l=apr-dev&m=107730955207120&w=2
  4954. case x`uname -sr 2>/dev/null`y in
  4955. xHP-UX*11.[01]*y)
  4956. { $as_echo "$as_me:${as_lineno-$LINENO}: getaddrinfo support disabled on HP-UX 11.0x/11.1x" >&5
  4957. $as_echo "$as_me: getaddrinfo support disabled on HP-UX 11.0x/11.1x" >&6;} ;;
  4958. *)
  4959. ne_enable_gai=yes
  4960. ne_cf_save_LIBS=$LIBS
  4961. LIBS="$LIBS $NEON_LIBS"
  4962. for ac_func in gai_strerror getnameinfo inet_ntop inet_pton
  4963. do :
  4964. as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
  4965. ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
  4966. if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
  4967. cat >>confdefs.h <<_ACEOF
  4968. #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
  4969. _ACEOF
  4970. else
  4971. ne_enable_gai=no; break
  4972. fi
  4973. done
  4974. LIBS=$ne_cf_save_LIBS ;;
  4975. esac
  4976. fi
  4977. if test $ne_enable_gai = yes; then
  4978. NE_FLAG_IPV6=yes
  4979. $as_echo "#define NE_HAVE_IPV6 1" >>confdefs.h
  4980. ne_IPV6_message="IPv6 support is enabled"
  4981. { $as_echo "$as_me:${as_lineno-$LINENO}: IPv6 support is enabled" >&5
  4982. $as_echo "$as_me: IPv6 support is enabled" >&6;}
  4983. $as_echo "#define USE_GETADDRINFO 1" >>confdefs.h
  4984. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working AI_ADDRCONFIG" >&5
  4985. $as_echo_n "checking for working AI_ADDRCONFIG... " >&6; }
  4986. if ${ne_cv_gai_addrconfig+:} false; then :
  4987. $as_echo_n "(cached) " >&6
  4988. else
  4989. if test "$cross_compiling" = yes; then :
  4990. ne_cv_gai_addrconfig=no
  4991. else
  4992. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4993. /* end confdefs.h. */
  4994. #include <netdb.h>
  4995. #include <stdlib.h>
  4996. int
  4997. main ()
  4998. {
  4999. struct addrinfo hints = {0}, *result;
  5000. hints.ai_flags = AI_ADDRCONFIG;
  5001. if (getaddrinfo("localhost", NULL, &hints, &result) != 0) return 1;
  5002. ;
  5003. return 0;
  5004. }
  5005. _ACEOF
  5006. if ac_fn_c_try_run "$LINENO"; then :
  5007. ne_cv_gai_addrconfig=yes
  5008. else
  5009. ne_cv_gai_addrconfig=no
  5010. fi
  5011. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  5012. conftest.$ac_objext conftest.beam conftest.$ac_ext
  5013. fi
  5014. fi
  5015. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ne_cv_gai_addrconfig" >&5
  5016. $as_echo "$ne_cv_gai_addrconfig" >&6; }
  5017. if test $ne_cv_gai_addrconfig = yes; then
  5018. $as_echo "#define USE_GAI_ADDRCONFIG 1" >>confdefs.h
  5019. fi
  5020. else
  5021. # Checks for non-getaddrinfo() based resolver interfaces.
  5022. # QNX has gethostbyname in -lsocket. BeOS only has it in -lbind.
  5023. # CygWin/Winsock2 has it in -lws2_32, allegedly.
  5024. # Haiku requires -lnetwork for socket functions.
  5025. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing gethostbyname" >&5
  5026. $as_echo_n "checking for library containing gethostbyname... " >&6; }
  5027. if ${ne_cv_libsfor_gethostbyname+:} false; then :
  5028. $as_echo_n "(cached) " >&6
  5029. else
  5030. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5031. /* end confdefs.h. */
  5032. int
  5033. main ()
  5034. {
  5035. gethostbyname();
  5036. ;
  5037. return 0;
  5038. }
  5039. _ACEOF
  5040. if ac_fn_c_try_link "$LINENO"; then :
  5041. ne_cv_libsfor_gethostbyname="none needed"
  5042. else
  5043. ne_sl_save_LIBS=$LIBS
  5044. ne_cv_libsfor_gethostbyname="not found"
  5045. for lib in socket nsl bind ws2_32 network; do
  5046. # The w32api libraries link using the stdcall calling convention.
  5047. case ${lib}-${ne_cv_os_uname} in
  5048. ws2_32-MINGW*) ne__code="__stdcall gethostbyname();" ;;
  5049. *) ne__code="gethostbyname();" ;;
  5050. esac
  5051. LIBS="$ne_sl_save_LIBS -l$lib $NEON_LIBS"
  5052. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5053. /* end confdefs.h. */
  5054. int
  5055. main ()
  5056. {
  5057. $ne__code
  5058. ;
  5059. return 0;
  5060. }
  5061. _ACEOF
  5062. if ac_fn_c_try_link "$LINENO"; then :
  5063. ne_cv_libsfor_gethostbyname="-l$lib"; break
  5064. fi
  5065. rm -f core conftest.err conftest.$ac_objext \
  5066. conftest$ac_exeext conftest.$ac_ext
  5067. done
  5068. LIBS=$ne_sl_save_LIBS
  5069. fi
  5070. rm -f core conftest.err conftest.$ac_objext \
  5071. conftest$ac_exeext conftest.$ac_ext
  5072. fi
  5073. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ne_cv_libsfor_gethostbyname" >&5
  5074. $as_echo "$ne_cv_libsfor_gethostbyname" >&6; }
  5075. if test "$ne_cv_libsfor_gethostbyname" = "not found"; then
  5076. as_fn_error $? "could not find library containing gethostbyname" "$LINENO" 5
  5077. elif test "$ne_cv_libsfor_gethostbyname" = "none needed"; then
  5078. :
  5079. else
  5080. NEON_LIBS="$ne_cv_libsfor_gethostbyname $NEON_LIBS"
  5081. fi
  5082. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing hstrerror" >&5
  5083. $as_echo_n "checking for library containing hstrerror... " >&6; }
  5084. if ${ne_cv_libsfor_hstrerror+:} false; then :
  5085. $as_echo_n "(cached) " >&6
  5086. else
  5087. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5088. /* end confdefs.h. */
  5089. int
  5090. main ()
  5091. {
  5092. hstrerror();
  5093. ;
  5094. return 0;
  5095. }
  5096. _ACEOF
  5097. if ac_fn_c_try_link "$LINENO"; then :
  5098. ne_cv_libsfor_hstrerror="none needed"
  5099. else
  5100. ne_sl_save_LIBS=$LIBS
  5101. ne_cv_libsfor_hstrerror="not found"
  5102. for lib in resolv; do
  5103. # The w32api libraries link using the stdcall calling convention.
  5104. case ${lib}-${ne_cv_os_uname} in
  5105. ws2_32-MINGW*) ne__code="__stdcall hstrerror();" ;;
  5106. *) ne__code="hstrerror();" ;;
  5107. esac
  5108. LIBS="$ne_sl_save_LIBS -l$lib $NEON_LIBS"
  5109. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5110. /* end confdefs.h. */
  5111. int
  5112. main ()
  5113. {
  5114. $ne__code
  5115. ;
  5116. return 0;
  5117. }
  5118. _ACEOF
  5119. if ac_fn_c_try_link "$LINENO"; then :
  5120. ne_cv_libsfor_hstrerror="-l$lib"; break
  5121. fi
  5122. rm -f core conftest.err conftest.$ac_objext \
  5123. conftest$ac_exeext conftest.$ac_ext
  5124. done
  5125. LIBS=$ne_sl_save_LIBS
  5126. fi
  5127. rm -f core conftest.err conftest.$ac_objext \
  5128. conftest$ac_exeext conftest.$ac_ext
  5129. fi
  5130. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ne_cv_libsfor_hstrerror" >&5
  5131. $as_echo "$ne_cv_libsfor_hstrerror" >&6; }
  5132. if test "$ne_cv_libsfor_hstrerror" = "not found"; then
  5133. :
  5134. elif test "$ne_cv_libsfor_hstrerror" = "none needed"; then
  5135. :
  5136. else
  5137. NEON_LIBS="$ne_cv_libsfor_hstrerror $NEON_LIBS"
  5138. fi
  5139. ne_cf_save_LIBS=$LIBS
  5140. LIBS="$LIBS $NEON_LIBS"
  5141. for ac_func in hstrerror
  5142. do :
  5143. ac_fn_c_check_func "$LINENO" "hstrerror" "ac_cv_func_hstrerror"
  5144. if test "x$ac_cv_func_hstrerror" = xyes; then :
  5145. cat >>confdefs.h <<_ACEOF
  5146. #define HAVE_HSTRERROR 1
  5147. _ACEOF
  5148. fi
  5149. done
  5150. LIBS=$ne_cf_save_LIBS
  5151. # Older Unixes don't declare h_errno.
  5152. ac_fn_c_check_decl "$LINENO" "h_errno" "ac_cv_have_decl_h_errno" "#include <netdb.h>
  5153. "
  5154. if test "x$ac_cv_have_decl_h_errno" = xyes; then :
  5155. ac_have_decl=1
  5156. else
  5157. ac_have_decl=0
  5158. fi
  5159. cat >>confdefs.h <<_ACEOF
  5160. #define HAVE_DECL_H_ERRNO $ac_have_decl
  5161. _ACEOF
  5162. ac_fn_c_check_type "$LINENO" "in_addr_t" "ac_cv_type_in_addr_t" "
  5163. #ifdef HAVE_SYS_TYPES_H
  5164. # include <sys/types.h>
  5165. #endif
  5166. #ifdef HAVE_NETINET_IN_H
  5167. # include <netinet/in.h>
  5168. #endif
  5169. "
  5170. if test "x$ac_cv_type_in_addr_t" = xyes; then :
  5171. else
  5172. $as_echo "#define in_addr_t unsigned int" >>confdefs.h
  5173. fi
  5174. fi
  5175. ac_fn_c_check_type "$LINENO" "socklen_t" "ac_cv_type_socklen_t" "
  5176. #ifdef HAVE_SYS_TYPES_H
  5177. # include <sys/types.h>
  5178. #endif
  5179. #ifdef HAVE_SYS_SOCKET_H
  5180. # include <sys/socket.h>
  5181. #endif
  5182. "
  5183. if test "x$ac_cv_type_socklen_t" = xyes; then :
  5184. cat >>confdefs.h <<_ACEOF
  5185. #define HAVE_SOCKLEN_T 1
  5186. _ACEOF
  5187. else
  5188. # Linux accept(2) says this should be size_t for SunOS 5... gah.
  5189. $as_echo "#define socklen_t int" >>confdefs.h
  5190. fi
  5191. ac_fn_c_check_member "$LINENO" "struct tm" "tm_gmtoff" "ac_cv_member_struct_tm_tm_gmtoff" "#include <time.h>
  5192. "
  5193. if test "x$ac_cv_member_struct_tm_tm_gmtoff" = xyes; then :
  5194. cat >>confdefs.h <<_ACEOF
  5195. #define HAVE_STRUCT_TM_TM_GMTOFF 1
  5196. _ACEOF
  5197. fi
  5198. ac_fn_c_check_member "$LINENO" "struct tm" "__tm_gmtoff" "ac_cv_member_struct_tm___tm_gmtoff" "#include <time.h>
  5199. "
  5200. if test "x$ac_cv_member_struct_tm___tm_gmtoff" = xyes; then :
  5201. cat >>confdefs.h <<_ACEOF
  5202. #define HAVE_STRUCT_TM___TM_GMTOFF 1
  5203. _ACEOF
  5204. fi
  5205. if test ${ac_cv_member_struct_tm_tm_gmtoff}${ac_cv_member_struct_tm___tm_gmtoff}${ne_cv_cc_timezone} = nonono; then
  5206. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: no timezone handling in date parsing on this platform" >&5
  5207. $as_echo "$as_me: WARNING: no timezone handling in date parsing on this platform" >&2;}
  5208. fi
  5209. # Check whether --with-zlib was given.
  5210. if test "${with_zlib+set}" = set; then :
  5211. withval=$with_zlib; ne_use_zlib=$withval
  5212. else
  5213. ne_use_zlib=yes
  5214. fi
  5215. if test "$ne_use_zlib" = "yes"; then
  5216. ac_fn_c_check_header_mongrel "$LINENO" "zlib.h" "ac_cv_header_zlib_h" "$ac_includes_default"
  5217. if test "x$ac_cv_header_zlib_h" = xyes; then :
  5218. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inflate in -lz" >&5
  5219. $as_echo_n "checking for inflate in -lz... " >&6; }
  5220. if ${ac_cv_lib_z_inflate+:} false; then :
  5221. $as_echo_n "(cached) " >&6
  5222. else
  5223. ac_check_lib_save_LIBS=$LIBS
  5224. LIBS="-lz $LIBS"
  5225. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5226. /* end confdefs.h. */
  5227. /* Override any GCC internal prototype to avoid an error.
  5228. Use char because int might match the return type of a GCC
  5229. builtin and then its argument prototype would still apply. */
  5230. #ifdef __cplusplus
  5231. extern "C"
  5232. #endif
  5233. char inflate ();
  5234. int
  5235. main ()
  5236. {
  5237. return inflate ();
  5238. ;
  5239. return 0;
  5240. }
  5241. _ACEOF
  5242. if ac_fn_c_try_link "$LINENO"; then :
  5243. ac_cv_lib_z_inflate=yes
  5244. else
  5245. ac_cv_lib_z_inflate=no
  5246. fi
  5247. rm -f core conftest.err conftest.$ac_objext \
  5248. conftest$ac_exeext conftest.$ac_ext
  5249. LIBS=$ac_check_lib_save_LIBS
  5250. fi
  5251. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_inflate" >&5
  5252. $as_echo "$ac_cv_lib_z_inflate" >&6; }
  5253. if test "x$ac_cv_lib_z_inflate" = xyes; then :
  5254. NEON_LIBS="$NEON_LIBS -lz"
  5255. NE_FLAG_ZLIB=yes
  5256. $as_echo "#define NE_HAVE_ZLIB 1" >>confdefs.h
  5257. ne_ZLIB_message="zlib support enabled, using -lz"
  5258. { $as_echo "$as_me:${as_lineno-$LINENO}: zlib support enabled, using -lz" >&5
  5259. $as_echo "$as_me: zlib support enabled, using -lz" >&6;}
  5260. else
  5261. NE_FLAG_ZLIB=no
  5262. ne_ZLIB_message="zlib library not found"
  5263. { $as_echo "$as_me:${as_lineno-$LINENO}: zlib library not found" >&5
  5264. $as_echo "$as_me: zlib library not found" >&6;}
  5265. fi
  5266. else
  5267. NE_FLAG_ZLIB=no
  5268. ne_ZLIB_message="zlib header not found"
  5269. { $as_echo "$as_me:${as_lineno-$LINENO}: zlib header not found" >&5
  5270. $as_echo "$as_me: zlib header not found" >&6;}
  5271. fi
  5272. else
  5273. NE_FLAG_ZLIB=no
  5274. ne_ZLIB_message="zlib not enabled"
  5275. { $as_echo "$as_me:${as_lineno-$LINENO}: zlib not enabled" >&5
  5276. $as_echo "$as_me: zlib not enabled" >&6;}
  5277. fi
  5278. # Conditionally enable ACL support
  5279. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable ACL support in neon" >&5
  5280. $as_echo_n "checking whether to enable ACL support in neon... " >&6; }
  5281. if test "x$neon_no_acl" = "xyes"; then
  5282. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5283. $as_echo "no" >&6; }
  5284. else
  5285. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  5286. $as_echo "yes" >&6; }
  5287. NEON_EXTRAOBJS="$NEON_EXTRAOBJS ne_oldacl ne_acl3744"
  5288. fi
  5289. # Check whether --with-ssl was given.
  5290. if test "${with_ssl+set}" = set; then :
  5291. withval=$with_ssl;
  5292. fi
  5293. # Check whether --with-egd was given.
  5294. if test "${with_egd+set}" = set; then :
  5295. withval=$with_egd;
  5296. fi
  5297. # Check whether --with-pakchois was given.
  5298. if test "${with_pakchois+set}" = set; then :
  5299. withval=$with_pakchois;
  5300. fi
  5301. case $with_ssl in
  5302. /*)
  5303. { $as_echo "$as_me:${as_lineno-$LINENO}: to use SSL libraries in non-standard locations, try --with-ssl --with-libs=$with_ssl" >&5
  5304. $as_echo "$as_me: to use SSL libraries in non-standard locations, try --with-ssl --with-libs=$with_ssl" >&6;}
  5305. as_fn_error $? "--with-ssl does not take a path argument" "$LINENO" 5
  5306. ;;
  5307. yes|openssl)
  5308. # Extract the first word of "pkg-config", so it can be a program name with args.
  5309. set dummy pkg-config; ac_word=$2
  5310. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5311. $as_echo_n "checking for $ac_word... " >&6; }
  5312. if ${ac_cv_path_PKG_CONFIG+:} false; then :
  5313. $as_echo_n "(cached) " >&6
  5314. else
  5315. case $PKG_CONFIG in
  5316. [\\/]* | ?:[\\/]*)
  5317. ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
  5318. ;;
  5319. *)
  5320. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5321. for as_dir in $PATH
  5322. do
  5323. IFS=$as_save_IFS
  5324. test -z "$as_dir" && as_dir=.
  5325. for ac_exec_ext in '' $ac_executable_extensions; do
  5326. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5327. ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
  5328. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5329. break 2
  5330. fi
  5331. done
  5332. done
  5333. IFS=$as_save_IFS
  5334. test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
  5335. ;;
  5336. esac
  5337. fi
  5338. PKG_CONFIG=$ac_cv_path_PKG_CONFIG
  5339. if test -n "$PKG_CONFIG"; then
  5340. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
  5341. $as_echo "$PKG_CONFIG" >&6; }
  5342. else
  5343. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5344. $as_echo "no" >&6; }
  5345. fi
  5346. if test "$PKG_CONFIG" = "no"; then
  5347. : Not using pkg-config
  5348. # Either OpenSSL library may require -ldl if built with dynamic engine support
  5349. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing RSA_new" >&5
  5350. $as_echo_n "checking for library containing RSA_new... " >&6; }
  5351. if ${ne_cv_libsfor_RSA_new+:} false; then :
  5352. $as_echo_n "(cached) " >&6
  5353. else
  5354. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5355. /* end confdefs.h. */
  5356. int
  5357. main ()
  5358. {
  5359. RSA_new();
  5360. ;
  5361. return 0;
  5362. }
  5363. _ACEOF
  5364. if ac_fn_c_try_link "$LINENO"; then :
  5365. ne_cv_libsfor_RSA_new="none needed"
  5366. else
  5367. ne_sl_save_LIBS=$LIBS
  5368. ne_cv_libsfor_RSA_new="not found"
  5369. for lib in crypto; do
  5370. # The w32api libraries link using the stdcall calling convention.
  5371. case ${lib}-${ne_cv_os_uname} in
  5372. ws2_32-MINGW*) ne__code="__stdcall RSA_new();" ;;
  5373. *) ne__code="RSA_new();" ;;
  5374. esac
  5375. LIBS="$ne_sl_save_LIBS -l$lib $NEON_LIBS"
  5376. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5377. /* end confdefs.h. */
  5378. int
  5379. main ()
  5380. {
  5381. $ne__code
  5382. ;
  5383. return 0;
  5384. }
  5385. _ACEOF
  5386. if ac_fn_c_try_link "$LINENO"; then :
  5387. ne_cv_libsfor_RSA_new="-l$lib"; break
  5388. fi
  5389. rm -f core conftest.err conftest.$ac_objext \
  5390. conftest$ac_exeext conftest.$ac_ext
  5391. LIBS="$ne_sl_save_LIBS -l$lib -ldl $NEON_LIBS"
  5392. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5393. /* end confdefs.h. */
  5394. int
  5395. main ()
  5396. {
  5397. $ne__code
  5398. ;
  5399. return 0;
  5400. }
  5401. _ACEOF
  5402. if ac_fn_c_try_link "$LINENO"; then :
  5403. ne_cv_libsfor_RSA_new="-l$lib -ldl"; break
  5404. fi
  5405. rm -f core conftest.err conftest.$ac_objext \
  5406. conftest$ac_exeext conftest.$ac_ext
  5407. done
  5408. LIBS=$ne_sl_save_LIBS
  5409. fi
  5410. rm -f core conftest.err conftest.$ac_objext \
  5411. conftest$ac_exeext conftest.$ac_ext
  5412. fi
  5413. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ne_cv_libsfor_RSA_new" >&5
  5414. $as_echo "$ne_cv_libsfor_RSA_new" >&6; }
  5415. if test "$ne_cv_libsfor_RSA_new" = "not found"; then
  5416. as_fn_error $? "could not find library containing RSA_new" "$LINENO" 5
  5417. elif test "$ne_cv_libsfor_RSA_new" = "none needed"; then
  5418. :
  5419. else
  5420. NEON_LIBS="$ne_cv_libsfor_RSA_new $NEON_LIBS"
  5421. fi
  5422. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing SSL_library_init" >&5
  5423. $as_echo_n "checking for library containing SSL_library_init... " >&6; }
  5424. if ${ne_cv_libsfor_SSL_library_init+:} false; then :
  5425. $as_echo_n "(cached) " >&6
  5426. else
  5427. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5428. /* end confdefs.h. */
  5429. int
  5430. main ()
  5431. {
  5432. SSL_library_init();
  5433. ;
  5434. return 0;
  5435. }
  5436. _ACEOF
  5437. if ac_fn_c_try_link "$LINENO"; then :
  5438. ne_cv_libsfor_SSL_library_init="none needed"
  5439. else
  5440. ne_sl_save_LIBS=$LIBS
  5441. ne_cv_libsfor_SSL_library_init="not found"
  5442. for lib in ssl; do
  5443. # The w32api libraries link using the stdcall calling convention.
  5444. case ${lib}-${ne_cv_os_uname} in
  5445. ws2_32-MINGW*) ne__code="__stdcall SSL_library_init();" ;;
  5446. *) ne__code="SSL_library_init();" ;;
  5447. esac
  5448. LIBS="$ne_sl_save_LIBS -l$lib $NEON_LIBS"
  5449. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5450. /* end confdefs.h. */
  5451. int
  5452. main ()
  5453. {
  5454. $ne__code
  5455. ;
  5456. return 0;
  5457. }
  5458. _ACEOF
  5459. if ac_fn_c_try_link "$LINENO"; then :
  5460. ne_cv_libsfor_SSL_library_init="-l$lib"; break
  5461. fi
  5462. rm -f core conftest.err conftest.$ac_objext \
  5463. conftest$ac_exeext conftest.$ac_ext
  5464. LIBS="$ne_sl_save_LIBS -l$lib -ldl $NEON_LIBS"
  5465. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5466. /* end confdefs.h. */
  5467. int
  5468. main ()
  5469. {
  5470. $ne__code
  5471. ;
  5472. return 0;
  5473. }
  5474. _ACEOF
  5475. if ac_fn_c_try_link "$LINENO"; then :
  5476. ne_cv_libsfor_SSL_library_init="-l$lib -ldl"; break
  5477. fi
  5478. rm -f core conftest.err conftest.$ac_objext \
  5479. conftest$ac_exeext conftest.$ac_ext
  5480. done
  5481. LIBS=$ne_sl_save_LIBS
  5482. fi
  5483. rm -f core conftest.err conftest.$ac_objext \
  5484. conftest$ac_exeext conftest.$ac_ext
  5485. fi
  5486. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ne_cv_libsfor_SSL_library_init" >&5
  5487. $as_echo "$ne_cv_libsfor_SSL_library_init" >&6; }
  5488. if test "$ne_cv_libsfor_SSL_library_init" = "not found"; then
  5489. as_fn_error $? "could not find library containing SSL_library_init" "$LINENO" 5
  5490. elif test "$ne_cv_libsfor_SSL_library_init" = "none needed"; then
  5491. :
  5492. else
  5493. NEON_LIBS="$ne_cv_libsfor_SSL_library_init $NEON_LIBS"
  5494. fi
  5495. NE_SSL_VERSION="(0.9.7 or later)"
  5496. else
  5497. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for openssl pkg-config data" >&5
  5498. $as_echo_n "checking for openssl pkg-config data... " >&6; }
  5499. if ${ne_cv_pkg_openssl+:} false; then :
  5500. $as_echo_n "(cached) " >&6
  5501. else
  5502. if $PKG_CONFIG openssl; then
  5503. ne_cv_pkg_openssl=yes
  5504. else
  5505. ne_cv_pkg_openssl=no
  5506. fi
  5507. fi
  5508. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ne_cv_pkg_openssl" >&5
  5509. $as_echo "$ne_cv_pkg_openssl" >&6; }
  5510. if test "$ne_cv_pkg_openssl" = "yes"; then
  5511. NE_SSL_CFLAGS=`$PKG_CONFIG --cflags openssl`
  5512. NE_SSL_LIBS=`$PKG_CONFIG --libs openssl`
  5513. NE_SSL_VERSION=`$PKG_CONFIG --modversion openssl`
  5514. : Using provided pkg-config data
  5515. { $as_echo "$as_me:${as_lineno-$LINENO}: using OpenSSL $NE_SSL_VERSION library configuration from pkg-config" >&5
  5516. $as_echo "$as_me: using OpenSSL $NE_SSL_VERSION library configuration from pkg-config" >&6;}
  5517. CPPFLAGS="$CPPFLAGS ${NE_SSL_CFLAGS}"
  5518. NEON_LIBS="$NEON_LIBS ${NE_SSL_LIBS}"
  5519. else
  5520. : No pkg-config for openssl provided
  5521. # Either OpenSSL library may require -ldl if built with dynamic engine support
  5522. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing RSA_new" >&5
  5523. $as_echo_n "checking for library containing RSA_new... " >&6; }
  5524. if ${ne_cv_libsfor_RSA_new+:} false; then :
  5525. $as_echo_n "(cached) " >&6
  5526. else
  5527. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5528. /* end confdefs.h. */
  5529. int
  5530. main ()
  5531. {
  5532. RSA_new();
  5533. ;
  5534. return 0;
  5535. }
  5536. _ACEOF
  5537. if ac_fn_c_try_link "$LINENO"; then :
  5538. ne_cv_libsfor_RSA_new="none needed"
  5539. else
  5540. ne_sl_save_LIBS=$LIBS
  5541. ne_cv_libsfor_RSA_new="not found"
  5542. for lib in crypto; do
  5543. # The w32api libraries link using the stdcall calling convention.
  5544. case ${lib}-${ne_cv_os_uname} in
  5545. ws2_32-MINGW*) ne__code="__stdcall RSA_new();" ;;
  5546. *) ne__code="RSA_new();" ;;
  5547. esac
  5548. LIBS="$ne_sl_save_LIBS -l$lib $NEON_LIBS"
  5549. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5550. /* end confdefs.h. */
  5551. int
  5552. main ()
  5553. {
  5554. $ne__code
  5555. ;
  5556. return 0;
  5557. }
  5558. _ACEOF
  5559. if ac_fn_c_try_link "$LINENO"; then :
  5560. ne_cv_libsfor_RSA_new="-l$lib"; break
  5561. fi
  5562. rm -f core conftest.err conftest.$ac_objext \
  5563. conftest$ac_exeext conftest.$ac_ext
  5564. LIBS="$ne_sl_save_LIBS -l$lib -ldl $NEON_LIBS"
  5565. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5566. /* end confdefs.h. */
  5567. int
  5568. main ()
  5569. {
  5570. $ne__code
  5571. ;
  5572. return 0;
  5573. }
  5574. _ACEOF
  5575. if ac_fn_c_try_link "$LINENO"; then :
  5576. ne_cv_libsfor_RSA_new="-l$lib -ldl"; break
  5577. fi
  5578. rm -f core conftest.err conftest.$ac_objext \
  5579. conftest$ac_exeext conftest.$ac_ext
  5580. done
  5581. LIBS=$ne_sl_save_LIBS
  5582. fi
  5583. rm -f core conftest.err conftest.$ac_objext \
  5584. conftest$ac_exeext conftest.$ac_ext
  5585. fi
  5586. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ne_cv_libsfor_RSA_new" >&5
  5587. $as_echo "$ne_cv_libsfor_RSA_new" >&6; }
  5588. if test "$ne_cv_libsfor_RSA_new" = "not found"; then
  5589. as_fn_error $? "could not find library containing RSA_new" "$LINENO" 5
  5590. elif test "$ne_cv_libsfor_RSA_new" = "none needed"; then
  5591. :
  5592. else
  5593. NEON_LIBS="$ne_cv_libsfor_RSA_new $NEON_LIBS"
  5594. fi
  5595. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing SSL_library_init" >&5
  5596. $as_echo_n "checking for library containing SSL_library_init... " >&6; }
  5597. if ${ne_cv_libsfor_SSL_library_init+:} false; then :
  5598. $as_echo_n "(cached) " >&6
  5599. else
  5600. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5601. /* end confdefs.h. */
  5602. int
  5603. main ()
  5604. {
  5605. SSL_library_init();
  5606. ;
  5607. return 0;
  5608. }
  5609. _ACEOF
  5610. if ac_fn_c_try_link "$LINENO"; then :
  5611. ne_cv_libsfor_SSL_library_init="none needed"
  5612. else
  5613. ne_sl_save_LIBS=$LIBS
  5614. ne_cv_libsfor_SSL_library_init="not found"
  5615. for lib in ssl; do
  5616. # The w32api libraries link using the stdcall calling convention.
  5617. case ${lib}-${ne_cv_os_uname} in
  5618. ws2_32-MINGW*) ne__code="__stdcall SSL_library_init();" ;;
  5619. *) ne__code="SSL_library_init();" ;;
  5620. esac
  5621. LIBS="$ne_sl_save_LIBS -l$lib $NEON_LIBS"
  5622. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5623. /* end confdefs.h. */
  5624. int
  5625. main ()
  5626. {
  5627. $ne__code
  5628. ;
  5629. return 0;
  5630. }
  5631. _ACEOF
  5632. if ac_fn_c_try_link "$LINENO"; then :
  5633. ne_cv_libsfor_SSL_library_init="-l$lib"; break
  5634. fi
  5635. rm -f core conftest.err conftest.$ac_objext \
  5636. conftest$ac_exeext conftest.$ac_ext
  5637. LIBS="$ne_sl_save_LIBS -l$lib -ldl $NEON_LIBS"
  5638. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5639. /* end confdefs.h. */
  5640. int
  5641. main ()
  5642. {
  5643. $ne__code
  5644. ;
  5645. return 0;
  5646. }
  5647. _ACEOF
  5648. if ac_fn_c_try_link "$LINENO"; then :
  5649. ne_cv_libsfor_SSL_library_init="-l$lib -ldl"; break
  5650. fi
  5651. rm -f core conftest.err conftest.$ac_objext \
  5652. conftest$ac_exeext conftest.$ac_ext
  5653. done
  5654. LIBS=$ne_sl_save_LIBS
  5655. fi
  5656. rm -f core conftest.err conftest.$ac_objext \
  5657. conftest$ac_exeext conftest.$ac_ext
  5658. fi
  5659. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ne_cv_libsfor_SSL_library_init" >&5
  5660. $as_echo "$ne_cv_libsfor_SSL_library_init" >&6; }
  5661. if test "$ne_cv_libsfor_SSL_library_init" = "not found"; then
  5662. as_fn_error $? "could not find library containing SSL_library_init" "$LINENO" 5
  5663. elif test "$ne_cv_libsfor_SSL_library_init" = "none needed"; then
  5664. :
  5665. else
  5666. NEON_LIBS="$ne_cv_libsfor_SSL_library_init $NEON_LIBS"
  5667. fi
  5668. NE_SSL_VERSION="(0.9.7 or later)"
  5669. fi
  5670. fi
  5671. for ac_header in openssl/ssl.h openssl/opensslv.h
  5672. do :
  5673. as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
  5674. ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
  5675. if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
  5676. cat >>confdefs.h <<_ACEOF
  5677. #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
  5678. _ACEOF
  5679. else
  5680. as_fn_error $? "OpenSSL headers not found, cannot enable SSL support" "$LINENO" 5
  5681. fi
  5682. done
  5683. { $as_echo "$as_me:${as_lineno-$LINENO}: checking OpenSSL version is >= 0.9.7" >&5
  5684. $as_echo_n "checking OpenSSL version is >= 0.9.7... " >&6; }
  5685. if ${ne_cv_lib_ssl097+:} false; then :
  5686. $as_echo_n "(cached) " >&6
  5687. else
  5688. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5689. /* end confdefs.h. */
  5690. #include <openssl/opensslv.h>
  5691. #if OPENSSL_VERSION_NUMBER >= 0x00907000L
  5692. good
  5693. #endif
  5694. _ACEOF
  5695. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  5696. $EGREP "good" >/dev/null 2>&1; then :
  5697. ne_cv_lib_ssl097=yes
  5698. else
  5699. ne_cv_lib_ssl097=no
  5700. fi
  5701. rm -f conftest*
  5702. fi
  5703. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ne_cv_lib_ssl097" >&5
  5704. $as_echo "$ne_cv_lib_ssl097" >&6; }
  5705. { $as_echo "$as_me:${as_lineno-$LINENO}: checking OpenSSL version is >= 1.1.0" >&5
  5706. $as_echo_n "checking OpenSSL version is >= 1.1.0... " >&6; }
  5707. if ${ne_cv_lib_ssl110+:} false; then :
  5708. $as_echo_n "(cached) " >&6
  5709. else
  5710. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5711. /* end confdefs.h. */
  5712. #include <openssl/opensslv.h>
  5713. #if OPENSSL_VERSION_NUMBER >= 0x10100000L
  5714. good
  5715. #endif
  5716. _ACEOF
  5717. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  5718. $EGREP "good" >/dev/null 2>&1; then :
  5719. ne_cv_lib_ssl110=yes
  5720. else
  5721. ne_cv_lib_ssl110=no
  5722. fi
  5723. rm -f conftest*
  5724. fi
  5725. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ne_cv_lib_ssl110" >&5
  5726. $as_echo "$ne_cv_lib_ssl110" >&6; }
  5727. if test "$ne_cv_lib_ssl110" = "yes"; then
  5728. NE_FLAG_SSL=yes
  5729. $as_echo "#define NE_HAVE_SSL 1" >>confdefs.h
  5730. ne_SSL_message="SSL support enabled, using OpenSSL $NE_SSL_VERSION"
  5731. { $as_echo "$as_me:${as_lineno-$LINENO}: SSL support enabled, using OpenSSL $NE_SSL_VERSION" >&5
  5732. $as_echo "$as_me: SSL support enabled, using OpenSSL $NE_SSL_VERSION" >&6;}
  5733. elif test "$ne_cv_lib_ssl097" = "yes"; then
  5734. # Enable EGD support if using 0.9.7 or newer
  5735. { $as_echo "$as_me:${as_lineno-$LINENO}: OpenSSL >= 0.9.7; EGD support not needed in neon" >&5
  5736. $as_echo "$as_me: OpenSSL >= 0.9.7; EGD support not needed in neon" >&6;}
  5737. NE_FLAG_SSL=yes
  5738. $as_echo "#define NE_HAVE_SSL 1" >>confdefs.h
  5739. ne_SSL_message="SSL support enabled, using OpenSSL $NE_SSL_VERSION"
  5740. { $as_echo "$as_me:${as_lineno-$LINENO}: SSL support enabled, using OpenSSL $NE_SSL_VERSION" >&5
  5741. $as_echo "$as_me: SSL support enabled, using OpenSSL $NE_SSL_VERSION" >&6;}
  5742. ne_cf_save_LIBS=$LIBS
  5743. LIBS="$LIBS $NEON_LIBS"
  5744. for ac_func in CRYPTO_set_idptr_callback SSL_SESSION_cmp
  5745. do :
  5746. as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
  5747. ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
  5748. if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
  5749. cat >>confdefs.h <<_ACEOF
  5750. #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
  5751. _ACEOF
  5752. fi
  5753. done
  5754. LIBS=$ne_cf_save_LIBS
  5755. else
  5756. # Fail if OpenSSL is older than 0.9.6
  5757. { $as_echo "$as_me:${as_lineno-$LINENO}: checking OpenSSL version is >= 0.9.6" >&5
  5758. $as_echo_n "checking OpenSSL version is >= 0.9.6... " >&6; }
  5759. if ${ne_cv_lib_ssl096+:} false; then :
  5760. $as_echo_n "(cached) " >&6
  5761. else
  5762. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5763. /* end confdefs.h. */
  5764. #include <openssl/opensslv.h>
  5765. #if OPENSSL_VERSION_NUMBER >= 0x00906000L
  5766. good
  5767. #endif
  5768. _ACEOF
  5769. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  5770. $EGREP "good" >/dev/null 2>&1; then :
  5771. ne_cv_lib_ssl096=yes
  5772. else
  5773. ne_cv_lib_ssl096=no
  5774. fi
  5775. rm -f conftest*
  5776. fi
  5777. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ne_cv_lib_ssl096" >&5
  5778. $as_echo "$ne_cv_lib_ssl096" >&6; }
  5779. if test "$ne_cv_lib_ssl096" != "yes"; then
  5780. as_fn_error $? "OpenSSL 0.9.6 or later is required" "$LINENO" 5
  5781. fi
  5782. NE_FLAG_SSL=yes
  5783. $as_echo "#define NE_HAVE_SSL 1" >>confdefs.h
  5784. ne_SSL_message="SSL support enabled, using OpenSSL (0.9.6 or later)"
  5785. { $as_echo "$as_me:${as_lineno-$LINENO}: SSL support enabled, using OpenSSL (0.9.6 or later)" >&5
  5786. $as_echo "$as_me: SSL support enabled, using OpenSSL (0.9.6 or later)" >&6;}
  5787. case "$with_egd" in
  5788. yes|no) ne_cv_lib_sslegd=$with_egd ;;
  5789. /*) ne_cv_lib_sslegd=yes
  5790. cat >>confdefs.h <<_ACEOF
  5791. #define EGD_PATH "$with_egd"
  5792. _ACEOF
  5793. ;;
  5794. *) # Guess whether EGD support is needed
  5795. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable EGD support" >&5
  5796. $as_echo_n "checking whether to enable EGD support... " >&6; }
  5797. if ${ne_cv_lib_sslegd+:} false; then :
  5798. $as_echo_n "(cached) " >&6
  5799. else
  5800. if test -r /dev/random || test -r /dev/urandom; then
  5801. ne_cv_lib_sslegd=no
  5802. else
  5803. ne_cv_lib_sslegd=yes
  5804. fi
  5805. fi
  5806. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ne_cv_lib_sslegd" >&5
  5807. $as_echo "$ne_cv_lib_sslegd" >&6; }
  5808. ;;
  5809. esac
  5810. if test "$ne_cv_lib_sslegd" = "yes"; then
  5811. { $as_echo "$as_me:${as_lineno-$LINENO}: EGD support enabled for seeding OpenSSL PRNG" >&5
  5812. $as_echo "$as_me: EGD support enabled for seeding OpenSSL PRNG" >&6;}
  5813. $as_echo "#define ENABLE_EGD 1" >>confdefs.h
  5814. fi
  5815. fi
  5816. $as_echo "#define HAVE_OPENSSL 1" >>confdefs.h
  5817. NEON_EXTRAOBJS="$NEON_EXTRAOBJS ne_openssl"
  5818. $as_echo "#define HAVE_NTLM 1" >>confdefs.h
  5819. ;;
  5820. gnutls)
  5821. # Extract the first word of "pkg-config", so it can be a program name with args.
  5822. set dummy pkg-config; ac_word=$2
  5823. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5824. $as_echo_n "checking for $ac_word... " >&6; }
  5825. if ${ac_cv_path_PKG_CONFIG+:} false; then :
  5826. $as_echo_n "(cached) " >&6
  5827. else
  5828. case $PKG_CONFIG in
  5829. [\\/]* | ?:[\\/]*)
  5830. ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
  5831. ;;
  5832. *)
  5833. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5834. for as_dir in $PATH
  5835. do
  5836. IFS=$as_save_IFS
  5837. test -z "$as_dir" && as_dir=.
  5838. for ac_exec_ext in '' $ac_executable_extensions; do
  5839. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5840. ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
  5841. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5842. break 2
  5843. fi
  5844. done
  5845. done
  5846. IFS=$as_save_IFS
  5847. test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
  5848. ;;
  5849. esac
  5850. fi
  5851. PKG_CONFIG=$ac_cv_path_PKG_CONFIG
  5852. if test -n "$PKG_CONFIG"; then
  5853. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
  5854. $as_echo "$PKG_CONFIG" >&6; }
  5855. else
  5856. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5857. $as_echo "no" >&6; }
  5858. fi
  5859. if test "$PKG_CONFIG" = "no"; then
  5860. : Not using pkg-config
  5861. # Fall back on libgnutls-config script
  5862. # Extract the first word of "libgnutls-config", so it can be a program name with args.
  5863. set dummy libgnutls-config; ac_word=$2
  5864. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5865. $as_echo_n "checking for $ac_word... " >&6; }
  5866. if ${ac_cv_path_GNUTLS_CONFIG+:} false; then :
  5867. $as_echo_n "(cached) " >&6
  5868. else
  5869. case $GNUTLS_CONFIG in
  5870. [\\/]* | ?:[\\/]*)
  5871. ac_cv_path_GNUTLS_CONFIG="$GNUTLS_CONFIG" # Let the user override the test with a path.
  5872. ;;
  5873. *)
  5874. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5875. for as_dir in $PATH
  5876. do
  5877. IFS=$as_save_IFS
  5878. test -z "$as_dir" && as_dir=.
  5879. for ac_exec_ext in '' $ac_executable_extensions; do
  5880. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5881. ac_cv_path_GNUTLS_CONFIG="$as_dir/$ac_word$ac_exec_ext"
  5882. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5883. break 2
  5884. fi
  5885. done
  5886. done
  5887. IFS=$as_save_IFS
  5888. test -z "$ac_cv_path_GNUTLS_CONFIG" && ac_cv_path_GNUTLS_CONFIG="no"
  5889. ;;
  5890. esac
  5891. fi
  5892. GNUTLS_CONFIG=$ac_cv_path_GNUTLS_CONFIG
  5893. if test -n "$GNUTLS_CONFIG"; then
  5894. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GNUTLS_CONFIG" >&5
  5895. $as_echo "$GNUTLS_CONFIG" >&6; }
  5896. else
  5897. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5898. $as_echo "no" >&6; }
  5899. fi
  5900. if test "$GNUTLS_CONFIG" = "no"; then
  5901. as_fn_error $? "could not find libgnutls-config in \$PATH" "$LINENO" 5
  5902. fi
  5903. CPPFLAGS="$CPPFLAGS `$GNUTLS_CONFIG --cflags`"
  5904. NEON_LIBS="$NEON_LIBS `$GNUTLS_CONFIG --libs`"
  5905. NE_SSL_VERSION="`$GNUTLS_CONFIG --version`"
  5906. else
  5907. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gnutls pkg-config data" >&5
  5908. $as_echo_n "checking for gnutls pkg-config data... " >&6; }
  5909. if ${ne_cv_pkg_gnutls+:} false; then :
  5910. $as_echo_n "(cached) " >&6
  5911. else
  5912. if $PKG_CONFIG gnutls; then
  5913. ne_cv_pkg_gnutls=yes
  5914. else
  5915. ne_cv_pkg_gnutls=no
  5916. fi
  5917. fi
  5918. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ne_cv_pkg_gnutls" >&5
  5919. $as_echo "$ne_cv_pkg_gnutls" >&6; }
  5920. if test "$ne_cv_pkg_gnutls" = "yes"; then
  5921. NE_SSL_CFLAGS=`$PKG_CONFIG --cflags gnutls`
  5922. NE_SSL_LIBS=`$PKG_CONFIG --libs gnutls`
  5923. NE_SSL_VERSION=`$PKG_CONFIG --modversion gnutls`
  5924. : Using provided pkg-config data
  5925. { $as_echo "$as_me:${as_lineno-$LINENO}: using GnuTLS configuration from pkg-config" >&5
  5926. $as_echo "$as_me: using GnuTLS configuration from pkg-config" >&6;}
  5927. CPPFLAGS="$CPPFLAGS ${NE_SSL_CFLAGS}"
  5928. NEON_LIBS="$NEON_LIBS ${NE_SSL_LIBS}"
  5929. else
  5930. : No pkg-config for gnutls provided
  5931. # Fall back on libgnutls-config script
  5932. # Extract the first word of "libgnutls-config", so it can be a program name with args.
  5933. set dummy libgnutls-config; ac_word=$2
  5934. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5935. $as_echo_n "checking for $ac_word... " >&6; }
  5936. if ${ac_cv_path_GNUTLS_CONFIG+:} false; then :
  5937. $as_echo_n "(cached) " >&6
  5938. else
  5939. case $GNUTLS_CONFIG in
  5940. [\\/]* | ?:[\\/]*)
  5941. ac_cv_path_GNUTLS_CONFIG="$GNUTLS_CONFIG" # Let the user override the test with a path.
  5942. ;;
  5943. *)
  5944. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5945. for as_dir in $PATH
  5946. do
  5947. IFS=$as_save_IFS
  5948. test -z "$as_dir" && as_dir=.
  5949. for ac_exec_ext in '' $ac_executable_extensions; do
  5950. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5951. ac_cv_path_GNUTLS_CONFIG="$as_dir/$ac_word$ac_exec_ext"
  5952. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5953. break 2
  5954. fi
  5955. done
  5956. done
  5957. IFS=$as_save_IFS
  5958. test -z "$ac_cv_path_GNUTLS_CONFIG" && ac_cv_path_GNUTLS_CONFIG="no"
  5959. ;;
  5960. esac
  5961. fi
  5962. GNUTLS_CONFIG=$ac_cv_path_GNUTLS_CONFIG
  5963. if test -n "$GNUTLS_CONFIG"; then
  5964. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GNUTLS_CONFIG" >&5
  5965. $as_echo "$GNUTLS_CONFIG" >&6; }
  5966. else
  5967. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5968. $as_echo "no" >&6; }
  5969. fi
  5970. if test "$GNUTLS_CONFIG" = "no"; then
  5971. as_fn_error $? "could not find libgnutls-config in \$PATH" "$LINENO" 5
  5972. fi
  5973. CPPFLAGS="$CPPFLAGS `$GNUTLS_CONFIG --cflags`"
  5974. NEON_LIBS="$NEON_LIBS `$GNUTLS_CONFIG --libs`"
  5975. NE_SSL_VERSION="`$GNUTLS_CONFIG --version`"
  5976. fi
  5977. fi
  5978. ac_fn_c_check_header_mongrel "$LINENO" "gnutls/gnutls.h" "ac_cv_header_gnutls_gnutls_h" "$ac_includes_default"
  5979. if test "x$ac_cv_header_gnutls_gnutls_h" = xyes; then :
  5980. else
  5981. as_fn_error $? "could not find gnutls/gnutls.h in include path" "$LINENO" 5
  5982. fi
  5983. NE_FLAG_SSL=yes
  5984. $as_echo "#define NE_HAVE_SSL 1" >>confdefs.h
  5985. ne_SSL_message="SSL support enabled, using GnuTLS $NE_SSL_VERSION"
  5986. { $as_echo "$as_me:${as_lineno-$LINENO}: SSL support enabled, using GnuTLS $NE_SSL_VERSION" >&5
  5987. $as_echo "$as_me: SSL support enabled, using GnuTLS $NE_SSL_VERSION" >&6;}
  5988. NEON_EXTRAOBJS="$NEON_EXTRAOBJS ne_gnutls"
  5989. $as_echo "#define HAVE_GNUTLS 1" >>confdefs.h
  5990. # Check for functions in later releases
  5991. ne_cf_save_LIBS=$LIBS
  5992. LIBS="$LIBS $NEON_LIBS"
  5993. for ac_func in gnutls_session_get_data2 gnutls_x509_dn_get_rdn_ava \
  5994. gnutls_certificate_get_issuer \
  5995. gnutls_certificate_get_x509_cas \
  5996. gnutls_x509_crt_sign2 \
  5997. gnutls_certificate_set_retrieve_function2 \
  5998. gnutls_privkey_import_ext
  5999. do :
  6000. as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
  6001. ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
  6002. if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
  6003. cat >>confdefs.h <<_ACEOF
  6004. #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
  6005. _ACEOF
  6006. fi
  6007. done
  6008. LIBS=$ne_cf_save_LIBS
  6009. # fail if gnutls_x509_crt_sign2 is not found (it was introduced in 1.2.0, which is required)
  6010. if test x${ac_cv_func_gnutls_x509_crt_sign2} != xyes; then
  6011. as_fn_error $? "GnuTLS version predates gnutls_x509_crt_sign2, newer version required (at least 1.2.0)" "$LINENO" 5
  6012. fi
  6013. # Check for iconv support if using the new RDN access functions:
  6014. if test ${ac_cv_func_gnutls_x509_dn_get_rdn_ava}X${ac_cv_header_iconv_h} = yesXyes; then
  6015. for ac_func in iconv
  6016. do :
  6017. ac_fn_c_check_func "$LINENO" "iconv" "ac_cv_func_iconv"
  6018. if test "x$ac_cv_func_iconv" = xyes; then :
  6019. cat >>confdefs.h <<_ACEOF
  6020. #define HAVE_ICONV 1
  6021. _ACEOF
  6022. fi
  6023. done
  6024. fi
  6025. ;;
  6026. *) # Default to off; only create crypto-enabled binaries if requested.
  6027. NE_FLAG_SSL=no
  6028. ne_SSL_message="SSL support is not enabled"
  6029. { $as_echo "$as_me:${as_lineno-$LINENO}: SSL support is not enabled" >&5
  6030. $as_echo "$as_me: SSL support is not enabled" >&6;}
  6031. NE_FLAG_TS_SSL=no
  6032. ne_TS_SSL_message="Thread-safe SSL support is not enabled"
  6033. { $as_echo "$as_me:${as_lineno-$LINENO}: Thread-safe SSL support is not enabled" >&5
  6034. $as_echo "$as_me: Thread-safe SSL support is not enabled" >&6;}
  6035. NEON_EXTRAOBJS="$NEON_EXTRAOBJS ne_stubssl"
  6036. ;;
  6037. esac
  6038. # Check whether --with-ca-bundle was given.
  6039. if test "${with_ca_bundle+set}" = set; then :
  6040. withval=$with_ca_bundle;
  6041. else
  6042. with_ca_bundle=no
  6043. fi
  6044. case ${NE_FLAG_SSL}-${with_ca_bundle} in
  6045. *-no) ;;
  6046. yes-*)
  6047. cat >>confdefs.h <<_ACEOF
  6048. #define NE_SSL_CA_BUNDLE "${with_ca_bundle}"
  6049. _ACEOF
  6050. { $as_echo "$as_me:${as_lineno-$LINENO}: Using ${with_ca_bundle} as default SSL CA bundle" >&5
  6051. $as_echo "$as_me: Using ${with_ca_bundle} as default SSL CA bundle" >&6;}
  6052. ;;
  6053. esac
  6054. # Check whether --enable-threadsafe-ssl was given.
  6055. if test "${enable_threadsafe_ssl+set}" = set; then :
  6056. enableval=$enable_threadsafe_ssl;
  6057. else
  6058. enable_threadsafe_ssl=no
  6059. fi
  6060. case ${enable_threadsafe_ssl}X${ne_cv_lib_ssl110} in
  6061. *Xyes)
  6062. NE_FLAG_TS_SSL=yes
  6063. $as_echo "#define NE_HAVE_TS_SSL 1" >>confdefs.h
  6064. ne_TS_SSL_message="OpenSSL is natively thread-safe"
  6065. { $as_echo "$as_me:${as_lineno-$LINENO}: OpenSSL is natively thread-safe" >&5
  6066. $as_echo "$as_me: OpenSSL is natively thread-safe" >&6;}
  6067. ;;
  6068. posixX*|yesX*)
  6069. ne_pthr_ok=yes
  6070. for ac_func in pthread_mutex_init pthread_mutex_lock
  6071. do :
  6072. as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
  6073. ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
  6074. if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
  6075. cat >>confdefs.h <<_ACEOF
  6076. #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
  6077. _ACEOF
  6078. else
  6079. ne_pthr_ok=no
  6080. fi
  6081. done
  6082. if test "${ne_pthr_ok}" = "no"; then
  6083. as_fn_error $? "could not find POSIX mutex interfaces; (try CC=\"${CC} -pthread\"?)" "$LINENO" 5
  6084. fi
  6085. NE_FLAG_TS_SSL=yes
  6086. $as_echo "#define NE_HAVE_TS_SSL 1" >>confdefs.h
  6087. ne_TS_SSL_message="Thread-safe SSL supported using POSIX threads"
  6088. { $as_echo "$as_me:${as_lineno-$LINENO}: Thread-safe SSL supported using POSIX threads" >&5
  6089. $as_echo "$as_me: Thread-safe SSL supported using POSIX threads" >&6;}
  6090. ;;
  6091. *)
  6092. NE_FLAG_TS_SSL=no
  6093. ne_TS_SSL_message="Thread-safe SSL not supported"
  6094. { $as_echo "$as_me:${as_lineno-$LINENO}: Thread-safe SSL not supported" >&5
  6095. $as_echo "$as_me: Thread-safe SSL not supported" >&6;}
  6096. ;;
  6097. esac
  6098. case ${with_pakchois}X${ac_cv_func_gnutls_privkey_import_ext}Y${ne_cv_lib_ssl097} in
  6099. noX*Y*) ;;
  6100. *X*Yyes|*XyesY*)
  6101. # PKCS#11... ho!
  6102. # Extract the first word of "pkg-config", so it can be a program name with args.
  6103. set dummy pkg-config; ac_word=$2
  6104. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6105. $as_echo_n "checking for $ac_word... " >&6; }
  6106. if ${ac_cv_path_PKG_CONFIG+:} false; then :
  6107. $as_echo_n "(cached) " >&6
  6108. else
  6109. case $PKG_CONFIG in
  6110. [\\/]* | ?:[\\/]*)
  6111. ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
  6112. ;;
  6113. *)
  6114. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6115. for as_dir in $PATH
  6116. do
  6117. IFS=$as_save_IFS
  6118. test -z "$as_dir" && as_dir=.
  6119. for ac_exec_ext in '' $ac_executable_extensions; do
  6120. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  6121. ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
  6122. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6123. break 2
  6124. fi
  6125. done
  6126. done
  6127. IFS=$as_save_IFS
  6128. test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
  6129. ;;
  6130. esac
  6131. fi
  6132. PKG_CONFIG=$ac_cv_path_PKG_CONFIG
  6133. if test -n "$PKG_CONFIG"; then
  6134. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
  6135. $as_echo "$PKG_CONFIG" >&6; }
  6136. else
  6137. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6138. $as_echo "no" >&6; }
  6139. fi
  6140. if test "$PKG_CONFIG" = "no"; then
  6141. : Not using pkg-config
  6142. { $as_echo "$as_me:${as_lineno-$LINENO}: pakchois library not found; no PKCS#11 support" >&5
  6143. $as_echo "$as_me: pakchois library not found; no PKCS#11 support" >&6;}
  6144. else
  6145. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pakchois pkg-config data" >&5
  6146. $as_echo_n "checking for pakchois pkg-config data... " >&6; }
  6147. if ${ne_cv_pkg_pakchois+:} false; then :
  6148. $as_echo_n "(cached) " >&6
  6149. else
  6150. if $PKG_CONFIG pakchois; then
  6151. ne_cv_pkg_pakchois=yes
  6152. else
  6153. ne_cv_pkg_pakchois=no
  6154. fi
  6155. fi
  6156. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ne_cv_pkg_pakchois" >&5
  6157. $as_echo "$ne_cv_pkg_pakchois" >&6; }
  6158. if test "$ne_cv_pkg_pakchois" = "yes"; then
  6159. NE_PK11_CFLAGS=`$PKG_CONFIG --cflags pakchois`
  6160. NE_PK11_LIBS=`$PKG_CONFIG --libs pakchois`
  6161. NE_PK11_VERSION=`$PKG_CONFIG --modversion pakchois`
  6162. : Using provided pkg-config data
  6163. { $as_echo "$as_me:${as_lineno-$LINENO}: using pakchois $NE_PK11_VERSION for PKCS#11 support" >&5
  6164. $as_echo "$as_me: using pakchois $NE_PK11_VERSION for PKCS#11 support" >&6;}
  6165. $as_echo "#define HAVE_PAKCHOIS 1" >>confdefs.h
  6166. CPPFLAGS="$CPPFLAGS ${NE_PK11_CFLAGS}"
  6167. NEON_LIBS="${NEON_LIBS} ${NE_PK11_LIBS}"
  6168. else
  6169. : No pkg-config for pakchois provided
  6170. { $as_echo "$as_me:${as_lineno-$LINENO}: pakchois library not found; no PKCS#11 support" >&5
  6171. $as_echo "$as_me: pakchois library not found; no PKCS#11 support" >&6;}
  6172. fi
  6173. fi
  6174. ;;
  6175. esac
  6176. # Check whether --with-gssapi was given.
  6177. if test "${with_gssapi+set}" = set; then :
  6178. withval=$with_gssapi;
  6179. fi
  6180. if test "$with_gssapi" != "no"; then
  6181. # Extract the first word of "krb5-config", so it can be a program name with args.
  6182. set dummy krb5-config; ac_word=$2
  6183. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6184. $as_echo_n "checking for $ac_word... " >&6; }
  6185. if ${ac_cv_path_KRB5_CONFIG+:} false; then :
  6186. $as_echo_n "(cached) " >&6
  6187. else
  6188. case $KRB5_CONFIG in
  6189. [\\/]* | ?:[\\/]*)
  6190. ac_cv_path_KRB5_CONFIG="$KRB5_CONFIG" # Let the user override the test with a path.
  6191. ;;
  6192. *)
  6193. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6194. as_dummy="$PATH:/usr/kerberos/bin"
  6195. for as_dir in $as_dummy
  6196. do
  6197. IFS=$as_save_IFS
  6198. test -z "$as_dir" && as_dir=.
  6199. for ac_exec_ext in '' $ac_executable_extensions; do
  6200. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  6201. ac_cv_path_KRB5_CONFIG="$as_dir/$ac_word$ac_exec_ext"
  6202. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6203. break 2
  6204. fi
  6205. done
  6206. done
  6207. IFS=$as_save_IFS
  6208. test -z "$ac_cv_path_KRB5_CONFIG" && ac_cv_path_KRB5_CONFIG="none"
  6209. ;;
  6210. esac
  6211. fi
  6212. KRB5_CONFIG=$ac_cv_path_KRB5_CONFIG
  6213. if test -n "$KRB5_CONFIG"; then
  6214. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $KRB5_CONFIG" >&5
  6215. $as_echo "$KRB5_CONFIG" >&6; }
  6216. else
  6217. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6218. $as_echo "no" >&6; }
  6219. fi
  6220. else
  6221. KRB5_CONFIG=none
  6222. fi
  6223. if test "x$KRB5_CONFIG" != "xnone"; then
  6224. ne_save_CPPFLAGS=$CPPFLAGS
  6225. ne_save_LIBS=$NEON_LIBS
  6226. NEON_LIBS="$NEON_LIBS `${KRB5_CONFIG} --libs gssapi`"
  6227. CPPFLAGS="$CPPFLAGS `${KRB5_CONFIG} --cflags gssapi`"
  6228. # MIT and Heimdal put gssapi.h in different places
  6229. for ac_header in gssapi/gssapi.h gssapi.h
  6230. do :
  6231. as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
  6232. ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
  6233. if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
  6234. cat >>confdefs.h <<_ACEOF
  6235. #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
  6236. _ACEOF
  6237. ne_cf_save_LIBS=$LIBS
  6238. LIBS="$LIBS $NEON_LIBS"
  6239. for ac_func in gss_init_sec_context
  6240. do :
  6241. ac_fn_c_check_func "$LINENO" "gss_init_sec_context" "ac_cv_func_gss_init_sec_context"
  6242. if test "x$ac_cv_func_gss_init_sec_context" = xyes; then :
  6243. cat >>confdefs.h <<_ACEOF
  6244. #define HAVE_GSS_INIT_SEC_CONTEXT 1
  6245. _ACEOF
  6246. ne_save_CPPFLAGS=$CPPFLAGS
  6247. ne_save_LIBS=$NEON_LIBS
  6248. { $as_echo "$as_me:${as_lineno-$LINENO}: GSSAPI authentication support enabled" >&5
  6249. $as_echo "$as_me: GSSAPI authentication support enabled" >&6;}
  6250. $as_echo "#define HAVE_GSSAPI 1" >>confdefs.h
  6251. for ac_header in gssapi/gssapi_generic.h
  6252. do :
  6253. ac_fn_c_check_header_mongrel "$LINENO" "gssapi/gssapi_generic.h" "ac_cv_header_gssapi_gssapi_generic_h" "$ac_includes_default"
  6254. if test "x$ac_cv_header_gssapi_gssapi_generic_h" = xyes; then :
  6255. cat >>confdefs.h <<_ACEOF
  6256. #define HAVE_GSSAPI_GSSAPI_GENERIC_H 1
  6257. _ACEOF
  6258. fi
  6259. done
  6260. # Older versions of MIT Kerberos lack GSS_C_NT_HOSTBASED_SERVICE
  6261. ac_fn_c_check_decl "$LINENO" "GSS_C_NT_HOSTBASED_SERVICE" "ac_cv_have_decl_GSS_C_NT_HOSTBASED_SERVICE" "#ifdef HAVE_GSSAPI_GSSAPI_H
  6262. #include <gssapi/gssapi.h>
  6263. #else
  6264. #include <gssapi.h>
  6265. #endif
  6266. "
  6267. if test "x$ac_cv_have_decl_GSS_C_NT_HOSTBASED_SERVICE" = xyes; then :
  6268. else
  6269. $as_echo "#define GSS_C_NT_HOSTBASED_SERVICE gss_nt_service_name" >>confdefs.h
  6270. fi
  6271. fi
  6272. done
  6273. LIBS=$ne_cf_save_LIBS
  6274. break
  6275. fi
  6276. done
  6277. CPPFLAGS=$ne_save_CPPFLAGS
  6278. NEON_LIBS=$ne_save_LIBS
  6279. fi
  6280. # Check whether --with-libproxy was given.
  6281. if test "${with_libproxy+set}" = set; then :
  6282. withval=$with_libproxy;
  6283. fi
  6284. if test "x$with_libproxy" != "xno"; then
  6285. # Extract the first word of "pkg-config", so it can be a program name with args.
  6286. set dummy pkg-config; ac_word=$2
  6287. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6288. $as_echo_n "checking for $ac_word... " >&6; }
  6289. if ${ac_cv_path_PKG_CONFIG+:} false; then :
  6290. $as_echo_n "(cached) " >&6
  6291. else
  6292. case $PKG_CONFIG in
  6293. [\\/]* | ?:[\\/]*)
  6294. ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
  6295. ;;
  6296. *)
  6297. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6298. for as_dir in $PATH
  6299. do
  6300. IFS=$as_save_IFS
  6301. test -z "$as_dir" && as_dir=.
  6302. for ac_exec_ext in '' $ac_executable_extensions; do
  6303. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  6304. ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
  6305. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6306. break 2
  6307. fi
  6308. done
  6309. done
  6310. IFS=$as_save_IFS
  6311. test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
  6312. ;;
  6313. esac
  6314. fi
  6315. PKG_CONFIG=$ac_cv_path_PKG_CONFIG
  6316. if test -n "$PKG_CONFIG"; then
  6317. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
  6318. $as_echo "$PKG_CONFIG" >&6; }
  6319. else
  6320. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6321. $as_echo "no" >&6; }
  6322. fi
  6323. if test "$PKG_CONFIG" = "no"; then
  6324. : Not using pkg-config
  6325. NE_FLAG_LIBPXY=no
  6326. ne_LIBPXY_message="libproxy support not enabled"
  6327. { $as_echo "$as_me:${as_lineno-$LINENO}: libproxy support not enabled" >&5
  6328. $as_echo "$as_me: libproxy support not enabled" >&6;}
  6329. else
  6330. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libproxy-1.0 pkg-config data" >&5
  6331. $as_echo_n "checking for libproxy-1.0 pkg-config data... " >&6; }
  6332. if ${ne_cv_pkg_libproxy_1_0+:} false; then :
  6333. $as_echo_n "(cached) " >&6
  6334. else
  6335. if $PKG_CONFIG libproxy-1.0; then
  6336. ne_cv_pkg_libproxy_1_0=yes
  6337. else
  6338. ne_cv_pkg_libproxy_1_0=no
  6339. fi
  6340. fi
  6341. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ne_cv_pkg_libproxy_1_0" >&5
  6342. $as_echo "$ne_cv_pkg_libproxy_1_0" >&6; }
  6343. if test "$ne_cv_pkg_libproxy_1_0" = "yes"; then
  6344. NE_PXY_CFLAGS=`$PKG_CONFIG --cflags libproxy-1.0`
  6345. NE_PXY_LIBS=`$PKG_CONFIG --libs libproxy-1.0`
  6346. NE_PXY_VERSION=`$PKG_CONFIG --modversion libproxy-1.0`
  6347. : Using provided pkg-config data
  6348. $as_echo "#define HAVE_LIBPROXY 1" >>confdefs.h
  6349. CPPFLAGS="$CPPFLAGS $NE_PXY_CFLAGS"
  6350. NEON_LIBS="$NEON_LIBS ${NE_PXY_LIBS}"
  6351. NE_FLAG_LIBPXY=yes
  6352. $as_echo "#define NE_HAVE_LIBPXY 1" >>confdefs.h
  6353. ne_LIBPXY_message="libproxy support enabled using libproxy $NE_PXY_VERSION"
  6354. { $as_echo "$as_me:${as_lineno-$LINENO}: libproxy support enabled using libproxy $NE_PXY_VERSION" >&5
  6355. $as_echo "$as_me: libproxy support enabled using libproxy $NE_PXY_VERSION" >&6;}
  6356. else
  6357. : No pkg-config for libproxy-1.0 provided
  6358. NE_FLAG_LIBPXY=no
  6359. ne_LIBPXY_message="libproxy support not enabled"
  6360. { $as_echo "$as_me:${as_lineno-$LINENO}: libproxy support not enabled" >&5
  6361. $as_echo "$as_me: libproxy support not enabled" >&6;}
  6362. fi
  6363. fi
  6364. else
  6365. NE_FLAG_LIBPXY=no
  6366. ne_LIBPXY_message="libproxy support not enabled"
  6367. { $as_echo "$as_me:${as_lineno-$LINENO}: libproxy support not enabled" >&5
  6368. $as_echo "$as_me: libproxy support not enabled" >&6;}
  6369. fi
  6370. # Check whether --enable-shared was given.
  6371. if test "${enable_shared+set}" = set; then :
  6372. enableval=$enable_shared; p=${PACKAGE-default}
  6373. case $enableval in
  6374. yes) enable_shared=yes ;;
  6375. no) enable_shared=no ;;
  6376. *)
  6377. enable_shared=no
  6378. # Look at the argument we got. We use all the common list separators.
  6379. lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
  6380. for pkg in $enableval; do
  6381. IFS=$lt_save_ifs
  6382. if test "X$pkg" = "X$p"; then
  6383. enable_shared=yes
  6384. fi
  6385. done
  6386. IFS=$lt_save_ifs
  6387. ;;
  6388. esac
  6389. else
  6390. enable_shared=no
  6391. fi
  6392. case `pwd` in
  6393. *\ * | *\ *)
  6394. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
  6395. $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
  6396. esac
  6397. macro_version='2.4.6'
  6398. macro_revision='2.4.6'
  6399. ltmain=$ac_aux_dir/ltmain.sh
  6400. # Make sure we can run config.sub.
  6401. $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
  6402. as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
  6403. { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
  6404. $as_echo_n "checking build system type... " >&6; }
  6405. if ${ac_cv_build+:} false; then :
  6406. $as_echo_n "(cached) " >&6
  6407. else
  6408. ac_build_alias=$build_alias
  6409. test "x$ac_build_alias" = x &&
  6410. ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
  6411. test "x$ac_build_alias" = x &&
  6412. as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
  6413. ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
  6414. as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
  6415. fi
  6416. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
  6417. $as_echo "$ac_cv_build" >&6; }
  6418. case $ac_cv_build in
  6419. *-*-*) ;;
  6420. *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
  6421. esac
  6422. build=$ac_cv_build
  6423. ac_save_IFS=$IFS; IFS='-'
  6424. set x $ac_cv_build
  6425. shift
  6426. build_cpu=$1
  6427. build_vendor=$2
  6428. shift; shift
  6429. # Remember, the first character of IFS is used to create $*,
  6430. # except with old shells:
  6431. build_os=$*
  6432. IFS=$ac_save_IFS
  6433. case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
  6434. { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
  6435. $as_echo_n "checking host system type... " >&6; }
  6436. if ${ac_cv_host+:} false; then :
  6437. $as_echo_n "(cached) " >&6
  6438. else
  6439. if test "x$host_alias" = x; then
  6440. ac_cv_host=$ac_cv_build
  6441. else
  6442. ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
  6443. as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
  6444. fi
  6445. fi
  6446. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
  6447. $as_echo "$ac_cv_host" >&6; }
  6448. case $ac_cv_host in
  6449. *-*-*) ;;
  6450. *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
  6451. esac
  6452. host=$ac_cv_host
  6453. ac_save_IFS=$IFS; IFS='-'
  6454. set x $ac_cv_host
  6455. shift
  6456. host_cpu=$1
  6457. host_vendor=$2
  6458. shift; shift
  6459. # Remember, the first character of IFS is used to create $*,
  6460. # except with old shells:
  6461. host_os=$*
  6462. IFS=$ac_save_IFS
  6463. case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
  6464. # Backslashify metacharacters that are still active within
  6465. # double-quoted strings.
  6466. sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
  6467. # Same as above, but do not quote variable references.
  6468. double_quote_subst='s/\(["`\\]\)/\\\1/g'
  6469. # Sed substitution to delay expansion of an escaped shell variable in a
  6470. # double_quote_subst'ed string.
  6471. delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
  6472. # Sed substitution to delay expansion of an escaped single quote.
  6473. delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
  6474. # Sed substitution to avoid accidental globbing in evaled expressions
  6475. no_glob_subst='s/\*/\\\*/g'
  6476. ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
  6477. ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
  6478. ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
  6479. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
  6480. $as_echo_n "checking how to print strings... " >&6; }
  6481. # Test print first, because it will be a builtin if present.
  6482. if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
  6483. test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
  6484. ECHO='print -r --'
  6485. elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
  6486. ECHO='printf %s\n'
  6487. else
  6488. # Use this function as a fallback that always works.
  6489. func_fallback_echo ()
  6490. {
  6491. eval 'cat <<_LTECHO_EOF
  6492. $1
  6493. _LTECHO_EOF'
  6494. }
  6495. ECHO='func_fallback_echo'
  6496. fi
  6497. # func_echo_all arg...
  6498. # Invoke $ECHO with all args, space-separated.
  6499. func_echo_all ()
  6500. {
  6501. $ECHO ""
  6502. }
  6503. case $ECHO in
  6504. printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
  6505. $as_echo "printf" >&6; } ;;
  6506. print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
  6507. $as_echo "print -r" >&6; } ;;
  6508. *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
  6509. $as_echo "cat" >&6; } ;;
  6510. esac
  6511. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
  6512. $as_echo_n "checking for a sed that does not truncate output... " >&6; }
  6513. if ${ac_cv_path_SED+:} false; then :
  6514. $as_echo_n "(cached) " >&6
  6515. else
  6516. ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
  6517. for ac_i in 1 2 3 4 5 6 7; do
  6518. ac_script="$ac_script$as_nl$ac_script"
  6519. done
  6520. echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
  6521. { ac_script=; unset ac_script;}
  6522. if test -z "$SED"; then
  6523. ac_path_SED_found=false
  6524. # Loop through the user's path and test for each of PROGNAME-LIST
  6525. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6526. for as_dir in $PATH
  6527. do
  6528. IFS=$as_save_IFS
  6529. test -z "$as_dir" && as_dir=.
  6530. for ac_prog in sed gsed; do
  6531. for ac_exec_ext in '' $ac_executable_extensions; do
  6532. ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
  6533. as_fn_executable_p "$ac_path_SED" || continue
  6534. # Check for GNU ac_path_SED and select it if it is found.
  6535. # Check for GNU $ac_path_SED
  6536. case `"$ac_path_SED" --version 2>&1` in
  6537. *GNU*)
  6538. ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
  6539. *)
  6540. ac_count=0
  6541. $as_echo_n 0123456789 >"conftest.in"
  6542. while :
  6543. do
  6544. cat "conftest.in" "conftest.in" >"conftest.tmp"
  6545. mv "conftest.tmp" "conftest.in"
  6546. cp "conftest.in" "conftest.nl"
  6547. $as_echo '' >> "conftest.nl"
  6548. "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
  6549. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  6550. as_fn_arith $ac_count + 1 && ac_count=$as_val
  6551. if test $ac_count -gt ${ac_path_SED_max-0}; then
  6552. # Best one so far, save it but keep looking for a better one
  6553. ac_cv_path_SED="$ac_path_SED"
  6554. ac_path_SED_max=$ac_count
  6555. fi
  6556. # 10*(2^10) chars as input seems more than enough
  6557. test $ac_count -gt 10 && break
  6558. done
  6559. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  6560. esac
  6561. $ac_path_SED_found && break 3
  6562. done
  6563. done
  6564. done
  6565. IFS=$as_save_IFS
  6566. if test -z "$ac_cv_path_SED"; then
  6567. as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
  6568. fi
  6569. else
  6570. ac_cv_path_SED=$SED
  6571. fi
  6572. fi
  6573. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
  6574. $as_echo "$ac_cv_path_SED" >&6; }
  6575. SED="$ac_cv_path_SED"
  6576. rm -f conftest.sed
  6577. test -z "$SED" && SED=sed
  6578. Xsed="$SED -e 1s/^X//"
  6579. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
  6580. $as_echo_n "checking for fgrep... " >&6; }
  6581. if ${ac_cv_path_FGREP+:} false; then :
  6582. $as_echo_n "(cached) " >&6
  6583. else
  6584. if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
  6585. then ac_cv_path_FGREP="$GREP -F"
  6586. else
  6587. if test -z "$FGREP"; then
  6588. ac_path_FGREP_found=false
  6589. # Loop through the user's path and test for each of PROGNAME-LIST
  6590. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6591. for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
  6592. do
  6593. IFS=$as_save_IFS
  6594. test -z "$as_dir" && as_dir=.
  6595. for ac_prog in fgrep; do
  6596. for ac_exec_ext in '' $ac_executable_extensions; do
  6597. ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
  6598. as_fn_executable_p "$ac_path_FGREP" || continue
  6599. # Check for GNU ac_path_FGREP and select it if it is found.
  6600. # Check for GNU $ac_path_FGREP
  6601. case `"$ac_path_FGREP" --version 2>&1` in
  6602. *GNU*)
  6603. ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
  6604. *)
  6605. ac_count=0
  6606. $as_echo_n 0123456789 >"conftest.in"
  6607. while :
  6608. do
  6609. cat "conftest.in" "conftest.in" >"conftest.tmp"
  6610. mv "conftest.tmp" "conftest.in"
  6611. cp "conftest.in" "conftest.nl"
  6612. $as_echo 'FGREP' >> "conftest.nl"
  6613. "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
  6614. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  6615. as_fn_arith $ac_count + 1 && ac_count=$as_val
  6616. if test $ac_count -gt ${ac_path_FGREP_max-0}; then
  6617. # Best one so far, save it but keep looking for a better one
  6618. ac_cv_path_FGREP="$ac_path_FGREP"
  6619. ac_path_FGREP_max=$ac_count
  6620. fi
  6621. # 10*(2^10) chars as input seems more than enough
  6622. test $ac_count -gt 10 && break
  6623. done
  6624. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  6625. esac
  6626. $ac_path_FGREP_found && break 3
  6627. done
  6628. done
  6629. done
  6630. IFS=$as_save_IFS
  6631. if test -z "$ac_cv_path_FGREP"; then
  6632. as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
  6633. fi
  6634. else
  6635. ac_cv_path_FGREP=$FGREP
  6636. fi
  6637. fi
  6638. fi
  6639. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
  6640. $as_echo "$ac_cv_path_FGREP" >&6; }
  6641. FGREP="$ac_cv_path_FGREP"
  6642. test -z "$GREP" && GREP=grep
  6643. # Check whether --with-gnu-ld was given.
  6644. if test "${with_gnu_ld+set}" = set; then :
  6645. withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes
  6646. else
  6647. with_gnu_ld=no
  6648. fi
  6649. ac_prog=ld
  6650. if test yes = "$GCC"; then
  6651. # Check if gcc -print-prog-name=ld gives a path.
  6652. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
  6653. $as_echo_n "checking for ld used by $CC... " >&6; }
  6654. case $host in
  6655. *-*-mingw*)
  6656. # gcc leaves a trailing carriage return, which upsets mingw
  6657. ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
  6658. *)
  6659. ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
  6660. esac
  6661. case $ac_prog in
  6662. # Accept absolute paths.
  6663. [\\/]* | ?:[\\/]*)
  6664. re_direlt='/[^/][^/]*/\.\./'
  6665. # Canonicalize the pathname of ld
  6666. ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
  6667. while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
  6668. ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
  6669. done
  6670. test -z "$LD" && LD=$ac_prog
  6671. ;;
  6672. "")
  6673. # If it fails, then pretend we aren't using GCC.
  6674. ac_prog=ld
  6675. ;;
  6676. *)
  6677. # If it is relative, then search for the first ld in PATH.
  6678. with_gnu_ld=unknown
  6679. ;;
  6680. esac
  6681. elif test yes = "$with_gnu_ld"; then
  6682. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
  6683. $as_echo_n "checking for GNU ld... " >&6; }
  6684. else
  6685. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
  6686. $as_echo_n "checking for non-GNU ld... " >&6; }
  6687. fi
  6688. if ${lt_cv_path_LD+:} false; then :
  6689. $as_echo_n "(cached) " >&6
  6690. else
  6691. if test -z "$LD"; then
  6692. lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
  6693. for ac_dir in $PATH; do
  6694. IFS=$lt_save_ifs
  6695. test -z "$ac_dir" && ac_dir=.
  6696. if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
  6697. lt_cv_path_LD=$ac_dir/$ac_prog
  6698. # Check to see if the program is GNU ld. I'd rather use --version,
  6699. # but apparently some variants of GNU ld only accept -v.
  6700. # Break only if it was the GNU/non-GNU ld that we prefer.
  6701. case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
  6702. *GNU* | *'with BFD'*)
  6703. test no != "$with_gnu_ld" && break
  6704. ;;
  6705. *)
  6706. test yes != "$with_gnu_ld" && break
  6707. ;;
  6708. esac
  6709. fi
  6710. done
  6711. IFS=$lt_save_ifs
  6712. else
  6713. lt_cv_path_LD=$LD # Let the user override the test with a path.
  6714. fi
  6715. fi
  6716. LD=$lt_cv_path_LD
  6717. if test -n "$LD"; then
  6718. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
  6719. $as_echo "$LD" >&6; }
  6720. else
  6721. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6722. $as_echo "no" >&6; }
  6723. fi
  6724. test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
  6725. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
  6726. $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
  6727. if ${lt_cv_prog_gnu_ld+:} false; then :
  6728. $as_echo_n "(cached) " >&6
  6729. else
  6730. # I'd rather use --version here, but apparently some GNU lds only accept -v.
  6731. case `$LD -v 2>&1 </dev/null` in
  6732. *GNU* | *'with BFD'*)
  6733. lt_cv_prog_gnu_ld=yes
  6734. ;;
  6735. *)
  6736. lt_cv_prog_gnu_ld=no
  6737. ;;
  6738. esac
  6739. fi
  6740. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
  6741. $as_echo "$lt_cv_prog_gnu_ld" >&6; }
  6742. with_gnu_ld=$lt_cv_prog_gnu_ld
  6743. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
  6744. $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
  6745. if ${lt_cv_path_NM+:} false; then :
  6746. $as_echo_n "(cached) " >&6
  6747. else
  6748. if test -n "$NM"; then
  6749. # Let the user override the test.
  6750. lt_cv_path_NM=$NM
  6751. else
  6752. lt_nm_to_check=${ac_tool_prefix}nm
  6753. if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
  6754. lt_nm_to_check="$lt_nm_to_check nm"
  6755. fi
  6756. for lt_tmp_nm in $lt_nm_to_check; do
  6757. lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
  6758. for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
  6759. IFS=$lt_save_ifs
  6760. test -z "$ac_dir" && ac_dir=.
  6761. tmp_nm=$ac_dir/$lt_tmp_nm
  6762. if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext"; then
  6763. # Check to see if the nm accepts a BSD-compat flag.
  6764. # Adding the 'sed 1q' prevents false positives on HP-UX, which says:
  6765. # nm: unknown option "B" ignored
  6766. # Tru64's nm complains that /dev/null is an invalid object file
  6767. # MSYS converts /dev/null to NUL, MinGW nm treats NUL as empty
  6768. case $build_os in
  6769. mingw*) lt_bad_file=conftest.nm/nofile ;;
  6770. *) lt_bad_file=/dev/null ;;
  6771. esac
  6772. case `"$tmp_nm" -B $lt_bad_file 2>&1 | sed '1q'` in
  6773. *$lt_bad_file* | *'Invalid file or object type'*)
  6774. lt_cv_path_NM="$tmp_nm -B"
  6775. break 2
  6776. ;;
  6777. *)
  6778. case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
  6779. */dev/null*)
  6780. lt_cv_path_NM="$tmp_nm -p"
  6781. break 2
  6782. ;;
  6783. *)
  6784. lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
  6785. continue # so that we can try to find one that supports BSD flags
  6786. ;;
  6787. esac
  6788. ;;
  6789. esac
  6790. fi
  6791. done
  6792. IFS=$lt_save_ifs
  6793. done
  6794. : ${lt_cv_path_NM=no}
  6795. fi
  6796. fi
  6797. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
  6798. $as_echo "$lt_cv_path_NM" >&6; }
  6799. if test no != "$lt_cv_path_NM"; then
  6800. NM=$lt_cv_path_NM
  6801. else
  6802. # Didn't find any BSD compatible name lister, look for dumpbin.
  6803. if test -n "$DUMPBIN"; then :
  6804. # Let the user override the test.
  6805. else
  6806. if test -n "$ac_tool_prefix"; then
  6807. for ac_prog in dumpbin "link -dump"
  6808. do
  6809. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  6810. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  6811. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6812. $as_echo_n "checking for $ac_word... " >&6; }
  6813. if ${ac_cv_prog_DUMPBIN+:} false; then :
  6814. $as_echo_n "(cached) " >&6
  6815. else
  6816. if test -n "$DUMPBIN"; then
  6817. ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
  6818. else
  6819. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6820. for as_dir in $PATH
  6821. do
  6822. IFS=$as_save_IFS
  6823. test -z "$as_dir" && as_dir=.
  6824. for ac_exec_ext in '' $ac_executable_extensions; do
  6825. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  6826. ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
  6827. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6828. break 2
  6829. fi
  6830. done
  6831. done
  6832. IFS=$as_save_IFS
  6833. fi
  6834. fi
  6835. DUMPBIN=$ac_cv_prog_DUMPBIN
  6836. if test -n "$DUMPBIN"; then
  6837. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
  6838. $as_echo "$DUMPBIN" >&6; }
  6839. else
  6840. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6841. $as_echo "no" >&6; }
  6842. fi
  6843. test -n "$DUMPBIN" && break
  6844. done
  6845. fi
  6846. if test -z "$DUMPBIN"; then
  6847. ac_ct_DUMPBIN=$DUMPBIN
  6848. for ac_prog in dumpbin "link -dump"
  6849. do
  6850. # Extract the first word of "$ac_prog", so it can be a program name with args.
  6851. set dummy $ac_prog; ac_word=$2
  6852. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6853. $as_echo_n "checking for $ac_word... " >&6; }
  6854. if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
  6855. $as_echo_n "(cached) " >&6
  6856. else
  6857. if test -n "$ac_ct_DUMPBIN"; then
  6858. ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
  6859. else
  6860. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6861. for as_dir in $PATH
  6862. do
  6863. IFS=$as_save_IFS
  6864. test -z "$as_dir" && as_dir=.
  6865. for ac_exec_ext in '' $ac_executable_extensions; do
  6866. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  6867. ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
  6868. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6869. break 2
  6870. fi
  6871. done
  6872. done
  6873. IFS=$as_save_IFS
  6874. fi
  6875. fi
  6876. ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
  6877. if test -n "$ac_ct_DUMPBIN"; then
  6878. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
  6879. $as_echo "$ac_ct_DUMPBIN" >&6; }
  6880. else
  6881. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6882. $as_echo "no" >&6; }
  6883. fi
  6884. test -n "$ac_ct_DUMPBIN" && break
  6885. done
  6886. if test "x$ac_ct_DUMPBIN" = x; then
  6887. DUMPBIN=":"
  6888. else
  6889. case $cross_compiling:$ac_tool_warned in
  6890. yes:)
  6891. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  6892. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  6893. ac_tool_warned=yes ;;
  6894. esac
  6895. DUMPBIN=$ac_ct_DUMPBIN
  6896. fi
  6897. fi
  6898. case `$DUMPBIN -symbols -headers /dev/null 2>&1 | sed '1q'` in
  6899. *COFF*)
  6900. DUMPBIN="$DUMPBIN -symbols -headers"
  6901. ;;
  6902. *)
  6903. DUMPBIN=:
  6904. ;;
  6905. esac
  6906. fi
  6907. if test : != "$DUMPBIN"; then
  6908. NM=$DUMPBIN
  6909. fi
  6910. fi
  6911. test -z "$NM" && NM=nm
  6912. { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
  6913. $as_echo_n "checking the name lister ($NM) interface... " >&6; }
  6914. if ${lt_cv_nm_interface+:} false; then :
  6915. $as_echo_n "(cached) " >&6
  6916. else
  6917. lt_cv_nm_interface="BSD nm"
  6918. echo "int some_variable = 0;" > conftest.$ac_ext
  6919. (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
  6920. (eval "$ac_compile" 2>conftest.err)
  6921. cat conftest.err >&5
  6922. (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
  6923. (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
  6924. cat conftest.err >&5
  6925. (eval echo "\"\$as_me:$LINENO: output\"" >&5)
  6926. cat conftest.out >&5
  6927. if $GREP 'External.*some_variable' conftest.out > /dev/null; then
  6928. lt_cv_nm_interface="MS dumpbin"
  6929. fi
  6930. rm -f conftest*
  6931. fi
  6932. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
  6933. $as_echo "$lt_cv_nm_interface" >&6; }
  6934. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
  6935. $as_echo_n "checking whether ln -s works... " >&6; }
  6936. LN_S=$as_ln_s
  6937. if test "$LN_S" = "ln -s"; then
  6938. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  6939. $as_echo "yes" >&6; }
  6940. else
  6941. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
  6942. $as_echo "no, using $LN_S" >&6; }
  6943. fi
  6944. # find the maximum length of command line arguments
  6945. { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
  6946. $as_echo_n "checking the maximum length of command line arguments... " >&6; }
  6947. if ${lt_cv_sys_max_cmd_len+:} false; then :
  6948. $as_echo_n "(cached) " >&6
  6949. else
  6950. i=0
  6951. teststring=ABCD
  6952. case $build_os in
  6953. msdosdjgpp*)
  6954. # On DJGPP, this test can blow up pretty badly due to problems in libc
  6955. # (any single argument exceeding 2000 bytes causes a buffer overrun
  6956. # during glob expansion). Even if it were fixed, the result of this
  6957. # check would be larger than it should be.
  6958. lt_cv_sys_max_cmd_len=12288; # 12K is about right
  6959. ;;
  6960. gnu*)
  6961. # Under GNU Hurd, this test is not required because there is
  6962. # no limit to the length of command line arguments.
  6963. # Libtool will interpret -1 as no limit whatsoever
  6964. lt_cv_sys_max_cmd_len=-1;
  6965. ;;
  6966. cygwin* | mingw* | cegcc*)
  6967. # On Win9x/ME, this test blows up -- it succeeds, but takes
  6968. # about 5 minutes as the teststring grows exponentially.
  6969. # Worse, since 9x/ME are not pre-emptively multitasking,
  6970. # you end up with a "frozen" computer, even though with patience
  6971. # the test eventually succeeds (with a max line length of 256k).
  6972. # Instead, let's just punt: use the minimum linelength reported by
  6973. # all of the supported platforms: 8192 (on NT/2K/XP).
  6974. lt_cv_sys_max_cmd_len=8192;
  6975. ;;
  6976. mint*)
  6977. # On MiNT this can take a long time and run out of memory.
  6978. lt_cv_sys_max_cmd_len=8192;
  6979. ;;
  6980. amigaos*)
  6981. # On AmigaOS with pdksh, this test takes hours, literally.
  6982. # So we just punt and use a minimum line length of 8192.
  6983. lt_cv_sys_max_cmd_len=8192;
  6984. ;;
  6985. bitrig* | darwin* | dragonfly* | freebsd* | netbsd* | openbsd*)
  6986. # This has been around since 386BSD, at least. Likely further.
  6987. if test -x /sbin/sysctl; then
  6988. lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
  6989. elif test -x /usr/sbin/sysctl; then
  6990. lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
  6991. else
  6992. lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
  6993. fi
  6994. # And add a safety zone
  6995. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
  6996. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
  6997. ;;
  6998. interix*)
  6999. # We know the value 262144 and hardcode it with a safety zone (like BSD)
  7000. lt_cv_sys_max_cmd_len=196608
  7001. ;;
  7002. os2*)
  7003. # The test takes a long time on OS/2.
  7004. lt_cv_sys_max_cmd_len=8192
  7005. ;;
  7006. osf*)
  7007. # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
  7008. # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
  7009. # nice to cause kernel panics so lets avoid the loop below.
  7010. # First set a reasonable default.
  7011. lt_cv_sys_max_cmd_len=16384
  7012. #
  7013. if test -x /sbin/sysconfig; then
  7014. case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
  7015. *1*) lt_cv_sys_max_cmd_len=-1 ;;
  7016. esac
  7017. fi
  7018. ;;
  7019. sco3.2v5*)
  7020. lt_cv_sys_max_cmd_len=102400
  7021. ;;
  7022. sysv5* | sco5v6* | sysv4.2uw2*)
  7023. kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
  7024. if test -n "$kargmax"; then
  7025. lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
  7026. else
  7027. lt_cv_sys_max_cmd_len=32768
  7028. fi
  7029. ;;
  7030. *)
  7031. lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
  7032. if test -n "$lt_cv_sys_max_cmd_len" && \
  7033. test undefined != "$lt_cv_sys_max_cmd_len"; then
  7034. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
  7035. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
  7036. else
  7037. # Make teststring a little bigger before we do anything with it.
  7038. # a 1K string should be a reasonable start.
  7039. for i in 1 2 3 4 5 6 7 8; do
  7040. teststring=$teststring$teststring
  7041. done
  7042. SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
  7043. # If test is not a shell built-in, we'll probably end up computing a
  7044. # maximum length that is only half of the actual maximum length, but
  7045. # we can't tell.
  7046. while { test X`env echo "$teststring$teststring" 2>/dev/null` \
  7047. = "X$teststring$teststring"; } >/dev/null 2>&1 &&
  7048. test 17 != "$i" # 1/2 MB should be enough
  7049. do
  7050. i=`expr $i + 1`
  7051. teststring=$teststring$teststring
  7052. done
  7053. # Only check the string length outside the loop.
  7054. lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
  7055. teststring=
  7056. # Add a significant safety factor because C++ compilers can tack on
  7057. # massive amounts of additional arguments before passing them to the
  7058. # linker. It appears as though 1/2 is a usable value.
  7059. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
  7060. fi
  7061. ;;
  7062. esac
  7063. fi
  7064. if test -n "$lt_cv_sys_max_cmd_len"; then
  7065. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
  7066. $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
  7067. else
  7068. { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
  7069. $as_echo "none" >&6; }
  7070. fi
  7071. max_cmd_len=$lt_cv_sys_max_cmd_len
  7072. : ${CP="cp -f"}
  7073. : ${MV="mv -f"}
  7074. : ${RM="rm -f"}
  7075. if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
  7076. lt_unset=unset
  7077. else
  7078. lt_unset=false
  7079. fi
  7080. # test EBCDIC or ASCII
  7081. case `echo X|tr X '\101'` in
  7082. A) # ASCII based system
  7083. # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
  7084. lt_SP2NL='tr \040 \012'
  7085. lt_NL2SP='tr \015\012 \040\040'
  7086. ;;
  7087. *) # EBCDIC based system
  7088. lt_SP2NL='tr \100 \n'
  7089. lt_NL2SP='tr \r\n \100\100'
  7090. ;;
  7091. esac
  7092. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
  7093. $as_echo_n "checking how to convert $build file names to $host format... " >&6; }
  7094. if ${lt_cv_to_host_file_cmd+:} false; then :
  7095. $as_echo_n "(cached) " >&6
  7096. else
  7097. case $host in
  7098. *-*-mingw* )
  7099. case $build in
  7100. *-*-mingw* ) # actually msys
  7101. lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
  7102. ;;
  7103. *-*-cygwin* )
  7104. lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
  7105. ;;
  7106. * ) # otherwise, assume *nix
  7107. lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
  7108. ;;
  7109. esac
  7110. ;;
  7111. *-*-cygwin* )
  7112. case $build in
  7113. *-*-mingw* ) # actually msys
  7114. lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
  7115. ;;
  7116. *-*-cygwin* )
  7117. lt_cv_to_host_file_cmd=func_convert_file_noop
  7118. ;;
  7119. * ) # otherwise, assume *nix
  7120. lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
  7121. ;;
  7122. esac
  7123. ;;
  7124. * ) # unhandled hosts (and "normal" native builds)
  7125. lt_cv_to_host_file_cmd=func_convert_file_noop
  7126. ;;
  7127. esac
  7128. fi
  7129. to_host_file_cmd=$lt_cv_to_host_file_cmd
  7130. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
  7131. $as_echo "$lt_cv_to_host_file_cmd" >&6; }
  7132. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
  7133. $as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
  7134. if ${lt_cv_to_tool_file_cmd+:} false; then :
  7135. $as_echo_n "(cached) " >&6
  7136. else
  7137. #assume ordinary cross tools, or native build.
  7138. lt_cv_to_tool_file_cmd=func_convert_file_noop
  7139. case $host in
  7140. *-*-mingw* )
  7141. case $build in
  7142. *-*-mingw* ) # actually msys
  7143. lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
  7144. ;;
  7145. esac
  7146. ;;
  7147. esac
  7148. fi
  7149. to_tool_file_cmd=$lt_cv_to_tool_file_cmd
  7150. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
  7151. $as_echo "$lt_cv_to_tool_file_cmd" >&6; }
  7152. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
  7153. $as_echo_n "checking for $LD option to reload object files... " >&6; }
  7154. if ${lt_cv_ld_reload_flag+:} false; then :
  7155. $as_echo_n "(cached) " >&6
  7156. else
  7157. lt_cv_ld_reload_flag='-r'
  7158. fi
  7159. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
  7160. $as_echo "$lt_cv_ld_reload_flag" >&6; }
  7161. reload_flag=$lt_cv_ld_reload_flag
  7162. case $reload_flag in
  7163. "" | " "*) ;;
  7164. *) reload_flag=" $reload_flag" ;;
  7165. esac
  7166. reload_cmds='$LD$reload_flag -o $output$reload_objs'
  7167. case $host_os in
  7168. cygwin* | mingw* | pw32* | cegcc*)
  7169. if test yes != "$GCC"; then
  7170. reload_cmds=false
  7171. fi
  7172. ;;
  7173. darwin*)
  7174. if test yes = "$GCC"; then
  7175. reload_cmds='$LTCC $LTCFLAGS -nostdlib $wl-r -o $output$reload_objs'
  7176. else
  7177. reload_cmds='$LD$reload_flag -o $output$reload_objs'
  7178. fi
  7179. ;;
  7180. esac
  7181. if test -n "$ac_tool_prefix"; then
  7182. # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
  7183. set dummy ${ac_tool_prefix}objdump; ac_word=$2
  7184. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  7185. $as_echo_n "checking for $ac_word... " >&6; }
  7186. if ${ac_cv_prog_OBJDUMP+:} false; then :
  7187. $as_echo_n "(cached) " >&6
  7188. else
  7189. if test -n "$OBJDUMP"; then
  7190. ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
  7191. else
  7192. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  7193. for as_dir in $PATH
  7194. do
  7195. IFS=$as_save_IFS
  7196. test -z "$as_dir" && as_dir=.
  7197. for ac_exec_ext in '' $ac_executable_extensions; do
  7198. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  7199. ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
  7200. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  7201. break 2
  7202. fi
  7203. done
  7204. done
  7205. IFS=$as_save_IFS
  7206. fi
  7207. fi
  7208. OBJDUMP=$ac_cv_prog_OBJDUMP
  7209. if test -n "$OBJDUMP"; then
  7210. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
  7211. $as_echo "$OBJDUMP" >&6; }
  7212. else
  7213. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7214. $as_echo "no" >&6; }
  7215. fi
  7216. fi
  7217. if test -z "$ac_cv_prog_OBJDUMP"; then
  7218. ac_ct_OBJDUMP=$OBJDUMP
  7219. # Extract the first word of "objdump", so it can be a program name with args.
  7220. set dummy objdump; ac_word=$2
  7221. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  7222. $as_echo_n "checking for $ac_word... " >&6; }
  7223. if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
  7224. $as_echo_n "(cached) " >&6
  7225. else
  7226. if test -n "$ac_ct_OBJDUMP"; then
  7227. ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
  7228. else
  7229. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  7230. for as_dir in $PATH
  7231. do
  7232. IFS=$as_save_IFS
  7233. test -z "$as_dir" && as_dir=.
  7234. for ac_exec_ext in '' $ac_executable_extensions; do
  7235. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  7236. ac_cv_prog_ac_ct_OBJDUMP="objdump"
  7237. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  7238. break 2
  7239. fi
  7240. done
  7241. done
  7242. IFS=$as_save_IFS
  7243. fi
  7244. fi
  7245. ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
  7246. if test -n "$ac_ct_OBJDUMP"; then
  7247. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
  7248. $as_echo "$ac_ct_OBJDUMP" >&6; }
  7249. else
  7250. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7251. $as_echo "no" >&6; }
  7252. fi
  7253. if test "x$ac_ct_OBJDUMP" = x; then
  7254. OBJDUMP="false"
  7255. else
  7256. case $cross_compiling:$ac_tool_warned in
  7257. yes:)
  7258. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  7259. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  7260. ac_tool_warned=yes ;;
  7261. esac
  7262. OBJDUMP=$ac_ct_OBJDUMP
  7263. fi
  7264. else
  7265. OBJDUMP="$ac_cv_prog_OBJDUMP"
  7266. fi
  7267. test -z "$OBJDUMP" && OBJDUMP=objdump
  7268. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
  7269. $as_echo_n "checking how to recognize dependent libraries... " >&6; }
  7270. if ${lt_cv_deplibs_check_method+:} false; then :
  7271. $as_echo_n "(cached) " >&6
  7272. else
  7273. lt_cv_file_magic_cmd='$MAGIC_CMD'
  7274. lt_cv_file_magic_test_file=
  7275. lt_cv_deplibs_check_method='unknown'
  7276. # Need to set the preceding variable on all platforms that support
  7277. # interlibrary dependencies.
  7278. # 'none' -- dependencies not supported.
  7279. # 'unknown' -- same as none, but documents that we really don't know.
  7280. # 'pass_all' -- all dependencies passed with no checks.
  7281. # 'test_compile' -- check by making test program.
  7282. # 'file_magic [[regex]]' -- check by looking for files in library path
  7283. # that responds to the $file_magic_cmd with a given extended regex.
  7284. # If you have 'file' or equivalent on your system and you're not sure
  7285. # whether 'pass_all' will *always* work, you probably want this one.
  7286. case $host_os in
  7287. aix[4-9]*)
  7288. lt_cv_deplibs_check_method=pass_all
  7289. ;;
  7290. beos*)
  7291. lt_cv_deplibs_check_method=pass_all
  7292. ;;
  7293. bsdi[45]*)
  7294. lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
  7295. lt_cv_file_magic_cmd='/usr/bin/file -L'
  7296. lt_cv_file_magic_test_file=/shlib/libc.so
  7297. ;;
  7298. cygwin*)
  7299. # func_win32_libid is a shell function defined in ltmain.sh
  7300. lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
  7301. lt_cv_file_magic_cmd='func_win32_libid'
  7302. ;;
  7303. mingw* | pw32*)
  7304. # Base MSYS/MinGW do not provide the 'file' command needed by
  7305. # func_win32_libid shell function, so use a weaker test based on 'objdump',
  7306. # unless we find 'file', for example because we are cross-compiling.
  7307. if ( file / ) >/dev/null 2>&1; then
  7308. lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
  7309. lt_cv_file_magic_cmd='func_win32_libid'
  7310. else
  7311. # Keep this pattern in sync with the one in func_win32_libid.
  7312. lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
  7313. lt_cv_file_magic_cmd='$OBJDUMP -f'
  7314. fi
  7315. ;;
  7316. cegcc*)
  7317. # use the weaker test based on 'objdump'. See mingw*.
  7318. lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
  7319. lt_cv_file_magic_cmd='$OBJDUMP -f'
  7320. ;;
  7321. darwin* | rhapsody*)
  7322. lt_cv_deplibs_check_method=pass_all
  7323. ;;
  7324. freebsd* | dragonfly*)
  7325. if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
  7326. case $host_cpu in
  7327. i*86 )
  7328. # Not sure whether the presence of OpenBSD here was a mistake.
  7329. # Let's accept both of them until this is cleared up.
  7330. lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
  7331. lt_cv_file_magic_cmd=/usr/bin/file
  7332. lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
  7333. ;;
  7334. esac
  7335. else
  7336. lt_cv_deplibs_check_method=pass_all
  7337. fi
  7338. ;;
  7339. haiku*)
  7340. lt_cv_deplibs_check_method=pass_all
  7341. ;;
  7342. hpux10.20* | hpux11*)
  7343. lt_cv_file_magic_cmd=/usr/bin/file
  7344. case $host_cpu in
  7345. ia64*)
  7346. lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
  7347. lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
  7348. ;;
  7349. hppa*64*)
  7350. 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]'
  7351. lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
  7352. ;;
  7353. *)
  7354. lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
  7355. lt_cv_file_magic_test_file=/usr/lib/libc.sl
  7356. ;;
  7357. esac
  7358. ;;
  7359. interix[3-9]*)
  7360. # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
  7361. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
  7362. ;;
  7363. irix5* | irix6* | nonstopux*)
  7364. case $LD in
  7365. *-32|*"-32 ") libmagic=32-bit;;
  7366. *-n32|*"-n32 ") libmagic=N32;;
  7367. *-64|*"-64 ") libmagic=64-bit;;
  7368. *) libmagic=never-match;;
  7369. esac
  7370. lt_cv_deplibs_check_method=pass_all
  7371. ;;
  7372. # This must be glibc/ELF.
  7373. linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
  7374. lt_cv_deplibs_check_method=pass_all
  7375. ;;
  7376. netbsd*)
  7377. if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
  7378. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
  7379. else
  7380. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
  7381. fi
  7382. ;;
  7383. newos6*)
  7384. lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
  7385. lt_cv_file_magic_cmd=/usr/bin/file
  7386. lt_cv_file_magic_test_file=/usr/lib/libnls.so
  7387. ;;
  7388. *nto* | *qnx*)
  7389. lt_cv_deplibs_check_method=pass_all
  7390. ;;
  7391. openbsd* | bitrig*)
  7392. if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
  7393. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
  7394. else
  7395. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
  7396. fi
  7397. ;;
  7398. osf3* | osf4* | osf5*)
  7399. lt_cv_deplibs_check_method=pass_all
  7400. ;;
  7401. rdos*)
  7402. lt_cv_deplibs_check_method=pass_all
  7403. ;;
  7404. solaris*)
  7405. lt_cv_deplibs_check_method=pass_all
  7406. ;;
  7407. sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
  7408. lt_cv_deplibs_check_method=pass_all
  7409. ;;
  7410. sysv4 | sysv4.3*)
  7411. case $host_vendor in
  7412. motorola)
  7413. 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]'
  7414. lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
  7415. ;;
  7416. ncr)
  7417. lt_cv_deplibs_check_method=pass_all
  7418. ;;
  7419. sequent)
  7420. lt_cv_file_magic_cmd='/bin/file'
  7421. lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
  7422. ;;
  7423. sni)
  7424. lt_cv_file_magic_cmd='/bin/file'
  7425. lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
  7426. lt_cv_file_magic_test_file=/lib/libc.so
  7427. ;;
  7428. siemens)
  7429. lt_cv_deplibs_check_method=pass_all
  7430. ;;
  7431. pc)
  7432. lt_cv_deplibs_check_method=pass_all
  7433. ;;
  7434. esac
  7435. ;;
  7436. tpf*)
  7437. lt_cv_deplibs_check_method=pass_all
  7438. ;;
  7439. os2*)
  7440. lt_cv_deplibs_check_method=pass_all
  7441. ;;
  7442. esac
  7443. fi
  7444. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
  7445. $as_echo "$lt_cv_deplibs_check_method" >&6; }
  7446. file_magic_glob=
  7447. want_nocaseglob=no
  7448. if test "$build" = "$host"; then
  7449. case $host_os in
  7450. mingw* | pw32*)
  7451. if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
  7452. want_nocaseglob=yes
  7453. else
  7454. file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
  7455. fi
  7456. ;;
  7457. esac
  7458. fi
  7459. file_magic_cmd=$lt_cv_file_magic_cmd
  7460. deplibs_check_method=$lt_cv_deplibs_check_method
  7461. test -z "$deplibs_check_method" && deplibs_check_method=unknown
  7462. if test -n "$ac_tool_prefix"; then
  7463. # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
  7464. set dummy ${ac_tool_prefix}dlltool; ac_word=$2
  7465. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  7466. $as_echo_n "checking for $ac_word... " >&6; }
  7467. if ${ac_cv_prog_DLLTOOL+:} false; then :
  7468. $as_echo_n "(cached) " >&6
  7469. else
  7470. if test -n "$DLLTOOL"; then
  7471. ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
  7472. else
  7473. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  7474. for as_dir in $PATH
  7475. do
  7476. IFS=$as_save_IFS
  7477. test -z "$as_dir" && as_dir=.
  7478. for ac_exec_ext in '' $ac_executable_extensions; do
  7479. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  7480. ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
  7481. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  7482. break 2
  7483. fi
  7484. done
  7485. done
  7486. IFS=$as_save_IFS
  7487. fi
  7488. fi
  7489. DLLTOOL=$ac_cv_prog_DLLTOOL
  7490. if test -n "$DLLTOOL"; then
  7491. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
  7492. $as_echo "$DLLTOOL" >&6; }
  7493. else
  7494. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7495. $as_echo "no" >&6; }
  7496. fi
  7497. fi
  7498. if test -z "$ac_cv_prog_DLLTOOL"; then
  7499. ac_ct_DLLTOOL=$DLLTOOL
  7500. # Extract the first word of "dlltool", so it can be a program name with args.
  7501. set dummy dlltool; ac_word=$2
  7502. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  7503. $as_echo_n "checking for $ac_word... " >&6; }
  7504. if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
  7505. $as_echo_n "(cached) " >&6
  7506. else
  7507. if test -n "$ac_ct_DLLTOOL"; then
  7508. ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
  7509. else
  7510. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  7511. for as_dir in $PATH
  7512. do
  7513. IFS=$as_save_IFS
  7514. test -z "$as_dir" && as_dir=.
  7515. for ac_exec_ext in '' $ac_executable_extensions; do
  7516. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  7517. ac_cv_prog_ac_ct_DLLTOOL="dlltool"
  7518. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  7519. break 2
  7520. fi
  7521. done
  7522. done
  7523. IFS=$as_save_IFS
  7524. fi
  7525. fi
  7526. ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
  7527. if test -n "$ac_ct_DLLTOOL"; then
  7528. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
  7529. $as_echo "$ac_ct_DLLTOOL" >&6; }
  7530. else
  7531. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7532. $as_echo "no" >&6; }
  7533. fi
  7534. if test "x$ac_ct_DLLTOOL" = x; then
  7535. DLLTOOL="false"
  7536. else
  7537. case $cross_compiling:$ac_tool_warned in
  7538. yes:)
  7539. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  7540. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  7541. ac_tool_warned=yes ;;
  7542. esac
  7543. DLLTOOL=$ac_ct_DLLTOOL
  7544. fi
  7545. else
  7546. DLLTOOL="$ac_cv_prog_DLLTOOL"
  7547. fi
  7548. test -z "$DLLTOOL" && DLLTOOL=dlltool
  7549. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
  7550. $as_echo_n "checking how to associate runtime and link libraries... " >&6; }
  7551. if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
  7552. $as_echo_n "(cached) " >&6
  7553. else
  7554. lt_cv_sharedlib_from_linklib_cmd='unknown'
  7555. case $host_os in
  7556. cygwin* | mingw* | pw32* | cegcc*)
  7557. # two different shell functions defined in ltmain.sh;
  7558. # decide which one to use based on capabilities of $DLLTOOL
  7559. case `$DLLTOOL --help 2>&1` in
  7560. *--identify-strict*)
  7561. lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
  7562. ;;
  7563. *)
  7564. lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
  7565. ;;
  7566. esac
  7567. ;;
  7568. *)
  7569. # fallback: assume linklib IS sharedlib
  7570. lt_cv_sharedlib_from_linklib_cmd=$ECHO
  7571. ;;
  7572. esac
  7573. fi
  7574. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
  7575. $as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
  7576. sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
  7577. test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
  7578. if test -n "$ac_tool_prefix"; then
  7579. for ac_prog in ar
  7580. do
  7581. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  7582. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  7583. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  7584. $as_echo_n "checking for $ac_word... " >&6; }
  7585. if ${ac_cv_prog_AR+:} false; then :
  7586. $as_echo_n "(cached) " >&6
  7587. else
  7588. if test -n "$AR"; then
  7589. ac_cv_prog_AR="$AR" # Let the user override the test.
  7590. else
  7591. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  7592. for as_dir in $PATH
  7593. do
  7594. IFS=$as_save_IFS
  7595. test -z "$as_dir" && as_dir=.
  7596. for ac_exec_ext in '' $ac_executable_extensions; do
  7597. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  7598. ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
  7599. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  7600. break 2
  7601. fi
  7602. done
  7603. done
  7604. IFS=$as_save_IFS
  7605. fi
  7606. fi
  7607. AR=$ac_cv_prog_AR
  7608. if test -n "$AR"; then
  7609. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
  7610. $as_echo "$AR" >&6; }
  7611. else
  7612. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7613. $as_echo "no" >&6; }
  7614. fi
  7615. test -n "$AR" && break
  7616. done
  7617. fi
  7618. if test -z "$AR"; then
  7619. ac_ct_AR=$AR
  7620. for ac_prog in ar
  7621. do
  7622. # Extract the first word of "$ac_prog", so it can be a program name with args.
  7623. set dummy $ac_prog; ac_word=$2
  7624. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  7625. $as_echo_n "checking for $ac_word... " >&6; }
  7626. if ${ac_cv_prog_ac_ct_AR+:} false; then :
  7627. $as_echo_n "(cached) " >&6
  7628. else
  7629. if test -n "$ac_ct_AR"; then
  7630. ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
  7631. else
  7632. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  7633. for as_dir in $PATH
  7634. do
  7635. IFS=$as_save_IFS
  7636. test -z "$as_dir" && as_dir=.
  7637. for ac_exec_ext in '' $ac_executable_extensions; do
  7638. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  7639. ac_cv_prog_ac_ct_AR="$ac_prog"
  7640. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  7641. break 2
  7642. fi
  7643. done
  7644. done
  7645. IFS=$as_save_IFS
  7646. fi
  7647. fi
  7648. ac_ct_AR=$ac_cv_prog_ac_ct_AR
  7649. if test -n "$ac_ct_AR"; then
  7650. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
  7651. $as_echo "$ac_ct_AR" >&6; }
  7652. else
  7653. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7654. $as_echo "no" >&6; }
  7655. fi
  7656. test -n "$ac_ct_AR" && break
  7657. done
  7658. if test "x$ac_ct_AR" = x; then
  7659. AR="false"
  7660. else
  7661. case $cross_compiling:$ac_tool_warned in
  7662. yes:)
  7663. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  7664. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  7665. ac_tool_warned=yes ;;
  7666. esac
  7667. AR=$ac_ct_AR
  7668. fi
  7669. fi
  7670. : ${AR=ar}
  7671. : ${AR_FLAGS=cru}
  7672. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
  7673. $as_echo_n "checking for archiver @FILE support... " >&6; }
  7674. if ${lt_cv_ar_at_file+:} false; then :
  7675. $as_echo_n "(cached) " >&6
  7676. else
  7677. lt_cv_ar_at_file=no
  7678. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7679. /* end confdefs.h. */
  7680. int
  7681. main ()
  7682. {
  7683. ;
  7684. return 0;
  7685. }
  7686. _ACEOF
  7687. if ac_fn_c_try_compile "$LINENO"; then :
  7688. echo conftest.$ac_objext > conftest.lst
  7689. lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
  7690. { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
  7691. (eval $lt_ar_try) 2>&5
  7692. ac_status=$?
  7693. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  7694. test $ac_status = 0; }
  7695. if test 0 -eq "$ac_status"; then
  7696. # Ensure the archiver fails upon bogus file names.
  7697. rm -f conftest.$ac_objext libconftest.a
  7698. { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
  7699. (eval $lt_ar_try) 2>&5
  7700. ac_status=$?
  7701. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  7702. test $ac_status = 0; }
  7703. if test 0 -ne "$ac_status"; then
  7704. lt_cv_ar_at_file=@
  7705. fi
  7706. fi
  7707. rm -f conftest.* libconftest.a
  7708. fi
  7709. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  7710. fi
  7711. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
  7712. $as_echo "$lt_cv_ar_at_file" >&6; }
  7713. if test no = "$lt_cv_ar_at_file"; then
  7714. archiver_list_spec=
  7715. else
  7716. archiver_list_spec=$lt_cv_ar_at_file
  7717. fi
  7718. if test -n "$ac_tool_prefix"; then
  7719. # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
  7720. set dummy ${ac_tool_prefix}strip; ac_word=$2
  7721. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  7722. $as_echo_n "checking for $ac_word... " >&6; }
  7723. if ${ac_cv_prog_STRIP+:} false; then :
  7724. $as_echo_n "(cached) " >&6
  7725. else
  7726. if test -n "$STRIP"; then
  7727. ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
  7728. else
  7729. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  7730. for as_dir in $PATH
  7731. do
  7732. IFS=$as_save_IFS
  7733. test -z "$as_dir" && as_dir=.
  7734. for ac_exec_ext in '' $ac_executable_extensions; do
  7735. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  7736. ac_cv_prog_STRIP="${ac_tool_prefix}strip"
  7737. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  7738. break 2
  7739. fi
  7740. done
  7741. done
  7742. IFS=$as_save_IFS
  7743. fi
  7744. fi
  7745. STRIP=$ac_cv_prog_STRIP
  7746. if test -n "$STRIP"; then
  7747. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
  7748. $as_echo "$STRIP" >&6; }
  7749. else
  7750. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7751. $as_echo "no" >&6; }
  7752. fi
  7753. fi
  7754. if test -z "$ac_cv_prog_STRIP"; then
  7755. ac_ct_STRIP=$STRIP
  7756. # Extract the first word of "strip", so it can be a program name with args.
  7757. set dummy strip; ac_word=$2
  7758. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  7759. $as_echo_n "checking for $ac_word... " >&6; }
  7760. if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
  7761. $as_echo_n "(cached) " >&6
  7762. else
  7763. if test -n "$ac_ct_STRIP"; then
  7764. ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
  7765. else
  7766. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  7767. for as_dir in $PATH
  7768. do
  7769. IFS=$as_save_IFS
  7770. test -z "$as_dir" && as_dir=.
  7771. for ac_exec_ext in '' $ac_executable_extensions; do
  7772. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  7773. ac_cv_prog_ac_ct_STRIP="strip"
  7774. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  7775. break 2
  7776. fi
  7777. done
  7778. done
  7779. IFS=$as_save_IFS
  7780. fi
  7781. fi
  7782. ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
  7783. if test -n "$ac_ct_STRIP"; then
  7784. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
  7785. $as_echo "$ac_ct_STRIP" >&6; }
  7786. else
  7787. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7788. $as_echo "no" >&6; }
  7789. fi
  7790. if test "x$ac_ct_STRIP" = x; then
  7791. STRIP=":"
  7792. else
  7793. case $cross_compiling:$ac_tool_warned in
  7794. yes:)
  7795. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  7796. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  7797. ac_tool_warned=yes ;;
  7798. esac
  7799. STRIP=$ac_ct_STRIP
  7800. fi
  7801. else
  7802. STRIP="$ac_cv_prog_STRIP"
  7803. fi
  7804. test -z "$STRIP" && STRIP=:
  7805. if test -n "$ac_tool_prefix"; then
  7806. # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
  7807. set dummy ${ac_tool_prefix}ranlib; ac_word=$2
  7808. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  7809. $as_echo_n "checking for $ac_word... " >&6; }
  7810. if ${ac_cv_prog_RANLIB+:} false; then :
  7811. $as_echo_n "(cached) " >&6
  7812. else
  7813. if test -n "$RANLIB"; then
  7814. ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
  7815. else
  7816. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  7817. for as_dir in $PATH
  7818. do
  7819. IFS=$as_save_IFS
  7820. test -z "$as_dir" && as_dir=.
  7821. for ac_exec_ext in '' $ac_executable_extensions; do
  7822. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  7823. ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
  7824. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  7825. break 2
  7826. fi
  7827. done
  7828. done
  7829. IFS=$as_save_IFS
  7830. fi
  7831. fi
  7832. RANLIB=$ac_cv_prog_RANLIB
  7833. if test -n "$RANLIB"; then
  7834. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
  7835. $as_echo "$RANLIB" >&6; }
  7836. else
  7837. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7838. $as_echo "no" >&6; }
  7839. fi
  7840. fi
  7841. if test -z "$ac_cv_prog_RANLIB"; then
  7842. ac_ct_RANLIB=$RANLIB
  7843. # Extract the first word of "ranlib", so it can be a program name with args.
  7844. set dummy ranlib; ac_word=$2
  7845. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  7846. $as_echo_n "checking for $ac_word... " >&6; }
  7847. if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
  7848. $as_echo_n "(cached) " >&6
  7849. else
  7850. if test -n "$ac_ct_RANLIB"; then
  7851. ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
  7852. else
  7853. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  7854. for as_dir in $PATH
  7855. do
  7856. IFS=$as_save_IFS
  7857. test -z "$as_dir" && as_dir=.
  7858. for ac_exec_ext in '' $ac_executable_extensions; do
  7859. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  7860. ac_cv_prog_ac_ct_RANLIB="ranlib"
  7861. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  7862. break 2
  7863. fi
  7864. done
  7865. done
  7866. IFS=$as_save_IFS
  7867. fi
  7868. fi
  7869. ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
  7870. if test -n "$ac_ct_RANLIB"; then
  7871. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
  7872. $as_echo "$ac_ct_RANLIB" >&6; }
  7873. else
  7874. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7875. $as_echo "no" >&6; }
  7876. fi
  7877. if test "x$ac_ct_RANLIB" = x; then
  7878. RANLIB=":"
  7879. else
  7880. case $cross_compiling:$ac_tool_warned in
  7881. yes:)
  7882. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  7883. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  7884. ac_tool_warned=yes ;;
  7885. esac
  7886. RANLIB=$ac_ct_RANLIB
  7887. fi
  7888. else
  7889. RANLIB="$ac_cv_prog_RANLIB"
  7890. fi
  7891. test -z "$RANLIB" && RANLIB=:
  7892. # Determine commands to create old-style static archives.
  7893. old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
  7894. old_postinstall_cmds='chmod 644 $oldlib'
  7895. old_postuninstall_cmds=
  7896. if test -n "$RANLIB"; then
  7897. case $host_os in
  7898. bitrig* | openbsd*)
  7899. old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
  7900. ;;
  7901. *)
  7902. old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
  7903. ;;
  7904. esac
  7905. old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
  7906. fi
  7907. case $host_os in
  7908. darwin*)
  7909. lock_old_archive_extraction=yes ;;
  7910. *)
  7911. lock_old_archive_extraction=no ;;
  7912. esac
  7913. for ac_prog in gawk mawk nawk awk
  7914. do
  7915. # Extract the first word of "$ac_prog", so it can be a program name with args.
  7916. set dummy $ac_prog; ac_word=$2
  7917. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  7918. $as_echo_n "checking for $ac_word... " >&6; }
  7919. if ${ac_cv_prog_AWK+:} false; then :
  7920. $as_echo_n "(cached) " >&6
  7921. else
  7922. if test -n "$AWK"; then
  7923. ac_cv_prog_AWK="$AWK" # Let the user override the test.
  7924. else
  7925. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  7926. for as_dir in $PATH
  7927. do
  7928. IFS=$as_save_IFS
  7929. test -z "$as_dir" && as_dir=.
  7930. for ac_exec_ext in '' $ac_executable_extensions; do
  7931. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  7932. ac_cv_prog_AWK="$ac_prog"
  7933. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  7934. break 2
  7935. fi
  7936. done
  7937. done
  7938. IFS=$as_save_IFS
  7939. fi
  7940. fi
  7941. AWK=$ac_cv_prog_AWK
  7942. if test -n "$AWK"; then
  7943. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
  7944. $as_echo "$AWK" >&6; }
  7945. else
  7946. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7947. $as_echo "no" >&6; }
  7948. fi
  7949. test -n "$AWK" && break
  7950. done
  7951. # If no C compiler was specified, use CC.
  7952. LTCC=${LTCC-"$CC"}
  7953. # If no C compiler flags were specified, use CFLAGS.
  7954. LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
  7955. # Allow CC to be a program name with arguments.
  7956. compiler=$CC
  7957. # Check for command to grab the raw symbol name followed by C symbol from nm.
  7958. { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
  7959. $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
  7960. if ${lt_cv_sys_global_symbol_pipe+:} false; then :
  7961. $as_echo_n "(cached) " >&6
  7962. else
  7963. # These are sane defaults that work on at least a few old systems.
  7964. # [They come from Ultrix. What could be older than Ultrix?!! ;)]
  7965. # Character class describing NM global symbol codes.
  7966. symcode='[BCDEGRST]'
  7967. # Regexp to match symbols that can be accessed directly from C.
  7968. sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
  7969. # Define system-specific variables.
  7970. case $host_os in
  7971. aix*)
  7972. symcode='[BCDT]'
  7973. ;;
  7974. cygwin* | mingw* | pw32* | cegcc*)
  7975. symcode='[ABCDGISTW]'
  7976. ;;
  7977. hpux*)
  7978. if test ia64 = "$host_cpu"; then
  7979. symcode='[ABCDEGRST]'
  7980. fi
  7981. ;;
  7982. irix* | nonstopux*)
  7983. symcode='[BCDEGRST]'
  7984. ;;
  7985. osf*)
  7986. symcode='[BCDEGQRST]'
  7987. ;;
  7988. solaris*)
  7989. symcode='[BDRT]'
  7990. ;;
  7991. sco3.2v5*)
  7992. symcode='[DT]'
  7993. ;;
  7994. sysv4.2uw2*)
  7995. symcode='[DT]'
  7996. ;;
  7997. sysv5* | sco5v6* | unixware* | OpenUNIX*)
  7998. symcode='[ABDT]'
  7999. ;;
  8000. sysv4)
  8001. symcode='[DFNSTU]'
  8002. ;;
  8003. esac
  8004. # If we're using GNU nm, then use its standard symbol codes.
  8005. case `$NM -V 2>&1` in
  8006. *GNU* | *'with BFD'*)
  8007. symcode='[ABCDGIRSTW]' ;;
  8008. esac
  8009. if test "$lt_cv_nm_interface" = "MS dumpbin"; then
  8010. # Gets list of data symbols to import.
  8011. lt_cv_sys_global_symbol_to_import="sed -n -e 's/^I .* \(.*\)$/\1/p'"
  8012. # Adjust the below global symbol transforms to fixup imported variables.
  8013. lt_cdecl_hook=" -e 's/^I .* \(.*\)$/extern __declspec(dllimport) char \1;/p'"
  8014. lt_c_name_hook=" -e 's/^I .* \(.*\)$/ {\"\1\", (void *) 0},/p'"
  8015. lt_c_name_lib_hook="\
  8016. -e 's/^I .* \(lib.*\)$/ {\"\1\", (void *) 0},/p'\
  8017. -e 's/^I .* \(.*\)$/ {\"lib\1\", (void *) 0},/p'"
  8018. else
  8019. # Disable hooks by default.
  8020. lt_cv_sys_global_symbol_to_import=
  8021. lt_cdecl_hook=
  8022. lt_c_name_hook=
  8023. lt_c_name_lib_hook=
  8024. fi
  8025. # Transform an extracted symbol line into a proper C declaration.
  8026. # Some systems (esp. on ia64) link data and code symbols differently,
  8027. # so use this general approach.
  8028. lt_cv_sys_global_symbol_to_cdecl="sed -n"\
  8029. $lt_cdecl_hook\
  8030. " -e 's/^T .* \(.*\)$/extern int \1();/p'"\
  8031. " -e 's/^$symcode$symcode* .* \(.*\)$/extern char \1;/p'"
  8032. # Transform an extracted symbol line into symbol name and symbol address
  8033. lt_cv_sys_global_symbol_to_c_name_address="sed -n"\
  8034. $lt_c_name_hook\
  8035. " -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\
  8036. " -e 's/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/p'"
  8037. # Transform an extracted symbol line into symbol name with lib prefix and
  8038. # symbol address.
  8039. lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n"\
  8040. $lt_c_name_lib_hook\
  8041. " -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\
  8042. " -e 's/^$symcode$symcode* .* \(lib.*\)$/ {\"\1\", (void *) \&\1},/p'"\
  8043. " -e 's/^$symcode$symcode* .* \(.*\)$/ {\"lib\1\", (void *) \&\1},/p'"
  8044. # Handle CRLF in mingw tool chain
  8045. opt_cr=
  8046. case $build_os in
  8047. mingw*)
  8048. opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
  8049. ;;
  8050. esac
  8051. # Try without a prefix underscore, then with it.
  8052. for ac_symprfx in "" "_"; do
  8053. # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
  8054. symxfrm="\\1 $ac_symprfx\\2 \\2"
  8055. # Write the raw and C identifiers.
  8056. if test "$lt_cv_nm_interface" = "MS dumpbin"; then
  8057. # Fake it for dumpbin and say T for any non-static function,
  8058. # D for any global variable and I for any imported variable.
  8059. # Also find C++ and __fastcall symbols from MSVC++,
  8060. # which start with @ or ?.
  8061. lt_cv_sys_global_symbol_pipe="$AWK '"\
  8062. " {last_section=section; section=\$ 3};"\
  8063. " /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
  8064. " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
  8065. " /^ *Symbol name *: /{split(\$ 0,sn,\":\"); si=substr(sn[2],2)};"\
  8066. " /^ *Type *: code/{print \"T\",si,substr(si,length(prfx))};"\
  8067. " /^ *Type *: data/{print \"I\",si,substr(si,length(prfx))};"\
  8068. " \$ 0!~/External *\|/{next};"\
  8069. " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
  8070. " {if(hide[section]) next};"\
  8071. " {f=\"D\"}; \$ 0~/\(\).*\|/{f=\"T\"};"\
  8072. " {split(\$ 0,a,/\||\r/); split(a[2],s)};"\
  8073. " s[1]~/^[@?]/{print f,s[1],s[1]; next};"\
  8074. " s[1]~prfx {split(s[1],t,\"@\"); print f,t[1],substr(t[1],length(prfx))}"\
  8075. " ' prfx=^$ac_symprfx"
  8076. else
  8077. lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
  8078. fi
  8079. lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
  8080. # Check to see that the pipe works correctly.
  8081. pipe_works=no
  8082. rm -f conftest*
  8083. cat > conftest.$ac_ext <<_LT_EOF
  8084. #ifdef __cplusplus
  8085. extern "C" {
  8086. #endif
  8087. char nm_test_var;
  8088. void nm_test_func(void);
  8089. void nm_test_func(void){}
  8090. #ifdef __cplusplus
  8091. }
  8092. #endif
  8093. int main(){nm_test_var='a';nm_test_func();return(0);}
  8094. _LT_EOF
  8095. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  8096. (eval $ac_compile) 2>&5
  8097. ac_status=$?
  8098. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  8099. test $ac_status = 0; }; then
  8100. # Now try to grab the symbols.
  8101. nlist=conftest.nm
  8102. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
  8103. (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
  8104. ac_status=$?
  8105. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  8106. test $ac_status = 0; } && test -s "$nlist"; then
  8107. # Try sorting and uniquifying the output.
  8108. if sort "$nlist" | uniq > "$nlist"T; then
  8109. mv -f "$nlist"T "$nlist"
  8110. else
  8111. rm -f "$nlist"T
  8112. fi
  8113. # Make sure that we snagged all the symbols we need.
  8114. if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
  8115. if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
  8116. cat <<_LT_EOF > conftest.$ac_ext
  8117. /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */
  8118. #if defined _WIN32 || defined __CYGWIN__ || defined _WIN32_WCE
  8119. /* DATA imports from DLLs on WIN32 can't be const, because runtime
  8120. relocations are performed -- see ld's documentation on pseudo-relocs. */
  8121. # define LT_DLSYM_CONST
  8122. #elif defined __osf__
  8123. /* This system does not cope well with relocations in const data. */
  8124. # define LT_DLSYM_CONST
  8125. #else
  8126. # define LT_DLSYM_CONST const
  8127. #endif
  8128. #ifdef __cplusplus
  8129. extern "C" {
  8130. #endif
  8131. _LT_EOF
  8132. # Now generate the symbol file.
  8133. eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
  8134. cat <<_LT_EOF >> conftest.$ac_ext
  8135. /* The mapping between symbol names and symbols. */
  8136. LT_DLSYM_CONST struct {
  8137. const char *name;
  8138. void *address;
  8139. }
  8140. lt__PROGRAM__LTX_preloaded_symbols[] =
  8141. {
  8142. { "@PROGRAM@", (void *) 0 },
  8143. _LT_EOF
  8144. $SED "s/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
  8145. cat <<\_LT_EOF >> conftest.$ac_ext
  8146. {0, (void *) 0}
  8147. };
  8148. /* This works around a problem in FreeBSD linker */
  8149. #ifdef FREEBSD_WORKAROUND
  8150. static const void *lt_preloaded_setup() {
  8151. return lt__PROGRAM__LTX_preloaded_symbols;
  8152. }
  8153. #endif
  8154. #ifdef __cplusplus
  8155. }
  8156. #endif
  8157. _LT_EOF
  8158. # Now try linking the two files.
  8159. mv conftest.$ac_objext conftstm.$ac_objext
  8160. lt_globsym_save_LIBS=$LIBS
  8161. lt_globsym_save_CFLAGS=$CFLAGS
  8162. LIBS=conftstm.$ac_objext
  8163. CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
  8164. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
  8165. (eval $ac_link) 2>&5
  8166. ac_status=$?
  8167. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  8168. test $ac_status = 0; } && test -s conftest$ac_exeext; then
  8169. pipe_works=yes
  8170. fi
  8171. LIBS=$lt_globsym_save_LIBS
  8172. CFLAGS=$lt_globsym_save_CFLAGS
  8173. else
  8174. echo "cannot find nm_test_func in $nlist" >&5
  8175. fi
  8176. else
  8177. echo "cannot find nm_test_var in $nlist" >&5
  8178. fi
  8179. else
  8180. echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
  8181. fi
  8182. else
  8183. echo "$progname: failed program was:" >&5
  8184. cat conftest.$ac_ext >&5
  8185. fi
  8186. rm -rf conftest* conftst*
  8187. # Do not use the global_symbol_pipe unless it works.
  8188. if test yes = "$pipe_works"; then
  8189. break
  8190. else
  8191. lt_cv_sys_global_symbol_pipe=
  8192. fi
  8193. done
  8194. fi
  8195. if test -z "$lt_cv_sys_global_symbol_pipe"; then
  8196. lt_cv_sys_global_symbol_to_cdecl=
  8197. fi
  8198. if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
  8199. { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
  8200. $as_echo "failed" >&6; }
  8201. else
  8202. { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
  8203. $as_echo "ok" >&6; }
  8204. fi
  8205. # Response file support.
  8206. if test "$lt_cv_nm_interface" = "MS dumpbin"; then
  8207. nm_file_list_spec='@'
  8208. elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
  8209. nm_file_list_spec='@'
  8210. fi
  8211. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
  8212. $as_echo_n "checking for sysroot... " >&6; }
  8213. # Check whether --with-sysroot was given.
  8214. if test "${with_sysroot+set}" = set; then :
  8215. withval=$with_sysroot;
  8216. else
  8217. with_sysroot=no
  8218. fi
  8219. lt_sysroot=
  8220. case $with_sysroot in #(
  8221. yes)
  8222. if test yes = "$GCC"; then
  8223. lt_sysroot=`$CC --print-sysroot 2>/dev/null`
  8224. fi
  8225. ;; #(
  8226. /*)
  8227. lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
  8228. ;; #(
  8229. no|'')
  8230. ;; #(
  8231. *)
  8232. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_sysroot" >&5
  8233. $as_echo "$with_sysroot" >&6; }
  8234. as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
  8235. ;;
  8236. esac
  8237. { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
  8238. $as_echo "${lt_sysroot:-no}" >&6; }
  8239. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a working dd" >&5
  8240. $as_echo_n "checking for a working dd... " >&6; }
  8241. if ${ac_cv_path_lt_DD+:} false; then :
  8242. $as_echo_n "(cached) " >&6
  8243. else
  8244. printf 0123456789abcdef0123456789abcdef >conftest.i
  8245. cat conftest.i conftest.i >conftest2.i
  8246. : ${lt_DD:=$DD}
  8247. if test -z "$lt_DD"; then
  8248. ac_path_lt_DD_found=false
  8249. # Loop through the user's path and test for each of PROGNAME-LIST
  8250. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  8251. for as_dir in $PATH
  8252. do
  8253. IFS=$as_save_IFS
  8254. test -z "$as_dir" && as_dir=.
  8255. for ac_prog in dd; do
  8256. for ac_exec_ext in '' $ac_executable_extensions; do
  8257. ac_path_lt_DD="$as_dir/$ac_prog$ac_exec_ext"
  8258. as_fn_executable_p "$ac_path_lt_DD" || continue
  8259. if "$ac_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
  8260. cmp -s conftest.i conftest.out \
  8261. && ac_cv_path_lt_DD="$ac_path_lt_DD" ac_path_lt_DD_found=:
  8262. fi
  8263. $ac_path_lt_DD_found && break 3
  8264. done
  8265. done
  8266. done
  8267. IFS=$as_save_IFS
  8268. if test -z "$ac_cv_path_lt_DD"; then
  8269. :
  8270. fi
  8271. else
  8272. ac_cv_path_lt_DD=$lt_DD
  8273. fi
  8274. rm -f conftest.i conftest2.i conftest.out
  8275. fi
  8276. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_lt_DD" >&5
  8277. $as_echo "$ac_cv_path_lt_DD" >&6; }
  8278. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to truncate binary pipes" >&5
  8279. $as_echo_n "checking how to truncate binary pipes... " >&6; }
  8280. if ${lt_cv_truncate_bin+:} false; then :
  8281. $as_echo_n "(cached) " >&6
  8282. else
  8283. printf 0123456789abcdef0123456789abcdef >conftest.i
  8284. cat conftest.i conftest.i >conftest2.i
  8285. lt_cv_truncate_bin=
  8286. if "$ac_cv_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
  8287. cmp -s conftest.i conftest.out \
  8288. && lt_cv_truncate_bin="$ac_cv_path_lt_DD bs=4096 count=1"
  8289. fi
  8290. rm -f conftest.i conftest2.i conftest.out
  8291. test -z "$lt_cv_truncate_bin" && lt_cv_truncate_bin="$SED -e 4q"
  8292. fi
  8293. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_truncate_bin" >&5
  8294. $as_echo "$lt_cv_truncate_bin" >&6; }
  8295. # Calculate cc_basename. Skip known compiler wrappers and cross-prefix.
  8296. func_cc_basename ()
  8297. {
  8298. for cc_temp in $*""; do
  8299. case $cc_temp in
  8300. compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
  8301. distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
  8302. \-*) ;;
  8303. *) break;;
  8304. esac
  8305. done
  8306. func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
  8307. }
  8308. # Check whether --enable-libtool-lock was given.
  8309. if test "${enable_libtool_lock+set}" = set; then :
  8310. enableval=$enable_libtool_lock;
  8311. fi
  8312. test no = "$enable_libtool_lock" || enable_libtool_lock=yes
  8313. # Some flags need to be propagated to the compiler or linker for good
  8314. # libtool support.
  8315. case $host in
  8316. ia64-*-hpux*)
  8317. # Find out what ABI is being produced by ac_compile, and set mode
  8318. # options accordingly.
  8319. echo 'int i;' > conftest.$ac_ext
  8320. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  8321. (eval $ac_compile) 2>&5
  8322. ac_status=$?
  8323. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  8324. test $ac_status = 0; }; then
  8325. case `/usr/bin/file conftest.$ac_objext` in
  8326. *ELF-32*)
  8327. HPUX_IA64_MODE=32
  8328. ;;
  8329. *ELF-64*)
  8330. HPUX_IA64_MODE=64
  8331. ;;
  8332. esac
  8333. fi
  8334. rm -rf conftest*
  8335. ;;
  8336. *-*-irix6*)
  8337. # Find out what ABI is being produced by ac_compile, and set linker
  8338. # options accordingly.
  8339. echo '#line '$LINENO' "configure"' > conftest.$ac_ext
  8340. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  8341. (eval $ac_compile) 2>&5
  8342. ac_status=$?
  8343. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  8344. test $ac_status = 0; }; then
  8345. if test yes = "$lt_cv_prog_gnu_ld"; then
  8346. case `/usr/bin/file conftest.$ac_objext` in
  8347. *32-bit*)
  8348. LD="${LD-ld} -melf32bsmip"
  8349. ;;
  8350. *N32*)
  8351. LD="${LD-ld} -melf32bmipn32"
  8352. ;;
  8353. *64-bit*)
  8354. LD="${LD-ld} -melf64bmip"
  8355. ;;
  8356. esac
  8357. else
  8358. case `/usr/bin/file conftest.$ac_objext` in
  8359. *32-bit*)
  8360. LD="${LD-ld} -32"
  8361. ;;
  8362. *N32*)
  8363. LD="${LD-ld} -n32"
  8364. ;;
  8365. *64-bit*)
  8366. LD="${LD-ld} -64"
  8367. ;;
  8368. esac
  8369. fi
  8370. fi
  8371. rm -rf conftest*
  8372. ;;
  8373. mips64*-*linux*)
  8374. # Find out what ABI is being produced by ac_compile, and set linker
  8375. # options accordingly.
  8376. echo '#line '$LINENO' "configure"' > conftest.$ac_ext
  8377. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  8378. (eval $ac_compile) 2>&5
  8379. ac_status=$?
  8380. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  8381. test $ac_status = 0; }; then
  8382. emul=elf
  8383. case `/usr/bin/file conftest.$ac_objext` in
  8384. *32-bit*)
  8385. emul="${emul}32"
  8386. ;;
  8387. *64-bit*)
  8388. emul="${emul}64"
  8389. ;;
  8390. esac
  8391. case `/usr/bin/file conftest.$ac_objext` in
  8392. *MSB*)
  8393. emul="${emul}btsmip"
  8394. ;;
  8395. *LSB*)
  8396. emul="${emul}ltsmip"
  8397. ;;
  8398. esac
  8399. case `/usr/bin/file conftest.$ac_objext` in
  8400. *N32*)
  8401. emul="${emul}n32"
  8402. ;;
  8403. esac
  8404. LD="${LD-ld} -m $emul"
  8405. fi
  8406. rm -rf conftest*
  8407. ;;
  8408. x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
  8409. s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
  8410. # Find out what ABI is being produced by ac_compile, and set linker
  8411. # options accordingly. Note that the listed cases only cover the
  8412. # situations where additional linker options are needed (such as when
  8413. # doing 32-bit compilation for a host where ld defaults to 64-bit, or
  8414. # vice versa); the common cases where no linker options are needed do
  8415. # not appear in the list.
  8416. echo 'int i;' > conftest.$ac_ext
  8417. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  8418. (eval $ac_compile) 2>&5
  8419. ac_status=$?
  8420. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  8421. test $ac_status = 0; }; then
  8422. case `/usr/bin/file conftest.o` in
  8423. *32-bit*)
  8424. case $host in
  8425. x86_64-*kfreebsd*-gnu)
  8426. LD="${LD-ld} -m elf_i386_fbsd"
  8427. ;;
  8428. x86_64-*linux*)
  8429. case `/usr/bin/file conftest.o` in
  8430. *x86-64*)
  8431. LD="${LD-ld} -m elf32_x86_64"
  8432. ;;
  8433. *)
  8434. LD="${LD-ld} -m elf_i386"
  8435. ;;
  8436. esac
  8437. ;;
  8438. powerpc64le-*linux*)
  8439. LD="${LD-ld} -m elf32lppclinux"
  8440. ;;
  8441. powerpc64-*linux*)
  8442. LD="${LD-ld} -m elf32ppclinux"
  8443. ;;
  8444. s390x-*linux*)
  8445. LD="${LD-ld} -m elf_s390"
  8446. ;;
  8447. sparc64-*linux*)
  8448. LD="${LD-ld} -m elf32_sparc"
  8449. ;;
  8450. esac
  8451. ;;
  8452. *64-bit*)
  8453. case $host in
  8454. x86_64-*kfreebsd*-gnu)
  8455. LD="${LD-ld} -m elf_x86_64_fbsd"
  8456. ;;
  8457. x86_64-*linux*)
  8458. LD="${LD-ld} -m elf_x86_64"
  8459. ;;
  8460. powerpcle-*linux*)
  8461. LD="${LD-ld} -m elf64lppc"
  8462. ;;
  8463. powerpc-*linux*)
  8464. LD="${LD-ld} -m elf64ppc"
  8465. ;;
  8466. s390*-*linux*|s390*-*tpf*)
  8467. LD="${LD-ld} -m elf64_s390"
  8468. ;;
  8469. sparc*-*linux*)
  8470. LD="${LD-ld} -m elf64_sparc"
  8471. ;;
  8472. esac
  8473. ;;
  8474. esac
  8475. fi
  8476. rm -rf conftest*
  8477. ;;
  8478. *-*-sco3.2v5*)
  8479. # On SCO OpenServer 5, we need -belf to get full-featured binaries.
  8480. SAVE_CFLAGS=$CFLAGS
  8481. CFLAGS="$CFLAGS -belf"
  8482. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
  8483. $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
  8484. if ${lt_cv_cc_needs_belf+:} false; then :
  8485. $as_echo_n "(cached) " >&6
  8486. else
  8487. ac_ext=c
  8488. ac_cpp='$CPP $CPPFLAGS'
  8489. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  8490. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  8491. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  8492. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  8493. /* end confdefs.h. */
  8494. int
  8495. main ()
  8496. {
  8497. ;
  8498. return 0;
  8499. }
  8500. _ACEOF
  8501. if ac_fn_c_try_link "$LINENO"; then :
  8502. lt_cv_cc_needs_belf=yes
  8503. else
  8504. lt_cv_cc_needs_belf=no
  8505. fi
  8506. rm -f core conftest.err conftest.$ac_objext \
  8507. conftest$ac_exeext conftest.$ac_ext
  8508. ac_ext=c
  8509. ac_cpp='$CPP $CPPFLAGS'
  8510. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  8511. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  8512. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  8513. fi
  8514. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
  8515. $as_echo "$lt_cv_cc_needs_belf" >&6; }
  8516. if test yes != "$lt_cv_cc_needs_belf"; then
  8517. # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
  8518. CFLAGS=$SAVE_CFLAGS
  8519. fi
  8520. ;;
  8521. *-*solaris*)
  8522. # Find out what ABI is being produced by ac_compile, and set linker
  8523. # options accordingly.
  8524. echo 'int i;' > conftest.$ac_ext
  8525. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  8526. (eval $ac_compile) 2>&5
  8527. ac_status=$?
  8528. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  8529. test $ac_status = 0; }; then
  8530. case `/usr/bin/file conftest.o` in
  8531. *64-bit*)
  8532. case $lt_cv_prog_gnu_ld in
  8533. yes*)
  8534. case $host in
  8535. i?86-*-solaris*|x86_64-*-solaris*)
  8536. LD="${LD-ld} -m elf_x86_64"
  8537. ;;
  8538. sparc*-*-solaris*)
  8539. LD="${LD-ld} -m elf64_sparc"
  8540. ;;
  8541. esac
  8542. # GNU ld 2.21 introduced _sol2 emulations. Use them if available.
  8543. if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
  8544. LD=${LD-ld}_sol2
  8545. fi
  8546. ;;
  8547. *)
  8548. if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
  8549. LD="${LD-ld} -64"
  8550. fi
  8551. ;;
  8552. esac
  8553. ;;
  8554. esac
  8555. fi
  8556. rm -rf conftest*
  8557. ;;
  8558. esac
  8559. need_locks=$enable_libtool_lock
  8560. if test -n "$ac_tool_prefix"; then
  8561. # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
  8562. set dummy ${ac_tool_prefix}mt; ac_word=$2
  8563. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  8564. $as_echo_n "checking for $ac_word... " >&6; }
  8565. if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
  8566. $as_echo_n "(cached) " >&6
  8567. else
  8568. if test -n "$MANIFEST_TOOL"; then
  8569. ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
  8570. else
  8571. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  8572. for as_dir in $PATH
  8573. do
  8574. IFS=$as_save_IFS
  8575. test -z "$as_dir" && as_dir=.
  8576. for ac_exec_ext in '' $ac_executable_extensions; do
  8577. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  8578. ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
  8579. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  8580. break 2
  8581. fi
  8582. done
  8583. done
  8584. IFS=$as_save_IFS
  8585. fi
  8586. fi
  8587. MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
  8588. if test -n "$MANIFEST_TOOL"; then
  8589. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
  8590. $as_echo "$MANIFEST_TOOL" >&6; }
  8591. else
  8592. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  8593. $as_echo "no" >&6; }
  8594. fi
  8595. fi
  8596. if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
  8597. ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
  8598. # Extract the first word of "mt", so it can be a program name with args.
  8599. set dummy mt; ac_word=$2
  8600. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  8601. $as_echo_n "checking for $ac_word... " >&6; }
  8602. if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
  8603. $as_echo_n "(cached) " >&6
  8604. else
  8605. if test -n "$ac_ct_MANIFEST_TOOL"; then
  8606. ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
  8607. else
  8608. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  8609. for as_dir in $PATH
  8610. do
  8611. IFS=$as_save_IFS
  8612. test -z "$as_dir" && as_dir=.
  8613. for ac_exec_ext in '' $ac_executable_extensions; do
  8614. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  8615. ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
  8616. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  8617. break 2
  8618. fi
  8619. done
  8620. done
  8621. IFS=$as_save_IFS
  8622. fi
  8623. fi
  8624. ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
  8625. if test -n "$ac_ct_MANIFEST_TOOL"; then
  8626. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
  8627. $as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
  8628. else
  8629. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  8630. $as_echo "no" >&6; }
  8631. fi
  8632. if test "x$ac_ct_MANIFEST_TOOL" = x; then
  8633. MANIFEST_TOOL=":"
  8634. else
  8635. case $cross_compiling:$ac_tool_warned in
  8636. yes:)
  8637. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  8638. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  8639. ac_tool_warned=yes ;;
  8640. esac
  8641. MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
  8642. fi
  8643. else
  8644. MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
  8645. fi
  8646. test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
  8647. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
  8648. $as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
  8649. if ${lt_cv_path_mainfest_tool+:} false; then :
  8650. $as_echo_n "(cached) " >&6
  8651. else
  8652. lt_cv_path_mainfest_tool=no
  8653. echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
  8654. $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
  8655. cat conftest.err >&5
  8656. if $GREP 'Manifest Tool' conftest.out > /dev/null; then
  8657. lt_cv_path_mainfest_tool=yes
  8658. fi
  8659. rm -f conftest*
  8660. fi
  8661. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
  8662. $as_echo "$lt_cv_path_mainfest_tool" >&6; }
  8663. if test yes != "$lt_cv_path_mainfest_tool"; then
  8664. MANIFEST_TOOL=:
  8665. fi
  8666. case $host_os in
  8667. rhapsody* | darwin*)
  8668. if test -n "$ac_tool_prefix"; then
  8669. # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
  8670. set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
  8671. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  8672. $as_echo_n "checking for $ac_word... " >&6; }
  8673. if ${ac_cv_prog_DSYMUTIL+:} false; then :
  8674. $as_echo_n "(cached) " >&6
  8675. else
  8676. if test -n "$DSYMUTIL"; then
  8677. ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
  8678. else
  8679. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  8680. for as_dir in $PATH
  8681. do
  8682. IFS=$as_save_IFS
  8683. test -z "$as_dir" && as_dir=.
  8684. for ac_exec_ext in '' $ac_executable_extensions; do
  8685. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  8686. ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
  8687. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  8688. break 2
  8689. fi
  8690. done
  8691. done
  8692. IFS=$as_save_IFS
  8693. fi
  8694. fi
  8695. DSYMUTIL=$ac_cv_prog_DSYMUTIL
  8696. if test -n "$DSYMUTIL"; then
  8697. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
  8698. $as_echo "$DSYMUTIL" >&6; }
  8699. else
  8700. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  8701. $as_echo "no" >&6; }
  8702. fi
  8703. fi
  8704. if test -z "$ac_cv_prog_DSYMUTIL"; then
  8705. ac_ct_DSYMUTIL=$DSYMUTIL
  8706. # Extract the first word of "dsymutil", so it can be a program name with args.
  8707. set dummy dsymutil; ac_word=$2
  8708. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  8709. $as_echo_n "checking for $ac_word... " >&6; }
  8710. if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
  8711. $as_echo_n "(cached) " >&6
  8712. else
  8713. if test -n "$ac_ct_DSYMUTIL"; then
  8714. ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
  8715. else
  8716. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  8717. for as_dir in $PATH
  8718. do
  8719. IFS=$as_save_IFS
  8720. test -z "$as_dir" && as_dir=.
  8721. for ac_exec_ext in '' $ac_executable_extensions; do
  8722. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  8723. ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
  8724. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  8725. break 2
  8726. fi
  8727. done
  8728. done
  8729. IFS=$as_save_IFS
  8730. fi
  8731. fi
  8732. ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
  8733. if test -n "$ac_ct_DSYMUTIL"; then
  8734. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
  8735. $as_echo "$ac_ct_DSYMUTIL" >&6; }
  8736. else
  8737. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  8738. $as_echo "no" >&6; }
  8739. fi
  8740. if test "x$ac_ct_DSYMUTIL" = x; then
  8741. DSYMUTIL=":"
  8742. else
  8743. case $cross_compiling:$ac_tool_warned in
  8744. yes:)
  8745. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  8746. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  8747. ac_tool_warned=yes ;;
  8748. esac
  8749. DSYMUTIL=$ac_ct_DSYMUTIL
  8750. fi
  8751. else
  8752. DSYMUTIL="$ac_cv_prog_DSYMUTIL"
  8753. fi
  8754. if test -n "$ac_tool_prefix"; then
  8755. # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
  8756. set dummy ${ac_tool_prefix}nmedit; ac_word=$2
  8757. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  8758. $as_echo_n "checking for $ac_word... " >&6; }
  8759. if ${ac_cv_prog_NMEDIT+:} false; then :
  8760. $as_echo_n "(cached) " >&6
  8761. else
  8762. if test -n "$NMEDIT"; then
  8763. ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
  8764. else
  8765. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  8766. for as_dir in $PATH
  8767. do
  8768. IFS=$as_save_IFS
  8769. test -z "$as_dir" && as_dir=.
  8770. for ac_exec_ext in '' $ac_executable_extensions; do
  8771. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  8772. ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
  8773. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  8774. break 2
  8775. fi
  8776. done
  8777. done
  8778. IFS=$as_save_IFS
  8779. fi
  8780. fi
  8781. NMEDIT=$ac_cv_prog_NMEDIT
  8782. if test -n "$NMEDIT"; then
  8783. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
  8784. $as_echo "$NMEDIT" >&6; }
  8785. else
  8786. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  8787. $as_echo "no" >&6; }
  8788. fi
  8789. fi
  8790. if test -z "$ac_cv_prog_NMEDIT"; then
  8791. ac_ct_NMEDIT=$NMEDIT
  8792. # Extract the first word of "nmedit", so it can be a program name with args.
  8793. set dummy nmedit; ac_word=$2
  8794. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  8795. $as_echo_n "checking for $ac_word... " >&6; }
  8796. if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
  8797. $as_echo_n "(cached) " >&6
  8798. else
  8799. if test -n "$ac_ct_NMEDIT"; then
  8800. ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
  8801. else
  8802. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  8803. for as_dir in $PATH
  8804. do
  8805. IFS=$as_save_IFS
  8806. test -z "$as_dir" && as_dir=.
  8807. for ac_exec_ext in '' $ac_executable_extensions; do
  8808. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  8809. ac_cv_prog_ac_ct_NMEDIT="nmedit"
  8810. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  8811. break 2
  8812. fi
  8813. done
  8814. done
  8815. IFS=$as_save_IFS
  8816. fi
  8817. fi
  8818. ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
  8819. if test -n "$ac_ct_NMEDIT"; then
  8820. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
  8821. $as_echo "$ac_ct_NMEDIT" >&6; }
  8822. else
  8823. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  8824. $as_echo "no" >&6; }
  8825. fi
  8826. if test "x$ac_ct_NMEDIT" = x; then
  8827. NMEDIT=":"
  8828. else
  8829. case $cross_compiling:$ac_tool_warned in
  8830. yes:)
  8831. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  8832. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  8833. ac_tool_warned=yes ;;
  8834. esac
  8835. NMEDIT=$ac_ct_NMEDIT
  8836. fi
  8837. else
  8838. NMEDIT="$ac_cv_prog_NMEDIT"
  8839. fi
  8840. if test -n "$ac_tool_prefix"; then
  8841. # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
  8842. set dummy ${ac_tool_prefix}lipo; ac_word=$2
  8843. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  8844. $as_echo_n "checking for $ac_word... " >&6; }
  8845. if ${ac_cv_prog_LIPO+:} false; then :
  8846. $as_echo_n "(cached) " >&6
  8847. else
  8848. if test -n "$LIPO"; then
  8849. ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
  8850. else
  8851. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  8852. for as_dir in $PATH
  8853. do
  8854. IFS=$as_save_IFS
  8855. test -z "$as_dir" && as_dir=.
  8856. for ac_exec_ext in '' $ac_executable_extensions; do
  8857. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  8858. ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
  8859. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  8860. break 2
  8861. fi
  8862. done
  8863. done
  8864. IFS=$as_save_IFS
  8865. fi
  8866. fi
  8867. LIPO=$ac_cv_prog_LIPO
  8868. if test -n "$LIPO"; then
  8869. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
  8870. $as_echo "$LIPO" >&6; }
  8871. else
  8872. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  8873. $as_echo "no" >&6; }
  8874. fi
  8875. fi
  8876. if test -z "$ac_cv_prog_LIPO"; then
  8877. ac_ct_LIPO=$LIPO
  8878. # Extract the first word of "lipo", so it can be a program name with args.
  8879. set dummy lipo; ac_word=$2
  8880. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  8881. $as_echo_n "checking for $ac_word... " >&6; }
  8882. if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
  8883. $as_echo_n "(cached) " >&6
  8884. else
  8885. if test -n "$ac_ct_LIPO"; then
  8886. ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
  8887. else
  8888. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  8889. for as_dir in $PATH
  8890. do
  8891. IFS=$as_save_IFS
  8892. test -z "$as_dir" && as_dir=.
  8893. for ac_exec_ext in '' $ac_executable_extensions; do
  8894. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  8895. ac_cv_prog_ac_ct_LIPO="lipo"
  8896. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  8897. break 2
  8898. fi
  8899. done
  8900. done
  8901. IFS=$as_save_IFS
  8902. fi
  8903. fi
  8904. ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
  8905. if test -n "$ac_ct_LIPO"; then
  8906. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
  8907. $as_echo "$ac_ct_LIPO" >&6; }
  8908. else
  8909. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  8910. $as_echo "no" >&6; }
  8911. fi
  8912. if test "x$ac_ct_LIPO" = x; then
  8913. LIPO=":"
  8914. else
  8915. case $cross_compiling:$ac_tool_warned in
  8916. yes:)
  8917. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  8918. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  8919. ac_tool_warned=yes ;;
  8920. esac
  8921. LIPO=$ac_ct_LIPO
  8922. fi
  8923. else
  8924. LIPO="$ac_cv_prog_LIPO"
  8925. fi
  8926. if test -n "$ac_tool_prefix"; then
  8927. # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
  8928. set dummy ${ac_tool_prefix}otool; ac_word=$2
  8929. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  8930. $as_echo_n "checking for $ac_word... " >&6; }
  8931. if ${ac_cv_prog_OTOOL+:} false; then :
  8932. $as_echo_n "(cached) " >&6
  8933. else
  8934. if test -n "$OTOOL"; then
  8935. ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
  8936. else
  8937. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  8938. for as_dir in $PATH
  8939. do
  8940. IFS=$as_save_IFS
  8941. test -z "$as_dir" && as_dir=.
  8942. for ac_exec_ext in '' $ac_executable_extensions; do
  8943. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  8944. ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
  8945. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  8946. break 2
  8947. fi
  8948. done
  8949. done
  8950. IFS=$as_save_IFS
  8951. fi
  8952. fi
  8953. OTOOL=$ac_cv_prog_OTOOL
  8954. if test -n "$OTOOL"; then
  8955. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
  8956. $as_echo "$OTOOL" >&6; }
  8957. else
  8958. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  8959. $as_echo "no" >&6; }
  8960. fi
  8961. fi
  8962. if test -z "$ac_cv_prog_OTOOL"; then
  8963. ac_ct_OTOOL=$OTOOL
  8964. # Extract the first word of "otool", so it can be a program name with args.
  8965. set dummy otool; ac_word=$2
  8966. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  8967. $as_echo_n "checking for $ac_word... " >&6; }
  8968. if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
  8969. $as_echo_n "(cached) " >&6
  8970. else
  8971. if test -n "$ac_ct_OTOOL"; then
  8972. ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
  8973. else
  8974. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  8975. for as_dir in $PATH
  8976. do
  8977. IFS=$as_save_IFS
  8978. test -z "$as_dir" && as_dir=.
  8979. for ac_exec_ext in '' $ac_executable_extensions; do
  8980. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  8981. ac_cv_prog_ac_ct_OTOOL="otool"
  8982. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  8983. break 2
  8984. fi
  8985. done
  8986. done
  8987. IFS=$as_save_IFS
  8988. fi
  8989. fi
  8990. ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
  8991. if test -n "$ac_ct_OTOOL"; then
  8992. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
  8993. $as_echo "$ac_ct_OTOOL" >&6; }
  8994. else
  8995. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  8996. $as_echo "no" >&6; }
  8997. fi
  8998. if test "x$ac_ct_OTOOL" = x; then
  8999. OTOOL=":"
  9000. else
  9001. case $cross_compiling:$ac_tool_warned in
  9002. yes:)
  9003. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  9004. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  9005. ac_tool_warned=yes ;;
  9006. esac
  9007. OTOOL=$ac_ct_OTOOL
  9008. fi
  9009. else
  9010. OTOOL="$ac_cv_prog_OTOOL"
  9011. fi
  9012. if test -n "$ac_tool_prefix"; then
  9013. # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
  9014. set dummy ${ac_tool_prefix}otool64; ac_word=$2
  9015. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  9016. $as_echo_n "checking for $ac_word... " >&6; }
  9017. if ${ac_cv_prog_OTOOL64+:} false; then :
  9018. $as_echo_n "(cached) " >&6
  9019. else
  9020. if test -n "$OTOOL64"; then
  9021. ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
  9022. else
  9023. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  9024. for as_dir in $PATH
  9025. do
  9026. IFS=$as_save_IFS
  9027. test -z "$as_dir" && as_dir=.
  9028. for ac_exec_ext in '' $ac_executable_extensions; do
  9029. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  9030. ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
  9031. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  9032. break 2
  9033. fi
  9034. done
  9035. done
  9036. IFS=$as_save_IFS
  9037. fi
  9038. fi
  9039. OTOOL64=$ac_cv_prog_OTOOL64
  9040. if test -n "$OTOOL64"; then
  9041. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
  9042. $as_echo "$OTOOL64" >&6; }
  9043. else
  9044. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  9045. $as_echo "no" >&6; }
  9046. fi
  9047. fi
  9048. if test -z "$ac_cv_prog_OTOOL64"; then
  9049. ac_ct_OTOOL64=$OTOOL64
  9050. # Extract the first word of "otool64", so it can be a program name with args.
  9051. set dummy otool64; ac_word=$2
  9052. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  9053. $as_echo_n "checking for $ac_word... " >&6; }
  9054. if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
  9055. $as_echo_n "(cached) " >&6
  9056. else
  9057. if test -n "$ac_ct_OTOOL64"; then
  9058. ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
  9059. else
  9060. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  9061. for as_dir in $PATH
  9062. do
  9063. IFS=$as_save_IFS
  9064. test -z "$as_dir" && as_dir=.
  9065. for ac_exec_ext in '' $ac_executable_extensions; do
  9066. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  9067. ac_cv_prog_ac_ct_OTOOL64="otool64"
  9068. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  9069. break 2
  9070. fi
  9071. done
  9072. done
  9073. IFS=$as_save_IFS
  9074. fi
  9075. fi
  9076. ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
  9077. if test -n "$ac_ct_OTOOL64"; then
  9078. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
  9079. $as_echo "$ac_ct_OTOOL64" >&6; }
  9080. else
  9081. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  9082. $as_echo "no" >&6; }
  9083. fi
  9084. if test "x$ac_ct_OTOOL64" = x; then
  9085. OTOOL64=":"
  9086. else
  9087. case $cross_compiling:$ac_tool_warned in
  9088. yes:)
  9089. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  9090. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  9091. ac_tool_warned=yes ;;
  9092. esac
  9093. OTOOL64=$ac_ct_OTOOL64
  9094. fi
  9095. else
  9096. OTOOL64="$ac_cv_prog_OTOOL64"
  9097. fi
  9098. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
  9099. $as_echo_n "checking for -single_module linker flag... " >&6; }
  9100. if ${lt_cv_apple_cc_single_mod+:} false; then :
  9101. $as_echo_n "(cached) " >&6
  9102. else
  9103. lt_cv_apple_cc_single_mod=no
  9104. if test -z "$LT_MULTI_MODULE"; then
  9105. # By default we will add the -single_module flag. You can override
  9106. # by either setting the environment variable LT_MULTI_MODULE
  9107. # non-empty at configure time, or by adding -multi_module to the
  9108. # link flags.
  9109. rm -rf libconftest.dylib*
  9110. echo "int foo(void){return 1;}" > conftest.c
  9111. echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
  9112. -dynamiclib -Wl,-single_module conftest.c" >&5
  9113. $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
  9114. -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
  9115. _lt_result=$?
  9116. # If there is a non-empty error log, and "single_module"
  9117. # appears in it, assume the flag caused a linker warning
  9118. if test -s conftest.err && $GREP single_module conftest.err; then
  9119. cat conftest.err >&5
  9120. # Otherwise, if the output was created with a 0 exit code from
  9121. # the compiler, it worked.
  9122. elif test -f libconftest.dylib && test 0 = "$_lt_result"; then
  9123. lt_cv_apple_cc_single_mod=yes
  9124. else
  9125. cat conftest.err >&5
  9126. fi
  9127. rm -rf libconftest.dylib*
  9128. rm -f conftest.*
  9129. fi
  9130. fi
  9131. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
  9132. $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
  9133. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
  9134. $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
  9135. if ${lt_cv_ld_exported_symbols_list+:} false; then :
  9136. $as_echo_n "(cached) " >&6
  9137. else
  9138. lt_cv_ld_exported_symbols_list=no
  9139. save_LDFLAGS=$LDFLAGS
  9140. echo "_main" > conftest.sym
  9141. LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
  9142. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9143. /* end confdefs.h. */
  9144. int
  9145. main ()
  9146. {
  9147. ;
  9148. return 0;
  9149. }
  9150. _ACEOF
  9151. if ac_fn_c_try_link "$LINENO"; then :
  9152. lt_cv_ld_exported_symbols_list=yes
  9153. else
  9154. lt_cv_ld_exported_symbols_list=no
  9155. fi
  9156. rm -f core conftest.err conftest.$ac_objext \
  9157. conftest$ac_exeext conftest.$ac_ext
  9158. LDFLAGS=$save_LDFLAGS
  9159. fi
  9160. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
  9161. $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
  9162. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
  9163. $as_echo_n "checking for -force_load linker flag... " >&6; }
  9164. if ${lt_cv_ld_force_load+:} false; then :
  9165. $as_echo_n "(cached) " >&6
  9166. else
  9167. lt_cv_ld_force_load=no
  9168. cat > conftest.c << _LT_EOF
  9169. int forced_loaded() { return 2;}
  9170. _LT_EOF
  9171. echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
  9172. $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
  9173. echo "$AR cru libconftest.a conftest.o" >&5
  9174. $AR cru libconftest.a conftest.o 2>&5
  9175. echo "$RANLIB libconftest.a" >&5
  9176. $RANLIB libconftest.a 2>&5
  9177. cat > conftest.c << _LT_EOF
  9178. int main() { return 0;}
  9179. _LT_EOF
  9180. echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
  9181. $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
  9182. _lt_result=$?
  9183. if test -s conftest.err && $GREP force_load conftest.err; then
  9184. cat conftest.err >&5
  9185. elif test -f conftest && test 0 = "$_lt_result" && $GREP forced_load conftest >/dev/null 2>&1; then
  9186. lt_cv_ld_force_load=yes
  9187. else
  9188. cat conftest.err >&5
  9189. fi
  9190. rm -f conftest.err libconftest.a conftest conftest.c
  9191. rm -rf conftest.dSYM
  9192. fi
  9193. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
  9194. $as_echo "$lt_cv_ld_force_load" >&6; }
  9195. case $host_os in
  9196. rhapsody* | darwin1.[012])
  9197. _lt_dar_allow_undefined='$wl-undefined ${wl}suppress' ;;
  9198. darwin1.*)
  9199. _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
  9200. darwin*) # darwin 5.x on
  9201. # if running on 10.5 or later, the deployment target defaults
  9202. # to the OS version, if on x86, and 10.4, the deployment
  9203. # target defaults to 10.4. Don't you love it?
  9204. case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
  9205. 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
  9206. _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
  9207. 10.[012][,.]*)
  9208. _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
  9209. 10.*)
  9210. _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
  9211. esac
  9212. ;;
  9213. esac
  9214. if test yes = "$lt_cv_apple_cc_single_mod"; then
  9215. _lt_dar_single_mod='$single_module'
  9216. fi
  9217. if test yes = "$lt_cv_ld_exported_symbols_list"; then
  9218. _lt_dar_export_syms=' $wl-exported_symbols_list,$output_objdir/$libname-symbols.expsym'
  9219. else
  9220. _lt_dar_export_syms='~$NMEDIT -s $output_objdir/$libname-symbols.expsym $lib'
  9221. fi
  9222. if test : != "$DSYMUTIL" && test no = "$lt_cv_ld_force_load"; then
  9223. _lt_dsymutil='~$DSYMUTIL $lib || :'
  9224. else
  9225. _lt_dsymutil=
  9226. fi
  9227. ;;
  9228. esac
  9229. # func_munge_path_list VARIABLE PATH
  9230. # -----------------------------------
  9231. # VARIABLE is name of variable containing _space_ separated list of
  9232. # directories to be munged by the contents of PATH, which is string
  9233. # having a format:
  9234. # "DIR[:DIR]:"
  9235. # string "DIR[ DIR]" will be prepended to VARIABLE
  9236. # ":DIR[:DIR]"
  9237. # string "DIR[ DIR]" will be appended to VARIABLE
  9238. # "DIRP[:DIRP]::[DIRA:]DIRA"
  9239. # string "DIRP[ DIRP]" will be prepended to VARIABLE and string
  9240. # "DIRA[ DIRA]" will be appended to VARIABLE
  9241. # "DIR[:DIR]"
  9242. # VARIABLE will be replaced by "DIR[ DIR]"
  9243. func_munge_path_list ()
  9244. {
  9245. case x$2 in
  9246. x)
  9247. ;;
  9248. *:)
  9249. eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
  9250. ;;
  9251. x:*)
  9252. eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
  9253. ;;
  9254. *::*)
  9255. eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
  9256. eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
  9257. ;;
  9258. *)
  9259. eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
  9260. ;;
  9261. esac
  9262. }
  9263. for ac_header in dlfcn.h
  9264. do :
  9265. ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
  9266. "
  9267. if test "x$ac_cv_header_dlfcn_h" = xyes; then :
  9268. cat >>confdefs.h <<_ACEOF
  9269. #define HAVE_DLFCN_H 1
  9270. _ACEOF
  9271. fi
  9272. done
  9273. # Set options
  9274. enable_dlopen=no
  9275. enable_win32_dll=no
  9276. # Check whether --enable-static was given.
  9277. if test "${enable_static+set}" = set; then :
  9278. enableval=$enable_static; p=${PACKAGE-default}
  9279. case $enableval in
  9280. yes) enable_static=yes ;;
  9281. no) enable_static=no ;;
  9282. *)
  9283. enable_static=no
  9284. # Look at the argument we got. We use all the common list separators.
  9285. lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
  9286. for pkg in $enableval; do
  9287. IFS=$lt_save_ifs
  9288. if test "X$pkg" = "X$p"; then
  9289. enable_static=yes
  9290. fi
  9291. done
  9292. IFS=$lt_save_ifs
  9293. ;;
  9294. esac
  9295. else
  9296. enable_static=yes
  9297. fi
  9298. # Check whether --with-pic was given.
  9299. if test "${with_pic+set}" = set; then :
  9300. withval=$with_pic; lt_p=${PACKAGE-default}
  9301. case $withval in
  9302. yes|no) pic_mode=$withval ;;
  9303. *)
  9304. pic_mode=default
  9305. # Look at the argument we got. We use all the common list separators.
  9306. lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
  9307. for lt_pkg in $withval; do
  9308. IFS=$lt_save_ifs
  9309. if test "X$lt_pkg" = "X$lt_p"; then
  9310. pic_mode=yes
  9311. fi
  9312. done
  9313. IFS=$lt_save_ifs
  9314. ;;
  9315. esac
  9316. else
  9317. pic_mode=default
  9318. fi
  9319. # Check whether --enable-fast-install was given.
  9320. if test "${enable_fast_install+set}" = set; then :
  9321. enableval=$enable_fast_install; p=${PACKAGE-default}
  9322. case $enableval in
  9323. yes) enable_fast_install=yes ;;
  9324. no) enable_fast_install=no ;;
  9325. *)
  9326. enable_fast_install=no
  9327. # Look at the argument we got. We use all the common list separators.
  9328. lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
  9329. for pkg in $enableval; do
  9330. IFS=$lt_save_ifs
  9331. if test "X$pkg" = "X$p"; then
  9332. enable_fast_install=yes
  9333. fi
  9334. done
  9335. IFS=$lt_save_ifs
  9336. ;;
  9337. esac
  9338. else
  9339. enable_fast_install=yes
  9340. fi
  9341. shared_archive_member_spec=
  9342. case $host,$enable_shared in
  9343. power*-*-aix[5-9]*,yes)
  9344. { $as_echo "$as_me:${as_lineno-$LINENO}: checking which variant of shared library versioning to provide" >&5
  9345. $as_echo_n "checking which variant of shared library versioning to provide... " >&6; }
  9346. # Check whether --with-aix-soname was given.
  9347. if test "${with_aix_soname+set}" = set; then :
  9348. withval=$with_aix_soname; case $withval in
  9349. aix|svr4|both)
  9350. ;;
  9351. *)
  9352. as_fn_error $? "Unknown argument to --with-aix-soname" "$LINENO" 5
  9353. ;;
  9354. esac
  9355. lt_cv_with_aix_soname=$with_aix_soname
  9356. else
  9357. if ${lt_cv_with_aix_soname+:} false; then :
  9358. $as_echo_n "(cached) " >&6
  9359. else
  9360. lt_cv_with_aix_soname=aix
  9361. fi
  9362. with_aix_soname=$lt_cv_with_aix_soname
  9363. fi
  9364. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_aix_soname" >&5
  9365. $as_echo "$with_aix_soname" >&6; }
  9366. if test aix != "$with_aix_soname"; then
  9367. # For the AIX way of multilib, we name the shared archive member
  9368. # based on the bitwidth used, traditionally 'shr.o' or 'shr_64.o',
  9369. # and 'shr.imp' or 'shr_64.imp', respectively, for the Import File.
  9370. # Even when GNU compilers ignore OBJECT_MODE but need '-maix64' flag,
  9371. # the AIX toolchain works better with OBJECT_MODE set (default 32).
  9372. if test 64 = "${OBJECT_MODE-32}"; then
  9373. shared_archive_member_spec=shr_64
  9374. else
  9375. shared_archive_member_spec=shr
  9376. fi
  9377. fi
  9378. ;;
  9379. *)
  9380. with_aix_soname=aix
  9381. ;;
  9382. esac
  9383. # This can be used to rebuild libtool when needed
  9384. LIBTOOL_DEPS=$ltmain
  9385. # Always use our own libtool.
  9386. LIBTOOL='$(SHELL) $(top_builddir)/libtool'
  9387. test -z "$LN_S" && LN_S="ln -s"
  9388. if test -n "${ZSH_VERSION+set}"; then
  9389. setopt NO_GLOB_SUBST
  9390. fi
  9391. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
  9392. $as_echo_n "checking for objdir... " >&6; }
  9393. if ${lt_cv_objdir+:} false; then :
  9394. $as_echo_n "(cached) " >&6
  9395. else
  9396. rm -f .libs 2>/dev/null
  9397. mkdir .libs 2>/dev/null
  9398. if test -d .libs; then
  9399. lt_cv_objdir=.libs
  9400. else
  9401. # MS-DOS does not allow filenames that begin with a dot.
  9402. lt_cv_objdir=_libs
  9403. fi
  9404. rmdir .libs 2>/dev/null
  9405. fi
  9406. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
  9407. $as_echo "$lt_cv_objdir" >&6; }
  9408. objdir=$lt_cv_objdir
  9409. cat >>confdefs.h <<_ACEOF
  9410. #define LT_OBJDIR "$lt_cv_objdir/"
  9411. _ACEOF
  9412. case $host_os in
  9413. aix3*)
  9414. # AIX sometimes has problems with the GCC collect2 program. For some
  9415. # reason, if we set the COLLECT_NAMES environment variable, the problems
  9416. # vanish in a puff of smoke.
  9417. if test set != "${COLLECT_NAMES+set}"; then
  9418. COLLECT_NAMES=
  9419. export COLLECT_NAMES
  9420. fi
  9421. ;;
  9422. esac
  9423. # Global variables:
  9424. ofile=libtool
  9425. can_build_shared=yes
  9426. # All known linkers require a '.a' archive for static linking (except MSVC,
  9427. # which needs '.lib').
  9428. libext=a
  9429. with_gnu_ld=$lt_cv_prog_gnu_ld
  9430. old_CC=$CC
  9431. old_CFLAGS=$CFLAGS
  9432. # Set sane defaults for various variables
  9433. test -z "$CC" && CC=cc
  9434. test -z "$LTCC" && LTCC=$CC
  9435. test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
  9436. test -z "$LD" && LD=ld
  9437. test -z "$ac_objext" && ac_objext=o
  9438. func_cc_basename $compiler
  9439. cc_basename=$func_cc_basename_result
  9440. # Only perform the check for file, if the check method requires it
  9441. test -z "$MAGIC_CMD" && MAGIC_CMD=file
  9442. case $deplibs_check_method in
  9443. file_magic*)
  9444. if test "$file_magic_cmd" = '$MAGIC_CMD'; then
  9445. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
  9446. $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
  9447. if ${lt_cv_path_MAGIC_CMD+:} false; then :
  9448. $as_echo_n "(cached) " >&6
  9449. else
  9450. case $MAGIC_CMD in
  9451. [\\/*] | ?:[\\/]*)
  9452. lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
  9453. ;;
  9454. *)
  9455. lt_save_MAGIC_CMD=$MAGIC_CMD
  9456. lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
  9457. ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
  9458. for ac_dir in $ac_dummy; do
  9459. IFS=$lt_save_ifs
  9460. test -z "$ac_dir" && ac_dir=.
  9461. if test -f "$ac_dir/${ac_tool_prefix}file"; then
  9462. lt_cv_path_MAGIC_CMD=$ac_dir/"${ac_tool_prefix}file"
  9463. if test -n "$file_magic_test_file"; then
  9464. case $deplibs_check_method in
  9465. "file_magic "*)
  9466. file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
  9467. MAGIC_CMD=$lt_cv_path_MAGIC_CMD
  9468. if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
  9469. $EGREP "$file_magic_regex" > /dev/null; then
  9470. :
  9471. else
  9472. cat <<_LT_EOF 1>&2
  9473. *** Warning: the command libtool uses to detect shared libraries,
  9474. *** $file_magic_cmd, produces output that libtool cannot recognize.
  9475. *** The result is that libtool may fail to recognize shared libraries
  9476. *** as such. This will affect the creation of libtool libraries that
  9477. *** depend on shared libraries, but programs linked with such libtool
  9478. *** libraries will work regardless of this problem. Nevertheless, you
  9479. *** may want to report the problem to your system manager and/or to
  9480. *** [email protected]
  9481. _LT_EOF
  9482. fi ;;
  9483. esac
  9484. fi
  9485. break
  9486. fi
  9487. done
  9488. IFS=$lt_save_ifs
  9489. MAGIC_CMD=$lt_save_MAGIC_CMD
  9490. ;;
  9491. esac
  9492. fi
  9493. MAGIC_CMD=$lt_cv_path_MAGIC_CMD
  9494. if test -n "$MAGIC_CMD"; then
  9495. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
  9496. $as_echo "$MAGIC_CMD" >&6; }
  9497. else
  9498. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  9499. $as_echo "no" >&6; }
  9500. fi
  9501. if test -z "$lt_cv_path_MAGIC_CMD"; then
  9502. if test -n "$ac_tool_prefix"; then
  9503. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
  9504. $as_echo_n "checking for file... " >&6; }
  9505. if ${lt_cv_path_MAGIC_CMD+:} false; then :
  9506. $as_echo_n "(cached) " >&6
  9507. else
  9508. case $MAGIC_CMD in
  9509. [\\/*] | ?:[\\/]*)
  9510. lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
  9511. ;;
  9512. *)
  9513. lt_save_MAGIC_CMD=$MAGIC_CMD
  9514. lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
  9515. ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
  9516. for ac_dir in $ac_dummy; do
  9517. IFS=$lt_save_ifs
  9518. test -z "$ac_dir" && ac_dir=.
  9519. if test -f "$ac_dir/file"; then
  9520. lt_cv_path_MAGIC_CMD=$ac_dir/"file"
  9521. if test -n "$file_magic_test_file"; then
  9522. case $deplibs_check_method in
  9523. "file_magic "*)
  9524. file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
  9525. MAGIC_CMD=$lt_cv_path_MAGIC_CMD
  9526. if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
  9527. $EGREP "$file_magic_regex" > /dev/null; then
  9528. :
  9529. else
  9530. cat <<_LT_EOF 1>&2
  9531. *** Warning: the command libtool uses to detect shared libraries,
  9532. *** $file_magic_cmd, produces output that libtool cannot recognize.
  9533. *** The result is that libtool may fail to recognize shared libraries
  9534. *** as such. This will affect the creation of libtool libraries that
  9535. *** depend on shared libraries, but programs linked with such libtool
  9536. *** libraries will work regardless of this problem. Nevertheless, you
  9537. *** may want to report the problem to your system manager and/or to
  9538. *** [email protected]
  9539. _LT_EOF
  9540. fi ;;
  9541. esac
  9542. fi
  9543. break
  9544. fi
  9545. done
  9546. IFS=$lt_save_ifs
  9547. MAGIC_CMD=$lt_save_MAGIC_CMD
  9548. ;;
  9549. esac
  9550. fi
  9551. MAGIC_CMD=$lt_cv_path_MAGIC_CMD
  9552. if test -n "$MAGIC_CMD"; then
  9553. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
  9554. $as_echo "$MAGIC_CMD" >&6; }
  9555. else
  9556. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  9557. $as_echo "no" >&6; }
  9558. fi
  9559. else
  9560. MAGIC_CMD=:
  9561. fi
  9562. fi
  9563. fi
  9564. ;;
  9565. esac
  9566. # Use C for the default configuration in the libtool script
  9567. lt_save_CC=$CC
  9568. ac_ext=c
  9569. ac_cpp='$CPP $CPPFLAGS'
  9570. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  9571. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  9572. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  9573. # Source file extension for C test sources.
  9574. ac_ext=c
  9575. # Object file extension for compiled C test sources.
  9576. objext=o
  9577. objext=$objext
  9578. # Code to be used in simple compile tests
  9579. lt_simple_compile_test_code="int some_variable = 0;"
  9580. # Code to be used in simple link tests
  9581. lt_simple_link_test_code='int main(){return(0);}'
  9582. # If no C compiler was specified, use CC.
  9583. LTCC=${LTCC-"$CC"}
  9584. # If no C compiler flags were specified, use CFLAGS.
  9585. LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
  9586. # Allow CC to be a program name with arguments.
  9587. compiler=$CC
  9588. # Save the default compiler, since it gets overwritten when the other
  9589. # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
  9590. compiler_DEFAULT=$CC
  9591. # save warnings/boilerplate of simple test code
  9592. ac_outfile=conftest.$ac_objext
  9593. echo "$lt_simple_compile_test_code" >conftest.$ac_ext
  9594. eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  9595. _lt_compiler_boilerplate=`cat conftest.err`
  9596. $RM conftest*
  9597. ac_outfile=conftest.$ac_objext
  9598. echo "$lt_simple_link_test_code" >conftest.$ac_ext
  9599. eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  9600. _lt_linker_boilerplate=`cat conftest.err`
  9601. $RM -r conftest*
  9602. if test -n "$compiler"; then
  9603. lt_prog_compiler_no_builtin_flag=
  9604. if test yes = "$GCC"; then
  9605. case $cc_basename in
  9606. nvcc*)
  9607. lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
  9608. *)
  9609. lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
  9610. esac
  9611. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
  9612. $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
  9613. if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
  9614. $as_echo_n "(cached) " >&6
  9615. else
  9616. lt_cv_prog_compiler_rtti_exceptions=no
  9617. ac_outfile=conftest.$ac_objext
  9618. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  9619. lt_compiler_flag="-fno-rtti -fno-exceptions" ## exclude from sc_useless_quotes_in_assignment
  9620. # Insert the option either (1) after the last *FLAGS variable, or
  9621. # (2) before a word containing "conftest.", or (3) at the end.
  9622. # Note that $ac_compile itself does not contain backslashes and begins
  9623. # with a dollar sign (not a hyphen), so the echo should work correctly.
  9624. # The option is referenced via a variable to avoid confusing sed.
  9625. lt_compile=`echo "$ac_compile" | $SED \
  9626. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  9627. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  9628. -e 's:$: $lt_compiler_flag:'`
  9629. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  9630. (eval "$lt_compile" 2>conftest.err)
  9631. ac_status=$?
  9632. cat conftest.err >&5
  9633. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9634. if (exit $ac_status) && test -s "$ac_outfile"; then
  9635. # The compiler can only warn and ignore the option if not recognized
  9636. # So say no if there are warnings other than the usual output.
  9637. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
  9638. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  9639. if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
  9640. lt_cv_prog_compiler_rtti_exceptions=yes
  9641. fi
  9642. fi
  9643. $RM conftest*
  9644. fi
  9645. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
  9646. $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
  9647. if test yes = "$lt_cv_prog_compiler_rtti_exceptions"; then
  9648. lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
  9649. else
  9650. :
  9651. fi
  9652. fi
  9653. lt_prog_compiler_wl=
  9654. lt_prog_compiler_pic=
  9655. lt_prog_compiler_static=
  9656. if test yes = "$GCC"; then
  9657. lt_prog_compiler_wl='-Wl,'
  9658. lt_prog_compiler_static='-static'
  9659. case $host_os in
  9660. aix*)
  9661. # All AIX code is PIC.
  9662. if test ia64 = "$host_cpu"; then
  9663. # AIX 5 now supports IA64 processor
  9664. lt_prog_compiler_static='-Bstatic'
  9665. fi
  9666. lt_prog_compiler_pic='-fPIC'
  9667. ;;
  9668. amigaos*)
  9669. case $host_cpu in
  9670. powerpc)
  9671. # see comment about AmigaOS4 .so support
  9672. lt_prog_compiler_pic='-fPIC'
  9673. ;;
  9674. m68k)
  9675. # FIXME: we need at least 68020 code to build shared libraries, but
  9676. # adding the '-m68020' flag to GCC prevents building anything better,
  9677. # like '-m68040'.
  9678. lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
  9679. ;;
  9680. esac
  9681. ;;
  9682. beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
  9683. # PIC is the default for these OSes.
  9684. ;;
  9685. mingw* | cygwin* | pw32* | os2* | cegcc*)
  9686. # This hack is so that the source file can tell whether it is being
  9687. # built for inclusion in a dll (and should export symbols for example).
  9688. # Although the cygwin gcc ignores -fPIC, still need this for old-style
  9689. # (--disable-auto-import) libraries
  9690. lt_prog_compiler_pic='-DDLL_EXPORT'
  9691. case $host_os in
  9692. os2*)
  9693. lt_prog_compiler_static='$wl-static'
  9694. ;;
  9695. esac
  9696. ;;
  9697. darwin* | rhapsody*)
  9698. # PIC is the default on this platform
  9699. # Common symbols not allowed in MH_DYLIB files
  9700. lt_prog_compiler_pic='-fno-common'
  9701. ;;
  9702. haiku*)
  9703. # PIC is the default for Haiku.
  9704. # The "-static" flag exists, but is broken.
  9705. lt_prog_compiler_static=
  9706. ;;
  9707. hpux*)
  9708. # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
  9709. # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
  9710. # sets the default TLS model and affects inlining.
  9711. case $host_cpu in
  9712. hppa*64*)
  9713. # +Z the default
  9714. ;;
  9715. *)
  9716. lt_prog_compiler_pic='-fPIC'
  9717. ;;
  9718. esac
  9719. ;;
  9720. interix[3-9]*)
  9721. # Interix 3.x gcc -fpic/-fPIC options generate broken code.
  9722. # Instead, we relocate shared libraries at runtime.
  9723. ;;
  9724. msdosdjgpp*)
  9725. # Just because we use GCC doesn't mean we suddenly get shared libraries
  9726. # on systems that don't support them.
  9727. lt_prog_compiler_can_build_shared=no
  9728. enable_shared=no
  9729. ;;
  9730. *nto* | *qnx*)
  9731. # QNX uses GNU C++, but need to define -shared option too, otherwise
  9732. # it will coredump.
  9733. lt_prog_compiler_pic='-fPIC -shared'
  9734. ;;
  9735. sysv4*MP*)
  9736. if test -d /usr/nec; then
  9737. lt_prog_compiler_pic=-Kconform_pic
  9738. fi
  9739. ;;
  9740. *)
  9741. lt_prog_compiler_pic='-fPIC'
  9742. ;;
  9743. esac
  9744. case $cc_basename in
  9745. nvcc*) # Cuda Compiler Driver 2.2
  9746. lt_prog_compiler_wl='-Xlinker '
  9747. if test -n "$lt_prog_compiler_pic"; then
  9748. lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
  9749. fi
  9750. ;;
  9751. esac
  9752. else
  9753. # PORTME Check for flag to pass linker flags through the system compiler.
  9754. case $host_os in
  9755. aix*)
  9756. lt_prog_compiler_wl='-Wl,'
  9757. if test ia64 = "$host_cpu"; then
  9758. # AIX 5 now supports IA64 processor
  9759. lt_prog_compiler_static='-Bstatic'
  9760. else
  9761. lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
  9762. fi
  9763. ;;
  9764. darwin* | rhapsody*)
  9765. # PIC is the default on this platform
  9766. # Common symbols not allowed in MH_DYLIB files
  9767. lt_prog_compiler_pic='-fno-common'
  9768. case $cc_basename in
  9769. nagfor*)
  9770. # NAG Fortran compiler
  9771. lt_prog_compiler_wl='-Wl,-Wl,,'
  9772. lt_prog_compiler_pic='-PIC'
  9773. lt_prog_compiler_static='-Bstatic'
  9774. ;;
  9775. esac
  9776. ;;
  9777. mingw* | cygwin* | pw32* | os2* | cegcc*)
  9778. # This hack is so that the source file can tell whether it is being
  9779. # built for inclusion in a dll (and should export symbols for example).
  9780. lt_prog_compiler_pic='-DDLL_EXPORT'
  9781. case $host_os in
  9782. os2*)
  9783. lt_prog_compiler_static='$wl-static'
  9784. ;;
  9785. esac
  9786. ;;
  9787. hpux9* | hpux10* | hpux11*)
  9788. lt_prog_compiler_wl='-Wl,'
  9789. # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
  9790. # not for PA HP-UX.
  9791. case $host_cpu in
  9792. hppa*64*|ia64*)
  9793. # +Z the default
  9794. ;;
  9795. *)
  9796. lt_prog_compiler_pic='+Z'
  9797. ;;
  9798. esac
  9799. # Is there a better lt_prog_compiler_static that works with the bundled CC?
  9800. lt_prog_compiler_static='$wl-a ${wl}archive'
  9801. ;;
  9802. irix5* | irix6* | nonstopux*)
  9803. lt_prog_compiler_wl='-Wl,'
  9804. # PIC (with -KPIC) is the default.
  9805. lt_prog_compiler_static='-non_shared'
  9806. ;;
  9807. linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
  9808. case $cc_basename in
  9809. # old Intel for x86_64, which still supported -KPIC.
  9810. ecc*)
  9811. lt_prog_compiler_wl='-Wl,'
  9812. lt_prog_compiler_pic='-KPIC'
  9813. lt_prog_compiler_static='-static'
  9814. ;;
  9815. # icc used to be incompatible with GCC.
  9816. # ICC 10 doesn't accept -KPIC any more.
  9817. icc* | ifort*)
  9818. lt_prog_compiler_wl='-Wl,'
  9819. lt_prog_compiler_pic='-fPIC'
  9820. lt_prog_compiler_static='-static'
  9821. ;;
  9822. # Lahey Fortran 8.1.
  9823. lf95*)
  9824. lt_prog_compiler_wl='-Wl,'
  9825. lt_prog_compiler_pic='--shared'
  9826. lt_prog_compiler_static='--static'
  9827. ;;
  9828. nagfor*)
  9829. # NAG Fortran compiler
  9830. lt_prog_compiler_wl='-Wl,-Wl,,'
  9831. lt_prog_compiler_pic='-PIC'
  9832. lt_prog_compiler_static='-Bstatic'
  9833. ;;
  9834. tcc*)
  9835. # Fabrice Bellard et al's Tiny C Compiler
  9836. lt_prog_compiler_wl='-Wl,'
  9837. lt_prog_compiler_pic='-fPIC'
  9838. lt_prog_compiler_static='-static'
  9839. ;;
  9840. pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
  9841. # Portland Group compilers (*not* the Pentium gcc compiler,
  9842. # which looks to be a dead project)
  9843. lt_prog_compiler_wl='-Wl,'
  9844. lt_prog_compiler_pic='-fpic'
  9845. lt_prog_compiler_static='-Bstatic'
  9846. ;;
  9847. ccc*)
  9848. lt_prog_compiler_wl='-Wl,'
  9849. # All Alpha code is PIC.
  9850. lt_prog_compiler_static='-non_shared'
  9851. ;;
  9852. xl* | bgxl* | bgf* | mpixl*)
  9853. # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
  9854. lt_prog_compiler_wl='-Wl,'
  9855. lt_prog_compiler_pic='-qpic'
  9856. lt_prog_compiler_static='-qstaticlink'
  9857. ;;
  9858. *)
  9859. case `$CC -V 2>&1 | sed 5q` in
  9860. *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
  9861. # Sun Fortran 8.3 passes all unrecognized flags to the linker
  9862. lt_prog_compiler_pic='-KPIC'
  9863. lt_prog_compiler_static='-Bstatic'
  9864. lt_prog_compiler_wl=''
  9865. ;;
  9866. *Sun\ F* | *Sun*Fortran*)
  9867. lt_prog_compiler_pic='-KPIC'
  9868. lt_prog_compiler_static='-Bstatic'
  9869. lt_prog_compiler_wl='-Qoption ld '
  9870. ;;
  9871. *Sun\ C*)
  9872. # Sun C 5.9
  9873. lt_prog_compiler_pic='-KPIC'
  9874. lt_prog_compiler_static='-Bstatic'
  9875. lt_prog_compiler_wl='-Wl,'
  9876. ;;
  9877. *Intel*\ [CF]*Compiler*)
  9878. lt_prog_compiler_wl='-Wl,'
  9879. lt_prog_compiler_pic='-fPIC'
  9880. lt_prog_compiler_static='-static'
  9881. ;;
  9882. *Portland\ Group*)
  9883. lt_prog_compiler_wl='-Wl,'
  9884. lt_prog_compiler_pic='-fpic'
  9885. lt_prog_compiler_static='-Bstatic'
  9886. ;;
  9887. esac
  9888. ;;
  9889. esac
  9890. ;;
  9891. newsos6)
  9892. lt_prog_compiler_pic='-KPIC'
  9893. lt_prog_compiler_static='-Bstatic'
  9894. ;;
  9895. *nto* | *qnx*)
  9896. # QNX uses GNU C++, but need to define -shared option too, otherwise
  9897. # it will coredump.
  9898. lt_prog_compiler_pic='-fPIC -shared'
  9899. ;;
  9900. osf3* | osf4* | osf5*)
  9901. lt_prog_compiler_wl='-Wl,'
  9902. # All OSF/1 code is PIC.
  9903. lt_prog_compiler_static='-non_shared'
  9904. ;;
  9905. rdos*)
  9906. lt_prog_compiler_static='-non_shared'
  9907. ;;
  9908. solaris*)
  9909. lt_prog_compiler_pic='-KPIC'
  9910. lt_prog_compiler_static='-Bstatic'
  9911. case $cc_basename in
  9912. f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
  9913. lt_prog_compiler_wl='-Qoption ld ';;
  9914. *)
  9915. lt_prog_compiler_wl='-Wl,';;
  9916. esac
  9917. ;;
  9918. sunos4*)
  9919. lt_prog_compiler_wl='-Qoption ld '
  9920. lt_prog_compiler_pic='-PIC'
  9921. lt_prog_compiler_static='-Bstatic'
  9922. ;;
  9923. sysv4 | sysv4.2uw2* | sysv4.3*)
  9924. lt_prog_compiler_wl='-Wl,'
  9925. lt_prog_compiler_pic='-KPIC'
  9926. lt_prog_compiler_static='-Bstatic'
  9927. ;;
  9928. sysv4*MP*)
  9929. if test -d /usr/nec; then
  9930. lt_prog_compiler_pic='-Kconform_pic'
  9931. lt_prog_compiler_static='-Bstatic'
  9932. fi
  9933. ;;
  9934. sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
  9935. lt_prog_compiler_wl='-Wl,'
  9936. lt_prog_compiler_pic='-KPIC'
  9937. lt_prog_compiler_static='-Bstatic'
  9938. ;;
  9939. unicos*)
  9940. lt_prog_compiler_wl='-Wl,'
  9941. lt_prog_compiler_can_build_shared=no
  9942. ;;
  9943. uts4*)
  9944. lt_prog_compiler_pic='-pic'
  9945. lt_prog_compiler_static='-Bstatic'
  9946. ;;
  9947. *)
  9948. lt_prog_compiler_can_build_shared=no
  9949. ;;
  9950. esac
  9951. fi
  9952. case $host_os in
  9953. # For platforms that do not support PIC, -DPIC is meaningless:
  9954. *djgpp*)
  9955. lt_prog_compiler_pic=
  9956. ;;
  9957. *)
  9958. lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
  9959. ;;
  9960. esac
  9961. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
  9962. $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
  9963. if ${lt_cv_prog_compiler_pic+:} false; then :
  9964. $as_echo_n "(cached) " >&6
  9965. else
  9966. lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
  9967. fi
  9968. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
  9969. $as_echo "$lt_cv_prog_compiler_pic" >&6; }
  9970. lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
  9971. #
  9972. # Check to make sure the PIC flag actually works.
  9973. #
  9974. if test -n "$lt_prog_compiler_pic"; then
  9975. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
  9976. $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
  9977. if ${lt_cv_prog_compiler_pic_works+:} false; then :
  9978. $as_echo_n "(cached) " >&6
  9979. else
  9980. lt_cv_prog_compiler_pic_works=no
  9981. ac_outfile=conftest.$ac_objext
  9982. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  9983. lt_compiler_flag="$lt_prog_compiler_pic -DPIC" ## exclude from sc_useless_quotes_in_assignment
  9984. # Insert the option either (1) after the last *FLAGS variable, or
  9985. # (2) before a word containing "conftest.", or (3) at the end.
  9986. # Note that $ac_compile itself does not contain backslashes and begins
  9987. # with a dollar sign (not a hyphen), so the echo should work correctly.
  9988. # The option is referenced via a variable to avoid confusing sed.
  9989. lt_compile=`echo "$ac_compile" | $SED \
  9990. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  9991. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  9992. -e 's:$: $lt_compiler_flag:'`
  9993. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  9994. (eval "$lt_compile" 2>conftest.err)
  9995. ac_status=$?
  9996. cat conftest.err >&5
  9997. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9998. if (exit $ac_status) && test -s "$ac_outfile"; then
  9999. # The compiler can only warn and ignore the option if not recognized
  10000. # So say no if there are warnings other than the usual output.
  10001. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
  10002. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  10003. if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
  10004. lt_cv_prog_compiler_pic_works=yes
  10005. fi
  10006. fi
  10007. $RM conftest*
  10008. fi
  10009. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
  10010. $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
  10011. if test yes = "$lt_cv_prog_compiler_pic_works"; then
  10012. case $lt_prog_compiler_pic in
  10013. "" | " "*) ;;
  10014. *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
  10015. esac
  10016. else
  10017. lt_prog_compiler_pic=
  10018. lt_prog_compiler_can_build_shared=no
  10019. fi
  10020. fi
  10021. #
  10022. # Check to make sure the static flag actually works.
  10023. #
  10024. wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
  10025. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
  10026. $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
  10027. if ${lt_cv_prog_compiler_static_works+:} false; then :
  10028. $as_echo_n "(cached) " >&6
  10029. else
  10030. lt_cv_prog_compiler_static_works=no
  10031. save_LDFLAGS=$LDFLAGS
  10032. LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
  10033. echo "$lt_simple_link_test_code" > conftest.$ac_ext
  10034. if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
  10035. # The linker can only warn and ignore the option if not recognized
  10036. # So say no if there are warnings
  10037. if test -s conftest.err; then
  10038. # Append any errors to the config.log.
  10039. cat conftest.err 1>&5
  10040. $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
  10041. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  10042. if diff conftest.exp conftest.er2 >/dev/null; then
  10043. lt_cv_prog_compiler_static_works=yes
  10044. fi
  10045. else
  10046. lt_cv_prog_compiler_static_works=yes
  10047. fi
  10048. fi
  10049. $RM -r conftest*
  10050. LDFLAGS=$save_LDFLAGS
  10051. fi
  10052. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
  10053. $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
  10054. if test yes = "$lt_cv_prog_compiler_static_works"; then
  10055. :
  10056. else
  10057. lt_prog_compiler_static=
  10058. fi
  10059. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
  10060. $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
  10061. if ${lt_cv_prog_compiler_c_o+:} false; then :
  10062. $as_echo_n "(cached) " >&6
  10063. else
  10064. lt_cv_prog_compiler_c_o=no
  10065. $RM -r conftest 2>/dev/null
  10066. mkdir conftest
  10067. cd conftest
  10068. mkdir out
  10069. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  10070. lt_compiler_flag="-o out/conftest2.$ac_objext"
  10071. # Insert the option either (1) after the last *FLAGS variable, or
  10072. # (2) before a word containing "conftest.", or (3) at the end.
  10073. # Note that $ac_compile itself does not contain backslashes and begins
  10074. # with a dollar sign (not a hyphen), so the echo should work correctly.
  10075. lt_compile=`echo "$ac_compile" | $SED \
  10076. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  10077. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  10078. -e 's:$: $lt_compiler_flag:'`
  10079. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  10080. (eval "$lt_compile" 2>out/conftest.err)
  10081. ac_status=$?
  10082. cat out/conftest.err >&5
  10083. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10084. if (exit $ac_status) && test -s out/conftest2.$ac_objext
  10085. then
  10086. # The compiler can only warn and ignore the option if not recognized
  10087. # So say no if there are warnings
  10088. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
  10089. $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
  10090. if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
  10091. lt_cv_prog_compiler_c_o=yes
  10092. fi
  10093. fi
  10094. chmod u+w . 2>&5
  10095. $RM conftest*
  10096. # SGI C++ compiler will create directory out/ii_files/ for
  10097. # template instantiation
  10098. test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
  10099. $RM out/* && rmdir out
  10100. cd ..
  10101. $RM -r conftest
  10102. $RM conftest*
  10103. fi
  10104. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
  10105. $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
  10106. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
  10107. $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
  10108. if ${lt_cv_prog_compiler_c_o+:} false; then :
  10109. $as_echo_n "(cached) " >&6
  10110. else
  10111. lt_cv_prog_compiler_c_o=no
  10112. $RM -r conftest 2>/dev/null
  10113. mkdir conftest
  10114. cd conftest
  10115. mkdir out
  10116. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  10117. lt_compiler_flag="-o out/conftest2.$ac_objext"
  10118. # Insert the option either (1) after the last *FLAGS variable, or
  10119. # (2) before a word containing "conftest.", or (3) at the end.
  10120. # Note that $ac_compile itself does not contain backslashes and begins
  10121. # with a dollar sign (not a hyphen), so the echo should work correctly.
  10122. lt_compile=`echo "$ac_compile" | $SED \
  10123. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  10124. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  10125. -e 's:$: $lt_compiler_flag:'`
  10126. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  10127. (eval "$lt_compile" 2>out/conftest.err)
  10128. ac_status=$?
  10129. cat out/conftest.err >&5
  10130. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10131. if (exit $ac_status) && test -s out/conftest2.$ac_objext
  10132. then
  10133. # The compiler can only warn and ignore the option if not recognized
  10134. # So say no if there are warnings
  10135. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
  10136. $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
  10137. if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
  10138. lt_cv_prog_compiler_c_o=yes
  10139. fi
  10140. fi
  10141. chmod u+w . 2>&5
  10142. $RM conftest*
  10143. # SGI C++ compiler will create directory out/ii_files/ for
  10144. # template instantiation
  10145. test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
  10146. $RM out/* && rmdir out
  10147. cd ..
  10148. $RM -r conftest
  10149. $RM conftest*
  10150. fi
  10151. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
  10152. $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
  10153. hard_links=nottested
  10154. if test no = "$lt_cv_prog_compiler_c_o" && test no != "$need_locks"; then
  10155. # do not overwrite the value of need_locks provided by the user
  10156. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
  10157. $as_echo_n "checking if we can lock with hard links... " >&6; }
  10158. hard_links=yes
  10159. $RM conftest*
  10160. ln conftest.a conftest.b 2>/dev/null && hard_links=no
  10161. touch conftest.a
  10162. ln conftest.a conftest.b 2>&5 || hard_links=no
  10163. ln conftest.a conftest.b 2>/dev/null && hard_links=no
  10164. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
  10165. $as_echo "$hard_links" >&6; }
  10166. if test no = "$hard_links"; then
  10167. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5
  10168. $as_echo "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;}
  10169. need_locks=warn
  10170. fi
  10171. else
  10172. need_locks=no
  10173. fi
  10174. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
  10175. $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
  10176. runpath_var=
  10177. allow_undefined_flag=
  10178. always_export_symbols=no
  10179. archive_cmds=
  10180. archive_expsym_cmds=
  10181. compiler_needs_object=no
  10182. enable_shared_with_static_runtimes=no
  10183. export_dynamic_flag_spec=
  10184. export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
  10185. hardcode_automatic=no
  10186. hardcode_direct=no
  10187. hardcode_direct_absolute=no
  10188. hardcode_libdir_flag_spec=
  10189. hardcode_libdir_separator=
  10190. hardcode_minus_L=no
  10191. hardcode_shlibpath_var=unsupported
  10192. inherit_rpath=no
  10193. link_all_deplibs=unknown
  10194. module_cmds=
  10195. module_expsym_cmds=
  10196. old_archive_from_new_cmds=
  10197. old_archive_from_expsyms_cmds=
  10198. thread_safe_flag_spec=
  10199. whole_archive_flag_spec=
  10200. # include_expsyms should be a list of space-separated symbols to be *always*
  10201. # included in the symbol list
  10202. include_expsyms=
  10203. # exclude_expsyms can be an extended regexp of symbols to exclude
  10204. # it will be wrapped by ' (' and ')$', so one must not match beginning or
  10205. # end of line. Example: 'a|bc|.*d.*' will exclude the symbols 'a' and 'bc',
  10206. # as well as any symbol that contains 'd'.
  10207. exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
  10208. # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
  10209. # platforms (ab)use it in PIC code, but their linkers get confused if
  10210. # the symbol is explicitly referenced. Since portable code cannot
  10211. # rely on this symbol name, it's probably fine to never include it in
  10212. # preloaded symbol tables.
  10213. # Exclude shared library initialization/finalization symbols.
  10214. extract_expsyms_cmds=
  10215. case $host_os in
  10216. cygwin* | mingw* | pw32* | cegcc*)
  10217. # FIXME: the MSVC++ port hasn't been tested in a loooong time
  10218. # When not using gcc, we currently assume that we are using
  10219. # Microsoft Visual C++.
  10220. if test yes != "$GCC"; then
  10221. with_gnu_ld=no
  10222. fi
  10223. ;;
  10224. interix*)
  10225. # we just hope/assume this is gcc and not c89 (= MSVC++)
  10226. with_gnu_ld=yes
  10227. ;;
  10228. openbsd* | bitrig*)
  10229. with_gnu_ld=no
  10230. ;;
  10231. esac
  10232. ld_shlibs=yes
  10233. # On some targets, GNU ld is compatible enough with the native linker
  10234. # that we're better off using the native interface for both.
  10235. lt_use_gnu_ld_interface=no
  10236. if test yes = "$with_gnu_ld"; then
  10237. case $host_os in
  10238. aix*)
  10239. # The AIX port of GNU ld has always aspired to compatibility
  10240. # with the native linker. However, as the warning in the GNU ld
  10241. # block says, versions before 2.19.5* couldn't really create working
  10242. # shared libraries, regardless of the interface used.
  10243. case `$LD -v 2>&1` in
  10244. *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
  10245. *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
  10246. *\ \(GNU\ Binutils\)\ [3-9]*) ;;
  10247. *)
  10248. lt_use_gnu_ld_interface=yes
  10249. ;;
  10250. esac
  10251. ;;
  10252. *)
  10253. lt_use_gnu_ld_interface=yes
  10254. ;;
  10255. esac
  10256. fi
  10257. if test yes = "$lt_use_gnu_ld_interface"; then
  10258. # If archive_cmds runs LD, not CC, wlarc should be empty
  10259. wlarc='$wl'
  10260. # Set some defaults for GNU ld with shared library support. These
  10261. # are reset later if shared libraries are not supported. Putting them
  10262. # here allows them to be overridden if necessary.
  10263. runpath_var=LD_RUN_PATH
  10264. hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
  10265. export_dynamic_flag_spec='$wl--export-dynamic'
  10266. # ancient GNU ld didn't support --whole-archive et. al.
  10267. if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
  10268. whole_archive_flag_spec=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'
  10269. else
  10270. whole_archive_flag_spec=
  10271. fi
  10272. supports_anon_versioning=no
  10273. case `$LD -v | $SED -e 's/(^)\+)\s\+//' 2>&1` in
  10274. *GNU\ gold*) supports_anon_versioning=yes ;;
  10275. *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
  10276. *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
  10277. *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
  10278. *\ 2.11.*) ;; # other 2.11 versions
  10279. *) supports_anon_versioning=yes ;;
  10280. esac
  10281. # See if GNU ld supports shared libraries.
  10282. case $host_os in
  10283. aix[3-9]*)
  10284. # On AIX/PPC, the GNU linker is very broken
  10285. if test ia64 != "$host_cpu"; then
  10286. ld_shlibs=no
  10287. cat <<_LT_EOF 1>&2
  10288. *** Warning: the GNU linker, at least up to release 2.19, is reported
  10289. *** to be unable to reliably create shared libraries on AIX.
  10290. *** Therefore, libtool is disabling shared libraries support. If you
  10291. *** really care for shared libraries, you may want to install binutils
  10292. *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
  10293. *** You will then need to restart the configuration process.
  10294. _LT_EOF
  10295. fi
  10296. ;;
  10297. amigaos*)
  10298. case $host_cpu in
  10299. powerpc)
  10300. # see comment about AmigaOS4 .so support
  10301. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
  10302. archive_expsym_cmds=''
  10303. ;;
  10304. m68k)
  10305. 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)'
  10306. hardcode_libdir_flag_spec='-L$libdir'
  10307. hardcode_minus_L=yes
  10308. ;;
  10309. esac
  10310. ;;
  10311. beos*)
  10312. if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  10313. allow_undefined_flag=unsupported
  10314. # Joseph Beckenbach <[email protected]> says some releases of gcc
  10315. # support --undefined. This deserves some investigation. FIXME
  10316. archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
  10317. else
  10318. ld_shlibs=no
  10319. fi
  10320. ;;
  10321. cygwin* | mingw* | pw32* | cegcc*)
  10322. # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
  10323. # as there is no search path for DLLs.
  10324. hardcode_libdir_flag_spec='-L$libdir'
  10325. export_dynamic_flag_spec='$wl--export-all-symbols'
  10326. allow_undefined_flag=unsupported
  10327. always_export_symbols=no
  10328. enable_shared_with_static_runtimes=yes
  10329. 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'
  10330. exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
  10331. if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
  10332. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
  10333. # If the export-symbols file already is a .def file, use it as
  10334. # is; otherwise, prepend EXPORTS...
  10335. archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then
  10336. cp $export_symbols $output_objdir/$soname.def;
  10337. else
  10338. echo EXPORTS > $output_objdir/$soname.def;
  10339. cat $export_symbols >> $output_objdir/$soname.def;
  10340. fi~
  10341. $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
  10342. else
  10343. ld_shlibs=no
  10344. fi
  10345. ;;
  10346. haiku*)
  10347. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
  10348. link_all_deplibs=yes
  10349. ;;
  10350. os2*)
  10351. hardcode_libdir_flag_spec='-L$libdir'
  10352. hardcode_minus_L=yes
  10353. allow_undefined_flag=unsupported
  10354. shrext_cmds=.dll
  10355. archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
  10356. $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
  10357. $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
  10358. $ECHO EXPORTS >> $output_objdir/$libname.def~
  10359. emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
  10360. $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
  10361. emximp -o $lib $output_objdir/$libname.def'
  10362. archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
  10363. $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
  10364. $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
  10365. $ECHO EXPORTS >> $output_objdir/$libname.def~
  10366. prefix_cmds="$SED"~
  10367. if test EXPORTS = "`$SED 1q $export_symbols`"; then
  10368. prefix_cmds="$prefix_cmds -e 1d";
  10369. fi~
  10370. prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
  10371. cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
  10372. $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
  10373. emximp -o $lib $output_objdir/$libname.def'
  10374. old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
  10375. enable_shared_with_static_runtimes=yes
  10376. ;;
  10377. interix[3-9]*)
  10378. hardcode_direct=no
  10379. hardcode_shlibpath_var=no
  10380. hardcode_libdir_flag_spec='$wl-rpath,$libdir'
  10381. export_dynamic_flag_spec='$wl-E'
  10382. # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
  10383. # Instead, shared libraries are loaded at an image base (0x10000000 by
  10384. # default) and relocated if they conflict, which is a slow very memory
  10385. # consuming and fragmenting process. To avoid this, we pick a random,
  10386. # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
  10387. # time. Moving up from 0x10000000 also allows more sbrk(2) space.
  10388. archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
  10389. 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'
  10390. ;;
  10391. gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
  10392. tmp_diet=no
  10393. if test linux-dietlibc = "$host_os"; then
  10394. case $cc_basename in
  10395. diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
  10396. esac
  10397. fi
  10398. if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
  10399. && test no = "$tmp_diet"
  10400. then
  10401. tmp_addflag=' $pic_flag'
  10402. tmp_sharedflag='-shared'
  10403. case $cc_basename,$host_cpu in
  10404. pgcc*) # Portland Group C compiler
  10405. 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'
  10406. tmp_addflag=' $pic_flag'
  10407. ;;
  10408. pgf77* | pgf90* | pgf95* | pgfortran*)
  10409. # Portland Group f77 and f90 compilers
  10410. 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'
  10411. tmp_addflag=' $pic_flag -Mnomain' ;;
  10412. ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
  10413. tmp_addflag=' -i_dynamic' ;;
  10414. efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
  10415. tmp_addflag=' -i_dynamic -nofor_main' ;;
  10416. ifc* | ifort*) # Intel Fortran compiler
  10417. tmp_addflag=' -nofor_main' ;;
  10418. lf95*) # Lahey Fortran 8.1
  10419. whole_archive_flag_spec=
  10420. tmp_sharedflag='--shared' ;;
  10421. nagfor*) # NAGFOR 5.3
  10422. tmp_sharedflag='-Wl,-shared' ;;
  10423. xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
  10424. tmp_sharedflag='-qmkshrobj'
  10425. tmp_addflag= ;;
  10426. nvcc*) # Cuda Compiler Driver 2.2
  10427. 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'
  10428. compiler_needs_object=yes
  10429. ;;
  10430. esac
  10431. case `$CC -V 2>&1 | sed 5q` in
  10432. *Sun\ C*) # Sun C 5.9
  10433. 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'
  10434. compiler_needs_object=yes
  10435. tmp_sharedflag='-G' ;;
  10436. *Sun\ F*) # Sun Fortran 8.3
  10437. tmp_sharedflag='-G' ;;
  10438. esac
  10439. archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
  10440. if test yes = "$supports_anon_versioning"; then
  10441. archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
  10442. cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
  10443. echo "local: *; };" >> $output_objdir/$libname.ver~
  10444. $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib'
  10445. fi
  10446. case $cc_basename in
  10447. tcc*)
  10448. export_dynamic_flag_spec='-rdynamic'
  10449. ;;
  10450. xlf* | bgf* | bgxlf* | mpixlf*)
  10451. # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
  10452. whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
  10453. hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
  10454. archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
  10455. if test yes = "$supports_anon_versioning"; then
  10456. archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
  10457. cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
  10458. echo "local: *; };" >> $output_objdir/$libname.ver~
  10459. $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
  10460. fi
  10461. ;;
  10462. esac
  10463. else
  10464. ld_shlibs=no
  10465. fi
  10466. ;;
  10467. netbsd*)
  10468. if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  10469. archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
  10470. wlarc=
  10471. else
  10472. archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
  10473. archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
  10474. fi
  10475. ;;
  10476. solaris*)
  10477. if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
  10478. ld_shlibs=no
  10479. cat <<_LT_EOF 1>&2
  10480. *** Warning: The releases 2.8.* of the GNU linker cannot reliably
  10481. *** create shared libraries on Solaris systems. Therefore, libtool
  10482. *** is disabling shared libraries support. We urge you to upgrade GNU
  10483. *** binutils to release 2.9.1 or newer. Another option is to modify
  10484. *** your PATH or compiler configuration so that the native linker is
  10485. *** used, and then restart.
  10486. _LT_EOF
  10487. elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  10488. archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
  10489. archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
  10490. else
  10491. ld_shlibs=no
  10492. fi
  10493. ;;
  10494. sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
  10495. case `$LD -v 2>&1` in
  10496. *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
  10497. ld_shlibs=no
  10498. cat <<_LT_EOF 1>&2
  10499. *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 cannot
  10500. *** reliably create shared libraries on SCO systems. Therefore, libtool
  10501. *** is disabling shared libraries support. We urge you to upgrade GNU
  10502. *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
  10503. *** your PATH or compiler configuration so that the native linker is
  10504. *** used, and then restart.
  10505. _LT_EOF
  10506. ;;
  10507. *)
  10508. # For security reasons, it is highly recommended that you always
  10509. # use absolute paths for naming shared libraries, and exclude the
  10510. # DT_RUNPATH tag from executables and libraries. But doing so
  10511. # requires that you compile everything twice, which is a pain.
  10512. if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  10513. hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
  10514. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
  10515. archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
  10516. else
  10517. ld_shlibs=no
  10518. fi
  10519. ;;
  10520. esac
  10521. ;;
  10522. sunos4*)
  10523. archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  10524. wlarc=
  10525. hardcode_direct=yes
  10526. hardcode_shlibpath_var=no
  10527. ;;
  10528. *)
  10529. if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  10530. archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
  10531. archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
  10532. else
  10533. ld_shlibs=no
  10534. fi
  10535. ;;
  10536. esac
  10537. if test no = "$ld_shlibs"; then
  10538. runpath_var=
  10539. hardcode_libdir_flag_spec=
  10540. export_dynamic_flag_spec=
  10541. whole_archive_flag_spec=
  10542. fi
  10543. else
  10544. # PORTME fill in a description of your system's linker (not GNU ld)
  10545. case $host_os in
  10546. aix3*)
  10547. allow_undefined_flag=unsupported
  10548. always_export_symbols=yes
  10549. 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'
  10550. # Note: this linker hardcodes the directories in LIBPATH if there
  10551. # are no directories specified by -L.
  10552. hardcode_minus_L=yes
  10553. if test yes = "$GCC" && test -z "$lt_prog_compiler_static"; then
  10554. # Neither direct hardcoding nor static linking is supported with a
  10555. # broken collect2.
  10556. hardcode_direct=unsupported
  10557. fi
  10558. ;;
  10559. aix[4-9]*)
  10560. if test ia64 = "$host_cpu"; then
  10561. # On IA64, the linker does run time linking by default, so we don't
  10562. # have to do anything special.
  10563. aix_use_runtimelinking=no
  10564. exp_sym_flag='-Bexport'
  10565. no_entry_flag=
  10566. else
  10567. # If we're using GNU nm, then we don't want the "-C" option.
  10568. # -C means demangle to GNU nm, but means don't demangle to AIX nm.
  10569. # Without the "-l" option, or with the "-B" option, AIX nm treats
  10570. # weak defined symbols like other global defined symbols, whereas
  10571. # GNU nm marks them as "W".
  10572. # While the 'weak' keyword is ignored in the Export File, we need
  10573. # it in the Import File for the 'aix-soname' feature, so we have
  10574. # to replace the "-B" option with "-P" for AIX nm.
  10575. if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
  10576. 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'
  10577. else
  10578. export_symbols_cmds='`func_echo_all $NM | $SED -e '\''s/B\([^B]*\)$/P\1/'\''` -PCpgl $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) && (substr(\$ 1,1,1) != ".")) { if ((\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) { print \$ 1 " weak" } else { print \$ 1 } } }'\'' | sort -u > $export_symbols'
  10579. fi
  10580. aix_use_runtimelinking=no
  10581. # Test if we are trying to use run time linking or normal
  10582. # AIX style linking. If -brtl is somewhere in LDFLAGS, we
  10583. # have runtime linking enabled, and use it for executables.
  10584. # For shared libraries, we enable/disable runtime linking
  10585. # depending on the kind of the shared library created -
  10586. # when "with_aix_soname,aix_use_runtimelinking" is:
  10587. # "aix,no" lib.a(lib.so.V) shared, rtl:no, for executables
  10588. # "aix,yes" lib.so shared, rtl:yes, for executables
  10589. # lib.a static archive
  10590. # "both,no" lib.so.V(shr.o) shared, rtl:yes
  10591. # lib.a(lib.so.V) shared, rtl:no, for executables
  10592. # "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables
  10593. # lib.a(lib.so.V) shared, rtl:no
  10594. # "svr4,*" lib.so.V(shr.o) shared, rtl:yes, for executables
  10595. # lib.a static archive
  10596. case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
  10597. for ld_flag in $LDFLAGS; do
  10598. if (test x-brtl = "x$ld_flag" || test x-Wl,-brtl = "x$ld_flag"); then
  10599. aix_use_runtimelinking=yes
  10600. break
  10601. fi
  10602. done
  10603. if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then
  10604. # With aix-soname=svr4, we create the lib.so.V shared archives only,
  10605. # so we don't have lib.a shared libs to link our executables.
  10606. # We have to force runtime linking in this case.
  10607. aix_use_runtimelinking=yes
  10608. LDFLAGS="$LDFLAGS -Wl,-brtl"
  10609. fi
  10610. ;;
  10611. esac
  10612. exp_sym_flag='-bexport'
  10613. no_entry_flag='-bnoentry'
  10614. fi
  10615. # When large executables or shared objects are built, AIX ld can
  10616. # have problems creating the table of contents. If linking a library
  10617. # or program results in "error TOC overflow" add -mminimal-toc to
  10618. # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
  10619. # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
  10620. archive_cmds=''
  10621. hardcode_direct=yes
  10622. hardcode_direct_absolute=yes
  10623. hardcode_libdir_separator=':'
  10624. link_all_deplibs=yes
  10625. file_list_spec='$wl-f,'
  10626. case $with_aix_soname,$aix_use_runtimelinking in
  10627. aix,*) ;; # traditional, no import file
  10628. svr4,* | *,yes) # use import file
  10629. # The Import File defines what to hardcode.
  10630. hardcode_direct=no
  10631. hardcode_direct_absolute=no
  10632. ;;
  10633. esac
  10634. if test yes = "$GCC"; then
  10635. case $host_os in aix4.[012]|aix4.[012].*)
  10636. # We only want to do this on AIX 4.2 and lower, the check
  10637. # below for broken collect2 doesn't work under 4.3+
  10638. collect2name=`$CC -print-prog-name=collect2`
  10639. if test -f "$collect2name" &&
  10640. strings "$collect2name" | $GREP resolve_lib_name >/dev/null
  10641. then
  10642. # We have reworked collect2
  10643. :
  10644. else
  10645. # We have old collect2
  10646. hardcode_direct=unsupported
  10647. # It fails to find uninstalled libraries when the uninstalled
  10648. # path is not listed in the libpath. Setting hardcode_minus_L
  10649. # to unsupported forces relinking
  10650. hardcode_minus_L=yes
  10651. hardcode_libdir_flag_spec='-L$libdir'
  10652. hardcode_libdir_separator=
  10653. fi
  10654. ;;
  10655. esac
  10656. shared_flag='-shared'
  10657. if test yes = "$aix_use_runtimelinking"; then
  10658. shared_flag="$shared_flag "'$wl-G'
  10659. fi
  10660. # Need to ensure runtime linking is disabled for the traditional
  10661. # shared library, or the linker may eventually find shared libraries
  10662. # /with/ Import File - we do not want to mix them.
  10663. shared_flag_aix='-shared'
  10664. shared_flag_svr4='-shared $wl-G'
  10665. else
  10666. # not using gcc
  10667. if test ia64 = "$host_cpu"; then
  10668. # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
  10669. # chokes on -Wl,-G. The following line is correct:
  10670. shared_flag='-G'
  10671. else
  10672. if test yes = "$aix_use_runtimelinking"; then
  10673. shared_flag='$wl-G'
  10674. else
  10675. shared_flag='$wl-bM:SRE'
  10676. fi
  10677. shared_flag_aix='$wl-bM:SRE'
  10678. shared_flag_svr4='$wl-G'
  10679. fi
  10680. fi
  10681. export_dynamic_flag_spec='$wl-bexpall'
  10682. # It seems that -bexpall does not export symbols beginning with
  10683. # underscore (_), so it is better to generate a list of symbols to export.
  10684. always_export_symbols=yes
  10685. if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then
  10686. # Warning - without using the other runtime loading flags (-brtl),
  10687. # -berok will link without error, but may produce a broken library.
  10688. allow_undefined_flag='-berok'
  10689. # Determine the default libpath from the value encoded in an
  10690. # empty executable.
  10691. if test set = "${lt_cv_aix_libpath+set}"; then
  10692. aix_libpath=$lt_cv_aix_libpath
  10693. else
  10694. if ${lt_cv_aix_libpath_+:} false; then :
  10695. $as_echo_n "(cached) " >&6
  10696. else
  10697. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10698. /* end confdefs.h. */
  10699. int
  10700. main ()
  10701. {
  10702. ;
  10703. return 0;
  10704. }
  10705. _ACEOF
  10706. if ac_fn_c_try_link "$LINENO"; then :
  10707. lt_aix_libpath_sed='
  10708. /Import File Strings/,/^$/ {
  10709. /^0/ {
  10710. s/^0 *\([^ ]*\) *$/\1/
  10711. p
  10712. }
  10713. }'
  10714. lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  10715. # Check for a 64-bit object if we didn't find anything.
  10716. if test -z "$lt_cv_aix_libpath_"; then
  10717. lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  10718. fi
  10719. fi
  10720. rm -f core conftest.err conftest.$ac_objext \
  10721. conftest$ac_exeext conftest.$ac_ext
  10722. if test -z "$lt_cv_aix_libpath_"; then
  10723. lt_cv_aix_libpath_=/usr/lib:/lib
  10724. fi
  10725. fi
  10726. aix_libpath=$lt_cv_aix_libpath_
  10727. fi
  10728. hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
  10729. 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
  10730. else
  10731. if test ia64 = "$host_cpu"; then
  10732. hardcode_libdir_flag_spec='$wl-R $libdir:/usr/lib:/lib'
  10733. allow_undefined_flag="-z nodefs"
  10734. 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"
  10735. else
  10736. # Determine the default libpath from the value encoded in an
  10737. # empty executable.
  10738. if test set = "${lt_cv_aix_libpath+set}"; then
  10739. aix_libpath=$lt_cv_aix_libpath
  10740. else
  10741. if ${lt_cv_aix_libpath_+:} false; then :
  10742. $as_echo_n "(cached) " >&6
  10743. else
  10744. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10745. /* end confdefs.h. */
  10746. int
  10747. main ()
  10748. {
  10749. ;
  10750. return 0;
  10751. }
  10752. _ACEOF
  10753. if ac_fn_c_try_link "$LINENO"; then :
  10754. lt_aix_libpath_sed='
  10755. /Import File Strings/,/^$/ {
  10756. /^0/ {
  10757. s/^0 *\([^ ]*\) *$/\1/
  10758. p
  10759. }
  10760. }'
  10761. lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  10762. # Check for a 64-bit object if we didn't find anything.
  10763. if test -z "$lt_cv_aix_libpath_"; then
  10764. lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  10765. fi
  10766. fi
  10767. rm -f core conftest.err conftest.$ac_objext \
  10768. conftest$ac_exeext conftest.$ac_ext
  10769. if test -z "$lt_cv_aix_libpath_"; then
  10770. lt_cv_aix_libpath_=/usr/lib:/lib
  10771. fi
  10772. fi
  10773. aix_libpath=$lt_cv_aix_libpath_
  10774. fi
  10775. hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
  10776. # Warning - without using the other run time loading flags,
  10777. # -berok will link without error, but may produce a broken library.
  10778. no_undefined_flag=' $wl-bernotok'
  10779. allow_undefined_flag=' $wl-berok'
  10780. if test yes = "$with_gnu_ld"; then
  10781. # We only use this code for GNU lds that support --whole-archive.
  10782. whole_archive_flag_spec='$wl--whole-archive$convenience $wl--no-whole-archive'
  10783. else
  10784. # Exported symbols can be pulled into shared objects from archives
  10785. whole_archive_flag_spec='$convenience'
  10786. fi
  10787. archive_cmds_need_lc=yes
  10788. archive_expsym_cmds='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d'
  10789. # -brtl affects multiple linker settings, -berok does not and is overridden later
  10790. compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([, ]\\)%-berok\\1%g"`'
  10791. if test svr4 != "$with_aix_soname"; then
  10792. # This is similar to how AIX traditionally builds its shared libraries.
  10793. 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'
  10794. fi
  10795. if test aix != "$with_aix_soname"; then
  10796. 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'
  10797. else
  10798. # used by -dlpreopen to get the symbols
  10799. archive_expsym_cmds="$archive_expsym_cmds"'~$MV $output_objdir/$realname.d/$soname $output_objdir'
  10800. fi
  10801. archive_expsym_cmds="$archive_expsym_cmds"'~$RM -r $output_objdir/$realname.d'
  10802. fi
  10803. fi
  10804. ;;
  10805. amigaos*)
  10806. case $host_cpu in
  10807. powerpc)
  10808. # see comment about AmigaOS4 .so support
  10809. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
  10810. archive_expsym_cmds=''
  10811. ;;
  10812. m68k)
  10813. 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)'
  10814. hardcode_libdir_flag_spec='-L$libdir'
  10815. hardcode_minus_L=yes
  10816. ;;
  10817. esac
  10818. ;;
  10819. bsdi[45]*)
  10820. export_dynamic_flag_spec=-rdynamic
  10821. ;;
  10822. cygwin* | mingw* | pw32* | cegcc*)
  10823. # When not using gcc, we currently assume that we are using
  10824. # Microsoft Visual C++.
  10825. # hardcode_libdir_flag_spec is actually meaningless, as there is
  10826. # no search path for DLLs.
  10827. case $cc_basename in
  10828. cl*)
  10829. # Native MSVC
  10830. hardcode_libdir_flag_spec=' '
  10831. allow_undefined_flag=unsupported
  10832. always_export_symbols=yes
  10833. file_list_spec='@'
  10834. # Tell ltmain to make .lib files, not .a files.
  10835. libext=lib
  10836. # Tell ltmain to make .dll files, not .so files.
  10837. shrext_cmds=.dll
  10838. # FIXME: Setting linknames here is a bad hack.
  10839. archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames='
  10840. archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then
  10841. cp "$export_symbols" "$output_objdir/$soname.def";
  10842. echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp";
  10843. else
  10844. $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp;
  10845. fi~
  10846. $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
  10847. linknames='
  10848. # The linker will not automatically build a static lib if we build a DLL.
  10849. # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
  10850. enable_shared_with_static_runtimes=yes
  10851. exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
  10852. export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
  10853. # Don't use ranlib
  10854. old_postinstall_cmds='chmod 644 $oldlib'
  10855. postlink_cmds='lt_outputfile="@OUTPUT@"~
  10856. lt_tool_outputfile="@TOOL_OUTPUT@"~
  10857. case $lt_outputfile in
  10858. *.exe|*.EXE) ;;
  10859. *)
  10860. lt_outputfile=$lt_outputfile.exe
  10861. lt_tool_outputfile=$lt_tool_outputfile.exe
  10862. ;;
  10863. esac~
  10864. if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then
  10865. $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
  10866. $RM "$lt_outputfile.manifest";
  10867. fi'
  10868. ;;
  10869. *)
  10870. # Assume MSVC wrapper
  10871. hardcode_libdir_flag_spec=' '
  10872. allow_undefined_flag=unsupported
  10873. # Tell ltmain to make .lib files, not .a files.
  10874. libext=lib
  10875. # Tell ltmain to make .dll files, not .so files.
  10876. shrext_cmds=.dll
  10877. # FIXME: Setting linknames here is a bad hack.
  10878. archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
  10879. # The linker will automatically build a .lib file if we build a DLL.
  10880. old_archive_from_new_cmds='true'
  10881. # FIXME: Should let the user specify the lib program.
  10882. old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
  10883. enable_shared_with_static_runtimes=yes
  10884. ;;
  10885. esac
  10886. ;;
  10887. darwin* | rhapsody*)
  10888. archive_cmds_need_lc=no
  10889. hardcode_direct=no
  10890. hardcode_automatic=yes
  10891. hardcode_shlibpath_var=unsupported
  10892. if test yes = "$lt_cv_ld_force_load"; then
  10893. 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\"`'
  10894. else
  10895. whole_archive_flag_spec=''
  10896. fi
  10897. link_all_deplibs=yes
  10898. allow_undefined_flag=$_lt_dar_allow_undefined
  10899. case $cc_basename in
  10900. ifort*|nagfor*) _lt_dar_can_shared=yes ;;
  10901. *) _lt_dar_can_shared=$GCC ;;
  10902. esac
  10903. if test yes = "$_lt_dar_can_shared"; then
  10904. output_verbose_link_cmd=func_echo_all
  10905. archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dsymutil"
  10906. module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil"
  10907. 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"
  10908. 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"
  10909. else
  10910. ld_shlibs=no
  10911. fi
  10912. ;;
  10913. dgux*)
  10914. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  10915. hardcode_libdir_flag_spec='-L$libdir'
  10916. hardcode_shlibpath_var=no
  10917. ;;
  10918. # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
  10919. # support. Future versions do this automatically, but an explicit c++rt0.o
  10920. # does not break anything, and helps significantly (at the cost of a little
  10921. # extra space).
  10922. freebsd2.2*)
  10923. archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
  10924. hardcode_libdir_flag_spec='-R$libdir'
  10925. hardcode_direct=yes
  10926. hardcode_shlibpath_var=no
  10927. ;;
  10928. # Unfortunately, older versions of FreeBSD 2 do not have this feature.
  10929. freebsd2.*)
  10930. archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  10931. hardcode_direct=yes
  10932. hardcode_minus_L=yes
  10933. hardcode_shlibpath_var=no
  10934. ;;
  10935. # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
  10936. freebsd* | dragonfly*)
  10937. archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  10938. hardcode_libdir_flag_spec='-R$libdir'
  10939. hardcode_direct=yes
  10940. hardcode_shlibpath_var=no
  10941. ;;
  10942. hpux9*)
  10943. if test yes = "$GCC"; then
  10944. 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'
  10945. else
  10946. 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'
  10947. fi
  10948. hardcode_libdir_flag_spec='$wl+b $wl$libdir'
  10949. hardcode_libdir_separator=:
  10950. hardcode_direct=yes
  10951. # hardcode_minus_L: Not really in the search PATH,
  10952. # but as the default location of the library.
  10953. hardcode_minus_L=yes
  10954. export_dynamic_flag_spec='$wl-E'
  10955. ;;
  10956. hpux10*)
  10957. if test yes,no = "$GCC,$with_gnu_ld"; then
  10958. archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  10959. else
  10960. archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
  10961. fi
  10962. if test no = "$with_gnu_ld"; then
  10963. hardcode_libdir_flag_spec='$wl+b $wl$libdir'
  10964. hardcode_libdir_separator=:
  10965. hardcode_direct=yes
  10966. hardcode_direct_absolute=yes
  10967. export_dynamic_flag_spec='$wl-E'
  10968. # hardcode_minus_L: Not really in the search PATH,
  10969. # but as the default location of the library.
  10970. hardcode_minus_L=yes
  10971. fi
  10972. ;;
  10973. hpux11*)
  10974. if test yes,no = "$GCC,$with_gnu_ld"; then
  10975. case $host_cpu in
  10976. hppa*64*)
  10977. archive_cmds='$CC -shared $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
  10978. ;;
  10979. ia64*)
  10980. archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
  10981. ;;
  10982. *)
  10983. archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  10984. ;;
  10985. esac
  10986. else
  10987. case $host_cpu in
  10988. hppa*64*)
  10989. archive_cmds='$CC -b $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
  10990. ;;
  10991. ia64*)
  10992. archive_cmds='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
  10993. ;;
  10994. *)
  10995. # Older versions of the 11.00 compiler do not understand -b yet
  10996. # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
  10997. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
  10998. $as_echo_n "checking if $CC understands -b... " >&6; }
  10999. if ${lt_cv_prog_compiler__b+:} false; then :
  11000. $as_echo_n "(cached) " >&6
  11001. else
  11002. lt_cv_prog_compiler__b=no
  11003. save_LDFLAGS=$LDFLAGS
  11004. LDFLAGS="$LDFLAGS -b"
  11005. echo "$lt_simple_link_test_code" > conftest.$ac_ext
  11006. if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
  11007. # The linker can only warn and ignore the option if not recognized
  11008. # So say no if there are warnings
  11009. if test -s conftest.err; then
  11010. # Append any errors to the config.log.
  11011. cat conftest.err 1>&5
  11012. $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
  11013. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  11014. if diff conftest.exp conftest.er2 >/dev/null; then
  11015. lt_cv_prog_compiler__b=yes
  11016. fi
  11017. else
  11018. lt_cv_prog_compiler__b=yes
  11019. fi
  11020. fi
  11021. $RM -r conftest*
  11022. LDFLAGS=$save_LDFLAGS
  11023. fi
  11024. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
  11025. $as_echo "$lt_cv_prog_compiler__b" >&6; }
  11026. if test yes = "$lt_cv_prog_compiler__b"; then
  11027. archive_cmds='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  11028. else
  11029. archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
  11030. fi
  11031. ;;
  11032. esac
  11033. fi
  11034. if test no = "$with_gnu_ld"; then
  11035. hardcode_libdir_flag_spec='$wl+b $wl$libdir'
  11036. hardcode_libdir_separator=:
  11037. case $host_cpu in
  11038. hppa*64*|ia64*)
  11039. hardcode_direct=no
  11040. hardcode_shlibpath_var=no
  11041. ;;
  11042. *)
  11043. hardcode_direct=yes
  11044. hardcode_direct_absolute=yes
  11045. export_dynamic_flag_spec='$wl-E'
  11046. # hardcode_minus_L: Not really in the search PATH,
  11047. # but as the default location of the library.
  11048. hardcode_minus_L=yes
  11049. ;;
  11050. esac
  11051. fi
  11052. ;;
  11053. irix5* | irix6* | nonstopux*)
  11054. if test yes = "$GCC"; then
  11055. 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'
  11056. # Try to use the -exported_symbol ld option, if it does not
  11057. # work, assume that -exports_file does not work either and
  11058. # implicitly export all symbols.
  11059. # This should be the same for all languages, so no per-tag cache variable.
  11060. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
  11061. $as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
  11062. if ${lt_cv_irix_exported_symbol+:} false; then :
  11063. $as_echo_n "(cached) " >&6
  11064. else
  11065. save_LDFLAGS=$LDFLAGS
  11066. LDFLAGS="$LDFLAGS -shared $wl-exported_symbol ${wl}foo $wl-update_registry $wl/dev/null"
  11067. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11068. /* end confdefs.h. */
  11069. int foo (void) { return 0; }
  11070. _ACEOF
  11071. if ac_fn_c_try_link "$LINENO"; then :
  11072. lt_cv_irix_exported_symbol=yes
  11073. else
  11074. lt_cv_irix_exported_symbol=no
  11075. fi
  11076. rm -f core conftest.err conftest.$ac_objext \
  11077. conftest$ac_exeext conftest.$ac_ext
  11078. LDFLAGS=$save_LDFLAGS
  11079. fi
  11080. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
  11081. $as_echo "$lt_cv_irix_exported_symbol" >&6; }
  11082. if test yes = "$lt_cv_irix_exported_symbol"; then
  11083. 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'
  11084. fi
  11085. else
  11086. 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'
  11087. 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'
  11088. fi
  11089. archive_cmds_need_lc='no'
  11090. hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
  11091. hardcode_libdir_separator=:
  11092. inherit_rpath=yes
  11093. link_all_deplibs=yes
  11094. ;;
  11095. linux*)
  11096. case $cc_basename in
  11097. tcc*)
  11098. # Fabrice Bellard et al's Tiny C Compiler
  11099. ld_shlibs=yes
  11100. archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  11101. ;;
  11102. esac
  11103. ;;
  11104. netbsd*)
  11105. if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  11106. archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
  11107. else
  11108. archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
  11109. fi
  11110. hardcode_libdir_flag_spec='-R$libdir'
  11111. hardcode_direct=yes
  11112. hardcode_shlibpath_var=no
  11113. ;;
  11114. newsos6)
  11115. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  11116. hardcode_direct=yes
  11117. hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
  11118. hardcode_libdir_separator=:
  11119. hardcode_shlibpath_var=no
  11120. ;;
  11121. *nto* | *qnx*)
  11122. ;;
  11123. openbsd* | bitrig*)
  11124. if test -f /usr/libexec/ld.so; then
  11125. hardcode_direct=yes
  11126. hardcode_shlibpath_var=no
  11127. hardcode_direct_absolute=yes
  11128. if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
  11129. archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  11130. archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags $wl-retain-symbols-file,$export_symbols'
  11131. hardcode_libdir_flag_spec='$wl-rpath,$libdir'
  11132. export_dynamic_flag_spec='$wl-E'
  11133. else
  11134. archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  11135. hardcode_libdir_flag_spec='$wl-rpath,$libdir'
  11136. fi
  11137. else
  11138. ld_shlibs=no
  11139. fi
  11140. ;;
  11141. os2*)
  11142. hardcode_libdir_flag_spec='-L$libdir'
  11143. hardcode_minus_L=yes
  11144. allow_undefined_flag=unsupported
  11145. shrext_cmds=.dll
  11146. archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
  11147. $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
  11148. $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
  11149. $ECHO EXPORTS >> $output_objdir/$libname.def~
  11150. emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
  11151. $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
  11152. emximp -o $lib $output_objdir/$libname.def'
  11153. archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
  11154. $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
  11155. $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
  11156. $ECHO EXPORTS >> $output_objdir/$libname.def~
  11157. prefix_cmds="$SED"~
  11158. if test EXPORTS = "`$SED 1q $export_symbols`"; then
  11159. prefix_cmds="$prefix_cmds -e 1d";
  11160. fi~
  11161. prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
  11162. cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
  11163. $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
  11164. emximp -o $lib $output_objdir/$libname.def'
  11165. old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
  11166. enable_shared_with_static_runtimes=yes
  11167. ;;
  11168. osf3*)
  11169. if test yes = "$GCC"; then
  11170. allow_undefined_flag=' $wl-expect_unresolved $wl\*'
  11171. 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'
  11172. else
  11173. allow_undefined_flag=' -expect_unresolved \*'
  11174. 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'
  11175. fi
  11176. archive_cmds_need_lc='no'
  11177. hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
  11178. hardcode_libdir_separator=:
  11179. ;;
  11180. osf4* | osf5*) # as osf3* with the addition of -msym flag
  11181. if test yes = "$GCC"; then
  11182. allow_undefined_flag=' $wl-expect_unresolved $wl\*'
  11183. 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'
  11184. hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
  11185. else
  11186. allow_undefined_flag=' -expect_unresolved \*'
  11187. 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'
  11188. 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~
  11189. $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'
  11190. # Both c and cxx compiler support -rpath directly
  11191. hardcode_libdir_flag_spec='-rpath $libdir'
  11192. fi
  11193. archive_cmds_need_lc='no'
  11194. hardcode_libdir_separator=:
  11195. ;;
  11196. solaris*)
  11197. no_undefined_flag=' -z defs'
  11198. if test yes = "$GCC"; then
  11199. wlarc='$wl'
  11200. archive_cmds='$CC -shared $pic_flag $wl-z ${wl}text $wl-h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
  11201. archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  11202. $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'
  11203. else
  11204. case `$CC -V 2>&1` in
  11205. *"Compilers 5.0"*)
  11206. wlarc=''
  11207. archive_cmds='$LD -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $linker_flags'
  11208. archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  11209. $LD -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
  11210. ;;
  11211. *)
  11212. wlarc='$wl'
  11213. archive_cmds='$CC -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $compiler_flags'
  11214. archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  11215. $CC -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
  11216. ;;
  11217. esac
  11218. fi
  11219. hardcode_libdir_flag_spec='-R$libdir'
  11220. hardcode_shlibpath_var=no
  11221. case $host_os in
  11222. solaris2.[0-5] | solaris2.[0-5].*) ;;
  11223. *)
  11224. # The compiler driver will combine and reorder linker options,
  11225. # but understands '-z linker_flag'. GCC discards it without '$wl',
  11226. # but is careful enough not to reorder.
  11227. # Supported since Solaris 2.6 (maybe 2.5.1?)
  11228. if test yes = "$GCC"; then
  11229. whole_archive_flag_spec='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract'
  11230. else
  11231. whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
  11232. fi
  11233. ;;
  11234. esac
  11235. link_all_deplibs=yes
  11236. ;;
  11237. sunos4*)
  11238. if test sequent = "$host_vendor"; then
  11239. # Use $CC to link under sequent, because it throws in some extra .o
  11240. # files that make .init and .fini sections work.
  11241. archive_cmds='$CC -G $wl-h $soname -o $lib $libobjs $deplibs $compiler_flags'
  11242. else
  11243. archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
  11244. fi
  11245. hardcode_libdir_flag_spec='-L$libdir'
  11246. hardcode_direct=yes
  11247. hardcode_minus_L=yes
  11248. hardcode_shlibpath_var=no
  11249. ;;
  11250. sysv4)
  11251. case $host_vendor in
  11252. sni)
  11253. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  11254. hardcode_direct=yes # is this really true???
  11255. ;;
  11256. siemens)
  11257. ## LD is ld it makes a PLAMLIB
  11258. ## CC just makes a GrossModule.
  11259. archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
  11260. reload_cmds='$CC -r -o $output$reload_objs'
  11261. hardcode_direct=no
  11262. ;;
  11263. motorola)
  11264. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  11265. hardcode_direct=no #Motorola manual says yes, but my tests say they lie
  11266. ;;
  11267. esac
  11268. runpath_var='LD_RUN_PATH'
  11269. hardcode_shlibpath_var=no
  11270. ;;
  11271. sysv4.3*)
  11272. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  11273. hardcode_shlibpath_var=no
  11274. export_dynamic_flag_spec='-Bexport'
  11275. ;;
  11276. sysv4*MP*)
  11277. if test -d /usr/nec; then
  11278. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  11279. hardcode_shlibpath_var=no
  11280. runpath_var=LD_RUN_PATH
  11281. hardcode_runpath_var=yes
  11282. ld_shlibs=yes
  11283. fi
  11284. ;;
  11285. sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
  11286. no_undefined_flag='$wl-z,text'
  11287. archive_cmds_need_lc=no
  11288. hardcode_shlibpath_var=no
  11289. runpath_var='LD_RUN_PATH'
  11290. if test yes = "$GCC"; then
  11291. archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  11292. archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  11293. else
  11294. archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  11295. archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  11296. fi
  11297. ;;
  11298. sysv5* | sco3.2v5* | sco5v6*)
  11299. # Note: We CANNOT use -z defs as we might desire, because we do not
  11300. # link with -lc, and that would cause any symbols used from libc to
  11301. # always be unresolved, which means just about no library would
  11302. # ever link correctly. If we're not using GNU ld we use -z text
  11303. # though, which does catch some bad symbols but isn't as heavy-handed
  11304. # as -z defs.
  11305. no_undefined_flag='$wl-z,text'
  11306. allow_undefined_flag='$wl-z,nodefs'
  11307. archive_cmds_need_lc=no
  11308. hardcode_shlibpath_var=no
  11309. hardcode_libdir_flag_spec='$wl-R,$libdir'
  11310. hardcode_libdir_separator=':'
  11311. link_all_deplibs=yes
  11312. export_dynamic_flag_spec='$wl-Bexport'
  11313. runpath_var='LD_RUN_PATH'
  11314. if test yes = "$GCC"; then
  11315. archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  11316. archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  11317. else
  11318. archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  11319. archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  11320. fi
  11321. ;;
  11322. uts4*)
  11323. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  11324. hardcode_libdir_flag_spec='-L$libdir'
  11325. hardcode_shlibpath_var=no
  11326. ;;
  11327. *)
  11328. ld_shlibs=no
  11329. ;;
  11330. esac
  11331. if test sni = "$host_vendor"; then
  11332. case $host in
  11333. sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
  11334. export_dynamic_flag_spec='$wl-Blargedynsym'
  11335. ;;
  11336. esac
  11337. fi
  11338. fi
  11339. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
  11340. $as_echo "$ld_shlibs" >&6; }
  11341. test no = "$ld_shlibs" && can_build_shared=no
  11342. with_gnu_ld=$with_gnu_ld
  11343. #
  11344. # Do we need to explicitly link libc?
  11345. #
  11346. case "x$archive_cmds_need_lc" in
  11347. x|xyes)
  11348. # Assume -lc should be added
  11349. archive_cmds_need_lc=yes
  11350. if test yes,yes = "$GCC,$enable_shared"; then
  11351. case $archive_cmds in
  11352. *'~'*)
  11353. # FIXME: we may have to deal with multi-command sequences.
  11354. ;;
  11355. '$CC '*)
  11356. # Test whether the compiler implicitly links with -lc since on some
  11357. # systems, -lgcc has to come before -lc. If gcc already passes -lc
  11358. # to ld, don't add -lc before -lgcc.
  11359. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
  11360. $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
  11361. if ${lt_cv_archive_cmds_need_lc+:} false; then :
  11362. $as_echo_n "(cached) " >&6
  11363. else
  11364. $RM conftest*
  11365. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  11366. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  11367. (eval $ac_compile) 2>&5
  11368. ac_status=$?
  11369. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  11370. test $ac_status = 0; } 2>conftest.err; then
  11371. soname=conftest
  11372. lib=conftest
  11373. libobjs=conftest.$ac_objext
  11374. deplibs=
  11375. wl=$lt_prog_compiler_wl
  11376. pic_flag=$lt_prog_compiler_pic
  11377. compiler_flags=-v
  11378. linker_flags=-v
  11379. verstring=
  11380. output_objdir=.
  11381. libname=conftest
  11382. lt_save_allow_undefined_flag=$allow_undefined_flag
  11383. allow_undefined_flag=
  11384. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
  11385. (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
  11386. ac_status=$?
  11387. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  11388. test $ac_status = 0; }
  11389. then
  11390. lt_cv_archive_cmds_need_lc=no
  11391. else
  11392. lt_cv_archive_cmds_need_lc=yes
  11393. fi
  11394. allow_undefined_flag=$lt_save_allow_undefined_flag
  11395. else
  11396. cat conftest.err 1>&5
  11397. fi
  11398. $RM conftest*
  11399. fi
  11400. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
  11401. $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
  11402. archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
  11403. ;;
  11404. esac
  11405. fi
  11406. ;;
  11407. esac
  11408. { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
  11409. $as_echo_n "checking dynamic linker characteristics... " >&6; }
  11410. if test yes = "$GCC"; then
  11411. case $host_os in
  11412. darwin*) lt_awk_arg='/^libraries:/,/LR/' ;;
  11413. *) lt_awk_arg='/^libraries:/' ;;
  11414. esac
  11415. case $host_os in
  11416. mingw* | cegcc*) lt_sed_strip_eq='s|=\([A-Za-z]:\)|\1|g' ;;
  11417. *) lt_sed_strip_eq='s|=/|/|g' ;;
  11418. esac
  11419. lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
  11420. case $lt_search_path_spec in
  11421. *\;*)
  11422. # if the path contains ";" then we assume it to be the separator
  11423. # otherwise default to the standard path separator (i.e. ":") - it is
  11424. # assumed that no part of a normal pathname contains ";" but that should
  11425. # okay in the real world where ";" in dirpaths is itself problematic.
  11426. lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
  11427. ;;
  11428. *)
  11429. lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
  11430. ;;
  11431. esac
  11432. # Ok, now we have the path, separated by spaces, we can step through it
  11433. # and add multilib dir if necessary...
  11434. lt_tmp_lt_search_path_spec=
  11435. lt_multi_os_dir=/`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
  11436. # ...but if some path component already ends with the multilib dir we assume
  11437. # that all is fine and trust -print-search-dirs as is (GCC 4.2? or newer).
  11438. case "$lt_multi_os_dir; $lt_search_path_spec " in
  11439. "/; "* | "/.; "* | "/./; "* | *"$lt_multi_os_dir "* | *"$lt_multi_os_dir/ "*)
  11440. lt_multi_os_dir=
  11441. ;;
  11442. esac
  11443. for lt_sys_path in $lt_search_path_spec; do
  11444. if test -d "$lt_sys_path$lt_multi_os_dir"; then
  11445. lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path$lt_multi_os_dir"
  11446. elif test -n "$lt_multi_os_dir"; then
  11447. test -d "$lt_sys_path" && \
  11448. lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
  11449. fi
  11450. done
  11451. lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
  11452. BEGIN {RS = " "; FS = "/|\n";} {
  11453. lt_foo = "";
  11454. lt_count = 0;
  11455. for (lt_i = NF; lt_i > 0; lt_i--) {
  11456. if ($lt_i != "" && $lt_i != ".") {
  11457. if ($lt_i == "..") {
  11458. lt_count++;
  11459. } else {
  11460. if (lt_count == 0) {
  11461. lt_foo = "/" $lt_i lt_foo;
  11462. } else {
  11463. lt_count--;
  11464. }
  11465. }
  11466. }
  11467. }
  11468. if (lt_foo != "") { lt_freq[lt_foo]++; }
  11469. if (lt_freq[lt_foo] == 1) { print lt_foo; }
  11470. }'`
  11471. # AWK program above erroneously prepends '/' to C:/dos/paths
  11472. # for these hosts.
  11473. case $host_os in
  11474. mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
  11475. $SED 's|/\([A-Za-z]:\)|\1|g'` ;;
  11476. esac
  11477. sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
  11478. else
  11479. sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
  11480. fi
  11481. library_names_spec=
  11482. libname_spec='lib$name'
  11483. soname_spec=
  11484. shrext_cmds=.so
  11485. postinstall_cmds=
  11486. postuninstall_cmds=
  11487. finish_cmds=
  11488. finish_eval=
  11489. shlibpath_var=
  11490. shlibpath_overrides_runpath=unknown
  11491. version_type=none
  11492. dynamic_linker="$host_os ld.so"
  11493. sys_lib_dlsearch_path_spec="/lib /usr/lib"
  11494. need_lib_prefix=unknown
  11495. hardcode_into_libs=no
  11496. # when you set need_version to no, make sure it does not cause -set_version
  11497. # flags to be left without arguments
  11498. need_version=unknown
  11499. case $host_os in
  11500. aix3*)
  11501. version_type=linux # correct to gnu/linux during the next big refactor
  11502. library_names_spec='$libname$release$shared_ext$versuffix $libname.a'
  11503. shlibpath_var=LIBPATH
  11504. # AIX 3 has no versioning support, so we append a major version to the name.
  11505. soname_spec='$libname$release$shared_ext$major'
  11506. ;;
  11507. aix[4-9]*)
  11508. version_type=linux # correct to gnu/linux during the next big refactor
  11509. need_lib_prefix=no
  11510. need_version=no
  11511. hardcode_into_libs=yes
  11512. if test ia64 = "$host_cpu"; then
  11513. # AIX 5 supports IA64
  11514. library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext'
  11515. shlibpath_var=LD_LIBRARY_PATH
  11516. else
  11517. # With GCC up to 2.95.x, collect2 would create an import file
  11518. # for dependence libraries. The import file would start with
  11519. # the line '#! .'. This would cause the generated library to
  11520. # depend on '.', always an invalid library. This was fixed in
  11521. # development snapshots of GCC prior to 3.0.
  11522. case $host_os in
  11523. aix4 | aix4.[01] | aix4.[01].*)
  11524. if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
  11525. echo ' yes '
  11526. echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then
  11527. :
  11528. else
  11529. can_build_shared=no
  11530. fi
  11531. ;;
  11532. esac
  11533. # Using Import Files as archive members, it is possible to support
  11534. # filename-based versioning of shared library archives on AIX. While
  11535. # this would work for both with and without runtime linking, it will
  11536. # prevent static linking of such archives. So we do filename-based
  11537. # shared library versioning with .so extension only, which is used
  11538. # when both runtime linking and shared linking is enabled.
  11539. # Unfortunately, runtime linking may impact performance, so we do
  11540. # not want this to be the default eventually. Also, we use the
  11541. # versioned .so libs for executables only if there is the -brtl
  11542. # linker flag in LDFLAGS as well, or --with-aix-soname=svr4 only.
  11543. # To allow for filename-based versioning support, we need to create
  11544. # libNAME.so.V as an archive file, containing:
  11545. # *) an Import File, referring to the versioned filename of the
  11546. # archive as well as the shared archive member, telling the
  11547. # bitwidth (32 or 64) of that shared object, and providing the
  11548. # list of exported symbols of that shared object, eventually
  11549. # decorated with the 'weak' keyword
  11550. # *) the shared object with the F_LOADONLY flag set, to really avoid
  11551. # it being seen by the linker.
  11552. # At run time we better use the real file rather than another symlink,
  11553. # but for link time we create the symlink libNAME.so -> libNAME.so.V
  11554. case $with_aix_soname,$aix_use_runtimelinking in
  11555. # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct
  11556. # soname into executable. Probably we can add versioning support to
  11557. # collect2, so additional links can be useful in future.
  11558. aix,yes) # traditional libtool
  11559. dynamic_linker='AIX unversionable lib.so'
  11560. # If using run time linking (on AIX 4.2 or later) use lib<name>.so
  11561. # instead of lib<name>.a to let people know that these are not
  11562. # typical AIX shared libraries.
  11563. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  11564. ;;
  11565. aix,no) # traditional AIX only
  11566. dynamic_linker='AIX lib.a(lib.so.V)'
  11567. # We preserve .a as extension for shared libraries through AIX4.2
  11568. # and later when we are not doing run time linking.
  11569. library_names_spec='$libname$release.a $libname.a'
  11570. soname_spec='$libname$release$shared_ext$major'
  11571. ;;
  11572. svr4,*) # full svr4 only
  11573. dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o)"
  11574. library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
  11575. # We do not specify a path in Import Files, so LIBPATH fires.
  11576. shlibpath_overrides_runpath=yes
  11577. ;;
  11578. *,yes) # both, prefer svr4
  11579. dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o), lib.a(lib.so.V)"
  11580. library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
  11581. # unpreferred sharedlib libNAME.a needs extra handling
  11582. 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"'
  11583. 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"'
  11584. # We do not specify a path in Import Files, so LIBPATH fires.
  11585. shlibpath_overrides_runpath=yes
  11586. ;;
  11587. *,no) # both, prefer aix
  11588. dynamic_linker="AIX lib.a(lib.so.V), lib.so.V($shared_archive_member_spec.o)"
  11589. library_names_spec='$libname$release.a $libname.a'
  11590. soname_spec='$libname$release$shared_ext$major'
  11591. # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling
  11592. 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)'
  11593. 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"'
  11594. ;;
  11595. esac
  11596. shlibpath_var=LIBPATH
  11597. fi
  11598. ;;
  11599. amigaos*)
  11600. case $host_cpu in
  11601. powerpc)
  11602. # Since July 2007 AmigaOS4 officially supports .so libraries.
  11603. # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
  11604. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  11605. ;;
  11606. m68k)
  11607. library_names_spec='$libname.ixlibrary $libname.a'
  11608. # Create ${libname}_ixlibrary.a entries in /sys/libs.
  11609. 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'
  11610. ;;
  11611. esac
  11612. ;;
  11613. beos*)
  11614. library_names_spec='$libname$shared_ext'
  11615. dynamic_linker="$host_os ld.so"
  11616. shlibpath_var=LIBRARY_PATH
  11617. ;;
  11618. bsdi[45]*)
  11619. version_type=linux # correct to gnu/linux during the next big refactor
  11620. need_version=no
  11621. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  11622. soname_spec='$libname$release$shared_ext$major'
  11623. finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
  11624. shlibpath_var=LD_LIBRARY_PATH
  11625. sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
  11626. sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
  11627. # the default ld.so.conf also contains /usr/contrib/lib and
  11628. # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
  11629. # libtool to hard-code these into programs
  11630. ;;
  11631. cygwin* | mingw* | pw32* | cegcc*)
  11632. version_type=windows
  11633. shrext_cmds=.dll
  11634. need_version=no
  11635. need_lib_prefix=no
  11636. case $GCC,$cc_basename in
  11637. yes,*)
  11638. # gcc
  11639. library_names_spec='$libname.dll.a'
  11640. # DLL is installed to $(libdir)/../bin by postinstall_cmds
  11641. postinstall_cmds='base_file=`basename \$file`~
  11642. dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
  11643. dldir=$destdir/`dirname \$dlpath`~
  11644. test -d \$dldir || mkdir -p \$dldir~
  11645. $install_prog $dir/$dlname \$dldir/$dlname~
  11646. chmod a+x \$dldir/$dlname~
  11647. if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
  11648. eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
  11649. fi'
  11650. postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
  11651. dlpath=$dir/\$dldll~
  11652. $RM \$dlpath'
  11653. shlibpath_overrides_runpath=yes
  11654. case $host_os in
  11655. cygwin*)
  11656. # Cygwin DLLs use 'cyg' prefix rather than 'lib'
  11657. soname_spec='`echo $libname | sed -e 's/^lib/cyg/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
  11658. sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
  11659. ;;
  11660. mingw* | cegcc*)
  11661. # MinGW DLLs use traditional 'lib' prefix
  11662. soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
  11663. ;;
  11664. pw32*)
  11665. # pw32 DLLs use 'pw' prefix rather than 'lib'
  11666. library_names_spec='`echo $libname | sed -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
  11667. ;;
  11668. esac
  11669. dynamic_linker='Win32 ld.exe'
  11670. ;;
  11671. *,cl*)
  11672. # Native MSVC
  11673. libname_spec='$name'
  11674. soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
  11675. library_names_spec='$libname.dll.lib'
  11676. case $build_os in
  11677. mingw*)
  11678. sys_lib_search_path_spec=
  11679. lt_save_ifs=$IFS
  11680. IFS=';'
  11681. for lt_path in $LIB
  11682. do
  11683. IFS=$lt_save_ifs
  11684. # Let DOS variable expansion print the short 8.3 style file name.
  11685. lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
  11686. sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
  11687. done
  11688. IFS=$lt_save_ifs
  11689. # Convert to MSYS style.
  11690. sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
  11691. ;;
  11692. cygwin*)
  11693. # Convert to unix form, then to dos form, then back to unix form
  11694. # but this time dos style (no spaces!) so that the unix form looks
  11695. # like /cygdrive/c/PROGRA~1:/cygdr...
  11696. sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
  11697. sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
  11698. sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
  11699. ;;
  11700. *)
  11701. sys_lib_search_path_spec=$LIB
  11702. if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
  11703. # It is most probably a Windows format PATH.
  11704. sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
  11705. else
  11706. sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
  11707. fi
  11708. # FIXME: find the short name or the path components, as spaces are
  11709. # common. (e.g. "Program Files" -> "PROGRA~1")
  11710. ;;
  11711. esac
  11712. # DLL is installed to $(libdir)/../bin by postinstall_cmds
  11713. postinstall_cmds='base_file=`basename \$file`~
  11714. dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
  11715. dldir=$destdir/`dirname \$dlpath`~
  11716. test -d \$dldir || mkdir -p \$dldir~
  11717. $install_prog $dir/$dlname \$dldir/$dlname'
  11718. postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
  11719. dlpath=$dir/\$dldll~
  11720. $RM \$dlpath'
  11721. shlibpath_overrides_runpath=yes
  11722. dynamic_linker='Win32 link.exe'
  11723. ;;
  11724. *)
  11725. # Assume MSVC wrapper
  11726. library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib'
  11727. dynamic_linker='Win32 ld.exe'
  11728. ;;
  11729. esac
  11730. # FIXME: first we should search . and the directory the executable is in
  11731. shlibpath_var=PATH
  11732. ;;
  11733. darwin* | rhapsody*)
  11734. dynamic_linker="$host_os dyld"
  11735. version_type=darwin
  11736. need_lib_prefix=no
  11737. need_version=no
  11738. library_names_spec='$libname$release$major$shared_ext $libname$shared_ext'
  11739. soname_spec='$libname$release$major$shared_ext'
  11740. shlibpath_overrides_runpath=yes
  11741. shlibpath_var=DYLD_LIBRARY_PATH
  11742. shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
  11743. sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
  11744. sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
  11745. ;;
  11746. dgux*)
  11747. version_type=linux # correct to gnu/linux during the next big refactor
  11748. need_lib_prefix=no
  11749. need_version=no
  11750. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  11751. soname_spec='$libname$release$shared_ext$major'
  11752. shlibpath_var=LD_LIBRARY_PATH
  11753. ;;
  11754. freebsd* | dragonfly*)
  11755. # DragonFly does not have aout. When/if they implement a new
  11756. # versioning mechanism, adjust this.
  11757. if test -x /usr/bin/objformat; then
  11758. objformat=`/usr/bin/objformat`
  11759. else
  11760. case $host_os in
  11761. freebsd[23].*) objformat=aout ;;
  11762. *) objformat=elf ;;
  11763. esac
  11764. fi
  11765. version_type=freebsd-$objformat
  11766. case $version_type in
  11767. freebsd-elf*)
  11768. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  11769. soname_spec='$libname$release$shared_ext$major'
  11770. need_version=no
  11771. need_lib_prefix=no
  11772. ;;
  11773. freebsd-*)
  11774. library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
  11775. need_version=yes
  11776. ;;
  11777. esac
  11778. shlibpath_var=LD_LIBRARY_PATH
  11779. case $host_os in
  11780. freebsd2.*)
  11781. shlibpath_overrides_runpath=yes
  11782. ;;
  11783. freebsd3.[01]* | freebsdelf3.[01]*)
  11784. shlibpath_overrides_runpath=yes
  11785. hardcode_into_libs=yes
  11786. ;;
  11787. freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
  11788. freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
  11789. shlibpath_overrides_runpath=no
  11790. hardcode_into_libs=yes
  11791. ;;
  11792. *) # from 4.6 on, and DragonFly
  11793. shlibpath_overrides_runpath=yes
  11794. hardcode_into_libs=yes
  11795. ;;
  11796. esac
  11797. ;;
  11798. haiku*)
  11799. version_type=linux # correct to gnu/linux during the next big refactor
  11800. need_lib_prefix=no
  11801. need_version=no
  11802. dynamic_linker="$host_os runtime_loader"
  11803. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  11804. soname_spec='$libname$release$shared_ext$major'
  11805. shlibpath_var=LIBRARY_PATH
  11806. shlibpath_overrides_runpath=no
  11807. sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
  11808. hardcode_into_libs=yes
  11809. ;;
  11810. hpux9* | hpux10* | hpux11*)
  11811. # Give a soname corresponding to the major version so that dld.sl refuses to
  11812. # link against other versions.
  11813. version_type=sunos
  11814. need_lib_prefix=no
  11815. need_version=no
  11816. case $host_cpu in
  11817. ia64*)
  11818. shrext_cmds='.so'
  11819. hardcode_into_libs=yes
  11820. dynamic_linker="$host_os dld.so"
  11821. shlibpath_var=LD_LIBRARY_PATH
  11822. shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  11823. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  11824. soname_spec='$libname$release$shared_ext$major'
  11825. if test 32 = "$HPUX_IA64_MODE"; then
  11826. sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
  11827. sys_lib_dlsearch_path_spec=/usr/lib/hpux32
  11828. else
  11829. sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
  11830. sys_lib_dlsearch_path_spec=/usr/lib/hpux64
  11831. fi
  11832. ;;
  11833. hppa*64*)
  11834. shrext_cmds='.sl'
  11835. hardcode_into_libs=yes
  11836. dynamic_linker="$host_os dld.sl"
  11837. shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
  11838. shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  11839. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  11840. soname_spec='$libname$release$shared_ext$major'
  11841. sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
  11842. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  11843. ;;
  11844. *)
  11845. shrext_cmds='.sl'
  11846. dynamic_linker="$host_os dld.sl"
  11847. shlibpath_var=SHLIB_PATH
  11848. shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
  11849. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  11850. soname_spec='$libname$release$shared_ext$major'
  11851. ;;
  11852. esac
  11853. # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
  11854. postinstall_cmds='chmod 555 $lib'
  11855. # or fails outright, so override atomically:
  11856. install_override_mode=555
  11857. ;;
  11858. interix[3-9]*)
  11859. version_type=linux # correct to gnu/linux during the next big refactor
  11860. need_lib_prefix=no
  11861. need_version=no
  11862. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  11863. soname_spec='$libname$release$shared_ext$major'
  11864. dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
  11865. shlibpath_var=LD_LIBRARY_PATH
  11866. shlibpath_overrides_runpath=no
  11867. hardcode_into_libs=yes
  11868. ;;
  11869. irix5* | irix6* | nonstopux*)
  11870. case $host_os in
  11871. nonstopux*) version_type=nonstopux ;;
  11872. *)
  11873. if test yes = "$lt_cv_prog_gnu_ld"; then
  11874. version_type=linux # correct to gnu/linux during the next big refactor
  11875. else
  11876. version_type=irix
  11877. fi ;;
  11878. esac
  11879. need_lib_prefix=no
  11880. need_version=no
  11881. soname_spec='$libname$release$shared_ext$major'
  11882. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext'
  11883. case $host_os in
  11884. irix5* | nonstopux*)
  11885. libsuff= shlibsuff=
  11886. ;;
  11887. *)
  11888. case $LD in # libtool.m4 will add one of these switches to LD
  11889. *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
  11890. libsuff= shlibsuff= libmagic=32-bit;;
  11891. *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
  11892. libsuff=32 shlibsuff=N32 libmagic=N32;;
  11893. *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
  11894. libsuff=64 shlibsuff=64 libmagic=64-bit;;
  11895. *) libsuff= shlibsuff= libmagic=never-match;;
  11896. esac
  11897. ;;
  11898. esac
  11899. shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
  11900. shlibpath_overrides_runpath=no
  11901. sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff"
  11902. sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff"
  11903. hardcode_into_libs=yes
  11904. ;;
  11905. # No shared lib support for Linux oldld, aout, or coff.
  11906. linux*oldld* | linux*aout* | linux*coff*)
  11907. dynamic_linker=no
  11908. ;;
  11909. linux*android*)
  11910. version_type=none # Android doesn't support versioned libraries.
  11911. need_lib_prefix=no
  11912. need_version=no
  11913. library_names_spec='$libname$release$shared_ext'
  11914. soname_spec='$libname$release$shared_ext'
  11915. finish_cmds=
  11916. shlibpath_var=LD_LIBRARY_PATH
  11917. shlibpath_overrides_runpath=yes
  11918. # This implies no fast_install, which is unacceptable.
  11919. # Some rework will be needed to allow for fast_install
  11920. # before this can be enabled.
  11921. hardcode_into_libs=yes
  11922. dynamic_linker='Android linker'
  11923. # Don't embed -rpath directories since the linker doesn't support them.
  11924. hardcode_libdir_flag_spec='-L$libdir'
  11925. ;;
  11926. # This must be glibc/ELF.
  11927. linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
  11928. version_type=linux # correct to gnu/linux during the next big refactor
  11929. need_lib_prefix=no
  11930. need_version=no
  11931. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  11932. soname_spec='$libname$release$shared_ext$major'
  11933. finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
  11934. shlibpath_var=LD_LIBRARY_PATH
  11935. shlibpath_overrides_runpath=no
  11936. # Some binutils ld are patched to set DT_RUNPATH
  11937. if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
  11938. $as_echo_n "(cached) " >&6
  11939. else
  11940. lt_cv_shlibpath_overrides_runpath=no
  11941. save_LDFLAGS=$LDFLAGS
  11942. save_libdir=$libdir
  11943. eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
  11944. LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
  11945. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11946. /* end confdefs.h. */
  11947. int
  11948. main ()
  11949. {
  11950. ;
  11951. return 0;
  11952. }
  11953. _ACEOF
  11954. if ac_fn_c_try_link "$LINENO"; then :
  11955. if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
  11956. lt_cv_shlibpath_overrides_runpath=yes
  11957. fi
  11958. fi
  11959. rm -f core conftest.err conftest.$ac_objext \
  11960. conftest$ac_exeext conftest.$ac_ext
  11961. LDFLAGS=$save_LDFLAGS
  11962. libdir=$save_libdir
  11963. fi
  11964. shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
  11965. # This implies no fast_install, which is unacceptable.
  11966. # Some rework will be needed to allow for fast_install
  11967. # before this can be enabled.
  11968. hardcode_into_libs=yes
  11969. # Add ABI-specific directories to the system library path.
  11970. sys_lib_dlsearch_path_spec="/lib64 /usr/lib64 /lib /usr/lib"
  11971. # Ideally, we could use ldconfig to report *all* directores which are
  11972. # searched for libraries, however this is still not possible. Aside from not
  11973. # being certain /sbin/ldconfig is available, command
  11974. # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64,
  11975. # even though it is searched at run-time. Try to do the best guess by
  11976. # appending ld.so.conf contents (and includes) to the search path.
  11977. if test -f /etc/ld.so.conf; then
  11978. 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' ' '`
  11979. sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra"
  11980. fi
  11981. # We used to test for /lib/ld.so.1 and disable shared libraries on
  11982. # powerpc, because MkLinux only supported shared libraries with the
  11983. # GNU dynamic linker. Since this was broken with cross compilers,
  11984. # most powerpc-linux boxes support dynamic linking these days and
  11985. # people can always --disable-shared, the test was removed, and we
  11986. # assume the GNU/Linux dynamic linker is in use.
  11987. dynamic_linker='GNU/Linux ld.so'
  11988. ;;
  11989. netbsd*)
  11990. version_type=sunos
  11991. need_lib_prefix=no
  11992. need_version=no
  11993. if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  11994. library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
  11995. finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  11996. dynamic_linker='NetBSD (a.out) ld.so'
  11997. else
  11998. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  11999. soname_spec='$libname$release$shared_ext$major'
  12000. dynamic_linker='NetBSD ld.elf_so'
  12001. fi
  12002. shlibpath_var=LD_LIBRARY_PATH
  12003. shlibpath_overrides_runpath=yes
  12004. hardcode_into_libs=yes
  12005. ;;
  12006. newsos6)
  12007. version_type=linux # correct to gnu/linux during the next big refactor
  12008. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  12009. shlibpath_var=LD_LIBRARY_PATH
  12010. shlibpath_overrides_runpath=yes
  12011. ;;
  12012. *nto* | *qnx*)
  12013. version_type=qnx
  12014. need_lib_prefix=no
  12015. need_version=no
  12016. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  12017. soname_spec='$libname$release$shared_ext$major'
  12018. shlibpath_var=LD_LIBRARY_PATH
  12019. shlibpath_overrides_runpath=no
  12020. hardcode_into_libs=yes
  12021. dynamic_linker='ldqnx.so'
  12022. ;;
  12023. openbsd* | bitrig*)
  12024. version_type=sunos
  12025. sys_lib_dlsearch_path_spec=/usr/lib
  12026. need_lib_prefix=no
  12027. if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
  12028. need_version=no
  12029. else
  12030. need_version=yes
  12031. fi
  12032. library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
  12033. finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  12034. shlibpath_var=LD_LIBRARY_PATH
  12035. shlibpath_overrides_runpath=yes
  12036. ;;
  12037. os2*)
  12038. libname_spec='$name'
  12039. version_type=windows
  12040. shrext_cmds=.dll
  12041. need_version=no
  12042. need_lib_prefix=no
  12043. # OS/2 can only load a DLL with a base name of 8 characters or less.
  12044. soname_spec='`test -n "$os2dllname" && libname="$os2dllname";
  12045. v=$($ECHO $release$versuffix | tr -d .-);
  12046. n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _);
  12047. $ECHO $n$v`$shared_ext'
  12048. library_names_spec='${libname}_dll.$libext'
  12049. dynamic_linker='OS/2 ld.exe'
  12050. shlibpath_var=BEGINLIBPATH
  12051. sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
  12052. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  12053. postinstall_cmds='base_file=`basename \$file`~
  12054. dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~
  12055. dldir=$destdir/`dirname \$dlpath`~
  12056. test -d \$dldir || mkdir -p \$dldir~
  12057. $install_prog $dir/$dlname \$dldir/$dlname~
  12058. chmod a+x \$dldir/$dlname~
  12059. if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
  12060. eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
  12061. fi'
  12062. postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~
  12063. dlpath=$dir/\$dldll~
  12064. $RM \$dlpath'
  12065. ;;
  12066. osf3* | osf4* | osf5*)
  12067. version_type=osf
  12068. need_lib_prefix=no
  12069. need_version=no
  12070. soname_spec='$libname$release$shared_ext$major'
  12071. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  12072. shlibpath_var=LD_LIBRARY_PATH
  12073. sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
  12074. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  12075. ;;
  12076. rdos*)
  12077. dynamic_linker=no
  12078. ;;
  12079. solaris*)
  12080. version_type=linux # correct to gnu/linux during the next big refactor
  12081. need_lib_prefix=no
  12082. need_version=no
  12083. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  12084. soname_spec='$libname$release$shared_ext$major'
  12085. shlibpath_var=LD_LIBRARY_PATH
  12086. shlibpath_overrides_runpath=yes
  12087. hardcode_into_libs=yes
  12088. # ldd complains unless libraries are executable
  12089. postinstall_cmds='chmod +x $lib'
  12090. ;;
  12091. sunos4*)
  12092. version_type=sunos
  12093. library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
  12094. finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
  12095. shlibpath_var=LD_LIBRARY_PATH
  12096. shlibpath_overrides_runpath=yes
  12097. if test yes = "$with_gnu_ld"; then
  12098. need_lib_prefix=no
  12099. fi
  12100. need_version=yes
  12101. ;;
  12102. sysv4 | sysv4.3*)
  12103. version_type=linux # correct to gnu/linux during the next big refactor
  12104. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  12105. soname_spec='$libname$release$shared_ext$major'
  12106. shlibpath_var=LD_LIBRARY_PATH
  12107. case $host_vendor in
  12108. sni)
  12109. shlibpath_overrides_runpath=no
  12110. need_lib_prefix=no
  12111. runpath_var=LD_RUN_PATH
  12112. ;;
  12113. siemens)
  12114. need_lib_prefix=no
  12115. ;;
  12116. motorola)
  12117. need_lib_prefix=no
  12118. need_version=no
  12119. shlibpath_overrides_runpath=no
  12120. sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
  12121. ;;
  12122. esac
  12123. ;;
  12124. sysv4*MP*)
  12125. if test -d /usr/nec; then
  12126. version_type=linux # correct to gnu/linux during the next big refactor
  12127. library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext'
  12128. soname_spec='$libname$shared_ext.$major'
  12129. shlibpath_var=LD_LIBRARY_PATH
  12130. fi
  12131. ;;
  12132. sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
  12133. version_type=sco
  12134. need_lib_prefix=no
  12135. need_version=no
  12136. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext'
  12137. soname_spec='$libname$release$shared_ext$major'
  12138. shlibpath_var=LD_LIBRARY_PATH
  12139. shlibpath_overrides_runpath=yes
  12140. hardcode_into_libs=yes
  12141. if test yes = "$with_gnu_ld"; then
  12142. sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
  12143. else
  12144. sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
  12145. case $host_os in
  12146. sco3.2v5*)
  12147. sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
  12148. ;;
  12149. esac
  12150. fi
  12151. sys_lib_dlsearch_path_spec='/usr/lib'
  12152. ;;
  12153. tpf*)
  12154. # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
  12155. version_type=linux # correct to gnu/linux during the next big refactor
  12156. need_lib_prefix=no
  12157. need_version=no
  12158. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  12159. shlibpath_var=LD_LIBRARY_PATH
  12160. shlibpath_overrides_runpath=no
  12161. hardcode_into_libs=yes
  12162. ;;
  12163. uts4*)
  12164. version_type=linux # correct to gnu/linux during the next big refactor
  12165. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  12166. soname_spec='$libname$release$shared_ext$major'
  12167. shlibpath_var=LD_LIBRARY_PATH
  12168. ;;
  12169. *)
  12170. dynamic_linker=no
  12171. ;;
  12172. esac
  12173. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
  12174. $as_echo "$dynamic_linker" >&6; }
  12175. test no = "$dynamic_linker" && can_build_shared=no
  12176. variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
  12177. if test yes = "$GCC"; then
  12178. variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
  12179. fi
  12180. if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then
  12181. sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec
  12182. fi
  12183. if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then
  12184. sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec
  12185. fi
  12186. # remember unaugmented sys_lib_dlsearch_path content for libtool script decls...
  12187. configure_time_dlsearch_path=$sys_lib_dlsearch_path_spec
  12188. # ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code
  12189. func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH"
  12190. # to be used as default LT_SYS_LIBRARY_PATH value in generated libtool
  12191. configure_time_lt_sys_library_path=$LT_SYS_LIBRARY_PATH
  12192. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
  12193. $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
  12194. hardcode_action=
  12195. if test -n "$hardcode_libdir_flag_spec" ||
  12196. test -n "$runpath_var" ||
  12197. test yes = "$hardcode_automatic"; then
  12198. # We can hardcode non-existent directories.
  12199. if test no != "$hardcode_direct" &&
  12200. # If the only mechanism to avoid hardcoding is shlibpath_var, we
  12201. # have to relink, otherwise we might link with an installed library
  12202. # when we should be linking with a yet-to-be-installed one
  12203. ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, )" &&
  12204. test no != "$hardcode_minus_L"; then
  12205. # Linking always hardcodes the temporary library directory.
  12206. hardcode_action=relink
  12207. else
  12208. # We can link without hardcoding, and we can hardcode nonexisting dirs.
  12209. hardcode_action=immediate
  12210. fi
  12211. else
  12212. # We cannot hardcode anything, or else we can only hardcode existing
  12213. # directories.
  12214. hardcode_action=unsupported
  12215. fi
  12216. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
  12217. $as_echo "$hardcode_action" >&6; }
  12218. if test relink = "$hardcode_action" ||
  12219. test yes = "$inherit_rpath"; then
  12220. # Fast installation is not supported
  12221. enable_fast_install=no
  12222. elif test yes = "$shlibpath_overrides_runpath" ||
  12223. test no = "$enable_shared"; then
  12224. # Fast installation is not necessary
  12225. enable_fast_install=needless
  12226. fi
  12227. if test yes != "$enable_dlopen"; then
  12228. enable_dlopen=unknown
  12229. enable_dlopen_self=unknown
  12230. enable_dlopen_self_static=unknown
  12231. else
  12232. lt_cv_dlopen=no
  12233. lt_cv_dlopen_libs=
  12234. case $host_os in
  12235. beos*)
  12236. lt_cv_dlopen=load_add_on
  12237. lt_cv_dlopen_libs=
  12238. lt_cv_dlopen_self=yes
  12239. ;;
  12240. mingw* | pw32* | cegcc*)
  12241. lt_cv_dlopen=LoadLibrary
  12242. lt_cv_dlopen_libs=
  12243. ;;
  12244. cygwin*)
  12245. lt_cv_dlopen=dlopen
  12246. lt_cv_dlopen_libs=
  12247. ;;
  12248. darwin*)
  12249. # if libdl is installed we need to link against it
  12250. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
  12251. $as_echo_n "checking for dlopen in -ldl... " >&6; }
  12252. if ${ac_cv_lib_dl_dlopen+:} false; then :
  12253. $as_echo_n "(cached) " >&6
  12254. else
  12255. ac_check_lib_save_LIBS=$LIBS
  12256. LIBS="-ldl $LIBS"
  12257. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12258. /* end confdefs.h. */
  12259. /* Override any GCC internal prototype to avoid an error.
  12260. Use char because int might match the return type of a GCC
  12261. builtin and then its argument prototype would still apply. */
  12262. #ifdef __cplusplus
  12263. extern "C"
  12264. #endif
  12265. char dlopen ();
  12266. int
  12267. main ()
  12268. {
  12269. return dlopen ();
  12270. ;
  12271. return 0;
  12272. }
  12273. _ACEOF
  12274. if ac_fn_c_try_link "$LINENO"; then :
  12275. ac_cv_lib_dl_dlopen=yes
  12276. else
  12277. ac_cv_lib_dl_dlopen=no
  12278. fi
  12279. rm -f core conftest.err conftest.$ac_objext \
  12280. conftest$ac_exeext conftest.$ac_ext
  12281. LIBS=$ac_check_lib_save_LIBS
  12282. fi
  12283. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
  12284. $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
  12285. if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
  12286. lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
  12287. else
  12288. lt_cv_dlopen=dyld
  12289. lt_cv_dlopen_libs=
  12290. lt_cv_dlopen_self=yes
  12291. fi
  12292. ;;
  12293. tpf*)
  12294. # Don't try to run any link tests for TPF. We know it's impossible
  12295. # because TPF is a cross-compiler, and we know how we open DSOs.
  12296. lt_cv_dlopen=dlopen
  12297. lt_cv_dlopen_libs=
  12298. lt_cv_dlopen_self=no
  12299. ;;
  12300. *)
  12301. ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
  12302. if test "x$ac_cv_func_shl_load" = xyes; then :
  12303. lt_cv_dlopen=shl_load
  12304. else
  12305. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
  12306. $as_echo_n "checking for shl_load in -ldld... " >&6; }
  12307. if ${ac_cv_lib_dld_shl_load+:} false; then :
  12308. $as_echo_n "(cached) " >&6
  12309. else
  12310. ac_check_lib_save_LIBS=$LIBS
  12311. LIBS="-ldld $LIBS"
  12312. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12313. /* end confdefs.h. */
  12314. /* Override any GCC internal prototype to avoid an error.
  12315. Use char because int might match the return type of a GCC
  12316. builtin and then its argument prototype would still apply. */
  12317. #ifdef __cplusplus
  12318. extern "C"
  12319. #endif
  12320. char shl_load ();
  12321. int
  12322. main ()
  12323. {
  12324. return shl_load ();
  12325. ;
  12326. return 0;
  12327. }
  12328. _ACEOF
  12329. if ac_fn_c_try_link "$LINENO"; then :
  12330. ac_cv_lib_dld_shl_load=yes
  12331. else
  12332. ac_cv_lib_dld_shl_load=no
  12333. fi
  12334. rm -f core conftest.err conftest.$ac_objext \
  12335. conftest$ac_exeext conftest.$ac_ext
  12336. LIBS=$ac_check_lib_save_LIBS
  12337. fi
  12338. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
  12339. $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
  12340. if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
  12341. lt_cv_dlopen=shl_load lt_cv_dlopen_libs=-ldld
  12342. else
  12343. ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
  12344. if test "x$ac_cv_func_dlopen" = xyes; then :
  12345. lt_cv_dlopen=dlopen
  12346. else
  12347. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
  12348. $as_echo_n "checking for dlopen in -ldl... " >&6; }
  12349. if ${ac_cv_lib_dl_dlopen+:} false; then :
  12350. $as_echo_n "(cached) " >&6
  12351. else
  12352. ac_check_lib_save_LIBS=$LIBS
  12353. LIBS="-ldl $LIBS"
  12354. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12355. /* end confdefs.h. */
  12356. /* Override any GCC internal prototype to avoid an error.
  12357. Use char because int might match the return type of a GCC
  12358. builtin and then its argument prototype would still apply. */
  12359. #ifdef __cplusplus
  12360. extern "C"
  12361. #endif
  12362. char dlopen ();
  12363. int
  12364. main ()
  12365. {
  12366. return dlopen ();
  12367. ;
  12368. return 0;
  12369. }
  12370. _ACEOF
  12371. if ac_fn_c_try_link "$LINENO"; then :
  12372. ac_cv_lib_dl_dlopen=yes
  12373. else
  12374. ac_cv_lib_dl_dlopen=no
  12375. fi
  12376. rm -f core conftest.err conftest.$ac_objext \
  12377. conftest$ac_exeext conftest.$ac_ext
  12378. LIBS=$ac_check_lib_save_LIBS
  12379. fi
  12380. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
  12381. $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
  12382. if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
  12383. lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
  12384. else
  12385. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
  12386. $as_echo_n "checking for dlopen in -lsvld... " >&6; }
  12387. if ${ac_cv_lib_svld_dlopen+:} false; then :
  12388. $as_echo_n "(cached) " >&6
  12389. else
  12390. ac_check_lib_save_LIBS=$LIBS
  12391. LIBS="-lsvld $LIBS"
  12392. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12393. /* end confdefs.h. */
  12394. /* Override any GCC internal prototype to avoid an error.
  12395. Use char because int might match the return type of a GCC
  12396. builtin and then its argument prototype would still apply. */
  12397. #ifdef __cplusplus
  12398. extern "C"
  12399. #endif
  12400. char dlopen ();
  12401. int
  12402. main ()
  12403. {
  12404. return dlopen ();
  12405. ;
  12406. return 0;
  12407. }
  12408. _ACEOF
  12409. if ac_fn_c_try_link "$LINENO"; then :
  12410. ac_cv_lib_svld_dlopen=yes
  12411. else
  12412. ac_cv_lib_svld_dlopen=no
  12413. fi
  12414. rm -f core conftest.err conftest.$ac_objext \
  12415. conftest$ac_exeext conftest.$ac_ext
  12416. LIBS=$ac_check_lib_save_LIBS
  12417. fi
  12418. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
  12419. $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
  12420. if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
  12421. lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-lsvld
  12422. else
  12423. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
  12424. $as_echo_n "checking for dld_link in -ldld... " >&6; }
  12425. if ${ac_cv_lib_dld_dld_link+:} false; then :
  12426. $as_echo_n "(cached) " >&6
  12427. else
  12428. ac_check_lib_save_LIBS=$LIBS
  12429. LIBS="-ldld $LIBS"
  12430. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12431. /* end confdefs.h. */
  12432. /* Override any GCC internal prototype to avoid an error.
  12433. Use char because int might match the return type of a GCC
  12434. builtin and then its argument prototype would still apply. */
  12435. #ifdef __cplusplus
  12436. extern "C"
  12437. #endif
  12438. char dld_link ();
  12439. int
  12440. main ()
  12441. {
  12442. return dld_link ();
  12443. ;
  12444. return 0;
  12445. }
  12446. _ACEOF
  12447. if ac_fn_c_try_link "$LINENO"; then :
  12448. ac_cv_lib_dld_dld_link=yes
  12449. else
  12450. ac_cv_lib_dld_dld_link=no
  12451. fi
  12452. rm -f core conftest.err conftest.$ac_objext \
  12453. conftest$ac_exeext conftest.$ac_ext
  12454. LIBS=$ac_check_lib_save_LIBS
  12455. fi
  12456. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
  12457. $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
  12458. if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
  12459. lt_cv_dlopen=dld_link lt_cv_dlopen_libs=-ldld
  12460. fi
  12461. fi
  12462. fi
  12463. fi
  12464. fi
  12465. fi
  12466. ;;
  12467. esac
  12468. if test no = "$lt_cv_dlopen"; then
  12469. enable_dlopen=no
  12470. else
  12471. enable_dlopen=yes
  12472. fi
  12473. case $lt_cv_dlopen in
  12474. dlopen)
  12475. save_CPPFLAGS=$CPPFLAGS
  12476. test yes = "$ac_cv_header_dlfcn_h" && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
  12477. save_LDFLAGS=$LDFLAGS
  12478. wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
  12479. save_LIBS=$LIBS
  12480. LIBS="$lt_cv_dlopen_libs $LIBS"
  12481. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
  12482. $as_echo_n "checking whether a program can dlopen itself... " >&6; }
  12483. if ${lt_cv_dlopen_self+:} false; then :
  12484. $as_echo_n "(cached) " >&6
  12485. else
  12486. if test yes = "$cross_compiling"; then :
  12487. lt_cv_dlopen_self=cross
  12488. else
  12489. lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
  12490. lt_status=$lt_dlunknown
  12491. cat > conftest.$ac_ext <<_LT_EOF
  12492. #line $LINENO "configure"
  12493. #include "confdefs.h"
  12494. #if HAVE_DLFCN_H
  12495. #include <dlfcn.h>
  12496. #endif
  12497. #include <stdio.h>
  12498. #ifdef RTLD_GLOBAL
  12499. # define LT_DLGLOBAL RTLD_GLOBAL
  12500. #else
  12501. # ifdef DL_GLOBAL
  12502. # define LT_DLGLOBAL DL_GLOBAL
  12503. # else
  12504. # define LT_DLGLOBAL 0
  12505. # endif
  12506. #endif
  12507. /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
  12508. find out it does not work in some platform. */
  12509. #ifndef LT_DLLAZY_OR_NOW
  12510. # ifdef RTLD_LAZY
  12511. # define LT_DLLAZY_OR_NOW RTLD_LAZY
  12512. # else
  12513. # ifdef DL_LAZY
  12514. # define LT_DLLAZY_OR_NOW DL_LAZY
  12515. # else
  12516. # ifdef RTLD_NOW
  12517. # define LT_DLLAZY_OR_NOW RTLD_NOW
  12518. # else
  12519. # ifdef DL_NOW
  12520. # define LT_DLLAZY_OR_NOW DL_NOW
  12521. # else
  12522. # define LT_DLLAZY_OR_NOW 0
  12523. # endif
  12524. # endif
  12525. # endif
  12526. # endif
  12527. #endif
  12528. /* When -fvisibility=hidden is used, assume the code has been annotated
  12529. correspondingly for the symbols needed. */
  12530. #if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
  12531. int fnord () __attribute__((visibility("default")));
  12532. #endif
  12533. int fnord () { return 42; }
  12534. int main ()
  12535. {
  12536. void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
  12537. int status = $lt_dlunknown;
  12538. if (self)
  12539. {
  12540. if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
  12541. else
  12542. {
  12543. if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
  12544. else puts (dlerror ());
  12545. }
  12546. /* dlclose (self); */
  12547. }
  12548. else
  12549. puts (dlerror ());
  12550. return status;
  12551. }
  12552. _LT_EOF
  12553. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
  12554. (eval $ac_link) 2>&5
  12555. ac_status=$?
  12556. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  12557. test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
  12558. (./conftest; exit; ) >&5 2>/dev/null
  12559. lt_status=$?
  12560. case x$lt_status in
  12561. x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
  12562. x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
  12563. x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
  12564. esac
  12565. else :
  12566. # compilation failed
  12567. lt_cv_dlopen_self=no
  12568. fi
  12569. fi
  12570. rm -fr conftest*
  12571. fi
  12572. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
  12573. $as_echo "$lt_cv_dlopen_self" >&6; }
  12574. if test yes = "$lt_cv_dlopen_self"; then
  12575. wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
  12576. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
  12577. $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
  12578. if ${lt_cv_dlopen_self_static+:} false; then :
  12579. $as_echo_n "(cached) " >&6
  12580. else
  12581. if test yes = "$cross_compiling"; then :
  12582. lt_cv_dlopen_self_static=cross
  12583. else
  12584. lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
  12585. lt_status=$lt_dlunknown
  12586. cat > conftest.$ac_ext <<_LT_EOF
  12587. #line $LINENO "configure"
  12588. #include "confdefs.h"
  12589. #if HAVE_DLFCN_H
  12590. #include <dlfcn.h>
  12591. #endif
  12592. #include <stdio.h>
  12593. #ifdef RTLD_GLOBAL
  12594. # define LT_DLGLOBAL RTLD_GLOBAL
  12595. #else
  12596. # ifdef DL_GLOBAL
  12597. # define LT_DLGLOBAL DL_GLOBAL
  12598. # else
  12599. # define LT_DLGLOBAL 0
  12600. # endif
  12601. #endif
  12602. /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
  12603. find out it does not work in some platform. */
  12604. #ifndef LT_DLLAZY_OR_NOW
  12605. # ifdef RTLD_LAZY
  12606. # define LT_DLLAZY_OR_NOW RTLD_LAZY
  12607. # else
  12608. # ifdef DL_LAZY
  12609. # define LT_DLLAZY_OR_NOW DL_LAZY
  12610. # else
  12611. # ifdef RTLD_NOW
  12612. # define LT_DLLAZY_OR_NOW RTLD_NOW
  12613. # else
  12614. # ifdef DL_NOW
  12615. # define LT_DLLAZY_OR_NOW DL_NOW
  12616. # else
  12617. # define LT_DLLAZY_OR_NOW 0
  12618. # endif
  12619. # endif
  12620. # endif
  12621. # endif
  12622. #endif
  12623. /* When -fvisibility=hidden is used, assume the code has been annotated
  12624. correspondingly for the symbols needed. */
  12625. #if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
  12626. int fnord () __attribute__((visibility("default")));
  12627. #endif
  12628. int fnord () { return 42; }
  12629. int main ()
  12630. {
  12631. void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
  12632. int status = $lt_dlunknown;
  12633. if (self)
  12634. {
  12635. if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
  12636. else
  12637. {
  12638. if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
  12639. else puts (dlerror ());
  12640. }
  12641. /* dlclose (self); */
  12642. }
  12643. else
  12644. puts (dlerror ());
  12645. return status;
  12646. }
  12647. _LT_EOF
  12648. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
  12649. (eval $ac_link) 2>&5
  12650. ac_status=$?
  12651. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  12652. test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
  12653. (./conftest; exit; ) >&5 2>/dev/null
  12654. lt_status=$?
  12655. case x$lt_status in
  12656. x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
  12657. x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
  12658. x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
  12659. esac
  12660. else :
  12661. # compilation failed
  12662. lt_cv_dlopen_self_static=no
  12663. fi
  12664. fi
  12665. rm -fr conftest*
  12666. fi
  12667. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
  12668. $as_echo "$lt_cv_dlopen_self_static" >&6; }
  12669. fi
  12670. CPPFLAGS=$save_CPPFLAGS
  12671. LDFLAGS=$save_LDFLAGS
  12672. LIBS=$save_LIBS
  12673. ;;
  12674. esac
  12675. case $lt_cv_dlopen_self in
  12676. yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
  12677. *) enable_dlopen_self=unknown ;;
  12678. esac
  12679. case $lt_cv_dlopen_self_static in
  12680. yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
  12681. *) enable_dlopen_self_static=unknown ;;
  12682. esac
  12683. fi
  12684. striplib=
  12685. old_striplib=
  12686. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
  12687. $as_echo_n "checking whether stripping libraries is possible... " >&6; }
  12688. if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
  12689. test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
  12690. test -z "$striplib" && striplib="$STRIP --strip-unneeded"
  12691. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  12692. $as_echo "yes" >&6; }
  12693. else
  12694. # FIXME - insert some real tests, host_os isn't really good enough
  12695. case $host_os in
  12696. darwin*)
  12697. if test -n "$STRIP"; then
  12698. striplib="$STRIP -x"
  12699. old_striplib="$STRIP -S"
  12700. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  12701. $as_echo "yes" >&6; }
  12702. else
  12703. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  12704. $as_echo "no" >&6; }
  12705. fi
  12706. ;;
  12707. *)
  12708. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  12709. $as_echo "no" >&6; }
  12710. ;;
  12711. esac
  12712. fi
  12713. # Report what library types will actually be built
  12714. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
  12715. $as_echo_n "checking if libtool supports shared libraries... " >&6; }
  12716. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
  12717. $as_echo "$can_build_shared" >&6; }
  12718. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
  12719. $as_echo_n "checking whether to build shared libraries... " >&6; }
  12720. test no = "$can_build_shared" && enable_shared=no
  12721. # On AIX, shared libraries and static libraries use the same namespace, and
  12722. # are all built from PIC.
  12723. case $host_os in
  12724. aix3*)
  12725. test yes = "$enable_shared" && enable_static=no
  12726. if test -n "$RANLIB"; then
  12727. archive_cmds="$archive_cmds~\$RANLIB \$lib"
  12728. postinstall_cmds='$RANLIB $lib'
  12729. fi
  12730. ;;
  12731. aix[4-9]*)
  12732. if test ia64 != "$host_cpu"; then
  12733. case $enable_shared,$with_aix_soname,$aix_use_runtimelinking in
  12734. yes,aix,yes) ;; # shared object as lib.so file only
  12735. yes,svr4,*) ;; # shared object as lib.so archive member only
  12736. yes,*) enable_static=no ;; # shared object in lib.a archive as well
  12737. esac
  12738. fi
  12739. ;;
  12740. esac
  12741. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
  12742. $as_echo "$enable_shared" >&6; }
  12743. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
  12744. $as_echo_n "checking whether to build static libraries... " >&6; }
  12745. # Make sure either enable_shared or enable_static is yes.
  12746. test yes = "$enable_shared" || enable_static=yes
  12747. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
  12748. $as_echo "$enable_static" >&6; }
  12749. fi
  12750. ac_ext=c
  12751. ac_cpp='$CPP $CPPFLAGS'
  12752. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  12753. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  12754. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  12755. CC=$lt_save_CC
  12756. ac_config_commands="$ac_config_commands libtool"
  12757. # Only expand once:
  12758. # Checks to compile test suite
  12759. # The cast to long int works around a bug in the HP C Compiler
  12760. # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
  12761. # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
  12762. # This bug is HP SR number 8606223364.
  12763. { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of time_t" >&5
  12764. $as_echo_n "checking size of time_t... " >&6; }
  12765. if ${ac_cv_sizeof_time_t+:} false; then :
  12766. $as_echo_n "(cached) " >&6
  12767. else
  12768. if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (time_t))" "ac_cv_sizeof_time_t" "$ac_includes_default
  12769. #ifdef HAVE_SYS_TIME_H
  12770. #include <sys/time.h>
  12771. #endif
  12772. "; then :
  12773. else
  12774. if test "$ac_cv_type_time_t" = yes; then
  12775. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  12776. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  12777. as_fn_error 77 "cannot compute sizeof (time_t)
  12778. See \`config.log' for more details" "$LINENO" 5; }
  12779. else
  12780. ac_cv_sizeof_time_t=0
  12781. fi
  12782. fi
  12783. fi
  12784. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_time_t" >&5
  12785. $as_echo "$ac_cv_sizeof_time_t" >&6; }
  12786. cat >>confdefs.h <<_ACEOF
  12787. #define SIZEOF_TIME_T $ac_cv_sizeof_time_t
  12788. _ACEOF
  12789. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print time_t" >&5
  12790. $as_echo_n "checking how to print time_t... " >&6; }
  12791. if ${ne_cv_fmt_time_t+:} false; then :
  12792. $as_echo_n "(cached) " >&6
  12793. else
  12794. ne_cv_fmt_time_t=none
  12795. if test $ne_fmt_trycompile = yes; then
  12796. oflags="$CPPFLAGS"
  12797. # Consider format string mismatches as errors
  12798. CPPFLAGS="$CPPFLAGS -Wformat -Werror"
  12799. for str in d ld lld; do
  12800. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12801. /* end confdefs.h. */
  12802. #include <sys/types.h>
  12803. #ifdef HAVE_SYS_TIME_H
  12804. #include <sys/time.h>
  12805. #endif
  12806. #include <stdio.h>
  12807. int
  12808. main ()
  12809. {
  12810. time_t i = 1; printf("%$str", i);
  12811. ;
  12812. return 0;
  12813. }
  12814. _ACEOF
  12815. if ac_fn_c_try_compile "$LINENO"; then :
  12816. ne_cv_fmt_time_t=$str; break
  12817. fi
  12818. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  12819. done
  12820. CPPFLAGS=$oflags
  12821. else
  12822. # Best guess. Don't have to be too precise since we probably won't
  12823. # get a warning message anyway.
  12824. case $ac_cv_sizeof_time_t in
  12825. $ac_cv_sizeof_int) ne_cv_fmt_time_t="d" ;;
  12826. $ac_cv_sizeof_long) ne_cv_fmt_time_t="ld" ;;
  12827. $ac_cv_sizeof_long_long) ne_cv_fmt_time_t="lld" ;;
  12828. esac
  12829. fi
  12830. fi
  12831. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ne_cv_fmt_time_t" >&5
  12832. $as_echo "$ne_cv_fmt_time_t" >&6; }
  12833. if test "x$ne_cv_fmt_time_t" = "xnone"; then
  12834. as_fn_error $? "format string for time_t not found" "$LINENO" 5
  12835. fi
  12836. cat >>confdefs.h <<_ACEOF
  12837. #define NE_FMT_TIME_T "$ne_cv_fmt_time_t"
  12838. _ACEOF
  12839. ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
  12840. if test "x$ac_cv_type_pid_t" = xyes; then :
  12841. else
  12842. cat >>confdefs.h <<_ACEOF
  12843. #define pid_t int
  12844. _ACEOF
  12845. fi
  12846. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5
  12847. $as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
  12848. if ${ac_cv_header_time+:} false; then :
  12849. $as_echo_n "(cached) " >&6
  12850. else
  12851. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12852. /* end confdefs.h. */
  12853. #include <sys/types.h>
  12854. #include <sys/time.h>
  12855. #include <time.h>
  12856. int
  12857. main ()
  12858. {
  12859. if ((struct tm *) 0)
  12860. return 0;
  12861. ;
  12862. return 0;
  12863. }
  12864. _ACEOF
  12865. if ac_fn_c_try_compile "$LINENO"; then :
  12866. ac_cv_header_time=yes
  12867. else
  12868. ac_cv_header_time=no
  12869. fi
  12870. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  12871. fi
  12872. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
  12873. $as_echo "$ac_cv_header_time" >&6; }
  12874. if test $ac_cv_header_time = yes; then
  12875. $as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
  12876. fi
  12877. # Search in /usr/ccs/bin for Solaris
  12878. ne_PATH=$PATH:/usr/ccs/bin
  12879. if test -n "$ac_tool_prefix"; then
  12880. # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
  12881. set dummy ${ac_tool_prefix}ar; ac_word=$2
  12882. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  12883. $as_echo_n "checking for $ac_word... " >&6; }
  12884. if ${ac_cv_path_AR+:} false; then :
  12885. $as_echo_n "(cached) " >&6
  12886. else
  12887. case $AR in
  12888. [\\/]* | ?:[\\/]*)
  12889. ac_cv_path_AR="$AR" # Let the user override the test with a path.
  12890. ;;
  12891. *)
  12892. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  12893. for as_dir in $ne_PATH
  12894. do
  12895. IFS=$as_save_IFS
  12896. test -z "$as_dir" && as_dir=.
  12897. for ac_exec_ext in '' $ac_executable_extensions; do
  12898. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  12899. ac_cv_path_AR="$as_dir/$ac_word$ac_exec_ext"
  12900. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  12901. break 2
  12902. fi
  12903. done
  12904. done
  12905. IFS=$as_save_IFS
  12906. ;;
  12907. esac
  12908. fi
  12909. AR=$ac_cv_path_AR
  12910. if test -n "$AR"; then
  12911. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
  12912. $as_echo "$AR" >&6; }
  12913. else
  12914. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  12915. $as_echo "no" >&6; }
  12916. fi
  12917. fi
  12918. if test -z "$ac_cv_path_AR"; then
  12919. ac_pt_AR=$AR
  12920. # Extract the first word of "ar", so it can be a program name with args.
  12921. set dummy ar; ac_word=$2
  12922. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  12923. $as_echo_n "checking for $ac_word... " >&6; }
  12924. if ${ac_cv_path_ac_pt_AR+:} false; then :
  12925. $as_echo_n "(cached) " >&6
  12926. else
  12927. case $ac_pt_AR in
  12928. [\\/]* | ?:[\\/]*)
  12929. ac_cv_path_ac_pt_AR="$ac_pt_AR" # Let the user override the test with a path.
  12930. ;;
  12931. *)
  12932. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  12933. for as_dir in $ne_PATH
  12934. do
  12935. IFS=$as_save_IFS
  12936. test -z "$as_dir" && as_dir=.
  12937. for ac_exec_ext in '' $ac_executable_extensions; do
  12938. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  12939. ac_cv_path_ac_pt_AR="$as_dir/$ac_word$ac_exec_ext"
  12940. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  12941. break 2
  12942. fi
  12943. done
  12944. done
  12945. IFS=$as_save_IFS
  12946. ;;
  12947. esac
  12948. fi
  12949. ac_pt_AR=$ac_cv_path_ac_pt_AR
  12950. if test -n "$ac_pt_AR"; then
  12951. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_AR" >&5
  12952. $as_echo "$ac_pt_AR" >&6; }
  12953. else
  12954. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  12955. $as_echo "no" >&6; }
  12956. fi
  12957. if test "x$ac_pt_AR" = x; then
  12958. AR="notfound"
  12959. else
  12960. case $cross_compiling:$ac_tool_warned in
  12961. yes:)
  12962. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  12963. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  12964. ac_tool_warned=yes ;;
  12965. esac
  12966. AR=$ac_pt_AR
  12967. fi
  12968. else
  12969. AR="$ac_cv_path_AR"
  12970. fi
  12971. if test "x$AR" = "xnotfound"; then
  12972. as_fn_error $? "could not find ar tool" "$LINENO" 5
  12973. fi
  12974. if test -n "$ac_tool_prefix"; then
  12975. # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
  12976. set dummy ${ac_tool_prefix}ranlib; ac_word=$2
  12977. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  12978. $as_echo_n "checking for $ac_word... " >&6; }
  12979. if ${ac_cv_path_RANLIB+:} false; then :
  12980. $as_echo_n "(cached) " >&6
  12981. else
  12982. case $RANLIB in
  12983. [\\/]* | ?:[\\/]*)
  12984. ac_cv_path_RANLIB="$RANLIB" # Let the user override the test with a path.
  12985. ;;
  12986. *)
  12987. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  12988. for as_dir in $ne_PATH
  12989. do
  12990. IFS=$as_save_IFS
  12991. test -z "$as_dir" && as_dir=.
  12992. for ac_exec_ext in '' $ac_executable_extensions; do
  12993. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  12994. ac_cv_path_RANLIB="$as_dir/$ac_word$ac_exec_ext"
  12995. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  12996. break 2
  12997. fi
  12998. done
  12999. done
  13000. IFS=$as_save_IFS
  13001. ;;
  13002. esac
  13003. fi
  13004. RANLIB=$ac_cv_path_RANLIB
  13005. if test -n "$RANLIB"; then
  13006. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
  13007. $as_echo "$RANLIB" >&6; }
  13008. else
  13009. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  13010. $as_echo "no" >&6; }
  13011. fi
  13012. fi
  13013. if test -z "$ac_cv_path_RANLIB"; then
  13014. ac_pt_RANLIB=$RANLIB
  13015. # Extract the first word of "ranlib", so it can be a program name with args.
  13016. set dummy ranlib; ac_word=$2
  13017. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  13018. $as_echo_n "checking for $ac_word... " >&6; }
  13019. if ${ac_cv_path_ac_pt_RANLIB+:} false; then :
  13020. $as_echo_n "(cached) " >&6
  13021. else
  13022. case $ac_pt_RANLIB in
  13023. [\\/]* | ?:[\\/]*)
  13024. ac_cv_path_ac_pt_RANLIB="$ac_pt_RANLIB" # Let the user override the test with a path.
  13025. ;;
  13026. *)
  13027. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  13028. for as_dir in $ne_PATH
  13029. do
  13030. IFS=$as_save_IFS
  13031. test -z "$as_dir" && as_dir=.
  13032. for ac_exec_ext in '' $ac_executable_extensions; do
  13033. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  13034. ac_cv_path_ac_pt_RANLIB="$as_dir/$ac_word$ac_exec_ext"
  13035. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  13036. break 2
  13037. fi
  13038. done
  13039. done
  13040. IFS=$as_save_IFS
  13041. ;;
  13042. esac
  13043. fi
  13044. ac_pt_RANLIB=$ac_cv_path_ac_pt_RANLIB
  13045. if test -n "$ac_pt_RANLIB"; then
  13046. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_RANLIB" >&5
  13047. $as_echo "$ac_pt_RANLIB" >&6; }
  13048. else
  13049. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  13050. $as_echo "no" >&6; }
  13051. fi
  13052. if test "x$ac_pt_RANLIB" = x; then
  13053. RANLIB=":"
  13054. else
  13055. case $cross_compiling:$ac_tool_warned in
  13056. yes:)
  13057. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  13058. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  13059. ac_tool_warned=yes ;;
  13060. esac
  13061. RANLIB=$ac_pt_RANLIB
  13062. fi
  13063. else
  13064. RANLIB="$ac_cv_path_RANLIB"
  13065. fi
  13066. for ac_header in sys/time.h signal.h stdint.h locale.h
  13067. do :
  13068. as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
  13069. ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
  13070. if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
  13071. cat >>confdefs.h <<_ACEOF
  13072. #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
  13073. _ACEOF
  13074. fi
  13075. done
  13076. for ac_func in pipe isatty usleep shutdown setlocale gethostname
  13077. do :
  13078. as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
  13079. ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
  13080. if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
  13081. cat >>confdefs.h <<_ACEOF
  13082. #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
  13083. _ACEOF
  13084. fi
  13085. done
  13086. # Use the libtool-type build.
  13087. NEON_TARGET=libneon.la
  13088. NEON_OBJEXT=lo
  13089. # Using the default set of object files to build.
  13090. # Add the extension to EXTRAOBJS
  13091. ne="$NEON_EXTRAOBJS"
  13092. NEON_EXTRAOBJS=
  13093. for o in $ne; do
  13094. NEON_EXTRAOBJS="$NEON_EXTRAOBJS $o.$NEON_OBJEXT"
  13095. done
  13096. # Was DAV support explicitly turned off?
  13097. if test "x$neon_no_webdav" = "xyes"; then
  13098. # No WebDAV support
  13099. NEONOBJS="$NEONOBJS \$(NEON_BASEOBJS)"
  13100. NE_FLAG_DAV=no
  13101. ne_DAV_message="WebDAV support is not enabled"
  13102. { $as_echo "$as_me:${as_lineno-$LINENO}: WebDAV support is not enabled" >&5
  13103. $as_echo "$as_me: WebDAV support is not enabled" >&6;}
  13104. if test "x${NE_LIBTOOL_RELEASE}y" = "xy"; then
  13105. NE_LIBTOOL_RELEASE="NODAV"
  13106. else
  13107. NE_LIBTOOL_RELEASE="${NE_LIBTOOL_RELEASE}-NODAV"
  13108. fi
  13109. else
  13110. # WebDAV support
  13111. NEONOBJS="$NEONOBJS \$(NEON_DAVOBJS)"
  13112. NE_FLAG_DAV=yes
  13113. $as_echo "#define NE_HAVE_DAV 1" >>confdefs.h
  13114. ne_DAV_message="WebDAV support is enabled"
  13115. { $as_echo "$as_me:${as_lineno-$LINENO}: WebDAV support is enabled" >&5
  13116. $as_echo "$as_me: WebDAV support is enabled" >&6;}
  13117. fi
  13118. # Find an XML parser
  13119. # Check whether --with-libxml2 was given.
  13120. if test "${with_libxml2+set}" = set; then :
  13121. withval=$with_libxml2;
  13122. fi
  13123. # Check whether --with-expat was given.
  13124. if test "${with_expat+set}" = set; then :
  13125. withval=$with_expat;
  13126. fi
  13127. with_included_expat=no
  13128. if test "$NEON_NEED_XML_PARSER" = "yes"; then
  13129. # Find an XML parser
  13130. neon_xml_parser=none
  13131. # Forced choice of expat:
  13132. case $with_expat in
  13133. yes)
  13134. ac_fn_c_check_header_mongrel "$LINENO" "expat.h" "ac_cv_header_expat_h" "$ac_includes_default"
  13135. if test "x$ac_cv_header_expat_h" = xyes; then :
  13136. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XML_SetXmlDeclHandler in -lexpat" >&5
  13137. $as_echo_n "checking for XML_SetXmlDeclHandler in -lexpat... " >&6; }
  13138. if ${ac_cv_lib_expat_XML_SetXmlDeclHandler+:} false; then :
  13139. $as_echo_n "(cached) " >&6
  13140. else
  13141. ac_check_lib_save_LIBS=$LIBS
  13142. LIBS="-lexpat $LIBS"
  13143. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13144. /* end confdefs.h. */
  13145. /* Override any GCC internal prototype to avoid an error.
  13146. Use char because int might match the return type of a GCC
  13147. builtin and then its argument prototype would still apply. */
  13148. #ifdef __cplusplus
  13149. extern "C"
  13150. #endif
  13151. char XML_SetXmlDeclHandler ();
  13152. int
  13153. main ()
  13154. {
  13155. return XML_SetXmlDeclHandler ();
  13156. ;
  13157. return 0;
  13158. }
  13159. _ACEOF
  13160. if ac_fn_c_try_link "$LINENO"; then :
  13161. ac_cv_lib_expat_XML_SetXmlDeclHandler=yes
  13162. else
  13163. ac_cv_lib_expat_XML_SetXmlDeclHandler=no
  13164. fi
  13165. rm -f core conftest.err conftest.$ac_objext \
  13166. conftest$ac_exeext conftest.$ac_ext
  13167. LIBS=$ac_check_lib_save_LIBS
  13168. fi
  13169. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_expat_XML_SetXmlDeclHandler" >&5
  13170. $as_echo "$ac_cv_lib_expat_XML_SetXmlDeclHandler" >&6; }
  13171. if test "x$ac_cv_lib_expat_XML_SetXmlDeclHandler" = xyes; then :
  13172. $as_echo "#define HAVE_EXPAT 1" >>confdefs.h
  13173. neon_xml_parser_message="expat"
  13174. NEON_LIBS="$NEON_LIBS -lexpat"
  13175. neon_xml_parser=expat
  13176. ac_fn_c_check_type "$LINENO" "XML_Size" "ac_cv_type_XML_Size" "#include <expat.h>
  13177. "
  13178. if test "x$ac_cv_type_XML_Size" = xyes; then :
  13179. # The cast to long int works around a bug in the HP C Compiler
  13180. # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
  13181. # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
  13182. # This bug is HP SR number 8606223364.
  13183. { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of XML_Size" >&5
  13184. $as_echo_n "checking size of XML_Size... " >&6; }
  13185. if ${ac_cv_sizeof_XML_Size+:} false; then :
  13186. $as_echo_n "(cached) " >&6
  13187. else
  13188. if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (XML_Size))" "ac_cv_sizeof_XML_Size" "$ac_includes_default
  13189. #include <expat.h>
  13190. "; then :
  13191. else
  13192. if test "$ac_cv_type_XML_Size" = yes; then
  13193. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  13194. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  13195. as_fn_error 77 "cannot compute sizeof (XML_Size)
  13196. See \`config.log' for more details" "$LINENO" 5; }
  13197. else
  13198. ac_cv_sizeof_XML_Size=0
  13199. fi
  13200. fi
  13201. fi
  13202. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_XML_Size" >&5
  13203. $as_echo "$ac_cv_sizeof_XML_Size" >&6; }
  13204. cat >>confdefs.h <<_ACEOF
  13205. #define SIZEOF_XML_SIZE $ac_cv_sizeof_XML_Size
  13206. _ACEOF
  13207. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print XML_Size" >&5
  13208. $as_echo_n "checking how to print XML_Size... " >&6; }
  13209. if ${ne_cv_fmt_XML_Size+:} false; then :
  13210. $as_echo_n "(cached) " >&6
  13211. else
  13212. ne_cv_fmt_XML_Size=none
  13213. if test $ne_fmt_trycompile = yes; then
  13214. oflags="$CPPFLAGS"
  13215. # Consider format string mismatches as errors
  13216. CPPFLAGS="$CPPFLAGS -Wformat -Werror"
  13217. for str in d ld lld; do
  13218. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13219. /* end confdefs.h. */
  13220. #include <sys/types.h>
  13221. #include <expat.h>
  13222. #include <stdio.h>
  13223. int
  13224. main ()
  13225. {
  13226. XML_Size i = 1; printf("%$str", i);
  13227. ;
  13228. return 0;
  13229. }
  13230. _ACEOF
  13231. if ac_fn_c_try_compile "$LINENO"; then :
  13232. ne_cv_fmt_XML_Size=$str; break
  13233. fi
  13234. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  13235. done
  13236. CPPFLAGS=$oflags
  13237. else
  13238. # Best guess. Don't have to be too precise since we probably won't
  13239. # get a warning message anyway.
  13240. case $ac_cv_sizeof_XML_Size in
  13241. $ac_cv_sizeof_int) ne_cv_fmt_XML_Size="d" ;;
  13242. $ac_cv_sizeof_long) ne_cv_fmt_XML_Size="ld" ;;
  13243. $ac_cv_sizeof_long_long) ne_cv_fmt_XML_Size="lld" ;;
  13244. esac
  13245. fi
  13246. fi
  13247. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ne_cv_fmt_XML_Size" >&5
  13248. $as_echo "$ne_cv_fmt_XML_Size" >&6; }
  13249. if test "x$ne_cv_fmt_XML_Size" = "xnone"; then
  13250. as_fn_error $? "format string for XML_Size not found" "$LINENO" 5
  13251. fi
  13252. cat >>confdefs.h <<_ACEOF
  13253. #define NE_FMT_XML_SIZE "$ne_cv_fmt_XML_Size"
  13254. _ACEOF
  13255. else
  13256. cat >>confdefs.h <<_ACEOF
  13257. #define NE_FMT_XML_SIZE "d"
  13258. _ACEOF
  13259. fi
  13260. else
  13261. as_fn_error $? "expat library not found, cannot proceed" "$LINENO" 5
  13262. fi
  13263. else
  13264. as_fn_error $? "expat library not found, cannot proceed" "$LINENO" 5
  13265. fi
  13266. ;;
  13267. no) ;;
  13268. */libexpat.la)
  13269. # Special case for Subversion
  13270. ne_expdir=`echo $with_expat | sed 's:/libexpat.la$::'`
  13271. $as_echo "#define HAVE_EXPAT 1" >>confdefs.h
  13272. cat >>confdefs.h <<_ACEOF
  13273. #define NE_FMT_XML_SIZE "d"
  13274. _ACEOF
  13275. CPPFLAGS="$CPPFLAGS -I$ne_expdir"
  13276. if test "x${NEON_TARGET}" = "xlibneon.la"; then
  13277. NEON_LTLIBS=$with_expat
  13278. else
  13279. # no dependency on libexpat => crippled libneon, so do partial install
  13280. ALLOW_INSTALL=lib
  13281. fi
  13282. neon_xml_parser=expat
  13283. neon_xml_parser_message="expat in $ne_expdir"
  13284. ;;
  13285. /*) as_fn_error $? "--with-expat does not take a directory argument" "$LINENO" 5 ;;
  13286. esac
  13287. # If expat wasn't specifically enabled and libxml was:
  13288. if test "${neon_xml_parser}-${with_libxml2}-${with_included_expat}" = "none-yes-no"; then
  13289. # Extract the first word of "pkg-config", so it can be a program name with args.
  13290. set dummy pkg-config; ac_word=$2
  13291. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  13292. $as_echo_n "checking for $ac_word... " >&6; }
  13293. if ${ac_cv_path_PKG_CONFIG+:} false; then :
  13294. $as_echo_n "(cached) " >&6
  13295. else
  13296. case $PKG_CONFIG in
  13297. [\\/]* | ?:[\\/]*)
  13298. ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
  13299. ;;
  13300. *)
  13301. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  13302. for as_dir in $PATH
  13303. do
  13304. IFS=$as_save_IFS
  13305. test -z "$as_dir" && as_dir=.
  13306. for ac_exec_ext in '' $ac_executable_extensions; do
  13307. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  13308. ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
  13309. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  13310. break 2
  13311. fi
  13312. done
  13313. done
  13314. IFS=$as_save_IFS
  13315. test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
  13316. ;;
  13317. esac
  13318. fi
  13319. PKG_CONFIG=$ac_cv_path_PKG_CONFIG
  13320. if test -n "$PKG_CONFIG"; then
  13321. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
  13322. $as_echo "$PKG_CONFIG" >&6; }
  13323. else
  13324. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  13325. $as_echo "no" >&6; }
  13326. fi
  13327. if test "$PKG_CONFIG" = "no"; then
  13328. : Not using pkg-config
  13329. if test -n "$ac_tool_prefix"; then
  13330. # Extract the first word of "${ac_tool_prefix}xml2-config", so it can be a program name with args.
  13331. set dummy ${ac_tool_prefix}xml2-config; ac_word=$2
  13332. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  13333. $as_echo_n "checking for $ac_word... " >&6; }
  13334. if ${ac_cv_prog_XML2_CONFIG+:} false; then :
  13335. $as_echo_n "(cached) " >&6
  13336. else
  13337. if test -n "$XML2_CONFIG"; then
  13338. ac_cv_prog_XML2_CONFIG="$XML2_CONFIG" # Let the user override the test.
  13339. else
  13340. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  13341. for as_dir in $PATH
  13342. do
  13343. IFS=$as_save_IFS
  13344. test -z "$as_dir" && as_dir=.
  13345. for ac_exec_ext in '' $ac_executable_extensions; do
  13346. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  13347. ac_cv_prog_XML2_CONFIG="${ac_tool_prefix}xml2-config"
  13348. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  13349. break 2
  13350. fi
  13351. done
  13352. done
  13353. IFS=$as_save_IFS
  13354. fi
  13355. fi
  13356. XML2_CONFIG=$ac_cv_prog_XML2_CONFIG
  13357. if test -n "$XML2_CONFIG"; then
  13358. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XML2_CONFIG" >&5
  13359. $as_echo "$XML2_CONFIG" >&6; }
  13360. else
  13361. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  13362. $as_echo "no" >&6; }
  13363. fi
  13364. fi
  13365. if test -z "$ac_cv_prog_XML2_CONFIG"; then
  13366. ac_ct_XML2_CONFIG=$XML2_CONFIG
  13367. # Extract the first word of "xml2-config", so it can be a program name with args.
  13368. set dummy xml2-config; ac_word=$2
  13369. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  13370. $as_echo_n "checking for $ac_word... " >&6; }
  13371. if ${ac_cv_prog_ac_ct_XML2_CONFIG+:} false; then :
  13372. $as_echo_n "(cached) " >&6
  13373. else
  13374. if test -n "$ac_ct_XML2_CONFIG"; then
  13375. ac_cv_prog_ac_ct_XML2_CONFIG="$ac_ct_XML2_CONFIG" # Let the user override the test.
  13376. else
  13377. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  13378. for as_dir in $PATH
  13379. do
  13380. IFS=$as_save_IFS
  13381. test -z "$as_dir" && as_dir=.
  13382. for ac_exec_ext in '' $ac_executable_extensions; do
  13383. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  13384. ac_cv_prog_ac_ct_XML2_CONFIG="xml2-config"
  13385. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  13386. break 2
  13387. fi
  13388. done
  13389. done
  13390. IFS=$as_save_IFS
  13391. fi
  13392. fi
  13393. ac_ct_XML2_CONFIG=$ac_cv_prog_ac_ct_XML2_CONFIG
  13394. if test -n "$ac_ct_XML2_CONFIG"; then
  13395. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_XML2_CONFIG" >&5
  13396. $as_echo "$ac_ct_XML2_CONFIG" >&6; }
  13397. else
  13398. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  13399. $as_echo "no" >&6; }
  13400. fi
  13401. if test "x$ac_ct_XML2_CONFIG" = x; then
  13402. XML2_CONFIG=""
  13403. else
  13404. case $cross_compiling:$ac_tool_warned in
  13405. yes:)
  13406. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  13407. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  13408. ac_tool_warned=yes ;;
  13409. esac
  13410. XML2_CONFIG=$ac_ct_XML2_CONFIG
  13411. fi
  13412. else
  13413. XML2_CONFIG="$ac_cv_prog_XML2_CONFIG"
  13414. fi
  13415. if test "x$XML2_CONFIG" != "xno"; then
  13416. # xml2-config in some versions erroneously includes -I/include
  13417. # in the --cflags output.
  13418. NE_LX2_VERSION="`$XML2_CONFIG --version`"
  13419. NE_LX2_CFLAGS="`$XML2_CONFIG --cflags | sed 's| -I/include||g'`"
  13420. NE_LX2_LIBS="`$XML2_CONFIG --libs | sed 's|-L/usr/lib ||g'`"
  13421. fi
  13422. else
  13423. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libxml-2.0 pkg-config data" >&5
  13424. $as_echo_n "checking for libxml-2.0 pkg-config data... " >&6; }
  13425. if ${ne_cv_pkg_libxml_2_0+:} false; then :
  13426. $as_echo_n "(cached) " >&6
  13427. else
  13428. if $PKG_CONFIG libxml-2.0; then
  13429. ne_cv_pkg_libxml_2_0=yes
  13430. else
  13431. ne_cv_pkg_libxml_2_0=no
  13432. fi
  13433. fi
  13434. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ne_cv_pkg_libxml_2_0" >&5
  13435. $as_echo "$ne_cv_pkg_libxml_2_0" >&6; }
  13436. if test "$ne_cv_pkg_libxml_2_0" = "yes"; then
  13437. NE_LX2_CFLAGS=`$PKG_CONFIG --cflags libxml-2.0`
  13438. NE_LX2_LIBS=`$PKG_CONFIG --libs libxml-2.0`
  13439. NE_LX2_VERSION=`$PKG_CONFIG --modversion libxml-2.0`
  13440. : Using provided pkg-config data
  13441. else
  13442. : No pkg-config for libxml-2.0 provided
  13443. if test -n "$ac_tool_prefix"; then
  13444. # Extract the first word of "${ac_tool_prefix}xml2-config", so it can be a program name with args.
  13445. set dummy ${ac_tool_prefix}xml2-config; ac_word=$2
  13446. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  13447. $as_echo_n "checking for $ac_word... " >&6; }
  13448. if ${ac_cv_prog_XML2_CONFIG+:} false; then :
  13449. $as_echo_n "(cached) " >&6
  13450. else
  13451. if test -n "$XML2_CONFIG"; then
  13452. ac_cv_prog_XML2_CONFIG="$XML2_CONFIG" # Let the user override the test.
  13453. else
  13454. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  13455. for as_dir in $PATH
  13456. do
  13457. IFS=$as_save_IFS
  13458. test -z "$as_dir" && as_dir=.
  13459. for ac_exec_ext in '' $ac_executable_extensions; do
  13460. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  13461. ac_cv_prog_XML2_CONFIG="${ac_tool_prefix}xml2-config"
  13462. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  13463. break 2
  13464. fi
  13465. done
  13466. done
  13467. IFS=$as_save_IFS
  13468. fi
  13469. fi
  13470. XML2_CONFIG=$ac_cv_prog_XML2_CONFIG
  13471. if test -n "$XML2_CONFIG"; then
  13472. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XML2_CONFIG" >&5
  13473. $as_echo "$XML2_CONFIG" >&6; }
  13474. else
  13475. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  13476. $as_echo "no" >&6; }
  13477. fi
  13478. fi
  13479. if test -z "$ac_cv_prog_XML2_CONFIG"; then
  13480. ac_ct_XML2_CONFIG=$XML2_CONFIG
  13481. # Extract the first word of "xml2-config", so it can be a program name with args.
  13482. set dummy xml2-config; ac_word=$2
  13483. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  13484. $as_echo_n "checking for $ac_word... " >&6; }
  13485. if ${ac_cv_prog_ac_ct_XML2_CONFIG+:} false; then :
  13486. $as_echo_n "(cached) " >&6
  13487. else
  13488. if test -n "$ac_ct_XML2_CONFIG"; then
  13489. ac_cv_prog_ac_ct_XML2_CONFIG="$ac_ct_XML2_CONFIG" # Let the user override the test.
  13490. else
  13491. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  13492. for as_dir in $PATH
  13493. do
  13494. IFS=$as_save_IFS
  13495. test -z "$as_dir" && as_dir=.
  13496. for ac_exec_ext in '' $ac_executable_extensions; do
  13497. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  13498. ac_cv_prog_ac_ct_XML2_CONFIG="xml2-config"
  13499. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  13500. break 2
  13501. fi
  13502. done
  13503. done
  13504. IFS=$as_save_IFS
  13505. fi
  13506. fi
  13507. ac_ct_XML2_CONFIG=$ac_cv_prog_ac_ct_XML2_CONFIG
  13508. if test -n "$ac_ct_XML2_CONFIG"; then
  13509. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_XML2_CONFIG" >&5
  13510. $as_echo "$ac_ct_XML2_CONFIG" >&6; }
  13511. else
  13512. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  13513. $as_echo "no" >&6; }
  13514. fi
  13515. if test "x$ac_ct_XML2_CONFIG" = x; then
  13516. XML2_CONFIG=""
  13517. else
  13518. case $cross_compiling:$ac_tool_warned in
  13519. yes:)
  13520. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  13521. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  13522. ac_tool_warned=yes ;;
  13523. esac
  13524. XML2_CONFIG=$ac_ct_XML2_CONFIG
  13525. fi
  13526. else
  13527. XML2_CONFIG="$ac_cv_prog_XML2_CONFIG"
  13528. fi
  13529. if test "x$XML2_CONFIG" != "xno"; then
  13530. # xml2-config in some versions erroneously includes -I/include
  13531. # in the --cflags output.
  13532. NE_LX2_VERSION="`$XML2_CONFIG --version`"
  13533. NE_LX2_CFLAGS="`$XML2_CONFIG --cflags | sed 's| -I/include||g'`"
  13534. NE_LX2_LIBS="`$XML2_CONFIG --libs | sed 's|-L/usr/lib ||g'`"
  13535. fi
  13536. fi
  13537. fi
  13538. if test -n "${NE_LX2_VERSION+set}"; then
  13539. neon_xml_parser_message="libxml $NE_LX2_VERSION"
  13540. $as_echo "#define HAVE_LIBXML 1" >>confdefs.h
  13541. CPPFLAGS="$CPPFLAGS $NE_LX2_CFLAGS"
  13542. NEON_LIBS="$NEON_LIBS $NE_LX2_LIBS"
  13543. for ac_header in libxml/xmlversion.h libxml/parser.h
  13544. do :
  13545. as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
  13546. ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
  13547. if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
  13548. cat >>confdefs.h <<_ACEOF
  13549. #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
  13550. _ACEOF
  13551. else
  13552. as_fn_error $? "could not find parser.h, libxml installation problem?" "$LINENO" 5
  13553. fi
  13554. done
  13555. neon_xml_parser=libxml2
  13556. else
  13557. as_fn_error $? "libxml2.x library not found, cannot proceed" "$LINENO" 5
  13558. fi
  13559. fi
  13560. # Otherwise, by default search for expat then libxml2:
  13561. if test "${neon_xml_parser}-${with_included_expat}" = "none-no"; then
  13562. ac_fn_c_check_header_mongrel "$LINENO" "expat.h" "ac_cv_header_expat_h" "$ac_includes_default"
  13563. if test "x$ac_cv_header_expat_h" = xyes; then :
  13564. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XML_SetXmlDeclHandler in -lexpat" >&5
  13565. $as_echo_n "checking for XML_SetXmlDeclHandler in -lexpat... " >&6; }
  13566. if ${ac_cv_lib_expat_XML_SetXmlDeclHandler+:} false; then :
  13567. $as_echo_n "(cached) " >&6
  13568. else
  13569. ac_check_lib_save_LIBS=$LIBS
  13570. LIBS="-lexpat $LIBS"
  13571. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13572. /* end confdefs.h. */
  13573. /* Override any GCC internal prototype to avoid an error.
  13574. Use char because int might match the return type of a GCC
  13575. builtin and then its argument prototype would still apply. */
  13576. #ifdef __cplusplus
  13577. extern "C"
  13578. #endif
  13579. char XML_SetXmlDeclHandler ();
  13580. int
  13581. main ()
  13582. {
  13583. return XML_SetXmlDeclHandler ();
  13584. ;
  13585. return 0;
  13586. }
  13587. _ACEOF
  13588. if ac_fn_c_try_link "$LINENO"; then :
  13589. ac_cv_lib_expat_XML_SetXmlDeclHandler=yes
  13590. else
  13591. ac_cv_lib_expat_XML_SetXmlDeclHandler=no
  13592. fi
  13593. rm -f core conftest.err conftest.$ac_objext \
  13594. conftest$ac_exeext conftest.$ac_ext
  13595. LIBS=$ac_check_lib_save_LIBS
  13596. fi
  13597. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_expat_XML_SetXmlDeclHandler" >&5
  13598. $as_echo "$ac_cv_lib_expat_XML_SetXmlDeclHandler" >&6; }
  13599. if test "x$ac_cv_lib_expat_XML_SetXmlDeclHandler" = xyes; then :
  13600. $as_echo "#define HAVE_EXPAT 1" >>confdefs.h
  13601. neon_xml_parser_message="expat"
  13602. NEON_LIBS="$NEON_LIBS -lexpat"
  13603. neon_xml_parser=expat
  13604. ac_fn_c_check_type "$LINENO" "XML_Size" "ac_cv_type_XML_Size" "#include <expat.h>
  13605. "
  13606. if test "x$ac_cv_type_XML_Size" = xyes; then :
  13607. # The cast to long int works around a bug in the HP C Compiler
  13608. # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
  13609. # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
  13610. # This bug is HP SR number 8606223364.
  13611. { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of XML_Size" >&5
  13612. $as_echo_n "checking size of XML_Size... " >&6; }
  13613. if ${ac_cv_sizeof_XML_Size+:} false; then :
  13614. $as_echo_n "(cached) " >&6
  13615. else
  13616. if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (XML_Size))" "ac_cv_sizeof_XML_Size" "$ac_includes_default
  13617. #include <expat.h>
  13618. "; then :
  13619. else
  13620. if test "$ac_cv_type_XML_Size" = yes; then
  13621. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  13622. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  13623. as_fn_error 77 "cannot compute sizeof (XML_Size)
  13624. See \`config.log' for more details" "$LINENO" 5; }
  13625. else
  13626. ac_cv_sizeof_XML_Size=0
  13627. fi
  13628. fi
  13629. fi
  13630. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_XML_Size" >&5
  13631. $as_echo "$ac_cv_sizeof_XML_Size" >&6; }
  13632. cat >>confdefs.h <<_ACEOF
  13633. #define SIZEOF_XML_SIZE $ac_cv_sizeof_XML_Size
  13634. _ACEOF
  13635. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print XML_Size" >&5
  13636. $as_echo_n "checking how to print XML_Size... " >&6; }
  13637. if ${ne_cv_fmt_XML_Size+:} false; then :
  13638. $as_echo_n "(cached) " >&6
  13639. else
  13640. ne_cv_fmt_XML_Size=none
  13641. if test $ne_fmt_trycompile = yes; then
  13642. oflags="$CPPFLAGS"
  13643. # Consider format string mismatches as errors
  13644. CPPFLAGS="$CPPFLAGS -Wformat -Werror"
  13645. for str in d ld lld; do
  13646. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13647. /* end confdefs.h. */
  13648. #include <sys/types.h>
  13649. #include <expat.h>
  13650. #include <stdio.h>
  13651. int
  13652. main ()
  13653. {
  13654. XML_Size i = 1; printf("%$str", i);
  13655. ;
  13656. return 0;
  13657. }
  13658. _ACEOF
  13659. if ac_fn_c_try_compile "$LINENO"; then :
  13660. ne_cv_fmt_XML_Size=$str; break
  13661. fi
  13662. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  13663. done
  13664. CPPFLAGS=$oflags
  13665. else
  13666. # Best guess. Don't have to be too precise since we probably won't
  13667. # get a warning message anyway.
  13668. case $ac_cv_sizeof_XML_Size in
  13669. $ac_cv_sizeof_int) ne_cv_fmt_XML_Size="d" ;;
  13670. $ac_cv_sizeof_long) ne_cv_fmt_XML_Size="ld" ;;
  13671. $ac_cv_sizeof_long_long) ne_cv_fmt_XML_Size="lld" ;;
  13672. esac
  13673. fi
  13674. fi
  13675. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ne_cv_fmt_XML_Size" >&5
  13676. $as_echo "$ne_cv_fmt_XML_Size" >&6; }
  13677. if test "x$ne_cv_fmt_XML_Size" = "xnone"; then
  13678. as_fn_error $? "format string for XML_Size not found" "$LINENO" 5
  13679. fi
  13680. cat >>confdefs.h <<_ACEOF
  13681. #define NE_FMT_XML_SIZE "$ne_cv_fmt_XML_Size"
  13682. _ACEOF
  13683. else
  13684. cat >>confdefs.h <<_ACEOF
  13685. #define NE_FMT_XML_SIZE "d"
  13686. _ACEOF
  13687. fi
  13688. else
  13689. # Extract the first word of "pkg-config", so it can be a program name with args.
  13690. set dummy pkg-config; ac_word=$2
  13691. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  13692. $as_echo_n "checking for $ac_word... " >&6; }
  13693. if ${ac_cv_path_PKG_CONFIG+:} false; then :
  13694. $as_echo_n "(cached) " >&6
  13695. else
  13696. case $PKG_CONFIG in
  13697. [\\/]* | ?:[\\/]*)
  13698. ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
  13699. ;;
  13700. *)
  13701. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  13702. for as_dir in $PATH
  13703. do
  13704. IFS=$as_save_IFS
  13705. test -z "$as_dir" && as_dir=.
  13706. for ac_exec_ext in '' $ac_executable_extensions; do
  13707. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  13708. ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
  13709. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  13710. break 2
  13711. fi
  13712. done
  13713. done
  13714. IFS=$as_save_IFS
  13715. test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
  13716. ;;
  13717. esac
  13718. fi
  13719. PKG_CONFIG=$ac_cv_path_PKG_CONFIG
  13720. if test -n "$PKG_CONFIG"; then
  13721. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
  13722. $as_echo "$PKG_CONFIG" >&6; }
  13723. else
  13724. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  13725. $as_echo "no" >&6; }
  13726. fi
  13727. if test "$PKG_CONFIG" = "no"; then
  13728. : Not using pkg-config
  13729. if test -n "$ac_tool_prefix"; then
  13730. # Extract the first word of "${ac_tool_prefix}xml2-config", so it can be a program name with args.
  13731. set dummy ${ac_tool_prefix}xml2-config; ac_word=$2
  13732. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  13733. $as_echo_n "checking for $ac_word... " >&6; }
  13734. if ${ac_cv_prog_XML2_CONFIG+:} false; then :
  13735. $as_echo_n "(cached) " >&6
  13736. else
  13737. if test -n "$XML2_CONFIG"; then
  13738. ac_cv_prog_XML2_CONFIG="$XML2_CONFIG" # Let the user override the test.
  13739. else
  13740. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  13741. for as_dir in $PATH
  13742. do
  13743. IFS=$as_save_IFS
  13744. test -z "$as_dir" && as_dir=.
  13745. for ac_exec_ext in '' $ac_executable_extensions; do
  13746. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  13747. ac_cv_prog_XML2_CONFIG="${ac_tool_prefix}xml2-config"
  13748. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  13749. break 2
  13750. fi
  13751. done
  13752. done
  13753. IFS=$as_save_IFS
  13754. fi
  13755. fi
  13756. XML2_CONFIG=$ac_cv_prog_XML2_CONFIG
  13757. if test -n "$XML2_CONFIG"; then
  13758. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XML2_CONFIG" >&5
  13759. $as_echo "$XML2_CONFIG" >&6; }
  13760. else
  13761. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  13762. $as_echo "no" >&6; }
  13763. fi
  13764. fi
  13765. if test -z "$ac_cv_prog_XML2_CONFIG"; then
  13766. ac_ct_XML2_CONFIG=$XML2_CONFIG
  13767. # Extract the first word of "xml2-config", so it can be a program name with args.
  13768. set dummy xml2-config; ac_word=$2
  13769. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  13770. $as_echo_n "checking for $ac_word... " >&6; }
  13771. if ${ac_cv_prog_ac_ct_XML2_CONFIG+:} false; then :
  13772. $as_echo_n "(cached) " >&6
  13773. else
  13774. if test -n "$ac_ct_XML2_CONFIG"; then
  13775. ac_cv_prog_ac_ct_XML2_CONFIG="$ac_ct_XML2_CONFIG" # Let the user override the test.
  13776. else
  13777. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  13778. for as_dir in $PATH
  13779. do
  13780. IFS=$as_save_IFS
  13781. test -z "$as_dir" && as_dir=.
  13782. for ac_exec_ext in '' $ac_executable_extensions; do
  13783. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  13784. ac_cv_prog_ac_ct_XML2_CONFIG="xml2-config"
  13785. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  13786. break 2
  13787. fi
  13788. done
  13789. done
  13790. IFS=$as_save_IFS
  13791. fi
  13792. fi
  13793. ac_ct_XML2_CONFIG=$ac_cv_prog_ac_ct_XML2_CONFIG
  13794. if test -n "$ac_ct_XML2_CONFIG"; then
  13795. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_XML2_CONFIG" >&5
  13796. $as_echo "$ac_ct_XML2_CONFIG" >&6; }
  13797. else
  13798. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  13799. $as_echo "no" >&6; }
  13800. fi
  13801. if test "x$ac_ct_XML2_CONFIG" = x; then
  13802. XML2_CONFIG=""
  13803. else
  13804. case $cross_compiling:$ac_tool_warned in
  13805. yes:)
  13806. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  13807. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  13808. ac_tool_warned=yes ;;
  13809. esac
  13810. XML2_CONFIG=$ac_ct_XML2_CONFIG
  13811. fi
  13812. else
  13813. XML2_CONFIG="$ac_cv_prog_XML2_CONFIG"
  13814. fi
  13815. if test "x$XML2_CONFIG" != "xno"; then
  13816. # xml2-config in some versions erroneously includes -I/include
  13817. # in the --cflags output.
  13818. NE_LX2_VERSION="`$XML2_CONFIG --version`"
  13819. NE_LX2_CFLAGS="`$XML2_CONFIG --cflags | sed 's| -I/include||g'`"
  13820. NE_LX2_LIBS="`$XML2_CONFIG --libs | sed 's|-L/usr/lib ||g'`"
  13821. fi
  13822. else
  13823. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libxml-2.0 pkg-config data" >&5
  13824. $as_echo_n "checking for libxml-2.0 pkg-config data... " >&6; }
  13825. if ${ne_cv_pkg_libxml_2_0+:} false; then :
  13826. $as_echo_n "(cached) " >&6
  13827. else
  13828. if $PKG_CONFIG libxml-2.0; then
  13829. ne_cv_pkg_libxml_2_0=yes
  13830. else
  13831. ne_cv_pkg_libxml_2_0=no
  13832. fi
  13833. fi
  13834. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ne_cv_pkg_libxml_2_0" >&5
  13835. $as_echo "$ne_cv_pkg_libxml_2_0" >&6; }
  13836. if test "$ne_cv_pkg_libxml_2_0" = "yes"; then
  13837. NE_LX2_CFLAGS=`$PKG_CONFIG --cflags libxml-2.0`
  13838. NE_LX2_LIBS=`$PKG_CONFIG --libs libxml-2.0`
  13839. NE_LX2_VERSION=`$PKG_CONFIG --modversion libxml-2.0`
  13840. : Using provided pkg-config data
  13841. else
  13842. : No pkg-config for libxml-2.0 provided
  13843. if test -n "$ac_tool_prefix"; then
  13844. # Extract the first word of "${ac_tool_prefix}xml2-config", so it can be a program name with args.
  13845. set dummy ${ac_tool_prefix}xml2-config; ac_word=$2
  13846. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  13847. $as_echo_n "checking for $ac_word... " >&6; }
  13848. if ${ac_cv_prog_XML2_CONFIG+:} false; then :
  13849. $as_echo_n "(cached) " >&6
  13850. else
  13851. if test -n "$XML2_CONFIG"; then
  13852. ac_cv_prog_XML2_CONFIG="$XML2_CONFIG" # Let the user override the test.
  13853. else
  13854. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  13855. for as_dir in $PATH
  13856. do
  13857. IFS=$as_save_IFS
  13858. test -z "$as_dir" && as_dir=.
  13859. for ac_exec_ext in '' $ac_executable_extensions; do
  13860. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  13861. ac_cv_prog_XML2_CONFIG="${ac_tool_prefix}xml2-config"
  13862. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  13863. break 2
  13864. fi
  13865. done
  13866. done
  13867. IFS=$as_save_IFS
  13868. fi
  13869. fi
  13870. XML2_CONFIG=$ac_cv_prog_XML2_CONFIG
  13871. if test -n "$XML2_CONFIG"; then
  13872. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XML2_CONFIG" >&5
  13873. $as_echo "$XML2_CONFIG" >&6; }
  13874. else
  13875. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  13876. $as_echo "no" >&6; }
  13877. fi
  13878. fi
  13879. if test -z "$ac_cv_prog_XML2_CONFIG"; then
  13880. ac_ct_XML2_CONFIG=$XML2_CONFIG
  13881. # Extract the first word of "xml2-config", so it can be a program name with args.
  13882. set dummy xml2-config; ac_word=$2
  13883. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  13884. $as_echo_n "checking for $ac_word... " >&6; }
  13885. if ${ac_cv_prog_ac_ct_XML2_CONFIG+:} false; then :
  13886. $as_echo_n "(cached) " >&6
  13887. else
  13888. if test -n "$ac_ct_XML2_CONFIG"; then
  13889. ac_cv_prog_ac_ct_XML2_CONFIG="$ac_ct_XML2_CONFIG" # Let the user override the test.
  13890. else
  13891. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  13892. for as_dir in $PATH
  13893. do
  13894. IFS=$as_save_IFS
  13895. test -z "$as_dir" && as_dir=.
  13896. for ac_exec_ext in '' $ac_executable_extensions; do
  13897. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  13898. ac_cv_prog_ac_ct_XML2_CONFIG="xml2-config"
  13899. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  13900. break 2
  13901. fi
  13902. done
  13903. done
  13904. IFS=$as_save_IFS
  13905. fi
  13906. fi
  13907. ac_ct_XML2_CONFIG=$ac_cv_prog_ac_ct_XML2_CONFIG
  13908. if test -n "$ac_ct_XML2_CONFIG"; then
  13909. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_XML2_CONFIG" >&5
  13910. $as_echo "$ac_ct_XML2_CONFIG" >&6; }
  13911. else
  13912. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  13913. $as_echo "no" >&6; }
  13914. fi
  13915. if test "x$ac_ct_XML2_CONFIG" = x; then
  13916. XML2_CONFIG=""
  13917. else
  13918. case $cross_compiling:$ac_tool_warned in
  13919. yes:)
  13920. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  13921. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  13922. ac_tool_warned=yes ;;
  13923. esac
  13924. XML2_CONFIG=$ac_ct_XML2_CONFIG
  13925. fi
  13926. else
  13927. XML2_CONFIG="$ac_cv_prog_XML2_CONFIG"
  13928. fi
  13929. if test "x$XML2_CONFIG" != "xno"; then
  13930. # xml2-config in some versions erroneously includes -I/include
  13931. # in the --cflags output.
  13932. NE_LX2_VERSION="`$XML2_CONFIG --version`"
  13933. NE_LX2_CFLAGS="`$XML2_CONFIG --cflags | sed 's| -I/include||g'`"
  13934. NE_LX2_LIBS="`$XML2_CONFIG --libs | sed 's|-L/usr/lib ||g'`"
  13935. fi
  13936. fi
  13937. fi
  13938. if test -n "${NE_LX2_VERSION+set}"; then
  13939. neon_xml_parser_message="libxml $NE_LX2_VERSION"
  13940. $as_echo "#define HAVE_LIBXML 1" >>confdefs.h
  13941. CPPFLAGS="$CPPFLAGS $NE_LX2_CFLAGS"
  13942. NEON_LIBS="$NEON_LIBS $NE_LX2_LIBS"
  13943. for ac_header in libxml/xmlversion.h libxml/parser.h
  13944. do :
  13945. as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
  13946. ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
  13947. if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
  13948. cat >>confdefs.h <<_ACEOF
  13949. #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
  13950. _ACEOF
  13951. else
  13952. as_fn_error $? "could not find parser.h, libxml installation problem?" "$LINENO" 5
  13953. fi
  13954. done
  13955. neon_xml_parser=libxml2
  13956. else
  13957. :
  13958. fi
  13959. fi
  13960. else
  13961. # Extract the first word of "pkg-config", so it can be a program name with args.
  13962. set dummy pkg-config; ac_word=$2
  13963. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  13964. $as_echo_n "checking for $ac_word... " >&6; }
  13965. if ${ac_cv_path_PKG_CONFIG+:} false; then :
  13966. $as_echo_n "(cached) " >&6
  13967. else
  13968. case $PKG_CONFIG in
  13969. [\\/]* | ?:[\\/]*)
  13970. ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
  13971. ;;
  13972. *)
  13973. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  13974. for as_dir in $PATH
  13975. do
  13976. IFS=$as_save_IFS
  13977. test -z "$as_dir" && as_dir=.
  13978. for ac_exec_ext in '' $ac_executable_extensions; do
  13979. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  13980. ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
  13981. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  13982. break 2
  13983. fi
  13984. done
  13985. done
  13986. IFS=$as_save_IFS
  13987. test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
  13988. ;;
  13989. esac
  13990. fi
  13991. PKG_CONFIG=$ac_cv_path_PKG_CONFIG
  13992. if test -n "$PKG_CONFIG"; then
  13993. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
  13994. $as_echo "$PKG_CONFIG" >&6; }
  13995. else
  13996. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  13997. $as_echo "no" >&6; }
  13998. fi
  13999. if test "$PKG_CONFIG" = "no"; then
  14000. : Not using pkg-config
  14001. if test -n "$ac_tool_prefix"; then
  14002. # Extract the first word of "${ac_tool_prefix}xml2-config", so it can be a program name with args.
  14003. set dummy ${ac_tool_prefix}xml2-config; ac_word=$2
  14004. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  14005. $as_echo_n "checking for $ac_word... " >&6; }
  14006. if ${ac_cv_prog_XML2_CONFIG+:} false; then :
  14007. $as_echo_n "(cached) " >&6
  14008. else
  14009. if test -n "$XML2_CONFIG"; then
  14010. ac_cv_prog_XML2_CONFIG="$XML2_CONFIG" # Let the user override the test.
  14011. else
  14012. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  14013. for as_dir in $PATH
  14014. do
  14015. IFS=$as_save_IFS
  14016. test -z "$as_dir" && as_dir=.
  14017. for ac_exec_ext in '' $ac_executable_extensions; do
  14018. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  14019. ac_cv_prog_XML2_CONFIG="${ac_tool_prefix}xml2-config"
  14020. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  14021. break 2
  14022. fi
  14023. done
  14024. done
  14025. IFS=$as_save_IFS
  14026. fi
  14027. fi
  14028. XML2_CONFIG=$ac_cv_prog_XML2_CONFIG
  14029. if test -n "$XML2_CONFIG"; then
  14030. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XML2_CONFIG" >&5
  14031. $as_echo "$XML2_CONFIG" >&6; }
  14032. else
  14033. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  14034. $as_echo "no" >&6; }
  14035. fi
  14036. fi
  14037. if test -z "$ac_cv_prog_XML2_CONFIG"; then
  14038. ac_ct_XML2_CONFIG=$XML2_CONFIG
  14039. # Extract the first word of "xml2-config", so it can be a program name with args.
  14040. set dummy xml2-config; ac_word=$2
  14041. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  14042. $as_echo_n "checking for $ac_word... " >&6; }
  14043. if ${ac_cv_prog_ac_ct_XML2_CONFIG+:} false; then :
  14044. $as_echo_n "(cached) " >&6
  14045. else
  14046. if test -n "$ac_ct_XML2_CONFIG"; then
  14047. ac_cv_prog_ac_ct_XML2_CONFIG="$ac_ct_XML2_CONFIG" # Let the user override the test.
  14048. else
  14049. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  14050. for as_dir in $PATH
  14051. do
  14052. IFS=$as_save_IFS
  14053. test -z "$as_dir" && as_dir=.
  14054. for ac_exec_ext in '' $ac_executable_extensions; do
  14055. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  14056. ac_cv_prog_ac_ct_XML2_CONFIG="xml2-config"
  14057. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  14058. break 2
  14059. fi
  14060. done
  14061. done
  14062. IFS=$as_save_IFS
  14063. fi
  14064. fi
  14065. ac_ct_XML2_CONFIG=$ac_cv_prog_ac_ct_XML2_CONFIG
  14066. if test -n "$ac_ct_XML2_CONFIG"; then
  14067. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_XML2_CONFIG" >&5
  14068. $as_echo "$ac_ct_XML2_CONFIG" >&6; }
  14069. else
  14070. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  14071. $as_echo "no" >&6; }
  14072. fi
  14073. if test "x$ac_ct_XML2_CONFIG" = x; then
  14074. XML2_CONFIG=""
  14075. else
  14076. case $cross_compiling:$ac_tool_warned in
  14077. yes:)
  14078. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  14079. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  14080. ac_tool_warned=yes ;;
  14081. esac
  14082. XML2_CONFIG=$ac_ct_XML2_CONFIG
  14083. fi
  14084. else
  14085. XML2_CONFIG="$ac_cv_prog_XML2_CONFIG"
  14086. fi
  14087. if test "x$XML2_CONFIG" != "xno"; then
  14088. # xml2-config in some versions erroneously includes -I/include
  14089. # in the --cflags output.
  14090. NE_LX2_VERSION="`$XML2_CONFIG --version`"
  14091. NE_LX2_CFLAGS="`$XML2_CONFIG --cflags | sed 's| -I/include||g'`"
  14092. NE_LX2_LIBS="`$XML2_CONFIG --libs | sed 's|-L/usr/lib ||g'`"
  14093. fi
  14094. else
  14095. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libxml-2.0 pkg-config data" >&5
  14096. $as_echo_n "checking for libxml-2.0 pkg-config data... " >&6; }
  14097. if ${ne_cv_pkg_libxml_2_0+:} false; then :
  14098. $as_echo_n "(cached) " >&6
  14099. else
  14100. if $PKG_CONFIG libxml-2.0; then
  14101. ne_cv_pkg_libxml_2_0=yes
  14102. else
  14103. ne_cv_pkg_libxml_2_0=no
  14104. fi
  14105. fi
  14106. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ne_cv_pkg_libxml_2_0" >&5
  14107. $as_echo "$ne_cv_pkg_libxml_2_0" >&6; }
  14108. if test "$ne_cv_pkg_libxml_2_0" = "yes"; then
  14109. NE_LX2_CFLAGS=`$PKG_CONFIG --cflags libxml-2.0`
  14110. NE_LX2_LIBS=`$PKG_CONFIG --libs libxml-2.0`
  14111. NE_LX2_VERSION=`$PKG_CONFIG --modversion libxml-2.0`
  14112. : Using provided pkg-config data
  14113. else
  14114. : No pkg-config for libxml-2.0 provided
  14115. if test -n "$ac_tool_prefix"; then
  14116. # Extract the first word of "${ac_tool_prefix}xml2-config", so it can be a program name with args.
  14117. set dummy ${ac_tool_prefix}xml2-config; ac_word=$2
  14118. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  14119. $as_echo_n "checking for $ac_word... " >&6; }
  14120. if ${ac_cv_prog_XML2_CONFIG+:} false; then :
  14121. $as_echo_n "(cached) " >&6
  14122. else
  14123. if test -n "$XML2_CONFIG"; then
  14124. ac_cv_prog_XML2_CONFIG="$XML2_CONFIG" # Let the user override the test.
  14125. else
  14126. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  14127. for as_dir in $PATH
  14128. do
  14129. IFS=$as_save_IFS
  14130. test -z "$as_dir" && as_dir=.
  14131. for ac_exec_ext in '' $ac_executable_extensions; do
  14132. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  14133. ac_cv_prog_XML2_CONFIG="${ac_tool_prefix}xml2-config"
  14134. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  14135. break 2
  14136. fi
  14137. done
  14138. done
  14139. IFS=$as_save_IFS
  14140. fi
  14141. fi
  14142. XML2_CONFIG=$ac_cv_prog_XML2_CONFIG
  14143. if test -n "$XML2_CONFIG"; then
  14144. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XML2_CONFIG" >&5
  14145. $as_echo "$XML2_CONFIG" >&6; }
  14146. else
  14147. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  14148. $as_echo "no" >&6; }
  14149. fi
  14150. fi
  14151. if test -z "$ac_cv_prog_XML2_CONFIG"; then
  14152. ac_ct_XML2_CONFIG=$XML2_CONFIG
  14153. # Extract the first word of "xml2-config", so it can be a program name with args.
  14154. set dummy xml2-config; ac_word=$2
  14155. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  14156. $as_echo_n "checking for $ac_word... " >&6; }
  14157. if ${ac_cv_prog_ac_ct_XML2_CONFIG+:} false; then :
  14158. $as_echo_n "(cached) " >&6
  14159. else
  14160. if test -n "$ac_ct_XML2_CONFIG"; then
  14161. ac_cv_prog_ac_ct_XML2_CONFIG="$ac_ct_XML2_CONFIG" # Let the user override the test.
  14162. else
  14163. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  14164. for as_dir in $PATH
  14165. do
  14166. IFS=$as_save_IFS
  14167. test -z "$as_dir" && as_dir=.
  14168. for ac_exec_ext in '' $ac_executable_extensions; do
  14169. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  14170. ac_cv_prog_ac_ct_XML2_CONFIG="xml2-config"
  14171. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  14172. break 2
  14173. fi
  14174. done
  14175. done
  14176. IFS=$as_save_IFS
  14177. fi
  14178. fi
  14179. ac_ct_XML2_CONFIG=$ac_cv_prog_ac_ct_XML2_CONFIG
  14180. if test -n "$ac_ct_XML2_CONFIG"; then
  14181. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_XML2_CONFIG" >&5
  14182. $as_echo "$ac_ct_XML2_CONFIG" >&6; }
  14183. else
  14184. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  14185. $as_echo "no" >&6; }
  14186. fi
  14187. if test "x$ac_ct_XML2_CONFIG" = x; then
  14188. XML2_CONFIG=""
  14189. else
  14190. case $cross_compiling:$ac_tool_warned in
  14191. yes:)
  14192. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  14193. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  14194. ac_tool_warned=yes ;;
  14195. esac
  14196. XML2_CONFIG=$ac_ct_XML2_CONFIG
  14197. fi
  14198. else
  14199. XML2_CONFIG="$ac_cv_prog_XML2_CONFIG"
  14200. fi
  14201. if test "x$XML2_CONFIG" != "xno"; then
  14202. # xml2-config in some versions erroneously includes -I/include
  14203. # in the --cflags output.
  14204. NE_LX2_VERSION="`$XML2_CONFIG --version`"
  14205. NE_LX2_CFLAGS="`$XML2_CONFIG --cflags | sed 's| -I/include||g'`"
  14206. NE_LX2_LIBS="`$XML2_CONFIG --libs | sed 's|-L/usr/lib ||g'`"
  14207. fi
  14208. fi
  14209. fi
  14210. if test -n "${NE_LX2_VERSION+set}"; then
  14211. neon_xml_parser_message="libxml $NE_LX2_VERSION"
  14212. $as_echo "#define HAVE_LIBXML 1" >>confdefs.h
  14213. CPPFLAGS="$CPPFLAGS $NE_LX2_CFLAGS"
  14214. NEON_LIBS="$NEON_LIBS $NE_LX2_LIBS"
  14215. for ac_header in libxml/xmlversion.h libxml/parser.h
  14216. do :
  14217. as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
  14218. ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
  14219. if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
  14220. cat >>confdefs.h <<_ACEOF
  14221. #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
  14222. _ACEOF
  14223. else
  14224. as_fn_error $? "could not find parser.h, libxml installation problem?" "$LINENO" 5
  14225. fi
  14226. done
  14227. neon_xml_parser=libxml2
  14228. else
  14229. :
  14230. fi
  14231. fi
  14232. fi
  14233. # If an XML parser still has not been found, fail or use the bundled expat
  14234. if test "$neon_xml_parser" = "none"; then
  14235. as_fn_error $? "no XML parser was found: expat or libxml 2.x required" "$LINENO" 5
  14236. fi
  14237. { $as_echo "$as_me:${as_lineno-$LINENO}: XML parser used: $neon_xml_parser_message" >&5
  14238. $as_echo "$as_me: XML parser used: $neon_xml_parser_message" >&6;}
  14239. fi
  14240. # Internationalization support.
  14241. # Check whether --enable-nls was given.
  14242. if test "${enable_nls+set}" = set; then :
  14243. enableval=$enable_nls;
  14244. else
  14245. enable_nls=${ac_cv_header_libintl_h}
  14246. fi
  14247. if test x${enable_nls} = xyes; then
  14248. # presume that dgettext() is available if bindtextdomain() is...
  14249. # checking for dgettext() itself is awkward because gcc has a
  14250. # builtin of that function, which confuses AC_CHECK_FUNCS et al.
  14251. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing bindtextdomain" >&5
  14252. $as_echo_n "checking for library containing bindtextdomain... " >&6; }
  14253. if ${ne_cv_libsfor_bindtextdomain+:} false; then :
  14254. $as_echo_n "(cached) " >&6
  14255. else
  14256. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14257. /* end confdefs.h. */
  14258. int
  14259. main ()
  14260. {
  14261. bindtextdomain();
  14262. ;
  14263. return 0;
  14264. }
  14265. _ACEOF
  14266. if ac_fn_c_try_link "$LINENO"; then :
  14267. ne_cv_libsfor_bindtextdomain="none needed"
  14268. else
  14269. ne_sl_save_LIBS=$LIBS
  14270. ne_cv_libsfor_bindtextdomain="not found"
  14271. for lib in intl; do
  14272. # The w32api libraries link using the stdcall calling convention.
  14273. case ${lib}-${ne_cv_os_uname} in
  14274. ws2_32-MINGW*) ne__code="__stdcall bindtextdomain();" ;;
  14275. *) ne__code="bindtextdomain();" ;;
  14276. esac
  14277. LIBS="$ne_sl_save_LIBS -l$lib $NEON_LIBS"
  14278. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14279. /* end confdefs.h. */
  14280. int
  14281. main ()
  14282. {
  14283. $ne__code
  14284. ;
  14285. return 0;
  14286. }
  14287. _ACEOF
  14288. if ac_fn_c_try_link "$LINENO"; then :
  14289. ne_cv_libsfor_bindtextdomain="-l$lib"; break
  14290. fi
  14291. rm -f core conftest.err conftest.$ac_objext \
  14292. conftest$ac_exeext conftest.$ac_ext
  14293. LIBS="$ne_sl_save_LIBS -l$lib -liconv $NEON_LIBS"
  14294. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14295. /* end confdefs.h. */
  14296. int
  14297. main ()
  14298. {
  14299. $ne__code
  14300. ;
  14301. return 0;
  14302. }
  14303. _ACEOF
  14304. if ac_fn_c_try_link "$LINENO"; then :
  14305. ne_cv_libsfor_bindtextdomain="-l$lib -liconv "; break
  14306. fi
  14307. rm -f core conftest.err conftest.$ac_objext \
  14308. conftest$ac_exeext conftest.$ac_ext
  14309. done
  14310. LIBS=$ne_sl_save_LIBS
  14311. fi
  14312. rm -f core conftest.err conftest.$ac_objext \
  14313. conftest$ac_exeext conftest.$ac_ext
  14314. fi
  14315. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ne_cv_libsfor_bindtextdomain" >&5
  14316. $as_echo "$ne_cv_libsfor_bindtextdomain" >&6; }
  14317. if test "$ne_cv_libsfor_bindtextdomain" = "not found"; then
  14318. enable_nls=no
  14319. elif test "$ne_cv_libsfor_bindtextdomain" = "none needed"; then
  14320. :
  14321. else
  14322. NEON_LIBS="$ne_cv_libsfor_bindtextdomain $NEON_LIBS"
  14323. fi
  14324. ne_cf_save_LIBS=$LIBS
  14325. LIBS="$LIBS $NEON_LIBS"
  14326. for ac_func in bind_textdomain_codeset
  14327. do :
  14328. ac_fn_c_check_func "$LINENO" "bind_textdomain_codeset" "ac_cv_func_bind_textdomain_codeset"
  14329. if test "x$ac_cv_func_bind_textdomain_codeset" = xyes; then :
  14330. cat >>confdefs.h <<_ACEOF
  14331. #define HAVE_BIND_TEXTDOMAIN_CODESET 1
  14332. _ACEOF
  14333. fi
  14334. done
  14335. LIBS=$ne_cf_save_LIBS
  14336. fi
  14337. if test "$enable_nls" = "no"; then
  14338. NE_FLAG_I18N=no
  14339. ne_I18N_message="Internationalization support not enabled"
  14340. { $as_echo "$as_me:${as_lineno-$LINENO}: Internationalization support not enabled" >&5
  14341. $as_echo "$as_me: Internationalization support not enabled" >&6;}
  14342. else
  14343. NE_FLAG_I18N=yes
  14344. $as_echo "#define NE_HAVE_I18N 1" >>confdefs.h
  14345. ne_I18N_message="Internationalization support enabled"
  14346. { $as_echo "$as_me:${as_lineno-$LINENO}: Internationalization support enabled" >&5
  14347. $as_echo "$as_me: Internationalization support enabled" >&6;}
  14348. eval localedir="${datadir}/locale"
  14349. cat >>confdefs.h <<_ACEOF
  14350. #define LOCALEDIR "$localedir"
  14351. _ACEOF
  14352. fi
  14353. # Extra checks for debugging, compiler warnings
  14354. # Check whether --enable-debug was given.
  14355. if test "${enable_debug+set}" = set; then :
  14356. enableval=$enable_debug;
  14357. fi
  14358. # default is to enable debugging
  14359. case $enable_debug in
  14360. no) { $as_echo "$as_me:${as_lineno-$LINENO}: debugging is disabled" >&5
  14361. $as_echo "$as_me: debugging is disabled" >&6;}
  14362. ;;
  14363. *) { $as_echo "$as_me:${as_lineno-$LINENO}: debugging is enabled" >&5
  14364. $as_echo "$as_me: debugging is enabled" >&6;}
  14365. $as_echo "#define NE_DEBUGGING 1" >>confdefs.h
  14366. ;;
  14367. esac
  14368. # Leave till last to prevent CFLAGS affecting checks.
  14369. # Check whether --enable-warnings was given.
  14370. if test "${enable_warnings+set}" = set; then :
  14371. enableval=$enable_warnings;
  14372. fi
  14373. if test "$enable_warnings" = "yes"; then
  14374. case $GCC:`uname` in
  14375. yes:*)
  14376. CFLAGS="$CFLAGS -Wall -Wmissing-declarations -Wshadow -Wreturn-type -Wsign-compare -Wundef -Wpointer-arith -Wbad-function-cast -Wformat-security"
  14377. if test -z "$with_ssl" -o "$with_ssl" = "no"; then
  14378. # OpenSSL headers fail strict prototypes checks
  14379. CFLAGS="$CFLAGS -Wstrict-prototypes"
  14380. fi
  14381. ;;
  14382. no:OSF1) CFLAGS="$CFLAGS -check -msg_disable returnchecks -msg_disable alignment -msg_disable overflow" ;;
  14383. no:IRIX) CFLAGS="$CFLAGS -fullwarn" ;;
  14384. no:UnixWare) CFLAGS="$CFLAGS -v" ;;
  14385. *) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: warning flags unknown for compiler on this platform" >&5
  14386. $as_echo "$as_me: WARNING: warning flags unknown for compiler on this platform" >&2;} ;;
  14387. esac
  14388. fi
  14389. CPPFLAGS="$CPPFLAGS -I\${top_builddir}"
  14390. # Check whether --enable-memleak was given.
  14391. if test "${enable_memleak+set}" = set; then :
  14392. enableval=$enable_memleak;
  14393. fi
  14394. if test "$enable_memleak" = "yes"; then
  14395. CPPFLAGS="$CPPFLAGS -DNEON_MEMLEAK -I\$(top_srcdir)/src"
  14396. # disable 'make install'
  14397. ALLOW_INSTALL=memleak
  14398. fi
  14399. # Enable tests for optional features
  14400. TESTS="\$(BASIC_TESTS)"
  14401. HELPERS=""
  14402. if test $NE_FLAG_SSL = yes; then
  14403. # Only enable SSL tests if an openssl binary is found (needed to make
  14404. # certs etc).
  14405. # Extract the first word of "openssl", so it can be a program name with args.
  14406. set dummy openssl; ac_word=$2
  14407. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  14408. $as_echo_n "checking for $ac_word... " >&6; }
  14409. if ${ac_cv_path_OPENSSL+:} false; then :
  14410. $as_echo_n "(cached) " >&6
  14411. else
  14412. case $OPENSSL in
  14413. [\\/]* | ?:[\\/]*)
  14414. ac_cv_path_OPENSSL="$OPENSSL" # Let the user override the test with a path.
  14415. ;;
  14416. *)
  14417. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  14418. for as_dir in $PATH
  14419. do
  14420. IFS=$as_save_IFS
  14421. test -z "$as_dir" && as_dir=.
  14422. for ac_exec_ext in '' $ac_executable_extensions; do
  14423. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  14424. ac_cv_path_OPENSSL="$as_dir/$ac_word$ac_exec_ext"
  14425. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  14426. break 2
  14427. fi
  14428. done
  14429. done
  14430. IFS=$as_save_IFS
  14431. test -z "$ac_cv_path_OPENSSL" && ac_cv_path_OPENSSL="notfound"
  14432. ;;
  14433. esac
  14434. fi
  14435. OPENSSL=$ac_cv_path_OPENSSL
  14436. if test -n "$OPENSSL"; then
  14437. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OPENSSL" >&5
  14438. $as_echo "$OPENSSL" >&6; }
  14439. else
  14440. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  14441. $as_echo "no" >&6; }
  14442. fi
  14443. if test "$OPENSSL" != "notfound"; then
  14444. TESTS="$TESTS \$(SSL_TESTS)"
  14445. HELPERS="$HELPERS \$(SSL_HELPERS)"
  14446. else
  14447. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: no openssl binary in \$PATH: SSL tests disabled" >&5
  14448. $as_echo "$as_me: WARNING: no openssl binary in \$PATH: SSL tests disabled" >&2;}
  14449. fi
  14450. # Extract the first word of "certutil", so it can be a program name with args.
  14451. set dummy certutil; ac_word=$2
  14452. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  14453. $as_echo_n "checking for $ac_word... " >&6; }
  14454. if ${ac_cv_path_CERTUTIL+:} false; then :
  14455. $as_echo_n "(cached) " >&6
  14456. else
  14457. case $CERTUTIL in
  14458. [\\/]* | ?:[\\/]*)
  14459. ac_cv_path_CERTUTIL="$CERTUTIL" # Let the user override the test with a path.
  14460. ;;
  14461. *)
  14462. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  14463. for as_dir in $PATH
  14464. do
  14465. IFS=$as_save_IFS
  14466. test -z "$as_dir" && as_dir=.
  14467. for ac_exec_ext in '' $ac_executable_extensions; do
  14468. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  14469. ac_cv_path_CERTUTIL="$as_dir/$ac_word$ac_exec_ext"
  14470. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  14471. break 2
  14472. fi
  14473. done
  14474. done
  14475. IFS=$as_save_IFS
  14476. test -z "$ac_cv_path_CERTUTIL" && ac_cv_path_CERTUTIL="notfound"
  14477. ;;
  14478. esac
  14479. fi
  14480. CERTUTIL=$ac_cv_path_CERTUTIL
  14481. if test -n "$CERTUTIL"; then
  14482. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CERTUTIL" >&5
  14483. $as_echo "$CERTUTIL" >&6; }
  14484. else
  14485. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  14486. $as_echo "no" >&6; }
  14487. fi
  14488. # Extract the first word of "pk12util", so it can be a program name with args.
  14489. set dummy pk12util; ac_word=$2
  14490. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  14491. $as_echo_n "checking for $ac_word... " >&6; }
  14492. if ${ac_cv_path_PK12UTIL+:} false; then :
  14493. $as_echo_n "(cached) " >&6
  14494. else
  14495. case $PK12UTIL in
  14496. [\\/]* | ?:[\\/]*)
  14497. ac_cv_path_PK12UTIL="$PK12UTIL" # Let the user override the test with a path.
  14498. ;;
  14499. *)
  14500. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  14501. for as_dir in $PATH
  14502. do
  14503. IFS=$as_save_IFS
  14504. test -z "$as_dir" && as_dir=.
  14505. for ac_exec_ext in '' $ac_executable_extensions; do
  14506. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  14507. ac_cv_path_PK12UTIL="$as_dir/$ac_word$ac_exec_ext"
  14508. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  14509. break 2
  14510. fi
  14511. done
  14512. done
  14513. IFS=$as_save_IFS
  14514. test -z "$ac_cv_path_PK12UTIL" && ac_cv_path_PK12UTIL="notfound"
  14515. ;;
  14516. esac
  14517. fi
  14518. PK12UTIL=$ac_cv_path_PK12UTIL
  14519. if test -n "$PK12UTIL"; then
  14520. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PK12UTIL" >&5
  14521. $as_echo "$PK12UTIL" >&6; }
  14522. else
  14523. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  14524. $as_echo "no" >&6; }
  14525. fi
  14526. fi
  14527. if test $NE_FLAG_ZLIB = yes; then
  14528. TESTS="$TESTS \$(ZLIB_TESTS)"
  14529. HELPERS="$HELPERS \$(ZLIB_HELPERS)"
  14530. fi
  14531. if test x$enable_webdav != xno; then
  14532. TESTS="$TESTS \$(DAV_TESTS)"
  14533. fi
  14534. # Check whether --enable-tests-install was given.
  14535. if test "${enable_tests_install+set}" = set; then :
  14536. enableval=$enable_tests_install;
  14537. else
  14538. enable_tests_install=no
  14539. fi
  14540. # If test suite installation is not required, it's more
  14541. # efficient to link the test programs using -no-install:
  14542. if test "$enable_tests_install" = "no"; then
  14543. TEST_LDFLAGS="-no-install"
  14544. fi
  14545. # Extract the first word of "pkg-config", so it can be a program name with args.
  14546. set dummy pkg-config; ac_word=$2
  14547. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  14548. $as_echo_n "checking for $ac_word... " >&6; }
  14549. if ${ac_cv_path_PKG_CONFIG+:} false; then :
  14550. $as_echo_n "(cached) " >&6
  14551. else
  14552. case $PKG_CONFIG in
  14553. [\\/]* | ?:[\\/]*)
  14554. ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
  14555. ;;
  14556. *)
  14557. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  14558. for as_dir in $PATH
  14559. do
  14560. IFS=$as_save_IFS
  14561. test -z "$as_dir" && as_dir=.
  14562. for ac_exec_ext in '' $ac_executable_extensions; do
  14563. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  14564. ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
  14565. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  14566. break 2
  14567. fi
  14568. done
  14569. done
  14570. IFS=$as_save_IFS
  14571. test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
  14572. ;;
  14573. esac
  14574. fi
  14575. PKG_CONFIG=$ac_cv_path_PKG_CONFIG
  14576. if test -n "$PKG_CONFIG"; then
  14577. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
  14578. $as_echo "$PKG_CONFIG" >&6; }
  14579. else
  14580. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  14581. $as_echo "no" >&6; }
  14582. fi
  14583. if test "$PKG_CONFIG" != "no"; then
  14584. # pkg-config >= 0.18 will use "Libs.private" iff necessary,
  14585. # older versions which don't recognize that field may always
  14586. # need all libraries in Libs.
  14587. if $PKG_CONFIG --atleast-pkgconfig-version=0.18; then :; else
  14588. NEON_PC_LIBS=${NEON_LIBS}
  14589. fi
  14590. fi
  14591. # Pass the interface version on to libtool when linking libneon.la
  14592. NEON_LINK_FLAGS="-version-info ${NE_LIBTOOL_VERSINFO}"
  14593. # If any non-default ABI variations are used, add them to the SONAME:
  14594. ### disabled for backwards-compat with 0.27.x
  14595. #if test "x${NE_LIBTOOL_RELEASE}y" != "xy"; then
  14596. # NEON_LINK_FLAGS="${NEON_LINK_FLAGS} -release ${NE_LIBTOOL_RELEASE}"
  14597. #fi
  14598. # Check whether --enable-ld-version-script was given.
  14599. if test "${enable_ld_version_script+set}" = set; then :
  14600. enableval=$enable_ld_version_script; have_ld_version_script=$enableval
  14601. fi
  14602. if test -z "$have_ld_version_script"; then
  14603. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if LD -Wl,--version-script works" >&5
  14604. $as_echo_n "checking if LD -Wl,--version-script works... " >&6; }
  14605. save_LDFLAGS="$LDFLAGS"
  14606. LDFLAGS="$LDFLAGS -Wl,--version-script=conftest.map"
  14607. cat > conftest.map <<EOF
  14608. foo
  14609. EOF
  14610. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14611. /* end confdefs.h. */
  14612. int
  14613. main ()
  14614. {
  14615. ;
  14616. return 0;
  14617. }
  14618. _ACEOF
  14619. if ac_fn_c_try_link "$LINENO"; then :
  14620. accepts_syntax_errors=yes
  14621. else
  14622. accepts_syntax_errors=no
  14623. fi
  14624. rm -f core conftest.err conftest.$ac_objext \
  14625. conftest$ac_exeext conftest.$ac_ext
  14626. if test "$accepts_syntax_errors" = no; then
  14627. cat > conftest.map <<EOF
  14628. VERS_1 {
  14629. global: sym;
  14630. };
  14631. VERS_2 {
  14632. global: sym;
  14633. } VERS_1;
  14634. EOF
  14635. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14636. /* end confdefs.h. */
  14637. int
  14638. main ()
  14639. {
  14640. ;
  14641. return 0;
  14642. }
  14643. _ACEOF
  14644. if ac_fn_c_try_link "$LINENO"; then :
  14645. have_ld_version_script=yes
  14646. else
  14647. have_ld_version_script=no
  14648. fi
  14649. rm -f core conftest.err conftest.$ac_objext \
  14650. conftest$ac_exeext conftest.$ac_ext
  14651. else
  14652. have_ld_version_script=no
  14653. fi
  14654. rm -f conftest.map
  14655. LDFLAGS="$save_LDFLAGS"
  14656. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_ld_version_script" >&5
  14657. $as_echo "$have_ld_version_script" >&6; }
  14658. fi
  14659. if test "$have_ld_version_script" = "yes"; then
  14660. HAVE_LD_VERSION_SCRIPT_TRUE=
  14661. HAVE_LD_VERSION_SCRIPT_FALSE='#'
  14662. else
  14663. HAVE_LD_VERSION_SCRIPT_TRUE='#'
  14664. HAVE_LD_VERSION_SCRIPT_FALSE=
  14665. fi
  14666. # If ld version scripts are supported, enable symbol versioning.
  14667. # Otherwise, fall back to any libtool-supported symbol export
  14668. # restrictions; ne__* symbols are not exported.
  14669. if test "x$have_ld_version_script" = "xyes"; then
  14670. NEON_LINK_FLAGS="$NEON_LINK_FLAGS -Wl,--version-script=\$(top_srcdir)/src/neon.vers"
  14671. else
  14672. NEON_LINK_FLAGS="$NEON_LINK_FLAGS -export-symbols-regex '^ne_[^_]'"
  14673. fi
  14674. if test x${enable_shared}${pic_mode}z = xnodefaultz; then
  14675. CFLAGS="$CFLAGS -prefer-pic"
  14676. { $as_echo "$as_me:${as_lineno-$LINENO}: Using PIC for static library build" >&5
  14677. $as_echo "$as_me: Using PIC for static library build" >&6;}
  14678. fi
  14679. if test x${enable_shared} = xno; then
  14680. # Defining NE_PRIVATE as the empty string would work; using a
  14681. # non-empty but redundant string 'extern' avoids any possible cpp
  14682. # confusion with from an empty macro.
  14683. CPPFLAGS="$CPPFLAGS -DNE_PRIVATE=extern"
  14684. { $as_echo "$as_me:${as_lineno-$LINENO}: Private symbol suppression disabled for static library build" >&5
  14685. $as_echo "$as_me: Private symbol suppression disabled for static library build" >&6;}
  14686. fi
  14687. # Bundled language catalogs
  14688. ALL_LINGUAS="cs de fr ja nn pl ru tr zh_CN"
  14689. ac_config_files="$ac_config_files neon-config"
  14690. ac_config_files="$ac_config_files Makefile src/Makefile test/Makefile neon.pc"
  14691. ac_config_files="$ac_config_files test/makekeys:test/makekeys.sh"
  14692. cat >confcache <<\_ACEOF
  14693. # This file is a shell script that caches the results of configure
  14694. # tests run on this system so they can be shared between configure
  14695. # scripts and configure runs, see configure's option --config-cache.
  14696. # It is not useful on other systems. If it contains results you don't
  14697. # want to keep, you may remove or edit it.
  14698. #
  14699. # config.status only pays attention to the cache file if you give it
  14700. # the --recheck option to rerun configure.
  14701. #
  14702. # `ac_cv_env_foo' variables (set or unset) will be overridden when
  14703. # loading this file, other *unset* `ac_cv_foo' will be assigned the
  14704. # following values.
  14705. _ACEOF
  14706. # The following way of writing the cache mishandles newlines in values,
  14707. # but we know of no workaround that is simple, portable, and efficient.
  14708. # So, we kill variables containing newlines.
  14709. # Ultrix sh set writes to stderr and can't be redirected directly,
  14710. # and sets the high bit in the cache file unless we assign to the vars.
  14711. (
  14712. for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
  14713. eval ac_val=\$$ac_var
  14714. case $ac_val in #(
  14715. *${as_nl}*)
  14716. case $ac_var in #(
  14717. *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
  14718. $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
  14719. esac
  14720. case $ac_var in #(
  14721. _ | IFS | as_nl) ;; #(
  14722. BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
  14723. *) { eval $ac_var=; unset $ac_var;} ;;
  14724. esac ;;
  14725. esac
  14726. done
  14727. (set) 2>&1 |
  14728. case $as_nl`(ac_space=' '; set) 2>&1` in #(
  14729. *${as_nl}ac_space=\ *)
  14730. # `set' does not quote correctly, so add quotes: double-quote
  14731. # substitution turns \\\\ into \\, and sed turns \\ into \.
  14732. sed -n \
  14733. "s/'/'\\\\''/g;
  14734. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
  14735. ;; #(
  14736. *)
  14737. # `set' quotes correctly as required by POSIX, so do not add quotes.
  14738. sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
  14739. ;;
  14740. esac |
  14741. sort
  14742. ) |
  14743. sed '
  14744. /^ac_cv_env_/b end
  14745. t clear
  14746. :clear
  14747. s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
  14748. t end
  14749. s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
  14750. :end' >>confcache
  14751. if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
  14752. if test -w "$cache_file"; then
  14753. if test "x$cache_file" != "x/dev/null"; then
  14754. { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
  14755. $as_echo "$as_me: updating cache $cache_file" >&6;}
  14756. if test ! -f "$cache_file" || test -h "$cache_file"; then
  14757. cat confcache >"$cache_file"
  14758. else
  14759. case $cache_file in #(
  14760. */* | ?:*)
  14761. mv -f confcache "$cache_file"$$ &&
  14762. mv -f "$cache_file"$$ "$cache_file" ;; #(
  14763. *)
  14764. mv -f confcache "$cache_file" ;;
  14765. esac
  14766. fi
  14767. fi
  14768. else
  14769. { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
  14770. $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
  14771. fi
  14772. fi
  14773. rm -f confcache
  14774. test "x$prefix" = xNONE && prefix=$ac_default_prefix
  14775. # Let make expand exec_prefix.
  14776. test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
  14777. DEFS=-DHAVE_CONFIG_H
  14778. ac_libobjs=
  14779. ac_ltlibobjs=
  14780. U=
  14781. for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
  14782. # 1. Remove the extension, and $U if already installed.
  14783. ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
  14784. ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
  14785. # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
  14786. # will be set to the directory where LIBOBJS objects are built.
  14787. as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
  14788. as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
  14789. done
  14790. LIBOBJS=$ac_libobjs
  14791. LTLIBOBJS=$ac_ltlibobjs
  14792. if test -z "${HAVE_LD_VERSION_SCRIPT_TRUE}" && test -z "${HAVE_LD_VERSION_SCRIPT_FALSE}"; then
  14793. as_fn_error $? "conditional \"HAVE_LD_VERSION_SCRIPT\" was never defined.
  14794. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  14795. fi
  14796. : "${CONFIG_STATUS=./config.status}"
  14797. ac_write_fail=0
  14798. ac_clean_files_save=$ac_clean_files
  14799. ac_clean_files="$ac_clean_files $CONFIG_STATUS"
  14800. { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
  14801. $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
  14802. as_write_fail=0
  14803. cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
  14804. #! $SHELL
  14805. # Generated by $as_me.
  14806. # Run this file to recreate the current configuration.
  14807. # Compiler output produced by configure, useful for debugging
  14808. # configure, is in config.log if it exists.
  14809. debug=false
  14810. ac_cs_recheck=false
  14811. ac_cs_silent=false
  14812. SHELL=\${CONFIG_SHELL-$SHELL}
  14813. export SHELL
  14814. _ASEOF
  14815. cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
  14816. ## -------------------- ##
  14817. ## M4sh Initialization. ##
  14818. ## -------------------- ##
  14819. # Be more Bourne compatible
  14820. DUALCASE=1; export DUALCASE # for MKS sh
  14821. if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
  14822. emulate sh
  14823. NULLCMD=:
  14824. # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
  14825. # is contrary to our usage. Disable this feature.
  14826. alias -g '${1+"$@"}'='"$@"'
  14827. setopt NO_GLOB_SUBST
  14828. else
  14829. case `(set -o) 2>/dev/null` in #(
  14830. *posix*) :
  14831. set -o posix ;; #(
  14832. *) :
  14833. ;;
  14834. esac
  14835. fi
  14836. as_nl='
  14837. '
  14838. export as_nl
  14839. # Printing a long string crashes Solaris 7 /usr/bin/printf.
  14840. as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
  14841. as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
  14842. as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
  14843. # Prefer a ksh shell builtin over an external printf program on Solaris,
  14844. # but without wasting forks for bash or zsh.
  14845. if test -z "$BASH_VERSION$ZSH_VERSION" \
  14846. && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
  14847. as_echo='print -r --'
  14848. as_echo_n='print -rn --'
  14849. elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
  14850. as_echo='printf %s\n'
  14851. as_echo_n='printf %s'
  14852. else
  14853. if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
  14854. as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
  14855. as_echo_n='/usr/ucb/echo -n'
  14856. else
  14857. as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
  14858. as_echo_n_body='eval
  14859. arg=$1;
  14860. case $arg in #(
  14861. *"$as_nl"*)
  14862. expr "X$arg" : "X\\(.*\\)$as_nl";
  14863. arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
  14864. esac;
  14865. expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
  14866. '
  14867. export as_echo_n_body
  14868. as_echo_n='sh -c $as_echo_n_body as_echo'
  14869. fi
  14870. export as_echo_body
  14871. as_echo='sh -c $as_echo_body as_echo'
  14872. fi
  14873. # The user is always right.
  14874. if test "${PATH_SEPARATOR+set}" != set; then
  14875. PATH_SEPARATOR=:
  14876. (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
  14877. (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
  14878. PATH_SEPARATOR=';'
  14879. }
  14880. fi
  14881. # IFS
  14882. # We need space, tab and new line, in precisely that order. Quoting is
  14883. # there to prevent editors from complaining about space-tab.
  14884. # (If _AS_PATH_WALK were called with IFS unset, it would disable word
  14885. # splitting by setting IFS to empty value.)
  14886. IFS=" "" $as_nl"
  14887. # Find who we are. Look in the path if we contain no directory separator.
  14888. as_myself=
  14889. case $0 in #((
  14890. *[\\/]* ) as_myself=$0 ;;
  14891. *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  14892. for as_dir in $PATH
  14893. do
  14894. IFS=$as_save_IFS
  14895. test -z "$as_dir" && as_dir=.
  14896. test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
  14897. done
  14898. IFS=$as_save_IFS
  14899. ;;
  14900. esac
  14901. # We did not find ourselves, most probably we were run as `sh COMMAND'
  14902. # in which case we are not to be found in the path.
  14903. if test "x$as_myself" = x; then
  14904. as_myself=$0
  14905. fi
  14906. if test ! -f "$as_myself"; then
  14907. $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
  14908. exit 1
  14909. fi
  14910. # Unset variables that we do not need and which cause bugs (e.g. in
  14911. # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
  14912. # suppresses any "Segmentation fault" message there. '((' could
  14913. # trigger a bug in pdksh 5.2.14.
  14914. for as_var in BASH_ENV ENV MAIL MAILPATH
  14915. do eval test x\${$as_var+set} = xset \
  14916. && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
  14917. done
  14918. PS1='$ '
  14919. PS2='> '
  14920. PS4='+ '
  14921. # NLS nuisances.
  14922. LC_ALL=C
  14923. export LC_ALL
  14924. LANGUAGE=C
  14925. export LANGUAGE
  14926. # CDPATH.
  14927. (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
  14928. # as_fn_error STATUS ERROR [LINENO LOG_FD]
  14929. # ----------------------------------------
  14930. # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
  14931. # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
  14932. # script with STATUS, using 1 if that was 0.
  14933. as_fn_error ()
  14934. {
  14935. as_status=$1; test $as_status -eq 0 && as_status=1
  14936. if test "$4"; then
  14937. as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  14938. $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
  14939. fi
  14940. $as_echo "$as_me: error: $2" >&2
  14941. as_fn_exit $as_status
  14942. } # as_fn_error
  14943. # as_fn_set_status STATUS
  14944. # -----------------------
  14945. # Set $? to STATUS, without forking.
  14946. as_fn_set_status ()
  14947. {
  14948. return $1
  14949. } # as_fn_set_status
  14950. # as_fn_exit STATUS
  14951. # -----------------
  14952. # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
  14953. as_fn_exit ()
  14954. {
  14955. set +e
  14956. as_fn_set_status $1
  14957. exit $1
  14958. } # as_fn_exit
  14959. # as_fn_unset VAR
  14960. # ---------------
  14961. # Portably unset VAR.
  14962. as_fn_unset ()
  14963. {
  14964. { eval $1=; unset $1;}
  14965. }
  14966. as_unset=as_fn_unset
  14967. # as_fn_append VAR VALUE
  14968. # ----------------------
  14969. # Append the text in VALUE to the end of the definition contained in VAR. Take
  14970. # advantage of any shell optimizations that allow amortized linear growth over
  14971. # repeated appends, instead of the typical quadratic growth present in naive
  14972. # implementations.
  14973. if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
  14974. eval 'as_fn_append ()
  14975. {
  14976. eval $1+=\$2
  14977. }'
  14978. else
  14979. as_fn_append ()
  14980. {
  14981. eval $1=\$$1\$2
  14982. }
  14983. fi # as_fn_append
  14984. # as_fn_arith ARG...
  14985. # ------------------
  14986. # Perform arithmetic evaluation on the ARGs, and store the result in the
  14987. # global $as_val. Take advantage of shells that can avoid forks. The arguments
  14988. # must be portable across $(()) and expr.
  14989. if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
  14990. eval 'as_fn_arith ()
  14991. {
  14992. as_val=$(( $* ))
  14993. }'
  14994. else
  14995. as_fn_arith ()
  14996. {
  14997. as_val=`expr "$@" || test $? -eq 1`
  14998. }
  14999. fi # as_fn_arith
  15000. if expr a : '\(a\)' >/dev/null 2>&1 &&
  15001. test "X`expr 00001 : '.*\(...\)'`" = X001; then
  15002. as_expr=expr
  15003. else
  15004. as_expr=false
  15005. fi
  15006. if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
  15007. as_basename=basename
  15008. else
  15009. as_basename=false
  15010. fi
  15011. if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
  15012. as_dirname=dirname
  15013. else
  15014. as_dirname=false
  15015. fi
  15016. as_me=`$as_basename -- "$0" ||
  15017. $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
  15018. X"$0" : 'X\(//\)$' \| \
  15019. X"$0" : 'X\(/\)' \| . 2>/dev/null ||
  15020. $as_echo X/"$0" |
  15021. sed '/^.*\/\([^/][^/]*\)\/*$/{
  15022. s//\1/
  15023. q
  15024. }
  15025. /^X\/\(\/\/\)$/{
  15026. s//\1/
  15027. q
  15028. }
  15029. /^X\/\(\/\).*/{
  15030. s//\1/
  15031. q
  15032. }
  15033. s/.*/./; q'`
  15034. # Avoid depending upon Character Ranges.
  15035. as_cr_letters='abcdefghijklmnopqrstuvwxyz'
  15036. as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
  15037. as_cr_Letters=$as_cr_letters$as_cr_LETTERS
  15038. as_cr_digits='0123456789'
  15039. as_cr_alnum=$as_cr_Letters$as_cr_digits
  15040. ECHO_C= ECHO_N= ECHO_T=
  15041. case `echo -n x` in #(((((
  15042. -n*)
  15043. case `echo 'xy\c'` in
  15044. *c*) ECHO_T=' ';; # ECHO_T is single tab character.
  15045. xy) ECHO_C='\c';;
  15046. *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
  15047. ECHO_T=' ';;
  15048. esac;;
  15049. *)
  15050. ECHO_N='-n';;
  15051. esac
  15052. rm -f conf$$ conf$$.exe conf$$.file
  15053. if test -d conf$$.dir; then
  15054. rm -f conf$$.dir/conf$$.file
  15055. else
  15056. rm -f conf$$.dir
  15057. mkdir conf$$.dir 2>/dev/null
  15058. fi
  15059. if (echo >conf$$.file) 2>/dev/null; then
  15060. if ln -s conf$$.file conf$$ 2>/dev/null; then
  15061. as_ln_s='ln -s'
  15062. # ... but there are two gotchas:
  15063. # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
  15064. # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
  15065. # In both cases, we have to default to `cp -pR'.
  15066. ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
  15067. as_ln_s='cp -pR'
  15068. elif ln conf$$.file conf$$ 2>/dev/null; then
  15069. as_ln_s=ln
  15070. else
  15071. as_ln_s='cp -pR'
  15072. fi
  15073. else
  15074. as_ln_s='cp -pR'
  15075. fi
  15076. rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
  15077. rmdir conf$$.dir 2>/dev/null
  15078. # as_fn_mkdir_p
  15079. # -------------
  15080. # Create "$as_dir" as a directory, including parents if necessary.
  15081. as_fn_mkdir_p ()
  15082. {
  15083. case $as_dir in #(
  15084. -*) as_dir=./$as_dir;;
  15085. esac
  15086. test -d "$as_dir" || eval $as_mkdir_p || {
  15087. as_dirs=
  15088. while :; do
  15089. case $as_dir in #(
  15090. *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
  15091. *) as_qdir=$as_dir;;
  15092. esac
  15093. as_dirs="'$as_qdir' $as_dirs"
  15094. as_dir=`$as_dirname -- "$as_dir" ||
  15095. $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  15096. X"$as_dir" : 'X\(//\)[^/]' \| \
  15097. X"$as_dir" : 'X\(//\)$' \| \
  15098. X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
  15099. $as_echo X"$as_dir" |
  15100. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  15101. s//\1/
  15102. q
  15103. }
  15104. /^X\(\/\/\)[^/].*/{
  15105. s//\1/
  15106. q
  15107. }
  15108. /^X\(\/\/\)$/{
  15109. s//\1/
  15110. q
  15111. }
  15112. /^X\(\/\).*/{
  15113. s//\1/
  15114. q
  15115. }
  15116. s/.*/./; q'`
  15117. test -d "$as_dir" && break
  15118. done
  15119. test -z "$as_dirs" || eval "mkdir $as_dirs"
  15120. } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
  15121. } # as_fn_mkdir_p
  15122. if mkdir -p . 2>/dev/null; then
  15123. as_mkdir_p='mkdir -p "$as_dir"'
  15124. else
  15125. test -d ./-p && rmdir ./-p
  15126. as_mkdir_p=false
  15127. fi
  15128. # as_fn_executable_p FILE
  15129. # -----------------------
  15130. # Test if FILE is an executable regular file.
  15131. as_fn_executable_p ()
  15132. {
  15133. test -f "$1" && test -x "$1"
  15134. } # as_fn_executable_p
  15135. as_test_x='test -x'
  15136. as_executable_p=as_fn_executable_p
  15137. # Sed expression to map a string onto a valid CPP name.
  15138. as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
  15139. # Sed expression to map a string onto a valid variable name.
  15140. as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
  15141. exec 6>&1
  15142. ## ----------------------------------- ##
  15143. ## Main body of $CONFIG_STATUS script. ##
  15144. ## ----------------------------------- ##
  15145. _ASEOF
  15146. test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
  15147. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  15148. # Save the log message, to keep $0 and so on meaningful, and to
  15149. # report actual input values of CONFIG_FILES etc. instead of their
  15150. # values after options handling.
  15151. ac_log="
  15152. This file was extended by neon $as_me 0.31.0, which was
  15153. generated by GNU Autoconf 2.69. Invocation command line was
  15154. CONFIG_FILES = $CONFIG_FILES
  15155. CONFIG_HEADERS = $CONFIG_HEADERS
  15156. CONFIG_LINKS = $CONFIG_LINKS
  15157. CONFIG_COMMANDS = $CONFIG_COMMANDS
  15158. $ $0 $@
  15159. on `(hostname || uname -n) 2>/dev/null | sed 1q`
  15160. "
  15161. _ACEOF
  15162. case $ac_config_files in *"
  15163. "*) set x $ac_config_files; shift; ac_config_files=$*;;
  15164. esac
  15165. case $ac_config_headers in *"
  15166. "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
  15167. esac
  15168. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  15169. # Files that config.status was made for.
  15170. config_files="$ac_config_files"
  15171. config_headers="$ac_config_headers"
  15172. config_commands="$ac_config_commands"
  15173. _ACEOF
  15174. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  15175. ac_cs_usage="\
  15176. \`$as_me' instantiates files and other configuration actions
  15177. from templates according to the current configuration. Unless the files
  15178. and actions are specified as TAGs, all are instantiated by default.
  15179. Usage: $0 [OPTION]... [TAG]...
  15180. -h, --help print this help, then exit
  15181. -V, --version print version number and configuration settings, then exit
  15182. --config print configuration, then exit
  15183. -q, --quiet, --silent
  15184. do not print progress messages
  15185. -d, --debug don't remove temporary files
  15186. --recheck update $as_me by reconfiguring in the same conditions
  15187. --file=FILE[:TEMPLATE]
  15188. instantiate the configuration file FILE
  15189. --header=FILE[:TEMPLATE]
  15190. instantiate the configuration header FILE
  15191. Configuration files:
  15192. $config_files
  15193. Configuration headers:
  15194. $config_headers
  15195. Configuration commands:
  15196. $config_commands
  15197. Report bugs to <[email protected]>."
  15198. _ACEOF
  15199. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  15200. ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
  15201. ac_cs_version="\\
  15202. neon config.status 0.31.0
  15203. configured by $0, generated by GNU Autoconf 2.69,
  15204. with options \\"\$ac_cs_config\\"
  15205. Copyright (C) 2012 Free Software Foundation, Inc.
  15206. This config.status script is free software; the Free Software Foundation
  15207. gives unlimited permission to copy, distribute and modify it."
  15208. ac_pwd='$ac_pwd'
  15209. srcdir='$srcdir'
  15210. INSTALL='$INSTALL'
  15211. AWK='$AWK'
  15212. test -n "\$AWK" || AWK=awk
  15213. _ACEOF
  15214. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  15215. # The default lists apply if the user does not specify any file.
  15216. ac_need_defaults=:
  15217. while test $# != 0
  15218. do
  15219. case $1 in
  15220. --*=?*)
  15221. ac_option=`expr "X$1" : 'X\([^=]*\)='`
  15222. ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
  15223. ac_shift=:
  15224. ;;
  15225. --*=)
  15226. ac_option=`expr "X$1" : 'X\([^=]*\)='`
  15227. ac_optarg=
  15228. ac_shift=:
  15229. ;;
  15230. *)
  15231. ac_option=$1
  15232. ac_optarg=$2
  15233. ac_shift=shift
  15234. ;;
  15235. esac
  15236. case $ac_option in
  15237. # Handling of the options.
  15238. -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
  15239. ac_cs_recheck=: ;;
  15240. --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
  15241. $as_echo "$ac_cs_version"; exit ;;
  15242. --config | --confi | --conf | --con | --co | --c )
  15243. $as_echo "$ac_cs_config"; exit ;;
  15244. --debug | --debu | --deb | --de | --d | -d )
  15245. debug=: ;;
  15246. --file | --fil | --fi | --f )
  15247. $ac_shift
  15248. case $ac_optarg in
  15249. *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
  15250. '') as_fn_error $? "missing file argument" ;;
  15251. esac
  15252. as_fn_append CONFIG_FILES " '$ac_optarg'"
  15253. ac_need_defaults=false;;
  15254. --header | --heade | --head | --hea )
  15255. $ac_shift
  15256. case $ac_optarg in
  15257. *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
  15258. esac
  15259. as_fn_append CONFIG_HEADERS " '$ac_optarg'"
  15260. ac_need_defaults=false;;
  15261. --he | --h)
  15262. # Conflict between --help and --header
  15263. as_fn_error $? "ambiguous option: \`$1'
  15264. Try \`$0 --help' for more information.";;
  15265. --help | --hel | -h )
  15266. $as_echo "$ac_cs_usage"; exit ;;
  15267. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  15268. | -silent | --silent | --silen | --sile | --sil | --si | --s)
  15269. ac_cs_silent=: ;;
  15270. # This is an error.
  15271. -*) as_fn_error $? "unrecognized option: \`$1'
  15272. Try \`$0 --help' for more information." ;;
  15273. *) as_fn_append ac_config_targets " $1"
  15274. ac_need_defaults=false ;;
  15275. esac
  15276. shift
  15277. done
  15278. ac_configure_extra_args=
  15279. if $ac_cs_silent; then
  15280. exec 6>/dev/null
  15281. ac_configure_extra_args="$ac_configure_extra_args --silent"
  15282. fi
  15283. _ACEOF
  15284. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  15285. if \$ac_cs_recheck; then
  15286. set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
  15287. shift
  15288. \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
  15289. CONFIG_SHELL='$SHELL'
  15290. export CONFIG_SHELL
  15291. exec "\$@"
  15292. fi
  15293. _ACEOF
  15294. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  15295. exec 5>>config.log
  15296. {
  15297. echo
  15298. sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
  15299. ## Running $as_me. ##
  15300. _ASBOX
  15301. $as_echo "$ac_log"
  15302. } >&5
  15303. _ACEOF
  15304. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  15305. #
  15306. # INIT-COMMANDS
  15307. #
  15308. # The HP-UX ksh and POSIX shell print the target directory to stdout
  15309. # if CDPATH is set.
  15310. (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
  15311. sed_quote_subst='$sed_quote_subst'
  15312. double_quote_subst='$double_quote_subst'
  15313. delay_variable_subst='$delay_variable_subst'
  15314. enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
  15315. macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
  15316. macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
  15317. enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
  15318. pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
  15319. enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
  15320. shared_archive_member_spec='`$ECHO "$shared_archive_member_spec" | $SED "$delay_single_quote_subst"`'
  15321. SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
  15322. ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
  15323. PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
  15324. host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
  15325. host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
  15326. host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
  15327. build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
  15328. build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
  15329. build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
  15330. SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
  15331. Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
  15332. GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
  15333. EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
  15334. FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
  15335. LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
  15336. NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
  15337. LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
  15338. max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
  15339. ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
  15340. exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
  15341. lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
  15342. lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
  15343. lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
  15344. lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
  15345. lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
  15346. reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
  15347. reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
  15348. OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
  15349. deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
  15350. file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
  15351. file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
  15352. want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
  15353. DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
  15354. sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
  15355. AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
  15356. AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
  15357. archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
  15358. STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
  15359. RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
  15360. old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
  15361. old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
  15362. old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
  15363. lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
  15364. CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
  15365. CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
  15366. compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
  15367. GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
  15368. lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
  15369. lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
  15370. lt_cv_sys_global_symbol_to_import='`$ECHO "$lt_cv_sys_global_symbol_to_import" | $SED "$delay_single_quote_subst"`'
  15371. lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
  15372. 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"`'
  15373. lt_cv_nm_interface='`$ECHO "$lt_cv_nm_interface" | $SED "$delay_single_quote_subst"`'
  15374. nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
  15375. lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
  15376. lt_cv_truncate_bin='`$ECHO "$lt_cv_truncate_bin" | $SED "$delay_single_quote_subst"`'
  15377. objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
  15378. MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
  15379. lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
  15380. lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
  15381. lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
  15382. lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
  15383. lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
  15384. need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
  15385. MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
  15386. DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
  15387. NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
  15388. LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
  15389. OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
  15390. OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
  15391. libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
  15392. shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
  15393. extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
  15394. archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
  15395. enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
  15396. export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
  15397. whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
  15398. compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
  15399. old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
  15400. old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
  15401. archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
  15402. archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
  15403. module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
  15404. module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
  15405. with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
  15406. allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
  15407. no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
  15408. hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
  15409. hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
  15410. hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
  15411. hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
  15412. hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
  15413. hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
  15414. hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
  15415. inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
  15416. link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
  15417. always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
  15418. export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
  15419. exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
  15420. include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
  15421. prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
  15422. postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
  15423. file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
  15424. variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
  15425. need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
  15426. need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
  15427. version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
  15428. runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
  15429. shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
  15430. shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
  15431. libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
  15432. library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
  15433. soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
  15434. install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
  15435. postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
  15436. postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
  15437. finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
  15438. finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
  15439. hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
  15440. sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
  15441. configure_time_dlsearch_path='`$ECHO "$configure_time_dlsearch_path" | $SED "$delay_single_quote_subst"`'
  15442. configure_time_lt_sys_library_path='`$ECHO "$configure_time_lt_sys_library_path" | $SED "$delay_single_quote_subst"`'
  15443. hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
  15444. enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
  15445. enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
  15446. enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
  15447. old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
  15448. striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
  15449. LTCC='$LTCC'
  15450. LTCFLAGS='$LTCFLAGS'
  15451. compiler='$compiler_DEFAULT'
  15452. # A function that is used when there is no print builtin or printf.
  15453. func_fallback_echo ()
  15454. {
  15455. eval 'cat <<_LTECHO_EOF
  15456. \$1
  15457. _LTECHO_EOF'
  15458. }
  15459. # Quote evaled strings.
  15460. for var in SHELL \
  15461. ECHO \
  15462. PATH_SEPARATOR \
  15463. SED \
  15464. GREP \
  15465. EGREP \
  15466. FGREP \
  15467. LD \
  15468. NM \
  15469. LN_S \
  15470. lt_SP2NL \
  15471. lt_NL2SP \
  15472. reload_flag \
  15473. OBJDUMP \
  15474. deplibs_check_method \
  15475. file_magic_cmd \
  15476. file_magic_glob \
  15477. want_nocaseglob \
  15478. DLLTOOL \
  15479. sharedlib_from_linklib_cmd \
  15480. AR \
  15481. AR_FLAGS \
  15482. archiver_list_spec \
  15483. STRIP \
  15484. RANLIB \
  15485. CC \
  15486. CFLAGS \
  15487. compiler \
  15488. lt_cv_sys_global_symbol_pipe \
  15489. lt_cv_sys_global_symbol_to_cdecl \
  15490. lt_cv_sys_global_symbol_to_import \
  15491. lt_cv_sys_global_symbol_to_c_name_address \
  15492. lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
  15493. lt_cv_nm_interface \
  15494. nm_file_list_spec \
  15495. lt_cv_truncate_bin \
  15496. lt_prog_compiler_no_builtin_flag \
  15497. lt_prog_compiler_pic \
  15498. lt_prog_compiler_wl \
  15499. lt_prog_compiler_static \
  15500. lt_cv_prog_compiler_c_o \
  15501. need_locks \
  15502. MANIFEST_TOOL \
  15503. DSYMUTIL \
  15504. NMEDIT \
  15505. LIPO \
  15506. OTOOL \
  15507. OTOOL64 \
  15508. shrext_cmds \
  15509. export_dynamic_flag_spec \
  15510. whole_archive_flag_spec \
  15511. compiler_needs_object \
  15512. with_gnu_ld \
  15513. allow_undefined_flag \
  15514. no_undefined_flag \
  15515. hardcode_libdir_flag_spec \
  15516. hardcode_libdir_separator \
  15517. exclude_expsyms \
  15518. include_expsyms \
  15519. file_list_spec \
  15520. variables_saved_for_relink \
  15521. libname_spec \
  15522. library_names_spec \
  15523. soname_spec \
  15524. install_override_mode \
  15525. finish_eval \
  15526. old_striplib \
  15527. striplib; do
  15528. case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
  15529. *[\\\\\\\`\\"\\\$]*)
  15530. eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
  15531. ;;
  15532. *)
  15533. eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
  15534. ;;
  15535. esac
  15536. done
  15537. # Double-quote double-evaled strings.
  15538. for var in reload_cmds \
  15539. old_postinstall_cmds \
  15540. old_postuninstall_cmds \
  15541. old_archive_cmds \
  15542. extract_expsyms_cmds \
  15543. old_archive_from_new_cmds \
  15544. old_archive_from_expsyms_cmds \
  15545. archive_cmds \
  15546. archive_expsym_cmds \
  15547. module_cmds \
  15548. module_expsym_cmds \
  15549. export_symbols_cmds \
  15550. prelink_cmds \
  15551. postlink_cmds \
  15552. postinstall_cmds \
  15553. postuninstall_cmds \
  15554. finish_cmds \
  15555. sys_lib_search_path_spec \
  15556. configure_time_dlsearch_path \
  15557. configure_time_lt_sys_library_path; do
  15558. case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
  15559. *[\\\\\\\`\\"\\\$]*)
  15560. eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
  15561. ;;
  15562. *)
  15563. eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
  15564. ;;
  15565. esac
  15566. done
  15567. ac_aux_dir='$ac_aux_dir'
  15568. # See if we are running on zsh, and set the options that allow our
  15569. # commands through without removal of \ escapes INIT.
  15570. if test -n "\${ZSH_VERSION+set}"; then
  15571. setopt NO_GLOB_SUBST
  15572. fi
  15573. PACKAGE='$PACKAGE'
  15574. VERSION='$VERSION'
  15575. RM='$RM'
  15576. ofile='$ofile'
  15577. _ACEOF
  15578. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  15579. # Handling of arguments.
  15580. for ac_config_target in $ac_config_targets
  15581. do
  15582. case $ac_config_target in
  15583. "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
  15584. "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
  15585. "neon-config") CONFIG_FILES="$CONFIG_FILES neon-config" ;;
  15586. "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
  15587. "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
  15588. "test/Makefile") CONFIG_FILES="$CONFIG_FILES test/Makefile" ;;
  15589. "neon.pc") CONFIG_FILES="$CONFIG_FILES neon.pc" ;;
  15590. "test/makekeys") CONFIG_FILES="$CONFIG_FILES test/makekeys:test/makekeys.sh" ;;
  15591. *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
  15592. esac
  15593. done
  15594. # If the user did not use the arguments to specify the items to instantiate,
  15595. # then the envvar interface is used. Set only those that are not.
  15596. # We use the long form for the default assignment because of an extremely
  15597. # bizarre bug on SunOS 4.1.3.
  15598. if $ac_need_defaults; then
  15599. test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
  15600. test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
  15601. test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
  15602. fi
  15603. # Have a temporary directory for convenience. Make it in the build tree
  15604. # simply because there is no reason against having it here, and in addition,
  15605. # creating and moving files from /tmp can sometimes cause problems.
  15606. # Hook for its removal unless debugging.
  15607. # Note that there is a small window in which the directory will not be cleaned:
  15608. # after its creation but before its name has been assigned to `$tmp'.
  15609. $debug ||
  15610. {
  15611. tmp= ac_tmp=
  15612. trap 'exit_status=$?
  15613. : "${ac_tmp:=$tmp}"
  15614. { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
  15615. ' 0
  15616. trap 'as_fn_exit 1' 1 2 13 15
  15617. }
  15618. # Create a (secure) tmp directory for tmp files.
  15619. {
  15620. tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
  15621. test -d "$tmp"
  15622. } ||
  15623. {
  15624. tmp=./conf$$-$RANDOM
  15625. (umask 077 && mkdir "$tmp")
  15626. } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
  15627. ac_tmp=$tmp
  15628. # Set up the scripts for CONFIG_FILES section.
  15629. # No need to generate them if there are no CONFIG_FILES.
  15630. # This happens for instance with `./config.status config.h'.
  15631. if test -n "$CONFIG_FILES"; then
  15632. ac_cr=`echo X | tr X '\015'`
  15633. # On cygwin, bash can eat \r inside `` if the user requested igncr.
  15634. # But we know of no other shell where ac_cr would be empty at this
  15635. # point, so we can use a bashism as a fallback.
  15636. if test "x$ac_cr" = x; then
  15637. eval ac_cr=\$\'\\r\'
  15638. fi
  15639. ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
  15640. if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
  15641. ac_cs_awk_cr='\\r'
  15642. else
  15643. ac_cs_awk_cr=$ac_cr
  15644. fi
  15645. echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
  15646. _ACEOF
  15647. {
  15648. echo "cat >conf$$subs.awk <<_ACEOF" &&
  15649. echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
  15650. echo "_ACEOF"
  15651. } >conf$$subs.sh ||
  15652. as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
  15653. ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
  15654. ac_delim='%!_!# '
  15655. for ac_last_try in false false false false false :; do
  15656. . ./conf$$subs.sh ||
  15657. as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
  15658. ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
  15659. if test $ac_delim_n = $ac_delim_num; then
  15660. break
  15661. elif $ac_last_try; then
  15662. as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
  15663. else
  15664. ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
  15665. fi
  15666. done
  15667. rm -f conf$$subs.sh
  15668. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  15669. cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
  15670. _ACEOF
  15671. sed -n '
  15672. h
  15673. s/^/S["/; s/!.*/"]=/
  15674. p
  15675. g
  15676. s/^[^!]*!//
  15677. :repl
  15678. t repl
  15679. s/'"$ac_delim"'$//
  15680. t delim
  15681. :nl
  15682. h
  15683. s/\(.\{148\}\)..*/\1/
  15684. t more1
  15685. s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
  15686. p
  15687. n
  15688. b repl
  15689. :more1
  15690. s/["\\]/\\&/g; s/^/"/; s/$/"\\/
  15691. p
  15692. g
  15693. s/.\{148\}//
  15694. t nl
  15695. :delim
  15696. h
  15697. s/\(.\{148\}\)..*/\1/
  15698. t more2
  15699. s/["\\]/\\&/g; s/^/"/; s/$/"/
  15700. p
  15701. b
  15702. :more2
  15703. s/["\\]/\\&/g; s/^/"/; s/$/"\\/
  15704. p
  15705. g
  15706. s/.\{148\}//
  15707. t delim
  15708. ' <conf$$subs.awk | sed '
  15709. /^[^""]/{
  15710. N
  15711. s/\n//
  15712. }
  15713. ' >>$CONFIG_STATUS || ac_write_fail=1
  15714. rm -f conf$$subs.awk
  15715. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  15716. _ACAWK
  15717. cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
  15718. for (key in S) S_is_set[key] = 1
  15719. FS = ""
  15720. }
  15721. {
  15722. line = $ 0
  15723. nfields = split(line, field, "@")
  15724. substed = 0
  15725. len = length(field[1])
  15726. for (i = 2; i < nfields; i++) {
  15727. key = field[i]
  15728. keylen = length(key)
  15729. if (S_is_set[key]) {
  15730. value = S[key]
  15731. line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
  15732. len += length(value) + length(field[++i])
  15733. substed = 1
  15734. } else
  15735. len += 1 + keylen
  15736. }
  15737. print line
  15738. }
  15739. _ACAWK
  15740. _ACEOF
  15741. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  15742. if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
  15743. sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
  15744. else
  15745. cat
  15746. fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
  15747. || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
  15748. _ACEOF
  15749. # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
  15750. # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
  15751. # trailing colons and then remove the whole line if VPATH becomes empty
  15752. # (actually we leave an empty line to preserve line numbers).
  15753. if test "x$srcdir" = x.; then
  15754. ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
  15755. h
  15756. s///
  15757. s/^/:/
  15758. s/[ ]*$/:/
  15759. s/:\$(srcdir):/:/g
  15760. s/:\${srcdir}:/:/g
  15761. s/:@srcdir@:/:/g
  15762. s/^:*//
  15763. s/:*$//
  15764. x
  15765. s/\(=[ ]*\).*/\1/
  15766. G
  15767. s/\n//
  15768. s/^[^=]*=[ ]*$//
  15769. }'
  15770. fi
  15771. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  15772. fi # test -n "$CONFIG_FILES"
  15773. # Set up the scripts for CONFIG_HEADERS section.
  15774. # No need to generate them if there are no CONFIG_HEADERS.
  15775. # This happens for instance with `./config.status Makefile'.
  15776. if test -n "$CONFIG_HEADERS"; then
  15777. cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
  15778. BEGIN {
  15779. _ACEOF
  15780. # Transform confdefs.h into an awk script `defines.awk', embedded as
  15781. # here-document in config.status, that substitutes the proper values into
  15782. # config.h.in to produce config.h.
  15783. # Create a delimiter string that does not exist in confdefs.h, to ease
  15784. # handling of long lines.
  15785. ac_delim='%!_!# '
  15786. for ac_last_try in false false :; do
  15787. ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
  15788. if test -z "$ac_tt"; then
  15789. break
  15790. elif $ac_last_try; then
  15791. as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
  15792. else
  15793. ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
  15794. fi
  15795. done
  15796. # For the awk script, D is an array of macro values keyed by name,
  15797. # likewise P contains macro parameters if any. Preserve backslash
  15798. # newline sequences.
  15799. ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
  15800. sed -n '
  15801. s/.\{148\}/&'"$ac_delim"'/g
  15802. t rset
  15803. :rset
  15804. s/^[ ]*#[ ]*define[ ][ ]*/ /
  15805. t def
  15806. d
  15807. :def
  15808. s/\\$//
  15809. t bsnl
  15810. s/["\\]/\\&/g
  15811. s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
  15812. D["\1"]=" \3"/p
  15813. s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
  15814. d
  15815. :bsnl
  15816. s/["\\]/\\&/g
  15817. s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
  15818. D["\1"]=" \3\\\\\\n"\\/p
  15819. t cont
  15820. s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
  15821. t cont
  15822. d
  15823. :cont
  15824. n
  15825. s/.\{148\}/&'"$ac_delim"'/g
  15826. t clear
  15827. :clear
  15828. s/\\$//
  15829. t bsnlc
  15830. s/["\\]/\\&/g; s/^/"/; s/$/"/p
  15831. d
  15832. :bsnlc
  15833. s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
  15834. b cont
  15835. ' <confdefs.h | sed '
  15836. s/'"$ac_delim"'/"\\\
  15837. "/g' >>$CONFIG_STATUS || ac_write_fail=1
  15838. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  15839. for (key in D) D_is_set[key] = 1
  15840. FS = ""
  15841. }
  15842. /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
  15843. line = \$ 0
  15844. split(line, arg, " ")
  15845. if (arg[1] == "#") {
  15846. defundef = arg[2]
  15847. mac1 = arg[3]
  15848. } else {
  15849. defundef = substr(arg[1], 2)
  15850. mac1 = arg[2]
  15851. }
  15852. split(mac1, mac2, "(") #)
  15853. macro = mac2[1]
  15854. prefix = substr(line, 1, index(line, defundef) - 1)
  15855. if (D_is_set[macro]) {
  15856. # Preserve the white space surrounding the "#".
  15857. print prefix "define", macro P[macro] D[macro]
  15858. next
  15859. } else {
  15860. # Replace #undef with comments. This is necessary, for example,
  15861. # in the case of _POSIX_SOURCE, which is predefined and required
  15862. # on some systems where configure will not decide to define it.
  15863. if (defundef == "undef") {
  15864. print "/*", prefix defundef, macro, "*/"
  15865. next
  15866. }
  15867. }
  15868. }
  15869. { print }
  15870. _ACAWK
  15871. _ACEOF
  15872. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  15873. as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
  15874. fi # test -n "$CONFIG_HEADERS"
  15875. eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
  15876. shift
  15877. for ac_tag
  15878. do
  15879. case $ac_tag in
  15880. :[FHLC]) ac_mode=$ac_tag; continue;;
  15881. esac
  15882. case $ac_mode$ac_tag in
  15883. :[FHL]*:*);;
  15884. :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
  15885. :[FH]-) ac_tag=-:-;;
  15886. :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
  15887. esac
  15888. ac_save_IFS=$IFS
  15889. IFS=:
  15890. set x $ac_tag
  15891. IFS=$ac_save_IFS
  15892. shift
  15893. ac_file=$1
  15894. shift
  15895. case $ac_mode in
  15896. :L) ac_source=$1;;
  15897. :[FH])
  15898. ac_file_inputs=
  15899. for ac_f
  15900. do
  15901. case $ac_f in
  15902. -) ac_f="$ac_tmp/stdin";;
  15903. *) # Look for the file first in the build tree, then in the source tree
  15904. # (if the path is not absolute). The absolute path cannot be DOS-style,
  15905. # because $ac_f cannot contain `:'.
  15906. test -f "$ac_f" ||
  15907. case $ac_f in
  15908. [\\/$]*) false;;
  15909. *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
  15910. esac ||
  15911. as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
  15912. esac
  15913. case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
  15914. as_fn_append ac_file_inputs " '$ac_f'"
  15915. done
  15916. # Let's still pretend it is `configure' which instantiates (i.e., don't
  15917. # use $as_me), people would be surprised to read:
  15918. # /* config.h. Generated by config.status. */
  15919. configure_input='Generated from '`
  15920. $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
  15921. `' by configure.'
  15922. if test x"$ac_file" != x-; then
  15923. configure_input="$ac_file. $configure_input"
  15924. { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
  15925. $as_echo "$as_me: creating $ac_file" >&6;}
  15926. fi
  15927. # Neutralize special characters interpreted by sed in replacement strings.
  15928. case $configure_input in #(
  15929. *\&* | *\|* | *\\* )
  15930. ac_sed_conf_input=`$as_echo "$configure_input" |
  15931. sed 's/[\\\\&|]/\\\\&/g'`;; #(
  15932. *) ac_sed_conf_input=$configure_input;;
  15933. esac
  15934. case $ac_tag in
  15935. *:-:* | *:-) cat >"$ac_tmp/stdin" \
  15936. || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
  15937. esac
  15938. ;;
  15939. esac
  15940. ac_dir=`$as_dirname -- "$ac_file" ||
  15941. $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  15942. X"$ac_file" : 'X\(//\)[^/]' \| \
  15943. X"$ac_file" : 'X\(//\)$' \| \
  15944. X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
  15945. $as_echo X"$ac_file" |
  15946. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  15947. s//\1/
  15948. q
  15949. }
  15950. /^X\(\/\/\)[^/].*/{
  15951. s//\1/
  15952. q
  15953. }
  15954. /^X\(\/\/\)$/{
  15955. s//\1/
  15956. q
  15957. }
  15958. /^X\(\/\).*/{
  15959. s//\1/
  15960. q
  15961. }
  15962. s/.*/./; q'`
  15963. as_dir="$ac_dir"; as_fn_mkdir_p
  15964. ac_builddir=.
  15965. case "$ac_dir" in
  15966. .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
  15967. *)
  15968. ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
  15969. # A ".." for each directory in $ac_dir_suffix.
  15970. ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
  15971. case $ac_top_builddir_sub in
  15972. "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
  15973. *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
  15974. esac ;;
  15975. esac
  15976. ac_abs_top_builddir=$ac_pwd
  15977. ac_abs_builddir=$ac_pwd$ac_dir_suffix
  15978. # for backward compatibility:
  15979. ac_top_builddir=$ac_top_build_prefix
  15980. case $srcdir in
  15981. .) # We are building in place.
  15982. ac_srcdir=.
  15983. ac_top_srcdir=$ac_top_builddir_sub
  15984. ac_abs_top_srcdir=$ac_pwd ;;
  15985. [\\/]* | ?:[\\/]* ) # Absolute name.
  15986. ac_srcdir=$srcdir$ac_dir_suffix;
  15987. ac_top_srcdir=$srcdir
  15988. ac_abs_top_srcdir=$srcdir ;;
  15989. *) # Relative name.
  15990. ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
  15991. ac_top_srcdir=$ac_top_build_prefix$srcdir
  15992. ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
  15993. esac
  15994. ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
  15995. case $ac_mode in
  15996. :F)
  15997. #
  15998. # CONFIG_FILE
  15999. #
  16000. case $INSTALL in
  16001. [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
  16002. *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
  16003. esac
  16004. _ACEOF
  16005. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  16006. # If the template does not know about datarootdir, expand it.
  16007. # FIXME: This hack should be removed a few years after 2.60.
  16008. ac_datarootdir_hack=; ac_datarootdir_seen=
  16009. ac_sed_dataroot='
  16010. /datarootdir/ {
  16011. p
  16012. q
  16013. }
  16014. /@datadir@/p
  16015. /@docdir@/p
  16016. /@infodir@/p
  16017. /@localedir@/p
  16018. /@mandir@/p'
  16019. case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
  16020. *datarootdir*) ac_datarootdir_seen=yes;;
  16021. *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
  16022. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
  16023. $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
  16024. _ACEOF
  16025. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  16026. ac_datarootdir_hack='
  16027. s&@datadir@&$datadir&g
  16028. s&@docdir@&$docdir&g
  16029. s&@infodir@&$infodir&g
  16030. s&@localedir@&$localedir&g
  16031. s&@mandir@&$mandir&g
  16032. s&\\\${datarootdir}&$datarootdir&g' ;;
  16033. esac
  16034. _ACEOF
  16035. # Neutralize VPATH when `$srcdir' = `.'.
  16036. # Shell code in configure.ac might set extrasub.
  16037. # FIXME: do we really want to maintain this feature?
  16038. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  16039. ac_sed_extra="$ac_vpsub
  16040. $extrasub
  16041. _ACEOF
  16042. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  16043. :t
  16044. /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
  16045. s|@configure_input@|$ac_sed_conf_input|;t t
  16046. s&@top_builddir@&$ac_top_builddir_sub&;t t
  16047. s&@top_build_prefix@&$ac_top_build_prefix&;t t
  16048. s&@srcdir@&$ac_srcdir&;t t
  16049. s&@abs_srcdir@&$ac_abs_srcdir&;t t
  16050. s&@top_srcdir@&$ac_top_srcdir&;t t
  16051. s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
  16052. s&@builddir@&$ac_builddir&;t t
  16053. s&@abs_builddir@&$ac_abs_builddir&;t t
  16054. s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
  16055. s&@INSTALL@&$ac_INSTALL&;t t
  16056. $ac_datarootdir_hack
  16057. "
  16058. eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
  16059. >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
  16060. test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
  16061. { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
  16062. { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
  16063. "$ac_tmp/out"`; test -z "$ac_out"; } &&
  16064. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
  16065. which seems to be undefined. Please make sure it is defined" >&5
  16066. $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
  16067. which seems to be undefined. Please make sure it is defined" >&2;}
  16068. rm -f "$ac_tmp/stdin"
  16069. case $ac_file in
  16070. -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
  16071. *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
  16072. esac \
  16073. || as_fn_error $? "could not create $ac_file" "$LINENO" 5
  16074. ;;
  16075. :H)
  16076. #
  16077. # CONFIG_HEADER
  16078. #
  16079. if test x"$ac_file" != x-; then
  16080. {
  16081. $as_echo "/* $configure_input */" \
  16082. && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
  16083. } >"$ac_tmp/config.h" \
  16084. || as_fn_error $? "could not create $ac_file" "$LINENO" 5
  16085. if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
  16086. { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
  16087. $as_echo "$as_me: $ac_file is unchanged" >&6;}
  16088. else
  16089. rm -f "$ac_file"
  16090. mv "$ac_tmp/config.h" "$ac_file" \
  16091. || as_fn_error $? "could not create $ac_file" "$LINENO" 5
  16092. fi
  16093. else
  16094. $as_echo "/* $configure_input */" \
  16095. && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
  16096. || as_fn_error $? "could not create -" "$LINENO" 5
  16097. fi
  16098. ;;
  16099. :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
  16100. $as_echo "$as_me: executing $ac_file commands" >&6;}
  16101. ;;
  16102. esac
  16103. case $ac_file$ac_mode in
  16104. "libtool":C)
  16105. # See if we are running on zsh, and set the options that allow our
  16106. # commands through without removal of \ escapes.
  16107. if test -n "${ZSH_VERSION+set}"; then
  16108. setopt NO_GLOB_SUBST
  16109. fi
  16110. cfgfile=${ofile}T
  16111. trap "$RM \"$cfgfile\"; exit 1" 1 2 15
  16112. $RM "$cfgfile"
  16113. cat <<_LT_EOF >> "$cfgfile"
  16114. #! $SHELL
  16115. # Generated automatically by $as_me ($PACKAGE) $VERSION
  16116. # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
  16117. # NOTE: Changes made to this file will be lost: look at ltmain.sh.
  16118. # Provide generalized library-building support services.
  16119. # Written by Gordon Matzigkeit, 1996
  16120. # Copyright (C) 2014 Free Software Foundation, Inc.
  16121. # This is free software; see the source for copying conditions. There is NO
  16122. # warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
  16123. # GNU Libtool is free software; you can redistribute it and/or modify
  16124. # it under the terms of the GNU General Public License as published by
  16125. # the Free Software Foundation; either version 2 of of the License, or
  16126. # (at your option) any later version.
  16127. #
  16128. # As a special exception to the GNU General Public License, if you
  16129. # distribute this file as part of a program or library that is built
  16130. # using GNU Libtool, you may include this file under the same
  16131. # distribution terms that you use for the rest of that program.
  16132. #
  16133. # GNU Libtool is distributed in the hope that it will be useful, but
  16134. # WITHOUT ANY WARRANTY; without even the implied warranty of
  16135. # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  16136. # GNU General Public License for more details.
  16137. #
  16138. # You should have received a copy of the GNU General Public License
  16139. # along with this program. If not, see <http://www.gnu.org/licenses/>.
  16140. # The names of the tagged configurations supported by this script.
  16141. available_tags=''
  16142. # Configured defaults for sys_lib_dlsearch_path munging.
  16143. : \${LT_SYS_LIBRARY_PATH="$configure_time_lt_sys_library_path"}
  16144. # ### BEGIN LIBTOOL CONFIG
  16145. # Whether or not to build shared libraries.
  16146. build_libtool_libs=$enable_shared
  16147. # Which release of libtool.m4 was used?
  16148. macro_version=$macro_version
  16149. macro_revision=$macro_revision
  16150. # Whether or not to build static libraries.
  16151. build_old_libs=$enable_static
  16152. # What type of objects to build.
  16153. pic_mode=$pic_mode
  16154. # Whether or not to optimize for fast installation.
  16155. fast_install=$enable_fast_install
  16156. # Shared archive member basename,for filename based shared library versioning on AIX.
  16157. shared_archive_member_spec=$shared_archive_member_spec
  16158. # Shell to use when invoking shell scripts.
  16159. SHELL=$lt_SHELL
  16160. # An echo program that protects backslashes.
  16161. ECHO=$lt_ECHO
  16162. # The PATH separator for the build system.
  16163. PATH_SEPARATOR=$lt_PATH_SEPARATOR
  16164. # The host system.
  16165. host_alias=$host_alias
  16166. host=$host
  16167. host_os=$host_os
  16168. # The build system.
  16169. build_alias=$build_alias
  16170. build=$build
  16171. build_os=$build_os
  16172. # A sed program that does not truncate output.
  16173. SED=$lt_SED
  16174. # Sed that helps us avoid accidentally triggering echo(1) options like -n.
  16175. Xsed="\$SED -e 1s/^X//"
  16176. # A grep program that handles long lines.
  16177. GREP=$lt_GREP
  16178. # An ERE matcher.
  16179. EGREP=$lt_EGREP
  16180. # A literal string matcher.
  16181. FGREP=$lt_FGREP
  16182. # A BSD- or MS-compatible name lister.
  16183. NM=$lt_NM
  16184. # Whether we need soft or hard links.
  16185. LN_S=$lt_LN_S
  16186. # What is the maximum length of a command?
  16187. max_cmd_len=$max_cmd_len
  16188. # Object file suffix (normally "o").
  16189. objext=$ac_objext
  16190. # Executable file suffix (normally "").
  16191. exeext=$exeext
  16192. # whether the shell understands "unset".
  16193. lt_unset=$lt_unset
  16194. # turn spaces into newlines.
  16195. SP2NL=$lt_lt_SP2NL
  16196. # turn newlines into spaces.
  16197. NL2SP=$lt_lt_NL2SP
  16198. # convert \$build file names to \$host format.
  16199. to_host_file_cmd=$lt_cv_to_host_file_cmd
  16200. # convert \$build files to toolchain format.
  16201. to_tool_file_cmd=$lt_cv_to_tool_file_cmd
  16202. # An object symbol dumper.
  16203. OBJDUMP=$lt_OBJDUMP
  16204. # Method to check whether dependent libraries are shared objects.
  16205. deplibs_check_method=$lt_deplibs_check_method
  16206. # Command to use when deplibs_check_method = "file_magic".
  16207. file_magic_cmd=$lt_file_magic_cmd
  16208. # How to find potential files when deplibs_check_method = "file_magic".
  16209. file_magic_glob=$lt_file_magic_glob
  16210. # Find potential files using nocaseglob when deplibs_check_method = "file_magic".
  16211. want_nocaseglob=$lt_want_nocaseglob
  16212. # DLL creation program.
  16213. DLLTOOL=$lt_DLLTOOL
  16214. # Command to associate shared and link libraries.
  16215. sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
  16216. # The archiver.
  16217. AR=$lt_AR
  16218. # Flags to create an archive.
  16219. AR_FLAGS=$lt_AR_FLAGS
  16220. # How to feed a file listing to the archiver.
  16221. archiver_list_spec=$lt_archiver_list_spec
  16222. # A symbol stripping program.
  16223. STRIP=$lt_STRIP
  16224. # Commands used to install an old-style archive.
  16225. RANLIB=$lt_RANLIB
  16226. old_postinstall_cmds=$lt_old_postinstall_cmds
  16227. old_postuninstall_cmds=$lt_old_postuninstall_cmds
  16228. # Whether to use a lock for old archive extraction.
  16229. lock_old_archive_extraction=$lock_old_archive_extraction
  16230. # A C compiler.
  16231. LTCC=$lt_CC
  16232. # LTCC compiler flags.
  16233. LTCFLAGS=$lt_CFLAGS
  16234. # Take the output of nm and produce a listing of raw symbols and C names.
  16235. global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
  16236. # Transform the output of nm in a proper C declaration.
  16237. global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
  16238. # Transform the output of nm into a list of symbols to manually relocate.
  16239. global_symbol_to_import=$lt_lt_cv_sys_global_symbol_to_import
  16240. # Transform the output of nm in a C name address pair.
  16241. global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
  16242. # Transform the output of nm in a C name address pair when lib prefix is needed.
  16243. global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
  16244. # The name lister interface.
  16245. nm_interface=$lt_lt_cv_nm_interface
  16246. # Specify filename containing input files for \$NM.
  16247. nm_file_list_spec=$lt_nm_file_list_spec
  16248. # The root where to search for dependent libraries,and where our libraries should be installed.
  16249. lt_sysroot=$lt_sysroot
  16250. # Command to truncate a binary pipe.
  16251. lt_truncate_bin=$lt_lt_cv_truncate_bin
  16252. # The name of the directory that contains temporary libtool files.
  16253. objdir=$objdir
  16254. # Used to examine libraries when file_magic_cmd begins with "file".
  16255. MAGIC_CMD=$MAGIC_CMD
  16256. # Must we lock files when doing compilation?
  16257. need_locks=$lt_need_locks
  16258. # Manifest tool.
  16259. MANIFEST_TOOL=$lt_MANIFEST_TOOL
  16260. # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
  16261. DSYMUTIL=$lt_DSYMUTIL
  16262. # Tool to change global to local symbols on Mac OS X.
  16263. NMEDIT=$lt_NMEDIT
  16264. # Tool to manipulate fat objects and archives on Mac OS X.
  16265. LIPO=$lt_LIPO
  16266. # ldd/readelf like tool for Mach-O binaries on Mac OS X.
  16267. OTOOL=$lt_OTOOL
  16268. # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
  16269. OTOOL64=$lt_OTOOL64
  16270. # Old archive suffix (normally "a").
  16271. libext=$libext
  16272. # Shared library suffix (normally ".so").
  16273. shrext_cmds=$lt_shrext_cmds
  16274. # The commands to extract the exported symbol list from a shared archive.
  16275. extract_expsyms_cmds=$lt_extract_expsyms_cmds
  16276. # Variables whose values should be saved in libtool wrapper scripts and
  16277. # restored at link time.
  16278. variables_saved_for_relink=$lt_variables_saved_for_relink
  16279. # Do we need the "lib" prefix for modules?
  16280. need_lib_prefix=$need_lib_prefix
  16281. # Do we need a version for libraries?
  16282. need_version=$need_version
  16283. # Library versioning type.
  16284. version_type=$version_type
  16285. # Shared library runtime path variable.
  16286. runpath_var=$runpath_var
  16287. # Shared library path variable.
  16288. shlibpath_var=$shlibpath_var
  16289. # Is shlibpath searched before the hard-coded library search path?
  16290. shlibpath_overrides_runpath=$shlibpath_overrides_runpath
  16291. # Format of library name prefix.
  16292. libname_spec=$lt_libname_spec
  16293. # List of archive names. First name is the real one, the rest are links.
  16294. # The last name is the one that the linker finds with -lNAME
  16295. library_names_spec=$lt_library_names_spec
  16296. # The coded name of the library, if different from the real name.
  16297. soname_spec=$lt_soname_spec
  16298. # Permission mode override for installation of shared libraries.
  16299. install_override_mode=$lt_install_override_mode
  16300. # Command to use after installation of a shared archive.
  16301. postinstall_cmds=$lt_postinstall_cmds
  16302. # Command to use after uninstallation of a shared archive.
  16303. postuninstall_cmds=$lt_postuninstall_cmds
  16304. # Commands used to finish a libtool library installation in a directory.
  16305. finish_cmds=$lt_finish_cmds
  16306. # As "finish_cmds", except a single script fragment to be evaled but
  16307. # not shown.
  16308. finish_eval=$lt_finish_eval
  16309. # Whether we should hardcode library paths into libraries.
  16310. hardcode_into_libs=$hardcode_into_libs
  16311. # Compile-time system search path for libraries.
  16312. sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
  16313. # Detected run-time system search path for libraries.
  16314. sys_lib_dlsearch_path_spec=$lt_configure_time_dlsearch_path
  16315. # Explicit LT_SYS_LIBRARY_PATH set during ./configure time.
  16316. configure_time_lt_sys_library_path=$lt_configure_time_lt_sys_library_path
  16317. # Whether dlopen is supported.
  16318. dlopen_support=$enable_dlopen
  16319. # Whether dlopen of programs is supported.
  16320. dlopen_self=$enable_dlopen_self
  16321. # Whether dlopen of statically linked programs is supported.
  16322. dlopen_self_static=$enable_dlopen_self_static
  16323. # Commands to strip libraries.
  16324. old_striplib=$lt_old_striplib
  16325. striplib=$lt_striplib
  16326. # The linker used to build libraries.
  16327. LD=$lt_LD
  16328. # How to create reloadable object files.
  16329. reload_flag=$lt_reload_flag
  16330. reload_cmds=$lt_reload_cmds
  16331. # Commands used to build an old-style archive.
  16332. old_archive_cmds=$lt_old_archive_cmds
  16333. # A language specific compiler.
  16334. CC=$lt_compiler
  16335. # Is the compiler the GNU compiler?
  16336. with_gcc=$GCC
  16337. # Compiler flag to turn off builtin functions.
  16338. no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
  16339. # Additional compiler flags for building library objects.
  16340. pic_flag=$lt_lt_prog_compiler_pic
  16341. # How to pass a linker flag through the compiler.
  16342. wl=$lt_lt_prog_compiler_wl
  16343. # Compiler flag to prevent dynamic linking.
  16344. link_static_flag=$lt_lt_prog_compiler_static
  16345. # Does compiler simultaneously support -c and -o options?
  16346. compiler_c_o=$lt_lt_cv_prog_compiler_c_o
  16347. # Whether or not to add -lc for building shared libraries.
  16348. build_libtool_need_lc=$archive_cmds_need_lc
  16349. # Whether or not to disallow shared libs when runtime libs are static.
  16350. allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
  16351. # Compiler flag to allow reflexive dlopens.
  16352. export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
  16353. # Compiler flag to generate shared objects directly from archives.
  16354. whole_archive_flag_spec=$lt_whole_archive_flag_spec
  16355. # Whether the compiler copes with passing no objects directly.
  16356. compiler_needs_object=$lt_compiler_needs_object
  16357. # Create an old-style archive from a shared archive.
  16358. old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
  16359. # Create a temporary old-style archive to link instead of a shared archive.
  16360. old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
  16361. # Commands used to build a shared archive.
  16362. archive_cmds=$lt_archive_cmds
  16363. archive_expsym_cmds=$lt_archive_expsym_cmds
  16364. # Commands used to build a loadable module if different from building
  16365. # a shared archive.
  16366. module_cmds=$lt_module_cmds
  16367. module_expsym_cmds=$lt_module_expsym_cmds
  16368. # Whether we are building with GNU ld or not.
  16369. with_gnu_ld=$lt_with_gnu_ld
  16370. # Flag that allows shared libraries with undefined symbols to be built.
  16371. allow_undefined_flag=$lt_allow_undefined_flag
  16372. # Flag that enforces no undefined symbols.
  16373. no_undefined_flag=$lt_no_undefined_flag
  16374. # Flag to hardcode \$libdir into a binary during linking.
  16375. # This must work even if \$libdir does not exist
  16376. hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
  16377. # Whether we need a single "-rpath" flag with a separated argument.
  16378. hardcode_libdir_separator=$lt_hardcode_libdir_separator
  16379. # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
  16380. # DIR into the resulting binary.
  16381. hardcode_direct=$hardcode_direct
  16382. # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
  16383. # DIR into the resulting binary and the resulting library dependency is
  16384. # "absolute",i.e impossible to change by setting \$shlibpath_var if the
  16385. # library is relocated.
  16386. hardcode_direct_absolute=$hardcode_direct_absolute
  16387. # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
  16388. # into the resulting binary.
  16389. hardcode_minus_L=$hardcode_minus_L
  16390. # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
  16391. # into the resulting binary.
  16392. hardcode_shlibpath_var=$hardcode_shlibpath_var
  16393. # Set to "yes" if building a shared library automatically hardcodes DIR
  16394. # into the library and all subsequent libraries and executables linked
  16395. # against it.
  16396. hardcode_automatic=$hardcode_automatic
  16397. # Set to yes if linker adds runtime paths of dependent libraries
  16398. # to runtime path list.
  16399. inherit_rpath=$inherit_rpath
  16400. # Whether libtool must link a program against all its dependency libraries.
  16401. link_all_deplibs=$link_all_deplibs
  16402. # Set to "yes" if exported symbols are required.
  16403. always_export_symbols=$always_export_symbols
  16404. # The commands to list exported symbols.
  16405. export_symbols_cmds=$lt_export_symbols_cmds
  16406. # Symbols that should not be listed in the preloaded symbols.
  16407. exclude_expsyms=$lt_exclude_expsyms
  16408. # Symbols that must always be exported.
  16409. include_expsyms=$lt_include_expsyms
  16410. # Commands necessary for linking programs (against libraries) with templates.
  16411. prelink_cmds=$lt_prelink_cmds
  16412. # Commands necessary for finishing linking programs.
  16413. postlink_cmds=$lt_postlink_cmds
  16414. # Specify filename containing input files.
  16415. file_list_spec=$lt_file_list_spec
  16416. # How to hardcode a shared library path into an executable.
  16417. hardcode_action=$hardcode_action
  16418. # ### END LIBTOOL CONFIG
  16419. _LT_EOF
  16420. cat <<'_LT_EOF' >> "$cfgfile"
  16421. # ### BEGIN FUNCTIONS SHARED WITH CONFIGURE
  16422. # func_munge_path_list VARIABLE PATH
  16423. # -----------------------------------
  16424. # VARIABLE is name of variable containing _space_ separated list of
  16425. # directories to be munged by the contents of PATH, which is string
  16426. # having a format:
  16427. # "DIR[:DIR]:"
  16428. # string "DIR[ DIR]" will be prepended to VARIABLE
  16429. # ":DIR[:DIR]"
  16430. # string "DIR[ DIR]" will be appended to VARIABLE
  16431. # "DIRP[:DIRP]::[DIRA:]DIRA"
  16432. # string "DIRP[ DIRP]" will be prepended to VARIABLE and string
  16433. # "DIRA[ DIRA]" will be appended to VARIABLE
  16434. # "DIR[:DIR]"
  16435. # VARIABLE will be replaced by "DIR[ DIR]"
  16436. func_munge_path_list ()
  16437. {
  16438. case x$2 in
  16439. x)
  16440. ;;
  16441. *:)
  16442. eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
  16443. ;;
  16444. x:*)
  16445. eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
  16446. ;;
  16447. *::*)
  16448. eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
  16449. eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
  16450. ;;
  16451. *)
  16452. eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
  16453. ;;
  16454. esac
  16455. }
  16456. # Calculate cc_basename. Skip known compiler wrappers and cross-prefix.
  16457. func_cc_basename ()
  16458. {
  16459. for cc_temp in $*""; do
  16460. case $cc_temp in
  16461. compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
  16462. distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
  16463. \-*) ;;
  16464. *) break;;
  16465. esac
  16466. done
  16467. func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
  16468. }
  16469. # ### END FUNCTIONS SHARED WITH CONFIGURE
  16470. _LT_EOF
  16471. case $host_os in
  16472. aix3*)
  16473. cat <<\_LT_EOF >> "$cfgfile"
  16474. # AIX sometimes has problems with the GCC collect2 program. For some
  16475. # reason, if we set the COLLECT_NAMES environment variable, the problems
  16476. # vanish in a puff of smoke.
  16477. if test set != "${COLLECT_NAMES+set}"; then
  16478. COLLECT_NAMES=
  16479. export COLLECT_NAMES
  16480. fi
  16481. _LT_EOF
  16482. ;;
  16483. esac
  16484. ltmain=$ac_aux_dir/ltmain.sh
  16485. # We use sed instead of cat because bash on DJGPP gets confused if
  16486. # if finds mixed CR/LF and LF-only lines. Since sed operates in
  16487. # text mode, it properly converts lines to CR/LF. This bash problem
  16488. # is reportedly fixed, but why not run on old versions too?
  16489. sed '$q' "$ltmain" >> "$cfgfile" \
  16490. || (rm -f "$cfgfile"; exit 1)
  16491. mv -f "$cfgfile" "$ofile" ||
  16492. (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
  16493. chmod +x "$ofile"
  16494. ;;
  16495. "neon-config":F) chmod +x neon-config ;;
  16496. "test/makekeys":F) chmod +x test/makekeys ;;
  16497. esac
  16498. done # for ac_tag
  16499. as_fn_exit 0
  16500. _ACEOF
  16501. ac_clean_files=$ac_clean_files_save
  16502. test $ac_write_fail = 0 ||
  16503. as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
  16504. # configure is writing to config.log, and then calls config.status.
  16505. # config.status does its own redirection, appending to config.log.
  16506. # Unfortunately, on DOS this fails, as config.log is still kept open
  16507. # by configure, so config.status won't be able to write to it; its
  16508. # output is simply discarded. So we exec the FD to /dev/null,
  16509. # effectively closing config.log, so it can be properly (re)opened and
  16510. # appended to by config.status. When coming back to configure, we
  16511. # need to make the FD available again.
  16512. if test "$no_create" != yes; then
  16513. ac_cs_success=:
  16514. ac_config_status_args=
  16515. test "$silent" = yes &&
  16516. ac_config_status_args="$ac_config_status_args --quiet"
  16517. exec 5>/dev/null
  16518. $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
  16519. exec 5>>config.log
  16520. # Use ||, not &&, to avoid exiting from the if with $? = 1, which
  16521. # would make configure fail if this is the last instruction.
  16522. $ac_cs_success || as_fn_exit 1
  16523. fi
  16524. if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
  16525. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
  16526. $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
  16527. fi
  16528. # for VPATH builds:
  16529. test -d test/common || mkdir test/common
  16530. { $as_echo "$as_me:${as_lineno-$LINENO}: Configured to build neon 0.31.0:
  16531. Install prefix: ${prefix}
  16532. Compiler: ${CC}
  16533. XML Parser: ${neon_xml_parser_message}
  16534. SSL library: ${ne_SSL_message}
  16535. zlib support: ${ne_ZLIB_message}
  16536. Build libraries: Shared=${enable_shared}, Static=${enable_static}
  16537. " >&5
  16538. $as_echo "$as_me: Configured to build neon 0.31.0:
  16539. Install prefix: ${prefix}
  16540. Compiler: ${CC}
  16541. XML Parser: ${neon_xml_parser_message}
  16542. SSL library: ${ne_SSL_message}
  16543. zlib support: ${ne_ZLIB_message}
  16544. Build libraries: Shared=${enable_shared}, Static=${enable_static}
  16545. " >&6;}
  16546. case $ALLOW_INSTALL in
  16547. memleak)
  16548. { $as_echo "$as_me:${as_lineno-$LINENO}: Configured with development-only flags:
  16549. WARNING: This copy of neon has been configured with memory leak checking
  16550. WARNING: enabled, which should only be used in a development build of neon.
  16551. WARNING: This neon library should not be installed for use by applications.
  16552. " >&5
  16553. $as_echo "$as_me: Configured with development-only flags:
  16554. WARNING: This copy of neon has been configured with memory leak checking
  16555. WARNING: enabled, which should only be used in a development build of neon.
  16556. WARNING: This neon library should not be installed for use by applications.
  16557. " >&6;};;
  16558. esac