configure 564 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610161116121613161416151616161716181619162016211622162316241625162616271628162916301631163216331634163516361637163816391640164116421643164416451646164716481649165016511652165316541655165616571658165916601661166216631664166516661667166816691670167116721673167416751676167716781679168016811682168316841685168616871688168916901691169216931694169516961697169816991700170117021703170417051706170717081709171017111712171317141715171617171718171917201721172217231724172517261727172817291730173117321733173417351736173717381739174017411742174317441745174617471748174917501751175217531754175517561757175817591760176117621763176417651766176717681769177017711772177317741775177617771778177917801781178217831784178517861787178817891790179117921793179417951796179717981799180018011802180318041805180618071808180918101811181218131814181518161817181818191820182118221823182418251826182718281829183018311832183318341835183618371838183918401841184218431844184518461847184818491850185118521853185418551856185718581859186018611862186318641865186618671868186918701871187218731874187518761877187818791880188118821883188418851886188718881889189018911892189318941895189618971898189919001901190219031904190519061907190819091910191119121913191419151916191719181919192019211922192319241925192619271928192919301931193219331934193519361937193819391940194119421943194419451946194719481949195019511952195319541955195619571958195919601961196219631964196519661967196819691970197119721973197419751976197719781979198019811982198319841985198619871988198919901991199219931994199519961997199819992000200120022003200420052006200720082009201020112012201320142015201620172018201920202021202220232024202520262027202820292030203120322033203420352036203720382039204020412042204320442045204620472048204920502051205220532054205520562057205820592060206120622063206420652066206720682069207020712072207320742075207620772078207920802081208220832084208520862087208820892090209120922093209420952096209720982099210021012102210321042105210621072108210921102111211221132114211521162117211821192120212121222123212421252126212721282129213021312132213321342135213621372138213921402141214221432144214521462147214821492150215121522153215421552156215721582159216021612162216321642165216621672168216921702171217221732174217521762177217821792180218121822183218421852186218721882189219021912192219321942195219621972198219922002201220222032204220522062207220822092210221122122213221422152216221722182219222022212222222322242225222622272228222922302231223222332234223522362237223822392240224122422243224422452246224722482249225022512252225322542255225622572258225922602261226222632264226522662267226822692270227122722273227422752276227722782279228022812282228322842285228622872288228922902291229222932294229522962297229822992300230123022303230423052306230723082309231023112312231323142315231623172318231923202321232223232324232523262327232823292330233123322333233423352336233723382339234023412342234323442345234623472348234923502351235223532354235523562357235823592360236123622363236423652366236723682369237023712372237323742375237623772378237923802381238223832384238523862387238823892390239123922393239423952396239723982399240024012402240324042405240624072408240924102411241224132414241524162417241824192420242124222423242424252426242724282429243024312432243324342435243624372438243924402441244224432444244524462447244824492450245124522453245424552456245724582459246024612462246324642465246624672468246924702471247224732474247524762477247824792480248124822483248424852486248724882489249024912492249324942495249624972498249925002501250225032504250525062507250825092510251125122513251425152516251725182519252025212522252325242525252625272528252925302531253225332534253525362537253825392540254125422543254425452546254725482549255025512552255325542555255625572558255925602561256225632564256525662567256825692570257125722573257425752576257725782579258025812582258325842585258625872588258925902591259225932594259525962597259825992600260126022603260426052606260726082609261026112612261326142615261626172618261926202621262226232624262526262627262826292630263126322633263426352636263726382639264026412642264326442645264626472648264926502651265226532654265526562657265826592660266126622663266426652666266726682669267026712672267326742675267626772678267926802681268226832684268526862687268826892690269126922693269426952696269726982699270027012702270327042705270627072708270927102711271227132714271527162717271827192720272127222723272427252726272727282729273027312732273327342735273627372738273927402741274227432744274527462747274827492750275127522753275427552756275727582759276027612762276327642765276627672768276927702771277227732774277527762777277827792780278127822783278427852786278727882789279027912792279327942795279627972798279928002801280228032804280528062807280828092810281128122813281428152816281728182819282028212822282328242825282628272828282928302831283228332834283528362837283828392840284128422843284428452846284728482849285028512852285328542855285628572858285928602861286228632864286528662867286828692870287128722873287428752876287728782879288028812882288328842885288628872888288928902891289228932894289528962897289828992900290129022903290429052906290729082909291029112912291329142915291629172918291929202921292229232924292529262927292829292930293129322933293429352936293729382939294029412942294329442945294629472948294929502951295229532954295529562957295829592960296129622963296429652966296729682969297029712972297329742975297629772978297929802981298229832984298529862987298829892990299129922993299429952996299729982999300030013002300330043005300630073008300930103011301230133014301530163017301830193020302130223023302430253026302730283029303030313032303330343035303630373038303930403041304230433044304530463047304830493050305130523053305430553056305730583059306030613062306330643065306630673068306930703071307230733074307530763077307830793080308130823083308430853086308730883089309030913092309330943095309630973098309931003101310231033104310531063107310831093110311131123113311431153116311731183119312031213122312331243125312631273128312931303131313231333134313531363137313831393140314131423143314431453146314731483149315031513152315331543155315631573158315931603161316231633164316531663167316831693170317131723173317431753176317731783179318031813182318331843185318631873188318931903191319231933194319531963197319831993200320132023203320432053206320732083209321032113212321332143215321632173218321932203221322232233224322532263227322832293230323132323233323432353236323732383239324032413242324332443245324632473248324932503251325232533254325532563257325832593260326132623263326432653266326732683269327032713272327332743275327632773278327932803281328232833284328532863287328832893290329132923293329432953296329732983299330033013302330333043305330633073308330933103311331233133314331533163317331833193320332133223323332433253326332733283329333033313332333333343335333633373338333933403341334233433344334533463347334833493350335133523353335433553356335733583359336033613362336333643365336633673368336933703371337233733374337533763377337833793380338133823383338433853386338733883389339033913392339333943395339633973398339934003401340234033404340534063407340834093410341134123413341434153416341734183419342034213422342334243425342634273428342934303431343234333434343534363437343834393440344134423443344434453446344734483449345034513452345334543455345634573458345934603461346234633464346534663467346834693470347134723473347434753476347734783479348034813482348334843485348634873488348934903491349234933494349534963497349834993500350135023503350435053506350735083509351035113512351335143515351635173518351935203521352235233524352535263527352835293530353135323533353435353536353735383539354035413542354335443545354635473548354935503551355235533554355535563557355835593560356135623563356435653566356735683569357035713572357335743575357635773578357935803581358235833584358535863587358835893590359135923593359435953596359735983599360036013602360336043605360636073608360936103611361236133614361536163617361836193620362136223623362436253626362736283629363036313632363336343635363636373638363936403641364236433644364536463647364836493650365136523653365436553656365736583659366036613662366336643665366636673668366936703671367236733674367536763677367836793680368136823683368436853686368736883689369036913692369336943695369636973698369937003701370237033704370537063707370837093710371137123713371437153716371737183719372037213722372337243725372637273728372937303731373237333734373537363737373837393740374137423743374437453746374737483749375037513752375337543755375637573758375937603761376237633764376537663767376837693770377137723773377437753776377737783779378037813782378337843785378637873788378937903791379237933794379537963797379837993800380138023803380438053806380738083809381038113812381338143815381638173818381938203821382238233824382538263827382838293830383138323833383438353836383738383839384038413842384338443845384638473848384938503851385238533854385538563857385838593860386138623863386438653866386738683869387038713872387338743875387638773878387938803881388238833884388538863887388838893890389138923893389438953896389738983899390039013902390339043905390639073908390939103911391239133914391539163917391839193920392139223923392439253926392739283929393039313932393339343935393639373938393939403941394239433944394539463947394839493950395139523953395439553956395739583959396039613962396339643965396639673968396939703971397239733974397539763977397839793980398139823983398439853986398739883989399039913992399339943995399639973998399940004001400240034004400540064007400840094010401140124013401440154016401740184019402040214022402340244025402640274028402940304031403240334034403540364037403840394040404140424043404440454046404740484049405040514052405340544055405640574058405940604061406240634064406540664067406840694070407140724073407440754076407740784079408040814082408340844085408640874088408940904091409240934094409540964097409840994100410141024103410441054106410741084109411041114112411341144115411641174118411941204121412241234124412541264127412841294130413141324133413441354136413741384139414041414142414341444145414641474148414941504151415241534154415541564157415841594160416141624163416441654166416741684169417041714172417341744175417641774178417941804181418241834184418541864187418841894190419141924193419441954196419741984199420042014202420342044205420642074208420942104211421242134214421542164217421842194220422142224223422442254226422742284229423042314232423342344235423642374238423942404241424242434244424542464247424842494250425142524253425442554256425742584259426042614262426342644265426642674268426942704271427242734274427542764277427842794280428142824283428442854286428742884289429042914292429342944295429642974298429943004301430243034304430543064307430843094310431143124313431443154316431743184319432043214322432343244325432643274328432943304331433243334334433543364337433843394340434143424343434443454346434743484349435043514352435343544355435643574358435943604361436243634364436543664367436843694370437143724373437443754376437743784379438043814382438343844385438643874388438943904391439243934394439543964397439843994400440144024403440444054406440744084409441044114412441344144415441644174418441944204421442244234424442544264427442844294430443144324433443444354436443744384439444044414442444344444445444644474448444944504451445244534454445544564457445844594460446144624463446444654466446744684469447044714472447344744475447644774478447944804481448244834484448544864487448844894490449144924493449444954496449744984499450045014502450345044505450645074508450945104511451245134514451545164517451845194520452145224523452445254526452745284529453045314532453345344535453645374538453945404541454245434544454545464547454845494550455145524553455445554556455745584559456045614562456345644565456645674568456945704571457245734574457545764577457845794580458145824583458445854586458745884589459045914592459345944595459645974598459946004601460246034604460546064607460846094610461146124613461446154616461746184619462046214622462346244625462646274628462946304631463246334634463546364637463846394640464146424643464446454646464746484649465046514652465346544655465646574658465946604661466246634664466546664667466846694670467146724673467446754676467746784679468046814682468346844685468646874688468946904691469246934694469546964697469846994700470147024703470447054706470747084709471047114712471347144715471647174718471947204721472247234724472547264727472847294730473147324733473447354736473747384739474047414742474347444745474647474748474947504751475247534754475547564757475847594760476147624763476447654766476747684769477047714772477347744775477647774778477947804781478247834784478547864787478847894790479147924793479447954796479747984799480048014802480348044805480648074808480948104811481248134814481548164817481848194820482148224823482448254826482748284829483048314832483348344835483648374838483948404841484248434844484548464847484848494850485148524853485448554856485748584859486048614862486348644865486648674868486948704871487248734874487548764877487848794880488148824883488448854886488748884889489048914892489348944895489648974898489949004901490249034904490549064907490849094910491149124913491449154916491749184919492049214922492349244925492649274928492949304931493249334934493549364937493849394940494149424943494449454946494749484949495049514952495349544955495649574958495949604961496249634964496549664967496849694970497149724973497449754976497749784979498049814982498349844985498649874988498949904991499249934994499549964997499849995000500150025003500450055006500750085009501050115012501350145015501650175018501950205021502250235024502550265027502850295030503150325033503450355036503750385039504050415042504350445045504650475048504950505051505250535054505550565057505850595060506150625063506450655066506750685069507050715072507350745075507650775078507950805081508250835084508550865087508850895090509150925093509450955096509750985099510051015102510351045105510651075108510951105111511251135114511551165117511851195120512151225123512451255126512751285129513051315132513351345135513651375138513951405141514251435144514551465147514851495150515151525153515451555156515751585159516051615162516351645165516651675168516951705171517251735174517551765177517851795180518151825183518451855186518751885189519051915192519351945195519651975198519952005201520252035204520552065207520852095210521152125213521452155216521752185219522052215222522352245225522652275228522952305231523252335234523552365237523852395240524152425243524452455246524752485249525052515252525352545255525652575258525952605261526252635264526552665267526852695270527152725273527452755276527752785279528052815282528352845285528652875288528952905291529252935294529552965297529852995300530153025303530453055306530753085309531053115312531353145315531653175318531953205321532253235324532553265327532853295330533153325333533453355336533753385339534053415342534353445345534653475348534953505351535253535354535553565357535853595360536153625363536453655366536753685369537053715372537353745375537653775378537953805381538253835384538553865387538853895390539153925393539453955396539753985399540054015402540354045405540654075408540954105411541254135414541554165417541854195420542154225423542454255426542754285429543054315432543354345435543654375438543954405441544254435444544554465447544854495450545154525453545454555456545754585459546054615462546354645465546654675468546954705471547254735474547554765477547854795480548154825483548454855486548754885489549054915492549354945495549654975498549955005501550255035504550555065507550855095510551155125513551455155516551755185519552055215522552355245525552655275528552955305531553255335534553555365537553855395540554155425543554455455546554755485549555055515552555355545555555655575558555955605561556255635564556555665567556855695570557155725573557455755576557755785579558055815582558355845585558655875588558955905591559255935594559555965597559855995600560156025603560456055606560756085609561056115612561356145615561656175618561956205621562256235624562556265627562856295630563156325633563456355636563756385639564056415642564356445645564656475648564956505651565256535654565556565657565856595660566156625663566456655666566756685669567056715672567356745675567656775678567956805681568256835684568556865687568856895690569156925693569456955696569756985699570057015702570357045705570657075708570957105711571257135714571557165717571857195720572157225723572457255726572757285729573057315732573357345735573657375738573957405741574257435744574557465747574857495750575157525753575457555756575757585759576057615762576357645765576657675768576957705771577257735774577557765777577857795780578157825783578457855786578757885789579057915792579357945795579657975798579958005801580258035804580558065807580858095810581158125813581458155816581758185819582058215822582358245825582658275828582958305831583258335834583558365837583858395840584158425843584458455846584758485849585058515852585358545855585658575858585958605861586258635864586558665867586858695870587158725873587458755876587758785879588058815882588358845885588658875888588958905891589258935894589558965897589858995900590159025903590459055906590759085909591059115912591359145915591659175918591959205921592259235924592559265927592859295930593159325933593459355936593759385939594059415942594359445945594659475948594959505951595259535954595559565957595859595960596159625963596459655966596759685969597059715972597359745975597659775978597959805981598259835984598559865987598859895990599159925993599459955996599759985999600060016002600360046005600660076008600960106011601260136014601560166017601860196020602160226023602460256026602760286029603060316032603360346035603660376038603960406041604260436044604560466047604860496050605160526053605460556056605760586059606060616062606360646065606660676068606960706071607260736074607560766077607860796080608160826083608460856086608760886089609060916092609360946095609660976098609961006101610261036104610561066107610861096110611161126113611461156116611761186119612061216122612361246125612661276128612961306131613261336134613561366137613861396140614161426143614461456146614761486149615061516152615361546155615661576158615961606161616261636164616561666167616861696170617161726173617461756176617761786179618061816182618361846185618661876188618961906191619261936194619561966197619861996200620162026203620462056206620762086209621062116212621362146215621662176218621962206221622262236224622562266227622862296230623162326233623462356236623762386239624062416242624362446245624662476248624962506251625262536254625562566257625862596260626162626263626462656266626762686269627062716272627362746275627662776278627962806281628262836284628562866287628862896290629162926293629462956296629762986299630063016302630363046305630663076308630963106311631263136314631563166317631863196320632163226323632463256326632763286329633063316332633363346335633663376338633963406341634263436344634563466347634863496350635163526353635463556356635763586359636063616362636363646365636663676368636963706371637263736374637563766377637863796380638163826383638463856386638763886389639063916392639363946395639663976398639964006401640264036404640564066407640864096410641164126413641464156416641764186419642064216422642364246425642664276428642964306431643264336434643564366437643864396440644164426443644464456446644764486449645064516452645364546455645664576458645964606461646264636464646564666467646864696470647164726473647464756476647764786479648064816482648364846485648664876488648964906491649264936494649564966497649864996500650165026503650465056506650765086509651065116512651365146515651665176518651965206521652265236524652565266527652865296530653165326533653465356536653765386539654065416542654365446545654665476548654965506551655265536554655565566557655865596560656165626563656465656566656765686569657065716572657365746575657665776578657965806581658265836584658565866587658865896590659165926593659465956596659765986599660066016602660366046605660666076608660966106611661266136614661566166617661866196620662166226623662466256626662766286629663066316632663366346635663666376638663966406641664266436644664566466647664866496650665166526653665466556656665766586659666066616662666366646665666666676668666966706671667266736674667566766677667866796680668166826683668466856686668766886689669066916692669366946695669666976698669967006701670267036704670567066707670867096710671167126713671467156716671767186719672067216722672367246725672667276728672967306731673267336734673567366737673867396740674167426743674467456746674767486749675067516752675367546755675667576758675967606761676267636764676567666767676867696770677167726773677467756776677767786779678067816782678367846785678667876788678967906791679267936794679567966797679867996800680168026803680468056806680768086809681068116812681368146815681668176818681968206821682268236824682568266827682868296830683168326833683468356836683768386839684068416842684368446845684668476848684968506851685268536854685568566857685868596860686168626863686468656866686768686869687068716872687368746875687668776878687968806881688268836884688568866887688868896890689168926893689468956896689768986899690069016902690369046905690669076908690969106911691269136914691569166917691869196920692169226923692469256926692769286929693069316932693369346935693669376938693969406941694269436944694569466947694869496950695169526953695469556956695769586959696069616962696369646965696669676968696969706971697269736974697569766977697869796980698169826983698469856986698769886989699069916992699369946995699669976998699970007001700270037004700570067007700870097010701170127013701470157016701770187019702070217022702370247025702670277028702970307031703270337034703570367037703870397040704170427043704470457046704770487049705070517052705370547055705670577058705970607061706270637064706570667067706870697070707170727073707470757076707770787079708070817082708370847085708670877088708970907091709270937094709570967097709870997100710171027103710471057106710771087109711071117112711371147115711671177118711971207121712271237124712571267127712871297130713171327133713471357136713771387139714071417142714371447145714671477148714971507151715271537154715571567157715871597160716171627163716471657166716771687169717071717172717371747175717671777178717971807181718271837184718571867187718871897190719171927193719471957196719771987199720072017202720372047205720672077208720972107211721272137214721572167217721872197220722172227223722472257226722772287229723072317232723372347235723672377238723972407241724272437244724572467247724872497250725172527253725472557256725772587259726072617262726372647265726672677268726972707271727272737274727572767277727872797280728172827283728472857286728772887289729072917292729372947295729672977298729973007301730273037304730573067307730873097310731173127313731473157316731773187319732073217322732373247325732673277328732973307331733273337334733573367337733873397340734173427343734473457346734773487349735073517352735373547355735673577358735973607361736273637364736573667367736873697370737173727373737473757376737773787379738073817382738373847385738673877388738973907391739273937394739573967397739873997400740174027403740474057406740774087409741074117412741374147415741674177418741974207421742274237424742574267427742874297430743174327433743474357436743774387439744074417442744374447445744674477448744974507451745274537454745574567457745874597460746174627463746474657466746774687469747074717472747374747475747674777478747974807481748274837484748574867487748874897490749174927493749474957496749774987499750075017502750375047505750675077508750975107511751275137514751575167517751875197520752175227523752475257526752775287529753075317532753375347535753675377538753975407541754275437544754575467547754875497550755175527553755475557556755775587559756075617562756375647565756675677568756975707571757275737574757575767577757875797580758175827583758475857586758775887589759075917592759375947595759675977598759976007601760276037604760576067607760876097610761176127613761476157616761776187619762076217622762376247625762676277628762976307631763276337634763576367637763876397640764176427643764476457646764776487649765076517652765376547655765676577658765976607661766276637664766576667667766876697670767176727673767476757676767776787679768076817682768376847685768676877688768976907691769276937694769576967697769876997700770177027703770477057706770777087709771077117712771377147715771677177718771977207721772277237724772577267727772877297730773177327733773477357736773777387739774077417742774377447745774677477748774977507751775277537754775577567757775877597760776177627763776477657766776777687769777077717772777377747775777677777778777977807781778277837784778577867787778877897790779177927793779477957796779777987799780078017802780378047805780678077808780978107811781278137814781578167817781878197820782178227823782478257826782778287829783078317832783378347835783678377838783978407841784278437844784578467847784878497850785178527853785478557856785778587859786078617862786378647865786678677868786978707871787278737874787578767877787878797880788178827883788478857886788778887889789078917892789378947895789678977898789979007901790279037904790579067907790879097910791179127913791479157916791779187919792079217922792379247925792679277928792979307931793279337934793579367937793879397940794179427943794479457946794779487949795079517952795379547955795679577958795979607961796279637964796579667967796879697970797179727973797479757976797779787979798079817982798379847985798679877988798979907991799279937994799579967997799879998000800180028003800480058006800780088009801080118012801380148015801680178018801980208021802280238024802580268027802880298030803180328033803480358036803780388039804080418042804380448045804680478048804980508051805280538054805580568057805880598060806180628063806480658066806780688069807080718072807380748075807680778078807980808081808280838084808580868087808880898090809180928093809480958096809780988099810081018102810381048105810681078108810981108111811281138114811581168117811881198120812181228123812481258126812781288129813081318132813381348135813681378138813981408141814281438144814581468147814881498150815181528153815481558156815781588159816081618162816381648165816681678168816981708171817281738174817581768177817881798180818181828183818481858186818781888189819081918192819381948195819681978198819982008201820282038204820582068207820882098210821182128213821482158216821782188219822082218222822382248225822682278228822982308231823282338234823582368237823882398240824182428243824482458246824782488249825082518252825382548255825682578258825982608261826282638264826582668267826882698270827182728273827482758276827782788279828082818282828382848285828682878288828982908291829282938294829582968297829882998300830183028303830483058306830783088309831083118312831383148315831683178318831983208321832283238324832583268327832883298330833183328333833483358336833783388339834083418342834383448345834683478348834983508351835283538354835583568357835883598360836183628363836483658366836783688369837083718372837383748375837683778378837983808381838283838384838583868387838883898390839183928393839483958396839783988399840084018402840384048405840684078408840984108411841284138414841584168417841884198420842184228423842484258426842784288429843084318432843384348435843684378438843984408441844284438444844584468447844884498450845184528453845484558456845784588459846084618462846384648465846684678468846984708471847284738474847584768477847884798480848184828483848484858486848784888489849084918492849384948495849684978498849985008501850285038504850585068507850885098510851185128513851485158516851785188519852085218522852385248525852685278528852985308531853285338534853585368537853885398540854185428543854485458546854785488549855085518552855385548555855685578558855985608561856285638564856585668567856885698570857185728573857485758576857785788579858085818582858385848585858685878588858985908591859285938594859585968597859885998600860186028603860486058606860786088609861086118612861386148615861686178618861986208621862286238624862586268627862886298630863186328633863486358636863786388639864086418642864386448645864686478648864986508651865286538654865586568657865886598660866186628663866486658666866786688669867086718672867386748675867686778678867986808681868286838684868586868687868886898690869186928693869486958696869786988699870087018702870387048705870687078708870987108711871287138714871587168717871887198720872187228723872487258726872787288729873087318732873387348735873687378738873987408741874287438744874587468747874887498750875187528753875487558756875787588759876087618762876387648765876687678768876987708771877287738774877587768777877887798780878187828783878487858786878787888789879087918792879387948795879687978798879988008801880288038804880588068807880888098810881188128813881488158816881788188819882088218822882388248825882688278828882988308831883288338834883588368837883888398840884188428843884488458846884788488849885088518852885388548855885688578858885988608861886288638864886588668867886888698870887188728873887488758876887788788879888088818882888388848885888688878888888988908891889288938894889588968897889888998900890189028903890489058906890789088909891089118912891389148915891689178918891989208921892289238924892589268927892889298930893189328933893489358936893789388939894089418942894389448945894689478948894989508951895289538954895589568957895889598960896189628963896489658966896789688969897089718972897389748975897689778978897989808981898289838984898589868987898889898990899189928993899489958996899789988999900090019002900390049005900690079008900990109011901290139014901590169017901890199020902190229023902490259026902790289029903090319032903390349035903690379038903990409041904290439044904590469047904890499050905190529053905490559056905790589059906090619062906390649065906690679068906990709071907290739074907590769077907890799080908190829083908490859086908790889089909090919092909390949095909690979098909991009101910291039104910591069107910891099110911191129113911491159116911791189119912091219122912391249125912691279128912991309131913291339134913591369137913891399140914191429143914491459146914791489149915091519152915391549155915691579158915991609161916291639164916591669167916891699170917191729173917491759176917791789179918091819182918391849185918691879188918991909191919291939194919591969197919891999200920192029203920492059206920792089209921092119212921392149215921692179218921992209221922292239224922592269227922892299230923192329233923492359236923792389239924092419242924392449245924692479248924992509251925292539254925592569257925892599260926192629263926492659266926792689269927092719272927392749275927692779278927992809281928292839284928592869287928892899290929192929293929492959296929792989299930093019302930393049305930693079308930993109311931293139314931593169317931893199320932193229323932493259326932793289329933093319332933393349335933693379338933993409341934293439344934593469347934893499350935193529353935493559356935793589359936093619362936393649365936693679368936993709371937293739374937593769377937893799380938193829383938493859386938793889389939093919392939393949395939693979398939994009401940294039404940594069407940894099410941194129413941494159416941794189419942094219422942394249425942694279428942994309431943294339434943594369437943894399440944194429443944494459446944794489449945094519452945394549455945694579458945994609461946294639464946594669467946894699470947194729473947494759476947794789479948094819482948394849485948694879488948994909491949294939494949594969497949894999500950195029503950495059506950795089509951095119512951395149515951695179518951995209521952295239524952595269527952895299530953195329533953495359536953795389539954095419542954395449545954695479548954995509551955295539554955595569557955895599560956195629563956495659566956795689569957095719572957395749575957695779578957995809581958295839584958595869587958895899590959195929593959495959596959795989599960096019602960396049605960696079608960996109611961296139614961596169617961896199620962196229623962496259626962796289629963096319632963396349635963696379638963996409641964296439644964596469647964896499650965196529653965496559656965796589659966096619662966396649665966696679668966996709671967296739674967596769677967896799680968196829683968496859686968796889689969096919692969396949695969696979698969997009701970297039704970597069707970897099710971197129713971497159716971797189719972097219722972397249725972697279728972997309731973297339734973597369737973897399740974197429743974497459746974797489749975097519752975397549755975697579758975997609761976297639764976597669767976897699770977197729773977497759776977797789779978097819782978397849785978697879788978997909791979297939794979597969797979897999800980198029803980498059806980798089809981098119812981398149815981698179818981998209821982298239824982598269827982898299830983198329833983498359836983798389839984098419842984398449845984698479848984998509851985298539854985598569857985898599860986198629863986498659866986798689869987098719872987398749875987698779878987998809881988298839884988598869887988898899890989198929893989498959896989798989899990099019902990399049905990699079908990999109911991299139914991599169917991899199920992199229923992499259926992799289929993099319932993399349935993699379938993999409941994299439944994599469947994899499950995199529953995499559956995799589959996099619962996399649965996699679968996999709971997299739974997599769977997899799980998199829983998499859986998799889989999099919992999399949995999699979998999910000100011000210003100041000510006100071000810009100101001110012100131001410015100161001710018100191002010021100221002310024100251002610027100281002910030100311003210033100341003510036100371003810039100401004110042100431004410045100461004710048100491005010051100521005310054100551005610057100581005910060100611006210063100641006510066100671006810069100701007110072100731007410075100761007710078100791008010081100821008310084100851008610087100881008910090100911009210093100941009510096100971009810099101001010110102101031010410105101061010710108101091011010111101121011310114101151011610117101181011910120101211012210123101241012510126101271012810129101301013110132101331013410135101361013710138101391014010141101421014310144101451014610147101481014910150101511015210153101541015510156101571015810159101601016110162101631016410165101661016710168101691017010171101721017310174101751017610177101781017910180101811018210183101841018510186101871018810189101901019110192101931019410195101961019710198101991020010201102021020310204102051020610207102081020910210102111021210213102141021510216102171021810219102201022110222102231022410225102261022710228102291023010231102321023310234102351023610237102381023910240102411024210243102441024510246102471024810249102501025110252102531025410255102561025710258102591026010261102621026310264102651026610267102681026910270102711027210273102741027510276102771027810279102801028110282102831028410285102861028710288102891029010291102921029310294102951029610297102981029910300103011030210303103041030510306103071030810309103101031110312103131031410315103161031710318103191032010321103221032310324103251032610327103281032910330103311033210333103341033510336103371033810339103401034110342103431034410345103461034710348103491035010351103521035310354103551035610357103581035910360103611036210363103641036510366103671036810369103701037110372103731037410375103761037710378103791038010381103821038310384103851038610387103881038910390103911039210393103941039510396103971039810399104001040110402104031040410405104061040710408104091041010411104121041310414104151041610417104181041910420104211042210423104241042510426104271042810429104301043110432104331043410435104361043710438104391044010441104421044310444104451044610447104481044910450104511045210453104541045510456104571045810459104601046110462104631046410465104661046710468104691047010471104721047310474104751047610477104781047910480104811048210483104841048510486104871048810489104901049110492104931049410495104961049710498104991050010501105021050310504105051050610507105081050910510105111051210513105141051510516105171051810519105201052110522105231052410525105261052710528105291053010531105321053310534105351053610537105381053910540105411054210543105441054510546105471054810549105501055110552105531055410555105561055710558105591056010561105621056310564105651056610567105681056910570105711057210573105741057510576105771057810579105801058110582105831058410585105861058710588105891059010591105921059310594105951059610597105981059910600106011060210603106041060510606106071060810609106101061110612106131061410615106161061710618106191062010621106221062310624106251062610627106281062910630106311063210633106341063510636106371063810639106401064110642106431064410645106461064710648106491065010651106521065310654106551065610657106581065910660106611066210663106641066510666106671066810669106701067110672106731067410675106761067710678106791068010681106821068310684106851068610687106881068910690106911069210693106941069510696106971069810699107001070110702107031070410705107061070710708107091071010711107121071310714107151071610717107181071910720107211072210723107241072510726107271072810729107301073110732107331073410735107361073710738107391074010741107421074310744107451074610747107481074910750107511075210753107541075510756107571075810759107601076110762107631076410765107661076710768107691077010771107721077310774107751077610777107781077910780107811078210783107841078510786107871078810789107901079110792107931079410795107961079710798107991080010801108021080310804108051080610807108081080910810108111081210813108141081510816108171081810819108201082110822108231082410825108261082710828108291083010831108321083310834108351083610837108381083910840108411084210843108441084510846108471084810849108501085110852108531085410855108561085710858108591086010861108621086310864108651086610867108681086910870108711087210873108741087510876108771087810879108801088110882108831088410885108861088710888108891089010891108921089310894108951089610897108981089910900109011090210903109041090510906109071090810909109101091110912109131091410915109161091710918109191092010921109221092310924109251092610927109281092910930109311093210933109341093510936109371093810939109401094110942109431094410945109461094710948109491095010951109521095310954109551095610957109581095910960109611096210963109641096510966109671096810969109701097110972109731097410975109761097710978109791098010981109821098310984109851098610987109881098910990109911099210993109941099510996109971099810999110001100111002110031100411005110061100711008110091101011011110121101311014110151101611017110181101911020110211102211023110241102511026110271102811029110301103111032110331103411035110361103711038110391104011041110421104311044110451104611047110481104911050110511105211053110541105511056110571105811059110601106111062110631106411065110661106711068110691107011071110721107311074110751107611077110781107911080110811108211083110841108511086110871108811089110901109111092110931109411095110961109711098110991110011101111021110311104111051110611107111081110911110111111111211113111141111511116111171111811119111201112111122111231112411125111261112711128111291113011131111321113311134111351113611137111381113911140111411114211143111441114511146111471114811149111501115111152111531115411155111561115711158111591116011161111621116311164111651116611167111681116911170111711117211173111741117511176111771117811179111801118111182111831118411185111861118711188111891119011191111921119311194111951119611197111981119911200112011120211203112041120511206112071120811209112101121111212112131121411215112161121711218112191122011221112221122311224112251122611227112281122911230112311123211233112341123511236112371123811239112401124111242112431124411245112461124711248112491125011251112521125311254112551125611257112581125911260112611126211263112641126511266112671126811269112701127111272112731127411275112761127711278112791128011281112821128311284112851128611287112881128911290112911129211293112941129511296112971129811299113001130111302113031130411305113061130711308113091131011311113121131311314113151131611317113181131911320113211132211323113241132511326113271132811329113301133111332113331133411335113361133711338113391134011341113421134311344113451134611347113481134911350113511135211353113541135511356113571135811359113601136111362113631136411365113661136711368113691137011371113721137311374113751137611377113781137911380113811138211383113841138511386113871138811389113901139111392113931139411395113961139711398113991140011401114021140311404114051140611407114081140911410114111141211413114141141511416114171141811419114201142111422114231142411425114261142711428114291143011431114321143311434114351143611437114381143911440114411144211443114441144511446114471144811449114501145111452114531145411455114561145711458114591146011461114621146311464114651146611467114681146911470114711147211473114741147511476114771147811479114801148111482114831148411485114861148711488114891149011491114921149311494114951149611497114981149911500115011150211503115041150511506115071150811509115101151111512115131151411515115161151711518115191152011521115221152311524115251152611527115281152911530115311153211533115341153511536115371153811539115401154111542115431154411545115461154711548115491155011551115521155311554115551155611557115581155911560115611156211563115641156511566115671156811569115701157111572115731157411575115761157711578115791158011581115821158311584115851158611587115881158911590115911159211593115941159511596115971159811599116001160111602116031160411605116061160711608116091161011611116121161311614116151161611617116181161911620116211162211623116241162511626116271162811629116301163111632116331163411635116361163711638116391164011641116421164311644116451164611647116481164911650116511165211653116541165511656116571165811659116601166111662116631166411665116661166711668116691167011671116721167311674116751167611677116781167911680116811168211683116841168511686116871168811689116901169111692116931169411695116961169711698116991170011701117021170311704117051170611707117081170911710117111171211713117141171511716117171171811719117201172111722117231172411725117261172711728117291173011731117321173311734117351173611737117381173911740117411174211743117441174511746117471174811749117501175111752117531175411755117561175711758117591176011761117621176311764117651176611767117681176911770117711177211773117741177511776117771177811779117801178111782117831178411785117861178711788117891179011791117921179311794117951179611797117981179911800118011180211803118041180511806118071180811809118101181111812118131181411815118161181711818118191182011821118221182311824118251182611827118281182911830118311183211833118341183511836118371183811839118401184111842118431184411845118461184711848118491185011851118521185311854118551185611857118581185911860118611186211863118641186511866118671186811869118701187111872118731187411875118761187711878118791188011881118821188311884118851188611887118881188911890118911189211893118941189511896118971189811899119001190111902119031190411905119061190711908119091191011911119121191311914119151191611917119181191911920119211192211923119241192511926119271192811929119301193111932119331193411935119361193711938119391194011941119421194311944119451194611947119481194911950119511195211953119541195511956119571195811959119601196111962119631196411965119661196711968119691197011971119721197311974119751197611977119781197911980119811198211983119841198511986119871198811989119901199111992119931199411995119961199711998119991200012001120021200312004120051200612007120081200912010120111201212013120141201512016120171201812019120201202112022120231202412025120261202712028120291203012031120321203312034120351203612037120381203912040120411204212043120441204512046120471204812049120501205112052120531205412055120561205712058120591206012061120621206312064120651206612067120681206912070120711207212073120741207512076120771207812079120801208112082120831208412085120861208712088120891209012091120921209312094120951209612097120981209912100121011210212103121041210512106121071210812109121101211112112121131211412115121161211712118121191212012121121221212312124121251212612127121281212912130121311213212133121341213512136121371213812139121401214112142121431214412145121461214712148121491215012151121521215312154121551215612157121581215912160121611216212163121641216512166121671216812169121701217112172121731217412175121761217712178121791218012181121821218312184121851218612187121881218912190121911219212193121941219512196121971219812199122001220112202122031220412205122061220712208122091221012211122121221312214122151221612217122181221912220122211222212223122241222512226122271222812229122301223112232122331223412235122361223712238122391224012241122421224312244122451224612247122481224912250122511225212253122541225512256122571225812259122601226112262122631226412265122661226712268122691227012271122721227312274122751227612277122781227912280122811228212283122841228512286122871228812289122901229112292122931229412295122961229712298122991230012301123021230312304123051230612307123081230912310123111231212313123141231512316123171231812319123201232112322123231232412325123261232712328123291233012331123321233312334123351233612337123381233912340123411234212343123441234512346123471234812349123501235112352123531235412355123561235712358123591236012361123621236312364123651236612367123681236912370123711237212373123741237512376123771237812379123801238112382123831238412385123861238712388123891239012391123921239312394123951239612397123981239912400124011240212403124041240512406124071240812409124101241112412124131241412415124161241712418124191242012421124221242312424124251242612427124281242912430124311243212433124341243512436124371243812439124401244112442124431244412445124461244712448124491245012451124521245312454124551245612457124581245912460124611246212463124641246512466124671246812469124701247112472124731247412475124761247712478124791248012481124821248312484124851248612487124881248912490124911249212493124941249512496124971249812499125001250112502125031250412505125061250712508125091251012511125121251312514125151251612517125181251912520125211252212523125241252512526125271252812529125301253112532125331253412535125361253712538125391254012541125421254312544125451254612547125481254912550125511255212553125541255512556125571255812559125601256112562125631256412565125661256712568125691257012571125721257312574125751257612577125781257912580125811258212583125841258512586125871258812589125901259112592125931259412595125961259712598125991260012601126021260312604126051260612607126081260912610126111261212613126141261512616126171261812619126201262112622126231262412625126261262712628126291263012631126321263312634126351263612637126381263912640126411264212643126441264512646126471264812649126501265112652126531265412655126561265712658126591266012661126621266312664126651266612667126681266912670126711267212673126741267512676126771267812679126801268112682126831268412685126861268712688126891269012691126921269312694126951269612697126981269912700127011270212703127041270512706127071270812709127101271112712127131271412715127161271712718127191272012721127221272312724127251272612727127281272912730127311273212733127341273512736127371273812739127401274112742127431274412745127461274712748127491275012751127521275312754127551275612757127581275912760127611276212763127641276512766127671276812769127701277112772127731277412775127761277712778127791278012781127821278312784127851278612787127881278912790127911279212793127941279512796127971279812799128001280112802128031280412805128061280712808128091281012811128121281312814128151281612817128181281912820128211282212823128241282512826128271282812829128301283112832128331283412835128361283712838128391284012841128421284312844128451284612847128481284912850128511285212853128541285512856128571285812859128601286112862128631286412865128661286712868128691287012871128721287312874128751287612877128781287912880128811288212883128841288512886128871288812889128901289112892128931289412895128961289712898128991290012901129021290312904129051290612907129081290912910129111291212913129141291512916129171291812919129201292112922129231292412925129261292712928129291293012931129321293312934129351293612937129381293912940129411294212943129441294512946129471294812949129501295112952129531295412955129561295712958129591296012961129621296312964129651296612967129681296912970129711297212973129741297512976129771297812979129801298112982129831298412985129861298712988129891299012991129921299312994129951299612997129981299913000130011300213003130041300513006130071300813009130101301113012130131301413015130161301713018130191302013021130221302313024130251302613027130281302913030130311303213033130341303513036130371303813039130401304113042130431304413045130461304713048130491305013051130521305313054130551305613057130581305913060130611306213063130641306513066130671306813069130701307113072130731307413075130761307713078130791308013081130821308313084130851308613087130881308913090130911309213093130941309513096130971309813099131001310113102131031310413105131061310713108131091311013111131121311313114131151311613117131181311913120131211312213123131241312513126131271312813129131301313113132131331313413135131361313713138131391314013141131421314313144131451314613147131481314913150131511315213153131541315513156131571315813159131601316113162131631316413165131661316713168131691317013171131721317313174131751317613177131781317913180131811318213183131841318513186131871318813189131901319113192131931319413195131961319713198131991320013201132021320313204132051320613207132081320913210132111321213213132141321513216132171321813219132201322113222132231322413225132261322713228132291323013231132321323313234132351323613237132381323913240132411324213243132441324513246132471324813249132501325113252132531325413255132561325713258132591326013261132621326313264132651326613267132681326913270132711327213273132741327513276132771327813279132801328113282132831328413285132861328713288132891329013291132921329313294132951329613297132981329913300133011330213303133041330513306133071330813309133101331113312133131331413315133161331713318133191332013321133221332313324133251332613327133281332913330133311333213333133341333513336133371333813339133401334113342133431334413345133461334713348133491335013351133521335313354133551335613357133581335913360133611336213363133641336513366133671336813369133701337113372133731337413375133761337713378133791338013381133821338313384133851338613387133881338913390133911339213393133941339513396133971339813399134001340113402134031340413405134061340713408134091341013411134121341313414134151341613417134181341913420134211342213423134241342513426134271342813429134301343113432134331343413435134361343713438134391344013441134421344313444134451344613447134481344913450134511345213453134541345513456134571345813459134601346113462134631346413465134661346713468134691347013471134721347313474134751347613477134781347913480134811348213483134841348513486134871348813489134901349113492134931349413495134961349713498134991350013501135021350313504135051350613507135081350913510135111351213513135141351513516135171351813519135201352113522135231352413525135261352713528135291353013531135321353313534135351353613537135381353913540135411354213543135441354513546135471354813549135501355113552135531355413555135561355713558135591356013561135621356313564135651356613567135681356913570135711357213573135741357513576135771357813579135801358113582135831358413585135861358713588135891359013591135921359313594135951359613597135981359913600136011360213603136041360513606136071360813609136101361113612136131361413615136161361713618136191362013621136221362313624136251362613627136281362913630136311363213633136341363513636136371363813639136401364113642136431364413645136461364713648136491365013651136521365313654136551365613657136581365913660136611366213663136641366513666136671366813669136701367113672136731367413675136761367713678136791368013681136821368313684136851368613687136881368913690136911369213693136941369513696136971369813699137001370113702137031370413705137061370713708137091371013711137121371313714137151371613717137181371913720137211372213723137241372513726137271372813729137301373113732137331373413735137361373713738137391374013741137421374313744137451374613747137481374913750137511375213753137541375513756137571375813759137601376113762137631376413765137661376713768137691377013771137721377313774137751377613777137781377913780137811378213783137841378513786137871378813789137901379113792137931379413795137961379713798137991380013801138021380313804138051380613807138081380913810138111381213813138141381513816138171381813819138201382113822138231382413825138261382713828138291383013831138321383313834138351383613837138381383913840138411384213843138441384513846138471384813849138501385113852138531385413855138561385713858138591386013861138621386313864138651386613867138681386913870138711387213873138741387513876138771387813879138801388113882138831388413885138861388713888138891389013891138921389313894138951389613897138981389913900139011390213903139041390513906139071390813909139101391113912139131391413915139161391713918139191392013921139221392313924139251392613927139281392913930139311393213933139341393513936139371393813939139401394113942139431394413945139461394713948139491395013951139521395313954139551395613957139581395913960139611396213963139641396513966139671396813969139701397113972139731397413975139761397713978139791398013981139821398313984139851398613987139881398913990139911399213993139941399513996139971399813999140001400114002140031400414005140061400714008140091401014011140121401314014140151401614017140181401914020140211402214023140241402514026140271402814029140301403114032140331403414035140361403714038140391404014041140421404314044140451404614047140481404914050140511405214053140541405514056140571405814059140601406114062140631406414065140661406714068140691407014071140721407314074140751407614077140781407914080140811408214083140841408514086140871408814089140901409114092140931409414095140961409714098140991410014101141021410314104141051410614107141081410914110141111411214113141141411514116141171411814119141201412114122141231412414125141261412714128141291413014131141321413314134141351413614137141381413914140141411414214143141441414514146141471414814149141501415114152141531415414155141561415714158141591416014161141621416314164141651416614167141681416914170141711417214173141741417514176141771417814179141801418114182141831418414185141861418714188141891419014191141921419314194141951419614197141981419914200142011420214203142041420514206142071420814209142101421114212142131421414215142161421714218142191422014221142221422314224142251422614227142281422914230142311423214233142341423514236142371423814239142401424114242142431424414245142461424714248142491425014251142521425314254142551425614257142581425914260142611426214263142641426514266142671426814269142701427114272142731427414275142761427714278142791428014281142821428314284142851428614287142881428914290142911429214293142941429514296142971429814299143001430114302143031430414305143061430714308143091431014311143121431314314143151431614317143181431914320143211432214323143241432514326143271432814329143301433114332143331433414335143361433714338143391434014341143421434314344143451434614347143481434914350143511435214353143541435514356143571435814359143601436114362143631436414365143661436714368143691437014371143721437314374143751437614377143781437914380143811438214383143841438514386143871438814389143901439114392143931439414395143961439714398143991440014401144021440314404144051440614407144081440914410144111441214413144141441514416144171441814419144201442114422144231442414425144261442714428144291443014431144321443314434144351443614437144381443914440144411444214443144441444514446144471444814449144501445114452144531445414455144561445714458144591446014461144621446314464144651446614467144681446914470144711447214473144741447514476144771447814479144801448114482144831448414485144861448714488144891449014491144921449314494144951449614497144981449914500145011450214503145041450514506145071450814509145101451114512145131451414515145161451714518145191452014521145221452314524145251452614527145281452914530145311453214533145341453514536145371453814539145401454114542145431454414545145461454714548145491455014551145521455314554145551455614557145581455914560145611456214563145641456514566145671456814569145701457114572145731457414575145761457714578145791458014581145821458314584145851458614587145881458914590145911459214593145941459514596145971459814599146001460114602146031460414605146061460714608146091461014611146121461314614146151461614617146181461914620146211462214623146241462514626146271462814629146301463114632146331463414635146361463714638146391464014641146421464314644146451464614647146481464914650146511465214653146541465514656146571465814659146601466114662146631466414665146661466714668146691467014671146721467314674146751467614677146781467914680146811468214683146841468514686146871468814689146901469114692146931469414695146961469714698146991470014701147021470314704147051470614707147081470914710147111471214713147141471514716147171471814719147201472114722147231472414725147261472714728147291473014731147321473314734147351473614737147381473914740147411474214743147441474514746147471474814749147501475114752147531475414755147561475714758147591476014761147621476314764147651476614767147681476914770147711477214773147741477514776147771477814779147801478114782147831478414785147861478714788147891479014791147921479314794147951479614797147981479914800148011480214803148041480514806148071480814809148101481114812148131481414815148161481714818148191482014821148221482314824148251482614827148281482914830148311483214833148341483514836148371483814839148401484114842148431484414845148461484714848148491485014851148521485314854148551485614857148581485914860148611486214863148641486514866148671486814869148701487114872148731487414875148761487714878148791488014881148821488314884148851488614887148881488914890148911489214893148941489514896148971489814899149001490114902149031490414905149061490714908149091491014911149121491314914149151491614917149181491914920149211492214923149241492514926149271492814929149301493114932149331493414935149361493714938149391494014941149421494314944149451494614947149481494914950149511495214953149541495514956149571495814959149601496114962149631496414965149661496714968149691497014971149721497314974149751497614977149781497914980149811498214983149841498514986149871498814989149901499114992149931499414995149961499714998149991500015001150021500315004150051500615007150081500915010150111501215013150141501515016150171501815019150201502115022150231502415025150261502715028150291503015031150321503315034150351503615037150381503915040150411504215043150441504515046150471504815049150501505115052150531505415055150561505715058150591506015061150621506315064150651506615067150681506915070150711507215073150741507515076150771507815079150801508115082150831508415085150861508715088150891509015091150921509315094150951509615097150981509915100151011510215103151041510515106151071510815109151101511115112151131511415115151161511715118151191512015121151221512315124151251512615127151281512915130151311513215133151341513515136151371513815139151401514115142151431514415145151461514715148151491515015151151521515315154151551515615157151581515915160151611516215163151641516515166151671516815169151701517115172151731517415175151761517715178151791518015181151821518315184151851518615187151881518915190151911519215193151941519515196151971519815199152001520115202152031520415205152061520715208152091521015211152121521315214152151521615217152181521915220152211522215223152241522515226152271522815229152301523115232152331523415235152361523715238152391524015241152421524315244152451524615247152481524915250152511525215253152541525515256152571525815259152601526115262152631526415265152661526715268152691527015271152721527315274152751527615277152781527915280152811528215283152841528515286152871528815289152901529115292152931529415295152961529715298152991530015301153021530315304153051530615307153081530915310153111531215313153141531515316153171531815319153201532115322153231532415325153261532715328153291533015331153321533315334153351533615337153381533915340153411534215343153441534515346153471534815349153501535115352153531535415355153561535715358153591536015361153621536315364153651536615367153681536915370153711537215373153741537515376153771537815379153801538115382153831538415385153861538715388153891539015391153921539315394153951539615397153981539915400154011540215403154041540515406154071540815409154101541115412154131541415415154161541715418154191542015421154221542315424154251542615427154281542915430154311543215433154341543515436154371543815439154401544115442154431544415445154461544715448154491545015451154521545315454154551545615457154581545915460154611546215463154641546515466154671546815469154701547115472154731547415475154761547715478154791548015481154821548315484154851548615487154881548915490154911549215493154941549515496154971549815499155001550115502155031550415505155061550715508155091551015511155121551315514155151551615517155181551915520155211552215523155241552515526155271552815529155301553115532155331553415535155361553715538155391554015541155421554315544155451554615547155481554915550155511555215553155541555515556155571555815559155601556115562155631556415565155661556715568155691557015571155721557315574155751557615577155781557915580155811558215583155841558515586155871558815589155901559115592155931559415595155961559715598155991560015601156021560315604156051560615607156081560915610156111561215613156141561515616156171561815619156201562115622156231562415625156261562715628156291563015631156321563315634156351563615637156381563915640156411564215643156441564515646156471564815649156501565115652156531565415655156561565715658156591566015661156621566315664156651566615667156681566915670156711567215673156741567515676156771567815679156801568115682156831568415685156861568715688156891569015691156921569315694156951569615697156981569915700157011570215703157041570515706157071570815709157101571115712157131571415715157161571715718157191572015721157221572315724157251572615727157281572915730157311573215733157341573515736157371573815739157401574115742157431574415745157461574715748157491575015751157521575315754157551575615757157581575915760157611576215763157641576515766157671576815769157701577115772157731577415775157761577715778157791578015781157821578315784157851578615787157881578915790157911579215793157941579515796157971579815799158001580115802158031580415805158061580715808158091581015811158121581315814158151581615817158181581915820158211582215823158241582515826158271582815829158301583115832158331583415835158361583715838158391584015841158421584315844158451584615847158481584915850158511585215853158541585515856158571585815859158601586115862158631586415865158661586715868158691587015871158721587315874158751587615877158781587915880158811588215883158841588515886158871588815889158901589115892158931589415895158961589715898158991590015901159021590315904159051590615907159081590915910159111591215913159141591515916159171591815919159201592115922159231592415925159261592715928159291593015931159321593315934159351593615937159381593915940159411594215943159441594515946159471594815949159501595115952159531595415955159561595715958159591596015961159621596315964159651596615967159681596915970159711597215973159741597515976159771597815979159801598115982159831598415985159861598715988159891599015991159921599315994159951599615997159981599916000160011600216003160041600516006160071600816009160101601116012160131601416015160161601716018160191602016021160221602316024160251602616027160281602916030160311603216033160341603516036160371603816039160401604116042160431604416045160461604716048160491605016051160521605316054160551605616057160581605916060160611606216063160641606516066160671606816069160701607116072160731607416075160761607716078160791608016081160821608316084160851608616087160881608916090160911609216093160941609516096160971609816099161001610116102161031610416105161061610716108161091611016111161121611316114161151611616117161181611916120161211612216123161241612516126161271612816129161301613116132161331613416135161361613716138161391614016141161421614316144161451614616147161481614916150161511615216153161541615516156161571615816159161601616116162161631616416165161661616716168161691617016171161721617316174161751617616177161781617916180161811618216183161841618516186161871618816189161901619116192161931619416195161961619716198161991620016201162021620316204162051620616207162081620916210162111621216213162141621516216162171621816219162201622116222162231622416225162261622716228162291623016231162321623316234162351623616237162381623916240162411624216243162441624516246162471624816249162501625116252162531625416255162561625716258162591626016261162621626316264162651626616267162681626916270162711627216273162741627516276162771627816279162801628116282162831628416285162861628716288162891629016291162921629316294162951629616297162981629916300163011630216303163041630516306163071630816309163101631116312163131631416315163161631716318163191632016321163221632316324163251632616327163281632916330163311633216333163341633516336163371633816339163401634116342163431634416345163461634716348163491635016351163521635316354163551635616357163581635916360163611636216363163641636516366163671636816369163701637116372163731637416375163761637716378163791638016381163821638316384163851638616387163881638916390163911639216393163941639516396163971639816399164001640116402164031640416405164061640716408164091641016411164121641316414164151641616417164181641916420164211642216423164241642516426164271642816429164301643116432164331643416435164361643716438164391644016441164421644316444164451644616447164481644916450164511645216453164541645516456164571645816459164601646116462164631646416465164661646716468164691647016471164721647316474164751647616477164781647916480164811648216483164841648516486164871648816489164901649116492164931649416495164961649716498164991650016501165021650316504165051650616507165081650916510165111651216513165141651516516165171651816519165201652116522165231652416525165261652716528165291653016531165321653316534165351653616537165381653916540165411654216543165441654516546165471654816549165501655116552165531655416555165561655716558165591656016561165621656316564165651656616567165681656916570165711657216573165741657516576165771657816579165801658116582165831658416585165861658716588165891659016591165921659316594165951659616597165981659916600166011660216603166041660516606166071660816609166101661116612166131661416615166161661716618166191662016621166221662316624166251662616627166281662916630166311663216633166341663516636166371663816639166401664116642166431664416645166461664716648166491665016651166521665316654166551665616657166581665916660166611666216663166641666516666166671666816669166701667116672166731667416675166761667716678166791668016681166821668316684166851668616687166881668916690166911669216693166941669516696166971669816699167001670116702167031670416705167061670716708167091671016711167121671316714167151671616717167181671916720167211672216723167241672516726167271672816729167301673116732167331673416735167361673716738167391674016741167421674316744167451674616747167481674916750167511675216753167541675516756167571675816759167601676116762167631676416765167661676716768167691677016771167721677316774167751677616777167781677916780167811678216783167841678516786167871678816789167901679116792167931679416795167961679716798167991680016801168021680316804168051680616807168081680916810168111681216813168141681516816168171681816819168201682116822168231682416825168261682716828168291683016831168321683316834168351683616837168381683916840168411684216843168441684516846168471684816849168501685116852168531685416855168561685716858168591686016861168621686316864168651686616867168681686916870168711687216873168741687516876168771687816879168801688116882168831688416885168861688716888168891689016891168921689316894168951689616897168981689916900169011690216903169041690516906169071690816909169101691116912169131691416915169161691716918169191692016921169221692316924169251692616927169281692916930169311693216933169341693516936169371693816939169401694116942169431694416945169461694716948169491695016951169521695316954169551695616957169581695916960169611696216963169641696516966169671696816969169701697116972169731697416975169761697716978169791698016981169821698316984169851698616987169881698916990169911699216993169941699516996169971699816999170001700117002170031700417005170061700717008170091701017011170121701317014170151701617017170181701917020170211702217023170241702517026170271702817029170301703117032170331703417035170361703717038170391704017041170421704317044170451704617047170481704917050170511705217053170541705517056170571705817059170601706117062170631706417065170661706717068170691707017071170721707317074170751707617077170781707917080170811708217083170841708517086170871708817089170901709117092170931709417095170961709717098170991710017101171021710317104171051710617107171081710917110171111711217113171141711517116171171711817119171201712117122171231712417125171261712717128171291713017131171321713317134171351713617137171381713917140171411714217143171441714517146171471714817149171501715117152171531715417155171561715717158171591716017161171621716317164171651716617167171681716917170171711717217173171741717517176171771717817179171801718117182171831718417185171861718717188171891719017191171921719317194171951719617197171981719917200172011720217203172041720517206172071720817209172101721117212172131721417215172161721717218172191722017221172221722317224172251722617227172281722917230172311723217233172341723517236172371723817239172401724117242172431724417245172461724717248172491725017251172521725317254172551725617257172581725917260172611726217263172641726517266172671726817269172701727117272172731727417275172761727717278172791728017281172821728317284172851728617287172881728917290172911729217293172941729517296172971729817299173001730117302173031730417305173061730717308173091731017311173121731317314173151731617317173181731917320173211732217323173241732517326173271732817329173301733117332173331733417335173361733717338173391734017341173421734317344173451734617347173481734917350173511735217353173541735517356173571735817359173601736117362173631736417365173661736717368173691737017371173721737317374173751737617377173781737917380173811738217383173841738517386173871738817389173901739117392173931739417395173961739717398173991740017401174021740317404174051740617407174081740917410174111741217413174141741517416174171741817419174201742117422174231742417425174261742717428174291743017431174321743317434174351743617437174381743917440174411744217443174441744517446174471744817449174501745117452174531745417455174561745717458174591746017461174621746317464174651746617467174681746917470174711747217473174741747517476174771747817479174801748117482174831748417485174861748717488174891749017491174921749317494174951749617497174981749917500175011750217503175041750517506175071750817509175101751117512175131751417515175161751717518175191752017521175221752317524175251752617527175281752917530175311753217533175341753517536175371753817539175401754117542175431754417545175461754717548175491755017551175521755317554175551755617557175581755917560175611756217563175641756517566175671756817569175701757117572175731757417575175761757717578175791758017581175821758317584175851758617587175881758917590175911759217593175941759517596175971759817599176001760117602176031760417605176061760717608176091761017611176121761317614176151761617617176181761917620176211762217623176241762517626176271762817629176301763117632176331763417635176361763717638176391764017641176421764317644176451764617647176481764917650176511765217653176541765517656176571765817659176601766117662176631766417665176661766717668176691767017671176721767317674176751767617677176781767917680176811768217683176841768517686176871768817689176901769117692176931769417695176961769717698176991770017701177021770317704177051770617707177081770917710177111771217713177141771517716177171771817719177201772117722177231772417725177261772717728177291773017731177321773317734177351773617737177381773917740177411774217743177441774517746177471774817749177501775117752177531775417755177561775717758177591776017761177621776317764177651776617767177681776917770177711777217773177741777517776177771777817779177801778117782177831778417785177861778717788177891779017791177921779317794177951779617797177981779917800178011780217803178041780517806178071780817809178101781117812178131781417815178161781717818178191782017821178221782317824178251782617827178281782917830178311783217833178341783517836178371783817839178401784117842178431784417845178461784717848178491785017851178521785317854178551785617857178581785917860178611786217863178641786517866178671786817869178701787117872178731787417875178761787717878178791788017881178821788317884178851788617887178881788917890178911789217893178941789517896178971789817899179001790117902179031790417905179061790717908179091791017911179121791317914179151791617917179181791917920179211792217923179241792517926179271792817929179301793117932179331793417935179361793717938179391794017941179421794317944179451794617947179481794917950179511795217953179541795517956179571795817959179601796117962179631796417965179661796717968179691797017971179721797317974179751797617977179781797917980179811798217983179841798517986179871798817989179901799117992179931799417995179961799717998179991800018001180021800318004180051800618007180081800918010180111801218013180141801518016180171801818019180201802118022180231802418025180261802718028180291803018031180321803318034180351803618037180381803918040180411804218043180441804518046180471804818049180501805118052180531805418055180561805718058180591806018061180621806318064180651806618067180681806918070180711807218073180741807518076180771807818079180801808118082180831808418085180861808718088180891809018091180921809318094180951809618097180981809918100181011810218103181041810518106181071810818109181101811118112181131811418115181161811718118181191812018121181221812318124181251812618127181281812918130181311813218133181341813518136181371813818139181401814118142181431814418145181461814718148181491815018151181521815318154181551815618157181581815918160181611816218163181641816518166181671816818169181701817118172181731817418175181761817718178181791818018181181821818318184181851818618187181881818918190181911819218193181941819518196181971819818199182001820118202182031820418205182061820718208182091821018211182121821318214182151821618217182181821918220182211822218223182241822518226182271822818229182301823118232182331823418235182361823718238182391824018241182421824318244182451824618247182481824918250182511825218253182541825518256182571825818259182601826118262182631826418265182661826718268182691827018271182721827318274182751827618277182781827918280182811828218283182841828518286182871828818289182901829118292182931829418295182961829718298182991830018301183021830318304183051830618307183081830918310183111831218313183141831518316183171831818319183201832118322183231832418325183261832718328183291833018331183321833318334183351833618337183381833918340183411834218343183441834518346183471834818349183501835118352183531835418355183561835718358183591836018361183621836318364183651836618367183681836918370183711837218373183741837518376183771837818379183801838118382183831838418385183861838718388183891839018391183921839318394183951839618397183981839918400184011840218403184041840518406184071840818409184101841118412184131841418415184161841718418184191842018421184221842318424184251842618427184281842918430184311843218433184341843518436184371843818439184401844118442184431844418445184461844718448184491845018451184521845318454184551845618457184581845918460184611846218463184641846518466184671846818469184701847118472184731847418475184761847718478184791848018481184821848318484184851848618487184881848918490184911849218493184941849518496184971849818499185001850118502185031850418505185061850718508185091851018511185121851318514185151851618517185181851918520185211852218523185241852518526185271852818529185301853118532185331853418535185361853718538185391854018541185421854318544185451854618547185481854918550185511855218553185541855518556185571855818559185601856118562185631856418565185661856718568185691857018571185721857318574185751857618577185781857918580185811858218583185841858518586185871858818589185901859118592185931859418595185961859718598185991860018601186021860318604186051860618607186081860918610186111861218613186141861518616186171861818619186201862118622186231862418625186261862718628186291863018631186321863318634186351863618637186381863918640186411864218643186441864518646186471864818649186501865118652186531865418655186561865718658186591866018661186621866318664186651866618667186681866918670186711867218673186741867518676186771867818679186801868118682186831868418685186861868718688186891869018691186921869318694186951869618697186981869918700187011870218703187041870518706187071870818709187101871118712187131871418715187161871718718187191872018721187221872318724187251872618727187281872918730187311873218733187341873518736187371873818739187401874118742187431874418745187461874718748187491875018751187521875318754187551875618757187581875918760187611876218763187641876518766187671876818769187701877118772187731877418775187761877718778187791878018781187821878318784187851878618787187881878918790187911879218793187941879518796187971879818799188001880118802188031880418805188061880718808188091881018811188121881318814188151881618817188181881918820188211882218823188241882518826188271882818829188301883118832188331883418835188361883718838188391884018841188421884318844188451884618847188481884918850188511885218853188541885518856188571885818859188601886118862188631886418865188661886718868188691887018871188721887318874188751887618877188781887918880188811888218883188841888518886188871888818889188901889118892188931889418895188961889718898188991890018901189021890318904189051890618907189081890918910189111891218913189141891518916189171891818919189201892118922189231892418925189261892718928189291893018931189321893318934189351893618937189381893918940189411894218943189441894518946189471894818949189501895118952189531895418955189561895718958189591896018961189621896318964189651896618967189681896918970189711897218973189741897518976189771897818979189801898118982189831898418985189861898718988189891899018991189921899318994189951899618997189981899919000190011900219003190041900519006190071900819009190101901119012190131901419015190161901719018190191902019021190221902319024190251902619027190281902919030190311903219033190341903519036190371903819039190401904119042190431904419045190461904719048190491905019051190521905319054190551905619057190581905919060190611906219063190641906519066190671906819069190701907119072190731907419075190761907719078190791908019081190821908319084190851908619087190881908919090190911909219093190941909519096190971909819099191001910119102191031910419105191061910719108191091911019111191121911319114191151911619117191181911919120191211912219123191241912519126191271912819129191301913119132191331913419135191361913719138191391914019141191421914319144191451914619147191481914919150191511915219153191541915519156191571915819159191601916119162191631916419165191661916719168191691917019171191721917319174191751917619177191781917919180191811918219183191841918519186191871918819189191901919119192191931919419195191961919719198191991920019201192021920319204192051920619207192081920919210192111921219213192141921519216192171921819219192201922119222192231922419225192261922719228192291923019231192321923319234192351923619237192381923919240192411924219243192441924519246192471924819249192501925119252192531925419255192561925719258192591926019261192621926319264192651926619267192681926919270192711927219273192741927519276192771927819279192801928119282192831928419285192861928719288192891929019291192921929319294192951929619297192981929919300193011930219303193041930519306193071930819309193101931119312193131931419315193161931719318193191932019321193221932319324193251932619327193281932919330193311933219333193341933519336193371933819339193401934119342193431934419345193461934719348193491935019351193521935319354193551935619357193581935919360193611936219363193641936519366193671936819369193701937119372193731937419375193761937719378193791938019381193821938319384193851938619387193881938919390193911939219393193941939519396193971939819399194001940119402194031940419405194061940719408194091941019411194121941319414194151941619417194181941919420194211942219423194241942519426194271942819429194301943119432194331943419435194361943719438194391944019441194421944319444194451944619447194481944919450194511945219453194541945519456194571945819459194601946119462194631946419465194661946719468194691947019471194721947319474194751947619477194781947919480194811948219483194841948519486194871948819489194901949119492194931949419495194961949719498194991950019501195021950319504195051950619507195081950919510195111951219513195141951519516195171951819519195201952119522195231952419525195261952719528195291953019531195321953319534195351953619537195381953919540195411954219543195441954519546195471954819549195501955119552195531955419555195561955719558195591956019561195621956319564195651956619567195681956919570195711957219573195741957519576195771957819579195801958119582195831958419585195861958719588195891959019591195921959319594195951959619597195981959919600196011960219603196041960519606196071960819609196101961119612196131961419615196161961719618196191962019621196221962319624196251962619627196281962919630196311963219633196341963519636196371963819639196401964119642196431964419645196461964719648196491965019651196521965319654196551965619657196581965919660196611966219663196641966519666196671966819669196701967119672196731967419675196761967719678196791968019681196821968319684196851968619687196881968919690196911969219693196941969519696196971969819699197001970119702197031970419705197061970719708197091971019711197121971319714197151971619717197181971919720197211972219723197241972519726197271972819729197301973119732197331973419735197361973719738197391974019741197421974319744197451974619747197481974919750197511975219753197541975519756197571975819759197601976119762197631976419765197661976719768197691977019771197721977319774197751977619777197781977919780197811978219783197841978519786197871978819789197901979119792197931979419795197961979719798197991980019801198021980319804198051980619807198081980919810198111981219813198141981519816198171981819819198201982119822198231982419825198261982719828198291983019831198321983319834198351983619837198381983919840198411984219843198441984519846198471984819849198501985119852198531985419855198561985719858198591986019861198621986319864198651986619867198681986919870198711987219873198741987519876198771987819879198801988119882198831988419885198861988719888198891989019891198921989319894198951989619897198981989919900199011990219903199041990519906199071990819909199101991119912199131991419915199161991719918199191992019921199221992319924199251992619927199281992919930199311993219933199341993519936199371993819939199401994119942199431994419945199461994719948199491995019951199521995319954199551995619957199581995919960199611996219963199641996519966199671996819969199701997119972199731997419975199761997719978199791998019981199821998319984199851998619987199881998919990199911999219993199941999519996199971999819999200002000120002200032000420005200062000720008200092001020011200122001320014200152001620017200182001920020200212002220023200242002520026200272002820029200302003120032200332003420035200362003720038200392004020041200422004320044200452004620047200482004920050200512005220053200542005520056200572005820059200602006120062200632006420065200662006720068200692007020071200722007320074200752007620077200782007920080200812008220083200842008520086200872008820089200902009120092200932009420095200962009720098200992010020101201022010320104201052010620107201082010920110201112011220113201142011520116201172011820119201202012120122201232012420125201262012720128201292013020131201322013320134201352013620137201382013920140201412014220143201442014520146201472014820149201502015120152201532015420155201562015720158201592016020161201622016320164201652016620167201682016920170201712017220173
  1. #! /bin/sh
  2. # Guess values for system-dependent variables and create Makefiles.
  3. # Generated by GNU Autoconf 2.69 for neon 0.32.2.
  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.32.2'
  549. PACKAGE_STRING='neon 0.32.2'
  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_CONF_TOOL
  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.32.2 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.32.2:";;
  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.32.2
  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.32.2, 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=32
  2531. NE_VERSION_PATCH=2
  2532. NE_VERSION_TAG=
  2533. # 0.32.x is backwards-compatible to 0.27.x, so AGE=5
  2534. NE_LIBTOOL_VERSINFO="32:${NE_VERSION_PATCH}:5"
  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. explicit_bzero sendmsg
  4788. do :
  4789. as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
  4790. ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
  4791. if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
  4792. cat >>confdefs.h <<_ACEOF
  4793. #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
  4794. _ACEOF
  4795. fi
  4796. done
  4797. if test "x${ac_cv_func_poll}${ac_cv_header_sys_poll_h}y" = "xyesyesy"; then
  4798. $as_echo "#define NE_USE_POLL 1" >>confdefs.h
  4799. fi
  4800. if test "$ac_cv_func_stpcpy" = "yes"; then
  4801. ac_fn_c_check_decl "$LINENO" "stpcpy" "ac_cv_have_decl_stpcpy" "$ac_includes_default"
  4802. if test "x$ac_cv_have_decl_stpcpy" = xyes; then :
  4803. ac_have_decl=1
  4804. else
  4805. ac_have_decl=0
  4806. fi
  4807. cat >>confdefs.h <<_ACEOF
  4808. #define HAVE_DECL_STPCPY $ac_have_decl
  4809. _ACEOF
  4810. fi
  4811. # Modern AIXes with the "Linux-like" libc have an undeclared stpcpy
  4812. # Unixware 7 can only link gethostbyname with -lnsl -lsocket
  4813. # Pick up -lsocket first, then the gethostbyname check will work.
  4814. # Haiku requires -lnetwork for socket functions.
  4815. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing socket" >&5
  4816. $as_echo_n "checking for library containing socket... " >&6; }
  4817. if ${ne_cv_libsfor_socket+:} false; then :
  4818. $as_echo_n "(cached) " >&6
  4819. else
  4820. case $ne_cv_os_uname in
  4821. MINGW*)
  4822. ;;
  4823. *)
  4824. case socket in
  4825. getaddrinfo)
  4826. ne__prologue="#include <netdb.h>"
  4827. ne__code="getaddrinfo(0,0,0,0);"
  4828. ;;
  4829. socket)
  4830. ne__prologue="#include <sys/socket.h>"
  4831. ne__code="socket(0,0,0);"
  4832. ;;
  4833. bindtextdomain)
  4834. ne__prologue="#include <libintl.h>"
  4835. ne__code="bindtextdomain(\"\",\"\");"
  4836. ;;
  4837. *)
  4838. ne__prologue=""
  4839. ne__code="socket();"
  4840. ;;
  4841. esac
  4842. ;;
  4843. esac
  4844. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4845. /* end confdefs.h. */
  4846. $ne__prologue
  4847. int
  4848. main ()
  4849. {
  4850. $ne__code
  4851. ;
  4852. return 0;
  4853. }
  4854. _ACEOF
  4855. if ac_fn_c_try_link "$LINENO"; then :
  4856. ne_cv_libsfor_socket="none needed"
  4857. else
  4858. ne_sl_save_LIBS=$LIBS
  4859. ne_cv_libsfor_socket="not found"
  4860. for lib in socket inet ws2_32 network; do
  4861. case $ne_cv_os_uname in
  4862. MINGW*)
  4863. case $lib in
  4864. ws2_32)
  4865. ne__prologue="#include <winsock2.h>"
  4866. case socket in
  4867. gethostbyname)
  4868. ne__code="gethostbyname(\"\")"
  4869. ;;
  4870. socket)
  4871. ne__code="socket(0,0,0);"
  4872. ;;
  4873. *)
  4874. ne__code="socket();"
  4875. ;;
  4876. esac
  4877. ;;
  4878. *)
  4879. ne__prologue=""
  4880. ne__code=""
  4881. ;;
  4882. esac
  4883. ;;
  4884. *)
  4885. ;;
  4886. esac
  4887. LIBS="$ne_sl_save_LIBS -l$lib $NEON_LIBS"
  4888. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4889. /* end confdefs.h. */
  4890. $ne__prologue
  4891. int
  4892. main ()
  4893. {
  4894. $ne__code
  4895. ;
  4896. return 0;
  4897. }
  4898. _ACEOF
  4899. if ac_fn_c_try_link "$LINENO"; then :
  4900. ne_cv_libsfor_socket="-l$lib"; break
  4901. fi
  4902. rm -f core conftest.err conftest.$ac_objext \
  4903. conftest$ac_exeext conftest.$ac_ext
  4904. done
  4905. LIBS=$ne_sl_save_LIBS
  4906. fi
  4907. rm -f core conftest.err conftest.$ac_objext \
  4908. conftest$ac_exeext conftest.$ac_ext
  4909. fi
  4910. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ne_cv_libsfor_socket" >&5
  4911. $as_echo "$ne_cv_libsfor_socket" >&6; }
  4912. if test "$ne_cv_libsfor_socket" = "not found"; then
  4913. as_fn_error $? "could not find library containing socket" "$LINENO" 5
  4914. elif test "$ne_cv_libsfor_socket" = "none needed"; then
  4915. :
  4916. else
  4917. NEON_LIBS="$ne_cv_libsfor_socket $NEON_LIBS"
  4918. fi
  4919. # Enable getaddrinfo support if it, gai_strerror and inet_ntop are
  4920. # all available.
  4921. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing getaddrinfo" >&5
  4922. $as_echo_n "checking for library containing getaddrinfo... " >&6; }
  4923. if ${ne_cv_libsfor_getaddrinfo+:} false; then :
  4924. $as_echo_n "(cached) " >&6
  4925. else
  4926. case $ne_cv_os_uname in
  4927. MINGW*)
  4928. ;;
  4929. *)
  4930. case getaddrinfo in
  4931. getaddrinfo)
  4932. ne__prologue="#include <netdb.h>"
  4933. ne__code="getaddrinfo(0,0,0,0);"
  4934. ;;
  4935. socket)
  4936. ne__prologue="#include <sys/socket.h>"
  4937. ne__code="socket(0,0,0);"
  4938. ;;
  4939. bindtextdomain)
  4940. ne__prologue="#include <libintl.h>"
  4941. ne__code="bindtextdomain(\"\",\"\");"
  4942. ;;
  4943. *)
  4944. ne__prologue=""
  4945. ne__code="getaddrinfo();"
  4946. ;;
  4947. esac
  4948. ;;
  4949. esac
  4950. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4951. /* end confdefs.h. */
  4952. $ne__prologue
  4953. int
  4954. main ()
  4955. {
  4956. $ne__code
  4957. ;
  4958. return 0;
  4959. }
  4960. _ACEOF
  4961. if ac_fn_c_try_link "$LINENO"; then :
  4962. ne_cv_libsfor_getaddrinfo="none needed"
  4963. else
  4964. ne_sl_save_LIBS=$LIBS
  4965. ne_cv_libsfor_getaddrinfo="not found"
  4966. for lib in nsl; do
  4967. case $ne_cv_os_uname in
  4968. MINGW*)
  4969. case $lib in
  4970. ws2_32)
  4971. ne__prologue="#include <winsock2.h>"
  4972. case getaddrinfo in
  4973. gethostbyname)
  4974. ne__code="gethostbyname(\"\")"
  4975. ;;
  4976. socket)
  4977. ne__code="socket(0,0,0);"
  4978. ;;
  4979. *)
  4980. ne__code="getaddrinfo();"
  4981. ;;
  4982. esac
  4983. ;;
  4984. *)
  4985. ne__prologue=""
  4986. ne__code=""
  4987. ;;
  4988. esac
  4989. ;;
  4990. *)
  4991. ;;
  4992. esac
  4993. LIBS="$ne_sl_save_LIBS -l$lib $NEON_LIBS"
  4994. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4995. /* end confdefs.h. */
  4996. $ne__prologue
  4997. int
  4998. main ()
  4999. {
  5000. $ne__code
  5001. ;
  5002. return 0;
  5003. }
  5004. _ACEOF
  5005. if ac_fn_c_try_link "$LINENO"; then :
  5006. ne_cv_libsfor_getaddrinfo="-l$lib"; break
  5007. fi
  5008. rm -f core conftest.err conftest.$ac_objext \
  5009. conftest$ac_exeext conftest.$ac_ext
  5010. done
  5011. LIBS=$ne_sl_save_LIBS
  5012. fi
  5013. rm -f core conftest.err conftest.$ac_objext \
  5014. conftest$ac_exeext conftest.$ac_ext
  5015. fi
  5016. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ne_cv_libsfor_getaddrinfo" >&5
  5017. $as_echo "$ne_cv_libsfor_getaddrinfo" >&6; }
  5018. if test "$ne_cv_libsfor_getaddrinfo" = "not found"; then
  5019. ne_enable_gai=no
  5020. elif test "$ne_cv_libsfor_getaddrinfo" = "none needed"; then
  5021. # HP-UX boxes commonly get into a state where getaddrinfo is present
  5022. # but borked: http://marc.theaimsgroup.com/?l=apr-dev&m=107730955207120&w=2
  5023. case x`uname -sr 2>/dev/null`y in
  5024. xHP-UX*11.[01]*y)
  5025. { $as_echo "$as_me:${as_lineno-$LINENO}: getaddrinfo support disabled on HP-UX 11.0x/11.1x" >&5
  5026. $as_echo "$as_me: getaddrinfo support disabled on HP-UX 11.0x/11.1x" >&6;} ;;
  5027. *)
  5028. ne_enable_gai=yes
  5029. ne_cf_save_LIBS=$LIBS
  5030. LIBS="$LIBS $NEON_LIBS"
  5031. for ac_func in gai_strerror getnameinfo inet_ntop inet_pton
  5032. do :
  5033. as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
  5034. ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
  5035. if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
  5036. cat >>confdefs.h <<_ACEOF
  5037. #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
  5038. _ACEOF
  5039. else
  5040. ne_enable_gai=no; break
  5041. fi
  5042. done
  5043. LIBS=$ne_cf_save_LIBS ;;
  5044. esac
  5045. else
  5046. NEON_LIBS="$ne_cv_libsfor_getaddrinfo $NEON_LIBS"
  5047. # HP-UX boxes commonly get into a state where getaddrinfo is present
  5048. # but borked: http://marc.theaimsgroup.com/?l=apr-dev&m=107730955207120&w=2
  5049. case x`uname -sr 2>/dev/null`y in
  5050. xHP-UX*11.[01]*y)
  5051. { $as_echo "$as_me:${as_lineno-$LINENO}: getaddrinfo support disabled on HP-UX 11.0x/11.1x" >&5
  5052. $as_echo "$as_me: getaddrinfo support disabled on HP-UX 11.0x/11.1x" >&6;} ;;
  5053. *)
  5054. ne_enable_gai=yes
  5055. ne_cf_save_LIBS=$LIBS
  5056. LIBS="$LIBS $NEON_LIBS"
  5057. for ac_func in gai_strerror getnameinfo inet_ntop inet_pton
  5058. do :
  5059. as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
  5060. ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
  5061. if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
  5062. cat >>confdefs.h <<_ACEOF
  5063. #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
  5064. _ACEOF
  5065. else
  5066. ne_enable_gai=no; break
  5067. fi
  5068. done
  5069. LIBS=$ne_cf_save_LIBS ;;
  5070. esac
  5071. fi
  5072. if test $ne_enable_gai = yes; then
  5073. NE_FLAG_IPV6=yes
  5074. $as_echo "#define NE_HAVE_IPV6 1" >>confdefs.h
  5075. ne_IPV6_message="IPv6 support is enabled"
  5076. { $as_echo "$as_me:${as_lineno-$LINENO}: IPv6 support is enabled" >&5
  5077. $as_echo "$as_me: IPv6 support is enabled" >&6;}
  5078. $as_echo "#define USE_GETADDRINFO 1" >>confdefs.h
  5079. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working AI_ADDRCONFIG" >&5
  5080. $as_echo_n "checking for working AI_ADDRCONFIG... " >&6; }
  5081. if ${ne_cv_gai_addrconfig+:} false; then :
  5082. $as_echo_n "(cached) " >&6
  5083. else
  5084. if test "$cross_compiling" = yes; then :
  5085. ne_cv_gai_addrconfig=no
  5086. else
  5087. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5088. /* end confdefs.h. */
  5089. #include <netdb.h>
  5090. #include <stdlib.h>
  5091. int
  5092. main ()
  5093. {
  5094. struct addrinfo hints = {0}, *result;
  5095. hints.ai_flags = AI_ADDRCONFIG;
  5096. if (getaddrinfo("localhost", NULL, &hints, &result) != 0) return 1;
  5097. ;
  5098. return 0;
  5099. }
  5100. _ACEOF
  5101. if ac_fn_c_try_run "$LINENO"; then :
  5102. ne_cv_gai_addrconfig=yes
  5103. else
  5104. ne_cv_gai_addrconfig=no
  5105. fi
  5106. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  5107. conftest.$ac_objext conftest.beam conftest.$ac_ext
  5108. fi
  5109. fi
  5110. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ne_cv_gai_addrconfig" >&5
  5111. $as_echo "$ne_cv_gai_addrconfig" >&6; }
  5112. if test $ne_cv_gai_addrconfig = yes; then
  5113. $as_echo "#define USE_GAI_ADDRCONFIG 1" >>confdefs.h
  5114. fi
  5115. else
  5116. # Checks for non-getaddrinfo() based resolver interfaces.
  5117. # QNX has gethostbyname in -lsocket. BeOS only has it in -lbind.
  5118. # CygWin/Winsock2 has it in -lws2_32, allegedly.
  5119. # Haiku requires -lnetwork for socket functions.
  5120. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing gethostbyname" >&5
  5121. $as_echo_n "checking for library containing gethostbyname... " >&6; }
  5122. if ${ne_cv_libsfor_gethostbyname+:} false; then :
  5123. $as_echo_n "(cached) " >&6
  5124. else
  5125. case $ne_cv_os_uname in
  5126. MINGW*)
  5127. ;;
  5128. *)
  5129. case gethostbyname in
  5130. getaddrinfo)
  5131. ne__prologue="#include <netdb.h>"
  5132. ne__code="getaddrinfo(0,0,0,0);"
  5133. ;;
  5134. socket)
  5135. ne__prologue="#include <sys/socket.h>"
  5136. ne__code="socket(0,0,0);"
  5137. ;;
  5138. bindtextdomain)
  5139. ne__prologue="#include <libintl.h>"
  5140. ne__code="bindtextdomain(\"\",\"\");"
  5141. ;;
  5142. *)
  5143. ne__prologue=""
  5144. ne__code="gethostbyname();"
  5145. ;;
  5146. esac
  5147. ;;
  5148. esac
  5149. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5150. /* end confdefs.h. */
  5151. $ne__prologue
  5152. int
  5153. main ()
  5154. {
  5155. $ne__code
  5156. ;
  5157. return 0;
  5158. }
  5159. _ACEOF
  5160. if ac_fn_c_try_link "$LINENO"; then :
  5161. ne_cv_libsfor_gethostbyname="none needed"
  5162. else
  5163. ne_sl_save_LIBS=$LIBS
  5164. ne_cv_libsfor_gethostbyname="not found"
  5165. for lib in socket nsl bind ws2_32 network; do
  5166. case $ne_cv_os_uname in
  5167. MINGW*)
  5168. case $lib in
  5169. ws2_32)
  5170. ne__prologue="#include <winsock2.h>"
  5171. case gethostbyname in
  5172. gethostbyname)
  5173. ne__code="gethostbyname(\"\")"
  5174. ;;
  5175. socket)
  5176. ne__code="socket(0,0,0);"
  5177. ;;
  5178. *)
  5179. ne__code="gethostbyname();"
  5180. ;;
  5181. esac
  5182. ;;
  5183. *)
  5184. ne__prologue=""
  5185. ne__code=""
  5186. ;;
  5187. esac
  5188. ;;
  5189. *)
  5190. ;;
  5191. esac
  5192. LIBS="$ne_sl_save_LIBS -l$lib $NEON_LIBS"
  5193. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5194. /* end confdefs.h. */
  5195. $ne__prologue
  5196. int
  5197. main ()
  5198. {
  5199. $ne__code
  5200. ;
  5201. return 0;
  5202. }
  5203. _ACEOF
  5204. if ac_fn_c_try_link "$LINENO"; then :
  5205. ne_cv_libsfor_gethostbyname="-l$lib"; break
  5206. fi
  5207. rm -f core conftest.err conftest.$ac_objext \
  5208. conftest$ac_exeext conftest.$ac_ext
  5209. done
  5210. LIBS=$ne_sl_save_LIBS
  5211. fi
  5212. rm -f core conftest.err conftest.$ac_objext \
  5213. conftest$ac_exeext conftest.$ac_ext
  5214. fi
  5215. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ne_cv_libsfor_gethostbyname" >&5
  5216. $as_echo "$ne_cv_libsfor_gethostbyname" >&6; }
  5217. if test "$ne_cv_libsfor_gethostbyname" = "not found"; then
  5218. as_fn_error $? "could not find library containing gethostbyname" "$LINENO" 5
  5219. elif test "$ne_cv_libsfor_gethostbyname" = "none needed"; then
  5220. :
  5221. else
  5222. NEON_LIBS="$ne_cv_libsfor_gethostbyname $NEON_LIBS"
  5223. fi
  5224. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing hstrerror" >&5
  5225. $as_echo_n "checking for library containing hstrerror... " >&6; }
  5226. if ${ne_cv_libsfor_hstrerror+:} false; then :
  5227. $as_echo_n "(cached) " >&6
  5228. else
  5229. case $ne_cv_os_uname in
  5230. MINGW*)
  5231. ;;
  5232. *)
  5233. case hstrerror in
  5234. getaddrinfo)
  5235. ne__prologue="#include <netdb.h>"
  5236. ne__code="getaddrinfo(0,0,0,0);"
  5237. ;;
  5238. socket)
  5239. ne__prologue="#include <sys/socket.h>"
  5240. ne__code="socket(0,0,0);"
  5241. ;;
  5242. bindtextdomain)
  5243. ne__prologue="#include <libintl.h>"
  5244. ne__code="bindtextdomain(\"\",\"\");"
  5245. ;;
  5246. *)
  5247. ne__prologue=""
  5248. ne__code="hstrerror();"
  5249. ;;
  5250. esac
  5251. ;;
  5252. esac
  5253. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5254. /* end confdefs.h. */
  5255. $ne__prologue
  5256. int
  5257. main ()
  5258. {
  5259. $ne__code
  5260. ;
  5261. return 0;
  5262. }
  5263. _ACEOF
  5264. if ac_fn_c_try_link "$LINENO"; then :
  5265. ne_cv_libsfor_hstrerror="none needed"
  5266. else
  5267. ne_sl_save_LIBS=$LIBS
  5268. ne_cv_libsfor_hstrerror="not found"
  5269. for lib in resolv; do
  5270. case $ne_cv_os_uname in
  5271. MINGW*)
  5272. case $lib in
  5273. ws2_32)
  5274. ne__prologue="#include <winsock2.h>"
  5275. case hstrerror in
  5276. gethostbyname)
  5277. ne__code="gethostbyname(\"\")"
  5278. ;;
  5279. socket)
  5280. ne__code="socket(0,0,0);"
  5281. ;;
  5282. *)
  5283. ne__code="hstrerror();"
  5284. ;;
  5285. esac
  5286. ;;
  5287. *)
  5288. ne__prologue=""
  5289. ne__code=""
  5290. ;;
  5291. esac
  5292. ;;
  5293. *)
  5294. ;;
  5295. esac
  5296. LIBS="$ne_sl_save_LIBS -l$lib $NEON_LIBS"
  5297. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5298. /* end confdefs.h. */
  5299. $ne__prologue
  5300. int
  5301. main ()
  5302. {
  5303. $ne__code
  5304. ;
  5305. return 0;
  5306. }
  5307. _ACEOF
  5308. if ac_fn_c_try_link "$LINENO"; then :
  5309. ne_cv_libsfor_hstrerror="-l$lib"; break
  5310. fi
  5311. rm -f core conftest.err conftest.$ac_objext \
  5312. conftest$ac_exeext conftest.$ac_ext
  5313. done
  5314. LIBS=$ne_sl_save_LIBS
  5315. fi
  5316. rm -f core conftest.err conftest.$ac_objext \
  5317. conftest$ac_exeext conftest.$ac_ext
  5318. fi
  5319. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ne_cv_libsfor_hstrerror" >&5
  5320. $as_echo "$ne_cv_libsfor_hstrerror" >&6; }
  5321. if test "$ne_cv_libsfor_hstrerror" = "not found"; then
  5322. :
  5323. elif test "$ne_cv_libsfor_hstrerror" = "none needed"; then
  5324. :
  5325. else
  5326. NEON_LIBS="$ne_cv_libsfor_hstrerror $NEON_LIBS"
  5327. fi
  5328. ne_cf_save_LIBS=$LIBS
  5329. LIBS="$LIBS $NEON_LIBS"
  5330. for ac_func in hstrerror
  5331. do :
  5332. ac_fn_c_check_func "$LINENO" "hstrerror" "ac_cv_func_hstrerror"
  5333. if test "x$ac_cv_func_hstrerror" = xyes; then :
  5334. cat >>confdefs.h <<_ACEOF
  5335. #define HAVE_HSTRERROR 1
  5336. _ACEOF
  5337. fi
  5338. done
  5339. LIBS=$ne_cf_save_LIBS
  5340. # Older Unixes don't declare h_errno.
  5341. ac_fn_c_check_decl "$LINENO" "h_errno" "ac_cv_have_decl_h_errno" "#include <netdb.h>
  5342. "
  5343. if test "x$ac_cv_have_decl_h_errno" = xyes; then :
  5344. ac_have_decl=1
  5345. else
  5346. ac_have_decl=0
  5347. fi
  5348. cat >>confdefs.h <<_ACEOF
  5349. #define HAVE_DECL_H_ERRNO $ac_have_decl
  5350. _ACEOF
  5351. ac_fn_c_check_type "$LINENO" "in_addr_t" "ac_cv_type_in_addr_t" "
  5352. #ifdef HAVE_SYS_TYPES_H
  5353. # include <sys/types.h>
  5354. #endif
  5355. #ifdef HAVE_NETINET_IN_H
  5356. # include <netinet/in.h>
  5357. #endif
  5358. "
  5359. if test "x$ac_cv_type_in_addr_t" = xyes; then :
  5360. else
  5361. $as_echo "#define in_addr_t unsigned int" >>confdefs.h
  5362. fi
  5363. fi
  5364. ac_fn_c_check_type "$LINENO" "socklen_t" "ac_cv_type_socklen_t" "
  5365. #ifdef HAVE_SYS_TYPES_H
  5366. # include <sys/types.h>
  5367. #endif
  5368. #ifdef HAVE_SYS_SOCKET_H
  5369. # include <sys/socket.h>
  5370. #endif
  5371. "
  5372. if test "x$ac_cv_type_socklen_t" = xyes; then :
  5373. cat >>confdefs.h <<_ACEOF
  5374. #define HAVE_SOCKLEN_T 1
  5375. _ACEOF
  5376. else
  5377. # Linux accept(2) says this should be size_t for SunOS 5... gah.
  5378. $as_echo "#define socklen_t int" >>confdefs.h
  5379. fi
  5380. ac_fn_c_check_member "$LINENO" "struct tm" "tm_gmtoff" "ac_cv_member_struct_tm_tm_gmtoff" "#include <time.h>
  5381. "
  5382. if test "x$ac_cv_member_struct_tm_tm_gmtoff" = xyes; then :
  5383. cat >>confdefs.h <<_ACEOF
  5384. #define HAVE_STRUCT_TM_TM_GMTOFF 1
  5385. _ACEOF
  5386. fi
  5387. ac_fn_c_check_member "$LINENO" "struct tm" "__tm_gmtoff" "ac_cv_member_struct_tm___tm_gmtoff" "#include <time.h>
  5388. "
  5389. if test "x$ac_cv_member_struct_tm___tm_gmtoff" = xyes; then :
  5390. cat >>confdefs.h <<_ACEOF
  5391. #define HAVE_STRUCT_TM___TM_GMTOFF 1
  5392. _ACEOF
  5393. fi
  5394. if test ${ac_cv_member_struct_tm_tm_gmtoff}${ac_cv_member_struct_tm___tm_gmtoff}${ne_cv_cc_timezone} = nonono; then
  5395. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: no timezone handling in date parsing on this platform" >&5
  5396. $as_echo "$as_me: WARNING: no timezone handling in date parsing on this platform" >&2;}
  5397. fi
  5398. # Check whether --with-zlib was given.
  5399. if test "${with_zlib+set}" = set; then :
  5400. withval=$with_zlib; ne_use_zlib=$withval
  5401. else
  5402. ne_use_zlib=yes
  5403. fi
  5404. if test "$ne_use_zlib" = "yes"; then
  5405. ac_fn_c_check_header_mongrel "$LINENO" "zlib.h" "ac_cv_header_zlib_h" "$ac_includes_default"
  5406. if test "x$ac_cv_header_zlib_h" = xyes; then :
  5407. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inflate in -lz" >&5
  5408. $as_echo_n "checking for inflate in -lz... " >&6; }
  5409. if ${ac_cv_lib_z_inflate+:} false; then :
  5410. $as_echo_n "(cached) " >&6
  5411. else
  5412. ac_check_lib_save_LIBS=$LIBS
  5413. LIBS="-lz $LIBS"
  5414. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5415. /* end confdefs.h. */
  5416. /* Override any GCC internal prototype to avoid an error.
  5417. Use char because int might match the return type of a GCC
  5418. builtin and then its argument prototype would still apply. */
  5419. #ifdef __cplusplus
  5420. extern "C"
  5421. #endif
  5422. char inflate ();
  5423. int
  5424. main ()
  5425. {
  5426. return inflate ();
  5427. ;
  5428. return 0;
  5429. }
  5430. _ACEOF
  5431. if ac_fn_c_try_link "$LINENO"; then :
  5432. ac_cv_lib_z_inflate=yes
  5433. else
  5434. ac_cv_lib_z_inflate=no
  5435. fi
  5436. rm -f core conftest.err conftest.$ac_objext \
  5437. conftest$ac_exeext conftest.$ac_ext
  5438. LIBS=$ac_check_lib_save_LIBS
  5439. fi
  5440. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_inflate" >&5
  5441. $as_echo "$ac_cv_lib_z_inflate" >&6; }
  5442. if test "x$ac_cv_lib_z_inflate" = xyes; then :
  5443. NEON_LIBS="$NEON_LIBS -lz"
  5444. NE_FLAG_ZLIB=yes
  5445. $as_echo "#define NE_HAVE_ZLIB 1" >>confdefs.h
  5446. ne_ZLIB_message="zlib support enabled, using -lz"
  5447. { $as_echo "$as_me:${as_lineno-$LINENO}: zlib support enabled, using -lz" >&5
  5448. $as_echo "$as_me: zlib support enabled, using -lz" >&6;}
  5449. else
  5450. NE_FLAG_ZLIB=no
  5451. ne_ZLIB_message="zlib library not found"
  5452. { $as_echo "$as_me:${as_lineno-$LINENO}: zlib library not found" >&5
  5453. $as_echo "$as_me: zlib library not found" >&6;}
  5454. fi
  5455. else
  5456. NE_FLAG_ZLIB=no
  5457. ne_ZLIB_message="zlib header not found"
  5458. { $as_echo "$as_me:${as_lineno-$LINENO}: zlib header not found" >&5
  5459. $as_echo "$as_me: zlib header not found" >&6;}
  5460. fi
  5461. else
  5462. NE_FLAG_ZLIB=no
  5463. ne_ZLIB_message="zlib not enabled"
  5464. { $as_echo "$as_me:${as_lineno-$LINENO}: zlib not enabled" >&5
  5465. $as_echo "$as_me: zlib not enabled" >&6;}
  5466. fi
  5467. # Conditionally enable ACL support
  5468. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable ACL support in neon" >&5
  5469. $as_echo_n "checking whether to enable ACL support in neon... " >&6; }
  5470. if test "x$neon_no_acl" = "xyes"; then
  5471. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5472. $as_echo "no" >&6; }
  5473. else
  5474. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  5475. $as_echo "yes" >&6; }
  5476. NEON_EXTRAOBJS="$NEON_EXTRAOBJS ne_oldacl ne_acl3744"
  5477. fi
  5478. # Check whether --with-ssl was given.
  5479. if test "${with_ssl+set}" = set; then :
  5480. withval=$with_ssl;
  5481. fi
  5482. # Check whether --with-egd was given.
  5483. if test "${with_egd+set}" = set; then :
  5484. withval=$with_egd;
  5485. fi
  5486. # Check whether --with-pakchois was given.
  5487. if test "${with_pakchois+set}" = set; then :
  5488. withval=$with_pakchois;
  5489. fi
  5490. case $with_ssl in
  5491. /*)
  5492. { $as_echo "$as_me:${as_lineno-$LINENO}: to use SSL libraries in non-standard locations, try --with-ssl --with-libs=$with_ssl" >&5
  5493. $as_echo "$as_me: to use SSL libraries in non-standard locations, try --with-ssl --with-libs=$with_ssl" >&6;}
  5494. as_fn_error $? "--with-ssl does not take a path argument" "$LINENO" 5
  5495. ;;
  5496. yes|openssl)
  5497. # Extract the first word of "pkg-config", so it can be a program name with args.
  5498. set dummy pkg-config; ac_word=$2
  5499. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5500. $as_echo_n "checking for $ac_word... " >&6; }
  5501. if ${ac_cv_path_PKG_CONFIG+:} false; then :
  5502. $as_echo_n "(cached) " >&6
  5503. else
  5504. case $PKG_CONFIG in
  5505. [\\/]* | ?:[\\/]*)
  5506. ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
  5507. ;;
  5508. *)
  5509. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5510. for as_dir in $PATH
  5511. do
  5512. IFS=$as_save_IFS
  5513. test -z "$as_dir" && as_dir=.
  5514. for ac_exec_ext in '' $ac_executable_extensions; do
  5515. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5516. ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
  5517. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5518. break 2
  5519. fi
  5520. done
  5521. done
  5522. IFS=$as_save_IFS
  5523. test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
  5524. ;;
  5525. esac
  5526. fi
  5527. PKG_CONFIG=$ac_cv_path_PKG_CONFIG
  5528. if test -n "$PKG_CONFIG"; then
  5529. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
  5530. $as_echo "$PKG_CONFIG" >&6; }
  5531. else
  5532. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5533. $as_echo "no" >&6; }
  5534. fi
  5535. if test "$PKG_CONFIG" = "no"; then
  5536. : Not using pkg-config
  5537. # Either OpenSSL library may require -ldl if built with dynamic engine support
  5538. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing RSA_new" >&5
  5539. $as_echo_n "checking for library containing RSA_new... " >&6; }
  5540. if ${ne_cv_libsfor_RSA_new+:} false; then :
  5541. $as_echo_n "(cached) " >&6
  5542. else
  5543. case $ne_cv_os_uname in
  5544. MINGW*)
  5545. ;;
  5546. *)
  5547. case RSA_new in
  5548. getaddrinfo)
  5549. ne__prologue="#include <netdb.h>"
  5550. ne__code="getaddrinfo(0,0,0,0);"
  5551. ;;
  5552. socket)
  5553. ne__prologue="#include <sys/socket.h>"
  5554. ne__code="socket(0,0,0);"
  5555. ;;
  5556. bindtextdomain)
  5557. ne__prologue="#include <libintl.h>"
  5558. ne__code="bindtextdomain(\"\",\"\");"
  5559. ;;
  5560. *)
  5561. ne__prologue=""
  5562. ne__code="RSA_new();"
  5563. ;;
  5564. esac
  5565. ;;
  5566. esac
  5567. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5568. /* end confdefs.h. */
  5569. $ne__prologue
  5570. int
  5571. main ()
  5572. {
  5573. $ne__code
  5574. ;
  5575. return 0;
  5576. }
  5577. _ACEOF
  5578. if ac_fn_c_try_link "$LINENO"; then :
  5579. ne_cv_libsfor_RSA_new="none needed"
  5580. else
  5581. ne_sl_save_LIBS=$LIBS
  5582. ne_cv_libsfor_RSA_new="not found"
  5583. for lib in crypto; do
  5584. case $ne_cv_os_uname in
  5585. MINGW*)
  5586. case $lib in
  5587. ws2_32)
  5588. ne__prologue="#include <winsock2.h>"
  5589. case RSA_new in
  5590. gethostbyname)
  5591. ne__code="gethostbyname(\"\")"
  5592. ;;
  5593. socket)
  5594. ne__code="socket(0,0,0);"
  5595. ;;
  5596. *)
  5597. ne__code="RSA_new();"
  5598. ;;
  5599. esac
  5600. ;;
  5601. *)
  5602. ne__prologue=""
  5603. ne__code=""
  5604. ;;
  5605. esac
  5606. ;;
  5607. *)
  5608. ;;
  5609. esac
  5610. LIBS="$ne_sl_save_LIBS -l$lib $NEON_LIBS"
  5611. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5612. /* end confdefs.h. */
  5613. $ne__prologue
  5614. int
  5615. main ()
  5616. {
  5617. $ne__code
  5618. ;
  5619. return 0;
  5620. }
  5621. _ACEOF
  5622. if ac_fn_c_try_link "$LINENO"; then :
  5623. ne_cv_libsfor_RSA_new="-l$lib"; break
  5624. fi
  5625. rm -f core conftest.err conftest.$ac_objext \
  5626. conftest$ac_exeext conftest.$ac_ext
  5627. LIBS="$ne_sl_save_LIBS -l$lib -ldl $NEON_LIBS"
  5628. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5629. /* end confdefs.h. */
  5630. $ne__prologue
  5631. int
  5632. main ()
  5633. {
  5634. $ne__code
  5635. ;
  5636. return 0;
  5637. }
  5638. _ACEOF
  5639. if ac_fn_c_try_link "$LINENO"; then :
  5640. ne_cv_libsfor_RSA_new="-l$lib -ldl"; break
  5641. fi
  5642. rm -f core conftest.err conftest.$ac_objext \
  5643. conftest$ac_exeext conftest.$ac_ext
  5644. done
  5645. LIBS=$ne_sl_save_LIBS
  5646. fi
  5647. rm -f core conftest.err conftest.$ac_objext \
  5648. conftest$ac_exeext conftest.$ac_ext
  5649. fi
  5650. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ne_cv_libsfor_RSA_new" >&5
  5651. $as_echo "$ne_cv_libsfor_RSA_new" >&6; }
  5652. if test "$ne_cv_libsfor_RSA_new" = "not found"; then
  5653. as_fn_error $? "could not find library containing RSA_new" "$LINENO" 5
  5654. elif test "$ne_cv_libsfor_RSA_new" = "none needed"; then
  5655. :
  5656. else
  5657. NEON_LIBS="$ne_cv_libsfor_RSA_new $NEON_LIBS"
  5658. fi
  5659. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing SSL_library_init" >&5
  5660. $as_echo_n "checking for library containing SSL_library_init... " >&6; }
  5661. if ${ne_cv_libsfor_SSL_library_init+:} false; then :
  5662. $as_echo_n "(cached) " >&6
  5663. else
  5664. case $ne_cv_os_uname in
  5665. MINGW*)
  5666. ;;
  5667. *)
  5668. case SSL_library_init in
  5669. getaddrinfo)
  5670. ne__prologue="#include <netdb.h>"
  5671. ne__code="getaddrinfo(0,0,0,0);"
  5672. ;;
  5673. socket)
  5674. ne__prologue="#include <sys/socket.h>"
  5675. ne__code="socket(0,0,0);"
  5676. ;;
  5677. bindtextdomain)
  5678. ne__prologue="#include <libintl.h>"
  5679. ne__code="bindtextdomain(\"\",\"\");"
  5680. ;;
  5681. *)
  5682. ne__prologue=""
  5683. ne__code="SSL_library_init();"
  5684. ;;
  5685. esac
  5686. ;;
  5687. esac
  5688. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5689. /* end confdefs.h. */
  5690. $ne__prologue
  5691. int
  5692. main ()
  5693. {
  5694. $ne__code
  5695. ;
  5696. return 0;
  5697. }
  5698. _ACEOF
  5699. if ac_fn_c_try_link "$LINENO"; then :
  5700. ne_cv_libsfor_SSL_library_init="none needed"
  5701. else
  5702. ne_sl_save_LIBS=$LIBS
  5703. ne_cv_libsfor_SSL_library_init="not found"
  5704. for lib in ssl; do
  5705. case $ne_cv_os_uname in
  5706. MINGW*)
  5707. case $lib in
  5708. ws2_32)
  5709. ne__prologue="#include <winsock2.h>"
  5710. case SSL_library_init in
  5711. gethostbyname)
  5712. ne__code="gethostbyname(\"\")"
  5713. ;;
  5714. socket)
  5715. ne__code="socket(0,0,0);"
  5716. ;;
  5717. *)
  5718. ne__code="SSL_library_init();"
  5719. ;;
  5720. esac
  5721. ;;
  5722. *)
  5723. ne__prologue=""
  5724. ne__code=""
  5725. ;;
  5726. esac
  5727. ;;
  5728. *)
  5729. ;;
  5730. esac
  5731. LIBS="$ne_sl_save_LIBS -l$lib $NEON_LIBS"
  5732. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5733. /* end confdefs.h. */
  5734. $ne__prologue
  5735. int
  5736. main ()
  5737. {
  5738. $ne__code
  5739. ;
  5740. return 0;
  5741. }
  5742. _ACEOF
  5743. if ac_fn_c_try_link "$LINENO"; then :
  5744. ne_cv_libsfor_SSL_library_init="-l$lib"; break
  5745. fi
  5746. rm -f core conftest.err conftest.$ac_objext \
  5747. conftest$ac_exeext conftest.$ac_ext
  5748. LIBS="$ne_sl_save_LIBS -l$lib -ldl $NEON_LIBS"
  5749. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5750. /* end confdefs.h. */
  5751. $ne__prologue
  5752. int
  5753. main ()
  5754. {
  5755. $ne__code
  5756. ;
  5757. return 0;
  5758. }
  5759. _ACEOF
  5760. if ac_fn_c_try_link "$LINENO"; then :
  5761. ne_cv_libsfor_SSL_library_init="-l$lib -ldl"; break
  5762. fi
  5763. rm -f core conftest.err conftest.$ac_objext \
  5764. conftest$ac_exeext conftest.$ac_ext
  5765. done
  5766. LIBS=$ne_sl_save_LIBS
  5767. fi
  5768. rm -f core conftest.err conftest.$ac_objext \
  5769. conftest$ac_exeext conftest.$ac_ext
  5770. fi
  5771. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ne_cv_libsfor_SSL_library_init" >&5
  5772. $as_echo "$ne_cv_libsfor_SSL_library_init" >&6; }
  5773. if test "$ne_cv_libsfor_SSL_library_init" = "not found"; then
  5774. as_fn_error $? "could not find library containing SSL_library_init" "$LINENO" 5
  5775. elif test "$ne_cv_libsfor_SSL_library_init" = "none needed"; then
  5776. :
  5777. else
  5778. NEON_LIBS="$ne_cv_libsfor_SSL_library_init $NEON_LIBS"
  5779. fi
  5780. NE_SSL_VERSION="(0.9.7 or later)"
  5781. else
  5782. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for openssl pkg-config data" >&5
  5783. $as_echo_n "checking for openssl pkg-config data... " >&6; }
  5784. if ${ne_cv_pkg_openssl+:} false; then :
  5785. $as_echo_n "(cached) " >&6
  5786. else
  5787. if $PKG_CONFIG openssl; then
  5788. ne_cv_pkg_openssl=yes
  5789. else
  5790. ne_cv_pkg_openssl=no
  5791. fi
  5792. fi
  5793. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ne_cv_pkg_openssl" >&5
  5794. $as_echo "$ne_cv_pkg_openssl" >&6; }
  5795. if test "$ne_cv_pkg_openssl" = "yes"; then
  5796. NE_SSL_CFLAGS=`$PKG_CONFIG --cflags openssl`
  5797. NE_SSL_LIBS=`$PKG_CONFIG --libs openssl`
  5798. NE_SSL_VERSION=`$PKG_CONFIG --modversion openssl`
  5799. : Using provided pkg-config data
  5800. { $as_echo "$as_me:${as_lineno-$LINENO}: using OpenSSL $NE_SSL_VERSION library configuration from pkg-config" >&5
  5801. $as_echo "$as_me: using OpenSSL $NE_SSL_VERSION library configuration from pkg-config" >&6;}
  5802. CPPFLAGS="$CPPFLAGS ${NE_SSL_CFLAGS}"
  5803. NEON_LIBS="$NEON_LIBS ${NE_SSL_LIBS}"
  5804. else
  5805. : No pkg-config for openssl provided
  5806. # Either OpenSSL library may require -ldl if built with dynamic engine support
  5807. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing RSA_new" >&5
  5808. $as_echo_n "checking for library containing RSA_new... " >&6; }
  5809. if ${ne_cv_libsfor_RSA_new+:} false; then :
  5810. $as_echo_n "(cached) " >&6
  5811. else
  5812. case $ne_cv_os_uname in
  5813. MINGW*)
  5814. ;;
  5815. *)
  5816. case RSA_new in
  5817. getaddrinfo)
  5818. ne__prologue="#include <netdb.h>"
  5819. ne__code="getaddrinfo(0,0,0,0);"
  5820. ;;
  5821. socket)
  5822. ne__prologue="#include <sys/socket.h>"
  5823. ne__code="socket(0,0,0);"
  5824. ;;
  5825. bindtextdomain)
  5826. ne__prologue="#include <libintl.h>"
  5827. ne__code="bindtextdomain(\"\",\"\");"
  5828. ;;
  5829. *)
  5830. ne__prologue=""
  5831. ne__code="RSA_new();"
  5832. ;;
  5833. esac
  5834. ;;
  5835. esac
  5836. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5837. /* end confdefs.h. */
  5838. $ne__prologue
  5839. int
  5840. main ()
  5841. {
  5842. $ne__code
  5843. ;
  5844. return 0;
  5845. }
  5846. _ACEOF
  5847. if ac_fn_c_try_link "$LINENO"; then :
  5848. ne_cv_libsfor_RSA_new="none needed"
  5849. else
  5850. ne_sl_save_LIBS=$LIBS
  5851. ne_cv_libsfor_RSA_new="not found"
  5852. for lib in crypto; do
  5853. case $ne_cv_os_uname in
  5854. MINGW*)
  5855. case $lib in
  5856. ws2_32)
  5857. ne__prologue="#include <winsock2.h>"
  5858. case RSA_new in
  5859. gethostbyname)
  5860. ne__code="gethostbyname(\"\")"
  5861. ;;
  5862. socket)
  5863. ne__code="socket(0,0,0);"
  5864. ;;
  5865. *)
  5866. ne__code="RSA_new();"
  5867. ;;
  5868. esac
  5869. ;;
  5870. *)
  5871. ne__prologue=""
  5872. ne__code=""
  5873. ;;
  5874. esac
  5875. ;;
  5876. *)
  5877. ;;
  5878. esac
  5879. LIBS="$ne_sl_save_LIBS -l$lib $NEON_LIBS"
  5880. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5881. /* end confdefs.h. */
  5882. $ne__prologue
  5883. int
  5884. main ()
  5885. {
  5886. $ne__code
  5887. ;
  5888. return 0;
  5889. }
  5890. _ACEOF
  5891. if ac_fn_c_try_link "$LINENO"; then :
  5892. ne_cv_libsfor_RSA_new="-l$lib"; break
  5893. fi
  5894. rm -f core conftest.err conftest.$ac_objext \
  5895. conftest$ac_exeext conftest.$ac_ext
  5896. LIBS="$ne_sl_save_LIBS -l$lib -ldl $NEON_LIBS"
  5897. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5898. /* end confdefs.h. */
  5899. $ne__prologue
  5900. int
  5901. main ()
  5902. {
  5903. $ne__code
  5904. ;
  5905. return 0;
  5906. }
  5907. _ACEOF
  5908. if ac_fn_c_try_link "$LINENO"; then :
  5909. ne_cv_libsfor_RSA_new="-l$lib -ldl"; break
  5910. fi
  5911. rm -f core conftest.err conftest.$ac_objext \
  5912. conftest$ac_exeext conftest.$ac_ext
  5913. done
  5914. LIBS=$ne_sl_save_LIBS
  5915. fi
  5916. rm -f core conftest.err conftest.$ac_objext \
  5917. conftest$ac_exeext conftest.$ac_ext
  5918. fi
  5919. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ne_cv_libsfor_RSA_new" >&5
  5920. $as_echo "$ne_cv_libsfor_RSA_new" >&6; }
  5921. if test "$ne_cv_libsfor_RSA_new" = "not found"; then
  5922. as_fn_error $? "could not find library containing RSA_new" "$LINENO" 5
  5923. elif test "$ne_cv_libsfor_RSA_new" = "none needed"; then
  5924. :
  5925. else
  5926. NEON_LIBS="$ne_cv_libsfor_RSA_new $NEON_LIBS"
  5927. fi
  5928. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing SSL_library_init" >&5
  5929. $as_echo_n "checking for library containing SSL_library_init... " >&6; }
  5930. if ${ne_cv_libsfor_SSL_library_init+:} false; then :
  5931. $as_echo_n "(cached) " >&6
  5932. else
  5933. case $ne_cv_os_uname in
  5934. MINGW*)
  5935. ;;
  5936. *)
  5937. case SSL_library_init in
  5938. getaddrinfo)
  5939. ne__prologue="#include <netdb.h>"
  5940. ne__code="getaddrinfo(0,0,0,0);"
  5941. ;;
  5942. socket)
  5943. ne__prologue="#include <sys/socket.h>"
  5944. ne__code="socket(0,0,0);"
  5945. ;;
  5946. bindtextdomain)
  5947. ne__prologue="#include <libintl.h>"
  5948. ne__code="bindtextdomain(\"\",\"\");"
  5949. ;;
  5950. *)
  5951. ne__prologue=""
  5952. ne__code="SSL_library_init();"
  5953. ;;
  5954. esac
  5955. ;;
  5956. esac
  5957. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5958. /* end confdefs.h. */
  5959. $ne__prologue
  5960. int
  5961. main ()
  5962. {
  5963. $ne__code
  5964. ;
  5965. return 0;
  5966. }
  5967. _ACEOF
  5968. if ac_fn_c_try_link "$LINENO"; then :
  5969. ne_cv_libsfor_SSL_library_init="none needed"
  5970. else
  5971. ne_sl_save_LIBS=$LIBS
  5972. ne_cv_libsfor_SSL_library_init="not found"
  5973. for lib in ssl; do
  5974. case $ne_cv_os_uname in
  5975. MINGW*)
  5976. case $lib in
  5977. ws2_32)
  5978. ne__prologue="#include <winsock2.h>"
  5979. case SSL_library_init in
  5980. gethostbyname)
  5981. ne__code="gethostbyname(\"\")"
  5982. ;;
  5983. socket)
  5984. ne__code="socket(0,0,0);"
  5985. ;;
  5986. *)
  5987. ne__code="SSL_library_init();"
  5988. ;;
  5989. esac
  5990. ;;
  5991. *)
  5992. ne__prologue=""
  5993. ne__code=""
  5994. ;;
  5995. esac
  5996. ;;
  5997. *)
  5998. ;;
  5999. esac
  6000. LIBS="$ne_sl_save_LIBS -l$lib $NEON_LIBS"
  6001. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6002. /* end confdefs.h. */
  6003. $ne__prologue
  6004. int
  6005. main ()
  6006. {
  6007. $ne__code
  6008. ;
  6009. return 0;
  6010. }
  6011. _ACEOF
  6012. if ac_fn_c_try_link "$LINENO"; then :
  6013. ne_cv_libsfor_SSL_library_init="-l$lib"; break
  6014. fi
  6015. rm -f core conftest.err conftest.$ac_objext \
  6016. conftest$ac_exeext conftest.$ac_ext
  6017. LIBS="$ne_sl_save_LIBS -l$lib -ldl $NEON_LIBS"
  6018. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6019. /* end confdefs.h. */
  6020. $ne__prologue
  6021. int
  6022. main ()
  6023. {
  6024. $ne__code
  6025. ;
  6026. return 0;
  6027. }
  6028. _ACEOF
  6029. if ac_fn_c_try_link "$LINENO"; then :
  6030. ne_cv_libsfor_SSL_library_init="-l$lib -ldl"; break
  6031. fi
  6032. rm -f core conftest.err conftest.$ac_objext \
  6033. conftest$ac_exeext conftest.$ac_ext
  6034. done
  6035. LIBS=$ne_sl_save_LIBS
  6036. fi
  6037. rm -f core conftest.err conftest.$ac_objext \
  6038. conftest$ac_exeext conftest.$ac_ext
  6039. fi
  6040. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ne_cv_libsfor_SSL_library_init" >&5
  6041. $as_echo "$ne_cv_libsfor_SSL_library_init" >&6; }
  6042. if test "$ne_cv_libsfor_SSL_library_init" = "not found"; then
  6043. as_fn_error $? "could not find library containing SSL_library_init" "$LINENO" 5
  6044. elif test "$ne_cv_libsfor_SSL_library_init" = "none needed"; then
  6045. :
  6046. else
  6047. NEON_LIBS="$ne_cv_libsfor_SSL_library_init $NEON_LIBS"
  6048. fi
  6049. NE_SSL_VERSION="(0.9.7 or later)"
  6050. fi
  6051. fi
  6052. for ac_header in openssl/ssl.h openssl/opensslv.h
  6053. do :
  6054. as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
  6055. ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
  6056. if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
  6057. cat >>confdefs.h <<_ACEOF
  6058. #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
  6059. _ACEOF
  6060. else
  6061. as_fn_error $? "OpenSSL headers not found, cannot enable SSL support" "$LINENO" 5
  6062. fi
  6063. done
  6064. { $as_echo "$as_me:${as_lineno-$LINENO}: checking OpenSSL version is >= 0.9.7" >&5
  6065. $as_echo_n "checking OpenSSL version is >= 0.9.7... " >&6; }
  6066. if ${ne_cv_lib_ssl097+:} false; then :
  6067. $as_echo_n "(cached) " >&6
  6068. else
  6069. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6070. /* end confdefs.h. */
  6071. #include <openssl/opensslv.h>
  6072. #if OPENSSL_VERSION_NUMBER >= 0x00907000L
  6073. good
  6074. #endif
  6075. _ACEOF
  6076. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  6077. $EGREP "good" >/dev/null 2>&1; then :
  6078. ne_cv_lib_ssl097=yes
  6079. else
  6080. ne_cv_lib_ssl097=no
  6081. fi
  6082. rm -f conftest*
  6083. fi
  6084. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ne_cv_lib_ssl097" >&5
  6085. $as_echo "$ne_cv_lib_ssl097" >&6; }
  6086. { $as_echo "$as_me:${as_lineno-$LINENO}: checking OpenSSL version is >= 1.1.0" >&5
  6087. $as_echo_n "checking OpenSSL version is >= 1.1.0... " >&6; }
  6088. if ${ne_cv_lib_ssl110+:} false; then :
  6089. $as_echo_n "(cached) " >&6
  6090. else
  6091. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6092. /* end confdefs.h. */
  6093. #include <openssl/opensslv.h>
  6094. #if OPENSSL_VERSION_NUMBER >= 0x10100000L
  6095. good
  6096. #endif
  6097. _ACEOF
  6098. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  6099. $EGREP "good" >/dev/null 2>&1; then :
  6100. ne_cv_lib_ssl110=yes
  6101. else
  6102. ne_cv_lib_ssl110=no
  6103. fi
  6104. rm -f conftest*
  6105. fi
  6106. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ne_cv_lib_ssl110" >&5
  6107. $as_echo "$ne_cv_lib_ssl110" >&6; }
  6108. if test "$ne_cv_lib_ssl110" = "yes"; then
  6109. NE_FLAG_SSL=yes
  6110. $as_echo "#define NE_HAVE_SSL 1" >>confdefs.h
  6111. ne_SSL_message="SSL support enabled, using OpenSSL $NE_SSL_VERSION"
  6112. { $as_echo "$as_me:${as_lineno-$LINENO}: SSL support enabled, using OpenSSL $NE_SSL_VERSION" >&5
  6113. $as_echo "$as_me: SSL support enabled, using OpenSSL $NE_SSL_VERSION" >&6;}
  6114. $as_echo "#define HAVE_OPENSSL11 1" >>confdefs.h
  6115. elif test "$ne_cv_lib_ssl097" = "yes"; then
  6116. # Enable EGD support if using 0.9.7 or newer
  6117. { $as_echo "$as_me:${as_lineno-$LINENO}: OpenSSL >= 0.9.7; EGD support not needed in neon" >&5
  6118. $as_echo "$as_me: OpenSSL >= 0.9.7; EGD support not needed in neon" >&6;}
  6119. NE_FLAG_SSL=yes
  6120. $as_echo "#define NE_HAVE_SSL 1" >>confdefs.h
  6121. ne_SSL_message="SSL support enabled, using OpenSSL $NE_SSL_VERSION"
  6122. { $as_echo "$as_me:${as_lineno-$LINENO}: SSL support enabled, using OpenSSL $NE_SSL_VERSION" >&5
  6123. $as_echo "$as_me: SSL support enabled, using OpenSSL $NE_SSL_VERSION" >&6;}
  6124. ne_cf_save_LIBS=$LIBS
  6125. LIBS="$LIBS $NEON_LIBS"
  6126. for ac_func in CRYPTO_set_idptr_callback SSL_SESSION_cmp
  6127. do :
  6128. as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
  6129. ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
  6130. if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
  6131. cat >>confdefs.h <<_ACEOF
  6132. #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
  6133. _ACEOF
  6134. fi
  6135. done
  6136. LIBS=$ne_cf_save_LIBS
  6137. else
  6138. # Fail if OpenSSL is older than 0.9.6
  6139. { $as_echo "$as_me:${as_lineno-$LINENO}: checking OpenSSL version is >= 0.9.6" >&5
  6140. $as_echo_n "checking OpenSSL version is >= 0.9.6... " >&6; }
  6141. if ${ne_cv_lib_ssl096+:} false; then :
  6142. $as_echo_n "(cached) " >&6
  6143. else
  6144. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6145. /* end confdefs.h. */
  6146. #include <openssl/opensslv.h>
  6147. #if OPENSSL_VERSION_NUMBER >= 0x00906000L
  6148. good
  6149. #endif
  6150. _ACEOF
  6151. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  6152. $EGREP "good" >/dev/null 2>&1; then :
  6153. ne_cv_lib_ssl096=yes
  6154. else
  6155. ne_cv_lib_ssl096=no
  6156. fi
  6157. rm -f conftest*
  6158. fi
  6159. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ne_cv_lib_ssl096" >&5
  6160. $as_echo "$ne_cv_lib_ssl096" >&6; }
  6161. if test "$ne_cv_lib_ssl096" != "yes"; then
  6162. as_fn_error $? "OpenSSL 0.9.6 or later is required" "$LINENO" 5
  6163. fi
  6164. NE_FLAG_SSL=yes
  6165. $as_echo "#define NE_HAVE_SSL 1" >>confdefs.h
  6166. ne_SSL_message="SSL support enabled, using OpenSSL (0.9.6 or later)"
  6167. { $as_echo "$as_me:${as_lineno-$LINENO}: SSL support enabled, using OpenSSL (0.9.6 or later)" >&5
  6168. $as_echo "$as_me: SSL support enabled, using OpenSSL (0.9.6 or later)" >&6;}
  6169. case "$with_egd" in
  6170. yes|no) ne_cv_lib_sslegd=$with_egd ;;
  6171. /*) ne_cv_lib_sslegd=yes
  6172. cat >>confdefs.h <<_ACEOF
  6173. #define EGD_PATH "$with_egd"
  6174. _ACEOF
  6175. ;;
  6176. *) # Guess whether EGD support is needed
  6177. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable EGD support" >&5
  6178. $as_echo_n "checking whether to enable EGD support... " >&6; }
  6179. if ${ne_cv_lib_sslegd+:} false; then :
  6180. $as_echo_n "(cached) " >&6
  6181. else
  6182. if test -r /dev/random || test -r /dev/urandom; then
  6183. ne_cv_lib_sslegd=no
  6184. else
  6185. ne_cv_lib_sslegd=yes
  6186. fi
  6187. fi
  6188. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ne_cv_lib_sslegd" >&5
  6189. $as_echo "$ne_cv_lib_sslegd" >&6; }
  6190. ;;
  6191. esac
  6192. if test "$ne_cv_lib_sslegd" = "yes"; then
  6193. { $as_echo "$as_me:${as_lineno-$LINENO}: EGD support enabled for seeding OpenSSL PRNG" >&5
  6194. $as_echo "$as_me: EGD support enabled for seeding OpenSSL PRNG" >&6;}
  6195. $as_echo "#define ENABLE_EGD 1" >>confdefs.h
  6196. fi
  6197. fi
  6198. $as_echo "#define HAVE_OPENSSL 1" >>confdefs.h
  6199. NEON_EXTRAOBJS="$NEON_EXTRAOBJS ne_openssl"
  6200. $as_echo "#define HAVE_NTLM 1" >>confdefs.h
  6201. ;;
  6202. gnutls)
  6203. # Extract the first word of "pkg-config", so it can be a program name with args.
  6204. set dummy pkg-config; ac_word=$2
  6205. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6206. $as_echo_n "checking for $ac_word... " >&6; }
  6207. if ${ac_cv_path_PKG_CONFIG+:} false; then :
  6208. $as_echo_n "(cached) " >&6
  6209. else
  6210. case $PKG_CONFIG in
  6211. [\\/]* | ?:[\\/]*)
  6212. ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
  6213. ;;
  6214. *)
  6215. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6216. for as_dir in $PATH
  6217. do
  6218. IFS=$as_save_IFS
  6219. test -z "$as_dir" && as_dir=.
  6220. for ac_exec_ext in '' $ac_executable_extensions; do
  6221. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  6222. ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
  6223. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6224. break 2
  6225. fi
  6226. done
  6227. done
  6228. IFS=$as_save_IFS
  6229. test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
  6230. ;;
  6231. esac
  6232. fi
  6233. PKG_CONFIG=$ac_cv_path_PKG_CONFIG
  6234. if test -n "$PKG_CONFIG"; then
  6235. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
  6236. $as_echo "$PKG_CONFIG" >&6; }
  6237. else
  6238. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6239. $as_echo "no" >&6; }
  6240. fi
  6241. if test "$PKG_CONFIG" = "no"; then
  6242. : Not using pkg-config
  6243. # Fall back on libgnutls-config script
  6244. # Extract the first word of "libgnutls-config", so it can be a program name with args.
  6245. set dummy libgnutls-config; ac_word=$2
  6246. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6247. $as_echo_n "checking for $ac_word... " >&6; }
  6248. if ${ac_cv_path_GNUTLS_CONFIG+:} false; then :
  6249. $as_echo_n "(cached) " >&6
  6250. else
  6251. case $GNUTLS_CONFIG in
  6252. [\\/]* | ?:[\\/]*)
  6253. ac_cv_path_GNUTLS_CONFIG="$GNUTLS_CONFIG" # Let the user override the test with a path.
  6254. ;;
  6255. *)
  6256. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6257. for as_dir in $PATH
  6258. do
  6259. IFS=$as_save_IFS
  6260. test -z "$as_dir" && as_dir=.
  6261. for ac_exec_ext in '' $ac_executable_extensions; do
  6262. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  6263. ac_cv_path_GNUTLS_CONFIG="$as_dir/$ac_word$ac_exec_ext"
  6264. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6265. break 2
  6266. fi
  6267. done
  6268. done
  6269. IFS=$as_save_IFS
  6270. test -z "$ac_cv_path_GNUTLS_CONFIG" && ac_cv_path_GNUTLS_CONFIG="no"
  6271. ;;
  6272. esac
  6273. fi
  6274. GNUTLS_CONFIG=$ac_cv_path_GNUTLS_CONFIG
  6275. if test -n "$GNUTLS_CONFIG"; then
  6276. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GNUTLS_CONFIG" >&5
  6277. $as_echo "$GNUTLS_CONFIG" >&6; }
  6278. else
  6279. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6280. $as_echo "no" >&6; }
  6281. fi
  6282. if test "$GNUTLS_CONFIG" = "no"; then
  6283. as_fn_error $? "could not find libgnutls-config in \$PATH" "$LINENO" 5
  6284. fi
  6285. CPPFLAGS="$CPPFLAGS `$GNUTLS_CONFIG --cflags`"
  6286. NEON_LIBS="$NEON_LIBS `$GNUTLS_CONFIG --libs`"
  6287. NE_SSL_VERSION="`$GNUTLS_CONFIG --version`"
  6288. else
  6289. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gnutls pkg-config data" >&5
  6290. $as_echo_n "checking for gnutls pkg-config data... " >&6; }
  6291. if ${ne_cv_pkg_gnutls+:} false; then :
  6292. $as_echo_n "(cached) " >&6
  6293. else
  6294. if $PKG_CONFIG gnutls; then
  6295. ne_cv_pkg_gnutls=yes
  6296. else
  6297. ne_cv_pkg_gnutls=no
  6298. fi
  6299. fi
  6300. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ne_cv_pkg_gnutls" >&5
  6301. $as_echo "$ne_cv_pkg_gnutls" >&6; }
  6302. if test "$ne_cv_pkg_gnutls" = "yes"; then
  6303. NE_SSL_CFLAGS=`$PKG_CONFIG --cflags gnutls`
  6304. NE_SSL_LIBS=`$PKG_CONFIG --libs gnutls`
  6305. NE_SSL_VERSION=`$PKG_CONFIG --modversion gnutls`
  6306. : Using provided pkg-config data
  6307. { $as_echo "$as_me:${as_lineno-$LINENO}: using GnuTLS configuration from pkg-config" >&5
  6308. $as_echo "$as_me: using GnuTLS configuration from pkg-config" >&6;}
  6309. CPPFLAGS="$CPPFLAGS ${NE_SSL_CFLAGS}"
  6310. NEON_LIBS="$NEON_LIBS ${NE_SSL_LIBS}"
  6311. else
  6312. : No pkg-config for gnutls provided
  6313. # Fall back on libgnutls-config script
  6314. # Extract the first word of "libgnutls-config", so it can be a program name with args.
  6315. set dummy libgnutls-config; ac_word=$2
  6316. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6317. $as_echo_n "checking for $ac_word... " >&6; }
  6318. if ${ac_cv_path_GNUTLS_CONFIG+:} false; then :
  6319. $as_echo_n "(cached) " >&6
  6320. else
  6321. case $GNUTLS_CONFIG in
  6322. [\\/]* | ?:[\\/]*)
  6323. ac_cv_path_GNUTLS_CONFIG="$GNUTLS_CONFIG" # Let the user override the test with a path.
  6324. ;;
  6325. *)
  6326. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6327. for as_dir in $PATH
  6328. do
  6329. IFS=$as_save_IFS
  6330. test -z "$as_dir" && as_dir=.
  6331. for ac_exec_ext in '' $ac_executable_extensions; do
  6332. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  6333. ac_cv_path_GNUTLS_CONFIG="$as_dir/$ac_word$ac_exec_ext"
  6334. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6335. break 2
  6336. fi
  6337. done
  6338. done
  6339. IFS=$as_save_IFS
  6340. test -z "$ac_cv_path_GNUTLS_CONFIG" && ac_cv_path_GNUTLS_CONFIG="no"
  6341. ;;
  6342. esac
  6343. fi
  6344. GNUTLS_CONFIG=$ac_cv_path_GNUTLS_CONFIG
  6345. if test -n "$GNUTLS_CONFIG"; then
  6346. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GNUTLS_CONFIG" >&5
  6347. $as_echo "$GNUTLS_CONFIG" >&6; }
  6348. else
  6349. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6350. $as_echo "no" >&6; }
  6351. fi
  6352. if test "$GNUTLS_CONFIG" = "no"; then
  6353. as_fn_error $? "could not find libgnutls-config in \$PATH" "$LINENO" 5
  6354. fi
  6355. CPPFLAGS="$CPPFLAGS `$GNUTLS_CONFIG --cflags`"
  6356. NEON_LIBS="$NEON_LIBS `$GNUTLS_CONFIG --libs`"
  6357. NE_SSL_VERSION="`$GNUTLS_CONFIG --version`"
  6358. fi
  6359. fi
  6360. ac_fn_c_check_header_mongrel "$LINENO" "gnutls/gnutls.h" "ac_cv_header_gnutls_gnutls_h" "$ac_includes_default"
  6361. if test "x$ac_cv_header_gnutls_gnutls_h" = xyes; then :
  6362. else
  6363. as_fn_error $? "could not find gnutls/gnutls.h in include path" "$LINENO" 5
  6364. fi
  6365. NE_FLAG_SSL=yes
  6366. $as_echo "#define NE_HAVE_SSL 1" >>confdefs.h
  6367. ne_SSL_message="SSL support enabled, using GnuTLS $NE_SSL_VERSION"
  6368. { $as_echo "$as_me:${as_lineno-$LINENO}: SSL support enabled, using GnuTLS $NE_SSL_VERSION" >&5
  6369. $as_echo "$as_me: SSL support enabled, using GnuTLS $NE_SSL_VERSION" >&6;}
  6370. NEON_EXTRAOBJS="$NEON_EXTRAOBJS ne_gnutls"
  6371. $as_echo "#define HAVE_GNUTLS 1" >>confdefs.h
  6372. # Check for functions in later releases
  6373. ne_cf_save_LIBS=$LIBS
  6374. LIBS="$LIBS $NEON_LIBS"
  6375. for ac_func in gnutls_session_get_data2 gnutls_x509_dn_get_rdn_ava \
  6376. gnutls_certificate_get_issuer \
  6377. gnutls_certificate_get_x509_cas \
  6378. gnutls_x509_crt_sign2 \
  6379. gnutls_certificate_set_retrieve_function2 \
  6380. gnutls_privkey_import_ext
  6381. do :
  6382. as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
  6383. ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
  6384. if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
  6385. cat >>confdefs.h <<_ACEOF
  6386. #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
  6387. _ACEOF
  6388. fi
  6389. done
  6390. LIBS=$ne_cf_save_LIBS
  6391. # fail if gnutls_x509_crt_sign2 is not found (it was introduced in 1.2.0, which is required)
  6392. if test x${ac_cv_func_gnutls_x509_crt_sign2} != xyes; then
  6393. as_fn_error $? "GnuTLS version predates gnutls_x509_crt_sign2, newer version required (at least 1.2.0)" "$LINENO" 5
  6394. fi
  6395. # Check for iconv support if using the new RDN access functions:
  6396. if test ${ac_cv_func_gnutls_x509_dn_get_rdn_ava}X${ac_cv_header_iconv_h} = yesXyes; then
  6397. for ac_func in iconv
  6398. do :
  6399. ac_fn_c_check_func "$LINENO" "iconv" "ac_cv_func_iconv"
  6400. if test "x$ac_cv_func_iconv" = xyes; then :
  6401. cat >>confdefs.h <<_ACEOF
  6402. #define HAVE_ICONV 1
  6403. _ACEOF
  6404. fi
  6405. done
  6406. fi
  6407. ;;
  6408. *) # Default to off; only create crypto-enabled binaries if requested.
  6409. NE_FLAG_SSL=no
  6410. ne_SSL_message="SSL support is not enabled"
  6411. { $as_echo "$as_me:${as_lineno-$LINENO}: SSL support is not enabled" >&5
  6412. $as_echo "$as_me: SSL support is not enabled" >&6;}
  6413. NE_FLAG_TS_SSL=no
  6414. ne_TS_SSL_message="Thread-safe SSL support is not enabled"
  6415. { $as_echo "$as_me:${as_lineno-$LINENO}: Thread-safe SSL support is not enabled" >&5
  6416. $as_echo "$as_me: Thread-safe SSL support is not enabled" >&6;}
  6417. NEON_EXTRAOBJS="$NEON_EXTRAOBJS ne_stubssl"
  6418. ;;
  6419. esac
  6420. # Check whether --with-ca-bundle was given.
  6421. if test "${with_ca_bundle+set}" = set; then :
  6422. withval=$with_ca_bundle;
  6423. else
  6424. with_ca_bundle=no
  6425. fi
  6426. case ${NE_FLAG_SSL}-${with_ca_bundle} in
  6427. *-no) ;;
  6428. yes-*)
  6429. cat >>confdefs.h <<_ACEOF
  6430. #define NE_SSL_CA_BUNDLE "${with_ca_bundle}"
  6431. _ACEOF
  6432. { $as_echo "$as_me:${as_lineno-$LINENO}: Using ${with_ca_bundle} as default SSL CA bundle" >&5
  6433. $as_echo "$as_me: Using ${with_ca_bundle} as default SSL CA bundle" >&6;}
  6434. ;;
  6435. esac
  6436. # Check whether --enable-threadsafe-ssl was given.
  6437. if test "${enable_threadsafe_ssl+set}" = set; then :
  6438. enableval=$enable_threadsafe_ssl;
  6439. else
  6440. enable_threadsafe_ssl=no
  6441. fi
  6442. case ${enable_threadsafe_ssl}X${ne_cv_lib_ssl110} in
  6443. *Xyes)
  6444. NE_FLAG_TS_SSL=yes
  6445. $as_echo "#define NE_HAVE_TS_SSL 1" >>confdefs.h
  6446. ne_TS_SSL_message="OpenSSL is natively thread-safe"
  6447. { $as_echo "$as_me:${as_lineno-$LINENO}: OpenSSL is natively thread-safe" >&5
  6448. $as_echo "$as_me: OpenSSL is natively thread-safe" >&6;}
  6449. ;;
  6450. posixX*|yesX*)
  6451. ne_pthr_ok=yes
  6452. for ac_func in pthread_mutex_init pthread_mutex_lock
  6453. do :
  6454. as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
  6455. ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
  6456. if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
  6457. cat >>confdefs.h <<_ACEOF
  6458. #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
  6459. _ACEOF
  6460. else
  6461. ne_pthr_ok=no
  6462. fi
  6463. done
  6464. if test "${ne_pthr_ok}" = "no"; then
  6465. as_fn_error $? "could not find POSIX mutex interfaces; (try CC=\"${CC} -pthread\"?)" "$LINENO" 5
  6466. fi
  6467. NE_FLAG_TS_SSL=yes
  6468. $as_echo "#define NE_HAVE_TS_SSL 1" >>confdefs.h
  6469. ne_TS_SSL_message="Thread-safe SSL supported using POSIX threads"
  6470. { $as_echo "$as_me:${as_lineno-$LINENO}: Thread-safe SSL supported using POSIX threads" >&5
  6471. $as_echo "$as_me: Thread-safe SSL supported using POSIX threads" >&6;}
  6472. ;;
  6473. *)
  6474. NE_FLAG_TS_SSL=no
  6475. ne_TS_SSL_message="Thread-safe SSL not supported"
  6476. { $as_echo "$as_me:${as_lineno-$LINENO}: Thread-safe SSL not supported" >&5
  6477. $as_echo "$as_me: Thread-safe SSL not supported" >&6;}
  6478. ;;
  6479. esac
  6480. case ${with_pakchois}X${ac_cv_func_gnutls_privkey_import_ext}Y${ne_cv_lib_ssl097} in
  6481. noX*Y*) ;;
  6482. *X*Yyes|*XyesY*)
  6483. # PKCS#11... ho!
  6484. # Extract the first word of "pkg-config", so it can be a program name with args.
  6485. set dummy pkg-config; ac_word=$2
  6486. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6487. $as_echo_n "checking for $ac_word... " >&6; }
  6488. if ${ac_cv_path_PKG_CONFIG+:} false; then :
  6489. $as_echo_n "(cached) " >&6
  6490. else
  6491. case $PKG_CONFIG in
  6492. [\\/]* | ?:[\\/]*)
  6493. ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
  6494. ;;
  6495. *)
  6496. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6497. for as_dir in $PATH
  6498. do
  6499. IFS=$as_save_IFS
  6500. test -z "$as_dir" && as_dir=.
  6501. for ac_exec_ext in '' $ac_executable_extensions; do
  6502. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  6503. ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
  6504. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6505. break 2
  6506. fi
  6507. done
  6508. done
  6509. IFS=$as_save_IFS
  6510. test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
  6511. ;;
  6512. esac
  6513. fi
  6514. PKG_CONFIG=$ac_cv_path_PKG_CONFIG
  6515. if test -n "$PKG_CONFIG"; then
  6516. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
  6517. $as_echo "$PKG_CONFIG" >&6; }
  6518. else
  6519. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6520. $as_echo "no" >&6; }
  6521. fi
  6522. if test "$PKG_CONFIG" = "no"; then
  6523. : Not using pkg-config
  6524. { $as_echo "$as_me:${as_lineno-$LINENO}: pakchois library not found; no PKCS#11 support" >&5
  6525. $as_echo "$as_me: pakchois library not found; no PKCS#11 support" >&6;}
  6526. else
  6527. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pakchois pkg-config data" >&5
  6528. $as_echo_n "checking for pakchois pkg-config data... " >&6; }
  6529. if ${ne_cv_pkg_pakchois+:} false; then :
  6530. $as_echo_n "(cached) " >&6
  6531. else
  6532. if $PKG_CONFIG pakchois; then
  6533. ne_cv_pkg_pakchois=yes
  6534. else
  6535. ne_cv_pkg_pakchois=no
  6536. fi
  6537. fi
  6538. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ne_cv_pkg_pakchois" >&5
  6539. $as_echo "$ne_cv_pkg_pakchois" >&6; }
  6540. if test "$ne_cv_pkg_pakchois" = "yes"; then
  6541. NE_PK11_CFLAGS=`$PKG_CONFIG --cflags pakchois`
  6542. NE_PK11_LIBS=`$PKG_CONFIG --libs pakchois`
  6543. NE_PK11_VERSION=`$PKG_CONFIG --modversion pakchois`
  6544. : Using provided pkg-config data
  6545. { $as_echo "$as_me:${as_lineno-$LINENO}: using pakchois $NE_PK11_VERSION for PKCS#11 support" >&5
  6546. $as_echo "$as_me: using pakchois $NE_PK11_VERSION for PKCS#11 support" >&6;}
  6547. $as_echo "#define HAVE_PAKCHOIS 1" >>confdefs.h
  6548. CPPFLAGS="$CPPFLAGS ${NE_PK11_CFLAGS}"
  6549. NEON_LIBS="${NEON_LIBS} ${NE_PK11_LIBS}"
  6550. else
  6551. : No pkg-config for pakchois provided
  6552. { $as_echo "$as_me:${as_lineno-$LINENO}: pakchois library not found; no PKCS#11 support" >&5
  6553. $as_echo "$as_me: pakchois library not found; no PKCS#11 support" >&6;}
  6554. fi
  6555. fi
  6556. ;;
  6557. esac
  6558. # Check whether --with-gssapi was given.
  6559. if test "${with_gssapi+set}" = set; then :
  6560. withval=$with_gssapi;
  6561. fi
  6562. if test "$with_gssapi" != "no"; then
  6563. ne_save_CFLAGS=$CFLAGS
  6564. ne_save_LIBS=$NEON_LIBS
  6565. # Extract the first word of "pkg-config", so it can be a program name with args.
  6566. set dummy pkg-config; ac_word=$2
  6567. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6568. $as_echo_n "checking for $ac_word... " >&6; }
  6569. if ${ac_cv_path_PKG_CONFIG+:} false; then :
  6570. $as_echo_n "(cached) " >&6
  6571. else
  6572. case $PKG_CONFIG in
  6573. [\\/]* | ?:[\\/]*)
  6574. ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
  6575. ;;
  6576. *)
  6577. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6578. for as_dir in $PATH
  6579. do
  6580. IFS=$as_save_IFS
  6581. test -z "$as_dir" && as_dir=.
  6582. for ac_exec_ext in '' $ac_executable_extensions; do
  6583. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  6584. ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
  6585. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6586. break 2
  6587. fi
  6588. done
  6589. done
  6590. IFS=$as_save_IFS
  6591. test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
  6592. ;;
  6593. esac
  6594. fi
  6595. PKG_CONFIG=$ac_cv_path_PKG_CONFIG
  6596. if test -n "$PKG_CONFIG"; then
  6597. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
  6598. $as_echo "$PKG_CONFIG" >&6; }
  6599. else
  6600. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6601. $as_echo "no" >&6; }
  6602. fi
  6603. if test "$PKG_CONFIG" = "no"; then
  6604. : Not using pkg-config
  6605. # Extract the first word of "krb5-config", so it can be a program name with args.
  6606. set dummy krb5-config; ac_word=$2
  6607. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6608. $as_echo_n "checking for $ac_word... " >&6; }
  6609. if ${ac_cv_path_KRB5_CONF_TOOL+:} false; then :
  6610. $as_echo_n "(cached) " >&6
  6611. else
  6612. case $KRB5_CONF_TOOL in
  6613. [\\/]* | ?:[\\/]*)
  6614. ac_cv_path_KRB5_CONF_TOOL="$KRB5_CONF_TOOL" # Let the user override the test with a path.
  6615. ;;
  6616. *)
  6617. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6618. as_dummy="$PATH:/usr/kerberos/bin"
  6619. for as_dir in $as_dummy
  6620. do
  6621. IFS=$as_save_IFS
  6622. test -z "$as_dir" && as_dir=.
  6623. for ac_exec_ext in '' $ac_executable_extensions; do
  6624. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  6625. ac_cv_path_KRB5_CONF_TOOL="$as_dir/$ac_word$ac_exec_ext"
  6626. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6627. break 2
  6628. fi
  6629. done
  6630. done
  6631. IFS=$as_save_IFS
  6632. test -z "$ac_cv_path_KRB5_CONF_TOOL" && ac_cv_path_KRB5_CONF_TOOL="none"
  6633. ;;
  6634. esac
  6635. fi
  6636. KRB5_CONF_TOOL=$ac_cv_path_KRB5_CONF_TOOL
  6637. if test -n "$KRB5_CONF_TOOL"; then
  6638. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $KRB5_CONF_TOOL" >&5
  6639. $as_echo "$KRB5_CONF_TOOL" >&6; }
  6640. else
  6641. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6642. $as_echo "no" >&6; }
  6643. fi
  6644. if test "x$KRB5_CONF_TOOL" != "xnone"; then
  6645. NE_GSSAPI_LIBS="`${KRB5_CONF_TOOL} --libs gssapi`"
  6646. NE_GSSAPI_CFLAGS="`${KRB5_CONF_TOOL} --cflags gssapi`"
  6647. NE_GSSAPI_VERSION="`${KRB5_CONF_TOOL} --version`"
  6648. fi
  6649. else
  6650. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for krb5-gssapi pkg-config data" >&5
  6651. $as_echo_n "checking for krb5-gssapi pkg-config data... " >&6; }
  6652. if ${ne_cv_pkg_krb5_gssapi+:} false; then :
  6653. $as_echo_n "(cached) " >&6
  6654. else
  6655. if $PKG_CONFIG krb5-gssapi; then
  6656. ne_cv_pkg_krb5_gssapi=yes
  6657. else
  6658. ne_cv_pkg_krb5_gssapi=no
  6659. fi
  6660. fi
  6661. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ne_cv_pkg_krb5_gssapi" >&5
  6662. $as_echo "$ne_cv_pkg_krb5_gssapi" >&6; }
  6663. if test "$ne_cv_pkg_krb5_gssapi" = "yes"; then
  6664. NE_GSSAPI_CFLAGS=`$PKG_CONFIG --cflags krb5-gssapi`
  6665. NE_GSSAPI_LIBS=`$PKG_CONFIG --libs krb5-gssapi`
  6666. NE_GSSAPI_VERSION=`$PKG_CONFIG --modversion krb5-gssapi`
  6667. : Using provided pkg-config data
  6668. { $as_echo "$as_me:${as_lineno-$LINENO}: using GSSAPI configuration from pkg-config" >&5
  6669. $as_echo "$as_me: using GSSAPI configuration from pkg-config" >&6;}
  6670. KRB5_CONF_TOOL=pkgconf
  6671. else
  6672. : No pkg-config for krb5-gssapi provided
  6673. # Extract the first word of "krb5-config", so it can be a program name with args.
  6674. set dummy krb5-config; ac_word=$2
  6675. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6676. $as_echo_n "checking for $ac_word... " >&6; }
  6677. if ${ac_cv_path_KRB5_CONF_TOOL+:} false; then :
  6678. $as_echo_n "(cached) " >&6
  6679. else
  6680. case $KRB5_CONF_TOOL in
  6681. [\\/]* | ?:[\\/]*)
  6682. ac_cv_path_KRB5_CONF_TOOL="$KRB5_CONF_TOOL" # Let the user override the test with a path.
  6683. ;;
  6684. *)
  6685. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6686. as_dummy="$PATH:/usr/kerberos/bin"
  6687. for as_dir in $as_dummy
  6688. do
  6689. IFS=$as_save_IFS
  6690. test -z "$as_dir" && as_dir=.
  6691. for ac_exec_ext in '' $ac_executable_extensions; do
  6692. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  6693. ac_cv_path_KRB5_CONF_TOOL="$as_dir/$ac_word$ac_exec_ext"
  6694. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6695. break 2
  6696. fi
  6697. done
  6698. done
  6699. IFS=$as_save_IFS
  6700. test -z "$ac_cv_path_KRB5_CONF_TOOL" && ac_cv_path_KRB5_CONF_TOOL="none"
  6701. ;;
  6702. esac
  6703. fi
  6704. KRB5_CONF_TOOL=$ac_cv_path_KRB5_CONF_TOOL
  6705. if test -n "$KRB5_CONF_TOOL"; then
  6706. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $KRB5_CONF_TOOL" >&5
  6707. $as_echo "$KRB5_CONF_TOOL" >&6; }
  6708. else
  6709. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6710. $as_echo "no" >&6; }
  6711. fi
  6712. if test "x$KRB5_CONF_TOOL" != "xnone"; then
  6713. NE_GSSAPI_LIBS="`${KRB5_CONF_TOOL} --libs gssapi`"
  6714. NE_GSSAPI_CFLAGS="`${KRB5_CONF_TOOL} --cflags gssapi`"
  6715. NE_GSSAPI_VERSION="`${KRB5_CONF_TOOL} --version`"
  6716. fi
  6717. fi
  6718. fi
  6719. else
  6720. KRB5_CONF_TOOL=none
  6721. fi
  6722. if test "x$KRB5_CONF_TOOL" != "xnone"; then
  6723. CFLAGS="$CFLAGS ${NE_GSSAPI_CFLAGS}"
  6724. NEON_LIBS="${NEON_LIBS} ${NE_GSSAPI_LIBS}"
  6725. # MIT and Heimdal put gssapi.h in different places
  6726. for ac_header in gssapi/gssapi.h gssapi.h
  6727. do :
  6728. as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
  6729. ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
  6730. if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
  6731. cat >>confdefs.h <<_ACEOF
  6732. #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
  6733. _ACEOF
  6734. ne_cf_save_LIBS=$LIBS
  6735. LIBS="$LIBS $NEON_LIBS"
  6736. for ac_func in gss_init_sec_context
  6737. do :
  6738. ac_fn_c_check_func "$LINENO" "gss_init_sec_context" "ac_cv_func_gss_init_sec_context"
  6739. if test "x$ac_cv_func_gss_init_sec_context" = xyes; then :
  6740. cat >>confdefs.h <<_ACEOF
  6741. #define HAVE_GSS_INIT_SEC_CONTEXT 1
  6742. _ACEOF
  6743. ne_save_CFLAGS=$CFLAGS
  6744. ne_save_LIBS=$NEON_LIBS
  6745. { $as_echo "$as_me:${as_lineno-$LINENO}: GSSAPI authentication support enabled, using $NE_GSSAPI_VERSION" >&5
  6746. $as_echo "$as_me: GSSAPI authentication support enabled, using $NE_GSSAPI_VERSION" >&6;}
  6747. $as_echo "#define HAVE_GSSAPI 1" >>confdefs.h
  6748. for ac_header in gssapi/gssapi_generic.h
  6749. do :
  6750. ac_fn_c_check_header_mongrel "$LINENO" "gssapi/gssapi_generic.h" "ac_cv_header_gssapi_gssapi_generic_h" "$ac_includes_default"
  6751. if test "x$ac_cv_header_gssapi_gssapi_generic_h" = xyes; then :
  6752. cat >>confdefs.h <<_ACEOF
  6753. #define HAVE_GSSAPI_GSSAPI_GENERIC_H 1
  6754. _ACEOF
  6755. fi
  6756. done
  6757. # Older versions of MIT Kerberos lack GSS_C_NT_HOSTBASED_SERVICE
  6758. 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
  6759. #include <gssapi/gssapi.h>
  6760. #else
  6761. #include <gssapi.h>
  6762. #endif
  6763. "
  6764. if test "x$ac_cv_have_decl_GSS_C_NT_HOSTBASED_SERVICE" = xyes; then :
  6765. else
  6766. $as_echo "#define GSS_C_NT_HOSTBASED_SERVICE gss_nt_service_name" >>confdefs.h
  6767. fi
  6768. fi
  6769. done
  6770. LIBS=$ne_cf_save_LIBS
  6771. break
  6772. fi
  6773. done
  6774. CFLAGS=$ne_save_CFLAGS
  6775. NEON_LIBS=$ne_save_LIBS
  6776. fi
  6777. # Check whether --with-libproxy was given.
  6778. if test "${with_libproxy+set}" = set; then :
  6779. withval=$with_libproxy;
  6780. fi
  6781. if test "x$with_libproxy" != "xno"; then
  6782. # Extract the first word of "pkg-config", so it can be a program name with args.
  6783. set dummy pkg-config; ac_word=$2
  6784. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6785. $as_echo_n "checking for $ac_word... " >&6; }
  6786. if ${ac_cv_path_PKG_CONFIG+:} false; then :
  6787. $as_echo_n "(cached) " >&6
  6788. else
  6789. case $PKG_CONFIG in
  6790. [\\/]* | ?:[\\/]*)
  6791. ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
  6792. ;;
  6793. *)
  6794. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6795. for as_dir in $PATH
  6796. do
  6797. IFS=$as_save_IFS
  6798. test -z "$as_dir" && as_dir=.
  6799. for ac_exec_ext in '' $ac_executable_extensions; do
  6800. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  6801. ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
  6802. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6803. break 2
  6804. fi
  6805. done
  6806. done
  6807. IFS=$as_save_IFS
  6808. test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
  6809. ;;
  6810. esac
  6811. fi
  6812. PKG_CONFIG=$ac_cv_path_PKG_CONFIG
  6813. if test -n "$PKG_CONFIG"; then
  6814. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
  6815. $as_echo "$PKG_CONFIG" >&6; }
  6816. else
  6817. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6818. $as_echo "no" >&6; }
  6819. fi
  6820. if test "$PKG_CONFIG" = "no"; then
  6821. : Not using pkg-config
  6822. NE_FLAG_LIBPXY=no
  6823. ne_LIBPXY_message="libproxy support not enabled"
  6824. { $as_echo "$as_me:${as_lineno-$LINENO}: libproxy support not enabled" >&5
  6825. $as_echo "$as_me: libproxy support not enabled" >&6;}
  6826. else
  6827. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libproxy-1.0 pkg-config data" >&5
  6828. $as_echo_n "checking for libproxy-1.0 pkg-config data... " >&6; }
  6829. if ${ne_cv_pkg_libproxy_1_0+:} false; then :
  6830. $as_echo_n "(cached) " >&6
  6831. else
  6832. if $PKG_CONFIG libproxy-1.0; then
  6833. ne_cv_pkg_libproxy_1_0=yes
  6834. else
  6835. ne_cv_pkg_libproxy_1_0=no
  6836. fi
  6837. fi
  6838. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ne_cv_pkg_libproxy_1_0" >&5
  6839. $as_echo "$ne_cv_pkg_libproxy_1_0" >&6; }
  6840. if test "$ne_cv_pkg_libproxy_1_0" = "yes"; then
  6841. NE_PXY_CFLAGS=`$PKG_CONFIG --cflags libproxy-1.0`
  6842. NE_PXY_LIBS=`$PKG_CONFIG --libs libproxy-1.0`
  6843. NE_PXY_VERSION=`$PKG_CONFIG --modversion libproxy-1.0`
  6844. : Using provided pkg-config data
  6845. $as_echo "#define HAVE_LIBPROXY 1" >>confdefs.h
  6846. CPPFLAGS="$CPPFLAGS $NE_PXY_CFLAGS"
  6847. NEON_LIBS="$NEON_LIBS ${NE_PXY_LIBS}"
  6848. NE_FLAG_LIBPXY=yes
  6849. $as_echo "#define NE_HAVE_LIBPXY 1" >>confdefs.h
  6850. ne_LIBPXY_message="libproxy support enabled using libproxy $NE_PXY_VERSION"
  6851. { $as_echo "$as_me:${as_lineno-$LINENO}: libproxy support enabled using libproxy $NE_PXY_VERSION" >&5
  6852. $as_echo "$as_me: libproxy support enabled using libproxy $NE_PXY_VERSION" >&6;}
  6853. else
  6854. : No pkg-config for libproxy-1.0 provided
  6855. NE_FLAG_LIBPXY=no
  6856. ne_LIBPXY_message="libproxy support not enabled"
  6857. { $as_echo "$as_me:${as_lineno-$LINENO}: libproxy support not enabled" >&5
  6858. $as_echo "$as_me: libproxy support not enabled" >&6;}
  6859. fi
  6860. fi
  6861. else
  6862. NE_FLAG_LIBPXY=no
  6863. ne_LIBPXY_message="libproxy support not enabled"
  6864. { $as_echo "$as_me:${as_lineno-$LINENO}: libproxy support not enabled" >&5
  6865. $as_echo "$as_me: libproxy support not enabled" >&6;}
  6866. fi
  6867. # Check whether --enable-shared was given.
  6868. if test "${enable_shared+set}" = set; then :
  6869. enableval=$enable_shared; p=${PACKAGE-default}
  6870. case $enableval in
  6871. yes) enable_shared=yes ;;
  6872. no) enable_shared=no ;;
  6873. *)
  6874. enable_shared=no
  6875. # Look at the argument we got. We use all the common list separators.
  6876. lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
  6877. for pkg in $enableval; do
  6878. IFS=$lt_save_ifs
  6879. if test "X$pkg" = "X$p"; then
  6880. enable_shared=yes
  6881. fi
  6882. done
  6883. IFS=$lt_save_ifs
  6884. ;;
  6885. esac
  6886. else
  6887. enable_shared=no
  6888. fi
  6889. case `pwd` in
  6890. *\ * | *\ *)
  6891. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
  6892. $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
  6893. esac
  6894. macro_version='2.4.6'
  6895. macro_revision='2.4.6'
  6896. ltmain=$ac_aux_dir/ltmain.sh
  6897. # Make sure we can run config.sub.
  6898. $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
  6899. as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
  6900. { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
  6901. $as_echo_n "checking build system type... " >&6; }
  6902. if ${ac_cv_build+:} false; then :
  6903. $as_echo_n "(cached) " >&6
  6904. else
  6905. ac_build_alias=$build_alias
  6906. test "x$ac_build_alias" = x &&
  6907. ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
  6908. test "x$ac_build_alias" = x &&
  6909. as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
  6910. ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
  6911. as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
  6912. fi
  6913. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
  6914. $as_echo "$ac_cv_build" >&6; }
  6915. case $ac_cv_build in
  6916. *-*-*) ;;
  6917. *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
  6918. esac
  6919. build=$ac_cv_build
  6920. ac_save_IFS=$IFS; IFS='-'
  6921. set x $ac_cv_build
  6922. shift
  6923. build_cpu=$1
  6924. build_vendor=$2
  6925. shift; shift
  6926. # Remember, the first character of IFS is used to create $*,
  6927. # except with old shells:
  6928. build_os=$*
  6929. IFS=$ac_save_IFS
  6930. case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
  6931. { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
  6932. $as_echo_n "checking host system type... " >&6; }
  6933. if ${ac_cv_host+:} false; then :
  6934. $as_echo_n "(cached) " >&6
  6935. else
  6936. if test "x$host_alias" = x; then
  6937. ac_cv_host=$ac_cv_build
  6938. else
  6939. ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
  6940. as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
  6941. fi
  6942. fi
  6943. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
  6944. $as_echo "$ac_cv_host" >&6; }
  6945. case $ac_cv_host in
  6946. *-*-*) ;;
  6947. *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
  6948. esac
  6949. host=$ac_cv_host
  6950. ac_save_IFS=$IFS; IFS='-'
  6951. set x $ac_cv_host
  6952. shift
  6953. host_cpu=$1
  6954. host_vendor=$2
  6955. shift; shift
  6956. # Remember, the first character of IFS is used to create $*,
  6957. # except with old shells:
  6958. host_os=$*
  6959. IFS=$ac_save_IFS
  6960. case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
  6961. # Backslashify metacharacters that are still active within
  6962. # double-quoted strings.
  6963. sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
  6964. # Same as above, but do not quote variable references.
  6965. double_quote_subst='s/\(["`\\]\)/\\\1/g'
  6966. # Sed substitution to delay expansion of an escaped shell variable in a
  6967. # double_quote_subst'ed string.
  6968. delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
  6969. # Sed substitution to delay expansion of an escaped single quote.
  6970. delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
  6971. # Sed substitution to avoid accidental globbing in evaled expressions
  6972. no_glob_subst='s/\*/\\\*/g'
  6973. ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
  6974. ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
  6975. ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
  6976. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
  6977. $as_echo_n "checking how to print strings... " >&6; }
  6978. # Test print first, because it will be a builtin if present.
  6979. if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
  6980. test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
  6981. ECHO='print -r --'
  6982. elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
  6983. ECHO='printf %s\n'
  6984. else
  6985. # Use this function as a fallback that always works.
  6986. func_fallback_echo ()
  6987. {
  6988. eval 'cat <<_LTECHO_EOF
  6989. $1
  6990. _LTECHO_EOF'
  6991. }
  6992. ECHO='func_fallback_echo'
  6993. fi
  6994. # func_echo_all arg...
  6995. # Invoke $ECHO with all args, space-separated.
  6996. func_echo_all ()
  6997. {
  6998. $ECHO ""
  6999. }
  7000. case $ECHO in
  7001. printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
  7002. $as_echo "printf" >&6; } ;;
  7003. print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
  7004. $as_echo "print -r" >&6; } ;;
  7005. *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
  7006. $as_echo "cat" >&6; } ;;
  7007. esac
  7008. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
  7009. $as_echo_n "checking for a sed that does not truncate output... " >&6; }
  7010. if ${ac_cv_path_SED+:} false; then :
  7011. $as_echo_n "(cached) " >&6
  7012. else
  7013. ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
  7014. for ac_i in 1 2 3 4 5 6 7; do
  7015. ac_script="$ac_script$as_nl$ac_script"
  7016. done
  7017. echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
  7018. { ac_script=; unset ac_script;}
  7019. if test -z "$SED"; then
  7020. ac_path_SED_found=false
  7021. # Loop through the user's path and test for each of PROGNAME-LIST
  7022. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  7023. for as_dir in $PATH
  7024. do
  7025. IFS=$as_save_IFS
  7026. test -z "$as_dir" && as_dir=.
  7027. for ac_prog in sed gsed; do
  7028. for ac_exec_ext in '' $ac_executable_extensions; do
  7029. ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
  7030. as_fn_executable_p "$ac_path_SED" || continue
  7031. # Check for GNU ac_path_SED and select it if it is found.
  7032. # Check for GNU $ac_path_SED
  7033. case `"$ac_path_SED" --version 2>&1` in
  7034. *GNU*)
  7035. ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
  7036. *)
  7037. ac_count=0
  7038. $as_echo_n 0123456789 >"conftest.in"
  7039. while :
  7040. do
  7041. cat "conftest.in" "conftest.in" >"conftest.tmp"
  7042. mv "conftest.tmp" "conftest.in"
  7043. cp "conftest.in" "conftest.nl"
  7044. $as_echo '' >> "conftest.nl"
  7045. "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
  7046. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  7047. as_fn_arith $ac_count + 1 && ac_count=$as_val
  7048. if test $ac_count -gt ${ac_path_SED_max-0}; then
  7049. # Best one so far, save it but keep looking for a better one
  7050. ac_cv_path_SED="$ac_path_SED"
  7051. ac_path_SED_max=$ac_count
  7052. fi
  7053. # 10*(2^10) chars as input seems more than enough
  7054. test $ac_count -gt 10 && break
  7055. done
  7056. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  7057. esac
  7058. $ac_path_SED_found && break 3
  7059. done
  7060. done
  7061. done
  7062. IFS=$as_save_IFS
  7063. if test -z "$ac_cv_path_SED"; then
  7064. as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
  7065. fi
  7066. else
  7067. ac_cv_path_SED=$SED
  7068. fi
  7069. fi
  7070. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
  7071. $as_echo "$ac_cv_path_SED" >&6; }
  7072. SED="$ac_cv_path_SED"
  7073. rm -f conftest.sed
  7074. test -z "$SED" && SED=sed
  7075. Xsed="$SED -e 1s/^X//"
  7076. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
  7077. $as_echo_n "checking for fgrep... " >&6; }
  7078. if ${ac_cv_path_FGREP+:} false; then :
  7079. $as_echo_n "(cached) " >&6
  7080. else
  7081. if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
  7082. then ac_cv_path_FGREP="$GREP -F"
  7083. else
  7084. if test -z "$FGREP"; then
  7085. ac_path_FGREP_found=false
  7086. # Loop through the user's path and test for each of PROGNAME-LIST
  7087. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  7088. for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
  7089. do
  7090. IFS=$as_save_IFS
  7091. test -z "$as_dir" && as_dir=.
  7092. for ac_prog in fgrep; do
  7093. for ac_exec_ext in '' $ac_executable_extensions; do
  7094. ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
  7095. as_fn_executable_p "$ac_path_FGREP" || continue
  7096. # Check for GNU ac_path_FGREP and select it if it is found.
  7097. # Check for GNU $ac_path_FGREP
  7098. case `"$ac_path_FGREP" --version 2>&1` in
  7099. *GNU*)
  7100. ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
  7101. *)
  7102. ac_count=0
  7103. $as_echo_n 0123456789 >"conftest.in"
  7104. while :
  7105. do
  7106. cat "conftest.in" "conftest.in" >"conftest.tmp"
  7107. mv "conftest.tmp" "conftest.in"
  7108. cp "conftest.in" "conftest.nl"
  7109. $as_echo 'FGREP' >> "conftest.nl"
  7110. "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
  7111. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  7112. as_fn_arith $ac_count + 1 && ac_count=$as_val
  7113. if test $ac_count -gt ${ac_path_FGREP_max-0}; then
  7114. # Best one so far, save it but keep looking for a better one
  7115. ac_cv_path_FGREP="$ac_path_FGREP"
  7116. ac_path_FGREP_max=$ac_count
  7117. fi
  7118. # 10*(2^10) chars as input seems more than enough
  7119. test $ac_count -gt 10 && break
  7120. done
  7121. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  7122. esac
  7123. $ac_path_FGREP_found && break 3
  7124. done
  7125. done
  7126. done
  7127. IFS=$as_save_IFS
  7128. if test -z "$ac_cv_path_FGREP"; then
  7129. as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
  7130. fi
  7131. else
  7132. ac_cv_path_FGREP=$FGREP
  7133. fi
  7134. fi
  7135. fi
  7136. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
  7137. $as_echo "$ac_cv_path_FGREP" >&6; }
  7138. FGREP="$ac_cv_path_FGREP"
  7139. test -z "$GREP" && GREP=grep
  7140. # Check whether --with-gnu-ld was given.
  7141. if test "${with_gnu_ld+set}" = set; then :
  7142. withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes
  7143. else
  7144. with_gnu_ld=no
  7145. fi
  7146. ac_prog=ld
  7147. if test yes = "$GCC"; then
  7148. # Check if gcc -print-prog-name=ld gives a path.
  7149. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
  7150. $as_echo_n "checking for ld used by $CC... " >&6; }
  7151. case $host in
  7152. *-*-mingw*)
  7153. # gcc leaves a trailing carriage return, which upsets mingw
  7154. ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
  7155. *)
  7156. ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
  7157. esac
  7158. case $ac_prog in
  7159. # Accept absolute paths.
  7160. [\\/]* | ?:[\\/]*)
  7161. re_direlt='/[^/][^/]*/\.\./'
  7162. # Canonicalize the pathname of ld
  7163. ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
  7164. while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
  7165. ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
  7166. done
  7167. test -z "$LD" && LD=$ac_prog
  7168. ;;
  7169. "")
  7170. # If it fails, then pretend we aren't using GCC.
  7171. ac_prog=ld
  7172. ;;
  7173. *)
  7174. # If it is relative, then search for the first ld in PATH.
  7175. with_gnu_ld=unknown
  7176. ;;
  7177. esac
  7178. elif test yes = "$with_gnu_ld"; then
  7179. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
  7180. $as_echo_n "checking for GNU ld... " >&6; }
  7181. else
  7182. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
  7183. $as_echo_n "checking for non-GNU ld... " >&6; }
  7184. fi
  7185. if ${lt_cv_path_LD+:} false; then :
  7186. $as_echo_n "(cached) " >&6
  7187. else
  7188. if test -z "$LD"; then
  7189. lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
  7190. for ac_dir in $PATH; do
  7191. IFS=$lt_save_ifs
  7192. test -z "$ac_dir" && ac_dir=.
  7193. if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
  7194. lt_cv_path_LD=$ac_dir/$ac_prog
  7195. # Check to see if the program is GNU ld. I'd rather use --version,
  7196. # but apparently some variants of GNU ld only accept -v.
  7197. # Break only if it was the GNU/non-GNU ld that we prefer.
  7198. case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
  7199. *GNU* | *'with BFD'*)
  7200. test no != "$with_gnu_ld" && break
  7201. ;;
  7202. *)
  7203. test yes != "$with_gnu_ld" && break
  7204. ;;
  7205. esac
  7206. fi
  7207. done
  7208. IFS=$lt_save_ifs
  7209. else
  7210. lt_cv_path_LD=$LD # Let the user override the test with a path.
  7211. fi
  7212. fi
  7213. LD=$lt_cv_path_LD
  7214. if test -n "$LD"; then
  7215. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
  7216. $as_echo "$LD" >&6; }
  7217. else
  7218. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7219. $as_echo "no" >&6; }
  7220. fi
  7221. test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
  7222. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
  7223. $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
  7224. if ${lt_cv_prog_gnu_ld+:} false; then :
  7225. $as_echo_n "(cached) " >&6
  7226. else
  7227. # I'd rather use --version here, but apparently some GNU lds only accept -v.
  7228. case `$LD -v 2>&1 </dev/null` in
  7229. *GNU* | *'with BFD'*)
  7230. lt_cv_prog_gnu_ld=yes
  7231. ;;
  7232. *)
  7233. lt_cv_prog_gnu_ld=no
  7234. ;;
  7235. esac
  7236. fi
  7237. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
  7238. $as_echo "$lt_cv_prog_gnu_ld" >&6; }
  7239. with_gnu_ld=$lt_cv_prog_gnu_ld
  7240. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
  7241. $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
  7242. if ${lt_cv_path_NM+:} false; then :
  7243. $as_echo_n "(cached) " >&6
  7244. else
  7245. if test -n "$NM"; then
  7246. # Let the user override the test.
  7247. lt_cv_path_NM=$NM
  7248. else
  7249. lt_nm_to_check=${ac_tool_prefix}nm
  7250. if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
  7251. lt_nm_to_check="$lt_nm_to_check nm"
  7252. fi
  7253. for lt_tmp_nm in $lt_nm_to_check; do
  7254. lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
  7255. for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
  7256. IFS=$lt_save_ifs
  7257. test -z "$ac_dir" && ac_dir=.
  7258. tmp_nm=$ac_dir/$lt_tmp_nm
  7259. if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext"; then
  7260. # Check to see if the nm accepts a BSD-compat flag.
  7261. # Adding the 'sed 1q' prevents false positives on HP-UX, which says:
  7262. # nm: unknown option "B" ignored
  7263. # Tru64's nm complains that /dev/null is an invalid object file
  7264. # MSYS converts /dev/null to NUL, MinGW nm treats NUL as empty
  7265. case $build_os in
  7266. mingw*) lt_bad_file=conftest.nm/nofile ;;
  7267. *) lt_bad_file=/dev/null ;;
  7268. esac
  7269. case `"$tmp_nm" -B $lt_bad_file 2>&1 | sed '1q'` in
  7270. *$lt_bad_file* | *'Invalid file or object type'*)
  7271. lt_cv_path_NM="$tmp_nm -B"
  7272. break 2
  7273. ;;
  7274. *)
  7275. case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
  7276. */dev/null*)
  7277. lt_cv_path_NM="$tmp_nm -p"
  7278. break 2
  7279. ;;
  7280. *)
  7281. lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
  7282. continue # so that we can try to find one that supports BSD flags
  7283. ;;
  7284. esac
  7285. ;;
  7286. esac
  7287. fi
  7288. done
  7289. IFS=$lt_save_ifs
  7290. done
  7291. : ${lt_cv_path_NM=no}
  7292. fi
  7293. fi
  7294. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
  7295. $as_echo "$lt_cv_path_NM" >&6; }
  7296. if test no != "$lt_cv_path_NM"; then
  7297. NM=$lt_cv_path_NM
  7298. else
  7299. # Didn't find any BSD compatible name lister, look for dumpbin.
  7300. if test -n "$DUMPBIN"; then :
  7301. # Let the user override the test.
  7302. else
  7303. if test -n "$ac_tool_prefix"; then
  7304. for ac_prog in dumpbin "link -dump"
  7305. do
  7306. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  7307. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  7308. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  7309. $as_echo_n "checking for $ac_word... " >&6; }
  7310. if ${ac_cv_prog_DUMPBIN+:} false; then :
  7311. $as_echo_n "(cached) " >&6
  7312. else
  7313. if test -n "$DUMPBIN"; then
  7314. ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
  7315. else
  7316. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  7317. for as_dir in $PATH
  7318. do
  7319. IFS=$as_save_IFS
  7320. test -z "$as_dir" && as_dir=.
  7321. for ac_exec_ext in '' $ac_executable_extensions; do
  7322. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  7323. ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
  7324. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  7325. break 2
  7326. fi
  7327. done
  7328. done
  7329. IFS=$as_save_IFS
  7330. fi
  7331. fi
  7332. DUMPBIN=$ac_cv_prog_DUMPBIN
  7333. if test -n "$DUMPBIN"; then
  7334. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
  7335. $as_echo "$DUMPBIN" >&6; }
  7336. else
  7337. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7338. $as_echo "no" >&6; }
  7339. fi
  7340. test -n "$DUMPBIN" && break
  7341. done
  7342. fi
  7343. if test -z "$DUMPBIN"; then
  7344. ac_ct_DUMPBIN=$DUMPBIN
  7345. for ac_prog in dumpbin "link -dump"
  7346. do
  7347. # Extract the first word of "$ac_prog", so it can be a program name with args.
  7348. set dummy $ac_prog; ac_word=$2
  7349. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  7350. $as_echo_n "checking for $ac_word... " >&6; }
  7351. if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
  7352. $as_echo_n "(cached) " >&6
  7353. else
  7354. if test -n "$ac_ct_DUMPBIN"; then
  7355. ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
  7356. else
  7357. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  7358. for as_dir in $PATH
  7359. do
  7360. IFS=$as_save_IFS
  7361. test -z "$as_dir" && as_dir=.
  7362. for ac_exec_ext in '' $ac_executable_extensions; do
  7363. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  7364. ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
  7365. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  7366. break 2
  7367. fi
  7368. done
  7369. done
  7370. IFS=$as_save_IFS
  7371. fi
  7372. fi
  7373. ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
  7374. if test -n "$ac_ct_DUMPBIN"; then
  7375. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
  7376. $as_echo "$ac_ct_DUMPBIN" >&6; }
  7377. else
  7378. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7379. $as_echo "no" >&6; }
  7380. fi
  7381. test -n "$ac_ct_DUMPBIN" && break
  7382. done
  7383. if test "x$ac_ct_DUMPBIN" = x; then
  7384. DUMPBIN=":"
  7385. else
  7386. case $cross_compiling:$ac_tool_warned in
  7387. yes:)
  7388. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  7389. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  7390. ac_tool_warned=yes ;;
  7391. esac
  7392. DUMPBIN=$ac_ct_DUMPBIN
  7393. fi
  7394. fi
  7395. case `$DUMPBIN -symbols -headers /dev/null 2>&1 | sed '1q'` in
  7396. *COFF*)
  7397. DUMPBIN="$DUMPBIN -symbols -headers"
  7398. ;;
  7399. *)
  7400. DUMPBIN=:
  7401. ;;
  7402. esac
  7403. fi
  7404. if test : != "$DUMPBIN"; then
  7405. NM=$DUMPBIN
  7406. fi
  7407. fi
  7408. test -z "$NM" && NM=nm
  7409. { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
  7410. $as_echo_n "checking the name lister ($NM) interface... " >&6; }
  7411. if ${lt_cv_nm_interface+:} false; then :
  7412. $as_echo_n "(cached) " >&6
  7413. else
  7414. lt_cv_nm_interface="BSD nm"
  7415. echo "int some_variable = 0;" > conftest.$ac_ext
  7416. (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
  7417. (eval "$ac_compile" 2>conftest.err)
  7418. cat conftest.err >&5
  7419. (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
  7420. (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
  7421. cat conftest.err >&5
  7422. (eval echo "\"\$as_me:$LINENO: output\"" >&5)
  7423. cat conftest.out >&5
  7424. if $GREP 'External.*some_variable' conftest.out > /dev/null; then
  7425. lt_cv_nm_interface="MS dumpbin"
  7426. fi
  7427. rm -f conftest*
  7428. fi
  7429. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
  7430. $as_echo "$lt_cv_nm_interface" >&6; }
  7431. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
  7432. $as_echo_n "checking whether ln -s works... " >&6; }
  7433. LN_S=$as_ln_s
  7434. if test "$LN_S" = "ln -s"; then
  7435. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  7436. $as_echo "yes" >&6; }
  7437. else
  7438. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
  7439. $as_echo "no, using $LN_S" >&6; }
  7440. fi
  7441. # find the maximum length of command line arguments
  7442. { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
  7443. $as_echo_n "checking the maximum length of command line arguments... " >&6; }
  7444. if ${lt_cv_sys_max_cmd_len+:} false; then :
  7445. $as_echo_n "(cached) " >&6
  7446. else
  7447. i=0
  7448. teststring=ABCD
  7449. case $build_os in
  7450. msdosdjgpp*)
  7451. # On DJGPP, this test can blow up pretty badly due to problems in libc
  7452. # (any single argument exceeding 2000 bytes causes a buffer overrun
  7453. # during glob expansion). Even if it were fixed, the result of this
  7454. # check would be larger than it should be.
  7455. lt_cv_sys_max_cmd_len=12288; # 12K is about right
  7456. ;;
  7457. gnu*)
  7458. # Under GNU Hurd, this test is not required because there is
  7459. # no limit to the length of command line arguments.
  7460. # Libtool will interpret -1 as no limit whatsoever
  7461. lt_cv_sys_max_cmd_len=-1;
  7462. ;;
  7463. cygwin* | mingw* | cegcc*)
  7464. # On Win9x/ME, this test blows up -- it succeeds, but takes
  7465. # about 5 minutes as the teststring grows exponentially.
  7466. # Worse, since 9x/ME are not pre-emptively multitasking,
  7467. # you end up with a "frozen" computer, even though with patience
  7468. # the test eventually succeeds (with a max line length of 256k).
  7469. # Instead, let's just punt: use the minimum linelength reported by
  7470. # all of the supported platforms: 8192 (on NT/2K/XP).
  7471. lt_cv_sys_max_cmd_len=8192;
  7472. ;;
  7473. mint*)
  7474. # On MiNT this can take a long time and run out of memory.
  7475. lt_cv_sys_max_cmd_len=8192;
  7476. ;;
  7477. amigaos*)
  7478. # On AmigaOS with pdksh, this test takes hours, literally.
  7479. # So we just punt and use a minimum line length of 8192.
  7480. lt_cv_sys_max_cmd_len=8192;
  7481. ;;
  7482. bitrig* | darwin* | dragonfly* | freebsd* | netbsd* | openbsd*)
  7483. # This has been around since 386BSD, at least. Likely further.
  7484. if test -x /sbin/sysctl; then
  7485. lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
  7486. elif test -x /usr/sbin/sysctl; then
  7487. lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
  7488. else
  7489. lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
  7490. fi
  7491. # And add a safety zone
  7492. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
  7493. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
  7494. ;;
  7495. interix*)
  7496. # We know the value 262144 and hardcode it with a safety zone (like BSD)
  7497. lt_cv_sys_max_cmd_len=196608
  7498. ;;
  7499. os2*)
  7500. # The test takes a long time on OS/2.
  7501. lt_cv_sys_max_cmd_len=8192
  7502. ;;
  7503. osf*)
  7504. # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
  7505. # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
  7506. # nice to cause kernel panics so lets avoid the loop below.
  7507. # First set a reasonable default.
  7508. lt_cv_sys_max_cmd_len=16384
  7509. #
  7510. if test -x /sbin/sysconfig; then
  7511. case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
  7512. *1*) lt_cv_sys_max_cmd_len=-1 ;;
  7513. esac
  7514. fi
  7515. ;;
  7516. sco3.2v5*)
  7517. lt_cv_sys_max_cmd_len=102400
  7518. ;;
  7519. sysv5* | sco5v6* | sysv4.2uw2*)
  7520. kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
  7521. if test -n "$kargmax"; then
  7522. lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
  7523. else
  7524. lt_cv_sys_max_cmd_len=32768
  7525. fi
  7526. ;;
  7527. *)
  7528. lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
  7529. if test -n "$lt_cv_sys_max_cmd_len" && \
  7530. test undefined != "$lt_cv_sys_max_cmd_len"; then
  7531. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
  7532. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
  7533. else
  7534. # Make teststring a little bigger before we do anything with it.
  7535. # a 1K string should be a reasonable start.
  7536. for i in 1 2 3 4 5 6 7 8; do
  7537. teststring=$teststring$teststring
  7538. done
  7539. SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
  7540. # If test is not a shell built-in, we'll probably end up computing a
  7541. # maximum length that is only half of the actual maximum length, but
  7542. # we can't tell.
  7543. while { test X`env echo "$teststring$teststring" 2>/dev/null` \
  7544. = "X$teststring$teststring"; } >/dev/null 2>&1 &&
  7545. test 17 != "$i" # 1/2 MB should be enough
  7546. do
  7547. i=`expr $i + 1`
  7548. teststring=$teststring$teststring
  7549. done
  7550. # Only check the string length outside the loop.
  7551. lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
  7552. teststring=
  7553. # Add a significant safety factor because C++ compilers can tack on
  7554. # massive amounts of additional arguments before passing them to the
  7555. # linker. It appears as though 1/2 is a usable value.
  7556. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
  7557. fi
  7558. ;;
  7559. esac
  7560. fi
  7561. if test -n "$lt_cv_sys_max_cmd_len"; then
  7562. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
  7563. $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
  7564. else
  7565. { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
  7566. $as_echo "none" >&6; }
  7567. fi
  7568. max_cmd_len=$lt_cv_sys_max_cmd_len
  7569. : ${CP="cp -f"}
  7570. : ${MV="mv -f"}
  7571. : ${RM="rm -f"}
  7572. if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
  7573. lt_unset=unset
  7574. else
  7575. lt_unset=false
  7576. fi
  7577. # test EBCDIC or ASCII
  7578. case `echo X|tr X '\101'` in
  7579. A) # ASCII based system
  7580. # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
  7581. lt_SP2NL='tr \040 \012'
  7582. lt_NL2SP='tr \015\012 \040\040'
  7583. ;;
  7584. *) # EBCDIC based system
  7585. lt_SP2NL='tr \100 \n'
  7586. lt_NL2SP='tr \r\n \100\100'
  7587. ;;
  7588. esac
  7589. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
  7590. $as_echo_n "checking how to convert $build file names to $host format... " >&6; }
  7591. if ${lt_cv_to_host_file_cmd+:} false; then :
  7592. $as_echo_n "(cached) " >&6
  7593. else
  7594. case $host in
  7595. *-*-mingw* )
  7596. case $build in
  7597. *-*-mingw* ) # actually msys
  7598. lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
  7599. ;;
  7600. *-*-cygwin* )
  7601. lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
  7602. ;;
  7603. * ) # otherwise, assume *nix
  7604. lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
  7605. ;;
  7606. esac
  7607. ;;
  7608. *-*-cygwin* )
  7609. case $build in
  7610. *-*-mingw* ) # actually msys
  7611. lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
  7612. ;;
  7613. *-*-cygwin* )
  7614. lt_cv_to_host_file_cmd=func_convert_file_noop
  7615. ;;
  7616. * ) # otherwise, assume *nix
  7617. lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
  7618. ;;
  7619. esac
  7620. ;;
  7621. * ) # unhandled hosts (and "normal" native builds)
  7622. lt_cv_to_host_file_cmd=func_convert_file_noop
  7623. ;;
  7624. esac
  7625. fi
  7626. to_host_file_cmd=$lt_cv_to_host_file_cmd
  7627. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
  7628. $as_echo "$lt_cv_to_host_file_cmd" >&6; }
  7629. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
  7630. $as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
  7631. if ${lt_cv_to_tool_file_cmd+:} false; then :
  7632. $as_echo_n "(cached) " >&6
  7633. else
  7634. #assume ordinary cross tools, or native build.
  7635. lt_cv_to_tool_file_cmd=func_convert_file_noop
  7636. case $host in
  7637. *-*-mingw* )
  7638. case $build in
  7639. *-*-mingw* ) # actually msys
  7640. lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
  7641. ;;
  7642. esac
  7643. ;;
  7644. esac
  7645. fi
  7646. to_tool_file_cmd=$lt_cv_to_tool_file_cmd
  7647. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
  7648. $as_echo "$lt_cv_to_tool_file_cmd" >&6; }
  7649. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
  7650. $as_echo_n "checking for $LD option to reload object files... " >&6; }
  7651. if ${lt_cv_ld_reload_flag+:} false; then :
  7652. $as_echo_n "(cached) " >&6
  7653. else
  7654. lt_cv_ld_reload_flag='-r'
  7655. fi
  7656. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
  7657. $as_echo "$lt_cv_ld_reload_flag" >&6; }
  7658. reload_flag=$lt_cv_ld_reload_flag
  7659. case $reload_flag in
  7660. "" | " "*) ;;
  7661. *) reload_flag=" $reload_flag" ;;
  7662. esac
  7663. reload_cmds='$LD$reload_flag -o $output$reload_objs'
  7664. case $host_os in
  7665. cygwin* | mingw* | pw32* | cegcc*)
  7666. if test yes != "$GCC"; then
  7667. reload_cmds=false
  7668. fi
  7669. ;;
  7670. darwin*)
  7671. if test yes = "$GCC"; then
  7672. reload_cmds='$LTCC $LTCFLAGS -nostdlib $wl-r -o $output$reload_objs'
  7673. else
  7674. reload_cmds='$LD$reload_flag -o $output$reload_objs'
  7675. fi
  7676. ;;
  7677. esac
  7678. if test -n "$ac_tool_prefix"; then
  7679. # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
  7680. set dummy ${ac_tool_prefix}objdump; ac_word=$2
  7681. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  7682. $as_echo_n "checking for $ac_word... " >&6; }
  7683. if ${ac_cv_prog_OBJDUMP+:} false; then :
  7684. $as_echo_n "(cached) " >&6
  7685. else
  7686. if test -n "$OBJDUMP"; then
  7687. ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
  7688. else
  7689. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  7690. for as_dir in $PATH
  7691. do
  7692. IFS=$as_save_IFS
  7693. test -z "$as_dir" && as_dir=.
  7694. for ac_exec_ext in '' $ac_executable_extensions; do
  7695. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  7696. ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
  7697. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  7698. break 2
  7699. fi
  7700. done
  7701. done
  7702. IFS=$as_save_IFS
  7703. fi
  7704. fi
  7705. OBJDUMP=$ac_cv_prog_OBJDUMP
  7706. if test -n "$OBJDUMP"; then
  7707. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
  7708. $as_echo "$OBJDUMP" >&6; }
  7709. else
  7710. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7711. $as_echo "no" >&6; }
  7712. fi
  7713. fi
  7714. if test -z "$ac_cv_prog_OBJDUMP"; then
  7715. ac_ct_OBJDUMP=$OBJDUMP
  7716. # Extract the first word of "objdump", so it can be a program name with args.
  7717. set dummy objdump; ac_word=$2
  7718. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  7719. $as_echo_n "checking for $ac_word... " >&6; }
  7720. if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
  7721. $as_echo_n "(cached) " >&6
  7722. else
  7723. if test -n "$ac_ct_OBJDUMP"; then
  7724. ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
  7725. else
  7726. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  7727. for as_dir in $PATH
  7728. do
  7729. IFS=$as_save_IFS
  7730. test -z "$as_dir" && as_dir=.
  7731. for ac_exec_ext in '' $ac_executable_extensions; do
  7732. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  7733. ac_cv_prog_ac_ct_OBJDUMP="objdump"
  7734. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  7735. break 2
  7736. fi
  7737. done
  7738. done
  7739. IFS=$as_save_IFS
  7740. fi
  7741. fi
  7742. ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
  7743. if test -n "$ac_ct_OBJDUMP"; then
  7744. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
  7745. $as_echo "$ac_ct_OBJDUMP" >&6; }
  7746. else
  7747. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7748. $as_echo "no" >&6; }
  7749. fi
  7750. if test "x$ac_ct_OBJDUMP" = x; then
  7751. OBJDUMP="false"
  7752. else
  7753. case $cross_compiling:$ac_tool_warned in
  7754. yes:)
  7755. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  7756. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  7757. ac_tool_warned=yes ;;
  7758. esac
  7759. OBJDUMP=$ac_ct_OBJDUMP
  7760. fi
  7761. else
  7762. OBJDUMP="$ac_cv_prog_OBJDUMP"
  7763. fi
  7764. test -z "$OBJDUMP" && OBJDUMP=objdump
  7765. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
  7766. $as_echo_n "checking how to recognize dependent libraries... " >&6; }
  7767. if ${lt_cv_deplibs_check_method+:} false; then :
  7768. $as_echo_n "(cached) " >&6
  7769. else
  7770. lt_cv_file_magic_cmd='$MAGIC_CMD'
  7771. lt_cv_file_magic_test_file=
  7772. lt_cv_deplibs_check_method='unknown'
  7773. # Need to set the preceding variable on all platforms that support
  7774. # interlibrary dependencies.
  7775. # 'none' -- dependencies not supported.
  7776. # 'unknown' -- same as none, but documents that we really don't know.
  7777. # 'pass_all' -- all dependencies passed with no checks.
  7778. # 'test_compile' -- check by making test program.
  7779. # 'file_magic [[regex]]' -- check by looking for files in library path
  7780. # that responds to the $file_magic_cmd with a given extended regex.
  7781. # If you have 'file' or equivalent on your system and you're not sure
  7782. # whether 'pass_all' will *always* work, you probably want this one.
  7783. case $host_os in
  7784. aix[4-9]*)
  7785. lt_cv_deplibs_check_method=pass_all
  7786. ;;
  7787. beos*)
  7788. lt_cv_deplibs_check_method=pass_all
  7789. ;;
  7790. bsdi[45]*)
  7791. lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
  7792. lt_cv_file_magic_cmd='/usr/bin/file -L'
  7793. lt_cv_file_magic_test_file=/shlib/libc.so
  7794. ;;
  7795. cygwin*)
  7796. # func_win32_libid is a shell function defined in ltmain.sh
  7797. lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
  7798. lt_cv_file_magic_cmd='func_win32_libid'
  7799. ;;
  7800. mingw* | pw32*)
  7801. # Base MSYS/MinGW do not provide the 'file' command needed by
  7802. # func_win32_libid shell function, so use a weaker test based on 'objdump',
  7803. # unless we find 'file', for example because we are cross-compiling.
  7804. if ( file / ) >/dev/null 2>&1; then
  7805. lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
  7806. lt_cv_file_magic_cmd='func_win32_libid'
  7807. else
  7808. # Keep this pattern in sync with the one in func_win32_libid.
  7809. lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
  7810. lt_cv_file_magic_cmd='$OBJDUMP -f'
  7811. fi
  7812. ;;
  7813. cegcc*)
  7814. # use the weaker test based on 'objdump'. See mingw*.
  7815. lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
  7816. lt_cv_file_magic_cmd='$OBJDUMP -f'
  7817. ;;
  7818. darwin* | rhapsody*)
  7819. lt_cv_deplibs_check_method=pass_all
  7820. ;;
  7821. freebsd* | dragonfly*)
  7822. if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
  7823. case $host_cpu in
  7824. i*86 )
  7825. # Not sure whether the presence of OpenBSD here was a mistake.
  7826. # Let's accept both of them until this is cleared up.
  7827. lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
  7828. lt_cv_file_magic_cmd=/usr/bin/file
  7829. lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
  7830. ;;
  7831. esac
  7832. else
  7833. lt_cv_deplibs_check_method=pass_all
  7834. fi
  7835. ;;
  7836. haiku*)
  7837. lt_cv_deplibs_check_method=pass_all
  7838. ;;
  7839. hpux10.20* | hpux11*)
  7840. lt_cv_file_magic_cmd=/usr/bin/file
  7841. case $host_cpu in
  7842. ia64*)
  7843. lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
  7844. lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
  7845. ;;
  7846. hppa*64*)
  7847. 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]'
  7848. lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
  7849. ;;
  7850. *)
  7851. lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
  7852. lt_cv_file_magic_test_file=/usr/lib/libc.sl
  7853. ;;
  7854. esac
  7855. ;;
  7856. interix[3-9]*)
  7857. # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
  7858. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
  7859. ;;
  7860. irix5* | irix6* | nonstopux*)
  7861. case $LD in
  7862. *-32|*"-32 ") libmagic=32-bit;;
  7863. *-n32|*"-n32 ") libmagic=N32;;
  7864. *-64|*"-64 ") libmagic=64-bit;;
  7865. *) libmagic=never-match;;
  7866. esac
  7867. lt_cv_deplibs_check_method=pass_all
  7868. ;;
  7869. # This must be glibc/ELF.
  7870. linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
  7871. lt_cv_deplibs_check_method=pass_all
  7872. ;;
  7873. netbsd*)
  7874. if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
  7875. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
  7876. else
  7877. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
  7878. fi
  7879. ;;
  7880. newos6*)
  7881. lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
  7882. lt_cv_file_magic_cmd=/usr/bin/file
  7883. lt_cv_file_magic_test_file=/usr/lib/libnls.so
  7884. ;;
  7885. *nto* | *qnx*)
  7886. lt_cv_deplibs_check_method=pass_all
  7887. ;;
  7888. openbsd* | bitrig*)
  7889. if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
  7890. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
  7891. else
  7892. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
  7893. fi
  7894. ;;
  7895. osf3* | osf4* | osf5*)
  7896. lt_cv_deplibs_check_method=pass_all
  7897. ;;
  7898. rdos*)
  7899. lt_cv_deplibs_check_method=pass_all
  7900. ;;
  7901. solaris*)
  7902. lt_cv_deplibs_check_method=pass_all
  7903. ;;
  7904. sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
  7905. lt_cv_deplibs_check_method=pass_all
  7906. ;;
  7907. sysv4 | sysv4.3*)
  7908. case $host_vendor in
  7909. motorola)
  7910. 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]'
  7911. lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
  7912. ;;
  7913. ncr)
  7914. lt_cv_deplibs_check_method=pass_all
  7915. ;;
  7916. sequent)
  7917. lt_cv_file_magic_cmd='/bin/file'
  7918. lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
  7919. ;;
  7920. sni)
  7921. lt_cv_file_magic_cmd='/bin/file'
  7922. lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
  7923. lt_cv_file_magic_test_file=/lib/libc.so
  7924. ;;
  7925. siemens)
  7926. lt_cv_deplibs_check_method=pass_all
  7927. ;;
  7928. pc)
  7929. lt_cv_deplibs_check_method=pass_all
  7930. ;;
  7931. esac
  7932. ;;
  7933. tpf*)
  7934. lt_cv_deplibs_check_method=pass_all
  7935. ;;
  7936. os2*)
  7937. lt_cv_deplibs_check_method=pass_all
  7938. ;;
  7939. esac
  7940. fi
  7941. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
  7942. $as_echo "$lt_cv_deplibs_check_method" >&6; }
  7943. file_magic_glob=
  7944. want_nocaseglob=no
  7945. if test "$build" = "$host"; then
  7946. case $host_os in
  7947. mingw* | pw32*)
  7948. if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
  7949. want_nocaseglob=yes
  7950. else
  7951. file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
  7952. fi
  7953. ;;
  7954. esac
  7955. fi
  7956. file_magic_cmd=$lt_cv_file_magic_cmd
  7957. deplibs_check_method=$lt_cv_deplibs_check_method
  7958. test -z "$deplibs_check_method" && deplibs_check_method=unknown
  7959. if test -n "$ac_tool_prefix"; then
  7960. # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
  7961. set dummy ${ac_tool_prefix}dlltool; ac_word=$2
  7962. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  7963. $as_echo_n "checking for $ac_word... " >&6; }
  7964. if ${ac_cv_prog_DLLTOOL+:} false; then :
  7965. $as_echo_n "(cached) " >&6
  7966. else
  7967. if test -n "$DLLTOOL"; then
  7968. ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
  7969. else
  7970. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  7971. for as_dir in $PATH
  7972. do
  7973. IFS=$as_save_IFS
  7974. test -z "$as_dir" && as_dir=.
  7975. for ac_exec_ext in '' $ac_executable_extensions; do
  7976. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  7977. ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
  7978. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  7979. break 2
  7980. fi
  7981. done
  7982. done
  7983. IFS=$as_save_IFS
  7984. fi
  7985. fi
  7986. DLLTOOL=$ac_cv_prog_DLLTOOL
  7987. if test -n "$DLLTOOL"; then
  7988. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
  7989. $as_echo "$DLLTOOL" >&6; }
  7990. else
  7991. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7992. $as_echo "no" >&6; }
  7993. fi
  7994. fi
  7995. if test -z "$ac_cv_prog_DLLTOOL"; then
  7996. ac_ct_DLLTOOL=$DLLTOOL
  7997. # Extract the first word of "dlltool", so it can be a program name with args.
  7998. set dummy dlltool; ac_word=$2
  7999. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  8000. $as_echo_n "checking for $ac_word... " >&6; }
  8001. if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
  8002. $as_echo_n "(cached) " >&6
  8003. else
  8004. if test -n "$ac_ct_DLLTOOL"; then
  8005. ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
  8006. else
  8007. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  8008. for as_dir in $PATH
  8009. do
  8010. IFS=$as_save_IFS
  8011. test -z "$as_dir" && as_dir=.
  8012. for ac_exec_ext in '' $ac_executable_extensions; do
  8013. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  8014. ac_cv_prog_ac_ct_DLLTOOL="dlltool"
  8015. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  8016. break 2
  8017. fi
  8018. done
  8019. done
  8020. IFS=$as_save_IFS
  8021. fi
  8022. fi
  8023. ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
  8024. if test -n "$ac_ct_DLLTOOL"; then
  8025. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
  8026. $as_echo "$ac_ct_DLLTOOL" >&6; }
  8027. else
  8028. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  8029. $as_echo "no" >&6; }
  8030. fi
  8031. if test "x$ac_ct_DLLTOOL" = x; then
  8032. DLLTOOL="false"
  8033. else
  8034. case $cross_compiling:$ac_tool_warned in
  8035. yes:)
  8036. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  8037. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  8038. ac_tool_warned=yes ;;
  8039. esac
  8040. DLLTOOL=$ac_ct_DLLTOOL
  8041. fi
  8042. else
  8043. DLLTOOL="$ac_cv_prog_DLLTOOL"
  8044. fi
  8045. test -z "$DLLTOOL" && DLLTOOL=dlltool
  8046. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
  8047. $as_echo_n "checking how to associate runtime and link libraries... " >&6; }
  8048. if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
  8049. $as_echo_n "(cached) " >&6
  8050. else
  8051. lt_cv_sharedlib_from_linklib_cmd='unknown'
  8052. case $host_os in
  8053. cygwin* | mingw* | pw32* | cegcc*)
  8054. # two different shell functions defined in ltmain.sh;
  8055. # decide which one to use based on capabilities of $DLLTOOL
  8056. case `$DLLTOOL --help 2>&1` in
  8057. *--identify-strict*)
  8058. lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
  8059. ;;
  8060. *)
  8061. lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
  8062. ;;
  8063. esac
  8064. ;;
  8065. *)
  8066. # fallback: assume linklib IS sharedlib
  8067. lt_cv_sharedlib_from_linklib_cmd=$ECHO
  8068. ;;
  8069. esac
  8070. fi
  8071. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
  8072. $as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
  8073. sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
  8074. test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
  8075. if test -n "$ac_tool_prefix"; then
  8076. for ac_prog in ar
  8077. do
  8078. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  8079. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  8080. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  8081. $as_echo_n "checking for $ac_word... " >&6; }
  8082. if ${ac_cv_prog_AR+:} false; then :
  8083. $as_echo_n "(cached) " >&6
  8084. else
  8085. if test -n "$AR"; then
  8086. ac_cv_prog_AR="$AR" # Let the user override the test.
  8087. else
  8088. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  8089. for as_dir in $PATH
  8090. do
  8091. IFS=$as_save_IFS
  8092. test -z "$as_dir" && as_dir=.
  8093. for ac_exec_ext in '' $ac_executable_extensions; do
  8094. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  8095. ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
  8096. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  8097. break 2
  8098. fi
  8099. done
  8100. done
  8101. IFS=$as_save_IFS
  8102. fi
  8103. fi
  8104. AR=$ac_cv_prog_AR
  8105. if test -n "$AR"; then
  8106. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
  8107. $as_echo "$AR" >&6; }
  8108. else
  8109. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  8110. $as_echo "no" >&6; }
  8111. fi
  8112. test -n "$AR" && break
  8113. done
  8114. fi
  8115. if test -z "$AR"; then
  8116. ac_ct_AR=$AR
  8117. for ac_prog in ar
  8118. do
  8119. # Extract the first word of "$ac_prog", so it can be a program name with args.
  8120. set dummy $ac_prog; ac_word=$2
  8121. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  8122. $as_echo_n "checking for $ac_word... " >&6; }
  8123. if ${ac_cv_prog_ac_ct_AR+:} false; then :
  8124. $as_echo_n "(cached) " >&6
  8125. else
  8126. if test -n "$ac_ct_AR"; then
  8127. ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
  8128. else
  8129. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  8130. for as_dir in $PATH
  8131. do
  8132. IFS=$as_save_IFS
  8133. test -z "$as_dir" && as_dir=.
  8134. for ac_exec_ext in '' $ac_executable_extensions; do
  8135. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  8136. ac_cv_prog_ac_ct_AR="$ac_prog"
  8137. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  8138. break 2
  8139. fi
  8140. done
  8141. done
  8142. IFS=$as_save_IFS
  8143. fi
  8144. fi
  8145. ac_ct_AR=$ac_cv_prog_ac_ct_AR
  8146. if test -n "$ac_ct_AR"; then
  8147. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
  8148. $as_echo "$ac_ct_AR" >&6; }
  8149. else
  8150. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  8151. $as_echo "no" >&6; }
  8152. fi
  8153. test -n "$ac_ct_AR" && break
  8154. done
  8155. if test "x$ac_ct_AR" = x; then
  8156. AR="false"
  8157. else
  8158. case $cross_compiling:$ac_tool_warned in
  8159. yes:)
  8160. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  8161. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  8162. ac_tool_warned=yes ;;
  8163. esac
  8164. AR=$ac_ct_AR
  8165. fi
  8166. fi
  8167. : ${AR=ar}
  8168. : ${AR_FLAGS=cru}
  8169. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
  8170. $as_echo_n "checking for archiver @FILE support... " >&6; }
  8171. if ${lt_cv_ar_at_file+:} false; then :
  8172. $as_echo_n "(cached) " >&6
  8173. else
  8174. lt_cv_ar_at_file=no
  8175. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  8176. /* end confdefs.h. */
  8177. int
  8178. main ()
  8179. {
  8180. ;
  8181. return 0;
  8182. }
  8183. _ACEOF
  8184. if ac_fn_c_try_compile "$LINENO"; then :
  8185. echo conftest.$ac_objext > conftest.lst
  8186. lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
  8187. { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
  8188. (eval $lt_ar_try) 2>&5
  8189. ac_status=$?
  8190. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  8191. test $ac_status = 0; }
  8192. if test 0 -eq "$ac_status"; then
  8193. # Ensure the archiver fails upon bogus file names.
  8194. rm -f conftest.$ac_objext libconftest.a
  8195. { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
  8196. (eval $lt_ar_try) 2>&5
  8197. ac_status=$?
  8198. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  8199. test $ac_status = 0; }
  8200. if test 0 -ne "$ac_status"; then
  8201. lt_cv_ar_at_file=@
  8202. fi
  8203. fi
  8204. rm -f conftest.* libconftest.a
  8205. fi
  8206. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  8207. fi
  8208. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
  8209. $as_echo "$lt_cv_ar_at_file" >&6; }
  8210. if test no = "$lt_cv_ar_at_file"; then
  8211. archiver_list_spec=
  8212. else
  8213. archiver_list_spec=$lt_cv_ar_at_file
  8214. fi
  8215. if test -n "$ac_tool_prefix"; then
  8216. # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
  8217. set dummy ${ac_tool_prefix}strip; ac_word=$2
  8218. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  8219. $as_echo_n "checking for $ac_word... " >&6; }
  8220. if ${ac_cv_prog_STRIP+:} false; then :
  8221. $as_echo_n "(cached) " >&6
  8222. else
  8223. if test -n "$STRIP"; then
  8224. ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
  8225. else
  8226. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  8227. for as_dir in $PATH
  8228. do
  8229. IFS=$as_save_IFS
  8230. test -z "$as_dir" && as_dir=.
  8231. for ac_exec_ext in '' $ac_executable_extensions; do
  8232. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  8233. ac_cv_prog_STRIP="${ac_tool_prefix}strip"
  8234. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  8235. break 2
  8236. fi
  8237. done
  8238. done
  8239. IFS=$as_save_IFS
  8240. fi
  8241. fi
  8242. STRIP=$ac_cv_prog_STRIP
  8243. if test -n "$STRIP"; then
  8244. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
  8245. $as_echo "$STRIP" >&6; }
  8246. else
  8247. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  8248. $as_echo "no" >&6; }
  8249. fi
  8250. fi
  8251. if test -z "$ac_cv_prog_STRIP"; then
  8252. ac_ct_STRIP=$STRIP
  8253. # Extract the first word of "strip", so it can be a program name with args.
  8254. set dummy strip; ac_word=$2
  8255. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  8256. $as_echo_n "checking for $ac_word... " >&6; }
  8257. if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
  8258. $as_echo_n "(cached) " >&6
  8259. else
  8260. if test -n "$ac_ct_STRIP"; then
  8261. ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
  8262. else
  8263. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  8264. for as_dir in $PATH
  8265. do
  8266. IFS=$as_save_IFS
  8267. test -z "$as_dir" && as_dir=.
  8268. for ac_exec_ext in '' $ac_executable_extensions; do
  8269. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  8270. ac_cv_prog_ac_ct_STRIP="strip"
  8271. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  8272. break 2
  8273. fi
  8274. done
  8275. done
  8276. IFS=$as_save_IFS
  8277. fi
  8278. fi
  8279. ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
  8280. if test -n "$ac_ct_STRIP"; then
  8281. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
  8282. $as_echo "$ac_ct_STRIP" >&6; }
  8283. else
  8284. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  8285. $as_echo "no" >&6; }
  8286. fi
  8287. if test "x$ac_ct_STRIP" = x; then
  8288. STRIP=":"
  8289. else
  8290. case $cross_compiling:$ac_tool_warned in
  8291. yes:)
  8292. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  8293. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  8294. ac_tool_warned=yes ;;
  8295. esac
  8296. STRIP=$ac_ct_STRIP
  8297. fi
  8298. else
  8299. STRIP="$ac_cv_prog_STRIP"
  8300. fi
  8301. test -z "$STRIP" && STRIP=:
  8302. if test -n "$ac_tool_prefix"; then
  8303. # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
  8304. set dummy ${ac_tool_prefix}ranlib; ac_word=$2
  8305. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  8306. $as_echo_n "checking for $ac_word... " >&6; }
  8307. if ${ac_cv_prog_RANLIB+:} false; then :
  8308. $as_echo_n "(cached) " >&6
  8309. else
  8310. if test -n "$RANLIB"; then
  8311. ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
  8312. else
  8313. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  8314. for as_dir in $PATH
  8315. do
  8316. IFS=$as_save_IFS
  8317. test -z "$as_dir" && as_dir=.
  8318. for ac_exec_ext in '' $ac_executable_extensions; do
  8319. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  8320. ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
  8321. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  8322. break 2
  8323. fi
  8324. done
  8325. done
  8326. IFS=$as_save_IFS
  8327. fi
  8328. fi
  8329. RANLIB=$ac_cv_prog_RANLIB
  8330. if test -n "$RANLIB"; then
  8331. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
  8332. $as_echo "$RANLIB" >&6; }
  8333. else
  8334. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  8335. $as_echo "no" >&6; }
  8336. fi
  8337. fi
  8338. if test -z "$ac_cv_prog_RANLIB"; then
  8339. ac_ct_RANLIB=$RANLIB
  8340. # Extract the first word of "ranlib", so it can be a program name with args.
  8341. set dummy ranlib; ac_word=$2
  8342. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  8343. $as_echo_n "checking for $ac_word... " >&6; }
  8344. if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
  8345. $as_echo_n "(cached) " >&6
  8346. else
  8347. if test -n "$ac_ct_RANLIB"; then
  8348. ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
  8349. else
  8350. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  8351. for as_dir in $PATH
  8352. do
  8353. IFS=$as_save_IFS
  8354. test -z "$as_dir" && as_dir=.
  8355. for ac_exec_ext in '' $ac_executable_extensions; do
  8356. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  8357. ac_cv_prog_ac_ct_RANLIB="ranlib"
  8358. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  8359. break 2
  8360. fi
  8361. done
  8362. done
  8363. IFS=$as_save_IFS
  8364. fi
  8365. fi
  8366. ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
  8367. if test -n "$ac_ct_RANLIB"; then
  8368. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
  8369. $as_echo "$ac_ct_RANLIB" >&6; }
  8370. else
  8371. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  8372. $as_echo "no" >&6; }
  8373. fi
  8374. if test "x$ac_ct_RANLIB" = x; then
  8375. RANLIB=":"
  8376. else
  8377. case $cross_compiling:$ac_tool_warned in
  8378. yes:)
  8379. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  8380. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  8381. ac_tool_warned=yes ;;
  8382. esac
  8383. RANLIB=$ac_ct_RANLIB
  8384. fi
  8385. else
  8386. RANLIB="$ac_cv_prog_RANLIB"
  8387. fi
  8388. test -z "$RANLIB" && RANLIB=:
  8389. # Determine commands to create old-style static archives.
  8390. old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
  8391. old_postinstall_cmds='chmod 644 $oldlib'
  8392. old_postuninstall_cmds=
  8393. if test -n "$RANLIB"; then
  8394. case $host_os in
  8395. bitrig* | openbsd*)
  8396. old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
  8397. ;;
  8398. *)
  8399. old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
  8400. ;;
  8401. esac
  8402. old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
  8403. fi
  8404. case $host_os in
  8405. darwin*)
  8406. lock_old_archive_extraction=yes ;;
  8407. *)
  8408. lock_old_archive_extraction=no ;;
  8409. esac
  8410. for ac_prog in gawk mawk nawk awk
  8411. do
  8412. # Extract the first word of "$ac_prog", so it can be a program name with args.
  8413. set dummy $ac_prog; ac_word=$2
  8414. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  8415. $as_echo_n "checking for $ac_word... " >&6; }
  8416. if ${ac_cv_prog_AWK+:} false; then :
  8417. $as_echo_n "(cached) " >&6
  8418. else
  8419. if test -n "$AWK"; then
  8420. ac_cv_prog_AWK="$AWK" # Let the user override the test.
  8421. else
  8422. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  8423. for as_dir in $PATH
  8424. do
  8425. IFS=$as_save_IFS
  8426. test -z "$as_dir" && as_dir=.
  8427. for ac_exec_ext in '' $ac_executable_extensions; do
  8428. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  8429. ac_cv_prog_AWK="$ac_prog"
  8430. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  8431. break 2
  8432. fi
  8433. done
  8434. done
  8435. IFS=$as_save_IFS
  8436. fi
  8437. fi
  8438. AWK=$ac_cv_prog_AWK
  8439. if test -n "$AWK"; then
  8440. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
  8441. $as_echo "$AWK" >&6; }
  8442. else
  8443. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  8444. $as_echo "no" >&6; }
  8445. fi
  8446. test -n "$AWK" && break
  8447. done
  8448. # If no C compiler was specified, use CC.
  8449. LTCC=${LTCC-"$CC"}
  8450. # If no C compiler flags were specified, use CFLAGS.
  8451. LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
  8452. # Allow CC to be a program name with arguments.
  8453. compiler=$CC
  8454. # Check for command to grab the raw symbol name followed by C symbol from nm.
  8455. { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
  8456. $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
  8457. if ${lt_cv_sys_global_symbol_pipe+:} false; then :
  8458. $as_echo_n "(cached) " >&6
  8459. else
  8460. # These are sane defaults that work on at least a few old systems.
  8461. # [They come from Ultrix. What could be older than Ultrix?!! ;)]
  8462. # Character class describing NM global symbol codes.
  8463. symcode='[BCDEGRST]'
  8464. # Regexp to match symbols that can be accessed directly from C.
  8465. sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
  8466. # Define system-specific variables.
  8467. case $host_os in
  8468. aix*)
  8469. symcode='[BCDT]'
  8470. ;;
  8471. cygwin* | mingw* | pw32* | cegcc*)
  8472. symcode='[ABCDGISTW]'
  8473. ;;
  8474. hpux*)
  8475. if test ia64 = "$host_cpu"; then
  8476. symcode='[ABCDEGRST]'
  8477. fi
  8478. ;;
  8479. irix* | nonstopux*)
  8480. symcode='[BCDEGRST]'
  8481. ;;
  8482. osf*)
  8483. symcode='[BCDEGQRST]'
  8484. ;;
  8485. solaris*)
  8486. symcode='[BDRT]'
  8487. ;;
  8488. sco3.2v5*)
  8489. symcode='[DT]'
  8490. ;;
  8491. sysv4.2uw2*)
  8492. symcode='[DT]'
  8493. ;;
  8494. sysv5* | sco5v6* | unixware* | OpenUNIX*)
  8495. symcode='[ABDT]'
  8496. ;;
  8497. sysv4)
  8498. symcode='[DFNSTU]'
  8499. ;;
  8500. esac
  8501. # If we're using GNU nm, then use its standard symbol codes.
  8502. case `$NM -V 2>&1` in
  8503. *GNU* | *'with BFD'*)
  8504. symcode='[ABCDGIRSTW]' ;;
  8505. esac
  8506. if test "$lt_cv_nm_interface" = "MS dumpbin"; then
  8507. # Gets list of data symbols to import.
  8508. lt_cv_sys_global_symbol_to_import="sed -n -e 's/^I .* \(.*\)$/\1/p'"
  8509. # Adjust the below global symbol transforms to fixup imported variables.
  8510. lt_cdecl_hook=" -e 's/^I .* \(.*\)$/extern __declspec(dllimport) char \1;/p'"
  8511. lt_c_name_hook=" -e 's/^I .* \(.*\)$/ {\"\1\", (void *) 0},/p'"
  8512. lt_c_name_lib_hook="\
  8513. -e 's/^I .* \(lib.*\)$/ {\"\1\", (void *) 0},/p'\
  8514. -e 's/^I .* \(.*\)$/ {\"lib\1\", (void *) 0},/p'"
  8515. else
  8516. # Disable hooks by default.
  8517. lt_cv_sys_global_symbol_to_import=
  8518. lt_cdecl_hook=
  8519. lt_c_name_hook=
  8520. lt_c_name_lib_hook=
  8521. fi
  8522. # Transform an extracted symbol line into a proper C declaration.
  8523. # Some systems (esp. on ia64) link data and code symbols differently,
  8524. # so use this general approach.
  8525. lt_cv_sys_global_symbol_to_cdecl="sed -n"\
  8526. $lt_cdecl_hook\
  8527. " -e 's/^T .* \(.*\)$/extern int \1();/p'"\
  8528. " -e 's/^$symcode$symcode* .* \(.*\)$/extern char \1;/p'"
  8529. # Transform an extracted symbol line into symbol name and symbol address
  8530. lt_cv_sys_global_symbol_to_c_name_address="sed -n"\
  8531. $lt_c_name_hook\
  8532. " -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\
  8533. " -e 's/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/p'"
  8534. # Transform an extracted symbol line into symbol name with lib prefix and
  8535. # symbol address.
  8536. lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n"\
  8537. $lt_c_name_lib_hook\
  8538. " -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\
  8539. " -e 's/^$symcode$symcode* .* \(lib.*\)$/ {\"\1\", (void *) \&\1},/p'"\
  8540. " -e 's/^$symcode$symcode* .* \(.*\)$/ {\"lib\1\", (void *) \&\1},/p'"
  8541. # Handle CRLF in mingw tool chain
  8542. opt_cr=
  8543. case $build_os in
  8544. mingw*)
  8545. opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
  8546. ;;
  8547. esac
  8548. # Try without a prefix underscore, then with it.
  8549. for ac_symprfx in "" "_"; do
  8550. # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
  8551. symxfrm="\\1 $ac_symprfx\\2 \\2"
  8552. # Write the raw and C identifiers.
  8553. if test "$lt_cv_nm_interface" = "MS dumpbin"; then
  8554. # Fake it for dumpbin and say T for any non-static function,
  8555. # D for any global variable and I for any imported variable.
  8556. # Also find C++ and __fastcall symbols from MSVC++,
  8557. # which start with @ or ?.
  8558. lt_cv_sys_global_symbol_pipe="$AWK '"\
  8559. " {last_section=section; section=\$ 3};"\
  8560. " /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
  8561. " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
  8562. " /^ *Symbol name *: /{split(\$ 0,sn,\":\"); si=substr(sn[2],2)};"\
  8563. " /^ *Type *: code/{print \"T\",si,substr(si,length(prfx))};"\
  8564. " /^ *Type *: data/{print \"I\",si,substr(si,length(prfx))};"\
  8565. " \$ 0!~/External *\|/{next};"\
  8566. " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
  8567. " {if(hide[section]) next};"\
  8568. " {f=\"D\"}; \$ 0~/\(\).*\|/{f=\"T\"};"\
  8569. " {split(\$ 0,a,/\||\r/); split(a[2],s)};"\
  8570. " s[1]~/^[@?]/{print f,s[1],s[1]; next};"\
  8571. " s[1]~prfx {split(s[1],t,\"@\"); print f,t[1],substr(t[1],length(prfx))}"\
  8572. " ' prfx=^$ac_symprfx"
  8573. else
  8574. lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
  8575. fi
  8576. lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
  8577. # Check to see that the pipe works correctly.
  8578. pipe_works=no
  8579. rm -f conftest*
  8580. cat > conftest.$ac_ext <<_LT_EOF
  8581. #ifdef __cplusplus
  8582. extern "C" {
  8583. #endif
  8584. char nm_test_var;
  8585. void nm_test_func(void);
  8586. void nm_test_func(void){}
  8587. #ifdef __cplusplus
  8588. }
  8589. #endif
  8590. int main(){nm_test_var='a';nm_test_func();return(0);}
  8591. _LT_EOF
  8592. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  8593. (eval $ac_compile) 2>&5
  8594. ac_status=$?
  8595. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  8596. test $ac_status = 0; }; then
  8597. # Now try to grab the symbols.
  8598. nlist=conftest.nm
  8599. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
  8600. (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
  8601. ac_status=$?
  8602. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  8603. test $ac_status = 0; } && test -s "$nlist"; then
  8604. # Try sorting and uniquifying the output.
  8605. if sort "$nlist" | uniq > "$nlist"T; then
  8606. mv -f "$nlist"T "$nlist"
  8607. else
  8608. rm -f "$nlist"T
  8609. fi
  8610. # Make sure that we snagged all the symbols we need.
  8611. if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
  8612. if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
  8613. cat <<_LT_EOF > conftest.$ac_ext
  8614. /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */
  8615. #if defined _WIN32 || defined __CYGWIN__ || defined _WIN32_WCE
  8616. /* DATA imports from DLLs on WIN32 can't be const, because runtime
  8617. relocations are performed -- see ld's documentation on pseudo-relocs. */
  8618. # define LT_DLSYM_CONST
  8619. #elif defined __osf__
  8620. /* This system does not cope well with relocations in const data. */
  8621. # define LT_DLSYM_CONST
  8622. #else
  8623. # define LT_DLSYM_CONST const
  8624. #endif
  8625. #ifdef __cplusplus
  8626. extern "C" {
  8627. #endif
  8628. _LT_EOF
  8629. # Now generate the symbol file.
  8630. eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
  8631. cat <<_LT_EOF >> conftest.$ac_ext
  8632. /* The mapping between symbol names and symbols. */
  8633. LT_DLSYM_CONST struct {
  8634. const char *name;
  8635. void *address;
  8636. }
  8637. lt__PROGRAM__LTX_preloaded_symbols[] =
  8638. {
  8639. { "@PROGRAM@", (void *) 0 },
  8640. _LT_EOF
  8641. $SED "s/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
  8642. cat <<\_LT_EOF >> conftest.$ac_ext
  8643. {0, (void *) 0}
  8644. };
  8645. /* This works around a problem in FreeBSD linker */
  8646. #ifdef FREEBSD_WORKAROUND
  8647. static const void *lt_preloaded_setup() {
  8648. return lt__PROGRAM__LTX_preloaded_symbols;
  8649. }
  8650. #endif
  8651. #ifdef __cplusplus
  8652. }
  8653. #endif
  8654. _LT_EOF
  8655. # Now try linking the two files.
  8656. mv conftest.$ac_objext conftstm.$ac_objext
  8657. lt_globsym_save_LIBS=$LIBS
  8658. lt_globsym_save_CFLAGS=$CFLAGS
  8659. LIBS=conftstm.$ac_objext
  8660. CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
  8661. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
  8662. (eval $ac_link) 2>&5
  8663. ac_status=$?
  8664. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  8665. test $ac_status = 0; } && test -s conftest$ac_exeext; then
  8666. pipe_works=yes
  8667. fi
  8668. LIBS=$lt_globsym_save_LIBS
  8669. CFLAGS=$lt_globsym_save_CFLAGS
  8670. else
  8671. echo "cannot find nm_test_func in $nlist" >&5
  8672. fi
  8673. else
  8674. echo "cannot find nm_test_var in $nlist" >&5
  8675. fi
  8676. else
  8677. echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
  8678. fi
  8679. else
  8680. echo "$progname: failed program was:" >&5
  8681. cat conftest.$ac_ext >&5
  8682. fi
  8683. rm -rf conftest* conftst*
  8684. # Do not use the global_symbol_pipe unless it works.
  8685. if test yes = "$pipe_works"; then
  8686. break
  8687. else
  8688. lt_cv_sys_global_symbol_pipe=
  8689. fi
  8690. done
  8691. fi
  8692. if test -z "$lt_cv_sys_global_symbol_pipe"; then
  8693. lt_cv_sys_global_symbol_to_cdecl=
  8694. fi
  8695. if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
  8696. { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
  8697. $as_echo "failed" >&6; }
  8698. else
  8699. { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
  8700. $as_echo "ok" >&6; }
  8701. fi
  8702. # Response file support.
  8703. if test "$lt_cv_nm_interface" = "MS dumpbin"; then
  8704. nm_file_list_spec='@'
  8705. elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
  8706. nm_file_list_spec='@'
  8707. fi
  8708. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
  8709. $as_echo_n "checking for sysroot... " >&6; }
  8710. # Check whether --with-sysroot was given.
  8711. if test "${with_sysroot+set}" = set; then :
  8712. withval=$with_sysroot;
  8713. else
  8714. with_sysroot=no
  8715. fi
  8716. lt_sysroot=
  8717. case $with_sysroot in #(
  8718. yes)
  8719. if test yes = "$GCC"; then
  8720. lt_sysroot=`$CC --print-sysroot 2>/dev/null`
  8721. fi
  8722. ;; #(
  8723. /*)
  8724. lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
  8725. ;; #(
  8726. no|'')
  8727. ;; #(
  8728. *)
  8729. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_sysroot" >&5
  8730. $as_echo "$with_sysroot" >&6; }
  8731. as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
  8732. ;;
  8733. esac
  8734. { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
  8735. $as_echo "${lt_sysroot:-no}" >&6; }
  8736. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a working dd" >&5
  8737. $as_echo_n "checking for a working dd... " >&6; }
  8738. if ${ac_cv_path_lt_DD+:} false; then :
  8739. $as_echo_n "(cached) " >&6
  8740. else
  8741. printf 0123456789abcdef0123456789abcdef >conftest.i
  8742. cat conftest.i conftest.i >conftest2.i
  8743. : ${lt_DD:=$DD}
  8744. if test -z "$lt_DD"; then
  8745. ac_path_lt_DD_found=false
  8746. # Loop through the user's path and test for each of PROGNAME-LIST
  8747. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  8748. for as_dir in $PATH
  8749. do
  8750. IFS=$as_save_IFS
  8751. test -z "$as_dir" && as_dir=.
  8752. for ac_prog in dd; do
  8753. for ac_exec_ext in '' $ac_executable_extensions; do
  8754. ac_path_lt_DD="$as_dir/$ac_prog$ac_exec_ext"
  8755. as_fn_executable_p "$ac_path_lt_DD" || continue
  8756. if "$ac_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
  8757. cmp -s conftest.i conftest.out \
  8758. && ac_cv_path_lt_DD="$ac_path_lt_DD" ac_path_lt_DD_found=:
  8759. fi
  8760. $ac_path_lt_DD_found && break 3
  8761. done
  8762. done
  8763. done
  8764. IFS=$as_save_IFS
  8765. if test -z "$ac_cv_path_lt_DD"; then
  8766. :
  8767. fi
  8768. else
  8769. ac_cv_path_lt_DD=$lt_DD
  8770. fi
  8771. rm -f conftest.i conftest2.i conftest.out
  8772. fi
  8773. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_lt_DD" >&5
  8774. $as_echo "$ac_cv_path_lt_DD" >&6; }
  8775. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to truncate binary pipes" >&5
  8776. $as_echo_n "checking how to truncate binary pipes... " >&6; }
  8777. if ${lt_cv_truncate_bin+:} false; then :
  8778. $as_echo_n "(cached) " >&6
  8779. else
  8780. printf 0123456789abcdef0123456789abcdef >conftest.i
  8781. cat conftest.i conftest.i >conftest2.i
  8782. lt_cv_truncate_bin=
  8783. if "$ac_cv_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
  8784. cmp -s conftest.i conftest.out \
  8785. && lt_cv_truncate_bin="$ac_cv_path_lt_DD bs=4096 count=1"
  8786. fi
  8787. rm -f conftest.i conftest2.i conftest.out
  8788. test -z "$lt_cv_truncate_bin" && lt_cv_truncate_bin="$SED -e 4q"
  8789. fi
  8790. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_truncate_bin" >&5
  8791. $as_echo "$lt_cv_truncate_bin" >&6; }
  8792. # Calculate cc_basename. Skip known compiler wrappers and cross-prefix.
  8793. func_cc_basename ()
  8794. {
  8795. for cc_temp in $*""; do
  8796. case $cc_temp in
  8797. compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
  8798. distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
  8799. \-*) ;;
  8800. *) break;;
  8801. esac
  8802. done
  8803. func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
  8804. }
  8805. # Check whether --enable-libtool-lock was given.
  8806. if test "${enable_libtool_lock+set}" = set; then :
  8807. enableval=$enable_libtool_lock;
  8808. fi
  8809. test no = "$enable_libtool_lock" || enable_libtool_lock=yes
  8810. # Some flags need to be propagated to the compiler or linker for good
  8811. # libtool support.
  8812. case $host in
  8813. ia64-*-hpux*)
  8814. # Find out what ABI is being produced by ac_compile, and set mode
  8815. # options accordingly.
  8816. echo 'int i;' > conftest.$ac_ext
  8817. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  8818. (eval $ac_compile) 2>&5
  8819. ac_status=$?
  8820. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  8821. test $ac_status = 0; }; then
  8822. case `/usr/bin/file conftest.$ac_objext` in
  8823. *ELF-32*)
  8824. HPUX_IA64_MODE=32
  8825. ;;
  8826. *ELF-64*)
  8827. HPUX_IA64_MODE=64
  8828. ;;
  8829. esac
  8830. fi
  8831. rm -rf conftest*
  8832. ;;
  8833. *-*-irix6*)
  8834. # Find out what ABI is being produced by ac_compile, and set linker
  8835. # options accordingly.
  8836. echo '#line '$LINENO' "configure"' > conftest.$ac_ext
  8837. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  8838. (eval $ac_compile) 2>&5
  8839. ac_status=$?
  8840. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  8841. test $ac_status = 0; }; then
  8842. if test yes = "$lt_cv_prog_gnu_ld"; then
  8843. case `/usr/bin/file conftest.$ac_objext` in
  8844. *32-bit*)
  8845. LD="${LD-ld} -melf32bsmip"
  8846. ;;
  8847. *N32*)
  8848. LD="${LD-ld} -melf32bmipn32"
  8849. ;;
  8850. *64-bit*)
  8851. LD="${LD-ld} -melf64bmip"
  8852. ;;
  8853. esac
  8854. else
  8855. case `/usr/bin/file conftest.$ac_objext` in
  8856. *32-bit*)
  8857. LD="${LD-ld} -32"
  8858. ;;
  8859. *N32*)
  8860. LD="${LD-ld} -n32"
  8861. ;;
  8862. *64-bit*)
  8863. LD="${LD-ld} -64"
  8864. ;;
  8865. esac
  8866. fi
  8867. fi
  8868. rm -rf conftest*
  8869. ;;
  8870. mips64*-*linux*)
  8871. # Find out what ABI is being produced by ac_compile, and set linker
  8872. # options accordingly.
  8873. echo '#line '$LINENO' "configure"' > conftest.$ac_ext
  8874. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  8875. (eval $ac_compile) 2>&5
  8876. ac_status=$?
  8877. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  8878. test $ac_status = 0; }; then
  8879. emul=elf
  8880. case `/usr/bin/file conftest.$ac_objext` in
  8881. *32-bit*)
  8882. emul="${emul}32"
  8883. ;;
  8884. *64-bit*)
  8885. emul="${emul}64"
  8886. ;;
  8887. esac
  8888. case `/usr/bin/file conftest.$ac_objext` in
  8889. *MSB*)
  8890. emul="${emul}btsmip"
  8891. ;;
  8892. *LSB*)
  8893. emul="${emul}ltsmip"
  8894. ;;
  8895. esac
  8896. case `/usr/bin/file conftest.$ac_objext` in
  8897. *N32*)
  8898. emul="${emul}n32"
  8899. ;;
  8900. esac
  8901. LD="${LD-ld} -m $emul"
  8902. fi
  8903. rm -rf conftest*
  8904. ;;
  8905. x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
  8906. s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
  8907. # Find out what ABI is being produced by ac_compile, and set linker
  8908. # options accordingly. Note that the listed cases only cover the
  8909. # situations where additional linker options are needed (such as when
  8910. # doing 32-bit compilation for a host where ld defaults to 64-bit, or
  8911. # vice versa); the common cases where no linker options are needed do
  8912. # not appear in the list.
  8913. echo 'int i;' > conftest.$ac_ext
  8914. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  8915. (eval $ac_compile) 2>&5
  8916. ac_status=$?
  8917. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  8918. test $ac_status = 0; }; then
  8919. case `/usr/bin/file conftest.o` in
  8920. *32-bit*)
  8921. case $host in
  8922. x86_64-*kfreebsd*-gnu)
  8923. LD="${LD-ld} -m elf_i386_fbsd"
  8924. ;;
  8925. x86_64-*linux*)
  8926. case `/usr/bin/file conftest.o` in
  8927. *x86-64*)
  8928. LD="${LD-ld} -m elf32_x86_64"
  8929. ;;
  8930. *)
  8931. LD="${LD-ld} -m elf_i386"
  8932. ;;
  8933. esac
  8934. ;;
  8935. powerpc64le-*linux*)
  8936. LD="${LD-ld} -m elf32lppclinux"
  8937. ;;
  8938. powerpc64-*linux*)
  8939. LD="${LD-ld} -m elf32ppclinux"
  8940. ;;
  8941. s390x-*linux*)
  8942. LD="${LD-ld} -m elf_s390"
  8943. ;;
  8944. sparc64-*linux*)
  8945. LD="${LD-ld} -m elf32_sparc"
  8946. ;;
  8947. esac
  8948. ;;
  8949. *64-bit*)
  8950. case $host in
  8951. x86_64-*kfreebsd*-gnu)
  8952. LD="${LD-ld} -m elf_x86_64_fbsd"
  8953. ;;
  8954. x86_64-*linux*)
  8955. LD="${LD-ld} -m elf_x86_64"
  8956. ;;
  8957. powerpcle-*linux*)
  8958. LD="${LD-ld} -m elf64lppc"
  8959. ;;
  8960. powerpc-*linux*)
  8961. LD="${LD-ld} -m elf64ppc"
  8962. ;;
  8963. s390*-*linux*|s390*-*tpf*)
  8964. LD="${LD-ld} -m elf64_s390"
  8965. ;;
  8966. sparc*-*linux*)
  8967. LD="${LD-ld} -m elf64_sparc"
  8968. ;;
  8969. esac
  8970. ;;
  8971. esac
  8972. fi
  8973. rm -rf conftest*
  8974. ;;
  8975. *-*-sco3.2v5*)
  8976. # On SCO OpenServer 5, we need -belf to get full-featured binaries.
  8977. SAVE_CFLAGS=$CFLAGS
  8978. CFLAGS="$CFLAGS -belf"
  8979. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
  8980. $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
  8981. if ${lt_cv_cc_needs_belf+:} false; then :
  8982. $as_echo_n "(cached) " >&6
  8983. else
  8984. ac_ext=c
  8985. ac_cpp='$CPP $CPPFLAGS'
  8986. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  8987. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  8988. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  8989. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  8990. /* end confdefs.h. */
  8991. int
  8992. main ()
  8993. {
  8994. ;
  8995. return 0;
  8996. }
  8997. _ACEOF
  8998. if ac_fn_c_try_link "$LINENO"; then :
  8999. lt_cv_cc_needs_belf=yes
  9000. else
  9001. lt_cv_cc_needs_belf=no
  9002. fi
  9003. rm -f core conftest.err conftest.$ac_objext \
  9004. conftest$ac_exeext conftest.$ac_ext
  9005. ac_ext=c
  9006. ac_cpp='$CPP $CPPFLAGS'
  9007. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  9008. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  9009. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  9010. fi
  9011. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
  9012. $as_echo "$lt_cv_cc_needs_belf" >&6; }
  9013. if test yes != "$lt_cv_cc_needs_belf"; then
  9014. # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
  9015. CFLAGS=$SAVE_CFLAGS
  9016. fi
  9017. ;;
  9018. *-*solaris*)
  9019. # Find out what ABI is being produced by ac_compile, and set linker
  9020. # options accordingly.
  9021. echo 'int i;' > conftest.$ac_ext
  9022. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  9023. (eval $ac_compile) 2>&5
  9024. ac_status=$?
  9025. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  9026. test $ac_status = 0; }; then
  9027. case `/usr/bin/file conftest.o` in
  9028. *64-bit*)
  9029. case $lt_cv_prog_gnu_ld in
  9030. yes*)
  9031. case $host in
  9032. i?86-*-solaris*|x86_64-*-solaris*)
  9033. LD="${LD-ld} -m elf_x86_64"
  9034. ;;
  9035. sparc*-*-solaris*)
  9036. LD="${LD-ld} -m elf64_sparc"
  9037. ;;
  9038. esac
  9039. # GNU ld 2.21 introduced _sol2 emulations. Use them if available.
  9040. if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
  9041. LD=${LD-ld}_sol2
  9042. fi
  9043. ;;
  9044. *)
  9045. if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
  9046. LD="${LD-ld} -64"
  9047. fi
  9048. ;;
  9049. esac
  9050. ;;
  9051. esac
  9052. fi
  9053. rm -rf conftest*
  9054. ;;
  9055. esac
  9056. need_locks=$enable_libtool_lock
  9057. if test -n "$ac_tool_prefix"; then
  9058. # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
  9059. set dummy ${ac_tool_prefix}mt; ac_word=$2
  9060. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  9061. $as_echo_n "checking for $ac_word... " >&6; }
  9062. if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
  9063. $as_echo_n "(cached) " >&6
  9064. else
  9065. if test -n "$MANIFEST_TOOL"; then
  9066. ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
  9067. else
  9068. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  9069. for as_dir in $PATH
  9070. do
  9071. IFS=$as_save_IFS
  9072. test -z "$as_dir" && as_dir=.
  9073. for ac_exec_ext in '' $ac_executable_extensions; do
  9074. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  9075. ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
  9076. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  9077. break 2
  9078. fi
  9079. done
  9080. done
  9081. IFS=$as_save_IFS
  9082. fi
  9083. fi
  9084. MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
  9085. if test -n "$MANIFEST_TOOL"; then
  9086. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
  9087. $as_echo "$MANIFEST_TOOL" >&6; }
  9088. else
  9089. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  9090. $as_echo "no" >&6; }
  9091. fi
  9092. fi
  9093. if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
  9094. ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
  9095. # Extract the first word of "mt", so it can be a program name with args.
  9096. set dummy mt; ac_word=$2
  9097. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  9098. $as_echo_n "checking for $ac_word... " >&6; }
  9099. if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
  9100. $as_echo_n "(cached) " >&6
  9101. else
  9102. if test -n "$ac_ct_MANIFEST_TOOL"; then
  9103. ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
  9104. else
  9105. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  9106. for as_dir in $PATH
  9107. do
  9108. IFS=$as_save_IFS
  9109. test -z "$as_dir" && as_dir=.
  9110. for ac_exec_ext in '' $ac_executable_extensions; do
  9111. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  9112. ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
  9113. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  9114. break 2
  9115. fi
  9116. done
  9117. done
  9118. IFS=$as_save_IFS
  9119. fi
  9120. fi
  9121. ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
  9122. if test -n "$ac_ct_MANIFEST_TOOL"; then
  9123. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
  9124. $as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
  9125. else
  9126. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  9127. $as_echo "no" >&6; }
  9128. fi
  9129. if test "x$ac_ct_MANIFEST_TOOL" = x; then
  9130. MANIFEST_TOOL=":"
  9131. else
  9132. case $cross_compiling:$ac_tool_warned in
  9133. yes:)
  9134. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  9135. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  9136. ac_tool_warned=yes ;;
  9137. esac
  9138. MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
  9139. fi
  9140. else
  9141. MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
  9142. fi
  9143. test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
  9144. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
  9145. $as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
  9146. if ${lt_cv_path_mainfest_tool+:} false; then :
  9147. $as_echo_n "(cached) " >&6
  9148. else
  9149. lt_cv_path_mainfest_tool=no
  9150. echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
  9151. $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
  9152. cat conftest.err >&5
  9153. if $GREP 'Manifest Tool' conftest.out > /dev/null; then
  9154. lt_cv_path_mainfest_tool=yes
  9155. fi
  9156. rm -f conftest*
  9157. fi
  9158. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
  9159. $as_echo "$lt_cv_path_mainfest_tool" >&6; }
  9160. if test yes != "$lt_cv_path_mainfest_tool"; then
  9161. MANIFEST_TOOL=:
  9162. fi
  9163. case $host_os in
  9164. rhapsody* | darwin*)
  9165. if test -n "$ac_tool_prefix"; then
  9166. # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
  9167. set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
  9168. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  9169. $as_echo_n "checking for $ac_word... " >&6; }
  9170. if ${ac_cv_prog_DSYMUTIL+:} false; then :
  9171. $as_echo_n "(cached) " >&6
  9172. else
  9173. if test -n "$DSYMUTIL"; then
  9174. ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
  9175. else
  9176. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  9177. for as_dir in $PATH
  9178. do
  9179. IFS=$as_save_IFS
  9180. test -z "$as_dir" && as_dir=.
  9181. for ac_exec_ext in '' $ac_executable_extensions; do
  9182. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  9183. ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
  9184. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  9185. break 2
  9186. fi
  9187. done
  9188. done
  9189. IFS=$as_save_IFS
  9190. fi
  9191. fi
  9192. DSYMUTIL=$ac_cv_prog_DSYMUTIL
  9193. if test -n "$DSYMUTIL"; then
  9194. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
  9195. $as_echo "$DSYMUTIL" >&6; }
  9196. else
  9197. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  9198. $as_echo "no" >&6; }
  9199. fi
  9200. fi
  9201. if test -z "$ac_cv_prog_DSYMUTIL"; then
  9202. ac_ct_DSYMUTIL=$DSYMUTIL
  9203. # Extract the first word of "dsymutil", so it can be a program name with args.
  9204. set dummy dsymutil; ac_word=$2
  9205. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  9206. $as_echo_n "checking for $ac_word... " >&6; }
  9207. if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
  9208. $as_echo_n "(cached) " >&6
  9209. else
  9210. if test -n "$ac_ct_DSYMUTIL"; then
  9211. ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
  9212. else
  9213. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  9214. for as_dir in $PATH
  9215. do
  9216. IFS=$as_save_IFS
  9217. test -z "$as_dir" && as_dir=.
  9218. for ac_exec_ext in '' $ac_executable_extensions; do
  9219. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  9220. ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
  9221. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  9222. break 2
  9223. fi
  9224. done
  9225. done
  9226. IFS=$as_save_IFS
  9227. fi
  9228. fi
  9229. ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
  9230. if test -n "$ac_ct_DSYMUTIL"; then
  9231. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
  9232. $as_echo "$ac_ct_DSYMUTIL" >&6; }
  9233. else
  9234. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  9235. $as_echo "no" >&6; }
  9236. fi
  9237. if test "x$ac_ct_DSYMUTIL" = x; then
  9238. DSYMUTIL=":"
  9239. else
  9240. case $cross_compiling:$ac_tool_warned in
  9241. yes:)
  9242. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  9243. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  9244. ac_tool_warned=yes ;;
  9245. esac
  9246. DSYMUTIL=$ac_ct_DSYMUTIL
  9247. fi
  9248. else
  9249. DSYMUTIL="$ac_cv_prog_DSYMUTIL"
  9250. fi
  9251. if test -n "$ac_tool_prefix"; then
  9252. # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
  9253. set dummy ${ac_tool_prefix}nmedit; ac_word=$2
  9254. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  9255. $as_echo_n "checking for $ac_word... " >&6; }
  9256. if ${ac_cv_prog_NMEDIT+:} false; then :
  9257. $as_echo_n "(cached) " >&6
  9258. else
  9259. if test -n "$NMEDIT"; then
  9260. ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
  9261. else
  9262. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  9263. for as_dir in $PATH
  9264. do
  9265. IFS=$as_save_IFS
  9266. test -z "$as_dir" && as_dir=.
  9267. for ac_exec_ext in '' $ac_executable_extensions; do
  9268. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  9269. ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
  9270. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  9271. break 2
  9272. fi
  9273. done
  9274. done
  9275. IFS=$as_save_IFS
  9276. fi
  9277. fi
  9278. NMEDIT=$ac_cv_prog_NMEDIT
  9279. if test -n "$NMEDIT"; then
  9280. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
  9281. $as_echo "$NMEDIT" >&6; }
  9282. else
  9283. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  9284. $as_echo "no" >&6; }
  9285. fi
  9286. fi
  9287. if test -z "$ac_cv_prog_NMEDIT"; then
  9288. ac_ct_NMEDIT=$NMEDIT
  9289. # Extract the first word of "nmedit", so it can be a program name with args.
  9290. set dummy nmedit; ac_word=$2
  9291. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  9292. $as_echo_n "checking for $ac_word... " >&6; }
  9293. if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
  9294. $as_echo_n "(cached) " >&6
  9295. else
  9296. if test -n "$ac_ct_NMEDIT"; then
  9297. ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
  9298. else
  9299. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  9300. for as_dir in $PATH
  9301. do
  9302. IFS=$as_save_IFS
  9303. test -z "$as_dir" && as_dir=.
  9304. for ac_exec_ext in '' $ac_executable_extensions; do
  9305. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  9306. ac_cv_prog_ac_ct_NMEDIT="nmedit"
  9307. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  9308. break 2
  9309. fi
  9310. done
  9311. done
  9312. IFS=$as_save_IFS
  9313. fi
  9314. fi
  9315. ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
  9316. if test -n "$ac_ct_NMEDIT"; then
  9317. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
  9318. $as_echo "$ac_ct_NMEDIT" >&6; }
  9319. else
  9320. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  9321. $as_echo "no" >&6; }
  9322. fi
  9323. if test "x$ac_ct_NMEDIT" = x; then
  9324. NMEDIT=":"
  9325. else
  9326. case $cross_compiling:$ac_tool_warned in
  9327. yes:)
  9328. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  9329. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  9330. ac_tool_warned=yes ;;
  9331. esac
  9332. NMEDIT=$ac_ct_NMEDIT
  9333. fi
  9334. else
  9335. NMEDIT="$ac_cv_prog_NMEDIT"
  9336. fi
  9337. if test -n "$ac_tool_prefix"; then
  9338. # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
  9339. set dummy ${ac_tool_prefix}lipo; ac_word=$2
  9340. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  9341. $as_echo_n "checking for $ac_word... " >&6; }
  9342. if ${ac_cv_prog_LIPO+:} false; then :
  9343. $as_echo_n "(cached) " >&6
  9344. else
  9345. if test -n "$LIPO"; then
  9346. ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
  9347. else
  9348. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  9349. for as_dir in $PATH
  9350. do
  9351. IFS=$as_save_IFS
  9352. test -z "$as_dir" && as_dir=.
  9353. for ac_exec_ext in '' $ac_executable_extensions; do
  9354. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  9355. ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
  9356. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  9357. break 2
  9358. fi
  9359. done
  9360. done
  9361. IFS=$as_save_IFS
  9362. fi
  9363. fi
  9364. LIPO=$ac_cv_prog_LIPO
  9365. if test -n "$LIPO"; then
  9366. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
  9367. $as_echo "$LIPO" >&6; }
  9368. else
  9369. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  9370. $as_echo "no" >&6; }
  9371. fi
  9372. fi
  9373. if test -z "$ac_cv_prog_LIPO"; then
  9374. ac_ct_LIPO=$LIPO
  9375. # Extract the first word of "lipo", so it can be a program name with args.
  9376. set dummy lipo; ac_word=$2
  9377. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  9378. $as_echo_n "checking for $ac_word... " >&6; }
  9379. if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
  9380. $as_echo_n "(cached) " >&6
  9381. else
  9382. if test -n "$ac_ct_LIPO"; then
  9383. ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
  9384. else
  9385. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  9386. for as_dir in $PATH
  9387. do
  9388. IFS=$as_save_IFS
  9389. test -z "$as_dir" && as_dir=.
  9390. for ac_exec_ext in '' $ac_executable_extensions; do
  9391. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  9392. ac_cv_prog_ac_ct_LIPO="lipo"
  9393. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  9394. break 2
  9395. fi
  9396. done
  9397. done
  9398. IFS=$as_save_IFS
  9399. fi
  9400. fi
  9401. ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
  9402. if test -n "$ac_ct_LIPO"; then
  9403. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
  9404. $as_echo "$ac_ct_LIPO" >&6; }
  9405. else
  9406. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  9407. $as_echo "no" >&6; }
  9408. fi
  9409. if test "x$ac_ct_LIPO" = x; then
  9410. LIPO=":"
  9411. else
  9412. case $cross_compiling:$ac_tool_warned in
  9413. yes:)
  9414. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  9415. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  9416. ac_tool_warned=yes ;;
  9417. esac
  9418. LIPO=$ac_ct_LIPO
  9419. fi
  9420. else
  9421. LIPO="$ac_cv_prog_LIPO"
  9422. fi
  9423. if test -n "$ac_tool_prefix"; then
  9424. # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
  9425. set dummy ${ac_tool_prefix}otool; ac_word=$2
  9426. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  9427. $as_echo_n "checking for $ac_word... " >&6; }
  9428. if ${ac_cv_prog_OTOOL+:} false; then :
  9429. $as_echo_n "(cached) " >&6
  9430. else
  9431. if test -n "$OTOOL"; then
  9432. ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
  9433. else
  9434. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  9435. for as_dir in $PATH
  9436. do
  9437. IFS=$as_save_IFS
  9438. test -z "$as_dir" && as_dir=.
  9439. for ac_exec_ext in '' $ac_executable_extensions; do
  9440. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  9441. ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
  9442. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  9443. break 2
  9444. fi
  9445. done
  9446. done
  9447. IFS=$as_save_IFS
  9448. fi
  9449. fi
  9450. OTOOL=$ac_cv_prog_OTOOL
  9451. if test -n "$OTOOL"; then
  9452. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
  9453. $as_echo "$OTOOL" >&6; }
  9454. else
  9455. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  9456. $as_echo "no" >&6; }
  9457. fi
  9458. fi
  9459. if test -z "$ac_cv_prog_OTOOL"; then
  9460. ac_ct_OTOOL=$OTOOL
  9461. # Extract the first word of "otool", so it can be a program name with args.
  9462. set dummy otool; ac_word=$2
  9463. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  9464. $as_echo_n "checking for $ac_word... " >&6; }
  9465. if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
  9466. $as_echo_n "(cached) " >&6
  9467. else
  9468. if test -n "$ac_ct_OTOOL"; then
  9469. ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
  9470. else
  9471. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  9472. for as_dir in $PATH
  9473. do
  9474. IFS=$as_save_IFS
  9475. test -z "$as_dir" && as_dir=.
  9476. for ac_exec_ext in '' $ac_executable_extensions; do
  9477. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  9478. ac_cv_prog_ac_ct_OTOOL="otool"
  9479. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  9480. break 2
  9481. fi
  9482. done
  9483. done
  9484. IFS=$as_save_IFS
  9485. fi
  9486. fi
  9487. ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
  9488. if test -n "$ac_ct_OTOOL"; then
  9489. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
  9490. $as_echo "$ac_ct_OTOOL" >&6; }
  9491. else
  9492. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  9493. $as_echo "no" >&6; }
  9494. fi
  9495. if test "x$ac_ct_OTOOL" = x; then
  9496. OTOOL=":"
  9497. else
  9498. case $cross_compiling:$ac_tool_warned in
  9499. yes:)
  9500. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  9501. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  9502. ac_tool_warned=yes ;;
  9503. esac
  9504. OTOOL=$ac_ct_OTOOL
  9505. fi
  9506. else
  9507. OTOOL="$ac_cv_prog_OTOOL"
  9508. fi
  9509. if test -n "$ac_tool_prefix"; then
  9510. # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
  9511. set dummy ${ac_tool_prefix}otool64; ac_word=$2
  9512. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  9513. $as_echo_n "checking for $ac_word... " >&6; }
  9514. if ${ac_cv_prog_OTOOL64+:} false; then :
  9515. $as_echo_n "(cached) " >&6
  9516. else
  9517. if test -n "$OTOOL64"; then
  9518. ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
  9519. else
  9520. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  9521. for as_dir in $PATH
  9522. do
  9523. IFS=$as_save_IFS
  9524. test -z "$as_dir" && as_dir=.
  9525. for ac_exec_ext in '' $ac_executable_extensions; do
  9526. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  9527. ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
  9528. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  9529. break 2
  9530. fi
  9531. done
  9532. done
  9533. IFS=$as_save_IFS
  9534. fi
  9535. fi
  9536. OTOOL64=$ac_cv_prog_OTOOL64
  9537. if test -n "$OTOOL64"; then
  9538. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
  9539. $as_echo "$OTOOL64" >&6; }
  9540. else
  9541. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  9542. $as_echo "no" >&6; }
  9543. fi
  9544. fi
  9545. if test -z "$ac_cv_prog_OTOOL64"; then
  9546. ac_ct_OTOOL64=$OTOOL64
  9547. # Extract the first word of "otool64", so it can be a program name with args.
  9548. set dummy otool64; ac_word=$2
  9549. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  9550. $as_echo_n "checking for $ac_word... " >&6; }
  9551. if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
  9552. $as_echo_n "(cached) " >&6
  9553. else
  9554. if test -n "$ac_ct_OTOOL64"; then
  9555. ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
  9556. else
  9557. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  9558. for as_dir in $PATH
  9559. do
  9560. IFS=$as_save_IFS
  9561. test -z "$as_dir" && as_dir=.
  9562. for ac_exec_ext in '' $ac_executable_extensions; do
  9563. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  9564. ac_cv_prog_ac_ct_OTOOL64="otool64"
  9565. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  9566. break 2
  9567. fi
  9568. done
  9569. done
  9570. IFS=$as_save_IFS
  9571. fi
  9572. fi
  9573. ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
  9574. if test -n "$ac_ct_OTOOL64"; then
  9575. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
  9576. $as_echo "$ac_ct_OTOOL64" >&6; }
  9577. else
  9578. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  9579. $as_echo "no" >&6; }
  9580. fi
  9581. if test "x$ac_ct_OTOOL64" = x; then
  9582. OTOOL64=":"
  9583. else
  9584. case $cross_compiling:$ac_tool_warned in
  9585. yes:)
  9586. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  9587. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  9588. ac_tool_warned=yes ;;
  9589. esac
  9590. OTOOL64=$ac_ct_OTOOL64
  9591. fi
  9592. else
  9593. OTOOL64="$ac_cv_prog_OTOOL64"
  9594. fi
  9595. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
  9596. $as_echo_n "checking for -single_module linker flag... " >&6; }
  9597. if ${lt_cv_apple_cc_single_mod+:} false; then :
  9598. $as_echo_n "(cached) " >&6
  9599. else
  9600. lt_cv_apple_cc_single_mod=no
  9601. if test -z "$LT_MULTI_MODULE"; then
  9602. # By default we will add the -single_module flag. You can override
  9603. # by either setting the environment variable LT_MULTI_MODULE
  9604. # non-empty at configure time, or by adding -multi_module to the
  9605. # link flags.
  9606. rm -rf libconftest.dylib*
  9607. echo "int foo(void){return 1;}" > conftest.c
  9608. echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
  9609. -dynamiclib -Wl,-single_module conftest.c" >&5
  9610. $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
  9611. -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
  9612. _lt_result=$?
  9613. # If there is a non-empty error log, and "single_module"
  9614. # appears in it, assume the flag caused a linker warning
  9615. if test -s conftest.err && $GREP single_module conftest.err; then
  9616. cat conftest.err >&5
  9617. # Otherwise, if the output was created with a 0 exit code from
  9618. # the compiler, it worked.
  9619. elif test -f libconftest.dylib && test 0 = "$_lt_result"; then
  9620. lt_cv_apple_cc_single_mod=yes
  9621. else
  9622. cat conftest.err >&5
  9623. fi
  9624. rm -rf libconftest.dylib*
  9625. rm -f conftest.*
  9626. fi
  9627. fi
  9628. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
  9629. $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
  9630. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
  9631. $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
  9632. if ${lt_cv_ld_exported_symbols_list+:} false; then :
  9633. $as_echo_n "(cached) " >&6
  9634. else
  9635. lt_cv_ld_exported_symbols_list=no
  9636. save_LDFLAGS=$LDFLAGS
  9637. echo "_main" > conftest.sym
  9638. LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
  9639. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9640. /* end confdefs.h. */
  9641. int
  9642. main ()
  9643. {
  9644. ;
  9645. return 0;
  9646. }
  9647. _ACEOF
  9648. if ac_fn_c_try_link "$LINENO"; then :
  9649. lt_cv_ld_exported_symbols_list=yes
  9650. else
  9651. lt_cv_ld_exported_symbols_list=no
  9652. fi
  9653. rm -f core conftest.err conftest.$ac_objext \
  9654. conftest$ac_exeext conftest.$ac_ext
  9655. LDFLAGS=$save_LDFLAGS
  9656. fi
  9657. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
  9658. $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
  9659. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
  9660. $as_echo_n "checking for -force_load linker flag... " >&6; }
  9661. if ${lt_cv_ld_force_load+:} false; then :
  9662. $as_echo_n "(cached) " >&6
  9663. else
  9664. lt_cv_ld_force_load=no
  9665. cat > conftest.c << _LT_EOF
  9666. int forced_loaded() { return 2;}
  9667. _LT_EOF
  9668. echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
  9669. $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
  9670. echo "$AR cru libconftest.a conftest.o" >&5
  9671. $AR cru libconftest.a conftest.o 2>&5
  9672. echo "$RANLIB libconftest.a" >&5
  9673. $RANLIB libconftest.a 2>&5
  9674. cat > conftest.c << _LT_EOF
  9675. int main() { return 0;}
  9676. _LT_EOF
  9677. echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
  9678. $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
  9679. _lt_result=$?
  9680. if test -s conftest.err && $GREP force_load conftest.err; then
  9681. cat conftest.err >&5
  9682. elif test -f conftest && test 0 = "$_lt_result" && $GREP forced_load conftest >/dev/null 2>&1; then
  9683. lt_cv_ld_force_load=yes
  9684. else
  9685. cat conftest.err >&5
  9686. fi
  9687. rm -f conftest.err libconftest.a conftest conftest.c
  9688. rm -rf conftest.dSYM
  9689. fi
  9690. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
  9691. $as_echo "$lt_cv_ld_force_load" >&6; }
  9692. case $host_os in
  9693. rhapsody* | darwin1.[012])
  9694. _lt_dar_allow_undefined='$wl-undefined ${wl}suppress' ;;
  9695. darwin1.*)
  9696. _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
  9697. darwin*) # darwin 5.x on
  9698. # if running on 10.5 or later, the deployment target defaults
  9699. # to the OS version, if on x86, and 10.4, the deployment
  9700. # target defaults to 10.4. Don't you love it?
  9701. case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
  9702. 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
  9703. _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
  9704. 10.[012][,.]*)
  9705. _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
  9706. 10.*)
  9707. _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
  9708. esac
  9709. ;;
  9710. esac
  9711. if test yes = "$lt_cv_apple_cc_single_mod"; then
  9712. _lt_dar_single_mod='$single_module'
  9713. fi
  9714. if test yes = "$lt_cv_ld_exported_symbols_list"; then
  9715. _lt_dar_export_syms=' $wl-exported_symbols_list,$output_objdir/$libname-symbols.expsym'
  9716. else
  9717. _lt_dar_export_syms='~$NMEDIT -s $output_objdir/$libname-symbols.expsym $lib'
  9718. fi
  9719. if test : != "$DSYMUTIL" && test no = "$lt_cv_ld_force_load"; then
  9720. _lt_dsymutil='~$DSYMUTIL $lib || :'
  9721. else
  9722. _lt_dsymutil=
  9723. fi
  9724. ;;
  9725. esac
  9726. # func_munge_path_list VARIABLE PATH
  9727. # -----------------------------------
  9728. # VARIABLE is name of variable containing _space_ separated list of
  9729. # directories to be munged by the contents of PATH, which is string
  9730. # having a format:
  9731. # "DIR[:DIR]:"
  9732. # string "DIR[ DIR]" will be prepended to VARIABLE
  9733. # ":DIR[:DIR]"
  9734. # string "DIR[ DIR]" will be appended to VARIABLE
  9735. # "DIRP[:DIRP]::[DIRA:]DIRA"
  9736. # string "DIRP[ DIRP]" will be prepended to VARIABLE and string
  9737. # "DIRA[ DIRA]" will be appended to VARIABLE
  9738. # "DIR[:DIR]"
  9739. # VARIABLE will be replaced by "DIR[ DIR]"
  9740. func_munge_path_list ()
  9741. {
  9742. case x$2 in
  9743. x)
  9744. ;;
  9745. *:)
  9746. eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
  9747. ;;
  9748. x:*)
  9749. eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
  9750. ;;
  9751. *::*)
  9752. eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
  9753. eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
  9754. ;;
  9755. *)
  9756. eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
  9757. ;;
  9758. esac
  9759. }
  9760. for ac_header in dlfcn.h
  9761. do :
  9762. ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
  9763. "
  9764. if test "x$ac_cv_header_dlfcn_h" = xyes; then :
  9765. cat >>confdefs.h <<_ACEOF
  9766. #define HAVE_DLFCN_H 1
  9767. _ACEOF
  9768. fi
  9769. done
  9770. # Set options
  9771. enable_dlopen=no
  9772. enable_win32_dll=no
  9773. # Check whether --enable-static was given.
  9774. if test "${enable_static+set}" = set; then :
  9775. enableval=$enable_static; p=${PACKAGE-default}
  9776. case $enableval in
  9777. yes) enable_static=yes ;;
  9778. no) enable_static=no ;;
  9779. *)
  9780. enable_static=no
  9781. # Look at the argument we got. We use all the common list separators.
  9782. lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
  9783. for pkg in $enableval; do
  9784. IFS=$lt_save_ifs
  9785. if test "X$pkg" = "X$p"; then
  9786. enable_static=yes
  9787. fi
  9788. done
  9789. IFS=$lt_save_ifs
  9790. ;;
  9791. esac
  9792. else
  9793. enable_static=yes
  9794. fi
  9795. # Check whether --with-pic was given.
  9796. if test "${with_pic+set}" = set; then :
  9797. withval=$with_pic; lt_p=${PACKAGE-default}
  9798. case $withval in
  9799. yes|no) pic_mode=$withval ;;
  9800. *)
  9801. pic_mode=default
  9802. # Look at the argument we got. We use all the common list separators.
  9803. lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
  9804. for lt_pkg in $withval; do
  9805. IFS=$lt_save_ifs
  9806. if test "X$lt_pkg" = "X$lt_p"; then
  9807. pic_mode=yes
  9808. fi
  9809. done
  9810. IFS=$lt_save_ifs
  9811. ;;
  9812. esac
  9813. else
  9814. pic_mode=default
  9815. fi
  9816. # Check whether --enable-fast-install was given.
  9817. if test "${enable_fast_install+set}" = set; then :
  9818. enableval=$enable_fast_install; p=${PACKAGE-default}
  9819. case $enableval in
  9820. yes) enable_fast_install=yes ;;
  9821. no) enable_fast_install=no ;;
  9822. *)
  9823. enable_fast_install=no
  9824. # Look at the argument we got. We use all the common list separators.
  9825. lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
  9826. for pkg in $enableval; do
  9827. IFS=$lt_save_ifs
  9828. if test "X$pkg" = "X$p"; then
  9829. enable_fast_install=yes
  9830. fi
  9831. done
  9832. IFS=$lt_save_ifs
  9833. ;;
  9834. esac
  9835. else
  9836. enable_fast_install=yes
  9837. fi
  9838. shared_archive_member_spec=
  9839. case $host,$enable_shared in
  9840. power*-*-aix[5-9]*,yes)
  9841. { $as_echo "$as_me:${as_lineno-$LINENO}: checking which variant of shared library versioning to provide" >&5
  9842. $as_echo_n "checking which variant of shared library versioning to provide... " >&6; }
  9843. # Check whether --with-aix-soname was given.
  9844. if test "${with_aix_soname+set}" = set; then :
  9845. withval=$with_aix_soname; case $withval in
  9846. aix|svr4|both)
  9847. ;;
  9848. *)
  9849. as_fn_error $? "Unknown argument to --with-aix-soname" "$LINENO" 5
  9850. ;;
  9851. esac
  9852. lt_cv_with_aix_soname=$with_aix_soname
  9853. else
  9854. if ${lt_cv_with_aix_soname+:} false; then :
  9855. $as_echo_n "(cached) " >&6
  9856. else
  9857. lt_cv_with_aix_soname=aix
  9858. fi
  9859. with_aix_soname=$lt_cv_with_aix_soname
  9860. fi
  9861. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_aix_soname" >&5
  9862. $as_echo "$with_aix_soname" >&6; }
  9863. if test aix != "$with_aix_soname"; then
  9864. # For the AIX way of multilib, we name the shared archive member
  9865. # based on the bitwidth used, traditionally 'shr.o' or 'shr_64.o',
  9866. # and 'shr.imp' or 'shr_64.imp', respectively, for the Import File.
  9867. # Even when GNU compilers ignore OBJECT_MODE but need '-maix64' flag,
  9868. # the AIX toolchain works better with OBJECT_MODE set (default 32).
  9869. if test 64 = "${OBJECT_MODE-32}"; then
  9870. shared_archive_member_spec=shr_64
  9871. else
  9872. shared_archive_member_spec=shr
  9873. fi
  9874. fi
  9875. ;;
  9876. *)
  9877. with_aix_soname=aix
  9878. ;;
  9879. esac
  9880. # This can be used to rebuild libtool when needed
  9881. LIBTOOL_DEPS=$ltmain
  9882. # Always use our own libtool.
  9883. LIBTOOL='$(SHELL) $(top_builddir)/libtool'
  9884. test -z "$LN_S" && LN_S="ln -s"
  9885. if test -n "${ZSH_VERSION+set}"; then
  9886. setopt NO_GLOB_SUBST
  9887. fi
  9888. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
  9889. $as_echo_n "checking for objdir... " >&6; }
  9890. if ${lt_cv_objdir+:} false; then :
  9891. $as_echo_n "(cached) " >&6
  9892. else
  9893. rm -f .libs 2>/dev/null
  9894. mkdir .libs 2>/dev/null
  9895. if test -d .libs; then
  9896. lt_cv_objdir=.libs
  9897. else
  9898. # MS-DOS does not allow filenames that begin with a dot.
  9899. lt_cv_objdir=_libs
  9900. fi
  9901. rmdir .libs 2>/dev/null
  9902. fi
  9903. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
  9904. $as_echo "$lt_cv_objdir" >&6; }
  9905. objdir=$lt_cv_objdir
  9906. cat >>confdefs.h <<_ACEOF
  9907. #define LT_OBJDIR "$lt_cv_objdir/"
  9908. _ACEOF
  9909. case $host_os in
  9910. aix3*)
  9911. # AIX sometimes has problems with the GCC collect2 program. For some
  9912. # reason, if we set the COLLECT_NAMES environment variable, the problems
  9913. # vanish in a puff of smoke.
  9914. if test set != "${COLLECT_NAMES+set}"; then
  9915. COLLECT_NAMES=
  9916. export COLLECT_NAMES
  9917. fi
  9918. ;;
  9919. esac
  9920. # Global variables:
  9921. ofile=libtool
  9922. can_build_shared=yes
  9923. # All known linkers require a '.a' archive for static linking (except MSVC,
  9924. # which needs '.lib').
  9925. libext=a
  9926. with_gnu_ld=$lt_cv_prog_gnu_ld
  9927. old_CC=$CC
  9928. old_CFLAGS=$CFLAGS
  9929. # Set sane defaults for various variables
  9930. test -z "$CC" && CC=cc
  9931. test -z "$LTCC" && LTCC=$CC
  9932. test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
  9933. test -z "$LD" && LD=ld
  9934. test -z "$ac_objext" && ac_objext=o
  9935. func_cc_basename $compiler
  9936. cc_basename=$func_cc_basename_result
  9937. # Only perform the check for file, if the check method requires it
  9938. test -z "$MAGIC_CMD" && MAGIC_CMD=file
  9939. case $deplibs_check_method in
  9940. file_magic*)
  9941. if test "$file_magic_cmd" = '$MAGIC_CMD'; then
  9942. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
  9943. $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
  9944. if ${lt_cv_path_MAGIC_CMD+:} false; then :
  9945. $as_echo_n "(cached) " >&6
  9946. else
  9947. case $MAGIC_CMD in
  9948. [\\/*] | ?:[\\/]*)
  9949. lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
  9950. ;;
  9951. *)
  9952. lt_save_MAGIC_CMD=$MAGIC_CMD
  9953. lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
  9954. ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
  9955. for ac_dir in $ac_dummy; do
  9956. IFS=$lt_save_ifs
  9957. test -z "$ac_dir" && ac_dir=.
  9958. if test -f "$ac_dir/${ac_tool_prefix}file"; then
  9959. lt_cv_path_MAGIC_CMD=$ac_dir/"${ac_tool_prefix}file"
  9960. if test -n "$file_magic_test_file"; then
  9961. case $deplibs_check_method in
  9962. "file_magic "*)
  9963. file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
  9964. MAGIC_CMD=$lt_cv_path_MAGIC_CMD
  9965. if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
  9966. $EGREP "$file_magic_regex" > /dev/null; then
  9967. :
  9968. else
  9969. cat <<_LT_EOF 1>&2
  9970. *** Warning: the command libtool uses to detect shared libraries,
  9971. *** $file_magic_cmd, produces output that libtool cannot recognize.
  9972. *** The result is that libtool may fail to recognize shared libraries
  9973. *** as such. This will affect the creation of libtool libraries that
  9974. *** depend on shared libraries, but programs linked with such libtool
  9975. *** libraries will work regardless of this problem. Nevertheless, you
  9976. *** may want to report the problem to your system manager and/or to
  9977. *** [email protected]
  9978. _LT_EOF
  9979. fi ;;
  9980. esac
  9981. fi
  9982. break
  9983. fi
  9984. done
  9985. IFS=$lt_save_ifs
  9986. MAGIC_CMD=$lt_save_MAGIC_CMD
  9987. ;;
  9988. esac
  9989. fi
  9990. MAGIC_CMD=$lt_cv_path_MAGIC_CMD
  9991. if test -n "$MAGIC_CMD"; then
  9992. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
  9993. $as_echo "$MAGIC_CMD" >&6; }
  9994. else
  9995. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  9996. $as_echo "no" >&6; }
  9997. fi
  9998. if test -z "$lt_cv_path_MAGIC_CMD"; then
  9999. if test -n "$ac_tool_prefix"; then
  10000. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
  10001. $as_echo_n "checking for file... " >&6; }
  10002. if ${lt_cv_path_MAGIC_CMD+:} false; then :
  10003. $as_echo_n "(cached) " >&6
  10004. else
  10005. case $MAGIC_CMD in
  10006. [\\/*] | ?:[\\/]*)
  10007. lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
  10008. ;;
  10009. *)
  10010. lt_save_MAGIC_CMD=$MAGIC_CMD
  10011. lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
  10012. ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
  10013. for ac_dir in $ac_dummy; do
  10014. IFS=$lt_save_ifs
  10015. test -z "$ac_dir" && ac_dir=.
  10016. if test -f "$ac_dir/file"; then
  10017. lt_cv_path_MAGIC_CMD=$ac_dir/"file"
  10018. if test -n "$file_magic_test_file"; then
  10019. case $deplibs_check_method in
  10020. "file_magic "*)
  10021. file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
  10022. MAGIC_CMD=$lt_cv_path_MAGIC_CMD
  10023. if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
  10024. $EGREP "$file_magic_regex" > /dev/null; then
  10025. :
  10026. else
  10027. cat <<_LT_EOF 1>&2
  10028. *** Warning: the command libtool uses to detect shared libraries,
  10029. *** $file_magic_cmd, produces output that libtool cannot recognize.
  10030. *** The result is that libtool may fail to recognize shared libraries
  10031. *** as such. This will affect the creation of libtool libraries that
  10032. *** depend on shared libraries, but programs linked with such libtool
  10033. *** libraries will work regardless of this problem. Nevertheless, you
  10034. *** may want to report the problem to your system manager and/or to
  10035. *** [email protected]
  10036. _LT_EOF
  10037. fi ;;
  10038. esac
  10039. fi
  10040. break
  10041. fi
  10042. done
  10043. IFS=$lt_save_ifs
  10044. MAGIC_CMD=$lt_save_MAGIC_CMD
  10045. ;;
  10046. esac
  10047. fi
  10048. MAGIC_CMD=$lt_cv_path_MAGIC_CMD
  10049. if test -n "$MAGIC_CMD"; then
  10050. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
  10051. $as_echo "$MAGIC_CMD" >&6; }
  10052. else
  10053. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  10054. $as_echo "no" >&6; }
  10055. fi
  10056. else
  10057. MAGIC_CMD=:
  10058. fi
  10059. fi
  10060. fi
  10061. ;;
  10062. esac
  10063. # Use C for the default configuration in the libtool script
  10064. lt_save_CC=$CC
  10065. ac_ext=c
  10066. ac_cpp='$CPP $CPPFLAGS'
  10067. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  10068. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  10069. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  10070. # Source file extension for C test sources.
  10071. ac_ext=c
  10072. # Object file extension for compiled C test sources.
  10073. objext=o
  10074. objext=$objext
  10075. # Code to be used in simple compile tests
  10076. lt_simple_compile_test_code="int some_variable = 0;"
  10077. # Code to be used in simple link tests
  10078. lt_simple_link_test_code='int main(){return(0);}'
  10079. # If no C compiler was specified, use CC.
  10080. LTCC=${LTCC-"$CC"}
  10081. # If no C compiler flags were specified, use CFLAGS.
  10082. LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
  10083. # Allow CC to be a program name with arguments.
  10084. compiler=$CC
  10085. # Save the default compiler, since it gets overwritten when the other
  10086. # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
  10087. compiler_DEFAULT=$CC
  10088. # save warnings/boilerplate of simple test code
  10089. ac_outfile=conftest.$ac_objext
  10090. echo "$lt_simple_compile_test_code" >conftest.$ac_ext
  10091. eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  10092. _lt_compiler_boilerplate=`cat conftest.err`
  10093. $RM conftest*
  10094. ac_outfile=conftest.$ac_objext
  10095. echo "$lt_simple_link_test_code" >conftest.$ac_ext
  10096. eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  10097. _lt_linker_boilerplate=`cat conftest.err`
  10098. $RM -r conftest*
  10099. if test -n "$compiler"; then
  10100. lt_prog_compiler_no_builtin_flag=
  10101. if test yes = "$GCC"; then
  10102. case $cc_basename in
  10103. nvcc*)
  10104. lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
  10105. *)
  10106. lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
  10107. esac
  10108. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
  10109. $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
  10110. if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
  10111. $as_echo_n "(cached) " >&6
  10112. else
  10113. lt_cv_prog_compiler_rtti_exceptions=no
  10114. ac_outfile=conftest.$ac_objext
  10115. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  10116. lt_compiler_flag="-fno-rtti -fno-exceptions" ## exclude from sc_useless_quotes_in_assignment
  10117. # Insert the option either (1) after the last *FLAGS variable, or
  10118. # (2) before a word containing "conftest.", or (3) at the end.
  10119. # Note that $ac_compile itself does not contain backslashes and begins
  10120. # with a dollar sign (not a hyphen), so the echo should work correctly.
  10121. # The option is referenced via a variable to avoid confusing sed.
  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>conftest.err)
  10128. ac_status=$?
  10129. cat conftest.err >&5
  10130. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10131. if (exit $ac_status) && test -s "$ac_outfile"; then
  10132. # The compiler can only warn and ignore the option if not recognized
  10133. # So say no if there are warnings other than the usual output.
  10134. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
  10135. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  10136. if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
  10137. lt_cv_prog_compiler_rtti_exceptions=yes
  10138. fi
  10139. fi
  10140. $RM conftest*
  10141. fi
  10142. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
  10143. $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
  10144. if test yes = "$lt_cv_prog_compiler_rtti_exceptions"; then
  10145. lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
  10146. else
  10147. :
  10148. fi
  10149. fi
  10150. lt_prog_compiler_wl=
  10151. lt_prog_compiler_pic=
  10152. lt_prog_compiler_static=
  10153. if test yes = "$GCC"; then
  10154. lt_prog_compiler_wl='-Wl,'
  10155. lt_prog_compiler_static='-static'
  10156. case $host_os in
  10157. aix*)
  10158. # All AIX code is PIC.
  10159. if test ia64 = "$host_cpu"; then
  10160. # AIX 5 now supports IA64 processor
  10161. lt_prog_compiler_static='-Bstatic'
  10162. fi
  10163. lt_prog_compiler_pic='-fPIC'
  10164. ;;
  10165. amigaos*)
  10166. case $host_cpu in
  10167. powerpc)
  10168. # see comment about AmigaOS4 .so support
  10169. lt_prog_compiler_pic='-fPIC'
  10170. ;;
  10171. m68k)
  10172. # FIXME: we need at least 68020 code to build shared libraries, but
  10173. # adding the '-m68020' flag to GCC prevents building anything better,
  10174. # like '-m68040'.
  10175. lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
  10176. ;;
  10177. esac
  10178. ;;
  10179. beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
  10180. # PIC is the default for these OSes.
  10181. ;;
  10182. mingw* | cygwin* | pw32* | os2* | cegcc*)
  10183. # This hack is so that the source file can tell whether it is being
  10184. # built for inclusion in a dll (and should export symbols for example).
  10185. # Although the cygwin gcc ignores -fPIC, still need this for old-style
  10186. # (--disable-auto-import) libraries
  10187. lt_prog_compiler_pic='-DDLL_EXPORT'
  10188. case $host_os in
  10189. os2*)
  10190. lt_prog_compiler_static='$wl-static'
  10191. ;;
  10192. esac
  10193. ;;
  10194. darwin* | rhapsody*)
  10195. # PIC is the default on this platform
  10196. # Common symbols not allowed in MH_DYLIB files
  10197. lt_prog_compiler_pic='-fno-common'
  10198. ;;
  10199. haiku*)
  10200. # PIC is the default for Haiku.
  10201. # The "-static" flag exists, but is broken.
  10202. lt_prog_compiler_static=
  10203. ;;
  10204. hpux*)
  10205. # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
  10206. # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
  10207. # sets the default TLS model and affects inlining.
  10208. case $host_cpu in
  10209. hppa*64*)
  10210. # +Z the default
  10211. ;;
  10212. *)
  10213. lt_prog_compiler_pic='-fPIC'
  10214. ;;
  10215. esac
  10216. ;;
  10217. interix[3-9]*)
  10218. # Interix 3.x gcc -fpic/-fPIC options generate broken code.
  10219. # Instead, we relocate shared libraries at runtime.
  10220. ;;
  10221. msdosdjgpp*)
  10222. # Just because we use GCC doesn't mean we suddenly get shared libraries
  10223. # on systems that don't support them.
  10224. lt_prog_compiler_can_build_shared=no
  10225. enable_shared=no
  10226. ;;
  10227. *nto* | *qnx*)
  10228. # QNX uses GNU C++, but need to define -shared option too, otherwise
  10229. # it will coredump.
  10230. lt_prog_compiler_pic='-fPIC -shared'
  10231. ;;
  10232. sysv4*MP*)
  10233. if test -d /usr/nec; then
  10234. lt_prog_compiler_pic=-Kconform_pic
  10235. fi
  10236. ;;
  10237. *)
  10238. lt_prog_compiler_pic='-fPIC'
  10239. ;;
  10240. esac
  10241. case $cc_basename in
  10242. nvcc*) # Cuda Compiler Driver 2.2
  10243. lt_prog_compiler_wl='-Xlinker '
  10244. if test -n "$lt_prog_compiler_pic"; then
  10245. lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
  10246. fi
  10247. ;;
  10248. esac
  10249. else
  10250. # PORTME Check for flag to pass linker flags through the system compiler.
  10251. case $host_os in
  10252. aix*)
  10253. lt_prog_compiler_wl='-Wl,'
  10254. if test ia64 = "$host_cpu"; then
  10255. # AIX 5 now supports IA64 processor
  10256. lt_prog_compiler_static='-Bstatic'
  10257. else
  10258. lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
  10259. fi
  10260. ;;
  10261. darwin* | rhapsody*)
  10262. # PIC is the default on this platform
  10263. # Common symbols not allowed in MH_DYLIB files
  10264. lt_prog_compiler_pic='-fno-common'
  10265. case $cc_basename in
  10266. nagfor*)
  10267. # NAG Fortran compiler
  10268. lt_prog_compiler_wl='-Wl,-Wl,,'
  10269. lt_prog_compiler_pic='-PIC'
  10270. lt_prog_compiler_static='-Bstatic'
  10271. ;;
  10272. esac
  10273. ;;
  10274. mingw* | cygwin* | pw32* | os2* | cegcc*)
  10275. # This hack is so that the source file can tell whether it is being
  10276. # built for inclusion in a dll (and should export symbols for example).
  10277. lt_prog_compiler_pic='-DDLL_EXPORT'
  10278. case $host_os in
  10279. os2*)
  10280. lt_prog_compiler_static='$wl-static'
  10281. ;;
  10282. esac
  10283. ;;
  10284. hpux9* | hpux10* | hpux11*)
  10285. lt_prog_compiler_wl='-Wl,'
  10286. # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
  10287. # not for PA HP-UX.
  10288. case $host_cpu in
  10289. hppa*64*|ia64*)
  10290. # +Z the default
  10291. ;;
  10292. *)
  10293. lt_prog_compiler_pic='+Z'
  10294. ;;
  10295. esac
  10296. # Is there a better lt_prog_compiler_static that works with the bundled CC?
  10297. lt_prog_compiler_static='$wl-a ${wl}archive'
  10298. ;;
  10299. irix5* | irix6* | nonstopux*)
  10300. lt_prog_compiler_wl='-Wl,'
  10301. # PIC (with -KPIC) is the default.
  10302. lt_prog_compiler_static='-non_shared'
  10303. ;;
  10304. linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
  10305. case $cc_basename in
  10306. # old Intel for x86_64, which still supported -KPIC.
  10307. ecc*)
  10308. lt_prog_compiler_wl='-Wl,'
  10309. lt_prog_compiler_pic='-KPIC'
  10310. lt_prog_compiler_static='-static'
  10311. ;;
  10312. # icc used to be incompatible with GCC.
  10313. # ICC 10 doesn't accept -KPIC any more.
  10314. icc* | ifort*)
  10315. lt_prog_compiler_wl='-Wl,'
  10316. lt_prog_compiler_pic='-fPIC'
  10317. lt_prog_compiler_static='-static'
  10318. ;;
  10319. # Lahey Fortran 8.1.
  10320. lf95*)
  10321. lt_prog_compiler_wl='-Wl,'
  10322. lt_prog_compiler_pic='--shared'
  10323. lt_prog_compiler_static='--static'
  10324. ;;
  10325. nagfor*)
  10326. # NAG Fortran compiler
  10327. lt_prog_compiler_wl='-Wl,-Wl,,'
  10328. lt_prog_compiler_pic='-PIC'
  10329. lt_prog_compiler_static='-Bstatic'
  10330. ;;
  10331. tcc*)
  10332. # Fabrice Bellard et al's Tiny C Compiler
  10333. lt_prog_compiler_wl='-Wl,'
  10334. lt_prog_compiler_pic='-fPIC'
  10335. lt_prog_compiler_static='-static'
  10336. ;;
  10337. pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
  10338. # Portland Group compilers (*not* the Pentium gcc compiler,
  10339. # which looks to be a dead project)
  10340. lt_prog_compiler_wl='-Wl,'
  10341. lt_prog_compiler_pic='-fpic'
  10342. lt_prog_compiler_static='-Bstatic'
  10343. ;;
  10344. ccc*)
  10345. lt_prog_compiler_wl='-Wl,'
  10346. # All Alpha code is PIC.
  10347. lt_prog_compiler_static='-non_shared'
  10348. ;;
  10349. xl* | bgxl* | bgf* | mpixl*)
  10350. # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
  10351. lt_prog_compiler_wl='-Wl,'
  10352. lt_prog_compiler_pic='-qpic'
  10353. lt_prog_compiler_static='-qstaticlink'
  10354. ;;
  10355. *)
  10356. case `$CC -V 2>&1 | sed 5q` in
  10357. *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
  10358. # Sun Fortran 8.3 passes all unrecognized flags to the linker
  10359. lt_prog_compiler_pic='-KPIC'
  10360. lt_prog_compiler_static='-Bstatic'
  10361. lt_prog_compiler_wl=''
  10362. ;;
  10363. *Sun\ F* | *Sun*Fortran*)
  10364. lt_prog_compiler_pic='-KPIC'
  10365. lt_prog_compiler_static='-Bstatic'
  10366. lt_prog_compiler_wl='-Qoption ld '
  10367. ;;
  10368. *Sun\ C*)
  10369. # Sun C 5.9
  10370. lt_prog_compiler_pic='-KPIC'
  10371. lt_prog_compiler_static='-Bstatic'
  10372. lt_prog_compiler_wl='-Wl,'
  10373. ;;
  10374. *Intel*\ [CF]*Compiler*)
  10375. lt_prog_compiler_wl='-Wl,'
  10376. lt_prog_compiler_pic='-fPIC'
  10377. lt_prog_compiler_static='-static'
  10378. ;;
  10379. *Portland\ Group*)
  10380. lt_prog_compiler_wl='-Wl,'
  10381. lt_prog_compiler_pic='-fpic'
  10382. lt_prog_compiler_static='-Bstatic'
  10383. ;;
  10384. esac
  10385. ;;
  10386. esac
  10387. ;;
  10388. newsos6)
  10389. lt_prog_compiler_pic='-KPIC'
  10390. lt_prog_compiler_static='-Bstatic'
  10391. ;;
  10392. *nto* | *qnx*)
  10393. # QNX uses GNU C++, but need to define -shared option too, otherwise
  10394. # it will coredump.
  10395. lt_prog_compiler_pic='-fPIC -shared'
  10396. ;;
  10397. osf3* | osf4* | osf5*)
  10398. lt_prog_compiler_wl='-Wl,'
  10399. # All OSF/1 code is PIC.
  10400. lt_prog_compiler_static='-non_shared'
  10401. ;;
  10402. rdos*)
  10403. lt_prog_compiler_static='-non_shared'
  10404. ;;
  10405. solaris*)
  10406. lt_prog_compiler_pic='-KPIC'
  10407. lt_prog_compiler_static='-Bstatic'
  10408. case $cc_basename in
  10409. f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
  10410. lt_prog_compiler_wl='-Qoption ld ';;
  10411. *)
  10412. lt_prog_compiler_wl='-Wl,';;
  10413. esac
  10414. ;;
  10415. sunos4*)
  10416. lt_prog_compiler_wl='-Qoption ld '
  10417. lt_prog_compiler_pic='-PIC'
  10418. lt_prog_compiler_static='-Bstatic'
  10419. ;;
  10420. sysv4 | sysv4.2uw2* | sysv4.3*)
  10421. lt_prog_compiler_wl='-Wl,'
  10422. lt_prog_compiler_pic='-KPIC'
  10423. lt_prog_compiler_static='-Bstatic'
  10424. ;;
  10425. sysv4*MP*)
  10426. if test -d /usr/nec; then
  10427. lt_prog_compiler_pic='-Kconform_pic'
  10428. lt_prog_compiler_static='-Bstatic'
  10429. fi
  10430. ;;
  10431. sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
  10432. lt_prog_compiler_wl='-Wl,'
  10433. lt_prog_compiler_pic='-KPIC'
  10434. lt_prog_compiler_static='-Bstatic'
  10435. ;;
  10436. unicos*)
  10437. lt_prog_compiler_wl='-Wl,'
  10438. lt_prog_compiler_can_build_shared=no
  10439. ;;
  10440. uts4*)
  10441. lt_prog_compiler_pic='-pic'
  10442. lt_prog_compiler_static='-Bstatic'
  10443. ;;
  10444. *)
  10445. lt_prog_compiler_can_build_shared=no
  10446. ;;
  10447. esac
  10448. fi
  10449. case $host_os in
  10450. # For platforms that do not support PIC, -DPIC is meaningless:
  10451. *djgpp*)
  10452. lt_prog_compiler_pic=
  10453. ;;
  10454. *)
  10455. lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
  10456. ;;
  10457. esac
  10458. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
  10459. $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
  10460. if ${lt_cv_prog_compiler_pic+:} false; then :
  10461. $as_echo_n "(cached) " >&6
  10462. else
  10463. lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
  10464. fi
  10465. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
  10466. $as_echo "$lt_cv_prog_compiler_pic" >&6; }
  10467. lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
  10468. #
  10469. # Check to make sure the PIC flag actually works.
  10470. #
  10471. if test -n "$lt_prog_compiler_pic"; then
  10472. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
  10473. $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
  10474. if ${lt_cv_prog_compiler_pic_works+:} false; then :
  10475. $as_echo_n "(cached) " >&6
  10476. else
  10477. lt_cv_prog_compiler_pic_works=no
  10478. ac_outfile=conftest.$ac_objext
  10479. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  10480. lt_compiler_flag="$lt_prog_compiler_pic -DPIC" ## exclude from sc_useless_quotes_in_assignment
  10481. # Insert the option either (1) after the last *FLAGS variable, or
  10482. # (2) before a word containing "conftest.", or (3) at the end.
  10483. # Note that $ac_compile itself does not contain backslashes and begins
  10484. # with a dollar sign (not a hyphen), so the echo should work correctly.
  10485. # The option is referenced via a variable to avoid confusing sed.
  10486. lt_compile=`echo "$ac_compile" | $SED \
  10487. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  10488. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  10489. -e 's:$: $lt_compiler_flag:'`
  10490. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  10491. (eval "$lt_compile" 2>conftest.err)
  10492. ac_status=$?
  10493. cat conftest.err >&5
  10494. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10495. if (exit $ac_status) && test -s "$ac_outfile"; then
  10496. # The compiler can only warn and ignore the option if not recognized
  10497. # So say no if there are warnings other than the usual output.
  10498. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
  10499. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  10500. if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
  10501. lt_cv_prog_compiler_pic_works=yes
  10502. fi
  10503. fi
  10504. $RM conftest*
  10505. fi
  10506. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
  10507. $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
  10508. if test yes = "$lt_cv_prog_compiler_pic_works"; then
  10509. case $lt_prog_compiler_pic in
  10510. "" | " "*) ;;
  10511. *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
  10512. esac
  10513. else
  10514. lt_prog_compiler_pic=
  10515. lt_prog_compiler_can_build_shared=no
  10516. fi
  10517. fi
  10518. #
  10519. # Check to make sure the static flag actually works.
  10520. #
  10521. wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
  10522. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
  10523. $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
  10524. if ${lt_cv_prog_compiler_static_works+:} false; then :
  10525. $as_echo_n "(cached) " >&6
  10526. else
  10527. lt_cv_prog_compiler_static_works=no
  10528. save_LDFLAGS=$LDFLAGS
  10529. LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
  10530. echo "$lt_simple_link_test_code" > conftest.$ac_ext
  10531. if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
  10532. # The linker can only warn and ignore the option if not recognized
  10533. # So say no if there are warnings
  10534. if test -s conftest.err; then
  10535. # Append any errors to the config.log.
  10536. cat conftest.err 1>&5
  10537. $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
  10538. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  10539. if diff conftest.exp conftest.er2 >/dev/null; then
  10540. lt_cv_prog_compiler_static_works=yes
  10541. fi
  10542. else
  10543. lt_cv_prog_compiler_static_works=yes
  10544. fi
  10545. fi
  10546. $RM -r conftest*
  10547. LDFLAGS=$save_LDFLAGS
  10548. fi
  10549. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
  10550. $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
  10551. if test yes = "$lt_cv_prog_compiler_static_works"; then
  10552. :
  10553. else
  10554. lt_prog_compiler_static=
  10555. fi
  10556. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
  10557. $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
  10558. if ${lt_cv_prog_compiler_c_o+:} false; then :
  10559. $as_echo_n "(cached) " >&6
  10560. else
  10561. lt_cv_prog_compiler_c_o=no
  10562. $RM -r conftest 2>/dev/null
  10563. mkdir conftest
  10564. cd conftest
  10565. mkdir out
  10566. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  10567. lt_compiler_flag="-o out/conftest2.$ac_objext"
  10568. # Insert the option either (1) after the last *FLAGS variable, or
  10569. # (2) before a word containing "conftest.", or (3) at the end.
  10570. # Note that $ac_compile itself does not contain backslashes and begins
  10571. # with a dollar sign (not a hyphen), so the echo should work correctly.
  10572. lt_compile=`echo "$ac_compile" | $SED \
  10573. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  10574. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  10575. -e 's:$: $lt_compiler_flag:'`
  10576. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  10577. (eval "$lt_compile" 2>out/conftest.err)
  10578. ac_status=$?
  10579. cat out/conftest.err >&5
  10580. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10581. if (exit $ac_status) && test -s out/conftest2.$ac_objext
  10582. then
  10583. # The compiler can only warn and ignore the option if not recognized
  10584. # So say no if there are warnings
  10585. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
  10586. $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
  10587. if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
  10588. lt_cv_prog_compiler_c_o=yes
  10589. fi
  10590. fi
  10591. chmod u+w . 2>&5
  10592. $RM conftest*
  10593. # SGI C++ compiler will create directory out/ii_files/ for
  10594. # template instantiation
  10595. test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
  10596. $RM out/* && rmdir out
  10597. cd ..
  10598. $RM -r conftest
  10599. $RM conftest*
  10600. fi
  10601. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
  10602. $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
  10603. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
  10604. $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
  10605. if ${lt_cv_prog_compiler_c_o+:} false; then :
  10606. $as_echo_n "(cached) " >&6
  10607. else
  10608. lt_cv_prog_compiler_c_o=no
  10609. $RM -r conftest 2>/dev/null
  10610. mkdir conftest
  10611. cd conftest
  10612. mkdir out
  10613. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  10614. lt_compiler_flag="-o out/conftest2.$ac_objext"
  10615. # Insert the option either (1) after the last *FLAGS variable, or
  10616. # (2) before a word containing "conftest.", or (3) at the end.
  10617. # Note that $ac_compile itself does not contain backslashes and begins
  10618. # with a dollar sign (not a hyphen), so the echo should work correctly.
  10619. lt_compile=`echo "$ac_compile" | $SED \
  10620. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  10621. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  10622. -e 's:$: $lt_compiler_flag:'`
  10623. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  10624. (eval "$lt_compile" 2>out/conftest.err)
  10625. ac_status=$?
  10626. cat out/conftest.err >&5
  10627. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10628. if (exit $ac_status) && test -s out/conftest2.$ac_objext
  10629. then
  10630. # The compiler can only warn and ignore the option if not recognized
  10631. # So say no if there are warnings
  10632. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
  10633. $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
  10634. if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
  10635. lt_cv_prog_compiler_c_o=yes
  10636. fi
  10637. fi
  10638. chmod u+w . 2>&5
  10639. $RM conftest*
  10640. # SGI C++ compiler will create directory out/ii_files/ for
  10641. # template instantiation
  10642. test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
  10643. $RM out/* && rmdir out
  10644. cd ..
  10645. $RM -r conftest
  10646. $RM conftest*
  10647. fi
  10648. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
  10649. $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
  10650. hard_links=nottested
  10651. if test no = "$lt_cv_prog_compiler_c_o" && test no != "$need_locks"; then
  10652. # do not overwrite the value of need_locks provided by the user
  10653. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
  10654. $as_echo_n "checking if we can lock with hard links... " >&6; }
  10655. hard_links=yes
  10656. $RM conftest*
  10657. ln conftest.a conftest.b 2>/dev/null && hard_links=no
  10658. touch conftest.a
  10659. ln conftest.a conftest.b 2>&5 || hard_links=no
  10660. ln conftest.a conftest.b 2>/dev/null && hard_links=no
  10661. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
  10662. $as_echo "$hard_links" >&6; }
  10663. if test no = "$hard_links"; then
  10664. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5
  10665. $as_echo "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;}
  10666. need_locks=warn
  10667. fi
  10668. else
  10669. need_locks=no
  10670. fi
  10671. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
  10672. $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
  10673. runpath_var=
  10674. allow_undefined_flag=
  10675. always_export_symbols=no
  10676. archive_cmds=
  10677. archive_expsym_cmds=
  10678. compiler_needs_object=no
  10679. enable_shared_with_static_runtimes=no
  10680. export_dynamic_flag_spec=
  10681. export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
  10682. hardcode_automatic=no
  10683. hardcode_direct=no
  10684. hardcode_direct_absolute=no
  10685. hardcode_libdir_flag_spec=
  10686. hardcode_libdir_separator=
  10687. hardcode_minus_L=no
  10688. hardcode_shlibpath_var=unsupported
  10689. inherit_rpath=no
  10690. link_all_deplibs=unknown
  10691. module_cmds=
  10692. module_expsym_cmds=
  10693. old_archive_from_new_cmds=
  10694. old_archive_from_expsyms_cmds=
  10695. thread_safe_flag_spec=
  10696. whole_archive_flag_spec=
  10697. # include_expsyms should be a list of space-separated symbols to be *always*
  10698. # included in the symbol list
  10699. include_expsyms=
  10700. # exclude_expsyms can be an extended regexp of symbols to exclude
  10701. # it will be wrapped by ' (' and ')$', so one must not match beginning or
  10702. # end of line. Example: 'a|bc|.*d.*' will exclude the symbols 'a' and 'bc',
  10703. # as well as any symbol that contains 'd'.
  10704. exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
  10705. # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
  10706. # platforms (ab)use it in PIC code, but their linkers get confused if
  10707. # the symbol is explicitly referenced. Since portable code cannot
  10708. # rely on this symbol name, it's probably fine to never include it in
  10709. # preloaded symbol tables.
  10710. # Exclude shared library initialization/finalization symbols.
  10711. extract_expsyms_cmds=
  10712. case $host_os in
  10713. cygwin* | mingw* | pw32* | cegcc*)
  10714. # FIXME: the MSVC++ port hasn't been tested in a loooong time
  10715. # When not using gcc, we currently assume that we are using
  10716. # Microsoft Visual C++.
  10717. if test yes != "$GCC"; then
  10718. with_gnu_ld=no
  10719. fi
  10720. ;;
  10721. interix*)
  10722. # we just hope/assume this is gcc and not c89 (= MSVC++)
  10723. with_gnu_ld=yes
  10724. ;;
  10725. openbsd* | bitrig*)
  10726. with_gnu_ld=no
  10727. ;;
  10728. esac
  10729. ld_shlibs=yes
  10730. # On some targets, GNU ld is compatible enough with the native linker
  10731. # that we're better off using the native interface for both.
  10732. lt_use_gnu_ld_interface=no
  10733. if test yes = "$with_gnu_ld"; then
  10734. case $host_os in
  10735. aix*)
  10736. # The AIX port of GNU ld has always aspired to compatibility
  10737. # with the native linker. However, as the warning in the GNU ld
  10738. # block says, versions before 2.19.5* couldn't really create working
  10739. # shared libraries, regardless of the interface used.
  10740. case `$LD -v 2>&1` in
  10741. *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
  10742. *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
  10743. *\ \(GNU\ Binutils\)\ [3-9]*) ;;
  10744. *)
  10745. lt_use_gnu_ld_interface=yes
  10746. ;;
  10747. esac
  10748. ;;
  10749. *)
  10750. lt_use_gnu_ld_interface=yes
  10751. ;;
  10752. esac
  10753. fi
  10754. if test yes = "$lt_use_gnu_ld_interface"; then
  10755. # If archive_cmds runs LD, not CC, wlarc should be empty
  10756. wlarc='$wl'
  10757. # Set some defaults for GNU ld with shared library support. These
  10758. # are reset later if shared libraries are not supported. Putting them
  10759. # here allows them to be overridden if necessary.
  10760. runpath_var=LD_RUN_PATH
  10761. hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
  10762. export_dynamic_flag_spec='$wl--export-dynamic'
  10763. # ancient GNU ld didn't support --whole-archive et. al.
  10764. if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
  10765. whole_archive_flag_spec=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'
  10766. else
  10767. whole_archive_flag_spec=
  10768. fi
  10769. supports_anon_versioning=no
  10770. case `$LD -v | $SED -e 's/(^)\+)\s\+//' 2>&1` in
  10771. *GNU\ gold*) supports_anon_versioning=yes ;;
  10772. *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
  10773. *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
  10774. *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
  10775. *\ 2.11.*) ;; # other 2.11 versions
  10776. *) supports_anon_versioning=yes ;;
  10777. esac
  10778. # See if GNU ld supports shared libraries.
  10779. case $host_os in
  10780. aix[3-9]*)
  10781. # On AIX/PPC, the GNU linker is very broken
  10782. if test ia64 != "$host_cpu"; then
  10783. ld_shlibs=no
  10784. cat <<_LT_EOF 1>&2
  10785. *** Warning: the GNU linker, at least up to release 2.19, is reported
  10786. *** to be unable to reliably create shared libraries on AIX.
  10787. *** Therefore, libtool is disabling shared libraries support. If you
  10788. *** really care for shared libraries, you may want to install binutils
  10789. *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
  10790. *** You will then need to restart the configuration process.
  10791. _LT_EOF
  10792. fi
  10793. ;;
  10794. amigaos*)
  10795. case $host_cpu in
  10796. powerpc)
  10797. # see comment about AmigaOS4 .so support
  10798. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
  10799. archive_expsym_cmds=''
  10800. ;;
  10801. m68k)
  10802. 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)'
  10803. hardcode_libdir_flag_spec='-L$libdir'
  10804. hardcode_minus_L=yes
  10805. ;;
  10806. esac
  10807. ;;
  10808. beos*)
  10809. if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  10810. allow_undefined_flag=unsupported
  10811. # Joseph Beckenbach <[email protected]> says some releases of gcc
  10812. # support --undefined. This deserves some investigation. FIXME
  10813. archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
  10814. else
  10815. ld_shlibs=no
  10816. fi
  10817. ;;
  10818. cygwin* | mingw* | pw32* | cegcc*)
  10819. # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
  10820. # as there is no search path for DLLs.
  10821. hardcode_libdir_flag_spec='-L$libdir'
  10822. export_dynamic_flag_spec='$wl--export-all-symbols'
  10823. allow_undefined_flag=unsupported
  10824. always_export_symbols=no
  10825. enable_shared_with_static_runtimes=yes
  10826. 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'
  10827. exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
  10828. if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
  10829. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
  10830. # If the export-symbols file already is a .def file, use it as
  10831. # is; otherwise, prepend EXPORTS...
  10832. archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then
  10833. cp $export_symbols $output_objdir/$soname.def;
  10834. else
  10835. echo EXPORTS > $output_objdir/$soname.def;
  10836. cat $export_symbols >> $output_objdir/$soname.def;
  10837. fi~
  10838. $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
  10839. else
  10840. ld_shlibs=no
  10841. fi
  10842. ;;
  10843. haiku*)
  10844. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
  10845. link_all_deplibs=yes
  10846. ;;
  10847. os2*)
  10848. hardcode_libdir_flag_spec='-L$libdir'
  10849. hardcode_minus_L=yes
  10850. allow_undefined_flag=unsupported
  10851. shrext_cmds=.dll
  10852. archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
  10853. $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
  10854. $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
  10855. $ECHO EXPORTS >> $output_objdir/$libname.def~
  10856. emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
  10857. $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
  10858. emximp -o $lib $output_objdir/$libname.def'
  10859. archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
  10860. $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
  10861. $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
  10862. $ECHO EXPORTS >> $output_objdir/$libname.def~
  10863. prefix_cmds="$SED"~
  10864. if test EXPORTS = "`$SED 1q $export_symbols`"; then
  10865. prefix_cmds="$prefix_cmds -e 1d";
  10866. fi~
  10867. prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
  10868. cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
  10869. $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
  10870. emximp -o $lib $output_objdir/$libname.def'
  10871. old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
  10872. enable_shared_with_static_runtimes=yes
  10873. ;;
  10874. interix[3-9]*)
  10875. hardcode_direct=no
  10876. hardcode_shlibpath_var=no
  10877. hardcode_libdir_flag_spec='$wl-rpath,$libdir'
  10878. export_dynamic_flag_spec='$wl-E'
  10879. # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
  10880. # Instead, shared libraries are loaded at an image base (0x10000000 by
  10881. # default) and relocated if they conflict, which is a slow very memory
  10882. # consuming and fragmenting process. To avoid this, we pick a random,
  10883. # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
  10884. # time. Moving up from 0x10000000 also allows more sbrk(2) space.
  10885. archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
  10886. 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'
  10887. ;;
  10888. gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
  10889. tmp_diet=no
  10890. if test linux-dietlibc = "$host_os"; then
  10891. case $cc_basename in
  10892. diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
  10893. esac
  10894. fi
  10895. if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
  10896. && test no = "$tmp_diet"
  10897. then
  10898. tmp_addflag=' $pic_flag'
  10899. tmp_sharedflag='-shared'
  10900. case $cc_basename,$host_cpu in
  10901. pgcc*) # Portland Group C compiler
  10902. 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'
  10903. tmp_addflag=' $pic_flag'
  10904. ;;
  10905. pgf77* | pgf90* | pgf95* | pgfortran*)
  10906. # Portland Group f77 and f90 compilers
  10907. 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'
  10908. tmp_addflag=' $pic_flag -Mnomain' ;;
  10909. ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
  10910. tmp_addflag=' -i_dynamic' ;;
  10911. efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
  10912. tmp_addflag=' -i_dynamic -nofor_main' ;;
  10913. ifc* | ifort*) # Intel Fortran compiler
  10914. tmp_addflag=' -nofor_main' ;;
  10915. lf95*) # Lahey Fortran 8.1
  10916. whole_archive_flag_spec=
  10917. tmp_sharedflag='--shared' ;;
  10918. nagfor*) # NAGFOR 5.3
  10919. tmp_sharedflag='-Wl,-shared' ;;
  10920. xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
  10921. tmp_sharedflag='-qmkshrobj'
  10922. tmp_addflag= ;;
  10923. nvcc*) # Cuda Compiler Driver 2.2
  10924. 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'
  10925. compiler_needs_object=yes
  10926. ;;
  10927. esac
  10928. case `$CC -V 2>&1 | sed 5q` in
  10929. *Sun\ C*) # Sun C 5.9
  10930. 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'
  10931. compiler_needs_object=yes
  10932. tmp_sharedflag='-G' ;;
  10933. *Sun\ F*) # Sun Fortran 8.3
  10934. tmp_sharedflag='-G' ;;
  10935. esac
  10936. archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
  10937. if test yes = "$supports_anon_versioning"; then
  10938. archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
  10939. cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
  10940. echo "local: *; };" >> $output_objdir/$libname.ver~
  10941. $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib'
  10942. fi
  10943. case $cc_basename in
  10944. tcc*)
  10945. export_dynamic_flag_spec='-rdynamic'
  10946. ;;
  10947. xlf* | bgf* | bgxlf* | mpixlf*)
  10948. # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
  10949. whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
  10950. hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
  10951. archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
  10952. if test yes = "$supports_anon_versioning"; then
  10953. archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
  10954. cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
  10955. echo "local: *; };" >> $output_objdir/$libname.ver~
  10956. $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
  10957. fi
  10958. ;;
  10959. esac
  10960. else
  10961. ld_shlibs=no
  10962. fi
  10963. ;;
  10964. netbsd*)
  10965. if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  10966. archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
  10967. wlarc=
  10968. else
  10969. archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
  10970. archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
  10971. fi
  10972. ;;
  10973. solaris*)
  10974. if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
  10975. ld_shlibs=no
  10976. cat <<_LT_EOF 1>&2
  10977. *** Warning: The releases 2.8.* of the GNU linker cannot reliably
  10978. *** create shared libraries on Solaris systems. Therefore, libtool
  10979. *** is disabling shared libraries support. We urge you to upgrade GNU
  10980. *** binutils to release 2.9.1 or newer. Another option is to modify
  10981. *** your PATH or compiler configuration so that the native linker is
  10982. *** used, and then restart.
  10983. _LT_EOF
  10984. elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  10985. archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
  10986. archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
  10987. else
  10988. ld_shlibs=no
  10989. fi
  10990. ;;
  10991. sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
  10992. case `$LD -v 2>&1` in
  10993. *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
  10994. ld_shlibs=no
  10995. cat <<_LT_EOF 1>&2
  10996. *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 cannot
  10997. *** reliably create shared libraries on SCO systems. Therefore, libtool
  10998. *** is disabling shared libraries support. We urge you to upgrade GNU
  10999. *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
  11000. *** your PATH or compiler configuration so that the native linker is
  11001. *** used, and then restart.
  11002. _LT_EOF
  11003. ;;
  11004. *)
  11005. # For security reasons, it is highly recommended that you always
  11006. # use absolute paths for naming shared libraries, and exclude the
  11007. # DT_RUNPATH tag from executables and libraries. But doing so
  11008. # requires that you compile everything twice, which is a pain.
  11009. if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  11010. hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
  11011. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
  11012. archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
  11013. else
  11014. ld_shlibs=no
  11015. fi
  11016. ;;
  11017. esac
  11018. ;;
  11019. sunos4*)
  11020. archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  11021. wlarc=
  11022. hardcode_direct=yes
  11023. hardcode_shlibpath_var=no
  11024. ;;
  11025. *)
  11026. if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  11027. archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
  11028. archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
  11029. else
  11030. ld_shlibs=no
  11031. fi
  11032. ;;
  11033. esac
  11034. if test no = "$ld_shlibs"; then
  11035. runpath_var=
  11036. hardcode_libdir_flag_spec=
  11037. export_dynamic_flag_spec=
  11038. whole_archive_flag_spec=
  11039. fi
  11040. else
  11041. # PORTME fill in a description of your system's linker (not GNU ld)
  11042. case $host_os in
  11043. aix3*)
  11044. allow_undefined_flag=unsupported
  11045. always_export_symbols=yes
  11046. 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'
  11047. # Note: this linker hardcodes the directories in LIBPATH if there
  11048. # are no directories specified by -L.
  11049. hardcode_minus_L=yes
  11050. if test yes = "$GCC" && test -z "$lt_prog_compiler_static"; then
  11051. # Neither direct hardcoding nor static linking is supported with a
  11052. # broken collect2.
  11053. hardcode_direct=unsupported
  11054. fi
  11055. ;;
  11056. aix[4-9]*)
  11057. if test ia64 = "$host_cpu"; then
  11058. # On IA64, the linker does run time linking by default, so we don't
  11059. # have to do anything special.
  11060. aix_use_runtimelinking=no
  11061. exp_sym_flag='-Bexport'
  11062. no_entry_flag=
  11063. else
  11064. # If we're using GNU nm, then we don't want the "-C" option.
  11065. # -C means demangle to GNU nm, but means don't demangle to AIX nm.
  11066. # Without the "-l" option, or with the "-B" option, AIX nm treats
  11067. # weak defined symbols like other global defined symbols, whereas
  11068. # GNU nm marks them as "W".
  11069. # While the 'weak' keyword is ignored in the Export File, we need
  11070. # it in the Import File for the 'aix-soname' feature, so we have
  11071. # to replace the "-B" option with "-P" for AIX nm.
  11072. if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
  11073. 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'
  11074. else
  11075. 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'
  11076. fi
  11077. aix_use_runtimelinking=no
  11078. # Test if we are trying to use run time linking or normal
  11079. # AIX style linking. If -brtl is somewhere in LDFLAGS, we
  11080. # have runtime linking enabled, and use it for executables.
  11081. # For shared libraries, we enable/disable runtime linking
  11082. # depending on the kind of the shared library created -
  11083. # when "with_aix_soname,aix_use_runtimelinking" is:
  11084. # "aix,no" lib.a(lib.so.V) shared, rtl:no, for executables
  11085. # "aix,yes" lib.so shared, rtl:yes, for executables
  11086. # lib.a static archive
  11087. # "both,no" lib.so.V(shr.o) shared, rtl:yes
  11088. # lib.a(lib.so.V) shared, rtl:no, for executables
  11089. # "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables
  11090. # lib.a(lib.so.V) shared, rtl:no
  11091. # "svr4,*" lib.so.V(shr.o) shared, rtl:yes, for executables
  11092. # lib.a static archive
  11093. case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
  11094. for ld_flag in $LDFLAGS; do
  11095. if (test x-brtl = "x$ld_flag" || test x-Wl,-brtl = "x$ld_flag"); then
  11096. aix_use_runtimelinking=yes
  11097. break
  11098. fi
  11099. done
  11100. if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then
  11101. # With aix-soname=svr4, we create the lib.so.V shared archives only,
  11102. # so we don't have lib.a shared libs to link our executables.
  11103. # We have to force runtime linking in this case.
  11104. aix_use_runtimelinking=yes
  11105. LDFLAGS="$LDFLAGS -Wl,-brtl"
  11106. fi
  11107. ;;
  11108. esac
  11109. exp_sym_flag='-bexport'
  11110. no_entry_flag='-bnoentry'
  11111. fi
  11112. # When large executables or shared objects are built, AIX ld can
  11113. # have problems creating the table of contents. If linking a library
  11114. # or program results in "error TOC overflow" add -mminimal-toc to
  11115. # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
  11116. # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
  11117. archive_cmds=''
  11118. hardcode_direct=yes
  11119. hardcode_direct_absolute=yes
  11120. hardcode_libdir_separator=':'
  11121. link_all_deplibs=yes
  11122. file_list_spec='$wl-f,'
  11123. case $with_aix_soname,$aix_use_runtimelinking in
  11124. aix,*) ;; # traditional, no import file
  11125. svr4,* | *,yes) # use import file
  11126. # The Import File defines what to hardcode.
  11127. hardcode_direct=no
  11128. hardcode_direct_absolute=no
  11129. ;;
  11130. esac
  11131. if test yes = "$GCC"; then
  11132. case $host_os in aix4.[012]|aix4.[012].*)
  11133. # We only want to do this on AIX 4.2 and lower, the check
  11134. # below for broken collect2 doesn't work under 4.3+
  11135. collect2name=`$CC -print-prog-name=collect2`
  11136. if test -f "$collect2name" &&
  11137. strings "$collect2name" | $GREP resolve_lib_name >/dev/null
  11138. then
  11139. # We have reworked collect2
  11140. :
  11141. else
  11142. # We have old collect2
  11143. hardcode_direct=unsupported
  11144. # It fails to find uninstalled libraries when the uninstalled
  11145. # path is not listed in the libpath. Setting hardcode_minus_L
  11146. # to unsupported forces relinking
  11147. hardcode_minus_L=yes
  11148. hardcode_libdir_flag_spec='-L$libdir'
  11149. hardcode_libdir_separator=
  11150. fi
  11151. ;;
  11152. esac
  11153. shared_flag='-shared'
  11154. if test yes = "$aix_use_runtimelinking"; then
  11155. shared_flag="$shared_flag "'$wl-G'
  11156. fi
  11157. # Need to ensure runtime linking is disabled for the traditional
  11158. # shared library, or the linker may eventually find shared libraries
  11159. # /with/ Import File - we do not want to mix them.
  11160. shared_flag_aix='-shared'
  11161. shared_flag_svr4='-shared $wl-G'
  11162. else
  11163. # not using gcc
  11164. if test ia64 = "$host_cpu"; then
  11165. # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
  11166. # chokes on -Wl,-G. The following line is correct:
  11167. shared_flag='-G'
  11168. else
  11169. if test yes = "$aix_use_runtimelinking"; then
  11170. shared_flag='$wl-G'
  11171. else
  11172. shared_flag='$wl-bM:SRE'
  11173. fi
  11174. shared_flag_aix='$wl-bM:SRE'
  11175. shared_flag_svr4='$wl-G'
  11176. fi
  11177. fi
  11178. export_dynamic_flag_spec='$wl-bexpall'
  11179. # It seems that -bexpall does not export symbols beginning with
  11180. # underscore (_), so it is better to generate a list of symbols to export.
  11181. always_export_symbols=yes
  11182. if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then
  11183. # Warning - without using the other runtime loading flags (-brtl),
  11184. # -berok will link without error, but may produce a broken library.
  11185. allow_undefined_flag='-berok'
  11186. # Determine the default libpath from the value encoded in an
  11187. # empty executable.
  11188. if test set = "${lt_cv_aix_libpath+set}"; then
  11189. aix_libpath=$lt_cv_aix_libpath
  11190. else
  11191. if ${lt_cv_aix_libpath_+:} false; then :
  11192. $as_echo_n "(cached) " >&6
  11193. else
  11194. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11195. /* end confdefs.h. */
  11196. int
  11197. main ()
  11198. {
  11199. ;
  11200. return 0;
  11201. }
  11202. _ACEOF
  11203. if ac_fn_c_try_link "$LINENO"; then :
  11204. lt_aix_libpath_sed='
  11205. /Import File Strings/,/^$/ {
  11206. /^0/ {
  11207. s/^0 *\([^ ]*\) *$/\1/
  11208. p
  11209. }
  11210. }'
  11211. lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  11212. # Check for a 64-bit object if we didn't find anything.
  11213. if test -z "$lt_cv_aix_libpath_"; then
  11214. lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  11215. fi
  11216. fi
  11217. rm -f core conftest.err conftest.$ac_objext \
  11218. conftest$ac_exeext conftest.$ac_ext
  11219. if test -z "$lt_cv_aix_libpath_"; then
  11220. lt_cv_aix_libpath_=/usr/lib:/lib
  11221. fi
  11222. fi
  11223. aix_libpath=$lt_cv_aix_libpath_
  11224. fi
  11225. hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
  11226. 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
  11227. else
  11228. if test ia64 = "$host_cpu"; then
  11229. hardcode_libdir_flag_spec='$wl-R $libdir:/usr/lib:/lib'
  11230. allow_undefined_flag="-z nodefs"
  11231. 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"
  11232. else
  11233. # Determine the default libpath from the value encoded in an
  11234. # empty executable.
  11235. if test set = "${lt_cv_aix_libpath+set}"; then
  11236. aix_libpath=$lt_cv_aix_libpath
  11237. else
  11238. if ${lt_cv_aix_libpath_+:} false; then :
  11239. $as_echo_n "(cached) " >&6
  11240. else
  11241. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11242. /* end confdefs.h. */
  11243. int
  11244. main ()
  11245. {
  11246. ;
  11247. return 0;
  11248. }
  11249. _ACEOF
  11250. if ac_fn_c_try_link "$LINENO"; then :
  11251. lt_aix_libpath_sed='
  11252. /Import File Strings/,/^$/ {
  11253. /^0/ {
  11254. s/^0 *\([^ ]*\) *$/\1/
  11255. p
  11256. }
  11257. }'
  11258. lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  11259. # Check for a 64-bit object if we didn't find anything.
  11260. if test -z "$lt_cv_aix_libpath_"; then
  11261. lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  11262. fi
  11263. fi
  11264. rm -f core conftest.err conftest.$ac_objext \
  11265. conftest$ac_exeext conftest.$ac_ext
  11266. if test -z "$lt_cv_aix_libpath_"; then
  11267. lt_cv_aix_libpath_=/usr/lib:/lib
  11268. fi
  11269. fi
  11270. aix_libpath=$lt_cv_aix_libpath_
  11271. fi
  11272. hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
  11273. # Warning - without using the other run time loading flags,
  11274. # -berok will link without error, but may produce a broken library.
  11275. no_undefined_flag=' $wl-bernotok'
  11276. allow_undefined_flag=' $wl-berok'
  11277. if test yes = "$with_gnu_ld"; then
  11278. # We only use this code for GNU lds that support --whole-archive.
  11279. whole_archive_flag_spec='$wl--whole-archive$convenience $wl--no-whole-archive'
  11280. else
  11281. # Exported symbols can be pulled into shared objects from archives
  11282. whole_archive_flag_spec='$convenience'
  11283. fi
  11284. archive_cmds_need_lc=yes
  11285. archive_expsym_cmds='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d'
  11286. # -brtl affects multiple linker settings, -berok does not and is overridden later
  11287. compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([, ]\\)%-berok\\1%g"`'
  11288. if test svr4 != "$with_aix_soname"; then
  11289. # This is similar to how AIX traditionally builds its shared libraries.
  11290. 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'
  11291. fi
  11292. if test aix != "$with_aix_soname"; then
  11293. 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'
  11294. else
  11295. # used by -dlpreopen to get the symbols
  11296. archive_expsym_cmds="$archive_expsym_cmds"'~$MV $output_objdir/$realname.d/$soname $output_objdir'
  11297. fi
  11298. archive_expsym_cmds="$archive_expsym_cmds"'~$RM -r $output_objdir/$realname.d'
  11299. fi
  11300. fi
  11301. ;;
  11302. amigaos*)
  11303. case $host_cpu in
  11304. powerpc)
  11305. # see comment about AmigaOS4 .so support
  11306. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
  11307. archive_expsym_cmds=''
  11308. ;;
  11309. m68k)
  11310. 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)'
  11311. hardcode_libdir_flag_spec='-L$libdir'
  11312. hardcode_minus_L=yes
  11313. ;;
  11314. esac
  11315. ;;
  11316. bsdi[45]*)
  11317. export_dynamic_flag_spec=-rdynamic
  11318. ;;
  11319. cygwin* | mingw* | pw32* | cegcc*)
  11320. # When not using gcc, we currently assume that we are using
  11321. # Microsoft Visual C++.
  11322. # hardcode_libdir_flag_spec is actually meaningless, as there is
  11323. # no search path for DLLs.
  11324. case $cc_basename in
  11325. cl*)
  11326. # Native MSVC
  11327. hardcode_libdir_flag_spec=' '
  11328. allow_undefined_flag=unsupported
  11329. always_export_symbols=yes
  11330. file_list_spec='@'
  11331. # Tell ltmain to make .lib files, not .a files.
  11332. libext=lib
  11333. # Tell ltmain to make .dll files, not .so files.
  11334. shrext_cmds=.dll
  11335. # FIXME: Setting linknames here is a bad hack.
  11336. archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames='
  11337. archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then
  11338. cp "$export_symbols" "$output_objdir/$soname.def";
  11339. echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp";
  11340. else
  11341. $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp;
  11342. fi~
  11343. $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
  11344. linknames='
  11345. # The linker will not automatically build a static lib if we build a DLL.
  11346. # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
  11347. enable_shared_with_static_runtimes=yes
  11348. exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
  11349. export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
  11350. # Don't use ranlib
  11351. old_postinstall_cmds='chmod 644 $oldlib'
  11352. postlink_cmds='lt_outputfile="@OUTPUT@"~
  11353. lt_tool_outputfile="@TOOL_OUTPUT@"~
  11354. case $lt_outputfile in
  11355. *.exe|*.EXE) ;;
  11356. *)
  11357. lt_outputfile=$lt_outputfile.exe
  11358. lt_tool_outputfile=$lt_tool_outputfile.exe
  11359. ;;
  11360. esac~
  11361. if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then
  11362. $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
  11363. $RM "$lt_outputfile.manifest";
  11364. fi'
  11365. ;;
  11366. *)
  11367. # Assume MSVC wrapper
  11368. hardcode_libdir_flag_spec=' '
  11369. allow_undefined_flag=unsupported
  11370. # Tell ltmain to make .lib files, not .a files.
  11371. libext=lib
  11372. # Tell ltmain to make .dll files, not .so files.
  11373. shrext_cmds=.dll
  11374. # FIXME: Setting linknames here is a bad hack.
  11375. archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
  11376. # The linker will automatically build a .lib file if we build a DLL.
  11377. old_archive_from_new_cmds='true'
  11378. # FIXME: Should let the user specify the lib program.
  11379. old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
  11380. enable_shared_with_static_runtimes=yes
  11381. ;;
  11382. esac
  11383. ;;
  11384. darwin* | rhapsody*)
  11385. archive_cmds_need_lc=no
  11386. hardcode_direct=no
  11387. hardcode_automatic=yes
  11388. hardcode_shlibpath_var=unsupported
  11389. if test yes = "$lt_cv_ld_force_load"; then
  11390. 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\"`'
  11391. else
  11392. whole_archive_flag_spec=''
  11393. fi
  11394. link_all_deplibs=yes
  11395. allow_undefined_flag=$_lt_dar_allow_undefined
  11396. case $cc_basename in
  11397. ifort*|nagfor*) _lt_dar_can_shared=yes ;;
  11398. *) _lt_dar_can_shared=$GCC ;;
  11399. esac
  11400. if test yes = "$_lt_dar_can_shared"; then
  11401. output_verbose_link_cmd=func_echo_all
  11402. archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dsymutil"
  11403. module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil"
  11404. 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"
  11405. 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"
  11406. else
  11407. ld_shlibs=no
  11408. fi
  11409. ;;
  11410. dgux*)
  11411. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  11412. hardcode_libdir_flag_spec='-L$libdir'
  11413. hardcode_shlibpath_var=no
  11414. ;;
  11415. # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
  11416. # support. Future versions do this automatically, but an explicit c++rt0.o
  11417. # does not break anything, and helps significantly (at the cost of a little
  11418. # extra space).
  11419. freebsd2.2*)
  11420. archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
  11421. hardcode_libdir_flag_spec='-R$libdir'
  11422. hardcode_direct=yes
  11423. hardcode_shlibpath_var=no
  11424. ;;
  11425. # Unfortunately, older versions of FreeBSD 2 do not have this feature.
  11426. freebsd2.*)
  11427. archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  11428. hardcode_direct=yes
  11429. hardcode_minus_L=yes
  11430. hardcode_shlibpath_var=no
  11431. ;;
  11432. # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
  11433. freebsd* | dragonfly*)
  11434. archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  11435. hardcode_libdir_flag_spec='-R$libdir'
  11436. hardcode_direct=yes
  11437. hardcode_shlibpath_var=no
  11438. ;;
  11439. hpux9*)
  11440. if test yes = "$GCC"; then
  11441. 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'
  11442. else
  11443. 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'
  11444. fi
  11445. hardcode_libdir_flag_spec='$wl+b $wl$libdir'
  11446. hardcode_libdir_separator=:
  11447. hardcode_direct=yes
  11448. # hardcode_minus_L: Not really in the search PATH,
  11449. # but as the default location of the library.
  11450. hardcode_minus_L=yes
  11451. export_dynamic_flag_spec='$wl-E'
  11452. ;;
  11453. hpux10*)
  11454. if test yes,no = "$GCC,$with_gnu_ld"; then
  11455. archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  11456. else
  11457. archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
  11458. fi
  11459. if test no = "$with_gnu_ld"; then
  11460. hardcode_libdir_flag_spec='$wl+b $wl$libdir'
  11461. hardcode_libdir_separator=:
  11462. hardcode_direct=yes
  11463. hardcode_direct_absolute=yes
  11464. export_dynamic_flag_spec='$wl-E'
  11465. # hardcode_minus_L: Not really in the search PATH,
  11466. # but as the default location of the library.
  11467. hardcode_minus_L=yes
  11468. fi
  11469. ;;
  11470. hpux11*)
  11471. if test yes,no = "$GCC,$with_gnu_ld"; then
  11472. case $host_cpu in
  11473. hppa*64*)
  11474. archive_cmds='$CC -shared $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
  11475. ;;
  11476. ia64*)
  11477. archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
  11478. ;;
  11479. *)
  11480. archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  11481. ;;
  11482. esac
  11483. else
  11484. case $host_cpu in
  11485. hppa*64*)
  11486. archive_cmds='$CC -b $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
  11487. ;;
  11488. ia64*)
  11489. archive_cmds='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
  11490. ;;
  11491. *)
  11492. # Older versions of the 11.00 compiler do not understand -b yet
  11493. # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
  11494. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
  11495. $as_echo_n "checking if $CC understands -b... " >&6; }
  11496. if ${lt_cv_prog_compiler__b+:} false; then :
  11497. $as_echo_n "(cached) " >&6
  11498. else
  11499. lt_cv_prog_compiler__b=no
  11500. save_LDFLAGS=$LDFLAGS
  11501. LDFLAGS="$LDFLAGS -b"
  11502. echo "$lt_simple_link_test_code" > conftest.$ac_ext
  11503. if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
  11504. # The linker can only warn and ignore the option if not recognized
  11505. # So say no if there are warnings
  11506. if test -s conftest.err; then
  11507. # Append any errors to the config.log.
  11508. cat conftest.err 1>&5
  11509. $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
  11510. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  11511. if diff conftest.exp conftest.er2 >/dev/null; then
  11512. lt_cv_prog_compiler__b=yes
  11513. fi
  11514. else
  11515. lt_cv_prog_compiler__b=yes
  11516. fi
  11517. fi
  11518. $RM -r conftest*
  11519. LDFLAGS=$save_LDFLAGS
  11520. fi
  11521. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
  11522. $as_echo "$lt_cv_prog_compiler__b" >&6; }
  11523. if test yes = "$lt_cv_prog_compiler__b"; then
  11524. archive_cmds='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  11525. else
  11526. archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
  11527. fi
  11528. ;;
  11529. esac
  11530. fi
  11531. if test no = "$with_gnu_ld"; then
  11532. hardcode_libdir_flag_spec='$wl+b $wl$libdir'
  11533. hardcode_libdir_separator=:
  11534. case $host_cpu in
  11535. hppa*64*|ia64*)
  11536. hardcode_direct=no
  11537. hardcode_shlibpath_var=no
  11538. ;;
  11539. *)
  11540. hardcode_direct=yes
  11541. hardcode_direct_absolute=yes
  11542. export_dynamic_flag_spec='$wl-E'
  11543. # hardcode_minus_L: Not really in the search PATH,
  11544. # but as the default location of the library.
  11545. hardcode_minus_L=yes
  11546. ;;
  11547. esac
  11548. fi
  11549. ;;
  11550. irix5* | irix6* | nonstopux*)
  11551. if test yes = "$GCC"; then
  11552. 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'
  11553. # Try to use the -exported_symbol ld option, if it does not
  11554. # work, assume that -exports_file does not work either and
  11555. # implicitly export all symbols.
  11556. # This should be the same for all languages, so no per-tag cache variable.
  11557. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
  11558. $as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
  11559. if ${lt_cv_irix_exported_symbol+:} false; then :
  11560. $as_echo_n "(cached) " >&6
  11561. else
  11562. save_LDFLAGS=$LDFLAGS
  11563. LDFLAGS="$LDFLAGS -shared $wl-exported_symbol ${wl}foo $wl-update_registry $wl/dev/null"
  11564. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11565. /* end confdefs.h. */
  11566. int foo (void) { return 0; }
  11567. _ACEOF
  11568. if ac_fn_c_try_link "$LINENO"; then :
  11569. lt_cv_irix_exported_symbol=yes
  11570. else
  11571. lt_cv_irix_exported_symbol=no
  11572. fi
  11573. rm -f core conftest.err conftest.$ac_objext \
  11574. conftest$ac_exeext conftest.$ac_ext
  11575. LDFLAGS=$save_LDFLAGS
  11576. fi
  11577. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
  11578. $as_echo "$lt_cv_irix_exported_symbol" >&6; }
  11579. if test yes = "$lt_cv_irix_exported_symbol"; then
  11580. 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'
  11581. fi
  11582. else
  11583. 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'
  11584. 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'
  11585. fi
  11586. archive_cmds_need_lc='no'
  11587. hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
  11588. hardcode_libdir_separator=:
  11589. inherit_rpath=yes
  11590. link_all_deplibs=yes
  11591. ;;
  11592. linux*)
  11593. case $cc_basename in
  11594. tcc*)
  11595. # Fabrice Bellard et al's Tiny C Compiler
  11596. ld_shlibs=yes
  11597. archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  11598. ;;
  11599. esac
  11600. ;;
  11601. netbsd*)
  11602. if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  11603. archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
  11604. else
  11605. archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
  11606. fi
  11607. hardcode_libdir_flag_spec='-R$libdir'
  11608. hardcode_direct=yes
  11609. hardcode_shlibpath_var=no
  11610. ;;
  11611. newsos6)
  11612. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  11613. hardcode_direct=yes
  11614. hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
  11615. hardcode_libdir_separator=:
  11616. hardcode_shlibpath_var=no
  11617. ;;
  11618. *nto* | *qnx*)
  11619. ;;
  11620. openbsd* | bitrig*)
  11621. if test -f /usr/libexec/ld.so; then
  11622. hardcode_direct=yes
  11623. hardcode_shlibpath_var=no
  11624. hardcode_direct_absolute=yes
  11625. if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
  11626. archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  11627. archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags $wl-retain-symbols-file,$export_symbols'
  11628. hardcode_libdir_flag_spec='$wl-rpath,$libdir'
  11629. export_dynamic_flag_spec='$wl-E'
  11630. else
  11631. archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  11632. hardcode_libdir_flag_spec='$wl-rpath,$libdir'
  11633. fi
  11634. else
  11635. ld_shlibs=no
  11636. fi
  11637. ;;
  11638. os2*)
  11639. hardcode_libdir_flag_spec='-L$libdir'
  11640. hardcode_minus_L=yes
  11641. allow_undefined_flag=unsupported
  11642. shrext_cmds=.dll
  11643. archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
  11644. $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
  11645. $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
  11646. $ECHO EXPORTS >> $output_objdir/$libname.def~
  11647. emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
  11648. $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
  11649. emximp -o $lib $output_objdir/$libname.def'
  11650. archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
  11651. $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
  11652. $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
  11653. $ECHO EXPORTS >> $output_objdir/$libname.def~
  11654. prefix_cmds="$SED"~
  11655. if test EXPORTS = "`$SED 1q $export_symbols`"; then
  11656. prefix_cmds="$prefix_cmds -e 1d";
  11657. fi~
  11658. prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
  11659. cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
  11660. $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
  11661. emximp -o $lib $output_objdir/$libname.def'
  11662. old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
  11663. enable_shared_with_static_runtimes=yes
  11664. ;;
  11665. osf3*)
  11666. if test yes = "$GCC"; then
  11667. allow_undefined_flag=' $wl-expect_unresolved $wl\*'
  11668. 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'
  11669. else
  11670. allow_undefined_flag=' -expect_unresolved \*'
  11671. 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'
  11672. fi
  11673. archive_cmds_need_lc='no'
  11674. hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
  11675. hardcode_libdir_separator=:
  11676. ;;
  11677. osf4* | osf5*) # as osf3* with the addition of -msym flag
  11678. if test yes = "$GCC"; then
  11679. allow_undefined_flag=' $wl-expect_unresolved $wl\*'
  11680. 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'
  11681. hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
  11682. else
  11683. allow_undefined_flag=' -expect_unresolved \*'
  11684. 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'
  11685. 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~
  11686. $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'
  11687. # Both c and cxx compiler support -rpath directly
  11688. hardcode_libdir_flag_spec='-rpath $libdir'
  11689. fi
  11690. archive_cmds_need_lc='no'
  11691. hardcode_libdir_separator=:
  11692. ;;
  11693. solaris*)
  11694. no_undefined_flag=' -z defs'
  11695. if test yes = "$GCC"; then
  11696. wlarc='$wl'
  11697. archive_cmds='$CC -shared $pic_flag $wl-z ${wl}text $wl-h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
  11698. archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  11699. $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'
  11700. else
  11701. case `$CC -V 2>&1` in
  11702. *"Compilers 5.0"*)
  11703. wlarc=''
  11704. archive_cmds='$LD -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $linker_flags'
  11705. archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  11706. $LD -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
  11707. ;;
  11708. *)
  11709. wlarc='$wl'
  11710. archive_cmds='$CC -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $compiler_flags'
  11711. archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  11712. $CC -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
  11713. ;;
  11714. esac
  11715. fi
  11716. hardcode_libdir_flag_spec='-R$libdir'
  11717. hardcode_shlibpath_var=no
  11718. case $host_os in
  11719. solaris2.[0-5] | solaris2.[0-5].*) ;;
  11720. *)
  11721. # The compiler driver will combine and reorder linker options,
  11722. # but understands '-z linker_flag'. GCC discards it without '$wl',
  11723. # but is careful enough not to reorder.
  11724. # Supported since Solaris 2.6 (maybe 2.5.1?)
  11725. if test yes = "$GCC"; then
  11726. whole_archive_flag_spec='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract'
  11727. else
  11728. whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
  11729. fi
  11730. ;;
  11731. esac
  11732. link_all_deplibs=yes
  11733. ;;
  11734. sunos4*)
  11735. if test sequent = "$host_vendor"; then
  11736. # Use $CC to link under sequent, because it throws in some extra .o
  11737. # files that make .init and .fini sections work.
  11738. archive_cmds='$CC -G $wl-h $soname -o $lib $libobjs $deplibs $compiler_flags'
  11739. else
  11740. archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
  11741. fi
  11742. hardcode_libdir_flag_spec='-L$libdir'
  11743. hardcode_direct=yes
  11744. hardcode_minus_L=yes
  11745. hardcode_shlibpath_var=no
  11746. ;;
  11747. sysv4)
  11748. case $host_vendor in
  11749. sni)
  11750. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  11751. hardcode_direct=yes # is this really true???
  11752. ;;
  11753. siemens)
  11754. ## LD is ld it makes a PLAMLIB
  11755. ## CC just makes a GrossModule.
  11756. archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
  11757. reload_cmds='$CC -r -o $output$reload_objs'
  11758. hardcode_direct=no
  11759. ;;
  11760. motorola)
  11761. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  11762. hardcode_direct=no #Motorola manual says yes, but my tests say they lie
  11763. ;;
  11764. esac
  11765. runpath_var='LD_RUN_PATH'
  11766. hardcode_shlibpath_var=no
  11767. ;;
  11768. sysv4.3*)
  11769. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  11770. hardcode_shlibpath_var=no
  11771. export_dynamic_flag_spec='-Bexport'
  11772. ;;
  11773. sysv4*MP*)
  11774. if test -d /usr/nec; then
  11775. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  11776. hardcode_shlibpath_var=no
  11777. runpath_var=LD_RUN_PATH
  11778. hardcode_runpath_var=yes
  11779. ld_shlibs=yes
  11780. fi
  11781. ;;
  11782. sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
  11783. no_undefined_flag='$wl-z,text'
  11784. archive_cmds_need_lc=no
  11785. hardcode_shlibpath_var=no
  11786. runpath_var='LD_RUN_PATH'
  11787. if test yes = "$GCC"; then
  11788. archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  11789. archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  11790. else
  11791. archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  11792. archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  11793. fi
  11794. ;;
  11795. sysv5* | sco3.2v5* | sco5v6*)
  11796. # Note: We CANNOT use -z defs as we might desire, because we do not
  11797. # link with -lc, and that would cause any symbols used from libc to
  11798. # always be unresolved, which means just about no library would
  11799. # ever link correctly. If we're not using GNU ld we use -z text
  11800. # though, which does catch some bad symbols but isn't as heavy-handed
  11801. # as -z defs.
  11802. no_undefined_flag='$wl-z,text'
  11803. allow_undefined_flag='$wl-z,nodefs'
  11804. archive_cmds_need_lc=no
  11805. hardcode_shlibpath_var=no
  11806. hardcode_libdir_flag_spec='$wl-R,$libdir'
  11807. hardcode_libdir_separator=':'
  11808. link_all_deplibs=yes
  11809. export_dynamic_flag_spec='$wl-Bexport'
  11810. runpath_var='LD_RUN_PATH'
  11811. if test yes = "$GCC"; then
  11812. archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  11813. archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  11814. else
  11815. archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  11816. archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  11817. fi
  11818. ;;
  11819. uts4*)
  11820. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  11821. hardcode_libdir_flag_spec='-L$libdir'
  11822. hardcode_shlibpath_var=no
  11823. ;;
  11824. *)
  11825. ld_shlibs=no
  11826. ;;
  11827. esac
  11828. if test sni = "$host_vendor"; then
  11829. case $host in
  11830. sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
  11831. export_dynamic_flag_spec='$wl-Blargedynsym'
  11832. ;;
  11833. esac
  11834. fi
  11835. fi
  11836. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
  11837. $as_echo "$ld_shlibs" >&6; }
  11838. test no = "$ld_shlibs" && can_build_shared=no
  11839. with_gnu_ld=$with_gnu_ld
  11840. #
  11841. # Do we need to explicitly link libc?
  11842. #
  11843. case "x$archive_cmds_need_lc" in
  11844. x|xyes)
  11845. # Assume -lc should be added
  11846. archive_cmds_need_lc=yes
  11847. if test yes,yes = "$GCC,$enable_shared"; then
  11848. case $archive_cmds in
  11849. *'~'*)
  11850. # FIXME: we may have to deal with multi-command sequences.
  11851. ;;
  11852. '$CC '*)
  11853. # Test whether the compiler implicitly links with -lc since on some
  11854. # systems, -lgcc has to come before -lc. If gcc already passes -lc
  11855. # to ld, don't add -lc before -lgcc.
  11856. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
  11857. $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
  11858. if ${lt_cv_archive_cmds_need_lc+:} false; then :
  11859. $as_echo_n "(cached) " >&6
  11860. else
  11861. $RM conftest*
  11862. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  11863. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  11864. (eval $ac_compile) 2>&5
  11865. ac_status=$?
  11866. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  11867. test $ac_status = 0; } 2>conftest.err; then
  11868. soname=conftest
  11869. lib=conftest
  11870. libobjs=conftest.$ac_objext
  11871. deplibs=
  11872. wl=$lt_prog_compiler_wl
  11873. pic_flag=$lt_prog_compiler_pic
  11874. compiler_flags=-v
  11875. linker_flags=-v
  11876. verstring=
  11877. output_objdir=.
  11878. libname=conftest
  11879. lt_save_allow_undefined_flag=$allow_undefined_flag
  11880. allow_undefined_flag=
  11881. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
  11882. (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
  11883. ac_status=$?
  11884. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  11885. test $ac_status = 0; }
  11886. then
  11887. lt_cv_archive_cmds_need_lc=no
  11888. else
  11889. lt_cv_archive_cmds_need_lc=yes
  11890. fi
  11891. allow_undefined_flag=$lt_save_allow_undefined_flag
  11892. else
  11893. cat conftest.err 1>&5
  11894. fi
  11895. $RM conftest*
  11896. fi
  11897. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
  11898. $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
  11899. archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
  11900. ;;
  11901. esac
  11902. fi
  11903. ;;
  11904. esac
  11905. { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
  11906. $as_echo_n "checking dynamic linker characteristics... " >&6; }
  11907. if test yes = "$GCC"; then
  11908. case $host_os in
  11909. darwin*) lt_awk_arg='/^libraries:/,/LR/' ;;
  11910. *) lt_awk_arg='/^libraries:/' ;;
  11911. esac
  11912. case $host_os in
  11913. mingw* | cegcc*) lt_sed_strip_eq='s|=\([A-Za-z]:\)|\1|g' ;;
  11914. *) lt_sed_strip_eq='s|=/|/|g' ;;
  11915. esac
  11916. lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
  11917. case $lt_search_path_spec in
  11918. *\;*)
  11919. # if the path contains ";" then we assume it to be the separator
  11920. # otherwise default to the standard path separator (i.e. ":") - it is
  11921. # assumed that no part of a normal pathname contains ";" but that should
  11922. # okay in the real world where ";" in dirpaths is itself problematic.
  11923. lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
  11924. ;;
  11925. *)
  11926. lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
  11927. ;;
  11928. esac
  11929. # Ok, now we have the path, separated by spaces, we can step through it
  11930. # and add multilib dir if necessary...
  11931. lt_tmp_lt_search_path_spec=
  11932. lt_multi_os_dir=/`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
  11933. # ...but if some path component already ends with the multilib dir we assume
  11934. # that all is fine and trust -print-search-dirs as is (GCC 4.2? or newer).
  11935. case "$lt_multi_os_dir; $lt_search_path_spec " in
  11936. "/; "* | "/.; "* | "/./; "* | *"$lt_multi_os_dir "* | *"$lt_multi_os_dir/ "*)
  11937. lt_multi_os_dir=
  11938. ;;
  11939. esac
  11940. for lt_sys_path in $lt_search_path_spec; do
  11941. if test -d "$lt_sys_path$lt_multi_os_dir"; then
  11942. lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path$lt_multi_os_dir"
  11943. elif test -n "$lt_multi_os_dir"; then
  11944. test -d "$lt_sys_path" && \
  11945. lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
  11946. fi
  11947. done
  11948. lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
  11949. BEGIN {RS = " "; FS = "/|\n";} {
  11950. lt_foo = "";
  11951. lt_count = 0;
  11952. for (lt_i = NF; lt_i > 0; lt_i--) {
  11953. if ($lt_i != "" && $lt_i != ".") {
  11954. if ($lt_i == "..") {
  11955. lt_count++;
  11956. } else {
  11957. if (lt_count == 0) {
  11958. lt_foo = "/" $lt_i lt_foo;
  11959. } else {
  11960. lt_count--;
  11961. }
  11962. }
  11963. }
  11964. }
  11965. if (lt_foo != "") { lt_freq[lt_foo]++; }
  11966. if (lt_freq[lt_foo] == 1) { print lt_foo; }
  11967. }'`
  11968. # AWK program above erroneously prepends '/' to C:/dos/paths
  11969. # for these hosts.
  11970. case $host_os in
  11971. mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
  11972. $SED 's|/\([A-Za-z]:\)|\1|g'` ;;
  11973. esac
  11974. sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
  11975. else
  11976. sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
  11977. fi
  11978. library_names_spec=
  11979. libname_spec='lib$name'
  11980. soname_spec=
  11981. shrext_cmds=.so
  11982. postinstall_cmds=
  11983. postuninstall_cmds=
  11984. finish_cmds=
  11985. finish_eval=
  11986. shlibpath_var=
  11987. shlibpath_overrides_runpath=unknown
  11988. version_type=none
  11989. dynamic_linker="$host_os ld.so"
  11990. sys_lib_dlsearch_path_spec="/lib /usr/lib"
  11991. need_lib_prefix=unknown
  11992. hardcode_into_libs=no
  11993. # when you set need_version to no, make sure it does not cause -set_version
  11994. # flags to be left without arguments
  11995. need_version=unknown
  11996. case $host_os in
  11997. aix3*)
  11998. version_type=linux # correct to gnu/linux during the next big refactor
  11999. library_names_spec='$libname$release$shared_ext$versuffix $libname.a'
  12000. shlibpath_var=LIBPATH
  12001. # AIX 3 has no versioning support, so we append a major version to the name.
  12002. soname_spec='$libname$release$shared_ext$major'
  12003. ;;
  12004. aix[4-9]*)
  12005. version_type=linux # correct to gnu/linux during the next big refactor
  12006. need_lib_prefix=no
  12007. need_version=no
  12008. hardcode_into_libs=yes
  12009. if test ia64 = "$host_cpu"; then
  12010. # AIX 5 supports IA64
  12011. library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext'
  12012. shlibpath_var=LD_LIBRARY_PATH
  12013. else
  12014. # With GCC up to 2.95.x, collect2 would create an import file
  12015. # for dependence libraries. The import file would start with
  12016. # the line '#! .'. This would cause the generated library to
  12017. # depend on '.', always an invalid library. This was fixed in
  12018. # development snapshots of GCC prior to 3.0.
  12019. case $host_os in
  12020. aix4 | aix4.[01] | aix4.[01].*)
  12021. if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
  12022. echo ' yes '
  12023. echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then
  12024. :
  12025. else
  12026. can_build_shared=no
  12027. fi
  12028. ;;
  12029. esac
  12030. # Using Import Files as archive members, it is possible to support
  12031. # filename-based versioning of shared library archives on AIX. While
  12032. # this would work for both with and without runtime linking, it will
  12033. # prevent static linking of such archives. So we do filename-based
  12034. # shared library versioning with .so extension only, which is used
  12035. # when both runtime linking and shared linking is enabled.
  12036. # Unfortunately, runtime linking may impact performance, so we do
  12037. # not want this to be the default eventually. Also, we use the
  12038. # versioned .so libs for executables only if there is the -brtl
  12039. # linker flag in LDFLAGS as well, or --with-aix-soname=svr4 only.
  12040. # To allow for filename-based versioning support, we need to create
  12041. # libNAME.so.V as an archive file, containing:
  12042. # *) an Import File, referring to the versioned filename of the
  12043. # archive as well as the shared archive member, telling the
  12044. # bitwidth (32 or 64) of that shared object, and providing the
  12045. # list of exported symbols of that shared object, eventually
  12046. # decorated with the 'weak' keyword
  12047. # *) the shared object with the F_LOADONLY flag set, to really avoid
  12048. # it being seen by the linker.
  12049. # At run time we better use the real file rather than another symlink,
  12050. # but for link time we create the symlink libNAME.so -> libNAME.so.V
  12051. case $with_aix_soname,$aix_use_runtimelinking in
  12052. # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct
  12053. # soname into executable. Probably we can add versioning support to
  12054. # collect2, so additional links can be useful in future.
  12055. aix,yes) # traditional libtool
  12056. dynamic_linker='AIX unversionable lib.so'
  12057. # If using run time linking (on AIX 4.2 or later) use lib<name>.so
  12058. # instead of lib<name>.a to let people know that these are not
  12059. # typical AIX shared libraries.
  12060. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  12061. ;;
  12062. aix,no) # traditional AIX only
  12063. dynamic_linker='AIX lib.a(lib.so.V)'
  12064. # We preserve .a as extension for shared libraries through AIX4.2
  12065. # and later when we are not doing run time linking.
  12066. library_names_spec='$libname$release.a $libname.a'
  12067. soname_spec='$libname$release$shared_ext$major'
  12068. ;;
  12069. svr4,*) # full svr4 only
  12070. dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o)"
  12071. library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
  12072. # We do not specify a path in Import Files, so LIBPATH fires.
  12073. shlibpath_overrides_runpath=yes
  12074. ;;
  12075. *,yes) # both, prefer svr4
  12076. dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o), lib.a(lib.so.V)"
  12077. library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
  12078. # unpreferred sharedlib libNAME.a needs extra handling
  12079. 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"'
  12080. 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"'
  12081. # We do not specify a path in Import Files, so LIBPATH fires.
  12082. shlibpath_overrides_runpath=yes
  12083. ;;
  12084. *,no) # both, prefer aix
  12085. dynamic_linker="AIX lib.a(lib.so.V), lib.so.V($shared_archive_member_spec.o)"
  12086. library_names_spec='$libname$release.a $libname.a'
  12087. soname_spec='$libname$release$shared_ext$major'
  12088. # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling
  12089. 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)'
  12090. 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"'
  12091. ;;
  12092. esac
  12093. shlibpath_var=LIBPATH
  12094. fi
  12095. ;;
  12096. amigaos*)
  12097. case $host_cpu in
  12098. powerpc)
  12099. # Since July 2007 AmigaOS4 officially supports .so libraries.
  12100. # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
  12101. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  12102. ;;
  12103. m68k)
  12104. library_names_spec='$libname.ixlibrary $libname.a'
  12105. # Create ${libname}_ixlibrary.a entries in /sys/libs.
  12106. 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'
  12107. ;;
  12108. esac
  12109. ;;
  12110. beos*)
  12111. library_names_spec='$libname$shared_ext'
  12112. dynamic_linker="$host_os ld.so"
  12113. shlibpath_var=LIBRARY_PATH
  12114. ;;
  12115. bsdi[45]*)
  12116. version_type=linux # correct to gnu/linux during the next big refactor
  12117. need_version=no
  12118. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  12119. soname_spec='$libname$release$shared_ext$major'
  12120. finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
  12121. shlibpath_var=LD_LIBRARY_PATH
  12122. sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
  12123. sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
  12124. # the default ld.so.conf also contains /usr/contrib/lib and
  12125. # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
  12126. # libtool to hard-code these into programs
  12127. ;;
  12128. cygwin* | mingw* | pw32* | cegcc*)
  12129. version_type=windows
  12130. shrext_cmds=.dll
  12131. need_version=no
  12132. need_lib_prefix=no
  12133. case $GCC,$cc_basename in
  12134. yes,*)
  12135. # gcc
  12136. library_names_spec='$libname.dll.a'
  12137. # DLL is installed to $(libdir)/../bin by postinstall_cmds
  12138. postinstall_cmds='base_file=`basename \$file`~
  12139. dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
  12140. dldir=$destdir/`dirname \$dlpath`~
  12141. test -d \$dldir || mkdir -p \$dldir~
  12142. $install_prog $dir/$dlname \$dldir/$dlname~
  12143. chmod a+x \$dldir/$dlname~
  12144. if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
  12145. eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
  12146. fi'
  12147. postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
  12148. dlpath=$dir/\$dldll~
  12149. $RM \$dlpath'
  12150. shlibpath_overrides_runpath=yes
  12151. case $host_os in
  12152. cygwin*)
  12153. # Cygwin DLLs use 'cyg' prefix rather than 'lib'
  12154. soname_spec='`echo $libname | sed -e 's/^lib/cyg/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
  12155. sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
  12156. ;;
  12157. mingw* | cegcc*)
  12158. # MinGW DLLs use traditional 'lib' prefix
  12159. soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
  12160. ;;
  12161. pw32*)
  12162. # pw32 DLLs use 'pw' prefix rather than 'lib'
  12163. library_names_spec='`echo $libname | sed -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
  12164. ;;
  12165. esac
  12166. dynamic_linker='Win32 ld.exe'
  12167. ;;
  12168. *,cl*)
  12169. # Native MSVC
  12170. libname_spec='$name'
  12171. soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
  12172. library_names_spec='$libname.dll.lib'
  12173. case $build_os in
  12174. mingw*)
  12175. sys_lib_search_path_spec=
  12176. lt_save_ifs=$IFS
  12177. IFS=';'
  12178. for lt_path in $LIB
  12179. do
  12180. IFS=$lt_save_ifs
  12181. # Let DOS variable expansion print the short 8.3 style file name.
  12182. lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
  12183. sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
  12184. done
  12185. IFS=$lt_save_ifs
  12186. # Convert to MSYS style.
  12187. sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
  12188. ;;
  12189. cygwin*)
  12190. # Convert to unix form, then to dos form, then back to unix form
  12191. # but this time dos style (no spaces!) so that the unix form looks
  12192. # like /cygdrive/c/PROGRA~1:/cygdr...
  12193. sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
  12194. sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
  12195. sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
  12196. ;;
  12197. *)
  12198. sys_lib_search_path_spec=$LIB
  12199. if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
  12200. # It is most probably a Windows format PATH.
  12201. sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
  12202. else
  12203. sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
  12204. fi
  12205. # FIXME: find the short name or the path components, as spaces are
  12206. # common. (e.g. "Program Files" -> "PROGRA~1")
  12207. ;;
  12208. esac
  12209. # DLL is installed to $(libdir)/../bin by postinstall_cmds
  12210. postinstall_cmds='base_file=`basename \$file`~
  12211. dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
  12212. dldir=$destdir/`dirname \$dlpath`~
  12213. test -d \$dldir || mkdir -p \$dldir~
  12214. $install_prog $dir/$dlname \$dldir/$dlname'
  12215. postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
  12216. dlpath=$dir/\$dldll~
  12217. $RM \$dlpath'
  12218. shlibpath_overrides_runpath=yes
  12219. dynamic_linker='Win32 link.exe'
  12220. ;;
  12221. *)
  12222. # Assume MSVC wrapper
  12223. library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib'
  12224. dynamic_linker='Win32 ld.exe'
  12225. ;;
  12226. esac
  12227. # FIXME: first we should search . and the directory the executable is in
  12228. shlibpath_var=PATH
  12229. ;;
  12230. darwin* | rhapsody*)
  12231. dynamic_linker="$host_os dyld"
  12232. version_type=darwin
  12233. need_lib_prefix=no
  12234. need_version=no
  12235. library_names_spec='$libname$release$major$shared_ext $libname$shared_ext'
  12236. soname_spec='$libname$release$major$shared_ext'
  12237. shlibpath_overrides_runpath=yes
  12238. shlibpath_var=DYLD_LIBRARY_PATH
  12239. shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
  12240. sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
  12241. sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
  12242. ;;
  12243. dgux*)
  12244. version_type=linux # correct to gnu/linux during the next big refactor
  12245. need_lib_prefix=no
  12246. need_version=no
  12247. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  12248. soname_spec='$libname$release$shared_ext$major'
  12249. shlibpath_var=LD_LIBRARY_PATH
  12250. ;;
  12251. freebsd* | dragonfly*)
  12252. # DragonFly does not have aout. When/if they implement a new
  12253. # versioning mechanism, adjust this.
  12254. if test -x /usr/bin/objformat; then
  12255. objformat=`/usr/bin/objformat`
  12256. else
  12257. case $host_os in
  12258. freebsd[23].*) objformat=aout ;;
  12259. *) objformat=elf ;;
  12260. esac
  12261. fi
  12262. version_type=freebsd-$objformat
  12263. case $version_type in
  12264. freebsd-elf*)
  12265. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  12266. soname_spec='$libname$release$shared_ext$major'
  12267. need_version=no
  12268. need_lib_prefix=no
  12269. ;;
  12270. freebsd-*)
  12271. library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
  12272. need_version=yes
  12273. ;;
  12274. esac
  12275. shlibpath_var=LD_LIBRARY_PATH
  12276. case $host_os in
  12277. freebsd2.*)
  12278. shlibpath_overrides_runpath=yes
  12279. ;;
  12280. freebsd3.[01]* | freebsdelf3.[01]*)
  12281. shlibpath_overrides_runpath=yes
  12282. hardcode_into_libs=yes
  12283. ;;
  12284. freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
  12285. freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
  12286. shlibpath_overrides_runpath=no
  12287. hardcode_into_libs=yes
  12288. ;;
  12289. *) # from 4.6 on, and DragonFly
  12290. shlibpath_overrides_runpath=yes
  12291. hardcode_into_libs=yes
  12292. ;;
  12293. esac
  12294. ;;
  12295. haiku*)
  12296. version_type=linux # correct to gnu/linux during the next big refactor
  12297. need_lib_prefix=no
  12298. need_version=no
  12299. dynamic_linker="$host_os runtime_loader"
  12300. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  12301. soname_spec='$libname$release$shared_ext$major'
  12302. shlibpath_var=LIBRARY_PATH
  12303. shlibpath_overrides_runpath=no
  12304. sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
  12305. hardcode_into_libs=yes
  12306. ;;
  12307. hpux9* | hpux10* | hpux11*)
  12308. # Give a soname corresponding to the major version so that dld.sl refuses to
  12309. # link against other versions.
  12310. version_type=sunos
  12311. need_lib_prefix=no
  12312. need_version=no
  12313. case $host_cpu in
  12314. ia64*)
  12315. shrext_cmds='.so'
  12316. hardcode_into_libs=yes
  12317. dynamic_linker="$host_os dld.so"
  12318. shlibpath_var=LD_LIBRARY_PATH
  12319. shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  12320. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  12321. soname_spec='$libname$release$shared_ext$major'
  12322. if test 32 = "$HPUX_IA64_MODE"; then
  12323. sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
  12324. sys_lib_dlsearch_path_spec=/usr/lib/hpux32
  12325. else
  12326. sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
  12327. sys_lib_dlsearch_path_spec=/usr/lib/hpux64
  12328. fi
  12329. ;;
  12330. hppa*64*)
  12331. shrext_cmds='.sl'
  12332. hardcode_into_libs=yes
  12333. dynamic_linker="$host_os dld.sl"
  12334. shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
  12335. shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  12336. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  12337. soname_spec='$libname$release$shared_ext$major'
  12338. sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
  12339. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  12340. ;;
  12341. *)
  12342. shrext_cmds='.sl'
  12343. dynamic_linker="$host_os dld.sl"
  12344. shlibpath_var=SHLIB_PATH
  12345. shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
  12346. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  12347. soname_spec='$libname$release$shared_ext$major'
  12348. ;;
  12349. esac
  12350. # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
  12351. postinstall_cmds='chmod 555 $lib'
  12352. # or fails outright, so override atomically:
  12353. install_override_mode=555
  12354. ;;
  12355. interix[3-9]*)
  12356. version_type=linux # correct to gnu/linux during the next big refactor
  12357. need_lib_prefix=no
  12358. need_version=no
  12359. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  12360. soname_spec='$libname$release$shared_ext$major'
  12361. dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
  12362. shlibpath_var=LD_LIBRARY_PATH
  12363. shlibpath_overrides_runpath=no
  12364. hardcode_into_libs=yes
  12365. ;;
  12366. irix5* | irix6* | nonstopux*)
  12367. case $host_os in
  12368. nonstopux*) version_type=nonstopux ;;
  12369. *)
  12370. if test yes = "$lt_cv_prog_gnu_ld"; then
  12371. version_type=linux # correct to gnu/linux during the next big refactor
  12372. else
  12373. version_type=irix
  12374. fi ;;
  12375. esac
  12376. need_lib_prefix=no
  12377. need_version=no
  12378. soname_spec='$libname$release$shared_ext$major'
  12379. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext'
  12380. case $host_os in
  12381. irix5* | nonstopux*)
  12382. libsuff= shlibsuff=
  12383. ;;
  12384. *)
  12385. case $LD in # libtool.m4 will add one of these switches to LD
  12386. *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
  12387. libsuff= shlibsuff= libmagic=32-bit;;
  12388. *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
  12389. libsuff=32 shlibsuff=N32 libmagic=N32;;
  12390. *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
  12391. libsuff=64 shlibsuff=64 libmagic=64-bit;;
  12392. *) libsuff= shlibsuff= libmagic=never-match;;
  12393. esac
  12394. ;;
  12395. esac
  12396. shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
  12397. shlibpath_overrides_runpath=no
  12398. sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff"
  12399. sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff"
  12400. hardcode_into_libs=yes
  12401. ;;
  12402. # No shared lib support for Linux oldld, aout, or coff.
  12403. linux*oldld* | linux*aout* | linux*coff*)
  12404. dynamic_linker=no
  12405. ;;
  12406. linux*android*)
  12407. version_type=none # Android doesn't support versioned libraries.
  12408. need_lib_prefix=no
  12409. need_version=no
  12410. library_names_spec='$libname$release$shared_ext'
  12411. soname_spec='$libname$release$shared_ext'
  12412. finish_cmds=
  12413. shlibpath_var=LD_LIBRARY_PATH
  12414. shlibpath_overrides_runpath=yes
  12415. # This implies no fast_install, which is unacceptable.
  12416. # Some rework will be needed to allow for fast_install
  12417. # before this can be enabled.
  12418. hardcode_into_libs=yes
  12419. dynamic_linker='Android linker'
  12420. # Don't embed -rpath directories since the linker doesn't support them.
  12421. hardcode_libdir_flag_spec='-L$libdir'
  12422. ;;
  12423. # This must be glibc/ELF.
  12424. linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
  12425. version_type=linux # correct to gnu/linux during the next big refactor
  12426. need_lib_prefix=no
  12427. need_version=no
  12428. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  12429. soname_spec='$libname$release$shared_ext$major'
  12430. finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
  12431. shlibpath_var=LD_LIBRARY_PATH
  12432. shlibpath_overrides_runpath=no
  12433. # Some binutils ld are patched to set DT_RUNPATH
  12434. if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
  12435. $as_echo_n "(cached) " >&6
  12436. else
  12437. lt_cv_shlibpath_overrides_runpath=no
  12438. save_LDFLAGS=$LDFLAGS
  12439. save_libdir=$libdir
  12440. eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
  12441. LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
  12442. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12443. /* end confdefs.h. */
  12444. int
  12445. main ()
  12446. {
  12447. ;
  12448. return 0;
  12449. }
  12450. _ACEOF
  12451. if ac_fn_c_try_link "$LINENO"; then :
  12452. if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
  12453. lt_cv_shlibpath_overrides_runpath=yes
  12454. fi
  12455. fi
  12456. rm -f core conftest.err conftest.$ac_objext \
  12457. conftest$ac_exeext conftest.$ac_ext
  12458. LDFLAGS=$save_LDFLAGS
  12459. libdir=$save_libdir
  12460. fi
  12461. shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
  12462. # This implies no fast_install, which is unacceptable.
  12463. # Some rework will be needed to allow for fast_install
  12464. # before this can be enabled.
  12465. hardcode_into_libs=yes
  12466. # Add ABI-specific directories to the system library path.
  12467. sys_lib_dlsearch_path_spec="/lib64 /usr/lib64 /lib /usr/lib"
  12468. # Ideally, we could use ldconfig to report *all* directores which are
  12469. # searched for libraries, however this is still not possible. Aside from not
  12470. # being certain /sbin/ldconfig is available, command
  12471. # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64,
  12472. # even though it is searched at run-time. Try to do the best guess by
  12473. # appending ld.so.conf contents (and includes) to the search path.
  12474. if test -f /etc/ld.so.conf; then
  12475. 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' ' '`
  12476. sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra"
  12477. fi
  12478. # We used to test for /lib/ld.so.1 and disable shared libraries on
  12479. # powerpc, because MkLinux only supported shared libraries with the
  12480. # GNU dynamic linker. Since this was broken with cross compilers,
  12481. # most powerpc-linux boxes support dynamic linking these days and
  12482. # people can always --disable-shared, the test was removed, and we
  12483. # assume the GNU/Linux dynamic linker is in use.
  12484. dynamic_linker='GNU/Linux ld.so'
  12485. ;;
  12486. netbsd*)
  12487. version_type=sunos
  12488. need_lib_prefix=no
  12489. need_version=no
  12490. if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  12491. library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
  12492. finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  12493. dynamic_linker='NetBSD (a.out) ld.so'
  12494. else
  12495. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  12496. soname_spec='$libname$release$shared_ext$major'
  12497. dynamic_linker='NetBSD ld.elf_so'
  12498. fi
  12499. shlibpath_var=LD_LIBRARY_PATH
  12500. shlibpath_overrides_runpath=yes
  12501. hardcode_into_libs=yes
  12502. ;;
  12503. newsos6)
  12504. version_type=linux # correct to gnu/linux during the next big refactor
  12505. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  12506. shlibpath_var=LD_LIBRARY_PATH
  12507. shlibpath_overrides_runpath=yes
  12508. ;;
  12509. *nto* | *qnx*)
  12510. version_type=qnx
  12511. need_lib_prefix=no
  12512. need_version=no
  12513. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  12514. soname_spec='$libname$release$shared_ext$major'
  12515. shlibpath_var=LD_LIBRARY_PATH
  12516. shlibpath_overrides_runpath=no
  12517. hardcode_into_libs=yes
  12518. dynamic_linker='ldqnx.so'
  12519. ;;
  12520. openbsd* | bitrig*)
  12521. version_type=sunos
  12522. sys_lib_dlsearch_path_spec=/usr/lib
  12523. need_lib_prefix=no
  12524. if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
  12525. need_version=no
  12526. else
  12527. need_version=yes
  12528. fi
  12529. library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
  12530. finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  12531. shlibpath_var=LD_LIBRARY_PATH
  12532. shlibpath_overrides_runpath=yes
  12533. ;;
  12534. os2*)
  12535. libname_spec='$name'
  12536. version_type=windows
  12537. shrext_cmds=.dll
  12538. need_version=no
  12539. need_lib_prefix=no
  12540. # OS/2 can only load a DLL with a base name of 8 characters or less.
  12541. soname_spec='`test -n "$os2dllname" && libname="$os2dllname";
  12542. v=$($ECHO $release$versuffix | tr -d .-);
  12543. n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _);
  12544. $ECHO $n$v`$shared_ext'
  12545. library_names_spec='${libname}_dll.$libext'
  12546. dynamic_linker='OS/2 ld.exe'
  12547. shlibpath_var=BEGINLIBPATH
  12548. sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
  12549. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  12550. postinstall_cmds='base_file=`basename \$file`~
  12551. dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~
  12552. dldir=$destdir/`dirname \$dlpath`~
  12553. test -d \$dldir || mkdir -p \$dldir~
  12554. $install_prog $dir/$dlname \$dldir/$dlname~
  12555. chmod a+x \$dldir/$dlname~
  12556. if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
  12557. eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
  12558. fi'
  12559. postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~
  12560. dlpath=$dir/\$dldll~
  12561. $RM \$dlpath'
  12562. ;;
  12563. osf3* | osf4* | osf5*)
  12564. version_type=osf
  12565. need_lib_prefix=no
  12566. need_version=no
  12567. soname_spec='$libname$release$shared_ext$major'
  12568. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  12569. shlibpath_var=LD_LIBRARY_PATH
  12570. sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
  12571. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  12572. ;;
  12573. rdos*)
  12574. dynamic_linker=no
  12575. ;;
  12576. solaris*)
  12577. version_type=linux # correct to gnu/linux during the next big refactor
  12578. need_lib_prefix=no
  12579. need_version=no
  12580. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  12581. soname_spec='$libname$release$shared_ext$major'
  12582. shlibpath_var=LD_LIBRARY_PATH
  12583. shlibpath_overrides_runpath=yes
  12584. hardcode_into_libs=yes
  12585. # ldd complains unless libraries are executable
  12586. postinstall_cmds='chmod +x $lib'
  12587. ;;
  12588. sunos4*)
  12589. version_type=sunos
  12590. library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
  12591. finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
  12592. shlibpath_var=LD_LIBRARY_PATH
  12593. shlibpath_overrides_runpath=yes
  12594. if test yes = "$with_gnu_ld"; then
  12595. need_lib_prefix=no
  12596. fi
  12597. need_version=yes
  12598. ;;
  12599. sysv4 | sysv4.3*)
  12600. version_type=linux # correct to gnu/linux during the next big refactor
  12601. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  12602. soname_spec='$libname$release$shared_ext$major'
  12603. shlibpath_var=LD_LIBRARY_PATH
  12604. case $host_vendor in
  12605. sni)
  12606. shlibpath_overrides_runpath=no
  12607. need_lib_prefix=no
  12608. runpath_var=LD_RUN_PATH
  12609. ;;
  12610. siemens)
  12611. need_lib_prefix=no
  12612. ;;
  12613. motorola)
  12614. need_lib_prefix=no
  12615. need_version=no
  12616. shlibpath_overrides_runpath=no
  12617. sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
  12618. ;;
  12619. esac
  12620. ;;
  12621. sysv4*MP*)
  12622. if test -d /usr/nec; then
  12623. version_type=linux # correct to gnu/linux during the next big refactor
  12624. library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext'
  12625. soname_spec='$libname$shared_ext.$major'
  12626. shlibpath_var=LD_LIBRARY_PATH
  12627. fi
  12628. ;;
  12629. sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
  12630. version_type=sco
  12631. need_lib_prefix=no
  12632. need_version=no
  12633. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext'
  12634. soname_spec='$libname$release$shared_ext$major'
  12635. shlibpath_var=LD_LIBRARY_PATH
  12636. shlibpath_overrides_runpath=yes
  12637. hardcode_into_libs=yes
  12638. if test yes = "$with_gnu_ld"; then
  12639. sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
  12640. else
  12641. sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
  12642. case $host_os in
  12643. sco3.2v5*)
  12644. sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
  12645. ;;
  12646. esac
  12647. fi
  12648. sys_lib_dlsearch_path_spec='/usr/lib'
  12649. ;;
  12650. tpf*)
  12651. # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
  12652. version_type=linux # correct to gnu/linux during the next big refactor
  12653. need_lib_prefix=no
  12654. need_version=no
  12655. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  12656. shlibpath_var=LD_LIBRARY_PATH
  12657. shlibpath_overrides_runpath=no
  12658. hardcode_into_libs=yes
  12659. ;;
  12660. uts4*)
  12661. version_type=linux # correct to gnu/linux during the next big refactor
  12662. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  12663. soname_spec='$libname$release$shared_ext$major'
  12664. shlibpath_var=LD_LIBRARY_PATH
  12665. ;;
  12666. *)
  12667. dynamic_linker=no
  12668. ;;
  12669. esac
  12670. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
  12671. $as_echo "$dynamic_linker" >&6; }
  12672. test no = "$dynamic_linker" && can_build_shared=no
  12673. variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
  12674. if test yes = "$GCC"; then
  12675. variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
  12676. fi
  12677. if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then
  12678. sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec
  12679. fi
  12680. if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then
  12681. sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec
  12682. fi
  12683. # remember unaugmented sys_lib_dlsearch_path content for libtool script decls...
  12684. configure_time_dlsearch_path=$sys_lib_dlsearch_path_spec
  12685. # ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code
  12686. func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH"
  12687. # to be used as default LT_SYS_LIBRARY_PATH value in generated libtool
  12688. configure_time_lt_sys_library_path=$LT_SYS_LIBRARY_PATH
  12689. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
  12690. $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
  12691. hardcode_action=
  12692. if test -n "$hardcode_libdir_flag_spec" ||
  12693. test -n "$runpath_var" ||
  12694. test yes = "$hardcode_automatic"; then
  12695. # We can hardcode non-existent directories.
  12696. if test no != "$hardcode_direct" &&
  12697. # If the only mechanism to avoid hardcoding is shlibpath_var, we
  12698. # have to relink, otherwise we might link with an installed library
  12699. # when we should be linking with a yet-to-be-installed one
  12700. ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, )" &&
  12701. test no != "$hardcode_minus_L"; then
  12702. # Linking always hardcodes the temporary library directory.
  12703. hardcode_action=relink
  12704. else
  12705. # We can link without hardcoding, and we can hardcode nonexisting dirs.
  12706. hardcode_action=immediate
  12707. fi
  12708. else
  12709. # We cannot hardcode anything, or else we can only hardcode existing
  12710. # directories.
  12711. hardcode_action=unsupported
  12712. fi
  12713. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
  12714. $as_echo "$hardcode_action" >&6; }
  12715. if test relink = "$hardcode_action" ||
  12716. test yes = "$inherit_rpath"; then
  12717. # Fast installation is not supported
  12718. enable_fast_install=no
  12719. elif test yes = "$shlibpath_overrides_runpath" ||
  12720. test no = "$enable_shared"; then
  12721. # Fast installation is not necessary
  12722. enable_fast_install=needless
  12723. fi
  12724. if test yes != "$enable_dlopen"; then
  12725. enable_dlopen=unknown
  12726. enable_dlopen_self=unknown
  12727. enable_dlopen_self_static=unknown
  12728. else
  12729. lt_cv_dlopen=no
  12730. lt_cv_dlopen_libs=
  12731. case $host_os in
  12732. beos*)
  12733. lt_cv_dlopen=load_add_on
  12734. lt_cv_dlopen_libs=
  12735. lt_cv_dlopen_self=yes
  12736. ;;
  12737. mingw* | pw32* | cegcc*)
  12738. lt_cv_dlopen=LoadLibrary
  12739. lt_cv_dlopen_libs=
  12740. ;;
  12741. cygwin*)
  12742. lt_cv_dlopen=dlopen
  12743. lt_cv_dlopen_libs=
  12744. ;;
  12745. darwin*)
  12746. # if libdl is installed we need to link against it
  12747. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
  12748. $as_echo_n "checking for dlopen in -ldl... " >&6; }
  12749. if ${ac_cv_lib_dl_dlopen+:} false; then :
  12750. $as_echo_n "(cached) " >&6
  12751. else
  12752. ac_check_lib_save_LIBS=$LIBS
  12753. LIBS="-ldl $LIBS"
  12754. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12755. /* end confdefs.h. */
  12756. /* Override any GCC internal prototype to avoid an error.
  12757. Use char because int might match the return type of a GCC
  12758. builtin and then its argument prototype would still apply. */
  12759. #ifdef __cplusplus
  12760. extern "C"
  12761. #endif
  12762. char dlopen ();
  12763. int
  12764. main ()
  12765. {
  12766. return dlopen ();
  12767. ;
  12768. return 0;
  12769. }
  12770. _ACEOF
  12771. if ac_fn_c_try_link "$LINENO"; then :
  12772. ac_cv_lib_dl_dlopen=yes
  12773. else
  12774. ac_cv_lib_dl_dlopen=no
  12775. fi
  12776. rm -f core conftest.err conftest.$ac_objext \
  12777. conftest$ac_exeext conftest.$ac_ext
  12778. LIBS=$ac_check_lib_save_LIBS
  12779. fi
  12780. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
  12781. $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
  12782. if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
  12783. lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
  12784. else
  12785. lt_cv_dlopen=dyld
  12786. lt_cv_dlopen_libs=
  12787. lt_cv_dlopen_self=yes
  12788. fi
  12789. ;;
  12790. tpf*)
  12791. # Don't try to run any link tests for TPF. We know it's impossible
  12792. # because TPF is a cross-compiler, and we know how we open DSOs.
  12793. lt_cv_dlopen=dlopen
  12794. lt_cv_dlopen_libs=
  12795. lt_cv_dlopen_self=no
  12796. ;;
  12797. *)
  12798. ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
  12799. if test "x$ac_cv_func_shl_load" = xyes; then :
  12800. lt_cv_dlopen=shl_load
  12801. else
  12802. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
  12803. $as_echo_n "checking for shl_load in -ldld... " >&6; }
  12804. if ${ac_cv_lib_dld_shl_load+:} false; then :
  12805. $as_echo_n "(cached) " >&6
  12806. else
  12807. ac_check_lib_save_LIBS=$LIBS
  12808. LIBS="-ldld $LIBS"
  12809. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12810. /* end confdefs.h. */
  12811. /* Override any GCC internal prototype to avoid an error.
  12812. Use char because int might match the return type of a GCC
  12813. builtin and then its argument prototype would still apply. */
  12814. #ifdef __cplusplus
  12815. extern "C"
  12816. #endif
  12817. char shl_load ();
  12818. int
  12819. main ()
  12820. {
  12821. return shl_load ();
  12822. ;
  12823. return 0;
  12824. }
  12825. _ACEOF
  12826. if ac_fn_c_try_link "$LINENO"; then :
  12827. ac_cv_lib_dld_shl_load=yes
  12828. else
  12829. ac_cv_lib_dld_shl_load=no
  12830. fi
  12831. rm -f core conftest.err conftest.$ac_objext \
  12832. conftest$ac_exeext conftest.$ac_ext
  12833. LIBS=$ac_check_lib_save_LIBS
  12834. fi
  12835. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
  12836. $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
  12837. if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
  12838. lt_cv_dlopen=shl_load lt_cv_dlopen_libs=-ldld
  12839. else
  12840. ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
  12841. if test "x$ac_cv_func_dlopen" = xyes; then :
  12842. lt_cv_dlopen=dlopen
  12843. else
  12844. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
  12845. $as_echo_n "checking for dlopen in -ldl... " >&6; }
  12846. if ${ac_cv_lib_dl_dlopen+:} false; then :
  12847. $as_echo_n "(cached) " >&6
  12848. else
  12849. ac_check_lib_save_LIBS=$LIBS
  12850. LIBS="-ldl $LIBS"
  12851. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12852. /* end confdefs.h. */
  12853. /* Override any GCC internal prototype to avoid an error.
  12854. Use char because int might match the return type of a GCC
  12855. builtin and then its argument prototype would still apply. */
  12856. #ifdef __cplusplus
  12857. extern "C"
  12858. #endif
  12859. char dlopen ();
  12860. int
  12861. main ()
  12862. {
  12863. return dlopen ();
  12864. ;
  12865. return 0;
  12866. }
  12867. _ACEOF
  12868. if ac_fn_c_try_link "$LINENO"; then :
  12869. ac_cv_lib_dl_dlopen=yes
  12870. else
  12871. ac_cv_lib_dl_dlopen=no
  12872. fi
  12873. rm -f core conftest.err conftest.$ac_objext \
  12874. conftest$ac_exeext conftest.$ac_ext
  12875. LIBS=$ac_check_lib_save_LIBS
  12876. fi
  12877. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
  12878. $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
  12879. if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
  12880. lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
  12881. else
  12882. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
  12883. $as_echo_n "checking for dlopen in -lsvld... " >&6; }
  12884. if ${ac_cv_lib_svld_dlopen+:} false; then :
  12885. $as_echo_n "(cached) " >&6
  12886. else
  12887. ac_check_lib_save_LIBS=$LIBS
  12888. LIBS="-lsvld $LIBS"
  12889. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12890. /* end confdefs.h. */
  12891. /* Override any GCC internal prototype to avoid an error.
  12892. Use char because int might match the return type of a GCC
  12893. builtin and then its argument prototype would still apply. */
  12894. #ifdef __cplusplus
  12895. extern "C"
  12896. #endif
  12897. char dlopen ();
  12898. int
  12899. main ()
  12900. {
  12901. return dlopen ();
  12902. ;
  12903. return 0;
  12904. }
  12905. _ACEOF
  12906. if ac_fn_c_try_link "$LINENO"; then :
  12907. ac_cv_lib_svld_dlopen=yes
  12908. else
  12909. ac_cv_lib_svld_dlopen=no
  12910. fi
  12911. rm -f core conftest.err conftest.$ac_objext \
  12912. conftest$ac_exeext conftest.$ac_ext
  12913. LIBS=$ac_check_lib_save_LIBS
  12914. fi
  12915. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
  12916. $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
  12917. if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
  12918. lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-lsvld
  12919. else
  12920. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
  12921. $as_echo_n "checking for dld_link in -ldld... " >&6; }
  12922. if ${ac_cv_lib_dld_dld_link+:} false; then :
  12923. $as_echo_n "(cached) " >&6
  12924. else
  12925. ac_check_lib_save_LIBS=$LIBS
  12926. LIBS="-ldld $LIBS"
  12927. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12928. /* end confdefs.h. */
  12929. /* Override any GCC internal prototype to avoid an error.
  12930. Use char because int might match the return type of a GCC
  12931. builtin and then its argument prototype would still apply. */
  12932. #ifdef __cplusplus
  12933. extern "C"
  12934. #endif
  12935. char dld_link ();
  12936. int
  12937. main ()
  12938. {
  12939. return dld_link ();
  12940. ;
  12941. return 0;
  12942. }
  12943. _ACEOF
  12944. if ac_fn_c_try_link "$LINENO"; then :
  12945. ac_cv_lib_dld_dld_link=yes
  12946. else
  12947. ac_cv_lib_dld_dld_link=no
  12948. fi
  12949. rm -f core conftest.err conftest.$ac_objext \
  12950. conftest$ac_exeext conftest.$ac_ext
  12951. LIBS=$ac_check_lib_save_LIBS
  12952. fi
  12953. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
  12954. $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
  12955. if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
  12956. lt_cv_dlopen=dld_link lt_cv_dlopen_libs=-ldld
  12957. fi
  12958. fi
  12959. fi
  12960. fi
  12961. fi
  12962. fi
  12963. ;;
  12964. esac
  12965. if test no = "$lt_cv_dlopen"; then
  12966. enable_dlopen=no
  12967. else
  12968. enable_dlopen=yes
  12969. fi
  12970. case $lt_cv_dlopen in
  12971. dlopen)
  12972. save_CPPFLAGS=$CPPFLAGS
  12973. test yes = "$ac_cv_header_dlfcn_h" && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
  12974. save_LDFLAGS=$LDFLAGS
  12975. wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
  12976. save_LIBS=$LIBS
  12977. LIBS="$lt_cv_dlopen_libs $LIBS"
  12978. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
  12979. $as_echo_n "checking whether a program can dlopen itself... " >&6; }
  12980. if ${lt_cv_dlopen_self+:} false; then :
  12981. $as_echo_n "(cached) " >&6
  12982. else
  12983. if test yes = "$cross_compiling"; then :
  12984. lt_cv_dlopen_self=cross
  12985. else
  12986. lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
  12987. lt_status=$lt_dlunknown
  12988. cat > conftest.$ac_ext <<_LT_EOF
  12989. #line $LINENO "configure"
  12990. #include "confdefs.h"
  12991. #if HAVE_DLFCN_H
  12992. #include <dlfcn.h>
  12993. #endif
  12994. #include <stdio.h>
  12995. #ifdef RTLD_GLOBAL
  12996. # define LT_DLGLOBAL RTLD_GLOBAL
  12997. #else
  12998. # ifdef DL_GLOBAL
  12999. # define LT_DLGLOBAL DL_GLOBAL
  13000. # else
  13001. # define LT_DLGLOBAL 0
  13002. # endif
  13003. #endif
  13004. /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
  13005. find out it does not work in some platform. */
  13006. #ifndef LT_DLLAZY_OR_NOW
  13007. # ifdef RTLD_LAZY
  13008. # define LT_DLLAZY_OR_NOW RTLD_LAZY
  13009. # else
  13010. # ifdef DL_LAZY
  13011. # define LT_DLLAZY_OR_NOW DL_LAZY
  13012. # else
  13013. # ifdef RTLD_NOW
  13014. # define LT_DLLAZY_OR_NOW RTLD_NOW
  13015. # else
  13016. # ifdef DL_NOW
  13017. # define LT_DLLAZY_OR_NOW DL_NOW
  13018. # else
  13019. # define LT_DLLAZY_OR_NOW 0
  13020. # endif
  13021. # endif
  13022. # endif
  13023. # endif
  13024. #endif
  13025. /* When -fvisibility=hidden is used, assume the code has been annotated
  13026. correspondingly for the symbols needed. */
  13027. #if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
  13028. int fnord () __attribute__((visibility("default")));
  13029. #endif
  13030. int fnord () { return 42; }
  13031. int main ()
  13032. {
  13033. void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
  13034. int status = $lt_dlunknown;
  13035. if (self)
  13036. {
  13037. if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
  13038. else
  13039. {
  13040. if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
  13041. else puts (dlerror ());
  13042. }
  13043. /* dlclose (self); */
  13044. }
  13045. else
  13046. puts (dlerror ());
  13047. return status;
  13048. }
  13049. _LT_EOF
  13050. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
  13051. (eval $ac_link) 2>&5
  13052. ac_status=$?
  13053. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  13054. test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
  13055. (./conftest; exit; ) >&5 2>/dev/null
  13056. lt_status=$?
  13057. case x$lt_status in
  13058. x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
  13059. x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
  13060. x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
  13061. esac
  13062. else :
  13063. # compilation failed
  13064. lt_cv_dlopen_self=no
  13065. fi
  13066. fi
  13067. rm -fr conftest*
  13068. fi
  13069. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
  13070. $as_echo "$lt_cv_dlopen_self" >&6; }
  13071. if test yes = "$lt_cv_dlopen_self"; then
  13072. wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
  13073. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
  13074. $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
  13075. if ${lt_cv_dlopen_self_static+:} false; then :
  13076. $as_echo_n "(cached) " >&6
  13077. else
  13078. if test yes = "$cross_compiling"; then :
  13079. lt_cv_dlopen_self_static=cross
  13080. else
  13081. lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
  13082. lt_status=$lt_dlunknown
  13083. cat > conftest.$ac_ext <<_LT_EOF
  13084. #line $LINENO "configure"
  13085. #include "confdefs.h"
  13086. #if HAVE_DLFCN_H
  13087. #include <dlfcn.h>
  13088. #endif
  13089. #include <stdio.h>
  13090. #ifdef RTLD_GLOBAL
  13091. # define LT_DLGLOBAL RTLD_GLOBAL
  13092. #else
  13093. # ifdef DL_GLOBAL
  13094. # define LT_DLGLOBAL DL_GLOBAL
  13095. # else
  13096. # define LT_DLGLOBAL 0
  13097. # endif
  13098. #endif
  13099. /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
  13100. find out it does not work in some platform. */
  13101. #ifndef LT_DLLAZY_OR_NOW
  13102. # ifdef RTLD_LAZY
  13103. # define LT_DLLAZY_OR_NOW RTLD_LAZY
  13104. # else
  13105. # ifdef DL_LAZY
  13106. # define LT_DLLAZY_OR_NOW DL_LAZY
  13107. # else
  13108. # ifdef RTLD_NOW
  13109. # define LT_DLLAZY_OR_NOW RTLD_NOW
  13110. # else
  13111. # ifdef DL_NOW
  13112. # define LT_DLLAZY_OR_NOW DL_NOW
  13113. # else
  13114. # define LT_DLLAZY_OR_NOW 0
  13115. # endif
  13116. # endif
  13117. # endif
  13118. # endif
  13119. #endif
  13120. /* When -fvisibility=hidden is used, assume the code has been annotated
  13121. correspondingly for the symbols needed. */
  13122. #if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
  13123. int fnord () __attribute__((visibility("default")));
  13124. #endif
  13125. int fnord () { return 42; }
  13126. int main ()
  13127. {
  13128. void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
  13129. int status = $lt_dlunknown;
  13130. if (self)
  13131. {
  13132. if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
  13133. else
  13134. {
  13135. if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
  13136. else puts (dlerror ());
  13137. }
  13138. /* dlclose (self); */
  13139. }
  13140. else
  13141. puts (dlerror ());
  13142. return status;
  13143. }
  13144. _LT_EOF
  13145. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
  13146. (eval $ac_link) 2>&5
  13147. ac_status=$?
  13148. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  13149. test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
  13150. (./conftest; exit; ) >&5 2>/dev/null
  13151. lt_status=$?
  13152. case x$lt_status in
  13153. x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
  13154. x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
  13155. x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
  13156. esac
  13157. else :
  13158. # compilation failed
  13159. lt_cv_dlopen_self_static=no
  13160. fi
  13161. fi
  13162. rm -fr conftest*
  13163. fi
  13164. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
  13165. $as_echo "$lt_cv_dlopen_self_static" >&6; }
  13166. fi
  13167. CPPFLAGS=$save_CPPFLAGS
  13168. LDFLAGS=$save_LDFLAGS
  13169. LIBS=$save_LIBS
  13170. ;;
  13171. esac
  13172. case $lt_cv_dlopen_self in
  13173. yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
  13174. *) enable_dlopen_self=unknown ;;
  13175. esac
  13176. case $lt_cv_dlopen_self_static in
  13177. yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
  13178. *) enable_dlopen_self_static=unknown ;;
  13179. esac
  13180. fi
  13181. striplib=
  13182. old_striplib=
  13183. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
  13184. $as_echo_n "checking whether stripping libraries is possible... " >&6; }
  13185. if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
  13186. test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
  13187. test -z "$striplib" && striplib="$STRIP --strip-unneeded"
  13188. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  13189. $as_echo "yes" >&6; }
  13190. else
  13191. # FIXME - insert some real tests, host_os isn't really good enough
  13192. case $host_os in
  13193. darwin*)
  13194. if test -n "$STRIP"; then
  13195. striplib="$STRIP -x"
  13196. old_striplib="$STRIP -S"
  13197. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  13198. $as_echo "yes" >&6; }
  13199. else
  13200. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  13201. $as_echo "no" >&6; }
  13202. fi
  13203. ;;
  13204. *)
  13205. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  13206. $as_echo "no" >&6; }
  13207. ;;
  13208. esac
  13209. fi
  13210. # Report what library types will actually be built
  13211. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
  13212. $as_echo_n "checking if libtool supports shared libraries... " >&6; }
  13213. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
  13214. $as_echo "$can_build_shared" >&6; }
  13215. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
  13216. $as_echo_n "checking whether to build shared libraries... " >&6; }
  13217. test no = "$can_build_shared" && enable_shared=no
  13218. # On AIX, shared libraries and static libraries use the same namespace, and
  13219. # are all built from PIC.
  13220. case $host_os in
  13221. aix3*)
  13222. test yes = "$enable_shared" && enable_static=no
  13223. if test -n "$RANLIB"; then
  13224. archive_cmds="$archive_cmds~\$RANLIB \$lib"
  13225. postinstall_cmds='$RANLIB $lib'
  13226. fi
  13227. ;;
  13228. aix[4-9]*)
  13229. if test ia64 != "$host_cpu"; then
  13230. case $enable_shared,$with_aix_soname,$aix_use_runtimelinking in
  13231. yes,aix,yes) ;; # shared object as lib.so file only
  13232. yes,svr4,*) ;; # shared object as lib.so archive member only
  13233. yes,*) enable_static=no ;; # shared object in lib.a archive as well
  13234. esac
  13235. fi
  13236. ;;
  13237. esac
  13238. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
  13239. $as_echo "$enable_shared" >&6; }
  13240. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
  13241. $as_echo_n "checking whether to build static libraries... " >&6; }
  13242. # Make sure either enable_shared or enable_static is yes.
  13243. test yes = "$enable_shared" || enable_static=yes
  13244. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
  13245. $as_echo "$enable_static" >&6; }
  13246. fi
  13247. ac_ext=c
  13248. ac_cpp='$CPP $CPPFLAGS'
  13249. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  13250. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  13251. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  13252. CC=$lt_save_CC
  13253. ac_config_commands="$ac_config_commands libtool"
  13254. # Only expand once:
  13255. # Checks to compile test suite
  13256. # The cast to long int works around a bug in the HP C Compiler
  13257. # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
  13258. # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
  13259. # This bug is HP SR number 8606223364.
  13260. { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of time_t" >&5
  13261. $as_echo_n "checking size of time_t... " >&6; }
  13262. if ${ac_cv_sizeof_time_t+:} false; then :
  13263. $as_echo_n "(cached) " >&6
  13264. else
  13265. if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (time_t))" "ac_cv_sizeof_time_t" "$ac_includes_default
  13266. #ifdef HAVE_SYS_TIME_H
  13267. #include <sys/time.h>
  13268. #endif
  13269. "; then :
  13270. else
  13271. if test "$ac_cv_type_time_t" = yes; then
  13272. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  13273. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  13274. as_fn_error 77 "cannot compute sizeof (time_t)
  13275. See \`config.log' for more details" "$LINENO" 5; }
  13276. else
  13277. ac_cv_sizeof_time_t=0
  13278. fi
  13279. fi
  13280. fi
  13281. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_time_t" >&5
  13282. $as_echo "$ac_cv_sizeof_time_t" >&6; }
  13283. cat >>confdefs.h <<_ACEOF
  13284. #define SIZEOF_TIME_T $ac_cv_sizeof_time_t
  13285. _ACEOF
  13286. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print time_t" >&5
  13287. $as_echo_n "checking how to print time_t... " >&6; }
  13288. if ${ne_cv_fmt_time_t+:} false; then :
  13289. $as_echo_n "(cached) " >&6
  13290. else
  13291. ne_cv_fmt_time_t=none
  13292. if test $ne_fmt_trycompile = yes; then
  13293. oflags="$CPPFLAGS"
  13294. # Consider format string mismatches as errors
  13295. CPPFLAGS="$CPPFLAGS -Wformat -Werror"
  13296. for str in d ld lld; do
  13297. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13298. /* end confdefs.h. */
  13299. #include <sys/types.h>
  13300. #ifdef HAVE_SYS_TIME_H
  13301. #include <sys/time.h>
  13302. #endif
  13303. #include <stdio.h>
  13304. int
  13305. main ()
  13306. {
  13307. time_t i = 1; printf("%$str", i);
  13308. ;
  13309. return 0;
  13310. }
  13311. _ACEOF
  13312. if ac_fn_c_try_compile "$LINENO"; then :
  13313. ne_cv_fmt_time_t=$str; break
  13314. fi
  13315. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  13316. done
  13317. CPPFLAGS=$oflags
  13318. else
  13319. # Best guess. Don't have to be too precise since we probably won't
  13320. # get a warning message anyway.
  13321. case $ac_cv_sizeof_time_t in
  13322. $ac_cv_sizeof_int) ne_cv_fmt_time_t="d" ;;
  13323. $ac_cv_sizeof_long) ne_cv_fmt_time_t="ld" ;;
  13324. $ac_cv_sizeof_long_long) ne_cv_fmt_time_t="lld" ;;
  13325. esac
  13326. fi
  13327. fi
  13328. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ne_cv_fmt_time_t" >&5
  13329. $as_echo "$ne_cv_fmt_time_t" >&6; }
  13330. if test "x$ne_cv_fmt_time_t" = "xnone"; then
  13331. as_fn_error $? "format string for time_t not found" "$LINENO" 5
  13332. fi
  13333. cat >>confdefs.h <<_ACEOF
  13334. #define NE_FMT_TIME_T "$ne_cv_fmt_time_t"
  13335. _ACEOF
  13336. ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
  13337. if test "x$ac_cv_type_pid_t" = xyes; then :
  13338. else
  13339. cat >>confdefs.h <<_ACEOF
  13340. #define pid_t int
  13341. _ACEOF
  13342. fi
  13343. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5
  13344. $as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
  13345. if ${ac_cv_header_time+:} false; then :
  13346. $as_echo_n "(cached) " >&6
  13347. else
  13348. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13349. /* end confdefs.h. */
  13350. #include <sys/types.h>
  13351. #include <sys/time.h>
  13352. #include <time.h>
  13353. int
  13354. main ()
  13355. {
  13356. if ((struct tm *) 0)
  13357. return 0;
  13358. ;
  13359. return 0;
  13360. }
  13361. _ACEOF
  13362. if ac_fn_c_try_compile "$LINENO"; then :
  13363. ac_cv_header_time=yes
  13364. else
  13365. ac_cv_header_time=no
  13366. fi
  13367. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  13368. fi
  13369. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
  13370. $as_echo "$ac_cv_header_time" >&6; }
  13371. if test $ac_cv_header_time = yes; then
  13372. $as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
  13373. fi
  13374. # Search in /usr/ccs/bin for Solaris
  13375. ne_PATH=$PATH:/usr/ccs/bin
  13376. if test -n "$ac_tool_prefix"; then
  13377. # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
  13378. set dummy ${ac_tool_prefix}ar; ac_word=$2
  13379. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  13380. $as_echo_n "checking for $ac_word... " >&6; }
  13381. if ${ac_cv_prog_AR+:} false; then :
  13382. $as_echo_n "(cached) " >&6
  13383. else
  13384. if test -n "$AR"; then
  13385. ac_cv_prog_AR="$AR" # Let the user override the test.
  13386. else
  13387. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  13388. for as_dir in $ne_PATH
  13389. do
  13390. IFS=$as_save_IFS
  13391. test -z "$as_dir" && as_dir=.
  13392. for ac_exec_ext in '' $ac_executable_extensions; do
  13393. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  13394. ac_cv_prog_AR="${ac_tool_prefix}ar"
  13395. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  13396. break 2
  13397. fi
  13398. done
  13399. done
  13400. IFS=$as_save_IFS
  13401. fi
  13402. fi
  13403. AR=$ac_cv_prog_AR
  13404. if test -n "$AR"; then
  13405. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
  13406. $as_echo "$AR" >&6; }
  13407. else
  13408. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  13409. $as_echo "no" >&6; }
  13410. fi
  13411. fi
  13412. if test -z "$ac_cv_prog_AR"; then
  13413. ac_ct_AR=$AR
  13414. # Extract the first word of "ar", so it can be a program name with args.
  13415. set dummy ar; ac_word=$2
  13416. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  13417. $as_echo_n "checking for $ac_word... " >&6; }
  13418. if ${ac_cv_prog_ac_ct_AR+:} false; then :
  13419. $as_echo_n "(cached) " >&6
  13420. else
  13421. if test -n "$ac_ct_AR"; then
  13422. ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
  13423. else
  13424. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  13425. for as_dir in $ne_PATH
  13426. do
  13427. IFS=$as_save_IFS
  13428. test -z "$as_dir" && as_dir=.
  13429. for ac_exec_ext in '' $ac_executable_extensions; do
  13430. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  13431. ac_cv_prog_ac_ct_AR="ar"
  13432. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  13433. break 2
  13434. fi
  13435. done
  13436. done
  13437. IFS=$as_save_IFS
  13438. fi
  13439. fi
  13440. ac_ct_AR=$ac_cv_prog_ac_ct_AR
  13441. if test -n "$ac_ct_AR"; then
  13442. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
  13443. $as_echo "$ac_ct_AR" >&6; }
  13444. else
  13445. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  13446. $as_echo "no" >&6; }
  13447. fi
  13448. if test "x$ac_ct_AR" = x; then
  13449. AR="notfound"
  13450. else
  13451. case $cross_compiling:$ac_tool_warned in
  13452. yes:)
  13453. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  13454. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  13455. ac_tool_warned=yes ;;
  13456. esac
  13457. AR=$ac_ct_AR
  13458. fi
  13459. else
  13460. AR="$ac_cv_prog_AR"
  13461. fi
  13462. if test "x$AR" = "xnotfound"; then
  13463. as_fn_error $? "could not find ar tool" "$LINENO" 5
  13464. fi
  13465. if test -n "$ac_tool_prefix"; then
  13466. # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
  13467. set dummy ${ac_tool_prefix}ranlib; ac_word=$2
  13468. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  13469. $as_echo_n "checking for $ac_word... " >&6; }
  13470. if ${ac_cv_prog_RANLIB+:} false; then :
  13471. $as_echo_n "(cached) " >&6
  13472. else
  13473. if test -n "$RANLIB"; then
  13474. ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
  13475. else
  13476. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  13477. for as_dir in $ne_PATH
  13478. do
  13479. IFS=$as_save_IFS
  13480. test -z "$as_dir" && as_dir=.
  13481. for ac_exec_ext in '' $ac_executable_extensions; do
  13482. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  13483. ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
  13484. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  13485. break 2
  13486. fi
  13487. done
  13488. done
  13489. IFS=$as_save_IFS
  13490. fi
  13491. fi
  13492. RANLIB=$ac_cv_prog_RANLIB
  13493. if test -n "$RANLIB"; then
  13494. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
  13495. $as_echo "$RANLIB" >&6; }
  13496. else
  13497. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  13498. $as_echo "no" >&6; }
  13499. fi
  13500. fi
  13501. if test -z "$ac_cv_prog_RANLIB"; then
  13502. ac_ct_RANLIB=$RANLIB
  13503. # Extract the first word of "ranlib", so it can be a program name with args.
  13504. set dummy ranlib; ac_word=$2
  13505. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  13506. $as_echo_n "checking for $ac_word... " >&6; }
  13507. if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
  13508. $as_echo_n "(cached) " >&6
  13509. else
  13510. if test -n "$ac_ct_RANLIB"; then
  13511. ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
  13512. else
  13513. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  13514. for as_dir in $ne_PATH
  13515. do
  13516. IFS=$as_save_IFS
  13517. test -z "$as_dir" && as_dir=.
  13518. for ac_exec_ext in '' $ac_executable_extensions; do
  13519. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  13520. ac_cv_prog_ac_ct_RANLIB="ranlib"
  13521. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  13522. break 2
  13523. fi
  13524. done
  13525. done
  13526. IFS=$as_save_IFS
  13527. fi
  13528. fi
  13529. ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
  13530. if test -n "$ac_ct_RANLIB"; then
  13531. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
  13532. $as_echo "$ac_ct_RANLIB" >&6; }
  13533. else
  13534. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  13535. $as_echo "no" >&6; }
  13536. fi
  13537. if test "x$ac_ct_RANLIB" = x; then
  13538. RANLIB=":"
  13539. else
  13540. case $cross_compiling:$ac_tool_warned in
  13541. yes:)
  13542. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  13543. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  13544. ac_tool_warned=yes ;;
  13545. esac
  13546. RANLIB=$ac_ct_RANLIB
  13547. fi
  13548. else
  13549. RANLIB="$ac_cv_prog_RANLIB"
  13550. fi
  13551. for ac_header in sys/time.h signal.h stdint.h locale.h
  13552. do :
  13553. as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
  13554. ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
  13555. if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
  13556. cat >>confdefs.h <<_ACEOF
  13557. #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
  13558. _ACEOF
  13559. fi
  13560. done
  13561. for ac_func in pipe isatty usleep shutdown setlocale gethostname
  13562. do :
  13563. as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
  13564. ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
  13565. if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
  13566. cat >>confdefs.h <<_ACEOF
  13567. #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
  13568. _ACEOF
  13569. fi
  13570. done
  13571. # Use the libtool-type build.
  13572. NEON_TARGET=libneon.la
  13573. NEON_OBJEXT=lo
  13574. # Using the default set of object files to build.
  13575. # Add the extension to EXTRAOBJS
  13576. ne="$NEON_EXTRAOBJS"
  13577. NEON_EXTRAOBJS=
  13578. for o in $ne; do
  13579. NEON_EXTRAOBJS="$NEON_EXTRAOBJS $o.$NEON_OBJEXT"
  13580. done
  13581. # Was DAV support explicitly turned off?
  13582. if test "x$neon_no_webdav" = "xyes"; then
  13583. # No WebDAV support
  13584. NEONOBJS="$NEONOBJS \$(NEON_BASEOBJS)"
  13585. NE_FLAG_DAV=no
  13586. ne_DAV_message="WebDAV support is not enabled"
  13587. { $as_echo "$as_me:${as_lineno-$LINENO}: WebDAV support is not enabled" >&5
  13588. $as_echo "$as_me: WebDAV support is not enabled" >&6;}
  13589. if test "x${NE_LIBTOOL_RELEASE}y" = "xy"; then
  13590. NE_LIBTOOL_RELEASE="NODAV"
  13591. else
  13592. NE_LIBTOOL_RELEASE="${NE_LIBTOOL_RELEASE}-NODAV"
  13593. fi
  13594. else
  13595. # WebDAV support
  13596. NEONOBJS="$NEONOBJS \$(NEON_DAVOBJS)"
  13597. NE_FLAG_DAV=yes
  13598. $as_echo "#define NE_HAVE_DAV 1" >>confdefs.h
  13599. ne_DAV_message="WebDAV support is enabled"
  13600. { $as_echo "$as_me:${as_lineno-$LINENO}: WebDAV support is enabled" >&5
  13601. $as_echo "$as_me: WebDAV support is enabled" >&6;}
  13602. fi
  13603. # Find an XML parser
  13604. # Check whether --with-libxml2 was given.
  13605. if test "${with_libxml2+set}" = set; then :
  13606. withval=$with_libxml2;
  13607. fi
  13608. # Check whether --with-expat was given.
  13609. if test "${with_expat+set}" = set; then :
  13610. withval=$with_expat;
  13611. fi
  13612. with_included_expat=no
  13613. if test "$NEON_NEED_XML_PARSER" = "yes"; then
  13614. # Find an XML parser
  13615. neon_xml_parser=none
  13616. # Forced choice of expat:
  13617. case $with_expat in
  13618. yes)
  13619. ac_fn_c_check_header_mongrel "$LINENO" "expat.h" "ac_cv_header_expat_h" "$ac_includes_default"
  13620. if test "x$ac_cv_header_expat_h" = xyes; then :
  13621. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XML_SetXmlDeclHandler in -lexpat" >&5
  13622. $as_echo_n "checking for XML_SetXmlDeclHandler in -lexpat... " >&6; }
  13623. if ${ac_cv_lib_expat_XML_SetXmlDeclHandler+:} false; then :
  13624. $as_echo_n "(cached) " >&6
  13625. else
  13626. ac_check_lib_save_LIBS=$LIBS
  13627. LIBS="-lexpat $LIBS"
  13628. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13629. /* end confdefs.h. */
  13630. /* Override any GCC internal prototype to avoid an error.
  13631. Use char because int might match the return type of a GCC
  13632. builtin and then its argument prototype would still apply. */
  13633. #ifdef __cplusplus
  13634. extern "C"
  13635. #endif
  13636. char XML_SetXmlDeclHandler ();
  13637. int
  13638. main ()
  13639. {
  13640. return XML_SetXmlDeclHandler ();
  13641. ;
  13642. return 0;
  13643. }
  13644. _ACEOF
  13645. if ac_fn_c_try_link "$LINENO"; then :
  13646. ac_cv_lib_expat_XML_SetXmlDeclHandler=yes
  13647. else
  13648. ac_cv_lib_expat_XML_SetXmlDeclHandler=no
  13649. fi
  13650. rm -f core conftest.err conftest.$ac_objext \
  13651. conftest$ac_exeext conftest.$ac_ext
  13652. LIBS=$ac_check_lib_save_LIBS
  13653. fi
  13654. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_expat_XML_SetXmlDeclHandler" >&5
  13655. $as_echo "$ac_cv_lib_expat_XML_SetXmlDeclHandler" >&6; }
  13656. if test "x$ac_cv_lib_expat_XML_SetXmlDeclHandler" = xyes; then :
  13657. $as_echo "#define HAVE_EXPAT 1" >>confdefs.h
  13658. neon_xml_parser_message="expat"
  13659. NEON_LIBS="$NEON_LIBS -lexpat"
  13660. neon_xml_parser=expat
  13661. ac_fn_c_check_type "$LINENO" "XML_Size" "ac_cv_type_XML_Size" "#include <expat.h>
  13662. "
  13663. if test "x$ac_cv_type_XML_Size" = xyes; then :
  13664. # The cast to long int works around a bug in the HP C Compiler
  13665. # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
  13666. # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
  13667. # This bug is HP SR number 8606223364.
  13668. { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of XML_Size" >&5
  13669. $as_echo_n "checking size of XML_Size... " >&6; }
  13670. if ${ac_cv_sizeof_XML_Size+:} false; then :
  13671. $as_echo_n "(cached) " >&6
  13672. else
  13673. if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (XML_Size))" "ac_cv_sizeof_XML_Size" "$ac_includes_default
  13674. #include <expat.h>
  13675. "; then :
  13676. else
  13677. if test "$ac_cv_type_XML_Size" = yes; then
  13678. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  13679. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  13680. as_fn_error 77 "cannot compute sizeof (XML_Size)
  13681. See \`config.log' for more details" "$LINENO" 5; }
  13682. else
  13683. ac_cv_sizeof_XML_Size=0
  13684. fi
  13685. fi
  13686. fi
  13687. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_XML_Size" >&5
  13688. $as_echo "$ac_cv_sizeof_XML_Size" >&6; }
  13689. cat >>confdefs.h <<_ACEOF
  13690. #define SIZEOF_XML_SIZE $ac_cv_sizeof_XML_Size
  13691. _ACEOF
  13692. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print XML_Size" >&5
  13693. $as_echo_n "checking how to print XML_Size... " >&6; }
  13694. if ${ne_cv_fmt_XML_Size+:} false; then :
  13695. $as_echo_n "(cached) " >&6
  13696. else
  13697. ne_cv_fmt_XML_Size=none
  13698. if test $ne_fmt_trycompile = yes; then
  13699. oflags="$CPPFLAGS"
  13700. # Consider format string mismatches as errors
  13701. CPPFLAGS="$CPPFLAGS -Wformat -Werror"
  13702. for str in d ld lld; do
  13703. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13704. /* end confdefs.h. */
  13705. #include <sys/types.h>
  13706. #include <expat.h>
  13707. #include <stdio.h>
  13708. int
  13709. main ()
  13710. {
  13711. XML_Size i = 1; printf("%$str", i);
  13712. ;
  13713. return 0;
  13714. }
  13715. _ACEOF
  13716. if ac_fn_c_try_compile "$LINENO"; then :
  13717. ne_cv_fmt_XML_Size=$str; break
  13718. fi
  13719. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  13720. done
  13721. CPPFLAGS=$oflags
  13722. else
  13723. # Best guess. Don't have to be too precise since we probably won't
  13724. # get a warning message anyway.
  13725. case $ac_cv_sizeof_XML_Size in
  13726. $ac_cv_sizeof_int) ne_cv_fmt_XML_Size="d" ;;
  13727. $ac_cv_sizeof_long) ne_cv_fmt_XML_Size="ld" ;;
  13728. $ac_cv_sizeof_long_long) ne_cv_fmt_XML_Size="lld" ;;
  13729. esac
  13730. fi
  13731. fi
  13732. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ne_cv_fmt_XML_Size" >&5
  13733. $as_echo "$ne_cv_fmt_XML_Size" >&6; }
  13734. if test "x$ne_cv_fmt_XML_Size" = "xnone"; then
  13735. as_fn_error $? "format string for XML_Size not found" "$LINENO" 5
  13736. fi
  13737. cat >>confdefs.h <<_ACEOF
  13738. #define NE_FMT_XML_SIZE "$ne_cv_fmt_XML_Size"
  13739. _ACEOF
  13740. else
  13741. cat >>confdefs.h <<_ACEOF
  13742. #define NE_FMT_XML_SIZE "d"
  13743. _ACEOF
  13744. fi
  13745. else
  13746. as_fn_error $? "expat library not found, cannot proceed" "$LINENO" 5
  13747. fi
  13748. else
  13749. as_fn_error $? "expat library not found, cannot proceed" "$LINENO" 5
  13750. fi
  13751. ;;
  13752. no) ;;
  13753. */libexpat.la)
  13754. # Special case for Subversion
  13755. ne_expdir=`echo $with_expat | sed 's:/libexpat.la$::'`
  13756. $as_echo "#define HAVE_EXPAT 1" >>confdefs.h
  13757. cat >>confdefs.h <<_ACEOF
  13758. #define NE_FMT_XML_SIZE "d"
  13759. _ACEOF
  13760. CPPFLAGS="$CPPFLAGS -I$ne_expdir"
  13761. if test "x${NEON_TARGET}" = "xlibneon.la"; then
  13762. NEON_LTLIBS=$with_expat
  13763. else
  13764. # no dependency on libexpat => crippled libneon, so do partial install
  13765. ALLOW_INSTALL=lib
  13766. fi
  13767. neon_xml_parser=expat
  13768. neon_xml_parser_message="expat in $ne_expdir"
  13769. ;;
  13770. /*) as_fn_error $? "--with-expat does not take a directory argument" "$LINENO" 5 ;;
  13771. esac
  13772. # If expat wasn't specifically enabled and libxml was:
  13773. if test "${neon_xml_parser}-${with_libxml2}-${with_included_expat}" = "none-yes-no"; then
  13774. # Extract the first word of "pkg-config", so it can be a program name with args.
  13775. set dummy pkg-config; ac_word=$2
  13776. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  13777. $as_echo_n "checking for $ac_word... " >&6; }
  13778. if ${ac_cv_path_PKG_CONFIG+:} false; then :
  13779. $as_echo_n "(cached) " >&6
  13780. else
  13781. case $PKG_CONFIG in
  13782. [\\/]* | ?:[\\/]*)
  13783. ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
  13784. ;;
  13785. *)
  13786. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  13787. for as_dir in $PATH
  13788. do
  13789. IFS=$as_save_IFS
  13790. test -z "$as_dir" && as_dir=.
  13791. for ac_exec_ext in '' $ac_executable_extensions; do
  13792. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  13793. ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
  13794. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  13795. break 2
  13796. fi
  13797. done
  13798. done
  13799. IFS=$as_save_IFS
  13800. test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
  13801. ;;
  13802. esac
  13803. fi
  13804. PKG_CONFIG=$ac_cv_path_PKG_CONFIG
  13805. if test -n "$PKG_CONFIG"; then
  13806. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
  13807. $as_echo "$PKG_CONFIG" >&6; }
  13808. else
  13809. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  13810. $as_echo "no" >&6; }
  13811. fi
  13812. if test "$PKG_CONFIG" = "no"; then
  13813. : Not using pkg-config
  13814. if test -n "$ac_tool_prefix"; then
  13815. # Extract the first word of "${ac_tool_prefix}xml2-config", so it can be a program name with args.
  13816. set dummy ${ac_tool_prefix}xml2-config; ac_word=$2
  13817. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  13818. $as_echo_n "checking for $ac_word... " >&6; }
  13819. if ${ac_cv_prog_XML2_CONFIG+:} false; then :
  13820. $as_echo_n "(cached) " >&6
  13821. else
  13822. if test -n "$XML2_CONFIG"; then
  13823. ac_cv_prog_XML2_CONFIG="$XML2_CONFIG" # Let the user override the test.
  13824. else
  13825. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  13826. for as_dir in $PATH
  13827. do
  13828. IFS=$as_save_IFS
  13829. test -z "$as_dir" && as_dir=.
  13830. for ac_exec_ext in '' $ac_executable_extensions; do
  13831. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  13832. ac_cv_prog_XML2_CONFIG="${ac_tool_prefix}xml2-config"
  13833. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  13834. break 2
  13835. fi
  13836. done
  13837. done
  13838. IFS=$as_save_IFS
  13839. fi
  13840. fi
  13841. XML2_CONFIG=$ac_cv_prog_XML2_CONFIG
  13842. if test -n "$XML2_CONFIG"; then
  13843. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XML2_CONFIG" >&5
  13844. $as_echo "$XML2_CONFIG" >&6; }
  13845. else
  13846. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  13847. $as_echo "no" >&6; }
  13848. fi
  13849. fi
  13850. if test -z "$ac_cv_prog_XML2_CONFIG"; then
  13851. ac_ct_XML2_CONFIG=$XML2_CONFIG
  13852. # Extract the first word of "xml2-config", so it can be a program name with args.
  13853. set dummy xml2-config; ac_word=$2
  13854. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  13855. $as_echo_n "checking for $ac_word... " >&6; }
  13856. if ${ac_cv_prog_ac_ct_XML2_CONFIG+:} false; then :
  13857. $as_echo_n "(cached) " >&6
  13858. else
  13859. if test -n "$ac_ct_XML2_CONFIG"; then
  13860. ac_cv_prog_ac_ct_XML2_CONFIG="$ac_ct_XML2_CONFIG" # Let the user override the test.
  13861. else
  13862. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  13863. for as_dir in $PATH
  13864. do
  13865. IFS=$as_save_IFS
  13866. test -z "$as_dir" && as_dir=.
  13867. for ac_exec_ext in '' $ac_executable_extensions; do
  13868. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  13869. ac_cv_prog_ac_ct_XML2_CONFIG="xml2-config"
  13870. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  13871. break 2
  13872. fi
  13873. done
  13874. done
  13875. IFS=$as_save_IFS
  13876. fi
  13877. fi
  13878. ac_ct_XML2_CONFIG=$ac_cv_prog_ac_ct_XML2_CONFIG
  13879. if test -n "$ac_ct_XML2_CONFIG"; then
  13880. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_XML2_CONFIG" >&5
  13881. $as_echo "$ac_ct_XML2_CONFIG" >&6; }
  13882. else
  13883. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  13884. $as_echo "no" >&6; }
  13885. fi
  13886. if test "x$ac_ct_XML2_CONFIG" = x; then
  13887. XML2_CONFIG=""
  13888. else
  13889. case $cross_compiling:$ac_tool_warned in
  13890. yes:)
  13891. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  13892. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  13893. ac_tool_warned=yes ;;
  13894. esac
  13895. XML2_CONFIG=$ac_ct_XML2_CONFIG
  13896. fi
  13897. else
  13898. XML2_CONFIG="$ac_cv_prog_XML2_CONFIG"
  13899. fi
  13900. if test "x$XML2_CONFIG" != "xno"; then
  13901. # xml2-config in some versions erroneously includes -I/include
  13902. # in the --cflags output.
  13903. NE_LX2_VERSION="`$XML2_CONFIG --version`"
  13904. NE_LX2_CFLAGS="`$XML2_CONFIG --cflags | sed 's| -I/include||g'`"
  13905. NE_LX2_LIBS="`$XML2_CONFIG --libs | sed 's|-L/usr/lib ||g'`"
  13906. fi
  13907. else
  13908. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libxml-2.0 pkg-config data" >&5
  13909. $as_echo_n "checking for libxml-2.0 pkg-config data... " >&6; }
  13910. if ${ne_cv_pkg_libxml_2_0+:} false; then :
  13911. $as_echo_n "(cached) " >&6
  13912. else
  13913. if $PKG_CONFIG libxml-2.0; then
  13914. ne_cv_pkg_libxml_2_0=yes
  13915. else
  13916. ne_cv_pkg_libxml_2_0=no
  13917. fi
  13918. fi
  13919. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ne_cv_pkg_libxml_2_0" >&5
  13920. $as_echo "$ne_cv_pkg_libxml_2_0" >&6; }
  13921. if test "$ne_cv_pkg_libxml_2_0" = "yes"; then
  13922. NE_LX2_CFLAGS=`$PKG_CONFIG --cflags libxml-2.0`
  13923. NE_LX2_LIBS=`$PKG_CONFIG --libs libxml-2.0`
  13924. NE_LX2_VERSION=`$PKG_CONFIG --modversion libxml-2.0`
  13925. : Using provided pkg-config data
  13926. else
  13927. : No pkg-config for libxml-2.0 provided
  13928. if test -n "$ac_tool_prefix"; then
  13929. # Extract the first word of "${ac_tool_prefix}xml2-config", so it can be a program name with args.
  13930. set dummy ${ac_tool_prefix}xml2-config; ac_word=$2
  13931. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  13932. $as_echo_n "checking for $ac_word... " >&6; }
  13933. if ${ac_cv_prog_XML2_CONFIG+:} false; then :
  13934. $as_echo_n "(cached) " >&6
  13935. else
  13936. if test -n "$XML2_CONFIG"; then
  13937. ac_cv_prog_XML2_CONFIG="$XML2_CONFIG" # Let the user override the test.
  13938. else
  13939. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  13940. for as_dir in $PATH
  13941. do
  13942. IFS=$as_save_IFS
  13943. test -z "$as_dir" && as_dir=.
  13944. for ac_exec_ext in '' $ac_executable_extensions; do
  13945. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  13946. ac_cv_prog_XML2_CONFIG="${ac_tool_prefix}xml2-config"
  13947. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  13948. break 2
  13949. fi
  13950. done
  13951. done
  13952. IFS=$as_save_IFS
  13953. fi
  13954. fi
  13955. XML2_CONFIG=$ac_cv_prog_XML2_CONFIG
  13956. if test -n "$XML2_CONFIG"; then
  13957. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XML2_CONFIG" >&5
  13958. $as_echo "$XML2_CONFIG" >&6; }
  13959. else
  13960. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  13961. $as_echo "no" >&6; }
  13962. fi
  13963. fi
  13964. if test -z "$ac_cv_prog_XML2_CONFIG"; then
  13965. ac_ct_XML2_CONFIG=$XML2_CONFIG
  13966. # Extract the first word of "xml2-config", so it can be a program name with args.
  13967. set dummy xml2-config; ac_word=$2
  13968. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  13969. $as_echo_n "checking for $ac_word... " >&6; }
  13970. if ${ac_cv_prog_ac_ct_XML2_CONFIG+:} false; then :
  13971. $as_echo_n "(cached) " >&6
  13972. else
  13973. if test -n "$ac_ct_XML2_CONFIG"; then
  13974. ac_cv_prog_ac_ct_XML2_CONFIG="$ac_ct_XML2_CONFIG" # Let the user override the test.
  13975. else
  13976. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  13977. for as_dir in $PATH
  13978. do
  13979. IFS=$as_save_IFS
  13980. test -z "$as_dir" && as_dir=.
  13981. for ac_exec_ext in '' $ac_executable_extensions; do
  13982. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  13983. ac_cv_prog_ac_ct_XML2_CONFIG="xml2-config"
  13984. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  13985. break 2
  13986. fi
  13987. done
  13988. done
  13989. IFS=$as_save_IFS
  13990. fi
  13991. fi
  13992. ac_ct_XML2_CONFIG=$ac_cv_prog_ac_ct_XML2_CONFIG
  13993. if test -n "$ac_ct_XML2_CONFIG"; then
  13994. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_XML2_CONFIG" >&5
  13995. $as_echo "$ac_ct_XML2_CONFIG" >&6; }
  13996. else
  13997. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  13998. $as_echo "no" >&6; }
  13999. fi
  14000. if test "x$ac_ct_XML2_CONFIG" = x; then
  14001. XML2_CONFIG=""
  14002. else
  14003. case $cross_compiling:$ac_tool_warned in
  14004. yes:)
  14005. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  14006. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  14007. ac_tool_warned=yes ;;
  14008. esac
  14009. XML2_CONFIG=$ac_ct_XML2_CONFIG
  14010. fi
  14011. else
  14012. XML2_CONFIG="$ac_cv_prog_XML2_CONFIG"
  14013. fi
  14014. if test "x$XML2_CONFIG" != "xno"; then
  14015. # xml2-config in some versions erroneously includes -I/include
  14016. # in the --cflags output.
  14017. NE_LX2_VERSION="`$XML2_CONFIG --version`"
  14018. NE_LX2_CFLAGS="`$XML2_CONFIG --cflags | sed 's| -I/include||g'`"
  14019. NE_LX2_LIBS="`$XML2_CONFIG --libs | sed 's|-L/usr/lib ||g'`"
  14020. fi
  14021. fi
  14022. fi
  14023. if test -n "${NE_LX2_VERSION+set}"; then
  14024. neon_xml_parser_message="libxml $NE_LX2_VERSION"
  14025. $as_echo "#define HAVE_LIBXML 1" >>confdefs.h
  14026. CPPFLAGS="$CPPFLAGS $NE_LX2_CFLAGS"
  14027. NEON_LIBS="$NEON_LIBS $NE_LX2_LIBS"
  14028. for ac_header in libxml/xmlversion.h libxml/parser.h
  14029. do :
  14030. as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
  14031. ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
  14032. if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
  14033. cat >>confdefs.h <<_ACEOF
  14034. #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
  14035. _ACEOF
  14036. else
  14037. as_fn_error $? "could not find parser.h, libxml installation problem?" "$LINENO" 5
  14038. fi
  14039. done
  14040. neon_xml_parser=libxml2
  14041. else
  14042. as_fn_error $? "libxml2.x library not found, cannot proceed" "$LINENO" 5
  14043. fi
  14044. fi
  14045. # Otherwise, by default search for expat then libxml2:
  14046. if test "${neon_xml_parser}-${with_included_expat}" = "none-no"; then
  14047. ac_fn_c_check_header_mongrel "$LINENO" "expat.h" "ac_cv_header_expat_h" "$ac_includes_default"
  14048. if test "x$ac_cv_header_expat_h" = xyes; then :
  14049. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XML_SetXmlDeclHandler in -lexpat" >&5
  14050. $as_echo_n "checking for XML_SetXmlDeclHandler in -lexpat... " >&6; }
  14051. if ${ac_cv_lib_expat_XML_SetXmlDeclHandler+:} false; then :
  14052. $as_echo_n "(cached) " >&6
  14053. else
  14054. ac_check_lib_save_LIBS=$LIBS
  14055. LIBS="-lexpat $LIBS"
  14056. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14057. /* end confdefs.h. */
  14058. /* Override any GCC internal prototype to avoid an error.
  14059. Use char because int might match the return type of a GCC
  14060. builtin and then its argument prototype would still apply. */
  14061. #ifdef __cplusplus
  14062. extern "C"
  14063. #endif
  14064. char XML_SetXmlDeclHandler ();
  14065. int
  14066. main ()
  14067. {
  14068. return XML_SetXmlDeclHandler ();
  14069. ;
  14070. return 0;
  14071. }
  14072. _ACEOF
  14073. if ac_fn_c_try_link "$LINENO"; then :
  14074. ac_cv_lib_expat_XML_SetXmlDeclHandler=yes
  14075. else
  14076. ac_cv_lib_expat_XML_SetXmlDeclHandler=no
  14077. fi
  14078. rm -f core conftest.err conftest.$ac_objext \
  14079. conftest$ac_exeext conftest.$ac_ext
  14080. LIBS=$ac_check_lib_save_LIBS
  14081. fi
  14082. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_expat_XML_SetXmlDeclHandler" >&5
  14083. $as_echo "$ac_cv_lib_expat_XML_SetXmlDeclHandler" >&6; }
  14084. if test "x$ac_cv_lib_expat_XML_SetXmlDeclHandler" = xyes; then :
  14085. $as_echo "#define HAVE_EXPAT 1" >>confdefs.h
  14086. neon_xml_parser_message="expat"
  14087. NEON_LIBS="$NEON_LIBS -lexpat"
  14088. neon_xml_parser=expat
  14089. ac_fn_c_check_type "$LINENO" "XML_Size" "ac_cv_type_XML_Size" "#include <expat.h>
  14090. "
  14091. if test "x$ac_cv_type_XML_Size" = xyes; then :
  14092. # The cast to long int works around a bug in the HP C Compiler
  14093. # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
  14094. # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
  14095. # This bug is HP SR number 8606223364.
  14096. { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of XML_Size" >&5
  14097. $as_echo_n "checking size of XML_Size... " >&6; }
  14098. if ${ac_cv_sizeof_XML_Size+:} false; then :
  14099. $as_echo_n "(cached) " >&6
  14100. else
  14101. if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (XML_Size))" "ac_cv_sizeof_XML_Size" "$ac_includes_default
  14102. #include <expat.h>
  14103. "; then :
  14104. else
  14105. if test "$ac_cv_type_XML_Size" = yes; then
  14106. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  14107. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  14108. as_fn_error 77 "cannot compute sizeof (XML_Size)
  14109. See \`config.log' for more details" "$LINENO" 5; }
  14110. else
  14111. ac_cv_sizeof_XML_Size=0
  14112. fi
  14113. fi
  14114. fi
  14115. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_XML_Size" >&5
  14116. $as_echo "$ac_cv_sizeof_XML_Size" >&6; }
  14117. cat >>confdefs.h <<_ACEOF
  14118. #define SIZEOF_XML_SIZE $ac_cv_sizeof_XML_Size
  14119. _ACEOF
  14120. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print XML_Size" >&5
  14121. $as_echo_n "checking how to print XML_Size... " >&6; }
  14122. if ${ne_cv_fmt_XML_Size+:} false; then :
  14123. $as_echo_n "(cached) " >&6
  14124. else
  14125. ne_cv_fmt_XML_Size=none
  14126. if test $ne_fmt_trycompile = yes; then
  14127. oflags="$CPPFLAGS"
  14128. # Consider format string mismatches as errors
  14129. CPPFLAGS="$CPPFLAGS -Wformat -Werror"
  14130. for str in d ld lld; do
  14131. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14132. /* end confdefs.h. */
  14133. #include <sys/types.h>
  14134. #include <expat.h>
  14135. #include <stdio.h>
  14136. int
  14137. main ()
  14138. {
  14139. XML_Size i = 1; printf("%$str", i);
  14140. ;
  14141. return 0;
  14142. }
  14143. _ACEOF
  14144. if ac_fn_c_try_compile "$LINENO"; then :
  14145. ne_cv_fmt_XML_Size=$str; break
  14146. fi
  14147. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  14148. done
  14149. CPPFLAGS=$oflags
  14150. else
  14151. # Best guess. Don't have to be too precise since we probably won't
  14152. # get a warning message anyway.
  14153. case $ac_cv_sizeof_XML_Size in
  14154. $ac_cv_sizeof_int) ne_cv_fmt_XML_Size="d" ;;
  14155. $ac_cv_sizeof_long) ne_cv_fmt_XML_Size="ld" ;;
  14156. $ac_cv_sizeof_long_long) ne_cv_fmt_XML_Size="lld" ;;
  14157. esac
  14158. fi
  14159. fi
  14160. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ne_cv_fmt_XML_Size" >&5
  14161. $as_echo "$ne_cv_fmt_XML_Size" >&6; }
  14162. if test "x$ne_cv_fmt_XML_Size" = "xnone"; then
  14163. as_fn_error $? "format string for XML_Size not found" "$LINENO" 5
  14164. fi
  14165. cat >>confdefs.h <<_ACEOF
  14166. #define NE_FMT_XML_SIZE "$ne_cv_fmt_XML_Size"
  14167. _ACEOF
  14168. else
  14169. cat >>confdefs.h <<_ACEOF
  14170. #define NE_FMT_XML_SIZE "d"
  14171. _ACEOF
  14172. fi
  14173. else
  14174. # Extract the first word of "pkg-config", so it can be a program name with args.
  14175. set dummy pkg-config; ac_word=$2
  14176. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  14177. $as_echo_n "checking for $ac_word... " >&6; }
  14178. if ${ac_cv_path_PKG_CONFIG+:} false; then :
  14179. $as_echo_n "(cached) " >&6
  14180. else
  14181. case $PKG_CONFIG in
  14182. [\\/]* | ?:[\\/]*)
  14183. ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
  14184. ;;
  14185. *)
  14186. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  14187. for as_dir in $PATH
  14188. do
  14189. IFS=$as_save_IFS
  14190. test -z "$as_dir" && as_dir=.
  14191. for ac_exec_ext in '' $ac_executable_extensions; do
  14192. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  14193. ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
  14194. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  14195. break 2
  14196. fi
  14197. done
  14198. done
  14199. IFS=$as_save_IFS
  14200. test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
  14201. ;;
  14202. esac
  14203. fi
  14204. PKG_CONFIG=$ac_cv_path_PKG_CONFIG
  14205. if test -n "$PKG_CONFIG"; then
  14206. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
  14207. $as_echo "$PKG_CONFIG" >&6; }
  14208. else
  14209. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  14210. $as_echo "no" >&6; }
  14211. fi
  14212. if test "$PKG_CONFIG" = "no"; then
  14213. : Not using pkg-config
  14214. if test -n "$ac_tool_prefix"; then
  14215. # Extract the first word of "${ac_tool_prefix}xml2-config", so it can be a program name with args.
  14216. set dummy ${ac_tool_prefix}xml2-config; ac_word=$2
  14217. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  14218. $as_echo_n "checking for $ac_word... " >&6; }
  14219. if ${ac_cv_prog_XML2_CONFIG+:} false; then :
  14220. $as_echo_n "(cached) " >&6
  14221. else
  14222. if test -n "$XML2_CONFIG"; then
  14223. ac_cv_prog_XML2_CONFIG="$XML2_CONFIG" # Let the user override the test.
  14224. else
  14225. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  14226. for as_dir in $PATH
  14227. do
  14228. IFS=$as_save_IFS
  14229. test -z "$as_dir" && as_dir=.
  14230. for ac_exec_ext in '' $ac_executable_extensions; do
  14231. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  14232. ac_cv_prog_XML2_CONFIG="${ac_tool_prefix}xml2-config"
  14233. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  14234. break 2
  14235. fi
  14236. done
  14237. done
  14238. IFS=$as_save_IFS
  14239. fi
  14240. fi
  14241. XML2_CONFIG=$ac_cv_prog_XML2_CONFIG
  14242. if test -n "$XML2_CONFIG"; then
  14243. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XML2_CONFIG" >&5
  14244. $as_echo "$XML2_CONFIG" >&6; }
  14245. else
  14246. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  14247. $as_echo "no" >&6; }
  14248. fi
  14249. fi
  14250. if test -z "$ac_cv_prog_XML2_CONFIG"; then
  14251. ac_ct_XML2_CONFIG=$XML2_CONFIG
  14252. # Extract the first word of "xml2-config", so it can be a program name with args.
  14253. set dummy xml2-config; ac_word=$2
  14254. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  14255. $as_echo_n "checking for $ac_word... " >&6; }
  14256. if ${ac_cv_prog_ac_ct_XML2_CONFIG+:} false; then :
  14257. $as_echo_n "(cached) " >&6
  14258. else
  14259. if test -n "$ac_ct_XML2_CONFIG"; then
  14260. ac_cv_prog_ac_ct_XML2_CONFIG="$ac_ct_XML2_CONFIG" # Let the user override the test.
  14261. else
  14262. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  14263. for as_dir in $PATH
  14264. do
  14265. IFS=$as_save_IFS
  14266. test -z "$as_dir" && as_dir=.
  14267. for ac_exec_ext in '' $ac_executable_extensions; do
  14268. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  14269. ac_cv_prog_ac_ct_XML2_CONFIG="xml2-config"
  14270. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  14271. break 2
  14272. fi
  14273. done
  14274. done
  14275. IFS=$as_save_IFS
  14276. fi
  14277. fi
  14278. ac_ct_XML2_CONFIG=$ac_cv_prog_ac_ct_XML2_CONFIG
  14279. if test -n "$ac_ct_XML2_CONFIG"; then
  14280. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_XML2_CONFIG" >&5
  14281. $as_echo "$ac_ct_XML2_CONFIG" >&6; }
  14282. else
  14283. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  14284. $as_echo "no" >&6; }
  14285. fi
  14286. if test "x$ac_ct_XML2_CONFIG" = x; then
  14287. XML2_CONFIG=""
  14288. else
  14289. case $cross_compiling:$ac_tool_warned in
  14290. yes:)
  14291. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  14292. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  14293. ac_tool_warned=yes ;;
  14294. esac
  14295. XML2_CONFIG=$ac_ct_XML2_CONFIG
  14296. fi
  14297. else
  14298. XML2_CONFIG="$ac_cv_prog_XML2_CONFIG"
  14299. fi
  14300. if test "x$XML2_CONFIG" != "xno"; then
  14301. # xml2-config in some versions erroneously includes -I/include
  14302. # in the --cflags output.
  14303. NE_LX2_VERSION="`$XML2_CONFIG --version`"
  14304. NE_LX2_CFLAGS="`$XML2_CONFIG --cflags | sed 's| -I/include||g'`"
  14305. NE_LX2_LIBS="`$XML2_CONFIG --libs | sed 's|-L/usr/lib ||g'`"
  14306. fi
  14307. else
  14308. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libxml-2.0 pkg-config data" >&5
  14309. $as_echo_n "checking for libxml-2.0 pkg-config data... " >&6; }
  14310. if ${ne_cv_pkg_libxml_2_0+:} false; then :
  14311. $as_echo_n "(cached) " >&6
  14312. else
  14313. if $PKG_CONFIG libxml-2.0; then
  14314. ne_cv_pkg_libxml_2_0=yes
  14315. else
  14316. ne_cv_pkg_libxml_2_0=no
  14317. fi
  14318. fi
  14319. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ne_cv_pkg_libxml_2_0" >&5
  14320. $as_echo "$ne_cv_pkg_libxml_2_0" >&6; }
  14321. if test "$ne_cv_pkg_libxml_2_0" = "yes"; then
  14322. NE_LX2_CFLAGS=`$PKG_CONFIG --cflags libxml-2.0`
  14323. NE_LX2_LIBS=`$PKG_CONFIG --libs libxml-2.0`
  14324. NE_LX2_VERSION=`$PKG_CONFIG --modversion libxml-2.0`
  14325. : Using provided pkg-config data
  14326. else
  14327. : No pkg-config for libxml-2.0 provided
  14328. if test -n "$ac_tool_prefix"; then
  14329. # Extract the first word of "${ac_tool_prefix}xml2-config", so it can be a program name with args.
  14330. set dummy ${ac_tool_prefix}xml2-config; ac_word=$2
  14331. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  14332. $as_echo_n "checking for $ac_word... " >&6; }
  14333. if ${ac_cv_prog_XML2_CONFIG+:} false; then :
  14334. $as_echo_n "(cached) " >&6
  14335. else
  14336. if test -n "$XML2_CONFIG"; then
  14337. ac_cv_prog_XML2_CONFIG="$XML2_CONFIG" # Let the user override the test.
  14338. else
  14339. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  14340. for as_dir in $PATH
  14341. do
  14342. IFS=$as_save_IFS
  14343. test -z "$as_dir" && as_dir=.
  14344. for ac_exec_ext in '' $ac_executable_extensions; do
  14345. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  14346. ac_cv_prog_XML2_CONFIG="${ac_tool_prefix}xml2-config"
  14347. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  14348. break 2
  14349. fi
  14350. done
  14351. done
  14352. IFS=$as_save_IFS
  14353. fi
  14354. fi
  14355. XML2_CONFIG=$ac_cv_prog_XML2_CONFIG
  14356. if test -n "$XML2_CONFIG"; then
  14357. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XML2_CONFIG" >&5
  14358. $as_echo "$XML2_CONFIG" >&6; }
  14359. else
  14360. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  14361. $as_echo "no" >&6; }
  14362. fi
  14363. fi
  14364. if test -z "$ac_cv_prog_XML2_CONFIG"; then
  14365. ac_ct_XML2_CONFIG=$XML2_CONFIG
  14366. # Extract the first word of "xml2-config", so it can be a program name with args.
  14367. set dummy xml2-config; ac_word=$2
  14368. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  14369. $as_echo_n "checking for $ac_word... " >&6; }
  14370. if ${ac_cv_prog_ac_ct_XML2_CONFIG+:} false; then :
  14371. $as_echo_n "(cached) " >&6
  14372. else
  14373. if test -n "$ac_ct_XML2_CONFIG"; then
  14374. ac_cv_prog_ac_ct_XML2_CONFIG="$ac_ct_XML2_CONFIG" # Let the user override the test.
  14375. else
  14376. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  14377. for as_dir in $PATH
  14378. do
  14379. IFS=$as_save_IFS
  14380. test -z "$as_dir" && as_dir=.
  14381. for ac_exec_ext in '' $ac_executable_extensions; do
  14382. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  14383. ac_cv_prog_ac_ct_XML2_CONFIG="xml2-config"
  14384. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  14385. break 2
  14386. fi
  14387. done
  14388. done
  14389. IFS=$as_save_IFS
  14390. fi
  14391. fi
  14392. ac_ct_XML2_CONFIG=$ac_cv_prog_ac_ct_XML2_CONFIG
  14393. if test -n "$ac_ct_XML2_CONFIG"; then
  14394. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_XML2_CONFIG" >&5
  14395. $as_echo "$ac_ct_XML2_CONFIG" >&6; }
  14396. else
  14397. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  14398. $as_echo "no" >&6; }
  14399. fi
  14400. if test "x$ac_ct_XML2_CONFIG" = x; then
  14401. XML2_CONFIG=""
  14402. else
  14403. case $cross_compiling:$ac_tool_warned in
  14404. yes:)
  14405. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  14406. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  14407. ac_tool_warned=yes ;;
  14408. esac
  14409. XML2_CONFIG=$ac_ct_XML2_CONFIG
  14410. fi
  14411. else
  14412. XML2_CONFIG="$ac_cv_prog_XML2_CONFIG"
  14413. fi
  14414. if test "x$XML2_CONFIG" != "xno"; then
  14415. # xml2-config in some versions erroneously includes -I/include
  14416. # in the --cflags output.
  14417. NE_LX2_VERSION="`$XML2_CONFIG --version`"
  14418. NE_LX2_CFLAGS="`$XML2_CONFIG --cflags | sed 's| -I/include||g'`"
  14419. NE_LX2_LIBS="`$XML2_CONFIG --libs | sed 's|-L/usr/lib ||g'`"
  14420. fi
  14421. fi
  14422. fi
  14423. if test -n "${NE_LX2_VERSION+set}"; then
  14424. neon_xml_parser_message="libxml $NE_LX2_VERSION"
  14425. $as_echo "#define HAVE_LIBXML 1" >>confdefs.h
  14426. CPPFLAGS="$CPPFLAGS $NE_LX2_CFLAGS"
  14427. NEON_LIBS="$NEON_LIBS $NE_LX2_LIBS"
  14428. for ac_header in libxml/xmlversion.h libxml/parser.h
  14429. do :
  14430. as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
  14431. ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
  14432. if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
  14433. cat >>confdefs.h <<_ACEOF
  14434. #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
  14435. _ACEOF
  14436. else
  14437. as_fn_error $? "could not find parser.h, libxml installation problem?" "$LINENO" 5
  14438. fi
  14439. done
  14440. neon_xml_parser=libxml2
  14441. else
  14442. :
  14443. fi
  14444. fi
  14445. else
  14446. # Extract the first word of "pkg-config", so it can be a program name with args.
  14447. set dummy pkg-config; ac_word=$2
  14448. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  14449. $as_echo_n "checking for $ac_word... " >&6; }
  14450. if ${ac_cv_path_PKG_CONFIG+:} false; then :
  14451. $as_echo_n "(cached) " >&6
  14452. else
  14453. case $PKG_CONFIG in
  14454. [\\/]* | ?:[\\/]*)
  14455. ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
  14456. ;;
  14457. *)
  14458. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  14459. for as_dir in $PATH
  14460. do
  14461. IFS=$as_save_IFS
  14462. test -z "$as_dir" && as_dir=.
  14463. for ac_exec_ext in '' $ac_executable_extensions; do
  14464. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  14465. ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
  14466. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  14467. break 2
  14468. fi
  14469. done
  14470. done
  14471. IFS=$as_save_IFS
  14472. test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
  14473. ;;
  14474. esac
  14475. fi
  14476. PKG_CONFIG=$ac_cv_path_PKG_CONFIG
  14477. if test -n "$PKG_CONFIG"; then
  14478. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
  14479. $as_echo "$PKG_CONFIG" >&6; }
  14480. else
  14481. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  14482. $as_echo "no" >&6; }
  14483. fi
  14484. if test "$PKG_CONFIG" = "no"; then
  14485. : Not using pkg-config
  14486. if test -n "$ac_tool_prefix"; then
  14487. # Extract the first word of "${ac_tool_prefix}xml2-config", so it can be a program name with args.
  14488. set dummy ${ac_tool_prefix}xml2-config; ac_word=$2
  14489. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  14490. $as_echo_n "checking for $ac_word... " >&6; }
  14491. if ${ac_cv_prog_XML2_CONFIG+:} false; then :
  14492. $as_echo_n "(cached) " >&6
  14493. else
  14494. if test -n "$XML2_CONFIG"; then
  14495. ac_cv_prog_XML2_CONFIG="$XML2_CONFIG" # Let the user override the test.
  14496. else
  14497. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  14498. for as_dir in $PATH
  14499. do
  14500. IFS=$as_save_IFS
  14501. test -z "$as_dir" && as_dir=.
  14502. for ac_exec_ext in '' $ac_executable_extensions; do
  14503. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  14504. ac_cv_prog_XML2_CONFIG="${ac_tool_prefix}xml2-config"
  14505. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  14506. break 2
  14507. fi
  14508. done
  14509. done
  14510. IFS=$as_save_IFS
  14511. fi
  14512. fi
  14513. XML2_CONFIG=$ac_cv_prog_XML2_CONFIG
  14514. if test -n "$XML2_CONFIG"; then
  14515. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XML2_CONFIG" >&5
  14516. $as_echo "$XML2_CONFIG" >&6; }
  14517. else
  14518. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  14519. $as_echo "no" >&6; }
  14520. fi
  14521. fi
  14522. if test -z "$ac_cv_prog_XML2_CONFIG"; then
  14523. ac_ct_XML2_CONFIG=$XML2_CONFIG
  14524. # Extract the first word of "xml2-config", so it can be a program name with args.
  14525. set dummy xml2-config; ac_word=$2
  14526. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  14527. $as_echo_n "checking for $ac_word... " >&6; }
  14528. if ${ac_cv_prog_ac_ct_XML2_CONFIG+:} false; then :
  14529. $as_echo_n "(cached) " >&6
  14530. else
  14531. if test -n "$ac_ct_XML2_CONFIG"; then
  14532. ac_cv_prog_ac_ct_XML2_CONFIG="$ac_ct_XML2_CONFIG" # Let the user override the test.
  14533. else
  14534. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  14535. for as_dir in $PATH
  14536. do
  14537. IFS=$as_save_IFS
  14538. test -z "$as_dir" && as_dir=.
  14539. for ac_exec_ext in '' $ac_executable_extensions; do
  14540. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  14541. ac_cv_prog_ac_ct_XML2_CONFIG="xml2-config"
  14542. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  14543. break 2
  14544. fi
  14545. done
  14546. done
  14547. IFS=$as_save_IFS
  14548. fi
  14549. fi
  14550. ac_ct_XML2_CONFIG=$ac_cv_prog_ac_ct_XML2_CONFIG
  14551. if test -n "$ac_ct_XML2_CONFIG"; then
  14552. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_XML2_CONFIG" >&5
  14553. $as_echo "$ac_ct_XML2_CONFIG" >&6; }
  14554. else
  14555. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  14556. $as_echo "no" >&6; }
  14557. fi
  14558. if test "x$ac_ct_XML2_CONFIG" = x; then
  14559. XML2_CONFIG=""
  14560. else
  14561. case $cross_compiling:$ac_tool_warned in
  14562. yes:)
  14563. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  14564. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  14565. ac_tool_warned=yes ;;
  14566. esac
  14567. XML2_CONFIG=$ac_ct_XML2_CONFIG
  14568. fi
  14569. else
  14570. XML2_CONFIG="$ac_cv_prog_XML2_CONFIG"
  14571. fi
  14572. if test "x$XML2_CONFIG" != "xno"; then
  14573. # xml2-config in some versions erroneously includes -I/include
  14574. # in the --cflags output.
  14575. NE_LX2_VERSION="`$XML2_CONFIG --version`"
  14576. NE_LX2_CFLAGS="`$XML2_CONFIG --cflags | sed 's| -I/include||g'`"
  14577. NE_LX2_LIBS="`$XML2_CONFIG --libs | sed 's|-L/usr/lib ||g'`"
  14578. fi
  14579. else
  14580. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libxml-2.0 pkg-config data" >&5
  14581. $as_echo_n "checking for libxml-2.0 pkg-config data... " >&6; }
  14582. if ${ne_cv_pkg_libxml_2_0+:} false; then :
  14583. $as_echo_n "(cached) " >&6
  14584. else
  14585. if $PKG_CONFIG libxml-2.0; then
  14586. ne_cv_pkg_libxml_2_0=yes
  14587. else
  14588. ne_cv_pkg_libxml_2_0=no
  14589. fi
  14590. fi
  14591. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ne_cv_pkg_libxml_2_0" >&5
  14592. $as_echo "$ne_cv_pkg_libxml_2_0" >&6; }
  14593. if test "$ne_cv_pkg_libxml_2_0" = "yes"; then
  14594. NE_LX2_CFLAGS=`$PKG_CONFIG --cflags libxml-2.0`
  14595. NE_LX2_LIBS=`$PKG_CONFIG --libs libxml-2.0`
  14596. NE_LX2_VERSION=`$PKG_CONFIG --modversion libxml-2.0`
  14597. : Using provided pkg-config data
  14598. else
  14599. : No pkg-config for libxml-2.0 provided
  14600. if test -n "$ac_tool_prefix"; then
  14601. # Extract the first word of "${ac_tool_prefix}xml2-config", so it can be a program name with args.
  14602. set dummy ${ac_tool_prefix}xml2-config; ac_word=$2
  14603. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  14604. $as_echo_n "checking for $ac_word... " >&6; }
  14605. if ${ac_cv_prog_XML2_CONFIG+:} false; then :
  14606. $as_echo_n "(cached) " >&6
  14607. else
  14608. if test -n "$XML2_CONFIG"; then
  14609. ac_cv_prog_XML2_CONFIG="$XML2_CONFIG" # Let the user override the test.
  14610. else
  14611. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  14612. for as_dir in $PATH
  14613. do
  14614. IFS=$as_save_IFS
  14615. test -z "$as_dir" && as_dir=.
  14616. for ac_exec_ext in '' $ac_executable_extensions; do
  14617. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  14618. ac_cv_prog_XML2_CONFIG="${ac_tool_prefix}xml2-config"
  14619. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  14620. break 2
  14621. fi
  14622. done
  14623. done
  14624. IFS=$as_save_IFS
  14625. fi
  14626. fi
  14627. XML2_CONFIG=$ac_cv_prog_XML2_CONFIG
  14628. if test -n "$XML2_CONFIG"; then
  14629. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XML2_CONFIG" >&5
  14630. $as_echo "$XML2_CONFIG" >&6; }
  14631. else
  14632. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  14633. $as_echo "no" >&6; }
  14634. fi
  14635. fi
  14636. if test -z "$ac_cv_prog_XML2_CONFIG"; then
  14637. ac_ct_XML2_CONFIG=$XML2_CONFIG
  14638. # Extract the first word of "xml2-config", so it can be a program name with args.
  14639. set dummy xml2-config; ac_word=$2
  14640. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  14641. $as_echo_n "checking for $ac_word... " >&6; }
  14642. if ${ac_cv_prog_ac_ct_XML2_CONFIG+:} false; then :
  14643. $as_echo_n "(cached) " >&6
  14644. else
  14645. if test -n "$ac_ct_XML2_CONFIG"; then
  14646. ac_cv_prog_ac_ct_XML2_CONFIG="$ac_ct_XML2_CONFIG" # Let the user override the test.
  14647. else
  14648. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  14649. for as_dir in $PATH
  14650. do
  14651. IFS=$as_save_IFS
  14652. test -z "$as_dir" && as_dir=.
  14653. for ac_exec_ext in '' $ac_executable_extensions; do
  14654. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  14655. ac_cv_prog_ac_ct_XML2_CONFIG="xml2-config"
  14656. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  14657. break 2
  14658. fi
  14659. done
  14660. done
  14661. IFS=$as_save_IFS
  14662. fi
  14663. fi
  14664. ac_ct_XML2_CONFIG=$ac_cv_prog_ac_ct_XML2_CONFIG
  14665. if test -n "$ac_ct_XML2_CONFIG"; then
  14666. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_XML2_CONFIG" >&5
  14667. $as_echo "$ac_ct_XML2_CONFIG" >&6; }
  14668. else
  14669. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  14670. $as_echo "no" >&6; }
  14671. fi
  14672. if test "x$ac_ct_XML2_CONFIG" = x; then
  14673. XML2_CONFIG=""
  14674. else
  14675. case $cross_compiling:$ac_tool_warned in
  14676. yes:)
  14677. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  14678. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  14679. ac_tool_warned=yes ;;
  14680. esac
  14681. XML2_CONFIG=$ac_ct_XML2_CONFIG
  14682. fi
  14683. else
  14684. XML2_CONFIG="$ac_cv_prog_XML2_CONFIG"
  14685. fi
  14686. if test "x$XML2_CONFIG" != "xno"; then
  14687. # xml2-config in some versions erroneously includes -I/include
  14688. # in the --cflags output.
  14689. NE_LX2_VERSION="`$XML2_CONFIG --version`"
  14690. NE_LX2_CFLAGS="`$XML2_CONFIG --cflags | sed 's| -I/include||g'`"
  14691. NE_LX2_LIBS="`$XML2_CONFIG --libs | sed 's|-L/usr/lib ||g'`"
  14692. fi
  14693. fi
  14694. fi
  14695. if test -n "${NE_LX2_VERSION+set}"; then
  14696. neon_xml_parser_message="libxml $NE_LX2_VERSION"
  14697. $as_echo "#define HAVE_LIBXML 1" >>confdefs.h
  14698. CPPFLAGS="$CPPFLAGS $NE_LX2_CFLAGS"
  14699. NEON_LIBS="$NEON_LIBS $NE_LX2_LIBS"
  14700. for ac_header in libxml/xmlversion.h libxml/parser.h
  14701. do :
  14702. as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
  14703. ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
  14704. if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
  14705. cat >>confdefs.h <<_ACEOF
  14706. #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
  14707. _ACEOF
  14708. else
  14709. as_fn_error $? "could not find parser.h, libxml installation problem?" "$LINENO" 5
  14710. fi
  14711. done
  14712. neon_xml_parser=libxml2
  14713. else
  14714. :
  14715. fi
  14716. fi
  14717. fi
  14718. # If an XML parser still has not been found, fail or use the bundled expat
  14719. if test "$neon_xml_parser" = "none"; then
  14720. as_fn_error $? "no XML parser was found: expat or libxml 2.x required" "$LINENO" 5
  14721. fi
  14722. { $as_echo "$as_me:${as_lineno-$LINENO}: XML parser used: $neon_xml_parser_message" >&5
  14723. $as_echo "$as_me: XML parser used: $neon_xml_parser_message" >&6;}
  14724. fi
  14725. # Internationalization support.
  14726. # Check whether --enable-nls was given.
  14727. if test "${enable_nls+set}" = set; then :
  14728. enableval=$enable_nls;
  14729. else
  14730. enable_nls=${ac_cv_header_libintl_h}
  14731. fi
  14732. if test x${enable_nls} = xyes; then
  14733. # presume that dgettext() is available if bindtextdomain() is...
  14734. # checking for dgettext() itself is awkward because gcc has a
  14735. # builtin of that function, which confuses AC_CHECK_FUNCS et al.
  14736. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing bindtextdomain" >&5
  14737. $as_echo_n "checking for library containing bindtextdomain... " >&6; }
  14738. if ${ne_cv_libsfor_bindtextdomain+:} false; then :
  14739. $as_echo_n "(cached) " >&6
  14740. else
  14741. case $ne_cv_os_uname in
  14742. MINGW*)
  14743. ;;
  14744. *)
  14745. case bindtextdomain in
  14746. getaddrinfo)
  14747. ne__prologue="#include <netdb.h>"
  14748. ne__code="getaddrinfo(0,0,0,0);"
  14749. ;;
  14750. socket)
  14751. ne__prologue="#include <sys/socket.h>"
  14752. ne__code="socket(0,0,0);"
  14753. ;;
  14754. bindtextdomain)
  14755. ne__prologue="#include <libintl.h>"
  14756. ne__code="bindtextdomain(\"\",\"\");"
  14757. ;;
  14758. *)
  14759. ne__prologue=""
  14760. ne__code="bindtextdomain();"
  14761. ;;
  14762. esac
  14763. ;;
  14764. esac
  14765. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14766. /* end confdefs.h. */
  14767. $ne__prologue
  14768. int
  14769. main ()
  14770. {
  14771. $ne__code
  14772. ;
  14773. return 0;
  14774. }
  14775. _ACEOF
  14776. if ac_fn_c_try_link "$LINENO"; then :
  14777. ne_cv_libsfor_bindtextdomain="none needed"
  14778. else
  14779. ne_sl_save_LIBS=$LIBS
  14780. ne_cv_libsfor_bindtextdomain="not found"
  14781. for lib in intl; do
  14782. case $ne_cv_os_uname in
  14783. MINGW*)
  14784. case $lib in
  14785. ws2_32)
  14786. ne__prologue="#include <winsock2.h>"
  14787. case bindtextdomain in
  14788. gethostbyname)
  14789. ne__code="gethostbyname(\"\")"
  14790. ;;
  14791. socket)
  14792. ne__code="socket(0,0,0);"
  14793. ;;
  14794. *)
  14795. ne__code="bindtextdomain();"
  14796. ;;
  14797. esac
  14798. ;;
  14799. *)
  14800. ne__prologue=""
  14801. ne__code=""
  14802. ;;
  14803. esac
  14804. ;;
  14805. *)
  14806. ;;
  14807. esac
  14808. LIBS="$ne_sl_save_LIBS -l$lib $NEON_LIBS"
  14809. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14810. /* end confdefs.h. */
  14811. $ne__prologue
  14812. int
  14813. main ()
  14814. {
  14815. $ne__code
  14816. ;
  14817. return 0;
  14818. }
  14819. _ACEOF
  14820. if ac_fn_c_try_link "$LINENO"; then :
  14821. ne_cv_libsfor_bindtextdomain="-l$lib"; break
  14822. fi
  14823. rm -f core conftest.err conftest.$ac_objext \
  14824. conftest$ac_exeext conftest.$ac_ext
  14825. LIBS="$ne_sl_save_LIBS -l$lib -liconv $NEON_LIBS"
  14826. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14827. /* end confdefs.h. */
  14828. $ne__prologue
  14829. int
  14830. main ()
  14831. {
  14832. $ne__code
  14833. ;
  14834. return 0;
  14835. }
  14836. _ACEOF
  14837. if ac_fn_c_try_link "$LINENO"; then :
  14838. ne_cv_libsfor_bindtextdomain="-l$lib -liconv "; break
  14839. fi
  14840. rm -f core conftest.err conftest.$ac_objext \
  14841. conftest$ac_exeext conftest.$ac_ext
  14842. done
  14843. LIBS=$ne_sl_save_LIBS
  14844. fi
  14845. rm -f core conftest.err conftest.$ac_objext \
  14846. conftest$ac_exeext conftest.$ac_ext
  14847. fi
  14848. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ne_cv_libsfor_bindtextdomain" >&5
  14849. $as_echo "$ne_cv_libsfor_bindtextdomain" >&6; }
  14850. if test "$ne_cv_libsfor_bindtextdomain" = "not found"; then
  14851. enable_nls=no
  14852. elif test "$ne_cv_libsfor_bindtextdomain" = "none needed"; then
  14853. :
  14854. else
  14855. NEON_LIBS="$ne_cv_libsfor_bindtextdomain $NEON_LIBS"
  14856. fi
  14857. ne_cf_save_LIBS=$LIBS
  14858. LIBS="$LIBS $NEON_LIBS"
  14859. for ac_func in bind_textdomain_codeset
  14860. do :
  14861. ac_fn_c_check_func "$LINENO" "bind_textdomain_codeset" "ac_cv_func_bind_textdomain_codeset"
  14862. if test "x$ac_cv_func_bind_textdomain_codeset" = xyes; then :
  14863. cat >>confdefs.h <<_ACEOF
  14864. #define HAVE_BIND_TEXTDOMAIN_CODESET 1
  14865. _ACEOF
  14866. fi
  14867. done
  14868. LIBS=$ne_cf_save_LIBS
  14869. fi
  14870. if test "$enable_nls" = "no"; then
  14871. NE_FLAG_I18N=no
  14872. ne_I18N_message="Internationalization support not enabled"
  14873. { $as_echo "$as_me:${as_lineno-$LINENO}: Internationalization support not enabled" >&5
  14874. $as_echo "$as_me: Internationalization support not enabled" >&6;}
  14875. else
  14876. NE_FLAG_I18N=yes
  14877. $as_echo "#define NE_HAVE_I18N 1" >>confdefs.h
  14878. ne_I18N_message="Internationalization support enabled"
  14879. { $as_echo "$as_me:${as_lineno-$LINENO}: Internationalization support enabled" >&5
  14880. $as_echo "$as_me: Internationalization support enabled" >&6;}
  14881. eval localedir="${datadir}/locale"
  14882. cat >>confdefs.h <<_ACEOF
  14883. #define LOCALEDIR "$localedir"
  14884. _ACEOF
  14885. fi
  14886. # Extra checks for debugging, compiler warnings
  14887. # Check whether --enable-debug was given.
  14888. if test "${enable_debug+set}" = set; then :
  14889. enableval=$enable_debug;
  14890. fi
  14891. # default is to enable debugging
  14892. case $enable_debug in
  14893. no) { $as_echo "$as_me:${as_lineno-$LINENO}: debugging is disabled" >&5
  14894. $as_echo "$as_me: debugging is disabled" >&6;}
  14895. ;;
  14896. *) { $as_echo "$as_me:${as_lineno-$LINENO}: debugging is enabled" >&5
  14897. $as_echo "$as_me: debugging is enabled" >&6;}
  14898. $as_echo "#define NE_DEBUGGING 1" >>confdefs.h
  14899. ;;
  14900. esac
  14901. # Leave till last to prevent CFLAGS affecting checks.
  14902. # Check whether --enable-warnings was given.
  14903. if test "${enable_warnings+set}" = set; then :
  14904. enableval=$enable_warnings;
  14905. fi
  14906. if test "$enable_warnings" = "yes"; then
  14907. case $GCC:`uname` in
  14908. yes:*)
  14909. CFLAGS="$CFLAGS -Wall -Wmissing-declarations -Wshadow -Wreturn-type -Wsign-compare -Wundef -Wpointer-arith -Wbad-function-cast -Wformat-security"
  14910. if test -z "$with_ssl" -o "$with_ssl" = "no"; then
  14911. # OpenSSL headers fail strict prototypes checks
  14912. CFLAGS="$CFLAGS -Wstrict-prototypes"
  14913. fi
  14914. ;;
  14915. no:OSF1) CFLAGS="$CFLAGS -check -msg_disable returnchecks -msg_disable alignment -msg_disable overflow" ;;
  14916. no:IRIX) CFLAGS="$CFLAGS -fullwarn" ;;
  14917. no:UnixWare) CFLAGS="$CFLAGS -v" ;;
  14918. *) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: warning flags unknown for compiler on this platform" >&5
  14919. $as_echo "$as_me: WARNING: warning flags unknown for compiler on this platform" >&2;} ;;
  14920. esac
  14921. fi
  14922. CPPFLAGS="$CPPFLAGS -I\${top_builddir}"
  14923. # Check whether --enable-memleak was given.
  14924. if test "${enable_memleak+set}" = set; then :
  14925. enableval=$enable_memleak;
  14926. fi
  14927. if test "$enable_memleak" = "yes"; then
  14928. CPPFLAGS="$CPPFLAGS -DNEON_MEMLEAK -I\$(top_srcdir)/src"
  14929. # disable 'make install'
  14930. ALLOW_INSTALL=memleak
  14931. fi
  14932. # Enable tests for optional features
  14933. TESTS="\$(BASIC_TESTS)"
  14934. HELPERS=""
  14935. if test $NE_FLAG_SSL = yes; then
  14936. # Only enable SSL tests if an openssl binary is found (needed to make
  14937. # certs etc).
  14938. # Extract the first word of "openssl", so it can be a program name with args.
  14939. set dummy openssl; ac_word=$2
  14940. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  14941. $as_echo_n "checking for $ac_word... " >&6; }
  14942. if ${ac_cv_path_OPENSSL+:} false; then :
  14943. $as_echo_n "(cached) " >&6
  14944. else
  14945. case $OPENSSL in
  14946. [\\/]* | ?:[\\/]*)
  14947. ac_cv_path_OPENSSL="$OPENSSL" # Let the user override the test with a path.
  14948. ;;
  14949. *)
  14950. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  14951. for as_dir in $PATH
  14952. do
  14953. IFS=$as_save_IFS
  14954. test -z "$as_dir" && as_dir=.
  14955. for ac_exec_ext in '' $ac_executable_extensions; do
  14956. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  14957. ac_cv_path_OPENSSL="$as_dir/$ac_word$ac_exec_ext"
  14958. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  14959. break 2
  14960. fi
  14961. done
  14962. done
  14963. IFS=$as_save_IFS
  14964. test -z "$ac_cv_path_OPENSSL" && ac_cv_path_OPENSSL="notfound"
  14965. ;;
  14966. esac
  14967. fi
  14968. OPENSSL=$ac_cv_path_OPENSSL
  14969. if test -n "$OPENSSL"; then
  14970. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OPENSSL" >&5
  14971. $as_echo "$OPENSSL" >&6; }
  14972. else
  14973. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  14974. $as_echo "no" >&6; }
  14975. fi
  14976. if test "$OPENSSL" != "notfound"; then
  14977. TESTS="$TESTS \$(SSL_TESTS)"
  14978. HELPERS="$HELPERS \$(SSL_HELPERS)"
  14979. else
  14980. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: no openssl binary in \$PATH: SSL tests disabled" >&5
  14981. $as_echo "$as_me: WARNING: no openssl binary in \$PATH: SSL tests disabled" >&2;}
  14982. fi
  14983. # Extract the first word of "certutil", so it can be a program name with args.
  14984. set dummy certutil; ac_word=$2
  14985. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  14986. $as_echo_n "checking for $ac_word... " >&6; }
  14987. if ${ac_cv_path_CERTUTIL+:} false; then :
  14988. $as_echo_n "(cached) " >&6
  14989. else
  14990. case $CERTUTIL in
  14991. [\\/]* | ?:[\\/]*)
  14992. ac_cv_path_CERTUTIL="$CERTUTIL" # Let the user override the test with a path.
  14993. ;;
  14994. *)
  14995. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  14996. for as_dir in $PATH
  14997. do
  14998. IFS=$as_save_IFS
  14999. test -z "$as_dir" && as_dir=.
  15000. for ac_exec_ext in '' $ac_executable_extensions; do
  15001. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  15002. ac_cv_path_CERTUTIL="$as_dir/$ac_word$ac_exec_ext"
  15003. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  15004. break 2
  15005. fi
  15006. done
  15007. done
  15008. IFS=$as_save_IFS
  15009. test -z "$ac_cv_path_CERTUTIL" && ac_cv_path_CERTUTIL="notfound"
  15010. ;;
  15011. esac
  15012. fi
  15013. CERTUTIL=$ac_cv_path_CERTUTIL
  15014. if test -n "$CERTUTIL"; then
  15015. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CERTUTIL" >&5
  15016. $as_echo "$CERTUTIL" >&6; }
  15017. else
  15018. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  15019. $as_echo "no" >&6; }
  15020. fi
  15021. # Extract the first word of "pk12util", so it can be a program name with args.
  15022. set dummy pk12util; ac_word=$2
  15023. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  15024. $as_echo_n "checking for $ac_word... " >&6; }
  15025. if ${ac_cv_path_PK12UTIL+:} false; then :
  15026. $as_echo_n "(cached) " >&6
  15027. else
  15028. case $PK12UTIL in
  15029. [\\/]* | ?:[\\/]*)
  15030. ac_cv_path_PK12UTIL="$PK12UTIL" # Let the user override the test with a path.
  15031. ;;
  15032. *)
  15033. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  15034. for as_dir in $PATH
  15035. do
  15036. IFS=$as_save_IFS
  15037. test -z "$as_dir" && as_dir=.
  15038. for ac_exec_ext in '' $ac_executable_extensions; do
  15039. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  15040. ac_cv_path_PK12UTIL="$as_dir/$ac_word$ac_exec_ext"
  15041. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  15042. break 2
  15043. fi
  15044. done
  15045. done
  15046. IFS=$as_save_IFS
  15047. test -z "$ac_cv_path_PK12UTIL" && ac_cv_path_PK12UTIL="notfound"
  15048. ;;
  15049. esac
  15050. fi
  15051. PK12UTIL=$ac_cv_path_PK12UTIL
  15052. if test -n "$PK12UTIL"; then
  15053. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PK12UTIL" >&5
  15054. $as_echo "$PK12UTIL" >&6; }
  15055. else
  15056. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  15057. $as_echo "no" >&6; }
  15058. fi
  15059. fi
  15060. if test $NE_FLAG_ZLIB = yes; then
  15061. TESTS="$TESTS \$(ZLIB_TESTS)"
  15062. HELPERS="$HELPERS \$(ZLIB_HELPERS)"
  15063. fi
  15064. if test x$enable_webdav != xno; then
  15065. TESTS="$TESTS \$(DAV_TESTS)"
  15066. fi
  15067. # Check whether --enable-tests-install was given.
  15068. if test "${enable_tests_install+set}" = set; then :
  15069. enableval=$enable_tests_install;
  15070. else
  15071. enable_tests_install=no
  15072. fi
  15073. # If test suite installation is not required, it's more
  15074. # efficient to link the test programs using -no-install:
  15075. if test "$enable_tests_install" = "no"; then
  15076. TEST_LDFLAGS="-no-install"
  15077. fi
  15078. # Extract the first word of "pkg-config", so it can be a program name with args.
  15079. set dummy pkg-config; ac_word=$2
  15080. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  15081. $as_echo_n "checking for $ac_word... " >&6; }
  15082. if ${ac_cv_path_PKG_CONFIG+:} false; then :
  15083. $as_echo_n "(cached) " >&6
  15084. else
  15085. case $PKG_CONFIG in
  15086. [\\/]* | ?:[\\/]*)
  15087. ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
  15088. ;;
  15089. *)
  15090. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  15091. for as_dir in $PATH
  15092. do
  15093. IFS=$as_save_IFS
  15094. test -z "$as_dir" && as_dir=.
  15095. for ac_exec_ext in '' $ac_executable_extensions; do
  15096. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  15097. ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
  15098. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  15099. break 2
  15100. fi
  15101. done
  15102. done
  15103. IFS=$as_save_IFS
  15104. test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
  15105. ;;
  15106. esac
  15107. fi
  15108. PKG_CONFIG=$ac_cv_path_PKG_CONFIG
  15109. if test -n "$PKG_CONFIG"; then
  15110. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
  15111. $as_echo "$PKG_CONFIG" >&6; }
  15112. else
  15113. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  15114. $as_echo "no" >&6; }
  15115. fi
  15116. if test "$PKG_CONFIG" != "no"; then
  15117. # pkg-config >= 0.18 will use "Libs.private" iff necessary,
  15118. # older versions which don't recognize that field may always
  15119. # need all libraries in Libs.
  15120. if $PKG_CONFIG --atleast-pkgconfig-version=0.18; then :; else
  15121. NEON_PC_LIBS=${NEON_LIBS}
  15122. fi
  15123. fi
  15124. # Pass the interface version on to libtool when linking libneon.la
  15125. NEON_LINK_FLAGS="-version-info ${NE_LIBTOOL_VERSINFO}"
  15126. # If any non-default ABI variations are used, add them to the SONAME:
  15127. ### disabled for backwards-compat with 0.27.x
  15128. #if test "x${NE_LIBTOOL_RELEASE}y" != "xy"; then
  15129. # NEON_LINK_FLAGS="${NEON_LINK_FLAGS} -release ${NE_LIBTOOL_RELEASE}"
  15130. #fi
  15131. # Check whether --enable-ld-version-script was given.
  15132. if test "${enable_ld_version_script+set}" = set; then :
  15133. enableval=$enable_ld_version_script; have_ld_version_script=$enableval
  15134. fi
  15135. if test -z "$have_ld_version_script"; then
  15136. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if LD -Wl,--version-script works" >&5
  15137. $as_echo_n "checking if LD -Wl,--version-script works... " >&6; }
  15138. save_LDFLAGS="$LDFLAGS"
  15139. LDFLAGS="$LDFLAGS -Wl,--version-script=conftest.map"
  15140. cat > conftest.map <<EOF
  15141. foo
  15142. EOF
  15143. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15144. /* end confdefs.h. */
  15145. int
  15146. main ()
  15147. {
  15148. ;
  15149. return 0;
  15150. }
  15151. _ACEOF
  15152. if ac_fn_c_try_link "$LINENO"; then :
  15153. accepts_syntax_errors=yes
  15154. else
  15155. accepts_syntax_errors=no
  15156. fi
  15157. rm -f core conftest.err conftest.$ac_objext \
  15158. conftest$ac_exeext conftest.$ac_ext
  15159. if test "$accepts_syntax_errors" = no; then
  15160. cat > conftest.map <<EOF
  15161. VERS_1 {
  15162. global: sym;
  15163. };
  15164. VERS_2 {
  15165. global: sym;
  15166. } VERS_1;
  15167. EOF
  15168. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15169. /* end confdefs.h. */
  15170. int
  15171. main ()
  15172. {
  15173. ;
  15174. return 0;
  15175. }
  15176. _ACEOF
  15177. if ac_fn_c_try_link "$LINENO"; then :
  15178. have_ld_version_script=yes
  15179. else
  15180. have_ld_version_script=no
  15181. fi
  15182. rm -f core conftest.err conftest.$ac_objext \
  15183. conftest$ac_exeext conftest.$ac_ext
  15184. else
  15185. have_ld_version_script=no
  15186. fi
  15187. rm -f conftest.map
  15188. LDFLAGS="$save_LDFLAGS"
  15189. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_ld_version_script" >&5
  15190. $as_echo "$have_ld_version_script" >&6; }
  15191. fi
  15192. if test "$have_ld_version_script" = "yes"; then
  15193. HAVE_LD_VERSION_SCRIPT_TRUE=
  15194. HAVE_LD_VERSION_SCRIPT_FALSE='#'
  15195. else
  15196. HAVE_LD_VERSION_SCRIPT_TRUE='#'
  15197. HAVE_LD_VERSION_SCRIPT_FALSE=
  15198. fi
  15199. # If ld version scripts are supported, enable symbol versioning.
  15200. # Otherwise, fall back to any libtool-supported symbol export
  15201. # restrictions; ne__* symbols are not exported.
  15202. if test "x$have_ld_version_script" = "xyes"; then
  15203. NEON_LINK_FLAGS="$NEON_LINK_FLAGS -Wl,--version-script=\$(top_srcdir)/src/neon.vers"
  15204. else
  15205. NEON_LINK_FLAGS="$NEON_LINK_FLAGS -export-symbols-regex '^ne_[^_]'"
  15206. fi
  15207. if test x${enable_shared}${pic_mode}z = xnodefaultz; then
  15208. CFLAGS="$CFLAGS -prefer-pic"
  15209. { $as_echo "$as_me:${as_lineno-$LINENO}: Using PIC for static library build" >&5
  15210. $as_echo "$as_me: Using PIC for static library build" >&6;}
  15211. fi
  15212. if test x${enable_shared} = xno; then
  15213. # Defining NE_PRIVATE as the empty string would work; using a
  15214. # non-empty but redundant string 'extern' avoids any possible cpp
  15215. # confusion with from an empty macro.
  15216. CPPFLAGS="$CPPFLAGS -DNE_PRIVATE=extern"
  15217. { $as_echo "$as_me:${as_lineno-$LINENO}: Private symbol suppression disabled for static library build" >&5
  15218. $as_echo "$as_me: Private symbol suppression disabled for static library build" >&6;}
  15219. fi
  15220. # Bundled language catalogs
  15221. ALL_LINGUAS="cs de fr ja nn pl ru tr zh_CN"
  15222. ac_config_files="$ac_config_files neon-config"
  15223. ac_config_files="$ac_config_files Makefile src/Makefile test/Makefile neon.pc"
  15224. ac_config_files="$ac_config_files test/makekeys:test/makekeys.sh"
  15225. cat >confcache <<\_ACEOF
  15226. # This file is a shell script that caches the results of configure
  15227. # tests run on this system so they can be shared between configure
  15228. # scripts and configure runs, see configure's option --config-cache.
  15229. # It is not useful on other systems. If it contains results you don't
  15230. # want to keep, you may remove or edit it.
  15231. #
  15232. # config.status only pays attention to the cache file if you give it
  15233. # the --recheck option to rerun configure.
  15234. #
  15235. # `ac_cv_env_foo' variables (set or unset) will be overridden when
  15236. # loading this file, other *unset* `ac_cv_foo' will be assigned the
  15237. # following values.
  15238. _ACEOF
  15239. # The following way of writing the cache mishandles newlines in values,
  15240. # but we know of no workaround that is simple, portable, and efficient.
  15241. # So, we kill variables containing newlines.
  15242. # Ultrix sh set writes to stderr and can't be redirected directly,
  15243. # and sets the high bit in the cache file unless we assign to the vars.
  15244. (
  15245. for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
  15246. eval ac_val=\$$ac_var
  15247. case $ac_val in #(
  15248. *${as_nl}*)
  15249. case $ac_var in #(
  15250. *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
  15251. $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
  15252. esac
  15253. case $ac_var in #(
  15254. _ | IFS | as_nl) ;; #(
  15255. BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
  15256. *) { eval $ac_var=; unset $ac_var;} ;;
  15257. esac ;;
  15258. esac
  15259. done
  15260. (set) 2>&1 |
  15261. case $as_nl`(ac_space=' '; set) 2>&1` in #(
  15262. *${as_nl}ac_space=\ *)
  15263. # `set' does not quote correctly, so add quotes: double-quote
  15264. # substitution turns \\\\ into \\, and sed turns \\ into \.
  15265. sed -n \
  15266. "s/'/'\\\\''/g;
  15267. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
  15268. ;; #(
  15269. *)
  15270. # `set' quotes correctly as required by POSIX, so do not add quotes.
  15271. sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
  15272. ;;
  15273. esac |
  15274. sort
  15275. ) |
  15276. sed '
  15277. /^ac_cv_env_/b end
  15278. t clear
  15279. :clear
  15280. s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
  15281. t end
  15282. s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
  15283. :end' >>confcache
  15284. if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
  15285. if test -w "$cache_file"; then
  15286. if test "x$cache_file" != "x/dev/null"; then
  15287. { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
  15288. $as_echo "$as_me: updating cache $cache_file" >&6;}
  15289. if test ! -f "$cache_file" || test -h "$cache_file"; then
  15290. cat confcache >"$cache_file"
  15291. else
  15292. case $cache_file in #(
  15293. */* | ?:*)
  15294. mv -f confcache "$cache_file"$$ &&
  15295. mv -f "$cache_file"$$ "$cache_file" ;; #(
  15296. *)
  15297. mv -f confcache "$cache_file" ;;
  15298. esac
  15299. fi
  15300. fi
  15301. else
  15302. { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
  15303. $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
  15304. fi
  15305. fi
  15306. rm -f confcache
  15307. test "x$prefix" = xNONE && prefix=$ac_default_prefix
  15308. # Let make expand exec_prefix.
  15309. test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
  15310. DEFS=-DHAVE_CONFIG_H
  15311. ac_libobjs=
  15312. ac_ltlibobjs=
  15313. U=
  15314. for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
  15315. # 1. Remove the extension, and $U if already installed.
  15316. ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
  15317. ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
  15318. # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
  15319. # will be set to the directory where LIBOBJS objects are built.
  15320. as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
  15321. as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
  15322. done
  15323. LIBOBJS=$ac_libobjs
  15324. LTLIBOBJS=$ac_ltlibobjs
  15325. if test -z "${HAVE_LD_VERSION_SCRIPT_TRUE}" && test -z "${HAVE_LD_VERSION_SCRIPT_FALSE}"; then
  15326. as_fn_error $? "conditional \"HAVE_LD_VERSION_SCRIPT\" was never defined.
  15327. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  15328. fi
  15329. : "${CONFIG_STATUS=./config.status}"
  15330. ac_write_fail=0
  15331. ac_clean_files_save=$ac_clean_files
  15332. ac_clean_files="$ac_clean_files $CONFIG_STATUS"
  15333. { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
  15334. $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
  15335. as_write_fail=0
  15336. cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
  15337. #! $SHELL
  15338. # Generated by $as_me.
  15339. # Run this file to recreate the current configuration.
  15340. # Compiler output produced by configure, useful for debugging
  15341. # configure, is in config.log if it exists.
  15342. debug=false
  15343. ac_cs_recheck=false
  15344. ac_cs_silent=false
  15345. SHELL=\${CONFIG_SHELL-$SHELL}
  15346. export SHELL
  15347. _ASEOF
  15348. cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
  15349. ## -------------------- ##
  15350. ## M4sh Initialization. ##
  15351. ## -------------------- ##
  15352. # Be more Bourne compatible
  15353. DUALCASE=1; export DUALCASE # for MKS sh
  15354. if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
  15355. emulate sh
  15356. NULLCMD=:
  15357. # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
  15358. # is contrary to our usage. Disable this feature.
  15359. alias -g '${1+"$@"}'='"$@"'
  15360. setopt NO_GLOB_SUBST
  15361. else
  15362. case `(set -o) 2>/dev/null` in #(
  15363. *posix*) :
  15364. set -o posix ;; #(
  15365. *) :
  15366. ;;
  15367. esac
  15368. fi
  15369. as_nl='
  15370. '
  15371. export as_nl
  15372. # Printing a long string crashes Solaris 7 /usr/bin/printf.
  15373. as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
  15374. as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
  15375. as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
  15376. # Prefer a ksh shell builtin over an external printf program on Solaris,
  15377. # but without wasting forks for bash or zsh.
  15378. if test -z "$BASH_VERSION$ZSH_VERSION" \
  15379. && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
  15380. as_echo='print -r --'
  15381. as_echo_n='print -rn --'
  15382. elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
  15383. as_echo='printf %s\n'
  15384. as_echo_n='printf %s'
  15385. else
  15386. if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
  15387. as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
  15388. as_echo_n='/usr/ucb/echo -n'
  15389. else
  15390. as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
  15391. as_echo_n_body='eval
  15392. arg=$1;
  15393. case $arg in #(
  15394. *"$as_nl"*)
  15395. expr "X$arg" : "X\\(.*\\)$as_nl";
  15396. arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
  15397. esac;
  15398. expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
  15399. '
  15400. export as_echo_n_body
  15401. as_echo_n='sh -c $as_echo_n_body as_echo'
  15402. fi
  15403. export as_echo_body
  15404. as_echo='sh -c $as_echo_body as_echo'
  15405. fi
  15406. # The user is always right.
  15407. if test "${PATH_SEPARATOR+set}" != set; then
  15408. PATH_SEPARATOR=:
  15409. (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
  15410. (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
  15411. PATH_SEPARATOR=';'
  15412. }
  15413. fi
  15414. # IFS
  15415. # We need space, tab and new line, in precisely that order. Quoting is
  15416. # there to prevent editors from complaining about space-tab.
  15417. # (If _AS_PATH_WALK were called with IFS unset, it would disable word
  15418. # splitting by setting IFS to empty value.)
  15419. IFS=" "" $as_nl"
  15420. # Find who we are. Look in the path if we contain no directory separator.
  15421. as_myself=
  15422. case $0 in #((
  15423. *[\\/]* ) as_myself=$0 ;;
  15424. *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  15425. for as_dir in $PATH
  15426. do
  15427. IFS=$as_save_IFS
  15428. test -z "$as_dir" && as_dir=.
  15429. test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
  15430. done
  15431. IFS=$as_save_IFS
  15432. ;;
  15433. esac
  15434. # We did not find ourselves, most probably we were run as `sh COMMAND'
  15435. # in which case we are not to be found in the path.
  15436. if test "x$as_myself" = x; then
  15437. as_myself=$0
  15438. fi
  15439. if test ! -f "$as_myself"; then
  15440. $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
  15441. exit 1
  15442. fi
  15443. # Unset variables that we do not need and which cause bugs (e.g. in
  15444. # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
  15445. # suppresses any "Segmentation fault" message there. '((' could
  15446. # trigger a bug in pdksh 5.2.14.
  15447. for as_var in BASH_ENV ENV MAIL MAILPATH
  15448. do eval test x\${$as_var+set} = xset \
  15449. && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
  15450. done
  15451. PS1='$ '
  15452. PS2='> '
  15453. PS4='+ '
  15454. # NLS nuisances.
  15455. LC_ALL=C
  15456. export LC_ALL
  15457. LANGUAGE=C
  15458. export LANGUAGE
  15459. # CDPATH.
  15460. (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
  15461. # as_fn_error STATUS ERROR [LINENO LOG_FD]
  15462. # ----------------------------------------
  15463. # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
  15464. # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
  15465. # script with STATUS, using 1 if that was 0.
  15466. as_fn_error ()
  15467. {
  15468. as_status=$1; test $as_status -eq 0 && as_status=1
  15469. if test "$4"; then
  15470. as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  15471. $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
  15472. fi
  15473. $as_echo "$as_me: error: $2" >&2
  15474. as_fn_exit $as_status
  15475. } # as_fn_error
  15476. # as_fn_set_status STATUS
  15477. # -----------------------
  15478. # Set $? to STATUS, without forking.
  15479. as_fn_set_status ()
  15480. {
  15481. return $1
  15482. } # as_fn_set_status
  15483. # as_fn_exit STATUS
  15484. # -----------------
  15485. # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
  15486. as_fn_exit ()
  15487. {
  15488. set +e
  15489. as_fn_set_status $1
  15490. exit $1
  15491. } # as_fn_exit
  15492. # as_fn_unset VAR
  15493. # ---------------
  15494. # Portably unset VAR.
  15495. as_fn_unset ()
  15496. {
  15497. { eval $1=; unset $1;}
  15498. }
  15499. as_unset=as_fn_unset
  15500. # as_fn_append VAR VALUE
  15501. # ----------------------
  15502. # Append the text in VALUE to the end of the definition contained in VAR. Take
  15503. # advantage of any shell optimizations that allow amortized linear growth over
  15504. # repeated appends, instead of the typical quadratic growth present in naive
  15505. # implementations.
  15506. if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
  15507. eval 'as_fn_append ()
  15508. {
  15509. eval $1+=\$2
  15510. }'
  15511. else
  15512. as_fn_append ()
  15513. {
  15514. eval $1=\$$1\$2
  15515. }
  15516. fi # as_fn_append
  15517. # as_fn_arith ARG...
  15518. # ------------------
  15519. # Perform arithmetic evaluation on the ARGs, and store the result in the
  15520. # global $as_val. Take advantage of shells that can avoid forks. The arguments
  15521. # must be portable across $(()) and expr.
  15522. if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
  15523. eval 'as_fn_arith ()
  15524. {
  15525. as_val=$(( $* ))
  15526. }'
  15527. else
  15528. as_fn_arith ()
  15529. {
  15530. as_val=`expr "$@" || test $? -eq 1`
  15531. }
  15532. fi # as_fn_arith
  15533. if expr a : '\(a\)' >/dev/null 2>&1 &&
  15534. test "X`expr 00001 : '.*\(...\)'`" = X001; then
  15535. as_expr=expr
  15536. else
  15537. as_expr=false
  15538. fi
  15539. if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
  15540. as_basename=basename
  15541. else
  15542. as_basename=false
  15543. fi
  15544. if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
  15545. as_dirname=dirname
  15546. else
  15547. as_dirname=false
  15548. fi
  15549. as_me=`$as_basename -- "$0" ||
  15550. $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
  15551. X"$0" : 'X\(//\)$' \| \
  15552. X"$0" : 'X\(/\)' \| . 2>/dev/null ||
  15553. $as_echo X/"$0" |
  15554. sed '/^.*\/\([^/][^/]*\)\/*$/{
  15555. s//\1/
  15556. q
  15557. }
  15558. /^X\/\(\/\/\)$/{
  15559. s//\1/
  15560. q
  15561. }
  15562. /^X\/\(\/\).*/{
  15563. s//\1/
  15564. q
  15565. }
  15566. s/.*/./; q'`
  15567. # Avoid depending upon Character Ranges.
  15568. as_cr_letters='abcdefghijklmnopqrstuvwxyz'
  15569. as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
  15570. as_cr_Letters=$as_cr_letters$as_cr_LETTERS
  15571. as_cr_digits='0123456789'
  15572. as_cr_alnum=$as_cr_Letters$as_cr_digits
  15573. ECHO_C= ECHO_N= ECHO_T=
  15574. case `echo -n x` in #(((((
  15575. -n*)
  15576. case `echo 'xy\c'` in
  15577. *c*) ECHO_T=' ';; # ECHO_T is single tab character.
  15578. xy) ECHO_C='\c';;
  15579. *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
  15580. ECHO_T=' ';;
  15581. esac;;
  15582. *)
  15583. ECHO_N='-n';;
  15584. esac
  15585. rm -f conf$$ conf$$.exe conf$$.file
  15586. if test -d conf$$.dir; then
  15587. rm -f conf$$.dir/conf$$.file
  15588. else
  15589. rm -f conf$$.dir
  15590. mkdir conf$$.dir 2>/dev/null
  15591. fi
  15592. if (echo >conf$$.file) 2>/dev/null; then
  15593. if ln -s conf$$.file conf$$ 2>/dev/null; then
  15594. as_ln_s='ln -s'
  15595. # ... but there are two gotchas:
  15596. # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
  15597. # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
  15598. # In both cases, we have to default to `cp -pR'.
  15599. ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
  15600. as_ln_s='cp -pR'
  15601. elif ln conf$$.file conf$$ 2>/dev/null; then
  15602. as_ln_s=ln
  15603. else
  15604. as_ln_s='cp -pR'
  15605. fi
  15606. else
  15607. as_ln_s='cp -pR'
  15608. fi
  15609. rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
  15610. rmdir conf$$.dir 2>/dev/null
  15611. # as_fn_mkdir_p
  15612. # -------------
  15613. # Create "$as_dir" as a directory, including parents if necessary.
  15614. as_fn_mkdir_p ()
  15615. {
  15616. case $as_dir in #(
  15617. -*) as_dir=./$as_dir;;
  15618. esac
  15619. test -d "$as_dir" || eval $as_mkdir_p || {
  15620. as_dirs=
  15621. while :; do
  15622. case $as_dir in #(
  15623. *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
  15624. *) as_qdir=$as_dir;;
  15625. esac
  15626. as_dirs="'$as_qdir' $as_dirs"
  15627. as_dir=`$as_dirname -- "$as_dir" ||
  15628. $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  15629. X"$as_dir" : 'X\(//\)[^/]' \| \
  15630. X"$as_dir" : 'X\(//\)$' \| \
  15631. X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
  15632. $as_echo X"$as_dir" |
  15633. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  15634. s//\1/
  15635. q
  15636. }
  15637. /^X\(\/\/\)[^/].*/{
  15638. s//\1/
  15639. q
  15640. }
  15641. /^X\(\/\/\)$/{
  15642. s//\1/
  15643. q
  15644. }
  15645. /^X\(\/\).*/{
  15646. s//\1/
  15647. q
  15648. }
  15649. s/.*/./; q'`
  15650. test -d "$as_dir" && break
  15651. done
  15652. test -z "$as_dirs" || eval "mkdir $as_dirs"
  15653. } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
  15654. } # as_fn_mkdir_p
  15655. if mkdir -p . 2>/dev/null; then
  15656. as_mkdir_p='mkdir -p "$as_dir"'
  15657. else
  15658. test -d ./-p && rmdir ./-p
  15659. as_mkdir_p=false
  15660. fi
  15661. # as_fn_executable_p FILE
  15662. # -----------------------
  15663. # Test if FILE is an executable regular file.
  15664. as_fn_executable_p ()
  15665. {
  15666. test -f "$1" && test -x "$1"
  15667. } # as_fn_executable_p
  15668. as_test_x='test -x'
  15669. as_executable_p=as_fn_executable_p
  15670. # Sed expression to map a string onto a valid CPP name.
  15671. as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
  15672. # Sed expression to map a string onto a valid variable name.
  15673. as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
  15674. exec 6>&1
  15675. ## ----------------------------------- ##
  15676. ## Main body of $CONFIG_STATUS script. ##
  15677. ## ----------------------------------- ##
  15678. _ASEOF
  15679. test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
  15680. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  15681. # Save the log message, to keep $0 and so on meaningful, and to
  15682. # report actual input values of CONFIG_FILES etc. instead of their
  15683. # values after options handling.
  15684. ac_log="
  15685. This file was extended by neon $as_me 0.32.2, which was
  15686. generated by GNU Autoconf 2.69. Invocation command line was
  15687. CONFIG_FILES = $CONFIG_FILES
  15688. CONFIG_HEADERS = $CONFIG_HEADERS
  15689. CONFIG_LINKS = $CONFIG_LINKS
  15690. CONFIG_COMMANDS = $CONFIG_COMMANDS
  15691. $ $0 $@
  15692. on `(hostname || uname -n) 2>/dev/null | sed 1q`
  15693. "
  15694. _ACEOF
  15695. case $ac_config_files in *"
  15696. "*) set x $ac_config_files; shift; ac_config_files=$*;;
  15697. esac
  15698. case $ac_config_headers in *"
  15699. "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
  15700. esac
  15701. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  15702. # Files that config.status was made for.
  15703. config_files="$ac_config_files"
  15704. config_headers="$ac_config_headers"
  15705. config_commands="$ac_config_commands"
  15706. _ACEOF
  15707. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  15708. ac_cs_usage="\
  15709. \`$as_me' instantiates files and other configuration actions
  15710. from templates according to the current configuration. Unless the files
  15711. and actions are specified as TAGs, all are instantiated by default.
  15712. Usage: $0 [OPTION]... [TAG]...
  15713. -h, --help print this help, then exit
  15714. -V, --version print version number and configuration settings, then exit
  15715. --config print configuration, then exit
  15716. -q, --quiet, --silent
  15717. do not print progress messages
  15718. -d, --debug don't remove temporary files
  15719. --recheck update $as_me by reconfiguring in the same conditions
  15720. --file=FILE[:TEMPLATE]
  15721. instantiate the configuration file FILE
  15722. --header=FILE[:TEMPLATE]
  15723. instantiate the configuration header FILE
  15724. Configuration files:
  15725. $config_files
  15726. Configuration headers:
  15727. $config_headers
  15728. Configuration commands:
  15729. $config_commands
  15730. Report bugs to <[email protected]>."
  15731. _ACEOF
  15732. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  15733. ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
  15734. ac_cs_version="\\
  15735. neon config.status 0.32.2
  15736. configured by $0, generated by GNU Autoconf 2.69,
  15737. with options \\"\$ac_cs_config\\"
  15738. Copyright (C) 2012 Free Software Foundation, Inc.
  15739. This config.status script is free software; the Free Software Foundation
  15740. gives unlimited permission to copy, distribute and modify it."
  15741. ac_pwd='$ac_pwd'
  15742. srcdir='$srcdir'
  15743. INSTALL='$INSTALL'
  15744. AWK='$AWK'
  15745. test -n "\$AWK" || AWK=awk
  15746. _ACEOF
  15747. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  15748. # The default lists apply if the user does not specify any file.
  15749. ac_need_defaults=:
  15750. while test $# != 0
  15751. do
  15752. case $1 in
  15753. --*=?*)
  15754. ac_option=`expr "X$1" : 'X\([^=]*\)='`
  15755. ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
  15756. ac_shift=:
  15757. ;;
  15758. --*=)
  15759. ac_option=`expr "X$1" : 'X\([^=]*\)='`
  15760. ac_optarg=
  15761. ac_shift=:
  15762. ;;
  15763. *)
  15764. ac_option=$1
  15765. ac_optarg=$2
  15766. ac_shift=shift
  15767. ;;
  15768. esac
  15769. case $ac_option in
  15770. # Handling of the options.
  15771. -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
  15772. ac_cs_recheck=: ;;
  15773. --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
  15774. $as_echo "$ac_cs_version"; exit ;;
  15775. --config | --confi | --conf | --con | --co | --c )
  15776. $as_echo "$ac_cs_config"; exit ;;
  15777. --debug | --debu | --deb | --de | --d | -d )
  15778. debug=: ;;
  15779. --file | --fil | --fi | --f )
  15780. $ac_shift
  15781. case $ac_optarg in
  15782. *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
  15783. '') as_fn_error $? "missing file argument" ;;
  15784. esac
  15785. as_fn_append CONFIG_FILES " '$ac_optarg'"
  15786. ac_need_defaults=false;;
  15787. --header | --heade | --head | --hea )
  15788. $ac_shift
  15789. case $ac_optarg in
  15790. *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
  15791. esac
  15792. as_fn_append CONFIG_HEADERS " '$ac_optarg'"
  15793. ac_need_defaults=false;;
  15794. --he | --h)
  15795. # Conflict between --help and --header
  15796. as_fn_error $? "ambiguous option: \`$1'
  15797. Try \`$0 --help' for more information.";;
  15798. --help | --hel | -h )
  15799. $as_echo "$ac_cs_usage"; exit ;;
  15800. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  15801. | -silent | --silent | --silen | --sile | --sil | --si | --s)
  15802. ac_cs_silent=: ;;
  15803. # This is an error.
  15804. -*) as_fn_error $? "unrecognized option: \`$1'
  15805. Try \`$0 --help' for more information." ;;
  15806. *) as_fn_append ac_config_targets " $1"
  15807. ac_need_defaults=false ;;
  15808. esac
  15809. shift
  15810. done
  15811. ac_configure_extra_args=
  15812. if $ac_cs_silent; then
  15813. exec 6>/dev/null
  15814. ac_configure_extra_args="$ac_configure_extra_args --silent"
  15815. fi
  15816. _ACEOF
  15817. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  15818. if \$ac_cs_recheck; then
  15819. set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
  15820. shift
  15821. \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
  15822. CONFIG_SHELL='$SHELL'
  15823. export CONFIG_SHELL
  15824. exec "\$@"
  15825. fi
  15826. _ACEOF
  15827. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  15828. exec 5>>config.log
  15829. {
  15830. echo
  15831. sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
  15832. ## Running $as_me. ##
  15833. _ASBOX
  15834. $as_echo "$ac_log"
  15835. } >&5
  15836. _ACEOF
  15837. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  15838. #
  15839. # INIT-COMMANDS
  15840. #
  15841. # The HP-UX ksh and POSIX shell print the target directory to stdout
  15842. # if CDPATH is set.
  15843. (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
  15844. sed_quote_subst='$sed_quote_subst'
  15845. double_quote_subst='$double_quote_subst'
  15846. delay_variable_subst='$delay_variable_subst'
  15847. enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
  15848. macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
  15849. macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
  15850. enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
  15851. pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
  15852. enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
  15853. shared_archive_member_spec='`$ECHO "$shared_archive_member_spec" | $SED "$delay_single_quote_subst"`'
  15854. SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
  15855. ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
  15856. PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
  15857. host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
  15858. host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
  15859. host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
  15860. build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
  15861. build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
  15862. build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
  15863. SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
  15864. Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
  15865. GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
  15866. EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
  15867. FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
  15868. LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
  15869. NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
  15870. LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
  15871. max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
  15872. ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
  15873. exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
  15874. lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
  15875. lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
  15876. lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
  15877. lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
  15878. lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
  15879. reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
  15880. reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
  15881. OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
  15882. deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
  15883. file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
  15884. file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
  15885. want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
  15886. DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
  15887. sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
  15888. AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
  15889. AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
  15890. archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
  15891. STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
  15892. RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
  15893. old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
  15894. old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
  15895. old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
  15896. lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
  15897. CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
  15898. CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
  15899. compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
  15900. GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
  15901. lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
  15902. lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
  15903. lt_cv_sys_global_symbol_to_import='`$ECHO "$lt_cv_sys_global_symbol_to_import" | $SED "$delay_single_quote_subst"`'
  15904. lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
  15905. 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"`'
  15906. lt_cv_nm_interface='`$ECHO "$lt_cv_nm_interface" | $SED "$delay_single_quote_subst"`'
  15907. nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
  15908. lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
  15909. lt_cv_truncate_bin='`$ECHO "$lt_cv_truncate_bin" | $SED "$delay_single_quote_subst"`'
  15910. objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
  15911. MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
  15912. lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
  15913. lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
  15914. lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
  15915. lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
  15916. lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
  15917. need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
  15918. MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
  15919. DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
  15920. NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
  15921. LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
  15922. OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
  15923. OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
  15924. libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
  15925. shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
  15926. extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
  15927. archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
  15928. enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
  15929. export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
  15930. whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
  15931. compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
  15932. old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
  15933. old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
  15934. archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
  15935. archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
  15936. module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
  15937. module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
  15938. with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
  15939. allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
  15940. no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
  15941. hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
  15942. hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
  15943. hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
  15944. hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
  15945. hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
  15946. hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
  15947. hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
  15948. inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
  15949. link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
  15950. always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
  15951. export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
  15952. exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
  15953. include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
  15954. prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
  15955. postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
  15956. file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
  15957. variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
  15958. need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
  15959. need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
  15960. version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
  15961. runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
  15962. shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
  15963. shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
  15964. libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
  15965. library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
  15966. soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
  15967. install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
  15968. postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
  15969. postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
  15970. finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
  15971. finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
  15972. hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
  15973. sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
  15974. configure_time_dlsearch_path='`$ECHO "$configure_time_dlsearch_path" | $SED "$delay_single_quote_subst"`'
  15975. configure_time_lt_sys_library_path='`$ECHO "$configure_time_lt_sys_library_path" | $SED "$delay_single_quote_subst"`'
  15976. hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
  15977. enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
  15978. enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
  15979. enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
  15980. old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
  15981. striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
  15982. LTCC='$LTCC'
  15983. LTCFLAGS='$LTCFLAGS'
  15984. compiler='$compiler_DEFAULT'
  15985. # A function that is used when there is no print builtin or printf.
  15986. func_fallback_echo ()
  15987. {
  15988. eval 'cat <<_LTECHO_EOF
  15989. \$1
  15990. _LTECHO_EOF'
  15991. }
  15992. # Quote evaled strings.
  15993. for var in SHELL \
  15994. ECHO \
  15995. PATH_SEPARATOR \
  15996. SED \
  15997. GREP \
  15998. EGREP \
  15999. FGREP \
  16000. LD \
  16001. NM \
  16002. LN_S \
  16003. lt_SP2NL \
  16004. lt_NL2SP \
  16005. reload_flag \
  16006. OBJDUMP \
  16007. deplibs_check_method \
  16008. file_magic_cmd \
  16009. file_magic_glob \
  16010. want_nocaseglob \
  16011. DLLTOOL \
  16012. sharedlib_from_linklib_cmd \
  16013. AR \
  16014. AR_FLAGS \
  16015. archiver_list_spec \
  16016. STRIP \
  16017. RANLIB \
  16018. CC \
  16019. CFLAGS \
  16020. compiler \
  16021. lt_cv_sys_global_symbol_pipe \
  16022. lt_cv_sys_global_symbol_to_cdecl \
  16023. lt_cv_sys_global_symbol_to_import \
  16024. lt_cv_sys_global_symbol_to_c_name_address \
  16025. lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
  16026. lt_cv_nm_interface \
  16027. nm_file_list_spec \
  16028. lt_cv_truncate_bin \
  16029. lt_prog_compiler_no_builtin_flag \
  16030. lt_prog_compiler_pic \
  16031. lt_prog_compiler_wl \
  16032. lt_prog_compiler_static \
  16033. lt_cv_prog_compiler_c_o \
  16034. need_locks \
  16035. MANIFEST_TOOL \
  16036. DSYMUTIL \
  16037. NMEDIT \
  16038. LIPO \
  16039. OTOOL \
  16040. OTOOL64 \
  16041. shrext_cmds \
  16042. export_dynamic_flag_spec \
  16043. whole_archive_flag_spec \
  16044. compiler_needs_object \
  16045. with_gnu_ld \
  16046. allow_undefined_flag \
  16047. no_undefined_flag \
  16048. hardcode_libdir_flag_spec \
  16049. hardcode_libdir_separator \
  16050. exclude_expsyms \
  16051. include_expsyms \
  16052. file_list_spec \
  16053. variables_saved_for_relink \
  16054. libname_spec \
  16055. library_names_spec \
  16056. soname_spec \
  16057. install_override_mode \
  16058. finish_eval \
  16059. old_striplib \
  16060. striplib; do
  16061. case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
  16062. *[\\\\\\\`\\"\\\$]*)
  16063. eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
  16064. ;;
  16065. *)
  16066. eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
  16067. ;;
  16068. esac
  16069. done
  16070. # Double-quote double-evaled strings.
  16071. for var in reload_cmds \
  16072. old_postinstall_cmds \
  16073. old_postuninstall_cmds \
  16074. old_archive_cmds \
  16075. extract_expsyms_cmds \
  16076. old_archive_from_new_cmds \
  16077. old_archive_from_expsyms_cmds \
  16078. archive_cmds \
  16079. archive_expsym_cmds \
  16080. module_cmds \
  16081. module_expsym_cmds \
  16082. export_symbols_cmds \
  16083. prelink_cmds \
  16084. postlink_cmds \
  16085. postinstall_cmds \
  16086. postuninstall_cmds \
  16087. finish_cmds \
  16088. sys_lib_search_path_spec \
  16089. configure_time_dlsearch_path \
  16090. configure_time_lt_sys_library_path; do
  16091. case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
  16092. *[\\\\\\\`\\"\\\$]*)
  16093. eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
  16094. ;;
  16095. *)
  16096. eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
  16097. ;;
  16098. esac
  16099. done
  16100. ac_aux_dir='$ac_aux_dir'
  16101. # See if we are running on zsh, and set the options that allow our
  16102. # commands through without removal of \ escapes INIT.
  16103. if test -n "\${ZSH_VERSION+set}"; then
  16104. setopt NO_GLOB_SUBST
  16105. fi
  16106. PACKAGE='$PACKAGE'
  16107. VERSION='$VERSION'
  16108. RM='$RM'
  16109. ofile='$ofile'
  16110. _ACEOF
  16111. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  16112. # Handling of arguments.
  16113. for ac_config_target in $ac_config_targets
  16114. do
  16115. case $ac_config_target in
  16116. "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
  16117. "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
  16118. "neon-config") CONFIG_FILES="$CONFIG_FILES neon-config" ;;
  16119. "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
  16120. "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
  16121. "test/Makefile") CONFIG_FILES="$CONFIG_FILES test/Makefile" ;;
  16122. "neon.pc") CONFIG_FILES="$CONFIG_FILES neon.pc" ;;
  16123. "test/makekeys") CONFIG_FILES="$CONFIG_FILES test/makekeys:test/makekeys.sh" ;;
  16124. *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
  16125. esac
  16126. done
  16127. # If the user did not use the arguments to specify the items to instantiate,
  16128. # then the envvar interface is used. Set only those that are not.
  16129. # We use the long form for the default assignment because of an extremely
  16130. # bizarre bug on SunOS 4.1.3.
  16131. if $ac_need_defaults; then
  16132. test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
  16133. test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
  16134. test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
  16135. fi
  16136. # Have a temporary directory for convenience. Make it in the build tree
  16137. # simply because there is no reason against having it here, and in addition,
  16138. # creating and moving files from /tmp can sometimes cause problems.
  16139. # Hook for its removal unless debugging.
  16140. # Note that there is a small window in which the directory will not be cleaned:
  16141. # after its creation but before its name has been assigned to `$tmp'.
  16142. $debug ||
  16143. {
  16144. tmp= ac_tmp=
  16145. trap 'exit_status=$?
  16146. : "${ac_tmp:=$tmp}"
  16147. { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
  16148. ' 0
  16149. trap 'as_fn_exit 1' 1 2 13 15
  16150. }
  16151. # Create a (secure) tmp directory for tmp files.
  16152. {
  16153. tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
  16154. test -d "$tmp"
  16155. } ||
  16156. {
  16157. tmp=./conf$$-$RANDOM
  16158. (umask 077 && mkdir "$tmp")
  16159. } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
  16160. ac_tmp=$tmp
  16161. # Set up the scripts for CONFIG_FILES section.
  16162. # No need to generate them if there are no CONFIG_FILES.
  16163. # This happens for instance with `./config.status config.h'.
  16164. if test -n "$CONFIG_FILES"; then
  16165. ac_cr=`echo X | tr X '\015'`
  16166. # On cygwin, bash can eat \r inside `` if the user requested igncr.
  16167. # But we know of no other shell where ac_cr would be empty at this
  16168. # point, so we can use a bashism as a fallback.
  16169. if test "x$ac_cr" = x; then
  16170. eval ac_cr=\$\'\\r\'
  16171. fi
  16172. ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
  16173. if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
  16174. ac_cs_awk_cr='\\r'
  16175. else
  16176. ac_cs_awk_cr=$ac_cr
  16177. fi
  16178. echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
  16179. _ACEOF
  16180. {
  16181. echo "cat >conf$$subs.awk <<_ACEOF" &&
  16182. echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
  16183. echo "_ACEOF"
  16184. } >conf$$subs.sh ||
  16185. as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
  16186. ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
  16187. ac_delim='%!_!# '
  16188. for ac_last_try in false false false false false :; do
  16189. . ./conf$$subs.sh ||
  16190. as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
  16191. ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
  16192. if test $ac_delim_n = $ac_delim_num; then
  16193. break
  16194. elif $ac_last_try; then
  16195. as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
  16196. else
  16197. ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
  16198. fi
  16199. done
  16200. rm -f conf$$subs.sh
  16201. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  16202. cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
  16203. _ACEOF
  16204. sed -n '
  16205. h
  16206. s/^/S["/; s/!.*/"]=/
  16207. p
  16208. g
  16209. s/^[^!]*!//
  16210. :repl
  16211. t repl
  16212. s/'"$ac_delim"'$//
  16213. t delim
  16214. :nl
  16215. h
  16216. s/\(.\{148\}\)..*/\1/
  16217. t more1
  16218. s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
  16219. p
  16220. n
  16221. b repl
  16222. :more1
  16223. s/["\\]/\\&/g; s/^/"/; s/$/"\\/
  16224. p
  16225. g
  16226. s/.\{148\}//
  16227. t nl
  16228. :delim
  16229. h
  16230. s/\(.\{148\}\)..*/\1/
  16231. t more2
  16232. s/["\\]/\\&/g; s/^/"/; s/$/"/
  16233. p
  16234. b
  16235. :more2
  16236. s/["\\]/\\&/g; s/^/"/; s/$/"\\/
  16237. p
  16238. g
  16239. s/.\{148\}//
  16240. t delim
  16241. ' <conf$$subs.awk | sed '
  16242. /^[^""]/{
  16243. N
  16244. s/\n//
  16245. }
  16246. ' >>$CONFIG_STATUS || ac_write_fail=1
  16247. rm -f conf$$subs.awk
  16248. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  16249. _ACAWK
  16250. cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
  16251. for (key in S) S_is_set[key] = 1
  16252. FS = ""
  16253. }
  16254. {
  16255. line = $ 0
  16256. nfields = split(line, field, "@")
  16257. substed = 0
  16258. len = length(field[1])
  16259. for (i = 2; i < nfields; i++) {
  16260. key = field[i]
  16261. keylen = length(key)
  16262. if (S_is_set[key]) {
  16263. value = S[key]
  16264. line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
  16265. len += length(value) + length(field[++i])
  16266. substed = 1
  16267. } else
  16268. len += 1 + keylen
  16269. }
  16270. print line
  16271. }
  16272. _ACAWK
  16273. _ACEOF
  16274. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  16275. if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
  16276. sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
  16277. else
  16278. cat
  16279. fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
  16280. || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
  16281. _ACEOF
  16282. # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
  16283. # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
  16284. # trailing colons and then remove the whole line if VPATH becomes empty
  16285. # (actually we leave an empty line to preserve line numbers).
  16286. if test "x$srcdir" = x.; then
  16287. ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
  16288. h
  16289. s///
  16290. s/^/:/
  16291. s/[ ]*$/:/
  16292. s/:\$(srcdir):/:/g
  16293. s/:\${srcdir}:/:/g
  16294. s/:@srcdir@:/:/g
  16295. s/^:*//
  16296. s/:*$//
  16297. x
  16298. s/\(=[ ]*\).*/\1/
  16299. G
  16300. s/\n//
  16301. s/^[^=]*=[ ]*$//
  16302. }'
  16303. fi
  16304. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  16305. fi # test -n "$CONFIG_FILES"
  16306. # Set up the scripts for CONFIG_HEADERS section.
  16307. # No need to generate them if there are no CONFIG_HEADERS.
  16308. # This happens for instance with `./config.status Makefile'.
  16309. if test -n "$CONFIG_HEADERS"; then
  16310. cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
  16311. BEGIN {
  16312. _ACEOF
  16313. # Transform confdefs.h into an awk script `defines.awk', embedded as
  16314. # here-document in config.status, that substitutes the proper values into
  16315. # config.h.in to produce config.h.
  16316. # Create a delimiter string that does not exist in confdefs.h, to ease
  16317. # handling of long lines.
  16318. ac_delim='%!_!# '
  16319. for ac_last_try in false false :; do
  16320. ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
  16321. if test -z "$ac_tt"; then
  16322. break
  16323. elif $ac_last_try; then
  16324. as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
  16325. else
  16326. ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
  16327. fi
  16328. done
  16329. # For the awk script, D is an array of macro values keyed by name,
  16330. # likewise P contains macro parameters if any. Preserve backslash
  16331. # newline sequences.
  16332. ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
  16333. sed -n '
  16334. s/.\{148\}/&'"$ac_delim"'/g
  16335. t rset
  16336. :rset
  16337. s/^[ ]*#[ ]*define[ ][ ]*/ /
  16338. t def
  16339. d
  16340. :def
  16341. s/\\$//
  16342. t bsnl
  16343. s/["\\]/\\&/g
  16344. s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
  16345. D["\1"]=" \3"/p
  16346. s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
  16347. d
  16348. :bsnl
  16349. s/["\\]/\\&/g
  16350. s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
  16351. D["\1"]=" \3\\\\\\n"\\/p
  16352. t cont
  16353. s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
  16354. t cont
  16355. d
  16356. :cont
  16357. n
  16358. s/.\{148\}/&'"$ac_delim"'/g
  16359. t clear
  16360. :clear
  16361. s/\\$//
  16362. t bsnlc
  16363. s/["\\]/\\&/g; s/^/"/; s/$/"/p
  16364. d
  16365. :bsnlc
  16366. s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
  16367. b cont
  16368. ' <confdefs.h | sed '
  16369. s/'"$ac_delim"'/"\\\
  16370. "/g' >>$CONFIG_STATUS || ac_write_fail=1
  16371. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  16372. for (key in D) D_is_set[key] = 1
  16373. FS = ""
  16374. }
  16375. /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
  16376. line = \$ 0
  16377. split(line, arg, " ")
  16378. if (arg[1] == "#") {
  16379. defundef = arg[2]
  16380. mac1 = arg[3]
  16381. } else {
  16382. defundef = substr(arg[1], 2)
  16383. mac1 = arg[2]
  16384. }
  16385. split(mac1, mac2, "(") #)
  16386. macro = mac2[1]
  16387. prefix = substr(line, 1, index(line, defundef) - 1)
  16388. if (D_is_set[macro]) {
  16389. # Preserve the white space surrounding the "#".
  16390. print prefix "define", macro P[macro] D[macro]
  16391. next
  16392. } else {
  16393. # Replace #undef with comments. This is necessary, for example,
  16394. # in the case of _POSIX_SOURCE, which is predefined and required
  16395. # on some systems where configure will not decide to define it.
  16396. if (defundef == "undef") {
  16397. print "/*", prefix defundef, macro, "*/"
  16398. next
  16399. }
  16400. }
  16401. }
  16402. { print }
  16403. _ACAWK
  16404. _ACEOF
  16405. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  16406. as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
  16407. fi # test -n "$CONFIG_HEADERS"
  16408. eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
  16409. shift
  16410. for ac_tag
  16411. do
  16412. case $ac_tag in
  16413. :[FHLC]) ac_mode=$ac_tag; continue;;
  16414. esac
  16415. case $ac_mode$ac_tag in
  16416. :[FHL]*:*);;
  16417. :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
  16418. :[FH]-) ac_tag=-:-;;
  16419. :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
  16420. esac
  16421. ac_save_IFS=$IFS
  16422. IFS=:
  16423. set x $ac_tag
  16424. IFS=$ac_save_IFS
  16425. shift
  16426. ac_file=$1
  16427. shift
  16428. case $ac_mode in
  16429. :L) ac_source=$1;;
  16430. :[FH])
  16431. ac_file_inputs=
  16432. for ac_f
  16433. do
  16434. case $ac_f in
  16435. -) ac_f="$ac_tmp/stdin";;
  16436. *) # Look for the file first in the build tree, then in the source tree
  16437. # (if the path is not absolute). The absolute path cannot be DOS-style,
  16438. # because $ac_f cannot contain `:'.
  16439. test -f "$ac_f" ||
  16440. case $ac_f in
  16441. [\\/$]*) false;;
  16442. *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
  16443. esac ||
  16444. as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
  16445. esac
  16446. case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
  16447. as_fn_append ac_file_inputs " '$ac_f'"
  16448. done
  16449. # Let's still pretend it is `configure' which instantiates (i.e., don't
  16450. # use $as_me), people would be surprised to read:
  16451. # /* config.h. Generated by config.status. */
  16452. configure_input='Generated from '`
  16453. $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
  16454. `' by configure.'
  16455. if test x"$ac_file" != x-; then
  16456. configure_input="$ac_file. $configure_input"
  16457. { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
  16458. $as_echo "$as_me: creating $ac_file" >&6;}
  16459. fi
  16460. # Neutralize special characters interpreted by sed in replacement strings.
  16461. case $configure_input in #(
  16462. *\&* | *\|* | *\\* )
  16463. ac_sed_conf_input=`$as_echo "$configure_input" |
  16464. sed 's/[\\\\&|]/\\\\&/g'`;; #(
  16465. *) ac_sed_conf_input=$configure_input;;
  16466. esac
  16467. case $ac_tag in
  16468. *:-:* | *:-) cat >"$ac_tmp/stdin" \
  16469. || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
  16470. esac
  16471. ;;
  16472. esac
  16473. ac_dir=`$as_dirname -- "$ac_file" ||
  16474. $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  16475. X"$ac_file" : 'X\(//\)[^/]' \| \
  16476. X"$ac_file" : 'X\(//\)$' \| \
  16477. X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
  16478. $as_echo X"$ac_file" |
  16479. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  16480. s//\1/
  16481. q
  16482. }
  16483. /^X\(\/\/\)[^/].*/{
  16484. s//\1/
  16485. q
  16486. }
  16487. /^X\(\/\/\)$/{
  16488. s//\1/
  16489. q
  16490. }
  16491. /^X\(\/\).*/{
  16492. s//\1/
  16493. q
  16494. }
  16495. s/.*/./; q'`
  16496. as_dir="$ac_dir"; as_fn_mkdir_p
  16497. ac_builddir=.
  16498. case "$ac_dir" in
  16499. .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
  16500. *)
  16501. ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
  16502. # A ".." for each directory in $ac_dir_suffix.
  16503. ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
  16504. case $ac_top_builddir_sub in
  16505. "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
  16506. *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
  16507. esac ;;
  16508. esac
  16509. ac_abs_top_builddir=$ac_pwd
  16510. ac_abs_builddir=$ac_pwd$ac_dir_suffix
  16511. # for backward compatibility:
  16512. ac_top_builddir=$ac_top_build_prefix
  16513. case $srcdir in
  16514. .) # We are building in place.
  16515. ac_srcdir=.
  16516. ac_top_srcdir=$ac_top_builddir_sub
  16517. ac_abs_top_srcdir=$ac_pwd ;;
  16518. [\\/]* | ?:[\\/]* ) # Absolute name.
  16519. ac_srcdir=$srcdir$ac_dir_suffix;
  16520. ac_top_srcdir=$srcdir
  16521. ac_abs_top_srcdir=$srcdir ;;
  16522. *) # Relative name.
  16523. ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
  16524. ac_top_srcdir=$ac_top_build_prefix$srcdir
  16525. ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
  16526. esac
  16527. ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
  16528. case $ac_mode in
  16529. :F)
  16530. #
  16531. # CONFIG_FILE
  16532. #
  16533. case $INSTALL in
  16534. [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
  16535. *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
  16536. esac
  16537. _ACEOF
  16538. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  16539. # If the template does not know about datarootdir, expand it.
  16540. # FIXME: This hack should be removed a few years after 2.60.
  16541. ac_datarootdir_hack=; ac_datarootdir_seen=
  16542. ac_sed_dataroot='
  16543. /datarootdir/ {
  16544. p
  16545. q
  16546. }
  16547. /@datadir@/p
  16548. /@docdir@/p
  16549. /@infodir@/p
  16550. /@localedir@/p
  16551. /@mandir@/p'
  16552. case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
  16553. *datarootdir*) ac_datarootdir_seen=yes;;
  16554. *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
  16555. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
  16556. $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
  16557. _ACEOF
  16558. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  16559. ac_datarootdir_hack='
  16560. s&@datadir@&$datadir&g
  16561. s&@docdir@&$docdir&g
  16562. s&@infodir@&$infodir&g
  16563. s&@localedir@&$localedir&g
  16564. s&@mandir@&$mandir&g
  16565. s&\\\${datarootdir}&$datarootdir&g' ;;
  16566. esac
  16567. _ACEOF
  16568. # Neutralize VPATH when `$srcdir' = `.'.
  16569. # Shell code in configure.ac might set extrasub.
  16570. # FIXME: do we really want to maintain this feature?
  16571. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  16572. ac_sed_extra="$ac_vpsub
  16573. $extrasub
  16574. _ACEOF
  16575. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  16576. :t
  16577. /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
  16578. s|@configure_input@|$ac_sed_conf_input|;t t
  16579. s&@top_builddir@&$ac_top_builddir_sub&;t t
  16580. s&@top_build_prefix@&$ac_top_build_prefix&;t t
  16581. s&@srcdir@&$ac_srcdir&;t t
  16582. s&@abs_srcdir@&$ac_abs_srcdir&;t t
  16583. s&@top_srcdir@&$ac_top_srcdir&;t t
  16584. s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
  16585. s&@builddir@&$ac_builddir&;t t
  16586. s&@abs_builddir@&$ac_abs_builddir&;t t
  16587. s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
  16588. s&@INSTALL@&$ac_INSTALL&;t t
  16589. $ac_datarootdir_hack
  16590. "
  16591. eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
  16592. >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
  16593. test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
  16594. { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
  16595. { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
  16596. "$ac_tmp/out"`; test -z "$ac_out"; } &&
  16597. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
  16598. which seems to be undefined. Please make sure it is defined" >&5
  16599. $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
  16600. which seems to be undefined. Please make sure it is defined" >&2;}
  16601. rm -f "$ac_tmp/stdin"
  16602. case $ac_file in
  16603. -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
  16604. *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
  16605. esac \
  16606. || as_fn_error $? "could not create $ac_file" "$LINENO" 5
  16607. ;;
  16608. :H)
  16609. #
  16610. # CONFIG_HEADER
  16611. #
  16612. if test x"$ac_file" != x-; then
  16613. {
  16614. $as_echo "/* $configure_input */" \
  16615. && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
  16616. } >"$ac_tmp/config.h" \
  16617. || as_fn_error $? "could not create $ac_file" "$LINENO" 5
  16618. if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
  16619. { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
  16620. $as_echo "$as_me: $ac_file is unchanged" >&6;}
  16621. else
  16622. rm -f "$ac_file"
  16623. mv "$ac_tmp/config.h" "$ac_file" \
  16624. || as_fn_error $? "could not create $ac_file" "$LINENO" 5
  16625. fi
  16626. else
  16627. $as_echo "/* $configure_input */" \
  16628. && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
  16629. || as_fn_error $? "could not create -" "$LINENO" 5
  16630. fi
  16631. ;;
  16632. :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
  16633. $as_echo "$as_me: executing $ac_file commands" >&6;}
  16634. ;;
  16635. esac
  16636. case $ac_file$ac_mode in
  16637. "libtool":C)
  16638. # See if we are running on zsh, and set the options that allow our
  16639. # commands through without removal of \ escapes.
  16640. if test -n "${ZSH_VERSION+set}"; then
  16641. setopt NO_GLOB_SUBST
  16642. fi
  16643. cfgfile=${ofile}T
  16644. trap "$RM \"$cfgfile\"; exit 1" 1 2 15
  16645. $RM "$cfgfile"
  16646. cat <<_LT_EOF >> "$cfgfile"
  16647. #! $SHELL
  16648. # Generated automatically by $as_me ($PACKAGE) $VERSION
  16649. # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
  16650. # NOTE: Changes made to this file will be lost: look at ltmain.sh.
  16651. # Provide generalized library-building support services.
  16652. # Written by Gordon Matzigkeit, 1996
  16653. # Copyright (C) 2014 Free Software Foundation, Inc.
  16654. # This is free software; see the source for copying conditions. There is NO
  16655. # warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
  16656. # GNU Libtool is free software; you can redistribute it and/or modify
  16657. # it under the terms of the GNU General Public License as published by
  16658. # the Free Software Foundation; either version 2 of of the License, or
  16659. # (at your option) any later version.
  16660. #
  16661. # As a special exception to the GNU General Public License, if you
  16662. # distribute this file as part of a program or library that is built
  16663. # using GNU Libtool, you may include this file under the same
  16664. # distribution terms that you use for the rest of that program.
  16665. #
  16666. # GNU Libtool is distributed in the hope that it will be useful, but
  16667. # WITHOUT ANY WARRANTY; without even the implied warranty of
  16668. # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  16669. # GNU General Public License for more details.
  16670. #
  16671. # You should have received a copy of the GNU General Public License
  16672. # along with this program. If not, see <http://www.gnu.org/licenses/>.
  16673. # The names of the tagged configurations supported by this script.
  16674. available_tags=''
  16675. # Configured defaults for sys_lib_dlsearch_path munging.
  16676. : \${LT_SYS_LIBRARY_PATH="$configure_time_lt_sys_library_path"}
  16677. # ### BEGIN LIBTOOL CONFIG
  16678. # Whether or not to build shared libraries.
  16679. build_libtool_libs=$enable_shared
  16680. # Which release of libtool.m4 was used?
  16681. macro_version=$macro_version
  16682. macro_revision=$macro_revision
  16683. # Whether or not to build static libraries.
  16684. build_old_libs=$enable_static
  16685. # What type of objects to build.
  16686. pic_mode=$pic_mode
  16687. # Whether or not to optimize for fast installation.
  16688. fast_install=$enable_fast_install
  16689. # Shared archive member basename,for filename based shared library versioning on AIX.
  16690. shared_archive_member_spec=$shared_archive_member_spec
  16691. # Shell to use when invoking shell scripts.
  16692. SHELL=$lt_SHELL
  16693. # An echo program that protects backslashes.
  16694. ECHO=$lt_ECHO
  16695. # The PATH separator for the build system.
  16696. PATH_SEPARATOR=$lt_PATH_SEPARATOR
  16697. # The host system.
  16698. host_alias=$host_alias
  16699. host=$host
  16700. host_os=$host_os
  16701. # The build system.
  16702. build_alias=$build_alias
  16703. build=$build
  16704. build_os=$build_os
  16705. # A sed program that does not truncate output.
  16706. SED=$lt_SED
  16707. # Sed that helps us avoid accidentally triggering echo(1) options like -n.
  16708. Xsed="\$SED -e 1s/^X//"
  16709. # A grep program that handles long lines.
  16710. GREP=$lt_GREP
  16711. # An ERE matcher.
  16712. EGREP=$lt_EGREP
  16713. # A literal string matcher.
  16714. FGREP=$lt_FGREP
  16715. # A BSD- or MS-compatible name lister.
  16716. NM=$lt_NM
  16717. # Whether we need soft or hard links.
  16718. LN_S=$lt_LN_S
  16719. # What is the maximum length of a command?
  16720. max_cmd_len=$max_cmd_len
  16721. # Object file suffix (normally "o").
  16722. objext=$ac_objext
  16723. # Executable file suffix (normally "").
  16724. exeext=$exeext
  16725. # whether the shell understands "unset".
  16726. lt_unset=$lt_unset
  16727. # turn spaces into newlines.
  16728. SP2NL=$lt_lt_SP2NL
  16729. # turn newlines into spaces.
  16730. NL2SP=$lt_lt_NL2SP
  16731. # convert \$build file names to \$host format.
  16732. to_host_file_cmd=$lt_cv_to_host_file_cmd
  16733. # convert \$build files to toolchain format.
  16734. to_tool_file_cmd=$lt_cv_to_tool_file_cmd
  16735. # An object symbol dumper.
  16736. OBJDUMP=$lt_OBJDUMP
  16737. # Method to check whether dependent libraries are shared objects.
  16738. deplibs_check_method=$lt_deplibs_check_method
  16739. # Command to use when deplibs_check_method = "file_magic".
  16740. file_magic_cmd=$lt_file_magic_cmd
  16741. # How to find potential files when deplibs_check_method = "file_magic".
  16742. file_magic_glob=$lt_file_magic_glob
  16743. # Find potential files using nocaseglob when deplibs_check_method = "file_magic".
  16744. want_nocaseglob=$lt_want_nocaseglob
  16745. # DLL creation program.
  16746. DLLTOOL=$lt_DLLTOOL
  16747. # Command to associate shared and link libraries.
  16748. sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
  16749. # The archiver.
  16750. AR=$lt_AR
  16751. # Flags to create an archive.
  16752. AR_FLAGS=$lt_AR_FLAGS
  16753. # How to feed a file listing to the archiver.
  16754. archiver_list_spec=$lt_archiver_list_spec
  16755. # A symbol stripping program.
  16756. STRIP=$lt_STRIP
  16757. # Commands used to install an old-style archive.
  16758. RANLIB=$lt_RANLIB
  16759. old_postinstall_cmds=$lt_old_postinstall_cmds
  16760. old_postuninstall_cmds=$lt_old_postuninstall_cmds
  16761. # Whether to use a lock for old archive extraction.
  16762. lock_old_archive_extraction=$lock_old_archive_extraction
  16763. # A C compiler.
  16764. LTCC=$lt_CC
  16765. # LTCC compiler flags.
  16766. LTCFLAGS=$lt_CFLAGS
  16767. # Take the output of nm and produce a listing of raw symbols and C names.
  16768. global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
  16769. # Transform the output of nm in a proper C declaration.
  16770. global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
  16771. # Transform the output of nm into a list of symbols to manually relocate.
  16772. global_symbol_to_import=$lt_lt_cv_sys_global_symbol_to_import
  16773. # Transform the output of nm in a C name address pair.
  16774. global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
  16775. # Transform the output of nm in a C name address pair when lib prefix is needed.
  16776. global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
  16777. # The name lister interface.
  16778. nm_interface=$lt_lt_cv_nm_interface
  16779. # Specify filename containing input files for \$NM.
  16780. nm_file_list_spec=$lt_nm_file_list_spec
  16781. # The root where to search for dependent libraries,and where our libraries should be installed.
  16782. lt_sysroot=$lt_sysroot
  16783. # Command to truncate a binary pipe.
  16784. lt_truncate_bin=$lt_lt_cv_truncate_bin
  16785. # The name of the directory that contains temporary libtool files.
  16786. objdir=$objdir
  16787. # Used to examine libraries when file_magic_cmd begins with "file".
  16788. MAGIC_CMD=$MAGIC_CMD
  16789. # Must we lock files when doing compilation?
  16790. need_locks=$lt_need_locks
  16791. # Manifest tool.
  16792. MANIFEST_TOOL=$lt_MANIFEST_TOOL
  16793. # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
  16794. DSYMUTIL=$lt_DSYMUTIL
  16795. # Tool to change global to local symbols on Mac OS X.
  16796. NMEDIT=$lt_NMEDIT
  16797. # Tool to manipulate fat objects and archives on Mac OS X.
  16798. LIPO=$lt_LIPO
  16799. # ldd/readelf like tool for Mach-O binaries on Mac OS X.
  16800. OTOOL=$lt_OTOOL
  16801. # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
  16802. OTOOL64=$lt_OTOOL64
  16803. # Old archive suffix (normally "a").
  16804. libext=$libext
  16805. # Shared library suffix (normally ".so").
  16806. shrext_cmds=$lt_shrext_cmds
  16807. # The commands to extract the exported symbol list from a shared archive.
  16808. extract_expsyms_cmds=$lt_extract_expsyms_cmds
  16809. # Variables whose values should be saved in libtool wrapper scripts and
  16810. # restored at link time.
  16811. variables_saved_for_relink=$lt_variables_saved_for_relink
  16812. # Do we need the "lib" prefix for modules?
  16813. need_lib_prefix=$need_lib_prefix
  16814. # Do we need a version for libraries?
  16815. need_version=$need_version
  16816. # Library versioning type.
  16817. version_type=$version_type
  16818. # Shared library runtime path variable.
  16819. runpath_var=$runpath_var
  16820. # Shared library path variable.
  16821. shlibpath_var=$shlibpath_var
  16822. # Is shlibpath searched before the hard-coded library search path?
  16823. shlibpath_overrides_runpath=$shlibpath_overrides_runpath
  16824. # Format of library name prefix.
  16825. libname_spec=$lt_libname_spec
  16826. # List of archive names. First name is the real one, the rest are links.
  16827. # The last name is the one that the linker finds with -lNAME
  16828. library_names_spec=$lt_library_names_spec
  16829. # The coded name of the library, if different from the real name.
  16830. soname_spec=$lt_soname_spec
  16831. # Permission mode override for installation of shared libraries.
  16832. install_override_mode=$lt_install_override_mode
  16833. # Command to use after installation of a shared archive.
  16834. postinstall_cmds=$lt_postinstall_cmds
  16835. # Command to use after uninstallation of a shared archive.
  16836. postuninstall_cmds=$lt_postuninstall_cmds
  16837. # Commands used to finish a libtool library installation in a directory.
  16838. finish_cmds=$lt_finish_cmds
  16839. # As "finish_cmds", except a single script fragment to be evaled but
  16840. # not shown.
  16841. finish_eval=$lt_finish_eval
  16842. # Whether we should hardcode library paths into libraries.
  16843. hardcode_into_libs=$hardcode_into_libs
  16844. # Compile-time system search path for libraries.
  16845. sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
  16846. # Detected run-time system search path for libraries.
  16847. sys_lib_dlsearch_path_spec=$lt_configure_time_dlsearch_path
  16848. # Explicit LT_SYS_LIBRARY_PATH set during ./configure time.
  16849. configure_time_lt_sys_library_path=$lt_configure_time_lt_sys_library_path
  16850. # Whether dlopen is supported.
  16851. dlopen_support=$enable_dlopen
  16852. # Whether dlopen of programs is supported.
  16853. dlopen_self=$enable_dlopen_self
  16854. # Whether dlopen of statically linked programs is supported.
  16855. dlopen_self_static=$enable_dlopen_self_static
  16856. # Commands to strip libraries.
  16857. old_striplib=$lt_old_striplib
  16858. striplib=$lt_striplib
  16859. # The linker used to build libraries.
  16860. LD=$lt_LD
  16861. # How to create reloadable object files.
  16862. reload_flag=$lt_reload_flag
  16863. reload_cmds=$lt_reload_cmds
  16864. # Commands used to build an old-style archive.
  16865. old_archive_cmds=$lt_old_archive_cmds
  16866. # A language specific compiler.
  16867. CC=$lt_compiler
  16868. # Is the compiler the GNU compiler?
  16869. with_gcc=$GCC
  16870. # Compiler flag to turn off builtin functions.
  16871. no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
  16872. # Additional compiler flags for building library objects.
  16873. pic_flag=$lt_lt_prog_compiler_pic
  16874. # How to pass a linker flag through the compiler.
  16875. wl=$lt_lt_prog_compiler_wl
  16876. # Compiler flag to prevent dynamic linking.
  16877. link_static_flag=$lt_lt_prog_compiler_static
  16878. # Does compiler simultaneously support -c and -o options?
  16879. compiler_c_o=$lt_lt_cv_prog_compiler_c_o
  16880. # Whether or not to add -lc for building shared libraries.
  16881. build_libtool_need_lc=$archive_cmds_need_lc
  16882. # Whether or not to disallow shared libs when runtime libs are static.
  16883. allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
  16884. # Compiler flag to allow reflexive dlopens.
  16885. export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
  16886. # Compiler flag to generate shared objects directly from archives.
  16887. whole_archive_flag_spec=$lt_whole_archive_flag_spec
  16888. # Whether the compiler copes with passing no objects directly.
  16889. compiler_needs_object=$lt_compiler_needs_object
  16890. # Create an old-style archive from a shared archive.
  16891. old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
  16892. # Create a temporary old-style archive to link instead of a shared archive.
  16893. old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
  16894. # Commands used to build a shared archive.
  16895. archive_cmds=$lt_archive_cmds
  16896. archive_expsym_cmds=$lt_archive_expsym_cmds
  16897. # Commands used to build a loadable module if different from building
  16898. # a shared archive.
  16899. module_cmds=$lt_module_cmds
  16900. module_expsym_cmds=$lt_module_expsym_cmds
  16901. # Whether we are building with GNU ld or not.
  16902. with_gnu_ld=$lt_with_gnu_ld
  16903. # Flag that allows shared libraries with undefined symbols to be built.
  16904. allow_undefined_flag=$lt_allow_undefined_flag
  16905. # Flag that enforces no undefined symbols.
  16906. no_undefined_flag=$lt_no_undefined_flag
  16907. # Flag to hardcode \$libdir into a binary during linking.
  16908. # This must work even if \$libdir does not exist
  16909. hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
  16910. # Whether we need a single "-rpath" flag with a separated argument.
  16911. hardcode_libdir_separator=$lt_hardcode_libdir_separator
  16912. # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
  16913. # DIR into the resulting binary.
  16914. hardcode_direct=$hardcode_direct
  16915. # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
  16916. # DIR into the resulting binary and the resulting library dependency is
  16917. # "absolute",i.e impossible to change by setting \$shlibpath_var if the
  16918. # library is relocated.
  16919. hardcode_direct_absolute=$hardcode_direct_absolute
  16920. # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
  16921. # into the resulting binary.
  16922. hardcode_minus_L=$hardcode_minus_L
  16923. # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
  16924. # into the resulting binary.
  16925. hardcode_shlibpath_var=$hardcode_shlibpath_var
  16926. # Set to "yes" if building a shared library automatically hardcodes DIR
  16927. # into the library and all subsequent libraries and executables linked
  16928. # against it.
  16929. hardcode_automatic=$hardcode_automatic
  16930. # Set to yes if linker adds runtime paths of dependent libraries
  16931. # to runtime path list.
  16932. inherit_rpath=$inherit_rpath
  16933. # Whether libtool must link a program against all its dependency libraries.
  16934. link_all_deplibs=$link_all_deplibs
  16935. # Set to "yes" if exported symbols are required.
  16936. always_export_symbols=$always_export_symbols
  16937. # The commands to list exported symbols.
  16938. export_symbols_cmds=$lt_export_symbols_cmds
  16939. # Symbols that should not be listed in the preloaded symbols.
  16940. exclude_expsyms=$lt_exclude_expsyms
  16941. # Symbols that must always be exported.
  16942. include_expsyms=$lt_include_expsyms
  16943. # Commands necessary for linking programs (against libraries) with templates.
  16944. prelink_cmds=$lt_prelink_cmds
  16945. # Commands necessary for finishing linking programs.
  16946. postlink_cmds=$lt_postlink_cmds
  16947. # Specify filename containing input files.
  16948. file_list_spec=$lt_file_list_spec
  16949. # How to hardcode a shared library path into an executable.
  16950. hardcode_action=$hardcode_action
  16951. # ### END LIBTOOL CONFIG
  16952. _LT_EOF
  16953. cat <<'_LT_EOF' >> "$cfgfile"
  16954. # ### BEGIN FUNCTIONS SHARED WITH CONFIGURE
  16955. # func_munge_path_list VARIABLE PATH
  16956. # -----------------------------------
  16957. # VARIABLE is name of variable containing _space_ separated list of
  16958. # directories to be munged by the contents of PATH, which is string
  16959. # having a format:
  16960. # "DIR[:DIR]:"
  16961. # string "DIR[ DIR]" will be prepended to VARIABLE
  16962. # ":DIR[:DIR]"
  16963. # string "DIR[ DIR]" will be appended to VARIABLE
  16964. # "DIRP[:DIRP]::[DIRA:]DIRA"
  16965. # string "DIRP[ DIRP]" will be prepended to VARIABLE and string
  16966. # "DIRA[ DIRA]" will be appended to VARIABLE
  16967. # "DIR[:DIR]"
  16968. # VARIABLE will be replaced by "DIR[ DIR]"
  16969. func_munge_path_list ()
  16970. {
  16971. case x$2 in
  16972. x)
  16973. ;;
  16974. *:)
  16975. eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
  16976. ;;
  16977. x:*)
  16978. eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
  16979. ;;
  16980. *::*)
  16981. eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
  16982. eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
  16983. ;;
  16984. *)
  16985. eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
  16986. ;;
  16987. esac
  16988. }
  16989. # Calculate cc_basename. Skip known compiler wrappers and cross-prefix.
  16990. func_cc_basename ()
  16991. {
  16992. for cc_temp in $*""; do
  16993. case $cc_temp in
  16994. compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
  16995. distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
  16996. \-*) ;;
  16997. *) break;;
  16998. esac
  16999. done
  17000. func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
  17001. }
  17002. # ### END FUNCTIONS SHARED WITH CONFIGURE
  17003. _LT_EOF
  17004. case $host_os in
  17005. aix3*)
  17006. cat <<\_LT_EOF >> "$cfgfile"
  17007. # AIX sometimes has problems with the GCC collect2 program. For some
  17008. # reason, if we set the COLLECT_NAMES environment variable, the problems
  17009. # vanish in a puff of smoke.
  17010. if test set != "${COLLECT_NAMES+set}"; then
  17011. COLLECT_NAMES=
  17012. export COLLECT_NAMES
  17013. fi
  17014. _LT_EOF
  17015. ;;
  17016. esac
  17017. ltmain=$ac_aux_dir/ltmain.sh
  17018. # We use sed instead of cat because bash on DJGPP gets confused if
  17019. # if finds mixed CR/LF and LF-only lines. Since sed operates in
  17020. # text mode, it properly converts lines to CR/LF. This bash problem
  17021. # is reportedly fixed, but why not run on old versions too?
  17022. sed '$q' "$ltmain" >> "$cfgfile" \
  17023. || (rm -f "$cfgfile"; exit 1)
  17024. mv -f "$cfgfile" "$ofile" ||
  17025. (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
  17026. chmod +x "$ofile"
  17027. ;;
  17028. "neon-config":F) chmod +x neon-config ;;
  17029. "test/makekeys":F) chmod +x test/makekeys ;;
  17030. esac
  17031. done # for ac_tag
  17032. as_fn_exit 0
  17033. _ACEOF
  17034. ac_clean_files=$ac_clean_files_save
  17035. test $ac_write_fail = 0 ||
  17036. as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
  17037. # configure is writing to config.log, and then calls config.status.
  17038. # config.status does its own redirection, appending to config.log.
  17039. # Unfortunately, on DOS this fails, as config.log is still kept open
  17040. # by configure, so config.status won't be able to write to it; its
  17041. # output is simply discarded. So we exec the FD to /dev/null,
  17042. # effectively closing config.log, so it can be properly (re)opened and
  17043. # appended to by config.status. When coming back to configure, we
  17044. # need to make the FD available again.
  17045. if test "$no_create" != yes; then
  17046. ac_cs_success=:
  17047. ac_config_status_args=
  17048. test "$silent" = yes &&
  17049. ac_config_status_args="$ac_config_status_args --quiet"
  17050. exec 5>/dev/null
  17051. $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
  17052. exec 5>>config.log
  17053. # Use ||, not &&, to avoid exiting from the if with $? = 1, which
  17054. # would make configure fail if this is the last instruction.
  17055. $ac_cs_success || as_fn_exit 1
  17056. fi
  17057. if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
  17058. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
  17059. $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
  17060. fi
  17061. # for VPATH builds:
  17062. test -d test/common || mkdir test/common
  17063. { $as_echo "$as_me:${as_lineno-$LINENO}: Configured to build neon 0.32.2:
  17064. Install prefix: ${prefix}
  17065. Compiler: ${CC}
  17066. XML Parser: ${neon_xml_parser_message}
  17067. SSL library: ${ne_SSL_message}
  17068. zlib support: ${ne_ZLIB_message}
  17069. Build libraries: Shared=${enable_shared}, Static=${enable_static}
  17070. " >&5
  17071. $as_echo "$as_me: Configured to build neon 0.32.2:
  17072. Install prefix: ${prefix}
  17073. Compiler: ${CC}
  17074. XML Parser: ${neon_xml_parser_message}
  17075. SSL library: ${ne_SSL_message}
  17076. zlib support: ${ne_ZLIB_message}
  17077. Build libraries: Shared=${enable_shared}, Static=${enable_static}
  17078. " >&6;}
  17079. case $ALLOW_INSTALL in
  17080. memleak)
  17081. { $as_echo "$as_me:${as_lineno-$LINENO}: Configured with development-only flags:
  17082. WARNING: This copy of neon has been configured with memory leak checking
  17083. WARNING: enabled, which should only be used in a development build of neon.
  17084. WARNING: This neon library should not be installed for use by applications.
  17085. " >&5
  17086. $as_echo "$as_me: Configured with development-only flags:
  17087. WARNING: This copy of neon has been configured with memory leak checking
  17088. WARNING: enabled, which should only be used in a development build of neon.
  17089. WARNING: This neon library should not be installed for use by applications.
  17090. " >&6;};;
  17091. esac