configure 515 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531153215331534153515361537153815391540154115421543154415451546154715481549155015511552155315541555155615571558155915601561156215631564156515661567156815691570157115721573157415751576157715781579158015811582158315841585158615871588158915901591159215931594159515961597159815991600160116021603160416051606160716081609161016111612161316141615161616171618161916201621162216231624162516261627162816291630163116321633163416351636163716381639164016411642164316441645164616471648164916501651165216531654165516561657165816591660166116621663166416651666166716681669167016711672167316741675167616771678167916801681168216831684168516861687168816891690169116921693169416951696169716981699170017011702170317041705170617071708170917101711171217131714171517161717171817191720172117221723172417251726172717281729173017311732173317341735173617371738173917401741174217431744174517461747174817491750175117521753175417551756175717581759176017611762176317641765176617671768176917701771177217731774177517761777177817791780178117821783178417851786178717881789179017911792179317941795179617971798179918001801180218031804180518061807180818091810181118121813181418151816181718181819182018211822182318241825182618271828182918301831183218331834183518361837183818391840184118421843184418451846184718481849185018511852185318541855185618571858185918601861186218631864186518661867186818691870187118721873187418751876187718781879188018811882188318841885188618871888188918901891189218931894189518961897189818991900190119021903190419051906190719081909191019111912191319141915191619171918191919201921192219231924192519261927192819291930193119321933193419351936193719381939194019411942194319441945194619471948194919501951195219531954195519561957195819591960196119621963196419651966196719681969197019711972197319741975197619771978197919801981198219831984198519861987198819891990199119921993199419951996199719981999200020012002200320042005200620072008200920102011201220132014201520162017201820192020202120222023202420252026202720282029203020312032203320342035203620372038203920402041204220432044204520462047204820492050205120522053205420552056205720582059206020612062206320642065206620672068206920702071207220732074207520762077207820792080208120822083208420852086208720882089209020912092209320942095209620972098209921002101210221032104210521062107210821092110211121122113211421152116211721182119212021212122212321242125212621272128212921302131213221332134213521362137213821392140214121422143214421452146214721482149215021512152215321542155215621572158215921602161216221632164216521662167216821692170217121722173217421752176217721782179218021812182218321842185218621872188218921902191219221932194219521962197219821992200220122022203220422052206220722082209221022112212221322142215221622172218221922202221222222232224222522262227222822292230223122322233223422352236223722382239224022412242224322442245224622472248224922502251225222532254225522562257225822592260226122622263226422652266226722682269227022712272227322742275227622772278227922802281228222832284228522862287228822892290229122922293229422952296229722982299230023012302230323042305230623072308230923102311231223132314231523162317231823192320232123222323232423252326232723282329233023312332233323342335233623372338233923402341234223432344234523462347234823492350235123522353235423552356235723582359236023612362236323642365236623672368236923702371237223732374237523762377237823792380238123822383238423852386238723882389239023912392239323942395239623972398239924002401240224032404240524062407240824092410241124122413241424152416241724182419242024212422242324242425242624272428242924302431243224332434243524362437243824392440244124422443244424452446244724482449245024512452245324542455245624572458245924602461246224632464246524662467246824692470247124722473247424752476247724782479248024812482248324842485248624872488248924902491249224932494249524962497249824992500250125022503250425052506250725082509251025112512251325142515251625172518251925202521252225232524252525262527252825292530253125322533253425352536253725382539254025412542254325442545254625472548254925502551255225532554255525562557255825592560256125622563256425652566256725682569257025712572257325742575257625772578257925802581258225832584258525862587258825892590259125922593259425952596259725982599260026012602260326042605260626072608260926102611261226132614261526162617261826192620262126222623262426252626262726282629263026312632263326342635263626372638263926402641264226432644264526462647264826492650265126522653265426552656265726582659266026612662266326642665266626672668266926702671267226732674267526762677267826792680268126822683268426852686268726882689269026912692269326942695269626972698269927002701270227032704270527062707270827092710271127122713271427152716271727182719272027212722272327242725272627272728272927302731273227332734273527362737273827392740274127422743274427452746274727482749275027512752275327542755275627572758275927602761276227632764276527662767276827692770277127722773277427752776277727782779278027812782278327842785278627872788278927902791279227932794279527962797279827992800280128022803280428052806280728082809281028112812281328142815281628172818281928202821282228232824282528262827282828292830283128322833283428352836283728382839284028412842284328442845284628472848284928502851285228532854285528562857285828592860286128622863286428652866286728682869287028712872287328742875287628772878287928802881288228832884288528862887288828892890289128922893289428952896289728982899290029012902290329042905290629072908290929102911291229132914291529162917291829192920292129222923292429252926292729282929293029312932293329342935293629372938293929402941294229432944294529462947294829492950295129522953295429552956295729582959296029612962296329642965296629672968296929702971297229732974297529762977297829792980298129822983298429852986298729882989299029912992299329942995299629972998299930003001300230033004300530063007300830093010301130123013301430153016301730183019302030213022302330243025302630273028302930303031303230333034303530363037303830393040304130423043304430453046304730483049305030513052305330543055305630573058305930603061306230633064306530663067306830693070307130723073307430753076307730783079308030813082308330843085308630873088308930903091309230933094309530963097309830993100310131023103310431053106310731083109311031113112311331143115311631173118311931203121312231233124312531263127312831293130313131323133313431353136313731383139314031413142314331443145314631473148314931503151315231533154315531563157315831593160316131623163316431653166316731683169317031713172317331743175317631773178317931803181318231833184318531863187318831893190319131923193319431953196319731983199320032013202320332043205320632073208320932103211321232133214321532163217321832193220322132223223322432253226322732283229323032313232323332343235323632373238323932403241324232433244324532463247324832493250325132523253325432553256325732583259326032613262326332643265326632673268326932703271327232733274327532763277327832793280328132823283328432853286328732883289329032913292329332943295329632973298329933003301330233033304330533063307330833093310331133123313331433153316331733183319332033213322332333243325332633273328332933303331333233333334333533363337333833393340334133423343334433453346334733483349335033513352335333543355335633573358335933603361336233633364336533663367336833693370337133723373337433753376337733783379338033813382338333843385338633873388338933903391339233933394339533963397339833993400340134023403340434053406340734083409341034113412341334143415341634173418341934203421342234233424342534263427342834293430343134323433343434353436343734383439344034413442344334443445344634473448344934503451345234533454345534563457345834593460346134623463346434653466346734683469347034713472347334743475347634773478347934803481348234833484348534863487348834893490349134923493349434953496349734983499350035013502350335043505350635073508350935103511351235133514351535163517351835193520352135223523352435253526352735283529353035313532353335343535353635373538353935403541354235433544354535463547354835493550355135523553355435553556355735583559356035613562356335643565356635673568356935703571357235733574357535763577357835793580358135823583358435853586358735883589359035913592359335943595359635973598359936003601360236033604360536063607360836093610361136123613361436153616361736183619362036213622362336243625362636273628362936303631363236333634363536363637363836393640364136423643364436453646364736483649365036513652365336543655365636573658365936603661366236633664366536663667366836693670367136723673367436753676367736783679368036813682368336843685368636873688368936903691369236933694369536963697369836993700370137023703370437053706370737083709371037113712371337143715371637173718371937203721372237233724372537263727372837293730373137323733373437353736373737383739374037413742374337443745374637473748374937503751375237533754375537563757375837593760376137623763376437653766376737683769377037713772377337743775377637773778377937803781378237833784378537863787378837893790379137923793379437953796379737983799380038013802380338043805380638073808380938103811381238133814381538163817381838193820382138223823382438253826382738283829383038313832383338343835383638373838383938403841384238433844384538463847384838493850385138523853385438553856385738583859386038613862386338643865386638673868386938703871387238733874387538763877387838793880388138823883388438853886388738883889389038913892389338943895389638973898389939003901390239033904390539063907390839093910391139123913391439153916391739183919392039213922392339243925392639273928392939303931393239333934393539363937393839393940394139423943394439453946394739483949395039513952395339543955395639573958395939603961396239633964396539663967396839693970397139723973397439753976397739783979398039813982398339843985398639873988398939903991399239933994399539963997399839994000400140024003400440054006400740084009401040114012401340144015401640174018401940204021402240234024402540264027402840294030403140324033403440354036403740384039404040414042404340444045404640474048404940504051405240534054405540564057405840594060406140624063406440654066406740684069407040714072407340744075407640774078407940804081408240834084408540864087408840894090409140924093409440954096409740984099410041014102410341044105410641074108410941104111411241134114411541164117411841194120412141224123412441254126412741284129413041314132413341344135413641374138413941404141414241434144414541464147414841494150415141524153415441554156415741584159416041614162416341644165416641674168416941704171417241734174417541764177417841794180418141824183418441854186418741884189419041914192419341944195419641974198419942004201420242034204420542064207420842094210421142124213421442154216421742184219422042214222422342244225422642274228422942304231423242334234423542364237423842394240424142424243424442454246424742484249425042514252425342544255425642574258425942604261426242634264426542664267426842694270427142724273427442754276427742784279428042814282428342844285428642874288428942904291429242934294429542964297429842994300430143024303430443054306430743084309431043114312431343144315431643174318431943204321432243234324432543264327432843294330433143324333433443354336433743384339434043414342434343444345434643474348434943504351435243534354435543564357435843594360436143624363436443654366436743684369437043714372437343744375437643774378437943804381438243834384438543864387438843894390439143924393439443954396439743984399440044014402440344044405440644074408440944104411441244134414441544164417441844194420442144224423442444254426442744284429443044314432443344344435443644374438443944404441444244434444444544464447444844494450445144524453445444554456445744584459446044614462446344644465446644674468446944704471447244734474447544764477447844794480448144824483448444854486448744884489449044914492449344944495449644974498449945004501450245034504450545064507450845094510451145124513451445154516451745184519452045214522452345244525452645274528452945304531453245334534453545364537453845394540454145424543454445454546454745484549455045514552455345544555455645574558455945604561456245634564456545664567456845694570457145724573457445754576457745784579458045814582458345844585458645874588458945904591459245934594459545964597459845994600460146024603460446054606460746084609461046114612461346144615461646174618461946204621462246234624462546264627462846294630463146324633463446354636463746384639464046414642464346444645464646474648464946504651465246534654465546564657465846594660466146624663466446654666466746684669467046714672467346744675467646774678467946804681468246834684468546864687468846894690469146924693469446954696469746984699470047014702470347044705470647074708470947104711471247134714471547164717471847194720472147224723472447254726472747284729473047314732473347344735473647374738473947404741474247434744474547464747474847494750475147524753475447554756475747584759476047614762476347644765476647674768476947704771477247734774477547764777477847794780478147824783478447854786478747884789479047914792479347944795479647974798479948004801480248034804480548064807480848094810481148124813481448154816481748184819482048214822482348244825482648274828482948304831483248334834483548364837483848394840484148424843484448454846484748484849485048514852485348544855485648574858485948604861486248634864486548664867486848694870487148724873487448754876487748784879488048814882488348844885488648874888488948904891489248934894489548964897489848994900490149024903490449054906490749084909491049114912491349144915491649174918491949204921492249234924492549264927492849294930493149324933493449354936493749384939494049414942494349444945494649474948494949504951495249534954495549564957495849594960496149624963496449654966496749684969497049714972497349744975497649774978497949804981498249834984498549864987498849894990499149924993499449954996499749984999500050015002500350045005500650075008500950105011501250135014501550165017501850195020502150225023502450255026502750285029503050315032503350345035503650375038503950405041504250435044504550465047504850495050505150525053505450555056505750585059506050615062506350645065506650675068506950705071507250735074507550765077507850795080508150825083508450855086508750885089509050915092509350945095509650975098509951005101510251035104510551065107510851095110511151125113511451155116511751185119512051215122512351245125512651275128512951305131513251335134513551365137513851395140514151425143514451455146514751485149515051515152515351545155515651575158515951605161516251635164516551665167516851695170517151725173517451755176517751785179518051815182518351845185518651875188518951905191519251935194519551965197519851995200520152025203520452055206520752085209521052115212521352145215521652175218521952205221522252235224522552265227522852295230523152325233523452355236523752385239524052415242524352445245524652475248524952505251525252535254525552565257525852595260526152625263526452655266526752685269527052715272527352745275527652775278527952805281528252835284528552865287528852895290529152925293529452955296529752985299530053015302530353045305530653075308530953105311531253135314531553165317531853195320532153225323532453255326532753285329533053315332533353345335533653375338533953405341534253435344534553465347534853495350535153525353535453555356535753585359536053615362536353645365536653675368536953705371537253735374537553765377537853795380538153825383538453855386538753885389539053915392539353945395539653975398539954005401540254035404540554065407540854095410541154125413541454155416541754185419542054215422542354245425542654275428542954305431543254335434543554365437543854395440544154425443544454455446544754485449545054515452545354545455545654575458545954605461546254635464546554665467546854695470547154725473547454755476547754785479548054815482548354845485548654875488548954905491549254935494549554965497549854995500550155025503550455055506550755085509551055115512551355145515551655175518551955205521552255235524552555265527552855295530553155325533553455355536553755385539554055415542554355445545554655475548554955505551555255535554555555565557555855595560556155625563556455655566556755685569557055715572557355745575557655775578557955805581558255835584558555865587558855895590559155925593559455955596559755985599560056015602560356045605560656075608560956105611561256135614561556165617561856195620562156225623562456255626562756285629563056315632563356345635563656375638563956405641564256435644564556465647564856495650565156525653565456555656565756585659566056615662566356645665566656675668566956705671567256735674567556765677567856795680568156825683568456855686568756885689569056915692569356945695569656975698569957005701570257035704570557065707570857095710571157125713571457155716571757185719572057215722572357245725572657275728572957305731573257335734573557365737573857395740574157425743574457455746574757485749575057515752575357545755575657575758575957605761576257635764576557665767576857695770577157725773577457755776577757785779578057815782578357845785578657875788578957905791579257935794579557965797579857995800580158025803580458055806580758085809581058115812581358145815581658175818581958205821582258235824582558265827582858295830583158325833583458355836583758385839584058415842584358445845584658475848584958505851585258535854585558565857585858595860586158625863586458655866586758685869587058715872587358745875587658775878587958805881588258835884588558865887588858895890589158925893589458955896589758985899590059015902590359045905590659075908590959105911591259135914591559165917591859195920592159225923592459255926592759285929593059315932593359345935593659375938593959405941594259435944594559465947594859495950595159525953595459555956595759585959596059615962596359645965596659675968596959705971597259735974597559765977597859795980598159825983598459855986598759885989599059915992599359945995599659975998599960006001600260036004600560066007600860096010601160126013601460156016601760186019602060216022602360246025602660276028602960306031603260336034603560366037603860396040604160426043604460456046604760486049605060516052605360546055605660576058605960606061606260636064606560666067606860696070607160726073607460756076607760786079608060816082608360846085608660876088608960906091609260936094609560966097609860996100610161026103610461056106610761086109611061116112611361146115611661176118611961206121612261236124612561266127612861296130613161326133613461356136613761386139614061416142614361446145614661476148614961506151615261536154615561566157615861596160616161626163616461656166616761686169617061716172617361746175617661776178617961806181618261836184618561866187618861896190619161926193619461956196619761986199620062016202620362046205620662076208620962106211621262136214621562166217621862196220622162226223622462256226622762286229623062316232623362346235623662376238623962406241624262436244624562466247624862496250625162526253625462556256625762586259626062616262626362646265626662676268626962706271627262736274627562766277627862796280628162826283628462856286628762886289629062916292629362946295629662976298629963006301630263036304630563066307630863096310631163126313631463156316631763186319632063216322632363246325632663276328632963306331633263336334633563366337633863396340634163426343634463456346634763486349635063516352635363546355635663576358635963606361636263636364636563666367636863696370637163726373637463756376637763786379638063816382638363846385638663876388638963906391639263936394639563966397639863996400640164026403640464056406640764086409641064116412641364146415641664176418641964206421642264236424642564266427642864296430643164326433643464356436643764386439644064416442644364446445644664476448644964506451645264536454645564566457645864596460646164626463646464656466646764686469647064716472647364746475647664776478647964806481648264836484648564866487648864896490649164926493649464956496649764986499650065016502650365046505650665076508650965106511651265136514651565166517651865196520652165226523652465256526652765286529653065316532653365346535653665376538653965406541654265436544654565466547654865496550655165526553655465556556655765586559656065616562656365646565656665676568656965706571657265736574657565766577657865796580658165826583658465856586658765886589659065916592659365946595659665976598659966006601660266036604660566066607660866096610661166126613661466156616661766186619662066216622662366246625662666276628662966306631663266336634663566366637663866396640664166426643664466456646664766486649665066516652665366546655665666576658665966606661666266636664666566666667666866696670667166726673667466756676667766786679668066816682668366846685668666876688668966906691669266936694669566966697669866996700670167026703670467056706670767086709671067116712671367146715671667176718671967206721672267236724672567266727672867296730673167326733673467356736673767386739674067416742674367446745674667476748674967506751675267536754675567566757675867596760676167626763676467656766676767686769677067716772677367746775677667776778677967806781678267836784678567866787678867896790679167926793679467956796679767986799680068016802680368046805680668076808680968106811681268136814681568166817681868196820682168226823682468256826682768286829683068316832683368346835683668376838683968406841684268436844684568466847684868496850685168526853685468556856685768586859686068616862686368646865686668676868686968706871687268736874687568766877687868796880688168826883688468856886688768886889689068916892689368946895689668976898689969006901690269036904690569066907690869096910691169126913691469156916691769186919692069216922692369246925692669276928692969306931693269336934693569366937693869396940694169426943694469456946694769486949695069516952695369546955695669576958695969606961696269636964696569666967696869696970697169726973697469756976697769786979698069816982698369846985698669876988698969906991699269936994699569966997699869997000700170027003700470057006700770087009701070117012701370147015701670177018701970207021702270237024702570267027702870297030703170327033703470357036703770387039704070417042704370447045704670477048704970507051705270537054705570567057705870597060706170627063706470657066706770687069707070717072707370747075707670777078707970807081708270837084708570867087708870897090709170927093709470957096709770987099710071017102710371047105710671077108710971107111711271137114711571167117711871197120712171227123712471257126712771287129713071317132713371347135713671377138713971407141714271437144714571467147714871497150715171527153715471557156715771587159716071617162716371647165716671677168716971707171717271737174717571767177717871797180718171827183718471857186718771887189719071917192719371947195719671977198719972007201720272037204720572067207720872097210721172127213721472157216721772187219722072217222722372247225722672277228722972307231723272337234723572367237723872397240724172427243724472457246724772487249725072517252725372547255725672577258725972607261726272637264726572667267726872697270727172727273727472757276727772787279728072817282728372847285728672877288728972907291729272937294729572967297729872997300730173027303730473057306730773087309731073117312731373147315731673177318731973207321732273237324732573267327732873297330733173327333733473357336733773387339734073417342734373447345734673477348734973507351735273537354735573567357735873597360736173627363736473657366736773687369737073717372737373747375737673777378737973807381738273837384738573867387738873897390739173927393739473957396739773987399740074017402740374047405740674077408740974107411741274137414741574167417741874197420742174227423742474257426742774287429743074317432743374347435743674377438743974407441744274437444744574467447744874497450745174527453745474557456745774587459746074617462746374647465746674677468746974707471747274737474747574767477747874797480748174827483748474857486748774887489749074917492749374947495749674977498749975007501750275037504750575067507750875097510751175127513751475157516751775187519752075217522752375247525752675277528752975307531753275337534753575367537753875397540754175427543754475457546754775487549755075517552755375547555755675577558755975607561756275637564756575667567756875697570757175727573757475757576757775787579758075817582758375847585758675877588758975907591759275937594759575967597759875997600760176027603760476057606760776087609761076117612761376147615761676177618761976207621762276237624762576267627762876297630763176327633763476357636763776387639764076417642764376447645764676477648764976507651765276537654765576567657765876597660766176627663766476657666766776687669767076717672767376747675767676777678767976807681768276837684768576867687768876897690769176927693769476957696769776987699770077017702770377047705770677077708770977107711771277137714771577167717771877197720772177227723772477257726772777287729773077317732773377347735773677377738773977407741774277437744774577467747774877497750775177527753775477557756775777587759776077617762776377647765776677677768776977707771777277737774777577767777777877797780778177827783778477857786778777887789779077917792779377947795779677977798779978007801780278037804780578067807780878097810781178127813781478157816781778187819782078217822782378247825782678277828782978307831783278337834783578367837783878397840784178427843784478457846784778487849785078517852785378547855785678577858785978607861786278637864786578667867786878697870787178727873787478757876787778787879788078817882788378847885788678877888788978907891789278937894789578967897789878997900790179027903790479057906790779087909791079117912791379147915791679177918791979207921792279237924792579267927792879297930793179327933793479357936793779387939794079417942794379447945794679477948794979507951795279537954795579567957795879597960796179627963796479657966796779687969797079717972797379747975797679777978797979807981798279837984798579867987798879897990799179927993799479957996799779987999800080018002800380048005800680078008800980108011801280138014801580168017801880198020802180228023802480258026802780288029803080318032803380348035803680378038803980408041804280438044804580468047804880498050805180528053805480558056805780588059806080618062806380648065806680678068806980708071807280738074807580768077807880798080808180828083808480858086808780888089809080918092809380948095809680978098809981008101810281038104810581068107810881098110811181128113811481158116811781188119812081218122812381248125812681278128812981308131813281338134813581368137813881398140814181428143814481458146814781488149815081518152815381548155815681578158815981608161816281638164816581668167816881698170817181728173817481758176817781788179818081818182818381848185818681878188818981908191819281938194819581968197819881998200820182028203820482058206820782088209821082118212821382148215821682178218821982208221822282238224822582268227822882298230823182328233823482358236823782388239824082418242824382448245824682478248824982508251825282538254825582568257825882598260826182628263826482658266826782688269827082718272827382748275827682778278827982808281828282838284828582868287828882898290829182928293829482958296829782988299830083018302830383048305830683078308830983108311831283138314831583168317831883198320832183228323832483258326832783288329833083318332833383348335833683378338833983408341834283438344834583468347834883498350835183528353835483558356835783588359836083618362836383648365836683678368836983708371837283738374837583768377837883798380838183828383838483858386838783888389839083918392839383948395839683978398839984008401840284038404840584068407840884098410841184128413841484158416841784188419842084218422842384248425842684278428842984308431843284338434843584368437843884398440844184428443844484458446844784488449845084518452845384548455845684578458845984608461846284638464846584668467846884698470847184728473847484758476847784788479848084818482848384848485848684878488848984908491849284938494849584968497849884998500850185028503850485058506850785088509851085118512851385148515851685178518851985208521852285238524852585268527852885298530853185328533853485358536853785388539854085418542854385448545854685478548854985508551855285538554855585568557855885598560856185628563856485658566856785688569857085718572857385748575857685778578857985808581858285838584858585868587858885898590859185928593859485958596859785988599860086018602860386048605860686078608860986108611861286138614861586168617861886198620862186228623862486258626862786288629863086318632863386348635863686378638863986408641864286438644864586468647864886498650865186528653865486558656865786588659866086618662866386648665866686678668866986708671867286738674867586768677867886798680868186828683868486858686868786888689869086918692869386948695869686978698869987008701870287038704870587068707870887098710871187128713871487158716871787188719872087218722872387248725872687278728872987308731873287338734873587368737873887398740874187428743874487458746874787488749875087518752875387548755875687578758875987608761876287638764876587668767876887698770877187728773877487758776877787788779878087818782878387848785878687878788878987908791879287938794879587968797879887998800880188028803880488058806880788088809881088118812881388148815881688178818881988208821882288238824882588268827882888298830883188328833883488358836883788388839884088418842884388448845884688478848884988508851885288538854885588568857885888598860886188628863886488658866886788688869887088718872887388748875887688778878887988808881888288838884888588868887888888898890889188928893889488958896889788988899890089018902890389048905890689078908890989108911891289138914891589168917891889198920892189228923892489258926892789288929893089318932893389348935893689378938893989408941894289438944894589468947894889498950895189528953895489558956895789588959896089618962896389648965896689678968896989708971897289738974897589768977897889798980898189828983898489858986898789888989899089918992899389948995899689978998899990009001900290039004900590069007900890099010901190129013901490159016901790189019902090219022902390249025902690279028902990309031903290339034903590369037903890399040904190429043904490459046904790489049905090519052905390549055905690579058905990609061906290639064906590669067906890699070907190729073907490759076907790789079908090819082908390849085908690879088908990909091909290939094909590969097909890999100910191029103910491059106910791089109911091119112911391149115911691179118911991209121912291239124912591269127912891299130913191329133913491359136913791389139914091419142914391449145914691479148914991509151915291539154915591569157915891599160916191629163916491659166916791689169917091719172917391749175917691779178917991809181918291839184918591869187918891899190919191929193919491959196919791989199920092019202920392049205920692079208920992109211921292139214921592169217921892199220922192229223922492259226922792289229923092319232923392349235923692379238923992409241924292439244924592469247924892499250925192529253925492559256925792589259926092619262926392649265926692679268926992709271927292739274927592769277927892799280928192829283928492859286928792889289929092919292929392949295929692979298929993009301930293039304930593069307930893099310931193129313931493159316931793189319932093219322932393249325932693279328932993309331933293339334933593369337933893399340934193429343934493459346934793489349935093519352935393549355935693579358935993609361936293639364936593669367936893699370937193729373937493759376937793789379938093819382938393849385938693879388938993909391939293939394939593969397939893999400940194029403940494059406940794089409941094119412941394149415941694179418941994209421942294239424942594269427942894299430943194329433943494359436943794389439944094419442944394449445944694479448944994509451945294539454945594569457945894599460946194629463946494659466946794689469947094719472947394749475947694779478947994809481948294839484948594869487948894899490949194929493949494959496949794989499950095019502950395049505950695079508950995109511951295139514951595169517951895199520952195229523952495259526952795289529953095319532953395349535953695379538953995409541954295439544954595469547954895499550955195529553955495559556955795589559956095619562956395649565956695679568956995709571957295739574957595769577957895799580958195829583958495859586958795889589959095919592959395949595959695979598959996009601960296039604960596069607960896099610961196129613961496159616961796189619962096219622962396249625962696279628962996309631963296339634963596369637963896399640964196429643964496459646964796489649965096519652965396549655965696579658965996609661966296639664966596669667966896699670967196729673967496759676967796789679968096819682968396849685968696879688968996909691969296939694969596969697969896999700970197029703970497059706970797089709971097119712971397149715971697179718971997209721972297239724972597269727972897299730973197329733973497359736973797389739974097419742974397449745974697479748974997509751975297539754975597569757975897599760976197629763976497659766976797689769977097719772977397749775977697779778977997809781978297839784978597869787978897899790979197929793979497959796979797989799980098019802980398049805980698079808980998109811981298139814981598169817981898199820982198229823982498259826982798289829983098319832983398349835983698379838983998409841984298439844984598469847984898499850985198529853985498559856985798589859986098619862986398649865986698679868986998709871987298739874987598769877987898799880988198829883988498859886988798889889989098919892989398949895989698979898989999009901990299039904990599069907990899099910991199129913991499159916991799189919992099219922992399249925992699279928992999309931993299339934993599369937993899399940994199429943994499459946994799489949995099519952995399549955995699579958995999609961996299639964996599669967996899699970997199729973997499759976997799789979998099819982998399849985998699879988998999909991999299939994999599969997999899991000010001100021000310004100051000610007100081000910010100111001210013100141001510016100171001810019100201002110022100231002410025100261002710028100291003010031100321003310034100351003610037100381003910040100411004210043100441004510046100471004810049100501005110052100531005410055100561005710058100591006010061100621006310064100651006610067100681006910070100711007210073100741007510076100771007810079100801008110082100831008410085100861008710088100891009010091100921009310094100951009610097100981009910100101011010210103101041010510106101071010810109101101011110112101131011410115101161011710118101191012010121101221012310124101251012610127101281012910130101311013210133101341013510136101371013810139101401014110142101431014410145101461014710148101491015010151101521015310154101551015610157101581015910160101611016210163101641016510166101671016810169101701017110172101731017410175101761017710178101791018010181101821018310184101851018610187101881018910190101911019210193101941019510196101971019810199102001020110202102031020410205102061020710208102091021010211102121021310214102151021610217102181021910220102211022210223102241022510226102271022810229102301023110232102331023410235102361023710238102391024010241102421024310244102451024610247102481024910250102511025210253102541025510256102571025810259102601026110262102631026410265102661026710268102691027010271102721027310274102751027610277102781027910280102811028210283102841028510286102871028810289102901029110292102931029410295102961029710298102991030010301103021030310304103051030610307103081030910310103111031210313103141031510316103171031810319103201032110322103231032410325103261032710328103291033010331103321033310334103351033610337103381033910340103411034210343103441034510346103471034810349103501035110352103531035410355103561035710358103591036010361103621036310364103651036610367103681036910370103711037210373103741037510376103771037810379103801038110382103831038410385103861038710388103891039010391103921039310394103951039610397103981039910400104011040210403104041040510406104071040810409104101041110412104131041410415104161041710418104191042010421104221042310424104251042610427104281042910430104311043210433104341043510436104371043810439104401044110442104431044410445104461044710448104491045010451104521045310454104551045610457104581045910460104611046210463104641046510466104671046810469104701047110472104731047410475104761047710478104791048010481104821048310484104851048610487104881048910490104911049210493104941049510496104971049810499105001050110502105031050410505105061050710508105091051010511105121051310514105151051610517105181051910520105211052210523105241052510526105271052810529105301053110532105331053410535105361053710538105391054010541105421054310544105451054610547105481054910550105511055210553105541055510556105571055810559105601056110562105631056410565105661056710568105691057010571105721057310574105751057610577105781057910580105811058210583105841058510586105871058810589105901059110592105931059410595105961059710598105991060010601106021060310604106051060610607106081060910610106111061210613106141061510616106171061810619106201062110622106231062410625106261062710628106291063010631106321063310634106351063610637106381063910640106411064210643106441064510646106471064810649106501065110652106531065410655106561065710658106591066010661106621066310664106651066610667106681066910670106711067210673106741067510676106771067810679106801068110682106831068410685106861068710688106891069010691106921069310694106951069610697106981069910700107011070210703107041070510706107071070810709107101071110712107131071410715107161071710718107191072010721107221072310724107251072610727107281072910730107311073210733107341073510736107371073810739107401074110742107431074410745107461074710748107491075010751107521075310754107551075610757107581075910760107611076210763107641076510766107671076810769107701077110772107731077410775107761077710778107791078010781107821078310784107851078610787107881078910790107911079210793107941079510796107971079810799108001080110802108031080410805108061080710808108091081010811108121081310814108151081610817108181081910820108211082210823108241082510826108271082810829108301083110832108331083410835108361083710838108391084010841108421084310844108451084610847108481084910850108511085210853108541085510856108571085810859108601086110862108631086410865108661086710868108691087010871108721087310874108751087610877108781087910880108811088210883108841088510886108871088810889108901089110892108931089410895108961089710898108991090010901109021090310904109051090610907109081090910910109111091210913109141091510916109171091810919109201092110922109231092410925109261092710928109291093010931109321093310934109351093610937109381093910940109411094210943109441094510946109471094810949109501095110952109531095410955109561095710958109591096010961109621096310964109651096610967109681096910970109711097210973109741097510976109771097810979109801098110982109831098410985109861098710988109891099010991109921099310994109951099610997109981099911000110011100211003110041100511006110071100811009110101101111012110131101411015110161101711018110191102011021110221102311024110251102611027110281102911030110311103211033110341103511036110371103811039110401104111042110431104411045110461104711048110491105011051110521105311054110551105611057110581105911060110611106211063110641106511066110671106811069110701107111072110731107411075110761107711078110791108011081110821108311084110851108611087110881108911090110911109211093110941109511096110971109811099111001110111102111031110411105111061110711108111091111011111111121111311114111151111611117111181111911120111211112211123111241112511126111271112811129111301113111132111331113411135111361113711138111391114011141111421114311144111451114611147111481114911150111511115211153111541115511156111571115811159111601116111162111631116411165111661116711168111691117011171111721117311174111751117611177111781117911180111811118211183111841118511186111871118811189111901119111192111931119411195111961119711198111991120011201112021120311204112051120611207112081120911210112111121211213112141121511216112171121811219112201122111222112231122411225112261122711228112291123011231112321123311234112351123611237112381123911240112411124211243112441124511246112471124811249112501125111252112531125411255112561125711258112591126011261112621126311264112651126611267112681126911270112711127211273112741127511276112771127811279112801128111282112831128411285112861128711288112891129011291112921129311294112951129611297112981129911300113011130211303113041130511306113071130811309113101131111312113131131411315113161131711318113191132011321113221132311324113251132611327113281132911330113311133211333113341133511336113371133811339113401134111342113431134411345113461134711348113491135011351113521135311354113551135611357113581135911360113611136211363113641136511366113671136811369113701137111372113731137411375113761137711378113791138011381113821138311384113851138611387113881138911390113911139211393113941139511396113971139811399114001140111402114031140411405114061140711408114091141011411114121141311414114151141611417114181141911420114211142211423114241142511426114271142811429114301143111432114331143411435114361143711438114391144011441114421144311444114451144611447114481144911450114511145211453114541145511456114571145811459114601146111462114631146411465114661146711468114691147011471114721147311474114751147611477114781147911480114811148211483114841148511486114871148811489114901149111492114931149411495114961149711498114991150011501115021150311504115051150611507115081150911510115111151211513115141151511516115171151811519115201152111522115231152411525115261152711528115291153011531115321153311534115351153611537115381153911540115411154211543115441154511546115471154811549115501155111552115531155411555115561155711558115591156011561115621156311564115651156611567115681156911570115711157211573115741157511576115771157811579115801158111582115831158411585115861158711588115891159011591115921159311594115951159611597115981159911600116011160211603116041160511606116071160811609116101161111612116131161411615116161161711618116191162011621116221162311624116251162611627116281162911630116311163211633116341163511636116371163811639116401164111642116431164411645116461164711648116491165011651116521165311654116551165611657116581165911660116611166211663116641166511666116671166811669116701167111672116731167411675116761167711678116791168011681116821168311684116851168611687116881168911690116911169211693116941169511696116971169811699117001170111702117031170411705117061170711708117091171011711117121171311714117151171611717117181171911720117211172211723117241172511726117271172811729117301173111732117331173411735117361173711738117391174011741117421174311744117451174611747117481174911750117511175211753117541175511756117571175811759117601176111762117631176411765117661176711768117691177011771117721177311774117751177611777117781177911780117811178211783117841178511786117871178811789117901179111792117931179411795117961179711798117991180011801118021180311804118051180611807118081180911810118111181211813118141181511816118171181811819118201182111822118231182411825118261182711828118291183011831118321183311834118351183611837118381183911840118411184211843118441184511846118471184811849118501185111852118531185411855118561185711858118591186011861118621186311864118651186611867118681186911870118711187211873118741187511876118771187811879118801188111882118831188411885118861188711888118891189011891118921189311894118951189611897118981189911900119011190211903119041190511906119071190811909119101191111912119131191411915119161191711918119191192011921119221192311924119251192611927119281192911930119311193211933119341193511936119371193811939119401194111942119431194411945119461194711948119491195011951119521195311954119551195611957119581195911960119611196211963119641196511966119671196811969119701197111972119731197411975119761197711978119791198011981119821198311984119851198611987119881198911990119911199211993119941199511996119971199811999120001200112002120031200412005120061200712008120091201012011120121201312014120151201612017120181201912020120211202212023120241202512026120271202812029120301203112032120331203412035120361203712038120391204012041120421204312044120451204612047120481204912050120511205212053120541205512056120571205812059120601206112062120631206412065120661206712068120691207012071120721207312074120751207612077120781207912080120811208212083120841208512086120871208812089120901209112092120931209412095120961209712098120991210012101121021210312104121051210612107121081210912110121111211212113121141211512116121171211812119121201212112122121231212412125121261212712128121291213012131121321213312134121351213612137121381213912140121411214212143121441214512146121471214812149121501215112152121531215412155121561215712158121591216012161121621216312164121651216612167121681216912170121711217212173121741217512176121771217812179121801218112182121831218412185121861218712188121891219012191121921219312194121951219612197121981219912200122011220212203122041220512206122071220812209122101221112212122131221412215122161221712218122191222012221122221222312224122251222612227122281222912230122311223212233122341223512236122371223812239122401224112242122431224412245122461224712248122491225012251122521225312254122551225612257122581225912260122611226212263122641226512266122671226812269122701227112272122731227412275122761227712278122791228012281122821228312284122851228612287122881228912290122911229212293122941229512296122971229812299123001230112302123031230412305123061230712308123091231012311123121231312314123151231612317123181231912320123211232212323123241232512326123271232812329123301233112332123331233412335123361233712338123391234012341123421234312344123451234612347123481234912350123511235212353123541235512356123571235812359123601236112362123631236412365123661236712368123691237012371123721237312374123751237612377123781237912380123811238212383123841238512386123871238812389123901239112392123931239412395123961239712398123991240012401124021240312404124051240612407124081240912410124111241212413124141241512416124171241812419124201242112422124231242412425124261242712428124291243012431124321243312434124351243612437124381243912440124411244212443124441244512446124471244812449124501245112452124531245412455124561245712458124591246012461124621246312464124651246612467124681246912470124711247212473124741247512476124771247812479124801248112482124831248412485124861248712488124891249012491124921249312494124951249612497124981249912500125011250212503125041250512506125071250812509125101251112512125131251412515125161251712518125191252012521125221252312524125251252612527125281252912530125311253212533125341253512536125371253812539125401254112542125431254412545125461254712548125491255012551125521255312554125551255612557125581255912560125611256212563125641256512566125671256812569125701257112572125731257412575125761257712578125791258012581125821258312584125851258612587125881258912590125911259212593125941259512596125971259812599126001260112602126031260412605126061260712608126091261012611126121261312614126151261612617126181261912620126211262212623126241262512626126271262812629126301263112632126331263412635126361263712638126391264012641126421264312644126451264612647126481264912650126511265212653126541265512656126571265812659126601266112662126631266412665126661266712668126691267012671126721267312674126751267612677126781267912680126811268212683126841268512686126871268812689126901269112692126931269412695126961269712698126991270012701127021270312704127051270612707127081270912710127111271212713127141271512716127171271812719127201272112722127231272412725127261272712728127291273012731127321273312734127351273612737127381273912740127411274212743127441274512746127471274812749127501275112752127531275412755127561275712758127591276012761127621276312764127651276612767127681276912770127711277212773127741277512776127771277812779127801278112782127831278412785127861278712788127891279012791127921279312794127951279612797127981279912800128011280212803128041280512806128071280812809128101281112812128131281412815128161281712818128191282012821128221282312824128251282612827128281282912830128311283212833128341283512836128371283812839128401284112842128431284412845128461284712848128491285012851128521285312854128551285612857128581285912860128611286212863128641286512866128671286812869128701287112872128731287412875128761287712878128791288012881128821288312884128851288612887128881288912890128911289212893128941289512896128971289812899129001290112902129031290412905129061290712908129091291012911129121291312914129151291612917129181291912920129211292212923129241292512926129271292812929129301293112932129331293412935129361293712938129391294012941129421294312944129451294612947129481294912950129511295212953129541295512956129571295812959129601296112962129631296412965129661296712968129691297012971129721297312974129751297612977129781297912980129811298212983129841298512986129871298812989129901299112992129931299412995129961299712998129991300013001130021300313004130051300613007130081300913010130111301213013130141301513016130171301813019130201302113022130231302413025130261302713028130291303013031130321303313034130351303613037130381303913040130411304213043130441304513046130471304813049130501305113052130531305413055130561305713058130591306013061130621306313064130651306613067130681306913070130711307213073130741307513076130771307813079130801308113082130831308413085130861308713088130891309013091130921309313094130951309613097130981309913100131011310213103131041310513106131071310813109131101311113112131131311413115131161311713118131191312013121131221312313124131251312613127131281312913130131311313213133131341313513136131371313813139131401314113142131431314413145131461314713148131491315013151131521315313154131551315613157131581315913160131611316213163131641316513166131671316813169131701317113172131731317413175131761317713178131791318013181131821318313184131851318613187131881318913190131911319213193131941319513196131971319813199132001320113202132031320413205132061320713208132091321013211132121321313214132151321613217132181321913220132211322213223132241322513226132271322813229132301323113232132331323413235132361323713238132391324013241132421324313244132451324613247132481324913250132511325213253132541325513256132571325813259132601326113262132631326413265132661326713268132691327013271132721327313274132751327613277132781327913280132811328213283132841328513286132871328813289132901329113292132931329413295132961329713298132991330013301133021330313304133051330613307133081330913310133111331213313133141331513316133171331813319133201332113322133231332413325133261332713328133291333013331133321333313334133351333613337133381333913340133411334213343133441334513346133471334813349133501335113352133531335413355133561335713358133591336013361133621336313364133651336613367133681336913370133711337213373133741337513376133771337813379133801338113382133831338413385133861338713388133891339013391133921339313394133951339613397133981339913400134011340213403134041340513406134071340813409134101341113412134131341413415134161341713418134191342013421134221342313424134251342613427134281342913430134311343213433134341343513436134371343813439134401344113442134431344413445134461344713448134491345013451134521345313454134551345613457134581345913460134611346213463134641346513466134671346813469134701347113472134731347413475134761347713478134791348013481134821348313484134851348613487134881348913490134911349213493134941349513496134971349813499135001350113502135031350413505135061350713508135091351013511135121351313514135151351613517135181351913520135211352213523135241352513526135271352813529135301353113532135331353413535135361353713538135391354013541135421354313544135451354613547135481354913550135511355213553135541355513556135571355813559135601356113562135631356413565135661356713568135691357013571135721357313574135751357613577135781357913580135811358213583135841358513586135871358813589135901359113592135931359413595135961359713598135991360013601136021360313604136051360613607136081360913610136111361213613136141361513616136171361813619136201362113622136231362413625136261362713628136291363013631136321363313634136351363613637136381363913640136411364213643136441364513646136471364813649136501365113652136531365413655136561365713658136591366013661136621366313664136651366613667136681366913670136711367213673136741367513676136771367813679136801368113682136831368413685136861368713688136891369013691136921369313694136951369613697136981369913700137011370213703137041370513706137071370813709137101371113712137131371413715137161371713718137191372013721137221372313724137251372613727137281372913730137311373213733137341373513736137371373813739137401374113742137431374413745137461374713748137491375013751137521375313754137551375613757137581375913760137611376213763137641376513766137671376813769137701377113772137731377413775137761377713778137791378013781137821378313784137851378613787137881378913790137911379213793137941379513796137971379813799138001380113802138031380413805138061380713808138091381013811138121381313814138151381613817138181381913820138211382213823138241382513826138271382813829138301383113832138331383413835138361383713838138391384013841138421384313844138451384613847138481384913850138511385213853138541385513856138571385813859138601386113862138631386413865138661386713868138691387013871138721387313874138751387613877138781387913880138811388213883138841388513886138871388813889138901389113892138931389413895138961389713898138991390013901139021390313904139051390613907139081390913910139111391213913139141391513916139171391813919139201392113922139231392413925139261392713928139291393013931139321393313934139351393613937139381393913940139411394213943139441394513946139471394813949139501395113952139531395413955139561395713958139591396013961139621396313964139651396613967139681396913970139711397213973139741397513976139771397813979139801398113982139831398413985139861398713988139891399013991139921399313994139951399613997139981399914000140011400214003140041400514006140071400814009140101401114012140131401414015140161401714018140191402014021140221402314024140251402614027140281402914030140311403214033140341403514036140371403814039140401404114042140431404414045140461404714048140491405014051140521405314054140551405614057140581405914060140611406214063140641406514066140671406814069140701407114072140731407414075140761407714078140791408014081140821408314084140851408614087140881408914090140911409214093140941409514096140971409814099141001410114102141031410414105141061410714108141091411014111141121411314114141151411614117141181411914120141211412214123141241412514126141271412814129141301413114132141331413414135141361413714138141391414014141141421414314144141451414614147141481414914150141511415214153141541415514156141571415814159141601416114162141631416414165141661416714168141691417014171141721417314174141751417614177141781417914180141811418214183141841418514186141871418814189141901419114192141931419414195141961419714198141991420014201142021420314204142051420614207142081420914210142111421214213142141421514216142171421814219142201422114222142231422414225142261422714228142291423014231142321423314234142351423614237142381423914240142411424214243142441424514246142471424814249142501425114252142531425414255142561425714258142591426014261142621426314264142651426614267142681426914270142711427214273142741427514276142771427814279142801428114282142831428414285142861428714288142891429014291142921429314294142951429614297142981429914300143011430214303143041430514306143071430814309143101431114312143131431414315143161431714318143191432014321143221432314324143251432614327143281432914330143311433214333143341433514336143371433814339143401434114342143431434414345143461434714348143491435014351143521435314354143551435614357143581435914360143611436214363143641436514366143671436814369143701437114372143731437414375143761437714378143791438014381143821438314384143851438614387143881438914390143911439214393143941439514396143971439814399144001440114402144031440414405144061440714408144091441014411144121441314414144151441614417144181441914420144211442214423144241442514426144271442814429144301443114432144331443414435144361443714438144391444014441144421444314444144451444614447144481444914450144511445214453144541445514456144571445814459144601446114462144631446414465144661446714468144691447014471144721447314474144751447614477144781447914480144811448214483144841448514486144871448814489144901449114492144931449414495144961449714498144991450014501145021450314504145051450614507145081450914510145111451214513145141451514516145171451814519145201452114522145231452414525145261452714528145291453014531145321453314534145351453614537145381453914540145411454214543145441454514546145471454814549145501455114552145531455414555145561455714558145591456014561145621456314564145651456614567145681456914570145711457214573145741457514576145771457814579145801458114582145831458414585145861458714588145891459014591145921459314594145951459614597145981459914600146011460214603146041460514606146071460814609146101461114612146131461414615146161461714618146191462014621146221462314624146251462614627146281462914630146311463214633146341463514636146371463814639146401464114642146431464414645146461464714648146491465014651146521465314654146551465614657146581465914660146611466214663146641466514666146671466814669146701467114672146731467414675146761467714678146791468014681146821468314684146851468614687146881468914690146911469214693146941469514696146971469814699147001470114702147031470414705147061470714708147091471014711147121471314714147151471614717147181471914720147211472214723147241472514726147271472814729147301473114732147331473414735147361473714738147391474014741147421474314744147451474614747147481474914750147511475214753147541475514756147571475814759147601476114762147631476414765147661476714768147691477014771147721477314774147751477614777147781477914780147811478214783147841478514786147871478814789147901479114792147931479414795147961479714798147991480014801148021480314804148051480614807148081480914810148111481214813148141481514816148171481814819148201482114822148231482414825148261482714828148291483014831148321483314834148351483614837148381483914840148411484214843148441484514846148471484814849148501485114852148531485414855148561485714858148591486014861148621486314864148651486614867148681486914870148711487214873148741487514876148771487814879148801488114882148831488414885148861488714888148891489014891148921489314894148951489614897148981489914900149011490214903149041490514906149071490814909149101491114912149131491414915149161491714918149191492014921149221492314924149251492614927149281492914930149311493214933149341493514936149371493814939149401494114942149431494414945149461494714948149491495014951149521495314954149551495614957149581495914960149611496214963149641496514966149671496814969149701497114972149731497414975149761497714978149791498014981149821498314984149851498614987149881498914990149911499214993149941499514996149971499814999150001500115002150031500415005150061500715008150091501015011150121501315014150151501615017150181501915020150211502215023150241502515026150271502815029150301503115032150331503415035150361503715038150391504015041150421504315044150451504615047150481504915050150511505215053150541505515056150571505815059150601506115062150631506415065150661506715068150691507015071150721507315074150751507615077150781507915080150811508215083150841508515086150871508815089150901509115092150931509415095150961509715098150991510015101151021510315104151051510615107151081510915110151111511215113151141511515116151171511815119151201512115122151231512415125151261512715128151291513015131151321513315134151351513615137151381513915140151411514215143151441514515146151471514815149151501515115152151531515415155151561515715158151591516015161151621516315164151651516615167151681516915170151711517215173151741517515176151771517815179151801518115182151831518415185151861518715188151891519015191151921519315194151951519615197151981519915200152011520215203152041520515206152071520815209152101521115212152131521415215152161521715218152191522015221152221522315224152251522615227152281522915230152311523215233152341523515236152371523815239152401524115242152431524415245152461524715248152491525015251152521525315254152551525615257152581525915260152611526215263152641526515266152671526815269152701527115272152731527415275152761527715278152791528015281152821528315284152851528615287152881528915290152911529215293152941529515296152971529815299153001530115302153031530415305153061530715308153091531015311153121531315314153151531615317153181531915320153211532215323153241532515326153271532815329153301533115332153331533415335153361533715338153391534015341153421534315344153451534615347153481534915350153511535215353153541535515356153571535815359153601536115362153631536415365153661536715368153691537015371153721537315374153751537615377153781537915380153811538215383153841538515386153871538815389153901539115392153931539415395153961539715398153991540015401154021540315404154051540615407154081540915410154111541215413154141541515416154171541815419154201542115422154231542415425154261542715428154291543015431154321543315434154351543615437154381543915440154411544215443154441544515446154471544815449154501545115452154531545415455154561545715458154591546015461154621546315464154651546615467154681546915470154711547215473154741547515476154771547815479154801548115482154831548415485154861548715488154891549015491154921549315494154951549615497154981549915500155011550215503155041550515506155071550815509155101551115512155131551415515155161551715518155191552015521155221552315524155251552615527155281552915530155311553215533155341553515536155371553815539155401554115542155431554415545155461554715548155491555015551155521555315554155551555615557155581555915560155611556215563155641556515566155671556815569155701557115572155731557415575155761557715578155791558015581155821558315584155851558615587155881558915590155911559215593155941559515596155971559815599156001560115602156031560415605156061560715608156091561015611156121561315614156151561615617156181561915620156211562215623156241562515626156271562815629156301563115632156331563415635156361563715638156391564015641156421564315644156451564615647156481564915650156511565215653156541565515656156571565815659156601566115662156631566415665156661566715668156691567015671156721567315674156751567615677156781567915680156811568215683156841568515686156871568815689156901569115692156931569415695156961569715698156991570015701157021570315704157051570615707157081570915710157111571215713157141571515716157171571815719157201572115722157231572415725157261572715728157291573015731157321573315734157351573615737157381573915740157411574215743157441574515746157471574815749157501575115752157531575415755157561575715758157591576015761157621576315764157651576615767157681576915770157711577215773157741577515776157771577815779157801578115782157831578415785157861578715788157891579015791157921579315794157951579615797157981579915800158011580215803158041580515806158071580815809158101581115812158131581415815158161581715818158191582015821158221582315824158251582615827158281582915830158311583215833158341583515836158371583815839158401584115842158431584415845158461584715848158491585015851158521585315854158551585615857158581585915860158611586215863158641586515866158671586815869158701587115872158731587415875158761587715878158791588015881158821588315884158851588615887158881588915890158911589215893158941589515896158971589815899159001590115902159031590415905159061590715908159091591015911159121591315914159151591615917159181591915920159211592215923159241592515926159271592815929159301593115932159331593415935159361593715938159391594015941159421594315944159451594615947159481594915950159511595215953159541595515956159571595815959159601596115962159631596415965159661596715968159691597015971159721597315974159751597615977159781597915980159811598215983159841598515986159871598815989159901599115992159931599415995159961599715998159991600016001160021600316004160051600616007160081600916010160111601216013160141601516016160171601816019160201602116022160231602416025160261602716028160291603016031160321603316034160351603616037160381603916040160411604216043160441604516046160471604816049160501605116052160531605416055160561605716058160591606016061160621606316064160651606616067160681606916070160711607216073160741607516076160771607816079160801608116082160831608416085160861608716088160891609016091160921609316094160951609616097160981609916100161011610216103161041610516106161071610816109161101611116112161131611416115161161611716118161191612016121161221612316124161251612616127161281612916130161311613216133161341613516136161371613816139161401614116142161431614416145161461614716148161491615016151161521615316154161551615616157161581615916160161611616216163161641616516166161671616816169161701617116172161731617416175161761617716178161791618016181161821618316184161851618616187161881618916190161911619216193161941619516196161971619816199162001620116202162031620416205162061620716208162091621016211162121621316214162151621616217162181621916220162211622216223162241622516226162271622816229162301623116232162331623416235162361623716238162391624016241162421624316244162451624616247162481624916250162511625216253162541625516256162571625816259162601626116262162631626416265162661626716268162691627016271162721627316274162751627616277162781627916280162811628216283162841628516286162871628816289162901629116292162931629416295162961629716298162991630016301163021630316304163051630616307163081630916310163111631216313163141631516316163171631816319163201632116322163231632416325163261632716328163291633016331163321633316334163351633616337163381633916340163411634216343163441634516346163471634816349163501635116352163531635416355163561635716358163591636016361163621636316364163651636616367163681636916370163711637216373163741637516376163771637816379163801638116382163831638416385163861638716388163891639016391163921639316394163951639616397163981639916400164011640216403164041640516406164071640816409164101641116412164131641416415164161641716418164191642016421164221642316424164251642616427164281642916430164311643216433164341643516436164371643816439164401644116442164431644416445164461644716448164491645016451164521645316454164551645616457164581645916460164611646216463164641646516466164671646816469164701647116472164731647416475164761647716478164791648016481164821648316484164851648616487164881648916490164911649216493164941649516496164971649816499165001650116502165031650416505165061650716508165091651016511165121651316514165151651616517165181651916520165211652216523165241652516526165271652816529165301653116532165331653416535165361653716538165391654016541165421654316544165451654616547165481654916550165511655216553165541655516556165571655816559165601656116562165631656416565165661656716568165691657016571165721657316574165751657616577165781657916580165811658216583165841658516586165871658816589165901659116592165931659416595165961659716598165991660016601166021660316604166051660616607166081660916610166111661216613166141661516616166171661816619166201662116622166231662416625166261662716628166291663016631166321663316634166351663616637166381663916640166411664216643166441664516646166471664816649166501665116652166531665416655166561665716658166591666016661166621666316664166651666616667166681666916670166711667216673166741667516676166771667816679166801668116682166831668416685166861668716688166891669016691166921669316694166951669616697166981669916700167011670216703167041670516706167071670816709167101671116712167131671416715167161671716718167191672016721167221672316724167251672616727167281672916730167311673216733167341673516736167371673816739167401674116742167431674416745167461674716748167491675016751167521675316754167551675616757167581675916760167611676216763167641676516766167671676816769167701677116772167731677416775167761677716778167791678016781167821678316784167851678616787167881678916790167911679216793167941679516796167971679816799168001680116802168031680416805168061680716808168091681016811168121681316814168151681616817168181681916820168211682216823168241682516826168271682816829168301683116832168331683416835168361683716838168391684016841168421684316844168451684616847168481684916850168511685216853168541685516856168571685816859168601686116862168631686416865168661686716868168691687016871168721687316874168751687616877168781687916880168811688216883168841688516886168871688816889168901689116892168931689416895168961689716898168991690016901169021690316904169051690616907169081690916910169111691216913169141691516916169171691816919169201692116922169231692416925169261692716928169291693016931169321693316934169351693616937169381693916940169411694216943169441694516946169471694816949169501695116952169531695416955169561695716958169591696016961169621696316964169651696616967169681696916970169711697216973169741697516976169771697816979169801698116982169831698416985169861698716988169891699016991169921699316994169951699616997169981699917000170011700217003170041700517006170071700817009170101701117012170131701417015170161701717018170191702017021170221702317024170251702617027170281702917030170311703217033170341703517036170371703817039170401704117042170431704417045170461704717048170491705017051170521705317054170551705617057170581705917060170611706217063170641706517066170671706817069170701707117072170731707417075170761707717078170791708017081170821708317084170851708617087170881708917090170911709217093170941709517096170971709817099171001710117102171031710417105171061710717108171091711017111171121711317114171151711617117171181711917120171211712217123171241712517126171271712817129171301713117132171331713417135171361713717138171391714017141171421714317144171451714617147171481714917150171511715217153171541715517156171571715817159171601716117162171631716417165171661716717168171691717017171171721717317174171751717617177171781717917180171811718217183171841718517186171871718817189171901719117192171931719417195171961719717198171991720017201172021720317204172051720617207172081720917210172111721217213172141721517216172171721817219172201722117222172231722417225172261722717228172291723017231172321723317234172351723617237172381723917240172411724217243172441724517246172471724817249172501725117252172531725417255172561725717258172591726017261172621726317264172651726617267172681726917270172711727217273172741727517276172771727817279172801728117282172831728417285172861728717288172891729017291172921729317294172951729617297172981729917300173011730217303173041730517306173071730817309173101731117312173131731417315173161731717318173191732017321173221732317324173251732617327173281732917330173311733217333173341733517336173371733817339173401734117342173431734417345173461734717348173491735017351173521735317354173551735617357173581735917360173611736217363173641736517366173671736817369173701737117372173731737417375173761737717378173791738017381173821738317384173851738617387173881738917390173911739217393173941739517396173971739817399174001740117402174031740417405174061740717408174091741017411174121741317414174151741617417174181741917420174211742217423174241742517426174271742817429174301743117432174331743417435174361743717438174391744017441174421744317444174451744617447174481744917450174511745217453174541745517456174571745817459174601746117462174631746417465174661746717468174691747017471174721747317474174751747617477174781747917480174811748217483174841748517486174871748817489174901749117492174931749417495174961749717498174991750017501175021750317504175051750617507175081750917510175111751217513175141751517516175171751817519175201752117522175231752417525175261752717528175291753017531175321753317534175351753617537175381753917540175411754217543175441754517546175471754817549175501755117552175531755417555175561755717558175591756017561175621756317564175651756617567175681756917570175711757217573175741757517576175771757817579175801758117582175831758417585175861758717588175891759017591175921759317594175951759617597175981759917600176011760217603176041760517606176071760817609176101761117612176131761417615176161761717618176191762017621176221762317624176251762617627176281762917630176311763217633176341763517636176371763817639176401764117642176431764417645176461764717648176491765017651176521765317654176551765617657176581765917660176611766217663176641766517666176671766817669176701767117672176731767417675176761767717678176791768017681176821768317684176851768617687176881768917690176911769217693176941769517696176971769817699177001770117702177031770417705177061770717708177091771017711177121771317714177151771617717177181771917720177211772217723177241772517726177271772817729177301773117732177331773417735177361773717738177391774017741177421774317744177451774617747177481774917750177511775217753177541775517756177571775817759177601776117762177631776417765177661776717768177691777017771177721777317774177751777617777177781777917780177811778217783177841778517786177871778817789177901779117792177931779417795177961779717798177991780017801178021780317804178051780617807178081780917810178111781217813178141781517816178171781817819178201782117822178231782417825178261782717828178291783017831178321783317834178351783617837178381783917840178411784217843178441784517846178471784817849178501785117852178531785417855178561785717858178591786017861178621786317864178651786617867178681786917870178711787217873178741787517876178771787817879178801788117882178831788417885178861788717888178891789017891178921789317894178951789617897178981789917900179011790217903179041790517906179071790817909179101791117912179131791417915179161791717918179191792017921179221792317924179251792617927179281792917930179311793217933179341793517936179371793817939179401794117942179431794417945179461794717948179491795017951179521795317954179551795617957179581795917960179611796217963179641796517966179671796817969179701797117972179731797417975179761797717978179791798017981179821798317984179851798617987179881798917990179911799217993179941799517996179971799817999180001800118002180031800418005180061800718008180091801018011180121801318014180151801618017180181801918020180211802218023180241802518026180271802818029180301803118032180331803418035180361803718038180391804018041180421804318044180451804618047180481804918050180511805218053180541805518056180571805818059180601806118062180631806418065180661806718068180691807018071180721807318074180751807618077180781807918080180811808218083180841808518086180871808818089180901809118092180931809418095180961809718098180991810018101181021810318104181051810618107181081810918110181111811218113181141811518116181171811818119181201812118122181231812418125181261812718128181291813018131181321813318134181351813618137181381813918140181411814218143181441814518146181471814818149181501815118152181531815418155181561815718158181591816018161181621816318164181651816618167181681816918170181711817218173181741817518176181771817818179181801818118182181831818418185181861818718188181891819018191181921819318194181951819618197181981819918200182011820218203182041820518206182071820818209182101821118212182131821418215182161821718218182191822018221182221822318224182251822618227182281822918230182311823218233182341823518236182371823818239182401824118242182431824418245182461824718248182491825018251182521825318254182551825618257182581825918260182611826218263182641826518266182671826818269182701827118272182731827418275182761827718278182791828018281182821828318284182851828618287182881828918290182911829218293182941829518296182971829818299183001830118302183031830418305183061830718308183091831018311183121831318314183151831618317183181831918320183211832218323183241832518326183271832818329183301833118332183331833418335183361833718338183391834018341183421834318344183451834618347183481834918350183511835218353183541835518356183571835818359183601836118362183631836418365183661836718368183691837018371183721837318374183751837618377183781837918380183811838218383183841838518386183871838818389183901839118392183931839418395183961839718398183991840018401184021840318404184051840618407184081840918410184111841218413184141841518416184171841818419184201842118422184231842418425184261842718428184291843018431184321843318434184351843618437184381843918440184411844218443184441844518446184471844818449184501845118452184531845418455184561845718458184591846018461184621846318464184651846618467184681846918470184711847218473184741847518476
  1. #! /bin/sh
  2. # Guess values for system-dependent variables and create Makefiles.
  3. # Generated by GNU Autoconf 2.69 for neon 0.30.1.
  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.1'
  549. PACKAGE_STRING='neon 0.30.1'
  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. OTOOL64
  613. OTOOL
  614. LIPO
  615. NMEDIT
  616. DSYMUTIL
  617. MANIFEST_TOOL
  618. AWK
  619. RANLIB
  620. STRIP
  621. ac_ct_AR
  622. AR
  623. DLLTOOL
  624. OBJDUMP
  625. LN_S
  626. NM
  627. ac_ct_DUMPBIN
  628. DUMPBIN
  629. LD
  630. FGREP
  631. SED
  632. host_os
  633. host_vendor
  634. host_cpu
  635. host
  636. build_os
  637. build_vendor
  638. build_cpu
  639. build
  640. LIBTOOL
  641. NEON_LTLIBS
  642. NEON_LIBS
  643. NEON_CFLAGS
  644. NE_FLAG_LIBPXY
  645. KRB5_CONFIG
  646. NEON_SUPPORTS_SSL
  647. NE_FLAG_TS_SSL
  648. GNUTLS_CONFIG
  649. NE_FLAG_SSL
  650. PKG_CONFIG
  651. NE_FLAG_ZLIB
  652. NE_FLAG_IPV6
  653. LIBOBJS
  654. NE_FLAG_LFS
  655. SET_MAKE
  656. EGREP
  657. GREP
  658. CPP
  659. OBJEXT
  660. EXEEXT
  661. ac_ct_CC
  662. CPPFLAGS
  663. LDFLAGS
  664. CFLAGS
  665. CC
  666. INSTALL_DATA
  667. INSTALL_SCRIPT
  668. INSTALL_PROGRAM
  669. target_alias
  670. host_alias
  671. build_alias
  672. LIBS
  673. ECHO_T
  674. ECHO_N
  675. ECHO_C
  676. DEFS
  677. mandir
  678. localedir
  679. libdir
  680. psdir
  681. pdfdir
  682. dvidir
  683. htmldir
  684. infodir
  685. docdir
  686. oldincludedir
  687. includedir
  688. localstatedir
  689. sharedstatedir
  690. sysconfdir
  691. datadir
  692. datarootdir
  693. libexecdir
  694. sbindir
  695. bindir
  696. program_transform_name
  697. prefix
  698. exec_prefix
  699. PACKAGE_URL
  700. PACKAGE_BUGREPORT
  701. PACKAGE_STRING
  702. PACKAGE_VERSION
  703. PACKAGE_TARNAME
  704. PACKAGE_NAME
  705. PATH_SEPARATOR
  706. SHELL'
  707. ac_subst_files=''
  708. ac_user_opts='
  709. enable_option_checking
  710. with_libs
  711. enable_webdav
  712. with_zlib
  713. with_ssl
  714. with_egd
  715. with_pakchois
  716. with_ca_bundle
  717. enable_threadsafe_ssl
  718. with_gssapi
  719. with_libproxy
  720. enable_shared
  721. enable_static
  722. with_pic
  723. enable_fast_install
  724. with_gnu_ld
  725. with_sysroot
  726. enable_libtool_lock
  727. with_libxml2
  728. with_expat
  729. enable_nls
  730. enable_debug
  731. enable_warnings
  732. enable_memleak
  733. enable_tests_install
  734. enable_ld_version_script
  735. '
  736. ac_precious_vars='build_alias
  737. host_alias
  738. target_alias
  739. CC
  740. CFLAGS
  741. LDFLAGS
  742. LIBS
  743. CPPFLAGS
  744. CPP'
  745. # Initialize some variables set by options.
  746. ac_init_help=
  747. ac_init_version=false
  748. ac_unrecognized_opts=
  749. ac_unrecognized_sep=
  750. # The variables have the same names as the options, with
  751. # dashes changed to underlines.
  752. cache_file=/dev/null
  753. exec_prefix=NONE
  754. no_create=
  755. no_recursion=
  756. prefix=NONE
  757. program_prefix=NONE
  758. program_suffix=NONE
  759. program_transform_name=s,x,x,
  760. silent=
  761. site=
  762. srcdir=
  763. verbose=
  764. x_includes=NONE
  765. x_libraries=NONE
  766. # Installation directory options.
  767. # These are left unexpanded so users can "make install exec_prefix=/foo"
  768. # and all the variables that are supposed to be based on exec_prefix
  769. # by default will actually change.
  770. # Use braces instead of parens because sh, perl, etc. also accept them.
  771. # (The list follows the same order as the GNU Coding Standards.)
  772. bindir='${exec_prefix}/bin'
  773. sbindir='${exec_prefix}/sbin'
  774. libexecdir='${exec_prefix}/libexec'
  775. datarootdir='${prefix}/share'
  776. datadir='${datarootdir}'
  777. sysconfdir='${prefix}/etc'
  778. sharedstatedir='${prefix}/com'
  779. localstatedir='${prefix}/var'
  780. includedir='${prefix}/include'
  781. oldincludedir='/usr/include'
  782. docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
  783. infodir='${datarootdir}/info'
  784. htmldir='${docdir}'
  785. dvidir='${docdir}'
  786. pdfdir='${docdir}'
  787. psdir='${docdir}'
  788. libdir='${exec_prefix}/lib'
  789. localedir='${datarootdir}/locale'
  790. mandir='${datarootdir}/man'
  791. ac_prev=
  792. ac_dashdash=
  793. for ac_option
  794. do
  795. # If the previous option needs an argument, assign it.
  796. if test -n "$ac_prev"; then
  797. eval $ac_prev=\$ac_option
  798. ac_prev=
  799. continue
  800. fi
  801. case $ac_option in
  802. *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
  803. *=) ac_optarg= ;;
  804. *) ac_optarg=yes ;;
  805. esac
  806. # Accept the important Cygnus configure options, so we can diagnose typos.
  807. case $ac_dashdash$ac_option in
  808. --)
  809. ac_dashdash=yes ;;
  810. -bindir | --bindir | --bindi | --bind | --bin | --bi)
  811. ac_prev=bindir ;;
  812. -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
  813. bindir=$ac_optarg ;;
  814. -build | --build | --buil | --bui | --bu)
  815. ac_prev=build_alias ;;
  816. -build=* | --build=* | --buil=* | --bui=* | --bu=*)
  817. build_alias=$ac_optarg ;;
  818. -cache-file | --cache-file | --cache-fil | --cache-fi \
  819. | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
  820. ac_prev=cache_file ;;
  821. -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
  822. | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
  823. cache_file=$ac_optarg ;;
  824. --config-cache | -C)
  825. cache_file=config.cache ;;
  826. -datadir | --datadir | --datadi | --datad)
  827. ac_prev=datadir ;;
  828. -datadir=* | --datadir=* | --datadi=* | --datad=*)
  829. datadir=$ac_optarg ;;
  830. -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
  831. | --dataroo | --dataro | --datar)
  832. ac_prev=datarootdir ;;
  833. -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
  834. | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
  835. datarootdir=$ac_optarg ;;
  836. -disable-* | --disable-*)
  837. ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
  838. # Reject names that are not valid shell variable names.
  839. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  840. as_fn_error $? "invalid feature name: $ac_useropt"
  841. ac_useropt_orig=$ac_useropt
  842. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  843. case $ac_user_opts in
  844. *"
  845. "enable_$ac_useropt"
  846. "*) ;;
  847. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
  848. ac_unrecognized_sep=', ';;
  849. esac
  850. eval enable_$ac_useropt=no ;;
  851. -docdir | --docdir | --docdi | --doc | --do)
  852. ac_prev=docdir ;;
  853. -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
  854. docdir=$ac_optarg ;;
  855. -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
  856. ac_prev=dvidir ;;
  857. -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
  858. dvidir=$ac_optarg ;;
  859. -enable-* | --enable-*)
  860. ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
  861. # Reject names that are not valid shell variable names.
  862. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  863. as_fn_error $? "invalid feature name: $ac_useropt"
  864. ac_useropt_orig=$ac_useropt
  865. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  866. case $ac_user_opts in
  867. *"
  868. "enable_$ac_useropt"
  869. "*) ;;
  870. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
  871. ac_unrecognized_sep=', ';;
  872. esac
  873. eval enable_$ac_useropt=\$ac_optarg ;;
  874. -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
  875. | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
  876. | --exec | --exe | --ex)
  877. ac_prev=exec_prefix ;;
  878. -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
  879. | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
  880. | --exec=* | --exe=* | --ex=*)
  881. exec_prefix=$ac_optarg ;;
  882. -gas | --gas | --ga | --g)
  883. # Obsolete; use --with-gas.
  884. with_gas=yes ;;
  885. -help | --help | --hel | --he | -h)
  886. ac_init_help=long ;;
  887. -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
  888. ac_init_help=recursive ;;
  889. -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
  890. ac_init_help=short ;;
  891. -host | --host | --hos | --ho)
  892. ac_prev=host_alias ;;
  893. -host=* | --host=* | --hos=* | --ho=*)
  894. host_alias=$ac_optarg ;;
  895. -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
  896. ac_prev=htmldir ;;
  897. -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
  898. | --ht=*)
  899. htmldir=$ac_optarg ;;
  900. -includedir | --includedir | --includedi | --included | --include \
  901. | --includ | --inclu | --incl | --inc)
  902. ac_prev=includedir ;;
  903. -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
  904. | --includ=* | --inclu=* | --incl=* | --inc=*)
  905. includedir=$ac_optarg ;;
  906. -infodir | --infodir | --infodi | --infod | --info | --inf)
  907. ac_prev=infodir ;;
  908. -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
  909. infodir=$ac_optarg ;;
  910. -libdir | --libdir | --libdi | --libd)
  911. ac_prev=libdir ;;
  912. -libdir=* | --libdir=* | --libdi=* | --libd=*)
  913. libdir=$ac_optarg ;;
  914. -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
  915. | --libexe | --libex | --libe)
  916. ac_prev=libexecdir ;;
  917. -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
  918. | --libexe=* | --libex=* | --libe=*)
  919. libexecdir=$ac_optarg ;;
  920. -localedir | --localedir | --localedi | --localed | --locale)
  921. ac_prev=localedir ;;
  922. -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
  923. localedir=$ac_optarg ;;
  924. -localstatedir | --localstatedir | --localstatedi | --localstated \
  925. | --localstate | --localstat | --localsta | --localst | --locals)
  926. ac_prev=localstatedir ;;
  927. -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
  928. | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
  929. localstatedir=$ac_optarg ;;
  930. -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
  931. ac_prev=mandir ;;
  932. -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
  933. mandir=$ac_optarg ;;
  934. -nfp | --nfp | --nf)
  935. # Obsolete; use --without-fp.
  936. with_fp=no ;;
  937. -no-create | --no-create | --no-creat | --no-crea | --no-cre \
  938. | --no-cr | --no-c | -n)
  939. no_create=yes ;;
  940. -no-recursion | --no-recursion | --no-recursio | --no-recursi \
  941. | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
  942. no_recursion=yes ;;
  943. -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
  944. | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
  945. | --oldin | --oldi | --old | --ol | --o)
  946. ac_prev=oldincludedir ;;
  947. -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
  948. | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
  949. | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
  950. oldincludedir=$ac_optarg ;;
  951. -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
  952. ac_prev=prefix ;;
  953. -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
  954. prefix=$ac_optarg ;;
  955. -program-prefix | --program-prefix | --program-prefi | --program-pref \
  956. | --program-pre | --program-pr | --program-p)
  957. ac_prev=program_prefix ;;
  958. -program-prefix=* | --program-prefix=* | --program-prefi=* \
  959. | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
  960. program_prefix=$ac_optarg ;;
  961. -program-suffix | --program-suffix | --program-suffi | --program-suff \
  962. | --program-suf | --program-su | --program-s)
  963. ac_prev=program_suffix ;;
  964. -program-suffix=* | --program-suffix=* | --program-suffi=* \
  965. | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
  966. program_suffix=$ac_optarg ;;
  967. -program-transform-name | --program-transform-name \
  968. | --program-transform-nam | --program-transform-na \
  969. | --program-transform-n | --program-transform- \
  970. | --program-transform | --program-transfor \
  971. | --program-transfo | --program-transf \
  972. | --program-trans | --program-tran \
  973. | --progr-tra | --program-tr | --program-t)
  974. ac_prev=program_transform_name ;;
  975. -program-transform-name=* | --program-transform-name=* \
  976. | --program-transform-nam=* | --program-transform-na=* \
  977. | --program-transform-n=* | --program-transform-=* \
  978. | --program-transform=* | --program-transfor=* \
  979. | --program-transfo=* | --program-transf=* \
  980. | --program-trans=* | --program-tran=* \
  981. | --progr-tra=* | --program-tr=* | --program-t=*)
  982. program_transform_name=$ac_optarg ;;
  983. -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
  984. ac_prev=pdfdir ;;
  985. -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
  986. pdfdir=$ac_optarg ;;
  987. -psdir | --psdir | --psdi | --psd | --ps)
  988. ac_prev=psdir ;;
  989. -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
  990. psdir=$ac_optarg ;;
  991. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  992. | -silent | --silent | --silen | --sile | --sil)
  993. silent=yes ;;
  994. -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
  995. ac_prev=sbindir ;;
  996. -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
  997. | --sbi=* | --sb=*)
  998. sbindir=$ac_optarg ;;
  999. -sharedstatedir | --sharedstatedir | --sharedstatedi \
  1000. | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
  1001. | --sharedst | --shareds | --shared | --share | --shar \
  1002. | --sha | --sh)
  1003. ac_prev=sharedstatedir ;;
  1004. -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
  1005. | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
  1006. | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
  1007. | --sha=* | --sh=*)
  1008. sharedstatedir=$ac_optarg ;;
  1009. -site | --site | --sit)
  1010. ac_prev=site ;;
  1011. -site=* | --site=* | --sit=*)
  1012. site=$ac_optarg ;;
  1013. -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
  1014. ac_prev=srcdir ;;
  1015. -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
  1016. srcdir=$ac_optarg ;;
  1017. -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
  1018. | --syscon | --sysco | --sysc | --sys | --sy)
  1019. ac_prev=sysconfdir ;;
  1020. -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
  1021. | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
  1022. sysconfdir=$ac_optarg ;;
  1023. -target | --target | --targe | --targ | --tar | --ta | --t)
  1024. ac_prev=target_alias ;;
  1025. -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
  1026. target_alias=$ac_optarg ;;
  1027. -v | -verbose | --verbose | --verbos | --verbo | --verb)
  1028. verbose=yes ;;
  1029. -version | --version | --versio | --versi | --vers | -V)
  1030. ac_init_version=: ;;
  1031. -with-* | --with-*)
  1032. ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
  1033. # Reject names that are not valid shell variable names.
  1034. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  1035. as_fn_error $? "invalid package name: $ac_useropt"
  1036. ac_useropt_orig=$ac_useropt
  1037. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  1038. case $ac_user_opts in
  1039. *"
  1040. "with_$ac_useropt"
  1041. "*) ;;
  1042. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
  1043. ac_unrecognized_sep=', ';;
  1044. esac
  1045. eval with_$ac_useropt=\$ac_optarg ;;
  1046. -without-* | --without-*)
  1047. ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
  1048. # Reject names that are not valid shell variable names.
  1049. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  1050. as_fn_error $? "invalid package name: $ac_useropt"
  1051. ac_useropt_orig=$ac_useropt
  1052. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  1053. case $ac_user_opts in
  1054. *"
  1055. "with_$ac_useropt"
  1056. "*) ;;
  1057. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
  1058. ac_unrecognized_sep=', ';;
  1059. esac
  1060. eval with_$ac_useropt=no ;;
  1061. --x)
  1062. # Obsolete; use --with-x.
  1063. with_x=yes ;;
  1064. -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
  1065. | --x-incl | --x-inc | --x-in | --x-i)
  1066. ac_prev=x_includes ;;
  1067. -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
  1068. | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
  1069. x_includes=$ac_optarg ;;
  1070. -x-libraries | --x-libraries | --x-librarie | --x-librari \
  1071. | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
  1072. ac_prev=x_libraries ;;
  1073. -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
  1074. | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
  1075. x_libraries=$ac_optarg ;;
  1076. -*) as_fn_error $? "unrecognized option: \`$ac_option'
  1077. Try \`$0 --help' for more information"
  1078. ;;
  1079. *=*)
  1080. ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
  1081. # Reject names that are not valid shell variable names.
  1082. case $ac_envvar in #(
  1083. '' | [0-9]* | *[!_$as_cr_alnum]* )
  1084. as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
  1085. esac
  1086. eval $ac_envvar=\$ac_optarg
  1087. export $ac_envvar ;;
  1088. *)
  1089. # FIXME: should be removed in autoconf 3.0.
  1090. $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
  1091. expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
  1092. $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
  1093. : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
  1094. ;;
  1095. esac
  1096. done
  1097. if test -n "$ac_prev"; then
  1098. ac_option=--`echo $ac_prev | sed 's/_/-/g'`
  1099. as_fn_error $? "missing argument to $ac_option"
  1100. fi
  1101. if test -n "$ac_unrecognized_opts"; then
  1102. case $enable_option_checking in
  1103. no) ;;
  1104. fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
  1105. *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
  1106. esac
  1107. fi
  1108. # Check all directory arguments for consistency.
  1109. for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
  1110. datadir sysconfdir sharedstatedir localstatedir includedir \
  1111. oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
  1112. libdir localedir mandir
  1113. do
  1114. eval ac_val=\$$ac_var
  1115. # Remove trailing slashes.
  1116. case $ac_val in
  1117. */ )
  1118. ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
  1119. eval $ac_var=\$ac_val;;
  1120. esac
  1121. # Be sure to have absolute directory names.
  1122. case $ac_val in
  1123. [\\/$]* | ?:[\\/]* ) continue;;
  1124. NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
  1125. esac
  1126. as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
  1127. done
  1128. # There might be people who depend on the old broken behavior: `$host'
  1129. # used to hold the argument of --host etc.
  1130. # FIXME: To remove some day.
  1131. build=$build_alias
  1132. host=$host_alias
  1133. target=$target_alias
  1134. # FIXME: To remove some day.
  1135. if test "x$host_alias" != x; then
  1136. if test "x$build_alias" = x; then
  1137. cross_compiling=maybe
  1138. elif test "x$build_alias" != "x$host_alias"; then
  1139. cross_compiling=yes
  1140. fi
  1141. fi
  1142. ac_tool_prefix=
  1143. test -n "$host_alias" && ac_tool_prefix=$host_alias-
  1144. test "$silent" = yes && exec 6>/dev/null
  1145. ac_pwd=`pwd` && test -n "$ac_pwd" &&
  1146. ac_ls_di=`ls -di .` &&
  1147. ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
  1148. as_fn_error $? "working directory cannot be determined"
  1149. test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
  1150. as_fn_error $? "pwd does not report name of working directory"
  1151. # Find the source files, if location was not specified.
  1152. if test -z "$srcdir"; then
  1153. ac_srcdir_defaulted=yes
  1154. # Try the directory containing this script, then the parent directory.
  1155. ac_confdir=`$as_dirname -- "$as_myself" ||
  1156. $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  1157. X"$as_myself" : 'X\(//\)[^/]' \| \
  1158. X"$as_myself" : 'X\(//\)$' \| \
  1159. X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
  1160. $as_echo X"$as_myself" |
  1161. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  1162. s//\1/
  1163. q
  1164. }
  1165. /^X\(\/\/\)[^/].*/{
  1166. s//\1/
  1167. q
  1168. }
  1169. /^X\(\/\/\)$/{
  1170. s//\1/
  1171. q
  1172. }
  1173. /^X\(\/\).*/{
  1174. s//\1/
  1175. q
  1176. }
  1177. s/.*/./; q'`
  1178. srcdir=$ac_confdir
  1179. if test ! -r "$srcdir/$ac_unique_file"; then
  1180. srcdir=..
  1181. fi
  1182. else
  1183. ac_srcdir_defaulted=no
  1184. fi
  1185. if test ! -r "$srcdir/$ac_unique_file"; then
  1186. test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
  1187. as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
  1188. fi
  1189. ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
  1190. ac_abs_confdir=`(
  1191. cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
  1192. pwd)`
  1193. # When building in place, set srcdir=.
  1194. if test "$ac_abs_confdir" = "$ac_pwd"; then
  1195. srcdir=.
  1196. fi
  1197. # Remove unnecessary trailing slashes from srcdir.
  1198. # Double slashes in file names in object file debugging info
  1199. # mess up M-x gdb in Emacs.
  1200. case $srcdir in
  1201. */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
  1202. esac
  1203. for ac_var in $ac_precious_vars; do
  1204. eval ac_env_${ac_var}_set=\${${ac_var}+set}
  1205. eval ac_env_${ac_var}_value=\$${ac_var}
  1206. eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
  1207. eval ac_cv_env_${ac_var}_value=\$${ac_var}
  1208. done
  1209. #
  1210. # Report the --help message.
  1211. #
  1212. if test "$ac_init_help" = "long"; then
  1213. # Omit some internal or obsolete options to make the list less imposing.
  1214. # This message is too long to be a string in the A/UX 3.1 sh.
  1215. cat <<_ACEOF
  1216. \`configure' configures neon 0.30.1 to adapt to many kinds of systems.
  1217. Usage: $0 [OPTION]... [VAR=VALUE]...
  1218. To assign environment variables (e.g., CC, CFLAGS...), specify them as
  1219. VAR=VALUE. See below for descriptions of some of the useful variables.
  1220. Defaults for the options are specified in brackets.
  1221. Configuration:
  1222. -h, --help display this help and exit
  1223. --help=short display options specific to this package
  1224. --help=recursive display the short help of all the included packages
  1225. -V, --version display version information and exit
  1226. -q, --quiet, --silent do not print \`checking ...' messages
  1227. --cache-file=FILE cache test results in FILE [disabled]
  1228. -C, --config-cache alias for \`--cache-file=config.cache'
  1229. -n, --no-create do not create output files
  1230. --srcdir=DIR find the sources in DIR [configure dir or \`..']
  1231. Installation directories:
  1232. --prefix=PREFIX install architecture-independent files in PREFIX
  1233. [$ac_default_prefix]
  1234. --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
  1235. [PREFIX]
  1236. By default, \`make install' will install all the files in
  1237. \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
  1238. an installation prefix other than \`$ac_default_prefix' using \`--prefix',
  1239. for instance \`--prefix=\$HOME'.
  1240. For better control, use the options below.
  1241. Fine tuning of the installation directories:
  1242. --bindir=DIR user executables [EPREFIX/bin]
  1243. --sbindir=DIR system admin executables [EPREFIX/sbin]
  1244. --libexecdir=DIR program executables [EPREFIX/libexec]
  1245. --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
  1246. --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
  1247. --localstatedir=DIR modifiable single-machine data [PREFIX/var]
  1248. --libdir=DIR object code libraries [EPREFIX/lib]
  1249. --includedir=DIR C header files [PREFIX/include]
  1250. --oldincludedir=DIR C header files for non-gcc [/usr/include]
  1251. --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
  1252. --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
  1253. --infodir=DIR info documentation [DATAROOTDIR/info]
  1254. --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
  1255. --mandir=DIR man documentation [DATAROOTDIR/man]
  1256. --docdir=DIR documentation root [DATAROOTDIR/doc/neon]
  1257. --htmldir=DIR html documentation [DOCDIR]
  1258. --dvidir=DIR dvi documentation [DOCDIR]
  1259. --pdfdir=DIR pdf documentation [DOCDIR]
  1260. --psdir=DIR ps documentation [DOCDIR]
  1261. _ACEOF
  1262. cat <<\_ACEOF
  1263. System types:
  1264. --build=BUILD configure for building on BUILD [guessed]
  1265. --host=HOST cross-compile to build programs to run on HOST [BUILD]
  1266. _ACEOF
  1267. fi
  1268. if test -n "$ac_init_help"; then
  1269. case $ac_init_help in
  1270. short | recursive ) echo "Configuration of neon 0.30.1:";;
  1271. esac
  1272. cat <<\_ACEOF
  1273. Optional Features:
  1274. --disable-option-checking ignore unrecognized --enable/--with options
  1275. --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
  1276. --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
  1277. --disable-webdav disable WebDAV support
  1278. --enable-threadsafe-ssl=posix
  1279. enable SSL library thread-safety using POSIX
  1280. threads: suitable CC/CFLAGS/LIBS must be used to
  1281. make the POSIX library interfaces available
  1282. --enable-shared[=PKGS] build shared libraries [default=no]
  1283. --enable-static[=PKGS] build static libraries [default=yes]
  1284. --enable-fast-install[=PKGS]
  1285. optimize for fast installation [default=yes]
  1286. --disable-libtool-lock avoid locking (might break parallel builds)
  1287. --disable-nls disable internationalization support
  1288. --disable-debug disable runtime debugging messages
  1289. --enable-warnings enable compiler warnings
  1290. --enable-memleak for test builds only: enable memory leak checking
  1291. --enable-tests-install enable installation of the test suite
  1292. --enable-ld-version-script
  1293. enable linker version script (default is enabled
  1294. when possible)
  1295. Optional Packages:
  1296. --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
  1297. --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
  1298. --with-libs=DIR[:DIR2...] look for support libraries in DIR/{bin,lib,include}
  1299. --without-zlib disable zlib support
  1300. --with-ssl=openssl|gnutls
  1301. enable SSL support (default OpenSSL)
  1302. --with-egd[=PATH] enable EGD support [using EGD socket at PATH]
  1303. --without-pakchois disable support for PKCS#11 using pakchois
  1304. --with-ca-bundle specify filename of an SSL CA root bundle
  1305. --without-gssapi disable GSSAPI support
  1306. --without-libproxy disable libproxy support
  1307. --with-pic[=PKGS] try to use only PIC/non-PIC objects [default=use
  1308. both]
  1309. --with-gnu-ld assume the C compiler uses GNU ld [default=no]
  1310. --with-sysroot=DIR Search for dependent libraries within DIR
  1311. (or the compiler's sysroot if not specified).
  1312. --with-libxml2 force use of libxml 2.x
  1313. --with-expat force use of expat
  1314. Some influential environment variables:
  1315. CC C compiler command
  1316. CFLAGS C compiler flags
  1317. LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
  1318. nonstandard directory <lib dir>
  1319. LIBS libraries to pass to the linker, e.g. -l<library>
  1320. CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
  1321. you have headers in a nonstandard directory <include dir>
  1322. CPP C preprocessor
  1323. Use these variables to override the choices made by `configure' or to help
  1324. it to find libraries and programs with nonstandard names/locations.
  1325. Report bugs to <[email protected]>.
  1326. _ACEOF
  1327. ac_status=$?
  1328. fi
  1329. if test "$ac_init_help" = "recursive"; then
  1330. # If there are subdirs, report their specific --help.
  1331. for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
  1332. test -d "$ac_dir" ||
  1333. { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
  1334. continue
  1335. ac_builddir=.
  1336. case "$ac_dir" in
  1337. .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
  1338. *)
  1339. ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
  1340. # A ".." for each directory in $ac_dir_suffix.
  1341. ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
  1342. case $ac_top_builddir_sub in
  1343. "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
  1344. *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
  1345. esac ;;
  1346. esac
  1347. ac_abs_top_builddir=$ac_pwd
  1348. ac_abs_builddir=$ac_pwd$ac_dir_suffix
  1349. # for backward compatibility:
  1350. ac_top_builddir=$ac_top_build_prefix
  1351. case $srcdir in
  1352. .) # We are building in place.
  1353. ac_srcdir=.
  1354. ac_top_srcdir=$ac_top_builddir_sub
  1355. ac_abs_top_srcdir=$ac_pwd ;;
  1356. [\\/]* | ?:[\\/]* ) # Absolute name.
  1357. ac_srcdir=$srcdir$ac_dir_suffix;
  1358. ac_top_srcdir=$srcdir
  1359. ac_abs_top_srcdir=$srcdir ;;
  1360. *) # Relative name.
  1361. ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
  1362. ac_top_srcdir=$ac_top_build_prefix$srcdir
  1363. ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
  1364. esac
  1365. ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
  1366. cd "$ac_dir" || { ac_status=$?; continue; }
  1367. # Check for guested configure.
  1368. if test -f "$ac_srcdir/configure.gnu"; then
  1369. echo &&
  1370. $SHELL "$ac_srcdir/configure.gnu" --help=recursive
  1371. elif test -f "$ac_srcdir/configure"; then
  1372. echo &&
  1373. $SHELL "$ac_srcdir/configure" --help=recursive
  1374. else
  1375. $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
  1376. fi || ac_status=$?
  1377. cd "$ac_pwd" || { ac_status=$?; break; }
  1378. done
  1379. fi
  1380. test -n "$ac_init_help" && exit $ac_status
  1381. if $ac_init_version; then
  1382. cat <<\_ACEOF
  1383. neon configure 0.30.1
  1384. generated by GNU Autoconf 2.69
  1385. Copyright (C) 2012 Free Software Foundation, Inc.
  1386. This configure script is free software; the Free Software Foundation
  1387. gives unlimited permission to copy, distribute and modify it.
  1388. Copyright 2000-2010 Joe Orton and others
  1389. This configure script may be copied, distributed and modified under the
  1390. terms of the GNU Library General Public license; see src/COPYING.LIB for
  1391. more details.
  1392. _ACEOF
  1393. exit
  1394. fi
  1395. ## ------------------------ ##
  1396. ## Autoconf initialization. ##
  1397. ## ------------------------ ##
  1398. # ac_fn_c_try_compile LINENO
  1399. # --------------------------
  1400. # Try to compile conftest.$ac_ext, and return whether this succeeded.
  1401. ac_fn_c_try_compile ()
  1402. {
  1403. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1404. rm -f conftest.$ac_objext
  1405. if { { ac_try="$ac_compile"
  1406. case "(($ac_try" in
  1407. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1408. *) ac_try_echo=$ac_try;;
  1409. esac
  1410. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1411. $as_echo "$ac_try_echo"; } >&5
  1412. (eval "$ac_compile") 2>conftest.err
  1413. ac_status=$?
  1414. if test -s conftest.err; then
  1415. grep -v '^ *+' conftest.err >conftest.er1
  1416. cat conftest.er1 >&5
  1417. mv -f conftest.er1 conftest.err
  1418. fi
  1419. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1420. test $ac_status = 0; } && {
  1421. test -z "$ac_c_werror_flag" ||
  1422. test ! -s conftest.err
  1423. } && test -s conftest.$ac_objext; then :
  1424. ac_retval=0
  1425. else
  1426. $as_echo "$as_me: failed program was:" >&5
  1427. sed 's/^/| /' conftest.$ac_ext >&5
  1428. ac_retval=1
  1429. fi
  1430. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1431. as_fn_set_status $ac_retval
  1432. } # ac_fn_c_try_compile
  1433. # ac_fn_c_try_cpp LINENO
  1434. # ----------------------
  1435. # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
  1436. ac_fn_c_try_cpp ()
  1437. {
  1438. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1439. if { { ac_try="$ac_cpp conftest.$ac_ext"
  1440. case "(($ac_try" in
  1441. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1442. *) ac_try_echo=$ac_try;;
  1443. esac
  1444. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1445. $as_echo "$ac_try_echo"; } >&5
  1446. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
  1447. ac_status=$?
  1448. if test -s conftest.err; then
  1449. grep -v '^ *+' conftest.err >conftest.er1
  1450. cat conftest.er1 >&5
  1451. mv -f conftest.er1 conftest.err
  1452. fi
  1453. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1454. test $ac_status = 0; } > conftest.i && {
  1455. test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
  1456. test ! -s conftest.err
  1457. }; then :
  1458. ac_retval=0
  1459. else
  1460. $as_echo "$as_me: failed program was:" >&5
  1461. sed 's/^/| /' conftest.$ac_ext >&5
  1462. ac_retval=1
  1463. fi
  1464. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1465. as_fn_set_status $ac_retval
  1466. } # ac_fn_c_try_cpp
  1467. # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
  1468. # -------------------------------------------------------
  1469. # Tests whether HEADER exists, giving a warning if it cannot be compiled using
  1470. # the include files in INCLUDES and setting the cache variable VAR
  1471. # accordingly.
  1472. ac_fn_c_check_header_mongrel ()
  1473. {
  1474. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1475. if eval \${$3+:} false; then :
  1476. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  1477. $as_echo_n "checking for $2... " >&6; }
  1478. if eval \${$3+:} false; then :
  1479. $as_echo_n "(cached) " >&6
  1480. fi
  1481. eval ac_res=\$$3
  1482. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1483. $as_echo "$ac_res" >&6; }
  1484. else
  1485. # Is the header compilable?
  1486. { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
  1487. $as_echo_n "checking $2 usability... " >&6; }
  1488. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1489. /* end confdefs.h. */
  1490. $4
  1491. #include <$2>
  1492. _ACEOF
  1493. if ac_fn_c_try_compile "$LINENO"; then :
  1494. ac_header_compiler=yes
  1495. else
  1496. ac_header_compiler=no
  1497. fi
  1498. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  1499. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
  1500. $as_echo "$ac_header_compiler" >&6; }
  1501. # Is the header present?
  1502. { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
  1503. $as_echo_n "checking $2 presence... " >&6; }
  1504. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1505. /* end confdefs.h. */
  1506. #include <$2>
  1507. _ACEOF
  1508. if ac_fn_c_try_cpp "$LINENO"; then :
  1509. ac_header_preproc=yes
  1510. else
  1511. ac_header_preproc=no
  1512. fi
  1513. rm -f conftest.err conftest.i conftest.$ac_ext
  1514. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
  1515. $as_echo "$ac_header_preproc" >&6; }
  1516. # So? What about this header?
  1517. case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
  1518. yes:no: )
  1519. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
  1520. $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
  1521. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
  1522. $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
  1523. ;;
  1524. no:yes:* )
  1525. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
  1526. $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
  1527. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
  1528. $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
  1529. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
  1530. $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
  1531. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
  1532. $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
  1533. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
  1534. $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
  1535. ( $as_echo "## ---------------------------------------- ##
  1536. ## Report this to [email protected] ##
  1537. ## ---------------------------------------- ##"
  1538. ) | sed "s/^/$as_me: WARNING: /" >&2
  1539. ;;
  1540. esac
  1541. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  1542. $as_echo_n "checking for $2... " >&6; }
  1543. if eval \${$3+:} false; then :
  1544. $as_echo_n "(cached) " >&6
  1545. else
  1546. eval "$3=\$ac_header_compiler"
  1547. fi
  1548. eval ac_res=\$$3
  1549. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1550. $as_echo "$ac_res" >&6; }
  1551. fi
  1552. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1553. } # ac_fn_c_check_header_mongrel
  1554. # ac_fn_c_try_run LINENO
  1555. # ----------------------
  1556. # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
  1557. # that executables *can* be run.
  1558. ac_fn_c_try_run ()
  1559. {
  1560. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1561. if { { ac_try="$ac_link"
  1562. case "(($ac_try" in
  1563. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1564. *) ac_try_echo=$ac_try;;
  1565. esac
  1566. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1567. $as_echo "$ac_try_echo"; } >&5
  1568. (eval "$ac_link") 2>&5
  1569. ac_status=$?
  1570. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1571. test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
  1572. { { case "(($ac_try" in
  1573. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1574. *) ac_try_echo=$ac_try;;
  1575. esac
  1576. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1577. $as_echo "$ac_try_echo"; } >&5
  1578. (eval "$ac_try") 2>&5
  1579. ac_status=$?
  1580. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1581. test $ac_status = 0; }; }; then :
  1582. ac_retval=0
  1583. else
  1584. $as_echo "$as_me: program exited with status $ac_status" >&5
  1585. $as_echo "$as_me: failed program was:" >&5
  1586. sed 's/^/| /' conftest.$ac_ext >&5
  1587. ac_retval=$ac_status
  1588. fi
  1589. rm -rf conftest.dSYM conftest_ipa8_conftest.oo
  1590. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1591. as_fn_set_status $ac_retval
  1592. } # ac_fn_c_try_run
  1593. # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
  1594. # -------------------------------------------------------
  1595. # Tests whether HEADER exists and can be compiled using the include files in
  1596. # INCLUDES, setting the cache variable VAR accordingly.
  1597. ac_fn_c_check_header_compile ()
  1598. {
  1599. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1600. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  1601. $as_echo_n "checking for $2... " >&6; }
  1602. if eval \${$3+:} false; then :
  1603. $as_echo_n "(cached) " >&6
  1604. else
  1605. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1606. /* end confdefs.h. */
  1607. $4
  1608. #include <$2>
  1609. _ACEOF
  1610. if ac_fn_c_try_compile "$LINENO"; then :
  1611. eval "$3=yes"
  1612. else
  1613. eval "$3=no"
  1614. fi
  1615. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  1616. fi
  1617. eval ac_res=\$$3
  1618. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1619. $as_echo "$ac_res" >&6; }
  1620. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1621. } # ac_fn_c_check_header_compile
  1622. # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
  1623. # -------------------------------------------
  1624. # Tests whether TYPE exists after having included INCLUDES, setting cache
  1625. # variable VAR accordingly.
  1626. ac_fn_c_check_type ()
  1627. {
  1628. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1629. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  1630. $as_echo_n "checking for $2... " >&6; }
  1631. if eval \${$3+:} false; then :
  1632. $as_echo_n "(cached) " >&6
  1633. else
  1634. eval "$3=no"
  1635. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1636. /* end confdefs.h. */
  1637. $4
  1638. int
  1639. main ()
  1640. {
  1641. if (sizeof ($2))
  1642. return 0;
  1643. ;
  1644. return 0;
  1645. }
  1646. _ACEOF
  1647. if ac_fn_c_try_compile "$LINENO"; then :
  1648. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1649. /* end confdefs.h. */
  1650. $4
  1651. int
  1652. main ()
  1653. {
  1654. if (sizeof (($2)))
  1655. return 0;
  1656. ;
  1657. return 0;
  1658. }
  1659. _ACEOF
  1660. if ac_fn_c_try_compile "$LINENO"; then :
  1661. else
  1662. eval "$3=yes"
  1663. fi
  1664. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  1665. fi
  1666. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  1667. fi
  1668. eval ac_res=\$$3
  1669. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1670. $as_echo "$ac_res" >&6; }
  1671. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1672. } # ac_fn_c_check_type
  1673. # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
  1674. # --------------------------------------------
  1675. # Tries to find the compile-time value of EXPR in a program that includes
  1676. # INCLUDES, setting VAR accordingly. Returns whether the value could be
  1677. # computed
  1678. ac_fn_c_compute_int ()
  1679. {
  1680. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1681. if test "$cross_compiling" = yes; then
  1682. # Depending upon the size, compute the lo and hi bounds.
  1683. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1684. /* end confdefs.h. */
  1685. $4
  1686. int
  1687. main ()
  1688. {
  1689. static int test_array [1 - 2 * !(($2) >= 0)];
  1690. test_array [0] = 0;
  1691. return test_array [0];
  1692. ;
  1693. return 0;
  1694. }
  1695. _ACEOF
  1696. if ac_fn_c_try_compile "$LINENO"; then :
  1697. ac_lo=0 ac_mid=0
  1698. while :; do
  1699. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1700. /* end confdefs.h. */
  1701. $4
  1702. int
  1703. main ()
  1704. {
  1705. static int test_array [1 - 2 * !(($2) <= $ac_mid)];
  1706. test_array [0] = 0;
  1707. return test_array [0];
  1708. ;
  1709. return 0;
  1710. }
  1711. _ACEOF
  1712. if ac_fn_c_try_compile "$LINENO"; then :
  1713. ac_hi=$ac_mid; break
  1714. else
  1715. as_fn_arith $ac_mid + 1 && ac_lo=$as_val
  1716. if test $ac_lo -le $ac_mid; then
  1717. ac_lo= ac_hi=
  1718. break
  1719. fi
  1720. as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
  1721. fi
  1722. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  1723. done
  1724. else
  1725. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1726. /* end confdefs.h. */
  1727. $4
  1728. int
  1729. main ()
  1730. {
  1731. static int test_array [1 - 2 * !(($2) < 0)];
  1732. test_array [0] = 0;
  1733. return test_array [0];
  1734. ;
  1735. return 0;
  1736. }
  1737. _ACEOF
  1738. if ac_fn_c_try_compile "$LINENO"; then :
  1739. ac_hi=-1 ac_mid=-1
  1740. while :; do
  1741. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1742. /* end confdefs.h. */
  1743. $4
  1744. int
  1745. main ()
  1746. {
  1747. static int test_array [1 - 2 * !(($2) >= $ac_mid)];
  1748. test_array [0] = 0;
  1749. return test_array [0];
  1750. ;
  1751. return 0;
  1752. }
  1753. _ACEOF
  1754. if ac_fn_c_try_compile "$LINENO"; then :
  1755. ac_lo=$ac_mid; break
  1756. else
  1757. as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
  1758. if test $ac_mid -le $ac_hi; then
  1759. ac_lo= ac_hi=
  1760. break
  1761. fi
  1762. as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
  1763. fi
  1764. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  1765. done
  1766. else
  1767. ac_lo= ac_hi=
  1768. fi
  1769. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  1770. fi
  1771. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  1772. # Binary search between lo and hi bounds.
  1773. while test "x$ac_lo" != "x$ac_hi"; do
  1774. as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
  1775. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1776. /* end confdefs.h. */
  1777. $4
  1778. int
  1779. main ()
  1780. {
  1781. static int test_array [1 - 2 * !(($2) <= $ac_mid)];
  1782. test_array [0] = 0;
  1783. return test_array [0];
  1784. ;
  1785. return 0;
  1786. }
  1787. _ACEOF
  1788. if ac_fn_c_try_compile "$LINENO"; then :
  1789. ac_hi=$ac_mid
  1790. else
  1791. as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
  1792. fi
  1793. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  1794. done
  1795. case $ac_lo in #((
  1796. ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
  1797. '') ac_retval=1 ;;
  1798. esac
  1799. else
  1800. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1801. /* end confdefs.h. */
  1802. $4
  1803. static long int longval () { return $2; }
  1804. static unsigned long int ulongval () { return $2; }
  1805. #include <stdio.h>
  1806. #include <stdlib.h>
  1807. int
  1808. main ()
  1809. {
  1810. FILE *f = fopen ("conftest.val", "w");
  1811. if (! f)
  1812. return 1;
  1813. if (($2) < 0)
  1814. {
  1815. long int i = longval ();
  1816. if (i != ($2))
  1817. return 1;
  1818. fprintf (f, "%ld", i);
  1819. }
  1820. else
  1821. {
  1822. unsigned long int i = ulongval ();
  1823. if (i != ($2))
  1824. return 1;
  1825. fprintf (f, "%lu", i);
  1826. }
  1827. /* Do not output a trailing newline, as this causes \r\n confusion
  1828. on some platforms. */
  1829. return ferror (f) || fclose (f) != 0;
  1830. ;
  1831. return 0;
  1832. }
  1833. _ACEOF
  1834. if ac_fn_c_try_run "$LINENO"; then :
  1835. echo >>conftest.val; read $3 <conftest.val; ac_retval=0
  1836. else
  1837. ac_retval=1
  1838. fi
  1839. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  1840. conftest.$ac_objext conftest.beam conftest.$ac_ext
  1841. rm -f conftest.val
  1842. fi
  1843. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1844. as_fn_set_status $ac_retval
  1845. } # ac_fn_c_compute_int
  1846. # ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
  1847. # ---------------------------------------------
  1848. # Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
  1849. # accordingly.
  1850. ac_fn_c_check_decl ()
  1851. {
  1852. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1853. as_decl_name=`echo $2|sed 's/ *(.*//'`
  1854. as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
  1855. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
  1856. $as_echo_n "checking whether $as_decl_name is declared... " >&6; }
  1857. if eval \${$3+:} false; then :
  1858. $as_echo_n "(cached) " >&6
  1859. else
  1860. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1861. /* end confdefs.h. */
  1862. $4
  1863. int
  1864. main ()
  1865. {
  1866. #ifndef $as_decl_name
  1867. #ifdef __cplusplus
  1868. (void) $as_decl_use;
  1869. #else
  1870. (void) $as_decl_name;
  1871. #endif
  1872. #endif
  1873. ;
  1874. return 0;
  1875. }
  1876. _ACEOF
  1877. if ac_fn_c_try_compile "$LINENO"; then :
  1878. eval "$3=yes"
  1879. else
  1880. eval "$3=no"
  1881. fi
  1882. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  1883. fi
  1884. eval ac_res=\$$3
  1885. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1886. $as_echo "$ac_res" >&6; }
  1887. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1888. } # ac_fn_c_check_decl
  1889. # ac_fn_c_try_link LINENO
  1890. # -----------------------
  1891. # Try to link conftest.$ac_ext, and return whether this succeeded.
  1892. ac_fn_c_try_link ()
  1893. {
  1894. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1895. rm -f conftest.$ac_objext conftest$ac_exeext
  1896. if { { ac_try="$ac_link"
  1897. case "(($ac_try" in
  1898. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1899. *) ac_try_echo=$ac_try;;
  1900. esac
  1901. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1902. $as_echo "$ac_try_echo"; } >&5
  1903. (eval "$ac_link") 2>conftest.err
  1904. ac_status=$?
  1905. if test -s conftest.err; then
  1906. grep -v '^ *+' conftest.err >conftest.er1
  1907. cat conftest.er1 >&5
  1908. mv -f conftest.er1 conftest.err
  1909. fi
  1910. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1911. test $ac_status = 0; } && {
  1912. test -z "$ac_c_werror_flag" ||
  1913. test ! -s conftest.err
  1914. } && test -s conftest$ac_exeext && {
  1915. test "$cross_compiling" = yes ||
  1916. test -x conftest$ac_exeext
  1917. }; then :
  1918. ac_retval=0
  1919. else
  1920. $as_echo "$as_me: failed program was:" >&5
  1921. sed 's/^/| /' conftest.$ac_ext >&5
  1922. ac_retval=1
  1923. fi
  1924. # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
  1925. # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
  1926. # interfere with the next link command; also delete a directory that is
  1927. # left behind by Apple's compiler. We do this before executing the actions.
  1928. rm -rf conftest.dSYM conftest_ipa8_conftest.oo
  1929. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1930. as_fn_set_status $ac_retval
  1931. } # ac_fn_c_try_link
  1932. # ac_fn_c_check_func LINENO FUNC VAR
  1933. # ----------------------------------
  1934. # Tests whether FUNC exists, setting the cache variable VAR accordingly
  1935. ac_fn_c_check_func ()
  1936. {
  1937. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1938. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  1939. $as_echo_n "checking for $2... " >&6; }
  1940. if eval \${$3+:} false; then :
  1941. $as_echo_n "(cached) " >&6
  1942. else
  1943. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1944. /* end confdefs.h. */
  1945. /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
  1946. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  1947. #define $2 innocuous_$2
  1948. /* System header to define __stub macros and hopefully few prototypes,
  1949. which can conflict with char $2 (); below.
  1950. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  1951. <limits.h> exists even on freestanding compilers. */
  1952. #ifdef __STDC__
  1953. # include <limits.h>
  1954. #else
  1955. # include <assert.h>
  1956. #endif
  1957. #undef $2
  1958. /* Override any GCC internal prototype to avoid an error.
  1959. Use char because int might match the return type of a GCC
  1960. builtin and then its argument prototype would still apply. */
  1961. #ifdef __cplusplus
  1962. extern "C"
  1963. #endif
  1964. char $2 ();
  1965. /* The GNU C library defines this for functions which it implements
  1966. to always fail with ENOSYS. Some functions are actually named
  1967. something starting with __ and the normal name is an alias. */
  1968. #if defined __stub_$2 || defined __stub___$2
  1969. choke me
  1970. #endif
  1971. int
  1972. main ()
  1973. {
  1974. return $2 ();
  1975. ;
  1976. return 0;
  1977. }
  1978. _ACEOF
  1979. if ac_fn_c_try_link "$LINENO"; then :
  1980. eval "$3=yes"
  1981. else
  1982. eval "$3=no"
  1983. fi
  1984. rm -f core conftest.err conftest.$ac_objext \
  1985. conftest$ac_exeext conftest.$ac_ext
  1986. fi
  1987. eval ac_res=\$$3
  1988. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1989. $as_echo "$ac_res" >&6; }
  1990. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1991. } # ac_fn_c_check_func
  1992. # ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
  1993. # ----------------------------------------------------
  1994. # Tries to find if the field MEMBER exists in type AGGR, after including
  1995. # INCLUDES, setting cache variable VAR accordingly.
  1996. ac_fn_c_check_member ()
  1997. {
  1998. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1999. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
  2000. $as_echo_n "checking for $2.$3... " >&6; }
  2001. if eval \${$4+:} false; then :
  2002. $as_echo_n "(cached) " >&6
  2003. else
  2004. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2005. /* end confdefs.h. */
  2006. $5
  2007. int
  2008. main ()
  2009. {
  2010. static $2 ac_aggr;
  2011. if (ac_aggr.$3)
  2012. return 0;
  2013. ;
  2014. return 0;
  2015. }
  2016. _ACEOF
  2017. if ac_fn_c_try_compile "$LINENO"; then :
  2018. eval "$4=yes"
  2019. else
  2020. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2021. /* end confdefs.h. */
  2022. $5
  2023. int
  2024. main ()
  2025. {
  2026. static $2 ac_aggr;
  2027. if (sizeof ac_aggr.$3)
  2028. return 0;
  2029. ;
  2030. return 0;
  2031. }
  2032. _ACEOF
  2033. if ac_fn_c_try_compile "$LINENO"; then :
  2034. eval "$4=yes"
  2035. else
  2036. eval "$4=no"
  2037. fi
  2038. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  2039. fi
  2040. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  2041. fi
  2042. eval ac_res=\$$4
  2043. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  2044. $as_echo "$ac_res" >&6; }
  2045. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  2046. } # ac_fn_c_check_member
  2047. cat >config.log <<_ACEOF
  2048. This file contains any messages produced by compilers while
  2049. running configure, to aid debugging if configure makes a mistake.
  2050. It was created by neon $as_me 0.30.1, which was
  2051. generated by GNU Autoconf 2.69. Invocation command line was
  2052. $ $0 $@
  2053. _ACEOF
  2054. exec 5>>config.log
  2055. {
  2056. cat <<_ASUNAME
  2057. ## --------- ##
  2058. ## Platform. ##
  2059. ## --------- ##
  2060. hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
  2061. uname -m = `(uname -m) 2>/dev/null || echo unknown`
  2062. uname -r = `(uname -r) 2>/dev/null || echo unknown`
  2063. uname -s = `(uname -s) 2>/dev/null || echo unknown`
  2064. uname -v = `(uname -v) 2>/dev/null || echo unknown`
  2065. /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
  2066. /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
  2067. /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
  2068. /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
  2069. /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
  2070. /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
  2071. /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
  2072. /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
  2073. /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
  2074. _ASUNAME
  2075. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2076. for as_dir in $PATH
  2077. do
  2078. IFS=$as_save_IFS
  2079. test -z "$as_dir" && as_dir=.
  2080. $as_echo "PATH: $as_dir"
  2081. done
  2082. IFS=$as_save_IFS
  2083. } >&5
  2084. cat >&5 <<_ACEOF
  2085. ## ----------- ##
  2086. ## Core tests. ##
  2087. ## ----------- ##
  2088. _ACEOF
  2089. # Keep a trace of the command line.
  2090. # Strip out --no-create and --no-recursion so they do not pile up.
  2091. # Strip out --silent because we don't want to record it for future runs.
  2092. # Also quote any args containing shell meta-characters.
  2093. # Make two passes to allow for proper duplicate-argument suppression.
  2094. ac_configure_args=
  2095. ac_configure_args0=
  2096. ac_configure_args1=
  2097. ac_must_keep_next=false
  2098. for ac_pass in 1 2
  2099. do
  2100. for ac_arg
  2101. do
  2102. case $ac_arg in
  2103. -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
  2104. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  2105. | -silent | --silent | --silen | --sile | --sil)
  2106. continue ;;
  2107. *\'*)
  2108. ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
  2109. esac
  2110. case $ac_pass in
  2111. 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
  2112. 2)
  2113. as_fn_append ac_configure_args1 " '$ac_arg'"
  2114. if test $ac_must_keep_next = true; then
  2115. ac_must_keep_next=false # Got value, back to normal.
  2116. else
  2117. case $ac_arg in
  2118. *=* | --config-cache | -C | -disable-* | --disable-* \
  2119. | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
  2120. | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
  2121. | -with-* | --with-* | -without-* | --without-* | --x)
  2122. case "$ac_configure_args0 " in
  2123. "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
  2124. esac
  2125. ;;
  2126. -* ) ac_must_keep_next=true ;;
  2127. esac
  2128. fi
  2129. as_fn_append ac_configure_args " '$ac_arg'"
  2130. ;;
  2131. esac
  2132. done
  2133. done
  2134. { ac_configure_args0=; unset ac_configure_args0;}
  2135. { ac_configure_args1=; unset ac_configure_args1;}
  2136. # When interrupted or exit'd, cleanup temporary files, and complete
  2137. # config.log. We remove comments because anyway the quotes in there
  2138. # would cause problems or look ugly.
  2139. # WARNING: Use '\'' to represent an apostrophe within the trap.
  2140. # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
  2141. trap 'exit_status=$?
  2142. # Save into config.log some information that might help in debugging.
  2143. {
  2144. echo
  2145. $as_echo "## ---------------- ##
  2146. ## Cache variables. ##
  2147. ## ---------------- ##"
  2148. echo
  2149. # The following way of writing the cache mishandles newlines in values,
  2150. (
  2151. for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
  2152. eval ac_val=\$$ac_var
  2153. case $ac_val in #(
  2154. *${as_nl}*)
  2155. case $ac_var in #(
  2156. *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
  2157. $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
  2158. esac
  2159. case $ac_var in #(
  2160. _ | IFS | as_nl) ;; #(
  2161. BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
  2162. *) { eval $ac_var=; unset $ac_var;} ;;
  2163. esac ;;
  2164. esac
  2165. done
  2166. (set) 2>&1 |
  2167. case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
  2168. *${as_nl}ac_space=\ *)
  2169. sed -n \
  2170. "s/'\''/'\''\\\\'\'''\''/g;
  2171. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
  2172. ;; #(
  2173. *)
  2174. sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
  2175. ;;
  2176. esac |
  2177. sort
  2178. )
  2179. echo
  2180. $as_echo "## ----------------- ##
  2181. ## Output variables. ##
  2182. ## ----------------- ##"
  2183. echo
  2184. for ac_var in $ac_subst_vars
  2185. do
  2186. eval ac_val=\$$ac_var
  2187. case $ac_val in
  2188. *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
  2189. esac
  2190. $as_echo "$ac_var='\''$ac_val'\''"
  2191. done | sort
  2192. echo
  2193. if test -n "$ac_subst_files"; then
  2194. $as_echo "## ------------------- ##
  2195. ## File substitutions. ##
  2196. ## ------------------- ##"
  2197. echo
  2198. for ac_var in $ac_subst_files
  2199. do
  2200. eval ac_val=\$$ac_var
  2201. case $ac_val in
  2202. *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
  2203. esac
  2204. $as_echo "$ac_var='\''$ac_val'\''"
  2205. done | sort
  2206. echo
  2207. fi
  2208. if test -s confdefs.h; then
  2209. $as_echo "## ----------- ##
  2210. ## confdefs.h. ##
  2211. ## ----------- ##"
  2212. echo
  2213. cat confdefs.h
  2214. echo
  2215. fi
  2216. test "$ac_signal" != 0 &&
  2217. $as_echo "$as_me: caught signal $ac_signal"
  2218. $as_echo "$as_me: exit $exit_status"
  2219. } >&5
  2220. rm -f core *.core core.conftest.* &&
  2221. rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
  2222. exit $exit_status
  2223. ' 0
  2224. for ac_signal in 1 2 13 15; do
  2225. trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
  2226. done
  2227. ac_signal=0
  2228. # confdefs.h avoids OS command line length limits that DEFS can exceed.
  2229. rm -f -r conftest* confdefs.h
  2230. $as_echo "/* confdefs.h */" > confdefs.h
  2231. # Predefined preprocessor variables.
  2232. cat >>confdefs.h <<_ACEOF
  2233. #define PACKAGE_NAME "$PACKAGE_NAME"
  2234. _ACEOF
  2235. cat >>confdefs.h <<_ACEOF
  2236. #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
  2237. _ACEOF
  2238. cat >>confdefs.h <<_ACEOF
  2239. #define PACKAGE_VERSION "$PACKAGE_VERSION"
  2240. _ACEOF
  2241. cat >>confdefs.h <<_ACEOF
  2242. #define PACKAGE_STRING "$PACKAGE_STRING"
  2243. _ACEOF
  2244. cat >>confdefs.h <<_ACEOF
  2245. #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
  2246. _ACEOF
  2247. cat >>confdefs.h <<_ACEOF
  2248. #define PACKAGE_URL "$PACKAGE_URL"
  2249. _ACEOF
  2250. # Let the site file select an alternate cache file if it wants to.
  2251. # Prefer an explicitly selected file to automatically selected ones.
  2252. ac_site_file1=NONE
  2253. ac_site_file2=NONE
  2254. if test -n "$CONFIG_SITE"; then
  2255. # We do not want a PATH search for config.site.
  2256. case $CONFIG_SITE in #((
  2257. -*) ac_site_file1=./$CONFIG_SITE;;
  2258. */*) ac_site_file1=$CONFIG_SITE;;
  2259. *) ac_site_file1=./$CONFIG_SITE;;
  2260. esac
  2261. elif test "x$prefix" != xNONE; then
  2262. ac_site_file1=$prefix/share/config.site
  2263. ac_site_file2=$prefix/etc/config.site
  2264. else
  2265. ac_site_file1=$ac_default_prefix/share/config.site
  2266. ac_site_file2=$ac_default_prefix/etc/config.site
  2267. fi
  2268. for ac_site_file in "$ac_site_file1" "$ac_site_file2"
  2269. do
  2270. test "x$ac_site_file" = xNONE && continue
  2271. if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
  2272. { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
  2273. $as_echo "$as_me: loading site script $ac_site_file" >&6;}
  2274. sed 's/^/| /' "$ac_site_file" >&5
  2275. . "$ac_site_file" \
  2276. || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  2277. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  2278. as_fn_error $? "failed to load site script $ac_site_file
  2279. See \`config.log' for more details" "$LINENO" 5; }
  2280. fi
  2281. done
  2282. if test -r "$cache_file"; then
  2283. # Some versions of bash will fail to source /dev/null (special files
  2284. # actually), so we avoid doing that. DJGPP emulates it as a regular file.
  2285. if test /dev/null != "$cache_file" && test -f "$cache_file"; then
  2286. { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
  2287. $as_echo "$as_me: loading cache $cache_file" >&6;}
  2288. case $cache_file in
  2289. [\\/]* | ?:[\\/]* ) . "$cache_file";;
  2290. *) . "./$cache_file";;
  2291. esac
  2292. fi
  2293. else
  2294. { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
  2295. $as_echo "$as_me: creating cache $cache_file" >&6;}
  2296. >$cache_file
  2297. fi
  2298. # Check that the precious variables saved in the cache have kept the same
  2299. # value.
  2300. ac_cache_corrupted=false
  2301. for ac_var in $ac_precious_vars; do
  2302. eval ac_old_set=\$ac_cv_env_${ac_var}_set
  2303. eval ac_new_set=\$ac_env_${ac_var}_set
  2304. eval ac_old_val=\$ac_cv_env_${ac_var}_value
  2305. eval ac_new_val=\$ac_env_${ac_var}_value
  2306. case $ac_old_set,$ac_new_set in
  2307. set,)
  2308. { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
  2309. $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
  2310. ac_cache_corrupted=: ;;
  2311. ,set)
  2312. { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
  2313. $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
  2314. ac_cache_corrupted=: ;;
  2315. ,);;
  2316. *)
  2317. if test "x$ac_old_val" != "x$ac_new_val"; then
  2318. # differences in whitespace do not lead to failure.
  2319. ac_old_val_w=`echo x $ac_old_val`
  2320. ac_new_val_w=`echo x $ac_new_val`
  2321. if test "$ac_old_val_w" != "$ac_new_val_w"; then
  2322. { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
  2323. $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
  2324. ac_cache_corrupted=:
  2325. else
  2326. { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
  2327. $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
  2328. eval $ac_var=\$ac_old_val
  2329. fi
  2330. { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
  2331. $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
  2332. { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
  2333. $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
  2334. fi;;
  2335. esac
  2336. # Pass precious variables to config.status.
  2337. if test "$ac_new_set" = set; then
  2338. case $ac_new_val in
  2339. *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
  2340. *) ac_arg=$ac_var=$ac_new_val ;;
  2341. esac
  2342. case " $ac_configure_args " in
  2343. *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
  2344. *) as_fn_append ac_configure_args " '$ac_arg'" ;;
  2345. esac
  2346. fi
  2347. done
  2348. if $ac_cache_corrupted; then
  2349. { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  2350. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  2351. { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
  2352. $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
  2353. as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
  2354. fi
  2355. ## -------------------- ##
  2356. ## Main body of script. ##
  2357. ## -------------------- ##
  2358. ac_ext=c
  2359. ac_cpp='$CPP $CPPFLAGS'
  2360. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  2361. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  2362. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  2363. ac_config_headers="$ac_config_headers config.h"
  2364. # Check whether --with-libs was given.
  2365. if test "${with_libs+set}" = set; then :
  2366. withval=$with_libs; case $with_libs in
  2367. yes|no) as_fn_error $? "--with-libs must be passed a directory argument" "$LINENO" 5 ;;
  2368. *) ne_save_IFS=$IFS; IFS=:
  2369. for dir in $with_libs; do
  2370. ne_add_CPPFLAGS="$ne_add_CPPFLAGS -I${dir}/include"
  2371. ne_add_LDFLAGS="$ne_add_LDFLAGS -L${dir}/lib"
  2372. ne_add_PATH="${ne_add_PATH}${dir}/bin:"
  2373. PKG_CONFIG_PATH=${PKG_CONFIG_PATH}${PKG_CONFIG_PATH+:}${dir}/lib/pkgconfig
  2374. done
  2375. IFS=$ne_save_IFS
  2376. CPPFLAGS="${ne_add_CPPFLAGS} $CPPFLAGS"
  2377. LDFLAGS="${ne_add_LDFLAGS} $LDFLAGS"
  2378. PATH=${ne_add_PATH}$PATH
  2379. export PKG_CONFIG_PATH ;;
  2380. esac
  2381. fi
  2382. # Pass through initial LDFLAGS verbatim to neon-config, so that extra
  2383. # libraries which are detected (e.g. OpenSSL) can still be found when
  2384. # building using the --libs output of neon-config.
  2385. user_LDFLAGS=$LDFLAGS
  2386. # By default, allow 'make install' to work.
  2387. ALLOW_INSTALL=yes
  2388. $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
  2389. $as_echo "#define NEON_IS_LIBRARY 1" >>confdefs.h
  2390. ac_aux_dir=
  2391. for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
  2392. if test -f "$ac_dir/install-sh"; then
  2393. ac_aux_dir=$ac_dir
  2394. ac_install_sh="$ac_aux_dir/install-sh -c"
  2395. break
  2396. elif test -f "$ac_dir/install.sh"; then
  2397. ac_aux_dir=$ac_dir
  2398. ac_install_sh="$ac_aux_dir/install.sh -c"
  2399. break
  2400. elif test -f "$ac_dir/shtool"; then
  2401. ac_aux_dir=$ac_dir
  2402. ac_install_sh="$ac_aux_dir/shtool install -c"
  2403. break
  2404. fi
  2405. done
  2406. if test -z "$ac_aux_dir"; then
  2407. as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
  2408. fi
  2409. # These three variables are undocumented and unsupported,
  2410. # and are intended to be withdrawn in a future Autoconf release.
  2411. # They can cause serious problems if a builder's source tree is in a directory
  2412. # whose full name contains unusual characters.
  2413. ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
  2414. ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
  2415. ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
  2416. # Find a good install program. We prefer a C program (faster),
  2417. # so one script is as good as another. But avoid the broken or
  2418. # incompatible versions:
  2419. # SysV /etc/install, /usr/sbin/install
  2420. # SunOS /usr/etc/install
  2421. # IRIX /sbin/install
  2422. # AIX /bin/install
  2423. # AmigaOS /C/install, which installs bootblocks on floppy discs
  2424. # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
  2425. # AFS /usr/afsws/bin/install, which mishandles nonexistent args
  2426. # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
  2427. # OS/2's system install, which has a completely different semantic
  2428. # ./install, which can be erroneously created by make from ./install.sh.
  2429. # Reject install programs that cannot install multiple files.
  2430. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
  2431. $as_echo_n "checking for a BSD-compatible install... " >&6; }
  2432. if test -z "$INSTALL"; then
  2433. if ${ac_cv_path_install+:} false; then :
  2434. $as_echo_n "(cached) " >&6
  2435. else
  2436. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2437. for as_dir in $PATH
  2438. do
  2439. IFS=$as_save_IFS
  2440. test -z "$as_dir" && as_dir=.
  2441. # Account for people who put trailing slashes in PATH elements.
  2442. case $as_dir/ in #((
  2443. ./ | .// | /[cC]/* | \
  2444. /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
  2445. ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
  2446. /usr/ucb/* ) ;;
  2447. *)
  2448. # OSF1 and SCO ODT 3.0 have their own names for install.
  2449. # Don't use installbsd from OSF since it installs stuff as root
  2450. # by default.
  2451. for ac_prog in ginstall scoinst install; do
  2452. for ac_exec_ext in '' $ac_executable_extensions; do
  2453. if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
  2454. if test $ac_prog = install &&
  2455. grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
  2456. # AIX install. It has an incompatible calling convention.
  2457. :
  2458. elif test $ac_prog = install &&
  2459. grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
  2460. # program-specific install script used by HP pwplus--don't use.
  2461. :
  2462. else
  2463. rm -rf conftest.one conftest.two conftest.dir
  2464. echo one > conftest.one
  2465. echo two > conftest.two
  2466. mkdir conftest.dir
  2467. if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
  2468. test -s conftest.one && test -s conftest.two &&
  2469. test -s conftest.dir/conftest.one &&
  2470. test -s conftest.dir/conftest.two
  2471. then
  2472. ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
  2473. break 3
  2474. fi
  2475. fi
  2476. fi
  2477. done
  2478. done
  2479. ;;
  2480. esac
  2481. done
  2482. IFS=$as_save_IFS
  2483. rm -rf conftest.one conftest.two conftest.dir
  2484. fi
  2485. if test "${ac_cv_path_install+set}" = set; then
  2486. INSTALL=$ac_cv_path_install
  2487. else
  2488. # As a last resort, use the slow shell script. Don't cache a
  2489. # value for INSTALL within a source directory, because that will
  2490. # break other packages using the cache if that directory is
  2491. # removed, or if the value is a relative name.
  2492. INSTALL=$ac_install_sh
  2493. fi
  2494. fi
  2495. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
  2496. $as_echo "$INSTALL" >&6; }
  2497. # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
  2498. # It thinks the first close brace ends the variable substitution.
  2499. test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
  2500. test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
  2501. test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
  2502. # Check whether --enable-webdav was given.
  2503. if test "${enable_webdav+set}" = set; then :
  2504. enableval=$enable_webdav;
  2505. fi
  2506. if test "$enable_webdav" = "no"; then
  2507. neon_no_webdav=yes
  2508. neon_no_acl=yes
  2509. NEON_NEED_XML_PARSER=no
  2510. neon_xml_parser_message="none needed"
  2511. else
  2512. # Yes, we do need an XML parser. The _BUNDLED macros handle
  2513. # this normally.
  2514. NEON_NEED_XML_PARSER=yes
  2515. fi
  2516. # The bundled macros also set this, which makes sure we recurse
  2517. # into the 'src' directory.
  2518. NEON_BUILD_BUNDLED=yes
  2519. # Define NEON_VERSION etc and make the appropriate substitutions.
  2520. # Define the current versions.
  2521. NE_VERSION_MAJOR=0
  2522. NE_VERSION_MINOR=30
  2523. NE_VERSION_PATCH=1
  2524. NE_VERSION_TAG=
  2525. # 0.30.x is backwards-compatible to 0.27.x, so AGE=3
  2526. NE_LIBTOOL_VERSINFO="30:${NE_VERSION_PATCH}:3"
  2527. NEON_VERSION="${NE_VERSION_MAJOR}.${NE_VERSION_MINOR}.${NE_VERSION_PATCH}${NE_VERSION_TAG}"
  2528. cat >>confdefs.h <<_ACEOF
  2529. #define NEON_VERSION "${NEON_VERSION}"
  2530. _ACEOF
  2531. cat >>confdefs.h <<_ACEOF
  2532. #define NE_VERSION_MAJOR (${NE_VERSION_MAJOR})
  2533. _ACEOF
  2534. cat >>confdefs.h <<_ACEOF
  2535. #define NE_VERSION_MINOR (${NE_VERSION_MINOR})
  2536. _ACEOF
  2537. cat >>confdefs.h <<_ACEOF
  2538. #define NE_VERSION_PATCH (${NE_VERSION_PATCH})
  2539. _ACEOF
  2540. ac_ext=c
  2541. ac_cpp='$CPP $CPPFLAGS'
  2542. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  2543. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  2544. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  2545. if test -n "$ac_tool_prefix"; then
  2546. # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
  2547. set dummy ${ac_tool_prefix}gcc; ac_word=$2
  2548. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2549. $as_echo_n "checking for $ac_word... " >&6; }
  2550. if ${ac_cv_prog_CC+:} false; then :
  2551. $as_echo_n "(cached) " >&6
  2552. else
  2553. if test -n "$CC"; then
  2554. ac_cv_prog_CC="$CC" # Let the user override the test.
  2555. else
  2556. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2557. for as_dir in $PATH
  2558. do
  2559. IFS=$as_save_IFS
  2560. test -z "$as_dir" && as_dir=.
  2561. for ac_exec_ext in '' $ac_executable_extensions; do
  2562. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  2563. ac_cv_prog_CC="${ac_tool_prefix}gcc"
  2564. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2565. break 2
  2566. fi
  2567. done
  2568. done
  2569. IFS=$as_save_IFS
  2570. fi
  2571. fi
  2572. CC=$ac_cv_prog_CC
  2573. if test -n "$CC"; then
  2574. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  2575. $as_echo "$CC" >&6; }
  2576. else
  2577. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2578. $as_echo "no" >&6; }
  2579. fi
  2580. fi
  2581. if test -z "$ac_cv_prog_CC"; then
  2582. ac_ct_CC=$CC
  2583. # Extract the first word of "gcc", so it can be a program name with args.
  2584. set dummy gcc; ac_word=$2
  2585. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2586. $as_echo_n "checking for $ac_word... " >&6; }
  2587. if ${ac_cv_prog_ac_ct_CC+:} false; then :
  2588. $as_echo_n "(cached) " >&6
  2589. else
  2590. if test -n "$ac_ct_CC"; then
  2591. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  2592. else
  2593. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2594. for as_dir in $PATH
  2595. do
  2596. IFS=$as_save_IFS
  2597. test -z "$as_dir" && as_dir=.
  2598. for ac_exec_ext in '' $ac_executable_extensions; do
  2599. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  2600. ac_cv_prog_ac_ct_CC="gcc"
  2601. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2602. break 2
  2603. fi
  2604. done
  2605. done
  2606. IFS=$as_save_IFS
  2607. fi
  2608. fi
  2609. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  2610. if test -n "$ac_ct_CC"; then
  2611. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
  2612. $as_echo "$ac_ct_CC" >&6; }
  2613. else
  2614. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2615. $as_echo "no" >&6; }
  2616. fi
  2617. if test "x$ac_ct_CC" = x; then
  2618. CC=""
  2619. else
  2620. case $cross_compiling:$ac_tool_warned in
  2621. yes:)
  2622. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  2623. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  2624. ac_tool_warned=yes ;;
  2625. esac
  2626. CC=$ac_ct_CC
  2627. fi
  2628. else
  2629. CC="$ac_cv_prog_CC"
  2630. fi
  2631. if test -z "$CC"; then
  2632. if test -n "$ac_tool_prefix"; then
  2633. # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
  2634. set dummy ${ac_tool_prefix}cc; ac_word=$2
  2635. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2636. $as_echo_n "checking for $ac_word... " >&6; }
  2637. if ${ac_cv_prog_CC+:} false; then :
  2638. $as_echo_n "(cached) " >&6
  2639. else
  2640. if test -n "$CC"; then
  2641. ac_cv_prog_CC="$CC" # Let the user override the test.
  2642. else
  2643. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2644. for as_dir in $PATH
  2645. do
  2646. IFS=$as_save_IFS
  2647. test -z "$as_dir" && as_dir=.
  2648. for ac_exec_ext in '' $ac_executable_extensions; do
  2649. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  2650. ac_cv_prog_CC="${ac_tool_prefix}cc"
  2651. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2652. break 2
  2653. fi
  2654. done
  2655. done
  2656. IFS=$as_save_IFS
  2657. fi
  2658. fi
  2659. CC=$ac_cv_prog_CC
  2660. if test -n "$CC"; then
  2661. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  2662. $as_echo "$CC" >&6; }
  2663. else
  2664. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2665. $as_echo "no" >&6; }
  2666. fi
  2667. fi
  2668. fi
  2669. if test -z "$CC"; then
  2670. # Extract the first word of "cc", so it can be a program name with args.
  2671. set dummy cc; ac_word=$2
  2672. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2673. $as_echo_n "checking for $ac_word... " >&6; }
  2674. if ${ac_cv_prog_CC+:} false; then :
  2675. $as_echo_n "(cached) " >&6
  2676. else
  2677. if test -n "$CC"; then
  2678. ac_cv_prog_CC="$CC" # Let the user override the test.
  2679. else
  2680. ac_prog_rejected=no
  2681. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2682. for as_dir in $PATH
  2683. do
  2684. IFS=$as_save_IFS
  2685. test -z "$as_dir" && as_dir=.
  2686. for ac_exec_ext in '' $ac_executable_extensions; do
  2687. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  2688. if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
  2689. ac_prog_rejected=yes
  2690. continue
  2691. fi
  2692. ac_cv_prog_CC="cc"
  2693. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2694. break 2
  2695. fi
  2696. done
  2697. done
  2698. IFS=$as_save_IFS
  2699. if test $ac_prog_rejected = yes; then
  2700. # We found a bogon in the path, so make sure we never use it.
  2701. set dummy $ac_cv_prog_CC
  2702. shift
  2703. if test $# != 0; then
  2704. # We chose a different compiler from the bogus one.
  2705. # However, it has the same basename, so the bogon will be chosen
  2706. # first if we set CC to just the basename; use the full file name.
  2707. shift
  2708. ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
  2709. fi
  2710. fi
  2711. fi
  2712. fi
  2713. CC=$ac_cv_prog_CC
  2714. if test -n "$CC"; then
  2715. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  2716. $as_echo "$CC" >&6; }
  2717. else
  2718. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2719. $as_echo "no" >&6; }
  2720. fi
  2721. fi
  2722. if test -z "$CC"; then
  2723. if test -n "$ac_tool_prefix"; then
  2724. for ac_prog in cl.exe
  2725. do
  2726. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  2727. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  2728. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2729. $as_echo_n "checking for $ac_word... " >&6; }
  2730. if ${ac_cv_prog_CC+:} false; then :
  2731. $as_echo_n "(cached) " >&6
  2732. else
  2733. if test -n "$CC"; then
  2734. ac_cv_prog_CC="$CC" # Let the user override the test.
  2735. else
  2736. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2737. for as_dir in $PATH
  2738. do
  2739. IFS=$as_save_IFS
  2740. test -z "$as_dir" && as_dir=.
  2741. for ac_exec_ext in '' $ac_executable_extensions; do
  2742. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  2743. ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
  2744. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2745. break 2
  2746. fi
  2747. done
  2748. done
  2749. IFS=$as_save_IFS
  2750. fi
  2751. fi
  2752. CC=$ac_cv_prog_CC
  2753. if test -n "$CC"; then
  2754. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  2755. $as_echo "$CC" >&6; }
  2756. else
  2757. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2758. $as_echo "no" >&6; }
  2759. fi
  2760. test -n "$CC" && break
  2761. done
  2762. fi
  2763. if test -z "$CC"; then
  2764. ac_ct_CC=$CC
  2765. for ac_prog in cl.exe
  2766. do
  2767. # Extract the first word of "$ac_prog", so it can be a program name with args.
  2768. set dummy $ac_prog; ac_word=$2
  2769. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2770. $as_echo_n "checking for $ac_word... " >&6; }
  2771. if ${ac_cv_prog_ac_ct_CC+:} false; then :
  2772. $as_echo_n "(cached) " >&6
  2773. else
  2774. if test -n "$ac_ct_CC"; then
  2775. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  2776. else
  2777. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2778. for as_dir in $PATH
  2779. do
  2780. IFS=$as_save_IFS
  2781. test -z "$as_dir" && as_dir=.
  2782. for ac_exec_ext in '' $ac_executable_extensions; do
  2783. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  2784. ac_cv_prog_ac_ct_CC="$ac_prog"
  2785. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2786. break 2
  2787. fi
  2788. done
  2789. done
  2790. IFS=$as_save_IFS
  2791. fi
  2792. fi
  2793. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  2794. if test -n "$ac_ct_CC"; then
  2795. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
  2796. $as_echo "$ac_ct_CC" >&6; }
  2797. else
  2798. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2799. $as_echo "no" >&6; }
  2800. fi
  2801. test -n "$ac_ct_CC" && break
  2802. done
  2803. if test "x$ac_ct_CC" = x; then
  2804. CC=""
  2805. else
  2806. case $cross_compiling:$ac_tool_warned in
  2807. yes:)
  2808. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  2809. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  2810. ac_tool_warned=yes ;;
  2811. esac
  2812. CC=$ac_ct_CC
  2813. fi
  2814. fi
  2815. fi
  2816. test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  2817. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  2818. as_fn_error $? "no acceptable C compiler found in \$PATH
  2819. See \`config.log' for more details" "$LINENO" 5; }
  2820. # Provide some information about the compiler.
  2821. $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
  2822. set X $ac_compile
  2823. ac_compiler=$2
  2824. for ac_option in --version -v -V -qversion; do
  2825. { { ac_try="$ac_compiler $ac_option >&5"
  2826. case "(($ac_try" in
  2827. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2828. *) ac_try_echo=$ac_try;;
  2829. esac
  2830. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  2831. $as_echo "$ac_try_echo"; } >&5
  2832. (eval "$ac_compiler $ac_option >&5") 2>conftest.err
  2833. ac_status=$?
  2834. if test -s conftest.err; then
  2835. sed '10a\
  2836. ... rest of stderr output deleted ...
  2837. 10q' conftest.err >conftest.er1
  2838. cat conftest.er1 >&5
  2839. fi
  2840. rm -f conftest.er1 conftest.err
  2841. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  2842. test $ac_status = 0; }
  2843. done
  2844. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2845. /* end confdefs.h. */
  2846. int
  2847. main ()
  2848. {
  2849. ;
  2850. return 0;
  2851. }
  2852. _ACEOF
  2853. ac_clean_files_save=$ac_clean_files
  2854. ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
  2855. # Try to create an executable without -o first, disregard a.out.
  2856. # It will help us diagnose broken compilers, and finding out an intuition
  2857. # of exeext.
  2858. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
  2859. $as_echo_n "checking whether the C compiler works... " >&6; }
  2860. ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
  2861. # The possible output files:
  2862. ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
  2863. ac_rmfiles=
  2864. for ac_file in $ac_files
  2865. do
  2866. case $ac_file in
  2867. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
  2868. * ) ac_rmfiles="$ac_rmfiles $ac_file";;
  2869. esac
  2870. done
  2871. rm -f $ac_rmfiles
  2872. if { { ac_try="$ac_link_default"
  2873. case "(($ac_try" in
  2874. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2875. *) ac_try_echo=$ac_try;;
  2876. esac
  2877. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  2878. $as_echo "$ac_try_echo"; } >&5
  2879. (eval "$ac_link_default") 2>&5
  2880. ac_status=$?
  2881. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  2882. test $ac_status = 0; }; then :
  2883. # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
  2884. # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
  2885. # in a Makefile. We should not override ac_cv_exeext if it was cached,
  2886. # so that the user can short-circuit this test for compilers unknown to
  2887. # Autoconf.
  2888. for ac_file in $ac_files ''
  2889. do
  2890. test -f "$ac_file" || continue
  2891. case $ac_file in
  2892. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
  2893. ;;
  2894. [ab].out )
  2895. # We found the default executable, but exeext='' is most
  2896. # certainly right.
  2897. break;;
  2898. *.* )
  2899. if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
  2900. then :; else
  2901. ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
  2902. fi
  2903. # We set ac_cv_exeext here because the later test for it is not
  2904. # safe: cross compilers may not add the suffix if given an `-o'
  2905. # argument, so we may need to know it at that point already.
  2906. # Even if this section looks crufty: it has the advantage of
  2907. # actually working.
  2908. break;;
  2909. * )
  2910. break;;
  2911. esac
  2912. done
  2913. test "$ac_cv_exeext" = no && ac_cv_exeext=
  2914. else
  2915. ac_file=''
  2916. fi
  2917. if test -z "$ac_file"; then :
  2918. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2919. $as_echo "no" >&6; }
  2920. $as_echo "$as_me: failed program was:" >&5
  2921. sed 's/^/| /' conftest.$ac_ext >&5
  2922. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  2923. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  2924. as_fn_error 77 "C compiler cannot create executables
  2925. See \`config.log' for more details" "$LINENO" 5; }
  2926. else
  2927. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  2928. $as_echo "yes" >&6; }
  2929. fi
  2930. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
  2931. $as_echo_n "checking for C compiler default output file name... " >&6; }
  2932. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
  2933. $as_echo "$ac_file" >&6; }
  2934. ac_exeext=$ac_cv_exeext
  2935. rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
  2936. ac_clean_files=$ac_clean_files_save
  2937. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
  2938. $as_echo_n "checking for suffix of executables... " >&6; }
  2939. if { { ac_try="$ac_link"
  2940. case "(($ac_try" in
  2941. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2942. *) ac_try_echo=$ac_try;;
  2943. esac
  2944. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  2945. $as_echo "$ac_try_echo"; } >&5
  2946. (eval "$ac_link") 2>&5
  2947. ac_status=$?
  2948. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  2949. test $ac_status = 0; }; then :
  2950. # If both `conftest.exe' and `conftest' are `present' (well, observable)
  2951. # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
  2952. # work properly (i.e., refer to `conftest.exe'), while it won't with
  2953. # `rm'.
  2954. for ac_file in conftest.exe conftest conftest.*; do
  2955. test -f "$ac_file" || continue
  2956. case $ac_file in
  2957. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
  2958. *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
  2959. break;;
  2960. * ) break;;
  2961. esac
  2962. done
  2963. else
  2964. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  2965. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  2966. as_fn_error $? "cannot compute suffix of executables: cannot compile and link
  2967. See \`config.log' for more details" "$LINENO" 5; }
  2968. fi
  2969. rm -f conftest conftest$ac_cv_exeext
  2970. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
  2971. $as_echo "$ac_cv_exeext" >&6; }
  2972. rm -f conftest.$ac_ext
  2973. EXEEXT=$ac_cv_exeext
  2974. ac_exeext=$EXEEXT
  2975. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2976. /* end confdefs.h. */
  2977. #include <stdio.h>
  2978. int
  2979. main ()
  2980. {
  2981. FILE *f = fopen ("conftest.out", "w");
  2982. return ferror (f) || fclose (f) != 0;
  2983. ;
  2984. return 0;
  2985. }
  2986. _ACEOF
  2987. ac_clean_files="$ac_clean_files conftest.out"
  2988. # Check that the compiler produces executables we can run. If not, either
  2989. # the compiler is broken, or we cross compile.
  2990. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
  2991. $as_echo_n "checking whether we are cross compiling... " >&6; }
  2992. if test "$cross_compiling" != yes; then
  2993. { { ac_try="$ac_link"
  2994. case "(($ac_try" in
  2995. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2996. *) ac_try_echo=$ac_try;;
  2997. esac
  2998. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  2999. $as_echo "$ac_try_echo"; } >&5
  3000. (eval "$ac_link") 2>&5
  3001. ac_status=$?
  3002. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3003. test $ac_status = 0; }
  3004. if { ac_try='./conftest$ac_cv_exeext'
  3005. { { case "(($ac_try" in
  3006. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3007. *) ac_try_echo=$ac_try;;
  3008. esac
  3009. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3010. $as_echo "$ac_try_echo"; } >&5
  3011. (eval "$ac_try") 2>&5
  3012. ac_status=$?
  3013. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3014. test $ac_status = 0; }; }; then
  3015. cross_compiling=no
  3016. else
  3017. if test "$cross_compiling" = maybe; then
  3018. cross_compiling=yes
  3019. else
  3020. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  3021. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  3022. as_fn_error $? "cannot run C compiled programs.
  3023. If you meant to cross compile, use \`--host'.
  3024. See \`config.log' for more details" "$LINENO" 5; }
  3025. fi
  3026. fi
  3027. fi
  3028. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
  3029. $as_echo "$cross_compiling" >&6; }
  3030. rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
  3031. ac_clean_files=$ac_clean_files_save
  3032. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
  3033. $as_echo_n "checking for suffix of object files... " >&6; }
  3034. if ${ac_cv_objext+:} false; then :
  3035. $as_echo_n "(cached) " >&6
  3036. else
  3037. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3038. /* end confdefs.h. */
  3039. int
  3040. main ()
  3041. {
  3042. ;
  3043. return 0;
  3044. }
  3045. _ACEOF
  3046. rm -f conftest.o conftest.obj
  3047. if { { ac_try="$ac_compile"
  3048. case "(($ac_try" in
  3049. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3050. *) ac_try_echo=$ac_try;;
  3051. esac
  3052. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3053. $as_echo "$ac_try_echo"; } >&5
  3054. (eval "$ac_compile") 2>&5
  3055. ac_status=$?
  3056. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3057. test $ac_status = 0; }; then :
  3058. for ac_file in conftest.o conftest.obj conftest.*; do
  3059. test -f "$ac_file" || continue;
  3060. case $ac_file in
  3061. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
  3062. *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
  3063. break;;
  3064. esac
  3065. done
  3066. else
  3067. $as_echo "$as_me: failed program was:" >&5
  3068. sed 's/^/| /' conftest.$ac_ext >&5
  3069. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  3070. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  3071. as_fn_error $? "cannot compute suffix of object files: cannot compile
  3072. See \`config.log' for more details" "$LINENO" 5; }
  3073. fi
  3074. rm -f conftest.$ac_cv_objext conftest.$ac_ext
  3075. fi
  3076. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
  3077. $as_echo "$ac_cv_objext" >&6; }
  3078. OBJEXT=$ac_cv_objext
  3079. ac_objext=$OBJEXT
  3080. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
  3081. $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
  3082. if ${ac_cv_c_compiler_gnu+:} false; then :
  3083. $as_echo_n "(cached) " >&6
  3084. else
  3085. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3086. /* end confdefs.h. */
  3087. int
  3088. main ()
  3089. {
  3090. #ifndef __GNUC__
  3091. choke me
  3092. #endif
  3093. ;
  3094. return 0;
  3095. }
  3096. _ACEOF
  3097. if ac_fn_c_try_compile "$LINENO"; then :
  3098. ac_compiler_gnu=yes
  3099. else
  3100. ac_compiler_gnu=no
  3101. fi
  3102. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3103. ac_cv_c_compiler_gnu=$ac_compiler_gnu
  3104. fi
  3105. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
  3106. $as_echo "$ac_cv_c_compiler_gnu" >&6; }
  3107. if test $ac_compiler_gnu = yes; then
  3108. GCC=yes
  3109. else
  3110. GCC=
  3111. fi
  3112. ac_test_CFLAGS=${CFLAGS+set}
  3113. ac_save_CFLAGS=$CFLAGS
  3114. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
  3115. $as_echo_n "checking whether $CC accepts -g... " >&6; }
  3116. if ${ac_cv_prog_cc_g+:} false; then :
  3117. $as_echo_n "(cached) " >&6
  3118. else
  3119. ac_save_c_werror_flag=$ac_c_werror_flag
  3120. ac_c_werror_flag=yes
  3121. ac_cv_prog_cc_g=no
  3122. CFLAGS="-g"
  3123. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3124. /* end confdefs.h. */
  3125. int
  3126. main ()
  3127. {
  3128. ;
  3129. return 0;
  3130. }
  3131. _ACEOF
  3132. if ac_fn_c_try_compile "$LINENO"; then :
  3133. ac_cv_prog_cc_g=yes
  3134. else
  3135. CFLAGS=""
  3136. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3137. /* end confdefs.h. */
  3138. int
  3139. main ()
  3140. {
  3141. ;
  3142. return 0;
  3143. }
  3144. _ACEOF
  3145. if ac_fn_c_try_compile "$LINENO"; then :
  3146. else
  3147. ac_c_werror_flag=$ac_save_c_werror_flag
  3148. CFLAGS="-g"
  3149. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3150. /* end confdefs.h. */
  3151. int
  3152. main ()
  3153. {
  3154. ;
  3155. return 0;
  3156. }
  3157. _ACEOF
  3158. if ac_fn_c_try_compile "$LINENO"; then :
  3159. ac_cv_prog_cc_g=yes
  3160. fi
  3161. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3162. fi
  3163. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3164. fi
  3165. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3166. ac_c_werror_flag=$ac_save_c_werror_flag
  3167. fi
  3168. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
  3169. $as_echo "$ac_cv_prog_cc_g" >&6; }
  3170. if test "$ac_test_CFLAGS" = set; then
  3171. CFLAGS=$ac_save_CFLAGS
  3172. elif test $ac_cv_prog_cc_g = yes; then
  3173. if test "$GCC" = yes; then
  3174. CFLAGS="-g -O2"
  3175. else
  3176. CFLAGS="-g"
  3177. fi
  3178. else
  3179. if test "$GCC" = yes; then
  3180. CFLAGS="-O2"
  3181. else
  3182. CFLAGS=
  3183. fi
  3184. fi
  3185. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
  3186. $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
  3187. if ${ac_cv_prog_cc_c89+:} false; then :
  3188. $as_echo_n "(cached) " >&6
  3189. else
  3190. ac_cv_prog_cc_c89=no
  3191. ac_save_CC=$CC
  3192. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3193. /* end confdefs.h. */
  3194. #include <stdarg.h>
  3195. #include <stdio.h>
  3196. struct stat;
  3197. /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
  3198. struct buf { int x; };
  3199. FILE * (*rcsopen) (struct buf *, struct stat *, int);
  3200. static char *e (p, i)
  3201. char **p;
  3202. int i;
  3203. {
  3204. return p[i];
  3205. }
  3206. static char *f (char * (*g) (char **, int), char **p, ...)
  3207. {
  3208. char *s;
  3209. va_list v;
  3210. va_start (v,p);
  3211. s = g (p, va_arg (v,int));
  3212. va_end (v);
  3213. return s;
  3214. }
  3215. /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
  3216. function prototypes and stuff, but not '\xHH' hex character constants.
  3217. These don't provoke an error unfortunately, instead are silently treated
  3218. as 'x'. The following induces an error, until -std is added to get
  3219. proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
  3220. array size at least. It's necessary to write '\x00'==0 to get something
  3221. that's true only with -std. */
  3222. int osf4_cc_array ['\x00' == 0 ? 1 : -1];
  3223. /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
  3224. inside strings and character constants. */
  3225. #define FOO(x) 'x'
  3226. int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
  3227. int test (int i, double x);
  3228. struct s1 {int (*f) (int a);};
  3229. struct s2 {int (*f) (double a);};
  3230. int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
  3231. int argc;
  3232. char **argv;
  3233. int
  3234. main ()
  3235. {
  3236. return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
  3237. ;
  3238. return 0;
  3239. }
  3240. _ACEOF
  3241. for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
  3242. -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
  3243. do
  3244. CC="$ac_save_CC $ac_arg"
  3245. if ac_fn_c_try_compile "$LINENO"; then :
  3246. ac_cv_prog_cc_c89=$ac_arg
  3247. fi
  3248. rm -f core conftest.err conftest.$ac_objext
  3249. test "x$ac_cv_prog_cc_c89" != "xno" && break
  3250. done
  3251. rm -f conftest.$ac_ext
  3252. CC=$ac_save_CC
  3253. fi
  3254. # AC_CACHE_VAL
  3255. case "x$ac_cv_prog_cc_c89" in
  3256. x)
  3257. { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
  3258. $as_echo "none needed" >&6; } ;;
  3259. xno)
  3260. { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
  3261. $as_echo "unsupported" >&6; } ;;
  3262. *)
  3263. CC="$CC $ac_cv_prog_cc_c89"
  3264. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
  3265. $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
  3266. esac
  3267. if test "x$ac_cv_prog_cc_c89" != xno; then :
  3268. fi
  3269. ac_ext=c
  3270. ac_cpp='$CPP $CPPFLAGS'
  3271. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  3272. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  3273. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  3274. ac_ext=c
  3275. ac_cpp='$CPP $CPPFLAGS'
  3276. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  3277. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  3278. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  3279. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
  3280. $as_echo_n "checking how to run the C preprocessor... " >&6; }
  3281. # On Suns, sometimes $CPP names a directory.
  3282. if test -n "$CPP" && test -d "$CPP"; then
  3283. CPP=
  3284. fi
  3285. if test -z "$CPP"; then
  3286. if ${ac_cv_prog_CPP+:} false; then :
  3287. $as_echo_n "(cached) " >&6
  3288. else
  3289. # Double quotes because CPP needs to be expanded
  3290. for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
  3291. do
  3292. ac_preproc_ok=false
  3293. for ac_c_preproc_warn_flag in '' yes
  3294. do
  3295. # Use a header file that comes with gcc, so configuring glibc
  3296. # with a fresh cross-compiler works.
  3297. # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  3298. # <limits.h> exists even on freestanding compilers.
  3299. # On the NeXT, cc -E runs the code through the compiler's parser,
  3300. # not just through cpp. "Syntax error" is here to catch this case.
  3301. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3302. /* end confdefs.h. */
  3303. #ifdef __STDC__
  3304. # include <limits.h>
  3305. #else
  3306. # include <assert.h>
  3307. #endif
  3308. Syntax error
  3309. _ACEOF
  3310. if ac_fn_c_try_cpp "$LINENO"; then :
  3311. else
  3312. # Broken: fails on valid input.
  3313. continue
  3314. fi
  3315. rm -f conftest.err conftest.i conftest.$ac_ext
  3316. # OK, works on sane cases. Now check whether nonexistent headers
  3317. # can be detected and how.
  3318. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3319. /* end confdefs.h. */
  3320. #include <ac_nonexistent.h>
  3321. _ACEOF
  3322. if ac_fn_c_try_cpp "$LINENO"; then :
  3323. # Broken: success on invalid input.
  3324. continue
  3325. else
  3326. # Passes both tests.
  3327. ac_preproc_ok=:
  3328. break
  3329. fi
  3330. rm -f conftest.err conftest.i conftest.$ac_ext
  3331. done
  3332. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  3333. rm -f conftest.i conftest.err conftest.$ac_ext
  3334. if $ac_preproc_ok; then :
  3335. break
  3336. fi
  3337. done
  3338. ac_cv_prog_CPP=$CPP
  3339. fi
  3340. CPP=$ac_cv_prog_CPP
  3341. else
  3342. ac_cv_prog_CPP=$CPP
  3343. fi
  3344. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
  3345. $as_echo "$CPP" >&6; }
  3346. ac_preproc_ok=false
  3347. for ac_c_preproc_warn_flag in '' yes
  3348. do
  3349. # Use a header file that comes with gcc, so configuring glibc
  3350. # with a fresh cross-compiler works.
  3351. # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  3352. # <limits.h> exists even on freestanding compilers.
  3353. # On the NeXT, cc -E runs the code through the compiler's parser,
  3354. # not just through cpp. "Syntax error" is here to catch this case.
  3355. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3356. /* end confdefs.h. */
  3357. #ifdef __STDC__
  3358. # include <limits.h>
  3359. #else
  3360. # include <assert.h>
  3361. #endif
  3362. Syntax error
  3363. _ACEOF
  3364. if ac_fn_c_try_cpp "$LINENO"; then :
  3365. else
  3366. # Broken: fails on valid input.
  3367. continue
  3368. fi
  3369. rm -f conftest.err conftest.i conftest.$ac_ext
  3370. # OK, works on sane cases. Now check whether nonexistent headers
  3371. # can be detected and how.
  3372. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3373. /* end confdefs.h. */
  3374. #include <ac_nonexistent.h>
  3375. _ACEOF
  3376. if ac_fn_c_try_cpp "$LINENO"; then :
  3377. # Broken: success on invalid input.
  3378. continue
  3379. else
  3380. # Passes both tests.
  3381. ac_preproc_ok=:
  3382. break
  3383. fi
  3384. rm -f conftest.err conftest.i conftest.$ac_ext
  3385. done
  3386. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  3387. rm -f conftest.i conftest.err conftest.$ac_ext
  3388. if $ac_preproc_ok; then :
  3389. else
  3390. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  3391. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  3392. as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
  3393. See \`config.log' for more details" "$LINENO" 5; }
  3394. fi
  3395. ac_ext=c
  3396. ac_cpp='$CPP $CPPFLAGS'
  3397. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  3398. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  3399. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  3400. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
  3401. $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
  3402. if ${ac_cv_path_GREP+:} false; then :
  3403. $as_echo_n "(cached) " >&6
  3404. else
  3405. if test -z "$GREP"; then
  3406. ac_path_GREP_found=false
  3407. # Loop through the user's path and test for each of PROGNAME-LIST
  3408. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3409. for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
  3410. do
  3411. IFS=$as_save_IFS
  3412. test -z "$as_dir" && as_dir=.
  3413. for ac_prog in grep ggrep; do
  3414. for ac_exec_ext in '' $ac_executable_extensions; do
  3415. ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
  3416. as_fn_executable_p "$ac_path_GREP" || continue
  3417. # Check for GNU ac_path_GREP and select it if it is found.
  3418. # Check for GNU $ac_path_GREP
  3419. case `"$ac_path_GREP" --version 2>&1` in
  3420. *GNU*)
  3421. ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
  3422. *)
  3423. ac_count=0
  3424. $as_echo_n 0123456789 >"conftest.in"
  3425. while :
  3426. do
  3427. cat "conftest.in" "conftest.in" >"conftest.tmp"
  3428. mv "conftest.tmp" "conftest.in"
  3429. cp "conftest.in" "conftest.nl"
  3430. $as_echo 'GREP' >> "conftest.nl"
  3431. "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
  3432. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  3433. as_fn_arith $ac_count + 1 && ac_count=$as_val
  3434. if test $ac_count -gt ${ac_path_GREP_max-0}; then
  3435. # Best one so far, save it but keep looking for a better one
  3436. ac_cv_path_GREP="$ac_path_GREP"
  3437. ac_path_GREP_max=$ac_count
  3438. fi
  3439. # 10*(2^10) chars as input seems more than enough
  3440. test $ac_count -gt 10 && break
  3441. done
  3442. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  3443. esac
  3444. $ac_path_GREP_found && break 3
  3445. done
  3446. done
  3447. done
  3448. IFS=$as_save_IFS
  3449. if test -z "$ac_cv_path_GREP"; then
  3450. as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
  3451. fi
  3452. else
  3453. ac_cv_path_GREP=$GREP
  3454. fi
  3455. fi
  3456. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
  3457. $as_echo "$ac_cv_path_GREP" >&6; }
  3458. GREP="$ac_cv_path_GREP"
  3459. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
  3460. $as_echo_n "checking for egrep... " >&6; }
  3461. if ${ac_cv_path_EGREP+:} false; then :
  3462. $as_echo_n "(cached) " >&6
  3463. else
  3464. if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
  3465. then ac_cv_path_EGREP="$GREP -E"
  3466. else
  3467. if test -z "$EGREP"; then
  3468. ac_path_EGREP_found=false
  3469. # Loop through the user's path and test for each of PROGNAME-LIST
  3470. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3471. for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
  3472. do
  3473. IFS=$as_save_IFS
  3474. test -z "$as_dir" && as_dir=.
  3475. for ac_prog in egrep; do
  3476. for ac_exec_ext in '' $ac_executable_extensions; do
  3477. ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
  3478. as_fn_executable_p "$ac_path_EGREP" || continue
  3479. # Check for GNU ac_path_EGREP and select it if it is found.
  3480. # Check for GNU $ac_path_EGREP
  3481. case `"$ac_path_EGREP" --version 2>&1` in
  3482. *GNU*)
  3483. ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
  3484. *)
  3485. ac_count=0
  3486. $as_echo_n 0123456789 >"conftest.in"
  3487. while :
  3488. do
  3489. cat "conftest.in" "conftest.in" >"conftest.tmp"
  3490. mv "conftest.tmp" "conftest.in"
  3491. cp "conftest.in" "conftest.nl"
  3492. $as_echo 'EGREP' >> "conftest.nl"
  3493. "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
  3494. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  3495. as_fn_arith $ac_count + 1 && ac_count=$as_val
  3496. if test $ac_count -gt ${ac_path_EGREP_max-0}; then
  3497. # Best one so far, save it but keep looking for a better one
  3498. ac_cv_path_EGREP="$ac_path_EGREP"
  3499. ac_path_EGREP_max=$ac_count
  3500. fi
  3501. # 10*(2^10) chars as input seems more than enough
  3502. test $ac_count -gt 10 && break
  3503. done
  3504. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  3505. esac
  3506. $ac_path_EGREP_found && break 3
  3507. done
  3508. done
  3509. done
  3510. IFS=$as_save_IFS
  3511. if test -z "$ac_cv_path_EGREP"; then
  3512. as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
  3513. fi
  3514. else
  3515. ac_cv_path_EGREP=$EGREP
  3516. fi
  3517. fi
  3518. fi
  3519. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
  3520. $as_echo "$ac_cv_path_EGREP" >&6; }
  3521. EGREP="$ac_cv_path_EGREP"
  3522. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
  3523. $as_echo_n "checking for ANSI C header files... " >&6; }
  3524. if ${ac_cv_header_stdc+:} false; then :
  3525. $as_echo_n "(cached) " >&6
  3526. else
  3527. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3528. /* end confdefs.h. */
  3529. #include <stdlib.h>
  3530. #include <stdarg.h>
  3531. #include <string.h>
  3532. #include <float.h>
  3533. int
  3534. main ()
  3535. {
  3536. ;
  3537. return 0;
  3538. }
  3539. _ACEOF
  3540. if ac_fn_c_try_compile "$LINENO"; then :
  3541. ac_cv_header_stdc=yes
  3542. else
  3543. ac_cv_header_stdc=no
  3544. fi
  3545. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3546. if test $ac_cv_header_stdc = yes; then
  3547. # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
  3548. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3549. /* end confdefs.h. */
  3550. #include <string.h>
  3551. _ACEOF
  3552. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  3553. $EGREP "memchr" >/dev/null 2>&1; then :
  3554. else
  3555. ac_cv_header_stdc=no
  3556. fi
  3557. rm -f conftest*
  3558. fi
  3559. if test $ac_cv_header_stdc = yes; then
  3560. # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
  3561. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3562. /* end confdefs.h. */
  3563. #include <stdlib.h>
  3564. _ACEOF
  3565. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  3566. $EGREP "free" >/dev/null 2>&1; then :
  3567. else
  3568. ac_cv_header_stdc=no
  3569. fi
  3570. rm -f conftest*
  3571. fi
  3572. if test $ac_cv_header_stdc = yes; then
  3573. # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
  3574. if test "$cross_compiling" = yes; then :
  3575. :
  3576. else
  3577. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3578. /* end confdefs.h. */
  3579. #include <ctype.h>
  3580. #include <stdlib.h>
  3581. #if ((' ' & 0x0FF) == 0x020)
  3582. # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
  3583. # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
  3584. #else
  3585. # define ISLOWER(c) \
  3586. (('a' <= (c) && (c) <= 'i') \
  3587. || ('j' <= (c) && (c) <= 'r') \
  3588. || ('s' <= (c) && (c) <= 'z'))
  3589. # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
  3590. #endif
  3591. #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
  3592. int
  3593. main ()
  3594. {
  3595. int i;
  3596. for (i = 0; i < 256; i++)
  3597. if (XOR (islower (i), ISLOWER (i))
  3598. || toupper (i) != TOUPPER (i))
  3599. return 2;
  3600. return 0;
  3601. }
  3602. _ACEOF
  3603. if ac_fn_c_try_run "$LINENO"; then :
  3604. else
  3605. ac_cv_header_stdc=no
  3606. fi
  3607. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  3608. conftest.$ac_objext conftest.beam conftest.$ac_ext
  3609. fi
  3610. fi
  3611. fi
  3612. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
  3613. $as_echo "$ac_cv_header_stdc" >&6; }
  3614. if test $ac_cv_header_stdc = yes; then
  3615. $as_echo "#define STDC_HEADERS 1" >>confdefs.h
  3616. fi
  3617. # On IRIX 5.3, sys/types and inttypes.h are conflicting.
  3618. for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
  3619. inttypes.h stdint.h unistd.h
  3620. do :
  3621. as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
  3622. ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
  3623. "
  3624. if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
  3625. cat >>confdefs.h <<_ACEOF
  3626. #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
  3627. _ACEOF
  3628. fi
  3629. done
  3630. ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
  3631. if test "x$ac_cv_header_minix_config_h" = xyes; then :
  3632. MINIX=yes
  3633. else
  3634. MINIX=
  3635. fi
  3636. if test "$MINIX" = yes; then
  3637. $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
  3638. $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
  3639. $as_echo "#define _MINIX 1" >>confdefs.h
  3640. fi
  3641. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
  3642. $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
  3643. if ${ac_cv_safe_to_define___extensions__+:} false; then :
  3644. $as_echo_n "(cached) " >&6
  3645. else
  3646. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3647. /* end confdefs.h. */
  3648. # define __EXTENSIONS__ 1
  3649. $ac_includes_default
  3650. int
  3651. main ()
  3652. {
  3653. ;
  3654. return 0;
  3655. }
  3656. _ACEOF
  3657. if ac_fn_c_try_compile "$LINENO"; then :
  3658. ac_cv_safe_to_define___extensions__=yes
  3659. else
  3660. ac_cv_safe_to_define___extensions__=no
  3661. fi
  3662. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3663. fi
  3664. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
  3665. $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
  3666. test $ac_cv_safe_to_define___extensions__ = yes &&
  3667. $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
  3668. $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
  3669. $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
  3670. $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
  3671. $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
  3672. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
  3673. $as_echo_n "checking for inline... " >&6; }
  3674. if ${ac_cv_c_inline+:} false; then :
  3675. $as_echo_n "(cached) " >&6
  3676. else
  3677. ac_cv_c_inline=no
  3678. for ac_kw in inline __inline__ __inline; do
  3679. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3680. /* end confdefs.h. */
  3681. #ifndef __cplusplus
  3682. typedef int foo_t;
  3683. static $ac_kw foo_t static_foo () {return 0; }
  3684. $ac_kw foo_t foo () {return 0; }
  3685. #endif
  3686. _ACEOF
  3687. if ac_fn_c_try_compile "$LINENO"; then :
  3688. ac_cv_c_inline=$ac_kw
  3689. fi
  3690. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3691. test "$ac_cv_c_inline" != no && break
  3692. done
  3693. fi
  3694. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
  3695. $as_echo "$ac_cv_c_inline" >&6; }
  3696. case $ac_cv_c_inline in
  3697. inline | yes) ;;
  3698. *)
  3699. case $ac_cv_c_inline in
  3700. no) ac_val=;;
  3701. *) ac_val=$ac_cv_c_inline;;
  3702. esac
  3703. cat >>confdefs.h <<_ACEOF
  3704. #ifndef __cplusplus
  3705. #define inline $ac_val
  3706. #endif
  3707. _ACEOF
  3708. ;;
  3709. esac
  3710. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
  3711. $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
  3712. if ${ac_cv_c_const+:} false; then :
  3713. $as_echo_n "(cached) " >&6
  3714. else
  3715. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3716. /* end confdefs.h. */
  3717. int
  3718. main ()
  3719. {
  3720. #ifndef __cplusplus
  3721. /* Ultrix mips cc rejects this sort of thing. */
  3722. typedef int charset[2];
  3723. const charset cs = { 0, 0 };
  3724. /* SunOS 4.1.1 cc rejects this. */
  3725. char const *const *pcpcc;
  3726. char **ppc;
  3727. /* NEC SVR4.0.2 mips cc rejects this. */
  3728. struct point {int x, y;};
  3729. static struct point const zero = {0,0};
  3730. /* AIX XL C 1.02.0.0 rejects this.
  3731. It does not let you subtract one const X* pointer from another in
  3732. an arm of an if-expression whose if-part is not a constant
  3733. expression */
  3734. const char *g = "string";
  3735. pcpcc = &g + (g ? g-g : 0);
  3736. /* HPUX 7.0 cc rejects these. */
  3737. ++pcpcc;
  3738. ppc = (char**) pcpcc;
  3739. pcpcc = (char const *const *) ppc;
  3740. { /* SCO 3.2v4 cc rejects this sort of thing. */
  3741. char tx;
  3742. char *t = &tx;
  3743. char const *s = 0 ? (char *) 0 : (char const *) 0;
  3744. *t++ = 0;
  3745. if (s) return 0;
  3746. }
  3747. { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
  3748. int x[] = {25, 17};
  3749. const int *foo = &x[0];
  3750. ++foo;
  3751. }
  3752. { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
  3753. typedef const int *iptr;
  3754. iptr p = 0;
  3755. ++p;
  3756. }
  3757. { /* AIX XL C 1.02.0.0 rejects this sort of thing, saying
  3758. "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
  3759. struct s { int j; const int *ap[3]; } bx;
  3760. struct s *b = &bx; b->j = 5;
  3761. }
  3762. { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
  3763. const int foo = 10;
  3764. if (!foo) return 0;
  3765. }
  3766. return !cs[0] && !zero.x;
  3767. #endif
  3768. ;
  3769. return 0;
  3770. }
  3771. _ACEOF
  3772. if ac_fn_c_try_compile "$LINENO"; then :
  3773. ac_cv_c_const=yes
  3774. else
  3775. ac_cv_c_const=no
  3776. fi
  3777. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3778. fi
  3779. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
  3780. $as_echo "$ac_cv_c_const" >&6; }
  3781. if test $ac_cv_c_const = no; then
  3782. $as_echo "#define const /**/" >>confdefs.h
  3783. fi
  3784. ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
  3785. if test "x$ac_cv_type_size_t" = xyes; then :
  3786. else
  3787. cat >>confdefs.h <<_ACEOF
  3788. #define size_t unsigned int
  3789. _ACEOF
  3790. fi
  3791. ac_fn_c_check_type "$LINENO" "off_t" "ac_cv_type_off_t" "$ac_includes_default"
  3792. if test "x$ac_cv_type_off_t" = xyes; then :
  3793. else
  3794. cat >>confdefs.h <<_ACEOF
  3795. #define off_t long int
  3796. _ACEOF
  3797. fi
  3798. # Check for Darwin, which needs extra cpp and linker flags.
  3799. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uname" >&5
  3800. $as_echo_n "checking for uname... " >&6; }
  3801. if ${ne_cv_os_uname+:} false; then :
  3802. $as_echo_n "(cached) " >&6
  3803. else
  3804. ne_cv_os_uname=`uname -s 2>/dev/null`
  3805. fi
  3806. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ne_cv_os_uname" >&5
  3807. $as_echo "$ne_cv_os_uname" >&6; }
  3808. if test "$ne_cv_os_uname" = "Darwin"; then
  3809. CPPFLAGS="$CPPFLAGS -no-cpp-precomp"
  3810. LDFLAGS="$LDFLAGS -flat_namespace"
  3811. # poll has various issues in various Darwin releases
  3812. if test x${ac_cv_func_poll+set} != xset; then
  3813. ac_cv_func_poll=no
  3814. fi
  3815. fi
  3816. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
  3817. $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
  3818. set x ${MAKE-make}
  3819. ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
  3820. if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
  3821. $as_echo_n "(cached) " >&6
  3822. else
  3823. cat >conftest.make <<\_ACEOF
  3824. SHELL = /bin/sh
  3825. all:
  3826. @echo '@@@%%%=$(MAKE)=@@@%%%'
  3827. _ACEOF
  3828. # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
  3829. case `${MAKE-make} -f conftest.make 2>/dev/null` in
  3830. *@@@%%%=?*=@@@%%%*)
  3831. eval ac_cv_prog_make_${ac_make}_set=yes;;
  3832. *)
  3833. eval ac_cv_prog_make_${ac_make}_set=no;;
  3834. esac
  3835. rm -f conftest.make
  3836. fi
  3837. if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
  3838. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  3839. $as_echo "yes" >&6; }
  3840. SET_MAKE=
  3841. else
  3842. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3843. $as_echo "no" >&6; }
  3844. SET_MAKE="MAKE=${MAKE-make}"
  3845. fi
  3846. # The cast to long int works around a bug in the HP C Compiler
  3847. # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
  3848. # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
  3849. # This bug is HP SR number 8606223364.
  3850. { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of int" >&5
  3851. $as_echo_n "checking size of int... " >&6; }
  3852. if ${ac_cv_sizeof_int+:} false; then :
  3853. $as_echo_n "(cached) " >&6
  3854. else
  3855. if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (int))" "ac_cv_sizeof_int" "$ac_includes_default"; then :
  3856. else
  3857. if test "$ac_cv_type_int" = yes; then
  3858. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  3859. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  3860. as_fn_error 77 "cannot compute sizeof (int)
  3861. See \`config.log' for more details" "$LINENO" 5; }
  3862. else
  3863. ac_cv_sizeof_int=0
  3864. fi
  3865. fi
  3866. fi
  3867. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int" >&5
  3868. $as_echo "$ac_cv_sizeof_int" >&6; }
  3869. cat >>confdefs.h <<_ACEOF
  3870. #define SIZEOF_INT $ac_cv_sizeof_int
  3871. _ACEOF
  3872. # The cast to long int works around a bug in the HP C Compiler
  3873. # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
  3874. # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
  3875. # This bug is HP SR number 8606223364.
  3876. { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long" >&5
  3877. $as_echo_n "checking size of long... " >&6; }
  3878. if ${ac_cv_sizeof_long+:} false; then :
  3879. $as_echo_n "(cached) " >&6
  3880. else
  3881. if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long))" "ac_cv_sizeof_long" "$ac_includes_default"; then :
  3882. else
  3883. if test "$ac_cv_type_long" = yes; then
  3884. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  3885. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  3886. as_fn_error 77 "cannot compute sizeof (long)
  3887. See \`config.log' for more details" "$LINENO" 5; }
  3888. else
  3889. ac_cv_sizeof_long=0
  3890. fi
  3891. fi
  3892. fi
  3893. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5
  3894. $as_echo "$ac_cv_sizeof_long" >&6; }
  3895. cat >>confdefs.h <<_ACEOF
  3896. #define SIZEOF_LONG $ac_cv_sizeof_long
  3897. _ACEOF
  3898. # The cast to long int works around a bug in the HP C Compiler
  3899. # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
  3900. # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
  3901. # This bug is HP SR number 8606223364.
  3902. { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long long" >&5
  3903. $as_echo_n "checking size of long long... " >&6; }
  3904. if ${ac_cv_sizeof_long_long+:} false; then :
  3905. $as_echo_n "(cached) " >&6
  3906. else
  3907. if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long long))" "ac_cv_sizeof_long_long" "$ac_includes_default"; then :
  3908. else
  3909. if test "$ac_cv_type_long_long" = yes; then
  3910. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  3911. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  3912. as_fn_error 77 "cannot compute sizeof (long long)
  3913. See \`config.log' for more details" "$LINENO" 5; }
  3914. else
  3915. ac_cv_sizeof_long_long=0
  3916. fi
  3917. fi
  3918. fi
  3919. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long_long" >&5
  3920. $as_echo "$ac_cv_sizeof_long_long" >&6; }
  3921. cat >>confdefs.h <<_ACEOF
  3922. #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
  3923. _ACEOF
  3924. if test "$GCC" = "yes"; then
  3925. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gcc -Wformat -Werror sanity" >&5
  3926. $as_echo_n "checking for gcc -Wformat -Werror sanity... " >&6; }
  3927. if ${ne_cv_cc_werror+:} false; then :
  3928. $as_echo_n "(cached) " >&6
  3929. else
  3930. # See whether a simple test program will compile without errors.
  3931. ne_save_CPPFLAGS=$CPPFLAGS
  3932. CPPFLAGS="$CPPFLAGS -Wformat -Werror"
  3933. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3934. /* end confdefs.h. */
  3935. #include <sys/types.h>
  3936. #include <stdio.h>
  3937. int
  3938. main ()
  3939. {
  3940. int i = 42; printf("%d", i);
  3941. ;
  3942. return 0;
  3943. }
  3944. _ACEOF
  3945. if ac_fn_c_try_compile "$LINENO"; then :
  3946. ne_cv_cc_werror=yes
  3947. else
  3948. ne_cv_cc_werror=no
  3949. fi
  3950. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3951. CPPFLAGS=$ne_save_CPPFLAGS
  3952. fi
  3953. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ne_cv_cc_werror" >&5
  3954. $as_echo "$ne_cv_cc_werror" >&6; }
  3955. ne_fmt_trycompile=$ne_cv_cc_werror
  3956. else
  3957. ne_fmt_trycompile=no
  3958. fi
  3959. # These checks are done whether or not the bundled neon build
  3960. # is used.
  3961. for ac_header in errno.h stdarg.h string.h stdlib.h sys/uio.h
  3962. do :
  3963. as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
  3964. ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
  3965. if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
  3966. cat >>confdefs.h <<_ACEOF
  3967. #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
  3968. _ACEOF
  3969. fi
  3970. done
  3971. # The cast to long int works around a bug in the HP C Compiler
  3972. # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
  3973. # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
  3974. # This bug is HP SR number 8606223364.
  3975. { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of size_t" >&5
  3976. $as_echo_n "checking size of size_t... " >&6; }
  3977. if ${ac_cv_sizeof_size_t+:} false; then :
  3978. $as_echo_n "(cached) " >&6
  3979. else
  3980. if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (size_t))" "ac_cv_sizeof_size_t" "$ac_includes_default
  3981. "; then :
  3982. else
  3983. if test "$ac_cv_type_size_t" = yes; then
  3984. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  3985. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  3986. as_fn_error 77 "cannot compute sizeof (size_t)
  3987. See \`config.log' for more details" "$LINENO" 5; }
  3988. else
  3989. ac_cv_sizeof_size_t=0
  3990. fi
  3991. fi
  3992. fi
  3993. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_size_t" >&5
  3994. $as_echo "$ac_cv_sizeof_size_t" >&6; }
  3995. cat >>confdefs.h <<_ACEOF
  3996. #define SIZEOF_SIZE_T $ac_cv_sizeof_size_t
  3997. _ACEOF
  3998. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print size_t" >&5
  3999. $as_echo_n "checking how to print size_t... " >&6; }
  4000. if ${ne_cv_fmt_size_t+:} false; then :
  4001. $as_echo_n "(cached) " >&6
  4002. else
  4003. ne_cv_fmt_size_t=none
  4004. if test $ne_fmt_trycompile = yes; then
  4005. oflags="$CPPFLAGS"
  4006. # Consider format string mismatches as errors
  4007. CPPFLAGS="$CPPFLAGS -Wformat -Werror"
  4008. for str in u lu llu; do
  4009. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4010. /* end confdefs.h. */
  4011. #include <sys/types.h>
  4012. #include <stdio.h>
  4013. int
  4014. main ()
  4015. {
  4016. size_t i = 1; printf("%$str", i);
  4017. ;
  4018. return 0;
  4019. }
  4020. _ACEOF
  4021. if ac_fn_c_try_compile "$LINENO"; then :
  4022. ne_cv_fmt_size_t=$str; break
  4023. fi
  4024. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4025. done
  4026. CPPFLAGS=$oflags
  4027. else
  4028. # Best guess. Don't have to be too precise since we probably won't
  4029. # get a warning message anyway.
  4030. case $ac_cv_sizeof_size_t in
  4031. $ac_cv_sizeof_int) ne_cv_fmt_size_t="u" ;;
  4032. $ac_cv_sizeof_long) ne_cv_fmt_size_t="lu" ;;
  4033. $ac_cv_sizeof_long_long) ne_cv_fmt_size_t="llu" ;;
  4034. esac
  4035. fi
  4036. fi
  4037. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ne_cv_fmt_size_t" >&5
  4038. $as_echo "$ne_cv_fmt_size_t" >&6; }
  4039. if test "x$ne_cv_fmt_size_t" = "xnone"; then
  4040. as_fn_error $? "format string for size_t not found" "$LINENO" 5
  4041. fi
  4042. cat >>confdefs.h <<_ACEOF
  4043. #define NE_FMT_SIZE_T "$ne_cv_fmt_size_t"
  4044. _ACEOF
  4045. # The cast to long int works around a bug in the HP C Compiler
  4046. # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
  4047. # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
  4048. # This bug is HP SR number 8606223364.
  4049. { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of off_t" >&5
  4050. $as_echo_n "checking size of off_t... " >&6; }
  4051. if ${ac_cv_sizeof_off_t+:} false; then :
  4052. $as_echo_n "(cached) " >&6
  4053. else
  4054. if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (off_t))" "ac_cv_sizeof_off_t" "$ac_includes_default
  4055. "; then :
  4056. else
  4057. if test "$ac_cv_type_off_t" = yes; then
  4058. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  4059. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  4060. as_fn_error 77 "cannot compute sizeof (off_t)
  4061. See \`config.log' for more details" "$LINENO" 5; }
  4062. else
  4063. ac_cv_sizeof_off_t=0
  4064. fi
  4065. fi
  4066. fi
  4067. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_off_t" >&5
  4068. $as_echo "$ac_cv_sizeof_off_t" >&6; }
  4069. cat >>confdefs.h <<_ACEOF
  4070. #define SIZEOF_OFF_T $ac_cv_sizeof_off_t
  4071. _ACEOF
  4072. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print off_t" >&5
  4073. $as_echo_n "checking how to print off_t... " >&6; }
  4074. if ${ne_cv_fmt_off_t+:} false; then :
  4075. $as_echo_n "(cached) " >&6
  4076. else
  4077. ne_cv_fmt_off_t=none
  4078. if test $ne_fmt_trycompile = yes; then
  4079. oflags="$CPPFLAGS"
  4080. # Consider format string mismatches as errors
  4081. CPPFLAGS="$CPPFLAGS -Wformat -Werror"
  4082. for str in d ld lld; do
  4083. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4084. /* end confdefs.h. */
  4085. #include <sys/types.h>
  4086. #include <stdio.h>
  4087. int
  4088. main ()
  4089. {
  4090. off_t i = 1; printf("%$str", i);
  4091. ;
  4092. return 0;
  4093. }
  4094. _ACEOF
  4095. if ac_fn_c_try_compile "$LINENO"; then :
  4096. ne_cv_fmt_off_t=$str; break
  4097. fi
  4098. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4099. done
  4100. CPPFLAGS=$oflags
  4101. else
  4102. # Best guess. Don't have to be too precise since we probably won't
  4103. # get a warning message anyway.
  4104. case $ac_cv_sizeof_off_t in
  4105. $ac_cv_sizeof_int) ne_cv_fmt_off_t="d" ;;
  4106. $ac_cv_sizeof_long) ne_cv_fmt_off_t="ld" ;;
  4107. $ac_cv_sizeof_long_long) ne_cv_fmt_off_t="lld" ;;
  4108. esac
  4109. fi
  4110. fi
  4111. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ne_cv_fmt_off_t" >&5
  4112. $as_echo "$ne_cv_fmt_off_t" >&6; }
  4113. if test "x$ne_cv_fmt_off_t" = "xnone"; then
  4114. as_fn_error $? "format string for off_t not found" "$LINENO" 5
  4115. fi
  4116. cat >>confdefs.h <<_ACEOF
  4117. #define NE_FMT_OFF_T "$ne_cv_fmt_off_t"
  4118. _ACEOF
  4119. # The cast to long int works around a bug in the HP C Compiler
  4120. # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
  4121. # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
  4122. # This bug is HP SR number 8606223364.
  4123. { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of ssize_t" >&5
  4124. $as_echo_n "checking size of ssize_t... " >&6; }
  4125. if ${ac_cv_sizeof_ssize_t+:} false; then :
  4126. $as_echo_n "(cached) " >&6
  4127. else
  4128. if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (ssize_t))" "ac_cv_sizeof_ssize_t" "$ac_includes_default
  4129. "; then :
  4130. else
  4131. if test "$ac_cv_type_ssize_t" = yes; then
  4132. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  4133. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  4134. as_fn_error 77 "cannot compute sizeof (ssize_t)
  4135. See \`config.log' for more details" "$LINENO" 5; }
  4136. else
  4137. ac_cv_sizeof_ssize_t=0
  4138. fi
  4139. fi
  4140. fi
  4141. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_ssize_t" >&5
  4142. $as_echo "$ac_cv_sizeof_ssize_t" >&6; }
  4143. cat >>confdefs.h <<_ACEOF
  4144. #define SIZEOF_SSIZE_T $ac_cv_sizeof_ssize_t
  4145. _ACEOF
  4146. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print ssize_t" >&5
  4147. $as_echo_n "checking how to print ssize_t... " >&6; }
  4148. if ${ne_cv_fmt_ssize_t+:} false; then :
  4149. $as_echo_n "(cached) " >&6
  4150. else
  4151. ne_cv_fmt_ssize_t=none
  4152. if test $ne_fmt_trycompile = yes; then
  4153. oflags="$CPPFLAGS"
  4154. # Consider format string mismatches as errors
  4155. CPPFLAGS="$CPPFLAGS -Wformat -Werror"
  4156. for str in d ld lld; do
  4157. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4158. /* end confdefs.h. */
  4159. #include <sys/types.h>
  4160. #include <stdio.h>
  4161. int
  4162. main ()
  4163. {
  4164. ssize_t i = 1; printf("%$str", i);
  4165. ;
  4166. return 0;
  4167. }
  4168. _ACEOF
  4169. if ac_fn_c_try_compile "$LINENO"; then :
  4170. ne_cv_fmt_ssize_t=$str; break
  4171. fi
  4172. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4173. done
  4174. CPPFLAGS=$oflags
  4175. else
  4176. # Best guess. Don't have to be too precise since we probably won't
  4177. # get a warning message anyway.
  4178. case $ac_cv_sizeof_ssize_t in
  4179. $ac_cv_sizeof_int) ne_cv_fmt_ssize_t="d" ;;
  4180. $ac_cv_sizeof_long) ne_cv_fmt_ssize_t="ld" ;;
  4181. $ac_cv_sizeof_long_long) ne_cv_fmt_ssize_t="lld" ;;
  4182. esac
  4183. fi
  4184. fi
  4185. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ne_cv_fmt_ssize_t" >&5
  4186. $as_echo "$ne_cv_fmt_ssize_t" >&6; }
  4187. if test "x$ne_cv_fmt_ssize_t" = "xnone"; then
  4188. as_fn_error $? "format string for ssize_t not found" "$LINENO" 5
  4189. fi
  4190. cat >>confdefs.h <<_ACEOF
  4191. #define NE_FMT_SSIZE_T "$ne_cv_fmt_ssize_t"
  4192. _ACEOF
  4193. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
  4194. $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
  4195. if ${ac_cv_c_bigendian+:} false; then :
  4196. $as_echo_n "(cached) " >&6
  4197. else
  4198. ac_cv_c_bigendian=unknown
  4199. # See if we're dealing with a universal compiler.
  4200. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4201. /* end confdefs.h. */
  4202. #ifndef __APPLE_CC__
  4203. not a universal capable compiler
  4204. #endif
  4205. typedef int dummy;
  4206. _ACEOF
  4207. if ac_fn_c_try_compile "$LINENO"; then :
  4208. # Check for potential -arch flags. It is not universal unless
  4209. # there are at least two -arch flags with different values.
  4210. ac_arch=
  4211. ac_prev=
  4212. for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
  4213. if test -n "$ac_prev"; then
  4214. case $ac_word in
  4215. i?86 | x86_64 | ppc | ppc64)
  4216. if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
  4217. ac_arch=$ac_word
  4218. else
  4219. ac_cv_c_bigendian=universal
  4220. break
  4221. fi
  4222. ;;
  4223. esac
  4224. ac_prev=
  4225. elif test "x$ac_word" = "x-arch"; then
  4226. ac_prev=arch
  4227. fi
  4228. done
  4229. fi
  4230. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4231. if test $ac_cv_c_bigendian = unknown; then
  4232. # See if sys/param.h defines the BYTE_ORDER macro.
  4233. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4234. /* end confdefs.h. */
  4235. #include <sys/types.h>
  4236. #include <sys/param.h>
  4237. int
  4238. main ()
  4239. {
  4240. #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
  4241. && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
  4242. && LITTLE_ENDIAN)
  4243. bogus endian macros
  4244. #endif
  4245. ;
  4246. return 0;
  4247. }
  4248. _ACEOF
  4249. if ac_fn_c_try_compile "$LINENO"; then :
  4250. # It does; now see whether it defined to BIG_ENDIAN or not.
  4251. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4252. /* end confdefs.h. */
  4253. #include <sys/types.h>
  4254. #include <sys/param.h>
  4255. int
  4256. main ()
  4257. {
  4258. #if BYTE_ORDER != BIG_ENDIAN
  4259. not big endian
  4260. #endif
  4261. ;
  4262. return 0;
  4263. }
  4264. _ACEOF
  4265. if ac_fn_c_try_compile "$LINENO"; then :
  4266. ac_cv_c_bigendian=yes
  4267. else
  4268. ac_cv_c_bigendian=no
  4269. fi
  4270. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4271. fi
  4272. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4273. fi
  4274. if test $ac_cv_c_bigendian = unknown; then
  4275. # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
  4276. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4277. /* end confdefs.h. */
  4278. #include <limits.h>
  4279. int
  4280. main ()
  4281. {
  4282. #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
  4283. bogus endian macros
  4284. #endif
  4285. ;
  4286. return 0;
  4287. }
  4288. _ACEOF
  4289. if ac_fn_c_try_compile "$LINENO"; then :
  4290. # It does; now see whether it defined to _BIG_ENDIAN or not.
  4291. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4292. /* end confdefs.h. */
  4293. #include <limits.h>
  4294. int
  4295. main ()
  4296. {
  4297. #ifndef _BIG_ENDIAN
  4298. not big endian
  4299. #endif
  4300. ;
  4301. return 0;
  4302. }
  4303. _ACEOF
  4304. if ac_fn_c_try_compile "$LINENO"; then :
  4305. ac_cv_c_bigendian=yes
  4306. else
  4307. ac_cv_c_bigendian=no
  4308. fi
  4309. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4310. fi
  4311. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4312. fi
  4313. if test $ac_cv_c_bigendian = unknown; then
  4314. # Compile a test program.
  4315. if test "$cross_compiling" = yes; then :
  4316. # Try to guess by grepping values from an object file.
  4317. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4318. /* end confdefs.h. */
  4319. short int ascii_mm[] =
  4320. { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
  4321. short int ascii_ii[] =
  4322. { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
  4323. int use_ascii (int i) {
  4324. return ascii_mm[i] + ascii_ii[i];
  4325. }
  4326. short int ebcdic_ii[] =
  4327. { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
  4328. short int ebcdic_mm[] =
  4329. { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
  4330. int use_ebcdic (int i) {
  4331. return ebcdic_mm[i] + ebcdic_ii[i];
  4332. }
  4333. extern int foo;
  4334. int
  4335. main ()
  4336. {
  4337. return use_ascii (foo) == use_ebcdic (foo);
  4338. ;
  4339. return 0;
  4340. }
  4341. _ACEOF
  4342. if ac_fn_c_try_compile "$LINENO"; then :
  4343. if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
  4344. ac_cv_c_bigendian=yes
  4345. fi
  4346. if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
  4347. if test "$ac_cv_c_bigendian" = unknown; then
  4348. ac_cv_c_bigendian=no
  4349. else
  4350. # finding both strings is unlikely to happen, but who knows?
  4351. ac_cv_c_bigendian=unknown
  4352. fi
  4353. fi
  4354. fi
  4355. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4356. else
  4357. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4358. /* end confdefs.h. */
  4359. $ac_includes_default
  4360. int
  4361. main ()
  4362. {
  4363. /* Are we little or big endian? From Harbison&Steele. */
  4364. union
  4365. {
  4366. long int l;
  4367. char c[sizeof (long int)];
  4368. } u;
  4369. u.l = 1;
  4370. return u.c[sizeof (long int) - 1] == 1;
  4371. ;
  4372. return 0;
  4373. }
  4374. _ACEOF
  4375. if ac_fn_c_try_run "$LINENO"; then :
  4376. ac_cv_c_bigendian=no
  4377. else
  4378. ac_cv_c_bigendian=yes
  4379. fi
  4380. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  4381. conftest.$ac_objext conftest.beam conftest.$ac_ext
  4382. fi
  4383. fi
  4384. fi
  4385. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
  4386. $as_echo "$ac_cv_c_bigendian" >&6; }
  4387. case $ac_cv_c_bigendian in #(
  4388. yes)
  4389. $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
  4390. ;; #(
  4391. no)
  4392. ;; #(
  4393. universal)
  4394. $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
  4395. ;; #(
  4396. *)
  4397. as_fn_error $? "unknown endianness
  4398. presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
  4399. esac
  4400. ac_fn_c_check_decl "$LINENO" "strerror_r" "ac_cv_have_decl_strerror_r" "$ac_includes_default"
  4401. if test "x$ac_cv_have_decl_strerror_r" = xyes; then :
  4402. ac_have_decl=1
  4403. else
  4404. ac_have_decl=0
  4405. fi
  4406. cat >>confdefs.h <<_ACEOF
  4407. #define HAVE_DECL_STRERROR_R $ac_have_decl
  4408. _ACEOF
  4409. for ac_func in strerror_r
  4410. do :
  4411. ac_fn_c_check_func "$LINENO" "strerror_r" "ac_cv_func_strerror_r"
  4412. if test "x$ac_cv_func_strerror_r" = xyes; then :
  4413. cat >>confdefs.h <<_ACEOF
  4414. #define HAVE_STRERROR_R 1
  4415. _ACEOF
  4416. fi
  4417. done
  4418. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether strerror_r returns char *" >&5
  4419. $as_echo_n "checking whether strerror_r returns char *... " >&6; }
  4420. if ${ac_cv_func_strerror_r_char_p+:} false; then :
  4421. $as_echo_n "(cached) " >&6
  4422. else
  4423. ac_cv_func_strerror_r_char_p=no
  4424. if test $ac_cv_have_decl_strerror_r = yes; then
  4425. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4426. /* end confdefs.h. */
  4427. $ac_includes_default
  4428. int
  4429. main ()
  4430. {
  4431. char buf[100];
  4432. char x = *strerror_r (0, buf, sizeof buf);
  4433. char *p = strerror_r (0, buf, sizeof buf);
  4434. return !p || x;
  4435. ;
  4436. return 0;
  4437. }
  4438. _ACEOF
  4439. if ac_fn_c_try_compile "$LINENO"; then :
  4440. ac_cv_func_strerror_r_char_p=yes
  4441. fi
  4442. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4443. else
  4444. # strerror_r is not declared. Choose between
  4445. # systems that have relatively inaccessible declarations for the
  4446. # function. BeOS and DEC UNIX 4.0 fall in this category, but the
  4447. # former has a strerror_r that returns char*, while the latter
  4448. # has a strerror_r that returns `int'.
  4449. # This test should segfault on the DEC system.
  4450. if test "$cross_compiling" = yes; then :
  4451. :
  4452. else
  4453. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4454. /* end confdefs.h. */
  4455. $ac_includes_default
  4456. extern char *strerror_r ();
  4457. int
  4458. main ()
  4459. {
  4460. char buf[100];
  4461. char x = *strerror_r (0, buf, sizeof buf);
  4462. return ! isalpha (x);
  4463. ;
  4464. return 0;
  4465. }
  4466. _ACEOF
  4467. if ac_fn_c_try_run "$LINENO"; then :
  4468. ac_cv_func_strerror_r_char_p=yes
  4469. fi
  4470. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  4471. conftest.$ac_objext conftest.beam conftest.$ac_ext
  4472. fi
  4473. fi
  4474. fi
  4475. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_strerror_r_char_p" >&5
  4476. $as_echo "$ac_cv_func_strerror_r_char_p" >&6; }
  4477. if test $ac_cv_func_strerror_r_char_p = yes; then
  4478. $as_echo "#define STRERROR_R_CHAR_P 1" >>confdefs.h
  4479. fi
  4480. for ac_func in snprintf vsnprintf
  4481. do :
  4482. as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
  4483. ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
  4484. if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
  4485. cat >>confdefs.h <<_ACEOF
  4486. #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
  4487. _ACEOF
  4488. else
  4489. ne_save_LIBS=$LIBS
  4490. LIBS="$LIBS -lm" # Always need -lm
  4491. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for trio_vsnprintf in -ltrio" >&5
  4492. $as_echo_n "checking for trio_vsnprintf in -ltrio... " >&6; }
  4493. if ${ac_cv_lib_trio_trio_vsnprintf+:} false; then :
  4494. $as_echo_n "(cached) " >&6
  4495. else
  4496. ac_check_lib_save_LIBS=$LIBS
  4497. LIBS="-ltrio $LIBS"
  4498. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4499. /* end confdefs.h. */
  4500. /* Override any GCC internal prototype to avoid an error.
  4501. Use char because int might match the return type of a GCC
  4502. builtin and then its argument prototype would still apply. */
  4503. #ifdef __cplusplus
  4504. extern "C"
  4505. #endif
  4506. char trio_vsnprintf ();
  4507. int
  4508. main ()
  4509. {
  4510. return trio_vsnprintf ();
  4511. ;
  4512. return 0;
  4513. }
  4514. _ACEOF
  4515. if ac_fn_c_try_link "$LINENO"; then :
  4516. ac_cv_lib_trio_trio_vsnprintf=yes
  4517. else
  4518. ac_cv_lib_trio_trio_vsnprintf=no
  4519. fi
  4520. rm -f core conftest.err conftest.$ac_objext \
  4521. conftest$ac_exeext conftest.$ac_ext
  4522. LIBS=$ac_check_lib_save_LIBS
  4523. fi
  4524. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_trio_trio_vsnprintf" >&5
  4525. $as_echo "$ac_cv_lib_trio_trio_vsnprintf" >&6; }
  4526. if test "x$ac_cv_lib_trio_trio_vsnprintf" = xyes; then :
  4527. for ac_header in trio.h
  4528. do :
  4529. ac_fn_c_check_header_mongrel "$LINENO" "trio.h" "ac_cv_header_trio_h" "$ac_includes_default"
  4530. if test "x$ac_cv_header_trio_h" = xyes; then :
  4531. cat >>confdefs.h <<_ACEOF
  4532. #define HAVE_TRIO_H 1
  4533. _ACEOF
  4534. else
  4535. as_fn_error $? "trio installation problem? libtrio found but not trio.h" "$LINENO" 5
  4536. fi
  4537. done
  4538. { $as_echo "$as_me:${as_lineno-$LINENO}: using trio printf replacement library" >&5
  4539. $as_echo "$as_me: using trio printf replacement library" >&6;}
  4540. NEON_LIBS="$NEON_LIBS -ltrio -lm"
  4541. $as_echo "#define HAVE_TRIO 1" >>confdefs.h
  4542. else
  4543. { $as_echo "$as_me:${as_lineno-$LINENO}: no vsnprintf/snprintf detected in C library" >&5
  4544. $as_echo "$as_me: no vsnprintf/snprintf detected in C library" >&6;}
  4545. as_fn_error $? "Install the trio library from http://daniel.haxx.se/projects/trio/" "$LINENO" 5
  4546. fi
  4547. LIBS=$ne_save_LIBS
  4548. break
  4549. fi
  4550. done
  4551. for ac_header in sys/time.h limits.h sys/select.h arpa/inet.h libintl.h \
  4552. signal.h sys/socket.h netinet/in.h netinet/tcp.h netdb.h sys/poll.h \
  4553. sys/limits.h fcntl.h iconv.h
  4554. do :
  4555. as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
  4556. ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
  4557. /* netinet/tcp.h requires netinet/in.h on some platforms. */
  4558. #ifdef HAVE_NETINET_IN_H
  4559. #include <netinet/in.h>
  4560. #endif
  4561. "
  4562. if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
  4563. cat >>confdefs.h <<_ACEOF
  4564. #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
  4565. _ACEOF
  4566. fi
  4567. done
  4568. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for timezone global" >&5
  4569. $as_echo_n "checking for timezone global... " >&6; }
  4570. if ${ne_cv_cc_timezone+:} false; then :
  4571. $as_echo_n "(cached) " >&6
  4572. else
  4573. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4574. /* end confdefs.h. */
  4575. #include <sys/types.h>
  4576. #include <time.h>
  4577. int
  4578. main ()
  4579. {
  4580. time_t t = 0 - timezone; timezone = 1;
  4581. ;
  4582. return 0;
  4583. }
  4584. _ACEOF
  4585. if ac_fn_c_try_link "$LINENO"; then :
  4586. ne_cv_cc_timezone=yes
  4587. else
  4588. ne_cv_cc_timezone=no
  4589. fi
  4590. rm -f core conftest.err conftest.$ac_objext \
  4591. conftest$ac_exeext conftest.$ac_ext
  4592. fi
  4593. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ne_cv_cc_timezone" >&5
  4594. $as_echo "$ne_cv_cc_timezone" >&6; }
  4595. if test "$ne_cv_cc_timezone" = "yes"; then
  4596. $as_echo "#define HAVE_TIMEZONE 1" >>confdefs.h
  4597. fi
  4598. if test -z "$ac_cv_sizeof_off_t"; then
  4599. NE_FLAG_LFS=no
  4600. ne_LFS_message="LFS support omitted: off_t size unknown!"
  4601. { $as_echo "$as_me:${as_lineno-$LINENO}: LFS support omitted: off_t size unknown!" >&5
  4602. $as_echo "$as_me: LFS support omitted: off_t size unknown!" >&6;}
  4603. elif test $ac_cv_sizeof_off_t != 4; then
  4604. NE_FLAG_LFS=no
  4605. ne_LFS_message="LFS support unnecessary, off_t is not 32-bit"
  4606. { $as_echo "$as_me:${as_lineno-$LINENO}: LFS support unnecessary, off_t is not 32-bit" >&5
  4607. $as_echo "$as_me: LFS support unnecessary, off_t is not 32-bit" >&6;}
  4608. for ac_func in strtoll strtoq
  4609. do :
  4610. as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
  4611. ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
  4612. if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
  4613. cat >>confdefs.h <<_ACEOF
  4614. #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
  4615. _ACEOF
  4616. break
  4617. fi
  4618. done
  4619. elif test -z "$ac_cv_sizeof_long_long"; then
  4620. NE_FLAG_LFS=no
  4621. ne_LFS_message="LFS support omitted: long long size unknown"
  4622. { $as_echo "$as_me:${as_lineno-$LINENO}: LFS support omitted: long long size unknown" >&5
  4623. $as_echo "$as_me: LFS support omitted: long long size unknown" >&6;}
  4624. elif test $ac_cv_sizeof_long_long != 8; then
  4625. NE_FLAG_LFS=no
  4626. ne_LFS_message="LFS support omitted: long long not 64-bit"
  4627. { $as_echo "$as_me:${as_lineno-$LINENO}: LFS support omitted: long long not 64-bit" >&5
  4628. $as_echo "$as_me: LFS support omitted: long long not 64-bit" >&6;}
  4629. else
  4630. ne_save_CPPFLAGS=$CPPFLAGS
  4631. CPPFLAGS="$CPPFLAGS -D_LARGEFILE64_SOURCE"
  4632. ac_fn_c_check_type "$LINENO" "off64_t" "ac_cv_type_off64_t" "$ac_includes_default"
  4633. if test "x$ac_cv_type_off64_t" = xyes; then :
  4634. # The cast to long int works around a bug in the HP C Compiler
  4635. # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
  4636. # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
  4637. # This bug is HP SR number 8606223364.
  4638. { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of off64_t" >&5
  4639. $as_echo_n "checking size of off64_t... " >&6; }
  4640. if ${ac_cv_sizeof_off64_t+:} false; then :
  4641. $as_echo_n "(cached) " >&6
  4642. else
  4643. if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (off64_t))" "ac_cv_sizeof_off64_t" "$ac_includes_default
  4644. "; then :
  4645. else
  4646. if test "$ac_cv_type_off64_t" = yes; then
  4647. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  4648. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  4649. as_fn_error 77 "cannot compute sizeof (off64_t)
  4650. See \`config.log' for more details" "$LINENO" 5; }
  4651. else
  4652. ac_cv_sizeof_off64_t=0
  4653. fi
  4654. fi
  4655. fi
  4656. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_off64_t" >&5
  4657. $as_echo "$ac_cv_sizeof_off64_t" >&6; }
  4658. cat >>confdefs.h <<_ACEOF
  4659. #define SIZEOF_OFF64_T $ac_cv_sizeof_off64_t
  4660. _ACEOF
  4661. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print off64_t" >&5
  4662. $as_echo_n "checking how to print off64_t... " >&6; }
  4663. if ${ne_cv_fmt_off64_t+:} false; then :
  4664. $as_echo_n "(cached) " >&6
  4665. else
  4666. ne_cv_fmt_off64_t=none
  4667. if test $ne_fmt_trycompile = yes; then
  4668. oflags="$CPPFLAGS"
  4669. # Consider format string mismatches as errors
  4670. CPPFLAGS="$CPPFLAGS -Wformat -Werror"
  4671. for str in d ld lld; do
  4672. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4673. /* end confdefs.h. */
  4674. #include <sys/types.h>
  4675. #include <stdio.h>
  4676. int
  4677. main ()
  4678. {
  4679. off64_t i = 1; printf("%$str", i);
  4680. ;
  4681. return 0;
  4682. }
  4683. _ACEOF
  4684. if ac_fn_c_try_compile "$LINENO"; then :
  4685. ne_cv_fmt_off64_t=$str; break
  4686. fi
  4687. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4688. done
  4689. CPPFLAGS=$oflags
  4690. else
  4691. # Best guess. Don't have to be too precise since we probably won't
  4692. # get a warning message anyway.
  4693. case $ac_cv_sizeof_off64_t in
  4694. $ac_cv_sizeof_int) ne_cv_fmt_off64_t="d" ;;
  4695. $ac_cv_sizeof_long) ne_cv_fmt_off64_t="ld" ;;
  4696. $ac_cv_sizeof_long_long) ne_cv_fmt_off64_t="lld" ;;
  4697. esac
  4698. fi
  4699. fi
  4700. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ne_cv_fmt_off64_t" >&5
  4701. $as_echo "$ne_cv_fmt_off64_t" >&6; }
  4702. if test "x$ne_cv_fmt_off64_t" = "xnone"; then
  4703. as_fn_error $? "format string for off64_t not found" "$LINENO" 5
  4704. fi
  4705. cat >>confdefs.h <<_ACEOF
  4706. #define NE_FMT_OFF64_T "$ne_cv_fmt_off64_t"
  4707. _ACEOF
  4708. ne_lfsok=no
  4709. for ac_func in strtoll strtoq
  4710. do :
  4711. as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
  4712. ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
  4713. if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
  4714. cat >>confdefs.h <<_ACEOF
  4715. #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
  4716. _ACEOF
  4717. ne_lfsok=yes; break
  4718. fi
  4719. done
  4720. for ac_func in lseek64 fstat64
  4721. do :
  4722. as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
  4723. ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
  4724. if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
  4725. cat >>confdefs.h <<_ACEOF
  4726. #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
  4727. _ACEOF
  4728. else
  4729. ne_lfsok=no; break
  4730. fi
  4731. done
  4732. if test x$ne_lfsok = xyes; then
  4733. NE_FLAG_LFS=yes
  4734. $as_echo "#define NE_HAVE_LFS 1" >>confdefs.h
  4735. ne_LFS_message="LFS (large file) support enabled"
  4736. { $as_echo "$as_me:${as_lineno-$LINENO}: LFS (large file) support enabled" >&5
  4737. $as_echo "$as_me: LFS (large file) support enabled" >&6;}
  4738. NEON_CFLAGS="$NEON_CFLAGS -D_LARGEFILE64_SOURCE -DNE_LFS"
  4739. ne_save_CPPFLAGS="$CPPFLAGS -DNE_LFS"
  4740. else
  4741. NE_FLAG_LFS=no
  4742. ne_LFS_message="LFS support omitted: 64-bit support functions not found"
  4743. { $as_echo "$as_me:${as_lineno-$LINENO}: LFS support omitted: 64-bit support functions not found" >&5
  4744. $as_echo "$as_me: LFS support omitted: 64-bit support functions not found" >&6;}
  4745. fi
  4746. else
  4747. NE_FLAG_LFS=no
  4748. ne_LFS_message="LFS support omitted: off64_t type not found"
  4749. { $as_echo "$as_me:${as_lineno-$LINENO}: LFS support omitted: off64_t type not found" >&5
  4750. $as_echo "$as_me: LFS support omitted: off64_t type not found" >&6;}
  4751. fi
  4752. CPPFLAGS=$ne_save_CPPFLAGS
  4753. fi
  4754. if test "$NE_FLAG_LFS" = "yes"; then
  4755. cat >>confdefs.h <<_ACEOF
  4756. #define NE_FMT_NE_OFF_T NE_FMT_OFF64_T
  4757. _ACEOF
  4758. if test "x${NE_LIBTOOL_RELEASE}y" = "xy"; then
  4759. NE_LIBTOOL_RELEASE="LFS"
  4760. else
  4761. NE_LIBTOOL_RELEASE="${NE_LIBTOOL_RELEASE}-LFS"
  4762. fi
  4763. else
  4764. cat >>confdefs.h <<_ACEOF
  4765. #define NE_FMT_NE_OFF_T NE_FMT_OFF_T
  4766. _ACEOF
  4767. fi
  4768. ac_fn_c_check_func "$LINENO" "strcasecmp" "ac_cv_func_strcasecmp"
  4769. if test "x$ac_cv_func_strcasecmp" = xyes; then :
  4770. $as_echo "#define HAVE_STRCASECMP 1" >>confdefs.h
  4771. else
  4772. case " $LIBOBJS " in
  4773. *" strcasecmp.$ac_objext "* ) ;;
  4774. *) LIBOBJS="$LIBOBJS strcasecmp.$ac_objext"
  4775. ;;
  4776. esac
  4777. fi
  4778. for ac_func in signal setvbuf setsockopt stpcpy poll fcntl getsockopt
  4779. do :
  4780. as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
  4781. ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
  4782. if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
  4783. cat >>confdefs.h <<_ACEOF
  4784. #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
  4785. _ACEOF
  4786. fi
  4787. done
  4788. if test "x${ac_cv_func_poll}${ac_cv_header_sys_poll_h}y" = "xyesyesy"; then
  4789. $as_echo "#define NE_USE_POLL 1" >>confdefs.h
  4790. fi
  4791. if test "$ac_cv_func_stpcpy" = "yes"; then
  4792. ac_fn_c_check_decl "$LINENO" "stpcpy" "ac_cv_have_decl_stpcpy" "$ac_includes_default"
  4793. if test "x$ac_cv_have_decl_stpcpy" = xyes; then :
  4794. ac_have_decl=1
  4795. else
  4796. ac_have_decl=0
  4797. fi
  4798. cat >>confdefs.h <<_ACEOF
  4799. #define HAVE_DECL_STPCPY $ac_have_decl
  4800. _ACEOF
  4801. fi
  4802. # Modern AIXes with the "Linux-like" libc have an undeclared stpcpy
  4803. # Unixware 7 can only link gethostbyname with -lnsl -lsocket
  4804. # Pick up -lsocket first, then the gethostbyname check will work.
  4805. # Haiku requires -lnetwork for socket functions.
  4806. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing socket" >&5
  4807. $as_echo_n "checking for library containing socket... " >&6; }
  4808. if ${ne_cv_libsfor_socket+:} false; then :
  4809. $as_echo_n "(cached) " >&6
  4810. else
  4811. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4812. /* end confdefs.h. */
  4813. int
  4814. main ()
  4815. {
  4816. socket();
  4817. ;
  4818. return 0;
  4819. }
  4820. _ACEOF
  4821. if ac_fn_c_try_link "$LINENO"; then :
  4822. ne_cv_libsfor_socket="none needed"
  4823. else
  4824. ne_sl_save_LIBS=$LIBS
  4825. ne_cv_libsfor_socket="not found"
  4826. for lib in socket inet ws2_32 network; do
  4827. # The w32api libraries link using the stdcall calling convention.
  4828. case ${lib}-${ne_cv_os_uname} in
  4829. ws2_32-MINGW*) ne__code="__stdcall socket();" ;;
  4830. *) ne__code="socket();" ;;
  4831. esac
  4832. LIBS="$ne_sl_save_LIBS -l$lib $NEON_LIBS"
  4833. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4834. /* end confdefs.h. */
  4835. int
  4836. main ()
  4837. {
  4838. $ne__code
  4839. ;
  4840. return 0;
  4841. }
  4842. _ACEOF
  4843. if ac_fn_c_try_link "$LINENO"; then :
  4844. ne_cv_libsfor_socket="-l$lib"; break
  4845. fi
  4846. rm -f core conftest.err conftest.$ac_objext \
  4847. conftest$ac_exeext conftest.$ac_ext
  4848. done
  4849. LIBS=$ne_sl_save_LIBS
  4850. fi
  4851. rm -f core conftest.err conftest.$ac_objext \
  4852. conftest$ac_exeext conftest.$ac_ext
  4853. fi
  4854. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ne_cv_libsfor_socket" >&5
  4855. $as_echo "$ne_cv_libsfor_socket" >&6; }
  4856. if test "$ne_cv_libsfor_socket" = "not found"; then
  4857. as_fn_error $? "could not find library containing socket" "$LINENO" 5
  4858. elif test "$ne_cv_libsfor_socket" = "none needed"; then
  4859. :
  4860. else
  4861. NEON_LIBS="$ne_cv_libsfor_socket $NEON_LIBS"
  4862. fi
  4863. # Enable getaddrinfo support if it, gai_strerror and inet_ntop are
  4864. # all available.
  4865. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing getaddrinfo" >&5
  4866. $as_echo_n "checking for library containing getaddrinfo... " >&6; }
  4867. if ${ne_cv_libsfor_getaddrinfo+:} false; then :
  4868. $as_echo_n "(cached) " >&6
  4869. else
  4870. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4871. /* end confdefs.h. */
  4872. int
  4873. main ()
  4874. {
  4875. getaddrinfo();
  4876. ;
  4877. return 0;
  4878. }
  4879. _ACEOF
  4880. if ac_fn_c_try_link "$LINENO"; then :
  4881. ne_cv_libsfor_getaddrinfo="none needed"
  4882. else
  4883. ne_sl_save_LIBS=$LIBS
  4884. ne_cv_libsfor_getaddrinfo="not found"
  4885. for lib in nsl; do
  4886. # The w32api libraries link using the stdcall calling convention.
  4887. case ${lib}-${ne_cv_os_uname} in
  4888. ws2_32-MINGW*) ne__code="__stdcall getaddrinfo();" ;;
  4889. *) ne__code="getaddrinfo();" ;;
  4890. esac
  4891. LIBS="$ne_sl_save_LIBS -l$lib $NEON_LIBS"
  4892. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4893. /* end confdefs.h. */
  4894. int
  4895. main ()
  4896. {
  4897. $ne__code
  4898. ;
  4899. return 0;
  4900. }
  4901. _ACEOF
  4902. if ac_fn_c_try_link "$LINENO"; then :
  4903. ne_cv_libsfor_getaddrinfo="-l$lib"; break
  4904. fi
  4905. rm -f core conftest.err conftest.$ac_objext \
  4906. conftest$ac_exeext conftest.$ac_ext
  4907. done
  4908. LIBS=$ne_sl_save_LIBS
  4909. fi
  4910. rm -f core conftest.err conftest.$ac_objext \
  4911. conftest$ac_exeext conftest.$ac_ext
  4912. fi
  4913. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ne_cv_libsfor_getaddrinfo" >&5
  4914. $as_echo "$ne_cv_libsfor_getaddrinfo" >&6; }
  4915. if test "$ne_cv_libsfor_getaddrinfo" = "not found"; then
  4916. ne_enable_gai=no
  4917. elif test "$ne_cv_libsfor_getaddrinfo" = "none needed"; then
  4918. # HP-UX boxes commonly get into a state where getaddrinfo is present
  4919. # but borked: http://marc.theaimsgroup.com/?l=apr-dev&m=107730955207120&w=2
  4920. case x`uname -sr 2>/dev/null`y in
  4921. xHP-UX*11.[01]*y)
  4922. { $as_echo "$as_me:${as_lineno-$LINENO}: getaddrinfo support disabled on HP-UX 11.0x/11.1x" >&5
  4923. $as_echo "$as_me: getaddrinfo support disabled on HP-UX 11.0x/11.1x" >&6;} ;;
  4924. *)
  4925. ne_enable_gai=yes
  4926. ne_cf_save_LIBS=$LIBS
  4927. LIBS="$LIBS $NEON_LIBS"
  4928. for ac_func in gai_strerror getnameinfo inet_ntop inet_pton
  4929. do :
  4930. as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
  4931. ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
  4932. if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
  4933. cat >>confdefs.h <<_ACEOF
  4934. #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
  4935. _ACEOF
  4936. else
  4937. ne_enable_gai=no; break
  4938. fi
  4939. done
  4940. LIBS=$ne_cf_save_LIBS ;;
  4941. esac
  4942. else
  4943. NEON_LIBS="$ne_cv_libsfor_getaddrinfo $NEON_LIBS"
  4944. # HP-UX boxes commonly get into a state where getaddrinfo is present
  4945. # but borked: http://marc.theaimsgroup.com/?l=apr-dev&m=107730955207120&w=2
  4946. case x`uname -sr 2>/dev/null`y in
  4947. xHP-UX*11.[01]*y)
  4948. { $as_echo "$as_me:${as_lineno-$LINENO}: getaddrinfo support disabled on HP-UX 11.0x/11.1x" >&5
  4949. $as_echo "$as_me: getaddrinfo support disabled on HP-UX 11.0x/11.1x" >&6;} ;;
  4950. *)
  4951. ne_enable_gai=yes
  4952. ne_cf_save_LIBS=$LIBS
  4953. LIBS="$LIBS $NEON_LIBS"
  4954. for ac_func in gai_strerror getnameinfo inet_ntop inet_pton
  4955. do :
  4956. as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
  4957. ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
  4958. if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
  4959. cat >>confdefs.h <<_ACEOF
  4960. #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
  4961. _ACEOF
  4962. else
  4963. ne_enable_gai=no; break
  4964. fi
  4965. done
  4966. LIBS=$ne_cf_save_LIBS ;;
  4967. esac
  4968. fi
  4969. if test $ne_enable_gai = yes; then
  4970. NE_FLAG_IPV6=yes
  4971. $as_echo "#define NE_HAVE_IPV6 1" >>confdefs.h
  4972. ne_IPV6_message="IPv6 support is enabled"
  4973. { $as_echo "$as_me:${as_lineno-$LINENO}: IPv6 support is enabled" >&5
  4974. $as_echo "$as_me: IPv6 support is enabled" >&6;}
  4975. $as_echo "#define USE_GETADDRINFO 1" >>confdefs.h
  4976. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working AI_ADDRCONFIG" >&5
  4977. $as_echo_n "checking for working AI_ADDRCONFIG... " >&6; }
  4978. if ${ne_cv_gai_addrconfig+:} false; then :
  4979. $as_echo_n "(cached) " >&6
  4980. else
  4981. if test "$cross_compiling" = yes; then :
  4982. ne_cv_gai_addrconfig=no
  4983. else
  4984. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4985. /* end confdefs.h. */
  4986. #include <netdb.h>
  4987. #include <stdlib.h>
  4988. int
  4989. main ()
  4990. {
  4991. struct addrinfo hints = {0}, *result;
  4992. hints.ai_flags = AI_ADDRCONFIG;
  4993. if (getaddrinfo("localhost", NULL, &hints, &result) != 0) return 1;
  4994. ;
  4995. return 0;
  4996. }
  4997. _ACEOF
  4998. if ac_fn_c_try_run "$LINENO"; then :
  4999. ne_cv_gai_addrconfig=yes
  5000. else
  5001. ne_cv_gai_addrconfig=no
  5002. fi
  5003. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  5004. conftest.$ac_objext conftest.beam conftest.$ac_ext
  5005. fi
  5006. fi
  5007. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ne_cv_gai_addrconfig" >&5
  5008. $as_echo "$ne_cv_gai_addrconfig" >&6; }
  5009. if test $ne_cv_gai_addrconfig = yes; then
  5010. $as_echo "#define USE_GAI_ADDRCONFIG 1" >>confdefs.h
  5011. fi
  5012. else
  5013. # Checks for non-getaddrinfo() based resolver interfaces.
  5014. # QNX has gethostbyname in -lsocket. BeOS only has it in -lbind.
  5015. # CygWin/Winsock2 has it in -lws2_32, allegedly.
  5016. # Haiku requires -lnetwork for socket functions.
  5017. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing gethostbyname" >&5
  5018. $as_echo_n "checking for library containing gethostbyname... " >&6; }
  5019. if ${ne_cv_libsfor_gethostbyname+:} false; then :
  5020. $as_echo_n "(cached) " >&6
  5021. else
  5022. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5023. /* end confdefs.h. */
  5024. int
  5025. main ()
  5026. {
  5027. gethostbyname();
  5028. ;
  5029. return 0;
  5030. }
  5031. _ACEOF
  5032. if ac_fn_c_try_link "$LINENO"; then :
  5033. ne_cv_libsfor_gethostbyname="none needed"
  5034. else
  5035. ne_sl_save_LIBS=$LIBS
  5036. ne_cv_libsfor_gethostbyname="not found"
  5037. for lib in socket nsl bind ws2_32 network; do
  5038. # The w32api libraries link using the stdcall calling convention.
  5039. case ${lib}-${ne_cv_os_uname} in
  5040. ws2_32-MINGW*) ne__code="__stdcall gethostbyname();" ;;
  5041. *) ne__code="gethostbyname();" ;;
  5042. esac
  5043. LIBS="$ne_sl_save_LIBS -l$lib $NEON_LIBS"
  5044. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5045. /* end confdefs.h. */
  5046. int
  5047. main ()
  5048. {
  5049. $ne__code
  5050. ;
  5051. return 0;
  5052. }
  5053. _ACEOF
  5054. if ac_fn_c_try_link "$LINENO"; then :
  5055. ne_cv_libsfor_gethostbyname="-l$lib"; break
  5056. fi
  5057. rm -f core conftest.err conftest.$ac_objext \
  5058. conftest$ac_exeext conftest.$ac_ext
  5059. done
  5060. LIBS=$ne_sl_save_LIBS
  5061. fi
  5062. rm -f core conftest.err conftest.$ac_objext \
  5063. conftest$ac_exeext conftest.$ac_ext
  5064. fi
  5065. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ne_cv_libsfor_gethostbyname" >&5
  5066. $as_echo "$ne_cv_libsfor_gethostbyname" >&6; }
  5067. if test "$ne_cv_libsfor_gethostbyname" = "not found"; then
  5068. as_fn_error $? "could not find library containing gethostbyname" "$LINENO" 5
  5069. elif test "$ne_cv_libsfor_gethostbyname" = "none needed"; then
  5070. :
  5071. else
  5072. NEON_LIBS="$ne_cv_libsfor_gethostbyname $NEON_LIBS"
  5073. fi
  5074. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing hstrerror" >&5
  5075. $as_echo_n "checking for library containing hstrerror... " >&6; }
  5076. if ${ne_cv_libsfor_hstrerror+:} false; then :
  5077. $as_echo_n "(cached) " >&6
  5078. else
  5079. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5080. /* end confdefs.h. */
  5081. int
  5082. main ()
  5083. {
  5084. hstrerror();
  5085. ;
  5086. return 0;
  5087. }
  5088. _ACEOF
  5089. if ac_fn_c_try_link "$LINENO"; then :
  5090. ne_cv_libsfor_hstrerror="none needed"
  5091. else
  5092. ne_sl_save_LIBS=$LIBS
  5093. ne_cv_libsfor_hstrerror="not found"
  5094. for lib in resolv; do
  5095. # The w32api libraries link using the stdcall calling convention.
  5096. case ${lib}-${ne_cv_os_uname} in
  5097. ws2_32-MINGW*) ne__code="__stdcall hstrerror();" ;;
  5098. *) ne__code="hstrerror();" ;;
  5099. esac
  5100. LIBS="$ne_sl_save_LIBS -l$lib $NEON_LIBS"
  5101. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5102. /* end confdefs.h. */
  5103. int
  5104. main ()
  5105. {
  5106. $ne__code
  5107. ;
  5108. return 0;
  5109. }
  5110. _ACEOF
  5111. if ac_fn_c_try_link "$LINENO"; then :
  5112. ne_cv_libsfor_hstrerror="-l$lib"; break
  5113. fi
  5114. rm -f core conftest.err conftest.$ac_objext \
  5115. conftest$ac_exeext conftest.$ac_ext
  5116. done
  5117. LIBS=$ne_sl_save_LIBS
  5118. fi
  5119. rm -f core conftest.err conftest.$ac_objext \
  5120. conftest$ac_exeext conftest.$ac_ext
  5121. fi
  5122. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ne_cv_libsfor_hstrerror" >&5
  5123. $as_echo "$ne_cv_libsfor_hstrerror" >&6; }
  5124. if test "$ne_cv_libsfor_hstrerror" = "not found"; then
  5125. :
  5126. elif test "$ne_cv_libsfor_hstrerror" = "none needed"; then
  5127. :
  5128. else
  5129. NEON_LIBS="$ne_cv_libsfor_hstrerror $NEON_LIBS"
  5130. fi
  5131. ne_cf_save_LIBS=$LIBS
  5132. LIBS="$LIBS $NEON_LIBS"
  5133. for ac_func in hstrerror
  5134. do :
  5135. ac_fn_c_check_func "$LINENO" "hstrerror" "ac_cv_func_hstrerror"
  5136. if test "x$ac_cv_func_hstrerror" = xyes; then :
  5137. cat >>confdefs.h <<_ACEOF
  5138. #define HAVE_HSTRERROR 1
  5139. _ACEOF
  5140. fi
  5141. done
  5142. LIBS=$ne_cf_save_LIBS
  5143. # Older Unixes don't declare h_errno.
  5144. ac_fn_c_check_decl "$LINENO" "h_errno" "ac_cv_have_decl_h_errno" "#include <netdb.h>
  5145. "
  5146. if test "x$ac_cv_have_decl_h_errno" = xyes; then :
  5147. ac_have_decl=1
  5148. else
  5149. ac_have_decl=0
  5150. fi
  5151. cat >>confdefs.h <<_ACEOF
  5152. #define HAVE_DECL_H_ERRNO $ac_have_decl
  5153. _ACEOF
  5154. ac_fn_c_check_type "$LINENO" "in_addr_t" "ac_cv_type_in_addr_t" "
  5155. #ifdef HAVE_SYS_TYPES_H
  5156. # include <sys/types.h>
  5157. #endif
  5158. #ifdef HAVE_NETINET_IN_H
  5159. # include <netinet/in.h>
  5160. #endif
  5161. "
  5162. if test "x$ac_cv_type_in_addr_t" = xyes; then :
  5163. else
  5164. $as_echo "#define in_addr_t unsigned int" >>confdefs.h
  5165. fi
  5166. fi
  5167. ac_fn_c_check_type "$LINENO" "socklen_t" "ac_cv_type_socklen_t" "
  5168. #ifdef HAVE_SYS_TYPES_H
  5169. # include <sys/types.h>
  5170. #endif
  5171. #ifdef HAVE_SYS_SOCKET_H
  5172. # include <sys/socket.h>
  5173. #endif
  5174. "
  5175. if test "x$ac_cv_type_socklen_t" = xyes; then :
  5176. cat >>confdefs.h <<_ACEOF
  5177. #define HAVE_SOCKLEN_T 1
  5178. _ACEOF
  5179. else
  5180. # Linux accept(2) says this should be size_t for SunOS 5... gah.
  5181. $as_echo "#define socklen_t int" >>confdefs.h
  5182. fi
  5183. ac_fn_c_check_member "$LINENO" "struct tm" "tm_gmtoff" "ac_cv_member_struct_tm_tm_gmtoff" "#include <time.h>
  5184. "
  5185. if test "x$ac_cv_member_struct_tm_tm_gmtoff" = xyes; then :
  5186. cat >>confdefs.h <<_ACEOF
  5187. #define HAVE_STRUCT_TM_TM_GMTOFF 1
  5188. _ACEOF
  5189. fi
  5190. ac_fn_c_check_member "$LINENO" "struct tm" "__tm_gmtoff" "ac_cv_member_struct_tm___tm_gmtoff" "#include <time.h>
  5191. "
  5192. if test "x$ac_cv_member_struct_tm___tm_gmtoff" = xyes; then :
  5193. cat >>confdefs.h <<_ACEOF
  5194. #define HAVE_STRUCT_TM___TM_GMTOFF 1
  5195. _ACEOF
  5196. fi
  5197. if test ${ac_cv_member_struct_tm_tm_gmtoff}${ac_cv_member_struct_tm___tm_gmtoff}${ne_cv_cc_timezone} = nonono; then
  5198. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: no timezone handling in date parsing on this platform" >&5
  5199. $as_echo "$as_me: WARNING: no timezone handling in date parsing on this platform" >&2;}
  5200. fi
  5201. # Check whether --with-zlib was given.
  5202. if test "${with_zlib+set}" = set; then :
  5203. withval=$with_zlib; ne_use_zlib=$withval
  5204. else
  5205. ne_use_zlib=yes
  5206. fi
  5207. if test "$ne_use_zlib" = "yes"; then
  5208. ac_fn_c_check_header_mongrel "$LINENO" "zlib.h" "ac_cv_header_zlib_h" "$ac_includes_default"
  5209. if test "x$ac_cv_header_zlib_h" = xyes; then :
  5210. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inflate in -lz" >&5
  5211. $as_echo_n "checking for inflate in -lz... " >&6; }
  5212. if ${ac_cv_lib_z_inflate+:} false; then :
  5213. $as_echo_n "(cached) " >&6
  5214. else
  5215. ac_check_lib_save_LIBS=$LIBS
  5216. LIBS="-lz $LIBS"
  5217. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5218. /* end confdefs.h. */
  5219. /* Override any GCC internal prototype to avoid an error.
  5220. Use char because int might match the return type of a GCC
  5221. builtin and then its argument prototype would still apply. */
  5222. #ifdef __cplusplus
  5223. extern "C"
  5224. #endif
  5225. char inflate ();
  5226. int
  5227. main ()
  5228. {
  5229. return inflate ();
  5230. ;
  5231. return 0;
  5232. }
  5233. _ACEOF
  5234. if ac_fn_c_try_link "$LINENO"; then :
  5235. ac_cv_lib_z_inflate=yes
  5236. else
  5237. ac_cv_lib_z_inflate=no
  5238. fi
  5239. rm -f core conftest.err conftest.$ac_objext \
  5240. conftest$ac_exeext conftest.$ac_ext
  5241. LIBS=$ac_check_lib_save_LIBS
  5242. fi
  5243. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_inflate" >&5
  5244. $as_echo "$ac_cv_lib_z_inflate" >&6; }
  5245. if test "x$ac_cv_lib_z_inflate" = xyes; then :
  5246. NEON_LIBS="$NEON_LIBS -lz"
  5247. NE_FLAG_ZLIB=yes
  5248. $as_echo "#define NE_HAVE_ZLIB 1" >>confdefs.h
  5249. ne_ZLIB_message="zlib support enabled, using -lz"
  5250. { $as_echo "$as_me:${as_lineno-$LINENO}: zlib support enabled, using -lz" >&5
  5251. $as_echo "$as_me: zlib support enabled, using -lz" >&6;}
  5252. else
  5253. NE_FLAG_ZLIB=no
  5254. ne_ZLIB_message="zlib library not found"
  5255. { $as_echo "$as_me:${as_lineno-$LINENO}: zlib library not found" >&5
  5256. $as_echo "$as_me: zlib library not found" >&6;}
  5257. fi
  5258. else
  5259. NE_FLAG_ZLIB=no
  5260. ne_ZLIB_message="zlib header not found"
  5261. { $as_echo "$as_me:${as_lineno-$LINENO}: zlib header not found" >&5
  5262. $as_echo "$as_me: zlib header not found" >&6;}
  5263. fi
  5264. else
  5265. NE_FLAG_ZLIB=no
  5266. ne_ZLIB_message="zlib not enabled"
  5267. { $as_echo "$as_me:${as_lineno-$LINENO}: zlib not enabled" >&5
  5268. $as_echo "$as_me: zlib not enabled" >&6;}
  5269. fi
  5270. # Conditionally enable ACL support
  5271. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable ACL support in neon" >&5
  5272. $as_echo_n "checking whether to enable ACL support in neon... " >&6; }
  5273. if test "x$neon_no_acl" = "xyes"; then
  5274. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5275. $as_echo "no" >&6; }
  5276. else
  5277. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  5278. $as_echo "yes" >&6; }
  5279. NEON_EXTRAOBJS="$NEON_EXTRAOBJS ne_oldacl ne_acl3744"
  5280. fi
  5281. # Check whether --with-ssl was given.
  5282. if test "${with_ssl+set}" = set; then :
  5283. withval=$with_ssl;
  5284. fi
  5285. # Check whether --with-egd was given.
  5286. if test "${with_egd+set}" = set; then :
  5287. withval=$with_egd;
  5288. fi
  5289. # Check whether --with-pakchois was given.
  5290. if test "${with_pakchois+set}" = set; then :
  5291. withval=$with_pakchois;
  5292. fi
  5293. case $with_ssl in
  5294. /*)
  5295. { $as_echo "$as_me:${as_lineno-$LINENO}: to use SSL libraries in non-standard locations, try --with-ssl --with-libs=$with_ssl" >&5
  5296. $as_echo "$as_me: to use SSL libraries in non-standard locations, try --with-ssl --with-libs=$with_ssl" >&6;}
  5297. as_fn_error $? "--with-ssl does not take a path argument" "$LINENO" 5
  5298. ;;
  5299. yes|openssl)
  5300. # Extract the first word of "pkg-config", so it can be a program name with args.
  5301. set dummy pkg-config; ac_word=$2
  5302. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5303. $as_echo_n "checking for $ac_word... " >&6; }
  5304. if ${ac_cv_path_PKG_CONFIG+:} false; then :
  5305. $as_echo_n "(cached) " >&6
  5306. else
  5307. case $PKG_CONFIG in
  5308. [\\/]* | ?:[\\/]*)
  5309. ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
  5310. ;;
  5311. *)
  5312. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5313. for as_dir in $PATH
  5314. do
  5315. IFS=$as_save_IFS
  5316. test -z "$as_dir" && as_dir=.
  5317. for ac_exec_ext in '' $ac_executable_extensions; do
  5318. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5319. ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
  5320. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5321. break 2
  5322. fi
  5323. done
  5324. done
  5325. IFS=$as_save_IFS
  5326. test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
  5327. ;;
  5328. esac
  5329. fi
  5330. PKG_CONFIG=$ac_cv_path_PKG_CONFIG
  5331. if test -n "$PKG_CONFIG"; then
  5332. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
  5333. $as_echo "$PKG_CONFIG" >&6; }
  5334. else
  5335. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5336. $as_echo "no" >&6; }
  5337. fi
  5338. if test "$PKG_CONFIG" = "no"; then
  5339. : Not using pkg-config
  5340. # Either OpenSSL library may require -ldl if built with dynamic engine support
  5341. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing RSA_new" >&5
  5342. $as_echo_n "checking for library containing RSA_new... " >&6; }
  5343. if ${ne_cv_libsfor_RSA_new+:} false; then :
  5344. $as_echo_n "(cached) " >&6
  5345. else
  5346. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5347. /* end confdefs.h. */
  5348. int
  5349. main ()
  5350. {
  5351. RSA_new();
  5352. ;
  5353. return 0;
  5354. }
  5355. _ACEOF
  5356. if ac_fn_c_try_link "$LINENO"; then :
  5357. ne_cv_libsfor_RSA_new="none needed"
  5358. else
  5359. ne_sl_save_LIBS=$LIBS
  5360. ne_cv_libsfor_RSA_new="not found"
  5361. for lib in crypto; do
  5362. # The w32api libraries link using the stdcall calling convention.
  5363. case ${lib}-${ne_cv_os_uname} in
  5364. ws2_32-MINGW*) ne__code="__stdcall RSA_new();" ;;
  5365. *) ne__code="RSA_new();" ;;
  5366. esac
  5367. LIBS="$ne_sl_save_LIBS -l$lib $NEON_LIBS"
  5368. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5369. /* end confdefs.h. */
  5370. int
  5371. main ()
  5372. {
  5373. $ne__code
  5374. ;
  5375. return 0;
  5376. }
  5377. _ACEOF
  5378. if ac_fn_c_try_link "$LINENO"; then :
  5379. ne_cv_libsfor_RSA_new="-l$lib"; break
  5380. fi
  5381. rm -f core conftest.err conftest.$ac_objext \
  5382. conftest$ac_exeext conftest.$ac_ext
  5383. LIBS="$ne_sl_save_LIBS -l$lib -ldl $NEON_LIBS"
  5384. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5385. /* end confdefs.h. */
  5386. int
  5387. main ()
  5388. {
  5389. $ne__code
  5390. ;
  5391. return 0;
  5392. }
  5393. _ACEOF
  5394. if ac_fn_c_try_link "$LINENO"; then :
  5395. ne_cv_libsfor_RSA_new="-l$lib -ldl"; break
  5396. fi
  5397. rm -f core conftest.err conftest.$ac_objext \
  5398. conftest$ac_exeext conftest.$ac_ext
  5399. done
  5400. LIBS=$ne_sl_save_LIBS
  5401. fi
  5402. rm -f core conftest.err conftest.$ac_objext \
  5403. conftest$ac_exeext conftest.$ac_ext
  5404. fi
  5405. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ne_cv_libsfor_RSA_new" >&5
  5406. $as_echo "$ne_cv_libsfor_RSA_new" >&6; }
  5407. if test "$ne_cv_libsfor_RSA_new" = "not found"; then
  5408. as_fn_error $? "could not find library containing RSA_new" "$LINENO" 5
  5409. elif test "$ne_cv_libsfor_RSA_new" = "none needed"; then
  5410. :
  5411. else
  5412. NEON_LIBS="$ne_cv_libsfor_RSA_new $NEON_LIBS"
  5413. fi
  5414. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing SSL_library_init" >&5
  5415. $as_echo_n "checking for library containing SSL_library_init... " >&6; }
  5416. if ${ne_cv_libsfor_SSL_library_init+:} false; then :
  5417. $as_echo_n "(cached) " >&6
  5418. else
  5419. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5420. /* end confdefs.h. */
  5421. int
  5422. main ()
  5423. {
  5424. SSL_library_init();
  5425. ;
  5426. return 0;
  5427. }
  5428. _ACEOF
  5429. if ac_fn_c_try_link "$LINENO"; then :
  5430. ne_cv_libsfor_SSL_library_init="none needed"
  5431. else
  5432. ne_sl_save_LIBS=$LIBS
  5433. ne_cv_libsfor_SSL_library_init="not found"
  5434. for lib in ssl; do
  5435. # The w32api libraries link using the stdcall calling convention.
  5436. case ${lib}-${ne_cv_os_uname} in
  5437. ws2_32-MINGW*) ne__code="__stdcall SSL_library_init();" ;;
  5438. *) ne__code="SSL_library_init();" ;;
  5439. esac
  5440. LIBS="$ne_sl_save_LIBS -l$lib $NEON_LIBS"
  5441. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5442. /* end confdefs.h. */
  5443. int
  5444. main ()
  5445. {
  5446. $ne__code
  5447. ;
  5448. return 0;
  5449. }
  5450. _ACEOF
  5451. if ac_fn_c_try_link "$LINENO"; then :
  5452. ne_cv_libsfor_SSL_library_init="-l$lib"; break
  5453. fi
  5454. rm -f core conftest.err conftest.$ac_objext \
  5455. conftest$ac_exeext conftest.$ac_ext
  5456. LIBS="$ne_sl_save_LIBS -l$lib -ldl $NEON_LIBS"
  5457. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5458. /* end confdefs.h. */
  5459. int
  5460. main ()
  5461. {
  5462. $ne__code
  5463. ;
  5464. return 0;
  5465. }
  5466. _ACEOF
  5467. if ac_fn_c_try_link "$LINENO"; then :
  5468. ne_cv_libsfor_SSL_library_init="-l$lib -ldl"; break
  5469. fi
  5470. rm -f core conftest.err conftest.$ac_objext \
  5471. conftest$ac_exeext conftest.$ac_ext
  5472. done
  5473. LIBS=$ne_sl_save_LIBS
  5474. fi
  5475. rm -f core conftest.err conftest.$ac_objext \
  5476. conftest$ac_exeext conftest.$ac_ext
  5477. fi
  5478. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ne_cv_libsfor_SSL_library_init" >&5
  5479. $as_echo "$ne_cv_libsfor_SSL_library_init" >&6; }
  5480. if test "$ne_cv_libsfor_SSL_library_init" = "not found"; then
  5481. as_fn_error $? "could not find library containing SSL_library_init" "$LINENO" 5
  5482. elif test "$ne_cv_libsfor_SSL_library_init" = "none needed"; then
  5483. :
  5484. else
  5485. NEON_LIBS="$ne_cv_libsfor_SSL_library_init $NEON_LIBS"
  5486. fi
  5487. else
  5488. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for openssl pkg-config data" >&5
  5489. $as_echo_n "checking for openssl pkg-config data... " >&6; }
  5490. if ${ne_cv_pkg_openssl+:} false; then :
  5491. $as_echo_n "(cached) " >&6
  5492. else
  5493. if $PKG_CONFIG openssl; then
  5494. ne_cv_pkg_openssl=yes
  5495. else
  5496. ne_cv_pkg_openssl=no
  5497. fi
  5498. fi
  5499. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ne_cv_pkg_openssl" >&5
  5500. $as_echo "$ne_cv_pkg_openssl" >&6; }
  5501. if test "$ne_cv_pkg_openssl" = "yes"; then
  5502. NE_SSL_CFLAGS=`$PKG_CONFIG --cflags openssl`
  5503. NE_SSL_LIBS=`$PKG_CONFIG --libs openssl`
  5504. : Using provided pkg-config data
  5505. { $as_echo "$as_me:${as_lineno-$LINENO}: using SSL library configuration from pkg-config" >&5
  5506. $as_echo "$as_me: using SSL library configuration from pkg-config" >&6;}
  5507. CPPFLAGS="$CPPFLAGS ${NE_SSL_CFLAGS}"
  5508. NEON_LIBS="$NEON_LIBS ${NE_SSL_LIBS}"
  5509. else
  5510. : No pkg-config for openssl provided
  5511. # Either OpenSSL library may require -ldl if built with dynamic engine support
  5512. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing RSA_new" >&5
  5513. $as_echo_n "checking for library containing RSA_new... " >&6; }
  5514. if ${ne_cv_libsfor_RSA_new+:} false; then :
  5515. $as_echo_n "(cached) " >&6
  5516. else
  5517. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5518. /* end confdefs.h. */
  5519. int
  5520. main ()
  5521. {
  5522. RSA_new();
  5523. ;
  5524. return 0;
  5525. }
  5526. _ACEOF
  5527. if ac_fn_c_try_link "$LINENO"; then :
  5528. ne_cv_libsfor_RSA_new="none needed"
  5529. else
  5530. ne_sl_save_LIBS=$LIBS
  5531. ne_cv_libsfor_RSA_new="not found"
  5532. for lib in crypto; do
  5533. # The w32api libraries link using the stdcall calling convention.
  5534. case ${lib}-${ne_cv_os_uname} in
  5535. ws2_32-MINGW*) ne__code="__stdcall RSA_new();" ;;
  5536. *) ne__code="RSA_new();" ;;
  5537. esac
  5538. LIBS="$ne_sl_save_LIBS -l$lib $NEON_LIBS"
  5539. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5540. /* end confdefs.h. */
  5541. int
  5542. main ()
  5543. {
  5544. $ne__code
  5545. ;
  5546. return 0;
  5547. }
  5548. _ACEOF
  5549. if ac_fn_c_try_link "$LINENO"; then :
  5550. ne_cv_libsfor_RSA_new="-l$lib"; break
  5551. fi
  5552. rm -f core conftest.err conftest.$ac_objext \
  5553. conftest$ac_exeext conftest.$ac_ext
  5554. LIBS="$ne_sl_save_LIBS -l$lib -ldl $NEON_LIBS"
  5555. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5556. /* end confdefs.h. */
  5557. int
  5558. main ()
  5559. {
  5560. $ne__code
  5561. ;
  5562. return 0;
  5563. }
  5564. _ACEOF
  5565. if ac_fn_c_try_link "$LINENO"; then :
  5566. ne_cv_libsfor_RSA_new="-l$lib -ldl"; break
  5567. fi
  5568. rm -f core conftest.err conftest.$ac_objext \
  5569. conftest$ac_exeext conftest.$ac_ext
  5570. done
  5571. LIBS=$ne_sl_save_LIBS
  5572. fi
  5573. rm -f core conftest.err conftest.$ac_objext \
  5574. conftest$ac_exeext conftest.$ac_ext
  5575. fi
  5576. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ne_cv_libsfor_RSA_new" >&5
  5577. $as_echo "$ne_cv_libsfor_RSA_new" >&6; }
  5578. if test "$ne_cv_libsfor_RSA_new" = "not found"; then
  5579. as_fn_error $? "could not find library containing RSA_new" "$LINENO" 5
  5580. elif test "$ne_cv_libsfor_RSA_new" = "none needed"; then
  5581. :
  5582. else
  5583. NEON_LIBS="$ne_cv_libsfor_RSA_new $NEON_LIBS"
  5584. fi
  5585. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing SSL_library_init" >&5
  5586. $as_echo_n "checking for library containing SSL_library_init... " >&6; }
  5587. if ${ne_cv_libsfor_SSL_library_init+:} false; then :
  5588. $as_echo_n "(cached) " >&6
  5589. else
  5590. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5591. /* end confdefs.h. */
  5592. int
  5593. main ()
  5594. {
  5595. SSL_library_init();
  5596. ;
  5597. return 0;
  5598. }
  5599. _ACEOF
  5600. if ac_fn_c_try_link "$LINENO"; then :
  5601. ne_cv_libsfor_SSL_library_init="none needed"
  5602. else
  5603. ne_sl_save_LIBS=$LIBS
  5604. ne_cv_libsfor_SSL_library_init="not found"
  5605. for lib in ssl; do
  5606. # The w32api libraries link using the stdcall calling convention.
  5607. case ${lib}-${ne_cv_os_uname} in
  5608. ws2_32-MINGW*) ne__code="__stdcall SSL_library_init();" ;;
  5609. *) ne__code="SSL_library_init();" ;;
  5610. esac
  5611. LIBS="$ne_sl_save_LIBS -l$lib $NEON_LIBS"
  5612. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5613. /* end confdefs.h. */
  5614. int
  5615. main ()
  5616. {
  5617. $ne__code
  5618. ;
  5619. return 0;
  5620. }
  5621. _ACEOF
  5622. if ac_fn_c_try_link "$LINENO"; then :
  5623. ne_cv_libsfor_SSL_library_init="-l$lib"; break
  5624. fi
  5625. rm -f core conftest.err conftest.$ac_objext \
  5626. conftest$ac_exeext conftest.$ac_ext
  5627. LIBS="$ne_sl_save_LIBS -l$lib -ldl $NEON_LIBS"
  5628. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5629. /* end confdefs.h. */
  5630. int
  5631. main ()
  5632. {
  5633. $ne__code
  5634. ;
  5635. return 0;
  5636. }
  5637. _ACEOF
  5638. if ac_fn_c_try_link "$LINENO"; then :
  5639. ne_cv_libsfor_SSL_library_init="-l$lib -ldl"; break
  5640. fi
  5641. rm -f core conftest.err conftest.$ac_objext \
  5642. conftest$ac_exeext conftest.$ac_ext
  5643. done
  5644. LIBS=$ne_sl_save_LIBS
  5645. fi
  5646. rm -f core conftest.err conftest.$ac_objext \
  5647. conftest$ac_exeext conftest.$ac_ext
  5648. fi
  5649. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ne_cv_libsfor_SSL_library_init" >&5
  5650. $as_echo "$ne_cv_libsfor_SSL_library_init" >&6; }
  5651. if test "$ne_cv_libsfor_SSL_library_init" = "not found"; then
  5652. as_fn_error $? "could not find library containing SSL_library_init" "$LINENO" 5
  5653. elif test "$ne_cv_libsfor_SSL_library_init" = "none needed"; then
  5654. :
  5655. else
  5656. NEON_LIBS="$ne_cv_libsfor_SSL_library_init $NEON_LIBS"
  5657. fi
  5658. fi
  5659. fi
  5660. for ac_header in openssl/ssl.h openssl/opensslv.h
  5661. do :
  5662. as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
  5663. ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
  5664. if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
  5665. cat >>confdefs.h <<_ACEOF
  5666. #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
  5667. _ACEOF
  5668. else
  5669. as_fn_error $? "OpenSSL headers not found, cannot enable SSL support" "$LINENO" 5
  5670. fi
  5671. done
  5672. # Enable EGD support if using 0.9.7 or newer
  5673. { $as_echo "$as_me:${as_lineno-$LINENO}: checking OpenSSL version is >= 0.9.7" >&5
  5674. $as_echo_n "checking OpenSSL version is >= 0.9.7... " >&6; }
  5675. if ${ne_cv_lib_ssl097+:} false; then :
  5676. $as_echo_n "(cached) " >&6
  5677. else
  5678. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5679. /* end confdefs.h. */
  5680. #include <openssl/opensslv.h>
  5681. #if OPENSSL_VERSION_NUMBER >= 0x00907000L
  5682. good
  5683. #endif
  5684. _ACEOF
  5685. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  5686. $EGREP "good" >/dev/null 2>&1; then :
  5687. ne_cv_lib_ssl097=yes
  5688. else
  5689. ne_cv_lib_ssl097=no
  5690. fi
  5691. rm -f conftest*
  5692. fi
  5693. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ne_cv_lib_ssl097" >&5
  5694. $as_echo "$ne_cv_lib_ssl097" >&6; }
  5695. if test "$ne_cv_lib_ssl097" = "yes"; then
  5696. { $as_echo "$as_me:${as_lineno-$LINENO}: OpenSSL >= 0.9.7; EGD support not needed in neon" >&5
  5697. $as_echo "$as_me: OpenSSL >= 0.9.7; EGD support not needed in neon" >&6;}
  5698. NE_FLAG_SSL=yes
  5699. $as_echo "#define NE_HAVE_SSL 1" >>confdefs.h
  5700. ne_SSL_message="SSL support enabled, using OpenSSL (0.9.7 or later)"
  5701. { $as_echo "$as_me:${as_lineno-$LINENO}: SSL support enabled, using OpenSSL (0.9.7 or later)" >&5
  5702. $as_echo "$as_me: SSL support enabled, using OpenSSL (0.9.7 or later)" >&6;}
  5703. ne_cf_save_LIBS=$LIBS
  5704. LIBS="$LIBS $NEON_LIBS"
  5705. for ac_func in CRYPTO_set_idptr_callback SSL_SESSION_cmp
  5706. do :
  5707. as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
  5708. ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
  5709. if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
  5710. cat >>confdefs.h <<_ACEOF
  5711. #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
  5712. _ACEOF
  5713. fi
  5714. done
  5715. LIBS=$ne_cf_save_LIBS
  5716. else
  5717. # Fail if OpenSSL is older than 0.9.6
  5718. { $as_echo "$as_me:${as_lineno-$LINENO}: checking OpenSSL version is >= 0.9.6" >&5
  5719. $as_echo_n "checking OpenSSL version is >= 0.9.6... " >&6; }
  5720. if ${ne_cv_lib_ssl096+:} false; then :
  5721. $as_echo_n "(cached) " >&6
  5722. else
  5723. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5724. /* end confdefs.h. */
  5725. #include <openssl/opensslv.h>
  5726. #if OPENSSL_VERSION_NUMBER >= 0x00906000L
  5727. good
  5728. #endif
  5729. _ACEOF
  5730. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  5731. $EGREP "good" >/dev/null 2>&1; then :
  5732. ne_cv_lib_ssl096=yes
  5733. else
  5734. ne_cv_lib_ssl096=no
  5735. fi
  5736. rm -f conftest*
  5737. fi
  5738. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ne_cv_lib_ssl096" >&5
  5739. $as_echo "$ne_cv_lib_ssl096" >&6; }
  5740. if test "$ne_cv_lib_ssl096" != "yes"; then
  5741. as_fn_error $? "OpenSSL 0.9.6 or later is required" "$LINENO" 5
  5742. fi
  5743. NE_FLAG_SSL=yes
  5744. $as_echo "#define NE_HAVE_SSL 1" >>confdefs.h
  5745. ne_SSL_message="SSL support enabled, using OpenSSL (0.9.6 or later)"
  5746. { $as_echo "$as_me:${as_lineno-$LINENO}: SSL support enabled, using OpenSSL (0.9.6 or later)" >&5
  5747. $as_echo "$as_me: SSL support enabled, using OpenSSL (0.9.6 or later)" >&6;}
  5748. case "$with_egd" in
  5749. yes|no) ne_cv_lib_sslegd=$with_egd ;;
  5750. /*) ne_cv_lib_sslegd=yes
  5751. cat >>confdefs.h <<_ACEOF
  5752. #define EGD_PATH "$with_egd"
  5753. _ACEOF
  5754. ;;
  5755. *) # Guess whether EGD support is needed
  5756. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable EGD support" >&5
  5757. $as_echo_n "checking whether to enable EGD support... " >&6; }
  5758. if ${ne_cv_lib_sslegd+:} false; then :
  5759. $as_echo_n "(cached) " >&6
  5760. else
  5761. if test -r /dev/random || test -r /dev/urandom; then
  5762. ne_cv_lib_sslegd=no
  5763. else
  5764. ne_cv_lib_sslegd=yes
  5765. fi
  5766. fi
  5767. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ne_cv_lib_sslegd" >&5
  5768. $as_echo "$ne_cv_lib_sslegd" >&6; }
  5769. ;;
  5770. esac
  5771. if test "$ne_cv_lib_sslegd" = "yes"; then
  5772. { $as_echo "$as_me:${as_lineno-$LINENO}: EGD support enabled for seeding OpenSSL PRNG" >&5
  5773. $as_echo "$as_me: EGD support enabled for seeding OpenSSL PRNG" >&6;}
  5774. $as_echo "#define ENABLE_EGD 1" >>confdefs.h
  5775. fi
  5776. fi
  5777. $as_echo "#define HAVE_OPENSSL 1" >>confdefs.h
  5778. NEON_EXTRAOBJS="$NEON_EXTRAOBJS ne_openssl"
  5779. $as_echo "#define HAVE_NTLM 1" >>confdefs.h
  5780. ;;
  5781. gnutls)
  5782. # Extract the first word of "pkg-config", so it can be a program name with args.
  5783. set dummy pkg-config; ac_word=$2
  5784. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5785. $as_echo_n "checking for $ac_word... " >&6; }
  5786. if ${ac_cv_path_PKG_CONFIG+:} false; then :
  5787. $as_echo_n "(cached) " >&6
  5788. else
  5789. case $PKG_CONFIG in
  5790. [\\/]* | ?:[\\/]*)
  5791. ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
  5792. ;;
  5793. *)
  5794. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5795. for as_dir in $PATH
  5796. do
  5797. IFS=$as_save_IFS
  5798. test -z "$as_dir" && as_dir=.
  5799. for ac_exec_ext in '' $ac_executable_extensions; do
  5800. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5801. ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
  5802. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5803. break 2
  5804. fi
  5805. done
  5806. done
  5807. IFS=$as_save_IFS
  5808. test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
  5809. ;;
  5810. esac
  5811. fi
  5812. PKG_CONFIG=$ac_cv_path_PKG_CONFIG
  5813. if test -n "$PKG_CONFIG"; then
  5814. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
  5815. $as_echo "$PKG_CONFIG" >&6; }
  5816. else
  5817. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5818. $as_echo "no" >&6; }
  5819. fi
  5820. if test "$PKG_CONFIG" = "no"; then
  5821. : Not using pkg-config
  5822. # Fall back on libgnutls-config script
  5823. # Extract the first word of "libgnutls-config", so it can be a program name with args.
  5824. set dummy libgnutls-config; ac_word=$2
  5825. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5826. $as_echo_n "checking for $ac_word... " >&6; }
  5827. if ${ac_cv_path_GNUTLS_CONFIG+:} false; then :
  5828. $as_echo_n "(cached) " >&6
  5829. else
  5830. case $GNUTLS_CONFIG in
  5831. [\\/]* | ?:[\\/]*)
  5832. ac_cv_path_GNUTLS_CONFIG="$GNUTLS_CONFIG" # Let the user override the test with a path.
  5833. ;;
  5834. *)
  5835. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5836. for as_dir in $PATH
  5837. do
  5838. IFS=$as_save_IFS
  5839. test -z "$as_dir" && as_dir=.
  5840. for ac_exec_ext in '' $ac_executable_extensions; do
  5841. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5842. ac_cv_path_GNUTLS_CONFIG="$as_dir/$ac_word$ac_exec_ext"
  5843. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5844. break 2
  5845. fi
  5846. done
  5847. done
  5848. IFS=$as_save_IFS
  5849. test -z "$ac_cv_path_GNUTLS_CONFIG" && ac_cv_path_GNUTLS_CONFIG="no"
  5850. ;;
  5851. esac
  5852. fi
  5853. GNUTLS_CONFIG=$ac_cv_path_GNUTLS_CONFIG
  5854. if test -n "$GNUTLS_CONFIG"; then
  5855. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GNUTLS_CONFIG" >&5
  5856. $as_echo "$GNUTLS_CONFIG" >&6; }
  5857. else
  5858. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5859. $as_echo "no" >&6; }
  5860. fi
  5861. if test "$GNUTLS_CONFIG" = "no"; then
  5862. as_fn_error $? "could not find libgnutls-config in \$PATH" "$LINENO" 5
  5863. fi
  5864. CPPFLAGS="$CPPFLAGS `$GNUTLS_CONFIG --cflags`"
  5865. NEON_LIBS="$NEON_LIBS `$GNUTLS_CONFIG --libs`"
  5866. ne_gnutls_ver=`$GNUTLS_CONFIG --version`
  5867. else
  5868. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gnutls pkg-config data" >&5
  5869. $as_echo_n "checking for gnutls pkg-config data... " >&6; }
  5870. if ${ne_cv_pkg_gnutls+:} false; then :
  5871. $as_echo_n "(cached) " >&6
  5872. else
  5873. if $PKG_CONFIG gnutls; then
  5874. ne_cv_pkg_gnutls=yes
  5875. else
  5876. ne_cv_pkg_gnutls=no
  5877. fi
  5878. fi
  5879. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ne_cv_pkg_gnutls" >&5
  5880. $as_echo "$ne_cv_pkg_gnutls" >&6; }
  5881. if test "$ne_cv_pkg_gnutls" = "yes"; then
  5882. NE_SSL_CFLAGS=`$PKG_CONFIG --cflags gnutls`
  5883. NE_SSL_LIBS=`$PKG_CONFIG --libs gnutls`
  5884. : Using provided pkg-config data
  5885. { $as_echo "$as_me:${as_lineno-$LINENO}: using GnuTLS configuration from pkg-config" >&5
  5886. $as_echo "$as_me: using GnuTLS configuration from pkg-config" >&6;}
  5887. CPPFLAGS="$CPPFLAGS ${NE_SSL_CFLAGS}"
  5888. NEON_LIBS="$NEON_LIBS ${NE_SSL_LIBS}"
  5889. ne_gnutls_ver=`$PKG_CONFIG --modversion gnutls`
  5890. else
  5891. : No pkg-config for gnutls provided
  5892. # Fall back on libgnutls-config script
  5893. # Extract the first word of "libgnutls-config", so it can be a program name with args.
  5894. set dummy libgnutls-config; ac_word=$2
  5895. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5896. $as_echo_n "checking for $ac_word... " >&6; }
  5897. if ${ac_cv_path_GNUTLS_CONFIG+:} false; then :
  5898. $as_echo_n "(cached) " >&6
  5899. else
  5900. case $GNUTLS_CONFIG in
  5901. [\\/]* | ?:[\\/]*)
  5902. ac_cv_path_GNUTLS_CONFIG="$GNUTLS_CONFIG" # Let the user override the test with a path.
  5903. ;;
  5904. *)
  5905. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5906. for as_dir in $PATH
  5907. do
  5908. IFS=$as_save_IFS
  5909. test -z "$as_dir" && as_dir=.
  5910. for ac_exec_ext in '' $ac_executable_extensions; do
  5911. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5912. ac_cv_path_GNUTLS_CONFIG="$as_dir/$ac_word$ac_exec_ext"
  5913. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5914. break 2
  5915. fi
  5916. done
  5917. done
  5918. IFS=$as_save_IFS
  5919. test -z "$ac_cv_path_GNUTLS_CONFIG" && ac_cv_path_GNUTLS_CONFIG="no"
  5920. ;;
  5921. esac
  5922. fi
  5923. GNUTLS_CONFIG=$ac_cv_path_GNUTLS_CONFIG
  5924. if test -n "$GNUTLS_CONFIG"; then
  5925. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GNUTLS_CONFIG" >&5
  5926. $as_echo "$GNUTLS_CONFIG" >&6; }
  5927. else
  5928. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5929. $as_echo "no" >&6; }
  5930. fi
  5931. if test "$GNUTLS_CONFIG" = "no"; then
  5932. as_fn_error $? "could not find libgnutls-config in \$PATH" "$LINENO" 5
  5933. fi
  5934. CPPFLAGS="$CPPFLAGS `$GNUTLS_CONFIG --cflags`"
  5935. NEON_LIBS="$NEON_LIBS `$GNUTLS_CONFIG --libs`"
  5936. ne_gnutls_ver=`$GNUTLS_CONFIG --version`
  5937. fi
  5938. fi
  5939. ac_fn_c_check_header_mongrel "$LINENO" "gnutls/gnutls.h" "ac_cv_header_gnutls_gnutls_h" "$ac_includes_default"
  5940. if test "x$ac_cv_header_gnutls_gnutls_h" = xyes; then :
  5941. else
  5942. as_fn_error $? "could not find gnutls/gnutls.h in include path" "$LINENO" 5
  5943. fi
  5944. NE_FLAG_SSL=yes
  5945. $as_echo "#define NE_HAVE_SSL 1" >>confdefs.h
  5946. ne_SSL_message="SSL support enabled, using GnuTLS $ne_gnutls_ver"
  5947. { $as_echo "$as_me:${as_lineno-$LINENO}: SSL support enabled, using GnuTLS $ne_gnutls_ver" >&5
  5948. $as_echo "$as_me: SSL support enabled, using GnuTLS $ne_gnutls_ver" >&6;}
  5949. NEON_EXTRAOBJS="$NEON_EXTRAOBJS ne_gnutls"
  5950. $as_echo "#define HAVE_GNUTLS 1" >>confdefs.h
  5951. # Check for functions in later releases
  5952. ne_cf_save_LIBS=$LIBS
  5953. LIBS="$LIBS $NEON_LIBS"
  5954. for ac_func in gnutls_session_get_data2 gnutls_x509_dn_get_rdn_ava \
  5955. gnutls_sign_callback_set \
  5956. gnutls_certificate_get_issuer \
  5957. gnutls_certificate_get_x509_cas \
  5958. gnutls_x509_crt_sign2
  5959. do :
  5960. as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
  5961. ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
  5962. if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
  5963. cat >>confdefs.h <<_ACEOF
  5964. #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
  5965. _ACEOF
  5966. fi
  5967. done
  5968. LIBS=$ne_cf_save_LIBS
  5969. # fail if gnutls_x509_crt_sign2 is not found (it was introduced in 1.2.0, which is required)
  5970. if test x${ac_cv_func_gnutls_x509_crt_sign2} != xyes; then
  5971. as_fn_error $? "GnuTLS version predates gnutls_x509_crt_sign2, newer version required (at least 1.2.0)" "$LINENO" 5
  5972. fi
  5973. # Check for iconv support if using the new RDN access functions:
  5974. if test ${ac_cv_func_gnutls_x509_dn_get_rdn_ava}X${ac_cv_header_iconv_h} = yesXyes; then
  5975. for ac_func in iconv
  5976. do :
  5977. ac_fn_c_check_func "$LINENO" "iconv" "ac_cv_func_iconv"
  5978. if test "x$ac_cv_func_iconv" = xyes; then :
  5979. cat >>confdefs.h <<_ACEOF
  5980. #define HAVE_ICONV 1
  5981. _ACEOF
  5982. fi
  5983. done
  5984. fi
  5985. ;;
  5986. *) # Default to off; only create crypto-enabled binaries if requested.
  5987. NE_FLAG_SSL=no
  5988. ne_SSL_message="SSL support is not enabled"
  5989. { $as_echo "$as_me:${as_lineno-$LINENO}: SSL support is not enabled" >&5
  5990. $as_echo "$as_me: SSL support is not enabled" >&6;}
  5991. NE_FLAG_TS_SSL=no
  5992. ne_TS_SSL_message="Thread-safe SSL support is not enabled"
  5993. { $as_echo "$as_me:${as_lineno-$LINENO}: Thread-safe SSL support is not enabled" >&5
  5994. $as_echo "$as_me: Thread-safe SSL support is not enabled" >&6;}
  5995. NEON_EXTRAOBJS="$NEON_EXTRAOBJS ne_stubssl"
  5996. ;;
  5997. esac
  5998. # Check whether --with-ca-bundle was given.
  5999. if test "${with_ca_bundle+set}" = set; then :
  6000. withval=$with_ca_bundle;
  6001. else
  6002. with_ca_bundle=no
  6003. fi
  6004. case ${NE_FLAG_SSL}-${with_ca_bundle} in
  6005. *-no) ;;
  6006. yes-*)
  6007. cat >>confdefs.h <<_ACEOF
  6008. #define NE_SSL_CA_BUNDLE "${with_ca_bundle}"
  6009. _ACEOF
  6010. { $as_echo "$as_me:${as_lineno-$LINENO}: Using ${with_ca_bundle} as default SSL CA bundle" >&5
  6011. $as_echo "$as_me: Using ${with_ca_bundle} as default SSL CA bundle" >&6;}
  6012. ;;
  6013. esac
  6014. # Check whether --enable-threadsafe-ssl was given.
  6015. if test "${enable_threadsafe_ssl+set}" = set; then :
  6016. enableval=$enable_threadsafe_ssl;
  6017. else
  6018. enable_threadsafe_ssl=no
  6019. fi
  6020. case $enable_threadsafe_ssl in
  6021. posix|yes)
  6022. ne_pthr_ok=yes
  6023. for ac_func in pthread_mutex_init pthread_mutex_lock
  6024. do :
  6025. as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
  6026. ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
  6027. if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
  6028. cat >>confdefs.h <<_ACEOF
  6029. #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
  6030. _ACEOF
  6031. else
  6032. ne_pthr_ok=no
  6033. fi
  6034. done
  6035. if test "${ne_pthr_ok}" = "no"; then
  6036. as_fn_error $? "could not find POSIX mutex interfaces; (try CC=\"${CC} -pthread\"?)" "$LINENO" 5
  6037. fi
  6038. NE_FLAG_TS_SSL=yes
  6039. $as_echo "#define NE_HAVE_TS_SSL 1" >>confdefs.h
  6040. ne_TS_SSL_message="Thread-safe SSL supported using POSIX threads"
  6041. { $as_echo "$as_me:${as_lineno-$LINENO}: Thread-safe SSL supported using POSIX threads" >&5
  6042. $as_echo "$as_me: Thread-safe SSL supported using POSIX threads" >&6;}
  6043. ;;
  6044. *)
  6045. NE_FLAG_TS_SSL=no
  6046. ne_TS_SSL_message="Thread-safe SSL not supported"
  6047. { $as_echo "$as_me:${as_lineno-$LINENO}: Thread-safe SSL not supported" >&5
  6048. $as_echo "$as_me: Thread-safe SSL not supported" >&6;}
  6049. ;;
  6050. esac
  6051. case ${with_pakchois}X${ac_cv_func_gnutls_sign_callback_set}Y${ne_cv_lib_ssl097} in
  6052. noX*Y*) ;;
  6053. *X*Yyes|*XyesY*)
  6054. # PKCS#11... ho!
  6055. # Extract the first word of "pkg-config", so it can be a program name with args.
  6056. set dummy pkg-config; ac_word=$2
  6057. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6058. $as_echo_n "checking for $ac_word... " >&6; }
  6059. if ${ac_cv_path_PKG_CONFIG+:} false; then :
  6060. $as_echo_n "(cached) " >&6
  6061. else
  6062. case $PKG_CONFIG in
  6063. [\\/]* | ?:[\\/]*)
  6064. ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
  6065. ;;
  6066. *)
  6067. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6068. for as_dir in $PATH
  6069. do
  6070. IFS=$as_save_IFS
  6071. test -z "$as_dir" && as_dir=.
  6072. for ac_exec_ext in '' $ac_executable_extensions; do
  6073. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  6074. ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
  6075. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6076. break 2
  6077. fi
  6078. done
  6079. done
  6080. IFS=$as_save_IFS
  6081. test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
  6082. ;;
  6083. esac
  6084. fi
  6085. PKG_CONFIG=$ac_cv_path_PKG_CONFIG
  6086. if test -n "$PKG_CONFIG"; then
  6087. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
  6088. $as_echo "$PKG_CONFIG" >&6; }
  6089. else
  6090. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6091. $as_echo "no" >&6; }
  6092. fi
  6093. if test "$PKG_CONFIG" = "no"; then
  6094. : Not using pkg-config
  6095. { $as_echo "$as_me:${as_lineno-$LINENO}: pakchois library not found; no PKCS#11 support" >&5
  6096. $as_echo "$as_me: pakchois library not found; no PKCS#11 support" >&6;}
  6097. else
  6098. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pakchois pkg-config data" >&5
  6099. $as_echo_n "checking for pakchois pkg-config data... " >&6; }
  6100. if ${ne_cv_pkg_pakchois+:} false; then :
  6101. $as_echo_n "(cached) " >&6
  6102. else
  6103. if $PKG_CONFIG pakchois; then
  6104. ne_cv_pkg_pakchois=yes
  6105. else
  6106. ne_cv_pkg_pakchois=no
  6107. fi
  6108. fi
  6109. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ne_cv_pkg_pakchois" >&5
  6110. $as_echo "$ne_cv_pkg_pakchois" >&6; }
  6111. if test "$ne_cv_pkg_pakchois" = "yes"; then
  6112. NE_PK11_CFLAGS=`$PKG_CONFIG --cflags pakchois`
  6113. NE_PK11_LIBS=`$PKG_CONFIG --libs pakchois`
  6114. : Using provided pkg-config data
  6115. { $as_echo "$as_me:${as_lineno-$LINENO}: using pakchois for PKCS#11 support" >&5
  6116. $as_echo "$as_me: using pakchois for PKCS#11 support" >&6;}
  6117. $as_echo "#define HAVE_PAKCHOIS 1" >>confdefs.h
  6118. CPPFLAGS="$CPPFLAGS ${NE_PK11_CFLAGS}"
  6119. NEON_LIBS="${NEON_LIBS} ${NE_PK11_LIBS}"
  6120. else
  6121. : No pkg-config for pakchois provided
  6122. { $as_echo "$as_me:${as_lineno-$LINENO}: pakchois library not found; no PKCS#11 support" >&5
  6123. $as_echo "$as_me: pakchois library not found; no PKCS#11 support" >&6;}
  6124. fi
  6125. fi
  6126. ;;
  6127. esac
  6128. # Check whether --with-gssapi was given.
  6129. if test "${with_gssapi+set}" = set; then :
  6130. withval=$with_gssapi;
  6131. fi
  6132. if test "$with_gssapi" != "no"; then
  6133. # Extract the first word of "krb5-config", so it can be a program name with args.
  6134. set dummy krb5-config; ac_word=$2
  6135. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6136. $as_echo_n "checking for $ac_word... " >&6; }
  6137. if ${ac_cv_path_KRB5_CONFIG+:} false; then :
  6138. $as_echo_n "(cached) " >&6
  6139. else
  6140. case $KRB5_CONFIG in
  6141. [\\/]* | ?:[\\/]*)
  6142. ac_cv_path_KRB5_CONFIG="$KRB5_CONFIG" # Let the user override the test with a path.
  6143. ;;
  6144. *)
  6145. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6146. as_dummy="$PATH:/usr/kerberos/bin"
  6147. for as_dir in $as_dummy
  6148. do
  6149. IFS=$as_save_IFS
  6150. test -z "$as_dir" && as_dir=.
  6151. for ac_exec_ext in '' $ac_executable_extensions; do
  6152. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  6153. ac_cv_path_KRB5_CONFIG="$as_dir/$ac_word$ac_exec_ext"
  6154. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6155. break 2
  6156. fi
  6157. done
  6158. done
  6159. IFS=$as_save_IFS
  6160. test -z "$ac_cv_path_KRB5_CONFIG" && ac_cv_path_KRB5_CONFIG="none"
  6161. ;;
  6162. esac
  6163. fi
  6164. KRB5_CONFIG=$ac_cv_path_KRB5_CONFIG
  6165. if test -n "$KRB5_CONFIG"; then
  6166. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $KRB5_CONFIG" >&5
  6167. $as_echo "$KRB5_CONFIG" >&6; }
  6168. else
  6169. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6170. $as_echo "no" >&6; }
  6171. fi
  6172. else
  6173. KRB5_CONFIG=none
  6174. fi
  6175. if test "x$KRB5_CONFIG" != "xnone"; then
  6176. ne_save_CPPFLAGS=$CPPFLAGS
  6177. ne_save_LIBS=$NEON_LIBS
  6178. NEON_LIBS="$NEON_LIBS `${KRB5_CONFIG} --libs gssapi`"
  6179. CPPFLAGS="$CPPFLAGS `${KRB5_CONFIG} --cflags gssapi`"
  6180. # MIT and Heimdal put gssapi.h in different places
  6181. for ac_header in gssapi/gssapi.h gssapi.h
  6182. do :
  6183. as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
  6184. ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
  6185. if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
  6186. cat >>confdefs.h <<_ACEOF
  6187. #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
  6188. _ACEOF
  6189. ne_cf_save_LIBS=$LIBS
  6190. LIBS="$LIBS $NEON_LIBS"
  6191. for ac_func in gss_init_sec_context
  6192. do :
  6193. ac_fn_c_check_func "$LINENO" "gss_init_sec_context" "ac_cv_func_gss_init_sec_context"
  6194. if test "x$ac_cv_func_gss_init_sec_context" = xyes; then :
  6195. cat >>confdefs.h <<_ACEOF
  6196. #define HAVE_GSS_INIT_SEC_CONTEXT 1
  6197. _ACEOF
  6198. ne_save_CPPFLAGS=$CPPFLAGS
  6199. ne_save_LIBS=$NEON_LIBS
  6200. { $as_echo "$as_me:${as_lineno-$LINENO}: GSSAPI authentication support enabled" >&5
  6201. $as_echo "$as_me: GSSAPI authentication support enabled" >&6;}
  6202. $as_echo "#define HAVE_GSSAPI 1" >>confdefs.h
  6203. for ac_header in gssapi/gssapi_generic.h
  6204. do :
  6205. ac_fn_c_check_header_mongrel "$LINENO" "gssapi/gssapi_generic.h" "ac_cv_header_gssapi_gssapi_generic_h" "$ac_includes_default"
  6206. if test "x$ac_cv_header_gssapi_gssapi_generic_h" = xyes; then :
  6207. cat >>confdefs.h <<_ACEOF
  6208. #define HAVE_GSSAPI_GSSAPI_GENERIC_H 1
  6209. _ACEOF
  6210. fi
  6211. done
  6212. # Older versions of MIT Kerberos lack GSS_C_NT_HOSTBASED_SERVICE
  6213. 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
  6214. #include <gssapi/gssapi.h>
  6215. #else
  6216. #include <gssapi.h>
  6217. #endif
  6218. "
  6219. if test "x$ac_cv_have_decl_GSS_C_NT_HOSTBASED_SERVICE" = xyes; then :
  6220. else
  6221. $as_echo "#define GSS_C_NT_HOSTBASED_SERVICE gss_nt_service_name" >>confdefs.h
  6222. fi
  6223. fi
  6224. done
  6225. LIBS=$ne_cf_save_LIBS
  6226. break
  6227. fi
  6228. done
  6229. CPPFLAGS=$ne_save_CPPFLAGS
  6230. NEON_LIBS=$ne_save_LIBS
  6231. fi
  6232. # Check whether --with-libproxy was given.
  6233. if test "${with_libproxy+set}" = set; then :
  6234. withval=$with_libproxy;
  6235. fi
  6236. if test "x$with_libproxy" != "xno"; then
  6237. # Extract the first word of "pkg-config", so it can be a program name with args.
  6238. set dummy pkg-config; ac_word=$2
  6239. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6240. $as_echo_n "checking for $ac_word... " >&6; }
  6241. if ${ac_cv_path_PKG_CONFIG+:} false; then :
  6242. $as_echo_n "(cached) " >&6
  6243. else
  6244. case $PKG_CONFIG in
  6245. [\\/]* | ?:[\\/]*)
  6246. ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
  6247. ;;
  6248. *)
  6249. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6250. for as_dir in $PATH
  6251. do
  6252. IFS=$as_save_IFS
  6253. test -z "$as_dir" && as_dir=.
  6254. for ac_exec_ext in '' $ac_executable_extensions; do
  6255. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  6256. ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
  6257. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6258. break 2
  6259. fi
  6260. done
  6261. done
  6262. IFS=$as_save_IFS
  6263. test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
  6264. ;;
  6265. esac
  6266. fi
  6267. PKG_CONFIG=$ac_cv_path_PKG_CONFIG
  6268. if test -n "$PKG_CONFIG"; then
  6269. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
  6270. $as_echo "$PKG_CONFIG" >&6; }
  6271. else
  6272. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6273. $as_echo "no" >&6; }
  6274. fi
  6275. if test "$PKG_CONFIG" = "no"; then
  6276. : Not using pkg-config
  6277. NE_FLAG_LIBPXY=no
  6278. ne_LIBPXY_message="libproxy support not enabled"
  6279. { $as_echo "$as_me:${as_lineno-$LINENO}: libproxy support not enabled" >&5
  6280. $as_echo "$as_me: libproxy support not enabled" >&6;}
  6281. else
  6282. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libproxy-1.0 pkg-config data" >&5
  6283. $as_echo_n "checking for libproxy-1.0 pkg-config data... " >&6; }
  6284. if ${ne_cv_pkg_libproxy_1_0+:} false; then :
  6285. $as_echo_n "(cached) " >&6
  6286. else
  6287. if $PKG_CONFIG libproxy-1.0; then
  6288. ne_cv_pkg_libproxy_1_0=yes
  6289. else
  6290. ne_cv_pkg_libproxy_1_0=no
  6291. fi
  6292. fi
  6293. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ne_cv_pkg_libproxy_1_0" >&5
  6294. $as_echo "$ne_cv_pkg_libproxy_1_0" >&6; }
  6295. if test "$ne_cv_pkg_libproxy_1_0" = "yes"; then
  6296. NE_PXY_CFLAGS=`$PKG_CONFIG --cflags libproxy-1.0`
  6297. NE_PXY_LIBS=`$PKG_CONFIG --libs libproxy-1.0`
  6298. : Using provided pkg-config data
  6299. $as_echo "#define HAVE_LIBPROXY 1" >>confdefs.h
  6300. CPPFLAGS="$CPPFLAGS $NE_PXY_CFLAGS"
  6301. NEON_LIBS="$NEON_LIBS ${NE_PXY_LIBS}"
  6302. NE_FLAG_LIBPXY=yes
  6303. $as_echo "#define NE_HAVE_LIBPXY 1" >>confdefs.h
  6304. ne_LIBPXY_message="libproxy support enabled"
  6305. { $as_echo "$as_me:${as_lineno-$LINENO}: libproxy support enabled" >&5
  6306. $as_echo "$as_me: libproxy support enabled" >&6;}
  6307. else
  6308. : No pkg-config for libproxy-1.0 provided
  6309. NE_FLAG_LIBPXY=no
  6310. ne_LIBPXY_message="libproxy support not enabled"
  6311. { $as_echo "$as_me:${as_lineno-$LINENO}: libproxy support not enabled" >&5
  6312. $as_echo "$as_me: libproxy support not enabled" >&6;}
  6313. fi
  6314. fi
  6315. else
  6316. NE_FLAG_LIBPXY=no
  6317. ne_LIBPXY_message="libproxy support not enabled"
  6318. { $as_echo "$as_me:${as_lineno-$LINENO}: libproxy support not enabled" >&5
  6319. $as_echo "$as_me: libproxy support not enabled" >&6;}
  6320. fi
  6321. # Check whether --enable-shared was given.
  6322. if test "${enable_shared+set}" = set; then :
  6323. enableval=$enable_shared; p=${PACKAGE-default}
  6324. case $enableval in
  6325. yes) enable_shared=yes ;;
  6326. no) enable_shared=no ;;
  6327. *)
  6328. enable_shared=no
  6329. # Look at the argument we got. We use all the common list separators.
  6330. lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
  6331. for pkg in $enableval; do
  6332. IFS="$lt_save_ifs"
  6333. if test "X$pkg" = "X$p"; then
  6334. enable_shared=yes
  6335. fi
  6336. done
  6337. IFS="$lt_save_ifs"
  6338. ;;
  6339. esac
  6340. else
  6341. enable_shared=no
  6342. fi
  6343. case `pwd` in
  6344. *\ * | *\ *)
  6345. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
  6346. $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
  6347. esac
  6348. macro_version='2.4.2'
  6349. macro_revision='1.3337'
  6350. ltmain="$ac_aux_dir/ltmain.sh"
  6351. # Make sure we can run config.sub.
  6352. $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
  6353. as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
  6354. { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
  6355. $as_echo_n "checking build system type... " >&6; }
  6356. if ${ac_cv_build+:} false; then :
  6357. $as_echo_n "(cached) " >&6
  6358. else
  6359. ac_build_alias=$build_alias
  6360. test "x$ac_build_alias" = x &&
  6361. ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
  6362. test "x$ac_build_alias" = x &&
  6363. as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
  6364. ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
  6365. as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
  6366. fi
  6367. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
  6368. $as_echo "$ac_cv_build" >&6; }
  6369. case $ac_cv_build in
  6370. *-*-*) ;;
  6371. *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
  6372. esac
  6373. build=$ac_cv_build
  6374. ac_save_IFS=$IFS; IFS='-'
  6375. set x $ac_cv_build
  6376. shift
  6377. build_cpu=$1
  6378. build_vendor=$2
  6379. shift; shift
  6380. # Remember, the first character of IFS is used to create $*,
  6381. # except with old shells:
  6382. build_os=$*
  6383. IFS=$ac_save_IFS
  6384. case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
  6385. { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
  6386. $as_echo_n "checking host system type... " >&6; }
  6387. if ${ac_cv_host+:} false; then :
  6388. $as_echo_n "(cached) " >&6
  6389. else
  6390. if test "x$host_alias" = x; then
  6391. ac_cv_host=$ac_cv_build
  6392. else
  6393. ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
  6394. as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
  6395. fi
  6396. fi
  6397. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
  6398. $as_echo "$ac_cv_host" >&6; }
  6399. case $ac_cv_host in
  6400. *-*-*) ;;
  6401. *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
  6402. esac
  6403. host=$ac_cv_host
  6404. ac_save_IFS=$IFS; IFS='-'
  6405. set x $ac_cv_host
  6406. shift
  6407. host_cpu=$1
  6408. host_vendor=$2
  6409. shift; shift
  6410. # Remember, the first character of IFS is used to create $*,
  6411. # except with old shells:
  6412. host_os=$*
  6413. IFS=$ac_save_IFS
  6414. case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
  6415. # Backslashify metacharacters that are still active within
  6416. # double-quoted strings.
  6417. sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
  6418. # Same as above, but do not quote variable references.
  6419. double_quote_subst='s/\(["`\\]\)/\\\1/g'
  6420. # Sed substitution to delay expansion of an escaped shell variable in a
  6421. # double_quote_subst'ed string.
  6422. delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
  6423. # Sed substitution to delay expansion of an escaped single quote.
  6424. delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
  6425. # Sed substitution to avoid accidental globbing in evaled expressions
  6426. no_glob_subst='s/\*/\\\*/g'
  6427. ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
  6428. ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
  6429. ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
  6430. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
  6431. $as_echo_n "checking how to print strings... " >&6; }
  6432. # Test print first, because it will be a builtin if present.
  6433. if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
  6434. test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
  6435. ECHO='print -r --'
  6436. elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
  6437. ECHO='printf %s\n'
  6438. else
  6439. # Use this function as a fallback that always works.
  6440. func_fallback_echo ()
  6441. {
  6442. eval 'cat <<_LTECHO_EOF
  6443. $1
  6444. _LTECHO_EOF'
  6445. }
  6446. ECHO='func_fallback_echo'
  6447. fi
  6448. # func_echo_all arg...
  6449. # Invoke $ECHO with all args, space-separated.
  6450. func_echo_all ()
  6451. {
  6452. $ECHO ""
  6453. }
  6454. case "$ECHO" in
  6455. printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
  6456. $as_echo "printf" >&6; } ;;
  6457. print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
  6458. $as_echo "print -r" >&6; } ;;
  6459. *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
  6460. $as_echo "cat" >&6; } ;;
  6461. esac
  6462. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
  6463. $as_echo_n "checking for a sed that does not truncate output... " >&6; }
  6464. if ${ac_cv_path_SED+:} false; then :
  6465. $as_echo_n "(cached) " >&6
  6466. else
  6467. ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
  6468. for ac_i in 1 2 3 4 5 6 7; do
  6469. ac_script="$ac_script$as_nl$ac_script"
  6470. done
  6471. echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
  6472. { ac_script=; unset ac_script;}
  6473. if test -z "$SED"; then
  6474. ac_path_SED_found=false
  6475. # Loop through the user's path and test for each of PROGNAME-LIST
  6476. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6477. for as_dir in $PATH
  6478. do
  6479. IFS=$as_save_IFS
  6480. test -z "$as_dir" && as_dir=.
  6481. for ac_prog in sed gsed; do
  6482. for ac_exec_ext in '' $ac_executable_extensions; do
  6483. ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
  6484. as_fn_executable_p "$ac_path_SED" || continue
  6485. # Check for GNU ac_path_SED and select it if it is found.
  6486. # Check for GNU $ac_path_SED
  6487. case `"$ac_path_SED" --version 2>&1` in
  6488. *GNU*)
  6489. ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
  6490. *)
  6491. ac_count=0
  6492. $as_echo_n 0123456789 >"conftest.in"
  6493. while :
  6494. do
  6495. cat "conftest.in" "conftest.in" >"conftest.tmp"
  6496. mv "conftest.tmp" "conftest.in"
  6497. cp "conftest.in" "conftest.nl"
  6498. $as_echo '' >> "conftest.nl"
  6499. "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
  6500. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  6501. as_fn_arith $ac_count + 1 && ac_count=$as_val
  6502. if test $ac_count -gt ${ac_path_SED_max-0}; then
  6503. # Best one so far, save it but keep looking for a better one
  6504. ac_cv_path_SED="$ac_path_SED"
  6505. ac_path_SED_max=$ac_count
  6506. fi
  6507. # 10*(2^10) chars as input seems more than enough
  6508. test $ac_count -gt 10 && break
  6509. done
  6510. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  6511. esac
  6512. $ac_path_SED_found && break 3
  6513. done
  6514. done
  6515. done
  6516. IFS=$as_save_IFS
  6517. if test -z "$ac_cv_path_SED"; then
  6518. as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
  6519. fi
  6520. else
  6521. ac_cv_path_SED=$SED
  6522. fi
  6523. fi
  6524. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
  6525. $as_echo "$ac_cv_path_SED" >&6; }
  6526. SED="$ac_cv_path_SED"
  6527. rm -f conftest.sed
  6528. test -z "$SED" && SED=sed
  6529. Xsed="$SED -e 1s/^X//"
  6530. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
  6531. $as_echo_n "checking for fgrep... " >&6; }
  6532. if ${ac_cv_path_FGREP+:} false; then :
  6533. $as_echo_n "(cached) " >&6
  6534. else
  6535. if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
  6536. then ac_cv_path_FGREP="$GREP -F"
  6537. else
  6538. if test -z "$FGREP"; then
  6539. ac_path_FGREP_found=false
  6540. # Loop through the user's path and test for each of PROGNAME-LIST
  6541. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6542. for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
  6543. do
  6544. IFS=$as_save_IFS
  6545. test -z "$as_dir" && as_dir=.
  6546. for ac_prog in fgrep; do
  6547. for ac_exec_ext in '' $ac_executable_extensions; do
  6548. ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
  6549. as_fn_executable_p "$ac_path_FGREP" || continue
  6550. # Check for GNU ac_path_FGREP and select it if it is found.
  6551. # Check for GNU $ac_path_FGREP
  6552. case `"$ac_path_FGREP" --version 2>&1` in
  6553. *GNU*)
  6554. ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
  6555. *)
  6556. ac_count=0
  6557. $as_echo_n 0123456789 >"conftest.in"
  6558. while :
  6559. do
  6560. cat "conftest.in" "conftest.in" >"conftest.tmp"
  6561. mv "conftest.tmp" "conftest.in"
  6562. cp "conftest.in" "conftest.nl"
  6563. $as_echo 'FGREP' >> "conftest.nl"
  6564. "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
  6565. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  6566. as_fn_arith $ac_count + 1 && ac_count=$as_val
  6567. if test $ac_count -gt ${ac_path_FGREP_max-0}; then
  6568. # Best one so far, save it but keep looking for a better one
  6569. ac_cv_path_FGREP="$ac_path_FGREP"
  6570. ac_path_FGREP_max=$ac_count
  6571. fi
  6572. # 10*(2^10) chars as input seems more than enough
  6573. test $ac_count -gt 10 && break
  6574. done
  6575. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  6576. esac
  6577. $ac_path_FGREP_found && break 3
  6578. done
  6579. done
  6580. done
  6581. IFS=$as_save_IFS
  6582. if test -z "$ac_cv_path_FGREP"; then
  6583. as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
  6584. fi
  6585. else
  6586. ac_cv_path_FGREP=$FGREP
  6587. fi
  6588. fi
  6589. fi
  6590. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
  6591. $as_echo "$ac_cv_path_FGREP" >&6; }
  6592. FGREP="$ac_cv_path_FGREP"
  6593. test -z "$GREP" && GREP=grep
  6594. # Check whether --with-gnu-ld was given.
  6595. if test "${with_gnu_ld+set}" = set; then :
  6596. withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
  6597. else
  6598. with_gnu_ld=no
  6599. fi
  6600. ac_prog=ld
  6601. if test "$GCC" = yes; then
  6602. # Check if gcc -print-prog-name=ld gives a path.
  6603. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
  6604. $as_echo_n "checking for ld used by $CC... " >&6; }
  6605. case $host in
  6606. *-*-mingw*)
  6607. # gcc leaves a trailing carriage return which upsets mingw
  6608. ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
  6609. *)
  6610. ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
  6611. esac
  6612. case $ac_prog in
  6613. # Accept absolute paths.
  6614. [\\/]* | ?:[\\/]*)
  6615. re_direlt='/[^/][^/]*/\.\./'
  6616. # Canonicalize the pathname of ld
  6617. ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
  6618. while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
  6619. ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
  6620. done
  6621. test -z "$LD" && LD="$ac_prog"
  6622. ;;
  6623. "")
  6624. # If it fails, then pretend we aren't using GCC.
  6625. ac_prog=ld
  6626. ;;
  6627. *)
  6628. # If it is relative, then search for the first ld in PATH.
  6629. with_gnu_ld=unknown
  6630. ;;
  6631. esac
  6632. elif test "$with_gnu_ld" = yes; then
  6633. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
  6634. $as_echo_n "checking for GNU ld... " >&6; }
  6635. else
  6636. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
  6637. $as_echo_n "checking for non-GNU ld... " >&6; }
  6638. fi
  6639. if ${lt_cv_path_LD+:} false; then :
  6640. $as_echo_n "(cached) " >&6
  6641. else
  6642. if test -z "$LD"; then
  6643. lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  6644. for ac_dir in $PATH; do
  6645. IFS="$lt_save_ifs"
  6646. test -z "$ac_dir" && ac_dir=.
  6647. if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
  6648. lt_cv_path_LD="$ac_dir/$ac_prog"
  6649. # Check to see if the program is GNU ld. I'd rather use --version,
  6650. # but apparently some variants of GNU ld only accept -v.
  6651. # Break only if it was the GNU/non-GNU ld that we prefer.
  6652. case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
  6653. *GNU* | *'with BFD'*)
  6654. test "$with_gnu_ld" != no && break
  6655. ;;
  6656. *)
  6657. test "$with_gnu_ld" != yes && break
  6658. ;;
  6659. esac
  6660. fi
  6661. done
  6662. IFS="$lt_save_ifs"
  6663. else
  6664. lt_cv_path_LD="$LD" # Let the user override the test with a path.
  6665. fi
  6666. fi
  6667. LD="$lt_cv_path_LD"
  6668. if test -n "$LD"; then
  6669. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
  6670. $as_echo "$LD" >&6; }
  6671. else
  6672. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6673. $as_echo "no" >&6; }
  6674. fi
  6675. test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
  6676. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
  6677. $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
  6678. if ${lt_cv_prog_gnu_ld+:} false; then :
  6679. $as_echo_n "(cached) " >&6
  6680. else
  6681. # I'd rather use --version here, but apparently some GNU lds only accept -v.
  6682. case `$LD -v 2>&1 </dev/null` in
  6683. *GNU* | *'with BFD'*)
  6684. lt_cv_prog_gnu_ld=yes
  6685. ;;
  6686. *)
  6687. lt_cv_prog_gnu_ld=no
  6688. ;;
  6689. esac
  6690. fi
  6691. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
  6692. $as_echo "$lt_cv_prog_gnu_ld" >&6; }
  6693. with_gnu_ld=$lt_cv_prog_gnu_ld
  6694. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
  6695. $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
  6696. if ${lt_cv_path_NM+:} false; then :
  6697. $as_echo_n "(cached) " >&6
  6698. else
  6699. if test -n "$NM"; then
  6700. # Let the user override the test.
  6701. lt_cv_path_NM="$NM"
  6702. else
  6703. lt_nm_to_check="${ac_tool_prefix}nm"
  6704. if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
  6705. lt_nm_to_check="$lt_nm_to_check nm"
  6706. fi
  6707. for lt_tmp_nm in $lt_nm_to_check; do
  6708. lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  6709. for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
  6710. IFS="$lt_save_ifs"
  6711. test -z "$ac_dir" && ac_dir=.
  6712. tmp_nm="$ac_dir/$lt_tmp_nm"
  6713. if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
  6714. # Check to see if the nm accepts a BSD-compat flag.
  6715. # Adding the `sed 1q' prevents false positives on HP-UX, which says:
  6716. # nm: unknown option "B" ignored
  6717. # Tru64's nm complains that /dev/null is an invalid object file
  6718. case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
  6719. */dev/null* | *'Invalid file or object type'*)
  6720. lt_cv_path_NM="$tmp_nm -B"
  6721. break
  6722. ;;
  6723. *)
  6724. case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
  6725. */dev/null*)
  6726. lt_cv_path_NM="$tmp_nm -p"
  6727. break
  6728. ;;
  6729. *)
  6730. lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
  6731. continue # so that we can try to find one that supports BSD flags
  6732. ;;
  6733. esac
  6734. ;;
  6735. esac
  6736. fi
  6737. done
  6738. IFS="$lt_save_ifs"
  6739. done
  6740. : ${lt_cv_path_NM=no}
  6741. fi
  6742. fi
  6743. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
  6744. $as_echo "$lt_cv_path_NM" >&6; }
  6745. if test "$lt_cv_path_NM" != "no"; then
  6746. NM="$lt_cv_path_NM"
  6747. else
  6748. # Didn't find any BSD compatible name lister, look for dumpbin.
  6749. if test -n "$DUMPBIN"; then :
  6750. # Let the user override the test.
  6751. else
  6752. if test -n "$ac_tool_prefix"; then
  6753. for ac_prog in dumpbin "link -dump"
  6754. do
  6755. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  6756. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  6757. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6758. $as_echo_n "checking for $ac_word... " >&6; }
  6759. if ${ac_cv_prog_DUMPBIN+:} false; then :
  6760. $as_echo_n "(cached) " >&6
  6761. else
  6762. if test -n "$DUMPBIN"; then
  6763. ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
  6764. else
  6765. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6766. for as_dir in $PATH
  6767. do
  6768. IFS=$as_save_IFS
  6769. test -z "$as_dir" && as_dir=.
  6770. for ac_exec_ext in '' $ac_executable_extensions; do
  6771. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  6772. ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
  6773. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6774. break 2
  6775. fi
  6776. done
  6777. done
  6778. IFS=$as_save_IFS
  6779. fi
  6780. fi
  6781. DUMPBIN=$ac_cv_prog_DUMPBIN
  6782. if test -n "$DUMPBIN"; then
  6783. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
  6784. $as_echo "$DUMPBIN" >&6; }
  6785. else
  6786. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6787. $as_echo "no" >&6; }
  6788. fi
  6789. test -n "$DUMPBIN" && break
  6790. done
  6791. fi
  6792. if test -z "$DUMPBIN"; then
  6793. ac_ct_DUMPBIN=$DUMPBIN
  6794. for ac_prog in dumpbin "link -dump"
  6795. do
  6796. # Extract the first word of "$ac_prog", so it can be a program name with args.
  6797. set dummy $ac_prog; ac_word=$2
  6798. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6799. $as_echo_n "checking for $ac_word... " >&6; }
  6800. if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
  6801. $as_echo_n "(cached) " >&6
  6802. else
  6803. if test -n "$ac_ct_DUMPBIN"; then
  6804. ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
  6805. else
  6806. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6807. for as_dir in $PATH
  6808. do
  6809. IFS=$as_save_IFS
  6810. test -z "$as_dir" && as_dir=.
  6811. for ac_exec_ext in '' $ac_executable_extensions; do
  6812. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  6813. ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
  6814. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6815. break 2
  6816. fi
  6817. done
  6818. done
  6819. IFS=$as_save_IFS
  6820. fi
  6821. fi
  6822. ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
  6823. if test -n "$ac_ct_DUMPBIN"; then
  6824. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
  6825. $as_echo "$ac_ct_DUMPBIN" >&6; }
  6826. else
  6827. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6828. $as_echo "no" >&6; }
  6829. fi
  6830. test -n "$ac_ct_DUMPBIN" && break
  6831. done
  6832. if test "x$ac_ct_DUMPBIN" = x; then
  6833. DUMPBIN=":"
  6834. else
  6835. case $cross_compiling:$ac_tool_warned in
  6836. yes:)
  6837. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  6838. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  6839. ac_tool_warned=yes ;;
  6840. esac
  6841. DUMPBIN=$ac_ct_DUMPBIN
  6842. fi
  6843. fi
  6844. case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
  6845. *COFF*)
  6846. DUMPBIN="$DUMPBIN -symbols"
  6847. ;;
  6848. *)
  6849. DUMPBIN=:
  6850. ;;
  6851. esac
  6852. fi
  6853. if test "$DUMPBIN" != ":"; then
  6854. NM="$DUMPBIN"
  6855. fi
  6856. fi
  6857. test -z "$NM" && NM=nm
  6858. { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
  6859. $as_echo_n "checking the name lister ($NM) interface... " >&6; }
  6860. if ${lt_cv_nm_interface+:} false; then :
  6861. $as_echo_n "(cached) " >&6
  6862. else
  6863. lt_cv_nm_interface="BSD nm"
  6864. echo "int some_variable = 0;" > conftest.$ac_ext
  6865. (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
  6866. (eval "$ac_compile" 2>conftest.err)
  6867. cat conftest.err >&5
  6868. (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
  6869. (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
  6870. cat conftest.err >&5
  6871. (eval echo "\"\$as_me:$LINENO: output\"" >&5)
  6872. cat conftest.out >&5
  6873. if $GREP 'External.*some_variable' conftest.out > /dev/null; then
  6874. lt_cv_nm_interface="MS dumpbin"
  6875. fi
  6876. rm -f conftest*
  6877. fi
  6878. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
  6879. $as_echo "$lt_cv_nm_interface" >&6; }
  6880. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
  6881. $as_echo_n "checking whether ln -s works... " >&6; }
  6882. LN_S=$as_ln_s
  6883. if test "$LN_S" = "ln -s"; then
  6884. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  6885. $as_echo "yes" >&6; }
  6886. else
  6887. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
  6888. $as_echo "no, using $LN_S" >&6; }
  6889. fi
  6890. # find the maximum length of command line arguments
  6891. { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
  6892. $as_echo_n "checking the maximum length of command line arguments... " >&6; }
  6893. if ${lt_cv_sys_max_cmd_len+:} false; then :
  6894. $as_echo_n "(cached) " >&6
  6895. else
  6896. i=0
  6897. teststring="ABCD"
  6898. case $build_os in
  6899. msdosdjgpp*)
  6900. # On DJGPP, this test can blow up pretty badly due to problems in libc
  6901. # (any single argument exceeding 2000 bytes causes a buffer overrun
  6902. # during glob expansion). Even if it were fixed, the result of this
  6903. # check would be larger than it should be.
  6904. lt_cv_sys_max_cmd_len=12288; # 12K is about right
  6905. ;;
  6906. gnu*)
  6907. # Under GNU Hurd, this test is not required because there is
  6908. # no limit to the length of command line arguments.
  6909. # Libtool will interpret -1 as no limit whatsoever
  6910. lt_cv_sys_max_cmd_len=-1;
  6911. ;;
  6912. cygwin* | mingw* | cegcc*)
  6913. # On Win9x/ME, this test blows up -- it succeeds, but takes
  6914. # about 5 minutes as the teststring grows exponentially.
  6915. # Worse, since 9x/ME are not pre-emptively multitasking,
  6916. # you end up with a "frozen" computer, even though with patience
  6917. # the test eventually succeeds (with a max line length of 256k).
  6918. # Instead, let's just punt: use the minimum linelength reported by
  6919. # all of the supported platforms: 8192 (on NT/2K/XP).
  6920. lt_cv_sys_max_cmd_len=8192;
  6921. ;;
  6922. mint*)
  6923. # On MiNT this can take a long time and run out of memory.
  6924. lt_cv_sys_max_cmd_len=8192;
  6925. ;;
  6926. amigaos*)
  6927. # On AmigaOS with pdksh, this test takes hours, literally.
  6928. # So we just punt and use a minimum line length of 8192.
  6929. lt_cv_sys_max_cmd_len=8192;
  6930. ;;
  6931. netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
  6932. # This has been around since 386BSD, at least. Likely further.
  6933. if test -x /sbin/sysctl; then
  6934. lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
  6935. elif test -x /usr/sbin/sysctl; then
  6936. lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
  6937. else
  6938. lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
  6939. fi
  6940. # And add a safety zone
  6941. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
  6942. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
  6943. ;;
  6944. interix*)
  6945. # We know the value 262144 and hardcode it with a safety zone (like BSD)
  6946. lt_cv_sys_max_cmd_len=196608
  6947. ;;
  6948. os2*)
  6949. # The test takes a long time on OS/2.
  6950. lt_cv_sys_max_cmd_len=8192
  6951. ;;
  6952. osf*)
  6953. # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
  6954. # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
  6955. # nice to cause kernel panics so lets avoid the loop below.
  6956. # First set a reasonable default.
  6957. lt_cv_sys_max_cmd_len=16384
  6958. #
  6959. if test -x /sbin/sysconfig; then
  6960. case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
  6961. *1*) lt_cv_sys_max_cmd_len=-1 ;;
  6962. esac
  6963. fi
  6964. ;;
  6965. sco3.2v5*)
  6966. lt_cv_sys_max_cmd_len=102400
  6967. ;;
  6968. sysv5* | sco5v6* | sysv4.2uw2*)
  6969. kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
  6970. if test -n "$kargmax"; then
  6971. lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
  6972. else
  6973. lt_cv_sys_max_cmd_len=32768
  6974. fi
  6975. ;;
  6976. *)
  6977. lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
  6978. if test -n "$lt_cv_sys_max_cmd_len"; then
  6979. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
  6980. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
  6981. else
  6982. # Make teststring a little bigger before we do anything with it.
  6983. # a 1K string should be a reasonable start.
  6984. for i in 1 2 3 4 5 6 7 8 ; do
  6985. teststring=$teststring$teststring
  6986. done
  6987. SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
  6988. # If test is not a shell built-in, we'll probably end up computing a
  6989. # maximum length that is only half of the actual maximum length, but
  6990. # we can't tell.
  6991. while { test "X"`env echo "$teststring$teststring" 2>/dev/null` \
  6992. = "X$teststring$teststring"; } >/dev/null 2>&1 &&
  6993. test $i != 17 # 1/2 MB should be enough
  6994. do
  6995. i=`expr $i + 1`
  6996. teststring=$teststring$teststring
  6997. done
  6998. # Only check the string length outside the loop.
  6999. lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
  7000. teststring=
  7001. # Add a significant safety factor because C++ compilers can tack on
  7002. # massive amounts of additional arguments before passing them to the
  7003. # linker. It appears as though 1/2 is a usable value.
  7004. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
  7005. fi
  7006. ;;
  7007. esac
  7008. fi
  7009. if test -n $lt_cv_sys_max_cmd_len ; then
  7010. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
  7011. $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
  7012. else
  7013. { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
  7014. $as_echo "none" >&6; }
  7015. fi
  7016. max_cmd_len=$lt_cv_sys_max_cmd_len
  7017. : ${CP="cp -f"}
  7018. : ${MV="mv -f"}
  7019. : ${RM="rm -f"}
  7020. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
  7021. $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
  7022. # Try some XSI features
  7023. xsi_shell=no
  7024. ( _lt_dummy="a/b/c"
  7025. test "${_lt_dummy##*/},${_lt_dummy%/*},${_lt_dummy#??}"${_lt_dummy%"$_lt_dummy"}, \
  7026. = c,a/b,b/c, \
  7027. && eval 'test $(( 1 + 1 )) -eq 2 \
  7028. && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
  7029. && xsi_shell=yes
  7030. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
  7031. $as_echo "$xsi_shell" >&6; }
  7032. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
  7033. $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
  7034. lt_shell_append=no
  7035. ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
  7036. >/dev/null 2>&1 \
  7037. && lt_shell_append=yes
  7038. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
  7039. $as_echo "$lt_shell_append" >&6; }
  7040. if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
  7041. lt_unset=unset
  7042. else
  7043. lt_unset=false
  7044. fi
  7045. # test EBCDIC or ASCII
  7046. case `echo X|tr X '\101'` in
  7047. A) # ASCII based system
  7048. # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
  7049. lt_SP2NL='tr \040 \012'
  7050. lt_NL2SP='tr \015\012 \040\040'
  7051. ;;
  7052. *) # EBCDIC based system
  7053. lt_SP2NL='tr \100 \n'
  7054. lt_NL2SP='tr \r\n \100\100'
  7055. ;;
  7056. esac
  7057. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
  7058. $as_echo_n "checking how to convert $build file names to $host format... " >&6; }
  7059. if ${lt_cv_to_host_file_cmd+:} false; then :
  7060. $as_echo_n "(cached) " >&6
  7061. else
  7062. case $host in
  7063. *-*-mingw* )
  7064. case $build in
  7065. *-*-mingw* ) # actually msys
  7066. lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
  7067. ;;
  7068. *-*-cygwin* )
  7069. lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
  7070. ;;
  7071. * ) # otherwise, assume *nix
  7072. lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
  7073. ;;
  7074. esac
  7075. ;;
  7076. *-*-cygwin* )
  7077. case $build in
  7078. *-*-mingw* ) # actually msys
  7079. lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
  7080. ;;
  7081. *-*-cygwin* )
  7082. lt_cv_to_host_file_cmd=func_convert_file_noop
  7083. ;;
  7084. * ) # otherwise, assume *nix
  7085. lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
  7086. ;;
  7087. esac
  7088. ;;
  7089. * ) # unhandled hosts (and "normal" native builds)
  7090. lt_cv_to_host_file_cmd=func_convert_file_noop
  7091. ;;
  7092. esac
  7093. fi
  7094. to_host_file_cmd=$lt_cv_to_host_file_cmd
  7095. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
  7096. $as_echo "$lt_cv_to_host_file_cmd" >&6; }
  7097. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
  7098. $as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
  7099. if ${lt_cv_to_tool_file_cmd+:} false; then :
  7100. $as_echo_n "(cached) " >&6
  7101. else
  7102. #assume ordinary cross tools, or native build.
  7103. lt_cv_to_tool_file_cmd=func_convert_file_noop
  7104. case $host in
  7105. *-*-mingw* )
  7106. case $build in
  7107. *-*-mingw* ) # actually msys
  7108. lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
  7109. ;;
  7110. esac
  7111. ;;
  7112. esac
  7113. fi
  7114. to_tool_file_cmd=$lt_cv_to_tool_file_cmd
  7115. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
  7116. $as_echo "$lt_cv_to_tool_file_cmd" >&6; }
  7117. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
  7118. $as_echo_n "checking for $LD option to reload object files... " >&6; }
  7119. if ${lt_cv_ld_reload_flag+:} false; then :
  7120. $as_echo_n "(cached) " >&6
  7121. else
  7122. lt_cv_ld_reload_flag='-r'
  7123. fi
  7124. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
  7125. $as_echo "$lt_cv_ld_reload_flag" >&6; }
  7126. reload_flag=$lt_cv_ld_reload_flag
  7127. case $reload_flag in
  7128. "" | " "*) ;;
  7129. *) reload_flag=" $reload_flag" ;;
  7130. esac
  7131. reload_cmds='$LD$reload_flag -o $output$reload_objs'
  7132. case $host_os in
  7133. cygwin* | mingw* | pw32* | cegcc*)
  7134. if test "$GCC" != yes; then
  7135. reload_cmds=false
  7136. fi
  7137. ;;
  7138. darwin*)
  7139. if test "$GCC" = yes; then
  7140. reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
  7141. else
  7142. reload_cmds='$LD$reload_flag -o $output$reload_objs'
  7143. fi
  7144. ;;
  7145. esac
  7146. if test -n "$ac_tool_prefix"; then
  7147. # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
  7148. set dummy ${ac_tool_prefix}objdump; ac_word=$2
  7149. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  7150. $as_echo_n "checking for $ac_word... " >&6; }
  7151. if ${ac_cv_prog_OBJDUMP+:} false; then :
  7152. $as_echo_n "(cached) " >&6
  7153. else
  7154. if test -n "$OBJDUMP"; then
  7155. ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
  7156. else
  7157. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  7158. for as_dir in $PATH
  7159. do
  7160. IFS=$as_save_IFS
  7161. test -z "$as_dir" && as_dir=.
  7162. for ac_exec_ext in '' $ac_executable_extensions; do
  7163. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  7164. ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
  7165. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  7166. break 2
  7167. fi
  7168. done
  7169. done
  7170. IFS=$as_save_IFS
  7171. fi
  7172. fi
  7173. OBJDUMP=$ac_cv_prog_OBJDUMP
  7174. if test -n "$OBJDUMP"; then
  7175. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
  7176. $as_echo "$OBJDUMP" >&6; }
  7177. else
  7178. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7179. $as_echo "no" >&6; }
  7180. fi
  7181. fi
  7182. if test -z "$ac_cv_prog_OBJDUMP"; then
  7183. ac_ct_OBJDUMP=$OBJDUMP
  7184. # Extract the first word of "objdump", so it can be a program name with args.
  7185. set dummy objdump; ac_word=$2
  7186. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  7187. $as_echo_n "checking for $ac_word... " >&6; }
  7188. if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
  7189. $as_echo_n "(cached) " >&6
  7190. else
  7191. if test -n "$ac_ct_OBJDUMP"; then
  7192. ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
  7193. else
  7194. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  7195. for as_dir in $PATH
  7196. do
  7197. IFS=$as_save_IFS
  7198. test -z "$as_dir" && as_dir=.
  7199. for ac_exec_ext in '' $ac_executable_extensions; do
  7200. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  7201. ac_cv_prog_ac_ct_OBJDUMP="objdump"
  7202. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  7203. break 2
  7204. fi
  7205. done
  7206. done
  7207. IFS=$as_save_IFS
  7208. fi
  7209. fi
  7210. ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
  7211. if test -n "$ac_ct_OBJDUMP"; then
  7212. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
  7213. $as_echo "$ac_ct_OBJDUMP" >&6; }
  7214. else
  7215. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7216. $as_echo "no" >&6; }
  7217. fi
  7218. if test "x$ac_ct_OBJDUMP" = x; then
  7219. OBJDUMP="false"
  7220. else
  7221. case $cross_compiling:$ac_tool_warned in
  7222. yes:)
  7223. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  7224. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  7225. ac_tool_warned=yes ;;
  7226. esac
  7227. OBJDUMP=$ac_ct_OBJDUMP
  7228. fi
  7229. else
  7230. OBJDUMP="$ac_cv_prog_OBJDUMP"
  7231. fi
  7232. test -z "$OBJDUMP" && OBJDUMP=objdump
  7233. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
  7234. $as_echo_n "checking how to recognize dependent libraries... " >&6; }
  7235. if ${lt_cv_deplibs_check_method+:} false; then :
  7236. $as_echo_n "(cached) " >&6
  7237. else
  7238. lt_cv_file_magic_cmd='$MAGIC_CMD'
  7239. lt_cv_file_magic_test_file=
  7240. lt_cv_deplibs_check_method='unknown'
  7241. # Need to set the preceding variable on all platforms that support
  7242. # interlibrary dependencies.
  7243. # 'none' -- dependencies not supported.
  7244. # `unknown' -- same as none, but documents that we really don't know.
  7245. # 'pass_all' -- all dependencies passed with no checks.
  7246. # 'test_compile' -- check by making test program.
  7247. # 'file_magic [[regex]]' -- check by looking for files in library path
  7248. # which responds to the $file_magic_cmd with a given extended regex.
  7249. # If you have `file' or equivalent on your system and you're not sure
  7250. # whether `pass_all' will *always* work, you probably want this one.
  7251. case $host_os in
  7252. aix[4-9]*)
  7253. lt_cv_deplibs_check_method=pass_all
  7254. ;;
  7255. beos*)
  7256. lt_cv_deplibs_check_method=pass_all
  7257. ;;
  7258. bsdi[45]*)
  7259. lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
  7260. lt_cv_file_magic_cmd='/usr/bin/file -L'
  7261. lt_cv_file_magic_test_file=/shlib/libc.so
  7262. ;;
  7263. cygwin*)
  7264. # func_win32_libid is a shell function defined in ltmain.sh
  7265. lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
  7266. lt_cv_file_magic_cmd='func_win32_libid'
  7267. ;;
  7268. mingw* | pw32*)
  7269. # Base MSYS/MinGW do not provide the 'file' command needed by
  7270. # func_win32_libid shell function, so use a weaker test based on 'objdump',
  7271. # unless we find 'file', for example because we are cross-compiling.
  7272. # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
  7273. if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
  7274. lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
  7275. lt_cv_file_magic_cmd='func_win32_libid'
  7276. else
  7277. # Keep this pattern in sync with the one in func_win32_libid.
  7278. lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
  7279. lt_cv_file_magic_cmd='$OBJDUMP -f'
  7280. fi
  7281. ;;
  7282. cegcc*)
  7283. # use the weaker test based on 'objdump'. See mingw*.
  7284. lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
  7285. lt_cv_file_magic_cmd='$OBJDUMP -f'
  7286. ;;
  7287. darwin* | rhapsody*)
  7288. lt_cv_deplibs_check_method=pass_all
  7289. ;;
  7290. freebsd* | dragonfly*)
  7291. if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
  7292. case $host_cpu in
  7293. i*86 )
  7294. # Not sure whether the presence of OpenBSD here was a mistake.
  7295. # Let's accept both of them until this is cleared up.
  7296. lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
  7297. lt_cv_file_magic_cmd=/usr/bin/file
  7298. lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
  7299. ;;
  7300. esac
  7301. else
  7302. lt_cv_deplibs_check_method=pass_all
  7303. fi
  7304. ;;
  7305. gnu*)
  7306. lt_cv_deplibs_check_method=pass_all
  7307. ;;
  7308. haiku*)
  7309. lt_cv_deplibs_check_method=pass_all
  7310. ;;
  7311. hpux10.20* | hpux11*)
  7312. lt_cv_file_magic_cmd=/usr/bin/file
  7313. case $host_cpu in
  7314. ia64*)
  7315. lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
  7316. lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
  7317. ;;
  7318. hppa*64*)
  7319. 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]'
  7320. lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
  7321. ;;
  7322. *)
  7323. lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
  7324. lt_cv_file_magic_test_file=/usr/lib/libc.sl
  7325. ;;
  7326. esac
  7327. ;;
  7328. interix[3-9]*)
  7329. # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
  7330. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
  7331. ;;
  7332. irix5* | irix6* | nonstopux*)
  7333. case $LD in
  7334. *-32|*"-32 ") libmagic=32-bit;;
  7335. *-n32|*"-n32 ") libmagic=N32;;
  7336. *-64|*"-64 ") libmagic=64-bit;;
  7337. *) libmagic=never-match;;
  7338. esac
  7339. lt_cv_deplibs_check_method=pass_all
  7340. ;;
  7341. # This must be glibc/ELF.
  7342. linux* | k*bsd*-gnu | kopensolaris*-gnu)
  7343. lt_cv_deplibs_check_method=pass_all
  7344. ;;
  7345. netbsd*)
  7346. if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
  7347. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
  7348. else
  7349. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
  7350. fi
  7351. ;;
  7352. newos6*)
  7353. lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
  7354. lt_cv_file_magic_cmd=/usr/bin/file
  7355. lt_cv_file_magic_test_file=/usr/lib/libnls.so
  7356. ;;
  7357. *nto* | *qnx*)
  7358. lt_cv_deplibs_check_method=pass_all
  7359. ;;
  7360. openbsd*)
  7361. if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  7362. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
  7363. else
  7364. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
  7365. fi
  7366. ;;
  7367. osf3* | osf4* | osf5*)
  7368. lt_cv_deplibs_check_method=pass_all
  7369. ;;
  7370. rdos*)
  7371. lt_cv_deplibs_check_method=pass_all
  7372. ;;
  7373. solaris*)
  7374. lt_cv_deplibs_check_method=pass_all
  7375. ;;
  7376. sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
  7377. lt_cv_deplibs_check_method=pass_all
  7378. ;;
  7379. sysv4 | sysv4.3*)
  7380. case $host_vendor in
  7381. motorola)
  7382. 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]'
  7383. lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
  7384. ;;
  7385. ncr)
  7386. lt_cv_deplibs_check_method=pass_all
  7387. ;;
  7388. sequent)
  7389. lt_cv_file_magic_cmd='/bin/file'
  7390. lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
  7391. ;;
  7392. sni)
  7393. lt_cv_file_magic_cmd='/bin/file'
  7394. lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
  7395. lt_cv_file_magic_test_file=/lib/libc.so
  7396. ;;
  7397. siemens)
  7398. lt_cv_deplibs_check_method=pass_all
  7399. ;;
  7400. pc)
  7401. lt_cv_deplibs_check_method=pass_all
  7402. ;;
  7403. esac
  7404. ;;
  7405. tpf*)
  7406. lt_cv_deplibs_check_method=pass_all
  7407. ;;
  7408. esac
  7409. fi
  7410. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
  7411. $as_echo "$lt_cv_deplibs_check_method" >&6; }
  7412. file_magic_glob=
  7413. want_nocaseglob=no
  7414. if test "$build" = "$host"; then
  7415. case $host_os in
  7416. mingw* | pw32*)
  7417. if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
  7418. want_nocaseglob=yes
  7419. else
  7420. file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
  7421. fi
  7422. ;;
  7423. esac
  7424. fi
  7425. file_magic_cmd=$lt_cv_file_magic_cmd
  7426. deplibs_check_method=$lt_cv_deplibs_check_method
  7427. test -z "$deplibs_check_method" && deplibs_check_method=unknown
  7428. if test -n "$ac_tool_prefix"; then
  7429. # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
  7430. set dummy ${ac_tool_prefix}dlltool; ac_word=$2
  7431. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  7432. $as_echo_n "checking for $ac_word... " >&6; }
  7433. if ${ac_cv_prog_DLLTOOL+:} false; then :
  7434. $as_echo_n "(cached) " >&6
  7435. else
  7436. if test -n "$DLLTOOL"; then
  7437. ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
  7438. else
  7439. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  7440. for as_dir in $PATH
  7441. do
  7442. IFS=$as_save_IFS
  7443. test -z "$as_dir" && as_dir=.
  7444. for ac_exec_ext in '' $ac_executable_extensions; do
  7445. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  7446. ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
  7447. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  7448. break 2
  7449. fi
  7450. done
  7451. done
  7452. IFS=$as_save_IFS
  7453. fi
  7454. fi
  7455. DLLTOOL=$ac_cv_prog_DLLTOOL
  7456. if test -n "$DLLTOOL"; then
  7457. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
  7458. $as_echo "$DLLTOOL" >&6; }
  7459. else
  7460. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7461. $as_echo "no" >&6; }
  7462. fi
  7463. fi
  7464. if test -z "$ac_cv_prog_DLLTOOL"; then
  7465. ac_ct_DLLTOOL=$DLLTOOL
  7466. # Extract the first word of "dlltool", so it can be a program name with args.
  7467. set dummy dlltool; ac_word=$2
  7468. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  7469. $as_echo_n "checking for $ac_word... " >&6; }
  7470. if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
  7471. $as_echo_n "(cached) " >&6
  7472. else
  7473. if test -n "$ac_ct_DLLTOOL"; then
  7474. ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
  7475. else
  7476. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  7477. for as_dir in $PATH
  7478. do
  7479. IFS=$as_save_IFS
  7480. test -z "$as_dir" && as_dir=.
  7481. for ac_exec_ext in '' $ac_executable_extensions; do
  7482. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  7483. ac_cv_prog_ac_ct_DLLTOOL="dlltool"
  7484. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  7485. break 2
  7486. fi
  7487. done
  7488. done
  7489. IFS=$as_save_IFS
  7490. fi
  7491. fi
  7492. ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
  7493. if test -n "$ac_ct_DLLTOOL"; then
  7494. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
  7495. $as_echo "$ac_ct_DLLTOOL" >&6; }
  7496. else
  7497. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7498. $as_echo "no" >&6; }
  7499. fi
  7500. if test "x$ac_ct_DLLTOOL" = x; then
  7501. DLLTOOL="false"
  7502. else
  7503. case $cross_compiling:$ac_tool_warned in
  7504. yes:)
  7505. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  7506. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  7507. ac_tool_warned=yes ;;
  7508. esac
  7509. DLLTOOL=$ac_ct_DLLTOOL
  7510. fi
  7511. else
  7512. DLLTOOL="$ac_cv_prog_DLLTOOL"
  7513. fi
  7514. test -z "$DLLTOOL" && DLLTOOL=dlltool
  7515. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
  7516. $as_echo_n "checking how to associate runtime and link libraries... " >&6; }
  7517. if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
  7518. $as_echo_n "(cached) " >&6
  7519. else
  7520. lt_cv_sharedlib_from_linklib_cmd='unknown'
  7521. case $host_os in
  7522. cygwin* | mingw* | pw32* | cegcc*)
  7523. # two different shell functions defined in ltmain.sh
  7524. # decide which to use based on capabilities of $DLLTOOL
  7525. case `$DLLTOOL --help 2>&1` in
  7526. *--identify-strict*)
  7527. lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
  7528. ;;
  7529. *)
  7530. lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
  7531. ;;
  7532. esac
  7533. ;;
  7534. *)
  7535. # fallback: assume linklib IS sharedlib
  7536. lt_cv_sharedlib_from_linklib_cmd="$ECHO"
  7537. ;;
  7538. esac
  7539. fi
  7540. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
  7541. $as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
  7542. sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
  7543. test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
  7544. if test -n "$ac_tool_prefix"; then
  7545. for ac_prog in ar
  7546. do
  7547. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  7548. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  7549. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  7550. $as_echo_n "checking for $ac_word... " >&6; }
  7551. if ${ac_cv_prog_AR+:} false; then :
  7552. $as_echo_n "(cached) " >&6
  7553. else
  7554. if test -n "$AR"; then
  7555. ac_cv_prog_AR="$AR" # Let the user override the test.
  7556. else
  7557. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  7558. for as_dir in $PATH
  7559. do
  7560. IFS=$as_save_IFS
  7561. test -z "$as_dir" && as_dir=.
  7562. for ac_exec_ext in '' $ac_executable_extensions; do
  7563. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  7564. ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
  7565. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  7566. break 2
  7567. fi
  7568. done
  7569. done
  7570. IFS=$as_save_IFS
  7571. fi
  7572. fi
  7573. AR=$ac_cv_prog_AR
  7574. if test -n "$AR"; then
  7575. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
  7576. $as_echo "$AR" >&6; }
  7577. else
  7578. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7579. $as_echo "no" >&6; }
  7580. fi
  7581. test -n "$AR" && break
  7582. done
  7583. fi
  7584. if test -z "$AR"; then
  7585. ac_ct_AR=$AR
  7586. for ac_prog in ar
  7587. do
  7588. # Extract the first word of "$ac_prog", so it can be a program name with args.
  7589. set dummy $ac_prog; ac_word=$2
  7590. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  7591. $as_echo_n "checking for $ac_word... " >&6; }
  7592. if ${ac_cv_prog_ac_ct_AR+:} false; then :
  7593. $as_echo_n "(cached) " >&6
  7594. else
  7595. if test -n "$ac_ct_AR"; then
  7596. ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
  7597. else
  7598. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  7599. for as_dir in $PATH
  7600. do
  7601. IFS=$as_save_IFS
  7602. test -z "$as_dir" && as_dir=.
  7603. for ac_exec_ext in '' $ac_executable_extensions; do
  7604. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  7605. ac_cv_prog_ac_ct_AR="$ac_prog"
  7606. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  7607. break 2
  7608. fi
  7609. done
  7610. done
  7611. IFS=$as_save_IFS
  7612. fi
  7613. fi
  7614. ac_ct_AR=$ac_cv_prog_ac_ct_AR
  7615. if test -n "$ac_ct_AR"; then
  7616. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
  7617. $as_echo "$ac_ct_AR" >&6; }
  7618. else
  7619. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7620. $as_echo "no" >&6; }
  7621. fi
  7622. test -n "$ac_ct_AR" && break
  7623. done
  7624. if test "x$ac_ct_AR" = x; then
  7625. AR="false"
  7626. else
  7627. case $cross_compiling:$ac_tool_warned in
  7628. yes:)
  7629. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  7630. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  7631. ac_tool_warned=yes ;;
  7632. esac
  7633. AR=$ac_ct_AR
  7634. fi
  7635. fi
  7636. : ${AR=ar}
  7637. : ${AR_FLAGS=cru}
  7638. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
  7639. $as_echo_n "checking for archiver @FILE support... " >&6; }
  7640. if ${lt_cv_ar_at_file+:} false; then :
  7641. $as_echo_n "(cached) " >&6
  7642. else
  7643. lt_cv_ar_at_file=no
  7644. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7645. /* end confdefs.h. */
  7646. int
  7647. main ()
  7648. {
  7649. ;
  7650. return 0;
  7651. }
  7652. _ACEOF
  7653. if ac_fn_c_try_compile "$LINENO"; then :
  7654. echo conftest.$ac_objext > conftest.lst
  7655. lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
  7656. { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
  7657. (eval $lt_ar_try) 2>&5
  7658. ac_status=$?
  7659. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  7660. test $ac_status = 0; }
  7661. if test "$ac_status" -eq 0; then
  7662. # Ensure the archiver fails upon bogus file names.
  7663. rm -f conftest.$ac_objext libconftest.a
  7664. { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
  7665. (eval $lt_ar_try) 2>&5
  7666. ac_status=$?
  7667. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  7668. test $ac_status = 0; }
  7669. if test "$ac_status" -ne 0; then
  7670. lt_cv_ar_at_file=@
  7671. fi
  7672. fi
  7673. rm -f conftest.* libconftest.a
  7674. fi
  7675. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  7676. fi
  7677. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
  7678. $as_echo "$lt_cv_ar_at_file" >&6; }
  7679. if test "x$lt_cv_ar_at_file" = xno; then
  7680. archiver_list_spec=
  7681. else
  7682. archiver_list_spec=$lt_cv_ar_at_file
  7683. fi
  7684. if test -n "$ac_tool_prefix"; then
  7685. # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
  7686. set dummy ${ac_tool_prefix}strip; ac_word=$2
  7687. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  7688. $as_echo_n "checking for $ac_word... " >&6; }
  7689. if ${ac_cv_prog_STRIP+:} false; then :
  7690. $as_echo_n "(cached) " >&6
  7691. else
  7692. if test -n "$STRIP"; then
  7693. ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
  7694. else
  7695. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  7696. for as_dir in $PATH
  7697. do
  7698. IFS=$as_save_IFS
  7699. test -z "$as_dir" && as_dir=.
  7700. for ac_exec_ext in '' $ac_executable_extensions; do
  7701. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  7702. ac_cv_prog_STRIP="${ac_tool_prefix}strip"
  7703. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  7704. break 2
  7705. fi
  7706. done
  7707. done
  7708. IFS=$as_save_IFS
  7709. fi
  7710. fi
  7711. STRIP=$ac_cv_prog_STRIP
  7712. if test -n "$STRIP"; then
  7713. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
  7714. $as_echo "$STRIP" >&6; }
  7715. else
  7716. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7717. $as_echo "no" >&6; }
  7718. fi
  7719. fi
  7720. if test -z "$ac_cv_prog_STRIP"; then
  7721. ac_ct_STRIP=$STRIP
  7722. # Extract the first word of "strip", so it can be a program name with args.
  7723. set dummy strip; ac_word=$2
  7724. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  7725. $as_echo_n "checking for $ac_word... " >&6; }
  7726. if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
  7727. $as_echo_n "(cached) " >&6
  7728. else
  7729. if test -n "$ac_ct_STRIP"; then
  7730. ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
  7731. else
  7732. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  7733. for as_dir in $PATH
  7734. do
  7735. IFS=$as_save_IFS
  7736. test -z "$as_dir" && as_dir=.
  7737. for ac_exec_ext in '' $ac_executable_extensions; do
  7738. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  7739. ac_cv_prog_ac_ct_STRIP="strip"
  7740. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  7741. break 2
  7742. fi
  7743. done
  7744. done
  7745. IFS=$as_save_IFS
  7746. fi
  7747. fi
  7748. ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
  7749. if test -n "$ac_ct_STRIP"; then
  7750. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
  7751. $as_echo "$ac_ct_STRIP" >&6; }
  7752. else
  7753. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7754. $as_echo "no" >&6; }
  7755. fi
  7756. if test "x$ac_ct_STRIP" = x; then
  7757. STRIP=":"
  7758. else
  7759. case $cross_compiling:$ac_tool_warned in
  7760. yes:)
  7761. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  7762. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  7763. ac_tool_warned=yes ;;
  7764. esac
  7765. STRIP=$ac_ct_STRIP
  7766. fi
  7767. else
  7768. STRIP="$ac_cv_prog_STRIP"
  7769. fi
  7770. test -z "$STRIP" && STRIP=:
  7771. if test -n "$ac_tool_prefix"; then
  7772. # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
  7773. set dummy ${ac_tool_prefix}ranlib; ac_word=$2
  7774. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  7775. $as_echo_n "checking for $ac_word... " >&6; }
  7776. if ${ac_cv_prog_RANLIB+:} false; then :
  7777. $as_echo_n "(cached) " >&6
  7778. else
  7779. if test -n "$RANLIB"; then
  7780. ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
  7781. else
  7782. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  7783. for as_dir in $PATH
  7784. do
  7785. IFS=$as_save_IFS
  7786. test -z "$as_dir" && as_dir=.
  7787. for ac_exec_ext in '' $ac_executable_extensions; do
  7788. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  7789. ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
  7790. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  7791. break 2
  7792. fi
  7793. done
  7794. done
  7795. IFS=$as_save_IFS
  7796. fi
  7797. fi
  7798. RANLIB=$ac_cv_prog_RANLIB
  7799. if test -n "$RANLIB"; then
  7800. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
  7801. $as_echo "$RANLIB" >&6; }
  7802. else
  7803. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7804. $as_echo "no" >&6; }
  7805. fi
  7806. fi
  7807. if test -z "$ac_cv_prog_RANLIB"; then
  7808. ac_ct_RANLIB=$RANLIB
  7809. # Extract the first word of "ranlib", so it can be a program name with args.
  7810. set dummy ranlib; ac_word=$2
  7811. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  7812. $as_echo_n "checking for $ac_word... " >&6; }
  7813. if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
  7814. $as_echo_n "(cached) " >&6
  7815. else
  7816. if test -n "$ac_ct_RANLIB"; then
  7817. ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
  7818. else
  7819. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  7820. for as_dir in $PATH
  7821. do
  7822. IFS=$as_save_IFS
  7823. test -z "$as_dir" && as_dir=.
  7824. for ac_exec_ext in '' $ac_executable_extensions; do
  7825. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  7826. ac_cv_prog_ac_ct_RANLIB="ranlib"
  7827. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  7828. break 2
  7829. fi
  7830. done
  7831. done
  7832. IFS=$as_save_IFS
  7833. fi
  7834. fi
  7835. ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
  7836. if test -n "$ac_ct_RANLIB"; then
  7837. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
  7838. $as_echo "$ac_ct_RANLIB" >&6; }
  7839. else
  7840. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7841. $as_echo "no" >&6; }
  7842. fi
  7843. if test "x$ac_ct_RANLIB" = x; then
  7844. RANLIB=":"
  7845. else
  7846. case $cross_compiling:$ac_tool_warned in
  7847. yes:)
  7848. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  7849. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  7850. ac_tool_warned=yes ;;
  7851. esac
  7852. RANLIB=$ac_ct_RANLIB
  7853. fi
  7854. else
  7855. RANLIB="$ac_cv_prog_RANLIB"
  7856. fi
  7857. test -z "$RANLIB" && RANLIB=:
  7858. # Determine commands to create old-style static archives.
  7859. old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
  7860. old_postinstall_cmds='chmod 644 $oldlib'
  7861. old_postuninstall_cmds=
  7862. if test -n "$RANLIB"; then
  7863. case $host_os in
  7864. openbsd*)
  7865. old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
  7866. ;;
  7867. *)
  7868. old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
  7869. ;;
  7870. esac
  7871. old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
  7872. fi
  7873. case $host_os in
  7874. darwin*)
  7875. lock_old_archive_extraction=yes ;;
  7876. *)
  7877. lock_old_archive_extraction=no ;;
  7878. esac
  7879. for ac_prog in gawk mawk nawk awk
  7880. do
  7881. # Extract the first word of "$ac_prog", so it can be a program name with args.
  7882. set dummy $ac_prog; ac_word=$2
  7883. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  7884. $as_echo_n "checking for $ac_word... " >&6; }
  7885. if ${ac_cv_prog_AWK+:} false; then :
  7886. $as_echo_n "(cached) " >&6
  7887. else
  7888. if test -n "$AWK"; then
  7889. ac_cv_prog_AWK="$AWK" # Let the user override the test.
  7890. else
  7891. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  7892. for as_dir in $PATH
  7893. do
  7894. IFS=$as_save_IFS
  7895. test -z "$as_dir" && as_dir=.
  7896. for ac_exec_ext in '' $ac_executable_extensions; do
  7897. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  7898. ac_cv_prog_AWK="$ac_prog"
  7899. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  7900. break 2
  7901. fi
  7902. done
  7903. done
  7904. IFS=$as_save_IFS
  7905. fi
  7906. fi
  7907. AWK=$ac_cv_prog_AWK
  7908. if test -n "$AWK"; then
  7909. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
  7910. $as_echo "$AWK" >&6; }
  7911. else
  7912. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7913. $as_echo "no" >&6; }
  7914. fi
  7915. test -n "$AWK" && break
  7916. done
  7917. # If no C compiler was specified, use CC.
  7918. LTCC=${LTCC-"$CC"}
  7919. # If no C compiler flags were specified, use CFLAGS.
  7920. LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
  7921. # Allow CC to be a program name with arguments.
  7922. compiler=$CC
  7923. # Check for command to grab the raw symbol name followed by C symbol from nm.
  7924. { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
  7925. $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
  7926. if ${lt_cv_sys_global_symbol_pipe+:} false; then :
  7927. $as_echo_n "(cached) " >&6
  7928. else
  7929. # These are sane defaults that work on at least a few old systems.
  7930. # [They come from Ultrix. What could be older than Ultrix?!! ;)]
  7931. # Character class describing NM global symbol codes.
  7932. symcode='[BCDEGRST]'
  7933. # Regexp to match symbols that can be accessed directly from C.
  7934. sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
  7935. # Define system-specific variables.
  7936. case $host_os in
  7937. aix*)
  7938. symcode='[BCDT]'
  7939. ;;
  7940. cygwin* | mingw* | pw32* | cegcc*)
  7941. symcode='[ABCDGISTW]'
  7942. ;;
  7943. hpux*)
  7944. if test "$host_cpu" = ia64; then
  7945. symcode='[ABCDEGRST]'
  7946. fi
  7947. ;;
  7948. irix* | nonstopux*)
  7949. symcode='[BCDEGRST]'
  7950. ;;
  7951. osf*)
  7952. symcode='[BCDEGQRST]'
  7953. ;;
  7954. solaris*)
  7955. symcode='[BDRT]'
  7956. ;;
  7957. sco3.2v5*)
  7958. symcode='[DT]'
  7959. ;;
  7960. sysv4.2uw2*)
  7961. symcode='[DT]'
  7962. ;;
  7963. sysv5* | sco5v6* | unixware* | OpenUNIX*)
  7964. symcode='[ABDT]'
  7965. ;;
  7966. sysv4)
  7967. symcode='[DFNSTU]'
  7968. ;;
  7969. esac
  7970. # If we're using GNU nm, then use its standard symbol codes.
  7971. case `$NM -V 2>&1` in
  7972. *GNU* | *'with BFD'*)
  7973. symcode='[ABCDGIRSTW]' ;;
  7974. esac
  7975. # Transform an extracted symbol line into a proper C declaration.
  7976. # Some systems (esp. on ia64) link data and code symbols differently,
  7977. # so use this general approach.
  7978. lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
  7979. # Transform an extracted symbol line into symbol name and symbol address
  7980. lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\)[ ]*$/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
  7981. lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n -e 's/^: \([^ ]*\)[ ]*$/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \(lib[^ ]*\)$/ {\"\2\", (void *) \&\2},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"lib\2\", (void *) \&\2},/p'"
  7982. # Handle CRLF in mingw tool chain
  7983. opt_cr=
  7984. case $build_os in
  7985. mingw*)
  7986. opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
  7987. ;;
  7988. esac
  7989. # Try without a prefix underscore, then with it.
  7990. for ac_symprfx in "" "_"; do
  7991. # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
  7992. symxfrm="\\1 $ac_symprfx\\2 \\2"
  7993. # Write the raw and C identifiers.
  7994. if test "$lt_cv_nm_interface" = "MS dumpbin"; then
  7995. # Fake it for dumpbin and say T for any non-static function
  7996. # and D for any global variable.
  7997. # Also find C++ and __fastcall symbols from MSVC++,
  7998. # which start with @ or ?.
  7999. lt_cv_sys_global_symbol_pipe="$AWK '"\
  8000. " {last_section=section; section=\$ 3};"\
  8001. " /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
  8002. " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
  8003. " \$ 0!~/External *\|/{next};"\
  8004. " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
  8005. " {if(hide[section]) next};"\
  8006. " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
  8007. " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
  8008. " s[1]~/^[@?]/{print s[1], s[1]; next};"\
  8009. " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
  8010. " ' prfx=^$ac_symprfx"
  8011. else
  8012. lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
  8013. fi
  8014. lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
  8015. # Check to see that the pipe works correctly.
  8016. pipe_works=no
  8017. rm -f conftest*
  8018. cat > conftest.$ac_ext <<_LT_EOF
  8019. #ifdef __cplusplus
  8020. extern "C" {
  8021. #endif
  8022. char nm_test_var;
  8023. void nm_test_func(void);
  8024. void nm_test_func(void){}
  8025. #ifdef __cplusplus
  8026. }
  8027. #endif
  8028. int main(){nm_test_var='a';nm_test_func();return(0);}
  8029. _LT_EOF
  8030. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  8031. (eval $ac_compile) 2>&5
  8032. ac_status=$?
  8033. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  8034. test $ac_status = 0; }; then
  8035. # Now try to grab the symbols.
  8036. nlist=conftest.nm
  8037. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
  8038. (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
  8039. ac_status=$?
  8040. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  8041. test $ac_status = 0; } && test -s "$nlist"; then
  8042. # Try sorting and uniquifying the output.
  8043. if sort "$nlist" | uniq > "$nlist"T; then
  8044. mv -f "$nlist"T "$nlist"
  8045. else
  8046. rm -f "$nlist"T
  8047. fi
  8048. # Make sure that we snagged all the symbols we need.
  8049. if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
  8050. if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
  8051. cat <<_LT_EOF > conftest.$ac_ext
  8052. /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */
  8053. #if defined(_WIN32) || defined(__CYGWIN__) || defined(_WIN32_WCE)
  8054. /* DATA imports from DLLs on WIN32 con't be const, because runtime
  8055. relocations are performed -- see ld's documentation on pseudo-relocs. */
  8056. # define LT_DLSYM_CONST
  8057. #elif defined(__osf__)
  8058. /* This system does not cope well with relocations in const data. */
  8059. # define LT_DLSYM_CONST
  8060. #else
  8061. # define LT_DLSYM_CONST const
  8062. #endif
  8063. #ifdef __cplusplus
  8064. extern "C" {
  8065. #endif
  8066. _LT_EOF
  8067. # Now generate the symbol file.
  8068. eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
  8069. cat <<_LT_EOF >> conftest.$ac_ext
  8070. /* The mapping between symbol names and symbols. */
  8071. LT_DLSYM_CONST struct {
  8072. const char *name;
  8073. void *address;
  8074. }
  8075. lt__PROGRAM__LTX_preloaded_symbols[] =
  8076. {
  8077. { "@PROGRAM@", (void *) 0 },
  8078. _LT_EOF
  8079. $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
  8080. cat <<\_LT_EOF >> conftest.$ac_ext
  8081. {0, (void *) 0}
  8082. };
  8083. /* This works around a problem in FreeBSD linker */
  8084. #ifdef FREEBSD_WORKAROUND
  8085. static const void *lt_preloaded_setup() {
  8086. return lt__PROGRAM__LTX_preloaded_symbols;
  8087. }
  8088. #endif
  8089. #ifdef __cplusplus
  8090. }
  8091. #endif
  8092. _LT_EOF
  8093. # Now try linking the two files.
  8094. mv conftest.$ac_objext conftstm.$ac_objext
  8095. lt_globsym_save_LIBS=$LIBS
  8096. lt_globsym_save_CFLAGS=$CFLAGS
  8097. LIBS="conftstm.$ac_objext"
  8098. CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
  8099. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
  8100. (eval $ac_link) 2>&5
  8101. ac_status=$?
  8102. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  8103. test $ac_status = 0; } && test -s conftest${ac_exeext}; then
  8104. pipe_works=yes
  8105. fi
  8106. LIBS=$lt_globsym_save_LIBS
  8107. CFLAGS=$lt_globsym_save_CFLAGS
  8108. else
  8109. echo "cannot find nm_test_func in $nlist" >&5
  8110. fi
  8111. else
  8112. echo "cannot find nm_test_var in $nlist" >&5
  8113. fi
  8114. else
  8115. echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
  8116. fi
  8117. else
  8118. echo "$progname: failed program was:" >&5
  8119. cat conftest.$ac_ext >&5
  8120. fi
  8121. rm -rf conftest* conftst*
  8122. # Do not use the global_symbol_pipe unless it works.
  8123. if test "$pipe_works" = yes; then
  8124. break
  8125. else
  8126. lt_cv_sys_global_symbol_pipe=
  8127. fi
  8128. done
  8129. fi
  8130. if test -z "$lt_cv_sys_global_symbol_pipe"; then
  8131. lt_cv_sys_global_symbol_to_cdecl=
  8132. fi
  8133. if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
  8134. { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
  8135. $as_echo "failed" >&6; }
  8136. else
  8137. { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
  8138. $as_echo "ok" >&6; }
  8139. fi
  8140. # Response file support.
  8141. if test "$lt_cv_nm_interface" = "MS dumpbin"; then
  8142. nm_file_list_spec='@'
  8143. elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
  8144. nm_file_list_spec='@'
  8145. fi
  8146. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
  8147. $as_echo_n "checking for sysroot... " >&6; }
  8148. # Check whether --with-sysroot was given.
  8149. if test "${with_sysroot+set}" = set; then :
  8150. withval=$with_sysroot;
  8151. else
  8152. with_sysroot=no
  8153. fi
  8154. lt_sysroot=
  8155. case ${with_sysroot} in #(
  8156. yes)
  8157. if test "$GCC" = yes; then
  8158. lt_sysroot=`$CC --print-sysroot 2>/dev/null`
  8159. fi
  8160. ;; #(
  8161. /*)
  8162. lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
  8163. ;; #(
  8164. no|'')
  8165. ;; #(
  8166. *)
  8167. { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${with_sysroot}" >&5
  8168. $as_echo "${with_sysroot}" >&6; }
  8169. as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
  8170. ;;
  8171. esac
  8172. { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
  8173. $as_echo "${lt_sysroot:-no}" >&6; }
  8174. # Check whether --enable-libtool-lock was given.
  8175. if test "${enable_libtool_lock+set}" = set; then :
  8176. enableval=$enable_libtool_lock;
  8177. fi
  8178. test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
  8179. # Some flags need to be propagated to the compiler or linker for good
  8180. # libtool support.
  8181. case $host in
  8182. ia64-*-hpux*)
  8183. # Find out which ABI we are using.
  8184. echo 'int i;' > conftest.$ac_ext
  8185. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  8186. (eval $ac_compile) 2>&5
  8187. ac_status=$?
  8188. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  8189. test $ac_status = 0; }; then
  8190. case `/usr/bin/file conftest.$ac_objext` in
  8191. *ELF-32*)
  8192. HPUX_IA64_MODE="32"
  8193. ;;
  8194. *ELF-64*)
  8195. HPUX_IA64_MODE="64"
  8196. ;;
  8197. esac
  8198. fi
  8199. rm -rf conftest*
  8200. ;;
  8201. *-*-irix6*)
  8202. # Find out which ABI we are using.
  8203. echo '#line '$LINENO' "configure"' > conftest.$ac_ext
  8204. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  8205. (eval $ac_compile) 2>&5
  8206. ac_status=$?
  8207. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  8208. test $ac_status = 0; }; then
  8209. if test "$lt_cv_prog_gnu_ld" = yes; then
  8210. case `/usr/bin/file conftest.$ac_objext` in
  8211. *32-bit*)
  8212. LD="${LD-ld} -melf32bsmip"
  8213. ;;
  8214. *N32*)
  8215. LD="${LD-ld} -melf32bmipn32"
  8216. ;;
  8217. *64-bit*)
  8218. LD="${LD-ld} -melf64bmip"
  8219. ;;
  8220. esac
  8221. else
  8222. case `/usr/bin/file conftest.$ac_objext` in
  8223. *32-bit*)
  8224. LD="${LD-ld} -32"
  8225. ;;
  8226. *N32*)
  8227. LD="${LD-ld} -n32"
  8228. ;;
  8229. *64-bit*)
  8230. LD="${LD-ld} -64"
  8231. ;;
  8232. esac
  8233. fi
  8234. fi
  8235. rm -rf conftest*
  8236. ;;
  8237. x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
  8238. s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
  8239. # Find out which ABI we are using.
  8240. echo 'int i;' > conftest.$ac_ext
  8241. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  8242. (eval $ac_compile) 2>&5
  8243. ac_status=$?
  8244. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  8245. test $ac_status = 0; }; then
  8246. case `/usr/bin/file conftest.o` in
  8247. *32-bit*)
  8248. case $host in
  8249. x86_64-*kfreebsd*-gnu)
  8250. LD="${LD-ld} -m elf_i386_fbsd"
  8251. ;;
  8252. x86_64-*linux*)
  8253. LD="${LD-ld} -m elf_i386"
  8254. ;;
  8255. powerpc64le-*linux*)
  8256. LD="${LD-ld} -m elf32lppclinux"
  8257. ;;
  8258. powerpc64-*linux*)
  8259. LD="${LD-ld} -m elf32ppclinux"
  8260. ;;
  8261. s390x-*linux*)
  8262. LD="${LD-ld} -m elf_s390"
  8263. ;;
  8264. sparc64-*linux*)
  8265. LD="${LD-ld} -m elf32_sparc"
  8266. ;;
  8267. esac
  8268. ;;
  8269. *64-bit*)
  8270. case $host in
  8271. x86_64-*kfreebsd*-gnu)
  8272. LD="${LD-ld} -m elf_x86_64_fbsd"
  8273. ;;
  8274. x86_64-*linux*)
  8275. LD="${LD-ld} -m elf_x86_64"
  8276. ;;
  8277. powerpcle-*linux*)
  8278. LD="${LD-ld} -m elf64lppc"
  8279. ;;
  8280. powerpc-*linux*)
  8281. LD="${LD-ld} -m elf64ppc"
  8282. ;;
  8283. s390*-*linux*|s390*-*tpf*)
  8284. LD="${LD-ld} -m elf64_s390"
  8285. ;;
  8286. sparc*-*linux*)
  8287. LD="${LD-ld} -m elf64_sparc"
  8288. ;;
  8289. esac
  8290. ;;
  8291. esac
  8292. fi
  8293. rm -rf conftest*
  8294. ;;
  8295. *-*-sco3.2v5*)
  8296. # On SCO OpenServer 5, we need -belf to get full-featured binaries.
  8297. SAVE_CFLAGS="$CFLAGS"
  8298. CFLAGS="$CFLAGS -belf"
  8299. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
  8300. $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
  8301. if ${lt_cv_cc_needs_belf+:} false; then :
  8302. $as_echo_n "(cached) " >&6
  8303. else
  8304. ac_ext=c
  8305. ac_cpp='$CPP $CPPFLAGS'
  8306. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  8307. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  8308. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  8309. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  8310. /* end confdefs.h. */
  8311. int
  8312. main ()
  8313. {
  8314. ;
  8315. return 0;
  8316. }
  8317. _ACEOF
  8318. if ac_fn_c_try_link "$LINENO"; then :
  8319. lt_cv_cc_needs_belf=yes
  8320. else
  8321. lt_cv_cc_needs_belf=no
  8322. fi
  8323. rm -f core conftest.err conftest.$ac_objext \
  8324. conftest$ac_exeext conftest.$ac_ext
  8325. ac_ext=c
  8326. ac_cpp='$CPP $CPPFLAGS'
  8327. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  8328. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  8329. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  8330. fi
  8331. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
  8332. $as_echo "$lt_cv_cc_needs_belf" >&6; }
  8333. if test x"$lt_cv_cc_needs_belf" != x"yes"; then
  8334. # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
  8335. CFLAGS="$SAVE_CFLAGS"
  8336. fi
  8337. ;;
  8338. *-*solaris*)
  8339. # Find out which ABI we are using.
  8340. echo 'int i;' > conftest.$ac_ext
  8341. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  8342. (eval $ac_compile) 2>&5
  8343. ac_status=$?
  8344. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  8345. test $ac_status = 0; }; then
  8346. case `/usr/bin/file conftest.o` in
  8347. *64-bit*)
  8348. case $lt_cv_prog_gnu_ld in
  8349. yes*)
  8350. case $host in
  8351. i?86-*-solaris*)
  8352. LD="${LD-ld} -m elf_x86_64"
  8353. ;;
  8354. sparc*-*-solaris*)
  8355. LD="${LD-ld} -m elf64_sparc"
  8356. ;;
  8357. esac
  8358. # GNU ld 2.21 introduced _sol2 emulations. Use them if available.
  8359. if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
  8360. LD="${LD-ld}_sol2"
  8361. fi
  8362. ;;
  8363. *)
  8364. if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
  8365. LD="${LD-ld} -64"
  8366. fi
  8367. ;;
  8368. esac
  8369. ;;
  8370. esac
  8371. fi
  8372. rm -rf conftest*
  8373. ;;
  8374. esac
  8375. need_locks="$enable_libtool_lock"
  8376. if test -n "$ac_tool_prefix"; then
  8377. # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
  8378. set dummy ${ac_tool_prefix}mt; ac_word=$2
  8379. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  8380. $as_echo_n "checking for $ac_word... " >&6; }
  8381. if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
  8382. $as_echo_n "(cached) " >&6
  8383. else
  8384. if test -n "$MANIFEST_TOOL"; then
  8385. ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
  8386. else
  8387. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  8388. for as_dir in $PATH
  8389. do
  8390. IFS=$as_save_IFS
  8391. test -z "$as_dir" && as_dir=.
  8392. for ac_exec_ext in '' $ac_executable_extensions; do
  8393. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  8394. ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
  8395. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  8396. break 2
  8397. fi
  8398. done
  8399. done
  8400. IFS=$as_save_IFS
  8401. fi
  8402. fi
  8403. MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
  8404. if test -n "$MANIFEST_TOOL"; then
  8405. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
  8406. $as_echo "$MANIFEST_TOOL" >&6; }
  8407. else
  8408. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  8409. $as_echo "no" >&6; }
  8410. fi
  8411. fi
  8412. if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
  8413. ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
  8414. # Extract the first word of "mt", so it can be a program name with args.
  8415. set dummy mt; ac_word=$2
  8416. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  8417. $as_echo_n "checking for $ac_word... " >&6; }
  8418. if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
  8419. $as_echo_n "(cached) " >&6
  8420. else
  8421. if test -n "$ac_ct_MANIFEST_TOOL"; then
  8422. ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
  8423. else
  8424. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  8425. for as_dir in $PATH
  8426. do
  8427. IFS=$as_save_IFS
  8428. test -z "$as_dir" && as_dir=.
  8429. for ac_exec_ext in '' $ac_executable_extensions; do
  8430. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  8431. ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
  8432. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  8433. break 2
  8434. fi
  8435. done
  8436. done
  8437. IFS=$as_save_IFS
  8438. fi
  8439. fi
  8440. ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
  8441. if test -n "$ac_ct_MANIFEST_TOOL"; then
  8442. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
  8443. $as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
  8444. else
  8445. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  8446. $as_echo "no" >&6; }
  8447. fi
  8448. if test "x$ac_ct_MANIFEST_TOOL" = x; then
  8449. MANIFEST_TOOL=":"
  8450. else
  8451. case $cross_compiling:$ac_tool_warned in
  8452. yes:)
  8453. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  8454. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  8455. ac_tool_warned=yes ;;
  8456. esac
  8457. MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
  8458. fi
  8459. else
  8460. MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
  8461. fi
  8462. test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
  8463. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
  8464. $as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
  8465. if ${lt_cv_path_mainfest_tool+:} false; then :
  8466. $as_echo_n "(cached) " >&6
  8467. else
  8468. lt_cv_path_mainfest_tool=no
  8469. echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
  8470. $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
  8471. cat conftest.err >&5
  8472. if $GREP 'Manifest Tool' conftest.out > /dev/null; then
  8473. lt_cv_path_mainfest_tool=yes
  8474. fi
  8475. rm -f conftest*
  8476. fi
  8477. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
  8478. $as_echo "$lt_cv_path_mainfest_tool" >&6; }
  8479. if test "x$lt_cv_path_mainfest_tool" != xyes; then
  8480. MANIFEST_TOOL=:
  8481. fi
  8482. case $host_os in
  8483. rhapsody* | darwin*)
  8484. if test -n "$ac_tool_prefix"; then
  8485. # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
  8486. set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
  8487. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  8488. $as_echo_n "checking for $ac_word... " >&6; }
  8489. if ${ac_cv_prog_DSYMUTIL+:} false; then :
  8490. $as_echo_n "(cached) " >&6
  8491. else
  8492. if test -n "$DSYMUTIL"; then
  8493. ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
  8494. else
  8495. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  8496. for as_dir in $PATH
  8497. do
  8498. IFS=$as_save_IFS
  8499. test -z "$as_dir" && as_dir=.
  8500. for ac_exec_ext in '' $ac_executable_extensions; do
  8501. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  8502. ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
  8503. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  8504. break 2
  8505. fi
  8506. done
  8507. done
  8508. IFS=$as_save_IFS
  8509. fi
  8510. fi
  8511. DSYMUTIL=$ac_cv_prog_DSYMUTIL
  8512. if test -n "$DSYMUTIL"; then
  8513. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
  8514. $as_echo "$DSYMUTIL" >&6; }
  8515. else
  8516. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  8517. $as_echo "no" >&6; }
  8518. fi
  8519. fi
  8520. if test -z "$ac_cv_prog_DSYMUTIL"; then
  8521. ac_ct_DSYMUTIL=$DSYMUTIL
  8522. # Extract the first word of "dsymutil", so it can be a program name with args.
  8523. set dummy dsymutil; ac_word=$2
  8524. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  8525. $as_echo_n "checking for $ac_word... " >&6; }
  8526. if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
  8527. $as_echo_n "(cached) " >&6
  8528. else
  8529. if test -n "$ac_ct_DSYMUTIL"; then
  8530. ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
  8531. else
  8532. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  8533. for as_dir in $PATH
  8534. do
  8535. IFS=$as_save_IFS
  8536. test -z "$as_dir" && as_dir=.
  8537. for ac_exec_ext in '' $ac_executable_extensions; do
  8538. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  8539. ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
  8540. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  8541. break 2
  8542. fi
  8543. done
  8544. done
  8545. IFS=$as_save_IFS
  8546. fi
  8547. fi
  8548. ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
  8549. if test -n "$ac_ct_DSYMUTIL"; then
  8550. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
  8551. $as_echo "$ac_ct_DSYMUTIL" >&6; }
  8552. else
  8553. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  8554. $as_echo "no" >&6; }
  8555. fi
  8556. if test "x$ac_ct_DSYMUTIL" = x; then
  8557. DSYMUTIL=":"
  8558. else
  8559. case $cross_compiling:$ac_tool_warned in
  8560. yes:)
  8561. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  8562. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  8563. ac_tool_warned=yes ;;
  8564. esac
  8565. DSYMUTIL=$ac_ct_DSYMUTIL
  8566. fi
  8567. else
  8568. DSYMUTIL="$ac_cv_prog_DSYMUTIL"
  8569. fi
  8570. if test -n "$ac_tool_prefix"; then
  8571. # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
  8572. set dummy ${ac_tool_prefix}nmedit; ac_word=$2
  8573. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  8574. $as_echo_n "checking for $ac_word... " >&6; }
  8575. if ${ac_cv_prog_NMEDIT+:} false; then :
  8576. $as_echo_n "(cached) " >&6
  8577. else
  8578. if test -n "$NMEDIT"; then
  8579. ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
  8580. else
  8581. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  8582. for as_dir in $PATH
  8583. do
  8584. IFS=$as_save_IFS
  8585. test -z "$as_dir" && as_dir=.
  8586. for ac_exec_ext in '' $ac_executable_extensions; do
  8587. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  8588. ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
  8589. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  8590. break 2
  8591. fi
  8592. done
  8593. done
  8594. IFS=$as_save_IFS
  8595. fi
  8596. fi
  8597. NMEDIT=$ac_cv_prog_NMEDIT
  8598. if test -n "$NMEDIT"; then
  8599. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
  8600. $as_echo "$NMEDIT" >&6; }
  8601. else
  8602. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  8603. $as_echo "no" >&6; }
  8604. fi
  8605. fi
  8606. if test -z "$ac_cv_prog_NMEDIT"; then
  8607. ac_ct_NMEDIT=$NMEDIT
  8608. # Extract the first word of "nmedit", so it can be a program name with args.
  8609. set dummy nmedit; ac_word=$2
  8610. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  8611. $as_echo_n "checking for $ac_word... " >&6; }
  8612. if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
  8613. $as_echo_n "(cached) " >&6
  8614. else
  8615. if test -n "$ac_ct_NMEDIT"; then
  8616. ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
  8617. else
  8618. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  8619. for as_dir in $PATH
  8620. do
  8621. IFS=$as_save_IFS
  8622. test -z "$as_dir" && as_dir=.
  8623. for ac_exec_ext in '' $ac_executable_extensions; do
  8624. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  8625. ac_cv_prog_ac_ct_NMEDIT="nmedit"
  8626. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  8627. break 2
  8628. fi
  8629. done
  8630. done
  8631. IFS=$as_save_IFS
  8632. fi
  8633. fi
  8634. ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
  8635. if test -n "$ac_ct_NMEDIT"; then
  8636. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
  8637. $as_echo "$ac_ct_NMEDIT" >&6; }
  8638. else
  8639. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  8640. $as_echo "no" >&6; }
  8641. fi
  8642. if test "x$ac_ct_NMEDIT" = x; then
  8643. NMEDIT=":"
  8644. else
  8645. case $cross_compiling:$ac_tool_warned in
  8646. yes:)
  8647. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  8648. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  8649. ac_tool_warned=yes ;;
  8650. esac
  8651. NMEDIT=$ac_ct_NMEDIT
  8652. fi
  8653. else
  8654. NMEDIT="$ac_cv_prog_NMEDIT"
  8655. fi
  8656. if test -n "$ac_tool_prefix"; then
  8657. # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
  8658. set dummy ${ac_tool_prefix}lipo; ac_word=$2
  8659. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  8660. $as_echo_n "checking for $ac_word... " >&6; }
  8661. if ${ac_cv_prog_LIPO+:} false; then :
  8662. $as_echo_n "(cached) " >&6
  8663. else
  8664. if test -n "$LIPO"; then
  8665. ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
  8666. else
  8667. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  8668. for as_dir in $PATH
  8669. do
  8670. IFS=$as_save_IFS
  8671. test -z "$as_dir" && as_dir=.
  8672. for ac_exec_ext in '' $ac_executable_extensions; do
  8673. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  8674. ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
  8675. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  8676. break 2
  8677. fi
  8678. done
  8679. done
  8680. IFS=$as_save_IFS
  8681. fi
  8682. fi
  8683. LIPO=$ac_cv_prog_LIPO
  8684. if test -n "$LIPO"; then
  8685. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
  8686. $as_echo "$LIPO" >&6; }
  8687. else
  8688. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  8689. $as_echo "no" >&6; }
  8690. fi
  8691. fi
  8692. if test -z "$ac_cv_prog_LIPO"; then
  8693. ac_ct_LIPO=$LIPO
  8694. # Extract the first word of "lipo", so it can be a program name with args.
  8695. set dummy lipo; ac_word=$2
  8696. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  8697. $as_echo_n "checking for $ac_word... " >&6; }
  8698. if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
  8699. $as_echo_n "(cached) " >&6
  8700. else
  8701. if test -n "$ac_ct_LIPO"; then
  8702. ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
  8703. else
  8704. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  8705. for as_dir in $PATH
  8706. do
  8707. IFS=$as_save_IFS
  8708. test -z "$as_dir" && as_dir=.
  8709. for ac_exec_ext in '' $ac_executable_extensions; do
  8710. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  8711. ac_cv_prog_ac_ct_LIPO="lipo"
  8712. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  8713. break 2
  8714. fi
  8715. done
  8716. done
  8717. IFS=$as_save_IFS
  8718. fi
  8719. fi
  8720. ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
  8721. if test -n "$ac_ct_LIPO"; then
  8722. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
  8723. $as_echo "$ac_ct_LIPO" >&6; }
  8724. else
  8725. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  8726. $as_echo "no" >&6; }
  8727. fi
  8728. if test "x$ac_ct_LIPO" = x; then
  8729. LIPO=":"
  8730. else
  8731. case $cross_compiling:$ac_tool_warned in
  8732. yes:)
  8733. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  8734. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  8735. ac_tool_warned=yes ;;
  8736. esac
  8737. LIPO=$ac_ct_LIPO
  8738. fi
  8739. else
  8740. LIPO="$ac_cv_prog_LIPO"
  8741. fi
  8742. if test -n "$ac_tool_prefix"; then
  8743. # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
  8744. set dummy ${ac_tool_prefix}otool; ac_word=$2
  8745. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  8746. $as_echo_n "checking for $ac_word... " >&6; }
  8747. if ${ac_cv_prog_OTOOL+:} false; then :
  8748. $as_echo_n "(cached) " >&6
  8749. else
  8750. if test -n "$OTOOL"; then
  8751. ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
  8752. else
  8753. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  8754. for as_dir in $PATH
  8755. do
  8756. IFS=$as_save_IFS
  8757. test -z "$as_dir" && as_dir=.
  8758. for ac_exec_ext in '' $ac_executable_extensions; do
  8759. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  8760. ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
  8761. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  8762. break 2
  8763. fi
  8764. done
  8765. done
  8766. IFS=$as_save_IFS
  8767. fi
  8768. fi
  8769. OTOOL=$ac_cv_prog_OTOOL
  8770. if test -n "$OTOOL"; then
  8771. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
  8772. $as_echo "$OTOOL" >&6; }
  8773. else
  8774. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  8775. $as_echo "no" >&6; }
  8776. fi
  8777. fi
  8778. if test -z "$ac_cv_prog_OTOOL"; then
  8779. ac_ct_OTOOL=$OTOOL
  8780. # Extract the first word of "otool", so it can be a program name with args.
  8781. set dummy otool; ac_word=$2
  8782. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  8783. $as_echo_n "checking for $ac_word... " >&6; }
  8784. if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
  8785. $as_echo_n "(cached) " >&6
  8786. else
  8787. if test -n "$ac_ct_OTOOL"; then
  8788. ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
  8789. else
  8790. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  8791. for as_dir in $PATH
  8792. do
  8793. IFS=$as_save_IFS
  8794. test -z "$as_dir" && as_dir=.
  8795. for ac_exec_ext in '' $ac_executable_extensions; do
  8796. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  8797. ac_cv_prog_ac_ct_OTOOL="otool"
  8798. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  8799. break 2
  8800. fi
  8801. done
  8802. done
  8803. IFS=$as_save_IFS
  8804. fi
  8805. fi
  8806. ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
  8807. if test -n "$ac_ct_OTOOL"; then
  8808. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
  8809. $as_echo "$ac_ct_OTOOL" >&6; }
  8810. else
  8811. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  8812. $as_echo "no" >&6; }
  8813. fi
  8814. if test "x$ac_ct_OTOOL" = x; then
  8815. OTOOL=":"
  8816. else
  8817. case $cross_compiling:$ac_tool_warned in
  8818. yes:)
  8819. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  8820. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  8821. ac_tool_warned=yes ;;
  8822. esac
  8823. OTOOL=$ac_ct_OTOOL
  8824. fi
  8825. else
  8826. OTOOL="$ac_cv_prog_OTOOL"
  8827. fi
  8828. if test -n "$ac_tool_prefix"; then
  8829. # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
  8830. set dummy ${ac_tool_prefix}otool64; ac_word=$2
  8831. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  8832. $as_echo_n "checking for $ac_word... " >&6; }
  8833. if ${ac_cv_prog_OTOOL64+:} false; then :
  8834. $as_echo_n "(cached) " >&6
  8835. else
  8836. if test -n "$OTOOL64"; then
  8837. ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
  8838. else
  8839. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  8840. for as_dir in $PATH
  8841. do
  8842. IFS=$as_save_IFS
  8843. test -z "$as_dir" && as_dir=.
  8844. for ac_exec_ext in '' $ac_executable_extensions; do
  8845. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  8846. ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
  8847. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  8848. break 2
  8849. fi
  8850. done
  8851. done
  8852. IFS=$as_save_IFS
  8853. fi
  8854. fi
  8855. OTOOL64=$ac_cv_prog_OTOOL64
  8856. if test -n "$OTOOL64"; then
  8857. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
  8858. $as_echo "$OTOOL64" >&6; }
  8859. else
  8860. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  8861. $as_echo "no" >&6; }
  8862. fi
  8863. fi
  8864. if test -z "$ac_cv_prog_OTOOL64"; then
  8865. ac_ct_OTOOL64=$OTOOL64
  8866. # Extract the first word of "otool64", so it can be a program name with args.
  8867. set dummy otool64; ac_word=$2
  8868. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  8869. $as_echo_n "checking for $ac_word... " >&6; }
  8870. if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
  8871. $as_echo_n "(cached) " >&6
  8872. else
  8873. if test -n "$ac_ct_OTOOL64"; then
  8874. ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
  8875. else
  8876. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  8877. for as_dir in $PATH
  8878. do
  8879. IFS=$as_save_IFS
  8880. test -z "$as_dir" && as_dir=.
  8881. for ac_exec_ext in '' $ac_executable_extensions; do
  8882. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  8883. ac_cv_prog_ac_ct_OTOOL64="otool64"
  8884. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  8885. break 2
  8886. fi
  8887. done
  8888. done
  8889. IFS=$as_save_IFS
  8890. fi
  8891. fi
  8892. ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
  8893. if test -n "$ac_ct_OTOOL64"; then
  8894. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
  8895. $as_echo "$ac_ct_OTOOL64" >&6; }
  8896. else
  8897. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  8898. $as_echo "no" >&6; }
  8899. fi
  8900. if test "x$ac_ct_OTOOL64" = x; then
  8901. OTOOL64=":"
  8902. else
  8903. case $cross_compiling:$ac_tool_warned in
  8904. yes:)
  8905. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  8906. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  8907. ac_tool_warned=yes ;;
  8908. esac
  8909. OTOOL64=$ac_ct_OTOOL64
  8910. fi
  8911. else
  8912. OTOOL64="$ac_cv_prog_OTOOL64"
  8913. fi
  8914. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
  8915. $as_echo_n "checking for -single_module linker flag... " >&6; }
  8916. if ${lt_cv_apple_cc_single_mod+:} false; then :
  8917. $as_echo_n "(cached) " >&6
  8918. else
  8919. lt_cv_apple_cc_single_mod=no
  8920. if test -z "${LT_MULTI_MODULE}"; then
  8921. # By default we will add the -single_module flag. You can override
  8922. # by either setting the environment variable LT_MULTI_MODULE
  8923. # non-empty at configure time, or by adding -multi_module to the
  8924. # link flags.
  8925. rm -rf libconftest.dylib*
  8926. echo "int foo(void){return 1;}" > conftest.c
  8927. echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
  8928. -dynamiclib -Wl,-single_module conftest.c" >&5
  8929. $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
  8930. -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
  8931. _lt_result=$?
  8932. # If there is a non-empty error log, and "single_module"
  8933. # appears in it, assume the flag caused a linker warning
  8934. if test -s conftest.err && $GREP single_module conftest.err; then
  8935. cat conftest.err >&5
  8936. # Otherwise, if the output was created with a 0 exit code from
  8937. # the compiler, it worked.
  8938. elif test -f libconftest.dylib && test $_lt_result -eq 0; then
  8939. lt_cv_apple_cc_single_mod=yes
  8940. else
  8941. cat conftest.err >&5
  8942. fi
  8943. rm -rf libconftest.dylib*
  8944. rm -f conftest.*
  8945. fi
  8946. fi
  8947. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
  8948. $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
  8949. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
  8950. $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
  8951. if ${lt_cv_ld_exported_symbols_list+:} false; then :
  8952. $as_echo_n "(cached) " >&6
  8953. else
  8954. lt_cv_ld_exported_symbols_list=no
  8955. save_LDFLAGS=$LDFLAGS
  8956. echo "_main" > conftest.sym
  8957. LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
  8958. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  8959. /* end confdefs.h. */
  8960. int
  8961. main ()
  8962. {
  8963. ;
  8964. return 0;
  8965. }
  8966. _ACEOF
  8967. if ac_fn_c_try_link "$LINENO"; then :
  8968. lt_cv_ld_exported_symbols_list=yes
  8969. else
  8970. lt_cv_ld_exported_symbols_list=no
  8971. fi
  8972. rm -f core conftest.err conftest.$ac_objext \
  8973. conftest$ac_exeext conftest.$ac_ext
  8974. LDFLAGS="$save_LDFLAGS"
  8975. fi
  8976. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
  8977. $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
  8978. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
  8979. $as_echo_n "checking for -force_load linker flag... " >&6; }
  8980. if ${lt_cv_ld_force_load+:} false; then :
  8981. $as_echo_n "(cached) " >&6
  8982. else
  8983. lt_cv_ld_force_load=no
  8984. cat > conftest.c << _LT_EOF
  8985. int forced_loaded() { return 2;}
  8986. _LT_EOF
  8987. echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
  8988. $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
  8989. echo "$AR cru libconftest.a conftest.o" >&5
  8990. $AR cru libconftest.a conftest.o 2>&5
  8991. echo "$RANLIB libconftest.a" >&5
  8992. $RANLIB libconftest.a 2>&5
  8993. cat > conftest.c << _LT_EOF
  8994. int main() { return 0;}
  8995. _LT_EOF
  8996. echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
  8997. $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
  8998. _lt_result=$?
  8999. if test -s conftest.err && $GREP force_load conftest.err; then
  9000. cat conftest.err >&5
  9001. elif test -f conftest && test $_lt_result -eq 0 && $GREP forced_load conftest >/dev/null 2>&1 ; then
  9002. lt_cv_ld_force_load=yes
  9003. else
  9004. cat conftest.err >&5
  9005. fi
  9006. rm -f conftest.err libconftest.a conftest conftest.c
  9007. rm -rf conftest.dSYM
  9008. fi
  9009. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
  9010. $as_echo "$lt_cv_ld_force_load" >&6; }
  9011. case $host_os in
  9012. rhapsody* | darwin1.[012])
  9013. _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
  9014. darwin1.*)
  9015. _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
  9016. darwin*) # darwin 5.x on
  9017. # if running on 10.5 or later, the deployment target defaults
  9018. # to the OS version, if on x86, and 10.4, the deployment
  9019. # target defaults to 10.4. Don't you love it?
  9020. case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
  9021. 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
  9022. _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
  9023. 10.[012]*)
  9024. _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
  9025. 10.*)
  9026. _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
  9027. esac
  9028. ;;
  9029. esac
  9030. if test "$lt_cv_apple_cc_single_mod" = "yes"; then
  9031. _lt_dar_single_mod='$single_module'
  9032. fi
  9033. if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
  9034. _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
  9035. else
  9036. _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
  9037. fi
  9038. if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
  9039. _lt_dsymutil='~$DSYMUTIL $lib || :'
  9040. else
  9041. _lt_dsymutil=
  9042. fi
  9043. ;;
  9044. esac
  9045. for ac_header in dlfcn.h
  9046. do :
  9047. ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
  9048. "
  9049. if test "x$ac_cv_header_dlfcn_h" = xyes; then :
  9050. cat >>confdefs.h <<_ACEOF
  9051. #define HAVE_DLFCN_H 1
  9052. _ACEOF
  9053. fi
  9054. done
  9055. # Set options
  9056. enable_dlopen=no
  9057. enable_win32_dll=no
  9058. # Check whether --enable-static was given.
  9059. if test "${enable_static+set}" = set; then :
  9060. enableval=$enable_static; p=${PACKAGE-default}
  9061. case $enableval in
  9062. yes) enable_static=yes ;;
  9063. no) enable_static=no ;;
  9064. *)
  9065. enable_static=no
  9066. # Look at the argument we got. We use all the common list separators.
  9067. lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
  9068. for pkg in $enableval; do
  9069. IFS="$lt_save_ifs"
  9070. if test "X$pkg" = "X$p"; then
  9071. enable_static=yes
  9072. fi
  9073. done
  9074. IFS="$lt_save_ifs"
  9075. ;;
  9076. esac
  9077. else
  9078. enable_static=yes
  9079. fi
  9080. # Check whether --with-pic was given.
  9081. if test "${with_pic+set}" = set; then :
  9082. withval=$with_pic; lt_p=${PACKAGE-default}
  9083. case $withval in
  9084. yes|no) pic_mode=$withval ;;
  9085. *)
  9086. pic_mode=default
  9087. # Look at the argument we got. We use all the common list separators.
  9088. lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
  9089. for lt_pkg in $withval; do
  9090. IFS="$lt_save_ifs"
  9091. if test "X$lt_pkg" = "X$lt_p"; then
  9092. pic_mode=yes
  9093. fi
  9094. done
  9095. IFS="$lt_save_ifs"
  9096. ;;
  9097. esac
  9098. else
  9099. pic_mode=default
  9100. fi
  9101. test -z "$pic_mode" && pic_mode=default
  9102. # Check whether --enable-fast-install was given.
  9103. if test "${enable_fast_install+set}" = set; then :
  9104. enableval=$enable_fast_install; p=${PACKAGE-default}
  9105. case $enableval in
  9106. yes) enable_fast_install=yes ;;
  9107. no) enable_fast_install=no ;;
  9108. *)
  9109. enable_fast_install=no
  9110. # Look at the argument we got. We use all the common list separators.
  9111. lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
  9112. for pkg in $enableval; do
  9113. IFS="$lt_save_ifs"
  9114. if test "X$pkg" = "X$p"; then
  9115. enable_fast_install=yes
  9116. fi
  9117. done
  9118. IFS="$lt_save_ifs"
  9119. ;;
  9120. esac
  9121. else
  9122. enable_fast_install=yes
  9123. fi
  9124. # This can be used to rebuild libtool when needed
  9125. LIBTOOL_DEPS="$ltmain"
  9126. # Always use our own libtool.
  9127. LIBTOOL='$(SHELL) $(top_builddir)/libtool'
  9128. test -z "$LN_S" && LN_S="ln -s"
  9129. if test -n "${ZSH_VERSION+set}" ; then
  9130. setopt NO_GLOB_SUBST
  9131. fi
  9132. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
  9133. $as_echo_n "checking for objdir... " >&6; }
  9134. if ${lt_cv_objdir+:} false; then :
  9135. $as_echo_n "(cached) " >&6
  9136. else
  9137. rm -f .libs 2>/dev/null
  9138. mkdir .libs 2>/dev/null
  9139. if test -d .libs; then
  9140. lt_cv_objdir=.libs
  9141. else
  9142. # MS-DOS does not allow filenames that begin with a dot.
  9143. lt_cv_objdir=_libs
  9144. fi
  9145. rmdir .libs 2>/dev/null
  9146. fi
  9147. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
  9148. $as_echo "$lt_cv_objdir" >&6; }
  9149. objdir=$lt_cv_objdir
  9150. cat >>confdefs.h <<_ACEOF
  9151. #define LT_OBJDIR "$lt_cv_objdir/"
  9152. _ACEOF
  9153. case $host_os in
  9154. aix3*)
  9155. # AIX sometimes has problems with the GCC collect2 program. For some
  9156. # reason, if we set the COLLECT_NAMES environment variable, the problems
  9157. # vanish in a puff of smoke.
  9158. if test "X${COLLECT_NAMES+set}" != Xset; then
  9159. COLLECT_NAMES=
  9160. export COLLECT_NAMES
  9161. fi
  9162. ;;
  9163. esac
  9164. # Global variables:
  9165. ofile=libtool
  9166. can_build_shared=yes
  9167. # All known linkers require a `.a' archive for static linking (except MSVC,
  9168. # which needs '.lib').
  9169. libext=a
  9170. with_gnu_ld="$lt_cv_prog_gnu_ld"
  9171. old_CC="$CC"
  9172. old_CFLAGS="$CFLAGS"
  9173. # Set sane defaults for various variables
  9174. test -z "$CC" && CC=cc
  9175. test -z "$LTCC" && LTCC=$CC
  9176. test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
  9177. test -z "$LD" && LD=ld
  9178. test -z "$ac_objext" && ac_objext=o
  9179. for cc_temp in $compiler""; do
  9180. case $cc_temp in
  9181. compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
  9182. distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
  9183. \-*) ;;
  9184. *) break;;
  9185. esac
  9186. done
  9187. cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
  9188. # Only perform the check for file, if the check method requires it
  9189. test -z "$MAGIC_CMD" && MAGIC_CMD=file
  9190. case $deplibs_check_method in
  9191. file_magic*)
  9192. if test "$file_magic_cmd" = '$MAGIC_CMD'; then
  9193. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
  9194. $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
  9195. if ${lt_cv_path_MAGIC_CMD+:} false; then :
  9196. $as_echo_n "(cached) " >&6
  9197. else
  9198. case $MAGIC_CMD in
  9199. [\\/*] | ?:[\\/]*)
  9200. lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
  9201. ;;
  9202. *)
  9203. lt_save_MAGIC_CMD="$MAGIC_CMD"
  9204. lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  9205. ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
  9206. for ac_dir in $ac_dummy; do
  9207. IFS="$lt_save_ifs"
  9208. test -z "$ac_dir" && ac_dir=.
  9209. if test -f $ac_dir/${ac_tool_prefix}file; then
  9210. lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
  9211. if test -n "$file_magic_test_file"; then
  9212. case $deplibs_check_method in
  9213. "file_magic "*)
  9214. file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
  9215. MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
  9216. if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
  9217. $EGREP "$file_magic_regex" > /dev/null; then
  9218. :
  9219. else
  9220. cat <<_LT_EOF 1>&2
  9221. *** Warning: the command libtool uses to detect shared libraries,
  9222. *** $file_magic_cmd, produces output that libtool cannot recognize.
  9223. *** The result is that libtool may fail to recognize shared libraries
  9224. *** as such. This will affect the creation of libtool libraries that
  9225. *** depend on shared libraries, but programs linked with such libtool
  9226. *** libraries will work regardless of this problem. Nevertheless, you
  9227. *** may want to report the problem to your system manager and/or to
  9228. *** [email protected]
  9229. _LT_EOF
  9230. fi ;;
  9231. esac
  9232. fi
  9233. break
  9234. fi
  9235. done
  9236. IFS="$lt_save_ifs"
  9237. MAGIC_CMD="$lt_save_MAGIC_CMD"
  9238. ;;
  9239. esac
  9240. fi
  9241. MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
  9242. if test -n "$MAGIC_CMD"; then
  9243. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
  9244. $as_echo "$MAGIC_CMD" >&6; }
  9245. else
  9246. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  9247. $as_echo "no" >&6; }
  9248. fi
  9249. if test -z "$lt_cv_path_MAGIC_CMD"; then
  9250. if test -n "$ac_tool_prefix"; then
  9251. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
  9252. $as_echo_n "checking for file... " >&6; }
  9253. if ${lt_cv_path_MAGIC_CMD+:} false; then :
  9254. $as_echo_n "(cached) " >&6
  9255. else
  9256. case $MAGIC_CMD in
  9257. [\\/*] | ?:[\\/]*)
  9258. lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
  9259. ;;
  9260. *)
  9261. lt_save_MAGIC_CMD="$MAGIC_CMD"
  9262. lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  9263. ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
  9264. for ac_dir in $ac_dummy; do
  9265. IFS="$lt_save_ifs"
  9266. test -z "$ac_dir" && ac_dir=.
  9267. if test -f $ac_dir/file; then
  9268. lt_cv_path_MAGIC_CMD="$ac_dir/file"
  9269. if test -n "$file_magic_test_file"; then
  9270. case $deplibs_check_method in
  9271. "file_magic "*)
  9272. file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
  9273. MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
  9274. if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
  9275. $EGREP "$file_magic_regex" > /dev/null; then
  9276. :
  9277. else
  9278. cat <<_LT_EOF 1>&2
  9279. *** Warning: the command libtool uses to detect shared libraries,
  9280. *** $file_magic_cmd, produces output that libtool cannot recognize.
  9281. *** The result is that libtool may fail to recognize shared libraries
  9282. *** as such. This will affect the creation of libtool libraries that
  9283. *** depend on shared libraries, but programs linked with such libtool
  9284. *** libraries will work regardless of this problem. Nevertheless, you
  9285. *** may want to report the problem to your system manager and/or to
  9286. *** [email protected]
  9287. _LT_EOF
  9288. fi ;;
  9289. esac
  9290. fi
  9291. break
  9292. fi
  9293. done
  9294. IFS="$lt_save_ifs"
  9295. MAGIC_CMD="$lt_save_MAGIC_CMD"
  9296. ;;
  9297. esac
  9298. fi
  9299. MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
  9300. if test -n "$MAGIC_CMD"; then
  9301. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
  9302. $as_echo "$MAGIC_CMD" >&6; }
  9303. else
  9304. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  9305. $as_echo "no" >&6; }
  9306. fi
  9307. else
  9308. MAGIC_CMD=:
  9309. fi
  9310. fi
  9311. fi
  9312. ;;
  9313. esac
  9314. # Use C for the default configuration in the libtool script
  9315. lt_save_CC="$CC"
  9316. ac_ext=c
  9317. ac_cpp='$CPP $CPPFLAGS'
  9318. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  9319. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  9320. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  9321. # Source file extension for C test sources.
  9322. ac_ext=c
  9323. # Object file extension for compiled C test sources.
  9324. objext=o
  9325. objext=$objext
  9326. # Code to be used in simple compile tests
  9327. lt_simple_compile_test_code="int some_variable = 0;"
  9328. # Code to be used in simple link tests
  9329. lt_simple_link_test_code='int main(){return(0);}'
  9330. # If no C compiler was specified, use CC.
  9331. LTCC=${LTCC-"$CC"}
  9332. # If no C compiler flags were specified, use CFLAGS.
  9333. LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
  9334. # Allow CC to be a program name with arguments.
  9335. compiler=$CC
  9336. # Save the default compiler, since it gets overwritten when the other
  9337. # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
  9338. compiler_DEFAULT=$CC
  9339. # save warnings/boilerplate of simple test code
  9340. ac_outfile=conftest.$ac_objext
  9341. echo "$lt_simple_compile_test_code" >conftest.$ac_ext
  9342. eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  9343. _lt_compiler_boilerplate=`cat conftest.err`
  9344. $RM conftest*
  9345. ac_outfile=conftest.$ac_objext
  9346. echo "$lt_simple_link_test_code" >conftest.$ac_ext
  9347. eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  9348. _lt_linker_boilerplate=`cat conftest.err`
  9349. $RM -r conftest*
  9350. if test -n "$compiler"; then
  9351. lt_prog_compiler_no_builtin_flag=
  9352. if test "$GCC" = yes; then
  9353. case $cc_basename in
  9354. nvcc*)
  9355. lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
  9356. *)
  9357. lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
  9358. esac
  9359. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
  9360. $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
  9361. if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
  9362. $as_echo_n "(cached) " >&6
  9363. else
  9364. lt_cv_prog_compiler_rtti_exceptions=no
  9365. ac_outfile=conftest.$ac_objext
  9366. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  9367. lt_compiler_flag="-fno-rtti -fno-exceptions"
  9368. # Insert the option either (1) after the last *FLAGS variable, or
  9369. # (2) before a word containing "conftest.", or (3) at the end.
  9370. # Note that $ac_compile itself does not contain backslashes and begins
  9371. # with a dollar sign (not a hyphen), so the echo should work correctly.
  9372. # The option is referenced via a variable to avoid confusing sed.
  9373. lt_compile=`echo "$ac_compile" | $SED \
  9374. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  9375. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  9376. -e 's:$: $lt_compiler_flag:'`
  9377. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  9378. (eval "$lt_compile" 2>conftest.err)
  9379. ac_status=$?
  9380. cat conftest.err >&5
  9381. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9382. if (exit $ac_status) && test -s "$ac_outfile"; then
  9383. # The compiler can only warn and ignore the option if not recognized
  9384. # So say no if there are warnings other than the usual output.
  9385. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
  9386. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  9387. if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
  9388. lt_cv_prog_compiler_rtti_exceptions=yes
  9389. fi
  9390. fi
  9391. $RM conftest*
  9392. fi
  9393. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
  9394. $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
  9395. if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
  9396. lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
  9397. else
  9398. :
  9399. fi
  9400. fi
  9401. lt_prog_compiler_wl=
  9402. lt_prog_compiler_pic=
  9403. lt_prog_compiler_static=
  9404. if test "$GCC" = yes; then
  9405. lt_prog_compiler_wl='-Wl,'
  9406. lt_prog_compiler_static='-static'
  9407. case $host_os in
  9408. aix*)
  9409. # All AIX code is PIC.
  9410. if test "$host_cpu" = ia64; then
  9411. # AIX 5 now supports IA64 processor
  9412. lt_prog_compiler_static='-Bstatic'
  9413. fi
  9414. ;;
  9415. amigaos*)
  9416. case $host_cpu in
  9417. powerpc)
  9418. # see comment about AmigaOS4 .so support
  9419. lt_prog_compiler_pic='-fPIC'
  9420. ;;
  9421. m68k)
  9422. # FIXME: we need at least 68020 code to build shared libraries, but
  9423. # adding the `-m68020' flag to GCC prevents building anything better,
  9424. # like `-m68040'.
  9425. lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
  9426. ;;
  9427. esac
  9428. ;;
  9429. beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
  9430. # PIC is the default for these OSes.
  9431. ;;
  9432. mingw* | cygwin* | pw32* | os2* | cegcc*)
  9433. # This hack is so that the source file can tell whether it is being
  9434. # built for inclusion in a dll (and should export symbols for example).
  9435. # Although the cygwin gcc ignores -fPIC, still need this for old-style
  9436. # (--disable-auto-import) libraries
  9437. lt_prog_compiler_pic='-DDLL_EXPORT'
  9438. ;;
  9439. darwin* | rhapsody*)
  9440. # PIC is the default on this platform
  9441. # Common symbols not allowed in MH_DYLIB files
  9442. lt_prog_compiler_pic='-fno-common'
  9443. ;;
  9444. haiku*)
  9445. # PIC is the default for Haiku.
  9446. # The "-static" flag exists, but is broken.
  9447. lt_prog_compiler_static=
  9448. ;;
  9449. hpux*)
  9450. # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
  9451. # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
  9452. # sets the default TLS model and affects inlining.
  9453. case $host_cpu in
  9454. hppa*64*)
  9455. # +Z the default
  9456. ;;
  9457. *)
  9458. lt_prog_compiler_pic='-fPIC'
  9459. ;;
  9460. esac
  9461. ;;
  9462. interix[3-9]*)
  9463. # Interix 3.x gcc -fpic/-fPIC options generate broken code.
  9464. # Instead, we relocate shared libraries at runtime.
  9465. ;;
  9466. msdosdjgpp*)
  9467. # Just because we use GCC doesn't mean we suddenly get shared libraries
  9468. # on systems that don't support them.
  9469. lt_prog_compiler_can_build_shared=no
  9470. enable_shared=no
  9471. ;;
  9472. *nto* | *qnx*)
  9473. # QNX uses GNU C++, but need to define -shared option too, otherwise
  9474. # it will coredump.
  9475. lt_prog_compiler_pic='-fPIC -shared'
  9476. ;;
  9477. sysv4*MP*)
  9478. if test -d /usr/nec; then
  9479. lt_prog_compiler_pic=-Kconform_pic
  9480. fi
  9481. ;;
  9482. *)
  9483. lt_prog_compiler_pic='-fPIC'
  9484. ;;
  9485. esac
  9486. case $cc_basename in
  9487. nvcc*) # Cuda Compiler Driver 2.2
  9488. lt_prog_compiler_wl='-Xlinker '
  9489. if test -n "$lt_prog_compiler_pic"; then
  9490. lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
  9491. fi
  9492. ;;
  9493. esac
  9494. else
  9495. # PORTME Check for flag to pass linker flags through the system compiler.
  9496. case $host_os in
  9497. aix*)
  9498. lt_prog_compiler_wl='-Wl,'
  9499. if test "$host_cpu" = ia64; then
  9500. # AIX 5 now supports IA64 processor
  9501. lt_prog_compiler_static='-Bstatic'
  9502. else
  9503. lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
  9504. fi
  9505. ;;
  9506. mingw* | cygwin* | pw32* | os2* | cegcc*)
  9507. # This hack is so that the source file can tell whether it is being
  9508. # built for inclusion in a dll (and should export symbols for example).
  9509. lt_prog_compiler_pic='-DDLL_EXPORT'
  9510. ;;
  9511. hpux9* | hpux10* | hpux11*)
  9512. lt_prog_compiler_wl='-Wl,'
  9513. # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
  9514. # not for PA HP-UX.
  9515. case $host_cpu in
  9516. hppa*64*|ia64*)
  9517. # +Z the default
  9518. ;;
  9519. *)
  9520. lt_prog_compiler_pic='+Z'
  9521. ;;
  9522. esac
  9523. # Is there a better lt_prog_compiler_static that works with the bundled CC?
  9524. lt_prog_compiler_static='${wl}-a ${wl}archive'
  9525. ;;
  9526. irix5* | irix6* | nonstopux*)
  9527. lt_prog_compiler_wl='-Wl,'
  9528. # PIC (with -KPIC) is the default.
  9529. lt_prog_compiler_static='-non_shared'
  9530. ;;
  9531. linux* | k*bsd*-gnu | kopensolaris*-gnu)
  9532. case $cc_basename in
  9533. # old Intel for x86_64 which still supported -KPIC.
  9534. ecc*)
  9535. lt_prog_compiler_wl='-Wl,'
  9536. lt_prog_compiler_pic='-KPIC'
  9537. lt_prog_compiler_static='-static'
  9538. ;;
  9539. # icc used to be incompatible with GCC.
  9540. # ICC 10 doesn't accept -KPIC any more.
  9541. icc* | ifort*)
  9542. lt_prog_compiler_wl='-Wl,'
  9543. lt_prog_compiler_pic='-fPIC'
  9544. lt_prog_compiler_static='-static'
  9545. ;;
  9546. # Lahey Fortran 8.1.
  9547. lf95*)
  9548. lt_prog_compiler_wl='-Wl,'
  9549. lt_prog_compiler_pic='--shared'
  9550. lt_prog_compiler_static='--static'
  9551. ;;
  9552. nagfor*)
  9553. # NAG Fortran compiler
  9554. lt_prog_compiler_wl='-Wl,-Wl,,'
  9555. lt_prog_compiler_pic='-PIC'
  9556. lt_prog_compiler_static='-Bstatic'
  9557. ;;
  9558. pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
  9559. # Portland Group compilers (*not* the Pentium gcc compiler,
  9560. # which looks to be a dead project)
  9561. lt_prog_compiler_wl='-Wl,'
  9562. lt_prog_compiler_pic='-fpic'
  9563. lt_prog_compiler_static='-Bstatic'
  9564. ;;
  9565. ccc*)
  9566. lt_prog_compiler_wl='-Wl,'
  9567. # All Alpha code is PIC.
  9568. lt_prog_compiler_static='-non_shared'
  9569. ;;
  9570. xl* | bgxl* | bgf* | mpixl*)
  9571. # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
  9572. lt_prog_compiler_wl='-Wl,'
  9573. lt_prog_compiler_pic='-qpic'
  9574. lt_prog_compiler_static='-qstaticlink'
  9575. ;;
  9576. *)
  9577. case `$CC -V 2>&1 | sed 5q` in
  9578. *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
  9579. # Sun Fortran 8.3 passes all unrecognized flags to the linker
  9580. lt_prog_compiler_pic='-KPIC'
  9581. lt_prog_compiler_static='-Bstatic'
  9582. lt_prog_compiler_wl=''
  9583. ;;
  9584. *Sun\ F* | *Sun*Fortran*)
  9585. lt_prog_compiler_pic='-KPIC'
  9586. lt_prog_compiler_static='-Bstatic'
  9587. lt_prog_compiler_wl='-Qoption ld '
  9588. ;;
  9589. *Sun\ C*)
  9590. # Sun C 5.9
  9591. lt_prog_compiler_pic='-KPIC'
  9592. lt_prog_compiler_static='-Bstatic'
  9593. lt_prog_compiler_wl='-Wl,'
  9594. ;;
  9595. *Intel*\ [CF]*Compiler*)
  9596. lt_prog_compiler_wl='-Wl,'
  9597. lt_prog_compiler_pic='-fPIC'
  9598. lt_prog_compiler_static='-static'
  9599. ;;
  9600. *Portland\ Group*)
  9601. lt_prog_compiler_wl='-Wl,'
  9602. lt_prog_compiler_pic='-fpic'
  9603. lt_prog_compiler_static='-Bstatic'
  9604. ;;
  9605. esac
  9606. ;;
  9607. esac
  9608. ;;
  9609. newsos6)
  9610. lt_prog_compiler_pic='-KPIC'
  9611. lt_prog_compiler_static='-Bstatic'
  9612. ;;
  9613. *nto* | *qnx*)
  9614. # QNX uses GNU C++, but need to define -shared option too, otherwise
  9615. # it will coredump.
  9616. lt_prog_compiler_pic='-fPIC -shared'
  9617. ;;
  9618. osf3* | osf4* | osf5*)
  9619. lt_prog_compiler_wl='-Wl,'
  9620. # All OSF/1 code is PIC.
  9621. lt_prog_compiler_static='-non_shared'
  9622. ;;
  9623. rdos*)
  9624. lt_prog_compiler_static='-non_shared'
  9625. ;;
  9626. solaris*)
  9627. lt_prog_compiler_pic='-KPIC'
  9628. lt_prog_compiler_static='-Bstatic'
  9629. case $cc_basename in
  9630. f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
  9631. lt_prog_compiler_wl='-Qoption ld ';;
  9632. *)
  9633. lt_prog_compiler_wl='-Wl,';;
  9634. esac
  9635. ;;
  9636. sunos4*)
  9637. lt_prog_compiler_wl='-Qoption ld '
  9638. lt_prog_compiler_pic='-PIC'
  9639. lt_prog_compiler_static='-Bstatic'
  9640. ;;
  9641. sysv4 | sysv4.2uw2* | sysv4.3*)
  9642. lt_prog_compiler_wl='-Wl,'
  9643. lt_prog_compiler_pic='-KPIC'
  9644. lt_prog_compiler_static='-Bstatic'
  9645. ;;
  9646. sysv4*MP*)
  9647. if test -d /usr/nec ;then
  9648. lt_prog_compiler_pic='-Kconform_pic'
  9649. lt_prog_compiler_static='-Bstatic'
  9650. fi
  9651. ;;
  9652. sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
  9653. lt_prog_compiler_wl='-Wl,'
  9654. lt_prog_compiler_pic='-KPIC'
  9655. lt_prog_compiler_static='-Bstatic'
  9656. ;;
  9657. unicos*)
  9658. lt_prog_compiler_wl='-Wl,'
  9659. lt_prog_compiler_can_build_shared=no
  9660. ;;
  9661. uts4*)
  9662. lt_prog_compiler_pic='-pic'
  9663. lt_prog_compiler_static='-Bstatic'
  9664. ;;
  9665. *)
  9666. lt_prog_compiler_can_build_shared=no
  9667. ;;
  9668. esac
  9669. fi
  9670. case $host_os in
  9671. # For platforms which do not support PIC, -DPIC is meaningless:
  9672. *djgpp*)
  9673. lt_prog_compiler_pic=
  9674. ;;
  9675. *)
  9676. lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
  9677. ;;
  9678. esac
  9679. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
  9680. $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
  9681. if ${lt_cv_prog_compiler_pic+:} false; then :
  9682. $as_echo_n "(cached) " >&6
  9683. else
  9684. lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
  9685. fi
  9686. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
  9687. $as_echo "$lt_cv_prog_compiler_pic" >&6; }
  9688. lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
  9689. #
  9690. # Check to make sure the PIC flag actually works.
  9691. #
  9692. if test -n "$lt_prog_compiler_pic"; then
  9693. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
  9694. $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
  9695. if ${lt_cv_prog_compiler_pic_works+:} false; then :
  9696. $as_echo_n "(cached) " >&6
  9697. else
  9698. lt_cv_prog_compiler_pic_works=no
  9699. ac_outfile=conftest.$ac_objext
  9700. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  9701. lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
  9702. # Insert the option either (1) after the last *FLAGS variable, or
  9703. # (2) before a word containing "conftest.", or (3) at the end.
  9704. # Note that $ac_compile itself does not contain backslashes and begins
  9705. # with a dollar sign (not a hyphen), so the echo should work correctly.
  9706. # The option is referenced via a variable to avoid confusing sed.
  9707. lt_compile=`echo "$ac_compile" | $SED \
  9708. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  9709. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  9710. -e 's:$: $lt_compiler_flag:'`
  9711. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  9712. (eval "$lt_compile" 2>conftest.err)
  9713. ac_status=$?
  9714. cat conftest.err >&5
  9715. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9716. if (exit $ac_status) && test -s "$ac_outfile"; then
  9717. # The compiler can only warn and ignore the option if not recognized
  9718. # So say no if there are warnings other than the usual output.
  9719. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
  9720. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  9721. if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
  9722. lt_cv_prog_compiler_pic_works=yes
  9723. fi
  9724. fi
  9725. $RM conftest*
  9726. fi
  9727. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
  9728. $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
  9729. if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
  9730. case $lt_prog_compiler_pic in
  9731. "" | " "*) ;;
  9732. *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
  9733. esac
  9734. else
  9735. lt_prog_compiler_pic=
  9736. lt_prog_compiler_can_build_shared=no
  9737. fi
  9738. fi
  9739. #
  9740. # Check to make sure the static flag actually works.
  9741. #
  9742. wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
  9743. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
  9744. $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
  9745. if ${lt_cv_prog_compiler_static_works+:} false; then :
  9746. $as_echo_n "(cached) " >&6
  9747. else
  9748. lt_cv_prog_compiler_static_works=no
  9749. save_LDFLAGS="$LDFLAGS"
  9750. LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
  9751. echo "$lt_simple_link_test_code" > conftest.$ac_ext
  9752. if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
  9753. # The linker can only warn and ignore the option if not recognized
  9754. # So say no if there are warnings
  9755. if test -s conftest.err; then
  9756. # Append any errors to the config.log.
  9757. cat conftest.err 1>&5
  9758. $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
  9759. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  9760. if diff conftest.exp conftest.er2 >/dev/null; then
  9761. lt_cv_prog_compiler_static_works=yes
  9762. fi
  9763. else
  9764. lt_cv_prog_compiler_static_works=yes
  9765. fi
  9766. fi
  9767. $RM -r conftest*
  9768. LDFLAGS="$save_LDFLAGS"
  9769. fi
  9770. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
  9771. $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
  9772. if test x"$lt_cv_prog_compiler_static_works" = xyes; then
  9773. :
  9774. else
  9775. lt_prog_compiler_static=
  9776. fi
  9777. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
  9778. $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
  9779. if ${lt_cv_prog_compiler_c_o+:} false; then :
  9780. $as_echo_n "(cached) " >&6
  9781. else
  9782. lt_cv_prog_compiler_c_o=no
  9783. $RM -r conftest 2>/dev/null
  9784. mkdir conftest
  9785. cd conftest
  9786. mkdir out
  9787. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  9788. lt_compiler_flag="-o out/conftest2.$ac_objext"
  9789. # Insert the option either (1) after the last *FLAGS variable, or
  9790. # (2) before a word containing "conftest.", or (3) at the end.
  9791. # Note that $ac_compile itself does not contain backslashes and begins
  9792. # with a dollar sign (not a hyphen), so the echo should work correctly.
  9793. lt_compile=`echo "$ac_compile" | $SED \
  9794. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  9795. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  9796. -e 's:$: $lt_compiler_flag:'`
  9797. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  9798. (eval "$lt_compile" 2>out/conftest.err)
  9799. ac_status=$?
  9800. cat out/conftest.err >&5
  9801. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9802. if (exit $ac_status) && test -s out/conftest2.$ac_objext
  9803. then
  9804. # The compiler can only warn and ignore the option if not recognized
  9805. # So say no if there are warnings
  9806. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
  9807. $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
  9808. if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
  9809. lt_cv_prog_compiler_c_o=yes
  9810. fi
  9811. fi
  9812. chmod u+w . 2>&5
  9813. $RM conftest*
  9814. # SGI C++ compiler will create directory out/ii_files/ for
  9815. # template instantiation
  9816. test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
  9817. $RM out/* && rmdir out
  9818. cd ..
  9819. $RM -r conftest
  9820. $RM conftest*
  9821. fi
  9822. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
  9823. $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
  9824. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
  9825. $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
  9826. if ${lt_cv_prog_compiler_c_o+:} false; then :
  9827. $as_echo_n "(cached) " >&6
  9828. else
  9829. lt_cv_prog_compiler_c_o=no
  9830. $RM -r conftest 2>/dev/null
  9831. mkdir conftest
  9832. cd conftest
  9833. mkdir out
  9834. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  9835. lt_compiler_flag="-o out/conftest2.$ac_objext"
  9836. # Insert the option either (1) after the last *FLAGS variable, or
  9837. # (2) before a word containing "conftest.", or (3) at the end.
  9838. # Note that $ac_compile itself does not contain backslashes and begins
  9839. # with a dollar sign (not a hyphen), so the echo should work correctly.
  9840. lt_compile=`echo "$ac_compile" | $SED \
  9841. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  9842. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  9843. -e 's:$: $lt_compiler_flag:'`
  9844. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  9845. (eval "$lt_compile" 2>out/conftest.err)
  9846. ac_status=$?
  9847. cat out/conftest.err >&5
  9848. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9849. if (exit $ac_status) && test -s out/conftest2.$ac_objext
  9850. then
  9851. # The compiler can only warn and ignore the option if not recognized
  9852. # So say no if there are warnings
  9853. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
  9854. $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
  9855. if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
  9856. lt_cv_prog_compiler_c_o=yes
  9857. fi
  9858. fi
  9859. chmod u+w . 2>&5
  9860. $RM conftest*
  9861. # SGI C++ compiler will create directory out/ii_files/ for
  9862. # template instantiation
  9863. test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
  9864. $RM out/* && rmdir out
  9865. cd ..
  9866. $RM -r conftest
  9867. $RM conftest*
  9868. fi
  9869. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
  9870. $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
  9871. hard_links="nottested"
  9872. if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
  9873. # do not overwrite the value of need_locks provided by the user
  9874. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
  9875. $as_echo_n "checking if we can lock with hard links... " >&6; }
  9876. hard_links=yes
  9877. $RM conftest*
  9878. ln conftest.a conftest.b 2>/dev/null && hard_links=no
  9879. touch conftest.a
  9880. ln conftest.a conftest.b 2>&5 || hard_links=no
  9881. ln conftest.a conftest.b 2>/dev/null && hard_links=no
  9882. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
  9883. $as_echo "$hard_links" >&6; }
  9884. if test "$hard_links" = no; then
  9885. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
  9886. $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
  9887. need_locks=warn
  9888. fi
  9889. else
  9890. need_locks=no
  9891. fi
  9892. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
  9893. $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
  9894. runpath_var=
  9895. allow_undefined_flag=
  9896. always_export_symbols=no
  9897. archive_cmds=
  9898. archive_expsym_cmds=
  9899. compiler_needs_object=no
  9900. enable_shared_with_static_runtimes=no
  9901. export_dynamic_flag_spec=
  9902. export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
  9903. hardcode_automatic=no
  9904. hardcode_direct=no
  9905. hardcode_direct_absolute=no
  9906. hardcode_libdir_flag_spec=
  9907. hardcode_libdir_separator=
  9908. hardcode_minus_L=no
  9909. hardcode_shlibpath_var=unsupported
  9910. inherit_rpath=no
  9911. link_all_deplibs=unknown
  9912. module_cmds=
  9913. module_expsym_cmds=
  9914. old_archive_from_new_cmds=
  9915. old_archive_from_expsyms_cmds=
  9916. thread_safe_flag_spec=
  9917. whole_archive_flag_spec=
  9918. # include_expsyms should be a list of space-separated symbols to be *always*
  9919. # included in the symbol list
  9920. include_expsyms=
  9921. # exclude_expsyms can be an extended regexp of symbols to exclude
  9922. # it will be wrapped by ` (' and `)$', so one must not match beginning or
  9923. # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
  9924. # as well as any symbol that contains `d'.
  9925. exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
  9926. # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
  9927. # platforms (ab)use it in PIC code, but their linkers get confused if
  9928. # the symbol is explicitly referenced. Since portable code cannot
  9929. # rely on this symbol name, it's probably fine to never include it in
  9930. # preloaded symbol tables.
  9931. # Exclude shared library initialization/finalization symbols.
  9932. extract_expsyms_cmds=
  9933. case $host_os in
  9934. cygwin* | mingw* | pw32* | cegcc*)
  9935. # FIXME: the MSVC++ port hasn't been tested in a loooong time
  9936. # When not using gcc, we currently assume that we are using
  9937. # Microsoft Visual C++.
  9938. if test "$GCC" != yes; then
  9939. with_gnu_ld=no
  9940. fi
  9941. ;;
  9942. interix*)
  9943. # we just hope/assume this is gcc and not c89 (= MSVC++)
  9944. with_gnu_ld=yes
  9945. ;;
  9946. openbsd*)
  9947. with_gnu_ld=no
  9948. ;;
  9949. esac
  9950. ld_shlibs=yes
  9951. # On some targets, GNU ld is compatible enough with the native linker
  9952. # that we're better off using the native interface for both.
  9953. lt_use_gnu_ld_interface=no
  9954. if test "$with_gnu_ld" = yes; then
  9955. case $host_os in
  9956. aix*)
  9957. # The AIX port of GNU ld has always aspired to compatibility
  9958. # with the native linker. However, as the warning in the GNU ld
  9959. # block says, versions before 2.19.5* couldn't really create working
  9960. # shared libraries, regardless of the interface used.
  9961. case `$LD -v 2>&1` in
  9962. *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
  9963. *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
  9964. *\ \(GNU\ Binutils\)\ [3-9]*) ;;
  9965. *)
  9966. lt_use_gnu_ld_interface=yes
  9967. ;;
  9968. esac
  9969. ;;
  9970. *)
  9971. lt_use_gnu_ld_interface=yes
  9972. ;;
  9973. esac
  9974. fi
  9975. if test "$lt_use_gnu_ld_interface" = yes; then
  9976. # If archive_cmds runs LD, not CC, wlarc should be empty
  9977. wlarc='${wl}'
  9978. # Set some defaults for GNU ld with shared library support. These
  9979. # are reset later if shared libraries are not supported. Putting them
  9980. # here allows them to be overridden if necessary.
  9981. runpath_var=LD_RUN_PATH
  9982. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  9983. export_dynamic_flag_spec='${wl}--export-dynamic'
  9984. # ancient GNU ld didn't support --whole-archive et. al.
  9985. if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
  9986. whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
  9987. else
  9988. whole_archive_flag_spec=
  9989. fi
  9990. supports_anon_versioning=no
  9991. case `$LD -v 2>&1` in
  9992. *GNU\ gold*) supports_anon_versioning=yes ;;
  9993. *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
  9994. *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
  9995. *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
  9996. *\ 2.11.*) ;; # other 2.11 versions
  9997. *) supports_anon_versioning=yes ;;
  9998. esac
  9999. # See if GNU ld supports shared libraries.
  10000. case $host_os in
  10001. aix[3-9]*)
  10002. # On AIX/PPC, the GNU linker is very broken
  10003. if test "$host_cpu" != ia64; then
  10004. ld_shlibs=no
  10005. cat <<_LT_EOF 1>&2
  10006. *** Warning: the GNU linker, at least up to release 2.19, is reported
  10007. *** to be unable to reliably create shared libraries on AIX.
  10008. *** Therefore, libtool is disabling shared libraries support. If you
  10009. *** really care for shared libraries, you may want to install binutils
  10010. *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
  10011. *** You will then need to restart the configuration process.
  10012. _LT_EOF
  10013. fi
  10014. ;;
  10015. amigaos*)
  10016. case $host_cpu in
  10017. powerpc)
  10018. # see comment about AmigaOS4 .so support
  10019. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  10020. archive_expsym_cmds=''
  10021. ;;
  10022. m68k)
  10023. 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)'
  10024. hardcode_libdir_flag_spec='-L$libdir'
  10025. hardcode_minus_L=yes
  10026. ;;
  10027. esac
  10028. ;;
  10029. beos*)
  10030. if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  10031. allow_undefined_flag=unsupported
  10032. # Joseph Beckenbach <[email protected]> says some releases of gcc
  10033. # support --undefined. This deserves some investigation. FIXME
  10034. archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  10035. else
  10036. ld_shlibs=no
  10037. fi
  10038. ;;
  10039. cygwin* | mingw* | pw32* | cegcc*)
  10040. # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
  10041. # as there is no search path for DLLs.
  10042. hardcode_libdir_flag_spec='-L$libdir'
  10043. export_dynamic_flag_spec='${wl}--export-all-symbols'
  10044. allow_undefined_flag=unsupported
  10045. always_export_symbols=no
  10046. enable_shared_with_static_runtimes=yes
  10047. 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'
  10048. exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
  10049. if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
  10050. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
  10051. # If the export-symbols file already is a .def file (1st line
  10052. # is EXPORTS), use it as is; otherwise, prepend...
  10053. archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
  10054. cp $export_symbols $output_objdir/$soname.def;
  10055. else
  10056. echo EXPORTS > $output_objdir/$soname.def;
  10057. cat $export_symbols >> $output_objdir/$soname.def;
  10058. fi~
  10059. $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
  10060. else
  10061. ld_shlibs=no
  10062. fi
  10063. ;;
  10064. haiku*)
  10065. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  10066. link_all_deplibs=yes
  10067. ;;
  10068. interix[3-9]*)
  10069. hardcode_direct=no
  10070. hardcode_shlibpath_var=no
  10071. hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
  10072. export_dynamic_flag_spec='${wl}-E'
  10073. # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
  10074. # Instead, shared libraries are loaded at an image base (0x10000000 by
  10075. # default) and relocated if they conflict, which is a slow very memory
  10076. # consuming and fragmenting process. To avoid this, we pick a random,
  10077. # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
  10078. # time. Moving up from 0x10000000 also allows more sbrk(2) space.
  10079. archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
  10080. 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'
  10081. ;;
  10082. gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
  10083. tmp_diet=no
  10084. if test "$host_os" = linux-dietlibc; then
  10085. case $cc_basename in
  10086. diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
  10087. esac
  10088. fi
  10089. if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
  10090. && test "$tmp_diet" = no
  10091. then
  10092. tmp_addflag=' $pic_flag'
  10093. tmp_sharedflag='-shared'
  10094. case $cc_basename,$host_cpu in
  10095. pgcc*) # Portland Group C compiler
  10096. 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'
  10097. tmp_addflag=' $pic_flag'
  10098. ;;
  10099. pgf77* | pgf90* | pgf95* | pgfortran*)
  10100. # Portland Group f77 and f90 compilers
  10101. 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'
  10102. tmp_addflag=' $pic_flag -Mnomain' ;;
  10103. ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
  10104. tmp_addflag=' -i_dynamic' ;;
  10105. efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
  10106. tmp_addflag=' -i_dynamic -nofor_main' ;;
  10107. ifc* | ifort*) # Intel Fortran compiler
  10108. tmp_addflag=' -nofor_main' ;;
  10109. lf95*) # Lahey Fortran 8.1
  10110. whole_archive_flag_spec=
  10111. tmp_sharedflag='--shared' ;;
  10112. xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
  10113. tmp_sharedflag='-qmkshrobj'
  10114. tmp_addflag= ;;
  10115. nvcc*) # Cuda Compiler Driver 2.2
  10116. 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'
  10117. compiler_needs_object=yes
  10118. ;;
  10119. esac
  10120. case `$CC -V 2>&1 | sed 5q` in
  10121. *Sun\ C*) # Sun C 5.9
  10122. 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'
  10123. compiler_needs_object=yes
  10124. tmp_sharedflag='-G' ;;
  10125. *Sun\ F*) # Sun Fortran 8.3
  10126. tmp_sharedflag='-G' ;;
  10127. esac
  10128. archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  10129. if test "x$supports_anon_versioning" = xyes; then
  10130. archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
  10131. cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
  10132. echo "local: *; };" >> $output_objdir/$libname.ver~
  10133. $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
  10134. fi
  10135. case $cc_basename in
  10136. xlf* | bgf* | bgxlf* | mpixlf*)
  10137. # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
  10138. whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
  10139. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  10140. archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
  10141. if test "x$supports_anon_versioning" = xyes; then
  10142. archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
  10143. cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
  10144. echo "local: *; };" >> $output_objdir/$libname.ver~
  10145. $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
  10146. fi
  10147. ;;
  10148. esac
  10149. else
  10150. ld_shlibs=no
  10151. fi
  10152. ;;
  10153. netbsd*)
  10154. if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  10155. archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
  10156. wlarc=
  10157. else
  10158. archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  10159. archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  10160. fi
  10161. ;;
  10162. solaris*)
  10163. if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
  10164. ld_shlibs=no
  10165. cat <<_LT_EOF 1>&2
  10166. *** Warning: The releases 2.8.* of the GNU linker cannot reliably
  10167. *** create shared libraries on Solaris systems. Therefore, libtool
  10168. *** is disabling shared libraries support. We urge you to upgrade GNU
  10169. *** binutils to release 2.9.1 or newer. Another option is to modify
  10170. *** your PATH or compiler configuration so that the native linker is
  10171. *** used, and then restart.
  10172. _LT_EOF
  10173. elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  10174. archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  10175. archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  10176. else
  10177. ld_shlibs=no
  10178. fi
  10179. ;;
  10180. sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
  10181. case `$LD -v 2>&1` in
  10182. *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
  10183. ld_shlibs=no
  10184. cat <<_LT_EOF 1>&2
  10185. *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
  10186. *** reliably create shared libraries on SCO systems. Therefore, libtool
  10187. *** is disabling shared libraries support. We urge you to upgrade GNU
  10188. *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
  10189. *** your PATH or compiler configuration so that the native linker is
  10190. *** used, and then restart.
  10191. _LT_EOF
  10192. ;;
  10193. *)
  10194. # For security reasons, it is highly recommended that you always
  10195. # use absolute paths for naming shared libraries, and exclude the
  10196. # DT_RUNPATH tag from executables and libraries. But doing so
  10197. # requires that you compile everything twice, which is a pain.
  10198. if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  10199. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  10200. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  10201. archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  10202. else
  10203. ld_shlibs=no
  10204. fi
  10205. ;;
  10206. esac
  10207. ;;
  10208. sunos4*)
  10209. archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  10210. wlarc=
  10211. hardcode_direct=yes
  10212. hardcode_shlibpath_var=no
  10213. ;;
  10214. *)
  10215. if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  10216. archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  10217. archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  10218. else
  10219. ld_shlibs=no
  10220. fi
  10221. ;;
  10222. esac
  10223. if test "$ld_shlibs" = no; then
  10224. runpath_var=
  10225. hardcode_libdir_flag_spec=
  10226. export_dynamic_flag_spec=
  10227. whole_archive_flag_spec=
  10228. fi
  10229. else
  10230. # PORTME fill in a description of your system's linker (not GNU ld)
  10231. case $host_os in
  10232. aix3*)
  10233. allow_undefined_flag=unsupported
  10234. always_export_symbols=yes
  10235. 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'
  10236. # Note: this linker hardcodes the directories in LIBPATH if there
  10237. # are no directories specified by -L.
  10238. hardcode_minus_L=yes
  10239. if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
  10240. # Neither direct hardcoding nor static linking is supported with a
  10241. # broken collect2.
  10242. hardcode_direct=unsupported
  10243. fi
  10244. ;;
  10245. aix[4-9]*)
  10246. if test "$host_cpu" = ia64; then
  10247. # On IA64, the linker does run time linking by default, so we don't
  10248. # have to do anything special.
  10249. aix_use_runtimelinking=no
  10250. exp_sym_flag='-Bexport'
  10251. no_entry_flag=""
  10252. else
  10253. # If we're using GNU nm, then we don't want the "-C" option.
  10254. # -C means demangle to AIX nm, but means don't demangle with GNU nm
  10255. # Also, AIX nm treats weak defined symbols like other global
  10256. # defined symbols, whereas GNU nm marks them as "W".
  10257. if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
  10258. export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
  10259. else
  10260. export_symbols_cmds='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
  10261. fi
  10262. aix_use_runtimelinking=no
  10263. # Test if we are trying to use run time linking or normal
  10264. # AIX style linking. If -brtl is somewhere in LDFLAGS, we
  10265. # need to do runtime linking.
  10266. case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
  10267. for ld_flag in $LDFLAGS; do
  10268. if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
  10269. aix_use_runtimelinking=yes
  10270. break
  10271. fi
  10272. done
  10273. ;;
  10274. esac
  10275. exp_sym_flag='-bexport'
  10276. no_entry_flag='-bnoentry'
  10277. fi
  10278. # When large executables or shared objects are built, AIX ld can
  10279. # have problems creating the table of contents. If linking a library
  10280. # or program results in "error TOC overflow" add -mminimal-toc to
  10281. # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
  10282. # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
  10283. archive_cmds=''
  10284. hardcode_direct=yes
  10285. hardcode_direct_absolute=yes
  10286. hardcode_libdir_separator=':'
  10287. link_all_deplibs=yes
  10288. file_list_spec='${wl}-f,'
  10289. if test "$GCC" = yes; then
  10290. case $host_os in aix4.[012]|aix4.[012].*)
  10291. # We only want to do this on AIX 4.2 and lower, the check
  10292. # below for broken collect2 doesn't work under 4.3+
  10293. collect2name=`${CC} -print-prog-name=collect2`
  10294. if test -f "$collect2name" &&
  10295. strings "$collect2name" | $GREP resolve_lib_name >/dev/null
  10296. then
  10297. # We have reworked collect2
  10298. :
  10299. else
  10300. # We have old collect2
  10301. hardcode_direct=unsupported
  10302. # It fails to find uninstalled libraries when the uninstalled
  10303. # path is not listed in the libpath. Setting hardcode_minus_L
  10304. # to unsupported forces relinking
  10305. hardcode_minus_L=yes
  10306. hardcode_libdir_flag_spec='-L$libdir'
  10307. hardcode_libdir_separator=
  10308. fi
  10309. ;;
  10310. esac
  10311. shared_flag='-shared'
  10312. if test "$aix_use_runtimelinking" = yes; then
  10313. shared_flag="$shared_flag "'${wl}-G'
  10314. fi
  10315. else
  10316. # not using gcc
  10317. if test "$host_cpu" = ia64; then
  10318. # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
  10319. # chokes on -Wl,-G. The following line is correct:
  10320. shared_flag='-G'
  10321. else
  10322. if test "$aix_use_runtimelinking" = yes; then
  10323. shared_flag='${wl}-G'
  10324. else
  10325. shared_flag='${wl}-bM:SRE'
  10326. fi
  10327. fi
  10328. fi
  10329. export_dynamic_flag_spec='${wl}-bexpall'
  10330. # It seems that -bexpall does not export symbols beginning with
  10331. # underscore (_), so it is better to generate a list of symbols to export.
  10332. always_export_symbols=yes
  10333. if test "$aix_use_runtimelinking" = yes; then
  10334. # Warning - without using the other runtime loading flags (-brtl),
  10335. # -berok will link without error, but may produce a broken library.
  10336. allow_undefined_flag='-berok'
  10337. # Determine the default libpath from the value encoded in an
  10338. # empty executable.
  10339. if test "${lt_cv_aix_libpath+set}" = set; then
  10340. aix_libpath=$lt_cv_aix_libpath
  10341. else
  10342. if ${lt_cv_aix_libpath_+:} false; then :
  10343. $as_echo_n "(cached) " >&6
  10344. else
  10345. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10346. /* end confdefs.h. */
  10347. int
  10348. main ()
  10349. {
  10350. ;
  10351. return 0;
  10352. }
  10353. _ACEOF
  10354. if ac_fn_c_try_link "$LINENO"; then :
  10355. lt_aix_libpath_sed='
  10356. /Import File Strings/,/^$/ {
  10357. /^0/ {
  10358. s/^0 *\([^ ]*\) *$/\1/
  10359. p
  10360. }
  10361. }'
  10362. lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  10363. # Check for a 64-bit object if we didn't find anything.
  10364. if test -z "$lt_cv_aix_libpath_"; then
  10365. lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  10366. fi
  10367. fi
  10368. rm -f core conftest.err conftest.$ac_objext \
  10369. conftest$ac_exeext conftest.$ac_ext
  10370. if test -z "$lt_cv_aix_libpath_"; then
  10371. lt_cv_aix_libpath_="/usr/lib:/lib"
  10372. fi
  10373. fi
  10374. aix_libpath=$lt_cv_aix_libpath_
  10375. fi
  10376. hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
  10377. archive_expsym_cmds='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then func_echo_all "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
  10378. else
  10379. if test "$host_cpu" = ia64; then
  10380. hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
  10381. allow_undefined_flag="-z nodefs"
  10382. 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"
  10383. else
  10384. # Determine the default libpath from the value encoded in an
  10385. # empty executable.
  10386. if test "${lt_cv_aix_libpath+set}" = set; then
  10387. aix_libpath=$lt_cv_aix_libpath
  10388. else
  10389. if ${lt_cv_aix_libpath_+:} false; then :
  10390. $as_echo_n "(cached) " >&6
  10391. else
  10392. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10393. /* end confdefs.h. */
  10394. int
  10395. main ()
  10396. {
  10397. ;
  10398. return 0;
  10399. }
  10400. _ACEOF
  10401. if ac_fn_c_try_link "$LINENO"; then :
  10402. lt_aix_libpath_sed='
  10403. /Import File Strings/,/^$/ {
  10404. /^0/ {
  10405. s/^0 *\([^ ]*\) *$/\1/
  10406. p
  10407. }
  10408. }'
  10409. lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  10410. # Check for a 64-bit object if we didn't find anything.
  10411. if test -z "$lt_cv_aix_libpath_"; then
  10412. lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  10413. fi
  10414. fi
  10415. rm -f core conftest.err conftest.$ac_objext \
  10416. conftest$ac_exeext conftest.$ac_ext
  10417. if test -z "$lt_cv_aix_libpath_"; then
  10418. lt_cv_aix_libpath_="/usr/lib:/lib"
  10419. fi
  10420. fi
  10421. aix_libpath=$lt_cv_aix_libpath_
  10422. fi
  10423. hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
  10424. # Warning - without using the other run time loading flags,
  10425. # -berok will link without error, but may produce a broken library.
  10426. no_undefined_flag=' ${wl}-bernotok'
  10427. allow_undefined_flag=' ${wl}-berok'
  10428. if test "$with_gnu_ld" = yes; then
  10429. # We only use this code for GNU lds that support --whole-archive.
  10430. whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
  10431. else
  10432. # Exported symbols can be pulled into shared objects from archives
  10433. whole_archive_flag_spec='$convenience'
  10434. fi
  10435. archive_cmds_need_lc=yes
  10436. # This is similar to how AIX traditionally builds its shared libraries.
  10437. archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
  10438. fi
  10439. fi
  10440. ;;
  10441. amigaos*)
  10442. case $host_cpu in
  10443. powerpc)
  10444. # see comment about AmigaOS4 .so support
  10445. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  10446. archive_expsym_cmds=''
  10447. ;;
  10448. m68k)
  10449. 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)'
  10450. hardcode_libdir_flag_spec='-L$libdir'
  10451. hardcode_minus_L=yes
  10452. ;;
  10453. esac
  10454. ;;
  10455. bsdi[45]*)
  10456. export_dynamic_flag_spec=-rdynamic
  10457. ;;
  10458. cygwin* | mingw* | pw32* | cegcc*)
  10459. # When not using gcc, we currently assume that we are using
  10460. # Microsoft Visual C++.
  10461. # hardcode_libdir_flag_spec is actually meaningless, as there is
  10462. # no search path for DLLs.
  10463. case $cc_basename in
  10464. cl*)
  10465. # Native MSVC
  10466. hardcode_libdir_flag_spec=' '
  10467. allow_undefined_flag=unsupported
  10468. always_export_symbols=yes
  10469. file_list_spec='@'
  10470. # Tell ltmain to make .lib files, not .a files.
  10471. libext=lib
  10472. # Tell ltmain to make .dll files, not .so files.
  10473. shrext_cmds=".dll"
  10474. # FIXME: Setting linknames here is a bad hack.
  10475. archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
  10476. archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
  10477. sed -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
  10478. else
  10479. sed -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
  10480. fi~
  10481. $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
  10482. linknames='
  10483. # The linker will not automatically build a static lib if we build a DLL.
  10484. # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
  10485. enable_shared_with_static_runtimes=yes
  10486. exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
  10487. export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
  10488. # Don't use ranlib
  10489. old_postinstall_cmds='chmod 644 $oldlib'
  10490. postlink_cmds='lt_outputfile="@OUTPUT@"~
  10491. lt_tool_outputfile="@TOOL_OUTPUT@"~
  10492. case $lt_outputfile in
  10493. *.exe|*.EXE) ;;
  10494. *)
  10495. lt_outputfile="$lt_outputfile.exe"
  10496. lt_tool_outputfile="$lt_tool_outputfile.exe"
  10497. ;;
  10498. esac~
  10499. if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
  10500. $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
  10501. $RM "$lt_outputfile.manifest";
  10502. fi'
  10503. ;;
  10504. *)
  10505. # Assume MSVC wrapper
  10506. hardcode_libdir_flag_spec=' '
  10507. allow_undefined_flag=unsupported
  10508. # Tell ltmain to make .lib files, not .a files.
  10509. libext=lib
  10510. # Tell ltmain to make .dll files, not .so files.
  10511. shrext_cmds=".dll"
  10512. # FIXME: Setting linknames here is a bad hack.
  10513. archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
  10514. # The linker will automatically build a .lib file if we build a DLL.
  10515. old_archive_from_new_cmds='true'
  10516. # FIXME: Should let the user specify the lib program.
  10517. old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
  10518. enable_shared_with_static_runtimes=yes
  10519. ;;
  10520. esac
  10521. ;;
  10522. darwin* | rhapsody*)
  10523. archive_cmds_need_lc=no
  10524. hardcode_direct=no
  10525. hardcode_automatic=yes
  10526. hardcode_shlibpath_var=unsupported
  10527. if test "$lt_cv_ld_force_load" = "yes"; then
  10528. 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\"`'
  10529. else
  10530. whole_archive_flag_spec=''
  10531. fi
  10532. link_all_deplibs=yes
  10533. allow_undefined_flag="$_lt_dar_allow_undefined"
  10534. case $cc_basename in
  10535. ifort*) _lt_dar_can_shared=yes ;;
  10536. *) _lt_dar_can_shared=$GCC ;;
  10537. esac
  10538. if test "$_lt_dar_can_shared" = "yes"; then
  10539. output_verbose_link_cmd=func_echo_all
  10540. archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
  10541. module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
  10542. 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}"
  10543. 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}"
  10544. else
  10545. ld_shlibs=no
  10546. fi
  10547. ;;
  10548. dgux*)
  10549. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  10550. hardcode_libdir_flag_spec='-L$libdir'
  10551. hardcode_shlibpath_var=no
  10552. ;;
  10553. # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
  10554. # support. Future versions do this automatically, but an explicit c++rt0.o
  10555. # does not break anything, and helps significantly (at the cost of a little
  10556. # extra space).
  10557. freebsd2.2*)
  10558. archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
  10559. hardcode_libdir_flag_spec='-R$libdir'
  10560. hardcode_direct=yes
  10561. hardcode_shlibpath_var=no
  10562. ;;
  10563. # Unfortunately, older versions of FreeBSD 2 do not have this feature.
  10564. freebsd2.*)
  10565. archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  10566. hardcode_direct=yes
  10567. hardcode_minus_L=yes
  10568. hardcode_shlibpath_var=no
  10569. ;;
  10570. # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
  10571. freebsd* | dragonfly*)
  10572. archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  10573. hardcode_libdir_flag_spec='-R$libdir'
  10574. hardcode_direct=yes
  10575. hardcode_shlibpath_var=no
  10576. ;;
  10577. hpux9*)
  10578. if test "$GCC" = yes; then
  10579. archive_cmds='$RM $output_objdir/$soname~$CC -shared $pic_flag ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
  10580. else
  10581. archive_cmds='$RM $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
  10582. fi
  10583. hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
  10584. hardcode_libdir_separator=:
  10585. hardcode_direct=yes
  10586. # hardcode_minus_L: Not really in the search PATH,
  10587. # but as the default location of the library.
  10588. hardcode_minus_L=yes
  10589. export_dynamic_flag_spec='${wl}-E'
  10590. ;;
  10591. hpux10*)
  10592. if test "$GCC" = yes && test "$with_gnu_ld" = no; then
  10593. archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  10594. else
  10595. archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
  10596. fi
  10597. if test "$with_gnu_ld" = no; then
  10598. hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
  10599. hardcode_libdir_separator=:
  10600. hardcode_direct=yes
  10601. hardcode_direct_absolute=yes
  10602. export_dynamic_flag_spec='${wl}-E'
  10603. # hardcode_minus_L: Not really in the search PATH,
  10604. # but as the default location of the library.
  10605. hardcode_minus_L=yes
  10606. fi
  10607. ;;
  10608. hpux11*)
  10609. if test "$GCC" = yes && test "$with_gnu_ld" = no; then
  10610. case $host_cpu in
  10611. hppa*64*)
  10612. archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  10613. ;;
  10614. ia64*)
  10615. archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
  10616. ;;
  10617. *)
  10618. archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  10619. ;;
  10620. esac
  10621. else
  10622. case $host_cpu in
  10623. hppa*64*)
  10624. archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  10625. ;;
  10626. ia64*)
  10627. archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
  10628. ;;
  10629. *)
  10630. # Older versions of the 11.00 compiler do not understand -b yet
  10631. # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
  10632. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
  10633. $as_echo_n "checking if $CC understands -b... " >&6; }
  10634. if ${lt_cv_prog_compiler__b+:} false; then :
  10635. $as_echo_n "(cached) " >&6
  10636. else
  10637. lt_cv_prog_compiler__b=no
  10638. save_LDFLAGS="$LDFLAGS"
  10639. LDFLAGS="$LDFLAGS -b"
  10640. echo "$lt_simple_link_test_code" > conftest.$ac_ext
  10641. if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
  10642. # The linker can only warn and ignore the option if not recognized
  10643. # So say no if there are warnings
  10644. if test -s conftest.err; then
  10645. # Append any errors to the config.log.
  10646. cat conftest.err 1>&5
  10647. $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
  10648. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  10649. if diff conftest.exp conftest.er2 >/dev/null; then
  10650. lt_cv_prog_compiler__b=yes
  10651. fi
  10652. else
  10653. lt_cv_prog_compiler__b=yes
  10654. fi
  10655. fi
  10656. $RM -r conftest*
  10657. LDFLAGS="$save_LDFLAGS"
  10658. fi
  10659. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
  10660. $as_echo "$lt_cv_prog_compiler__b" >&6; }
  10661. if test x"$lt_cv_prog_compiler__b" = xyes; then
  10662. archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  10663. else
  10664. archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
  10665. fi
  10666. ;;
  10667. esac
  10668. fi
  10669. if test "$with_gnu_ld" = no; then
  10670. hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
  10671. hardcode_libdir_separator=:
  10672. case $host_cpu in
  10673. hppa*64*|ia64*)
  10674. hardcode_direct=no
  10675. hardcode_shlibpath_var=no
  10676. ;;
  10677. *)
  10678. hardcode_direct=yes
  10679. hardcode_direct_absolute=yes
  10680. export_dynamic_flag_spec='${wl}-E'
  10681. # hardcode_minus_L: Not really in the search PATH,
  10682. # but as the default location of the library.
  10683. hardcode_minus_L=yes
  10684. ;;
  10685. esac
  10686. fi
  10687. ;;
  10688. irix5* | irix6* | nonstopux*)
  10689. if test "$GCC" = yes; then
  10690. 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'
  10691. # Try to use the -exported_symbol ld option, if it does not
  10692. # work, assume that -exports_file does not work either and
  10693. # implicitly export all symbols.
  10694. # This should be the same for all languages, so no per-tag cache variable.
  10695. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
  10696. $as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
  10697. if ${lt_cv_irix_exported_symbol+:} false; then :
  10698. $as_echo_n "(cached) " >&6
  10699. else
  10700. save_LDFLAGS="$LDFLAGS"
  10701. LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
  10702. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10703. /* end confdefs.h. */
  10704. int foo (void) { return 0; }
  10705. _ACEOF
  10706. if ac_fn_c_try_link "$LINENO"; then :
  10707. lt_cv_irix_exported_symbol=yes
  10708. else
  10709. lt_cv_irix_exported_symbol=no
  10710. fi
  10711. rm -f core conftest.err conftest.$ac_objext \
  10712. conftest$ac_exeext conftest.$ac_ext
  10713. LDFLAGS="$save_LDFLAGS"
  10714. fi
  10715. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
  10716. $as_echo "$lt_cv_irix_exported_symbol" >&6; }
  10717. if test "$lt_cv_irix_exported_symbol" = yes; then
  10718. 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'
  10719. fi
  10720. else
  10721. 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'
  10722. 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'
  10723. fi
  10724. archive_cmds_need_lc='no'
  10725. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  10726. hardcode_libdir_separator=:
  10727. inherit_rpath=yes
  10728. link_all_deplibs=yes
  10729. ;;
  10730. netbsd*)
  10731. if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  10732. archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
  10733. else
  10734. archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
  10735. fi
  10736. hardcode_libdir_flag_spec='-R$libdir'
  10737. hardcode_direct=yes
  10738. hardcode_shlibpath_var=no
  10739. ;;
  10740. newsos6)
  10741. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  10742. hardcode_direct=yes
  10743. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  10744. hardcode_libdir_separator=:
  10745. hardcode_shlibpath_var=no
  10746. ;;
  10747. *nto* | *qnx*)
  10748. ;;
  10749. openbsd*)
  10750. if test -f /usr/libexec/ld.so; then
  10751. hardcode_direct=yes
  10752. hardcode_shlibpath_var=no
  10753. hardcode_direct_absolute=yes
  10754. if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  10755. archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  10756. archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
  10757. hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
  10758. export_dynamic_flag_spec='${wl}-E'
  10759. else
  10760. case $host_os in
  10761. openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
  10762. archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  10763. hardcode_libdir_flag_spec='-R$libdir'
  10764. ;;
  10765. *)
  10766. archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  10767. hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
  10768. ;;
  10769. esac
  10770. fi
  10771. else
  10772. ld_shlibs=no
  10773. fi
  10774. ;;
  10775. os2*)
  10776. hardcode_libdir_flag_spec='-L$libdir'
  10777. hardcode_minus_L=yes
  10778. allow_undefined_flag=unsupported
  10779. archive_cmds='$ECHO "LIBRARY $libname INITINSTANCE" > $output_objdir/$libname.def~$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~echo DATA >> $output_objdir/$libname.def~echo " SINGLE NONSHARED" >> $output_objdir/$libname.def~echo EXPORTS >> $output_objdir/$libname.def~emxexp $libobjs >> $output_objdir/$libname.def~$CC -Zdll -Zcrtdll -o $lib $libobjs $deplibs $compiler_flags $output_objdir/$libname.def'
  10780. old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
  10781. ;;
  10782. osf3*)
  10783. if test "$GCC" = yes; then
  10784. allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
  10785. 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'
  10786. else
  10787. allow_undefined_flag=' -expect_unresolved \*'
  10788. 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'
  10789. fi
  10790. archive_cmds_need_lc='no'
  10791. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  10792. hardcode_libdir_separator=:
  10793. ;;
  10794. osf4* | osf5*) # as osf3* with the addition of -msym flag
  10795. if test "$GCC" = yes; then
  10796. allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
  10797. 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'
  10798. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  10799. else
  10800. allow_undefined_flag=' -expect_unresolved \*'
  10801. 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'
  10802. 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~
  10803. $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'
  10804. # Both c and cxx compiler support -rpath directly
  10805. hardcode_libdir_flag_spec='-rpath $libdir'
  10806. fi
  10807. archive_cmds_need_lc='no'
  10808. hardcode_libdir_separator=:
  10809. ;;
  10810. solaris*)
  10811. no_undefined_flag=' -z defs'
  10812. if test "$GCC" = yes; then
  10813. wlarc='${wl}'
  10814. archive_cmds='$CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  10815. archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  10816. $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'
  10817. else
  10818. case `$CC -V 2>&1` in
  10819. *"Compilers 5.0"*)
  10820. wlarc=''
  10821. archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
  10822. archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  10823. $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
  10824. ;;
  10825. *)
  10826. wlarc='${wl}'
  10827. archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
  10828. archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  10829. $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
  10830. ;;
  10831. esac
  10832. fi
  10833. hardcode_libdir_flag_spec='-R$libdir'
  10834. hardcode_shlibpath_var=no
  10835. case $host_os in
  10836. solaris2.[0-5] | solaris2.[0-5].*) ;;
  10837. *)
  10838. # The compiler driver will combine and reorder linker options,
  10839. # but understands `-z linker_flag'. GCC discards it without `$wl',
  10840. # but is careful enough not to reorder.
  10841. # Supported since Solaris 2.6 (maybe 2.5.1?)
  10842. if test "$GCC" = yes; then
  10843. whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
  10844. else
  10845. whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
  10846. fi
  10847. ;;
  10848. esac
  10849. link_all_deplibs=yes
  10850. ;;
  10851. sunos4*)
  10852. if test "x$host_vendor" = xsequent; then
  10853. # Use $CC to link under sequent, because it throws in some extra .o
  10854. # files that make .init and .fini sections work.
  10855. archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
  10856. else
  10857. archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
  10858. fi
  10859. hardcode_libdir_flag_spec='-L$libdir'
  10860. hardcode_direct=yes
  10861. hardcode_minus_L=yes
  10862. hardcode_shlibpath_var=no
  10863. ;;
  10864. sysv4)
  10865. case $host_vendor in
  10866. sni)
  10867. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  10868. hardcode_direct=yes # is this really true???
  10869. ;;
  10870. siemens)
  10871. ## LD is ld it makes a PLAMLIB
  10872. ## CC just makes a GrossModule.
  10873. archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
  10874. reload_cmds='$CC -r -o $output$reload_objs'
  10875. hardcode_direct=no
  10876. ;;
  10877. motorola)
  10878. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  10879. hardcode_direct=no #Motorola manual says yes, but my tests say they lie
  10880. ;;
  10881. esac
  10882. runpath_var='LD_RUN_PATH'
  10883. hardcode_shlibpath_var=no
  10884. ;;
  10885. sysv4.3*)
  10886. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  10887. hardcode_shlibpath_var=no
  10888. export_dynamic_flag_spec='-Bexport'
  10889. ;;
  10890. sysv4*MP*)
  10891. if test -d /usr/nec; then
  10892. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  10893. hardcode_shlibpath_var=no
  10894. runpath_var=LD_RUN_PATH
  10895. hardcode_runpath_var=yes
  10896. ld_shlibs=yes
  10897. fi
  10898. ;;
  10899. sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
  10900. no_undefined_flag='${wl}-z,text'
  10901. archive_cmds_need_lc=no
  10902. hardcode_shlibpath_var=no
  10903. runpath_var='LD_RUN_PATH'
  10904. if test "$GCC" = yes; then
  10905. archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  10906. archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  10907. else
  10908. archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  10909. archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  10910. fi
  10911. ;;
  10912. sysv5* | sco3.2v5* | sco5v6*)
  10913. # Note: We can NOT use -z defs as we might desire, because we do not
  10914. # link with -lc, and that would cause any symbols used from libc to
  10915. # always be unresolved, which means just about no library would
  10916. # ever link correctly. If we're not using GNU ld we use -z text
  10917. # though, which does catch some bad symbols but isn't as heavy-handed
  10918. # as -z defs.
  10919. no_undefined_flag='${wl}-z,text'
  10920. allow_undefined_flag='${wl}-z,nodefs'
  10921. archive_cmds_need_lc=no
  10922. hardcode_shlibpath_var=no
  10923. hardcode_libdir_flag_spec='${wl}-R,$libdir'
  10924. hardcode_libdir_separator=':'
  10925. link_all_deplibs=yes
  10926. export_dynamic_flag_spec='${wl}-Bexport'
  10927. runpath_var='LD_RUN_PATH'
  10928. if test "$GCC" = yes; then
  10929. archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  10930. archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  10931. else
  10932. archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  10933. archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  10934. fi
  10935. ;;
  10936. uts4*)
  10937. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  10938. hardcode_libdir_flag_spec='-L$libdir'
  10939. hardcode_shlibpath_var=no
  10940. ;;
  10941. *)
  10942. ld_shlibs=no
  10943. ;;
  10944. esac
  10945. if test x$host_vendor = xsni; then
  10946. case $host in
  10947. sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
  10948. export_dynamic_flag_spec='${wl}-Blargedynsym'
  10949. ;;
  10950. esac
  10951. fi
  10952. fi
  10953. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
  10954. $as_echo "$ld_shlibs" >&6; }
  10955. test "$ld_shlibs" = no && can_build_shared=no
  10956. with_gnu_ld=$with_gnu_ld
  10957. #
  10958. # Do we need to explicitly link libc?
  10959. #
  10960. case "x$archive_cmds_need_lc" in
  10961. x|xyes)
  10962. # Assume -lc should be added
  10963. archive_cmds_need_lc=yes
  10964. if test "$enable_shared" = yes && test "$GCC" = yes; then
  10965. case $archive_cmds in
  10966. *'~'*)
  10967. # FIXME: we may have to deal with multi-command sequences.
  10968. ;;
  10969. '$CC '*)
  10970. # Test whether the compiler implicitly links with -lc since on some
  10971. # systems, -lgcc has to come before -lc. If gcc already passes -lc
  10972. # to ld, don't add -lc before -lgcc.
  10973. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
  10974. $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
  10975. if ${lt_cv_archive_cmds_need_lc+:} false; then :
  10976. $as_echo_n "(cached) " >&6
  10977. else
  10978. $RM conftest*
  10979. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  10980. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  10981. (eval $ac_compile) 2>&5
  10982. ac_status=$?
  10983. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  10984. test $ac_status = 0; } 2>conftest.err; then
  10985. soname=conftest
  10986. lib=conftest
  10987. libobjs=conftest.$ac_objext
  10988. deplibs=
  10989. wl=$lt_prog_compiler_wl
  10990. pic_flag=$lt_prog_compiler_pic
  10991. compiler_flags=-v
  10992. linker_flags=-v
  10993. verstring=
  10994. output_objdir=.
  10995. libname=conftest
  10996. lt_save_allow_undefined_flag=$allow_undefined_flag
  10997. allow_undefined_flag=
  10998. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
  10999. (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
  11000. ac_status=$?
  11001. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  11002. test $ac_status = 0; }
  11003. then
  11004. lt_cv_archive_cmds_need_lc=no
  11005. else
  11006. lt_cv_archive_cmds_need_lc=yes
  11007. fi
  11008. allow_undefined_flag=$lt_save_allow_undefined_flag
  11009. else
  11010. cat conftest.err 1>&5
  11011. fi
  11012. $RM conftest*
  11013. fi
  11014. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
  11015. $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
  11016. archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
  11017. ;;
  11018. esac
  11019. fi
  11020. ;;
  11021. esac
  11022. { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
  11023. $as_echo_n "checking dynamic linker characteristics... " >&6; }
  11024. if test "$GCC" = yes; then
  11025. case $host_os in
  11026. darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
  11027. *) lt_awk_arg="/^libraries:/" ;;
  11028. esac
  11029. case $host_os in
  11030. mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
  11031. *) lt_sed_strip_eq="s,=/,/,g" ;;
  11032. esac
  11033. lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
  11034. case $lt_search_path_spec in
  11035. *\;*)
  11036. # if the path contains ";" then we assume it to be the separator
  11037. # otherwise default to the standard path separator (i.e. ":") - it is
  11038. # assumed that no part of a normal pathname contains ";" but that should
  11039. # okay in the real world where ";" in dirpaths is itself problematic.
  11040. lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
  11041. ;;
  11042. *)
  11043. lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
  11044. ;;
  11045. esac
  11046. # Ok, now we have the path, separated by spaces, we can step through it
  11047. # and add multilib dir if necessary.
  11048. lt_tmp_lt_search_path_spec=
  11049. lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
  11050. for lt_sys_path in $lt_search_path_spec; do
  11051. if test -d "$lt_sys_path/$lt_multi_os_dir"; then
  11052. lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
  11053. else
  11054. test -d "$lt_sys_path" && \
  11055. lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
  11056. fi
  11057. done
  11058. lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
  11059. BEGIN {RS=" "; FS="/|\n";} {
  11060. lt_foo="";
  11061. lt_count=0;
  11062. for (lt_i = NF; lt_i > 0; lt_i--) {
  11063. if ($lt_i != "" && $lt_i != ".") {
  11064. if ($lt_i == "..") {
  11065. lt_count++;
  11066. } else {
  11067. if (lt_count == 0) {
  11068. lt_foo="/" $lt_i lt_foo;
  11069. } else {
  11070. lt_count--;
  11071. }
  11072. }
  11073. }
  11074. }
  11075. if (lt_foo != "") { lt_freq[lt_foo]++; }
  11076. if (lt_freq[lt_foo] == 1) { print lt_foo; }
  11077. }'`
  11078. # AWK program above erroneously prepends '/' to C:/dos/paths
  11079. # for these hosts.
  11080. case $host_os in
  11081. mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
  11082. $SED 's,/\([A-Za-z]:\),\1,g'` ;;
  11083. esac
  11084. sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
  11085. else
  11086. sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
  11087. fi
  11088. library_names_spec=
  11089. libname_spec='lib$name'
  11090. soname_spec=
  11091. shrext_cmds=".so"
  11092. postinstall_cmds=
  11093. postuninstall_cmds=
  11094. finish_cmds=
  11095. finish_eval=
  11096. shlibpath_var=
  11097. shlibpath_overrides_runpath=unknown
  11098. version_type=none
  11099. dynamic_linker="$host_os ld.so"
  11100. sys_lib_dlsearch_path_spec="/lib /usr/lib"
  11101. need_lib_prefix=unknown
  11102. hardcode_into_libs=no
  11103. # when you set need_version to no, make sure it does not cause -set_version
  11104. # flags to be left without arguments
  11105. need_version=unknown
  11106. case $host_os in
  11107. aix3*)
  11108. version_type=linux # correct to gnu/linux during the next big refactor
  11109. library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
  11110. shlibpath_var=LIBPATH
  11111. # AIX 3 has no versioning support, so we append a major version to the name.
  11112. soname_spec='${libname}${release}${shared_ext}$major'
  11113. ;;
  11114. aix[4-9]*)
  11115. version_type=linux # correct to gnu/linux during the next big refactor
  11116. need_lib_prefix=no
  11117. need_version=no
  11118. hardcode_into_libs=yes
  11119. if test "$host_cpu" = ia64; then
  11120. # AIX 5 supports IA64
  11121. library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
  11122. shlibpath_var=LD_LIBRARY_PATH
  11123. else
  11124. # With GCC up to 2.95.x, collect2 would create an import file
  11125. # for dependence libraries. The import file would start with
  11126. # the line `#! .'. This would cause the generated library to
  11127. # depend on `.', always an invalid library. This was fixed in
  11128. # development snapshots of GCC prior to 3.0.
  11129. case $host_os in
  11130. aix4 | aix4.[01] | aix4.[01].*)
  11131. if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
  11132. echo ' yes '
  11133. echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
  11134. :
  11135. else
  11136. can_build_shared=no
  11137. fi
  11138. ;;
  11139. esac
  11140. # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
  11141. # soname into executable. Probably we can add versioning support to
  11142. # collect2, so additional links can be useful in future.
  11143. if test "$aix_use_runtimelinking" = yes; then
  11144. # If using run time linking (on AIX 4.2 or later) use lib<name>.so
  11145. # instead of lib<name>.a to let people know that these are not
  11146. # typical AIX shared libraries.
  11147. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  11148. else
  11149. # We preserve .a as extension for shared libraries through AIX4.2
  11150. # and later when we are not doing run time linking.
  11151. library_names_spec='${libname}${release}.a $libname.a'
  11152. soname_spec='${libname}${release}${shared_ext}$major'
  11153. fi
  11154. shlibpath_var=LIBPATH
  11155. fi
  11156. ;;
  11157. amigaos*)
  11158. case $host_cpu in
  11159. powerpc)
  11160. # Since July 2007 AmigaOS4 officially supports .so libraries.
  11161. # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
  11162. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  11163. ;;
  11164. m68k)
  11165. library_names_spec='$libname.ixlibrary $libname.a'
  11166. # Create ${libname}_ixlibrary.a entries in /sys/libs.
  11167. finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $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'
  11168. ;;
  11169. esac
  11170. ;;
  11171. beos*)
  11172. library_names_spec='${libname}${shared_ext}'
  11173. dynamic_linker="$host_os ld.so"
  11174. shlibpath_var=LIBRARY_PATH
  11175. ;;
  11176. bsdi[45]*)
  11177. version_type=linux # correct to gnu/linux during the next big refactor
  11178. need_version=no
  11179. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  11180. soname_spec='${libname}${release}${shared_ext}$major'
  11181. finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
  11182. shlibpath_var=LD_LIBRARY_PATH
  11183. sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
  11184. sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
  11185. # the default ld.so.conf also contains /usr/contrib/lib and
  11186. # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
  11187. # libtool to hard-code these into programs
  11188. ;;
  11189. cygwin* | mingw* | pw32* | cegcc*)
  11190. version_type=windows
  11191. shrext_cmds=".dll"
  11192. need_version=no
  11193. need_lib_prefix=no
  11194. case $GCC,$cc_basename in
  11195. yes,*)
  11196. # gcc
  11197. library_names_spec='$libname.dll.a'
  11198. # DLL is installed to $(libdir)/../bin by postinstall_cmds
  11199. postinstall_cmds='base_file=`basename \${file}`~
  11200. dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
  11201. dldir=$destdir/`dirname \$dlpath`~
  11202. test -d \$dldir || mkdir -p \$dldir~
  11203. $install_prog $dir/$dlname \$dldir/$dlname~
  11204. chmod a+x \$dldir/$dlname~
  11205. if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
  11206. eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
  11207. fi'
  11208. postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
  11209. dlpath=$dir/\$dldll~
  11210. $RM \$dlpath'
  11211. shlibpath_overrides_runpath=yes
  11212. case $host_os in
  11213. cygwin*)
  11214. # Cygwin DLLs use 'cyg' prefix rather than 'lib'
  11215. soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  11216. sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
  11217. ;;
  11218. mingw* | cegcc*)
  11219. # MinGW DLLs use traditional 'lib' prefix
  11220. soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  11221. ;;
  11222. pw32*)
  11223. # pw32 DLLs use 'pw' prefix rather than 'lib'
  11224. library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  11225. ;;
  11226. esac
  11227. dynamic_linker='Win32 ld.exe'
  11228. ;;
  11229. *,cl*)
  11230. # Native MSVC
  11231. libname_spec='$name'
  11232. soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  11233. library_names_spec='${libname}.dll.lib'
  11234. case $build_os in
  11235. mingw*)
  11236. sys_lib_search_path_spec=
  11237. lt_save_ifs=$IFS
  11238. IFS=';'
  11239. for lt_path in $LIB
  11240. do
  11241. IFS=$lt_save_ifs
  11242. # Let DOS variable expansion print the short 8.3 style file name.
  11243. lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
  11244. sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
  11245. done
  11246. IFS=$lt_save_ifs
  11247. # Convert to MSYS style.
  11248. sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
  11249. ;;
  11250. cygwin*)
  11251. # Convert to unix form, then to dos form, then back to unix form
  11252. # but this time dos style (no spaces!) so that the unix form looks
  11253. # like /cygdrive/c/PROGRA~1:/cygdr...
  11254. sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
  11255. sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
  11256. sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
  11257. ;;
  11258. *)
  11259. sys_lib_search_path_spec="$LIB"
  11260. if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
  11261. # It is most probably a Windows format PATH.
  11262. sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
  11263. else
  11264. sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
  11265. fi
  11266. # FIXME: find the short name or the path components, as spaces are
  11267. # common. (e.g. "Program Files" -> "PROGRA~1")
  11268. ;;
  11269. esac
  11270. # DLL is installed to $(libdir)/../bin by postinstall_cmds
  11271. postinstall_cmds='base_file=`basename \${file}`~
  11272. dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
  11273. dldir=$destdir/`dirname \$dlpath`~
  11274. test -d \$dldir || mkdir -p \$dldir~
  11275. $install_prog $dir/$dlname \$dldir/$dlname'
  11276. postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
  11277. dlpath=$dir/\$dldll~
  11278. $RM \$dlpath'
  11279. shlibpath_overrides_runpath=yes
  11280. dynamic_linker='Win32 link.exe'
  11281. ;;
  11282. *)
  11283. # Assume MSVC wrapper
  11284. library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
  11285. dynamic_linker='Win32 ld.exe'
  11286. ;;
  11287. esac
  11288. # FIXME: first we should search . and the directory the executable is in
  11289. shlibpath_var=PATH
  11290. ;;
  11291. darwin* | rhapsody*)
  11292. dynamic_linker="$host_os dyld"
  11293. version_type=darwin
  11294. need_lib_prefix=no
  11295. need_version=no
  11296. library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
  11297. soname_spec='${libname}${release}${major}$shared_ext'
  11298. shlibpath_overrides_runpath=yes
  11299. shlibpath_var=DYLD_LIBRARY_PATH
  11300. shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
  11301. sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
  11302. sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
  11303. ;;
  11304. dgux*)
  11305. version_type=linux # correct to gnu/linux during the next big refactor
  11306. need_lib_prefix=no
  11307. need_version=no
  11308. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
  11309. soname_spec='${libname}${release}${shared_ext}$major'
  11310. shlibpath_var=LD_LIBRARY_PATH
  11311. ;;
  11312. freebsd* | dragonfly*)
  11313. # DragonFly does not have aout. When/if they implement a new
  11314. # versioning mechanism, adjust this.
  11315. if test -x /usr/bin/objformat; then
  11316. objformat=`/usr/bin/objformat`
  11317. else
  11318. case $host_os in
  11319. freebsd[23].*) objformat=aout ;;
  11320. *) objformat=elf ;;
  11321. esac
  11322. fi
  11323. version_type=freebsd-$objformat
  11324. case $version_type in
  11325. freebsd-elf*)
  11326. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
  11327. need_version=no
  11328. need_lib_prefix=no
  11329. ;;
  11330. freebsd-*)
  11331. library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
  11332. need_version=yes
  11333. ;;
  11334. esac
  11335. shlibpath_var=LD_LIBRARY_PATH
  11336. case $host_os in
  11337. freebsd2.*)
  11338. shlibpath_overrides_runpath=yes
  11339. ;;
  11340. freebsd3.[01]* | freebsdelf3.[01]*)
  11341. shlibpath_overrides_runpath=yes
  11342. hardcode_into_libs=yes
  11343. ;;
  11344. freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
  11345. freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
  11346. shlibpath_overrides_runpath=no
  11347. hardcode_into_libs=yes
  11348. ;;
  11349. *) # from 4.6 on, and DragonFly
  11350. shlibpath_overrides_runpath=yes
  11351. hardcode_into_libs=yes
  11352. ;;
  11353. esac
  11354. ;;
  11355. gnu*)
  11356. version_type=linux # correct to gnu/linux during the next big refactor
  11357. need_lib_prefix=no
  11358. need_version=no
  11359. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
  11360. soname_spec='${libname}${release}${shared_ext}$major'
  11361. shlibpath_var=LD_LIBRARY_PATH
  11362. shlibpath_overrides_runpath=no
  11363. hardcode_into_libs=yes
  11364. ;;
  11365. haiku*)
  11366. version_type=linux # correct to gnu/linux during the next big refactor
  11367. need_lib_prefix=no
  11368. need_version=no
  11369. dynamic_linker="$host_os runtime_loader"
  11370. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
  11371. soname_spec='${libname}${release}${shared_ext}$major'
  11372. shlibpath_var=LIBRARY_PATH
  11373. shlibpath_overrides_runpath=yes
  11374. sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
  11375. hardcode_into_libs=yes
  11376. ;;
  11377. hpux9* | hpux10* | hpux11*)
  11378. # Give a soname corresponding to the major version so that dld.sl refuses to
  11379. # link against other versions.
  11380. version_type=sunos
  11381. need_lib_prefix=no
  11382. need_version=no
  11383. case $host_cpu in
  11384. ia64*)
  11385. shrext_cmds='.so'
  11386. hardcode_into_libs=yes
  11387. dynamic_linker="$host_os dld.so"
  11388. shlibpath_var=LD_LIBRARY_PATH
  11389. shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  11390. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  11391. soname_spec='${libname}${release}${shared_ext}$major'
  11392. if test "X$HPUX_IA64_MODE" = X32; then
  11393. sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
  11394. else
  11395. sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
  11396. fi
  11397. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  11398. ;;
  11399. hppa*64*)
  11400. shrext_cmds='.sl'
  11401. hardcode_into_libs=yes
  11402. dynamic_linker="$host_os dld.sl"
  11403. shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
  11404. shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  11405. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  11406. soname_spec='${libname}${release}${shared_ext}$major'
  11407. sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
  11408. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  11409. ;;
  11410. *)
  11411. shrext_cmds='.sl'
  11412. dynamic_linker="$host_os dld.sl"
  11413. shlibpath_var=SHLIB_PATH
  11414. shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
  11415. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  11416. soname_spec='${libname}${release}${shared_ext}$major'
  11417. ;;
  11418. esac
  11419. # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
  11420. postinstall_cmds='chmod 555 $lib'
  11421. # or fails outright, so override atomically:
  11422. install_override_mode=555
  11423. ;;
  11424. interix[3-9]*)
  11425. version_type=linux # correct to gnu/linux during the next big refactor
  11426. need_lib_prefix=no
  11427. need_version=no
  11428. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  11429. soname_spec='${libname}${release}${shared_ext}$major'
  11430. dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
  11431. shlibpath_var=LD_LIBRARY_PATH
  11432. shlibpath_overrides_runpath=no
  11433. hardcode_into_libs=yes
  11434. ;;
  11435. irix5* | irix6* | nonstopux*)
  11436. case $host_os in
  11437. nonstopux*) version_type=nonstopux ;;
  11438. *)
  11439. if test "$lt_cv_prog_gnu_ld" = yes; then
  11440. version_type=linux # correct to gnu/linux during the next big refactor
  11441. else
  11442. version_type=irix
  11443. fi ;;
  11444. esac
  11445. need_lib_prefix=no
  11446. need_version=no
  11447. soname_spec='${libname}${release}${shared_ext}$major'
  11448. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
  11449. case $host_os in
  11450. irix5* | nonstopux*)
  11451. libsuff= shlibsuff=
  11452. ;;
  11453. *)
  11454. case $LD in # libtool.m4 will add one of these switches to LD
  11455. *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
  11456. libsuff= shlibsuff= libmagic=32-bit;;
  11457. *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
  11458. libsuff=32 shlibsuff=N32 libmagic=N32;;
  11459. *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
  11460. libsuff=64 shlibsuff=64 libmagic=64-bit;;
  11461. *) libsuff= shlibsuff= libmagic=never-match;;
  11462. esac
  11463. ;;
  11464. esac
  11465. shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
  11466. shlibpath_overrides_runpath=no
  11467. sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
  11468. sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
  11469. hardcode_into_libs=yes
  11470. ;;
  11471. # No shared lib support for Linux oldld, aout, or coff.
  11472. linux*oldld* | linux*aout* | linux*coff*)
  11473. dynamic_linker=no
  11474. ;;
  11475. # This must be glibc/ELF.
  11476. linux* | k*bsd*-gnu | kopensolaris*-gnu)
  11477. version_type=linux # correct to gnu/linux during the next big refactor
  11478. need_lib_prefix=no
  11479. need_version=no
  11480. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  11481. soname_spec='${libname}${release}${shared_ext}$major'
  11482. finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
  11483. shlibpath_var=LD_LIBRARY_PATH
  11484. shlibpath_overrides_runpath=no
  11485. # Some binutils ld are patched to set DT_RUNPATH
  11486. if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
  11487. $as_echo_n "(cached) " >&6
  11488. else
  11489. lt_cv_shlibpath_overrides_runpath=no
  11490. save_LDFLAGS=$LDFLAGS
  11491. save_libdir=$libdir
  11492. eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
  11493. LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
  11494. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11495. /* end confdefs.h. */
  11496. int
  11497. main ()
  11498. {
  11499. ;
  11500. return 0;
  11501. }
  11502. _ACEOF
  11503. if ac_fn_c_try_link "$LINENO"; then :
  11504. if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
  11505. lt_cv_shlibpath_overrides_runpath=yes
  11506. fi
  11507. fi
  11508. rm -f core conftest.err conftest.$ac_objext \
  11509. conftest$ac_exeext conftest.$ac_ext
  11510. LDFLAGS=$save_LDFLAGS
  11511. libdir=$save_libdir
  11512. fi
  11513. shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
  11514. # This implies no fast_install, which is unacceptable.
  11515. # Some rework will be needed to allow for fast_install
  11516. # before this can be enabled.
  11517. hardcode_into_libs=yes
  11518. # Add ABI-specific directories to the system library path.
  11519. sys_lib_dlsearch_path_spec="/lib64 /usr/lib64 /lib /usr/lib"
  11520. # Append ld.so.conf contents to the search path
  11521. if test -f /etc/ld.so.conf; then
  11522. 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' ' '`
  11523. sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra"
  11524. fi
  11525. # We used to test for /lib/ld.so.1 and disable shared libraries on
  11526. # powerpc, because MkLinux only supported shared libraries with the
  11527. # GNU dynamic linker. Since this was broken with cross compilers,
  11528. # most powerpc-linux boxes support dynamic linking these days and
  11529. # people can always --disable-shared, the test was removed, and we
  11530. # assume the GNU/Linux dynamic linker is in use.
  11531. dynamic_linker='GNU/Linux ld.so'
  11532. ;;
  11533. netbsd*)
  11534. version_type=sunos
  11535. need_lib_prefix=no
  11536. need_version=no
  11537. if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  11538. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  11539. finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  11540. dynamic_linker='NetBSD (a.out) ld.so'
  11541. else
  11542. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  11543. soname_spec='${libname}${release}${shared_ext}$major'
  11544. dynamic_linker='NetBSD ld.elf_so'
  11545. fi
  11546. shlibpath_var=LD_LIBRARY_PATH
  11547. shlibpath_overrides_runpath=yes
  11548. hardcode_into_libs=yes
  11549. ;;
  11550. newsos6)
  11551. version_type=linux # correct to gnu/linux during the next big refactor
  11552. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  11553. shlibpath_var=LD_LIBRARY_PATH
  11554. shlibpath_overrides_runpath=yes
  11555. ;;
  11556. *nto* | *qnx*)
  11557. version_type=qnx
  11558. need_lib_prefix=no
  11559. need_version=no
  11560. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  11561. soname_spec='${libname}${release}${shared_ext}$major'
  11562. shlibpath_var=LD_LIBRARY_PATH
  11563. shlibpath_overrides_runpath=no
  11564. hardcode_into_libs=yes
  11565. dynamic_linker='ldqnx.so'
  11566. ;;
  11567. openbsd*)
  11568. version_type=sunos
  11569. sys_lib_dlsearch_path_spec="/usr/lib"
  11570. need_lib_prefix=no
  11571. # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
  11572. case $host_os in
  11573. openbsd3.3 | openbsd3.3.*) need_version=yes ;;
  11574. *) need_version=no ;;
  11575. esac
  11576. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  11577. finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  11578. shlibpath_var=LD_LIBRARY_PATH
  11579. if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  11580. case $host_os in
  11581. openbsd2.[89] | openbsd2.[89].*)
  11582. shlibpath_overrides_runpath=no
  11583. ;;
  11584. *)
  11585. shlibpath_overrides_runpath=yes
  11586. ;;
  11587. esac
  11588. else
  11589. shlibpath_overrides_runpath=yes
  11590. fi
  11591. ;;
  11592. os2*)
  11593. libname_spec='$name'
  11594. shrext_cmds=".dll"
  11595. need_lib_prefix=no
  11596. library_names_spec='$libname${shared_ext} $libname.a'
  11597. dynamic_linker='OS/2 ld.exe'
  11598. shlibpath_var=LIBPATH
  11599. ;;
  11600. osf3* | osf4* | osf5*)
  11601. version_type=osf
  11602. need_lib_prefix=no
  11603. need_version=no
  11604. soname_spec='${libname}${release}${shared_ext}$major'
  11605. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  11606. shlibpath_var=LD_LIBRARY_PATH
  11607. sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
  11608. sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
  11609. ;;
  11610. rdos*)
  11611. dynamic_linker=no
  11612. ;;
  11613. solaris*)
  11614. version_type=linux # correct to gnu/linux during the next big refactor
  11615. need_lib_prefix=no
  11616. need_version=no
  11617. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  11618. soname_spec='${libname}${release}${shared_ext}$major'
  11619. shlibpath_var=LD_LIBRARY_PATH
  11620. shlibpath_overrides_runpath=yes
  11621. hardcode_into_libs=yes
  11622. # ldd complains unless libraries are executable
  11623. postinstall_cmds='chmod +x $lib'
  11624. ;;
  11625. sunos4*)
  11626. version_type=sunos
  11627. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  11628. finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
  11629. shlibpath_var=LD_LIBRARY_PATH
  11630. shlibpath_overrides_runpath=yes
  11631. if test "$with_gnu_ld" = yes; then
  11632. need_lib_prefix=no
  11633. fi
  11634. need_version=yes
  11635. ;;
  11636. sysv4 | sysv4.3*)
  11637. version_type=linux # correct to gnu/linux during the next big refactor
  11638. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  11639. soname_spec='${libname}${release}${shared_ext}$major'
  11640. shlibpath_var=LD_LIBRARY_PATH
  11641. case $host_vendor in
  11642. sni)
  11643. shlibpath_overrides_runpath=no
  11644. need_lib_prefix=no
  11645. runpath_var=LD_RUN_PATH
  11646. ;;
  11647. siemens)
  11648. need_lib_prefix=no
  11649. ;;
  11650. motorola)
  11651. need_lib_prefix=no
  11652. need_version=no
  11653. shlibpath_overrides_runpath=no
  11654. sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
  11655. ;;
  11656. esac
  11657. ;;
  11658. sysv4*MP*)
  11659. if test -d /usr/nec ;then
  11660. version_type=linux # correct to gnu/linux during the next big refactor
  11661. library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
  11662. soname_spec='$libname${shared_ext}.$major'
  11663. shlibpath_var=LD_LIBRARY_PATH
  11664. fi
  11665. ;;
  11666. sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
  11667. version_type=freebsd-elf
  11668. need_lib_prefix=no
  11669. need_version=no
  11670. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
  11671. soname_spec='${libname}${release}${shared_ext}$major'
  11672. shlibpath_var=LD_LIBRARY_PATH
  11673. shlibpath_overrides_runpath=yes
  11674. hardcode_into_libs=yes
  11675. if test "$with_gnu_ld" = yes; then
  11676. sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
  11677. else
  11678. sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
  11679. case $host_os in
  11680. sco3.2v5*)
  11681. sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
  11682. ;;
  11683. esac
  11684. fi
  11685. sys_lib_dlsearch_path_spec='/usr/lib'
  11686. ;;
  11687. tpf*)
  11688. # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
  11689. version_type=linux # correct to gnu/linux during the next big refactor
  11690. need_lib_prefix=no
  11691. need_version=no
  11692. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  11693. shlibpath_var=LD_LIBRARY_PATH
  11694. shlibpath_overrides_runpath=no
  11695. hardcode_into_libs=yes
  11696. ;;
  11697. uts4*)
  11698. version_type=linux # correct to gnu/linux during the next big refactor
  11699. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  11700. soname_spec='${libname}${release}${shared_ext}$major'
  11701. shlibpath_var=LD_LIBRARY_PATH
  11702. ;;
  11703. *)
  11704. dynamic_linker=no
  11705. ;;
  11706. esac
  11707. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
  11708. $as_echo "$dynamic_linker" >&6; }
  11709. test "$dynamic_linker" = no && can_build_shared=no
  11710. variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
  11711. if test "$GCC" = yes; then
  11712. variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
  11713. fi
  11714. if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
  11715. sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
  11716. fi
  11717. if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
  11718. sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
  11719. fi
  11720. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
  11721. $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
  11722. hardcode_action=
  11723. if test -n "$hardcode_libdir_flag_spec" ||
  11724. test -n "$runpath_var" ||
  11725. test "X$hardcode_automatic" = "Xyes" ; then
  11726. # We can hardcode non-existent directories.
  11727. if test "$hardcode_direct" != no &&
  11728. # If the only mechanism to avoid hardcoding is shlibpath_var, we
  11729. # have to relink, otherwise we might link with an installed library
  11730. # when we should be linking with a yet-to-be-installed one
  11731. ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
  11732. test "$hardcode_minus_L" != no; then
  11733. # Linking always hardcodes the temporary library directory.
  11734. hardcode_action=relink
  11735. else
  11736. # We can link without hardcoding, and we can hardcode nonexisting dirs.
  11737. hardcode_action=immediate
  11738. fi
  11739. else
  11740. # We cannot hardcode anything, or else we can only hardcode existing
  11741. # directories.
  11742. hardcode_action=unsupported
  11743. fi
  11744. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
  11745. $as_echo "$hardcode_action" >&6; }
  11746. if test "$hardcode_action" = relink ||
  11747. test "$inherit_rpath" = yes; then
  11748. # Fast installation is not supported
  11749. enable_fast_install=no
  11750. elif test "$shlibpath_overrides_runpath" = yes ||
  11751. test "$enable_shared" = no; then
  11752. # Fast installation is not necessary
  11753. enable_fast_install=needless
  11754. fi
  11755. if test "x$enable_dlopen" != xyes; then
  11756. enable_dlopen=unknown
  11757. enable_dlopen_self=unknown
  11758. enable_dlopen_self_static=unknown
  11759. else
  11760. lt_cv_dlopen=no
  11761. lt_cv_dlopen_libs=
  11762. case $host_os in
  11763. beos*)
  11764. lt_cv_dlopen="load_add_on"
  11765. lt_cv_dlopen_libs=
  11766. lt_cv_dlopen_self=yes
  11767. ;;
  11768. mingw* | pw32* | cegcc*)
  11769. lt_cv_dlopen="LoadLibrary"
  11770. lt_cv_dlopen_libs=
  11771. ;;
  11772. cygwin*)
  11773. lt_cv_dlopen="dlopen"
  11774. lt_cv_dlopen_libs=
  11775. ;;
  11776. darwin*)
  11777. # if libdl is installed we need to link against it
  11778. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
  11779. $as_echo_n "checking for dlopen in -ldl... " >&6; }
  11780. if ${ac_cv_lib_dl_dlopen+:} false; then :
  11781. $as_echo_n "(cached) " >&6
  11782. else
  11783. ac_check_lib_save_LIBS=$LIBS
  11784. LIBS="-ldl $LIBS"
  11785. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11786. /* end confdefs.h. */
  11787. /* Override any GCC internal prototype to avoid an error.
  11788. Use char because int might match the return type of a GCC
  11789. builtin and then its argument prototype would still apply. */
  11790. #ifdef __cplusplus
  11791. extern "C"
  11792. #endif
  11793. char dlopen ();
  11794. int
  11795. main ()
  11796. {
  11797. return dlopen ();
  11798. ;
  11799. return 0;
  11800. }
  11801. _ACEOF
  11802. if ac_fn_c_try_link "$LINENO"; then :
  11803. ac_cv_lib_dl_dlopen=yes
  11804. else
  11805. ac_cv_lib_dl_dlopen=no
  11806. fi
  11807. rm -f core conftest.err conftest.$ac_objext \
  11808. conftest$ac_exeext conftest.$ac_ext
  11809. LIBS=$ac_check_lib_save_LIBS
  11810. fi
  11811. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
  11812. $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
  11813. if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
  11814. lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
  11815. else
  11816. lt_cv_dlopen="dyld"
  11817. lt_cv_dlopen_libs=
  11818. lt_cv_dlopen_self=yes
  11819. fi
  11820. ;;
  11821. *)
  11822. ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
  11823. if test "x$ac_cv_func_shl_load" = xyes; then :
  11824. lt_cv_dlopen="shl_load"
  11825. else
  11826. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
  11827. $as_echo_n "checking for shl_load in -ldld... " >&6; }
  11828. if ${ac_cv_lib_dld_shl_load+:} false; then :
  11829. $as_echo_n "(cached) " >&6
  11830. else
  11831. ac_check_lib_save_LIBS=$LIBS
  11832. LIBS="-ldld $LIBS"
  11833. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11834. /* end confdefs.h. */
  11835. /* Override any GCC internal prototype to avoid an error.
  11836. Use char because int might match the return type of a GCC
  11837. builtin and then its argument prototype would still apply. */
  11838. #ifdef __cplusplus
  11839. extern "C"
  11840. #endif
  11841. char shl_load ();
  11842. int
  11843. main ()
  11844. {
  11845. return shl_load ();
  11846. ;
  11847. return 0;
  11848. }
  11849. _ACEOF
  11850. if ac_fn_c_try_link "$LINENO"; then :
  11851. ac_cv_lib_dld_shl_load=yes
  11852. else
  11853. ac_cv_lib_dld_shl_load=no
  11854. fi
  11855. rm -f core conftest.err conftest.$ac_objext \
  11856. conftest$ac_exeext conftest.$ac_ext
  11857. LIBS=$ac_check_lib_save_LIBS
  11858. fi
  11859. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
  11860. $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
  11861. if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
  11862. lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
  11863. else
  11864. ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
  11865. if test "x$ac_cv_func_dlopen" = xyes; then :
  11866. lt_cv_dlopen="dlopen"
  11867. else
  11868. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
  11869. $as_echo_n "checking for dlopen in -ldl... " >&6; }
  11870. if ${ac_cv_lib_dl_dlopen+:} false; then :
  11871. $as_echo_n "(cached) " >&6
  11872. else
  11873. ac_check_lib_save_LIBS=$LIBS
  11874. LIBS="-ldl $LIBS"
  11875. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11876. /* end confdefs.h. */
  11877. /* Override any GCC internal prototype to avoid an error.
  11878. Use char because int might match the return type of a GCC
  11879. builtin and then its argument prototype would still apply. */
  11880. #ifdef __cplusplus
  11881. extern "C"
  11882. #endif
  11883. char dlopen ();
  11884. int
  11885. main ()
  11886. {
  11887. return dlopen ();
  11888. ;
  11889. return 0;
  11890. }
  11891. _ACEOF
  11892. if ac_fn_c_try_link "$LINENO"; then :
  11893. ac_cv_lib_dl_dlopen=yes
  11894. else
  11895. ac_cv_lib_dl_dlopen=no
  11896. fi
  11897. rm -f core conftest.err conftest.$ac_objext \
  11898. conftest$ac_exeext conftest.$ac_ext
  11899. LIBS=$ac_check_lib_save_LIBS
  11900. fi
  11901. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
  11902. $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
  11903. if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
  11904. lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
  11905. else
  11906. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
  11907. $as_echo_n "checking for dlopen in -lsvld... " >&6; }
  11908. if ${ac_cv_lib_svld_dlopen+:} false; then :
  11909. $as_echo_n "(cached) " >&6
  11910. else
  11911. ac_check_lib_save_LIBS=$LIBS
  11912. LIBS="-lsvld $LIBS"
  11913. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11914. /* end confdefs.h. */
  11915. /* Override any GCC internal prototype to avoid an error.
  11916. Use char because int might match the return type of a GCC
  11917. builtin and then its argument prototype would still apply. */
  11918. #ifdef __cplusplus
  11919. extern "C"
  11920. #endif
  11921. char dlopen ();
  11922. int
  11923. main ()
  11924. {
  11925. return dlopen ();
  11926. ;
  11927. return 0;
  11928. }
  11929. _ACEOF
  11930. if ac_fn_c_try_link "$LINENO"; then :
  11931. ac_cv_lib_svld_dlopen=yes
  11932. else
  11933. ac_cv_lib_svld_dlopen=no
  11934. fi
  11935. rm -f core conftest.err conftest.$ac_objext \
  11936. conftest$ac_exeext conftest.$ac_ext
  11937. LIBS=$ac_check_lib_save_LIBS
  11938. fi
  11939. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
  11940. $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
  11941. if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
  11942. lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
  11943. else
  11944. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
  11945. $as_echo_n "checking for dld_link in -ldld... " >&6; }
  11946. if ${ac_cv_lib_dld_dld_link+:} false; then :
  11947. $as_echo_n "(cached) " >&6
  11948. else
  11949. ac_check_lib_save_LIBS=$LIBS
  11950. LIBS="-ldld $LIBS"
  11951. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11952. /* end confdefs.h. */
  11953. /* Override any GCC internal prototype to avoid an error.
  11954. Use char because int might match the return type of a GCC
  11955. builtin and then its argument prototype would still apply. */
  11956. #ifdef __cplusplus
  11957. extern "C"
  11958. #endif
  11959. char dld_link ();
  11960. int
  11961. main ()
  11962. {
  11963. return dld_link ();
  11964. ;
  11965. return 0;
  11966. }
  11967. _ACEOF
  11968. if ac_fn_c_try_link "$LINENO"; then :
  11969. ac_cv_lib_dld_dld_link=yes
  11970. else
  11971. ac_cv_lib_dld_dld_link=no
  11972. fi
  11973. rm -f core conftest.err conftest.$ac_objext \
  11974. conftest$ac_exeext conftest.$ac_ext
  11975. LIBS=$ac_check_lib_save_LIBS
  11976. fi
  11977. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
  11978. $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
  11979. if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
  11980. lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
  11981. fi
  11982. fi
  11983. fi
  11984. fi
  11985. fi
  11986. fi
  11987. ;;
  11988. esac
  11989. if test "x$lt_cv_dlopen" != xno; then
  11990. enable_dlopen=yes
  11991. else
  11992. enable_dlopen=no
  11993. fi
  11994. case $lt_cv_dlopen in
  11995. dlopen)
  11996. save_CPPFLAGS="$CPPFLAGS"
  11997. test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
  11998. save_LDFLAGS="$LDFLAGS"
  11999. wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
  12000. save_LIBS="$LIBS"
  12001. LIBS="$lt_cv_dlopen_libs $LIBS"
  12002. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
  12003. $as_echo_n "checking whether a program can dlopen itself... " >&6; }
  12004. if ${lt_cv_dlopen_self+:} false; then :
  12005. $as_echo_n "(cached) " >&6
  12006. else
  12007. if test "$cross_compiling" = yes; then :
  12008. lt_cv_dlopen_self=cross
  12009. else
  12010. lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
  12011. lt_status=$lt_dlunknown
  12012. cat > conftest.$ac_ext <<_LT_EOF
  12013. #line $LINENO "configure"
  12014. #include "confdefs.h"
  12015. #if HAVE_DLFCN_H
  12016. #include <dlfcn.h>
  12017. #endif
  12018. #include <stdio.h>
  12019. #ifdef RTLD_GLOBAL
  12020. # define LT_DLGLOBAL RTLD_GLOBAL
  12021. #else
  12022. # ifdef DL_GLOBAL
  12023. # define LT_DLGLOBAL DL_GLOBAL
  12024. # else
  12025. # define LT_DLGLOBAL 0
  12026. # endif
  12027. #endif
  12028. /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
  12029. find out it does not work in some platform. */
  12030. #ifndef LT_DLLAZY_OR_NOW
  12031. # ifdef RTLD_LAZY
  12032. # define LT_DLLAZY_OR_NOW RTLD_LAZY
  12033. # else
  12034. # ifdef DL_LAZY
  12035. # define LT_DLLAZY_OR_NOW DL_LAZY
  12036. # else
  12037. # ifdef RTLD_NOW
  12038. # define LT_DLLAZY_OR_NOW RTLD_NOW
  12039. # else
  12040. # ifdef DL_NOW
  12041. # define LT_DLLAZY_OR_NOW DL_NOW
  12042. # else
  12043. # define LT_DLLAZY_OR_NOW 0
  12044. # endif
  12045. # endif
  12046. # endif
  12047. # endif
  12048. #endif
  12049. /* When -fvisbility=hidden is used, assume the code has been annotated
  12050. correspondingly for the symbols needed. */
  12051. #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
  12052. int fnord () __attribute__((visibility("default")));
  12053. #endif
  12054. int fnord () { return 42; }
  12055. int main ()
  12056. {
  12057. void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
  12058. int status = $lt_dlunknown;
  12059. if (self)
  12060. {
  12061. if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
  12062. else
  12063. {
  12064. if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
  12065. else puts (dlerror ());
  12066. }
  12067. /* dlclose (self); */
  12068. }
  12069. else
  12070. puts (dlerror ());
  12071. return status;
  12072. }
  12073. _LT_EOF
  12074. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
  12075. (eval $ac_link) 2>&5
  12076. ac_status=$?
  12077. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  12078. test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
  12079. (./conftest; exit; ) >&5 2>/dev/null
  12080. lt_status=$?
  12081. case x$lt_status in
  12082. x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
  12083. x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
  12084. x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
  12085. esac
  12086. else :
  12087. # compilation failed
  12088. lt_cv_dlopen_self=no
  12089. fi
  12090. fi
  12091. rm -fr conftest*
  12092. fi
  12093. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
  12094. $as_echo "$lt_cv_dlopen_self" >&6; }
  12095. if test "x$lt_cv_dlopen_self" = xyes; then
  12096. wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
  12097. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
  12098. $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
  12099. if ${lt_cv_dlopen_self_static+:} false; then :
  12100. $as_echo_n "(cached) " >&6
  12101. else
  12102. if test "$cross_compiling" = yes; then :
  12103. lt_cv_dlopen_self_static=cross
  12104. else
  12105. lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
  12106. lt_status=$lt_dlunknown
  12107. cat > conftest.$ac_ext <<_LT_EOF
  12108. #line $LINENO "configure"
  12109. #include "confdefs.h"
  12110. #if HAVE_DLFCN_H
  12111. #include <dlfcn.h>
  12112. #endif
  12113. #include <stdio.h>
  12114. #ifdef RTLD_GLOBAL
  12115. # define LT_DLGLOBAL RTLD_GLOBAL
  12116. #else
  12117. # ifdef DL_GLOBAL
  12118. # define LT_DLGLOBAL DL_GLOBAL
  12119. # else
  12120. # define LT_DLGLOBAL 0
  12121. # endif
  12122. #endif
  12123. /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
  12124. find out it does not work in some platform. */
  12125. #ifndef LT_DLLAZY_OR_NOW
  12126. # ifdef RTLD_LAZY
  12127. # define LT_DLLAZY_OR_NOW RTLD_LAZY
  12128. # else
  12129. # ifdef DL_LAZY
  12130. # define LT_DLLAZY_OR_NOW DL_LAZY
  12131. # else
  12132. # ifdef RTLD_NOW
  12133. # define LT_DLLAZY_OR_NOW RTLD_NOW
  12134. # else
  12135. # ifdef DL_NOW
  12136. # define LT_DLLAZY_OR_NOW DL_NOW
  12137. # else
  12138. # define LT_DLLAZY_OR_NOW 0
  12139. # endif
  12140. # endif
  12141. # endif
  12142. # endif
  12143. #endif
  12144. /* When -fvisbility=hidden is used, assume the code has been annotated
  12145. correspondingly for the symbols needed. */
  12146. #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
  12147. int fnord () __attribute__((visibility("default")));
  12148. #endif
  12149. int fnord () { return 42; }
  12150. int main ()
  12151. {
  12152. void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
  12153. int status = $lt_dlunknown;
  12154. if (self)
  12155. {
  12156. if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
  12157. else
  12158. {
  12159. if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
  12160. else puts (dlerror ());
  12161. }
  12162. /* dlclose (self); */
  12163. }
  12164. else
  12165. puts (dlerror ());
  12166. return status;
  12167. }
  12168. _LT_EOF
  12169. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
  12170. (eval $ac_link) 2>&5
  12171. ac_status=$?
  12172. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  12173. test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
  12174. (./conftest; exit; ) >&5 2>/dev/null
  12175. lt_status=$?
  12176. case x$lt_status in
  12177. x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
  12178. x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
  12179. x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
  12180. esac
  12181. else :
  12182. # compilation failed
  12183. lt_cv_dlopen_self_static=no
  12184. fi
  12185. fi
  12186. rm -fr conftest*
  12187. fi
  12188. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
  12189. $as_echo "$lt_cv_dlopen_self_static" >&6; }
  12190. fi
  12191. CPPFLAGS="$save_CPPFLAGS"
  12192. LDFLAGS="$save_LDFLAGS"
  12193. LIBS="$save_LIBS"
  12194. ;;
  12195. esac
  12196. case $lt_cv_dlopen_self in
  12197. yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
  12198. *) enable_dlopen_self=unknown ;;
  12199. esac
  12200. case $lt_cv_dlopen_self_static in
  12201. yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
  12202. *) enable_dlopen_self_static=unknown ;;
  12203. esac
  12204. fi
  12205. striplib=
  12206. old_striplib=
  12207. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
  12208. $as_echo_n "checking whether stripping libraries is possible... " >&6; }
  12209. if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
  12210. test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
  12211. test -z "$striplib" && striplib="$STRIP --strip-unneeded"
  12212. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  12213. $as_echo "yes" >&6; }
  12214. else
  12215. # FIXME - insert some real tests, host_os isn't really good enough
  12216. case $host_os in
  12217. darwin*)
  12218. if test -n "$STRIP" ; then
  12219. striplib="$STRIP -x"
  12220. old_striplib="$STRIP -S"
  12221. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  12222. $as_echo "yes" >&6; }
  12223. else
  12224. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  12225. $as_echo "no" >&6; }
  12226. fi
  12227. ;;
  12228. *)
  12229. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  12230. $as_echo "no" >&6; }
  12231. ;;
  12232. esac
  12233. fi
  12234. # Report which library types will actually be built
  12235. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
  12236. $as_echo_n "checking if libtool supports shared libraries... " >&6; }
  12237. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
  12238. $as_echo "$can_build_shared" >&6; }
  12239. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
  12240. $as_echo_n "checking whether to build shared libraries... " >&6; }
  12241. test "$can_build_shared" = "no" && enable_shared=no
  12242. # On AIX, shared libraries and static libraries use the same namespace, and
  12243. # are all built from PIC.
  12244. case $host_os in
  12245. aix3*)
  12246. test "$enable_shared" = yes && enable_static=no
  12247. if test -n "$RANLIB"; then
  12248. archive_cmds="$archive_cmds~\$RANLIB \$lib"
  12249. postinstall_cmds='$RANLIB $lib'
  12250. fi
  12251. ;;
  12252. aix[4-9]*)
  12253. if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
  12254. test "$enable_shared" = yes && enable_static=no
  12255. fi
  12256. ;;
  12257. esac
  12258. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
  12259. $as_echo "$enable_shared" >&6; }
  12260. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
  12261. $as_echo_n "checking whether to build static libraries... " >&6; }
  12262. # Make sure either enable_shared or enable_static is yes.
  12263. test "$enable_shared" = yes || enable_static=yes
  12264. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
  12265. $as_echo "$enable_static" >&6; }
  12266. fi
  12267. ac_ext=c
  12268. ac_cpp='$CPP $CPPFLAGS'
  12269. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  12270. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  12271. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  12272. CC="$lt_save_CC"
  12273. ac_config_commands="$ac_config_commands libtool"
  12274. # Only expand once:
  12275. # Checks to compile test suite
  12276. # The cast to long int works around a bug in the HP C Compiler
  12277. # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
  12278. # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
  12279. # This bug is HP SR number 8606223364.
  12280. { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of time_t" >&5
  12281. $as_echo_n "checking size of time_t... " >&6; }
  12282. if ${ac_cv_sizeof_time_t+:} false; then :
  12283. $as_echo_n "(cached) " >&6
  12284. else
  12285. if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (time_t))" "ac_cv_sizeof_time_t" "$ac_includes_default
  12286. #ifdef HAVE_SYS_TIME_H
  12287. #include <sys/time.h>
  12288. #endif
  12289. "; then :
  12290. else
  12291. if test "$ac_cv_type_time_t" = yes; then
  12292. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  12293. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  12294. as_fn_error 77 "cannot compute sizeof (time_t)
  12295. See \`config.log' for more details" "$LINENO" 5; }
  12296. else
  12297. ac_cv_sizeof_time_t=0
  12298. fi
  12299. fi
  12300. fi
  12301. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_time_t" >&5
  12302. $as_echo "$ac_cv_sizeof_time_t" >&6; }
  12303. cat >>confdefs.h <<_ACEOF
  12304. #define SIZEOF_TIME_T $ac_cv_sizeof_time_t
  12305. _ACEOF
  12306. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print time_t" >&5
  12307. $as_echo_n "checking how to print time_t... " >&6; }
  12308. if ${ne_cv_fmt_time_t+:} false; then :
  12309. $as_echo_n "(cached) " >&6
  12310. else
  12311. ne_cv_fmt_time_t=none
  12312. if test $ne_fmt_trycompile = yes; then
  12313. oflags="$CPPFLAGS"
  12314. # Consider format string mismatches as errors
  12315. CPPFLAGS="$CPPFLAGS -Wformat -Werror"
  12316. for str in d ld lld; do
  12317. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12318. /* end confdefs.h. */
  12319. #include <sys/types.h>
  12320. #ifdef HAVE_SYS_TIME_H
  12321. #include <sys/time.h>
  12322. #endif
  12323. #include <stdio.h>
  12324. int
  12325. main ()
  12326. {
  12327. time_t i = 1; printf("%$str", i);
  12328. ;
  12329. return 0;
  12330. }
  12331. _ACEOF
  12332. if ac_fn_c_try_compile "$LINENO"; then :
  12333. ne_cv_fmt_time_t=$str; break
  12334. fi
  12335. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  12336. done
  12337. CPPFLAGS=$oflags
  12338. else
  12339. # Best guess. Don't have to be too precise since we probably won't
  12340. # get a warning message anyway.
  12341. case $ac_cv_sizeof_time_t in
  12342. $ac_cv_sizeof_int) ne_cv_fmt_time_t="d" ;;
  12343. $ac_cv_sizeof_long) ne_cv_fmt_time_t="ld" ;;
  12344. $ac_cv_sizeof_long_long) ne_cv_fmt_time_t="lld" ;;
  12345. esac
  12346. fi
  12347. fi
  12348. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ne_cv_fmt_time_t" >&5
  12349. $as_echo "$ne_cv_fmt_time_t" >&6; }
  12350. if test "x$ne_cv_fmt_time_t" = "xnone"; then
  12351. as_fn_error $? "format string for time_t not found" "$LINENO" 5
  12352. fi
  12353. cat >>confdefs.h <<_ACEOF
  12354. #define NE_FMT_TIME_T "$ne_cv_fmt_time_t"
  12355. _ACEOF
  12356. ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
  12357. if test "x$ac_cv_type_pid_t" = xyes; then :
  12358. else
  12359. cat >>confdefs.h <<_ACEOF
  12360. #define pid_t int
  12361. _ACEOF
  12362. fi
  12363. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5
  12364. $as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
  12365. if ${ac_cv_header_time+:} false; then :
  12366. $as_echo_n "(cached) " >&6
  12367. else
  12368. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12369. /* end confdefs.h. */
  12370. #include <sys/types.h>
  12371. #include <sys/time.h>
  12372. #include <time.h>
  12373. int
  12374. main ()
  12375. {
  12376. if ((struct tm *) 0)
  12377. return 0;
  12378. ;
  12379. return 0;
  12380. }
  12381. _ACEOF
  12382. if ac_fn_c_try_compile "$LINENO"; then :
  12383. ac_cv_header_time=yes
  12384. else
  12385. ac_cv_header_time=no
  12386. fi
  12387. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  12388. fi
  12389. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
  12390. $as_echo "$ac_cv_header_time" >&6; }
  12391. if test $ac_cv_header_time = yes; then
  12392. $as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
  12393. fi
  12394. # Search in /usr/ccs/bin for Solaris
  12395. ne_PATH=$PATH:/usr/ccs/bin
  12396. if test -n "$ac_tool_prefix"; then
  12397. # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
  12398. set dummy ${ac_tool_prefix}ar; ac_word=$2
  12399. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  12400. $as_echo_n "checking for $ac_word... " >&6; }
  12401. if ${ac_cv_path_AR+:} false; then :
  12402. $as_echo_n "(cached) " >&6
  12403. else
  12404. case $AR in
  12405. [\\/]* | ?:[\\/]*)
  12406. ac_cv_path_AR="$AR" # Let the user override the test with a path.
  12407. ;;
  12408. *)
  12409. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  12410. for as_dir in $ne_PATH
  12411. do
  12412. IFS=$as_save_IFS
  12413. test -z "$as_dir" && as_dir=.
  12414. for ac_exec_ext in '' $ac_executable_extensions; do
  12415. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  12416. ac_cv_path_AR="$as_dir/$ac_word$ac_exec_ext"
  12417. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  12418. break 2
  12419. fi
  12420. done
  12421. done
  12422. IFS=$as_save_IFS
  12423. ;;
  12424. esac
  12425. fi
  12426. AR=$ac_cv_path_AR
  12427. if test -n "$AR"; then
  12428. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
  12429. $as_echo "$AR" >&6; }
  12430. else
  12431. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  12432. $as_echo "no" >&6; }
  12433. fi
  12434. fi
  12435. if test -z "$ac_cv_path_AR"; then
  12436. ac_pt_AR=$AR
  12437. # Extract the first word of "ar", so it can be a program name with args.
  12438. set dummy ar; ac_word=$2
  12439. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  12440. $as_echo_n "checking for $ac_word... " >&6; }
  12441. if ${ac_cv_path_ac_pt_AR+:} false; then :
  12442. $as_echo_n "(cached) " >&6
  12443. else
  12444. case $ac_pt_AR in
  12445. [\\/]* | ?:[\\/]*)
  12446. ac_cv_path_ac_pt_AR="$ac_pt_AR" # Let the user override the test with a path.
  12447. ;;
  12448. *)
  12449. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  12450. for as_dir in $ne_PATH
  12451. do
  12452. IFS=$as_save_IFS
  12453. test -z "$as_dir" && as_dir=.
  12454. for ac_exec_ext in '' $ac_executable_extensions; do
  12455. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  12456. ac_cv_path_ac_pt_AR="$as_dir/$ac_word$ac_exec_ext"
  12457. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  12458. break 2
  12459. fi
  12460. done
  12461. done
  12462. IFS=$as_save_IFS
  12463. ;;
  12464. esac
  12465. fi
  12466. ac_pt_AR=$ac_cv_path_ac_pt_AR
  12467. if test -n "$ac_pt_AR"; then
  12468. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_AR" >&5
  12469. $as_echo "$ac_pt_AR" >&6; }
  12470. else
  12471. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  12472. $as_echo "no" >&6; }
  12473. fi
  12474. if test "x$ac_pt_AR" = x; then
  12475. AR="notfound"
  12476. else
  12477. case $cross_compiling:$ac_tool_warned in
  12478. yes:)
  12479. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  12480. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  12481. ac_tool_warned=yes ;;
  12482. esac
  12483. AR=$ac_pt_AR
  12484. fi
  12485. else
  12486. AR="$ac_cv_path_AR"
  12487. fi
  12488. if test "x$AR" = "xnotfound"; then
  12489. as_fn_error $? "could not find ar tool" "$LINENO" 5
  12490. fi
  12491. if test -n "$ac_tool_prefix"; then
  12492. # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
  12493. set dummy ${ac_tool_prefix}ranlib; ac_word=$2
  12494. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  12495. $as_echo_n "checking for $ac_word... " >&6; }
  12496. if ${ac_cv_path_RANLIB+:} false; then :
  12497. $as_echo_n "(cached) " >&6
  12498. else
  12499. case $RANLIB in
  12500. [\\/]* | ?:[\\/]*)
  12501. ac_cv_path_RANLIB="$RANLIB" # Let the user override the test with a path.
  12502. ;;
  12503. *)
  12504. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  12505. for as_dir in $ne_PATH
  12506. do
  12507. IFS=$as_save_IFS
  12508. test -z "$as_dir" && as_dir=.
  12509. for ac_exec_ext in '' $ac_executable_extensions; do
  12510. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  12511. ac_cv_path_RANLIB="$as_dir/$ac_word$ac_exec_ext"
  12512. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  12513. break 2
  12514. fi
  12515. done
  12516. done
  12517. IFS=$as_save_IFS
  12518. ;;
  12519. esac
  12520. fi
  12521. RANLIB=$ac_cv_path_RANLIB
  12522. if test -n "$RANLIB"; then
  12523. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
  12524. $as_echo "$RANLIB" >&6; }
  12525. else
  12526. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  12527. $as_echo "no" >&6; }
  12528. fi
  12529. fi
  12530. if test -z "$ac_cv_path_RANLIB"; then
  12531. ac_pt_RANLIB=$RANLIB
  12532. # Extract the first word of "ranlib", so it can be a program name with args.
  12533. set dummy ranlib; ac_word=$2
  12534. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  12535. $as_echo_n "checking for $ac_word... " >&6; }
  12536. if ${ac_cv_path_ac_pt_RANLIB+:} false; then :
  12537. $as_echo_n "(cached) " >&6
  12538. else
  12539. case $ac_pt_RANLIB in
  12540. [\\/]* | ?:[\\/]*)
  12541. ac_cv_path_ac_pt_RANLIB="$ac_pt_RANLIB" # Let the user override the test with a path.
  12542. ;;
  12543. *)
  12544. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  12545. for as_dir in $ne_PATH
  12546. do
  12547. IFS=$as_save_IFS
  12548. test -z "$as_dir" && as_dir=.
  12549. for ac_exec_ext in '' $ac_executable_extensions; do
  12550. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  12551. ac_cv_path_ac_pt_RANLIB="$as_dir/$ac_word$ac_exec_ext"
  12552. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  12553. break 2
  12554. fi
  12555. done
  12556. done
  12557. IFS=$as_save_IFS
  12558. ;;
  12559. esac
  12560. fi
  12561. ac_pt_RANLIB=$ac_cv_path_ac_pt_RANLIB
  12562. if test -n "$ac_pt_RANLIB"; then
  12563. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_RANLIB" >&5
  12564. $as_echo "$ac_pt_RANLIB" >&6; }
  12565. else
  12566. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  12567. $as_echo "no" >&6; }
  12568. fi
  12569. if test "x$ac_pt_RANLIB" = x; then
  12570. RANLIB=":"
  12571. else
  12572. case $cross_compiling:$ac_tool_warned in
  12573. yes:)
  12574. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  12575. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  12576. ac_tool_warned=yes ;;
  12577. esac
  12578. RANLIB=$ac_pt_RANLIB
  12579. fi
  12580. else
  12581. RANLIB="$ac_cv_path_RANLIB"
  12582. fi
  12583. for ac_header in sys/time.h signal.h stdint.h locale.h
  12584. do :
  12585. as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
  12586. ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
  12587. if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
  12588. cat >>confdefs.h <<_ACEOF
  12589. #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
  12590. _ACEOF
  12591. fi
  12592. done
  12593. for ac_func in pipe isatty usleep shutdown setlocale gethostname
  12594. do :
  12595. as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
  12596. ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
  12597. if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
  12598. cat >>confdefs.h <<_ACEOF
  12599. #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
  12600. _ACEOF
  12601. fi
  12602. done
  12603. # Use the libtool-type build.
  12604. NEON_TARGET=libneon.la
  12605. NEON_OBJEXT=lo
  12606. # Using the default set of object files to build.
  12607. # Add the extension to EXTRAOBJS
  12608. ne="$NEON_EXTRAOBJS"
  12609. NEON_EXTRAOBJS=
  12610. for o in $ne; do
  12611. NEON_EXTRAOBJS="$NEON_EXTRAOBJS $o.$NEON_OBJEXT"
  12612. done
  12613. # Was DAV support explicitly turned off?
  12614. if test "x$neon_no_webdav" = "xyes"; then
  12615. # No WebDAV support
  12616. NEONOBJS="$NEONOBJS \$(NEON_BASEOBJS)"
  12617. NE_FLAG_DAV=no
  12618. ne_DAV_message="WebDAV support is not enabled"
  12619. { $as_echo "$as_me:${as_lineno-$LINENO}: WebDAV support is not enabled" >&5
  12620. $as_echo "$as_me: WebDAV support is not enabled" >&6;}
  12621. if test "x${NE_LIBTOOL_RELEASE}y" = "xy"; then
  12622. NE_LIBTOOL_RELEASE="NODAV"
  12623. else
  12624. NE_LIBTOOL_RELEASE="${NE_LIBTOOL_RELEASE}-NODAV"
  12625. fi
  12626. else
  12627. # WebDAV support
  12628. NEONOBJS="$NEONOBJS \$(NEON_DAVOBJS)"
  12629. NE_FLAG_DAV=yes
  12630. $as_echo "#define NE_HAVE_DAV 1" >>confdefs.h
  12631. ne_DAV_message="WebDAV support is enabled"
  12632. { $as_echo "$as_me:${as_lineno-$LINENO}: WebDAV support is enabled" >&5
  12633. $as_echo "$as_me: WebDAV support is enabled" >&6;}
  12634. fi
  12635. # Find an XML parser
  12636. # Check whether --with-libxml2 was given.
  12637. if test "${with_libxml2+set}" = set; then :
  12638. withval=$with_libxml2;
  12639. fi
  12640. # Check whether --with-expat was given.
  12641. if test "${with_expat+set}" = set; then :
  12642. withval=$with_expat;
  12643. fi
  12644. with_included_expat=no
  12645. if test "$NEON_NEED_XML_PARSER" = "yes"; then
  12646. # Find an XML parser
  12647. neon_xml_parser=none
  12648. # Forced choice of expat:
  12649. case $with_expat in
  12650. yes)
  12651. ac_fn_c_check_header_mongrel "$LINENO" "expat.h" "ac_cv_header_expat_h" "$ac_includes_default"
  12652. if test "x$ac_cv_header_expat_h" = xyes; then :
  12653. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XML_SetXmlDeclHandler in -lexpat" >&5
  12654. $as_echo_n "checking for XML_SetXmlDeclHandler in -lexpat... " >&6; }
  12655. if ${ac_cv_lib_expat_XML_SetXmlDeclHandler+:} false; then :
  12656. $as_echo_n "(cached) " >&6
  12657. else
  12658. ac_check_lib_save_LIBS=$LIBS
  12659. LIBS="-lexpat $LIBS"
  12660. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12661. /* end confdefs.h. */
  12662. /* Override any GCC internal prototype to avoid an error.
  12663. Use char because int might match the return type of a GCC
  12664. builtin and then its argument prototype would still apply. */
  12665. #ifdef __cplusplus
  12666. extern "C"
  12667. #endif
  12668. char XML_SetXmlDeclHandler ();
  12669. int
  12670. main ()
  12671. {
  12672. return XML_SetXmlDeclHandler ();
  12673. ;
  12674. return 0;
  12675. }
  12676. _ACEOF
  12677. if ac_fn_c_try_link "$LINENO"; then :
  12678. ac_cv_lib_expat_XML_SetXmlDeclHandler=yes
  12679. else
  12680. ac_cv_lib_expat_XML_SetXmlDeclHandler=no
  12681. fi
  12682. rm -f core conftest.err conftest.$ac_objext \
  12683. conftest$ac_exeext conftest.$ac_ext
  12684. LIBS=$ac_check_lib_save_LIBS
  12685. fi
  12686. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_expat_XML_SetXmlDeclHandler" >&5
  12687. $as_echo "$ac_cv_lib_expat_XML_SetXmlDeclHandler" >&6; }
  12688. if test "x$ac_cv_lib_expat_XML_SetXmlDeclHandler" = xyes; then :
  12689. $as_echo "#define HAVE_EXPAT 1" >>confdefs.h
  12690. neon_xml_parser_message="expat"
  12691. NEON_LIBS="$NEON_LIBS -lexpat"
  12692. neon_xml_parser=expat
  12693. ac_fn_c_check_type "$LINENO" "XML_Size" "ac_cv_type_XML_Size" "#include <expat.h>
  12694. "
  12695. if test "x$ac_cv_type_XML_Size" = xyes; then :
  12696. # The cast to long int works around a bug in the HP C Compiler
  12697. # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
  12698. # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
  12699. # This bug is HP SR number 8606223364.
  12700. { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of XML_Size" >&5
  12701. $as_echo_n "checking size of XML_Size... " >&6; }
  12702. if ${ac_cv_sizeof_XML_Size+:} false; then :
  12703. $as_echo_n "(cached) " >&6
  12704. else
  12705. if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (XML_Size))" "ac_cv_sizeof_XML_Size" "$ac_includes_default
  12706. #include <expat.h>
  12707. "; then :
  12708. else
  12709. if test "$ac_cv_type_XML_Size" = yes; then
  12710. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  12711. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  12712. as_fn_error 77 "cannot compute sizeof (XML_Size)
  12713. See \`config.log' for more details" "$LINENO" 5; }
  12714. else
  12715. ac_cv_sizeof_XML_Size=0
  12716. fi
  12717. fi
  12718. fi
  12719. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_XML_Size" >&5
  12720. $as_echo "$ac_cv_sizeof_XML_Size" >&6; }
  12721. cat >>confdefs.h <<_ACEOF
  12722. #define SIZEOF_XML_SIZE $ac_cv_sizeof_XML_Size
  12723. _ACEOF
  12724. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print XML_Size" >&5
  12725. $as_echo_n "checking how to print XML_Size... " >&6; }
  12726. if ${ne_cv_fmt_XML_Size+:} false; then :
  12727. $as_echo_n "(cached) " >&6
  12728. else
  12729. ne_cv_fmt_XML_Size=none
  12730. if test $ne_fmt_trycompile = yes; then
  12731. oflags="$CPPFLAGS"
  12732. # Consider format string mismatches as errors
  12733. CPPFLAGS="$CPPFLAGS -Wformat -Werror"
  12734. for str in d ld lld; do
  12735. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12736. /* end confdefs.h. */
  12737. #include <sys/types.h>
  12738. #include <expat.h>
  12739. #include <stdio.h>
  12740. int
  12741. main ()
  12742. {
  12743. XML_Size i = 1; printf("%$str", i);
  12744. ;
  12745. return 0;
  12746. }
  12747. _ACEOF
  12748. if ac_fn_c_try_compile "$LINENO"; then :
  12749. ne_cv_fmt_XML_Size=$str; break
  12750. fi
  12751. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  12752. done
  12753. CPPFLAGS=$oflags
  12754. else
  12755. # Best guess. Don't have to be too precise since we probably won't
  12756. # get a warning message anyway.
  12757. case $ac_cv_sizeof_XML_Size in
  12758. $ac_cv_sizeof_int) ne_cv_fmt_XML_Size="d" ;;
  12759. $ac_cv_sizeof_long) ne_cv_fmt_XML_Size="ld" ;;
  12760. $ac_cv_sizeof_long_long) ne_cv_fmt_XML_Size="lld" ;;
  12761. esac
  12762. fi
  12763. fi
  12764. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ne_cv_fmt_XML_Size" >&5
  12765. $as_echo "$ne_cv_fmt_XML_Size" >&6; }
  12766. if test "x$ne_cv_fmt_XML_Size" = "xnone"; then
  12767. as_fn_error $? "format string for XML_Size not found" "$LINENO" 5
  12768. fi
  12769. cat >>confdefs.h <<_ACEOF
  12770. #define NE_FMT_XML_SIZE "$ne_cv_fmt_XML_Size"
  12771. _ACEOF
  12772. else
  12773. cat >>confdefs.h <<_ACEOF
  12774. #define NE_FMT_XML_SIZE "d"
  12775. _ACEOF
  12776. fi
  12777. else
  12778. as_fn_error $? "expat library not found, cannot proceed" "$LINENO" 5
  12779. fi
  12780. else
  12781. as_fn_error $? "expat library not found, cannot proceed" "$LINENO" 5
  12782. fi
  12783. ;;
  12784. no) ;;
  12785. */libexpat.la)
  12786. # Special case for Subversion
  12787. ne_expdir=`echo $with_expat | sed 's:/libexpat.la$::'`
  12788. $as_echo "#define HAVE_EXPAT 1" >>confdefs.h
  12789. cat >>confdefs.h <<_ACEOF
  12790. #define NE_FMT_XML_SIZE "d"
  12791. _ACEOF
  12792. CPPFLAGS="$CPPFLAGS -I$ne_expdir"
  12793. if test "x${NEON_TARGET}" = "xlibneon.la"; then
  12794. NEON_LTLIBS=$with_expat
  12795. else
  12796. # no dependency on libexpat => crippled libneon, so do partial install
  12797. ALLOW_INSTALL=lib
  12798. fi
  12799. neon_xml_parser=expat
  12800. neon_xml_parser_message="expat in $ne_expdir"
  12801. ;;
  12802. /*) as_fn_error $? "--with-expat does not take a directory argument" "$LINENO" 5 ;;
  12803. esac
  12804. # If expat wasn't specifically enabled and libxml was:
  12805. if test "${neon_xml_parser}-${with_libxml2}-${with_included_expat}" = "none-yes-no"; then
  12806. # Extract the first word of "xml2-config", so it can be a program name with args.
  12807. set dummy xml2-config; ac_word=$2
  12808. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  12809. $as_echo_n "checking for $ac_word... " >&6; }
  12810. if ${ac_cv_prog_XML2_CONFIG+:} false; then :
  12811. $as_echo_n "(cached) " >&6
  12812. else
  12813. if test -n "$XML2_CONFIG"; then
  12814. ac_cv_prog_XML2_CONFIG="$XML2_CONFIG" # Let the user override the test.
  12815. else
  12816. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  12817. for as_dir in $PATH
  12818. do
  12819. IFS=$as_save_IFS
  12820. test -z "$as_dir" && as_dir=.
  12821. for ac_exec_ext in '' $ac_executable_extensions; do
  12822. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  12823. ac_cv_prog_XML2_CONFIG="xml2-config"
  12824. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  12825. break 2
  12826. fi
  12827. done
  12828. done
  12829. IFS=$as_save_IFS
  12830. fi
  12831. fi
  12832. XML2_CONFIG=$ac_cv_prog_XML2_CONFIG
  12833. if test -n "$XML2_CONFIG"; then
  12834. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XML2_CONFIG" >&5
  12835. $as_echo "$XML2_CONFIG" >&6; }
  12836. else
  12837. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  12838. $as_echo "no" >&6; }
  12839. fi
  12840. if test -n "$XML2_CONFIG"; then
  12841. neon_xml_parser_message="libxml `$XML2_CONFIG --version`"
  12842. $as_echo "#define HAVE_LIBXML 1" >>confdefs.h
  12843. # xml2-config in some versions erroneously includes -I/include
  12844. # in the --cflags output.
  12845. CPPFLAGS="$CPPFLAGS `$XML2_CONFIG --cflags | sed 's| -I/include||g'`"
  12846. NEON_LIBS="$NEON_LIBS `$XML2_CONFIG --libs | sed 's|-L/usr/lib ||g'`"
  12847. for ac_header in libxml/xmlversion.h libxml/parser.h
  12848. do :
  12849. as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
  12850. ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
  12851. if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
  12852. cat >>confdefs.h <<_ACEOF
  12853. #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
  12854. _ACEOF
  12855. else
  12856. as_fn_error $? "could not find parser.h, libxml installation problem?" "$LINENO" 5
  12857. fi
  12858. done
  12859. neon_xml_parser=libxml2
  12860. else
  12861. as_fn_error $? "libxml2.x library not found, cannot proceed" "$LINENO" 5
  12862. fi
  12863. fi
  12864. # Otherwise, by default search for expat then libxml2:
  12865. if test "${neon_xml_parser}-${with_included_expat}" = "none-no"; then
  12866. ac_fn_c_check_header_mongrel "$LINENO" "expat.h" "ac_cv_header_expat_h" "$ac_includes_default"
  12867. if test "x$ac_cv_header_expat_h" = xyes; then :
  12868. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XML_SetXmlDeclHandler in -lexpat" >&5
  12869. $as_echo_n "checking for XML_SetXmlDeclHandler in -lexpat... " >&6; }
  12870. if ${ac_cv_lib_expat_XML_SetXmlDeclHandler+:} false; then :
  12871. $as_echo_n "(cached) " >&6
  12872. else
  12873. ac_check_lib_save_LIBS=$LIBS
  12874. LIBS="-lexpat $LIBS"
  12875. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12876. /* end confdefs.h. */
  12877. /* Override any GCC internal prototype to avoid an error.
  12878. Use char because int might match the return type of a GCC
  12879. builtin and then its argument prototype would still apply. */
  12880. #ifdef __cplusplus
  12881. extern "C"
  12882. #endif
  12883. char XML_SetXmlDeclHandler ();
  12884. int
  12885. main ()
  12886. {
  12887. return XML_SetXmlDeclHandler ();
  12888. ;
  12889. return 0;
  12890. }
  12891. _ACEOF
  12892. if ac_fn_c_try_link "$LINENO"; then :
  12893. ac_cv_lib_expat_XML_SetXmlDeclHandler=yes
  12894. else
  12895. ac_cv_lib_expat_XML_SetXmlDeclHandler=no
  12896. fi
  12897. rm -f core conftest.err conftest.$ac_objext \
  12898. conftest$ac_exeext conftest.$ac_ext
  12899. LIBS=$ac_check_lib_save_LIBS
  12900. fi
  12901. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_expat_XML_SetXmlDeclHandler" >&5
  12902. $as_echo "$ac_cv_lib_expat_XML_SetXmlDeclHandler" >&6; }
  12903. if test "x$ac_cv_lib_expat_XML_SetXmlDeclHandler" = xyes; then :
  12904. $as_echo "#define HAVE_EXPAT 1" >>confdefs.h
  12905. neon_xml_parser_message="expat"
  12906. NEON_LIBS="$NEON_LIBS -lexpat"
  12907. neon_xml_parser=expat
  12908. ac_fn_c_check_type "$LINENO" "XML_Size" "ac_cv_type_XML_Size" "#include <expat.h>
  12909. "
  12910. if test "x$ac_cv_type_XML_Size" = xyes; then :
  12911. # The cast to long int works around a bug in the HP C Compiler
  12912. # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
  12913. # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
  12914. # This bug is HP SR number 8606223364.
  12915. { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of XML_Size" >&5
  12916. $as_echo_n "checking size of XML_Size... " >&6; }
  12917. if ${ac_cv_sizeof_XML_Size+:} false; then :
  12918. $as_echo_n "(cached) " >&6
  12919. else
  12920. if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (XML_Size))" "ac_cv_sizeof_XML_Size" "$ac_includes_default
  12921. #include <expat.h>
  12922. "; then :
  12923. else
  12924. if test "$ac_cv_type_XML_Size" = yes; then
  12925. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  12926. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  12927. as_fn_error 77 "cannot compute sizeof (XML_Size)
  12928. See \`config.log' for more details" "$LINENO" 5; }
  12929. else
  12930. ac_cv_sizeof_XML_Size=0
  12931. fi
  12932. fi
  12933. fi
  12934. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_XML_Size" >&5
  12935. $as_echo "$ac_cv_sizeof_XML_Size" >&6; }
  12936. cat >>confdefs.h <<_ACEOF
  12937. #define SIZEOF_XML_SIZE $ac_cv_sizeof_XML_Size
  12938. _ACEOF
  12939. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print XML_Size" >&5
  12940. $as_echo_n "checking how to print XML_Size... " >&6; }
  12941. if ${ne_cv_fmt_XML_Size+:} false; then :
  12942. $as_echo_n "(cached) " >&6
  12943. else
  12944. ne_cv_fmt_XML_Size=none
  12945. if test $ne_fmt_trycompile = yes; then
  12946. oflags="$CPPFLAGS"
  12947. # Consider format string mismatches as errors
  12948. CPPFLAGS="$CPPFLAGS -Wformat -Werror"
  12949. for str in d ld lld; do
  12950. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12951. /* end confdefs.h. */
  12952. #include <sys/types.h>
  12953. #include <expat.h>
  12954. #include <stdio.h>
  12955. int
  12956. main ()
  12957. {
  12958. XML_Size i = 1; printf("%$str", i);
  12959. ;
  12960. return 0;
  12961. }
  12962. _ACEOF
  12963. if ac_fn_c_try_compile "$LINENO"; then :
  12964. ne_cv_fmt_XML_Size=$str; break
  12965. fi
  12966. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  12967. done
  12968. CPPFLAGS=$oflags
  12969. else
  12970. # Best guess. Don't have to be too precise since we probably won't
  12971. # get a warning message anyway.
  12972. case $ac_cv_sizeof_XML_Size in
  12973. $ac_cv_sizeof_int) ne_cv_fmt_XML_Size="d" ;;
  12974. $ac_cv_sizeof_long) ne_cv_fmt_XML_Size="ld" ;;
  12975. $ac_cv_sizeof_long_long) ne_cv_fmt_XML_Size="lld" ;;
  12976. esac
  12977. fi
  12978. fi
  12979. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ne_cv_fmt_XML_Size" >&5
  12980. $as_echo "$ne_cv_fmt_XML_Size" >&6; }
  12981. if test "x$ne_cv_fmt_XML_Size" = "xnone"; then
  12982. as_fn_error $? "format string for XML_Size not found" "$LINENO" 5
  12983. fi
  12984. cat >>confdefs.h <<_ACEOF
  12985. #define NE_FMT_XML_SIZE "$ne_cv_fmt_XML_Size"
  12986. _ACEOF
  12987. else
  12988. cat >>confdefs.h <<_ACEOF
  12989. #define NE_FMT_XML_SIZE "d"
  12990. _ACEOF
  12991. fi
  12992. else
  12993. # Extract the first word of "xml2-config", so it can be a program name with args.
  12994. set dummy xml2-config; ac_word=$2
  12995. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  12996. $as_echo_n "checking for $ac_word... " >&6; }
  12997. if ${ac_cv_prog_XML2_CONFIG+:} false; then :
  12998. $as_echo_n "(cached) " >&6
  12999. else
  13000. if test -n "$XML2_CONFIG"; then
  13001. ac_cv_prog_XML2_CONFIG="$XML2_CONFIG" # Let the user override the test.
  13002. else
  13003. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  13004. for as_dir in $PATH
  13005. do
  13006. IFS=$as_save_IFS
  13007. test -z "$as_dir" && as_dir=.
  13008. for ac_exec_ext in '' $ac_executable_extensions; do
  13009. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  13010. ac_cv_prog_XML2_CONFIG="xml2-config"
  13011. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  13012. break 2
  13013. fi
  13014. done
  13015. done
  13016. IFS=$as_save_IFS
  13017. fi
  13018. fi
  13019. XML2_CONFIG=$ac_cv_prog_XML2_CONFIG
  13020. if test -n "$XML2_CONFIG"; then
  13021. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XML2_CONFIG" >&5
  13022. $as_echo "$XML2_CONFIG" >&6; }
  13023. else
  13024. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  13025. $as_echo "no" >&6; }
  13026. fi
  13027. if test -n "$XML2_CONFIG"; then
  13028. neon_xml_parser_message="libxml `$XML2_CONFIG --version`"
  13029. $as_echo "#define HAVE_LIBXML 1" >>confdefs.h
  13030. # xml2-config in some versions erroneously includes -I/include
  13031. # in the --cflags output.
  13032. CPPFLAGS="$CPPFLAGS `$XML2_CONFIG --cflags | sed 's| -I/include||g'`"
  13033. NEON_LIBS="$NEON_LIBS `$XML2_CONFIG --libs | sed 's|-L/usr/lib ||g'`"
  13034. for ac_header in libxml/xmlversion.h libxml/parser.h
  13035. do :
  13036. as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
  13037. ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
  13038. if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
  13039. cat >>confdefs.h <<_ACEOF
  13040. #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
  13041. _ACEOF
  13042. else
  13043. as_fn_error $? "could not find parser.h, libxml installation problem?" "$LINENO" 5
  13044. fi
  13045. done
  13046. neon_xml_parser=libxml2
  13047. else
  13048. :
  13049. fi
  13050. fi
  13051. else
  13052. # Extract the first word of "xml2-config", so it can be a program name with args.
  13053. set dummy xml2-config; ac_word=$2
  13054. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  13055. $as_echo_n "checking for $ac_word... " >&6; }
  13056. if ${ac_cv_prog_XML2_CONFIG+:} false; then :
  13057. $as_echo_n "(cached) " >&6
  13058. else
  13059. if test -n "$XML2_CONFIG"; then
  13060. ac_cv_prog_XML2_CONFIG="$XML2_CONFIG" # Let the user override the test.
  13061. else
  13062. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  13063. for as_dir in $PATH
  13064. do
  13065. IFS=$as_save_IFS
  13066. test -z "$as_dir" && as_dir=.
  13067. for ac_exec_ext in '' $ac_executable_extensions; do
  13068. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  13069. ac_cv_prog_XML2_CONFIG="xml2-config"
  13070. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  13071. break 2
  13072. fi
  13073. done
  13074. done
  13075. IFS=$as_save_IFS
  13076. fi
  13077. fi
  13078. XML2_CONFIG=$ac_cv_prog_XML2_CONFIG
  13079. if test -n "$XML2_CONFIG"; then
  13080. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XML2_CONFIG" >&5
  13081. $as_echo "$XML2_CONFIG" >&6; }
  13082. else
  13083. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  13084. $as_echo "no" >&6; }
  13085. fi
  13086. if test -n "$XML2_CONFIG"; then
  13087. neon_xml_parser_message="libxml `$XML2_CONFIG --version`"
  13088. $as_echo "#define HAVE_LIBXML 1" >>confdefs.h
  13089. # xml2-config in some versions erroneously includes -I/include
  13090. # in the --cflags output.
  13091. CPPFLAGS="$CPPFLAGS `$XML2_CONFIG --cflags | sed 's| -I/include||g'`"
  13092. NEON_LIBS="$NEON_LIBS `$XML2_CONFIG --libs | sed 's|-L/usr/lib ||g'`"
  13093. for ac_header in libxml/xmlversion.h libxml/parser.h
  13094. do :
  13095. as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
  13096. ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
  13097. if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
  13098. cat >>confdefs.h <<_ACEOF
  13099. #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
  13100. _ACEOF
  13101. else
  13102. as_fn_error $? "could not find parser.h, libxml installation problem?" "$LINENO" 5
  13103. fi
  13104. done
  13105. neon_xml_parser=libxml2
  13106. else
  13107. :
  13108. fi
  13109. fi
  13110. fi
  13111. # If an XML parser still has not been found, fail or use the bundled expat
  13112. if test "$neon_xml_parser" = "none"; then
  13113. as_fn_error $? "no XML parser was found: expat or libxml 2.x required" "$LINENO" 5
  13114. fi
  13115. { $as_echo "$as_me:${as_lineno-$LINENO}: XML parser used: $neon_xml_parser_message" >&5
  13116. $as_echo "$as_me: XML parser used: $neon_xml_parser_message" >&6;}
  13117. fi
  13118. # Internationalization support.
  13119. # Check whether --enable-nls was given.
  13120. if test "${enable_nls+set}" = set; then :
  13121. enableval=$enable_nls;
  13122. else
  13123. enable_nls=${ac_cv_header_libintl_h}
  13124. fi
  13125. if test x${enable_nls} = xyes; then
  13126. # presume that dgettext() is available if bindtextdomain() is...
  13127. # checking for dgettext() itself is awkward because gcc has a
  13128. # builtin of that function, which confuses AC_CHECK_FUNCS et al.
  13129. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing bindtextdomain" >&5
  13130. $as_echo_n "checking for library containing bindtextdomain... " >&6; }
  13131. if ${ne_cv_libsfor_bindtextdomain+:} false; then :
  13132. $as_echo_n "(cached) " >&6
  13133. else
  13134. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13135. /* end confdefs.h. */
  13136. int
  13137. main ()
  13138. {
  13139. bindtextdomain();
  13140. ;
  13141. return 0;
  13142. }
  13143. _ACEOF
  13144. if ac_fn_c_try_link "$LINENO"; then :
  13145. ne_cv_libsfor_bindtextdomain="none needed"
  13146. else
  13147. ne_sl_save_LIBS=$LIBS
  13148. ne_cv_libsfor_bindtextdomain="not found"
  13149. for lib in intl; do
  13150. # The w32api libraries link using the stdcall calling convention.
  13151. case ${lib}-${ne_cv_os_uname} in
  13152. ws2_32-MINGW*) ne__code="__stdcall bindtextdomain();" ;;
  13153. *) ne__code="bindtextdomain();" ;;
  13154. esac
  13155. LIBS="$ne_sl_save_LIBS -l$lib $NEON_LIBS"
  13156. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13157. /* end confdefs.h. */
  13158. int
  13159. main ()
  13160. {
  13161. $ne__code
  13162. ;
  13163. return 0;
  13164. }
  13165. _ACEOF
  13166. if ac_fn_c_try_link "$LINENO"; then :
  13167. ne_cv_libsfor_bindtextdomain="-l$lib"; break
  13168. fi
  13169. rm -f core conftest.err conftest.$ac_objext \
  13170. conftest$ac_exeext conftest.$ac_ext
  13171. LIBS="$ne_sl_save_LIBS -l$lib -liconv $NEON_LIBS"
  13172. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13173. /* end confdefs.h. */
  13174. int
  13175. main ()
  13176. {
  13177. $ne__code
  13178. ;
  13179. return 0;
  13180. }
  13181. _ACEOF
  13182. if ac_fn_c_try_link "$LINENO"; then :
  13183. ne_cv_libsfor_bindtextdomain="-l$lib -liconv "; break
  13184. fi
  13185. rm -f core conftest.err conftest.$ac_objext \
  13186. conftest$ac_exeext conftest.$ac_ext
  13187. done
  13188. LIBS=$ne_sl_save_LIBS
  13189. fi
  13190. rm -f core conftest.err conftest.$ac_objext \
  13191. conftest$ac_exeext conftest.$ac_ext
  13192. fi
  13193. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ne_cv_libsfor_bindtextdomain" >&5
  13194. $as_echo "$ne_cv_libsfor_bindtextdomain" >&6; }
  13195. if test "$ne_cv_libsfor_bindtextdomain" = "not found"; then
  13196. enable_nls=no
  13197. elif test "$ne_cv_libsfor_bindtextdomain" = "none needed"; then
  13198. :
  13199. else
  13200. NEON_LIBS="$ne_cv_libsfor_bindtextdomain $NEON_LIBS"
  13201. fi
  13202. ne_cf_save_LIBS=$LIBS
  13203. LIBS="$LIBS $NEON_LIBS"
  13204. for ac_func in bind_textdomain_codeset
  13205. do :
  13206. ac_fn_c_check_func "$LINENO" "bind_textdomain_codeset" "ac_cv_func_bind_textdomain_codeset"
  13207. if test "x$ac_cv_func_bind_textdomain_codeset" = xyes; then :
  13208. cat >>confdefs.h <<_ACEOF
  13209. #define HAVE_BIND_TEXTDOMAIN_CODESET 1
  13210. _ACEOF
  13211. fi
  13212. done
  13213. LIBS=$ne_cf_save_LIBS
  13214. fi
  13215. if test "$enable_nls" = "no"; then
  13216. NE_FLAG_I18N=no
  13217. ne_I18N_message="Internationalization support not enabled"
  13218. { $as_echo "$as_me:${as_lineno-$LINENO}: Internationalization support not enabled" >&5
  13219. $as_echo "$as_me: Internationalization support not enabled" >&6;}
  13220. else
  13221. NE_FLAG_I18N=yes
  13222. $as_echo "#define NE_HAVE_I18N 1" >>confdefs.h
  13223. ne_I18N_message="Internationalization support enabled"
  13224. { $as_echo "$as_me:${as_lineno-$LINENO}: Internationalization support enabled" >&5
  13225. $as_echo "$as_me: Internationalization support enabled" >&6;}
  13226. eval localedir="${datadir}/locale"
  13227. cat >>confdefs.h <<_ACEOF
  13228. #define LOCALEDIR "$localedir"
  13229. _ACEOF
  13230. fi
  13231. # Extra checks for debugging, compiler warnings
  13232. # Check whether --enable-debug was given.
  13233. if test "${enable_debug+set}" = set; then :
  13234. enableval=$enable_debug;
  13235. fi
  13236. # default is to enable debugging
  13237. case $enable_debug in
  13238. no) { $as_echo "$as_me:${as_lineno-$LINENO}: debugging is disabled" >&5
  13239. $as_echo "$as_me: debugging is disabled" >&6;}
  13240. ;;
  13241. *) { $as_echo "$as_me:${as_lineno-$LINENO}: debugging is enabled" >&5
  13242. $as_echo "$as_me: debugging is enabled" >&6;}
  13243. $as_echo "#define NE_DEBUGGING 1" >>confdefs.h
  13244. ;;
  13245. esac
  13246. # Leave till last to prevent CFLAGS affecting checks.
  13247. # Check whether --enable-warnings was given.
  13248. if test "${enable_warnings+set}" = set; then :
  13249. enableval=$enable_warnings;
  13250. fi
  13251. if test "$enable_warnings" = "yes"; then
  13252. case $GCC:`uname` in
  13253. yes:*)
  13254. CFLAGS="$CFLAGS -Wall -Wmissing-declarations -Wshadow -Wreturn-type -Wsign-compare -Wundef -Wpointer-arith -Wbad-function-cast -Wformat-security"
  13255. if test -z "$with_ssl" -o "$with_ssl" = "no"; then
  13256. # OpenSSL headers fail strict prototypes checks
  13257. CFLAGS="$CFLAGS -Wstrict-prototypes"
  13258. fi
  13259. ;;
  13260. no:OSF1) CFLAGS="$CFLAGS -check -msg_disable returnchecks -msg_disable alignment -msg_disable overflow" ;;
  13261. no:IRIX) CFLAGS="$CFLAGS -fullwarn" ;;
  13262. no:UnixWare) CFLAGS="$CFLAGS -v" ;;
  13263. *) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: warning flags unknown for compiler on this platform" >&5
  13264. $as_echo "$as_me: WARNING: warning flags unknown for compiler on this platform" >&2;} ;;
  13265. esac
  13266. fi
  13267. CPPFLAGS="$CPPFLAGS -I\${top_builddir}"
  13268. # Check whether --enable-memleak was given.
  13269. if test "${enable_memleak+set}" = set; then :
  13270. enableval=$enable_memleak;
  13271. fi
  13272. if test "$enable_memleak" = "yes"; then
  13273. CPPFLAGS="$CPPFLAGS -DNEON_MEMLEAK -I\$(top_srcdir)/src"
  13274. # disable 'make install'
  13275. ALLOW_INSTALL=memleak
  13276. fi
  13277. # Enable tests for optional features
  13278. TESTS="\$(BASIC_TESTS)"
  13279. HELPERS=""
  13280. if test $NE_FLAG_SSL = yes; then
  13281. # Only enable SSL tests if an openssl binary is found (needed to make
  13282. # certs etc).
  13283. # Extract the first word of "openssl", so it can be a program name with args.
  13284. set dummy openssl; ac_word=$2
  13285. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  13286. $as_echo_n "checking for $ac_word... " >&6; }
  13287. if ${ac_cv_path_OPENSSL+:} false; then :
  13288. $as_echo_n "(cached) " >&6
  13289. else
  13290. case $OPENSSL in
  13291. [\\/]* | ?:[\\/]*)
  13292. ac_cv_path_OPENSSL="$OPENSSL" # Let the user override the test with a path.
  13293. ;;
  13294. *)
  13295. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  13296. for as_dir in $PATH
  13297. do
  13298. IFS=$as_save_IFS
  13299. test -z "$as_dir" && as_dir=.
  13300. for ac_exec_ext in '' $ac_executable_extensions; do
  13301. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  13302. ac_cv_path_OPENSSL="$as_dir/$ac_word$ac_exec_ext"
  13303. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  13304. break 2
  13305. fi
  13306. done
  13307. done
  13308. IFS=$as_save_IFS
  13309. test -z "$ac_cv_path_OPENSSL" && ac_cv_path_OPENSSL="notfound"
  13310. ;;
  13311. esac
  13312. fi
  13313. OPENSSL=$ac_cv_path_OPENSSL
  13314. if test -n "$OPENSSL"; then
  13315. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OPENSSL" >&5
  13316. $as_echo "$OPENSSL" >&6; }
  13317. else
  13318. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  13319. $as_echo "no" >&6; }
  13320. fi
  13321. if test "$OPENSSL" != "notfound"; then
  13322. TESTS="$TESTS \$(SSL_TESTS)"
  13323. HELPERS="$HELPERS \$(SSL_HELPERS)"
  13324. else
  13325. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: no openssl binary in \$PATH: SSL tests disabled" >&5
  13326. $as_echo "$as_me: WARNING: no openssl binary in \$PATH: SSL tests disabled" >&2;}
  13327. fi
  13328. # Extract the first word of "certutil", so it can be a program name with args.
  13329. set dummy certutil; ac_word=$2
  13330. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  13331. $as_echo_n "checking for $ac_word... " >&6; }
  13332. if ${ac_cv_path_CERTUTIL+:} false; then :
  13333. $as_echo_n "(cached) " >&6
  13334. else
  13335. case $CERTUTIL in
  13336. [\\/]* | ?:[\\/]*)
  13337. ac_cv_path_CERTUTIL="$CERTUTIL" # Let the user override the test with a path.
  13338. ;;
  13339. *)
  13340. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  13341. for as_dir in $PATH
  13342. do
  13343. IFS=$as_save_IFS
  13344. test -z "$as_dir" && as_dir=.
  13345. for ac_exec_ext in '' $ac_executable_extensions; do
  13346. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  13347. ac_cv_path_CERTUTIL="$as_dir/$ac_word$ac_exec_ext"
  13348. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  13349. break 2
  13350. fi
  13351. done
  13352. done
  13353. IFS=$as_save_IFS
  13354. test -z "$ac_cv_path_CERTUTIL" && ac_cv_path_CERTUTIL="notfound"
  13355. ;;
  13356. esac
  13357. fi
  13358. CERTUTIL=$ac_cv_path_CERTUTIL
  13359. if test -n "$CERTUTIL"; then
  13360. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CERTUTIL" >&5
  13361. $as_echo "$CERTUTIL" >&6; }
  13362. else
  13363. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  13364. $as_echo "no" >&6; }
  13365. fi
  13366. # Extract the first word of "pk12util", so it can be a program name with args.
  13367. set dummy pk12util; ac_word=$2
  13368. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  13369. $as_echo_n "checking for $ac_word... " >&6; }
  13370. if ${ac_cv_path_PK12UTIL+:} false; then :
  13371. $as_echo_n "(cached) " >&6
  13372. else
  13373. case $PK12UTIL in
  13374. [\\/]* | ?:[\\/]*)
  13375. ac_cv_path_PK12UTIL="$PK12UTIL" # Let the user override the test with a path.
  13376. ;;
  13377. *)
  13378. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  13379. for as_dir in $PATH
  13380. do
  13381. IFS=$as_save_IFS
  13382. test -z "$as_dir" && as_dir=.
  13383. for ac_exec_ext in '' $ac_executable_extensions; do
  13384. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  13385. ac_cv_path_PK12UTIL="$as_dir/$ac_word$ac_exec_ext"
  13386. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  13387. break 2
  13388. fi
  13389. done
  13390. done
  13391. IFS=$as_save_IFS
  13392. test -z "$ac_cv_path_PK12UTIL" && ac_cv_path_PK12UTIL="notfound"
  13393. ;;
  13394. esac
  13395. fi
  13396. PK12UTIL=$ac_cv_path_PK12UTIL
  13397. if test -n "$PK12UTIL"; then
  13398. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PK12UTIL" >&5
  13399. $as_echo "$PK12UTIL" >&6; }
  13400. else
  13401. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  13402. $as_echo "no" >&6; }
  13403. fi
  13404. fi
  13405. if test $NE_FLAG_ZLIB = yes; then
  13406. TESTS="$TESTS \$(ZLIB_TESTS)"
  13407. HELPERS="$HELPERS \$(ZLIB_HELPERS)"
  13408. fi
  13409. if test x$enable_webdav != xno; then
  13410. TESTS="$TESTS \$(DAV_TESTS)"
  13411. fi
  13412. # Check whether --enable-tests-install was given.
  13413. if test "${enable_tests_install+set}" = set; then :
  13414. enableval=$enable_tests_install;
  13415. else
  13416. enable_tests_install=no
  13417. fi
  13418. # If test suite installation is not required, it's more
  13419. # efficient to link the test programs using -no-install:
  13420. if test "$enable_tests_install" = "no"; then
  13421. TEST_LDFLAGS="-no-install"
  13422. fi
  13423. # Extract the first word of "pkg-config", so it can be a program name with args.
  13424. set dummy pkg-config; ac_word=$2
  13425. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  13426. $as_echo_n "checking for $ac_word... " >&6; }
  13427. if ${ac_cv_path_PKG_CONFIG+:} false; then :
  13428. $as_echo_n "(cached) " >&6
  13429. else
  13430. case $PKG_CONFIG in
  13431. [\\/]* | ?:[\\/]*)
  13432. ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
  13433. ;;
  13434. *)
  13435. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  13436. for as_dir in $PATH
  13437. do
  13438. IFS=$as_save_IFS
  13439. test -z "$as_dir" && as_dir=.
  13440. for ac_exec_ext in '' $ac_executable_extensions; do
  13441. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  13442. ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
  13443. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  13444. break 2
  13445. fi
  13446. done
  13447. done
  13448. IFS=$as_save_IFS
  13449. test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
  13450. ;;
  13451. esac
  13452. fi
  13453. PKG_CONFIG=$ac_cv_path_PKG_CONFIG
  13454. if test -n "$PKG_CONFIG"; then
  13455. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
  13456. $as_echo "$PKG_CONFIG" >&6; }
  13457. else
  13458. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  13459. $as_echo "no" >&6; }
  13460. fi
  13461. if test "$PKG_CONFIG" != "no"; then
  13462. # pkg-config >= 0.18 will use "Libs.private" iff necessary,
  13463. # older versions which don't recognize that field may always
  13464. # need all libraries in Libs.
  13465. if $PKG_CONFIG --atleast-pkgconfig-version=0.18; then :; else
  13466. NEON_PC_LIBS=${NEON_LIBS}
  13467. fi
  13468. fi
  13469. # Pass the interface version on to libtool when linking libneon.la
  13470. NEON_LINK_FLAGS="-version-info ${NE_LIBTOOL_VERSINFO}"
  13471. # If any non-default ABI variations are used, add them to the SONAME:
  13472. ### disabled for backwards-compat with 0.27.x
  13473. #if test "x${NE_LIBTOOL_RELEASE}y" != "xy"; then
  13474. # NEON_LINK_FLAGS="${NEON_LINK_FLAGS} -release ${NE_LIBTOOL_RELEASE}"
  13475. #fi
  13476. # Check whether --enable-ld-version-script was given.
  13477. if test "${enable_ld_version_script+set}" = set; then :
  13478. enableval=$enable_ld_version_script; have_ld_version_script=$enableval
  13479. fi
  13480. if test -z "$have_ld_version_script"; then
  13481. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if LD -Wl,--version-script works" >&5
  13482. $as_echo_n "checking if LD -Wl,--version-script works... " >&6; }
  13483. save_LDFLAGS="$LDFLAGS"
  13484. LDFLAGS="$LDFLAGS -Wl,--version-script=conftest.map"
  13485. cat > conftest.map <<EOF
  13486. foo
  13487. EOF
  13488. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13489. /* end confdefs.h. */
  13490. int
  13491. main ()
  13492. {
  13493. ;
  13494. return 0;
  13495. }
  13496. _ACEOF
  13497. if ac_fn_c_try_link "$LINENO"; then :
  13498. accepts_syntax_errors=yes
  13499. else
  13500. accepts_syntax_errors=no
  13501. fi
  13502. rm -f core conftest.err conftest.$ac_objext \
  13503. conftest$ac_exeext conftest.$ac_ext
  13504. if test "$accepts_syntax_errors" = no; then
  13505. cat > conftest.map <<EOF
  13506. VERS_1 {
  13507. global: sym;
  13508. };
  13509. VERS_2 {
  13510. global: sym;
  13511. } VERS_1;
  13512. EOF
  13513. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13514. /* end confdefs.h. */
  13515. int
  13516. main ()
  13517. {
  13518. ;
  13519. return 0;
  13520. }
  13521. _ACEOF
  13522. if ac_fn_c_try_link "$LINENO"; then :
  13523. have_ld_version_script=yes
  13524. else
  13525. have_ld_version_script=no
  13526. fi
  13527. rm -f core conftest.err conftest.$ac_objext \
  13528. conftest$ac_exeext conftest.$ac_ext
  13529. else
  13530. have_ld_version_script=no
  13531. fi
  13532. rm -f conftest.map
  13533. LDFLAGS="$save_LDFLAGS"
  13534. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_ld_version_script" >&5
  13535. $as_echo "$have_ld_version_script" >&6; }
  13536. fi
  13537. if test "$have_ld_version_script" = "yes"; then
  13538. HAVE_LD_VERSION_SCRIPT_TRUE=
  13539. HAVE_LD_VERSION_SCRIPT_FALSE='#'
  13540. else
  13541. HAVE_LD_VERSION_SCRIPT_TRUE='#'
  13542. HAVE_LD_VERSION_SCRIPT_FALSE=
  13543. fi
  13544. # If ld version scripts are supported, enable symbol versioning.
  13545. # Otherwise, fall back to any libtool-supported symbol export
  13546. # restrictions; ne__* symbols are not exported.
  13547. if test "x$have_ld_version_script" = "xyes"; then
  13548. NEON_LINK_FLAGS="$NEON_LINK_FLAGS -Wl,--version-script=\$(top_srcdir)/src/neon.vers"
  13549. else
  13550. NEON_LINK_FLAGS="$NEON_LINK_FLAGS -export-symbols-regex '^ne_[^_]'"
  13551. fi
  13552. if test x${enable_shared}${pic_mode}z = xnodefaultz; then
  13553. CFLAGS="$CFLAGS -prefer-pic"
  13554. { $as_echo "$as_me:${as_lineno-$LINENO}: Using PIC for static library build" >&5
  13555. $as_echo "$as_me: Using PIC for static library build" >&6;}
  13556. fi
  13557. if test x${enable_shared} = xno; then
  13558. # Defining NE_PRIVATE as the empty string would work; using a
  13559. # non-empty but redundant string 'extern' avoids any possible cpp
  13560. # confusion with from an empty macro.
  13561. CPPFLAGS="$CPPFLAGS -DNE_PRIVATE=extern"
  13562. { $as_echo "$as_me:${as_lineno-$LINENO}: Private symbol suppression disabled for static library build" >&5
  13563. $as_echo "$as_me: Private symbol suppression disabled for static library build" >&6;}
  13564. fi
  13565. # Bundled language catalogs
  13566. ALL_LINGUAS="cs de fr ja nn pl ru tr zh_CN"
  13567. ac_config_files="$ac_config_files neon-config"
  13568. ac_config_files="$ac_config_files Makefile src/Makefile test/Makefile neon.pc"
  13569. ac_config_files="$ac_config_files test/makekeys:test/makekeys.sh"
  13570. cat >confcache <<\_ACEOF
  13571. # This file is a shell script that caches the results of configure
  13572. # tests run on this system so they can be shared between configure
  13573. # scripts and configure runs, see configure's option --config-cache.
  13574. # It is not useful on other systems. If it contains results you don't
  13575. # want to keep, you may remove or edit it.
  13576. #
  13577. # config.status only pays attention to the cache file if you give it
  13578. # the --recheck option to rerun configure.
  13579. #
  13580. # `ac_cv_env_foo' variables (set or unset) will be overridden when
  13581. # loading this file, other *unset* `ac_cv_foo' will be assigned the
  13582. # following values.
  13583. _ACEOF
  13584. # The following way of writing the cache mishandles newlines in values,
  13585. # but we know of no workaround that is simple, portable, and efficient.
  13586. # So, we kill variables containing newlines.
  13587. # Ultrix sh set writes to stderr and can't be redirected directly,
  13588. # and sets the high bit in the cache file unless we assign to the vars.
  13589. (
  13590. for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
  13591. eval ac_val=\$$ac_var
  13592. case $ac_val in #(
  13593. *${as_nl}*)
  13594. case $ac_var in #(
  13595. *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
  13596. $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
  13597. esac
  13598. case $ac_var in #(
  13599. _ | IFS | as_nl) ;; #(
  13600. BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
  13601. *) { eval $ac_var=; unset $ac_var;} ;;
  13602. esac ;;
  13603. esac
  13604. done
  13605. (set) 2>&1 |
  13606. case $as_nl`(ac_space=' '; set) 2>&1` in #(
  13607. *${as_nl}ac_space=\ *)
  13608. # `set' does not quote correctly, so add quotes: double-quote
  13609. # substitution turns \\\\ into \\, and sed turns \\ into \.
  13610. sed -n \
  13611. "s/'/'\\\\''/g;
  13612. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
  13613. ;; #(
  13614. *)
  13615. # `set' quotes correctly as required by POSIX, so do not add quotes.
  13616. sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
  13617. ;;
  13618. esac |
  13619. sort
  13620. ) |
  13621. sed '
  13622. /^ac_cv_env_/b end
  13623. t clear
  13624. :clear
  13625. s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
  13626. t end
  13627. s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
  13628. :end' >>confcache
  13629. if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
  13630. if test -w "$cache_file"; then
  13631. if test "x$cache_file" != "x/dev/null"; then
  13632. { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
  13633. $as_echo "$as_me: updating cache $cache_file" >&6;}
  13634. if test ! -f "$cache_file" || test -h "$cache_file"; then
  13635. cat confcache >"$cache_file"
  13636. else
  13637. case $cache_file in #(
  13638. */* | ?:*)
  13639. mv -f confcache "$cache_file"$$ &&
  13640. mv -f "$cache_file"$$ "$cache_file" ;; #(
  13641. *)
  13642. mv -f confcache "$cache_file" ;;
  13643. esac
  13644. fi
  13645. fi
  13646. else
  13647. { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
  13648. $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
  13649. fi
  13650. fi
  13651. rm -f confcache
  13652. test "x$prefix" = xNONE && prefix=$ac_default_prefix
  13653. # Let make expand exec_prefix.
  13654. test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
  13655. DEFS=-DHAVE_CONFIG_H
  13656. ac_libobjs=
  13657. ac_ltlibobjs=
  13658. U=
  13659. for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
  13660. # 1. Remove the extension, and $U if already installed.
  13661. ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
  13662. ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
  13663. # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
  13664. # will be set to the directory where LIBOBJS objects are built.
  13665. as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
  13666. as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
  13667. done
  13668. LIBOBJS=$ac_libobjs
  13669. LTLIBOBJS=$ac_ltlibobjs
  13670. if test -z "${HAVE_LD_VERSION_SCRIPT_TRUE}" && test -z "${HAVE_LD_VERSION_SCRIPT_FALSE}"; then
  13671. as_fn_error $? "conditional \"HAVE_LD_VERSION_SCRIPT\" was never defined.
  13672. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  13673. fi
  13674. : "${CONFIG_STATUS=./config.status}"
  13675. ac_write_fail=0
  13676. ac_clean_files_save=$ac_clean_files
  13677. ac_clean_files="$ac_clean_files $CONFIG_STATUS"
  13678. { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
  13679. $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
  13680. as_write_fail=0
  13681. cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
  13682. #! $SHELL
  13683. # Generated by $as_me.
  13684. # Run this file to recreate the current configuration.
  13685. # Compiler output produced by configure, useful for debugging
  13686. # configure, is in config.log if it exists.
  13687. debug=false
  13688. ac_cs_recheck=false
  13689. ac_cs_silent=false
  13690. SHELL=\${CONFIG_SHELL-$SHELL}
  13691. export SHELL
  13692. _ASEOF
  13693. cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
  13694. ## -------------------- ##
  13695. ## M4sh Initialization. ##
  13696. ## -------------------- ##
  13697. # Be more Bourne compatible
  13698. DUALCASE=1; export DUALCASE # for MKS sh
  13699. if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
  13700. emulate sh
  13701. NULLCMD=:
  13702. # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
  13703. # is contrary to our usage. Disable this feature.
  13704. alias -g '${1+"$@"}'='"$@"'
  13705. setopt NO_GLOB_SUBST
  13706. else
  13707. case `(set -o) 2>/dev/null` in #(
  13708. *posix*) :
  13709. set -o posix ;; #(
  13710. *) :
  13711. ;;
  13712. esac
  13713. fi
  13714. as_nl='
  13715. '
  13716. export as_nl
  13717. # Printing a long string crashes Solaris 7 /usr/bin/printf.
  13718. as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
  13719. as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
  13720. as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
  13721. # Prefer a ksh shell builtin over an external printf program on Solaris,
  13722. # but without wasting forks for bash or zsh.
  13723. if test -z "$BASH_VERSION$ZSH_VERSION" \
  13724. && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
  13725. as_echo='print -r --'
  13726. as_echo_n='print -rn --'
  13727. elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
  13728. as_echo='printf %s\n'
  13729. as_echo_n='printf %s'
  13730. else
  13731. if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
  13732. as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
  13733. as_echo_n='/usr/ucb/echo -n'
  13734. else
  13735. as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
  13736. as_echo_n_body='eval
  13737. arg=$1;
  13738. case $arg in #(
  13739. *"$as_nl"*)
  13740. expr "X$arg" : "X\\(.*\\)$as_nl";
  13741. arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
  13742. esac;
  13743. expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
  13744. '
  13745. export as_echo_n_body
  13746. as_echo_n='sh -c $as_echo_n_body as_echo'
  13747. fi
  13748. export as_echo_body
  13749. as_echo='sh -c $as_echo_body as_echo'
  13750. fi
  13751. # The user is always right.
  13752. if test "${PATH_SEPARATOR+set}" != set; then
  13753. PATH_SEPARATOR=:
  13754. (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
  13755. (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
  13756. PATH_SEPARATOR=';'
  13757. }
  13758. fi
  13759. # IFS
  13760. # We need space, tab and new line, in precisely that order. Quoting is
  13761. # there to prevent editors from complaining about space-tab.
  13762. # (If _AS_PATH_WALK were called with IFS unset, it would disable word
  13763. # splitting by setting IFS to empty value.)
  13764. IFS=" "" $as_nl"
  13765. # Find who we are. Look in the path if we contain no directory separator.
  13766. as_myself=
  13767. case $0 in #((
  13768. *[\\/]* ) as_myself=$0 ;;
  13769. *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  13770. for as_dir in $PATH
  13771. do
  13772. IFS=$as_save_IFS
  13773. test -z "$as_dir" && as_dir=.
  13774. test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
  13775. done
  13776. IFS=$as_save_IFS
  13777. ;;
  13778. esac
  13779. # We did not find ourselves, most probably we were run as `sh COMMAND'
  13780. # in which case we are not to be found in the path.
  13781. if test "x$as_myself" = x; then
  13782. as_myself=$0
  13783. fi
  13784. if test ! -f "$as_myself"; then
  13785. $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
  13786. exit 1
  13787. fi
  13788. # Unset variables that we do not need and which cause bugs (e.g. in
  13789. # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
  13790. # suppresses any "Segmentation fault" message there. '((' could
  13791. # trigger a bug in pdksh 5.2.14.
  13792. for as_var in BASH_ENV ENV MAIL MAILPATH
  13793. do eval test x\${$as_var+set} = xset \
  13794. && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
  13795. done
  13796. PS1='$ '
  13797. PS2='> '
  13798. PS4='+ '
  13799. # NLS nuisances.
  13800. LC_ALL=C
  13801. export LC_ALL
  13802. LANGUAGE=C
  13803. export LANGUAGE
  13804. # CDPATH.
  13805. (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
  13806. # as_fn_error STATUS ERROR [LINENO LOG_FD]
  13807. # ----------------------------------------
  13808. # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
  13809. # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
  13810. # script with STATUS, using 1 if that was 0.
  13811. as_fn_error ()
  13812. {
  13813. as_status=$1; test $as_status -eq 0 && as_status=1
  13814. if test "$4"; then
  13815. as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  13816. $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
  13817. fi
  13818. $as_echo "$as_me: error: $2" >&2
  13819. as_fn_exit $as_status
  13820. } # as_fn_error
  13821. # as_fn_set_status STATUS
  13822. # -----------------------
  13823. # Set $? to STATUS, without forking.
  13824. as_fn_set_status ()
  13825. {
  13826. return $1
  13827. } # as_fn_set_status
  13828. # as_fn_exit STATUS
  13829. # -----------------
  13830. # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
  13831. as_fn_exit ()
  13832. {
  13833. set +e
  13834. as_fn_set_status $1
  13835. exit $1
  13836. } # as_fn_exit
  13837. # as_fn_unset VAR
  13838. # ---------------
  13839. # Portably unset VAR.
  13840. as_fn_unset ()
  13841. {
  13842. { eval $1=; unset $1;}
  13843. }
  13844. as_unset=as_fn_unset
  13845. # as_fn_append VAR VALUE
  13846. # ----------------------
  13847. # Append the text in VALUE to the end of the definition contained in VAR. Take
  13848. # advantage of any shell optimizations that allow amortized linear growth over
  13849. # repeated appends, instead of the typical quadratic growth present in naive
  13850. # implementations.
  13851. if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
  13852. eval 'as_fn_append ()
  13853. {
  13854. eval $1+=\$2
  13855. }'
  13856. else
  13857. as_fn_append ()
  13858. {
  13859. eval $1=\$$1\$2
  13860. }
  13861. fi # as_fn_append
  13862. # as_fn_arith ARG...
  13863. # ------------------
  13864. # Perform arithmetic evaluation on the ARGs, and store the result in the
  13865. # global $as_val. Take advantage of shells that can avoid forks. The arguments
  13866. # must be portable across $(()) and expr.
  13867. if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
  13868. eval 'as_fn_arith ()
  13869. {
  13870. as_val=$(( $* ))
  13871. }'
  13872. else
  13873. as_fn_arith ()
  13874. {
  13875. as_val=`expr "$@" || test $? -eq 1`
  13876. }
  13877. fi # as_fn_arith
  13878. if expr a : '\(a\)' >/dev/null 2>&1 &&
  13879. test "X`expr 00001 : '.*\(...\)'`" = X001; then
  13880. as_expr=expr
  13881. else
  13882. as_expr=false
  13883. fi
  13884. if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
  13885. as_basename=basename
  13886. else
  13887. as_basename=false
  13888. fi
  13889. if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
  13890. as_dirname=dirname
  13891. else
  13892. as_dirname=false
  13893. fi
  13894. as_me=`$as_basename -- "$0" ||
  13895. $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
  13896. X"$0" : 'X\(//\)$' \| \
  13897. X"$0" : 'X\(/\)' \| . 2>/dev/null ||
  13898. $as_echo X/"$0" |
  13899. sed '/^.*\/\([^/][^/]*\)\/*$/{
  13900. s//\1/
  13901. q
  13902. }
  13903. /^X\/\(\/\/\)$/{
  13904. s//\1/
  13905. q
  13906. }
  13907. /^X\/\(\/\).*/{
  13908. s//\1/
  13909. q
  13910. }
  13911. s/.*/./; q'`
  13912. # Avoid depending upon Character Ranges.
  13913. as_cr_letters='abcdefghijklmnopqrstuvwxyz'
  13914. as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
  13915. as_cr_Letters=$as_cr_letters$as_cr_LETTERS
  13916. as_cr_digits='0123456789'
  13917. as_cr_alnum=$as_cr_Letters$as_cr_digits
  13918. ECHO_C= ECHO_N= ECHO_T=
  13919. case `echo -n x` in #(((((
  13920. -n*)
  13921. case `echo 'xy\c'` in
  13922. *c*) ECHO_T=' ';; # ECHO_T is single tab character.
  13923. xy) ECHO_C='\c';;
  13924. *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
  13925. ECHO_T=' ';;
  13926. esac;;
  13927. *)
  13928. ECHO_N='-n';;
  13929. esac
  13930. rm -f conf$$ conf$$.exe conf$$.file
  13931. if test -d conf$$.dir; then
  13932. rm -f conf$$.dir/conf$$.file
  13933. else
  13934. rm -f conf$$.dir
  13935. mkdir conf$$.dir 2>/dev/null
  13936. fi
  13937. if (echo >conf$$.file) 2>/dev/null; then
  13938. if ln -s conf$$.file conf$$ 2>/dev/null; then
  13939. as_ln_s='ln -s'
  13940. # ... but there are two gotchas:
  13941. # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
  13942. # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
  13943. # In both cases, we have to default to `cp -pR'.
  13944. ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
  13945. as_ln_s='cp -pR'
  13946. elif ln conf$$.file conf$$ 2>/dev/null; then
  13947. as_ln_s=ln
  13948. else
  13949. as_ln_s='cp -pR'
  13950. fi
  13951. else
  13952. as_ln_s='cp -pR'
  13953. fi
  13954. rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
  13955. rmdir conf$$.dir 2>/dev/null
  13956. # as_fn_mkdir_p
  13957. # -------------
  13958. # Create "$as_dir" as a directory, including parents if necessary.
  13959. as_fn_mkdir_p ()
  13960. {
  13961. case $as_dir in #(
  13962. -*) as_dir=./$as_dir;;
  13963. esac
  13964. test -d "$as_dir" || eval $as_mkdir_p || {
  13965. as_dirs=
  13966. while :; do
  13967. case $as_dir in #(
  13968. *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
  13969. *) as_qdir=$as_dir;;
  13970. esac
  13971. as_dirs="'$as_qdir' $as_dirs"
  13972. as_dir=`$as_dirname -- "$as_dir" ||
  13973. $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  13974. X"$as_dir" : 'X\(//\)[^/]' \| \
  13975. X"$as_dir" : 'X\(//\)$' \| \
  13976. X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
  13977. $as_echo X"$as_dir" |
  13978. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  13979. s//\1/
  13980. q
  13981. }
  13982. /^X\(\/\/\)[^/].*/{
  13983. s//\1/
  13984. q
  13985. }
  13986. /^X\(\/\/\)$/{
  13987. s//\1/
  13988. q
  13989. }
  13990. /^X\(\/\).*/{
  13991. s//\1/
  13992. q
  13993. }
  13994. s/.*/./; q'`
  13995. test -d "$as_dir" && break
  13996. done
  13997. test -z "$as_dirs" || eval "mkdir $as_dirs"
  13998. } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
  13999. } # as_fn_mkdir_p
  14000. if mkdir -p . 2>/dev/null; then
  14001. as_mkdir_p='mkdir -p "$as_dir"'
  14002. else
  14003. test -d ./-p && rmdir ./-p
  14004. as_mkdir_p=false
  14005. fi
  14006. # as_fn_executable_p FILE
  14007. # -----------------------
  14008. # Test if FILE is an executable regular file.
  14009. as_fn_executable_p ()
  14010. {
  14011. test -f "$1" && test -x "$1"
  14012. } # as_fn_executable_p
  14013. as_test_x='test -x'
  14014. as_executable_p=as_fn_executable_p
  14015. # Sed expression to map a string onto a valid CPP name.
  14016. as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
  14017. # Sed expression to map a string onto a valid variable name.
  14018. as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
  14019. exec 6>&1
  14020. ## ----------------------------------- ##
  14021. ## Main body of $CONFIG_STATUS script. ##
  14022. ## ----------------------------------- ##
  14023. _ASEOF
  14024. test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
  14025. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  14026. # Save the log message, to keep $0 and so on meaningful, and to
  14027. # report actual input values of CONFIG_FILES etc. instead of their
  14028. # values after options handling.
  14029. ac_log="
  14030. This file was extended by neon $as_me 0.30.1, which was
  14031. generated by GNU Autoconf 2.69. Invocation command line was
  14032. CONFIG_FILES = $CONFIG_FILES
  14033. CONFIG_HEADERS = $CONFIG_HEADERS
  14034. CONFIG_LINKS = $CONFIG_LINKS
  14035. CONFIG_COMMANDS = $CONFIG_COMMANDS
  14036. $ $0 $@
  14037. on `(hostname || uname -n) 2>/dev/null | sed 1q`
  14038. "
  14039. _ACEOF
  14040. case $ac_config_files in *"
  14041. "*) set x $ac_config_files; shift; ac_config_files=$*;;
  14042. esac
  14043. case $ac_config_headers in *"
  14044. "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
  14045. esac
  14046. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  14047. # Files that config.status was made for.
  14048. config_files="$ac_config_files"
  14049. config_headers="$ac_config_headers"
  14050. config_commands="$ac_config_commands"
  14051. _ACEOF
  14052. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  14053. ac_cs_usage="\
  14054. \`$as_me' instantiates files and other configuration actions
  14055. from templates according to the current configuration. Unless the files
  14056. and actions are specified as TAGs, all are instantiated by default.
  14057. Usage: $0 [OPTION]... [TAG]...
  14058. -h, --help print this help, then exit
  14059. -V, --version print version number and configuration settings, then exit
  14060. --config print configuration, then exit
  14061. -q, --quiet, --silent
  14062. do not print progress messages
  14063. -d, --debug don't remove temporary files
  14064. --recheck update $as_me by reconfiguring in the same conditions
  14065. --file=FILE[:TEMPLATE]
  14066. instantiate the configuration file FILE
  14067. --header=FILE[:TEMPLATE]
  14068. instantiate the configuration header FILE
  14069. Configuration files:
  14070. $config_files
  14071. Configuration headers:
  14072. $config_headers
  14073. Configuration commands:
  14074. $config_commands
  14075. Report bugs to <[email protected]>."
  14076. _ACEOF
  14077. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  14078. ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
  14079. ac_cs_version="\\
  14080. neon config.status 0.30.1
  14081. configured by $0, generated by GNU Autoconf 2.69,
  14082. with options \\"\$ac_cs_config\\"
  14083. Copyright (C) 2012 Free Software Foundation, Inc.
  14084. This config.status script is free software; the Free Software Foundation
  14085. gives unlimited permission to copy, distribute and modify it."
  14086. ac_pwd='$ac_pwd'
  14087. srcdir='$srcdir'
  14088. INSTALL='$INSTALL'
  14089. AWK='$AWK'
  14090. test -n "\$AWK" || AWK=awk
  14091. _ACEOF
  14092. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  14093. # The default lists apply if the user does not specify any file.
  14094. ac_need_defaults=:
  14095. while test $# != 0
  14096. do
  14097. case $1 in
  14098. --*=?*)
  14099. ac_option=`expr "X$1" : 'X\([^=]*\)='`
  14100. ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
  14101. ac_shift=:
  14102. ;;
  14103. --*=)
  14104. ac_option=`expr "X$1" : 'X\([^=]*\)='`
  14105. ac_optarg=
  14106. ac_shift=:
  14107. ;;
  14108. *)
  14109. ac_option=$1
  14110. ac_optarg=$2
  14111. ac_shift=shift
  14112. ;;
  14113. esac
  14114. case $ac_option in
  14115. # Handling of the options.
  14116. -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
  14117. ac_cs_recheck=: ;;
  14118. --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
  14119. $as_echo "$ac_cs_version"; exit ;;
  14120. --config | --confi | --conf | --con | --co | --c )
  14121. $as_echo "$ac_cs_config"; exit ;;
  14122. --debug | --debu | --deb | --de | --d | -d )
  14123. debug=: ;;
  14124. --file | --fil | --fi | --f )
  14125. $ac_shift
  14126. case $ac_optarg in
  14127. *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
  14128. '') as_fn_error $? "missing file argument" ;;
  14129. esac
  14130. as_fn_append CONFIG_FILES " '$ac_optarg'"
  14131. ac_need_defaults=false;;
  14132. --header | --heade | --head | --hea )
  14133. $ac_shift
  14134. case $ac_optarg in
  14135. *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
  14136. esac
  14137. as_fn_append CONFIG_HEADERS " '$ac_optarg'"
  14138. ac_need_defaults=false;;
  14139. --he | --h)
  14140. # Conflict between --help and --header
  14141. as_fn_error $? "ambiguous option: \`$1'
  14142. Try \`$0 --help' for more information.";;
  14143. --help | --hel | -h )
  14144. $as_echo "$ac_cs_usage"; exit ;;
  14145. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  14146. | -silent | --silent | --silen | --sile | --sil | --si | --s)
  14147. ac_cs_silent=: ;;
  14148. # This is an error.
  14149. -*) as_fn_error $? "unrecognized option: \`$1'
  14150. Try \`$0 --help' for more information." ;;
  14151. *) as_fn_append ac_config_targets " $1"
  14152. ac_need_defaults=false ;;
  14153. esac
  14154. shift
  14155. done
  14156. ac_configure_extra_args=
  14157. if $ac_cs_silent; then
  14158. exec 6>/dev/null
  14159. ac_configure_extra_args="$ac_configure_extra_args --silent"
  14160. fi
  14161. _ACEOF
  14162. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  14163. if \$ac_cs_recheck; then
  14164. set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
  14165. shift
  14166. \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
  14167. CONFIG_SHELL='$SHELL'
  14168. export CONFIG_SHELL
  14169. exec "\$@"
  14170. fi
  14171. _ACEOF
  14172. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  14173. exec 5>>config.log
  14174. {
  14175. echo
  14176. sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
  14177. ## Running $as_me. ##
  14178. _ASBOX
  14179. $as_echo "$ac_log"
  14180. } >&5
  14181. _ACEOF
  14182. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  14183. #
  14184. # INIT-COMMANDS
  14185. #
  14186. # The HP-UX ksh and POSIX shell print the target directory to stdout
  14187. # if CDPATH is set.
  14188. (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
  14189. sed_quote_subst='$sed_quote_subst'
  14190. double_quote_subst='$double_quote_subst'
  14191. delay_variable_subst='$delay_variable_subst'
  14192. enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
  14193. macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
  14194. macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
  14195. enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
  14196. pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
  14197. enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
  14198. SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
  14199. ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
  14200. PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
  14201. host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
  14202. host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
  14203. host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
  14204. build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
  14205. build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
  14206. build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
  14207. SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
  14208. Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
  14209. GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
  14210. EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
  14211. FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
  14212. LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
  14213. NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
  14214. LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
  14215. max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
  14216. ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
  14217. exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
  14218. lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
  14219. lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
  14220. lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
  14221. lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
  14222. lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
  14223. reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
  14224. reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
  14225. OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
  14226. deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
  14227. file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
  14228. file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
  14229. want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
  14230. DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
  14231. sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
  14232. AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
  14233. AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
  14234. archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
  14235. STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
  14236. RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
  14237. old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
  14238. old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
  14239. old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
  14240. lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
  14241. CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
  14242. CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
  14243. compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
  14244. GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
  14245. lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
  14246. lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
  14247. lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
  14248. 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"`'
  14249. nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
  14250. lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
  14251. objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
  14252. MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
  14253. lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
  14254. lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
  14255. lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
  14256. lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
  14257. lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
  14258. need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
  14259. MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
  14260. DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
  14261. NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
  14262. LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
  14263. OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
  14264. OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
  14265. libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
  14266. shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
  14267. extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
  14268. archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
  14269. enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
  14270. export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
  14271. whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
  14272. compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
  14273. old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
  14274. old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
  14275. archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
  14276. archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
  14277. module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
  14278. module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
  14279. with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
  14280. allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
  14281. no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
  14282. hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
  14283. hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
  14284. hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
  14285. hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
  14286. hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
  14287. hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
  14288. hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
  14289. inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
  14290. link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
  14291. always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
  14292. export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
  14293. exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
  14294. include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
  14295. prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
  14296. postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
  14297. file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
  14298. variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
  14299. need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
  14300. need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
  14301. version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
  14302. runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
  14303. shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
  14304. shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
  14305. libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
  14306. library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
  14307. soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
  14308. install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
  14309. postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
  14310. postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
  14311. finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
  14312. finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
  14313. hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
  14314. sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
  14315. sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
  14316. hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
  14317. enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
  14318. enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
  14319. enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
  14320. old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
  14321. striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
  14322. LTCC='$LTCC'
  14323. LTCFLAGS='$LTCFLAGS'
  14324. compiler='$compiler_DEFAULT'
  14325. # A function that is used when there is no print builtin or printf.
  14326. func_fallback_echo ()
  14327. {
  14328. eval 'cat <<_LTECHO_EOF
  14329. \$1
  14330. _LTECHO_EOF'
  14331. }
  14332. # Quote evaled strings.
  14333. for var in SHELL \
  14334. ECHO \
  14335. PATH_SEPARATOR \
  14336. SED \
  14337. GREP \
  14338. EGREP \
  14339. FGREP \
  14340. LD \
  14341. NM \
  14342. LN_S \
  14343. lt_SP2NL \
  14344. lt_NL2SP \
  14345. reload_flag \
  14346. OBJDUMP \
  14347. deplibs_check_method \
  14348. file_magic_cmd \
  14349. file_magic_glob \
  14350. want_nocaseglob \
  14351. DLLTOOL \
  14352. sharedlib_from_linklib_cmd \
  14353. AR \
  14354. AR_FLAGS \
  14355. archiver_list_spec \
  14356. STRIP \
  14357. RANLIB \
  14358. CC \
  14359. CFLAGS \
  14360. compiler \
  14361. lt_cv_sys_global_symbol_pipe \
  14362. lt_cv_sys_global_symbol_to_cdecl \
  14363. lt_cv_sys_global_symbol_to_c_name_address \
  14364. lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
  14365. nm_file_list_spec \
  14366. lt_prog_compiler_no_builtin_flag \
  14367. lt_prog_compiler_pic \
  14368. lt_prog_compiler_wl \
  14369. lt_prog_compiler_static \
  14370. lt_cv_prog_compiler_c_o \
  14371. need_locks \
  14372. MANIFEST_TOOL \
  14373. DSYMUTIL \
  14374. NMEDIT \
  14375. LIPO \
  14376. OTOOL \
  14377. OTOOL64 \
  14378. shrext_cmds \
  14379. export_dynamic_flag_spec \
  14380. whole_archive_flag_spec \
  14381. compiler_needs_object \
  14382. with_gnu_ld \
  14383. allow_undefined_flag \
  14384. no_undefined_flag \
  14385. hardcode_libdir_flag_spec \
  14386. hardcode_libdir_separator \
  14387. exclude_expsyms \
  14388. include_expsyms \
  14389. file_list_spec \
  14390. variables_saved_for_relink \
  14391. libname_spec \
  14392. library_names_spec \
  14393. soname_spec \
  14394. install_override_mode \
  14395. finish_eval \
  14396. old_striplib \
  14397. striplib; do
  14398. case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
  14399. *[\\\\\\\`\\"\\\$]*)
  14400. eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
  14401. ;;
  14402. *)
  14403. eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
  14404. ;;
  14405. esac
  14406. done
  14407. # Double-quote double-evaled strings.
  14408. for var in reload_cmds \
  14409. old_postinstall_cmds \
  14410. old_postuninstall_cmds \
  14411. old_archive_cmds \
  14412. extract_expsyms_cmds \
  14413. old_archive_from_new_cmds \
  14414. old_archive_from_expsyms_cmds \
  14415. archive_cmds \
  14416. archive_expsym_cmds \
  14417. module_cmds \
  14418. module_expsym_cmds \
  14419. export_symbols_cmds \
  14420. prelink_cmds \
  14421. postlink_cmds \
  14422. postinstall_cmds \
  14423. postuninstall_cmds \
  14424. finish_cmds \
  14425. sys_lib_search_path_spec \
  14426. sys_lib_dlsearch_path_spec; do
  14427. case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
  14428. *[\\\\\\\`\\"\\\$]*)
  14429. eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
  14430. ;;
  14431. *)
  14432. eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
  14433. ;;
  14434. esac
  14435. done
  14436. ac_aux_dir='$ac_aux_dir'
  14437. xsi_shell='$xsi_shell'
  14438. lt_shell_append='$lt_shell_append'
  14439. # See if we are running on zsh, and set the options which allow our
  14440. # commands through without removal of \ escapes INIT.
  14441. if test -n "\${ZSH_VERSION+set}" ; then
  14442. setopt NO_GLOB_SUBST
  14443. fi
  14444. PACKAGE='$PACKAGE'
  14445. VERSION='$VERSION'
  14446. TIMESTAMP='$TIMESTAMP'
  14447. RM='$RM'
  14448. ofile='$ofile'
  14449. _ACEOF
  14450. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  14451. # Handling of arguments.
  14452. for ac_config_target in $ac_config_targets
  14453. do
  14454. case $ac_config_target in
  14455. "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
  14456. "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
  14457. "neon-config") CONFIG_FILES="$CONFIG_FILES neon-config" ;;
  14458. "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
  14459. "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
  14460. "test/Makefile") CONFIG_FILES="$CONFIG_FILES test/Makefile" ;;
  14461. "neon.pc") CONFIG_FILES="$CONFIG_FILES neon.pc" ;;
  14462. "test/makekeys") CONFIG_FILES="$CONFIG_FILES test/makekeys:test/makekeys.sh" ;;
  14463. *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
  14464. esac
  14465. done
  14466. # If the user did not use the arguments to specify the items to instantiate,
  14467. # then the envvar interface is used. Set only those that are not.
  14468. # We use the long form for the default assignment because of an extremely
  14469. # bizarre bug on SunOS 4.1.3.
  14470. if $ac_need_defaults; then
  14471. test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
  14472. test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
  14473. test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
  14474. fi
  14475. # Have a temporary directory for convenience. Make it in the build tree
  14476. # simply because there is no reason against having it here, and in addition,
  14477. # creating and moving files from /tmp can sometimes cause problems.
  14478. # Hook for its removal unless debugging.
  14479. # Note that there is a small window in which the directory will not be cleaned:
  14480. # after its creation but before its name has been assigned to `$tmp'.
  14481. $debug ||
  14482. {
  14483. tmp= ac_tmp=
  14484. trap 'exit_status=$?
  14485. : "${ac_tmp:=$tmp}"
  14486. { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
  14487. ' 0
  14488. trap 'as_fn_exit 1' 1 2 13 15
  14489. }
  14490. # Create a (secure) tmp directory for tmp files.
  14491. {
  14492. tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
  14493. test -d "$tmp"
  14494. } ||
  14495. {
  14496. tmp=./conf$$-$RANDOM
  14497. (umask 077 && mkdir "$tmp")
  14498. } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
  14499. ac_tmp=$tmp
  14500. # Set up the scripts for CONFIG_FILES section.
  14501. # No need to generate them if there are no CONFIG_FILES.
  14502. # This happens for instance with `./config.status config.h'.
  14503. if test -n "$CONFIG_FILES"; then
  14504. ac_cr=`echo X | tr X '\015'`
  14505. # On cygwin, bash can eat \r inside `` if the user requested igncr.
  14506. # But we know of no other shell where ac_cr would be empty at this
  14507. # point, so we can use a bashism as a fallback.
  14508. if test "x$ac_cr" = x; then
  14509. eval ac_cr=\$\'\\r\'
  14510. fi
  14511. ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
  14512. if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
  14513. ac_cs_awk_cr='\\r'
  14514. else
  14515. ac_cs_awk_cr=$ac_cr
  14516. fi
  14517. echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
  14518. _ACEOF
  14519. {
  14520. echo "cat >conf$$subs.awk <<_ACEOF" &&
  14521. echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
  14522. echo "_ACEOF"
  14523. } >conf$$subs.sh ||
  14524. as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
  14525. ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
  14526. ac_delim='%!_!# '
  14527. for ac_last_try in false false false false false :; do
  14528. . ./conf$$subs.sh ||
  14529. as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
  14530. ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
  14531. if test $ac_delim_n = $ac_delim_num; then
  14532. break
  14533. elif $ac_last_try; then
  14534. as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
  14535. else
  14536. ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
  14537. fi
  14538. done
  14539. rm -f conf$$subs.sh
  14540. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  14541. cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
  14542. _ACEOF
  14543. sed -n '
  14544. h
  14545. s/^/S["/; s/!.*/"]=/
  14546. p
  14547. g
  14548. s/^[^!]*!//
  14549. :repl
  14550. t repl
  14551. s/'"$ac_delim"'$//
  14552. t delim
  14553. :nl
  14554. h
  14555. s/\(.\{148\}\)..*/\1/
  14556. t more1
  14557. s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
  14558. p
  14559. n
  14560. b repl
  14561. :more1
  14562. s/["\\]/\\&/g; s/^/"/; s/$/"\\/
  14563. p
  14564. g
  14565. s/.\{148\}//
  14566. t nl
  14567. :delim
  14568. h
  14569. s/\(.\{148\}\)..*/\1/
  14570. t more2
  14571. s/["\\]/\\&/g; s/^/"/; s/$/"/
  14572. p
  14573. b
  14574. :more2
  14575. s/["\\]/\\&/g; s/^/"/; s/$/"\\/
  14576. p
  14577. g
  14578. s/.\{148\}//
  14579. t delim
  14580. ' <conf$$subs.awk | sed '
  14581. /^[^""]/{
  14582. N
  14583. s/\n//
  14584. }
  14585. ' >>$CONFIG_STATUS || ac_write_fail=1
  14586. rm -f conf$$subs.awk
  14587. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  14588. _ACAWK
  14589. cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
  14590. for (key in S) S_is_set[key] = 1
  14591. FS = ""
  14592. }
  14593. {
  14594. line = $ 0
  14595. nfields = split(line, field, "@")
  14596. substed = 0
  14597. len = length(field[1])
  14598. for (i = 2; i < nfields; i++) {
  14599. key = field[i]
  14600. keylen = length(key)
  14601. if (S_is_set[key]) {
  14602. value = S[key]
  14603. line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
  14604. len += length(value) + length(field[++i])
  14605. substed = 1
  14606. } else
  14607. len += 1 + keylen
  14608. }
  14609. print line
  14610. }
  14611. _ACAWK
  14612. _ACEOF
  14613. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  14614. if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
  14615. sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
  14616. else
  14617. cat
  14618. fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
  14619. || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
  14620. _ACEOF
  14621. # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
  14622. # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
  14623. # trailing colons and then remove the whole line if VPATH becomes empty
  14624. # (actually we leave an empty line to preserve line numbers).
  14625. if test "x$srcdir" = x.; then
  14626. ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
  14627. h
  14628. s///
  14629. s/^/:/
  14630. s/[ ]*$/:/
  14631. s/:\$(srcdir):/:/g
  14632. s/:\${srcdir}:/:/g
  14633. s/:@srcdir@:/:/g
  14634. s/^:*//
  14635. s/:*$//
  14636. x
  14637. s/\(=[ ]*\).*/\1/
  14638. G
  14639. s/\n//
  14640. s/^[^=]*=[ ]*$//
  14641. }'
  14642. fi
  14643. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  14644. fi # test -n "$CONFIG_FILES"
  14645. # Set up the scripts for CONFIG_HEADERS section.
  14646. # No need to generate them if there are no CONFIG_HEADERS.
  14647. # This happens for instance with `./config.status Makefile'.
  14648. if test -n "$CONFIG_HEADERS"; then
  14649. cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
  14650. BEGIN {
  14651. _ACEOF
  14652. # Transform confdefs.h into an awk script `defines.awk', embedded as
  14653. # here-document in config.status, that substitutes the proper values into
  14654. # config.h.in to produce config.h.
  14655. # Create a delimiter string that does not exist in confdefs.h, to ease
  14656. # handling of long lines.
  14657. ac_delim='%!_!# '
  14658. for ac_last_try in false false :; do
  14659. ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
  14660. if test -z "$ac_tt"; then
  14661. break
  14662. elif $ac_last_try; then
  14663. as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
  14664. else
  14665. ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
  14666. fi
  14667. done
  14668. # For the awk script, D is an array of macro values keyed by name,
  14669. # likewise P contains macro parameters if any. Preserve backslash
  14670. # newline sequences.
  14671. ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
  14672. sed -n '
  14673. s/.\{148\}/&'"$ac_delim"'/g
  14674. t rset
  14675. :rset
  14676. s/^[ ]*#[ ]*define[ ][ ]*/ /
  14677. t def
  14678. d
  14679. :def
  14680. s/\\$//
  14681. t bsnl
  14682. s/["\\]/\\&/g
  14683. s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
  14684. D["\1"]=" \3"/p
  14685. s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
  14686. d
  14687. :bsnl
  14688. s/["\\]/\\&/g
  14689. s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
  14690. D["\1"]=" \3\\\\\\n"\\/p
  14691. t cont
  14692. s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
  14693. t cont
  14694. d
  14695. :cont
  14696. n
  14697. s/.\{148\}/&'"$ac_delim"'/g
  14698. t clear
  14699. :clear
  14700. s/\\$//
  14701. t bsnlc
  14702. s/["\\]/\\&/g; s/^/"/; s/$/"/p
  14703. d
  14704. :bsnlc
  14705. s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
  14706. b cont
  14707. ' <confdefs.h | sed '
  14708. s/'"$ac_delim"'/"\\\
  14709. "/g' >>$CONFIG_STATUS || ac_write_fail=1
  14710. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  14711. for (key in D) D_is_set[key] = 1
  14712. FS = ""
  14713. }
  14714. /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
  14715. line = \$ 0
  14716. split(line, arg, " ")
  14717. if (arg[1] == "#") {
  14718. defundef = arg[2]
  14719. mac1 = arg[3]
  14720. } else {
  14721. defundef = substr(arg[1], 2)
  14722. mac1 = arg[2]
  14723. }
  14724. split(mac1, mac2, "(") #)
  14725. macro = mac2[1]
  14726. prefix = substr(line, 1, index(line, defundef) - 1)
  14727. if (D_is_set[macro]) {
  14728. # Preserve the white space surrounding the "#".
  14729. print prefix "define", macro P[macro] D[macro]
  14730. next
  14731. } else {
  14732. # Replace #undef with comments. This is necessary, for example,
  14733. # in the case of _POSIX_SOURCE, which is predefined and required
  14734. # on some systems where configure will not decide to define it.
  14735. if (defundef == "undef") {
  14736. print "/*", prefix defundef, macro, "*/"
  14737. next
  14738. }
  14739. }
  14740. }
  14741. { print }
  14742. _ACAWK
  14743. _ACEOF
  14744. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  14745. as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
  14746. fi # test -n "$CONFIG_HEADERS"
  14747. eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
  14748. shift
  14749. for ac_tag
  14750. do
  14751. case $ac_tag in
  14752. :[FHLC]) ac_mode=$ac_tag; continue;;
  14753. esac
  14754. case $ac_mode$ac_tag in
  14755. :[FHL]*:*);;
  14756. :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
  14757. :[FH]-) ac_tag=-:-;;
  14758. :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
  14759. esac
  14760. ac_save_IFS=$IFS
  14761. IFS=:
  14762. set x $ac_tag
  14763. IFS=$ac_save_IFS
  14764. shift
  14765. ac_file=$1
  14766. shift
  14767. case $ac_mode in
  14768. :L) ac_source=$1;;
  14769. :[FH])
  14770. ac_file_inputs=
  14771. for ac_f
  14772. do
  14773. case $ac_f in
  14774. -) ac_f="$ac_tmp/stdin";;
  14775. *) # Look for the file first in the build tree, then in the source tree
  14776. # (if the path is not absolute). The absolute path cannot be DOS-style,
  14777. # because $ac_f cannot contain `:'.
  14778. test -f "$ac_f" ||
  14779. case $ac_f in
  14780. [\\/$]*) false;;
  14781. *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
  14782. esac ||
  14783. as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
  14784. esac
  14785. case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
  14786. as_fn_append ac_file_inputs " '$ac_f'"
  14787. done
  14788. # Let's still pretend it is `configure' which instantiates (i.e., don't
  14789. # use $as_me), people would be surprised to read:
  14790. # /* config.h. Generated by config.status. */
  14791. configure_input='Generated from '`
  14792. $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
  14793. `' by configure.'
  14794. if test x"$ac_file" != x-; then
  14795. configure_input="$ac_file. $configure_input"
  14796. { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
  14797. $as_echo "$as_me: creating $ac_file" >&6;}
  14798. fi
  14799. # Neutralize special characters interpreted by sed in replacement strings.
  14800. case $configure_input in #(
  14801. *\&* | *\|* | *\\* )
  14802. ac_sed_conf_input=`$as_echo "$configure_input" |
  14803. sed 's/[\\\\&|]/\\\\&/g'`;; #(
  14804. *) ac_sed_conf_input=$configure_input;;
  14805. esac
  14806. case $ac_tag in
  14807. *:-:* | *:-) cat >"$ac_tmp/stdin" \
  14808. || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
  14809. esac
  14810. ;;
  14811. esac
  14812. ac_dir=`$as_dirname -- "$ac_file" ||
  14813. $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  14814. X"$ac_file" : 'X\(//\)[^/]' \| \
  14815. X"$ac_file" : 'X\(//\)$' \| \
  14816. X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
  14817. $as_echo X"$ac_file" |
  14818. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  14819. s//\1/
  14820. q
  14821. }
  14822. /^X\(\/\/\)[^/].*/{
  14823. s//\1/
  14824. q
  14825. }
  14826. /^X\(\/\/\)$/{
  14827. s//\1/
  14828. q
  14829. }
  14830. /^X\(\/\).*/{
  14831. s//\1/
  14832. q
  14833. }
  14834. s/.*/./; q'`
  14835. as_dir="$ac_dir"; as_fn_mkdir_p
  14836. ac_builddir=.
  14837. case "$ac_dir" in
  14838. .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
  14839. *)
  14840. ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
  14841. # A ".." for each directory in $ac_dir_suffix.
  14842. ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
  14843. case $ac_top_builddir_sub in
  14844. "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
  14845. *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
  14846. esac ;;
  14847. esac
  14848. ac_abs_top_builddir=$ac_pwd
  14849. ac_abs_builddir=$ac_pwd$ac_dir_suffix
  14850. # for backward compatibility:
  14851. ac_top_builddir=$ac_top_build_prefix
  14852. case $srcdir in
  14853. .) # We are building in place.
  14854. ac_srcdir=.
  14855. ac_top_srcdir=$ac_top_builddir_sub
  14856. ac_abs_top_srcdir=$ac_pwd ;;
  14857. [\\/]* | ?:[\\/]* ) # Absolute name.
  14858. ac_srcdir=$srcdir$ac_dir_suffix;
  14859. ac_top_srcdir=$srcdir
  14860. ac_abs_top_srcdir=$srcdir ;;
  14861. *) # Relative name.
  14862. ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
  14863. ac_top_srcdir=$ac_top_build_prefix$srcdir
  14864. ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
  14865. esac
  14866. ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
  14867. case $ac_mode in
  14868. :F)
  14869. #
  14870. # CONFIG_FILE
  14871. #
  14872. case $INSTALL in
  14873. [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
  14874. *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
  14875. esac
  14876. _ACEOF
  14877. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  14878. # If the template does not know about datarootdir, expand it.
  14879. # FIXME: This hack should be removed a few years after 2.60.
  14880. ac_datarootdir_hack=; ac_datarootdir_seen=
  14881. ac_sed_dataroot='
  14882. /datarootdir/ {
  14883. p
  14884. q
  14885. }
  14886. /@datadir@/p
  14887. /@docdir@/p
  14888. /@infodir@/p
  14889. /@localedir@/p
  14890. /@mandir@/p'
  14891. case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
  14892. *datarootdir*) ac_datarootdir_seen=yes;;
  14893. *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
  14894. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
  14895. $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
  14896. _ACEOF
  14897. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  14898. ac_datarootdir_hack='
  14899. s&@datadir@&$datadir&g
  14900. s&@docdir@&$docdir&g
  14901. s&@infodir@&$infodir&g
  14902. s&@localedir@&$localedir&g
  14903. s&@mandir@&$mandir&g
  14904. s&\\\${datarootdir}&$datarootdir&g' ;;
  14905. esac
  14906. _ACEOF
  14907. # Neutralize VPATH when `$srcdir' = `.'.
  14908. # Shell code in configure.ac might set extrasub.
  14909. # FIXME: do we really want to maintain this feature?
  14910. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  14911. ac_sed_extra="$ac_vpsub
  14912. $extrasub
  14913. _ACEOF
  14914. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  14915. :t
  14916. /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
  14917. s|@configure_input@|$ac_sed_conf_input|;t t
  14918. s&@top_builddir@&$ac_top_builddir_sub&;t t
  14919. s&@top_build_prefix@&$ac_top_build_prefix&;t t
  14920. s&@srcdir@&$ac_srcdir&;t t
  14921. s&@abs_srcdir@&$ac_abs_srcdir&;t t
  14922. s&@top_srcdir@&$ac_top_srcdir&;t t
  14923. s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
  14924. s&@builddir@&$ac_builddir&;t t
  14925. s&@abs_builddir@&$ac_abs_builddir&;t t
  14926. s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
  14927. s&@INSTALL@&$ac_INSTALL&;t t
  14928. $ac_datarootdir_hack
  14929. "
  14930. eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
  14931. >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
  14932. test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
  14933. { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
  14934. { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
  14935. "$ac_tmp/out"`; test -z "$ac_out"; } &&
  14936. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
  14937. which seems to be undefined. Please make sure it is defined" >&5
  14938. $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
  14939. which seems to be undefined. Please make sure it is defined" >&2;}
  14940. rm -f "$ac_tmp/stdin"
  14941. case $ac_file in
  14942. -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
  14943. *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
  14944. esac \
  14945. || as_fn_error $? "could not create $ac_file" "$LINENO" 5
  14946. ;;
  14947. :H)
  14948. #
  14949. # CONFIG_HEADER
  14950. #
  14951. if test x"$ac_file" != x-; then
  14952. {
  14953. $as_echo "/* $configure_input */" \
  14954. && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
  14955. } >"$ac_tmp/config.h" \
  14956. || as_fn_error $? "could not create $ac_file" "$LINENO" 5
  14957. if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
  14958. { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
  14959. $as_echo "$as_me: $ac_file is unchanged" >&6;}
  14960. else
  14961. rm -f "$ac_file"
  14962. mv "$ac_tmp/config.h" "$ac_file" \
  14963. || as_fn_error $? "could not create $ac_file" "$LINENO" 5
  14964. fi
  14965. else
  14966. $as_echo "/* $configure_input */" \
  14967. && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
  14968. || as_fn_error $? "could not create -" "$LINENO" 5
  14969. fi
  14970. ;;
  14971. :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
  14972. $as_echo "$as_me: executing $ac_file commands" >&6;}
  14973. ;;
  14974. esac
  14975. case $ac_file$ac_mode in
  14976. "libtool":C)
  14977. # See if we are running on zsh, and set the options which allow our
  14978. # commands through without removal of \ escapes.
  14979. if test -n "${ZSH_VERSION+set}" ; then
  14980. setopt NO_GLOB_SUBST
  14981. fi
  14982. cfgfile="${ofile}T"
  14983. trap "$RM \"$cfgfile\"; exit 1" 1 2 15
  14984. $RM "$cfgfile"
  14985. cat <<_LT_EOF >> "$cfgfile"
  14986. #! $SHELL
  14987. # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
  14988. # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
  14989. # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
  14990. # NOTE: Changes made to this file will be lost: look at ltmain.sh.
  14991. #
  14992. # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
  14993. # 2006, 2007, 2008, 2009, 2010, 2011 Free Software
  14994. # Foundation, Inc.
  14995. # Written by Gordon Matzigkeit, 1996
  14996. #
  14997. # This file is part of GNU Libtool.
  14998. #
  14999. # GNU Libtool is free software; you can redistribute it and/or
  15000. # modify it under the terms of the GNU General Public License as
  15001. # published by the Free Software Foundation; either version 2 of
  15002. # the License, or (at your option) any later version.
  15003. #
  15004. # As a special exception to the GNU General Public License,
  15005. # if you distribute this file as part of a program or library that
  15006. # is built using GNU Libtool, you may include this file under the
  15007. # same distribution terms that you use for the rest of that program.
  15008. #
  15009. # GNU Libtool is distributed in the hope that it will be useful,
  15010. # but WITHOUT ANY WARRANTY; without even the implied warranty of
  15011. # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  15012. # GNU General Public License for more details.
  15013. #
  15014. # You should have received a copy of the GNU General Public License
  15015. # along with GNU Libtool; see the file COPYING. If not, a copy
  15016. # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
  15017. # obtained by writing to the Free Software Foundation, Inc.,
  15018. # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
  15019. # The names of the tagged configurations supported by this script.
  15020. available_tags=""
  15021. # ### BEGIN LIBTOOL CONFIG
  15022. # Whether or not to build shared libraries.
  15023. build_libtool_libs=$enable_shared
  15024. # Which release of libtool.m4 was used?
  15025. macro_version=$macro_version
  15026. macro_revision=$macro_revision
  15027. # Whether or not to build static libraries.
  15028. build_old_libs=$enable_static
  15029. # What type of objects to build.
  15030. pic_mode=$pic_mode
  15031. # Whether or not to optimize for fast installation.
  15032. fast_install=$enable_fast_install
  15033. # Shell to use when invoking shell scripts.
  15034. SHELL=$lt_SHELL
  15035. # An echo program that protects backslashes.
  15036. ECHO=$lt_ECHO
  15037. # The PATH separator for the build system.
  15038. PATH_SEPARATOR=$lt_PATH_SEPARATOR
  15039. # The host system.
  15040. host_alias=$host_alias
  15041. host=$host
  15042. host_os=$host_os
  15043. # The build system.
  15044. build_alias=$build_alias
  15045. build=$build
  15046. build_os=$build_os
  15047. # A sed program that does not truncate output.
  15048. SED=$lt_SED
  15049. # Sed that helps us avoid accidentally triggering echo(1) options like -n.
  15050. Xsed="\$SED -e 1s/^X//"
  15051. # A grep program that handles long lines.
  15052. GREP=$lt_GREP
  15053. # An ERE matcher.
  15054. EGREP=$lt_EGREP
  15055. # A literal string matcher.
  15056. FGREP=$lt_FGREP
  15057. # A BSD- or MS-compatible name lister.
  15058. NM=$lt_NM
  15059. # Whether we need soft or hard links.
  15060. LN_S=$lt_LN_S
  15061. # What is the maximum length of a command?
  15062. max_cmd_len=$max_cmd_len
  15063. # Object file suffix (normally "o").
  15064. objext=$ac_objext
  15065. # Executable file suffix (normally "").
  15066. exeext=$exeext
  15067. # whether the shell understands "unset".
  15068. lt_unset=$lt_unset
  15069. # turn spaces into newlines.
  15070. SP2NL=$lt_lt_SP2NL
  15071. # turn newlines into spaces.
  15072. NL2SP=$lt_lt_NL2SP
  15073. # convert \$build file names to \$host format.
  15074. to_host_file_cmd=$lt_cv_to_host_file_cmd
  15075. # convert \$build files to toolchain format.
  15076. to_tool_file_cmd=$lt_cv_to_tool_file_cmd
  15077. # An object symbol dumper.
  15078. OBJDUMP=$lt_OBJDUMP
  15079. # Method to check whether dependent libraries are shared objects.
  15080. deplibs_check_method=$lt_deplibs_check_method
  15081. # Command to use when deplibs_check_method = "file_magic".
  15082. file_magic_cmd=$lt_file_magic_cmd
  15083. # How to find potential files when deplibs_check_method = "file_magic".
  15084. file_magic_glob=$lt_file_magic_glob
  15085. # Find potential files using nocaseglob when deplibs_check_method = "file_magic".
  15086. want_nocaseglob=$lt_want_nocaseglob
  15087. # DLL creation program.
  15088. DLLTOOL=$lt_DLLTOOL
  15089. # Command to associate shared and link libraries.
  15090. sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
  15091. # The archiver.
  15092. AR=$lt_AR
  15093. # Flags to create an archive.
  15094. AR_FLAGS=$lt_AR_FLAGS
  15095. # How to feed a file listing to the archiver.
  15096. archiver_list_spec=$lt_archiver_list_spec
  15097. # A symbol stripping program.
  15098. STRIP=$lt_STRIP
  15099. # Commands used to install an old-style archive.
  15100. RANLIB=$lt_RANLIB
  15101. old_postinstall_cmds=$lt_old_postinstall_cmds
  15102. old_postuninstall_cmds=$lt_old_postuninstall_cmds
  15103. # Whether to use a lock for old archive extraction.
  15104. lock_old_archive_extraction=$lock_old_archive_extraction
  15105. # A C compiler.
  15106. LTCC=$lt_CC
  15107. # LTCC compiler flags.
  15108. LTCFLAGS=$lt_CFLAGS
  15109. # Take the output of nm and produce a listing of raw symbols and C names.
  15110. global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
  15111. # Transform the output of nm in a proper C declaration.
  15112. global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
  15113. # Transform the output of nm in a C name address pair.
  15114. global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
  15115. # Transform the output of nm in a C name address pair when lib prefix is needed.
  15116. global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
  15117. # Specify filename containing input files for \$NM.
  15118. nm_file_list_spec=$lt_nm_file_list_spec
  15119. # The root where to search for dependent libraries,and in which our libraries should be installed.
  15120. lt_sysroot=$lt_sysroot
  15121. # The name of the directory that contains temporary libtool files.
  15122. objdir=$objdir
  15123. # Used to examine libraries when file_magic_cmd begins with "file".
  15124. MAGIC_CMD=$MAGIC_CMD
  15125. # Must we lock files when doing compilation?
  15126. need_locks=$lt_need_locks
  15127. # Manifest tool.
  15128. MANIFEST_TOOL=$lt_MANIFEST_TOOL
  15129. # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
  15130. DSYMUTIL=$lt_DSYMUTIL
  15131. # Tool to change global to local symbols on Mac OS X.
  15132. NMEDIT=$lt_NMEDIT
  15133. # Tool to manipulate fat objects and archives on Mac OS X.
  15134. LIPO=$lt_LIPO
  15135. # ldd/readelf like tool for Mach-O binaries on Mac OS X.
  15136. OTOOL=$lt_OTOOL
  15137. # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
  15138. OTOOL64=$lt_OTOOL64
  15139. # Old archive suffix (normally "a").
  15140. libext=$libext
  15141. # Shared library suffix (normally ".so").
  15142. shrext_cmds=$lt_shrext_cmds
  15143. # The commands to extract the exported symbol list from a shared archive.
  15144. extract_expsyms_cmds=$lt_extract_expsyms_cmds
  15145. # Variables whose values should be saved in libtool wrapper scripts and
  15146. # restored at link time.
  15147. variables_saved_for_relink=$lt_variables_saved_for_relink
  15148. # Do we need the "lib" prefix for modules?
  15149. need_lib_prefix=$need_lib_prefix
  15150. # Do we need a version for libraries?
  15151. need_version=$need_version
  15152. # Library versioning type.
  15153. version_type=$version_type
  15154. # Shared library runtime path variable.
  15155. runpath_var=$runpath_var
  15156. # Shared library path variable.
  15157. shlibpath_var=$shlibpath_var
  15158. # Is shlibpath searched before the hard-coded library search path?
  15159. shlibpath_overrides_runpath=$shlibpath_overrides_runpath
  15160. # Format of library name prefix.
  15161. libname_spec=$lt_libname_spec
  15162. # List of archive names. First name is the real one, the rest are links.
  15163. # The last name is the one that the linker finds with -lNAME
  15164. library_names_spec=$lt_library_names_spec
  15165. # The coded name of the library, if different from the real name.
  15166. soname_spec=$lt_soname_spec
  15167. # Permission mode override for installation of shared libraries.
  15168. install_override_mode=$lt_install_override_mode
  15169. # Command to use after installation of a shared archive.
  15170. postinstall_cmds=$lt_postinstall_cmds
  15171. # Command to use after uninstallation of a shared archive.
  15172. postuninstall_cmds=$lt_postuninstall_cmds
  15173. # Commands used to finish a libtool library installation in a directory.
  15174. finish_cmds=$lt_finish_cmds
  15175. # As "finish_cmds", except a single script fragment to be evaled but
  15176. # not shown.
  15177. finish_eval=$lt_finish_eval
  15178. # Whether we should hardcode library paths into libraries.
  15179. hardcode_into_libs=$hardcode_into_libs
  15180. # Compile-time system search path for libraries.
  15181. sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
  15182. # Run-time system search path for libraries.
  15183. sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
  15184. # Whether dlopen is supported.
  15185. dlopen_support=$enable_dlopen
  15186. # Whether dlopen of programs is supported.
  15187. dlopen_self=$enable_dlopen_self
  15188. # Whether dlopen of statically linked programs is supported.
  15189. dlopen_self_static=$enable_dlopen_self_static
  15190. # Commands to strip libraries.
  15191. old_striplib=$lt_old_striplib
  15192. striplib=$lt_striplib
  15193. # The linker used to build libraries.
  15194. LD=$lt_LD
  15195. # How to create reloadable object files.
  15196. reload_flag=$lt_reload_flag
  15197. reload_cmds=$lt_reload_cmds
  15198. # Commands used to build an old-style archive.
  15199. old_archive_cmds=$lt_old_archive_cmds
  15200. # A language specific compiler.
  15201. CC=$lt_compiler
  15202. # Is the compiler the GNU compiler?
  15203. with_gcc=$GCC
  15204. # Compiler flag to turn off builtin functions.
  15205. no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
  15206. # Additional compiler flags for building library objects.
  15207. pic_flag=$lt_lt_prog_compiler_pic
  15208. # How to pass a linker flag through the compiler.
  15209. wl=$lt_lt_prog_compiler_wl
  15210. # Compiler flag to prevent dynamic linking.
  15211. link_static_flag=$lt_lt_prog_compiler_static
  15212. # Does compiler simultaneously support -c and -o options?
  15213. compiler_c_o=$lt_lt_cv_prog_compiler_c_o
  15214. # Whether or not to add -lc for building shared libraries.
  15215. build_libtool_need_lc=$archive_cmds_need_lc
  15216. # Whether or not to disallow shared libs when runtime libs are static.
  15217. allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
  15218. # Compiler flag to allow reflexive dlopens.
  15219. export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
  15220. # Compiler flag to generate shared objects directly from archives.
  15221. whole_archive_flag_spec=$lt_whole_archive_flag_spec
  15222. # Whether the compiler copes with passing no objects directly.
  15223. compiler_needs_object=$lt_compiler_needs_object
  15224. # Create an old-style archive from a shared archive.
  15225. old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
  15226. # Create a temporary old-style archive to link instead of a shared archive.
  15227. old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
  15228. # Commands used to build a shared archive.
  15229. archive_cmds=$lt_archive_cmds
  15230. archive_expsym_cmds=$lt_archive_expsym_cmds
  15231. # Commands used to build a loadable module if different from building
  15232. # a shared archive.
  15233. module_cmds=$lt_module_cmds
  15234. module_expsym_cmds=$lt_module_expsym_cmds
  15235. # Whether we are building with GNU ld or not.
  15236. with_gnu_ld=$lt_with_gnu_ld
  15237. # Flag that allows shared libraries with undefined symbols to be built.
  15238. allow_undefined_flag=$lt_allow_undefined_flag
  15239. # Flag that enforces no undefined symbols.
  15240. no_undefined_flag=$lt_no_undefined_flag
  15241. # Flag to hardcode \$libdir into a binary during linking.
  15242. # This must work even if \$libdir does not exist
  15243. hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
  15244. # Whether we need a single "-rpath" flag with a separated argument.
  15245. hardcode_libdir_separator=$lt_hardcode_libdir_separator
  15246. # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
  15247. # DIR into the resulting binary.
  15248. hardcode_direct=$hardcode_direct
  15249. # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
  15250. # DIR into the resulting binary and the resulting library dependency is
  15251. # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
  15252. # library is relocated.
  15253. hardcode_direct_absolute=$hardcode_direct_absolute
  15254. # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
  15255. # into the resulting binary.
  15256. hardcode_minus_L=$hardcode_minus_L
  15257. # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
  15258. # into the resulting binary.
  15259. hardcode_shlibpath_var=$hardcode_shlibpath_var
  15260. # Set to "yes" if building a shared library automatically hardcodes DIR
  15261. # into the library and all subsequent libraries and executables linked
  15262. # against it.
  15263. hardcode_automatic=$hardcode_automatic
  15264. # Set to yes if linker adds runtime paths of dependent libraries
  15265. # to runtime path list.
  15266. inherit_rpath=$inherit_rpath
  15267. # Whether libtool must link a program against all its dependency libraries.
  15268. link_all_deplibs=$link_all_deplibs
  15269. # Set to "yes" if exported symbols are required.
  15270. always_export_symbols=$always_export_symbols
  15271. # The commands to list exported symbols.
  15272. export_symbols_cmds=$lt_export_symbols_cmds
  15273. # Symbols that should not be listed in the preloaded symbols.
  15274. exclude_expsyms=$lt_exclude_expsyms
  15275. # Symbols that must always be exported.
  15276. include_expsyms=$lt_include_expsyms
  15277. # Commands necessary for linking programs (against libraries) with templates.
  15278. prelink_cmds=$lt_prelink_cmds
  15279. # Commands necessary for finishing linking programs.
  15280. postlink_cmds=$lt_postlink_cmds
  15281. # Specify filename containing input files.
  15282. file_list_spec=$lt_file_list_spec
  15283. # How to hardcode a shared library path into an executable.
  15284. hardcode_action=$hardcode_action
  15285. # ### END LIBTOOL CONFIG
  15286. _LT_EOF
  15287. case $host_os in
  15288. aix3*)
  15289. cat <<\_LT_EOF >> "$cfgfile"
  15290. # AIX sometimes has problems with the GCC collect2 program. For some
  15291. # reason, if we set the COLLECT_NAMES environment variable, the problems
  15292. # vanish in a puff of smoke.
  15293. if test "X${COLLECT_NAMES+set}" != Xset; then
  15294. COLLECT_NAMES=
  15295. export COLLECT_NAMES
  15296. fi
  15297. _LT_EOF
  15298. ;;
  15299. esac
  15300. ltmain="$ac_aux_dir/ltmain.sh"
  15301. # We use sed instead of cat because bash on DJGPP gets confused if
  15302. # if finds mixed CR/LF and LF-only lines. Since sed operates in
  15303. # text mode, it properly converts lines to CR/LF. This bash problem
  15304. # is reportedly fixed, but why not run on old versions too?
  15305. sed '$q' "$ltmain" >> "$cfgfile" \
  15306. || (rm -f "$cfgfile"; exit 1)
  15307. if test x"$xsi_shell" = xyes; then
  15308. sed -e '/^func_dirname ()$/,/^} # func_dirname /c\
  15309. func_dirname ()\
  15310. {\
  15311. \ case ${1} in\
  15312. \ */*) func_dirname_result="${1%/*}${2}" ;;\
  15313. \ * ) func_dirname_result="${3}" ;;\
  15314. \ esac\
  15315. } # Extended-shell func_dirname implementation' "$cfgfile" > $cfgfile.tmp \
  15316. && mv -f "$cfgfile.tmp" "$cfgfile" \
  15317. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  15318. test 0 -eq $? || _lt_function_replace_fail=:
  15319. sed -e '/^func_basename ()$/,/^} # func_basename /c\
  15320. func_basename ()\
  15321. {\
  15322. \ func_basename_result="${1##*/}"\
  15323. } # Extended-shell func_basename implementation' "$cfgfile" > $cfgfile.tmp \
  15324. && mv -f "$cfgfile.tmp" "$cfgfile" \
  15325. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  15326. test 0 -eq $? || _lt_function_replace_fail=:
  15327. sed -e '/^func_dirname_and_basename ()$/,/^} # func_dirname_and_basename /c\
  15328. func_dirname_and_basename ()\
  15329. {\
  15330. \ case ${1} in\
  15331. \ */*) func_dirname_result="${1%/*}${2}" ;;\
  15332. \ * ) func_dirname_result="${3}" ;;\
  15333. \ esac\
  15334. \ func_basename_result="${1##*/}"\
  15335. } # Extended-shell func_dirname_and_basename implementation' "$cfgfile" > $cfgfile.tmp \
  15336. && mv -f "$cfgfile.tmp" "$cfgfile" \
  15337. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  15338. test 0 -eq $? || _lt_function_replace_fail=:
  15339. sed -e '/^func_stripname ()$/,/^} # func_stripname /c\
  15340. func_stripname ()\
  15341. {\
  15342. \ # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are\
  15343. \ # positional parameters, so assign one to ordinary parameter first.\
  15344. \ func_stripname_result=${3}\
  15345. \ func_stripname_result=${func_stripname_result#"${1}"}\
  15346. \ func_stripname_result=${func_stripname_result%"${2}"}\
  15347. } # Extended-shell func_stripname implementation' "$cfgfile" > $cfgfile.tmp \
  15348. && mv -f "$cfgfile.tmp" "$cfgfile" \
  15349. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  15350. test 0 -eq $? || _lt_function_replace_fail=:
  15351. sed -e '/^func_split_long_opt ()$/,/^} # func_split_long_opt /c\
  15352. func_split_long_opt ()\
  15353. {\
  15354. \ func_split_long_opt_name=${1%%=*}\
  15355. \ func_split_long_opt_arg=${1#*=}\
  15356. } # Extended-shell func_split_long_opt implementation' "$cfgfile" > $cfgfile.tmp \
  15357. && mv -f "$cfgfile.tmp" "$cfgfile" \
  15358. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  15359. test 0 -eq $? || _lt_function_replace_fail=:
  15360. sed -e '/^func_split_short_opt ()$/,/^} # func_split_short_opt /c\
  15361. func_split_short_opt ()\
  15362. {\
  15363. \ func_split_short_opt_arg=${1#??}\
  15364. \ func_split_short_opt_name=${1%"$func_split_short_opt_arg"}\
  15365. } # Extended-shell func_split_short_opt implementation' "$cfgfile" > $cfgfile.tmp \
  15366. && mv -f "$cfgfile.tmp" "$cfgfile" \
  15367. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  15368. test 0 -eq $? || _lt_function_replace_fail=:
  15369. sed -e '/^func_lo2o ()$/,/^} # func_lo2o /c\
  15370. func_lo2o ()\
  15371. {\
  15372. \ case ${1} in\
  15373. \ *.lo) func_lo2o_result=${1%.lo}.${objext} ;;\
  15374. \ *) func_lo2o_result=${1} ;;\
  15375. \ esac\
  15376. } # Extended-shell func_lo2o implementation' "$cfgfile" > $cfgfile.tmp \
  15377. && mv -f "$cfgfile.tmp" "$cfgfile" \
  15378. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  15379. test 0 -eq $? || _lt_function_replace_fail=:
  15380. sed -e '/^func_xform ()$/,/^} # func_xform /c\
  15381. func_xform ()\
  15382. {\
  15383. func_xform_result=${1%.*}.lo\
  15384. } # Extended-shell func_xform implementation' "$cfgfile" > $cfgfile.tmp \
  15385. && mv -f "$cfgfile.tmp" "$cfgfile" \
  15386. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  15387. test 0 -eq $? || _lt_function_replace_fail=:
  15388. sed -e '/^func_arith ()$/,/^} # func_arith /c\
  15389. func_arith ()\
  15390. {\
  15391. func_arith_result=$(( $* ))\
  15392. } # Extended-shell func_arith implementation' "$cfgfile" > $cfgfile.tmp \
  15393. && mv -f "$cfgfile.tmp" "$cfgfile" \
  15394. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  15395. test 0 -eq $? || _lt_function_replace_fail=:
  15396. sed -e '/^func_len ()$/,/^} # func_len /c\
  15397. func_len ()\
  15398. {\
  15399. func_len_result=${#1}\
  15400. } # Extended-shell func_len implementation' "$cfgfile" > $cfgfile.tmp \
  15401. && mv -f "$cfgfile.tmp" "$cfgfile" \
  15402. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  15403. test 0 -eq $? || _lt_function_replace_fail=:
  15404. fi
  15405. if test x"$lt_shell_append" = xyes; then
  15406. sed -e '/^func_append ()$/,/^} # func_append /c\
  15407. func_append ()\
  15408. {\
  15409. eval "${1}+=\\${2}"\
  15410. } # Extended-shell func_append implementation' "$cfgfile" > $cfgfile.tmp \
  15411. && mv -f "$cfgfile.tmp" "$cfgfile" \
  15412. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  15413. test 0 -eq $? || _lt_function_replace_fail=:
  15414. sed -e '/^func_append_quoted ()$/,/^} # func_append_quoted /c\
  15415. func_append_quoted ()\
  15416. {\
  15417. \ func_quote_for_eval "${2}"\
  15418. \ eval "${1}+=\\\\ \\$func_quote_for_eval_result"\
  15419. } # Extended-shell func_append_quoted implementation' "$cfgfile" > $cfgfile.tmp \
  15420. && mv -f "$cfgfile.tmp" "$cfgfile" \
  15421. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  15422. test 0 -eq $? || _lt_function_replace_fail=:
  15423. # Save a `func_append' function call where possible by direct use of '+='
  15424. sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1+="%g' $cfgfile > $cfgfile.tmp \
  15425. && mv -f "$cfgfile.tmp" "$cfgfile" \
  15426. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  15427. test 0 -eq $? || _lt_function_replace_fail=:
  15428. else
  15429. # Save a `func_append' function call even when '+=' is not available
  15430. sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1="$\1%g' $cfgfile > $cfgfile.tmp \
  15431. && mv -f "$cfgfile.tmp" "$cfgfile" \
  15432. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  15433. test 0 -eq $? || _lt_function_replace_fail=:
  15434. fi
  15435. if test x"$_lt_function_replace_fail" = x":"; then
  15436. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unable to substitute extended shell functions in $ofile" >&5
  15437. $as_echo "$as_me: WARNING: Unable to substitute extended shell functions in $ofile" >&2;}
  15438. fi
  15439. mv -f "$cfgfile" "$ofile" ||
  15440. (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
  15441. chmod +x "$ofile"
  15442. ;;
  15443. "neon-config":F) chmod +x neon-config ;;
  15444. "test/makekeys":F) chmod +x test/makekeys ;;
  15445. esac
  15446. done # for ac_tag
  15447. as_fn_exit 0
  15448. _ACEOF
  15449. ac_clean_files=$ac_clean_files_save
  15450. test $ac_write_fail = 0 ||
  15451. as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
  15452. # configure is writing to config.log, and then calls config.status.
  15453. # config.status does its own redirection, appending to config.log.
  15454. # Unfortunately, on DOS this fails, as config.log is still kept open
  15455. # by configure, so config.status won't be able to write to it; its
  15456. # output is simply discarded. So we exec the FD to /dev/null,
  15457. # effectively closing config.log, so it can be properly (re)opened and
  15458. # appended to by config.status. When coming back to configure, we
  15459. # need to make the FD available again.
  15460. if test "$no_create" != yes; then
  15461. ac_cs_success=:
  15462. ac_config_status_args=
  15463. test "$silent" = yes &&
  15464. ac_config_status_args="$ac_config_status_args --quiet"
  15465. exec 5>/dev/null
  15466. $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
  15467. exec 5>>config.log
  15468. # Use ||, not &&, to avoid exiting from the if with $? = 1, which
  15469. # would make configure fail if this is the last instruction.
  15470. $ac_cs_success || as_fn_exit 1
  15471. fi
  15472. if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
  15473. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
  15474. $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
  15475. fi
  15476. # for VPATH builds:
  15477. test -d test/common || mkdir test/common
  15478. { $as_echo "$as_me:${as_lineno-$LINENO}: Configured to build neon 0.30.1:
  15479. Install prefix: ${prefix}
  15480. Compiler: ${CC}
  15481. XML Parser: ${neon_xml_parser_message}
  15482. SSL library: ${ne_SSL_message}
  15483. zlib support: ${ne_ZLIB_message}
  15484. Build libraries: Shared=${enable_shared}, Static=${enable_static}
  15485. " >&5
  15486. $as_echo "$as_me: Configured to build neon 0.30.1:
  15487. Install prefix: ${prefix}
  15488. Compiler: ${CC}
  15489. XML Parser: ${neon_xml_parser_message}
  15490. SSL library: ${ne_SSL_message}
  15491. zlib support: ${ne_ZLIB_message}
  15492. Build libraries: Shared=${enable_shared}, Static=${enable_static}
  15493. " >&6;}
  15494. case $ALLOW_INSTALL in
  15495. memleak)
  15496. { $as_echo "$as_me:${as_lineno-$LINENO}: Configured with development-only flags:
  15497. WARNING: This copy of neon has been configured with memory leak checking
  15498. WARNING: enabled, which should only be used in a development build of neon.
  15499. WARNING: This neon library should not be installed for use by applications.
  15500. " >&5
  15501. $as_echo "$as_me: Configured with development-only flags:
  15502. WARNING: This copy of neon has been configured with memory leak checking
  15503. WARNING: enabled, which should only be used in a development build of neon.
  15504. WARNING: This neon library should not be installed for use by applications.
  15505. " >&6;};;
  15506. esac