configure 432 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531153215331534153515361537153815391540154115421543154415451546154715481549155015511552155315541555155615571558155915601561156215631564156515661567156815691570157115721573157415751576157715781579158015811582158315841585158615871588158915901591159215931594159515961597159815991600160116021603160416051606160716081609161016111612161316141615161616171618161916201621162216231624162516261627162816291630163116321633163416351636163716381639164016411642164316441645164616471648164916501651165216531654165516561657165816591660166116621663166416651666166716681669167016711672167316741675167616771678167916801681168216831684168516861687168816891690169116921693169416951696169716981699170017011702170317041705170617071708170917101711171217131714171517161717171817191720172117221723172417251726172717281729173017311732173317341735173617371738173917401741174217431744174517461747174817491750175117521753175417551756175717581759176017611762176317641765176617671768176917701771177217731774177517761777177817791780178117821783178417851786178717881789179017911792179317941795179617971798179918001801180218031804180518061807180818091810181118121813181418151816181718181819182018211822182318241825182618271828182918301831183218331834183518361837183818391840184118421843184418451846184718481849185018511852185318541855185618571858185918601861186218631864186518661867186818691870187118721873187418751876187718781879188018811882188318841885188618871888188918901891189218931894189518961897189818991900190119021903190419051906190719081909191019111912191319141915191619171918191919201921192219231924192519261927192819291930193119321933193419351936193719381939194019411942194319441945194619471948194919501951195219531954195519561957195819591960196119621963196419651966196719681969197019711972197319741975197619771978197919801981198219831984198519861987198819891990199119921993199419951996199719981999200020012002200320042005200620072008200920102011201220132014201520162017201820192020202120222023202420252026202720282029203020312032203320342035203620372038203920402041204220432044204520462047204820492050205120522053205420552056205720582059206020612062206320642065206620672068206920702071207220732074207520762077207820792080208120822083208420852086208720882089209020912092209320942095209620972098209921002101210221032104210521062107210821092110211121122113211421152116211721182119212021212122212321242125212621272128212921302131213221332134213521362137213821392140214121422143214421452146214721482149215021512152215321542155215621572158215921602161216221632164216521662167216821692170217121722173217421752176217721782179218021812182218321842185218621872188218921902191219221932194219521962197219821992200220122022203220422052206220722082209221022112212221322142215221622172218221922202221222222232224222522262227222822292230223122322233223422352236223722382239224022412242224322442245224622472248224922502251225222532254225522562257225822592260226122622263226422652266226722682269227022712272227322742275227622772278227922802281228222832284228522862287228822892290229122922293229422952296229722982299230023012302230323042305230623072308230923102311231223132314231523162317231823192320232123222323232423252326232723282329233023312332233323342335233623372338233923402341234223432344234523462347234823492350235123522353235423552356235723582359236023612362236323642365236623672368236923702371237223732374237523762377237823792380238123822383238423852386238723882389239023912392239323942395239623972398239924002401240224032404240524062407240824092410241124122413241424152416241724182419242024212422242324242425242624272428242924302431243224332434243524362437243824392440244124422443244424452446244724482449245024512452245324542455245624572458245924602461246224632464246524662467246824692470247124722473247424752476247724782479248024812482248324842485248624872488248924902491249224932494249524962497249824992500250125022503250425052506250725082509251025112512251325142515251625172518251925202521252225232524252525262527252825292530253125322533253425352536253725382539254025412542254325442545254625472548254925502551255225532554255525562557255825592560256125622563256425652566256725682569257025712572257325742575257625772578257925802581258225832584258525862587258825892590259125922593259425952596259725982599260026012602260326042605260626072608260926102611261226132614261526162617261826192620262126222623262426252626262726282629263026312632263326342635263626372638263926402641264226432644264526462647264826492650265126522653265426552656265726582659266026612662266326642665266626672668266926702671267226732674267526762677267826792680268126822683268426852686268726882689269026912692269326942695269626972698269927002701270227032704270527062707270827092710271127122713271427152716271727182719272027212722272327242725272627272728272927302731273227332734273527362737273827392740274127422743274427452746274727482749275027512752275327542755275627572758275927602761276227632764276527662767276827692770277127722773277427752776277727782779278027812782278327842785278627872788278927902791279227932794279527962797279827992800280128022803280428052806280728082809281028112812281328142815281628172818281928202821282228232824282528262827282828292830283128322833283428352836283728382839284028412842284328442845284628472848284928502851285228532854285528562857285828592860286128622863286428652866286728682869287028712872287328742875287628772878287928802881288228832884288528862887288828892890289128922893289428952896289728982899290029012902290329042905290629072908290929102911291229132914291529162917291829192920292129222923292429252926292729282929293029312932293329342935293629372938293929402941294229432944294529462947294829492950295129522953295429552956295729582959296029612962296329642965296629672968296929702971297229732974297529762977297829792980298129822983298429852986298729882989299029912992299329942995299629972998299930003001300230033004300530063007300830093010301130123013301430153016301730183019302030213022302330243025302630273028302930303031303230333034303530363037303830393040304130423043304430453046304730483049305030513052305330543055305630573058305930603061306230633064306530663067306830693070307130723073307430753076307730783079308030813082308330843085308630873088308930903091309230933094309530963097309830993100310131023103310431053106310731083109311031113112311331143115311631173118311931203121312231233124312531263127312831293130313131323133313431353136313731383139314031413142314331443145314631473148314931503151315231533154315531563157315831593160316131623163316431653166316731683169317031713172317331743175317631773178317931803181318231833184318531863187318831893190319131923193319431953196319731983199320032013202320332043205320632073208320932103211321232133214321532163217321832193220322132223223322432253226322732283229323032313232323332343235323632373238323932403241324232433244324532463247324832493250325132523253325432553256325732583259326032613262326332643265326632673268326932703271327232733274327532763277327832793280328132823283328432853286328732883289329032913292329332943295329632973298329933003301330233033304330533063307330833093310331133123313331433153316331733183319332033213322332333243325332633273328332933303331333233333334333533363337333833393340334133423343334433453346334733483349335033513352335333543355335633573358335933603361336233633364336533663367336833693370337133723373337433753376337733783379338033813382338333843385338633873388338933903391339233933394339533963397339833993400340134023403340434053406340734083409341034113412341334143415341634173418341934203421342234233424342534263427342834293430343134323433343434353436343734383439344034413442344334443445344634473448344934503451345234533454345534563457345834593460346134623463346434653466346734683469347034713472347334743475347634773478347934803481348234833484348534863487348834893490349134923493349434953496349734983499350035013502350335043505350635073508350935103511351235133514351535163517351835193520352135223523352435253526352735283529353035313532353335343535353635373538353935403541354235433544354535463547354835493550355135523553355435553556355735583559356035613562356335643565356635673568356935703571357235733574357535763577357835793580358135823583358435853586358735883589359035913592359335943595359635973598359936003601360236033604360536063607360836093610361136123613361436153616361736183619362036213622362336243625362636273628362936303631363236333634363536363637363836393640364136423643364436453646364736483649365036513652365336543655365636573658365936603661366236633664366536663667366836693670367136723673367436753676367736783679368036813682368336843685368636873688368936903691369236933694369536963697369836993700370137023703370437053706370737083709371037113712371337143715371637173718371937203721372237233724372537263727372837293730373137323733373437353736373737383739374037413742374337443745374637473748374937503751375237533754375537563757375837593760376137623763376437653766376737683769377037713772377337743775377637773778377937803781378237833784378537863787378837893790379137923793379437953796379737983799380038013802380338043805380638073808380938103811381238133814381538163817381838193820382138223823382438253826382738283829383038313832383338343835383638373838383938403841384238433844384538463847384838493850385138523853385438553856385738583859386038613862386338643865386638673868386938703871387238733874387538763877387838793880388138823883388438853886388738883889389038913892389338943895389638973898389939003901390239033904390539063907390839093910391139123913391439153916391739183919392039213922392339243925392639273928392939303931393239333934393539363937393839393940394139423943394439453946394739483949395039513952395339543955395639573958395939603961396239633964396539663967396839693970397139723973397439753976397739783979398039813982398339843985398639873988398939903991399239933994399539963997399839994000400140024003400440054006400740084009401040114012401340144015401640174018401940204021402240234024402540264027402840294030403140324033403440354036403740384039404040414042404340444045404640474048404940504051405240534054405540564057405840594060406140624063406440654066406740684069407040714072407340744075407640774078407940804081408240834084408540864087408840894090409140924093409440954096409740984099410041014102410341044105410641074108410941104111411241134114411541164117411841194120412141224123412441254126412741284129413041314132413341344135413641374138413941404141414241434144414541464147414841494150415141524153415441554156415741584159416041614162416341644165416641674168416941704171417241734174417541764177417841794180418141824183418441854186418741884189419041914192419341944195419641974198419942004201420242034204420542064207420842094210421142124213421442154216421742184219422042214222422342244225422642274228422942304231423242334234423542364237423842394240424142424243424442454246424742484249425042514252425342544255425642574258425942604261426242634264426542664267426842694270427142724273427442754276427742784279428042814282428342844285428642874288428942904291429242934294429542964297429842994300430143024303430443054306430743084309431043114312431343144315431643174318431943204321432243234324432543264327432843294330433143324333433443354336433743384339434043414342434343444345434643474348434943504351435243534354435543564357435843594360436143624363436443654366436743684369437043714372437343744375437643774378437943804381438243834384438543864387438843894390439143924393439443954396439743984399440044014402440344044405440644074408440944104411441244134414441544164417441844194420442144224423442444254426442744284429443044314432443344344435443644374438443944404441444244434444444544464447444844494450445144524453445444554456445744584459446044614462446344644465446644674468446944704471447244734474447544764477447844794480448144824483448444854486448744884489449044914492449344944495449644974498449945004501450245034504450545064507450845094510451145124513451445154516451745184519452045214522452345244525452645274528452945304531453245334534453545364537453845394540454145424543454445454546454745484549455045514552455345544555455645574558455945604561456245634564456545664567456845694570457145724573457445754576457745784579458045814582458345844585458645874588458945904591459245934594459545964597459845994600460146024603460446054606460746084609461046114612461346144615461646174618461946204621462246234624462546264627462846294630463146324633463446354636463746384639464046414642464346444645464646474648464946504651465246534654465546564657465846594660466146624663466446654666466746684669467046714672467346744675467646774678467946804681468246834684468546864687468846894690469146924693469446954696469746984699470047014702470347044705470647074708470947104711471247134714471547164717471847194720472147224723472447254726472747284729473047314732473347344735473647374738473947404741474247434744474547464747474847494750475147524753475447554756475747584759476047614762476347644765476647674768476947704771477247734774477547764777477847794780478147824783478447854786478747884789479047914792479347944795479647974798479948004801480248034804480548064807480848094810481148124813481448154816481748184819482048214822482348244825482648274828482948304831483248334834483548364837483848394840484148424843484448454846484748484849485048514852485348544855485648574858485948604861486248634864486548664867486848694870487148724873487448754876487748784879488048814882488348844885488648874888488948904891489248934894489548964897489848994900490149024903490449054906490749084909491049114912491349144915491649174918491949204921492249234924492549264927492849294930493149324933493449354936493749384939494049414942494349444945494649474948494949504951495249534954495549564957495849594960496149624963496449654966496749684969497049714972497349744975497649774978497949804981498249834984498549864987498849894990499149924993499449954996499749984999500050015002500350045005500650075008500950105011501250135014501550165017501850195020502150225023502450255026502750285029503050315032503350345035503650375038503950405041504250435044504550465047504850495050505150525053505450555056505750585059506050615062506350645065506650675068506950705071507250735074507550765077507850795080508150825083508450855086508750885089509050915092509350945095509650975098509951005101510251035104510551065107510851095110511151125113511451155116511751185119512051215122512351245125512651275128512951305131513251335134513551365137513851395140514151425143514451455146514751485149515051515152515351545155515651575158515951605161516251635164516551665167516851695170517151725173517451755176517751785179518051815182518351845185518651875188518951905191519251935194519551965197519851995200520152025203520452055206520752085209521052115212521352145215521652175218521952205221522252235224522552265227522852295230523152325233523452355236523752385239524052415242524352445245524652475248524952505251525252535254525552565257525852595260526152625263526452655266526752685269527052715272527352745275527652775278527952805281528252835284528552865287528852895290529152925293529452955296529752985299530053015302530353045305530653075308530953105311531253135314531553165317531853195320532153225323532453255326532753285329533053315332533353345335533653375338533953405341534253435344534553465347534853495350535153525353535453555356535753585359536053615362536353645365536653675368536953705371537253735374537553765377537853795380538153825383538453855386538753885389539053915392539353945395539653975398539954005401540254035404540554065407540854095410541154125413541454155416541754185419542054215422542354245425542654275428542954305431543254335434543554365437543854395440544154425443544454455446544754485449545054515452545354545455545654575458545954605461546254635464546554665467546854695470547154725473547454755476547754785479548054815482548354845485548654875488548954905491549254935494549554965497549854995500550155025503550455055506550755085509551055115512551355145515551655175518551955205521552255235524552555265527552855295530553155325533553455355536553755385539554055415542554355445545554655475548554955505551555255535554555555565557555855595560556155625563556455655566556755685569557055715572557355745575557655775578557955805581558255835584558555865587558855895590559155925593559455955596559755985599560056015602560356045605560656075608560956105611561256135614561556165617561856195620562156225623562456255626562756285629563056315632563356345635563656375638563956405641564256435644564556465647564856495650565156525653565456555656565756585659566056615662566356645665566656675668566956705671567256735674567556765677567856795680568156825683568456855686568756885689569056915692569356945695569656975698569957005701570257035704570557065707570857095710571157125713571457155716571757185719572057215722572357245725572657275728572957305731573257335734573557365737573857395740574157425743574457455746574757485749575057515752575357545755575657575758575957605761576257635764576557665767576857695770577157725773577457755776577757785779578057815782578357845785578657875788578957905791579257935794579557965797579857995800580158025803580458055806580758085809581058115812581358145815581658175818581958205821582258235824582558265827582858295830583158325833583458355836583758385839584058415842584358445845584658475848584958505851585258535854585558565857585858595860586158625863586458655866586758685869587058715872587358745875587658775878587958805881588258835884588558865887588858895890589158925893589458955896589758985899590059015902590359045905590659075908590959105911591259135914591559165917591859195920592159225923592459255926592759285929593059315932593359345935593659375938593959405941594259435944594559465947594859495950595159525953595459555956595759585959596059615962596359645965596659675968596959705971597259735974597559765977597859795980598159825983598459855986598759885989599059915992599359945995599659975998599960006001600260036004600560066007600860096010601160126013601460156016601760186019602060216022602360246025602660276028602960306031603260336034603560366037603860396040604160426043604460456046604760486049605060516052605360546055605660576058605960606061606260636064606560666067606860696070607160726073607460756076607760786079608060816082608360846085608660876088608960906091609260936094609560966097609860996100610161026103610461056106610761086109611061116112611361146115611661176118611961206121612261236124612561266127612861296130613161326133613461356136613761386139614061416142614361446145614661476148614961506151615261536154615561566157615861596160616161626163616461656166616761686169617061716172617361746175617661776178617961806181618261836184618561866187618861896190619161926193619461956196619761986199620062016202620362046205620662076208620962106211621262136214621562166217621862196220622162226223622462256226622762286229623062316232623362346235623662376238623962406241624262436244624562466247624862496250625162526253625462556256625762586259626062616262626362646265626662676268626962706271627262736274627562766277627862796280628162826283628462856286628762886289629062916292629362946295629662976298629963006301630263036304630563066307630863096310631163126313631463156316631763186319632063216322632363246325632663276328632963306331633263336334633563366337633863396340634163426343634463456346634763486349635063516352635363546355635663576358635963606361636263636364636563666367636863696370637163726373637463756376637763786379638063816382638363846385638663876388638963906391639263936394639563966397639863996400640164026403640464056406640764086409641064116412641364146415641664176418641964206421642264236424642564266427642864296430643164326433643464356436643764386439644064416442644364446445644664476448644964506451645264536454645564566457645864596460646164626463646464656466646764686469647064716472647364746475647664776478647964806481648264836484648564866487648864896490649164926493649464956496649764986499650065016502650365046505650665076508650965106511651265136514651565166517651865196520652165226523652465256526652765286529653065316532653365346535653665376538653965406541654265436544654565466547654865496550655165526553655465556556655765586559656065616562656365646565656665676568656965706571657265736574657565766577657865796580658165826583658465856586658765886589659065916592659365946595659665976598659966006601660266036604660566066607660866096610661166126613661466156616661766186619662066216622662366246625662666276628662966306631663266336634663566366637663866396640664166426643664466456646664766486649665066516652665366546655665666576658665966606661666266636664666566666667666866696670667166726673667466756676667766786679668066816682668366846685668666876688668966906691669266936694669566966697669866996700670167026703670467056706670767086709671067116712671367146715671667176718671967206721672267236724672567266727672867296730673167326733673467356736673767386739674067416742674367446745674667476748674967506751675267536754675567566757675867596760676167626763676467656766676767686769677067716772677367746775677667776778677967806781678267836784678567866787678867896790679167926793679467956796679767986799680068016802680368046805680668076808680968106811681268136814681568166817681868196820682168226823682468256826682768286829683068316832683368346835683668376838683968406841684268436844684568466847684868496850685168526853685468556856685768586859686068616862686368646865686668676868686968706871687268736874687568766877687868796880688168826883688468856886688768886889689068916892689368946895689668976898689969006901690269036904690569066907690869096910691169126913691469156916691769186919692069216922692369246925692669276928692969306931693269336934693569366937693869396940694169426943694469456946694769486949695069516952695369546955695669576958695969606961696269636964696569666967696869696970697169726973697469756976697769786979698069816982698369846985698669876988698969906991699269936994699569966997699869997000700170027003700470057006700770087009701070117012701370147015701670177018701970207021702270237024702570267027702870297030703170327033703470357036703770387039704070417042704370447045704670477048704970507051705270537054705570567057705870597060706170627063706470657066706770687069707070717072707370747075707670777078707970807081708270837084708570867087708870897090709170927093709470957096709770987099710071017102710371047105710671077108710971107111711271137114711571167117711871197120712171227123712471257126712771287129713071317132713371347135713671377138713971407141714271437144714571467147714871497150715171527153715471557156715771587159716071617162716371647165716671677168716971707171717271737174717571767177717871797180718171827183718471857186718771887189719071917192719371947195719671977198719972007201720272037204720572067207720872097210721172127213721472157216721772187219722072217222722372247225722672277228722972307231723272337234723572367237723872397240724172427243724472457246724772487249725072517252725372547255725672577258725972607261726272637264726572667267726872697270727172727273727472757276727772787279728072817282728372847285728672877288728972907291729272937294729572967297729872997300730173027303730473057306730773087309731073117312731373147315731673177318731973207321732273237324732573267327732873297330733173327333733473357336733773387339734073417342734373447345734673477348734973507351735273537354735573567357735873597360736173627363736473657366736773687369737073717372737373747375737673777378737973807381738273837384738573867387738873897390739173927393739473957396739773987399740074017402740374047405740674077408740974107411741274137414741574167417741874197420742174227423742474257426742774287429743074317432743374347435743674377438743974407441744274437444744574467447744874497450745174527453745474557456745774587459746074617462746374647465746674677468746974707471747274737474747574767477747874797480748174827483748474857486748774887489749074917492749374947495749674977498749975007501750275037504750575067507750875097510751175127513751475157516751775187519752075217522752375247525752675277528752975307531753275337534753575367537753875397540754175427543754475457546754775487549755075517552755375547555755675577558755975607561756275637564756575667567756875697570757175727573757475757576757775787579758075817582758375847585758675877588758975907591759275937594759575967597759875997600760176027603760476057606760776087609761076117612761376147615761676177618761976207621762276237624762576267627762876297630763176327633763476357636763776387639764076417642764376447645764676477648764976507651765276537654765576567657765876597660766176627663766476657666766776687669767076717672767376747675767676777678767976807681768276837684768576867687768876897690769176927693769476957696769776987699770077017702770377047705770677077708770977107711771277137714771577167717771877197720772177227723772477257726772777287729773077317732773377347735773677377738773977407741774277437744774577467747774877497750775177527753775477557756775777587759776077617762776377647765776677677768776977707771777277737774777577767777777877797780778177827783778477857786778777887789779077917792779377947795779677977798779978007801780278037804780578067807780878097810781178127813781478157816781778187819782078217822782378247825782678277828782978307831783278337834783578367837783878397840784178427843784478457846784778487849785078517852785378547855785678577858785978607861786278637864786578667867786878697870787178727873787478757876787778787879788078817882788378847885788678877888788978907891789278937894789578967897789878997900790179027903790479057906790779087909791079117912791379147915791679177918791979207921792279237924792579267927792879297930793179327933793479357936793779387939794079417942794379447945794679477948794979507951795279537954795579567957795879597960796179627963796479657966796779687969797079717972797379747975797679777978797979807981798279837984798579867987798879897990799179927993799479957996799779987999800080018002800380048005800680078008800980108011801280138014801580168017801880198020802180228023802480258026802780288029803080318032803380348035803680378038803980408041804280438044804580468047804880498050805180528053805480558056805780588059806080618062806380648065806680678068806980708071807280738074807580768077807880798080808180828083808480858086808780888089809080918092809380948095809680978098809981008101810281038104810581068107810881098110811181128113811481158116811781188119812081218122812381248125812681278128812981308131813281338134813581368137813881398140814181428143814481458146814781488149815081518152815381548155815681578158815981608161816281638164816581668167816881698170817181728173817481758176817781788179818081818182818381848185818681878188818981908191819281938194819581968197819881998200820182028203820482058206820782088209821082118212821382148215821682178218821982208221822282238224822582268227822882298230823182328233823482358236823782388239824082418242824382448245824682478248824982508251825282538254825582568257825882598260826182628263826482658266826782688269827082718272827382748275827682778278827982808281828282838284828582868287828882898290829182928293829482958296829782988299830083018302830383048305830683078308830983108311831283138314831583168317831883198320832183228323832483258326832783288329833083318332833383348335833683378338833983408341834283438344834583468347834883498350835183528353835483558356835783588359836083618362836383648365836683678368836983708371837283738374837583768377837883798380838183828383838483858386838783888389839083918392839383948395839683978398839984008401840284038404840584068407840884098410841184128413841484158416841784188419842084218422842384248425842684278428842984308431843284338434843584368437843884398440844184428443844484458446844784488449845084518452845384548455845684578458845984608461846284638464846584668467846884698470847184728473847484758476847784788479848084818482848384848485848684878488848984908491849284938494849584968497849884998500850185028503850485058506850785088509851085118512851385148515851685178518851985208521852285238524852585268527852885298530853185328533853485358536853785388539854085418542854385448545854685478548854985508551855285538554855585568557855885598560856185628563856485658566856785688569857085718572857385748575857685778578857985808581858285838584858585868587858885898590859185928593859485958596859785988599860086018602860386048605860686078608860986108611861286138614861586168617861886198620862186228623862486258626862786288629863086318632863386348635863686378638863986408641864286438644864586468647864886498650865186528653865486558656865786588659866086618662866386648665866686678668866986708671867286738674867586768677867886798680868186828683868486858686868786888689869086918692869386948695869686978698869987008701870287038704870587068707870887098710871187128713871487158716871787188719872087218722872387248725872687278728872987308731873287338734873587368737873887398740874187428743874487458746874787488749875087518752875387548755875687578758875987608761876287638764876587668767876887698770877187728773877487758776877787788779878087818782878387848785878687878788878987908791879287938794879587968797879887998800880188028803880488058806880788088809881088118812881388148815881688178818881988208821882288238824882588268827882888298830883188328833883488358836883788388839884088418842884388448845884688478848884988508851885288538854885588568857885888598860886188628863886488658866886788688869887088718872887388748875887688778878887988808881888288838884888588868887888888898890889188928893889488958896889788988899890089018902890389048905890689078908890989108911891289138914891589168917891889198920892189228923892489258926892789288929893089318932893389348935893689378938893989408941894289438944894589468947894889498950895189528953895489558956895789588959896089618962896389648965896689678968896989708971897289738974897589768977897889798980898189828983898489858986898789888989899089918992899389948995899689978998899990009001900290039004900590069007900890099010901190129013901490159016901790189019902090219022902390249025902690279028902990309031903290339034903590369037903890399040904190429043904490459046904790489049905090519052905390549055905690579058905990609061906290639064906590669067906890699070907190729073907490759076907790789079908090819082908390849085908690879088908990909091909290939094909590969097909890999100910191029103910491059106910791089109911091119112911391149115911691179118911991209121912291239124912591269127912891299130913191329133913491359136913791389139914091419142914391449145914691479148914991509151915291539154915591569157915891599160916191629163916491659166916791689169917091719172917391749175917691779178917991809181918291839184918591869187918891899190919191929193919491959196919791989199920092019202920392049205920692079208920992109211921292139214921592169217921892199220922192229223922492259226922792289229923092319232923392349235923692379238923992409241924292439244924592469247924892499250925192529253925492559256925792589259926092619262926392649265926692679268926992709271927292739274927592769277927892799280928192829283928492859286928792889289929092919292929392949295929692979298929993009301930293039304930593069307930893099310931193129313931493159316931793189319932093219322932393249325932693279328932993309331933293339334933593369337933893399340934193429343934493459346934793489349935093519352935393549355935693579358935993609361936293639364936593669367936893699370937193729373937493759376937793789379938093819382938393849385938693879388938993909391939293939394939593969397939893999400940194029403940494059406940794089409941094119412941394149415941694179418941994209421942294239424942594269427942894299430943194329433943494359436943794389439944094419442944394449445944694479448944994509451945294539454945594569457945894599460946194629463946494659466946794689469947094719472947394749475947694779478947994809481948294839484948594869487948894899490949194929493949494959496949794989499950095019502950395049505950695079508950995109511951295139514951595169517951895199520952195229523952495259526952795289529953095319532953395349535953695379538953995409541954295439544954595469547954895499550955195529553955495559556955795589559956095619562956395649565956695679568956995709571957295739574957595769577957895799580958195829583958495859586958795889589959095919592959395949595959695979598959996009601960296039604960596069607960896099610961196129613961496159616961796189619962096219622962396249625962696279628962996309631963296339634963596369637963896399640964196429643964496459646964796489649965096519652965396549655965696579658965996609661966296639664966596669667966896699670967196729673967496759676967796789679968096819682968396849685968696879688968996909691969296939694969596969697969896999700970197029703970497059706970797089709971097119712971397149715971697179718971997209721972297239724972597269727972897299730973197329733973497359736973797389739974097419742974397449745974697479748974997509751975297539754975597569757975897599760976197629763976497659766976797689769977097719772977397749775977697779778977997809781978297839784978597869787978897899790979197929793979497959796979797989799980098019802980398049805980698079808980998109811981298139814981598169817981898199820982198229823982498259826982798289829983098319832983398349835983698379838983998409841984298439844984598469847984898499850985198529853985498559856985798589859986098619862986398649865986698679868986998709871987298739874987598769877987898799880988198829883988498859886988798889889989098919892989398949895989698979898989999009901990299039904990599069907990899099910991199129913991499159916991799189919992099219922992399249925992699279928992999309931993299339934993599369937993899399940994199429943994499459946994799489949995099519952995399549955995699579958995999609961996299639964996599669967996899699970997199729973997499759976997799789979998099819982998399849985998699879988998999909991999299939994999599969997999899991000010001100021000310004100051000610007100081000910010100111001210013100141001510016100171001810019100201002110022100231002410025100261002710028100291003010031100321003310034100351003610037100381003910040100411004210043100441004510046100471004810049100501005110052100531005410055100561005710058100591006010061100621006310064100651006610067100681006910070100711007210073100741007510076100771007810079100801008110082100831008410085100861008710088100891009010091100921009310094100951009610097100981009910100101011010210103101041010510106101071010810109101101011110112101131011410115101161011710118101191012010121101221012310124101251012610127101281012910130101311013210133101341013510136101371013810139101401014110142101431014410145101461014710148101491015010151101521015310154101551015610157101581015910160101611016210163101641016510166101671016810169101701017110172101731017410175101761017710178101791018010181101821018310184101851018610187101881018910190101911019210193101941019510196101971019810199102001020110202102031020410205102061020710208102091021010211102121021310214102151021610217102181021910220102211022210223102241022510226102271022810229102301023110232102331023410235102361023710238102391024010241102421024310244102451024610247102481024910250102511025210253102541025510256102571025810259102601026110262102631026410265102661026710268102691027010271102721027310274102751027610277102781027910280102811028210283102841028510286102871028810289102901029110292102931029410295102961029710298102991030010301103021030310304103051030610307103081030910310103111031210313103141031510316103171031810319103201032110322103231032410325103261032710328103291033010331103321033310334103351033610337103381033910340103411034210343103441034510346103471034810349103501035110352103531035410355103561035710358103591036010361103621036310364103651036610367103681036910370103711037210373103741037510376103771037810379103801038110382103831038410385103861038710388103891039010391103921039310394103951039610397103981039910400104011040210403104041040510406104071040810409104101041110412104131041410415104161041710418104191042010421104221042310424104251042610427104281042910430104311043210433104341043510436104371043810439104401044110442104431044410445104461044710448104491045010451104521045310454104551045610457104581045910460104611046210463104641046510466104671046810469104701047110472104731047410475104761047710478104791048010481104821048310484104851048610487104881048910490104911049210493104941049510496104971049810499105001050110502105031050410505105061050710508105091051010511105121051310514105151051610517105181051910520105211052210523105241052510526105271052810529105301053110532105331053410535105361053710538105391054010541105421054310544105451054610547105481054910550105511055210553105541055510556105571055810559105601056110562105631056410565105661056710568105691057010571105721057310574105751057610577105781057910580105811058210583105841058510586105871058810589105901059110592105931059410595105961059710598105991060010601106021060310604106051060610607106081060910610106111061210613106141061510616106171061810619106201062110622106231062410625106261062710628106291063010631106321063310634106351063610637106381063910640106411064210643106441064510646106471064810649106501065110652106531065410655106561065710658106591066010661106621066310664106651066610667106681066910670106711067210673106741067510676106771067810679106801068110682106831068410685106861068710688106891069010691106921069310694106951069610697106981069910700107011070210703107041070510706107071070810709107101071110712107131071410715107161071710718107191072010721107221072310724107251072610727107281072910730107311073210733107341073510736107371073810739107401074110742107431074410745107461074710748107491075010751107521075310754107551075610757107581075910760107611076210763107641076510766107671076810769107701077110772107731077410775107761077710778107791078010781107821078310784107851078610787107881078910790107911079210793107941079510796107971079810799108001080110802108031080410805108061080710808108091081010811108121081310814108151081610817108181081910820108211082210823108241082510826108271082810829108301083110832108331083410835108361083710838108391084010841108421084310844108451084610847108481084910850108511085210853108541085510856108571085810859108601086110862108631086410865108661086710868108691087010871108721087310874108751087610877108781087910880108811088210883108841088510886108871088810889108901089110892108931089410895108961089710898108991090010901109021090310904109051090610907109081090910910109111091210913109141091510916109171091810919109201092110922109231092410925109261092710928109291093010931109321093310934109351093610937109381093910940109411094210943109441094510946109471094810949109501095110952109531095410955109561095710958109591096010961109621096310964109651096610967109681096910970109711097210973109741097510976109771097810979109801098110982109831098410985109861098710988109891099010991109921099310994109951099610997109981099911000110011100211003110041100511006110071100811009110101101111012110131101411015110161101711018110191102011021110221102311024110251102611027110281102911030110311103211033110341103511036110371103811039110401104111042110431104411045110461104711048110491105011051110521105311054110551105611057110581105911060110611106211063110641106511066110671106811069110701107111072110731107411075110761107711078110791108011081110821108311084110851108611087110881108911090110911109211093110941109511096110971109811099111001110111102111031110411105111061110711108111091111011111111121111311114111151111611117111181111911120111211112211123111241112511126111271112811129111301113111132111331113411135111361113711138111391114011141111421114311144111451114611147111481114911150111511115211153111541115511156111571115811159111601116111162111631116411165111661116711168111691117011171111721117311174111751117611177111781117911180111811118211183111841118511186111871118811189111901119111192111931119411195111961119711198111991120011201112021120311204112051120611207112081120911210112111121211213112141121511216112171121811219112201122111222112231122411225112261122711228112291123011231112321123311234112351123611237112381123911240112411124211243112441124511246112471124811249112501125111252112531125411255112561125711258112591126011261112621126311264112651126611267112681126911270112711127211273112741127511276112771127811279112801128111282112831128411285112861128711288112891129011291112921129311294112951129611297112981129911300113011130211303113041130511306113071130811309113101131111312113131131411315113161131711318113191132011321113221132311324113251132611327113281132911330113311133211333113341133511336113371133811339113401134111342113431134411345113461134711348113491135011351113521135311354113551135611357113581135911360113611136211363113641136511366113671136811369113701137111372113731137411375113761137711378113791138011381113821138311384113851138611387113881138911390113911139211393113941139511396113971139811399114001140111402114031140411405114061140711408114091141011411114121141311414114151141611417114181141911420114211142211423114241142511426114271142811429114301143111432114331143411435114361143711438114391144011441114421144311444114451144611447114481144911450114511145211453114541145511456114571145811459114601146111462114631146411465114661146711468114691147011471114721147311474114751147611477114781147911480114811148211483114841148511486114871148811489114901149111492114931149411495114961149711498114991150011501115021150311504115051150611507115081150911510115111151211513115141151511516115171151811519115201152111522115231152411525115261152711528115291153011531115321153311534115351153611537115381153911540115411154211543115441154511546115471154811549115501155111552115531155411555115561155711558115591156011561115621156311564115651156611567115681156911570115711157211573115741157511576115771157811579115801158111582115831158411585115861158711588115891159011591115921159311594115951159611597115981159911600116011160211603116041160511606116071160811609116101161111612116131161411615116161161711618116191162011621116221162311624116251162611627116281162911630116311163211633116341163511636116371163811639116401164111642116431164411645116461164711648116491165011651116521165311654116551165611657116581165911660116611166211663116641166511666116671166811669116701167111672116731167411675116761167711678116791168011681116821168311684116851168611687116881168911690116911169211693116941169511696116971169811699117001170111702117031170411705117061170711708117091171011711117121171311714117151171611717117181171911720117211172211723117241172511726117271172811729117301173111732117331173411735117361173711738117391174011741117421174311744117451174611747117481174911750117511175211753117541175511756117571175811759117601176111762117631176411765117661176711768117691177011771117721177311774117751177611777117781177911780117811178211783117841178511786117871178811789117901179111792117931179411795117961179711798117991180011801118021180311804118051180611807118081180911810118111181211813118141181511816118171181811819118201182111822118231182411825118261182711828118291183011831118321183311834118351183611837118381183911840118411184211843118441184511846118471184811849118501185111852118531185411855118561185711858118591186011861118621186311864118651186611867118681186911870118711187211873118741187511876118771187811879118801188111882118831188411885118861188711888118891189011891118921189311894118951189611897118981189911900119011190211903119041190511906119071190811909119101191111912119131191411915119161191711918119191192011921119221192311924119251192611927119281192911930119311193211933119341193511936119371193811939119401194111942119431194411945119461194711948119491195011951119521195311954119551195611957119581195911960119611196211963119641196511966119671196811969119701197111972119731197411975119761197711978119791198011981119821198311984119851198611987119881198911990119911199211993119941199511996119971199811999120001200112002120031200412005120061200712008120091201012011120121201312014120151201612017120181201912020120211202212023120241202512026120271202812029120301203112032120331203412035120361203712038120391204012041120421204312044120451204612047120481204912050120511205212053120541205512056120571205812059120601206112062120631206412065120661206712068120691207012071120721207312074120751207612077120781207912080120811208212083120841208512086120871208812089120901209112092120931209412095120961209712098120991210012101121021210312104121051210612107121081210912110121111211212113121141211512116121171211812119121201212112122121231212412125121261212712128121291213012131121321213312134121351213612137121381213912140121411214212143121441214512146121471214812149121501215112152121531215412155121561215712158121591216012161121621216312164121651216612167121681216912170121711217212173121741217512176121771217812179121801218112182121831218412185121861218712188121891219012191121921219312194121951219612197121981219912200122011220212203122041220512206122071220812209122101221112212122131221412215122161221712218122191222012221122221222312224122251222612227122281222912230122311223212233122341223512236122371223812239122401224112242122431224412245122461224712248122491225012251122521225312254122551225612257122581225912260122611226212263122641226512266122671226812269122701227112272122731227412275122761227712278122791228012281122821228312284122851228612287122881228912290122911229212293122941229512296122971229812299123001230112302123031230412305123061230712308123091231012311123121231312314123151231612317123181231912320123211232212323123241232512326123271232812329123301233112332123331233412335123361233712338123391234012341123421234312344123451234612347123481234912350123511235212353123541235512356123571235812359123601236112362123631236412365123661236712368123691237012371123721237312374123751237612377123781237912380123811238212383123841238512386123871238812389123901239112392123931239412395123961239712398123991240012401124021240312404124051240612407124081240912410124111241212413124141241512416124171241812419124201242112422124231242412425124261242712428124291243012431124321243312434124351243612437124381243912440124411244212443124441244512446124471244812449124501245112452124531245412455124561245712458124591246012461124621246312464124651246612467124681246912470124711247212473124741247512476124771247812479124801248112482124831248412485124861248712488124891249012491124921249312494124951249612497124981249912500125011250212503125041250512506125071250812509125101251112512125131251412515125161251712518125191252012521125221252312524125251252612527125281252912530125311253212533125341253512536125371253812539125401254112542125431254412545125461254712548125491255012551125521255312554125551255612557125581255912560125611256212563125641256512566125671256812569125701257112572125731257412575125761257712578125791258012581125821258312584125851258612587125881258912590125911259212593125941259512596125971259812599126001260112602126031260412605126061260712608126091261012611126121261312614126151261612617126181261912620126211262212623126241262512626126271262812629126301263112632126331263412635126361263712638126391264012641126421264312644126451264612647126481264912650126511265212653126541265512656126571265812659126601266112662126631266412665126661266712668126691267012671126721267312674126751267612677126781267912680126811268212683126841268512686126871268812689126901269112692126931269412695126961269712698126991270012701127021270312704127051270612707127081270912710127111271212713127141271512716127171271812719127201272112722127231272412725127261272712728127291273012731127321273312734127351273612737127381273912740127411274212743127441274512746127471274812749127501275112752127531275412755127561275712758127591276012761127621276312764127651276612767127681276912770127711277212773127741277512776127771277812779127801278112782127831278412785127861278712788127891279012791127921279312794127951279612797127981279912800128011280212803128041280512806128071280812809128101281112812128131281412815128161281712818128191282012821128221282312824128251282612827128281282912830128311283212833128341283512836128371283812839128401284112842128431284412845128461284712848128491285012851128521285312854128551285612857128581285912860128611286212863128641286512866128671286812869128701287112872128731287412875128761287712878128791288012881128821288312884128851288612887128881288912890128911289212893128941289512896128971289812899129001290112902129031290412905129061290712908129091291012911129121291312914129151291612917129181291912920129211292212923129241292512926129271292812929129301293112932129331293412935129361293712938129391294012941129421294312944129451294612947129481294912950129511295212953129541295512956129571295812959129601296112962129631296412965129661296712968129691297012971129721297312974129751297612977129781297912980129811298212983129841298512986129871298812989129901299112992129931299412995129961299712998129991300013001130021300313004130051300613007130081300913010130111301213013130141301513016130171301813019130201302113022130231302413025130261302713028130291303013031130321303313034130351303613037130381303913040130411304213043130441304513046130471304813049130501305113052130531305413055130561305713058130591306013061130621306313064130651306613067130681306913070130711307213073130741307513076130771307813079130801308113082130831308413085130861308713088130891309013091130921309313094130951309613097130981309913100131011310213103131041310513106131071310813109131101311113112131131311413115131161311713118131191312013121131221312313124131251312613127131281312913130131311313213133131341313513136131371313813139131401314113142131431314413145131461314713148131491315013151131521315313154131551315613157131581315913160131611316213163131641316513166131671316813169131701317113172131731317413175131761317713178131791318013181131821318313184131851318613187131881318913190131911319213193131941319513196131971319813199132001320113202132031320413205132061320713208132091321013211132121321313214132151321613217132181321913220132211322213223132241322513226132271322813229132301323113232132331323413235132361323713238132391324013241132421324313244132451324613247132481324913250132511325213253132541325513256132571325813259132601326113262132631326413265132661326713268132691327013271132721327313274132751327613277132781327913280132811328213283132841328513286132871328813289132901329113292132931329413295132961329713298132991330013301133021330313304133051330613307133081330913310133111331213313133141331513316133171331813319133201332113322133231332413325133261332713328133291333013331133321333313334133351333613337133381333913340133411334213343133441334513346133471334813349133501335113352133531335413355133561335713358133591336013361133621336313364133651336613367133681336913370133711337213373133741337513376133771337813379133801338113382133831338413385133861338713388133891339013391133921339313394133951339613397133981339913400134011340213403134041340513406134071340813409134101341113412134131341413415134161341713418134191342013421134221342313424134251342613427134281342913430134311343213433134341343513436134371343813439134401344113442134431344413445134461344713448134491345013451134521345313454134551345613457134581345913460134611346213463134641346513466134671346813469134701347113472134731347413475134761347713478134791348013481134821348313484134851348613487134881348913490134911349213493134941349513496134971349813499135001350113502135031350413505135061350713508135091351013511135121351313514135151351613517135181351913520135211352213523135241352513526135271352813529135301353113532135331353413535135361353713538135391354013541135421354313544135451354613547135481354913550135511355213553135541355513556135571355813559135601356113562135631356413565135661356713568135691357013571135721357313574135751357613577135781357913580135811358213583135841358513586135871358813589135901359113592135931359413595135961359713598135991360013601136021360313604136051360613607136081360913610136111361213613136141361513616136171361813619136201362113622136231362413625136261362713628136291363013631136321363313634136351363613637136381363913640136411364213643136441364513646136471364813649136501365113652136531365413655136561365713658136591366013661136621366313664136651366613667136681366913670136711367213673136741367513676136771367813679136801368113682136831368413685136861368713688136891369013691136921369313694136951369613697136981369913700137011370213703137041370513706137071370813709137101371113712137131371413715137161371713718137191372013721137221372313724137251372613727137281372913730137311373213733137341373513736137371373813739137401374113742137431374413745137461374713748137491375013751137521375313754137551375613757137581375913760137611376213763137641376513766137671376813769137701377113772137731377413775137761377713778137791378013781137821378313784137851378613787137881378913790137911379213793137941379513796137971379813799138001380113802138031380413805138061380713808138091381013811138121381313814138151381613817138181381913820138211382213823138241382513826138271382813829138301383113832138331383413835138361383713838138391384013841138421384313844138451384613847138481384913850138511385213853138541385513856138571385813859138601386113862138631386413865138661386713868138691387013871138721387313874138751387613877138781387913880138811388213883138841388513886138871388813889138901389113892138931389413895138961389713898138991390013901139021390313904139051390613907139081390913910139111391213913139141391513916139171391813919139201392113922139231392413925139261392713928139291393013931139321393313934139351393613937139381393913940139411394213943139441394513946139471394813949139501395113952139531395413955139561395713958139591396013961139621396313964139651396613967139681396913970139711397213973139741397513976139771397813979139801398113982139831398413985139861398713988139891399013991139921399313994139951399613997139981399914000140011400214003140041400514006140071400814009140101401114012140131401414015140161401714018140191402014021140221402314024140251402614027140281402914030140311403214033140341403514036140371403814039140401404114042140431404414045140461404714048140491405014051140521405314054140551405614057140581405914060140611406214063140641406514066140671406814069140701407114072140731407414075140761407714078140791408014081140821408314084140851408614087140881408914090140911409214093140941409514096140971409814099141001410114102141031410414105141061410714108141091411014111141121411314114141151411614117141181411914120141211412214123141241412514126141271412814129141301413114132141331413414135141361413714138141391414014141141421414314144141451414614147141481414914150141511415214153141541415514156141571415814159141601416114162141631416414165141661416714168141691417014171141721417314174141751417614177141781417914180141811418214183141841418514186141871418814189141901419114192141931419414195141961419714198141991420014201142021420314204142051420614207142081420914210142111421214213142141421514216142171421814219142201422114222142231422414225142261422714228142291423014231142321423314234142351423614237142381423914240142411424214243142441424514246142471424814249142501425114252142531425414255142561425714258142591426014261142621426314264142651426614267142681426914270142711427214273142741427514276142771427814279142801428114282142831428414285142861428714288142891429014291142921429314294142951429614297142981429914300143011430214303143041430514306143071430814309143101431114312143131431414315143161431714318143191432014321143221432314324143251432614327143281432914330143311433214333143341433514336143371433814339143401434114342143431434414345143461434714348143491435014351143521435314354143551435614357143581435914360143611436214363143641436514366143671436814369143701437114372143731437414375143761437714378143791438014381143821438314384143851438614387143881438914390143911439214393143941439514396143971439814399144001440114402144031440414405144061440714408144091441014411144121441314414144151441614417144181441914420144211442214423144241442514426144271442814429144301443114432144331443414435144361443714438144391444014441144421444314444144451444614447144481444914450144511445214453144541445514456144571445814459144601446114462144631446414465144661446714468144691447014471144721447314474144751447614477144781447914480144811448214483144841448514486144871448814489144901449114492144931449414495144961449714498144991450014501145021450314504145051450614507145081450914510145111451214513145141451514516145171451814519145201452114522145231452414525145261452714528145291453014531145321453314534145351453614537145381453914540145411454214543145441454514546145471454814549145501455114552145531455414555145561455714558145591456014561145621456314564145651456614567145681456914570145711457214573145741457514576145771457814579145801458114582145831458414585145861458714588145891459014591145921459314594145951459614597145981459914600146011460214603146041460514606146071460814609146101461114612146131461414615146161461714618146191462014621146221462314624146251462614627146281462914630146311463214633146341463514636146371463814639146401464114642146431464414645146461464714648146491465014651146521465314654146551465614657146581465914660146611466214663146641466514666146671466814669146701467114672146731467414675146761467714678146791468014681146821468314684146851468614687146881468914690146911469214693146941469514696146971469814699147001470114702147031470414705147061470714708147091471014711147121471314714147151471614717147181471914720147211472214723147241472514726147271472814729147301473114732147331473414735147361473714738147391474014741147421474314744147451474614747147481474914750147511475214753147541475514756147571475814759147601476114762
  1. #! /bin/sh
  2. # Guess values for system-dependent variables and create Makefiles.
  3. # Generated by GNU Autoconf 2.69 for jansson 2.6.
  4. #
  5. # Report bugs to <petri@digip.org>.
  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. ## M4sh Initialization. ##
  15. ## -------------------- ##
  16. # Be more Bourne compatible
  17. DUALCASE=1; export DUALCASE # for MKS sh
  18. if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
  19. emulate sh
  20. NULLCMD=:
  21. # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
  22. # is contrary to our usage. Disable this feature.
  23. alias -g '${1+"$@"}'='"$@"'
  24. setopt NO_GLOB_SUBST
  25. else
  26. case `(set -o) 2>/dev/null` in #(
  27. *posix*) :
  28. set -o posix ;; #(
  29. *) :
  30. ;;
  31. esac
  32. fi
  33. as_nl='
  34. '
  35. export as_nl
  36. # Printing a long string crashes Solaris 7 /usr/bin/printf.
  37. as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
  38. as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
  39. as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
  40. # Prefer a ksh shell builtin over an external printf program on Solaris,
  41. # but without wasting forks for bash or zsh.
  42. if test -z "$BASH_VERSION$ZSH_VERSION" \
  43. && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
  44. as_echo='print -r --'
  45. as_echo_n='print -rn --'
  46. elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
  47. as_echo='printf %s\n'
  48. as_echo_n='printf %s'
  49. else
  50. if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
  51. as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
  52. as_echo_n='/usr/ucb/echo -n'
  53. else
  54. as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
  55. as_echo_n_body='eval
  56. arg=$1;
  57. case $arg in #(
  58. *"$as_nl"*)
  59. expr "X$arg" : "X\\(.*\\)$as_nl";
  60. arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
  61. esac;
  62. expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
  63. '
  64. export as_echo_n_body
  65. as_echo_n='sh -c $as_echo_n_body as_echo'
  66. fi
  67. export as_echo_body
  68. as_echo='sh -c $as_echo_body as_echo'
  69. fi
  70. # The user is always right.
  71. if test "${PATH_SEPARATOR+set}" != set; then
  72. PATH_SEPARATOR=:
  73. (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
  74. (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
  75. PATH_SEPARATOR=';'
  76. }
  77. fi
  78. # IFS
  79. # We need space, tab and new line, in precisely that order. Quoting is
  80. # there to prevent editors from complaining about space-tab.
  81. # (If _AS_PATH_WALK were called with IFS unset, it would disable word
  82. # splitting by setting IFS to empty value.)
  83. IFS=" "" $as_nl"
  84. # Find who we are. Look in the path if we contain no directory separator.
  85. as_myself=
  86. case $0 in #((
  87. *[\\/]* ) as_myself=$0 ;;
  88. *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  89. for as_dir in $PATH
  90. do
  91. IFS=$as_save_IFS
  92. test -z "$as_dir" && as_dir=.
  93. test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
  94. done
  95. IFS=$as_save_IFS
  96. ;;
  97. esac
  98. # We did not find ourselves, most probably we were run as `sh COMMAND'
  99. # in which case we are not to be found in the path.
  100. if test "x$as_myself" = x; then
  101. as_myself=$0
  102. fi
  103. if test ! -f "$as_myself"; then
  104. $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
  105. exit 1
  106. fi
  107. # Unset variables that we do not need and which cause bugs (e.g. in
  108. # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
  109. # suppresses any "Segmentation fault" message there. '((' could
  110. # trigger a bug in pdksh 5.2.14.
  111. for as_var in BASH_ENV ENV MAIL MAILPATH
  112. do eval test x\${$as_var+set} = xset \
  113. && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
  114. done
  115. PS1='$ '
  116. PS2='> '
  117. PS4='+ '
  118. # NLS nuisances.
  119. LC_ALL=C
  120. export LC_ALL
  121. LANGUAGE=C
  122. export LANGUAGE
  123. # CDPATH.
  124. (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
  125. # Use a proper internal environment variable to ensure we don't fall
  126. # into an infinite loop, continuously re-executing ourselves.
  127. if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
  128. _as_can_reexec=no; export _as_can_reexec;
  129. # We cannot yet assume a decent shell, so we have to provide a
  130. # neutralization value for shells without unset; and this also
  131. # works around shells that cannot unset nonexistent variables.
  132. # Preserve -v and -x to the replacement shell.
  133. BASH_ENV=/dev/null
  134. ENV=/dev/null
  135. (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
  136. case $- in # ((((
  137. *v*x* | *x*v* ) as_opts=-vx ;;
  138. *v* ) as_opts=-v ;;
  139. *x* ) as_opts=-x ;;
  140. * ) as_opts= ;;
  141. esac
  142. exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
  143. # Admittedly, this is quite paranoid, since all the known shells bail
  144. # out after a failed `exec'.
  145. $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
  146. as_fn_exit 255
  147. fi
  148. # We don't want this to propagate to other subprocesses.
  149. { _as_can_reexec=; unset _as_can_reexec;}
  150. if test "x$CONFIG_SHELL" = x; then
  151. as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
  152. emulate sh
  153. NULLCMD=:
  154. # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
  155. # is contrary to our usage. Disable this feature.
  156. alias -g '\${1+\"\$@\"}'='\"\$@\"'
  157. setopt NO_GLOB_SUBST
  158. else
  159. case \`(set -o) 2>/dev/null\` in #(
  160. *posix*) :
  161. set -o posix ;; #(
  162. *) :
  163. ;;
  164. esac
  165. fi
  166. "
  167. as_required="as_fn_return () { (exit \$1); }
  168. as_fn_success () { as_fn_return 0; }
  169. as_fn_failure () { as_fn_return 1; }
  170. as_fn_ret_success () { return 0; }
  171. as_fn_ret_failure () { return 1; }
  172. exitcode=0
  173. as_fn_success || { exitcode=1; echo as_fn_success failed.; }
  174. as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
  175. as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
  176. as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
  177. if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
  178. else
  179. exitcode=1; echo positional parameters were not saved.
  180. fi
  181. test x\$exitcode = x0 || exit 1
  182. test -x / || exit 1"
  183. as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
  184. as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
  185. eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
  186. test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
  187. test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
  188. ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
  189. ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
  190. ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
  191. PATH=/empty FPATH=/empty; export PATH FPATH
  192. test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
  193. || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1
  194. test \$(( 1 + 1 )) = 2 || exit 1"
  195. if (eval "$as_required") 2>/dev/null; then :
  196. as_have_required=yes
  197. else
  198. as_have_required=no
  199. fi
  200. if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
  201. else
  202. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  203. as_found=false
  204. for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
  205. do
  206. IFS=$as_save_IFS
  207. test -z "$as_dir" && as_dir=.
  208. as_found=:
  209. case $as_dir in #(
  210. /*)
  211. for as_base in sh bash ksh sh5; do
  212. # Try only shells that exist, to save several forks.
  213. as_shell=$as_dir/$as_base
  214. if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
  215. { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
  216. CONFIG_SHELL=$as_shell as_have_required=yes
  217. if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
  218. break 2
  219. fi
  220. fi
  221. done;;
  222. esac
  223. as_found=false
  224. done
  225. $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
  226. { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
  227. CONFIG_SHELL=$SHELL as_have_required=yes
  228. fi; }
  229. IFS=$as_save_IFS
  230. if test "x$CONFIG_SHELL" != x; then :
  231. export CONFIG_SHELL
  232. # We cannot yet assume a decent shell, so we have to provide a
  233. # neutralization value for shells without unset; and this also
  234. # works around shells that cannot unset nonexistent variables.
  235. # Preserve -v and -x to the replacement shell.
  236. BASH_ENV=/dev/null
  237. ENV=/dev/null
  238. (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
  239. case $- in # ((((
  240. *v*x* | *x*v* ) as_opts=-vx ;;
  241. *v* ) as_opts=-v ;;
  242. *x* ) as_opts=-x ;;
  243. * ) as_opts= ;;
  244. esac
  245. exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
  246. # Admittedly, this is quite paranoid, since all the known shells bail
  247. # out after a failed `exec'.
  248. $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
  249. exit 255
  250. fi
  251. if test x$as_have_required = xno; then :
  252. $as_echo "$0: This script requires a shell more modern than all"
  253. $as_echo "$0: the shells that I found on your system."
  254. if test x${ZSH_VERSION+set} = xset ; then
  255. $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
  256. $as_echo "$0: be upgraded to zsh 4.3.4 or later."
  257. else
  258. $as_echo "$0: Please tell bug-autoconf@gnu.org and petri@digip.org
  259. $0: about your system, including any error possibly output
  260. $0: before this message. Then install a modern shell, or
  261. $0: manually run the script under such a shell if you do
  262. $0: have one."
  263. fi
  264. exit 1
  265. fi
  266. fi
  267. fi
  268. SHELL=${CONFIG_SHELL-/bin/sh}
  269. export SHELL
  270. # Unset more variables known to interfere with behavior of common tools.
  271. CLICOLOR_FORCE= GREP_OPTIONS=
  272. unset CLICOLOR_FORCE GREP_OPTIONS
  273. ## --------------------- ##
  274. ## M4sh Shell Functions. ##
  275. ## --------------------- ##
  276. # as_fn_unset VAR
  277. # ---------------
  278. # Portably unset VAR.
  279. as_fn_unset ()
  280. {
  281. { eval $1=; unset $1;}
  282. }
  283. as_unset=as_fn_unset
  284. # as_fn_set_status STATUS
  285. # -----------------------
  286. # Set $? to STATUS, without forking.
  287. as_fn_set_status ()
  288. {
  289. return $1
  290. } # as_fn_set_status
  291. # as_fn_exit STATUS
  292. # -----------------
  293. # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
  294. as_fn_exit ()
  295. {
  296. set +e
  297. as_fn_set_status $1
  298. exit $1
  299. } # as_fn_exit
  300. # as_fn_mkdir_p
  301. # -------------
  302. # Create "$as_dir" as a directory, including parents if necessary.
  303. as_fn_mkdir_p ()
  304. {
  305. case $as_dir in #(
  306. -*) as_dir=./$as_dir;;
  307. esac
  308. test -d "$as_dir" || eval $as_mkdir_p || {
  309. as_dirs=
  310. while :; do
  311. case $as_dir in #(
  312. *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
  313. *) as_qdir=$as_dir;;
  314. esac
  315. as_dirs="'$as_qdir' $as_dirs"
  316. as_dir=`$as_dirname -- "$as_dir" ||
  317. $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  318. X"$as_dir" : 'X\(//\)[^/]' \| \
  319. X"$as_dir" : 'X\(//\)$' \| \
  320. X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
  321. $as_echo X"$as_dir" |
  322. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  323. s//\1/
  324. q
  325. }
  326. /^X\(\/\/\)[^/].*/{
  327. s//\1/
  328. q
  329. }
  330. /^X\(\/\/\)$/{
  331. s//\1/
  332. q
  333. }
  334. /^X\(\/\).*/{
  335. s//\1/
  336. q
  337. }
  338. s/.*/./; q'`
  339. test -d "$as_dir" && break
  340. done
  341. test -z "$as_dirs" || eval "mkdir $as_dirs"
  342. } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
  343. } # as_fn_mkdir_p
  344. # as_fn_executable_p FILE
  345. # -----------------------
  346. # Test if FILE is an executable regular file.
  347. as_fn_executable_p ()
  348. {
  349. test -f "$1" && test -x "$1"
  350. } # as_fn_executable_p
  351. # as_fn_append VAR VALUE
  352. # ----------------------
  353. # Append the text in VALUE to the end of the definition contained in VAR. Take
  354. # advantage of any shell optimizations that allow amortized linear growth over
  355. # repeated appends, instead of the typical quadratic growth present in naive
  356. # implementations.
  357. if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
  358. eval 'as_fn_append ()
  359. {
  360. eval $1+=\$2
  361. }'
  362. else
  363. as_fn_append ()
  364. {
  365. eval $1=\$$1\$2
  366. }
  367. fi # as_fn_append
  368. # as_fn_arith ARG...
  369. # ------------------
  370. # Perform arithmetic evaluation on the ARGs, and store the result in the
  371. # global $as_val. Take advantage of shells that can avoid forks. The arguments
  372. # must be portable across $(()) and expr.
  373. if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
  374. eval 'as_fn_arith ()
  375. {
  376. as_val=$(( $* ))
  377. }'
  378. else
  379. as_fn_arith ()
  380. {
  381. as_val=`expr "$@" || test $? -eq 1`
  382. }
  383. fi # as_fn_arith
  384. # as_fn_error STATUS ERROR [LINENO LOG_FD]
  385. # ----------------------------------------
  386. # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
  387. # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
  388. # script with STATUS, using 1 if that was 0.
  389. as_fn_error ()
  390. {
  391. as_status=$1; test $as_status -eq 0 && as_status=1
  392. if test "$4"; then
  393. as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  394. $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
  395. fi
  396. $as_echo "$as_me: error: $2" >&2
  397. as_fn_exit $as_status
  398. } # as_fn_error
  399. if expr a : '\(a\)' >/dev/null 2>&1 &&
  400. test "X`expr 00001 : '.*\(...\)'`" = X001; then
  401. as_expr=expr
  402. else
  403. as_expr=false
  404. fi
  405. if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
  406. as_basename=basename
  407. else
  408. as_basename=false
  409. fi
  410. if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
  411. as_dirname=dirname
  412. else
  413. as_dirname=false
  414. fi
  415. as_me=`$as_basename -- "$0" ||
  416. $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
  417. X"$0" : 'X\(//\)$' \| \
  418. X"$0" : 'X\(/\)' \| . 2>/dev/null ||
  419. $as_echo X/"$0" |
  420. sed '/^.*\/\([^/][^/]*\)\/*$/{
  421. s//\1/
  422. q
  423. }
  424. /^X\/\(\/\/\)$/{
  425. s//\1/
  426. q
  427. }
  428. /^X\/\(\/\).*/{
  429. s//\1/
  430. q
  431. }
  432. s/.*/./; q'`
  433. # Avoid depending upon Character Ranges.
  434. as_cr_letters='abcdefghijklmnopqrstuvwxyz'
  435. as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
  436. as_cr_Letters=$as_cr_letters$as_cr_LETTERS
  437. as_cr_digits='0123456789'
  438. as_cr_alnum=$as_cr_Letters$as_cr_digits
  439. as_lineno_1=$LINENO as_lineno_1a=$LINENO
  440. as_lineno_2=$LINENO as_lineno_2a=$LINENO
  441. eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
  442. test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
  443. # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
  444. sed -n '
  445. p
  446. /[$]LINENO/=
  447. ' <$as_myself |
  448. sed '
  449. s/[$]LINENO.*/&-/
  450. t lineno
  451. b
  452. :lineno
  453. N
  454. :loop
  455. s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
  456. t loop
  457. s/-\n.*//
  458. ' >$as_me.lineno &&
  459. chmod +x "$as_me.lineno" ||
  460. { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
  461. # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
  462. # already done that, so ensure we don't try to do so again and fall
  463. # in an infinite loop. This has already happened in practice.
  464. _as_can_reexec=no; export _as_can_reexec
  465. # Don't try to exec as it changes $[0], causing all sort of problems
  466. # (the dirname of $[0] is not the place where we might find the
  467. # original and so on. Autoconf is especially sensitive to this).
  468. . "./$as_me.lineno"
  469. # Exit status is that of the last command.
  470. exit
  471. }
  472. ECHO_C= ECHO_N= ECHO_T=
  473. case `echo -n x` in #(((((
  474. -n*)
  475. case `echo 'xy\c'` in
  476. *c*) ECHO_T=' ';; # ECHO_T is single tab character.
  477. xy) ECHO_C='\c';;
  478. *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
  479. ECHO_T=' ';;
  480. esac;;
  481. *)
  482. ECHO_N='-n';;
  483. esac
  484. rm -f conf$$ conf$$.exe conf$$.file
  485. if test -d conf$$.dir; then
  486. rm -f conf$$.dir/conf$$.file
  487. else
  488. rm -f conf$$.dir
  489. mkdir conf$$.dir 2>/dev/null
  490. fi
  491. if (echo >conf$$.file) 2>/dev/null; then
  492. if ln -s conf$$.file conf$$ 2>/dev/null; then
  493. as_ln_s='ln -s'
  494. # ... but there are two gotchas:
  495. # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
  496. # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
  497. # In both cases, we have to default to `cp -pR'.
  498. ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
  499. as_ln_s='cp -pR'
  500. elif ln conf$$.file conf$$ 2>/dev/null; then
  501. as_ln_s=ln
  502. else
  503. as_ln_s='cp -pR'
  504. fi
  505. else
  506. as_ln_s='cp -pR'
  507. fi
  508. rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
  509. rmdir conf$$.dir 2>/dev/null
  510. if mkdir -p . 2>/dev/null; then
  511. as_mkdir_p='mkdir -p "$as_dir"'
  512. else
  513. test -d ./-p && rmdir ./-p
  514. as_mkdir_p=false
  515. fi
  516. as_test_x='test -x'
  517. as_executable_p=as_fn_executable_p
  518. # Sed expression to map a string onto a valid CPP name.
  519. as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
  520. # Sed expression to map a string onto a valid variable name.
  521. as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
  522. SHELL=${CONFIG_SHELL-/bin/sh}
  523. test -n "$DJDIR" || exec 7<&0 </dev/null
  524. exec 6>&1
  525. # Name of the host.
  526. # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
  527. # so uname gets run too.
  528. ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
  529. #
  530. # Initializations.
  531. #
  532. ac_default_prefix=/usr/local
  533. ac_clean_files=
  534. ac_config_libobj_dir=.
  535. LIBOBJS=
  536. cross_compiling=no
  537. subdirs=
  538. MFLAGS=
  539. MAKEFLAGS=
  540. # Identity of this package.
  541. PACKAGE_NAME='jansson'
  542. PACKAGE_TARNAME='jansson'
  543. PACKAGE_VERSION='2.6'
  544. PACKAGE_STRING='jansson 2.6'
  545. PACKAGE_BUGREPORT='petri@digip.org'
  546. PACKAGE_URL=''
  547. ac_unique_file="src/value.c"
  548. # Factoring default headers for most tests.
  549. ac_includes_default="\
  550. #include <stdio.h>
  551. #ifdef HAVE_SYS_TYPES_H
  552. # include <sys/types.h>
  553. #endif
  554. #ifdef HAVE_SYS_STAT_H
  555. # include <sys/stat.h>
  556. #endif
  557. #ifdef STDC_HEADERS
  558. # include <stdlib.h>
  559. # include <stddef.h>
  560. #else
  561. # ifdef HAVE_STDLIB_H
  562. # include <stdlib.h>
  563. # endif
  564. #endif
  565. #ifdef HAVE_STRING_H
  566. # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
  567. # include <memory.h>
  568. # endif
  569. # include <string.h>
  570. #endif
  571. #ifdef HAVE_STRINGS_H
  572. # include <strings.h>
  573. #endif
  574. #ifdef HAVE_INTTYPES_H
  575. # include <inttypes.h>
  576. #endif
  577. #ifdef HAVE_STDINT_H
  578. # include <stdint.h>
  579. #endif
  580. #ifdef HAVE_UNISTD_H
  581. # include <unistd.h>
  582. #endif"
  583. ac_subst_vars='am__EXEEXT_FALSE
  584. am__EXEEXT_TRUE
  585. LTLIBOBJS
  586. LIBOBJS
  587. json_have_localeconv
  588. json_have_long_long
  589. json_inline
  590. GCC_FALSE
  591. GCC_TRUE
  592. CPP
  593. LT_SYS_LIBRARY_PATH
  594. OTOOL64
  595. OTOOL
  596. LIPO
  597. NMEDIT
  598. DSYMUTIL
  599. MANIFEST_TOOL
  600. RANLIB
  601. ac_ct_AR
  602. AR
  603. DLLTOOL
  604. OBJDUMP
  605. LN_S
  606. NM
  607. ac_ct_DUMPBIN
  608. DUMPBIN
  609. LD
  610. FGREP
  611. EGREP
  612. GREP
  613. SED
  614. host_os
  615. host_vendor
  616. host_cpu
  617. host
  618. build_os
  619. build_vendor
  620. build_cpu
  621. build
  622. LIBTOOL
  623. am__fastdepCC_FALSE
  624. am__fastdepCC_TRUE
  625. CCDEPMODE
  626. am__nodep
  627. AMDEPBACKSLASH
  628. AMDEP_FALSE
  629. AMDEP_TRUE
  630. am__quote
  631. am__include
  632. DEPDIR
  633. OBJEXT
  634. EXEEXT
  635. ac_ct_CC
  636. CPPFLAGS
  637. LDFLAGS
  638. CFLAGS
  639. CC
  640. AM_BACKSLASH
  641. AM_DEFAULT_VERBOSITY
  642. AM_DEFAULT_V
  643. AM_V
  644. am__untar
  645. am__tar
  646. AMTAR
  647. am__leading_dot
  648. SET_MAKE
  649. AWK
  650. mkdir_p
  651. MKDIR_P
  652. INSTALL_STRIP_PROGRAM
  653. STRIP
  654. install_sh
  655. MAKEINFO
  656. AUTOHEADER
  657. AUTOMAKE
  658. AUTOCONF
  659. ACLOCAL
  660. VERSION
  661. PACKAGE
  662. CYGPATH_W
  663. am__isrc
  664. INSTALL_DATA
  665. INSTALL_SCRIPT
  666. INSTALL_PROGRAM
  667. target_alias
  668. host_alias
  669. build_alias
  670. LIBS
  671. ECHO_T
  672. ECHO_N
  673. ECHO_C
  674. DEFS
  675. mandir
  676. localedir
  677. libdir
  678. psdir
  679. pdfdir
  680. dvidir
  681. htmldir
  682. infodir
  683. docdir
  684. oldincludedir
  685. includedir
  686. runstatedir
  687. localstatedir
  688. sharedstatedir
  689. sysconfdir
  690. datadir
  691. datarootdir
  692. libexecdir
  693. sbindir
  694. bindir
  695. program_transform_name
  696. prefix
  697. exec_prefix
  698. PACKAGE_URL
  699. PACKAGE_BUGREPORT
  700. PACKAGE_STRING
  701. PACKAGE_VERSION
  702. PACKAGE_TARNAME
  703. PACKAGE_NAME
  704. PATH_SEPARATOR
  705. SHELL'
  706. ac_subst_files=''
  707. ac_user_opts='
  708. enable_option_checking
  709. enable_silent_rules
  710. enable_dependency_tracking
  711. enable_shared
  712. enable_static
  713. with_pic
  714. enable_fast_install
  715. with_aix_soname
  716. with_gnu_ld
  717. with_sysroot
  718. enable_libtool_lock
  719. enable_urandom
  720. enable_windows_cryptoapi
  721. '
  722. ac_precious_vars='build_alias
  723. host_alias
  724. target_alias
  725. CC
  726. CFLAGS
  727. LDFLAGS
  728. LIBS
  729. CPPFLAGS
  730. LT_SYS_LIBRARY_PATH
  731. CPP'
  732. # Initialize some variables set by options.
  733. ac_init_help=
  734. ac_init_version=false
  735. ac_unrecognized_opts=
  736. ac_unrecognized_sep=
  737. # The variables have the same names as the options, with
  738. # dashes changed to underlines.
  739. cache_file=/dev/null
  740. exec_prefix=NONE
  741. no_create=
  742. no_recursion=
  743. prefix=NONE
  744. program_prefix=NONE
  745. program_suffix=NONE
  746. program_transform_name=s,x,x,
  747. silent=
  748. site=
  749. srcdir=
  750. verbose=
  751. x_includes=NONE
  752. x_libraries=NONE
  753. # Installation directory options.
  754. # These are left unexpanded so users can "make install exec_prefix=/foo"
  755. # and all the variables that are supposed to be based on exec_prefix
  756. # by default will actually change.
  757. # Use braces instead of parens because sh, perl, etc. also accept them.
  758. # (The list follows the same order as the GNU Coding Standards.)
  759. bindir='${exec_prefix}/bin'
  760. sbindir='${exec_prefix}/sbin'
  761. libexecdir='${exec_prefix}/libexec'
  762. datarootdir='${prefix}/share'
  763. datadir='${datarootdir}'
  764. sysconfdir='${prefix}/etc'
  765. sharedstatedir='${prefix}/com'
  766. localstatedir='${prefix}/var'
  767. runstatedir='${localstatedir}/run'
  768. includedir='${prefix}/include'
  769. oldincludedir='/usr/include'
  770. docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
  771. infodir='${datarootdir}/info'
  772. htmldir='${docdir}'
  773. dvidir='${docdir}'
  774. pdfdir='${docdir}'
  775. psdir='${docdir}'
  776. libdir='${exec_prefix}/lib'
  777. localedir='${datarootdir}/locale'
  778. mandir='${datarootdir}/man'
  779. ac_prev=
  780. ac_dashdash=
  781. for ac_option
  782. do
  783. # If the previous option needs an argument, assign it.
  784. if test -n "$ac_prev"; then
  785. eval $ac_prev=\$ac_option
  786. ac_prev=
  787. continue
  788. fi
  789. case $ac_option in
  790. *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
  791. *=) ac_optarg= ;;
  792. *) ac_optarg=yes ;;
  793. esac
  794. # Accept the important Cygnus configure options, so we can diagnose typos.
  795. case $ac_dashdash$ac_option in
  796. --)
  797. ac_dashdash=yes ;;
  798. -bindir | --bindir | --bindi | --bind | --bin | --bi)
  799. ac_prev=bindir ;;
  800. -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
  801. bindir=$ac_optarg ;;
  802. -build | --build | --buil | --bui | --bu)
  803. ac_prev=build_alias ;;
  804. -build=* | --build=* | --buil=* | --bui=* | --bu=*)
  805. build_alias=$ac_optarg ;;
  806. -cache-file | --cache-file | --cache-fil | --cache-fi \
  807. | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
  808. ac_prev=cache_file ;;
  809. -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
  810. | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
  811. cache_file=$ac_optarg ;;
  812. --config-cache | -C)
  813. cache_file=config.cache ;;
  814. -datadir | --datadir | --datadi | --datad)
  815. ac_prev=datadir ;;
  816. -datadir=* | --datadir=* | --datadi=* | --datad=*)
  817. datadir=$ac_optarg ;;
  818. -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
  819. | --dataroo | --dataro | --datar)
  820. ac_prev=datarootdir ;;
  821. -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
  822. | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
  823. datarootdir=$ac_optarg ;;
  824. -disable-* | --disable-*)
  825. ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
  826. # Reject names that are not valid shell variable names.
  827. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  828. as_fn_error $? "invalid feature name: $ac_useropt"
  829. ac_useropt_orig=$ac_useropt
  830. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  831. case $ac_user_opts in
  832. *"
  833. "enable_$ac_useropt"
  834. "*) ;;
  835. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
  836. ac_unrecognized_sep=', ';;
  837. esac
  838. eval enable_$ac_useropt=no ;;
  839. -docdir | --docdir | --docdi | --doc | --do)
  840. ac_prev=docdir ;;
  841. -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
  842. docdir=$ac_optarg ;;
  843. -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
  844. ac_prev=dvidir ;;
  845. -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
  846. dvidir=$ac_optarg ;;
  847. -enable-* | --enable-*)
  848. ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
  849. # Reject names that are not valid shell variable names.
  850. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  851. as_fn_error $? "invalid feature name: $ac_useropt"
  852. ac_useropt_orig=$ac_useropt
  853. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  854. case $ac_user_opts in
  855. *"
  856. "enable_$ac_useropt"
  857. "*) ;;
  858. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
  859. ac_unrecognized_sep=', ';;
  860. esac
  861. eval enable_$ac_useropt=\$ac_optarg ;;
  862. -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
  863. | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
  864. | --exec | --exe | --ex)
  865. ac_prev=exec_prefix ;;
  866. -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
  867. | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
  868. | --exec=* | --exe=* | --ex=*)
  869. exec_prefix=$ac_optarg ;;
  870. -gas | --gas | --ga | --g)
  871. # Obsolete; use --with-gas.
  872. with_gas=yes ;;
  873. -help | --help | --hel | --he | -h)
  874. ac_init_help=long ;;
  875. -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
  876. ac_init_help=recursive ;;
  877. -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
  878. ac_init_help=short ;;
  879. -host | --host | --hos | --ho)
  880. ac_prev=host_alias ;;
  881. -host=* | --host=* | --hos=* | --ho=*)
  882. host_alias=$ac_optarg ;;
  883. -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
  884. ac_prev=htmldir ;;
  885. -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
  886. | --ht=*)
  887. htmldir=$ac_optarg ;;
  888. -includedir | --includedir | --includedi | --included | --include \
  889. | --includ | --inclu | --incl | --inc)
  890. ac_prev=includedir ;;
  891. -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
  892. | --includ=* | --inclu=* | --incl=* | --inc=*)
  893. includedir=$ac_optarg ;;
  894. -infodir | --infodir | --infodi | --infod | --info | --inf)
  895. ac_prev=infodir ;;
  896. -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
  897. infodir=$ac_optarg ;;
  898. -libdir | --libdir | --libdi | --libd)
  899. ac_prev=libdir ;;
  900. -libdir=* | --libdir=* | --libdi=* | --libd=*)
  901. libdir=$ac_optarg ;;
  902. -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
  903. | --libexe | --libex | --libe)
  904. ac_prev=libexecdir ;;
  905. -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
  906. | --libexe=* | --libex=* | --libe=*)
  907. libexecdir=$ac_optarg ;;
  908. -localedir | --localedir | --localedi | --localed | --locale)
  909. ac_prev=localedir ;;
  910. -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
  911. localedir=$ac_optarg ;;
  912. -localstatedir | --localstatedir | --localstatedi | --localstated \
  913. | --localstate | --localstat | --localsta | --localst | --locals)
  914. ac_prev=localstatedir ;;
  915. -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
  916. | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
  917. localstatedir=$ac_optarg ;;
  918. -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
  919. ac_prev=mandir ;;
  920. -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
  921. mandir=$ac_optarg ;;
  922. -nfp | --nfp | --nf)
  923. # Obsolete; use --without-fp.
  924. with_fp=no ;;
  925. -no-create | --no-create | --no-creat | --no-crea | --no-cre \
  926. | --no-cr | --no-c | -n)
  927. no_create=yes ;;
  928. -no-recursion | --no-recursion | --no-recursio | --no-recursi \
  929. | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
  930. no_recursion=yes ;;
  931. -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
  932. | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
  933. | --oldin | --oldi | --old | --ol | --o)
  934. ac_prev=oldincludedir ;;
  935. -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
  936. | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
  937. | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
  938. oldincludedir=$ac_optarg ;;
  939. -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
  940. ac_prev=prefix ;;
  941. -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
  942. prefix=$ac_optarg ;;
  943. -program-prefix | --program-prefix | --program-prefi | --program-pref \
  944. | --program-pre | --program-pr | --program-p)
  945. ac_prev=program_prefix ;;
  946. -program-prefix=* | --program-prefix=* | --program-prefi=* \
  947. | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
  948. program_prefix=$ac_optarg ;;
  949. -program-suffix | --program-suffix | --program-suffi | --program-suff \
  950. | --program-suf | --program-su | --program-s)
  951. ac_prev=program_suffix ;;
  952. -program-suffix=* | --program-suffix=* | --program-suffi=* \
  953. | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
  954. program_suffix=$ac_optarg ;;
  955. -program-transform-name | --program-transform-name \
  956. | --program-transform-nam | --program-transform-na \
  957. | --program-transform-n | --program-transform- \
  958. | --program-transform | --program-transfor \
  959. | --program-transfo | --program-transf \
  960. | --program-trans | --program-tran \
  961. | --progr-tra | --program-tr | --program-t)
  962. ac_prev=program_transform_name ;;
  963. -program-transform-name=* | --program-transform-name=* \
  964. | --program-transform-nam=* | --program-transform-na=* \
  965. | --program-transform-n=* | --program-transform-=* \
  966. | --program-transform=* | --program-transfor=* \
  967. | --program-transfo=* | --program-transf=* \
  968. | --program-trans=* | --program-tran=* \
  969. | --progr-tra=* | --program-tr=* | --program-t=*)
  970. program_transform_name=$ac_optarg ;;
  971. -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
  972. ac_prev=pdfdir ;;
  973. -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
  974. pdfdir=$ac_optarg ;;
  975. -psdir | --psdir | --psdi | --psd | --ps)
  976. ac_prev=psdir ;;
  977. -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
  978. psdir=$ac_optarg ;;
  979. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  980. | -silent | --silent | --silen | --sile | --sil)
  981. silent=yes ;;
  982. -runstatedir | --runstatedir | --runstatedi | --runstated \
  983. | --runstate | --runstat | --runsta | --runst | --runs \
  984. | --run | --ru | --r)
  985. ac_prev=runstatedir ;;
  986. -runstatedir=* | --runstatedir=* | --runstatedi=* | --runstated=* \
  987. | --runstate=* | --runstat=* | --runsta=* | --runst=* | --runs=* \
  988. | --run=* | --ru=* | --r=*)
  989. runstatedir=$ac_optarg ;;
  990. -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
  991. ac_prev=sbindir ;;
  992. -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
  993. | --sbi=* | --sb=*)
  994. sbindir=$ac_optarg ;;
  995. -sharedstatedir | --sharedstatedir | --sharedstatedi \
  996. | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
  997. | --sharedst | --shareds | --shared | --share | --shar \
  998. | --sha | --sh)
  999. ac_prev=sharedstatedir ;;
  1000. -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
  1001. | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
  1002. | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
  1003. | --sha=* | --sh=*)
  1004. sharedstatedir=$ac_optarg ;;
  1005. -site | --site | --sit)
  1006. ac_prev=site ;;
  1007. -site=* | --site=* | --sit=*)
  1008. site=$ac_optarg ;;
  1009. -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
  1010. ac_prev=srcdir ;;
  1011. -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
  1012. srcdir=$ac_optarg ;;
  1013. -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
  1014. | --syscon | --sysco | --sysc | --sys | --sy)
  1015. ac_prev=sysconfdir ;;
  1016. -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
  1017. | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
  1018. sysconfdir=$ac_optarg ;;
  1019. -target | --target | --targe | --targ | --tar | --ta | --t)
  1020. ac_prev=target_alias ;;
  1021. -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
  1022. target_alias=$ac_optarg ;;
  1023. -v | -verbose | --verbose | --verbos | --verbo | --verb)
  1024. verbose=yes ;;
  1025. -version | --version | --versio | --versi | --vers | -V)
  1026. ac_init_version=: ;;
  1027. -with-* | --with-*)
  1028. ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
  1029. # Reject names that are not valid shell variable names.
  1030. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  1031. as_fn_error $? "invalid package name: $ac_useropt"
  1032. ac_useropt_orig=$ac_useropt
  1033. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  1034. case $ac_user_opts in
  1035. *"
  1036. "with_$ac_useropt"
  1037. "*) ;;
  1038. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
  1039. ac_unrecognized_sep=', ';;
  1040. esac
  1041. eval with_$ac_useropt=\$ac_optarg ;;
  1042. -without-* | --without-*)
  1043. ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
  1044. # Reject names that are not valid shell variable names.
  1045. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  1046. as_fn_error $? "invalid package name: $ac_useropt"
  1047. ac_useropt_orig=$ac_useropt
  1048. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  1049. case $ac_user_opts in
  1050. *"
  1051. "with_$ac_useropt"
  1052. "*) ;;
  1053. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
  1054. ac_unrecognized_sep=', ';;
  1055. esac
  1056. eval with_$ac_useropt=no ;;
  1057. --x)
  1058. # Obsolete; use --with-x.
  1059. with_x=yes ;;
  1060. -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
  1061. | --x-incl | --x-inc | --x-in | --x-i)
  1062. ac_prev=x_includes ;;
  1063. -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
  1064. | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
  1065. x_includes=$ac_optarg ;;
  1066. -x-libraries | --x-libraries | --x-librarie | --x-librari \
  1067. | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
  1068. ac_prev=x_libraries ;;
  1069. -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
  1070. | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
  1071. x_libraries=$ac_optarg ;;
  1072. -*) as_fn_error $? "unrecognized option: \`$ac_option'
  1073. Try \`$0 --help' for more information"
  1074. ;;
  1075. *=*)
  1076. ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
  1077. # Reject names that are not valid shell variable names.
  1078. case $ac_envvar in #(
  1079. '' | [0-9]* | *[!_$as_cr_alnum]* )
  1080. as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
  1081. esac
  1082. eval $ac_envvar=\$ac_optarg
  1083. export $ac_envvar ;;
  1084. *)
  1085. # FIXME: should be removed in autoconf 3.0.
  1086. $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
  1087. expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
  1088. $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
  1089. : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
  1090. ;;
  1091. esac
  1092. done
  1093. if test -n "$ac_prev"; then
  1094. ac_option=--`echo $ac_prev | sed 's/_/-/g'`
  1095. as_fn_error $? "missing argument to $ac_option"
  1096. fi
  1097. if test -n "$ac_unrecognized_opts"; then
  1098. case $enable_option_checking in
  1099. no) ;;
  1100. fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
  1101. *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
  1102. esac
  1103. fi
  1104. # Check all directory arguments for consistency.
  1105. for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
  1106. datadir sysconfdir sharedstatedir localstatedir includedir \
  1107. oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
  1108. libdir localedir mandir runstatedir
  1109. do
  1110. eval ac_val=\$$ac_var
  1111. # Remove trailing slashes.
  1112. case $ac_val in
  1113. */ )
  1114. ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
  1115. eval $ac_var=\$ac_val;;
  1116. esac
  1117. # Be sure to have absolute directory names.
  1118. case $ac_val in
  1119. [\\/$]* | ?:[\\/]* ) continue;;
  1120. NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
  1121. esac
  1122. as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
  1123. done
  1124. # There might be people who depend on the old broken behavior: `$host'
  1125. # used to hold the argument of --host etc.
  1126. # FIXME: To remove some day.
  1127. build=$build_alias
  1128. host=$host_alias
  1129. target=$target_alias
  1130. # FIXME: To remove some day.
  1131. if test "x$host_alias" != x; then
  1132. if test "x$build_alias" = x; then
  1133. cross_compiling=maybe
  1134. elif test "x$build_alias" != "x$host_alias"; then
  1135. cross_compiling=yes
  1136. fi
  1137. fi
  1138. ac_tool_prefix=
  1139. test -n "$host_alias" && ac_tool_prefix=$host_alias-
  1140. test "$silent" = yes && exec 6>/dev/null
  1141. ac_pwd=`pwd` && test -n "$ac_pwd" &&
  1142. ac_ls_di=`ls -di .` &&
  1143. ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
  1144. as_fn_error $? "working directory cannot be determined"
  1145. test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
  1146. as_fn_error $? "pwd does not report name of working directory"
  1147. # Find the source files, if location was not specified.
  1148. if test -z "$srcdir"; then
  1149. ac_srcdir_defaulted=yes
  1150. # Try the directory containing this script, then the parent directory.
  1151. ac_confdir=`$as_dirname -- "$as_myself" ||
  1152. $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  1153. X"$as_myself" : 'X\(//\)[^/]' \| \
  1154. X"$as_myself" : 'X\(//\)$' \| \
  1155. X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
  1156. $as_echo X"$as_myself" |
  1157. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  1158. s//\1/
  1159. q
  1160. }
  1161. /^X\(\/\/\)[^/].*/{
  1162. s//\1/
  1163. q
  1164. }
  1165. /^X\(\/\/\)$/{
  1166. s//\1/
  1167. q
  1168. }
  1169. /^X\(\/\).*/{
  1170. s//\1/
  1171. q
  1172. }
  1173. s/.*/./; q'`
  1174. srcdir=$ac_confdir
  1175. if test ! -r "$srcdir/$ac_unique_file"; then
  1176. srcdir=..
  1177. fi
  1178. else
  1179. ac_srcdir_defaulted=no
  1180. fi
  1181. if test ! -r "$srcdir/$ac_unique_file"; then
  1182. test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
  1183. as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
  1184. fi
  1185. ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
  1186. ac_abs_confdir=`(
  1187. cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
  1188. pwd)`
  1189. # When building in place, set srcdir=.
  1190. if test "$ac_abs_confdir" = "$ac_pwd"; then
  1191. srcdir=.
  1192. fi
  1193. # Remove unnecessary trailing slashes from srcdir.
  1194. # Double slashes in file names in object file debugging info
  1195. # mess up M-x gdb in Emacs.
  1196. case $srcdir in
  1197. */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
  1198. esac
  1199. for ac_var in $ac_precious_vars; do
  1200. eval ac_env_${ac_var}_set=\${${ac_var}+set}
  1201. eval ac_env_${ac_var}_value=\$${ac_var}
  1202. eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
  1203. eval ac_cv_env_${ac_var}_value=\$${ac_var}
  1204. done
  1205. #
  1206. # Report the --help message.
  1207. #
  1208. if test "$ac_init_help" = "long"; then
  1209. # Omit some internal or obsolete options to make the list less imposing.
  1210. # This message is too long to be a string in the A/UX 3.1 sh.
  1211. cat <<_ACEOF
  1212. \`configure' configures jansson 2.6 to adapt to many kinds of systems.
  1213. Usage: $0 [OPTION]... [VAR=VALUE]...
  1214. To assign environment variables (e.g., CC, CFLAGS...), specify them as
  1215. VAR=VALUE. See below for descriptions of some of the useful variables.
  1216. Defaults for the options are specified in brackets.
  1217. Configuration:
  1218. -h, --help display this help and exit
  1219. --help=short display options specific to this package
  1220. --help=recursive display the short help of all the included packages
  1221. -V, --version display version information and exit
  1222. -q, --quiet, --silent do not print \`checking ...' messages
  1223. --cache-file=FILE cache test results in FILE [disabled]
  1224. -C, --config-cache alias for \`--cache-file=config.cache'
  1225. -n, --no-create do not create output files
  1226. --srcdir=DIR find the sources in DIR [configure dir or \`..']
  1227. Installation directories:
  1228. --prefix=PREFIX install architecture-independent files in PREFIX
  1229. [$ac_default_prefix]
  1230. --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
  1231. [PREFIX]
  1232. By default, \`make install' will install all the files in
  1233. \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
  1234. an installation prefix other than \`$ac_default_prefix' using \`--prefix',
  1235. for instance \`--prefix=\$HOME'.
  1236. For better control, use the options below.
  1237. Fine tuning of the installation directories:
  1238. --bindir=DIR user executables [EPREFIX/bin]
  1239. --sbindir=DIR system admin executables [EPREFIX/sbin]
  1240. --libexecdir=DIR program executables [EPREFIX/libexec]
  1241. --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
  1242. --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
  1243. --localstatedir=DIR modifiable single-machine data [PREFIX/var]
  1244. --runstatedir=DIR modifiable per-process data [LOCALSTATEDIR/run]
  1245. --libdir=DIR object code libraries [EPREFIX/lib]
  1246. --includedir=DIR C header files [PREFIX/include]
  1247. --oldincludedir=DIR C header files for non-gcc [/usr/include]
  1248. --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
  1249. --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
  1250. --infodir=DIR info documentation [DATAROOTDIR/info]
  1251. --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
  1252. --mandir=DIR man documentation [DATAROOTDIR/man]
  1253. --docdir=DIR documentation root [DATAROOTDIR/doc/jansson]
  1254. --htmldir=DIR html documentation [DOCDIR]
  1255. --dvidir=DIR dvi documentation [DOCDIR]
  1256. --pdfdir=DIR pdf documentation [DOCDIR]
  1257. --psdir=DIR ps documentation [DOCDIR]
  1258. _ACEOF
  1259. cat <<\_ACEOF
  1260. Program names:
  1261. --program-prefix=PREFIX prepend PREFIX to installed program names
  1262. --program-suffix=SUFFIX append SUFFIX to installed program names
  1263. --program-transform-name=PROGRAM run sed PROGRAM on installed program names
  1264. System types:
  1265. --build=BUILD configure for building on BUILD [guessed]
  1266. --host=HOST cross-compile to build programs to run on HOST [BUILD]
  1267. _ACEOF
  1268. fi
  1269. if test -n "$ac_init_help"; then
  1270. case $ac_init_help in
  1271. short | recursive ) echo "Configuration of jansson 2.6:";;
  1272. esac
  1273. cat <<\_ACEOF
  1274. Optional Features:
  1275. --disable-option-checking ignore unrecognized --enable/--with options
  1276. --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
  1277. --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
  1278. --enable-silent-rules less verbose build output (undo: "make V=1")
  1279. --disable-silent-rules verbose build output (undo: "make V=0")
  1280. --enable-dependency-tracking
  1281. do not reject slow dependency extractors
  1282. --disable-dependency-tracking
  1283. speeds up one-time build
  1284. --enable-shared[=PKGS] build shared libraries [default=yes]
  1285. --enable-static[=PKGS] build static libraries [default=yes]
  1286. --enable-fast-install[=PKGS]
  1287. optimize for fast installation [default=yes]
  1288. --disable-libtool-lock avoid locking (might break parallel builds)
  1289. --disable-urandom Don't use /dev/urandom to seed the hash function
  1290. --disable-windows-cryptoapi
  1291. Don't use CryptGenRandom to seed the hash function
  1292. Optional Packages:
  1293. --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
  1294. --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
  1295. --with-pic[=PKGS] try to use only PIC/non-PIC objects [default=use
  1296. both]
  1297. --with-aix-soname=aix|svr4|both
  1298. shared library versioning (aka "SONAME") variant to
  1299. provide on AIX, [default=aix].
  1300. --with-gnu-ld assume the C compiler uses GNU ld [default=no]
  1301. --with-sysroot[=DIR] Search for dependent libraries within DIR (or the
  1302. compiler's sysroot if not specified).
  1303. Some influential environment variables:
  1304. CC C compiler command
  1305. CFLAGS C compiler flags
  1306. LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
  1307. nonstandard directory <lib dir>
  1308. LIBS libraries to pass to the linker, e.g. -l<library>
  1309. CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
  1310. you have headers in a nonstandard directory <include dir>
  1311. LT_SYS_LIBRARY_PATH
  1312. User-defined run-time library search path.
  1313. CPP C preprocessor
  1314. Use these variables to override the choices made by `configure' or to help
  1315. it to find libraries and programs with nonstandard names/locations.
  1316. Report bugs to <petri@digip.org>.
  1317. _ACEOF
  1318. ac_status=$?
  1319. fi
  1320. if test "$ac_init_help" = "recursive"; then
  1321. # If there are subdirs, report their specific --help.
  1322. for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
  1323. test -d "$ac_dir" ||
  1324. { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
  1325. continue
  1326. ac_builddir=.
  1327. case "$ac_dir" in
  1328. .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
  1329. *)
  1330. ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
  1331. # A ".." for each directory in $ac_dir_suffix.
  1332. ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
  1333. case $ac_top_builddir_sub in
  1334. "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
  1335. *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
  1336. esac ;;
  1337. esac
  1338. ac_abs_top_builddir=$ac_pwd
  1339. ac_abs_builddir=$ac_pwd$ac_dir_suffix
  1340. # for backward compatibility:
  1341. ac_top_builddir=$ac_top_build_prefix
  1342. case $srcdir in
  1343. .) # We are building in place.
  1344. ac_srcdir=.
  1345. ac_top_srcdir=$ac_top_builddir_sub
  1346. ac_abs_top_srcdir=$ac_pwd ;;
  1347. [\\/]* | ?:[\\/]* ) # Absolute name.
  1348. ac_srcdir=$srcdir$ac_dir_suffix;
  1349. ac_top_srcdir=$srcdir
  1350. ac_abs_top_srcdir=$srcdir ;;
  1351. *) # Relative name.
  1352. ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
  1353. ac_top_srcdir=$ac_top_build_prefix$srcdir
  1354. ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
  1355. esac
  1356. ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
  1357. cd "$ac_dir" || { ac_status=$?; continue; }
  1358. # Check for guested configure.
  1359. if test -f "$ac_srcdir/configure.gnu"; then
  1360. echo &&
  1361. $SHELL "$ac_srcdir/configure.gnu" --help=recursive
  1362. elif test -f "$ac_srcdir/configure"; then
  1363. echo &&
  1364. $SHELL "$ac_srcdir/configure" --help=recursive
  1365. else
  1366. $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
  1367. fi || ac_status=$?
  1368. cd "$ac_pwd" || { ac_status=$?; break; }
  1369. done
  1370. fi
  1371. test -n "$ac_init_help" && exit $ac_status
  1372. if $ac_init_version; then
  1373. cat <<\_ACEOF
  1374. jansson configure 2.6
  1375. generated by GNU Autoconf 2.69
  1376. Copyright (C) 2012 Free Software Foundation, Inc.
  1377. This configure script is free software; the Free Software Foundation
  1378. gives unlimited permission to copy, distribute and modify it.
  1379. _ACEOF
  1380. exit
  1381. fi
  1382. ## ------------------------ ##
  1383. ## Autoconf initialization. ##
  1384. ## ------------------------ ##
  1385. # ac_fn_c_try_compile LINENO
  1386. # --------------------------
  1387. # Try to compile conftest.$ac_ext, and return whether this succeeded.
  1388. ac_fn_c_try_compile ()
  1389. {
  1390. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1391. rm -f conftest.$ac_objext
  1392. if { { ac_try="$ac_compile"
  1393. case "(($ac_try" in
  1394. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1395. *) ac_try_echo=$ac_try;;
  1396. esac
  1397. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1398. $as_echo "$ac_try_echo"; } >&5
  1399. (eval "$ac_compile") 2>conftest.err
  1400. ac_status=$?
  1401. if test -s conftest.err; then
  1402. grep -v '^ *+' conftest.err >conftest.er1
  1403. cat conftest.er1 >&5
  1404. mv -f conftest.er1 conftest.err
  1405. fi
  1406. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1407. test $ac_status = 0; } && {
  1408. test -z "$ac_c_werror_flag" ||
  1409. test ! -s conftest.err
  1410. } && test -s conftest.$ac_objext; then :
  1411. ac_retval=0
  1412. else
  1413. $as_echo "$as_me: failed program was:" >&5
  1414. sed 's/^/| /' conftest.$ac_ext >&5
  1415. ac_retval=1
  1416. fi
  1417. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1418. as_fn_set_status $ac_retval
  1419. } # ac_fn_c_try_compile
  1420. # ac_fn_c_try_link LINENO
  1421. # -----------------------
  1422. # Try to link conftest.$ac_ext, and return whether this succeeded.
  1423. ac_fn_c_try_link ()
  1424. {
  1425. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1426. rm -f conftest.$ac_objext conftest$ac_exeext
  1427. if { { ac_try="$ac_link"
  1428. case "(($ac_try" in
  1429. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1430. *) ac_try_echo=$ac_try;;
  1431. esac
  1432. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1433. $as_echo "$ac_try_echo"; } >&5
  1434. (eval "$ac_link") 2>conftest.err
  1435. ac_status=$?
  1436. if test -s conftest.err; then
  1437. grep -v '^ *+' conftest.err >conftest.er1
  1438. cat conftest.er1 >&5
  1439. mv -f conftest.er1 conftest.err
  1440. fi
  1441. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1442. test $ac_status = 0; } && {
  1443. test -z "$ac_c_werror_flag" ||
  1444. test ! -s conftest.err
  1445. } && test -s conftest$ac_exeext && {
  1446. test "$cross_compiling" = yes ||
  1447. test -x conftest$ac_exeext
  1448. }; then :
  1449. ac_retval=0
  1450. else
  1451. $as_echo "$as_me: failed program was:" >&5
  1452. sed 's/^/| /' conftest.$ac_ext >&5
  1453. ac_retval=1
  1454. fi
  1455. # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
  1456. # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
  1457. # interfere with the next link command; also delete a directory that is
  1458. # left behind by Apple's compiler. We do this before executing the actions.
  1459. rm -rf conftest.dSYM conftest_ipa8_conftest.oo
  1460. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1461. as_fn_set_status $ac_retval
  1462. } # ac_fn_c_try_link
  1463. # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
  1464. # -------------------------------------------------------
  1465. # Tests whether HEADER exists and can be compiled using the include files in
  1466. # INCLUDES, setting the cache variable VAR accordingly.
  1467. ac_fn_c_check_header_compile ()
  1468. {
  1469. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1470. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  1471. $as_echo_n "checking for $2... " >&6; }
  1472. if eval \${$3+:} false; then :
  1473. $as_echo_n "(cached) " >&6
  1474. else
  1475. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1476. /* end confdefs.h. */
  1477. $4
  1478. #include <$2>
  1479. _ACEOF
  1480. if ac_fn_c_try_compile "$LINENO"; then :
  1481. eval "$3=yes"
  1482. else
  1483. eval "$3=no"
  1484. fi
  1485. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  1486. fi
  1487. eval ac_res=\$$3
  1488. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1489. $as_echo "$ac_res" >&6; }
  1490. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1491. } # ac_fn_c_check_header_compile
  1492. # ac_fn_c_try_cpp LINENO
  1493. # ----------------------
  1494. # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
  1495. ac_fn_c_try_cpp ()
  1496. {
  1497. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1498. if { { ac_try="$ac_cpp conftest.$ac_ext"
  1499. case "(($ac_try" in
  1500. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1501. *) ac_try_echo=$ac_try;;
  1502. esac
  1503. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1504. $as_echo "$ac_try_echo"; } >&5
  1505. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
  1506. ac_status=$?
  1507. if test -s conftest.err; then
  1508. grep -v '^ *+' conftest.err >conftest.er1
  1509. cat conftest.er1 >&5
  1510. mv -f conftest.er1 conftest.err
  1511. fi
  1512. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1513. test $ac_status = 0; } > conftest.i && {
  1514. test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
  1515. test ! -s conftest.err
  1516. }; then :
  1517. ac_retval=0
  1518. else
  1519. $as_echo "$as_me: failed program was:" >&5
  1520. sed 's/^/| /' conftest.$ac_ext >&5
  1521. ac_retval=1
  1522. fi
  1523. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1524. as_fn_set_status $ac_retval
  1525. } # ac_fn_c_try_cpp
  1526. # ac_fn_c_try_run LINENO
  1527. # ----------------------
  1528. # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
  1529. # that executables *can* be run.
  1530. ac_fn_c_try_run ()
  1531. {
  1532. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1533. if { { ac_try="$ac_link"
  1534. case "(($ac_try" in
  1535. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1536. *) ac_try_echo=$ac_try;;
  1537. esac
  1538. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1539. $as_echo "$ac_try_echo"; } >&5
  1540. (eval "$ac_link") 2>&5
  1541. ac_status=$?
  1542. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1543. test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
  1544. { { case "(($ac_try" in
  1545. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1546. *) ac_try_echo=$ac_try;;
  1547. esac
  1548. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1549. $as_echo "$ac_try_echo"; } >&5
  1550. (eval "$ac_try") 2>&5
  1551. ac_status=$?
  1552. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1553. test $ac_status = 0; }; }; then :
  1554. ac_retval=0
  1555. else
  1556. $as_echo "$as_me: program exited with status $ac_status" >&5
  1557. $as_echo "$as_me: failed program was:" >&5
  1558. sed 's/^/| /' conftest.$ac_ext >&5
  1559. ac_retval=$ac_status
  1560. fi
  1561. rm -rf conftest.dSYM conftest_ipa8_conftest.oo
  1562. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1563. as_fn_set_status $ac_retval
  1564. } # ac_fn_c_try_run
  1565. # ac_fn_c_check_func LINENO FUNC VAR
  1566. # ----------------------------------
  1567. # Tests whether FUNC exists, setting the cache variable VAR accordingly
  1568. ac_fn_c_check_func ()
  1569. {
  1570. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1571. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  1572. $as_echo_n "checking for $2... " >&6; }
  1573. if eval \${$3+:} false; then :
  1574. $as_echo_n "(cached) " >&6
  1575. else
  1576. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1577. /* end confdefs.h. */
  1578. /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
  1579. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  1580. #define $2 innocuous_$2
  1581. /* System header to define __stub macros and hopefully few prototypes,
  1582. which can conflict with char $2 (); below.
  1583. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  1584. <limits.h> exists even on freestanding compilers. */
  1585. #ifdef __STDC__
  1586. # include <limits.h>
  1587. #else
  1588. # include <assert.h>
  1589. #endif
  1590. #undef $2
  1591. /* Override any GCC internal prototype to avoid an error.
  1592. Use char because int might match the return type of a GCC
  1593. builtin and then its argument prototype would still apply. */
  1594. #ifdef __cplusplus
  1595. extern "C"
  1596. #endif
  1597. char $2 ();
  1598. /* The GNU C library defines this for functions which it implements
  1599. to always fail with ENOSYS. Some functions are actually named
  1600. something starting with __ and the normal name is an alias. */
  1601. #if defined __stub_$2 || defined __stub___$2
  1602. choke me
  1603. #endif
  1604. int
  1605. main ()
  1606. {
  1607. return $2 ();
  1608. ;
  1609. return 0;
  1610. }
  1611. _ACEOF
  1612. if ac_fn_c_try_link "$LINENO"; then :
  1613. eval "$3=yes"
  1614. else
  1615. eval "$3=no"
  1616. fi
  1617. rm -f core conftest.err conftest.$ac_objext \
  1618. conftest$ac_exeext conftest.$ac_ext
  1619. fi
  1620. eval ac_res=\$$3
  1621. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1622. $as_echo "$ac_res" >&6; }
  1623. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1624. } # ac_fn_c_check_func
  1625. # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
  1626. # -------------------------------------------------------
  1627. # Tests whether HEADER exists, giving a warning if it cannot be compiled using
  1628. # the include files in INCLUDES and setting the cache variable VAR
  1629. # accordingly.
  1630. ac_fn_c_check_header_mongrel ()
  1631. {
  1632. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1633. if eval \${$3+:} false; then :
  1634. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  1635. $as_echo_n "checking for $2... " >&6; }
  1636. if eval \${$3+:} false; then :
  1637. $as_echo_n "(cached) " >&6
  1638. fi
  1639. eval ac_res=\$$3
  1640. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1641. $as_echo "$ac_res" >&6; }
  1642. else
  1643. # Is the header compilable?
  1644. { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
  1645. $as_echo_n "checking $2 usability... " >&6; }
  1646. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1647. /* end confdefs.h. */
  1648. $4
  1649. #include <$2>
  1650. _ACEOF
  1651. if ac_fn_c_try_compile "$LINENO"; then :
  1652. ac_header_compiler=yes
  1653. else
  1654. ac_header_compiler=no
  1655. fi
  1656. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  1657. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
  1658. $as_echo "$ac_header_compiler" >&6; }
  1659. # Is the header present?
  1660. { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
  1661. $as_echo_n "checking $2 presence... " >&6; }
  1662. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1663. /* end confdefs.h. */
  1664. #include <$2>
  1665. _ACEOF
  1666. if ac_fn_c_try_cpp "$LINENO"; then :
  1667. ac_header_preproc=yes
  1668. else
  1669. ac_header_preproc=no
  1670. fi
  1671. rm -f conftest.err conftest.i conftest.$ac_ext
  1672. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
  1673. $as_echo "$ac_header_preproc" >&6; }
  1674. # So? What about this header?
  1675. case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
  1676. yes:no: )
  1677. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
  1678. $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
  1679. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
  1680. $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
  1681. ;;
  1682. no:yes:* )
  1683. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
  1684. $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
  1685. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
  1686. $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
  1687. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
  1688. $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
  1689. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
  1690. $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
  1691. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
  1692. $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
  1693. ( $as_echo "## ------------------------------ ##
  1694. ## Report this to petri@digip.org ##
  1695. ## ------------------------------ ##"
  1696. ) | sed "s/^/$as_me: WARNING: /" >&2
  1697. ;;
  1698. esac
  1699. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  1700. $as_echo_n "checking for $2... " >&6; }
  1701. if eval \${$3+:} false; then :
  1702. $as_echo_n "(cached) " >&6
  1703. else
  1704. eval "$3=\$ac_header_compiler"
  1705. fi
  1706. eval ac_res=\$$3
  1707. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1708. $as_echo "$ac_res" >&6; }
  1709. fi
  1710. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1711. } # ac_fn_c_check_header_mongrel
  1712. # ac_fn_c_find_intX_t LINENO BITS VAR
  1713. # -----------------------------------
  1714. # Finds a signed integer type with width BITS, setting cache variable VAR
  1715. # accordingly.
  1716. ac_fn_c_find_intX_t ()
  1717. {
  1718. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1719. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for int$2_t" >&5
  1720. $as_echo_n "checking for int$2_t... " >&6; }
  1721. if eval \${$3+:} false; then :
  1722. $as_echo_n "(cached) " >&6
  1723. else
  1724. eval "$3=no"
  1725. # Order is important - never check a type that is potentially smaller
  1726. # than half of the expected target width.
  1727. for ac_type in int$2_t 'int' 'long int' \
  1728. 'long long int' 'short int' 'signed char'; do
  1729. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1730. /* end confdefs.h. */
  1731. $ac_includes_default
  1732. enum { N = $2 / 2 - 1 };
  1733. int
  1734. main ()
  1735. {
  1736. static int test_array [1 - 2 * !(0 < ($ac_type) ((((($ac_type) 1 << N) << N) - 1) * 2 + 1))];
  1737. test_array [0] = 0;
  1738. return test_array [0];
  1739. ;
  1740. return 0;
  1741. }
  1742. _ACEOF
  1743. if ac_fn_c_try_compile "$LINENO"; then :
  1744. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1745. /* end confdefs.h. */
  1746. $ac_includes_default
  1747. enum { N = $2 / 2 - 1 };
  1748. int
  1749. main ()
  1750. {
  1751. static int test_array [1 - 2 * !(($ac_type) ((((($ac_type) 1 << N) << N) - 1) * 2 + 1)
  1752. < ($ac_type) ((((($ac_type) 1 << N) << N) - 1) * 2 + 2))];
  1753. test_array [0] = 0;
  1754. return test_array [0];
  1755. ;
  1756. return 0;
  1757. }
  1758. _ACEOF
  1759. if ac_fn_c_try_compile "$LINENO"; then :
  1760. else
  1761. case $ac_type in #(
  1762. int$2_t) :
  1763. eval "$3=yes" ;; #(
  1764. *) :
  1765. eval "$3=\$ac_type" ;;
  1766. esac
  1767. fi
  1768. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  1769. fi
  1770. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  1771. if eval test \"x\$"$3"\" = x"no"; then :
  1772. else
  1773. break
  1774. fi
  1775. done
  1776. fi
  1777. eval ac_res=\$$3
  1778. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1779. $as_echo "$ac_res" >&6; }
  1780. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1781. } # ac_fn_c_find_intX_t
  1782. # ac_fn_c_find_uintX_t LINENO BITS VAR
  1783. # ------------------------------------
  1784. # Finds an unsigned integer type with width BITS, setting cache variable VAR
  1785. # accordingly.
  1786. ac_fn_c_find_uintX_t ()
  1787. {
  1788. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1789. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uint$2_t" >&5
  1790. $as_echo_n "checking for uint$2_t... " >&6; }
  1791. if eval \${$3+:} false; then :
  1792. $as_echo_n "(cached) " >&6
  1793. else
  1794. eval "$3=no"
  1795. # Order is important - never check a type that is potentially smaller
  1796. # than half of the expected target width.
  1797. for ac_type in uint$2_t 'unsigned int' 'unsigned long int' \
  1798. 'unsigned long long int' 'unsigned short int' 'unsigned char'; do
  1799. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1800. /* end confdefs.h. */
  1801. $ac_includes_default
  1802. int
  1803. main ()
  1804. {
  1805. static int test_array [1 - 2 * !((($ac_type) -1 >> ($2 / 2 - 1)) >> ($2 / 2 - 1) == 3)];
  1806. test_array [0] = 0;
  1807. return test_array [0];
  1808. ;
  1809. return 0;
  1810. }
  1811. _ACEOF
  1812. if ac_fn_c_try_compile "$LINENO"; then :
  1813. case $ac_type in #(
  1814. uint$2_t) :
  1815. eval "$3=yes" ;; #(
  1816. *) :
  1817. eval "$3=\$ac_type" ;;
  1818. esac
  1819. fi
  1820. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  1821. if eval test \"x\$"$3"\" = x"no"; then :
  1822. else
  1823. break
  1824. fi
  1825. done
  1826. fi
  1827. eval ac_res=\$$3
  1828. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1829. $as_echo "$ac_res" >&6; }
  1830. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1831. } # ac_fn_c_find_uintX_t
  1832. cat >config.log <<_ACEOF
  1833. This file contains any messages produced by compilers while
  1834. running configure, to aid debugging if configure makes a mistake.
  1835. It was created by jansson $as_me 2.6, which was
  1836. generated by GNU Autoconf 2.69. Invocation command line was
  1837. $ $0 $@
  1838. _ACEOF
  1839. exec 5>>config.log
  1840. {
  1841. cat <<_ASUNAME
  1842. ## --------- ##
  1843. ## Platform. ##
  1844. ## --------- ##
  1845. hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
  1846. uname -m = `(uname -m) 2>/dev/null || echo unknown`
  1847. uname -r = `(uname -r) 2>/dev/null || echo unknown`
  1848. uname -s = `(uname -s) 2>/dev/null || echo unknown`
  1849. uname -v = `(uname -v) 2>/dev/null || echo unknown`
  1850. /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
  1851. /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
  1852. /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
  1853. /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
  1854. /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
  1855. /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
  1856. /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
  1857. /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
  1858. /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
  1859. _ASUNAME
  1860. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  1861. for as_dir in $PATH
  1862. do
  1863. IFS=$as_save_IFS
  1864. test -z "$as_dir" && as_dir=.
  1865. $as_echo "PATH: $as_dir"
  1866. done
  1867. IFS=$as_save_IFS
  1868. } >&5
  1869. cat >&5 <<_ACEOF
  1870. ## ----------- ##
  1871. ## Core tests. ##
  1872. ## ----------- ##
  1873. _ACEOF
  1874. # Keep a trace of the command line.
  1875. # Strip out --no-create and --no-recursion so they do not pile up.
  1876. # Strip out --silent because we don't want to record it for future runs.
  1877. # Also quote any args containing shell meta-characters.
  1878. # Make two passes to allow for proper duplicate-argument suppression.
  1879. ac_configure_args=
  1880. ac_configure_args0=
  1881. ac_configure_args1=
  1882. ac_must_keep_next=false
  1883. for ac_pass in 1 2
  1884. do
  1885. for ac_arg
  1886. do
  1887. case $ac_arg in
  1888. -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
  1889. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  1890. | -silent | --silent | --silen | --sile | --sil)
  1891. continue ;;
  1892. *\'*)
  1893. ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
  1894. esac
  1895. case $ac_pass in
  1896. 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
  1897. 2)
  1898. as_fn_append ac_configure_args1 " '$ac_arg'"
  1899. if test $ac_must_keep_next = true; then
  1900. ac_must_keep_next=false # Got value, back to normal.
  1901. else
  1902. case $ac_arg in
  1903. *=* | --config-cache | -C | -disable-* | --disable-* \
  1904. | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
  1905. | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
  1906. | -with-* | --with-* | -without-* | --without-* | --x)
  1907. case "$ac_configure_args0 " in
  1908. "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
  1909. esac
  1910. ;;
  1911. -* ) ac_must_keep_next=true ;;
  1912. esac
  1913. fi
  1914. as_fn_append ac_configure_args " '$ac_arg'"
  1915. ;;
  1916. esac
  1917. done
  1918. done
  1919. { ac_configure_args0=; unset ac_configure_args0;}
  1920. { ac_configure_args1=; unset ac_configure_args1;}
  1921. # When interrupted or exit'd, cleanup temporary files, and complete
  1922. # config.log. We remove comments because anyway the quotes in there
  1923. # would cause problems or look ugly.
  1924. # WARNING: Use '\'' to represent an apostrophe within the trap.
  1925. # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
  1926. trap 'exit_status=$?
  1927. # Save into config.log some information that might help in debugging.
  1928. {
  1929. echo
  1930. $as_echo "## ---------------- ##
  1931. ## Cache variables. ##
  1932. ## ---------------- ##"
  1933. echo
  1934. # The following way of writing the cache mishandles newlines in values,
  1935. (
  1936. for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
  1937. eval ac_val=\$$ac_var
  1938. case $ac_val in #(
  1939. *${as_nl}*)
  1940. case $ac_var in #(
  1941. *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
  1942. $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
  1943. esac
  1944. case $ac_var in #(
  1945. _ | IFS | as_nl) ;; #(
  1946. BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
  1947. *) { eval $ac_var=; unset $ac_var;} ;;
  1948. esac ;;
  1949. esac
  1950. done
  1951. (set) 2>&1 |
  1952. case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
  1953. *${as_nl}ac_space=\ *)
  1954. sed -n \
  1955. "s/'\''/'\''\\\\'\'''\''/g;
  1956. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
  1957. ;; #(
  1958. *)
  1959. sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
  1960. ;;
  1961. esac |
  1962. sort
  1963. )
  1964. echo
  1965. $as_echo "## ----------------- ##
  1966. ## Output variables. ##
  1967. ## ----------------- ##"
  1968. echo
  1969. for ac_var in $ac_subst_vars
  1970. do
  1971. eval ac_val=\$$ac_var
  1972. case $ac_val in
  1973. *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
  1974. esac
  1975. $as_echo "$ac_var='\''$ac_val'\''"
  1976. done | sort
  1977. echo
  1978. if test -n "$ac_subst_files"; then
  1979. $as_echo "## ------------------- ##
  1980. ## File substitutions. ##
  1981. ## ------------------- ##"
  1982. echo
  1983. for ac_var in $ac_subst_files
  1984. do
  1985. eval ac_val=\$$ac_var
  1986. case $ac_val in
  1987. *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
  1988. esac
  1989. $as_echo "$ac_var='\''$ac_val'\''"
  1990. done | sort
  1991. echo
  1992. fi
  1993. if test -s confdefs.h; then
  1994. $as_echo "## ----------- ##
  1995. ## confdefs.h. ##
  1996. ## ----------- ##"
  1997. echo
  1998. cat confdefs.h
  1999. echo
  2000. fi
  2001. test "$ac_signal" != 0 &&
  2002. $as_echo "$as_me: caught signal $ac_signal"
  2003. $as_echo "$as_me: exit $exit_status"
  2004. } >&5
  2005. rm -f core *.core core.conftest.* &&
  2006. rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
  2007. exit $exit_status
  2008. ' 0
  2009. for ac_signal in 1 2 13 15; do
  2010. trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
  2011. done
  2012. ac_signal=0
  2013. # confdefs.h avoids OS command line length limits that DEFS can exceed.
  2014. rm -f -r conftest* confdefs.h
  2015. $as_echo "/* confdefs.h */" > confdefs.h
  2016. # Predefined preprocessor variables.
  2017. cat >>confdefs.h <<_ACEOF
  2018. #define PACKAGE_NAME "$PACKAGE_NAME"
  2019. _ACEOF
  2020. cat >>confdefs.h <<_ACEOF
  2021. #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
  2022. _ACEOF
  2023. cat >>confdefs.h <<_ACEOF
  2024. #define PACKAGE_VERSION "$PACKAGE_VERSION"
  2025. _ACEOF
  2026. cat >>confdefs.h <<_ACEOF
  2027. #define PACKAGE_STRING "$PACKAGE_STRING"
  2028. _ACEOF
  2029. cat >>confdefs.h <<_ACEOF
  2030. #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
  2031. _ACEOF
  2032. cat >>confdefs.h <<_ACEOF
  2033. #define PACKAGE_URL "$PACKAGE_URL"
  2034. _ACEOF
  2035. # Let the site file select an alternate cache file if it wants to.
  2036. # Prefer an explicitly selected file to automatically selected ones.
  2037. ac_site_file1=NONE
  2038. ac_site_file2=NONE
  2039. if test -n "$CONFIG_SITE"; then
  2040. # We do not want a PATH search for config.site.
  2041. case $CONFIG_SITE in #((
  2042. -*) ac_site_file1=./$CONFIG_SITE;;
  2043. */*) ac_site_file1=$CONFIG_SITE;;
  2044. *) ac_site_file1=./$CONFIG_SITE;;
  2045. esac
  2046. elif test "x$prefix" != xNONE; then
  2047. ac_site_file1=$prefix/share/config.site
  2048. ac_site_file2=$prefix/etc/config.site
  2049. else
  2050. ac_site_file1=$ac_default_prefix/share/config.site
  2051. ac_site_file2=$ac_default_prefix/etc/config.site
  2052. fi
  2053. for ac_site_file in "$ac_site_file1" "$ac_site_file2"
  2054. do
  2055. test "x$ac_site_file" = xNONE && continue
  2056. if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
  2057. { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
  2058. $as_echo "$as_me: loading site script $ac_site_file" >&6;}
  2059. sed 's/^/| /' "$ac_site_file" >&5
  2060. . "$ac_site_file" \
  2061. || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  2062. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  2063. as_fn_error $? "failed to load site script $ac_site_file
  2064. See \`config.log' for more details" "$LINENO" 5; }
  2065. fi
  2066. done
  2067. if test -r "$cache_file"; then
  2068. # Some versions of bash will fail to source /dev/null (special files
  2069. # actually), so we avoid doing that. DJGPP emulates it as a regular file.
  2070. if test /dev/null != "$cache_file" && test -f "$cache_file"; then
  2071. { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
  2072. $as_echo "$as_me: loading cache $cache_file" >&6;}
  2073. case $cache_file in
  2074. [\\/]* | ?:[\\/]* ) . "$cache_file";;
  2075. *) . "./$cache_file";;
  2076. esac
  2077. fi
  2078. else
  2079. { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
  2080. $as_echo "$as_me: creating cache $cache_file" >&6;}
  2081. >$cache_file
  2082. fi
  2083. # Check that the precious variables saved in the cache have kept the same
  2084. # value.
  2085. ac_cache_corrupted=false
  2086. for ac_var in $ac_precious_vars; do
  2087. eval ac_old_set=\$ac_cv_env_${ac_var}_set
  2088. eval ac_new_set=\$ac_env_${ac_var}_set
  2089. eval ac_old_val=\$ac_cv_env_${ac_var}_value
  2090. eval ac_new_val=\$ac_env_${ac_var}_value
  2091. case $ac_old_set,$ac_new_set in
  2092. set,)
  2093. { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
  2094. $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
  2095. ac_cache_corrupted=: ;;
  2096. ,set)
  2097. { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
  2098. $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
  2099. ac_cache_corrupted=: ;;
  2100. ,);;
  2101. *)
  2102. if test "x$ac_old_val" != "x$ac_new_val"; then
  2103. # differences in whitespace do not lead to failure.
  2104. ac_old_val_w=`echo x $ac_old_val`
  2105. ac_new_val_w=`echo x $ac_new_val`
  2106. if test "$ac_old_val_w" != "$ac_new_val_w"; then
  2107. { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
  2108. $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
  2109. ac_cache_corrupted=:
  2110. else
  2111. { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
  2112. $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
  2113. eval $ac_var=\$ac_old_val
  2114. fi
  2115. { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
  2116. $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
  2117. { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
  2118. $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
  2119. fi;;
  2120. esac
  2121. # Pass precious variables to config.status.
  2122. if test "$ac_new_set" = set; then
  2123. case $ac_new_val in
  2124. *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
  2125. *) ac_arg=$ac_var=$ac_new_val ;;
  2126. esac
  2127. case " $ac_configure_args " in
  2128. *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
  2129. *) as_fn_append ac_configure_args " '$ac_arg'" ;;
  2130. esac
  2131. fi
  2132. done
  2133. if $ac_cache_corrupted; then
  2134. { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  2135. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  2136. { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
  2137. $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
  2138. as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
  2139. fi
  2140. ## -------------------- ##
  2141. ## Main body of script. ##
  2142. ## -------------------- ##
  2143. ac_ext=c
  2144. ac_cpp='$CPP $CPPFLAGS'
  2145. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  2146. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  2147. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  2148. am__api_version='1.15'
  2149. ac_aux_dir=
  2150. for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
  2151. if test -f "$ac_dir/install-sh"; then
  2152. ac_aux_dir=$ac_dir
  2153. ac_install_sh="$ac_aux_dir/install-sh -c"
  2154. break
  2155. elif test -f "$ac_dir/install.sh"; then
  2156. ac_aux_dir=$ac_dir
  2157. ac_install_sh="$ac_aux_dir/install.sh -c"
  2158. break
  2159. elif test -f "$ac_dir/shtool"; then
  2160. ac_aux_dir=$ac_dir
  2161. ac_install_sh="$ac_aux_dir/shtool install -c"
  2162. break
  2163. fi
  2164. done
  2165. if test -z "$ac_aux_dir"; then
  2166. as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
  2167. fi
  2168. # These three variables are undocumented and unsupported,
  2169. # and are intended to be withdrawn in a future Autoconf release.
  2170. # They can cause serious problems if a builder's source tree is in a directory
  2171. # whose full name contains unusual characters.
  2172. ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
  2173. ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
  2174. ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
  2175. # Find a good install program. We prefer a C program (faster),
  2176. # so one script is as good as another. But avoid the broken or
  2177. # incompatible versions:
  2178. # SysV /etc/install, /usr/sbin/install
  2179. # SunOS /usr/etc/install
  2180. # IRIX /sbin/install
  2181. # AIX /bin/install
  2182. # AmigaOS /C/install, which installs bootblocks on floppy discs
  2183. # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
  2184. # AFS /usr/afsws/bin/install, which mishandles nonexistent args
  2185. # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
  2186. # OS/2's system install, which has a completely different semantic
  2187. # ./install, which can be erroneously created by make from ./install.sh.
  2188. # Reject install programs that cannot install multiple files.
  2189. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
  2190. $as_echo_n "checking for a BSD-compatible install... " >&6; }
  2191. if test -z "$INSTALL"; then
  2192. if ${ac_cv_path_install+:} false; then :
  2193. $as_echo_n "(cached) " >&6
  2194. else
  2195. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2196. for as_dir in $PATH
  2197. do
  2198. IFS=$as_save_IFS
  2199. test -z "$as_dir" && as_dir=.
  2200. # Account for people who put trailing slashes in PATH elements.
  2201. case $as_dir/ in #((
  2202. ./ | .// | /[cC]/* | \
  2203. /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
  2204. ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
  2205. /usr/ucb/* ) ;;
  2206. *)
  2207. # OSF1 and SCO ODT 3.0 have their own names for install.
  2208. # Don't use installbsd from OSF since it installs stuff as root
  2209. # by default.
  2210. for ac_prog in ginstall scoinst install; do
  2211. for ac_exec_ext in '' $ac_executable_extensions; do
  2212. if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
  2213. if test $ac_prog = install &&
  2214. grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
  2215. # AIX install. It has an incompatible calling convention.
  2216. :
  2217. elif test $ac_prog = install &&
  2218. grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
  2219. # program-specific install script used by HP pwplus--don't use.
  2220. :
  2221. else
  2222. rm -rf conftest.one conftest.two conftest.dir
  2223. echo one > conftest.one
  2224. echo two > conftest.two
  2225. mkdir conftest.dir
  2226. if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
  2227. test -s conftest.one && test -s conftest.two &&
  2228. test -s conftest.dir/conftest.one &&
  2229. test -s conftest.dir/conftest.two
  2230. then
  2231. ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
  2232. break 3
  2233. fi
  2234. fi
  2235. fi
  2236. done
  2237. done
  2238. ;;
  2239. esac
  2240. done
  2241. IFS=$as_save_IFS
  2242. rm -rf conftest.one conftest.two conftest.dir
  2243. fi
  2244. if test "${ac_cv_path_install+set}" = set; then
  2245. INSTALL=$ac_cv_path_install
  2246. else
  2247. # As a last resort, use the slow shell script. Don't cache a
  2248. # value for INSTALL within a source directory, because that will
  2249. # break other packages using the cache if that directory is
  2250. # removed, or if the value is a relative name.
  2251. INSTALL=$ac_install_sh
  2252. fi
  2253. fi
  2254. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
  2255. $as_echo "$INSTALL" >&6; }
  2256. # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
  2257. # It thinks the first close brace ends the variable substitution.
  2258. test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
  2259. test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
  2260. test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
  2261. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
  2262. $as_echo_n "checking whether build environment is sane... " >&6; }
  2263. # Reject unsafe characters in $srcdir or the absolute working directory
  2264. # name. Accept space and tab only in the latter.
  2265. am_lf='
  2266. '
  2267. case `pwd` in
  2268. *[\\\"\#\$\&\'\`$am_lf]*)
  2269. as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
  2270. esac
  2271. case $srcdir in
  2272. *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
  2273. as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
  2274. esac
  2275. # Do 'set' in a subshell so we don't clobber the current shell's
  2276. # arguments. Must try -L first in case configure is actually a
  2277. # symlink; some systems play weird games with the mod time of symlinks
  2278. # (eg FreeBSD returns the mod time of the symlink's containing
  2279. # directory).
  2280. if (
  2281. am_has_slept=no
  2282. for am_try in 1 2; do
  2283. echo "timestamp, slept: $am_has_slept" > conftest.file
  2284. set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
  2285. if test "$*" = "X"; then
  2286. # -L didn't work.
  2287. set X `ls -t "$srcdir/configure" conftest.file`
  2288. fi
  2289. if test "$*" != "X $srcdir/configure conftest.file" \
  2290. && test "$*" != "X conftest.file $srcdir/configure"; then
  2291. # If neither matched, then we have a broken ls. This can happen
  2292. # if, for instance, CONFIG_SHELL is bash and it inherits a
  2293. # broken ls alias from the environment. This has actually
  2294. # happened. Such a system could not be considered "sane".
  2295. as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
  2296. alias in your environment" "$LINENO" 5
  2297. fi
  2298. if test "$2" = conftest.file || test $am_try -eq 2; then
  2299. break
  2300. fi
  2301. # Just in case.
  2302. sleep 1
  2303. am_has_slept=yes
  2304. done
  2305. test "$2" = conftest.file
  2306. )
  2307. then
  2308. # Ok.
  2309. :
  2310. else
  2311. as_fn_error $? "newly created file is older than distributed files!
  2312. Check your system clock" "$LINENO" 5
  2313. fi
  2314. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  2315. $as_echo "yes" >&6; }
  2316. # If we didn't sleep, we still need to ensure time stamps of config.status and
  2317. # generated files are strictly newer.
  2318. am_sleep_pid=
  2319. if grep 'slept: no' conftest.file >/dev/null 2>&1; then
  2320. ( sleep 1 ) &
  2321. am_sleep_pid=$!
  2322. fi
  2323. rm -f conftest.file
  2324. test "$program_prefix" != NONE &&
  2325. program_transform_name="s&^&$program_prefix&;$program_transform_name"
  2326. # Use a double $ so make ignores it.
  2327. test "$program_suffix" != NONE &&
  2328. program_transform_name="s&\$&$program_suffix&;$program_transform_name"
  2329. # Double any \ or $.
  2330. # By default was `s,x,x', remove it if useless.
  2331. ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
  2332. program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
  2333. # Expand $ac_aux_dir to an absolute path.
  2334. am_aux_dir=`cd "$ac_aux_dir" && pwd`
  2335. if test x"${MISSING+set}" != xset; then
  2336. case $am_aux_dir in
  2337. *\ * | *\ *)
  2338. MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
  2339. *)
  2340. MISSING="\${SHELL} $am_aux_dir/missing" ;;
  2341. esac
  2342. fi
  2343. # Use eval to expand $SHELL
  2344. if eval "$MISSING --is-lightweight"; then
  2345. am_missing_run="$MISSING "
  2346. else
  2347. am_missing_run=
  2348. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
  2349. $as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
  2350. fi
  2351. if test x"${install_sh+set}" != xset; then
  2352. case $am_aux_dir in
  2353. *\ * | *\ *)
  2354. install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
  2355. *)
  2356. install_sh="\${SHELL} $am_aux_dir/install-sh"
  2357. esac
  2358. fi
  2359. # Installed binaries are usually stripped using 'strip' when the user
  2360. # run "make install-strip". However 'strip' might not be the right
  2361. # tool to use in cross-compilation environments, therefore Automake
  2362. # will honor the 'STRIP' environment variable to overrule this program.
  2363. if test "$cross_compiling" != no; then
  2364. if test -n "$ac_tool_prefix"; then
  2365. # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
  2366. set dummy ${ac_tool_prefix}strip; ac_word=$2
  2367. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2368. $as_echo_n "checking for $ac_word... " >&6; }
  2369. if ${ac_cv_prog_STRIP+:} false; then :
  2370. $as_echo_n "(cached) " >&6
  2371. else
  2372. if test -n "$STRIP"; then
  2373. ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
  2374. else
  2375. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2376. for as_dir in $PATH
  2377. do
  2378. IFS=$as_save_IFS
  2379. test -z "$as_dir" && as_dir=.
  2380. for ac_exec_ext in '' $ac_executable_extensions; do
  2381. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  2382. ac_cv_prog_STRIP="${ac_tool_prefix}strip"
  2383. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2384. break 2
  2385. fi
  2386. done
  2387. done
  2388. IFS=$as_save_IFS
  2389. fi
  2390. fi
  2391. STRIP=$ac_cv_prog_STRIP
  2392. if test -n "$STRIP"; then
  2393. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
  2394. $as_echo "$STRIP" >&6; }
  2395. else
  2396. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2397. $as_echo "no" >&6; }
  2398. fi
  2399. fi
  2400. if test -z "$ac_cv_prog_STRIP"; then
  2401. ac_ct_STRIP=$STRIP
  2402. # Extract the first word of "strip", so it can be a program name with args.
  2403. set dummy strip; ac_word=$2
  2404. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2405. $as_echo_n "checking for $ac_word... " >&6; }
  2406. if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
  2407. $as_echo_n "(cached) " >&6
  2408. else
  2409. if test -n "$ac_ct_STRIP"; then
  2410. ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
  2411. else
  2412. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2413. for as_dir in $PATH
  2414. do
  2415. IFS=$as_save_IFS
  2416. test -z "$as_dir" && as_dir=.
  2417. for ac_exec_ext in '' $ac_executable_extensions; do
  2418. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  2419. ac_cv_prog_ac_ct_STRIP="strip"
  2420. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2421. break 2
  2422. fi
  2423. done
  2424. done
  2425. IFS=$as_save_IFS
  2426. fi
  2427. fi
  2428. ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
  2429. if test -n "$ac_ct_STRIP"; then
  2430. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
  2431. $as_echo "$ac_ct_STRIP" >&6; }
  2432. else
  2433. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2434. $as_echo "no" >&6; }
  2435. fi
  2436. if test "x$ac_ct_STRIP" = x; then
  2437. STRIP=":"
  2438. else
  2439. case $cross_compiling:$ac_tool_warned in
  2440. yes:)
  2441. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  2442. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  2443. ac_tool_warned=yes ;;
  2444. esac
  2445. STRIP=$ac_ct_STRIP
  2446. fi
  2447. else
  2448. STRIP="$ac_cv_prog_STRIP"
  2449. fi
  2450. fi
  2451. INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
  2452. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
  2453. $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
  2454. if test -z "$MKDIR_P"; then
  2455. if ${ac_cv_path_mkdir+:} false; then :
  2456. $as_echo_n "(cached) " >&6
  2457. else
  2458. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2459. for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
  2460. do
  2461. IFS=$as_save_IFS
  2462. test -z "$as_dir" && as_dir=.
  2463. for ac_prog in mkdir gmkdir; do
  2464. for ac_exec_ext in '' $ac_executable_extensions; do
  2465. as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
  2466. case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
  2467. 'mkdir (GNU coreutils) '* | \
  2468. 'mkdir (coreutils) '* | \
  2469. 'mkdir (fileutils) '4.1*)
  2470. ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
  2471. break 3;;
  2472. esac
  2473. done
  2474. done
  2475. done
  2476. IFS=$as_save_IFS
  2477. fi
  2478. test -d ./--version && rmdir ./--version
  2479. if test "${ac_cv_path_mkdir+set}" = set; then
  2480. MKDIR_P="$ac_cv_path_mkdir -p"
  2481. else
  2482. # As a last resort, use the slow shell script. Don't cache a
  2483. # value for MKDIR_P within a source directory, because that will
  2484. # break other packages using the cache if that directory is
  2485. # removed, or if the value is a relative name.
  2486. MKDIR_P="$ac_install_sh -d"
  2487. fi
  2488. fi
  2489. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
  2490. $as_echo "$MKDIR_P" >&6; }
  2491. for ac_prog in gawk mawk nawk awk
  2492. do
  2493. # Extract the first word of "$ac_prog", so it can be a program name with args.
  2494. set dummy $ac_prog; ac_word=$2
  2495. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2496. $as_echo_n "checking for $ac_word... " >&6; }
  2497. if ${ac_cv_prog_AWK+:} false; then :
  2498. $as_echo_n "(cached) " >&6
  2499. else
  2500. if test -n "$AWK"; then
  2501. ac_cv_prog_AWK="$AWK" # Let the user override the test.
  2502. else
  2503. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2504. for as_dir in $PATH
  2505. do
  2506. IFS=$as_save_IFS
  2507. test -z "$as_dir" && as_dir=.
  2508. for ac_exec_ext in '' $ac_executable_extensions; do
  2509. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  2510. ac_cv_prog_AWK="$ac_prog"
  2511. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2512. break 2
  2513. fi
  2514. done
  2515. done
  2516. IFS=$as_save_IFS
  2517. fi
  2518. fi
  2519. AWK=$ac_cv_prog_AWK
  2520. if test -n "$AWK"; then
  2521. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
  2522. $as_echo "$AWK" >&6; }
  2523. else
  2524. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2525. $as_echo "no" >&6; }
  2526. fi
  2527. test -n "$AWK" && break
  2528. done
  2529. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
  2530. $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
  2531. set x ${MAKE-make}
  2532. ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
  2533. if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
  2534. $as_echo_n "(cached) " >&6
  2535. else
  2536. cat >conftest.make <<\_ACEOF
  2537. SHELL = /bin/sh
  2538. all:
  2539. @echo '@@@%%%=$(MAKE)=@@@%%%'
  2540. _ACEOF
  2541. # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
  2542. case `${MAKE-make} -f conftest.make 2>/dev/null` in
  2543. *@@@%%%=?*=@@@%%%*)
  2544. eval ac_cv_prog_make_${ac_make}_set=yes;;
  2545. *)
  2546. eval ac_cv_prog_make_${ac_make}_set=no;;
  2547. esac
  2548. rm -f conftest.make
  2549. fi
  2550. if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
  2551. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  2552. $as_echo "yes" >&6; }
  2553. SET_MAKE=
  2554. else
  2555. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2556. $as_echo "no" >&6; }
  2557. SET_MAKE="MAKE=${MAKE-make}"
  2558. fi
  2559. rm -rf .tst 2>/dev/null
  2560. mkdir .tst 2>/dev/null
  2561. if test -d .tst; then
  2562. am__leading_dot=.
  2563. else
  2564. am__leading_dot=_
  2565. fi
  2566. rmdir .tst 2>/dev/null
  2567. # Check whether --enable-silent-rules was given.
  2568. if test "${enable_silent_rules+set}" = set; then :
  2569. enableval=$enable_silent_rules;
  2570. fi
  2571. case $enable_silent_rules in # (((
  2572. yes) AM_DEFAULT_VERBOSITY=0;;
  2573. no) AM_DEFAULT_VERBOSITY=1;;
  2574. *) AM_DEFAULT_VERBOSITY=1;;
  2575. esac
  2576. am_make=${MAKE-make}
  2577. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
  2578. $as_echo_n "checking whether $am_make supports nested variables... " >&6; }
  2579. if ${am_cv_make_support_nested_variables+:} false; then :
  2580. $as_echo_n "(cached) " >&6
  2581. else
  2582. if $as_echo 'TRUE=$(BAR$(V))
  2583. BAR0=false
  2584. BAR1=true
  2585. V=1
  2586. am__doit:
  2587. @$(TRUE)
  2588. .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
  2589. am_cv_make_support_nested_variables=yes
  2590. else
  2591. am_cv_make_support_nested_variables=no
  2592. fi
  2593. fi
  2594. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
  2595. $as_echo "$am_cv_make_support_nested_variables" >&6; }
  2596. if test $am_cv_make_support_nested_variables = yes; then
  2597. AM_V='$(V)'
  2598. AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
  2599. else
  2600. AM_V=$AM_DEFAULT_VERBOSITY
  2601. AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
  2602. fi
  2603. AM_BACKSLASH='\'
  2604. if test "`cd $srcdir && pwd`" != "`pwd`"; then
  2605. # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
  2606. # is not polluted with repeated "-I."
  2607. am__isrc=' -I$(srcdir)'
  2608. # test to see if srcdir already configured
  2609. if test -f $srcdir/config.status; then
  2610. as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
  2611. fi
  2612. fi
  2613. # test whether we have cygpath
  2614. if test -z "$CYGPATH_W"; then
  2615. if (cygpath --version) >/dev/null 2>/dev/null; then
  2616. CYGPATH_W='cygpath -w'
  2617. else
  2618. CYGPATH_W=echo
  2619. fi
  2620. fi
  2621. # Define the identity of the package.
  2622. PACKAGE='jansson'
  2623. VERSION='2.6'
  2624. cat >>confdefs.h <<_ACEOF
  2625. #define PACKAGE "$PACKAGE"
  2626. _ACEOF
  2627. cat >>confdefs.h <<_ACEOF
  2628. #define VERSION "$VERSION"
  2629. _ACEOF
  2630. # Some tools Automake needs.
  2631. ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
  2632. AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
  2633. AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
  2634. AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
  2635. MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
  2636. # For better backward compatibility. To be removed once Automake 1.9.x
  2637. # dies out for good. For more background, see:
  2638. # <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
  2639. # <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
  2640. mkdir_p='$(MKDIR_P)'
  2641. # We need awk for the "check" target (and possibly the TAP driver). The
  2642. # system "awk" is bad on some platforms.
  2643. # Always define AMTAR for backward compatibility. Yes, it's still used
  2644. # in the wild :-( We should find a proper way to deprecate it ...
  2645. AMTAR='$${TAR-tar}'
  2646. # We'll loop over all known methods to create a tar archive until one works.
  2647. _am_tools='gnutar pax cpio none'
  2648. am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
  2649. # POSIX will say in a future version that running "rm -f" with no argument
  2650. # is OK; and we want to be able to make that assumption in our Makefile
  2651. # recipes. So use an aggressive probe to check that the usage we want is
  2652. # actually supported "in the wild" to an acceptable degree.
  2653. # See automake bug#10828.
  2654. # To make any issue more visible, cause the running configure to be aborted
  2655. # by default if the 'rm' program in use doesn't match our expectations; the
  2656. # user can still override this though.
  2657. if rm -f && rm -fr && rm -rf; then : OK; else
  2658. cat >&2 <<'END'
  2659. Oops!
  2660. Your 'rm' program seems unable to run without file operands specified
  2661. on the command line, even when the '-f' option is present. This is contrary
  2662. to the behaviour of most rm programs out there, and not conforming with
  2663. the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
  2664. Please tell bug-automake@gnu.org about your system, including the value
  2665. of your $PATH and any error possibly output before this message. This
  2666. can help us improve future automake versions.
  2667. END
  2668. if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
  2669. echo 'Configuration will proceed anyway, since you have set the' >&2
  2670. echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
  2671. echo >&2
  2672. else
  2673. cat >&2 <<'END'
  2674. Aborting the configuration process, to ensure you take notice of the issue.
  2675. You can download and install GNU coreutils to get an 'rm' implementation
  2676. that behaves properly: <http://www.gnu.org/software/coreutils/>.
  2677. If you want to complete the configuration process using your problematic
  2678. 'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
  2679. to "yes", and re-run configure.
  2680. END
  2681. as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5
  2682. fi
  2683. fi
  2684. # Check whether --enable-silent-rules was given.
  2685. if test "${enable_silent_rules+set}" = set; then :
  2686. enableval=$enable_silent_rules;
  2687. fi
  2688. case $enable_silent_rules in # (((
  2689. yes) AM_DEFAULT_VERBOSITY=0;;
  2690. no) AM_DEFAULT_VERBOSITY=1;;
  2691. *) AM_DEFAULT_VERBOSITY=0;;
  2692. esac
  2693. am_make=${MAKE-make}
  2694. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
  2695. $as_echo_n "checking whether $am_make supports nested variables... " >&6; }
  2696. if ${am_cv_make_support_nested_variables+:} false; then :
  2697. $as_echo_n "(cached) " >&6
  2698. else
  2699. if $as_echo 'TRUE=$(BAR$(V))
  2700. BAR0=false
  2701. BAR1=true
  2702. V=1
  2703. am__doit:
  2704. @$(TRUE)
  2705. .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
  2706. am_cv_make_support_nested_variables=yes
  2707. else
  2708. am_cv_make_support_nested_variables=no
  2709. fi
  2710. fi
  2711. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
  2712. $as_echo "$am_cv_make_support_nested_variables" >&6; }
  2713. if test $am_cv_make_support_nested_variables = yes; then
  2714. AM_V='$(V)'
  2715. AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
  2716. else
  2717. AM_V=$AM_DEFAULT_VERBOSITY
  2718. AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
  2719. fi
  2720. AM_BACKSLASH='\'
  2721. ac_config_headers="$ac_config_headers config.h"
  2722. # Checks for programs.
  2723. ac_ext=c
  2724. ac_cpp='$CPP $CPPFLAGS'
  2725. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  2726. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  2727. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  2728. if test -n "$ac_tool_prefix"; then
  2729. # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
  2730. set dummy ${ac_tool_prefix}gcc; ac_word=$2
  2731. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2732. $as_echo_n "checking for $ac_word... " >&6; }
  2733. if ${ac_cv_prog_CC+:} false; then :
  2734. $as_echo_n "(cached) " >&6
  2735. else
  2736. if test -n "$CC"; then
  2737. ac_cv_prog_CC="$CC" # Let the user override the test.
  2738. else
  2739. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2740. for as_dir in $PATH
  2741. do
  2742. IFS=$as_save_IFS
  2743. test -z "$as_dir" && as_dir=.
  2744. for ac_exec_ext in '' $ac_executable_extensions; do
  2745. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  2746. ac_cv_prog_CC="${ac_tool_prefix}gcc"
  2747. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2748. break 2
  2749. fi
  2750. done
  2751. done
  2752. IFS=$as_save_IFS
  2753. fi
  2754. fi
  2755. CC=$ac_cv_prog_CC
  2756. if test -n "$CC"; then
  2757. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  2758. $as_echo "$CC" >&6; }
  2759. else
  2760. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2761. $as_echo "no" >&6; }
  2762. fi
  2763. fi
  2764. if test -z "$ac_cv_prog_CC"; then
  2765. ac_ct_CC=$CC
  2766. # Extract the first word of "gcc", so it can be a program name with args.
  2767. set dummy gcc; ac_word=$2
  2768. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2769. $as_echo_n "checking for $ac_word... " >&6; }
  2770. if ${ac_cv_prog_ac_ct_CC+:} false; then :
  2771. $as_echo_n "(cached) " >&6
  2772. else
  2773. if test -n "$ac_ct_CC"; then
  2774. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  2775. else
  2776. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2777. for as_dir in $PATH
  2778. do
  2779. IFS=$as_save_IFS
  2780. test -z "$as_dir" && as_dir=.
  2781. for ac_exec_ext in '' $ac_executable_extensions; do
  2782. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  2783. ac_cv_prog_ac_ct_CC="gcc"
  2784. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2785. break 2
  2786. fi
  2787. done
  2788. done
  2789. IFS=$as_save_IFS
  2790. fi
  2791. fi
  2792. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  2793. if test -n "$ac_ct_CC"; then
  2794. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
  2795. $as_echo "$ac_ct_CC" >&6; }
  2796. else
  2797. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2798. $as_echo "no" >&6; }
  2799. fi
  2800. if test "x$ac_ct_CC" = x; then
  2801. CC=""
  2802. else
  2803. case $cross_compiling:$ac_tool_warned in
  2804. yes:)
  2805. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  2806. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  2807. ac_tool_warned=yes ;;
  2808. esac
  2809. CC=$ac_ct_CC
  2810. fi
  2811. else
  2812. CC="$ac_cv_prog_CC"
  2813. fi
  2814. if test -z "$CC"; then
  2815. if test -n "$ac_tool_prefix"; then
  2816. # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
  2817. set dummy ${ac_tool_prefix}cc; ac_word=$2
  2818. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2819. $as_echo_n "checking for $ac_word... " >&6; }
  2820. if ${ac_cv_prog_CC+:} false; then :
  2821. $as_echo_n "(cached) " >&6
  2822. else
  2823. if test -n "$CC"; then
  2824. ac_cv_prog_CC="$CC" # Let the user override the test.
  2825. else
  2826. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2827. for as_dir in $PATH
  2828. do
  2829. IFS=$as_save_IFS
  2830. test -z "$as_dir" && as_dir=.
  2831. for ac_exec_ext in '' $ac_executable_extensions; do
  2832. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  2833. ac_cv_prog_CC="${ac_tool_prefix}cc"
  2834. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2835. break 2
  2836. fi
  2837. done
  2838. done
  2839. IFS=$as_save_IFS
  2840. fi
  2841. fi
  2842. CC=$ac_cv_prog_CC
  2843. if test -n "$CC"; then
  2844. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  2845. $as_echo "$CC" >&6; }
  2846. else
  2847. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2848. $as_echo "no" >&6; }
  2849. fi
  2850. fi
  2851. fi
  2852. if test -z "$CC"; then
  2853. # Extract the first word of "cc", so it can be a program name with args.
  2854. set dummy cc; ac_word=$2
  2855. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2856. $as_echo_n "checking for $ac_word... " >&6; }
  2857. if ${ac_cv_prog_CC+:} false; then :
  2858. $as_echo_n "(cached) " >&6
  2859. else
  2860. if test -n "$CC"; then
  2861. ac_cv_prog_CC="$CC" # Let the user override the test.
  2862. else
  2863. ac_prog_rejected=no
  2864. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2865. for as_dir in $PATH
  2866. do
  2867. IFS=$as_save_IFS
  2868. test -z "$as_dir" && as_dir=.
  2869. for ac_exec_ext in '' $ac_executable_extensions; do
  2870. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  2871. if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
  2872. ac_prog_rejected=yes
  2873. continue
  2874. fi
  2875. ac_cv_prog_CC="cc"
  2876. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2877. break 2
  2878. fi
  2879. done
  2880. done
  2881. IFS=$as_save_IFS
  2882. if test $ac_prog_rejected = yes; then
  2883. # We found a bogon in the path, so make sure we never use it.
  2884. set dummy $ac_cv_prog_CC
  2885. shift
  2886. if test $# != 0; then
  2887. # We chose a different compiler from the bogus one.
  2888. # However, it has the same basename, so the bogon will be chosen
  2889. # first if we set CC to just the basename; use the full file name.
  2890. shift
  2891. ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
  2892. fi
  2893. fi
  2894. fi
  2895. fi
  2896. CC=$ac_cv_prog_CC
  2897. if test -n "$CC"; then
  2898. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  2899. $as_echo "$CC" >&6; }
  2900. else
  2901. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2902. $as_echo "no" >&6; }
  2903. fi
  2904. fi
  2905. if test -z "$CC"; then
  2906. if test -n "$ac_tool_prefix"; then
  2907. for ac_prog in cl.exe
  2908. do
  2909. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  2910. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  2911. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2912. $as_echo_n "checking for $ac_word... " >&6; }
  2913. if ${ac_cv_prog_CC+:} false; then :
  2914. $as_echo_n "(cached) " >&6
  2915. else
  2916. if test -n "$CC"; then
  2917. ac_cv_prog_CC="$CC" # Let the user override the test.
  2918. else
  2919. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2920. for as_dir in $PATH
  2921. do
  2922. IFS=$as_save_IFS
  2923. test -z "$as_dir" && as_dir=.
  2924. for ac_exec_ext in '' $ac_executable_extensions; do
  2925. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  2926. ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
  2927. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2928. break 2
  2929. fi
  2930. done
  2931. done
  2932. IFS=$as_save_IFS
  2933. fi
  2934. fi
  2935. CC=$ac_cv_prog_CC
  2936. if test -n "$CC"; then
  2937. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  2938. $as_echo "$CC" >&6; }
  2939. else
  2940. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2941. $as_echo "no" >&6; }
  2942. fi
  2943. test -n "$CC" && break
  2944. done
  2945. fi
  2946. if test -z "$CC"; then
  2947. ac_ct_CC=$CC
  2948. for ac_prog in cl.exe
  2949. do
  2950. # Extract the first word of "$ac_prog", so it can be a program name with args.
  2951. set dummy $ac_prog; ac_word=$2
  2952. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2953. $as_echo_n "checking for $ac_word... " >&6; }
  2954. if ${ac_cv_prog_ac_ct_CC+:} false; then :
  2955. $as_echo_n "(cached) " >&6
  2956. else
  2957. if test -n "$ac_ct_CC"; then
  2958. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  2959. else
  2960. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2961. for as_dir in $PATH
  2962. do
  2963. IFS=$as_save_IFS
  2964. test -z "$as_dir" && as_dir=.
  2965. for ac_exec_ext in '' $ac_executable_extensions; do
  2966. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  2967. ac_cv_prog_ac_ct_CC="$ac_prog"
  2968. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2969. break 2
  2970. fi
  2971. done
  2972. done
  2973. IFS=$as_save_IFS
  2974. fi
  2975. fi
  2976. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  2977. if test -n "$ac_ct_CC"; then
  2978. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
  2979. $as_echo "$ac_ct_CC" >&6; }
  2980. else
  2981. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2982. $as_echo "no" >&6; }
  2983. fi
  2984. test -n "$ac_ct_CC" && break
  2985. done
  2986. if test "x$ac_ct_CC" = x; then
  2987. CC=""
  2988. else
  2989. case $cross_compiling:$ac_tool_warned in
  2990. yes:)
  2991. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  2992. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  2993. ac_tool_warned=yes ;;
  2994. esac
  2995. CC=$ac_ct_CC
  2996. fi
  2997. fi
  2998. fi
  2999. test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  3000. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  3001. as_fn_error $? "no acceptable C compiler found in \$PATH
  3002. See \`config.log' for more details" "$LINENO" 5; }
  3003. # Provide some information about the compiler.
  3004. $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
  3005. set X $ac_compile
  3006. ac_compiler=$2
  3007. for ac_option in --version -v -V -qversion; do
  3008. { { ac_try="$ac_compiler $ac_option >&5"
  3009. case "(($ac_try" in
  3010. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3011. *) ac_try_echo=$ac_try;;
  3012. esac
  3013. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3014. $as_echo "$ac_try_echo"; } >&5
  3015. (eval "$ac_compiler $ac_option >&5") 2>conftest.err
  3016. ac_status=$?
  3017. if test -s conftest.err; then
  3018. sed '10a\
  3019. ... rest of stderr output deleted ...
  3020. 10q' conftest.err >conftest.er1
  3021. cat conftest.er1 >&5
  3022. fi
  3023. rm -f conftest.er1 conftest.err
  3024. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3025. test $ac_status = 0; }
  3026. done
  3027. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3028. /* end confdefs.h. */
  3029. int
  3030. main ()
  3031. {
  3032. ;
  3033. return 0;
  3034. }
  3035. _ACEOF
  3036. ac_clean_files_save=$ac_clean_files
  3037. ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
  3038. # Try to create an executable without -o first, disregard a.out.
  3039. # It will help us diagnose broken compilers, and finding out an intuition
  3040. # of exeext.
  3041. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
  3042. $as_echo_n "checking whether the C compiler works... " >&6; }
  3043. ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
  3044. # The possible output files:
  3045. ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
  3046. ac_rmfiles=
  3047. for ac_file in $ac_files
  3048. do
  3049. case $ac_file in
  3050. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
  3051. * ) ac_rmfiles="$ac_rmfiles $ac_file";;
  3052. esac
  3053. done
  3054. rm -f $ac_rmfiles
  3055. if { { ac_try="$ac_link_default"
  3056. case "(($ac_try" in
  3057. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3058. *) ac_try_echo=$ac_try;;
  3059. esac
  3060. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3061. $as_echo "$ac_try_echo"; } >&5
  3062. (eval "$ac_link_default") 2>&5
  3063. ac_status=$?
  3064. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3065. test $ac_status = 0; }; then :
  3066. # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
  3067. # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
  3068. # in a Makefile. We should not override ac_cv_exeext if it was cached,
  3069. # so that the user can short-circuit this test for compilers unknown to
  3070. # Autoconf.
  3071. for ac_file in $ac_files ''
  3072. do
  3073. test -f "$ac_file" || continue
  3074. case $ac_file in
  3075. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
  3076. ;;
  3077. [ab].out )
  3078. # We found the default executable, but exeext='' is most
  3079. # certainly right.
  3080. break;;
  3081. *.* )
  3082. if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
  3083. then :; else
  3084. ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
  3085. fi
  3086. # We set ac_cv_exeext here because the later test for it is not
  3087. # safe: cross compilers may not add the suffix if given an `-o'
  3088. # argument, so we may need to know it at that point already.
  3089. # Even if this section looks crufty: it has the advantage of
  3090. # actually working.
  3091. break;;
  3092. * )
  3093. break;;
  3094. esac
  3095. done
  3096. test "$ac_cv_exeext" = no && ac_cv_exeext=
  3097. else
  3098. ac_file=''
  3099. fi
  3100. if test -z "$ac_file"; then :
  3101. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3102. $as_echo "no" >&6; }
  3103. $as_echo "$as_me: failed program was:" >&5
  3104. sed 's/^/| /' conftest.$ac_ext >&5
  3105. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  3106. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  3107. as_fn_error 77 "C compiler cannot create executables
  3108. See \`config.log' for more details" "$LINENO" 5; }
  3109. else
  3110. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  3111. $as_echo "yes" >&6; }
  3112. fi
  3113. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
  3114. $as_echo_n "checking for C compiler default output file name... " >&6; }
  3115. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
  3116. $as_echo "$ac_file" >&6; }
  3117. ac_exeext=$ac_cv_exeext
  3118. rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
  3119. ac_clean_files=$ac_clean_files_save
  3120. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
  3121. $as_echo_n "checking for suffix of executables... " >&6; }
  3122. if { { ac_try="$ac_link"
  3123. case "(($ac_try" in
  3124. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3125. *) ac_try_echo=$ac_try;;
  3126. esac
  3127. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3128. $as_echo "$ac_try_echo"; } >&5
  3129. (eval "$ac_link") 2>&5
  3130. ac_status=$?
  3131. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3132. test $ac_status = 0; }; then :
  3133. # If both `conftest.exe' and `conftest' are `present' (well, observable)
  3134. # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
  3135. # work properly (i.e., refer to `conftest.exe'), while it won't with
  3136. # `rm'.
  3137. for ac_file in conftest.exe conftest conftest.*; do
  3138. test -f "$ac_file" || continue
  3139. case $ac_file in
  3140. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
  3141. *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
  3142. break;;
  3143. * ) break;;
  3144. esac
  3145. done
  3146. else
  3147. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  3148. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  3149. as_fn_error $? "cannot compute suffix of executables: cannot compile and link
  3150. See \`config.log' for more details" "$LINENO" 5; }
  3151. fi
  3152. rm -f conftest conftest$ac_cv_exeext
  3153. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
  3154. $as_echo "$ac_cv_exeext" >&6; }
  3155. rm -f conftest.$ac_ext
  3156. EXEEXT=$ac_cv_exeext
  3157. ac_exeext=$EXEEXT
  3158. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3159. /* end confdefs.h. */
  3160. #include <stdio.h>
  3161. int
  3162. main ()
  3163. {
  3164. FILE *f = fopen ("conftest.out", "w");
  3165. return ferror (f) || fclose (f) != 0;
  3166. ;
  3167. return 0;
  3168. }
  3169. _ACEOF
  3170. ac_clean_files="$ac_clean_files conftest.out"
  3171. # Check that the compiler produces executables we can run. If not, either
  3172. # the compiler is broken, or we cross compile.
  3173. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
  3174. $as_echo_n "checking whether we are cross compiling... " >&6; }
  3175. if test "$cross_compiling" != yes; then
  3176. { { ac_try="$ac_link"
  3177. case "(($ac_try" in
  3178. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3179. *) ac_try_echo=$ac_try;;
  3180. esac
  3181. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3182. $as_echo "$ac_try_echo"; } >&5
  3183. (eval "$ac_link") 2>&5
  3184. ac_status=$?
  3185. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3186. test $ac_status = 0; }
  3187. if { ac_try='./conftest$ac_cv_exeext'
  3188. { { case "(($ac_try" in
  3189. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3190. *) ac_try_echo=$ac_try;;
  3191. esac
  3192. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3193. $as_echo "$ac_try_echo"; } >&5
  3194. (eval "$ac_try") 2>&5
  3195. ac_status=$?
  3196. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3197. test $ac_status = 0; }; }; then
  3198. cross_compiling=no
  3199. else
  3200. if test "$cross_compiling" = maybe; then
  3201. cross_compiling=yes
  3202. else
  3203. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  3204. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  3205. as_fn_error $? "cannot run C compiled programs.
  3206. If you meant to cross compile, use \`--host'.
  3207. See \`config.log' for more details" "$LINENO" 5; }
  3208. fi
  3209. fi
  3210. fi
  3211. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
  3212. $as_echo "$cross_compiling" >&6; }
  3213. rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
  3214. ac_clean_files=$ac_clean_files_save
  3215. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
  3216. $as_echo_n "checking for suffix of object files... " >&6; }
  3217. if ${ac_cv_objext+:} false; then :
  3218. $as_echo_n "(cached) " >&6
  3219. else
  3220. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3221. /* end confdefs.h. */
  3222. int
  3223. main ()
  3224. {
  3225. ;
  3226. return 0;
  3227. }
  3228. _ACEOF
  3229. rm -f conftest.o conftest.obj
  3230. if { { ac_try="$ac_compile"
  3231. case "(($ac_try" in
  3232. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3233. *) ac_try_echo=$ac_try;;
  3234. esac
  3235. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3236. $as_echo "$ac_try_echo"; } >&5
  3237. (eval "$ac_compile") 2>&5
  3238. ac_status=$?
  3239. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3240. test $ac_status = 0; }; then :
  3241. for ac_file in conftest.o conftest.obj conftest.*; do
  3242. test -f "$ac_file" || continue;
  3243. case $ac_file in
  3244. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
  3245. *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
  3246. break;;
  3247. esac
  3248. done
  3249. else
  3250. $as_echo "$as_me: failed program was:" >&5
  3251. sed 's/^/| /' conftest.$ac_ext >&5
  3252. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  3253. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  3254. as_fn_error $? "cannot compute suffix of object files: cannot compile
  3255. See \`config.log' for more details" "$LINENO" 5; }
  3256. fi
  3257. rm -f conftest.$ac_cv_objext conftest.$ac_ext
  3258. fi
  3259. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
  3260. $as_echo "$ac_cv_objext" >&6; }
  3261. OBJEXT=$ac_cv_objext
  3262. ac_objext=$OBJEXT
  3263. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
  3264. $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
  3265. if ${ac_cv_c_compiler_gnu+:} false; then :
  3266. $as_echo_n "(cached) " >&6
  3267. else
  3268. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3269. /* end confdefs.h. */
  3270. int
  3271. main ()
  3272. {
  3273. #ifndef __GNUC__
  3274. choke me
  3275. #endif
  3276. ;
  3277. return 0;
  3278. }
  3279. _ACEOF
  3280. if ac_fn_c_try_compile "$LINENO"; then :
  3281. ac_compiler_gnu=yes
  3282. else
  3283. ac_compiler_gnu=no
  3284. fi
  3285. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3286. ac_cv_c_compiler_gnu=$ac_compiler_gnu
  3287. fi
  3288. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
  3289. $as_echo "$ac_cv_c_compiler_gnu" >&6; }
  3290. if test $ac_compiler_gnu = yes; then
  3291. GCC=yes
  3292. else
  3293. GCC=
  3294. fi
  3295. ac_test_CFLAGS=${CFLAGS+set}
  3296. ac_save_CFLAGS=$CFLAGS
  3297. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
  3298. $as_echo_n "checking whether $CC accepts -g... " >&6; }
  3299. if ${ac_cv_prog_cc_g+:} false; then :
  3300. $as_echo_n "(cached) " >&6
  3301. else
  3302. ac_save_c_werror_flag=$ac_c_werror_flag
  3303. ac_c_werror_flag=yes
  3304. ac_cv_prog_cc_g=no
  3305. CFLAGS="-g"
  3306. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3307. /* end confdefs.h. */
  3308. int
  3309. main ()
  3310. {
  3311. ;
  3312. return 0;
  3313. }
  3314. _ACEOF
  3315. if ac_fn_c_try_compile "$LINENO"; then :
  3316. ac_cv_prog_cc_g=yes
  3317. else
  3318. CFLAGS=""
  3319. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3320. /* end confdefs.h. */
  3321. int
  3322. main ()
  3323. {
  3324. ;
  3325. return 0;
  3326. }
  3327. _ACEOF
  3328. if ac_fn_c_try_compile "$LINENO"; then :
  3329. else
  3330. ac_c_werror_flag=$ac_save_c_werror_flag
  3331. CFLAGS="-g"
  3332. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3333. /* end confdefs.h. */
  3334. int
  3335. main ()
  3336. {
  3337. ;
  3338. return 0;
  3339. }
  3340. _ACEOF
  3341. if ac_fn_c_try_compile "$LINENO"; then :
  3342. ac_cv_prog_cc_g=yes
  3343. fi
  3344. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3345. fi
  3346. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3347. fi
  3348. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3349. ac_c_werror_flag=$ac_save_c_werror_flag
  3350. fi
  3351. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
  3352. $as_echo "$ac_cv_prog_cc_g" >&6; }
  3353. if test "$ac_test_CFLAGS" = set; then
  3354. CFLAGS=$ac_save_CFLAGS
  3355. elif test $ac_cv_prog_cc_g = yes; then
  3356. if test "$GCC" = yes; then
  3357. CFLAGS="-g -O2"
  3358. else
  3359. CFLAGS="-g"
  3360. fi
  3361. else
  3362. if test "$GCC" = yes; then
  3363. CFLAGS="-O2"
  3364. else
  3365. CFLAGS=
  3366. fi
  3367. fi
  3368. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
  3369. $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
  3370. if ${ac_cv_prog_cc_c89+:} false; then :
  3371. $as_echo_n "(cached) " >&6
  3372. else
  3373. ac_cv_prog_cc_c89=no
  3374. ac_save_CC=$CC
  3375. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3376. /* end confdefs.h. */
  3377. #include <stdarg.h>
  3378. #include <stdio.h>
  3379. struct stat;
  3380. /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
  3381. struct buf { int x; };
  3382. FILE * (*rcsopen) (struct buf *, struct stat *, int);
  3383. static char *e (p, i)
  3384. char **p;
  3385. int i;
  3386. {
  3387. return p[i];
  3388. }
  3389. static char *f (char * (*g) (char **, int), char **p, ...)
  3390. {
  3391. char *s;
  3392. va_list v;
  3393. va_start (v,p);
  3394. s = g (p, va_arg (v,int));
  3395. va_end (v);
  3396. return s;
  3397. }
  3398. /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
  3399. function prototypes and stuff, but not '\xHH' hex character constants.
  3400. These don't provoke an error unfortunately, instead are silently treated
  3401. as 'x'. The following induces an error, until -std is added to get
  3402. proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
  3403. array size at least. It's necessary to write '\x00'==0 to get something
  3404. that's true only with -std. */
  3405. int osf4_cc_array ['\x00' == 0 ? 1 : -1];
  3406. /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
  3407. inside strings and character constants. */
  3408. #define FOO(x) 'x'
  3409. int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
  3410. int test (int i, double x);
  3411. struct s1 {int (*f) (int a);};
  3412. struct s2 {int (*f) (double a);};
  3413. int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
  3414. int argc;
  3415. char **argv;
  3416. int
  3417. main ()
  3418. {
  3419. return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
  3420. ;
  3421. return 0;
  3422. }
  3423. _ACEOF
  3424. for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
  3425. -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
  3426. do
  3427. CC="$ac_save_CC $ac_arg"
  3428. if ac_fn_c_try_compile "$LINENO"; then :
  3429. ac_cv_prog_cc_c89=$ac_arg
  3430. fi
  3431. rm -f core conftest.err conftest.$ac_objext
  3432. test "x$ac_cv_prog_cc_c89" != "xno" && break
  3433. done
  3434. rm -f conftest.$ac_ext
  3435. CC=$ac_save_CC
  3436. fi
  3437. # AC_CACHE_VAL
  3438. case "x$ac_cv_prog_cc_c89" in
  3439. x)
  3440. { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
  3441. $as_echo "none needed" >&6; } ;;
  3442. xno)
  3443. { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
  3444. $as_echo "unsupported" >&6; } ;;
  3445. *)
  3446. CC="$CC $ac_cv_prog_cc_c89"
  3447. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
  3448. $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
  3449. esac
  3450. if test "x$ac_cv_prog_cc_c89" != xno; then :
  3451. fi
  3452. ac_ext=c
  3453. ac_cpp='$CPP $CPPFLAGS'
  3454. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  3455. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  3456. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  3457. ac_ext=c
  3458. ac_cpp='$CPP $CPPFLAGS'
  3459. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  3460. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  3461. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  3462. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
  3463. $as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
  3464. if ${am_cv_prog_cc_c_o+:} false; then :
  3465. $as_echo_n "(cached) " >&6
  3466. else
  3467. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3468. /* end confdefs.h. */
  3469. int
  3470. main ()
  3471. {
  3472. ;
  3473. return 0;
  3474. }
  3475. _ACEOF
  3476. # Make sure it works both with $CC and with simple cc.
  3477. # Following AC_PROG_CC_C_O, we do the test twice because some
  3478. # compilers refuse to overwrite an existing .o file with -o,
  3479. # though they will create one.
  3480. am_cv_prog_cc_c_o=yes
  3481. for am_i in 1 2; do
  3482. if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
  3483. ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
  3484. ac_status=$?
  3485. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3486. (exit $ac_status); } \
  3487. && test -f conftest2.$ac_objext; then
  3488. : OK
  3489. else
  3490. am_cv_prog_cc_c_o=no
  3491. break
  3492. fi
  3493. done
  3494. rm -f core conftest*
  3495. unset am_i
  3496. fi
  3497. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
  3498. $as_echo "$am_cv_prog_cc_c_o" >&6; }
  3499. if test "$am_cv_prog_cc_c_o" != yes; then
  3500. # Losing compiler, so override with the script.
  3501. # FIXME: It is wrong to rewrite CC.
  3502. # But if we don't then we get into trouble of one sort or another.
  3503. # A longer-term fix would be to have automake use am__CC in this case,
  3504. # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
  3505. CC="$am_aux_dir/compile $CC"
  3506. fi
  3507. ac_ext=c
  3508. ac_cpp='$CPP $CPPFLAGS'
  3509. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  3510. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  3511. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  3512. DEPDIR="${am__leading_dot}deps"
  3513. ac_config_commands="$ac_config_commands depfiles"
  3514. am_make=${MAKE-make}
  3515. cat > confinc << 'END'
  3516. am__doit:
  3517. @echo this is the am__doit target
  3518. .PHONY: am__doit
  3519. END
  3520. # If we don't find an include directive, just comment out the code.
  3521. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
  3522. $as_echo_n "checking for style of include used by $am_make... " >&6; }
  3523. am__include="#"
  3524. am__quote=
  3525. _am_result=none
  3526. # First try GNU make style include.
  3527. echo "include confinc" > confmf
  3528. # Ignore all kinds of additional output from 'make'.
  3529. case `$am_make -s -f confmf 2> /dev/null` in #(
  3530. *the\ am__doit\ target*)
  3531. am__include=include
  3532. am__quote=
  3533. _am_result=GNU
  3534. ;;
  3535. esac
  3536. # Now try BSD make style include.
  3537. if test "$am__include" = "#"; then
  3538. echo '.include "confinc"' > confmf
  3539. case `$am_make -s -f confmf 2> /dev/null` in #(
  3540. *the\ am__doit\ target*)
  3541. am__include=.include
  3542. am__quote="\""
  3543. _am_result=BSD
  3544. ;;
  3545. esac
  3546. fi
  3547. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
  3548. $as_echo "$_am_result" >&6; }
  3549. rm -f confinc confmf
  3550. # Check whether --enable-dependency-tracking was given.
  3551. if test "${enable_dependency_tracking+set}" = set; then :
  3552. enableval=$enable_dependency_tracking;
  3553. fi
  3554. if test "x$enable_dependency_tracking" != xno; then
  3555. am_depcomp="$ac_aux_dir/depcomp"
  3556. AMDEPBACKSLASH='\'
  3557. am__nodep='_no'
  3558. fi
  3559. if test "x$enable_dependency_tracking" != xno; then
  3560. AMDEP_TRUE=
  3561. AMDEP_FALSE='#'
  3562. else
  3563. AMDEP_TRUE='#'
  3564. AMDEP_FALSE=
  3565. fi
  3566. depcc="$CC" am_compiler_list=
  3567. { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
  3568. $as_echo_n "checking dependency style of $depcc... " >&6; }
  3569. if ${am_cv_CC_dependencies_compiler_type+:} false; then :
  3570. $as_echo_n "(cached) " >&6
  3571. else
  3572. if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
  3573. # We make a subdir and do the tests there. Otherwise we can end up
  3574. # making bogus files that we don't know about and never remove. For
  3575. # instance it was reported that on HP-UX the gcc test will end up
  3576. # making a dummy file named 'D' -- because '-MD' means "put the output
  3577. # in D".
  3578. rm -rf conftest.dir
  3579. mkdir conftest.dir
  3580. # Copy depcomp to subdir because otherwise we won't find it if we're
  3581. # using a relative directory.
  3582. cp "$am_depcomp" conftest.dir
  3583. cd conftest.dir
  3584. # We will build objects and dependencies in a subdirectory because
  3585. # it helps to detect inapplicable dependency modes. For instance
  3586. # both Tru64's cc and ICC support -MD to output dependencies as a
  3587. # side effect of compilation, but ICC will put the dependencies in
  3588. # the current directory while Tru64 will put them in the object
  3589. # directory.
  3590. mkdir sub
  3591. am_cv_CC_dependencies_compiler_type=none
  3592. if test "$am_compiler_list" = ""; then
  3593. am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
  3594. fi
  3595. am__universal=false
  3596. case " $depcc " in #(
  3597. *\ -arch\ *\ -arch\ *) am__universal=true ;;
  3598. esac
  3599. for depmode in $am_compiler_list; do
  3600. # Setup a source with many dependencies, because some compilers
  3601. # like to wrap large dependency lists on column 80 (with \), and
  3602. # we should not choose a depcomp mode which is confused by this.
  3603. #
  3604. # We need to recreate these files for each test, as the compiler may
  3605. # overwrite some of them when testing with obscure command lines.
  3606. # This happens at least with the AIX C compiler.
  3607. : > sub/conftest.c
  3608. for i in 1 2 3 4 5 6; do
  3609. echo '#include "conftst'$i'.h"' >> sub/conftest.c
  3610. # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
  3611. # Solaris 10 /bin/sh.
  3612. echo '/* dummy */' > sub/conftst$i.h
  3613. done
  3614. echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
  3615. # We check with '-c' and '-o' for the sake of the "dashmstdout"
  3616. # mode. It turns out that the SunPro C++ compiler does not properly
  3617. # handle '-M -o', and we need to detect this. Also, some Intel
  3618. # versions had trouble with output in subdirs.
  3619. am__obj=sub/conftest.${OBJEXT-o}
  3620. am__minus_obj="-o $am__obj"
  3621. case $depmode in
  3622. gcc)
  3623. # This depmode causes a compiler race in universal mode.
  3624. test "$am__universal" = false || continue
  3625. ;;
  3626. nosideeffect)
  3627. # After this tag, mechanisms are not by side-effect, so they'll
  3628. # only be used when explicitly requested.
  3629. if test "x$enable_dependency_tracking" = xyes; then
  3630. continue
  3631. else
  3632. break
  3633. fi
  3634. ;;
  3635. msvc7 | msvc7msys | msvisualcpp | msvcmsys)
  3636. # This compiler won't grok '-c -o', but also, the minuso test has
  3637. # not run yet. These depmodes are late enough in the game, and
  3638. # so weak that their functioning should not be impacted.
  3639. am__obj=conftest.${OBJEXT-o}
  3640. am__minus_obj=
  3641. ;;
  3642. none) break ;;
  3643. esac
  3644. if depmode=$depmode \
  3645. source=sub/conftest.c object=$am__obj \
  3646. depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
  3647. $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
  3648. >/dev/null 2>conftest.err &&
  3649. grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
  3650. grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
  3651. grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
  3652. ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
  3653. # icc doesn't choke on unknown options, it will just issue warnings
  3654. # or remarks (even with -Werror). So we grep stderr for any message
  3655. # that says an option was ignored or not supported.
  3656. # When given -MP, icc 7.0 and 7.1 complain thusly:
  3657. # icc: Command line warning: ignoring option '-M'; no argument required
  3658. # The diagnosis changed in icc 8.0:
  3659. # icc: Command line remark: option '-MP' not supported
  3660. if (grep 'ignoring option' conftest.err ||
  3661. grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
  3662. am_cv_CC_dependencies_compiler_type=$depmode
  3663. break
  3664. fi
  3665. fi
  3666. done
  3667. cd ..
  3668. rm -rf conftest.dir
  3669. else
  3670. am_cv_CC_dependencies_compiler_type=none
  3671. fi
  3672. fi
  3673. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
  3674. $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
  3675. CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
  3676. if
  3677. test "x$enable_dependency_tracking" != xno \
  3678. && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
  3679. am__fastdepCC_TRUE=
  3680. am__fastdepCC_FALSE='#'
  3681. else
  3682. am__fastdepCC_TRUE='#'
  3683. am__fastdepCC_FALSE=
  3684. fi
  3685. case `pwd` in
  3686. *\ * | *\ *)
  3687. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
  3688. $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
  3689. esac
  3690. macro_version='2.4.6'
  3691. macro_revision='2.4.6'
  3692. ltmain=$ac_aux_dir/ltmain.sh
  3693. # Make sure we can run config.sub.
  3694. $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
  3695. as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
  3696. { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
  3697. $as_echo_n "checking build system type... " >&6; }
  3698. if ${ac_cv_build+:} false; then :
  3699. $as_echo_n "(cached) " >&6
  3700. else
  3701. ac_build_alias=$build_alias
  3702. test "x$ac_build_alias" = x &&
  3703. ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
  3704. test "x$ac_build_alias" = x &&
  3705. as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
  3706. ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
  3707. as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
  3708. fi
  3709. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
  3710. $as_echo "$ac_cv_build" >&6; }
  3711. case $ac_cv_build in
  3712. *-*-*) ;;
  3713. *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
  3714. esac
  3715. build=$ac_cv_build
  3716. ac_save_IFS=$IFS; IFS='-'
  3717. set x $ac_cv_build
  3718. shift
  3719. build_cpu=$1
  3720. build_vendor=$2
  3721. shift; shift
  3722. # Remember, the first character of IFS is used to create $*,
  3723. # except with old shells:
  3724. build_os=$*
  3725. IFS=$ac_save_IFS
  3726. case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
  3727. { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
  3728. $as_echo_n "checking host system type... " >&6; }
  3729. if ${ac_cv_host+:} false; then :
  3730. $as_echo_n "(cached) " >&6
  3731. else
  3732. if test "x$host_alias" = x; then
  3733. ac_cv_host=$ac_cv_build
  3734. else
  3735. ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
  3736. as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
  3737. fi
  3738. fi
  3739. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
  3740. $as_echo "$ac_cv_host" >&6; }
  3741. case $ac_cv_host in
  3742. *-*-*) ;;
  3743. *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
  3744. esac
  3745. host=$ac_cv_host
  3746. ac_save_IFS=$IFS; IFS='-'
  3747. set x $ac_cv_host
  3748. shift
  3749. host_cpu=$1
  3750. host_vendor=$2
  3751. shift; shift
  3752. # Remember, the first character of IFS is used to create $*,
  3753. # except with old shells:
  3754. host_os=$*
  3755. IFS=$ac_save_IFS
  3756. case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
  3757. # Backslashify metacharacters that are still active within
  3758. # double-quoted strings.
  3759. sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
  3760. # Same as above, but do not quote variable references.
  3761. double_quote_subst='s/\(["`\\]\)/\\\1/g'
  3762. # Sed substitution to delay expansion of an escaped shell variable in a
  3763. # double_quote_subst'ed string.
  3764. delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
  3765. # Sed substitution to delay expansion of an escaped single quote.
  3766. delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
  3767. # Sed substitution to avoid accidental globbing in evaled expressions
  3768. no_glob_subst='s/\*/\\\*/g'
  3769. ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
  3770. ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
  3771. ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
  3772. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
  3773. $as_echo_n "checking how to print strings... " >&6; }
  3774. # Test print first, because it will be a builtin if present.
  3775. if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
  3776. test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
  3777. ECHO='print -r --'
  3778. elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
  3779. ECHO='printf %s\n'
  3780. else
  3781. # Use this function as a fallback that always works.
  3782. func_fallback_echo ()
  3783. {
  3784. eval 'cat <<_LTECHO_EOF
  3785. $1
  3786. _LTECHO_EOF'
  3787. }
  3788. ECHO='func_fallback_echo'
  3789. fi
  3790. # func_echo_all arg...
  3791. # Invoke $ECHO with all args, space-separated.
  3792. func_echo_all ()
  3793. {
  3794. $ECHO ""
  3795. }
  3796. case $ECHO in
  3797. printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
  3798. $as_echo "printf" >&6; } ;;
  3799. print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
  3800. $as_echo "print -r" >&6; } ;;
  3801. *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
  3802. $as_echo "cat" >&6; } ;;
  3803. esac
  3804. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
  3805. $as_echo_n "checking for a sed that does not truncate output... " >&6; }
  3806. if ${ac_cv_path_SED+:} false; then :
  3807. $as_echo_n "(cached) " >&6
  3808. else
  3809. ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
  3810. for ac_i in 1 2 3 4 5 6 7; do
  3811. ac_script="$ac_script$as_nl$ac_script"
  3812. done
  3813. echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
  3814. { ac_script=; unset ac_script;}
  3815. if test -z "$SED"; then
  3816. ac_path_SED_found=false
  3817. # Loop through the user's path and test for each of PROGNAME-LIST
  3818. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3819. for as_dir in $PATH
  3820. do
  3821. IFS=$as_save_IFS
  3822. test -z "$as_dir" && as_dir=.
  3823. for ac_prog in sed gsed; do
  3824. for ac_exec_ext in '' $ac_executable_extensions; do
  3825. ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
  3826. as_fn_executable_p "$ac_path_SED" || continue
  3827. # Check for GNU ac_path_SED and select it if it is found.
  3828. # Check for GNU $ac_path_SED
  3829. case `"$ac_path_SED" --version 2>&1` in
  3830. *GNU*)
  3831. ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
  3832. *)
  3833. ac_count=0
  3834. $as_echo_n 0123456789 >"conftest.in"
  3835. while :
  3836. do
  3837. cat "conftest.in" "conftest.in" >"conftest.tmp"
  3838. mv "conftest.tmp" "conftest.in"
  3839. cp "conftest.in" "conftest.nl"
  3840. $as_echo '' >> "conftest.nl"
  3841. "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
  3842. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  3843. as_fn_arith $ac_count + 1 && ac_count=$as_val
  3844. if test $ac_count -gt ${ac_path_SED_max-0}; then
  3845. # Best one so far, save it but keep looking for a better one
  3846. ac_cv_path_SED="$ac_path_SED"
  3847. ac_path_SED_max=$ac_count
  3848. fi
  3849. # 10*(2^10) chars as input seems more than enough
  3850. test $ac_count -gt 10 && break
  3851. done
  3852. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  3853. esac
  3854. $ac_path_SED_found && break 3
  3855. done
  3856. done
  3857. done
  3858. IFS=$as_save_IFS
  3859. if test -z "$ac_cv_path_SED"; then
  3860. as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
  3861. fi
  3862. else
  3863. ac_cv_path_SED=$SED
  3864. fi
  3865. fi
  3866. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
  3867. $as_echo "$ac_cv_path_SED" >&6; }
  3868. SED="$ac_cv_path_SED"
  3869. rm -f conftest.sed
  3870. test -z "$SED" && SED=sed
  3871. Xsed="$SED -e 1s/^X//"
  3872. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
  3873. $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
  3874. if ${ac_cv_path_GREP+:} false; then :
  3875. $as_echo_n "(cached) " >&6
  3876. else
  3877. if test -z "$GREP"; then
  3878. ac_path_GREP_found=false
  3879. # Loop through the user's path and test for each of PROGNAME-LIST
  3880. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3881. for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
  3882. do
  3883. IFS=$as_save_IFS
  3884. test -z "$as_dir" && as_dir=.
  3885. for ac_prog in grep ggrep; do
  3886. for ac_exec_ext in '' $ac_executable_extensions; do
  3887. ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
  3888. as_fn_executable_p "$ac_path_GREP" || continue
  3889. # Check for GNU ac_path_GREP and select it if it is found.
  3890. # Check for GNU $ac_path_GREP
  3891. case `"$ac_path_GREP" --version 2>&1` in
  3892. *GNU*)
  3893. ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
  3894. *)
  3895. ac_count=0
  3896. $as_echo_n 0123456789 >"conftest.in"
  3897. while :
  3898. do
  3899. cat "conftest.in" "conftest.in" >"conftest.tmp"
  3900. mv "conftest.tmp" "conftest.in"
  3901. cp "conftest.in" "conftest.nl"
  3902. $as_echo 'GREP' >> "conftest.nl"
  3903. "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
  3904. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  3905. as_fn_arith $ac_count + 1 && ac_count=$as_val
  3906. if test $ac_count -gt ${ac_path_GREP_max-0}; then
  3907. # Best one so far, save it but keep looking for a better one
  3908. ac_cv_path_GREP="$ac_path_GREP"
  3909. ac_path_GREP_max=$ac_count
  3910. fi
  3911. # 10*(2^10) chars as input seems more than enough
  3912. test $ac_count -gt 10 && break
  3913. done
  3914. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  3915. esac
  3916. $ac_path_GREP_found && break 3
  3917. done
  3918. done
  3919. done
  3920. IFS=$as_save_IFS
  3921. if test -z "$ac_cv_path_GREP"; then
  3922. as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
  3923. fi
  3924. else
  3925. ac_cv_path_GREP=$GREP
  3926. fi
  3927. fi
  3928. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
  3929. $as_echo "$ac_cv_path_GREP" >&6; }
  3930. GREP="$ac_cv_path_GREP"
  3931. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
  3932. $as_echo_n "checking for egrep... " >&6; }
  3933. if ${ac_cv_path_EGREP+:} false; then :
  3934. $as_echo_n "(cached) " >&6
  3935. else
  3936. if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
  3937. then ac_cv_path_EGREP="$GREP -E"
  3938. else
  3939. if test -z "$EGREP"; then
  3940. ac_path_EGREP_found=false
  3941. # Loop through the user's path and test for each of PROGNAME-LIST
  3942. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3943. for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
  3944. do
  3945. IFS=$as_save_IFS
  3946. test -z "$as_dir" && as_dir=.
  3947. for ac_prog in egrep; do
  3948. for ac_exec_ext in '' $ac_executable_extensions; do
  3949. ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
  3950. as_fn_executable_p "$ac_path_EGREP" || continue
  3951. # Check for GNU ac_path_EGREP and select it if it is found.
  3952. # Check for GNU $ac_path_EGREP
  3953. case `"$ac_path_EGREP" --version 2>&1` in
  3954. *GNU*)
  3955. ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
  3956. *)
  3957. ac_count=0
  3958. $as_echo_n 0123456789 >"conftest.in"
  3959. while :
  3960. do
  3961. cat "conftest.in" "conftest.in" >"conftest.tmp"
  3962. mv "conftest.tmp" "conftest.in"
  3963. cp "conftest.in" "conftest.nl"
  3964. $as_echo 'EGREP' >> "conftest.nl"
  3965. "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
  3966. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  3967. as_fn_arith $ac_count + 1 && ac_count=$as_val
  3968. if test $ac_count -gt ${ac_path_EGREP_max-0}; then
  3969. # Best one so far, save it but keep looking for a better one
  3970. ac_cv_path_EGREP="$ac_path_EGREP"
  3971. ac_path_EGREP_max=$ac_count
  3972. fi
  3973. # 10*(2^10) chars as input seems more than enough
  3974. test $ac_count -gt 10 && break
  3975. done
  3976. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  3977. esac
  3978. $ac_path_EGREP_found && break 3
  3979. done
  3980. done
  3981. done
  3982. IFS=$as_save_IFS
  3983. if test -z "$ac_cv_path_EGREP"; then
  3984. as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
  3985. fi
  3986. else
  3987. ac_cv_path_EGREP=$EGREP
  3988. fi
  3989. fi
  3990. fi
  3991. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
  3992. $as_echo "$ac_cv_path_EGREP" >&6; }
  3993. EGREP="$ac_cv_path_EGREP"
  3994. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
  3995. $as_echo_n "checking for fgrep... " >&6; }
  3996. if ${ac_cv_path_FGREP+:} false; then :
  3997. $as_echo_n "(cached) " >&6
  3998. else
  3999. if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
  4000. then ac_cv_path_FGREP="$GREP -F"
  4001. else
  4002. if test -z "$FGREP"; then
  4003. ac_path_FGREP_found=false
  4004. # Loop through the user's path and test for each of PROGNAME-LIST
  4005. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4006. for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
  4007. do
  4008. IFS=$as_save_IFS
  4009. test -z "$as_dir" && as_dir=.
  4010. for ac_prog in fgrep; do
  4011. for ac_exec_ext in '' $ac_executable_extensions; do
  4012. ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
  4013. as_fn_executable_p "$ac_path_FGREP" || continue
  4014. # Check for GNU ac_path_FGREP and select it if it is found.
  4015. # Check for GNU $ac_path_FGREP
  4016. case `"$ac_path_FGREP" --version 2>&1` in
  4017. *GNU*)
  4018. ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
  4019. *)
  4020. ac_count=0
  4021. $as_echo_n 0123456789 >"conftest.in"
  4022. while :
  4023. do
  4024. cat "conftest.in" "conftest.in" >"conftest.tmp"
  4025. mv "conftest.tmp" "conftest.in"
  4026. cp "conftest.in" "conftest.nl"
  4027. $as_echo 'FGREP' >> "conftest.nl"
  4028. "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
  4029. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  4030. as_fn_arith $ac_count + 1 && ac_count=$as_val
  4031. if test $ac_count -gt ${ac_path_FGREP_max-0}; then
  4032. # Best one so far, save it but keep looking for a better one
  4033. ac_cv_path_FGREP="$ac_path_FGREP"
  4034. ac_path_FGREP_max=$ac_count
  4035. fi
  4036. # 10*(2^10) chars as input seems more than enough
  4037. test $ac_count -gt 10 && break
  4038. done
  4039. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  4040. esac
  4041. $ac_path_FGREP_found && break 3
  4042. done
  4043. done
  4044. done
  4045. IFS=$as_save_IFS
  4046. if test -z "$ac_cv_path_FGREP"; then
  4047. as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
  4048. fi
  4049. else
  4050. ac_cv_path_FGREP=$FGREP
  4051. fi
  4052. fi
  4053. fi
  4054. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
  4055. $as_echo "$ac_cv_path_FGREP" >&6; }
  4056. FGREP="$ac_cv_path_FGREP"
  4057. test -z "$GREP" && GREP=grep
  4058. # Check whether --with-gnu-ld was given.
  4059. if test "${with_gnu_ld+set}" = set; then :
  4060. withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes
  4061. else
  4062. with_gnu_ld=no
  4063. fi
  4064. ac_prog=ld
  4065. if test yes = "$GCC"; then
  4066. # Check if gcc -print-prog-name=ld gives a path.
  4067. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
  4068. $as_echo_n "checking for ld used by $CC... " >&6; }
  4069. case $host in
  4070. *-*-mingw*)
  4071. # gcc leaves a trailing carriage return, which upsets mingw
  4072. ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
  4073. *)
  4074. ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
  4075. esac
  4076. case $ac_prog in
  4077. # Accept absolute paths.
  4078. [\\/]* | ?:[\\/]*)
  4079. re_direlt='/[^/][^/]*/\.\./'
  4080. # Canonicalize the pathname of ld
  4081. ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
  4082. while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
  4083. ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
  4084. done
  4085. test -z "$LD" && LD=$ac_prog
  4086. ;;
  4087. "")
  4088. # If it fails, then pretend we aren't using GCC.
  4089. ac_prog=ld
  4090. ;;
  4091. *)
  4092. # If it is relative, then search for the first ld in PATH.
  4093. with_gnu_ld=unknown
  4094. ;;
  4095. esac
  4096. elif test yes = "$with_gnu_ld"; then
  4097. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
  4098. $as_echo_n "checking for GNU ld... " >&6; }
  4099. else
  4100. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
  4101. $as_echo_n "checking for non-GNU ld... " >&6; }
  4102. fi
  4103. if ${lt_cv_path_LD+:} false; then :
  4104. $as_echo_n "(cached) " >&6
  4105. else
  4106. if test -z "$LD"; then
  4107. lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
  4108. for ac_dir in $PATH; do
  4109. IFS=$lt_save_ifs
  4110. test -z "$ac_dir" && ac_dir=.
  4111. if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
  4112. lt_cv_path_LD=$ac_dir/$ac_prog
  4113. # Check to see if the program is GNU ld. I'd rather use --version,
  4114. # but apparently some variants of GNU ld only accept -v.
  4115. # Break only if it was the GNU/non-GNU ld that we prefer.
  4116. case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
  4117. *GNU* | *'with BFD'*)
  4118. test no != "$with_gnu_ld" && break
  4119. ;;
  4120. *)
  4121. test yes != "$with_gnu_ld" && break
  4122. ;;
  4123. esac
  4124. fi
  4125. done
  4126. IFS=$lt_save_ifs
  4127. else
  4128. lt_cv_path_LD=$LD # Let the user override the test with a path.
  4129. fi
  4130. fi
  4131. LD=$lt_cv_path_LD
  4132. if test -n "$LD"; then
  4133. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
  4134. $as_echo "$LD" >&6; }
  4135. else
  4136. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4137. $as_echo "no" >&6; }
  4138. fi
  4139. test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
  4140. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
  4141. $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
  4142. if ${lt_cv_prog_gnu_ld+:} false; then :
  4143. $as_echo_n "(cached) " >&6
  4144. else
  4145. # I'd rather use --version here, but apparently some GNU lds only accept -v.
  4146. case `$LD -v 2>&1 </dev/null` in
  4147. *GNU* | *'with BFD'*)
  4148. lt_cv_prog_gnu_ld=yes
  4149. ;;
  4150. *)
  4151. lt_cv_prog_gnu_ld=no
  4152. ;;
  4153. esac
  4154. fi
  4155. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
  4156. $as_echo "$lt_cv_prog_gnu_ld" >&6; }
  4157. with_gnu_ld=$lt_cv_prog_gnu_ld
  4158. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
  4159. $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
  4160. if ${lt_cv_path_NM+:} false; then :
  4161. $as_echo_n "(cached) " >&6
  4162. else
  4163. if test -n "$NM"; then
  4164. # Let the user override the test.
  4165. lt_cv_path_NM=$NM
  4166. else
  4167. lt_nm_to_check=${ac_tool_prefix}nm
  4168. if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
  4169. lt_nm_to_check="$lt_nm_to_check nm"
  4170. fi
  4171. for lt_tmp_nm in $lt_nm_to_check; do
  4172. lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
  4173. for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
  4174. IFS=$lt_save_ifs
  4175. test -z "$ac_dir" && ac_dir=.
  4176. tmp_nm=$ac_dir/$lt_tmp_nm
  4177. if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext"; then
  4178. # Check to see if the nm accepts a BSD-compat flag.
  4179. # Adding the 'sed 1q' prevents false positives on HP-UX, which says:
  4180. # nm: unknown option "B" ignored
  4181. # Tru64's nm complains that /dev/null is an invalid object file
  4182. # MSYS converts /dev/null to NUL, MinGW nm treats NUL as empty
  4183. case $build_os in
  4184. mingw*) lt_bad_file=conftest.nm/nofile ;;
  4185. *) lt_bad_file=/dev/null ;;
  4186. esac
  4187. case `"$tmp_nm" -B $lt_bad_file 2>&1 | sed '1q'` in
  4188. *$lt_bad_file* | *'Invalid file or object type'*)
  4189. lt_cv_path_NM="$tmp_nm -B"
  4190. break 2
  4191. ;;
  4192. *)
  4193. case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
  4194. */dev/null*)
  4195. lt_cv_path_NM="$tmp_nm -p"
  4196. break 2
  4197. ;;
  4198. *)
  4199. lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
  4200. continue # so that we can try to find one that supports BSD flags
  4201. ;;
  4202. esac
  4203. ;;
  4204. esac
  4205. fi
  4206. done
  4207. IFS=$lt_save_ifs
  4208. done
  4209. : ${lt_cv_path_NM=no}
  4210. fi
  4211. fi
  4212. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
  4213. $as_echo "$lt_cv_path_NM" >&6; }
  4214. if test no != "$lt_cv_path_NM"; then
  4215. NM=$lt_cv_path_NM
  4216. else
  4217. # Didn't find any BSD compatible name lister, look for dumpbin.
  4218. if test -n "$DUMPBIN"; then :
  4219. # Let the user override the test.
  4220. else
  4221. if test -n "$ac_tool_prefix"; then
  4222. for ac_prog in dumpbin "link -dump"
  4223. do
  4224. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  4225. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  4226. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4227. $as_echo_n "checking for $ac_word... " >&6; }
  4228. if ${ac_cv_prog_DUMPBIN+:} false; then :
  4229. $as_echo_n "(cached) " >&6
  4230. else
  4231. if test -n "$DUMPBIN"; then
  4232. ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
  4233. else
  4234. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4235. for as_dir in $PATH
  4236. do
  4237. IFS=$as_save_IFS
  4238. test -z "$as_dir" && as_dir=.
  4239. for ac_exec_ext in '' $ac_executable_extensions; do
  4240. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  4241. ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
  4242. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4243. break 2
  4244. fi
  4245. done
  4246. done
  4247. IFS=$as_save_IFS
  4248. fi
  4249. fi
  4250. DUMPBIN=$ac_cv_prog_DUMPBIN
  4251. if test -n "$DUMPBIN"; then
  4252. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
  4253. $as_echo "$DUMPBIN" >&6; }
  4254. else
  4255. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4256. $as_echo "no" >&6; }
  4257. fi
  4258. test -n "$DUMPBIN" && break
  4259. done
  4260. fi
  4261. if test -z "$DUMPBIN"; then
  4262. ac_ct_DUMPBIN=$DUMPBIN
  4263. for ac_prog in dumpbin "link -dump"
  4264. do
  4265. # Extract the first word of "$ac_prog", so it can be a program name with args.
  4266. set dummy $ac_prog; ac_word=$2
  4267. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4268. $as_echo_n "checking for $ac_word... " >&6; }
  4269. if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
  4270. $as_echo_n "(cached) " >&6
  4271. else
  4272. if test -n "$ac_ct_DUMPBIN"; then
  4273. ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
  4274. else
  4275. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4276. for as_dir in $PATH
  4277. do
  4278. IFS=$as_save_IFS
  4279. test -z "$as_dir" && as_dir=.
  4280. for ac_exec_ext in '' $ac_executable_extensions; do
  4281. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  4282. ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
  4283. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4284. break 2
  4285. fi
  4286. done
  4287. done
  4288. IFS=$as_save_IFS
  4289. fi
  4290. fi
  4291. ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
  4292. if test -n "$ac_ct_DUMPBIN"; then
  4293. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
  4294. $as_echo "$ac_ct_DUMPBIN" >&6; }
  4295. else
  4296. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4297. $as_echo "no" >&6; }
  4298. fi
  4299. test -n "$ac_ct_DUMPBIN" && break
  4300. done
  4301. if test "x$ac_ct_DUMPBIN" = x; then
  4302. DUMPBIN=":"
  4303. else
  4304. case $cross_compiling:$ac_tool_warned in
  4305. yes:)
  4306. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  4307. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  4308. ac_tool_warned=yes ;;
  4309. esac
  4310. DUMPBIN=$ac_ct_DUMPBIN
  4311. fi
  4312. fi
  4313. case `$DUMPBIN -symbols -headers /dev/null 2>&1 | sed '1q'` in
  4314. *COFF*)
  4315. DUMPBIN="$DUMPBIN -symbols -headers"
  4316. ;;
  4317. *)
  4318. DUMPBIN=:
  4319. ;;
  4320. esac
  4321. fi
  4322. if test : != "$DUMPBIN"; then
  4323. NM=$DUMPBIN
  4324. fi
  4325. fi
  4326. test -z "$NM" && NM=nm
  4327. { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
  4328. $as_echo_n "checking the name lister ($NM) interface... " >&6; }
  4329. if ${lt_cv_nm_interface+:} false; then :
  4330. $as_echo_n "(cached) " >&6
  4331. else
  4332. lt_cv_nm_interface="BSD nm"
  4333. echo "int some_variable = 0;" > conftest.$ac_ext
  4334. (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
  4335. (eval "$ac_compile" 2>conftest.err)
  4336. cat conftest.err >&5
  4337. (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
  4338. (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
  4339. cat conftest.err >&5
  4340. (eval echo "\"\$as_me:$LINENO: output\"" >&5)
  4341. cat conftest.out >&5
  4342. if $GREP 'External.*some_variable' conftest.out > /dev/null; then
  4343. lt_cv_nm_interface="MS dumpbin"
  4344. fi
  4345. rm -f conftest*
  4346. fi
  4347. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
  4348. $as_echo "$lt_cv_nm_interface" >&6; }
  4349. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
  4350. $as_echo_n "checking whether ln -s works... " >&6; }
  4351. LN_S=$as_ln_s
  4352. if test "$LN_S" = "ln -s"; then
  4353. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  4354. $as_echo "yes" >&6; }
  4355. else
  4356. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
  4357. $as_echo "no, using $LN_S" >&6; }
  4358. fi
  4359. # find the maximum length of command line arguments
  4360. { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
  4361. $as_echo_n "checking the maximum length of command line arguments... " >&6; }
  4362. if ${lt_cv_sys_max_cmd_len+:} false; then :
  4363. $as_echo_n "(cached) " >&6
  4364. else
  4365. i=0
  4366. teststring=ABCD
  4367. case $build_os in
  4368. msdosdjgpp*)
  4369. # On DJGPP, this test can blow up pretty badly due to problems in libc
  4370. # (any single argument exceeding 2000 bytes causes a buffer overrun
  4371. # during glob expansion). Even if it were fixed, the result of this
  4372. # check would be larger than it should be.
  4373. lt_cv_sys_max_cmd_len=12288; # 12K is about right
  4374. ;;
  4375. gnu*)
  4376. # Under GNU Hurd, this test is not required because there is
  4377. # no limit to the length of command line arguments.
  4378. # Libtool will interpret -1 as no limit whatsoever
  4379. lt_cv_sys_max_cmd_len=-1;
  4380. ;;
  4381. cygwin* | mingw* | cegcc*)
  4382. # On Win9x/ME, this test blows up -- it succeeds, but takes
  4383. # about 5 minutes as the teststring grows exponentially.
  4384. # Worse, since 9x/ME are not pre-emptively multitasking,
  4385. # you end up with a "frozen" computer, even though with patience
  4386. # the test eventually succeeds (with a max line length of 256k).
  4387. # Instead, let's just punt: use the minimum linelength reported by
  4388. # all of the supported platforms: 8192 (on NT/2K/XP).
  4389. lt_cv_sys_max_cmd_len=8192;
  4390. ;;
  4391. mint*)
  4392. # On MiNT this can take a long time and run out of memory.
  4393. lt_cv_sys_max_cmd_len=8192;
  4394. ;;
  4395. amigaos*)
  4396. # On AmigaOS with pdksh, this test takes hours, literally.
  4397. # So we just punt and use a minimum line length of 8192.
  4398. lt_cv_sys_max_cmd_len=8192;
  4399. ;;
  4400. bitrig* | darwin* | dragonfly* | freebsd* | netbsd* | openbsd*)
  4401. # This has been around since 386BSD, at least. Likely further.
  4402. if test -x /sbin/sysctl; then
  4403. lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
  4404. elif test -x /usr/sbin/sysctl; then
  4405. lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
  4406. else
  4407. lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
  4408. fi
  4409. # And add a safety zone
  4410. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
  4411. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
  4412. ;;
  4413. interix*)
  4414. # We know the value 262144 and hardcode it with a safety zone (like BSD)
  4415. lt_cv_sys_max_cmd_len=196608
  4416. ;;
  4417. os2*)
  4418. # The test takes a long time on OS/2.
  4419. lt_cv_sys_max_cmd_len=8192
  4420. ;;
  4421. osf*)
  4422. # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
  4423. # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
  4424. # nice to cause kernel panics so lets avoid the loop below.
  4425. # First set a reasonable default.
  4426. lt_cv_sys_max_cmd_len=16384
  4427. #
  4428. if test -x /sbin/sysconfig; then
  4429. case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
  4430. *1*) lt_cv_sys_max_cmd_len=-1 ;;
  4431. esac
  4432. fi
  4433. ;;
  4434. sco3.2v5*)
  4435. lt_cv_sys_max_cmd_len=102400
  4436. ;;
  4437. sysv5* | sco5v6* | sysv4.2uw2*)
  4438. kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
  4439. if test -n "$kargmax"; then
  4440. lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
  4441. else
  4442. lt_cv_sys_max_cmd_len=32768
  4443. fi
  4444. ;;
  4445. *)
  4446. lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
  4447. if test -n "$lt_cv_sys_max_cmd_len" && \
  4448. test undefined != "$lt_cv_sys_max_cmd_len"; then
  4449. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
  4450. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
  4451. else
  4452. # Make teststring a little bigger before we do anything with it.
  4453. # a 1K string should be a reasonable start.
  4454. for i in 1 2 3 4 5 6 7 8; do
  4455. teststring=$teststring$teststring
  4456. done
  4457. SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
  4458. # If test is not a shell built-in, we'll probably end up computing a
  4459. # maximum length that is only half of the actual maximum length, but
  4460. # we can't tell.
  4461. while { test X`env echo "$teststring$teststring" 2>/dev/null` \
  4462. = "X$teststring$teststring"; } >/dev/null 2>&1 &&
  4463. test 17 != "$i" # 1/2 MB should be enough
  4464. do
  4465. i=`expr $i + 1`
  4466. teststring=$teststring$teststring
  4467. done
  4468. # Only check the string length outside the loop.
  4469. lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
  4470. teststring=
  4471. # Add a significant safety factor because C++ compilers can tack on
  4472. # massive amounts of additional arguments before passing them to the
  4473. # linker. It appears as though 1/2 is a usable value.
  4474. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
  4475. fi
  4476. ;;
  4477. esac
  4478. fi
  4479. if test -n "$lt_cv_sys_max_cmd_len"; then
  4480. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
  4481. $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
  4482. else
  4483. { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
  4484. $as_echo "none" >&6; }
  4485. fi
  4486. max_cmd_len=$lt_cv_sys_max_cmd_len
  4487. : ${CP="cp -f"}
  4488. : ${MV="mv -f"}
  4489. : ${RM="rm -f"}
  4490. if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
  4491. lt_unset=unset
  4492. else
  4493. lt_unset=false
  4494. fi
  4495. # test EBCDIC or ASCII
  4496. case `echo X|tr X '\101'` in
  4497. A) # ASCII based system
  4498. # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
  4499. lt_SP2NL='tr \040 \012'
  4500. lt_NL2SP='tr \015\012 \040\040'
  4501. ;;
  4502. *) # EBCDIC based system
  4503. lt_SP2NL='tr \100 \n'
  4504. lt_NL2SP='tr \r\n \100\100'
  4505. ;;
  4506. esac
  4507. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
  4508. $as_echo_n "checking how to convert $build file names to $host format... " >&6; }
  4509. if ${lt_cv_to_host_file_cmd+:} false; then :
  4510. $as_echo_n "(cached) " >&6
  4511. else
  4512. case $host in
  4513. *-*-mingw* )
  4514. case $build in
  4515. *-*-mingw* ) # actually msys
  4516. lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
  4517. ;;
  4518. *-*-cygwin* )
  4519. lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
  4520. ;;
  4521. * ) # otherwise, assume *nix
  4522. lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
  4523. ;;
  4524. esac
  4525. ;;
  4526. *-*-cygwin* )
  4527. case $build in
  4528. *-*-mingw* ) # actually msys
  4529. lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
  4530. ;;
  4531. *-*-cygwin* )
  4532. lt_cv_to_host_file_cmd=func_convert_file_noop
  4533. ;;
  4534. * ) # otherwise, assume *nix
  4535. lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
  4536. ;;
  4537. esac
  4538. ;;
  4539. * ) # unhandled hosts (and "normal" native builds)
  4540. lt_cv_to_host_file_cmd=func_convert_file_noop
  4541. ;;
  4542. esac
  4543. fi
  4544. to_host_file_cmd=$lt_cv_to_host_file_cmd
  4545. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
  4546. $as_echo "$lt_cv_to_host_file_cmd" >&6; }
  4547. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
  4548. $as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
  4549. if ${lt_cv_to_tool_file_cmd+:} false; then :
  4550. $as_echo_n "(cached) " >&6
  4551. else
  4552. #assume ordinary cross tools, or native build.
  4553. lt_cv_to_tool_file_cmd=func_convert_file_noop
  4554. case $host in
  4555. *-*-mingw* )
  4556. case $build in
  4557. *-*-mingw* ) # actually msys
  4558. lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
  4559. ;;
  4560. esac
  4561. ;;
  4562. esac
  4563. fi
  4564. to_tool_file_cmd=$lt_cv_to_tool_file_cmd
  4565. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
  4566. $as_echo "$lt_cv_to_tool_file_cmd" >&6; }
  4567. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
  4568. $as_echo_n "checking for $LD option to reload object files... " >&6; }
  4569. if ${lt_cv_ld_reload_flag+:} false; then :
  4570. $as_echo_n "(cached) " >&6
  4571. else
  4572. lt_cv_ld_reload_flag='-r'
  4573. fi
  4574. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
  4575. $as_echo "$lt_cv_ld_reload_flag" >&6; }
  4576. reload_flag=$lt_cv_ld_reload_flag
  4577. case $reload_flag in
  4578. "" | " "*) ;;
  4579. *) reload_flag=" $reload_flag" ;;
  4580. esac
  4581. reload_cmds='$LD$reload_flag -o $output$reload_objs'
  4582. case $host_os in
  4583. cygwin* | mingw* | pw32* | cegcc*)
  4584. if test yes != "$GCC"; then
  4585. reload_cmds=false
  4586. fi
  4587. ;;
  4588. darwin*)
  4589. if test yes = "$GCC"; then
  4590. reload_cmds='$LTCC $LTCFLAGS -nostdlib $wl-r -o $output$reload_objs'
  4591. else
  4592. reload_cmds='$LD$reload_flag -o $output$reload_objs'
  4593. fi
  4594. ;;
  4595. esac
  4596. if test -n "$ac_tool_prefix"; then
  4597. # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
  4598. set dummy ${ac_tool_prefix}objdump; ac_word=$2
  4599. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4600. $as_echo_n "checking for $ac_word... " >&6; }
  4601. if ${ac_cv_prog_OBJDUMP+:} false; then :
  4602. $as_echo_n "(cached) " >&6
  4603. else
  4604. if test -n "$OBJDUMP"; then
  4605. ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
  4606. else
  4607. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4608. for as_dir in $PATH
  4609. do
  4610. IFS=$as_save_IFS
  4611. test -z "$as_dir" && as_dir=.
  4612. for ac_exec_ext in '' $ac_executable_extensions; do
  4613. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  4614. ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
  4615. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4616. break 2
  4617. fi
  4618. done
  4619. done
  4620. IFS=$as_save_IFS
  4621. fi
  4622. fi
  4623. OBJDUMP=$ac_cv_prog_OBJDUMP
  4624. if test -n "$OBJDUMP"; then
  4625. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
  4626. $as_echo "$OBJDUMP" >&6; }
  4627. else
  4628. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4629. $as_echo "no" >&6; }
  4630. fi
  4631. fi
  4632. if test -z "$ac_cv_prog_OBJDUMP"; then
  4633. ac_ct_OBJDUMP=$OBJDUMP
  4634. # Extract the first word of "objdump", so it can be a program name with args.
  4635. set dummy objdump; ac_word=$2
  4636. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4637. $as_echo_n "checking for $ac_word... " >&6; }
  4638. if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
  4639. $as_echo_n "(cached) " >&6
  4640. else
  4641. if test -n "$ac_ct_OBJDUMP"; then
  4642. ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
  4643. else
  4644. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4645. for as_dir in $PATH
  4646. do
  4647. IFS=$as_save_IFS
  4648. test -z "$as_dir" && as_dir=.
  4649. for ac_exec_ext in '' $ac_executable_extensions; do
  4650. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  4651. ac_cv_prog_ac_ct_OBJDUMP="objdump"
  4652. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4653. break 2
  4654. fi
  4655. done
  4656. done
  4657. IFS=$as_save_IFS
  4658. fi
  4659. fi
  4660. ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
  4661. if test -n "$ac_ct_OBJDUMP"; then
  4662. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
  4663. $as_echo "$ac_ct_OBJDUMP" >&6; }
  4664. else
  4665. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4666. $as_echo "no" >&6; }
  4667. fi
  4668. if test "x$ac_ct_OBJDUMP" = x; then
  4669. OBJDUMP="false"
  4670. else
  4671. case $cross_compiling:$ac_tool_warned in
  4672. yes:)
  4673. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  4674. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  4675. ac_tool_warned=yes ;;
  4676. esac
  4677. OBJDUMP=$ac_ct_OBJDUMP
  4678. fi
  4679. else
  4680. OBJDUMP="$ac_cv_prog_OBJDUMP"
  4681. fi
  4682. test -z "$OBJDUMP" && OBJDUMP=objdump
  4683. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
  4684. $as_echo_n "checking how to recognize dependent libraries... " >&6; }
  4685. if ${lt_cv_deplibs_check_method+:} false; then :
  4686. $as_echo_n "(cached) " >&6
  4687. else
  4688. lt_cv_file_magic_cmd='$MAGIC_CMD'
  4689. lt_cv_file_magic_test_file=
  4690. lt_cv_deplibs_check_method='unknown'
  4691. # Need to set the preceding variable on all platforms that support
  4692. # interlibrary dependencies.
  4693. # 'none' -- dependencies not supported.
  4694. # 'unknown' -- same as none, but documents that we really don't know.
  4695. # 'pass_all' -- all dependencies passed with no checks.
  4696. # 'test_compile' -- check by making test program.
  4697. # 'file_magic [[regex]]' -- check by looking for files in library path
  4698. # that responds to the $file_magic_cmd with a given extended regex.
  4699. # If you have 'file' or equivalent on your system and you're not sure
  4700. # whether 'pass_all' will *always* work, you probably want this one.
  4701. case $host_os in
  4702. aix[4-9]*)
  4703. lt_cv_deplibs_check_method=pass_all
  4704. ;;
  4705. beos*)
  4706. lt_cv_deplibs_check_method=pass_all
  4707. ;;
  4708. bsdi[45]*)
  4709. lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
  4710. lt_cv_file_magic_cmd='/usr/bin/file -L'
  4711. lt_cv_file_magic_test_file=/shlib/libc.so
  4712. ;;
  4713. cygwin*)
  4714. # func_win32_libid is a shell function defined in ltmain.sh
  4715. lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
  4716. lt_cv_file_magic_cmd='func_win32_libid'
  4717. ;;
  4718. mingw* | pw32*)
  4719. # Base MSYS/MinGW do not provide the 'file' command needed by
  4720. # func_win32_libid shell function, so use a weaker test based on 'objdump',
  4721. # unless we find 'file', for example because we are cross-compiling.
  4722. if ( file / ) >/dev/null 2>&1; then
  4723. lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
  4724. lt_cv_file_magic_cmd='func_win32_libid'
  4725. else
  4726. # Keep this pattern in sync with the one in func_win32_libid.
  4727. lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
  4728. lt_cv_file_magic_cmd='$OBJDUMP -f'
  4729. fi
  4730. ;;
  4731. cegcc*)
  4732. # use the weaker test based on 'objdump'. See mingw*.
  4733. lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
  4734. lt_cv_file_magic_cmd='$OBJDUMP -f'
  4735. ;;
  4736. darwin* | rhapsody*)
  4737. lt_cv_deplibs_check_method=pass_all
  4738. ;;
  4739. freebsd* | dragonfly*)
  4740. if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
  4741. case $host_cpu in
  4742. i*86 )
  4743. # Not sure whether the presence of OpenBSD here was a mistake.
  4744. # Let's accept both of them until this is cleared up.
  4745. lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
  4746. lt_cv_file_magic_cmd=/usr/bin/file
  4747. lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
  4748. ;;
  4749. esac
  4750. else
  4751. lt_cv_deplibs_check_method=pass_all
  4752. fi
  4753. ;;
  4754. haiku*)
  4755. lt_cv_deplibs_check_method=pass_all
  4756. ;;
  4757. hpux10.20* | hpux11*)
  4758. lt_cv_file_magic_cmd=/usr/bin/file
  4759. case $host_cpu in
  4760. ia64*)
  4761. lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
  4762. lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
  4763. ;;
  4764. hppa*64*)
  4765. 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]'
  4766. lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
  4767. ;;
  4768. *)
  4769. lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
  4770. lt_cv_file_magic_test_file=/usr/lib/libc.sl
  4771. ;;
  4772. esac
  4773. ;;
  4774. interix[3-9]*)
  4775. # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
  4776. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
  4777. ;;
  4778. irix5* | irix6* | nonstopux*)
  4779. case $LD in
  4780. *-32|*"-32 ") libmagic=32-bit;;
  4781. *-n32|*"-n32 ") libmagic=N32;;
  4782. *-64|*"-64 ") libmagic=64-bit;;
  4783. *) libmagic=never-match;;
  4784. esac
  4785. lt_cv_deplibs_check_method=pass_all
  4786. ;;
  4787. # This must be glibc/ELF.
  4788. linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
  4789. lt_cv_deplibs_check_method=pass_all
  4790. ;;
  4791. netbsd* | netbsdelf*-gnu)
  4792. if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
  4793. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
  4794. else
  4795. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
  4796. fi
  4797. ;;
  4798. newos6*)
  4799. lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
  4800. lt_cv_file_magic_cmd=/usr/bin/file
  4801. lt_cv_file_magic_test_file=/usr/lib/libnls.so
  4802. ;;
  4803. *nto* | *qnx*)
  4804. lt_cv_deplibs_check_method=pass_all
  4805. ;;
  4806. openbsd* | bitrig*)
  4807. if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
  4808. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
  4809. else
  4810. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
  4811. fi
  4812. ;;
  4813. osf3* | osf4* | osf5*)
  4814. lt_cv_deplibs_check_method=pass_all
  4815. ;;
  4816. rdos*)
  4817. lt_cv_deplibs_check_method=pass_all
  4818. ;;
  4819. solaris*)
  4820. lt_cv_deplibs_check_method=pass_all
  4821. ;;
  4822. sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
  4823. lt_cv_deplibs_check_method=pass_all
  4824. ;;
  4825. sysv4 | sysv4.3*)
  4826. case $host_vendor in
  4827. motorola)
  4828. 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]'
  4829. lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
  4830. ;;
  4831. ncr)
  4832. lt_cv_deplibs_check_method=pass_all
  4833. ;;
  4834. sequent)
  4835. lt_cv_file_magic_cmd='/bin/file'
  4836. lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
  4837. ;;
  4838. sni)
  4839. lt_cv_file_magic_cmd='/bin/file'
  4840. lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
  4841. lt_cv_file_magic_test_file=/lib/libc.so
  4842. ;;
  4843. siemens)
  4844. lt_cv_deplibs_check_method=pass_all
  4845. ;;
  4846. pc)
  4847. lt_cv_deplibs_check_method=pass_all
  4848. ;;
  4849. esac
  4850. ;;
  4851. tpf*)
  4852. lt_cv_deplibs_check_method=pass_all
  4853. ;;
  4854. os2*)
  4855. lt_cv_deplibs_check_method=pass_all
  4856. ;;
  4857. esac
  4858. fi
  4859. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
  4860. $as_echo "$lt_cv_deplibs_check_method" >&6; }
  4861. file_magic_glob=
  4862. want_nocaseglob=no
  4863. if test "$build" = "$host"; then
  4864. case $host_os in
  4865. mingw* | pw32*)
  4866. if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
  4867. want_nocaseglob=yes
  4868. else
  4869. file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
  4870. fi
  4871. ;;
  4872. esac
  4873. fi
  4874. file_magic_cmd=$lt_cv_file_magic_cmd
  4875. deplibs_check_method=$lt_cv_deplibs_check_method
  4876. test -z "$deplibs_check_method" && deplibs_check_method=unknown
  4877. if test -n "$ac_tool_prefix"; then
  4878. # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
  4879. set dummy ${ac_tool_prefix}dlltool; ac_word=$2
  4880. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4881. $as_echo_n "checking for $ac_word... " >&6; }
  4882. if ${ac_cv_prog_DLLTOOL+:} false; then :
  4883. $as_echo_n "(cached) " >&6
  4884. else
  4885. if test -n "$DLLTOOL"; then
  4886. ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
  4887. else
  4888. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4889. for as_dir in $PATH
  4890. do
  4891. IFS=$as_save_IFS
  4892. test -z "$as_dir" && as_dir=.
  4893. for ac_exec_ext in '' $ac_executable_extensions; do
  4894. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  4895. ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
  4896. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4897. break 2
  4898. fi
  4899. done
  4900. done
  4901. IFS=$as_save_IFS
  4902. fi
  4903. fi
  4904. DLLTOOL=$ac_cv_prog_DLLTOOL
  4905. if test -n "$DLLTOOL"; then
  4906. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
  4907. $as_echo "$DLLTOOL" >&6; }
  4908. else
  4909. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4910. $as_echo "no" >&6; }
  4911. fi
  4912. fi
  4913. if test -z "$ac_cv_prog_DLLTOOL"; then
  4914. ac_ct_DLLTOOL=$DLLTOOL
  4915. # Extract the first word of "dlltool", so it can be a program name with args.
  4916. set dummy dlltool; ac_word=$2
  4917. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4918. $as_echo_n "checking for $ac_word... " >&6; }
  4919. if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
  4920. $as_echo_n "(cached) " >&6
  4921. else
  4922. if test -n "$ac_ct_DLLTOOL"; then
  4923. ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
  4924. else
  4925. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4926. for as_dir in $PATH
  4927. do
  4928. IFS=$as_save_IFS
  4929. test -z "$as_dir" && as_dir=.
  4930. for ac_exec_ext in '' $ac_executable_extensions; do
  4931. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  4932. ac_cv_prog_ac_ct_DLLTOOL="dlltool"
  4933. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4934. break 2
  4935. fi
  4936. done
  4937. done
  4938. IFS=$as_save_IFS
  4939. fi
  4940. fi
  4941. ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
  4942. if test -n "$ac_ct_DLLTOOL"; then
  4943. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
  4944. $as_echo "$ac_ct_DLLTOOL" >&6; }
  4945. else
  4946. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4947. $as_echo "no" >&6; }
  4948. fi
  4949. if test "x$ac_ct_DLLTOOL" = x; then
  4950. DLLTOOL="false"
  4951. else
  4952. case $cross_compiling:$ac_tool_warned in
  4953. yes:)
  4954. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  4955. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  4956. ac_tool_warned=yes ;;
  4957. esac
  4958. DLLTOOL=$ac_ct_DLLTOOL
  4959. fi
  4960. else
  4961. DLLTOOL="$ac_cv_prog_DLLTOOL"
  4962. fi
  4963. test -z "$DLLTOOL" && DLLTOOL=dlltool
  4964. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
  4965. $as_echo_n "checking how to associate runtime and link libraries... " >&6; }
  4966. if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
  4967. $as_echo_n "(cached) " >&6
  4968. else
  4969. lt_cv_sharedlib_from_linklib_cmd='unknown'
  4970. case $host_os in
  4971. cygwin* | mingw* | pw32* | cegcc*)
  4972. # two different shell functions defined in ltmain.sh;
  4973. # decide which one to use based on capabilities of $DLLTOOL
  4974. case `$DLLTOOL --help 2>&1` in
  4975. *--identify-strict*)
  4976. lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
  4977. ;;
  4978. *)
  4979. lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
  4980. ;;
  4981. esac
  4982. ;;
  4983. *)
  4984. # fallback: assume linklib IS sharedlib
  4985. lt_cv_sharedlib_from_linklib_cmd=$ECHO
  4986. ;;
  4987. esac
  4988. fi
  4989. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
  4990. $as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
  4991. sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
  4992. test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
  4993. if test -n "$ac_tool_prefix"; then
  4994. for ac_prog in ar
  4995. do
  4996. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  4997. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  4998. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4999. $as_echo_n "checking for $ac_word... " >&6; }
  5000. if ${ac_cv_prog_AR+:} false; then :
  5001. $as_echo_n "(cached) " >&6
  5002. else
  5003. if test -n "$AR"; then
  5004. ac_cv_prog_AR="$AR" # Let the user override the test.
  5005. else
  5006. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5007. for as_dir in $PATH
  5008. do
  5009. IFS=$as_save_IFS
  5010. test -z "$as_dir" && as_dir=.
  5011. for ac_exec_ext in '' $ac_executable_extensions; do
  5012. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5013. ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
  5014. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5015. break 2
  5016. fi
  5017. done
  5018. done
  5019. IFS=$as_save_IFS
  5020. fi
  5021. fi
  5022. AR=$ac_cv_prog_AR
  5023. if test -n "$AR"; then
  5024. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
  5025. $as_echo "$AR" >&6; }
  5026. else
  5027. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5028. $as_echo "no" >&6; }
  5029. fi
  5030. test -n "$AR" && break
  5031. done
  5032. fi
  5033. if test -z "$AR"; then
  5034. ac_ct_AR=$AR
  5035. for ac_prog in ar
  5036. do
  5037. # Extract the first word of "$ac_prog", so it can be a program name with args.
  5038. set dummy $ac_prog; ac_word=$2
  5039. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5040. $as_echo_n "checking for $ac_word... " >&6; }
  5041. if ${ac_cv_prog_ac_ct_AR+:} false; then :
  5042. $as_echo_n "(cached) " >&6
  5043. else
  5044. if test -n "$ac_ct_AR"; then
  5045. ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
  5046. else
  5047. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5048. for as_dir in $PATH
  5049. do
  5050. IFS=$as_save_IFS
  5051. test -z "$as_dir" && as_dir=.
  5052. for ac_exec_ext in '' $ac_executable_extensions; do
  5053. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5054. ac_cv_prog_ac_ct_AR="$ac_prog"
  5055. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5056. break 2
  5057. fi
  5058. done
  5059. done
  5060. IFS=$as_save_IFS
  5061. fi
  5062. fi
  5063. ac_ct_AR=$ac_cv_prog_ac_ct_AR
  5064. if test -n "$ac_ct_AR"; then
  5065. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
  5066. $as_echo "$ac_ct_AR" >&6; }
  5067. else
  5068. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5069. $as_echo "no" >&6; }
  5070. fi
  5071. test -n "$ac_ct_AR" && break
  5072. done
  5073. if test "x$ac_ct_AR" = x; then
  5074. AR="false"
  5075. else
  5076. case $cross_compiling:$ac_tool_warned in
  5077. yes:)
  5078. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  5079. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  5080. ac_tool_warned=yes ;;
  5081. esac
  5082. AR=$ac_ct_AR
  5083. fi
  5084. fi
  5085. : ${AR=ar}
  5086. : ${AR_FLAGS=cru}
  5087. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
  5088. $as_echo_n "checking for archiver @FILE support... " >&6; }
  5089. if ${lt_cv_ar_at_file+:} false; then :
  5090. $as_echo_n "(cached) " >&6
  5091. else
  5092. lt_cv_ar_at_file=no
  5093. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5094. /* end confdefs.h. */
  5095. int
  5096. main ()
  5097. {
  5098. ;
  5099. return 0;
  5100. }
  5101. _ACEOF
  5102. if ac_fn_c_try_compile "$LINENO"; then :
  5103. echo conftest.$ac_objext > conftest.lst
  5104. lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
  5105. { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
  5106. (eval $lt_ar_try) 2>&5
  5107. ac_status=$?
  5108. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  5109. test $ac_status = 0; }
  5110. if test 0 -eq "$ac_status"; then
  5111. # Ensure the archiver fails upon bogus file names.
  5112. rm -f conftest.$ac_objext libconftest.a
  5113. { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
  5114. (eval $lt_ar_try) 2>&5
  5115. ac_status=$?
  5116. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  5117. test $ac_status = 0; }
  5118. if test 0 -ne "$ac_status"; then
  5119. lt_cv_ar_at_file=@
  5120. fi
  5121. fi
  5122. rm -f conftest.* libconftest.a
  5123. fi
  5124. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  5125. fi
  5126. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
  5127. $as_echo "$lt_cv_ar_at_file" >&6; }
  5128. if test no = "$lt_cv_ar_at_file"; then
  5129. archiver_list_spec=
  5130. else
  5131. archiver_list_spec=$lt_cv_ar_at_file
  5132. fi
  5133. if test -n "$ac_tool_prefix"; then
  5134. # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
  5135. set dummy ${ac_tool_prefix}strip; ac_word=$2
  5136. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5137. $as_echo_n "checking for $ac_word... " >&6; }
  5138. if ${ac_cv_prog_STRIP+:} false; then :
  5139. $as_echo_n "(cached) " >&6
  5140. else
  5141. if test -n "$STRIP"; then
  5142. ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
  5143. else
  5144. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5145. for as_dir in $PATH
  5146. do
  5147. IFS=$as_save_IFS
  5148. test -z "$as_dir" && as_dir=.
  5149. for ac_exec_ext in '' $ac_executable_extensions; do
  5150. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5151. ac_cv_prog_STRIP="${ac_tool_prefix}strip"
  5152. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5153. break 2
  5154. fi
  5155. done
  5156. done
  5157. IFS=$as_save_IFS
  5158. fi
  5159. fi
  5160. STRIP=$ac_cv_prog_STRIP
  5161. if test -n "$STRIP"; then
  5162. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
  5163. $as_echo "$STRIP" >&6; }
  5164. else
  5165. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5166. $as_echo "no" >&6; }
  5167. fi
  5168. fi
  5169. if test -z "$ac_cv_prog_STRIP"; then
  5170. ac_ct_STRIP=$STRIP
  5171. # Extract the first word of "strip", so it can be a program name with args.
  5172. set dummy strip; ac_word=$2
  5173. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5174. $as_echo_n "checking for $ac_word... " >&6; }
  5175. if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
  5176. $as_echo_n "(cached) " >&6
  5177. else
  5178. if test -n "$ac_ct_STRIP"; then
  5179. ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
  5180. else
  5181. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5182. for as_dir in $PATH
  5183. do
  5184. IFS=$as_save_IFS
  5185. test -z "$as_dir" && as_dir=.
  5186. for ac_exec_ext in '' $ac_executable_extensions; do
  5187. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5188. ac_cv_prog_ac_ct_STRIP="strip"
  5189. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5190. break 2
  5191. fi
  5192. done
  5193. done
  5194. IFS=$as_save_IFS
  5195. fi
  5196. fi
  5197. ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
  5198. if test -n "$ac_ct_STRIP"; then
  5199. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
  5200. $as_echo "$ac_ct_STRIP" >&6; }
  5201. else
  5202. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5203. $as_echo "no" >&6; }
  5204. fi
  5205. if test "x$ac_ct_STRIP" = x; then
  5206. STRIP=":"
  5207. else
  5208. case $cross_compiling:$ac_tool_warned in
  5209. yes:)
  5210. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  5211. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  5212. ac_tool_warned=yes ;;
  5213. esac
  5214. STRIP=$ac_ct_STRIP
  5215. fi
  5216. else
  5217. STRIP="$ac_cv_prog_STRIP"
  5218. fi
  5219. test -z "$STRIP" && STRIP=:
  5220. if test -n "$ac_tool_prefix"; then
  5221. # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
  5222. set dummy ${ac_tool_prefix}ranlib; ac_word=$2
  5223. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5224. $as_echo_n "checking for $ac_word... " >&6; }
  5225. if ${ac_cv_prog_RANLIB+:} false; then :
  5226. $as_echo_n "(cached) " >&6
  5227. else
  5228. if test -n "$RANLIB"; then
  5229. ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
  5230. else
  5231. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5232. for as_dir in $PATH
  5233. do
  5234. IFS=$as_save_IFS
  5235. test -z "$as_dir" && as_dir=.
  5236. for ac_exec_ext in '' $ac_executable_extensions; do
  5237. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5238. ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
  5239. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5240. break 2
  5241. fi
  5242. done
  5243. done
  5244. IFS=$as_save_IFS
  5245. fi
  5246. fi
  5247. RANLIB=$ac_cv_prog_RANLIB
  5248. if test -n "$RANLIB"; then
  5249. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
  5250. $as_echo "$RANLIB" >&6; }
  5251. else
  5252. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5253. $as_echo "no" >&6; }
  5254. fi
  5255. fi
  5256. if test -z "$ac_cv_prog_RANLIB"; then
  5257. ac_ct_RANLIB=$RANLIB
  5258. # Extract the first word of "ranlib", so it can be a program name with args.
  5259. set dummy ranlib; ac_word=$2
  5260. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5261. $as_echo_n "checking for $ac_word... " >&6; }
  5262. if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
  5263. $as_echo_n "(cached) " >&6
  5264. else
  5265. if test -n "$ac_ct_RANLIB"; then
  5266. ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
  5267. else
  5268. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5269. for as_dir in $PATH
  5270. do
  5271. IFS=$as_save_IFS
  5272. test -z "$as_dir" && as_dir=.
  5273. for ac_exec_ext in '' $ac_executable_extensions; do
  5274. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5275. ac_cv_prog_ac_ct_RANLIB="ranlib"
  5276. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5277. break 2
  5278. fi
  5279. done
  5280. done
  5281. IFS=$as_save_IFS
  5282. fi
  5283. fi
  5284. ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
  5285. if test -n "$ac_ct_RANLIB"; then
  5286. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
  5287. $as_echo "$ac_ct_RANLIB" >&6; }
  5288. else
  5289. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5290. $as_echo "no" >&6; }
  5291. fi
  5292. if test "x$ac_ct_RANLIB" = x; then
  5293. RANLIB=":"
  5294. else
  5295. case $cross_compiling:$ac_tool_warned in
  5296. yes:)
  5297. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  5298. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  5299. ac_tool_warned=yes ;;
  5300. esac
  5301. RANLIB=$ac_ct_RANLIB
  5302. fi
  5303. else
  5304. RANLIB="$ac_cv_prog_RANLIB"
  5305. fi
  5306. test -z "$RANLIB" && RANLIB=:
  5307. # Determine commands to create old-style static archives.
  5308. old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
  5309. old_postinstall_cmds='chmod 644 $oldlib'
  5310. old_postuninstall_cmds=
  5311. if test -n "$RANLIB"; then
  5312. case $host_os in
  5313. bitrig* | openbsd*)
  5314. old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
  5315. ;;
  5316. *)
  5317. old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
  5318. ;;
  5319. esac
  5320. old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
  5321. fi
  5322. case $host_os in
  5323. darwin*)
  5324. lock_old_archive_extraction=yes ;;
  5325. *)
  5326. lock_old_archive_extraction=no ;;
  5327. esac
  5328. # If no C compiler was specified, use CC.
  5329. LTCC=${LTCC-"$CC"}
  5330. # If no C compiler flags were specified, use CFLAGS.
  5331. LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
  5332. # Allow CC to be a program name with arguments.
  5333. compiler=$CC
  5334. # Check for command to grab the raw symbol name followed by C symbol from nm.
  5335. { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
  5336. $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
  5337. if ${lt_cv_sys_global_symbol_pipe+:} false; then :
  5338. $as_echo_n "(cached) " >&6
  5339. else
  5340. # These are sane defaults that work on at least a few old systems.
  5341. # [They come from Ultrix. What could be older than Ultrix?!! ;)]
  5342. # Character class describing NM global symbol codes.
  5343. symcode='[BCDEGRST]'
  5344. # Regexp to match symbols that can be accessed directly from C.
  5345. sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
  5346. # Define system-specific variables.
  5347. case $host_os in
  5348. aix*)
  5349. symcode='[BCDT]'
  5350. ;;
  5351. cygwin* | mingw* | pw32* | cegcc*)
  5352. symcode='[ABCDGISTW]'
  5353. ;;
  5354. hpux*)
  5355. if test ia64 = "$host_cpu"; then
  5356. symcode='[ABCDEGRST]'
  5357. fi
  5358. ;;
  5359. irix* | nonstopux*)
  5360. symcode='[BCDEGRST]'
  5361. ;;
  5362. osf*)
  5363. symcode='[BCDEGQRST]'
  5364. ;;
  5365. solaris*)
  5366. symcode='[BDRT]'
  5367. ;;
  5368. sco3.2v5*)
  5369. symcode='[DT]'
  5370. ;;
  5371. sysv4.2uw2*)
  5372. symcode='[DT]'
  5373. ;;
  5374. sysv5* | sco5v6* | unixware* | OpenUNIX*)
  5375. symcode='[ABDT]'
  5376. ;;
  5377. sysv4)
  5378. symcode='[DFNSTU]'
  5379. ;;
  5380. esac
  5381. # If we're using GNU nm, then use its standard symbol codes.
  5382. case `$NM -V 2>&1` in
  5383. *GNU* | *'with BFD'*)
  5384. symcode='[ABCDGIRSTW]' ;;
  5385. esac
  5386. if test "$lt_cv_nm_interface" = "MS dumpbin"; then
  5387. # Gets list of data symbols to import.
  5388. lt_cv_sys_global_symbol_to_import="sed -n -e 's/^I .* \(.*\)$/\1/p'"
  5389. # Adjust the below global symbol transforms to fixup imported variables.
  5390. lt_cdecl_hook=" -e 's/^I .* \(.*\)$/extern __declspec(dllimport) char \1;/p'"
  5391. lt_c_name_hook=" -e 's/^I .* \(.*\)$/ {\"\1\", (void *) 0},/p'"
  5392. lt_c_name_lib_hook="\
  5393. -e 's/^I .* \(lib.*\)$/ {\"\1\", (void *) 0},/p'\
  5394. -e 's/^I .* \(.*\)$/ {\"lib\1\", (void *) 0},/p'"
  5395. else
  5396. # Disable hooks by default.
  5397. lt_cv_sys_global_symbol_to_import=
  5398. lt_cdecl_hook=
  5399. lt_c_name_hook=
  5400. lt_c_name_lib_hook=
  5401. fi
  5402. # Transform an extracted symbol line into a proper C declaration.
  5403. # Some systems (esp. on ia64) link data and code symbols differently,
  5404. # so use this general approach.
  5405. lt_cv_sys_global_symbol_to_cdecl="sed -n"\
  5406. $lt_cdecl_hook\
  5407. " -e 's/^T .* \(.*\)$/extern int \1();/p'"\
  5408. " -e 's/^$symcode$symcode* .* \(.*\)$/extern char \1;/p'"
  5409. # Transform an extracted symbol line into symbol name and symbol address
  5410. lt_cv_sys_global_symbol_to_c_name_address="sed -n"\
  5411. $lt_c_name_hook\
  5412. " -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\
  5413. " -e 's/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/p'"
  5414. # Transform an extracted symbol line into symbol name with lib prefix and
  5415. # symbol address.
  5416. lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n"\
  5417. $lt_c_name_lib_hook\
  5418. " -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\
  5419. " -e 's/^$symcode$symcode* .* \(lib.*\)$/ {\"\1\", (void *) \&\1},/p'"\
  5420. " -e 's/^$symcode$symcode* .* \(.*\)$/ {\"lib\1\", (void *) \&\1},/p'"
  5421. # Handle CRLF in mingw tool chain
  5422. opt_cr=
  5423. case $build_os in
  5424. mingw*)
  5425. opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
  5426. ;;
  5427. esac
  5428. # Try without a prefix underscore, then with it.
  5429. for ac_symprfx in "" "_"; do
  5430. # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
  5431. symxfrm="\\1 $ac_symprfx\\2 \\2"
  5432. # Write the raw and C identifiers.
  5433. if test "$lt_cv_nm_interface" = "MS dumpbin"; then
  5434. # Fake it for dumpbin and say T for any non-static function,
  5435. # D for any global variable and I for any imported variable.
  5436. # Also find C++ and __fastcall symbols from MSVC++,
  5437. # which start with @ or ?.
  5438. lt_cv_sys_global_symbol_pipe="$AWK '"\
  5439. " {last_section=section; section=\$ 3};"\
  5440. " /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
  5441. " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
  5442. " /^ *Symbol name *: /{split(\$ 0,sn,\":\"); si=substr(sn[2],2)};"\
  5443. " /^ *Type *: code/{print \"T\",si,substr(si,length(prfx))};"\
  5444. " /^ *Type *: data/{print \"I\",si,substr(si,length(prfx))};"\
  5445. " \$ 0!~/External *\|/{next};"\
  5446. " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
  5447. " {if(hide[section]) next};"\
  5448. " {f=\"D\"}; \$ 0~/\(\).*\|/{f=\"T\"};"\
  5449. " {split(\$ 0,a,/\||\r/); split(a[2],s)};"\
  5450. " s[1]~/^[@?]/{print f,s[1],s[1]; next};"\
  5451. " s[1]~prfx {split(s[1],t,\"@\"); print f,t[1],substr(t[1],length(prfx))}"\
  5452. " ' prfx=^$ac_symprfx"
  5453. else
  5454. lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
  5455. fi
  5456. lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
  5457. # Check to see that the pipe works correctly.
  5458. pipe_works=no
  5459. rm -f conftest*
  5460. cat > conftest.$ac_ext <<_LT_EOF
  5461. #ifdef __cplusplus
  5462. extern "C" {
  5463. #endif
  5464. char nm_test_var;
  5465. void nm_test_func(void);
  5466. void nm_test_func(void){}
  5467. #ifdef __cplusplus
  5468. }
  5469. #endif
  5470. int main(){nm_test_var='a';nm_test_func();return(0);}
  5471. _LT_EOF
  5472. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  5473. (eval $ac_compile) 2>&5
  5474. ac_status=$?
  5475. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  5476. test $ac_status = 0; }; then
  5477. # Now try to grab the symbols.
  5478. nlist=conftest.nm
  5479. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
  5480. (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
  5481. ac_status=$?
  5482. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  5483. test $ac_status = 0; } && test -s "$nlist"; then
  5484. # Try sorting and uniquifying the output.
  5485. if sort "$nlist" | uniq > "$nlist"T; then
  5486. mv -f "$nlist"T "$nlist"
  5487. else
  5488. rm -f "$nlist"T
  5489. fi
  5490. # Make sure that we snagged all the symbols we need.
  5491. if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
  5492. if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
  5493. cat <<_LT_EOF > conftest.$ac_ext
  5494. /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */
  5495. #if defined _WIN32 || defined __CYGWIN__ || defined _WIN32_WCE
  5496. /* DATA imports from DLLs on WIN32 can't be const, because runtime
  5497. relocations are performed -- see ld's documentation on pseudo-relocs. */
  5498. # define LT_DLSYM_CONST
  5499. #elif defined __osf__
  5500. /* This system does not cope well with relocations in const data. */
  5501. # define LT_DLSYM_CONST
  5502. #else
  5503. # define LT_DLSYM_CONST const
  5504. #endif
  5505. #ifdef __cplusplus
  5506. extern "C" {
  5507. #endif
  5508. _LT_EOF
  5509. # Now generate the symbol file.
  5510. eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
  5511. cat <<_LT_EOF >> conftest.$ac_ext
  5512. /* The mapping between symbol names and symbols. */
  5513. LT_DLSYM_CONST struct {
  5514. const char *name;
  5515. void *address;
  5516. }
  5517. lt__PROGRAM__LTX_preloaded_symbols[] =
  5518. {
  5519. { "@PROGRAM@", (void *) 0 },
  5520. _LT_EOF
  5521. $SED "s/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
  5522. cat <<\_LT_EOF >> conftest.$ac_ext
  5523. {0, (void *) 0}
  5524. };
  5525. /* This works around a problem in FreeBSD linker */
  5526. #ifdef FREEBSD_WORKAROUND
  5527. static const void *lt_preloaded_setup() {
  5528. return lt__PROGRAM__LTX_preloaded_symbols;
  5529. }
  5530. #endif
  5531. #ifdef __cplusplus
  5532. }
  5533. #endif
  5534. _LT_EOF
  5535. # Now try linking the two files.
  5536. mv conftest.$ac_objext conftstm.$ac_objext
  5537. lt_globsym_save_LIBS=$LIBS
  5538. lt_globsym_save_CFLAGS=$CFLAGS
  5539. LIBS=conftstm.$ac_objext
  5540. CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
  5541. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
  5542. (eval $ac_link) 2>&5
  5543. ac_status=$?
  5544. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  5545. test $ac_status = 0; } && test -s conftest$ac_exeext; then
  5546. pipe_works=yes
  5547. fi
  5548. LIBS=$lt_globsym_save_LIBS
  5549. CFLAGS=$lt_globsym_save_CFLAGS
  5550. else
  5551. echo "cannot find nm_test_func in $nlist" >&5
  5552. fi
  5553. else
  5554. echo "cannot find nm_test_var in $nlist" >&5
  5555. fi
  5556. else
  5557. echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
  5558. fi
  5559. else
  5560. echo "$progname: failed program was:" >&5
  5561. cat conftest.$ac_ext >&5
  5562. fi
  5563. rm -rf conftest* conftst*
  5564. # Do not use the global_symbol_pipe unless it works.
  5565. if test yes = "$pipe_works"; then
  5566. break
  5567. else
  5568. lt_cv_sys_global_symbol_pipe=
  5569. fi
  5570. done
  5571. fi
  5572. if test -z "$lt_cv_sys_global_symbol_pipe"; then
  5573. lt_cv_sys_global_symbol_to_cdecl=
  5574. fi
  5575. if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
  5576. { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
  5577. $as_echo "failed" >&6; }
  5578. else
  5579. { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
  5580. $as_echo "ok" >&6; }
  5581. fi
  5582. # Response file support.
  5583. if test "$lt_cv_nm_interface" = "MS dumpbin"; then
  5584. nm_file_list_spec='@'
  5585. elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
  5586. nm_file_list_spec='@'
  5587. fi
  5588. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
  5589. $as_echo_n "checking for sysroot... " >&6; }
  5590. # Check whether --with-sysroot was given.
  5591. if test "${with_sysroot+set}" = set; then :
  5592. withval=$with_sysroot;
  5593. else
  5594. with_sysroot=no
  5595. fi
  5596. lt_sysroot=
  5597. case $with_sysroot in #(
  5598. yes)
  5599. if test yes = "$GCC"; then
  5600. lt_sysroot=`$CC --print-sysroot 2>/dev/null`
  5601. fi
  5602. ;; #(
  5603. /*)
  5604. lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
  5605. ;; #(
  5606. no|'')
  5607. ;; #(
  5608. *)
  5609. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_sysroot" >&5
  5610. $as_echo "$with_sysroot" >&6; }
  5611. as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
  5612. ;;
  5613. esac
  5614. { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
  5615. $as_echo "${lt_sysroot:-no}" >&6; }
  5616. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a working dd" >&5
  5617. $as_echo_n "checking for a working dd... " >&6; }
  5618. if ${ac_cv_path_lt_DD+:} false; then :
  5619. $as_echo_n "(cached) " >&6
  5620. else
  5621. printf 0123456789abcdef0123456789abcdef >conftest.i
  5622. cat conftest.i conftest.i >conftest2.i
  5623. : ${lt_DD:=$DD}
  5624. if test -z "$lt_DD"; then
  5625. ac_path_lt_DD_found=false
  5626. # Loop through the user's path and test for each of PROGNAME-LIST
  5627. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5628. for as_dir in $PATH
  5629. do
  5630. IFS=$as_save_IFS
  5631. test -z "$as_dir" && as_dir=.
  5632. for ac_prog in dd; do
  5633. for ac_exec_ext in '' $ac_executable_extensions; do
  5634. ac_path_lt_DD="$as_dir/$ac_prog$ac_exec_ext"
  5635. as_fn_executable_p "$ac_path_lt_DD" || continue
  5636. if "$ac_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
  5637. cmp -s conftest.i conftest.out \
  5638. && ac_cv_path_lt_DD="$ac_path_lt_DD" ac_path_lt_DD_found=:
  5639. fi
  5640. $ac_path_lt_DD_found && break 3
  5641. done
  5642. done
  5643. done
  5644. IFS=$as_save_IFS
  5645. if test -z "$ac_cv_path_lt_DD"; then
  5646. :
  5647. fi
  5648. else
  5649. ac_cv_path_lt_DD=$lt_DD
  5650. fi
  5651. rm -f conftest.i conftest2.i conftest.out
  5652. fi
  5653. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_lt_DD" >&5
  5654. $as_echo "$ac_cv_path_lt_DD" >&6; }
  5655. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to truncate binary pipes" >&5
  5656. $as_echo_n "checking how to truncate binary pipes... " >&6; }
  5657. if ${lt_cv_truncate_bin+:} false; then :
  5658. $as_echo_n "(cached) " >&6
  5659. else
  5660. printf 0123456789abcdef0123456789abcdef >conftest.i
  5661. cat conftest.i conftest.i >conftest2.i
  5662. lt_cv_truncate_bin=
  5663. if "$ac_cv_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
  5664. cmp -s conftest.i conftest.out \
  5665. && lt_cv_truncate_bin="$ac_cv_path_lt_DD bs=4096 count=1"
  5666. fi
  5667. rm -f conftest.i conftest2.i conftest.out
  5668. test -z "$lt_cv_truncate_bin" && lt_cv_truncate_bin="$SED -e 4q"
  5669. fi
  5670. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_truncate_bin" >&5
  5671. $as_echo "$lt_cv_truncate_bin" >&6; }
  5672. # Calculate cc_basename. Skip known compiler wrappers and cross-prefix.
  5673. func_cc_basename ()
  5674. {
  5675. for cc_temp in $*""; do
  5676. case $cc_temp in
  5677. compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
  5678. distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
  5679. \-*) ;;
  5680. *) break;;
  5681. esac
  5682. done
  5683. func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
  5684. }
  5685. # Check whether --enable-libtool-lock was given.
  5686. if test "${enable_libtool_lock+set}" = set; then :
  5687. enableval=$enable_libtool_lock;
  5688. fi
  5689. test no = "$enable_libtool_lock" || enable_libtool_lock=yes
  5690. # Some flags need to be propagated to the compiler or linker for good
  5691. # libtool support.
  5692. case $host in
  5693. ia64-*-hpux*)
  5694. # Find out what ABI is being produced by ac_compile, and set mode
  5695. # options accordingly.
  5696. echo 'int i;' > conftest.$ac_ext
  5697. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  5698. (eval $ac_compile) 2>&5
  5699. ac_status=$?
  5700. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  5701. test $ac_status = 0; }; then
  5702. case `/usr/bin/file conftest.$ac_objext` in
  5703. *ELF-32*)
  5704. HPUX_IA64_MODE=32
  5705. ;;
  5706. *ELF-64*)
  5707. HPUX_IA64_MODE=64
  5708. ;;
  5709. esac
  5710. fi
  5711. rm -rf conftest*
  5712. ;;
  5713. *-*-irix6*)
  5714. # Find out what ABI is being produced by ac_compile, and set linker
  5715. # options accordingly.
  5716. echo '#line '$LINENO' "configure"' > conftest.$ac_ext
  5717. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  5718. (eval $ac_compile) 2>&5
  5719. ac_status=$?
  5720. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  5721. test $ac_status = 0; }; then
  5722. if test yes = "$lt_cv_prog_gnu_ld"; then
  5723. case `/usr/bin/file conftest.$ac_objext` in
  5724. *32-bit*)
  5725. LD="${LD-ld} -melf32bsmip"
  5726. ;;
  5727. *N32*)
  5728. LD="${LD-ld} -melf32bmipn32"
  5729. ;;
  5730. *64-bit*)
  5731. LD="${LD-ld} -melf64bmip"
  5732. ;;
  5733. esac
  5734. else
  5735. case `/usr/bin/file conftest.$ac_objext` in
  5736. *32-bit*)
  5737. LD="${LD-ld} -32"
  5738. ;;
  5739. *N32*)
  5740. LD="${LD-ld} -n32"
  5741. ;;
  5742. *64-bit*)
  5743. LD="${LD-ld} -64"
  5744. ;;
  5745. esac
  5746. fi
  5747. fi
  5748. rm -rf conftest*
  5749. ;;
  5750. mips64*-*linux*)
  5751. # Find out what ABI is being produced by ac_compile, and set linker
  5752. # options accordingly.
  5753. echo '#line '$LINENO' "configure"' > conftest.$ac_ext
  5754. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  5755. (eval $ac_compile) 2>&5
  5756. ac_status=$?
  5757. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  5758. test $ac_status = 0; }; then
  5759. emul=elf
  5760. case `/usr/bin/file conftest.$ac_objext` in
  5761. *32-bit*)
  5762. emul="${emul}32"
  5763. ;;
  5764. *64-bit*)
  5765. emul="${emul}64"
  5766. ;;
  5767. esac
  5768. case `/usr/bin/file conftest.$ac_objext` in
  5769. *MSB*)
  5770. emul="${emul}btsmip"
  5771. ;;
  5772. *LSB*)
  5773. emul="${emul}ltsmip"
  5774. ;;
  5775. esac
  5776. case `/usr/bin/file conftest.$ac_objext` in
  5777. *N32*)
  5778. emul="${emul}n32"
  5779. ;;
  5780. esac
  5781. LD="${LD-ld} -m $emul"
  5782. fi
  5783. rm -rf conftest*
  5784. ;;
  5785. x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
  5786. s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
  5787. # Find out what ABI is being produced by ac_compile, and set linker
  5788. # options accordingly. Note that the listed cases only cover the
  5789. # situations where additional linker options are needed (such as when
  5790. # doing 32-bit compilation for a host where ld defaults to 64-bit, or
  5791. # vice versa); the common cases where no linker options are needed do
  5792. # not appear in the list.
  5793. echo 'int i;' > conftest.$ac_ext
  5794. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  5795. (eval $ac_compile) 2>&5
  5796. ac_status=$?
  5797. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  5798. test $ac_status = 0; }; then
  5799. case `/usr/bin/file conftest.o` in
  5800. *32-bit*)
  5801. case $host in
  5802. x86_64-*kfreebsd*-gnu)
  5803. LD="${LD-ld} -m elf_i386_fbsd"
  5804. ;;
  5805. x86_64-*linux*)
  5806. case `/usr/bin/file conftest.o` in
  5807. *x86-64*)
  5808. LD="${LD-ld} -m elf32_x86_64"
  5809. ;;
  5810. *)
  5811. LD="${LD-ld} -m elf_i386"
  5812. ;;
  5813. esac
  5814. ;;
  5815. powerpc64le-*linux*)
  5816. LD="${LD-ld} -m elf32lppclinux"
  5817. ;;
  5818. powerpc64-*linux*)
  5819. LD="${LD-ld} -m elf32ppclinux"
  5820. ;;
  5821. s390x-*linux*)
  5822. LD="${LD-ld} -m elf_s390"
  5823. ;;
  5824. sparc64-*linux*)
  5825. LD="${LD-ld} -m elf32_sparc"
  5826. ;;
  5827. esac
  5828. ;;
  5829. *64-bit*)
  5830. case $host in
  5831. x86_64-*kfreebsd*-gnu)
  5832. LD="${LD-ld} -m elf_x86_64_fbsd"
  5833. ;;
  5834. x86_64-*linux*)
  5835. LD="${LD-ld} -m elf_x86_64"
  5836. ;;
  5837. powerpcle-*linux*)
  5838. LD="${LD-ld} -m elf64lppc"
  5839. ;;
  5840. powerpc-*linux*)
  5841. LD="${LD-ld} -m elf64ppc"
  5842. ;;
  5843. s390*-*linux*|s390*-*tpf*)
  5844. LD="${LD-ld} -m elf64_s390"
  5845. ;;
  5846. sparc*-*linux*)
  5847. LD="${LD-ld} -m elf64_sparc"
  5848. ;;
  5849. esac
  5850. ;;
  5851. esac
  5852. fi
  5853. rm -rf conftest*
  5854. ;;
  5855. *-*-sco3.2v5*)
  5856. # On SCO OpenServer 5, we need -belf to get full-featured binaries.
  5857. SAVE_CFLAGS=$CFLAGS
  5858. CFLAGS="$CFLAGS -belf"
  5859. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
  5860. $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
  5861. if ${lt_cv_cc_needs_belf+:} false; then :
  5862. $as_echo_n "(cached) " >&6
  5863. else
  5864. ac_ext=c
  5865. ac_cpp='$CPP $CPPFLAGS'
  5866. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  5867. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  5868. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  5869. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5870. /* end confdefs.h. */
  5871. int
  5872. main ()
  5873. {
  5874. ;
  5875. return 0;
  5876. }
  5877. _ACEOF
  5878. if ac_fn_c_try_link "$LINENO"; then :
  5879. lt_cv_cc_needs_belf=yes
  5880. else
  5881. lt_cv_cc_needs_belf=no
  5882. fi
  5883. rm -f core conftest.err conftest.$ac_objext \
  5884. conftest$ac_exeext conftest.$ac_ext
  5885. ac_ext=c
  5886. ac_cpp='$CPP $CPPFLAGS'
  5887. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  5888. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  5889. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  5890. fi
  5891. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
  5892. $as_echo "$lt_cv_cc_needs_belf" >&6; }
  5893. if test yes != "$lt_cv_cc_needs_belf"; then
  5894. # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
  5895. CFLAGS=$SAVE_CFLAGS
  5896. fi
  5897. ;;
  5898. *-*solaris*)
  5899. # Find out what ABI is being produced by ac_compile, and set linker
  5900. # options accordingly.
  5901. echo 'int i;' > conftest.$ac_ext
  5902. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  5903. (eval $ac_compile) 2>&5
  5904. ac_status=$?
  5905. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  5906. test $ac_status = 0; }; then
  5907. case `/usr/bin/file conftest.o` in
  5908. *64-bit*)
  5909. case $lt_cv_prog_gnu_ld in
  5910. yes*)
  5911. case $host in
  5912. i?86-*-solaris*|x86_64-*-solaris*)
  5913. LD="${LD-ld} -m elf_x86_64"
  5914. ;;
  5915. sparc*-*-solaris*)
  5916. LD="${LD-ld} -m elf64_sparc"
  5917. ;;
  5918. esac
  5919. # GNU ld 2.21 introduced _sol2 emulations. Use them if available.
  5920. if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
  5921. LD=${LD-ld}_sol2
  5922. fi
  5923. ;;
  5924. *)
  5925. if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
  5926. LD="${LD-ld} -64"
  5927. fi
  5928. ;;
  5929. esac
  5930. ;;
  5931. esac
  5932. fi
  5933. rm -rf conftest*
  5934. ;;
  5935. esac
  5936. need_locks=$enable_libtool_lock
  5937. if test -n "$ac_tool_prefix"; then
  5938. # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
  5939. set dummy ${ac_tool_prefix}mt; ac_word=$2
  5940. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5941. $as_echo_n "checking for $ac_word... " >&6; }
  5942. if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
  5943. $as_echo_n "(cached) " >&6
  5944. else
  5945. if test -n "$MANIFEST_TOOL"; then
  5946. ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
  5947. else
  5948. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5949. for as_dir in $PATH
  5950. do
  5951. IFS=$as_save_IFS
  5952. test -z "$as_dir" && as_dir=.
  5953. for ac_exec_ext in '' $ac_executable_extensions; do
  5954. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5955. ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
  5956. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5957. break 2
  5958. fi
  5959. done
  5960. done
  5961. IFS=$as_save_IFS
  5962. fi
  5963. fi
  5964. MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
  5965. if test -n "$MANIFEST_TOOL"; then
  5966. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
  5967. $as_echo "$MANIFEST_TOOL" >&6; }
  5968. else
  5969. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5970. $as_echo "no" >&6; }
  5971. fi
  5972. fi
  5973. if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
  5974. ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
  5975. # Extract the first word of "mt", so it can be a program name with args.
  5976. set dummy mt; ac_word=$2
  5977. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5978. $as_echo_n "checking for $ac_word... " >&6; }
  5979. if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
  5980. $as_echo_n "(cached) " >&6
  5981. else
  5982. if test -n "$ac_ct_MANIFEST_TOOL"; then
  5983. ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
  5984. else
  5985. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5986. for as_dir in $PATH
  5987. do
  5988. IFS=$as_save_IFS
  5989. test -z "$as_dir" && as_dir=.
  5990. for ac_exec_ext in '' $ac_executable_extensions; do
  5991. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5992. ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
  5993. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5994. break 2
  5995. fi
  5996. done
  5997. done
  5998. IFS=$as_save_IFS
  5999. fi
  6000. fi
  6001. ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
  6002. if test -n "$ac_ct_MANIFEST_TOOL"; then
  6003. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
  6004. $as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
  6005. else
  6006. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6007. $as_echo "no" >&6; }
  6008. fi
  6009. if test "x$ac_ct_MANIFEST_TOOL" = x; then
  6010. MANIFEST_TOOL=":"
  6011. else
  6012. case $cross_compiling:$ac_tool_warned in
  6013. yes:)
  6014. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  6015. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  6016. ac_tool_warned=yes ;;
  6017. esac
  6018. MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
  6019. fi
  6020. else
  6021. MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
  6022. fi
  6023. test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
  6024. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
  6025. $as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
  6026. if ${lt_cv_path_mainfest_tool+:} false; then :
  6027. $as_echo_n "(cached) " >&6
  6028. else
  6029. lt_cv_path_mainfest_tool=no
  6030. echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
  6031. $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
  6032. cat conftest.err >&5
  6033. if $GREP 'Manifest Tool' conftest.out > /dev/null; then
  6034. lt_cv_path_mainfest_tool=yes
  6035. fi
  6036. rm -f conftest*
  6037. fi
  6038. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
  6039. $as_echo "$lt_cv_path_mainfest_tool" >&6; }
  6040. if test yes != "$lt_cv_path_mainfest_tool"; then
  6041. MANIFEST_TOOL=:
  6042. fi
  6043. case $host_os in
  6044. rhapsody* | darwin*)
  6045. if test -n "$ac_tool_prefix"; then
  6046. # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
  6047. set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
  6048. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6049. $as_echo_n "checking for $ac_word... " >&6; }
  6050. if ${ac_cv_prog_DSYMUTIL+:} false; then :
  6051. $as_echo_n "(cached) " >&6
  6052. else
  6053. if test -n "$DSYMUTIL"; then
  6054. ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
  6055. else
  6056. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6057. for as_dir in $PATH
  6058. do
  6059. IFS=$as_save_IFS
  6060. test -z "$as_dir" && as_dir=.
  6061. for ac_exec_ext in '' $ac_executable_extensions; do
  6062. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  6063. ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
  6064. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6065. break 2
  6066. fi
  6067. done
  6068. done
  6069. IFS=$as_save_IFS
  6070. fi
  6071. fi
  6072. DSYMUTIL=$ac_cv_prog_DSYMUTIL
  6073. if test -n "$DSYMUTIL"; then
  6074. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
  6075. $as_echo "$DSYMUTIL" >&6; }
  6076. else
  6077. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6078. $as_echo "no" >&6; }
  6079. fi
  6080. fi
  6081. if test -z "$ac_cv_prog_DSYMUTIL"; then
  6082. ac_ct_DSYMUTIL=$DSYMUTIL
  6083. # Extract the first word of "dsymutil", so it can be a program name with args.
  6084. set dummy dsymutil; ac_word=$2
  6085. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6086. $as_echo_n "checking for $ac_word... " >&6; }
  6087. if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
  6088. $as_echo_n "(cached) " >&6
  6089. else
  6090. if test -n "$ac_ct_DSYMUTIL"; then
  6091. ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
  6092. else
  6093. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6094. for as_dir in $PATH
  6095. do
  6096. IFS=$as_save_IFS
  6097. test -z "$as_dir" && as_dir=.
  6098. for ac_exec_ext in '' $ac_executable_extensions; do
  6099. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  6100. ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
  6101. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6102. break 2
  6103. fi
  6104. done
  6105. done
  6106. IFS=$as_save_IFS
  6107. fi
  6108. fi
  6109. ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
  6110. if test -n "$ac_ct_DSYMUTIL"; then
  6111. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
  6112. $as_echo "$ac_ct_DSYMUTIL" >&6; }
  6113. else
  6114. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6115. $as_echo "no" >&6; }
  6116. fi
  6117. if test "x$ac_ct_DSYMUTIL" = x; then
  6118. DSYMUTIL=":"
  6119. else
  6120. case $cross_compiling:$ac_tool_warned in
  6121. yes:)
  6122. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  6123. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  6124. ac_tool_warned=yes ;;
  6125. esac
  6126. DSYMUTIL=$ac_ct_DSYMUTIL
  6127. fi
  6128. else
  6129. DSYMUTIL="$ac_cv_prog_DSYMUTIL"
  6130. fi
  6131. if test -n "$ac_tool_prefix"; then
  6132. # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
  6133. set dummy ${ac_tool_prefix}nmedit; ac_word=$2
  6134. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6135. $as_echo_n "checking for $ac_word... " >&6; }
  6136. if ${ac_cv_prog_NMEDIT+:} false; then :
  6137. $as_echo_n "(cached) " >&6
  6138. else
  6139. if test -n "$NMEDIT"; then
  6140. ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
  6141. else
  6142. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6143. for as_dir in $PATH
  6144. do
  6145. IFS=$as_save_IFS
  6146. test -z "$as_dir" && as_dir=.
  6147. for ac_exec_ext in '' $ac_executable_extensions; do
  6148. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  6149. ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
  6150. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6151. break 2
  6152. fi
  6153. done
  6154. done
  6155. IFS=$as_save_IFS
  6156. fi
  6157. fi
  6158. NMEDIT=$ac_cv_prog_NMEDIT
  6159. if test -n "$NMEDIT"; then
  6160. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
  6161. $as_echo "$NMEDIT" >&6; }
  6162. else
  6163. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6164. $as_echo "no" >&6; }
  6165. fi
  6166. fi
  6167. if test -z "$ac_cv_prog_NMEDIT"; then
  6168. ac_ct_NMEDIT=$NMEDIT
  6169. # Extract the first word of "nmedit", so it can be a program name with args.
  6170. set dummy nmedit; ac_word=$2
  6171. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6172. $as_echo_n "checking for $ac_word... " >&6; }
  6173. if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
  6174. $as_echo_n "(cached) " >&6
  6175. else
  6176. if test -n "$ac_ct_NMEDIT"; then
  6177. ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
  6178. else
  6179. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6180. for as_dir in $PATH
  6181. do
  6182. IFS=$as_save_IFS
  6183. test -z "$as_dir" && as_dir=.
  6184. for ac_exec_ext in '' $ac_executable_extensions; do
  6185. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  6186. ac_cv_prog_ac_ct_NMEDIT="nmedit"
  6187. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6188. break 2
  6189. fi
  6190. done
  6191. done
  6192. IFS=$as_save_IFS
  6193. fi
  6194. fi
  6195. ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
  6196. if test -n "$ac_ct_NMEDIT"; then
  6197. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
  6198. $as_echo "$ac_ct_NMEDIT" >&6; }
  6199. else
  6200. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6201. $as_echo "no" >&6; }
  6202. fi
  6203. if test "x$ac_ct_NMEDIT" = x; then
  6204. NMEDIT=":"
  6205. else
  6206. case $cross_compiling:$ac_tool_warned in
  6207. yes:)
  6208. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  6209. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  6210. ac_tool_warned=yes ;;
  6211. esac
  6212. NMEDIT=$ac_ct_NMEDIT
  6213. fi
  6214. else
  6215. NMEDIT="$ac_cv_prog_NMEDIT"
  6216. fi
  6217. if test -n "$ac_tool_prefix"; then
  6218. # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
  6219. set dummy ${ac_tool_prefix}lipo; ac_word=$2
  6220. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6221. $as_echo_n "checking for $ac_word... " >&6; }
  6222. if ${ac_cv_prog_LIPO+:} false; then :
  6223. $as_echo_n "(cached) " >&6
  6224. else
  6225. if test -n "$LIPO"; then
  6226. ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
  6227. else
  6228. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6229. for as_dir in $PATH
  6230. do
  6231. IFS=$as_save_IFS
  6232. test -z "$as_dir" && as_dir=.
  6233. for ac_exec_ext in '' $ac_executable_extensions; do
  6234. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  6235. ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
  6236. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6237. break 2
  6238. fi
  6239. done
  6240. done
  6241. IFS=$as_save_IFS
  6242. fi
  6243. fi
  6244. LIPO=$ac_cv_prog_LIPO
  6245. if test -n "$LIPO"; then
  6246. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
  6247. $as_echo "$LIPO" >&6; }
  6248. else
  6249. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6250. $as_echo "no" >&6; }
  6251. fi
  6252. fi
  6253. if test -z "$ac_cv_prog_LIPO"; then
  6254. ac_ct_LIPO=$LIPO
  6255. # Extract the first word of "lipo", so it can be a program name with args.
  6256. set dummy lipo; ac_word=$2
  6257. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6258. $as_echo_n "checking for $ac_word... " >&6; }
  6259. if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
  6260. $as_echo_n "(cached) " >&6
  6261. else
  6262. if test -n "$ac_ct_LIPO"; then
  6263. ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
  6264. else
  6265. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6266. for as_dir in $PATH
  6267. do
  6268. IFS=$as_save_IFS
  6269. test -z "$as_dir" && as_dir=.
  6270. for ac_exec_ext in '' $ac_executable_extensions; do
  6271. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  6272. ac_cv_prog_ac_ct_LIPO="lipo"
  6273. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6274. break 2
  6275. fi
  6276. done
  6277. done
  6278. IFS=$as_save_IFS
  6279. fi
  6280. fi
  6281. ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
  6282. if test -n "$ac_ct_LIPO"; then
  6283. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
  6284. $as_echo "$ac_ct_LIPO" >&6; }
  6285. else
  6286. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6287. $as_echo "no" >&6; }
  6288. fi
  6289. if test "x$ac_ct_LIPO" = x; then
  6290. LIPO=":"
  6291. else
  6292. case $cross_compiling:$ac_tool_warned in
  6293. yes:)
  6294. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  6295. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  6296. ac_tool_warned=yes ;;
  6297. esac
  6298. LIPO=$ac_ct_LIPO
  6299. fi
  6300. else
  6301. LIPO="$ac_cv_prog_LIPO"
  6302. fi
  6303. if test -n "$ac_tool_prefix"; then
  6304. # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
  6305. set dummy ${ac_tool_prefix}otool; ac_word=$2
  6306. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6307. $as_echo_n "checking for $ac_word... " >&6; }
  6308. if ${ac_cv_prog_OTOOL+:} false; then :
  6309. $as_echo_n "(cached) " >&6
  6310. else
  6311. if test -n "$OTOOL"; then
  6312. ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
  6313. else
  6314. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6315. for as_dir in $PATH
  6316. do
  6317. IFS=$as_save_IFS
  6318. test -z "$as_dir" && as_dir=.
  6319. for ac_exec_ext in '' $ac_executable_extensions; do
  6320. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  6321. ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
  6322. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6323. break 2
  6324. fi
  6325. done
  6326. done
  6327. IFS=$as_save_IFS
  6328. fi
  6329. fi
  6330. OTOOL=$ac_cv_prog_OTOOL
  6331. if test -n "$OTOOL"; then
  6332. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
  6333. $as_echo "$OTOOL" >&6; }
  6334. else
  6335. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6336. $as_echo "no" >&6; }
  6337. fi
  6338. fi
  6339. if test -z "$ac_cv_prog_OTOOL"; then
  6340. ac_ct_OTOOL=$OTOOL
  6341. # Extract the first word of "otool", so it can be a program name with args.
  6342. set dummy otool; ac_word=$2
  6343. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6344. $as_echo_n "checking for $ac_word... " >&6; }
  6345. if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
  6346. $as_echo_n "(cached) " >&6
  6347. else
  6348. if test -n "$ac_ct_OTOOL"; then
  6349. ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
  6350. else
  6351. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6352. for as_dir in $PATH
  6353. do
  6354. IFS=$as_save_IFS
  6355. test -z "$as_dir" && as_dir=.
  6356. for ac_exec_ext in '' $ac_executable_extensions; do
  6357. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  6358. ac_cv_prog_ac_ct_OTOOL="otool"
  6359. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6360. break 2
  6361. fi
  6362. done
  6363. done
  6364. IFS=$as_save_IFS
  6365. fi
  6366. fi
  6367. ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
  6368. if test -n "$ac_ct_OTOOL"; then
  6369. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
  6370. $as_echo "$ac_ct_OTOOL" >&6; }
  6371. else
  6372. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6373. $as_echo "no" >&6; }
  6374. fi
  6375. if test "x$ac_ct_OTOOL" = x; then
  6376. OTOOL=":"
  6377. else
  6378. case $cross_compiling:$ac_tool_warned in
  6379. yes:)
  6380. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  6381. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  6382. ac_tool_warned=yes ;;
  6383. esac
  6384. OTOOL=$ac_ct_OTOOL
  6385. fi
  6386. else
  6387. OTOOL="$ac_cv_prog_OTOOL"
  6388. fi
  6389. if test -n "$ac_tool_prefix"; then
  6390. # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
  6391. set dummy ${ac_tool_prefix}otool64; ac_word=$2
  6392. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6393. $as_echo_n "checking for $ac_word... " >&6; }
  6394. if ${ac_cv_prog_OTOOL64+:} false; then :
  6395. $as_echo_n "(cached) " >&6
  6396. else
  6397. if test -n "$OTOOL64"; then
  6398. ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
  6399. else
  6400. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6401. for as_dir in $PATH
  6402. do
  6403. IFS=$as_save_IFS
  6404. test -z "$as_dir" && as_dir=.
  6405. for ac_exec_ext in '' $ac_executable_extensions; do
  6406. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  6407. ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
  6408. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6409. break 2
  6410. fi
  6411. done
  6412. done
  6413. IFS=$as_save_IFS
  6414. fi
  6415. fi
  6416. OTOOL64=$ac_cv_prog_OTOOL64
  6417. if test -n "$OTOOL64"; then
  6418. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
  6419. $as_echo "$OTOOL64" >&6; }
  6420. else
  6421. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6422. $as_echo "no" >&6; }
  6423. fi
  6424. fi
  6425. if test -z "$ac_cv_prog_OTOOL64"; then
  6426. ac_ct_OTOOL64=$OTOOL64
  6427. # Extract the first word of "otool64", so it can be a program name with args.
  6428. set dummy otool64; ac_word=$2
  6429. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6430. $as_echo_n "checking for $ac_word... " >&6; }
  6431. if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
  6432. $as_echo_n "(cached) " >&6
  6433. else
  6434. if test -n "$ac_ct_OTOOL64"; then
  6435. ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
  6436. else
  6437. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6438. for as_dir in $PATH
  6439. do
  6440. IFS=$as_save_IFS
  6441. test -z "$as_dir" && as_dir=.
  6442. for ac_exec_ext in '' $ac_executable_extensions; do
  6443. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  6444. ac_cv_prog_ac_ct_OTOOL64="otool64"
  6445. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6446. break 2
  6447. fi
  6448. done
  6449. done
  6450. IFS=$as_save_IFS
  6451. fi
  6452. fi
  6453. ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
  6454. if test -n "$ac_ct_OTOOL64"; then
  6455. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
  6456. $as_echo "$ac_ct_OTOOL64" >&6; }
  6457. else
  6458. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6459. $as_echo "no" >&6; }
  6460. fi
  6461. if test "x$ac_ct_OTOOL64" = x; then
  6462. OTOOL64=":"
  6463. else
  6464. case $cross_compiling:$ac_tool_warned in
  6465. yes:)
  6466. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  6467. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  6468. ac_tool_warned=yes ;;
  6469. esac
  6470. OTOOL64=$ac_ct_OTOOL64
  6471. fi
  6472. else
  6473. OTOOL64="$ac_cv_prog_OTOOL64"
  6474. fi
  6475. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
  6476. $as_echo_n "checking for -single_module linker flag... " >&6; }
  6477. if ${lt_cv_apple_cc_single_mod+:} false; then :
  6478. $as_echo_n "(cached) " >&6
  6479. else
  6480. lt_cv_apple_cc_single_mod=no
  6481. if test -z "$LT_MULTI_MODULE"; then
  6482. # By default we will add the -single_module flag. You can override
  6483. # by either setting the environment variable LT_MULTI_MODULE
  6484. # non-empty at configure time, or by adding -multi_module to the
  6485. # link flags.
  6486. rm -rf libconftest.dylib*
  6487. echo "int foo(void){return 1;}" > conftest.c
  6488. echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
  6489. -dynamiclib -Wl,-single_module conftest.c" >&5
  6490. $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
  6491. -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
  6492. _lt_result=$?
  6493. # If there is a non-empty error log, and "single_module"
  6494. # appears in it, assume the flag caused a linker warning
  6495. if test -s conftest.err && $GREP single_module conftest.err; then
  6496. cat conftest.err >&5
  6497. # Otherwise, if the output was created with a 0 exit code from
  6498. # the compiler, it worked.
  6499. elif test -f libconftest.dylib && test 0 = "$_lt_result"; then
  6500. lt_cv_apple_cc_single_mod=yes
  6501. else
  6502. cat conftest.err >&5
  6503. fi
  6504. rm -rf libconftest.dylib*
  6505. rm -f conftest.*
  6506. fi
  6507. fi
  6508. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
  6509. $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
  6510. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
  6511. $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
  6512. if ${lt_cv_ld_exported_symbols_list+:} false; then :
  6513. $as_echo_n "(cached) " >&6
  6514. else
  6515. lt_cv_ld_exported_symbols_list=no
  6516. save_LDFLAGS=$LDFLAGS
  6517. echo "_main" > conftest.sym
  6518. LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
  6519. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6520. /* end confdefs.h. */
  6521. int
  6522. main ()
  6523. {
  6524. ;
  6525. return 0;
  6526. }
  6527. _ACEOF
  6528. if ac_fn_c_try_link "$LINENO"; then :
  6529. lt_cv_ld_exported_symbols_list=yes
  6530. else
  6531. lt_cv_ld_exported_symbols_list=no
  6532. fi
  6533. rm -f core conftest.err conftest.$ac_objext \
  6534. conftest$ac_exeext conftest.$ac_ext
  6535. LDFLAGS=$save_LDFLAGS
  6536. fi
  6537. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
  6538. $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
  6539. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
  6540. $as_echo_n "checking for -force_load linker flag... " >&6; }
  6541. if ${lt_cv_ld_force_load+:} false; then :
  6542. $as_echo_n "(cached) " >&6
  6543. else
  6544. lt_cv_ld_force_load=no
  6545. cat > conftest.c << _LT_EOF
  6546. int forced_loaded() { return 2;}
  6547. _LT_EOF
  6548. echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
  6549. $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
  6550. echo "$AR cru libconftest.a conftest.o" >&5
  6551. $AR cru libconftest.a conftest.o 2>&5
  6552. echo "$RANLIB libconftest.a" >&5
  6553. $RANLIB libconftest.a 2>&5
  6554. cat > conftest.c << _LT_EOF
  6555. int main() { return 0;}
  6556. _LT_EOF
  6557. echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
  6558. $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
  6559. _lt_result=$?
  6560. if test -s conftest.err && $GREP force_load conftest.err; then
  6561. cat conftest.err >&5
  6562. elif test -f conftest && test 0 = "$_lt_result" && $GREP forced_load conftest >/dev/null 2>&1; then
  6563. lt_cv_ld_force_load=yes
  6564. else
  6565. cat conftest.err >&5
  6566. fi
  6567. rm -f conftest.err libconftest.a conftest conftest.c
  6568. rm -rf conftest.dSYM
  6569. fi
  6570. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
  6571. $as_echo "$lt_cv_ld_force_load" >&6; }
  6572. case $host_os in
  6573. rhapsody* | darwin1.[012])
  6574. _lt_dar_allow_undefined='$wl-undefined ${wl}suppress' ;;
  6575. darwin1.*)
  6576. _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
  6577. darwin*) # darwin 5.x on
  6578. # if running on 10.5 or later, the deployment target defaults
  6579. # to the OS version, if on x86, and 10.4, the deployment
  6580. # target defaults to 10.4. Don't you love it?
  6581. case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
  6582. 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
  6583. _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
  6584. 10.[012][,.]*)
  6585. _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
  6586. 10.*)
  6587. _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
  6588. esac
  6589. ;;
  6590. esac
  6591. if test yes = "$lt_cv_apple_cc_single_mod"; then
  6592. _lt_dar_single_mod='$single_module'
  6593. fi
  6594. if test yes = "$lt_cv_ld_exported_symbols_list"; then
  6595. _lt_dar_export_syms=' $wl-exported_symbols_list,$output_objdir/$libname-symbols.expsym'
  6596. else
  6597. _lt_dar_export_syms='~$NMEDIT -s $output_objdir/$libname-symbols.expsym $lib'
  6598. fi
  6599. if test : != "$DSYMUTIL" && test no = "$lt_cv_ld_force_load"; then
  6600. _lt_dsymutil='~$DSYMUTIL $lib || :'
  6601. else
  6602. _lt_dsymutil=
  6603. fi
  6604. ;;
  6605. esac
  6606. # func_munge_path_list VARIABLE PATH
  6607. # -----------------------------------
  6608. # VARIABLE is name of variable containing _space_ separated list of
  6609. # directories to be munged by the contents of PATH, which is string
  6610. # having a format:
  6611. # "DIR[:DIR]:"
  6612. # string "DIR[ DIR]" will be prepended to VARIABLE
  6613. # ":DIR[:DIR]"
  6614. # string "DIR[ DIR]" will be appended to VARIABLE
  6615. # "DIRP[:DIRP]::[DIRA:]DIRA"
  6616. # string "DIRP[ DIRP]" will be prepended to VARIABLE and string
  6617. # "DIRA[ DIRA]" will be appended to VARIABLE
  6618. # "DIR[:DIR]"
  6619. # VARIABLE will be replaced by "DIR[ DIR]"
  6620. func_munge_path_list ()
  6621. {
  6622. case x$2 in
  6623. x)
  6624. ;;
  6625. *:)
  6626. eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
  6627. ;;
  6628. x:*)
  6629. eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
  6630. ;;
  6631. *::*)
  6632. eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
  6633. eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
  6634. ;;
  6635. *)
  6636. eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
  6637. ;;
  6638. esac
  6639. }
  6640. ac_ext=c
  6641. ac_cpp='$CPP $CPPFLAGS'
  6642. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  6643. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  6644. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  6645. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
  6646. $as_echo_n "checking how to run the C preprocessor... " >&6; }
  6647. # On Suns, sometimes $CPP names a directory.
  6648. if test -n "$CPP" && test -d "$CPP"; then
  6649. CPP=
  6650. fi
  6651. if test -z "$CPP"; then
  6652. if ${ac_cv_prog_CPP+:} false; then :
  6653. $as_echo_n "(cached) " >&6
  6654. else
  6655. # Double quotes because CPP needs to be expanded
  6656. for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
  6657. do
  6658. ac_preproc_ok=false
  6659. for ac_c_preproc_warn_flag in '' yes
  6660. do
  6661. # Use a header file that comes with gcc, so configuring glibc
  6662. # with a fresh cross-compiler works.
  6663. # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  6664. # <limits.h> exists even on freestanding compilers.
  6665. # On the NeXT, cc -E runs the code through the compiler's parser,
  6666. # not just through cpp. "Syntax error" is here to catch this case.
  6667. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6668. /* end confdefs.h. */
  6669. #ifdef __STDC__
  6670. # include <limits.h>
  6671. #else
  6672. # include <assert.h>
  6673. #endif
  6674. Syntax error
  6675. _ACEOF
  6676. if ac_fn_c_try_cpp "$LINENO"; then :
  6677. else
  6678. # Broken: fails on valid input.
  6679. continue
  6680. fi
  6681. rm -f conftest.err conftest.i conftest.$ac_ext
  6682. # OK, works on sane cases. Now check whether nonexistent headers
  6683. # can be detected and how.
  6684. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6685. /* end confdefs.h. */
  6686. #include <ac_nonexistent.h>
  6687. _ACEOF
  6688. if ac_fn_c_try_cpp "$LINENO"; then :
  6689. # Broken: success on invalid input.
  6690. continue
  6691. else
  6692. # Passes both tests.
  6693. ac_preproc_ok=:
  6694. break
  6695. fi
  6696. rm -f conftest.err conftest.i conftest.$ac_ext
  6697. done
  6698. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  6699. rm -f conftest.i conftest.err conftest.$ac_ext
  6700. if $ac_preproc_ok; then :
  6701. break
  6702. fi
  6703. done
  6704. ac_cv_prog_CPP=$CPP
  6705. fi
  6706. CPP=$ac_cv_prog_CPP
  6707. else
  6708. ac_cv_prog_CPP=$CPP
  6709. fi
  6710. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
  6711. $as_echo "$CPP" >&6; }
  6712. ac_preproc_ok=false
  6713. for ac_c_preproc_warn_flag in '' yes
  6714. do
  6715. # Use a header file that comes with gcc, so configuring glibc
  6716. # with a fresh cross-compiler works.
  6717. # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  6718. # <limits.h> exists even on freestanding compilers.
  6719. # On the NeXT, cc -E runs the code through the compiler's parser,
  6720. # not just through cpp. "Syntax error" is here to catch this case.
  6721. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6722. /* end confdefs.h. */
  6723. #ifdef __STDC__
  6724. # include <limits.h>
  6725. #else
  6726. # include <assert.h>
  6727. #endif
  6728. Syntax error
  6729. _ACEOF
  6730. if ac_fn_c_try_cpp "$LINENO"; then :
  6731. else
  6732. # Broken: fails on valid input.
  6733. continue
  6734. fi
  6735. rm -f conftest.err conftest.i conftest.$ac_ext
  6736. # OK, works on sane cases. Now check whether nonexistent headers
  6737. # can be detected and how.
  6738. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6739. /* end confdefs.h. */
  6740. #include <ac_nonexistent.h>
  6741. _ACEOF
  6742. if ac_fn_c_try_cpp "$LINENO"; then :
  6743. # Broken: success on invalid input.
  6744. continue
  6745. else
  6746. # Passes both tests.
  6747. ac_preproc_ok=:
  6748. break
  6749. fi
  6750. rm -f conftest.err conftest.i conftest.$ac_ext
  6751. done
  6752. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  6753. rm -f conftest.i conftest.err conftest.$ac_ext
  6754. if $ac_preproc_ok; then :
  6755. else
  6756. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  6757. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  6758. as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
  6759. See \`config.log' for more details" "$LINENO" 5; }
  6760. fi
  6761. ac_ext=c
  6762. ac_cpp='$CPP $CPPFLAGS'
  6763. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  6764. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  6765. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  6766. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
  6767. $as_echo_n "checking for ANSI C header files... " >&6; }
  6768. if ${ac_cv_header_stdc+:} false; then :
  6769. $as_echo_n "(cached) " >&6
  6770. else
  6771. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6772. /* end confdefs.h. */
  6773. #include <stdlib.h>
  6774. #include <stdarg.h>
  6775. #include <string.h>
  6776. #include <float.h>
  6777. int
  6778. main ()
  6779. {
  6780. ;
  6781. return 0;
  6782. }
  6783. _ACEOF
  6784. if ac_fn_c_try_compile "$LINENO"; then :
  6785. ac_cv_header_stdc=yes
  6786. else
  6787. ac_cv_header_stdc=no
  6788. fi
  6789. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  6790. if test $ac_cv_header_stdc = yes; then
  6791. # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
  6792. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6793. /* end confdefs.h. */
  6794. #include <string.h>
  6795. _ACEOF
  6796. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  6797. $EGREP "memchr" >/dev/null 2>&1; then :
  6798. else
  6799. ac_cv_header_stdc=no
  6800. fi
  6801. rm -f conftest*
  6802. fi
  6803. if test $ac_cv_header_stdc = yes; then
  6804. # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
  6805. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6806. /* end confdefs.h. */
  6807. #include <stdlib.h>
  6808. _ACEOF
  6809. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  6810. $EGREP "free" >/dev/null 2>&1; then :
  6811. else
  6812. ac_cv_header_stdc=no
  6813. fi
  6814. rm -f conftest*
  6815. fi
  6816. if test $ac_cv_header_stdc = yes; then
  6817. # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
  6818. if test "$cross_compiling" = yes; then :
  6819. :
  6820. else
  6821. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6822. /* end confdefs.h. */
  6823. #include <ctype.h>
  6824. #include <stdlib.h>
  6825. #if ((' ' & 0x0FF) == 0x020)
  6826. # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
  6827. # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
  6828. #else
  6829. # define ISLOWER(c) \
  6830. (('a' <= (c) && (c) <= 'i') \
  6831. || ('j' <= (c) && (c) <= 'r') \
  6832. || ('s' <= (c) && (c) <= 'z'))
  6833. # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
  6834. #endif
  6835. #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
  6836. int
  6837. main ()
  6838. {
  6839. int i;
  6840. for (i = 0; i < 256; i++)
  6841. if (XOR (islower (i), ISLOWER (i))
  6842. || toupper (i) != TOUPPER (i))
  6843. return 2;
  6844. return 0;
  6845. }
  6846. _ACEOF
  6847. if ac_fn_c_try_run "$LINENO"; then :
  6848. else
  6849. ac_cv_header_stdc=no
  6850. fi
  6851. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  6852. conftest.$ac_objext conftest.beam conftest.$ac_ext
  6853. fi
  6854. fi
  6855. fi
  6856. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
  6857. $as_echo "$ac_cv_header_stdc" >&6; }
  6858. if test $ac_cv_header_stdc = yes; then
  6859. $as_echo "#define STDC_HEADERS 1" >>confdefs.h
  6860. fi
  6861. # On IRIX 5.3, sys/types and inttypes.h are conflicting.
  6862. for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
  6863. inttypes.h stdint.h unistd.h
  6864. do :
  6865. as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
  6866. ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
  6867. "
  6868. if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
  6869. cat >>confdefs.h <<_ACEOF
  6870. #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
  6871. _ACEOF
  6872. fi
  6873. done
  6874. for ac_header in dlfcn.h
  6875. do :
  6876. ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
  6877. "
  6878. if test "x$ac_cv_header_dlfcn_h" = xyes; then :
  6879. cat >>confdefs.h <<_ACEOF
  6880. #define HAVE_DLFCN_H 1
  6881. _ACEOF
  6882. fi
  6883. done
  6884. # Set options
  6885. enable_dlopen=no
  6886. enable_win32_dll=no
  6887. # Check whether --enable-shared was given.
  6888. if test "${enable_shared+set}" = set; then :
  6889. enableval=$enable_shared; p=${PACKAGE-default}
  6890. case $enableval in
  6891. yes) enable_shared=yes ;;
  6892. no) enable_shared=no ;;
  6893. *)
  6894. enable_shared=no
  6895. # Look at the argument we got. We use all the common list separators.
  6896. lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
  6897. for pkg in $enableval; do
  6898. IFS=$lt_save_ifs
  6899. if test "X$pkg" = "X$p"; then
  6900. enable_shared=yes
  6901. fi
  6902. done
  6903. IFS=$lt_save_ifs
  6904. ;;
  6905. esac
  6906. else
  6907. enable_shared=yes
  6908. fi
  6909. # Check whether --enable-static was given.
  6910. if test "${enable_static+set}" = set; then :
  6911. enableval=$enable_static; p=${PACKAGE-default}
  6912. case $enableval in
  6913. yes) enable_static=yes ;;
  6914. no) enable_static=no ;;
  6915. *)
  6916. enable_static=no
  6917. # Look at the argument we got. We use all the common list separators.
  6918. lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
  6919. for pkg in $enableval; do
  6920. IFS=$lt_save_ifs
  6921. if test "X$pkg" = "X$p"; then
  6922. enable_static=yes
  6923. fi
  6924. done
  6925. IFS=$lt_save_ifs
  6926. ;;
  6927. esac
  6928. else
  6929. enable_static=yes
  6930. fi
  6931. # Check whether --with-pic was given.
  6932. if test "${with_pic+set}" = set; then :
  6933. withval=$with_pic; lt_p=${PACKAGE-default}
  6934. case $withval in
  6935. yes|no) pic_mode=$withval ;;
  6936. *)
  6937. pic_mode=default
  6938. # Look at the argument we got. We use all the common list separators.
  6939. lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
  6940. for lt_pkg in $withval; do
  6941. IFS=$lt_save_ifs
  6942. if test "X$lt_pkg" = "X$lt_p"; then
  6943. pic_mode=yes
  6944. fi
  6945. done
  6946. IFS=$lt_save_ifs
  6947. ;;
  6948. esac
  6949. else
  6950. pic_mode=default
  6951. fi
  6952. # Check whether --enable-fast-install was given.
  6953. if test "${enable_fast_install+set}" = set; then :
  6954. enableval=$enable_fast_install; p=${PACKAGE-default}
  6955. case $enableval in
  6956. yes) enable_fast_install=yes ;;
  6957. no) enable_fast_install=no ;;
  6958. *)
  6959. enable_fast_install=no
  6960. # Look at the argument we got. We use all the common list separators.
  6961. lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
  6962. for pkg in $enableval; do
  6963. IFS=$lt_save_ifs
  6964. if test "X$pkg" = "X$p"; then
  6965. enable_fast_install=yes
  6966. fi
  6967. done
  6968. IFS=$lt_save_ifs
  6969. ;;
  6970. esac
  6971. else
  6972. enable_fast_install=yes
  6973. fi
  6974. shared_archive_member_spec=
  6975. case $host,$enable_shared in
  6976. power*-*-aix[5-9]*,yes)
  6977. { $as_echo "$as_me:${as_lineno-$LINENO}: checking which variant of shared library versioning to provide" >&5
  6978. $as_echo_n "checking which variant of shared library versioning to provide... " >&6; }
  6979. # Check whether --with-aix-soname was given.
  6980. if test "${with_aix_soname+set}" = set; then :
  6981. withval=$with_aix_soname; case $withval in
  6982. aix|svr4|both)
  6983. ;;
  6984. *)
  6985. as_fn_error $? "Unknown argument to --with-aix-soname" "$LINENO" 5
  6986. ;;
  6987. esac
  6988. lt_cv_with_aix_soname=$with_aix_soname
  6989. else
  6990. if ${lt_cv_with_aix_soname+:} false; then :
  6991. $as_echo_n "(cached) " >&6
  6992. else
  6993. lt_cv_with_aix_soname=aix
  6994. fi
  6995. with_aix_soname=$lt_cv_with_aix_soname
  6996. fi
  6997. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_aix_soname" >&5
  6998. $as_echo "$with_aix_soname" >&6; }
  6999. if test aix != "$with_aix_soname"; then
  7000. # For the AIX way of multilib, we name the shared archive member
  7001. # based on the bitwidth used, traditionally 'shr.o' or 'shr_64.o',
  7002. # and 'shr.imp' or 'shr_64.imp', respectively, for the Import File.
  7003. # Even when GNU compilers ignore OBJECT_MODE but need '-maix64' flag,
  7004. # the AIX toolchain works better with OBJECT_MODE set (default 32).
  7005. if test 64 = "${OBJECT_MODE-32}"; then
  7006. shared_archive_member_spec=shr_64
  7007. else
  7008. shared_archive_member_spec=shr
  7009. fi
  7010. fi
  7011. ;;
  7012. *)
  7013. with_aix_soname=aix
  7014. ;;
  7015. esac
  7016. # This can be used to rebuild libtool when needed
  7017. LIBTOOL_DEPS=$ltmain
  7018. # Always use our own libtool.
  7019. LIBTOOL='$(SHELL) $(top_builddir)/libtool'
  7020. test -z "$LN_S" && LN_S="ln -s"
  7021. if test -n "${ZSH_VERSION+set}"; then
  7022. setopt NO_GLOB_SUBST
  7023. fi
  7024. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
  7025. $as_echo_n "checking for objdir... " >&6; }
  7026. if ${lt_cv_objdir+:} false; then :
  7027. $as_echo_n "(cached) " >&6
  7028. else
  7029. rm -f .libs 2>/dev/null
  7030. mkdir .libs 2>/dev/null
  7031. if test -d .libs; then
  7032. lt_cv_objdir=.libs
  7033. else
  7034. # MS-DOS does not allow filenames that begin with a dot.
  7035. lt_cv_objdir=_libs
  7036. fi
  7037. rmdir .libs 2>/dev/null
  7038. fi
  7039. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
  7040. $as_echo "$lt_cv_objdir" >&6; }
  7041. objdir=$lt_cv_objdir
  7042. cat >>confdefs.h <<_ACEOF
  7043. #define LT_OBJDIR "$lt_cv_objdir/"
  7044. _ACEOF
  7045. case $host_os in
  7046. aix3*)
  7047. # AIX sometimes has problems with the GCC collect2 program. For some
  7048. # reason, if we set the COLLECT_NAMES environment variable, the problems
  7049. # vanish in a puff of smoke.
  7050. if test set != "${COLLECT_NAMES+set}"; then
  7051. COLLECT_NAMES=
  7052. export COLLECT_NAMES
  7053. fi
  7054. ;;
  7055. esac
  7056. # Global variables:
  7057. ofile=libtool
  7058. can_build_shared=yes
  7059. # All known linkers require a '.a' archive for static linking (except MSVC,
  7060. # which needs '.lib').
  7061. libext=a
  7062. with_gnu_ld=$lt_cv_prog_gnu_ld
  7063. old_CC=$CC
  7064. old_CFLAGS=$CFLAGS
  7065. # Set sane defaults for various variables
  7066. test -z "$CC" && CC=cc
  7067. test -z "$LTCC" && LTCC=$CC
  7068. test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
  7069. test -z "$LD" && LD=ld
  7070. test -z "$ac_objext" && ac_objext=o
  7071. func_cc_basename $compiler
  7072. cc_basename=$func_cc_basename_result
  7073. # Only perform the check for file, if the check method requires it
  7074. test -z "$MAGIC_CMD" && MAGIC_CMD=file
  7075. case $deplibs_check_method in
  7076. file_magic*)
  7077. if test "$file_magic_cmd" = '$MAGIC_CMD'; then
  7078. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
  7079. $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
  7080. if ${lt_cv_path_MAGIC_CMD+:} false; then :
  7081. $as_echo_n "(cached) " >&6
  7082. else
  7083. case $MAGIC_CMD in
  7084. [\\/*] | ?:[\\/]*)
  7085. lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
  7086. ;;
  7087. *)
  7088. lt_save_MAGIC_CMD=$MAGIC_CMD
  7089. lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
  7090. ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
  7091. for ac_dir in $ac_dummy; do
  7092. IFS=$lt_save_ifs
  7093. test -z "$ac_dir" && ac_dir=.
  7094. if test -f "$ac_dir/${ac_tool_prefix}file"; then
  7095. lt_cv_path_MAGIC_CMD=$ac_dir/"${ac_tool_prefix}file"
  7096. if test -n "$file_magic_test_file"; then
  7097. case $deplibs_check_method in
  7098. "file_magic "*)
  7099. file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
  7100. MAGIC_CMD=$lt_cv_path_MAGIC_CMD
  7101. if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
  7102. $EGREP "$file_magic_regex" > /dev/null; then
  7103. :
  7104. else
  7105. cat <<_LT_EOF 1>&2
  7106. *** Warning: the command libtool uses to detect shared libraries,
  7107. *** $file_magic_cmd, produces output that libtool cannot recognize.
  7108. *** The result is that libtool may fail to recognize shared libraries
  7109. *** as such. This will affect the creation of libtool libraries that
  7110. *** depend on shared libraries, but programs linked with such libtool
  7111. *** libraries will work regardless of this problem. Nevertheless, you
  7112. *** may want to report the problem to your system manager and/or to
  7113. *** bug-libtool@gnu.org
  7114. _LT_EOF
  7115. fi ;;
  7116. esac
  7117. fi
  7118. break
  7119. fi
  7120. done
  7121. IFS=$lt_save_ifs
  7122. MAGIC_CMD=$lt_save_MAGIC_CMD
  7123. ;;
  7124. esac
  7125. fi
  7126. MAGIC_CMD=$lt_cv_path_MAGIC_CMD
  7127. if test -n "$MAGIC_CMD"; then
  7128. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
  7129. $as_echo "$MAGIC_CMD" >&6; }
  7130. else
  7131. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7132. $as_echo "no" >&6; }
  7133. fi
  7134. if test -z "$lt_cv_path_MAGIC_CMD"; then
  7135. if test -n "$ac_tool_prefix"; then
  7136. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
  7137. $as_echo_n "checking for file... " >&6; }
  7138. if ${lt_cv_path_MAGIC_CMD+:} false; then :
  7139. $as_echo_n "(cached) " >&6
  7140. else
  7141. case $MAGIC_CMD in
  7142. [\\/*] | ?:[\\/]*)
  7143. lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
  7144. ;;
  7145. *)
  7146. lt_save_MAGIC_CMD=$MAGIC_CMD
  7147. lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
  7148. ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
  7149. for ac_dir in $ac_dummy; do
  7150. IFS=$lt_save_ifs
  7151. test -z "$ac_dir" && ac_dir=.
  7152. if test -f "$ac_dir/file"; then
  7153. lt_cv_path_MAGIC_CMD=$ac_dir/"file"
  7154. if test -n "$file_magic_test_file"; then
  7155. case $deplibs_check_method in
  7156. "file_magic "*)
  7157. file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
  7158. MAGIC_CMD=$lt_cv_path_MAGIC_CMD
  7159. if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
  7160. $EGREP "$file_magic_regex" > /dev/null; then
  7161. :
  7162. else
  7163. cat <<_LT_EOF 1>&2
  7164. *** Warning: the command libtool uses to detect shared libraries,
  7165. *** $file_magic_cmd, produces output that libtool cannot recognize.
  7166. *** The result is that libtool may fail to recognize shared libraries
  7167. *** as such. This will affect the creation of libtool libraries that
  7168. *** depend on shared libraries, but programs linked with such libtool
  7169. *** libraries will work regardless of this problem. Nevertheless, you
  7170. *** may want to report the problem to your system manager and/or to
  7171. *** bug-libtool@gnu.org
  7172. _LT_EOF
  7173. fi ;;
  7174. esac
  7175. fi
  7176. break
  7177. fi
  7178. done
  7179. IFS=$lt_save_ifs
  7180. MAGIC_CMD=$lt_save_MAGIC_CMD
  7181. ;;
  7182. esac
  7183. fi
  7184. MAGIC_CMD=$lt_cv_path_MAGIC_CMD
  7185. if test -n "$MAGIC_CMD"; then
  7186. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
  7187. $as_echo "$MAGIC_CMD" >&6; }
  7188. else
  7189. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7190. $as_echo "no" >&6; }
  7191. fi
  7192. else
  7193. MAGIC_CMD=:
  7194. fi
  7195. fi
  7196. fi
  7197. ;;
  7198. esac
  7199. # Use C for the default configuration in the libtool script
  7200. lt_save_CC=$CC
  7201. ac_ext=c
  7202. ac_cpp='$CPP $CPPFLAGS'
  7203. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  7204. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  7205. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  7206. # Source file extension for C test sources.
  7207. ac_ext=c
  7208. # Object file extension for compiled C test sources.
  7209. objext=o
  7210. objext=$objext
  7211. # Code to be used in simple compile tests
  7212. lt_simple_compile_test_code="int some_variable = 0;"
  7213. # Code to be used in simple link tests
  7214. lt_simple_link_test_code='int main(){return(0);}'
  7215. # If no C compiler was specified, use CC.
  7216. LTCC=${LTCC-"$CC"}
  7217. # If no C compiler flags were specified, use CFLAGS.
  7218. LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
  7219. # Allow CC to be a program name with arguments.
  7220. compiler=$CC
  7221. # Save the default compiler, since it gets overwritten when the other
  7222. # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
  7223. compiler_DEFAULT=$CC
  7224. # save warnings/boilerplate of simple test code
  7225. ac_outfile=conftest.$ac_objext
  7226. echo "$lt_simple_compile_test_code" >conftest.$ac_ext
  7227. eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  7228. _lt_compiler_boilerplate=`cat conftest.err`
  7229. $RM conftest*
  7230. ac_outfile=conftest.$ac_objext
  7231. echo "$lt_simple_link_test_code" >conftest.$ac_ext
  7232. eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  7233. _lt_linker_boilerplate=`cat conftest.err`
  7234. $RM -r conftest*
  7235. ## CAVEAT EMPTOR:
  7236. ## There is no encapsulation within the following macros, do not change
  7237. ## the running order or otherwise move them around unless you know exactly
  7238. ## what you are doing...
  7239. if test -n "$compiler"; then
  7240. lt_prog_compiler_no_builtin_flag=
  7241. if test yes = "$GCC"; then
  7242. case $cc_basename in
  7243. nvcc*)
  7244. lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
  7245. *)
  7246. lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
  7247. esac
  7248. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
  7249. $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
  7250. if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
  7251. $as_echo_n "(cached) " >&6
  7252. else
  7253. lt_cv_prog_compiler_rtti_exceptions=no
  7254. ac_outfile=conftest.$ac_objext
  7255. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  7256. lt_compiler_flag="-fno-rtti -fno-exceptions" ## exclude from sc_useless_quotes_in_assignment
  7257. # Insert the option either (1) after the last *FLAGS variable, or
  7258. # (2) before a word containing "conftest.", or (3) at the end.
  7259. # Note that $ac_compile itself does not contain backslashes and begins
  7260. # with a dollar sign (not a hyphen), so the echo should work correctly.
  7261. # The option is referenced via a variable to avoid confusing sed.
  7262. lt_compile=`echo "$ac_compile" | $SED \
  7263. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  7264. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  7265. -e 's:$: $lt_compiler_flag:'`
  7266. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  7267. (eval "$lt_compile" 2>conftest.err)
  7268. ac_status=$?
  7269. cat conftest.err >&5
  7270. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7271. if (exit $ac_status) && test -s "$ac_outfile"; then
  7272. # The compiler can only warn and ignore the option if not recognized
  7273. # So say no if there are warnings other than the usual output.
  7274. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
  7275. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  7276. if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
  7277. lt_cv_prog_compiler_rtti_exceptions=yes
  7278. fi
  7279. fi
  7280. $RM conftest*
  7281. fi
  7282. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
  7283. $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
  7284. if test yes = "$lt_cv_prog_compiler_rtti_exceptions"; then
  7285. lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
  7286. else
  7287. :
  7288. fi
  7289. fi
  7290. lt_prog_compiler_wl=
  7291. lt_prog_compiler_pic=
  7292. lt_prog_compiler_static=
  7293. if test yes = "$GCC"; then
  7294. lt_prog_compiler_wl='-Wl,'
  7295. lt_prog_compiler_static='-static'
  7296. case $host_os in
  7297. aix*)
  7298. # All AIX code is PIC.
  7299. if test ia64 = "$host_cpu"; then
  7300. # AIX 5 now supports IA64 processor
  7301. lt_prog_compiler_static='-Bstatic'
  7302. fi
  7303. lt_prog_compiler_pic='-fPIC'
  7304. ;;
  7305. amigaos*)
  7306. case $host_cpu in
  7307. powerpc)
  7308. # see comment about AmigaOS4 .so support
  7309. lt_prog_compiler_pic='-fPIC'
  7310. ;;
  7311. m68k)
  7312. # FIXME: we need at least 68020 code to build shared libraries, but
  7313. # adding the '-m68020' flag to GCC prevents building anything better,
  7314. # like '-m68040'.
  7315. lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
  7316. ;;
  7317. esac
  7318. ;;
  7319. beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
  7320. # PIC is the default for these OSes.
  7321. ;;
  7322. mingw* | cygwin* | pw32* | os2* | cegcc*)
  7323. # This hack is so that the source file can tell whether it is being
  7324. # built for inclusion in a dll (and should export symbols for example).
  7325. # Although the cygwin gcc ignores -fPIC, still need this for old-style
  7326. # (--disable-auto-import) libraries
  7327. lt_prog_compiler_pic='-DDLL_EXPORT'
  7328. case $host_os in
  7329. os2*)
  7330. lt_prog_compiler_static='$wl-static'
  7331. ;;
  7332. esac
  7333. ;;
  7334. darwin* | rhapsody*)
  7335. # PIC is the default on this platform
  7336. # Common symbols not allowed in MH_DYLIB files
  7337. lt_prog_compiler_pic='-fno-common'
  7338. ;;
  7339. haiku*)
  7340. # PIC is the default for Haiku.
  7341. # The "-static" flag exists, but is broken.
  7342. lt_prog_compiler_static=
  7343. ;;
  7344. hpux*)
  7345. # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
  7346. # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
  7347. # sets the default TLS model and affects inlining.
  7348. case $host_cpu in
  7349. hppa*64*)
  7350. # +Z the default
  7351. ;;
  7352. *)
  7353. lt_prog_compiler_pic='-fPIC'
  7354. ;;
  7355. esac
  7356. ;;
  7357. interix[3-9]*)
  7358. # Interix 3.x gcc -fpic/-fPIC options generate broken code.
  7359. # Instead, we relocate shared libraries at runtime.
  7360. ;;
  7361. msdosdjgpp*)
  7362. # Just because we use GCC doesn't mean we suddenly get shared libraries
  7363. # on systems that don't support them.
  7364. lt_prog_compiler_can_build_shared=no
  7365. enable_shared=no
  7366. ;;
  7367. *nto* | *qnx*)
  7368. # QNX uses GNU C++, but need to define -shared option too, otherwise
  7369. # it will coredump.
  7370. lt_prog_compiler_pic='-fPIC -shared'
  7371. ;;
  7372. sysv4*MP*)
  7373. if test -d /usr/nec; then
  7374. lt_prog_compiler_pic=-Kconform_pic
  7375. fi
  7376. ;;
  7377. *)
  7378. lt_prog_compiler_pic='-fPIC'
  7379. ;;
  7380. esac
  7381. case $cc_basename in
  7382. nvcc*) # Cuda Compiler Driver 2.2
  7383. lt_prog_compiler_wl='-Xlinker '
  7384. if test -n "$lt_prog_compiler_pic"; then
  7385. lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
  7386. fi
  7387. ;;
  7388. esac
  7389. else
  7390. # PORTME Check for flag to pass linker flags through the system compiler.
  7391. case $host_os in
  7392. aix*)
  7393. lt_prog_compiler_wl='-Wl,'
  7394. if test ia64 = "$host_cpu"; then
  7395. # AIX 5 now supports IA64 processor
  7396. lt_prog_compiler_static='-Bstatic'
  7397. else
  7398. lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
  7399. fi
  7400. ;;
  7401. darwin* | rhapsody*)
  7402. # PIC is the default on this platform
  7403. # Common symbols not allowed in MH_DYLIB files
  7404. lt_prog_compiler_pic='-fno-common'
  7405. case $cc_basename in
  7406. nagfor*)
  7407. # NAG Fortran compiler
  7408. lt_prog_compiler_wl='-Wl,-Wl,,'
  7409. lt_prog_compiler_pic='-PIC'
  7410. lt_prog_compiler_static='-Bstatic'
  7411. ;;
  7412. esac
  7413. ;;
  7414. mingw* | cygwin* | pw32* | os2* | cegcc*)
  7415. # This hack is so that the source file can tell whether it is being
  7416. # built for inclusion in a dll (and should export symbols for example).
  7417. lt_prog_compiler_pic='-DDLL_EXPORT'
  7418. case $host_os in
  7419. os2*)
  7420. lt_prog_compiler_static='$wl-static'
  7421. ;;
  7422. esac
  7423. ;;
  7424. hpux9* | hpux10* | hpux11*)
  7425. lt_prog_compiler_wl='-Wl,'
  7426. # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
  7427. # not for PA HP-UX.
  7428. case $host_cpu in
  7429. hppa*64*|ia64*)
  7430. # +Z the default
  7431. ;;
  7432. *)
  7433. lt_prog_compiler_pic='+Z'
  7434. ;;
  7435. esac
  7436. # Is there a better lt_prog_compiler_static that works with the bundled CC?
  7437. lt_prog_compiler_static='$wl-a ${wl}archive'
  7438. ;;
  7439. irix5* | irix6* | nonstopux*)
  7440. lt_prog_compiler_wl='-Wl,'
  7441. # PIC (with -KPIC) is the default.
  7442. lt_prog_compiler_static='-non_shared'
  7443. ;;
  7444. linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
  7445. case $cc_basename in
  7446. # old Intel for x86_64, which still supported -KPIC.
  7447. ecc*)
  7448. lt_prog_compiler_wl='-Wl,'
  7449. lt_prog_compiler_pic='-KPIC'
  7450. lt_prog_compiler_static='-static'
  7451. ;;
  7452. # icc used to be incompatible with GCC.
  7453. # ICC 10 doesn't accept -KPIC any more.
  7454. icc* | ifort*)
  7455. lt_prog_compiler_wl='-Wl,'
  7456. lt_prog_compiler_pic='-fPIC'
  7457. lt_prog_compiler_static='-static'
  7458. ;;
  7459. # Lahey Fortran 8.1.
  7460. lf95*)
  7461. lt_prog_compiler_wl='-Wl,'
  7462. lt_prog_compiler_pic='--shared'
  7463. lt_prog_compiler_static='--static'
  7464. ;;
  7465. nagfor*)
  7466. # NAG Fortran compiler
  7467. lt_prog_compiler_wl='-Wl,-Wl,,'
  7468. lt_prog_compiler_pic='-PIC'
  7469. lt_prog_compiler_static='-Bstatic'
  7470. ;;
  7471. tcc*)
  7472. # Fabrice Bellard et al's Tiny C Compiler
  7473. lt_prog_compiler_wl='-Wl,'
  7474. lt_prog_compiler_pic='-fPIC'
  7475. lt_prog_compiler_static='-static'
  7476. ;;
  7477. pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
  7478. # Portland Group compilers (*not* the Pentium gcc compiler,
  7479. # which looks to be a dead project)
  7480. lt_prog_compiler_wl='-Wl,'
  7481. lt_prog_compiler_pic='-fpic'
  7482. lt_prog_compiler_static='-Bstatic'
  7483. ;;
  7484. ccc*)
  7485. lt_prog_compiler_wl='-Wl,'
  7486. # All Alpha code is PIC.
  7487. lt_prog_compiler_static='-non_shared'
  7488. ;;
  7489. xl* | bgxl* | bgf* | mpixl*)
  7490. # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
  7491. lt_prog_compiler_wl='-Wl,'
  7492. lt_prog_compiler_pic='-qpic'
  7493. lt_prog_compiler_static='-qstaticlink'
  7494. ;;
  7495. *)
  7496. case `$CC -V 2>&1 | sed 5q` in
  7497. *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
  7498. # Sun Fortran 8.3 passes all unrecognized flags to the linker
  7499. lt_prog_compiler_pic='-KPIC'
  7500. lt_prog_compiler_static='-Bstatic'
  7501. lt_prog_compiler_wl=''
  7502. ;;
  7503. *Sun\ F* | *Sun*Fortran*)
  7504. lt_prog_compiler_pic='-KPIC'
  7505. lt_prog_compiler_static='-Bstatic'
  7506. lt_prog_compiler_wl='-Qoption ld '
  7507. ;;
  7508. *Sun\ C*)
  7509. # Sun C 5.9
  7510. lt_prog_compiler_pic='-KPIC'
  7511. lt_prog_compiler_static='-Bstatic'
  7512. lt_prog_compiler_wl='-Wl,'
  7513. ;;
  7514. *Intel*\ [CF]*Compiler*)
  7515. lt_prog_compiler_wl='-Wl,'
  7516. lt_prog_compiler_pic='-fPIC'
  7517. lt_prog_compiler_static='-static'
  7518. ;;
  7519. *Portland\ Group*)
  7520. lt_prog_compiler_wl='-Wl,'
  7521. lt_prog_compiler_pic='-fpic'
  7522. lt_prog_compiler_static='-Bstatic'
  7523. ;;
  7524. esac
  7525. ;;
  7526. esac
  7527. ;;
  7528. newsos6)
  7529. lt_prog_compiler_pic='-KPIC'
  7530. lt_prog_compiler_static='-Bstatic'
  7531. ;;
  7532. *nto* | *qnx*)
  7533. # QNX uses GNU C++, but need to define -shared option too, otherwise
  7534. # it will coredump.
  7535. lt_prog_compiler_pic='-fPIC -shared'
  7536. ;;
  7537. osf3* | osf4* | osf5*)
  7538. lt_prog_compiler_wl='-Wl,'
  7539. # All OSF/1 code is PIC.
  7540. lt_prog_compiler_static='-non_shared'
  7541. ;;
  7542. rdos*)
  7543. lt_prog_compiler_static='-non_shared'
  7544. ;;
  7545. solaris*)
  7546. lt_prog_compiler_pic='-KPIC'
  7547. lt_prog_compiler_static='-Bstatic'
  7548. case $cc_basename in
  7549. f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
  7550. lt_prog_compiler_wl='-Qoption ld ';;
  7551. *)
  7552. lt_prog_compiler_wl='-Wl,';;
  7553. esac
  7554. ;;
  7555. sunos4*)
  7556. lt_prog_compiler_wl='-Qoption ld '
  7557. lt_prog_compiler_pic='-PIC'
  7558. lt_prog_compiler_static='-Bstatic'
  7559. ;;
  7560. sysv4 | sysv4.2uw2* | sysv4.3*)
  7561. lt_prog_compiler_wl='-Wl,'
  7562. lt_prog_compiler_pic='-KPIC'
  7563. lt_prog_compiler_static='-Bstatic'
  7564. ;;
  7565. sysv4*MP*)
  7566. if test -d /usr/nec; then
  7567. lt_prog_compiler_pic='-Kconform_pic'
  7568. lt_prog_compiler_static='-Bstatic'
  7569. fi
  7570. ;;
  7571. sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
  7572. lt_prog_compiler_wl='-Wl,'
  7573. lt_prog_compiler_pic='-KPIC'
  7574. lt_prog_compiler_static='-Bstatic'
  7575. ;;
  7576. unicos*)
  7577. lt_prog_compiler_wl='-Wl,'
  7578. lt_prog_compiler_can_build_shared=no
  7579. ;;
  7580. uts4*)
  7581. lt_prog_compiler_pic='-pic'
  7582. lt_prog_compiler_static='-Bstatic'
  7583. ;;
  7584. *)
  7585. lt_prog_compiler_can_build_shared=no
  7586. ;;
  7587. esac
  7588. fi
  7589. case $host_os in
  7590. # For platforms that do not support PIC, -DPIC is meaningless:
  7591. *djgpp*)
  7592. lt_prog_compiler_pic=
  7593. ;;
  7594. *)
  7595. lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
  7596. ;;
  7597. esac
  7598. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
  7599. $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
  7600. if ${lt_cv_prog_compiler_pic+:} false; then :
  7601. $as_echo_n "(cached) " >&6
  7602. else
  7603. lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
  7604. fi
  7605. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
  7606. $as_echo "$lt_cv_prog_compiler_pic" >&6; }
  7607. lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
  7608. #
  7609. # Check to make sure the PIC flag actually works.
  7610. #
  7611. if test -n "$lt_prog_compiler_pic"; then
  7612. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
  7613. $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
  7614. if ${lt_cv_prog_compiler_pic_works+:} false; then :
  7615. $as_echo_n "(cached) " >&6
  7616. else
  7617. lt_cv_prog_compiler_pic_works=no
  7618. ac_outfile=conftest.$ac_objext
  7619. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  7620. lt_compiler_flag="$lt_prog_compiler_pic -DPIC" ## exclude from sc_useless_quotes_in_assignment
  7621. # Insert the option either (1) after the last *FLAGS variable, or
  7622. # (2) before a word containing "conftest.", or (3) at the end.
  7623. # Note that $ac_compile itself does not contain backslashes and begins
  7624. # with a dollar sign (not a hyphen), so the echo should work correctly.
  7625. # The option is referenced via a variable to avoid confusing sed.
  7626. lt_compile=`echo "$ac_compile" | $SED \
  7627. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  7628. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  7629. -e 's:$: $lt_compiler_flag:'`
  7630. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  7631. (eval "$lt_compile" 2>conftest.err)
  7632. ac_status=$?
  7633. cat conftest.err >&5
  7634. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7635. if (exit $ac_status) && test -s "$ac_outfile"; then
  7636. # The compiler can only warn and ignore the option if not recognized
  7637. # So say no if there are warnings other than the usual output.
  7638. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
  7639. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  7640. if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
  7641. lt_cv_prog_compiler_pic_works=yes
  7642. fi
  7643. fi
  7644. $RM conftest*
  7645. fi
  7646. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
  7647. $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
  7648. if test yes = "$lt_cv_prog_compiler_pic_works"; then
  7649. case $lt_prog_compiler_pic in
  7650. "" | " "*) ;;
  7651. *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
  7652. esac
  7653. else
  7654. lt_prog_compiler_pic=
  7655. lt_prog_compiler_can_build_shared=no
  7656. fi
  7657. fi
  7658. #
  7659. # Check to make sure the static flag actually works.
  7660. #
  7661. wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
  7662. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
  7663. $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
  7664. if ${lt_cv_prog_compiler_static_works+:} false; then :
  7665. $as_echo_n "(cached) " >&6
  7666. else
  7667. lt_cv_prog_compiler_static_works=no
  7668. save_LDFLAGS=$LDFLAGS
  7669. LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
  7670. echo "$lt_simple_link_test_code" > conftest.$ac_ext
  7671. if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
  7672. # The linker can only warn and ignore the option if not recognized
  7673. # So say no if there are warnings
  7674. if test -s conftest.err; then
  7675. # Append any errors to the config.log.
  7676. cat conftest.err 1>&5
  7677. $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
  7678. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  7679. if diff conftest.exp conftest.er2 >/dev/null; then
  7680. lt_cv_prog_compiler_static_works=yes
  7681. fi
  7682. else
  7683. lt_cv_prog_compiler_static_works=yes
  7684. fi
  7685. fi
  7686. $RM -r conftest*
  7687. LDFLAGS=$save_LDFLAGS
  7688. fi
  7689. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
  7690. $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
  7691. if test yes = "$lt_cv_prog_compiler_static_works"; then
  7692. :
  7693. else
  7694. lt_prog_compiler_static=
  7695. fi
  7696. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
  7697. $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
  7698. if ${lt_cv_prog_compiler_c_o+:} false; then :
  7699. $as_echo_n "(cached) " >&6
  7700. else
  7701. lt_cv_prog_compiler_c_o=no
  7702. $RM -r conftest 2>/dev/null
  7703. mkdir conftest
  7704. cd conftest
  7705. mkdir out
  7706. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  7707. lt_compiler_flag="-o out/conftest2.$ac_objext"
  7708. # Insert the option either (1) after the last *FLAGS variable, or
  7709. # (2) before a word containing "conftest.", or (3) at the end.
  7710. # Note that $ac_compile itself does not contain backslashes and begins
  7711. # with a dollar sign (not a hyphen), so the echo should work correctly.
  7712. lt_compile=`echo "$ac_compile" | $SED \
  7713. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  7714. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  7715. -e 's:$: $lt_compiler_flag:'`
  7716. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  7717. (eval "$lt_compile" 2>out/conftest.err)
  7718. ac_status=$?
  7719. cat out/conftest.err >&5
  7720. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7721. if (exit $ac_status) && test -s out/conftest2.$ac_objext
  7722. then
  7723. # The compiler can only warn and ignore the option if not recognized
  7724. # So say no if there are warnings
  7725. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
  7726. $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
  7727. if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
  7728. lt_cv_prog_compiler_c_o=yes
  7729. fi
  7730. fi
  7731. chmod u+w . 2>&5
  7732. $RM conftest*
  7733. # SGI C++ compiler will create directory out/ii_files/ for
  7734. # template instantiation
  7735. test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
  7736. $RM out/* && rmdir out
  7737. cd ..
  7738. $RM -r conftest
  7739. $RM conftest*
  7740. fi
  7741. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
  7742. $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
  7743. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
  7744. $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
  7745. if ${lt_cv_prog_compiler_c_o+:} false; then :
  7746. $as_echo_n "(cached) " >&6
  7747. else
  7748. lt_cv_prog_compiler_c_o=no
  7749. $RM -r conftest 2>/dev/null
  7750. mkdir conftest
  7751. cd conftest
  7752. mkdir out
  7753. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  7754. lt_compiler_flag="-o out/conftest2.$ac_objext"
  7755. # Insert the option either (1) after the last *FLAGS variable, or
  7756. # (2) before a word containing "conftest.", or (3) at the end.
  7757. # Note that $ac_compile itself does not contain backslashes and begins
  7758. # with a dollar sign (not a hyphen), so the echo should work correctly.
  7759. lt_compile=`echo "$ac_compile" | $SED \
  7760. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  7761. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  7762. -e 's:$: $lt_compiler_flag:'`
  7763. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  7764. (eval "$lt_compile" 2>out/conftest.err)
  7765. ac_status=$?
  7766. cat out/conftest.err >&5
  7767. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7768. if (exit $ac_status) && test -s out/conftest2.$ac_objext
  7769. then
  7770. # The compiler can only warn and ignore the option if not recognized
  7771. # So say no if there are warnings
  7772. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
  7773. $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
  7774. if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
  7775. lt_cv_prog_compiler_c_o=yes
  7776. fi
  7777. fi
  7778. chmod u+w . 2>&5
  7779. $RM conftest*
  7780. # SGI C++ compiler will create directory out/ii_files/ for
  7781. # template instantiation
  7782. test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
  7783. $RM out/* && rmdir out
  7784. cd ..
  7785. $RM -r conftest
  7786. $RM conftest*
  7787. fi
  7788. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
  7789. $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
  7790. hard_links=nottested
  7791. if test no = "$lt_cv_prog_compiler_c_o" && test no != "$need_locks"; then
  7792. # do not overwrite the value of need_locks provided by the user
  7793. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
  7794. $as_echo_n "checking if we can lock with hard links... " >&6; }
  7795. hard_links=yes
  7796. $RM conftest*
  7797. ln conftest.a conftest.b 2>/dev/null && hard_links=no
  7798. touch conftest.a
  7799. ln conftest.a conftest.b 2>&5 || hard_links=no
  7800. ln conftest.a conftest.b 2>/dev/null && hard_links=no
  7801. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
  7802. $as_echo "$hard_links" >&6; }
  7803. if test no = "$hard_links"; then
  7804. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5
  7805. $as_echo "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;}
  7806. need_locks=warn
  7807. fi
  7808. else
  7809. need_locks=no
  7810. fi
  7811. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
  7812. $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
  7813. runpath_var=
  7814. allow_undefined_flag=
  7815. always_export_symbols=no
  7816. archive_cmds=
  7817. archive_expsym_cmds=
  7818. compiler_needs_object=no
  7819. enable_shared_with_static_runtimes=no
  7820. export_dynamic_flag_spec=
  7821. export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
  7822. hardcode_automatic=no
  7823. hardcode_direct=no
  7824. hardcode_direct_absolute=no
  7825. hardcode_libdir_flag_spec=
  7826. hardcode_libdir_separator=
  7827. hardcode_minus_L=no
  7828. hardcode_shlibpath_var=unsupported
  7829. inherit_rpath=no
  7830. link_all_deplibs=unknown
  7831. module_cmds=
  7832. module_expsym_cmds=
  7833. old_archive_from_new_cmds=
  7834. old_archive_from_expsyms_cmds=
  7835. thread_safe_flag_spec=
  7836. whole_archive_flag_spec=
  7837. # include_expsyms should be a list of space-separated symbols to be *always*
  7838. # included in the symbol list
  7839. include_expsyms=
  7840. # exclude_expsyms can be an extended regexp of symbols to exclude
  7841. # it will be wrapped by ' (' and ')$', so one must not match beginning or
  7842. # end of line. Example: 'a|bc|.*d.*' will exclude the symbols 'a' and 'bc',
  7843. # as well as any symbol that contains 'd'.
  7844. exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
  7845. # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
  7846. # platforms (ab)use it in PIC code, but their linkers get confused if
  7847. # the symbol is explicitly referenced. Since portable code cannot
  7848. # rely on this symbol name, it's probably fine to never include it in
  7849. # preloaded symbol tables.
  7850. # Exclude shared library initialization/finalization symbols.
  7851. extract_expsyms_cmds=
  7852. case $host_os in
  7853. cygwin* | mingw* | pw32* | cegcc*)
  7854. # FIXME: the MSVC++ port hasn't been tested in a loooong time
  7855. # When not using gcc, we currently assume that we are using
  7856. # Microsoft Visual C++.
  7857. if test yes != "$GCC"; then
  7858. with_gnu_ld=no
  7859. fi
  7860. ;;
  7861. interix*)
  7862. # we just hope/assume this is gcc and not c89 (= MSVC++)
  7863. with_gnu_ld=yes
  7864. ;;
  7865. openbsd* | bitrig*)
  7866. with_gnu_ld=no
  7867. ;;
  7868. linux* | k*bsd*-gnu | gnu*)
  7869. link_all_deplibs=no
  7870. ;;
  7871. esac
  7872. ld_shlibs=yes
  7873. # On some targets, GNU ld is compatible enough with the native linker
  7874. # that we're better off using the native interface for both.
  7875. lt_use_gnu_ld_interface=no
  7876. if test yes = "$with_gnu_ld"; then
  7877. case $host_os in
  7878. aix*)
  7879. # The AIX port of GNU ld has always aspired to compatibility
  7880. # with the native linker. However, as the warning in the GNU ld
  7881. # block says, versions before 2.19.5* couldn't really create working
  7882. # shared libraries, regardless of the interface used.
  7883. case `$LD -v 2>&1` in
  7884. *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
  7885. *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
  7886. *\ \(GNU\ Binutils\)\ [3-9]*) ;;
  7887. *)
  7888. lt_use_gnu_ld_interface=yes
  7889. ;;
  7890. esac
  7891. ;;
  7892. *)
  7893. lt_use_gnu_ld_interface=yes
  7894. ;;
  7895. esac
  7896. fi
  7897. if test yes = "$lt_use_gnu_ld_interface"; then
  7898. # If archive_cmds runs LD, not CC, wlarc should be empty
  7899. wlarc='$wl'
  7900. # Set some defaults for GNU ld with shared library support. These
  7901. # are reset later if shared libraries are not supported. Putting them
  7902. # here allows them to be overridden if necessary.
  7903. runpath_var=LD_RUN_PATH
  7904. hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
  7905. export_dynamic_flag_spec='$wl--export-dynamic'
  7906. # ancient GNU ld didn't support --whole-archive et. al.
  7907. if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
  7908. whole_archive_flag_spec=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'
  7909. else
  7910. whole_archive_flag_spec=
  7911. fi
  7912. supports_anon_versioning=no
  7913. case `$LD -v | $SED -e 's/(^)\+)\s\+//' 2>&1` in
  7914. *GNU\ gold*) supports_anon_versioning=yes ;;
  7915. *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
  7916. *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
  7917. *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
  7918. *\ 2.11.*) ;; # other 2.11 versions
  7919. *) supports_anon_versioning=yes ;;
  7920. esac
  7921. # See if GNU ld supports shared libraries.
  7922. case $host_os in
  7923. aix[3-9]*)
  7924. # On AIX/PPC, the GNU linker is very broken
  7925. if test ia64 != "$host_cpu"; then
  7926. ld_shlibs=no
  7927. cat <<_LT_EOF 1>&2
  7928. *** Warning: the GNU linker, at least up to release 2.19, is reported
  7929. *** to be unable to reliably create shared libraries on AIX.
  7930. *** Therefore, libtool is disabling shared libraries support. If you
  7931. *** really care for shared libraries, you may want to install binutils
  7932. *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
  7933. *** You will then need to restart the configuration process.
  7934. _LT_EOF
  7935. fi
  7936. ;;
  7937. amigaos*)
  7938. case $host_cpu in
  7939. powerpc)
  7940. # see comment about AmigaOS4 .so support
  7941. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
  7942. archive_expsym_cmds=''
  7943. ;;
  7944. m68k)
  7945. 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)'
  7946. hardcode_libdir_flag_spec='-L$libdir'
  7947. hardcode_minus_L=yes
  7948. ;;
  7949. esac
  7950. ;;
  7951. beos*)
  7952. if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  7953. allow_undefined_flag=unsupported
  7954. # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
  7955. # support --undefined. This deserves some investigation. FIXME
  7956. archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
  7957. else
  7958. ld_shlibs=no
  7959. fi
  7960. ;;
  7961. cygwin* | mingw* | pw32* | cegcc*)
  7962. # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
  7963. # as there is no search path for DLLs.
  7964. hardcode_libdir_flag_spec='-L$libdir'
  7965. export_dynamic_flag_spec='$wl--export-all-symbols'
  7966. allow_undefined_flag=unsupported
  7967. always_export_symbols=no
  7968. enable_shared_with_static_runtimes=yes
  7969. 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'
  7970. exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
  7971. if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
  7972. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
  7973. # If the export-symbols file already is a .def file, use it as
  7974. # is; otherwise, prepend EXPORTS...
  7975. archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then
  7976. cp $export_symbols $output_objdir/$soname.def;
  7977. else
  7978. echo EXPORTS > $output_objdir/$soname.def;
  7979. cat $export_symbols >> $output_objdir/$soname.def;
  7980. fi~
  7981. $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
  7982. else
  7983. ld_shlibs=no
  7984. fi
  7985. ;;
  7986. haiku*)
  7987. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
  7988. link_all_deplibs=yes
  7989. ;;
  7990. os2*)
  7991. hardcode_libdir_flag_spec='-L$libdir'
  7992. hardcode_minus_L=yes
  7993. allow_undefined_flag=unsupported
  7994. shrext_cmds=.dll
  7995. archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
  7996. $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
  7997. $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
  7998. $ECHO EXPORTS >> $output_objdir/$libname.def~
  7999. emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
  8000. $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
  8001. emximp -o $lib $output_objdir/$libname.def'
  8002. archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
  8003. $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
  8004. $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
  8005. $ECHO EXPORTS >> $output_objdir/$libname.def~
  8006. prefix_cmds="$SED"~
  8007. if test EXPORTS = "`$SED 1q $export_symbols`"; then
  8008. prefix_cmds="$prefix_cmds -e 1d";
  8009. fi~
  8010. prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
  8011. cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
  8012. $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
  8013. emximp -o $lib $output_objdir/$libname.def'
  8014. old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
  8015. enable_shared_with_static_runtimes=yes
  8016. ;;
  8017. interix[3-9]*)
  8018. hardcode_direct=no
  8019. hardcode_shlibpath_var=no
  8020. hardcode_libdir_flag_spec='$wl-rpath,$libdir'
  8021. export_dynamic_flag_spec='$wl-E'
  8022. # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
  8023. # Instead, shared libraries are loaded at an image base (0x10000000 by
  8024. # default) and relocated if they conflict, which is a slow very memory
  8025. # consuming and fragmenting process. To avoid this, we pick a random,
  8026. # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
  8027. # time. Moving up from 0x10000000 also allows more sbrk(2) space.
  8028. archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
  8029. 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'
  8030. ;;
  8031. gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
  8032. tmp_diet=no
  8033. if test linux-dietlibc = "$host_os"; then
  8034. case $cc_basename in
  8035. diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
  8036. esac
  8037. fi
  8038. if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
  8039. && test no = "$tmp_diet"
  8040. then
  8041. tmp_addflag=' $pic_flag'
  8042. tmp_sharedflag='-shared'
  8043. case $cc_basename,$host_cpu in
  8044. pgcc*) # Portland Group C compiler
  8045. 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'
  8046. tmp_addflag=' $pic_flag'
  8047. ;;
  8048. pgf77* | pgf90* | pgf95* | pgfortran*)
  8049. # Portland Group f77 and f90 compilers
  8050. 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'
  8051. tmp_addflag=' $pic_flag -Mnomain' ;;
  8052. ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
  8053. tmp_addflag=' -i_dynamic' ;;
  8054. efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
  8055. tmp_addflag=' -i_dynamic -nofor_main' ;;
  8056. ifc* | ifort*) # Intel Fortran compiler
  8057. tmp_addflag=' -nofor_main' ;;
  8058. lf95*) # Lahey Fortran 8.1
  8059. whole_archive_flag_spec=
  8060. tmp_sharedflag='--shared' ;;
  8061. nagfor*) # NAGFOR 5.3
  8062. tmp_sharedflag='-Wl,-shared' ;;
  8063. xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
  8064. tmp_sharedflag='-qmkshrobj'
  8065. tmp_addflag= ;;
  8066. nvcc*) # Cuda Compiler Driver 2.2
  8067. 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'
  8068. compiler_needs_object=yes
  8069. ;;
  8070. esac
  8071. case `$CC -V 2>&1 | sed 5q` in
  8072. *Sun\ C*) # Sun C 5.9
  8073. 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'
  8074. compiler_needs_object=yes
  8075. tmp_sharedflag='-G' ;;
  8076. *Sun\ F*) # Sun Fortran 8.3
  8077. tmp_sharedflag='-G' ;;
  8078. esac
  8079. archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
  8080. if test yes = "$supports_anon_versioning"; then
  8081. archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
  8082. cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
  8083. echo "local: *; };" >> $output_objdir/$libname.ver~
  8084. $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib'
  8085. fi
  8086. case $cc_basename in
  8087. tcc*)
  8088. export_dynamic_flag_spec='-rdynamic'
  8089. ;;
  8090. xlf* | bgf* | bgxlf* | mpixlf*)
  8091. # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
  8092. whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
  8093. hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
  8094. archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
  8095. if test yes = "$supports_anon_versioning"; then
  8096. archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
  8097. cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
  8098. echo "local: *; };" >> $output_objdir/$libname.ver~
  8099. $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
  8100. fi
  8101. ;;
  8102. esac
  8103. else
  8104. ld_shlibs=no
  8105. fi
  8106. ;;
  8107. netbsd* | netbsdelf*-gnu)
  8108. if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  8109. archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
  8110. wlarc=
  8111. else
  8112. archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
  8113. archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
  8114. fi
  8115. ;;
  8116. solaris*)
  8117. if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
  8118. ld_shlibs=no
  8119. cat <<_LT_EOF 1>&2
  8120. *** Warning: The releases 2.8.* of the GNU linker cannot reliably
  8121. *** create shared libraries on Solaris systems. Therefore, libtool
  8122. *** is disabling shared libraries support. We urge you to upgrade GNU
  8123. *** binutils to release 2.9.1 or newer. Another option is to modify
  8124. *** your PATH or compiler configuration so that the native linker is
  8125. *** used, and then restart.
  8126. _LT_EOF
  8127. elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  8128. archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
  8129. archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
  8130. else
  8131. ld_shlibs=no
  8132. fi
  8133. ;;
  8134. sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
  8135. case `$LD -v 2>&1` in
  8136. *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
  8137. ld_shlibs=no
  8138. cat <<_LT_EOF 1>&2
  8139. *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 cannot
  8140. *** reliably create shared libraries on SCO systems. Therefore, libtool
  8141. *** is disabling shared libraries support. We urge you to upgrade GNU
  8142. *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
  8143. *** your PATH or compiler configuration so that the native linker is
  8144. *** used, and then restart.
  8145. _LT_EOF
  8146. ;;
  8147. *)
  8148. # For security reasons, it is highly recommended that you always
  8149. # use absolute paths for naming shared libraries, and exclude the
  8150. # DT_RUNPATH tag from executables and libraries. But doing so
  8151. # requires that you compile everything twice, which is a pain.
  8152. if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  8153. hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
  8154. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
  8155. archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
  8156. else
  8157. ld_shlibs=no
  8158. fi
  8159. ;;
  8160. esac
  8161. ;;
  8162. sunos4*)
  8163. archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  8164. wlarc=
  8165. hardcode_direct=yes
  8166. hardcode_shlibpath_var=no
  8167. ;;
  8168. *)
  8169. if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  8170. archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
  8171. archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
  8172. else
  8173. ld_shlibs=no
  8174. fi
  8175. ;;
  8176. esac
  8177. if test no = "$ld_shlibs"; then
  8178. runpath_var=
  8179. hardcode_libdir_flag_spec=
  8180. export_dynamic_flag_spec=
  8181. whole_archive_flag_spec=
  8182. fi
  8183. else
  8184. # PORTME fill in a description of your system's linker (not GNU ld)
  8185. case $host_os in
  8186. aix3*)
  8187. allow_undefined_flag=unsupported
  8188. always_export_symbols=yes
  8189. 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'
  8190. # Note: this linker hardcodes the directories in LIBPATH if there
  8191. # are no directories specified by -L.
  8192. hardcode_minus_L=yes
  8193. if test yes = "$GCC" && test -z "$lt_prog_compiler_static"; then
  8194. # Neither direct hardcoding nor static linking is supported with a
  8195. # broken collect2.
  8196. hardcode_direct=unsupported
  8197. fi
  8198. ;;
  8199. aix[4-9]*)
  8200. if test ia64 = "$host_cpu"; then
  8201. # On IA64, the linker does run time linking by default, so we don't
  8202. # have to do anything special.
  8203. aix_use_runtimelinking=no
  8204. exp_sym_flag='-Bexport'
  8205. no_entry_flag=
  8206. else
  8207. # If we're using GNU nm, then we don't want the "-C" option.
  8208. # -C means demangle to GNU nm, but means don't demangle to AIX nm.
  8209. # Without the "-l" option, or with the "-B" option, AIX nm treats
  8210. # weak defined symbols like other global defined symbols, whereas
  8211. # GNU nm marks them as "W".
  8212. # While the 'weak' keyword is ignored in the Export File, we need
  8213. # it in the Import File for the 'aix-soname' feature, so we have
  8214. # to replace the "-B" option with "-P" for AIX nm.
  8215. if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
  8216. export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { if (\$ 2 == "W") { print \$ 3 " weak" } else { print \$ 3 } } }'\'' | sort -u > $export_symbols'
  8217. else
  8218. export_symbols_cmds='`func_echo_all $NM | $SED -e '\''s/B\([^B]*\)$/P\1/'\''` -PCpgl $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) && (substr(\$ 1,1,1) != ".")) { if ((\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) { print \$ 1 " weak" } else { print \$ 1 } } }'\'' | sort -u > $export_symbols'
  8219. fi
  8220. aix_use_runtimelinking=no
  8221. # Test if we are trying to use run time linking or normal
  8222. # AIX style linking. If -brtl is somewhere in LDFLAGS, we
  8223. # have runtime linking enabled, and use it for executables.
  8224. # For shared libraries, we enable/disable runtime linking
  8225. # depending on the kind of the shared library created -
  8226. # when "with_aix_soname,aix_use_runtimelinking" is:
  8227. # "aix,no" lib.a(lib.so.V) shared, rtl:no, for executables
  8228. # "aix,yes" lib.so shared, rtl:yes, for executables
  8229. # lib.a static archive
  8230. # "both,no" lib.so.V(shr.o) shared, rtl:yes
  8231. # lib.a(lib.so.V) shared, rtl:no, for executables
  8232. # "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables
  8233. # lib.a(lib.so.V) shared, rtl:no
  8234. # "svr4,*" lib.so.V(shr.o) shared, rtl:yes, for executables
  8235. # lib.a static archive
  8236. case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
  8237. for ld_flag in $LDFLAGS; do
  8238. if (test x-brtl = "x$ld_flag" || test x-Wl,-brtl = "x$ld_flag"); then
  8239. aix_use_runtimelinking=yes
  8240. break
  8241. fi
  8242. done
  8243. if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then
  8244. # With aix-soname=svr4, we create the lib.so.V shared archives only,
  8245. # so we don't have lib.a shared libs to link our executables.
  8246. # We have to force runtime linking in this case.
  8247. aix_use_runtimelinking=yes
  8248. LDFLAGS="$LDFLAGS -Wl,-brtl"
  8249. fi
  8250. ;;
  8251. esac
  8252. exp_sym_flag='-bexport'
  8253. no_entry_flag='-bnoentry'
  8254. fi
  8255. # When large executables or shared objects are built, AIX ld can
  8256. # have problems creating the table of contents. If linking a library
  8257. # or program results in "error TOC overflow" add -mminimal-toc to
  8258. # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
  8259. # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
  8260. archive_cmds=''
  8261. hardcode_direct=yes
  8262. hardcode_direct_absolute=yes
  8263. hardcode_libdir_separator=':'
  8264. link_all_deplibs=yes
  8265. file_list_spec='$wl-f,'
  8266. case $with_aix_soname,$aix_use_runtimelinking in
  8267. aix,*) ;; # traditional, no import file
  8268. svr4,* | *,yes) # use import file
  8269. # The Import File defines what to hardcode.
  8270. hardcode_direct=no
  8271. hardcode_direct_absolute=no
  8272. ;;
  8273. esac
  8274. if test yes = "$GCC"; then
  8275. case $host_os in aix4.[012]|aix4.[012].*)
  8276. # We only want to do this on AIX 4.2 and lower, the check
  8277. # below for broken collect2 doesn't work under 4.3+
  8278. collect2name=`$CC -print-prog-name=collect2`
  8279. if test -f "$collect2name" &&
  8280. strings "$collect2name" | $GREP resolve_lib_name >/dev/null
  8281. then
  8282. # We have reworked collect2
  8283. :
  8284. else
  8285. # We have old collect2
  8286. hardcode_direct=unsupported
  8287. # It fails to find uninstalled libraries when the uninstalled
  8288. # path is not listed in the libpath. Setting hardcode_minus_L
  8289. # to unsupported forces relinking
  8290. hardcode_minus_L=yes
  8291. hardcode_libdir_flag_spec='-L$libdir'
  8292. hardcode_libdir_separator=
  8293. fi
  8294. ;;
  8295. esac
  8296. shared_flag='-shared'
  8297. if test yes = "$aix_use_runtimelinking"; then
  8298. shared_flag="$shared_flag "'$wl-G'
  8299. fi
  8300. # Need to ensure runtime linking is disabled for the traditional
  8301. # shared library, or the linker may eventually find shared libraries
  8302. # /with/ Import File - we do not want to mix them.
  8303. shared_flag_aix='-shared'
  8304. shared_flag_svr4='-shared $wl-G'
  8305. else
  8306. # not using gcc
  8307. if test ia64 = "$host_cpu"; then
  8308. # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
  8309. # chokes on -Wl,-G. The following line is correct:
  8310. shared_flag='-G'
  8311. else
  8312. if test yes = "$aix_use_runtimelinking"; then
  8313. shared_flag='$wl-G'
  8314. else
  8315. shared_flag='$wl-bM:SRE'
  8316. fi
  8317. shared_flag_aix='$wl-bM:SRE'
  8318. shared_flag_svr4='$wl-G'
  8319. fi
  8320. fi
  8321. export_dynamic_flag_spec='$wl-bexpall'
  8322. # It seems that -bexpall does not export symbols beginning with
  8323. # underscore (_), so it is better to generate a list of symbols to export.
  8324. always_export_symbols=yes
  8325. if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then
  8326. # Warning - without using the other runtime loading flags (-brtl),
  8327. # -berok will link without error, but may produce a broken library.
  8328. allow_undefined_flag='-berok'
  8329. # Determine the default libpath from the value encoded in an
  8330. # empty executable.
  8331. if test set = "${lt_cv_aix_libpath+set}"; then
  8332. aix_libpath=$lt_cv_aix_libpath
  8333. else
  8334. if ${lt_cv_aix_libpath_+:} false; then :
  8335. $as_echo_n "(cached) " >&6
  8336. else
  8337. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  8338. /* end confdefs.h. */
  8339. int
  8340. main ()
  8341. {
  8342. ;
  8343. return 0;
  8344. }
  8345. _ACEOF
  8346. if ac_fn_c_try_link "$LINENO"; then :
  8347. lt_aix_libpath_sed='
  8348. /Import File Strings/,/^$/ {
  8349. /^0/ {
  8350. s/^0 *\([^ ]*\) *$/\1/
  8351. p
  8352. }
  8353. }'
  8354. lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  8355. # Check for a 64-bit object if we didn't find anything.
  8356. if test -z "$lt_cv_aix_libpath_"; then
  8357. lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  8358. fi
  8359. fi
  8360. rm -f core conftest.err conftest.$ac_objext \
  8361. conftest$ac_exeext conftest.$ac_ext
  8362. if test -z "$lt_cv_aix_libpath_"; then
  8363. lt_cv_aix_libpath_=/usr/lib:/lib
  8364. fi
  8365. fi
  8366. aix_libpath=$lt_cv_aix_libpath_
  8367. fi
  8368. hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
  8369. archive_expsym_cmds='$CC -o $output_objdir/$soname $libobjs $deplibs $wl'$no_entry_flag' $compiler_flags `if test -n "$allow_undefined_flag"; then func_echo_all "$wl$allow_undefined_flag"; else :; fi` $wl'$exp_sym_flag:\$export_symbols' '$shared_flag
  8370. else
  8371. if test ia64 = "$host_cpu"; then
  8372. hardcode_libdir_flag_spec='$wl-R $libdir:/usr/lib:/lib'
  8373. allow_undefined_flag="-z nodefs"
  8374. 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"
  8375. else
  8376. # Determine the default libpath from the value encoded in an
  8377. # empty executable.
  8378. if test set = "${lt_cv_aix_libpath+set}"; then
  8379. aix_libpath=$lt_cv_aix_libpath
  8380. else
  8381. if ${lt_cv_aix_libpath_+:} false; then :
  8382. $as_echo_n "(cached) " >&6
  8383. else
  8384. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  8385. /* end confdefs.h. */
  8386. int
  8387. main ()
  8388. {
  8389. ;
  8390. return 0;
  8391. }
  8392. _ACEOF
  8393. if ac_fn_c_try_link "$LINENO"; then :
  8394. lt_aix_libpath_sed='
  8395. /Import File Strings/,/^$/ {
  8396. /^0/ {
  8397. s/^0 *\([^ ]*\) *$/\1/
  8398. p
  8399. }
  8400. }'
  8401. lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  8402. # Check for a 64-bit object if we didn't find anything.
  8403. if test -z "$lt_cv_aix_libpath_"; then
  8404. lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  8405. fi
  8406. fi
  8407. rm -f core conftest.err conftest.$ac_objext \
  8408. conftest$ac_exeext conftest.$ac_ext
  8409. if test -z "$lt_cv_aix_libpath_"; then
  8410. lt_cv_aix_libpath_=/usr/lib:/lib
  8411. fi
  8412. fi
  8413. aix_libpath=$lt_cv_aix_libpath_
  8414. fi
  8415. hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
  8416. # Warning - without using the other run time loading flags,
  8417. # -berok will link without error, but may produce a broken library.
  8418. no_undefined_flag=' $wl-bernotok'
  8419. allow_undefined_flag=' $wl-berok'
  8420. if test yes = "$with_gnu_ld"; then
  8421. # We only use this code for GNU lds that support --whole-archive.
  8422. whole_archive_flag_spec='$wl--whole-archive$convenience $wl--no-whole-archive'
  8423. else
  8424. # Exported symbols can be pulled into shared objects from archives
  8425. whole_archive_flag_spec='$convenience'
  8426. fi
  8427. archive_cmds_need_lc=yes
  8428. archive_expsym_cmds='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d'
  8429. # -brtl affects multiple linker settings, -berok does not and is overridden later
  8430. compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([, ]\\)%-berok\\1%g"`'
  8431. if test svr4 != "$with_aix_soname"; then
  8432. # This is similar to how AIX traditionally builds its shared libraries.
  8433. archive_expsym_cmds="$archive_expsym_cmds"'~$CC '$shared_flag_aix' -o $output_objdir/$realname.d/$soname $libobjs $deplibs $wl-bnoentry '$compiler_flags_filtered'$wl-bE:$export_symbols$allow_undefined_flag~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$realname.d/$soname'
  8434. fi
  8435. if test aix != "$with_aix_soname"; then
  8436. archive_expsym_cmds="$archive_expsym_cmds"'~$CC '$shared_flag_svr4' -o $output_objdir/$realname.d/$shared_archive_member_spec.o $libobjs $deplibs $wl-bnoentry '$compiler_flags_filtered'$wl-bE:$export_symbols$allow_undefined_flag~$STRIP -e $output_objdir/$realname.d/$shared_archive_member_spec.o~( func_echo_all "#! $soname($shared_archive_member_spec.o)"; if test shr_64 = "$shared_archive_member_spec"; then func_echo_all "# 64"; else func_echo_all "# 32"; fi; cat $export_symbols ) > $output_objdir/$realname.d/$shared_archive_member_spec.imp~$AR $AR_FLAGS $output_objdir/$soname $output_objdir/$realname.d/$shared_archive_member_spec.o $output_objdir/$realname.d/$shared_archive_member_spec.imp'
  8437. else
  8438. # used by -dlpreopen to get the symbols
  8439. archive_expsym_cmds="$archive_expsym_cmds"'~$MV $output_objdir/$realname.d/$soname $output_objdir'
  8440. fi
  8441. archive_expsym_cmds="$archive_expsym_cmds"'~$RM -r $output_objdir/$realname.d'
  8442. fi
  8443. fi
  8444. ;;
  8445. amigaos*)
  8446. case $host_cpu in
  8447. powerpc)
  8448. # see comment about AmigaOS4 .so support
  8449. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
  8450. archive_expsym_cmds=''
  8451. ;;
  8452. m68k)
  8453. 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)'
  8454. hardcode_libdir_flag_spec='-L$libdir'
  8455. hardcode_minus_L=yes
  8456. ;;
  8457. esac
  8458. ;;
  8459. bsdi[45]*)
  8460. export_dynamic_flag_spec=-rdynamic
  8461. ;;
  8462. cygwin* | mingw* | pw32* | cegcc*)
  8463. # When not using gcc, we currently assume that we are using
  8464. # Microsoft Visual C++.
  8465. # hardcode_libdir_flag_spec is actually meaningless, as there is
  8466. # no search path for DLLs.
  8467. case $cc_basename in
  8468. cl*)
  8469. # Native MSVC
  8470. hardcode_libdir_flag_spec=' '
  8471. allow_undefined_flag=unsupported
  8472. always_export_symbols=yes
  8473. file_list_spec='@'
  8474. # Tell ltmain to make .lib files, not .a files.
  8475. libext=lib
  8476. # Tell ltmain to make .dll files, not .so files.
  8477. shrext_cmds=.dll
  8478. # FIXME: Setting linknames here is a bad hack.
  8479. archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames='
  8480. archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then
  8481. cp "$export_symbols" "$output_objdir/$soname.def";
  8482. echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp";
  8483. else
  8484. $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp;
  8485. fi~
  8486. $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
  8487. linknames='
  8488. # The linker will not automatically build a static lib if we build a DLL.
  8489. # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
  8490. enable_shared_with_static_runtimes=yes
  8491. exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
  8492. export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
  8493. # Don't use ranlib
  8494. old_postinstall_cmds='chmod 644 $oldlib'
  8495. postlink_cmds='lt_outputfile="@OUTPUT@"~
  8496. lt_tool_outputfile="@TOOL_OUTPUT@"~
  8497. case $lt_outputfile in
  8498. *.exe|*.EXE) ;;
  8499. *)
  8500. lt_outputfile=$lt_outputfile.exe
  8501. lt_tool_outputfile=$lt_tool_outputfile.exe
  8502. ;;
  8503. esac~
  8504. if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then
  8505. $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
  8506. $RM "$lt_outputfile.manifest";
  8507. fi'
  8508. ;;
  8509. *)
  8510. # Assume MSVC wrapper
  8511. hardcode_libdir_flag_spec=' '
  8512. allow_undefined_flag=unsupported
  8513. # Tell ltmain to make .lib files, not .a files.
  8514. libext=lib
  8515. # Tell ltmain to make .dll files, not .so files.
  8516. shrext_cmds=.dll
  8517. # FIXME: Setting linknames here is a bad hack.
  8518. archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
  8519. # The linker will automatically build a .lib file if we build a DLL.
  8520. old_archive_from_new_cmds='true'
  8521. # FIXME: Should let the user specify the lib program.
  8522. old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
  8523. enable_shared_with_static_runtimes=yes
  8524. ;;
  8525. esac
  8526. ;;
  8527. darwin* | rhapsody*)
  8528. archive_cmds_need_lc=no
  8529. hardcode_direct=no
  8530. hardcode_automatic=yes
  8531. hardcode_shlibpath_var=unsupported
  8532. if test yes = "$lt_cv_ld_force_load"; then
  8533. 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\"`'
  8534. else
  8535. whole_archive_flag_spec=''
  8536. fi
  8537. link_all_deplibs=yes
  8538. allow_undefined_flag=$_lt_dar_allow_undefined
  8539. case $cc_basename in
  8540. ifort*|nagfor*) _lt_dar_can_shared=yes ;;
  8541. *) _lt_dar_can_shared=$GCC ;;
  8542. esac
  8543. if test yes = "$_lt_dar_can_shared"; then
  8544. output_verbose_link_cmd=func_echo_all
  8545. archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dsymutil"
  8546. module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil"
  8547. 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"
  8548. 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"
  8549. else
  8550. ld_shlibs=no
  8551. fi
  8552. ;;
  8553. dgux*)
  8554. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  8555. hardcode_libdir_flag_spec='-L$libdir'
  8556. hardcode_shlibpath_var=no
  8557. ;;
  8558. # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
  8559. # support. Future versions do this automatically, but an explicit c++rt0.o
  8560. # does not break anything, and helps significantly (at the cost of a little
  8561. # extra space).
  8562. freebsd2.2*)
  8563. archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
  8564. hardcode_libdir_flag_spec='-R$libdir'
  8565. hardcode_direct=yes
  8566. hardcode_shlibpath_var=no
  8567. ;;
  8568. # Unfortunately, older versions of FreeBSD 2 do not have this feature.
  8569. freebsd2.*)
  8570. archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  8571. hardcode_direct=yes
  8572. hardcode_minus_L=yes
  8573. hardcode_shlibpath_var=no
  8574. ;;
  8575. # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
  8576. freebsd* | dragonfly*)
  8577. archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  8578. hardcode_libdir_flag_spec='-R$libdir'
  8579. hardcode_direct=yes
  8580. hardcode_shlibpath_var=no
  8581. ;;
  8582. hpux9*)
  8583. if test yes = "$GCC"; then
  8584. archive_cmds='$RM $output_objdir/$soname~$CC -shared $pic_flag $wl+b $wl$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test "x$output_objdir/$soname" = "x$lib" || mv $output_objdir/$soname $lib'
  8585. else
  8586. archive_cmds='$RM $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test "x$output_objdir/$soname" = "x$lib" || mv $output_objdir/$soname $lib'
  8587. fi
  8588. hardcode_libdir_flag_spec='$wl+b $wl$libdir'
  8589. hardcode_libdir_separator=:
  8590. hardcode_direct=yes
  8591. # hardcode_minus_L: Not really in the search PATH,
  8592. # but as the default location of the library.
  8593. hardcode_minus_L=yes
  8594. export_dynamic_flag_spec='$wl-E'
  8595. ;;
  8596. hpux10*)
  8597. if test yes,no = "$GCC,$with_gnu_ld"; then
  8598. archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  8599. else
  8600. archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
  8601. fi
  8602. if test no = "$with_gnu_ld"; then
  8603. hardcode_libdir_flag_spec='$wl+b $wl$libdir'
  8604. hardcode_libdir_separator=:
  8605. hardcode_direct=yes
  8606. hardcode_direct_absolute=yes
  8607. export_dynamic_flag_spec='$wl-E'
  8608. # hardcode_minus_L: Not really in the search PATH,
  8609. # but as the default location of the library.
  8610. hardcode_minus_L=yes
  8611. fi
  8612. ;;
  8613. hpux11*)
  8614. if test yes,no = "$GCC,$with_gnu_ld"; then
  8615. case $host_cpu in
  8616. hppa*64*)
  8617. archive_cmds='$CC -shared $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
  8618. ;;
  8619. ia64*)
  8620. archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
  8621. ;;
  8622. *)
  8623. archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  8624. ;;
  8625. esac
  8626. else
  8627. case $host_cpu in
  8628. hppa*64*)
  8629. archive_cmds='$CC -b $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
  8630. ;;
  8631. ia64*)
  8632. archive_cmds='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
  8633. ;;
  8634. *)
  8635. # Older versions of the 11.00 compiler do not understand -b yet
  8636. # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
  8637. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
  8638. $as_echo_n "checking if $CC understands -b... " >&6; }
  8639. if ${lt_cv_prog_compiler__b+:} false; then :
  8640. $as_echo_n "(cached) " >&6
  8641. else
  8642. lt_cv_prog_compiler__b=no
  8643. save_LDFLAGS=$LDFLAGS
  8644. LDFLAGS="$LDFLAGS -b"
  8645. echo "$lt_simple_link_test_code" > conftest.$ac_ext
  8646. if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
  8647. # The linker can only warn and ignore the option if not recognized
  8648. # So say no if there are warnings
  8649. if test -s conftest.err; then
  8650. # Append any errors to the config.log.
  8651. cat conftest.err 1>&5
  8652. $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
  8653. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  8654. if diff conftest.exp conftest.er2 >/dev/null; then
  8655. lt_cv_prog_compiler__b=yes
  8656. fi
  8657. else
  8658. lt_cv_prog_compiler__b=yes
  8659. fi
  8660. fi
  8661. $RM -r conftest*
  8662. LDFLAGS=$save_LDFLAGS
  8663. fi
  8664. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
  8665. $as_echo "$lt_cv_prog_compiler__b" >&6; }
  8666. if test yes = "$lt_cv_prog_compiler__b"; then
  8667. archive_cmds='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  8668. else
  8669. archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
  8670. fi
  8671. ;;
  8672. esac
  8673. fi
  8674. if test no = "$with_gnu_ld"; then
  8675. hardcode_libdir_flag_spec='$wl+b $wl$libdir'
  8676. hardcode_libdir_separator=:
  8677. case $host_cpu in
  8678. hppa*64*|ia64*)
  8679. hardcode_direct=no
  8680. hardcode_shlibpath_var=no
  8681. ;;
  8682. *)
  8683. hardcode_direct=yes
  8684. hardcode_direct_absolute=yes
  8685. export_dynamic_flag_spec='$wl-E'
  8686. # hardcode_minus_L: Not really in the search PATH,
  8687. # but as the default location of the library.
  8688. hardcode_minus_L=yes
  8689. ;;
  8690. esac
  8691. fi
  8692. ;;
  8693. irix5* | irix6* | nonstopux*)
  8694. if test yes = "$GCC"; then
  8695. 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'
  8696. # Try to use the -exported_symbol ld option, if it does not
  8697. # work, assume that -exports_file does not work either and
  8698. # implicitly export all symbols.
  8699. # This should be the same for all languages, so no per-tag cache variable.
  8700. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
  8701. $as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
  8702. if ${lt_cv_irix_exported_symbol+:} false; then :
  8703. $as_echo_n "(cached) " >&6
  8704. else
  8705. save_LDFLAGS=$LDFLAGS
  8706. LDFLAGS="$LDFLAGS -shared $wl-exported_symbol ${wl}foo $wl-update_registry $wl/dev/null"
  8707. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  8708. /* end confdefs.h. */
  8709. int foo (void) { return 0; }
  8710. _ACEOF
  8711. if ac_fn_c_try_link "$LINENO"; then :
  8712. lt_cv_irix_exported_symbol=yes
  8713. else
  8714. lt_cv_irix_exported_symbol=no
  8715. fi
  8716. rm -f core conftest.err conftest.$ac_objext \
  8717. conftest$ac_exeext conftest.$ac_ext
  8718. LDFLAGS=$save_LDFLAGS
  8719. fi
  8720. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
  8721. $as_echo "$lt_cv_irix_exported_symbol" >&6; }
  8722. if test yes = "$lt_cv_irix_exported_symbol"; then
  8723. 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'
  8724. fi
  8725. link_all_deplibs=no
  8726. else
  8727. 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'
  8728. 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'
  8729. fi
  8730. archive_cmds_need_lc='no'
  8731. hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
  8732. hardcode_libdir_separator=:
  8733. inherit_rpath=yes
  8734. link_all_deplibs=yes
  8735. ;;
  8736. linux*)
  8737. case $cc_basename in
  8738. tcc*)
  8739. # Fabrice Bellard et al's Tiny C Compiler
  8740. ld_shlibs=yes
  8741. archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  8742. ;;
  8743. esac
  8744. ;;
  8745. netbsd* | netbsdelf*-gnu)
  8746. if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  8747. archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
  8748. else
  8749. archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
  8750. fi
  8751. hardcode_libdir_flag_spec='-R$libdir'
  8752. hardcode_direct=yes
  8753. hardcode_shlibpath_var=no
  8754. ;;
  8755. newsos6)
  8756. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  8757. hardcode_direct=yes
  8758. hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
  8759. hardcode_libdir_separator=:
  8760. hardcode_shlibpath_var=no
  8761. ;;
  8762. *nto* | *qnx*)
  8763. ;;
  8764. openbsd* | bitrig*)
  8765. if test -f /usr/libexec/ld.so; then
  8766. hardcode_direct=yes
  8767. hardcode_shlibpath_var=no
  8768. hardcode_direct_absolute=yes
  8769. if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
  8770. archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  8771. archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags $wl-retain-symbols-file,$export_symbols'
  8772. hardcode_libdir_flag_spec='$wl-rpath,$libdir'
  8773. export_dynamic_flag_spec='$wl-E'
  8774. else
  8775. archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  8776. hardcode_libdir_flag_spec='$wl-rpath,$libdir'
  8777. fi
  8778. else
  8779. ld_shlibs=no
  8780. fi
  8781. ;;
  8782. os2*)
  8783. hardcode_libdir_flag_spec='-L$libdir'
  8784. hardcode_minus_L=yes
  8785. allow_undefined_flag=unsupported
  8786. shrext_cmds=.dll
  8787. archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
  8788. $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
  8789. $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
  8790. $ECHO EXPORTS >> $output_objdir/$libname.def~
  8791. emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
  8792. $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
  8793. emximp -o $lib $output_objdir/$libname.def'
  8794. archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
  8795. $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
  8796. $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
  8797. $ECHO EXPORTS >> $output_objdir/$libname.def~
  8798. prefix_cmds="$SED"~
  8799. if test EXPORTS = "`$SED 1q $export_symbols`"; then
  8800. prefix_cmds="$prefix_cmds -e 1d";
  8801. fi~
  8802. prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
  8803. cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
  8804. $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
  8805. emximp -o $lib $output_objdir/$libname.def'
  8806. old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
  8807. enable_shared_with_static_runtimes=yes
  8808. ;;
  8809. osf3*)
  8810. if test yes = "$GCC"; then
  8811. allow_undefined_flag=' $wl-expect_unresolved $wl\*'
  8812. 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'
  8813. else
  8814. allow_undefined_flag=' -expect_unresolved \*'
  8815. 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'
  8816. fi
  8817. archive_cmds_need_lc='no'
  8818. hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
  8819. hardcode_libdir_separator=:
  8820. ;;
  8821. osf4* | osf5*) # as osf3* with the addition of -msym flag
  8822. if test yes = "$GCC"; then
  8823. allow_undefined_flag=' $wl-expect_unresolved $wl\*'
  8824. 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'
  8825. hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
  8826. else
  8827. allow_undefined_flag=' -expect_unresolved \*'
  8828. 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'
  8829. 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~
  8830. $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'
  8831. # Both c and cxx compiler support -rpath directly
  8832. hardcode_libdir_flag_spec='-rpath $libdir'
  8833. fi
  8834. archive_cmds_need_lc='no'
  8835. hardcode_libdir_separator=:
  8836. ;;
  8837. solaris*)
  8838. no_undefined_flag=' -z defs'
  8839. if test yes = "$GCC"; then
  8840. wlarc='$wl'
  8841. archive_cmds='$CC -shared $pic_flag $wl-z ${wl}text $wl-h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
  8842. archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  8843. $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'
  8844. else
  8845. case `$CC -V 2>&1` in
  8846. *"Compilers 5.0"*)
  8847. wlarc=''
  8848. archive_cmds='$LD -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $linker_flags'
  8849. archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  8850. $LD -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
  8851. ;;
  8852. *)
  8853. wlarc='$wl'
  8854. archive_cmds='$CC -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $compiler_flags'
  8855. archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  8856. $CC -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
  8857. ;;
  8858. esac
  8859. fi
  8860. hardcode_libdir_flag_spec='-R$libdir'
  8861. hardcode_shlibpath_var=no
  8862. case $host_os in
  8863. solaris2.[0-5] | solaris2.[0-5].*) ;;
  8864. *)
  8865. # The compiler driver will combine and reorder linker options,
  8866. # but understands '-z linker_flag'. GCC discards it without '$wl',
  8867. # but is careful enough not to reorder.
  8868. # Supported since Solaris 2.6 (maybe 2.5.1?)
  8869. if test yes = "$GCC"; then
  8870. whole_archive_flag_spec='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract'
  8871. else
  8872. whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
  8873. fi
  8874. ;;
  8875. esac
  8876. link_all_deplibs=yes
  8877. ;;
  8878. sunos4*)
  8879. if test sequent = "$host_vendor"; then
  8880. # Use $CC to link under sequent, because it throws in some extra .o
  8881. # files that make .init and .fini sections work.
  8882. archive_cmds='$CC -G $wl-h $soname -o $lib $libobjs $deplibs $compiler_flags'
  8883. else
  8884. archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
  8885. fi
  8886. hardcode_libdir_flag_spec='-L$libdir'
  8887. hardcode_direct=yes
  8888. hardcode_minus_L=yes
  8889. hardcode_shlibpath_var=no
  8890. ;;
  8891. sysv4)
  8892. case $host_vendor in
  8893. sni)
  8894. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  8895. hardcode_direct=yes # is this really true???
  8896. ;;
  8897. siemens)
  8898. ## LD is ld it makes a PLAMLIB
  8899. ## CC just makes a GrossModule.
  8900. archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
  8901. reload_cmds='$CC -r -o $output$reload_objs'
  8902. hardcode_direct=no
  8903. ;;
  8904. motorola)
  8905. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  8906. hardcode_direct=no #Motorola manual says yes, but my tests say they lie
  8907. ;;
  8908. esac
  8909. runpath_var='LD_RUN_PATH'
  8910. hardcode_shlibpath_var=no
  8911. ;;
  8912. sysv4.3*)
  8913. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  8914. hardcode_shlibpath_var=no
  8915. export_dynamic_flag_spec='-Bexport'
  8916. ;;
  8917. sysv4*MP*)
  8918. if test -d /usr/nec; then
  8919. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  8920. hardcode_shlibpath_var=no
  8921. runpath_var=LD_RUN_PATH
  8922. hardcode_runpath_var=yes
  8923. ld_shlibs=yes
  8924. fi
  8925. ;;
  8926. sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
  8927. no_undefined_flag='$wl-z,text'
  8928. archive_cmds_need_lc=no
  8929. hardcode_shlibpath_var=no
  8930. runpath_var='LD_RUN_PATH'
  8931. if test yes = "$GCC"; then
  8932. archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  8933. archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  8934. else
  8935. archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  8936. archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  8937. fi
  8938. ;;
  8939. sysv5* | sco3.2v5* | sco5v6*)
  8940. # Note: We CANNOT use -z defs as we might desire, because we do not
  8941. # link with -lc, and that would cause any symbols used from libc to
  8942. # always be unresolved, which means just about no library would
  8943. # ever link correctly. If we're not using GNU ld we use -z text
  8944. # though, which does catch some bad symbols but isn't as heavy-handed
  8945. # as -z defs.
  8946. no_undefined_flag='$wl-z,text'
  8947. allow_undefined_flag='$wl-z,nodefs'
  8948. archive_cmds_need_lc=no
  8949. hardcode_shlibpath_var=no
  8950. hardcode_libdir_flag_spec='$wl-R,$libdir'
  8951. hardcode_libdir_separator=':'
  8952. link_all_deplibs=yes
  8953. export_dynamic_flag_spec='$wl-Bexport'
  8954. runpath_var='LD_RUN_PATH'
  8955. if test yes = "$GCC"; then
  8956. archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  8957. archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  8958. else
  8959. archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  8960. archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  8961. fi
  8962. ;;
  8963. uts4*)
  8964. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  8965. hardcode_libdir_flag_spec='-L$libdir'
  8966. hardcode_shlibpath_var=no
  8967. ;;
  8968. *)
  8969. ld_shlibs=no
  8970. ;;
  8971. esac
  8972. if test sni = "$host_vendor"; then
  8973. case $host in
  8974. sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
  8975. export_dynamic_flag_spec='$wl-Blargedynsym'
  8976. ;;
  8977. esac
  8978. fi
  8979. fi
  8980. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
  8981. $as_echo "$ld_shlibs" >&6; }
  8982. test no = "$ld_shlibs" && can_build_shared=no
  8983. with_gnu_ld=$with_gnu_ld
  8984. #
  8985. # Do we need to explicitly link libc?
  8986. #
  8987. case "x$archive_cmds_need_lc" in
  8988. x|xyes)
  8989. # Assume -lc should be added
  8990. archive_cmds_need_lc=yes
  8991. if test yes,yes = "$GCC,$enable_shared"; then
  8992. case $archive_cmds in
  8993. *'~'*)
  8994. # FIXME: we may have to deal with multi-command sequences.
  8995. ;;
  8996. '$CC '*)
  8997. # Test whether the compiler implicitly links with -lc since on some
  8998. # systems, -lgcc has to come before -lc. If gcc already passes -lc
  8999. # to ld, don't add -lc before -lgcc.
  9000. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
  9001. $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
  9002. if ${lt_cv_archive_cmds_need_lc+:} false; then :
  9003. $as_echo_n "(cached) " >&6
  9004. else
  9005. $RM conftest*
  9006. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  9007. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  9008. (eval $ac_compile) 2>&5
  9009. ac_status=$?
  9010. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  9011. test $ac_status = 0; } 2>conftest.err; then
  9012. soname=conftest
  9013. lib=conftest
  9014. libobjs=conftest.$ac_objext
  9015. deplibs=
  9016. wl=$lt_prog_compiler_wl
  9017. pic_flag=$lt_prog_compiler_pic
  9018. compiler_flags=-v
  9019. linker_flags=-v
  9020. verstring=
  9021. output_objdir=.
  9022. libname=conftest
  9023. lt_save_allow_undefined_flag=$allow_undefined_flag
  9024. allow_undefined_flag=
  9025. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
  9026. (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
  9027. ac_status=$?
  9028. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  9029. test $ac_status = 0; }
  9030. then
  9031. lt_cv_archive_cmds_need_lc=no
  9032. else
  9033. lt_cv_archive_cmds_need_lc=yes
  9034. fi
  9035. allow_undefined_flag=$lt_save_allow_undefined_flag
  9036. else
  9037. cat conftest.err 1>&5
  9038. fi
  9039. $RM conftest*
  9040. fi
  9041. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
  9042. $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
  9043. archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
  9044. ;;
  9045. esac
  9046. fi
  9047. ;;
  9048. esac
  9049. { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
  9050. $as_echo_n "checking dynamic linker characteristics... " >&6; }
  9051. if test yes = "$GCC"; then
  9052. case $host_os in
  9053. darwin*) lt_awk_arg='/^libraries:/,/LR/' ;;
  9054. *) lt_awk_arg='/^libraries:/' ;;
  9055. esac
  9056. case $host_os in
  9057. mingw* | cegcc*) lt_sed_strip_eq='s|=\([A-Za-z]:\)|\1|g' ;;
  9058. *) lt_sed_strip_eq='s|=/|/|g' ;;
  9059. esac
  9060. lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
  9061. case $lt_search_path_spec in
  9062. *\;*)
  9063. # if the path contains ";" then we assume it to be the separator
  9064. # otherwise default to the standard path separator (i.e. ":") - it is
  9065. # assumed that no part of a normal pathname contains ";" but that should
  9066. # okay in the real world where ";" in dirpaths is itself problematic.
  9067. lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
  9068. ;;
  9069. *)
  9070. lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
  9071. ;;
  9072. esac
  9073. # Ok, now we have the path, separated by spaces, we can step through it
  9074. # and add multilib dir if necessary...
  9075. lt_tmp_lt_search_path_spec=
  9076. lt_multi_os_dir=/`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
  9077. # ...but if some path component already ends with the multilib dir we assume
  9078. # that all is fine and trust -print-search-dirs as is (GCC 4.2? or newer).
  9079. case "$lt_multi_os_dir; $lt_search_path_spec " in
  9080. "/; "* | "/.; "* | "/./; "* | *"$lt_multi_os_dir "* | *"$lt_multi_os_dir/ "*)
  9081. lt_multi_os_dir=
  9082. ;;
  9083. esac
  9084. for lt_sys_path in $lt_search_path_spec; do
  9085. if test -d "$lt_sys_path$lt_multi_os_dir"; then
  9086. lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path$lt_multi_os_dir"
  9087. elif test -n "$lt_multi_os_dir"; then
  9088. test -d "$lt_sys_path" && \
  9089. lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
  9090. fi
  9091. done
  9092. lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
  9093. BEGIN {RS = " "; FS = "/|\n";} {
  9094. lt_foo = "";
  9095. lt_count = 0;
  9096. for (lt_i = NF; lt_i > 0; lt_i--) {
  9097. if ($lt_i != "" && $lt_i != ".") {
  9098. if ($lt_i == "..") {
  9099. lt_count++;
  9100. } else {
  9101. if (lt_count == 0) {
  9102. lt_foo = "/" $lt_i lt_foo;
  9103. } else {
  9104. lt_count--;
  9105. }
  9106. }
  9107. }
  9108. }
  9109. if (lt_foo != "") { lt_freq[lt_foo]++; }
  9110. if (lt_freq[lt_foo] == 1) { print lt_foo; }
  9111. }'`
  9112. # AWK program above erroneously prepends '/' to C:/dos/paths
  9113. # for these hosts.
  9114. case $host_os in
  9115. mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
  9116. $SED 's|/\([A-Za-z]:\)|\1|g'` ;;
  9117. esac
  9118. sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
  9119. else
  9120. sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
  9121. fi
  9122. library_names_spec=
  9123. libname_spec='lib$name'
  9124. soname_spec=
  9125. shrext_cmds=.so
  9126. postinstall_cmds=
  9127. postuninstall_cmds=
  9128. finish_cmds=
  9129. finish_eval=
  9130. shlibpath_var=
  9131. shlibpath_overrides_runpath=unknown
  9132. version_type=none
  9133. dynamic_linker="$host_os ld.so"
  9134. sys_lib_dlsearch_path_spec="/lib /usr/lib"
  9135. need_lib_prefix=unknown
  9136. hardcode_into_libs=no
  9137. # when you set need_version to no, make sure it does not cause -set_version
  9138. # flags to be left without arguments
  9139. need_version=unknown
  9140. case $host_os in
  9141. aix3*)
  9142. version_type=linux # correct to gnu/linux during the next big refactor
  9143. library_names_spec='$libname$release$shared_ext$versuffix $libname.a'
  9144. shlibpath_var=LIBPATH
  9145. # AIX 3 has no versioning support, so we append a major version to the name.
  9146. soname_spec='$libname$release$shared_ext$major'
  9147. ;;
  9148. aix[4-9]*)
  9149. version_type=linux # correct to gnu/linux during the next big refactor
  9150. need_lib_prefix=no
  9151. need_version=no
  9152. hardcode_into_libs=yes
  9153. if test ia64 = "$host_cpu"; then
  9154. # AIX 5 supports IA64
  9155. library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext'
  9156. shlibpath_var=LD_LIBRARY_PATH
  9157. else
  9158. # With GCC up to 2.95.x, collect2 would create an import file
  9159. # for dependence libraries. The import file would start with
  9160. # the line '#! .'. This would cause the generated library to
  9161. # depend on '.', always an invalid library. This was fixed in
  9162. # development snapshots of GCC prior to 3.0.
  9163. case $host_os in
  9164. aix4 | aix4.[01] | aix4.[01].*)
  9165. if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
  9166. echo ' yes '
  9167. echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then
  9168. :
  9169. else
  9170. can_build_shared=no
  9171. fi
  9172. ;;
  9173. esac
  9174. # Using Import Files as archive members, it is possible to support
  9175. # filename-based versioning of shared library archives on AIX. While
  9176. # this would work for both with and without runtime linking, it will
  9177. # prevent static linking of such archives. So we do filename-based
  9178. # shared library versioning with .so extension only, which is used
  9179. # when both runtime linking and shared linking is enabled.
  9180. # Unfortunately, runtime linking may impact performance, so we do
  9181. # not want this to be the default eventually. Also, we use the
  9182. # versioned .so libs for executables only if there is the -brtl
  9183. # linker flag in LDFLAGS as well, or --with-aix-soname=svr4 only.
  9184. # To allow for filename-based versioning support, we need to create
  9185. # libNAME.so.V as an archive file, containing:
  9186. # *) an Import File, referring to the versioned filename of the
  9187. # archive as well as the shared archive member, telling the
  9188. # bitwidth (32 or 64) of that shared object, and providing the
  9189. # list of exported symbols of that shared object, eventually
  9190. # decorated with the 'weak' keyword
  9191. # *) the shared object with the F_LOADONLY flag set, to really avoid
  9192. # it being seen by the linker.
  9193. # At run time we better use the real file rather than another symlink,
  9194. # but for link time we create the symlink libNAME.so -> libNAME.so.V
  9195. case $with_aix_soname,$aix_use_runtimelinking in
  9196. # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct
  9197. # soname into executable. Probably we can add versioning support to
  9198. # collect2, so additional links can be useful in future.
  9199. aix,yes) # traditional libtool
  9200. dynamic_linker='AIX unversionable lib.so'
  9201. # If using run time linking (on AIX 4.2 or later) use lib<name>.so
  9202. # instead of lib<name>.a to let people know that these are not
  9203. # typical AIX shared libraries.
  9204. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  9205. ;;
  9206. aix,no) # traditional AIX only
  9207. dynamic_linker='AIX lib.a(lib.so.V)'
  9208. # We preserve .a as extension for shared libraries through AIX4.2
  9209. # and later when we are not doing run time linking.
  9210. library_names_spec='$libname$release.a $libname.a'
  9211. soname_spec='$libname$release$shared_ext$major'
  9212. ;;
  9213. svr4,*) # full svr4 only
  9214. dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o)"
  9215. library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
  9216. # We do not specify a path in Import Files, so LIBPATH fires.
  9217. shlibpath_overrides_runpath=yes
  9218. ;;
  9219. *,yes) # both, prefer svr4
  9220. dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o), lib.a(lib.so.V)"
  9221. library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
  9222. # unpreferred sharedlib libNAME.a needs extra handling
  9223. postinstall_cmds='test -n "$linkname" || linkname="$realname"~func_stripname "" ".so" "$linkname"~$install_shared_prog "$dir/$func_stripname_result.$libext" "$destdir/$func_stripname_result.$libext"~test -z "$tstripme" || test -z "$striplib" || $striplib "$destdir/$func_stripname_result.$libext"'
  9224. postuninstall_cmds='for n in $library_names $old_library; do :; done~func_stripname "" ".so" "$n"~test "$func_stripname_result" = "$n" || func_append rmfiles " $odir/$func_stripname_result.$libext"'
  9225. # We do not specify a path in Import Files, so LIBPATH fires.
  9226. shlibpath_overrides_runpath=yes
  9227. ;;
  9228. *,no) # both, prefer aix
  9229. dynamic_linker="AIX lib.a(lib.so.V), lib.so.V($shared_archive_member_spec.o)"
  9230. library_names_spec='$libname$release.a $libname.a'
  9231. soname_spec='$libname$release$shared_ext$major'
  9232. # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling
  9233. postinstall_cmds='test -z "$dlname" || $install_shared_prog $dir/$dlname $destdir/$dlname~test -z "$tstripme" || test -z "$striplib" || $striplib $destdir/$dlname~test -n "$linkname" || linkname=$realname~func_stripname "" ".a" "$linkname"~(cd "$destdir" && $LN_S -f $dlname $func_stripname_result.so)'
  9234. postuninstall_cmds='test -z "$dlname" || func_append rmfiles " $odir/$dlname"~for n in $old_library $library_names; do :; done~func_stripname "" ".a" "$n"~func_append rmfiles " $odir/$func_stripname_result.so"'
  9235. ;;
  9236. esac
  9237. shlibpath_var=LIBPATH
  9238. fi
  9239. ;;
  9240. amigaos*)
  9241. case $host_cpu in
  9242. powerpc)
  9243. # Since July 2007 AmigaOS4 officially supports .so libraries.
  9244. # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
  9245. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  9246. ;;
  9247. m68k)
  9248. library_names_spec='$libname.ixlibrary $libname.a'
  9249. # Create ${libname}_ixlibrary.a entries in /sys/libs.
  9250. finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; $RM /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done'
  9251. ;;
  9252. esac
  9253. ;;
  9254. beos*)
  9255. library_names_spec='$libname$shared_ext'
  9256. dynamic_linker="$host_os ld.so"
  9257. shlibpath_var=LIBRARY_PATH
  9258. ;;
  9259. bsdi[45]*)
  9260. version_type=linux # correct to gnu/linux during the next big refactor
  9261. need_version=no
  9262. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  9263. soname_spec='$libname$release$shared_ext$major'
  9264. finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
  9265. shlibpath_var=LD_LIBRARY_PATH
  9266. sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
  9267. sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
  9268. # the default ld.so.conf also contains /usr/contrib/lib and
  9269. # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
  9270. # libtool to hard-code these into programs
  9271. ;;
  9272. cygwin* | mingw* | pw32* | cegcc*)
  9273. version_type=windows
  9274. shrext_cmds=.dll
  9275. need_version=no
  9276. need_lib_prefix=no
  9277. case $GCC,$cc_basename in
  9278. yes,*)
  9279. # gcc
  9280. library_names_spec='$libname.dll.a'
  9281. # DLL is installed to $(libdir)/../bin by postinstall_cmds
  9282. postinstall_cmds='base_file=`basename \$file`~
  9283. dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
  9284. dldir=$destdir/`dirname \$dlpath`~
  9285. test -d \$dldir || mkdir -p \$dldir~
  9286. $install_prog $dir/$dlname \$dldir/$dlname~
  9287. chmod a+x \$dldir/$dlname~
  9288. if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
  9289. eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
  9290. fi'
  9291. postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
  9292. dlpath=$dir/\$dldll~
  9293. $RM \$dlpath'
  9294. shlibpath_overrides_runpath=yes
  9295. case $host_os in
  9296. cygwin*)
  9297. # Cygwin DLLs use 'cyg' prefix rather than 'lib'
  9298. soname_spec='`echo $libname | sed -e 's/^lib/cyg/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
  9299. sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
  9300. ;;
  9301. mingw* | cegcc*)
  9302. # MinGW DLLs use traditional 'lib' prefix
  9303. soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
  9304. ;;
  9305. pw32*)
  9306. # pw32 DLLs use 'pw' prefix rather than 'lib'
  9307. library_names_spec='`echo $libname | sed -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
  9308. ;;
  9309. esac
  9310. dynamic_linker='Win32 ld.exe'
  9311. ;;
  9312. *,cl*)
  9313. # Native MSVC
  9314. libname_spec='$name'
  9315. soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
  9316. library_names_spec='$libname.dll.lib'
  9317. case $build_os in
  9318. mingw*)
  9319. sys_lib_search_path_spec=
  9320. lt_save_ifs=$IFS
  9321. IFS=';'
  9322. for lt_path in $LIB
  9323. do
  9324. IFS=$lt_save_ifs
  9325. # Let DOS variable expansion print the short 8.3 style file name.
  9326. lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
  9327. sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
  9328. done
  9329. IFS=$lt_save_ifs
  9330. # Convert to MSYS style.
  9331. sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
  9332. ;;
  9333. cygwin*)
  9334. # Convert to unix form, then to dos form, then back to unix form
  9335. # but this time dos style (no spaces!) so that the unix form looks
  9336. # like /cygdrive/c/PROGRA~1:/cygdr...
  9337. sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
  9338. sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
  9339. sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
  9340. ;;
  9341. *)
  9342. sys_lib_search_path_spec=$LIB
  9343. if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
  9344. # It is most probably a Windows format PATH.
  9345. sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
  9346. else
  9347. sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
  9348. fi
  9349. # FIXME: find the short name or the path components, as spaces are
  9350. # common. (e.g. "Program Files" -> "PROGRA~1")
  9351. ;;
  9352. esac
  9353. # DLL is installed to $(libdir)/../bin by postinstall_cmds
  9354. postinstall_cmds='base_file=`basename \$file`~
  9355. dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
  9356. dldir=$destdir/`dirname \$dlpath`~
  9357. test -d \$dldir || mkdir -p \$dldir~
  9358. $install_prog $dir/$dlname \$dldir/$dlname'
  9359. postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
  9360. dlpath=$dir/\$dldll~
  9361. $RM \$dlpath'
  9362. shlibpath_overrides_runpath=yes
  9363. dynamic_linker='Win32 link.exe'
  9364. ;;
  9365. *)
  9366. # Assume MSVC wrapper
  9367. library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib'
  9368. dynamic_linker='Win32 ld.exe'
  9369. ;;
  9370. esac
  9371. # FIXME: first we should search . and the directory the executable is in
  9372. shlibpath_var=PATH
  9373. ;;
  9374. darwin* | rhapsody*)
  9375. dynamic_linker="$host_os dyld"
  9376. version_type=darwin
  9377. need_lib_prefix=no
  9378. need_version=no
  9379. library_names_spec='$libname$release$major$shared_ext $libname$shared_ext'
  9380. soname_spec='$libname$release$major$shared_ext'
  9381. shlibpath_overrides_runpath=yes
  9382. shlibpath_var=DYLD_LIBRARY_PATH
  9383. shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
  9384. sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
  9385. sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
  9386. ;;
  9387. dgux*)
  9388. version_type=linux # correct to gnu/linux during the next big refactor
  9389. need_lib_prefix=no
  9390. need_version=no
  9391. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  9392. soname_spec='$libname$release$shared_ext$major'
  9393. shlibpath_var=LD_LIBRARY_PATH
  9394. ;;
  9395. freebsd* | dragonfly*)
  9396. # DragonFly does not have aout. When/if they implement a new
  9397. # versioning mechanism, adjust this.
  9398. if test -x /usr/bin/objformat; then
  9399. objformat=`/usr/bin/objformat`
  9400. else
  9401. case $host_os in
  9402. freebsd[23].*) objformat=aout ;;
  9403. *) objformat=elf ;;
  9404. esac
  9405. fi
  9406. version_type=freebsd-$objformat
  9407. case $version_type in
  9408. freebsd-elf*)
  9409. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  9410. soname_spec='$libname$release$shared_ext$major'
  9411. need_version=no
  9412. need_lib_prefix=no
  9413. ;;
  9414. freebsd-*)
  9415. library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
  9416. need_version=yes
  9417. ;;
  9418. esac
  9419. shlibpath_var=LD_LIBRARY_PATH
  9420. case $host_os in
  9421. freebsd2.*)
  9422. shlibpath_overrides_runpath=yes
  9423. ;;
  9424. freebsd3.[01]* | freebsdelf3.[01]*)
  9425. shlibpath_overrides_runpath=yes
  9426. hardcode_into_libs=yes
  9427. ;;
  9428. freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
  9429. freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
  9430. shlibpath_overrides_runpath=no
  9431. hardcode_into_libs=yes
  9432. ;;
  9433. *) # from 4.6 on, and DragonFly
  9434. shlibpath_overrides_runpath=yes
  9435. hardcode_into_libs=yes
  9436. ;;
  9437. esac
  9438. ;;
  9439. haiku*)
  9440. version_type=linux # correct to gnu/linux during the next big refactor
  9441. need_lib_prefix=no
  9442. need_version=no
  9443. dynamic_linker="$host_os runtime_loader"
  9444. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  9445. soname_spec='$libname$release$shared_ext$major'
  9446. shlibpath_var=LIBRARY_PATH
  9447. shlibpath_overrides_runpath=no
  9448. sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
  9449. hardcode_into_libs=yes
  9450. ;;
  9451. hpux9* | hpux10* | hpux11*)
  9452. # Give a soname corresponding to the major version so that dld.sl refuses to
  9453. # link against other versions.
  9454. version_type=sunos
  9455. need_lib_prefix=no
  9456. need_version=no
  9457. case $host_cpu in
  9458. ia64*)
  9459. shrext_cmds='.so'
  9460. hardcode_into_libs=yes
  9461. dynamic_linker="$host_os dld.so"
  9462. shlibpath_var=LD_LIBRARY_PATH
  9463. shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  9464. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  9465. soname_spec='$libname$release$shared_ext$major'
  9466. if test 32 = "$HPUX_IA64_MODE"; then
  9467. sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
  9468. sys_lib_dlsearch_path_spec=/usr/lib/hpux32
  9469. else
  9470. sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
  9471. sys_lib_dlsearch_path_spec=/usr/lib/hpux64
  9472. fi
  9473. ;;
  9474. hppa*64*)
  9475. shrext_cmds='.sl'
  9476. hardcode_into_libs=yes
  9477. dynamic_linker="$host_os dld.sl"
  9478. shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
  9479. shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  9480. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  9481. soname_spec='$libname$release$shared_ext$major'
  9482. sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
  9483. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  9484. ;;
  9485. *)
  9486. shrext_cmds='.sl'
  9487. dynamic_linker="$host_os dld.sl"
  9488. shlibpath_var=SHLIB_PATH
  9489. shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
  9490. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  9491. soname_spec='$libname$release$shared_ext$major'
  9492. ;;
  9493. esac
  9494. # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
  9495. postinstall_cmds='chmod 555 $lib'
  9496. # or fails outright, so override atomically:
  9497. install_override_mode=555
  9498. ;;
  9499. interix[3-9]*)
  9500. version_type=linux # correct to gnu/linux during the next big refactor
  9501. need_lib_prefix=no
  9502. need_version=no
  9503. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  9504. soname_spec='$libname$release$shared_ext$major'
  9505. dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
  9506. shlibpath_var=LD_LIBRARY_PATH
  9507. shlibpath_overrides_runpath=no
  9508. hardcode_into_libs=yes
  9509. ;;
  9510. irix5* | irix6* | nonstopux*)
  9511. case $host_os in
  9512. nonstopux*) version_type=nonstopux ;;
  9513. *)
  9514. if test yes = "$lt_cv_prog_gnu_ld"; then
  9515. version_type=linux # correct to gnu/linux during the next big refactor
  9516. else
  9517. version_type=irix
  9518. fi ;;
  9519. esac
  9520. need_lib_prefix=no
  9521. need_version=no
  9522. soname_spec='$libname$release$shared_ext$major'
  9523. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext'
  9524. case $host_os in
  9525. irix5* | nonstopux*)
  9526. libsuff= shlibsuff=
  9527. ;;
  9528. *)
  9529. case $LD in # libtool.m4 will add one of these switches to LD
  9530. *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
  9531. libsuff= shlibsuff= libmagic=32-bit;;
  9532. *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
  9533. libsuff=32 shlibsuff=N32 libmagic=N32;;
  9534. *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
  9535. libsuff=64 shlibsuff=64 libmagic=64-bit;;
  9536. *) libsuff= shlibsuff= libmagic=never-match;;
  9537. esac
  9538. ;;
  9539. esac
  9540. shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
  9541. shlibpath_overrides_runpath=no
  9542. sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff"
  9543. sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff"
  9544. hardcode_into_libs=yes
  9545. ;;
  9546. # No shared lib support for Linux oldld, aout, or coff.
  9547. linux*oldld* | linux*aout* | linux*coff*)
  9548. dynamic_linker=no
  9549. ;;
  9550. linux*android*)
  9551. version_type=none # Android doesn't support versioned libraries.
  9552. need_lib_prefix=no
  9553. need_version=no
  9554. library_names_spec='$libname$release$shared_ext'
  9555. soname_spec='$libname$release$shared_ext'
  9556. finish_cmds=
  9557. shlibpath_var=LD_LIBRARY_PATH
  9558. shlibpath_overrides_runpath=yes
  9559. # This implies no fast_install, which is unacceptable.
  9560. # Some rework will be needed to allow for fast_install
  9561. # before this can be enabled.
  9562. hardcode_into_libs=yes
  9563. dynamic_linker='Android linker'
  9564. # Don't embed -rpath directories since the linker doesn't support them.
  9565. hardcode_libdir_flag_spec='-L$libdir'
  9566. ;;
  9567. # This must be glibc/ELF.
  9568. linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
  9569. version_type=linux # correct to gnu/linux during the next big refactor
  9570. need_lib_prefix=no
  9571. need_version=no
  9572. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  9573. soname_spec='$libname$release$shared_ext$major'
  9574. finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
  9575. shlibpath_var=LD_LIBRARY_PATH
  9576. shlibpath_overrides_runpath=no
  9577. # Some binutils ld are patched to set DT_RUNPATH
  9578. if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
  9579. $as_echo_n "(cached) " >&6
  9580. else
  9581. lt_cv_shlibpath_overrides_runpath=no
  9582. save_LDFLAGS=$LDFLAGS
  9583. save_libdir=$libdir
  9584. eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
  9585. LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
  9586. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9587. /* end confdefs.h. */
  9588. int
  9589. main ()
  9590. {
  9591. ;
  9592. return 0;
  9593. }
  9594. _ACEOF
  9595. if ac_fn_c_try_link "$LINENO"; then :
  9596. if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
  9597. lt_cv_shlibpath_overrides_runpath=yes
  9598. fi
  9599. fi
  9600. rm -f core conftest.err conftest.$ac_objext \
  9601. conftest$ac_exeext conftest.$ac_ext
  9602. LDFLAGS=$save_LDFLAGS
  9603. libdir=$save_libdir
  9604. fi
  9605. shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
  9606. # This implies no fast_install, which is unacceptable.
  9607. # Some rework will be needed to allow for fast_install
  9608. # before this can be enabled.
  9609. hardcode_into_libs=yes
  9610. # Ideally, we could use ldconfig to report *all* directores which are
  9611. # searched for libraries, however this is still not possible. Aside from not
  9612. # being certain /sbin/ldconfig is available, command
  9613. # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64,
  9614. # even though it is searched at run-time. Try to do the best guess by
  9615. # appending ld.so.conf contents (and includes) to the search path.
  9616. if test -f /etc/ld.so.conf; then
  9617. 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' ' '`
  9618. sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
  9619. fi
  9620. # We used to test for /lib/ld.so.1 and disable shared libraries on
  9621. # powerpc, because MkLinux only supported shared libraries with the
  9622. # GNU dynamic linker. Since this was broken with cross compilers,
  9623. # most powerpc-linux boxes support dynamic linking these days and
  9624. # people can always --disable-shared, the test was removed, and we
  9625. # assume the GNU/Linux dynamic linker is in use.
  9626. dynamic_linker='GNU/Linux ld.so'
  9627. ;;
  9628. netbsdelf*-gnu)
  9629. version_type=linux
  9630. need_lib_prefix=no
  9631. need_version=no
  9632. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  9633. soname_spec='${libname}${release}${shared_ext}$major'
  9634. shlibpath_var=LD_LIBRARY_PATH
  9635. shlibpath_overrides_runpath=no
  9636. hardcode_into_libs=yes
  9637. dynamic_linker='NetBSD ld.elf_so'
  9638. ;;
  9639. netbsd*)
  9640. version_type=sunos
  9641. need_lib_prefix=no
  9642. need_version=no
  9643. if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  9644. library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
  9645. finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  9646. dynamic_linker='NetBSD (a.out) ld.so'
  9647. else
  9648. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  9649. soname_spec='$libname$release$shared_ext$major'
  9650. dynamic_linker='NetBSD ld.elf_so'
  9651. fi
  9652. shlibpath_var=LD_LIBRARY_PATH
  9653. shlibpath_overrides_runpath=yes
  9654. hardcode_into_libs=yes
  9655. ;;
  9656. newsos6)
  9657. version_type=linux # correct to gnu/linux during the next big refactor
  9658. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  9659. shlibpath_var=LD_LIBRARY_PATH
  9660. shlibpath_overrides_runpath=yes
  9661. ;;
  9662. *nto* | *qnx*)
  9663. version_type=qnx
  9664. need_lib_prefix=no
  9665. need_version=no
  9666. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  9667. soname_spec='$libname$release$shared_ext$major'
  9668. shlibpath_var=LD_LIBRARY_PATH
  9669. shlibpath_overrides_runpath=no
  9670. hardcode_into_libs=yes
  9671. dynamic_linker='ldqnx.so'
  9672. ;;
  9673. openbsd* | bitrig*)
  9674. version_type=sunos
  9675. sys_lib_dlsearch_path_spec=/usr/lib
  9676. need_lib_prefix=no
  9677. if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
  9678. need_version=no
  9679. else
  9680. need_version=yes
  9681. fi
  9682. library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
  9683. finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  9684. shlibpath_var=LD_LIBRARY_PATH
  9685. shlibpath_overrides_runpath=yes
  9686. ;;
  9687. os2*)
  9688. libname_spec='$name'
  9689. version_type=windows
  9690. shrext_cmds=.dll
  9691. need_version=no
  9692. need_lib_prefix=no
  9693. # OS/2 can only load a DLL with a base name of 8 characters or less.
  9694. soname_spec='`test -n "$os2dllname" && libname="$os2dllname";
  9695. v=$($ECHO $release$versuffix | tr -d .-);
  9696. n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _);
  9697. $ECHO $n$v`$shared_ext'
  9698. library_names_spec='${libname}_dll.$libext'
  9699. dynamic_linker='OS/2 ld.exe'
  9700. shlibpath_var=BEGINLIBPATH
  9701. sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
  9702. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  9703. postinstall_cmds='base_file=`basename \$file`~
  9704. dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~
  9705. dldir=$destdir/`dirname \$dlpath`~
  9706. test -d \$dldir || mkdir -p \$dldir~
  9707. $install_prog $dir/$dlname \$dldir/$dlname~
  9708. chmod a+x \$dldir/$dlname~
  9709. if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
  9710. eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
  9711. fi'
  9712. postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~
  9713. dlpath=$dir/\$dldll~
  9714. $RM \$dlpath'
  9715. ;;
  9716. osf3* | osf4* | osf5*)
  9717. version_type=osf
  9718. need_lib_prefix=no
  9719. need_version=no
  9720. soname_spec='$libname$release$shared_ext$major'
  9721. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  9722. shlibpath_var=LD_LIBRARY_PATH
  9723. sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
  9724. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  9725. ;;
  9726. rdos*)
  9727. dynamic_linker=no
  9728. ;;
  9729. solaris*)
  9730. version_type=linux # correct to gnu/linux during the next big refactor
  9731. need_lib_prefix=no
  9732. need_version=no
  9733. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  9734. soname_spec='$libname$release$shared_ext$major'
  9735. shlibpath_var=LD_LIBRARY_PATH
  9736. shlibpath_overrides_runpath=yes
  9737. hardcode_into_libs=yes
  9738. # ldd complains unless libraries are executable
  9739. postinstall_cmds='chmod +x $lib'
  9740. ;;
  9741. sunos4*)
  9742. version_type=sunos
  9743. library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
  9744. finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
  9745. shlibpath_var=LD_LIBRARY_PATH
  9746. shlibpath_overrides_runpath=yes
  9747. if test yes = "$with_gnu_ld"; then
  9748. need_lib_prefix=no
  9749. fi
  9750. need_version=yes
  9751. ;;
  9752. sysv4 | sysv4.3*)
  9753. version_type=linux # correct to gnu/linux during the next big refactor
  9754. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  9755. soname_spec='$libname$release$shared_ext$major'
  9756. shlibpath_var=LD_LIBRARY_PATH
  9757. case $host_vendor in
  9758. sni)
  9759. shlibpath_overrides_runpath=no
  9760. need_lib_prefix=no
  9761. runpath_var=LD_RUN_PATH
  9762. ;;
  9763. siemens)
  9764. need_lib_prefix=no
  9765. ;;
  9766. motorola)
  9767. need_lib_prefix=no
  9768. need_version=no
  9769. shlibpath_overrides_runpath=no
  9770. sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
  9771. ;;
  9772. esac
  9773. ;;
  9774. sysv4*MP*)
  9775. if test -d /usr/nec; then
  9776. version_type=linux # correct to gnu/linux during the next big refactor
  9777. library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext'
  9778. soname_spec='$libname$shared_ext.$major'
  9779. shlibpath_var=LD_LIBRARY_PATH
  9780. fi
  9781. ;;
  9782. sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
  9783. version_type=sco
  9784. need_lib_prefix=no
  9785. need_version=no
  9786. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext'
  9787. soname_spec='$libname$release$shared_ext$major'
  9788. shlibpath_var=LD_LIBRARY_PATH
  9789. shlibpath_overrides_runpath=yes
  9790. hardcode_into_libs=yes
  9791. if test yes = "$with_gnu_ld"; then
  9792. sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
  9793. else
  9794. sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
  9795. case $host_os in
  9796. sco3.2v5*)
  9797. sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
  9798. ;;
  9799. esac
  9800. fi
  9801. sys_lib_dlsearch_path_spec='/usr/lib'
  9802. ;;
  9803. tpf*)
  9804. # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
  9805. version_type=linux # correct to gnu/linux during the next big refactor
  9806. need_lib_prefix=no
  9807. need_version=no
  9808. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  9809. shlibpath_var=LD_LIBRARY_PATH
  9810. shlibpath_overrides_runpath=no
  9811. hardcode_into_libs=yes
  9812. ;;
  9813. uts4*)
  9814. version_type=linux # correct to gnu/linux during the next big refactor
  9815. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  9816. soname_spec='$libname$release$shared_ext$major'
  9817. shlibpath_var=LD_LIBRARY_PATH
  9818. ;;
  9819. *)
  9820. dynamic_linker=no
  9821. ;;
  9822. esac
  9823. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
  9824. $as_echo "$dynamic_linker" >&6; }
  9825. test no = "$dynamic_linker" && can_build_shared=no
  9826. variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
  9827. if test yes = "$GCC"; then
  9828. variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
  9829. fi
  9830. if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then
  9831. sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec
  9832. fi
  9833. if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then
  9834. sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec
  9835. fi
  9836. # remember unaugmented sys_lib_dlsearch_path content for libtool script decls...
  9837. configure_time_dlsearch_path=$sys_lib_dlsearch_path_spec
  9838. # ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code
  9839. func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH"
  9840. # to be used as default LT_SYS_LIBRARY_PATH value in generated libtool
  9841. configure_time_lt_sys_library_path=$LT_SYS_LIBRARY_PATH
  9842. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
  9843. $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
  9844. hardcode_action=
  9845. if test -n "$hardcode_libdir_flag_spec" ||
  9846. test -n "$runpath_var" ||
  9847. test yes = "$hardcode_automatic"; then
  9848. # We can hardcode non-existent directories.
  9849. if test no != "$hardcode_direct" &&
  9850. # If the only mechanism to avoid hardcoding is shlibpath_var, we
  9851. # have to relink, otherwise we might link with an installed library
  9852. # when we should be linking with a yet-to-be-installed one
  9853. ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, )" &&
  9854. test no != "$hardcode_minus_L"; then
  9855. # Linking always hardcodes the temporary library directory.
  9856. hardcode_action=relink
  9857. else
  9858. # We can link without hardcoding, and we can hardcode nonexisting dirs.
  9859. hardcode_action=immediate
  9860. fi
  9861. else
  9862. # We cannot hardcode anything, or else we can only hardcode existing
  9863. # directories.
  9864. hardcode_action=unsupported
  9865. fi
  9866. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
  9867. $as_echo "$hardcode_action" >&6; }
  9868. if test relink = "$hardcode_action" ||
  9869. test yes = "$inherit_rpath"; then
  9870. # Fast installation is not supported
  9871. enable_fast_install=no
  9872. elif test yes = "$shlibpath_overrides_runpath" ||
  9873. test no = "$enable_shared"; then
  9874. # Fast installation is not necessary
  9875. enable_fast_install=needless
  9876. fi
  9877. if test yes != "$enable_dlopen"; then
  9878. enable_dlopen=unknown
  9879. enable_dlopen_self=unknown
  9880. enable_dlopen_self_static=unknown
  9881. else
  9882. lt_cv_dlopen=no
  9883. lt_cv_dlopen_libs=
  9884. case $host_os in
  9885. beos*)
  9886. lt_cv_dlopen=load_add_on
  9887. lt_cv_dlopen_libs=
  9888. lt_cv_dlopen_self=yes
  9889. ;;
  9890. mingw* | pw32* | cegcc*)
  9891. lt_cv_dlopen=LoadLibrary
  9892. lt_cv_dlopen_libs=
  9893. ;;
  9894. cygwin*)
  9895. lt_cv_dlopen=dlopen
  9896. lt_cv_dlopen_libs=
  9897. ;;
  9898. darwin*)
  9899. # if libdl is installed we need to link against it
  9900. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
  9901. $as_echo_n "checking for dlopen in -ldl... " >&6; }
  9902. if ${ac_cv_lib_dl_dlopen+:} false; then :
  9903. $as_echo_n "(cached) " >&6
  9904. else
  9905. ac_check_lib_save_LIBS=$LIBS
  9906. LIBS="-ldl $LIBS"
  9907. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9908. /* end confdefs.h. */
  9909. /* Override any GCC internal prototype to avoid an error.
  9910. Use char because int might match the return type of a GCC
  9911. builtin and then its argument prototype would still apply. */
  9912. #ifdef __cplusplus
  9913. extern "C"
  9914. #endif
  9915. char dlopen ();
  9916. int
  9917. main ()
  9918. {
  9919. return dlopen ();
  9920. ;
  9921. return 0;
  9922. }
  9923. _ACEOF
  9924. if ac_fn_c_try_link "$LINENO"; then :
  9925. ac_cv_lib_dl_dlopen=yes
  9926. else
  9927. ac_cv_lib_dl_dlopen=no
  9928. fi
  9929. rm -f core conftest.err conftest.$ac_objext \
  9930. conftest$ac_exeext conftest.$ac_ext
  9931. LIBS=$ac_check_lib_save_LIBS
  9932. fi
  9933. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
  9934. $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
  9935. if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
  9936. lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
  9937. else
  9938. lt_cv_dlopen=dyld
  9939. lt_cv_dlopen_libs=
  9940. lt_cv_dlopen_self=yes
  9941. fi
  9942. ;;
  9943. tpf*)
  9944. # Don't try to run any link tests for TPF. We know it's impossible
  9945. # because TPF is a cross-compiler, and we know how we open DSOs.
  9946. lt_cv_dlopen=dlopen
  9947. lt_cv_dlopen_libs=
  9948. lt_cv_dlopen_self=no
  9949. ;;
  9950. *)
  9951. ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
  9952. if test "x$ac_cv_func_shl_load" = xyes; then :
  9953. lt_cv_dlopen=shl_load
  9954. else
  9955. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
  9956. $as_echo_n "checking for shl_load in -ldld... " >&6; }
  9957. if ${ac_cv_lib_dld_shl_load+:} false; then :
  9958. $as_echo_n "(cached) " >&6
  9959. else
  9960. ac_check_lib_save_LIBS=$LIBS
  9961. LIBS="-ldld $LIBS"
  9962. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9963. /* end confdefs.h. */
  9964. /* Override any GCC internal prototype to avoid an error.
  9965. Use char because int might match the return type of a GCC
  9966. builtin and then its argument prototype would still apply. */
  9967. #ifdef __cplusplus
  9968. extern "C"
  9969. #endif
  9970. char shl_load ();
  9971. int
  9972. main ()
  9973. {
  9974. return shl_load ();
  9975. ;
  9976. return 0;
  9977. }
  9978. _ACEOF
  9979. if ac_fn_c_try_link "$LINENO"; then :
  9980. ac_cv_lib_dld_shl_load=yes
  9981. else
  9982. ac_cv_lib_dld_shl_load=no
  9983. fi
  9984. rm -f core conftest.err conftest.$ac_objext \
  9985. conftest$ac_exeext conftest.$ac_ext
  9986. LIBS=$ac_check_lib_save_LIBS
  9987. fi
  9988. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
  9989. $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
  9990. if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
  9991. lt_cv_dlopen=shl_load lt_cv_dlopen_libs=-ldld
  9992. else
  9993. ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
  9994. if test "x$ac_cv_func_dlopen" = xyes; then :
  9995. lt_cv_dlopen=dlopen
  9996. else
  9997. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
  9998. $as_echo_n "checking for dlopen in -ldl... " >&6; }
  9999. if ${ac_cv_lib_dl_dlopen+:} false; then :
  10000. $as_echo_n "(cached) " >&6
  10001. else
  10002. ac_check_lib_save_LIBS=$LIBS
  10003. LIBS="-ldl $LIBS"
  10004. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10005. /* end confdefs.h. */
  10006. /* Override any GCC internal prototype to avoid an error.
  10007. Use char because int might match the return type of a GCC
  10008. builtin and then its argument prototype would still apply. */
  10009. #ifdef __cplusplus
  10010. extern "C"
  10011. #endif
  10012. char dlopen ();
  10013. int
  10014. main ()
  10015. {
  10016. return dlopen ();
  10017. ;
  10018. return 0;
  10019. }
  10020. _ACEOF
  10021. if ac_fn_c_try_link "$LINENO"; then :
  10022. ac_cv_lib_dl_dlopen=yes
  10023. else
  10024. ac_cv_lib_dl_dlopen=no
  10025. fi
  10026. rm -f core conftest.err conftest.$ac_objext \
  10027. conftest$ac_exeext conftest.$ac_ext
  10028. LIBS=$ac_check_lib_save_LIBS
  10029. fi
  10030. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
  10031. $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
  10032. if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
  10033. lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
  10034. else
  10035. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
  10036. $as_echo_n "checking for dlopen in -lsvld... " >&6; }
  10037. if ${ac_cv_lib_svld_dlopen+:} false; then :
  10038. $as_echo_n "(cached) " >&6
  10039. else
  10040. ac_check_lib_save_LIBS=$LIBS
  10041. LIBS="-lsvld $LIBS"
  10042. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10043. /* end confdefs.h. */
  10044. /* Override any GCC internal prototype to avoid an error.
  10045. Use char because int might match the return type of a GCC
  10046. builtin and then its argument prototype would still apply. */
  10047. #ifdef __cplusplus
  10048. extern "C"
  10049. #endif
  10050. char dlopen ();
  10051. int
  10052. main ()
  10053. {
  10054. return dlopen ();
  10055. ;
  10056. return 0;
  10057. }
  10058. _ACEOF
  10059. if ac_fn_c_try_link "$LINENO"; then :
  10060. ac_cv_lib_svld_dlopen=yes
  10061. else
  10062. ac_cv_lib_svld_dlopen=no
  10063. fi
  10064. rm -f core conftest.err conftest.$ac_objext \
  10065. conftest$ac_exeext conftest.$ac_ext
  10066. LIBS=$ac_check_lib_save_LIBS
  10067. fi
  10068. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
  10069. $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
  10070. if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
  10071. lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-lsvld
  10072. else
  10073. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
  10074. $as_echo_n "checking for dld_link in -ldld... " >&6; }
  10075. if ${ac_cv_lib_dld_dld_link+:} false; then :
  10076. $as_echo_n "(cached) " >&6
  10077. else
  10078. ac_check_lib_save_LIBS=$LIBS
  10079. LIBS="-ldld $LIBS"
  10080. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10081. /* end confdefs.h. */
  10082. /* Override any GCC internal prototype to avoid an error.
  10083. Use char because int might match the return type of a GCC
  10084. builtin and then its argument prototype would still apply. */
  10085. #ifdef __cplusplus
  10086. extern "C"
  10087. #endif
  10088. char dld_link ();
  10089. int
  10090. main ()
  10091. {
  10092. return dld_link ();
  10093. ;
  10094. return 0;
  10095. }
  10096. _ACEOF
  10097. if ac_fn_c_try_link "$LINENO"; then :
  10098. ac_cv_lib_dld_dld_link=yes
  10099. else
  10100. ac_cv_lib_dld_dld_link=no
  10101. fi
  10102. rm -f core conftest.err conftest.$ac_objext \
  10103. conftest$ac_exeext conftest.$ac_ext
  10104. LIBS=$ac_check_lib_save_LIBS
  10105. fi
  10106. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
  10107. $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
  10108. if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
  10109. lt_cv_dlopen=dld_link lt_cv_dlopen_libs=-ldld
  10110. fi
  10111. fi
  10112. fi
  10113. fi
  10114. fi
  10115. fi
  10116. ;;
  10117. esac
  10118. if test no = "$lt_cv_dlopen"; then
  10119. enable_dlopen=no
  10120. else
  10121. enable_dlopen=yes
  10122. fi
  10123. case $lt_cv_dlopen in
  10124. dlopen)
  10125. save_CPPFLAGS=$CPPFLAGS
  10126. test yes = "$ac_cv_header_dlfcn_h" && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
  10127. save_LDFLAGS=$LDFLAGS
  10128. wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
  10129. save_LIBS=$LIBS
  10130. LIBS="$lt_cv_dlopen_libs $LIBS"
  10131. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
  10132. $as_echo_n "checking whether a program can dlopen itself... " >&6; }
  10133. if ${lt_cv_dlopen_self+:} false; then :
  10134. $as_echo_n "(cached) " >&6
  10135. else
  10136. if test yes = "$cross_compiling"; then :
  10137. lt_cv_dlopen_self=cross
  10138. else
  10139. lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
  10140. lt_status=$lt_dlunknown
  10141. cat > conftest.$ac_ext <<_LT_EOF
  10142. #line $LINENO "configure"
  10143. #include "confdefs.h"
  10144. #if HAVE_DLFCN_H
  10145. #include <dlfcn.h>
  10146. #endif
  10147. #include <stdio.h>
  10148. #ifdef RTLD_GLOBAL
  10149. # define LT_DLGLOBAL RTLD_GLOBAL
  10150. #else
  10151. # ifdef DL_GLOBAL
  10152. # define LT_DLGLOBAL DL_GLOBAL
  10153. # else
  10154. # define LT_DLGLOBAL 0
  10155. # endif
  10156. #endif
  10157. /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
  10158. find out it does not work in some platform. */
  10159. #ifndef LT_DLLAZY_OR_NOW
  10160. # ifdef RTLD_LAZY
  10161. # define LT_DLLAZY_OR_NOW RTLD_LAZY
  10162. # else
  10163. # ifdef DL_LAZY
  10164. # define LT_DLLAZY_OR_NOW DL_LAZY
  10165. # else
  10166. # ifdef RTLD_NOW
  10167. # define LT_DLLAZY_OR_NOW RTLD_NOW
  10168. # else
  10169. # ifdef DL_NOW
  10170. # define LT_DLLAZY_OR_NOW DL_NOW
  10171. # else
  10172. # define LT_DLLAZY_OR_NOW 0
  10173. # endif
  10174. # endif
  10175. # endif
  10176. # endif
  10177. #endif
  10178. /* When -fvisibility=hidden is used, assume the code has been annotated
  10179. correspondingly for the symbols needed. */
  10180. #if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
  10181. int fnord () __attribute__((visibility("default")));
  10182. #endif
  10183. int fnord () { return 42; }
  10184. int main ()
  10185. {
  10186. void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
  10187. int status = $lt_dlunknown;
  10188. if (self)
  10189. {
  10190. if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
  10191. else
  10192. {
  10193. if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
  10194. else puts (dlerror ());
  10195. }
  10196. /* dlclose (self); */
  10197. }
  10198. else
  10199. puts (dlerror ());
  10200. return status;
  10201. }
  10202. _LT_EOF
  10203. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
  10204. (eval $ac_link) 2>&5
  10205. ac_status=$?
  10206. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  10207. test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
  10208. (./conftest; exit; ) >&5 2>/dev/null
  10209. lt_status=$?
  10210. case x$lt_status in
  10211. x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
  10212. x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
  10213. x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
  10214. esac
  10215. else :
  10216. # compilation failed
  10217. lt_cv_dlopen_self=no
  10218. fi
  10219. fi
  10220. rm -fr conftest*
  10221. fi
  10222. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
  10223. $as_echo "$lt_cv_dlopen_self" >&6; }
  10224. if test yes = "$lt_cv_dlopen_self"; then
  10225. wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
  10226. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
  10227. $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
  10228. if ${lt_cv_dlopen_self_static+:} false; then :
  10229. $as_echo_n "(cached) " >&6
  10230. else
  10231. if test yes = "$cross_compiling"; then :
  10232. lt_cv_dlopen_self_static=cross
  10233. else
  10234. lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
  10235. lt_status=$lt_dlunknown
  10236. cat > conftest.$ac_ext <<_LT_EOF
  10237. #line $LINENO "configure"
  10238. #include "confdefs.h"
  10239. #if HAVE_DLFCN_H
  10240. #include <dlfcn.h>
  10241. #endif
  10242. #include <stdio.h>
  10243. #ifdef RTLD_GLOBAL
  10244. # define LT_DLGLOBAL RTLD_GLOBAL
  10245. #else
  10246. # ifdef DL_GLOBAL
  10247. # define LT_DLGLOBAL DL_GLOBAL
  10248. # else
  10249. # define LT_DLGLOBAL 0
  10250. # endif
  10251. #endif
  10252. /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
  10253. find out it does not work in some platform. */
  10254. #ifndef LT_DLLAZY_OR_NOW
  10255. # ifdef RTLD_LAZY
  10256. # define LT_DLLAZY_OR_NOW RTLD_LAZY
  10257. # else
  10258. # ifdef DL_LAZY
  10259. # define LT_DLLAZY_OR_NOW DL_LAZY
  10260. # else
  10261. # ifdef RTLD_NOW
  10262. # define LT_DLLAZY_OR_NOW RTLD_NOW
  10263. # else
  10264. # ifdef DL_NOW
  10265. # define LT_DLLAZY_OR_NOW DL_NOW
  10266. # else
  10267. # define LT_DLLAZY_OR_NOW 0
  10268. # endif
  10269. # endif
  10270. # endif
  10271. # endif
  10272. #endif
  10273. /* When -fvisibility=hidden is used, assume the code has been annotated
  10274. correspondingly for the symbols needed. */
  10275. #if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
  10276. int fnord () __attribute__((visibility("default")));
  10277. #endif
  10278. int fnord () { return 42; }
  10279. int main ()
  10280. {
  10281. void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
  10282. int status = $lt_dlunknown;
  10283. if (self)
  10284. {
  10285. if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
  10286. else
  10287. {
  10288. if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
  10289. else puts (dlerror ());
  10290. }
  10291. /* dlclose (self); */
  10292. }
  10293. else
  10294. puts (dlerror ());
  10295. return status;
  10296. }
  10297. _LT_EOF
  10298. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
  10299. (eval $ac_link) 2>&5
  10300. ac_status=$?
  10301. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  10302. test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
  10303. (./conftest; exit; ) >&5 2>/dev/null
  10304. lt_status=$?
  10305. case x$lt_status in
  10306. x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
  10307. x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
  10308. x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
  10309. esac
  10310. else :
  10311. # compilation failed
  10312. lt_cv_dlopen_self_static=no
  10313. fi
  10314. fi
  10315. rm -fr conftest*
  10316. fi
  10317. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
  10318. $as_echo "$lt_cv_dlopen_self_static" >&6; }
  10319. fi
  10320. CPPFLAGS=$save_CPPFLAGS
  10321. LDFLAGS=$save_LDFLAGS
  10322. LIBS=$save_LIBS
  10323. ;;
  10324. esac
  10325. case $lt_cv_dlopen_self in
  10326. yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
  10327. *) enable_dlopen_self=unknown ;;
  10328. esac
  10329. case $lt_cv_dlopen_self_static in
  10330. yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
  10331. *) enable_dlopen_self_static=unknown ;;
  10332. esac
  10333. fi
  10334. striplib=
  10335. old_striplib=
  10336. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
  10337. $as_echo_n "checking whether stripping libraries is possible... " >&6; }
  10338. if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
  10339. test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
  10340. test -z "$striplib" && striplib="$STRIP --strip-unneeded"
  10341. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  10342. $as_echo "yes" >&6; }
  10343. else
  10344. # FIXME - insert some real tests, host_os isn't really good enough
  10345. case $host_os in
  10346. darwin*)
  10347. if test -n "$STRIP"; then
  10348. striplib="$STRIP -x"
  10349. old_striplib="$STRIP -S"
  10350. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  10351. $as_echo "yes" >&6; }
  10352. else
  10353. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  10354. $as_echo "no" >&6; }
  10355. fi
  10356. ;;
  10357. *)
  10358. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  10359. $as_echo "no" >&6; }
  10360. ;;
  10361. esac
  10362. fi
  10363. # Report what library types will actually be built
  10364. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
  10365. $as_echo_n "checking if libtool supports shared libraries... " >&6; }
  10366. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
  10367. $as_echo "$can_build_shared" >&6; }
  10368. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
  10369. $as_echo_n "checking whether to build shared libraries... " >&6; }
  10370. test no = "$can_build_shared" && enable_shared=no
  10371. # On AIX, shared libraries and static libraries use the same namespace, and
  10372. # are all built from PIC.
  10373. case $host_os in
  10374. aix3*)
  10375. test yes = "$enable_shared" && enable_static=no
  10376. if test -n "$RANLIB"; then
  10377. archive_cmds="$archive_cmds~\$RANLIB \$lib"
  10378. postinstall_cmds='$RANLIB $lib'
  10379. fi
  10380. ;;
  10381. aix[4-9]*)
  10382. if test ia64 != "$host_cpu"; then
  10383. case $enable_shared,$with_aix_soname,$aix_use_runtimelinking in
  10384. yes,aix,yes) ;; # shared object as lib.so file only
  10385. yes,svr4,*) ;; # shared object as lib.so archive member only
  10386. yes,*) enable_static=no ;; # shared object in lib.a archive as well
  10387. esac
  10388. fi
  10389. ;;
  10390. esac
  10391. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
  10392. $as_echo "$enable_shared" >&6; }
  10393. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
  10394. $as_echo_n "checking whether to build static libraries... " >&6; }
  10395. # Make sure either enable_shared or enable_static is yes.
  10396. test yes = "$enable_shared" || enable_static=yes
  10397. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
  10398. $as_echo "$enable_static" >&6; }
  10399. fi
  10400. ac_ext=c
  10401. ac_cpp='$CPP $CPPFLAGS'
  10402. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  10403. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  10404. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  10405. CC=$lt_save_CC
  10406. ac_config_commands="$ac_config_commands libtool"
  10407. # Only expand once:
  10408. if test x$GCC = xyes; then
  10409. GCC_TRUE=
  10410. GCC_FALSE='#'
  10411. else
  10412. GCC_TRUE='#'
  10413. GCC_FALSE=
  10414. fi
  10415. # Checks for libraries.
  10416. # Checks for header files.
  10417. for ac_header in endian.h fcntl.h locale.h sched.h unistd.h sys/param.h sys/stat.h sys/time.h sys/types.h
  10418. do :
  10419. as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
  10420. ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
  10421. if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
  10422. cat >>confdefs.h <<_ACEOF
  10423. #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
  10424. _ACEOF
  10425. fi
  10426. done
  10427. # Checks for typedefs, structures, and compiler characteristics.
  10428. ac_fn_c_find_intX_t "$LINENO" "32" "ac_cv_c_int32_t"
  10429. case $ac_cv_c_int32_t in #(
  10430. no|yes) ;; #(
  10431. *)
  10432. cat >>confdefs.h <<_ACEOF
  10433. #define int32_t $ac_cv_c_int32_t
  10434. _ACEOF
  10435. ;;
  10436. esac
  10437. ac_fn_c_find_uintX_t "$LINENO" "32" "ac_cv_c_uint32_t"
  10438. case $ac_cv_c_uint32_t in #(
  10439. no|yes) ;; #(
  10440. *)
  10441. $as_echo "#define _UINT32_T 1" >>confdefs.h
  10442. cat >>confdefs.h <<_ACEOF
  10443. #define uint32_t $ac_cv_c_uint32_t
  10444. _ACEOF
  10445. ;;
  10446. esac
  10447. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned long long int" >&5
  10448. $as_echo_n "checking for unsigned long long int... " >&6; }
  10449. if ${ac_cv_type_unsigned_long_long_int+:} false; then :
  10450. $as_echo_n "(cached) " >&6
  10451. else
  10452. ac_cv_type_unsigned_long_long_int=yes
  10453. if test "x${ac_cv_prog_cc_c99-no}" = xno; then
  10454. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10455. /* end confdefs.h. */
  10456. /* For now, do not test the preprocessor; as of 2007 there are too many
  10457. implementations with broken preprocessors. Perhaps this can
  10458. be revisited in 2012. In the meantime, code should not expect
  10459. #if to work with literals wider than 32 bits. */
  10460. /* Test literals. */
  10461. long long int ll = 9223372036854775807ll;
  10462. long long int nll = -9223372036854775807LL;
  10463. unsigned long long int ull = 18446744073709551615ULL;
  10464. /* Test constant expressions. */
  10465. typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
  10466. ? 1 : -1)];
  10467. typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1
  10468. ? 1 : -1)];
  10469. int i = 63;
  10470. int
  10471. main ()
  10472. {
  10473. /* Test availability of runtime routines for shift and division. */
  10474. long long int llmax = 9223372036854775807ll;
  10475. unsigned long long int ullmax = 18446744073709551615ull;
  10476. return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i)
  10477. | (llmax / ll) | (llmax % ll)
  10478. | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i)
  10479. | (ullmax / ull) | (ullmax % ull));
  10480. ;
  10481. return 0;
  10482. }
  10483. _ACEOF
  10484. if ac_fn_c_try_link "$LINENO"; then :
  10485. else
  10486. ac_cv_type_unsigned_long_long_int=no
  10487. fi
  10488. rm -f core conftest.err conftest.$ac_objext \
  10489. conftest$ac_exeext conftest.$ac_ext
  10490. fi
  10491. fi
  10492. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_unsigned_long_long_int" >&5
  10493. $as_echo "$ac_cv_type_unsigned_long_long_int" >&6; }
  10494. if test $ac_cv_type_unsigned_long_long_int = yes; then
  10495. $as_echo "#define HAVE_UNSIGNED_LONG_LONG_INT 1" >>confdefs.h
  10496. fi
  10497. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long long int" >&5
  10498. $as_echo_n "checking for long long int... " >&6; }
  10499. if ${ac_cv_type_long_long_int+:} false; then :
  10500. $as_echo_n "(cached) " >&6
  10501. else
  10502. ac_cv_type_long_long_int=yes
  10503. if test "x${ac_cv_prog_cc_c99-no}" = xno; then
  10504. ac_cv_type_long_long_int=$ac_cv_type_unsigned_long_long_int
  10505. if test $ac_cv_type_long_long_int = yes; then
  10506. if test "$cross_compiling" = yes; then :
  10507. :
  10508. else
  10509. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10510. /* end confdefs.h. */
  10511. #include <limits.h>
  10512. #ifndef LLONG_MAX
  10513. # define HALF \
  10514. (1LL << (sizeof (long long int) * CHAR_BIT - 2))
  10515. # define LLONG_MAX (HALF - 1 + HALF)
  10516. #endif
  10517. int
  10518. main ()
  10519. {
  10520. long long int n = 1;
  10521. int i;
  10522. for (i = 0; ; i++)
  10523. {
  10524. long long int m = n << i;
  10525. if (m >> i != n)
  10526. return 1;
  10527. if (LLONG_MAX / 2 < m)
  10528. break;
  10529. }
  10530. return 0;
  10531. ;
  10532. return 0;
  10533. }
  10534. _ACEOF
  10535. if ac_fn_c_try_run "$LINENO"; then :
  10536. else
  10537. ac_cv_type_long_long_int=no
  10538. fi
  10539. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  10540. conftest.$ac_objext conftest.beam conftest.$ac_ext
  10541. fi
  10542. fi
  10543. fi
  10544. fi
  10545. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_long_long_int" >&5
  10546. $as_echo "$ac_cv_type_long_long_int" >&6; }
  10547. if test $ac_cv_type_long_long_int = yes; then
  10548. $as_echo "#define HAVE_LONG_LONG_INT 1" >>confdefs.h
  10549. fi
  10550. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
  10551. $as_echo_n "checking for inline... " >&6; }
  10552. if ${ac_cv_c_inline+:} false; then :
  10553. $as_echo_n "(cached) " >&6
  10554. else
  10555. ac_cv_c_inline=no
  10556. for ac_kw in inline __inline__ __inline; do
  10557. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10558. /* end confdefs.h. */
  10559. #ifndef __cplusplus
  10560. typedef int foo_t;
  10561. static $ac_kw foo_t static_foo () {return 0; }
  10562. $ac_kw foo_t foo () {return 0; }
  10563. #endif
  10564. _ACEOF
  10565. if ac_fn_c_try_compile "$LINENO"; then :
  10566. ac_cv_c_inline=$ac_kw
  10567. fi
  10568. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  10569. test "$ac_cv_c_inline" != no && break
  10570. done
  10571. fi
  10572. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
  10573. $as_echo "$ac_cv_c_inline" >&6; }
  10574. case $ac_cv_c_inline in
  10575. inline | yes) ;;
  10576. *)
  10577. case $ac_cv_c_inline in
  10578. no) ac_val=;;
  10579. *) ac_val=$ac_cv_c_inline;;
  10580. esac
  10581. cat >>confdefs.h <<_ACEOF
  10582. #ifndef __cplusplus
  10583. #define inline $ac_val
  10584. #endif
  10585. _ACEOF
  10586. ;;
  10587. esac
  10588. case $ac_cv_c_inline in
  10589. yes) json_inline=inline;;
  10590. no) json_inline=;;
  10591. *) json_inline=$ac_cv_c_inline;;
  10592. esac
  10593. # Checks for library functions.
  10594. for ac_func in close getpid gettimeofday localeconv open read sched_yield strtoll
  10595. do :
  10596. as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
  10597. ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
  10598. if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
  10599. cat >>confdefs.h <<_ACEOF
  10600. #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
  10601. _ACEOF
  10602. fi
  10603. done
  10604. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gcc __sync builtins" >&5
  10605. $as_echo_n "checking for gcc __sync builtins... " >&6; }
  10606. have_sync_builtins=no
  10607. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10608. /* end confdefs.h. */
  10609. int
  10610. main ()
  10611. {
  10612. unsigned long val; __sync_bool_compare_and_swap(&val, 0, 1);
  10613. ;
  10614. return 0;
  10615. }
  10616. _ACEOF
  10617. if ac_fn_c_try_link "$LINENO"; then :
  10618. have_sync_builtins=yes
  10619. fi
  10620. rm -f core conftest.err conftest.$ac_objext \
  10621. conftest$ac_exeext conftest.$ac_ext
  10622. if test "x$have_sync_builtins" = "xyes"; then
  10623. $as_echo "#define HAVE_SYNC_BUILTINS 1" >>confdefs.h
  10624. fi
  10625. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_sync_builtins" >&5
  10626. $as_echo "$have_sync_builtins" >&6; }
  10627. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gcc __atomic builtins" >&5
  10628. $as_echo_n "checking for gcc __atomic builtins... " >&6; }
  10629. have_atomic_builtins=no
  10630. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10631. /* end confdefs.h. */
  10632. int
  10633. main ()
  10634. {
  10635. char l; unsigned long v; __atomic_test_and_set(&l, __ATOMIC_RELAXED); __atomic_store_n(&v, 1, __ATOMIC_ACQ_REL); __atomic_load_n(&v, __ATOMIC_ACQUIRE);
  10636. ;
  10637. return 0;
  10638. }
  10639. _ACEOF
  10640. if ac_fn_c_try_link "$LINENO"; then :
  10641. have_atomic_builtins=yes
  10642. fi
  10643. rm -f core conftest.err conftest.$ac_objext \
  10644. conftest$ac_exeext conftest.$ac_ext
  10645. if test "x$have_atomic_builtins" = "xyes"; then
  10646. $as_echo "#define HAVE_ATOMIC_BUILTINS 1" >>confdefs.h
  10647. fi
  10648. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_atomic_builtins" >&5
  10649. $as_echo "$have_atomic_builtins" >&6; }
  10650. case "$ac_cv_type_long_long_int$ac_cv_func_strtoll" in
  10651. yesyes) json_have_long_long=1;;
  10652. *) json_have_long_long=0;;
  10653. esac
  10654. case "$ac_cv_header_locale_h$ac_cv_func_localeconv" in
  10655. yesyes) json_have_localeconv=1;;
  10656. *) json_have_localeconv=0;;
  10657. esac
  10658. # Features
  10659. # Check whether --enable-urandom was given.
  10660. if test "${enable_urandom+set}" = set; then :
  10661. enableval=$enable_urandom; use_urandom=$enableval
  10662. else
  10663. use_urandom=yes
  10664. fi
  10665. if test "x$use_urandom" = xyes; then
  10666. $as_echo "#define USE_URANDOM 1" >>confdefs.h
  10667. fi
  10668. # Check whether --enable-windows-cryptoapi was given.
  10669. if test "${enable_windows_cryptoapi+set}" = set; then :
  10670. enableval=$enable_windows_cryptoapi; use_windows_cryptoapi=$enableval
  10671. else
  10672. use_windows_cryptoapi=yes
  10673. fi
  10674. if test "x$use_windows_cryptoapi" = xyes; then
  10675. $as_echo "#define USE_WINDOWS_CRYPTOAPI 1" >>confdefs.h
  10676. fi
  10677. ac_config_files="$ac_config_files jansson.pc Makefile src/Makefile src/jansson_config.h"
  10678. cat >confcache <<\_ACEOF
  10679. # This file is a shell script that caches the results of configure
  10680. # tests run on this system so they can be shared between configure
  10681. # scripts and configure runs, see configure's option --config-cache.
  10682. # It is not useful on other systems. If it contains results you don't
  10683. # want to keep, you may remove or edit it.
  10684. #
  10685. # config.status only pays attention to the cache file if you give it
  10686. # the --recheck option to rerun configure.
  10687. #
  10688. # `ac_cv_env_foo' variables (set or unset) will be overridden when
  10689. # loading this file, other *unset* `ac_cv_foo' will be assigned the
  10690. # following values.
  10691. _ACEOF
  10692. # The following way of writing the cache mishandles newlines in values,
  10693. # but we know of no workaround that is simple, portable, and efficient.
  10694. # So, we kill variables containing newlines.
  10695. # Ultrix sh set writes to stderr and can't be redirected directly,
  10696. # and sets the high bit in the cache file unless we assign to the vars.
  10697. (
  10698. for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
  10699. eval ac_val=\$$ac_var
  10700. case $ac_val in #(
  10701. *${as_nl}*)
  10702. case $ac_var in #(
  10703. *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
  10704. $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
  10705. esac
  10706. case $ac_var in #(
  10707. _ | IFS | as_nl) ;; #(
  10708. BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
  10709. *) { eval $ac_var=; unset $ac_var;} ;;
  10710. esac ;;
  10711. esac
  10712. done
  10713. (set) 2>&1 |
  10714. case $as_nl`(ac_space=' '; set) 2>&1` in #(
  10715. *${as_nl}ac_space=\ *)
  10716. # `set' does not quote correctly, so add quotes: double-quote
  10717. # substitution turns \\\\ into \\, and sed turns \\ into \.
  10718. sed -n \
  10719. "s/'/'\\\\''/g;
  10720. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
  10721. ;; #(
  10722. *)
  10723. # `set' quotes correctly as required by POSIX, so do not add quotes.
  10724. sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
  10725. ;;
  10726. esac |
  10727. sort
  10728. ) |
  10729. sed '
  10730. /^ac_cv_env_/b end
  10731. t clear
  10732. :clear
  10733. s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
  10734. t end
  10735. s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
  10736. :end' >>confcache
  10737. if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
  10738. if test -w "$cache_file"; then
  10739. if test "x$cache_file" != "x/dev/null"; then
  10740. { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
  10741. $as_echo "$as_me: updating cache $cache_file" >&6;}
  10742. if test ! -f "$cache_file" || test -h "$cache_file"; then
  10743. cat confcache >"$cache_file"
  10744. else
  10745. case $cache_file in #(
  10746. */* | ?:*)
  10747. mv -f confcache "$cache_file"$$ &&
  10748. mv -f "$cache_file"$$ "$cache_file" ;; #(
  10749. *)
  10750. mv -f confcache "$cache_file" ;;
  10751. esac
  10752. fi
  10753. fi
  10754. else
  10755. { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
  10756. $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
  10757. fi
  10758. fi
  10759. rm -f confcache
  10760. test "x$prefix" = xNONE && prefix=$ac_default_prefix
  10761. # Let make expand exec_prefix.
  10762. test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
  10763. DEFS=-DHAVE_CONFIG_H
  10764. ac_libobjs=
  10765. ac_ltlibobjs=
  10766. U=
  10767. for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
  10768. # 1. Remove the extension, and $U if already installed.
  10769. ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
  10770. ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
  10771. # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
  10772. # will be set to the directory where LIBOBJS objects are built.
  10773. as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
  10774. as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
  10775. done
  10776. LIBOBJS=$ac_libobjs
  10777. LTLIBOBJS=$ac_ltlibobjs
  10778. { $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
  10779. $as_echo_n "checking that generated files are newer than configure... " >&6; }
  10780. if test -n "$am_sleep_pid"; then
  10781. # Hide warnings about reused PIDs.
  10782. wait $am_sleep_pid 2>/dev/null
  10783. fi
  10784. { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
  10785. $as_echo "done" >&6; }
  10786. if test -n "$EXEEXT"; then
  10787. am__EXEEXT_TRUE=
  10788. am__EXEEXT_FALSE='#'
  10789. else
  10790. am__EXEEXT_TRUE='#'
  10791. am__EXEEXT_FALSE=
  10792. fi
  10793. if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
  10794. as_fn_error $? "conditional \"AMDEP\" was never defined.
  10795. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  10796. fi
  10797. if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
  10798. as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
  10799. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  10800. fi
  10801. if test -z "${GCC_TRUE}" && test -z "${GCC_FALSE}"; then
  10802. as_fn_error $? "conditional \"GCC\" was never defined.
  10803. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  10804. fi
  10805. : "${CONFIG_STATUS=./config.status}"
  10806. ac_write_fail=0
  10807. ac_clean_files_save=$ac_clean_files
  10808. ac_clean_files="$ac_clean_files $CONFIG_STATUS"
  10809. { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
  10810. $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
  10811. as_write_fail=0
  10812. cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
  10813. #! $SHELL
  10814. # Generated by $as_me.
  10815. # Run this file to recreate the current configuration.
  10816. # Compiler output produced by configure, useful for debugging
  10817. # configure, is in config.log if it exists.
  10818. debug=false
  10819. ac_cs_recheck=false
  10820. ac_cs_silent=false
  10821. SHELL=\${CONFIG_SHELL-$SHELL}
  10822. export SHELL
  10823. _ASEOF
  10824. cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
  10825. ## -------------------- ##
  10826. ## M4sh Initialization. ##
  10827. ## -------------------- ##
  10828. # Be more Bourne compatible
  10829. DUALCASE=1; export DUALCASE # for MKS sh
  10830. if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
  10831. emulate sh
  10832. NULLCMD=:
  10833. # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
  10834. # is contrary to our usage. Disable this feature.
  10835. alias -g '${1+"$@"}'='"$@"'
  10836. setopt NO_GLOB_SUBST
  10837. else
  10838. case `(set -o) 2>/dev/null` in #(
  10839. *posix*) :
  10840. set -o posix ;; #(
  10841. *) :
  10842. ;;
  10843. esac
  10844. fi
  10845. as_nl='
  10846. '
  10847. export as_nl
  10848. # Printing a long string crashes Solaris 7 /usr/bin/printf.
  10849. as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
  10850. as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
  10851. as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
  10852. # Prefer a ksh shell builtin over an external printf program on Solaris,
  10853. # but without wasting forks for bash or zsh.
  10854. if test -z "$BASH_VERSION$ZSH_VERSION" \
  10855. && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
  10856. as_echo='print -r --'
  10857. as_echo_n='print -rn --'
  10858. elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
  10859. as_echo='printf %s\n'
  10860. as_echo_n='printf %s'
  10861. else
  10862. if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
  10863. as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
  10864. as_echo_n='/usr/ucb/echo -n'
  10865. else
  10866. as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
  10867. as_echo_n_body='eval
  10868. arg=$1;
  10869. case $arg in #(
  10870. *"$as_nl"*)
  10871. expr "X$arg" : "X\\(.*\\)$as_nl";
  10872. arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
  10873. esac;
  10874. expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
  10875. '
  10876. export as_echo_n_body
  10877. as_echo_n='sh -c $as_echo_n_body as_echo'
  10878. fi
  10879. export as_echo_body
  10880. as_echo='sh -c $as_echo_body as_echo'
  10881. fi
  10882. # The user is always right.
  10883. if test "${PATH_SEPARATOR+set}" != set; then
  10884. PATH_SEPARATOR=:
  10885. (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
  10886. (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
  10887. PATH_SEPARATOR=';'
  10888. }
  10889. fi
  10890. # IFS
  10891. # We need space, tab and new line, in precisely that order. Quoting is
  10892. # there to prevent editors from complaining about space-tab.
  10893. # (If _AS_PATH_WALK were called with IFS unset, it would disable word
  10894. # splitting by setting IFS to empty value.)
  10895. IFS=" "" $as_nl"
  10896. # Find who we are. Look in the path if we contain no directory separator.
  10897. as_myself=
  10898. case $0 in #((
  10899. *[\\/]* ) as_myself=$0 ;;
  10900. *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  10901. for as_dir in $PATH
  10902. do
  10903. IFS=$as_save_IFS
  10904. test -z "$as_dir" && as_dir=.
  10905. test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
  10906. done
  10907. IFS=$as_save_IFS
  10908. ;;
  10909. esac
  10910. # We did not find ourselves, most probably we were run as `sh COMMAND'
  10911. # in which case we are not to be found in the path.
  10912. if test "x$as_myself" = x; then
  10913. as_myself=$0
  10914. fi
  10915. if test ! -f "$as_myself"; then
  10916. $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
  10917. exit 1
  10918. fi
  10919. # Unset variables that we do not need and which cause bugs (e.g. in
  10920. # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
  10921. # suppresses any "Segmentation fault" message there. '((' could
  10922. # trigger a bug in pdksh 5.2.14.
  10923. for as_var in BASH_ENV ENV MAIL MAILPATH
  10924. do eval test x\${$as_var+set} = xset \
  10925. && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
  10926. done
  10927. PS1='$ '
  10928. PS2='> '
  10929. PS4='+ '
  10930. # NLS nuisances.
  10931. LC_ALL=C
  10932. export LC_ALL
  10933. LANGUAGE=C
  10934. export LANGUAGE
  10935. # CDPATH.
  10936. (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
  10937. # as_fn_error STATUS ERROR [LINENO LOG_FD]
  10938. # ----------------------------------------
  10939. # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
  10940. # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
  10941. # script with STATUS, using 1 if that was 0.
  10942. as_fn_error ()
  10943. {
  10944. as_status=$1; test $as_status -eq 0 && as_status=1
  10945. if test "$4"; then
  10946. as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  10947. $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
  10948. fi
  10949. $as_echo "$as_me: error: $2" >&2
  10950. as_fn_exit $as_status
  10951. } # as_fn_error
  10952. # as_fn_set_status STATUS
  10953. # -----------------------
  10954. # Set $? to STATUS, without forking.
  10955. as_fn_set_status ()
  10956. {
  10957. return $1
  10958. } # as_fn_set_status
  10959. # as_fn_exit STATUS
  10960. # -----------------
  10961. # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
  10962. as_fn_exit ()
  10963. {
  10964. set +e
  10965. as_fn_set_status $1
  10966. exit $1
  10967. } # as_fn_exit
  10968. # as_fn_unset VAR
  10969. # ---------------
  10970. # Portably unset VAR.
  10971. as_fn_unset ()
  10972. {
  10973. { eval $1=; unset $1;}
  10974. }
  10975. as_unset=as_fn_unset
  10976. # as_fn_append VAR VALUE
  10977. # ----------------------
  10978. # Append the text in VALUE to the end of the definition contained in VAR. Take
  10979. # advantage of any shell optimizations that allow amortized linear growth over
  10980. # repeated appends, instead of the typical quadratic growth present in naive
  10981. # implementations.
  10982. if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
  10983. eval 'as_fn_append ()
  10984. {
  10985. eval $1+=\$2
  10986. }'
  10987. else
  10988. as_fn_append ()
  10989. {
  10990. eval $1=\$$1\$2
  10991. }
  10992. fi # as_fn_append
  10993. # as_fn_arith ARG...
  10994. # ------------------
  10995. # Perform arithmetic evaluation on the ARGs, and store the result in the
  10996. # global $as_val. Take advantage of shells that can avoid forks. The arguments
  10997. # must be portable across $(()) and expr.
  10998. if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
  10999. eval 'as_fn_arith ()
  11000. {
  11001. as_val=$(( $* ))
  11002. }'
  11003. else
  11004. as_fn_arith ()
  11005. {
  11006. as_val=`expr "$@" || test $? -eq 1`
  11007. }
  11008. fi # as_fn_arith
  11009. if expr a : '\(a\)' >/dev/null 2>&1 &&
  11010. test "X`expr 00001 : '.*\(...\)'`" = X001; then
  11011. as_expr=expr
  11012. else
  11013. as_expr=false
  11014. fi
  11015. if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
  11016. as_basename=basename
  11017. else
  11018. as_basename=false
  11019. fi
  11020. if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
  11021. as_dirname=dirname
  11022. else
  11023. as_dirname=false
  11024. fi
  11025. as_me=`$as_basename -- "$0" ||
  11026. $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
  11027. X"$0" : 'X\(//\)$' \| \
  11028. X"$0" : 'X\(/\)' \| . 2>/dev/null ||
  11029. $as_echo X/"$0" |
  11030. sed '/^.*\/\([^/][^/]*\)\/*$/{
  11031. s//\1/
  11032. q
  11033. }
  11034. /^X\/\(\/\/\)$/{
  11035. s//\1/
  11036. q
  11037. }
  11038. /^X\/\(\/\).*/{
  11039. s//\1/
  11040. q
  11041. }
  11042. s/.*/./; q'`
  11043. # Avoid depending upon Character Ranges.
  11044. as_cr_letters='abcdefghijklmnopqrstuvwxyz'
  11045. as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
  11046. as_cr_Letters=$as_cr_letters$as_cr_LETTERS
  11047. as_cr_digits='0123456789'
  11048. as_cr_alnum=$as_cr_Letters$as_cr_digits
  11049. ECHO_C= ECHO_N= ECHO_T=
  11050. case `echo -n x` in #(((((
  11051. -n*)
  11052. case `echo 'xy\c'` in
  11053. *c*) ECHO_T=' ';; # ECHO_T is single tab character.
  11054. xy) ECHO_C='\c';;
  11055. *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
  11056. ECHO_T=' ';;
  11057. esac;;
  11058. *)
  11059. ECHO_N='-n';;
  11060. esac
  11061. rm -f conf$$ conf$$.exe conf$$.file
  11062. if test -d conf$$.dir; then
  11063. rm -f conf$$.dir/conf$$.file
  11064. else
  11065. rm -f conf$$.dir
  11066. mkdir conf$$.dir 2>/dev/null
  11067. fi
  11068. if (echo >conf$$.file) 2>/dev/null; then
  11069. if ln -s conf$$.file conf$$ 2>/dev/null; then
  11070. as_ln_s='ln -s'
  11071. # ... but there are two gotchas:
  11072. # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
  11073. # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
  11074. # In both cases, we have to default to `cp -pR'.
  11075. ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
  11076. as_ln_s='cp -pR'
  11077. elif ln conf$$.file conf$$ 2>/dev/null; then
  11078. as_ln_s=ln
  11079. else
  11080. as_ln_s='cp -pR'
  11081. fi
  11082. else
  11083. as_ln_s='cp -pR'
  11084. fi
  11085. rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
  11086. rmdir conf$$.dir 2>/dev/null
  11087. # as_fn_mkdir_p
  11088. # -------------
  11089. # Create "$as_dir" as a directory, including parents if necessary.
  11090. as_fn_mkdir_p ()
  11091. {
  11092. case $as_dir in #(
  11093. -*) as_dir=./$as_dir;;
  11094. esac
  11095. test -d "$as_dir" || eval $as_mkdir_p || {
  11096. as_dirs=
  11097. while :; do
  11098. case $as_dir in #(
  11099. *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
  11100. *) as_qdir=$as_dir;;
  11101. esac
  11102. as_dirs="'$as_qdir' $as_dirs"
  11103. as_dir=`$as_dirname -- "$as_dir" ||
  11104. $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  11105. X"$as_dir" : 'X\(//\)[^/]' \| \
  11106. X"$as_dir" : 'X\(//\)$' \| \
  11107. X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
  11108. $as_echo X"$as_dir" |
  11109. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  11110. s//\1/
  11111. q
  11112. }
  11113. /^X\(\/\/\)[^/].*/{
  11114. s//\1/
  11115. q
  11116. }
  11117. /^X\(\/\/\)$/{
  11118. s//\1/
  11119. q
  11120. }
  11121. /^X\(\/\).*/{
  11122. s//\1/
  11123. q
  11124. }
  11125. s/.*/./; q'`
  11126. test -d "$as_dir" && break
  11127. done
  11128. test -z "$as_dirs" || eval "mkdir $as_dirs"
  11129. } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
  11130. } # as_fn_mkdir_p
  11131. if mkdir -p . 2>/dev/null; then
  11132. as_mkdir_p='mkdir -p "$as_dir"'
  11133. else
  11134. test -d ./-p && rmdir ./-p
  11135. as_mkdir_p=false
  11136. fi
  11137. # as_fn_executable_p FILE
  11138. # -----------------------
  11139. # Test if FILE is an executable regular file.
  11140. as_fn_executable_p ()
  11141. {
  11142. test -f "$1" && test -x "$1"
  11143. } # as_fn_executable_p
  11144. as_test_x='test -x'
  11145. as_executable_p=as_fn_executable_p
  11146. # Sed expression to map a string onto a valid CPP name.
  11147. as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
  11148. # Sed expression to map a string onto a valid variable name.
  11149. as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
  11150. exec 6>&1
  11151. ## ----------------------------------- ##
  11152. ## Main body of $CONFIG_STATUS script. ##
  11153. ## ----------------------------------- ##
  11154. _ASEOF
  11155. test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
  11156. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  11157. # Save the log message, to keep $0 and so on meaningful, and to
  11158. # report actual input values of CONFIG_FILES etc. instead of their
  11159. # values after options handling.
  11160. ac_log="
  11161. This file was extended by jansson $as_me 2.6, which was
  11162. generated by GNU Autoconf 2.69. Invocation command line was
  11163. CONFIG_FILES = $CONFIG_FILES
  11164. CONFIG_HEADERS = $CONFIG_HEADERS
  11165. CONFIG_LINKS = $CONFIG_LINKS
  11166. CONFIG_COMMANDS = $CONFIG_COMMANDS
  11167. $ $0 $@
  11168. on `(hostname || uname -n) 2>/dev/null | sed 1q`
  11169. "
  11170. _ACEOF
  11171. case $ac_config_files in *"
  11172. "*) set x $ac_config_files; shift; ac_config_files=$*;;
  11173. esac
  11174. case $ac_config_headers in *"
  11175. "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
  11176. esac
  11177. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  11178. # Files that config.status was made for.
  11179. config_files="$ac_config_files"
  11180. config_headers="$ac_config_headers"
  11181. config_commands="$ac_config_commands"
  11182. _ACEOF
  11183. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  11184. ac_cs_usage="\
  11185. \`$as_me' instantiates files and other configuration actions
  11186. from templates according to the current configuration. Unless the files
  11187. and actions are specified as TAGs, all are instantiated by default.
  11188. Usage: $0 [OPTION]... [TAG]...
  11189. -h, --help print this help, then exit
  11190. -V, --version print version number and configuration settings, then exit
  11191. --config print configuration, then exit
  11192. -q, --quiet, --silent
  11193. do not print progress messages
  11194. -d, --debug don't remove temporary files
  11195. --recheck update $as_me by reconfiguring in the same conditions
  11196. --file=FILE[:TEMPLATE]
  11197. instantiate the configuration file FILE
  11198. --header=FILE[:TEMPLATE]
  11199. instantiate the configuration header FILE
  11200. Configuration files:
  11201. $config_files
  11202. Configuration headers:
  11203. $config_headers
  11204. Configuration commands:
  11205. $config_commands
  11206. Report bugs to <petri@digip.org>."
  11207. _ACEOF
  11208. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  11209. ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
  11210. ac_cs_version="\\
  11211. jansson config.status 2.6
  11212. configured by $0, generated by GNU Autoconf 2.69,
  11213. with options \\"\$ac_cs_config\\"
  11214. Copyright (C) 2012 Free Software Foundation, Inc.
  11215. This config.status script is free software; the Free Software Foundation
  11216. gives unlimited permission to copy, distribute and modify it."
  11217. ac_pwd='$ac_pwd'
  11218. srcdir='$srcdir'
  11219. INSTALL='$INSTALL'
  11220. MKDIR_P='$MKDIR_P'
  11221. AWK='$AWK'
  11222. test -n "\$AWK" || AWK=awk
  11223. _ACEOF
  11224. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  11225. # The default lists apply if the user does not specify any file.
  11226. ac_need_defaults=:
  11227. while test $# != 0
  11228. do
  11229. case $1 in
  11230. --*=?*)
  11231. ac_option=`expr "X$1" : 'X\([^=]*\)='`
  11232. ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
  11233. ac_shift=:
  11234. ;;
  11235. --*=)
  11236. ac_option=`expr "X$1" : 'X\([^=]*\)='`
  11237. ac_optarg=
  11238. ac_shift=:
  11239. ;;
  11240. *)
  11241. ac_option=$1
  11242. ac_optarg=$2
  11243. ac_shift=shift
  11244. ;;
  11245. esac
  11246. case $ac_option in
  11247. # Handling of the options.
  11248. -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
  11249. ac_cs_recheck=: ;;
  11250. --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
  11251. $as_echo "$ac_cs_version"; exit ;;
  11252. --config | --confi | --conf | --con | --co | --c )
  11253. $as_echo "$ac_cs_config"; exit ;;
  11254. --debug | --debu | --deb | --de | --d | -d )
  11255. debug=: ;;
  11256. --file | --fil | --fi | --f )
  11257. $ac_shift
  11258. case $ac_optarg in
  11259. *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
  11260. '') as_fn_error $? "missing file argument" ;;
  11261. esac
  11262. as_fn_append CONFIG_FILES " '$ac_optarg'"
  11263. ac_need_defaults=false;;
  11264. --header | --heade | --head | --hea )
  11265. $ac_shift
  11266. case $ac_optarg in
  11267. *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
  11268. esac
  11269. as_fn_append CONFIG_HEADERS " '$ac_optarg'"
  11270. ac_need_defaults=false;;
  11271. --he | --h)
  11272. # Conflict between --help and --header
  11273. as_fn_error $? "ambiguous option: \`$1'
  11274. Try \`$0 --help' for more information.";;
  11275. --help | --hel | -h )
  11276. $as_echo "$ac_cs_usage"; exit ;;
  11277. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  11278. | -silent | --silent | --silen | --sile | --sil | --si | --s)
  11279. ac_cs_silent=: ;;
  11280. # This is an error.
  11281. -*) as_fn_error $? "unrecognized option: \`$1'
  11282. Try \`$0 --help' for more information." ;;
  11283. *) as_fn_append ac_config_targets " $1"
  11284. ac_need_defaults=false ;;
  11285. esac
  11286. shift
  11287. done
  11288. ac_configure_extra_args=
  11289. if $ac_cs_silent; then
  11290. exec 6>/dev/null
  11291. ac_configure_extra_args="$ac_configure_extra_args --silent"
  11292. fi
  11293. _ACEOF
  11294. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  11295. if \$ac_cs_recheck; then
  11296. set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
  11297. shift
  11298. \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
  11299. CONFIG_SHELL='$SHELL'
  11300. export CONFIG_SHELL
  11301. exec "\$@"
  11302. fi
  11303. _ACEOF
  11304. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  11305. exec 5>>config.log
  11306. {
  11307. echo
  11308. sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
  11309. ## Running $as_me. ##
  11310. _ASBOX
  11311. $as_echo "$ac_log"
  11312. } >&5
  11313. _ACEOF
  11314. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  11315. #
  11316. # INIT-COMMANDS
  11317. #
  11318. AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
  11319. # The HP-UX ksh and POSIX shell print the target directory to stdout
  11320. # if CDPATH is set.
  11321. (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
  11322. sed_quote_subst='$sed_quote_subst'
  11323. double_quote_subst='$double_quote_subst'
  11324. delay_variable_subst='$delay_variable_subst'
  11325. macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
  11326. macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
  11327. enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
  11328. enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
  11329. pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
  11330. enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
  11331. shared_archive_member_spec='`$ECHO "$shared_archive_member_spec" | $SED "$delay_single_quote_subst"`'
  11332. SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
  11333. ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
  11334. PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
  11335. host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
  11336. host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
  11337. host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
  11338. build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
  11339. build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
  11340. build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
  11341. SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
  11342. Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
  11343. GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
  11344. EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
  11345. FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
  11346. LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
  11347. NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
  11348. LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
  11349. max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
  11350. ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
  11351. exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
  11352. lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
  11353. lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
  11354. lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
  11355. lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
  11356. lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
  11357. reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
  11358. reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
  11359. OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
  11360. deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
  11361. file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
  11362. file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
  11363. want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
  11364. DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
  11365. sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
  11366. AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
  11367. AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
  11368. archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
  11369. STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
  11370. RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
  11371. old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
  11372. old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
  11373. old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
  11374. lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
  11375. CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
  11376. CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
  11377. compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
  11378. GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
  11379. lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
  11380. lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
  11381. lt_cv_sys_global_symbol_to_import='`$ECHO "$lt_cv_sys_global_symbol_to_import" | $SED "$delay_single_quote_subst"`'
  11382. lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
  11383. 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"`'
  11384. lt_cv_nm_interface='`$ECHO "$lt_cv_nm_interface" | $SED "$delay_single_quote_subst"`'
  11385. nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
  11386. lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
  11387. lt_cv_truncate_bin='`$ECHO "$lt_cv_truncate_bin" | $SED "$delay_single_quote_subst"`'
  11388. objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
  11389. MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
  11390. lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
  11391. lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
  11392. lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
  11393. lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
  11394. lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
  11395. need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
  11396. MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
  11397. DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
  11398. NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
  11399. LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
  11400. OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
  11401. OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
  11402. libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
  11403. shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
  11404. extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
  11405. archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
  11406. enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
  11407. export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
  11408. whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
  11409. compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
  11410. old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
  11411. old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
  11412. archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
  11413. archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
  11414. module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
  11415. module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
  11416. with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
  11417. allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
  11418. no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
  11419. hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
  11420. hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
  11421. hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
  11422. hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
  11423. hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
  11424. hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
  11425. hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
  11426. inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
  11427. link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
  11428. always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
  11429. export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
  11430. exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
  11431. include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
  11432. prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
  11433. postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
  11434. file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
  11435. variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
  11436. need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
  11437. need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
  11438. version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
  11439. runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
  11440. shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
  11441. shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
  11442. libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
  11443. library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
  11444. soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
  11445. install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
  11446. postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
  11447. postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
  11448. finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
  11449. finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
  11450. hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
  11451. sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
  11452. configure_time_dlsearch_path='`$ECHO "$configure_time_dlsearch_path" | $SED "$delay_single_quote_subst"`'
  11453. configure_time_lt_sys_library_path='`$ECHO "$configure_time_lt_sys_library_path" | $SED "$delay_single_quote_subst"`'
  11454. hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
  11455. enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
  11456. enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
  11457. enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
  11458. old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
  11459. striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
  11460. LTCC='$LTCC'
  11461. LTCFLAGS='$LTCFLAGS'
  11462. compiler='$compiler_DEFAULT'
  11463. # A function that is used when there is no print builtin or printf.
  11464. func_fallback_echo ()
  11465. {
  11466. eval 'cat <<_LTECHO_EOF
  11467. \$1
  11468. _LTECHO_EOF'
  11469. }
  11470. # Quote evaled strings.
  11471. for var in SHELL \
  11472. ECHO \
  11473. PATH_SEPARATOR \
  11474. SED \
  11475. GREP \
  11476. EGREP \
  11477. FGREP \
  11478. LD \
  11479. NM \
  11480. LN_S \
  11481. lt_SP2NL \
  11482. lt_NL2SP \
  11483. reload_flag \
  11484. OBJDUMP \
  11485. deplibs_check_method \
  11486. file_magic_cmd \
  11487. file_magic_glob \
  11488. want_nocaseglob \
  11489. DLLTOOL \
  11490. sharedlib_from_linklib_cmd \
  11491. AR \
  11492. AR_FLAGS \
  11493. archiver_list_spec \
  11494. STRIP \
  11495. RANLIB \
  11496. CC \
  11497. CFLAGS \
  11498. compiler \
  11499. lt_cv_sys_global_symbol_pipe \
  11500. lt_cv_sys_global_symbol_to_cdecl \
  11501. lt_cv_sys_global_symbol_to_import \
  11502. lt_cv_sys_global_symbol_to_c_name_address \
  11503. lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
  11504. lt_cv_nm_interface \
  11505. nm_file_list_spec \
  11506. lt_cv_truncate_bin \
  11507. lt_prog_compiler_no_builtin_flag \
  11508. lt_prog_compiler_pic \
  11509. lt_prog_compiler_wl \
  11510. lt_prog_compiler_static \
  11511. lt_cv_prog_compiler_c_o \
  11512. need_locks \
  11513. MANIFEST_TOOL \
  11514. DSYMUTIL \
  11515. NMEDIT \
  11516. LIPO \
  11517. OTOOL \
  11518. OTOOL64 \
  11519. shrext_cmds \
  11520. export_dynamic_flag_spec \
  11521. whole_archive_flag_spec \
  11522. compiler_needs_object \
  11523. with_gnu_ld \
  11524. allow_undefined_flag \
  11525. no_undefined_flag \
  11526. hardcode_libdir_flag_spec \
  11527. hardcode_libdir_separator \
  11528. exclude_expsyms \
  11529. include_expsyms \
  11530. file_list_spec \
  11531. variables_saved_for_relink \
  11532. libname_spec \
  11533. library_names_spec \
  11534. soname_spec \
  11535. install_override_mode \
  11536. finish_eval \
  11537. old_striplib \
  11538. striplib; do
  11539. case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
  11540. *[\\\\\\\`\\"\\\$]*)
  11541. eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
  11542. ;;
  11543. *)
  11544. eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
  11545. ;;
  11546. esac
  11547. done
  11548. # Double-quote double-evaled strings.
  11549. for var in reload_cmds \
  11550. old_postinstall_cmds \
  11551. old_postuninstall_cmds \
  11552. old_archive_cmds \
  11553. extract_expsyms_cmds \
  11554. old_archive_from_new_cmds \
  11555. old_archive_from_expsyms_cmds \
  11556. archive_cmds \
  11557. archive_expsym_cmds \
  11558. module_cmds \
  11559. module_expsym_cmds \
  11560. export_symbols_cmds \
  11561. prelink_cmds \
  11562. postlink_cmds \
  11563. postinstall_cmds \
  11564. postuninstall_cmds \
  11565. finish_cmds \
  11566. sys_lib_search_path_spec \
  11567. configure_time_dlsearch_path \
  11568. configure_time_lt_sys_library_path; do
  11569. case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
  11570. *[\\\\\\\`\\"\\\$]*)
  11571. eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
  11572. ;;
  11573. *)
  11574. eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
  11575. ;;
  11576. esac
  11577. done
  11578. ac_aux_dir='$ac_aux_dir'
  11579. # See if we are running on zsh, and set the options that allow our
  11580. # commands through without removal of \ escapes INIT.
  11581. if test -n "\${ZSH_VERSION+set}"; then
  11582. setopt NO_GLOB_SUBST
  11583. fi
  11584. PACKAGE='$PACKAGE'
  11585. VERSION='$VERSION'
  11586. RM='$RM'
  11587. ofile='$ofile'
  11588. _ACEOF
  11589. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  11590. # Handling of arguments.
  11591. for ac_config_target in $ac_config_targets
  11592. do
  11593. case $ac_config_target in
  11594. "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
  11595. "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
  11596. "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
  11597. "jansson.pc") CONFIG_FILES="$CONFIG_FILES jansson.pc" ;;
  11598. "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
  11599. "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
  11600. "src/jansson_config.h") CONFIG_FILES="$CONFIG_FILES src/jansson_config.h" ;;
  11601. *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
  11602. esac
  11603. done
  11604. # If the user did not use the arguments to specify the items to instantiate,
  11605. # then the envvar interface is used. Set only those that are not.
  11606. # We use the long form for the default assignment because of an extremely
  11607. # bizarre bug on SunOS 4.1.3.
  11608. if $ac_need_defaults; then
  11609. test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
  11610. test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
  11611. test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
  11612. fi
  11613. # Have a temporary directory for convenience. Make it in the build tree
  11614. # simply because there is no reason against having it here, and in addition,
  11615. # creating and moving files from /tmp can sometimes cause problems.
  11616. # Hook for its removal unless debugging.
  11617. # Note that there is a small window in which the directory will not be cleaned:
  11618. # after its creation but before its name has been assigned to `$tmp'.
  11619. $debug ||
  11620. {
  11621. tmp= ac_tmp=
  11622. trap 'exit_status=$?
  11623. : "${ac_tmp:=$tmp}"
  11624. { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
  11625. ' 0
  11626. trap 'as_fn_exit 1' 1 2 13 15
  11627. }
  11628. # Create a (secure) tmp directory for tmp files.
  11629. {
  11630. tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
  11631. test -d "$tmp"
  11632. } ||
  11633. {
  11634. tmp=./conf$$-$RANDOM
  11635. (umask 077 && mkdir "$tmp")
  11636. } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
  11637. ac_tmp=$tmp
  11638. # Set up the scripts for CONFIG_FILES section.
  11639. # No need to generate them if there are no CONFIG_FILES.
  11640. # This happens for instance with `./config.status config.h'.
  11641. if test -n "$CONFIG_FILES"; then
  11642. ac_cr=`echo X | tr X '\015'`
  11643. # On cygwin, bash can eat \r inside `` if the user requested igncr.
  11644. # But we know of no other shell where ac_cr would be empty at this
  11645. # point, so we can use a bashism as a fallback.
  11646. if test "x$ac_cr" = x; then
  11647. eval ac_cr=\$\'\\r\'
  11648. fi
  11649. ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
  11650. if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
  11651. ac_cs_awk_cr='\\r'
  11652. else
  11653. ac_cs_awk_cr=$ac_cr
  11654. fi
  11655. echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
  11656. _ACEOF
  11657. {
  11658. echo "cat >conf$$subs.awk <<_ACEOF" &&
  11659. echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
  11660. echo "_ACEOF"
  11661. } >conf$$subs.sh ||
  11662. as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
  11663. ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
  11664. ac_delim='%!_!# '
  11665. for ac_last_try in false false false false false :; do
  11666. . ./conf$$subs.sh ||
  11667. as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
  11668. ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
  11669. if test $ac_delim_n = $ac_delim_num; then
  11670. break
  11671. elif $ac_last_try; then
  11672. as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
  11673. else
  11674. ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
  11675. fi
  11676. done
  11677. rm -f conf$$subs.sh
  11678. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  11679. cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
  11680. _ACEOF
  11681. sed -n '
  11682. h
  11683. s/^/S["/; s/!.*/"]=/
  11684. p
  11685. g
  11686. s/^[^!]*!//
  11687. :repl
  11688. t repl
  11689. s/'"$ac_delim"'$//
  11690. t delim
  11691. :nl
  11692. h
  11693. s/\(.\{148\}\)..*/\1/
  11694. t more1
  11695. s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
  11696. p
  11697. n
  11698. b repl
  11699. :more1
  11700. s/["\\]/\\&/g; s/^/"/; s/$/"\\/
  11701. p
  11702. g
  11703. s/.\{148\}//
  11704. t nl
  11705. :delim
  11706. h
  11707. s/\(.\{148\}\)..*/\1/
  11708. t more2
  11709. s/["\\]/\\&/g; s/^/"/; s/$/"/
  11710. p
  11711. b
  11712. :more2
  11713. s/["\\]/\\&/g; s/^/"/; s/$/"\\/
  11714. p
  11715. g
  11716. s/.\{148\}//
  11717. t delim
  11718. ' <conf$$subs.awk | sed '
  11719. /^[^""]/{
  11720. N
  11721. s/\n//
  11722. }
  11723. ' >>$CONFIG_STATUS || ac_write_fail=1
  11724. rm -f conf$$subs.awk
  11725. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  11726. _ACAWK
  11727. cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
  11728. for (key in S) S_is_set[key] = 1
  11729. FS = ""
  11730. }
  11731. {
  11732. line = $ 0
  11733. nfields = split(line, field, "@")
  11734. substed = 0
  11735. len = length(field[1])
  11736. for (i = 2; i < nfields; i++) {
  11737. key = field[i]
  11738. keylen = length(key)
  11739. if (S_is_set[key]) {
  11740. value = S[key]
  11741. line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
  11742. len += length(value) + length(field[++i])
  11743. substed = 1
  11744. } else
  11745. len += 1 + keylen
  11746. }
  11747. print line
  11748. }
  11749. _ACAWK
  11750. _ACEOF
  11751. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  11752. if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
  11753. sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
  11754. else
  11755. cat
  11756. fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
  11757. || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
  11758. _ACEOF
  11759. # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
  11760. # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
  11761. # trailing colons and then remove the whole line if VPATH becomes empty
  11762. # (actually we leave an empty line to preserve line numbers).
  11763. if test "x$srcdir" = x.; then
  11764. ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
  11765. h
  11766. s///
  11767. s/^/:/
  11768. s/[ ]*$/:/
  11769. s/:\$(srcdir):/:/g
  11770. s/:\${srcdir}:/:/g
  11771. s/:@srcdir@:/:/g
  11772. s/^:*//
  11773. s/:*$//
  11774. x
  11775. s/\(=[ ]*\).*/\1/
  11776. G
  11777. s/\n//
  11778. s/^[^=]*=[ ]*$//
  11779. }'
  11780. fi
  11781. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  11782. fi # test -n "$CONFIG_FILES"
  11783. # Set up the scripts for CONFIG_HEADERS section.
  11784. # No need to generate them if there are no CONFIG_HEADERS.
  11785. # This happens for instance with `./config.status Makefile'.
  11786. if test -n "$CONFIG_HEADERS"; then
  11787. cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
  11788. BEGIN {
  11789. _ACEOF
  11790. # Transform confdefs.h into an awk script `defines.awk', embedded as
  11791. # here-document in config.status, that substitutes the proper values into
  11792. # config.h.in to produce config.h.
  11793. # Create a delimiter string that does not exist in confdefs.h, to ease
  11794. # handling of long lines.
  11795. ac_delim='%!_!# '
  11796. for ac_last_try in false false :; do
  11797. ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
  11798. if test -z "$ac_tt"; then
  11799. break
  11800. elif $ac_last_try; then
  11801. as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
  11802. else
  11803. ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
  11804. fi
  11805. done
  11806. # For the awk script, D is an array of macro values keyed by name,
  11807. # likewise P contains macro parameters if any. Preserve backslash
  11808. # newline sequences.
  11809. ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
  11810. sed -n '
  11811. s/.\{148\}/&'"$ac_delim"'/g
  11812. t rset
  11813. :rset
  11814. s/^[ ]*#[ ]*define[ ][ ]*/ /
  11815. t def
  11816. d
  11817. :def
  11818. s/\\$//
  11819. t bsnl
  11820. s/["\\]/\\&/g
  11821. s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
  11822. D["\1"]=" \3"/p
  11823. s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
  11824. d
  11825. :bsnl
  11826. s/["\\]/\\&/g
  11827. s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
  11828. D["\1"]=" \3\\\\\\n"\\/p
  11829. t cont
  11830. s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
  11831. t cont
  11832. d
  11833. :cont
  11834. n
  11835. s/.\{148\}/&'"$ac_delim"'/g
  11836. t clear
  11837. :clear
  11838. s/\\$//
  11839. t bsnlc
  11840. s/["\\]/\\&/g; s/^/"/; s/$/"/p
  11841. d
  11842. :bsnlc
  11843. s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
  11844. b cont
  11845. ' <confdefs.h | sed '
  11846. s/'"$ac_delim"'/"\\\
  11847. "/g' >>$CONFIG_STATUS || ac_write_fail=1
  11848. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  11849. for (key in D) D_is_set[key] = 1
  11850. FS = ""
  11851. }
  11852. /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
  11853. line = \$ 0
  11854. split(line, arg, " ")
  11855. if (arg[1] == "#") {
  11856. defundef = arg[2]
  11857. mac1 = arg[3]
  11858. } else {
  11859. defundef = substr(arg[1], 2)
  11860. mac1 = arg[2]
  11861. }
  11862. split(mac1, mac2, "(") #)
  11863. macro = mac2[1]
  11864. prefix = substr(line, 1, index(line, defundef) - 1)
  11865. if (D_is_set[macro]) {
  11866. # Preserve the white space surrounding the "#".
  11867. print prefix "define", macro P[macro] D[macro]
  11868. next
  11869. } else {
  11870. # Replace #undef with comments. This is necessary, for example,
  11871. # in the case of _POSIX_SOURCE, which is predefined and required
  11872. # on some systems where configure will not decide to define it.
  11873. if (defundef == "undef") {
  11874. print "/*", prefix defundef, macro, "*/"
  11875. next
  11876. }
  11877. }
  11878. }
  11879. { print }
  11880. _ACAWK
  11881. _ACEOF
  11882. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  11883. as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
  11884. fi # test -n "$CONFIG_HEADERS"
  11885. eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
  11886. shift
  11887. for ac_tag
  11888. do
  11889. case $ac_tag in
  11890. :[FHLC]) ac_mode=$ac_tag; continue;;
  11891. esac
  11892. case $ac_mode$ac_tag in
  11893. :[FHL]*:*);;
  11894. :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
  11895. :[FH]-) ac_tag=-:-;;
  11896. :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
  11897. esac
  11898. ac_save_IFS=$IFS
  11899. IFS=:
  11900. set x $ac_tag
  11901. IFS=$ac_save_IFS
  11902. shift
  11903. ac_file=$1
  11904. shift
  11905. case $ac_mode in
  11906. :L) ac_source=$1;;
  11907. :[FH])
  11908. ac_file_inputs=
  11909. for ac_f
  11910. do
  11911. case $ac_f in
  11912. -) ac_f="$ac_tmp/stdin";;
  11913. *) # Look for the file first in the build tree, then in the source tree
  11914. # (if the path is not absolute). The absolute path cannot be DOS-style,
  11915. # because $ac_f cannot contain `:'.
  11916. test -f "$ac_f" ||
  11917. case $ac_f in
  11918. [\\/$]*) false;;
  11919. *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
  11920. esac ||
  11921. as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
  11922. esac
  11923. case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
  11924. as_fn_append ac_file_inputs " '$ac_f'"
  11925. done
  11926. # Let's still pretend it is `configure' which instantiates (i.e., don't
  11927. # use $as_me), people would be surprised to read:
  11928. # /* config.h. Generated by config.status. */
  11929. configure_input='Generated from '`
  11930. $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
  11931. `' by configure.'
  11932. if test x"$ac_file" != x-; then
  11933. configure_input="$ac_file. $configure_input"
  11934. { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
  11935. $as_echo "$as_me: creating $ac_file" >&6;}
  11936. fi
  11937. # Neutralize special characters interpreted by sed in replacement strings.
  11938. case $configure_input in #(
  11939. *\&* | *\|* | *\\* )
  11940. ac_sed_conf_input=`$as_echo "$configure_input" |
  11941. sed 's/[\\\\&|]/\\\\&/g'`;; #(
  11942. *) ac_sed_conf_input=$configure_input;;
  11943. esac
  11944. case $ac_tag in
  11945. *:-:* | *:-) cat >"$ac_tmp/stdin" \
  11946. || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
  11947. esac
  11948. ;;
  11949. esac
  11950. ac_dir=`$as_dirname -- "$ac_file" ||
  11951. $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  11952. X"$ac_file" : 'X\(//\)[^/]' \| \
  11953. X"$ac_file" : 'X\(//\)$' \| \
  11954. X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
  11955. $as_echo X"$ac_file" |
  11956. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  11957. s//\1/
  11958. q
  11959. }
  11960. /^X\(\/\/\)[^/].*/{
  11961. s//\1/
  11962. q
  11963. }
  11964. /^X\(\/\/\)$/{
  11965. s//\1/
  11966. q
  11967. }
  11968. /^X\(\/\).*/{
  11969. s//\1/
  11970. q
  11971. }
  11972. s/.*/./; q'`
  11973. as_dir="$ac_dir"; as_fn_mkdir_p
  11974. ac_builddir=.
  11975. case "$ac_dir" in
  11976. .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
  11977. *)
  11978. ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
  11979. # A ".." for each directory in $ac_dir_suffix.
  11980. ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
  11981. case $ac_top_builddir_sub in
  11982. "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
  11983. *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
  11984. esac ;;
  11985. esac
  11986. ac_abs_top_builddir=$ac_pwd
  11987. ac_abs_builddir=$ac_pwd$ac_dir_suffix
  11988. # for backward compatibility:
  11989. ac_top_builddir=$ac_top_build_prefix
  11990. case $srcdir in
  11991. .) # We are building in place.
  11992. ac_srcdir=.
  11993. ac_top_srcdir=$ac_top_builddir_sub
  11994. ac_abs_top_srcdir=$ac_pwd ;;
  11995. [\\/]* | ?:[\\/]* ) # Absolute name.
  11996. ac_srcdir=$srcdir$ac_dir_suffix;
  11997. ac_top_srcdir=$srcdir
  11998. ac_abs_top_srcdir=$srcdir ;;
  11999. *) # Relative name.
  12000. ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
  12001. ac_top_srcdir=$ac_top_build_prefix$srcdir
  12002. ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
  12003. esac
  12004. ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
  12005. case $ac_mode in
  12006. :F)
  12007. #
  12008. # CONFIG_FILE
  12009. #
  12010. case $INSTALL in
  12011. [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
  12012. *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
  12013. esac
  12014. ac_MKDIR_P=$MKDIR_P
  12015. case $MKDIR_P in
  12016. [\\/$]* | ?:[\\/]* ) ;;
  12017. */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
  12018. esac
  12019. _ACEOF
  12020. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  12021. # If the template does not know about datarootdir, expand it.
  12022. # FIXME: This hack should be removed a few years after 2.60.
  12023. ac_datarootdir_hack=; ac_datarootdir_seen=
  12024. ac_sed_dataroot='
  12025. /datarootdir/ {
  12026. p
  12027. q
  12028. }
  12029. /@datadir@/p
  12030. /@docdir@/p
  12031. /@infodir@/p
  12032. /@localedir@/p
  12033. /@mandir@/p'
  12034. case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
  12035. *datarootdir*) ac_datarootdir_seen=yes;;
  12036. *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
  12037. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
  12038. $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
  12039. _ACEOF
  12040. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  12041. ac_datarootdir_hack='
  12042. s&@datadir@&$datadir&g
  12043. s&@docdir@&$docdir&g
  12044. s&@infodir@&$infodir&g
  12045. s&@localedir@&$localedir&g
  12046. s&@mandir@&$mandir&g
  12047. s&\\\${datarootdir}&$datarootdir&g' ;;
  12048. esac
  12049. _ACEOF
  12050. # Neutralize VPATH when `$srcdir' = `.'.
  12051. # Shell code in configure.ac might set extrasub.
  12052. # FIXME: do we really want to maintain this feature?
  12053. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  12054. ac_sed_extra="$ac_vpsub
  12055. $extrasub
  12056. _ACEOF
  12057. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  12058. :t
  12059. /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
  12060. s|@configure_input@|$ac_sed_conf_input|;t t
  12061. s&@top_builddir@&$ac_top_builddir_sub&;t t
  12062. s&@top_build_prefix@&$ac_top_build_prefix&;t t
  12063. s&@srcdir@&$ac_srcdir&;t t
  12064. s&@abs_srcdir@&$ac_abs_srcdir&;t t
  12065. s&@top_srcdir@&$ac_top_srcdir&;t t
  12066. s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
  12067. s&@builddir@&$ac_builddir&;t t
  12068. s&@abs_builddir@&$ac_abs_builddir&;t t
  12069. s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
  12070. s&@INSTALL@&$ac_INSTALL&;t t
  12071. s&@MKDIR_P@&$ac_MKDIR_P&;t t
  12072. $ac_datarootdir_hack
  12073. "
  12074. eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
  12075. >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
  12076. test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
  12077. { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
  12078. { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
  12079. "$ac_tmp/out"`; test -z "$ac_out"; } &&
  12080. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
  12081. which seems to be undefined. Please make sure it is defined" >&5
  12082. $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
  12083. which seems to be undefined. Please make sure it is defined" >&2;}
  12084. rm -f "$ac_tmp/stdin"
  12085. case $ac_file in
  12086. -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
  12087. *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
  12088. esac \
  12089. || as_fn_error $? "could not create $ac_file" "$LINENO" 5
  12090. ;;
  12091. :H)
  12092. #
  12093. # CONFIG_HEADER
  12094. #
  12095. if test x"$ac_file" != x-; then
  12096. {
  12097. $as_echo "/* $configure_input */" \
  12098. && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
  12099. } >"$ac_tmp/config.h" \
  12100. || as_fn_error $? "could not create $ac_file" "$LINENO" 5
  12101. if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
  12102. { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
  12103. $as_echo "$as_me: $ac_file is unchanged" >&6;}
  12104. else
  12105. rm -f "$ac_file"
  12106. mv "$ac_tmp/config.h" "$ac_file" \
  12107. || as_fn_error $? "could not create $ac_file" "$LINENO" 5
  12108. fi
  12109. else
  12110. $as_echo "/* $configure_input */" \
  12111. && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
  12112. || as_fn_error $? "could not create -" "$LINENO" 5
  12113. fi
  12114. # Compute "$ac_file"'s index in $config_headers.
  12115. _am_arg="$ac_file"
  12116. _am_stamp_count=1
  12117. for _am_header in $config_headers :; do
  12118. case $_am_header in
  12119. $_am_arg | $_am_arg:* )
  12120. break ;;
  12121. * )
  12122. _am_stamp_count=`expr $_am_stamp_count + 1` ;;
  12123. esac
  12124. done
  12125. echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
  12126. $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  12127. X"$_am_arg" : 'X\(//\)[^/]' \| \
  12128. X"$_am_arg" : 'X\(//\)$' \| \
  12129. X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
  12130. $as_echo X"$_am_arg" |
  12131. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  12132. s//\1/
  12133. q
  12134. }
  12135. /^X\(\/\/\)[^/].*/{
  12136. s//\1/
  12137. q
  12138. }
  12139. /^X\(\/\/\)$/{
  12140. s//\1/
  12141. q
  12142. }
  12143. /^X\(\/\).*/{
  12144. s//\1/
  12145. q
  12146. }
  12147. s/.*/./; q'`/stamp-h$_am_stamp_count
  12148. ;;
  12149. :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
  12150. $as_echo "$as_me: executing $ac_file commands" >&6;}
  12151. ;;
  12152. esac
  12153. case $ac_file$ac_mode in
  12154. "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
  12155. # Older Autoconf quotes --file arguments for eval, but not when files
  12156. # are listed without --file. Let's play safe and only enable the eval
  12157. # if we detect the quoting.
  12158. case $CONFIG_FILES in
  12159. *\'*) eval set x "$CONFIG_FILES" ;;
  12160. *) set x $CONFIG_FILES ;;
  12161. esac
  12162. shift
  12163. for mf
  12164. do
  12165. # Strip MF so we end up with the name of the file.
  12166. mf=`echo "$mf" | sed -e 's/:.*$//'`
  12167. # Check whether this is an Automake generated Makefile or not.
  12168. # We used to match only the files named 'Makefile.in', but
  12169. # some people rename them; so instead we look at the file content.
  12170. # Grep'ing the first line is not enough: some people post-process
  12171. # each Makefile.in and add a new line on top of each file to say so.
  12172. # Grep'ing the whole file is not good either: AIX grep has a line
  12173. # limit of 2048, but all sed's we know have understand at least 4000.
  12174. if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
  12175. dirpart=`$as_dirname -- "$mf" ||
  12176. $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  12177. X"$mf" : 'X\(//\)[^/]' \| \
  12178. X"$mf" : 'X\(//\)$' \| \
  12179. X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
  12180. $as_echo X"$mf" |
  12181. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  12182. s//\1/
  12183. q
  12184. }
  12185. /^X\(\/\/\)[^/].*/{
  12186. s//\1/
  12187. q
  12188. }
  12189. /^X\(\/\/\)$/{
  12190. s//\1/
  12191. q
  12192. }
  12193. /^X\(\/\).*/{
  12194. s//\1/
  12195. q
  12196. }
  12197. s/.*/./; q'`
  12198. else
  12199. continue
  12200. fi
  12201. # Extract the definition of DEPDIR, am__include, and am__quote
  12202. # from the Makefile without running 'make'.
  12203. DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
  12204. test -z "$DEPDIR" && continue
  12205. am__include=`sed -n 's/^am__include = //p' < "$mf"`
  12206. test -z "$am__include" && continue
  12207. am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
  12208. # Find all dependency output files, they are included files with
  12209. # $(DEPDIR) in their names. We invoke sed twice because it is the
  12210. # simplest approach to changing $(DEPDIR) to its actual value in the
  12211. # expansion.
  12212. for file in `sed -n "
  12213. s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
  12214. sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do
  12215. # Make sure the directory exists.
  12216. test -f "$dirpart/$file" && continue
  12217. fdir=`$as_dirname -- "$file" ||
  12218. $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  12219. X"$file" : 'X\(//\)[^/]' \| \
  12220. X"$file" : 'X\(//\)$' \| \
  12221. X"$file" : 'X\(/\)' \| . 2>/dev/null ||
  12222. $as_echo X"$file" |
  12223. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  12224. s//\1/
  12225. q
  12226. }
  12227. /^X\(\/\/\)[^/].*/{
  12228. s//\1/
  12229. q
  12230. }
  12231. /^X\(\/\/\)$/{
  12232. s//\1/
  12233. q
  12234. }
  12235. /^X\(\/\).*/{
  12236. s//\1/
  12237. q
  12238. }
  12239. s/.*/./; q'`
  12240. as_dir=$dirpart/$fdir; as_fn_mkdir_p
  12241. # echo "creating $dirpart/$file"
  12242. echo '# dummy' > "$dirpart/$file"
  12243. done
  12244. done
  12245. }
  12246. ;;
  12247. "libtool":C)
  12248. # See if we are running on zsh, and set the options that allow our
  12249. # commands through without removal of \ escapes.
  12250. if test -n "${ZSH_VERSION+set}"; then
  12251. setopt NO_GLOB_SUBST
  12252. fi
  12253. cfgfile=${ofile}T
  12254. trap "$RM \"$cfgfile\"; exit 1" 1 2 15
  12255. $RM "$cfgfile"
  12256. cat <<_LT_EOF >> "$cfgfile"
  12257. #! $SHELL
  12258. # Generated automatically by $as_me ($PACKAGE) $VERSION
  12259. # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
  12260. # NOTE: Changes made to this file will be lost: look at ltmain.sh.
  12261. # Provide generalized library-building support services.
  12262. # Written by Gordon Matzigkeit, 1996
  12263. # Copyright (C) 2014 Free Software Foundation, Inc.
  12264. # This is free software; see the source for copying conditions. There is NO
  12265. # warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
  12266. # GNU Libtool is free software; you can redistribute it and/or modify
  12267. # it under the terms of the GNU General Public License as published by
  12268. # the Free Software Foundation; either version 2 of of the License, or
  12269. # (at your option) any later version.
  12270. #
  12271. # As a special exception to the GNU General Public License, if you
  12272. # distribute this file as part of a program or library that is built
  12273. # using GNU Libtool, you may include this file under the same
  12274. # distribution terms that you use for the rest of that program.
  12275. #
  12276. # GNU Libtool is distributed in the hope that it will be useful, but
  12277. # WITHOUT ANY WARRANTY; without even the implied warranty of
  12278. # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  12279. # GNU General Public License for more details.
  12280. #
  12281. # You should have received a copy of the GNU General Public License
  12282. # along with this program. If not, see <http://www.gnu.org/licenses/>.
  12283. # The names of the tagged configurations supported by this script.
  12284. available_tags=''
  12285. # Configured defaults for sys_lib_dlsearch_path munging.
  12286. : \${LT_SYS_LIBRARY_PATH="$configure_time_lt_sys_library_path"}
  12287. # ### BEGIN LIBTOOL CONFIG
  12288. # Which release of libtool.m4 was used?
  12289. macro_version=$macro_version
  12290. macro_revision=$macro_revision
  12291. # Whether or not to build shared libraries.
  12292. build_libtool_libs=$enable_shared
  12293. # Whether or not to build static libraries.
  12294. build_old_libs=$enable_static
  12295. # What type of objects to build.
  12296. pic_mode=$pic_mode
  12297. # Whether or not to optimize for fast installation.
  12298. fast_install=$enable_fast_install
  12299. # Shared archive member basename,for filename based shared library versioning on AIX.
  12300. shared_archive_member_spec=$shared_archive_member_spec
  12301. # Shell to use when invoking shell scripts.
  12302. SHELL=$lt_SHELL
  12303. # An echo program that protects backslashes.
  12304. ECHO=$lt_ECHO
  12305. # The PATH separator for the build system.
  12306. PATH_SEPARATOR=$lt_PATH_SEPARATOR
  12307. # The host system.
  12308. host_alias=$host_alias
  12309. host=$host
  12310. host_os=$host_os
  12311. # The build system.
  12312. build_alias=$build_alias
  12313. build=$build
  12314. build_os=$build_os
  12315. # A sed program that does not truncate output.
  12316. SED=$lt_SED
  12317. # Sed that helps us avoid accidentally triggering echo(1) options like -n.
  12318. Xsed="\$SED -e 1s/^X//"
  12319. # A grep program that handles long lines.
  12320. GREP=$lt_GREP
  12321. # An ERE matcher.
  12322. EGREP=$lt_EGREP
  12323. # A literal string matcher.
  12324. FGREP=$lt_FGREP
  12325. # A BSD- or MS-compatible name lister.
  12326. NM=$lt_NM
  12327. # Whether we need soft or hard links.
  12328. LN_S=$lt_LN_S
  12329. # What is the maximum length of a command?
  12330. max_cmd_len=$max_cmd_len
  12331. # Object file suffix (normally "o").
  12332. objext=$ac_objext
  12333. # Executable file suffix (normally "").
  12334. exeext=$exeext
  12335. # whether the shell understands "unset".
  12336. lt_unset=$lt_unset
  12337. # turn spaces into newlines.
  12338. SP2NL=$lt_lt_SP2NL
  12339. # turn newlines into spaces.
  12340. NL2SP=$lt_lt_NL2SP
  12341. # convert \$build file names to \$host format.
  12342. to_host_file_cmd=$lt_cv_to_host_file_cmd
  12343. # convert \$build files to toolchain format.
  12344. to_tool_file_cmd=$lt_cv_to_tool_file_cmd
  12345. # An object symbol dumper.
  12346. OBJDUMP=$lt_OBJDUMP
  12347. # Method to check whether dependent libraries are shared objects.
  12348. deplibs_check_method=$lt_deplibs_check_method
  12349. # Command to use when deplibs_check_method = "file_magic".
  12350. file_magic_cmd=$lt_file_magic_cmd
  12351. # How to find potential files when deplibs_check_method = "file_magic".
  12352. file_magic_glob=$lt_file_magic_glob
  12353. # Find potential files using nocaseglob when deplibs_check_method = "file_magic".
  12354. want_nocaseglob=$lt_want_nocaseglob
  12355. # DLL creation program.
  12356. DLLTOOL=$lt_DLLTOOL
  12357. # Command to associate shared and link libraries.
  12358. sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
  12359. # The archiver.
  12360. AR=$lt_AR
  12361. # Flags to create an archive.
  12362. AR_FLAGS=$lt_AR_FLAGS
  12363. # How to feed a file listing to the archiver.
  12364. archiver_list_spec=$lt_archiver_list_spec
  12365. # A symbol stripping program.
  12366. STRIP=$lt_STRIP
  12367. # Commands used to install an old-style archive.
  12368. RANLIB=$lt_RANLIB
  12369. old_postinstall_cmds=$lt_old_postinstall_cmds
  12370. old_postuninstall_cmds=$lt_old_postuninstall_cmds
  12371. # Whether to use a lock for old archive extraction.
  12372. lock_old_archive_extraction=$lock_old_archive_extraction
  12373. # A C compiler.
  12374. LTCC=$lt_CC
  12375. # LTCC compiler flags.
  12376. LTCFLAGS=$lt_CFLAGS
  12377. # Take the output of nm and produce a listing of raw symbols and C names.
  12378. global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
  12379. # Transform the output of nm in a proper C declaration.
  12380. global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
  12381. # Transform the output of nm into a list of symbols to manually relocate.
  12382. global_symbol_to_import=$lt_lt_cv_sys_global_symbol_to_import
  12383. # Transform the output of nm in a C name address pair.
  12384. global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
  12385. # Transform the output of nm in a C name address pair when lib prefix is needed.
  12386. global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
  12387. # The name lister interface.
  12388. nm_interface=$lt_lt_cv_nm_interface
  12389. # Specify filename containing input files for \$NM.
  12390. nm_file_list_spec=$lt_nm_file_list_spec
  12391. # The root where to search for dependent libraries,and where our libraries should be installed.
  12392. lt_sysroot=$lt_sysroot
  12393. # Command to truncate a binary pipe.
  12394. lt_truncate_bin=$lt_lt_cv_truncate_bin
  12395. # The name of the directory that contains temporary libtool files.
  12396. objdir=$objdir
  12397. # Used to examine libraries when file_magic_cmd begins with "file".
  12398. MAGIC_CMD=$MAGIC_CMD
  12399. # Must we lock files when doing compilation?
  12400. need_locks=$lt_need_locks
  12401. # Manifest tool.
  12402. MANIFEST_TOOL=$lt_MANIFEST_TOOL
  12403. # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
  12404. DSYMUTIL=$lt_DSYMUTIL
  12405. # Tool to change global to local symbols on Mac OS X.
  12406. NMEDIT=$lt_NMEDIT
  12407. # Tool to manipulate fat objects and archives on Mac OS X.
  12408. LIPO=$lt_LIPO
  12409. # ldd/readelf like tool for Mach-O binaries on Mac OS X.
  12410. OTOOL=$lt_OTOOL
  12411. # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
  12412. OTOOL64=$lt_OTOOL64
  12413. # Old archive suffix (normally "a").
  12414. libext=$libext
  12415. # Shared library suffix (normally ".so").
  12416. shrext_cmds=$lt_shrext_cmds
  12417. # The commands to extract the exported symbol list from a shared archive.
  12418. extract_expsyms_cmds=$lt_extract_expsyms_cmds
  12419. # Variables whose values should be saved in libtool wrapper scripts and
  12420. # restored at link time.
  12421. variables_saved_for_relink=$lt_variables_saved_for_relink
  12422. # Do we need the "lib" prefix for modules?
  12423. need_lib_prefix=$need_lib_prefix
  12424. # Do we need a version for libraries?
  12425. need_version=$need_version
  12426. # Library versioning type.
  12427. version_type=$version_type
  12428. # Shared library runtime path variable.
  12429. runpath_var=$runpath_var
  12430. # Shared library path variable.
  12431. shlibpath_var=$shlibpath_var
  12432. # Is shlibpath searched before the hard-coded library search path?
  12433. shlibpath_overrides_runpath=$shlibpath_overrides_runpath
  12434. # Format of library name prefix.
  12435. libname_spec=$lt_libname_spec
  12436. # List of archive names. First name is the real one, the rest are links.
  12437. # The last name is the one that the linker finds with -lNAME
  12438. library_names_spec=$lt_library_names_spec
  12439. # The coded name of the library, if different from the real name.
  12440. soname_spec=$lt_soname_spec
  12441. # Permission mode override for installation of shared libraries.
  12442. install_override_mode=$lt_install_override_mode
  12443. # Command to use after installation of a shared archive.
  12444. postinstall_cmds=$lt_postinstall_cmds
  12445. # Command to use after uninstallation of a shared archive.
  12446. postuninstall_cmds=$lt_postuninstall_cmds
  12447. # Commands used to finish a libtool library installation in a directory.
  12448. finish_cmds=$lt_finish_cmds
  12449. # As "finish_cmds", except a single script fragment to be evaled but
  12450. # not shown.
  12451. finish_eval=$lt_finish_eval
  12452. # Whether we should hardcode library paths into libraries.
  12453. hardcode_into_libs=$hardcode_into_libs
  12454. # Compile-time system search path for libraries.
  12455. sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
  12456. # Detected run-time system search path for libraries.
  12457. sys_lib_dlsearch_path_spec=$lt_configure_time_dlsearch_path
  12458. # Explicit LT_SYS_LIBRARY_PATH set during ./configure time.
  12459. configure_time_lt_sys_library_path=$lt_configure_time_lt_sys_library_path
  12460. # Whether dlopen is supported.
  12461. dlopen_support=$enable_dlopen
  12462. # Whether dlopen of programs is supported.
  12463. dlopen_self=$enable_dlopen_self
  12464. # Whether dlopen of statically linked programs is supported.
  12465. dlopen_self_static=$enable_dlopen_self_static
  12466. # Commands to strip libraries.
  12467. old_striplib=$lt_old_striplib
  12468. striplib=$lt_striplib
  12469. # The linker used to build libraries.
  12470. LD=$lt_LD
  12471. # How to create reloadable object files.
  12472. reload_flag=$lt_reload_flag
  12473. reload_cmds=$lt_reload_cmds
  12474. # Commands used to build an old-style archive.
  12475. old_archive_cmds=$lt_old_archive_cmds
  12476. # A language specific compiler.
  12477. CC=$lt_compiler
  12478. # Is the compiler the GNU compiler?
  12479. with_gcc=$GCC
  12480. # Compiler flag to turn off builtin functions.
  12481. no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
  12482. # Additional compiler flags for building library objects.
  12483. pic_flag=$lt_lt_prog_compiler_pic
  12484. # How to pass a linker flag through the compiler.
  12485. wl=$lt_lt_prog_compiler_wl
  12486. # Compiler flag to prevent dynamic linking.
  12487. link_static_flag=$lt_lt_prog_compiler_static
  12488. # Does compiler simultaneously support -c and -o options?
  12489. compiler_c_o=$lt_lt_cv_prog_compiler_c_o
  12490. # Whether or not to add -lc for building shared libraries.
  12491. build_libtool_need_lc=$archive_cmds_need_lc
  12492. # Whether or not to disallow shared libs when runtime libs are static.
  12493. allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
  12494. # Compiler flag to allow reflexive dlopens.
  12495. export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
  12496. # Compiler flag to generate shared objects directly from archives.
  12497. whole_archive_flag_spec=$lt_whole_archive_flag_spec
  12498. # Whether the compiler copes with passing no objects directly.
  12499. compiler_needs_object=$lt_compiler_needs_object
  12500. # Create an old-style archive from a shared archive.
  12501. old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
  12502. # Create a temporary old-style archive to link instead of a shared archive.
  12503. old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
  12504. # Commands used to build a shared archive.
  12505. archive_cmds=$lt_archive_cmds
  12506. archive_expsym_cmds=$lt_archive_expsym_cmds
  12507. # Commands used to build a loadable module if different from building
  12508. # a shared archive.
  12509. module_cmds=$lt_module_cmds
  12510. module_expsym_cmds=$lt_module_expsym_cmds
  12511. # Whether we are building with GNU ld or not.
  12512. with_gnu_ld=$lt_with_gnu_ld
  12513. # Flag that allows shared libraries with undefined symbols to be built.
  12514. allow_undefined_flag=$lt_allow_undefined_flag
  12515. # Flag that enforces no undefined symbols.
  12516. no_undefined_flag=$lt_no_undefined_flag
  12517. # Flag to hardcode \$libdir into a binary during linking.
  12518. # This must work even if \$libdir does not exist
  12519. hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
  12520. # Whether we need a single "-rpath" flag with a separated argument.
  12521. hardcode_libdir_separator=$lt_hardcode_libdir_separator
  12522. # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
  12523. # DIR into the resulting binary.
  12524. hardcode_direct=$hardcode_direct
  12525. # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
  12526. # DIR into the resulting binary and the resulting library dependency is
  12527. # "absolute",i.e impossible to change by setting \$shlibpath_var if the
  12528. # library is relocated.
  12529. hardcode_direct_absolute=$hardcode_direct_absolute
  12530. # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
  12531. # into the resulting binary.
  12532. hardcode_minus_L=$hardcode_minus_L
  12533. # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
  12534. # into the resulting binary.
  12535. hardcode_shlibpath_var=$hardcode_shlibpath_var
  12536. # Set to "yes" if building a shared library automatically hardcodes DIR
  12537. # into the library and all subsequent libraries and executables linked
  12538. # against it.
  12539. hardcode_automatic=$hardcode_automatic
  12540. # Set to yes if linker adds runtime paths of dependent libraries
  12541. # to runtime path list.
  12542. inherit_rpath=$inherit_rpath
  12543. # Whether libtool must link a program against all its dependency libraries.
  12544. link_all_deplibs=$link_all_deplibs
  12545. # Set to "yes" if exported symbols are required.
  12546. always_export_symbols=$always_export_symbols
  12547. # The commands to list exported symbols.
  12548. export_symbols_cmds=$lt_export_symbols_cmds
  12549. # Symbols that should not be listed in the preloaded symbols.
  12550. exclude_expsyms=$lt_exclude_expsyms
  12551. # Symbols that must always be exported.
  12552. include_expsyms=$lt_include_expsyms
  12553. # Commands necessary for linking programs (against libraries) with templates.
  12554. prelink_cmds=$lt_prelink_cmds
  12555. # Commands necessary for finishing linking programs.
  12556. postlink_cmds=$lt_postlink_cmds
  12557. # Specify filename containing input files.
  12558. file_list_spec=$lt_file_list_spec
  12559. # How to hardcode a shared library path into an executable.
  12560. hardcode_action=$hardcode_action
  12561. # ### END LIBTOOL CONFIG
  12562. _LT_EOF
  12563. cat <<'_LT_EOF' >> "$cfgfile"
  12564. # ### BEGIN FUNCTIONS SHARED WITH CONFIGURE
  12565. # func_munge_path_list VARIABLE PATH
  12566. # -----------------------------------
  12567. # VARIABLE is name of variable containing _space_ separated list of
  12568. # directories to be munged by the contents of PATH, which is string
  12569. # having a format:
  12570. # "DIR[:DIR]:"
  12571. # string "DIR[ DIR]" will be prepended to VARIABLE
  12572. # ":DIR[:DIR]"
  12573. # string "DIR[ DIR]" will be appended to VARIABLE
  12574. # "DIRP[:DIRP]::[DIRA:]DIRA"
  12575. # string "DIRP[ DIRP]" will be prepended to VARIABLE and string
  12576. # "DIRA[ DIRA]" will be appended to VARIABLE
  12577. # "DIR[:DIR]"
  12578. # VARIABLE will be replaced by "DIR[ DIR]"
  12579. func_munge_path_list ()
  12580. {
  12581. case x$2 in
  12582. x)
  12583. ;;
  12584. *:)
  12585. eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
  12586. ;;
  12587. x:*)
  12588. eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
  12589. ;;
  12590. *::*)
  12591. eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
  12592. eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
  12593. ;;
  12594. *)
  12595. eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
  12596. ;;
  12597. esac
  12598. }
  12599. # Calculate cc_basename. Skip known compiler wrappers and cross-prefix.
  12600. func_cc_basename ()
  12601. {
  12602. for cc_temp in $*""; do
  12603. case $cc_temp in
  12604. compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
  12605. distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
  12606. \-*) ;;
  12607. *) break;;
  12608. esac
  12609. done
  12610. func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
  12611. }
  12612. # ### END FUNCTIONS SHARED WITH CONFIGURE
  12613. _LT_EOF
  12614. case $host_os in
  12615. aix3*)
  12616. cat <<\_LT_EOF >> "$cfgfile"
  12617. # AIX sometimes has problems with the GCC collect2 program. For some
  12618. # reason, if we set the COLLECT_NAMES environment variable, the problems
  12619. # vanish in a puff of smoke.
  12620. if test set != "${COLLECT_NAMES+set}"; then
  12621. COLLECT_NAMES=
  12622. export COLLECT_NAMES
  12623. fi
  12624. _LT_EOF
  12625. ;;
  12626. esac
  12627. ltmain=$ac_aux_dir/ltmain.sh
  12628. # We use sed instead of cat because bash on DJGPP gets confused if
  12629. # if finds mixed CR/LF and LF-only lines. Since sed operates in
  12630. # text mode, it properly converts lines to CR/LF. This bash problem
  12631. # is reportedly fixed, but why not run on old versions too?
  12632. sed '$q' "$ltmain" >> "$cfgfile" \
  12633. || (rm -f "$cfgfile"; exit 1)
  12634. mv -f "$cfgfile" "$ofile" ||
  12635. (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
  12636. chmod +x "$ofile"
  12637. ;;
  12638. esac
  12639. done # for ac_tag
  12640. as_fn_exit 0
  12641. _ACEOF
  12642. ac_clean_files=$ac_clean_files_save
  12643. test $ac_write_fail = 0 ||
  12644. as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
  12645. # configure is writing to config.log, and then calls config.status.
  12646. # config.status does its own redirection, appending to config.log.
  12647. # Unfortunately, on DOS this fails, as config.log is still kept open
  12648. # by configure, so config.status won't be able to write to it; its
  12649. # output is simply discarded. So we exec the FD to /dev/null,
  12650. # effectively closing config.log, so it can be properly (re)opened and
  12651. # appended to by config.status. When coming back to configure, we
  12652. # need to make the FD available again.
  12653. if test "$no_create" != yes; then
  12654. ac_cs_success=:
  12655. ac_config_status_args=
  12656. test "$silent" = yes &&
  12657. ac_config_status_args="$ac_config_status_args --quiet"
  12658. exec 5>/dev/null
  12659. $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
  12660. exec 5>>config.log
  12661. # Use ||, not &&, to avoid exiting from the if with $? = 1, which
  12662. # would make configure fail if this is the last instruction.
  12663. $ac_cs_success || as_fn_exit 1
  12664. fi
  12665. if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
  12666. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
  12667. $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
  12668. fi