configure 530 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531153215331534153515361537153815391540154115421543154415451546154715481549155015511552155315541555155615571558155915601561156215631564156515661567156815691570157115721573157415751576157715781579158015811582158315841585158615871588158915901591159215931594159515961597159815991600160116021603160416051606160716081609161016111612161316141615161616171618161916201621162216231624162516261627162816291630163116321633163416351636163716381639164016411642164316441645164616471648164916501651165216531654165516561657165816591660166116621663166416651666166716681669167016711672167316741675167616771678167916801681168216831684168516861687168816891690169116921693169416951696169716981699170017011702170317041705170617071708170917101711171217131714171517161717171817191720172117221723172417251726172717281729173017311732173317341735173617371738173917401741174217431744174517461747174817491750175117521753175417551756175717581759176017611762176317641765176617671768176917701771177217731774177517761777177817791780178117821783178417851786178717881789179017911792179317941795179617971798179918001801180218031804180518061807180818091810181118121813181418151816181718181819182018211822182318241825182618271828182918301831183218331834183518361837183818391840184118421843184418451846184718481849185018511852185318541855185618571858185918601861186218631864186518661867186818691870187118721873187418751876187718781879188018811882188318841885188618871888188918901891189218931894189518961897189818991900190119021903190419051906190719081909191019111912191319141915191619171918191919201921192219231924192519261927192819291930193119321933193419351936193719381939194019411942194319441945194619471948194919501951195219531954195519561957195819591960196119621963196419651966196719681969197019711972197319741975197619771978197919801981198219831984198519861987198819891990199119921993199419951996199719981999200020012002200320042005200620072008200920102011201220132014201520162017201820192020202120222023202420252026202720282029203020312032203320342035203620372038203920402041204220432044204520462047204820492050205120522053205420552056205720582059206020612062206320642065206620672068206920702071207220732074207520762077207820792080208120822083208420852086208720882089209020912092209320942095209620972098209921002101210221032104210521062107210821092110211121122113211421152116211721182119212021212122212321242125212621272128212921302131213221332134213521362137213821392140214121422143214421452146214721482149215021512152215321542155215621572158215921602161216221632164216521662167216821692170217121722173217421752176217721782179218021812182218321842185218621872188218921902191219221932194219521962197219821992200220122022203220422052206220722082209221022112212221322142215221622172218221922202221222222232224222522262227222822292230223122322233223422352236223722382239224022412242224322442245224622472248224922502251225222532254225522562257225822592260226122622263226422652266226722682269227022712272227322742275227622772278227922802281228222832284228522862287228822892290229122922293229422952296229722982299230023012302230323042305230623072308230923102311231223132314231523162317231823192320232123222323232423252326232723282329233023312332233323342335233623372338233923402341234223432344234523462347234823492350235123522353235423552356235723582359236023612362236323642365236623672368236923702371237223732374237523762377237823792380238123822383238423852386238723882389239023912392239323942395239623972398239924002401240224032404240524062407240824092410241124122413241424152416241724182419242024212422242324242425242624272428242924302431243224332434243524362437243824392440244124422443244424452446244724482449245024512452245324542455245624572458245924602461246224632464246524662467246824692470247124722473247424752476247724782479248024812482248324842485248624872488248924902491249224932494249524962497249824992500250125022503250425052506250725082509251025112512251325142515251625172518251925202521252225232524252525262527252825292530253125322533253425352536253725382539254025412542254325442545254625472548254925502551255225532554255525562557255825592560256125622563256425652566256725682569257025712572257325742575257625772578257925802581258225832584258525862587258825892590259125922593259425952596259725982599260026012602260326042605260626072608260926102611261226132614261526162617261826192620262126222623262426252626262726282629263026312632263326342635263626372638263926402641264226432644264526462647264826492650265126522653265426552656265726582659266026612662266326642665266626672668266926702671267226732674267526762677267826792680268126822683268426852686268726882689269026912692269326942695269626972698269927002701270227032704270527062707270827092710271127122713271427152716271727182719272027212722272327242725272627272728272927302731273227332734273527362737273827392740274127422743274427452746274727482749275027512752275327542755275627572758275927602761276227632764276527662767276827692770277127722773277427752776277727782779278027812782278327842785278627872788278927902791279227932794279527962797279827992800280128022803280428052806280728082809281028112812281328142815281628172818281928202821282228232824282528262827282828292830283128322833283428352836283728382839284028412842284328442845284628472848284928502851285228532854285528562857285828592860286128622863286428652866286728682869287028712872287328742875287628772878287928802881288228832884288528862887288828892890289128922893289428952896289728982899290029012902290329042905290629072908290929102911291229132914291529162917291829192920292129222923292429252926292729282929293029312932293329342935293629372938293929402941294229432944294529462947294829492950295129522953295429552956295729582959296029612962296329642965296629672968296929702971297229732974297529762977297829792980298129822983298429852986298729882989299029912992299329942995299629972998299930003001300230033004300530063007300830093010301130123013301430153016301730183019302030213022302330243025302630273028302930303031303230333034303530363037303830393040304130423043304430453046304730483049305030513052305330543055305630573058305930603061306230633064306530663067306830693070307130723073307430753076307730783079308030813082308330843085308630873088308930903091309230933094309530963097309830993100310131023103310431053106310731083109311031113112311331143115311631173118311931203121312231233124312531263127312831293130313131323133313431353136313731383139314031413142314331443145314631473148314931503151315231533154315531563157315831593160316131623163316431653166316731683169317031713172317331743175317631773178317931803181318231833184318531863187318831893190319131923193319431953196319731983199320032013202320332043205320632073208320932103211321232133214321532163217321832193220322132223223322432253226322732283229323032313232323332343235323632373238323932403241324232433244324532463247324832493250325132523253325432553256325732583259326032613262326332643265326632673268326932703271327232733274327532763277327832793280328132823283328432853286328732883289329032913292329332943295329632973298329933003301330233033304330533063307330833093310331133123313331433153316331733183319332033213322332333243325332633273328332933303331333233333334333533363337333833393340334133423343334433453346334733483349335033513352335333543355335633573358335933603361336233633364336533663367336833693370337133723373337433753376337733783379338033813382338333843385338633873388338933903391339233933394339533963397339833993400340134023403340434053406340734083409341034113412341334143415341634173418341934203421342234233424342534263427342834293430343134323433343434353436343734383439344034413442344334443445344634473448344934503451345234533454345534563457345834593460346134623463346434653466346734683469347034713472347334743475347634773478347934803481348234833484348534863487348834893490349134923493349434953496349734983499350035013502350335043505350635073508350935103511351235133514351535163517351835193520352135223523352435253526352735283529353035313532353335343535353635373538353935403541354235433544354535463547354835493550355135523553355435553556355735583559356035613562356335643565356635673568356935703571357235733574357535763577357835793580358135823583358435853586358735883589359035913592359335943595359635973598359936003601360236033604360536063607360836093610361136123613361436153616361736183619362036213622362336243625362636273628362936303631363236333634363536363637363836393640364136423643364436453646364736483649365036513652365336543655365636573658365936603661366236633664366536663667366836693670367136723673367436753676367736783679368036813682368336843685368636873688368936903691369236933694369536963697369836993700370137023703370437053706370737083709371037113712371337143715371637173718371937203721372237233724372537263727372837293730373137323733373437353736373737383739374037413742374337443745374637473748374937503751375237533754375537563757375837593760376137623763376437653766376737683769377037713772377337743775377637773778377937803781378237833784378537863787378837893790379137923793379437953796379737983799380038013802380338043805380638073808380938103811381238133814381538163817381838193820382138223823382438253826382738283829383038313832383338343835383638373838383938403841384238433844384538463847384838493850385138523853385438553856385738583859386038613862386338643865386638673868386938703871387238733874387538763877387838793880388138823883388438853886388738883889389038913892389338943895389638973898389939003901390239033904390539063907390839093910391139123913391439153916391739183919392039213922392339243925392639273928392939303931393239333934393539363937393839393940394139423943394439453946394739483949395039513952395339543955395639573958395939603961396239633964396539663967396839693970397139723973397439753976397739783979398039813982398339843985398639873988398939903991399239933994399539963997399839994000400140024003400440054006400740084009401040114012401340144015401640174018401940204021402240234024402540264027402840294030403140324033403440354036403740384039404040414042404340444045404640474048404940504051405240534054405540564057405840594060406140624063406440654066406740684069407040714072407340744075407640774078407940804081408240834084408540864087408840894090409140924093409440954096409740984099410041014102410341044105410641074108410941104111411241134114411541164117411841194120412141224123412441254126412741284129413041314132413341344135413641374138413941404141414241434144414541464147414841494150415141524153415441554156415741584159416041614162416341644165416641674168416941704171417241734174417541764177417841794180418141824183418441854186418741884189419041914192419341944195419641974198419942004201420242034204420542064207420842094210421142124213421442154216421742184219422042214222422342244225422642274228422942304231423242334234423542364237423842394240424142424243424442454246424742484249425042514252425342544255425642574258425942604261426242634264426542664267426842694270427142724273427442754276427742784279428042814282428342844285428642874288428942904291429242934294429542964297429842994300430143024303430443054306430743084309431043114312431343144315431643174318431943204321432243234324432543264327432843294330433143324333433443354336433743384339434043414342434343444345434643474348434943504351435243534354435543564357435843594360436143624363436443654366436743684369437043714372437343744375437643774378437943804381438243834384438543864387438843894390439143924393439443954396439743984399440044014402440344044405440644074408440944104411441244134414441544164417441844194420442144224423442444254426442744284429443044314432443344344435443644374438443944404441444244434444444544464447444844494450445144524453445444554456445744584459446044614462446344644465446644674468446944704471447244734474447544764477447844794480448144824483448444854486448744884489449044914492449344944495449644974498449945004501450245034504450545064507450845094510451145124513451445154516451745184519452045214522452345244525452645274528452945304531453245334534453545364537453845394540454145424543454445454546454745484549455045514552455345544555455645574558455945604561456245634564456545664567456845694570457145724573457445754576457745784579458045814582458345844585458645874588458945904591459245934594459545964597459845994600460146024603460446054606460746084609461046114612461346144615461646174618461946204621462246234624462546264627462846294630463146324633463446354636463746384639464046414642464346444645464646474648464946504651465246534654465546564657465846594660466146624663466446654666466746684669467046714672467346744675467646774678467946804681468246834684468546864687468846894690469146924693469446954696469746984699470047014702470347044705470647074708470947104711471247134714471547164717471847194720472147224723472447254726472747284729473047314732473347344735473647374738473947404741474247434744474547464747474847494750475147524753475447554756475747584759476047614762476347644765476647674768476947704771477247734774477547764777477847794780478147824783478447854786478747884789479047914792479347944795479647974798479948004801480248034804480548064807480848094810481148124813481448154816481748184819482048214822482348244825482648274828482948304831483248334834483548364837483848394840484148424843484448454846484748484849485048514852485348544855485648574858485948604861486248634864486548664867486848694870487148724873487448754876487748784879488048814882488348844885488648874888488948904891489248934894489548964897489848994900490149024903490449054906490749084909491049114912491349144915491649174918491949204921492249234924492549264927492849294930493149324933493449354936493749384939494049414942494349444945494649474948494949504951495249534954495549564957495849594960496149624963496449654966496749684969497049714972497349744975497649774978497949804981498249834984498549864987498849894990499149924993499449954996499749984999500050015002500350045005500650075008500950105011501250135014501550165017501850195020502150225023502450255026502750285029503050315032503350345035503650375038503950405041504250435044504550465047504850495050505150525053505450555056505750585059506050615062506350645065506650675068506950705071507250735074507550765077507850795080508150825083508450855086508750885089509050915092509350945095509650975098509951005101510251035104510551065107510851095110511151125113511451155116511751185119512051215122512351245125512651275128512951305131513251335134513551365137513851395140514151425143514451455146514751485149515051515152515351545155515651575158515951605161516251635164516551665167516851695170517151725173517451755176517751785179518051815182518351845185518651875188518951905191519251935194519551965197519851995200520152025203520452055206520752085209521052115212521352145215521652175218521952205221522252235224522552265227522852295230523152325233523452355236523752385239524052415242524352445245524652475248524952505251525252535254525552565257525852595260526152625263526452655266526752685269527052715272527352745275527652775278527952805281528252835284528552865287528852895290529152925293529452955296529752985299530053015302530353045305530653075308530953105311531253135314531553165317531853195320532153225323532453255326532753285329533053315332533353345335533653375338533953405341534253435344534553465347534853495350535153525353535453555356535753585359536053615362536353645365536653675368536953705371537253735374537553765377537853795380538153825383538453855386538753885389539053915392539353945395539653975398539954005401540254035404540554065407540854095410541154125413541454155416541754185419542054215422542354245425542654275428542954305431543254335434543554365437543854395440544154425443544454455446544754485449545054515452545354545455545654575458545954605461546254635464546554665467546854695470547154725473547454755476547754785479548054815482548354845485548654875488548954905491549254935494549554965497549854995500550155025503550455055506550755085509551055115512551355145515551655175518551955205521552255235524552555265527552855295530553155325533553455355536553755385539554055415542554355445545554655475548554955505551555255535554555555565557555855595560556155625563556455655566556755685569557055715572557355745575557655775578557955805581558255835584558555865587558855895590559155925593559455955596559755985599560056015602560356045605560656075608560956105611561256135614561556165617561856195620562156225623562456255626562756285629563056315632563356345635563656375638563956405641564256435644564556465647564856495650565156525653565456555656565756585659566056615662566356645665566656675668566956705671567256735674567556765677567856795680568156825683568456855686568756885689569056915692569356945695569656975698569957005701570257035704570557065707570857095710571157125713571457155716571757185719572057215722572357245725572657275728572957305731573257335734573557365737573857395740574157425743574457455746574757485749575057515752575357545755575657575758575957605761576257635764576557665767576857695770577157725773577457755776577757785779578057815782578357845785578657875788578957905791579257935794579557965797579857995800580158025803580458055806580758085809581058115812581358145815581658175818581958205821582258235824582558265827582858295830583158325833583458355836583758385839584058415842584358445845584658475848584958505851585258535854585558565857585858595860586158625863586458655866586758685869587058715872587358745875587658775878587958805881588258835884588558865887588858895890589158925893589458955896589758985899590059015902590359045905590659075908590959105911591259135914591559165917591859195920592159225923592459255926592759285929593059315932593359345935593659375938593959405941594259435944594559465947594859495950595159525953595459555956595759585959596059615962596359645965596659675968596959705971597259735974597559765977597859795980598159825983598459855986598759885989599059915992599359945995599659975998599960006001600260036004600560066007600860096010601160126013601460156016601760186019602060216022602360246025602660276028602960306031603260336034603560366037603860396040604160426043604460456046604760486049605060516052605360546055605660576058605960606061606260636064606560666067606860696070607160726073607460756076607760786079608060816082608360846085608660876088608960906091609260936094609560966097609860996100610161026103610461056106610761086109611061116112611361146115611661176118611961206121612261236124612561266127612861296130613161326133613461356136613761386139614061416142614361446145614661476148614961506151615261536154615561566157615861596160616161626163616461656166616761686169617061716172617361746175617661776178617961806181618261836184618561866187618861896190619161926193619461956196619761986199620062016202620362046205620662076208620962106211621262136214621562166217621862196220622162226223622462256226622762286229623062316232623362346235623662376238623962406241624262436244624562466247624862496250625162526253625462556256625762586259626062616262626362646265626662676268626962706271627262736274627562766277627862796280628162826283628462856286628762886289629062916292629362946295629662976298629963006301630263036304630563066307630863096310631163126313631463156316631763186319632063216322632363246325632663276328632963306331633263336334633563366337633863396340634163426343634463456346634763486349635063516352635363546355635663576358635963606361636263636364636563666367636863696370637163726373637463756376637763786379638063816382638363846385638663876388638963906391639263936394639563966397639863996400640164026403640464056406640764086409641064116412641364146415641664176418641964206421642264236424642564266427642864296430643164326433643464356436643764386439644064416442644364446445644664476448644964506451645264536454645564566457645864596460646164626463646464656466646764686469647064716472647364746475647664776478647964806481648264836484648564866487648864896490649164926493649464956496649764986499650065016502650365046505650665076508650965106511651265136514651565166517651865196520652165226523652465256526652765286529653065316532653365346535653665376538653965406541654265436544654565466547654865496550655165526553655465556556655765586559656065616562656365646565656665676568656965706571657265736574657565766577657865796580658165826583658465856586658765886589659065916592659365946595659665976598659966006601660266036604660566066607660866096610661166126613661466156616661766186619662066216622662366246625662666276628662966306631663266336634663566366637663866396640664166426643664466456646664766486649665066516652665366546655665666576658665966606661666266636664666566666667666866696670667166726673667466756676667766786679668066816682668366846685668666876688668966906691669266936694669566966697669866996700670167026703670467056706670767086709671067116712671367146715671667176718671967206721672267236724672567266727672867296730673167326733673467356736673767386739674067416742674367446745674667476748674967506751675267536754675567566757675867596760676167626763676467656766676767686769677067716772677367746775677667776778677967806781678267836784678567866787678867896790679167926793679467956796679767986799680068016802680368046805680668076808680968106811681268136814681568166817681868196820682168226823682468256826682768286829683068316832683368346835683668376838683968406841684268436844684568466847684868496850685168526853685468556856685768586859686068616862686368646865686668676868686968706871687268736874687568766877687868796880688168826883688468856886688768886889689068916892689368946895689668976898689969006901690269036904690569066907690869096910691169126913691469156916691769186919692069216922692369246925692669276928692969306931693269336934693569366937693869396940694169426943694469456946694769486949695069516952695369546955695669576958695969606961696269636964696569666967696869696970697169726973697469756976697769786979698069816982698369846985698669876988698969906991699269936994699569966997699869997000700170027003700470057006700770087009701070117012701370147015701670177018701970207021702270237024702570267027702870297030703170327033703470357036703770387039704070417042704370447045704670477048704970507051705270537054705570567057705870597060706170627063706470657066706770687069707070717072707370747075707670777078707970807081708270837084708570867087708870897090709170927093709470957096709770987099710071017102710371047105710671077108710971107111711271137114711571167117711871197120712171227123712471257126712771287129713071317132713371347135713671377138713971407141714271437144714571467147714871497150715171527153715471557156715771587159716071617162716371647165716671677168716971707171717271737174717571767177717871797180718171827183718471857186718771887189719071917192719371947195719671977198719972007201720272037204720572067207720872097210721172127213721472157216721772187219722072217222722372247225722672277228722972307231723272337234723572367237723872397240724172427243724472457246724772487249725072517252725372547255725672577258725972607261726272637264726572667267726872697270727172727273727472757276727772787279728072817282728372847285728672877288728972907291729272937294729572967297729872997300730173027303730473057306730773087309731073117312731373147315731673177318731973207321732273237324732573267327732873297330733173327333733473357336733773387339734073417342734373447345734673477348734973507351735273537354735573567357735873597360736173627363736473657366736773687369737073717372737373747375737673777378737973807381738273837384738573867387738873897390739173927393739473957396739773987399740074017402740374047405740674077408740974107411741274137414741574167417741874197420742174227423742474257426742774287429743074317432743374347435743674377438743974407441744274437444744574467447744874497450745174527453745474557456745774587459746074617462746374647465746674677468746974707471747274737474747574767477747874797480748174827483748474857486748774887489749074917492749374947495749674977498749975007501750275037504750575067507750875097510751175127513751475157516751775187519752075217522752375247525752675277528752975307531753275337534753575367537753875397540754175427543754475457546754775487549755075517552755375547555755675577558755975607561756275637564756575667567756875697570757175727573757475757576757775787579758075817582758375847585758675877588758975907591759275937594759575967597759875997600760176027603760476057606760776087609761076117612761376147615761676177618761976207621762276237624762576267627762876297630763176327633763476357636763776387639764076417642764376447645764676477648764976507651765276537654765576567657765876597660766176627663766476657666766776687669767076717672767376747675767676777678767976807681768276837684768576867687768876897690769176927693769476957696769776987699770077017702770377047705770677077708770977107711771277137714771577167717771877197720772177227723772477257726772777287729773077317732773377347735773677377738773977407741774277437744774577467747774877497750775177527753775477557756775777587759776077617762776377647765776677677768776977707771777277737774777577767777777877797780778177827783778477857786778777887789779077917792779377947795779677977798779978007801780278037804780578067807780878097810781178127813781478157816781778187819782078217822782378247825782678277828782978307831783278337834783578367837783878397840784178427843784478457846784778487849785078517852785378547855785678577858785978607861786278637864786578667867786878697870787178727873787478757876787778787879788078817882788378847885788678877888788978907891789278937894789578967897789878997900790179027903790479057906790779087909791079117912791379147915791679177918791979207921792279237924792579267927792879297930793179327933793479357936793779387939794079417942794379447945794679477948794979507951795279537954795579567957795879597960796179627963796479657966796779687969797079717972797379747975797679777978797979807981798279837984798579867987798879897990799179927993799479957996799779987999800080018002800380048005800680078008800980108011801280138014801580168017801880198020802180228023802480258026802780288029803080318032803380348035803680378038803980408041804280438044804580468047804880498050805180528053805480558056805780588059806080618062806380648065806680678068806980708071807280738074807580768077807880798080808180828083808480858086808780888089809080918092809380948095809680978098809981008101810281038104810581068107810881098110811181128113811481158116811781188119812081218122812381248125812681278128812981308131813281338134813581368137813881398140814181428143814481458146814781488149815081518152815381548155815681578158815981608161816281638164816581668167816881698170817181728173817481758176817781788179818081818182818381848185818681878188818981908191819281938194819581968197819881998200820182028203820482058206820782088209821082118212821382148215821682178218821982208221822282238224822582268227822882298230823182328233823482358236823782388239824082418242824382448245824682478248824982508251825282538254825582568257825882598260826182628263826482658266826782688269827082718272827382748275827682778278827982808281828282838284828582868287828882898290829182928293829482958296829782988299830083018302830383048305830683078308830983108311831283138314831583168317831883198320832183228323832483258326832783288329833083318332833383348335833683378338833983408341834283438344834583468347834883498350835183528353835483558356835783588359836083618362836383648365836683678368836983708371837283738374837583768377837883798380838183828383838483858386838783888389839083918392839383948395839683978398839984008401840284038404840584068407840884098410841184128413841484158416841784188419842084218422842384248425842684278428842984308431843284338434843584368437843884398440844184428443844484458446844784488449845084518452845384548455845684578458845984608461846284638464846584668467846884698470847184728473847484758476847784788479848084818482848384848485848684878488848984908491849284938494849584968497849884998500850185028503850485058506850785088509851085118512851385148515851685178518851985208521852285238524852585268527852885298530853185328533853485358536853785388539854085418542854385448545854685478548854985508551855285538554855585568557855885598560856185628563856485658566856785688569857085718572857385748575857685778578857985808581858285838584858585868587858885898590859185928593859485958596859785988599860086018602860386048605860686078608860986108611861286138614861586168617861886198620862186228623862486258626862786288629863086318632863386348635863686378638863986408641864286438644864586468647864886498650865186528653865486558656865786588659866086618662866386648665866686678668866986708671867286738674867586768677867886798680868186828683868486858686868786888689869086918692869386948695869686978698869987008701870287038704870587068707870887098710871187128713871487158716871787188719872087218722872387248725872687278728872987308731873287338734873587368737873887398740874187428743874487458746874787488749875087518752875387548755875687578758875987608761876287638764876587668767876887698770877187728773877487758776877787788779878087818782878387848785878687878788878987908791879287938794879587968797879887998800880188028803880488058806880788088809881088118812881388148815881688178818881988208821882288238824882588268827882888298830883188328833883488358836883788388839884088418842884388448845884688478848884988508851885288538854885588568857885888598860886188628863886488658866886788688869887088718872887388748875887688778878887988808881888288838884888588868887888888898890889188928893889488958896889788988899890089018902890389048905890689078908890989108911891289138914891589168917891889198920892189228923892489258926892789288929893089318932893389348935893689378938893989408941894289438944894589468947894889498950895189528953895489558956895789588959896089618962896389648965896689678968896989708971897289738974897589768977897889798980898189828983898489858986898789888989899089918992899389948995899689978998899990009001900290039004900590069007900890099010901190129013901490159016901790189019902090219022902390249025902690279028902990309031903290339034903590369037903890399040904190429043904490459046904790489049905090519052905390549055905690579058905990609061906290639064906590669067906890699070907190729073907490759076907790789079908090819082908390849085908690879088908990909091909290939094909590969097909890999100910191029103910491059106910791089109911091119112911391149115911691179118911991209121912291239124912591269127912891299130913191329133913491359136913791389139914091419142914391449145914691479148914991509151915291539154915591569157915891599160916191629163916491659166916791689169917091719172917391749175917691779178917991809181918291839184918591869187918891899190919191929193919491959196919791989199920092019202920392049205920692079208920992109211921292139214921592169217921892199220922192229223922492259226922792289229923092319232923392349235923692379238923992409241924292439244924592469247924892499250925192529253925492559256925792589259926092619262926392649265926692679268926992709271927292739274927592769277927892799280928192829283928492859286928792889289929092919292929392949295929692979298929993009301930293039304930593069307930893099310931193129313931493159316931793189319932093219322932393249325932693279328932993309331933293339334933593369337933893399340934193429343934493459346934793489349935093519352935393549355935693579358935993609361936293639364936593669367936893699370937193729373937493759376937793789379938093819382938393849385938693879388938993909391939293939394939593969397939893999400940194029403940494059406940794089409941094119412941394149415941694179418941994209421942294239424942594269427942894299430943194329433943494359436943794389439944094419442944394449445944694479448944994509451945294539454945594569457945894599460946194629463946494659466946794689469947094719472947394749475947694779478947994809481948294839484948594869487948894899490949194929493949494959496949794989499950095019502950395049505950695079508950995109511951295139514951595169517951895199520952195229523952495259526952795289529953095319532953395349535953695379538953995409541954295439544954595469547954895499550955195529553955495559556955795589559956095619562956395649565956695679568956995709571957295739574957595769577957895799580958195829583958495859586958795889589959095919592959395949595959695979598959996009601960296039604960596069607960896099610961196129613961496159616961796189619962096219622962396249625962696279628962996309631963296339634963596369637963896399640964196429643964496459646964796489649965096519652965396549655965696579658965996609661966296639664966596669667966896699670967196729673967496759676967796789679968096819682968396849685968696879688968996909691969296939694969596969697969896999700970197029703970497059706970797089709971097119712971397149715971697179718971997209721972297239724972597269727972897299730973197329733973497359736973797389739974097419742974397449745974697479748974997509751975297539754975597569757975897599760976197629763976497659766976797689769977097719772977397749775977697779778977997809781978297839784978597869787978897899790979197929793979497959796979797989799980098019802980398049805980698079808980998109811981298139814981598169817981898199820982198229823982498259826982798289829983098319832983398349835983698379838983998409841984298439844984598469847984898499850985198529853985498559856985798589859986098619862986398649865986698679868986998709871987298739874987598769877987898799880988198829883988498859886988798889889989098919892989398949895989698979898989999009901990299039904990599069907990899099910991199129913991499159916991799189919992099219922992399249925992699279928992999309931993299339934993599369937993899399940994199429943994499459946994799489949995099519952995399549955995699579958995999609961996299639964996599669967996899699970997199729973997499759976997799789979998099819982998399849985998699879988998999909991999299939994999599969997999899991000010001100021000310004100051000610007100081000910010100111001210013100141001510016100171001810019100201002110022100231002410025100261002710028100291003010031100321003310034100351003610037100381003910040100411004210043100441004510046100471004810049100501005110052100531005410055100561005710058100591006010061100621006310064100651006610067100681006910070100711007210073100741007510076100771007810079100801008110082100831008410085100861008710088100891009010091100921009310094100951009610097100981009910100101011010210103101041010510106101071010810109101101011110112101131011410115101161011710118101191012010121101221012310124101251012610127101281012910130101311013210133101341013510136101371013810139101401014110142101431014410145101461014710148101491015010151101521015310154101551015610157101581015910160101611016210163101641016510166101671016810169101701017110172101731017410175101761017710178101791018010181101821018310184101851018610187101881018910190101911019210193101941019510196101971019810199102001020110202102031020410205102061020710208102091021010211102121021310214102151021610217102181021910220102211022210223102241022510226102271022810229102301023110232102331023410235102361023710238102391024010241102421024310244102451024610247102481024910250102511025210253102541025510256102571025810259102601026110262102631026410265102661026710268102691027010271102721027310274102751027610277102781027910280102811028210283102841028510286102871028810289102901029110292102931029410295102961029710298102991030010301103021030310304103051030610307103081030910310103111031210313103141031510316103171031810319103201032110322103231032410325103261032710328103291033010331103321033310334103351033610337103381033910340103411034210343103441034510346103471034810349103501035110352103531035410355103561035710358103591036010361103621036310364103651036610367103681036910370103711037210373103741037510376103771037810379103801038110382103831038410385103861038710388103891039010391103921039310394103951039610397103981039910400104011040210403104041040510406104071040810409104101041110412104131041410415104161041710418104191042010421104221042310424104251042610427104281042910430104311043210433104341043510436104371043810439104401044110442104431044410445104461044710448104491045010451104521045310454104551045610457104581045910460104611046210463104641046510466104671046810469104701047110472104731047410475104761047710478104791048010481104821048310484104851048610487104881048910490104911049210493104941049510496104971049810499105001050110502105031050410505105061050710508105091051010511105121051310514105151051610517105181051910520105211052210523105241052510526105271052810529105301053110532105331053410535105361053710538105391054010541105421054310544105451054610547105481054910550105511055210553105541055510556105571055810559105601056110562105631056410565105661056710568105691057010571105721057310574105751057610577105781057910580105811058210583105841058510586105871058810589105901059110592105931059410595105961059710598105991060010601106021060310604106051060610607106081060910610106111061210613106141061510616106171061810619106201062110622106231062410625106261062710628106291063010631106321063310634106351063610637106381063910640106411064210643106441064510646106471064810649106501065110652106531065410655106561065710658106591066010661106621066310664106651066610667106681066910670106711067210673106741067510676106771067810679106801068110682106831068410685106861068710688106891069010691106921069310694106951069610697106981069910700107011070210703107041070510706107071070810709107101071110712107131071410715107161071710718107191072010721107221072310724107251072610727107281072910730107311073210733107341073510736107371073810739107401074110742107431074410745107461074710748107491075010751107521075310754107551075610757107581075910760107611076210763107641076510766107671076810769107701077110772107731077410775107761077710778107791078010781107821078310784107851078610787107881078910790107911079210793107941079510796107971079810799108001080110802108031080410805108061080710808108091081010811108121081310814108151081610817108181081910820108211082210823108241082510826108271082810829108301083110832108331083410835108361083710838108391084010841108421084310844108451084610847108481084910850108511085210853108541085510856108571085810859108601086110862108631086410865108661086710868108691087010871108721087310874108751087610877108781087910880108811088210883108841088510886108871088810889108901089110892108931089410895108961089710898108991090010901109021090310904109051090610907109081090910910109111091210913109141091510916109171091810919109201092110922109231092410925109261092710928109291093010931109321093310934109351093610937109381093910940109411094210943109441094510946109471094810949109501095110952109531095410955109561095710958109591096010961109621096310964109651096610967109681096910970109711097210973109741097510976109771097810979109801098110982109831098410985109861098710988109891099010991109921099310994109951099610997109981099911000110011100211003110041100511006110071100811009110101101111012110131101411015110161101711018110191102011021110221102311024110251102611027110281102911030110311103211033110341103511036110371103811039110401104111042110431104411045110461104711048110491105011051110521105311054110551105611057110581105911060110611106211063110641106511066110671106811069110701107111072110731107411075110761107711078110791108011081110821108311084110851108611087110881108911090110911109211093110941109511096110971109811099111001110111102111031110411105111061110711108111091111011111111121111311114111151111611117111181111911120111211112211123111241112511126111271112811129111301113111132111331113411135111361113711138111391114011141111421114311144111451114611147111481114911150111511115211153111541115511156111571115811159111601116111162111631116411165111661116711168111691117011171111721117311174111751117611177111781117911180111811118211183111841118511186111871118811189111901119111192111931119411195111961119711198111991120011201112021120311204112051120611207112081120911210112111121211213112141121511216112171121811219112201122111222112231122411225112261122711228112291123011231112321123311234112351123611237112381123911240112411124211243112441124511246112471124811249112501125111252112531125411255112561125711258112591126011261112621126311264112651126611267112681126911270112711127211273112741127511276112771127811279112801128111282112831128411285112861128711288112891129011291112921129311294112951129611297112981129911300113011130211303113041130511306113071130811309113101131111312113131131411315113161131711318113191132011321113221132311324113251132611327113281132911330113311133211333113341133511336113371133811339113401134111342113431134411345113461134711348113491135011351113521135311354113551135611357113581135911360113611136211363113641136511366113671136811369113701137111372113731137411375113761137711378113791138011381113821138311384113851138611387113881138911390113911139211393113941139511396113971139811399114001140111402114031140411405114061140711408114091141011411114121141311414114151141611417114181141911420114211142211423114241142511426114271142811429114301143111432114331143411435114361143711438114391144011441114421144311444114451144611447114481144911450114511145211453114541145511456114571145811459114601146111462114631146411465114661146711468114691147011471114721147311474114751147611477114781147911480114811148211483114841148511486114871148811489114901149111492114931149411495114961149711498114991150011501115021150311504115051150611507115081150911510115111151211513115141151511516115171151811519115201152111522115231152411525115261152711528115291153011531115321153311534115351153611537115381153911540115411154211543115441154511546115471154811549115501155111552115531155411555115561155711558115591156011561115621156311564115651156611567115681156911570115711157211573115741157511576115771157811579115801158111582115831158411585115861158711588115891159011591115921159311594115951159611597115981159911600116011160211603116041160511606116071160811609116101161111612116131161411615116161161711618116191162011621116221162311624116251162611627116281162911630116311163211633116341163511636116371163811639116401164111642116431164411645116461164711648116491165011651116521165311654116551165611657116581165911660116611166211663116641166511666116671166811669116701167111672116731167411675116761167711678116791168011681116821168311684116851168611687116881168911690116911169211693116941169511696116971169811699117001170111702117031170411705117061170711708117091171011711117121171311714117151171611717117181171911720117211172211723117241172511726117271172811729117301173111732117331173411735117361173711738117391174011741117421174311744117451174611747117481174911750117511175211753117541175511756117571175811759117601176111762117631176411765117661176711768117691177011771117721177311774117751177611777117781177911780117811178211783117841178511786117871178811789117901179111792117931179411795117961179711798117991180011801118021180311804118051180611807118081180911810118111181211813118141181511816118171181811819118201182111822118231182411825118261182711828118291183011831118321183311834118351183611837118381183911840118411184211843118441184511846118471184811849118501185111852118531185411855118561185711858118591186011861118621186311864118651186611867118681186911870118711187211873118741187511876118771187811879118801188111882118831188411885118861188711888118891189011891118921189311894118951189611897118981189911900119011190211903119041190511906119071190811909119101191111912119131191411915119161191711918119191192011921119221192311924119251192611927119281192911930119311193211933119341193511936119371193811939119401194111942119431194411945119461194711948119491195011951119521195311954119551195611957119581195911960119611196211963119641196511966119671196811969119701197111972119731197411975119761197711978119791198011981119821198311984119851198611987119881198911990119911199211993119941199511996119971199811999120001200112002120031200412005120061200712008120091201012011120121201312014120151201612017120181201912020120211202212023120241202512026120271202812029120301203112032120331203412035120361203712038120391204012041120421204312044120451204612047120481204912050120511205212053120541205512056120571205812059120601206112062120631206412065120661206712068120691207012071120721207312074120751207612077120781207912080120811208212083120841208512086120871208812089120901209112092120931209412095120961209712098120991210012101121021210312104121051210612107121081210912110121111211212113121141211512116121171211812119121201212112122121231212412125121261212712128121291213012131121321213312134121351213612137121381213912140121411214212143121441214512146121471214812149121501215112152121531215412155121561215712158121591216012161121621216312164121651216612167121681216912170121711217212173121741217512176121771217812179121801218112182121831218412185121861218712188121891219012191121921219312194121951219612197121981219912200122011220212203122041220512206122071220812209122101221112212122131221412215122161221712218122191222012221122221222312224122251222612227122281222912230122311223212233122341223512236122371223812239122401224112242122431224412245122461224712248122491225012251122521225312254122551225612257122581225912260122611226212263122641226512266122671226812269122701227112272122731227412275122761227712278122791228012281122821228312284122851228612287122881228912290122911229212293122941229512296122971229812299123001230112302123031230412305123061230712308123091231012311123121231312314123151231612317123181231912320123211232212323123241232512326123271232812329123301233112332123331233412335123361233712338123391234012341123421234312344123451234612347123481234912350123511235212353123541235512356123571235812359123601236112362123631236412365123661236712368123691237012371123721237312374123751237612377123781237912380123811238212383123841238512386123871238812389123901239112392123931239412395123961239712398123991240012401124021240312404124051240612407124081240912410124111241212413124141241512416124171241812419124201242112422124231242412425124261242712428124291243012431124321243312434124351243612437124381243912440124411244212443124441244512446124471244812449124501245112452124531245412455124561245712458124591246012461124621246312464124651246612467124681246912470124711247212473124741247512476124771247812479124801248112482124831248412485124861248712488124891249012491124921249312494124951249612497124981249912500125011250212503125041250512506125071250812509125101251112512125131251412515125161251712518125191252012521125221252312524125251252612527125281252912530125311253212533125341253512536125371253812539125401254112542125431254412545125461254712548125491255012551125521255312554125551255612557125581255912560125611256212563125641256512566125671256812569125701257112572125731257412575125761257712578125791258012581125821258312584125851258612587125881258912590125911259212593125941259512596125971259812599126001260112602126031260412605126061260712608126091261012611126121261312614126151261612617126181261912620126211262212623126241262512626126271262812629126301263112632126331263412635126361263712638126391264012641126421264312644126451264612647126481264912650126511265212653126541265512656126571265812659126601266112662126631266412665126661266712668126691267012671126721267312674126751267612677126781267912680126811268212683126841268512686126871268812689126901269112692126931269412695126961269712698126991270012701127021270312704127051270612707127081270912710127111271212713127141271512716127171271812719127201272112722127231272412725127261272712728127291273012731127321273312734127351273612737127381273912740127411274212743127441274512746127471274812749127501275112752127531275412755127561275712758127591276012761127621276312764127651276612767127681276912770127711277212773127741277512776127771277812779127801278112782127831278412785127861278712788127891279012791127921279312794127951279612797127981279912800128011280212803128041280512806128071280812809128101281112812128131281412815128161281712818128191282012821128221282312824128251282612827128281282912830128311283212833128341283512836128371283812839128401284112842128431284412845128461284712848128491285012851128521285312854128551285612857128581285912860128611286212863128641286512866128671286812869128701287112872128731287412875128761287712878128791288012881128821288312884128851288612887128881288912890128911289212893128941289512896128971289812899129001290112902129031290412905129061290712908129091291012911129121291312914129151291612917129181291912920129211292212923129241292512926129271292812929129301293112932129331293412935129361293712938129391294012941129421294312944129451294612947129481294912950129511295212953129541295512956129571295812959129601296112962129631296412965129661296712968129691297012971129721297312974129751297612977129781297912980129811298212983129841298512986129871298812989129901299112992129931299412995129961299712998129991300013001130021300313004130051300613007130081300913010130111301213013130141301513016130171301813019130201302113022130231302413025130261302713028130291303013031130321303313034130351303613037130381303913040130411304213043130441304513046130471304813049130501305113052130531305413055130561305713058130591306013061130621306313064130651306613067130681306913070130711307213073130741307513076130771307813079130801308113082130831308413085130861308713088130891309013091130921309313094130951309613097130981309913100131011310213103131041310513106131071310813109131101311113112131131311413115131161311713118131191312013121131221312313124131251312613127131281312913130131311313213133131341313513136131371313813139131401314113142131431314413145131461314713148131491315013151131521315313154131551315613157131581315913160131611316213163131641316513166131671316813169131701317113172131731317413175131761317713178131791318013181131821318313184131851318613187131881318913190131911319213193131941319513196131971319813199132001320113202132031320413205132061320713208132091321013211132121321313214132151321613217132181321913220132211322213223132241322513226132271322813229132301323113232132331323413235132361323713238132391324013241132421324313244132451324613247132481324913250132511325213253132541325513256132571325813259132601326113262132631326413265132661326713268132691327013271132721327313274132751327613277132781327913280132811328213283132841328513286132871328813289132901329113292132931329413295132961329713298132991330013301133021330313304133051330613307133081330913310133111331213313133141331513316133171331813319133201332113322133231332413325133261332713328133291333013331133321333313334133351333613337133381333913340133411334213343133441334513346133471334813349133501335113352133531335413355133561335713358133591336013361133621336313364133651336613367133681336913370133711337213373133741337513376133771337813379133801338113382133831338413385133861338713388133891339013391133921339313394133951339613397133981339913400134011340213403134041340513406134071340813409134101341113412134131341413415134161341713418134191342013421134221342313424134251342613427134281342913430134311343213433134341343513436134371343813439134401344113442134431344413445134461344713448134491345013451134521345313454134551345613457134581345913460134611346213463134641346513466134671346813469134701347113472134731347413475134761347713478134791348013481134821348313484134851348613487134881348913490134911349213493134941349513496134971349813499135001350113502135031350413505135061350713508135091351013511135121351313514135151351613517135181351913520135211352213523135241352513526135271352813529135301353113532135331353413535135361353713538135391354013541135421354313544135451354613547135481354913550135511355213553135541355513556135571355813559135601356113562135631356413565135661356713568135691357013571135721357313574135751357613577135781357913580135811358213583135841358513586135871358813589135901359113592135931359413595135961359713598135991360013601136021360313604136051360613607136081360913610136111361213613136141361513616136171361813619136201362113622136231362413625136261362713628136291363013631136321363313634136351363613637136381363913640136411364213643136441364513646136471364813649136501365113652136531365413655136561365713658136591366013661136621366313664136651366613667136681366913670136711367213673136741367513676136771367813679136801368113682136831368413685136861368713688136891369013691136921369313694136951369613697136981369913700137011370213703137041370513706137071370813709137101371113712137131371413715137161371713718137191372013721137221372313724137251372613727137281372913730137311373213733137341373513736137371373813739137401374113742137431374413745137461374713748137491375013751137521375313754137551375613757137581375913760137611376213763137641376513766137671376813769137701377113772137731377413775137761377713778137791378013781137821378313784137851378613787137881378913790137911379213793137941379513796137971379813799138001380113802138031380413805138061380713808138091381013811138121381313814138151381613817138181381913820138211382213823138241382513826138271382813829138301383113832138331383413835138361383713838138391384013841138421384313844138451384613847138481384913850138511385213853138541385513856138571385813859138601386113862138631386413865138661386713868138691387013871138721387313874138751387613877138781387913880138811388213883138841388513886138871388813889138901389113892138931389413895138961389713898138991390013901139021390313904139051390613907139081390913910139111391213913139141391513916139171391813919139201392113922139231392413925139261392713928139291393013931139321393313934139351393613937139381393913940139411394213943139441394513946139471394813949139501395113952139531395413955139561395713958139591396013961139621396313964139651396613967139681396913970139711397213973139741397513976139771397813979139801398113982139831398413985139861398713988139891399013991139921399313994139951399613997139981399914000140011400214003140041400514006140071400814009140101401114012140131401414015140161401714018140191402014021140221402314024140251402614027140281402914030140311403214033140341403514036140371403814039140401404114042140431404414045140461404714048140491405014051140521405314054140551405614057140581405914060140611406214063140641406514066140671406814069140701407114072140731407414075140761407714078140791408014081140821408314084140851408614087140881408914090140911409214093140941409514096140971409814099141001410114102141031410414105141061410714108141091411014111141121411314114141151411614117141181411914120141211412214123141241412514126141271412814129141301413114132141331413414135141361413714138141391414014141141421414314144141451414614147141481414914150141511415214153141541415514156141571415814159141601416114162141631416414165141661416714168141691417014171141721417314174141751417614177141781417914180141811418214183141841418514186141871418814189141901419114192141931419414195141961419714198141991420014201142021420314204142051420614207142081420914210142111421214213142141421514216142171421814219142201422114222142231422414225142261422714228142291423014231142321423314234142351423614237142381423914240142411424214243142441424514246142471424814249142501425114252142531425414255142561425714258142591426014261142621426314264142651426614267142681426914270142711427214273142741427514276142771427814279142801428114282142831428414285142861428714288142891429014291142921429314294142951429614297142981429914300143011430214303143041430514306143071430814309143101431114312143131431414315143161431714318143191432014321143221432314324143251432614327143281432914330143311433214333143341433514336143371433814339143401434114342143431434414345143461434714348143491435014351143521435314354143551435614357143581435914360143611436214363143641436514366143671436814369143701437114372143731437414375143761437714378143791438014381143821438314384143851438614387143881438914390143911439214393143941439514396143971439814399144001440114402144031440414405144061440714408144091441014411144121441314414144151441614417144181441914420144211442214423144241442514426144271442814429144301443114432144331443414435144361443714438144391444014441144421444314444144451444614447144481444914450144511445214453144541445514456144571445814459144601446114462144631446414465144661446714468144691447014471144721447314474144751447614477144781447914480144811448214483144841448514486144871448814489144901449114492144931449414495144961449714498144991450014501145021450314504145051450614507145081450914510145111451214513145141451514516145171451814519145201452114522145231452414525145261452714528145291453014531145321453314534145351453614537145381453914540145411454214543145441454514546145471454814549145501455114552145531455414555145561455714558145591456014561145621456314564145651456614567145681456914570145711457214573145741457514576145771457814579145801458114582145831458414585145861458714588145891459014591145921459314594145951459614597145981459914600146011460214603146041460514606146071460814609146101461114612146131461414615146161461714618146191462014621146221462314624146251462614627146281462914630146311463214633146341463514636146371463814639146401464114642146431464414645146461464714648146491465014651146521465314654146551465614657146581465914660146611466214663146641466514666146671466814669146701467114672146731467414675146761467714678146791468014681146821468314684146851468614687146881468914690146911469214693146941469514696146971469814699147001470114702147031470414705147061470714708147091471014711147121471314714147151471614717147181471914720147211472214723147241472514726147271472814729147301473114732147331473414735147361473714738147391474014741147421474314744147451474614747147481474914750147511475214753147541475514756147571475814759147601476114762147631476414765147661476714768147691477014771147721477314774147751477614777147781477914780147811478214783147841478514786147871478814789147901479114792147931479414795147961479714798147991480014801148021480314804148051480614807148081480914810148111481214813148141481514816148171481814819148201482114822148231482414825148261482714828148291483014831148321483314834148351483614837148381483914840148411484214843148441484514846148471484814849148501485114852148531485414855148561485714858148591486014861148621486314864148651486614867148681486914870148711487214873148741487514876148771487814879148801488114882148831488414885148861488714888148891489014891148921489314894148951489614897148981489914900149011490214903149041490514906149071490814909149101491114912149131491414915149161491714918149191492014921149221492314924149251492614927149281492914930149311493214933149341493514936149371493814939149401494114942149431494414945149461494714948149491495014951149521495314954149551495614957149581495914960149611496214963149641496514966149671496814969149701497114972149731497414975149761497714978149791498014981149821498314984149851498614987149881498914990149911499214993149941499514996149971499814999150001500115002150031500415005150061500715008150091501015011150121501315014150151501615017150181501915020150211502215023150241502515026150271502815029150301503115032150331503415035150361503715038150391504015041150421504315044150451504615047150481504915050150511505215053150541505515056150571505815059150601506115062150631506415065150661506715068150691507015071150721507315074150751507615077150781507915080150811508215083150841508515086150871508815089150901509115092150931509415095150961509715098150991510015101151021510315104151051510615107151081510915110151111511215113151141511515116151171511815119151201512115122151231512415125151261512715128151291513015131151321513315134151351513615137151381513915140151411514215143151441514515146151471514815149151501515115152151531515415155151561515715158151591516015161151621516315164151651516615167151681516915170151711517215173151741517515176151771517815179151801518115182151831518415185151861518715188151891519015191151921519315194151951519615197151981519915200152011520215203152041520515206152071520815209152101521115212152131521415215152161521715218152191522015221152221522315224152251522615227152281522915230152311523215233152341523515236152371523815239152401524115242152431524415245152461524715248152491525015251152521525315254152551525615257152581525915260152611526215263152641526515266152671526815269152701527115272152731527415275152761527715278152791528015281152821528315284152851528615287152881528915290152911529215293152941529515296152971529815299153001530115302153031530415305153061530715308153091531015311153121531315314153151531615317153181531915320153211532215323153241532515326153271532815329153301533115332153331533415335153361533715338153391534015341153421534315344153451534615347153481534915350153511535215353153541535515356153571535815359153601536115362153631536415365153661536715368153691537015371153721537315374153751537615377153781537915380153811538215383153841538515386153871538815389153901539115392153931539415395153961539715398153991540015401154021540315404154051540615407154081540915410154111541215413154141541515416154171541815419154201542115422154231542415425154261542715428154291543015431154321543315434154351543615437154381543915440154411544215443154441544515446154471544815449154501545115452154531545415455154561545715458154591546015461154621546315464154651546615467154681546915470154711547215473154741547515476154771547815479154801548115482154831548415485154861548715488154891549015491154921549315494154951549615497154981549915500155011550215503155041550515506155071550815509155101551115512155131551415515155161551715518155191552015521155221552315524155251552615527155281552915530155311553215533155341553515536155371553815539155401554115542155431554415545155461554715548155491555015551155521555315554155551555615557155581555915560155611556215563155641556515566155671556815569155701557115572155731557415575155761557715578155791558015581155821558315584155851558615587155881558915590155911559215593155941559515596155971559815599156001560115602156031560415605156061560715608156091561015611156121561315614156151561615617156181561915620156211562215623156241562515626156271562815629156301563115632156331563415635156361563715638156391564015641156421564315644156451564615647156481564915650156511565215653156541565515656156571565815659156601566115662156631566415665156661566715668156691567015671156721567315674156751567615677156781567915680156811568215683156841568515686156871568815689156901569115692156931569415695156961569715698156991570015701157021570315704157051570615707157081570915710157111571215713157141571515716157171571815719157201572115722157231572415725157261572715728157291573015731157321573315734157351573615737157381573915740157411574215743157441574515746157471574815749157501575115752157531575415755157561575715758157591576015761157621576315764157651576615767157681576915770157711577215773157741577515776157771577815779157801578115782157831578415785157861578715788157891579015791157921579315794157951579615797157981579915800158011580215803158041580515806158071580815809158101581115812158131581415815158161581715818158191582015821158221582315824158251582615827158281582915830158311583215833158341583515836158371583815839158401584115842158431584415845158461584715848158491585015851158521585315854158551585615857158581585915860158611586215863158641586515866158671586815869158701587115872158731587415875158761587715878158791588015881158821588315884158851588615887158881588915890158911589215893158941589515896158971589815899159001590115902159031590415905159061590715908159091591015911159121591315914159151591615917159181591915920159211592215923159241592515926159271592815929159301593115932159331593415935159361593715938159391594015941159421594315944159451594615947159481594915950159511595215953159541595515956159571595815959159601596115962159631596415965159661596715968159691597015971159721597315974159751597615977159781597915980159811598215983159841598515986159871598815989159901599115992159931599415995159961599715998159991600016001160021600316004160051600616007160081600916010160111601216013160141601516016160171601816019160201602116022160231602416025160261602716028160291603016031160321603316034160351603616037160381603916040160411604216043160441604516046160471604816049160501605116052160531605416055160561605716058160591606016061160621606316064160651606616067160681606916070160711607216073160741607516076160771607816079160801608116082160831608416085160861608716088160891609016091160921609316094160951609616097160981609916100161011610216103161041610516106161071610816109161101611116112161131611416115161161611716118161191612016121161221612316124161251612616127161281612916130161311613216133161341613516136161371613816139161401614116142161431614416145161461614716148161491615016151161521615316154161551615616157161581615916160161611616216163161641616516166161671616816169161701617116172161731617416175161761617716178161791618016181161821618316184161851618616187161881618916190161911619216193161941619516196161971619816199162001620116202162031620416205162061620716208162091621016211162121621316214162151621616217162181621916220162211622216223162241622516226162271622816229162301623116232162331623416235162361623716238162391624016241162421624316244162451624616247162481624916250162511625216253162541625516256162571625816259162601626116262162631626416265162661626716268162691627016271162721627316274162751627616277162781627916280162811628216283162841628516286162871628816289162901629116292162931629416295162961629716298162991630016301163021630316304163051630616307163081630916310163111631216313163141631516316163171631816319163201632116322163231632416325163261632716328163291633016331163321633316334163351633616337163381633916340163411634216343163441634516346163471634816349163501635116352163531635416355163561635716358163591636016361163621636316364163651636616367163681636916370163711637216373163741637516376163771637816379163801638116382163831638416385163861638716388163891639016391163921639316394163951639616397163981639916400164011640216403164041640516406164071640816409164101641116412164131641416415164161641716418164191642016421164221642316424164251642616427164281642916430164311643216433164341643516436164371643816439164401644116442164431644416445164461644716448164491645016451164521645316454164551645616457164581645916460164611646216463164641646516466164671646816469164701647116472164731647416475164761647716478164791648016481164821648316484164851648616487164881648916490164911649216493164941649516496164971649816499165001650116502165031650416505165061650716508165091651016511165121651316514165151651616517165181651916520165211652216523165241652516526165271652816529165301653116532165331653416535165361653716538165391654016541165421654316544165451654616547165481654916550165511655216553165541655516556165571655816559165601656116562165631656416565165661656716568165691657016571165721657316574165751657616577165781657916580165811658216583165841658516586165871658816589165901659116592165931659416595165961659716598165991660016601166021660316604166051660616607166081660916610166111661216613166141661516616166171661816619166201662116622166231662416625166261662716628166291663016631166321663316634166351663616637166381663916640166411664216643166441664516646166471664816649166501665116652166531665416655166561665716658166591666016661166621666316664166651666616667166681666916670166711667216673166741667516676166771667816679166801668116682166831668416685166861668716688166891669016691166921669316694166951669616697166981669916700167011670216703167041670516706167071670816709167101671116712167131671416715167161671716718167191672016721167221672316724167251672616727167281672916730167311673216733167341673516736167371673816739167401674116742167431674416745167461674716748167491675016751167521675316754167551675616757167581675916760167611676216763167641676516766167671676816769167701677116772167731677416775167761677716778167791678016781167821678316784167851678616787167881678916790167911679216793167941679516796167971679816799168001680116802168031680416805168061680716808168091681016811168121681316814168151681616817168181681916820168211682216823168241682516826168271682816829168301683116832168331683416835168361683716838168391684016841168421684316844168451684616847168481684916850168511685216853168541685516856168571685816859168601686116862168631686416865168661686716868168691687016871168721687316874168751687616877168781687916880168811688216883168841688516886168871688816889168901689116892168931689416895168961689716898168991690016901169021690316904169051690616907169081690916910169111691216913169141691516916169171691816919169201692116922169231692416925169261692716928169291693016931169321693316934169351693616937169381693916940169411694216943169441694516946169471694816949169501695116952169531695416955169561695716958169591696016961169621696316964169651696616967169681696916970169711697216973169741697516976169771697816979169801698116982169831698416985169861698716988169891699016991169921699316994169951699616997169981699917000170011700217003170041700517006170071700817009170101701117012170131701417015170161701717018170191702017021170221702317024170251702617027170281702917030170311703217033170341703517036170371703817039170401704117042170431704417045170461704717048170491705017051170521705317054170551705617057170581705917060170611706217063170641706517066170671706817069170701707117072170731707417075170761707717078170791708017081170821708317084170851708617087170881708917090170911709217093170941709517096170971709817099171001710117102171031710417105171061710717108171091711017111171121711317114171151711617117171181711917120171211712217123171241712517126171271712817129171301713117132171331713417135171361713717138171391714017141171421714317144171451714617147171481714917150171511715217153171541715517156171571715817159171601716117162171631716417165171661716717168171691717017171171721717317174171751717617177171781717917180171811718217183171841718517186171871718817189171901719117192171931719417195171961719717198171991720017201172021720317204172051720617207172081720917210172111721217213172141721517216172171721817219172201722117222172231722417225172261722717228172291723017231172321723317234172351723617237172381723917240172411724217243172441724517246172471724817249172501725117252172531725417255172561725717258172591726017261172621726317264172651726617267172681726917270172711727217273172741727517276172771727817279172801728117282172831728417285172861728717288172891729017291172921729317294172951729617297172981729917300173011730217303173041730517306173071730817309173101731117312173131731417315173161731717318173191732017321173221732317324173251732617327173281732917330173311733217333173341733517336173371733817339173401734117342173431734417345173461734717348173491735017351173521735317354173551735617357173581735917360173611736217363173641736517366173671736817369173701737117372173731737417375173761737717378173791738017381173821738317384173851738617387173881738917390173911739217393173941739517396173971739817399174001740117402174031740417405174061740717408174091741017411174121741317414174151741617417174181741917420174211742217423174241742517426174271742817429174301743117432174331743417435174361743717438174391744017441174421744317444174451744617447174481744917450174511745217453174541745517456174571745817459174601746117462174631746417465174661746717468174691747017471174721747317474174751747617477174781747917480174811748217483174841748517486174871748817489174901749117492174931749417495174961749717498174991750017501175021750317504175051750617507175081750917510175111751217513175141751517516175171751817519175201752117522175231752417525175261752717528175291753017531175321753317534175351753617537175381753917540175411754217543175441754517546175471754817549175501755117552175531755417555175561755717558175591756017561175621756317564175651756617567175681756917570175711757217573175741757517576175771757817579175801758117582175831758417585175861758717588175891759017591175921759317594175951759617597175981759917600176011760217603176041760517606176071760817609176101761117612176131761417615176161761717618176191762017621176221762317624176251762617627176281762917630176311763217633176341763517636176371763817639176401764117642176431764417645176461764717648176491765017651176521765317654176551765617657176581765917660176611766217663176641766517666176671766817669176701767117672176731767417675176761767717678176791768017681176821768317684176851768617687176881768917690176911769217693176941769517696176971769817699177001770117702177031770417705177061770717708177091771017711177121771317714177151771617717177181771917720177211772217723177241772517726177271772817729177301773117732177331773417735177361773717738177391774017741177421774317744177451774617747177481774917750177511775217753177541775517756177571775817759177601776117762177631776417765177661776717768177691777017771177721777317774177751777617777177781777917780177811778217783177841778517786177871778817789177901779117792177931779417795177961779717798177991780017801178021780317804178051780617807178081780917810178111781217813178141781517816178171781817819178201782117822178231782417825178261782717828178291783017831178321783317834178351783617837178381783917840178411784217843178441784517846178471784817849178501785117852178531785417855178561785717858178591786017861178621786317864178651786617867178681786917870178711787217873178741787517876178771787817879178801788117882178831788417885178861788717888178891789017891178921789317894178951789617897178981789917900179011790217903179041790517906179071790817909179101791117912179131791417915179161791717918179191792017921179221792317924179251792617927179281792917930179311793217933179341793517936179371793817939179401794117942179431794417945179461794717948179491795017951179521795317954179551795617957179581795917960179611796217963179641796517966179671796817969179701797117972179731797417975179761797717978179791798017981179821798317984179851798617987179881798917990179911799217993179941799517996179971799817999180001800118002180031800418005180061800718008180091801018011180121801318014180151801618017180181801918020180211802218023180241802518026180271802818029180301803118032180331803418035180361803718038180391804018041180421804318044180451804618047180481804918050180511805218053180541805518056180571805818059180601806118062180631806418065180661806718068180691807018071180721807318074180751807618077180781807918080180811808218083180841808518086180871808818089180901809118092180931809418095180961809718098180991810018101181021810318104181051810618107181081810918110181111811218113181141811518116181171811818119181201812118122181231812418125181261812718128181291813018131181321813318134181351813618137181381813918140181411814218143181441814518146181471814818149181501815118152181531815418155181561815718158181591816018161181621816318164181651816618167181681816918170181711817218173181741817518176181771817818179181801818118182181831818418185181861818718188181891819018191181921819318194181951819618197181981819918200182011820218203182041820518206182071820818209182101821118212182131821418215182161821718218182191822018221182221822318224182251822618227182281822918230182311823218233182341823518236182371823818239182401824118242182431824418245182461824718248182491825018251182521825318254182551825618257182581825918260182611826218263182641826518266182671826818269182701827118272182731827418275182761827718278182791828018281182821828318284182851828618287182881828918290182911829218293182941829518296182971829818299183001830118302183031830418305183061830718308183091831018311183121831318314183151831618317183181831918320183211832218323183241832518326183271832818329183301833118332183331833418335183361833718338183391834018341183421834318344183451834618347183481834918350183511835218353183541835518356183571835818359183601836118362183631836418365183661836718368183691837018371183721837318374183751837618377183781837918380183811838218383183841838518386183871838818389183901839118392183931839418395183961839718398183991840018401184021840318404184051840618407184081840918410184111841218413184141841518416184171841818419184201842118422184231842418425184261842718428184291843018431184321843318434184351843618437184381843918440184411844218443184441844518446184471844818449184501845118452184531845418455184561845718458184591846018461184621846318464184651846618467184681846918470184711847218473184741847518476184771847818479184801848118482184831848418485184861848718488184891849018491184921849318494184951849618497184981849918500185011850218503185041850518506185071850818509185101851118512185131851418515185161851718518185191852018521185221852318524185251852618527185281852918530185311853218533185341853518536185371853818539185401854118542185431854418545185461854718548185491855018551185521855318554185551855618557185581855918560185611856218563185641856518566185671856818569185701857118572185731857418575185761857718578185791858018581185821858318584185851858618587185881858918590185911859218593185941859518596185971859818599186001860118602186031860418605186061860718608186091861018611186121861318614186151861618617186181861918620186211862218623186241862518626186271862818629186301863118632186331863418635186361863718638186391864018641186421864318644186451864618647186481864918650186511865218653186541865518656186571865818659186601866118662186631866418665186661866718668186691867018671186721867318674186751867618677186781867918680186811868218683186841868518686186871868818689186901869118692186931869418695186961869718698186991870018701187021870318704187051870618707187081870918710187111871218713187141871518716187171871818719187201872118722187231872418725187261872718728187291873018731187321873318734187351873618737187381873918740187411874218743187441874518746187471874818749187501875118752187531875418755187561875718758187591876018761187621876318764187651876618767187681876918770187711877218773187741877518776187771877818779187801878118782187831878418785187861878718788187891879018791187921879318794187951879618797187981879918800188011880218803188041880518806188071880818809188101881118812188131881418815188161881718818188191882018821188221882318824188251882618827188281882918830188311883218833188341883518836188371883818839188401884118842188431884418845188461884718848188491885018851188521885318854188551885618857188581885918860188611886218863188641886518866188671886818869188701887118872188731887418875188761887718878188791888018881188821888318884
  1. #! /bin/sh
  2. # Guess values for system-dependent variables and create Makefiles.
  3. # Generated by GNU Autoconf 2.69 for neon 0.30.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.30.2'
  549. PACKAGE_STRING='neon 0.30.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_CONFIG
  647. NEON_SUPPORTS_SSL
  648. NE_FLAG_TS_SSL
  649. GNUTLS_CONFIG
  650. NE_FLAG_SSL
  651. PKG_CONFIG
  652. NE_FLAG_ZLIB
  653. NE_FLAG_IPV6
  654. LIBOBJS
  655. NE_FLAG_LFS
  656. SET_MAKE
  657. EGREP
  658. GREP
  659. CPP
  660. OBJEXT
  661. EXEEXT
  662. ac_ct_CC
  663. CPPFLAGS
  664. LDFLAGS
  665. CFLAGS
  666. CC
  667. INSTALL_DATA
  668. INSTALL_SCRIPT
  669. INSTALL_PROGRAM
  670. target_alias
  671. host_alias
  672. build_alias
  673. LIBS
  674. ECHO_T
  675. ECHO_N
  676. ECHO_C
  677. DEFS
  678. mandir
  679. localedir
  680. libdir
  681. psdir
  682. pdfdir
  683. dvidir
  684. htmldir
  685. infodir
  686. docdir
  687. oldincludedir
  688. includedir
  689. localstatedir
  690. sharedstatedir
  691. sysconfdir
  692. datadir
  693. datarootdir
  694. libexecdir
  695. sbindir
  696. bindir
  697. program_transform_name
  698. prefix
  699. exec_prefix
  700. PACKAGE_URL
  701. PACKAGE_BUGREPORT
  702. PACKAGE_STRING
  703. PACKAGE_VERSION
  704. PACKAGE_TARNAME
  705. PACKAGE_NAME
  706. PATH_SEPARATOR
  707. SHELL'
  708. ac_subst_files=''
  709. ac_user_opts='
  710. enable_option_checking
  711. with_libs
  712. enable_webdav
  713. with_zlib
  714. with_ssl
  715. with_egd
  716. with_pakchois
  717. with_ca_bundle
  718. enable_threadsafe_ssl
  719. with_gssapi
  720. with_libproxy
  721. enable_shared
  722. enable_static
  723. with_pic
  724. enable_fast_install
  725. with_aix_soname
  726. with_gnu_ld
  727. with_sysroot
  728. enable_libtool_lock
  729. with_libxml2
  730. with_expat
  731. enable_nls
  732. enable_debug
  733. enable_warnings
  734. enable_memleak
  735. enable_tests_install
  736. enable_ld_version_script
  737. '
  738. ac_precious_vars='build_alias
  739. host_alias
  740. target_alias
  741. CC
  742. CFLAGS
  743. LDFLAGS
  744. LIBS
  745. CPPFLAGS
  746. CPP
  747. LT_SYS_LIBRARY_PATH'
  748. # Initialize some variables set by options.
  749. ac_init_help=
  750. ac_init_version=false
  751. ac_unrecognized_opts=
  752. ac_unrecognized_sep=
  753. # The variables have the same names as the options, with
  754. # dashes changed to underlines.
  755. cache_file=/dev/null
  756. exec_prefix=NONE
  757. no_create=
  758. no_recursion=
  759. prefix=NONE
  760. program_prefix=NONE
  761. program_suffix=NONE
  762. program_transform_name=s,x,x,
  763. silent=
  764. site=
  765. srcdir=
  766. verbose=
  767. x_includes=NONE
  768. x_libraries=NONE
  769. # Installation directory options.
  770. # These are left unexpanded so users can "make install exec_prefix=/foo"
  771. # and all the variables that are supposed to be based on exec_prefix
  772. # by default will actually change.
  773. # Use braces instead of parens because sh, perl, etc. also accept them.
  774. # (The list follows the same order as the GNU Coding Standards.)
  775. bindir='${exec_prefix}/bin'
  776. sbindir='${exec_prefix}/sbin'
  777. libexecdir='${exec_prefix}/libexec'
  778. datarootdir='${prefix}/share'
  779. datadir='${datarootdir}'
  780. sysconfdir='${prefix}/etc'
  781. sharedstatedir='${prefix}/com'
  782. localstatedir='${prefix}/var'
  783. includedir='${prefix}/include'
  784. oldincludedir='/usr/include'
  785. docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
  786. infodir='${datarootdir}/info'
  787. htmldir='${docdir}'
  788. dvidir='${docdir}'
  789. pdfdir='${docdir}'
  790. psdir='${docdir}'
  791. libdir='${exec_prefix}/lib'
  792. localedir='${datarootdir}/locale'
  793. mandir='${datarootdir}/man'
  794. ac_prev=
  795. ac_dashdash=
  796. for ac_option
  797. do
  798. # If the previous option needs an argument, assign it.
  799. if test -n "$ac_prev"; then
  800. eval $ac_prev=\$ac_option
  801. ac_prev=
  802. continue
  803. fi
  804. case $ac_option in
  805. *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
  806. *=) ac_optarg= ;;
  807. *) ac_optarg=yes ;;
  808. esac
  809. # Accept the important Cygnus configure options, so we can diagnose typos.
  810. case $ac_dashdash$ac_option in
  811. --)
  812. ac_dashdash=yes ;;
  813. -bindir | --bindir | --bindi | --bind | --bin | --bi)
  814. ac_prev=bindir ;;
  815. -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
  816. bindir=$ac_optarg ;;
  817. -build | --build | --buil | --bui | --bu)
  818. ac_prev=build_alias ;;
  819. -build=* | --build=* | --buil=* | --bui=* | --bu=*)
  820. build_alias=$ac_optarg ;;
  821. -cache-file | --cache-file | --cache-fil | --cache-fi \
  822. | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
  823. ac_prev=cache_file ;;
  824. -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
  825. | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
  826. cache_file=$ac_optarg ;;
  827. --config-cache | -C)
  828. cache_file=config.cache ;;
  829. -datadir | --datadir | --datadi | --datad)
  830. ac_prev=datadir ;;
  831. -datadir=* | --datadir=* | --datadi=* | --datad=*)
  832. datadir=$ac_optarg ;;
  833. -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
  834. | --dataroo | --dataro | --datar)
  835. ac_prev=datarootdir ;;
  836. -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
  837. | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
  838. datarootdir=$ac_optarg ;;
  839. -disable-* | --disable-*)
  840. ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
  841. # Reject names that are not valid shell variable names.
  842. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  843. as_fn_error $? "invalid feature name: $ac_useropt"
  844. ac_useropt_orig=$ac_useropt
  845. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  846. case $ac_user_opts in
  847. *"
  848. "enable_$ac_useropt"
  849. "*) ;;
  850. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
  851. ac_unrecognized_sep=', ';;
  852. esac
  853. eval enable_$ac_useropt=no ;;
  854. -docdir | --docdir | --docdi | --doc | --do)
  855. ac_prev=docdir ;;
  856. -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
  857. docdir=$ac_optarg ;;
  858. -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
  859. ac_prev=dvidir ;;
  860. -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
  861. dvidir=$ac_optarg ;;
  862. -enable-* | --enable-*)
  863. ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
  864. # Reject names that are not valid shell variable names.
  865. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  866. as_fn_error $? "invalid feature name: $ac_useropt"
  867. ac_useropt_orig=$ac_useropt
  868. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  869. case $ac_user_opts in
  870. *"
  871. "enable_$ac_useropt"
  872. "*) ;;
  873. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
  874. ac_unrecognized_sep=', ';;
  875. esac
  876. eval enable_$ac_useropt=\$ac_optarg ;;
  877. -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
  878. | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
  879. | --exec | --exe | --ex)
  880. ac_prev=exec_prefix ;;
  881. -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
  882. | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
  883. | --exec=* | --exe=* | --ex=*)
  884. exec_prefix=$ac_optarg ;;
  885. -gas | --gas | --ga | --g)
  886. # Obsolete; use --with-gas.
  887. with_gas=yes ;;
  888. -help | --help | --hel | --he | -h)
  889. ac_init_help=long ;;
  890. -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
  891. ac_init_help=recursive ;;
  892. -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
  893. ac_init_help=short ;;
  894. -host | --host | --hos | --ho)
  895. ac_prev=host_alias ;;
  896. -host=* | --host=* | --hos=* | --ho=*)
  897. host_alias=$ac_optarg ;;
  898. -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
  899. ac_prev=htmldir ;;
  900. -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
  901. | --ht=*)
  902. htmldir=$ac_optarg ;;
  903. -includedir | --includedir | --includedi | --included | --include \
  904. | --includ | --inclu | --incl | --inc)
  905. ac_prev=includedir ;;
  906. -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
  907. | --includ=* | --inclu=* | --incl=* | --inc=*)
  908. includedir=$ac_optarg ;;
  909. -infodir | --infodir | --infodi | --infod | --info | --inf)
  910. ac_prev=infodir ;;
  911. -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
  912. infodir=$ac_optarg ;;
  913. -libdir | --libdir | --libdi | --libd)
  914. ac_prev=libdir ;;
  915. -libdir=* | --libdir=* | --libdi=* | --libd=*)
  916. libdir=$ac_optarg ;;
  917. -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
  918. | --libexe | --libex | --libe)
  919. ac_prev=libexecdir ;;
  920. -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
  921. | --libexe=* | --libex=* | --libe=*)
  922. libexecdir=$ac_optarg ;;
  923. -localedir | --localedir | --localedi | --localed | --locale)
  924. ac_prev=localedir ;;
  925. -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
  926. localedir=$ac_optarg ;;
  927. -localstatedir | --localstatedir | --localstatedi | --localstated \
  928. | --localstate | --localstat | --localsta | --localst | --locals)
  929. ac_prev=localstatedir ;;
  930. -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
  931. | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
  932. localstatedir=$ac_optarg ;;
  933. -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
  934. ac_prev=mandir ;;
  935. -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
  936. mandir=$ac_optarg ;;
  937. -nfp | --nfp | --nf)
  938. # Obsolete; use --without-fp.
  939. with_fp=no ;;
  940. -no-create | --no-create | --no-creat | --no-crea | --no-cre \
  941. | --no-cr | --no-c | -n)
  942. no_create=yes ;;
  943. -no-recursion | --no-recursion | --no-recursio | --no-recursi \
  944. | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
  945. no_recursion=yes ;;
  946. -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
  947. | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
  948. | --oldin | --oldi | --old | --ol | --o)
  949. ac_prev=oldincludedir ;;
  950. -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
  951. | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
  952. | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
  953. oldincludedir=$ac_optarg ;;
  954. -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
  955. ac_prev=prefix ;;
  956. -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
  957. prefix=$ac_optarg ;;
  958. -program-prefix | --program-prefix | --program-prefi | --program-pref \
  959. | --program-pre | --program-pr | --program-p)
  960. ac_prev=program_prefix ;;
  961. -program-prefix=* | --program-prefix=* | --program-prefi=* \
  962. | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
  963. program_prefix=$ac_optarg ;;
  964. -program-suffix | --program-suffix | --program-suffi | --program-suff \
  965. | --program-suf | --program-su | --program-s)
  966. ac_prev=program_suffix ;;
  967. -program-suffix=* | --program-suffix=* | --program-suffi=* \
  968. | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
  969. program_suffix=$ac_optarg ;;
  970. -program-transform-name | --program-transform-name \
  971. | --program-transform-nam | --program-transform-na \
  972. | --program-transform-n | --program-transform- \
  973. | --program-transform | --program-transfor \
  974. | --program-transfo | --program-transf \
  975. | --program-trans | --program-tran \
  976. | --progr-tra | --program-tr | --program-t)
  977. ac_prev=program_transform_name ;;
  978. -program-transform-name=* | --program-transform-name=* \
  979. | --program-transform-nam=* | --program-transform-na=* \
  980. | --program-transform-n=* | --program-transform-=* \
  981. | --program-transform=* | --program-transfor=* \
  982. | --program-transfo=* | --program-transf=* \
  983. | --program-trans=* | --program-tran=* \
  984. | --progr-tra=* | --program-tr=* | --program-t=*)
  985. program_transform_name=$ac_optarg ;;
  986. -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
  987. ac_prev=pdfdir ;;
  988. -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
  989. pdfdir=$ac_optarg ;;
  990. -psdir | --psdir | --psdi | --psd | --ps)
  991. ac_prev=psdir ;;
  992. -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
  993. psdir=$ac_optarg ;;
  994. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  995. | -silent | --silent | --silen | --sile | --sil)
  996. silent=yes ;;
  997. -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
  998. ac_prev=sbindir ;;
  999. -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
  1000. | --sbi=* | --sb=*)
  1001. sbindir=$ac_optarg ;;
  1002. -sharedstatedir | --sharedstatedir | --sharedstatedi \
  1003. | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
  1004. | --sharedst | --shareds | --shared | --share | --shar \
  1005. | --sha | --sh)
  1006. ac_prev=sharedstatedir ;;
  1007. -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
  1008. | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
  1009. | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
  1010. | --sha=* | --sh=*)
  1011. sharedstatedir=$ac_optarg ;;
  1012. -site | --site | --sit)
  1013. ac_prev=site ;;
  1014. -site=* | --site=* | --sit=*)
  1015. site=$ac_optarg ;;
  1016. -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
  1017. ac_prev=srcdir ;;
  1018. -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
  1019. srcdir=$ac_optarg ;;
  1020. -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
  1021. | --syscon | --sysco | --sysc | --sys | --sy)
  1022. ac_prev=sysconfdir ;;
  1023. -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
  1024. | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
  1025. sysconfdir=$ac_optarg ;;
  1026. -target | --target | --targe | --targ | --tar | --ta | --t)
  1027. ac_prev=target_alias ;;
  1028. -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
  1029. target_alias=$ac_optarg ;;
  1030. -v | -verbose | --verbose | --verbos | --verbo | --verb)
  1031. verbose=yes ;;
  1032. -version | --version | --versio | --versi | --vers | -V)
  1033. ac_init_version=: ;;
  1034. -with-* | --with-*)
  1035. ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
  1036. # Reject names that are not valid shell variable names.
  1037. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  1038. as_fn_error $? "invalid package name: $ac_useropt"
  1039. ac_useropt_orig=$ac_useropt
  1040. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  1041. case $ac_user_opts in
  1042. *"
  1043. "with_$ac_useropt"
  1044. "*) ;;
  1045. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
  1046. ac_unrecognized_sep=', ';;
  1047. esac
  1048. eval with_$ac_useropt=\$ac_optarg ;;
  1049. -without-* | --without-*)
  1050. ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
  1051. # Reject names that are not valid shell variable names.
  1052. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  1053. as_fn_error $? "invalid package name: $ac_useropt"
  1054. ac_useropt_orig=$ac_useropt
  1055. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  1056. case $ac_user_opts in
  1057. *"
  1058. "with_$ac_useropt"
  1059. "*) ;;
  1060. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
  1061. ac_unrecognized_sep=', ';;
  1062. esac
  1063. eval with_$ac_useropt=no ;;
  1064. --x)
  1065. # Obsolete; use --with-x.
  1066. with_x=yes ;;
  1067. -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
  1068. | --x-incl | --x-inc | --x-in | --x-i)
  1069. ac_prev=x_includes ;;
  1070. -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
  1071. | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
  1072. x_includes=$ac_optarg ;;
  1073. -x-libraries | --x-libraries | --x-librarie | --x-librari \
  1074. | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
  1075. ac_prev=x_libraries ;;
  1076. -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
  1077. | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
  1078. x_libraries=$ac_optarg ;;
  1079. -*) as_fn_error $? "unrecognized option: \`$ac_option'
  1080. Try \`$0 --help' for more information"
  1081. ;;
  1082. *=*)
  1083. ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
  1084. # Reject names that are not valid shell variable names.
  1085. case $ac_envvar in #(
  1086. '' | [0-9]* | *[!_$as_cr_alnum]* )
  1087. as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
  1088. esac
  1089. eval $ac_envvar=\$ac_optarg
  1090. export $ac_envvar ;;
  1091. *)
  1092. # FIXME: should be removed in autoconf 3.0.
  1093. $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
  1094. expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
  1095. $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
  1096. : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
  1097. ;;
  1098. esac
  1099. done
  1100. if test -n "$ac_prev"; then
  1101. ac_option=--`echo $ac_prev | sed 's/_/-/g'`
  1102. as_fn_error $? "missing argument to $ac_option"
  1103. fi
  1104. if test -n "$ac_unrecognized_opts"; then
  1105. case $enable_option_checking in
  1106. no) ;;
  1107. fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
  1108. *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
  1109. esac
  1110. fi
  1111. # Check all directory arguments for consistency.
  1112. for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
  1113. datadir sysconfdir sharedstatedir localstatedir includedir \
  1114. oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
  1115. libdir localedir mandir
  1116. do
  1117. eval ac_val=\$$ac_var
  1118. # Remove trailing slashes.
  1119. case $ac_val in
  1120. */ )
  1121. ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
  1122. eval $ac_var=\$ac_val;;
  1123. esac
  1124. # Be sure to have absolute directory names.
  1125. case $ac_val in
  1126. [\\/$]* | ?:[\\/]* ) continue;;
  1127. NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
  1128. esac
  1129. as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
  1130. done
  1131. # There might be people who depend on the old broken behavior: `$host'
  1132. # used to hold the argument of --host etc.
  1133. # FIXME: To remove some day.
  1134. build=$build_alias
  1135. host=$host_alias
  1136. target=$target_alias
  1137. # FIXME: To remove some day.
  1138. if test "x$host_alias" != x; then
  1139. if test "x$build_alias" = x; then
  1140. cross_compiling=maybe
  1141. elif test "x$build_alias" != "x$host_alias"; then
  1142. cross_compiling=yes
  1143. fi
  1144. fi
  1145. ac_tool_prefix=
  1146. test -n "$host_alias" && ac_tool_prefix=$host_alias-
  1147. test "$silent" = yes && exec 6>/dev/null
  1148. ac_pwd=`pwd` && test -n "$ac_pwd" &&
  1149. ac_ls_di=`ls -di .` &&
  1150. ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
  1151. as_fn_error $? "working directory cannot be determined"
  1152. test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
  1153. as_fn_error $? "pwd does not report name of working directory"
  1154. # Find the source files, if location was not specified.
  1155. if test -z "$srcdir"; then
  1156. ac_srcdir_defaulted=yes
  1157. # Try the directory containing this script, then the parent directory.
  1158. ac_confdir=`$as_dirname -- "$as_myself" ||
  1159. $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  1160. X"$as_myself" : 'X\(//\)[^/]' \| \
  1161. X"$as_myself" : 'X\(//\)$' \| \
  1162. X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
  1163. $as_echo X"$as_myself" |
  1164. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  1165. s//\1/
  1166. q
  1167. }
  1168. /^X\(\/\/\)[^/].*/{
  1169. s//\1/
  1170. q
  1171. }
  1172. /^X\(\/\/\)$/{
  1173. s//\1/
  1174. q
  1175. }
  1176. /^X\(\/\).*/{
  1177. s//\1/
  1178. q
  1179. }
  1180. s/.*/./; q'`
  1181. srcdir=$ac_confdir
  1182. if test ! -r "$srcdir/$ac_unique_file"; then
  1183. srcdir=..
  1184. fi
  1185. else
  1186. ac_srcdir_defaulted=no
  1187. fi
  1188. if test ! -r "$srcdir/$ac_unique_file"; then
  1189. test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
  1190. as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
  1191. fi
  1192. ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
  1193. ac_abs_confdir=`(
  1194. cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
  1195. pwd)`
  1196. # When building in place, set srcdir=.
  1197. if test "$ac_abs_confdir" = "$ac_pwd"; then
  1198. srcdir=.
  1199. fi
  1200. # Remove unnecessary trailing slashes from srcdir.
  1201. # Double slashes in file names in object file debugging info
  1202. # mess up M-x gdb in Emacs.
  1203. case $srcdir in
  1204. */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
  1205. esac
  1206. for ac_var in $ac_precious_vars; do
  1207. eval ac_env_${ac_var}_set=\${${ac_var}+set}
  1208. eval ac_env_${ac_var}_value=\$${ac_var}
  1209. eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
  1210. eval ac_cv_env_${ac_var}_value=\$${ac_var}
  1211. done
  1212. #
  1213. # Report the --help message.
  1214. #
  1215. if test "$ac_init_help" = "long"; then
  1216. # Omit some internal or obsolete options to make the list less imposing.
  1217. # This message is too long to be a string in the A/UX 3.1 sh.
  1218. cat <<_ACEOF
  1219. \`configure' configures neon 0.30.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.30.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.30.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.30.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=30
  2531. NE_VERSION_PATCH=2
  2532. NE_VERSION_TAG=
  2533. # 0.30.x is backwards-compatible to 0.27.x, so AGE=3
  2534. NE_LIBTOOL_VERSINFO="30:${NE_VERSION_PATCH}:3"
  2535. NEON_VERSION="${NE_VERSION_MAJOR}.${NE_VERSION_MINOR}.${NE_VERSION_PATCH}${NE_VERSION_TAG}"
  2536. cat >>confdefs.h <<_ACEOF
  2537. #define NEON_VERSION "${NEON_VERSION}"
  2538. _ACEOF
  2539. cat >>confdefs.h <<_ACEOF
  2540. #define NE_VERSION_MAJOR (${NE_VERSION_MAJOR})
  2541. _ACEOF
  2542. cat >>confdefs.h <<_ACEOF
  2543. #define NE_VERSION_MINOR (${NE_VERSION_MINOR})
  2544. _ACEOF
  2545. cat >>confdefs.h <<_ACEOF
  2546. #define NE_VERSION_PATCH (${NE_VERSION_PATCH})
  2547. _ACEOF
  2548. ac_ext=c
  2549. ac_cpp='$CPP $CPPFLAGS'
  2550. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  2551. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  2552. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  2553. if test -n "$ac_tool_prefix"; then
  2554. # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
  2555. set dummy ${ac_tool_prefix}gcc; ac_word=$2
  2556. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2557. $as_echo_n "checking for $ac_word... " >&6; }
  2558. if ${ac_cv_prog_CC+:} false; then :
  2559. $as_echo_n "(cached) " >&6
  2560. else
  2561. if test -n "$CC"; then
  2562. ac_cv_prog_CC="$CC" # Let the user override the test.
  2563. else
  2564. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2565. for as_dir in $PATH
  2566. do
  2567. IFS=$as_save_IFS
  2568. test -z "$as_dir" && as_dir=.
  2569. for ac_exec_ext in '' $ac_executable_extensions; do
  2570. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  2571. ac_cv_prog_CC="${ac_tool_prefix}gcc"
  2572. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2573. break 2
  2574. fi
  2575. done
  2576. done
  2577. IFS=$as_save_IFS
  2578. fi
  2579. fi
  2580. CC=$ac_cv_prog_CC
  2581. if test -n "$CC"; then
  2582. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  2583. $as_echo "$CC" >&6; }
  2584. else
  2585. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2586. $as_echo "no" >&6; }
  2587. fi
  2588. fi
  2589. if test -z "$ac_cv_prog_CC"; then
  2590. ac_ct_CC=$CC
  2591. # Extract the first word of "gcc", so it can be a program name with args.
  2592. set dummy gcc; ac_word=$2
  2593. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2594. $as_echo_n "checking for $ac_word... " >&6; }
  2595. if ${ac_cv_prog_ac_ct_CC+:} false; then :
  2596. $as_echo_n "(cached) " >&6
  2597. else
  2598. if test -n "$ac_ct_CC"; then
  2599. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  2600. else
  2601. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2602. for as_dir in $PATH
  2603. do
  2604. IFS=$as_save_IFS
  2605. test -z "$as_dir" && as_dir=.
  2606. for ac_exec_ext in '' $ac_executable_extensions; do
  2607. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  2608. ac_cv_prog_ac_ct_CC="gcc"
  2609. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2610. break 2
  2611. fi
  2612. done
  2613. done
  2614. IFS=$as_save_IFS
  2615. fi
  2616. fi
  2617. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  2618. if test -n "$ac_ct_CC"; then
  2619. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
  2620. $as_echo "$ac_ct_CC" >&6; }
  2621. else
  2622. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2623. $as_echo "no" >&6; }
  2624. fi
  2625. if test "x$ac_ct_CC" = x; then
  2626. CC=""
  2627. else
  2628. case $cross_compiling:$ac_tool_warned in
  2629. yes:)
  2630. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  2631. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  2632. ac_tool_warned=yes ;;
  2633. esac
  2634. CC=$ac_ct_CC
  2635. fi
  2636. else
  2637. CC="$ac_cv_prog_CC"
  2638. fi
  2639. if test -z "$CC"; then
  2640. if test -n "$ac_tool_prefix"; then
  2641. # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
  2642. set dummy ${ac_tool_prefix}cc; ac_word=$2
  2643. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2644. $as_echo_n "checking for $ac_word... " >&6; }
  2645. if ${ac_cv_prog_CC+:} false; then :
  2646. $as_echo_n "(cached) " >&6
  2647. else
  2648. if test -n "$CC"; then
  2649. ac_cv_prog_CC="$CC" # Let the user override the test.
  2650. else
  2651. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2652. for as_dir in $PATH
  2653. do
  2654. IFS=$as_save_IFS
  2655. test -z "$as_dir" && as_dir=.
  2656. for ac_exec_ext in '' $ac_executable_extensions; do
  2657. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  2658. ac_cv_prog_CC="${ac_tool_prefix}cc"
  2659. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2660. break 2
  2661. fi
  2662. done
  2663. done
  2664. IFS=$as_save_IFS
  2665. fi
  2666. fi
  2667. CC=$ac_cv_prog_CC
  2668. if test -n "$CC"; then
  2669. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  2670. $as_echo "$CC" >&6; }
  2671. else
  2672. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2673. $as_echo "no" >&6; }
  2674. fi
  2675. fi
  2676. fi
  2677. if test -z "$CC"; then
  2678. # Extract the first word of "cc", so it can be a program name with args.
  2679. set dummy cc; ac_word=$2
  2680. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2681. $as_echo_n "checking for $ac_word... " >&6; }
  2682. if ${ac_cv_prog_CC+:} false; then :
  2683. $as_echo_n "(cached) " >&6
  2684. else
  2685. if test -n "$CC"; then
  2686. ac_cv_prog_CC="$CC" # Let the user override the test.
  2687. else
  2688. ac_prog_rejected=no
  2689. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2690. for as_dir in $PATH
  2691. do
  2692. IFS=$as_save_IFS
  2693. test -z "$as_dir" && as_dir=.
  2694. for ac_exec_ext in '' $ac_executable_extensions; do
  2695. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  2696. if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
  2697. ac_prog_rejected=yes
  2698. continue
  2699. fi
  2700. ac_cv_prog_CC="cc"
  2701. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2702. break 2
  2703. fi
  2704. done
  2705. done
  2706. IFS=$as_save_IFS
  2707. if test $ac_prog_rejected = yes; then
  2708. # We found a bogon in the path, so make sure we never use it.
  2709. set dummy $ac_cv_prog_CC
  2710. shift
  2711. if test $# != 0; then
  2712. # We chose a different compiler from the bogus one.
  2713. # However, it has the same basename, so the bogon will be chosen
  2714. # first if we set CC to just the basename; use the full file name.
  2715. shift
  2716. ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
  2717. fi
  2718. fi
  2719. fi
  2720. fi
  2721. CC=$ac_cv_prog_CC
  2722. if test -n "$CC"; then
  2723. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  2724. $as_echo "$CC" >&6; }
  2725. else
  2726. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2727. $as_echo "no" >&6; }
  2728. fi
  2729. fi
  2730. if test -z "$CC"; then
  2731. if test -n "$ac_tool_prefix"; then
  2732. for ac_prog in cl.exe
  2733. do
  2734. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  2735. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  2736. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2737. $as_echo_n "checking for $ac_word... " >&6; }
  2738. if ${ac_cv_prog_CC+:} false; then :
  2739. $as_echo_n "(cached) " >&6
  2740. else
  2741. if test -n "$CC"; then
  2742. ac_cv_prog_CC="$CC" # Let the user override the test.
  2743. else
  2744. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2745. for as_dir in $PATH
  2746. do
  2747. IFS=$as_save_IFS
  2748. test -z "$as_dir" && as_dir=.
  2749. for ac_exec_ext in '' $ac_executable_extensions; do
  2750. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  2751. ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
  2752. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2753. break 2
  2754. fi
  2755. done
  2756. done
  2757. IFS=$as_save_IFS
  2758. fi
  2759. fi
  2760. CC=$ac_cv_prog_CC
  2761. if test -n "$CC"; then
  2762. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  2763. $as_echo "$CC" >&6; }
  2764. else
  2765. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2766. $as_echo "no" >&6; }
  2767. fi
  2768. test -n "$CC" && break
  2769. done
  2770. fi
  2771. if test -z "$CC"; then
  2772. ac_ct_CC=$CC
  2773. for ac_prog in cl.exe
  2774. do
  2775. # Extract the first word of "$ac_prog", so it can be a program name with args.
  2776. set dummy $ac_prog; ac_word=$2
  2777. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2778. $as_echo_n "checking for $ac_word... " >&6; }
  2779. if ${ac_cv_prog_ac_ct_CC+:} false; then :
  2780. $as_echo_n "(cached) " >&6
  2781. else
  2782. if test -n "$ac_ct_CC"; then
  2783. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  2784. else
  2785. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2786. for as_dir in $PATH
  2787. do
  2788. IFS=$as_save_IFS
  2789. test -z "$as_dir" && as_dir=.
  2790. for ac_exec_ext in '' $ac_executable_extensions; do
  2791. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  2792. ac_cv_prog_ac_ct_CC="$ac_prog"
  2793. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2794. break 2
  2795. fi
  2796. done
  2797. done
  2798. IFS=$as_save_IFS
  2799. fi
  2800. fi
  2801. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  2802. if test -n "$ac_ct_CC"; then
  2803. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
  2804. $as_echo "$ac_ct_CC" >&6; }
  2805. else
  2806. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2807. $as_echo "no" >&6; }
  2808. fi
  2809. test -n "$ac_ct_CC" && break
  2810. done
  2811. if test "x$ac_ct_CC" = x; then
  2812. CC=""
  2813. else
  2814. case $cross_compiling:$ac_tool_warned in
  2815. yes:)
  2816. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  2817. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  2818. ac_tool_warned=yes ;;
  2819. esac
  2820. CC=$ac_ct_CC
  2821. fi
  2822. fi
  2823. fi
  2824. test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  2825. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  2826. as_fn_error $? "no acceptable C compiler found in \$PATH
  2827. See \`config.log' for more details" "$LINENO" 5; }
  2828. # Provide some information about the compiler.
  2829. $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
  2830. set X $ac_compile
  2831. ac_compiler=$2
  2832. for ac_option in --version -v -V -qversion; do
  2833. { { ac_try="$ac_compiler $ac_option >&5"
  2834. case "(($ac_try" in
  2835. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2836. *) ac_try_echo=$ac_try;;
  2837. esac
  2838. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  2839. $as_echo "$ac_try_echo"; } >&5
  2840. (eval "$ac_compiler $ac_option >&5") 2>conftest.err
  2841. ac_status=$?
  2842. if test -s conftest.err; then
  2843. sed '10a\
  2844. ... rest of stderr output deleted ...
  2845. 10q' conftest.err >conftest.er1
  2846. cat conftest.er1 >&5
  2847. fi
  2848. rm -f conftest.er1 conftest.err
  2849. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  2850. test $ac_status = 0; }
  2851. done
  2852. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2853. /* end confdefs.h. */
  2854. int
  2855. main ()
  2856. {
  2857. ;
  2858. return 0;
  2859. }
  2860. _ACEOF
  2861. ac_clean_files_save=$ac_clean_files
  2862. ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
  2863. # Try to create an executable without -o first, disregard a.out.
  2864. # It will help us diagnose broken compilers, and finding out an intuition
  2865. # of exeext.
  2866. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
  2867. $as_echo_n "checking whether the C compiler works... " >&6; }
  2868. ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
  2869. # The possible output files:
  2870. ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
  2871. ac_rmfiles=
  2872. for ac_file in $ac_files
  2873. do
  2874. case $ac_file in
  2875. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
  2876. * ) ac_rmfiles="$ac_rmfiles $ac_file";;
  2877. esac
  2878. done
  2879. rm -f $ac_rmfiles
  2880. if { { ac_try="$ac_link_default"
  2881. case "(($ac_try" in
  2882. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2883. *) ac_try_echo=$ac_try;;
  2884. esac
  2885. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  2886. $as_echo "$ac_try_echo"; } >&5
  2887. (eval "$ac_link_default") 2>&5
  2888. ac_status=$?
  2889. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  2890. test $ac_status = 0; }; then :
  2891. # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
  2892. # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
  2893. # in a Makefile. We should not override ac_cv_exeext if it was cached,
  2894. # so that the user can short-circuit this test for compilers unknown to
  2895. # Autoconf.
  2896. for ac_file in $ac_files ''
  2897. do
  2898. test -f "$ac_file" || continue
  2899. case $ac_file in
  2900. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
  2901. ;;
  2902. [ab].out )
  2903. # We found the default executable, but exeext='' is most
  2904. # certainly right.
  2905. break;;
  2906. *.* )
  2907. if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
  2908. then :; else
  2909. ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
  2910. fi
  2911. # We set ac_cv_exeext here because the later test for it is not
  2912. # safe: cross compilers may not add the suffix if given an `-o'
  2913. # argument, so we may need to know it at that point already.
  2914. # Even if this section looks crufty: it has the advantage of
  2915. # actually working.
  2916. break;;
  2917. * )
  2918. break;;
  2919. esac
  2920. done
  2921. test "$ac_cv_exeext" = no && ac_cv_exeext=
  2922. else
  2923. ac_file=''
  2924. fi
  2925. if test -z "$ac_file"; then :
  2926. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2927. $as_echo "no" >&6; }
  2928. $as_echo "$as_me: failed program was:" >&5
  2929. sed 's/^/| /' conftest.$ac_ext >&5
  2930. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  2931. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  2932. as_fn_error 77 "C compiler cannot create executables
  2933. See \`config.log' for more details" "$LINENO" 5; }
  2934. else
  2935. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  2936. $as_echo "yes" >&6; }
  2937. fi
  2938. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
  2939. $as_echo_n "checking for C compiler default output file name... " >&6; }
  2940. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
  2941. $as_echo "$ac_file" >&6; }
  2942. ac_exeext=$ac_cv_exeext
  2943. rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
  2944. ac_clean_files=$ac_clean_files_save
  2945. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
  2946. $as_echo_n "checking for suffix of executables... " >&6; }
  2947. if { { ac_try="$ac_link"
  2948. case "(($ac_try" in
  2949. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2950. *) ac_try_echo=$ac_try;;
  2951. esac
  2952. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  2953. $as_echo "$ac_try_echo"; } >&5
  2954. (eval "$ac_link") 2>&5
  2955. ac_status=$?
  2956. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  2957. test $ac_status = 0; }; then :
  2958. # If both `conftest.exe' and `conftest' are `present' (well, observable)
  2959. # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
  2960. # work properly (i.e., refer to `conftest.exe'), while it won't with
  2961. # `rm'.
  2962. for ac_file in conftest.exe conftest conftest.*; do
  2963. test -f "$ac_file" || continue
  2964. case $ac_file in
  2965. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
  2966. *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
  2967. break;;
  2968. * ) break;;
  2969. esac
  2970. done
  2971. else
  2972. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  2973. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  2974. as_fn_error $? "cannot compute suffix of executables: cannot compile and link
  2975. See \`config.log' for more details" "$LINENO" 5; }
  2976. fi
  2977. rm -f conftest conftest$ac_cv_exeext
  2978. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
  2979. $as_echo "$ac_cv_exeext" >&6; }
  2980. rm -f conftest.$ac_ext
  2981. EXEEXT=$ac_cv_exeext
  2982. ac_exeext=$EXEEXT
  2983. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2984. /* end confdefs.h. */
  2985. #include <stdio.h>
  2986. int
  2987. main ()
  2988. {
  2989. FILE *f = fopen ("conftest.out", "w");
  2990. return ferror (f) || fclose (f) != 0;
  2991. ;
  2992. return 0;
  2993. }
  2994. _ACEOF
  2995. ac_clean_files="$ac_clean_files conftest.out"
  2996. # Check that the compiler produces executables we can run. If not, either
  2997. # the compiler is broken, or we cross compile.
  2998. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
  2999. $as_echo_n "checking whether we are cross compiling... " >&6; }
  3000. if test "$cross_compiling" != yes; then
  3001. { { ac_try="$ac_link"
  3002. case "(($ac_try" in
  3003. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3004. *) ac_try_echo=$ac_try;;
  3005. esac
  3006. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3007. $as_echo "$ac_try_echo"; } >&5
  3008. (eval "$ac_link") 2>&5
  3009. ac_status=$?
  3010. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3011. test $ac_status = 0; }
  3012. if { ac_try='./conftest$ac_cv_exeext'
  3013. { { case "(($ac_try" in
  3014. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3015. *) ac_try_echo=$ac_try;;
  3016. esac
  3017. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3018. $as_echo "$ac_try_echo"; } >&5
  3019. (eval "$ac_try") 2>&5
  3020. ac_status=$?
  3021. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3022. test $ac_status = 0; }; }; then
  3023. cross_compiling=no
  3024. else
  3025. if test "$cross_compiling" = maybe; then
  3026. cross_compiling=yes
  3027. else
  3028. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  3029. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  3030. as_fn_error $? "cannot run C compiled programs.
  3031. If you meant to cross compile, use \`--host'.
  3032. See \`config.log' for more details" "$LINENO" 5; }
  3033. fi
  3034. fi
  3035. fi
  3036. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
  3037. $as_echo "$cross_compiling" >&6; }
  3038. rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
  3039. ac_clean_files=$ac_clean_files_save
  3040. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
  3041. $as_echo_n "checking for suffix of object files... " >&6; }
  3042. if ${ac_cv_objext+:} false; then :
  3043. $as_echo_n "(cached) " >&6
  3044. else
  3045. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3046. /* end confdefs.h. */
  3047. int
  3048. main ()
  3049. {
  3050. ;
  3051. return 0;
  3052. }
  3053. _ACEOF
  3054. rm -f conftest.o conftest.obj
  3055. if { { ac_try="$ac_compile"
  3056. case "(($ac_try" in
  3057. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3058. *) ac_try_echo=$ac_try;;
  3059. esac
  3060. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3061. $as_echo "$ac_try_echo"; } >&5
  3062. (eval "$ac_compile") 2>&5
  3063. ac_status=$?
  3064. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3065. test $ac_status = 0; }; then :
  3066. for ac_file in conftest.o conftest.obj conftest.*; do
  3067. test -f "$ac_file" || continue;
  3068. case $ac_file in
  3069. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
  3070. *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
  3071. break;;
  3072. esac
  3073. done
  3074. else
  3075. $as_echo "$as_me: failed program was:" >&5
  3076. sed 's/^/| /' conftest.$ac_ext >&5
  3077. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  3078. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  3079. as_fn_error $? "cannot compute suffix of object files: cannot compile
  3080. See \`config.log' for more details" "$LINENO" 5; }
  3081. fi
  3082. rm -f conftest.$ac_cv_objext conftest.$ac_ext
  3083. fi
  3084. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
  3085. $as_echo "$ac_cv_objext" >&6; }
  3086. OBJEXT=$ac_cv_objext
  3087. ac_objext=$OBJEXT
  3088. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
  3089. $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
  3090. if ${ac_cv_c_compiler_gnu+:} false; then :
  3091. $as_echo_n "(cached) " >&6
  3092. else
  3093. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3094. /* end confdefs.h. */
  3095. int
  3096. main ()
  3097. {
  3098. #ifndef __GNUC__
  3099. choke me
  3100. #endif
  3101. ;
  3102. return 0;
  3103. }
  3104. _ACEOF
  3105. if ac_fn_c_try_compile "$LINENO"; then :
  3106. ac_compiler_gnu=yes
  3107. else
  3108. ac_compiler_gnu=no
  3109. fi
  3110. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3111. ac_cv_c_compiler_gnu=$ac_compiler_gnu
  3112. fi
  3113. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
  3114. $as_echo "$ac_cv_c_compiler_gnu" >&6; }
  3115. if test $ac_compiler_gnu = yes; then
  3116. GCC=yes
  3117. else
  3118. GCC=
  3119. fi
  3120. ac_test_CFLAGS=${CFLAGS+set}
  3121. ac_save_CFLAGS=$CFLAGS
  3122. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
  3123. $as_echo_n "checking whether $CC accepts -g... " >&6; }
  3124. if ${ac_cv_prog_cc_g+:} false; then :
  3125. $as_echo_n "(cached) " >&6
  3126. else
  3127. ac_save_c_werror_flag=$ac_c_werror_flag
  3128. ac_c_werror_flag=yes
  3129. ac_cv_prog_cc_g=no
  3130. CFLAGS="-g"
  3131. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3132. /* end confdefs.h. */
  3133. int
  3134. main ()
  3135. {
  3136. ;
  3137. return 0;
  3138. }
  3139. _ACEOF
  3140. if ac_fn_c_try_compile "$LINENO"; then :
  3141. ac_cv_prog_cc_g=yes
  3142. else
  3143. CFLAGS=""
  3144. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3145. /* end confdefs.h. */
  3146. int
  3147. main ()
  3148. {
  3149. ;
  3150. return 0;
  3151. }
  3152. _ACEOF
  3153. if ac_fn_c_try_compile "$LINENO"; then :
  3154. else
  3155. ac_c_werror_flag=$ac_save_c_werror_flag
  3156. CFLAGS="-g"
  3157. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3158. /* end confdefs.h. */
  3159. int
  3160. main ()
  3161. {
  3162. ;
  3163. return 0;
  3164. }
  3165. _ACEOF
  3166. if ac_fn_c_try_compile "$LINENO"; then :
  3167. ac_cv_prog_cc_g=yes
  3168. fi
  3169. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3170. fi
  3171. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3172. fi
  3173. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3174. ac_c_werror_flag=$ac_save_c_werror_flag
  3175. fi
  3176. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
  3177. $as_echo "$ac_cv_prog_cc_g" >&6; }
  3178. if test "$ac_test_CFLAGS" = set; then
  3179. CFLAGS=$ac_save_CFLAGS
  3180. elif test $ac_cv_prog_cc_g = yes; then
  3181. if test "$GCC" = yes; then
  3182. CFLAGS="-g -O2"
  3183. else
  3184. CFLAGS="-g"
  3185. fi
  3186. else
  3187. if test "$GCC" = yes; then
  3188. CFLAGS="-O2"
  3189. else
  3190. CFLAGS=
  3191. fi
  3192. fi
  3193. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
  3194. $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
  3195. if ${ac_cv_prog_cc_c89+:} false; then :
  3196. $as_echo_n "(cached) " >&6
  3197. else
  3198. ac_cv_prog_cc_c89=no
  3199. ac_save_CC=$CC
  3200. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3201. /* end confdefs.h. */
  3202. #include <stdarg.h>
  3203. #include <stdio.h>
  3204. struct stat;
  3205. /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
  3206. struct buf { int x; };
  3207. FILE * (*rcsopen) (struct buf *, struct stat *, int);
  3208. static char *e (p, i)
  3209. char **p;
  3210. int i;
  3211. {
  3212. return p[i];
  3213. }
  3214. static char *f (char * (*g) (char **, int), char **p, ...)
  3215. {
  3216. char *s;
  3217. va_list v;
  3218. va_start (v,p);
  3219. s = g (p, va_arg (v,int));
  3220. va_end (v);
  3221. return s;
  3222. }
  3223. /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
  3224. function prototypes and stuff, but not '\xHH' hex character constants.
  3225. These don't provoke an error unfortunately, instead are silently treated
  3226. as 'x'. The following induces an error, until -std is added to get
  3227. proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
  3228. array size at least. It's necessary to write '\x00'==0 to get something
  3229. that's true only with -std. */
  3230. int osf4_cc_array ['\x00' == 0 ? 1 : -1];
  3231. /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
  3232. inside strings and character constants. */
  3233. #define FOO(x) 'x'
  3234. int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
  3235. int test (int i, double x);
  3236. struct s1 {int (*f) (int a);};
  3237. struct s2 {int (*f) (double a);};
  3238. int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
  3239. int argc;
  3240. char **argv;
  3241. int
  3242. main ()
  3243. {
  3244. return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
  3245. ;
  3246. return 0;
  3247. }
  3248. _ACEOF
  3249. for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
  3250. -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
  3251. do
  3252. CC="$ac_save_CC $ac_arg"
  3253. if ac_fn_c_try_compile "$LINENO"; then :
  3254. ac_cv_prog_cc_c89=$ac_arg
  3255. fi
  3256. rm -f core conftest.err conftest.$ac_objext
  3257. test "x$ac_cv_prog_cc_c89" != "xno" && break
  3258. done
  3259. rm -f conftest.$ac_ext
  3260. CC=$ac_save_CC
  3261. fi
  3262. # AC_CACHE_VAL
  3263. case "x$ac_cv_prog_cc_c89" in
  3264. x)
  3265. { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
  3266. $as_echo "none needed" >&6; } ;;
  3267. xno)
  3268. { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
  3269. $as_echo "unsupported" >&6; } ;;
  3270. *)
  3271. CC="$CC $ac_cv_prog_cc_c89"
  3272. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
  3273. $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
  3274. esac
  3275. if test "x$ac_cv_prog_cc_c89" != xno; then :
  3276. fi
  3277. ac_ext=c
  3278. ac_cpp='$CPP $CPPFLAGS'
  3279. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  3280. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  3281. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  3282. ac_ext=c
  3283. ac_cpp='$CPP $CPPFLAGS'
  3284. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  3285. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  3286. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  3287. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
  3288. $as_echo_n "checking how to run the C preprocessor... " >&6; }
  3289. # On Suns, sometimes $CPP names a directory.
  3290. if test -n "$CPP" && test -d "$CPP"; then
  3291. CPP=
  3292. fi
  3293. if test -z "$CPP"; then
  3294. if ${ac_cv_prog_CPP+:} false; then :
  3295. $as_echo_n "(cached) " >&6
  3296. else
  3297. # Double quotes because CPP needs to be expanded
  3298. for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
  3299. do
  3300. ac_preproc_ok=false
  3301. for ac_c_preproc_warn_flag in '' yes
  3302. do
  3303. # Use a header file that comes with gcc, so configuring glibc
  3304. # with a fresh cross-compiler works.
  3305. # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  3306. # <limits.h> exists even on freestanding compilers.
  3307. # On the NeXT, cc -E runs the code through the compiler's parser,
  3308. # not just through cpp. "Syntax error" is here to catch this case.
  3309. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3310. /* end confdefs.h. */
  3311. #ifdef __STDC__
  3312. # include <limits.h>
  3313. #else
  3314. # include <assert.h>
  3315. #endif
  3316. Syntax error
  3317. _ACEOF
  3318. if ac_fn_c_try_cpp "$LINENO"; then :
  3319. else
  3320. # Broken: fails on valid input.
  3321. continue
  3322. fi
  3323. rm -f conftest.err conftest.i conftest.$ac_ext
  3324. # OK, works on sane cases. Now check whether nonexistent headers
  3325. # can be detected and how.
  3326. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3327. /* end confdefs.h. */
  3328. #include <ac_nonexistent.h>
  3329. _ACEOF
  3330. if ac_fn_c_try_cpp "$LINENO"; then :
  3331. # Broken: success on invalid input.
  3332. continue
  3333. else
  3334. # Passes both tests.
  3335. ac_preproc_ok=:
  3336. break
  3337. fi
  3338. rm -f conftest.err conftest.i conftest.$ac_ext
  3339. done
  3340. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  3341. rm -f conftest.i conftest.err conftest.$ac_ext
  3342. if $ac_preproc_ok; then :
  3343. break
  3344. fi
  3345. done
  3346. ac_cv_prog_CPP=$CPP
  3347. fi
  3348. CPP=$ac_cv_prog_CPP
  3349. else
  3350. ac_cv_prog_CPP=$CPP
  3351. fi
  3352. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
  3353. $as_echo "$CPP" >&6; }
  3354. ac_preproc_ok=false
  3355. for ac_c_preproc_warn_flag in '' yes
  3356. do
  3357. # Use a header file that comes with gcc, so configuring glibc
  3358. # with a fresh cross-compiler works.
  3359. # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  3360. # <limits.h> exists even on freestanding compilers.
  3361. # On the NeXT, cc -E runs the code through the compiler's parser,
  3362. # not just through cpp. "Syntax error" is here to catch this case.
  3363. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3364. /* end confdefs.h. */
  3365. #ifdef __STDC__
  3366. # include <limits.h>
  3367. #else
  3368. # include <assert.h>
  3369. #endif
  3370. Syntax error
  3371. _ACEOF
  3372. if ac_fn_c_try_cpp "$LINENO"; then :
  3373. else
  3374. # Broken: fails on valid input.
  3375. continue
  3376. fi
  3377. rm -f conftest.err conftest.i conftest.$ac_ext
  3378. # OK, works on sane cases. Now check whether nonexistent headers
  3379. # can be detected and how.
  3380. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3381. /* end confdefs.h. */
  3382. #include <ac_nonexistent.h>
  3383. _ACEOF
  3384. if ac_fn_c_try_cpp "$LINENO"; then :
  3385. # Broken: success on invalid input.
  3386. continue
  3387. else
  3388. # Passes both tests.
  3389. ac_preproc_ok=:
  3390. break
  3391. fi
  3392. rm -f conftest.err conftest.i conftest.$ac_ext
  3393. done
  3394. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  3395. rm -f conftest.i conftest.err conftest.$ac_ext
  3396. if $ac_preproc_ok; then :
  3397. else
  3398. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  3399. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  3400. as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
  3401. See \`config.log' for more details" "$LINENO" 5; }
  3402. fi
  3403. ac_ext=c
  3404. ac_cpp='$CPP $CPPFLAGS'
  3405. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  3406. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  3407. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  3408. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
  3409. $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
  3410. if ${ac_cv_path_GREP+:} false; then :
  3411. $as_echo_n "(cached) " >&6
  3412. else
  3413. if test -z "$GREP"; then
  3414. ac_path_GREP_found=false
  3415. # Loop through the user's path and test for each of PROGNAME-LIST
  3416. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3417. for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
  3418. do
  3419. IFS=$as_save_IFS
  3420. test -z "$as_dir" && as_dir=.
  3421. for ac_prog in grep ggrep; do
  3422. for ac_exec_ext in '' $ac_executable_extensions; do
  3423. ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
  3424. as_fn_executable_p "$ac_path_GREP" || continue
  3425. # Check for GNU ac_path_GREP and select it if it is found.
  3426. # Check for GNU $ac_path_GREP
  3427. case `"$ac_path_GREP" --version 2>&1` in
  3428. *GNU*)
  3429. ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
  3430. *)
  3431. ac_count=0
  3432. $as_echo_n 0123456789 >"conftest.in"
  3433. while :
  3434. do
  3435. cat "conftest.in" "conftest.in" >"conftest.tmp"
  3436. mv "conftest.tmp" "conftest.in"
  3437. cp "conftest.in" "conftest.nl"
  3438. $as_echo 'GREP' >> "conftest.nl"
  3439. "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
  3440. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  3441. as_fn_arith $ac_count + 1 && ac_count=$as_val
  3442. if test $ac_count -gt ${ac_path_GREP_max-0}; then
  3443. # Best one so far, save it but keep looking for a better one
  3444. ac_cv_path_GREP="$ac_path_GREP"
  3445. ac_path_GREP_max=$ac_count
  3446. fi
  3447. # 10*(2^10) chars as input seems more than enough
  3448. test $ac_count -gt 10 && break
  3449. done
  3450. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  3451. esac
  3452. $ac_path_GREP_found && break 3
  3453. done
  3454. done
  3455. done
  3456. IFS=$as_save_IFS
  3457. if test -z "$ac_cv_path_GREP"; then
  3458. as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
  3459. fi
  3460. else
  3461. ac_cv_path_GREP=$GREP
  3462. fi
  3463. fi
  3464. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
  3465. $as_echo "$ac_cv_path_GREP" >&6; }
  3466. GREP="$ac_cv_path_GREP"
  3467. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
  3468. $as_echo_n "checking for egrep... " >&6; }
  3469. if ${ac_cv_path_EGREP+:} false; then :
  3470. $as_echo_n "(cached) " >&6
  3471. else
  3472. if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
  3473. then ac_cv_path_EGREP="$GREP -E"
  3474. else
  3475. if test -z "$EGREP"; then
  3476. ac_path_EGREP_found=false
  3477. # Loop through the user's path and test for each of PROGNAME-LIST
  3478. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3479. for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
  3480. do
  3481. IFS=$as_save_IFS
  3482. test -z "$as_dir" && as_dir=.
  3483. for ac_prog in egrep; do
  3484. for ac_exec_ext in '' $ac_executable_extensions; do
  3485. ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
  3486. as_fn_executable_p "$ac_path_EGREP" || continue
  3487. # Check for GNU ac_path_EGREP and select it if it is found.
  3488. # Check for GNU $ac_path_EGREP
  3489. case `"$ac_path_EGREP" --version 2>&1` in
  3490. *GNU*)
  3491. ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
  3492. *)
  3493. ac_count=0
  3494. $as_echo_n 0123456789 >"conftest.in"
  3495. while :
  3496. do
  3497. cat "conftest.in" "conftest.in" >"conftest.tmp"
  3498. mv "conftest.tmp" "conftest.in"
  3499. cp "conftest.in" "conftest.nl"
  3500. $as_echo 'EGREP' >> "conftest.nl"
  3501. "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
  3502. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  3503. as_fn_arith $ac_count + 1 && ac_count=$as_val
  3504. if test $ac_count -gt ${ac_path_EGREP_max-0}; then
  3505. # Best one so far, save it but keep looking for a better one
  3506. ac_cv_path_EGREP="$ac_path_EGREP"
  3507. ac_path_EGREP_max=$ac_count
  3508. fi
  3509. # 10*(2^10) chars as input seems more than enough
  3510. test $ac_count -gt 10 && break
  3511. done
  3512. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  3513. esac
  3514. $ac_path_EGREP_found && break 3
  3515. done
  3516. done
  3517. done
  3518. IFS=$as_save_IFS
  3519. if test -z "$ac_cv_path_EGREP"; then
  3520. as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
  3521. fi
  3522. else
  3523. ac_cv_path_EGREP=$EGREP
  3524. fi
  3525. fi
  3526. fi
  3527. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
  3528. $as_echo "$ac_cv_path_EGREP" >&6; }
  3529. EGREP="$ac_cv_path_EGREP"
  3530. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
  3531. $as_echo_n "checking for ANSI C header files... " >&6; }
  3532. if ${ac_cv_header_stdc+:} false; then :
  3533. $as_echo_n "(cached) " >&6
  3534. else
  3535. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3536. /* end confdefs.h. */
  3537. #include <stdlib.h>
  3538. #include <stdarg.h>
  3539. #include <string.h>
  3540. #include <float.h>
  3541. int
  3542. main ()
  3543. {
  3544. ;
  3545. return 0;
  3546. }
  3547. _ACEOF
  3548. if ac_fn_c_try_compile "$LINENO"; then :
  3549. ac_cv_header_stdc=yes
  3550. else
  3551. ac_cv_header_stdc=no
  3552. fi
  3553. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3554. if test $ac_cv_header_stdc = yes; then
  3555. # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
  3556. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3557. /* end confdefs.h. */
  3558. #include <string.h>
  3559. _ACEOF
  3560. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  3561. $EGREP "memchr" >/dev/null 2>&1; then :
  3562. else
  3563. ac_cv_header_stdc=no
  3564. fi
  3565. rm -f conftest*
  3566. fi
  3567. if test $ac_cv_header_stdc = yes; then
  3568. # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
  3569. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3570. /* end confdefs.h. */
  3571. #include <stdlib.h>
  3572. _ACEOF
  3573. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  3574. $EGREP "free" >/dev/null 2>&1; then :
  3575. else
  3576. ac_cv_header_stdc=no
  3577. fi
  3578. rm -f conftest*
  3579. fi
  3580. if test $ac_cv_header_stdc = yes; then
  3581. # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
  3582. if test "$cross_compiling" = yes; then :
  3583. :
  3584. else
  3585. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3586. /* end confdefs.h. */
  3587. #include <ctype.h>
  3588. #include <stdlib.h>
  3589. #if ((' ' & 0x0FF) == 0x020)
  3590. # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
  3591. # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
  3592. #else
  3593. # define ISLOWER(c) \
  3594. (('a' <= (c) && (c) <= 'i') \
  3595. || ('j' <= (c) && (c) <= 'r') \
  3596. || ('s' <= (c) && (c) <= 'z'))
  3597. # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
  3598. #endif
  3599. #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
  3600. int
  3601. main ()
  3602. {
  3603. int i;
  3604. for (i = 0; i < 256; i++)
  3605. if (XOR (islower (i), ISLOWER (i))
  3606. || toupper (i) != TOUPPER (i))
  3607. return 2;
  3608. return 0;
  3609. }
  3610. _ACEOF
  3611. if ac_fn_c_try_run "$LINENO"; then :
  3612. else
  3613. ac_cv_header_stdc=no
  3614. fi
  3615. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  3616. conftest.$ac_objext conftest.beam conftest.$ac_ext
  3617. fi
  3618. fi
  3619. fi
  3620. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
  3621. $as_echo "$ac_cv_header_stdc" >&6; }
  3622. if test $ac_cv_header_stdc = yes; then
  3623. $as_echo "#define STDC_HEADERS 1" >>confdefs.h
  3624. fi
  3625. # On IRIX 5.3, sys/types and inttypes.h are conflicting.
  3626. for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
  3627. inttypes.h stdint.h unistd.h
  3628. do :
  3629. as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
  3630. ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
  3631. "
  3632. if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
  3633. cat >>confdefs.h <<_ACEOF
  3634. #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
  3635. _ACEOF
  3636. fi
  3637. done
  3638. ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
  3639. if test "x$ac_cv_header_minix_config_h" = xyes; then :
  3640. MINIX=yes
  3641. else
  3642. MINIX=
  3643. fi
  3644. if test "$MINIX" = yes; then
  3645. $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
  3646. $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
  3647. $as_echo "#define _MINIX 1" >>confdefs.h
  3648. fi
  3649. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
  3650. $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
  3651. if ${ac_cv_safe_to_define___extensions__+:} false; then :
  3652. $as_echo_n "(cached) " >&6
  3653. else
  3654. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3655. /* end confdefs.h. */
  3656. # define __EXTENSIONS__ 1
  3657. $ac_includes_default
  3658. int
  3659. main ()
  3660. {
  3661. ;
  3662. return 0;
  3663. }
  3664. _ACEOF
  3665. if ac_fn_c_try_compile "$LINENO"; then :
  3666. ac_cv_safe_to_define___extensions__=yes
  3667. else
  3668. ac_cv_safe_to_define___extensions__=no
  3669. fi
  3670. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3671. fi
  3672. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
  3673. $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
  3674. test $ac_cv_safe_to_define___extensions__ = yes &&
  3675. $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
  3676. $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
  3677. $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
  3678. $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
  3679. $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
  3680. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
  3681. $as_echo_n "checking for inline... " >&6; }
  3682. if ${ac_cv_c_inline+:} false; then :
  3683. $as_echo_n "(cached) " >&6
  3684. else
  3685. ac_cv_c_inline=no
  3686. for ac_kw in inline __inline__ __inline; do
  3687. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3688. /* end confdefs.h. */
  3689. #ifndef __cplusplus
  3690. typedef int foo_t;
  3691. static $ac_kw foo_t static_foo () {return 0; }
  3692. $ac_kw foo_t foo () {return 0; }
  3693. #endif
  3694. _ACEOF
  3695. if ac_fn_c_try_compile "$LINENO"; then :
  3696. ac_cv_c_inline=$ac_kw
  3697. fi
  3698. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3699. test "$ac_cv_c_inline" != no && break
  3700. done
  3701. fi
  3702. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
  3703. $as_echo "$ac_cv_c_inline" >&6; }
  3704. case $ac_cv_c_inline in
  3705. inline | yes) ;;
  3706. *)
  3707. case $ac_cv_c_inline in
  3708. no) ac_val=;;
  3709. *) ac_val=$ac_cv_c_inline;;
  3710. esac
  3711. cat >>confdefs.h <<_ACEOF
  3712. #ifndef __cplusplus
  3713. #define inline $ac_val
  3714. #endif
  3715. _ACEOF
  3716. ;;
  3717. esac
  3718. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
  3719. $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
  3720. if ${ac_cv_c_const+:} false; then :
  3721. $as_echo_n "(cached) " >&6
  3722. else
  3723. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3724. /* end confdefs.h. */
  3725. int
  3726. main ()
  3727. {
  3728. #ifndef __cplusplus
  3729. /* Ultrix mips cc rejects this sort of thing. */
  3730. typedef int charset[2];
  3731. const charset cs = { 0, 0 };
  3732. /* SunOS 4.1.1 cc rejects this. */
  3733. char const *const *pcpcc;
  3734. char **ppc;
  3735. /* NEC SVR4.0.2 mips cc rejects this. */
  3736. struct point {int x, y;};
  3737. static struct point const zero = {0,0};
  3738. /* AIX XL C 1.02.0.0 rejects this.
  3739. It does not let you subtract one const X* pointer from another in
  3740. an arm of an if-expression whose if-part is not a constant
  3741. expression */
  3742. const char *g = "string";
  3743. pcpcc = &g + (g ? g-g : 0);
  3744. /* HPUX 7.0 cc rejects these. */
  3745. ++pcpcc;
  3746. ppc = (char**) pcpcc;
  3747. pcpcc = (char const *const *) ppc;
  3748. { /* SCO 3.2v4 cc rejects this sort of thing. */
  3749. char tx;
  3750. char *t = &tx;
  3751. char const *s = 0 ? (char *) 0 : (char const *) 0;
  3752. *t++ = 0;
  3753. if (s) return 0;
  3754. }
  3755. { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
  3756. int x[] = {25, 17};
  3757. const int *foo = &x[0];
  3758. ++foo;
  3759. }
  3760. { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
  3761. typedef const int *iptr;
  3762. iptr p = 0;
  3763. ++p;
  3764. }
  3765. { /* AIX XL C 1.02.0.0 rejects this sort of thing, saying
  3766. "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
  3767. struct s { int j; const int *ap[3]; } bx;
  3768. struct s *b = &bx; b->j = 5;
  3769. }
  3770. { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
  3771. const int foo = 10;
  3772. if (!foo) return 0;
  3773. }
  3774. return !cs[0] && !zero.x;
  3775. #endif
  3776. ;
  3777. return 0;
  3778. }
  3779. _ACEOF
  3780. if ac_fn_c_try_compile "$LINENO"; then :
  3781. ac_cv_c_const=yes
  3782. else
  3783. ac_cv_c_const=no
  3784. fi
  3785. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3786. fi
  3787. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
  3788. $as_echo "$ac_cv_c_const" >&6; }
  3789. if test $ac_cv_c_const = no; then
  3790. $as_echo "#define const /**/" >>confdefs.h
  3791. fi
  3792. ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
  3793. if test "x$ac_cv_type_size_t" = xyes; then :
  3794. else
  3795. cat >>confdefs.h <<_ACEOF
  3796. #define size_t unsigned int
  3797. _ACEOF
  3798. fi
  3799. ac_fn_c_check_type "$LINENO" "off_t" "ac_cv_type_off_t" "$ac_includes_default"
  3800. if test "x$ac_cv_type_off_t" = xyes; then :
  3801. else
  3802. cat >>confdefs.h <<_ACEOF
  3803. #define off_t long int
  3804. _ACEOF
  3805. fi
  3806. # Check for Darwin, which needs extra cpp and linker flags.
  3807. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uname" >&5
  3808. $as_echo_n "checking for uname... " >&6; }
  3809. if ${ne_cv_os_uname+:} false; then :
  3810. $as_echo_n "(cached) " >&6
  3811. else
  3812. ne_cv_os_uname=`uname -s 2>/dev/null`
  3813. fi
  3814. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ne_cv_os_uname" >&5
  3815. $as_echo "$ne_cv_os_uname" >&6; }
  3816. if test "$ne_cv_os_uname" = "Darwin"; then
  3817. CPPFLAGS="$CPPFLAGS -no-cpp-precomp"
  3818. LDFLAGS="$LDFLAGS -flat_namespace"
  3819. # poll has various issues in various Darwin releases
  3820. if test x${ac_cv_func_poll+set} != xset; then
  3821. ac_cv_func_poll=no
  3822. fi
  3823. fi
  3824. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
  3825. $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
  3826. set x ${MAKE-make}
  3827. ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
  3828. if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
  3829. $as_echo_n "(cached) " >&6
  3830. else
  3831. cat >conftest.make <<\_ACEOF
  3832. SHELL = /bin/sh
  3833. all:
  3834. @echo '@@@%%%=$(MAKE)=@@@%%%'
  3835. _ACEOF
  3836. # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
  3837. case `${MAKE-make} -f conftest.make 2>/dev/null` in
  3838. *@@@%%%=?*=@@@%%%*)
  3839. eval ac_cv_prog_make_${ac_make}_set=yes;;
  3840. *)
  3841. eval ac_cv_prog_make_${ac_make}_set=no;;
  3842. esac
  3843. rm -f conftest.make
  3844. fi
  3845. if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
  3846. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  3847. $as_echo "yes" >&6; }
  3848. SET_MAKE=
  3849. else
  3850. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3851. $as_echo "no" >&6; }
  3852. SET_MAKE="MAKE=${MAKE-make}"
  3853. fi
  3854. # The cast to long int works around a bug in the HP C Compiler
  3855. # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
  3856. # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
  3857. # This bug is HP SR number 8606223364.
  3858. { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of int" >&5
  3859. $as_echo_n "checking size of int... " >&6; }
  3860. if ${ac_cv_sizeof_int+:} false; then :
  3861. $as_echo_n "(cached) " >&6
  3862. else
  3863. if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (int))" "ac_cv_sizeof_int" "$ac_includes_default"; then :
  3864. else
  3865. if test "$ac_cv_type_int" = yes; then
  3866. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  3867. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  3868. as_fn_error 77 "cannot compute sizeof (int)
  3869. See \`config.log' for more details" "$LINENO" 5; }
  3870. else
  3871. ac_cv_sizeof_int=0
  3872. fi
  3873. fi
  3874. fi
  3875. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int" >&5
  3876. $as_echo "$ac_cv_sizeof_int" >&6; }
  3877. cat >>confdefs.h <<_ACEOF
  3878. #define SIZEOF_INT $ac_cv_sizeof_int
  3879. _ACEOF
  3880. # The cast to long int works around a bug in the HP C Compiler
  3881. # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
  3882. # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
  3883. # This bug is HP SR number 8606223364.
  3884. { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long" >&5
  3885. $as_echo_n "checking size of long... " >&6; }
  3886. if ${ac_cv_sizeof_long+:} false; then :
  3887. $as_echo_n "(cached) " >&6
  3888. else
  3889. if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long))" "ac_cv_sizeof_long" "$ac_includes_default"; then :
  3890. else
  3891. if test "$ac_cv_type_long" = yes; then
  3892. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  3893. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  3894. as_fn_error 77 "cannot compute sizeof (long)
  3895. See \`config.log' for more details" "$LINENO" 5; }
  3896. else
  3897. ac_cv_sizeof_long=0
  3898. fi
  3899. fi
  3900. fi
  3901. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5
  3902. $as_echo "$ac_cv_sizeof_long" >&6; }
  3903. cat >>confdefs.h <<_ACEOF
  3904. #define SIZEOF_LONG $ac_cv_sizeof_long
  3905. _ACEOF
  3906. # The cast to long int works around a bug in the HP C Compiler
  3907. # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
  3908. # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
  3909. # This bug is HP SR number 8606223364.
  3910. { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long long" >&5
  3911. $as_echo_n "checking size of long long... " >&6; }
  3912. if ${ac_cv_sizeof_long_long+:} false; then :
  3913. $as_echo_n "(cached) " >&6
  3914. else
  3915. if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long long))" "ac_cv_sizeof_long_long" "$ac_includes_default"; then :
  3916. else
  3917. if test "$ac_cv_type_long_long" = yes; then
  3918. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  3919. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  3920. as_fn_error 77 "cannot compute sizeof (long long)
  3921. See \`config.log' for more details" "$LINENO" 5; }
  3922. else
  3923. ac_cv_sizeof_long_long=0
  3924. fi
  3925. fi
  3926. fi
  3927. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long_long" >&5
  3928. $as_echo "$ac_cv_sizeof_long_long" >&6; }
  3929. cat >>confdefs.h <<_ACEOF
  3930. #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
  3931. _ACEOF
  3932. if test "$GCC" = "yes"; then
  3933. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gcc -Wformat -Werror sanity" >&5
  3934. $as_echo_n "checking for gcc -Wformat -Werror sanity... " >&6; }
  3935. if ${ne_cv_cc_werror+:} false; then :
  3936. $as_echo_n "(cached) " >&6
  3937. else
  3938. # See whether a simple test program will compile without errors.
  3939. ne_save_CPPFLAGS=$CPPFLAGS
  3940. CPPFLAGS="$CPPFLAGS -Wformat -Werror"
  3941. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3942. /* end confdefs.h. */
  3943. #include <sys/types.h>
  3944. #include <stdio.h>
  3945. int
  3946. main ()
  3947. {
  3948. int i = 42; printf("%d", i);
  3949. ;
  3950. return 0;
  3951. }
  3952. _ACEOF
  3953. if ac_fn_c_try_compile "$LINENO"; then :
  3954. ne_cv_cc_werror=yes
  3955. else
  3956. ne_cv_cc_werror=no
  3957. fi
  3958. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3959. CPPFLAGS=$ne_save_CPPFLAGS
  3960. fi
  3961. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ne_cv_cc_werror" >&5
  3962. $as_echo "$ne_cv_cc_werror" >&6; }
  3963. ne_fmt_trycompile=$ne_cv_cc_werror
  3964. else
  3965. ne_fmt_trycompile=no
  3966. fi
  3967. # These checks are done whether or not the bundled neon build
  3968. # is used.
  3969. for ac_header in errno.h stdarg.h string.h stdlib.h sys/uio.h
  3970. do :
  3971. as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
  3972. ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
  3973. if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
  3974. cat >>confdefs.h <<_ACEOF
  3975. #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
  3976. _ACEOF
  3977. fi
  3978. done
  3979. # The cast to long int works around a bug in the HP C Compiler
  3980. # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
  3981. # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
  3982. # This bug is HP SR number 8606223364.
  3983. { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of size_t" >&5
  3984. $as_echo_n "checking size of size_t... " >&6; }
  3985. if ${ac_cv_sizeof_size_t+:} false; then :
  3986. $as_echo_n "(cached) " >&6
  3987. else
  3988. if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (size_t))" "ac_cv_sizeof_size_t" "$ac_includes_default
  3989. "; then :
  3990. else
  3991. if test "$ac_cv_type_size_t" = yes; then
  3992. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  3993. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  3994. as_fn_error 77 "cannot compute sizeof (size_t)
  3995. See \`config.log' for more details" "$LINENO" 5; }
  3996. else
  3997. ac_cv_sizeof_size_t=0
  3998. fi
  3999. fi
  4000. fi
  4001. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_size_t" >&5
  4002. $as_echo "$ac_cv_sizeof_size_t" >&6; }
  4003. cat >>confdefs.h <<_ACEOF
  4004. #define SIZEOF_SIZE_T $ac_cv_sizeof_size_t
  4005. _ACEOF
  4006. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print size_t" >&5
  4007. $as_echo_n "checking how to print size_t... " >&6; }
  4008. if ${ne_cv_fmt_size_t+:} false; then :
  4009. $as_echo_n "(cached) " >&6
  4010. else
  4011. ne_cv_fmt_size_t=none
  4012. if test $ne_fmt_trycompile = yes; then
  4013. oflags="$CPPFLAGS"
  4014. # Consider format string mismatches as errors
  4015. CPPFLAGS="$CPPFLAGS -Wformat -Werror"
  4016. for str in u lu llu; do
  4017. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4018. /* end confdefs.h. */
  4019. #include <sys/types.h>
  4020. #include <stdio.h>
  4021. int
  4022. main ()
  4023. {
  4024. size_t i = 1; printf("%$str", i);
  4025. ;
  4026. return 0;
  4027. }
  4028. _ACEOF
  4029. if ac_fn_c_try_compile "$LINENO"; then :
  4030. ne_cv_fmt_size_t=$str; break
  4031. fi
  4032. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4033. done
  4034. CPPFLAGS=$oflags
  4035. else
  4036. # Best guess. Don't have to be too precise since we probably won't
  4037. # get a warning message anyway.
  4038. case $ac_cv_sizeof_size_t in
  4039. $ac_cv_sizeof_int) ne_cv_fmt_size_t="u" ;;
  4040. $ac_cv_sizeof_long) ne_cv_fmt_size_t="lu" ;;
  4041. $ac_cv_sizeof_long_long) ne_cv_fmt_size_t="llu" ;;
  4042. esac
  4043. fi
  4044. fi
  4045. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ne_cv_fmt_size_t" >&5
  4046. $as_echo "$ne_cv_fmt_size_t" >&6; }
  4047. if test "x$ne_cv_fmt_size_t" = "xnone"; then
  4048. as_fn_error $? "format string for size_t not found" "$LINENO" 5
  4049. fi
  4050. cat >>confdefs.h <<_ACEOF
  4051. #define NE_FMT_SIZE_T "$ne_cv_fmt_size_t"
  4052. _ACEOF
  4053. # The cast to long int works around a bug in the HP C Compiler
  4054. # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
  4055. # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
  4056. # This bug is HP SR number 8606223364.
  4057. { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of off_t" >&5
  4058. $as_echo_n "checking size of off_t... " >&6; }
  4059. if ${ac_cv_sizeof_off_t+:} false; then :
  4060. $as_echo_n "(cached) " >&6
  4061. else
  4062. if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (off_t))" "ac_cv_sizeof_off_t" "$ac_includes_default
  4063. "; then :
  4064. else
  4065. if test "$ac_cv_type_off_t" = yes; then
  4066. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  4067. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  4068. as_fn_error 77 "cannot compute sizeof (off_t)
  4069. See \`config.log' for more details" "$LINENO" 5; }
  4070. else
  4071. ac_cv_sizeof_off_t=0
  4072. fi
  4073. fi
  4074. fi
  4075. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_off_t" >&5
  4076. $as_echo "$ac_cv_sizeof_off_t" >&6; }
  4077. cat >>confdefs.h <<_ACEOF
  4078. #define SIZEOF_OFF_T $ac_cv_sizeof_off_t
  4079. _ACEOF
  4080. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print off_t" >&5
  4081. $as_echo_n "checking how to print off_t... " >&6; }
  4082. if ${ne_cv_fmt_off_t+:} false; then :
  4083. $as_echo_n "(cached) " >&6
  4084. else
  4085. ne_cv_fmt_off_t=none
  4086. if test $ne_fmt_trycompile = yes; then
  4087. oflags="$CPPFLAGS"
  4088. # Consider format string mismatches as errors
  4089. CPPFLAGS="$CPPFLAGS -Wformat -Werror"
  4090. for str in d ld lld; do
  4091. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4092. /* end confdefs.h. */
  4093. #include <sys/types.h>
  4094. #include <stdio.h>
  4095. int
  4096. main ()
  4097. {
  4098. off_t i = 1; printf("%$str", i);
  4099. ;
  4100. return 0;
  4101. }
  4102. _ACEOF
  4103. if ac_fn_c_try_compile "$LINENO"; then :
  4104. ne_cv_fmt_off_t=$str; break
  4105. fi
  4106. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4107. done
  4108. CPPFLAGS=$oflags
  4109. else
  4110. # Best guess. Don't have to be too precise since we probably won't
  4111. # get a warning message anyway.
  4112. case $ac_cv_sizeof_off_t in
  4113. $ac_cv_sizeof_int) ne_cv_fmt_off_t="d" ;;
  4114. $ac_cv_sizeof_long) ne_cv_fmt_off_t="ld" ;;
  4115. $ac_cv_sizeof_long_long) ne_cv_fmt_off_t="lld" ;;
  4116. esac
  4117. fi
  4118. fi
  4119. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ne_cv_fmt_off_t" >&5
  4120. $as_echo "$ne_cv_fmt_off_t" >&6; }
  4121. if test "x$ne_cv_fmt_off_t" = "xnone"; then
  4122. as_fn_error $? "format string for off_t not found" "$LINENO" 5
  4123. fi
  4124. cat >>confdefs.h <<_ACEOF
  4125. #define NE_FMT_OFF_T "$ne_cv_fmt_off_t"
  4126. _ACEOF
  4127. # The cast to long int works around a bug in the HP C Compiler
  4128. # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
  4129. # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
  4130. # This bug is HP SR number 8606223364.
  4131. { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of ssize_t" >&5
  4132. $as_echo_n "checking size of ssize_t... " >&6; }
  4133. if ${ac_cv_sizeof_ssize_t+:} false; then :
  4134. $as_echo_n "(cached) " >&6
  4135. else
  4136. if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (ssize_t))" "ac_cv_sizeof_ssize_t" "$ac_includes_default
  4137. "; then :
  4138. else
  4139. if test "$ac_cv_type_ssize_t" = yes; then
  4140. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  4141. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  4142. as_fn_error 77 "cannot compute sizeof (ssize_t)
  4143. See \`config.log' for more details" "$LINENO" 5; }
  4144. else
  4145. ac_cv_sizeof_ssize_t=0
  4146. fi
  4147. fi
  4148. fi
  4149. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_ssize_t" >&5
  4150. $as_echo "$ac_cv_sizeof_ssize_t" >&6; }
  4151. cat >>confdefs.h <<_ACEOF
  4152. #define SIZEOF_SSIZE_T $ac_cv_sizeof_ssize_t
  4153. _ACEOF
  4154. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print ssize_t" >&5
  4155. $as_echo_n "checking how to print ssize_t... " >&6; }
  4156. if ${ne_cv_fmt_ssize_t+:} false; then :
  4157. $as_echo_n "(cached) " >&6
  4158. else
  4159. ne_cv_fmt_ssize_t=none
  4160. if test $ne_fmt_trycompile = yes; then
  4161. oflags="$CPPFLAGS"
  4162. # Consider format string mismatches as errors
  4163. CPPFLAGS="$CPPFLAGS -Wformat -Werror"
  4164. for str in d ld lld; do
  4165. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4166. /* end confdefs.h. */
  4167. #include <sys/types.h>
  4168. #include <stdio.h>
  4169. int
  4170. main ()
  4171. {
  4172. ssize_t i = 1; printf("%$str", i);
  4173. ;
  4174. return 0;
  4175. }
  4176. _ACEOF
  4177. if ac_fn_c_try_compile "$LINENO"; then :
  4178. ne_cv_fmt_ssize_t=$str; break
  4179. fi
  4180. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4181. done
  4182. CPPFLAGS=$oflags
  4183. else
  4184. # Best guess. Don't have to be too precise since we probably won't
  4185. # get a warning message anyway.
  4186. case $ac_cv_sizeof_ssize_t in
  4187. $ac_cv_sizeof_int) ne_cv_fmt_ssize_t="d" ;;
  4188. $ac_cv_sizeof_long) ne_cv_fmt_ssize_t="ld" ;;
  4189. $ac_cv_sizeof_long_long) ne_cv_fmt_ssize_t="lld" ;;
  4190. esac
  4191. fi
  4192. fi
  4193. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ne_cv_fmt_ssize_t" >&5
  4194. $as_echo "$ne_cv_fmt_ssize_t" >&6; }
  4195. if test "x$ne_cv_fmt_ssize_t" = "xnone"; then
  4196. as_fn_error $? "format string for ssize_t not found" "$LINENO" 5
  4197. fi
  4198. cat >>confdefs.h <<_ACEOF
  4199. #define NE_FMT_SSIZE_T "$ne_cv_fmt_ssize_t"
  4200. _ACEOF
  4201. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
  4202. $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
  4203. if ${ac_cv_c_bigendian+:} false; then :
  4204. $as_echo_n "(cached) " >&6
  4205. else
  4206. ac_cv_c_bigendian=unknown
  4207. # See if we're dealing with a universal compiler.
  4208. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4209. /* end confdefs.h. */
  4210. #ifndef __APPLE_CC__
  4211. not a universal capable compiler
  4212. #endif
  4213. typedef int dummy;
  4214. _ACEOF
  4215. if ac_fn_c_try_compile "$LINENO"; then :
  4216. # Check for potential -arch flags. It is not universal unless
  4217. # there are at least two -arch flags with different values.
  4218. ac_arch=
  4219. ac_prev=
  4220. for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
  4221. if test -n "$ac_prev"; then
  4222. case $ac_word in
  4223. i?86 | x86_64 | ppc | ppc64)
  4224. if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
  4225. ac_arch=$ac_word
  4226. else
  4227. ac_cv_c_bigendian=universal
  4228. break
  4229. fi
  4230. ;;
  4231. esac
  4232. ac_prev=
  4233. elif test "x$ac_word" = "x-arch"; then
  4234. ac_prev=arch
  4235. fi
  4236. done
  4237. fi
  4238. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4239. if test $ac_cv_c_bigendian = unknown; then
  4240. # See if sys/param.h defines the BYTE_ORDER macro.
  4241. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4242. /* end confdefs.h. */
  4243. #include <sys/types.h>
  4244. #include <sys/param.h>
  4245. int
  4246. main ()
  4247. {
  4248. #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
  4249. && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
  4250. && LITTLE_ENDIAN)
  4251. bogus endian macros
  4252. #endif
  4253. ;
  4254. return 0;
  4255. }
  4256. _ACEOF
  4257. if ac_fn_c_try_compile "$LINENO"; then :
  4258. # It does; now see whether it defined to BIG_ENDIAN or not.
  4259. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4260. /* end confdefs.h. */
  4261. #include <sys/types.h>
  4262. #include <sys/param.h>
  4263. int
  4264. main ()
  4265. {
  4266. #if BYTE_ORDER != BIG_ENDIAN
  4267. not big endian
  4268. #endif
  4269. ;
  4270. return 0;
  4271. }
  4272. _ACEOF
  4273. if ac_fn_c_try_compile "$LINENO"; then :
  4274. ac_cv_c_bigendian=yes
  4275. else
  4276. ac_cv_c_bigendian=no
  4277. fi
  4278. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4279. fi
  4280. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4281. fi
  4282. if test $ac_cv_c_bigendian = unknown; then
  4283. # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
  4284. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4285. /* end confdefs.h. */
  4286. #include <limits.h>
  4287. int
  4288. main ()
  4289. {
  4290. #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
  4291. bogus endian macros
  4292. #endif
  4293. ;
  4294. return 0;
  4295. }
  4296. _ACEOF
  4297. if ac_fn_c_try_compile "$LINENO"; then :
  4298. # It does; now see whether it defined to _BIG_ENDIAN or not.
  4299. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4300. /* end confdefs.h. */
  4301. #include <limits.h>
  4302. int
  4303. main ()
  4304. {
  4305. #ifndef _BIG_ENDIAN
  4306. not big endian
  4307. #endif
  4308. ;
  4309. return 0;
  4310. }
  4311. _ACEOF
  4312. if ac_fn_c_try_compile "$LINENO"; then :
  4313. ac_cv_c_bigendian=yes
  4314. else
  4315. ac_cv_c_bigendian=no
  4316. fi
  4317. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4318. fi
  4319. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4320. fi
  4321. if test $ac_cv_c_bigendian = unknown; then
  4322. # Compile a test program.
  4323. if test "$cross_compiling" = yes; then :
  4324. # Try to guess by grepping values from an object file.
  4325. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4326. /* end confdefs.h. */
  4327. short int ascii_mm[] =
  4328. { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
  4329. short int ascii_ii[] =
  4330. { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
  4331. int use_ascii (int i) {
  4332. return ascii_mm[i] + ascii_ii[i];
  4333. }
  4334. short int ebcdic_ii[] =
  4335. { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
  4336. short int ebcdic_mm[] =
  4337. { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
  4338. int use_ebcdic (int i) {
  4339. return ebcdic_mm[i] + ebcdic_ii[i];
  4340. }
  4341. extern int foo;
  4342. int
  4343. main ()
  4344. {
  4345. return use_ascii (foo) == use_ebcdic (foo);
  4346. ;
  4347. return 0;
  4348. }
  4349. _ACEOF
  4350. if ac_fn_c_try_compile "$LINENO"; then :
  4351. if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
  4352. ac_cv_c_bigendian=yes
  4353. fi
  4354. if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
  4355. if test "$ac_cv_c_bigendian" = unknown; then
  4356. ac_cv_c_bigendian=no
  4357. else
  4358. # finding both strings is unlikely to happen, but who knows?
  4359. ac_cv_c_bigendian=unknown
  4360. fi
  4361. fi
  4362. fi
  4363. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4364. else
  4365. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4366. /* end confdefs.h. */
  4367. $ac_includes_default
  4368. int
  4369. main ()
  4370. {
  4371. /* Are we little or big endian? From Harbison&Steele. */
  4372. union
  4373. {
  4374. long int l;
  4375. char c[sizeof (long int)];
  4376. } u;
  4377. u.l = 1;
  4378. return u.c[sizeof (long int) - 1] == 1;
  4379. ;
  4380. return 0;
  4381. }
  4382. _ACEOF
  4383. if ac_fn_c_try_run "$LINENO"; then :
  4384. ac_cv_c_bigendian=no
  4385. else
  4386. ac_cv_c_bigendian=yes
  4387. fi
  4388. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  4389. conftest.$ac_objext conftest.beam conftest.$ac_ext
  4390. fi
  4391. fi
  4392. fi
  4393. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
  4394. $as_echo "$ac_cv_c_bigendian" >&6; }
  4395. case $ac_cv_c_bigendian in #(
  4396. yes)
  4397. $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
  4398. ;; #(
  4399. no)
  4400. ;; #(
  4401. universal)
  4402. $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
  4403. ;; #(
  4404. *)
  4405. as_fn_error $? "unknown endianness
  4406. presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
  4407. esac
  4408. ac_fn_c_check_decl "$LINENO" "strerror_r" "ac_cv_have_decl_strerror_r" "$ac_includes_default"
  4409. if test "x$ac_cv_have_decl_strerror_r" = xyes; then :
  4410. ac_have_decl=1
  4411. else
  4412. ac_have_decl=0
  4413. fi
  4414. cat >>confdefs.h <<_ACEOF
  4415. #define HAVE_DECL_STRERROR_R $ac_have_decl
  4416. _ACEOF
  4417. for ac_func in strerror_r
  4418. do :
  4419. ac_fn_c_check_func "$LINENO" "strerror_r" "ac_cv_func_strerror_r"
  4420. if test "x$ac_cv_func_strerror_r" = xyes; then :
  4421. cat >>confdefs.h <<_ACEOF
  4422. #define HAVE_STRERROR_R 1
  4423. _ACEOF
  4424. fi
  4425. done
  4426. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether strerror_r returns char *" >&5
  4427. $as_echo_n "checking whether strerror_r returns char *... " >&6; }
  4428. if ${ac_cv_func_strerror_r_char_p+:} false; then :
  4429. $as_echo_n "(cached) " >&6
  4430. else
  4431. ac_cv_func_strerror_r_char_p=no
  4432. if test $ac_cv_have_decl_strerror_r = yes; then
  4433. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4434. /* end confdefs.h. */
  4435. $ac_includes_default
  4436. int
  4437. main ()
  4438. {
  4439. char buf[100];
  4440. char x = *strerror_r (0, buf, sizeof buf);
  4441. char *p = strerror_r (0, buf, sizeof buf);
  4442. return !p || x;
  4443. ;
  4444. return 0;
  4445. }
  4446. _ACEOF
  4447. if ac_fn_c_try_compile "$LINENO"; then :
  4448. ac_cv_func_strerror_r_char_p=yes
  4449. fi
  4450. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4451. else
  4452. # strerror_r is not declared. Choose between
  4453. # systems that have relatively inaccessible declarations for the
  4454. # function. BeOS and DEC UNIX 4.0 fall in this category, but the
  4455. # former has a strerror_r that returns char*, while the latter
  4456. # has a strerror_r that returns `int'.
  4457. # This test should segfault on the DEC system.
  4458. if test "$cross_compiling" = yes; then :
  4459. :
  4460. else
  4461. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4462. /* end confdefs.h. */
  4463. $ac_includes_default
  4464. extern char *strerror_r ();
  4465. int
  4466. main ()
  4467. {
  4468. char buf[100];
  4469. char x = *strerror_r (0, buf, sizeof buf);
  4470. return ! isalpha (x);
  4471. ;
  4472. return 0;
  4473. }
  4474. _ACEOF
  4475. if ac_fn_c_try_run "$LINENO"; then :
  4476. ac_cv_func_strerror_r_char_p=yes
  4477. fi
  4478. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  4479. conftest.$ac_objext conftest.beam conftest.$ac_ext
  4480. fi
  4481. fi
  4482. fi
  4483. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_strerror_r_char_p" >&5
  4484. $as_echo "$ac_cv_func_strerror_r_char_p" >&6; }
  4485. if test $ac_cv_func_strerror_r_char_p = yes; then
  4486. $as_echo "#define STRERROR_R_CHAR_P 1" >>confdefs.h
  4487. fi
  4488. for ac_func in snprintf vsnprintf
  4489. do :
  4490. as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
  4491. ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
  4492. if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
  4493. cat >>confdefs.h <<_ACEOF
  4494. #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
  4495. _ACEOF
  4496. else
  4497. ne_save_LIBS=$LIBS
  4498. LIBS="$LIBS -lm" # Always need -lm
  4499. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for trio_vsnprintf in -ltrio" >&5
  4500. $as_echo_n "checking for trio_vsnprintf in -ltrio... " >&6; }
  4501. if ${ac_cv_lib_trio_trio_vsnprintf+:} false; then :
  4502. $as_echo_n "(cached) " >&6
  4503. else
  4504. ac_check_lib_save_LIBS=$LIBS
  4505. LIBS="-ltrio $LIBS"
  4506. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4507. /* end confdefs.h. */
  4508. /* Override any GCC internal prototype to avoid an error.
  4509. Use char because int might match the return type of a GCC
  4510. builtin and then its argument prototype would still apply. */
  4511. #ifdef __cplusplus
  4512. extern "C"
  4513. #endif
  4514. char trio_vsnprintf ();
  4515. int
  4516. main ()
  4517. {
  4518. return trio_vsnprintf ();
  4519. ;
  4520. return 0;
  4521. }
  4522. _ACEOF
  4523. if ac_fn_c_try_link "$LINENO"; then :
  4524. ac_cv_lib_trio_trio_vsnprintf=yes
  4525. else
  4526. ac_cv_lib_trio_trio_vsnprintf=no
  4527. fi
  4528. rm -f core conftest.err conftest.$ac_objext \
  4529. conftest$ac_exeext conftest.$ac_ext
  4530. LIBS=$ac_check_lib_save_LIBS
  4531. fi
  4532. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_trio_trio_vsnprintf" >&5
  4533. $as_echo "$ac_cv_lib_trio_trio_vsnprintf" >&6; }
  4534. if test "x$ac_cv_lib_trio_trio_vsnprintf" = xyes; then :
  4535. for ac_header in trio.h
  4536. do :
  4537. ac_fn_c_check_header_mongrel "$LINENO" "trio.h" "ac_cv_header_trio_h" "$ac_includes_default"
  4538. if test "x$ac_cv_header_trio_h" = xyes; then :
  4539. cat >>confdefs.h <<_ACEOF
  4540. #define HAVE_TRIO_H 1
  4541. _ACEOF
  4542. else
  4543. as_fn_error $? "trio installation problem? libtrio found but not trio.h" "$LINENO" 5
  4544. fi
  4545. done
  4546. { $as_echo "$as_me:${as_lineno-$LINENO}: using trio printf replacement library" >&5
  4547. $as_echo "$as_me: using trio printf replacement library" >&6;}
  4548. NEON_LIBS="$NEON_LIBS -ltrio -lm"
  4549. $as_echo "#define HAVE_TRIO 1" >>confdefs.h
  4550. else
  4551. { $as_echo "$as_me:${as_lineno-$LINENO}: no vsnprintf/snprintf detected in C library" >&5
  4552. $as_echo "$as_me: no vsnprintf/snprintf detected in C library" >&6;}
  4553. as_fn_error $? "Install the trio library from http://daniel.haxx.se/projects/trio/" "$LINENO" 5
  4554. fi
  4555. LIBS=$ne_save_LIBS
  4556. break
  4557. fi
  4558. done
  4559. for ac_header in sys/time.h limits.h sys/select.h arpa/inet.h libintl.h \
  4560. signal.h sys/socket.h netinet/in.h netinet/tcp.h netdb.h sys/poll.h \
  4561. sys/limits.h fcntl.h iconv.h
  4562. do :
  4563. as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
  4564. ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
  4565. /* netinet/tcp.h requires netinet/in.h on some platforms. */
  4566. #ifdef HAVE_NETINET_IN_H
  4567. #include <netinet/in.h>
  4568. #endif
  4569. "
  4570. if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
  4571. cat >>confdefs.h <<_ACEOF
  4572. #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
  4573. _ACEOF
  4574. fi
  4575. done
  4576. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for timezone global" >&5
  4577. $as_echo_n "checking for timezone global... " >&6; }
  4578. if ${ne_cv_cc_timezone+:} false; then :
  4579. $as_echo_n "(cached) " >&6
  4580. else
  4581. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4582. /* end confdefs.h. */
  4583. #include <sys/types.h>
  4584. #include <time.h>
  4585. int
  4586. main ()
  4587. {
  4588. time_t t = 0 - timezone; timezone = 1;
  4589. ;
  4590. return 0;
  4591. }
  4592. _ACEOF
  4593. if ac_fn_c_try_link "$LINENO"; then :
  4594. ne_cv_cc_timezone=yes
  4595. else
  4596. ne_cv_cc_timezone=no
  4597. fi
  4598. rm -f core conftest.err conftest.$ac_objext \
  4599. conftest$ac_exeext conftest.$ac_ext
  4600. fi
  4601. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ne_cv_cc_timezone" >&5
  4602. $as_echo "$ne_cv_cc_timezone" >&6; }
  4603. if test "$ne_cv_cc_timezone" = "yes"; then
  4604. $as_echo "#define HAVE_TIMEZONE 1" >>confdefs.h
  4605. fi
  4606. if test -z "$ac_cv_sizeof_off_t"; then
  4607. NE_FLAG_LFS=no
  4608. ne_LFS_message="LFS support omitted: off_t size unknown!"
  4609. { $as_echo "$as_me:${as_lineno-$LINENO}: LFS support omitted: off_t size unknown!" >&5
  4610. $as_echo "$as_me: LFS support omitted: off_t size unknown!" >&6;}
  4611. elif test $ac_cv_sizeof_off_t != 4; then
  4612. NE_FLAG_LFS=no
  4613. ne_LFS_message="LFS support unnecessary, off_t is not 32-bit"
  4614. { $as_echo "$as_me:${as_lineno-$LINENO}: LFS support unnecessary, off_t is not 32-bit" >&5
  4615. $as_echo "$as_me: LFS support unnecessary, off_t is not 32-bit" >&6;}
  4616. for ac_func in strtoll strtoq
  4617. do :
  4618. as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
  4619. ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
  4620. if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
  4621. cat >>confdefs.h <<_ACEOF
  4622. #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
  4623. _ACEOF
  4624. break
  4625. fi
  4626. done
  4627. elif test -z "$ac_cv_sizeof_long_long"; then
  4628. NE_FLAG_LFS=no
  4629. ne_LFS_message="LFS support omitted: long long size unknown"
  4630. { $as_echo "$as_me:${as_lineno-$LINENO}: LFS support omitted: long long size unknown" >&5
  4631. $as_echo "$as_me: LFS support omitted: long long size unknown" >&6;}
  4632. elif test $ac_cv_sizeof_long_long != 8; then
  4633. NE_FLAG_LFS=no
  4634. ne_LFS_message="LFS support omitted: long long not 64-bit"
  4635. { $as_echo "$as_me:${as_lineno-$LINENO}: LFS support omitted: long long not 64-bit" >&5
  4636. $as_echo "$as_me: LFS support omitted: long long not 64-bit" >&6;}
  4637. else
  4638. ne_save_CPPFLAGS=$CPPFLAGS
  4639. CPPFLAGS="$CPPFLAGS -D_LARGEFILE64_SOURCE"
  4640. ac_fn_c_check_type "$LINENO" "off64_t" "ac_cv_type_off64_t" "$ac_includes_default"
  4641. if test "x$ac_cv_type_off64_t" = xyes; then :
  4642. # The cast to long int works around a bug in the HP C Compiler
  4643. # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
  4644. # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
  4645. # This bug is HP SR number 8606223364.
  4646. { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of off64_t" >&5
  4647. $as_echo_n "checking size of off64_t... " >&6; }
  4648. if ${ac_cv_sizeof_off64_t+:} false; then :
  4649. $as_echo_n "(cached) " >&6
  4650. else
  4651. if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (off64_t))" "ac_cv_sizeof_off64_t" "$ac_includes_default
  4652. "; then :
  4653. else
  4654. if test "$ac_cv_type_off64_t" = yes; then
  4655. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  4656. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  4657. as_fn_error 77 "cannot compute sizeof (off64_t)
  4658. See \`config.log' for more details" "$LINENO" 5; }
  4659. else
  4660. ac_cv_sizeof_off64_t=0
  4661. fi
  4662. fi
  4663. fi
  4664. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_off64_t" >&5
  4665. $as_echo "$ac_cv_sizeof_off64_t" >&6; }
  4666. cat >>confdefs.h <<_ACEOF
  4667. #define SIZEOF_OFF64_T $ac_cv_sizeof_off64_t
  4668. _ACEOF
  4669. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print off64_t" >&5
  4670. $as_echo_n "checking how to print off64_t... " >&6; }
  4671. if ${ne_cv_fmt_off64_t+:} false; then :
  4672. $as_echo_n "(cached) " >&6
  4673. else
  4674. ne_cv_fmt_off64_t=none
  4675. if test $ne_fmt_trycompile = yes; then
  4676. oflags="$CPPFLAGS"
  4677. # Consider format string mismatches as errors
  4678. CPPFLAGS="$CPPFLAGS -Wformat -Werror"
  4679. for str in d ld lld; do
  4680. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4681. /* end confdefs.h. */
  4682. #include <sys/types.h>
  4683. #include <stdio.h>
  4684. int
  4685. main ()
  4686. {
  4687. off64_t i = 1; printf("%$str", i);
  4688. ;
  4689. return 0;
  4690. }
  4691. _ACEOF
  4692. if ac_fn_c_try_compile "$LINENO"; then :
  4693. ne_cv_fmt_off64_t=$str; break
  4694. fi
  4695. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4696. done
  4697. CPPFLAGS=$oflags
  4698. else
  4699. # Best guess. Don't have to be too precise since we probably won't
  4700. # get a warning message anyway.
  4701. case $ac_cv_sizeof_off64_t in
  4702. $ac_cv_sizeof_int) ne_cv_fmt_off64_t="d" ;;
  4703. $ac_cv_sizeof_long) ne_cv_fmt_off64_t="ld" ;;
  4704. $ac_cv_sizeof_long_long) ne_cv_fmt_off64_t="lld" ;;
  4705. esac
  4706. fi
  4707. fi
  4708. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ne_cv_fmt_off64_t" >&5
  4709. $as_echo "$ne_cv_fmt_off64_t" >&6; }
  4710. if test "x$ne_cv_fmt_off64_t" = "xnone"; then
  4711. as_fn_error $? "format string for off64_t not found" "$LINENO" 5
  4712. fi
  4713. cat >>confdefs.h <<_ACEOF
  4714. #define NE_FMT_OFF64_T "$ne_cv_fmt_off64_t"
  4715. _ACEOF
  4716. ne_lfsok=no
  4717. for ac_func in strtoll strtoq
  4718. do :
  4719. as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
  4720. ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
  4721. if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
  4722. cat >>confdefs.h <<_ACEOF
  4723. #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
  4724. _ACEOF
  4725. ne_lfsok=yes; break
  4726. fi
  4727. done
  4728. for ac_func in lseek64 fstat64
  4729. do :
  4730. as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
  4731. ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
  4732. if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
  4733. cat >>confdefs.h <<_ACEOF
  4734. #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
  4735. _ACEOF
  4736. else
  4737. ne_lfsok=no; break
  4738. fi
  4739. done
  4740. if test x$ne_lfsok = xyes; then
  4741. NE_FLAG_LFS=yes
  4742. $as_echo "#define NE_HAVE_LFS 1" >>confdefs.h
  4743. ne_LFS_message="LFS (large file) support enabled"
  4744. { $as_echo "$as_me:${as_lineno-$LINENO}: LFS (large file) support enabled" >&5
  4745. $as_echo "$as_me: LFS (large file) support enabled" >&6;}
  4746. NEON_CFLAGS="$NEON_CFLAGS -D_LARGEFILE64_SOURCE -DNE_LFS"
  4747. ne_save_CPPFLAGS="$CPPFLAGS -DNE_LFS"
  4748. else
  4749. NE_FLAG_LFS=no
  4750. ne_LFS_message="LFS support omitted: 64-bit support functions not found"
  4751. { $as_echo "$as_me:${as_lineno-$LINENO}: LFS support omitted: 64-bit support functions not found" >&5
  4752. $as_echo "$as_me: LFS support omitted: 64-bit support functions not found" >&6;}
  4753. fi
  4754. else
  4755. NE_FLAG_LFS=no
  4756. ne_LFS_message="LFS support omitted: off64_t type not found"
  4757. { $as_echo "$as_me:${as_lineno-$LINENO}: LFS support omitted: off64_t type not found" >&5
  4758. $as_echo "$as_me: LFS support omitted: off64_t type not found" >&6;}
  4759. fi
  4760. CPPFLAGS=$ne_save_CPPFLAGS
  4761. fi
  4762. if test "$NE_FLAG_LFS" = "yes"; then
  4763. cat >>confdefs.h <<_ACEOF
  4764. #define NE_FMT_NE_OFF_T NE_FMT_OFF64_T
  4765. _ACEOF
  4766. if test "x${NE_LIBTOOL_RELEASE}y" = "xy"; then
  4767. NE_LIBTOOL_RELEASE="LFS"
  4768. else
  4769. NE_LIBTOOL_RELEASE="${NE_LIBTOOL_RELEASE}-LFS"
  4770. fi
  4771. else
  4772. cat >>confdefs.h <<_ACEOF
  4773. #define NE_FMT_NE_OFF_T NE_FMT_OFF_T
  4774. _ACEOF
  4775. fi
  4776. ac_fn_c_check_func "$LINENO" "strcasecmp" "ac_cv_func_strcasecmp"
  4777. if test "x$ac_cv_func_strcasecmp" = xyes; then :
  4778. $as_echo "#define HAVE_STRCASECMP 1" >>confdefs.h
  4779. else
  4780. case " $LIBOBJS " in
  4781. *" strcasecmp.$ac_objext "* ) ;;
  4782. *) LIBOBJS="$LIBOBJS strcasecmp.$ac_objext"
  4783. ;;
  4784. esac
  4785. fi
  4786. for ac_func in signal setvbuf setsockopt stpcpy poll fcntl getsockopt
  4787. do :
  4788. as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
  4789. ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
  4790. if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
  4791. cat >>confdefs.h <<_ACEOF
  4792. #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
  4793. _ACEOF
  4794. fi
  4795. done
  4796. if test "x${ac_cv_func_poll}${ac_cv_header_sys_poll_h}y" = "xyesyesy"; then
  4797. $as_echo "#define NE_USE_POLL 1" >>confdefs.h
  4798. fi
  4799. if test "$ac_cv_func_stpcpy" = "yes"; then
  4800. ac_fn_c_check_decl "$LINENO" "stpcpy" "ac_cv_have_decl_stpcpy" "$ac_includes_default"
  4801. if test "x$ac_cv_have_decl_stpcpy" = xyes; then :
  4802. ac_have_decl=1
  4803. else
  4804. ac_have_decl=0
  4805. fi
  4806. cat >>confdefs.h <<_ACEOF
  4807. #define HAVE_DECL_STPCPY $ac_have_decl
  4808. _ACEOF
  4809. fi
  4810. # Modern AIXes with the "Linux-like" libc have an undeclared stpcpy
  4811. # Unixware 7 can only link gethostbyname with -lnsl -lsocket
  4812. # Pick up -lsocket first, then the gethostbyname check will work.
  4813. # Haiku requires -lnetwork for socket functions.
  4814. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing socket" >&5
  4815. $as_echo_n "checking for library containing socket... " >&6; }
  4816. if ${ne_cv_libsfor_socket+:} false; then :
  4817. $as_echo_n "(cached) " >&6
  4818. else
  4819. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4820. /* end confdefs.h. */
  4821. int
  4822. main ()
  4823. {
  4824. socket();
  4825. ;
  4826. return 0;
  4827. }
  4828. _ACEOF
  4829. if ac_fn_c_try_link "$LINENO"; then :
  4830. ne_cv_libsfor_socket="none needed"
  4831. else
  4832. ne_sl_save_LIBS=$LIBS
  4833. ne_cv_libsfor_socket="not found"
  4834. for lib in socket inet ws2_32 network; do
  4835. # The w32api libraries link using the stdcall calling convention.
  4836. case ${lib}-${ne_cv_os_uname} in
  4837. ws2_32-MINGW*) ne__code="__stdcall socket();" ;;
  4838. *) ne__code="socket();" ;;
  4839. esac
  4840. LIBS="$ne_sl_save_LIBS -l$lib $NEON_LIBS"
  4841. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4842. /* end confdefs.h. */
  4843. int
  4844. main ()
  4845. {
  4846. $ne__code
  4847. ;
  4848. return 0;
  4849. }
  4850. _ACEOF
  4851. if ac_fn_c_try_link "$LINENO"; then :
  4852. ne_cv_libsfor_socket="-l$lib"; break
  4853. fi
  4854. rm -f core conftest.err conftest.$ac_objext \
  4855. conftest$ac_exeext conftest.$ac_ext
  4856. done
  4857. LIBS=$ne_sl_save_LIBS
  4858. fi
  4859. rm -f core conftest.err conftest.$ac_objext \
  4860. conftest$ac_exeext conftest.$ac_ext
  4861. fi
  4862. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ne_cv_libsfor_socket" >&5
  4863. $as_echo "$ne_cv_libsfor_socket" >&6; }
  4864. if test "$ne_cv_libsfor_socket" = "not found"; then
  4865. as_fn_error $? "could not find library containing socket" "$LINENO" 5
  4866. elif test "$ne_cv_libsfor_socket" = "none needed"; then
  4867. :
  4868. else
  4869. NEON_LIBS="$ne_cv_libsfor_socket $NEON_LIBS"
  4870. fi
  4871. # Enable getaddrinfo support if it, gai_strerror and inet_ntop are
  4872. # all available.
  4873. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing getaddrinfo" >&5
  4874. $as_echo_n "checking for library containing getaddrinfo... " >&6; }
  4875. if ${ne_cv_libsfor_getaddrinfo+:} false; then :
  4876. $as_echo_n "(cached) " >&6
  4877. else
  4878. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4879. /* end confdefs.h. */
  4880. int
  4881. main ()
  4882. {
  4883. getaddrinfo();
  4884. ;
  4885. return 0;
  4886. }
  4887. _ACEOF
  4888. if ac_fn_c_try_link "$LINENO"; then :
  4889. ne_cv_libsfor_getaddrinfo="none needed"
  4890. else
  4891. ne_sl_save_LIBS=$LIBS
  4892. ne_cv_libsfor_getaddrinfo="not found"
  4893. for lib in nsl; do
  4894. # The w32api libraries link using the stdcall calling convention.
  4895. case ${lib}-${ne_cv_os_uname} in
  4896. ws2_32-MINGW*) ne__code="__stdcall getaddrinfo();" ;;
  4897. *) ne__code="getaddrinfo();" ;;
  4898. esac
  4899. LIBS="$ne_sl_save_LIBS -l$lib $NEON_LIBS"
  4900. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4901. /* end confdefs.h. */
  4902. int
  4903. main ()
  4904. {
  4905. $ne__code
  4906. ;
  4907. return 0;
  4908. }
  4909. _ACEOF
  4910. if ac_fn_c_try_link "$LINENO"; then :
  4911. ne_cv_libsfor_getaddrinfo="-l$lib"; break
  4912. fi
  4913. rm -f core conftest.err conftest.$ac_objext \
  4914. conftest$ac_exeext conftest.$ac_ext
  4915. done
  4916. LIBS=$ne_sl_save_LIBS
  4917. fi
  4918. rm -f core conftest.err conftest.$ac_objext \
  4919. conftest$ac_exeext conftest.$ac_ext
  4920. fi
  4921. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ne_cv_libsfor_getaddrinfo" >&5
  4922. $as_echo "$ne_cv_libsfor_getaddrinfo" >&6; }
  4923. if test "$ne_cv_libsfor_getaddrinfo" = "not found"; then
  4924. ne_enable_gai=no
  4925. elif test "$ne_cv_libsfor_getaddrinfo" = "none needed"; then
  4926. # HP-UX boxes commonly get into a state where getaddrinfo is present
  4927. # but borked: http://marc.theaimsgroup.com/?l=apr-dev&m=107730955207120&w=2
  4928. case x`uname -sr 2>/dev/null`y in
  4929. xHP-UX*11.[01]*y)
  4930. { $as_echo "$as_me:${as_lineno-$LINENO}: getaddrinfo support disabled on HP-UX 11.0x/11.1x" >&5
  4931. $as_echo "$as_me: getaddrinfo support disabled on HP-UX 11.0x/11.1x" >&6;} ;;
  4932. *)
  4933. ne_enable_gai=yes
  4934. ne_cf_save_LIBS=$LIBS
  4935. LIBS="$LIBS $NEON_LIBS"
  4936. for ac_func in gai_strerror getnameinfo inet_ntop inet_pton
  4937. do :
  4938. as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
  4939. ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
  4940. if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
  4941. cat >>confdefs.h <<_ACEOF
  4942. #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
  4943. _ACEOF
  4944. else
  4945. ne_enable_gai=no; break
  4946. fi
  4947. done
  4948. LIBS=$ne_cf_save_LIBS ;;
  4949. esac
  4950. else
  4951. NEON_LIBS="$ne_cv_libsfor_getaddrinfo $NEON_LIBS"
  4952. # HP-UX boxes commonly get into a state where getaddrinfo is present
  4953. # but borked: http://marc.theaimsgroup.com/?l=apr-dev&m=107730955207120&w=2
  4954. case x`uname -sr 2>/dev/null`y in
  4955. xHP-UX*11.[01]*y)
  4956. { $as_echo "$as_me:${as_lineno-$LINENO}: getaddrinfo support disabled on HP-UX 11.0x/11.1x" >&5
  4957. $as_echo "$as_me: getaddrinfo support disabled on HP-UX 11.0x/11.1x" >&6;} ;;
  4958. *)
  4959. ne_enable_gai=yes
  4960. ne_cf_save_LIBS=$LIBS
  4961. LIBS="$LIBS $NEON_LIBS"
  4962. for ac_func in gai_strerror getnameinfo inet_ntop inet_pton
  4963. do :
  4964. as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
  4965. ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
  4966. if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
  4967. cat >>confdefs.h <<_ACEOF
  4968. #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
  4969. _ACEOF
  4970. else
  4971. ne_enable_gai=no; break
  4972. fi
  4973. done
  4974. LIBS=$ne_cf_save_LIBS ;;
  4975. esac
  4976. fi
  4977. if test $ne_enable_gai = yes; then
  4978. NE_FLAG_IPV6=yes
  4979. $as_echo "#define NE_HAVE_IPV6 1" >>confdefs.h
  4980. ne_IPV6_message="IPv6 support is enabled"
  4981. { $as_echo "$as_me:${as_lineno-$LINENO}: IPv6 support is enabled" >&5
  4982. $as_echo "$as_me: IPv6 support is enabled" >&6;}
  4983. $as_echo "#define USE_GETADDRINFO 1" >>confdefs.h
  4984. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working AI_ADDRCONFIG" >&5
  4985. $as_echo_n "checking for working AI_ADDRCONFIG... " >&6; }
  4986. if ${ne_cv_gai_addrconfig+:} false; then :
  4987. $as_echo_n "(cached) " >&6
  4988. else
  4989. if test "$cross_compiling" = yes; then :
  4990. ne_cv_gai_addrconfig=no
  4991. else
  4992. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4993. /* end confdefs.h. */
  4994. #include <netdb.h>
  4995. #include <stdlib.h>
  4996. int
  4997. main ()
  4998. {
  4999. struct addrinfo hints = {0}, *result;
  5000. hints.ai_flags = AI_ADDRCONFIG;
  5001. if (getaddrinfo("localhost", NULL, &hints, &result) != 0) return 1;
  5002. ;
  5003. return 0;
  5004. }
  5005. _ACEOF
  5006. if ac_fn_c_try_run "$LINENO"; then :
  5007. ne_cv_gai_addrconfig=yes
  5008. else
  5009. ne_cv_gai_addrconfig=no
  5010. fi
  5011. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  5012. conftest.$ac_objext conftest.beam conftest.$ac_ext
  5013. fi
  5014. fi
  5015. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ne_cv_gai_addrconfig" >&5
  5016. $as_echo "$ne_cv_gai_addrconfig" >&6; }
  5017. if test $ne_cv_gai_addrconfig = yes; then
  5018. $as_echo "#define USE_GAI_ADDRCONFIG 1" >>confdefs.h
  5019. fi
  5020. else
  5021. # Checks for non-getaddrinfo() based resolver interfaces.
  5022. # QNX has gethostbyname in -lsocket. BeOS only has it in -lbind.
  5023. # CygWin/Winsock2 has it in -lws2_32, allegedly.
  5024. # Haiku requires -lnetwork for socket functions.
  5025. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing gethostbyname" >&5
  5026. $as_echo_n "checking for library containing gethostbyname... " >&6; }
  5027. if ${ne_cv_libsfor_gethostbyname+:} false; then :
  5028. $as_echo_n "(cached) " >&6
  5029. else
  5030. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5031. /* end confdefs.h. */
  5032. int
  5033. main ()
  5034. {
  5035. gethostbyname();
  5036. ;
  5037. return 0;
  5038. }
  5039. _ACEOF
  5040. if ac_fn_c_try_link "$LINENO"; then :
  5041. ne_cv_libsfor_gethostbyname="none needed"
  5042. else
  5043. ne_sl_save_LIBS=$LIBS
  5044. ne_cv_libsfor_gethostbyname="not found"
  5045. for lib in socket nsl bind ws2_32 network; do
  5046. # The w32api libraries link using the stdcall calling convention.
  5047. case ${lib}-${ne_cv_os_uname} in
  5048. ws2_32-MINGW*) ne__code="__stdcall gethostbyname();" ;;
  5049. *) ne__code="gethostbyname();" ;;
  5050. esac
  5051. LIBS="$ne_sl_save_LIBS -l$lib $NEON_LIBS"
  5052. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5053. /* end confdefs.h. */
  5054. int
  5055. main ()
  5056. {
  5057. $ne__code
  5058. ;
  5059. return 0;
  5060. }
  5061. _ACEOF
  5062. if ac_fn_c_try_link "$LINENO"; then :
  5063. ne_cv_libsfor_gethostbyname="-l$lib"; break
  5064. fi
  5065. rm -f core conftest.err conftest.$ac_objext \
  5066. conftest$ac_exeext conftest.$ac_ext
  5067. done
  5068. LIBS=$ne_sl_save_LIBS
  5069. fi
  5070. rm -f core conftest.err conftest.$ac_objext \
  5071. conftest$ac_exeext conftest.$ac_ext
  5072. fi
  5073. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ne_cv_libsfor_gethostbyname" >&5
  5074. $as_echo "$ne_cv_libsfor_gethostbyname" >&6; }
  5075. if test "$ne_cv_libsfor_gethostbyname" = "not found"; then
  5076. as_fn_error $? "could not find library containing gethostbyname" "$LINENO" 5
  5077. elif test "$ne_cv_libsfor_gethostbyname" = "none needed"; then
  5078. :
  5079. else
  5080. NEON_LIBS="$ne_cv_libsfor_gethostbyname $NEON_LIBS"
  5081. fi
  5082. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing hstrerror" >&5
  5083. $as_echo_n "checking for library containing hstrerror... " >&6; }
  5084. if ${ne_cv_libsfor_hstrerror+:} false; then :
  5085. $as_echo_n "(cached) " >&6
  5086. else
  5087. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5088. /* end confdefs.h. */
  5089. int
  5090. main ()
  5091. {
  5092. hstrerror();
  5093. ;
  5094. return 0;
  5095. }
  5096. _ACEOF
  5097. if ac_fn_c_try_link "$LINENO"; then :
  5098. ne_cv_libsfor_hstrerror="none needed"
  5099. else
  5100. ne_sl_save_LIBS=$LIBS
  5101. ne_cv_libsfor_hstrerror="not found"
  5102. for lib in resolv; do
  5103. # The w32api libraries link using the stdcall calling convention.
  5104. case ${lib}-${ne_cv_os_uname} in
  5105. ws2_32-MINGW*) ne__code="__stdcall hstrerror();" ;;
  5106. *) ne__code="hstrerror();" ;;
  5107. esac
  5108. LIBS="$ne_sl_save_LIBS -l$lib $NEON_LIBS"
  5109. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5110. /* end confdefs.h. */
  5111. int
  5112. main ()
  5113. {
  5114. $ne__code
  5115. ;
  5116. return 0;
  5117. }
  5118. _ACEOF
  5119. if ac_fn_c_try_link "$LINENO"; then :
  5120. ne_cv_libsfor_hstrerror="-l$lib"; break
  5121. fi
  5122. rm -f core conftest.err conftest.$ac_objext \
  5123. conftest$ac_exeext conftest.$ac_ext
  5124. done
  5125. LIBS=$ne_sl_save_LIBS
  5126. fi
  5127. rm -f core conftest.err conftest.$ac_objext \
  5128. conftest$ac_exeext conftest.$ac_ext
  5129. fi
  5130. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ne_cv_libsfor_hstrerror" >&5
  5131. $as_echo "$ne_cv_libsfor_hstrerror" >&6; }
  5132. if test "$ne_cv_libsfor_hstrerror" = "not found"; then
  5133. :
  5134. elif test "$ne_cv_libsfor_hstrerror" = "none needed"; then
  5135. :
  5136. else
  5137. NEON_LIBS="$ne_cv_libsfor_hstrerror $NEON_LIBS"
  5138. fi
  5139. ne_cf_save_LIBS=$LIBS
  5140. LIBS="$LIBS $NEON_LIBS"
  5141. for ac_func in hstrerror
  5142. do :
  5143. ac_fn_c_check_func "$LINENO" "hstrerror" "ac_cv_func_hstrerror"
  5144. if test "x$ac_cv_func_hstrerror" = xyes; then :
  5145. cat >>confdefs.h <<_ACEOF
  5146. #define HAVE_HSTRERROR 1
  5147. _ACEOF
  5148. fi
  5149. done
  5150. LIBS=$ne_cf_save_LIBS
  5151. # Older Unixes don't declare h_errno.
  5152. ac_fn_c_check_decl "$LINENO" "h_errno" "ac_cv_have_decl_h_errno" "#include <netdb.h>
  5153. "
  5154. if test "x$ac_cv_have_decl_h_errno" = xyes; then :
  5155. ac_have_decl=1
  5156. else
  5157. ac_have_decl=0
  5158. fi
  5159. cat >>confdefs.h <<_ACEOF
  5160. #define HAVE_DECL_H_ERRNO $ac_have_decl
  5161. _ACEOF
  5162. ac_fn_c_check_type "$LINENO" "in_addr_t" "ac_cv_type_in_addr_t" "
  5163. #ifdef HAVE_SYS_TYPES_H
  5164. # include <sys/types.h>
  5165. #endif
  5166. #ifdef HAVE_NETINET_IN_H
  5167. # include <netinet/in.h>
  5168. #endif
  5169. "
  5170. if test "x$ac_cv_type_in_addr_t" = xyes; then :
  5171. else
  5172. $as_echo "#define in_addr_t unsigned int" >>confdefs.h
  5173. fi
  5174. fi
  5175. ac_fn_c_check_type "$LINENO" "socklen_t" "ac_cv_type_socklen_t" "
  5176. #ifdef HAVE_SYS_TYPES_H
  5177. # include <sys/types.h>
  5178. #endif
  5179. #ifdef HAVE_SYS_SOCKET_H
  5180. # include <sys/socket.h>
  5181. #endif
  5182. "
  5183. if test "x$ac_cv_type_socklen_t" = xyes; then :
  5184. cat >>confdefs.h <<_ACEOF
  5185. #define HAVE_SOCKLEN_T 1
  5186. _ACEOF
  5187. else
  5188. # Linux accept(2) says this should be size_t for SunOS 5... gah.
  5189. $as_echo "#define socklen_t int" >>confdefs.h
  5190. fi
  5191. ac_fn_c_check_member "$LINENO" "struct tm" "tm_gmtoff" "ac_cv_member_struct_tm_tm_gmtoff" "#include <time.h>
  5192. "
  5193. if test "x$ac_cv_member_struct_tm_tm_gmtoff" = xyes; then :
  5194. cat >>confdefs.h <<_ACEOF
  5195. #define HAVE_STRUCT_TM_TM_GMTOFF 1
  5196. _ACEOF
  5197. fi
  5198. ac_fn_c_check_member "$LINENO" "struct tm" "__tm_gmtoff" "ac_cv_member_struct_tm___tm_gmtoff" "#include <time.h>
  5199. "
  5200. if test "x$ac_cv_member_struct_tm___tm_gmtoff" = xyes; then :
  5201. cat >>confdefs.h <<_ACEOF
  5202. #define HAVE_STRUCT_TM___TM_GMTOFF 1
  5203. _ACEOF
  5204. fi
  5205. if test ${ac_cv_member_struct_tm_tm_gmtoff}${ac_cv_member_struct_tm___tm_gmtoff}${ne_cv_cc_timezone} = nonono; then
  5206. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: no timezone handling in date parsing on this platform" >&5
  5207. $as_echo "$as_me: WARNING: no timezone handling in date parsing on this platform" >&2;}
  5208. fi
  5209. # Check whether --with-zlib was given.
  5210. if test "${with_zlib+set}" = set; then :
  5211. withval=$with_zlib; ne_use_zlib=$withval
  5212. else
  5213. ne_use_zlib=yes
  5214. fi
  5215. if test "$ne_use_zlib" = "yes"; then
  5216. ac_fn_c_check_header_mongrel "$LINENO" "zlib.h" "ac_cv_header_zlib_h" "$ac_includes_default"
  5217. if test "x$ac_cv_header_zlib_h" = xyes; then :
  5218. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inflate in -lz" >&5
  5219. $as_echo_n "checking for inflate in -lz... " >&6; }
  5220. if ${ac_cv_lib_z_inflate+:} false; then :
  5221. $as_echo_n "(cached) " >&6
  5222. else
  5223. ac_check_lib_save_LIBS=$LIBS
  5224. LIBS="-lz $LIBS"
  5225. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5226. /* end confdefs.h. */
  5227. /* Override any GCC internal prototype to avoid an error.
  5228. Use char because int might match the return type of a GCC
  5229. builtin and then its argument prototype would still apply. */
  5230. #ifdef __cplusplus
  5231. extern "C"
  5232. #endif
  5233. char inflate ();
  5234. int
  5235. main ()
  5236. {
  5237. return inflate ();
  5238. ;
  5239. return 0;
  5240. }
  5241. _ACEOF
  5242. if ac_fn_c_try_link "$LINENO"; then :
  5243. ac_cv_lib_z_inflate=yes
  5244. else
  5245. ac_cv_lib_z_inflate=no
  5246. fi
  5247. rm -f core conftest.err conftest.$ac_objext \
  5248. conftest$ac_exeext conftest.$ac_ext
  5249. LIBS=$ac_check_lib_save_LIBS
  5250. fi
  5251. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_inflate" >&5
  5252. $as_echo "$ac_cv_lib_z_inflate" >&6; }
  5253. if test "x$ac_cv_lib_z_inflate" = xyes; then :
  5254. NEON_LIBS="$NEON_LIBS -lz"
  5255. NE_FLAG_ZLIB=yes
  5256. $as_echo "#define NE_HAVE_ZLIB 1" >>confdefs.h
  5257. ne_ZLIB_message="zlib support enabled, using -lz"
  5258. { $as_echo "$as_me:${as_lineno-$LINENO}: zlib support enabled, using -lz" >&5
  5259. $as_echo "$as_me: zlib support enabled, using -lz" >&6;}
  5260. else
  5261. NE_FLAG_ZLIB=no
  5262. ne_ZLIB_message="zlib library not found"
  5263. { $as_echo "$as_me:${as_lineno-$LINENO}: zlib library not found" >&5
  5264. $as_echo "$as_me: zlib library not found" >&6;}
  5265. fi
  5266. else
  5267. NE_FLAG_ZLIB=no
  5268. ne_ZLIB_message="zlib header not found"
  5269. { $as_echo "$as_me:${as_lineno-$LINENO}: zlib header not found" >&5
  5270. $as_echo "$as_me: zlib header not found" >&6;}
  5271. fi
  5272. else
  5273. NE_FLAG_ZLIB=no
  5274. ne_ZLIB_message="zlib not enabled"
  5275. { $as_echo "$as_me:${as_lineno-$LINENO}: zlib not enabled" >&5
  5276. $as_echo "$as_me: zlib not enabled" >&6;}
  5277. fi
  5278. # Conditionally enable ACL support
  5279. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable ACL support in neon" >&5
  5280. $as_echo_n "checking whether to enable ACL support in neon... " >&6; }
  5281. if test "x$neon_no_acl" = "xyes"; then
  5282. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5283. $as_echo "no" >&6; }
  5284. else
  5285. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  5286. $as_echo "yes" >&6; }
  5287. NEON_EXTRAOBJS="$NEON_EXTRAOBJS ne_oldacl ne_acl3744"
  5288. fi
  5289. # Check whether --with-ssl was given.
  5290. if test "${with_ssl+set}" = set; then :
  5291. withval=$with_ssl;
  5292. fi
  5293. # Check whether --with-egd was given.
  5294. if test "${with_egd+set}" = set; then :
  5295. withval=$with_egd;
  5296. fi
  5297. # Check whether --with-pakchois was given.
  5298. if test "${with_pakchois+set}" = set; then :
  5299. withval=$with_pakchois;
  5300. fi
  5301. case $with_ssl in
  5302. /*)
  5303. { $as_echo "$as_me:${as_lineno-$LINENO}: to use SSL libraries in non-standard locations, try --with-ssl --with-libs=$with_ssl" >&5
  5304. $as_echo "$as_me: to use SSL libraries in non-standard locations, try --with-ssl --with-libs=$with_ssl" >&6;}
  5305. as_fn_error $? "--with-ssl does not take a path argument" "$LINENO" 5
  5306. ;;
  5307. yes|openssl)
  5308. # Extract the first word of "pkg-config", so it can be a program name with args.
  5309. set dummy pkg-config; ac_word=$2
  5310. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5311. $as_echo_n "checking for $ac_word... " >&6; }
  5312. if ${ac_cv_path_PKG_CONFIG+:} false; then :
  5313. $as_echo_n "(cached) " >&6
  5314. else
  5315. case $PKG_CONFIG in
  5316. [\\/]* | ?:[\\/]*)
  5317. ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
  5318. ;;
  5319. *)
  5320. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5321. for as_dir in $PATH
  5322. do
  5323. IFS=$as_save_IFS
  5324. test -z "$as_dir" && as_dir=.
  5325. for ac_exec_ext in '' $ac_executable_extensions; do
  5326. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5327. ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
  5328. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5329. break 2
  5330. fi
  5331. done
  5332. done
  5333. IFS=$as_save_IFS
  5334. test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
  5335. ;;
  5336. esac
  5337. fi
  5338. PKG_CONFIG=$ac_cv_path_PKG_CONFIG
  5339. if test -n "$PKG_CONFIG"; then
  5340. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
  5341. $as_echo "$PKG_CONFIG" >&6; }
  5342. else
  5343. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5344. $as_echo "no" >&6; }
  5345. fi
  5346. if test "$PKG_CONFIG" = "no"; then
  5347. : Not using pkg-config
  5348. # Either OpenSSL library may require -ldl if built with dynamic engine support
  5349. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing RSA_new" >&5
  5350. $as_echo_n "checking for library containing RSA_new... " >&6; }
  5351. if ${ne_cv_libsfor_RSA_new+:} false; then :
  5352. $as_echo_n "(cached) " >&6
  5353. else
  5354. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5355. /* end confdefs.h. */
  5356. int
  5357. main ()
  5358. {
  5359. RSA_new();
  5360. ;
  5361. return 0;
  5362. }
  5363. _ACEOF
  5364. if ac_fn_c_try_link "$LINENO"; then :
  5365. ne_cv_libsfor_RSA_new="none needed"
  5366. else
  5367. ne_sl_save_LIBS=$LIBS
  5368. ne_cv_libsfor_RSA_new="not found"
  5369. for lib in crypto; do
  5370. # The w32api libraries link using the stdcall calling convention.
  5371. case ${lib}-${ne_cv_os_uname} in
  5372. ws2_32-MINGW*) ne__code="__stdcall RSA_new();" ;;
  5373. *) ne__code="RSA_new();" ;;
  5374. esac
  5375. LIBS="$ne_sl_save_LIBS -l$lib $NEON_LIBS"
  5376. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5377. /* end confdefs.h. */
  5378. int
  5379. main ()
  5380. {
  5381. $ne__code
  5382. ;
  5383. return 0;
  5384. }
  5385. _ACEOF
  5386. if ac_fn_c_try_link "$LINENO"; then :
  5387. ne_cv_libsfor_RSA_new="-l$lib"; break
  5388. fi
  5389. rm -f core conftest.err conftest.$ac_objext \
  5390. conftest$ac_exeext conftest.$ac_ext
  5391. LIBS="$ne_sl_save_LIBS -l$lib -ldl $NEON_LIBS"
  5392. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5393. /* end confdefs.h. */
  5394. int
  5395. main ()
  5396. {
  5397. $ne__code
  5398. ;
  5399. return 0;
  5400. }
  5401. _ACEOF
  5402. if ac_fn_c_try_link "$LINENO"; then :
  5403. ne_cv_libsfor_RSA_new="-l$lib -ldl"; break
  5404. fi
  5405. rm -f core conftest.err conftest.$ac_objext \
  5406. conftest$ac_exeext conftest.$ac_ext
  5407. done
  5408. LIBS=$ne_sl_save_LIBS
  5409. fi
  5410. rm -f core conftest.err conftest.$ac_objext \
  5411. conftest$ac_exeext conftest.$ac_ext
  5412. fi
  5413. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ne_cv_libsfor_RSA_new" >&5
  5414. $as_echo "$ne_cv_libsfor_RSA_new" >&6; }
  5415. if test "$ne_cv_libsfor_RSA_new" = "not found"; then
  5416. as_fn_error $? "could not find library containing RSA_new" "$LINENO" 5
  5417. elif test "$ne_cv_libsfor_RSA_new" = "none needed"; then
  5418. :
  5419. else
  5420. NEON_LIBS="$ne_cv_libsfor_RSA_new $NEON_LIBS"
  5421. fi
  5422. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing SSL_library_init" >&5
  5423. $as_echo_n "checking for library containing SSL_library_init... " >&6; }
  5424. if ${ne_cv_libsfor_SSL_library_init+:} false; then :
  5425. $as_echo_n "(cached) " >&6
  5426. else
  5427. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5428. /* end confdefs.h. */
  5429. int
  5430. main ()
  5431. {
  5432. SSL_library_init();
  5433. ;
  5434. return 0;
  5435. }
  5436. _ACEOF
  5437. if ac_fn_c_try_link "$LINENO"; then :
  5438. ne_cv_libsfor_SSL_library_init="none needed"
  5439. else
  5440. ne_sl_save_LIBS=$LIBS
  5441. ne_cv_libsfor_SSL_library_init="not found"
  5442. for lib in ssl; do
  5443. # The w32api libraries link using the stdcall calling convention.
  5444. case ${lib}-${ne_cv_os_uname} in
  5445. ws2_32-MINGW*) ne__code="__stdcall SSL_library_init();" ;;
  5446. *) ne__code="SSL_library_init();" ;;
  5447. esac
  5448. LIBS="$ne_sl_save_LIBS -l$lib $NEON_LIBS"
  5449. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5450. /* end confdefs.h. */
  5451. int
  5452. main ()
  5453. {
  5454. $ne__code
  5455. ;
  5456. return 0;
  5457. }
  5458. _ACEOF
  5459. if ac_fn_c_try_link "$LINENO"; then :
  5460. ne_cv_libsfor_SSL_library_init="-l$lib"; break
  5461. fi
  5462. rm -f core conftest.err conftest.$ac_objext \
  5463. conftest$ac_exeext conftest.$ac_ext
  5464. LIBS="$ne_sl_save_LIBS -l$lib -ldl $NEON_LIBS"
  5465. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5466. /* end confdefs.h. */
  5467. int
  5468. main ()
  5469. {
  5470. $ne__code
  5471. ;
  5472. return 0;
  5473. }
  5474. _ACEOF
  5475. if ac_fn_c_try_link "$LINENO"; then :
  5476. ne_cv_libsfor_SSL_library_init="-l$lib -ldl"; break
  5477. fi
  5478. rm -f core conftest.err conftest.$ac_objext \
  5479. conftest$ac_exeext conftest.$ac_ext
  5480. done
  5481. LIBS=$ne_sl_save_LIBS
  5482. fi
  5483. rm -f core conftest.err conftest.$ac_objext \
  5484. conftest$ac_exeext conftest.$ac_ext
  5485. fi
  5486. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ne_cv_libsfor_SSL_library_init" >&5
  5487. $as_echo "$ne_cv_libsfor_SSL_library_init" >&6; }
  5488. if test "$ne_cv_libsfor_SSL_library_init" = "not found"; then
  5489. as_fn_error $? "could not find library containing SSL_library_init" "$LINENO" 5
  5490. elif test "$ne_cv_libsfor_SSL_library_init" = "none needed"; then
  5491. :
  5492. else
  5493. NEON_LIBS="$ne_cv_libsfor_SSL_library_init $NEON_LIBS"
  5494. fi
  5495. else
  5496. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for openssl pkg-config data" >&5
  5497. $as_echo_n "checking for openssl pkg-config data... " >&6; }
  5498. if ${ne_cv_pkg_openssl+:} false; then :
  5499. $as_echo_n "(cached) " >&6
  5500. else
  5501. if $PKG_CONFIG openssl; then
  5502. ne_cv_pkg_openssl=yes
  5503. else
  5504. ne_cv_pkg_openssl=no
  5505. fi
  5506. fi
  5507. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ne_cv_pkg_openssl" >&5
  5508. $as_echo "$ne_cv_pkg_openssl" >&6; }
  5509. if test "$ne_cv_pkg_openssl" = "yes"; then
  5510. NE_SSL_CFLAGS=`$PKG_CONFIG --cflags openssl`
  5511. NE_SSL_LIBS=`$PKG_CONFIG --libs openssl`
  5512. : Using provided pkg-config data
  5513. { $as_echo "$as_me:${as_lineno-$LINENO}: using SSL library configuration from pkg-config" >&5
  5514. $as_echo "$as_me: using SSL library configuration from pkg-config" >&6;}
  5515. CPPFLAGS="$CPPFLAGS ${NE_SSL_CFLAGS}"
  5516. NEON_LIBS="$NEON_LIBS ${NE_SSL_LIBS}"
  5517. else
  5518. : No pkg-config for openssl provided
  5519. # Either OpenSSL library may require -ldl if built with dynamic engine support
  5520. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing RSA_new" >&5
  5521. $as_echo_n "checking for library containing RSA_new... " >&6; }
  5522. if ${ne_cv_libsfor_RSA_new+:} false; then :
  5523. $as_echo_n "(cached) " >&6
  5524. else
  5525. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5526. /* end confdefs.h. */
  5527. int
  5528. main ()
  5529. {
  5530. RSA_new();
  5531. ;
  5532. return 0;
  5533. }
  5534. _ACEOF
  5535. if ac_fn_c_try_link "$LINENO"; then :
  5536. ne_cv_libsfor_RSA_new="none needed"
  5537. else
  5538. ne_sl_save_LIBS=$LIBS
  5539. ne_cv_libsfor_RSA_new="not found"
  5540. for lib in crypto; do
  5541. # The w32api libraries link using the stdcall calling convention.
  5542. case ${lib}-${ne_cv_os_uname} in
  5543. ws2_32-MINGW*) ne__code="__stdcall RSA_new();" ;;
  5544. *) ne__code="RSA_new();" ;;
  5545. esac
  5546. LIBS="$ne_sl_save_LIBS -l$lib $NEON_LIBS"
  5547. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5548. /* end confdefs.h. */
  5549. int
  5550. main ()
  5551. {
  5552. $ne__code
  5553. ;
  5554. return 0;
  5555. }
  5556. _ACEOF
  5557. if ac_fn_c_try_link "$LINENO"; then :
  5558. ne_cv_libsfor_RSA_new="-l$lib"; break
  5559. fi
  5560. rm -f core conftest.err conftest.$ac_objext \
  5561. conftest$ac_exeext conftest.$ac_ext
  5562. LIBS="$ne_sl_save_LIBS -l$lib -ldl $NEON_LIBS"
  5563. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5564. /* end confdefs.h. */
  5565. int
  5566. main ()
  5567. {
  5568. $ne__code
  5569. ;
  5570. return 0;
  5571. }
  5572. _ACEOF
  5573. if ac_fn_c_try_link "$LINENO"; then :
  5574. ne_cv_libsfor_RSA_new="-l$lib -ldl"; break
  5575. fi
  5576. rm -f core conftest.err conftest.$ac_objext \
  5577. conftest$ac_exeext conftest.$ac_ext
  5578. done
  5579. LIBS=$ne_sl_save_LIBS
  5580. fi
  5581. rm -f core conftest.err conftest.$ac_objext \
  5582. conftest$ac_exeext conftest.$ac_ext
  5583. fi
  5584. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ne_cv_libsfor_RSA_new" >&5
  5585. $as_echo "$ne_cv_libsfor_RSA_new" >&6; }
  5586. if test "$ne_cv_libsfor_RSA_new" = "not found"; then
  5587. as_fn_error $? "could not find library containing RSA_new" "$LINENO" 5
  5588. elif test "$ne_cv_libsfor_RSA_new" = "none needed"; then
  5589. :
  5590. else
  5591. NEON_LIBS="$ne_cv_libsfor_RSA_new $NEON_LIBS"
  5592. fi
  5593. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing SSL_library_init" >&5
  5594. $as_echo_n "checking for library containing SSL_library_init... " >&6; }
  5595. if ${ne_cv_libsfor_SSL_library_init+:} false; then :
  5596. $as_echo_n "(cached) " >&6
  5597. else
  5598. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5599. /* end confdefs.h. */
  5600. int
  5601. main ()
  5602. {
  5603. SSL_library_init();
  5604. ;
  5605. return 0;
  5606. }
  5607. _ACEOF
  5608. if ac_fn_c_try_link "$LINENO"; then :
  5609. ne_cv_libsfor_SSL_library_init="none needed"
  5610. else
  5611. ne_sl_save_LIBS=$LIBS
  5612. ne_cv_libsfor_SSL_library_init="not found"
  5613. for lib in ssl; do
  5614. # The w32api libraries link using the stdcall calling convention.
  5615. case ${lib}-${ne_cv_os_uname} in
  5616. ws2_32-MINGW*) ne__code="__stdcall SSL_library_init();" ;;
  5617. *) ne__code="SSL_library_init();" ;;
  5618. esac
  5619. LIBS="$ne_sl_save_LIBS -l$lib $NEON_LIBS"
  5620. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5621. /* end confdefs.h. */
  5622. int
  5623. main ()
  5624. {
  5625. $ne__code
  5626. ;
  5627. return 0;
  5628. }
  5629. _ACEOF
  5630. if ac_fn_c_try_link "$LINENO"; then :
  5631. ne_cv_libsfor_SSL_library_init="-l$lib"; break
  5632. fi
  5633. rm -f core conftest.err conftest.$ac_objext \
  5634. conftest$ac_exeext conftest.$ac_ext
  5635. LIBS="$ne_sl_save_LIBS -l$lib -ldl $NEON_LIBS"
  5636. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5637. /* end confdefs.h. */
  5638. int
  5639. main ()
  5640. {
  5641. $ne__code
  5642. ;
  5643. return 0;
  5644. }
  5645. _ACEOF
  5646. if ac_fn_c_try_link "$LINENO"; then :
  5647. ne_cv_libsfor_SSL_library_init="-l$lib -ldl"; break
  5648. fi
  5649. rm -f core conftest.err conftest.$ac_objext \
  5650. conftest$ac_exeext conftest.$ac_ext
  5651. done
  5652. LIBS=$ne_sl_save_LIBS
  5653. fi
  5654. rm -f core conftest.err conftest.$ac_objext \
  5655. conftest$ac_exeext conftest.$ac_ext
  5656. fi
  5657. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ne_cv_libsfor_SSL_library_init" >&5
  5658. $as_echo "$ne_cv_libsfor_SSL_library_init" >&6; }
  5659. if test "$ne_cv_libsfor_SSL_library_init" = "not found"; then
  5660. as_fn_error $? "could not find library containing SSL_library_init" "$LINENO" 5
  5661. elif test "$ne_cv_libsfor_SSL_library_init" = "none needed"; then
  5662. :
  5663. else
  5664. NEON_LIBS="$ne_cv_libsfor_SSL_library_init $NEON_LIBS"
  5665. fi
  5666. fi
  5667. fi
  5668. for ac_header in openssl/ssl.h openssl/opensslv.h
  5669. do :
  5670. as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
  5671. ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
  5672. if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
  5673. cat >>confdefs.h <<_ACEOF
  5674. #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
  5675. _ACEOF
  5676. else
  5677. as_fn_error $? "OpenSSL headers not found, cannot enable SSL support" "$LINENO" 5
  5678. fi
  5679. done
  5680. # Enable EGD support if using 0.9.7 or newer
  5681. { $as_echo "$as_me:${as_lineno-$LINENO}: checking OpenSSL version is >= 0.9.7" >&5
  5682. $as_echo_n "checking OpenSSL version is >= 0.9.7... " >&6; }
  5683. if ${ne_cv_lib_ssl097+:} false; then :
  5684. $as_echo_n "(cached) " >&6
  5685. else
  5686. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5687. /* end confdefs.h. */
  5688. #include <openssl/opensslv.h>
  5689. #if OPENSSL_VERSION_NUMBER >= 0x00907000L
  5690. good
  5691. #endif
  5692. _ACEOF
  5693. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  5694. $EGREP "good" >/dev/null 2>&1; then :
  5695. ne_cv_lib_ssl097=yes
  5696. else
  5697. ne_cv_lib_ssl097=no
  5698. fi
  5699. rm -f conftest*
  5700. fi
  5701. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ne_cv_lib_ssl097" >&5
  5702. $as_echo "$ne_cv_lib_ssl097" >&6; }
  5703. if test "$ne_cv_lib_ssl097" = "yes"; then
  5704. { $as_echo "$as_me:${as_lineno-$LINENO}: OpenSSL >= 0.9.7; EGD support not needed in neon" >&5
  5705. $as_echo "$as_me: OpenSSL >= 0.9.7; EGD support not needed in neon" >&6;}
  5706. NE_FLAG_SSL=yes
  5707. $as_echo "#define NE_HAVE_SSL 1" >>confdefs.h
  5708. ne_SSL_message="SSL support enabled, using OpenSSL (0.9.7 or later)"
  5709. { $as_echo "$as_me:${as_lineno-$LINENO}: SSL support enabled, using OpenSSL (0.9.7 or later)" >&5
  5710. $as_echo "$as_me: SSL support enabled, using OpenSSL (0.9.7 or later)" >&6;}
  5711. ne_cf_save_LIBS=$LIBS
  5712. LIBS="$LIBS $NEON_LIBS"
  5713. for ac_func in CRYPTO_set_idptr_callback SSL_SESSION_cmp
  5714. do :
  5715. as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
  5716. ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
  5717. if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
  5718. cat >>confdefs.h <<_ACEOF
  5719. #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
  5720. _ACEOF
  5721. fi
  5722. done
  5723. LIBS=$ne_cf_save_LIBS
  5724. else
  5725. # Fail if OpenSSL is older than 0.9.6
  5726. { $as_echo "$as_me:${as_lineno-$LINENO}: checking OpenSSL version is >= 0.9.6" >&5
  5727. $as_echo_n "checking OpenSSL version is >= 0.9.6... " >&6; }
  5728. if ${ne_cv_lib_ssl096+:} false; then :
  5729. $as_echo_n "(cached) " >&6
  5730. else
  5731. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5732. /* end confdefs.h. */
  5733. #include <openssl/opensslv.h>
  5734. #if OPENSSL_VERSION_NUMBER >= 0x00906000L
  5735. good
  5736. #endif
  5737. _ACEOF
  5738. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  5739. $EGREP "good" >/dev/null 2>&1; then :
  5740. ne_cv_lib_ssl096=yes
  5741. else
  5742. ne_cv_lib_ssl096=no
  5743. fi
  5744. rm -f conftest*
  5745. fi
  5746. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ne_cv_lib_ssl096" >&5
  5747. $as_echo "$ne_cv_lib_ssl096" >&6; }
  5748. if test "$ne_cv_lib_ssl096" != "yes"; then
  5749. as_fn_error $? "OpenSSL 0.9.6 or later is required" "$LINENO" 5
  5750. fi
  5751. NE_FLAG_SSL=yes
  5752. $as_echo "#define NE_HAVE_SSL 1" >>confdefs.h
  5753. ne_SSL_message="SSL support enabled, using OpenSSL (0.9.6 or later)"
  5754. { $as_echo "$as_me:${as_lineno-$LINENO}: SSL support enabled, using OpenSSL (0.9.6 or later)" >&5
  5755. $as_echo "$as_me: SSL support enabled, using OpenSSL (0.9.6 or later)" >&6;}
  5756. case "$with_egd" in
  5757. yes|no) ne_cv_lib_sslegd=$with_egd ;;
  5758. /*) ne_cv_lib_sslegd=yes
  5759. cat >>confdefs.h <<_ACEOF
  5760. #define EGD_PATH "$with_egd"
  5761. _ACEOF
  5762. ;;
  5763. *) # Guess whether EGD support is needed
  5764. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable EGD support" >&5
  5765. $as_echo_n "checking whether to enable EGD support... " >&6; }
  5766. if ${ne_cv_lib_sslegd+:} false; then :
  5767. $as_echo_n "(cached) " >&6
  5768. else
  5769. if test -r /dev/random || test -r /dev/urandom; then
  5770. ne_cv_lib_sslegd=no
  5771. else
  5772. ne_cv_lib_sslegd=yes
  5773. fi
  5774. fi
  5775. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ne_cv_lib_sslegd" >&5
  5776. $as_echo "$ne_cv_lib_sslegd" >&6; }
  5777. ;;
  5778. esac
  5779. if test "$ne_cv_lib_sslegd" = "yes"; then
  5780. { $as_echo "$as_me:${as_lineno-$LINENO}: EGD support enabled for seeding OpenSSL PRNG" >&5
  5781. $as_echo "$as_me: EGD support enabled for seeding OpenSSL PRNG" >&6;}
  5782. $as_echo "#define ENABLE_EGD 1" >>confdefs.h
  5783. fi
  5784. fi
  5785. $as_echo "#define HAVE_OPENSSL 1" >>confdefs.h
  5786. NEON_EXTRAOBJS="$NEON_EXTRAOBJS ne_openssl"
  5787. $as_echo "#define HAVE_NTLM 1" >>confdefs.h
  5788. ;;
  5789. gnutls)
  5790. # Extract the first word of "pkg-config", so it can be a program name with args.
  5791. set dummy pkg-config; ac_word=$2
  5792. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5793. $as_echo_n "checking for $ac_word... " >&6; }
  5794. if ${ac_cv_path_PKG_CONFIG+:} false; then :
  5795. $as_echo_n "(cached) " >&6
  5796. else
  5797. case $PKG_CONFIG in
  5798. [\\/]* | ?:[\\/]*)
  5799. ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
  5800. ;;
  5801. *)
  5802. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5803. for as_dir in $PATH
  5804. do
  5805. IFS=$as_save_IFS
  5806. test -z "$as_dir" && as_dir=.
  5807. for ac_exec_ext in '' $ac_executable_extensions; do
  5808. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5809. ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
  5810. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5811. break 2
  5812. fi
  5813. done
  5814. done
  5815. IFS=$as_save_IFS
  5816. test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
  5817. ;;
  5818. esac
  5819. fi
  5820. PKG_CONFIG=$ac_cv_path_PKG_CONFIG
  5821. if test -n "$PKG_CONFIG"; then
  5822. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
  5823. $as_echo "$PKG_CONFIG" >&6; }
  5824. else
  5825. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5826. $as_echo "no" >&6; }
  5827. fi
  5828. if test "$PKG_CONFIG" = "no"; then
  5829. : Not using pkg-config
  5830. # Fall back on libgnutls-config script
  5831. # Extract the first word of "libgnutls-config", so it can be a program name with args.
  5832. set dummy libgnutls-config; ac_word=$2
  5833. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5834. $as_echo_n "checking for $ac_word... " >&6; }
  5835. if ${ac_cv_path_GNUTLS_CONFIG+:} false; then :
  5836. $as_echo_n "(cached) " >&6
  5837. else
  5838. case $GNUTLS_CONFIG in
  5839. [\\/]* | ?:[\\/]*)
  5840. ac_cv_path_GNUTLS_CONFIG="$GNUTLS_CONFIG" # Let the user override the test with a path.
  5841. ;;
  5842. *)
  5843. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5844. for as_dir in $PATH
  5845. do
  5846. IFS=$as_save_IFS
  5847. test -z "$as_dir" && as_dir=.
  5848. for ac_exec_ext in '' $ac_executable_extensions; do
  5849. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5850. ac_cv_path_GNUTLS_CONFIG="$as_dir/$ac_word$ac_exec_ext"
  5851. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5852. break 2
  5853. fi
  5854. done
  5855. done
  5856. IFS=$as_save_IFS
  5857. test -z "$ac_cv_path_GNUTLS_CONFIG" && ac_cv_path_GNUTLS_CONFIG="no"
  5858. ;;
  5859. esac
  5860. fi
  5861. GNUTLS_CONFIG=$ac_cv_path_GNUTLS_CONFIG
  5862. if test -n "$GNUTLS_CONFIG"; then
  5863. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GNUTLS_CONFIG" >&5
  5864. $as_echo "$GNUTLS_CONFIG" >&6; }
  5865. else
  5866. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5867. $as_echo "no" >&6; }
  5868. fi
  5869. if test "$GNUTLS_CONFIG" = "no"; then
  5870. as_fn_error $? "could not find libgnutls-config in \$PATH" "$LINENO" 5
  5871. fi
  5872. CPPFLAGS="$CPPFLAGS `$GNUTLS_CONFIG --cflags`"
  5873. NEON_LIBS="$NEON_LIBS `$GNUTLS_CONFIG --libs`"
  5874. ne_gnutls_ver=`$GNUTLS_CONFIG --version`
  5875. else
  5876. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gnutls pkg-config data" >&5
  5877. $as_echo_n "checking for gnutls pkg-config data... " >&6; }
  5878. if ${ne_cv_pkg_gnutls+:} false; then :
  5879. $as_echo_n "(cached) " >&6
  5880. else
  5881. if $PKG_CONFIG gnutls; then
  5882. ne_cv_pkg_gnutls=yes
  5883. else
  5884. ne_cv_pkg_gnutls=no
  5885. fi
  5886. fi
  5887. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ne_cv_pkg_gnutls" >&5
  5888. $as_echo "$ne_cv_pkg_gnutls" >&6; }
  5889. if test "$ne_cv_pkg_gnutls" = "yes"; then
  5890. NE_SSL_CFLAGS=`$PKG_CONFIG --cflags gnutls`
  5891. NE_SSL_LIBS=`$PKG_CONFIG --libs gnutls`
  5892. : Using provided pkg-config data
  5893. { $as_echo "$as_me:${as_lineno-$LINENO}: using GnuTLS configuration from pkg-config" >&5
  5894. $as_echo "$as_me: using GnuTLS configuration from pkg-config" >&6;}
  5895. CPPFLAGS="$CPPFLAGS ${NE_SSL_CFLAGS}"
  5896. NEON_LIBS="$NEON_LIBS ${NE_SSL_LIBS}"
  5897. ne_gnutls_ver=`$PKG_CONFIG --modversion gnutls`
  5898. else
  5899. : No pkg-config for gnutls provided
  5900. # Fall back on libgnutls-config script
  5901. # Extract the first word of "libgnutls-config", so it can be a program name with args.
  5902. set dummy libgnutls-config; ac_word=$2
  5903. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5904. $as_echo_n "checking for $ac_word... " >&6; }
  5905. if ${ac_cv_path_GNUTLS_CONFIG+:} false; then :
  5906. $as_echo_n "(cached) " >&6
  5907. else
  5908. case $GNUTLS_CONFIG in
  5909. [\\/]* | ?:[\\/]*)
  5910. ac_cv_path_GNUTLS_CONFIG="$GNUTLS_CONFIG" # Let the user override the test with a path.
  5911. ;;
  5912. *)
  5913. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5914. for as_dir in $PATH
  5915. do
  5916. IFS=$as_save_IFS
  5917. test -z "$as_dir" && as_dir=.
  5918. for ac_exec_ext in '' $ac_executable_extensions; do
  5919. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5920. ac_cv_path_GNUTLS_CONFIG="$as_dir/$ac_word$ac_exec_ext"
  5921. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5922. break 2
  5923. fi
  5924. done
  5925. done
  5926. IFS=$as_save_IFS
  5927. test -z "$ac_cv_path_GNUTLS_CONFIG" && ac_cv_path_GNUTLS_CONFIG="no"
  5928. ;;
  5929. esac
  5930. fi
  5931. GNUTLS_CONFIG=$ac_cv_path_GNUTLS_CONFIG
  5932. if test -n "$GNUTLS_CONFIG"; then
  5933. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GNUTLS_CONFIG" >&5
  5934. $as_echo "$GNUTLS_CONFIG" >&6; }
  5935. else
  5936. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5937. $as_echo "no" >&6; }
  5938. fi
  5939. if test "$GNUTLS_CONFIG" = "no"; then
  5940. as_fn_error $? "could not find libgnutls-config in \$PATH" "$LINENO" 5
  5941. fi
  5942. CPPFLAGS="$CPPFLAGS `$GNUTLS_CONFIG --cflags`"
  5943. NEON_LIBS="$NEON_LIBS `$GNUTLS_CONFIG --libs`"
  5944. ne_gnutls_ver=`$GNUTLS_CONFIG --version`
  5945. fi
  5946. fi
  5947. ac_fn_c_check_header_mongrel "$LINENO" "gnutls/gnutls.h" "ac_cv_header_gnutls_gnutls_h" "$ac_includes_default"
  5948. if test "x$ac_cv_header_gnutls_gnutls_h" = xyes; then :
  5949. else
  5950. as_fn_error $? "could not find gnutls/gnutls.h in include path" "$LINENO" 5
  5951. fi
  5952. NE_FLAG_SSL=yes
  5953. $as_echo "#define NE_HAVE_SSL 1" >>confdefs.h
  5954. ne_SSL_message="SSL support enabled, using GnuTLS $ne_gnutls_ver"
  5955. { $as_echo "$as_me:${as_lineno-$LINENO}: SSL support enabled, using GnuTLS $ne_gnutls_ver" >&5
  5956. $as_echo "$as_me: SSL support enabled, using GnuTLS $ne_gnutls_ver" >&6;}
  5957. NEON_EXTRAOBJS="$NEON_EXTRAOBJS ne_gnutls"
  5958. $as_echo "#define HAVE_GNUTLS 1" >>confdefs.h
  5959. # Check for functions in later releases
  5960. ne_cf_save_LIBS=$LIBS
  5961. LIBS="$LIBS $NEON_LIBS"
  5962. for ac_func in gnutls_session_get_data2 gnutls_x509_dn_get_rdn_ava \
  5963. gnutls_certificate_get_issuer \
  5964. gnutls_certificate_get_x509_cas \
  5965. gnutls_x509_crt_sign2 \
  5966. gnutls_certificate_set_retrieve_function2 \
  5967. gnutls_privkey_import_ext
  5968. do :
  5969. as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
  5970. ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
  5971. if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
  5972. cat >>confdefs.h <<_ACEOF
  5973. #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
  5974. _ACEOF
  5975. fi
  5976. done
  5977. LIBS=$ne_cf_save_LIBS
  5978. # fail if gnutls_x509_crt_sign2 is not found (it was introduced in 1.2.0, which is required)
  5979. if test x${ac_cv_func_gnutls_x509_crt_sign2} != xyes; then
  5980. as_fn_error $? "GnuTLS version predates gnutls_x509_crt_sign2, newer version required (at least 1.2.0)" "$LINENO" 5
  5981. fi
  5982. # Check for iconv support if using the new RDN access functions:
  5983. if test ${ac_cv_func_gnutls_x509_dn_get_rdn_ava}X${ac_cv_header_iconv_h} = yesXyes; then
  5984. for ac_func in iconv
  5985. do :
  5986. ac_fn_c_check_func "$LINENO" "iconv" "ac_cv_func_iconv"
  5987. if test "x$ac_cv_func_iconv" = xyes; then :
  5988. cat >>confdefs.h <<_ACEOF
  5989. #define HAVE_ICONV 1
  5990. _ACEOF
  5991. fi
  5992. done
  5993. fi
  5994. ;;
  5995. *) # Default to off; only create crypto-enabled binaries if requested.
  5996. NE_FLAG_SSL=no
  5997. ne_SSL_message="SSL support is not enabled"
  5998. { $as_echo "$as_me:${as_lineno-$LINENO}: SSL support is not enabled" >&5
  5999. $as_echo "$as_me: SSL support is not enabled" >&6;}
  6000. NE_FLAG_TS_SSL=no
  6001. ne_TS_SSL_message="Thread-safe SSL support is not enabled"
  6002. { $as_echo "$as_me:${as_lineno-$LINENO}: Thread-safe SSL support is not enabled" >&5
  6003. $as_echo "$as_me: Thread-safe SSL support is not enabled" >&6;}
  6004. NEON_EXTRAOBJS="$NEON_EXTRAOBJS ne_stubssl"
  6005. ;;
  6006. esac
  6007. # Check whether --with-ca-bundle was given.
  6008. if test "${with_ca_bundle+set}" = set; then :
  6009. withval=$with_ca_bundle;
  6010. else
  6011. with_ca_bundle=no
  6012. fi
  6013. case ${NE_FLAG_SSL}-${with_ca_bundle} in
  6014. *-no) ;;
  6015. yes-*)
  6016. cat >>confdefs.h <<_ACEOF
  6017. #define NE_SSL_CA_BUNDLE "${with_ca_bundle}"
  6018. _ACEOF
  6019. { $as_echo "$as_me:${as_lineno-$LINENO}: Using ${with_ca_bundle} as default SSL CA bundle" >&5
  6020. $as_echo "$as_me: Using ${with_ca_bundle} as default SSL CA bundle" >&6;}
  6021. ;;
  6022. esac
  6023. # Check whether --enable-threadsafe-ssl was given.
  6024. if test "${enable_threadsafe_ssl+set}" = set; then :
  6025. enableval=$enable_threadsafe_ssl;
  6026. else
  6027. enable_threadsafe_ssl=no
  6028. fi
  6029. case $enable_threadsafe_ssl in
  6030. posix|yes)
  6031. ne_pthr_ok=yes
  6032. for ac_func in pthread_mutex_init pthread_mutex_lock
  6033. do :
  6034. as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
  6035. ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
  6036. if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
  6037. cat >>confdefs.h <<_ACEOF
  6038. #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
  6039. _ACEOF
  6040. else
  6041. ne_pthr_ok=no
  6042. fi
  6043. done
  6044. if test "${ne_pthr_ok}" = "no"; then
  6045. as_fn_error $? "could not find POSIX mutex interfaces; (try CC=\"${CC} -pthread\"?)" "$LINENO" 5
  6046. fi
  6047. NE_FLAG_TS_SSL=yes
  6048. $as_echo "#define NE_HAVE_TS_SSL 1" >>confdefs.h
  6049. ne_TS_SSL_message="Thread-safe SSL supported using POSIX threads"
  6050. { $as_echo "$as_me:${as_lineno-$LINENO}: Thread-safe SSL supported using POSIX threads" >&5
  6051. $as_echo "$as_me: Thread-safe SSL supported using POSIX threads" >&6;}
  6052. ;;
  6053. *)
  6054. NE_FLAG_TS_SSL=no
  6055. ne_TS_SSL_message="Thread-safe SSL not supported"
  6056. { $as_echo "$as_me:${as_lineno-$LINENO}: Thread-safe SSL not supported" >&5
  6057. $as_echo "$as_me: Thread-safe SSL not supported" >&6;}
  6058. ;;
  6059. esac
  6060. case ${with_pakchois}X${ac_cv_func_gnutls_privkey_import_ext}Y${ne_cv_lib_ssl097} in
  6061. noX*Y*) ;;
  6062. *X*Yyes|*XyesY*)
  6063. # PKCS#11... ho!
  6064. # Extract the first word of "pkg-config", so it can be a program name with args.
  6065. set dummy pkg-config; ac_word=$2
  6066. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6067. $as_echo_n "checking for $ac_word... " >&6; }
  6068. if ${ac_cv_path_PKG_CONFIG+:} false; then :
  6069. $as_echo_n "(cached) " >&6
  6070. else
  6071. case $PKG_CONFIG in
  6072. [\\/]* | ?:[\\/]*)
  6073. ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
  6074. ;;
  6075. *)
  6076. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6077. for as_dir in $PATH
  6078. do
  6079. IFS=$as_save_IFS
  6080. test -z "$as_dir" && as_dir=.
  6081. for ac_exec_ext in '' $ac_executable_extensions; do
  6082. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  6083. ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
  6084. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6085. break 2
  6086. fi
  6087. done
  6088. done
  6089. IFS=$as_save_IFS
  6090. test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
  6091. ;;
  6092. esac
  6093. fi
  6094. PKG_CONFIG=$ac_cv_path_PKG_CONFIG
  6095. if test -n "$PKG_CONFIG"; then
  6096. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
  6097. $as_echo "$PKG_CONFIG" >&6; }
  6098. else
  6099. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6100. $as_echo "no" >&6; }
  6101. fi
  6102. if test "$PKG_CONFIG" = "no"; then
  6103. : Not using pkg-config
  6104. { $as_echo "$as_me:${as_lineno-$LINENO}: pakchois library not found; no PKCS#11 support" >&5
  6105. $as_echo "$as_me: pakchois library not found; no PKCS#11 support" >&6;}
  6106. else
  6107. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pakchois pkg-config data" >&5
  6108. $as_echo_n "checking for pakchois pkg-config data... " >&6; }
  6109. if ${ne_cv_pkg_pakchois+:} false; then :
  6110. $as_echo_n "(cached) " >&6
  6111. else
  6112. if $PKG_CONFIG pakchois; then
  6113. ne_cv_pkg_pakchois=yes
  6114. else
  6115. ne_cv_pkg_pakchois=no
  6116. fi
  6117. fi
  6118. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ne_cv_pkg_pakchois" >&5
  6119. $as_echo "$ne_cv_pkg_pakchois" >&6; }
  6120. if test "$ne_cv_pkg_pakchois" = "yes"; then
  6121. NE_PK11_CFLAGS=`$PKG_CONFIG --cflags pakchois`
  6122. NE_PK11_LIBS=`$PKG_CONFIG --libs pakchois`
  6123. : Using provided pkg-config data
  6124. { $as_echo "$as_me:${as_lineno-$LINENO}: using pakchois for PKCS#11 support" >&5
  6125. $as_echo "$as_me: using pakchois for PKCS#11 support" >&6;}
  6126. $as_echo "#define HAVE_PAKCHOIS 1" >>confdefs.h
  6127. CPPFLAGS="$CPPFLAGS ${NE_PK11_CFLAGS}"
  6128. NEON_LIBS="${NEON_LIBS} ${NE_PK11_LIBS}"
  6129. else
  6130. : No pkg-config for pakchois provided
  6131. { $as_echo "$as_me:${as_lineno-$LINENO}: pakchois library not found; no PKCS#11 support" >&5
  6132. $as_echo "$as_me: pakchois library not found; no PKCS#11 support" >&6;}
  6133. fi
  6134. fi
  6135. ;;
  6136. esac
  6137. # Check whether --with-gssapi was given.
  6138. if test "${with_gssapi+set}" = set; then :
  6139. withval=$with_gssapi;
  6140. fi
  6141. if test "$with_gssapi" != "no"; then
  6142. # Extract the first word of "krb5-config", so it can be a program name with args.
  6143. set dummy krb5-config; ac_word=$2
  6144. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6145. $as_echo_n "checking for $ac_word... " >&6; }
  6146. if ${ac_cv_path_KRB5_CONFIG+:} false; then :
  6147. $as_echo_n "(cached) " >&6
  6148. else
  6149. case $KRB5_CONFIG in
  6150. [\\/]* | ?:[\\/]*)
  6151. ac_cv_path_KRB5_CONFIG="$KRB5_CONFIG" # Let the user override the test with a path.
  6152. ;;
  6153. *)
  6154. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6155. as_dummy="$PATH:/usr/kerberos/bin"
  6156. for as_dir in $as_dummy
  6157. do
  6158. IFS=$as_save_IFS
  6159. test -z "$as_dir" && as_dir=.
  6160. for ac_exec_ext in '' $ac_executable_extensions; do
  6161. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  6162. ac_cv_path_KRB5_CONFIG="$as_dir/$ac_word$ac_exec_ext"
  6163. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6164. break 2
  6165. fi
  6166. done
  6167. done
  6168. IFS=$as_save_IFS
  6169. test -z "$ac_cv_path_KRB5_CONFIG" && ac_cv_path_KRB5_CONFIG="none"
  6170. ;;
  6171. esac
  6172. fi
  6173. KRB5_CONFIG=$ac_cv_path_KRB5_CONFIG
  6174. if test -n "$KRB5_CONFIG"; then
  6175. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $KRB5_CONFIG" >&5
  6176. $as_echo "$KRB5_CONFIG" >&6; }
  6177. else
  6178. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6179. $as_echo "no" >&6; }
  6180. fi
  6181. else
  6182. KRB5_CONFIG=none
  6183. fi
  6184. if test "x$KRB5_CONFIG" != "xnone"; then
  6185. ne_save_CPPFLAGS=$CPPFLAGS
  6186. ne_save_LIBS=$NEON_LIBS
  6187. NEON_LIBS="$NEON_LIBS `${KRB5_CONFIG} --libs gssapi`"
  6188. CPPFLAGS="$CPPFLAGS `${KRB5_CONFIG} --cflags gssapi`"
  6189. # MIT and Heimdal put gssapi.h in different places
  6190. for ac_header in gssapi/gssapi.h gssapi.h
  6191. do :
  6192. as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
  6193. ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
  6194. if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
  6195. cat >>confdefs.h <<_ACEOF
  6196. #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
  6197. _ACEOF
  6198. ne_cf_save_LIBS=$LIBS
  6199. LIBS="$LIBS $NEON_LIBS"
  6200. for ac_func in gss_init_sec_context
  6201. do :
  6202. ac_fn_c_check_func "$LINENO" "gss_init_sec_context" "ac_cv_func_gss_init_sec_context"
  6203. if test "x$ac_cv_func_gss_init_sec_context" = xyes; then :
  6204. cat >>confdefs.h <<_ACEOF
  6205. #define HAVE_GSS_INIT_SEC_CONTEXT 1
  6206. _ACEOF
  6207. ne_save_CPPFLAGS=$CPPFLAGS
  6208. ne_save_LIBS=$NEON_LIBS
  6209. { $as_echo "$as_me:${as_lineno-$LINENO}: GSSAPI authentication support enabled" >&5
  6210. $as_echo "$as_me: GSSAPI authentication support enabled" >&6;}
  6211. $as_echo "#define HAVE_GSSAPI 1" >>confdefs.h
  6212. for ac_header in gssapi/gssapi_generic.h
  6213. do :
  6214. ac_fn_c_check_header_mongrel "$LINENO" "gssapi/gssapi_generic.h" "ac_cv_header_gssapi_gssapi_generic_h" "$ac_includes_default"
  6215. if test "x$ac_cv_header_gssapi_gssapi_generic_h" = xyes; then :
  6216. cat >>confdefs.h <<_ACEOF
  6217. #define HAVE_GSSAPI_GSSAPI_GENERIC_H 1
  6218. _ACEOF
  6219. fi
  6220. done
  6221. # Older versions of MIT Kerberos lack GSS_C_NT_HOSTBASED_SERVICE
  6222. 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
  6223. #include <gssapi/gssapi.h>
  6224. #else
  6225. #include <gssapi.h>
  6226. #endif
  6227. "
  6228. if test "x$ac_cv_have_decl_GSS_C_NT_HOSTBASED_SERVICE" = xyes; then :
  6229. else
  6230. $as_echo "#define GSS_C_NT_HOSTBASED_SERVICE gss_nt_service_name" >>confdefs.h
  6231. fi
  6232. fi
  6233. done
  6234. LIBS=$ne_cf_save_LIBS
  6235. break
  6236. fi
  6237. done
  6238. CPPFLAGS=$ne_save_CPPFLAGS
  6239. NEON_LIBS=$ne_save_LIBS
  6240. fi
  6241. # Check whether --with-libproxy was given.
  6242. if test "${with_libproxy+set}" = set; then :
  6243. withval=$with_libproxy;
  6244. fi
  6245. if test "x$with_libproxy" != "xno"; then
  6246. # Extract the first word of "pkg-config", so it can be a program name with args.
  6247. set dummy pkg-config; ac_word=$2
  6248. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6249. $as_echo_n "checking for $ac_word... " >&6; }
  6250. if ${ac_cv_path_PKG_CONFIG+:} false; then :
  6251. $as_echo_n "(cached) " >&6
  6252. else
  6253. case $PKG_CONFIG in
  6254. [\\/]* | ?:[\\/]*)
  6255. ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
  6256. ;;
  6257. *)
  6258. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6259. for as_dir in $PATH
  6260. do
  6261. IFS=$as_save_IFS
  6262. test -z "$as_dir" && as_dir=.
  6263. for ac_exec_ext in '' $ac_executable_extensions; do
  6264. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  6265. ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
  6266. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6267. break 2
  6268. fi
  6269. done
  6270. done
  6271. IFS=$as_save_IFS
  6272. test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
  6273. ;;
  6274. esac
  6275. fi
  6276. PKG_CONFIG=$ac_cv_path_PKG_CONFIG
  6277. if test -n "$PKG_CONFIG"; then
  6278. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
  6279. $as_echo "$PKG_CONFIG" >&6; }
  6280. else
  6281. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6282. $as_echo "no" >&6; }
  6283. fi
  6284. if test "$PKG_CONFIG" = "no"; then
  6285. : Not using pkg-config
  6286. NE_FLAG_LIBPXY=no
  6287. ne_LIBPXY_message="libproxy support not enabled"
  6288. { $as_echo "$as_me:${as_lineno-$LINENO}: libproxy support not enabled" >&5
  6289. $as_echo "$as_me: libproxy support not enabled" >&6;}
  6290. else
  6291. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libproxy-1.0 pkg-config data" >&5
  6292. $as_echo_n "checking for libproxy-1.0 pkg-config data... " >&6; }
  6293. if ${ne_cv_pkg_libproxy_1_0+:} false; then :
  6294. $as_echo_n "(cached) " >&6
  6295. else
  6296. if $PKG_CONFIG libproxy-1.0; then
  6297. ne_cv_pkg_libproxy_1_0=yes
  6298. else
  6299. ne_cv_pkg_libproxy_1_0=no
  6300. fi
  6301. fi
  6302. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ne_cv_pkg_libproxy_1_0" >&5
  6303. $as_echo "$ne_cv_pkg_libproxy_1_0" >&6; }
  6304. if test "$ne_cv_pkg_libproxy_1_0" = "yes"; then
  6305. NE_PXY_CFLAGS=`$PKG_CONFIG --cflags libproxy-1.0`
  6306. NE_PXY_LIBS=`$PKG_CONFIG --libs libproxy-1.0`
  6307. : Using provided pkg-config data
  6308. $as_echo "#define HAVE_LIBPROXY 1" >>confdefs.h
  6309. CPPFLAGS="$CPPFLAGS $NE_PXY_CFLAGS"
  6310. NEON_LIBS="$NEON_LIBS ${NE_PXY_LIBS}"
  6311. NE_FLAG_LIBPXY=yes
  6312. $as_echo "#define NE_HAVE_LIBPXY 1" >>confdefs.h
  6313. ne_LIBPXY_message="libproxy support enabled"
  6314. { $as_echo "$as_me:${as_lineno-$LINENO}: libproxy support enabled" >&5
  6315. $as_echo "$as_me: libproxy support enabled" >&6;}
  6316. else
  6317. : No pkg-config for libproxy-1.0 provided
  6318. NE_FLAG_LIBPXY=no
  6319. ne_LIBPXY_message="libproxy support not enabled"
  6320. { $as_echo "$as_me:${as_lineno-$LINENO}: libproxy support not enabled" >&5
  6321. $as_echo "$as_me: libproxy support not enabled" >&6;}
  6322. fi
  6323. fi
  6324. else
  6325. NE_FLAG_LIBPXY=no
  6326. ne_LIBPXY_message="libproxy support not enabled"
  6327. { $as_echo "$as_me:${as_lineno-$LINENO}: libproxy support not enabled" >&5
  6328. $as_echo "$as_me: libproxy support not enabled" >&6;}
  6329. fi
  6330. # Check whether --enable-shared was given.
  6331. if test "${enable_shared+set}" = set; then :
  6332. enableval=$enable_shared; p=${PACKAGE-default}
  6333. case $enableval in
  6334. yes) enable_shared=yes ;;
  6335. no) enable_shared=no ;;
  6336. *)
  6337. enable_shared=no
  6338. # Look at the argument we got. We use all the common list separators.
  6339. lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
  6340. for pkg in $enableval; do
  6341. IFS=$lt_save_ifs
  6342. if test "X$pkg" = "X$p"; then
  6343. enable_shared=yes
  6344. fi
  6345. done
  6346. IFS=$lt_save_ifs
  6347. ;;
  6348. esac
  6349. else
  6350. enable_shared=no
  6351. fi
  6352. case `pwd` in
  6353. *\ * | *\ *)
  6354. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
  6355. $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
  6356. esac
  6357. macro_version='2.4.6'
  6358. macro_revision='2.4.6'
  6359. ltmain=$ac_aux_dir/ltmain.sh
  6360. # Make sure we can run config.sub.
  6361. $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
  6362. as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
  6363. { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
  6364. $as_echo_n "checking build system type... " >&6; }
  6365. if ${ac_cv_build+:} false; then :
  6366. $as_echo_n "(cached) " >&6
  6367. else
  6368. ac_build_alias=$build_alias
  6369. test "x$ac_build_alias" = x &&
  6370. ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
  6371. test "x$ac_build_alias" = x &&
  6372. as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
  6373. ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
  6374. as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
  6375. fi
  6376. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
  6377. $as_echo "$ac_cv_build" >&6; }
  6378. case $ac_cv_build in
  6379. *-*-*) ;;
  6380. *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
  6381. esac
  6382. build=$ac_cv_build
  6383. ac_save_IFS=$IFS; IFS='-'
  6384. set x $ac_cv_build
  6385. shift
  6386. build_cpu=$1
  6387. build_vendor=$2
  6388. shift; shift
  6389. # Remember, the first character of IFS is used to create $*,
  6390. # except with old shells:
  6391. build_os=$*
  6392. IFS=$ac_save_IFS
  6393. case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
  6394. { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
  6395. $as_echo_n "checking host system type... " >&6; }
  6396. if ${ac_cv_host+:} false; then :
  6397. $as_echo_n "(cached) " >&6
  6398. else
  6399. if test "x$host_alias" = x; then
  6400. ac_cv_host=$ac_cv_build
  6401. else
  6402. ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
  6403. as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
  6404. fi
  6405. fi
  6406. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
  6407. $as_echo "$ac_cv_host" >&6; }
  6408. case $ac_cv_host in
  6409. *-*-*) ;;
  6410. *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
  6411. esac
  6412. host=$ac_cv_host
  6413. ac_save_IFS=$IFS; IFS='-'
  6414. set x $ac_cv_host
  6415. shift
  6416. host_cpu=$1
  6417. host_vendor=$2
  6418. shift; shift
  6419. # Remember, the first character of IFS is used to create $*,
  6420. # except with old shells:
  6421. host_os=$*
  6422. IFS=$ac_save_IFS
  6423. case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
  6424. # Backslashify metacharacters that are still active within
  6425. # double-quoted strings.
  6426. sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
  6427. # Same as above, but do not quote variable references.
  6428. double_quote_subst='s/\(["`\\]\)/\\\1/g'
  6429. # Sed substitution to delay expansion of an escaped shell variable in a
  6430. # double_quote_subst'ed string.
  6431. delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
  6432. # Sed substitution to delay expansion of an escaped single quote.
  6433. delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
  6434. # Sed substitution to avoid accidental globbing in evaled expressions
  6435. no_glob_subst='s/\*/\\\*/g'
  6436. ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
  6437. ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
  6438. ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
  6439. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
  6440. $as_echo_n "checking how to print strings... " >&6; }
  6441. # Test print first, because it will be a builtin if present.
  6442. if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
  6443. test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
  6444. ECHO='print -r --'
  6445. elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
  6446. ECHO='printf %s\n'
  6447. else
  6448. # Use this function as a fallback that always works.
  6449. func_fallback_echo ()
  6450. {
  6451. eval 'cat <<_LTECHO_EOF
  6452. $1
  6453. _LTECHO_EOF'
  6454. }
  6455. ECHO='func_fallback_echo'
  6456. fi
  6457. # func_echo_all arg...
  6458. # Invoke $ECHO with all args, space-separated.
  6459. func_echo_all ()
  6460. {
  6461. $ECHO ""
  6462. }
  6463. case $ECHO in
  6464. printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
  6465. $as_echo "printf" >&6; } ;;
  6466. print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
  6467. $as_echo "print -r" >&6; } ;;
  6468. *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
  6469. $as_echo "cat" >&6; } ;;
  6470. esac
  6471. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
  6472. $as_echo_n "checking for a sed that does not truncate output... " >&6; }
  6473. if ${ac_cv_path_SED+:} false; then :
  6474. $as_echo_n "(cached) " >&6
  6475. else
  6476. ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
  6477. for ac_i in 1 2 3 4 5 6 7; do
  6478. ac_script="$ac_script$as_nl$ac_script"
  6479. done
  6480. echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
  6481. { ac_script=; unset ac_script;}
  6482. if test -z "$SED"; then
  6483. ac_path_SED_found=false
  6484. # Loop through the user's path and test for each of PROGNAME-LIST
  6485. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6486. for as_dir in $PATH
  6487. do
  6488. IFS=$as_save_IFS
  6489. test -z "$as_dir" && as_dir=.
  6490. for ac_prog in sed gsed; do
  6491. for ac_exec_ext in '' $ac_executable_extensions; do
  6492. ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
  6493. as_fn_executable_p "$ac_path_SED" || continue
  6494. # Check for GNU ac_path_SED and select it if it is found.
  6495. # Check for GNU $ac_path_SED
  6496. case `"$ac_path_SED" --version 2>&1` in
  6497. *GNU*)
  6498. ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
  6499. *)
  6500. ac_count=0
  6501. $as_echo_n 0123456789 >"conftest.in"
  6502. while :
  6503. do
  6504. cat "conftest.in" "conftest.in" >"conftest.tmp"
  6505. mv "conftest.tmp" "conftest.in"
  6506. cp "conftest.in" "conftest.nl"
  6507. $as_echo '' >> "conftest.nl"
  6508. "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
  6509. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  6510. as_fn_arith $ac_count + 1 && ac_count=$as_val
  6511. if test $ac_count -gt ${ac_path_SED_max-0}; then
  6512. # Best one so far, save it but keep looking for a better one
  6513. ac_cv_path_SED="$ac_path_SED"
  6514. ac_path_SED_max=$ac_count
  6515. fi
  6516. # 10*(2^10) chars as input seems more than enough
  6517. test $ac_count -gt 10 && break
  6518. done
  6519. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  6520. esac
  6521. $ac_path_SED_found && break 3
  6522. done
  6523. done
  6524. done
  6525. IFS=$as_save_IFS
  6526. if test -z "$ac_cv_path_SED"; then
  6527. as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
  6528. fi
  6529. else
  6530. ac_cv_path_SED=$SED
  6531. fi
  6532. fi
  6533. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
  6534. $as_echo "$ac_cv_path_SED" >&6; }
  6535. SED="$ac_cv_path_SED"
  6536. rm -f conftest.sed
  6537. test -z "$SED" && SED=sed
  6538. Xsed="$SED -e 1s/^X//"
  6539. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
  6540. $as_echo_n "checking for fgrep... " >&6; }
  6541. if ${ac_cv_path_FGREP+:} false; then :
  6542. $as_echo_n "(cached) " >&6
  6543. else
  6544. if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
  6545. then ac_cv_path_FGREP="$GREP -F"
  6546. else
  6547. if test -z "$FGREP"; then
  6548. ac_path_FGREP_found=false
  6549. # Loop through the user's path and test for each of PROGNAME-LIST
  6550. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6551. for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
  6552. do
  6553. IFS=$as_save_IFS
  6554. test -z "$as_dir" && as_dir=.
  6555. for ac_prog in fgrep; do
  6556. for ac_exec_ext in '' $ac_executable_extensions; do
  6557. ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
  6558. as_fn_executable_p "$ac_path_FGREP" || continue
  6559. # Check for GNU ac_path_FGREP and select it if it is found.
  6560. # Check for GNU $ac_path_FGREP
  6561. case `"$ac_path_FGREP" --version 2>&1` in
  6562. *GNU*)
  6563. ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
  6564. *)
  6565. ac_count=0
  6566. $as_echo_n 0123456789 >"conftest.in"
  6567. while :
  6568. do
  6569. cat "conftest.in" "conftest.in" >"conftest.tmp"
  6570. mv "conftest.tmp" "conftest.in"
  6571. cp "conftest.in" "conftest.nl"
  6572. $as_echo 'FGREP' >> "conftest.nl"
  6573. "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
  6574. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  6575. as_fn_arith $ac_count + 1 && ac_count=$as_val
  6576. if test $ac_count -gt ${ac_path_FGREP_max-0}; then
  6577. # Best one so far, save it but keep looking for a better one
  6578. ac_cv_path_FGREP="$ac_path_FGREP"
  6579. ac_path_FGREP_max=$ac_count
  6580. fi
  6581. # 10*(2^10) chars as input seems more than enough
  6582. test $ac_count -gt 10 && break
  6583. done
  6584. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  6585. esac
  6586. $ac_path_FGREP_found && break 3
  6587. done
  6588. done
  6589. done
  6590. IFS=$as_save_IFS
  6591. if test -z "$ac_cv_path_FGREP"; then
  6592. as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
  6593. fi
  6594. else
  6595. ac_cv_path_FGREP=$FGREP
  6596. fi
  6597. fi
  6598. fi
  6599. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
  6600. $as_echo "$ac_cv_path_FGREP" >&6; }
  6601. FGREP="$ac_cv_path_FGREP"
  6602. test -z "$GREP" && GREP=grep
  6603. # Check whether --with-gnu-ld was given.
  6604. if test "${with_gnu_ld+set}" = set; then :
  6605. withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes
  6606. else
  6607. with_gnu_ld=no
  6608. fi
  6609. ac_prog=ld
  6610. if test yes = "$GCC"; then
  6611. # Check if gcc -print-prog-name=ld gives a path.
  6612. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
  6613. $as_echo_n "checking for ld used by $CC... " >&6; }
  6614. case $host in
  6615. *-*-mingw*)
  6616. # gcc leaves a trailing carriage return, which upsets mingw
  6617. ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
  6618. *)
  6619. ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
  6620. esac
  6621. case $ac_prog in
  6622. # Accept absolute paths.
  6623. [\\/]* | ?:[\\/]*)
  6624. re_direlt='/[^/][^/]*/\.\./'
  6625. # Canonicalize the pathname of ld
  6626. ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
  6627. while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
  6628. ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
  6629. done
  6630. test -z "$LD" && LD=$ac_prog
  6631. ;;
  6632. "")
  6633. # If it fails, then pretend we aren't using GCC.
  6634. ac_prog=ld
  6635. ;;
  6636. *)
  6637. # If it is relative, then search for the first ld in PATH.
  6638. with_gnu_ld=unknown
  6639. ;;
  6640. esac
  6641. elif test yes = "$with_gnu_ld"; then
  6642. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
  6643. $as_echo_n "checking for GNU ld... " >&6; }
  6644. else
  6645. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
  6646. $as_echo_n "checking for non-GNU ld... " >&6; }
  6647. fi
  6648. if ${lt_cv_path_LD+:} false; then :
  6649. $as_echo_n "(cached) " >&6
  6650. else
  6651. if test -z "$LD"; then
  6652. lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
  6653. for ac_dir in $PATH; do
  6654. IFS=$lt_save_ifs
  6655. test -z "$ac_dir" && ac_dir=.
  6656. if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
  6657. lt_cv_path_LD=$ac_dir/$ac_prog
  6658. # Check to see if the program is GNU ld. I'd rather use --version,
  6659. # but apparently some variants of GNU ld only accept -v.
  6660. # Break only if it was the GNU/non-GNU ld that we prefer.
  6661. case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
  6662. *GNU* | *'with BFD'*)
  6663. test no != "$with_gnu_ld" && break
  6664. ;;
  6665. *)
  6666. test yes != "$with_gnu_ld" && break
  6667. ;;
  6668. esac
  6669. fi
  6670. done
  6671. IFS=$lt_save_ifs
  6672. else
  6673. lt_cv_path_LD=$LD # Let the user override the test with a path.
  6674. fi
  6675. fi
  6676. LD=$lt_cv_path_LD
  6677. if test -n "$LD"; then
  6678. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
  6679. $as_echo "$LD" >&6; }
  6680. else
  6681. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6682. $as_echo "no" >&6; }
  6683. fi
  6684. test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
  6685. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
  6686. $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
  6687. if ${lt_cv_prog_gnu_ld+:} false; then :
  6688. $as_echo_n "(cached) " >&6
  6689. else
  6690. # I'd rather use --version here, but apparently some GNU lds only accept -v.
  6691. case `$LD -v 2>&1 </dev/null` in
  6692. *GNU* | *'with BFD'*)
  6693. lt_cv_prog_gnu_ld=yes
  6694. ;;
  6695. *)
  6696. lt_cv_prog_gnu_ld=no
  6697. ;;
  6698. esac
  6699. fi
  6700. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
  6701. $as_echo "$lt_cv_prog_gnu_ld" >&6; }
  6702. with_gnu_ld=$lt_cv_prog_gnu_ld
  6703. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
  6704. $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
  6705. if ${lt_cv_path_NM+:} false; then :
  6706. $as_echo_n "(cached) " >&6
  6707. else
  6708. if test -n "$NM"; then
  6709. # Let the user override the test.
  6710. lt_cv_path_NM=$NM
  6711. else
  6712. lt_nm_to_check=${ac_tool_prefix}nm
  6713. if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
  6714. lt_nm_to_check="$lt_nm_to_check nm"
  6715. fi
  6716. for lt_tmp_nm in $lt_nm_to_check; do
  6717. lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
  6718. for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
  6719. IFS=$lt_save_ifs
  6720. test -z "$ac_dir" && ac_dir=.
  6721. tmp_nm=$ac_dir/$lt_tmp_nm
  6722. if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext"; then
  6723. # Check to see if the nm accepts a BSD-compat flag.
  6724. # Adding the 'sed 1q' prevents false positives on HP-UX, which says:
  6725. # nm: unknown option "B" ignored
  6726. # Tru64's nm complains that /dev/null is an invalid object file
  6727. # MSYS converts /dev/null to NUL, MinGW nm treats NUL as empty
  6728. case $build_os in
  6729. mingw*) lt_bad_file=conftest.nm/nofile ;;
  6730. *) lt_bad_file=/dev/null ;;
  6731. esac
  6732. case `"$tmp_nm" -B $lt_bad_file 2>&1 | sed '1q'` in
  6733. *$lt_bad_file* | *'Invalid file or object type'*)
  6734. lt_cv_path_NM="$tmp_nm -B"
  6735. break 2
  6736. ;;
  6737. *)
  6738. case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
  6739. */dev/null*)
  6740. lt_cv_path_NM="$tmp_nm -p"
  6741. break 2
  6742. ;;
  6743. *)
  6744. lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
  6745. continue # so that we can try to find one that supports BSD flags
  6746. ;;
  6747. esac
  6748. ;;
  6749. esac
  6750. fi
  6751. done
  6752. IFS=$lt_save_ifs
  6753. done
  6754. : ${lt_cv_path_NM=no}
  6755. fi
  6756. fi
  6757. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
  6758. $as_echo "$lt_cv_path_NM" >&6; }
  6759. if test no != "$lt_cv_path_NM"; then
  6760. NM=$lt_cv_path_NM
  6761. else
  6762. # Didn't find any BSD compatible name lister, look for dumpbin.
  6763. if test -n "$DUMPBIN"; then :
  6764. # Let the user override the test.
  6765. else
  6766. if test -n "$ac_tool_prefix"; then
  6767. for ac_prog in dumpbin "link -dump"
  6768. do
  6769. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  6770. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  6771. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6772. $as_echo_n "checking for $ac_word... " >&6; }
  6773. if ${ac_cv_prog_DUMPBIN+:} false; then :
  6774. $as_echo_n "(cached) " >&6
  6775. else
  6776. if test -n "$DUMPBIN"; then
  6777. ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
  6778. else
  6779. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6780. for as_dir in $PATH
  6781. do
  6782. IFS=$as_save_IFS
  6783. test -z "$as_dir" && as_dir=.
  6784. for ac_exec_ext in '' $ac_executable_extensions; do
  6785. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  6786. ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
  6787. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6788. break 2
  6789. fi
  6790. done
  6791. done
  6792. IFS=$as_save_IFS
  6793. fi
  6794. fi
  6795. DUMPBIN=$ac_cv_prog_DUMPBIN
  6796. if test -n "$DUMPBIN"; then
  6797. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
  6798. $as_echo "$DUMPBIN" >&6; }
  6799. else
  6800. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6801. $as_echo "no" >&6; }
  6802. fi
  6803. test -n "$DUMPBIN" && break
  6804. done
  6805. fi
  6806. if test -z "$DUMPBIN"; then
  6807. ac_ct_DUMPBIN=$DUMPBIN
  6808. for ac_prog in dumpbin "link -dump"
  6809. do
  6810. # Extract the first word of "$ac_prog", so it can be a program name with args.
  6811. set dummy $ac_prog; ac_word=$2
  6812. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6813. $as_echo_n "checking for $ac_word... " >&6; }
  6814. if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
  6815. $as_echo_n "(cached) " >&6
  6816. else
  6817. if test -n "$ac_ct_DUMPBIN"; then
  6818. ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
  6819. else
  6820. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6821. for as_dir in $PATH
  6822. do
  6823. IFS=$as_save_IFS
  6824. test -z "$as_dir" && as_dir=.
  6825. for ac_exec_ext in '' $ac_executable_extensions; do
  6826. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  6827. ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
  6828. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6829. break 2
  6830. fi
  6831. done
  6832. done
  6833. IFS=$as_save_IFS
  6834. fi
  6835. fi
  6836. ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
  6837. if test -n "$ac_ct_DUMPBIN"; then
  6838. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
  6839. $as_echo "$ac_ct_DUMPBIN" >&6; }
  6840. else
  6841. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6842. $as_echo "no" >&6; }
  6843. fi
  6844. test -n "$ac_ct_DUMPBIN" && break
  6845. done
  6846. if test "x$ac_ct_DUMPBIN" = x; then
  6847. DUMPBIN=":"
  6848. else
  6849. case $cross_compiling:$ac_tool_warned in
  6850. yes:)
  6851. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  6852. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  6853. ac_tool_warned=yes ;;
  6854. esac
  6855. DUMPBIN=$ac_ct_DUMPBIN
  6856. fi
  6857. fi
  6858. case `$DUMPBIN -symbols -headers /dev/null 2>&1 | sed '1q'` in
  6859. *COFF*)
  6860. DUMPBIN="$DUMPBIN -symbols -headers"
  6861. ;;
  6862. *)
  6863. DUMPBIN=:
  6864. ;;
  6865. esac
  6866. fi
  6867. if test : != "$DUMPBIN"; then
  6868. NM=$DUMPBIN
  6869. fi
  6870. fi
  6871. test -z "$NM" && NM=nm
  6872. { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
  6873. $as_echo_n "checking the name lister ($NM) interface... " >&6; }
  6874. if ${lt_cv_nm_interface+:} false; then :
  6875. $as_echo_n "(cached) " >&6
  6876. else
  6877. lt_cv_nm_interface="BSD nm"
  6878. echo "int some_variable = 0;" > conftest.$ac_ext
  6879. (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
  6880. (eval "$ac_compile" 2>conftest.err)
  6881. cat conftest.err >&5
  6882. (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
  6883. (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
  6884. cat conftest.err >&5
  6885. (eval echo "\"\$as_me:$LINENO: output\"" >&5)
  6886. cat conftest.out >&5
  6887. if $GREP 'External.*some_variable' conftest.out > /dev/null; then
  6888. lt_cv_nm_interface="MS dumpbin"
  6889. fi
  6890. rm -f conftest*
  6891. fi
  6892. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
  6893. $as_echo "$lt_cv_nm_interface" >&6; }
  6894. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
  6895. $as_echo_n "checking whether ln -s works... " >&6; }
  6896. LN_S=$as_ln_s
  6897. if test "$LN_S" = "ln -s"; then
  6898. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  6899. $as_echo "yes" >&6; }
  6900. else
  6901. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
  6902. $as_echo "no, using $LN_S" >&6; }
  6903. fi
  6904. # find the maximum length of command line arguments
  6905. { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
  6906. $as_echo_n "checking the maximum length of command line arguments... " >&6; }
  6907. if ${lt_cv_sys_max_cmd_len+:} false; then :
  6908. $as_echo_n "(cached) " >&6
  6909. else
  6910. i=0
  6911. teststring=ABCD
  6912. case $build_os in
  6913. msdosdjgpp*)
  6914. # On DJGPP, this test can blow up pretty badly due to problems in libc
  6915. # (any single argument exceeding 2000 bytes causes a buffer overrun
  6916. # during glob expansion). Even if it were fixed, the result of this
  6917. # check would be larger than it should be.
  6918. lt_cv_sys_max_cmd_len=12288; # 12K is about right
  6919. ;;
  6920. gnu*)
  6921. # Under GNU Hurd, this test is not required because there is
  6922. # no limit to the length of command line arguments.
  6923. # Libtool will interpret -1 as no limit whatsoever
  6924. lt_cv_sys_max_cmd_len=-1;
  6925. ;;
  6926. cygwin* | mingw* | cegcc*)
  6927. # On Win9x/ME, this test blows up -- it succeeds, but takes
  6928. # about 5 minutes as the teststring grows exponentially.
  6929. # Worse, since 9x/ME are not pre-emptively multitasking,
  6930. # you end up with a "frozen" computer, even though with patience
  6931. # the test eventually succeeds (with a max line length of 256k).
  6932. # Instead, let's just punt: use the minimum linelength reported by
  6933. # all of the supported platforms: 8192 (on NT/2K/XP).
  6934. lt_cv_sys_max_cmd_len=8192;
  6935. ;;
  6936. mint*)
  6937. # On MiNT this can take a long time and run out of memory.
  6938. lt_cv_sys_max_cmd_len=8192;
  6939. ;;
  6940. amigaos*)
  6941. # On AmigaOS with pdksh, this test takes hours, literally.
  6942. # So we just punt and use a minimum line length of 8192.
  6943. lt_cv_sys_max_cmd_len=8192;
  6944. ;;
  6945. bitrig* | darwin* | dragonfly* | freebsd* | netbsd* | openbsd*)
  6946. # This has been around since 386BSD, at least. Likely further.
  6947. if test -x /sbin/sysctl; then
  6948. lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
  6949. elif test -x /usr/sbin/sysctl; then
  6950. lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
  6951. else
  6952. lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
  6953. fi
  6954. # And add a safety zone
  6955. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
  6956. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
  6957. ;;
  6958. interix*)
  6959. # We know the value 262144 and hardcode it with a safety zone (like BSD)
  6960. lt_cv_sys_max_cmd_len=196608
  6961. ;;
  6962. os2*)
  6963. # The test takes a long time on OS/2.
  6964. lt_cv_sys_max_cmd_len=8192
  6965. ;;
  6966. osf*)
  6967. # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
  6968. # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
  6969. # nice to cause kernel panics so lets avoid the loop below.
  6970. # First set a reasonable default.
  6971. lt_cv_sys_max_cmd_len=16384
  6972. #
  6973. if test -x /sbin/sysconfig; then
  6974. case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
  6975. *1*) lt_cv_sys_max_cmd_len=-1 ;;
  6976. esac
  6977. fi
  6978. ;;
  6979. sco3.2v5*)
  6980. lt_cv_sys_max_cmd_len=102400
  6981. ;;
  6982. sysv5* | sco5v6* | sysv4.2uw2*)
  6983. kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
  6984. if test -n "$kargmax"; then
  6985. lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
  6986. else
  6987. lt_cv_sys_max_cmd_len=32768
  6988. fi
  6989. ;;
  6990. *)
  6991. lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
  6992. if test -n "$lt_cv_sys_max_cmd_len" && \
  6993. test undefined != "$lt_cv_sys_max_cmd_len"; then
  6994. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
  6995. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
  6996. else
  6997. # Make teststring a little bigger before we do anything with it.
  6998. # a 1K string should be a reasonable start.
  6999. for i in 1 2 3 4 5 6 7 8; do
  7000. teststring=$teststring$teststring
  7001. done
  7002. SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
  7003. # If test is not a shell built-in, we'll probably end up computing a
  7004. # maximum length that is only half of the actual maximum length, but
  7005. # we can't tell.
  7006. while { test X`env echo "$teststring$teststring" 2>/dev/null` \
  7007. = "X$teststring$teststring"; } >/dev/null 2>&1 &&
  7008. test 17 != "$i" # 1/2 MB should be enough
  7009. do
  7010. i=`expr $i + 1`
  7011. teststring=$teststring$teststring
  7012. done
  7013. # Only check the string length outside the loop.
  7014. lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
  7015. teststring=
  7016. # Add a significant safety factor because C++ compilers can tack on
  7017. # massive amounts of additional arguments before passing them to the
  7018. # linker. It appears as though 1/2 is a usable value.
  7019. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
  7020. fi
  7021. ;;
  7022. esac
  7023. fi
  7024. if test -n "$lt_cv_sys_max_cmd_len"; then
  7025. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
  7026. $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
  7027. else
  7028. { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
  7029. $as_echo "none" >&6; }
  7030. fi
  7031. max_cmd_len=$lt_cv_sys_max_cmd_len
  7032. : ${CP="cp -f"}
  7033. : ${MV="mv -f"}
  7034. : ${RM="rm -f"}
  7035. if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
  7036. lt_unset=unset
  7037. else
  7038. lt_unset=false
  7039. fi
  7040. # test EBCDIC or ASCII
  7041. case `echo X|tr X '\101'` in
  7042. A) # ASCII based system
  7043. # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
  7044. lt_SP2NL='tr \040 \012'
  7045. lt_NL2SP='tr \015\012 \040\040'
  7046. ;;
  7047. *) # EBCDIC based system
  7048. lt_SP2NL='tr \100 \n'
  7049. lt_NL2SP='tr \r\n \100\100'
  7050. ;;
  7051. esac
  7052. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
  7053. $as_echo_n "checking how to convert $build file names to $host format... " >&6; }
  7054. if ${lt_cv_to_host_file_cmd+:} false; then :
  7055. $as_echo_n "(cached) " >&6
  7056. else
  7057. case $host in
  7058. *-*-mingw* )
  7059. case $build in
  7060. *-*-mingw* ) # actually msys
  7061. lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
  7062. ;;
  7063. *-*-cygwin* )
  7064. lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
  7065. ;;
  7066. * ) # otherwise, assume *nix
  7067. lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
  7068. ;;
  7069. esac
  7070. ;;
  7071. *-*-cygwin* )
  7072. case $build in
  7073. *-*-mingw* ) # actually msys
  7074. lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
  7075. ;;
  7076. *-*-cygwin* )
  7077. lt_cv_to_host_file_cmd=func_convert_file_noop
  7078. ;;
  7079. * ) # otherwise, assume *nix
  7080. lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
  7081. ;;
  7082. esac
  7083. ;;
  7084. * ) # unhandled hosts (and "normal" native builds)
  7085. lt_cv_to_host_file_cmd=func_convert_file_noop
  7086. ;;
  7087. esac
  7088. fi
  7089. to_host_file_cmd=$lt_cv_to_host_file_cmd
  7090. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
  7091. $as_echo "$lt_cv_to_host_file_cmd" >&6; }
  7092. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
  7093. $as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
  7094. if ${lt_cv_to_tool_file_cmd+:} false; then :
  7095. $as_echo_n "(cached) " >&6
  7096. else
  7097. #assume ordinary cross tools, or native build.
  7098. lt_cv_to_tool_file_cmd=func_convert_file_noop
  7099. case $host in
  7100. *-*-mingw* )
  7101. case $build in
  7102. *-*-mingw* ) # actually msys
  7103. lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
  7104. ;;
  7105. esac
  7106. ;;
  7107. esac
  7108. fi
  7109. to_tool_file_cmd=$lt_cv_to_tool_file_cmd
  7110. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
  7111. $as_echo "$lt_cv_to_tool_file_cmd" >&6; }
  7112. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
  7113. $as_echo_n "checking for $LD option to reload object files... " >&6; }
  7114. if ${lt_cv_ld_reload_flag+:} false; then :
  7115. $as_echo_n "(cached) " >&6
  7116. else
  7117. lt_cv_ld_reload_flag='-r'
  7118. fi
  7119. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
  7120. $as_echo "$lt_cv_ld_reload_flag" >&6; }
  7121. reload_flag=$lt_cv_ld_reload_flag
  7122. case $reload_flag in
  7123. "" | " "*) ;;
  7124. *) reload_flag=" $reload_flag" ;;
  7125. esac
  7126. reload_cmds='$LD$reload_flag -o $output$reload_objs'
  7127. case $host_os in
  7128. cygwin* | mingw* | pw32* | cegcc*)
  7129. if test yes != "$GCC"; then
  7130. reload_cmds=false
  7131. fi
  7132. ;;
  7133. darwin*)
  7134. if test yes = "$GCC"; then
  7135. reload_cmds='$LTCC $LTCFLAGS -nostdlib $wl-r -o $output$reload_objs'
  7136. else
  7137. reload_cmds='$LD$reload_flag -o $output$reload_objs'
  7138. fi
  7139. ;;
  7140. esac
  7141. if test -n "$ac_tool_prefix"; then
  7142. # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
  7143. set dummy ${ac_tool_prefix}objdump; ac_word=$2
  7144. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  7145. $as_echo_n "checking for $ac_word... " >&6; }
  7146. if ${ac_cv_prog_OBJDUMP+:} false; then :
  7147. $as_echo_n "(cached) " >&6
  7148. else
  7149. if test -n "$OBJDUMP"; then
  7150. ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
  7151. else
  7152. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  7153. for as_dir in $PATH
  7154. do
  7155. IFS=$as_save_IFS
  7156. test -z "$as_dir" && as_dir=.
  7157. for ac_exec_ext in '' $ac_executable_extensions; do
  7158. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  7159. ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
  7160. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  7161. break 2
  7162. fi
  7163. done
  7164. done
  7165. IFS=$as_save_IFS
  7166. fi
  7167. fi
  7168. OBJDUMP=$ac_cv_prog_OBJDUMP
  7169. if test -n "$OBJDUMP"; then
  7170. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
  7171. $as_echo "$OBJDUMP" >&6; }
  7172. else
  7173. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7174. $as_echo "no" >&6; }
  7175. fi
  7176. fi
  7177. if test -z "$ac_cv_prog_OBJDUMP"; then
  7178. ac_ct_OBJDUMP=$OBJDUMP
  7179. # Extract the first word of "objdump", so it can be a program name with args.
  7180. set dummy objdump; ac_word=$2
  7181. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  7182. $as_echo_n "checking for $ac_word... " >&6; }
  7183. if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
  7184. $as_echo_n "(cached) " >&6
  7185. else
  7186. if test -n "$ac_ct_OBJDUMP"; then
  7187. ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
  7188. else
  7189. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  7190. for as_dir in $PATH
  7191. do
  7192. IFS=$as_save_IFS
  7193. test -z "$as_dir" && as_dir=.
  7194. for ac_exec_ext in '' $ac_executable_extensions; do
  7195. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  7196. ac_cv_prog_ac_ct_OBJDUMP="objdump"
  7197. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  7198. break 2
  7199. fi
  7200. done
  7201. done
  7202. IFS=$as_save_IFS
  7203. fi
  7204. fi
  7205. ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
  7206. if test -n "$ac_ct_OBJDUMP"; then
  7207. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
  7208. $as_echo "$ac_ct_OBJDUMP" >&6; }
  7209. else
  7210. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7211. $as_echo "no" >&6; }
  7212. fi
  7213. if test "x$ac_ct_OBJDUMP" = x; then
  7214. OBJDUMP="false"
  7215. else
  7216. case $cross_compiling:$ac_tool_warned in
  7217. yes:)
  7218. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  7219. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  7220. ac_tool_warned=yes ;;
  7221. esac
  7222. OBJDUMP=$ac_ct_OBJDUMP
  7223. fi
  7224. else
  7225. OBJDUMP="$ac_cv_prog_OBJDUMP"
  7226. fi
  7227. test -z "$OBJDUMP" && OBJDUMP=objdump
  7228. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
  7229. $as_echo_n "checking how to recognize dependent libraries... " >&6; }
  7230. if ${lt_cv_deplibs_check_method+:} false; then :
  7231. $as_echo_n "(cached) " >&6
  7232. else
  7233. lt_cv_file_magic_cmd='$MAGIC_CMD'
  7234. lt_cv_file_magic_test_file=
  7235. lt_cv_deplibs_check_method='unknown'
  7236. # Need to set the preceding variable on all platforms that support
  7237. # interlibrary dependencies.
  7238. # 'none' -- dependencies not supported.
  7239. # 'unknown' -- same as none, but documents that we really don't know.
  7240. # 'pass_all' -- all dependencies passed with no checks.
  7241. # 'test_compile' -- check by making test program.
  7242. # 'file_magic [[regex]]' -- check by looking for files in library path
  7243. # that responds to the $file_magic_cmd with a given extended regex.
  7244. # If you have 'file' or equivalent on your system and you're not sure
  7245. # whether 'pass_all' will *always* work, you probably want this one.
  7246. case $host_os in
  7247. aix[4-9]*)
  7248. lt_cv_deplibs_check_method=pass_all
  7249. ;;
  7250. beos*)
  7251. lt_cv_deplibs_check_method=pass_all
  7252. ;;
  7253. bsdi[45]*)
  7254. lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
  7255. lt_cv_file_magic_cmd='/usr/bin/file -L'
  7256. lt_cv_file_magic_test_file=/shlib/libc.so
  7257. ;;
  7258. cygwin*)
  7259. # func_win32_libid is a shell function defined in ltmain.sh
  7260. lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
  7261. lt_cv_file_magic_cmd='func_win32_libid'
  7262. ;;
  7263. mingw* | pw32*)
  7264. # Base MSYS/MinGW do not provide the 'file' command needed by
  7265. # func_win32_libid shell function, so use a weaker test based on 'objdump',
  7266. # unless we find 'file', for example because we are cross-compiling.
  7267. if ( file / ) >/dev/null 2>&1; then
  7268. lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
  7269. lt_cv_file_magic_cmd='func_win32_libid'
  7270. else
  7271. # Keep this pattern in sync with the one in func_win32_libid.
  7272. lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
  7273. lt_cv_file_magic_cmd='$OBJDUMP -f'
  7274. fi
  7275. ;;
  7276. cegcc*)
  7277. # use the weaker test based on 'objdump'. See mingw*.
  7278. lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
  7279. lt_cv_file_magic_cmd='$OBJDUMP -f'
  7280. ;;
  7281. darwin* | rhapsody*)
  7282. lt_cv_deplibs_check_method=pass_all
  7283. ;;
  7284. freebsd* | dragonfly*)
  7285. if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
  7286. case $host_cpu in
  7287. i*86 )
  7288. # Not sure whether the presence of OpenBSD here was a mistake.
  7289. # Let's accept both of them until this is cleared up.
  7290. lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
  7291. lt_cv_file_magic_cmd=/usr/bin/file
  7292. lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
  7293. ;;
  7294. esac
  7295. else
  7296. lt_cv_deplibs_check_method=pass_all
  7297. fi
  7298. ;;
  7299. haiku*)
  7300. lt_cv_deplibs_check_method=pass_all
  7301. ;;
  7302. hpux10.20* | hpux11*)
  7303. lt_cv_file_magic_cmd=/usr/bin/file
  7304. case $host_cpu in
  7305. ia64*)
  7306. lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
  7307. lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
  7308. ;;
  7309. hppa*64*)
  7310. 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]'
  7311. lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
  7312. ;;
  7313. *)
  7314. lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
  7315. lt_cv_file_magic_test_file=/usr/lib/libc.sl
  7316. ;;
  7317. esac
  7318. ;;
  7319. interix[3-9]*)
  7320. # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
  7321. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
  7322. ;;
  7323. irix5* | irix6* | nonstopux*)
  7324. case $LD in
  7325. *-32|*"-32 ") libmagic=32-bit;;
  7326. *-n32|*"-n32 ") libmagic=N32;;
  7327. *-64|*"-64 ") libmagic=64-bit;;
  7328. *) libmagic=never-match;;
  7329. esac
  7330. lt_cv_deplibs_check_method=pass_all
  7331. ;;
  7332. # This must be glibc/ELF.
  7333. linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
  7334. lt_cv_deplibs_check_method=pass_all
  7335. ;;
  7336. netbsd*)
  7337. if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
  7338. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
  7339. else
  7340. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
  7341. fi
  7342. ;;
  7343. newos6*)
  7344. lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
  7345. lt_cv_file_magic_cmd=/usr/bin/file
  7346. lt_cv_file_magic_test_file=/usr/lib/libnls.so
  7347. ;;
  7348. *nto* | *qnx*)
  7349. lt_cv_deplibs_check_method=pass_all
  7350. ;;
  7351. openbsd* | bitrig*)
  7352. if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
  7353. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
  7354. else
  7355. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
  7356. fi
  7357. ;;
  7358. osf3* | osf4* | osf5*)
  7359. lt_cv_deplibs_check_method=pass_all
  7360. ;;
  7361. rdos*)
  7362. lt_cv_deplibs_check_method=pass_all
  7363. ;;
  7364. solaris*)
  7365. lt_cv_deplibs_check_method=pass_all
  7366. ;;
  7367. sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
  7368. lt_cv_deplibs_check_method=pass_all
  7369. ;;
  7370. sysv4 | sysv4.3*)
  7371. case $host_vendor in
  7372. motorola)
  7373. 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]'
  7374. lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
  7375. ;;
  7376. ncr)
  7377. lt_cv_deplibs_check_method=pass_all
  7378. ;;
  7379. sequent)
  7380. lt_cv_file_magic_cmd='/bin/file'
  7381. lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
  7382. ;;
  7383. sni)
  7384. lt_cv_file_magic_cmd='/bin/file'
  7385. lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
  7386. lt_cv_file_magic_test_file=/lib/libc.so
  7387. ;;
  7388. siemens)
  7389. lt_cv_deplibs_check_method=pass_all
  7390. ;;
  7391. pc)
  7392. lt_cv_deplibs_check_method=pass_all
  7393. ;;
  7394. esac
  7395. ;;
  7396. tpf*)
  7397. lt_cv_deplibs_check_method=pass_all
  7398. ;;
  7399. os2*)
  7400. lt_cv_deplibs_check_method=pass_all
  7401. ;;
  7402. esac
  7403. fi
  7404. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
  7405. $as_echo "$lt_cv_deplibs_check_method" >&6; }
  7406. file_magic_glob=
  7407. want_nocaseglob=no
  7408. if test "$build" = "$host"; then
  7409. case $host_os in
  7410. mingw* | pw32*)
  7411. if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
  7412. want_nocaseglob=yes
  7413. else
  7414. file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
  7415. fi
  7416. ;;
  7417. esac
  7418. fi
  7419. file_magic_cmd=$lt_cv_file_magic_cmd
  7420. deplibs_check_method=$lt_cv_deplibs_check_method
  7421. test -z "$deplibs_check_method" && deplibs_check_method=unknown
  7422. if test -n "$ac_tool_prefix"; then
  7423. # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
  7424. set dummy ${ac_tool_prefix}dlltool; ac_word=$2
  7425. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  7426. $as_echo_n "checking for $ac_word... " >&6; }
  7427. if ${ac_cv_prog_DLLTOOL+:} false; then :
  7428. $as_echo_n "(cached) " >&6
  7429. else
  7430. if test -n "$DLLTOOL"; then
  7431. ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
  7432. else
  7433. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  7434. for as_dir in $PATH
  7435. do
  7436. IFS=$as_save_IFS
  7437. test -z "$as_dir" && as_dir=.
  7438. for ac_exec_ext in '' $ac_executable_extensions; do
  7439. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  7440. ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
  7441. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  7442. break 2
  7443. fi
  7444. done
  7445. done
  7446. IFS=$as_save_IFS
  7447. fi
  7448. fi
  7449. DLLTOOL=$ac_cv_prog_DLLTOOL
  7450. if test -n "$DLLTOOL"; then
  7451. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
  7452. $as_echo "$DLLTOOL" >&6; }
  7453. else
  7454. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7455. $as_echo "no" >&6; }
  7456. fi
  7457. fi
  7458. if test -z "$ac_cv_prog_DLLTOOL"; then
  7459. ac_ct_DLLTOOL=$DLLTOOL
  7460. # Extract the first word of "dlltool", so it can be a program name with args.
  7461. set dummy dlltool; ac_word=$2
  7462. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  7463. $as_echo_n "checking for $ac_word... " >&6; }
  7464. if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
  7465. $as_echo_n "(cached) " >&6
  7466. else
  7467. if test -n "$ac_ct_DLLTOOL"; then
  7468. ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
  7469. else
  7470. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  7471. for as_dir in $PATH
  7472. do
  7473. IFS=$as_save_IFS
  7474. test -z "$as_dir" && as_dir=.
  7475. for ac_exec_ext in '' $ac_executable_extensions; do
  7476. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  7477. ac_cv_prog_ac_ct_DLLTOOL="dlltool"
  7478. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  7479. break 2
  7480. fi
  7481. done
  7482. done
  7483. IFS=$as_save_IFS
  7484. fi
  7485. fi
  7486. ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
  7487. if test -n "$ac_ct_DLLTOOL"; then
  7488. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
  7489. $as_echo "$ac_ct_DLLTOOL" >&6; }
  7490. else
  7491. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7492. $as_echo "no" >&6; }
  7493. fi
  7494. if test "x$ac_ct_DLLTOOL" = x; then
  7495. DLLTOOL="false"
  7496. else
  7497. case $cross_compiling:$ac_tool_warned in
  7498. yes:)
  7499. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  7500. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  7501. ac_tool_warned=yes ;;
  7502. esac
  7503. DLLTOOL=$ac_ct_DLLTOOL
  7504. fi
  7505. else
  7506. DLLTOOL="$ac_cv_prog_DLLTOOL"
  7507. fi
  7508. test -z "$DLLTOOL" && DLLTOOL=dlltool
  7509. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
  7510. $as_echo_n "checking how to associate runtime and link libraries... " >&6; }
  7511. if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
  7512. $as_echo_n "(cached) " >&6
  7513. else
  7514. lt_cv_sharedlib_from_linklib_cmd='unknown'
  7515. case $host_os in
  7516. cygwin* | mingw* | pw32* | cegcc*)
  7517. # two different shell functions defined in ltmain.sh;
  7518. # decide which one to use based on capabilities of $DLLTOOL
  7519. case `$DLLTOOL --help 2>&1` in
  7520. *--identify-strict*)
  7521. lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
  7522. ;;
  7523. *)
  7524. lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
  7525. ;;
  7526. esac
  7527. ;;
  7528. *)
  7529. # fallback: assume linklib IS sharedlib
  7530. lt_cv_sharedlib_from_linklib_cmd=$ECHO
  7531. ;;
  7532. esac
  7533. fi
  7534. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
  7535. $as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
  7536. sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
  7537. test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
  7538. if test -n "$ac_tool_prefix"; then
  7539. for ac_prog in ar
  7540. do
  7541. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  7542. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  7543. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  7544. $as_echo_n "checking for $ac_word... " >&6; }
  7545. if ${ac_cv_prog_AR+:} false; then :
  7546. $as_echo_n "(cached) " >&6
  7547. else
  7548. if test -n "$AR"; then
  7549. ac_cv_prog_AR="$AR" # Let the user override the test.
  7550. else
  7551. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  7552. for as_dir in $PATH
  7553. do
  7554. IFS=$as_save_IFS
  7555. test -z "$as_dir" && as_dir=.
  7556. for ac_exec_ext in '' $ac_executable_extensions; do
  7557. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  7558. ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
  7559. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  7560. break 2
  7561. fi
  7562. done
  7563. done
  7564. IFS=$as_save_IFS
  7565. fi
  7566. fi
  7567. AR=$ac_cv_prog_AR
  7568. if test -n "$AR"; then
  7569. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
  7570. $as_echo "$AR" >&6; }
  7571. else
  7572. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7573. $as_echo "no" >&6; }
  7574. fi
  7575. test -n "$AR" && break
  7576. done
  7577. fi
  7578. if test -z "$AR"; then
  7579. ac_ct_AR=$AR
  7580. for ac_prog in ar
  7581. do
  7582. # Extract the first word of "$ac_prog", so it can be a program name with args.
  7583. set dummy $ac_prog; ac_word=$2
  7584. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  7585. $as_echo_n "checking for $ac_word... " >&6; }
  7586. if ${ac_cv_prog_ac_ct_AR+:} false; then :
  7587. $as_echo_n "(cached) " >&6
  7588. else
  7589. if test -n "$ac_ct_AR"; then
  7590. ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
  7591. else
  7592. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  7593. for as_dir in $PATH
  7594. do
  7595. IFS=$as_save_IFS
  7596. test -z "$as_dir" && as_dir=.
  7597. for ac_exec_ext in '' $ac_executable_extensions; do
  7598. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  7599. ac_cv_prog_ac_ct_AR="$ac_prog"
  7600. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  7601. break 2
  7602. fi
  7603. done
  7604. done
  7605. IFS=$as_save_IFS
  7606. fi
  7607. fi
  7608. ac_ct_AR=$ac_cv_prog_ac_ct_AR
  7609. if test -n "$ac_ct_AR"; then
  7610. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
  7611. $as_echo "$ac_ct_AR" >&6; }
  7612. else
  7613. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7614. $as_echo "no" >&6; }
  7615. fi
  7616. test -n "$ac_ct_AR" && break
  7617. done
  7618. if test "x$ac_ct_AR" = x; then
  7619. AR="false"
  7620. else
  7621. case $cross_compiling:$ac_tool_warned in
  7622. yes:)
  7623. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  7624. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  7625. ac_tool_warned=yes ;;
  7626. esac
  7627. AR=$ac_ct_AR
  7628. fi
  7629. fi
  7630. : ${AR=ar}
  7631. : ${AR_FLAGS=cru}
  7632. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
  7633. $as_echo_n "checking for archiver @FILE support... " >&6; }
  7634. if ${lt_cv_ar_at_file+:} false; then :
  7635. $as_echo_n "(cached) " >&6
  7636. else
  7637. lt_cv_ar_at_file=no
  7638. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7639. /* end confdefs.h. */
  7640. int
  7641. main ()
  7642. {
  7643. ;
  7644. return 0;
  7645. }
  7646. _ACEOF
  7647. if ac_fn_c_try_compile "$LINENO"; then :
  7648. echo conftest.$ac_objext > conftest.lst
  7649. lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
  7650. { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
  7651. (eval $lt_ar_try) 2>&5
  7652. ac_status=$?
  7653. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  7654. test $ac_status = 0; }
  7655. if test 0 -eq "$ac_status"; then
  7656. # Ensure the archiver fails upon bogus file names.
  7657. rm -f conftest.$ac_objext libconftest.a
  7658. { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
  7659. (eval $lt_ar_try) 2>&5
  7660. ac_status=$?
  7661. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  7662. test $ac_status = 0; }
  7663. if test 0 -ne "$ac_status"; then
  7664. lt_cv_ar_at_file=@
  7665. fi
  7666. fi
  7667. rm -f conftest.* libconftest.a
  7668. fi
  7669. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  7670. fi
  7671. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
  7672. $as_echo "$lt_cv_ar_at_file" >&6; }
  7673. if test no = "$lt_cv_ar_at_file"; then
  7674. archiver_list_spec=
  7675. else
  7676. archiver_list_spec=$lt_cv_ar_at_file
  7677. fi
  7678. if test -n "$ac_tool_prefix"; then
  7679. # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
  7680. set dummy ${ac_tool_prefix}strip; 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_STRIP+:} false; then :
  7684. $as_echo_n "(cached) " >&6
  7685. else
  7686. if test -n "$STRIP"; then
  7687. ac_cv_prog_STRIP="$STRIP" # 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_STRIP="${ac_tool_prefix}strip"
  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. STRIP=$ac_cv_prog_STRIP
  7706. if test -n "$STRIP"; then
  7707. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
  7708. $as_echo "$STRIP" >&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_STRIP"; then
  7715. ac_ct_STRIP=$STRIP
  7716. # Extract the first word of "strip", so it can be a program name with args.
  7717. set dummy strip; 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_STRIP+:} false; then :
  7721. $as_echo_n "(cached) " >&6
  7722. else
  7723. if test -n "$ac_ct_STRIP"; then
  7724. ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # 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_STRIP="strip"
  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_STRIP=$ac_cv_prog_ac_ct_STRIP
  7743. if test -n "$ac_ct_STRIP"; then
  7744. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
  7745. $as_echo "$ac_ct_STRIP" >&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_STRIP" = x; then
  7751. STRIP=":"
  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. STRIP=$ac_ct_STRIP
  7760. fi
  7761. else
  7762. STRIP="$ac_cv_prog_STRIP"
  7763. fi
  7764. test -z "$STRIP" && STRIP=:
  7765. if test -n "$ac_tool_prefix"; then
  7766. # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
  7767. set dummy ${ac_tool_prefix}ranlib; ac_word=$2
  7768. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  7769. $as_echo_n "checking for $ac_word... " >&6; }
  7770. if ${ac_cv_prog_RANLIB+:} false; then :
  7771. $as_echo_n "(cached) " >&6
  7772. else
  7773. if test -n "$RANLIB"; then
  7774. ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
  7775. else
  7776. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  7777. for as_dir in $PATH
  7778. do
  7779. IFS=$as_save_IFS
  7780. test -z "$as_dir" && as_dir=.
  7781. for ac_exec_ext in '' $ac_executable_extensions; do
  7782. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  7783. ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
  7784. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  7785. break 2
  7786. fi
  7787. done
  7788. done
  7789. IFS=$as_save_IFS
  7790. fi
  7791. fi
  7792. RANLIB=$ac_cv_prog_RANLIB
  7793. if test -n "$RANLIB"; then
  7794. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
  7795. $as_echo "$RANLIB" >&6; }
  7796. else
  7797. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7798. $as_echo "no" >&6; }
  7799. fi
  7800. fi
  7801. if test -z "$ac_cv_prog_RANLIB"; then
  7802. ac_ct_RANLIB=$RANLIB
  7803. # Extract the first word of "ranlib", so it can be a program name with args.
  7804. set dummy ranlib; ac_word=$2
  7805. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  7806. $as_echo_n "checking for $ac_word... " >&6; }
  7807. if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
  7808. $as_echo_n "(cached) " >&6
  7809. else
  7810. if test -n "$ac_ct_RANLIB"; then
  7811. ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
  7812. else
  7813. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  7814. for as_dir in $PATH
  7815. do
  7816. IFS=$as_save_IFS
  7817. test -z "$as_dir" && as_dir=.
  7818. for ac_exec_ext in '' $ac_executable_extensions; do
  7819. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  7820. ac_cv_prog_ac_ct_RANLIB="ranlib"
  7821. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  7822. break 2
  7823. fi
  7824. done
  7825. done
  7826. IFS=$as_save_IFS
  7827. fi
  7828. fi
  7829. ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
  7830. if test -n "$ac_ct_RANLIB"; then
  7831. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
  7832. $as_echo "$ac_ct_RANLIB" >&6; }
  7833. else
  7834. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7835. $as_echo "no" >&6; }
  7836. fi
  7837. if test "x$ac_ct_RANLIB" = x; then
  7838. RANLIB=":"
  7839. else
  7840. case $cross_compiling:$ac_tool_warned in
  7841. yes:)
  7842. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  7843. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  7844. ac_tool_warned=yes ;;
  7845. esac
  7846. RANLIB=$ac_ct_RANLIB
  7847. fi
  7848. else
  7849. RANLIB="$ac_cv_prog_RANLIB"
  7850. fi
  7851. test -z "$RANLIB" && RANLIB=:
  7852. # Determine commands to create old-style static archives.
  7853. old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
  7854. old_postinstall_cmds='chmod 644 $oldlib'
  7855. old_postuninstall_cmds=
  7856. if test -n "$RANLIB"; then
  7857. case $host_os in
  7858. bitrig* | openbsd*)
  7859. old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
  7860. ;;
  7861. *)
  7862. old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
  7863. ;;
  7864. esac
  7865. old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
  7866. fi
  7867. case $host_os in
  7868. darwin*)
  7869. lock_old_archive_extraction=yes ;;
  7870. *)
  7871. lock_old_archive_extraction=no ;;
  7872. esac
  7873. for ac_prog in gawk mawk nawk awk
  7874. do
  7875. # Extract the first word of "$ac_prog", so it can be a program name with args.
  7876. set dummy $ac_prog; ac_word=$2
  7877. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  7878. $as_echo_n "checking for $ac_word... " >&6; }
  7879. if ${ac_cv_prog_AWK+:} false; then :
  7880. $as_echo_n "(cached) " >&6
  7881. else
  7882. if test -n "$AWK"; then
  7883. ac_cv_prog_AWK="$AWK" # Let the user override the test.
  7884. else
  7885. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  7886. for as_dir in $PATH
  7887. do
  7888. IFS=$as_save_IFS
  7889. test -z "$as_dir" && as_dir=.
  7890. for ac_exec_ext in '' $ac_executable_extensions; do
  7891. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  7892. ac_cv_prog_AWK="$ac_prog"
  7893. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  7894. break 2
  7895. fi
  7896. done
  7897. done
  7898. IFS=$as_save_IFS
  7899. fi
  7900. fi
  7901. AWK=$ac_cv_prog_AWK
  7902. if test -n "$AWK"; then
  7903. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
  7904. $as_echo "$AWK" >&6; }
  7905. else
  7906. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7907. $as_echo "no" >&6; }
  7908. fi
  7909. test -n "$AWK" && break
  7910. done
  7911. # If no C compiler was specified, use CC.
  7912. LTCC=${LTCC-"$CC"}
  7913. # If no C compiler flags were specified, use CFLAGS.
  7914. LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
  7915. # Allow CC to be a program name with arguments.
  7916. compiler=$CC
  7917. # Check for command to grab the raw symbol name followed by C symbol from nm.
  7918. { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
  7919. $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
  7920. if ${lt_cv_sys_global_symbol_pipe+:} false; then :
  7921. $as_echo_n "(cached) " >&6
  7922. else
  7923. # These are sane defaults that work on at least a few old systems.
  7924. # [They come from Ultrix. What could be older than Ultrix?!! ;)]
  7925. # Character class describing NM global symbol codes.
  7926. symcode='[BCDEGRST]'
  7927. # Regexp to match symbols that can be accessed directly from C.
  7928. sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
  7929. # Define system-specific variables.
  7930. case $host_os in
  7931. aix*)
  7932. symcode='[BCDT]'
  7933. ;;
  7934. cygwin* | mingw* | pw32* | cegcc*)
  7935. symcode='[ABCDGISTW]'
  7936. ;;
  7937. hpux*)
  7938. if test ia64 = "$host_cpu"; then
  7939. symcode='[ABCDEGRST]'
  7940. fi
  7941. ;;
  7942. irix* | nonstopux*)
  7943. symcode='[BCDEGRST]'
  7944. ;;
  7945. osf*)
  7946. symcode='[BCDEGQRST]'
  7947. ;;
  7948. solaris*)
  7949. symcode='[BDRT]'
  7950. ;;
  7951. sco3.2v5*)
  7952. symcode='[DT]'
  7953. ;;
  7954. sysv4.2uw2*)
  7955. symcode='[DT]'
  7956. ;;
  7957. sysv5* | sco5v6* | unixware* | OpenUNIX*)
  7958. symcode='[ABDT]'
  7959. ;;
  7960. sysv4)
  7961. symcode='[DFNSTU]'
  7962. ;;
  7963. esac
  7964. # If we're using GNU nm, then use its standard symbol codes.
  7965. case `$NM -V 2>&1` in
  7966. *GNU* | *'with BFD'*)
  7967. symcode='[ABCDGIRSTW]' ;;
  7968. esac
  7969. if test "$lt_cv_nm_interface" = "MS dumpbin"; then
  7970. # Gets list of data symbols to import.
  7971. lt_cv_sys_global_symbol_to_import="sed -n -e 's/^I .* \(.*\)$/\1/p'"
  7972. # Adjust the below global symbol transforms to fixup imported variables.
  7973. lt_cdecl_hook=" -e 's/^I .* \(.*\)$/extern __declspec(dllimport) char \1;/p'"
  7974. lt_c_name_hook=" -e 's/^I .* \(.*\)$/ {\"\1\", (void *) 0},/p'"
  7975. lt_c_name_lib_hook="\
  7976. -e 's/^I .* \(lib.*\)$/ {\"\1\", (void *) 0},/p'\
  7977. -e 's/^I .* \(.*\)$/ {\"lib\1\", (void *) 0},/p'"
  7978. else
  7979. # Disable hooks by default.
  7980. lt_cv_sys_global_symbol_to_import=
  7981. lt_cdecl_hook=
  7982. lt_c_name_hook=
  7983. lt_c_name_lib_hook=
  7984. fi
  7985. # Transform an extracted symbol line into a proper C declaration.
  7986. # Some systems (esp. on ia64) link data and code symbols differently,
  7987. # so use this general approach.
  7988. lt_cv_sys_global_symbol_to_cdecl="sed -n"\
  7989. $lt_cdecl_hook\
  7990. " -e 's/^T .* \(.*\)$/extern int \1();/p'"\
  7991. " -e 's/^$symcode$symcode* .* \(.*\)$/extern char \1;/p'"
  7992. # Transform an extracted symbol line into symbol name and symbol address
  7993. lt_cv_sys_global_symbol_to_c_name_address="sed -n"\
  7994. $lt_c_name_hook\
  7995. " -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\
  7996. " -e 's/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/p'"
  7997. # Transform an extracted symbol line into symbol name with lib prefix and
  7998. # symbol address.
  7999. lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n"\
  8000. $lt_c_name_lib_hook\
  8001. " -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\
  8002. " -e 's/^$symcode$symcode* .* \(lib.*\)$/ {\"\1\", (void *) \&\1},/p'"\
  8003. " -e 's/^$symcode$symcode* .* \(.*\)$/ {\"lib\1\", (void *) \&\1},/p'"
  8004. # Handle CRLF in mingw tool chain
  8005. opt_cr=
  8006. case $build_os in
  8007. mingw*)
  8008. opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
  8009. ;;
  8010. esac
  8011. # Try without a prefix underscore, then with it.
  8012. for ac_symprfx in "" "_"; do
  8013. # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
  8014. symxfrm="\\1 $ac_symprfx\\2 \\2"
  8015. # Write the raw and C identifiers.
  8016. if test "$lt_cv_nm_interface" = "MS dumpbin"; then
  8017. # Fake it for dumpbin and say T for any non-static function,
  8018. # D for any global variable and I for any imported variable.
  8019. # Also find C++ and __fastcall symbols from MSVC++,
  8020. # which start with @ or ?.
  8021. lt_cv_sys_global_symbol_pipe="$AWK '"\
  8022. " {last_section=section; section=\$ 3};"\
  8023. " /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
  8024. " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
  8025. " /^ *Symbol name *: /{split(\$ 0,sn,\":\"); si=substr(sn[2],2)};"\
  8026. " /^ *Type *: code/{print \"T\",si,substr(si,length(prfx))};"\
  8027. " /^ *Type *: data/{print \"I\",si,substr(si,length(prfx))};"\
  8028. " \$ 0!~/External *\|/{next};"\
  8029. " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
  8030. " {if(hide[section]) next};"\
  8031. " {f=\"D\"}; \$ 0~/\(\).*\|/{f=\"T\"};"\
  8032. " {split(\$ 0,a,/\||\r/); split(a[2],s)};"\
  8033. " s[1]~/^[@?]/{print f,s[1],s[1]; next};"\
  8034. " s[1]~prfx {split(s[1],t,\"@\"); print f,t[1],substr(t[1],length(prfx))}"\
  8035. " ' prfx=^$ac_symprfx"
  8036. else
  8037. lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
  8038. fi
  8039. lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
  8040. # Check to see that the pipe works correctly.
  8041. pipe_works=no
  8042. rm -f conftest*
  8043. cat > conftest.$ac_ext <<_LT_EOF
  8044. #ifdef __cplusplus
  8045. extern "C" {
  8046. #endif
  8047. char nm_test_var;
  8048. void nm_test_func(void);
  8049. void nm_test_func(void){}
  8050. #ifdef __cplusplus
  8051. }
  8052. #endif
  8053. int main(){nm_test_var='a';nm_test_func();return(0);}
  8054. _LT_EOF
  8055. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  8056. (eval $ac_compile) 2>&5
  8057. ac_status=$?
  8058. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  8059. test $ac_status = 0; }; then
  8060. # Now try to grab the symbols.
  8061. nlist=conftest.nm
  8062. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
  8063. (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
  8064. ac_status=$?
  8065. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  8066. test $ac_status = 0; } && test -s "$nlist"; then
  8067. # Try sorting and uniquifying the output.
  8068. if sort "$nlist" | uniq > "$nlist"T; then
  8069. mv -f "$nlist"T "$nlist"
  8070. else
  8071. rm -f "$nlist"T
  8072. fi
  8073. # Make sure that we snagged all the symbols we need.
  8074. if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
  8075. if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
  8076. cat <<_LT_EOF > conftest.$ac_ext
  8077. /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */
  8078. #if defined _WIN32 || defined __CYGWIN__ || defined _WIN32_WCE
  8079. /* DATA imports from DLLs on WIN32 can't be const, because runtime
  8080. relocations are performed -- see ld's documentation on pseudo-relocs. */
  8081. # define LT_DLSYM_CONST
  8082. #elif defined __osf__
  8083. /* This system does not cope well with relocations in const data. */
  8084. # define LT_DLSYM_CONST
  8085. #else
  8086. # define LT_DLSYM_CONST const
  8087. #endif
  8088. #ifdef __cplusplus
  8089. extern "C" {
  8090. #endif
  8091. _LT_EOF
  8092. # Now generate the symbol file.
  8093. eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
  8094. cat <<_LT_EOF >> conftest.$ac_ext
  8095. /* The mapping between symbol names and symbols. */
  8096. LT_DLSYM_CONST struct {
  8097. const char *name;
  8098. void *address;
  8099. }
  8100. lt__PROGRAM__LTX_preloaded_symbols[] =
  8101. {
  8102. { "@PROGRAM@", (void *) 0 },
  8103. _LT_EOF
  8104. $SED "s/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
  8105. cat <<\_LT_EOF >> conftest.$ac_ext
  8106. {0, (void *) 0}
  8107. };
  8108. /* This works around a problem in FreeBSD linker */
  8109. #ifdef FREEBSD_WORKAROUND
  8110. static const void *lt_preloaded_setup() {
  8111. return lt__PROGRAM__LTX_preloaded_symbols;
  8112. }
  8113. #endif
  8114. #ifdef __cplusplus
  8115. }
  8116. #endif
  8117. _LT_EOF
  8118. # Now try linking the two files.
  8119. mv conftest.$ac_objext conftstm.$ac_objext
  8120. lt_globsym_save_LIBS=$LIBS
  8121. lt_globsym_save_CFLAGS=$CFLAGS
  8122. LIBS=conftstm.$ac_objext
  8123. CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
  8124. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
  8125. (eval $ac_link) 2>&5
  8126. ac_status=$?
  8127. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  8128. test $ac_status = 0; } && test -s conftest$ac_exeext; then
  8129. pipe_works=yes
  8130. fi
  8131. LIBS=$lt_globsym_save_LIBS
  8132. CFLAGS=$lt_globsym_save_CFLAGS
  8133. else
  8134. echo "cannot find nm_test_func in $nlist" >&5
  8135. fi
  8136. else
  8137. echo "cannot find nm_test_var in $nlist" >&5
  8138. fi
  8139. else
  8140. echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
  8141. fi
  8142. else
  8143. echo "$progname: failed program was:" >&5
  8144. cat conftest.$ac_ext >&5
  8145. fi
  8146. rm -rf conftest* conftst*
  8147. # Do not use the global_symbol_pipe unless it works.
  8148. if test yes = "$pipe_works"; then
  8149. break
  8150. else
  8151. lt_cv_sys_global_symbol_pipe=
  8152. fi
  8153. done
  8154. fi
  8155. if test -z "$lt_cv_sys_global_symbol_pipe"; then
  8156. lt_cv_sys_global_symbol_to_cdecl=
  8157. fi
  8158. if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
  8159. { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
  8160. $as_echo "failed" >&6; }
  8161. else
  8162. { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
  8163. $as_echo "ok" >&6; }
  8164. fi
  8165. # Response file support.
  8166. if test "$lt_cv_nm_interface" = "MS dumpbin"; then
  8167. nm_file_list_spec='@'
  8168. elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
  8169. nm_file_list_spec='@'
  8170. fi
  8171. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
  8172. $as_echo_n "checking for sysroot... " >&6; }
  8173. # Check whether --with-sysroot was given.
  8174. if test "${with_sysroot+set}" = set; then :
  8175. withval=$with_sysroot;
  8176. else
  8177. with_sysroot=no
  8178. fi
  8179. lt_sysroot=
  8180. case $with_sysroot in #(
  8181. yes)
  8182. if test yes = "$GCC"; then
  8183. lt_sysroot=`$CC --print-sysroot 2>/dev/null`
  8184. fi
  8185. ;; #(
  8186. /*)
  8187. lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
  8188. ;; #(
  8189. no|'')
  8190. ;; #(
  8191. *)
  8192. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_sysroot" >&5
  8193. $as_echo "$with_sysroot" >&6; }
  8194. as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
  8195. ;;
  8196. esac
  8197. { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
  8198. $as_echo "${lt_sysroot:-no}" >&6; }
  8199. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a working dd" >&5
  8200. $as_echo_n "checking for a working dd... " >&6; }
  8201. if ${ac_cv_path_lt_DD+:} false; then :
  8202. $as_echo_n "(cached) " >&6
  8203. else
  8204. printf 0123456789abcdef0123456789abcdef >conftest.i
  8205. cat conftest.i conftest.i >conftest2.i
  8206. : ${lt_DD:=$DD}
  8207. if test -z "$lt_DD"; then
  8208. ac_path_lt_DD_found=false
  8209. # Loop through the user's path and test for each of PROGNAME-LIST
  8210. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  8211. for as_dir in $PATH
  8212. do
  8213. IFS=$as_save_IFS
  8214. test -z "$as_dir" && as_dir=.
  8215. for ac_prog in dd; do
  8216. for ac_exec_ext in '' $ac_executable_extensions; do
  8217. ac_path_lt_DD="$as_dir/$ac_prog$ac_exec_ext"
  8218. as_fn_executable_p "$ac_path_lt_DD" || continue
  8219. if "$ac_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
  8220. cmp -s conftest.i conftest.out \
  8221. && ac_cv_path_lt_DD="$ac_path_lt_DD" ac_path_lt_DD_found=:
  8222. fi
  8223. $ac_path_lt_DD_found && break 3
  8224. done
  8225. done
  8226. done
  8227. IFS=$as_save_IFS
  8228. if test -z "$ac_cv_path_lt_DD"; then
  8229. :
  8230. fi
  8231. else
  8232. ac_cv_path_lt_DD=$lt_DD
  8233. fi
  8234. rm -f conftest.i conftest2.i conftest.out
  8235. fi
  8236. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_lt_DD" >&5
  8237. $as_echo "$ac_cv_path_lt_DD" >&6; }
  8238. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to truncate binary pipes" >&5
  8239. $as_echo_n "checking how to truncate binary pipes... " >&6; }
  8240. if ${lt_cv_truncate_bin+:} false; then :
  8241. $as_echo_n "(cached) " >&6
  8242. else
  8243. printf 0123456789abcdef0123456789abcdef >conftest.i
  8244. cat conftest.i conftest.i >conftest2.i
  8245. lt_cv_truncate_bin=
  8246. if "$ac_cv_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
  8247. cmp -s conftest.i conftest.out \
  8248. && lt_cv_truncate_bin="$ac_cv_path_lt_DD bs=4096 count=1"
  8249. fi
  8250. rm -f conftest.i conftest2.i conftest.out
  8251. test -z "$lt_cv_truncate_bin" && lt_cv_truncate_bin="$SED -e 4q"
  8252. fi
  8253. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_truncate_bin" >&5
  8254. $as_echo "$lt_cv_truncate_bin" >&6; }
  8255. # Calculate cc_basename. Skip known compiler wrappers and cross-prefix.
  8256. func_cc_basename ()
  8257. {
  8258. for cc_temp in $*""; do
  8259. case $cc_temp in
  8260. compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
  8261. distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
  8262. \-*) ;;
  8263. *) break;;
  8264. esac
  8265. done
  8266. func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
  8267. }
  8268. # Check whether --enable-libtool-lock was given.
  8269. if test "${enable_libtool_lock+set}" = set; then :
  8270. enableval=$enable_libtool_lock;
  8271. fi
  8272. test no = "$enable_libtool_lock" || enable_libtool_lock=yes
  8273. # Some flags need to be propagated to the compiler or linker for good
  8274. # libtool support.
  8275. case $host in
  8276. ia64-*-hpux*)
  8277. # Find out what ABI is being produced by ac_compile, and set mode
  8278. # options accordingly.
  8279. echo 'int i;' > conftest.$ac_ext
  8280. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  8281. (eval $ac_compile) 2>&5
  8282. ac_status=$?
  8283. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  8284. test $ac_status = 0; }; then
  8285. case `/usr/bin/file conftest.$ac_objext` in
  8286. *ELF-32*)
  8287. HPUX_IA64_MODE=32
  8288. ;;
  8289. *ELF-64*)
  8290. HPUX_IA64_MODE=64
  8291. ;;
  8292. esac
  8293. fi
  8294. rm -rf conftest*
  8295. ;;
  8296. *-*-irix6*)
  8297. # Find out what ABI is being produced by ac_compile, and set linker
  8298. # options accordingly.
  8299. echo '#line '$LINENO' "configure"' > conftest.$ac_ext
  8300. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  8301. (eval $ac_compile) 2>&5
  8302. ac_status=$?
  8303. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  8304. test $ac_status = 0; }; then
  8305. if test yes = "$lt_cv_prog_gnu_ld"; then
  8306. case `/usr/bin/file conftest.$ac_objext` in
  8307. *32-bit*)
  8308. LD="${LD-ld} -melf32bsmip"
  8309. ;;
  8310. *N32*)
  8311. LD="${LD-ld} -melf32bmipn32"
  8312. ;;
  8313. *64-bit*)
  8314. LD="${LD-ld} -melf64bmip"
  8315. ;;
  8316. esac
  8317. else
  8318. case `/usr/bin/file conftest.$ac_objext` in
  8319. *32-bit*)
  8320. LD="${LD-ld} -32"
  8321. ;;
  8322. *N32*)
  8323. LD="${LD-ld} -n32"
  8324. ;;
  8325. *64-bit*)
  8326. LD="${LD-ld} -64"
  8327. ;;
  8328. esac
  8329. fi
  8330. fi
  8331. rm -rf conftest*
  8332. ;;
  8333. mips64*-*linux*)
  8334. # Find out what ABI is being produced by ac_compile, and set linker
  8335. # options accordingly.
  8336. echo '#line '$LINENO' "configure"' > conftest.$ac_ext
  8337. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  8338. (eval $ac_compile) 2>&5
  8339. ac_status=$?
  8340. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  8341. test $ac_status = 0; }; then
  8342. emul=elf
  8343. case `/usr/bin/file conftest.$ac_objext` in
  8344. *32-bit*)
  8345. emul="${emul}32"
  8346. ;;
  8347. *64-bit*)
  8348. emul="${emul}64"
  8349. ;;
  8350. esac
  8351. case `/usr/bin/file conftest.$ac_objext` in
  8352. *MSB*)
  8353. emul="${emul}btsmip"
  8354. ;;
  8355. *LSB*)
  8356. emul="${emul}ltsmip"
  8357. ;;
  8358. esac
  8359. case `/usr/bin/file conftest.$ac_objext` in
  8360. *N32*)
  8361. emul="${emul}n32"
  8362. ;;
  8363. esac
  8364. LD="${LD-ld} -m $emul"
  8365. fi
  8366. rm -rf conftest*
  8367. ;;
  8368. x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
  8369. s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
  8370. # Find out what ABI is being produced by ac_compile, and set linker
  8371. # options accordingly. Note that the listed cases only cover the
  8372. # situations where additional linker options are needed (such as when
  8373. # doing 32-bit compilation for a host where ld defaults to 64-bit, or
  8374. # vice versa); the common cases where no linker options are needed do
  8375. # not appear in the list.
  8376. echo 'int i;' > conftest.$ac_ext
  8377. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  8378. (eval $ac_compile) 2>&5
  8379. ac_status=$?
  8380. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  8381. test $ac_status = 0; }; then
  8382. case `/usr/bin/file conftest.o` in
  8383. *32-bit*)
  8384. case $host in
  8385. x86_64-*kfreebsd*-gnu)
  8386. LD="${LD-ld} -m elf_i386_fbsd"
  8387. ;;
  8388. x86_64-*linux*)
  8389. case `/usr/bin/file conftest.o` in
  8390. *x86-64*)
  8391. LD="${LD-ld} -m elf32_x86_64"
  8392. ;;
  8393. *)
  8394. LD="${LD-ld} -m elf_i386"
  8395. ;;
  8396. esac
  8397. ;;
  8398. powerpc64le-*linux*)
  8399. LD="${LD-ld} -m elf32lppclinux"
  8400. ;;
  8401. powerpc64-*linux*)
  8402. LD="${LD-ld} -m elf32ppclinux"
  8403. ;;
  8404. s390x-*linux*)
  8405. LD="${LD-ld} -m elf_s390"
  8406. ;;
  8407. sparc64-*linux*)
  8408. LD="${LD-ld} -m elf32_sparc"
  8409. ;;
  8410. esac
  8411. ;;
  8412. *64-bit*)
  8413. case $host in
  8414. x86_64-*kfreebsd*-gnu)
  8415. LD="${LD-ld} -m elf_x86_64_fbsd"
  8416. ;;
  8417. x86_64-*linux*)
  8418. LD="${LD-ld} -m elf_x86_64"
  8419. ;;
  8420. powerpcle-*linux*)
  8421. LD="${LD-ld} -m elf64lppc"
  8422. ;;
  8423. powerpc-*linux*)
  8424. LD="${LD-ld} -m elf64ppc"
  8425. ;;
  8426. s390*-*linux*|s390*-*tpf*)
  8427. LD="${LD-ld} -m elf64_s390"
  8428. ;;
  8429. sparc*-*linux*)
  8430. LD="${LD-ld} -m elf64_sparc"
  8431. ;;
  8432. esac
  8433. ;;
  8434. esac
  8435. fi
  8436. rm -rf conftest*
  8437. ;;
  8438. *-*-sco3.2v5*)
  8439. # On SCO OpenServer 5, we need -belf to get full-featured binaries.
  8440. SAVE_CFLAGS=$CFLAGS
  8441. CFLAGS="$CFLAGS -belf"
  8442. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
  8443. $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
  8444. if ${lt_cv_cc_needs_belf+:} false; then :
  8445. $as_echo_n "(cached) " >&6
  8446. else
  8447. ac_ext=c
  8448. ac_cpp='$CPP $CPPFLAGS'
  8449. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  8450. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  8451. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  8452. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  8453. /* end confdefs.h. */
  8454. int
  8455. main ()
  8456. {
  8457. ;
  8458. return 0;
  8459. }
  8460. _ACEOF
  8461. if ac_fn_c_try_link "$LINENO"; then :
  8462. lt_cv_cc_needs_belf=yes
  8463. else
  8464. lt_cv_cc_needs_belf=no
  8465. fi
  8466. rm -f core conftest.err conftest.$ac_objext \
  8467. conftest$ac_exeext conftest.$ac_ext
  8468. ac_ext=c
  8469. ac_cpp='$CPP $CPPFLAGS'
  8470. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  8471. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  8472. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  8473. fi
  8474. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
  8475. $as_echo "$lt_cv_cc_needs_belf" >&6; }
  8476. if test yes != "$lt_cv_cc_needs_belf"; then
  8477. # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
  8478. CFLAGS=$SAVE_CFLAGS
  8479. fi
  8480. ;;
  8481. *-*solaris*)
  8482. # Find out what ABI is being produced by ac_compile, and set linker
  8483. # options accordingly.
  8484. echo 'int i;' > conftest.$ac_ext
  8485. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  8486. (eval $ac_compile) 2>&5
  8487. ac_status=$?
  8488. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  8489. test $ac_status = 0; }; then
  8490. case `/usr/bin/file conftest.o` in
  8491. *64-bit*)
  8492. case $lt_cv_prog_gnu_ld in
  8493. yes*)
  8494. case $host in
  8495. i?86-*-solaris*|x86_64-*-solaris*)
  8496. LD="${LD-ld} -m elf_x86_64"
  8497. ;;
  8498. sparc*-*-solaris*)
  8499. LD="${LD-ld} -m elf64_sparc"
  8500. ;;
  8501. esac
  8502. # GNU ld 2.21 introduced _sol2 emulations. Use them if available.
  8503. if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
  8504. LD=${LD-ld}_sol2
  8505. fi
  8506. ;;
  8507. *)
  8508. if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
  8509. LD="${LD-ld} -64"
  8510. fi
  8511. ;;
  8512. esac
  8513. ;;
  8514. esac
  8515. fi
  8516. rm -rf conftest*
  8517. ;;
  8518. esac
  8519. need_locks=$enable_libtool_lock
  8520. if test -n "$ac_tool_prefix"; then
  8521. # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
  8522. set dummy ${ac_tool_prefix}mt; ac_word=$2
  8523. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  8524. $as_echo_n "checking for $ac_word... " >&6; }
  8525. if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
  8526. $as_echo_n "(cached) " >&6
  8527. else
  8528. if test -n "$MANIFEST_TOOL"; then
  8529. ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
  8530. else
  8531. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  8532. for as_dir in $PATH
  8533. do
  8534. IFS=$as_save_IFS
  8535. test -z "$as_dir" && as_dir=.
  8536. for ac_exec_ext in '' $ac_executable_extensions; do
  8537. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  8538. ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
  8539. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  8540. break 2
  8541. fi
  8542. done
  8543. done
  8544. IFS=$as_save_IFS
  8545. fi
  8546. fi
  8547. MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
  8548. if test -n "$MANIFEST_TOOL"; then
  8549. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
  8550. $as_echo "$MANIFEST_TOOL" >&6; }
  8551. else
  8552. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  8553. $as_echo "no" >&6; }
  8554. fi
  8555. fi
  8556. if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
  8557. ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
  8558. # Extract the first word of "mt", so it can be a program name with args.
  8559. set dummy mt; ac_word=$2
  8560. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  8561. $as_echo_n "checking for $ac_word... " >&6; }
  8562. if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
  8563. $as_echo_n "(cached) " >&6
  8564. else
  8565. if test -n "$ac_ct_MANIFEST_TOOL"; then
  8566. ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
  8567. else
  8568. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  8569. for as_dir in $PATH
  8570. do
  8571. IFS=$as_save_IFS
  8572. test -z "$as_dir" && as_dir=.
  8573. for ac_exec_ext in '' $ac_executable_extensions; do
  8574. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  8575. ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
  8576. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  8577. break 2
  8578. fi
  8579. done
  8580. done
  8581. IFS=$as_save_IFS
  8582. fi
  8583. fi
  8584. ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
  8585. if test -n "$ac_ct_MANIFEST_TOOL"; then
  8586. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
  8587. $as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
  8588. else
  8589. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  8590. $as_echo "no" >&6; }
  8591. fi
  8592. if test "x$ac_ct_MANIFEST_TOOL" = x; then
  8593. MANIFEST_TOOL=":"
  8594. else
  8595. case $cross_compiling:$ac_tool_warned in
  8596. yes:)
  8597. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  8598. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  8599. ac_tool_warned=yes ;;
  8600. esac
  8601. MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
  8602. fi
  8603. else
  8604. MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
  8605. fi
  8606. test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
  8607. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
  8608. $as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
  8609. if ${lt_cv_path_mainfest_tool+:} false; then :
  8610. $as_echo_n "(cached) " >&6
  8611. else
  8612. lt_cv_path_mainfest_tool=no
  8613. echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
  8614. $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
  8615. cat conftest.err >&5
  8616. if $GREP 'Manifest Tool' conftest.out > /dev/null; then
  8617. lt_cv_path_mainfest_tool=yes
  8618. fi
  8619. rm -f conftest*
  8620. fi
  8621. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
  8622. $as_echo "$lt_cv_path_mainfest_tool" >&6; }
  8623. if test yes != "$lt_cv_path_mainfest_tool"; then
  8624. MANIFEST_TOOL=:
  8625. fi
  8626. case $host_os in
  8627. rhapsody* | darwin*)
  8628. if test -n "$ac_tool_prefix"; then
  8629. # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
  8630. set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
  8631. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  8632. $as_echo_n "checking for $ac_word... " >&6; }
  8633. if ${ac_cv_prog_DSYMUTIL+:} false; then :
  8634. $as_echo_n "(cached) " >&6
  8635. else
  8636. if test -n "$DSYMUTIL"; then
  8637. ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
  8638. else
  8639. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  8640. for as_dir in $PATH
  8641. do
  8642. IFS=$as_save_IFS
  8643. test -z "$as_dir" && as_dir=.
  8644. for ac_exec_ext in '' $ac_executable_extensions; do
  8645. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  8646. ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
  8647. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  8648. break 2
  8649. fi
  8650. done
  8651. done
  8652. IFS=$as_save_IFS
  8653. fi
  8654. fi
  8655. DSYMUTIL=$ac_cv_prog_DSYMUTIL
  8656. if test -n "$DSYMUTIL"; then
  8657. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
  8658. $as_echo "$DSYMUTIL" >&6; }
  8659. else
  8660. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  8661. $as_echo "no" >&6; }
  8662. fi
  8663. fi
  8664. if test -z "$ac_cv_prog_DSYMUTIL"; then
  8665. ac_ct_DSYMUTIL=$DSYMUTIL
  8666. # Extract the first word of "dsymutil", so it can be a program name with args.
  8667. set dummy dsymutil; ac_word=$2
  8668. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  8669. $as_echo_n "checking for $ac_word... " >&6; }
  8670. if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
  8671. $as_echo_n "(cached) " >&6
  8672. else
  8673. if test -n "$ac_ct_DSYMUTIL"; then
  8674. ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
  8675. else
  8676. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  8677. for as_dir in $PATH
  8678. do
  8679. IFS=$as_save_IFS
  8680. test -z "$as_dir" && as_dir=.
  8681. for ac_exec_ext in '' $ac_executable_extensions; do
  8682. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  8683. ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
  8684. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  8685. break 2
  8686. fi
  8687. done
  8688. done
  8689. IFS=$as_save_IFS
  8690. fi
  8691. fi
  8692. ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
  8693. if test -n "$ac_ct_DSYMUTIL"; then
  8694. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
  8695. $as_echo "$ac_ct_DSYMUTIL" >&6; }
  8696. else
  8697. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  8698. $as_echo "no" >&6; }
  8699. fi
  8700. if test "x$ac_ct_DSYMUTIL" = x; then
  8701. DSYMUTIL=":"
  8702. else
  8703. case $cross_compiling:$ac_tool_warned in
  8704. yes:)
  8705. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  8706. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  8707. ac_tool_warned=yes ;;
  8708. esac
  8709. DSYMUTIL=$ac_ct_DSYMUTIL
  8710. fi
  8711. else
  8712. DSYMUTIL="$ac_cv_prog_DSYMUTIL"
  8713. fi
  8714. if test -n "$ac_tool_prefix"; then
  8715. # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
  8716. set dummy ${ac_tool_prefix}nmedit; ac_word=$2
  8717. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  8718. $as_echo_n "checking for $ac_word... " >&6; }
  8719. if ${ac_cv_prog_NMEDIT+:} false; then :
  8720. $as_echo_n "(cached) " >&6
  8721. else
  8722. if test -n "$NMEDIT"; then
  8723. ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
  8724. else
  8725. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  8726. for as_dir in $PATH
  8727. do
  8728. IFS=$as_save_IFS
  8729. test -z "$as_dir" && as_dir=.
  8730. for ac_exec_ext in '' $ac_executable_extensions; do
  8731. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  8732. ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
  8733. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  8734. break 2
  8735. fi
  8736. done
  8737. done
  8738. IFS=$as_save_IFS
  8739. fi
  8740. fi
  8741. NMEDIT=$ac_cv_prog_NMEDIT
  8742. if test -n "$NMEDIT"; then
  8743. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
  8744. $as_echo "$NMEDIT" >&6; }
  8745. else
  8746. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  8747. $as_echo "no" >&6; }
  8748. fi
  8749. fi
  8750. if test -z "$ac_cv_prog_NMEDIT"; then
  8751. ac_ct_NMEDIT=$NMEDIT
  8752. # Extract the first word of "nmedit", so it can be a program name with args.
  8753. set dummy nmedit; ac_word=$2
  8754. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  8755. $as_echo_n "checking for $ac_word... " >&6; }
  8756. if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
  8757. $as_echo_n "(cached) " >&6
  8758. else
  8759. if test -n "$ac_ct_NMEDIT"; then
  8760. ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
  8761. else
  8762. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  8763. for as_dir in $PATH
  8764. do
  8765. IFS=$as_save_IFS
  8766. test -z "$as_dir" && as_dir=.
  8767. for ac_exec_ext in '' $ac_executable_extensions; do
  8768. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  8769. ac_cv_prog_ac_ct_NMEDIT="nmedit"
  8770. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  8771. break 2
  8772. fi
  8773. done
  8774. done
  8775. IFS=$as_save_IFS
  8776. fi
  8777. fi
  8778. ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
  8779. if test -n "$ac_ct_NMEDIT"; then
  8780. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
  8781. $as_echo "$ac_ct_NMEDIT" >&6; }
  8782. else
  8783. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  8784. $as_echo "no" >&6; }
  8785. fi
  8786. if test "x$ac_ct_NMEDIT" = x; then
  8787. NMEDIT=":"
  8788. else
  8789. case $cross_compiling:$ac_tool_warned in
  8790. yes:)
  8791. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  8792. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  8793. ac_tool_warned=yes ;;
  8794. esac
  8795. NMEDIT=$ac_ct_NMEDIT
  8796. fi
  8797. else
  8798. NMEDIT="$ac_cv_prog_NMEDIT"
  8799. fi
  8800. if test -n "$ac_tool_prefix"; then
  8801. # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
  8802. set dummy ${ac_tool_prefix}lipo; ac_word=$2
  8803. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  8804. $as_echo_n "checking for $ac_word... " >&6; }
  8805. if ${ac_cv_prog_LIPO+:} false; then :
  8806. $as_echo_n "(cached) " >&6
  8807. else
  8808. if test -n "$LIPO"; then
  8809. ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
  8810. else
  8811. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  8812. for as_dir in $PATH
  8813. do
  8814. IFS=$as_save_IFS
  8815. test -z "$as_dir" && as_dir=.
  8816. for ac_exec_ext in '' $ac_executable_extensions; do
  8817. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  8818. ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
  8819. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  8820. break 2
  8821. fi
  8822. done
  8823. done
  8824. IFS=$as_save_IFS
  8825. fi
  8826. fi
  8827. LIPO=$ac_cv_prog_LIPO
  8828. if test -n "$LIPO"; then
  8829. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
  8830. $as_echo "$LIPO" >&6; }
  8831. else
  8832. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  8833. $as_echo "no" >&6; }
  8834. fi
  8835. fi
  8836. if test -z "$ac_cv_prog_LIPO"; then
  8837. ac_ct_LIPO=$LIPO
  8838. # Extract the first word of "lipo", so it can be a program name with args.
  8839. set dummy lipo; ac_word=$2
  8840. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  8841. $as_echo_n "checking for $ac_word... " >&6; }
  8842. if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
  8843. $as_echo_n "(cached) " >&6
  8844. else
  8845. if test -n "$ac_ct_LIPO"; then
  8846. ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
  8847. else
  8848. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  8849. for as_dir in $PATH
  8850. do
  8851. IFS=$as_save_IFS
  8852. test -z "$as_dir" && as_dir=.
  8853. for ac_exec_ext in '' $ac_executable_extensions; do
  8854. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  8855. ac_cv_prog_ac_ct_LIPO="lipo"
  8856. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  8857. break 2
  8858. fi
  8859. done
  8860. done
  8861. IFS=$as_save_IFS
  8862. fi
  8863. fi
  8864. ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
  8865. if test -n "$ac_ct_LIPO"; then
  8866. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
  8867. $as_echo "$ac_ct_LIPO" >&6; }
  8868. else
  8869. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  8870. $as_echo "no" >&6; }
  8871. fi
  8872. if test "x$ac_ct_LIPO" = x; then
  8873. LIPO=":"
  8874. else
  8875. case $cross_compiling:$ac_tool_warned in
  8876. yes:)
  8877. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  8878. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  8879. ac_tool_warned=yes ;;
  8880. esac
  8881. LIPO=$ac_ct_LIPO
  8882. fi
  8883. else
  8884. LIPO="$ac_cv_prog_LIPO"
  8885. fi
  8886. if test -n "$ac_tool_prefix"; then
  8887. # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
  8888. set dummy ${ac_tool_prefix}otool; ac_word=$2
  8889. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  8890. $as_echo_n "checking for $ac_word... " >&6; }
  8891. if ${ac_cv_prog_OTOOL+:} false; then :
  8892. $as_echo_n "(cached) " >&6
  8893. else
  8894. if test -n "$OTOOL"; then
  8895. ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
  8896. else
  8897. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  8898. for as_dir in $PATH
  8899. do
  8900. IFS=$as_save_IFS
  8901. test -z "$as_dir" && as_dir=.
  8902. for ac_exec_ext in '' $ac_executable_extensions; do
  8903. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  8904. ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
  8905. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  8906. break 2
  8907. fi
  8908. done
  8909. done
  8910. IFS=$as_save_IFS
  8911. fi
  8912. fi
  8913. OTOOL=$ac_cv_prog_OTOOL
  8914. if test -n "$OTOOL"; then
  8915. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
  8916. $as_echo "$OTOOL" >&6; }
  8917. else
  8918. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  8919. $as_echo "no" >&6; }
  8920. fi
  8921. fi
  8922. if test -z "$ac_cv_prog_OTOOL"; then
  8923. ac_ct_OTOOL=$OTOOL
  8924. # Extract the first word of "otool", so it can be a program name with args.
  8925. set dummy otool; ac_word=$2
  8926. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  8927. $as_echo_n "checking for $ac_word... " >&6; }
  8928. if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
  8929. $as_echo_n "(cached) " >&6
  8930. else
  8931. if test -n "$ac_ct_OTOOL"; then
  8932. ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
  8933. else
  8934. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  8935. for as_dir in $PATH
  8936. do
  8937. IFS=$as_save_IFS
  8938. test -z "$as_dir" && as_dir=.
  8939. for ac_exec_ext in '' $ac_executable_extensions; do
  8940. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  8941. ac_cv_prog_ac_ct_OTOOL="otool"
  8942. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  8943. break 2
  8944. fi
  8945. done
  8946. done
  8947. IFS=$as_save_IFS
  8948. fi
  8949. fi
  8950. ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
  8951. if test -n "$ac_ct_OTOOL"; then
  8952. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
  8953. $as_echo "$ac_ct_OTOOL" >&6; }
  8954. else
  8955. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  8956. $as_echo "no" >&6; }
  8957. fi
  8958. if test "x$ac_ct_OTOOL" = x; then
  8959. OTOOL=":"
  8960. else
  8961. case $cross_compiling:$ac_tool_warned in
  8962. yes:)
  8963. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  8964. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  8965. ac_tool_warned=yes ;;
  8966. esac
  8967. OTOOL=$ac_ct_OTOOL
  8968. fi
  8969. else
  8970. OTOOL="$ac_cv_prog_OTOOL"
  8971. fi
  8972. if test -n "$ac_tool_prefix"; then
  8973. # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
  8974. set dummy ${ac_tool_prefix}otool64; ac_word=$2
  8975. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  8976. $as_echo_n "checking for $ac_word... " >&6; }
  8977. if ${ac_cv_prog_OTOOL64+:} false; then :
  8978. $as_echo_n "(cached) " >&6
  8979. else
  8980. if test -n "$OTOOL64"; then
  8981. ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
  8982. else
  8983. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  8984. for as_dir in $PATH
  8985. do
  8986. IFS=$as_save_IFS
  8987. test -z "$as_dir" && as_dir=.
  8988. for ac_exec_ext in '' $ac_executable_extensions; do
  8989. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  8990. ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
  8991. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  8992. break 2
  8993. fi
  8994. done
  8995. done
  8996. IFS=$as_save_IFS
  8997. fi
  8998. fi
  8999. OTOOL64=$ac_cv_prog_OTOOL64
  9000. if test -n "$OTOOL64"; then
  9001. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
  9002. $as_echo "$OTOOL64" >&6; }
  9003. else
  9004. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  9005. $as_echo "no" >&6; }
  9006. fi
  9007. fi
  9008. if test -z "$ac_cv_prog_OTOOL64"; then
  9009. ac_ct_OTOOL64=$OTOOL64
  9010. # Extract the first word of "otool64", so it can be a program name with args.
  9011. set dummy otool64; ac_word=$2
  9012. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  9013. $as_echo_n "checking for $ac_word... " >&6; }
  9014. if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
  9015. $as_echo_n "(cached) " >&6
  9016. else
  9017. if test -n "$ac_ct_OTOOL64"; then
  9018. ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
  9019. else
  9020. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  9021. for as_dir in $PATH
  9022. do
  9023. IFS=$as_save_IFS
  9024. test -z "$as_dir" && as_dir=.
  9025. for ac_exec_ext in '' $ac_executable_extensions; do
  9026. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  9027. ac_cv_prog_ac_ct_OTOOL64="otool64"
  9028. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  9029. break 2
  9030. fi
  9031. done
  9032. done
  9033. IFS=$as_save_IFS
  9034. fi
  9035. fi
  9036. ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
  9037. if test -n "$ac_ct_OTOOL64"; then
  9038. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
  9039. $as_echo "$ac_ct_OTOOL64" >&6; }
  9040. else
  9041. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  9042. $as_echo "no" >&6; }
  9043. fi
  9044. if test "x$ac_ct_OTOOL64" = x; then
  9045. OTOOL64=":"
  9046. else
  9047. case $cross_compiling:$ac_tool_warned in
  9048. yes:)
  9049. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  9050. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  9051. ac_tool_warned=yes ;;
  9052. esac
  9053. OTOOL64=$ac_ct_OTOOL64
  9054. fi
  9055. else
  9056. OTOOL64="$ac_cv_prog_OTOOL64"
  9057. fi
  9058. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
  9059. $as_echo_n "checking for -single_module linker flag... " >&6; }
  9060. if ${lt_cv_apple_cc_single_mod+:} false; then :
  9061. $as_echo_n "(cached) " >&6
  9062. else
  9063. lt_cv_apple_cc_single_mod=no
  9064. if test -z "$LT_MULTI_MODULE"; then
  9065. # By default we will add the -single_module flag. You can override
  9066. # by either setting the environment variable LT_MULTI_MODULE
  9067. # non-empty at configure time, or by adding -multi_module to the
  9068. # link flags.
  9069. rm -rf libconftest.dylib*
  9070. echo "int foo(void){return 1;}" > conftest.c
  9071. echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
  9072. -dynamiclib -Wl,-single_module conftest.c" >&5
  9073. $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
  9074. -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
  9075. _lt_result=$?
  9076. # If there is a non-empty error log, and "single_module"
  9077. # appears in it, assume the flag caused a linker warning
  9078. if test -s conftest.err && $GREP single_module conftest.err; then
  9079. cat conftest.err >&5
  9080. # Otherwise, if the output was created with a 0 exit code from
  9081. # the compiler, it worked.
  9082. elif test -f libconftest.dylib && test 0 = "$_lt_result"; then
  9083. lt_cv_apple_cc_single_mod=yes
  9084. else
  9085. cat conftest.err >&5
  9086. fi
  9087. rm -rf libconftest.dylib*
  9088. rm -f conftest.*
  9089. fi
  9090. fi
  9091. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
  9092. $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
  9093. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
  9094. $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
  9095. if ${lt_cv_ld_exported_symbols_list+:} false; then :
  9096. $as_echo_n "(cached) " >&6
  9097. else
  9098. lt_cv_ld_exported_symbols_list=no
  9099. save_LDFLAGS=$LDFLAGS
  9100. echo "_main" > conftest.sym
  9101. LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
  9102. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9103. /* end confdefs.h. */
  9104. int
  9105. main ()
  9106. {
  9107. ;
  9108. return 0;
  9109. }
  9110. _ACEOF
  9111. if ac_fn_c_try_link "$LINENO"; then :
  9112. lt_cv_ld_exported_symbols_list=yes
  9113. else
  9114. lt_cv_ld_exported_symbols_list=no
  9115. fi
  9116. rm -f core conftest.err conftest.$ac_objext \
  9117. conftest$ac_exeext conftest.$ac_ext
  9118. LDFLAGS=$save_LDFLAGS
  9119. fi
  9120. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
  9121. $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
  9122. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
  9123. $as_echo_n "checking for -force_load linker flag... " >&6; }
  9124. if ${lt_cv_ld_force_load+:} false; then :
  9125. $as_echo_n "(cached) " >&6
  9126. else
  9127. lt_cv_ld_force_load=no
  9128. cat > conftest.c << _LT_EOF
  9129. int forced_loaded() { return 2;}
  9130. _LT_EOF
  9131. echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
  9132. $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
  9133. echo "$AR cru libconftest.a conftest.o" >&5
  9134. $AR cru libconftest.a conftest.o 2>&5
  9135. echo "$RANLIB libconftest.a" >&5
  9136. $RANLIB libconftest.a 2>&5
  9137. cat > conftest.c << _LT_EOF
  9138. int main() { return 0;}
  9139. _LT_EOF
  9140. echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
  9141. $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
  9142. _lt_result=$?
  9143. if test -s conftest.err && $GREP force_load conftest.err; then
  9144. cat conftest.err >&5
  9145. elif test -f conftest && test 0 = "$_lt_result" && $GREP forced_load conftest >/dev/null 2>&1; then
  9146. lt_cv_ld_force_load=yes
  9147. else
  9148. cat conftest.err >&5
  9149. fi
  9150. rm -f conftest.err libconftest.a conftest conftest.c
  9151. rm -rf conftest.dSYM
  9152. fi
  9153. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
  9154. $as_echo "$lt_cv_ld_force_load" >&6; }
  9155. case $host_os in
  9156. rhapsody* | darwin1.[012])
  9157. _lt_dar_allow_undefined='$wl-undefined ${wl}suppress' ;;
  9158. darwin1.*)
  9159. _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
  9160. darwin*) # darwin 5.x on
  9161. # if running on 10.5 or later, the deployment target defaults
  9162. # to the OS version, if on x86, and 10.4, the deployment
  9163. # target defaults to 10.4. Don't you love it?
  9164. case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
  9165. 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
  9166. _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
  9167. 10.[012][,.]*)
  9168. _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
  9169. 10.*)
  9170. _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
  9171. esac
  9172. ;;
  9173. esac
  9174. if test yes = "$lt_cv_apple_cc_single_mod"; then
  9175. _lt_dar_single_mod='$single_module'
  9176. fi
  9177. if test yes = "$lt_cv_ld_exported_symbols_list"; then
  9178. _lt_dar_export_syms=' $wl-exported_symbols_list,$output_objdir/$libname-symbols.expsym'
  9179. else
  9180. _lt_dar_export_syms='~$NMEDIT -s $output_objdir/$libname-symbols.expsym $lib'
  9181. fi
  9182. if test : != "$DSYMUTIL" && test no = "$lt_cv_ld_force_load"; then
  9183. _lt_dsymutil='~$DSYMUTIL $lib || :'
  9184. else
  9185. _lt_dsymutil=
  9186. fi
  9187. ;;
  9188. esac
  9189. # func_munge_path_list VARIABLE PATH
  9190. # -----------------------------------
  9191. # VARIABLE is name of variable containing _space_ separated list of
  9192. # directories to be munged by the contents of PATH, which is string
  9193. # having a format:
  9194. # "DIR[:DIR]:"
  9195. # string "DIR[ DIR]" will be prepended to VARIABLE
  9196. # ":DIR[:DIR]"
  9197. # string "DIR[ DIR]" will be appended to VARIABLE
  9198. # "DIRP[:DIRP]::[DIRA:]DIRA"
  9199. # string "DIRP[ DIRP]" will be prepended to VARIABLE and string
  9200. # "DIRA[ DIRA]" will be appended to VARIABLE
  9201. # "DIR[:DIR]"
  9202. # VARIABLE will be replaced by "DIR[ DIR]"
  9203. func_munge_path_list ()
  9204. {
  9205. case x$2 in
  9206. x)
  9207. ;;
  9208. *:)
  9209. eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
  9210. ;;
  9211. x:*)
  9212. eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
  9213. ;;
  9214. *::*)
  9215. eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
  9216. eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
  9217. ;;
  9218. *)
  9219. eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
  9220. ;;
  9221. esac
  9222. }
  9223. for ac_header in dlfcn.h
  9224. do :
  9225. ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
  9226. "
  9227. if test "x$ac_cv_header_dlfcn_h" = xyes; then :
  9228. cat >>confdefs.h <<_ACEOF
  9229. #define HAVE_DLFCN_H 1
  9230. _ACEOF
  9231. fi
  9232. done
  9233. # Set options
  9234. enable_dlopen=no
  9235. enable_win32_dll=no
  9236. # Check whether --enable-static was given.
  9237. if test "${enable_static+set}" = set; then :
  9238. enableval=$enable_static; p=${PACKAGE-default}
  9239. case $enableval in
  9240. yes) enable_static=yes ;;
  9241. no) enable_static=no ;;
  9242. *)
  9243. enable_static=no
  9244. # Look at the argument we got. We use all the common list separators.
  9245. lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
  9246. for pkg in $enableval; do
  9247. IFS=$lt_save_ifs
  9248. if test "X$pkg" = "X$p"; then
  9249. enable_static=yes
  9250. fi
  9251. done
  9252. IFS=$lt_save_ifs
  9253. ;;
  9254. esac
  9255. else
  9256. enable_static=yes
  9257. fi
  9258. # Check whether --with-pic was given.
  9259. if test "${with_pic+set}" = set; then :
  9260. withval=$with_pic; lt_p=${PACKAGE-default}
  9261. case $withval in
  9262. yes|no) pic_mode=$withval ;;
  9263. *)
  9264. pic_mode=default
  9265. # Look at the argument we got. We use all the common list separators.
  9266. lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
  9267. for lt_pkg in $withval; do
  9268. IFS=$lt_save_ifs
  9269. if test "X$lt_pkg" = "X$lt_p"; then
  9270. pic_mode=yes
  9271. fi
  9272. done
  9273. IFS=$lt_save_ifs
  9274. ;;
  9275. esac
  9276. else
  9277. pic_mode=default
  9278. fi
  9279. # Check whether --enable-fast-install was given.
  9280. if test "${enable_fast_install+set}" = set; then :
  9281. enableval=$enable_fast_install; p=${PACKAGE-default}
  9282. case $enableval in
  9283. yes) enable_fast_install=yes ;;
  9284. no) enable_fast_install=no ;;
  9285. *)
  9286. enable_fast_install=no
  9287. # Look at the argument we got. We use all the common list separators.
  9288. lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
  9289. for pkg in $enableval; do
  9290. IFS=$lt_save_ifs
  9291. if test "X$pkg" = "X$p"; then
  9292. enable_fast_install=yes
  9293. fi
  9294. done
  9295. IFS=$lt_save_ifs
  9296. ;;
  9297. esac
  9298. else
  9299. enable_fast_install=yes
  9300. fi
  9301. shared_archive_member_spec=
  9302. case $host,$enable_shared in
  9303. power*-*-aix[5-9]*,yes)
  9304. { $as_echo "$as_me:${as_lineno-$LINENO}: checking which variant of shared library versioning to provide" >&5
  9305. $as_echo_n "checking which variant of shared library versioning to provide... " >&6; }
  9306. # Check whether --with-aix-soname was given.
  9307. if test "${with_aix_soname+set}" = set; then :
  9308. withval=$with_aix_soname; case $withval in
  9309. aix|svr4|both)
  9310. ;;
  9311. *)
  9312. as_fn_error $? "Unknown argument to --with-aix-soname" "$LINENO" 5
  9313. ;;
  9314. esac
  9315. lt_cv_with_aix_soname=$with_aix_soname
  9316. else
  9317. if ${lt_cv_with_aix_soname+:} false; then :
  9318. $as_echo_n "(cached) " >&6
  9319. else
  9320. lt_cv_with_aix_soname=aix
  9321. fi
  9322. with_aix_soname=$lt_cv_with_aix_soname
  9323. fi
  9324. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_aix_soname" >&5
  9325. $as_echo "$with_aix_soname" >&6; }
  9326. if test aix != "$with_aix_soname"; then
  9327. # For the AIX way of multilib, we name the shared archive member
  9328. # based on the bitwidth used, traditionally 'shr.o' or 'shr_64.o',
  9329. # and 'shr.imp' or 'shr_64.imp', respectively, for the Import File.
  9330. # Even when GNU compilers ignore OBJECT_MODE but need '-maix64' flag,
  9331. # the AIX toolchain works better with OBJECT_MODE set (default 32).
  9332. if test 64 = "${OBJECT_MODE-32}"; then
  9333. shared_archive_member_spec=shr_64
  9334. else
  9335. shared_archive_member_spec=shr
  9336. fi
  9337. fi
  9338. ;;
  9339. *)
  9340. with_aix_soname=aix
  9341. ;;
  9342. esac
  9343. # This can be used to rebuild libtool when needed
  9344. LIBTOOL_DEPS=$ltmain
  9345. # Always use our own libtool.
  9346. LIBTOOL='$(SHELL) $(top_builddir)/libtool'
  9347. test -z "$LN_S" && LN_S="ln -s"
  9348. if test -n "${ZSH_VERSION+set}"; then
  9349. setopt NO_GLOB_SUBST
  9350. fi
  9351. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
  9352. $as_echo_n "checking for objdir... " >&6; }
  9353. if ${lt_cv_objdir+:} false; then :
  9354. $as_echo_n "(cached) " >&6
  9355. else
  9356. rm -f .libs 2>/dev/null
  9357. mkdir .libs 2>/dev/null
  9358. if test -d .libs; then
  9359. lt_cv_objdir=.libs
  9360. else
  9361. # MS-DOS does not allow filenames that begin with a dot.
  9362. lt_cv_objdir=_libs
  9363. fi
  9364. rmdir .libs 2>/dev/null
  9365. fi
  9366. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
  9367. $as_echo "$lt_cv_objdir" >&6; }
  9368. objdir=$lt_cv_objdir
  9369. cat >>confdefs.h <<_ACEOF
  9370. #define LT_OBJDIR "$lt_cv_objdir/"
  9371. _ACEOF
  9372. case $host_os in
  9373. aix3*)
  9374. # AIX sometimes has problems with the GCC collect2 program. For some
  9375. # reason, if we set the COLLECT_NAMES environment variable, the problems
  9376. # vanish in a puff of smoke.
  9377. if test set != "${COLLECT_NAMES+set}"; then
  9378. COLLECT_NAMES=
  9379. export COLLECT_NAMES
  9380. fi
  9381. ;;
  9382. esac
  9383. # Global variables:
  9384. ofile=libtool
  9385. can_build_shared=yes
  9386. # All known linkers require a '.a' archive for static linking (except MSVC,
  9387. # which needs '.lib').
  9388. libext=a
  9389. with_gnu_ld=$lt_cv_prog_gnu_ld
  9390. old_CC=$CC
  9391. old_CFLAGS=$CFLAGS
  9392. # Set sane defaults for various variables
  9393. test -z "$CC" && CC=cc
  9394. test -z "$LTCC" && LTCC=$CC
  9395. test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
  9396. test -z "$LD" && LD=ld
  9397. test -z "$ac_objext" && ac_objext=o
  9398. func_cc_basename $compiler
  9399. cc_basename=$func_cc_basename_result
  9400. # Only perform the check for file, if the check method requires it
  9401. test -z "$MAGIC_CMD" && MAGIC_CMD=file
  9402. case $deplibs_check_method in
  9403. file_magic*)
  9404. if test "$file_magic_cmd" = '$MAGIC_CMD'; then
  9405. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
  9406. $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
  9407. if ${lt_cv_path_MAGIC_CMD+:} false; then :
  9408. $as_echo_n "(cached) " >&6
  9409. else
  9410. case $MAGIC_CMD in
  9411. [\\/*] | ?:[\\/]*)
  9412. lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
  9413. ;;
  9414. *)
  9415. lt_save_MAGIC_CMD=$MAGIC_CMD
  9416. lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
  9417. ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
  9418. for ac_dir in $ac_dummy; do
  9419. IFS=$lt_save_ifs
  9420. test -z "$ac_dir" && ac_dir=.
  9421. if test -f "$ac_dir/${ac_tool_prefix}file"; then
  9422. lt_cv_path_MAGIC_CMD=$ac_dir/"${ac_tool_prefix}file"
  9423. if test -n "$file_magic_test_file"; then
  9424. case $deplibs_check_method in
  9425. "file_magic "*)
  9426. file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
  9427. MAGIC_CMD=$lt_cv_path_MAGIC_CMD
  9428. if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
  9429. $EGREP "$file_magic_regex" > /dev/null; then
  9430. :
  9431. else
  9432. cat <<_LT_EOF 1>&2
  9433. *** Warning: the command libtool uses to detect shared libraries,
  9434. *** $file_magic_cmd, produces output that libtool cannot recognize.
  9435. *** The result is that libtool may fail to recognize shared libraries
  9436. *** as such. This will affect the creation of libtool libraries that
  9437. *** depend on shared libraries, but programs linked with such libtool
  9438. *** libraries will work regardless of this problem. Nevertheless, you
  9439. *** may want to report the problem to your system manager and/or to
  9440. *** [email protected]
  9441. _LT_EOF
  9442. fi ;;
  9443. esac
  9444. fi
  9445. break
  9446. fi
  9447. done
  9448. IFS=$lt_save_ifs
  9449. MAGIC_CMD=$lt_save_MAGIC_CMD
  9450. ;;
  9451. esac
  9452. fi
  9453. MAGIC_CMD=$lt_cv_path_MAGIC_CMD
  9454. if test -n "$MAGIC_CMD"; then
  9455. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
  9456. $as_echo "$MAGIC_CMD" >&6; }
  9457. else
  9458. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  9459. $as_echo "no" >&6; }
  9460. fi
  9461. if test -z "$lt_cv_path_MAGIC_CMD"; then
  9462. if test -n "$ac_tool_prefix"; then
  9463. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
  9464. $as_echo_n "checking for file... " >&6; }
  9465. if ${lt_cv_path_MAGIC_CMD+:} false; then :
  9466. $as_echo_n "(cached) " >&6
  9467. else
  9468. case $MAGIC_CMD in
  9469. [\\/*] | ?:[\\/]*)
  9470. lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
  9471. ;;
  9472. *)
  9473. lt_save_MAGIC_CMD=$MAGIC_CMD
  9474. lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
  9475. ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
  9476. for ac_dir in $ac_dummy; do
  9477. IFS=$lt_save_ifs
  9478. test -z "$ac_dir" && ac_dir=.
  9479. if test -f "$ac_dir/file"; then
  9480. lt_cv_path_MAGIC_CMD=$ac_dir/"file"
  9481. if test -n "$file_magic_test_file"; then
  9482. case $deplibs_check_method in
  9483. "file_magic "*)
  9484. file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
  9485. MAGIC_CMD=$lt_cv_path_MAGIC_CMD
  9486. if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
  9487. $EGREP "$file_magic_regex" > /dev/null; then
  9488. :
  9489. else
  9490. cat <<_LT_EOF 1>&2
  9491. *** Warning: the command libtool uses to detect shared libraries,
  9492. *** $file_magic_cmd, produces output that libtool cannot recognize.
  9493. *** The result is that libtool may fail to recognize shared libraries
  9494. *** as such. This will affect the creation of libtool libraries that
  9495. *** depend on shared libraries, but programs linked with such libtool
  9496. *** libraries will work regardless of this problem. Nevertheless, you
  9497. *** may want to report the problem to your system manager and/or to
  9498. *** [email protected]
  9499. _LT_EOF
  9500. fi ;;
  9501. esac
  9502. fi
  9503. break
  9504. fi
  9505. done
  9506. IFS=$lt_save_ifs
  9507. MAGIC_CMD=$lt_save_MAGIC_CMD
  9508. ;;
  9509. esac
  9510. fi
  9511. MAGIC_CMD=$lt_cv_path_MAGIC_CMD
  9512. if test -n "$MAGIC_CMD"; then
  9513. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
  9514. $as_echo "$MAGIC_CMD" >&6; }
  9515. else
  9516. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  9517. $as_echo "no" >&6; }
  9518. fi
  9519. else
  9520. MAGIC_CMD=:
  9521. fi
  9522. fi
  9523. fi
  9524. ;;
  9525. esac
  9526. # Use C for the default configuration in the libtool script
  9527. lt_save_CC=$CC
  9528. ac_ext=c
  9529. ac_cpp='$CPP $CPPFLAGS'
  9530. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  9531. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  9532. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  9533. # Source file extension for C test sources.
  9534. ac_ext=c
  9535. # Object file extension for compiled C test sources.
  9536. objext=o
  9537. objext=$objext
  9538. # Code to be used in simple compile tests
  9539. lt_simple_compile_test_code="int some_variable = 0;"
  9540. # Code to be used in simple link tests
  9541. lt_simple_link_test_code='int main(){return(0);}'
  9542. # If no C compiler was specified, use CC.
  9543. LTCC=${LTCC-"$CC"}
  9544. # If no C compiler flags were specified, use CFLAGS.
  9545. LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
  9546. # Allow CC to be a program name with arguments.
  9547. compiler=$CC
  9548. # Save the default compiler, since it gets overwritten when the other
  9549. # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
  9550. compiler_DEFAULT=$CC
  9551. # save warnings/boilerplate of simple test code
  9552. ac_outfile=conftest.$ac_objext
  9553. echo "$lt_simple_compile_test_code" >conftest.$ac_ext
  9554. eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  9555. _lt_compiler_boilerplate=`cat conftest.err`
  9556. $RM conftest*
  9557. ac_outfile=conftest.$ac_objext
  9558. echo "$lt_simple_link_test_code" >conftest.$ac_ext
  9559. eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  9560. _lt_linker_boilerplate=`cat conftest.err`
  9561. $RM -r conftest*
  9562. if test -n "$compiler"; then
  9563. lt_prog_compiler_no_builtin_flag=
  9564. if test yes = "$GCC"; then
  9565. case $cc_basename in
  9566. nvcc*)
  9567. lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
  9568. *)
  9569. lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
  9570. esac
  9571. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
  9572. $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
  9573. if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
  9574. $as_echo_n "(cached) " >&6
  9575. else
  9576. lt_cv_prog_compiler_rtti_exceptions=no
  9577. ac_outfile=conftest.$ac_objext
  9578. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  9579. lt_compiler_flag="-fno-rtti -fno-exceptions" ## exclude from sc_useless_quotes_in_assignment
  9580. # Insert the option either (1) after the last *FLAGS variable, or
  9581. # (2) before a word containing "conftest.", or (3) at the end.
  9582. # Note that $ac_compile itself does not contain backslashes and begins
  9583. # with a dollar sign (not a hyphen), so the echo should work correctly.
  9584. # The option is referenced via a variable to avoid confusing sed.
  9585. lt_compile=`echo "$ac_compile" | $SED \
  9586. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  9587. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  9588. -e 's:$: $lt_compiler_flag:'`
  9589. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  9590. (eval "$lt_compile" 2>conftest.err)
  9591. ac_status=$?
  9592. cat conftest.err >&5
  9593. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9594. if (exit $ac_status) && test -s "$ac_outfile"; then
  9595. # The compiler can only warn and ignore the option if not recognized
  9596. # So say no if there are warnings other than the usual output.
  9597. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
  9598. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  9599. if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
  9600. lt_cv_prog_compiler_rtti_exceptions=yes
  9601. fi
  9602. fi
  9603. $RM conftest*
  9604. fi
  9605. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
  9606. $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
  9607. if test yes = "$lt_cv_prog_compiler_rtti_exceptions"; then
  9608. lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
  9609. else
  9610. :
  9611. fi
  9612. fi
  9613. lt_prog_compiler_wl=
  9614. lt_prog_compiler_pic=
  9615. lt_prog_compiler_static=
  9616. if test yes = "$GCC"; then
  9617. lt_prog_compiler_wl='-Wl,'
  9618. lt_prog_compiler_static='-static'
  9619. case $host_os in
  9620. aix*)
  9621. # All AIX code is PIC.
  9622. if test ia64 = "$host_cpu"; then
  9623. # AIX 5 now supports IA64 processor
  9624. lt_prog_compiler_static='-Bstatic'
  9625. fi
  9626. lt_prog_compiler_pic='-fPIC'
  9627. ;;
  9628. amigaos*)
  9629. case $host_cpu in
  9630. powerpc)
  9631. # see comment about AmigaOS4 .so support
  9632. lt_prog_compiler_pic='-fPIC'
  9633. ;;
  9634. m68k)
  9635. # FIXME: we need at least 68020 code to build shared libraries, but
  9636. # adding the '-m68020' flag to GCC prevents building anything better,
  9637. # like '-m68040'.
  9638. lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
  9639. ;;
  9640. esac
  9641. ;;
  9642. beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
  9643. # PIC is the default for these OSes.
  9644. ;;
  9645. mingw* | cygwin* | pw32* | os2* | cegcc*)
  9646. # This hack is so that the source file can tell whether it is being
  9647. # built for inclusion in a dll (and should export symbols for example).
  9648. # Although the cygwin gcc ignores -fPIC, still need this for old-style
  9649. # (--disable-auto-import) libraries
  9650. lt_prog_compiler_pic='-DDLL_EXPORT'
  9651. case $host_os in
  9652. os2*)
  9653. lt_prog_compiler_static='$wl-static'
  9654. ;;
  9655. esac
  9656. ;;
  9657. darwin* | rhapsody*)
  9658. # PIC is the default on this platform
  9659. # Common symbols not allowed in MH_DYLIB files
  9660. lt_prog_compiler_pic='-fno-common'
  9661. ;;
  9662. haiku*)
  9663. # PIC is the default for Haiku.
  9664. # The "-static" flag exists, but is broken.
  9665. lt_prog_compiler_static=
  9666. ;;
  9667. hpux*)
  9668. # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
  9669. # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
  9670. # sets the default TLS model and affects inlining.
  9671. case $host_cpu in
  9672. hppa*64*)
  9673. # +Z the default
  9674. ;;
  9675. *)
  9676. lt_prog_compiler_pic='-fPIC'
  9677. ;;
  9678. esac
  9679. ;;
  9680. interix[3-9]*)
  9681. # Interix 3.x gcc -fpic/-fPIC options generate broken code.
  9682. # Instead, we relocate shared libraries at runtime.
  9683. ;;
  9684. msdosdjgpp*)
  9685. # Just because we use GCC doesn't mean we suddenly get shared libraries
  9686. # on systems that don't support them.
  9687. lt_prog_compiler_can_build_shared=no
  9688. enable_shared=no
  9689. ;;
  9690. *nto* | *qnx*)
  9691. # QNX uses GNU C++, but need to define -shared option too, otherwise
  9692. # it will coredump.
  9693. lt_prog_compiler_pic='-fPIC -shared'
  9694. ;;
  9695. sysv4*MP*)
  9696. if test -d /usr/nec; then
  9697. lt_prog_compiler_pic=-Kconform_pic
  9698. fi
  9699. ;;
  9700. *)
  9701. lt_prog_compiler_pic='-fPIC'
  9702. ;;
  9703. esac
  9704. case $cc_basename in
  9705. nvcc*) # Cuda Compiler Driver 2.2
  9706. lt_prog_compiler_wl='-Xlinker '
  9707. if test -n "$lt_prog_compiler_pic"; then
  9708. lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
  9709. fi
  9710. ;;
  9711. esac
  9712. else
  9713. # PORTME Check for flag to pass linker flags through the system compiler.
  9714. case $host_os in
  9715. aix*)
  9716. lt_prog_compiler_wl='-Wl,'
  9717. if test ia64 = "$host_cpu"; then
  9718. # AIX 5 now supports IA64 processor
  9719. lt_prog_compiler_static='-Bstatic'
  9720. else
  9721. lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
  9722. fi
  9723. ;;
  9724. darwin* | rhapsody*)
  9725. # PIC is the default on this platform
  9726. # Common symbols not allowed in MH_DYLIB files
  9727. lt_prog_compiler_pic='-fno-common'
  9728. case $cc_basename in
  9729. nagfor*)
  9730. # NAG Fortran compiler
  9731. lt_prog_compiler_wl='-Wl,-Wl,,'
  9732. lt_prog_compiler_pic='-PIC'
  9733. lt_prog_compiler_static='-Bstatic'
  9734. ;;
  9735. esac
  9736. ;;
  9737. mingw* | cygwin* | pw32* | os2* | cegcc*)
  9738. # This hack is so that the source file can tell whether it is being
  9739. # built for inclusion in a dll (and should export symbols for example).
  9740. lt_prog_compiler_pic='-DDLL_EXPORT'
  9741. case $host_os in
  9742. os2*)
  9743. lt_prog_compiler_static='$wl-static'
  9744. ;;
  9745. esac
  9746. ;;
  9747. hpux9* | hpux10* | hpux11*)
  9748. lt_prog_compiler_wl='-Wl,'
  9749. # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
  9750. # not for PA HP-UX.
  9751. case $host_cpu in
  9752. hppa*64*|ia64*)
  9753. # +Z the default
  9754. ;;
  9755. *)
  9756. lt_prog_compiler_pic='+Z'
  9757. ;;
  9758. esac
  9759. # Is there a better lt_prog_compiler_static that works with the bundled CC?
  9760. lt_prog_compiler_static='$wl-a ${wl}archive'
  9761. ;;
  9762. irix5* | irix6* | nonstopux*)
  9763. lt_prog_compiler_wl='-Wl,'
  9764. # PIC (with -KPIC) is the default.
  9765. lt_prog_compiler_static='-non_shared'
  9766. ;;
  9767. linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
  9768. case $cc_basename in
  9769. # old Intel for x86_64, which still supported -KPIC.
  9770. ecc*)
  9771. lt_prog_compiler_wl='-Wl,'
  9772. lt_prog_compiler_pic='-KPIC'
  9773. lt_prog_compiler_static='-static'
  9774. ;;
  9775. # icc used to be incompatible with GCC.
  9776. # ICC 10 doesn't accept -KPIC any more.
  9777. icc* | ifort*)
  9778. lt_prog_compiler_wl='-Wl,'
  9779. lt_prog_compiler_pic='-fPIC'
  9780. lt_prog_compiler_static='-static'
  9781. ;;
  9782. # Lahey Fortran 8.1.
  9783. lf95*)
  9784. lt_prog_compiler_wl='-Wl,'
  9785. lt_prog_compiler_pic='--shared'
  9786. lt_prog_compiler_static='--static'
  9787. ;;
  9788. nagfor*)
  9789. # NAG Fortran compiler
  9790. lt_prog_compiler_wl='-Wl,-Wl,,'
  9791. lt_prog_compiler_pic='-PIC'
  9792. lt_prog_compiler_static='-Bstatic'
  9793. ;;
  9794. tcc*)
  9795. # Fabrice Bellard et al's Tiny C Compiler
  9796. lt_prog_compiler_wl='-Wl,'
  9797. lt_prog_compiler_pic='-fPIC'
  9798. lt_prog_compiler_static='-static'
  9799. ;;
  9800. pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
  9801. # Portland Group compilers (*not* the Pentium gcc compiler,
  9802. # which looks to be a dead project)
  9803. lt_prog_compiler_wl='-Wl,'
  9804. lt_prog_compiler_pic='-fpic'
  9805. lt_prog_compiler_static='-Bstatic'
  9806. ;;
  9807. ccc*)
  9808. lt_prog_compiler_wl='-Wl,'
  9809. # All Alpha code is PIC.
  9810. lt_prog_compiler_static='-non_shared'
  9811. ;;
  9812. xl* | bgxl* | bgf* | mpixl*)
  9813. # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
  9814. lt_prog_compiler_wl='-Wl,'
  9815. lt_prog_compiler_pic='-qpic'
  9816. lt_prog_compiler_static='-qstaticlink'
  9817. ;;
  9818. *)
  9819. case `$CC -V 2>&1 | sed 5q` in
  9820. *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
  9821. # Sun Fortran 8.3 passes all unrecognized flags to the linker
  9822. lt_prog_compiler_pic='-KPIC'
  9823. lt_prog_compiler_static='-Bstatic'
  9824. lt_prog_compiler_wl=''
  9825. ;;
  9826. *Sun\ F* | *Sun*Fortran*)
  9827. lt_prog_compiler_pic='-KPIC'
  9828. lt_prog_compiler_static='-Bstatic'
  9829. lt_prog_compiler_wl='-Qoption ld '
  9830. ;;
  9831. *Sun\ C*)
  9832. # Sun C 5.9
  9833. lt_prog_compiler_pic='-KPIC'
  9834. lt_prog_compiler_static='-Bstatic'
  9835. lt_prog_compiler_wl='-Wl,'
  9836. ;;
  9837. *Intel*\ [CF]*Compiler*)
  9838. lt_prog_compiler_wl='-Wl,'
  9839. lt_prog_compiler_pic='-fPIC'
  9840. lt_prog_compiler_static='-static'
  9841. ;;
  9842. *Portland\ Group*)
  9843. lt_prog_compiler_wl='-Wl,'
  9844. lt_prog_compiler_pic='-fpic'
  9845. lt_prog_compiler_static='-Bstatic'
  9846. ;;
  9847. esac
  9848. ;;
  9849. esac
  9850. ;;
  9851. newsos6)
  9852. lt_prog_compiler_pic='-KPIC'
  9853. lt_prog_compiler_static='-Bstatic'
  9854. ;;
  9855. *nto* | *qnx*)
  9856. # QNX uses GNU C++, but need to define -shared option too, otherwise
  9857. # it will coredump.
  9858. lt_prog_compiler_pic='-fPIC -shared'
  9859. ;;
  9860. osf3* | osf4* | osf5*)
  9861. lt_prog_compiler_wl='-Wl,'
  9862. # All OSF/1 code is PIC.
  9863. lt_prog_compiler_static='-non_shared'
  9864. ;;
  9865. rdos*)
  9866. lt_prog_compiler_static='-non_shared'
  9867. ;;
  9868. solaris*)
  9869. lt_prog_compiler_pic='-KPIC'
  9870. lt_prog_compiler_static='-Bstatic'
  9871. case $cc_basename in
  9872. f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
  9873. lt_prog_compiler_wl='-Qoption ld ';;
  9874. *)
  9875. lt_prog_compiler_wl='-Wl,';;
  9876. esac
  9877. ;;
  9878. sunos4*)
  9879. lt_prog_compiler_wl='-Qoption ld '
  9880. lt_prog_compiler_pic='-PIC'
  9881. lt_prog_compiler_static='-Bstatic'
  9882. ;;
  9883. sysv4 | sysv4.2uw2* | sysv4.3*)
  9884. lt_prog_compiler_wl='-Wl,'
  9885. lt_prog_compiler_pic='-KPIC'
  9886. lt_prog_compiler_static='-Bstatic'
  9887. ;;
  9888. sysv4*MP*)
  9889. if test -d /usr/nec; then
  9890. lt_prog_compiler_pic='-Kconform_pic'
  9891. lt_prog_compiler_static='-Bstatic'
  9892. fi
  9893. ;;
  9894. sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
  9895. lt_prog_compiler_wl='-Wl,'
  9896. lt_prog_compiler_pic='-KPIC'
  9897. lt_prog_compiler_static='-Bstatic'
  9898. ;;
  9899. unicos*)
  9900. lt_prog_compiler_wl='-Wl,'
  9901. lt_prog_compiler_can_build_shared=no
  9902. ;;
  9903. uts4*)
  9904. lt_prog_compiler_pic='-pic'
  9905. lt_prog_compiler_static='-Bstatic'
  9906. ;;
  9907. *)
  9908. lt_prog_compiler_can_build_shared=no
  9909. ;;
  9910. esac
  9911. fi
  9912. case $host_os in
  9913. # For platforms that do not support PIC, -DPIC is meaningless:
  9914. *djgpp*)
  9915. lt_prog_compiler_pic=
  9916. ;;
  9917. *)
  9918. lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
  9919. ;;
  9920. esac
  9921. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
  9922. $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
  9923. if ${lt_cv_prog_compiler_pic+:} false; then :
  9924. $as_echo_n "(cached) " >&6
  9925. else
  9926. lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
  9927. fi
  9928. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
  9929. $as_echo "$lt_cv_prog_compiler_pic" >&6; }
  9930. lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
  9931. #
  9932. # Check to make sure the PIC flag actually works.
  9933. #
  9934. if test -n "$lt_prog_compiler_pic"; then
  9935. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
  9936. $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
  9937. if ${lt_cv_prog_compiler_pic_works+:} false; then :
  9938. $as_echo_n "(cached) " >&6
  9939. else
  9940. lt_cv_prog_compiler_pic_works=no
  9941. ac_outfile=conftest.$ac_objext
  9942. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  9943. lt_compiler_flag="$lt_prog_compiler_pic -DPIC" ## exclude from sc_useless_quotes_in_assignment
  9944. # Insert the option either (1) after the last *FLAGS variable, or
  9945. # (2) before a word containing "conftest.", or (3) at the end.
  9946. # Note that $ac_compile itself does not contain backslashes and begins
  9947. # with a dollar sign (not a hyphen), so the echo should work correctly.
  9948. # The option is referenced via a variable to avoid confusing sed.
  9949. lt_compile=`echo "$ac_compile" | $SED \
  9950. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  9951. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  9952. -e 's:$: $lt_compiler_flag:'`
  9953. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  9954. (eval "$lt_compile" 2>conftest.err)
  9955. ac_status=$?
  9956. cat conftest.err >&5
  9957. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9958. if (exit $ac_status) && test -s "$ac_outfile"; then
  9959. # The compiler can only warn and ignore the option if not recognized
  9960. # So say no if there are warnings other than the usual output.
  9961. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
  9962. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  9963. if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
  9964. lt_cv_prog_compiler_pic_works=yes
  9965. fi
  9966. fi
  9967. $RM conftest*
  9968. fi
  9969. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
  9970. $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
  9971. if test yes = "$lt_cv_prog_compiler_pic_works"; then
  9972. case $lt_prog_compiler_pic in
  9973. "" | " "*) ;;
  9974. *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
  9975. esac
  9976. else
  9977. lt_prog_compiler_pic=
  9978. lt_prog_compiler_can_build_shared=no
  9979. fi
  9980. fi
  9981. #
  9982. # Check to make sure the static flag actually works.
  9983. #
  9984. wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
  9985. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
  9986. $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
  9987. if ${lt_cv_prog_compiler_static_works+:} false; then :
  9988. $as_echo_n "(cached) " >&6
  9989. else
  9990. lt_cv_prog_compiler_static_works=no
  9991. save_LDFLAGS=$LDFLAGS
  9992. LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
  9993. echo "$lt_simple_link_test_code" > conftest.$ac_ext
  9994. if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
  9995. # The linker can only warn and ignore the option if not recognized
  9996. # So say no if there are warnings
  9997. if test -s conftest.err; then
  9998. # Append any errors to the config.log.
  9999. cat conftest.err 1>&5
  10000. $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
  10001. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  10002. if diff conftest.exp conftest.er2 >/dev/null; then
  10003. lt_cv_prog_compiler_static_works=yes
  10004. fi
  10005. else
  10006. lt_cv_prog_compiler_static_works=yes
  10007. fi
  10008. fi
  10009. $RM -r conftest*
  10010. LDFLAGS=$save_LDFLAGS
  10011. fi
  10012. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
  10013. $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
  10014. if test yes = "$lt_cv_prog_compiler_static_works"; then
  10015. :
  10016. else
  10017. lt_prog_compiler_static=
  10018. fi
  10019. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
  10020. $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
  10021. if ${lt_cv_prog_compiler_c_o+:} false; then :
  10022. $as_echo_n "(cached) " >&6
  10023. else
  10024. lt_cv_prog_compiler_c_o=no
  10025. $RM -r conftest 2>/dev/null
  10026. mkdir conftest
  10027. cd conftest
  10028. mkdir out
  10029. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  10030. lt_compiler_flag="-o out/conftest2.$ac_objext"
  10031. # Insert the option either (1) after the last *FLAGS variable, or
  10032. # (2) before a word containing "conftest.", or (3) at the end.
  10033. # Note that $ac_compile itself does not contain backslashes and begins
  10034. # with a dollar sign (not a hyphen), so the echo should work correctly.
  10035. lt_compile=`echo "$ac_compile" | $SED \
  10036. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  10037. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  10038. -e 's:$: $lt_compiler_flag:'`
  10039. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  10040. (eval "$lt_compile" 2>out/conftest.err)
  10041. ac_status=$?
  10042. cat out/conftest.err >&5
  10043. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10044. if (exit $ac_status) && test -s out/conftest2.$ac_objext
  10045. then
  10046. # The compiler can only warn and ignore the option if not recognized
  10047. # So say no if there are warnings
  10048. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
  10049. $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
  10050. if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
  10051. lt_cv_prog_compiler_c_o=yes
  10052. fi
  10053. fi
  10054. chmod u+w . 2>&5
  10055. $RM conftest*
  10056. # SGI C++ compiler will create directory out/ii_files/ for
  10057. # template instantiation
  10058. test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
  10059. $RM out/* && rmdir out
  10060. cd ..
  10061. $RM -r conftest
  10062. $RM conftest*
  10063. fi
  10064. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
  10065. $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
  10066. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
  10067. $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
  10068. if ${lt_cv_prog_compiler_c_o+:} false; then :
  10069. $as_echo_n "(cached) " >&6
  10070. else
  10071. lt_cv_prog_compiler_c_o=no
  10072. $RM -r conftest 2>/dev/null
  10073. mkdir conftest
  10074. cd conftest
  10075. mkdir out
  10076. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  10077. lt_compiler_flag="-o out/conftest2.$ac_objext"
  10078. # Insert the option either (1) after the last *FLAGS variable, or
  10079. # (2) before a word containing "conftest.", or (3) at the end.
  10080. # Note that $ac_compile itself does not contain backslashes and begins
  10081. # with a dollar sign (not a hyphen), so the echo should work correctly.
  10082. lt_compile=`echo "$ac_compile" | $SED \
  10083. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  10084. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  10085. -e 's:$: $lt_compiler_flag:'`
  10086. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  10087. (eval "$lt_compile" 2>out/conftest.err)
  10088. ac_status=$?
  10089. cat out/conftest.err >&5
  10090. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10091. if (exit $ac_status) && test -s out/conftest2.$ac_objext
  10092. then
  10093. # The compiler can only warn and ignore the option if not recognized
  10094. # So say no if there are warnings
  10095. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
  10096. $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
  10097. if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
  10098. lt_cv_prog_compiler_c_o=yes
  10099. fi
  10100. fi
  10101. chmod u+w . 2>&5
  10102. $RM conftest*
  10103. # SGI C++ compiler will create directory out/ii_files/ for
  10104. # template instantiation
  10105. test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
  10106. $RM out/* && rmdir out
  10107. cd ..
  10108. $RM -r conftest
  10109. $RM conftest*
  10110. fi
  10111. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
  10112. $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
  10113. hard_links=nottested
  10114. if test no = "$lt_cv_prog_compiler_c_o" && test no != "$need_locks"; then
  10115. # do not overwrite the value of need_locks provided by the user
  10116. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
  10117. $as_echo_n "checking if we can lock with hard links... " >&6; }
  10118. hard_links=yes
  10119. $RM conftest*
  10120. ln conftest.a conftest.b 2>/dev/null && hard_links=no
  10121. touch conftest.a
  10122. ln conftest.a conftest.b 2>&5 || hard_links=no
  10123. ln conftest.a conftest.b 2>/dev/null && hard_links=no
  10124. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
  10125. $as_echo "$hard_links" >&6; }
  10126. if test no = "$hard_links"; then
  10127. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5
  10128. $as_echo "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;}
  10129. need_locks=warn
  10130. fi
  10131. else
  10132. need_locks=no
  10133. fi
  10134. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
  10135. $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
  10136. runpath_var=
  10137. allow_undefined_flag=
  10138. always_export_symbols=no
  10139. archive_cmds=
  10140. archive_expsym_cmds=
  10141. compiler_needs_object=no
  10142. enable_shared_with_static_runtimes=no
  10143. export_dynamic_flag_spec=
  10144. export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
  10145. hardcode_automatic=no
  10146. hardcode_direct=no
  10147. hardcode_direct_absolute=no
  10148. hardcode_libdir_flag_spec=
  10149. hardcode_libdir_separator=
  10150. hardcode_minus_L=no
  10151. hardcode_shlibpath_var=unsupported
  10152. inherit_rpath=no
  10153. link_all_deplibs=unknown
  10154. module_cmds=
  10155. module_expsym_cmds=
  10156. old_archive_from_new_cmds=
  10157. old_archive_from_expsyms_cmds=
  10158. thread_safe_flag_spec=
  10159. whole_archive_flag_spec=
  10160. # include_expsyms should be a list of space-separated symbols to be *always*
  10161. # included in the symbol list
  10162. include_expsyms=
  10163. # exclude_expsyms can be an extended regexp of symbols to exclude
  10164. # it will be wrapped by ' (' and ')$', so one must not match beginning or
  10165. # end of line. Example: 'a|bc|.*d.*' will exclude the symbols 'a' and 'bc',
  10166. # as well as any symbol that contains 'd'.
  10167. exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
  10168. # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
  10169. # platforms (ab)use it in PIC code, but their linkers get confused if
  10170. # the symbol is explicitly referenced. Since portable code cannot
  10171. # rely on this symbol name, it's probably fine to never include it in
  10172. # preloaded symbol tables.
  10173. # Exclude shared library initialization/finalization symbols.
  10174. extract_expsyms_cmds=
  10175. case $host_os in
  10176. cygwin* | mingw* | pw32* | cegcc*)
  10177. # FIXME: the MSVC++ port hasn't been tested in a loooong time
  10178. # When not using gcc, we currently assume that we are using
  10179. # Microsoft Visual C++.
  10180. if test yes != "$GCC"; then
  10181. with_gnu_ld=no
  10182. fi
  10183. ;;
  10184. interix*)
  10185. # we just hope/assume this is gcc and not c89 (= MSVC++)
  10186. with_gnu_ld=yes
  10187. ;;
  10188. openbsd* | bitrig*)
  10189. with_gnu_ld=no
  10190. ;;
  10191. esac
  10192. ld_shlibs=yes
  10193. # On some targets, GNU ld is compatible enough with the native linker
  10194. # that we're better off using the native interface for both.
  10195. lt_use_gnu_ld_interface=no
  10196. if test yes = "$with_gnu_ld"; then
  10197. case $host_os in
  10198. aix*)
  10199. # The AIX port of GNU ld has always aspired to compatibility
  10200. # with the native linker. However, as the warning in the GNU ld
  10201. # block says, versions before 2.19.5* couldn't really create working
  10202. # shared libraries, regardless of the interface used.
  10203. case `$LD -v 2>&1` in
  10204. *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
  10205. *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
  10206. *\ \(GNU\ Binutils\)\ [3-9]*) ;;
  10207. *)
  10208. lt_use_gnu_ld_interface=yes
  10209. ;;
  10210. esac
  10211. ;;
  10212. *)
  10213. lt_use_gnu_ld_interface=yes
  10214. ;;
  10215. esac
  10216. fi
  10217. if test yes = "$lt_use_gnu_ld_interface"; then
  10218. # If archive_cmds runs LD, not CC, wlarc should be empty
  10219. wlarc='$wl'
  10220. # Set some defaults for GNU ld with shared library support. These
  10221. # are reset later if shared libraries are not supported. Putting them
  10222. # here allows them to be overridden if necessary.
  10223. runpath_var=LD_RUN_PATH
  10224. hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
  10225. export_dynamic_flag_spec='$wl--export-dynamic'
  10226. # ancient GNU ld didn't support --whole-archive et. al.
  10227. if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
  10228. whole_archive_flag_spec=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'
  10229. else
  10230. whole_archive_flag_spec=
  10231. fi
  10232. supports_anon_versioning=no
  10233. case `$LD -v | $SED -e 's/(^)\+)\s\+//' 2>&1` in
  10234. *GNU\ gold*) supports_anon_versioning=yes ;;
  10235. *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
  10236. *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
  10237. *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
  10238. *\ 2.11.*) ;; # other 2.11 versions
  10239. *) supports_anon_versioning=yes ;;
  10240. esac
  10241. # See if GNU ld supports shared libraries.
  10242. case $host_os in
  10243. aix[3-9]*)
  10244. # On AIX/PPC, the GNU linker is very broken
  10245. if test ia64 != "$host_cpu"; then
  10246. ld_shlibs=no
  10247. cat <<_LT_EOF 1>&2
  10248. *** Warning: the GNU linker, at least up to release 2.19, is reported
  10249. *** to be unable to reliably create shared libraries on AIX.
  10250. *** Therefore, libtool is disabling shared libraries support. If you
  10251. *** really care for shared libraries, you may want to install binutils
  10252. *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
  10253. *** You will then need to restart the configuration process.
  10254. _LT_EOF
  10255. fi
  10256. ;;
  10257. amigaos*)
  10258. case $host_cpu in
  10259. powerpc)
  10260. # see comment about AmigaOS4 .so support
  10261. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
  10262. archive_expsym_cmds=''
  10263. ;;
  10264. m68k)
  10265. 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)'
  10266. hardcode_libdir_flag_spec='-L$libdir'
  10267. hardcode_minus_L=yes
  10268. ;;
  10269. esac
  10270. ;;
  10271. beos*)
  10272. if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  10273. allow_undefined_flag=unsupported
  10274. # Joseph Beckenbach <[email protected]> says some releases of gcc
  10275. # support --undefined. This deserves some investigation. FIXME
  10276. archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
  10277. else
  10278. ld_shlibs=no
  10279. fi
  10280. ;;
  10281. cygwin* | mingw* | pw32* | cegcc*)
  10282. # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
  10283. # as there is no search path for DLLs.
  10284. hardcode_libdir_flag_spec='-L$libdir'
  10285. export_dynamic_flag_spec='$wl--export-all-symbols'
  10286. allow_undefined_flag=unsupported
  10287. always_export_symbols=no
  10288. enable_shared_with_static_runtimes=yes
  10289. 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'
  10290. exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
  10291. if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
  10292. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
  10293. # If the export-symbols file already is a .def file, use it as
  10294. # is; otherwise, prepend EXPORTS...
  10295. archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then
  10296. cp $export_symbols $output_objdir/$soname.def;
  10297. else
  10298. echo EXPORTS > $output_objdir/$soname.def;
  10299. cat $export_symbols >> $output_objdir/$soname.def;
  10300. fi~
  10301. $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
  10302. else
  10303. ld_shlibs=no
  10304. fi
  10305. ;;
  10306. haiku*)
  10307. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
  10308. link_all_deplibs=yes
  10309. ;;
  10310. os2*)
  10311. hardcode_libdir_flag_spec='-L$libdir'
  10312. hardcode_minus_L=yes
  10313. allow_undefined_flag=unsupported
  10314. shrext_cmds=.dll
  10315. archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
  10316. $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
  10317. $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
  10318. $ECHO EXPORTS >> $output_objdir/$libname.def~
  10319. emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
  10320. $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
  10321. emximp -o $lib $output_objdir/$libname.def'
  10322. archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
  10323. $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
  10324. $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
  10325. $ECHO EXPORTS >> $output_objdir/$libname.def~
  10326. prefix_cmds="$SED"~
  10327. if test EXPORTS = "`$SED 1q $export_symbols`"; then
  10328. prefix_cmds="$prefix_cmds -e 1d";
  10329. fi~
  10330. prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
  10331. cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
  10332. $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
  10333. emximp -o $lib $output_objdir/$libname.def'
  10334. old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
  10335. enable_shared_with_static_runtimes=yes
  10336. ;;
  10337. interix[3-9]*)
  10338. hardcode_direct=no
  10339. hardcode_shlibpath_var=no
  10340. hardcode_libdir_flag_spec='$wl-rpath,$libdir'
  10341. export_dynamic_flag_spec='$wl-E'
  10342. # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
  10343. # Instead, shared libraries are loaded at an image base (0x10000000 by
  10344. # default) and relocated if they conflict, which is a slow very memory
  10345. # consuming and fragmenting process. To avoid this, we pick a random,
  10346. # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
  10347. # time. Moving up from 0x10000000 also allows more sbrk(2) space.
  10348. archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
  10349. 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'
  10350. ;;
  10351. gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
  10352. tmp_diet=no
  10353. if test linux-dietlibc = "$host_os"; then
  10354. case $cc_basename in
  10355. diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
  10356. esac
  10357. fi
  10358. if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
  10359. && test no = "$tmp_diet"
  10360. then
  10361. tmp_addflag=' $pic_flag'
  10362. tmp_sharedflag='-shared'
  10363. case $cc_basename,$host_cpu in
  10364. pgcc*) # Portland Group C compiler
  10365. 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'
  10366. tmp_addflag=' $pic_flag'
  10367. ;;
  10368. pgf77* | pgf90* | pgf95* | pgfortran*)
  10369. # Portland Group f77 and f90 compilers
  10370. 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'
  10371. tmp_addflag=' $pic_flag -Mnomain' ;;
  10372. ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
  10373. tmp_addflag=' -i_dynamic' ;;
  10374. efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
  10375. tmp_addflag=' -i_dynamic -nofor_main' ;;
  10376. ifc* | ifort*) # Intel Fortran compiler
  10377. tmp_addflag=' -nofor_main' ;;
  10378. lf95*) # Lahey Fortran 8.1
  10379. whole_archive_flag_spec=
  10380. tmp_sharedflag='--shared' ;;
  10381. nagfor*) # NAGFOR 5.3
  10382. tmp_sharedflag='-Wl,-shared' ;;
  10383. xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
  10384. tmp_sharedflag='-qmkshrobj'
  10385. tmp_addflag= ;;
  10386. nvcc*) # Cuda Compiler Driver 2.2
  10387. 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'
  10388. compiler_needs_object=yes
  10389. ;;
  10390. esac
  10391. case `$CC -V 2>&1 | sed 5q` in
  10392. *Sun\ C*) # Sun C 5.9
  10393. 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'
  10394. compiler_needs_object=yes
  10395. tmp_sharedflag='-G' ;;
  10396. *Sun\ F*) # Sun Fortran 8.3
  10397. tmp_sharedflag='-G' ;;
  10398. esac
  10399. archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
  10400. if test yes = "$supports_anon_versioning"; then
  10401. archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
  10402. cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
  10403. echo "local: *; };" >> $output_objdir/$libname.ver~
  10404. $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib'
  10405. fi
  10406. case $cc_basename in
  10407. tcc*)
  10408. export_dynamic_flag_spec='-rdynamic'
  10409. ;;
  10410. xlf* | bgf* | bgxlf* | mpixlf*)
  10411. # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
  10412. whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
  10413. hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
  10414. archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
  10415. if test yes = "$supports_anon_versioning"; then
  10416. archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
  10417. cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
  10418. echo "local: *; };" >> $output_objdir/$libname.ver~
  10419. $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
  10420. fi
  10421. ;;
  10422. esac
  10423. else
  10424. ld_shlibs=no
  10425. fi
  10426. ;;
  10427. netbsd*)
  10428. if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  10429. archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
  10430. wlarc=
  10431. else
  10432. archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
  10433. archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
  10434. fi
  10435. ;;
  10436. solaris*)
  10437. if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
  10438. ld_shlibs=no
  10439. cat <<_LT_EOF 1>&2
  10440. *** Warning: The releases 2.8.* of the GNU linker cannot reliably
  10441. *** create shared libraries on Solaris systems. Therefore, libtool
  10442. *** is disabling shared libraries support. We urge you to upgrade GNU
  10443. *** binutils to release 2.9.1 or newer. Another option is to modify
  10444. *** your PATH or compiler configuration so that the native linker is
  10445. *** used, and then restart.
  10446. _LT_EOF
  10447. elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  10448. archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
  10449. archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
  10450. else
  10451. ld_shlibs=no
  10452. fi
  10453. ;;
  10454. sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
  10455. case `$LD -v 2>&1` in
  10456. *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
  10457. ld_shlibs=no
  10458. cat <<_LT_EOF 1>&2
  10459. *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 cannot
  10460. *** reliably create shared libraries on SCO systems. Therefore, libtool
  10461. *** is disabling shared libraries support. We urge you to upgrade GNU
  10462. *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
  10463. *** your PATH or compiler configuration so that the native linker is
  10464. *** used, and then restart.
  10465. _LT_EOF
  10466. ;;
  10467. *)
  10468. # For security reasons, it is highly recommended that you always
  10469. # use absolute paths for naming shared libraries, and exclude the
  10470. # DT_RUNPATH tag from executables and libraries. But doing so
  10471. # requires that you compile everything twice, which is a pain.
  10472. if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  10473. hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
  10474. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
  10475. archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
  10476. else
  10477. ld_shlibs=no
  10478. fi
  10479. ;;
  10480. esac
  10481. ;;
  10482. sunos4*)
  10483. archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  10484. wlarc=
  10485. hardcode_direct=yes
  10486. hardcode_shlibpath_var=no
  10487. ;;
  10488. *)
  10489. if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  10490. archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
  10491. archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
  10492. else
  10493. ld_shlibs=no
  10494. fi
  10495. ;;
  10496. esac
  10497. if test no = "$ld_shlibs"; then
  10498. runpath_var=
  10499. hardcode_libdir_flag_spec=
  10500. export_dynamic_flag_spec=
  10501. whole_archive_flag_spec=
  10502. fi
  10503. else
  10504. # PORTME fill in a description of your system's linker (not GNU ld)
  10505. case $host_os in
  10506. aix3*)
  10507. allow_undefined_flag=unsupported
  10508. always_export_symbols=yes
  10509. 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'
  10510. # Note: this linker hardcodes the directories in LIBPATH if there
  10511. # are no directories specified by -L.
  10512. hardcode_minus_L=yes
  10513. if test yes = "$GCC" && test -z "$lt_prog_compiler_static"; then
  10514. # Neither direct hardcoding nor static linking is supported with a
  10515. # broken collect2.
  10516. hardcode_direct=unsupported
  10517. fi
  10518. ;;
  10519. aix[4-9]*)
  10520. if test ia64 = "$host_cpu"; then
  10521. # On IA64, the linker does run time linking by default, so we don't
  10522. # have to do anything special.
  10523. aix_use_runtimelinking=no
  10524. exp_sym_flag='-Bexport'
  10525. no_entry_flag=
  10526. else
  10527. # If we're using GNU nm, then we don't want the "-C" option.
  10528. # -C means demangle to GNU nm, but means don't demangle to AIX nm.
  10529. # Without the "-l" option, or with the "-B" option, AIX nm treats
  10530. # weak defined symbols like other global defined symbols, whereas
  10531. # GNU nm marks them as "W".
  10532. # While the 'weak' keyword is ignored in the Export File, we need
  10533. # it in the Import File for the 'aix-soname' feature, so we have
  10534. # to replace the "-B" option with "-P" for AIX nm.
  10535. if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
  10536. 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'
  10537. else
  10538. 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'
  10539. fi
  10540. aix_use_runtimelinking=no
  10541. # Test if we are trying to use run time linking or normal
  10542. # AIX style linking. If -brtl is somewhere in LDFLAGS, we
  10543. # have runtime linking enabled, and use it for executables.
  10544. # For shared libraries, we enable/disable runtime linking
  10545. # depending on the kind of the shared library created -
  10546. # when "with_aix_soname,aix_use_runtimelinking" is:
  10547. # "aix,no" lib.a(lib.so.V) shared, rtl:no, for executables
  10548. # "aix,yes" lib.so shared, rtl:yes, for executables
  10549. # lib.a static archive
  10550. # "both,no" lib.so.V(shr.o) shared, rtl:yes
  10551. # lib.a(lib.so.V) shared, rtl:no, for executables
  10552. # "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables
  10553. # lib.a(lib.so.V) shared, rtl:no
  10554. # "svr4,*" lib.so.V(shr.o) shared, rtl:yes, for executables
  10555. # lib.a static archive
  10556. case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
  10557. for ld_flag in $LDFLAGS; do
  10558. if (test x-brtl = "x$ld_flag" || test x-Wl,-brtl = "x$ld_flag"); then
  10559. aix_use_runtimelinking=yes
  10560. break
  10561. fi
  10562. done
  10563. if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then
  10564. # With aix-soname=svr4, we create the lib.so.V shared archives only,
  10565. # so we don't have lib.a shared libs to link our executables.
  10566. # We have to force runtime linking in this case.
  10567. aix_use_runtimelinking=yes
  10568. LDFLAGS="$LDFLAGS -Wl,-brtl"
  10569. fi
  10570. ;;
  10571. esac
  10572. exp_sym_flag='-bexport'
  10573. no_entry_flag='-bnoentry'
  10574. fi
  10575. # When large executables or shared objects are built, AIX ld can
  10576. # have problems creating the table of contents. If linking a library
  10577. # or program results in "error TOC overflow" add -mminimal-toc to
  10578. # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
  10579. # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
  10580. archive_cmds=''
  10581. hardcode_direct=yes
  10582. hardcode_direct_absolute=yes
  10583. hardcode_libdir_separator=':'
  10584. link_all_deplibs=yes
  10585. file_list_spec='$wl-f,'
  10586. case $with_aix_soname,$aix_use_runtimelinking in
  10587. aix,*) ;; # traditional, no import file
  10588. svr4,* | *,yes) # use import file
  10589. # The Import File defines what to hardcode.
  10590. hardcode_direct=no
  10591. hardcode_direct_absolute=no
  10592. ;;
  10593. esac
  10594. if test yes = "$GCC"; then
  10595. case $host_os in aix4.[012]|aix4.[012].*)
  10596. # We only want to do this on AIX 4.2 and lower, the check
  10597. # below for broken collect2 doesn't work under 4.3+
  10598. collect2name=`$CC -print-prog-name=collect2`
  10599. if test -f "$collect2name" &&
  10600. strings "$collect2name" | $GREP resolve_lib_name >/dev/null
  10601. then
  10602. # We have reworked collect2
  10603. :
  10604. else
  10605. # We have old collect2
  10606. hardcode_direct=unsupported
  10607. # It fails to find uninstalled libraries when the uninstalled
  10608. # path is not listed in the libpath. Setting hardcode_minus_L
  10609. # to unsupported forces relinking
  10610. hardcode_minus_L=yes
  10611. hardcode_libdir_flag_spec='-L$libdir'
  10612. hardcode_libdir_separator=
  10613. fi
  10614. ;;
  10615. esac
  10616. shared_flag='-shared'
  10617. if test yes = "$aix_use_runtimelinking"; then
  10618. shared_flag="$shared_flag "'$wl-G'
  10619. fi
  10620. # Need to ensure runtime linking is disabled for the traditional
  10621. # shared library, or the linker may eventually find shared libraries
  10622. # /with/ Import File - we do not want to mix them.
  10623. shared_flag_aix='-shared'
  10624. shared_flag_svr4='-shared $wl-G'
  10625. else
  10626. # not using gcc
  10627. if test ia64 = "$host_cpu"; then
  10628. # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
  10629. # chokes on -Wl,-G. The following line is correct:
  10630. shared_flag='-G'
  10631. else
  10632. if test yes = "$aix_use_runtimelinking"; then
  10633. shared_flag='$wl-G'
  10634. else
  10635. shared_flag='$wl-bM:SRE'
  10636. fi
  10637. shared_flag_aix='$wl-bM:SRE'
  10638. shared_flag_svr4='$wl-G'
  10639. fi
  10640. fi
  10641. export_dynamic_flag_spec='$wl-bexpall'
  10642. # It seems that -bexpall does not export symbols beginning with
  10643. # underscore (_), so it is better to generate a list of symbols to export.
  10644. always_export_symbols=yes
  10645. if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then
  10646. # Warning - without using the other runtime loading flags (-brtl),
  10647. # -berok will link without error, but may produce a broken library.
  10648. allow_undefined_flag='-berok'
  10649. # Determine the default libpath from the value encoded in an
  10650. # empty executable.
  10651. if test set = "${lt_cv_aix_libpath+set}"; then
  10652. aix_libpath=$lt_cv_aix_libpath
  10653. else
  10654. if ${lt_cv_aix_libpath_+:} false; then :
  10655. $as_echo_n "(cached) " >&6
  10656. else
  10657. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10658. /* end confdefs.h. */
  10659. int
  10660. main ()
  10661. {
  10662. ;
  10663. return 0;
  10664. }
  10665. _ACEOF
  10666. if ac_fn_c_try_link "$LINENO"; then :
  10667. lt_aix_libpath_sed='
  10668. /Import File Strings/,/^$/ {
  10669. /^0/ {
  10670. s/^0 *\([^ ]*\) *$/\1/
  10671. p
  10672. }
  10673. }'
  10674. lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  10675. # Check for a 64-bit object if we didn't find anything.
  10676. if test -z "$lt_cv_aix_libpath_"; then
  10677. lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  10678. fi
  10679. fi
  10680. rm -f core conftest.err conftest.$ac_objext \
  10681. conftest$ac_exeext conftest.$ac_ext
  10682. if test -z "$lt_cv_aix_libpath_"; then
  10683. lt_cv_aix_libpath_=/usr/lib:/lib
  10684. fi
  10685. fi
  10686. aix_libpath=$lt_cv_aix_libpath_
  10687. fi
  10688. hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
  10689. 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
  10690. else
  10691. if test ia64 = "$host_cpu"; then
  10692. hardcode_libdir_flag_spec='$wl-R $libdir:/usr/lib:/lib'
  10693. allow_undefined_flag="-z nodefs"
  10694. 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"
  10695. else
  10696. # Determine the default libpath from the value encoded in an
  10697. # empty executable.
  10698. if test set = "${lt_cv_aix_libpath+set}"; then
  10699. aix_libpath=$lt_cv_aix_libpath
  10700. else
  10701. if ${lt_cv_aix_libpath_+:} false; then :
  10702. $as_echo_n "(cached) " >&6
  10703. else
  10704. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10705. /* end confdefs.h. */
  10706. int
  10707. main ()
  10708. {
  10709. ;
  10710. return 0;
  10711. }
  10712. _ACEOF
  10713. if ac_fn_c_try_link "$LINENO"; then :
  10714. lt_aix_libpath_sed='
  10715. /Import File Strings/,/^$/ {
  10716. /^0/ {
  10717. s/^0 *\([^ ]*\) *$/\1/
  10718. p
  10719. }
  10720. }'
  10721. lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  10722. # Check for a 64-bit object if we didn't find anything.
  10723. if test -z "$lt_cv_aix_libpath_"; then
  10724. lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  10725. fi
  10726. fi
  10727. rm -f core conftest.err conftest.$ac_objext \
  10728. conftest$ac_exeext conftest.$ac_ext
  10729. if test -z "$lt_cv_aix_libpath_"; then
  10730. lt_cv_aix_libpath_=/usr/lib:/lib
  10731. fi
  10732. fi
  10733. aix_libpath=$lt_cv_aix_libpath_
  10734. fi
  10735. hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
  10736. # Warning - without using the other run time loading flags,
  10737. # -berok will link without error, but may produce a broken library.
  10738. no_undefined_flag=' $wl-bernotok'
  10739. allow_undefined_flag=' $wl-berok'
  10740. if test yes = "$with_gnu_ld"; then
  10741. # We only use this code for GNU lds that support --whole-archive.
  10742. whole_archive_flag_spec='$wl--whole-archive$convenience $wl--no-whole-archive'
  10743. else
  10744. # Exported symbols can be pulled into shared objects from archives
  10745. whole_archive_flag_spec='$convenience'
  10746. fi
  10747. archive_cmds_need_lc=yes
  10748. archive_expsym_cmds='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d'
  10749. # -brtl affects multiple linker settings, -berok does not and is overridden later
  10750. compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([, ]\\)%-berok\\1%g"`'
  10751. if test svr4 != "$with_aix_soname"; then
  10752. # This is similar to how AIX traditionally builds its shared libraries.
  10753. 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'
  10754. fi
  10755. if test aix != "$with_aix_soname"; then
  10756. 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'
  10757. else
  10758. # used by -dlpreopen to get the symbols
  10759. archive_expsym_cmds="$archive_expsym_cmds"'~$MV $output_objdir/$realname.d/$soname $output_objdir'
  10760. fi
  10761. archive_expsym_cmds="$archive_expsym_cmds"'~$RM -r $output_objdir/$realname.d'
  10762. fi
  10763. fi
  10764. ;;
  10765. amigaos*)
  10766. case $host_cpu in
  10767. powerpc)
  10768. # see comment about AmigaOS4 .so support
  10769. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
  10770. archive_expsym_cmds=''
  10771. ;;
  10772. m68k)
  10773. 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)'
  10774. hardcode_libdir_flag_spec='-L$libdir'
  10775. hardcode_minus_L=yes
  10776. ;;
  10777. esac
  10778. ;;
  10779. bsdi[45]*)
  10780. export_dynamic_flag_spec=-rdynamic
  10781. ;;
  10782. cygwin* | mingw* | pw32* | cegcc*)
  10783. # When not using gcc, we currently assume that we are using
  10784. # Microsoft Visual C++.
  10785. # hardcode_libdir_flag_spec is actually meaningless, as there is
  10786. # no search path for DLLs.
  10787. case $cc_basename in
  10788. cl*)
  10789. # Native MSVC
  10790. hardcode_libdir_flag_spec=' '
  10791. allow_undefined_flag=unsupported
  10792. always_export_symbols=yes
  10793. file_list_spec='@'
  10794. # Tell ltmain to make .lib files, not .a files.
  10795. libext=lib
  10796. # Tell ltmain to make .dll files, not .so files.
  10797. shrext_cmds=.dll
  10798. # FIXME: Setting linknames here is a bad hack.
  10799. archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames='
  10800. archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then
  10801. cp "$export_symbols" "$output_objdir/$soname.def";
  10802. echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp";
  10803. else
  10804. $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp;
  10805. fi~
  10806. $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
  10807. linknames='
  10808. # The linker will not automatically build a static lib if we build a DLL.
  10809. # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
  10810. enable_shared_with_static_runtimes=yes
  10811. exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
  10812. export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
  10813. # Don't use ranlib
  10814. old_postinstall_cmds='chmod 644 $oldlib'
  10815. postlink_cmds='lt_outputfile="@OUTPUT@"~
  10816. lt_tool_outputfile="@TOOL_OUTPUT@"~
  10817. case $lt_outputfile in
  10818. *.exe|*.EXE) ;;
  10819. *)
  10820. lt_outputfile=$lt_outputfile.exe
  10821. lt_tool_outputfile=$lt_tool_outputfile.exe
  10822. ;;
  10823. esac~
  10824. if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then
  10825. $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
  10826. $RM "$lt_outputfile.manifest";
  10827. fi'
  10828. ;;
  10829. *)
  10830. # Assume MSVC wrapper
  10831. hardcode_libdir_flag_spec=' '
  10832. allow_undefined_flag=unsupported
  10833. # Tell ltmain to make .lib files, not .a files.
  10834. libext=lib
  10835. # Tell ltmain to make .dll files, not .so files.
  10836. shrext_cmds=.dll
  10837. # FIXME: Setting linknames here is a bad hack.
  10838. archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
  10839. # The linker will automatically build a .lib file if we build a DLL.
  10840. old_archive_from_new_cmds='true'
  10841. # FIXME: Should let the user specify the lib program.
  10842. old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
  10843. enable_shared_with_static_runtimes=yes
  10844. ;;
  10845. esac
  10846. ;;
  10847. darwin* | rhapsody*)
  10848. archive_cmds_need_lc=no
  10849. hardcode_direct=no
  10850. hardcode_automatic=yes
  10851. hardcode_shlibpath_var=unsupported
  10852. if test yes = "$lt_cv_ld_force_load"; then
  10853. 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\"`'
  10854. else
  10855. whole_archive_flag_spec=''
  10856. fi
  10857. link_all_deplibs=yes
  10858. allow_undefined_flag=$_lt_dar_allow_undefined
  10859. case $cc_basename in
  10860. ifort*|nagfor*) _lt_dar_can_shared=yes ;;
  10861. *) _lt_dar_can_shared=$GCC ;;
  10862. esac
  10863. if test yes = "$_lt_dar_can_shared"; then
  10864. output_verbose_link_cmd=func_echo_all
  10865. archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dsymutil"
  10866. module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil"
  10867. 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"
  10868. 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"
  10869. else
  10870. ld_shlibs=no
  10871. fi
  10872. ;;
  10873. dgux*)
  10874. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  10875. hardcode_libdir_flag_spec='-L$libdir'
  10876. hardcode_shlibpath_var=no
  10877. ;;
  10878. # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
  10879. # support. Future versions do this automatically, but an explicit c++rt0.o
  10880. # does not break anything, and helps significantly (at the cost of a little
  10881. # extra space).
  10882. freebsd2.2*)
  10883. archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
  10884. hardcode_libdir_flag_spec='-R$libdir'
  10885. hardcode_direct=yes
  10886. hardcode_shlibpath_var=no
  10887. ;;
  10888. # Unfortunately, older versions of FreeBSD 2 do not have this feature.
  10889. freebsd2.*)
  10890. archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  10891. hardcode_direct=yes
  10892. hardcode_minus_L=yes
  10893. hardcode_shlibpath_var=no
  10894. ;;
  10895. # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
  10896. freebsd* | dragonfly*)
  10897. archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  10898. hardcode_libdir_flag_spec='-R$libdir'
  10899. hardcode_direct=yes
  10900. hardcode_shlibpath_var=no
  10901. ;;
  10902. hpux9*)
  10903. if test yes = "$GCC"; then
  10904. 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'
  10905. else
  10906. 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'
  10907. fi
  10908. hardcode_libdir_flag_spec='$wl+b $wl$libdir'
  10909. hardcode_libdir_separator=:
  10910. hardcode_direct=yes
  10911. # hardcode_minus_L: Not really in the search PATH,
  10912. # but as the default location of the library.
  10913. hardcode_minus_L=yes
  10914. export_dynamic_flag_spec='$wl-E'
  10915. ;;
  10916. hpux10*)
  10917. if test yes,no = "$GCC,$with_gnu_ld"; then
  10918. archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  10919. else
  10920. archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
  10921. fi
  10922. if test no = "$with_gnu_ld"; then
  10923. hardcode_libdir_flag_spec='$wl+b $wl$libdir'
  10924. hardcode_libdir_separator=:
  10925. hardcode_direct=yes
  10926. hardcode_direct_absolute=yes
  10927. export_dynamic_flag_spec='$wl-E'
  10928. # hardcode_minus_L: Not really in the search PATH,
  10929. # but as the default location of the library.
  10930. hardcode_minus_L=yes
  10931. fi
  10932. ;;
  10933. hpux11*)
  10934. if test yes,no = "$GCC,$with_gnu_ld"; then
  10935. case $host_cpu in
  10936. hppa*64*)
  10937. archive_cmds='$CC -shared $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
  10938. ;;
  10939. ia64*)
  10940. archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
  10941. ;;
  10942. *)
  10943. archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  10944. ;;
  10945. esac
  10946. else
  10947. case $host_cpu in
  10948. hppa*64*)
  10949. archive_cmds='$CC -b $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
  10950. ;;
  10951. ia64*)
  10952. archive_cmds='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
  10953. ;;
  10954. *)
  10955. # Older versions of the 11.00 compiler do not understand -b yet
  10956. # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
  10957. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
  10958. $as_echo_n "checking if $CC understands -b... " >&6; }
  10959. if ${lt_cv_prog_compiler__b+:} false; then :
  10960. $as_echo_n "(cached) " >&6
  10961. else
  10962. lt_cv_prog_compiler__b=no
  10963. save_LDFLAGS=$LDFLAGS
  10964. LDFLAGS="$LDFLAGS -b"
  10965. echo "$lt_simple_link_test_code" > conftest.$ac_ext
  10966. if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
  10967. # The linker can only warn and ignore the option if not recognized
  10968. # So say no if there are warnings
  10969. if test -s conftest.err; then
  10970. # Append any errors to the config.log.
  10971. cat conftest.err 1>&5
  10972. $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
  10973. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  10974. if diff conftest.exp conftest.er2 >/dev/null; then
  10975. lt_cv_prog_compiler__b=yes
  10976. fi
  10977. else
  10978. lt_cv_prog_compiler__b=yes
  10979. fi
  10980. fi
  10981. $RM -r conftest*
  10982. LDFLAGS=$save_LDFLAGS
  10983. fi
  10984. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
  10985. $as_echo "$lt_cv_prog_compiler__b" >&6; }
  10986. if test yes = "$lt_cv_prog_compiler__b"; then
  10987. archive_cmds='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  10988. else
  10989. archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
  10990. fi
  10991. ;;
  10992. esac
  10993. fi
  10994. if test no = "$with_gnu_ld"; then
  10995. hardcode_libdir_flag_spec='$wl+b $wl$libdir'
  10996. hardcode_libdir_separator=:
  10997. case $host_cpu in
  10998. hppa*64*|ia64*)
  10999. hardcode_direct=no
  11000. hardcode_shlibpath_var=no
  11001. ;;
  11002. *)
  11003. hardcode_direct=yes
  11004. hardcode_direct_absolute=yes
  11005. export_dynamic_flag_spec='$wl-E'
  11006. # hardcode_minus_L: Not really in the search PATH,
  11007. # but as the default location of the library.
  11008. hardcode_minus_L=yes
  11009. ;;
  11010. esac
  11011. fi
  11012. ;;
  11013. irix5* | irix6* | nonstopux*)
  11014. if test yes = "$GCC"; then
  11015. 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'
  11016. # Try to use the -exported_symbol ld option, if it does not
  11017. # work, assume that -exports_file does not work either and
  11018. # implicitly export all symbols.
  11019. # This should be the same for all languages, so no per-tag cache variable.
  11020. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
  11021. $as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
  11022. if ${lt_cv_irix_exported_symbol+:} false; then :
  11023. $as_echo_n "(cached) " >&6
  11024. else
  11025. save_LDFLAGS=$LDFLAGS
  11026. LDFLAGS="$LDFLAGS -shared $wl-exported_symbol ${wl}foo $wl-update_registry $wl/dev/null"
  11027. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11028. /* end confdefs.h. */
  11029. int foo (void) { return 0; }
  11030. _ACEOF
  11031. if ac_fn_c_try_link "$LINENO"; then :
  11032. lt_cv_irix_exported_symbol=yes
  11033. else
  11034. lt_cv_irix_exported_symbol=no
  11035. fi
  11036. rm -f core conftest.err conftest.$ac_objext \
  11037. conftest$ac_exeext conftest.$ac_ext
  11038. LDFLAGS=$save_LDFLAGS
  11039. fi
  11040. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
  11041. $as_echo "$lt_cv_irix_exported_symbol" >&6; }
  11042. if test yes = "$lt_cv_irix_exported_symbol"; then
  11043. 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'
  11044. fi
  11045. else
  11046. 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'
  11047. 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'
  11048. fi
  11049. archive_cmds_need_lc='no'
  11050. hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
  11051. hardcode_libdir_separator=:
  11052. inherit_rpath=yes
  11053. link_all_deplibs=yes
  11054. ;;
  11055. linux*)
  11056. case $cc_basename in
  11057. tcc*)
  11058. # Fabrice Bellard et al's Tiny C Compiler
  11059. ld_shlibs=yes
  11060. archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  11061. ;;
  11062. esac
  11063. ;;
  11064. netbsd*)
  11065. if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  11066. archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
  11067. else
  11068. archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
  11069. fi
  11070. hardcode_libdir_flag_spec='-R$libdir'
  11071. hardcode_direct=yes
  11072. hardcode_shlibpath_var=no
  11073. ;;
  11074. newsos6)
  11075. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  11076. hardcode_direct=yes
  11077. hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
  11078. hardcode_libdir_separator=:
  11079. hardcode_shlibpath_var=no
  11080. ;;
  11081. *nto* | *qnx*)
  11082. ;;
  11083. openbsd* | bitrig*)
  11084. if test -f /usr/libexec/ld.so; then
  11085. hardcode_direct=yes
  11086. hardcode_shlibpath_var=no
  11087. hardcode_direct_absolute=yes
  11088. if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
  11089. archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  11090. archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags $wl-retain-symbols-file,$export_symbols'
  11091. hardcode_libdir_flag_spec='$wl-rpath,$libdir'
  11092. export_dynamic_flag_spec='$wl-E'
  11093. else
  11094. archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  11095. hardcode_libdir_flag_spec='$wl-rpath,$libdir'
  11096. fi
  11097. else
  11098. ld_shlibs=no
  11099. fi
  11100. ;;
  11101. os2*)
  11102. hardcode_libdir_flag_spec='-L$libdir'
  11103. hardcode_minus_L=yes
  11104. allow_undefined_flag=unsupported
  11105. shrext_cmds=.dll
  11106. archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
  11107. $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
  11108. $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
  11109. $ECHO EXPORTS >> $output_objdir/$libname.def~
  11110. emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
  11111. $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
  11112. emximp -o $lib $output_objdir/$libname.def'
  11113. archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
  11114. $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
  11115. $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
  11116. $ECHO EXPORTS >> $output_objdir/$libname.def~
  11117. prefix_cmds="$SED"~
  11118. if test EXPORTS = "`$SED 1q $export_symbols`"; then
  11119. prefix_cmds="$prefix_cmds -e 1d";
  11120. fi~
  11121. prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
  11122. cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
  11123. $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
  11124. emximp -o $lib $output_objdir/$libname.def'
  11125. old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
  11126. enable_shared_with_static_runtimes=yes
  11127. ;;
  11128. osf3*)
  11129. if test yes = "$GCC"; then
  11130. allow_undefined_flag=' $wl-expect_unresolved $wl\*'
  11131. 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'
  11132. else
  11133. allow_undefined_flag=' -expect_unresolved \*'
  11134. 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'
  11135. fi
  11136. archive_cmds_need_lc='no'
  11137. hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
  11138. hardcode_libdir_separator=:
  11139. ;;
  11140. osf4* | osf5*) # as osf3* with the addition of -msym flag
  11141. if test yes = "$GCC"; then
  11142. allow_undefined_flag=' $wl-expect_unresolved $wl\*'
  11143. 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'
  11144. hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
  11145. else
  11146. allow_undefined_flag=' -expect_unresolved \*'
  11147. 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'
  11148. 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~
  11149. $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'
  11150. # Both c and cxx compiler support -rpath directly
  11151. hardcode_libdir_flag_spec='-rpath $libdir'
  11152. fi
  11153. archive_cmds_need_lc='no'
  11154. hardcode_libdir_separator=:
  11155. ;;
  11156. solaris*)
  11157. no_undefined_flag=' -z defs'
  11158. if test yes = "$GCC"; then
  11159. wlarc='$wl'
  11160. archive_cmds='$CC -shared $pic_flag $wl-z ${wl}text $wl-h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
  11161. archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  11162. $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'
  11163. else
  11164. case `$CC -V 2>&1` in
  11165. *"Compilers 5.0"*)
  11166. wlarc=''
  11167. archive_cmds='$LD -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $linker_flags'
  11168. archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  11169. $LD -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
  11170. ;;
  11171. *)
  11172. wlarc='$wl'
  11173. archive_cmds='$CC -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $compiler_flags'
  11174. archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  11175. $CC -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
  11176. ;;
  11177. esac
  11178. fi
  11179. hardcode_libdir_flag_spec='-R$libdir'
  11180. hardcode_shlibpath_var=no
  11181. case $host_os in
  11182. solaris2.[0-5] | solaris2.[0-5].*) ;;
  11183. *)
  11184. # The compiler driver will combine and reorder linker options,
  11185. # but understands '-z linker_flag'. GCC discards it without '$wl',
  11186. # but is careful enough not to reorder.
  11187. # Supported since Solaris 2.6 (maybe 2.5.1?)
  11188. if test yes = "$GCC"; then
  11189. whole_archive_flag_spec='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract'
  11190. else
  11191. whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
  11192. fi
  11193. ;;
  11194. esac
  11195. link_all_deplibs=yes
  11196. ;;
  11197. sunos4*)
  11198. if test sequent = "$host_vendor"; then
  11199. # Use $CC to link under sequent, because it throws in some extra .o
  11200. # files that make .init and .fini sections work.
  11201. archive_cmds='$CC -G $wl-h $soname -o $lib $libobjs $deplibs $compiler_flags'
  11202. else
  11203. archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
  11204. fi
  11205. hardcode_libdir_flag_spec='-L$libdir'
  11206. hardcode_direct=yes
  11207. hardcode_minus_L=yes
  11208. hardcode_shlibpath_var=no
  11209. ;;
  11210. sysv4)
  11211. case $host_vendor in
  11212. sni)
  11213. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  11214. hardcode_direct=yes # is this really true???
  11215. ;;
  11216. siemens)
  11217. ## LD is ld it makes a PLAMLIB
  11218. ## CC just makes a GrossModule.
  11219. archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
  11220. reload_cmds='$CC -r -o $output$reload_objs'
  11221. hardcode_direct=no
  11222. ;;
  11223. motorola)
  11224. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  11225. hardcode_direct=no #Motorola manual says yes, but my tests say they lie
  11226. ;;
  11227. esac
  11228. runpath_var='LD_RUN_PATH'
  11229. hardcode_shlibpath_var=no
  11230. ;;
  11231. sysv4.3*)
  11232. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  11233. hardcode_shlibpath_var=no
  11234. export_dynamic_flag_spec='-Bexport'
  11235. ;;
  11236. sysv4*MP*)
  11237. if test -d /usr/nec; then
  11238. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  11239. hardcode_shlibpath_var=no
  11240. runpath_var=LD_RUN_PATH
  11241. hardcode_runpath_var=yes
  11242. ld_shlibs=yes
  11243. fi
  11244. ;;
  11245. sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
  11246. no_undefined_flag='$wl-z,text'
  11247. archive_cmds_need_lc=no
  11248. hardcode_shlibpath_var=no
  11249. runpath_var='LD_RUN_PATH'
  11250. if test yes = "$GCC"; then
  11251. archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  11252. archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  11253. else
  11254. archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  11255. archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  11256. fi
  11257. ;;
  11258. sysv5* | sco3.2v5* | sco5v6*)
  11259. # Note: We CANNOT use -z defs as we might desire, because we do not
  11260. # link with -lc, and that would cause any symbols used from libc to
  11261. # always be unresolved, which means just about no library would
  11262. # ever link correctly. If we're not using GNU ld we use -z text
  11263. # though, which does catch some bad symbols but isn't as heavy-handed
  11264. # as -z defs.
  11265. no_undefined_flag='$wl-z,text'
  11266. allow_undefined_flag='$wl-z,nodefs'
  11267. archive_cmds_need_lc=no
  11268. hardcode_shlibpath_var=no
  11269. hardcode_libdir_flag_spec='$wl-R,$libdir'
  11270. hardcode_libdir_separator=':'
  11271. link_all_deplibs=yes
  11272. export_dynamic_flag_spec='$wl-Bexport'
  11273. runpath_var='LD_RUN_PATH'
  11274. if test yes = "$GCC"; then
  11275. archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  11276. archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  11277. else
  11278. archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  11279. archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  11280. fi
  11281. ;;
  11282. uts4*)
  11283. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  11284. hardcode_libdir_flag_spec='-L$libdir'
  11285. hardcode_shlibpath_var=no
  11286. ;;
  11287. *)
  11288. ld_shlibs=no
  11289. ;;
  11290. esac
  11291. if test sni = "$host_vendor"; then
  11292. case $host in
  11293. sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
  11294. export_dynamic_flag_spec='$wl-Blargedynsym'
  11295. ;;
  11296. esac
  11297. fi
  11298. fi
  11299. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
  11300. $as_echo "$ld_shlibs" >&6; }
  11301. test no = "$ld_shlibs" && can_build_shared=no
  11302. with_gnu_ld=$with_gnu_ld
  11303. #
  11304. # Do we need to explicitly link libc?
  11305. #
  11306. case "x$archive_cmds_need_lc" in
  11307. x|xyes)
  11308. # Assume -lc should be added
  11309. archive_cmds_need_lc=yes
  11310. if test yes,yes = "$GCC,$enable_shared"; then
  11311. case $archive_cmds in
  11312. *'~'*)
  11313. # FIXME: we may have to deal with multi-command sequences.
  11314. ;;
  11315. '$CC '*)
  11316. # Test whether the compiler implicitly links with -lc since on some
  11317. # systems, -lgcc has to come before -lc. If gcc already passes -lc
  11318. # to ld, don't add -lc before -lgcc.
  11319. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
  11320. $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
  11321. if ${lt_cv_archive_cmds_need_lc+:} false; then :
  11322. $as_echo_n "(cached) " >&6
  11323. else
  11324. $RM conftest*
  11325. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  11326. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  11327. (eval $ac_compile) 2>&5
  11328. ac_status=$?
  11329. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  11330. test $ac_status = 0; } 2>conftest.err; then
  11331. soname=conftest
  11332. lib=conftest
  11333. libobjs=conftest.$ac_objext
  11334. deplibs=
  11335. wl=$lt_prog_compiler_wl
  11336. pic_flag=$lt_prog_compiler_pic
  11337. compiler_flags=-v
  11338. linker_flags=-v
  11339. verstring=
  11340. output_objdir=.
  11341. libname=conftest
  11342. lt_save_allow_undefined_flag=$allow_undefined_flag
  11343. allow_undefined_flag=
  11344. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
  11345. (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
  11346. ac_status=$?
  11347. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  11348. test $ac_status = 0; }
  11349. then
  11350. lt_cv_archive_cmds_need_lc=no
  11351. else
  11352. lt_cv_archive_cmds_need_lc=yes
  11353. fi
  11354. allow_undefined_flag=$lt_save_allow_undefined_flag
  11355. else
  11356. cat conftest.err 1>&5
  11357. fi
  11358. $RM conftest*
  11359. fi
  11360. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
  11361. $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
  11362. archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
  11363. ;;
  11364. esac
  11365. fi
  11366. ;;
  11367. esac
  11368. { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
  11369. $as_echo_n "checking dynamic linker characteristics... " >&6; }
  11370. if test yes = "$GCC"; then
  11371. case $host_os in
  11372. darwin*) lt_awk_arg='/^libraries:/,/LR/' ;;
  11373. *) lt_awk_arg='/^libraries:/' ;;
  11374. esac
  11375. case $host_os in
  11376. mingw* | cegcc*) lt_sed_strip_eq='s|=\([A-Za-z]:\)|\1|g' ;;
  11377. *) lt_sed_strip_eq='s|=/|/|g' ;;
  11378. esac
  11379. lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
  11380. case $lt_search_path_spec in
  11381. *\;*)
  11382. # if the path contains ";" then we assume it to be the separator
  11383. # otherwise default to the standard path separator (i.e. ":") - it is
  11384. # assumed that no part of a normal pathname contains ";" but that should
  11385. # okay in the real world where ";" in dirpaths is itself problematic.
  11386. lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
  11387. ;;
  11388. *)
  11389. lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
  11390. ;;
  11391. esac
  11392. # Ok, now we have the path, separated by spaces, we can step through it
  11393. # and add multilib dir if necessary...
  11394. lt_tmp_lt_search_path_spec=
  11395. lt_multi_os_dir=/`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
  11396. # ...but if some path component already ends with the multilib dir we assume
  11397. # that all is fine and trust -print-search-dirs as is (GCC 4.2? or newer).
  11398. case "$lt_multi_os_dir; $lt_search_path_spec " in
  11399. "/; "* | "/.; "* | "/./; "* | *"$lt_multi_os_dir "* | *"$lt_multi_os_dir/ "*)
  11400. lt_multi_os_dir=
  11401. ;;
  11402. esac
  11403. for lt_sys_path in $lt_search_path_spec; do
  11404. if test -d "$lt_sys_path$lt_multi_os_dir"; then
  11405. lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path$lt_multi_os_dir"
  11406. elif test -n "$lt_multi_os_dir"; then
  11407. test -d "$lt_sys_path" && \
  11408. lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
  11409. fi
  11410. done
  11411. lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
  11412. BEGIN {RS = " "; FS = "/|\n";} {
  11413. lt_foo = "";
  11414. lt_count = 0;
  11415. for (lt_i = NF; lt_i > 0; lt_i--) {
  11416. if ($lt_i != "" && $lt_i != ".") {
  11417. if ($lt_i == "..") {
  11418. lt_count++;
  11419. } else {
  11420. if (lt_count == 0) {
  11421. lt_foo = "/" $lt_i lt_foo;
  11422. } else {
  11423. lt_count--;
  11424. }
  11425. }
  11426. }
  11427. }
  11428. if (lt_foo != "") { lt_freq[lt_foo]++; }
  11429. if (lt_freq[lt_foo] == 1) { print lt_foo; }
  11430. }'`
  11431. # AWK program above erroneously prepends '/' to C:/dos/paths
  11432. # for these hosts.
  11433. case $host_os in
  11434. mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
  11435. $SED 's|/\([A-Za-z]:\)|\1|g'` ;;
  11436. esac
  11437. sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
  11438. else
  11439. sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
  11440. fi
  11441. library_names_spec=
  11442. libname_spec='lib$name'
  11443. soname_spec=
  11444. shrext_cmds=.so
  11445. postinstall_cmds=
  11446. postuninstall_cmds=
  11447. finish_cmds=
  11448. finish_eval=
  11449. shlibpath_var=
  11450. shlibpath_overrides_runpath=unknown
  11451. version_type=none
  11452. dynamic_linker="$host_os ld.so"
  11453. sys_lib_dlsearch_path_spec="/lib /usr/lib"
  11454. need_lib_prefix=unknown
  11455. hardcode_into_libs=no
  11456. # when you set need_version to no, make sure it does not cause -set_version
  11457. # flags to be left without arguments
  11458. need_version=unknown
  11459. case $host_os in
  11460. aix3*)
  11461. version_type=linux # correct to gnu/linux during the next big refactor
  11462. library_names_spec='$libname$release$shared_ext$versuffix $libname.a'
  11463. shlibpath_var=LIBPATH
  11464. # AIX 3 has no versioning support, so we append a major version to the name.
  11465. soname_spec='$libname$release$shared_ext$major'
  11466. ;;
  11467. aix[4-9]*)
  11468. version_type=linux # correct to gnu/linux during the next big refactor
  11469. need_lib_prefix=no
  11470. need_version=no
  11471. hardcode_into_libs=yes
  11472. if test ia64 = "$host_cpu"; then
  11473. # AIX 5 supports IA64
  11474. library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext'
  11475. shlibpath_var=LD_LIBRARY_PATH
  11476. else
  11477. # With GCC up to 2.95.x, collect2 would create an import file
  11478. # for dependence libraries. The import file would start with
  11479. # the line '#! .'. This would cause the generated library to
  11480. # depend on '.', always an invalid library. This was fixed in
  11481. # development snapshots of GCC prior to 3.0.
  11482. case $host_os in
  11483. aix4 | aix4.[01] | aix4.[01].*)
  11484. if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
  11485. echo ' yes '
  11486. echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then
  11487. :
  11488. else
  11489. can_build_shared=no
  11490. fi
  11491. ;;
  11492. esac
  11493. # Using Import Files as archive members, it is possible to support
  11494. # filename-based versioning of shared library archives on AIX. While
  11495. # this would work for both with and without runtime linking, it will
  11496. # prevent static linking of such archives. So we do filename-based
  11497. # shared library versioning with .so extension only, which is used
  11498. # when both runtime linking and shared linking is enabled.
  11499. # Unfortunately, runtime linking may impact performance, so we do
  11500. # not want this to be the default eventually. Also, we use the
  11501. # versioned .so libs for executables only if there is the -brtl
  11502. # linker flag in LDFLAGS as well, or --with-aix-soname=svr4 only.
  11503. # To allow for filename-based versioning support, we need to create
  11504. # libNAME.so.V as an archive file, containing:
  11505. # *) an Import File, referring to the versioned filename of the
  11506. # archive as well as the shared archive member, telling the
  11507. # bitwidth (32 or 64) of that shared object, and providing the
  11508. # list of exported symbols of that shared object, eventually
  11509. # decorated with the 'weak' keyword
  11510. # *) the shared object with the F_LOADONLY flag set, to really avoid
  11511. # it being seen by the linker.
  11512. # At run time we better use the real file rather than another symlink,
  11513. # but for link time we create the symlink libNAME.so -> libNAME.so.V
  11514. case $with_aix_soname,$aix_use_runtimelinking in
  11515. # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct
  11516. # soname into executable. Probably we can add versioning support to
  11517. # collect2, so additional links can be useful in future.
  11518. aix,yes) # traditional libtool
  11519. dynamic_linker='AIX unversionable lib.so'
  11520. # If using run time linking (on AIX 4.2 or later) use lib<name>.so
  11521. # instead of lib<name>.a to let people know that these are not
  11522. # typical AIX shared libraries.
  11523. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  11524. ;;
  11525. aix,no) # traditional AIX only
  11526. dynamic_linker='AIX lib.a(lib.so.V)'
  11527. # We preserve .a as extension for shared libraries through AIX4.2
  11528. # and later when we are not doing run time linking.
  11529. library_names_spec='$libname$release.a $libname.a'
  11530. soname_spec='$libname$release$shared_ext$major'
  11531. ;;
  11532. svr4,*) # full svr4 only
  11533. dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o)"
  11534. library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
  11535. # We do not specify a path in Import Files, so LIBPATH fires.
  11536. shlibpath_overrides_runpath=yes
  11537. ;;
  11538. *,yes) # both, prefer svr4
  11539. dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o), lib.a(lib.so.V)"
  11540. library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
  11541. # unpreferred sharedlib libNAME.a needs extra handling
  11542. 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"'
  11543. 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"'
  11544. # We do not specify a path in Import Files, so LIBPATH fires.
  11545. shlibpath_overrides_runpath=yes
  11546. ;;
  11547. *,no) # both, prefer aix
  11548. dynamic_linker="AIX lib.a(lib.so.V), lib.so.V($shared_archive_member_spec.o)"
  11549. library_names_spec='$libname$release.a $libname.a'
  11550. soname_spec='$libname$release$shared_ext$major'
  11551. # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling
  11552. 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)'
  11553. 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"'
  11554. ;;
  11555. esac
  11556. shlibpath_var=LIBPATH
  11557. fi
  11558. ;;
  11559. amigaos*)
  11560. case $host_cpu in
  11561. powerpc)
  11562. # Since July 2007 AmigaOS4 officially supports .so libraries.
  11563. # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
  11564. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  11565. ;;
  11566. m68k)
  11567. library_names_spec='$libname.ixlibrary $libname.a'
  11568. # Create ${libname}_ixlibrary.a entries in /sys/libs.
  11569. 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'
  11570. ;;
  11571. esac
  11572. ;;
  11573. beos*)
  11574. library_names_spec='$libname$shared_ext'
  11575. dynamic_linker="$host_os ld.so"
  11576. shlibpath_var=LIBRARY_PATH
  11577. ;;
  11578. bsdi[45]*)
  11579. version_type=linux # correct to gnu/linux during the next big refactor
  11580. need_version=no
  11581. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  11582. soname_spec='$libname$release$shared_ext$major'
  11583. finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
  11584. shlibpath_var=LD_LIBRARY_PATH
  11585. sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
  11586. sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
  11587. # the default ld.so.conf also contains /usr/contrib/lib and
  11588. # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
  11589. # libtool to hard-code these into programs
  11590. ;;
  11591. cygwin* | mingw* | pw32* | cegcc*)
  11592. version_type=windows
  11593. shrext_cmds=.dll
  11594. need_version=no
  11595. need_lib_prefix=no
  11596. case $GCC,$cc_basename in
  11597. yes,*)
  11598. # gcc
  11599. library_names_spec='$libname.dll.a'
  11600. # DLL is installed to $(libdir)/../bin by postinstall_cmds
  11601. postinstall_cmds='base_file=`basename \$file`~
  11602. dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
  11603. dldir=$destdir/`dirname \$dlpath`~
  11604. test -d \$dldir || mkdir -p \$dldir~
  11605. $install_prog $dir/$dlname \$dldir/$dlname~
  11606. chmod a+x \$dldir/$dlname~
  11607. if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
  11608. eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
  11609. fi'
  11610. postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
  11611. dlpath=$dir/\$dldll~
  11612. $RM \$dlpath'
  11613. shlibpath_overrides_runpath=yes
  11614. case $host_os in
  11615. cygwin*)
  11616. # Cygwin DLLs use 'cyg' prefix rather than 'lib'
  11617. soname_spec='`echo $libname | sed -e 's/^lib/cyg/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
  11618. sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
  11619. ;;
  11620. mingw* | cegcc*)
  11621. # MinGW DLLs use traditional 'lib' prefix
  11622. soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
  11623. ;;
  11624. pw32*)
  11625. # pw32 DLLs use 'pw' prefix rather than 'lib'
  11626. library_names_spec='`echo $libname | sed -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
  11627. ;;
  11628. esac
  11629. dynamic_linker='Win32 ld.exe'
  11630. ;;
  11631. *,cl*)
  11632. # Native MSVC
  11633. libname_spec='$name'
  11634. soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
  11635. library_names_spec='$libname.dll.lib'
  11636. case $build_os in
  11637. mingw*)
  11638. sys_lib_search_path_spec=
  11639. lt_save_ifs=$IFS
  11640. IFS=';'
  11641. for lt_path in $LIB
  11642. do
  11643. IFS=$lt_save_ifs
  11644. # Let DOS variable expansion print the short 8.3 style file name.
  11645. lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
  11646. sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
  11647. done
  11648. IFS=$lt_save_ifs
  11649. # Convert to MSYS style.
  11650. sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
  11651. ;;
  11652. cygwin*)
  11653. # Convert to unix form, then to dos form, then back to unix form
  11654. # but this time dos style (no spaces!) so that the unix form looks
  11655. # like /cygdrive/c/PROGRA~1:/cygdr...
  11656. sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
  11657. sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
  11658. sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
  11659. ;;
  11660. *)
  11661. sys_lib_search_path_spec=$LIB
  11662. if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
  11663. # It is most probably a Windows format PATH.
  11664. sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
  11665. else
  11666. sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
  11667. fi
  11668. # FIXME: find the short name or the path components, as spaces are
  11669. # common. (e.g. "Program Files" -> "PROGRA~1")
  11670. ;;
  11671. esac
  11672. # DLL is installed to $(libdir)/../bin by postinstall_cmds
  11673. postinstall_cmds='base_file=`basename \$file`~
  11674. dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
  11675. dldir=$destdir/`dirname \$dlpath`~
  11676. test -d \$dldir || mkdir -p \$dldir~
  11677. $install_prog $dir/$dlname \$dldir/$dlname'
  11678. postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
  11679. dlpath=$dir/\$dldll~
  11680. $RM \$dlpath'
  11681. shlibpath_overrides_runpath=yes
  11682. dynamic_linker='Win32 link.exe'
  11683. ;;
  11684. *)
  11685. # Assume MSVC wrapper
  11686. library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib'
  11687. dynamic_linker='Win32 ld.exe'
  11688. ;;
  11689. esac
  11690. # FIXME: first we should search . and the directory the executable is in
  11691. shlibpath_var=PATH
  11692. ;;
  11693. darwin* | rhapsody*)
  11694. dynamic_linker="$host_os dyld"
  11695. version_type=darwin
  11696. need_lib_prefix=no
  11697. need_version=no
  11698. library_names_spec='$libname$release$major$shared_ext $libname$shared_ext'
  11699. soname_spec='$libname$release$major$shared_ext'
  11700. shlibpath_overrides_runpath=yes
  11701. shlibpath_var=DYLD_LIBRARY_PATH
  11702. shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
  11703. sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
  11704. sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
  11705. ;;
  11706. dgux*)
  11707. version_type=linux # correct to gnu/linux during the next big refactor
  11708. need_lib_prefix=no
  11709. need_version=no
  11710. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  11711. soname_spec='$libname$release$shared_ext$major'
  11712. shlibpath_var=LD_LIBRARY_PATH
  11713. ;;
  11714. freebsd* | dragonfly*)
  11715. # DragonFly does not have aout. When/if they implement a new
  11716. # versioning mechanism, adjust this.
  11717. if test -x /usr/bin/objformat; then
  11718. objformat=`/usr/bin/objformat`
  11719. else
  11720. case $host_os in
  11721. freebsd[23].*) objformat=aout ;;
  11722. *) objformat=elf ;;
  11723. esac
  11724. fi
  11725. version_type=freebsd-$objformat
  11726. case $version_type in
  11727. freebsd-elf*)
  11728. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  11729. soname_spec='$libname$release$shared_ext$major'
  11730. need_version=no
  11731. need_lib_prefix=no
  11732. ;;
  11733. freebsd-*)
  11734. library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
  11735. need_version=yes
  11736. ;;
  11737. esac
  11738. shlibpath_var=LD_LIBRARY_PATH
  11739. case $host_os in
  11740. freebsd2.*)
  11741. shlibpath_overrides_runpath=yes
  11742. ;;
  11743. freebsd3.[01]* | freebsdelf3.[01]*)
  11744. shlibpath_overrides_runpath=yes
  11745. hardcode_into_libs=yes
  11746. ;;
  11747. freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
  11748. freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
  11749. shlibpath_overrides_runpath=no
  11750. hardcode_into_libs=yes
  11751. ;;
  11752. *) # from 4.6 on, and DragonFly
  11753. shlibpath_overrides_runpath=yes
  11754. hardcode_into_libs=yes
  11755. ;;
  11756. esac
  11757. ;;
  11758. haiku*)
  11759. version_type=linux # correct to gnu/linux during the next big refactor
  11760. need_lib_prefix=no
  11761. need_version=no
  11762. dynamic_linker="$host_os runtime_loader"
  11763. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  11764. soname_spec='$libname$release$shared_ext$major'
  11765. shlibpath_var=LIBRARY_PATH
  11766. shlibpath_overrides_runpath=no
  11767. sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
  11768. hardcode_into_libs=yes
  11769. ;;
  11770. hpux9* | hpux10* | hpux11*)
  11771. # Give a soname corresponding to the major version so that dld.sl refuses to
  11772. # link against other versions.
  11773. version_type=sunos
  11774. need_lib_prefix=no
  11775. need_version=no
  11776. case $host_cpu in
  11777. ia64*)
  11778. shrext_cmds='.so'
  11779. hardcode_into_libs=yes
  11780. dynamic_linker="$host_os dld.so"
  11781. shlibpath_var=LD_LIBRARY_PATH
  11782. shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  11783. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  11784. soname_spec='$libname$release$shared_ext$major'
  11785. if test 32 = "$HPUX_IA64_MODE"; then
  11786. sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
  11787. sys_lib_dlsearch_path_spec=/usr/lib/hpux32
  11788. else
  11789. sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
  11790. sys_lib_dlsearch_path_spec=/usr/lib/hpux64
  11791. fi
  11792. ;;
  11793. hppa*64*)
  11794. shrext_cmds='.sl'
  11795. hardcode_into_libs=yes
  11796. dynamic_linker="$host_os dld.sl"
  11797. shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
  11798. shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  11799. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  11800. soname_spec='$libname$release$shared_ext$major'
  11801. sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
  11802. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  11803. ;;
  11804. *)
  11805. shrext_cmds='.sl'
  11806. dynamic_linker="$host_os dld.sl"
  11807. shlibpath_var=SHLIB_PATH
  11808. shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
  11809. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  11810. soname_spec='$libname$release$shared_ext$major'
  11811. ;;
  11812. esac
  11813. # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
  11814. postinstall_cmds='chmod 555 $lib'
  11815. # or fails outright, so override atomically:
  11816. install_override_mode=555
  11817. ;;
  11818. interix[3-9]*)
  11819. version_type=linux # correct to gnu/linux during the next big refactor
  11820. need_lib_prefix=no
  11821. need_version=no
  11822. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  11823. soname_spec='$libname$release$shared_ext$major'
  11824. dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
  11825. shlibpath_var=LD_LIBRARY_PATH
  11826. shlibpath_overrides_runpath=no
  11827. hardcode_into_libs=yes
  11828. ;;
  11829. irix5* | irix6* | nonstopux*)
  11830. case $host_os in
  11831. nonstopux*) version_type=nonstopux ;;
  11832. *)
  11833. if test yes = "$lt_cv_prog_gnu_ld"; then
  11834. version_type=linux # correct to gnu/linux during the next big refactor
  11835. else
  11836. version_type=irix
  11837. fi ;;
  11838. esac
  11839. need_lib_prefix=no
  11840. need_version=no
  11841. soname_spec='$libname$release$shared_ext$major'
  11842. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext'
  11843. case $host_os in
  11844. irix5* | nonstopux*)
  11845. libsuff= shlibsuff=
  11846. ;;
  11847. *)
  11848. case $LD in # libtool.m4 will add one of these switches to LD
  11849. *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
  11850. libsuff= shlibsuff= libmagic=32-bit;;
  11851. *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
  11852. libsuff=32 shlibsuff=N32 libmagic=N32;;
  11853. *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
  11854. libsuff=64 shlibsuff=64 libmagic=64-bit;;
  11855. *) libsuff= shlibsuff= libmagic=never-match;;
  11856. esac
  11857. ;;
  11858. esac
  11859. shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
  11860. shlibpath_overrides_runpath=no
  11861. sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff"
  11862. sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff"
  11863. hardcode_into_libs=yes
  11864. ;;
  11865. # No shared lib support for Linux oldld, aout, or coff.
  11866. linux*oldld* | linux*aout* | linux*coff*)
  11867. dynamic_linker=no
  11868. ;;
  11869. linux*android*)
  11870. version_type=none # Android doesn't support versioned libraries.
  11871. need_lib_prefix=no
  11872. need_version=no
  11873. library_names_spec='$libname$release$shared_ext'
  11874. soname_spec='$libname$release$shared_ext'
  11875. finish_cmds=
  11876. shlibpath_var=LD_LIBRARY_PATH
  11877. shlibpath_overrides_runpath=yes
  11878. # This implies no fast_install, which is unacceptable.
  11879. # Some rework will be needed to allow for fast_install
  11880. # before this can be enabled.
  11881. hardcode_into_libs=yes
  11882. dynamic_linker='Android linker'
  11883. # Don't embed -rpath directories since the linker doesn't support them.
  11884. hardcode_libdir_flag_spec='-L$libdir'
  11885. ;;
  11886. # This must be glibc/ELF.
  11887. linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
  11888. version_type=linux # correct to gnu/linux during the next big refactor
  11889. need_lib_prefix=no
  11890. need_version=no
  11891. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  11892. soname_spec='$libname$release$shared_ext$major'
  11893. finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
  11894. shlibpath_var=LD_LIBRARY_PATH
  11895. shlibpath_overrides_runpath=no
  11896. # Some binutils ld are patched to set DT_RUNPATH
  11897. if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
  11898. $as_echo_n "(cached) " >&6
  11899. else
  11900. lt_cv_shlibpath_overrides_runpath=no
  11901. save_LDFLAGS=$LDFLAGS
  11902. save_libdir=$libdir
  11903. eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
  11904. LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
  11905. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11906. /* end confdefs.h. */
  11907. int
  11908. main ()
  11909. {
  11910. ;
  11911. return 0;
  11912. }
  11913. _ACEOF
  11914. if ac_fn_c_try_link "$LINENO"; then :
  11915. if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
  11916. lt_cv_shlibpath_overrides_runpath=yes
  11917. fi
  11918. fi
  11919. rm -f core conftest.err conftest.$ac_objext \
  11920. conftest$ac_exeext conftest.$ac_ext
  11921. LDFLAGS=$save_LDFLAGS
  11922. libdir=$save_libdir
  11923. fi
  11924. shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
  11925. # This implies no fast_install, which is unacceptable.
  11926. # Some rework will be needed to allow for fast_install
  11927. # before this can be enabled.
  11928. hardcode_into_libs=yes
  11929. # Add ABI-specific directories to the system library path.
  11930. sys_lib_dlsearch_path_spec="/lib64 /usr/lib64 /lib /usr/lib"
  11931. # Ideally, we could use ldconfig to report *all* directores which are
  11932. # searched for libraries, however this is still not possible. Aside from not
  11933. # being certain /sbin/ldconfig is available, command
  11934. # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64,
  11935. # even though it is searched at run-time. Try to do the best guess by
  11936. # appending ld.so.conf contents (and includes) to the search path.
  11937. if test -f /etc/ld.so.conf; then
  11938. 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' ' '`
  11939. sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra"
  11940. fi
  11941. # We used to test for /lib/ld.so.1 and disable shared libraries on
  11942. # powerpc, because MkLinux only supported shared libraries with the
  11943. # GNU dynamic linker. Since this was broken with cross compilers,
  11944. # most powerpc-linux boxes support dynamic linking these days and
  11945. # people can always --disable-shared, the test was removed, and we
  11946. # assume the GNU/Linux dynamic linker is in use.
  11947. dynamic_linker='GNU/Linux ld.so'
  11948. ;;
  11949. netbsd*)
  11950. version_type=sunos
  11951. need_lib_prefix=no
  11952. need_version=no
  11953. if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  11954. library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
  11955. finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  11956. dynamic_linker='NetBSD (a.out) ld.so'
  11957. else
  11958. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  11959. soname_spec='$libname$release$shared_ext$major'
  11960. dynamic_linker='NetBSD ld.elf_so'
  11961. fi
  11962. shlibpath_var=LD_LIBRARY_PATH
  11963. shlibpath_overrides_runpath=yes
  11964. hardcode_into_libs=yes
  11965. ;;
  11966. newsos6)
  11967. version_type=linux # correct to gnu/linux during the next big refactor
  11968. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  11969. shlibpath_var=LD_LIBRARY_PATH
  11970. shlibpath_overrides_runpath=yes
  11971. ;;
  11972. *nto* | *qnx*)
  11973. version_type=qnx
  11974. need_lib_prefix=no
  11975. need_version=no
  11976. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  11977. soname_spec='$libname$release$shared_ext$major'
  11978. shlibpath_var=LD_LIBRARY_PATH
  11979. shlibpath_overrides_runpath=no
  11980. hardcode_into_libs=yes
  11981. dynamic_linker='ldqnx.so'
  11982. ;;
  11983. openbsd* | bitrig*)
  11984. version_type=sunos
  11985. sys_lib_dlsearch_path_spec=/usr/lib
  11986. need_lib_prefix=no
  11987. if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
  11988. need_version=no
  11989. else
  11990. need_version=yes
  11991. fi
  11992. library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
  11993. finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  11994. shlibpath_var=LD_LIBRARY_PATH
  11995. shlibpath_overrides_runpath=yes
  11996. ;;
  11997. os2*)
  11998. libname_spec='$name'
  11999. version_type=windows
  12000. shrext_cmds=.dll
  12001. need_version=no
  12002. need_lib_prefix=no
  12003. # OS/2 can only load a DLL with a base name of 8 characters or less.
  12004. soname_spec='`test -n "$os2dllname" && libname="$os2dllname";
  12005. v=$($ECHO $release$versuffix | tr -d .-);
  12006. n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _);
  12007. $ECHO $n$v`$shared_ext'
  12008. library_names_spec='${libname}_dll.$libext'
  12009. dynamic_linker='OS/2 ld.exe'
  12010. shlibpath_var=BEGINLIBPATH
  12011. sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
  12012. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  12013. postinstall_cmds='base_file=`basename \$file`~
  12014. dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~
  12015. dldir=$destdir/`dirname \$dlpath`~
  12016. test -d \$dldir || mkdir -p \$dldir~
  12017. $install_prog $dir/$dlname \$dldir/$dlname~
  12018. chmod a+x \$dldir/$dlname~
  12019. if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
  12020. eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
  12021. fi'
  12022. postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~
  12023. dlpath=$dir/\$dldll~
  12024. $RM \$dlpath'
  12025. ;;
  12026. osf3* | osf4* | osf5*)
  12027. version_type=osf
  12028. need_lib_prefix=no
  12029. need_version=no
  12030. soname_spec='$libname$release$shared_ext$major'
  12031. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  12032. shlibpath_var=LD_LIBRARY_PATH
  12033. sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
  12034. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  12035. ;;
  12036. rdos*)
  12037. dynamic_linker=no
  12038. ;;
  12039. solaris*)
  12040. version_type=linux # correct to gnu/linux during the next big refactor
  12041. need_lib_prefix=no
  12042. need_version=no
  12043. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  12044. soname_spec='$libname$release$shared_ext$major'
  12045. shlibpath_var=LD_LIBRARY_PATH
  12046. shlibpath_overrides_runpath=yes
  12047. hardcode_into_libs=yes
  12048. # ldd complains unless libraries are executable
  12049. postinstall_cmds='chmod +x $lib'
  12050. ;;
  12051. sunos4*)
  12052. version_type=sunos
  12053. library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
  12054. finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
  12055. shlibpath_var=LD_LIBRARY_PATH
  12056. shlibpath_overrides_runpath=yes
  12057. if test yes = "$with_gnu_ld"; then
  12058. need_lib_prefix=no
  12059. fi
  12060. need_version=yes
  12061. ;;
  12062. sysv4 | sysv4.3*)
  12063. version_type=linux # correct to gnu/linux during the next big refactor
  12064. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  12065. soname_spec='$libname$release$shared_ext$major'
  12066. shlibpath_var=LD_LIBRARY_PATH
  12067. case $host_vendor in
  12068. sni)
  12069. shlibpath_overrides_runpath=no
  12070. need_lib_prefix=no
  12071. runpath_var=LD_RUN_PATH
  12072. ;;
  12073. siemens)
  12074. need_lib_prefix=no
  12075. ;;
  12076. motorola)
  12077. need_lib_prefix=no
  12078. need_version=no
  12079. shlibpath_overrides_runpath=no
  12080. sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
  12081. ;;
  12082. esac
  12083. ;;
  12084. sysv4*MP*)
  12085. if test -d /usr/nec; then
  12086. version_type=linux # correct to gnu/linux during the next big refactor
  12087. library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext'
  12088. soname_spec='$libname$shared_ext.$major'
  12089. shlibpath_var=LD_LIBRARY_PATH
  12090. fi
  12091. ;;
  12092. sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
  12093. version_type=sco
  12094. need_lib_prefix=no
  12095. need_version=no
  12096. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext'
  12097. soname_spec='$libname$release$shared_ext$major'
  12098. shlibpath_var=LD_LIBRARY_PATH
  12099. shlibpath_overrides_runpath=yes
  12100. hardcode_into_libs=yes
  12101. if test yes = "$with_gnu_ld"; then
  12102. sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
  12103. else
  12104. sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
  12105. case $host_os in
  12106. sco3.2v5*)
  12107. sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
  12108. ;;
  12109. esac
  12110. fi
  12111. sys_lib_dlsearch_path_spec='/usr/lib'
  12112. ;;
  12113. tpf*)
  12114. # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
  12115. version_type=linux # correct to gnu/linux during the next big refactor
  12116. need_lib_prefix=no
  12117. need_version=no
  12118. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  12119. shlibpath_var=LD_LIBRARY_PATH
  12120. shlibpath_overrides_runpath=no
  12121. hardcode_into_libs=yes
  12122. ;;
  12123. uts4*)
  12124. version_type=linux # correct to gnu/linux during the next big refactor
  12125. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  12126. soname_spec='$libname$release$shared_ext$major'
  12127. shlibpath_var=LD_LIBRARY_PATH
  12128. ;;
  12129. *)
  12130. dynamic_linker=no
  12131. ;;
  12132. esac
  12133. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
  12134. $as_echo "$dynamic_linker" >&6; }
  12135. test no = "$dynamic_linker" && can_build_shared=no
  12136. variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
  12137. if test yes = "$GCC"; then
  12138. variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
  12139. fi
  12140. if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then
  12141. sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec
  12142. fi
  12143. if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then
  12144. sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec
  12145. fi
  12146. # remember unaugmented sys_lib_dlsearch_path content for libtool script decls...
  12147. configure_time_dlsearch_path=$sys_lib_dlsearch_path_spec
  12148. # ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code
  12149. func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH"
  12150. # to be used as default LT_SYS_LIBRARY_PATH value in generated libtool
  12151. configure_time_lt_sys_library_path=$LT_SYS_LIBRARY_PATH
  12152. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
  12153. $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
  12154. hardcode_action=
  12155. if test -n "$hardcode_libdir_flag_spec" ||
  12156. test -n "$runpath_var" ||
  12157. test yes = "$hardcode_automatic"; then
  12158. # We can hardcode non-existent directories.
  12159. if test no != "$hardcode_direct" &&
  12160. # If the only mechanism to avoid hardcoding is shlibpath_var, we
  12161. # have to relink, otherwise we might link with an installed library
  12162. # when we should be linking with a yet-to-be-installed one
  12163. ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, )" &&
  12164. test no != "$hardcode_minus_L"; then
  12165. # Linking always hardcodes the temporary library directory.
  12166. hardcode_action=relink
  12167. else
  12168. # We can link without hardcoding, and we can hardcode nonexisting dirs.
  12169. hardcode_action=immediate
  12170. fi
  12171. else
  12172. # We cannot hardcode anything, or else we can only hardcode existing
  12173. # directories.
  12174. hardcode_action=unsupported
  12175. fi
  12176. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
  12177. $as_echo "$hardcode_action" >&6; }
  12178. if test relink = "$hardcode_action" ||
  12179. test yes = "$inherit_rpath"; then
  12180. # Fast installation is not supported
  12181. enable_fast_install=no
  12182. elif test yes = "$shlibpath_overrides_runpath" ||
  12183. test no = "$enable_shared"; then
  12184. # Fast installation is not necessary
  12185. enable_fast_install=needless
  12186. fi
  12187. if test yes != "$enable_dlopen"; then
  12188. enable_dlopen=unknown
  12189. enable_dlopen_self=unknown
  12190. enable_dlopen_self_static=unknown
  12191. else
  12192. lt_cv_dlopen=no
  12193. lt_cv_dlopen_libs=
  12194. case $host_os in
  12195. beos*)
  12196. lt_cv_dlopen=load_add_on
  12197. lt_cv_dlopen_libs=
  12198. lt_cv_dlopen_self=yes
  12199. ;;
  12200. mingw* | pw32* | cegcc*)
  12201. lt_cv_dlopen=LoadLibrary
  12202. lt_cv_dlopen_libs=
  12203. ;;
  12204. cygwin*)
  12205. lt_cv_dlopen=dlopen
  12206. lt_cv_dlopen_libs=
  12207. ;;
  12208. darwin*)
  12209. # if libdl is installed we need to link against it
  12210. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
  12211. $as_echo_n "checking for dlopen in -ldl... " >&6; }
  12212. if ${ac_cv_lib_dl_dlopen+:} false; then :
  12213. $as_echo_n "(cached) " >&6
  12214. else
  12215. ac_check_lib_save_LIBS=$LIBS
  12216. LIBS="-ldl $LIBS"
  12217. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12218. /* end confdefs.h. */
  12219. /* Override any GCC internal prototype to avoid an error.
  12220. Use char because int might match the return type of a GCC
  12221. builtin and then its argument prototype would still apply. */
  12222. #ifdef __cplusplus
  12223. extern "C"
  12224. #endif
  12225. char dlopen ();
  12226. int
  12227. main ()
  12228. {
  12229. return dlopen ();
  12230. ;
  12231. return 0;
  12232. }
  12233. _ACEOF
  12234. if ac_fn_c_try_link "$LINENO"; then :
  12235. ac_cv_lib_dl_dlopen=yes
  12236. else
  12237. ac_cv_lib_dl_dlopen=no
  12238. fi
  12239. rm -f core conftest.err conftest.$ac_objext \
  12240. conftest$ac_exeext conftest.$ac_ext
  12241. LIBS=$ac_check_lib_save_LIBS
  12242. fi
  12243. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
  12244. $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
  12245. if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
  12246. lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
  12247. else
  12248. lt_cv_dlopen=dyld
  12249. lt_cv_dlopen_libs=
  12250. lt_cv_dlopen_self=yes
  12251. fi
  12252. ;;
  12253. tpf*)
  12254. # Don't try to run any link tests for TPF. We know it's impossible
  12255. # because TPF is a cross-compiler, and we know how we open DSOs.
  12256. lt_cv_dlopen=dlopen
  12257. lt_cv_dlopen_libs=
  12258. lt_cv_dlopen_self=no
  12259. ;;
  12260. *)
  12261. ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
  12262. if test "x$ac_cv_func_shl_load" = xyes; then :
  12263. lt_cv_dlopen=shl_load
  12264. else
  12265. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
  12266. $as_echo_n "checking for shl_load in -ldld... " >&6; }
  12267. if ${ac_cv_lib_dld_shl_load+:} false; then :
  12268. $as_echo_n "(cached) " >&6
  12269. else
  12270. ac_check_lib_save_LIBS=$LIBS
  12271. LIBS="-ldld $LIBS"
  12272. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12273. /* end confdefs.h. */
  12274. /* Override any GCC internal prototype to avoid an error.
  12275. Use char because int might match the return type of a GCC
  12276. builtin and then its argument prototype would still apply. */
  12277. #ifdef __cplusplus
  12278. extern "C"
  12279. #endif
  12280. char shl_load ();
  12281. int
  12282. main ()
  12283. {
  12284. return shl_load ();
  12285. ;
  12286. return 0;
  12287. }
  12288. _ACEOF
  12289. if ac_fn_c_try_link "$LINENO"; then :
  12290. ac_cv_lib_dld_shl_load=yes
  12291. else
  12292. ac_cv_lib_dld_shl_load=no
  12293. fi
  12294. rm -f core conftest.err conftest.$ac_objext \
  12295. conftest$ac_exeext conftest.$ac_ext
  12296. LIBS=$ac_check_lib_save_LIBS
  12297. fi
  12298. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
  12299. $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
  12300. if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
  12301. lt_cv_dlopen=shl_load lt_cv_dlopen_libs=-ldld
  12302. else
  12303. ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
  12304. if test "x$ac_cv_func_dlopen" = xyes; then :
  12305. lt_cv_dlopen=dlopen
  12306. else
  12307. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
  12308. $as_echo_n "checking for dlopen in -ldl... " >&6; }
  12309. if ${ac_cv_lib_dl_dlopen+:} false; then :
  12310. $as_echo_n "(cached) " >&6
  12311. else
  12312. ac_check_lib_save_LIBS=$LIBS
  12313. LIBS="-ldl $LIBS"
  12314. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12315. /* end confdefs.h. */
  12316. /* Override any GCC internal prototype to avoid an error.
  12317. Use char because int might match the return type of a GCC
  12318. builtin and then its argument prototype would still apply. */
  12319. #ifdef __cplusplus
  12320. extern "C"
  12321. #endif
  12322. char dlopen ();
  12323. int
  12324. main ()
  12325. {
  12326. return dlopen ();
  12327. ;
  12328. return 0;
  12329. }
  12330. _ACEOF
  12331. if ac_fn_c_try_link "$LINENO"; then :
  12332. ac_cv_lib_dl_dlopen=yes
  12333. else
  12334. ac_cv_lib_dl_dlopen=no
  12335. fi
  12336. rm -f core conftest.err conftest.$ac_objext \
  12337. conftest$ac_exeext conftest.$ac_ext
  12338. LIBS=$ac_check_lib_save_LIBS
  12339. fi
  12340. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
  12341. $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
  12342. if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
  12343. lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
  12344. else
  12345. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
  12346. $as_echo_n "checking for dlopen in -lsvld... " >&6; }
  12347. if ${ac_cv_lib_svld_dlopen+:} false; then :
  12348. $as_echo_n "(cached) " >&6
  12349. else
  12350. ac_check_lib_save_LIBS=$LIBS
  12351. LIBS="-lsvld $LIBS"
  12352. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12353. /* end confdefs.h. */
  12354. /* Override any GCC internal prototype to avoid an error.
  12355. Use char because int might match the return type of a GCC
  12356. builtin and then its argument prototype would still apply. */
  12357. #ifdef __cplusplus
  12358. extern "C"
  12359. #endif
  12360. char dlopen ();
  12361. int
  12362. main ()
  12363. {
  12364. return dlopen ();
  12365. ;
  12366. return 0;
  12367. }
  12368. _ACEOF
  12369. if ac_fn_c_try_link "$LINENO"; then :
  12370. ac_cv_lib_svld_dlopen=yes
  12371. else
  12372. ac_cv_lib_svld_dlopen=no
  12373. fi
  12374. rm -f core conftest.err conftest.$ac_objext \
  12375. conftest$ac_exeext conftest.$ac_ext
  12376. LIBS=$ac_check_lib_save_LIBS
  12377. fi
  12378. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
  12379. $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
  12380. if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
  12381. lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-lsvld
  12382. else
  12383. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
  12384. $as_echo_n "checking for dld_link in -ldld... " >&6; }
  12385. if ${ac_cv_lib_dld_dld_link+:} false; then :
  12386. $as_echo_n "(cached) " >&6
  12387. else
  12388. ac_check_lib_save_LIBS=$LIBS
  12389. LIBS="-ldld $LIBS"
  12390. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12391. /* end confdefs.h. */
  12392. /* Override any GCC internal prototype to avoid an error.
  12393. Use char because int might match the return type of a GCC
  12394. builtin and then its argument prototype would still apply. */
  12395. #ifdef __cplusplus
  12396. extern "C"
  12397. #endif
  12398. char dld_link ();
  12399. int
  12400. main ()
  12401. {
  12402. return dld_link ();
  12403. ;
  12404. return 0;
  12405. }
  12406. _ACEOF
  12407. if ac_fn_c_try_link "$LINENO"; then :
  12408. ac_cv_lib_dld_dld_link=yes
  12409. else
  12410. ac_cv_lib_dld_dld_link=no
  12411. fi
  12412. rm -f core conftest.err conftest.$ac_objext \
  12413. conftest$ac_exeext conftest.$ac_ext
  12414. LIBS=$ac_check_lib_save_LIBS
  12415. fi
  12416. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
  12417. $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
  12418. if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
  12419. lt_cv_dlopen=dld_link lt_cv_dlopen_libs=-ldld
  12420. fi
  12421. fi
  12422. fi
  12423. fi
  12424. fi
  12425. fi
  12426. ;;
  12427. esac
  12428. if test no = "$lt_cv_dlopen"; then
  12429. enable_dlopen=no
  12430. else
  12431. enable_dlopen=yes
  12432. fi
  12433. case $lt_cv_dlopen in
  12434. dlopen)
  12435. save_CPPFLAGS=$CPPFLAGS
  12436. test yes = "$ac_cv_header_dlfcn_h" && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
  12437. save_LDFLAGS=$LDFLAGS
  12438. wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
  12439. save_LIBS=$LIBS
  12440. LIBS="$lt_cv_dlopen_libs $LIBS"
  12441. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
  12442. $as_echo_n "checking whether a program can dlopen itself... " >&6; }
  12443. if ${lt_cv_dlopen_self+:} false; then :
  12444. $as_echo_n "(cached) " >&6
  12445. else
  12446. if test yes = "$cross_compiling"; then :
  12447. lt_cv_dlopen_self=cross
  12448. else
  12449. lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
  12450. lt_status=$lt_dlunknown
  12451. cat > conftest.$ac_ext <<_LT_EOF
  12452. #line $LINENO "configure"
  12453. #include "confdefs.h"
  12454. #if HAVE_DLFCN_H
  12455. #include <dlfcn.h>
  12456. #endif
  12457. #include <stdio.h>
  12458. #ifdef RTLD_GLOBAL
  12459. # define LT_DLGLOBAL RTLD_GLOBAL
  12460. #else
  12461. # ifdef DL_GLOBAL
  12462. # define LT_DLGLOBAL DL_GLOBAL
  12463. # else
  12464. # define LT_DLGLOBAL 0
  12465. # endif
  12466. #endif
  12467. /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
  12468. find out it does not work in some platform. */
  12469. #ifndef LT_DLLAZY_OR_NOW
  12470. # ifdef RTLD_LAZY
  12471. # define LT_DLLAZY_OR_NOW RTLD_LAZY
  12472. # else
  12473. # ifdef DL_LAZY
  12474. # define LT_DLLAZY_OR_NOW DL_LAZY
  12475. # else
  12476. # ifdef RTLD_NOW
  12477. # define LT_DLLAZY_OR_NOW RTLD_NOW
  12478. # else
  12479. # ifdef DL_NOW
  12480. # define LT_DLLAZY_OR_NOW DL_NOW
  12481. # else
  12482. # define LT_DLLAZY_OR_NOW 0
  12483. # endif
  12484. # endif
  12485. # endif
  12486. # endif
  12487. #endif
  12488. /* When -fvisibility=hidden is used, assume the code has been annotated
  12489. correspondingly for the symbols needed. */
  12490. #if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
  12491. int fnord () __attribute__((visibility("default")));
  12492. #endif
  12493. int fnord () { return 42; }
  12494. int main ()
  12495. {
  12496. void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
  12497. int status = $lt_dlunknown;
  12498. if (self)
  12499. {
  12500. if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
  12501. else
  12502. {
  12503. if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
  12504. else puts (dlerror ());
  12505. }
  12506. /* dlclose (self); */
  12507. }
  12508. else
  12509. puts (dlerror ());
  12510. return status;
  12511. }
  12512. _LT_EOF
  12513. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
  12514. (eval $ac_link) 2>&5
  12515. ac_status=$?
  12516. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  12517. test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
  12518. (./conftest; exit; ) >&5 2>/dev/null
  12519. lt_status=$?
  12520. case x$lt_status in
  12521. x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
  12522. x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
  12523. x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
  12524. esac
  12525. else :
  12526. # compilation failed
  12527. lt_cv_dlopen_self=no
  12528. fi
  12529. fi
  12530. rm -fr conftest*
  12531. fi
  12532. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
  12533. $as_echo "$lt_cv_dlopen_self" >&6; }
  12534. if test yes = "$lt_cv_dlopen_self"; then
  12535. wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
  12536. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
  12537. $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
  12538. if ${lt_cv_dlopen_self_static+:} false; then :
  12539. $as_echo_n "(cached) " >&6
  12540. else
  12541. if test yes = "$cross_compiling"; then :
  12542. lt_cv_dlopen_self_static=cross
  12543. else
  12544. lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
  12545. lt_status=$lt_dlunknown
  12546. cat > conftest.$ac_ext <<_LT_EOF
  12547. #line $LINENO "configure"
  12548. #include "confdefs.h"
  12549. #if HAVE_DLFCN_H
  12550. #include <dlfcn.h>
  12551. #endif
  12552. #include <stdio.h>
  12553. #ifdef RTLD_GLOBAL
  12554. # define LT_DLGLOBAL RTLD_GLOBAL
  12555. #else
  12556. # ifdef DL_GLOBAL
  12557. # define LT_DLGLOBAL DL_GLOBAL
  12558. # else
  12559. # define LT_DLGLOBAL 0
  12560. # endif
  12561. #endif
  12562. /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
  12563. find out it does not work in some platform. */
  12564. #ifndef LT_DLLAZY_OR_NOW
  12565. # ifdef RTLD_LAZY
  12566. # define LT_DLLAZY_OR_NOW RTLD_LAZY
  12567. # else
  12568. # ifdef DL_LAZY
  12569. # define LT_DLLAZY_OR_NOW DL_LAZY
  12570. # else
  12571. # ifdef RTLD_NOW
  12572. # define LT_DLLAZY_OR_NOW RTLD_NOW
  12573. # else
  12574. # ifdef DL_NOW
  12575. # define LT_DLLAZY_OR_NOW DL_NOW
  12576. # else
  12577. # define LT_DLLAZY_OR_NOW 0
  12578. # endif
  12579. # endif
  12580. # endif
  12581. # endif
  12582. #endif
  12583. /* When -fvisibility=hidden is used, assume the code has been annotated
  12584. correspondingly for the symbols needed. */
  12585. #if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
  12586. int fnord () __attribute__((visibility("default")));
  12587. #endif
  12588. int fnord () { return 42; }
  12589. int main ()
  12590. {
  12591. void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
  12592. int status = $lt_dlunknown;
  12593. if (self)
  12594. {
  12595. if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
  12596. else
  12597. {
  12598. if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
  12599. else puts (dlerror ());
  12600. }
  12601. /* dlclose (self); */
  12602. }
  12603. else
  12604. puts (dlerror ());
  12605. return status;
  12606. }
  12607. _LT_EOF
  12608. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
  12609. (eval $ac_link) 2>&5
  12610. ac_status=$?
  12611. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  12612. test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
  12613. (./conftest; exit; ) >&5 2>/dev/null
  12614. lt_status=$?
  12615. case x$lt_status in
  12616. x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
  12617. x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
  12618. x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
  12619. esac
  12620. else :
  12621. # compilation failed
  12622. lt_cv_dlopen_self_static=no
  12623. fi
  12624. fi
  12625. rm -fr conftest*
  12626. fi
  12627. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
  12628. $as_echo "$lt_cv_dlopen_self_static" >&6; }
  12629. fi
  12630. CPPFLAGS=$save_CPPFLAGS
  12631. LDFLAGS=$save_LDFLAGS
  12632. LIBS=$save_LIBS
  12633. ;;
  12634. esac
  12635. case $lt_cv_dlopen_self in
  12636. yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
  12637. *) enable_dlopen_self=unknown ;;
  12638. esac
  12639. case $lt_cv_dlopen_self_static in
  12640. yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
  12641. *) enable_dlopen_self_static=unknown ;;
  12642. esac
  12643. fi
  12644. striplib=
  12645. old_striplib=
  12646. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
  12647. $as_echo_n "checking whether stripping libraries is possible... " >&6; }
  12648. if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
  12649. test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
  12650. test -z "$striplib" && striplib="$STRIP --strip-unneeded"
  12651. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  12652. $as_echo "yes" >&6; }
  12653. else
  12654. # FIXME - insert some real tests, host_os isn't really good enough
  12655. case $host_os in
  12656. darwin*)
  12657. if test -n "$STRIP"; then
  12658. striplib="$STRIP -x"
  12659. old_striplib="$STRIP -S"
  12660. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  12661. $as_echo "yes" >&6; }
  12662. else
  12663. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  12664. $as_echo "no" >&6; }
  12665. fi
  12666. ;;
  12667. *)
  12668. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  12669. $as_echo "no" >&6; }
  12670. ;;
  12671. esac
  12672. fi
  12673. # Report what library types will actually be built
  12674. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
  12675. $as_echo_n "checking if libtool supports shared libraries... " >&6; }
  12676. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
  12677. $as_echo "$can_build_shared" >&6; }
  12678. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
  12679. $as_echo_n "checking whether to build shared libraries... " >&6; }
  12680. test no = "$can_build_shared" && enable_shared=no
  12681. # On AIX, shared libraries and static libraries use the same namespace, and
  12682. # are all built from PIC.
  12683. case $host_os in
  12684. aix3*)
  12685. test yes = "$enable_shared" && enable_static=no
  12686. if test -n "$RANLIB"; then
  12687. archive_cmds="$archive_cmds~\$RANLIB \$lib"
  12688. postinstall_cmds='$RANLIB $lib'
  12689. fi
  12690. ;;
  12691. aix[4-9]*)
  12692. if test ia64 != "$host_cpu"; then
  12693. case $enable_shared,$with_aix_soname,$aix_use_runtimelinking in
  12694. yes,aix,yes) ;; # shared object as lib.so file only
  12695. yes,svr4,*) ;; # shared object as lib.so archive member only
  12696. yes,*) enable_static=no ;; # shared object in lib.a archive as well
  12697. esac
  12698. fi
  12699. ;;
  12700. esac
  12701. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
  12702. $as_echo "$enable_shared" >&6; }
  12703. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
  12704. $as_echo_n "checking whether to build static libraries... " >&6; }
  12705. # Make sure either enable_shared or enable_static is yes.
  12706. test yes = "$enable_shared" || enable_static=yes
  12707. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
  12708. $as_echo "$enable_static" >&6; }
  12709. fi
  12710. ac_ext=c
  12711. ac_cpp='$CPP $CPPFLAGS'
  12712. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  12713. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  12714. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  12715. CC=$lt_save_CC
  12716. ac_config_commands="$ac_config_commands libtool"
  12717. # Only expand once:
  12718. # Checks to compile test suite
  12719. # The cast to long int works around a bug in the HP C Compiler
  12720. # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
  12721. # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
  12722. # This bug is HP SR number 8606223364.
  12723. { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of time_t" >&5
  12724. $as_echo_n "checking size of time_t... " >&6; }
  12725. if ${ac_cv_sizeof_time_t+:} false; then :
  12726. $as_echo_n "(cached) " >&6
  12727. else
  12728. if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (time_t))" "ac_cv_sizeof_time_t" "$ac_includes_default
  12729. #ifdef HAVE_SYS_TIME_H
  12730. #include <sys/time.h>
  12731. #endif
  12732. "; then :
  12733. else
  12734. if test "$ac_cv_type_time_t" = yes; then
  12735. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  12736. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  12737. as_fn_error 77 "cannot compute sizeof (time_t)
  12738. See \`config.log' for more details" "$LINENO" 5; }
  12739. else
  12740. ac_cv_sizeof_time_t=0
  12741. fi
  12742. fi
  12743. fi
  12744. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_time_t" >&5
  12745. $as_echo "$ac_cv_sizeof_time_t" >&6; }
  12746. cat >>confdefs.h <<_ACEOF
  12747. #define SIZEOF_TIME_T $ac_cv_sizeof_time_t
  12748. _ACEOF
  12749. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print time_t" >&5
  12750. $as_echo_n "checking how to print time_t... " >&6; }
  12751. if ${ne_cv_fmt_time_t+:} false; then :
  12752. $as_echo_n "(cached) " >&6
  12753. else
  12754. ne_cv_fmt_time_t=none
  12755. if test $ne_fmt_trycompile = yes; then
  12756. oflags="$CPPFLAGS"
  12757. # Consider format string mismatches as errors
  12758. CPPFLAGS="$CPPFLAGS -Wformat -Werror"
  12759. for str in d ld lld; do
  12760. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12761. /* end confdefs.h. */
  12762. #include <sys/types.h>
  12763. #ifdef HAVE_SYS_TIME_H
  12764. #include <sys/time.h>
  12765. #endif
  12766. #include <stdio.h>
  12767. int
  12768. main ()
  12769. {
  12770. time_t i = 1; printf("%$str", i);
  12771. ;
  12772. return 0;
  12773. }
  12774. _ACEOF
  12775. if ac_fn_c_try_compile "$LINENO"; then :
  12776. ne_cv_fmt_time_t=$str; break
  12777. fi
  12778. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  12779. done
  12780. CPPFLAGS=$oflags
  12781. else
  12782. # Best guess. Don't have to be too precise since we probably won't
  12783. # get a warning message anyway.
  12784. case $ac_cv_sizeof_time_t in
  12785. $ac_cv_sizeof_int) ne_cv_fmt_time_t="d" ;;
  12786. $ac_cv_sizeof_long) ne_cv_fmt_time_t="ld" ;;
  12787. $ac_cv_sizeof_long_long) ne_cv_fmt_time_t="lld" ;;
  12788. esac
  12789. fi
  12790. fi
  12791. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ne_cv_fmt_time_t" >&5
  12792. $as_echo "$ne_cv_fmt_time_t" >&6; }
  12793. if test "x$ne_cv_fmt_time_t" = "xnone"; then
  12794. as_fn_error $? "format string for time_t not found" "$LINENO" 5
  12795. fi
  12796. cat >>confdefs.h <<_ACEOF
  12797. #define NE_FMT_TIME_T "$ne_cv_fmt_time_t"
  12798. _ACEOF
  12799. ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
  12800. if test "x$ac_cv_type_pid_t" = xyes; then :
  12801. else
  12802. cat >>confdefs.h <<_ACEOF
  12803. #define pid_t int
  12804. _ACEOF
  12805. fi
  12806. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5
  12807. $as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
  12808. if ${ac_cv_header_time+:} false; then :
  12809. $as_echo_n "(cached) " >&6
  12810. else
  12811. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12812. /* end confdefs.h. */
  12813. #include <sys/types.h>
  12814. #include <sys/time.h>
  12815. #include <time.h>
  12816. int
  12817. main ()
  12818. {
  12819. if ((struct tm *) 0)
  12820. return 0;
  12821. ;
  12822. return 0;
  12823. }
  12824. _ACEOF
  12825. if ac_fn_c_try_compile "$LINENO"; then :
  12826. ac_cv_header_time=yes
  12827. else
  12828. ac_cv_header_time=no
  12829. fi
  12830. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  12831. fi
  12832. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
  12833. $as_echo "$ac_cv_header_time" >&6; }
  12834. if test $ac_cv_header_time = yes; then
  12835. $as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
  12836. fi
  12837. # Search in /usr/ccs/bin for Solaris
  12838. ne_PATH=$PATH:/usr/ccs/bin
  12839. if test -n "$ac_tool_prefix"; then
  12840. # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
  12841. set dummy ${ac_tool_prefix}ar; ac_word=$2
  12842. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  12843. $as_echo_n "checking for $ac_word... " >&6; }
  12844. if ${ac_cv_path_AR+:} false; then :
  12845. $as_echo_n "(cached) " >&6
  12846. else
  12847. case $AR in
  12848. [\\/]* | ?:[\\/]*)
  12849. ac_cv_path_AR="$AR" # Let the user override the test with a path.
  12850. ;;
  12851. *)
  12852. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  12853. for as_dir in $ne_PATH
  12854. do
  12855. IFS=$as_save_IFS
  12856. test -z "$as_dir" && as_dir=.
  12857. for ac_exec_ext in '' $ac_executable_extensions; do
  12858. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  12859. ac_cv_path_AR="$as_dir/$ac_word$ac_exec_ext"
  12860. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  12861. break 2
  12862. fi
  12863. done
  12864. done
  12865. IFS=$as_save_IFS
  12866. ;;
  12867. esac
  12868. fi
  12869. AR=$ac_cv_path_AR
  12870. if test -n "$AR"; then
  12871. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
  12872. $as_echo "$AR" >&6; }
  12873. else
  12874. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  12875. $as_echo "no" >&6; }
  12876. fi
  12877. fi
  12878. if test -z "$ac_cv_path_AR"; then
  12879. ac_pt_AR=$AR
  12880. # Extract the first word of "ar", so it can be a program name with args.
  12881. set dummy ar; ac_word=$2
  12882. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  12883. $as_echo_n "checking for $ac_word... " >&6; }
  12884. if ${ac_cv_path_ac_pt_AR+:} false; then :
  12885. $as_echo_n "(cached) " >&6
  12886. else
  12887. case $ac_pt_AR in
  12888. [\\/]* | ?:[\\/]*)
  12889. ac_cv_path_ac_pt_AR="$ac_pt_AR" # Let the user override the test with a path.
  12890. ;;
  12891. *)
  12892. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  12893. for as_dir in $ne_PATH
  12894. do
  12895. IFS=$as_save_IFS
  12896. test -z "$as_dir" && as_dir=.
  12897. for ac_exec_ext in '' $ac_executable_extensions; do
  12898. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  12899. ac_cv_path_ac_pt_AR="$as_dir/$ac_word$ac_exec_ext"
  12900. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  12901. break 2
  12902. fi
  12903. done
  12904. done
  12905. IFS=$as_save_IFS
  12906. ;;
  12907. esac
  12908. fi
  12909. ac_pt_AR=$ac_cv_path_ac_pt_AR
  12910. if test -n "$ac_pt_AR"; then
  12911. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_AR" >&5
  12912. $as_echo "$ac_pt_AR" >&6; }
  12913. else
  12914. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  12915. $as_echo "no" >&6; }
  12916. fi
  12917. if test "x$ac_pt_AR" = x; then
  12918. AR="notfound"
  12919. else
  12920. case $cross_compiling:$ac_tool_warned in
  12921. yes:)
  12922. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  12923. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  12924. ac_tool_warned=yes ;;
  12925. esac
  12926. AR=$ac_pt_AR
  12927. fi
  12928. else
  12929. AR="$ac_cv_path_AR"
  12930. fi
  12931. if test "x$AR" = "xnotfound"; then
  12932. as_fn_error $? "could not find ar tool" "$LINENO" 5
  12933. fi
  12934. if test -n "$ac_tool_prefix"; then
  12935. # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
  12936. set dummy ${ac_tool_prefix}ranlib; ac_word=$2
  12937. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  12938. $as_echo_n "checking for $ac_word... " >&6; }
  12939. if ${ac_cv_path_RANLIB+:} false; then :
  12940. $as_echo_n "(cached) " >&6
  12941. else
  12942. case $RANLIB in
  12943. [\\/]* | ?:[\\/]*)
  12944. ac_cv_path_RANLIB="$RANLIB" # Let the user override the test with a path.
  12945. ;;
  12946. *)
  12947. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  12948. for as_dir in $ne_PATH
  12949. do
  12950. IFS=$as_save_IFS
  12951. test -z "$as_dir" && as_dir=.
  12952. for ac_exec_ext in '' $ac_executable_extensions; do
  12953. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  12954. ac_cv_path_RANLIB="$as_dir/$ac_word$ac_exec_ext"
  12955. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  12956. break 2
  12957. fi
  12958. done
  12959. done
  12960. IFS=$as_save_IFS
  12961. ;;
  12962. esac
  12963. fi
  12964. RANLIB=$ac_cv_path_RANLIB
  12965. if test -n "$RANLIB"; then
  12966. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
  12967. $as_echo "$RANLIB" >&6; }
  12968. else
  12969. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  12970. $as_echo "no" >&6; }
  12971. fi
  12972. fi
  12973. if test -z "$ac_cv_path_RANLIB"; then
  12974. ac_pt_RANLIB=$RANLIB
  12975. # Extract the first word of "ranlib", so it can be a program name with args.
  12976. set dummy ranlib; ac_word=$2
  12977. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  12978. $as_echo_n "checking for $ac_word... " >&6; }
  12979. if ${ac_cv_path_ac_pt_RANLIB+:} false; then :
  12980. $as_echo_n "(cached) " >&6
  12981. else
  12982. case $ac_pt_RANLIB in
  12983. [\\/]* | ?:[\\/]*)
  12984. ac_cv_path_ac_pt_RANLIB="$ac_pt_RANLIB" # Let the user override the test with a path.
  12985. ;;
  12986. *)
  12987. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  12988. for as_dir in $ne_PATH
  12989. do
  12990. IFS=$as_save_IFS
  12991. test -z "$as_dir" && as_dir=.
  12992. for ac_exec_ext in '' $ac_executable_extensions; do
  12993. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  12994. ac_cv_path_ac_pt_RANLIB="$as_dir/$ac_word$ac_exec_ext"
  12995. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  12996. break 2
  12997. fi
  12998. done
  12999. done
  13000. IFS=$as_save_IFS
  13001. ;;
  13002. esac
  13003. fi
  13004. ac_pt_RANLIB=$ac_cv_path_ac_pt_RANLIB
  13005. if test -n "$ac_pt_RANLIB"; then
  13006. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_RANLIB" >&5
  13007. $as_echo "$ac_pt_RANLIB" >&6; }
  13008. else
  13009. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  13010. $as_echo "no" >&6; }
  13011. fi
  13012. if test "x$ac_pt_RANLIB" = x; then
  13013. RANLIB=":"
  13014. else
  13015. case $cross_compiling:$ac_tool_warned in
  13016. yes:)
  13017. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  13018. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  13019. ac_tool_warned=yes ;;
  13020. esac
  13021. RANLIB=$ac_pt_RANLIB
  13022. fi
  13023. else
  13024. RANLIB="$ac_cv_path_RANLIB"
  13025. fi
  13026. for ac_header in sys/time.h signal.h stdint.h locale.h
  13027. do :
  13028. as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
  13029. ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
  13030. if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
  13031. cat >>confdefs.h <<_ACEOF
  13032. #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
  13033. _ACEOF
  13034. fi
  13035. done
  13036. for ac_func in pipe isatty usleep shutdown setlocale gethostname
  13037. do :
  13038. as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
  13039. ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
  13040. if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
  13041. cat >>confdefs.h <<_ACEOF
  13042. #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
  13043. _ACEOF
  13044. fi
  13045. done
  13046. # Use the libtool-type build.
  13047. NEON_TARGET=libneon.la
  13048. NEON_OBJEXT=lo
  13049. # Using the default set of object files to build.
  13050. # Add the extension to EXTRAOBJS
  13051. ne="$NEON_EXTRAOBJS"
  13052. NEON_EXTRAOBJS=
  13053. for o in $ne; do
  13054. NEON_EXTRAOBJS="$NEON_EXTRAOBJS $o.$NEON_OBJEXT"
  13055. done
  13056. # Was DAV support explicitly turned off?
  13057. if test "x$neon_no_webdav" = "xyes"; then
  13058. # No WebDAV support
  13059. NEONOBJS="$NEONOBJS \$(NEON_BASEOBJS)"
  13060. NE_FLAG_DAV=no
  13061. ne_DAV_message="WebDAV support is not enabled"
  13062. { $as_echo "$as_me:${as_lineno-$LINENO}: WebDAV support is not enabled" >&5
  13063. $as_echo "$as_me: WebDAV support is not enabled" >&6;}
  13064. if test "x${NE_LIBTOOL_RELEASE}y" = "xy"; then
  13065. NE_LIBTOOL_RELEASE="NODAV"
  13066. else
  13067. NE_LIBTOOL_RELEASE="${NE_LIBTOOL_RELEASE}-NODAV"
  13068. fi
  13069. else
  13070. # WebDAV support
  13071. NEONOBJS="$NEONOBJS \$(NEON_DAVOBJS)"
  13072. NE_FLAG_DAV=yes
  13073. $as_echo "#define NE_HAVE_DAV 1" >>confdefs.h
  13074. ne_DAV_message="WebDAV support is enabled"
  13075. { $as_echo "$as_me:${as_lineno-$LINENO}: WebDAV support is enabled" >&5
  13076. $as_echo "$as_me: WebDAV support is enabled" >&6;}
  13077. fi
  13078. # Find an XML parser
  13079. # Check whether --with-libxml2 was given.
  13080. if test "${with_libxml2+set}" = set; then :
  13081. withval=$with_libxml2;
  13082. fi
  13083. # Check whether --with-expat was given.
  13084. if test "${with_expat+set}" = set; then :
  13085. withval=$with_expat;
  13086. fi
  13087. with_included_expat=no
  13088. if test "$NEON_NEED_XML_PARSER" = "yes"; then
  13089. # Find an XML parser
  13090. neon_xml_parser=none
  13091. # Forced choice of expat:
  13092. case $with_expat in
  13093. yes)
  13094. ac_fn_c_check_header_mongrel "$LINENO" "expat.h" "ac_cv_header_expat_h" "$ac_includes_default"
  13095. if test "x$ac_cv_header_expat_h" = xyes; then :
  13096. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XML_SetXmlDeclHandler in -lexpat" >&5
  13097. $as_echo_n "checking for XML_SetXmlDeclHandler in -lexpat... " >&6; }
  13098. if ${ac_cv_lib_expat_XML_SetXmlDeclHandler+:} false; then :
  13099. $as_echo_n "(cached) " >&6
  13100. else
  13101. ac_check_lib_save_LIBS=$LIBS
  13102. LIBS="-lexpat $LIBS"
  13103. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13104. /* end confdefs.h. */
  13105. /* Override any GCC internal prototype to avoid an error.
  13106. Use char because int might match the return type of a GCC
  13107. builtin and then its argument prototype would still apply. */
  13108. #ifdef __cplusplus
  13109. extern "C"
  13110. #endif
  13111. char XML_SetXmlDeclHandler ();
  13112. int
  13113. main ()
  13114. {
  13115. return XML_SetXmlDeclHandler ();
  13116. ;
  13117. return 0;
  13118. }
  13119. _ACEOF
  13120. if ac_fn_c_try_link "$LINENO"; then :
  13121. ac_cv_lib_expat_XML_SetXmlDeclHandler=yes
  13122. else
  13123. ac_cv_lib_expat_XML_SetXmlDeclHandler=no
  13124. fi
  13125. rm -f core conftest.err conftest.$ac_objext \
  13126. conftest$ac_exeext conftest.$ac_ext
  13127. LIBS=$ac_check_lib_save_LIBS
  13128. fi
  13129. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_expat_XML_SetXmlDeclHandler" >&5
  13130. $as_echo "$ac_cv_lib_expat_XML_SetXmlDeclHandler" >&6; }
  13131. if test "x$ac_cv_lib_expat_XML_SetXmlDeclHandler" = xyes; then :
  13132. $as_echo "#define HAVE_EXPAT 1" >>confdefs.h
  13133. neon_xml_parser_message="expat"
  13134. NEON_LIBS="$NEON_LIBS -lexpat"
  13135. neon_xml_parser=expat
  13136. ac_fn_c_check_type "$LINENO" "XML_Size" "ac_cv_type_XML_Size" "#include <expat.h>
  13137. "
  13138. if test "x$ac_cv_type_XML_Size" = xyes; then :
  13139. # The cast to long int works around a bug in the HP C Compiler
  13140. # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
  13141. # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
  13142. # This bug is HP SR number 8606223364.
  13143. { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of XML_Size" >&5
  13144. $as_echo_n "checking size of XML_Size... " >&6; }
  13145. if ${ac_cv_sizeof_XML_Size+:} false; then :
  13146. $as_echo_n "(cached) " >&6
  13147. else
  13148. if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (XML_Size))" "ac_cv_sizeof_XML_Size" "$ac_includes_default
  13149. #include <expat.h>
  13150. "; then :
  13151. else
  13152. if test "$ac_cv_type_XML_Size" = yes; then
  13153. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  13154. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  13155. as_fn_error 77 "cannot compute sizeof (XML_Size)
  13156. See \`config.log' for more details" "$LINENO" 5; }
  13157. else
  13158. ac_cv_sizeof_XML_Size=0
  13159. fi
  13160. fi
  13161. fi
  13162. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_XML_Size" >&5
  13163. $as_echo "$ac_cv_sizeof_XML_Size" >&6; }
  13164. cat >>confdefs.h <<_ACEOF
  13165. #define SIZEOF_XML_SIZE $ac_cv_sizeof_XML_Size
  13166. _ACEOF
  13167. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print XML_Size" >&5
  13168. $as_echo_n "checking how to print XML_Size... " >&6; }
  13169. if ${ne_cv_fmt_XML_Size+:} false; then :
  13170. $as_echo_n "(cached) " >&6
  13171. else
  13172. ne_cv_fmt_XML_Size=none
  13173. if test $ne_fmt_trycompile = yes; then
  13174. oflags="$CPPFLAGS"
  13175. # Consider format string mismatches as errors
  13176. CPPFLAGS="$CPPFLAGS -Wformat -Werror"
  13177. for str in d ld lld; do
  13178. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13179. /* end confdefs.h. */
  13180. #include <sys/types.h>
  13181. #include <expat.h>
  13182. #include <stdio.h>
  13183. int
  13184. main ()
  13185. {
  13186. XML_Size i = 1; printf("%$str", i);
  13187. ;
  13188. return 0;
  13189. }
  13190. _ACEOF
  13191. if ac_fn_c_try_compile "$LINENO"; then :
  13192. ne_cv_fmt_XML_Size=$str; break
  13193. fi
  13194. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  13195. done
  13196. CPPFLAGS=$oflags
  13197. else
  13198. # Best guess. Don't have to be too precise since we probably won't
  13199. # get a warning message anyway.
  13200. case $ac_cv_sizeof_XML_Size in
  13201. $ac_cv_sizeof_int) ne_cv_fmt_XML_Size="d" ;;
  13202. $ac_cv_sizeof_long) ne_cv_fmt_XML_Size="ld" ;;
  13203. $ac_cv_sizeof_long_long) ne_cv_fmt_XML_Size="lld" ;;
  13204. esac
  13205. fi
  13206. fi
  13207. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ne_cv_fmt_XML_Size" >&5
  13208. $as_echo "$ne_cv_fmt_XML_Size" >&6; }
  13209. if test "x$ne_cv_fmt_XML_Size" = "xnone"; then
  13210. as_fn_error $? "format string for XML_Size not found" "$LINENO" 5
  13211. fi
  13212. cat >>confdefs.h <<_ACEOF
  13213. #define NE_FMT_XML_SIZE "$ne_cv_fmt_XML_Size"
  13214. _ACEOF
  13215. else
  13216. cat >>confdefs.h <<_ACEOF
  13217. #define NE_FMT_XML_SIZE "d"
  13218. _ACEOF
  13219. fi
  13220. else
  13221. as_fn_error $? "expat library not found, cannot proceed" "$LINENO" 5
  13222. fi
  13223. else
  13224. as_fn_error $? "expat library not found, cannot proceed" "$LINENO" 5
  13225. fi
  13226. ;;
  13227. no) ;;
  13228. */libexpat.la)
  13229. # Special case for Subversion
  13230. ne_expdir=`echo $with_expat | sed 's:/libexpat.la$::'`
  13231. $as_echo "#define HAVE_EXPAT 1" >>confdefs.h
  13232. cat >>confdefs.h <<_ACEOF
  13233. #define NE_FMT_XML_SIZE "d"
  13234. _ACEOF
  13235. CPPFLAGS="$CPPFLAGS -I$ne_expdir"
  13236. if test "x${NEON_TARGET}" = "xlibneon.la"; then
  13237. NEON_LTLIBS=$with_expat
  13238. else
  13239. # no dependency on libexpat => crippled libneon, so do partial install
  13240. ALLOW_INSTALL=lib
  13241. fi
  13242. neon_xml_parser=expat
  13243. neon_xml_parser_message="expat in $ne_expdir"
  13244. ;;
  13245. /*) as_fn_error $? "--with-expat does not take a directory argument" "$LINENO" 5 ;;
  13246. esac
  13247. # If expat wasn't specifically enabled and libxml was:
  13248. if test "${neon_xml_parser}-${with_libxml2}-${with_included_expat}" = "none-yes-no"; then
  13249. # Extract the first word of "xml2-config", so it can be a program name with args.
  13250. set dummy xml2-config; ac_word=$2
  13251. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  13252. $as_echo_n "checking for $ac_word... " >&6; }
  13253. if ${ac_cv_prog_XML2_CONFIG+:} false; then :
  13254. $as_echo_n "(cached) " >&6
  13255. else
  13256. if test -n "$XML2_CONFIG"; then
  13257. ac_cv_prog_XML2_CONFIG="$XML2_CONFIG" # Let the user override the test.
  13258. else
  13259. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  13260. for as_dir in $PATH
  13261. do
  13262. IFS=$as_save_IFS
  13263. test -z "$as_dir" && as_dir=.
  13264. for ac_exec_ext in '' $ac_executable_extensions; do
  13265. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  13266. ac_cv_prog_XML2_CONFIG="xml2-config"
  13267. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  13268. break 2
  13269. fi
  13270. done
  13271. done
  13272. IFS=$as_save_IFS
  13273. fi
  13274. fi
  13275. XML2_CONFIG=$ac_cv_prog_XML2_CONFIG
  13276. if test -n "$XML2_CONFIG"; then
  13277. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XML2_CONFIG" >&5
  13278. $as_echo "$XML2_CONFIG" >&6; }
  13279. else
  13280. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  13281. $as_echo "no" >&6; }
  13282. fi
  13283. if test -n "$XML2_CONFIG"; then
  13284. neon_xml_parser_message="libxml `$XML2_CONFIG --version`"
  13285. $as_echo "#define HAVE_LIBXML 1" >>confdefs.h
  13286. # xml2-config in some versions erroneously includes -I/include
  13287. # in the --cflags output.
  13288. CPPFLAGS="$CPPFLAGS `$XML2_CONFIG --cflags | sed 's| -I/include||g'`"
  13289. NEON_LIBS="$NEON_LIBS `$XML2_CONFIG --libs | sed 's|-L/usr/lib ||g'`"
  13290. for ac_header in libxml/xmlversion.h libxml/parser.h
  13291. do :
  13292. as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
  13293. ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
  13294. if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
  13295. cat >>confdefs.h <<_ACEOF
  13296. #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
  13297. _ACEOF
  13298. else
  13299. as_fn_error $? "could not find parser.h, libxml installation problem?" "$LINENO" 5
  13300. fi
  13301. done
  13302. neon_xml_parser=libxml2
  13303. else
  13304. as_fn_error $? "libxml2.x library not found, cannot proceed" "$LINENO" 5
  13305. fi
  13306. fi
  13307. # Otherwise, by default search for expat then libxml2:
  13308. if test "${neon_xml_parser}-${with_included_expat}" = "none-no"; then
  13309. ac_fn_c_check_header_mongrel "$LINENO" "expat.h" "ac_cv_header_expat_h" "$ac_includes_default"
  13310. if test "x$ac_cv_header_expat_h" = xyes; then :
  13311. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XML_SetXmlDeclHandler in -lexpat" >&5
  13312. $as_echo_n "checking for XML_SetXmlDeclHandler in -lexpat... " >&6; }
  13313. if ${ac_cv_lib_expat_XML_SetXmlDeclHandler+:} false; then :
  13314. $as_echo_n "(cached) " >&6
  13315. else
  13316. ac_check_lib_save_LIBS=$LIBS
  13317. LIBS="-lexpat $LIBS"
  13318. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13319. /* end confdefs.h. */
  13320. /* Override any GCC internal prototype to avoid an error.
  13321. Use char because int might match the return type of a GCC
  13322. builtin and then its argument prototype would still apply. */
  13323. #ifdef __cplusplus
  13324. extern "C"
  13325. #endif
  13326. char XML_SetXmlDeclHandler ();
  13327. int
  13328. main ()
  13329. {
  13330. return XML_SetXmlDeclHandler ();
  13331. ;
  13332. return 0;
  13333. }
  13334. _ACEOF
  13335. if ac_fn_c_try_link "$LINENO"; then :
  13336. ac_cv_lib_expat_XML_SetXmlDeclHandler=yes
  13337. else
  13338. ac_cv_lib_expat_XML_SetXmlDeclHandler=no
  13339. fi
  13340. rm -f core conftest.err conftest.$ac_objext \
  13341. conftest$ac_exeext conftest.$ac_ext
  13342. LIBS=$ac_check_lib_save_LIBS
  13343. fi
  13344. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_expat_XML_SetXmlDeclHandler" >&5
  13345. $as_echo "$ac_cv_lib_expat_XML_SetXmlDeclHandler" >&6; }
  13346. if test "x$ac_cv_lib_expat_XML_SetXmlDeclHandler" = xyes; then :
  13347. $as_echo "#define HAVE_EXPAT 1" >>confdefs.h
  13348. neon_xml_parser_message="expat"
  13349. NEON_LIBS="$NEON_LIBS -lexpat"
  13350. neon_xml_parser=expat
  13351. ac_fn_c_check_type "$LINENO" "XML_Size" "ac_cv_type_XML_Size" "#include <expat.h>
  13352. "
  13353. if test "x$ac_cv_type_XML_Size" = xyes; then :
  13354. # The cast to long int works around a bug in the HP C Compiler
  13355. # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
  13356. # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
  13357. # This bug is HP SR number 8606223364.
  13358. { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of XML_Size" >&5
  13359. $as_echo_n "checking size of XML_Size... " >&6; }
  13360. if ${ac_cv_sizeof_XML_Size+:} false; then :
  13361. $as_echo_n "(cached) " >&6
  13362. else
  13363. if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (XML_Size))" "ac_cv_sizeof_XML_Size" "$ac_includes_default
  13364. #include <expat.h>
  13365. "; then :
  13366. else
  13367. if test "$ac_cv_type_XML_Size" = yes; then
  13368. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  13369. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  13370. as_fn_error 77 "cannot compute sizeof (XML_Size)
  13371. See \`config.log' for more details" "$LINENO" 5; }
  13372. else
  13373. ac_cv_sizeof_XML_Size=0
  13374. fi
  13375. fi
  13376. fi
  13377. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_XML_Size" >&5
  13378. $as_echo "$ac_cv_sizeof_XML_Size" >&6; }
  13379. cat >>confdefs.h <<_ACEOF
  13380. #define SIZEOF_XML_SIZE $ac_cv_sizeof_XML_Size
  13381. _ACEOF
  13382. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print XML_Size" >&5
  13383. $as_echo_n "checking how to print XML_Size... " >&6; }
  13384. if ${ne_cv_fmt_XML_Size+:} false; then :
  13385. $as_echo_n "(cached) " >&6
  13386. else
  13387. ne_cv_fmt_XML_Size=none
  13388. if test $ne_fmt_trycompile = yes; then
  13389. oflags="$CPPFLAGS"
  13390. # Consider format string mismatches as errors
  13391. CPPFLAGS="$CPPFLAGS -Wformat -Werror"
  13392. for str in d ld lld; do
  13393. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13394. /* end confdefs.h. */
  13395. #include <sys/types.h>
  13396. #include <expat.h>
  13397. #include <stdio.h>
  13398. int
  13399. main ()
  13400. {
  13401. XML_Size i = 1; printf("%$str", i);
  13402. ;
  13403. return 0;
  13404. }
  13405. _ACEOF
  13406. if ac_fn_c_try_compile "$LINENO"; then :
  13407. ne_cv_fmt_XML_Size=$str; break
  13408. fi
  13409. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  13410. done
  13411. CPPFLAGS=$oflags
  13412. else
  13413. # Best guess. Don't have to be too precise since we probably won't
  13414. # get a warning message anyway.
  13415. case $ac_cv_sizeof_XML_Size in
  13416. $ac_cv_sizeof_int) ne_cv_fmt_XML_Size="d" ;;
  13417. $ac_cv_sizeof_long) ne_cv_fmt_XML_Size="ld" ;;
  13418. $ac_cv_sizeof_long_long) ne_cv_fmt_XML_Size="lld" ;;
  13419. esac
  13420. fi
  13421. fi
  13422. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ne_cv_fmt_XML_Size" >&5
  13423. $as_echo "$ne_cv_fmt_XML_Size" >&6; }
  13424. if test "x$ne_cv_fmt_XML_Size" = "xnone"; then
  13425. as_fn_error $? "format string for XML_Size not found" "$LINENO" 5
  13426. fi
  13427. cat >>confdefs.h <<_ACEOF
  13428. #define NE_FMT_XML_SIZE "$ne_cv_fmt_XML_Size"
  13429. _ACEOF
  13430. else
  13431. cat >>confdefs.h <<_ACEOF
  13432. #define NE_FMT_XML_SIZE "d"
  13433. _ACEOF
  13434. fi
  13435. else
  13436. # Extract the first word of "xml2-config", so it can be a program name with args.
  13437. set dummy xml2-config; ac_word=$2
  13438. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  13439. $as_echo_n "checking for $ac_word... " >&6; }
  13440. if ${ac_cv_prog_XML2_CONFIG+:} false; then :
  13441. $as_echo_n "(cached) " >&6
  13442. else
  13443. if test -n "$XML2_CONFIG"; then
  13444. ac_cv_prog_XML2_CONFIG="$XML2_CONFIG" # Let the user override the test.
  13445. else
  13446. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  13447. for as_dir in $PATH
  13448. do
  13449. IFS=$as_save_IFS
  13450. test -z "$as_dir" && as_dir=.
  13451. for ac_exec_ext in '' $ac_executable_extensions; do
  13452. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  13453. ac_cv_prog_XML2_CONFIG="xml2-config"
  13454. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  13455. break 2
  13456. fi
  13457. done
  13458. done
  13459. IFS=$as_save_IFS
  13460. fi
  13461. fi
  13462. XML2_CONFIG=$ac_cv_prog_XML2_CONFIG
  13463. if test -n "$XML2_CONFIG"; then
  13464. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XML2_CONFIG" >&5
  13465. $as_echo "$XML2_CONFIG" >&6; }
  13466. else
  13467. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  13468. $as_echo "no" >&6; }
  13469. fi
  13470. if test -n "$XML2_CONFIG"; then
  13471. neon_xml_parser_message="libxml `$XML2_CONFIG --version`"
  13472. $as_echo "#define HAVE_LIBXML 1" >>confdefs.h
  13473. # xml2-config in some versions erroneously includes -I/include
  13474. # in the --cflags output.
  13475. CPPFLAGS="$CPPFLAGS `$XML2_CONFIG --cflags | sed 's| -I/include||g'`"
  13476. NEON_LIBS="$NEON_LIBS `$XML2_CONFIG --libs | sed 's|-L/usr/lib ||g'`"
  13477. for ac_header in libxml/xmlversion.h libxml/parser.h
  13478. do :
  13479. as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
  13480. ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
  13481. if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
  13482. cat >>confdefs.h <<_ACEOF
  13483. #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
  13484. _ACEOF
  13485. else
  13486. as_fn_error $? "could not find parser.h, libxml installation problem?" "$LINENO" 5
  13487. fi
  13488. done
  13489. neon_xml_parser=libxml2
  13490. else
  13491. :
  13492. fi
  13493. fi
  13494. else
  13495. # Extract the first word of "xml2-config", so it can be a program name with args.
  13496. set dummy xml2-config; ac_word=$2
  13497. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  13498. $as_echo_n "checking for $ac_word... " >&6; }
  13499. if ${ac_cv_prog_XML2_CONFIG+:} false; then :
  13500. $as_echo_n "(cached) " >&6
  13501. else
  13502. if test -n "$XML2_CONFIG"; then
  13503. ac_cv_prog_XML2_CONFIG="$XML2_CONFIG" # Let the user override the test.
  13504. else
  13505. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  13506. for as_dir in $PATH
  13507. do
  13508. IFS=$as_save_IFS
  13509. test -z "$as_dir" && as_dir=.
  13510. for ac_exec_ext in '' $ac_executable_extensions; do
  13511. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  13512. ac_cv_prog_XML2_CONFIG="xml2-config"
  13513. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  13514. break 2
  13515. fi
  13516. done
  13517. done
  13518. IFS=$as_save_IFS
  13519. fi
  13520. fi
  13521. XML2_CONFIG=$ac_cv_prog_XML2_CONFIG
  13522. if test -n "$XML2_CONFIG"; then
  13523. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XML2_CONFIG" >&5
  13524. $as_echo "$XML2_CONFIG" >&6; }
  13525. else
  13526. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  13527. $as_echo "no" >&6; }
  13528. fi
  13529. if test -n "$XML2_CONFIG"; then
  13530. neon_xml_parser_message="libxml `$XML2_CONFIG --version`"
  13531. $as_echo "#define HAVE_LIBXML 1" >>confdefs.h
  13532. # xml2-config in some versions erroneously includes -I/include
  13533. # in the --cflags output.
  13534. CPPFLAGS="$CPPFLAGS `$XML2_CONFIG --cflags | sed 's| -I/include||g'`"
  13535. NEON_LIBS="$NEON_LIBS `$XML2_CONFIG --libs | sed 's|-L/usr/lib ||g'`"
  13536. for ac_header in libxml/xmlversion.h libxml/parser.h
  13537. do :
  13538. as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
  13539. ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
  13540. if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
  13541. cat >>confdefs.h <<_ACEOF
  13542. #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
  13543. _ACEOF
  13544. else
  13545. as_fn_error $? "could not find parser.h, libxml installation problem?" "$LINENO" 5
  13546. fi
  13547. done
  13548. neon_xml_parser=libxml2
  13549. else
  13550. :
  13551. fi
  13552. fi
  13553. fi
  13554. # If an XML parser still has not been found, fail or use the bundled expat
  13555. if test "$neon_xml_parser" = "none"; then
  13556. as_fn_error $? "no XML parser was found: expat or libxml 2.x required" "$LINENO" 5
  13557. fi
  13558. { $as_echo "$as_me:${as_lineno-$LINENO}: XML parser used: $neon_xml_parser_message" >&5
  13559. $as_echo "$as_me: XML parser used: $neon_xml_parser_message" >&6;}
  13560. fi
  13561. # Internationalization support.
  13562. # Check whether --enable-nls was given.
  13563. if test "${enable_nls+set}" = set; then :
  13564. enableval=$enable_nls;
  13565. else
  13566. enable_nls=${ac_cv_header_libintl_h}
  13567. fi
  13568. if test x${enable_nls} = xyes; then
  13569. # presume that dgettext() is available if bindtextdomain() is...
  13570. # checking for dgettext() itself is awkward because gcc has a
  13571. # builtin of that function, which confuses AC_CHECK_FUNCS et al.
  13572. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing bindtextdomain" >&5
  13573. $as_echo_n "checking for library containing bindtextdomain... " >&6; }
  13574. if ${ne_cv_libsfor_bindtextdomain+:} false; then :
  13575. $as_echo_n "(cached) " >&6
  13576. else
  13577. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13578. /* end confdefs.h. */
  13579. int
  13580. main ()
  13581. {
  13582. bindtextdomain();
  13583. ;
  13584. return 0;
  13585. }
  13586. _ACEOF
  13587. if ac_fn_c_try_link "$LINENO"; then :
  13588. ne_cv_libsfor_bindtextdomain="none needed"
  13589. else
  13590. ne_sl_save_LIBS=$LIBS
  13591. ne_cv_libsfor_bindtextdomain="not found"
  13592. for lib in intl; do
  13593. # The w32api libraries link using the stdcall calling convention.
  13594. case ${lib}-${ne_cv_os_uname} in
  13595. ws2_32-MINGW*) ne__code="__stdcall bindtextdomain();" ;;
  13596. *) ne__code="bindtextdomain();" ;;
  13597. esac
  13598. LIBS="$ne_sl_save_LIBS -l$lib $NEON_LIBS"
  13599. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13600. /* end confdefs.h. */
  13601. int
  13602. main ()
  13603. {
  13604. $ne__code
  13605. ;
  13606. return 0;
  13607. }
  13608. _ACEOF
  13609. if ac_fn_c_try_link "$LINENO"; then :
  13610. ne_cv_libsfor_bindtextdomain="-l$lib"; break
  13611. fi
  13612. rm -f core conftest.err conftest.$ac_objext \
  13613. conftest$ac_exeext conftest.$ac_ext
  13614. LIBS="$ne_sl_save_LIBS -l$lib -liconv $NEON_LIBS"
  13615. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13616. /* end confdefs.h. */
  13617. int
  13618. main ()
  13619. {
  13620. $ne__code
  13621. ;
  13622. return 0;
  13623. }
  13624. _ACEOF
  13625. if ac_fn_c_try_link "$LINENO"; then :
  13626. ne_cv_libsfor_bindtextdomain="-l$lib -liconv "; break
  13627. fi
  13628. rm -f core conftest.err conftest.$ac_objext \
  13629. conftest$ac_exeext conftest.$ac_ext
  13630. done
  13631. LIBS=$ne_sl_save_LIBS
  13632. fi
  13633. rm -f core conftest.err conftest.$ac_objext \
  13634. conftest$ac_exeext conftest.$ac_ext
  13635. fi
  13636. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ne_cv_libsfor_bindtextdomain" >&5
  13637. $as_echo "$ne_cv_libsfor_bindtextdomain" >&6; }
  13638. if test "$ne_cv_libsfor_bindtextdomain" = "not found"; then
  13639. enable_nls=no
  13640. elif test "$ne_cv_libsfor_bindtextdomain" = "none needed"; then
  13641. :
  13642. else
  13643. NEON_LIBS="$ne_cv_libsfor_bindtextdomain $NEON_LIBS"
  13644. fi
  13645. ne_cf_save_LIBS=$LIBS
  13646. LIBS="$LIBS $NEON_LIBS"
  13647. for ac_func in bind_textdomain_codeset
  13648. do :
  13649. ac_fn_c_check_func "$LINENO" "bind_textdomain_codeset" "ac_cv_func_bind_textdomain_codeset"
  13650. if test "x$ac_cv_func_bind_textdomain_codeset" = xyes; then :
  13651. cat >>confdefs.h <<_ACEOF
  13652. #define HAVE_BIND_TEXTDOMAIN_CODESET 1
  13653. _ACEOF
  13654. fi
  13655. done
  13656. LIBS=$ne_cf_save_LIBS
  13657. fi
  13658. if test "$enable_nls" = "no"; then
  13659. NE_FLAG_I18N=no
  13660. ne_I18N_message="Internationalization support not enabled"
  13661. { $as_echo "$as_me:${as_lineno-$LINENO}: Internationalization support not enabled" >&5
  13662. $as_echo "$as_me: Internationalization support not enabled" >&6;}
  13663. else
  13664. NE_FLAG_I18N=yes
  13665. $as_echo "#define NE_HAVE_I18N 1" >>confdefs.h
  13666. ne_I18N_message="Internationalization support enabled"
  13667. { $as_echo "$as_me:${as_lineno-$LINENO}: Internationalization support enabled" >&5
  13668. $as_echo "$as_me: Internationalization support enabled" >&6;}
  13669. eval localedir="${datadir}/locale"
  13670. cat >>confdefs.h <<_ACEOF
  13671. #define LOCALEDIR "$localedir"
  13672. _ACEOF
  13673. fi
  13674. # Extra checks for debugging, compiler warnings
  13675. # Check whether --enable-debug was given.
  13676. if test "${enable_debug+set}" = set; then :
  13677. enableval=$enable_debug;
  13678. fi
  13679. # default is to enable debugging
  13680. case $enable_debug in
  13681. no) { $as_echo "$as_me:${as_lineno-$LINENO}: debugging is disabled" >&5
  13682. $as_echo "$as_me: debugging is disabled" >&6;}
  13683. ;;
  13684. *) { $as_echo "$as_me:${as_lineno-$LINENO}: debugging is enabled" >&5
  13685. $as_echo "$as_me: debugging is enabled" >&6;}
  13686. $as_echo "#define NE_DEBUGGING 1" >>confdefs.h
  13687. ;;
  13688. esac
  13689. # Leave till last to prevent CFLAGS affecting checks.
  13690. # Check whether --enable-warnings was given.
  13691. if test "${enable_warnings+set}" = set; then :
  13692. enableval=$enable_warnings;
  13693. fi
  13694. if test "$enable_warnings" = "yes"; then
  13695. case $GCC:`uname` in
  13696. yes:*)
  13697. CFLAGS="$CFLAGS -Wall -Wmissing-declarations -Wshadow -Wreturn-type -Wsign-compare -Wundef -Wpointer-arith -Wbad-function-cast -Wformat-security"
  13698. if test -z "$with_ssl" -o "$with_ssl" = "no"; then
  13699. # OpenSSL headers fail strict prototypes checks
  13700. CFLAGS="$CFLAGS -Wstrict-prototypes"
  13701. fi
  13702. ;;
  13703. no:OSF1) CFLAGS="$CFLAGS -check -msg_disable returnchecks -msg_disable alignment -msg_disable overflow" ;;
  13704. no:IRIX) CFLAGS="$CFLAGS -fullwarn" ;;
  13705. no:UnixWare) CFLAGS="$CFLAGS -v" ;;
  13706. *) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: warning flags unknown for compiler on this platform" >&5
  13707. $as_echo "$as_me: WARNING: warning flags unknown for compiler on this platform" >&2;} ;;
  13708. esac
  13709. fi
  13710. CPPFLAGS="$CPPFLAGS -I\${top_builddir}"
  13711. # Check whether --enable-memleak was given.
  13712. if test "${enable_memleak+set}" = set; then :
  13713. enableval=$enable_memleak;
  13714. fi
  13715. if test "$enable_memleak" = "yes"; then
  13716. CPPFLAGS="$CPPFLAGS -DNEON_MEMLEAK -I\$(top_srcdir)/src"
  13717. # disable 'make install'
  13718. ALLOW_INSTALL=memleak
  13719. fi
  13720. # Enable tests for optional features
  13721. TESTS="\$(BASIC_TESTS)"
  13722. HELPERS=""
  13723. if test $NE_FLAG_SSL = yes; then
  13724. # Only enable SSL tests if an openssl binary is found (needed to make
  13725. # certs etc).
  13726. # Extract the first word of "openssl", so it can be a program name with args.
  13727. set dummy openssl; ac_word=$2
  13728. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  13729. $as_echo_n "checking for $ac_word... " >&6; }
  13730. if ${ac_cv_path_OPENSSL+:} false; then :
  13731. $as_echo_n "(cached) " >&6
  13732. else
  13733. case $OPENSSL in
  13734. [\\/]* | ?:[\\/]*)
  13735. ac_cv_path_OPENSSL="$OPENSSL" # Let the user override the test with a path.
  13736. ;;
  13737. *)
  13738. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  13739. for as_dir in $PATH
  13740. do
  13741. IFS=$as_save_IFS
  13742. test -z "$as_dir" && as_dir=.
  13743. for ac_exec_ext in '' $ac_executable_extensions; do
  13744. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  13745. ac_cv_path_OPENSSL="$as_dir/$ac_word$ac_exec_ext"
  13746. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  13747. break 2
  13748. fi
  13749. done
  13750. done
  13751. IFS=$as_save_IFS
  13752. test -z "$ac_cv_path_OPENSSL" && ac_cv_path_OPENSSL="notfound"
  13753. ;;
  13754. esac
  13755. fi
  13756. OPENSSL=$ac_cv_path_OPENSSL
  13757. if test -n "$OPENSSL"; then
  13758. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OPENSSL" >&5
  13759. $as_echo "$OPENSSL" >&6; }
  13760. else
  13761. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  13762. $as_echo "no" >&6; }
  13763. fi
  13764. if test "$OPENSSL" != "notfound"; then
  13765. TESTS="$TESTS \$(SSL_TESTS)"
  13766. HELPERS="$HELPERS \$(SSL_HELPERS)"
  13767. else
  13768. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: no openssl binary in \$PATH: SSL tests disabled" >&5
  13769. $as_echo "$as_me: WARNING: no openssl binary in \$PATH: SSL tests disabled" >&2;}
  13770. fi
  13771. # Extract the first word of "certutil", so it can be a program name with args.
  13772. set dummy certutil; ac_word=$2
  13773. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  13774. $as_echo_n "checking for $ac_word... " >&6; }
  13775. if ${ac_cv_path_CERTUTIL+:} false; then :
  13776. $as_echo_n "(cached) " >&6
  13777. else
  13778. case $CERTUTIL in
  13779. [\\/]* | ?:[\\/]*)
  13780. ac_cv_path_CERTUTIL="$CERTUTIL" # Let the user override the test with a path.
  13781. ;;
  13782. *)
  13783. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  13784. for as_dir in $PATH
  13785. do
  13786. IFS=$as_save_IFS
  13787. test -z "$as_dir" && as_dir=.
  13788. for ac_exec_ext in '' $ac_executable_extensions; do
  13789. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  13790. ac_cv_path_CERTUTIL="$as_dir/$ac_word$ac_exec_ext"
  13791. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  13792. break 2
  13793. fi
  13794. done
  13795. done
  13796. IFS=$as_save_IFS
  13797. test -z "$ac_cv_path_CERTUTIL" && ac_cv_path_CERTUTIL="notfound"
  13798. ;;
  13799. esac
  13800. fi
  13801. CERTUTIL=$ac_cv_path_CERTUTIL
  13802. if test -n "$CERTUTIL"; then
  13803. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CERTUTIL" >&5
  13804. $as_echo "$CERTUTIL" >&6; }
  13805. else
  13806. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  13807. $as_echo "no" >&6; }
  13808. fi
  13809. # Extract the first word of "pk12util", so it can be a program name with args.
  13810. set dummy pk12util; ac_word=$2
  13811. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  13812. $as_echo_n "checking for $ac_word... " >&6; }
  13813. if ${ac_cv_path_PK12UTIL+:} false; then :
  13814. $as_echo_n "(cached) " >&6
  13815. else
  13816. case $PK12UTIL in
  13817. [\\/]* | ?:[\\/]*)
  13818. ac_cv_path_PK12UTIL="$PK12UTIL" # Let the user override the test with a path.
  13819. ;;
  13820. *)
  13821. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  13822. for as_dir in $PATH
  13823. do
  13824. IFS=$as_save_IFS
  13825. test -z "$as_dir" && as_dir=.
  13826. for ac_exec_ext in '' $ac_executable_extensions; do
  13827. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  13828. ac_cv_path_PK12UTIL="$as_dir/$ac_word$ac_exec_ext"
  13829. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  13830. break 2
  13831. fi
  13832. done
  13833. done
  13834. IFS=$as_save_IFS
  13835. test -z "$ac_cv_path_PK12UTIL" && ac_cv_path_PK12UTIL="notfound"
  13836. ;;
  13837. esac
  13838. fi
  13839. PK12UTIL=$ac_cv_path_PK12UTIL
  13840. if test -n "$PK12UTIL"; then
  13841. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PK12UTIL" >&5
  13842. $as_echo "$PK12UTIL" >&6; }
  13843. else
  13844. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  13845. $as_echo "no" >&6; }
  13846. fi
  13847. fi
  13848. if test $NE_FLAG_ZLIB = yes; then
  13849. TESTS="$TESTS \$(ZLIB_TESTS)"
  13850. HELPERS="$HELPERS \$(ZLIB_HELPERS)"
  13851. fi
  13852. if test x$enable_webdav != xno; then
  13853. TESTS="$TESTS \$(DAV_TESTS)"
  13854. fi
  13855. # Check whether --enable-tests-install was given.
  13856. if test "${enable_tests_install+set}" = set; then :
  13857. enableval=$enable_tests_install;
  13858. else
  13859. enable_tests_install=no
  13860. fi
  13861. # If test suite installation is not required, it's more
  13862. # efficient to link the test programs using -no-install:
  13863. if test "$enable_tests_install" = "no"; then
  13864. TEST_LDFLAGS="-no-install"
  13865. fi
  13866. # Extract the first word of "pkg-config", so it can be a program name with args.
  13867. set dummy pkg-config; ac_word=$2
  13868. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  13869. $as_echo_n "checking for $ac_word... " >&6; }
  13870. if ${ac_cv_path_PKG_CONFIG+:} false; then :
  13871. $as_echo_n "(cached) " >&6
  13872. else
  13873. case $PKG_CONFIG in
  13874. [\\/]* | ?:[\\/]*)
  13875. ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
  13876. ;;
  13877. *)
  13878. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  13879. for as_dir in $PATH
  13880. do
  13881. IFS=$as_save_IFS
  13882. test -z "$as_dir" && as_dir=.
  13883. for ac_exec_ext in '' $ac_executable_extensions; do
  13884. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  13885. ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
  13886. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  13887. break 2
  13888. fi
  13889. done
  13890. done
  13891. IFS=$as_save_IFS
  13892. test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
  13893. ;;
  13894. esac
  13895. fi
  13896. PKG_CONFIG=$ac_cv_path_PKG_CONFIG
  13897. if test -n "$PKG_CONFIG"; then
  13898. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
  13899. $as_echo "$PKG_CONFIG" >&6; }
  13900. else
  13901. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  13902. $as_echo "no" >&6; }
  13903. fi
  13904. if test "$PKG_CONFIG" != "no"; then
  13905. # pkg-config >= 0.18 will use "Libs.private" iff necessary,
  13906. # older versions which don't recognize that field may always
  13907. # need all libraries in Libs.
  13908. if $PKG_CONFIG --atleast-pkgconfig-version=0.18; then :; else
  13909. NEON_PC_LIBS=${NEON_LIBS}
  13910. fi
  13911. fi
  13912. # Pass the interface version on to libtool when linking libneon.la
  13913. NEON_LINK_FLAGS="-version-info ${NE_LIBTOOL_VERSINFO}"
  13914. # If any non-default ABI variations are used, add them to the SONAME:
  13915. ### disabled for backwards-compat with 0.27.x
  13916. #if test "x${NE_LIBTOOL_RELEASE}y" != "xy"; then
  13917. # NEON_LINK_FLAGS="${NEON_LINK_FLAGS} -release ${NE_LIBTOOL_RELEASE}"
  13918. #fi
  13919. # Check whether --enable-ld-version-script was given.
  13920. if test "${enable_ld_version_script+set}" = set; then :
  13921. enableval=$enable_ld_version_script; have_ld_version_script=$enableval
  13922. fi
  13923. if test -z "$have_ld_version_script"; then
  13924. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if LD -Wl,--version-script works" >&5
  13925. $as_echo_n "checking if LD -Wl,--version-script works... " >&6; }
  13926. save_LDFLAGS="$LDFLAGS"
  13927. LDFLAGS="$LDFLAGS -Wl,--version-script=conftest.map"
  13928. cat > conftest.map <<EOF
  13929. foo
  13930. EOF
  13931. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13932. /* end confdefs.h. */
  13933. int
  13934. main ()
  13935. {
  13936. ;
  13937. return 0;
  13938. }
  13939. _ACEOF
  13940. if ac_fn_c_try_link "$LINENO"; then :
  13941. accepts_syntax_errors=yes
  13942. else
  13943. accepts_syntax_errors=no
  13944. fi
  13945. rm -f core conftest.err conftest.$ac_objext \
  13946. conftest$ac_exeext conftest.$ac_ext
  13947. if test "$accepts_syntax_errors" = no; then
  13948. cat > conftest.map <<EOF
  13949. VERS_1 {
  13950. global: sym;
  13951. };
  13952. VERS_2 {
  13953. global: sym;
  13954. } VERS_1;
  13955. EOF
  13956. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13957. /* end confdefs.h. */
  13958. int
  13959. main ()
  13960. {
  13961. ;
  13962. return 0;
  13963. }
  13964. _ACEOF
  13965. if ac_fn_c_try_link "$LINENO"; then :
  13966. have_ld_version_script=yes
  13967. else
  13968. have_ld_version_script=no
  13969. fi
  13970. rm -f core conftest.err conftest.$ac_objext \
  13971. conftest$ac_exeext conftest.$ac_ext
  13972. else
  13973. have_ld_version_script=no
  13974. fi
  13975. rm -f conftest.map
  13976. LDFLAGS="$save_LDFLAGS"
  13977. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_ld_version_script" >&5
  13978. $as_echo "$have_ld_version_script" >&6; }
  13979. fi
  13980. if test "$have_ld_version_script" = "yes"; then
  13981. HAVE_LD_VERSION_SCRIPT_TRUE=
  13982. HAVE_LD_VERSION_SCRIPT_FALSE='#'
  13983. else
  13984. HAVE_LD_VERSION_SCRIPT_TRUE='#'
  13985. HAVE_LD_VERSION_SCRIPT_FALSE=
  13986. fi
  13987. # If ld version scripts are supported, enable symbol versioning.
  13988. # Otherwise, fall back to any libtool-supported symbol export
  13989. # restrictions; ne__* symbols are not exported.
  13990. if test "x$have_ld_version_script" = "xyes"; then
  13991. NEON_LINK_FLAGS="$NEON_LINK_FLAGS -Wl,--version-script=\$(top_srcdir)/src/neon.vers"
  13992. else
  13993. NEON_LINK_FLAGS="$NEON_LINK_FLAGS -export-symbols-regex '^ne_[^_]'"
  13994. fi
  13995. if test x${enable_shared}${pic_mode}z = xnodefaultz; then
  13996. CFLAGS="$CFLAGS -prefer-pic"
  13997. { $as_echo "$as_me:${as_lineno-$LINENO}: Using PIC for static library build" >&5
  13998. $as_echo "$as_me: Using PIC for static library build" >&6;}
  13999. fi
  14000. if test x${enable_shared} = xno; then
  14001. # Defining NE_PRIVATE as the empty string would work; using a
  14002. # non-empty but redundant string 'extern' avoids any possible cpp
  14003. # confusion with from an empty macro.
  14004. CPPFLAGS="$CPPFLAGS -DNE_PRIVATE=extern"
  14005. { $as_echo "$as_me:${as_lineno-$LINENO}: Private symbol suppression disabled for static library build" >&5
  14006. $as_echo "$as_me: Private symbol suppression disabled for static library build" >&6;}
  14007. fi
  14008. # Bundled language catalogs
  14009. ALL_LINGUAS="cs de fr ja nn pl ru tr zh_CN"
  14010. ac_config_files="$ac_config_files neon-config"
  14011. ac_config_files="$ac_config_files Makefile src/Makefile test/Makefile neon.pc"
  14012. ac_config_files="$ac_config_files test/makekeys:test/makekeys.sh"
  14013. cat >confcache <<\_ACEOF
  14014. # This file is a shell script that caches the results of configure
  14015. # tests run on this system so they can be shared between configure
  14016. # scripts and configure runs, see configure's option --config-cache.
  14017. # It is not useful on other systems. If it contains results you don't
  14018. # want to keep, you may remove or edit it.
  14019. #
  14020. # config.status only pays attention to the cache file if you give it
  14021. # the --recheck option to rerun configure.
  14022. #
  14023. # `ac_cv_env_foo' variables (set or unset) will be overridden when
  14024. # loading this file, other *unset* `ac_cv_foo' will be assigned the
  14025. # following values.
  14026. _ACEOF
  14027. # The following way of writing the cache mishandles newlines in values,
  14028. # but we know of no workaround that is simple, portable, and efficient.
  14029. # So, we kill variables containing newlines.
  14030. # Ultrix sh set writes to stderr and can't be redirected directly,
  14031. # and sets the high bit in the cache file unless we assign to the vars.
  14032. (
  14033. for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
  14034. eval ac_val=\$$ac_var
  14035. case $ac_val in #(
  14036. *${as_nl}*)
  14037. case $ac_var in #(
  14038. *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
  14039. $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
  14040. esac
  14041. case $ac_var in #(
  14042. _ | IFS | as_nl) ;; #(
  14043. BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
  14044. *) { eval $ac_var=; unset $ac_var;} ;;
  14045. esac ;;
  14046. esac
  14047. done
  14048. (set) 2>&1 |
  14049. case $as_nl`(ac_space=' '; set) 2>&1` in #(
  14050. *${as_nl}ac_space=\ *)
  14051. # `set' does not quote correctly, so add quotes: double-quote
  14052. # substitution turns \\\\ into \\, and sed turns \\ into \.
  14053. sed -n \
  14054. "s/'/'\\\\''/g;
  14055. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
  14056. ;; #(
  14057. *)
  14058. # `set' quotes correctly as required by POSIX, so do not add quotes.
  14059. sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
  14060. ;;
  14061. esac |
  14062. sort
  14063. ) |
  14064. sed '
  14065. /^ac_cv_env_/b end
  14066. t clear
  14067. :clear
  14068. s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
  14069. t end
  14070. s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
  14071. :end' >>confcache
  14072. if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
  14073. if test -w "$cache_file"; then
  14074. if test "x$cache_file" != "x/dev/null"; then
  14075. { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
  14076. $as_echo "$as_me: updating cache $cache_file" >&6;}
  14077. if test ! -f "$cache_file" || test -h "$cache_file"; then
  14078. cat confcache >"$cache_file"
  14079. else
  14080. case $cache_file in #(
  14081. */* | ?:*)
  14082. mv -f confcache "$cache_file"$$ &&
  14083. mv -f "$cache_file"$$ "$cache_file" ;; #(
  14084. *)
  14085. mv -f confcache "$cache_file" ;;
  14086. esac
  14087. fi
  14088. fi
  14089. else
  14090. { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
  14091. $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
  14092. fi
  14093. fi
  14094. rm -f confcache
  14095. test "x$prefix" = xNONE && prefix=$ac_default_prefix
  14096. # Let make expand exec_prefix.
  14097. test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
  14098. DEFS=-DHAVE_CONFIG_H
  14099. ac_libobjs=
  14100. ac_ltlibobjs=
  14101. U=
  14102. for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
  14103. # 1. Remove the extension, and $U if already installed.
  14104. ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
  14105. ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
  14106. # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
  14107. # will be set to the directory where LIBOBJS objects are built.
  14108. as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
  14109. as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
  14110. done
  14111. LIBOBJS=$ac_libobjs
  14112. LTLIBOBJS=$ac_ltlibobjs
  14113. if test -z "${HAVE_LD_VERSION_SCRIPT_TRUE}" && test -z "${HAVE_LD_VERSION_SCRIPT_FALSE}"; then
  14114. as_fn_error $? "conditional \"HAVE_LD_VERSION_SCRIPT\" was never defined.
  14115. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  14116. fi
  14117. : "${CONFIG_STATUS=./config.status}"
  14118. ac_write_fail=0
  14119. ac_clean_files_save=$ac_clean_files
  14120. ac_clean_files="$ac_clean_files $CONFIG_STATUS"
  14121. { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
  14122. $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
  14123. as_write_fail=0
  14124. cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
  14125. #! $SHELL
  14126. # Generated by $as_me.
  14127. # Run this file to recreate the current configuration.
  14128. # Compiler output produced by configure, useful for debugging
  14129. # configure, is in config.log if it exists.
  14130. debug=false
  14131. ac_cs_recheck=false
  14132. ac_cs_silent=false
  14133. SHELL=\${CONFIG_SHELL-$SHELL}
  14134. export SHELL
  14135. _ASEOF
  14136. cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
  14137. ## -------------------- ##
  14138. ## M4sh Initialization. ##
  14139. ## -------------------- ##
  14140. # Be more Bourne compatible
  14141. DUALCASE=1; export DUALCASE # for MKS sh
  14142. if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
  14143. emulate sh
  14144. NULLCMD=:
  14145. # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
  14146. # is contrary to our usage. Disable this feature.
  14147. alias -g '${1+"$@"}'='"$@"'
  14148. setopt NO_GLOB_SUBST
  14149. else
  14150. case `(set -o) 2>/dev/null` in #(
  14151. *posix*) :
  14152. set -o posix ;; #(
  14153. *) :
  14154. ;;
  14155. esac
  14156. fi
  14157. as_nl='
  14158. '
  14159. export as_nl
  14160. # Printing a long string crashes Solaris 7 /usr/bin/printf.
  14161. as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
  14162. as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
  14163. as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
  14164. # Prefer a ksh shell builtin over an external printf program on Solaris,
  14165. # but without wasting forks for bash or zsh.
  14166. if test -z "$BASH_VERSION$ZSH_VERSION" \
  14167. && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
  14168. as_echo='print -r --'
  14169. as_echo_n='print -rn --'
  14170. elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
  14171. as_echo='printf %s\n'
  14172. as_echo_n='printf %s'
  14173. else
  14174. if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
  14175. as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
  14176. as_echo_n='/usr/ucb/echo -n'
  14177. else
  14178. as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
  14179. as_echo_n_body='eval
  14180. arg=$1;
  14181. case $arg in #(
  14182. *"$as_nl"*)
  14183. expr "X$arg" : "X\\(.*\\)$as_nl";
  14184. arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
  14185. esac;
  14186. expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
  14187. '
  14188. export as_echo_n_body
  14189. as_echo_n='sh -c $as_echo_n_body as_echo'
  14190. fi
  14191. export as_echo_body
  14192. as_echo='sh -c $as_echo_body as_echo'
  14193. fi
  14194. # The user is always right.
  14195. if test "${PATH_SEPARATOR+set}" != set; then
  14196. PATH_SEPARATOR=:
  14197. (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
  14198. (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
  14199. PATH_SEPARATOR=';'
  14200. }
  14201. fi
  14202. # IFS
  14203. # We need space, tab and new line, in precisely that order. Quoting is
  14204. # there to prevent editors from complaining about space-tab.
  14205. # (If _AS_PATH_WALK were called with IFS unset, it would disable word
  14206. # splitting by setting IFS to empty value.)
  14207. IFS=" "" $as_nl"
  14208. # Find who we are. Look in the path if we contain no directory separator.
  14209. as_myself=
  14210. case $0 in #((
  14211. *[\\/]* ) as_myself=$0 ;;
  14212. *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  14213. for as_dir in $PATH
  14214. do
  14215. IFS=$as_save_IFS
  14216. test -z "$as_dir" && as_dir=.
  14217. test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
  14218. done
  14219. IFS=$as_save_IFS
  14220. ;;
  14221. esac
  14222. # We did not find ourselves, most probably we were run as `sh COMMAND'
  14223. # in which case we are not to be found in the path.
  14224. if test "x$as_myself" = x; then
  14225. as_myself=$0
  14226. fi
  14227. if test ! -f "$as_myself"; then
  14228. $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
  14229. exit 1
  14230. fi
  14231. # Unset variables that we do not need and which cause bugs (e.g. in
  14232. # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
  14233. # suppresses any "Segmentation fault" message there. '((' could
  14234. # trigger a bug in pdksh 5.2.14.
  14235. for as_var in BASH_ENV ENV MAIL MAILPATH
  14236. do eval test x\${$as_var+set} = xset \
  14237. && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
  14238. done
  14239. PS1='$ '
  14240. PS2='> '
  14241. PS4='+ '
  14242. # NLS nuisances.
  14243. LC_ALL=C
  14244. export LC_ALL
  14245. LANGUAGE=C
  14246. export LANGUAGE
  14247. # CDPATH.
  14248. (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
  14249. # as_fn_error STATUS ERROR [LINENO LOG_FD]
  14250. # ----------------------------------------
  14251. # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
  14252. # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
  14253. # script with STATUS, using 1 if that was 0.
  14254. as_fn_error ()
  14255. {
  14256. as_status=$1; test $as_status -eq 0 && as_status=1
  14257. if test "$4"; then
  14258. as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  14259. $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
  14260. fi
  14261. $as_echo "$as_me: error: $2" >&2
  14262. as_fn_exit $as_status
  14263. } # as_fn_error
  14264. # as_fn_set_status STATUS
  14265. # -----------------------
  14266. # Set $? to STATUS, without forking.
  14267. as_fn_set_status ()
  14268. {
  14269. return $1
  14270. } # as_fn_set_status
  14271. # as_fn_exit STATUS
  14272. # -----------------
  14273. # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
  14274. as_fn_exit ()
  14275. {
  14276. set +e
  14277. as_fn_set_status $1
  14278. exit $1
  14279. } # as_fn_exit
  14280. # as_fn_unset VAR
  14281. # ---------------
  14282. # Portably unset VAR.
  14283. as_fn_unset ()
  14284. {
  14285. { eval $1=; unset $1;}
  14286. }
  14287. as_unset=as_fn_unset
  14288. # as_fn_append VAR VALUE
  14289. # ----------------------
  14290. # Append the text in VALUE to the end of the definition contained in VAR. Take
  14291. # advantage of any shell optimizations that allow amortized linear growth over
  14292. # repeated appends, instead of the typical quadratic growth present in naive
  14293. # implementations.
  14294. if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
  14295. eval 'as_fn_append ()
  14296. {
  14297. eval $1+=\$2
  14298. }'
  14299. else
  14300. as_fn_append ()
  14301. {
  14302. eval $1=\$$1\$2
  14303. }
  14304. fi # as_fn_append
  14305. # as_fn_arith ARG...
  14306. # ------------------
  14307. # Perform arithmetic evaluation on the ARGs, and store the result in the
  14308. # global $as_val. Take advantage of shells that can avoid forks. The arguments
  14309. # must be portable across $(()) and expr.
  14310. if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
  14311. eval 'as_fn_arith ()
  14312. {
  14313. as_val=$(( $* ))
  14314. }'
  14315. else
  14316. as_fn_arith ()
  14317. {
  14318. as_val=`expr "$@" || test $? -eq 1`
  14319. }
  14320. fi # as_fn_arith
  14321. if expr a : '\(a\)' >/dev/null 2>&1 &&
  14322. test "X`expr 00001 : '.*\(...\)'`" = X001; then
  14323. as_expr=expr
  14324. else
  14325. as_expr=false
  14326. fi
  14327. if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
  14328. as_basename=basename
  14329. else
  14330. as_basename=false
  14331. fi
  14332. if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
  14333. as_dirname=dirname
  14334. else
  14335. as_dirname=false
  14336. fi
  14337. as_me=`$as_basename -- "$0" ||
  14338. $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
  14339. X"$0" : 'X\(//\)$' \| \
  14340. X"$0" : 'X\(/\)' \| . 2>/dev/null ||
  14341. $as_echo X/"$0" |
  14342. sed '/^.*\/\([^/][^/]*\)\/*$/{
  14343. s//\1/
  14344. q
  14345. }
  14346. /^X\/\(\/\/\)$/{
  14347. s//\1/
  14348. q
  14349. }
  14350. /^X\/\(\/\).*/{
  14351. s//\1/
  14352. q
  14353. }
  14354. s/.*/./; q'`
  14355. # Avoid depending upon Character Ranges.
  14356. as_cr_letters='abcdefghijklmnopqrstuvwxyz'
  14357. as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
  14358. as_cr_Letters=$as_cr_letters$as_cr_LETTERS
  14359. as_cr_digits='0123456789'
  14360. as_cr_alnum=$as_cr_Letters$as_cr_digits
  14361. ECHO_C= ECHO_N= ECHO_T=
  14362. case `echo -n x` in #(((((
  14363. -n*)
  14364. case `echo 'xy\c'` in
  14365. *c*) ECHO_T=' ';; # ECHO_T is single tab character.
  14366. xy) ECHO_C='\c';;
  14367. *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
  14368. ECHO_T=' ';;
  14369. esac;;
  14370. *)
  14371. ECHO_N='-n';;
  14372. esac
  14373. rm -f conf$$ conf$$.exe conf$$.file
  14374. if test -d conf$$.dir; then
  14375. rm -f conf$$.dir/conf$$.file
  14376. else
  14377. rm -f conf$$.dir
  14378. mkdir conf$$.dir 2>/dev/null
  14379. fi
  14380. if (echo >conf$$.file) 2>/dev/null; then
  14381. if ln -s conf$$.file conf$$ 2>/dev/null; then
  14382. as_ln_s='ln -s'
  14383. # ... but there are two gotchas:
  14384. # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
  14385. # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
  14386. # In both cases, we have to default to `cp -pR'.
  14387. ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
  14388. as_ln_s='cp -pR'
  14389. elif ln conf$$.file conf$$ 2>/dev/null; then
  14390. as_ln_s=ln
  14391. else
  14392. as_ln_s='cp -pR'
  14393. fi
  14394. else
  14395. as_ln_s='cp -pR'
  14396. fi
  14397. rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
  14398. rmdir conf$$.dir 2>/dev/null
  14399. # as_fn_mkdir_p
  14400. # -------------
  14401. # Create "$as_dir" as a directory, including parents if necessary.
  14402. as_fn_mkdir_p ()
  14403. {
  14404. case $as_dir in #(
  14405. -*) as_dir=./$as_dir;;
  14406. esac
  14407. test -d "$as_dir" || eval $as_mkdir_p || {
  14408. as_dirs=
  14409. while :; do
  14410. case $as_dir in #(
  14411. *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
  14412. *) as_qdir=$as_dir;;
  14413. esac
  14414. as_dirs="'$as_qdir' $as_dirs"
  14415. as_dir=`$as_dirname -- "$as_dir" ||
  14416. $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  14417. X"$as_dir" : 'X\(//\)[^/]' \| \
  14418. X"$as_dir" : 'X\(//\)$' \| \
  14419. X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
  14420. $as_echo X"$as_dir" |
  14421. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  14422. s//\1/
  14423. q
  14424. }
  14425. /^X\(\/\/\)[^/].*/{
  14426. s//\1/
  14427. q
  14428. }
  14429. /^X\(\/\/\)$/{
  14430. s//\1/
  14431. q
  14432. }
  14433. /^X\(\/\).*/{
  14434. s//\1/
  14435. q
  14436. }
  14437. s/.*/./; q'`
  14438. test -d "$as_dir" && break
  14439. done
  14440. test -z "$as_dirs" || eval "mkdir $as_dirs"
  14441. } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
  14442. } # as_fn_mkdir_p
  14443. if mkdir -p . 2>/dev/null; then
  14444. as_mkdir_p='mkdir -p "$as_dir"'
  14445. else
  14446. test -d ./-p && rmdir ./-p
  14447. as_mkdir_p=false
  14448. fi
  14449. # as_fn_executable_p FILE
  14450. # -----------------------
  14451. # Test if FILE is an executable regular file.
  14452. as_fn_executable_p ()
  14453. {
  14454. test -f "$1" && test -x "$1"
  14455. } # as_fn_executable_p
  14456. as_test_x='test -x'
  14457. as_executable_p=as_fn_executable_p
  14458. # Sed expression to map a string onto a valid CPP name.
  14459. as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
  14460. # Sed expression to map a string onto a valid variable name.
  14461. as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
  14462. exec 6>&1
  14463. ## ----------------------------------- ##
  14464. ## Main body of $CONFIG_STATUS script. ##
  14465. ## ----------------------------------- ##
  14466. _ASEOF
  14467. test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
  14468. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  14469. # Save the log message, to keep $0 and so on meaningful, and to
  14470. # report actual input values of CONFIG_FILES etc. instead of their
  14471. # values after options handling.
  14472. ac_log="
  14473. This file was extended by neon $as_me 0.30.2, which was
  14474. generated by GNU Autoconf 2.69. Invocation command line was
  14475. CONFIG_FILES = $CONFIG_FILES
  14476. CONFIG_HEADERS = $CONFIG_HEADERS
  14477. CONFIG_LINKS = $CONFIG_LINKS
  14478. CONFIG_COMMANDS = $CONFIG_COMMANDS
  14479. $ $0 $@
  14480. on `(hostname || uname -n) 2>/dev/null | sed 1q`
  14481. "
  14482. _ACEOF
  14483. case $ac_config_files in *"
  14484. "*) set x $ac_config_files; shift; ac_config_files=$*;;
  14485. esac
  14486. case $ac_config_headers in *"
  14487. "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
  14488. esac
  14489. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  14490. # Files that config.status was made for.
  14491. config_files="$ac_config_files"
  14492. config_headers="$ac_config_headers"
  14493. config_commands="$ac_config_commands"
  14494. _ACEOF
  14495. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  14496. ac_cs_usage="\
  14497. \`$as_me' instantiates files and other configuration actions
  14498. from templates according to the current configuration. Unless the files
  14499. and actions are specified as TAGs, all are instantiated by default.
  14500. Usage: $0 [OPTION]... [TAG]...
  14501. -h, --help print this help, then exit
  14502. -V, --version print version number and configuration settings, then exit
  14503. --config print configuration, then exit
  14504. -q, --quiet, --silent
  14505. do not print progress messages
  14506. -d, --debug don't remove temporary files
  14507. --recheck update $as_me by reconfiguring in the same conditions
  14508. --file=FILE[:TEMPLATE]
  14509. instantiate the configuration file FILE
  14510. --header=FILE[:TEMPLATE]
  14511. instantiate the configuration header FILE
  14512. Configuration files:
  14513. $config_files
  14514. Configuration headers:
  14515. $config_headers
  14516. Configuration commands:
  14517. $config_commands
  14518. Report bugs to <[email protected]>."
  14519. _ACEOF
  14520. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  14521. ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
  14522. ac_cs_version="\\
  14523. neon config.status 0.30.2
  14524. configured by $0, generated by GNU Autoconf 2.69,
  14525. with options \\"\$ac_cs_config\\"
  14526. Copyright (C) 2012 Free Software Foundation, Inc.
  14527. This config.status script is free software; the Free Software Foundation
  14528. gives unlimited permission to copy, distribute and modify it."
  14529. ac_pwd='$ac_pwd'
  14530. srcdir='$srcdir'
  14531. INSTALL='$INSTALL'
  14532. AWK='$AWK'
  14533. test -n "\$AWK" || AWK=awk
  14534. _ACEOF
  14535. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  14536. # The default lists apply if the user does not specify any file.
  14537. ac_need_defaults=:
  14538. while test $# != 0
  14539. do
  14540. case $1 in
  14541. --*=?*)
  14542. ac_option=`expr "X$1" : 'X\([^=]*\)='`
  14543. ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
  14544. ac_shift=:
  14545. ;;
  14546. --*=)
  14547. ac_option=`expr "X$1" : 'X\([^=]*\)='`
  14548. ac_optarg=
  14549. ac_shift=:
  14550. ;;
  14551. *)
  14552. ac_option=$1
  14553. ac_optarg=$2
  14554. ac_shift=shift
  14555. ;;
  14556. esac
  14557. case $ac_option in
  14558. # Handling of the options.
  14559. -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
  14560. ac_cs_recheck=: ;;
  14561. --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
  14562. $as_echo "$ac_cs_version"; exit ;;
  14563. --config | --confi | --conf | --con | --co | --c )
  14564. $as_echo "$ac_cs_config"; exit ;;
  14565. --debug | --debu | --deb | --de | --d | -d )
  14566. debug=: ;;
  14567. --file | --fil | --fi | --f )
  14568. $ac_shift
  14569. case $ac_optarg in
  14570. *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
  14571. '') as_fn_error $? "missing file argument" ;;
  14572. esac
  14573. as_fn_append CONFIG_FILES " '$ac_optarg'"
  14574. ac_need_defaults=false;;
  14575. --header | --heade | --head | --hea )
  14576. $ac_shift
  14577. case $ac_optarg in
  14578. *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
  14579. esac
  14580. as_fn_append CONFIG_HEADERS " '$ac_optarg'"
  14581. ac_need_defaults=false;;
  14582. --he | --h)
  14583. # Conflict between --help and --header
  14584. as_fn_error $? "ambiguous option: \`$1'
  14585. Try \`$0 --help' for more information.";;
  14586. --help | --hel | -h )
  14587. $as_echo "$ac_cs_usage"; exit ;;
  14588. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  14589. | -silent | --silent | --silen | --sile | --sil | --si | --s)
  14590. ac_cs_silent=: ;;
  14591. # This is an error.
  14592. -*) as_fn_error $? "unrecognized option: \`$1'
  14593. Try \`$0 --help' for more information." ;;
  14594. *) as_fn_append ac_config_targets " $1"
  14595. ac_need_defaults=false ;;
  14596. esac
  14597. shift
  14598. done
  14599. ac_configure_extra_args=
  14600. if $ac_cs_silent; then
  14601. exec 6>/dev/null
  14602. ac_configure_extra_args="$ac_configure_extra_args --silent"
  14603. fi
  14604. _ACEOF
  14605. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  14606. if \$ac_cs_recheck; then
  14607. set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
  14608. shift
  14609. \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
  14610. CONFIG_SHELL='$SHELL'
  14611. export CONFIG_SHELL
  14612. exec "\$@"
  14613. fi
  14614. _ACEOF
  14615. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  14616. exec 5>>config.log
  14617. {
  14618. echo
  14619. sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
  14620. ## Running $as_me. ##
  14621. _ASBOX
  14622. $as_echo "$ac_log"
  14623. } >&5
  14624. _ACEOF
  14625. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  14626. #
  14627. # INIT-COMMANDS
  14628. #
  14629. # The HP-UX ksh and POSIX shell print the target directory to stdout
  14630. # if CDPATH is set.
  14631. (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
  14632. sed_quote_subst='$sed_quote_subst'
  14633. double_quote_subst='$double_quote_subst'
  14634. delay_variable_subst='$delay_variable_subst'
  14635. enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
  14636. macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
  14637. macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
  14638. enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
  14639. pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
  14640. enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
  14641. shared_archive_member_spec='`$ECHO "$shared_archive_member_spec" | $SED "$delay_single_quote_subst"`'
  14642. SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
  14643. ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
  14644. PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
  14645. host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
  14646. host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
  14647. host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
  14648. build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
  14649. build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
  14650. build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
  14651. SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
  14652. Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
  14653. GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
  14654. EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
  14655. FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
  14656. LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
  14657. NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
  14658. LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
  14659. max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
  14660. ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
  14661. exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
  14662. lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
  14663. lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
  14664. lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
  14665. lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
  14666. lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
  14667. reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
  14668. reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
  14669. OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
  14670. deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
  14671. file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
  14672. file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
  14673. want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
  14674. DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
  14675. sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
  14676. AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
  14677. AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
  14678. archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
  14679. STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
  14680. RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
  14681. old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
  14682. old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
  14683. old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
  14684. lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
  14685. CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
  14686. CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
  14687. compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
  14688. GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
  14689. lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
  14690. lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
  14691. lt_cv_sys_global_symbol_to_import='`$ECHO "$lt_cv_sys_global_symbol_to_import" | $SED "$delay_single_quote_subst"`'
  14692. lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
  14693. 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"`'
  14694. lt_cv_nm_interface='`$ECHO "$lt_cv_nm_interface" | $SED "$delay_single_quote_subst"`'
  14695. nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
  14696. lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
  14697. lt_cv_truncate_bin='`$ECHO "$lt_cv_truncate_bin" | $SED "$delay_single_quote_subst"`'
  14698. objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
  14699. MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
  14700. lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
  14701. lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
  14702. lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
  14703. lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
  14704. lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
  14705. need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
  14706. MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
  14707. DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
  14708. NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
  14709. LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
  14710. OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
  14711. OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
  14712. libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
  14713. shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
  14714. extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
  14715. archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
  14716. enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
  14717. export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
  14718. whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
  14719. compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
  14720. old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
  14721. old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
  14722. archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
  14723. archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
  14724. module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
  14725. module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
  14726. with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
  14727. allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
  14728. no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
  14729. hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
  14730. hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
  14731. hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
  14732. hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
  14733. hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
  14734. hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
  14735. hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
  14736. inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
  14737. link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
  14738. always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
  14739. export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
  14740. exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
  14741. include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
  14742. prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
  14743. postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
  14744. file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
  14745. variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
  14746. need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
  14747. need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
  14748. version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
  14749. runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
  14750. shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
  14751. shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
  14752. libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
  14753. library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
  14754. soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
  14755. install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
  14756. postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
  14757. postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
  14758. finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
  14759. finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
  14760. hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
  14761. sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
  14762. configure_time_dlsearch_path='`$ECHO "$configure_time_dlsearch_path" | $SED "$delay_single_quote_subst"`'
  14763. configure_time_lt_sys_library_path='`$ECHO "$configure_time_lt_sys_library_path" | $SED "$delay_single_quote_subst"`'
  14764. hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
  14765. enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
  14766. enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
  14767. enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
  14768. old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
  14769. striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
  14770. LTCC='$LTCC'
  14771. LTCFLAGS='$LTCFLAGS'
  14772. compiler='$compiler_DEFAULT'
  14773. # A function that is used when there is no print builtin or printf.
  14774. func_fallback_echo ()
  14775. {
  14776. eval 'cat <<_LTECHO_EOF
  14777. \$1
  14778. _LTECHO_EOF'
  14779. }
  14780. # Quote evaled strings.
  14781. for var in SHELL \
  14782. ECHO \
  14783. PATH_SEPARATOR \
  14784. SED \
  14785. GREP \
  14786. EGREP \
  14787. FGREP \
  14788. LD \
  14789. NM \
  14790. LN_S \
  14791. lt_SP2NL \
  14792. lt_NL2SP \
  14793. reload_flag \
  14794. OBJDUMP \
  14795. deplibs_check_method \
  14796. file_magic_cmd \
  14797. file_magic_glob \
  14798. want_nocaseglob \
  14799. DLLTOOL \
  14800. sharedlib_from_linklib_cmd \
  14801. AR \
  14802. AR_FLAGS \
  14803. archiver_list_spec \
  14804. STRIP \
  14805. RANLIB \
  14806. CC \
  14807. CFLAGS \
  14808. compiler \
  14809. lt_cv_sys_global_symbol_pipe \
  14810. lt_cv_sys_global_symbol_to_cdecl \
  14811. lt_cv_sys_global_symbol_to_import \
  14812. lt_cv_sys_global_symbol_to_c_name_address \
  14813. lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
  14814. lt_cv_nm_interface \
  14815. nm_file_list_spec \
  14816. lt_cv_truncate_bin \
  14817. lt_prog_compiler_no_builtin_flag \
  14818. lt_prog_compiler_pic \
  14819. lt_prog_compiler_wl \
  14820. lt_prog_compiler_static \
  14821. lt_cv_prog_compiler_c_o \
  14822. need_locks \
  14823. MANIFEST_TOOL \
  14824. DSYMUTIL \
  14825. NMEDIT \
  14826. LIPO \
  14827. OTOOL \
  14828. OTOOL64 \
  14829. shrext_cmds \
  14830. export_dynamic_flag_spec \
  14831. whole_archive_flag_spec \
  14832. compiler_needs_object \
  14833. with_gnu_ld \
  14834. allow_undefined_flag \
  14835. no_undefined_flag \
  14836. hardcode_libdir_flag_spec \
  14837. hardcode_libdir_separator \
  14838. exclude_expsyms \
  14839. include_expsyms \
  14840. file_list_spec \
  14841. variables_saved_for_relink \
  14842. libname_spec \
  14843. library_names_spec \
  14844. soname_spec \
  14845. install_override_mode \
  14846. finish_eval \
  14847. old_striplib \
  14848. striplib; do
  14849. case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
  14850. *[\\\\\\\`\\"\\\$]*)
  14851. eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
  14852. ;;
  14853. *)
  14854. eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
  14855. ;;
  14856. esac
  14857. done
  14858. # Double-quote double-evaled strings.
  14859. for var in reload_cmds \
  14860. old_postinstall_cmds \
  14861. old_postuninstall_cmds \
  14862. old_archive_cmds \
  14863. extract_expsyms_cmds \
  14864. old_archive_from_new_cmds \
  14865. old_archive_from_expsyms_cmds \
  14866. archive_cmds \
  14867. archive_expsym_cmds \
  14868. module_cmds \
  14869. module_expsym_cmds \
  14870. export_symbols_cmds \
  14871. prelink_cmds \
  14872. postlink_cmds \
  14873. postinstall_cmds \
  14874. postuninstall_cmds \
  14875. finish_cmds \
  14876. sys_lib_search_path_spec \
  14877. configure_time_dlsearch_path \
  14878. configure_time_lt_sys_library_path; do
  14879. case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
  14880. *[\\\\\\\`\\"\\\$]*)
  14881. eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
  14882. ;;
  14883. *)
  14884. eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
  14885. ;;
  14886. esac
  14887. done
  14888. ac_aux_dir='$ac_aux_dir'
  14889. # See if we are running on zsh, and set the options that allow our
  14890. # commands through without removal of \ escapes INIT.
  14891. if test -n "\${ZSH_VERSION+set}"; then
  14892. setopt NO_GLOB_SUBST
  14893. fi
  14894. PACKAGE='$PACKAGE'
  14895. VERSION='$VERSION'
  14896. RM='$RM'
  14897. ofile='$ofile'
  14898. _ACEOF
  14899. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  14900. # Handling of arguments.
  14901. for ac_config_target in $ac_config_targets
  14902. do
  14903. case $ac_config_target in
  14904. "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
  14905. "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
  14906. "neon-config") CONFIG_FILES="$CONFIG_FILES neon-config" ;;
  14907. "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
  14908. "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
  14909. "test/Makefile") CONFIG_FILES="$CONFIG_FILES test/Makefile" ;;
  14910. "neon.pc") CONFIG_FILES="$CONFIG_FILES neon.pc" ;;
  14911. "test/makekeys") CONFIG_FILES="$CONFIG_FILES test/makekeys:test/makekeys.sh" ;;
  14912. *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
  14913. esac
  14914. done
  14915. # If the user did not use the arguments to specify the items to instantiate,
  14916. # then the envvar interface is used. Set only those that are not.
  14917. # We use the long form for the default assignment because of an extremely
  14918. # bizarre bug on SunOS 4.1.3.
  14919. if $ac_need_defaults; then
  14920. test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
  14921. test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
  14922. test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
  14923. fi
  14924. # Have a temporary directory for convenience. Make it in the build tree
  14925. # simply because there is no reason against having it here, and in addition,
  14926. # creating and moving files from /tmp can sometimes cause problems.
  14927. # Hook for its removal unless debugging.
  14928. # Note that there is a small window in which the directory will not be cleaned:
  14929. # after its creation but before its name has been assigned to `$tmp'.
  14930. $debug ||
  14931. {
  14932. tmp= ac_tmp=
  14933. trap 'exit_status=$?
  14934. : "${ac_tmp:=$tmp}"
  14935. { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
  14936. ' 0
  14937. trap 'as_fn_exit 1' 1 2 13 15
  14938. }
  14939. # Create a (secure) tmp directory for tmp files.
  14940. {
  14941. tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
  14942. test -d "$tmp"
  14943. } ||
  14944. {
  14945. tmp=./conf$$-$RANDOM
  14946. (umask 077 && mkdir "$tmp")
  14947. } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
  14948. ac_tmp=$tmp
  14949. # Set up the scripts for CONFIG_FILES section.
  14950. # No need to generate them if there are no CONFIG_FILES.
  14951. # This happens for instance with `./config.status config.h'.
  14952. if test -n "$CONFIG_FILES"; then
  14953. ac_cr=`echo X | tr X '\015'`
  14954. # On cygwin, bash can eat \r inside `` if the user requested igncr.
  14955. # But we know of no other shell where ac_cr would be empty at this
  14956. # point, so we can use a bashism as a fallback.
  14957. if test "x$ac_cr" = x; then
  14958. eval ac_cr=\$\'\\r\'
  14959. fi
  14960. ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
  14961. if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
  14962. ac_cs_awk_cr='\\r'
  14963. else
  14964. ac_cs_awk_cr=$ac_cr
  14965. fi
  14966. echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
  14967. _ACEOF
  14968. {
  14969. echo "cat >conf$$subs.awk <<_ACEOF" &&
  14970. echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
  14971. echo "_ACEOF"
  14972. } >conf$$subs.sh ||
  14973. as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
  14974. ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
  14975. ac_delim='%!_!# '
  14976. for ac_last_try in false false false false false :; do
  14977. . ./conf$$subs.sh ||
  14978. as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
  14979. ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
  14980. if test $ac_delim_n = $ac_delim_num; then
  14981. break
  14982. elif $ac_last_try; then
  14983. as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
  14984. else
  14985. ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
  14986. fi
  14987. done
  14988. rm -f conf$$subs.sh
  14989. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  14990. cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
  14991. _ACEOF
  14992. sed -n '
  14993. h
  14994. s/^/S["/; s/!.*/"]=/
  14995. p
  14996. g
  14997. s/^[^!]*!//
  14998. :repl
  14999. t repl
  15000. s/'"$ac_delim"'$//
  15001. t delim
  15002. :nl
  15003. h
  15004. s/\(.\{148\}\)..*/\1/
  15005. t more1
  15006. s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
  15007. p
  15008. n
  15009. b repl
  15010. :more1
  15011. s/["\\]/\\&/g; s/^/"/; s/$/"\\/
  15012. p
  15013. g
  15014. s/.\{148\}//
  15015. t nl
  15016. :delim
  15017. h
  15018. s/\(.\{148\}\)..*/\1/
  15019. t more2
  15020. s/["\\]/\\&/g; s/^/"/; s/$/"/
  15021. p
  15022. b
  15023. :more2
  15024. s/["\\]/\\&/g; s/^/"/; s/$/"\\/
  15025. p
  15026. g
  15027. s/.\{148\}//
  15028. t delim
  15029. ' <conf$$subs.awk | sed '
  15030. /^[^""]/{
  15031. N
  15032. s/\n//
  15033. }
  15034. ' >>$CONFIG_STATUS || ac_write_fail=1
  15035. rm -f conf$$subs.awk
  15036. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  15037. _ACAWK
  15038. cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
  15039. for (key in S) S_is_set[key] = 1
  15040. FS = ""
  15041. }
  15042. {
  15043. line = $ 0
  15044. nfields = split(line, field, "@")
  15045. substed = 0
  15046. len = length(field[1])
  15047. for (i = 2; i < nfields; i++) {
  15048. key = field[i]
  15049. keylen = length(key)
  15050. if (S_is_set[key]) {
  15051. value = S[key]
  15052. line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
  15053. len += length(value) + length(field[++i])
  15054. substed = 1
  15055. } else
  15056. len += 1 + keylen
  15057. }
  15058. print line
  15059. }
  15060. _ACAWK
  15061. _ACEOF
  15062. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  15063. if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
  15064. sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
  15065. else
  15066. cat
  15067. fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
  15068. || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
  15069. _ACEOF
  15070. # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
  15071. # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
  15072. # trailing colons and then remove the whole line if VPATH becomes empty
  15073. # (actually we leave an empty line to preserve line numbers).
  15074. if test "x$srcdir" = x.; then
  15075. ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
  15076. h
  15077. s///
  15078. s/^/:/
  15079. s/[ ]*$/:/
  15080. s/:\$(srcdir):/:/g
  15081. s/:\${srcdir}:/:/g
  15082. s/:@srcdir@:/:/g
  15083. s/^:*//
  15084. s/:*$//
  15085. x
  15086. s/\(=[ ]*\).*/\1/
  15087. G
  15088. s/\n//
  15089. s/^[^=]*=[ ]*$//
  15090. }'
  15091. fi
  15092. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  15093. fi # test -n "$CONFIG_FILES"
  15094. # Set up the scripts for CONFIG_HEADERS section.
  15095. # No need to generate them if there are no CONFIG_HEADERS.
  15096. # This happens for instance with `./config.status Makefile'.
  15097. if test -n "$CONFIG_HEADERS"; then
  15098. cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
  15099. BEGIN {
  15100. _ACEOF
  15101. # Transform confdefs.h into an awk script `defines.awk', embedded as
  15102. # here-document in config.status, that substitutes the proper values into
  15103. # config.h.in to produce config.h.
  15104. # Create a delimiter string that does not exist in confdefs.h, to ease
  15105. # handling of long lines.
  15106. ac_delim='%!_!# '
  15107. for ac_last_try in false false :; do
  15108. ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
  15109. if test -z "$ac_tt"; then
  15110. break
  15111. elif $ac_last_try; then
  15112. as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
  15113. else
  15114. ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
  15115. fi
  15116. done
  15117. # For the awk script, D is an array of macro values keyed by name,
  15118. # likewise P contains macro parameters if any. Preserve backslash
  15119. # newline sequences.
  15120. ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
  15121. sed -n '
  15122. s/.\{148\}/&'"$ac_delim"'/g
  15123. t rset
  15124. :rset
  15125. s/^[ ]*#[ ]*define[ ][ ]*/ /
  15126. t def
  15127. d
  15128. :def
  15129. s/\\$//
  15130. t bsnl
  15131. s/["\\]/\\&/g
  15132. s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
  15133. D["\1"]=" \3"/p
  15134. s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
  15135. d
  15136. :bsnl
  15137. s/["\\]/\\&/g
  15138. s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
  15139. D["\1"]=" \3\\\\\\n"\\/p
  15140. t cont
  15141. s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
  15142. t cont
  15143. d
  15144. :cont
  15145. n
  15146. s/.\{148\}/&'"$ac_delim"'/g
  15147. t clear
  15148. :clear
  15149. s/\\$//
  15150. t bsnlc
  15151. s/["\\]/\\&/g; s/^/"/; s/$/"/p
  15152. d
  15153. :bsnlc
  15154. s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
  15155. b cont
  15156. ' <confdefs.h | sed '
  15157. s/'"$ac_delim"'/"\\\
  15158. "/g' >>$CONFIG_STATUS || ac_write_fail=1
  15159. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  15160. for (key in D) D_is_set[key] = 1
  15161. FS = ""
  15162. }
  15163. /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
  15164. line = \$ 0
  15165. split(line, arg, " ")
  15166. if (arg[1] == "#") {
  15167. defundef = arg[2]
  15168. mac1 = arg[3]
  15169. } else {
  15170. defundef = substr(arg[1], 2)
  15171. mac1 = arg[2]
  15172. }
  15173. split(mac1, mac2, "(") #)
  15174. macro = mac2[1]
  15175. prefix = substr(line, 1, index(line, defundef) - 1)
  15176. if (D_is_set[macro]) {
  15177. # Preserve the white space surrounding the "#".
  15178. print prefix "define", macro P[macro] D[macro]
  15179. next
  15180. } else {
  15181. # Replace #undef with comments. This is necessary, for example,
  15182. # in the case of _POSIX_SOURCE, which is predefined and required
  15183. # on some systems where configure will not decide to define it.
  15184. if (defundef == "undef") {
  15185. print "/*", prefix defundef, macro, "*/"
  15186. next
  15187. }
  15188. }
  15189. }
  15190. { print }
  15191. _ACAWK
  15192. _ACEOF
  15193. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  15194. as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
  15195. fi # test -n "$CONFIG_HEADERS"
  15196. eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
  15197. shift
  15198. for ac_tag
  15199. do
  15200. case $ac_tag in
  15201. :[FHLC]) ac_mode=$ac_tag; continue;;
  15202. esac
  15203. case $ac_mode$ac_tag in
  15204. :[FHL]*:*);;
  15205. :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
  15206. :[FH]-) ac_tag=-:-;;
  15207. :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
  15208. esac
  15209. ac_save_IFS=$IFS
  15210. IFS=:
  15211. set x $ac_tag
  15212. IFS=$ac_save_IFS
  15213. shift
  15214. ac_file=$1
  15215. shift
  15216. case $ac_mode in
  15217. :L) ac_source=$1;;
  15218. :[FH])
  15219. ac_file_inputs=
  15220. for ac_f
  15221. do
  15222. case $ac_f in
  15223. -) ac_f="$ac_tmp/stdin";;
  15224. *) # Look for the file first in the build tree, then in the source tree
  15225. # (if the path is not absolute). The absolute path cannot be DOS-style,
  15226. # because $ac_f cannot contain `:'.
  15227. test -f "$ac_f" ||
  15228. case $ac_f in
  15229. [\\/$]*) false;;
  15230. *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
  15231. esac ||
  15232. as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
  15233. esac
  15234. case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
  15235. as_fn_append ac_file_inputs " '$ac_f'"
  15236. done
  15237. # Let's still pretend it is `configure' which instantiates (i.e., don't
  15238. # use $as_me), people would be surprised to read:
  15239. # /* config.h. Generated by config.status. */
  15240. configure_input='Generated from '`
  15241. $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
  15242. `' by configure.'
  15243. if test x"$ac_file" != x-; then
  15244. configure_input="$ac_file. $configure_input"
  15245. { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
  15246. $as_echo "$as_me: creating $ac_file" >&6;}
  15247. fi
  15248. # Neutralize special characters interpreted by sed in replacement strings.
  15249. case $configure_input in #(
  15250. *\&* | *\|* | *\\* )
  15251. ac_sed_conf_input=`$as_echo "$configure_input" |
  15252. sed 's/[\\\\&|]/\\\\&/g'`;; #(
  15253. *) ac_sed_conf_input=$configure_input;;
  15254. esac
  15255. case $ac_tag in
  15256. *:-:* | *:-) cat >"$ac_tmp/stdin" \
  15257. || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
  15258. esac
  15259. ;;
  15260. esac
  15261. ac_dir=`$as_dirname -- "$ac_file" ||
  15262. $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  15263. X"$ac_file" : 'X\(//\)[^/]' \| \
  15264. X"$ac_file" : 'X\(//\)$' \| \
  15265. X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
  15266. $as_echo X"$ac_file" |
  15267. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  15268. s//\1/
  15269. q
  15270. }
  15271. /^X\(\/\/\)[^/].*/{
  15272. s//\1/
  15273. q
  15274. }
  15275. /^X\(\/\/\)$/{
  15276. s//\1/
  15277. q
  15278. }
  15279. /^X\(\/\).*/{
  15280. s//\1/
  15281. q
  15282. }
  15283. s/.*/./; q'`
  15284. as_dir="$ac_dir"; as_fn_mkdir_p
  15285. ac_builddir=.
  15286. case "$ac_dir" in
  15287. .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
  15288. *)
  15289. ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
  15290. # A ".." for each directory in $ac_dir_suffix.
  15291. ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
  15292. case $ac_top_builddir_sub in
  15293. "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
  15294. *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
  15295. esac ;;
  15296. esac
  15297. ac_abs_top_builddir=$ac_pwd
  15298. ac_abs_builddir=$ac_pwd$ac_dir_suffix
  15299. # for backward compatibility:
  15300. ac_top_builddir=$ac_top_build_prefix
  15301. case $srcdir in
  15302. .) # We are building in place.
  15303. ac_srcdir=.
  15304. ac_top_srcdir=$ac_top_builddir_sub
  15305. ac_abs_top_srcdir=$ac_pwd ;;
  15306. [\\/]* | ?:[\\/]* ) # Absolute name.
  15307. ac_srcdir=$srcdir$ac_dir_suffix;
  15308. ac_top_srcdir=$srcdir
  15309. ac_abs_top_srcdir=$srcdir ;;
  15310. *) # Relative name.
  15311. ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
  15312. ac_top_srcdir=$ac_top_build_prefix$srcdir
  15313. ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
  15314. esac
  15315. ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
  15316. case $ac_mode in
  15317. :F)
  15318. #
  15319. # CONFIG_FILE
  15320. #
  15321. case $INSTALL in
  15322. [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
  15323. *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
  15324. esac
  15325. _ACEOF
  15326. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  15327. # If the template does not know about datarootdir, expand it.
  15328. # FIXME: This hack should be removed a few years after 2.60.
  15329. ac_datarootdir_hack=; ac_datarootdir_seen=
  15330. ac_sed_dataroot='
  15331. /datarootdir/ {
  15332. p
  15333. q
  15334. }
  15335. /@datadir@/p
  15336. /@docdir@/p
  15337. /@infodir@/p
  15338. /@localedir@/p
  15339. /@mandir@/p'
  15340. case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
  15341. *datarootdir*) ac_datarootdir_seen=yes;;
  15342. *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
  15343. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
  15344. $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
  15345. _ACEOF
  15346. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  15347. ac_datarootdir_hack='
  15348. s&@datadir@&$datadir&g
  15349. s&@docdir@&$docdir&g
  15350. s&@infodir@&$infodir&g
  15351. s&@localedir@&$localedir&g
  15352. s&@mandir@&$mandir&g
  15353. s&\\\${datarootdir}&$datarootdir&g' ;;
  15354. esac
  15355. _ACEOF
  15356. # Neutralize VPATH when `$srcdir' = `.'.
  15357. # Shell code in configure.ac might set extrasub.
  15358. # FIXME: do we really want to maintain this feature?
  15359. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  15360. ac_sed_extra="$ac_vpsub
  15361. $extrasub
  15362. _ACEOF
  15363. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  15364. :t
  15365. /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
  15366. s|@configure_input@|$ac_sed_conf_input|;t t
  15367. s&@top_builddir@&$ac_top_builddir_sub&;t t
  15368. s&@top_build_prefix@&$ac_top_build_prefix&;t t
  15369. s&@srcdir@&$ac_srcdir&;t t
  15370. s&@abs_srcdir@&$ac_abs_srcdir&;t t
  15371. s&@top_srcdir@&$ac_top_srcdir&;t t
  15372. s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
  15373. s&@builddir@&$ac_builddir&;t t
  15374. s&@abs_builddir@&$ac_abs_builddir&;t t
  15375. s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
  15376. s&@INSTALL@&$ac_INSTALL&;t t
  15377. $ac_datarootdir_hack
  15378. "
  15379. eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
  15380. >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
  15381. test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
  15382. { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
  15383. { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
  15384. "$ac_tmp/out"`; test -z "$ac_out"; } &&
  15385. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
  15386. which seems to be undefined. Please make sure it is defined" >&5
  15387. $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
  15388. which seems to be undefined. Please make sure it is defined" >&2;}
  15389. rm -f "$ac_tmp/stdin"
  15390. case $ac_file in
  15391. -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
  15392. *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
  15393. esac \
  15394. || as_fn_error $? "could not create $ac_file" "$LINENO" 5
  15395. ;;
  15396. :H)
  15397. #
  15398. # CONFIG_HEADER
  15399. #
  15400. if test x"$ac_file" != x-; then
  15401. {
  15402. $as_echo "/* $configure_input */" \
  15403. && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
  15404. } >"$ac_tmp/config.h" \
  15405. || as_fn_error $? "could not create $ac_file" "$LINENO" 5
  15406. if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
  15407. { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
  15408. $as_echo "$as_me: $ac_file is unchanged" >&6;}
  15409. else
  15410. rm -f "$ac_file"
  15411. mv "$ac_tmp/config.h" "$ac_file" \
  15412. || as_fn_error $? "could not create $ac_file" "$LINENO" 5
  15413. fi
  15414. else
  15415. $as_echo "/* $configure_input */" \
  15416. && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
  15417. || as_fn_error $? "could not create -" "$LINENO" 5
  15418. fi
  15419. ;;
  15420. :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
  15421. $as_echo "$as_me: executing $ac_file commands" >&6;}
  15422. ;;
  15423. esac
  15424. case $ac_file$ac_mode in
  15425. "libtool":C)
  15426. # See if we are running on zsh, and set the options that allow our
  15427. # commands through without removal of \ escapes.
  15428. if test -n "${ZSH_VERSION+set}"; then
  15429. setopt NO_GLOB_SUBST
  15430. fi
  15431. cfgfile=${ofile}T
  15432. trap "$RM \"$cfgfile\"; exit 1" 1 2 15
  15433. $RM "$cfgfile"
  15434. cat <<_LT_EOF >> "$cfgfile"
  15435. #! $SHELL
  15436. # Generated automatically by $as_me ($PACKAGE) $VERSION
  15437. # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
  15438. # NOTE: Changes made to this file will be lost: look at ltmain.sh.
  15439. # Provide generalized library-building support services.
  15440. # Written by Gordon Matzigkeit, 1996
  15441. # Copyright (C) 2014 Free Software Foundation, Inc.
  15442. # This is free software; see the source for copying conditions. There is NO
  15443. # warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
  15444. # GNU Libtool is free software; you can redistribute it and/or modify
  15445. # it under the terms of the GNU General Public License as published by
  15446. # the Free Software Foundation; either version 2 of of the License, or
  15447. # (at your option) any later version.
  15448. #
  15449. # As a special exception to the GNU General Public License, if you
  15450. # distribute this file as part of a program or library that is built
  15451. # using GNU Libtool, you may include this file under the same
  15452. # distribution terms that you use for the rest of that program.
  15453. #
  15454. # GNU Libtool is distributed in the hope that it will be useful, but
  15455. # WITHOUT ANY WARRANTY; without even the implied warranty of
  15456. # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  15457. # GNU General Public License for more details.
  15458. #
  15459. # You should have received a copy of the GNU General Public License
  15460. # along with this program. If not, see <http://www.gnu.org/licenses/>.
  15461. # The names of the tagged configurations supported by this script.
  15462. available_tags=''
  15463. # Configured defaults for sys_lib_dlsearch_path munging.
  15464. : \${LT_SYS_LIBRARY_PATH="$configure_time_lt_sys_library_path"}
  15465. # ### BEGIN LIBTOOL CONFIG
  15466. # Whether or not to build shared libraries.
  15467. build_libtool_libs=$enable_shared
  15468. # Which release of libtool.m4 was used?
  15469. macro_version=$macro_version
  15470. macro_revision=$macro_revision
  15471. # Whether or not to build static libraries.
  15472. build_old_libs=$enable_static
  15473. # What type of objects to build.
  15474. pic_mode=$pic_mode
  15475. # Whether or not to optimize for fast installation.
  15476. fast_install=$enable_fast_install
  15477. # Shared archive member basename,for filename based shared library versioning on AIX.
  15478. shared_archive_member_spec=$shared_archive_member_spec
  15479. # Shell to use when invoking shell scripts.
  15480. SHELL=$lt_SHELL
  15481. # An echo program that protects backslashes.
  15482. ECHO=$lt_ECHO
  15483. # The PATH separator for the build system.
  15484. PATH_SEPARATOR=$lt_PATH_SEPARATOR
  15485. # The host system.
  15486. host_alias=$host_alias
  15487. host=$host
  15488. host_os=$host_os
  15489. # The build system.
  15490. build_alias=$build_alias
  15491. build=$build
  15492. build_os=$build_os
  15493. # A sed program that does not truncate output.
  15494. SED=$lt_SED
  15495. # Sed that helps us avoid accidentally triggering echo(1) options like -n.
  15496. Xsed="\$SED -e 1s/^X//"
  15497. # A grep program that handles long lines.
  15498. GREP=$lt_GREP
  15499. # An ERE matcher.
  15500. EGREP=$lt_EGREP
  15501. # A literal string matcher.
  15502. FGREP=$lt_FGREP
  15503. # A BSD- or MS-compatible name lister.
  15504. NM=$lt_NM
  15505. # Whether we need soft or hard links.
  15506. LN_S=$lt_LN_S
  15507. # What is the maximum length of a command?
  15508. max_cmd_len=$max_cmd_len
  15509. # Object file suffix (normally "o").
  15510. objext=$ac_objext
  15511. # Executable file suffix (normally "").
  15512. exeext=$exeext
  15513. # whether the shell understands "unset".
  15514. lt_unset=$lt_unset
  15515. # turn spaces into newlines.
  15516. SP2NL=$lt_lt_SP2NL
  15517. # turn newlines into spaces.
  15518. NL2SP=$lt_lt_NL2SP
  15519. # convert \$build file names to \$host format.
  15520. to_host_file_cmd=$lt_cv_to_host_file_cmd
  15521. # convert \$build files to toolchain format.
  15522. to_tool_file_cmd=$lt_cv_to_tool_file_cmd
  15523. # An object symbol dumper.
  15524. OBJDUMP=$lt_OBJDUMP
  15525. # Method to check whether dependent libraries are shared objects.
  15526. deplibs_check_method=$lt_deplibs_check_method
  15527. # Command to use when deplibs_check_method = "file_magic".
  15528. file_magic_cmd=$lt_file_magic_cmd
  15529. # How to find potential files when deplibs_check_method = "file_magic".
  15530. file_magic_glob=$lt_file_magic_glob
  15531. # Find potential files using nocaseglob when deplibs_check_method = "file_magic".
  15532. want_nocaseglob=$lt_want_nocaseglob
  15533. # DLL creation program.
  15534. DLLTOOL=$lt_DLLTOOL
  15535. # Command to associate shared and link libraries.
  15536. sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
  15537. # The archiver.
  15538. AR=$lt_AR
  15539. # Flags to create an archive.
  15540. AR_FLAGS=$lt_AR_FLAGS
  15541. # How to feed a file listing to the archiver.
  15542. archiver_list_spec=$lt_archiver_list_spec
  15543. # A symbol stripping program.
  15544. STRIP=$lt_STRIP
  15545. # Commands used to install an old-style archive.
  15546. RANLIB=$lt_RANLIB
  15547. old_postinstall_cmds=$lt_old_postinstall_cmds
  15548. old_postuninstall_cmds=$lt_old_postuninstall_cmds
  15549. # Whether to use a lock for old archive extraction.
  15550. lock_old_archive_extraction=$lock_old_archive_extraction
  15551. # A C compiler.
  15552. LTCC=$lt_CC
  15553. # LTCC compiler flags.
  15554. LTCFLAGS=$lt_CFLAGS
  15555. # Take the output of nm and produce a listing of raw symbols and C names.
  15556. global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
  15557. # Transform the output of nm in a proper C declaration.
  15558. global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
  15559. # Transform the output of nm into a list of symbols to manually relocate.
  15560. global_symbol_to_import=$lt_lt_cv_sys_global_symbol_to_import
  15561. # Transform the output of nm in a C name address pair.
  15562. global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
  15563. # Transform the output of nm in a C name address pair when lib prefix is needed.
  15564. global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
  15565. # The name lister interface.
  15566. nm_interface=$lt_lt_cv_nm_interface
  15567. # Specify filename containing input files for \$NM.
  15568. nm_file_list_spec=$lt_nm_file_list_spec
  15569. # The root where to search for dependent libraries,and where our libraries should be installed.
  15570. lt_sysroot=$lt_sysroot
  15571. # Command to truncate a binary pipe.
  15572. lt_truncate_bin=$lt_lt_cv_truncate_bin
  15573. # The name of the directory that contains temporary libtool files.
  15574. objdir=$objdir
  15575. # Used to examine libraries when file_magic_cmd begins with "file".
  15576. MAGIC_CMD=$MAGIC_CMD
  15577. # Must we lock files when doing compilation?
  15578. need_locks=$lt_need_locks
  15579. # Manifest tool.
  15580. MANIFEST_TOOL=$lt_MANIFEST_TOOL
  15581. # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
  15582. DSYMUTIL=$lt_DSYMUTIL
  15583. # Tool to change global to local symbols on Mac OS X.
  15584. NMEDIT=$lt_NMEDIT
  15585. # Tool to manipulate fat objects and archives on Mac OS X.
  15586. LIPO=$lt_LIPO
  15587. # ldd/readelf like tool for Mach-O binaries on Mac OS X.
  15588. OTOOL=$lt_OTOOL
  15589. # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
  15590. OTOOL64=$lt_OTOOL64
  15591. # Old archive suffix (normally "a").
  15592. libext=$libext
  15593. # Shared library suffix (normally ".so").
  15594. shrext_cmds=$lt_shrext_cmds
  15595. # The commands to extract the exported symbol list from a shared archive.
  15596. extract_expsyms_cmds=$lt_extract_expsyms_cmds
  15597. # Variables whose values should be saved in libtool wrapper scripts and
  15598. # restored at link time.
  15599. variables_saved_for_relink=$lt_variables_saved_for_relink
  15600. # Do we need the "lib" prefix for modules?
  15601. need_lib_prefix=$need_lib_prefix
  15602. # Do we need a version for libraries?
  15603. need_version=$need_version
  15604. # Library versioning type.
  15605. version_type=$version_type
  15606. # Shared library runtime path variable.
  15607. runpath_var=$runpath_var
  15608. # Shared library path variable.
  15609. shlibpath_var=$shlibpath_var
  15610. # Is shlibpath searched before the hard-coded library search path?
  15611. shlibpath_overrides_runpath=$shlibpath_overrides_runpath
  15612. # Format of library name prefix.
  15613. libname_spec=$lt_libname_spec
  15614. # List of archive names. First name is the real one, the rest are links.
  15615. # The last name is the one that the linker finds with -lNAME
  15616. library_names_spec=$lt_library_names_spec
  15617. # The coded name of the library, if different from the real name.
  15618. soname_spec=$lt_soname_spec
  15619. # Permission mode override for installation of shared libraries.
  15620. install_override_mode=$lt_install_override_mode
  15621. # Command to use after installation of a shared archive.
  15622. postinstall_cmds=$lt_postinstall_cmds
  15623. # Command to use after uninstallation of a shared archive.
  15624. postuninstall_cmds=$lt_postuninstall_cmds
  15625. # Commands used to finish a libtool library installation in a directory.
  15626. finish_cmds=$lt_finish_cmds
  15627. # As "finish_cmds", except a single script fragment to be evaled but
  15628. # not shown.
  15629. finish_eval=$lt_finish_eval
  15630. # Whether we should hardcode library paths into libraries.
  15631. hardcode_into_libs=$hardcode_into_libs
  15632. # Compile-time system search path for libraries.
  15633. sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
  15634. # Detected run-time system search path for libraries.
  15635. sys_lib_dlsearch_path_spec=$lt_configure_time_dlsearch_path
  15636. # Explicit LT_SYS_LIBRARY_PATH set during ./configure time.
  15637. configure_time_lt_sys_library_path=$lt_configure_time_lt_sys_library_path
  15638. # Whether dlopen is supported.
  15639. dlopen_support=$enable_dlopen
  15640. # Whether dlopen of programs is supported.
  15641. dlopen_self=$enable_dlopen_self
  15642. # Whether dlopen of statically linked programs is supported.
  15643. dlopen_self_static=$enable_dlopen_self_static
  15644. # Commands to strip libraries.
  15645. old_striplib=$lt_old_striplib
  15646. striplib=$lt_striplib
  15647. # The linker used to build libraries.
  15648. LD=$lt_LD
  15649. # How to create reloadable object files.
  15650. reload_flag=$lt_reload_flag
  15651. reload_cmds=$lt_reload_cmds
  15652. # Commands used to build an old-style archive.
  15653. old_archive_cmds=$lt_old_archive_cmds
  15654. # A language specific compiler.
  15655. CC=$lt_compiler
  15656. # Is the compiler the GNU compiler?
  15657. with_gcc=$GCC
  15658. # Compiler flag to turn off builtin functions.
  15659. no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
  15660. # Additional compiler flags for building library objects.
  15661. pic_flag=$lt_lt_prog_compiler_pic
  15662. # How to pass a linker flag through the compiler.
  15663. wl=$lt_lt_prog_compiler_wl
  15664. # Compiler flag to prevent dynamic linking.
  15665. link_static_flag=$lt_lt_prog_compiler_static
  15666. # Does compiler simultaneously support -c and -o options?
  15667. compiler_c_o=$lt_lt_cv_prog_compiler_c_o
  15668. # Whether or not to add -lc for building shared libraries.
  15669. build_libtool_need_lc=$archive_cmds_need_lc
  15670. # Whether or not to disallow shared libs when runtime libs are static.
  15671. allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
  15672. # Compiler flag to allow reflexive dlopens.
  15673. export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
  15674. # Compiler flag to generate shared objects directly from archives.
  15675. whole_archive_flag_spec=$lt_whole_archive_flag_spec
  15676. # Whether the compiler copes with passing no objects directly.
  15677. compiler_needs_object=$lt_compiler_needs_object
  15678. # Create an old-style archive from a shared archive.
  15679. old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
  15680. # Create a temporary old-style archive to link instead of a shared archive.
  15681. old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
  15682. # Commands used to build a shared archive.
  15683. archive_cmds=$lt_archive_cmds
  15684. archive_expsym_cmds=$lt_archive_expsym_cmds
  15685. # Commands used to build a loadable module if different from building
  15686. # a shared archive.
  15687. module_cmds=$lt_module_cmds
  15688. module_expsym_cmds=$lt_module_expsym_cmds
  15689. # Whether we are building with GNU ld or not.
  15690. with_gnu_ld=$lt_with_gnu_ld
  15691. # Flag that allows shared libraries with undefined symbols to be built.
  15692. allow_undefined_flag=$lt_allow_undefined_flag
  15693. # Flag that enforces no undefined symbols.
  15694. no_undefined_flag=$lt_no_undefined_flag
  15695. # Flag to hardcode \$libdir into a binary during linking.
  15696. # This must work even if \$libdir does not exist
  15697. hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
  15698. # Whether we need a single "-rpath" flag with a separated argument.
  15699. hardcode_libdir_separator=$lt_hardcode_libdir_separator
  15700. # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
  15701. # DIR into the resulting binary.
  15702. hardcode_direct=$hardcode_direct
  15703. # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
  15704. # DIR into the resulting binary and the resulting library dependency is
  15705. # "absolute",i.e impossible to change by setting \$shlibpath_var if the
  15706. # library is relocated.
  15707. hardcode_direct_absolute=$hardcode_direct_absolute
  15708. # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
  15709. # into the resulting binary.
  15710. hardcode_minus_L=$hardcode_minus_L
  15711. # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
  15712. # into the resulting binary.
  15713. hardcode_shlibpath_var=$hardcode_shlibpath_var
  15714. # Set to "yes" if building a shared library automatically hardcodes DIR
  15715. # into the library and all subsequent libraries and executables linked
  15716. # against it.
  15717. hardcode_automatic=$hardcode_automatic
  15718. # Set to yes if linker adds runtime paths of dependent libraries
  15719. # to runtime path list.
  15720. inherit_rpath=$inherit_rpath
  15721. # Whether libtool must link a program against all its dependency libraries.
  15722. link_all_deplibs=$link_all_deplibs
  15723. # Set to "yes" if exported symbols are required.
  15724. always_export_symbols=$always_export_symbols
  15725. # The commands to list exported symbols.
  15726. export_symbols_cmds=$lt_export_symbols_cmds
  15727. # Symbols that should not be listed in the preloaded symbols.
  15728. exclude_expsyms=$lt_exclude_expsyms
  15729. # Symbols that must always be exported.
  15730. include_expsyms=$lt_include_expsyms
  15731. # Commands necessary for linking programs (against libraries) with templates.
  15732. prelink_cmds=$lt_prelink_cmds
  15733. # Commands necessary for finishing linking programs.
  15734. postlink_cmds=$lt_postlink_cmds
  15735. # Specify filename containing input files.
  15736. file_list_spec=$lt_file_list_spec
  15737. # How to hardcode a shared library path into an executable.
  15738. hardcode_action=$hardcode_action
  15739. # ### END LIBTOOL CONFIG
  15740. _LT_EOF
  15741. cat <<'_LT_EOF' >> "$cfgfile"
  15742. # ### BEGIN FUNCTIONS SHARED WITH CONFIGURE
  15743. # func_munge_path_list VARIABLE PATH
  15744. # -----------------------------------
  15745. # VARIABLE is name of variable containing _space_ separated list of
  15746. # directories to be munged by the contents of PATH, which is string
  15747. # having a format:
  15748. # "DIR[:DIR]:"
  15749. # string "DIR[ DIR]" will be prepended to VARIABLE
  15750. # ":DIR[:DIR]"
  15751. # string "DIR[ DIR]" will be appended to VARIABLE
  15752. # "DIRP[:DIRP]::[DIRA:]DIRA"
  15753. # string "DIRP[ DIRP]" will be prepended to VARIABLE and string
  15754. # "DIRA[ DIRA]" will be appended to VARIABLE
  15755. # "DIR[:DIR]"
  15756. # VARIABLE will be replaced by "DIR[ DIR]"
  15757. func_munge_path_list ()
  15758. {
  15759. case x$2 in
  15760. x)
  15761. ;;
  15762. *:)
  15763. eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
  15764. ;;
  15765. x:*)
  15766. eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
  15767. ;;
  15768. *::*)
  15769. eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
  15770. eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
  15771. ;;
  15772. *)
  15773. eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
  15774. ;;
  15775. esac
  15776. }
  15777. # Calculate cc_basename. Skip known compiler wrappers and cross-prefix.
  15778. func_cc_basename ()
  15779. {
  15780. for cc_temp in $*""; do
  15781. case $cc_temp in
  15782. compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
  15783. distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
  15784. \-*) ;;
  15785. *) break;;
  15786. esac
  15787. done
  15788. func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
  15789. }
  15790. # ### END FUNCTIONS SHARED WITH CONFIGURE
  15791. _LT_EOF
  15792. case $host_os in
  15793. aix3*)
  15794. cat <<\_LT_EOF >> "$cfgfile"
  15795. # AIX sometimes has problems with the GCC collect2 program. For some
  15796. # reason, if we set the COLLECT_NAMES environment variable, the problems
  15797. # vanish in a puff of smoke.
  15798. if test set != "${COLLECT_NAMES+set}"; then
  15799. COLLECT_NAMES=
  15800. export COLLECT_NAMES
  15801. fi
  15802. _LT_EOF
  15803. ;;
  15804. esac
  15805. ltmain=$ac_aux_dir/ltmain.sh
  15806. # We use sed instead of cat because bash on DJGPP gets confused if
  15807. # if finds mixed CR/LF and LF-only lines. Since sed operates in
  15808. # text mode, it properly converts lines to CR/LF. This bash problem
  15809. # is reportedly fixed, but why not run on old versions too?
  15810. sed '$q' "$ltmain" >> "$cfgfile" \
  15811. || (rm -f "$cfgfile"; exit 1)
  15812. mv -f "$cfgfile" "$ofile" ||
  15813. (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
  15814. chmod +x "$ofile"
  15815. ;;
  15816. "neon-config":F) chmod +x neon-config ;;
  15817. "test/makekeys":F) chmod +x test/makekeys ;;
  15818. esac
  15819. done # for ac_tag
  15820. as_fn_exit 0
  15821. _ACEOF
  15822. ac_clean_files=$ac_clean_files_save
  15823. test $ac_write_fail = 0 ||
  15824. as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
  15825. # configure is writing to config.log, and then calls config.status.
  15826. # config.status does its own redirection, appending to config.log.
  15827. # Unfortunately, on DOS this fails, as config.log is still kept open
  15828. # by configure, so config.status won't be able to write to it; its
  15829. # output is simply discarded. So we exec the FD to /dev/null,
  15830. # effectively closing config.log, so it can be properly (re)opened and
  15831. # appended to by config.status. When coming back to configure, we
  15832. # need to make the FD available again.
  15833. if test "$no_create" != yes; then
  15834. ac_cs_success=:
  15835. ac_config_status_args=
  15836. test "$silent" = yes &&
  15837. ac_config_status_args="$ac_config_status_args --quiet"
  15838. exec 5>/dev/null
  15839. $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
  15840. exec 5>>config.log
  15841. # Use ||, not &&, to avoid exiting from the if with $? = 1, which
  15842. # would make configure fail if this is the last instruction.
  15843. $ac_cs_success || as_fn_exit 1
  15844. fi
  15845. if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
  15846. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
  15847. $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
  15848. fi
  15849. # for VPATH builds:
  15850. test -d test/common || mkdir test/common
  15851. { $as_echo "$as_me:${as_lineno-$LINENO}: Configured to build neon 0.30.2:
  15852. Install prefix: ${prefix}
  15853. Compiler: ${CC}
  15854. XML Parser: ${neon_xml_parser_message}
  15855. SSL library: ${ne_SSL_message}
  15856. zlib support: ${ne_ZLIB_message}
  15857. Build libraries: Shared=${enable_shared}, Static=${enable_static}
  15858. " >&5
  15859. $as_echo "$as_me: Configured to build neon 0.30.2:
  15860. Install prefix: ${prefix}
  15861. Compiler: ${CC}
  15862. XML Parser: ${neon_xml_parser_message}
  15863. SSL library: ${ne_SSL_message}
  15864. zlib support: ${ne_ZLIB_message}
  15865. Build libraries: Shared=${enable_shared}, Static=${enable_static}
  15866. " >&6;}
  15867. case $ALLOW_INSTALL in
  15868. memleak)
  15869. { $as_echo "$as_me:${as_lineno-$LINENO}: Configured with development-only flags:
  15870. WARNING: This copy of neon has been configured with memory leak checking
  15871. WARNING: enabled, which should only be used in a development build of neon.
  15872. WARNING: This neon library should not be installed for use by applications.
  15873. " >&5
  15874. $as_echo "$as_me: Configured with development-only flags:
  15875. WARNING: This copy of neon has been configured with memory leak checking
  15876. WARNING: enabled, which should only be used in a development build of neon.
  15877. WARNING: This neon library should not be installed for use by applications.
  15878. " >&6;};;
  15879. esac